/* LEONE D'ORO — вёрстка, редакция v2 (16.09.2026).
   Мобильный порядок, расширения по возрастанию ширины в конце каждого
   блока. Ни одного hex: все цвета берутся из tokens.css.

   Подпись движения — «проявление на месте» из v1 (маска clip-path,
   без въезда блоков) плюс то, что добавил разбор 70 сайтов ниши:
   строки заголовков поднимаются из-под линии, кадры «садятся»
   (scale 1.08 → 1), полосы заливаются слева направо, клятва додзё
   прочитывается словами по мере прокрутки. Всё движение включается
   только классом .js-motion на <html> — без скрипта и под
   prefers-reduced-motion страница полностью видна и неподвижна. */

/* ─── Основа ─────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 17px/1.62 var(--font-text);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

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

/* Правило браузера [hidden]{display:none} проигрывает любому своему
   правилу с display — фильтр по округу однажды уже молча не работал. */
[hidden] { display: none !important; }

a { color: var(--brand-2); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--fg); }
:focus-visible { outline: 2px solid var(--brand-2); outline-offset: 3px; border-radius: 2px; }
button { font: inherit; color: inherit; }

::selection { background: var(--brand-soft); color: var(--fg); }

.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; background: var(--brand); color: var(--on-brand);
  font-weight: 600; text-decoration: none; border-radius: var(--radius);
  transition: top .18s var(--ease);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 16px;
}
@media (min-width: 600px) { .wrap { padding-inline: 28px; } }
@media (min-width: 1100px) { .wrap { padding-inline: 40px; } }

/* ─── Типографика ────────────────────────────────────────────────────── */

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  /* Надзаголовок — курсив антиквы, а не капс с разрядкой: разряженный
     ALL-CAPS над каждым разделом — затёртая подпись шаблонов 2024–2026. */
  font: italic 500 19px/1.3 var(--font-display);
  color: var(--brand-2);
}
.eyebrow__rule {
  flex: none;
  width: 28px; height: 1px;
  background: currentColor;
  transform-origin: left;
}
.eyebrow--on-dark { color: var(--brand-hi); }

.h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -.022em;
  text-wrap: balance;
}
/* Курсив — второй голос заголовка: служебная часть фразы антиквой
   с наклоном и золотом (приём funakoshi.it, tracksmith). */
.h2 em, .hero__h em {
  font-style: italic;
  font-weight: 500;
  color: var(--brand-2);
}
.h2--on-dark { color: var(--on-dark); }
.h2--on-dark em { color: var(--brand-hi); }

.head { margin-bottom: clamp(32px, 5vw, 64px); max-width: 860px; }
.head__lead {
  margin: 20px 0 0;
  max-width: 560px;
  font-size: clamp(16.5px, 1.4vw, 18.5px);
  line-height: 1.6;
  color: var(--fg-2);
}
.head__lead--on-dark { color: var(--on-dark-2); }
.sec--pine .head__lead--on-dark { color: var(--on-pine-2); }

@media (min-width: 900px) {
  .head--split {
    max-width: none;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 48px;
    align-items: end;
  }
  .head--split .head__lead { margin: 0; justify-self: end; }
}

.lnk { color: var(--brand-2); font-weight: 600; }

.note {
  margin: 24px 0 0;
  max-width: 760px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg-3);
}
.note--on-dark { color: var(--on-dark-2); }
.note__now {
  display: inline-block;
  padding: 0 7px;
  border: 1.5px solid var(--seal);
  border-radius: 3px;
  color: var(--seal);
  font-weight: 600;
}

/* ─── Кнопки ─────────────────────────────────────────────────────────── */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 15.5px/1.2 var(--font-text);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  isolation: isolate;
  overflow: hidden;
  transition: color .3s var(--ease), border-color .3s var(--ease),
              background-color .3s var(--ease), transform .2s var(--ease);
}
/* Заливка поднимается снизу, а не мигает цветом: нажатие ощущается
   как наливание — та же подпись, что у карточек. */
.btn::before {
  content: "";
  position: absolute; inset: 0;
  z-index: -1;
  background: var(--fg);
  transform: translateY(101%);
  transition: transform .45s var(--ease-out);
}
.btn:hover::before { transform: none; }
.btn:active { transform: scale(.98); }
.btn:disabled { cursor: progress; opacity: .7; }

.btn--gold { background: var(--brand); color: var(--on-brand); }
.btn--gold:hover { color: var(--on-dark); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn--ghost:hover { color: var(--on-dark); border-color: var(--fg); }
.btn--ink { background: var(--fg); color: var(--on-dark); }
.btn--ink::before { background: var(--bg); }
.btn--ink:hover { color: var(--fg); }

.sec--dark .btn--ghost, .sec--pine .btn--ghost { color: var(--on-dark); border-color: var(--line-dark); }
.sec--dark .btn--gold::before, .sec--pine .btn--gold::before { background: var(--on-dark); }
.sec--dark .btn--gold:hover, .sec--pine .btn--gold:hover { color: var(--fg); }

.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 14.5px; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 16.5px; }
.btn--wide { width: 100%; }

.btn.is-loading { color: transparent !important; }
.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid var(--on-brand);
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Шапка ──────────────────────────────────────────────────────────── */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: transform .5s var(--ease-io), box-shadow .3s var(--ease);
}
/* Прячется целиком, вместе с полосой объявления: при прокрутке вниз
   шапка не нужна, при прокрутке вверх возвращается сразу. */
.top.is-hidden { transform: translateY(-100%); }
.top.is-stuck { box-shadow: 0 1px 0 var(--line), 0 12px 28px -24px rgba(21, 18, 13, .5); }

.announce {
  margin: 0;
  padding: 7px 16px;
  background: var(--dark);
  color: var(--on-dark-2);
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}
.announce a { color: var(--brand-hi); font-weight: 600; }
.announce a:hover { color: var(--on-dark); }
.announce__dot {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 8px;
  vertical-align: 1px;
  border-radius: 50%;
  background: var(--brand-hi);
  box-shadow: 0 0 0 0 var(--brand-hi);
  animation: ping 2.4s var(--ease) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand-hi) 60%, transparent); }
  70%, 100% { box-shadow: 0 0 0 9px transparent; }
}

.top__in {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--fg);
  text-decoration: none;
}
.brand__mark { width: 44px; height: 44px; }
.brand__txt { display: flex; flex-direction: column; }
.brand__name {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
}
.brand__sub { margin-top: 3px; font-size: 11.5px; color: var(--fg-3); letter-spacing: .02em; white-space: nowrap; }
@media (min-width: 1100px) and (max-width: 1379px) { .brand__sub { display: none; } }

.top__act { display: flex; align-items: center; gap: 10px; }
.tel {
  display: none;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
}
.top__act .btn--sm { display: none; }

.burger {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 48px; height: 48px;
  padding: 0;
  background: none;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  cursor: pointer;
}
.burger span:not(.vh) {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--fg);
  transition: transform .3s var(--ease), opacity .2s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Меню на телефоне — накладка во весь экран. Открывается медленнее,
   чем закрывается (приём on.com): 0.45 с против 0.2. */
.nav {
  position: fixed;
  inset: 0;
  z-index: -1;
  display: flex;
  flex-direction: column;
  padding: 150px 20px 28px;
  background: var(--bg-2);
  overflow-y: auto;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s .2s;
}
.nav.is-open {
  visibility: visible;
  opacity: 1;
  transform: none;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out), visibility 0s;
}
.nav > a {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--fg);
  text-decoration: none;
}
.nav__foot { display: grid; gap: 6px; margin-top: auto; padding-top: 28px; }
.nav__tel {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}
.nav__who { margin-bottom: 14px; font-size: 14px; color: var(--fg-3); }

@media (min-width: 600px) {
  .top__act .btn--sm { display: inline-flex; }
}
@media (min-width: 1100px) {
  .burger { display: none; }
  .tel { display: inline; }
  .nav {
    position: static;
    z-index: auto;
    flex-direction: row;
    gap: 4px;
    padding: 0;
    background: none;
    overflow: visible;
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: none;
  }
  .nav > a {
    position: relative;
    padding: 8px 9px;
    border: 0;
    white-space: nowrap;
    font: 500 14.5px/1.2 var(--font-text);
    color: var(--fg-2);
  }
  .nav > a::after {
    content: "";
    position: absolute;
    left: 10px; right: 10px; bottom: 2px;
    height: 1.5px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .4s var(--ease-out);
  }
  .nav > a:hover { color: var(--fg); }
  .nav > a:hover::after, .nav > a.is-here::after { transform: scaleX(1); transform-origin: left; }
  .nav > a.is-here { color: var(--fg); }
  .nav__extra, .nav__foot { display: none !important; }
}
@media (min-width: 1100px) and (max-width: 1239px) { .tel { display: none; } }

/* ─── Первый экран ───────────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(28px, 5vw, 64px) 0 0;
  background:
    radial-gradient(120% 80% at 0% 0%, var(--bg) 0%, transparent 60%),
    var(--bg-2);
}
.hero__in { display: grid; gap: 32px; }

.hero__h {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(42px, 6.4vw, 92px);
  line-height: .98;
  letter-spacing: -.03em;
}
/* Строка — маска, в ней поднимается набор. Запас снизу нужен курсиву
   и нижним выносным: без него маска срезает хвост «у» и «д». */
.line { display: block; overflow: clip; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; }

.hero__lead {
  margin: 24px 0 0;
  max-width: 520px;
  font-size: clamp(17px, 1.5vw, 19.5px);
  line-height: 1.6;
  color: var(--fg-2);
}
.hero__act { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.pick {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line-2);
}
.pick__l { margin-right: 4px; font-size: 14px; color: var(--fg-3); }
.pick__c {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 14px;
  color: var(--fg-2);
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.pick__c:hover { background: var(--fg); border-color: var(--fg); color: var(--on-dark); }

.hero__ph { position: relative; margin: 0; }
.hero__frame {
  overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 3 / 2;
  background: var(--bg-3);
}
.hero__frame img, .hero__frame picture { width: 100%; height: 100%; object-fit: cover; }

/* Печать-ханко. Сплошная подложка, поэтому контраст не зависит
   от снимка под ней. Оттиск — двойная рамка и лёгкий поворот. */
.seal {
  position: absolute;
  right: 10px; bottom: 10px;
  display: grid;
  justify-items: center;
  gap: 1px;
  width: 100px;
  margin: 0;
  padding: 12px 8px 10px;
  background: var(--bg);
  color: var(--seal);
  border: 2px solid var(--seal);
  outline: 1px solid var(--seal);
  outline-offset: -7px;
  border-radius: 10px;
  transform: rotate(-7deg);
  box-shadow: 0 14px 30px -18px rgba(21, 18, 13, .55);
  text-align: center;
}
.seal__k { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; line-height: 1.2; }
.seal__n { font-family: var(--font-display); font-size: 30px; font-weight: 800; line-height: 1; }

/* Факты заходят на нижний край кадра на широком экране. */
.facts {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 28px auto 0;
  padding: 0;
  list-style: none;
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 16px;
  background: var(--bg);
  border-top: 2px solid var(--brand);
}
.fact b {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 52px);
  font-weight: 800;
  line-height: .95;
  letter-spacing: -.02em;
  font-variant-numeric: lining-nums tabular-nums;
}
.fact span { font-size: 13.5px; line-height: 1.4; color: var(--fg-2); }

@media (min-width: 600px) {
  .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .seal { right: 22px; bottom: 22px; width: 132px; }
  .seal__n { font-size: 42px; }
}
@media (min-width: 1000px) {
  .hero { padding-top: 56px; }
  .hero__in {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: stretch;
  }
  /* Под колонкой текста — запас под факты: они заходят на кадр,
     но не на выбор округа. */
  .hero__txt { padding-bottom: 104px; align-self: center; }
  .hero__ph { display: flex; flex-direction: column; }
  /* Кадр уходит под правый край окна — экран становится шире колонки. */
  .hero__ph { margin-right: calc((min(100vw, 1600px) - var(--wrap)) / -2 - 40px); }
  .hero__frame { flex: 1; aspect-ratio: auto; min-height: 560px; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
  .seal { left: -54px; right: auto; top: auto; bottom: 110px; width: 148px; }
  .seal__n { font-size: 48px; }
  .facts { margin-top: -64px; padding-inline: 40px; gap: 16px; }
  .fact { box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius); padding: 22px 22px 20px; }
}
/* Кадр до края окна = минус боковой отступ .wrap на этой ширине.
   Отступ 28 px до 1100 и 40 px после — одно число на обе ширины
   давало переполнение на 12 px при 1024. */
@media (min-width: 1000px) and (max-width: 1099px) { .hero__ph { margin-right: -28px; } }
@media (min-width: 1100px) and (max-width: 1239px) { .hero__ph { margin-right: -40px; } }

/* ─── Бегущая строка ─────────────────────────────────────────────────── */

.marquee {
  margin-top: clamp(40px, 6vw, 72px);
  padding: 16px 0;
  background: var(--dark);
  color: var(--brand-hi);
  overflow: hidden;
  white-space: nowrap;
}
.marquee__track {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-family: var(--font-display);
  font-size: clamp(20px, 2.4vw, 30px);
  font-style: italic;
  animation: marquee 48s linear infinite;
}
.marquee__track i { font-style: normal; font-size: .6em; color: var(--seal); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ─── Разделы ────────────────────────────────────────────────────────── */

.sec { position: relative; padding-block: var(--pad-block); }
.sec--tight { padding-block: clamp(48px, 6vw, 88px); }
/* Паузы разной длины: после плотного блока короче, перед сменой темы
   длиннее. Одинаковый отступ у всех разделов — метроном. */
#schedule { padding-top: clamp(40px, 5vw, 72px); }
#programs { padding-block: clamp(80px, 10vw, 150px); }
#kyokushin { padding-block: clamp(88px, 11vw, 168px) clamp(64px, 8vw, 112px); }
#coaches { padding-top: clamp(56px, 7vw, 100px); }
#path { padding-bottom: clamp(56px, 6vw, 88px); }
#tournaments { padding-top: clamp(72px, 9vw, 140px); }
#reviews { padding-block: clamp(56px, 6vw, 96px); }
#faq { padding-block: clamp(72px, 9vw, 136px); }
.sec--ivory { background: var(--bg-2); }
.sec--dark { background: var(--dark); color: var(--on-dark); }
.sec--pine { background: var(--pine); color: var(--on-dark); }

/* ─── Фильтры ────────────────────────────────────────────────────────── */

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 15px;
  background: var(--bg);
  color: var(--fg-2);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font: 500 14.5px/1.2 var(--font-text);
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.chip:hover { border-color: var(--fg); color: var(--fg); }
.chip.is-on { background: var(--fg); border-color: var(--fg); color: var(--on-dark); }
.chip__n {
  min-width: 22px;
  padding: 1px 6px;
  border-radius: 999px;
  background: var(--bg-3);
  color: var(--fg-2);
  font-size: 12px;
  text-align: center;
}
.chip.is-on .chip__n { background: var(--brand); color: var(--on-brand); }

.sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--line-2); }
.sw--young { background: var(--sand); }
.sw--kids { background: var(--brand); border-color: var(--brand); }
.sw--teen { background: var(--pine); border-color: var(--pine); }

/* ─── Залы: список + карточка ────────────────────────────────────────── */

.finder { display: grid; gap: 24px; }

.hlist {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-2);
  counter-reset: hall;
}
.hrow { border-bottom: 1px solid var(--line-2); }
.hrow__h {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 24px;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 18px 4px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  isolation: isolate;
}
/* Наведение — наливание подложки слева направо. */
.hrow__h::before {
  content: "";
  position: absolute; inset: 0 -12px;
  z-index: -1;
  background: var(--bg);
  border-radius: var(--radius);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease-out);
}
.hrow__h:hover::before, .hrow.is-on .hrow__h::before { transform: none; }
.hrow__i {
  font-family: var(--font-display);
  font-size: 15px;
  font-style: italic;
  color: var(--fg-3);
}
.hrow.is-on .hrow__i { color: var(--seal); }
.hrow__n {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 700;
  line-height: 1.15;
}
.hrow__a { display: block; margin-top: 3px; font-size: 14px; color: var(--fg-3); }
.hrow__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tag {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-3);
  font-size: 12px;
  line-height: 1.5;
  color: var(--fg-2);
}
.tag--d { background: transparent; border: 1px solid var(--line-2); }
.hrow__ar {
  width: 24px; height: 24px;
  color: var(--brand-2);
  transition: transform .4s var(--ease-out);
}
.hrow.is-on .hrow__ar { transform: rotate(90deg); }

/* Тело строки — только на телефоне. Раскрытие через grid-rows 0fr→1fr:
   плавно до автовысоты без замера в пикселях. */
.hrow__b {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease-out);
}
.hrow.is-on .hrow__b { grid-template-rows: 1fr; }
.hrow__b > div { overflow: hidden; min-height: 0; }
.hrow__b .hcard__body { padding: 0 4px 20px 46px; }

.hpanel { display: grid; gap: 16px; align-content: start; }
.map {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--bg-3);
  aspect-ratio: 4 / 3;
}
.map__frame { display: block; width: 100%; height: 100%; border: 0; }
.map__tag {
  position: absolute;
  left: 12px; top: 12px;
  z-index: 2;
  margin: 0;
  padding: 6px 12px;
  background: var(--fg);
  color: var(--on-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  pointer-events: none;
}
.hcard { display: none; }

.hcard__body { display: grid; gap: 14px; }
.hcard__n {
  margin: 0;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.05;
}
.hcard__a { margin: 4px 0 0; color: var(--fg-2); font-size: 15px; }
.hcard__next {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin: 0;
  padding: 12px 14px;
  background: var(--brand-soft);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius);
  font-size: 14.5px;
  color: var(--fg-2);
}
.hcard__next b { font-family: var(--font-display); font-size: 20px; color: var(--fg); }
.slots { margin: 0; padding: 0; list-style: none; }
.slot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line-2);
}
.slot:last-child { border-bottom: 0; }
.slot__d { font-weight: 600; }
.slot__t { font-family: var(--font-display); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.slot__m { grid-column: 1 / -1; font-size: 13.5px; color: var(--fg-3); }
.hcard__act { display: flex; flex-wrap: wrap; gap: 10px; }

.halls__empty { margin-top: 18px; color: var(--fg-2); }

@media (max-width: 599px) {
  .hrow__h { grid-template-columns: 24px minmax(0, 1fr) 20px; gap: 10px; }
  .hrow__b .hcard__body { padding-left: 34px; }
  .hcard__act .btn { flex: 1 1 140px; }
}
@media (min-width: 900px) {
  .finder { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: start; }
  .hrow__b { display: none; }
  .hpanel { position: sticky; top: 110px; }
  .hcard {
    display: block;
    padding: 24px;
    background: var(--bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
  }
  .hcard.is-swap { animation: swap .5s var(--ease-out) both; }
  .map { aspect-ratio: 16 / 9; }
}
@keyframes swap { from { opacity: 0; clip-path: inset(0 0 18% 0); } to { opacity: 1; clip-path: inset(0); } }

/* ─── Сегодня ────────────────────────────────────────────────────────── */

.today {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 22px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.today__pulse {
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--seal);
  animation: ping-seal 2.2s var(--ease) infinite;
}
@keyframes ping-seal {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--seal) 50%, transparent); }
  70%, 100% { box-shadow: 0 0 0 10px transparent; }
}
.today__t { margin: 0; font-size: 15.5px; line-height: 1.45; color: var(--fg-2); }
.today__t b { color: var(--fg); }

.agebar { margin-bottom: 8px; }

/* ─── Сетка расписания: залы × дни ───────────────────────────────────── */

.grid-wrap { display: none; }

.grid {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.grid th, .grid td { padding: 6px; vertical-align: middle; }
.grid__corner { width: 26%; }
.grid__day {
  padding: 12px 6px !important;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  text-align: center;
  border-bottom: 1px solid var(--line-2);
}
.grid__day.is-today { color: var(--brand-2); }
.grid__cnt {
  display: block;
  font: 600 10.5px/1.2 var(--font-text);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--seal);
}
.grid__row th, .grid__row td { border-bottom: 1px solid var(--line); }
.grid__row { transition: background-color .25s var(--ease); }
.grid__row:hover { background: var(--bg-2); }
.grid__hall { text-align: left; font-weight: 400; padding: 14px 12px 14px 0 !important; }
.grid__n { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.15; }
.grid__a { display: block; font-size: 13px; color: var(--fg-3); }
td.is-today { background: color-mix(in srgb, var(--brand-soft) 70%, transparent); }
.grid__e { display: block; text-align: center; color: var(--line-2); }

.grid__t {
  position: relative;
  display: grid;
  gap: 1px;
  padding: 9px 10px;
  border-radius: 8px;
  background: var(--sand);
  color: var(--fg);
  text-align: left;
  transition: opacity .35s var(--ease), filter .35s var(--ease), transform .3s var(--ease);
}
.grid__c[data-band="kids"] .grid__t { background: var(--brand); color: var(--on-brand); }
.grid__c[data-band="teen"] .grid__t { background: var(--pine); color: var(--on-dark); }
.grid__time { font-weight: 700; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.grid__age, .grid__coach { font-size: 12px; line-height: 1.3; opacity: .85; }
.grid__c.is-dim .grid__t { opacity: .16; filter: saturate(0); }
.grid__c.is-now .grid__t { outline: 2px solid var(--seal); outline-offset: 2px; }
.grid__c.is-now .grid__t::after {
  content: "";
  position: absolute;
  right: 8px; top: 8px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--seal);
  animation: ping-seal 2.2s var(--ease) infinite;
}

/* ─── Расписание на телефоне: список по дням ─────────────────────────── */

.week { display: grid; gap: 12px; }
/* На телефоне — один день за раз: шесть дней подряд были самой длинной
   простынёй страницы (~2500 px). Вкладки дней стоят над списком. */
.wtabs {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: var(--bg-2);
  border-radius: 999px;
}
.wtab {
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg-2);
  cursor: pointer;
  position: relative;
}
.wtab.is-today::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 6px;
  width: 4px; height: 4px;
  margin-left: -2px;
  border-radius: 50%;
  background: var(--seal);
}
.wtab[aria-selected="true"] { background: var(--fg); color: var(--on-dark); }
.wday {
  padding: 16px;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
}
.wday.is-today { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand); }
.wday__h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
}
.wday__n { font: 500 13px/1.2 var(--font-text); color: var(--fg-2); }
.wday__l { margin: 0; padding: 0; list-style: none; }
.wslot {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  transition: opacity .3s var(--ease);
}
.wslot.is-dim { opacity: .3; }
.wslot.is-now { box-shadow: inset 3px 0 0 var(--seal); padding-left: 10px; }
.wslot__time { font-weight: 700; font-variant-numeric: tabular-nums; }
.wslot__age {
  display: inline-block;
  margin-top: 3px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--sand);
  font-size: 12px;
  font-weight: 500;
}
.wslot[data-band="kids"] .wslot__age { background: var(--brand); color: var(--on-brand); }
.wslot[data-band="teen"] .wslot__age { background: var(--pine); color: var(--on-dark); }
.wslot__hall { font-weight: 600; line-height: 1.3; }
.wslot__addr { display: block; font-weight: 400; font-size: 13.5px; color: var(--fg-3); }

@media (min-width: 900px) {
  .grid-wrap { display: block; }
  .week { display: none; }
}

/* ─── Группы по возрасту ─────────────────────────────────────────────── */

.prog { display: grid; gap: 40px; }
.prog__list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-pine); }
.pitem { border-bottom: 1px solid var(--line-pine); }
.pitem__h {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: 0;
  color: var(--on-dark);
  text-align: left;
  cursor: pointer;
}
.pitem__n {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--on-pine-2);
  transition: color .4s var(--ease);
}
.pitem__t {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.015em;
  opacity: .62;
  transition: opacity .45s var(--ease-out), transform .45s var(--ease-out);
}
.pitem__t small {
  display: block;
  margin-bottom: 6px;
  font: italic 500 17px/1.2 var(--font-display);
  color: var(--brand-hi);
}
.pitem.is-on .pitem__t, .pitem__h:hover .pitem__t { opacity: 1; }
.pitem.is-on .pitem__t { transform: translateX(8px); }
.pitem.is-on .pitem__n { color: var(--brand-hi); }

.pitem__b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.pitem.is-on .pitem__b { grid-template-rows: 1fr; }
/* Коробка с overflow — САМА .pitem__in, поэтому отступов по вертикали
   у неё нет: при 0fr нижний отступ оставлял видимой первую строку. */
.pitem__b > div { overflow: hidden; min-height: 0; }
.pitem__in { padding: 0 0 0 48px; }
.pitem__in > :last-child { padding-bottom: 26px; }
/* Тело пункта стоит ровно под заголовком: отступ = колонка номера + зазор. */
@media (min-width: 600px) { .pitem__in { padding-left: 76px; } }
@media (max-width: 599px) {
  .pitem__h { grid-template-columns: 36px minmax(0, 1fr); }
  .pitem.is-on .pitem__t { transform: none; }
}
.pitem__in p { margin: 0 0 18px; max-width: 520px; color: var(--on-pine-2); }
.pitem__f { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.pitem__f li { font-size: 13.5px; color: var(--on-pine-2); }
.pitem__f b {
  display: block;
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--on-dark);
}

.prog__shots { display: none; }

@media (min-width: 900px) {
  .prog { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 64px; align-items: start; }
  .prog__shots {
    position: sticky;
    top: 110px;
    display: grid;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--pine-2);
  }
  .prog__shots img {
    grid-area: 1 / 1;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.06);
    transition: opacity .6s var(--ease), transform 1.1s var(--ease-out);
  }
  .prog__shots img.is-on { opacity: 1; transform: none; }
}

/* ─── Киокушин: правила ──────────────────────────────────────────────── */

#kyokushin { overflow: hidden; }
.ghost {
  position: absolute;
  top: 40px; left: 0;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(120px, 24vw, 380px);
  font-weight: 800;
  line-height: .8;
  letter-spacing: -.04em;
  white-space: nowrap;
  color: color-mix(in srgb, var(--dark-2) 55%, var(--dark));
  pointer-events: none;
}
#kyokushin .wrap { position: relative; }

.rules {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--line-dark);
  border-block: 1px solid var(--line-dark);
}
.rule {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 26px 0;
  background: var(--dark);
}
.rule__t {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font: italic 500 18px/1.2 var(--font-display);
  color: var(--brand-hi);
}
.rule__n {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border: 1.5px solid var(--seal);
  border-radius: 6px;
  color: var(--on-dark);
  background: var(--seal);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0;
  transform: rotate(-6deg);
}
.rule__h {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  line-height: 1.12;
}
.rule__d { margin: 0; color: var(--on-dark-2); font-size: 16px; }

@media (min-width: 700px) {
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rule { padding: 30px 28px 30px 0; }
  .rule:nth-child(even) { padding-left: 28px; }
}
@media (min-width: 1100px) {
  .rules { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rule, .rule:nth-child(even) { padding: 34px 28px 34px 24px; }
  .rule:first-child { padding-left: 0; }
}

/* ─── Первое занятие ─────────────────────────────────────────────────── */

.lesson__bar {
  display: flex;
  gap: 4px;
  height: 14px;
}
.lesson__bar span {
  flex: var(--w) 1 0;
  overflow: hidden;
  border-radius: 999px;
  background: var(--bg-3);
}
.lesson__bar i {
  display: block;
  height: 100%;
  background: var(--brand);
  transform-origin: left;
}
.lesson__bar span:nth-child(2) i { background: var(--fg); }
.lesson__bar span:nth-child(3) i { background: var(--pine); }
.lesson__bar span:nth-child(4) i { background: var(--sand); }
.lesson__scale {
  display: none;
  justify-content: space-between;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--fg-3);
  font-variant-numeric: tabular-nums;
}

.steps {
  display: grid;
  gap: 0;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 18px 0 18px 44px;
  border-top: 1px solid var(--line-2);
  counter-increment: step;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0; top: 20px;
  display: grid;
  place-items: center;
  width: 28px; height: 28px;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--fg-2);
  background: var(--bg-2);
}
.step__t {
  display: inline-block;
  margin-bottom: 4px;
  font: italic 500 17px/1.2 var(--font-display);
  color: var(--brand-2);
}
.step__h { margin: 0 0 6px; font-family: var(--font-display); font-size: 22px; font-weight: 700; line-height: 1.15; }
.step p { margin: 0; font-size: 15.5px; line-height: 1.55; color: var(--fg-2); }
.step--after::before { background: var(--seal); border-color: var(--seal); color: var(--on-dark); }

.take {
  margin-top: 40px;
  padding: 24px;
  background: var(--bg);
  border-radius: var(--radius-lg);
}
.take__h { margin: 0 0 14px; font-family: var(--font-display); font-size: 24px; font-weight: 700; }
.take__list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.take__list li { position: relative; padding-left: 28px; font-size: 16px; line-height: 1.45; }
/* Галочка рамкой, а не глифом: птичка в кириллических гарнитурах есть не везде. */
.take__list li::before {
  content: "";
  position: absolute;
  left: 2px; top: 6px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.take__list span { color: var(--fg-3); }

@media (min-width: 700px) {
  .lesson__scale { display: flex; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}
@media (min-width: 1100px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 40px; }
  .take { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; padding: 30px 34px; }
  .take__h { margin: 0; }
  .take__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
}

/* ─── Числа ───────────────────────────────────────────────────────────
   Три строки: цифра и подпись вплотную, между ними тонкая золотая черта.
   Раньше цифры чередовались слева/справа, а подпись уезжала на другой
   край — между ними зияла половина экрана. */

.nums {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.num {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.num b {
  font-family: var(--font-display);
  font-size: clamp(72px, 12vw, 168px);
  font-weight: 800;
  line-height: .86;
  letter-spacing: -.04em;
  font-variant-numeric: lining-nums;
  color: var(--brand);
  background: var(--gilt);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: .06em;
}
.num span {
  max-width: 440px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.5;
  color: var(--fg-2);
}
@media (min-width: 800px) {
  .num {
    grid-template-columns: clamp(260px, 30vw, 400px) minmax(0, 1fr);
    gap: 40px;
    padding: 34px 0;
  }
  .num span {
    position: relative;
    padding-left: 28px;
  }
  .num span::before {
    content: "";
    position: absolute;
    left: 0; top: .35em; bottom: .35em;
    width: 2px;
    background: var(--brand);
    transform-origin: top;
  }
}

/* ─── Тренеры ────────────────────────────────────────────────────────── */

.coaches { display: grid; gap: 40px; }
.fig { margin: 28px 0 0; }
.fig__in { overflow: hidden; border-radius: var(--radius-lg); }
.fig__in img { width: 100%; }
.fig figcaption { margin-top: 10px; font-size: 13.5px; color: var(--fg-3); }

.terms {
  display: grid;
  gap: 1px;
  margin: 0 0 28px;
  background: var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.terms div { padding: 16px 18px; background: var(--bg-2); }
.terms dt { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--brand-2); }
.terms dd { margin: 2px 0 0; font-size: 15px; color: var(--fg-2); }

.clist { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-2); }
.crow {
  position: relative;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 44px;
  gap: 16px;
  align-items: start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-2);
  isolation: isolate;
}
.crow::before {
  content: "";
  position: absolute; inset: 0 -14px;
  z-index: -1;
  background: var(--bg-2);
  border-radius: var(--radius);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .5s var(--ease-out);
}
.crow:hover::before { transform: none; }
.crow__m {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--brand-soft);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 800;
  color: var(--brand-2);
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.crow:hover .crow__m { background: var(--brand); color: var(--on-brand); }
.crow__n { margin: 0; font-family: var(--font-display); font-size: 24px; font-weight: 700; line-height: 1.1; }
.crow__r { margin: 4px 0 8px; font-size: 13.5px; font-weight: 600; color: var(--brand-2); }
.crow__d { margin: 0 0 8px; font-size: 15.5px; line-height: 1.5; color: var(--fg-2); }
.crow__h { margin: 0; font-size: 13.5px; color: var(--fg-3); }
.crow__more {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  color: var(--fg);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), transform .4s var(--ease-out);
}
/* Кнопка на всю строку: нажимается любая точка, а не кружок 44 px. */
.crow__more::after { content: ""; position: absolute; inset: 0; }
.crow:hover .crow__more { background: var(--fg); color: var(--on-dark); transform: translateX(4px); }

@media (min-width: 600px) { .terms { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .coaches { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 72px; }
  .coaches__side { position: sticky; top: 110px; align-self: start; }
  .fig__in { aspect-ratio: 4 / 4.2; }
  .fig__in img { height: 100%; object-fit: cover; object-position: 50% 30%; }
}

/* ─── Пояса ────────────────────────────────────────────────────────────
   Семь карточек-ступеней. В каждой — отрезок пояса с прострочкой (как
   настоящий оби), ниже ступень и цвет. Выбранная поднимается на белую
   подложку с золотой кромкой снизу. Сетка ровная: все карточки одной
   высоты, подписи на одной линии. */

.belt__strip {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.belt__seg {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  gap: 4px;
  min-height: 132px;
  padding: 18px 14px 16px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--line-2);
  text-align: left;
  cursor: pointer;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), transform .35s var(--ease-out);
}
.belt__seg:hover { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.belt__seg.is-on {
  background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line), inset 0 -3px 0 var(--brand), var(--shadow);
}
.belt__band {
  display: block;
  height: 16px;
  margin-bottom: 18px;
  border-radius: 3px;
  background:
    linear-gradient(transparent 46%, rgba(255, 255, 255, .22) 46%, rgba(255, 255, 255, .22) 54%, transparent 54%),
    var(--c);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12);
  transform-origin: left;
}
.belt__seg--light .belt__band {
  background:
    linear-gradient(transparent 46%, var(--line-2) 46%, var(--line-2) 54%, transparent 54%),
    var(--c);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.belt__seg b {
  align-self: end;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.9vw, 24px);
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
  color: var(--fg);
}
.belt__seg span { font-size: 13px; line-height: 1.3; color: var(--fg-2); }

.belt__say {
  min-height: 3.2em;
  margin: 22px 0 0;
  font-size: 17px;
  line-height: 1.5;
  color: var(--fg-2);
}
.belt__say b { font-family: var(--font-display); font-size: 21px; color: var(--fg); }

/* Телефон: семь колонок в 360 px не помещаются — лента в две строки
   по четыре и три, та же ровная сетка. */
@media (max-width: 699px) {
  .belt__strip { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  /* 4 + 3: чёрный пояс занимает две клетки — нижний ряд без дыры справа. */
  .belt__seg:last-child { grid-column: span 2; }
  .belt__seg { min-height: 104px; padding: 12px 10px; }
  .belt__band { height: 12px; margin-bottom: 12px; }
  .belt__seg b { font-size: 16px; }
  .belt__seg span { font-size: 11.5px; }
}

/* ─── Додзё-кун ──────────────────────────────────────────────────────── */

.kun {
  display: grid;
  gap: 28px;
  margin-top: clamp(64px, 9vw, 120px);
  padding-top: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line-2);
}
.kun__h { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(34px, 4.4vw, 54px); font-weight: 700; line-height: 1; }
.kun__lead p { margin: 0 0 12px; color: var(--fg-2); font-size: 16px; }
.kun__lead .kun__note { font-size: 13.5px; color: var(--fg-3); }
.kun__list { margin: 0; padding: 0; list-style: none; counter-reset: kun; }
.kun__list li {
  position: relative;
  padding: 16px 0 16px 48px;
  border-bottom: 1px solid var(--line-2);
  counter-increment: kun;
  font-family: var(--font-display);
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.28;
  letter-spacing: -.005em;
}
.kun__list li::before {
  content: counter(kun);
  position: absolute;
  left: 0; top: 22px;
  font-size: 15px;
  font-style: italic;
  color: var(--brand-2);
}
.kun__list .w { transition: opacity .5s var(--ease); }
@media (min-width: 1000px) {
  .kun { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 72px; }
  .kun__lead { position: sticky; top: 120px; align-self: start; }
}

/* ─── Путь ученика ───────────────────────────────────────────────────── */

.ladder {
  position: relative;
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.rung { position: relative; padding: 0 0 28px 36px; }
/* Нить пути — вертикальная на телефоне, горизонтальная на широком. */
.rung::before {
  content: "";
  position: absolute;
  left: 7px; top: 10px; bottom: -10px;
  width: 1.5px;
  background: var(--line-pine);
}
.rung:last-child::before { display: none; }
.rung::after {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--pine);
  border: 2px solid var(--brand-hi);
}
.rung:last-child::after { background: var(--brand-hi); }
.rung__n { margin: 0 0 4px; font: italic 500 18px/1.2 var(--font-display); color: var(--brand-hi); }
.rung__h { margin: 0 0 8px; font-family: var(--font-display); font-size: 25px; font-weight: 700; line-height: 1.1; }
.rung__d { margin: 0; font-size: 15.5px; color: var(--on-pine-2); }

@media (min-width: 900px) {
  .ladder { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .rung { padding: 36px 0 0; }
  .rung::before { left: 16px; right: -32px; top: 7px; bottom: auto; width: auto; height: 1.5px; transform-origin: left; }
  .rung::after { top: 0; }
}

/* Лента кадров: scroll-snap без библиотек, следующий кадр виден краем. */
.reel { margin-top: clamp(48px, 6vw, 80px); }
.reel__track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 0 16px 8px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.reel__track::-webkit-scrollbar { display: none; }
.reel__track:focus-visible { outline-offset: -2px; }
.shot { flex: none; margin: 0; scroll-snap-align: start; }
.shot img {
  height: clamp(320px, 48vw, 520px);
  width: auto;
  max-width: none;
  border-radius: var(--radius-lg);
  object-fit: cover;
}
.shot--tall img { aspect-ratio: 3 / 4; }
.shot--wide img { aspect-ratio: 4 / 3; }
.shot p { margin: 12px 0 0; font-size: 14px; color: var(--on-pine-2); }
.reel__ctl { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.reel__bar { flex: 1; height: 2px; background: var(--line-pine); position: relative; overflow: hidden; }
.reel__bar i {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--w, 30%);
  background: var(--brand-hi);
  transform: translateX(var(--x, 0));
  transition: transform .2s linear;
}
.reel__btn {
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  background: transparent;
  color: var(--on-dark);
  border: 1px solid var(--line-pine);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.reel__btn:hover { background: var(--brand-hi); color: var(--fg); border-color: var(--brand-hi); }
.reel__btn:disabled { opacity: .35; cursor: default; background: transparent; color: var(--on-dark); }

@media (min-width: 600px) {
  .reel__track { padding-inline: 28px; scroll-padding-inline: 28px; gap: 20px; }
}
@media (min-width: 1100px) {
  .reel__track {
    padding-inline: max(40px, calc((100vw - var(--wrap)) / 2 + 40px));
    scroll-padding-inline: max(40px, calc((100vw - var(--wrap)) / 2 + 40px));
  }
}

/* ─── Турниры ────────────────────────────────────────────────────────── */

.events { display: grid; gap: 20px; }
.event {
  padding: 26px 24px;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
}
.event--main { padding: 0; background: var(--dark); color: var(--on-dark); overflow: hidden; }
.event__ph { overflow: hidden; }
.event__ph img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.event__txt { position: relative; padding: 26px 24px 28px; }
.event__big {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(64px, 9vw, 120px);
  font-weight: 800;
  line-height: .85;
  letter-spacing: -.03em;
  background: var(--gilt);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.event__when {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(26px, 3.4vw, 48px);
  line-height: 1;
  color: var(--seal);
}
.event__h { margin: 0 0 8px; font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.12; }
.event__meta { margin: 0 0 10px; font-size: 13.5px; font-weight: 600; letter-spacing: .04em; color: var(--brand-hi); }
.event__d { margin: 0; font-size: 15.5px; color: var(--fg-2); }
.event--main .event__d { color: var(--on-dark-2); }

@media (min-width: 900px) {
  .events { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event--main { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .event__ph img { height: 100%; aspect-ratio: auto; min-height: 420px; }
  .event__txt { align-self: end; padding: 40px 40px 40px 36px; }
}
@media (min-width: 1100px) {
  .events { grid-template-columns: 2fr 1fr 1fr; }
  .event--main { grid-column: 1 / 2; grid-row: span 2; grid-template-columns: 1fr; }
  .event__ph img { min-height: 0; aspect-ratio: 16 / 9; }
  .event { padding: 30px 28px; }
  .event--main { padding: 0; }
  .events { grid-template-columns: 1.7fr 1fr; }
  .event--main { grid-row: 1 / 3; }
  .event:not(.event--main) { display: flex; flex-direction: column; }
  .event:not(.event--main) .event__when { margin-bottom: auto; padding-bottom: 24px; }
}

/* ─── Мозаика ────────────────────────────────────────────────────────── */

.mosaic { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; margin: 0; }
.tile--a, .tile--f { grid-column: 1 / -1; }
.tile__ph { overflow: hidden; border-radius: var(--radius-lg); background: var(--bg-3); aspect-ratio: 4 / 3; }
.tile__ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  transition: transform .5s var(--ease);
}
.tile figcaption { margin-top: 10px; font-size: 14px; line-height: 1.45; color: var(--fg-3); }
.tile figcaption b { display: block; font-family: var(--font-display); font-size: 19px; color: var(--fg); }
@media (hover: hover) {
  /* Наливается медленнее, чем возвращается (tracksmith): 0.7 с на вход. */
  .tile:hover .tile__ph img { transform: scale(1.035); transition-duration: .7s; }
}
@media (min-width: 900px) {
  .mosaic {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-flow: dense;
    gap: 20px;
  }
  .tile--a { grid-column: span 2; grid-row: span 2; }
  .tile--a .tile__ph { aspect-ratio: auto; height: calc(100% - 60px); min-height: 420px; }
  /* Последний кадр — полосой во всю ширину: иначе справа от него
     в сетке из четырёх колонок оставалась пустая клетка. */
  .tile--f { grid-column: 1 / -1; }
  .tile--f .tile__ph { aspect-ratio: 3 / 1; }
  .tile--f .tile__ph img { object-position: 50% 58%; }
}

/* ─── Стоимость ──────────────────────────────────────────────────────── */

.cost { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.cost__i {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 22px;
  background: var(--bg-2);
  border-radius: var(--radius-lg);
  border-top: 3px solid transparent;
  transition: border-color .4s var(--ease), transform .4s var(--ease-out);
}
.cost__i:hover { border-top-color: var(--brand); }
.cost__i--free { background: var(--brand); color: var(--on-brand); }
.cost__i--free:hover { border-top-color: var(--fg); }
.cost__n { margin: 0; font: italic 500 17px/1.2 var(--font-display); color: var(--brand-2); }
.cost__i--free .cost__n { color: var(--fg); }
.cost__h { margin: 0; font-family: var(--font-display); font-size: 26px; font-weight: 700; line-height: 1.1; }
.cost__big {
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.cost__per { margin: -4px 0 0; font-size: 13.5px; color: var(--fg-3); }
.cost__d { margin: 0; font-size: 15px; line-height: 1.5; color: var(--fg-2); }
.cost__i--free .cost__d { color: var(--fg); }
.cost__i .btn { margin-top: auto; }
.cost__rows { margin: 4px 0 0; padding: 0; list-style: none; }
.cost__rows li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--line-2);
  font-size: 15px;
}
.cost__rows b { white-space: nowrap; font-variant-numeric: tabular-nums; }
.cost__i > .cost__d:last-child { margin-top: auto; }

.seg {
  display: inline-grid;
  grid-auto-flow: column;
  gap: 2px;
  justify-self: start;
  align-self: start;
  padding: 3px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 999px;
}
.seg__b {
  min-width: 48px;
  min-height: 34px;
  padding: 4px 12px;
  background: none;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  color: var(--fg-2);
  cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
.seg__b.is-on { background: var(--fg); color: var(--on-dark); }
.roll { display: inline-block; }
.roll.is-roll { animation: roll .5s var(--ease-out); }
@keyframes roll { from { transform: translateY(-60%); opacity: 0; } }

@media (min-width: 700px) { .cost { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cost { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

/* ─── Отзывы ─────────────────────────────────────────────────────────── */

/* На телефоне — лента вбок с краем следующей карточки: четыре отзыва
   стопкой занимали три экрана. */
.revs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 12px;
  margin: 0 -16px;
  padding: 0 16px 6px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  scrollbar-width: none;
}
.revs::-webkit-scrollbar { display: none; }
.rev { scroll-snap-align: start; }
.rev {
  display: flex;
  flex-direction: column;
  padding: 26px 24px;
  background: var(--bg);
  border-radius: var(--radius-lg);
}
.rev__q { margin: 0 0 20px; }
.rev__q p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1.4;
}
.rev__q p::before { content: "«"; color: var(--brand); }
.rev__q p::after { content: "»"; color: var(--brand); }
.rev__a { display: flex; flex-direction: column; margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--line); }
.rev__a b { font-size: 15px; }
.rev__a span { font-size: 13px; color: var(--fg-3); }
@media (min-width: 700px) {
  .revs { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; overflow: visible; }
}
@media (min-width: 1100px) { .revs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ─── Вопросы ────────────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--line-2); }
.q { border-bottom: 1px solid var(--line-2); }
.q summary {
  position: relative;
  display: block;
  padding: 20px 48px 20px 0;
  font-family: var(--font-display);
  font-size: clamp(19px, 2vw, 23px);
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  list-style: none;
  transition: color .25s var(--ease);
}
.q summary::-webkit-details-marker { display: none; }
.q summary:hover { color: var(--brand-2); }
.q summary::before, .q summary::after {
  content: "";
  position: absolute;
  right: 8px; top: 50%;
  width: 16px; height: 1.8px;
  background: currentColor;
  transition: transform .4s var(--ease-out);
}
.q summary::after { transform: rotate(90deg); }
.q[open] summary::after { transform: rotate(0deg); }
.q__a > div { padding: 0 48px 22px 0; }
.q__a p { margin: 0; color: var(--fg-2); max-width: 640px; }
/* Плавное раскрытие: grid 0fr→1fr. Класс ставит скрипт, иначе
   <details> без скрипта открывался бы с пустым телом. */
.q--anim .q__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease-out); }
.q--anim .q__a > div { overflow: hidden; min-height: 0; }
.q--anim.is-open .q__a { grid-template-rows: 1fr; }

@media (min-width: 1000px) {
  .faqwrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 72px; align-items: start; }
  .faqwrap .head { position: sticky; top: 120px; }
}

/* ─── Заявка ─────────────────────────────────────────────────────────── */

.split { display: grid; gap: 40px; }
.split__lead { margin: 20px 0; color: var(--on-dark-2); max-width: 460px; font-size: 17px; }
.split__pts { display: grid; gap: 10px; margin: 0 0 28px; padding: 0; list-style: none; }
.split__pts li { position: relative; padding-left: 28px; color: var(--on-dark); }
.split__pts li::before {
  content: "";
  position: absolute;
  left: 2px; top: 7px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--brand-hi);
  border-bottom: 2px solid var(--brand-hi);
  transform: rotate(-45deg);
}
.call { margin: 0 0 20px; color: var(--on-dark-2); font-size: 14px; }
.call a { font-family: var(--font-display); font-size: 30px; font-weight: 700; color: var(--brand-hi); text-decoration: none; white-space: nowrap; }
.call a:hover { color: var(--on-dark); }
.links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; list-style: none; }
.links a { color: var(--on-dark); font-weight: 600; }
.links a:hover { color: var(--brand-hi); }

.form {
  display: grid;
  gap: 18px;
  padding: 24px 20px;
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
}
.form__step { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.form__l {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--on-dark);
}
.form__l span {
  display: grid;
  place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 13px;
  font-weight: 700;
}
.ages { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.age { position: relative; cursor: pointer; }
.age input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.age span {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--on-dark-2);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.age:hover span { border-color: var(--brand-hi); color: var(--on-dark); }
.age input:checked + span { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.age input:focus-visible + span { outline: 2px solid var(--brand-hi); outline-offset: 2px; }

.field { display: grid; gap: 6px; }
.form__step .field + .field { margin-top: 2px; }
.field__i {
  width: 100%;
  min-height: 52px;
  padding: 12px 14px;
  background-color: var(--dark);
  color: var(--on-dark);
  border: 1px solid var(--line-dark);
  border-radius: 10px;
  font: 400 16px/1.3 var(--font-text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.field__i::placeholder { color: var(--on-dark-2); opacity: .8; }
.field__i:hover { border-color: var(--brand); }
.field__i:focus { outline: none; border-color: var(--brand-hi); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 35%, transparent); }
/* Стрелка списка — два градиента. background-COLOR выше, не сокращение:
   сокращение сбрасывает размер, и стрелка растягивается на всё поле. */
select.field__i {
  padding-right: 42px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand-hi) 50%),
    linear-gradient(135deg, var(--brand-hi) 50%, transparent 50%);
  background-position: calc(100% - 22px) 50%, calc(100% - 15px) 50%;
  background-size: 7px 7px, 7px 7px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field__i.is-bad { border-color: var(--seal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--seal) 30%, transparent); }
.field__e { margin: 0; font-size: 13.5px; color: var(--brand-hi); }
.form--modal .field__e { color: var(--seal); }

.check {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 14px;
  line-height: 1.45;
  color: var(--on-dark-2);
  cursor: pointer;
}
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.check a { color: var(--brand-hi); }

.form__ok, .form__err { margin: 0; padding: 14px 16px; border-radius: 10px; font-size: 15px; }
.form__ok { background: var(--accent); color: var(--on-dark); }
.form__err { background: var(--seal); color: var(--on-dark); }
.form__err a { color: var(--on-dark); font-weight: 700; }

@media (min-width: 1000px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; align-items: start; }
  .form { padding: 34px 32px; }
}

/* ─── Окно записи ────────────────────────────────────────────────────── */

.modal {
  width: min(62rem, calc(100vw - 1.5rem));
  max-height: calc(100dvh - 1.5rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
  color: var(--fg);
}
.modal::backdrop {
  background: rgba(14, 12, 9, .72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
/* Крестик — в обёртке, вне прокручиваемой коробки: иначе уезжает вверх. */
.modal__win { position: relative; display: grid; }
.modal__box {
  display: grid;
  max-height: calc(100dvh - 1.5rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--bg);
  border-top: 3px solid var(--brand);
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 90px -30px rgba(21, 18, 13, .6);
}
.modal__x {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  padding: 0;
  background: var(--bg);
  color: var(--fg-2);
  border: 1px solid var(--line-2);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color .16s var(--ease), color .16s var(--ease), border-color .16s var(--ease);
}
.modal__x:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.modal__side {
  padding: clamp(22px, 3vw, 34px);
  padding-right: 64px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.modal__kicker { margin: 0 0 8px; font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--seal); }
.modal__h { margin: 0 0 10px; font-family: var(--font-display); font-size: clamp(27px, 3.4vw, 38px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.modal__h:focus { outline: none; }
.modal__lead { margin: 0 0 16px; font-size: 16px; line-height: 1.55; color: var(--fg-2); }
.modal__call { margin: 0; font-size: 15px; color: var(--fg-3); }
.modal__call a { font-family: var(--font-display); font-size: 24px; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Форма в окне светлая: тёмная форма поверх тёмной подложки была бы
   вторым тёмным пятном. */
.form--modal { padding: clamp(22px, 3vw, 34px); background: var(--bg); border: 0; border-radius: 0; }
.form--modal .form__l { color: var(--fg); }
.form--modal .field__i { background-color: var(--bg); color: var(--fg); border-color: var(--line-2); }
.form--modal .field__i::placeholder { color: var(--fg-3); }
.form--modal select.field__i {
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand-2) 50%),
    linear-gradient(135deg, var(--brand-2) 50%, transparent 50%);
}
.form--modal .age span { border-color: var(--line-2); color: var(--fg-2); }
.form--modal .age:hover span { border-color: var(--brand); color: var(--fg); }
.form--modal .age input:checked + span { color: var(--on-brand); }
.form--modal .check { color: var(--fg-2); }
.form--modal .check a { color: var(--brand-2); }

@media (min-width: 760px) {
  .modal__box { grid-template-columns: .85fr 1.15fr; }
  .modal__side { border-bottom: 0; border-right: 1px solid var(--line); padding-right: clamp(22px, 3vw, 34px); }
}
@media (max-width: 759px) {
  .modal__lead { display: none; }
  .modal__side { padding-block: 18px; }
}
@media (max-height: 760px) {
  .modal__lead, .modal__call { display: none; }
  .modal__side { padding-block: 14px; }
  .form--modal { padding-block: 16px; gap: 12px; }
}
@media (prefers-reduced-motion: no-preference) {
  .modal[open] .modal__box { animation: modal-in .36s var(--ease-out) both; }
  .modal[open]::backdrop { animation: modal-bd .32s var(--ease) both; }
}
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.988); } to { opacity: 1; transform: none; } }
@keyframes modal-bd { from { opacity: 0; } to { opacity: 1; } }

/* ─── Карточка тренера в окне ────────────────────────────────────────── */

.modal--coach { width: min(48rem, calc(100vw - 1.5rem)); }
.cm { display: block; padding: clamp(24px, 3.4vw, 38px); padding-right: clamp(56px, 6vw, 64px); background: var(--bg); }
.cm__k { margin: 0 0 8px; font-family: var(--font-display); font-style: italic; font-size: 17px; color: var(--brand-2); }
.cm__h { margin: 0 0 12px; font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.cm__h:focus { outline: none; }
.cm__lead { margin: 0 0 22px; font-size: 17px; line-height: 1.58; color: var(--fg-2); }
.cm__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 16px;
  margin: 0 0 26px;
  padding: 18px 0;
  border-block: 1px solid var(--line);
  list-style: none;
}
.cm__facts li { display: flex; flex-direction: column; gap: 3px; }
.cm__facts b { font-family: var(--font-display); font-size: 26px; font-weight: 800; line-height: 1; color: var(--brand-2); }
.cm__facts span { font-size: 13px; color: var(--fg-3); line-height: 1.35; }
.cm__sh { margin: 0 0 12px; font-family: var(--font-display); font-size: 21px; font-weight: 700; }
.cm__list { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 14px; }
.cm__list li { position: relative; padding-left: 24px; font-size: 16px; line-height: 1.55; color: var(--fg-2); }
.cm__list li::before { content: ""; position: absolute; left: 0; top: 11px; width: 12px; height: 2px; background: var(--brand); }
.cm__list b { color: var(--fg); }
.cm__q { margin: 0 0 24px; padding: 20px 22px; background: var(--bg-2); border-left: 3px solid var(--brand); border-radius: var(--radius); }
.cm__q p { margin: 0 0 10px; font-family: var(--font-display); font-size: 19px; line-height: 1.45; }
.cm__q p::before { content: "«"; }
.cm__q p::after { content: "»"; }
.cm__q footer { font-size: 13.5px; color: var(--fg-3); }
.cm__halls { margin: 0 0 24px; font-size: 16px; line-height: 1.6; color: var(--fg-2); }
.cm__todo { margin: 0 0 24px; padding: 12px 14px; background: var(--bg-2); border-radius: var(--radius); font-size: 14px; color: var(--fg-3); }
.cm__act { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 20px; border-top: 1px solid var(--line); }
.cm__act .btn { flex: 1 1 auto; }

/* ─── Подвал ─────────────────────────────────────────────────────────── */

.foot {
  padding-top: clamp(56px, 7vw, 96px);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  overflow: hidden;
}
.foot__in { display: grid; gap: 32px; }
.foot__brand img { width: 120px; }
.foot__h { margin: 0 0 12px; font: 700 17px/1.2 var(--font-display); color: var(--fg); }
.foot__col p { margin: 0 0 12px; font-size: 15px; line-height: 1.55; color: var(--fg-2); }
.foot__col a { color: var(--fg); }
.foot__col a:hover { color: var(--brand-2); }
.foot__nav { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.foot__nav a { text-decoration: none; font-size: 15px; }
.foot__req { font-size: 13px !important; color: var(--fg-3) !important; }
.foot__note { font-size: 13px; color: var(--fg-3); }
.foot__word {
  margin: clamp(40px, 6vw, 80px) 0 0;
  font-family: var(--font-display);
  font-size: clamp(64px, 16.4vw, 250px);
  font-weight: 800;
  font-style: italic;
  line-height: .78;
  letter-spacing: -.045em;
  text-align: center;
  white-space: nowrap;
  padding-bottom: .1em;
  /* Золото логотипа, а не бумага: декоративное слово всё равно должно
     читаться (3.2:1 при кегле от 64 px). */
  color: var(--brand);
}
.foot__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-block: 20px 28px;
  border-top: 1px solid var(--line-2);
  font-size: 13.5px;
  color: var(--fg-3);
}
.foot__bottom p { margin: 0; }
.foot__up { color: var(--fg-2); }

@media (min-width: 700px) { .foot__in { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .foot__in { grid-template-columns: 160px repeat(3, minmax(0, 1fr)); gap: 40px; } }

/* ─── Полоса действий на телефоне ────────────────────────────────────── */

.dock {
  position: fixed;
  left: 12px; right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 8px;
  padding: 8px;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 18px 40px -20px rgba(21, 18, 13, .5);
  transform: translateY(160%);
  transition: transform .45s var(--ease-out);
}
.dock.is-up { transform: none; }
.dock__b { min-height: 46px; }
@media (min-width: 1100px) { .dock { display: none !important; } }

/* ─── Движение ───────────────────────────────────────────────────────────
   Всё ниже работает только при .js-motion на <html>: его ставит скрипт
   в <head>, если есть IntersectionObserver и человек не просил убрать
   движение. Иначе блоки просто стоят на месте. */

/* Появление блока — проявление на месте маской снизу. */
.js-motion .rv {
  opacity: 0;
  clip-path: inset(-40px -40px 26% -40px);
  transition: opacity .9s var(--ease-out), clip-path 1.1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
/* Отрицательные отступы маски — чтобы тень карточки не обрезалась. */
.js-motion .rv.is-in { opacity: 1; clip-path: inset(-40px); }
/* После проявления маску снимает скрипт: живая маска режет всё, что
   выходит за блок, — подсказки, обводку фокуса, тени при наведении. */
.js-motion .rv.is-done { clip-path: none; transition: none; }

/* Заголовки — слова поднимаются из-под линии. */
.js-motion [data-split] .w {
  display: inline-block;
  overflow: clip;
  padding-bottom: .12em;
  margin-bottom: -.12em;
  vertical-align: top;
}
.js-motion [data-split] .w > span {
  display: inline-block;
  transform: translateY(108%);
  transition: transform .9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.js-motion [data-split].is-in .w > span { transform: none; }

/* Первый экран — по загрузке, без наблюдателя. */
.js-motion .hero .line > span { transform: translateY(108%); animation: rise 1s var(--ease-out) forwards; }
.js-motion .hero .line:nth-child(2) > span { animation-delay: .09s; }
.js-motion .hero .line:nth-child(3) > span { animation-delay: .18s; }
.js-motion .hero__lead, .js-motion .hero__act, .js-motion .pick {
  opacity: 0;
  animation: fade .9s var(--ease-out) .35s forwards;
}
.js-motion .hero__act { animation-delay: .45s; }
.js-motion .pick { animation-delay: .55s; }
.js-motion .hero__frame { clip-path: inset(0 0 0 100%); animation: wipe 1.3s var(--ease-io) .1s forwards; }
.js-motion .hero__frame img { transform: scale(1.12); animation: settle 2s var(--ease-out) .1s forwards; }
.js-motion .seal { opacity: 0; animation: stamp .55s cubic-bezier(.3, 1.6, .5, 1) 1.15s forwards; }
.js-motion .fact { opacity: 0; animation: fade .8s var(--ease-out) forwards; }
.js-motion .fact:nth-child(1) { animation-delay: .75s; }
.js-motion .fact:nth-child(2) { animation-delay: .83s; }
.js-motion .fact:nth-child(3) { animation-delay: .91s; }
.js-motion .fact:nth-child(4) { animation-delay: .99s; }

@keyframes rise { to { transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes wipe { to { clip-path: inset(0 0 0 0); } }
@keyframes settle { to { transform: none; } }
@keyframes stamp {
  0% { opacity: 0; transform: rotate(-18deg) scale(1.7); }
  60% { opacity: 1; }
  100% { opacity: 1; transform: rotate(-7deg) scale(1); }
}

/* Кадры «садятся» на место при входе в экран. */
.js-motion [data-settle] img { transform: scale(1.08); transition: transform 1.6s var(--ease-out); }
.js-motion [data-settle].is-in img { transform: none; }
.js-motion .hero [data-settle] img { transition: none; }

/* Черта над заголовком дочерчивается. */
.js-motion .eyebrow__rule { transform: scaleX(0); transition: transform .9s var(--ease-out) .15s; }
.js-motion .is-in .eyebrow__rule, .js-motion .hero .eyebrow__rule { transform: none; }
.js-motion .hero .eyebrow__rule { animation: grow .9s var(--ease-out) .2s both; }
@keyframes grow { from { transform: scaleX(0); } }

/* Полоса занятия заливается по отрезкам. */
.js-motion .lesson__bar i { transform: scaleX(0); transition: transform .9s var(--ease-out); }
.js-motion .lesson__bar span:nth-child(2) i { transition-delay: .5s; transition-duration: 1.2s; }
.js-motion .lesson__bar span:nth-child(3) i { transition-delay: 1.3s; }
.js-motion .lesson__bar span:nth-child(4) i { transition-delay: 1.8s; transition-duration: .6s; }
.js-motion .lesson.is-in .lesson__bar i { transform: none; }

/* Пояс завязывается: отрезки прочерчиваются слева направо по очереди. */
.js-motion .belt__band { transform: scaleX(0); transition: transform .7s var(--ease-out); }
.js-motion .belt.is-in .belt__band { transform: none; }
.js-motion .belt__seg:nth-child(2) .belt__band { transition-delay: .08s; }
.js-motion .belt__seg:nth-child(3) .belt__band { transition-delay: .16s; }
.js-motion .belt__seg:nth-child(4) .belt__band { transition-delay: .24s; }
.js-motion .belt__seg:nth-child(5) .belt__band { transition-delay: .32s; }
.js-motion .belt__seg:nth-child(6) .belt__band { transition-delay: .40s; }
.js-motion .belt__seg:nth-child(7) .belt__band { transition-delay: .48s; }

/* Числа школы — один раз при входе в экран, без привязки к прокрутке:
   цифра поднимается из-под строки, черта прочерчивается, подпись
   проявляется. После этого всё стоит на месте. */
.js-motion .num b { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease-out), transform 1.1s var(--ease-out); }
.js-motion .num span { opacity: 0; transition: opacity .9s var(--ease-out) .35s; }
.js-motion .num span::before { transform: scaleY(0); transition: transform .8s var(--ease-out) .25s; }
.js-motion .nums.is-in .num b { opacity: 1; transform: none; }
.js-motion .nums.is-in .num span { opacity: 1; }
.js-motion .nums.is-in .num span::before { transform: none; }
.js-motion .nums.is-in .num:nth-child(2) b { transition-delay: .18s; }
.js-motion .nums.is-in .num:nth-child(2) span { transition-delay: .53s; }
.js-motion .nums.is-in .num:nth-child(2) span::before { transition-delay: .43s; }
.js-motion .nums.is-in .num:nth-child(3) b { transition-delay: .36s; }
.js-motion .nums.is-in .num:nth-child(3) span { transition-delay: .71s; }
.js-motion .nums.is-in .num:nth-child(3) span::before { transition-delay: .61s; }

/* Нить пути прочерчивается. */
@media (min-width: 900px) {
  .js-motion .rung::before { transform: scaleX(0); transition: transform 1s var(--ease-out); }
  .js-motion .ladder.is-in .rung::before { transform: none; }
  .js-motion .ladder.is-in .rung:nth-child(2)::before { transition-delay: .3s; }
  .js-motion .ladder.is-in .rung:nth-child(3)::before { transition-delay: .6s; }
}

/* Клятва — слова прочитываются по мере прокрутки. */
.js-motion .kun__list .w { opacity: .2; }
.js-motion .kun__list .w.is-lit { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track, .announce__dot, .today__pulse { animation: none !important; }
}

/* ─── Тач-цели ───────────────────────────────────────────────────────── */

/* Ссылки внутри текста — высотой в строку, 19–21 px: меньше порога
   24×24 (WCAG 2.2, 2.5.8). Добираем высоту отступом, а не кеглем. */
main p a:not(.btn), .links a, .foot__col a, .announce a, .modal__call a {
  display: inline-block;
  padding-block: 3px;
}
.links a { min-height: 32px; padding-block: 5px; }
.foot__nav a { padding-block: 4px; }
@media (max-width: 699px) {
  .foot__in { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .foot__brand, .foot__col:nth-child(2) { grid-column: 1 / -1; }
  .foot__nav { gap: 2px; }
}
.announce a { padding-block: 6px; }
.foot__up { display: inline-block; padding-block: 8px; }
