/* РОО «ФВВС СО» — стили сайта */

:root {
  --c-deep: #03294a;
  --c-navy: #06365e;
  --c-blue: #0a5d96;
  --c-cyan: #1ea7c9;
  --c-aqua: #27b3d9;
  --c-ice: #e8f4fa;
  --c-mist: #f4f9fc;
  --c-ink: #11293b;
  --c-gray: #5b7287;
  --c-line: #d8e6ef;
  --c-gold: #e3b341;
  --c-silver: #aab7c4;
  --c-bronze: #c98a5b;
  --grad-hero: linear-gradient(135deg, #03294a 0%, #0a5d96 55%, #1ea7c9 100%);
  --shadow-card: 0 6px 24px rgba(6, 54, 94, 0.1);
  --shadow-pop: 0 18px 48px rgba(6, 54, 94, 0.18);
  --radius: 16px;
  --font: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: #fff;
}

.body--locked { overflow: hidden; }

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

a { color: var(--c-blue); }

h1, h2, h3, h4, p, ul { margin: 0; }

ul { padding: 0; list-style: none; }

button { font-family: inherit; cursor: pointer; }

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--narrow { max-width: 920px; }

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

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 2px 16px rgba(6, 54, 94, 0.1);
}

.header__top {
  background: var(--c-deep);
  color: rgba(255, 255, 255, 0.82);
  font-size: 13px;
}

.header__top-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 6px;
  padding-bottom: 6px;
  flex-wrap: wrap;
}

.header__top-link {
  color: var(--c-aqua);
  text-decoration: none;
}

.header__top-link:hover { text-decoration: underline; }

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--c-ink);
  min-width: 0;
}

.logo__mark { flex-shrink: 0; }

.logo__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.logo__abbr {
  font-weight: 800;
  font-size: 17px;
  letter-spacing: 0.4px;
  color: var(--c-navy);
}

.logo__name {
  font-size: 10.5px;
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--c-gray);
  max-width: 460px;
}

/* ---------- навигация ---------- */

.nav__list {
  display: flex;
  gap: 4px;
}

.nav__item { position: relative; }

.nav__link {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-ink);
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  transition: background 0.25s, color 0.25s;
}

.nav__link:hover { background: var(--c-ice); color: var(--c-blue); }

.nav__link--current { color: var(--c-cyan); }

.nav__caret {
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s;
}

.nav__expand { display: none; }

.nav__sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  padding: 8px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
}

.nav__sub .nav__sub {
  top: -8px;
  left: 100%;
  transform: translateX(12px);
}

.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__sub .nav__item:hover > .nav__sub,
.nav__sub .nav__item:focus-within > .nav__sub {
  transform: translateX(0);
}

.nav__sub .nav__link {
  padding: 9px 12px;
  font-weight: 500;
  white-space: normal;
}

.nav__sub .nav__caret { transform: rotate(-45deg); margin-left: auto; }

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: var(--c-ice);
  border: 0;
  border-radius: 12px;
}

.burger__line {
  height: 2.5px;
  border-radius: 2px;
  background: var(--c-navy);
  transition: transform 0.3s, opacity 0.3s;
}

.burger--active .burger__line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger--active .burger__line:nth-child(2) { opacity: 0; }
.burger--active .burger__line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- кнопки, бейджи ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(120deg, var(--c-cyan), var(--c-blue));
  border: 0;
  border-radius: 12px;
  box-shadow: 0 8px 22px rgba(30, 167, 201, 0.35);
  transition: transform 0.25s, box-shadow 0.25s;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(30, 167, 201, 0.45); }

.btn--ghost {
  color: var(--c-blue);
  background: #fff;
  border: 2px solid var(--c-aqua);
  box-shadow: none;
}

.btn--light {
  color: var(--c-navy);
  background: #fff;
  box-shadow: 0 8px 22px rgba(3, 41, 74, 0.3);
}

.btn--small { padding: 8px 16px; font-size: 13px; border-radius: 9px; }

.badge {
  display: inline-block;
  padding: 3px 11px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--c-blue);
  background: var(--c-ice);
  border-radius: 999px;
  white-space: nowrap;
}

.badge--swim { color: #075985; background: #e0f2fe; }
.badge--polo { color: #0f766e; background: #ccfbf1; }
.badge--synchro { color: #7e22ce; background: #f3e8ff; }
.badge--diving { color: #1d4ed8; background: #dbeafe; }
.badge--federation { color: #0e7490; background: #cffafe; }

.status {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-gray);
  white-space: nowrap;
}

/* ---------- герой ---------- */

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: var(--grad-hero);
}

.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 84px;
  padding-bottom: 130px;
  max-width: 1240px;
  margin: 0 auto;
}

.hero__kicker {
  display: inline-block;
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--c-aqua);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
}

.hero__title {
  margin-top: 22px;
  max-width: 760px;
  font-size: clamp(30px, 4.6vw, 54px);
  font-weight: 800;
  line-height: 1.12;
}

.hero__text {
  margin-top: 18px;
  max-width: 600px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.85);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.hero__live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5d5d;
  animation: pulse 1.6s infinite;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 52px;
}

.hero__stat { display: flex; flex-direction: column; }

.hero__stat-num {
  font-size: 38px;
  font-weight: 800;
  color: var(--c-aqua);
  line-height: 1.1;
}

.hero__stat-label { font-size: 14px; color: rgba(255, 255, 255, 0.75); }

.hero__waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  z-index: 1;
  width: 100%;
  height: 110px;
}

.hero__wave { animation: drift 9s ease-in-out infinite alternate; }

.hero__wave--2 { animation-duration: 13s; animation-delay: -3s; }

.hero__wave--3 { animation-duration: 17s; animation-delay: -6s; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-46px); }
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 93, 93, 0.55); }
  60% { box-shadow: 0 0 0 9px rgba(255, 93, 93, 0); }
}

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

.section { padding: 72px 0; }

.section--tint { background: var(--c-mist); }

.section--dark {
  color: #fff;
  background: var(--grad-hero);
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.section__title {
  position: relative;
  padding-left: 18px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
}

.section__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8%;
  bottom: 8%;
  width: 5px;
  border-radius: 4px;
  background: linear-gradient(var(--c-aqua), var(--c-blue));
}

.section__title--sm { font-size: 22px; margin-bottom: 18px; }

.section__link {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-blue);
  text-decoration: none;
  white-space: nowrap;
}

.section__link:hover { color: var(--c-cyan); }

.section__link::after { content: ' →'; }

/* ---------- сетки ---------- */

.grid { display: grid; gap: 26px; }

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.grid--news {
  grid-template-columns: 1.6fr 1fr;
  grid-auto-rows: auto;
}

.grid--news .card--big {
  grid-row: span 3;
}

.list { display: grid; gap: 18px; }

/* ---------- карточки новостей / галерей ---------- */

.card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--c-ink);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }

.card__media {
  position: relative;
  display: block;
  overflow: hidden;
}

.card__img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 0.5s;
}

.card:hover .card__img { transform: scale(1.05); }

.card__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: rgba(3, 41, 74, 0.65);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px 22px 24px;
  flex-grow: 1;
}

.card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.card__date { font-size: 13px; color: var(--c-gray); }

.card__title {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

.card--big .card__title { font-size: 24px; }

.card__excerpt {
  font-size: 14.5px;
  color: var(--c-gray);
}

.card__more {
  margin-top: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-cyan);
}

.card__more::after { content: ' →'; }

/* ---------- мероприятия ---------- */

.event {
  display: flex;
  align-items: stretch;
  gap: 22px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--c-ink);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}

.event:hover {
  transform: translateY(-3px);
  border-color: transparent;
  box-shadow: var(--shadow-pop);
}

.event__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 86px;
  padding: 10px 6px;
  color: #fff;
  background: linear-gradient(150deg, var(--c-blue), var(--c-cyan));
  border-radius: 14px;
}

.event__day { font-size: 30px; font-weight: 800; line-height: 1; }

.event__month { margin-top: 4px; font-size: 12.5px; opacity: 0.9; }

.event__body { display: flex; flex-direction: column; gap: 5px; min-width: 0; }

.event__title { font-size: 17px; font-weight: 700; line-height: 1.35; }

.event__info { font-size: 13.5px; font-weight: 600; color: var(--c-cyan); }

.event__excerpt { font-size: 14px; color: var(--c-gray); }

.event__arrow {
  align-self: center;
  margin-left: auto;
  font-size: 22px;
  color: var(--c-aqua);
  transition: transform 0.3s;
}

.event:hover .event__arrow { transform: translateX(6px); }

/* ---------- слайдер ---------- */

.slider {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  box-shadow: var(--shadow-pop);
}

.slider__track {
  display: flex;
  transition: transform 0.6s cubic-bezier(0.6, 0.05, 0.25, 1);
}

.slide {
  position: relative;
  display: block;
  flex: 0 0 100%;
}

.slide__img {
  width: 100%;
  aspect-ratio: 1280 / 540;
  object-fit: cover;
}

.slide__caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 56px 36px 28px;
  color: #fff;
  background: linear-gradient(transparent, rgba(3, 41, 74, 0.88));
  text-decoration: none;
}

.slide__meta { font-size: 13.5px; font-weight: 600; color: var(--c-aqua); }

.slide__title { font-size: clamp(18px, 2.4vw, 28px); font-weight: 800; line-height: 1.25; }

.slider__btn {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  font-size: 26px;
  color: var(--c-navy);
  background: rgba(255, 255, 255, 0.88);
  border: 0;
  border-radius: 50%;
  transform: translateY(-50%);
  transition: background 0.25s, color 0.25s;
}

.slider__btn:hover { background: #fff; color: var(--c-cyan); }

.slider__btn--prev { left: 18px; }

.slider__btn--next { right: 18px; }

.slider__dots {
  position: absolute;
  left: 50%;
  bottom: 14px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  border-radius: 50%;
  transition: width 0.3s, background 0.3s;
}

.slider__dot--active {
  width: 26px;
  border-radius: 999px;
  background: var(--c-aqua);
}

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

.table-wrap {
  overflow-x: auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.table th {
  padding: 14px 18px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-align: left;
  text-transform: uppercase;
  color: #fff;
  background: var(--c-navy);
  white-space: nowrap;
}

.table td {
  padding: 13px 18px;
  border-top: 1px solid var(--c-line);
  vertical-align: top;
}

.table tbody tr { transition: background 0.2s; }

.table tbody tr:hover { background: var(--c-ice); }

.table__dates { font-weight: 700; color: var(--c-navy); white-space: nowrap; }

.table__link {
  font-weight: 600;
  color: var(--c-blue);
  text-decoration: none;
}

.table__link:hover { color: var(--c-cyan); text-decoration: underline; }

/* ---------- дисциплины ---------- */

.disc {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.disc:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }

.disc__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.disc__body { padding: 20px 22px 24px; }

.disc__title { font-size: 19px; font-weight: 800; color: var(--c-navy); }

.disc__text { margin-top: 8px; font-size: 14px; color: var(--c-gray); }

/* ---------- страницы: заголовок, крошки ---------- */

.page-head {
  position: relative;
  overflow: hidden;
  padding: 46px 0 54px;
  color: #fff;
  background: var(--grad-hero);
}

.page-head__title {
  font-size: clamp(26px, 3.6vw, 42px);
  font-weight: 800;
  line-height: 1.15;
}

.page-head__sub {
  margin-top: 12px;
  max-width: 720px;
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.85);
}

.page-body { padding: 56px 0 80px; background: var(--c-mist); min-height: 40vh; }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 13.5px;
}

.crumbs__link { color: rgba(255, 255, 255, 0.75); text-decoration: none; }

.crumbs__link:hover { color: #fff; }

.crumbs__here { color: #fff; font-weight: 600; }

.crumbs__sep { color: rgba(255, 255, 255, 0.4); }

.page-body .crumbs { margin-bottom: 26px; }

.page-body .crumbs__link { color: var(--c-gray); }

.page-body .crumbs__link:hover { color: var(--c-blue); }

.page-body .crumbs__here { color: var(--c-navy); }

.page-body .crumbs__sep { color: var(--c-line); }

/* ---------- статья ---------- */

.article {
  padding: 36px 40px 44px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.article__meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--c-gray);
}

.article__title {
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 800;
  line-height: 1.2;
  color: var(--c-navy);
}

.article__img {
  width: 100%;
  margin: 24px 0 8px;
  border-radius: 14px;
  aspect-ratio: 1100 / 440;
  object-fit: cover;
}

.article__p { margin-top: 18px; font-size: 16.5px; line-height: 1.75; }

.article__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 6px;
}

.facts__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 150px;
  padding: 14px 20px;
  background: var(--c-mist);
  border-radius: 12px;
}

.facts__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--c-gray);
}

.facts__value { font-size: 17px; font-weight: 700; color: var(--c-navy); }

.related { margin-top: 48px; }

.related__title { margin-bottom: 22px; font-size: 24px; font-weight: 800; }

/* ---------- итоги соревнований ---------- */

.total {
  display: flex;
  gap: 24px;
  padding: 18px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--c-ink);
  transition: transform 0.3s, box-shadow 0.3s;
}

.total:hover { transform: translateY(-4px); box-shadow: var(--shadow-pop); }

.total__media { flex-shrink: 0; width: 220px; }

.total__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.total__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 6px 0;
  min-width: 0;
}

.total__title { font-size: 18px; font-weight: 700; line-height: 1.35; }

.total__place { font-size: 13.5px; font-weight: 600; color: var(--c-cyan); }


/* ---------- рекорды, архив ---------- */

.records { margin-bottom: 42px; }

.records__group {
  margin: 22px 0 12px;
  font-size: 17px;
  font-weight: 800;
  color: var(--c-cyan);
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.records-note { margin-bottom: 28px; font-size: 14px; color: var(--c-gray); }

.archive { margin-bottom: 40px; }

.archive__list { display: grid; gap: 12px; }

.archive__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 20px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.archive__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(150deg, var(--c-blue), var(--c-cyan));
  border-radius: 12px;
}

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

.archive__title { font-weight: 700; }

.archive__meta { font-size: 13px; color: var(--c-gray); }

.archive__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

/* ---------- результаты: протоколы SPLASH Meet Manager ---------- */

.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;
}

.section--meet { padding-bottom: 8px; }

.nowrap { white-space: nowrap; }

.res-block { margin-bottom: 52px; }

.res-block:last-child { margin-bottom: 0; }

.res-block[hidden] { display: none; }

.res-block .section__head { margin-bottom: 20px; }

.res-block .section__head .section__title--sm { margin-bottom: 0; }

.res-block__head { margin-bottom: 20px; }

.res-block__head .section__title--sm { margin-bottom: 6px; }

.res-block__note { padding-left: 18px; font-size: 14px; color: var(--c-gray); }

.res-about { margin-top: 52px; }

.tile__svg { display: block; color: var(--c-blue); }

.meet { min-height: 200px; }

.meet--ready { animation: meet-in 0.6s ease both; }

@keyframes meet-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

.meet-loading {
  padding: 48px 24px;
  text-align: center;
  font-weight: 600;
  color: var(--c-gray);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* карточка соревнования */

.meet-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr);
  overflow: hidden;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.meet-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--c-aqua), var(--c-blue));
}

.meet-card__main { min-width: 0; padding: 32px 34px 30px; }

.meet-card__side {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
  padding: 32px 28px 28px;
  background: var(--c-mist);
  border-left: 1px solid var(--c-line);
}

.meet-card__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.meet-card__src {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--c-gray);
}

.meet-card__title {
  margin-top: 14px;
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  color: var(--c-navy);
}

.meet-card__facts {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 1.1fr 1fr;
  gap: 12px;
  margin: 20px 0 0;
}

.meet-card__facts .facts__item { min-width: 0; padding: 12px 16px; }

.meet-card__facts .facts__value { font-size: 15.5px; line-height: 1.4; }

.meet-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.meet-card__side .meet-card__actions { flex-direction: column; align-items: stretch; }

.meet-card__side .meet-card__actions .btn { justify-content: center; }

.meet-card__main .meet-sync { margin-top: 20px; }

.meet-card--now .meet-progress { margin-top: 22px; }

.meet-card--now .meet-card__actions { margin-top: 22px; }

.meet-state {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  color: var(--c-navy);
  background: var(--c-ice);
  border-radius: 999px;
}

.meet-state--online { color: #b42318; background: #fdecea; }

.meet-state--upcoming { color: #075985; background: #e0f2fe; }

.meet-state__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ff5d5d;
  animation: pulse 1.6s infinite;
}

.meet-progress { display: flex; flex-direction: column; gap: 8px; }

.meet-progress__text { font-size: 14px; }

.meet-progress__text b { font-size: 18px; font-weight: 800; color: var(--c-navy); }

.meet-progress__bar {
  width: 100%;
  height: 8px;
  overflow: hidden;
  background: var(--c-line);
  border: 0;
  border-radius: 999px;
  appearance: none;
}

.meet-progress__bar::-webkit-progress-bar { background: var(--c-line); border-radius: 999px; }

.meet-progress__bar::-webkit-progress-value { background: linear-gradient(90deg, var(--c-aqua), var(--c-blue)); border-radius: 999px; }

.meet-progress__bar::-moz-progress-bar { background: linear-gradient(90deg, var(--c-aqua), var(--c-blue)); border-radius: 999px; }

.meet-sync {
  margin-top: auto;
  padding: 12px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--c-gray);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 12px;
}

.meet-sync--demo { color: #7a5a12; background: #fdf6df; border-color: #f0dfaa; }

.meet-sync--live { color: #0f766e; background: #effcf8; border-color: #b9ecdf; }

.meet-sync--error { color: #b42318; background: #fdecea; border-color: #f6c6c0; }

.meet-sync__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  vertical-align: 1px;
  border-radius: 50%;
  background: #14b8a6;
  animation: sync-pulse 1.8s infinite;
}

@keyframes sync-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(20, 184, 166, 0.5); }
  60% { box-shadow: 0 0 0 7px rgba(20, 184, 166, 0); }
}

/* вкладки, дни, фильтры */

.meet-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  margin-top: 36px;
}

.meet-bar__count { font-size: 13.5px; font-weight: 600; color: var(--c-gray); }

.meet-tabs {
  display: inline-flex;
  gap: 4px;
  padding: 5px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.meet-tabs__tab {
  padding: 10px 22px;
  font-size: 15px;
  font-weight: 700;
  color: var(--c-navy);
  background: none;
  border: 0;
  border-radius: 10px;
  transition: background 0.25s, color 0.25s, box-shadow 0.25s;
}

.meet-tabs__tab:hover { color: var(--c-blue); background: var(--c-ice); }

.meet-tabs__tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(120deg, var(--c-cyan), var(--c-blue));
  box-shadow: 0 6px 16px rgba(30, 167, 201, 0.35);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 16px;
  padding: 16px 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.filters--bar { margin: 0 0 34px; }

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

.filters__label {
  margin-right: 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--c-gray);
}

.filters__count { margin-left: auto; font-size: 13.5px; font-weight: 600; color: var(--c-gray); }

.chip {
  padding: 7px 15px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-navy);
  background: var(--c-ice);
  border: 0;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
}

.chip:hover { color: var(--c-blue); background: #d6ebf5; }

.chip[aria-pressed="true"] { color: #fff; background: var(--c-navy); }

.chip--toggle::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  vertical-align: 1px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.chip--toggle[aria-pressed="true"]::before { background: var(--c-aqua); border-color: var(--c-aqua); }

.select,
.search__input {
  font: inherit;
  font-size: 14px;
  color: var(--c-ink);
  background-color: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: 10px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.select {
  min-width: 150px;
  padding: 8px 36px 8px 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2306365e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 12px 8px;
  appearance: none;
  cursor: pointer;
}

.search { position: relative; flex: 1 1 220px; max-width: 320px; }

.search__input {
  width: 100%;
  padding: 8px 14px 8px 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5.2' fill='none' stroke='%235b7287' stroke-width='1.8'/%3E%3Cpath d='M11 11l3.6 3.6' stroke='%235b7287' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 13px center;
  background-size: 15px 15px;
}

.select:focus,
.search__input:focus {
  outline: none;
  border-color: var(--c-aqua);
  box-shadow: 0 0 0 3px rgba(39, 179, 217, 0.2);
}

.chip:focus-visible,
.meet-tabs__tab:focus-visible,
.meet-day:focus-visible,
.pdf-btn:focus-visible {
  outline: 3px solid rgba(39, 179, 217, 0.55);
  outline-offset: 2px;
}

.meet-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.meet-days[hidden] { display: none; }

.meet-day {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 18px;
  text-align: left;
  color: var(--c-ink);
  background: #fff;
  border: 2px solid transparent;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.meet-day:hover { transform: translateY(-2px); box-shadow: var(--shadow-pop); }

.meet-day--now { border-color: var(--c-aqua); }

.meet-day[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(150deg, var(--c-blue), var(--c-cyan));
  border-color: transparent;
  box-shadow: 0 10px 26px rgba(10, 93, 150, 0.3);
}

.meet-day__name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 18px;
  font-weight: 800;
}

.meet-day__now {
  padding: 2px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #b42318;
  background: #fdecea;
  border-radius: 999px;
}

.meet-day__date { font-size: 14px; font-weight: 600; }

.meet-day__short { display: none; font-weight: 600; }

.meet-day__meta { font-size: 12.5px; color: var(--c-gray); }

.meet-day[aria-selected="true"] .meet-day__meta { color: rgba(255, 255, 255, 0.85); }

/* сессии и строки программы */

.meet-panel { margin-top: 30px; }

.session { margin-bottom: 32px; }

.session:last-child { margin-bottom: 0; }

.session__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-bottom: 12px;
}

.session__title { font-size: 20px; font-weight: 800; color: var(--c-navy); }

.session__meta { font-size: 14.5px; font-weight: 600; color: var(--c-cyan); }

.session__count { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--c-gray); }

.proto {
  min-width: 0;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.proto th { padding: 12px 14px; }

.proto td { padding: 10px 14px; vertical-align: middle; }

.proto__n { width: 52px; font-weight: 700; color: var(--c-gray); }

.proto__time { width: 66px; font-weight: 800; color: var(--c-navy); }

.proto__dist { font-weight: 700; }

.proto__round,
.proto__age { color: var(--c-gray); }

.proto__age,
.proto__files { white-space: nowrap; }

.proto__files { width: 1%; }

@media (min-width: 1101px) {
  .proto { table-layout: fixed; }

  .proto th:nth-child(1) { width: 50px; }
  .proto th:nth-child(2) { width: 66px; }
  .proto th:nth-child(3) { width: 96px; }
  .proto th:nth-child(5) { width: 200px; }
  .proto th:nth-child(6) { width: 92px; }
  .proto th:nth-child(7) { width: 222px; }
  .proto th:nth-child(8) { width: 246px; }
}

.proto__row--award td { color: var(--c-gray); background: var(--c-mist); }

.proto__row--award .proto__dist { font-weight: 600; }

.proto__row--next td { background: #e9f7fc; }

.proto__row--next td:first-child { box-shadow: inset 4px 0 0 var(--c-aqua); }

.proto__none { color: var(--c-silver); }

.pstatus {
  display: inline-block;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 999px;
}

.pstatus--res { color: #0f766e; background: #ccfbf1; }

.pstatus--start { color: #075985; background: #e0f2fe; }

.pstatus--wait { color: var(--c-gray); background: #eef2f6; }

.pstatus--award { color: #8a6514; background: #fdf3d7; }

.next-badge {
  display: inline-block;
  margin: 3px 0 3px 6px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(120deg, var(--c-cyan), var(--c-blue));
  border-radius: 999px;
}

.pdf-pair { display: inline-flex; gap: 8px; }

.pdf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--c-blue);
  text-decoration: none;
  background: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: 9px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.pdf-btn:hover {
  color: #fff;
  background: linear-gradient(120deg, var(--c-cyan), var(--c-blue));
  border-color: transparent;
}

.pdf-btn--off,
.pdf-btn--off:hover {
  color: #9aabbb;
  background: transparent;
  border-color: var(--c-line);
  border-style: dashed;
  cursor: default;
}

.pdf-btn__icon { flex-shrink: 0; }

/* вкладка «Дистанции» */

.dist-group { margin-bottom: 32px; }

.dist-group:last-child { margin-bottom: 0; }

.dist-group__title {
  position: relative;
  margin-bottom: 14px;
  padding-left: 16px;
  font-size: 20px;
  font-weight: 800;
  color: var(--c-navy);
}

.dist-group__title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(var(--c-aqua), var(--c-blue));
}

.dist-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.dist-cols--1 { grid-template-columns: 1fr; }

.dist-col {
  overflow: hidden;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.dist-col__title {
  padding: 11px 18px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #fff;
  background: var(--c-navy);
}

.dist-col__empty { padding: 16px 18px; font-size: 14px; color: var(--c-gray); }

.dist-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  padding: 11px 18px;
  border-top: 1px solid var(--c-line);
  transition: background 0.2s;
}

.dist-item:first-child { border-top: 0; }

.dist-item:hover { background: var(--c-ice); }

.dist-item__d {
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--c-navy);
}

.dist-item__meta { font-size: 13px; color: var(--c-gray); }

.empty {
  padding: 40px 28px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.empty--page { padding: 60px 28px; }

.empty__title { font-size: 19px; font-weight: 800; color: var(--c-navy); }

.empty__text { max-width: 560px; margin: 8px auto 0; font-size: 15px; color: var(--c-gray); }

.empty__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 22px;
}

/* ближайшие дистанции (главная, обзор результатов) */

.meet-next__title {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.meet-next__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.meet-next__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px 10px 10px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(6, 54, 94, 0.06);
}

.meet-next__time {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 62px;
  padding: 8px 0;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: linear-gradient(150deg, var(--c-blue), var(--c-cyan));
  border-radius: 10px;
}

.meet-next__body { display: flex; flex-direction: column; min-width: 0; }

.meet-next__name { font-size: 15px; font-weight: 700; line-height: 1.35; }

.meet-next__meta { font-size: 12.5px; color: var(--c-gray); }

.meet-next__note,
.meet-next__empty { font-size: 12.5px; color: var(--c-gray); }

.meet-next__note { margin-top: auto; }

/* итоги, архив, рекорды */

.total__media { display: block; overflow: hidden; border-radius: 12px; }

.total__link { color: var(--c-ink); text-decoration: none; transition: color 0.2s; }

.total__link:hover { color: var(--c-blue); }

.total__pool { font-size: 13px; font-weight: 700; color: var(--c-navy); }

.total__facts { font-size: 14px; color: var(--c-gray); }

.total__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

.archive__icon--pool { flex-direction: column; font-size: 17px; line-height: 1; }

.archive__icon--pool small { font-size: 11px; font-weight: 700; opacity: 0.85; }

.archive__title--link { color: var(--c-ink); text-decoration: none; transition: color 0.2s; }

.archive__title--link:hover { color: var(--c-blue); }

.archive__meta .badge { margin-right: 4px; padding: 2px 9px; font-size: 11px; }

.records-pdf {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
  padding: 18px 22px;
  background: #fff;
  border-left: 5px solid var(--c-aqua);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.records-pdf__body { min-width: 0; }

.records-pdf__title { font-size: 17px; font-weight: 800; color: var(--c-navy); }

.records-pdf__text { margin-top: 2px; font-size: 14px; color: var(--c-gray); }

.records-pdf__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

/* уведомление-заглушка */

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 400;
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 14px 20px;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  background: var(--c-deep);
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s;
}

.toast--show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }

.toast__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--c-aqua) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Ccircle cx='6' cy='2.4' r='1.2' fill='%23fff'/%3E%3Cpath d='M6 5.2v5' stroke='%23fff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / 12px 12px;
}

@media (prefers-reduced-motion: reduce) {
  .meet--ready,
  .meet-state__dot,
  .meet-sync__dot { animation: none; }

  .toast { transition: none; }
}

/* адаптив раздела результатов */

@media (max-width: 1040px) {
  .meet-card { grid-template-columns: 1fr; }

  .meet-card__side { border-left: 0; border-top: 1px solid var(--c-line); }
}

@media (max-width: 900px) {
  .proto-wrap { overflow: visible; background: none; border-radius: 0; box-shadow: none; }

  .proto,
  .proto tbody,
  .proto tr,
  .proto td { display: block; }

  .proto thead { display: none; }

  .proto tbody { display: grid; gap: 10px; }

  .proto .proto__row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas:
      "n dist time"
      "g round age"
      "status status status"
      "files files files";
    align-items: center;
    gap: 4px 12px;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    box-shadow: var(--shadow-card);
  }

  .proto td { padding: 0; border: 0; }

  .proto__n { grid-area: n; width: auto; font-size: 13px; }

  .proto__n::before { content: '№ '; }

  .proto__dist { grid-area: dist; font-size: 16px; }

  .proto__time { grid-area: time; width: auto; font-size: 16px; text-align: right; }

  .proto__g { grid-area: g; font-size: 13px; color: var(--c-gray); }

  .proto__round { grid-area: round; font-size: 13px; }

  .proto__age { grid-area: age; font-size: 13px; text-align: right; }

  .proto__status { grid-area: status; margin-top: 6px; }

  .proto__files { grid-area: files; width: auto; margin-top: 8px; }

  .proto__files .pdf-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

  .proto__files .pdf-btn { min-height: 46px; font-size: 15px; }

  .proto .proto__row--award {
    grid-template-areas:
      "n dist time"
      "g round age"
      "status status status";
    padding: 10px 16px;
    background: var(--c-mist);
    border: 1px dashed var(--c-line);
    box-shadow: none;
  }

  .proto__row--award td,
  .proto__row--next td { background: none; }

  .proto__row--award .proto__files { display: none; }

  .proto .proto__row--next { background: #f2fbfe; box-shadow: 0 0 0 2px var(--c-aqua), var(--shadow-card); }

  .proto__row--next td:first-child { box-shadow: none; }
}

@media (max-width: 760px) {
  .dist-cols { grid-template-columns: 1fr; }

  .dist-item { grid-template-columns: 56px minmax(0, 1fr); }

  .dist-item .pdf-pair { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

  .dist-item .pdf-btn { min-height: 44px; font-size: 14px; }

  .records-pdf { flex-wrap: wrap; }

  .records-pdf__actions { margin-left: 0; }
}

@media (max-width: 640px) {
  .meet-card__main,
  .meet-card__side { padding: 24px 18px 22px; }

  .meet-card__facts { grid-template-columns: 1fr 1fr; }

  .meet-card__facts .facts__item:first-child,
  .meet-card__facts .facts__item:last-child { grid-column: 1 / -1; }

  .meet-bar { margin-top: 28px; }

  .meet-tabs { display: flex; width: 100%; }

  .meet-tabs__tab { flex: 1; padding: 10px 8px; font-size: 14px; }

  .meet-days { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 8px; }

  .meet-day { padding: 10px 11px; }

  .meet-day__name { font-size: 15px; }

  .meet-day__date,
  .meet-day__phase { display: none; }

  .meet-day__short { display: block; }

  .meet-day__short,
  .meet-day__meta { font-size: 12px; line-height: 1.4; }

  .meet-day__now { padding: 1px 7px; font-size: 10px; }

  .filters { gap: 12px; padding: 14px; }

  .filters__group { width: 100%; }

  .filters__group .select { flex: 1; }

  .search { flex-basis: 100%; max-width: none; }

  .filters__count { margin-left: 0; }

  .session__count { width: 100%; margin-left: 0; }

  .total__actions .btn,
  .meet-card__actions .btn { flex: 1 1 auto; justify-content: center; }

  .records-pdf { padding: 16px; }
}

/* ---------- люди ---------- */

.person {
  padding: 30px 24px;
  text-align: center;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.person:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }

.avatar {
  width: 110px;
  height: 110px;
  margin: 0 auto 16px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(6, 54, 94, 0.22);
}

.person__name { font-size: 18px; font-weight: 800; color: var(--c-navy); }

.person__role { margin-top: 4px; font-size: 13.5px; font-weight: 700; color: var(--c-cyan); }

.person__rank { margin-top: 2px; font-size: 13px; font-weight: 600; color: var(--c-gold); }

.person__text { margin-top: 10px; font-size: 13.5px; color: var(--c-gray); }

/* ---------- шаги ---------- */

.steps { display: grid; gap: 14px; counter-reset: step; }

.steps__item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 22px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.steps__num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(150deg, var(--c-cyan), var(--c-blue));
  border-radius: 50%;
}

.steps__text { font-size: 15.5px; font-weight: 500; }

/* ---------- фотоальбом ---------- */

.album-head { margin-bottom: 30px; }

.album-head .page-head__title { color: var(--c-navy); }

.album-head .page-head__sub { color: var(--c-gray); }

.album-head__desc { margin-top: 14px; max-width: 760px; font-size: 15.5px; color: var(--c-ink); }

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

.album__shot {
  padding: 0;
  overflow: hidden;
  background: none;
  border: 0;
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.3s, box-shadow 0.3s;
}

.album__shot:hover { transform: scale(1.025); box-shadow: var(--shadow-pop); }

.album__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.lightbox[hidden] { display: none; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: rgba(2, 18, 33, 0.92);
}

.lightbox__img {
  max-width: min(1100px, 100%);
  max-height: 84vh;
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox__close,
.lightbox__nav {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  font-size: 26px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 0;
  border-radius: 50%;
  transition: background 0.25s;
}

.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(255, 255, 255, 0.28); }

.lightbox__close { top: 22px; right: 22px; }

.lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 34px; }

.lightbox__nav--prev { left: 22px; }

.lightbox__nav--next { right: 22px; }

/* ---------- ссылочные карточки разделов ---------- */

.tile {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--c-ink);
  transition: transform 0.3s, box-shadow 0.3s;
}

.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-pop); }

.tile__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  font-size: 24px;
  background: var(--c-ice);
  border-radius: 14px;
}

.tile__title { font-size: 18px; font-weight: 800; color: var(--c-navy); }

.tile__text { font-size: 14px; color: var(--c-gray); }

.tile__more { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--c-cyan); }

.tile__more::after { content: ' →'; }

/* ---------- текстовый контент (устав, контакты) ---------- */

.prose {
  padding: 36px 40px 44px;
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow-card);
}

.prose h2 {
  margin: 30px 0 12px;
  font-size: 21px;
  font-weight: 800;
  color: var(--c-navy);
}

.prose h2:first-child { margin-top: 0; }

.prose p { margin-top: 12px; font-size: 16px; line-height: 1.75; }

.prose ul { margin-top: 12px; display: grid; gap: 8px; }

.prose li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 1.6;
}

.prose li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-aqua);
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 26px 28px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.contact-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--c-cyan);
}

.contact-card__value { font-size: 17px; font-weight: 700; color: var(--c-navy); }

.contact-card__note { font-size: 13.5px; color: var(--c-gray); }

.map-stub {
  margin-top: 26px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.map-stub__img { width: 100%; }

/* ---------- подвал ---------- */

.footer {
  color: rgba(255, 255, 255, 0.82);
  background: var(--c-deep);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 44px;
  padding-top: 56px;
  padding-bottom: 46px;
}

.logo--footer .logo__abbr { color: #fff; }

.footer__org {
  margin-top: 16px;
  font-size: 12px;
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.6);
}

.footer__contact { margin-top: 10px; font-size: 14px; }

.footer__title {
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--c-aqua);
}

.footer__list { display: grid; gap: 9px; }

.footer__link {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  transition: color 0.2s;
}

.footer__link:hover { color: var(--c-aqua); }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 18px;
  padding-bottom: 18px;
}

/* ---------- появление при прокрутке ---------- */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal--in {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__wave { animation: none; }
}

/* ---------- адаптивность ---------- */

@media (max-width: 1100px) {
  .logo__name { display: none; }

  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .burger { display: flex; }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    width: min(360px, 88vw);
    padding: 86px 20px 30px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -20px 0 60px rgba(3, 41, 74, 0.25);
    transform: translateX(100%);
    transition: transform 0.35s;
    visibility: hidden;
  }

  .nav--open { transform: translateX(0); visibility: visible; }

  .burger { position: relative; z-index: 220; }

  .nav__list { flex-direction: column; gap: 2px; }

  .nav__item { display: flex; flex-wrap: wrap; align-items: center; }

  .nav__link { flex-grow: 1; white-space: normal; }

  .nav__caret { display: none; }

  .nav__expand {
    display: block;
    width: 42px;
    height: 42px;
    background: var(--c-ice);
    border: 0;
    border-radius: 10px;
    position: relative;
  }

  .nav__expand::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--c-navy);
    border-bottom: 2px solid var(--c-navy);
    transform: translate(-50%, -65%) rotate(45deg);
    transition: transform 0.3s;
  }

  .nav__item--open > .nav__expand::before { transform: translate(-50%, -35%) rotate(225deg); }

  .nav__sub,
  .nav__sub .nav__sub {
    position: static;
    min-width: 0;
    width: 100%;
    padding: 0 0 0 16px;
    box-shadow: none;
    border-radius: 0;
    opacity: 1;
    visibility: hidden;
    transform: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
  }

  .nav__item--open > .nav__sub {
    visibility: visible;
    max-height: 700px;
  }

  .grid--3, .grid--news { grid-template-columns: repeat(2, 1fr); }

  .grid--news .card--big { grid-row: auto; grid-column: span 2; }

  .total { flex-wrap: wrap; }

  .total__media { width: 100%; }

  .total__img { aspect-ratio: 16 / 7; }

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

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

@media (max-width: 640px) {
  .container { padding: 0 16px; }

  .section { padding: 52px 0; }

  .hero__inner { padding-top: 56px; padding-bottom: 96px; }

  .hero__stats { gap: 24px; }

  .grid--2, .grid--3, .grid--4, .grid--news { grid-template-columns: 1fr; }

  .grid--news .card--big { grid-column: auto; }

  .album { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .event { flex-wrap: wrap; }

  .event__arrow { display: none; }

  .article { padding: 24px 18px 32px; }

  .prose { padding: 24px 18px 32px; }

  .footer__grid { grid-template-columns: 1fr; gap: 30px; }

  .archive__item { flex-wrap: wrap; }

  .archive__actions { margin-left: 68px; }
}
