/* ==========================================================================
   SEEDU · Онлайн-интенсив AEO/GEO — лендинг (mobile first)
   ========================================================================== */

@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/onest-cyrillic.woff2) format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Onest";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(../fonts/onest-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --orange: #ff8d23;          /* фирменный оранжевый seedu */
  --orange-hover: #ff7a00;
  --orange-ink: #b35500;      /* оранжевый для мелкого текста на белом (AA) */
  --orange-tint: #fff1e3;
  --ink: #1f1f1f;
  --ink-2: #4a4a4a;
  --muted: #6b6b6b;
  --line: #e7e5e0;
  --bg: #ffffff;
  --bg-soft: #f6f5f2;
  --dark: #151515;
  --dark-2: #222222;
  --dark-line: #333333;
  --on-dark: #f3f3f3;
  --on-dark-muted: #a9a9a9;

  --radius: 14px;
  --radius-sm: 10px;
  --gutter: 16px;
  --container: 1180px;
  --header-h: 60px;
  --font: "Onest", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --arrow: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

.accent { color: var(--orange); }
.nw { white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--orange-ink);
  margin-bottom: 12px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--orange); }

.h2 {
  font-size: clamp(27px, 7vw, 44px);
  line-height: 1.12;
  font-weight: 750;
  letter-spacing: -.02em;
  margin-bottom: 24px;
  text-wrap: balance;
}
.h3 { font-size: 18px; line-height: 1.3; font-weight: 650; margin-bottom: 8px; text-wrap: balance; }
.lead { font-size: 17px; color: var(--ink-2); max-width: 680px; margin: -8px 0 28px; }
.lead--dark { color: var(--on-dark-muted); }
.lead a { color: inherit; font-weight: 600; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px;
  padding: 0 34px 0 24px;
  border: 0;
  background: var(--orange);
  color: var(--ink);
  font-weight: 700; font-size: 16px; letter-spacing: .01em;
  text-decoration: none;
  clip-path: var(--arrow);
  transition: background-color .15s ease, transform .15s ease;
}
.btn:hover { background: var(--orange-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 3px var(--ink); }
.btn--sm { min-height: 40px; padding: 0 24px 0 16px; font-size: 14px; --arrow: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }

.btn-ghost {
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }

.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; padding: 12px 0; }
.link-arrow::after { content: "↓"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateY(2px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(21, 21, 21, .92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.header.is-scrolled { border-bottom-color: var(--dark-line); }
.header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.header__logo img { height: 40px; width: auto; }
.header__nav { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 380px at 85% 10%, rgba(255, 141, 35, .16), transparent 70%),
    var(--dark);
  color: var(--on-dark);
  padding: 28px 0 56px;
}
.hero__mark { position: absolute; right: -90px; bottom: -60px; width: 340px; color: var(--orange); opacity: .1; pointer-events: none; }
.hero__grid { position: relative; display: grid; gap: 40px; }
.hero__title {
  font-size: clamp(36px, 10.5vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 18px;
  text-wrap: balance;
}
.hero__lead { font-size: 17px; color: #cfcfcf; max-width: 600px; margin-bottom: 24px; }
.hero__facts {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px;
  background: var(--dark-line);
  border: 1px solid var(--dark-line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 28px; max-width: 600px;
}
.hero__facts li { background: var(--dark); padding: 12px 14px; display: flex; flex-direction: column; }
.hero__facts b { font-size: 16px; font-weight: 700; color: #fff; white-space: nowrap; }
.hero__facts span { font-size: 13px; color: var(--on-dark-muted); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; }
.hero__cta .btn { width: 100%; }
.hero__cta .link-arrow { color: var(--on-dark); }

/* AI answer illustration */
.hero__visual { position: relative; max-width: 440px; width: 100%; margin: 0 auto; padding: 18px 0 26px; }
.ai-card {
  position: relative;
  background: #fff; color: var(--ink);
  border-radius: 18px;
  padding: 16px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .06);
}
.ai-card__query {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 14px; margin-bottom: 14px;
}
.ai-card__label { font-size: 13px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.spark { color: var(--orange); }
.ai-card__lines { display: grid; gap: 8px; margin-bottom: 16px; }
.ai-card__lines i { display: block; height: 9px; border-radius: 6px; background: #ececec; position: relative; }
.ai-card__lines i.cite sup {
  position: absolute; right: -24px; top: 50%; transform: translateY(-50%);
  font-size: 10px; font-weight: 700; line-height: 1;
  background: var(--orange-tint); color: var(--orange-ink);
  border-radius: 5px; padding: 3px 5px;
}
.ai-card__sources { display: grid; gap: 6px; }
.src {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
  background: var(--bg-soft); border-radius: 10px; padding: 8px 10px;
}
.src__n { width: 20px; height: 20px; flex: none; display: grid; place-items: center; border-radius: 6px; background: #e3e1dc; font-size: 11px; font-weight: 700; color: var(--ink-2); }
.src--you { background: var(--orange-tint); color: var(--ink); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--orange); }
.src--you .src__n { background: var(--orange); color: var(--ink); }
.src em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--orange-ink); text-transform: uppercase; letter-spacing: .04em; }
.chip {
  position: absolute;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  color: var(--on-dark);
  background: var(--dark-2); border: 1px solid #3a3a3a;
  border-radius: 999px; padding: 6px 12px;
  box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .7);
}
.chip::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); margin-right: 7px; vertical-align: 1px; }
.chip--a { top: 0; right: 4px; }
.chip--b { bottom: 0; left: 8px; }
.chip--c { bottom: 0; right: 0; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section--tight { padding: 48px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0 16px; margin-bottom: 24px; }
.section-head .h2 { margin-bottom: 12px; }

/* cards */
.cards { display: grid; gap: 12px; }
.card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px;
}
.section--soft .card { border-color: transparent; }
.card p { color: var(--ink-2); }
.card__num { display: block; font-size: 13px; font-weight: 700; color: var(--orange-ink); margin-bottom: 10px; letter-spacing: .04em; }

/* outcomes */
.outcomes { display: grid; gap: 0; counter-reset: out; border-top: 1px solid var(--line); }
.outcomes li {
  counter-increment: out;
  position: relative;
  padding: 18px 0 18px 48px;
  border-bottom: 1px solid var(--line);
}
.outcomes li::before {
  content: counter(out, decimal-leading-zero);
  position: absolute; left: 0; top: 18px;
  font-size: 14px; font-weight: 800; color: var(--orange-ink);
  width: 36px; height: 26px; display: grid; place-items: center;
  background: var(--orange-tint);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 50%, calc(100% - 7px) 100%, 0 100%);
}
.outcomes p { color: var(--ink-2); }
.section--soft .outcomes li::before { background: #fff; }
.section--soft .outcomes, .section--soft .outcomes li { border-color: #e2dfd8; }

/* ---------- Program ---------- */
.program { display: grid; gap: 32px; }
.part-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.part-head__tag {
  flex: none;
  font-size: 15px; font-weight: 800; letter-spacing: .04em;
  background: var(--ink); color: var(--orange);
  padding: 9px 22px 9px 12px;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 0 100%);
}
.part-head__title { font-size: 20px; line-height: 1.2; font-weight: 700; }
.part-head__sub { font-size: 14px; color: var(--muted); }

.module {
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  border: 1px solid transparent;
  transition: border-color .15s ease;
}
.module[open] { border-color: var(--line); }
.module summary, .module--static {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 16px 48px 16px 16px;
  list-style: none;
  cursor: pointer;
  position: relative;
  font-weight: 600; font-size: 16px; line-height: 1.35;
}
.module--static { cursor: default; padding-right: 16px; }
.module summary::-webkit-details-marker { display: none; }
.module summary::after {
  content: "";
  position: absolute; right: 18px; top: 50%;
  width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: rotate(45deg);
  transition: transform .2s ease, margin .2s ease;
}
.module[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.module summary:hover .module__t { color: var(--orange-ink); }
.module__n { flex: none; font-size: 13px; font-weight: 700; color: var(--orange-ink); min-width: 22px; padding-top: 2px; }

.tree { padding: 0 16px 18px 50px; display: grid; gap: 8px; font-size: 15px; color: var(--ink-2); }
.tree li { position: relative; padding-left: 16px; }
.tree li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--orange); }
.tree b { color: var(--ink); font-weight: 600; }
.tree ul { margin-top: 6px; display: grid; gap: 6px; }
.tree ul li::before { width: 8px; height: 2px; border-radius: 0; top: .72em; background: #b9b6af; }

.program__cta { margin-top: 28px; display: flex; justify-content: center; }
.program__cta .btn { width: 100%; }

/* ---------- Format ---------- */
.dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.date {
  display: flex; flex-direction: column; align-items: flex-start;
  background: var(--bg-soft); border-radius: var(--radius-sm);
  padding: 14px 12px;
}
.date__wd { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange-ink); }
.date__d { font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.03em; margin-top: 6px; }
.date__m { font-size: 14px; font-weight: 600; }
.date__t { font-size: 12px; color: var(--muted); margin-top: 8px; }
.format { display: grid; gap: 8px; }
.format li { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; }
.format b { font-weight: 700; }
.format span { color: var(--ink-2); font-size: 15px; }

/* ---------- Author ---------- */
.author { display: grid; gap: 28px; }
.author__photo {
  position: relative;
  max-width: 260px; margin: 0 auto;
}
.author__photo::before {
  content: ""; position: absolute; inset: 7% -14% -5% 9%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 104 100' preserveAspectRatio='none'%3E%3Cpath d='M10 9V2h72l20 48-20 48H10v-7' fill='none' stroke='%23ff8d23' stroke-width='3' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  opacity: .75;
}
.author__photo picture { position: relative; z-index: 1; display: block; }
.author__photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .8);
}
.author__role { color: #cfcfcf; font-size: 17px; margin: -8px 0 24px; max-width: 560px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 24px; }
.stats li { border-top: 2px solid var(--orange); padding-top: 10px; display: flex; flex-direction: column; }
.stats b { font-size: 24px; line-height: 1.1; font-weight: 800; color: #fff; white-space: nowrap; }
.stats span { font-size: 13px; color: var(--on-dark-muted); line-height: 1.3; margin-top: 4px; }
.stats__code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; line-height: 1.2; letter-spacing: .02em;
  color: var(--orange); margin-top: 4px; white-space: nowrap;
}
.stats__code sub { font-size: .75em; color: var(--on-dark-muted); }
.stats__code + span { margin-top: 2px; }
.stats__bin b.is-scrambling { font-variant-numeric: tabular-nums; }
.ticks--dark a { color: var(--orange); text-underline-offset: 3px; }
.ticks--dark a:hover { color: #fff; }

.ticks { display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 8.2 2.6 2.6L12 5.4' fill='none' stroke='%231f1f1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.ticks--dark li { color: var(--on-dark); }

/* ---------- Clients marquee ---------- */
.marquee { overflow: hidden; display: grid; gap: 10px; margin-top: 4px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee__row { display: flex; gap: 10px; width: max-content; animation: marquee 60s linear infinite; }
.marquee__row--rev { animation-direction: reverse; animation-duration: 70s; }
.marquee__row li {
  flex: none; width: 150px; height: 76px;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 10px 16px;
}
.marquee__row img { max-height: 48px; width: auto; object-fit: contain; }
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__row { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 var(--gutter); }
  .marquee__row [data-clone] { display: none; }
}

/* ---------- Horizontal rails (videos, gallery) ---------- */
.rail { position: relative; }
.rail__track {
  display: flex; gap: 12px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 12px;
  scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > li { flex: none; scroll-snap-align: start; }
.rail__nav { display: none; }

.videos > li { width: min(82vw, 340px); }
.video__thumb {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: #000;
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 355 / 232;
}
.video__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .2s ease, transform .3s ease; }
.video__thumb:hover img { opacity: 1; transform: scale(1.03); }
.play {
  position: absolute; left: 50%; top: 50%;
  width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: var(--orange);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .35);
}
.play::after {
  content: ""; position: absolute; left: 26px; top: 21px;
  border-left: 16px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.person { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; }
.person b { display: block; font-weight: 650; line-height: 1.25; }
.person span { display: block; font-size: 14px; color: var(--muted); line-height: 1.3; }

.rail--quotes { margin-top: 20px; }
.quotes { align-items: flex-start; }
.quotes > li { width: min(82vw, 340px); }
.quote { background: var(--bg-soft); border-radius: var(--radius); padding: 20px; display: flex; flex-direction: column; }
.quote .person { margin: 0 0 14px; order: -1; }
.quote__text { position: relative; color: var(--ink-2); font-size: 15px; display: grid; gap: 10px; }
.quote__text.is-clamped { max-height: 9.6em; overflow: hidden; -webkit-mask-image: linear-gradient(#000 60%, transparent); mask-image: linear-gradient(#000 60%, transparent); }
.quote__more { align-self: flex-start; margin-top: 10px; padding: 6px 0; background: none; border: 0; font-weight: 650; color: var(--orange-ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Gallery ---------- */
.gallery > li { width: min(76vw, 340px); }
.gallery a { display: block; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 380 / 253; background: #ddd; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery a:hover img { transform: scale(1.04); }

/* ---------- Price ---------- */
.price { display: grid; gap: 24px; }
.price .lead { margin-top: -8px; }
.price .lead a { color: var(--orange); }
.price-card {
  background: #fff; color: var(--ink);
  border-radius: 18px; padding: 24px 20px;
  position: relative; overflow: hidden;
}
.price-card::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 6px; background: var(--orange); }
.price-card__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; margin-bottom: 8px; }
.price-card__name { font-weight: 700; }
.price-card__dates { color: var(--muted); }
.price-card__sum { font-size: clamp(42px, 12vw, 56px); line-height: 1.05; font-weight: 800; letter-spacing: -.03em; }
.price-card__note { display: inline-block; font-size: 14px; font-weight: 600; background: var(--orange-tint); color: var(--orange-ink); border-radius: 6px; padding: 4px 10px; margin: 10px 0 20px; }
.price-card .ticks { margin-bottom: 24px; color: var(--ink-2); }

/* места */
.seats { margin: 0 0 22px; padding: 14px 14px 16px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.seats__row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; font-size: 14px; margin-bottom: 12px; }
.seats__taken { color: var(--ink-2); }
.seats__taken b { color: var(--ink); font-weight: 750; }
.seats__left { font-weight: 750; color: var(--orange-ink); }
.seats__track { position: relative; height: 10px; border-radius: 999px; background: #e3e1dc; }
.seats__fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  width: var(--p, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb36b, var(--orange));
  transition: width 1.1s cubic-bezier(.2, .7, .2, 1);
}
.seats__fill::after {
  content: ""; position: absolute; right: -11px; top: 50%;
  width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background: #fff; border: 3px solid var(--orange);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.seats.is-pending .seats__fill { width: 0; }
@media (prefers-reduced-motion: reduce) { .seats__fill { transition: none; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 18px 40px 18px 0; font-weight: 650; font-size: 17px; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 400; color: var(--orange-ink); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq p { color: var(--ink-2); padding: 0 0 20px; max-width: 680px; }
.faq a { color: var(--orange-ink); font-weight: 600; }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: var(--on-dark); padding: 44px 0 calc(96px + env(safe-area-inset-bottom)); font-size: 15px; }
.footer__grid { display: grid; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--dark-line); }
.footer__logo { height: 44px; width: auto; margin-bottom: 12px; }
.footer__h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--orange); margin-bottom: 10px; }
.footer p + p { margin-top: 6px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--orange); }
.footer__muted { color: var(--on-dark-muted); }
.footer__legal { padding-top: 20px; font-size: 13px; color: #8a8a8a; display: grid; gap: 6px; }
.footer__legal a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Sticky CTA (mobile) ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(21, 21, 21, .96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  color: #fff;
  border-top: 1px solid var(--dark-line);
  transform: translateY(110%);
  transition: transform .25s ease;
}
.sticky-cta.is-visible { transform: none; }
.sticky-cta__info { display: flex; flex-direction: column; line-height: 1.2; }
.sticky-cta__info b { font-size: 18px; font-weight: 800; }
.sticky-cta__info span { font-size: 12px; color: var(--on-dark-muted); }
.sticky-cta .btn { min-height: 44px; padding: 0 30px 0 22px; font-size: 15px; }

/* ---------- Modal (form) ---------- */
dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: rgba(10, 10, 10, .72); }
body.has-modal { overflow: hidden; }

.modal {
  width: 100%; max-width: 100%;
  max-height: 100dvh; height: fit-content;
  margin: auto 0 0;
  border-radius: 20px 20px 0 0;
  padding: 28px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  background: #fff;
  overflow-y: auto;
}
.modal[open] { animation: sheet-up .25s ease; }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.modal__close, .viewer__close {
  position: absolute; right: 10px; top: 10px;
  width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: var(--bg-soft);
  font-size: 26px; line-height: 1;
}
.modal__title { font-size: 24px; line-height: 1.2; font-weight: 750; padding-right: 40px; margin-bottom: 6px; }
.modal__sub { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.modal__sub a { color: var(--orange-ink); font-weight: 600; }

.form { display: grid; gap: 12px; }
.field { display: grid; gap: 4px; }
.field__label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 16px; /* 16px — без автозума в iOS */
  color: var(--ink);
  background: var(--bg-soft);
  border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color .15s ease, background .15s ease;
}
.field textarea { resize: vertical; min-height: 84px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); background: #fff; }
.field__err { display: none; font-size: 13px; color: #c62828; }
.field.is-error input { border-color: #c62828; background: #fff; }
.field.is-error .field__err { display: block; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.consents { display: grid; gap: 10px; margin: 4px 0 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.check input {
  flex: none; appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; margin: 0; border-radius: 5px;
  border: 1.5px solid #b9b6af; background: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.check input:checked { background: var(--orange); border-color: var(--orange); }
.check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg) translate(1px, -1px); }
.check.is-error input { border-color: #c62828; }
.check a { color: var(--orange-ink); }
.consents__err { display: none; font-size: 13px; color: #c62828; }
.consents.is-error .consents__err { display: block; }
.form__status { font-size: 14px; min-height: 0; }
.form__status.is-error { color: #c62828; }
.form__status a { color: inherit; font-weight: 600; }

.form-done { text-align: center; padding: 20px 0 8px; }
.form-done .modal__title { padding: 0; }
.form-done__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; font-size: 30px; font-weight: 800; }

/* ---------- Viewer (lightbox) ---------- */
.viewer {
  width: 100vw; height: 100dvh; max-width: 100vw; max-height: 100dvh;
  margin: 0; background: rgba(10, 10, 10, .96); color: #fff;
  overflow: hidden;
}
.viewer::backdrop { background: rgba(10, 10, 10, .9); }
.viewer[open] { display: grid; place-items: center; }
.viewer__stage { width: 100%; height: 100%; display: grid; place-items: center; padding: 64px 12px 56px; }
.viewer__stage img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.viewer__stage figcaption { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: 14px; color: #cfcfcf; padding: 0 60px; }
.viewer__video { width: min(100%, 1000px); aspect-ratio: 16 / 9; background: #000; }
.viewer__video iframe { width: 100%; height: 100%; border: 0; display: block; }
.viewer__fallback { margin-top: 12px; font-size: 14px; text-align: center; color: #cfcfcf; }
.viewer__fallback a { color: var(--orange); }
.viewer__close { background: rgba(255, 255, 255, .12); color: #fff; z-index: 2; }
.viewer__nav {
  position: absolute; top: 50%; z-index: 2; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 28px; line-height: 1;
}
.viewer__nav--prev { left: 8px; }
.viewer__nav--next { right: 8px; }

/* ==========================================================================
   ≥ 600px
   ========================================================================== */
@media (min-width: 600px) {
  :root { --gutter: 24px; }
  .hero__cta .btn { width: auto; }
  .hero__facts { grid-template-columns: repeat(4, auto); }
  .cards--3 { grid-template-columns: repeat(2, 1fr); }
  .outcomes { grid-template-columns: 1fr 1fr; column-gap: 32px; border-top: 0; }
  .outcomes li:nth-child(-n+2) { border-top: 1px solid var(--line); }
  .format { grid-template-columns: repeat(3, 1fr); }
  .program__cta .btn { width: auto; }
  .marquee__row li { width: 180px; height: 88px; }
  .modal {
    max-width: 560px; margin: auto;
    border-radius: 20px; padding: 36px 36px 28px;
    max-height: calc(100dvh - 40px);
  }
  .footer { padding-bottom: 44px; }
  .footer__grid { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   ≥ 960px
   ========================================================================== */
@media (min-width: 960px) {
  :root { --gutter: 32px; --header-h: 72px; }
  body { font-size: 17px; }
  .header__logo img { height: 48px; }
  .header__nav { display: flex; gap: 28px; font-size: 15px; font-weight: 500; }
  .header__nav a { text-decoration: none; color: #d8d8d8; }
  .header__nav a:hover { color: var(--orange); }

  .hero { padding: 64px 0 96px; }
  .hero__grid { grid-template-columns: 1.15fr .85fr; align-items: center; gap: 56px; }
  .hero__lead { font-size: 19px; }
  .hero__facts li { padding: 14px 18px; }
  .hero__visual { padding: 28px 0 36px; }
  .ai-card { padding: 22px; transform: rotate(1.5deg); }
  .chip--a { top: 0; right: -20px; }
  .chip--b { bottom: 0; left: -28px; }
  .chip--c { bottom: 0; right: -10px; }
  .hero__mark { width: 520px; right: -140px; bottom: -120px; }

  .section { padding: 96px 0; }
  .section--tight { padding: 72px 0; }
  .h2 { margin-bottom: 36px; }
  .lead { margin-top: -16px; margin-bottom: 36px; font-size: 18px; }
  .cards { gap: 16px; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 28px; }
  .outcomes { grid-template-columns: repeat(3, 1fr); }
  .outcomes li:nth-child(-n+3) { border-top: 1px solid var(--line); }
  .outcomes li { padding-right: 16px; }

  .program { grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
  .module summary, .module--static { padding: 18px 52px 18px 20px; }
  .module--static { padding-right: 20px; }
  .tree { padding: 0 20px 20px 54px; }

  .dates { gap: 16px; }
  .date { padding: 22px 24px; }
  .date__d { font-size: 56px; }
  .format { gap: 16px; }
  .format li { padding: 20px 24px; }

  .author { grid-template-columns: 380px 1fr; gap: 72px; align-items: center; }
  .author__photo { max-width: 320px; margin: 0; }
  .stats b { font-size: 34px; }
  .stats__code { font-size: 13px; }
  .stats { gap: 24px; margin-bottom: 32px; }

  .rail__track { padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); padding-right: var(--gutter); scroll-padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))); gap: 20px; }
  .rail__nav { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
  .rail__btn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; }
  .rail__btn:hover { border-color: var(--ink); }
  .rail__btn:disabled { opacity: .35; cursor: default; }
  .videos > li { width: 360px; }
  .gallery > li { width: 380px; }
  .rail--quotes { margin-top: 32px; }
  .quotes > li { width: 380px; }
  .quote { padding: 28px; }


  .price { grid-template-columns: 1fr 460px; gap: 64px; align-items: center; }
  .price-card { padding: 36px 32px; }

  .faq summary { font-size: 19px; padding: 22px 48px 22px 0; }

  .sticky-cta { display: none; }
  .viewer__nav--prev { left: 24px; }
  .viewer__nav--next { right: 24px; }
  .viewer__close { right: 20px; top: 20px; }
}
