/* =========================================================
   РОО «ФВВС СО» — вариант «ВОЛНА», строгая редакционная версия
   Токены, база, шапка, навигация, футер, общие компоненты
   ========================================================= */

:root {
  --bg: #fbf8f2;
  --surface: #ffffff;
  --surface-2: #f4efe6;
  --line: #e4ddd0;
  --line-2: #d2c8b6;
  --ink: #1f232b;
  --ink-2: #474c57;
  --ink-3: #6c707b;
  --indigo: #1e3354;
  --indigo-2: #2c4a72;
  --indigo-3: #3d5f8c;
  --indigo-tint: #eaeef4;
  --mist: #8aa6b8;
  --cinnabar: #c8442b;
  --cinnabar-2: #a8361f;
  --ochre: #b8955a;
  --ochre-tint: #f3ebdc;

  --tone-swim: #2c4a72;
  --tone-polo: #a8361f;
  --tone-synchro: #9a7a3f;
  --tone-diving: #4f7389;

  --f-head: 'Literata', Georgia, 'Times New Roman', serif;
  --f-ui: 'Source Sans 3', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --container: 1280px;
  --gutter: clamp(16px, 3.4vw, 40px);
  --radius: 4px;
  --topbar-h: 0px;
  --shadow: 0 1px 2px rgba(30, 51, 84, .06), 0 10px 28px -18px rgba(30, 51, 84, .35);
  --ease: cubic-bezier(.25, .7, .3, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 140px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--f-ui);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  max-width: 100%;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 .5em;
  font-family: var(--f-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--indigo);
}

h1 { font-size: clamp(30px, 3.4vw, 42px); }
h2 { font-size: clamp(24px, 2.4vw, 30px); }
h3 { font-size: 20px; }

p {
  margin: 0 0 1em;
}

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

a:hover {
  color: var(--cinnabar-2);
}

:focus-visible {
  outline: 2px solid var(--cinnabar);
  outline-offset: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 300;
  padding: 10px 16px;
  color: #fff;
  background: var(--indigo);
}

.skip-link:focus {
  top: 12px;
}

/* ---------- секции ---------- */

.section {
  padding: clamp(44px, 5.5vw, 76px) 0;
}

.section--alt {
  background: var(--surface-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section--tight {
  padding: clamp(28px, 3.6vw, 48px) 0;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-2);
}

.section-head__title {
  margin: 0;
}

.eyebrow {
  display: block;
  margin: 0 0 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--cinnabar-2);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 15px;
  color: var(--indigo-2);
  text-decoration: none;
  white-space: nowrap;
}

.more-link::after {
  content: '→';
  transition: transform .2s var(--ease);
}

.more-link:hover::after {
  transform: translateX(3px);
}

/* ---------- кнопки ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 9px 20px;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: background-color .2s, color .2s, border-color .2s;
}

.btn--primary {
  color: #fff;
  background: var(--indigo);
}

.btn--primary:hover {
  color: #fff;
  background: var(--indigo-2);
}

.btn--secondary {
  color: var(--indigo);
  background: var(--surface);
  border-color: var(--line-2);
}

.btn--secondary:hover {
  color: var(--indigo);
  border-color: var(--indigo);
}

.btn--small {
  min-height: 36px;
  padding: 6px 14px;
  font-size: 14px;
}

.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--cinnabar);
}

.live-dot::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--cinnabar);
  opacity: 0;
  animation: live-pulse 2.4s ease-out infinite;
}

@keyframes live-pulse {
  0% { transform: scale(.6); opacity: .8; }
  70%, 100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- метки ---------- */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 1px 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--tone, var(--ink-2));
  background: transparent;
  border: 1px solid currentColor;
  border-radius: 3px;
  white-space: nowrap;
}

.tag--swim { --tone: var(--tone-swim); }
.tag--polo { --tone: var(--tone-polo); }
.tag--synchro { --tone: var(--tone-synchro); }
.tag--diving { --tone: var(--tone-diving); }
.tag--all { --tone: var(--ink-2); }
.tag--plain { --tone: var(--ink-3); }

.mark {
  display: inline-block;
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--tone, var(--ink-3));
}

.mark--swim { --tone: var(--tone-swim); }
.mark--polo { --tone: var(--tone-polo); }
.mark--synchro { --tone: var(--tone-synchro); }
.mark--diving { --tone: var(--tone-diving); }

.status {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.5;
  border-radius: 3px;
  white-space: nowrap;
}

.status--open { color: #fff; background: var(--cinnabar-2); }
.status--closed { color: var(--ink-3); background: var(--surface-2); border: 1px solid var(--line); }
.status--plan { color: var(--indigo-2); background: var(--indigo-tint); }
.status--soon { color: var(--indigo); background: var(--indigo-tint); }
.status--past { color: var(--ink-3); background: var(--surface-2); }

/* ---------- фильтры ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  margin-bottom: 28px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filters__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.filters__label {
  margin-right: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
}

.filters__count {
  margin-left: auto;
  font-size: 14px;
  color: var(--ink-3);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  padding: 4px 12px;
  font-size: 14px;
  line-height: 1.2;
  color: var(--ink-2);
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  transition: background-color .2s, color .2s, border-color .2s;
}

.chip:hover {
  color: var(--indigo);
  border-color: var(--indigo-3);
}

.chip[aria-pressed='true'] {
  color: #fff;
  background: var(--indigo);
  border-color: var(--indigo);
}

.chip[aria-pressed='true'] .mark {
  box-shadow: 0 0 0 1.5px #fff;
}

.search {
  position: relative;
  flex: 1 1 220px;
  max-width: 340px;
  margin-left: auto;
}

.search__input {
  width: 100%;
  min-height: 38px;
  padding: 7px 12px 7px 36px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}

.search__input:focus,
.select:focus {
  outline: none;
  border-color: var(--indigo-2);
  box-shadow: 0 0 0 3px rgba(44, 74, 114, .15);
}

.search__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -8px;
  border: 2px solid var(--ink-3);
  border-radius: 50%;
}

.search__icon::after {
  content: '';
  position: absolute;
  right: -6px;
  bottom: -4px;
  width: 6px;
  height: 2px;
  background: var(--ink-3);
  transform: rotate(45deg);
}

.select {
  min-height: 38px;
  padding: 6px 34px 6px 12px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23474c57' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  appearance: none;
}

.seg {
  display: inline-flex;
  padding: 3px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.seg button {
  min-height: 36px;
  padding: 6px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-2);
  background: transparent;
  border: 0;
  border-radius: 4px;
  transition: background-color .2s, color .2s;
}

.seg button[aria-pressed='true'] {
  color: #fff;
  background: var(--indigo);
}

/* ---------- таблицы ---------- */

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  font-variant-numeric: tabular-nums;
}

.table th {
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  color: var(--ink-3);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}

.table tbody th {
  font-size: inherit;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  background: transparent;
  border-bottom: 0;
  white-space: normal;
}

.table td,
.table tbody th {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}

.table tbody tr:first-child td,
.table tbody tr:first-child th {
  border-top: 0;
}

.table tbody tr:hover {
  background: #faf7f1;
}

.table__num {
  font-weight: 600;
  white-space: nowrap;
}

.medal {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
}

.medal--1 { background: #e4cf9b; border-color: #c9ab61; }
.medal--2 { background: #dfe4e8; border-color: #b4bfc8; }
.medal--3 { background: #e9c9b4; border-color: #c99a7d; }

/* ---------- шапка ---------- */

.site-header {
  position: sticky;
  top: calc(var(--topbar-h) * -1);
  z-index: 100;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}

.topbar {
  font-size: 13.5px;
  color: rgba(255, 255, 255, .86);
  background: #15243d;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  min-height: 38px;
}

.topbar__info,
.topbar__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.topbar a {
  color: inherit;
  text-decoration: none;
}

.topbar a:hover {
  color: #fff;
  text-decoration: underline;
}

.topbar__a11y {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  font-size: 13.5px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 3px;
}

.topbar__a11y:hover,
.topbar__a11y[aria-pressed='true'] {
  background: rgba(255, 255, 255, .12);
}

.topbar__a11y svg {
  width: 18px;
  height: 18px;
}

.topbar__live {
  display: none;
}

.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
  transition: padding .25s var(--ease);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  color: var(--indigo);
  text-decoration: none;
}

.brand:hover {
  color: var(--indigo);
}

.brand__logo {
  width: 64px;
  height: 64px;
  flex: none;
  transition: width .25s var(--ease), height .25s var(--ease);
}

.brand__logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.brand__kind {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: font-size .25s var(--ease);
}

.brand__name {
  max-width: 780px;
  font-family: var(--f-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  transition: font-size .25s var(--ease);
}

.masthead__aside {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: none;
}

.live-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--cinnabar-2);
  text-decoration: none;
  background: var(--surface);
  border: 1px solid #e3b5a9;
  border-radius: var(--radius);
  transition: background-color .2s, border-color .2s;
}

.live-link:hover {
  color: var(--cinnabar-2);
  background: #fbf1ee;
  border-color: var(--cinnabar);
}

.live-link__badge {
  padding: 1px 6px;
  font-size: 11px;
  letter-spacing: .08em;
  color: #fff;
  background: var(--cinnabar);
  border-radius: 2px;
}

.site-header.is-compact .masthead__inner {
  padding-top: 8px;
  padding-bottom: 8px;
}

.site-header.is-compact .brand__logo {
  width: 44px;
  height: 44px;
}

.site-header.is-compact .brand__kind {
  font-size: 10.5px;
}

.site-header.is-compact .brand__name {
  max-width: none;
  font-size: 15.5px;
}

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
}

.burger__line {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--indigo);
  transition: transform .25s var(--ease), opacity .2s;
}

.burger__line:nth-child(2) { top: 14px; }
.burger__line:nth-child(3) { top: 21px; }
.burger__line:nth-child(4) { top: 28px; }

/* ---------- навигация (десктоп) ---------- */

.navbar {
  background: var(--indigo);
  border-bottom: 3px solid var(--ochre);
}

.nav__panel-head,
.nav__panel-foot {
  display: none;
}

.nav__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__list--l1 {
  display: flex;
  align-items: stretch;
}

.nav__item {
  position: relative;
}

.nav__row {
  display: flex;
  align-items: center;
  height: 100%;
}

.nav__link {
  position: relative;
  display: block;
  padding: 13px 16px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  text-decoration: none;
}

.nav__list--l1 > .nav__item > .nav__row {
  transition: background-color .2s;
}

.nav__list--l1 > .nav__item:hover > .nav__row,
.nav__list--l1 > .nav__item.is-open > .nav__row {
  background: rgba(255, 255, 255, .08);
}

.nav__list--l1 > .nav__item > .nav__row > .nav__link:hover {
  color: #fff;
}

.nav__list--l1 > .nav__item.is-current > .nav__row::after,
.nav__list--l1 > .nav__item.is-ancestor > .nav__row::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--cinnabar);
}

.nav__toggle {
  position: relative;
  width: 28px;
  height: 28px;
  margin: 0 8px 0 -10px;
  padding: 0;
  color: #fff;
  background: transparent;
  border: 0;
  border-radius: 3px;
}

.nav__toggle::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -5px 0 0 -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}

.nav__toggle[aria-expanded='true']::before {
  transform: rotate(225deg) translate(-2px, -2px);
}

.nav__sub {
  position: absolute;
  z-index: 10;
  min-width: 260px;
  margin: 0;
  padding: 8px 0;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: 0 14px 32px -14px rgba(20, 36, 61, .35);
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s;
}

.nav__sub--l2 {
  top: calc(100% + 3px);
  left: 0;
}

.nav__sub--l2::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -8px;
  height: 8px;
}

.nav__sub--l3 {
  top: -9px;
  left: 100%;
  min-width: 290px;
  max-width: 340px;
  border-radius: var(--radius);
  transform: translateX(6px);
}

.nav__sub--flip {
  left: auto;
  right: 100%;
  transform: translateX(-6px);
}

.nav__item--has-sub:hover > .nav__sub,
.nav__item--has-sub:focus-within > .nav__sub,
.nav__item--has-sub.is-open > .nav__sub {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .18s, transform .18s var(--ease), visibility 0s;
}

.nav__item--has-sub.is-closed > .nav__sub {
  visibility: hidden;
  opacity: 0;
}

.nav__sub .nav__link {
  padding: 9px 20px;
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
}

.nav__sub .nav__item > .nav__row {
  transition: background-color .15s;
}

.nav__sub .nav__item:hover > .nav__row,
.nav__sub .nav__item.is-open > .nav__row,
.nav__sub .nav__item--has-sub:focus-within > .nav__row {
  background: var(--surface-2);
}

.nav__sub .nav__link:hover {
  color: var(--indigo);
}

.nav__sub .nav__item.is-current > .nav__row > .nav__link,
.nav__sub .nav__item.is-ancestor > .nav__row > .nav__link {
  font-weight: 600;
  color: var(--indigo);
}

.nav__sub .nav__item.is-current > .nav__row {
  box-shadow: inset 3px 0 0 var(--cinnabar);
}

.nav__sub .nav__row .nav__link {
  flex: 1;
}

.nav__sub .nav__toggle {
  margin: 0 8px 0 0;
  color: var(--ink-3);
}

.nav__sub .nav__toggle::before,
.nav__sub .nav__toggle[aria-expanded='true']::before {
  transform: rotate(-45deg);
}

/* ---------- мобильная навигация ---------- */

@media (max-width: 1024px) {
  html {
    scroll-padding-top: 120px;
  }

  .topbar__info li:not(.topbar__phone),
  .topbar__links .topbar__hide-m {
    display: none;
  }

  .topbar__live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
  }

  .topbar__a11y-text {
    display: none;
  }

  .masthead__inner {
    padding-top: 12px;
    padding-bottom: 12px;
    gap: 14px;
  }

  .brand {
    gap: 12px;
  }

  .brand__logo {
    width: 48px;
    height: 48px;
  }

  .brand__kind {
    font-size: 10.5px;
  }

  .brand__name {
    font-size: 15px;
  }

  .site-header.is-compact .brand__logo {
    width: 36px;
    height: 36px;
  }

  .site-header.is-compact .brand__kind {
    font-size: 9.5px;
  }

  .site-header.is-compact .brand__name {
    font-size: 12.5px;
  }

  .live-link {
    display: none;
  }

  .burger {
    display: block;
  }

  .navbar {
    border-bottom-width: 2px;
  }

  .navbar .container {
    padding: 0;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 150;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--surface);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform .3s var(--ease), visibility 0s .3s;
  }

  .nav.is-open {
    visibility: visible;
    transform: none;
    transition: transform .3s var(--ease), visibility 0s;
  }

  .nav__panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px var(--gutter);
    color: #fff;
    background: var(--indigo);
  }

  .nav__panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--f-head);
    font-size: 19px;
    font-weight: 600;
  }

  .nav__panel-title svg {
    width: 34px;
    height: 34px;
  }

  .nav__close {
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: var(--radius);
  }

  .nav__close::before,
  .nav__close::after {
    content: '';
    position: absolute;
    left: 12px;
    right: 12px;
    top: 20px;
    height: 2px;
    background: #fff;
    transform: rotate(45deg);
  }

  .nav__close::after {
    transform: rotate(-45deg);
  }

  .nav__list--l1 {
    flex-direction: column;
    padding: 8px var(--gutter) 20px;
  }

  .nav__list--l1 > .nav__item {
    border-bottom: 1px solid var(--line);
  }

  .nav__list--l1 > .nav__item:hover > .nav__row,
  .nav__list--l1 > .nav__item.is-open > .nav__row {
    background: transparent;
  }

  .nav__list--l1 > .nav__item.is-current > .nav__row::after,
  .nav__list--l1 > .nav__item.is-ancestor > .nav__row::after {
    left: -12px;
    right: auto;
    top: 12px;
    bottom: 12px;
    width: 3px;
    height: auto;
  }

  .nav > * {
    flex-shrink: 0;
  }

  .nav__row {
    position: relative;
    justify-content: space-between;
    height: auto;
  }

  .nav__link,
  .nav__list--l1 > .nav__item > .nav__row > .nav__link:hover {
    flex: 1;
    padding: 13px 0;
    font-size: 18px;
    color: var(--indigo);
  }

  .nav__toggle,
  .nav__sub .nav__toggle {
    width: 40px;
    height: 40px;
    margin: 0;
    flex: none;
    color: var(--indigo);
    border: 1px solid var(--line-2);
  }

  .nav__toggle::before,
  .nav__sub .nav__toggle::before,
  .nav__toggle[aria-expanded='true']::before,
  .nav__sub .nav__toggle[aria-expanded='true']::before {
    width: 12px;
    height: 2px;
    margin: -1px 0 0 -6px;
    border: 0;
    background: currentColor;
    transform: none;
  }

  .nav__toggle::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 12px;
    margin: -6px 0 0 -1px;
    background: currentColor;
    transition: transform .2s;
  }

  .nav__toggle[aria-expanded='true'] {
    color: #fff;
    background: var(--indigo);
    border-color: var(--indigo);
  }

  .nav__toggle[aria-expanded='true']::after {
    transform: scaleY(0);
  }

  .nav__sub,
  .nav__sub--l3,
  .nav__sub--flip {
    position: static;
    display: none;
    min-width: 0;
    max-width: none;
    margin: 0 0 10px;
    padding: 0 0 0 14px;
    background: none;
    border: 0;
    border-left: 2px solid var(--line-2);
    border-radius: 0;
    box-shadow: none;
    visibility: visible;
    opacity: 1;
    transform: none;
  }

  .nav__sub--l2::before {
    display: none;
  }

  .nav__item--has-sub:hover > .nav__sub,
  .nav__item--has-sub:focus-within > .nav__sub {
    display: none;
  }

  .nav__item--has-sub.is-open > .nav__sub {
    display: block;
  }

  .nav__sub .nav__item:hover > .nav__row,
  .nav__sub .nav__item.is-open > .nav__row,
  .nav__sub .nav__item--has-sub:focus-within > .nav__row {
    background: transparent;
  }

  .nav__sub .nav__link {
    padding: 10px 6px 10px 4px;
    font-size: 16px;
  }

  .nav__sub--l3 .nav__link {
    font-size: 15px;
  }

  .nav__sub .nav__item.is-current > .nav__row {
    box-shadow: none;
  }

  .nav__sub .nav__item.is-current > .nav__row > .nav__link {
    color: var(--cinnabar-2);
  }

  .nav__panel-foot {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
    padding: 18px var(--gutter) 24px;
    font-size: 14px;
    color: var(--ink-2);
    background: var(--surface-2);
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 480px) {
  .brand__logo {
    width: 42px;
    height: 42px;
  }

  .brand__name {
    font-size: 13.5px;
  }

  .topbar__inner {
    gap: 8px 14px;
  }
}

/* ---------- шапка раздела ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding: 26px 0 34px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}

.page-head::before {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: min(46%, 620px);
  background: url('../img/seigaiha.svg') 0 0 / 64px 32px;
  opacity: .1;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%);
  mask-image: linear-gradient(90deg, transparent, #000 60%);
}

.page-head::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14px;
  background: url('../img/wave-rule.svg') repeat-x 0 0 / 96px 14px;
  opacity: .7;
}

.page-head .container {
  position: relative;
}

.page-head__title {
  max-width: 900px;
  margin: 14px 0 0;
}

.page-head__lead {
  max-width: 760px;
  margin: 10px 0 0;
  font-size: 18px;
  color: var(--ink-2);
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.crumbs li {
  display: flex;
  align-items: center;
}

.crumbs li + li::before {
  content: '/';
  margin: 0 8px;
  color: var(--line-2);
}

.crumbs a {
  color: var(--ink-3);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--indigo);
  text-decoration: underline;
}

.crumbs [aria-current] {
  color: var(--ink-2);
}

/* ---------- футер ---------- */

.main > .section:last-child:not(.section--alt) {
  padding-bottom: clamp(56px, 7vw, 96px);
}

.site-footer {
  position: relative;
  color: rgba(255, 255, 255, .82);
  background-color: var(--indigo);
  background-image: linear-gradient(rgba(30, 51, 84, .95), rgba(30, 51, 84, .95)), url('../img/seigaiha-light.svg');
  background-size: auto, 64px 32px;
  font-size: 15px;
}

.site-footer::before {
  content: '';
  display: block;
  height: 14px;
  margin-top: 18px;
  background: url('../img/wave-rule.svg') repeat-x 0 0 / 96px 14px;
  opacity: .55;
}

.site-footer a {
  color: #fff;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1.9fr;
  gap: 36px clamp(28px, 4vw, 56px);
  padding-top: 34px;
  padding-bottom: 34px;
}

.site-footer__title {
  margin: 0 0 12px;
  font-family: var(--f-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ochre);
}

.site-footer__brand {
  display: flex;
  gap: 16px;
  margin-bottom: 18px;
}

.site-footer__logo {
  width: 56px;
  height: 56px;
  flex: none;
}

.site-footer__logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site-footer__name {
  margin: 0;
  font-family: var(--f-head);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: #fff;
}

.site-footer__req {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  margin: 0;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}

.site-footer__req dt {
  color: rgba(255, 255, 255, .6);
}

.site-footer__req dd {
  margin: 0;
}

.site-footer address {
  font-style: normal;
  line-height: 1.7;
}

.site-footer address p {
  margin: 0 0 10px;
}

.site-footer__map {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.site-footer__map ul {
  margin: 0;
  padding: 0;
  list-style: none;
  line-height: 1.45;
}

.site-footer__map li {
  margin-bottom: 7px;
}

.site-footer__map li li {
  margin: 6px 0 0 12px;
  font-size: 14px;
}

.site-footer__map li li a {
  color: rgba(255, 255, 255, .78);
}

.social {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.social__link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius);
  transition: background-color .2s, border-color .2s;
}

.social__link svg {
  width: 18px;
  height: 18px;
}

.social__link:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .6);
}

.site-footer__partners {
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, .15);
}

.site-footer__partners ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.site-footer__bottom {
  background: #15243d;
}

.site-footer__bottom .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 16px;
  padding-bottom: 18px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, .7);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.site-footer__legal a {
  color: rgba(255, 255, 255, .8);
}

@media (max-width: 1100px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer__map {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__map {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- появление ---------- */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .45s var(--ease), transform .45s var(--ease);
  transition-delay: var(--delay, 0s);
}

.reveal.is-in,
.no-js .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- уведомление и пустые состояния ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 300;
  max-width: calc(100vw - 32px);
  padding: 12px 18px;
  font-size: 15px;
  color: #fff;
  background: var(--indigo);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translate(-50%, 12px);
  pointer-events: none;
  transition: opacity .25s, transform .25s var(--ease);
}

.toast.is-shown {
  opacity: 1;
  transform: translate(-50%, 0);
}

.empty {
  padding: 40px 16px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.empty__title {
  margin: 0 0 8px;
  font-family: var(--f-head);
  font-size: 22px;
  font-weight: 600;
  color: var(--indigo);
}

.empty p {
  margin: 0 0 16px;
  color: var(--ink-2);
}

/* ---------- версия для слабовидящих ---------- */

html.a11y {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #ffffff;
  --line: #000000;
  --line-2: #000000;
  --ink: #000000;
  --ink-2: #000000;
  --ink-3: #000000;
  --indigo: #000000;
  --indigo-2: #000000;
  --indigo-3: #000000;
  --indigo-tint: #ffffff;
  --cinnabar: #000000;
  --cinnabar-2: #000000;
  --tone-swim: #000000;
  --tone-polo: #000000;
  --tone-synchro: #000000;
  --tone-diving: #000000;
  font-size: 125%;
}

html.a11y body {
  font-size: 21px;
  line-height: 1.7;
}

html.a11y a {
  text-decoration: underline;
}

html.a11y .navbar,
html.a11y .topbar,
html.a11y .site-footer,
html.a11y .site-footer__bottom {
  background: #000000;
}

html.a11y .page-head::before,
html.a11y .page-head::after,
html.a11y .site-footer::before {
  display: none;
}

html.a11y .art,
html.a11y .hero-figure__frame svg {
  filter: grayscale(1) contrast(1.15);
}

html.a11y *,
html.a11y *::before,
html.a11y *::after {
  animation: none;
  transition: none;
}

html.a11y .reveal {
  opacity: 1;
  transform: none;
}

/* ---------- уменьшение движения ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms;
    animation-iteration-count: 1;
    transition-duration: .001ms;
    transition-delay: 0s;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
