/* ==========================================================================
   Арабский язык + Таджвид — стили
   Mobile-first. Палитра: чёрный / белый / красный (только акцент).
   ========================================================================== */

/* ---------- 1. Токены ---------- */
:root {
  --bg: #070707;
  --bg-raise: #0d0d0d;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f2ef;
  --muted: #a6a29d;   /* ≈ 8:1 на фоне — вторичный текст */
  --dim: #6f6b67;     /* только для второстепенного/декоративного */

  --red: #e3262e;     /* фон кнопок (белый текст ≈ 4.6:1) */
  --red-ink: #ff4a50; /* красный текст на чёрном (≈ 6:1) */
  --red-a10: rgba(227, 38, 46, 0.1);
  --red-a20: rgba(227, 38, 46, 0.2);
  --red-a40: rgba(227, 38, 46, 0.4);

  --font-sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-ar: 'Amiri', 'Noto Naskh Arabic', 'Geeza Pro', 'Traditional Arabic', serif;

  --container: 1240px;
  --gutter: clamp(16px, 4.5vw, 40px);
  --header-h: 68px;
  --radius: 18px;
  --radius-lg: 28px;

  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- 2. Сброс и база ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.no-scroll { overflow: hidden; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }

/* Тонкое «зерно» поверх всего — премиальная фактура, статичное */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
ul, ol { list-style: none; padding: 0; }
::selection { background: var(--red); color: #fff; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- 3. Утилиты ---------- */
.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  padding: 12px 18px; border-radius: 999px; background: #fff; color: #000; font-weight: 600;
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip-link:focus { transform: none; }

.ar { font-family: var(--font-ar); font-weight: 400; line-height: 1.5; unicode-bidi: isolate; direction: rtl; text-align: right; }
.muted { color: var(--muted); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); flex: none; box-shadow: 0 0 12px var(--red-a40); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 12px var(--red-a40); }

.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); font-size: 0.82rem; font-weight: 500; color: var(--muted);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}

/* Типографика */
.h1, .h2, .h3 { font-weight: 600; color: var(--text); text-wrap: balance; }
.h1 { font-size: clamp(2.5rem, 1.2rem + 5.6vw, 5.8rem); line-height: 1; letter-spacing: -0.045em; }
.h2 { font-size: clamp(2rem, 1.1rem + 3.4vw, 3.9rem); line-height: 1.05; letter-spacing: -0.035em; }
.h3 { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); line-height: 1.3; letter-spacing: -0.015em; }
.h1 em, .h2 em {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 1.1em; letter-spacing: -0.02em; line-height: 0.9;
}
.lead { font-size: clamp(1.02rem, 0.95rem + 0.35vw, 1.2rem); line-height: 1.6; color: var(--muted); max-width: 40em; text-wrap: pretty; }

/* Секции */
.section { position: relative; padding-block: clamp(88px, 7vw + 48px, 168px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section-head { display: grid; gap: 18px; max-width: 800px; margin-bottom: clamp(44px, 6vw, 80px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- 4. Кнопки ---------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: var(--h); padding: 0 22px; border-radius: 999px;
  font-size: 0.95rem; font-weight: 600; letter-spacing: -0.005em; line-height: 1.1; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background-color 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease), color 0.3s;
  -webkit-tap-highlight-color: transparent;
}
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--sm { --h: 40px; padding: 0 18px; font-size: 0.88rem; }
.btn--lg { --h: 56px; padding: 0 28px; font-size: 1rem; }
.btn--block { width: 100%; }

.btn--primary { background: var(--red); color: #fff; box-shadow: 0 10px 30px -12px var(--red-a40), inset 0 1px 0 rgba(255, 255, 255, 0.18); }
.btn--primary:hover { background: #ef2f37; box-shadow: 0 16px 44px -12px rgba(227, 38, 46, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.22); transform: translateY(-1px); }

.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.34); transform: translateY(-1px); }

.btn[disabled] { opacity: 0.6; pointer-events: none; }

/* ---------- 5. Анимации появления ---------- */
.js [data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Текст хиро появляется только после .hero--ready (см. hero.js) — даём каллиграфии
   на видео «дорисоваться» первой, затем текст проявляется каскадом, медленно и без рывка
   (плавная кривая без быстрого старта — не «выстрел», а спокойное появление). */
.js [data-enter] { opacity: 0; transform: translateY(16px) scale(0.99); filter: blur(4px); }
.js .hero--ready [data-enter] {
  opacity: 1; transform: none; filter: blur(0);
  transition: opacity 2.2s cubic-bezier(0.45, 0, 0.15, 1), transform 2.2s cubic-bezier(0.45, 0, 0.15, 1), filter 2.2s cubic-bezier(0.45, 0, 0.15, 1);
  transition-delay: calc(var(--d, 0) * 180ms);
}

/* ---------- 6. Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  transition: background-color 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled {
  background: rgba(7, 7, 7, 0.72);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}
/* backdrop-filter создаёт containing block для fixed-потомков — при открытом меню отключаем */
.header.is-open { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.header__inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  border: 1px solid var(--red-a40); background: linear-gradient(180deg, rgba(227, 38, 46, 0.18), rgba(227, 38, 46, 0.04));
  font-family: var(--font-ar); font-size: 1.35rem; line-height: 1; padding-bottom: 4px; color: #fff;
}
.brand__mark--img { object-fit: cover; background: #000; }
.brand__text { display: grid; line-height: 1.15; }
.brand__name { font-weight: 700; font-size: 0.98rem; letter-spacing: -0.01em; text-align: center; }
.brand__desc { font-size: 0.74rem; color: var(--muted); letter-spacing: 0.02em; }

.nav { display: none; }
.nav__list { display: flex; gap: 4px; }
.nav__link {
  position: relative; display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 500; color: var(--muted); transition: color 0.25s, background-color 0.25s;
}
.nav__link:hover { color: var(--text); background: var(--surface); }
.nav__link.is-active { color: var(--text); }
.nav__link.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--red);
}
.header__cta { display: none; }

.burger {
  display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; margin-right: -8px; border-radius: 12px;
}
.burger__line { display: block; width: 22px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform 0.35s var(--ease); }
.is-open .burger__line:first-child { transform: translateY(3.75px) rotate(45deg); }
.is-open .burger__line:last-child { transform: translateY(-3.75px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: calc(var(--header-h) + 32px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--bg);
  opacity: 0; pointer-events: none; transition: opacity 0.35s var(--ease);
  overflow-y: auto;
}
/* Без этого закрытое меню (opacity:0) оставалось на весь экран поверх контента и
   перехватывало тапы по кнопкам под собой — в т.ч. по «Оставить заявку» на мобильном. */
.mobile-menu.is-visible { opacity: 1; pointer-events: auto; }
.mobile-menu[hidden] { display: none; }
.mobile-menu__list { display: grid; }
.mobile-menu__list li {
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  transition-delay: calc(var(--i) * 50ms + 80ms);
}
.mobile-menu.is-visible li { opacity: 1; transform: none; }
.mobile-menu__link { display: block; padding: 18px 0; font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; }

@media (min-width: 600px) { .header__cta { display: inline-flex; } }
@media (min-width: 960px) {
  :root { --header-h: 76px; }
  .nav { display: block; }
  .burger, .mobile-menu { display: none; }
}

/* ---------- 7. Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--header-h) + 48px) 0 56px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #000; pointer-events: none; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: brightness(1.2); }
.hero__scrim { /* тёмная подложка поверх видео — только чёрное, без цветных свечений.
  Затемнение — виньеткой вокруг текста, а не сплошной заливкой, чтобы каллиграфия
  оставалась хорошо видна там, где нет текста. */
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, transparent 82%, var(--bg) 100%),
    radial-gradient(80% 68% at 50% 38%, rgba(7, 7, 7, 0.82), rgba(7, 7, 7, 0.55) 55%, rgba(7, 7, 7, 0.12) 88%, transparent 100%);
}
.hero--static .hero__video { display: none; } /* при reduced-motion остаётся только постер фона */

.hero__inner { display: grid; gap: 24px; justify-items: center; text-align: center; }
.hero__title { max-width: 13ch; text-shadow: 0 4px 28px rgba(0, 0, 0, 0.55); }
.hero__title em { color: #fff; }
.hero__lead {
  position: relative; isolation: isolate;
  max-width: 34em; font-size: clamp(1.05rem, 0.95rem + 0.45vw, 1.28rem); color: var(--muted); line-height: 1.6;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}
/* Очень лёгкая локальная подложка только за описанием — не сплошной блок, а мягкое пятно,
   растворяющееся к краям, чтобы каллиграфия за текстом оставалась видна. */
.hero__lead::before {
  content: ''; position: absolute; z-index: -1; inset: -14px -18px;
  background: radial-gradient(65% 100% at 50% 50%, rgba(7, 7, 7, 0.4), rgba(7, 7, 7, 0.16) 60%, transparent 85%);
  pointer-events: none;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; width: 100%; }
.hero__actions .btn { flex: 1 1 220px; }
.hero__note { display: none; align-items: center; justify-content: center; gap: 14px; font-size: 0.85rem; color: var(--muted); }
.hero__note-ar { font-size: 1.5rem; color: var(--text); }

.stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 16px;
  width: 100%; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line);
}
.stats__item { display: grid; gap: 2px; padding-left: 14px; border-left: 1px solid var(--line-strong); }
.stats__value { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.stats__label { font-size: 0.86rem; color: var(--muted); line-height: 1.35; }
.stats__value .icon { width: 0.95em; height: 0.95em; stroke-width: 1.3; color: var(--text); }

.hero__scroll {
  position: absolute; bottom: 32px; right: var(--gutter);
  display: none; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--muted); transition: color 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}
.hero__scroll:hover { color: #fff; border-color: rgba(255, 255, 255, 0.4); transform: translateY(3px); }

@media (min-width: 720px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .hero__actions { width: auto; }
  .hero__actions .btn { flex: 0 0 auto; }
  .hero__note { display: flex; }
}
@media (min-width: 900px) {
  /* Каллиграфия — крупнее и прижата к правому краю кадра (текст уже центрирован с мобильных) */
  .stats { justify-self: center; width: auto; }

  /* Смещаем видимую область видео вправо и слегка увеличиваем — используем естественный
     запас кадра от object-fit:cover (видео шире контейнера по пропорциям); анкер — правый
     край, поэтому увеличение «растёт» влево, а не обрезает каллиграфию у края. */
  .hero__video { object-position: 100% 50%; transform: scale(1.32); transform-origin: 0% 50%; }
  /* Текст теперь по центру — виньетка следует за ним, остальной кадр (в т.ч. каллиграфия
     по краям и внизу) остаётся заметно светлее */
  .hero__scrim {
    background:
      linear-gradient(to bottom, transparent 82%, var(--bg) 100%),
      radial-gradient(48% 58% at 50% 38%, rgba(7, 7, 7, 0.58), rgba(7, 7, 7, 0.32) 55%, rgba(7, 7, 7, 0.08) 82%, transparent 100%);
  }
}
@media (min-width: 1024px) {
  .hero__scroll { display: grid; }
  .hero__inner { gap: 22px; }
  .stats { max-width: 880px; margin-top: 24px; }
}

/* ---------- 8. Story (видео) ---------- */
.story { position: relative; }
.story__track { position: relative; height: calc(100svh * (1 + var(--scenes, 3) * 0.75)); }
.story__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; isolation: isolate; }
.story__stage { background: #000; } /* фон = фон видео: кадр без «рамки» */
.story__frame {
  position: absolute; inset: 0;
  transform: scale(calc(0.66 + 0.34 * var(--grow, 0)));
  border-radius: calc(var(--radius-lg) * (1 - var(--grow, 0)) * 1.4);
  border: 1px solid rgba(255, 255, 255, calc(0.14 * (1 - var(--grow, 0))));
  overflow: hidden;
  will-change: transform;
}
.story__video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.story__shade {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.4) 30%, transparent 55%),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.7) 0%, transparent 22%);
  opacity: var(--grow, 0);
}
.story--no-video .story__frame { display: none; }

.story__overlay {
  position: relative; z-index: 2; height: 100%;
  display: grid; grid-template-rows: auto 1fr auto; align-items: end;
  padding: calc(var(--header-h) + 20px) 0 max(28px, env(safe-area-inset-bottom));
  pointer-events: none;
}
.story__head { align-self: start; display: grid; gap: 10px; }
.story__title { font-size: clamp(1.3rem, 1rem + 1.5vw, 2.1rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.story__lead { max-width: 34em; font-size: clamp(0.92rem, 0.85rem + 0.3vw, 1.05rem); color: var(--muted); line-height: 1.5; }

.story__scenes { display: grid; grid-row: 3; }
.story__scene {
  grid-area: 1 / 1;
  display: grid; gap: 4px 28px; align-items: end;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.story__scene.is-active { opacity: 1; transform: none; transition-delay: 0.1s; }
.story__ar { font-size: clamp(3rem, 2rem + 5vw, 6.5rem); line-height: 1.3; color: #fff; justify-self: end; }
.story__copy { display: grid; gap: 6px; max-width: 30em; }
.story__num { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; color: var(--red-ink); }
.story__scene-title { font-size: clamp(1.6rem, 1.2rem + 2vw, 2.8rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.story__text { color: var(--muted); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); }

.story__progress { position: absolute; top: 50%; right: var(--gutter); transform: translateY(-50%); display: none; gap: 10px; }
@media (min-width: 720px) { .story__progress { display: grid; } }
.story__tick { width: 2px; height: 22px; border-radius: 2px; background: var(--line-strong); transition: background-color 0.4s, height 0.5s var(--ease); }
.story__tick.is-active { height: 44px; background: var(--red); }

.story__toggle {
  position: absolute; z-index: 3; right: var(--gutter); top: calc(var(--header-h) + 20px);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: rgba(7, 7, 7, 0.5); color: var(--text);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s, background-color 0.3s;
}
.story__toggle:hover { border-color: rgba(255, 255, 255, 0.4); }
.story__toggle .icon { width: 16px; height: 16px; }

@media (min-width: 900px) {
  .story__scene { grid-template-columns: auto 1fr; }
  .story__ar { order: 2; justify-self: end; }
  .story__copy { order: 1; }
}

/* Статичный режим (prefers-reduced-motion) */
.story--static .story__track { height: auto; }
.story--static .story__stage { position: relative; height: auto; }
.story--static .story__frame { position: relative; inset: auto; aspect-ratio: 16 / 9; transform: none; border-radius: 0; border: 0; }
.story--static .story__shade, .story--static .story__progress { display: none; }
.story--static .story__overlay { height: auto; padding: 48px 0 96px; }
.story--static .story__scenes { gap: 40px; grid-row: auto; margin-top: 32px; }
.story--static .story__scene { grid-area: auto; opacity: 1; transform: none; }
.story--static .story__toggle { top: 16px; }

/* ---------- 9. Кому подходит ---------- */
.audience { isolation: isolate; }
.audience__list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.audience__item {
  display: grid; gap: 10px; align-content: start;
  padding: 28px 0; border-bottom: 1px solid var(--line);
}
.audience__num { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.1em; color: var(--red-ink); }
@media (min-width: 720px) {
  .audience__list { grid-template-columns: repeat(2, 1fr); column-gap: 48px; }
  .audience__item { padding: 36px 0; }
}
@media (min-width: 1100px) {
  .audience__list { grid-template-columns: repeat(4, 1fr); column-gap: 0; border-top: 0; }
  .audience__item { padding: 36px 32px 8px; border-bottom: 0; border-left: 1px solid var(--line); }
  .audience__item:first-child { border-left: 0; padding-left: 0; }
}

/* ---------- 10. Обучение: три карточки, подробности раскрываются внутри ---------- */
.learning { isolation: isolate; }
.learning__eyebrow { display: inline-flex; margin-bottom: clamp(28px, 4vw, 44px); }

.lcards { display: grid; gap: 12px; border-top: 1px solid var(--line); }
.lcard-wrap { border-bottom: 1px solid var(--line); }

.lcard summary { list-style: none; cursor: pointer; }
.lcard summary::-webkit-details-marker { display: none; }

.lcard__row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 16px 20px;
  padding: 26px 0; transition: opacity 0.3s;
}
.lcard__num { font-size: 0.85rem; font-weight: 600; color: var(--red-ink); letter-spacing: 0.08em; padding-top: 3px; }
.lcard__toggle { align-self: center; }
@media (max-width: 639px) {
  .lcard__row { grid-template-columns: auto 1fr; }
  .lcard__toggle { grid-column: 2; justify-self: start; align-self: auto; }
}
.lcard__main { display: grid; gap: 4px; }
.lcard__title { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.35rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.3; }
.lcard__text { color: var(--muted); font-size: 0.95rem; max-width: 46em; }

.lcard__toggle {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-strong);
  font-size: 0.85rem; font-weight: 600; color: var(--text); white-space: nowrap;
  transition: border-color 0.3s, background-color 0.3s;
}
.lcard__toggle .icon { width: 15px; height: 15px; transition: transform 0.35s var(--ease); }
.lcard:hover .lcard__toggle { border-color: rgba(255, 255, 255, 0.4); background: var(--surface); }
.lcard__toggle-close { display: none; }
.lcard[open] .lcard__toggle-open { display: none; }
.lcard[open] .lcard__toggle-close { display: inline; }
.lcard[open] .lcard__toggle .icon { transform: rotate(90deg); }
.lcard[open] .lcard__toggle { border-color: var(--red-a40); }

.lcard__panel { overflow: hidden; }
.lcard__panel-inner {
  position: relative; isolation: isolate; display: grid; gap: 20px; max-width: 52em;
  /* Правое поле зарезервировано под декоративную каллиграфию (.lcard__deco), чтобы она
     не оказывалась под текстом — текст никогда не заходит в эту колонку. */
  padding: 0 clamp(48px, 8vw, 88px) clamp(28px, 4vw, 40px) 0;
}
.lcard__p { color: var(--muted); line-height: 1.65; }
.lcard__footnote { color: var(--text); }

.lcard__groups { display: grid; gap: 24px; }
.lcard__group-title { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-ink); margin-bottom: 12px; }
.lcard__list { display: grid; gap: 10px; }
.lcard__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 0.95rem; line-height: 1.4; }
.lcard__list .icon { width: 16px; height: 16px; margin-top: 3px; color: var(--muted); flex: none; }
@media (min-width: 640px) { .lcard__groups { grid-template-columns: 1fr 1fr; } }

.lsteps { display: grid; gap: 0; }
.lsteps__item { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.lsteps__item:first-child { border-top: 0; padding-top: 0; }
.lsteps__num { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.35); line-height: 1.3; }
.lsteps__title { font-weight: 600; margin-bottom: 4px; }
.lsteps__text { color: var(--muted); font-size: 0.93rem; }

.lmodules { display: grid; gap: 0; }
.lmodules__item {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.lmodules__item:first-child { border-top: 0; padding-top: 0; }
.lmodules__num { font-size: 0.8rem; font-weight: 600; color: var(--dim); letter-spacing: 0.08em; }
.lmodules__title { font-weight: 500; }
.lmodules__ar { font-size: 1.5rem; color: var(--dim); justify-self: end; }

@media (min-width: 900px) {
  .lcard__row { padding: 34px 0; }
  .lcard__text { font-size: 1rem; }
}

/* ---------- 13. Преподаватель ---------- */
.teacher { isolation: isolate; }
.teacher__grid { display: grid; gap: 48px; align-items: center; }
.teacher__photo {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 50% at 50% 100%, rgba(227, 38, 46, 0.2), transparent 70%),
    linear-gradient(180deg, #111 0%, #0a0a0a 100%);
  max-width: 520px;
}
.teacher__img { width: 100%; height: 100%; object-fit: cover; }
.teacher__placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.teacher__placeholder .ar {
  font-size: clamp(4.5rem, 3rem + 7vw, 8rem); line-height: 1.4;
  background: linear-gradient(180deg, #fff, rgba(255, 255, 255, 0.25));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.teacher__caption {
  position: absolute; inset: auto 0 0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 20px 24px; font-size: 0.9rem; color: var(--muted);
  background: linear-gradient(to top, rgba(7, 7, 7, 0.85), transparent);
}
.teacher__caption-ar { font-size: 1.1rem; color: var(--text); }
.teacher__body { display: grid; gap: 16px; justify-items: start; }
.teacher__role { color: var(--red-ink); font-weight: 500; }
.teacher__intro { font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.25rem); line-height: 1.65; color: var(--text); max-width: 34em; text-wrap: pretty; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); width: 100%; margin-top: 16px; border-top: 1px solid var(--line); }
.facts__item { padding: 20px 16px 20px 0; border-bottom: 1px solid var(--line); }
.facts__value { font-size: clamp(1.15rem, 1rem + 0.7vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.facts__label { color: var(--muted); font-size: 0.9rem; }
@media (min-width: 600px) { .facts { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 960px) { .teacher__grid { grid-template-columns: 5fr 7fr; gap: 80px; } }

/* ---------- 14. Тарифы ---------- */
.pricing { overflow: hidden; }
.pricing__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(50% 35% at 50% 18%, rgba(227, 38, 46, 0.08), transparent 70%);
}

/* Пояснение «Какой срок вам подходит?» — перед переключателем периода */
.period-intro {
  max-width: 760px; margin: 0 auto clamp(32px, 4vw, 44px); padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line); text-align: left;
}
.period-intro__title { font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 16px; text-align: center; }
.period-intro__grid { display: grid; gap: 20px; }
.period-intro__label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--red-ink); margin-bottom: 6px; }
.period-intro__text { color: var(--muted); font-size: 0.92rem; line-height: 1.55; }
@media (min-width: 640px) { .period-intro__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.period {
  position: relative; display: flex; width: fit-content; max-width: 100%;
  margin: -16px auto clamp(40px, 5vw, 56px); padding: 4px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface);
}
.period__btn {
  position: relative; z-index: 1; min-height: 42px; padding: 0 18px; border-radius: 999px;
  font-size: 0.9rem; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color 0.3s;
}
.period__btn { display: inline-flex; align-items: center; gap: 8px; }
.period__btn:hover { color: var(--text); }
.period__btn[aria-pressed='true'] { color: #0a0a0a; }
.period__hint {
  padding: 3px 7px; border-radius: 999px; background: var(--red-a20);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--red-ink);
  transition: background-color 0.3s, color 0.3s;
}
.period__btn[aria-pressed='true'] .period__hint { background: var(--red); color: #fff; }
.period__thumb {
  position: absolute; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 999px; background: #fff;
  transition: transform 0.45s var(--ease), width 0.45s var(--ease);
}

.plans {
  display: grid; gap: 16px; align-items: stretch;
  transition: opacity 0.18s, transform 0.18s;
}
.plans.is-switching { opacity: 0; transform: translateY(8px); }

.plan {
  position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 24px;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015));
  transition: border-color 0.4s, transform 0.5s var(--ease);
}
.plan:hover { border-color: var(--line-strong); }
.plan--popular {
  border-color: rgba(255, 255, 255, 0.2);
  background:
    radial-gradient(120% 50% at 50% 0%, rgba(255, 255, 255, 0.06), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.plan--popular:hover { border-color: rgba(255, 255, 255, 0.32); }
.plan--popular .plan__badge { color: var(--text); }
.plan--popular .plan__badge .dot { background: #fff; box-shadow: 0 0 12px rgba(255, 255, 255, 0.35); }
.plan--featured {
  border-color: rgba(227, 38, 46, 0.45);
  background:
    radial-gradient(120% 55% at 50% 0%, rgba(227, 38, 46, 0.16), transparent 65%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: 0 40px 100px -50px rgba(227, 38, 46, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.plan--featured:hover { border-color: rgba(227, 38, 46, 0.7); }
.plan--draft { border-style: dashed; }
.plan__draft {
  position: absolute; top: 0; left: clamp(24px, 3vw, 36px); transform: translateY(-50%);
  padding: 4px 10px; border-radius: 6px; border: 1px dashed rgba(255, 255, 255, 0.3); background: var(--bg);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); cursor: help;
}
.plan__head { display: grid; gap: 6px; }
.plan__badge {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 6px;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red-ink);
}
.plan__name { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.75rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
.plan__tagline { color: var(--muted); font-size: 0.95rem; }

.price { display: grid; gap: 6px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.price__old { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 0.95rem; }
.price__old s { text-decoration-thickness: 1px; }
.price__off {
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--red-a40);
  font-size: 0.75rem; font-weight: 600; color: var(--red-ink); letter-spacing: 0.02em;
}
.price__now { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 6px; line-height: 1; }
.price { container-type: inline-size; }
.price__value { font-size: clamp(2.2rem, 16cqi, 3.5rem); font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums lining-nums; }
.price__cur { font-size: 1.25rem; font-weight: 500; color: var(--text); }
.price__unit { font-size: 0.95rem; color: var(--muted); margin-left: 4px; }
.price__save {
  justify-self: start; display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  padding: 7px 12px; border-radius: 10px; background: var(--surface-2); font-size: 0.85rem; font-weight: 500;
}
.price__save::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* Единый список возможностей: входит — ✓, не входит — приглушено и перечёркнуто */
.plan__features { display: grid; gap: 11px; flex: 1; align-content: start; }
.feat { display: flex; gap: 12px; align-items: flex-start; font-size: 0.94rem; line-height: 1.45; }
.feat .icon { width: 17px; height: 17px; margin-top: 2px; color: var(--muted); }
.plan--featured .feat .icon { color: var(--red-ink); }
.feat__text { display: grid; gap: 2px; }
.feat__detail { font-size: 0.8rem; color: var(--muted); }
.feat--off { color: var(--dim); }
.feat--off .feat__text { text-decoration: line-through; text-decoration-thickness: 1px; text-decoration-color: rgba(255, 255, 255, 0.22); }
.plan .feat--off .icon { color: rgba(255, 255, 255, 0.22); }

/* Условия возврата — компактно, между списком возможностей и кнопкой, не конкурирует с ценой */
.plan__refund { padding-top: 16px; border-top: 1px solid var(--line); }
.plan__refund-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.plan__refund-text { font-size: 0.85rem; color: var(--muted); line-height: 1.4; }

.plan__foot { display: grid; gap: 12px; align-content: end; }
.plan__seats { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.82rem; color: var(--muted); }
.plan__seats .dot { width: 5px; height: 5px; box-shadow: none; }

@media (min-width: 760px) {
  .plans[data-count='2'], .plans[data-count='3'] { grid-template-columns: repeat(2, 1fr); }
  .plans[data-count='1'] { max-width: 480px; margin-inline: auto; }
  .plans[data-count='3'] .plan--featured { grid-column: 1 / -1; }
  .plans[data-count='3'] .plan--featured .plan__features { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}
/* Выравнивание строк (заголовок / цена / состав / кнопка) между соседними карточками */
@supports (grid-template-rows: subgrid) {
  @media (min-width: 760px) {
    .plans { row-gap: 16px; }
    .plan { display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 24px; }
    .plan__head { align-content: start; }
  }
}
@media (min-width: 1080px) {
  .plans[data-count='3'] { grid-template-columns: 1fr 1fr 1.12fr; }
  .plans[data-count='3'] .plan--featured { grid-column: auto; }
  .plans[data-count='3'] .plan--featured .plan__features { grid-template-columns: 1fr; }
  .plans[data-count='2'] { max-width: 920px; margin-inline: auto; }
}

/* Сравнение */
.compare { position: relative; isolation: isolate; margin-top: clamp(72px, 9vw, 120px); }
.compare__title { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); font-weight: 600; letter-spacing: -0.03em; margin-bottom: 24px; text-align: center; }
.compare__scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.compare__table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 0.95rem; }
.compare__table th, .compare__table td { padding: 18px 20px; text-align: center; border-bottom: 1px solid var(--line); }
.compare__table tr:last-child > * { border-bottom: 0; }
.compare__table thead th { font-weight: 600; font-size: 1rem; padding-top: 24px; }
.compare__table tbody th, .compare__table thead th[scope='row'] { text-align: left; font-weight: 500; color: var(--muted); }
.compare__table tbody th, .compare__table thead td, .compare__table thead th[scope='row'] {
  position: sticky; left: 0; z-index: 1; background: var(--bg); min-width: 180px;
}
.compare__table .is-featured { background: rgba(227, 38, 46, 0.06); }
.compare__table thead th.is-featured { color: #fff; box-shadow: inset 0 2px 0 var(--red); }
.compare__price td { font-weight: 600; font-size: 1.05rem; }

/* Общая таблица на 1 и 3 месяца: под каждым тарифом — две колонки периода */
.compare__table--dual { min-width: 760px; }
.compare__subhead th, .compare__subhead td { font-size: 0.85rem; color: var(--muted); padding-top: 10px; padding-bottom: 14px; }
.compare__subhead th[scope='row'] { padding-top: 24px; }
.cmp-yes { display: inline-grid; color: var(--red-ink); }
.cmp-no { display: inline-grid; color: var(--dim); }
.cmp-yes .icon, .cmp-no .icon { width: 20px; height: 20px; }

/* ---------- 14а. Отзывы учеников (видео) ---------- */
.testimonials { overflow: hidden; }
.testimonials__head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.testimonials__head .section-head { margin-bottom: 0; }
.testimonials__nav { display: flex; gap: 10px; flex: none; }
.testimonials__btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--text);
  transition: border-color 0.3s, background-color 0.3s, opacity 0.3s;
}
.testimonials__btn:hover { border-color: rgba(255, 255, 255, 0.4); background: var(--surface); }
.testimonials__btn:disabled { opacity: 0.35; pointer-events: none; }
.testimonials__btn--prev .icon { transform: rotate(180deg); }
.testimonials__btn .icon { width: 18px; height: 18px; }

.testimonials__track {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 4px var(--gutter) 4px calc((100% - min(100% - 2 * var(--gutter), var(--container))) / 2 + var(--gutter));
  scrollbar-width: none;
}
.testimonials__track::-webkit-scrollbar { display: none; }

.tcard { flex: 0 0 auto; width: min(78vw, 300px); scroll-snap-align: start; }
.tcard__inner {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  display: grid; place-items: center;
}
.tcard__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.tcard__play {
  position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: rgba(7, 7, 7, 0.55); border: 1px solid rgba(255, 255, 255, 0.35); color: #fff;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: transform 0.3s var(--ease), background-color 0.3s;
}
.tcard__play .icon { width: 20px; height: 20px; margin-left: 2px; }
.tcard__play:hover { transform: scale(1.06); background: rgba(227, 38, 46, 0.85); border-color: transparent; }
.tcard--placeholder .tcard__inner { border-style: dashed; }
.tcard__inner p, .tcard__inner .icon { color: var(--dim); }
.tcard__inner p { font-size: 0.85rem; text-align: center; padding: 0 20px; margin-top: 12px; }
.tcard__inner .icon { width: 26px; height: 26px; }

@media (min-width: 640px) { .tcard { width: min(46vw, 300px); } }
@media (min-width: 1024px) { .tcard { width: 280px; } }

/* ---------- 17. FAQ ---------- */
.faq__grid { display: grid; gap: 40px; }
.faq__aside { display: grid; gap: 18px; align-content: start; }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(1.02rem, 0.98rem + 0.25vw, 1.15rem); font-weight: 600; letter-spacing: -0.01em; line-height: 1.4;
  transition: color 0.3s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: #fff; }
.faq__icon {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--muted);
  transition: transform 0.4s var(--ease), border-color 0.3s, color 0.3s, background-color 0.3s;
}
.faq__icon .icon { width: 16px; height: 16px; }
.faq__item[open]:not(.is-closing) .faq__icon { transform: rotate(45deg); border-color: var(--red); background: var(--red); color: #fff; }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 48px 24px 0; color: var(--muted); max-width: 44em; }
@media (min-width: 960px) {
  .faq__grid { grid-template-columns: 4fr 8fr; gap: 80px; }
  .faq__aside { position: sticky; top: calc(var(--header-h) + 48px); align-self: start; }
}

/* ---------- 18. Заявка ---------- */
.apply { overflow: hidden; }
.apply__glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 45% at 20% 70%, rgba(227, 38, 46, 0.14), transparent 70%);
}
.apply__grid { position: relative; display: grid; gap: 48px; align-items: center; }
.apply__copy { display: grid; gap: 20px; justify-items: start; }
.apply__title { font-size: clamp(2.4rem, 1.2rem + 5vw, 5.2rem); line-height: 1; letter-spacing: -0.045em; }
.apply__points { display: grid; gap: 12px; margin-top: 8px; }
.apply__points li { display: flex; align-items: center; gap: 12px; color: var(--text); }
.apply__points .icon { color: var(--red-ink); }

.form {
  display: grid; gap: 18px; padding: clamp(22px, 4vw, 40px); border-radius: var(--radius-lg);
  border: 1px solid var(--line-strong);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 40px 120px -60px rgba(0, 0, 0, 0.9);
}
.field { display: grid; gap: 8px; }
.field__label { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.field__opt { color: var(--muted); font-weight: 400; }
.field__input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1px solid var(--line-strong); background: rgba(0, 0, 0, 0.35);
  font-size: 1rem; color: var(--text);
  transition: border-color 0.25s, box-shadow 0.25s, background-color 0.25s;
  -webkit-appearance: none; appearance: none;
}
textarea.field__input { padding: 14px 16px; min-height: 96px; resize: vertical; line-height: 1.5; }
.field__input::placeholder { color: var(--dim); }
.field__input:hover { border-color: rgba(255, 255, 255, 0.28); }
.field__input:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-a20); background: rgba(0, 0, 0, 0.5); }
.field__input[aria-invalid='true'] { border-color: var(--red); }
.field__error { font-size: 0.85rem; color: var(--red-ink); }
.field__select { position: relative; }
.field__select::after {
  content: ''; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none;
}
.field__select select { padding-right: 44px; text-overflow: ellipsis; cursor: pointer; }
.field__select option, .field__select optgroup { background: #111; color: var(--text); }

.form__submit { margin-top: 6px; }
.form.is-loading .form__submit-label::after { content: '…'; }
.form__legal { font-size: 0.8rem; color: var(--muted); text-align: center; }
.form__legal a { text-decoration: underline; text-underline-offset: 3px; }
.form__status:empty { display: none; }
.form__status { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 0.93rem; line-height: 1.5; border: 1px solid var(--line-strong); background: var(--surface); }
.form__status .icon { color: var(--red-ink); margin-top: 2px; }
.form__status.is-error { border-color: var(--red-a40); }
.form__status a { text-decoration: underline; text-underline-offset: 3px; }

@media (min-width: 960px) { .apply__grid { grid-template-columns: 6fr 5fr; gap: 80px; } }

/* ---------- 19. Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); }
.footer__top { display: grid; gap: 40px; padding-bottom: 48px; }
.footer__tag { margin-top: 16px; color: var(--muted); font-size: 0.93rem; max-width: 26em; }
.footer__nav ul { display: grid; gap: 10px; }
.footer__nav a, .footer__contacts a { color: var(--muted); transition: color 0.25s; display: inline-flex; align-items: center; gap: 8px; }
.footer__nav a:hover, .footer__contacts a:hover { color: var(--text); }
.footer__cta { display: grid; gap: 16px; justify-items: start; align-content: start; }
.footer__contacts { display: grid; gap: 10px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--dim);
}
@media (min-width: 800px) {
  .footer__top { grid-template-columns: 2fr 1fr 1fr; }
  .footer__cta { justify-items: end; }
}

/* Мобильная плавающая CTA */
.mobile-cta {
  position: fixed; z-index: 50; left: var(--gutter); right: var(--gutter); bottom: calc(12px + env(safe-area-inset-bottom));
  transform: translateY(calc(100% + 32px)); transition: transform 0.5s var(--ease);
  pointer-events: none;
}
.mobile-cta.is-visible { transform: none; pointer-events: auto; }
.mobile-cta .btn { box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 10px 30px -12px var(--red-a40); }
@media (min-width: 960px) { .mobile-cta { display: none; } }

/* ---------- 20. Noscript ---------- */
.noscript { max-width: 640px; margin: 20vh auto; padding: 0 24px; text-align: center; display: grid; gap: 16px; }

/* ---------- Декоративная каллиграфия ----------
   Только белый цвет, без свечений/теней/градиентов. Фон — всегда позади контента
   (z-index: -1 внутри изолированного родителя) и никогда не мешает чтению.
   Видна на всех размерах экрана, включая мобильные — на узких экранах просто меньше. */
.deco { position: absolute; z-index: -1; display: block; pointer-events: none; user-select: none; object-fit: contain; }

.audience__deco { opacity: 0.06; width: clamp(90px, 24vw, 150px); }
.audience__deco--a { top: 10px; right: 2%; }
.audience__deco--b { bottom: 10px; left: 2%; opacity: 0.05; }
@media (min-width: 640px) {
  .audience__deco { opacity: 0.09; width: clamp(140px, 16vw, 220px); }
  .audience__deco--a { top: 16px; right: 3%; }
  .audience__deco--b { bottom: 16px; left: 2%; opacity: 0.07; }
}
@media (min-width: 1100px) { .audience__deco { width: clamp(180px, 13vw, 260px); } }

.learning__deco { opacity: 0.05; width: clamp(120px, 32vw, 190px); top: 8px; right: -8%; }
@media (min-width: 640px) { .learning__deco { opacity: 0.08; width: clamp(200px, 24vw, 360px); top: 16px; right: -4%; } }

.lcard__deco { opacity: 0.1; width: clamp(34px, 6vw, 68px); height: clamp(34px, 6vw, 68px); top: 2px; right: 0; }
@media (min-width: 900px) { .lcard__deco { width: clamp(48px, 4.5vw, 80px); height: clamp(48px, 4.5vw, 80px); } }

.teacher__deco { opacity: 0.05; width: clamp(120px, 38vw, 190px); top: 8px; right: -8%; }
@media (min-width: 640px) { .teacher__deco { opacity: 0.09; width: clamp(220px, 30vw, 380px); top: 24px; right: -6%; } }
@media (min-width: 960px) { .teacher__deco { width: clamp(260px, 22vw, 440px); top: 48px; right: -5%; } }

.plan__deco { opacity: 0.07; width: clamp(34px, 6%, 60px); top: 40%; right: -20px; }
@media (min-width: 640px) { .plan__deco { opacity: 0.08; width: clamp(40px, 6%, 60px); right: -28px; } }

.compare__deco { display: none; opacity: 0.07; width: clamp(160px, 18vw, 240px); }
@media (min-width: 1024px) {
  .compare__deco { display: block; }
  .compare__deco--a { top: -24px; left: -3%; }
  .compare__deco--b { bottom: -24px; right: -3%; }
}

/* ---------- 21. Уменьшение движения ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important; transition-delay: 0ms !important;
  }
  .js [data-reveal], .js [data-enter] { opacity: 1; transform: none; }
}
