/* ============================================================
   AI Brief Pro — лендинг, дизайн v2

   В этой версии страница строится как маршрут заявки:
   крупная типографика, тонкие правила, короткие списки и один
   визуальный фокус на секцию. Скриншоты показывают продукт, но
   не превращают страницу в последовательность больших галерей.
   ============================================================ */

/* ---------- Шрифты (самохостинг, без внешних CDN) ---------- */
@font-face {
  font-family: "Unbounded";
  src: url("fonts/Unbounded.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Onest";
  src: url("fonts/Onest.ttf") format("truetype");
  font-weight: 400 600;
  font-display: swap;
}

/* ---------- Токены бренда и локальные токены композиции ---------- */
:root {
  --accent: #D97757;
  --accent-deep: #B45A3C;
  --accent-soft: #F8E5DC;
  --canvas: #FAF9F7;
  --surface: #FFFFFF;
  --surface-muted: #F3EFEA;
  --ink: #2A2825;
  --ink-2: #57514B;
  --ink-3: #938D83;
  --line: #E8E5E0;
  --line-2: #F0EDE8;

  --shadow-btn: 0 4px 14px -4px rgba(217, 119, 87, .5);
  --shadow-media: 0 22px 50px -22px rgba(42, 40, 37, .28);
  --shadow-header: 0 2px 12px -6px rgba(42, 40, 37, .12);

  --r-pill: 100px;
  --r-card: 16px;
  --r-field: 12px;
  --font-head: "Unbounded", "Onest", Arial, sans-serif;
  --font-body: "Onest", Arial, sans-serif;
  --container: 1100px;
  --header-h: 68px;
}

/* ---------- Сброс и базовая типографика ---------- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
html {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html, body { min-height: 100%; }
body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.18;
}
h1 {
  max-width: 690px;
  margin-bottom: 22px;
  font-size: clamp(31px, 4.4vw, 50px);
  letter-spacing: -.03em;
}
h2 {
  max-width: 660px;
  margin-bottom: 16px;
  font-size: clamp(25px, 3.2vw, 36px);
  letter-spacing: -.025em;
}
h3 { margin-bottom: 8px; font-size: 18px; }

/* Фокус с клавиатуры должен быть заметен на светлом и тёмном фоне. */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container {
  width: min(100% - 48px, var(--container));
  margin: 0 auto;
}
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  line-height: 1.2;
  text-transform: uppercase;
}
.section { padding: clamp(68px, 8vw, 104px) 0; }
.section--surface { background: var(--surface); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.section--tinted { background: var(--surface-muted); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--accent { background: var(--accent-soft); border-top: 1px solid rgba(180, 90, 60, .18); border-bottom: 1px solid rgba(180, 90, 60, .18); }

.section-intro {
  display: grid;
  gap: 40px;
  margin-bottom: 48px;
}
.section-intro--split {
  grid-template-columns: minmax(0, 1fr) minmax(260px, .68fr);
  align-items: end;
}
.section-intro--process { grid-template-columns: minmax(0, 1.05fr) minmax(250px, .65fr); align-items: end; }
.section-intro--center { display: block; max-width: 680px; margin-right: auto; margin-left: auto; text-align: center; }
.section-intro--center h2 { margin-right: auto; margin-left: auto; }
.section-lead {
  max-width: 460px;
  margin: 0 0 4px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  padding: 12px 24px;
  transition: background .2s, border-color .2s, color .2s, transform .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-btn); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-quiet { border-color: var(--line); background: rgba(255, 255, 255, .5); color: var(--ink); }
.btn-quiet:hover { border-color: var(--accent); background: var(--surface); color: var(--accent-deep); }
.btn-light { background: #fff; color: var(--ink); box-shadow: 0 8px 24px -14px rgba(0, 0, 0, .5); }
.btn-light:hover { background: var(--accent-soft); color: var(--accent-deep); }
.btn-lg { min-height: 48px; padding: 14px 28px; font-size: 15px; }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 13px; }

/* ---------- Логотип и шапка ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
}
.logo-text {
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
}
.header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  height: var(--header-h);
  border-bottom: 1px solid rgba(232, 229, 224, .9);
  background: rgba(255, 255, 255, .9);
  box-shadow: var(--shadow-header);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.header-inner {
  display: flex;
  height: var(--header-h);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-link { color: var(--ink-2); font-size: 14px; font-weight: 600; transition: color .2s; }
.header-link:hover { color: var(--accent-deep); }
.header-cta { min-height: 42px; padding: 10px 20px; }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
}
.burger:hover { background: var(--line-2); }
.burger span { display: block; width: 21px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .25s, opacity .25s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu {
  position: absolute;
  top: calc(var(--header-h) - 8px);
  right: 16px;
  left: 16px;
  display: none;
  padding: 14px;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-media);
}
.mobile-menu--open { display: flex; }
.mobile-menu a:not(.btn) { min-height: 44px; padding: 12px 14px; border-radius: var(--r-pill); color: var(--ink-2); font-size: 15px; font-weight: 600; }
.mobile-menu a:not(.btn):hover { background: var(--line-2); color: var(--ink); }
.mobile-menu .btn { width: 100%; margin-top: 6px; }

/* ---------- Hero ---------- */
.hero {
  padding: calc(var(--header-h) + 72px) 0 76px;
  background:
    radial-gradient(650px 500px at 100% -10%, rgba(248, 229, 220, .75), transparent 72%),
    var(--canvas);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: clamp(42px, 7vw, 88px);
  align-items: center;
}
.hero-copy { max-width: 650px; }
.hero-sub { max-width: 560px; margin: 0 0 30px; color: var(--ink-2); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.hero-note {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .55);
  color: var(--ink-3);
  font-size: 13px;
}
.hero-note-dot, .hero-visual-dot { width: 5px; height: 5px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.hero-note-separator { width: 1px; height: 14px; background: var(--line); }
.hero-visual { display: flex; align-items: center; flex-direction: column; }
.hero-media { width: min(100%, 430px); margin: 0; overflow: hidden; border: 1px solid rgba(232, 229, 224, .95); border-radius: 24px; background: var(--surface); box-shadow: var(--shadow-media); }
.hero-media > a { display: block; cursor: zoom-in; }
.hero-media img { display: block; width: 100%; height: auto; }
.hero-visual-caption { display: flex; align-items: center; gap: 9px; margin-top: 14px; color: var(--ink-3); font-size: 12px; }

/* ---------- Полоса маршрута ---------- */
.signal-bar { border-top: 1px solid #3A3733; border-bottom: 1px solid #3A3733; background: var(--ink); color: var(--canvas); }
.signal-flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; align-items: center; gap: 16px; min-height: 78px; }
.signal-node { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.signal-number { color: var(--accent); font-family: var(--font-head); font-size: 11px; letter-spacing: .04em; }
.signal-node--accent { color: #fff; }
.signal-node--accent .signal-number { color: #F3B49B; }
.signal-arrow { color: #817970; font-size: 18px; text-align: center; }

/* ---------- Проблема ---------- */
.problem-list { max-width: 920px; margin-left: auto; }
.problem-row { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 28px; padding: 27px 0 29px; border-top: 1px solid var(--line); }
.problem-row:last-child { border-bottom: 1px solid var(--line); }
.problem-number { padding-top: 3px; color: var(--accent-deep); font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.problem-row h3 { margin-bottom: 6px; font-size: 19px; }
.problem-row p { max-width: 700px; margin: 0; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.section-callout { max-width: 820px; margin: 30px 0 0 auto; padding-left: 20px; border-left: 3px solid var(--accent); color: var(--ink); font-size: 16px; font-weight: 600; line-height: 1.55; }

/* ---------- Механика ---------- */
.process-section { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-track { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.process-step { min-width: 0; padding: 28px 24px 24px; }
.process-step + .process-step { border-left: 1px solid var(--line); }
.process-step-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.process-number { color: var(--accent-deep); font-family: var(--font-head); font-size: 22px; font-weight: 600; }
.process-kicker { color: var(--ink-3); font-size: 11px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.process-step h3 { margin-bottom: 8px; font-size: 18px; }
.process-step > p { min-height: 74px; margin-bottom: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.process-shot { margin: 22px 0 10px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--surface); }
.process-shot a { display: block; overflow: hidden; }
.process-shot a, .agent-media a, .result-media a, .knowledge-media a, .story-media a { cursor: zoom-in; }
.process-shot img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.process-shot a:hover img { transform: scale(1.025); }
.media-open, .text-link { color: var(--accent-deep); font-size: 12px; font-weight: 600; }
.media-open:hover, .text-link:hover { color: var(--ink); }
.process-note { max-width: 780px; margin: 28px auto 0; color: var(--ink-2); font-size: 15px; text-align: center; }
.process-note strong { color: var(--ink); }

/* ---------- Демо ---------- */
.demo-band { padding: 68px 0; background: var(--ink); color: var(--canvas); }
.demo-band-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; }
.demo-band .eyebrow { color: #F3B49B; }
.demo-band h2 { color: #fff; }
.demo-copy p { max-width: 600px; margin: 0; color: rgba(250, 249, 247, .72); font-size: 16px; line-height: 1.65; }
.demo-action { display: flex; align-items: flex-end; flex-direction: column; gap: 12px; }

/* ---------- ИИ-агент в деле ---------- */
.agent-section { background: var(--surface); }
.agent-layout { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1fr); gap: clamp(48px, 8vw, 100px); align-items: center; }
.agent-media { max-width: 390px; margin: 0 auto; text-align: center; }
.agent-media a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--canvas); box-shadow: var(--shadow-media); }
.agent-media img { display: block; width: 100%; height: auto; }
.agent-media figcaption, .result-media figcaption, .knowledge-media figcaption, .story-media figcaption { margin-top: 12px; color: var(--ink-3); font-size: 12px; line-height: 1.45; }
.agent-side-label { display: block; margin-bottom: 12px; color: var(--ink-3); font-size: 12px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.agent-list { border-top: 1px solid var(--line); }
.agent-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 20px 0 21px; border-bottom: 1px solid var(--line); }
.agent-row-mark { padding-top: 2px; color: var(--accent-deep); font-family: var(--font-head); font-size: 13px; font-weight: 600; }
.agent-row h3 { margin-bottom: 5px; font-size: 17px; }
.agent-row p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.agent-footnote { margin: 22px 0 0; color: var(--ink-3); font-size: 13px; }

/* ---------- Результат ---------- */
.results-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(44px, 8vw, 96px); align-items: center; }
.result-list { margin-top: 32px; border-top: 1px solid var(--line); }
.result-row { display: grid; grid-template-columns: minmax(130px, .7fr) minmax(0, 1fr); gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.result-row strong { color: var(--ink); font-size: 15px; }
.result-row span { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.result-media { max-width: 700px; margin: 0 0 0 auto; }
.result-media a, .knowledge-media a, .story-media a { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-media); }
.result-media img, .knowledge-media img, .story-media img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.result-media a:hover img, .knowledge-media a:hover img, .story-media a:hover img { transform: scale(1.015); }

/* ---------- Для кого ---------- */
.audience-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.audience-row { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 25px 24px 27px 0; border-bottom: 1px solid var(--line); }
.audience-row:nth-child(even) { padding-right: 0; padding-left: 24px; border-left: 1px solid var(--line); }
.audience-number { padding-top: 2px; color: var(--accent-deep); font-family: var(--font-head); font-size: 13px; font-weight: 600; }
.audience-row h3 { margin-bottom: 6px; font-size: 17px; }
.audience-row p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
.audience-callout { margin: 30px 0 0; color: var(--accent-deep); font-size: 15px; font-weight: 600; }

/* ---------- Промежуточный CTA ---------- */
.mid-cta-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(360px, 1.15fr); gap: clamp(42px, 8vw, 100px); align-items: center; }
.mid-cta-section h2 { max-width: 560px; }
.mid-cta-section .section-lead { max-width: 560px; margin-bottom: 24px; }
.mid-cta-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.mid-cta-actions .text-link { min-height: 44px; display: inline-flex; align-items: center; }
.mid-cta-note { display: flex; align-items: center; gap: 8px; margin: 17px 0 0; color: var(--accent-deep); font-size: 12px; font-weight: 600; }
.mid-cta-flow { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; padding: 25px 0; border-top: 1px solid rgba(180, 90, 60, .34); border-bottom: 1px solid rgba(180, 90, 60, .34); }
.mid-cta-flow-item { display: flex; align-items: flex-start; flex-direction: column; gap: 3px; }
.mid-cta-flow-item > span { color: var(--accent-deep); font-family: var(--font-head); font-size: 12px; }
.mid-cta-flow-item strong { font-size: 15px; }
.mid-cta-flow-item small { color: var(--ink-2); font-size: 12px; line-height: 1.35; }
.mid-cta-flow-item--active strong { color: var(--accent-deep); }
.mid-cta-flow-line { height: 1px; background: rgba(180, 90, 60, .48); }

/* ---------- База знаний ---------- */
.knowledge-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr); gap: clamp(42px, 8vw, 96px); align-items: center; }
.knowledge-media { max-width: 640px; margin: 0; }
.knowledge-list { border-top: 1px solid var(--line); }
.knowledge-row { display: flex; align-items: flex-start; flex-direction: column; gap: 6px; padding: 20px 0 21px; border-bottom: 1px solid var(--line); }
.knowledge-row strong { font-size: 16px; }
.knowledge-row span { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* ---------- Сторис ---------- */
.story-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 300px); gap: clamp(48px, 10vw, 130px); align-items: center; }
.story-copy { max-width: 620px; }
.story-list { margin-top: 32px; border-top: 1px solid var(--line); }
.story-row { display: flex; align-items: flex-start; flex-direction: column; gap: 5px; padding: 17px 0 18px; border-bottom: 1px solid var(--line); }
.story-row strong { font-size: 16px; }
.story-row span { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.story-media { width: 100%; max-width: 280px; margin: 0 auto; text-align: center; }

/* ---------- Тарифы ---------- */
.pricing-intro { margin-bottom: 42px; }
.pricing-board { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.price-option { display: flex; min-width: 0; align-items: stretch; flex-direction: column; padding: 30px 34px 32px 0; }
.price-option + .price-option { padding-right: 0; padding-left: 34px; border-left: 1px solid var(--line); }
.price-option--main { border-top: 3px solid var(--accent); }
.price-option--request { border-top: 1px solid var(--line); }
.price-option-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.price-label { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.price-value { color: var(--accent-deep); font-family: var(--font-head); font-size: 27px; font-weight: 600; text-align: right; }
.price-value--small { font-size: 21px; }
.price-description { min-height: 48px; margin: 9px 0 22px; color: var(--ink-3); font-size: 14px; }
.price-list { display: grid; gap: 11px; margin: 0 0 28px; padding: 0; list-style: none; }
.price-list li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 9px; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.price-mark { color: var(--accent-deep); font-weight: 600; }
.price-option .btn { align-self: flex-start; margin-top: auto; }

/* Свёрнутые тарифы: обрез ставит скрипт (~50% высоты доски), маска растворяет
   край в фоне секции, кнопка лежит на границе и по клику открывает доску.
   Обрез сидит на внутренней обёртке .pricing-clamp, чтобы не резать кнопку
   на границе; без JS классы не ставятся — тарифы видны целиком. */
.pricing-collapse { position: relative; }
body:not(.js) .pricing-fade, body:not(.js) .pricing-expand { display: none; }
.pricing-clamp.is-clamped { overflow: hidden; }
.pricing-clamp.is-opening { transition: max-height .45s ease; }
.pricing-fade { position: absolute; right: 0; bottom: 0; left: 0; height: 130px; background: linear-gradient(180deg, rgba(250, 249, 247, 0) 0%, var(--canvas) 82%); pointer-events: none; }
/* Центрирование через left/right + margin auto, а не transform: у .btn:hover
   свой transform, который иначе затирал бы сдвиг -50% и кнопка убегала вбок. */
.pricing-expand { position: absolute; bottom: -19px; right: 0; left: 0; margin-inline: auto; width: max-content; white-space: nowrap; box-shadow: var(--shadow-media); z-index: 2; }
.pricing-collapse.is-open .pricing-fade, .pricing-collapse.is-open .pricing-expand { display: none; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 0; cursor: pointer; list-style: none; font-size: 15px; font-weight: 600; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent-deep); font-size: 22px; font-weight: 400; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item[open] summary { color: var(--accent-deep); }
.faq-answer { max-width: 700px; padding: 0 38px 20px 0; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.faq-answer p { margin: 0; }

/* ---------- Финальный CTA ---------- */
.final-cta { padding: 70px 0; background: var(--ink); color: var(--canvas); }
.final-cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: end; }
.final-cta .eyebrow { color: #F3B49B; }
.final-cta h2 { max-width: 620px; color: #fff; }
.final-cta p { max-width: 550px; margin: 0; color: rgba(250, 249, 247, .72); font-size: 16px; }
.final-actions { display: flex; align-items: flex-end; flex-direction: column; gap: 11px; }
.final-actions > span { color: rgba(250, 249, 247, .55); font-size: 12px; }

/* ---------- Footer, продолжающий графитовую полосу ---------- */
.footer { padding: 38px 0 28px; border-top: 1px solid #3D3935; background: var(--ink); color: var(--canvas); }
.brand--inverse .logo-text { color: #fff; }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 40px; }
.footer-brand p { max-width: 250px; margin: 13px 0 0; color: rgba(250, 249, 247, .5); font-size: 13px; line-height: 1.5; }
.footer-links { display: flex; max-width: 650px; align-items: center; justify-content: flex-end; gap: 18px 24px; flex-wrap: wrap; }
.footer-links a { color: rgba(250, 249, 247, .66); font-size: 13px; transition: color .2s; }
.footer-links a:hover { color: #fff; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 19px; border-top: 1px solid #3D3935; color: rgba(250, 249, 247, .4); font-size: 12px; }

/* ---------- Cookie-плашка ---------- */
.cookie-banner {
  position: fixed;
  z-index: 90;
  right: 20px;
  bottom: 20px;
  left: 20px;
  display: flex;
  max-width: 540px;
  align-items: center;
  gap: 14px;
  margin: 0 auto;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-media);
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.5;
  transition: opacity .3s, transform .3s;
}
.cookie-banner > span { min-width: 0; }
.cookie-banner a { color: var(--accent-deep); text-decoration: underline; }
.cookie-banner .btn { flex: 0 0 auto; }
.cookie-banner--hidden { opacity: 0; pointer-events: none; transform: translateY(12px); }

/* ---------- Просмотр кадров поверх страницы ---------- */
html.lightbox-open, body.lightbox-open { overflow: hidden; }
.lightbox { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.lightbox-backdrop { position: absolute; inset: 0; background: rgba(20, 18, 16, .84); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
.lightbox-dialog { position: relative; z-index: 1; display: grid; width: min(100%, 1220px); max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); grid-template-rows: auto minmax(0, 1fr); padding: 8px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 18px; background: rgba(42, 40, 37, .97); box-shadow: 0 28px 80px -28px rgba(0, 0, 0, .75); }
.lightbox-head { display: flex; min-height: 44px; align-items: center; justify-content: flex-end; }
.lightbox-close { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .2); border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; font-size: 28px; font-weight: 400; line-height: 1; transition: background .2s, transform .2s; }
.lightbox-close:hover { background: var(--accent); transform: rotate(90deg); }
.lightbox-content { display: grid; min-height: 0; place-items: center; overflow: auto; padding: 4px; }
.lightbox-content img { display: block; max-width: 100%; max-height: calc(100vh - 100px); max-height: calc(100dvh - 100px); width: auto; height: auto; border-radius: 10px; object-fit: contain; }

/* ---------- Правовые страницы ---------- */
.legal-container { max-width: 820px; padding-top: calc(var(--header-h) + 42px); padding-bottom: 72px; }
.legal-nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 22px; color: var(--accent-deep); font-size: 13px; font-weight: 600; }
.legal-nav a { text-decoration: underline; text-decoration-color: rgba(180, 90, 60, .35); text-underline-offset: 3px; }
.legal-nav a:hover { text-decoration-color: currentColor; }
.legal-document { padding: clamp(26px, 5vw, 46px) clamp(22px, 5vw, 54px); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); box-shadow: var(--shadow-media); }
.legal-header { padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.legal-header h1 { max-width: 680px; margin-bottom: 14px; overflow-wrap: anywhere; }
.legal-lead { max-width: 640px; margin: 0 0 8px; color: var(--ink-2); font-size: 16px; line-height: 1.6; }
.legal-meta { margin: 0; color: var(--ink-3); font-size: 13px; }
.legal-document section { margin-top: 34px; }
.legal-document h2 { max-width: none; margin-bottom: 13px; font-size: clamp(20px, 2.5vw, 26px); }
.legal-document p, .legal-document li { color: var(--ink-2); font-size: 15px; line-height: 1.7; }
.legal-document p { margin-bottom: 12px; }
.legal-document p:last-child { margin-bottom: 0; }
.legal-document ul { display: grid; gap: 8px; margin: 0 0 14px; padding-left: 22px; }
.legal-document li::marker { color: var(--accent); }
.legal-document a { color: var(--accent-deep); text-decoration: underline; text-decoration-color: rgba(180, 90, 60, .35); text-underline-offset: 3px; }
.legal-document a:hover { text-decoration-color: currentColor; }

/* Reveal используется только на отдельных смысловых группах. При отключённом
   JS или ошибке загрузки скрипта контент всё равно остаётся видимым. */
body.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease; }
body.js .reveal--in { opacity: 1; transform: none; }

/* ---------- Планшет и мобильный ---------- */
@media (max-width: 900px) {
  .header-nav, .header-inner > .btn { display: none; }
  .burger { display: flex; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(270px, 360px); gap: 40px; }
  .section-intro--split, .section-intro--process { grid-template-columns: 1fr; gap: 12px; align-items: start; }
  .section-intro { margin-bottom: 38px; }
  .agent-layout { grid-template-columns: minmax(280px, .75fr) minmax(0, 1fr); gap: 42px; }
  .results-layout { grid-template-columns: 1fr 1fr; gap: 38px; }
  .mid-cta-layout { grid-template-columns: 1fr 1fr; gap: 38px; }
  .knowledge-layout { grid-template-columns: 1fr 1fr; gap: 38px; }
  .story-layout { grid-template-columns: minmax(0, 1fr) 250px; gap: 42px; }
  .demo-band-inner, .final-cta-inner { gap: 32px; }
  .signal-flow { gap: 10px; }
  .signal-node { gap: 7px; font-size: 13px; }
  .process-step { padding-right: 18px; padding-left: 18px; }
  .process-step > p { min-height: 96px; }
}

@media (max-width: 780px) {
  .container { width: min(100% - 36px, var(--container)); }
  .hero-grid, .agent-layout, .results-layout, .mid-cta-layout, .knowledge-layout, .story-layout, .demo-band-inner, .final-cta-inner { grid-template-columns: 1fr; }
  .hero-grid { gap: 40px; }
  .hero-copy { max-width: none; }
  .hero-media { max-width: 390px; }
  .hero-visual { align-items: flex-start; }
  .hero-visual-caption { margin-left: 4px; }
  .demo-action, .final-actions { align-items: flex-start; }
  .agent-media { max-width: 350px; margin-right: auto; margin-left: auto; }
  .result-media, .knowledge-media { max-width: 700px; margin-right: auto; margin-left: auto; }
  .knowledge-media { order: 2; }
  .knowledge-list { order: 1; }
  .story-media { max-width: 270px; }
  .process-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step:nth-child(3) { grid-column: 1 / -1; border-top: 1px solid var(--line); }
  .process-step:nth-child(3) > p { min-height: auto; }
  .footer-top { align-items: flex-start; flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}

@media (max-width: 600px) {
  h1 { margin-bottom: 18px; font-size: clamp(30px, 8.3vw, 34px); }
  h2 { font-size: clamp(24px, 7vw, 29px); }
  h3 { font-size: 17px; }
  .section { padding: 56px 0; }
  .section--surface, .section--tinted, .section--accent { border-top-width: 1px; border-bottom-width: 1px; }
  .section-intro { margin-bottom: 32px; }
  .section-lead { font-size: 15px; }
  .hero { padding: calc(var(--header-h) + 38px) 0 56px; }
  .hero-sub { margin-bottom: 24px; font-size: 16px; }
  .hero-actions, .final-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn, .final-actions .btn { width: 100%; }
  .hero-note { width: 100%; justify-content: center; font-size: 12px; }
  .hero-visual { align-items: center; }
  .hero-visual-caption { margin-left: 0; }
  .signal-flow { grid-template-columns: 1fr 1fr; gap: 0; padding: 13px 0; }
  .signal-node { min-height: 31px; justify-content: flex-start; font-size: 12px; }
  .signal-arrow { display: none; }
  .problem-row { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding: 22px 0 24px; }
  .problem-number { font-size: 13px; }
  .problem-row h3 { font-size: 17px; }
  .problem-row p { font-size: 14px; }
  .section-callout { margin-top: 24px; padding-left: 14px; font-size: 14px; }
  .process-track { grid-template-columns: 1fr; }
  .process-step, .process-step:nth-child(3) { padding: 25px 0 27px; border-top: 1px solid var(--line); border-left: 0; }
  .process-step:first-child { border-top: 0; }
  .process-step > p { min-height: 0; }
  .process-shot { max-width: 470px; margin-top: 18px; }
  .process-note { margin-top: 24px; font-size: 14px; }
  .demo-band { padding: 56px 0; }
  .demo-band h2 { margin-bottom: 12px; }
  .demo-copy p { font-size: 15px; }
  .agent-layout { gap: 36px; }
  .agent-media { max-width: 310px; }
  .agent-row { grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 17px 0 18px; }
  .agent-row h3 { font-size: 16px; }
  .agent-row p { font-size: 14px; }
  .result-list { margin-top: 26px; }
  .result-row { grid-template-columns: 1fr; gap: 3px; padding: 15px 0; }
  .audience-list { grid-template-columns: 1fr; }
  .audience-row, .audience-row:nth-child(even) { grid-template-columns: 40px minmax(0, 1fr); gap: 13px; padding: 20px 0 21px; border-left: 0; }
  .audience-row h3 { font-size: 16px; }
  .audience-row p { font-size: 14px; }
  .mid-cta-actions { align-items: stretch; flex-direction: column; }
  .mid-cta-actions .btn { width: 100%; }
  .mid-cta-flow { grid-template-columns: 1fr; gap: 13px; padding: 20px 0; }
  .mid-cta-flow-line { width: 34px; height: 1px; margin-left: 1px; }
  .knowledge-layout { gap: 30px; }
  .knowledge-row { padding: 16px 0 17px; }
  .story-layout { gap: 32px; }
  .story-media { order: 2; }
  .story-copy { order: 1; }
  .pricing-board { grid-template-columns: 1fr; }
  .price-option, .price-option + .price-option { padding: 25px 0 28px; }
  .price-option + .price-option { border-top: 1px solid var(--line); border-left: 0; }
  .price-option-head { align-items: flex-start; flex-direction: column; gap: 7px; }
  .price-value, .price-value--small { font-size: 25px; text-align: left; }
  .price-description { min-height: 0; margin-top: 4px; }
  .faq-item summary { min-height: 60px; font-size: 14px; }
  .faq-answer { padding-right: 25px; font-size: 14px; }
  .final-cta { padding: 56px 0; }
  .final-cta p { font-size: 15px; }
  .footer { padding-top: 32px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 28px; }
  .cookie-banner { right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); left: 12px; align-items: stretch; flex-direction: column; gap: 10px; padding: 14px; }
  .cookie-banner .btn { width: 100%; }
  .lightbox { padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
  .lightbox-dialog { max-height: calc(100vh - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; }
  .lightbox-content img { max-height: calc(100vh - 82px); max-height: calc(100dvh - 82px); border-radius: 8px; }
  .legal-container { padding-top: calc(var(--header-h) + 28px); padding-bottom: 48px; }
  .legal-nav { align-items: flex-start; flex-direction: column; gap: 9px; }
  .legal-document { padding: 24px 18px 30px; }
  .legal-document section { margin-top: 28px; }
  .legal-document p, .legal-document li { font-size: 14px; line-height: 1.65; }
}

/* ---------- Motion: отключение ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  body.js .reveal { opacity: 1; transform: none; }
}
