/* ==========================================================================
   AI Падел / AI Padel — общий стиль лендингов aipadel.ru и aispadel.com
   Светлый спортивный стиль: белый фон, крупные фото, плотный сжатый гротеск
   в заголовках, чёрные кнопки; акцент — голубой → зелёный из знака AI Solutions.

   Шрифты саморазмещены в /assets/fonts/ (Google Fonts из РФ может не грузиться).
   Оба шрифта распространяются по лицензии SIL Open Font License 1.1 (OFL):
   - Sofia Sans Extra Condensed — Lettersoup (Botio Nikoltchev, Ani Petrova), OFL 1.1
   - Onest — Dmitri Voloshin, OFL 1.1
   Файлы — вариативные woff2, подмножества кириллица + латиница.
   ========================================================================== */

/* ---------- Шрифты ---------- */
@font-face {
  font-family: "Sofia Sans XCond";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("/assets/fonts/sofia-sans-xcond-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Sofia Sans XCond";
  font-style: normal;
  font-weight: 700 900;
  font-display: swap;
  src: url("/assets/fonts/sofia-sans-xcond-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;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/onest-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/assets/fonts/onest-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 {
  color-scheme: light;

  /* цвета */
  --ink: #0b0d0e;            /* основной текст, кнопки */
  --ink-2: #2f3438;          /* текст абзацев */
  --muted: #5b6268;          /* вторичный текст, 6:1 на белом */
  --line: #e2e4e6;           /* разделители */
  --line-strong: #c9cdd1;
  --bg: #ffffff;
  --bg-soft: #f3f3f0;        /* тёплый светло-серый фон секций */
  --bg-soft-2: #e9eae6;
  /* акцент — цвета знака AI Solutions (переход голубой → зелёный) */
  --brand-blue: #47c1f0;       /* крупные элементы, линии, точки; на чёрном 10:1 */
  --brand-green: #8cbd2e;      /* крупные элементы, линии, точки; на чёрном 9:1 */
  --brand-grad: linear-gradient(90deg, #47c1f0, #8cbd2e);
  /* углублённый вариант градиента для крупного текста на белом (≥3:1 по краям: 3,5 и 3,3) */
  --brand-grad-deep: linear-gradient(90deg, #1a93c8, #6a9a1c);
  --brand-blue-ink: #0b6e99;   /* мелкий текст и ссылки на белом, 5,7:1 */
  --brand-green-ink: #4a6e10;  /* мелкий текст на белом, 6,0:1 */
  --brand-blue-soft: #e3f4fc;
  --brand-green-soft: #eef6df;
  --night: #0b0d0e;          /* тёмная секция «Технологии» и подвал */
  --night-text: #f4f5f6;
  --night-muted: #a7aeb5;
  --night-line: rgba(255, 255, 255, .16);

  /* шрифты */
  --f-display: "Sofia Sans XCond", "Arial Narrow", "Roboto Condensed", sans-serif-condensed, Impact, sans-serif;
  --f-body: "Onest", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  /* размеры */
  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 40px);
  --hdr-h: 72px;
  --sec-y: clamp(64px, 9vw, 128px);

  /* радиусы */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  /* движение */
  --ease: cubic-bezier(.2, .7, .2, 1);
  --t: .22s;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; }
p { margin: 0; }
button, input, textarea { font: inherit; }

:focus-visible {
  outline: 3px solid var(--brand-blue-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  text-decoration: none;
  font-weight: 600;
}
.skip:focus { top: 12px; }

section[id] { scroll-margin-top: calc(var(--hdr-h) + 16px); }

/* ---------- Типографика ---------- */
.h-display {
  font-family: var(--f-display);
  font-weight: 900;
  letter-spacing: -.005em;
  line-height: .9;
  color: var(--ink);
}
.h2 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(44px, 6.4vw, 92px);
  line-height: .9;
  letter-spacing: -.005em;
  color: var(--ink);
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: .95;
  color: var(--ink);
}
.lead {
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-blue-ink);
  line-height: 1.2;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--brand-grad);
  flex: none;
}

/* шапка раздела: заголовок слева, подводка справа */
.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 72px);
}
.sec-head .lead { max-width: 52ch; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  border: 1.5px solid transparent;
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--t) var(--ease), color var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.btn svg { flex: none; transition: transform var(--t) var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2a2e31; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-soft-2); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.hdr {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--hdr-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
  text-decoration: none;
  color: var(--ink);
}
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 27px;
  letter-spacing: .005em;
  white-space: nowrap;
}
.brand-name b,
.hero-brand,
.contact-title span,
.stat-num.is-brand,
.step-num {
  background: var(--brand-grad-deep);
  -webkit-background-clip: text;
  background-clip: text;
  color: #1a93c8; /* запасной цвет, если градиент по тексту не поддерживается */
  -webkit-text-fill-color: transparent;
}
.brand-name b { font-weight: 900; }
.brand-sub {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-inline: auto;
  flex-wrap: nowrap;
}
.nav-item { position: relative; }
.navlink {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 10px;
  border-radius: var(--r-sm);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--t), background var(--t);
}
.navlink:hover { background: var(--bg-soft); }
.navlink.is-active { color: var(--ink); }
.navlink.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 2px;
  height: 3px;
  border-radius: 2px;
  background: var(--brand-grad);
}
.nav-caret { transition: transform var(--t); }

.nav-sub {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 250px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: 0 24px 48px rgba(11, 13, 14, .12);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav-sub::before { /* мостик, чтобы меню не закрывалось при переходе мышью */
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 10px;
}
.nav-sub .navlink { padding: 10px 12px; font-weight: 500; }
.nav-sub .navlink.is-active::after { display: none; }
.has-sub:hover > .nav-sub,
.has-sub:focus-within > .nav-sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .nav-caret,
.has-sub:focus-within .nav-caret { transform: rotate(180deg); }

.hdr-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.nav-cta { display: none; }

/* переключатель языка (разметку строит общий i18n-скрипт) */
.hdr-lang { display: inline-flex; }
.hdr-lang .i18n-sw { margin-inline-start: 0; }
.hdr-lang .i18n-btn {
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font: 700 13px/1 var(--f-body);
  letter-spacing: .04em;
}
.hdr-lang .i18n-btn:hover,
.hdr-lang .i18n-btn[aria-expanded="true"] { border-color: var(--ink); color: var(--ink); }
.hdr-lang .i18n-menu { border-radius: var(--r-md); border-color: var(--line); }
.hdr-lang .i18n-menu a { font-family: var(--f-body), "Noto Sans Arabic", sans-serif; color: var(--ink); }
.hdr-lang .i18n-menu a:hover { background: var(--bg-soft); }
.hdr-lang .i18n-menu a.on { color: var(--brand-blue-ink); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex: none;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

@media (max-width: 1439px) {
  .hdr { gap: 14px; }
  .brand-sub { display: none; }
  .nav { gap: 0; }
  .navlink { padding: 10px 8px; font-size: 14.5px; }
  .navlink.is-active::after { left: 8px; right: 8px; }
  .hdr-actions { gap: 8px; }
  .hdr-cta { padding: 0 16px; }
}

@media (max-width: 1199px) {
  .navlink { padding: 10px 6px; font-size: 14px; }
  .navlink.is-active::after { left: 6px; right: 6px; }
  .brand-name { font-size: 25px; }
  .hdr-lang .i18n-btn { padding: 0 10px; }
}
@media (max-width: 1099px) {
  .burger { display: inline-flex; }
  .hdr-actions { margin-inline-start: auto; }
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100vh - var(--hdr-h));
    max-height: calc(100dvh - var(--hdr-h));
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px rgba(11, 13, 14, .10);
  }
  .nav.open { display: flex; }
  .nav-item { border-top: 1px solid var(--line); }
  .nav > .navlink { border-top: 1px solid var(--line); }
  .navlink { display: flex; padding: 14px 4px; font-size: 17px; border-radius: 0; }
  .site-header:has(.nav.open) ~ #toTop { display: none; }
  .navlink:hover { background: transparent; color: var(--brand-blue-ink); }
  .navlink.is-active::after { display: none; }
  .nav-caret { display: none; }
  .nav-sub {
    position: static;
    min-width: 0;
    padding: 0 0 10px 16px;
    border: 0;
    box-shadow: none;
    background: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
  .nav-sub::before { display: none; }
  .nav-sub .navlink { padding: 9px 4px; font-size: 15.5px; color: var(--ink-2); }
  .nav-cta { display: flex; margin-top: 14px; }
}
@media (max-width: 560px) {
  :root { --hdr-h: 64px; }
  .hdr-cta { display: none; }
  .brand img { width: 34px; height: 34px; }
  .brand-name { font-size: 25px; }
  .hdr-lang .i18n-btn { height: 40px; padding: 0 10px; }
}

/* ---------- Герой ---------- */
.hero { padding: clamp(36px, 5.5vw, 72px) 0 clamp(48px, 6vw, 88px); }
.hero-top {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 28px 64px;
  align-items: end;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.hero-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(54px, 8vw, 120px);
  line-height: .86;
  letter-spacing: -.008em;
  color: var(--ink);
  text-wrap: balance;
}
.hero-brand { display: block; width: fit-content; padding-bottom: .04em; margin-bottom: .02em; }
.hero-side { display: grid; gap: 28px; padding-bottom: 6px; }
.hero-side .lead { max-width: 46ch; }

/* фото на всю ширину контейнера; слой трекинга привязан к координатам кадра
   через container query units — совпадает с object-fit:cover при любом размере */
.hero-media {
  position: relative;
  height: clamp(300px, 50vw, 680px);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #1d3b52;
  container-type: size;
  --iar: 1.5131;                         /* 1100 / 727 — пропорции кадра */
  --sw: max(100cqw, 100cqh * var(--iar)); /* ширина отрисованного кадра */
  --sh: calc(var(--sw) / var(--iar));     /* высота отрисованного кадра */
}
.hero-media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.hero-media::after { /* лёгкое затемнение снизу для читаемости плашек */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 28%, rgba(0,0,0,0) 70%, rgba(0,0,0,.28) 100%);
  pointer-events: none;
}
.ar-layer { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ar-path { position: absolute; inset: 0; width: 100%; height: 100%; }
.ar-path path { fill: none; stroke: #fff; stroke-width: 3; stroke-dasharray: 10 9; opacity: .9; }
.ar-ball {
  /* мяч в кадре: x = 72 %, y = 67,5 % исходного изображения */
  position: absolute;
  left: calc((100cqw - var(--sw)) * .5 + var(--sw) * .72);
  top: calc((100cqh - var(--sh)) * .5 + var(--sh) * .675);
  width: 0;
  height: 0;
}
.ar-box {
  position: absolute;
  left: -24px;
  top: -24px;
  width: 48px;
  height: 48px;
  border: 2px solid #fff;
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, .25);
  animation: ar-pulse 2.4s var(--ease) infinite;
}
.ar-dot {
  position: absolute;
  left: -5px;
  top: -5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 3px rgba(140, 189, 46, .45);
}
.ar-speed {
  position: absolute;
  right: 34px;
  bottom: 30px;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: #fff;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 26px;
  line-height: 1;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ar-speed small { font-family: var(--f-body); font-size: 12px; font-weight: 600; margin-left: 4px; color: #d6d9dc; }
.ar-live {
  position: absolute;
  left: 18px;
  top: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--r-pill);
  background: rgba(11, 13, 14, .72);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ar-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-green); animation: ar-blink 1.4s steps(2, start) infinite; }
.ar-shot {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 9px 14px;
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.ar-shot span { color: var(--brand-green-ink); }
@keyframes ar-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes ar-blink { to { visibility: hidden; } }

.hero-feats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 40px;
  margin-top: clamp(28px, 3.5vw, 44px);
}
.hero-feat { padding-top: 18px; border-top: 2px solid var(--ink); }
.hero-feat .hf-t {
  font-family: var(--f-display);
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 8px;
}
.hero-feat p:not(.hf-t) { font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- Цифры ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.stat { padding: 28px 28px 8px 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid var(--line); }
.stat-num {
  --stat-fs: clamp(60px, 7vw, 104px);
  display: flex;
  align-items: flex-end;
  height: calc(var(--stat-fs) * .85);
  font-family: var(--f-display);
  font-weight: 900;
  font-size: var(--stat-fs);
  line-height: .85;
  white-space: nowrap;
  color: var(--ink);
  letter-spacing: -.01em;
}
.stat-num--word { font-size: clamp(44px, 4.6vw, 72px); }
.stat-label { display: block; margin-top: 14px; font-size: 17px; font-weight: 700; color: var(--ink); }
.stat-text { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--muted); }

/* ---------- Секции ---------- */
.section { padding: var(--sec-y) 0; }
.section--soft { background: var(--bg-soft); }
.section--night { background: var(--night); color: var(--night-text); }
.section--night .h2 { color: #fff; }
.section--night .lead { color: var(--night-muted); }
.section--night .eyebrow { color: var(--brand-blue); }

/* ---------- Для клуба: слайдеры (JS — тот же компонент, классы sch-*) ---------- */
.sch-slider { position: relative; }
.sch-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: var(--r-lg);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  outline: none;
}
.sch-track::-webkit-scrollbar { display: none; }
.sch-track:focus-visible { box-shadow: 0 0 0 3px var(--brand-blue-ink); }
.sch-slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; }
.sch-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  min-height: 480px;
  background: #fff;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.sch-hero-img { position: relative; background: var(--bg-soft-2); }
.sch-hero-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 24px;
}
.sch-hero-txt { display: flex; flex-direction: column; justify-content: center; padding: clamp(28px, 4vw, 52px); }
.sch-num {
  margin-bottom: 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-blue-ink);
}
.sch-title {
  margin: 0 0 16px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(32px, 3.4vw, 46px);
  line-height: .95;
  color: var(--ink);
  text-wrap: balance;
}
.sch-text { margin: 0 0 18px; font-size: 16px; line-height: 1.6; color: var(--ink-2); }
.sch-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.sch-list li {
  position: relative;
  padding-inline-start: 22px;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--ink-2);
}
.sch-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .55em;
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--brand-grad);
}
.sch-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.sch-dots { display: flex; flex-wrap: wrap; gap: 4px; }
.sch-dot {
  position: relative;
  width: 40px;
  height: 28px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.sch-dot::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: 12px;
  height: 4px;
  border-radius: 2px;
  background: var(--line-strong);
  transition: background var(--t);
}
.sch-dot[aria-current="true"]::before { background: var(--ink); }
.sch-arrows { display: flex; gap: 10px; }
.sch-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--ink);
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  transition: background var(--t), color var(--t);
}
.sch-arrow:hover { background: var(--ink); color: #fff; }
[dir="rtl"] .sch-arrow svg { transform: scaleX(-1); }

.sch-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: clamp(40px, 5vw, 64px);
  border-top: 2px solid var(--ink);
}
.sch-stat { padding: 24px 24px 4px 0; }
.sch-stat + .sch-stat { padding-left: 24px; border-left: 1px solid var(--line-strong); }
.sch-stat b {
  display: block;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(48px, 5vw, 72px);
  line-height: .9;
  color: var(--ink);
}
.sch-stat span { display: block; margin-top: 10px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.sch-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); }

.sub-block { margin-top: clamp(64px, 8vw, 112px); }
.sub-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 64px; align-items: end; margin-bottom: 28px; }
.sub-head .sch-text { margin: 0; max-width: 52ch; }

.sch-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.sch-tab {
  min-height: 46px;
  padding: 0 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: #fff;
  color: var(--ink);
  font: 600 15px/1.2 var(--f-body);
  cursor: pointer;
  transition: border-color var(--t), background var(--t), color var(--t);
}
.sch-tab:hover { border-color: var(--ink); }
.sch-tab[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.sch-level {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 56px;
  background: #fff;
  border-radius: var(--r-lg);
  padding: clamp(24px, 3.5vw, 44px);
}
.sch-level h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand-blue-ink);
}
.sch-gto {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 14px;
  padding: 16px 20px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.sch-gto svg { flex: none; color: var(--brand-green); margin-top: 1px; }

.equip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.equip-card { background: #fff; border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.equip-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.equip-img--court { object-position: 50% 68%; }
.equip-img--hero { object-position: 50% 35%; }
.equip-body { padding: clamp(22px, 3vw, 36px); }
.equip-body h4 {
  margin-bottom: 16px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(32px, 3vw, 42px);
  line-height: .95;
}

.sch-gets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: clamp(40px, 5vw, 64px);
}
.sch-get { padding-top: 18px; border-top: 2px solid var(--ink); }
.sch-get h4 { margin-bottom: 8px; font-size: 18px; font-weight: 700; line-height: 1.3; }
.sch-get p { margin: 0; font-size: 15px; line-height: 1.5; color: var(--muted); }
.sch-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(36px, 4vw, 52px); }
.sch-grid-min > * { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }

/* ---------- Модули аналитики ---------- */
.modules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}
.module {
  position: relative;
  padding: 32px 32px 40px 0;
  border-bottom: 1px solid var(--line);
}
.module:nth-child(3n+2), .module:nth-child(3n) { padding-left: 32px; border-left: 1px solid var(--line); }
.module-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.module-icon { width: 44px; height: 44px; color: var(--brand-blue-ink); }
.module-idx { font-family: var(--f-display); font-weight: 800; font-size: 22px; color: var(--brand-blue-ink); }
.module h3 { font-size: 21px; font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.module p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }

/* ---------- Как это работает ---------- */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 20px;
  padding: 28px 0;
  border-top: 1px solid var(--line-strong);
}
.step:last-child { border-bottom: 1px solid var(--line-strong); }
.step-num {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 76px;
  line-height: .8;
  width: fit-content;
}
.step h3 { font-size: 22px; font-weight: 700; line-height: 1.25; margin-bottom: 8px; }
.step p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.how-photo {
  position: sticky;
  top: calc(var(--hdr-h) + 24px);
  margin: 0;
}
.how-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 62%;
  border-radius: var(--r-lg);
}
.how-photo figcaption { margin-top: 12px; font-size: 14px; color: var(--muted); }

.how-intro .h2 { margin-bottom: 20px; }
.how-intro .lead { margin-bottom: 40px; }

/* ---------- Режимы ---------- */
.drills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.drill {
  position: relative;
  padding: 28px 28px 32px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  transition: background var(--t);
}
.drill:hover { background: var(--bg-soft-2); }
.drill-tag {
  display: inline-block;
  margin-bottom: 40px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.drill h3 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 36px;
  line-height: .95;
  margin-bottom: 10px;
}
.drill p { font-size: 15.5px; line-height: 1.5; color: var(--ink-2); }
.drill--main { background: var(--ink); color: #fff; }
.drill--main:hover { background: #22272a; }
.drill--main h3 { color: #fff; }
.drill--main p { color: #d4d8db; }
.drill--main .drill-tag { color: var(--brand-green); }

/* ---------- Технологии ---------- */
.tech { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.tech-item { padding-top: 22px; border-top: 1px solid var(--night-line); }
.tech-item h3 {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(30px, 2.6vw, 38px);
  line-height: .95;
  color: #fff;
  margin-bottom: 12px;
}
.tech-item h3::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  margin-bottom: 18px;
  background: var(--brand-grad);
}
.tech-item p { font-size: 15.5px; line-height: 1.55; color: var(--night-muted); }

/* ---------- Интеграции ---------- */
.integr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.integr-card {
  display: flex;
  flex-direction: column;
  padding: 26px 28px 30px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  transition: border-color var(--t);
}
.integr-card:hover { border-color: var(--ink); }
.integr-card h3 {
  margin: 22px 0 10px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: 34px;
  line-height: .95;
}
.integr-card p { font-size: 15.5px; line-height: 1.55; color: var(--muted); }
.status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .02em;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--live { background: var(--brand-green-soft); color: var(--brand-green-ink); }
.status--live::before { background: var(--brand-green); }
.status--ready { background: var(--brand-blue-soft); color: var(--brand-blue-ink); }
.status--ready::before { background: var(--brand-blue); }
.status--dev { border: 1.5px dashed var(--line-strong); color: var(--muted); }
.integr-actions { margin-top: clamp(32px, 4vw, 48px); }

/* ---------- Контакты ---------- */
.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.contact-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(60px, 8vw, 128px);
  line-height: .85;
  color: var(--ink);
  margin-bottom: 24px;
}
.contact-title span { display: block; width: fit-content; padding-bottom: .04em; }
.contact .lead { margin-bottom: 28px; }
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); }
.contact-list li { border-bottom: 1px solid var(--line-strong); }
.contact-list a {
  display: grid;
  grid-template-columns: 44px 110px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  text-decoration: none;
  color: var(--ink);
}
.contact-list a:hover .c-val { color: var(--brand-blue-ink); text-decoration: underline; text-underline-offset: 4px; }
.c-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}
.c-key { font-size: 14px; font-weight: 600; color: var(--muted); }
.c-val { font-size: 18px; font-weight: 700; overflow-wrap: anywhere; transition: color var(--t); }

.lead-form {
  position: relative;
  padding: clamp(24px, 3.5vw, 40px);
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 60px rgba(11, 13, 14, .08);
}
.form-title {
  margin-bottom: 6px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(32px, 3vw, 42px);
  line-height: .95;
  color: var(--ink);
}
.form-sub { margin-bottom: 22px; font-size: 15px; color: var(--muted); }
.field { display: block; margin-bottom: 14px; }
.field-label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
.field-label i { font-style: normal; color: var(--brand-blue-ink); }
.field input,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.4;
  transition: border-color var(--t), box-shadow var(--t);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input::placeholder,
.field textarea::placeholder { color: #8a9096; }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(71, 193, 240, .35); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 14px; }
.hp-trap { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { margin-top: 12px; font-size: 13.5px; color: var(--muted); text-align: center; }
.form-done { padding: 32px 8px; text-align: center; }
.form-done-title { font-family: var(--f-display); font-weight: 900; font-size: 40px; line-height: 1; color: var(--ink); }
.form-done-text { margin-top: 10px; font-size: 16px; color: var(--muted); }

.cta-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(48px, 6vw, 80px);
}
.cta-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 16px;
  align-items: center;
  padding: 24px 26px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: #fff;
  text-decoration: none;
  color: var(--ink);
  transition: border-color var(--t), background var(--t);
}
.cta-card:hover { border-color: var(--ink); }
.cta-card b { font-size: 18px; font-weight: 700; }
.cta-card span { grid-column: 1; font-size: 14.5px; color: var(--muted); }
.cta-card svg { grid-row: 1 / span 2; grid-column: 2; transition: transform var(--t); }
.cta-card:hover svg { transform: translateX(4px); }

/* ---------- Подвал ---------- */
.site-footer { background: var(--night); color: var(--night-muted); padding: clamp(48px, 6vw, 80px) 0 28px; font-size: 15px; }
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--night-line);
}
.foot-brand .brand-name { color: #fff; font-size: 40px; }
.foot-brand p { margin-top: 12px; max-width: 34ch; }
.foot-col .foot-h {
  margin-bottom: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-col a { color: var(--night-muted); text-decoration: none; }
.foot-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-req { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; font-size: 13.5px; }
.foot-req b { color: #fff; font-weight: 700; }
.site-footer :focus-visible,
.section--night :focus-visible { outline-color: var(--brand-blue); }

/* ---------- Кнопка «наверх» ---------- */
#toTop {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 0 0 2px #fff, 0 12px 28px rgba(11, 13, 14, .28);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s, transform .25s, visibility .25s, background .2s;
}
#toTop.show { opacity: 1; visibility: visible; transform: none; }
#toTop:hover { background: #2a2e31; }

/* ---------- Уведомление о куки (разметку создаёт /analytics.js, страница вешает классы) ---------- */
.privacy-note {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 10px 10px 20px;
  background: #fff;
  color: var(--ink-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  box-shadow: 0 16px 40px rgba(11, 13, 14, .16);
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.4;
}
.privacy-note-text { flex: 1 1 auto; min-width: 0; }
.privacy-note-text a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.privacy-note-text a:hover { color: var(--brand-blue-ink); }
.privacy-note-btn { flex: none; min-height: 40px; }
body:has(.privacy-note) #toTop { bottom: 92px; }
@media (max-width: 600px) {
  .privacy-note { left: 12px; right: 12px; bottom: 12px; gap: 10px; padding: 6px 6px 6px 16px; font-size: 13.5px; }
  .pn-more { display: none; }
  .privacy-note-btn { min-height: 38px; padding: 0 16px; font-size: 14px; }
  body:has(.privacy-note) #toTop { bottom: 72px; }
}

/* ---------- Появление при загрузке ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero-title, .hero-side, .hero-media, .hero-feats { animation: rise .7s var(--ease) both; }
.hero-side { animation-delay: .08s; }
.hero-media { animation-delay: .16s; }
.hero-feats { animation-delay: .24s; }

/* ---------- Адаптивность ---------- */
@media (max-width: 1099px) {
  .hero-top, .sec-head, .sub-head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .stats, .sch-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat:nth-child(3), .sch-stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3), .sch-stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sch-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .sch-hero-img { height: 320px; }
  .sch-gets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .modules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .module:nth-child(3n+2), .module:nth-child(3n) { padding-left: 0; border-left: 0; }
  .module:nth-child(2n) { padding-left: 28px; border-left: 1px solid var(--line); }
  .module { padding-right: 28px; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how-photo { position: static; order: -1; }
  .how-photo img { aspect-ratio: 16 / 10; }
  .drills, .integr { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact { grid-template-columns: minmax(0, 1fr); }
  .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .hero-feats { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .hero-media { height: 340px; border-radius: var(--r-md); }
  .ar-speed { font-size: 21px; right: 26px; bottom: 26px; }
  .ar-shot { font-size: 13px; }
  .sch-level, .equip { grid-template-columns: minmax(0, 1fr); }
  .sch-hero-img { height: 240px; }
  .sch-hero-img img { padding: 12px; }
  .sch-tab { flex: 1 1 auto; }
  .modules { grid-template-columns: minmax(0, 1fr); }
  .module, .module:nth-child(2n) { padding: 26px 0 30px; border-left: 0; }
  .drills, .integr, .tech, .cta-cards, .sch-gets { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .step { grid-template-columns: 60px minmax(0, 1fr); gap: 14px; }
  .step-num { font-size: 58px; }
  .contact-list a { grid-template-columns: 40px minmax(0, 1fr); gap: 4px 14px; }
  .c-ico { width: 40px; height: 40px; grid-row: 1 / span 2; }
  .c-key { grid-column: 2; }
  .c-val { grid-column: 2; font-size: 17px; }
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  #toTop { right: 16px; bottom: 16px; width: 46px; height: 46px; }
}
@media (max-width: 420px) {
  .stats, .sch-stats { grid-template-columns: minmax(0, 1fr); }
  .stat + .stat, .sch-stat + .sch-stat { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .btn-row .btn { flex: 1 1 100%; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Уменьшение движения ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sch-track { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}
