:root {
  --ice: #ffffff;
  --line: #d8eeee;
  --text: #123636;
  --muted: #4f6f6f;
  --blue: #008f8f;
  --red: #c73535;
  --dark: #2f6685;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 36, 55, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: Tahoma, Arial, Helvetica, sans-serif;
  font-size: 13px;
  line-height: 1.55;
  background: #fbfdfd;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

img {
  max-width: 100%;
  height: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 66px;
  gap: 18px;
}

.menu-logo {
  display: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--white);
  background: #9fcfd0;
  border-radius: 0;
  font-size: 18px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 8px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  padding: 8px 10px;
  color: var(--dark);
  border-radius: 0;
  font-size: 12px;
  text-decoration: none;
}

.menu-img {
  display: block;
  width: 171px;
  height: auto;
  padding: 0;
  line-height: 0;
  border: 0;
}

.menu-img img {
  display: block;
  width: 171px;
  height: auto;
}

.archive-links {
  margin-top: 12px;
  padding: 8px 0;
  border-top: 1px solid #d9f1f1;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue);
  background: #e8f4fb;
}

.hero {
  position: relative;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255,255,255,0.98), rgba(255,255,255,0.88)),
    url("img/all.jpg") center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  min-height: 380px;
  display: grid;
  align-content: center;
  padding: 72px 0 96px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
}

.hero .eyebrow {
  color: #9fd1f3;
}

h1,
h2,
h3 {
  line-height: 1.18;
  margin: 0 0 18px;
  color: var(--dark);
}

.hero h1 {
  max-width: 760px;
  color: #4f9fb0;
  font-size: clamp(30px, 6vw, 54px);
}

.hero p {
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--text);
  font-size: 16px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 0;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: #6aaec0;
}

.button.secondary {
  color: var(--dark);
  border-color: var(--blue);
  background: #fff;
}

main {
  background: var(--white);
}

.section {
  padding: 42px 0;
}

.section.alt {
  background: #f8fcfc;
}

.section-title {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-title p {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  min-height: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(15, 36, 55, 0.06);
}

.card h3 {
  font-size: 20px;
}

.card p,
.card li {
  color: var(--muted);
}

.media-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: center;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.photo-strip img,
.feature-photo {
  border-radius: 0;
  box-shadow: var(--shadow);
}

.list {
  padding-left: 20px;
}

.list li {
  margin: 8px 0;
}

.sponsor-list {
  display: grid;
  gap: 16px;
}

.sponsor {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 22px;
  align-items: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
}

.sponsor img {
  justify-self: center;
  max-height: 130px;
}

.note {
  padding: 18px 20px;
  border-left: 4px solid var(--blue);
  background: #edf7fd;
  color: var(--dark);
}

.site-footer {
  padding: 34px 0;
  color: #5b7777;
  background: #f4fbfb;
  border-top: 1px solid #d8eeee;
}

.page-banner {
  margin-bottom: 22px;
  padding: 12px 14px;
  color: #5c99a9;
  font-weight: 700;
  text-align: center;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.puck-list {
  list-style: none;
  padding: 0;
}

.puck-list li {
  position: relative;
  margin: 8px 0;
  padding-left: 28px;
}

.puck-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.45em;
  width: 13px;
  height: 12px;
  background: url("img/shaiba.jpg") center / contain no-repeat;
}

.legacy-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}

.legacy-table th,
.legacy-table td {
  padding: 8px 9px;
  border: 1px solid var(--line);
  vertical-align: top;
}

.legacy-table th {
  color: #164498;
  background: #eafafa;
  text-align: left;
}

@media (min-width: 520px) {
  body {
    padding-left: 190px;
  }

  .site-header {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 171px;
    overflow: auto;
    border-right: 1px solid #d9eeee;
    border-bottom: 0;
  }

  .site-header::before {
    content: none;
  }

  .nav,
  .nav-links {
    display: block;
  }

  .wrap.nav {
    width: 100%;
    margin: 0;
  }

  .brand {
    display: none;
  }

  .menu-logo {
    display: block;
    width: 171px;
    height: 38px;
    line-height: 0;
  }

  .menu-logo img {
    display: block;
    width: 171px;
    height: 38px;
  }

  .nav-links {
    padding: 0 0 18px;
  }

  .nav-links a {
    display: block;
    padding: 7px 12px;
    border-bottom: 1px solid #e8f6f6;
    color: #006666;
  }

  .nav-links .menu-img {
    padding: 0;
    border-bottom: 0;
  }

  .nav-links a:hover,
  .nav-links a[aria-current="page"] {
    color: #164498;
    background: transparent;
  }

  .archive-links a:hover,
  .archive-links a[aria-current="page"] {
    background: #eafafa;
  }

  main::before {
    content: "";
    display: block;
    height: 55px;
    margin: 10px 0 20px;
    background: #ffffff url("img/vklub.gif") left top / 599px 55px no-repeat;
    border-bottom: 1px solid #edf5f5;
  }
}

.menu-friend {
  display: block;
  position: relative;
  height: 126px;
  margin-top: 8px;
  padding: 10px 0 16px 18px;
  overflow: hidden;
  background:
    radial-gradient(circle at 45px 86px, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 34px),
    linear-gradient(90deg, rgba(217, 246, 246, 0.86), rgba(255, 255, 255, 0.84));
}

.menu-friend img {
  display: block;
  width: 133px;
  height: auto;
  transition: opacity 180ms ease;
}

.menu-puck {
  position: absolute;
  left: 106px;
  top: 54px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #6e7678 0 13%, #2d3436 34%, #15191a 68%, #596265 100%);
  box-shadow: 0 3px 7px rgba(0, 0, 0, 0.28);
  transform: translate(var(--puck-x, 0px), var(--puck-y, 0px)) scale(var(--puck-scale, 1));
  transition: transform 360ms cubic-bezier(.2, .9, .2, 1), opacity 180ms ease;
}

.menu-friend.behind-goal .menu-puck {
  opacity: 0;
  transform: translate(-75px, 38px) scale(0.8);
}

.klux-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 28px;
  align-items: start;
}

.klux-side {
  padding: 12px 10px;
  border-left: 1px solid #d8eeee;
  background: #ffffff;
}

.klux-side img {
  display: block;
  width: 150px;
  margin: 0 auto 12px;
}

.klux-side a {
  display: block;
  position: relative;
  padding: 2px 0 4px 22px;
  font-size: 15px;
}

.klux-side a::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 0.55em;
  width: 9px;
  height: 9px;
  background: url("img/bul.gif") center / contain no-repeat;
}

@media (max-width: 900px) {
  .klux-layout {
    grid-template-columns: 1fr;
  }
}

.site-footer a {
  color: #008f8f;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

@media (max-width: 519px) {
  .nav {
    min-height: 64px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 72px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .nav-links.open {
    display: flex;
  }

  .hero .wrap {
    min-height: 460px;
    padding: 56px 0 76px;
  }

  .hero p {
    font-size: 17px;
  }

  .grid,
  .media-grid {
    grid-template-columns: 1fr;
  }

  .sponsor {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  .wrap {
    width: min(100% - 22px, 1120px);
  }

  .section {
    padding: 48px 0;
  }

  .photo-strip {
    grid-template-columns: 1fr;
  }
}
