/* ===================================================================
   Директ в MAX — общий дизайн-система-CSS для всех трёх страниц
   =================================================================== */

:root{
  /* Тёмная «отчётная» тема: холодный графит, янтарный акцент, моноширинный шрифт для цифр и подписей */
  color-scheme:dark;
  --ink:#080a0e; --ink-2:#0e1116; --ink-soft:rgba(232,236,244,.76); --ink-muted:rgba(232,236,244,.5);
  --paper:#0d1015; --paper-2:#11151b; --surface:#151921;
  --text:#e9ecf2; --muted:#98a1b1; --rule:#222833; --rule-strong:#343c4a;
  --red:#e0604f; --red-bg:rgba(224,96,79,.16);
  --amber:#e8871f; --amber-bg:rgba(232,135,31,.14); --amber-ink:#f3b25e; --on-amber:#2a1a04;
  --green:#3fae7a; --green-bg:rgba(63,174,122,.16);
  --shadow-sm:0 1px 2px rgba(0,0,0,.4);
  --shadow-md:0 16px 40px -18px rgba(0,0,0,.7);
  --shadow-lg:0 30px 70px -20px rgba(0,0,0,.8);
  --radius:14px; --radius-lg:20px;
  --ease:cubic-bezier(.19,1,.22,1);
  --container: 1120px;
  /* chat-screen tokens — matched directly to real MAX screenshots: indigo wallpaper, solid slate-purple bubbles/buttons, white text, status carried only by emoji */
  --chat-bg:#171a33; --chat-bg-2:#1d2140;
  --bubble:#4c4c7a; --bubble-2:#4c4c7a;
  --bubble-text:#ffffff; --bubble-text-dim:#c7c9e0;
  --pill:#4c4c7a; --pill-border:transparent; --pill-text:#ffffff;
}

*,*::before,*::after{ box-sizing:border-box; }
@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; scroll-behavior:auto !important; }
}
html{ scroll-behavior:smooth; }
body{
  margin:0; background:var(--paper); color:var(--text);
  font-family:'Golos Text','IBM Plex Sans',-apple-system,'Segoe UI',sans-serif;
  font-size:16px; line-height:1.6; overflow-x:hidden;
}
h1,h2,h3,h4{ font-family:'Golos Text','IBM Plex Sans',sans-serif; font-weight:800; line-height:1.08; text-wrap:balance; margin:0; letter-spacing:-.02em; }
p,ul,ol{ margin:0; }
a{ color:inherit; }
img,video{ max-width:100%; display:block; }
.mono{ font-family:'JetBrains Mono',ui-monospace,monospace; }
.container{ max-width:var(--container); margin:0 auto; padding-inline:24px; }
.section{ padding-block:110px; }
.section-tight{ padding-block:72px; }
.eyebrow{ text-transform:uppercase; letter-spacing:.14em; font-size:.75rem; font-weight:700; color:var(--muted); }
.bg-ink{ background:var(--ink); color:#fff; }
.bg-ink .eyebrow{ color:var(--amber); }
.bg-ink h1,.bg-ink h2,.bg-ink h3,.bg-ink h4{ color:#fff; }
.bg-ink p{ color:var(--ink-soft); }
.bg-ink .muted,.bg-ink .card p{ color:var(--ink-soft) !important; }
.bg-alt{ background:var(--paper-2); }
.section-head-lg{ max-width:720px; margin:0 auto 56px; text-align:center; display:flex; flex-direction:column; align-items:center; gap:16px; }
.section-head-lg h2{ font-size:clamp(1.625rem,1.1rem + 2.2vw,3.1rem); }
.section-head-lg p{ color:var(--muted); font-size:1.15rem; max-width:52ch; }

/* ---------- reveal-on-scroll ---------- */
/* блоки скрываются только когда JS работает (html.js); без JS или при сбое скрипта текст виден */
.js [data-reveal]{ opacity:0; transform:translateY(18px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.js [data-reveal].is-visible{ opacity:1; transform:none; }
.js:not(.reveal-ready) [data-reveal]:not(.is-visible){ animation:revealFallback .01s 3s forwards; }
@keyframes revealFallback{ to{ opacity:1; transform:none; } }
[data-reveal-stagger] > *{ transition-delay:calc(var(--i, 0) * 70ms); }

/* ---------- buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:15px 30px; border-radius:980px; font-weight:600; font-size:1rem;
  text-decoration:none; border:1.5px solid transparent; cursor:pointer;
  transition:transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease), border-color .2s var(--ease);
  white-space:nowrap; position:relative; overflow:hidden;
}
.btn:active{ transform:translateY(1px) scale(.98); }
.btn-primary{ background:var(--amber); color:var(--on-amber); box-shadow:var(--shadow-md); }
.btn-primary:hover{ background:#ef9c3d; box-shadow:var(--shadow-lg); transform:translateY(-2px); }
.btn-outline-light{ border-color:rgba(255,255,255,.35); color:#fff; background:transparent; }
.btn-outline-light:hover{ border-color:#fff; background:rgba(255,255,255,.08); transform:translateY(-2px); }
.btn-outline{ border-color:var(--rule-strong); color:var(--text); background:transparent; }
.btn-outline:hover{ border-color:var(--text); transform:translateY(-2px); }
.btn-ghost{ color:var(--muted); background:transparent; padding:8px 4px; font-weight:500; border-radius:0; }
.btn-ghost:hover{ color:var(--text); }
.btn-sm{ padding:10px 20px; font-size:.88rem; }
@media (max-width:480px){ .btn{ white-space:normal; text-align:center; } }

/* ---------- nav ---------- */
nav.top{
  position:sticky; top:env(safe-area-inset-top,0px); z-index:50;
  background:color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter:blur(10px); border-bottom:1px solid var(--rule);
  transition:padding .25s var(--ease), box-shadow .25s var(--ease);
}
nav.top.is-scrolled{ box-shadow:var(--shadow-sm); }
.nav-row{ display:flex; align-items:center; justify-content:space-between; padding-block:14px; gap:16px; transition:padding .25s var(--ease); position:relative; z-index:41; background:inherit; }
nav.top.is-scrolled .nav-row{ padding-block:9px; }
.brand{ display:flex; align-items:center; gap:8px; font-family:'Golos Text','IBM Plex Sans',sans-serif; font-weight:800; letter-spacing:-.01em; font-size:1.05rem; color:var(--text); text-decoration:none; white-space:nowrap; flex:none; }
.brand .dot{ width:9px; height:9px; border-radius:50%; background:var(--amber); flex:none; }
.nav-links{ display:flex; gap:22px; font-size:.9rem; font-weight:500; white-space:nowrap; }
.nav-links a{ color:var(--muted); text-decoration:none; position:relative; padding-bottom:3px; }
.nav-links a::after{ content:""; position:absolute; left:0; right:100%; bottom:0; height:1.5px; background:var(--amber); transition:right .25s var(--ease); }
.nav-links a:hover{ color:var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after{ right:0; }
.nav-links a.is-active{ color:var(--text); }
.nav-row{ flex-wrap:nowrap; }
@media (max-width:1180px){ .nav-links{ gap:14px; font-size:.84rem; } .nav-row{ gap:10px; } .nav-cta{ padding:9px 14px; font-size:.82rem; } }
.menu-toggle{ display:none; width:42px; height:42px; border-radius:50%; border:1px solid var(--rule-strong); background:var(--surface); position:relative; cursor:pointer; flex:none; padding:0; }
.menu-toggle span{ position:absolute; left:12px; right:12px; height:2px; background:var(--text); border-radius:2px; transition:transform .3s var(--ease), opacity .2s var(--ease), top .3s var(--ease); }
.menu-toggle span:nth-child(1){ top:15px; }
.menu-toggle span:nth-child(2){ top:20px; }
.menu-toggle span:nth-child(3){ top:25px; }
.menu-toggle.is-open span:nth-child(1){ top:20px; transform:rotate(45deg); }
.menu-toggle.is-open span:nth-child(2){ opacity:0; }
.menu-toggle.is-open span:nth-child(3){ top:20px; transform:rotate(-45deg); }
.mobile-menu{ display:none; }
@media (max-width:920px){
  .nav-links{ display:none; }
  .menu-toggle{ display:inline-flex; }
  .mobile-menu{
    display:flex; flex-direction:column; gap:2px; position:fixed; left:0; right:0; top:0;
    background:var(--surface); border-bottom:1px solid var(--rule); padding:80px 20px 20px;
    transform:translateY(-100%); transition:transform .3s var(--ease); z-index:40; box-shadow:var(--shadow-md);
  }
  .mobile-menu.is-open{ transform:translateY(0); }
  .mobile-menu a{ padding:14px 4px; border-bottom:1px solid var(--rule); color:var(--text); text-decoration:none; font-weight:500; }
}
@media (max-width:480px){
  .nav-cta{ display:none; }
}

/* ---------- hero ---------- */
header.hero{ background:var(--ink); color:#fff; position:relative; overflow:hidden; }
header.hero::before{
  content:""; position:absolute; inset:0;
  background:radial-gradient(760px 420px at 82% -10%, rgba(221,139,42,.30), transparent 60%),
             radial-gradient(600px 400px at -10% 110%, rgba(47,138,90,.18), transparent 60%);
  pointer-events:none; animation:driftGlow 18s ease-in-out infinite alternate;
}
@keyframes driftGlow{ from{ transform:translate3d(0,0,0) scale(1); } to{ transform:translate3d(-2%,2%,0) scale(1.06); } }
.hero-inner{ position:relative; padding-block:120px 76px; display:flex; flex-direction:column; gap:26px; max-width:760px; }
.hero-inner h1{ font-size:clamp(2rem,1.1rem + 3.9vw,4.6rem); color:#fff; line-height:1.05; }
.hero-inner h1 em{ font-style:normal; color:var(--amber); }
.hero-sub{ color:var(--ink-soft); font-size:1.08rem; max-width:560px; }
.hero-cta-row{ display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-top:6px; }
.hero-microcopy{ display:flex; flex-direction:column; gap:4px; font-size:.85rem; color:var(--ink-muted); }
.hero-microcopy b{ color:var(--ink-soft); }
.trust-ribbon{ position:relative; border-top:1px solid rgba(255,255,255,.12); padding-block:18px; display:flex; flex-wrap:wrap; gap:10px 28px; }
.trust-item{ display:flex; align-items:center; gap:8px; color:var(--ink-soft); font-size:.85rem; }

/* page hero (description/instructions — lighter, shorter) */
header.page-hero{ background:var(--ink); color:#fff; position:relative; overflow:hidden; padding-block:56px 40px; }
header.page-hero .container{ display:flex; flex-direction:column; gap:12px; }
header.page-hero h1{ color:#fff; font-size:clamp(1.5rem,1.15rem + 1.5vw,2.5rem); max-width:720px; }
header.page-hero p{ color:var(--ink-soft); max-width:640px; }
.breadcrumb{ font-size:.8rem; color:var(--ink-muted); display:flex; gap:6px; align-items:center; }
.breadcrumb a{ color:var(--ink-soft); text-decoration:none; }
.breadcrumb a:hover{ text-decoration:underline; }

/* ---------- legend / dots ---------- */
.legend{ display:flex; flex-wrap:wrap; gap:16px; font-size:.85rem; color:var(--muted); }
.legend span{ display:inline-flex; align-items:center; gap:7px; }
.dot{ width:9px; height:9px; border-radius:50%; flex:none; }
.dot.r{ background:var(--red); } .dot.a{ background:var(--amber); } .dot.g{ background:var(--green); }

/* ---------- head blocks ---------- */
.head-block{ max-width:640px; display:flex; flex-direction:column; gap:12px; margin-bottom:36px; }
.head-block h2{ font-size:clamp(1.3rem,1.05rem + 1.1vw,2.05rem); }
.head-block p{ color:var(--muted); font-size:1.02rem; }

/* ---------- cards / grids ---------- */
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.grid-analysis{ gap:44px; align-items:start; }
@media (min-width:901px){ .grid-analysis{ grid-template-columns:.95fr 1.05fr; } }
.grid-3{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }
.grid-4{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }
@media (max-width:900px){ .grid-3,.grid-4{ grid-template-columns:1fr 1fr; } .grid-2{ grid-template-columns:1fr; } }
@media (max-width:560px){ .grid-3,.grid-4{ grid-template-columns:1fr; } }

.card{
  background:var(--surface); border:1px solid var(--rule); border-radius:var(--radius);
  padding:18px; box-shadow:var(--shadow-sm); transition:transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--rule-strong); }
.step-num{ font-family:'JetBrains Mono'; font-size:.78rem; color:var(--amber); font-weight:600; }

/* ---------- phone demo (clickable chat tour) ---------- */
.phone-demo-wrap{ display:flex; flex-direction:column; align-items:center; gap:24px; }
.phone-tabs{ display:flex; flex-wrap:wrap; gap:8px; justify-content:center; }
.phone-tab{ font:inherit; font-size:.8rem; padding:8px 16px; border-radius:20px; border:1px solid var(--rule); background:var(--surface); color:var(--muted); cursor:pointer; transition:all .2s var(--ease); }
.phone-tab:hover{ border-color:var(--rule-strong); color:var(--text); }
.phone-tab.active{ background:var(--amber); border-color:var(--amber); color:var(--on-amber); font-weight:600; }

/* ---------- iPhone frame — realistic chrome reused for every bot-screen mock ---------- */
.iphone{
  position:relative; background:linear-gradient(155deg,#5a5a5d,#2a2a2c 45%,#0a0a0a);
  border-radius:52px; padding:14px; box-shadow:var(--shadow-lg), inset 0 0 0 1.5px rgba(255,255,255,.16);
  width:100%; max-width:340px; margin:0 auto;
}
@media (min-width:1024px){
  #mechanism .iphone{ max-width:380px; }
  #mechanism .iphone-screen{ min-height:600px; }
}
.iphone::before{ content:""; position:absolute; left:-2px; top:96px; width:3px; height:28px; border-radius:0 2px 2px 0; background:#0a0a0a; box-shadow:0 46px 0 0 #0a0a0a, 0 92px 0 0 #0a0a0a; }
.iphone::after{ content:""; position:absolute; right:-2px; top:150px; width:3px; height:78px; border-radius:2px 0 0 2px; background:#0a0a0a; }
.iphone-screen{
  background:
    radial-gradient(1.5px 1.5px at 20% 15%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 75% 35%, rgba(255,255,255,.28), transparent),
    radial-gradient(1px 1px at 45% 65%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.5px 1.5px at 90% 80%, rgba(255,255,255,.25), transparent),
    radial-gradient(1px 1px at 10% 85%, rgba(255,255,255,.3), transparent),
    radial-gradient(1.5px 1.5px at 60% 10%, rgba(255,255,255,.22), transparent),
    var(--chat-bg);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%;
  border-radius:38px; overflow:hidden; display:flex; flex-direction:column; min-height:520px; position:relative;
}
.iphone-island{ position:absolute; top:14px; left:50%; transform:translateX(-50%); width:94px; height:27px; background:#000; border-radius:16px; z-index:5; }
.iphone-statusbar{ display:flex; justify-content:space-between; align-items:center; padding:16px 26px 4px; font-size:.74rem; font-weight:700; color:#fff; flex:none; }
.iphone-statusbar .icons{ display:flex; gap:5px; align-items:center; font-size:.82rem; opacity:.9; }
.phone-topbar{ display:flex; align-items:center; gap:10px; padding:12px 16px; border-bottom:1px solid rgba(255,255,255,.1); flex:none; background:#000; }
.phone-avatar{ width:32px; height:32px; border-radius:50%; background:var(--amber); display:flex; align-items:center; justify-content:center; font-size:.9rem; flex:none; }
.phone-topbar b{ font-size:.92rem; display:block; color:#fff; }
.phone-topbar span{ font-size:.74rem; color:#8fe3ae; }
.phone-body{ flex:1; padding:14px; display:flex; flex-direction:column; gap:12px; overflow-y:auto; }
.phone-panel{ display:none; flex-direction:column; gap:12px; animation:fadeIn .3s var(--ease); }
.phone-panel.active{ display:flex; }
@keyframes fadeIn{ from{ opacity:0; transform:translateY(6px); } to{ opacity:1; transform:none; } }
@media (max-width:400px){ .iphone{ max-width:280px; border-radius:44px; } .iphone-screen{ border-radius:32px; min-height:440px; } }

/* real MAX-chat convention, matched to real screenshots: solid slate-purple, uniform for bubble AND every button, bold white text, status carried only by the emoji already in the copy — no colour-coding on the shape itself */
.bot-bubble{ background:var(--bubble); color:var(--bubble-text); border-radius:18px; padding:16px 18px; font-size:1.02rem; font-weight:600; max-width:100%; align-self:stretch; white-space:pre-line; line-height:1.5; box-shadow:0 6px 16px -8px rgba(0,0,0,.4); }
.bot-buttons{ display:flex; flex-direction:column; gap:8px; margin-top:2px; }
.bot-btn{ background:var(--bubble); color:#fff; border-radius:14px; padding:14px 16px; font-size:1rem; font-weight:600; text-align:center; box-shadow:0 4px 12px -6px rgba(0,0,0,.35); }

.iphone .mock{ border-radius:0; box-shadow:none; border:none; margin:0; flex:1; }

/* ---------- mockup card — same uniform bubble convention as .bot-bubble ---------- */
.mock{ background:var(--bubble); color:var(--bubble-text); border:none; border-radius:18px; padding:18px; box-shadow:0 6px 16px -8px rgba(0,0,0,.4); display:flex; flex-direction:column; gap:14px; }
.mock-head{ display:flex; justify-content:space-between; align-items:baseline; font-size:.85rem; font-weight:700; color:var(--bubble-text-dim); flex-wrap:wrap; gap:4px; }
.mock-line{ display:flex; gap:8px; align-items:flex-start; font-size:1rem; line-height:1.4; }
.mock-line b{ display:block; font-size:1rem; font-weight:700; color:var(--bubble-text); }
.mock-line span{ color:var(--bubble-text-dim); font-size:.9rem; }
.mock-btns{ display:flex; flex-direction:column; gap:8px; padding-top:6px; }
.chip{ display:block; width:100%; font-size:1rem; font-weight:600; padding:14px 16px; border-radius:14px; background:var(--bubble); border:none; color:#fff; cursor:pointer; box-shadow:0 4px 12px -6px rgba(0,0,0,.35); text-align:center; }

/* ---------- tables ---------- */
.tbl-wrap{ overflow-x:auto; border:1px solid var(--rule); border-radius:var(--radius); }
table.clean{ width:100%; border-collapse:collapse; font-size:.92rem; background:var(--surface); }
table.clean th{ background:var(--paper-2); text-align:left; padding:12px 16px; font-weight:600; font-size:.8rem; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
table.clean td{ padding:12px 16px; border-top:1px solid var(--rule); }
.fixed-note{ color:var(--muted); font-size:.82rem; font-style:italic; margin-top:4px; }
.mock .fixed-note{ color:var(--bubble-text-dim); font-size:.92rem; font-style:normal; }

/* ---------- checks: stat tiles + category cards (home, #checks) ---------- */
.stat-row{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:48px; }
.stat{ border:1px solid rgba(255,255,255,.14); border-radius:var(--radius); padding:22px; background:rgba(255,255,255,.03); }
.stat b{ display:block; font-family:'JetBrains Mono',ui-monospace,monospace; font-size:clamp(2.1rem,1.5rem + 2vw,3.2rem); font-weight:600; color:var(--amber); line-height:1.05; letter-spacing:-.02em; }
.stat span{ display:block; margin-top:10px; font-size:.88rem; color:var(--ink-soft); line-height:1.45; }
@media (max-width:900px){ .stat-row{ grid-template-columns:1fr 1fr; } }
@media (max-width:420px){ .stat{ padding:16px; } }

.checks-toolbar{ display:flex; justify-content:center; margin-bottom:24px; }
.check-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; align-items:start; }
@media (max-width:900px){ .check-grid{ grid-template-columns:1fr 1fr; } }
@media (max-width:620px){ .check-grid{ grid-template-columns:1fr; } }
.check-card{ background:var(--surface); border:1px solid var(--rule); border-radius:var(--radius); padding:20px; box-shadow:var(--shadow-sm); }
.check-card .num{ font-family:'JetBrains Mono',ui-monospace,monospace; font-size:2rem; font-weight:600; color:var(--amber); line-height:1; }
.check-card h3{ font-size:1.02rem; margin-top:10px; line-height:1.2; }
.check-card > p{ color:var(--muted); font-size:.88rem; margin-top:6px; }
.check-card details{ margin-top:14px; border-top:1px solid var(--rule); }
.check-card summary{ cursor:pointer; padding:12px 0 2px; font-size:.84rem; font-weight:600; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.check-card summary::-webkit-details-marker{ display:none; }
.check-card summary::after{ content:"+"; color:var(--amber); font-size:1.2rem; font-weight:400; transition:transform .25s var(--ease); }
.check-card details[open] summary::after{ transform:rotate(135deg); }
.check-card ul{ list-style:none; padding:0; margin:10px 0 0; display:flex; flex-direction:column; gap:8px; font-size:.86rem; color:var(--muted); }
.check-card li{ position:relative; padding-left:16px; line-height:1.45; }
.check-card li::before{ content:""; position:absolute; left:2px; top:.55em; width:6px; height:6px; border-radius:50%; background:var(--amber); }
.check-card.note{ background:var(--paper-2); border-style:dashed; box-shadow:none; }
.check-card.note h3{ margin-top:0; }

/* ---------- trust dark panel ---------- */
.trust-section{ background:var(--ink); color:#fff; border-radius:20px; padding:44px; display:flex; flex-direction:column; gap:28px; }
.trust-section .head-block h2{ color:#fff; } .trust-section .head-block p{ color:var(--ink-soft); }
.trust-list{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
@media (max-width:820px){ .trust-list{ grid-template-columns:1fr 1fr; } }
@media (max-width:560px){ .trust-list{ grid-template-columns:1fr; } }
.trust-list h4{ color:#fff; font-size:.98rem; }
.trust-list p{ color:var(--ink-soft); font-size:.88rem; }

/* ---------- compare ---------- */
.compare{ display:grid; grid-template-columns:1fr 1fr; border:1px solid var(--rule); border-radius:var(--radius); overflow:hidden; }
.compare .col{ padding:20px 22px; display:flex; flex-direction:column; gap:14px; }
.compare .col.manual{ background:var(--paper-2); }
.compare .col.bot{ background:var(--amber-bg); }
.compare .col.bot h4{ color:var(--amber-ink); }
@media (max-width:640px){ .compare{ grid-template-columns:1fr; } }

/* ---------- pricing ---------- */
.price-card{ background:var(--surface); border:1px solid var(--rule); border-radius:14px; padding:22px; display:flex; flex-direction:column; gap:14px; position:relative; transition:transform .25s var(--ease), box-shadow .25s var(--ease); }
.price-card:hover{ transform:translateY(-6px); box-shadow:var(--shadow-lg); }
.price-card.featured{ border-color:var(--amber); box-shadow:0 0 0 1px var(--amber), var(--shadow-md); }
.price-tag{ position:absolute; top:-11px; left:18px; background:var(--amber); color:var(--on-amber); font-size:.72rem; font-weight:700; padding:3px 10px; border-radius:6px; }
.price-card .kind{ font-size:.72rem; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); font-weight:600; }
.price-card .cost{ font-family:'JetBrains Mono'; font-size:1.5rem; font-weight:600; }
.price-card .cost small{ font-size:.7rem; font-weight:400; color:var(--muted); }
.price-list{ display:flex; flex-direction:column; gap:7px; font-size:.85rem; color:var(--muted); flex:1; list-style:none; padding:0; }

/* ---------- faq ---------- */
.faq-item{ border-bottom:1px solid var(--rule); }
.faq-item summary{ cursor:pointer; padding:18px 0; font-weight:600; display:flex; justify-content:space-between; align-items:center; list-style:none; font-size:.98rem; }
.faq-item summary::-webkit-details-marker{ display:none; }
.faq-item summary::after{ content:"+"; color:var(--amber); font-size:1.3rem; font-weight:400; flex:none; margin-left:12px; transition:transform .25s var(--ease); }
.faq-item[open] summary::after{ transform:rotate(135deg); }
.faq-item .a{ padding:0 0 18px; color:var(--muted); font-size:.92rem; max-width:720px; }

/* ---------- final cta ---------- */
.final-cta{ text-align:center; display:flex; flex-direction:column; align-items:center; gap:20px; }
.final-cta h2{ color:#fff; font-size:clamp(1.375rem,1.08rem + 1.25vw,2.2rem); max-width:600px; }
.final-cta p{ color:var(--ink-soft); max-width:520px; }

footer.site{ border-top:1px solid var(--rule); padding-block:32px; color:var(--muted); font-size:.85rem; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }

/* ---------- step list (instructions) ---------- */
.steps-list{ counter-reset:step; display:flex; flex-direction:column; gap:0; }
.steps-list li{ list-style:none; display:grid; grid-template-columns:44px 1fr; gap:16px; padding-block:18px; border-top:1px solid var(--rule); }
.steps-list li:first-child{ border-top:none; }
.steps-list li::before{
  counter-increment:step; content:counter(step,decimal-leading-zero);
  font-family:'JetBrains Mono'; color:var(--amber); font-weight:600; font-size:.95rem;
}
.steps-list h4{ font-size:1rem; margin-bottom:4px; }
.steps-list p{ color:var(--muted); font-size:.92rem; }

/* ---------- side toc (description/instructions) ---------- */
.with-toc{ display:grid; grid-template-columns:220px 1fr; gap:48px; align-items:flex-start; }
.toc{ position:sticky; top:84px; display:flex; flex-direction:column; gap:10px; font-size:.86rem; }
.toc a{ color:var(--muted); text-decoration:none; padding:4px 0; border-left:2px solid transparent; padding-left:12px; }
.toc a:hover{ color:var(--text); }
.toc a.is-active{ color:var(--text); border-left-color:var(--amber); font-weight:600; }
@media (max-width:900px){ .with-toc{ grid-template-columns:1fr; } .toc{ position:static; flex-direction:row; overflow-x:auto; border-bottom:1px solid var(--rule); padding-bottom:10px; } .toc a{ white-space:nowrap; border-left:none; border-bottom:2px solid transparent; padding-left:0; padding-right:14px; } .toc a.is-active{ border-left-color:transparent; border-bottom-color:var(--amber); } }

/* ---------- responsive base ---------- */
@media (max-width:640px){
  .section{ padding-block:52px; }
  .hero-inner{ padding-block:64px 44px; }
}

/* ---------- wide / TV (very large desktop) ---------- */
@media (min-width:1700px){
  :root{ --container:1320px; }
  body{ font-size:17.5px; }
  .section{ padding-block:96px; }
  .hero-inner{ max-width:820px; padding-block:120px 84px; }
  .final-cta{ padding-block:76px; }
}
@media (min-width:2200px){
  :root{ --container:1520px; }
  body{ font-size:19px; }
}


/* ===================================================================
   Тёмная «отчётная» тема: единый графитовый фон вместо чередования
   светлых и чёрных плашек; секции разделены линиями и номерами,
   цифры и подписи — моноширинным шрифтом.
   =================================================================== */
body{ background:var(--paper); }
.section, .section-tight{ position:relative; border-top:1px solid var(--rule); }
.bg-ink{ background:var(--ink); color:var(--text); }
.bg-alt{ background:var(--paper-2); }
header.hero{ background:var(--ink); }
header.page-hero{ background:var(--ink); border-bottom:1px solid var(--rule); }
nav.top{ background:color-mix(in srgb, var(--ink) 88%, transparent); }
.nav-links a::after{ background:var(--amber); }

/* моноширинный слой «отчёта» */
.eyebrow, .step-num, .price-card .kind, .price-card .cost, table.clean th, .legend,
.check-card .num, .stat b, .hero-microcopy, .breadcrumb, .fixed-note{ font-family:'JetBrains Mono',ui-monospace,monospace; }
.eyebrow{ letter-spacing:.12em; color:var(--amber); }
.eyebrow::before{ content:"// "; opacity:.7; }
.bg-ink .eyebrow{ color:var(--amber); }
.fixed-note{ font-style:normal; font-size:.78rem; }
table.clean th{ letter-spacing:.06em; }

/* заголовок секции: тонкая янтарная метка слева вместо центровки «как у шаблона» */
.section-head-lg{ align-items:flex-start; text-align:left; max-width:820px; margin-left:0; margin-right:auto; padding-left:20px; border-left:2px solid var(--amber); }
.section-head-lg p{ max-width:60ch; }
.final-cta{ align-items:flex-start; text-align:left; margin:0; max-width:760px; padding-left:20px; border-left:2px solid var(--amber); }
.final-cta h2{ max-width:none; }
.final-cta p{ max-width:none; }

/* карточки: плоские, с тонкой линией, без «подпрыгивания» */
.card, .price-card, .check-card{ background:var(--surface); border-color:var(--rule); box-shadow:none; }
.card:hover, .price-card:hover{ transform:none; border-color:var(--rule-strong); box-shadow:none; }
.price-card.featured{ box-shadow:0 0 0 1px var(--amber); }
.check-card.note{ background:transparent; border-style:dashed; }
.tbl-wrap{ border-color:var(--rule); background:var(--surface); }
table.clean{ background:transparent; }
table.clean th{ background:var(--paper-2); color:var(--muted); }
table.clean td{ border-top-color:var(--rule); }

/* сравнение «вручную / бот» */
.compare{ border-color:var(--rule); }
.compare .col.manual{ background:var(--paper-2); }
.compare .col.bot{ background:var(--amber-bg); }
.compare .col.bot h4{ color:var(--amber-ink); }

/* кнопки и меню */
.btn-outline{ border-color:var(--rule-strong); color:var(--text); }
.btn-outline:hover{ border-color:var(--amber); }
.menu-toggle{ background:var(--surface); border-color:var(--rule-strong); }
.mobile-menu{ background:var(--ink); border-bottom-color:var(--rule); }
.phone-tab{ background:var(--surface); border-color:var(--rule); }

/* экраны чата на тёмной странице: тонкий контур и свечение, чтобы не сливались */
.iphone{ box-shadow:0 0 0 1px var(--rule-strong), 0 30px 80px -30px rgba(232,135,31,.28), var(--shadow-lg); }

/* FAQ и списки */
.faq-item{ border-bottom-color:var(--rule); }
.faq-item summary::after{ font-family:'JetBrains Mono',ui-monospace,monospace; }
.steps-list li{ border-top-color:var(--rule); }
.toc a.is-active{ border-left-color:var(--amber); }
footer.site{ border-top-color:var(--rule); }
::selection{ background:var(--amber); color:var(--on-amber); }

@media (max-width:640px){
  .section-head-lg, .final-cta{ padding-left:14px; }
}

/* ===================================================================
   Роли цвета: ЯНТАРЬ = Директ (данные, цифры, действие),
   ИНДИГО = MAX (чат, экран бота). Красный/янтарный/зелёный — только сигналы.
   Берём палитру и смысл, не фирменные знаки и логотипы.
   =================================================================== */
:root{ --max:#8d8df7; --max-soft:rgba(141,141,247,.12); --max-line:rgba(141,141,247,.38); --max-deep:#1a1d3d; }

/* первый экран из двух половин: данные Директа -> чат MAX */
header.hero::before{
  background:radial-gradient(620px 380px at 6% 0%, rgba(232,135,31,.20), transparent 62%),
             radial-gradient(640px 520px at 86% 55%, rgba(141,141,247,.24), transparent 62%);
}
.hero-grid{ display:grid; grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr); gap:48px; align-items:center; position:relative; }
.hero-grid .hero-inner{ max-width:none; padding-inline:0; }
.hero-grid .hero-inner h1{ font-size:clamp(2rem,1.2rem + 2.7vw,3.7rem); }
.hero-visual{ display:flex; flex-direction:column; align-items:center; gap:10px; padding-block:90px 40px; position:relative; }
.src-card{ align-self:flex-start; width:min(100%,300px); border:1px solid rgba(232,135,31,.45); background:rgba(232,135,31,.07); border-radius:14px; padding:16px 18px; font-family:'JetBrains Mono',ui-monospace,monospace; }
.src-head{ display:flex; align-items:center; gap:8px; font-size:.7rem; letter-spacing:.1em; text-transform:uppercase; color:var(--amber); margin-bottom:10px; }
.src-dot{ width:8px; height:8px; border-radius:50%; background:var(--amber); }
.src-rows{ margin:0; }
.src-rows div{ display:flex; justify-content:space-between; gap:12px; padding:5px 0; border-bottom:1px dashed rgba(255,255,255,.12); font-size:.86rem; }
.src-rows dt{ color:var(--muted); }
.src-rows dd{ margin:0; color:var(--text); font-weight:500; }
.src-tags{ display:flex; flex-wrap:wrap; gap:6px; margin-top:12px; }
.src-tags span{ border:1px solid var(--rule-strong); color:var(--muted); border-radius:999px; padding:2px 10px; font-size:.7rem; }
.flow-arrow{ display:flex; flex-direction:column; align-items:center; gap:2px; color:var(--max); font-family:'JetBrains Mono',ui-monospace,monospace; font-size:.72rem; letter-spacing:.1em; text-transform:uppercase; }
.flow-arrow::before{ content:""; width:2px; height:18px; background:linear-gradient(var(--amber),var(--max)); }
.flow-arrow::after{ content:"\2193"; font-size:1.2rem; line-height:1; }
.hero-phone{ max-width:300px; align-self:flex-end; }
.hero-phone .iphone-screen{ min-height:0; }
.hero-phone .phone-body{ padding-bottom:18px; }
.hero-phone .bot-bubble{ font-size:.92rem; }
.hero-demo-note{ margin:4px 0 0; font-family:'JetBrains Mono',ui-monospace,monospace; font-size:.7rem; color:var(--ink-muted); align-self:flex-end; }
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; gap:8px; }
  .hero-visual{ padding-block:8px 36px; max-width:420px; margin-inline:auto; width:100%; }
  .hero-grid .hero-inner{ padding-block:64px 8px; }
}
@media (max-width:420px){ .hero-phone, .src-card{ width:100%; max-width:none; align-self:center; } }

/* всё, что про чат, — индиго */
.iphone{ box-shadow:0 0 0 1px var(--max-line), 0 30px 80px -30px rgba(141,141,247,.35), var(--shadow-lg); }
#mechanism{ background:linear-gradient(180deg,var(--max-deep) 0%,var(--ink) 55%); }
#mechanism .eyebrow, #no-conversions .eyebrow{ color:var(--max); }
#mechanism .section-head-lg, #no-conversions .section-head-lg{ border-left-color:var(--max); }
.phone-tab:hover{ border-color:var(--max-line); }
.phone-tab.active{ background:var(--max); border-color:var(--max); color:#0b0c24; }
.btn-outline-light{ border-color:var(--max-line); background:var(--max-soft); }
.btn-outline-light:hover{ border-color:var(--max); background:rgba(141,141,247,.2); }
#no-conversions{ background:linear-gradient(180deg,var(--paper-2),var(--max-deep) 160%); }
.final-cta{ border-left-color:var(--amber); }
section.section.bg-ink:last-of-type{ background:radial-gradient(700px 320px at 85% 100%, rgba(141,141,247,.2), transparent 65%), var(--ink); }
.mobile-menu a.btn-primary{ color:var(--on-amber); border-bottom-color:transparent; }


/* ===================================================================
   Единый телефон: тонкая рамка, шапка чата, сообщение бота и кнопки
   в стиле настоящих экранов MAX (тёмно-синее сообщение, обычный текст,
   кнопки-«таблетки» с тонкой рамкой). Один размер на всех страницах.
   =================================================================== */
:root{ --wall:#0c1022; --msg:#151b35; --msg-btn:#212b51; --msg-line:#33406d; --msg-dim:#aab3d0; }

.iphone{ width:100%; max-width:320px; margin-inline:auto; padding:8px; border-radius:46px;
  background:linear-gradient(160deg,#2b303c,#171a22 50%,#10131a);
  box-shadow:0 0 0 1px #3a4152, inset 0 0 0 1px rgba(255,255,255,.06), 0 30px 70px -34px rgba(0,0,0,.9); }
.iphone::before, .iphone::after{ display:none; }
#mechanism .iphone, .hero-phone{ max-width:320px; }
.iphone-screen{ border-radius:38px; min-height:600px; gap:0; background:var(--wall); }
.hero-phone .iphone-screen{ min-height:0; }
.iphone-island{ top:11px; width:82px; height:22px; border-radius:14px; }
.iphone-statusbar{ padding:13px 22px 6px; }

/* шапка чата */
.phone-topbar{ padding:10px 14px 10px 10px; gap:10px; background:#0a0d1c; border-bottom:1px solid rgba(255,255,255,.07); }
.phone-topbar::before{ content:"\2039"; color:var(--max); font-size:1.7rem; line-height:1; margin-right:-2px; }
.phone-avatar{ width:34px; height:34px; font-size:1rem; }
.phone-topbar b{ font-size:.95rem; font-weight:700; }
.phone-topbar span{ font-size:.72rem; color:var(--msg-dim); }

/* поле ввода внизу экрана */
.iphone-screen::after{ content:"Сообщение"; margin-top:auto; flex:none; padding:12px 18px; margin:0; color:rgba(232,236,248,.38); font-size:.88rem; border-top:1px solid rgba(255,255,255,.07); background:#0a0d1c; }
.iphone-screen{ position:relative; }

/* переписка */
.phone-body{ padding:14px 12px 16px; gap:8px; flex:1; }
.bot-bubble{ background:var(--msg); color:#e8ecf8; font-weight:400; font-size:.9rem; line-height:1.55; border-radius:16px; padding:14px 16px; box-shadow:none; border:1px solid rgba(255,255,255,.05); }
.bot-bubble b{ font-weight:700; }
.bot-bubble p{ margin:0 0 8px !important; font-size:.9rem !important; font-weight:400 !important; line-height:1.55 !important; color:#e8ecf8 !important; }
.bot-bubble p:last-child{ margin-bottom:0 !important; }
.mock-head{ display:flex; justify-content:space-between; gap:8px; flex-wrap:wrap; font-size:.78rem; font-weight:600; color:var(--msg-dim); margin-bottom:10px; }
.mock-line{ display:flex; gap:8px; align-items:flex-start; font-size:.9rem; line-height:1.45; margin-bottom:10px; }
.mock-line:last-child{ margin-bottom:0; }
.mock-line b{ display:block; font-size:.9rem; font-weight:700; color:#e8ecf8; }
.mock-line span{ color:var(--msg-dim); font-size:.84rem; }
.mock-card .fixed-note{ color:var(--msg-dim); font-size:.82rem; margin-top:8px; }
.bot-buttons{ gap:6px; margin-top:0; }
.bot-btn, .chip{ background:var(--msg-btn); border:1px solid var(--msg-line); border-radius:12px; padding:11px 12px; font-size:.88rem; font-weight:400; color:#e8ecf8; box-shadow:none; }
.chip.off{ opacity:.6; }
.phone-tab.active{ color:#0b0c24; }
.mock-card{ white-space:normal; }
.mock-card .mock-head{ margin-bottom:12px; }

/* финальный призыв — по центру на всех страницах */
.final-cta{ align-items:center; text-align:center; margin-inline:auto; padding-left:0; border-left:none; max-width:760px; }
.final-cta h2{ max-width:640px; }
.final-cta p{ max-width:560px; }

/* ===================================================================
   Фон «Индиго-ночь»: общий фиксированный слой за всей страницей,
   секции прозрачные, поверхности и линии подкрашены в индиго.
   =================================================================== */
:root{
  --ink:#080a16; --ink-2:#0c0f1f;
  --paper:#0a0c1c; --paper-2:#0e1126; --surface:#12162e;
  --rule:#222844; --rule-strong:#343c60;
}
body{ background:#090b14; }
body::before{
  content:""; position:fixed; inset:0; z-index:-1; pointer-events:none;
  background:
    radial-gradient(1100px 700px at 85% 0%, rgba(110,110,235,.30), transparent 60%),
    radial-gradient(900px 600px at 0% 100%, rgba(232,135,31,.10), transparent 60%),
    linear-gradient(180deg,#0b0e26 0%,#0a0c1c 45%,#090b14 100%);
}
.bg-ink, .bg-alt, #mechanism, #no-conversions, header.hero, header.page-hero,
section.section.bg-ink:last-of-type{ background:transparent; }
header.hero::before{ display:none; }
header.page-hero{ border-bottom-color:rgba(255,255,255,.06); }
.section, .section-tight{ border-top-color:rgba(255,255,255,.06); }
nav.top{ background:rgba(9,11,24,.78); }
.mobile-menu{ background:#0a0c1c; }
.trust-section{ background:var(--surface); }