/* ============================================================
   «Перескажи» — маркетинговый лендинг. Дизайн-система: site/design-spec.md
   Тёплый вечерний стадион: ребёнок — на поле, родитель — на трибуне.
   ============================================================ */

:root {
  /* палитра (унаследована от приложения) */
  --paper: #F6F4E9;
  --surface: #FBFAF6;
  --surface-2: #EDEADA;
  --ink: #26382C;
  --ink-soft: #58685B;
  --ink-faint: #5C6A5F; /* контраст на бумаге ~5.2:1 — читается (было #8A968A = 2.8) */
  --coral-ink: #A63F12;
  --pitch: #1F8A4B;
  --pitch-deep: #006435;
  --pitch-tint: #C5E9CB;
  --gold: #F2BB31;
  --gold-deep: #D59800;
  --coral: #EE6C33;
  --coral-deep: #C94C18;
  --line: #D1D2C5;
  --white-on-deep: #FBFAF6;
  --mint-on-deep: #C5E9CB;

  /* типографика */
  --f-head: 'Russo One', 'Golos Text', 'Segoe UI', sans-serif;
  --f-body: 'Golos Text', 'Segoe UI', sans-serif;

  /* ритм */
  --wrap: 1160px;
  --r-s: 12px;
  --r-m: 18px;
  --r-l: 26px;
  --r-pill: 999px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

/* плавность якорей — в app.js (быстрая анимация с лимитом времени);
   CSS-smooth отключён: на длинной странице он ползёт секунды */
html, body { overflow-x: clip; } /* ничто не должно уводить страницу вбок */

/* ---------- полоса прокрутки «газон»: капсула на бумаге ---------- */
html {
  scrollbar-width: thin;
  scrollbar-color: var(--pitch) var(--paper);
}
::-webkit-scrollbar { width: 13px; height: 13px; }
::-webkit-scrollbar-track { background: var(--paper); }
::-webkit-scrollbar-corner { background: var(--paper); }
::-webkit-scrollbar-thumb {
  background: var(--pitch);
  border-radius: var(--r-pill);
  border: 3px solid var(--paper); /* поле-«бумага» вокруг — капсула тоньше и мягче */
}
::-webkit-scrollbar-thumb:hover { background: var(--pitch-deep); }
::-webkit-scrollbar-thumb:active { background: var(--gold); } /* поймал — забил */

/* якоря не прячутся под липкой шапкой */
section[id] { scroll-margin-top: 84px; }

body {
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2 { font-family: var(--f-head); font-weight: 400; line-height: 1.12; letter-spacing: .005em; }
h2 { font-size: clamp(30px, 4vw, 40px); margin-bottom: 12px; }

p { max-width: 68ch; }

.sub { font-size: 20px; line-height: 1.5; color: var(--ink-soft); max-width: 60ch; }

.fine { font-size: 14px; line-height: 1.55; color: var(--ink-faint); max-width: 52ch; }
.fine-center { margin: 20px auto 0; text-align: center; }
.fine-light { color: var(--mint-on-deep); opacity: 1; margin-inline: auto; }

.kicker {
  display: inline-block;
  font-size: 13px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 14px;
}
.kicker-light {
  /* на зелёном фоне секции «Детям» — чип на бумаге: контраст вместо полупрозрачной мяты */
  background: var(--paper); color: var(--pitch-deep);
  border-radius: var(--r-pill); padding: 7px 16px;
  opacity: 1;
}

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

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-body); font-weight: 700; font-size: 18px;
  text-decoration: none; border: none; cursor: pointer;
  border-radius: var(--r-pill); height: 56px; padding: 0 32px;
  transition: transform 150ms ease-out, box-shadow 150ms ease-out;
}
.btn:active { transform: translateY(1px); }

.btn-primary, .btn-small {
  background: var(--pitch); color: #fff;
  box-shadow: 0 3px 0 var(--pitch-deep);
}
.btn-primary:hover, .btn-small:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--pitch-deep); }
.btn-primary svg { transition: transform 200ms cubic-bezier(.34, 1.56, .64, 1); }
.btn-primary:hover svg { transform: translateY(-3px); }

.btn-small { height: 44px; font-size: 16px; padding: 0 22px; background: var(--pitch-deep); box-shadow: 0 3px 0 #004927; }
.btn-small:hover { box-shadow: 0 5px 0 #004927; }

.btn-ghost {
  background: transparent; color: var(--pitch-deep);
  border: 2px solid var(--pitch); height: 52px;
  transition: background 150ms ease-out, transform 150ms ease-out;
}
.btn-ghost:hover { background: var(--pitch-tint); transform: translateY(-2px); }

/* «Начать в браузере» — полноценная кнопка-пилюля (белая заливка отличает
   от прозрачной ghost; без этого модификатора .btn даёт голый текст ссылки) */
.btn-web {
  background: var(--surface); color: var(--pitch-deep);
  border: 2px solid var(--pitch); height: 52px;
  transition: background 150ms ease-out, transform 150ms ease-out;
}
.btn-web:hover { background: var(--pitch-tint); transform: translateY(-2px); }

.btn-gold {
  background: var(--gold); color: var(--ink);
  box-shadow: 0 3px 0 var(--gold-deep);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--gold-deep); }

.btn-sticker {
  display: inline-block;
  font-family: var(--f-head); font-size: 22px;
  color: var(--ink); text-decoration: none;
  background: var(--gold); border-radius: 16px;
  padding: 14px 30px; transform: rotate(-2deg);
  box-shadow: 0 3px 0 var(--ink);
  transition: transform 180ms ease-out;
}
.btn-sticker:hover { transform: rotate(0deg) translateY(-2px); box-shadow: 0 6px 0 var(--ink); }

/* ---------- бейджи ---------- */

.badge {
  display: inline-block;
  font-size: 13px; font-weight: 700; letter-spacing: .03em;
  border-radius: var(--r-pill); padding: 7px 16px;
}
.badge-early {
  background: var(--coral-deep); color: #fff;
  transform: rotate(-1deg); margin-bottom: 22px;
  box-shadow: 0 2px 0 #A63F12;
}
.badge-center { display: inline-flex; }

.badge-age {
  display: inline-block;
  background: var(--gold); color: var(--ink);
  font-size: 12px; font-weight: 700;
  border-radius: var(--r-pill); padding: 3px 10px; margin-right: 10px;
  vertical-align: -2px;
}

/* ============================================================
   S1. ШАПКА
   ============================================================ */

.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 244, 233, .97);
  border-bottom: 1px solid var(--line);
}
.head-in { display: flex; align-items: center; gap: 28px; height: 64px; }

.logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none;
}
.logo-ball { animation: ball-spin-in 900ms ease-out both; }

.head-nav { margin-left: auto; display: flex; gap: 22px; }
.head-nav a {
  font-size: 15px; font-weight: 600; color: var(--ink-soft);
  text-decoration: none;
}
.head-nav a:hover { color: var(--pitch-deep); }
.head-login {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px;
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  background: var(--paper); color: var(--ink);
  font-size: 14px; font-weight: 700; text-decoration: none;
  transition: transform 140ms ease-out, box-shadow 140ms ease-out;
}
.head-login:hover { transform: translateY(-1px); box-shadow: 0 2px 0 rgba(38, 56, 44, .2); }

/* ============================================================
   S2. HERO — вид на стадион с трибуны
   ============================================================ */

.hero { position: relative; overflow: hidden; }
.stadium-bg { position: absolute; inset: 0; }
.stadium-bg svg { width: 100%; height: 100%; display: block; }
.cloud { opacity: .8; }

.hero-grid {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 40px; align-items: center;
  padding-top: 72px; padding-bottom: 150px;
}

.hero-copy h1 { font-size: clamp(38px, 4.6vw, 56px); margin-bottom: 20px; }
.hero-copy .lead { font-size: 20px; line-height: 1.55; color: var(--ink); max-width: 30em; margin-bottom: 28px; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 14px; }
.hero-copy .fine { margin: 0 0 18px; }
.hero-cta .fine { margin: 0 0 18px; }

.factline { font-size: 14px; color: var(--ink-faint); }
.factline span { margin: 0 6px; color: var(--ink-faint); }

/* сцена hero: телефон + Финт + наклейка */
.hero-stage { position: relative; display: flex; justify-content: center; padding-right: 30px; }

.hero-fint {
  position: absolute; right: -6px; top: -28px;
  transform: rotate(12deg);
  filter: drop-shadow(0 6px 0 rgba(0, 100, 53, .12));
  animation: fint-float 4.5s ease-in-out infinite;
}
.hero-sticker {
  position: absolute; left: -4px; bottom: 44px;
  font-family: var(--f-head); font-size: 21px; line-height: 1.25;
  background: var(--gold); color: var(--ink);
  padding: 12px 20px; border-radius: 14px;
  transform: rotate(-4deg);
  box-shadow: 0 3px 0 var(--ink);
  max-width: 210px; text-align: center;
}

/* ---------- телефон-мокап (общий компонент) ---------- */

.phone {
  position: relative;
  width: 290px; height: 570px;
  border-radius: 44px;
  background: var(--ink);
  box-shadow: 0 6px 0 var(--pitch-tint);
  transform: rotate(2deg);
  transition: transform 300ms ease-out;
}
.phone:hover { transform: rotate(0deg); }
.phone-notch {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%);
  width: 60px; height: 8px; border-radius: var(--r-pill);
  background: var(--ink);
}
.screen {
  position: absolute; inset: 10px;
  background: var(--surface);
  border-radius: 36px;
  padding: 34px 18px 18px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
}

/* экран «пересказ с волной» (hero) */
.scr-top { display: flex; justify-content: space-between; align-items: center; }
.scr-match {
  font-family: var(--f-head); font-size: 12px; letter-spacing: .06em;
  background: var(--pitch-tint); color: var(--pitch-deep);
  border-radius: var(--r-pill); padding: 5px 12px;
}
.scr-min {
  font-size: 12px; font-weight: 700; color: var(--ink);
  background: var(--gold); border-radius: var(--r-pill); padding: 5px 10px;
}
.scr-title { font-size: 19px; font-weight: 700; line-height: 1.3; }

.scr-mic {
  align-self: center; position: relative;
  width: 88px; height: 88px; border-radius: 50%;
  background: var(--coral); border: 4px solid var(--ink);
  display: grid; place-items: center;
  margin-top: 6px;
}
.mic-ring {
  position: absolute; inset: -14px;
  border: 3px solid var(--coral); border-radius: 50%;
  opacity: .4; animation: ring-pulse 1.8s ease-out infinite;
}

.scr-wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 44px; }
.scr-wave i {
  width: 4px; border-radius: 3px; background: var(--coral);
  height: calc(14px + var(--h, 20px));
  animation: breathe 1.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.scr-wpm { text-align: center; font-size: 14px; color: var(--ink-soft); }
.scr-wpm b { font-family: var(--f-head); font-weight: 400; color: var(--pitch-deep); font-size: 17px; }

.scr-balls { display: flex; gap: 10px; justify-content: center; margin-top: auto; padding-bottom: 6px; }
.sb { width: 22px; height: 22px; border-radius: 50%; }
.sb-g { background: var(--pitch); border: 2.5px solid var(--ink); }
.sb-gold { background: var(--gold); border: 2.5px solid var(--ink); animation: ball-pop 400ms cubic-bezier(.34,1.56,.64,1) both; animation-delay: 1s; }

/* ============================================================
   S3. КАК ЭТО РАБОТАЕТ — четыре режима + программа + очки
   ============================================================ */

.how { padding: 88px 0 0; }
.how .sub { margin-bottom: 40px; }

.how-h3 {
  font-family: var(--f-body); font-size: 15px; font-weight: 600;
  letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-soft); margin: 48px 0 20px;
}
.how > .wrap > .how-h3:first-of-type { margin-top: 0; }

/* --- четыре карточки-режима --- */
.modes {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
}
.mode {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-l);
  padding: 22px 20px 20px;
  text-align: center;
}
.mode-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink);
  font-size: 12px; font-weight: 700; letter-spacing: .04em;
  border-radius: var(--r-pill); padding: 4px 12px;
  white-space: nowrap; box-shadow: 0 2px 0 rgba(0,0,0,.08);
}
.mode-ic {
  width: 92px; height: 72px; margin: 6px auto 14px;
  background: var(--pitch-tint); border-radius: var(--r-m);
  display: grid; place-items: center;
}
.mode-ic svg { width: 84px; height: 64px; }
.mode h3 { font-size: 21px; margin-bottom: 8px; }
.mode p { font-size: 15px; line-height: 1.5; color: var(--ink-soft); margin: 0; }

/* --- мини-макеты «экранов приложения» --- */
.mocks {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.mock {
  background: var(--ink); border-radius: var(--r-l);
  padding: 12px 12px 16px;
  box-shadow: 0 6px 0 rgba(0, 44, 23, .25);
  display: flex; flex-direction: column; /* белая панель тянется до низа макета */
}
.mock-head {
  font-family: var(--f-head); font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; text-align: center;
  color: var(--pitch-deep);
  background: var(--pitch-tint); border-radius: var(--r-s);
  padding: 7px 10px; margin-bottom: 12px;
}
.mock-diary, .mock-hw, .mock-ladder {
  background: var(--surface); border-radius: var(--r-m); padding: 12px;
  min-height: 210px; flex: 1; display: flex; flex-direction: column; gap: 8px;
}
.md-row {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 13px; color: var(--ink-soft); font-weight: 600;
}
.md-row-now { color: var(--ink); }
.md-num { font-family: var(--f-head); font-weight: 400; font-size: 26px; color: var(--pitch-deep); }
.md-num-now { color: var(--coral-deep); }
.md-unit { font-size: 11px; font-weight: 500; }
.md-arrow { width: 56px; height: 30px; margin: -2px auto; }
.md-chart { width: 100%; height: auto; }
.mock-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 8px; }
.pill {
  font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  border-radius: var(--r-pill); padding: 4px 11px;
}
.pill-gold { background: var(--gold); color: var(--ink); }
.pill-mint { background: var(--pitch-tint); color: var(--pitch-deep); }
.pill-outline { border: 2px solid var(--gold-deep); color: var(--ink); }

.mock-hw { flex-direction: row; align-items: stretch; gap: 8px; }
.hw-photo, .hw-text { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hw-photo svg, .hw-text svg { width: 100%; max-width: 84px; height: auto; }
.hw-mid {
  flex: 0 0 58px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--coral-ink);
}
.hw-mid svg { width: 30px; height: 30px; }
.hw-btn {
  font-size: 11px; font-weight: 700; color: #fff;
  background: var(--pitch-deep); border-radius: var(--r-pill); padding: 4px 10px;
  margin-top: -20px;
}

.mock-ladder { justify-content: flex-end; }
.lad-row { display: flex; align-items: flex-end; gap: 8px; margin-top: auto; }
.lad-step {
  width: 44px; height: 30px; border-radius: var(--r-s) var(--r-s) 0 0;
  background: var(--surface-2); border: 2px solid var(--line); border-bottom: none;
  display: grid; place-items: center;
}
.lad-step:nth-child(2) { height: 52px; }
.lad-step:nth-child(3) { height: 74px; }
.lad-step:nth-child(4) { height: 96px; }
.lad-step.is-done { background: var(--pitch); border-color: var(--pitch-deep); }
.lad-step.is-done svg { width: 20px; height: 20px; }
.lad-step.is-now { background: var(--gold); border-color: var(--gold-deep); }
.mono-lad {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ink); text-align: center; padding: 0 2px;
}
.mock-goal {
  display: flex; align-items: center; gap: 8px; justify-content: center;
  margin-top: 6px;
}
.mock-goal b { font-family: var(--f-head); font-weight: 400; font-size: 18px; color: var(--coral-ink); }
.mocks-note { font-size: 13px; color: var(--ink-faint); text-align: center; margin-top: 14px; }

/* --- школьная программа + очки --- */
.school-grid {
  display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px;
  align-items: center;
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--r-l);
  padding: 26px 28px;
}
.school-grid h3 { font-size: 22px; margin-bottom: 10px; }
.school-grid p { font-size: 16px; color: var(--ink-soft); }
.school-nums { display: flex; flex-direction: column; gap: 16px; }
.snum { display: flex; align-items: baseline; gap: 14px; }
.snum b {
  font-family: var(--f-head); font-weight: 400; font-size: 44px; line-height: 1;
  color: var(--pitch-deep); min-width: 2.1ch; text-align: right;
}
.snum span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.4; max-width: 20ch; }

.points {
  margin-top: 20px;
  background: var(--pitch-tint);
  border-radius: var(--r-l);
  padding: 26px 28px;
}
.points h3 { font-size: 22px; margin-bottom: 10px; }
.points p { font-size: 16px; color: var(--ink); }
.points .awards { margin-top: 18px; }
.points .fine { margin-top: 14px; }

/* Награды сезона — стикеры одной геометрии: иконка + подпись, лёгкий наклон
   как у наклеек; цвет кодирует смысл (золото=награда, зелёный=сезон, коралл=время) */
.awards { display: flex; flex-wrap: wrap; gap: 12px 14px; }
.award {
  display: inline-flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 14px;
  background: var(--paper);
  border: 2px solid var(--ink); border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 700; letter-spacing: .02em; color: var(--ink);
  transform: rotate(var(--tilt, 0deg));
  box-shadow: 2px 2px 0 rgba(38, 56, 44, .14);
}
.award .aw-i { width: 16px; height: 16px; flex: none; }
.award-gold .aw-i { color: var(--gold-deep); }
.award-mint .aw-i { color: var(--pitch-deep); }
.award-coral .aw-i { color: var(--coral-deep); }
.how-bridge { text-align: center; margin-top: 36px; }
.how-bridge a {
  font-size: 17px; font-weight: 600; color: var(--pitch-deep);
}

/* ссылка на веб-версию рядом с кнопками скачивания */
/* вход в веб-версию — полноценная кнопка, а не текстовая ссылка */
.link-web {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 14px;
  font-size: 16px; font-weight: 700; color: var(--pitch-deep);
  text-decoration: none;
  background: transparent; border: 2px solid var(--pitch);
  border-radius: var(--r-pill); height: 48px; padding: 0 24px;
  white-space: nowrap;
  transition: background 150ms ease-out, transform 150ms ease-out;
}
.link-web:hover { background: var(--pitch-tint); transform: translateY(-2px); color: var(--pitch-deep); }
.link-web-center { display: flex; width: max-content; max-width: 100%; margin: 14px auto 0; text-align: center; }
/* кнопка RuStore в ряду hero-cta — без отступа сверху, встаёт в общий ряд */
.hero-cta .link-web { margin-top: 0; }

.how-note {
  display: flex; align-items: center; gap: 12px;
  max-width: 640px; margin: 56px auto 0;
  font-size: 14px; color: var(--ink-faint);
}
.how-note svg { flex: none; }

/* край поля между S3 и S4 */
.pitch-edge { height: 8px; background: var(--pitch); margin-top: 72px; }

/* ============================================================
   S4. ТВОЙ ФУТБОЛЬНЫЙ СЕЗОН — на поле (детский слой)
   ============================================================ */

.season { background: var(--pitch); padding: 72px 0 88px; position: relative; overflow: hidden; }
.season::before {
  content: "";
  position: absolute; left: 50%; top: 120px; transform: translateX(-50%);
  width: 420px; height: 420px; border: 4px solid rgba(246, 244, 233, .16);
  border-radius: 50%; pointer-events: none;
}
.season::after {
  content: "";
  position: absolute; inset: auto -70px -160px -70px; height: 260px;
  background: radial-gradient(closest-side, rgba(0, 100, 53, 0), rgba(0, 100, 53, .28));
  pointer-events: none;
}

.season .wrap { position: relative; z-index: 1; }

.season-h2 {
  color: var(--paper);
  font-size: clamp(40px, 5.4vw, 64px);
  margin-bottom: 34px;
}

.season-text { display: grid; gap: 14px; margin-bottom: 48px; }
.season-text .panel {
  background: var(--pitch-tint); color: var(--ink);
  border-radius: var(--r-l); padding: 20px 26px;
  font-size: 19px; line-height: 1.55; max-width: 760px;
}

/* карточки-наклейки */
.cards-row {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
  margin-bottom: 52px;
}
.p-card {
  position: relative; z-index: 0;
  padding: 18px 14px 16px;
  text-align: center;
  transition: transform 200ms ease-out;
}
/* наклон — только у «бумажки»-фона, контент всегда прямой: текст не кривится,
   подписи и аватары стоят ровно */
.p-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--surface);
  border: 2px solid var(--pitch-deep);
  border-radius: var(--r-l);
  box-shadow: 0 4px 0 rgba(0, 100, 53, .35);
  rotate: var(--tilt, 0deg);
  transition: rotate 200ms ease-out;
}
.p-card:hover { transform: translateY(-4px); }
.p-card:hover::before { rotate: 0deg; }
.p-ava { width: 100%; aspect-ratio: 1; margin-bottom: 10px; }
.p-card b { display: block; font-size: 16px; }
.p-card span { font-size: 13px; color: var(--ink-faint); }
.p-card-you::before { border-style: dashed; }

/* табло «соревнование с собой» */
.scoreboard {
  position: relative;
  background: var(--pitch-deep);
  border-radius: var(--r-l);
  padding: 40px 36px;
  display: flex; align-items: center; justify-content: center; gap: clamp(24px, 5vw, 64px);
  margin-bottom: 52px;
  overflow: hidden;
}
.scoreboard::before {
  content: "";
  position: absolute; inset: 14px;
  border: 1px solid rgba(197, 233, 203, .25); border-radius: var(--r-m);
  pointer-events: none;
}
.sb-col { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sb-label {
  font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mint-on-deep);
}
.sb-num {
  font-family: var(--f-head); font-size: clamp(56px, 8vw, 96px); line-height: 1.1;
  color: var(--paper); font-variant-numeric: tabular-nums;
}
.sb-sub { font-size: 14px; color: var(--mint-on-deep); }
.sb-arrow { width: clamp(48px, 6vw, 72px); flex: none; }
.sb-ref { position: absolute; right: 20px; bottom: 14px; width: 88px; height: 88px; opacity: .95; }
.sb-note {
  position: absolute; left: 20px; bottom: 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  color: var(--mint-on-deep); text-transform: uppercase;
}

/* таймлайн сезона */
.season-line {
  display: flex; align-items: center; gap: 14px;
  max-width: 760px; margin: 0 auto 56px;
  color: var(--paper); font-size: 14px;
}
.sl-month { font-weight: 700; }
.sl-month.is-now {
  background: var(--gold); color: var(--ink);
  border-radius: var(--r-pill); padding: 4px 12px;
}
.sl-dot { flex: 1; height: 4px; border-radius: 3px; background: var(--pitch-tint); opacity: .55; }
.sl-cup {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700;
  background: var(--gold); color: var(--ink);
  border-radius: var(--r-pill); padding: 4px 14px;
}
.sl-cup svg { width: 34px; height: 34px; }

/* детский CTA */
.season-cta { text-align: center; }
.season-slogan {
  font-family: var(--f-head);
  font-size: clamp(34px, 4.6vw, 58px); line-height: 1.15;
  color: var(--paper); margin-bottom: 30px;
}
.season-note {
  display: inline-block;
  margin-top: 22px;
  background: var(--pitch-deep);
  color: var(--mint-on-deep);
  font-size: 14px; font-weight: 600;
  border-radius: var(--r-pill); padding: 8px 18px;
}

/* ============================================================
   S5. РОДИТЕЛЯМ — на трибуне
   ============================================================ */

.parents { padding: 96px 0; }
.parents-grid {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 56px; align-items: start;
}
.parents-copy h2 { margin-bottom: 8px; }

.prog-block { padding: 26px 0 6px; border-top: 1px solid var(--line); margin-top: 26px; }
.prog-block:first-of-type { border-top: none; margin-top: 18px; padding-top: 0; }
.prog-block h3 {
  font-size: 20px; font-weight: 700; line-height: 1.35; margin-bottom: 10px;
  padding-top: 14px; position: relative;
}
/* золотое тире-свисток над заголовком (вместо боковой полоски) */
.prog-block h3::before {
  content: "";
  position: absolute; top: 0; left: 1px;
  width: 30px; height: 5px; border-radius: 4px; background: var(--gold);
}
.prog-block p { color: var(--ink-soft); }

.parents-side { position: relative; display: flex; justify-content: center; padding-top: 20px; }
.parents-side .phone { transform: rotate(-2deg); }
.parents-side .phone:hover { transform: rotate(0deg); }
.parents-mitya {
  position: absolute; left: -30px; bottom: -34px;
  width: 150px; height: 150px;
}

/* экран «родительский кабинет» */
.scr-top-parent .scr-cab { font-size: 13px; font-weight: 600; color: var(--ink-soft); }
.scr-chart { background: var(--surface-2); border-radius: var(--r-m); padding: 10px 12px 6px; }
.scr-chart-cap { font-size: 11px; color: var(--ink-faint); letter-spacing: .05em; text-transform: uppercase; }
.scr-chart svg { width: 100%; height: auto; display: block; }
.chart-line { stroke-dasharray: 320; stroke-dashoffset: 320; }
.in .chart-line { animation: draw-line 1s ease-in-out .3s forwards; }
.chart-dot { opacity: 0; }
.in .chart-dot { animation: dot-pop 250ms cubic-bezier(.34,1.56,.64,1) forwards; }
.in .chart-dot:nth-of-type(1) { animation-delay: .35s; }
.in .chart-dot:nth-of-type(2) { animation-delay: .55s; }
.in .chart-dot:nth-of-type(3) { animation-delay: .75s; }
.in .chart-dot:nth-of-type(4) { animation-delay: .95s; }
.in .chart-dot:nth-of-type(5) { animation-delay: 1.15s; }

.scr-recs { display: flex; flex-direction: column; gap: 8px; }
.scr-rec {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2); border-radius: var(--r-s);
  padding: 9px 12px; font-size: 13px;
}
.scr-rec span:nth-child(2) { color: var(--ink-soft); }
.scr-rec b { margin-left: auto; font-weight: 600; color: var(--pitch-deep); }
.scr-play {
  width: 30px; height: 30px; flex: none;
  background: var(--pitch-deep); color: #fff;
  border-radius: 50%; display: grid; place-items: center;
  font-size: 11px;
}
.scr-del {
  margin-top: auto; align-self: center;
  font-size: 12px; font-weight: 600; color: var(--coral-ink);
  border: 2px solid var(--coral-ink); border-radius: var(--r-pill);
  padding: 6px 14px;
}

/* ============================================================
   S6. ПОСЛУШАЙТЕ САМИ
   ============================================================ */

.listen { padding: 40px 0 96px; position: relative; }
.listen .sub { margin-bottom: 44px; }

.players { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin: 0 auto; }

.player {
  display: grid; grid-template-columns: auto 1fr; grid-template-areas: "btn wave" "cap cap";
  align-items: center; gap: 6px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 14px 26px 14px 16px;
}
.player + .players-link + .player { margin-bottom: 40px; }
.players { position: relative; }
.listen .fine-center { position: relative; }
.pl-btn {
  grid-area: btn;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--pitch); border: none; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 2px 0 var(--pitch-deep);
  transition: transform 140ms ease-out;
}
.pl-btn:hover { transform: translateY(-2px); }
.pl-btn svg { margin-left: 2px; }
.player.playing .pl-btn { background: var(--coral-deep); box-shadow: 0 2px 0 var(--coral); }
/* записей пока нет — кнопка честно выключена, а не «притворяется играющей» */
.pl-btn:disabled {
  background: var(--surface-2); box-shadow: none; cursor: default; transform: none;
}
.pl-btn:disabled svg path { fill: #A9B3A9; }
.player.is-empty .pl-wave i { background: var(--surface-2); animation: none; }
.player.is-empty figcaption { color: var(--ink-faint); }
.player-note {
  font-size: 13px; color: var(--ink-faint); text-align: center;
  max-width: 52ch; margin: 18px auto 0;
}

/* «До и после»: полосы длительности с местами остановок + одна главная метрика.
   Обе полосы в одной шкале (62 c = 100%), риски — коралловые, по позициям пауз */
.read-cmp { max-width: 640px; margin: 28px auto 0; text-align: left; }
.rc-row { display: grid; grid-template-columns: 112px 1fr 172px; align-items: center; gap: 12px; }
.rc-row + .rc-row { margin-top: 12px; }
.rc-label { font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.rc-track { display: block; height: 16px; background: var(--surface-2); border-radius: var(--r-pill); position: relative; overflow: hidden; }
.rc-bar { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; background: var(--pitch-tint); border-radius: var(--r-pill); }
.rc-ok { background: var(--pitch); }
.rc-bar i { position: absolute; top: 0; bottom: 0; width: 3px; transform: translateX(-1px); background: var(--coral); border-radius: 2px; }
.rc-ok i { background: #FBFAF6; }
.rc-val { font-size: 13px; font-weight: 700; color: var(--ink); }
.rc-note { font-size: 12.5px; color: var(--ink-faint); margin-top: 10px; }

.read-stats { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 26px; max-width: 720px; margin: 26px auto 0; }
.rs-main { display: flex; flex-direction: column; align-items: center; }
.rs-nums { font-family: var(--f-head); font-size: clamp(30px, 4.5vw, 44px); line-height: 1; letter-spacing: .02em; color: var(--ink-soft); display: inline-flex; align-items: center; gap: 12px; }
.rs-nums b { color: var(--pitch-deep); font-weight: 400; }
.rs-nums svg { width: 40px; height: 15px; color: var(--coral); flex: none; }
.rs-cap { font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-top: 6px; }
.rs-delta { display: inline-flex; align-items: center; height: 36px; padding: 0 15px; background: var(--gold); border: 2px solid var(--ink); border-radius: var(--r-pill); font-size: 14px; font-weight: 700; color: var(--ink); }
.rs-out { flex-basis: 100%; max-width: 52ch; margin: 2px auto 0; text-align: center; font-size: 16px; font-weight: 600; color: var(--ink); }

@media (max-width: 640px) {
  .rc-row { grid-template-columns: 1fr; gap: 5px; }
  .rc-val { margin-top: -2px; }
  .read-stats { flex-direction: column; gap: 14px; }
  .rs-out { flex-basis: auto; }
}

.pl-wave { grid-area: wave; display: flex; align-items: center; justify-content: space-between; width: 100%; height: 46px; overflow: hidden; }
.pl-wave i {
  width: 4px; border-radius: 3px; background: var(--coral);
  height: calc(10px + var(--h, 26px));
  animation: breathe 1.6s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.player.playing .pl-wave i { background: var(--coral-deep); }

.player figcaption { grid-area: cap; font-size: 14px; font-weight: 600; color: var(--ink-soft); padding-left: 64px; }

.players-link { display: flex; align-items: center; gap: 16px; padding: 4px 0 4px 40px; }
.players-link svg { height: 74px; }
.players-link span { font-size: 13px; color: var(--ink-faint); }

.listen-gosha {
  position: absolute; right: max(24px, calc((100vw - var(--wrap)) / 2 - 10px));
  bottom: -14px; width: 140px; height: 140px; transform: rotate(6deg);
}

/* ============================================================
   S7. ИСТОРИЯ ОТЦА
   ============================================================ */

.story { padding: 88px 0 100px; }
.story-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 56px; position: relative; }
.story-copy h2 { margin-bottom: 20px; }
.story-copy p { font-size: 18px; line-height: 1.66; color: var(--ink); margin-bottom: 18px; max-width: 34em; }
.story-quote { width: 56px; height: 42px; display: block; margin-bottom: 6px; }

.story-photo { position: relative; z-index: 1; }
.polaroid {
  background: #fff;
  padding: 12px 12px 6px;
  border-radius: 8px;
  box-shadow: 0 4px 0 var(--line);
  transform: rotate(-2deg);
}
.polaroid svg { display: block; width: 100%; border-radius: 4px; }
.story-photo figcaption { font-size: 13px; color: var(--ink-faint); text-align: center; padding-top: 8px; }
.story-photo::before {
  content: "";
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 96px; height: 26px; border-radius: 4px;
  background: var(--pitch-tint); opacity: .9; z-index: 2;
}
.story-mitya {
  position: absolute; right: -20px; bottom: -46px;
  width: 130px; height: 130px;
}

/* ============================================================
   S8. ПРИВАТНОСТЬ
   ============================================================ */

.privacy { padding: 24px 0 96px; }
.privacy .sub { margin-bottom: 44px; max-width: 64ch; }

.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rule {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: 24px;
}
.rule-ic { display: block; margin-bottom: 14px; }
.rule-ic svg { width: 44px; height: 44px; }
.rule h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.rule p { font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); }

.privacy-more { margin-top: 32px; font-size: 15px; color: var(--ink-soft); }
.privacy-more .soon { color: var(--ink-faint); }

/* ============================================================
   S9. ЧТО МЫ НЕ ОБЕЩАЕМ
   ============================================================ */

.honesty { padding: 8px 0 96px; }
.honesty-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: end; }

.honesty-list { list-style: none; display: flex; flex-direction: column; }
.honesty-list li { display: flex; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.honesty-list li:first-child { border-top: none; }
.gold-card {
  flex: none; width: 30px; height: 42px;
  background: var(--gold); border: 3px solid var(--ink);
  border-radius: 5px; margin-top: 4px;
}
.honesty-list h3 { font-size: 18.5px; font-weight: 700; margin-bottom: 6px; }
.honesty-list p { font-size: 15.5px; color: var(--ink-soft); }

.honesty-ref { width: 210px; height: 210px; justify-self: center; }

/* ============================================================
   S10. FAQ
   ============================================================ */

.faq { padding: 8px 0 110px; }
.faq-h2 { display: flex; align-items: center; gap: 18px; margin-bottom: 36px; }
.faq-ref { width: 56px; height: 56px; flex: none; }

.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 820px; }
.faq-list details {
  background: var(--surface);
  border-radius: var(--r-m);
  padding: 6px 22px;
}
.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  font-size: 17px; font-weight: 600;
  padding: 16px 0;
}
.faq-list summary::-webkit-details-marker { display: none; }
.plus { position: relative; flex: none; width: 20px; height: 20px; }
.plus::before, .plus::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 16px; height: 2.6px; border-radius: 2px;
  background: var(--ink-faint);
  translate: -50% -50%;
  transition: rotate 200ms ease-out;
}
.plus::after { rotate: 90deg; }
details[open] .plus::before { rotate: 180deg; }
details[open] .plus::after { rotate: 135deg; }
.faq-list details[open] summary { padding-bottom: 10px; }
.faq-list details p { font-size: 16px; color: var(--ink-soft); padding: 0 0 18px; max-width: 62ch; }

/* ============================================================
   S11. ФИНАЛЬНЫЙ CTA — пенальти
   ============================================================ */

.final { padding: 110px 0 96px; }
.final {
  /* страховочный фон под градиентом: если градиент не поддержан/при замерах — текст остаётся читаемым */
  background-color: #005229;
  background-image:
    radial-gradient(120% 130% at 50% 0%, var(--pitch-deep) 0%, #005229 58%, #00401f 100%);
}
.final .wrap { text-align: center; position: relative; }

.badge-center { margin: 0 auto 26px; }

.goal { max-width: 640px; margin: 0 auto; }
.goal svg { width: 100%; height: auto; display: block; }

.final-in { margin-top: -180px; position: relative; z-index: 1; }
/* панель-табло на сетке ворот, чтобы текст не лежал на сетке */
.final-card {
  display: inline-block;
  background: rgba(0, 44, 23, .84);
  border: 1px solid rgba(197, 233, 203, .28);
  border-radius: var(--r-l);
  padding: 34px 44px 38px;
  max-width: 720px;
}
.final-in h2 { color: var(--paper); font-size: clamp(32px, 4.4vw, 46px); }
.final-in p {
  color: #EAF6EC; font-size: 18px; line-height: 1.6;
  max-width: 34em; margin: 18px auto 30px;
}
.final-in .btn-gold { position: relative; z-index: 3; }
.final-in .fine { margin-top: 20px; }

/* два способа скачать: APK с сайта + RuStore */
.final-duo {
  display: flex; flex-wrap: wrap; gap: 14px;
  justify-content: center; align-items: center;
  position: relative; z-index: 3;
}
.btn-store {
  background: transparent; color: var(--paper);
  border: 2px solid rgba(251, 250, 246, .5);
}
.btn-store:hover { background: rgba(251, 250, 246, .12); color: var(--paper); transform: translateY(-2px); box-shadow: none; }

.final-fint {
  position: absolute; left: calc(50% - 320px); bottom: -10px;
  width: 86px; height: 86px; transform: rotate(-8deg);
}

/* ============================================================
   S12. ФУТЕР
   ============================================================ */

.site-foot {
  background: var(--pitch-deep);
  color: var(--white-on-deep);
  padding: 64px 0 48px;
  border-top: 4px solid var(--paper);
}
.foot-team { display: flex; justify-content: center; gap: 22px; margin-bottom: 34px; }
.foot-team svg {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(246, 244, 233, .1);
  transition: transform 200ms ease-out;
}
.foot-team svg:hover { transform: translateY(-6px) rotate(-4deg); }

.foot-line1 { text-align: center; font-size: 16px; }
.foot-line2 { text-align: center; font-size: 14.5px; color: var(--mint-on-deep); margin-top: 6px; }

.foot-nav {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin: 28px 0 22px;
}
.foot-nav a, .foot-soon { font-size: 14px; font-weight: 500; color: var(--mint-on-deep); }
.foot-nav a {
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px;
  display: inline-block; padding: 11px 2px; /* тач-таргет: высота ~45px вместо 23px */
}
.foot-nav a:hover { color: #fff; }

.foot-meta { text-align: center; font-size: 13px; color: var(--mint-on-deep); }
.foot-contact { text-align: center; margin-top: 18px; }
.foot-contact a { color: #fff; font-weight: 600; font-size: 16px; display: inline-block; padding: 10px 4px; }
.foot-copy { text-align: center; font-size: 13px; color: var(--mint-on-deep); margin-top: 16px; }

/* ============================================================
   СКРОЛЛ-МЯЧ (мобильный)
   ============================================================ */

.ball-fab {
  display: none;
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 3px 0 var(--ink);
}
.ball-fab svg { width: 100%; height: 100%; }

/* ============================================================
   АНИМАЦИИ
   ============================================================ */

@keyframes fint-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes ball-spin-in { from { transform: rotate(-180deg) scale(.4); opacity: 0; } to { transform: rotate(0) scale(1); opacity: 1; } }
@keyframes ring-pulse { 0% { transform: scale(.82); opacity: .5; } 100% { transform: scale(1.18); opacity: 0; } }
@keyframes breathe { 0%, 100% { transform: scaleY(.82); } 50% { transform: scaleY(1.12); } }
@keyframes ball-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes dot-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }

/* ---------- моргание маскотов (века внутри <symbol>, стили применяются к клонам) ---------- */
.fint-lid, .gosha-lid, .mitya-lid, .polosatik-lid {
  opacity: 0;
  transition: opacity 120ms ease;
}
body.is-blinking .fint-lid,
body.is-blinking .gosha-lid,
body.is-blinking .mitya-lid,
body.is-blinking .polosatik-lid { opacity: 1; }

/* появление при скролле */
.reveal { opacity: 0; translate: 0 24px; transition: opacity 400ms ease-out, translate 400ms ease-out; }
.reveal.in { opacity: 1; translate: 0 0; }
/* наклейки-карточки въезжают снизу; доворот живёт на ::before */
.p-card.reveal { translate: 0 24px; }
.p-card.reveal.in { opacity: 1; translate: 0 0; }

/* конфетти (частицы создаёт JS) */
.confetti-bit {
  position: fixed; z-index: 100; pointer-events: none;
  border-radius: 3px;
}

/* ============================================================
   АДАПТИВ
   ============================================================ */

@media (max-width: 1020px) {
  .cards-row { grid-template-columns: repeat(3, 1fr); }
  .sb-ref { display: none; }
}

@media (max-width: 1020px) {
  .head-nav { display: none; }
  /* nav с margin-left:auto скрыт — «Вход» сам прижимается вправо */
  .head-login { margin-left: auto; }

  /* на телефоне скролл важнее украшательств: плеерные волны замирают */
  .pl-wave i { animation: none; }
  .ring-pulse { animation-duration: 2.6s; }

  /* мобильный hero: вместо растрового SVG-стадиона — чистая CSS-дуга газона */
  .stadium-bg svg { display: none; }
  .hero { background: var(--paper); }
  .hero::after {
    content: "";
    position: absolute; left: -10%; right: -10%; bottom: -70px;
    height: 220px;
    background: var(--pitch);
    border-radius: 50% 50% 0 0 / 140px 140px 0 0;
    z-index: 0;
  }
  .hero-grid { position: relative; z-index: 1; }
  .hero-grid::after { content: none; }

  .hero-grid { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 90px; gap: 56px; }
  .hero-stage { padding-right: 0; }
  .phone { width: 262px; height: 514px; }
  .hero-fint { width: 104px; height: 104px; top: -20px; right: 6px; }
  .hero-sticker { font-size: 18px; left: 2px; bottom: 12px; max-width: 180px; }

  /* «Как это работает»: режимы в 2 колонки, макеты — свайп-ряд */
  .modes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .mode { text-align: left; padding: 18px 16px 16px; }
  .mode-ic { margin: 6px 0 10px; }
  .mocks {
    display: grid; grid-auto-flow: column; grid-auto-columns: 78%;
    grid-template-columns: none; /* без сброса побеждает repeat(3,…) из базы — карточки сжимаются в 3 колонки */
    overflow-x: auto; scroll-snap-type: x proximity;
    gap: 14px; padding-bottom: 8px;
    margin-inline: -24px; padding-inline: 24px;
    scrollbar-width: none;
  }
  .mocks::-webkit-scrollbar { display: none; }
  .mock { scroll-snap-align: center; }
  .school-grid { grid-template-columns: 1fr; padding: 22px 20px; }
  .school-nums { flex-direction: row; gap: 24px; flex-wrap: wrap; }
  .snum b { font-size: 38px; }
  .points { padding: 22px 20px; }

  .cards-row {
    display: grid; grid-auto-flow: column; grid-auto-columns: 62%;
    grid-template-columns: none; /* тот же сброс: repeat(3,1fr) из блока выше не должен побеждать */
    overflow-x: auto; scroll-snap-type: x proximity;
    gap: 14px; padding-bottom: 8px;
    margin-inline: -24px; padding-inline: 24px;
    scrollbar-width: none; /* свайп-жест: подсказка-полоса не нужна */
  }
  .cards-row::-webkit-scrollbar { display: none; }
  .p-card { scroll-snap-align: center; }

  .parents-grid { grid-template-columns: 1fr; gap: 40px; }
  .parents-mitya { left: auto; right: 0; bottom: -30px; width: 110px; height: 110px; }

  .listen-gosha { display: none; }

  .story-grid { grid-template-columns: 1fr; }
  .story-photo { max-width: 340px; margin: 20px auto 0; }
  .story-mitya { display: none; }

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

  .honesty-grid { grid-template-columns: 1fr; }
  .honesty-ref { width: 150px; height: 150px; }

  .final-in { margin-top: -120px; }
  .final-fint { display: none; }

  .ball-fab { display: block; }
  .ball-fab svg { transition: rotate 80ms linear; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-copy h1 { font-size: 36px; }
  /* «Скачать» из шапки не влезает вместе с «Входом» (торчал за край на ≤430px);
     скачивание — первой же полноширинной кнопкой hero, вход в шапке оставляем */
  .head-in .btn-small { display: none; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-copy .link-web { width: 100%; }
  .final-duo .btn { width: 100%; justify-content: center; }
  .scoreboard { flex-wrap: wrap; padding: 32px 20px; }
  .sb-note { position: static; margin-top: 10px; }
  .final-in { margin-top: -80px; }
  .final-in h2 { font-size: 30px; }
  .players-link { padding-left: 24px; }
  .player figcaption { padding-left: 0; }
  .modes { grid-template-columns: 1fr; }
  .mock-hw { flex-direction: row; }
  .hw-mid { flex: 0 0 44px; }
  .school-nums { flex-direction: column; }
}

/* доступность движения */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1; translate: 0 0; }
  .chart-line { stroke-dashoffset: 0; }
  .chart-dot { opacity: 1; }
}
