/* =========================================================
   Хоккейная академия Юрия Ляпкина
   Фирменные цвета — в блоке :root ниже, меняйте только там.
   ========================================================= */

/* ---------- Шрифты (лежат на сайте, SIL OFL 1.1 — запросов к Google нет) ---------- */
/* Inter · cyrillic */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Inter · latin-ext */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter · latin */
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Montserrat · cyrillic */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../fonts/montserrat-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* Montserrat · latin-ext */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../fonts/montserrat-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Montserrat · latin */
@font-face {
  font-family: "Montserrat"; font-style: normal; font-weight: 600 800; font-display: swap;
  src: url("../fonts/montserrat-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Цвета и размеры ---------- */
:root {
  --navy: #1F2C4C;          /* тёмно-синий — основной */
  --navy-deep: #141d35;
  --red: #BF0821;           /* красный — акцент */
  --red-dark: #9d061b;
  --white: #ffffff;

  --ice: #EEF5FA;           /* цвет льда — фон сайта */
  --ice-2: #DDEAF3;
  --line: #C9D6E3;
  --muted: #55627D;         /* вторичный текст */

  --font-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", Arial, sans-serif;

  --header-h: 84px;
  --radius: 14px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ice);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;   /* страховка: ничто не должно раздвигать страницу вбок */
}
body.is-locked { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 6px; }

.container {
  width: 100%;
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(16px, 4vw, 48px);
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: 0 24px;
  border: 2px solid transparent; border-radius: 999px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn--block { width: 100%; }

.btn--red { background: var(--red); color: var(--white); box-shadow: 0 6px 18px rgba(191, 8, 33, .28); }
.btn--red:hover { background: var(--red-dark); box-shadow: 0 8px 22px rgba(191, 8, 33, .38); transform: translateY(-1px); }

.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }

/* Кнопка «Оплата» в виде шайбы: тёмный диск с бликом и иконкой шайбы */
.btn-puck {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 22px 0 8px;
  border-radius: 999px;
  background: radial-gradient(120% 140% at 30% 0%, #35476f 0%, #1b2744 45%, #0c1426 100%);
  color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .02em;
  text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), inset 0 -3px 6px rgba(0, 0, 0, .35), 0 6px 14px rgba(20, 29, 53, .25);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.btn-puck::after { /* блик, пробегающий по шайбе при наведении */
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg); transition: left .6s var(--ease);
}
.btn-puck:hover { transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), inset 0 -3px 6px rgba(0, 0, 0, .35), 0 10px 20px rgba(20, 29, 53, .32); }
.btn-puck:hover::after { left: 120%; }
.btn-puck__icon { width: 34px; height: 34px; flex: none; transition: transform .5s var(--ease); }
.btn-puck:hover .btn-puck__icon { transform: translateX(3px) rotate(-14deg); }

/* ---------- Шапка ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s, backdrop-filter .3s;
}
.header.is-stuck {
  background: rgba(238, 245, 250, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(31, 44, 76, .10);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__logo { width: 56px; height: 56px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__sub { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.brand__name { font-family: var(--font-head); font-weight: 800; font-size: 17px; letter-spacing: .04em; text-transform: uppercase; }

.nav { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2vw, 32px); flex: 1; }
.nav__link {
  position: relative; padding: 8px 0;
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.nav__link::after { /* красная «линия льда» под пунктом */
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px;
  background: var(--red); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link:focus-visible::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 12px; flex: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 32px) 0 64px;
  /* лёд: светлый градиент + блики; шум зернистости подключается ниже */
  background:
    radial-gradient(900px 520px at 78% 38%, rgba(255, 255, 255, .95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(700px 500px at 8% 100%, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%),
    linear-gradient(180deg, #F4F9FC 0%, var(--ice) 45%, var(--ice-2) 100%);
}
.hero::before { /* зернистость льда (встроенный SVG-шум, без внешних файлов) */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .12  0 0 0 0 .18  0 0 0 0 .3  0 0 0 .09 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.ice-canvas { /* холст царапин — создаётся из js/main.js */
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none;
}

.hero__grid {
  display: grid; align-items: center; gap: clamp(24px, 4vw, 64px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--navy);
}
.eyebrow__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(191, 8, 33, .16); }

.hero__title {
  margin-top: 18px;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(2.6rem, 5.1vw, 4.7rem);     /* «НАЧИНАЕТСЯ» — самое длинное слово: размер подобран под ширину колонки */
  line-height: .96; letter-spacing: -.02em; text-transform: uppercase;
}
.hero__title em { font-style: normal; color: var(--red); }

.hero__lead { margin-top: 24px; max-width: 30em; font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); }

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

.facts { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 48px; padding-top: 28px; border-top: 1px solid rgba(31, 44, 76, .14); }
.facts__item { display: flex; align-items: center; gap: 12px; }
.facts__item b { font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1; color: var(--red); }
.facts__item span { font-size: 13px; line-height: 1.3; color: var(--muted); }

/* Видео в первом экране: вертикальная карточка 3:4, слегка наклонена; за ней — «круг вбрасывания» */
.hero__video { position: relative; justify-self: center; width: min(100%, 440px); margin: 0; isolation: isolate; }
.hero__video::before { /* красный круг вбрасывания за карточкой */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 110%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 5px solid var(--red); opacity: .85;
}
.hero__video::after { /* и тонкий внешний контур */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: 124%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; border: 2px solid rgba(31, 44, 76, .12);
}
.hero__video-el {
  display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; background: #cfdce8;
  border-radius: 28px; border: 6px solid var(--white);
  box-shadow: 0 30px 60px rgba(31, 44, 76, .26), 0 4px 12px rgba(31, 44, 76, .10);
  transform: rotate(1.6deg); transition: transform .6s var(--ease), box-shadow .6s;
}
.hero__video:hover .hero__video-el { transform: rotate(0); }
@media (max-width: 1100px) { .hero__video::after { display: none; } }
.video-toggle {
  position: absolute; right: 18px; bottom: 18px; width: 46px; height: 46px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(20, 29, 53, .72); color: var(--white);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  transition: background-color .25s, transform .25s var(--ease);
}
.video-toggle:hover { background: var(--red); transform: scale(1.08); }
.video-toggle svg { width: 22px; height: 22px; fill: currentColor; }
.video-toggle__play { display: none; }
.hero__video.is-paused .video-toggle__pause { display: none; }
.hero__video.is-paused .video-toggle__play { display: block; }

@media (prefers-reduced-motion: no-preference) {
  .hero__video { animation: poster-in 1s .15s var(--ease) both; }
  .hero__content > * { animation: rise .8s var(--ease) both; }
  .hero__content > :nth-child(2) { animation-delay: .06s; }
  .hero__content > :nth-child(3) { animation-delay: .12s; }
  .hero__content > :nth-child(4) { animation-delay: .18s; }
  .hero__content > :nth-child(5) { animation-delay: .24s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes poster-in { from { opacity: 0; transform: translateX(60px); } }

/* ---------- Модальное окно записи ---------- */
.modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(20, 29, 53, .55);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .4s;
}
.modal__panel {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100svh - 32px); overflow: auto;
  background: var(--white); border-radius: 22px; padding: 36px 36px 32px;
  box-shadow: 0 30px 80px rgba(20, 29, 53, .45);
  opacity: 0; transform: translateY(24px) scale(.97);
  transition: opacity .4s .1s, transform .5s .1s var(--ease);
}
.modal__panel::before { /* красная полоса сверху */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--red);
}
.modal.is-open .modal__scrim { opacity: 1; }
.modal.is-open .modal__panel { opacity: 1; transform: none; }

.modal__close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 50%;
  background: var(--ice); color: var(--navy); transition: background-color .2s, transform .3s var(--ease);
}
.modal__close svg { width: 20px; height: 20px; }
.modal__close:hover { background: var(--ice-2); transform: rotate(90deg); }

.modal__title { margin-top: 14px; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 4vw, 1.9rem); line-height: 1.12; text-transform: uppercase; letter-spacing: -.01em; }
.modal__lead { margin-top: 10px; font-size: 15px; color: var(--muted); }

.form { margin-top: 22px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--white);
  font: inherit; font-size: 16px; color: var(--navy);
  transition: border-color .2s, box-shadow .2s;
}
.field input::placeholder { color: #93a0b5; }
.field input:focus, .field select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(31, 44, 76, .12); }
.field.is-invalid input, .field.is-invalid select { border-color: var(--red); box-shadow: 0 0 0 4px rgba(191, 8, 33, .10); }
.field select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'><path d='M1 1l6 6 6-6' fill='none' stroke='%231F2C4C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") no-repeat right 14px center; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--red); cursor: pointer; }
.check a { color: var(--navy); }
.check.is-invalid { color: var(--red); }

.form__status { min-height: 1.4em; font-size: 14px; color: var(--red); }
.form__status:empty { min-height: 0; }
#form-submit[disabled] { opacity: .6; pointer-events: none; }

.modal__done { text-align: center; padding: 12px 0 4px; }
.modal__done .modal__title { margin-top: 18px; }
.modal__done .btn { margin-top: 26px; }
.modal__done[hidden], .modal__body[hidden] { display: none; }
.done__badge { width: 68px; height: 68px; margin: 8px auto 0; display: grid; place-items: center; border-radius: 50%; background: var(--red); color: var(--white); }
.done__badge svg { width: 34px; height: 34px; }

/* ---------- Трескающийся лёд (создаётся из js/main.js) ---------- */
.crack {
  position: fixed; inset: 0; z-index: 2000; pointer-events: none;
  transition: opacity .6s ease;
}
.crack.is-fading { opacity: 0; }
.crack svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.crack__flash {
  position: absolute; inset: 0;
  background: radial-gradient(circle at var(--cx) var(--cy), rgba(255, 255, 255, .95) 0, rgba(255, 255, 255, .55) 14%, rgba(255, 255, 255, 0) 46%);
  animation: flash .7s ease-out both;
}
@keyframes flash { from { opacity: 1; } to { opacity: 0; } }

/* ---------- Адаптив ---------- */
/* Шапка в одну строку помещается от 1100 px; на меньших экранах меню — вторая строка (все пункты на виду, листаются пальцем) */
@media (max-width: 1320px) { .brand__text { display: none; } }
.nav__link.is-active { color: var(--red); }
.nav__link.is-active::after { transform: scaleX(1); }

@media (max-width: 1099px) {
  :root { --header-h: 120px; }
  .brand__logo { width: 48px; height: 48px; }
  .header { background: rgba(238, 245, 250, .96); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(31, 44, 76, .10); }
  .header__inner { height: 72px; }
  .header__actions { margin-left: auto; }
  .nav {
    position: absolute; left: 0; right: 0; top: 72px; height: 48px;
    justify-content: flex-start; gap: 8px; padding: 0 clamp(16px, 4vw, 48px);
    overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    border-top: 1px solid rgba(31, 44, 76, .08);
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav__link { flex: none; align-self: center; padding: 7px 14px; border-radius: 999px; background: rgba(31, 44, 76, .06); font-size: 14px; }
  .nav__link::after { display: none; }
  .nav__link.is-active { background: var(--navy); color: var(--white); }
}
@media (max-width: 560px) {
  .header__inner { gap: 10px; }
  .header__actions { gap: 8px; }
  .header__pay { min-height: 42px; padding: 0 14px 0 6px; font-size: 14px; }
  .header__pay .btn-puck__icon { width: 30px; height: 30px; }
  .header__cta { min-height: 42px; padding: 0 16px; font-size: 14px; }
}

@media (max-width: 900px) {
  .hero__title { font-size: clamp(2.6rem, 11.5vw, 5.4rem); }
  .hero { align-items: flex-start; padding-bottom: 40px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__video { width: min(78%, 340px); margin: 28px auto 0; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand__text { display: none; }
  .header__cta { min-height: 44px; padding: 0 18px; }
  .hero__actions .btn { width: 100%; }
  .facts { gap: 18px 24px; }
  .facts__item b { font-size: 1.7rem; }
  .modal { align-items: flex-end; padding: 0; }
  .modal__panel { max-width: none; max-height: 94svh; border-radius: 22px 22px 0 0; padding: 32px 20px 24px; }
  .field-row { grid-template-columns: 1fr; }
}

/* Если пользователь просил поменьше анимации — отключаем движение */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =========================================================
   ОБЩИЕ ЭЛЕМЕНТЫ СЕКЦИЙ
   ========================================================= */
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-title {
  margin-top: 14px;
  font-family: var(--font-head); font-weight: 800;
  font-size: clamp(1.7rem, 7.6vw, 4.2rem);
  line-height: 1; letter-spacing: -.02em; text-transform: uppercase;
}
.section-title em { font-style: normal; color: var(--red); }
.section-lead { margin-top: 18px; font-size: clamp(1.02rem, 1.3vw, 1.2rem); color: var(--muted); }

.eyebrow--light { color: var(--white); }
.eyebrow--light .eyebrow__dot { box-shadow: 0 0 0 4px rgba(191, 8, 33, .35); }
.section-title--light { color: var(--white); }
.section-title--light em { color: #ff4d63; }   /* красный чуть светлее — чтобы читался на тёмно-синем */

.btn--outline-light { border-color: rgba(255, 255, 255, .55); color: var(--white); background: transparent; }
.btn--outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }

/* Плавное появление блоков при прокрутке (без JS всё видно сразу) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* =========================================================
   ЛЕГЕНДА (О нас) — тёмная секция, «хоккейный свитер»
   ========================================================= */
.legend {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(80px, 11vw, 150px) 0 clamp(72px, 10vw, 130px);
  background:
    radial-gradient(900px 600px at 20% 30%, rgba(63, 86, 140, .55), rgba(63, 86, 140, 0) 70%),
    radial-gradient(700px 500px at 100% 100%, rgba(191, 8, 33, .22), rgba(191, 8, 33, 0) 70%),
    linear-gradient(180deg, #1F2C4C 0%, #16203a 100%);
  color: var(--white);
}
.legend::before { /* полосы свитера по верхней кромке */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 22px; z-index: 1;
  background: linear-gradient(180deg, var(--red) 0 6px, transparent 6px 9px, var(--white) 9px 12px, transparent 12px 15px, var(--red) 15px 22px);
}
.legend::after { /* зернистость */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .07 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.legend__ghost { /* гигантская контурная надпись на фоне */
  position: absolute; right: -2vw; bottom: -3vw; z-index: -1; pointer-events: none; user-select: none;
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: .8;
  font-size: clamp(7rem, 22vw, 22rem); letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .09);
}

.legend__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: clamp(32px, 6vw, 96px); }

.legend__poster { perspective: 1200px; justify-self: center; width: 100%; max-width: 470px; }
.legend__frame {
  position: relative; border-radius: 6px; padding: 10px; background: #f3ead8;
  box-shadow: 0 40px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .12);
  transform: rotate(-2.2deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease);
  will-change: transform;
}
.legend__frame img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; }
.legend__frame::before, .legend__frame::after { /* кусочки ленты */
  content: ""; position: absolute; width: 96px; height: 28px; z-index: 2;
  background: rgba(255, 255, 255, .55); box-shadow: 0 2px 6px rgba(0, 0, 0, .18);
}
.legend__frame::before { top: -12px; left: -26px; transform: rotate(-38deg); }
.legend__frame::after { bottom: -12px; right: -26px; transform: rotate(-38deg); }
.legend__poster.is-tilting .legend__frame { transition: transform .12s linear; }

.legend__lead { margin-top: 26px; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.2rem, 2.2vw, 1.7rem); line-height: 1.3; color: var(--white); max-width: 26em; }
.legend__copy { margin-top: 20px; display: grid; gap: 14px; max-width: 38em; color: rgba(255, 255, 255, .78); }

.medals { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 36px; padding: 24px 0; border-block: 1px solid rgba(255, 255, 255, .16); }
.medals__item { display: flex; align-items: center; gap: 12px; }
.medals__item b { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1; color: var(--white); }
.medals__item span { font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, .7); }

.legend__quote {
  position: relative; margin: 32px 0 0; padding-left: 22px;
  font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.3;
  border-left: 4px solid var(--red);
}
.legend__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

/* =========================================================
   ТРЕНЕРЫ
   ========================================================= */
.coaches { position: relative; padding: clamp(72px, 10vw, 130px) 0; background: linear-gradient(180deg, var(--ice-2) 0%, var(--ice) 22%, var(--ice) 100%); }

.coaches__grid { --gap: clamp(16px, 2vw, 28px); display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }

.coach {
  position: relative; display: flex; flex-direction: column;
  flex: 0 1 calc((100% - 2 * var(--gap)) / 3);
  padding: 14px 14px 26px; border-radius: 28px; color: var(--white);
  background: linear-gradient(180deg, #2a3c68 0%, #1F2C4C 38%, #141d35 100%);
  box-shadow: 0 18px 40px rgba(31, 44, 76, .22), inset 0 1px 0 rgba(255, 255, 255, .12);
  transition: translate .3s var(--ease), box-shadow .3s;
}
@media (hover: hover) { .coach:hover { translate: 0 -4px; box-shadow: 0 26px 52px rgba(31, 44, 76, .30), inset 0 1px 0 rgba(255, 255, 255, .16); } }

/* Окно с фото — арка, как в оригинальных карточках */
.coach__photo {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 332 / 425;
  border-radius: 50% 50% 22px 22px / 39% 39% 22px 22px;
  background: #cfdce8;
}
.coach__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* Текст карточки */
.coach__body { flex: 1; padding: 22px 10px 0; }
.coach__role {
  display: inline-block; padding: 5px 12px; border-radius: 999px;
  background: var(--red); color: var(--white);
  font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}
.coach__name {
  margin-top: 14px; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.15; text-transform: uppercase; letter-spacing: .01em;
}
.coach__list { margin-top: 14px; display: grid; gap: 8px; }
.coach__list li {
  position: relative; padding-left: 18px; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .85);
}
.coach__list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 2px rgba(191, 8, 33, .28); }

/* карточка тренера одновременно «выезжает» при прокрутке и приподнимается при наведении */
@media (prefers-reduced-motion: no-preference) {
  .js .coach[data-reveal] {
    transition: opacity .8s var(--ease), transform .8s var(--ease), translate .5s var(--ease), box-shadow .5s;
    transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s;
  }
}

/* ---------- Адаптив для новых секций ---------- */
@media (max-width: 1000px) {
  .coach { flex-basis: calc((100% - var(--gap)) / 2); }
}
@media (max-width: 860px) {
  .legend__grid { grid-template-columns: 1fr; }
  .legend__poster { max-width: 380px; }
}
@media (max-width: 640px) {
  .coach { flex-basis: 100%; max-width: 440px; }
  .legend__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .legend__frame { transform: none; }
}

/* =========================================================
   РАСПИСАНИЕ И ЦЕНЫ
   ========================================================= */
.pricing { padding: clamp(72px, 10vw, 130px) 0; background: #F8FBFD; border-top: 1px solid rgba(31, 44, 76, .06); }

/* Вкладки филиалов (без JS скрыты — тогда видны все филиалы подряд) */
.tabs { display: none; gap: 6px; padding: 6px; margin-bottom: 20px; border-radius: 999px; background: var(--ice); }
.js .tabs { display: inline-flex; }
.tab {
  position: relative; padding: 12px 24px; border: 0; border-radius: 999px; background: transparent; color: var(--navy);
  font-family: var(--font-head); font-weight: 700; font-size: 14px; letter-spacing: .02em; white-space: nowrap;
  transition: background-color .25s, color .25s, box-shadow .25s;
}
.tab:hover { background: rgba(31, 44, 76, .08); }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); box-shadow: 0 6px 16px rgba(31, 44, 76, .28); }
.tab[aria-selected="true"]::after { /* красная «шайба» под активной вкладкой */
  content: ""; position: absolute; left: 50%; bottom: 5px; width: 18px; height: 3px; margin-left: -9px; border-radius: 2px; background: var(--red);
}

.branch {
  padding: clamp(20px, 3vw, 36px); border-radius: 28px; background: var(--white);
  border: 1px solid rgba(31, 44, 76, .10); box-shadow: 0 20px 50px rgba(31, 44, 76, .07);
}
.branch + .branch { margin-top: 20px; }                     /* без JS — филиалы идут подряд */
.js .branch + .branch { margin-top: 0; }
.branch:not([hidden]) { animation: panel-in .5s var(--ease) both; }
@keyframes panel-in { from { opacity: 0; transform: translateY(12px); } }

.branch__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 24px; }
.branch__name { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; }
.branch__addr { margin-top: 6px; font-size: 15px; color: var(--muted); }
.branch__addr a { color: var(--red); font-weight: 600; text-underline-offset: 3px; }
.branch__meta { padding: 8px 16px; border-radius: 999px; background: var(--ice); font-size: 13px; font-weight: 600; white-space: nowrap; }

/* Недельная сетка */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.day { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 16px 10px 12px; border-radius: 18px; background: var(--ice); transition: background-color .3s, color .3s; }
.day__name { text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.day__name abbr { text-decoration: none; }
.day--weekend .day__name { color: var(--red); }
.slots { display: grid; gap: 6px; }
.slot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 9px 10px 9px 12px; border-radius: 10px; background: var(--white); border-left: 3px solid var(--navy);
}
.slot b { font-family: var(--font-head); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.slot span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.slot--ofp { border-left-color: var(--red); }
.day__rest { margin: auto 0; padding: 14px 0; text-align: center; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8d9ab0; }
.day--rest { background: transparent; box-shadow: inset 0 0 0 1px rgba(31, 44, 76, .12); }
.day--rest .day__name { color: #8d9ab0; }
.day__tag { text-align: center; font-size: 11px; font-weight: 700; color: var(--red); letter-spacing: .04em; }

/* Сегодняшний день подсвечивается (js/main.js) */
.day.is-today { background: var(--navy); color: var(--white); box-shadow: 0 12px 26px rgba(31, 44, 76, .28); }
.day.is-today .day__name, .day.is-today .day__rest { color: var(--white); }
.day.is-today .day__rest { opacity: .7; }
.day.is-today .slot { background: rgba(255, 255, 255, .10); }
.day.is-today .slot span { color: rgba(255, 255, 255, .72); }
.day.is-today::before {
  content: "сегодня"; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  padding: 2px 9px; border-radius: 999px; background: var(--red); color: var(--white);
  font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.branch__note { margin-top: 18px; padding-left: 14px; border-left: 3px solid var(--red); font-size: 14px; color: var(--muted); }

/* Социальная программа (Лыткарино) */
.program {
  display: flex; align-items: center; gap: 20px; margin-bottom: 22px; padding: 16px 22px 16px 16px;
  border-radius: 22px; background: #FBF6E6; border: 1px solid rgba(191, 8, 33, .15);
}
.program__badge { width: 96px; height: auto; flex: none; }
.program__text { font-size: 14px; color: var(--muted); }
.program__kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.program__title { font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; color: var(--navy); line-height: 1.2; margin: 2px 0 4px; }

.schedule__foot { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* Абонементы */
.plans-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin: clamp(56px, 8vw, 96px) 0 28px; }
.plans-title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.6rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; }
.plans-title span { color: var(--red); white-space: nowrap; }
.plans-free { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 10px; border-radius: 999px; background: var(--ice); font-size: 14px; font-weight: 600; }
.plans-free svg { width: 30px; height: 30px; flex: none; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 880px; gap: clamp(14px, 2vw, 24px); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 30px 28px 28px; border-radius: 26px;
  background: var(--white); border: 1px solid rgba(31, 44, 76, .10); box-shadow: 0 16px 40px rgba(31, 44, 76, .06);
  transition: translate .4s var(--ease), box-shadow .4s;
}
.plan:hover { translate: 0 -4px; box-shadow: 0 24px 50px rgba(31, 44, 76, .13); }
.plan__badge {
  align-self: flex-start; padding: 4px 12px; border-radius: 999px; background: var(--ice);
  font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
}
.plan__badge--red { background: var(--red); color: var(--white); }
.plan__name { margin-top: 18px; font-family: var(--font-head); font-weight: 800; font-size: 1.7rem; line-height: 1; text-transform: uppercase; }
.plan__price { margin-top: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.plan__price i { font-style: normal; font-size: 15px; color: var(--muted); }
.plan__sum { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1; letter-spacing: -.02em; white-space: nowrap; }
.plan__price span { font-size: 14px; color: var(--muted); }
.plan__price--text { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.plan__list { flex: 1; display: grid; align-content: start; gap: 12px; margin: 24px 0 28px; padding-top: 22px; border-top: 1px solid rgba(31, 44, 76, .10); }
.plan__list li {
  position: relative; padding-left: 30px; font-size: 15px; line-height: 1.4;
}
.plan__list li::before {
  content: ""; position: absolute; left: 0; top: .1em; width: 20px; height: 20px; border-radius: 50%; background: var(--red)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 100% no-repeat;
}
.plan--main { background: linear-gradient(170deg, #2b3d69 0%, #1F2C4C 45%, #141d35 100%); color: var(--white); border-color: transparent; box-shadow: 0 26px 56px rgba(31, 44, 76, .35); }
.plan--main .plan__badge { background: var(--red); color: var(--white); }
.plan--main .plan__price i, .plan--main .plan__price span { color: rgba(255, 255, 255, .7); }
.plan--main .plan__list { border-top-color: rgba(255, 255, 255, .16); }
.plan--main:hover { box-shadow: 0 34px 64px rgba(31, 44, 76, .42); }
.plan--soft { background: var(--ice); border-style: dashed; border-color: rgba(191, 8, 33, .4); box-shadow: none; }

/* карточки одновременно «выезжают» при прокрутке и приподнимаются при наведении */
@media (prefers-reduced-motion: no-preference) {
  .js .plan[data-reveal] {
    transition: opacity .8s var(--ease), transform .8s var(--ease), translate .4s var(--ease), box-shadow .4s;
    transition-delay: var(--d, 0s), var(--d, 0s), 0s, 0s;
  }
}

@media (max-width: 1000px) {
  /* неделя превращается в список: день слева, время справа */
  .week { grid-template-columns: 1fr; gap: 8px; }
  .day { flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; }
  .day__name { width: 38px; flex: none; text-align: left; }
  .slots { display: flex; flex-wrap: wrap; gap: 8px; }
  .day__rest { margin: 0; padding: 0; text-align: left; }
  .day__tag { margin-left: auto; text-align: right; }
  .day.is-today::before { top: 50%; left: auto; right: 14px; transform: translateY(-50%); }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 640px) {
  .js .tabs { display: grid; grid-template-columns: 1fr 1fr; border-radius: 26px; width: 100%; }
  .tab { padding: 12px 8px; }
  .program { flex-direction: column; text-align: center; padding: 20px; }
  .branch__meta { white-space: normal; }
  .branch { padding: 16px; border-radius: 22px; }
  .day { padding: 10px 12px; gap: 10px; }
  .day__name { width: 30px; }
  .slots { gap: 6px; }
  .slot { gap: 6px; padding: 7px 8px 7px 10px; }
  .slot b { font-size: 15px; }
  .slot span { font-size: 10px; }
}

/* =========================================================
   БЛАГОТВОРИТЕЛЬНЫЙ МАТЧ И СОЦПРОЕКТ — красный акцентный блок
   ========================================================= */
.btn--white { background: var(--white); color: var(--red); box-shadow: 0 8px 22px rgba(0, 0, 0, .22); }
.btn--white:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); }
.eyebrow__dot--white { background: var(--white); box-shadow: 0 0 0 4px rgba(255, 255, 255, .28); }

.charity {
  position: relative; isolation: isolate; overflow: hidden; color: var(--white);
  padding: clamp(80px, 11vw, 150px) 0 clamp(72px, 10vw, 130px);
  background:
    radial-gradient(800px 500px at 90% 0%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%),
    linear-gradient(135deg, #c8091f 0%, #BF0821 45%, #8f0518 100%);
}
.charity::before { /* тонкие «следы коньков» по диагонали */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .07) 0 1px, transparent 1px 38px);
}
.charity__ghost {
  position: absolute; left: -2vw; bottom: -2.5vw; z-index: -1; pointer-events: none; user-select: none;
  font-family: var(--font-head); font-weight: 800; text-transform: uppercase; line-height: .8; white-space: nowrap;
  font-size: clamp(6rem, 21vw, 21rem); letter-spacing: -.03em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .14);
}

.charity__top { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: clamp(32px, 6vw, 90px); }
.charity__title em { color: var(--navy); }
.charity__lead { margin-top: 24px; max-width: 28em; font-family: var(--font-head); font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.55rem); line-height: 1.35; }
.charity__copy { margin-top: 18px; max-width: 34em; color: rgba(255, 255, 255, .88); }
.charity__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Коллаж фото */
.charity__photos { position: relative; padding: 0 clamp(0px, 3vw, 36px) clamp(40px, 8vw, 90px) 0; }
.photo { margin: 0; border: 6px solid var(--white); border-radius: 18px; background: var(--white); box-shadow: 0 30px 60px rgba(60, 0, 8, .45); overflow: hidden; }
.photo img { width: 100%; height: auto; display: block; }
.photo--main { position: relative; transform: rotate(1.6deg); transition: transform .6s var(--ease); }
.photo--main img { aspect-ratio: 3 / 2; object-fit: cover; }
.photo--main figcaption {
  position: absolute; left: 0; bottom: 0; display: grid; gap: 2px; padding: 40px 18px 14px;
  width: 100%; background: linear-gradient(0deg, rgba(20, 29, 53, .88), rgba(20, 29, 53, 0));
}
.photo--main figcaption b { font-family: var(--font-head); font-weight: 800; font-size: clamp(1rem, 2vw, 1.3rem); text-transform: uppercase; }
.photo--main figcaption span { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.photo--small { position: absolute; right: 0; bottom: 0; width: 44%; transform: rotate(4deg); transition: transform .6s var(--ease); }
.photo--small img { aspect-ratio: 3 / 2; object-fit: cover; }
.charity__photos:hover .photo--main { transform: rotate(0); }
.charity__photos:hover .photo--small { transform: rotate(1.5deg) translateY(-6px); }

/* Карточка соцпрограммы */
.program-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: stretch;
  margin-top: clamp(40px, 6vw, 72px); border-radius: 30px; overflow: hidden;
  background: #FBF6E6; color: var(--navy); box-shadow: 0 30px 70px rgba(60, 0, 8, .4);
}
.program-card__banner { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.program-card__body { padding: clamp(24px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; }
.program-card__kicker { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.program-card__title { margin: 6px 0 12px; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; }
.program-card__text { max-width: 32em; color: var(--muted); }
.program-card__facts { display: grid; gap: 8px; margin: 20px 0 26px; font-size: 15px; }
.program-card__facts b { display: inline-block; min-width: 4.5em; margin-right: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.program-card__partners { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(31, 44, 76, .14); font-size: 13px; line-height: 1.5; color: var(--muted); }
.program-card__partners span { display: block; margin-bottom: 4px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); }

/* Звёзды матча */
.stars { margin-top: 26px; }
.stars__label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .78); }
.stars__list { margin-top: 10px; max-width: 34em; }
.stars__list li {
  position: relative; display: grid; gap: 1px; padding: 12px 0 12px 34px;
  border-bottom: 1px solid rgba(255, 255, 255, .22);
}
.stars__list li:first-child { border-top: 1px solid rgba(255, 255, 255, .22); }
.stars__list li::before { /* звёздочка в кружке */
  content: "★"; position: absolute; left: 0; top: 50%; width: 24px; height: 24px; margin-top: -12px;
  display: grid; place-items: center; border-radius: 50%; background: var(--white); color: var(--red); font-size: 12px; line-height: 1;
}
.stars__list b { font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; }
.stars__list span { font-size: 14px; color: rgba(255, 255, 255, .8); }

@media (max-width: 900px) {
  .charity__top { grid-template-columns: 1fr; }
  .charity__photos { padding-left: 0; max-width: 560px; }
  .program-card { grid-template-columns: 1fr; }
  .program-card__banner { min-height: 0; aspect-ratio: 16 / 9; height: auto; }
}
@media (max-width: 560px) {
  .charity__actions .btn, .program-card__body .btn { width: 100%; }
  .photo--small { width: 50%; }
}
@media (prefers-reduced-motion: reduce) {
  .photo--main, .photo--small { transform: none; }
}

/* =========================================================
   ПОДВАЛ
   ========================================================= */
.footer { position: relative; padding: clamp(56px, 8vw, 96px) 0 32px; background: linear-gradient(180deg, #16203a 0%, #0f1730 100%); color: var(--white); }
.footer::before { /* полосы свитера по верхней кромке */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 22px;
  background: linear-gradient(180deg, var(--red) 0 6px, transparent 6px 9px, var(--white) 9px 12px, transparent 12px 15px, var(--red) 15px 22px);
}
.footer a { text-decoration: none; }

.footer__grid { display: grid; grid-template-columns: 1.5fr 1.1fr .8fr; gap: clamp(28px, 4vw, 56px); margin-top: clamp(40px, 6vw, 72px); }
.brand--light .brand__sub { color: rgba(255, 255, 255, .6); }
.brand--light .brand__logo { width: 68px; height: 68px; padding: 6px; border-radius: 18px; background: var(--ice); }   /* светлая плашка: тёмные части логотипа не сливаются с фоном */
.footer__about { margin-top: 18px; max-width: 24em; font-size: 15px; color: rgba(255, 255, 255, .7); }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.socials a {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
  font-size: 14px; font-weight: 600; transition: background-color .25s, color .25s, transform .25s var(--ease);
}
.socials a:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.socials svg { width: 24px; height: 24px; fill: currentColor; flex: none; }

.footer__title { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .55); margin-bottom: 18px; }
.footer__list { display: grid; gap: 12px; }
.footer__list a { display: grid; gap: 1px; font-size: 16px; font-weight: 500; transition: color .2s; }
.footer__list a:hover { color: #ff6b7d; }
.footer__list a b { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.footer__list a span { font-size: 13px; color: rgba(255, 255, 255, .6); font-weight: 400; }
.footer__list--plain a { font-size: 15px; }
.footer__note { margin-top: 18px; max-width: 22em; font-size: 13px; line-height: 1.5; color: rgba(255, 255, 255, .6); }

.footer__legal {
  display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 18px 40px;
  margin-top: clamp(40px, 6vw, 64px); padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: 13px; line-height: 1.6; color: rgba(255, 255, 255, .6);
}
.footer__docs { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer__docs a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* =========================================================
   ОТЗЫВЫ
   ========================================================= */
.reviews { padding: clamp(72px, 10vw, 130px) 0; background: var(--white); }
.rating-chips { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: clamp(28px, 4vw, 44px); }
.rating-chips li > a, .rating-chips__award > span {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 12px 22px 12px 14px; border-radius: 999px;
  background: var(--ice); text-decoration: none; transition: background-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.rating-chips li > a:hover { background: var(--navy); color: var(--white); transform: translateY(-2px); box-shadow: 0 12px 26px rgba(31, 44, 76, .22); }
.rating-chips__score { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--font-head); font-weight: 800; font-size: 1.5rem; line-height: 1; color: var(--navy); }
.rating-chips__score i { font-style: normal; font-size: 1.1rem; color: #f5a400; }
.rating-chips li > a:hover .rating-chips__score { color: var(--white); }
.rating-chips span { display: grid; font-size: 13px; line-height: 1.3; color: var(--muted); }
.rating-chips li > a:hover span { color: rgba(255, 255, 255, .8); }
.rating-chips strong { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--navy); }
.rating-chips li > a:hover strong { color: var(--white); }
.rating-chips__award > span { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(191, 8, 33, .45); padding-left: 22px; }
.rating-chips__award strong { color: var(--red); }

.reviews__grid { columns: 3; column-gap: clamp(14px, 2vw, 24px); }
.review {
  break-inside: avoid; margin: 0 0 clamp(14px, 2vw, 24px); padding: 28px 26px 24px; border-radius: 24px;
  background: var(--ice); position: relative;
}
.review::before { /* кавычка */
  content: "“"; position: absolute; top: 6px; right: 20px; font-family: var(--font-head); font-weight: 800; font-size: 5rem; line-height: 1; color: rgba(191, 8, 33, .18);
}
.review__text { margin: 0; font-size: 15.5px; line-height: 1.6; color: var(--navy); }
.review__author { display: grid; gap: 1px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(31, 44, 76, .12); }
.review__author b { font-family: var(--font-head); font-weight: 700; font-size: 14px; }
.review__author span { font-size: 12px; color: var(--muted); }
.reviews__more { margin-top: clamp(24px, 4vw, 40px); text-align: center; }

@media (max-width: 1000px) { .reviews__grid { columns: 2; } }
@media (max-width: 640px) {
  .reviews__grid { columns: 1; }
  .rating-chips li { flex: 1 1 100%; }
  .rating-chips li > a, .rating-chips__award > span { border-radius: 24px; }
  .reviews__more .btn { width: 100%; }
}

/* =========================================================
   ОПЛАТА ОНЛАЙН
   ========================================================= */
.payment { padding: clamp(72px, 10vw, 130px) 0; background: var(--ice); }
.payment__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.payment__points { display: grid; gap: 12px; margin-top: 26px; }
.payment__points li { position: relative; padding-left: 30px; font-size: 15px; line-height: 1.5; }
.payment__points li::before {
  content: ""; position: absolute; left: 0; top: .15em; width: 20px; height: 20px; border-radius: 50%; background: var(--red)
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'><path d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 100% no-repeat;
}
.payment__points a, .payment__help a { color: var(--red); font-weight: 600; text-underline-offset: 3px; }
.payment__help { margin-top: 24px; font-size: 14px; color: var(--muted); }

.pay-form { display: grid; gap: 16px; padding: clamp(22px, 3vw, 36px); border-radius: 28px; background: var(--white); box-shadow: 0 24px 56px rgba(31, 44, 76, .12); border: 1px solid rgba(31, 44, 76, .08); }
.pay-type { border: 0; padding: 0; margin: 0; min-width: 0; }
.pay-type legend { padding: 0; margin-bottom: 10px; font-size: 13px; font-weight: 600; }
.pay-type__options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opt { position: relative; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.pay-opt span {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 12px; text-align: center;
  border: 1.5px solid var(--line); border-radius: 14px; font-family: var(--font-head); font-weight: 700; font-size: 14px; line-height: 1.2;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.pay-opt:hover span { border-color: var(--navy); }
.pay-opt input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); box-shadow: 0 8px 20px rgba(31, 44, 76, .25); }
.pay-opt input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.pay-opt--soon { cursor: not-allowed; }
.pay-opt--soon input { cursor: not-allowed; }
.pay-opt--soon span { background: var(--ice); border-style: dashed; color: #8d9ab0; }
.pay-opt--soon:hover span { border-color: var(--line); }
.pay-opt i { font-style: normal; font-family: var(--font-body); font-weight: 600; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(31, 44, 76, .08); }

.pay-amount { display: flex; gap: 10px; }
.pay-amount input { flex: 1; min-width: 0; }
.pay-chip { flex: none; padding: 0 16px; min-height: 50px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--ice); font-family: var(--font-head); font-weight: 700; font-size: 14px; transition: background-color .2s, border-color .2s, color .2s; }
.pay-chip:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.field .opt { font-weight: 400; color: var(--muted); }
.plan__pay { margin-top: 14px; text-align: center; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .85); text-underline-offset: 3px; }
.plan__pay:hover { color: var(--white); }

@media (max-width: 900px) { .payment__grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .pay-type__options { grid-template-columns: 1fr; } }

/* =========================================================
   СТРАНИЦЫ РЕЗУЛЬТАТА ОПЛАТЫ (success.html / fail.html)
   ========================================================= */
.status-body { min-height: 100vh; background: radial-gradient(900px 520px at 80% 0%, #fff, rgba(255,255,255,0) 70%), linear-gradient(180deg, #F4F9FC, var(--ice-2)); }
.status-page { min-height: 100vh; display: grid; align-content: center; justify-items: center; gap: 24px; padding: 32px 16px; }
.status-page__logo img { width: 84px; height: 84px; }
.status-card { width: min(100%, 540px); padding: clamp(28px, 5vw, 48px); border-radius: 28px; background: var(--white); text-align: center; box-shadow: 0 24px 60px rgba(31, 44, 76, .14); }
.status-card__badge { width: 72px; height: 72px; margin: 0 auto 20px; display: grid; place-items: center; border-radius: 50%; color: var(--white); }
.status-card__badge svg { width: 36px; height: 36px; }
.status-card__badge--ok { background: #1f9d55; }
.status-card__badge--fail { background: var(--red); }
.status-card__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 4.4vw, 2.2rem); line-height: 1.1; text-transform: uppercase; letter-spacing: -.01em; }
.status-card__text { margin-top: 14px; color: var(--muted); }
.status-card__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }
@media (max-width: 480px) { .status-card__actions .btn { width: 100%; } }

/* =========================================================
   ЮРИДИЧЕСКИЕ СТРАНИЦЫ (offer / privacy / consent / payment-rules)
   ========================================================= */
.legal-body { background: var(--ice); }
.legal-header { background: rgba(238, 245, 250, .96); border-bottom: 1px solid rgba(31, 44, 76, .08); }
.legal-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; }
.legal-back { font-family: var(--font-head); font-weight: 700; font-size: 14px; text-decoration: none; padding: 10px 18px; border-radius: 999px; background: var(--navy); color: var(--white); transition: background-color .2s; }
.legal-back:hover { background: var(--red); }

.legal { padding-block: clamp(28px, 5vw, 64px); }
.legal-doc { max-width: 860px; margin-inline: auto; padding: clamp(24px, 5vw, 56px); border-radius: 28px; background: var(--white); box-shadow: 0 20px 50px rgba(31, 44, 76, .08); font-size: 16px; line-height: 1.7; }
.legal-doc h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.5rem, 4vw, 2.3rem); line-height: 1.12; letter-spacing: -.01em; }
.legal-doc h2 { margin-top: 2.2em; margin-bottom: .6em; padding-top: 1.2em; border-top: 1px solid rgba(31, 44, 76, .12); font-family: var(--font-head); font-weight: 800; font-size: clamp(1.05rem, 2.4vw, 1.3rem); line-height: 1.25; text-transform: uppercase; letter-spacing: .01em; scroll-margin-top: 24px; }
.legal-doc p { margin-top: .8em; }
.legal-doc a { color: var(--red); text-underline-offset: 3px; }
.legal-lead { margin-top: .6em !important; font-size: 1.1em; color: var(--muted); }
.legal-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; margin-top: 1.4em !important; font-weight: 600; }
.legal-doc .num { font-weight: 700; color: var(--navy); margin-right: .25em; }
.legal-list { margin-top: .7em; display: grid; gap: .55em; }
.legal-list > li { position: relative; padding-left: 1.2em; }
.legal-list > li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.legal-list > li.let { padding-left: 0; }
.legal-list > li.let::before { display: none; }
.legal-sub { margin: .5em 0 .2em; display: grid; gap: .4em; padding-left: 1em; }
.legal-sub > li { position: relative; padding-left: 1em; color: #33405e; }
.legal-sub > li::before { content: "–"; position: absolute; left: 0; color: var(--red); }

.legal-toc { margin-top: 1.8em; padding: 18px 22px; border-radius: 18px; background: var(--ice); }
.legal-toc__title { margin: 0 0 .5em !important; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { display: grid; gap: .35em; list-style: none; padding: 0; }
.legal-toc li { font-size: 15px; line-height: 1.4; }
.legal-toc a { color: var(--navy); text-decoration: none; }
.legal-toc a:hover { color: var(--red); text-decoration: underline; }

.legal-dl { margin-top: 1em; display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: 0; border-top: 1px solid rgba(31, 44, 76, .1); }
.legal-dl dt, .legal-dl dd { margin: 0; padding: 12px 0; border-bottom: 1px solid rgba(31, 44, 76, .1); }
.legal-dl dt { padding-right: 16px; font-size: 14px; color: var(--muted); }
.legal-dl dd p { margin: 0; }
.legal-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 1em; }
.legal-cards li { display: grid; gap: 4px; padding: 16px 18px; border-radius: 16px; background: var(--ice); font-size: 14px; line-height: 1.45; }
.legal-cards strong { font-family: var(--font-head); font-size: 15px; }
.legal-sign { margin-top: 2em; padding-top: 1em; border-top: 1px solid rgba(31, 44, 76, .12); }

.legal-footer { padding: 8px 0 40px; text-align: center; font-size: 13px; line-height: 1.6; color: var(--muted); }
.legal-footer a { color: inherit; }
.legal-footer__docs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin-bottom: 12px; }
.legal-footer__docs a { text-underline-offset: 3px; }

@media (max-width: 640px) {
  .legal-dl { grid-template-columns: 1fr; }
  .legal-dl dt { padding-bottom: 0; border-bottom: 0; }
  .legal-dl dd { padding-top: 2px; }
  .legal-cards { grid-template-columns: 1fr; }
  .legal-header .brand__text { display: none; }
}
@media print {
  .legal-header, .legal-footer, .legal-toc { display: none; }
  .legal-body, .legal-doc { background: #fff; box-shadow: none; }
  .legal-doc { padding: 0; max-width: none; }
}

/* =========================================================
   ПАРТНЁРЫ (внутри красного блока «Благотворительность»)
   ========================================================= */
.partners {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: stretch;
  margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid rgba(255, 255, 255, .28);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.partners__title { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; }
.partners__lead { margin-top: 10px; color: rgba(255, 255, 255, .86); }
.partners__logos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.partner {
  display: grid; gap: 4px; height: 100%; padding: 18px 18px 16px; border-radius: 24px; background: var(--white); color: var(--navy);
  text-decoration: none; text-align: center; box-shadow: 0 18px 40px rgba(60, 0, 8, .28);
  transition: transform .35s var(--ease), box-shadow .35s;
}
.partner:hover, .partner:focus-visible { transform: translateY(-5px); box-shadow: 0 26px 52px rgba(60, 0, 8, .4); }
.partner__logo { display: block; height: clamp(110px, 14vw, 150px); overflow: hidden; }
.partner__logo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.partner__name { margin-top: 6px; font-family: var(--font-head); font-weight: 800; font-size: 1rem; line-height: 1.2; }
.partner__hint { font-size: 13px; font-weight: 600; color: var(--red); }
.partner__hint::after { content: " →"; }

.partners__contact {
  display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: clamp(22px, 3vw, 34px); border-radius: 28px;
  background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .32);
}
.partners__ask { font-family: var(--font-head); font-weight: 700; font-size: 1.15rem; line-height: 1.3; }
.partners__person { display: grid; gap: 2px; margin-bottom: 8px; }
.partners__person strong { font-family: var(--font-head); font-weight: 800; font-size: 1.3rem; }
.partners__person span { font-size: 14px; color: rgba(255, 255, 255, .82); }
.partners__contact .btn { align-self: flex-start; }

@media (max-width: 900px) { .partners { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .partners__logos { grid-template-columns: 1fr; }
  .partners__contact .btn { align-self: stretch; }
}

/* Блок про Юрия Ляпкина внутри «О нас» */
.legend__hero { margin-top: clamp(32px, 4vw, 48px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid rgba(255, 255, 255, .18); }
.legend__sub { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.6rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -.01em; }
.legend__sub em { font-style: normal; color: #ff4d63; }
.legend__hero .legend__lead { margin-top: 14px; }
.legend__memory { margin-top: 10px; font-family: var(--font-head); font-weight: 600; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.62); }

/* Цены: три карточки в ряд */
@media (min-width: 1001px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: none; } }   /* на телефоне и планшете — по одной в ряд (см. выше) */
.plan__pay--dark { color: var(--navy); }
.plan__pay--dark:hover { color: var(--red); }

/* Логотипы партнёров соцпрограммы (в карточке «Путь к хоккею») */
.partner-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 34px; margin-top: 14px; }
.plogo { display: block; width: auto; opacity: .92; transition: opacity .25s, transform .25s var(--ease); }
.plogo:hover { opacity: 1; transform: scale(1.04); }
.plogo--round { height: 76px; }
.plogo--wide { height: 34px; }
.plogo--script { height: 48px; }
@media (max-width: 480px) { .partner-logos { gap: 14px 26px; } .plogo--round { height: 64px; } .plogo--wide { height: 28px; } .plogo--script { height: 40px; } }

/* Пометка о группе в расписании филиала (Айс Атлетик: 2013–2016 г. р., ПМО) */
.branch-badge { display: flex; align-items: center; gap: 14px; margin: -6px 0 22px; padding: 12px 18px 12px 12px; border-radius: 18px; background: var(--ice); box-shadow: inset 4px 0 0 var(--red); }
.branch-badge__tag { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--navy); color: var(--white); font-family: var(--font-head); font-weight: 800; font-size: 14px; letter-spacing: .02em; white-space: nowrap; }
.branch-badge p { font-size: 15px; line-height: 1.4; }
@media (max-width: 560px) { .branch-badge { flex-direction: column; align-items: flex-start; gap: 8px; } }

/* Подпись фонда в описании соцпрограммы */
.program-card__lead { margin-bottom: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; line-height: 1.35; color: var(--navy); }
