/* DH Academy AI — общий стиль сайта (v1, 08.10.2026)
   Шрифты: Unbounded (заголовки) + Onest (текст), Google Fonts, кириллица.
   Без внешних картинок: только CSS и inline SVG. */

/* ---------- Токены: светлая тема ---------- */
:root {
  --bg: #f6f5f0;
  --bg-2: #efede6;
  --surface: #ffffff;
  --surface-2: #f3f1eb;
  --text: #15151b;
  --muted: #5b5b67;
  --line: #e3e0d7;
  --accent: #5a3cf4;
  --accent-hover: #4a2ee0;
  --accent-ink: #ffffff;
  --accent-soft: #ece8ff;
  --signal: #d4ff3d;
  --signal-ink: #15151b;
  --warm: #e2532a;
  --ok: #16834a;
  --sky-1: #6b4dff;
  --sky-2: #ff8a5c;
  --hill-1: #3a2a8c;
  --hill-2: #241a5c;
  --table: #8a4b2a;
  --metal: #e9e7f5;
  --metal-2: #c9c5e6;
  --plate: #ffffff;
  --dough: #fff3d6;
  --shadow: 0 1px 2px rgba(20, 20, 30, .05), 0 10px 30px rgba(20, 20, 30, .07);
  --radius: 20px;
  --radius-sm: 12px;
  --font-head: "Unbounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: light;
}

/* ---------- Токены: тёмная тема (системная) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c0d12;
    --bg-2: #101219;
    --surface: #151720;
    --surface-2: #1b1e29;
    --text: #f1f0ea;
    --muted: #a4a4b3;
    --line: #272b38;
    --accent: #9483ff;
    --accent-hover: #a899ff;
    --accent-ink: #0c0d12;
    --accent-soft: #221d45;
    --signal: #d4ff3d;
    --signal-ink: #0c0d12;
    --warm: #ff8a60;
    --ok: #4ade80;
    --sky-1: #2b1c7a;
    --sky-2: #c4532f;
    --hill-1: #1d1550;
    --hill-2: #120d33;
    --table: #5e321c;
    --metal: #d9d6ee;
    --metal-2: #a9a4d0;
    --plate: #f1f0ea;
    --dough: #f7e7c0;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

/* ---------- Токены: тёмная тема (выбрана вручную) ---------- */
:root[data-theme="dark"] {
  --bg: #0c0d12;
  --bg-2: #101219;
  --surface: #151720;
  --surface-2: #1b1e29;
  --text: #f1f0ea;
  --muted: #a4a4b3;
  --line: #272b38;
  --accent: #9483ff;
  --accent-hover: #a899ff;
  --accent-ink: #0c0d12;
  --accent-soft: #221d45;
  --signal: #d4ff3d;
  --signal-ink: #0c0d12;
  --warm: #ff8a60;
  --ok: #4ade80;
  --sky-1: #2b1c7a;
  --sky-2: #c4532f;
  --hill-1: #1d1550;
  --hill-2: #120d33;
  --table: #5e321c;
  --metal: #d9d6ee;
  --metal-2: #a9a4d0;
  --plate: #f1f0ea;
  --dough: #f7e7c0;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 36px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .6em; overflow-wrap: break-word; hyphens: manual; }
h1 { font-size: clamp(1.75rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.45rem, 3.2vw, 2.25rem); font-weight: 600; }
h3 { font-size: 1.12rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: .35em; }
strong { font-weight: 600; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } body { font-size: 16px; } }
.skip { position: absolute; left: -9999px; top: 8px; }
.skip:focus { left: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Шапка ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 16px; min-height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-head); font-weight: 600; font-size: 1rem; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-ai { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 7px; background: var(--signal); color: var(--signal-ink); font-size: .78em; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.nav + .header-actions { margin-left: 8px; }
.header-row > .brand + .header-actions { margin-left: auto; }
@media (max-width: 880px) { .nav { display: none; } .header-actions { margin-left: auto; } }
@media (max-width: 440px) {
  .header-row { gap: 8px; min-height: 60px; }
  .brand { font-size: .84rem; gap: 8px; }
  .brand-mark { width: 30px; height: 30px; }
  .brand-ai { padding: 1px 5px; }
  .header-actions { gap: 8px; }
  .header-actions .btn-sm { padding: 8px 12px; font-size: .88rem; min-height: 38px; }
  .theme-toggle { width: 38px; height: 38px; }
}
@media (max-width: 370px) { .brand { font-size: .76rem; } .header-actions .btn-sm { padding: 8px 10px; } }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); display: inline-grid; place-items: center; cursor: pointer; padding: 0;
}
.theme-toggle:hover { border-color: var(--accent); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 14px; border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; text-align: center;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-signal { background: var(--signal); color: var(--signal-ink); }
.btn-signal:hover { color: var(--signal-ink); filter: brightness(.96); }
.btn-sm { min-height: 40px; padding: 8px 16px; border-radius: 12px; font-size: .95rem; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .btn-row .btn { width: 100%; } }

/* ---------- Секции ---------- */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 600px) { .section { padding: 60px 0; } }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.eyebrow {
  display: block;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px;
}
.eyebrow .dot { display: inline-block; vertical-align: middle; margin: -2px 10px 0 2px; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--signal) 35%, transparent); }
.kicker { font-family: var(--font-head); font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; display: block; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.chip { display: inline-block; padding: 4px 11px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .82rem; font-weight: 600; }
.chip-signal { background: var(--signal); color: var(--signal-ink); }
.note { border-left: 3px solid var(--accent); padding: 4px 0 4px 16px; color: var(--muted); }

/* ---------- Первый экран ---------- */
.hero { padding: 64px 0 80px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 620px; height: 620px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 22%, transparent), transparent);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: 48px; align-items: center; position: relative; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 620px; }
.facts { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; margin: 0; }
.facts .ico { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.facts .ico svg { width: 17px; height: 17px; }
.trust { margin-top: 18px; font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.trust span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.price-line { margin-top: 14px; font-weight: 600; }
.hero-visual { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.reel { width: 100%; max-width: 300px; filter: drop-shadow(0 24px 40px rgba(30, 20, 80, .28)); }
.reel text { font-family: var(--font-head); }
.reel .sub { font-family: var(--font-body); font-weight: 700; }
.st-sky1 { stop-color: var(--sky-1); }
.st-sky2 { stop-color: var(--sky-2); }
.r-sun { fill: #ffd27a; opacity: .9; }
.r-hill1 { fill: var(--hill-1); }
.r-hill2 { fill: var(--hill-2); }
.r-table { fill: var(--table); }
.r-metal { fill: var(--metal); }
.r-metal2 { fill: var(--metal-2); }
.r-eye { fill: var(--signal); }
.r-dark { fill: #15151b; }
.r-plate { fill: var(--plate); }
.r-dough { fill: var(--dough); stroke: #e2c58a; stroke-width: 1.5; }
.r-hook { fill: var(--signal); }
.r-hook-t { fill: #15151b; font-size: 19px; font-weight: 700; }
.r-sub { fill: #ffffff; font-size: 22px; paint-order: stroke; stroke: rgba(0, 0, 0, .55); stroke-width: 5px; stroke-linejoin: round; }
.r-sub-hi { fill: var(--signal); }
.r-bar { fill: rgba(255, 255, 255, .35); }
.r-bar-on { fill: #ffffff; }
.r-frame { fill: none; stroke: var(--line); stroke-width: 2; }
.r-badge { fill: rgba(0, 0, 0, .45); }
.r-badge-t { fill: #fff; font-size: 11px; font-family: var(--font-body); font-weight: 600; }
.r-progress { fill: #ffffff; transform-box: fill-box; transform-origin: left center; animation: grow 6s linear infinite; }
.r-eyes { transform-box: fill-box; transform-origin: center; animation: blink 5s infinite; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
.shots { width: 100%; max-width: 300px; display: flex; gap: 4px; height: 26px; position: relative; }
.shots span { flex: 1; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); }
.shots span:nth-child(2n) { flex: 1.3; }
.shots span:nth-child(3n) { flex: .8; background: var(--accent-soft); }
.shots::after {
  content: ""; position: absolute; top: -4px; bottom: -4px; width: 2px; left: 0; background: var(--warm); border-radius: 2px;
  animation: playhead 6s linear infinite;
}
@keyframes playhead { from { left: 0; } to { left: calc(100% - 2px); } }
.visual-caption { font-size: .8rem; color: var(--muted); text-align: center; max-width: 300px; }
@media (prefers-reduced-motion: reduce) {
  .r-progress, .r-eyes, .shots::after { animation: none; }
}
@media (max-width: 900px) {
  .hero { padding: 36px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { order: -1; }
  .reel { max-width: 190px; }
  .shots { max-width: 190px; height: 16px; }
}
@media (max-width: 600px) {
  .hero-visual { gap: 10px; }
  .reel { max-width: 140px; }
  .shots { max-width: 140px; height: 12px; }
  .visual-caption { display: none; }
}

/* ---------- Для кого ---------- */
.who-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .who-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .who-list { grid-template-columns: 1fr; } }
.who-list li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.who-list .tag { display: block; font-family: var(--font-head); font-weight: 600; font-size: 1rem; margin-bottom: 6px; }
.not-for { margin-top: 26px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); padding: 24px; }
.not-for h3 { color: var(--warm); }
.not-for ul { margin: 0; }

/* ---------- Конвейер ---------- */
.pipeline { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; counter-reset: step; }
.pipeline li { margin: 0; position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 12px 14px; text-align: center; font-weight: 600; font-size: .95rem; }
.pipeline li::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 8px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); font-family: var(--font-head); font-size: .85rem;
}
.pipeline li:not(:last-child)::after {
  content: ""; position: absolute; top: 31px; right: -11px; width: 12px; height: 2px; background: var(--accent);
}
@media (max-width: 900px) {
  .pipeline { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pipeline li::after { display: none; }
}
@media (max-width: 520px) { .pipeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.orders { columns: 2; column-gap: 32px; }
.orders li { break-inside: avoid; }
@media (max-width: 640px) { .orders { columns: 1; } }

/* ---------- Портфолио ---------- */
.works { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .works { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .works { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.work { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 12px 16px; }
.work-frame {
  aspect-ratio: 9 / 16; border-radius: 14px; margin-bottom: 12px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--sky-1), var(--sky-2));
}
.work:nth-child(2) .work-frame { background: linear-gradient(160deg, #1f6f5c, #9be15d); }
.work:nth-child(3) .work-frame { background: linear-gradient(160deg, #2b2e83, #e94e77); }
.work:nth-child(4) .work-frame { background: linear-gradient(160deg, #3d2c8d, #00b4d8); }
.work:nth-child(5) .work-frame { background: linear-gradient(160deg, #15151b, #5a3cf4); }
.work-frame .n {
  position: absolute; left: 10px; top: 10px; font-family: var(--font-head); font-weight: 700; font-size: .85rem;
  background: var(--signal); color: var(--signal-ink); border-radius: 8px; padding: 2px 8px;
}
.work-frame .sub {
  position: absolute; left: 10%; right: 10%; bottom: 12%; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, .85);
  box-shadow: 0 14px 0 -1px rgba(255, 255, 255, .5);
}
.work-frame .fig { position: absolute; left: 50%; top: 40%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 255, 255, .88); }
.work-frame .fig::after { content: ""; position: absolute; left: -30%; right: -30%; top: 105%; height: 120%; border-radius: 40% 40% 12px 12px; background: rgba(255, 255, 255, .7); }
.work:nth-child(3) .work-frame .fig::before { content: ""; position: absolute; right: -55%; top: 10%; width: 42%; height: 30%; border-radius: 10px 10px 10px 2px; background: var(--signal); }
.work:nth-child(4) .work-frame { box-shadow: inset 0 0 0 6px rgba(255, 255, 255, .15); }
.work h3 { font-size: .95rem; margin-bottom: 6px; }
.work p { font-size: .86rem; color: var(--muted); margin: 0; }
.work .when { display: block; font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: 4px; }

/* ---------- Неделя ---------- */
.week { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .week { grid-template-columns: 1fr; } }
.day { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.day .d { font-family: var(--font-head); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); display: block; margin-bottom: 8px; }
.day p { margin: 0; font-size: .95rem; }
.timeline { margin-top: 26px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.timeline div { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 8px; font-size: .8rem; line-height: 1.35; min-height: 92px; }
.timeline b { display: block; font-family: var(--font-head); font-size: .78rem; margin-bottom: 4px; }
.timeline .pf { display: inline-block; margin-top: 6px; background: var(--signal); color: var(--signal-ink); border-radius: 6px; padding: 0 6px; font-weight: 700; }
@media (max-width: 900px) { .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 480px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Программа (аккордеон) ---------- */
.program { display: grid; gap: 10px; }
.module { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.module summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: baseline;
}
.module summary::-webkit-details-marker { display: none; }
.module summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .2s ease;
}
.module[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.module .m-num { font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: var(--accent); grid-row: span 2; min-width: 2.6em; }
.module .m-title { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; line-height: 1.3; }
.module .m-res { color: var(--muted); font-size: .92rem; }
.module ol { margin: 0; padding: 0 22px 20px 72px; }
.module ol li { font-size: .95rem; }
.module .pfw { color: var(--ok); font-weight: 600; }
@media (max-width: 520px) { .module summary { grid-template-columns: 1fr; } .module .m-num { grid-row: auto; } .module ol { padding-left: 40px; } }
.bonus { margin-top: 18px; }

/* ---------- Команда ---------- */
.person { display: flex; gap: 18px; align-items: flex-start; }
.avatar { width: 64px; height: 64px; flex: none; border-radius: 20px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: var(--accent-ink); background: var(--accent); }
.avatar.ai { background: var(--signal); color: var(--signal-ink); }
.avatar svg { width: 30px; height: 30px; }
.person h3 { margin-bottom: 4px; }
.person .role { color: var(--muted); font-size: .9rem; display: block; margin-bottom: 10px; }
@media (max-width: 480px) { .person { flex-direction: column; } }

/* ---------- Процесс ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); counter-reset: s; }
@media (max-width: 400px) { .steps { grid-template-columns: 1fr; } }
.steps li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px 20px 70px; position: relative; }
.steps li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 20px; top: 20px; font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--accent);
}
.steps h3 { margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: .95rem; }

/* ---------- Стоимость ---------- */
.cost { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 900px) { .cost { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .cost { grid-template-columns: 1fr; } }
.cost .card { padding: 22px; }
.cost .big { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; display: block; margin: 6px 0 8px; }
.cost p { margin: 0; font-size: .93rem; color: var(--muted); }

/* ---------- Тарифы ---------- */
.plans-intro { max-width: 820px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; margin-top: 30px; }
@media (max-width: 960px) { .plans { grid-template-columns: 1fr; max-width: 560px; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; box-shadow: var(--shadow); position: relative; }
.plan.featured { border: 2px solid var(--accent); }
.plan .ribbon { position: absolute; top: -13px; left: 24px; }
.plan h3 { font-size: 1.25rem; margin-bottom: 4px; }
.plan .for { color: var(--muted); font-size: .93rem; margin-bottom: 18px; }
.plan .price { font-family: var(--font-head); font-weight: 700; font-size: 2.4rem; line-height: 1; }
.plan .cur { font-family: var(--font-body); font-size: .95rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.plan .price-note { font-size: .88rem; color: var(--muted); margin: 8px 0 18px; min-height: 2.6em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; }
.plan li { margin: 0; padding-left: 28px; position: relative; font-size: .94rem; }
.plan li::before { content: ""; position: absolute; left: 2px; top: .38em; width: 16px; height: 16px; border-radius: 50%; background: var(--accent-soft); }
.plan li::after { content: ""; position: absolute; left: 7px; top: .62em; width: 6px; height: 4px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.plan li.no { color: var(--muted); }
.plan li.no::before { background: var(--surface-2); }
.plan li.no::after { width: 8px; height: 0; border-left: 0; border-bottom: 2px solid var(--muted); transform: none; left: 6px; top: .9em; }
.plan .seats { font-size: .88rem; font-weight: 600; margin-bottom: 14px; }
.plan .btn { margin-top: auto; width: 100%; }
.plans-notes { margin-top: 26px; display: grid; gap: 8px; color: var(--muted); font-size: .94rem; max-width: 860px; }
.plans-notes p { margin: 0; }

/* ---------- Гарантия ---------- */
.guarantee { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 22px; }
@media (max-width: 860px) { .guarantee { grid-template-columns: 1fr; } }
.g-main { background: var(--accent); color: var(--accent-ink); border-radius: 24px; padding: 34px; }
.g-main h2 { color: var(--accent-ink); }
.g-main a { color: var(--accent-ink); }
.g-days { font-family: var(--font-head); font-weight: 700; font-size: clamp(3rem, 8vw, 4.6rem); line-height: 1; display: block; margin-bottom: 10px; }
.g-side { display: grid; gap: 14px; }
.g-side .card h3 { margin-bottom: 6px; }
.g-side .card p { margin: 0; color: var(--muted); font-size: .95rem; }
.g-not { border: 1px dashed var(--line); background: transparent; box-shadow: none; }

/* ---------- Путь в агентство ---------- */
.path { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: p; }
@media (max-width: 900px) { .path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .path { grid-template-columns: 1fr; } }
.path li { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.path li::before { counter-increment: p; content: "Шаг " counter(p); display: block; font-family: var(--font-head); font-size: .78rem; font-weight: 600; color: var(--accent); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .05em; }
.path p { margin: 0; font-size: .94rem; color: var(--muted); }
.path h3 { margin-bottom: 6px; }

/* ---------- Отзывы (пустое состояние) ---------- */
.empty { text-align: center; max-width: 720px; margin: 0 auto; padding: 44px 28px; border: 1px dashed var(--line); border-radius: 24px; background: var(--surface); }
.empty .btn-row { justify-content: center; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-size: 1.3rem; color: var(--accent); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 20px 18px; color: var(--muted); }
.faq .a p:last-child { margin-bottom: 0; }

/* ---------- Запись ---------- */
.enroll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; align-items: start; }
@media (max-width: 860px) { .enroll { grid-template-columns: 1fr; } }
.enroll ol { margin: 0; padding-left: 1.3em; }
.enroll ol li { margin-bottom: .6em; }
.secure { display: flex; gap: 14px; align-items: flex-start; }
.secure svg { width: 34px; height: 34px; flex: none; color: var(--ok); }
.secure p { margin: 0 0 .5em; }

/* ---------- Финальный CTA ---------- */
.final { text-align: center; }
.final .box { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--warm))); color: #fff; border-radius: 28px; padding: 56px 28px; }
.final h2, .final p { color: #fff; }
.final .btn-row { justify-content: center; }
.final .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.final .btn-ghost:hover { border-color: #fff; color: #fff; }
:root[data-theme="dark"] .final .box { color: #0c0d12; }
:root[data-theme="dark"] .final h2, :root[data-theme="dark"] .final p { color: #0c0d12; }
:root[data-theme="dark"] .final .btn-ghost { color: #0c0d12; border-color: rgba(12, 13, 18, .45); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .final .box { color: #0c0d12; }
  :root:not([data-theme="light"]) .final h2, :root:not([data-theme="light"]) .final p { color: #0c0d12; }
  :root:not([data-theme="light"]) .final .btn-ghost { color: #0c0d12; border-color: rgba(12, 13, 18, .45); }
}
.final .btn-signal { background: var(--signal); }

/* ---------- About (EN) ---------- */
.about-en { border-top: 1px solid var(--line); }
.about-en .card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 860px) { .about-en .card { grid-template-columns: 1fr; } }
.about-en h2 { font-size: 1.4rem; }
.about-en dl { margin: 0; display: grid; gap: 10px; font-size: .93rem; }
.about-en dt { font-weight: 600; }
.about-en dd { margin: 0 0 4px; color: var(--muted); }

/* ---------- Подвал ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; background: var(--bg-2); font-size: .9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .brand { margin-bottom: 14px; }
.site-footer address { font-style: normal; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; align-content: start; }
@media (max-width: 420px) { .footer-links { grid-template-columns: 1fr; } }
.footer-links a { color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--accent); text-decoration: underline; }
.footer-legal { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); font-size: .82rem; line-height: 1.55; }
.footer-legal p { margin: 0 0 .6em; }

/* ---------- Юридические страницы ---------- */
.legal-hero { padding: 56px 0 22px; }
.legal-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.legal-hero .meta { color: var(--muted); font-size: .95rem; }
.lang-switch { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.legal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; padding-bottom: 80px; }
@media (max-width: 900px) { .legal-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.toc { position: sticky; top: 90px; align-self: start; font-size: .9rem; }
.toc h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.toc ol { padding-left: 1.2em; margin: 0 0 18px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--accent); }
@media (max-width: 900px) { .toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; } }
.legal { max-width: 760px; min-width: 0; }
.legal section { margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; margin-top: 2.2em; padding-top: .2em; }
.legal h3 { font-size: 1.02rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--text); }
.legal .lang-block { border-top: 2px solid var(--line); padding-top: 18px; margin-top: 40px; }
.legal .lang-block:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.legal .lang-label { display: inline-block; margin-bottom: 6px; }
.legal .callout { background: var(--accent-soft); border-radius: 14px; padding: 16px 18px; margin: 18px 0; color: var(--text); }
.legal .callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 14px; }
.legal table { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 520px; }
.legal th, .legal td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { background: var(--surface-2); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 18px 0 26px; }
@media (max-width: 640px) { .contact-cards { grid-template-columns: 1fr; } }
.contact-cards .card { padding: 20px; box-shadow: none; }
.contact-cards h3 { margin: 0 0 6px; font-size: .95rem; }
.contact-cards p { margin: 0; }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 60px 0; }
.notfound .code { font-family: var(--font-head); font-size: clamp(4rem, 14vw, 8rem); font-weight: 700; color: var(--accent); line-height: 1; }

/* ---------- Утилиты ---------- */
.mt { margin-top: 22px; }
.btn-row.center { justify-content: center; }
@media (max-width: 345px) { .site-header .brand > span { display: none; } }

/* ---------- v2 (09.10.2026): страницы /live, /pay, /thanks ---------- */
.live-hero h1 { max-width: 860px; }
.live-when { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 22px; align-items: center; margin-top: 26px; max-width: 860px; }
@media (max-width: 720px) { .live-when { grid-template-columns: 1fr; } }
.live-date { font-family: var(--font-head); font-weight: 700; font-size: 1.35rem; margin: 0 0 6px; }
.tz-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tz-list li { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.tz-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.tz-list b { font-family: var(--font-head); font-weight: 600; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .95rem; }
.form input[type=email], .form input[type=text], .form input[type=url] { width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; }
.form input[type=email]:focus, .form input[type=text]:focus, .form input[type=url]:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); }
.form .check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--accent); }
.form .hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-size: .93rem; min-height: 1.2em; }
.form-status.ok { color: var(--ok); font-weight: 600; }
.form-status.err { color: var(--warm); font-weight: 600; }
.pay-steps { margin: 22px 0 0; padding-left: 1.3em; max-width: 760px; }
.pay-steps li { margin-bottom: .5em; }
.pay-buttons { margin-top: auto; display: grid; gap: 10px; }
.plan .pay-buttons .btn { margin-top: 0; }
.plan .pay-buttons .btn-ghost { min-height: 44px; font-size: .95rem; }
.mini-card { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 24px; align-items: center; }
@media (max-width: 760px) { .mini-card { grid-template-columns: 1fr; } }
.mini-card h3 { font-size: 1.2rem; }
.mini-card .price { font-family: var(--font-head); font-weight: 700; font-size: 2rem; line-height: 1; }
.mini-card .cur { font-size: .95rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.mini-buy { display: grid; gap: 12px; }
/* v3 (09.10.2026): страница разбора ролика /r/<код> */
.reel-video { margin-top: 24px; padding: 0; overflow: hidden; aspect-ratio: 16 / 9; max-width: 860px; display: grid; place-items: center; }
.reel-video.vertical { aspect-ratio: 9 / 16; max-width: 380px; }
.reel-frame { width: 100%; height: 100%; border: 0; display: block; background: #000; }
.reel-soon { padding: 28px; text-align: center; max-width: 520px; }
.reel-soon p { color: var(--muted); margin: 12px 0 0; }
.prompt { display: grid; gap: 10px; }
.prompt h3 { font-size: 1.05rem; margin: 0; }
.prompt-text { margin: 0; padding: 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); white-space: pre-wrap; word-break: break-word; font-size: .9rem; line-height: 1.5; max-height: 320px; overflow: auto; }
.prompt .btn { justify-self: start; }
.reel-services { padding-left: 1.2em; }
.reel-sep { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.mini-list { margin: 0 0 12px; padding-left: 1.2em; }
.mini-list li { margin-bottom: .3em; }
.demo-loop-wrap { margin: 24px 0 0; display: flex; align-items: center; gap: 14px; }
.demo-loop { width: 120px; aspect-ratio: 9 / 16; border-radius: 14px; object-fit: cover; background: #000; border: 1px solid var(--line); }
.demo-loop-wrap figcaption { margin: 0; }
.form textarea, .form select.select { width: 100%; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; }
.form select.select { min-height: 48px; }
.form textarea:focus, .form select.select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.plans.plans-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; }
@media (max-width: 760px) { .plans.plans-2 { grid-template-columns: 1fr; max-width: 560px; } }
/* v4: согласие на рекламный пиксель */
.ads-consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 50; max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.ads-consent p { margin: 0 0 10px; font-size: .92rem; color: var(--muted); }
