/* Смена — общий стиль сайта.
 *
 * Один файл на все четыре страницы: лендинг и три правовые. Раньше стиль лежал внутри каждой
 * страницы, и они разъезжались — в том числе по ширине блоков. Здесь ширину задаёт РОВНО ОДИН
 * класс `.container`, и любой блок на любой странице обязан быть его потомком; ограничение по
 * длине строки — это `.measure`, оно сужает ТЕКСТ, а не сам блок.
 *
 * Палитра — школьная: графит, белый и зелёный из приложения (#15A34A), чтобы сайт и приложение
 * выглядели одним продуктом.
 */

:root {
  --ink: #0B100E;          /* графит: шапка, герой, подвал */
  --ink-2: #151E1A;        /* панель на тёмном */
  --ink-line: #26332C;     /* граница на тёмном */
  --paper: #FFFFFF;
  --mist: #F3F6F4;         /* фон страницы */
  --line: #E1E7E3;
  --text: #101613;
  --muted: #5B6862;
  --faint: #93A099;
  --green: #15A34A;
  --green-hi: #1FBE5A;
  --green-dim: #0E7C38;
  --green-soft: #E8F6ED;
  --danger: #D7373C;
  --danger-soft: #FDEDED;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 34px;
  --shadow: 0 24px 60px rgba(11, 16, 14, .28);
}

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

html { scroll-behavior: smooth }

body {
  background: var(--mist);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--green-dim); text-underline-offset: 3px }
a:hover { color: var(--green) }
img { max-width: 100%; display: block }

/* ── Единственная сетка ширины ─────────────────────────────────────────────── */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px }
.measure { max-width: 62ch }
.measure-wide { max-width: 76ch }

/* ── Шапка ─────────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: rgba(11, 16, 14, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.site-head .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: #fff }
.brand img { width: 36px; height: 36px; border-radius: 10px }
.brand b { font-size: 18px; font-weight: 800; letter-spacing: .16em }
.brand span { color: var(--faint); font-size: 13px; border-left: 1px solid var(--ink-line); padding-left: 12px }
.site-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap }
.site-nav a {
  color: #C6D0CA; text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 8px 12px; border-radius: 999px;
}
.site-nav a:hover { color: #fff; background: var(--ink-2) }
.site-nav a[aria-current="page"] { color: #fff; background: var(--ink-2) }

/* ── Тёмные секции ─────────────────────────────────────────────────────────── */
.dark { background: var(--ink); color: #fff }
.dark h2, .dark h3 { color: #fff }
.dark p, .dark li { color: #B9C4BE }
.dark a { color: var(--green-hi) }

/* Разметка поля — фирменный приём: круг и линия, как на футбольном поле. */
.pitch { position: relative; overflow: hidden }
.pitch::before {
  content: ""; position: absolute; inset: -40% -10% auto auto; width: 640px; height: 640px;
  border: 1px solid rgba(255, 255, 255, .07); border-radius: 50%;
}
.pitch::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 22%; width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .09), transparent);
}
.pitch > * { position: relative }

/* ── Герой ─────────────────────────────────────────────────────────────────── */
.hero { padding: 68px 0 76px }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: var(--green-hi); background: rgba(31, 190, 90, .1);
  border: 1px solid rgba(31, 190, 90, .25); border-radius: 999px; padding: 7px 14px;
}
h1 { font-size: clamp(34px, 5.4vw, 56px); line-height: 1.04; letter-spacing: -.03em; font-weight: 800; margin: 20px 0 16px }
.hero p { font-size: clamp(17px, 2vw, 20px) }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px }
.chip {
  font-size: 14px; font-weight: 600; color: #D5E2DA;
  background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 999px; padding: 8px 15px;
}
.hero-note { margin-top: 26px; color: var(--faint); font-size: 14px }

/* Телефон: корпус рисуем рамкой, без картинок. */
.phone { background: #050907; border: 1px solid #26332C; border-radius: var(--r-xl); padding: 16px 9px 9px; box-shadow: var(--shadow) }
.phone::before { content: ""; display: block; width: 54px; height: 4px; border-radius: 3px; background: #2E3B34; margin: -8px auto 8px }
.phone img { border-radius: 26px }
.hero .phone { max-width: 320px; margin-left: auto }

/* ── Секции ────────────────────────────────────────────────────────────────── */
section { padding: 72px 0 }
.section-head { margin-bottom: 34px }
.kicker { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--green) }
h2 { font-size: clamp(26px, 3.6vw, 38px); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; margin: 10px 0 12px }
h3 { font-size: 19px; font-weight: 700; letter-spacing: -.01em; margin-bottom: 6px }
.lead { color: var(--muted); font-size: 18px }
.dark .lead { color: #B9C4BE }

/* Нумерованные возможности — вместо однотипных карточек. */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden }
.feature { background: var(--paper); padding: 28px 26px; display: grid; grid-template-columns: 58px 1fr; gap: 18px; align-items: start }
.feature .num { font-size: 15px; font-weight: 800; color: var(--green); border: 1.5px solid var(--green-soft); background: var(--green-soft); border-radius: 12px; width: 46px; height: 46px; display: grid; place-items: center }
.feature p { color: var(--muted); font-size: 16px }

/* Витрина экранов. */
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px }
.screens figure { text-align: center }
.screens figcaption { color: var(--muted); font-size: 15px; margin-top: 16px }

/* Панель-чеклист (родителям). */
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px }
.panel.on-green { background: var(--green-soft); border-color: #CFE9D9 }
.checklist { list-style: none; display: grid; gap: 16px }
.checklist li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; color: var(--muted); font-size: 16px }
.checklist b { color: var(--text) }
.checklist .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--green); display: grid; place-items: center; margin-top: 2px }
.checklist .tick svg { width: 14px; height: 14px; stroke: #fff; stroke-width: 3; fill: none }

/* Две колонки текста (тренерам). */
.cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px }
.card { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: var(--r-md); padding: 26px }
.card p { font-size: 16px }

/* ── Правовые страницы ─────────────────────────────────────────────────────── */
.legal-head { background: var(--ink); color: #fff; padding: 52px 0 44px }
.legal-head h1 { font-size: clamp(30px, 4.4vw, 44px); margin: 16px 0 10px }
.legal-head .meta { color: var(--faint); font-size: 15px }
.legal { padding: 44px 0 88px }
.legal-grid { display: grid; grid-template-columns: 250px 1fr; gap: 44px; align-items: start }
.toc { position: sticky; top: 92px }
.toc-title { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--faint); margin-bottom: 12px }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px }
.toc a {
  display: block; text-decoration: none; color: var(--muted); font-size: 15px; line-height: 1.35;
  padding: 8px 12px; border-radius: var(--r-sm); border-left: 2px solid transparent;
}
.toc a:hover { background: var(--paper); color: var(--text); border-left-color: var(--green) }
.toc-mobile { display: none }

/* min-width: 0 — обязательное. Элемент грид-сетки по умолчанию не сжимается уже своего
 * содержимого, поэтому таблица из раздела «какие данные собираем» (min-width 620px) распирала всю
 * страницу до 684px при экране 375 — вместо того чтобы прокручиваться внутри своей обёртки. */
.legal-grid > * { min-width: 0 }
.prose { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 40px; min-width: 0 }
.prose > p:first-child { font-size: 18px }
.prose h2 { font-size: 23px; margin: 40px 0 12px; scroll-margin-top: 92px }
.prose h2:first-of-type { margin-top: 10px }
.prose h2 .n { color: var(--green); font-variant-numeric: tabular-nums; margin-right: 10px }
.prose p, .prose li { color: #29322D; font-size: 16.5px }
.prose p { margin: 12px 0 }
.prose ul, .prose ol { margin: 12px 0 12px 24px }
.prose li { margin: 7px 0 }
.prose li b { color: var(--text) }

.tldr { background: var(--green-soft); border: 1px solid #CFE9D9; border-radius: var(--r-md); padding: 26px 28px; margin: 4px 0 30px }
.tldr h2 { font-size: 18px; margin: 0 0 12px }
.tldr ul { margin-left: 22px }
.tldr li { color: #2C4436 }
.callout { background: var(--mist); border-left: 3px solid var(--green); border-radius: 0 var(--r-sm) var(--r-sm) 0; padding: 16px 20px; margin: 20px 0; font-size: 16px }
.callout.warn { background: var(--danger-soft); border-left-color: var(--danger) }
.callout.warn b { color: #9E2126 }

.facts { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: 18px 0 }
.facts div { display: grid; grid-template-columns: 190px 1fr; gap: 18px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 16px }
.facts div:last-child { border-bottom: none }
.facts div:nth-child(odd) { background: #FAFCFB }
.facts dt, .facts span { color: var(--muted) }

.scroll-x { overflow-x: auto; margin: 18px 0; border: 1px solid var(--line); border-radius: var(--r-md) }
table { width: 100%; min-width: 620px; border-collapse: collapse; background: var(--paper) }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: 15.5px; vertical-align: top }
th { background: #F7F9F8; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700 }
tr:last-child td { border-bottom: none }

/* Контакты и вопросы (поддержка). */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 22px 0 }
.contact {
  display: block; text-decoration: none; color: var(--text);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px;
}
.contact:hover { border-color: var(--green); color: var(--text) }
.contact .label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 700 }
.contact b { display: block; font-size: 18px; color: var(--green-dim); margin: 8px 0 6px; word-break: break-word }
.contact span { color: var(--muted); font-size: 14px }

details.faq { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); margin: 10px 0; padding: 0 22px }
details.faq + details.faq { margin-top: 8px }
details.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none }
details.faq summary::after { content: "+"; color: var(--green); font-size: 24px; line-height: 1; flex: none }
details.faq[open] summary::after { content: "–" }
details.faq p, details.faq ul { padding-bottom: 18px; margin-top: 0; color: #29322D; font-size: 16px }
details.faq ul { margin-left: 24px }

/* ── Подвал ────────────────────────────────────────────────────────────────── */
/* Граница сверху — подвал часто идёт сразу за тёмной секцией, и без неё они сливаются в одно пятно. */
.site-foot { background: var(--ink); color: #B9C4BE; padding: 54px 0 44px; font-size: 15px; border-top: 1px solid var(--ink-line) }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px }
.site-foot h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px }
.site-foot a { color: #B9C4BE; text-decoration: none }
.site-foot a:hover { color: #fff }
.site-foot ul { list-style: none; display: grid; gap: 9px }
.foot-legal { border-top: 1px solid var(--ink-line); margin-top: 40px; padding-top: 22px; color: var(--faint); font-size: 13.5px; line-height: 1.7 }

/* ── Адаптив ───────────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px }
  .hero .phone { margin: 0 auto }
  .legal-grid { grid-template-columns: 1fr; gap: 22px }
  .toc { display: none }
  .toc-mobile { display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 0 20px }
  .toc-mobile summary { cursor: pointer; list-style: none; padding: 16px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center }
  .toc-mobile summary::-webkit-details-marker { display: none }
  /* Без значка «Содержание» читается как заголовок, а не как то, что можно развернуть. */
  .toc-mobile summary::after { content: "+"; color: var(--green); font-size: 22px; line-height: 1 }
  .toc-mobile[open] summary::after { content: "–" }
  .toc-mobile ol { list-style: none; padding-bottom: 14px; display: grid; gap: 2px }
  .toc-mobile a { display: block; padding: 8px 0; color: var(--muted); text-decoration: none; font-size: 15px }
  .foot-grid { grid-template-columns: 1fr 1fr }
}

@media (max-width: 760px) {
  body { font-size: 16px }
  .features { grid-template-columns: 1fr }
  .screens { grid-template-columns: 1fr; gap: 34px; max-width: 340px; margin: 0 auto }
  .cols { grid-template-columns: 1fr }
  .contact-grid { grid-template-columns: 1fr }
  .prose { padding: 26px 20px }
  .panel { padding: 24px 20px }
  .facts div { grid-template-columns: 1fr; gap: 2px }
  .foot-grid { grid-template-columns: 1fr }
  section { padding: 54px 0 }
  .hero { padding: 46px 0 56px }
  .brand span { display: none }
}
