/* =========================================================
   Продажио — дизайн v2 (вариант C: Нейтраль)
   Layout: fixed sidebar + big-window (rounded, inset) + scroll-snap stage
   ========================================================= */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }

/* ---------- Токены ---------- */
:root {
  --yellow: #FFE600;
  --sidebar-w: 260px;
  --win-inset: 18px;
  --win-r: 28px;
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Цвета (вариант C — Нейтраль) */
  --sidebar-bg: #F5F2EC;
  --sidebar-border: #E4E0D6;
  --win-outer: #ECEAE4;
  --win-bg: #FFFFFF;
  --ink: #2B2D33;
  --ink-soft: #6A6D77;
  --ink-faint: #A5A8B2;
  --line: #E8E4DC;
  --line-strong: #D6D1C6;
  --card-bg: #FFFFFF;
  --card-border: #DDD9D0;
  --card-shadow: none;
  --card-r: 10px;
  --head-weight: 700;
  --head-spacing: -0.02em;
  --head-leading: 1.06;
  --screen-pad-x: clamp(36px, 5vw, 72px);
  --screen-pad-y: clamp(32px, 5vh, 56px);
  --anim-in: none;
  --sb-active-bg: #E4E0D6;
  --sb-item-color: var(--ink-soft);
}

/* =================== BASE =================== */
html { height: 100%; }
body {
  height: 100%; min-height: 100svh;
  font-family: var(--font-body);
  background: var(--win-outer);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-spacing);
  line-height: var(--head-leading);
  color: var(--ink);
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ink-faint); display: inline-flex; align-items: center; gap: 9px;
}
.eyebrow::before { content: ""; width: 16px; height: 2px; background: var(--yellow); display: inline-block; }
.mark { box-shadow: inset 0 -0.3em 0 var(--yellow); }

/* =================== SIDEBAR =================== */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w); z-index: 50;
  background: var(--sidebar-bg); border-right: 1px solid var(--sidebar-border);
  display: flex; flex-direction: column; overflow: hidden;
}
.sb-logo { padding: 14px 20px 6px; display: flex; justify-content: center; }
.sb-logo a { display: block; line-height: 0; }
.sb-logo img { width: auto; max-width: 130px; height: auto; max-height: 130px; object-fit: contain; }
.sb-menu { flex: 1; padding: 6px 12px; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.sb-menu::-webkit-scrollbar { width: 3px; }
.sb-menu::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 3px; }
.sb-label { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; padding: 10px 12px 2px; }
.sb-item {
  display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  padding: 8px 12px; border-radius: 10px; font-size: 14px; font-weight: 500;
  color: var(--sb-item-color); transition: background .18s ease, color .18s ease;
  position: relative;
}
.sb-item:hover { background: color-mix(in srgb, var(--sb-active-bg) 60%, transparent); color: var(--ink); }
.sb-item.active { background: var(--sb-active-bg); color: var(--ink); font-weight: 600; }
.sb-item.active::before {
  content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px;
  width: 3px; background: var(--yellow); border-radius: 0 3px 3px 0;
}
.sb-foot { padding: 12px 16px 16px; border-top: 1px solid var(--sidebar-border); }
.sb-cta {
  display: flex; align-items: center; justify-content: center; width: 100%;
  background: var(--ink); color: #fff; font-weight: 600; font-size: 13.5px;
  padding: 12px; border-radius: 6px; gap: 6px;
  transition: transform .18s ease, opacity .18s ease;
}
.sb-cta:hover { transform: translateY(-1px); opacity: .92; }
.sb-contact { display: flex; gap: 8px; margin-top: 10px; }
.sb-contact a {
  flex: 1; text-align: center; font-size: 12px; color: var(--sb-item-color);
  padding: 7px 4px; border: 1px solid var(--sidebar-border); border-radius: 8px;
  transition: border-color .18s ease, color .18s ease;
}
.sb-contact a:hover { border-color: var(--ink); color: var(--ink); }

/* =================== BIG WINDOW + STAGE =================== */
.stage-outer {
  position: fixed;
  top: var(--win-inset); right: var(--win-inset);
  bottom: var(--win-inset); left: calc(var(--sidebar-w) + var(--win-inset));
  z-index: 40;
}
.big-window {
  width: 100%; height: calc(100svh - 2 * var(--win-inset));
  border-radius: var(--win-r);
  background: var(--win-bg);
  overflow: hidden;
  position: relative;
}
.stage {
  width: 100%; height: 100%;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}
.stage::-webkit-scrollbar { width: 0; }
.screen {
  height: calc(100svh - 2 * var(--win-inset));
  scroll-snap-align: start; scroll-snap-stop: always;
  padding: var(--screen-pad-y) var(--screen-pad-x);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
}
.screen.is-active .anim { animation: var(--anim-in); }
.screen.is-active .anim[data-d="1"] { animation-delay: .06s; }
.screen.is-active .anim[data-d="2"] { animation-delay: .12s; }
.screen.is-active .anim[data-d="3"] { animation-delay: .18s; }
.screen.is-active .anim[data-d="4"] { animation-delay: .24s; }

/* =================== ANIMATIONS =================== */
@keyframes fadePure { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeRise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .anim { animation: none !important; } }

/* =================== CARDS =================== */
.card {
  background: var(--card-bg); border-radius: var(--card-r);
  border: 1px solid var(--card-border); box-shadow: var(--card-shadow);
  padding: clamp(22px, 3vw, 40px); position: relative; overflow: hidden;
}

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  padding: 13px 22px; border-radius: 6px;
  transition: transform .16s ease, box-shadow .16s ease, background .18s ease;
  white-space: nowrap; line-height: 1;
}
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 28px color-mix(in srgb, var(--ink) 30%, transparent); }
.btn-ghost { border: 1.5px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(255,230,0,.4); }

/* =================== ТИПОГРАФИКА СЕКЦИЙ =================== */
.screen-head { margin-bottom: clamp(20px, 3vh, 36px); }
.screen-head .eyebrow { margin-bottom: 14px; }
.screen-head h2 { font-size: clamp(26px, 3.2vw, 44px); }
.screen-head p { margin-top: 14px; color: var(--ink-soft); font-size: clamp(15px, 1.4vw, 18px); max-width: 56ch; }

/* =================== HERO (s1) =================== */
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 52px); align-items: center; }
.h1 {
  font-family: var(--font-head); font-weight: var(--head-weight);
  letter-spacing: var(--head-spacing); line-height: var(--head-leading);
  font-size: clamp(30px, 3.8vw, 54px); color: var(--ink); text-wrap: balance;
}
.hero-lead { margin-top: clamp(14px, 1.6vh, 22px); font-size: clamp(15px, 1.4vw, 18px); color: var(--ink-soft); max-width: 46ch; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(18px, 2.4vh, 28px); }
.hero-trust { display: flex; gap: 22px 36px; margin-top: clamp(16px, 2.2vh, 28px); flex-wrap: wrap; }
.ht b { display: block; font-family: var(--font-head); font-weight: var(--head-weight); font-size: clamp(20px, 2.2vw, 28px); letter-spacing: -.02em; color: var(--ink); }
.ht span { font-size: 12px; color: var(--ink-faint); }

/* demo widget */
.demo { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--card-r); padding: 18px; }
.demo-top { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.demo-top .lab { font-family: var(--font-mono); font-size: 11px; color: var(--ink-faint); }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px color-mix(in srgb, var(--yellow) 28%, transparent); }
.demo-row { display: flex; align-items: center; gap: 11px; padding: 10px 0; }
.demo-row + .demo-row { border-top: 1px dashed var(--line); }
.demo-row .di { width: 34px; height: 34px; border-radius: 8px; background: color-mix(in srgb, var(--yellow) 14%, var(--win-bg)); display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.demo-row .dt b { display: block; font-size: 13px; font-weight: 600; }
.demo-row .dt span { font-size: 11.5px; color: var(--ink-faint); }
.demo-row .dv { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--yellow) 72%, var(--ink)); margin-left: auto; }
/* Dark variant for hero demo */
.demo--dark { background: #2B2D33 !important; border-color: #3A3D44 !important; }
.demo--dark .demo-top { border-color: rgba(255,255,255,0.08); }
.demo--dark .demo-top .lab { color: rgba(255,255,255,0.4); }
.demo--dark .demo-row + .demo-row { border-color: rgba(255,255,255,0.07); }
.demo--dark .demo-row .di { background: rgba(255,230,0,0.12); }
.demo--dark .demo-row .dt b { color: #fff; }
.demo--dark .demo-row .dt span { color: rgba(255,255,255,0.4); }
.demo--dark .demo-row .dv { color: var(--yellow); }

/* =================== ПОТЕРИ (s2) =================== */
.loss-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.loss {
  padding: 18px 20px; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--card-r); transition: transform .18s ease;
  display: flex; flex-direction: column; gap: 10px;
}
.loss:hover { transform: translateY(-2px); }
.loss .ln { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--yellow); letter-spacing: .04em; }
.loss p { font-size: 14.5px; line-height: 1.45; color: var(--ink); }
.loss.loss--accent { background: var(--ink); border-color: var(--ink); }
.loss.loss--accent .ln { color: var(--yellow); }
.loss.loss--accent p { color: #fff; font-weight: 600; font-size: 15px; }

/* =================== ЧТО ВНЕДРЯЕМ (s3) =================== */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.feat {
  padding: 20px 22px; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--card-r); transition: transform .18s ease;
  position: relative; overflow: hidden;
}
.feat:hover { transform: translateY(-3px); }
.feat::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  transition: transform .3s ease;
}
.feat:hover::before { transform: scaleX(1); }
.fi { width: 42px; height: 42px; border-radius: 6px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; margin-bottom: 14px; flex-shrink: 0; }
.feat h3 { font-size: clamp(15px, 1.4vw, 17px); margin-bottom: 6px; font-family: var(--font-head); font-weight: var(--head-weight); letter-spacing: var(--head-spacing); }
.feat p { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.feat--wide { grid-column: span 2; display: flex; gap: 18px; align-items: center; background: var(--ink); border-color: var(--ink); }
.feat--wide:hover { transform: translateY(-3px); background: var(--ink); }
.feat--wide .fi { background: var(--yellow); color: var(--ink); margin: 0; width: 50px; height: 50px; flex-shrink: 0; }
.feat--wide h3, .feat--wide p { color: #fff; }
.feat--wide p { color: #B7B9C2; }

/* =================== РЕЗУЛЬТАТЫ (s4) =================== */
.metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric {
  padding: 26px 28px; background: var(--ink); border: 1px solid var(--ink);
  border-radius: var(--card-r); transition: background .2s ease;
}
.metric .ml { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); margin-bottom: 16px; }
.metric .big { font-family: var(--font-head); font-weight: 800; font-size: clamp(36px, 4.2vw, 52px); line-height: 1; letter-spacing: -.04em; color: #fff; }
.metric .big small { font-size: .42em; color: #B7B9C2; font-weight: 600; letter-spacing: 0; }
.metric .flow { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--yellow); }
.metric .md { margin-top: 10px; color: #B7B9C2; font-size: 13.5px; line-height: 1.45; }

/* =================== ЭТАПЫ (s5) =================== */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.step {
  padding: 20px; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--card-r); transition: transform .18s ease;
}
.step:hover { transform: translateY(-2px); }
.step .sn { font-family: var(--font-head); font-weight: 800; font-size: 24px; color: var(--ink); line-height: 1; margin-bottom: 10px; letter-spacing: -.02em; }
.step h3 { font-size: 15px; margin-bottom: 6px; font-family: var(--font-head); font-weight: var(--head-weight); }
.step p { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }

/* =================== ЭКСПЕРТ (s6) =================== */
.expert-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.expert-photo { position: relative; }
.expert-photo img { width: 100%; border-radius: var(--card-r); object-fit: cover; aspect-ratio: 3/4; background: var(--card-bg); }
.ep-badge { position: absolute; bottom: 0; left: 0; right: 0; background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 0 0 var(--card-r) var(--card-r); font-weight: 700; font-size: 12px; line-height: 1.3; text-align: center; }
.expert-name { font-size: clamp(24px, 3vw, 38px); margin-top: 14px; }
.expert-role { color: var(--ink-soft); font-size: 15px; margin-top: 6px; }
.expert-list { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.expert-list li { display: flex; gap: 10px; font-size: 13.5px; line-height: 1.4; }
.expert-list li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--yellow); margin-top: 7px; flex-shrink: 0; }
.expert-cta { margin-top: 20px; }

/* =================== AMOCRM ПАРТНЁР (s7) =================== */
.amocrm-wrap { display: flex; flex-direction: column; gap: clamp(20px, 3vh, 32px); }
.amocrm-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.amocrm-cert-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink); padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 13px; margin-top: 18px; margin-bottom: 20px; }
.amocrm-services { display: grid; gap: 10px; }
.amocrm-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--card-r); font-size: 15px; font-weight: 500;
  transition: transform .16s ease;
}
.amocrm-item:hover { transform: translateX(4px); }
.ai-ico {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--yellow); color: var(--ink);
  display: grid; place-items: center; flex-shrink: 0; font-weight: 700; font-size: 16px;
}
.partner-logos { border-top: 1px solid var(--line); padding-top: clamp(16px, 2.5vh, 24px); }
.partner-logos-label { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-bottom: 16px; }
.partner-logos-row { display: flex; align-items: center; gap: clamp(20px, 3vw, 40px); flex-wrap: wrap; }
.partner-logos-row img { height: 28px; width: auto; opacity: 0.55; filter: grayscale(100%); transition: opacity .2s ease, filter .2s ease; object-fit: contain; }
.partner-logos-row img:hover { opacity: 1; filter: none; }

/* =================== FAQ КОМПАКТНЫЙ (s8) =================== */
.faq-compact { max-width: 900px; }
.faq-compact-item {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 20px 36px;
  padding: 15px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.faq-compact-q { font-size: 14.5px; font-weight: 600; line-height: 1.4; }
.faq-compact-a { font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }

/* =================== КОНТАКТЫ (s9) =================== */
.contacts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 52px); align-items: start; }
.contacts-left h2 { font-size: clamp(26px, 3.2vw, 40px); }
.contacts-left p { margin-top: 14px; color: var(--ink-soft); font-size: 15.5px; max-width: 36ch; }
.contacts-left .legal { margin-top: 22px; display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink-faint); }
.contacts-left .copyright { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-faint); }
.cmethods { display: grid; gap: 10px; }
.cm {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; background: var(--card-bg); border: 1px solid var(--card-border);
  border-radius: var(--card-r); transition: transform .16s ease;
}
.cm:hover { transform: translateX(3px); }
.cm .ci { width: 40px; height: 40px; border-radius: 10px; background: var(--win-bg); border: 1px solid var(--line); display: grid; place-items: center; font-size: 17px; flex-shrink: 0; color: var(--ink); }
.cm .ci--tg { background: #229ED9; border-color: #229ED9; color: #fff; }
.cm .ci--wa { background: #25D366; border-color: #25D366; color: #fff; }
.cm .ct { flex: 1; min-width: 0; }
.cm .ct b { display: block; font-size: 14.5px; font-weight: 600; }
.cm .ct span { font-size: 12px; color: var(--ink-faint); }
.cm .ca { color: var(--ink-faint); transition: transform .18s ease, color .18s ease; }
.cm:hover .ca { transform: translateX(3px); color: var(--ink); }

/* =================== COOKIE BANNER =================== */
.cookie-banner {
  position: fixed; right: 20px; bottom: 20px; max-width: 360px;
  background: #ffffff; color: #000;
  padding: 20px 20px 16px; border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0,0,0,.25);
  font-size: 13px; line-height: 1.5; z-index: 1200;
  display: none; opacity: 0; transform: translateY(12px);
  transition: opacity .25s ease-out, transform .25s ease-out;
}
.cookie-banner--visible { display: block; opacity: 1; transform: translateY(0); }
.cookie-banner__text { margin-bottom: 12px; }
.cookie-banner__actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.cookie-banner__link { font-size: 12px; color: #111; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; background: none; border: none; padding: 0; }
.cookie-banner__accept { padding: 8px 16px; border-radius: 999px; border: none; cursor: pointer; background: #000; color: #fff; font-size: 13px; font-weight: 500; font-family: var(--font-body); white-space: nowrap; }
.cookie-banner__close { background: none; border: none; cursor: pointer; font-size: 16px; line-height: 1; padding: 0 0 0 4px; color: #555; }

/* =================== PRIVACY MODAL =================== */
.privacy-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.45);
  display: none; align-items: center; justify-content: center;
  z-index: 1300; opacity: 0; transition: opacity .25s ease-out;
}
.privacy-overlay--visible { display: flex; opacity: 1; }
.privacy-modal {
  background: #ffffff; border-radius: 16px; max-height: 90vh; width: 50vw;
  padding: 32px; box-shadow: 0 24px 80px rgba(0,0,0,.35);
  display: flex; flex-direction: column;
  transform: scale(.95); opacity: 0;
  transition: opacity .25s ease-out, transform .25s ease-out;
}
.privacy-modal--visible { transform: scale(1); opacity: 1; }
.privacy-modal__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.privacy-modal__title { font-size: 20px; font-family: var(--font-head); }
.privacy-modal__close { background: none; border: none; cursor: pointer; font-size: 20px; line-height: 1; color: #000; }
.privacy-modal__body { font-size: 14px; line-height: 1.6; overflow-y: auto; padding-right: 8px; font-family: var(--font-body); }
.privacy-modal__body h3 { font-size: 16px; margin-top: 16px; margin-bottom: 8px; }
.privacy-modal__body p, .privacy-modal__body ul { margin-bottom: 12px; }
.privacy-modal__body ul { padding-left: 18px; list-style: disc; }
.privacy-modal__footer { margin-top: 16px; padding-top: 12px; position: sticky; bottom: 0; background: linear-gradient(to top, #ffffff 65%, rgba(255,255,255,.85)); }
.privacy-modal__close-btn { width: 100%; border: none; border-radius: 999px; padding: 12px 18px; background: #000; color: #fff; font-size: 14px; font-weight: 500; cursor: pointer; font-family: var(--font-body); }

/* =================== PAGE-FLOW (amocrm.html) =================== */
body.page-flow { overflow: auto; }
body.page-flow .stage-outer {
  position: static;
  margin-left: var(--sidebar-w);
  background: var(--win-outer);
  min-height: 100vh;
  padding: var(--win-inset);
}
body.page-flow .big-window { border-radius: var(--win-r); height: auto; }
body.page-flow .stage { height: auto; overflow: visible; scroll-snap-type: none; }
body.page-flow .screen {
  height: auto; min-height: 0;
  scroll-snap-align: none; scroll-snap-stop: unset;
  overflow: visible;
  padding: clamp(48px, 6vh, 80px) clamp(36px, 5vw, 72px);
}
body.page-flow .screen:first-child { padding-top: clamp(56px, 7vh, 96px); }

/* Хлебные крошки */
.breadcrumb { font-size: 13px; color: var(--ink-faint); margin-bottom: 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-faint); transition: color .15s; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span { color: var(--ink-soft); }

/* =================== ДЕМО (/demo) =================== */
.demo-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: center; }
.demo-points { display: grid; gap: 12px; margin-top: 20px; }
.demo-point { display: flex; gap: 12px; align-items: flex-start; }
.demo-point .dp-ico { width: 34px; height: 34px; border-radius: 8px; background: var(--ink); color: var(--yellow); display: grid; place-items: center; flex-shrink: 0; font-size: 16px; font-weight: 700; }
.demo-point b { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 2px; }
.demo-point p { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }

.shot { position: relative; border: 1.5px dashed var(--line-strong); border-radius: var(--card-r); background: color-mix(in srgb, var(--yellow) 5%, var(--win-bg)); aspect-ratio: 16 / 10; display: grid; place-items: center; padding: 24px; text-align: center; overflow: hidden; }
.shot .sh-lab { font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint); line-height: 1.55; max-width: 32ch; }
.shot .sh-lab b { display: block; color: var(--ink-soft); font-size: 13px; margin-bottom: 6px; }
.shot .sh-ico { font-size: 26px; margin-bottom: 12px; opacity: .5; }
.shot img, .shot video { width: 100%; height: 100%; object-fit: cover; border-radius: var(--card-r); }

.pipeline-flow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 22px; }
.pipeline-flow .pf-stage { background: var(--win-bg); border: 1px solid var(--card-border); border-radius: 999px; padding: 7px 14px; font-size: 13px; font-weight: 600; color: var(--ink); }
.pipeline-flow .pf-stage.is-win { background: var(--ink); color: #fff; border-color: var(--ink); }
.pipeline-flow .pf-arr { color: var(--ink-faint); font-size: 13px; }

.auto-table { width: 100%; border-collapse: collapse; margin-top: 6px; }
.auto-table th, .auto-table td { text-align: left; padding: 12px 14px; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.auto-table th { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 600; }
.auto-table td:first-child { font-weight: 600; color: var(--ink); white-space: nowrap; }
.auto-table tr:last-child td { border-bottom: none; }

.chan-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chan-tags span { background: var(--win-bg); border: 1px solid var(--card-border); border-radius: 999px; padding: 6px 13px; font-size: 12.5px; font-weight: 500; color: var(--ink-soft); }

.fact-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0 22px; }
.fact { background: var(--win-bg); border: 1px solid var(--card-border); border-radius: var(--card-r); padding: 14px 18px; }
.fact b { display: block; font-family: var(--font-head); font-weight: 800; font-size: clamp(16px, 1.8vw, 22px); color: var(--ink); line-height: 1.1; }
.fact span { font-size: 12.5px; color: var(--ink-soft); line-height: 1.3; }

.budget-badge { display: inline-flex; align-items: center; gap: 8px; background: var(--yellow); color: var(--ink); padding: 10px 18px; border-radius: 10px; font-weight: 700; font-size: 14px; margin-top: 18px; }

/* Video clip player (/demo) */
.yt-wrap { position: relative; border-radius: var(--card-r); overflow: hidden; aspect-ratio: 16 / 9; background: #111; }
.yt-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-overlay { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.yt-toggle { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.92); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 3px 16px rgba(0,0,0,.35); transition: transform .16s ease, opacity .25s ease; flex-shrink: 0; }
.yt-toggle:hover { transform: scale(1.1); }
.yt-toggle svg { pointer-events: none; }
.yt-wrap.is-playing .yt-toggle { opacity: 0; }
.yt-wrap.is-playing:hover .yt-toggle { opacity: 1; }
.yt-restart { position: absolute; bottom: 10px; left: 10px; display: flex; align-items: center; gap: 5px; background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 5px; padding: 5px 10px; font-size: 11.5px; font-family: var(--font-body); font-weight: 500; cursor: pointer; opacity: 0; transition: opacity .2s; line-height: 1; }
.yt-wrap:hover .yt-restart { opacity: 1; }
.yt-speed { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.55); color: #fff; border: none; border-radius: 5px; padding: 5px 10px; font-size: 11.5px; font-family: var(--font-body); font-weight: 600; cursor: pointer; opacity: 0; transition: opacity .2s, background .15s; line-height: 1; }
.yt-wrap:hover .yt-speed { opacity: 1; }
.yt-speed.is-fast { background: var(--yellow); color: var(--ink); }

/* Dense variant for screens with many items (d2, d4 on /demo) */
.screen--dense .loss { padding: 10px 14px; gap: 6px; }
.screen--dense .loss-grid { gap: 8px; }
.screen--dense .screen-head { margin-bottom: clamp(10px, 1.5vh, 18px); }

/* Agenda card (d1 on /demo) */
.agenda-card { background: var(--ink); border: 1px solid var(--ink); border-radius: var(--card-r); padding: 20px 24px; }
.agenda-card-title { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .1em; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 14px; }
.agenda-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.agenda-item { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.agenda-item:nth-last-child(-n+2) { border-bottom: none; }
.agenda-item .ai-n { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--yellow); min-width: 18px; padding-top: 3px; flex-shrink: 0; }
.agenda-item .ai-t { font-size: 13.5px; font-weight: 500; color: #fff; line-height: 1.35; }
.agenda-item .ai-sub { display: block; font-size: 11.5px; color: rgba(255,255,255,.45); font-weight: 400; margin-top: 2px; }

/* =================== BLOG =================== */
:root:has(.blog-page) { height: auto; }
.blog-page { height: auto; overflow: auto; }
.blog-page .stage-outer { position: static; margin: var(--win-inset) var(--win-inset) var(--win-inset) calc(var(--sidebar-w) + var(--win-inset)); }
.blog-page .big-window { height: auto; min-height: calc(100vh - 2 * var(--win-inset)); overflow: visible; }
.blog-page .stage { height: auto; overflow: visible; scroll-snap-type: none; }
.blog-page .screen { height: auto; min-height: 0; scroll-snap-align: none; overflow: visible; justify-content: flex-start; padding-top: clamp(40px, 6vh, 72px); }

.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.blog-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--card-r); padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: inherit; transition: border-color .2s; }
.blog-card:hover { border-color: var(--ink-soft); }
a.blog-card:hover .blog-card-title { text-decoration: underline; }
.blog-card-top { display: flex; align-items: center; gap: 10px; }
.blog-tag { background: var(--yellow); color: var(--ink); font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 4px; font-family: var(--font-mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; text-decoration: none; }
a.blog-tag:hover { opacity: .8; }
.blog-tag--secondary { background: var(--card-bg); border: 1px solid var(--card-border); color: var(--ink-soft); }
.blog-date { font-size: 12px; color: var(--ink-faint); }
.blog-card-title { font-family: var(--font-head); font-weight: 700; font-size: clamp(14px, 1.15vw, 17px); color: var(--ink); line-height: 1.3; flex: 1; }
.blog-card-desc { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }
.blog-card-link { font-size: 13px; font-weight: 600; color: var(--ink); margin-top: 4px; }
.blog-card--stub { opacity: .55; pointer-events: none; }
.blog-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 28px; font-weight: 600; font-size: 14.5px; color: var(--ink); border-bottom: 2px solid var(--yellow); padding-bottom: 3px; text-decoration: none; }
.blog-more:hover { border-color: var(--ink); }

/* Article page */
.article-wrap { max-width: 760px; margin: 0 auto; }
.article-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-faint); margin-bottom: 22px; flex-wrap: wrap; }
.article-breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.article-breadcrumb a:hover { color: var(--ink); }
.article-breadcrumb-sep { color: var(--line-strong); }
.article-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 20px; }
.article-cover { width: 100%; aspect-ratio: 16/9; border-radius: var(--card-r); background: var(--win-outer); border: 1px solid var(--card-border); margin: 0 0 32px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.article-cover span { font-size: 13px; color: var(--ink-faint); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-hero { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 28px; align-items: stretch; margin-bottom: 32px; }
.article-hero .article-cover { margin: 0; aspect-ratio: 636/732; align-self: start; }
.article-hero-content { display: flex; flex-direction: column; gap: 16px; }
.article-hero-content .article-breadcrumb,
.article-hero-content .article-meta { margin: 0; }
.article-h1 { font-family: var(--font-head); font-weight: 800; font-size: clamp(24px, 3.2vw, 42px); line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); margin: 0; }
.toc { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--card-r); padding: 20px 24px; margin-bottom: 36px; }
.toc-title { font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.toc ol { padding-left: 18px; list-style: decimal; }
.toc li { font-size: 14px; line-height: 1.35; margin-bottom: 8px; }
.toc li:last-child { margin-bottom: 0; }
.toc a { color: var(--ink-soft); text-decoration: none; }
.toc a:hover { color: var(--ink); text-decoration: underline; }
.article-body { font-size: 16px; line-height: 1.75; color: var(--ink); }
.article-body h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(20px, 2vw, 26px); color: var(--ink); margin: 44px 0 16px; line-height: 1.2; letter-spacing: var(--head-spacing); }
.article-body h2:first-child { margin-top: 0; }
.article-body p { margin-bottom: 18px; }
.article-body ul { padding-left: 22px; margin-bottom: 18px; list-style: disc; }
.article-body ol { padding-left: 22px; margin-bottom: 18px; list-style: decimal; }
.article-body li { margin-bottom: 8px; line-height: 1.65; }
.article-body li:last-child { margin-bottom: 0; }
.article-body strong { font-weight: 600; }
.article-body a { color: var(--ink); border-bottom: 1.5px solid var(--yellow); text-decoration: none; padding-bottom: 1px; }
.article-body a:hover { border-color: var(--ink); }
.article-cta { background: var(--ink); border-radius: var(--card-r); padding: clamp(24px, 4vw, 40px); margin: 44px 0; }
.article-cta h3 { font-family: var(--font-head); font-weight: 700; font-size: clamp(18px, 1.8vw, 24px); color: #fff; margin-bottom: 10px; line-height: 1.2; }
.article-cta p { font-size: 15px; color: rgba(255,255,255,.7); margin-bottom: 20px; line-height: 1.55; }
.article-cta .cta-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.article-cta .btn-primary { background: var(--yellow); color: var(--ink); }
.article-cta .btn-primary:hover { box-shadow: 0 10px 28px rgba(255,230,0,.35); }
.article-cta .btn-ghost { border-color: rgba(255,255,255,.3); color: #fff; }
.article-cta .btn-ghost:hover { border-color: #fff; }
.related-section { margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--line); padding-bottom: 40px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 20px; }
.related-card { background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--card-r); padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.related-card-tag { font-family: var(--font-mono); font-size: 10px; font-weight: 600; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; }
.related-card-title { font-family: var(--font-head); font-weight: 600; font-size: 13.5px; color: var(--ink); line-height: 1.35; flex: 1; }
.related-card a { font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1.5px solid var(--yellow); padding-bottom: 1px; }
.related-card a:hover { border-color: var(--ink); }

/* =================== МОБАЙЛ ===================  */
.topbar { display: none; }
.drawer { display: none; }

@media (max-width: 960px) {
  body { overflow: auto; }
  .sidebar { display: none; }
  .topbar {
    display: flex; align-items: center; gap: 12px;
    position: fixed; top: 0; left: 0; right: 0; z-index: 50; height: 60px;
    padding: 0 18px;
    background: color-mix(in srgb, var(--win-outer) 95%, transparent);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--sidebar-border);
  }

  .topbar img { height: 36px; }
  .topbar .tb-name { font-family: var(--font-head); font-weight: 700; font-size: 16px; margin-right: auto; }
  .tb-cta { background: var(--yellow); color: var(--ink); font-weight: 600; font-size: 13px; padding: 8px 14px; border-radius: 8px; }
  .burger { width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
  .burger span { width: 22px; height: 2px; background: var(--ink); transition: .25s; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .drawer {
    position: fixed; inset: 60px 0 0;
    background: var(--win-outer); z-index: 49;
    padding: 16px 18px; overflow-y: auto;
    opacity: 0; pointer-events: none; transform: translateY(-8px);
    transition: opacity .22s ease, transform .22s ease;
  }
  .drawer.open { opacity: 1; pointer-events: auto; transform: none; display: block; }
  .drawer .sb-item { font-size: 18px; padding: 14px 12px; }
  .stage-outer { position: static; left: 0; padding: 0; padding-top: 60px; }
  body.page-flow .stage-outer { margin-left: 0; padding: 0; padding-top: 60px; }
  .big-window { border-radius: 0; height: auto; }
  .stage { height: auto; overflow: visible; scroll-snap-type: none; }
  .screen { height: auto; scroll-snap-align: none; overflow: visible; padding: 24px 18px; }
  body.page-flow .screen { padding: 32px 18px; }
  .hero-grid, .expert-grid, .contacts-grid, .amocrm-grid, .demo-split { grid-template-columns: 1fr; }
  .expert-grid { align-items: start; }
  .shot { max-width: 520px; }
  .demo { max-width: 460px; }
  .expert-photo { max-width: 320px; margin-left: auto; margin-right: auto; }
  .ep-badge { position: static; border-radius: var(--card-r); margin-top: 8px; }
  .demo-split .yt-wrap { order: 1; }
  .blog-page .stage-outer { margin: 0; padding-top: 60px; }
  .blog-page .big-window { min-height: 0; border-radius: 0; }
  .blog-grid, .related-grid { grid-template-columns: 1fr; }
  .article-hero { grid-template-columns: 1fr; gap: 20px; }
  .expert-list { grid-template-columns: 1fr; }
  .feat-grid, .steps-grid, .metrics, .loss-grid { grid-template-columns: repeat(2, 1fr); }
  .feat--wide { grid-column: span 2; flex-direction: column; align-items: flex-start; }
  .faq-compact-item { grid-template-columns: 1fr; gap: 6px; }
  .privacy-modal { width: 90vw; max-height: 90vh; padding: 20px; }
  .privacy-modal__body { font-size: 13px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}

@media (max-width: 620px) {
  .feat-grid, .steps-grid, .metrics, .loss-grid { grid-template-columns: 1fr; }
  .feat--wide { grid-column: span 1; }
}
