/* ============================================================
   DialogCRM — Editorial-Tech Landing
   Ink & Paper design system: светлая «бумага», чернильные
   инверсионные секции, тёмные продуктовые фреймы, Unbounded
   для display-типографики, mono-разметка как в тех. журнале.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* paper (светлая сцена) */
  --bg:        #F4F3EE;
  --bg-2:      #ECEBE3;
  --surface:   #FFFFFF;
  --surface-2: #FAF9F5;
  --border:    rgba(16, 19, 25, 0.13);
  --border-2:  rgba(16, 19, 25, 0.30);

  --accent:    #2B49F0;
  --accent-2:  #2B49F0;
  --accent-hi: #6D87FF;
  --accent-t:  rgba(43, 73, 240, 0.09);
  --emerald:   #0E9F6E;
  --emerald-2: #0E9F6E;
  --emerald-t: rgba(14, 159, 110, 0.11);
  --violet:    #6D5AE6;
  --violet-t:  rgba(109, 90, 230, 0.11);
  --amber:     #C77A08;
  --red:       #D6453D;

  --text:      #101319;
  --muted:     #4A5160;
  --muted-2:   #7A818F;

  /* чернильная сцена (значения по умолчанию = светлые, переопределяются в .on-ink) */
  --ink:       #0D1015;
  --ink-2:     #12161F;
  --ink-3:     #1A1F2B;

  --grad-brand: linear-gradient(135deg, #2B49F0, #6D87FF);
  --grad-glow:  radial-gradient(circle at 50% 0%, rgba(43,73,240,.10), transparent 60%);

  --radius:    18px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --shadow:      0 24px 60px -28px rgba(16, 19, 25, .28);
  --shadow-soft: 0 14px 34px -18px rgba(16, 19, 25, .22);
  --shadow-glow: 0 14px 40px -12px rgba(43, 73, 240, .45);

  --container: 1220px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font:    'Onest', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --mono:    'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
}

/* Чернильная сцена: тёмные секции и продуктовые фреймы.
   Компоненты внутри читают те же переменные — инверсия автоматическая. */
.on-ink,
.security, .final, .footer, .trust-strip,
.mock, .phone, .map-stage, .bill-panel,
.plan.featured {
  --bg:        #0D1015;
  --bg-2:      #12161F;
  --surface:   #151A24;
  --surface-2: #1A2030;
  --border:    rgba(255, 255, 255, 0.10);
  --border-2:  rgba(255, 255, 255, 0.24);
  --accent:    #7B92FF;
  --accent-2:  #93A5FF;
  --accent-hi: #B9C5FF;
  --accent-t:  rgba(123, 146, 255, 0.14);
  --emerald:   #34D399;
  --emerald-2: #3BE59C;
  --emerald-t: rgba(52, 211, 153, 0.13);
  --violet-t:  rgba(151, 134, 250, 0.15);
  --amber:     #F5A524;
  --text:      #F2F4FA;
  --muted:     #A9B1C2;
  --muted-2:   #79818F;
  --shadow:      0 30px 70px -30px rgba(0, 0, 0, .55);
  --shadow-soft: 0 16px 40px -20px rgba(0, 0, 0, .5);
  color: var(--text);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  background: #F4F3EE;
  color: #101319;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font-family: inherit; }
ul, ol { list-style: none; }
::selection { background: #2B49F0; color: #fff; }

/* Бумажная фактура: точечная сетка, гаснущая книзу экрана */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(16,19,25,.10) 1px, transparent 1.4px);
  background-size: 30px 30px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 45%, transparent 80%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,.35) 45%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}
section { position: relative; z-index: 1; }
section[id] { scroll-margin-top: 90px; }
.section-pad { padding: clamp(72px, 9vw, 136px) 0; }

/* Технический ярлык секции */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
  animation: pulse 2.4s infinite;
}

.section-head { max-width: 760px; margin: 0 auto 60px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
h2.title {
  font-family: var(--display);
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 600;
  letter-spacing: -.01em;
  line-height: 1.14;
}
.section-head p {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 17.5px);
}
.grad-text { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  padding: 15px 28px;
  border-radius: 12px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease), border-color .25s;
  white-space: nowrap;
  cursor: pointer;
}
.btn-primary {
  position: relative;
  background: #2B49F0;
  color: #fff;
  box-shadow: 0 12px 28px -10px rgba(43,73,240,.55);
}
.btn-primary:hover {
  background: #101319;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(16,19,25,.5);
}
.on-ink .btn-primary:hover, .final .btn-primary:hover, .footer .btn-primary:hover {
  background: #fff;
  color: #101319;
}
.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); color: var(--accent); }
.btn-lg { padding: 18px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(5px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.header.scrolled {
  background: rgba(244,243,238,.86);
  backdrop-filter: blur(14px) saturate(130%);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.brand .logo { width: 36px; height: 36px; border-radius: 9px; display: block; }
.brand b { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta .login { color: var(--muted); font-size: 14.5px; font-weight: 500; }
.nav-cta .login:hover { color: var(--text); }
.nav-cta .btn { padding: 11px 20px; font-size: 14px; }
.burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { padding: 145px 0 90px; overflow: hidden; }
#network { display: none; }
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(46% 42% at 18% 8%, rgba(43,73,240,.08), transparent 65%),
    radial-gradient(38% 36% at 88% 16%, rgba(14,159,110,.07), transparent 60%);
  pointer-events: none;
}
.hero .container { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 {
  font-family: var(--display);
  font-size: clamp(26px, 3.4vw, 45px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.015em;
  margin-bottom: 24px;
}
.hero h1 .grad-text { display: inline; }
.hero-sub { font-size: clamp(16px, 1.8vw, 19px); color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 13.5px; color: var(--muted-2); display: flex; align-items: center; gap: 8px; font-family: var(--mono); }
.hero-note svg { color: var(--emerald); flex-shrink: 0; }

/* Статистика: издательские колонки с левой линейкой */
.metrics { display: flex; gap: 0; margin-top: 44px; flex-wrap: wrap; }
.metric { padding: 4px 26px 4px 18px; border-left: 1px solid var(--border-2); }
.metric .num { font-family: var(--mono); font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.metric .num span { color: var(--emerald); }
.metric .lbl { font-size: 12.5px; color: var(--muted-2); margin-top: 3px; }

/* ---------- CRM mockup (тёмный продуктовый фрейм) ---------- */
.hero-mock-wrap { position: relative; }
.hero-mock-wrap::before {
  content: '';
  position: absolute; inset: 0;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  transform: translate(16px, 16px);
  pointer-events: none;
}
.hero-mock-wrap::after {
  content: 'fig. 01 — рабочий экран DialogCRM';
  display: block;
  margin-top: 30px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  color: var(--muted-2);
  text-align: right;
}
.mock {
  position: relative;
  z-index: 2;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.05);
  overflow: hidden;
  will-change: transform;
}
.mock-topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.02);
}
.mock-topbar .dots { display: flex; gap: 6px; }
.mock-topbar .dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mock-topbar .dots i:nth-child(1){ background:#ff5f57; }
.mock-topbar .dots i:nth-child(2){ background:#febc2e; }
.mock-topbar .dots i:nth-child(3){ background:#28c840; }
.mock-topbar .url {
  margin-left: 10px; font-family: var(--mono); font-size: 11.5px;
  color: var(--muted-2); background: rgba(0,0,0,.3);
  padding: 4px 12px; border-radius: 8px; flex: 1;
}
.mock-body { display: grid; grid-template-columns: 62px 1fr; min-height: 380px; }
.mock-side { border-right: 1px solid var(--border); padding: 14px 0; display: flex; flex-direction: column; align-items: center; gap: 8px; background: rgba(0,0,0,.18); }
.mock-side .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted-2); }
.mock-side .ic.on { background: var(--accent-t); color: var(--accent-2); }
.mock-main { padding: 18px; position: relative; }
.mock-h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.mock-h h4 { font-size: 15px; font-weight: 700; }
.mock-h .pill { font-family: var(--mono); font-size: 10.5px; color: var(--emerald-2); background: var(--emerald-t); padding: 4px 10px; border-radius: 6px; }

/* KPI cards */
.kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }
.kpi .k-lbl { font-size: 10.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .06em; }
.kpi .k-num { font-family: var(--mono); font-size: 19px; font-weight: 700; margin-top: 4px; }
.kpi .k-num.g { color: var(--emerald-2); }
.kpi .k-num.b { color: var(--accent-2); }
.kpi .k-trend { font-size: 10.5px; color: var(--emerald-2); margin-top: 2px; font-family: var(--mono); }

/* mini chart */
.chart { display: flex; align-items: flex-end; gap: 7px; height: 92px; padding: 12px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.chart .bar { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #7B92FF, rgba(123,146,255,.3)); animation: grow 1.1s var(--ease) backwards; transform-origin: bottom; }
.chart .bar.g { background: linear-gradient(180deg, #3BE59C, rgba(59,229,156,.25)); }

/* kanban mini */
.kanban { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.kcol { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px; }
.kcol .kh { font-size: 11px; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 8px; }
.kcard { background: var(--accent-t); border: 1px solid var(--border-2); border-radius: 9px; padding: 8px; margin-bottom: 7px; font-size: 11px; }
.kcard .nm { font-weight: 600; }
.kcard .mt { color: var(--muted-2); font-size: 10px; margin-top: 3px; font-family: var(--mono); }
.kcard.drag { animation: dragcard 3.4s var(--ease) infinite; box-shadow: 0 12px 24px -8px rgba(0,0,0,.5); }

/* incoming toast */
.toast {
  position: absolute; right: 16px; bottom: 16px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(13,16,21,.9);
  border: 1px solid rgba(59,229,156,.4);
  padding: 10px 14px; border-radius: 12px;
  backdrop-filter: blur(6px);
  animation: toastIn 4.5s var(--ease) infinite;
  max-width: 240px;
}
.toast .rng { width: 30px; height: 30px; border-radius: 9px; background: var(--emerald-t); display: grid; place-items: center; color: var(--emerald-2); animation: pulse 1.4s infinite; flex-shrink: 0; }
.toast .tx b { font-size: 12px; display: block; }
.toast .tx span { font-size: 10.5px; color: var(--muted); font-family: var(--mono); }

/* chat mini */
.chat { display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 80%; padding: 8px 12px; border-radius: 12px; font-size: 12px; }
.msg.in { background: var(--surface); border: 1px solid var(--border); border-bottom-left-radius: 3px; }
.msg.out { align-self: flex-end; background: var(--accent-t); border: 1px solid var(--border-2); border-bottom-right-radius: 3px; }
.msg .wa { font-size: 9px; color: var(--emerald-2); font-family: var(--mono); display: block; }
.typing { display: flex; gap: 4px; align-self: flex-start; padding: 10px 14px; background: var(--surface); border-radius: 12px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2){ animation-delay: .2s; } .typing i:nth-child(3){ animation-delay: .4s; }

/* ---------- Ticker (чернильная лента) ---------- */
.trust-strip { padding: 30px 0; background: var(--bg); border-top: 1px solid rgba(16,19,25,.9); }
.trust-strip .lbl { text-align: center; font-family: var(--mono); font-size: 11.5px; color: var(--muted-2); text-transform: uppercase; letter-spacing: .22em; margin-bottom: 18px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 54px; width: max-content; animation: scrollx 36s linear infinite; will-change: transform; }
.marquee-track span { font-family: var(--mono); font-weight: 500; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 10px; }

/* ---------- Persona switcher ---------- */
.persona-tabs { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); margin-bottom: 44px; flex-wrap: wrap; justify-content: center; box-shadow: var(--shadow-soft); }
.persona-tabs button { padding: 12px 22px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: .25s var(--ease); }
.persona-tabs button:hover { color: var(--text); }
.persona-tabs button.on { background: #101319; color: #fff; }
.persona-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.persona-info h3 { font-family: var(--display); font-size: clamp(20px, 2.3vw, 27px); font-weight: 600; margin-bottom: 14px; letter-spacing: -.01em; line-height: 1.2; }
.persona-info .pain { color: var(--muted); margin-bottom: 24px; }
.persona-feats { display: flex; flex-direction: column; gap: 14px; }
.persona-feats li { display: flex; gap: 12px; align-items: flex-start; }
.persona-feats .chk { flex-shrink: 0; width: 24px; height: 24px; border-radius: 7px; background: var(--emerald-t); color: var(--emerald); display: grid; place-items: center; margin-top: 1px; }
.persona-feats b { font-weight: 600; }
.persona-feats p { font-size: 13.5px; color: var(--muted-2); }
.fade-swap { animation: fadeUp .5s var(--ease); }

/* ---------- Lead routing (franchise) ---------- */
.routing-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.map-stage {
  position: relative;
  aspect-ratio: 16/11;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,.08);
  background:
    radial-gradient(circle at 30% 40%, rgba(123,146,255,.12), transparent 55%),
    var(--bg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-city { cursor: default; }
.map-city .dot { fill: var(--muted-2); transition: .3s; }
.map-city.active .dot { fill: var(--emerald-2); }
.map-city .ring { fill: none; stroke: var(--emerald-2); opacity: 0; transform-box: fill-box; transform-origin: center; }
.map-city.active .ring { animation: ripple 1.4s var(--ease); }
.map-city text { fill: var(--muted); font-size: 9px; font-family: var(--mono); }
.map-city.active text { fill: var(--emerald-2); }
.route-line { stroke: url(#routeGrad); stroke-width: 2; fill: none; stroke-linecap: round; stroke-dasharray: 6 6; }
.pulse-dot { fill: #fff; filter: drop-shadow(0 0 6px #7B92FF); }
.route-status {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  display: flex; align-items: center; gap: 12px;
  background: rgba(13,16,21,.85); backdrop-filter: blur(8px);
  border: 1px solid var(--border-2); border-radius: 14px; padding: 12px 16px;
}
.route-status .st-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.route-status .st-tx { flex: 1; }
.route-status .st-tx b { font-size: 13.5px; display: block; }
.route-status .st-tx span { font-size: 12px; color: var(--muted); }
.route-status .timer { font-family: var(--mono); font-size: 20px; font-weight: 700; color: var(--emerald-2); }
.routing-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 26px; }
.rstep { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); opacity: .5; transition: .4s var(--ease); }
.rstep.on { opacity: 1; border-color: var(--border-2); box-shadow: var(--shadow-soft); }
.rstep .n { font-family: var(--mono); font-weight: 700; color: var(--accent); width: 26px; height: 26px; border-radius: 8px; background: var(--accent-t); display: grid; place-items: center; flex-shrink: 0; font-size: 13px; }
.rstep.on .n { background: #2B49F0; color: #fff; }
.rstep b { font-size: 14px; } .rstep p { font-size: 13px; color: var(--muted-2); }

/* ---------- Bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; grid-auto-rows: minmax(180px, auto); }
.bento .card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
  transition: transform .35s var(--ease), border-color .35s, box-shadow .35s;
}
.bento .card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(380px circle at var(--mx,50%) var(--my,0%), rgba(43,73,240,.06), transparent 45%);
  opacity: 0; transition: opacity .35s;
  pointer-events: none;
}
.bento .card::after {
  content: '+';
  position: absolute; top: 12px; right: 16px;
  font-family: var(--mono); font-size: 14px;
  color: var(--muted-2); opacity: .55;
  transition: color .3s, transform .3s var(--ease), opacity .3s;
}
.bento .card:hover { transform: translateY(-5px); border-color: var(--border-2); box-shadow: var(--shadow-soft); }
.bento .card:hover::before { opacity: 1; }
.bento .card:hover::after { color: var(--accent); opacity: 1; transform: rotate(90deg); }
.bento .c-6 { grid-column: span 6; } .bento .c-4 { grid-column: span 4; }
.bento .c-3 { grid-column: span 3; } .bento .c-2 { grid-column: span 2; }
.card .c-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-t); color: var(--accent); margin-bottom: 16px; font-size: 18px; }
.card .c-ic.g { background: var(--emerald-t); color: var(--emerald); }
.card .c-ic.v { background: var(--violet-t); color: var(--violet); }
.card h3 { font-size: 17.5px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.card p { font-size: 14px; color: var(--muted); position: relative; }

/* audio wave */
.wave { display: flex; align-items: center; gap: 3px; height: 40px; margin-top: 16px; }
.wave i { width: 3px; border-radius: 3px; background: var(--accent); animation: wave 1.1s ease-in-out infinite; }
.callcard { margin-top: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.callcard .av { width: 34px; height: 34px; border-radius: 50%; background: #101319; display: grid; place-items: center; color: #fff; font-weight: 700; flex-shrink: 0; }
.callcard .ph { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.callcard .live { margin-left: auto; font-size: 10px; font-family: var(--mono); color: var(--emerald); display: flex; align-items: center; gap: 5px; }
.callcard .live i { width: 6px; height: 6px; border-radius: 50%; background: var(--emerald); animation: pulse 1.2s infinite; }

/* file tree */
.tree { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tree div { padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.tree .lvl { padding-left: 18px; } .tree .lvl2 { padding-left: 36px; }
.tree svg { color: var(--accent); flex-shrink: 0; }

/* ---------- Security (чернильная секция) ---------- */
.security {
  background: var(--bg);
  color: var(--text);
}
.security .eyebrow { background: var(--surface); }
.sec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.sec-features { display: grid; gap: 14px; }
.sec-feat { display: flex; gap: 16px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); transition: .3s; }
.sec-feat:hover { border-color: rgba(59,229,156,.45); }
.sec-feat .s-ic { flex-shrink: 0; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--emerald-t); color: var(--emerald-2); }
.sec-feat h4 { font-size: 16px; font-weight: 700; margin-bottom: 5px; }
.sec-feat p { font-size: 13.5px; color: var(--muted); }
.twofa {
  border: 1px solid var(--border-2); border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(59,229,156,.07), var(--surface));
  padding: 36px; text-align: center; position: relative; overflow: hidden;
}
.twofa .shield { width: 74px; height: 74px; margin: 0 auto 20px; border-radius: 20px; background: var(--emerald-t); display: grid; place-items: center; color: var(--emerald-2); animation: floaty 4s ease-in-out infinite; }
.twofa h4 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.twofa p { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.otp { display: flex; gap: 10px; justify-content: center; margin-bottom: 8px; }
.otp span { width: 46px; height: 56px; border-radius: 12px; border: 1px solid var(--border-2); background: rgba(0,0,0,.3); display: grid; place-items: center; font-family: var(--mono); font-size: 24px; font-weight: 700; color: var(--emerald-2); }
.otp span.fill { border-color: var(--emerald-2); box-shadow: 0 0 16px rgba(59,229,156,.25); }
.otp-timer { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }

/* ---------- PWA ---------- */
.pwa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.phone {
  width: 270px; height: 550px; margin: 0 auto;
  border-radius: 42px; padding: 12px;
  background: #101319;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255,255,255,.08);
  position: relative;
}
.phone::before { content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 110px; height: 24px; background: #05070b; border-radius: 20px; z-index: 3; }
.phone-screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: var(--bg-2); position: relative; }
.p-status { display: flex; justify-content: space-between; padding: 12px 20px 6px; font-size: 11px; font-family: var(--mono); color: var(--muted); }
.p-head { padding: 8px 18px 14px; }
.p-head h5 { font-size: 17px; font-weight: 800; } .p-head span { font-size: 11px; color: var(--muted-2); }
.p-card { margin: 8px 14px; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.p-card .r { display: flex; justify-content: space-between; align-items: center; }
.p-card .r + .r { margin-top: 8px; }
.p-card small { font-size: 10.5px; color: var(--muted-2); }
.p-card b { font-family: var(--mono); font-size: 15px; }
.p-card b.g { color: var(--emerald-2); }
.p-install {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: rgba(10,13,18,.92); backdrop-filter: blur(8px);
  border: 1px solid var(--border-2); border-radius: 16px; padding: 12px 14px;
  display: flex; align-items: center; gap: 10px;
  animation: installUp 5s var(--ease) infinite;
}
.p-install .pi { width: 34px; height: 34px; border-radius: 9px; background: #2B49F0; display: grid; place-items: center; color: #fff; font-weight: 800; }
.p-install .pt { flex: 1; } .p-install .pt b { font-size: 12px; display: block; } .p-install .pt span { font-size: 10px; color: var(--muted); }
.p-install .add { font-size: 11px; font-weight: 700; color: var(--accent-2); }
.pwa-points { display: grid; gap: 18px; margin: 26px 0 30px; }
.pwa-point { display: flex; gap: 14px; }
.pwa-point .pp-ic { width: 40px; height: 40px; border-radius: 11px; background: var(--accent-t); color: var(--accent); display: grid; place-items: center; flex-shrink: 0; }
.pwa-point b { font-size: 15px; } .pwa-point p { font-size: 13.5px; color: var(--muted); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.calc-panel { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 34px; background: var(--surface); box-shadow: var(--shadow-soft); }
.calc-row { margin-bottom: 28px; }
.calc-row:last-child { margin-bottom: 0; }
.calc-row .cr-top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.calc-row label { font-size: 14px; font-weight: 600; color: var(--muted); }
.calc-row .val { font-family: var(--mono); font-size: 18px; font-weight: 700; color: var(--accent); }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 5px; border-radius: 5px;
  background: var(--bg-2); outline: none; border: 1px solid var(--border);
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: #2B49F0; cursor: pointer; border: 4px solid #fff;
  box-shadow: 0 0 0 1px var(--border-2), 0 4px 12px rgba(16,19,25,.25);
  transition: box-shadow .2s;
}
input[type=range]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px rgba(43,73,240,.18), 0 4px 12px rgba(16,19,25,.25); }
input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #2B49F0; cursor: pointer; border: 4px solid #fff; }

.calc-result {
  border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); padding: 34px;
  position: relative; overflow: hidden;
  /* чернильная панель результата */
  --bg: #0D1015; --surface: #151A24; --border: rgba(255,255,255,.1); --border-2: rgba(255,255,255,.24);
  --text: #F2F4FA; --muted: #A9B1C2; --muted-2: #79818F;
  --accent: #7B92FF; --accent-2: #93A5FF; --emerald: #3BE59C; --emerald-2: #3BE59C;
  background: #0D1015; color: var(--text);
  box-shadow: var(--shadow);
}
.calc-result::before { content: ''; position: absolute; top: -40%; right: -20%; width: 340px; height: 340px; background: radial-gradient(circle, rgba(59,229,156,.16), transparent 65%); }
.calc-result .cr-eyebrow { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .16em; color: var(--emerald-2); margin-bottom: 22px; position: relative; }
.res-block { margin-bottom: 22px; position: relative; }
.res-block .rb-lbl { font-size: 13.5px; color: var(--muted); margin-bottom: 4px; }
.res-block .rb-num { font-family: var(--mono); font-size: clamp(26px, 3.4vw, 36px); font-weight: 800; letter-spacing: -.02em; }
.res-block .rb-num.g { color: var(--emerald-2); }
.res-block .rb-num.w { color: #fff; }
.res-block .rb-sub { font-size: 12px; color: var(--muted-2); }
.calc-cta { margin-top: 24px; position: relative; }

/* ---------- Integrations (тёмные плитки) ---------- */
.integ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.integ {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 26px 16px; border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius);
  background: #12161F; transition: .3s var(--ease); text-align: center;
  color: #F2F4FA;
}
.integ:hover { transform: translateY(-4px); border-color: rgba(123,146,255,.4); box-shadow: 0 18px 40px -18px rgba(0,0,0,.55); }
.integ .i-logo { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 20px; background: rgba(255,255,255,.05); transition: .3s; }
.integ:hover .i-logo { transform: scale(1.08); }
.integ b { font-size: 14px; } .integ span { font-size: 11.5px; color: #79818F; }

/* ---------- Billing / Autolock (franchise) ---------- */
.billing-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.bill-panel { border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--bg-2); }
.bill-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.bill-row.head { color: var(--muted-2); font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.bill-row:last-child { border-bottom: none; }
.bill-row .fr { display: flex; align-items: center; gap: 10px; }
.bill-row .fr .fav { width: 30px; height: 30px; border-radius: 8px; background: var(--accent-t); color: var(--accent-2); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.bstat { font-size: 11.5px; font-weight: 700; padding: 4px 11px; border-radius: 6px; font-family: var(--mono); justify-self: start; }
.bstat.ok { color: var(--emerald-2); background: var(--emerald-t); }
.bstat.warn { color: var(--amber); background: rgba(245,165,36,.13); }
.bstat.blocked { color: #ff6b6b; background: rgba(255,107,107,.13); }
.hardblock {
  position: relative; margin-top: 20px; border-radius: var(--radius);
  border: 1px solid rgba(214,69,61,.35);
  background: rgba(214,69,61,.06); padding: 22px; text-align: center;
}
.hardblock .hb-ic { width: 50px; height: 50px; margin: 0 auto 14px; border-radius: 14px; background: rgba(214,69,61,.12); color: var(--red); display: grid; place-items: center; }
.hardblock b { font-size: 15px; display: block; margin-bottom: 6px; }
.hardblock p { font-size: 13px; color: var(--muted); }

/* ---------- Franchise pipeline ---------- */
.mock.flat { transform: none !important; }
.fran-board { margin-top: 8px; }
.fran-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: rgba(255,255,255,.02); }
.fran-head h4 { font-size: 15px; font-weight: 700; display: flex; gap: 10px; align-items: center; }
.fran-head h4 .pill { font-family: var(--mono); font-size: 10.5px; color: var(--emerald-2); background: var(--emerald-t); padding: 4px 10px; border-radius: 6px; }
.fran-kpis { display: flex; gap: 26px; flex-wrap: wrap; }
.fran-kpis .fk .n { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.fran-kpis .fk .n.g { color: var(--emerald-2); } .fran-kpis .fk .n.b { color: var(--accent-2); }
.fran-kpis .fk .l { font-size: 11px; color: var(--muted-2); margin-top: 2px; }
.fpipe { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; padding: 18px; }
.fstage { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 11px; }
.fstage .fh { font-size: 10.5px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; font-weight: 600; }
.fstage .fh .cnt { font-family: var(--mono); color: var(--muted-2); }
.fstage.win { border-color: rgba(59,229,156,.4); background: rgba(59,229,156,.06); }
.fstage.win .fh { color: var(--emerald-2); }
.fdeal { background: var(--accent-t); border: 1px solid var(--border-2); border-radius: 9px; padding: 8px 9px; margin-bottom: 7px; }
.fdeal:last-child { margin-bottom: 0; }
.fdeal .nm { font-size: 11.5px; font-weight: 600; }
.fdeal .mt { font-family: var(--mono); font-size: 9.5px; color: var(--muted-2); margin-top: 3px; }
.fdeal.hot { box-shadow: 0 0 0 1px rgba(123,146,255,.5), 0 0 18px -4px rgba(123,146,255,.5); position: relative; }
.fdeal.hot::after { content: '🔥'; position: absolute; top: 6px; right: 7px; font-size: 10px; }
.fdeal.won { background: rgba(59,229,156,.12); border-color: rgba(59,229,156,.4); }
.fdeal.won .mt { color: var(--emerald-2); }
.fran-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.fben { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--surface); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.fben:hover { transform: translateY(-4px); border-color: var(--border-2); box-shadow: var(--shadow-soft); }
.fben .fb-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 15px; background: var(--accent-t); color: var(--accent); }
.fben:nth-child(2) .fb-ic, .fben:nth-child(4) .fb-ic { background: var(--emerald-t); color: var(--emerald); }
.fben:nth-child(3) .fb-ic, .fben:nth-child(6) .fb-ic { background: var(--violet-t); color: var(--violet); }
.fben h4 { font-size: 16px; font-weight: 700; margin-bottom: 7px; }
.fben p { font-size: 13.5px; color: var(--muted); }
.fran-cta { text-align: center; margin-top: 38px; }

/* ---------- Cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.case {
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px;
  background: var(--surface);
  transition: .35s var(--ease);
  display: flex; flex-direction: column;
}
.case:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow-soft); }
.case .c-logo { width: 46px; height: 46px; border-radius: 12px; background: #101319; display: grid; place-items: center; color: #fff; font-weight: 800; margin-bottom: 20px; }
.case .c-big { font-family: var(--mono); font-size: clamp(34px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.case .c-desc { color: var(--muted); font-size: 14px; margin: 12px 0 18px; }
.case blockquote { font-size: 13.5px; color: var(--muted); border-top: 1px solid var(--border); padding-top: 16px; font-style: italic; margin-top: auto; }
.case .c-author { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.case .c-author .av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent-t); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--accent); }
.case .c-author b { font-size: 13px; } .case .c-author span { font-size: 11px; color: var(--muted-2); }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px;
  background: var(--surface);
  transition: .35s var(--ease);
}
.plan:hover { transform: translateY(-6px); border-color: var(--border-2); box-shadow: var(--shadow-soft); }
.plan.featured { background: #0D1015; border-color: #0D1015; box-shadow: 0 30px 70px -30px rgba(16,19,25,.55); }
.plan.free { border-color: rgba(14,159,110,.4); }
.plan.featured::before, .plan.free::before, .plan.exclusive::before, .plan.premium::before {
  position: absolute; top: 20px; right: 20px; font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 6px; letter-spacing: .08em; text-transform: uppercase;
}
.plan.featured::before { content: 'Популярный'; color: #0D1015; background: #3BE59C; }
.plan.free::before { content: 'Бесплатно'; color: var(--emerald); background: var(--emerald-t); }
.plan.exclusive::before { content: 'Эксклюзив'; color: var(--amber); background: rgba(199,122,8,.12); }
.plan.premium::before { content: 'Премиум'; color: var(--violet); background: var(--violet-t); }
.plan .p-name { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .1em; color: var(--accent); margin-bottom: 6px; }
.plan.free .p-name, .plan.featured .p-name { color: var(--emerald-2); }
.plan.premium .p-name { color: var(--violet); }
.plan .p-tag { font-size: 13px; color: var(--muted-2); margin-bottom: 22px; min-height: 34px; }
.plan .p-price { font-family: var(--mono); font-size: 38px; font-weight: 800; letter-spacing: -.03em; }
.plan .p-price small { font-size: 15px; color: var(--muted-2); font-weight: 500; }
.plan .p-price.custom { font-size: 28px; }
.plan .p-hr { height: 1px; background: var(--border); margin: 24px 0; }
.plan ul { display: flex; flex-direction: column; gap: 12px; flex: 1; margin-bottom: 26px; }
.plan li { display: flex; gap: 11px; font-size: 14px; color: var(--muted); }
.plan li svg { flex-shrink: 0; color: var(--emerald); margin-top: 3px; }
.plan.featured li svg { color: var(--emerald-2); }
.plan li.off { opacity: .45; } .plan li.off svg { color: var(--muted-2); }
.plan li.addon { color: var(--muted-2); font-size: 13px; font-family: var(--mono); }
.plan li.addon svg { color: var(--accent); }
.price-note { text-align: center; margin: 34px auto 0; max-width: 760px; color: var(--muted-2); font-size: 14px; line-height: 1.7; }
.price-note b { color: var(--text); font-weight: 600; }

/* Billing period toggle */
.bill-toggle-wrap { text-align: center; margin: -18px 0 40px; }
.bill-toggle { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-soft); }
.bill-toggle button { display: flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: .25s var(--ease); }
.bill-toggle button.on { background: #101319; color: #fff; }
.bill-toggle .save { font-family: var(--mono); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--emerald-t); color: var(--emerald); }
.bill-toggle button.on .save { background: rgba(59,229,156,.2); color: #3BE59C; }
.plan .p-price del { font-size: 17px; color: var(--muted-2); font-weight: 500; margin-right: 9px; }
.plan .p-per-note { font-family: var(--mono); font-size: 11.5px; color: var(--emerald); margin-top: 7px; min-height: 16px; }
.plan.featured .p-per-note { color: var(--emerald-2); }

/* ---------- FAQ (издательский список) ---------- */
.faq { max-width: 840px; margin: 0 auto; border-top: 1px solid var(--border-2); }
.faq-item { border-bottom: 1px solid var(--border-2); overflow: hidden; transition: background .3s; }
.faq-q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 26px 8px; text-align: left; font-size: clamp(15.5px, 1.7vw, 18px); font-weight: 600; letter-spacing: -.01em; }
.faq-q:hover { color: var(--accent); }
.faq-q .ico { flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border-2); display: grid; place-items: center; transition: .3s var(--ease); color: var(--muted); font-weight: 400; }
.faq-item.open .faq-q .ico { transform: rotate(45deg); background: #2B49F0; color: #fff; border-color: transparent; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.faq-a p { padding: 0 8px 26px; color: var(--muted); font-size: 15px; max-width: 720px; }

/* ---------- Final CTA (чернильная секция) ---------- */
.final { padding: clamp(70px, 9vw, 120px) 0; background: var(--bg); color: var(--text); }
.final-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--bg-2);
  padding: clamp(34px, 5vw, 64px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center;
}
.final-card::before { content: ''; position: absolute; top: -30%; left: -10%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(123,146,255,.14), transparent 65%); pointer-events: none; }
.final-card h2 { font-family: var(--display); font-size: clamp(23px, 3vw, 36px); font-weight: 600; letter-spacing: -.01em; line-height: 1.16; position: relative; }
.final-card p { color: var(--muted); margin: 18px 0 26px; position: relative; }
.final-benefits { display: flex; flex-direction: column; gap: 12px; position: relative; }
.final-benefits div { display: flex; gap: 10px; align-items: center; font-size: 14.5px; }
.final-benefits svg { color: var(--emerald-2); flex-shrink: 0; }

/* внутри светлых секций (тизер франшизы) карточка остаётся светлой */
.section-pad .final-card { background: var(--surface); border-color: var(--border); }
.section-pad .final-card::before { background: radial-gradient(circle, rgba(43,73,240,.08), transparent 65%); }
.section-pad .final-card h2 { font-size: clamp(22px, 2.8vw, 33px); }

.lead-form { position: relative; display: flex; flex-direction: column; gap: 14px; }
.lead-form .field label { font-size: 12.5px; color: var(--muted); margin-bottom: 6px; display: block; font-family: var(--mono); letter-spacing: .04em; }
.lead-form input {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font-size: 14.5px;
  transition: border-color .2s, box-shadow .2s;
}
.lead-form input::placeholder { color: var(--muted-2); }
.lead-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(123,146,255,.15); }
.lead-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lead-form select {
  width: 100%; padding: 14px 16px; border-radius: 12px;
  border: 1px solid var(--border-2); background-color: var(--surface); color: var(--text); font-size: 14.5px;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) center, calc(100% - 15px) center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.lead-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(123,146,255,.15); }
.lead-form select option { background: #12161F; color: #F2F4FA; }
.form-note { font-size: 12px; color: var(--muted-2); text-align: center; }
.form-err { font-size: 13px; color: #fb7185; text-align: center; }
.form-ok { display: none; text-align: center; padding: 30px; }
.form-ok.show { display: block; animation: fadeUp .5s var(--ease); }
.form-ok .ok-ic { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 16px; background: var(--emerald-t); color: var(--emerald-2); display: grid; place-items: center; }
.form-ok h3 { font-size: 22px; margin-bottom: 8px; } .form-ok p { color: var(--muted); }
.form-ok .ok-redirect { font-family: var(--mono); font-size: 12px; color: var(--muted-2); margin-top: 14px; }

/* ---------- Footer (чернильный финал) ---------- */
.footer { border-top: 1px solid var(--border); padding: 64px 0 34px; background: var(--bg); color: var(--text); }
.final + .footer { border-top: 1px solid rgba(255,255,255,.08); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin: 16px 0 20px; max-width: 300px; }
.foot-col h5 { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); margin-bottom: 16px; font-family: var(--mono); }
.foot-col a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 11px; transition: color .2s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--border); padding-top: 26px; color: var(--muted-2); font-size: 13px; flex-wrap: wrap; gap: 12px; position: relative; }
.foot-bottom::before {
  content: 'DialogCRM';
  flex-basis: 100%;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(52px, 10.5vw, 150px);
  line-height: .95;
  text-align: center;
  letter-spacing: -.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,.12);
  margin-bottom: 26px;
  user-select: none;
  pointer-events: none;
}

/* ---------- Галерея скриншотов продукта ---------- */
.shot-frame { max-width: 1080px; margin: 0 auto; }
.shot-body { background: #0D1015; }
.shot-body img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 1872 / 927;
  object-fit: cover; object-position: top;
}
.shot-cap {
  max-width: 1080px;
  margin: 16px auto 0;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  color: var(--muted-2);
  text-align: right;
}
.shot-tabs { margin-bottom: 36px; }

/* ---------- Юридические страницы ---------- */
.legal-head { max-width: 880px; margin: 0 auto 36px; }
.legal-head .title { font-size: clamp(21px, 2.8vw, 32px); }
.legal-doc {
  max-width: 880px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 52px);
  white-space: pre-line;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--muted);
  overflow-wrap: break-word;
}

/* ---------- Чекбокс согласия 152-ФЗ ---------- */
.consent { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; text-align: left; }
.consent input { width: 18px; height: 18px; min-width: 18px; margin-top: 2px; accent-color: #2B49F0; cursor: pointer; }
.consent span { font-size: 12px; color: var(--muted-2); line-height: 1.55; }
.consent a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.consent a:hover { color: var(--accent-hi); }

.foot-addr { display: block; color: var(--muted-2); font-size: 13px; margin-top: 6px; max-width: 220px; }
.foot-bottom a:hover { color: var(--text); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------- GSAP motion mode ---------- */
html.gsap-motion .reveal { opacity: 1; transform: none; transition: none; }
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px;
  background: #2B49F0;
  transform: scaleX(0); transform-origin: 0 50%;
  z-index: 200; pointer-events: none;
}

/* Маска пословного раскрытия заголовка героя */
.hw { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.hw-in { display: inline-block; will-change: transform; }

/* Магнитная кнопка: transform отдан GSAP */
[data-magnetic] { transition: box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease); }

/* ---------- Манифест (scrub-высказывание) ---------- */
.manifest { padding: clamp(80px, 10vw, 150px) 0; }
.manifest-text {
  font-family: var(--display);
  font-size: clamp(22px, 3.4vw, 42px);
  font-weight: 600;
  line-height: 1.32;
  letter-spacing: -.01em;
  max-width: 1020px;
  margin: 0 auto;
  text-align: center;
}
.manifest-text em { font-style: normal; color: var(--accent); }
.manifest-text .w { color: rgba(16,19,25,.16); transition: color .1s linear; }
.manifest-text .w em, .manifest-text .w { font-style: normal; }
.manifest-text .w.lit { color: #101319; }
.manifest-text .w.hl { color: rgba(43,73,240,.18); }
.manifest-text .w.hl.lit { color: var(--accent); }
.manifest-tag {
  display: block;
  text-align: center;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 34px;
}

/* ---------- Keyframes ---------- */
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes wave { 0%,100% { height: 8px; } 50% { height: 34px; } }
@keyframes blink { 0%,100% { opacity: .3; } 50% { opacity: 1; } }
@keyframes scrollx { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes ripple { from { opacity: .8; transform: scale(.3); } to { opacity: 0; transform: scale(3.5); } }
@keyframes dragcard { 0%,20% { transform: translateY(0) scale(1); } 40%,60% { transform: translateY(46px) scale(1.03); } 80%,100% { transform: translateY(0) scale(1); } }
@keyframes toastIn { 0%,10% { transform: translateY(80px); opacity: 0; } 20%,80% { transform: translateY(0); opacity: 1; } 92%,100% { transform: translateY(80px); opacity: 0; } }
@keyframes installUp { 0%,8% { transform: translateY(90px); opacity: 0; } 18%,82% { transform: translateY(0); opacity: 1; } 94%,100% { transform: translateY(90px); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001s !important; animation-iteration-count: 1 !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .manifest-text .w { color: #101319; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero .container, .persona-grid, .routing-wrap, .sec-grid, .pwa-grid, .calc, .billing-grid, .final-card { grid-template-columns: 1fr; }
  .hero-mock-wrap { display: none; }
  .bento .c-4, .bento .c-3, .bento .c-2 { grid-column: span 3; }
  .cases-grid, .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .burger { display: flex; }
  .fran-benefits { grid-template-columns: 1fr 1fr; }
  .fpipe { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .fpipe .fstage { min-width: 165px; scroll-snap-align: start; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .metrics { gap: 14px 0; flex-direction: column; }
  .metric { padding: 2px 0 2px 16px; }
  .bento { grid-template-columns: 1fr; } .bento .c-6, .bento .c-4, .bento .c-3, .bento .c-2 { grid-column: span 1; }
  .lead-form .row2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .persona-tabs { width: 100%; }
  .nav-cta .login, .nav-cta .btn-ghost { display: none; }
  .kanban { grid-template-columns: 1fr; }
  .kanban .kcol:nth-child(3) { display: none; }
  .fran-benefits { grid-template-columns: 1fr; }
  .otp span { width: 40px; height: 50px; font-size: 20px; }
}

/* Mobile nav panel */
.mnav { position: fixed; inset: 74px 0 auto 0; z-index: 99; background: rgba(244,243,238,.98); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); padding: 20px 24px 28px; display: none; flex-direction: column; gap: 6px; }
.mnav.open { display: flex; }
.mnav a { padding: 12px 0; color: var(--muted); font-size: 16px; border-bottom: 1px solid var(--border); }
.mnav .btn { margin-top: 12px; }
