/* ─── Zarubka site — общий стиль ─────────────────────────────────────
   Токены привязаны к brand-spec.md. Цвета только здесь, дальше — var(). */

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

:root {
  --bg:      oklch(0.984 0.003 247);
  --surface: oklch(1 0 0);
  --fg:      oklch(0.21 0.02 264);
  --muted:   oklch(0.47 0.02 264);
  --border:  oklch(0.92 0.005 256);
  --accent:  oklch(0.545 0.185 262);
  --accent-text: var(--accent);

  --accent-soft: color-mix(in oklch, var(--accent) 12%, transparent);
  --accent-hover: color-mix(in oklch, var(--accent) 86%, black);
  --fg-soft:     color-mix(in oklch, var(--fg) 5%, transparent);
  --on-accent:   oklch(1 0 0);
  --tag-body:    oklch(0.878 0.012 256);

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

  --fs-h1: clamp(34px, 4.6vw, 58px);
  --fs-h2: clamp(26px, 3.4vw, 40px);
  --fs-h3: 21px;
  --fs-lead: 19px;
  --fs-body: 16px;
  --fs-meta: 13px;

  --gap-xs: 8px;
  --gap-sm: 12px;
  --gap-md: 20px;
  --gap-lg: 32px;
  --gap-xl: 56px;
  --gap-2xl: 96px;
  --container: 1120px;
  --gutter: 32px;

  --radius: 10px;
  --radius-lg: 16px;

  /* моушн-токены (animate / apple-design): ease-out, без ease-in */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-spring: cubic-bezier(0.2, 1.05, 0.3, 1);
  --dur-fast: 150ms;
  --dur-ui: 240ms;
  --dur-reveal: 520ms;

  --shadow-card: 0 1px 2px color-mix(in oklch, var(--fg) 5%, transparent),
                 0 6px 12px -8px color-mix(in oklch, var(--fg) 28%, transparent);
  --shadow-lift: 0 2px 6px color-mix(in oklch, var(--fg) 6%, transparent),
                 0 10px 16px -10px color-mix(in oklch, var(--fg) 36%, transparent);
}

/* Тёмная тема: включается скриптом через data-theme (auto = prefers-color-scheme) */
html[data-theme="dark"] {
  --bg:      oklch(0.175 0.012 264);
  --surface: oklch(0.225 0.014 264);
  --fg:      oklch(0.955 0.006 247);
  --muted:   oklch(0.72 0.015 264);
  --border:  oklch(0.30 0.014 264);
  /* заливка primary-контролов: белый текст 5.4:1 (WCAG AA) */
  --accent:  oklch(0.533 0.191 263);
  /* акцентный текст на тёмном фоне: 5.9:1 на #1A2740 и выше на --bg */
  --accent-text: oklch(0.716 0.137 260);

  --accent-soft: color-mix(in oklch, var(--accent) 18%, transparent);
  /* hover уходит в темноту, не в светлость — белый текст остаётся читаемым */
  --accent-hover: color-mix(in oklch, var(--accent) 86%, black);
  --fg-soft:     color-mix(in oklch, var(--fg) 7%, transparent);
  --tag-body:    oklch(0.27 0.016 264);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
p { text-wrap: pretty; }
h1, h2, h3, h4 { text-wrap: balance; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.container { max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 1100px) { .section { padding-top: 88px; padding-bottom: 88px; } }
.section + .section { border-top: 1px solid var(--border); }
.stack { display: flex; flex-direction: column; }
.stack > * + * { margin-top: var(--gap-md); }
.row { display: flex; align-items: center; gap: var(--gap-md); }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap-md); }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: var(--gap-xl); align-items: start; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: var(--gap-xl); align-items: start; }
.grid-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-2xl); align-items: center; }
@media (max-width: 920px) {
  .grid-2, .grid-3, .grid-4, .grid-2-1, .grid-1-2, .grid-1-1 { grid-template-columns: 1fr; }
}

.h1, h1 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h1); line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
.h2, h2 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h2); line-height: 1.14; letter-spacing: -0.015em; margin: 0; }
.h3, h3 { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-h3); line-height: 1.3; letter-spacing: -0.005em; margin: 0; }
.lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--muted); max-width: 62ch; margin: 0; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--gap-md);
}
.meta { font-family: var(--font-mono); font-size: var(--fs-meta); color: var(--muted); }
.num  { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.prose p { margin: 0; max-width: 68ch; }
.prose p + p { margin-top: var(--gap-sm); }
.prose ul { margin: 0; padding-left: 20px; max-width: 68ch; }
.prose li + li { margin-top: 6px; }
.text-link { color: var(--accent-text); text-decoration: none; border-bottom: 1px solid color-mix(in oklch, var(--accent-text) 35%, transparent); }
.text-link:hover { border-bottom-color: var(--accent-text); }

/* ─── nav ─────────────────────────────────────────────────────────── */
.topnav {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in oklch, var(--bg) 90%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topnav-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--gap-md); padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.brand span { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.topnav nav { display: flex; gap: 26px; }
.topnav nav a { font-size: 14px; color: var(--muted); text-decoration: none; }
.topnav nav a:hover { color: var(--fg); }
.topnav nav a[aria-current="page"] { color: var(--fg); font-weight: 600; }
.topnav-actions { display: flex; align-items: center; gap: 10px; }

/* переключатель темы */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--fg);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out);
}
.theme-toggle:hover { border-color: var(--fg); }
.theme-toggle:active { transform: scale(0.96); }
.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* бургер (только <920px) */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  position: relative;
  transition: border-color var(--dur-fast) var(--ease-out);
}
.nav-burger:hover { border-color: var(--fg); }
.nav-burger span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--fg);
  transition: transform var(--dur-ui) var(--ease-out), top var(--dur-ui) var(--ease-out);
}
.nav-burger span:first-child { top: 15px; }
.nav-burger span:last-child { top: 23px; }
.nav-burger[aria-expanded="true"] span:first-child { top: 19px; transform: rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { top: 19px; transform: rotate(-45deg); }

.mobile-panel {
  display: none;
  border-top: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur-ui) var(--ease-out);
}
.mobile-panel.open { grid-template-rows: 1fr; }
.mobile-panel nav {
  display: flex; flex-direction: column;
  padding: 12px var(--gutter) 20px;
  min-height: 0;
  overflow: hidden;
}
.mobile-panel nav a.btn { color: var(--on-accent); border-bottom: 0; }
.mobile-panel nav a {
  padding: 13px 0;
  font-size: 16px;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color var(--dur-fast) var(--ease-out);
}
.mobile-panel nav a:last-of-type { border-bottom: 0; }
.mobile-panel nav a:active { color: var(--accent-text); }
.mobile-panel .btn { margin-top: 14px; }

@media (max-width: 920px) {
  .topnav-inner > nav { display: none; }
  .topnav .topnav-cta { display: none; }
  .nav-burger { display: block; }
  .mobile-panel { display: grid; }
}

/* ─── buttons ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 11px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--on-accent); transform: translateY(-1px); box-shadow: var(--shadow-card); }
.btn-primary:active { transform: scale(0.98); box-shadow: none; }
.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--fg); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: transparent; padding-inline: 8px; }
.btn-ghost:hover { color: var(--accent-text); }
.btn-arrow::after { content: '→'; transition: transform var(--dur-ui) var(--ease-out); }
.btn-arrow:hover::after { transform: translateX(3px); }

/* ─── cards / features ────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-flat { background: transparent; border: 0; padding: 0; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card p + p { margin-top: 8px; }
.feature h3 { margin-bottom: 6px; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
.feature p + p { margin-top: 8px; }

/* ─── pills / tags ────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
}
.tag img { width: 16px; height: 16px; border-radius: 4px; }
a.tag:hover { border-color: var(--fg); }

/* ─── steps ───────────────────────────────────────────────────────── */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-lg); }
@media (max-width: 920px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--fg); padding-top: 20px; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  display: block;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

/* ─── FAQ ─────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--gap-md);
  padding: 20px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--muted);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: '−'; }
.faq details div { padding: 0 0 22px; color: var(--muted); max-width: 72ch; font-size: 15px; }
.faq details div p { margin: 0; }
.faq details div p + p { margin-top: 8px; }

/* ─── table ───────────────────────────────────────────────────────── */
.ds-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ds-table th, .ds-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.ds-table th { color: var(--muted); font-weight: 500; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.ds-table tbody tr:hover { background: var(--fg-soft); }

/* ─── hero ────────────────────────────────────────────────────────── */
.hero { padding-block: 88px; padding-block: clamp(56px, 9vw, 120px); }
.hero-center { text-align: center; }
.hero-center .lead { margin-inline: auto; }
.hero h1 { margin-bottom: var(--gap-md); }
.hero .lead { margin-bottom: var(--gap-lg); }
.hero-cta { display: inline-flex; gap: var(--gap-sm); flex-wrap: wrap; }
.hero-center .hero-cta { justify-content: center; }
.hero-badges { display: flex; gap: var(--gap-xs); flex-wrap: wrap; margin-bottom: var(--gap-lg); }
.hero-center .hero-badges { justify-content: center; }

/* ─── chat mock (стилизованный UI продукта) ───────────────────────── */
.mock {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 13px;
  box-shadow: 0 12px 40px -24px color-mix(in oklch, var(--fg) 35%, transparent);
}
.mock-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.mock-bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.mock-body { display: grid; grid-template-columns: 180px 1fr; min-height: 320px; }
@media (max-width: 560px) { .mock-body { grid-template-columns: 1fr; } .mock-list { display: none; } }
.mock-list { border-right: 1px solid var(--border); padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.mock-chat { padding: 8px 10px; border-radius: 8px; }
.mock-chat.active { background: var(--accent-soft); }
.mock-chat .name { font-weight: 600; font-size: 13px; }
.mock-chat .proj { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.mock-chat.unbound .proj { color: var(--accent); }
.mock-thread { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 85%; }
.msg .who { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-bottom: 3px; }
.msg .bubble {
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--fg-soft);
  line-height: 1.45;
}
.msg.in { align-self: flex-start; }
.msg.out { align-self: flex-end; text-align: right; }
.msg.out .bubble { background: var(--accent); color: var(--on-accent); text-align: left; }
.msg .sig { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 3px; }
.msg .edited { color: var(--muted); font-style: italic; }
.mock-note {
  padding: 8px 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ─── diagram (межпортальная схема) ───────────────────────────────── */
.diagram {
  display: flex; align-items: stretch; gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  overflow-x: auto;
}
.dg-node {
  flex: 1 1 0;
  min-width: 130px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 4px; justify-content: center;
}
.dg-node.core { border-color: var(--accent); background: var(--accent-soft); }
.dg-node .t { font-weight: 600; font-size: 14px; }
.dg-node .s { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.dg-link {
  flex: 0 0 64px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding-inline: 6px;
}
.dg-link .arr { height: 1px; background: var(--fg); position: relative; }
.dg-link .arr::after {
  content: '';
  position: absolute; top: -3.5px;
  border: 4px solid transparent;
}
.dg-link .arr.r::after { right: -1px; border-left-color: var(--fg); }
.dg-link .arr.l::after { left: -1px; border-right-color: var(--fg); }
.dg-link .cap { font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-align: center; }

/* ─── stat ────────────────────────────────────────────────────────── */
.stat .stat-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(44px, 6vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.stat .stat-label { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 26ch; }

/* ─── rule ────────────────────────────────────────────────────────── */
.rule { border: 0; border-top: 1px solid var(--border); margin: 0; }
.rule-strong { border: 0; border-top: 1px solid var(--fg); margin: 0; }

/* ─── footer ──────────────────────────────────────────────────────── */
.pagefoot { border-top: 1px solid var(--border); padding-block: var(--gap-xl) var(--gap-lg); font-size: 14px; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--gap-lg); margin-bottom: var(--gap-xl); }
@media (max-width: 920px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-grid a { color: var(--fg); text-decoration: none; }
.foot-grid a:hover { color: var(--accent-text); }
.foot-brand img { width: 34px; height: 34px; margin-bottom: 14px; }
.foot-brand p { margin: 0; max-width: 30ch; font-size: 13px; }
.foot-legal { border-top: 1px solid var(--border); padding-top: var(--gap-md); display: flex; justify-content: space-between; gap: var(--gap-md); flex-wrap: wrap; font-size: 12.5px; }

/* ─── misc ────────────────────────────────────────────────────────── */
.avatar-row { display: flex; align-items: center; gap: var(--gap-md); }
.avatar-row img { width: 56px; height: 56px; border-radius: 14px; }
.notice {
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 15px;
  max-width: 72ch;
}
.notice p { margin: 0; }
.notice p + p { margin-top: 6px; }
.content-img {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--radius-lg);
}

/* ─── scroll-reveal (stagger 40–70ms через --rv-d) ─────────────────── */
.rv {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-reveal) var(--ease-out),
              transform var(--dur-reveal) var(--ease-out);
  transition-delay: var(--rv-d, 0ms);
  will-change: opacity, transform;
}
.rv.in { opacity: 1; transform: none; }

/* ─── hero v2 ───────────────────────────────────────────────────────── */
.hero-v2 {
  position: relative;
  padding-block: clamp(40px, 6vw, 88px) clamp(56px, 8vw, 104px);
  overflow: hidden;
}
.hero-v2-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero-v2 h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin-bottom: var(--gap-md);
}
.hero-v2 .lead {
  font-weight: 300;
  font-size: clamp(17px, 1.6vw, 20px);
  margin-bottom: var(--gap-lg);
}
.hero-v2 .lead strong { font-weight: 500; color: var(--fg); }
.hero-v2 .hero-cta { margin-bottom: var(--gap-lg); }
.hero-badges .tag { transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.hero-badges a.tag:hover { transform: translateY(-1px); }

/* 3D-сцена: бирка с зарубками */
.tag-stage {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: min(72vh, 620px);
  margin-inline: auto;
  width: 100%;
}
.tag-stage canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  display: block;
}
.tag-stage .tag-poster {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
}
.tag-stage.gl-on .tag-poster { visibility: hidden; }
.tag-stage::after {
  content: '';
  position: absolute;
  left: 18%; right: 18%; bottom: 4%;
  height: 28px;
  background: radial-gradient(ellipse at center,
    color-mix(in oklch, var(--fg) 22%, transparent), transparent 70%);
  filter: blur(6px);
  z-index: -1;
}

@media (max-width: 920px) {
  .hero-v2-grid { grid-template-columns: 1fr; }
  .tag-stage { aspect-ratio: 1 / 1; max-height: 380px; max-width: 420px; }
}

/* ─── reduced motion: всё статично ─────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .btn, .btn-arrow::after, .tag, .theme-toggle, .nav-burger span, .mobile-panel { transition: none; }
  .btn-primary:hover, .btn-secondary:hover, .hero-badges a.tag:hover { transform: none; }
}

/* ─── канальные маркеры (палитра каналов из брифа) ─────────────────── */
:root {
  --ch-tg: #29A9EB;
  --ch-max: #7C5CFC;
  --ch-collab: #0D8FD6;
}
.ch-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.ch-dot.tg { background: var(--ch-tg); }
.ch-dot.max { background: var(--ch-max); }
.ch-dot.collab { background: var(--ch-collab); }
.channel-card { display: flex; flex-direction: column; gap: 8px; }
.channel-card .row { gap: 10px; }

/* =============================================================================
   ЕДИНАЯ ДИЗАЙН-СИСТЕМА v13 (бывший landing.css, слит в site.css):
   lp-hero, liquid-glass навигация, прелоадер, курсор, FAQ, схема,
   финальный CTA, зерно, sticky CTA. Общие стили всех страниц.
   ========================================================================== */
/* =============================================================================
   landing.css — общие стили посадочных страниц Зарубки (тёмная тема).
   Наследует дизайн-язык главной (hero-v13): единый easing, liquid-glass
   навигация, прелоадер, курсор, FAQ, схема, финальный CTA, зерно.
   Скрытие для анимаций добавляет только JS — без JS страница финальная.
   ========================================================================== */
:root { --ez: cubic-bezier(0.16, 1, 0.3, 1); }

/* ─── появление: fade-up y20, 0.8s, delays через --au-d ────────────── */
.au {
  transition: opacity 800ms var(--ez), transform 800ms var(--ez);
  transition-delay: var(--au-d, 0ms);
}
.au.au-off { opacity: 0; transform: translateY(20px); }

/* ─── прелоадер: бренд-связка + индикатор «три точки», fade-out 380мс ── */
.preloader {
  position: fixed; inset: 0; z-index: 10190;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 26px;
  background: #0F1116;
  transition: opacity 380ms var(--ez), visibility 0s linear 380ms;
}
.preloader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader__lockup { width: 200px; height: auto; }
.preloader__dots { display: flex; gap: 8px; }
.preloader__dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #3F84F6;
  animation: pre-hop 1.05s var(--ez, cubic-bezier(0.16, 1, 0.3, 1)) infinite;
}
.preloader__dots i:nth-child(2) { animation-delay: 150ms; }
.preloader__dots i:nth-child(3) { animation-delay: 300ms; }
@keyframes pre-hop {
  0%, 55%, 100% { transform: translateY(0); opacity: 0.45; }
  25% { transform: translateY(-7px); opacity: 1; }
}

/* ─── lp-hero: компактный тёмный hero посадочной страницы.
   Канальная aurora-доминанта задаётся переменной --ch на секции. ───── */
.lp-hero {
  --h-fg: #F2F5F9;
  --h-muted: #A9B6CE;
  --h-line: rgba(255, 255, 255, 0.13);
  --ch: #2670EE; /* бренд-синий по умолчанию; страницы каналов переопределяют */
  position: relative;
  background:
    radial-gradient(760px 380px at 12% -10%, color-mix(in oklch, var(--ch) 26%, transparent), transparent 62%),
    radial-gradient(700px 360px at 88% -12%, color-mix(in oklch, var(--ch) 20%, transparent), transparent 60%),
    linear-gradient(180deg, #0A0E18 0%, #0F1116 88%);
  color: var(--h-fg);
  overflow: hidden;
  padding-top: clamp(120px, 16vh, 168px);
  padding-bottom: clamp(64px, 9vh, 104px);
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.lp-hero-inner { position: relative; z-index: 2; }
.lp-hero .crumbs { margin-bottom: 26px; }
.lp-hero .crumbs a { color: inherit; }
.lp-hero .eyebrow { color: color-mix(in oklch, var(--ch) 55%, #FFFFFF); }
.lp-hero h1 {
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--h-fg);
  max-width: 20ch;
  margin: 0 auto clamp(18px, 2.2vw, 26px);
}
.lp-hero h1 .w { display: inline-block; white-space: nowrap; }
.lp-hero h1 .ch {
  display: inline-block;
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 500ms var(--ez), transform 500ms var(--ez);
  transition-delay: var(--cd, 0ms);
  will-change: opacity, transform;
}
.lp-hero h1.chars-in .ch { opacity: 1; transform: none; }
/* официальный логотип Битрикс24 инлайн в H1: высота как заглавная буква */
.lp-hero h1 .b24-logo {
  height: 0.78em;
  width: auto;
  vertical-align: -0.1em;
}
.lp-hero .lead {
  font-weight: 400;
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--h-muted);
  max-width: 62ch;
  margin-inline: auto;
  margin-bottom: clamp(26px, 3vw, 36px);
}
.lp-hero .hero-cta { justify-content: center; }
.lp-hero .btn {
  transition: transform 300ms var(--ez), background 240ms var(--ez),
              border-color 240ms var(--ez), box-shadow 300ms var(--ez);
}
.lp-hero .btn-primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
              0 10px 26px -14px rgba(2, 6, 16, 0.6);
}
.lp-hero .btn-primary:hover {
  transform: scale(1.02);
  color: var(--on-accent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32),
              0 14px 32px -16px rgba(2, 6, 16, 0.7);
}
.lp-hero .btn-primary:active { transform: scale(0.98); }
.lp-hero .btn-ghost {
  color: var(--h-fg);
  border: 1px solid var(--h-line);
  padding-inline: 18px;
  background: transparent;
}
.lp-hero .btn-ghost:hover { color: var(--h-fg); border-color: rgba(255, 255, 255, 0.4); transform: scale(1.02); }
.lp-hero .btn-secondary {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--h-line);
  color: var(--h-fg);
}
.lp-hero .btn-secondary:hover { border-color: rgba(255, 255, 255, 0.4); color: var(--h-fg); transform: scale(1.02); }
.hero-free { margin: 14px 0 0; font-size: 13px; color: var(--h-muted); }

/* ─── иконки: morphicons (inline path, spring-морф между состояниями) ── */
.ic { display: inline-block; flex: none; vertical-align: -2px; }
.btn-arrow::after { content: none; }
.btn-arrow .ic { width: 16px; height: 16px; margin-left: 9px; }
.text-link .ic { width: 13px; height: 13px; margin-left: 5px; }
.faq-x .ic { width: 13px; height: 13px; }
.topnav4 .nav-burger svg { display: block; }

/* ─── магнитные кнопки: смещение через --mgx/--mgy (ставит JS) ─────── */
@media (hover: hover) and (pointer: fine) {
  .lp-hero .btn-primary, .lp-hero .btn-ghost, .lp-hero .btn-secondary,
  .topnav4 .btn-mini, .topnav4 nav a, .final-cta .btn-primary {
    transform: translate3d(var(--mgx, 0px), var(--mgy, 0px), 0);
  }
  .lp-hero .btn-primary:hover, .lp-hero .btn-ghost:hover, .lp-hero .btn-secondary:hover,
  .topnav4 .btn-mini:hover, .final-cta .btn-primary:hover {
    transform: translate3d(var(--mgx, 0px), var(--mgy, 0px), 0) scale(1.02);
  }
  .lp-hero .btn-primary:active {
    transform: translate3d(var(--mgx, 0px), var(--mgy, 0px), 0) scale(0.98);
  }
  .topnav4 nav a { transition: transform 400ms var(--ez), color 200ms var(--ez); }
}

/* ─── кастомный курсор: точка + кольцо, всегда поверх (виджет Б24 — 10150) ── */
.cur-dot, .cur-ring {
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 10200;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 200ms var(--ez);
}
.cur-dot { width: 6px; height: 6px; background: #F2F5F9; }
.cur-ring {
  width: 48px; height: 48px;
  border: 1.5px solid rgba(242, 245, 249, 0.55);
  transition: opacity 200ms var(--ez), border-color 240ms var(--ez);
}
.cur-dot.on, .cur-ring.on { opacity: 1; }
.cur-ring.hot { border-color: #FFFFFF; }
html.has-cur :not(input):not(textarea):not([contenteditable]) { cursor: none !important; }
/* над любым UI виджета Б24 (кнопка, попап, окно чата) — нативный курсор;
   атрибуты продублированы для специфики: перебиваем blanket-правило выше */
html.has-cur [class*="b24-widget"][class*="b24-widget"],
html.has-cur [class*="b24-widget"][class*="b24-widget"] *,
html.has-cur [class*="bx-livechat"][class*="bx-livechat"],
html.has-cur [class*="bx-livechat"][class*="bx-livechat"] * { cursor: auto !important; }

/* ─── liquid glass pill-навигация ──────────────────────────────────── */
.topnav4 {
  position: fixed;
  top: 14px; left: 0; right: 0;
  z-index: 60;
  pointer-events: none;
}
.topnav4-inner {
  pointer-events: auto;
  position: relative;
  width: fit-content;
  max-width: calc(100vw - 24px);
  margin-inline: auto;
  display: flex; align-items: center; gap: 20px;
  padding: 8px 10px 8px 18px;
  border-radius: 999px;
  background: rgba(13, 18, 30, 0.55);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 12px 40px -16px rgba(4, 8, 18, 0.55);
  transition: background-color 240ms var(--ez), box-shadow 240ms var(--ez);
}
.topnav4-inner::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  padding: 1.3px;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.05) 32%, rgba(255, 255, 255, 0.05) 68%, rgba(255, 255, 255, 0.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
}
.topnav4.scrolled .topnav4-inner {
  background: rgba(9, 13, 22, 0.82);
  box-shadow: 0 14px 44px -16px rgba(4, 8, 18, 0.7);
}
.topnav4 .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.topnav4 .brand img { width: 30px; height: 30px; }
.topnav4 .brand span { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: #F2F5F9; }
.topnav4 nav { display: flex; gap: 22px; }
.topnav4 nav a { font-size: 14px; color: #C7D2E6; text-decoration: none; transition: color 200ms var(--ez); }
.topnav4 nav a:hover { color: #FFFFFF; }
.topnav4 nav a[aria-current="page"] { color: #FFFFFF; }
.topnav4-actions { display: flex; align-items: center; gap: 8px; }
.topnav4 .nav-burger {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.16);
  color: #EAF0FA;
  border-radius: 999px;
  transition: border-color 200ms var(--ez);
}
.topnav4 .nav-burger:hover { border-color: rgba(255, 255, 255, 0.4); }
.topnav4 .btn-mini {
  min-height: 38px;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 14px;
  background: #2670EE;
  border-color: #2670EE;
  color: #FFFFFF;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 8px 20px -12px rgba(2, 6, 16, 0.55);
  transition: transform 300ms var(--ez), background 240ms var(--ez), box-shadow 300ms var(--ez);
}
.topnav4 .btn-mini:hover { background: #1E63D8; border-color: #1E63D8; color: #FFFFFF; transform: scale(1.02); }

/* ─── мобильный drawer: blur-оверлей + панель справа ───────────────── */
.drawer-overlay {
  position: fixed; inset: 0;
  z-index: 54;
  background: rgba(4, 8, 16, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms var(--ez), visibility 0s linear 300ms;
}
.drawer-overlay.open { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(320px, 86vw);
  z-index: 56;
  display: flex; flex-direction: column;
  padding: 92px 22px 24px;
  background: rgba(12, 17, 28, 0.92);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  box-shadow: -24px 0 64px -20px rgba(2, 6, 14, 0.75);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateX(102%);
  visibility: hidden;
  transition: transform 500ms var(--ez), visibility 0s linear 500ms;
}
.drawer.open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer nav { display: flex; flex-direction: column; }
.drawer nav > a {
  padding: 14px 2px;
  font-size: 17px;
  color: #EAF0FA;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateX(24px);
  transition: transform 420ms var(--ez), opacity 420ms var(--ez), color 200ms var(--ez);
  transition-delay: var(--d, 0ms);
}
.drawer.open nav > a { opacity: 1; transform: none; }
.drawer nav > a:hover { color: #FFFFFF; }
.drawer nav > a:last-of-type { border-bottom: 0; }
.drawer .btn {
  margin-top: auto;
  width: 100%;
  justify-content: center;
  transition: transform 300ms var(--ez), background 240ms var(--ez), box-shadow 300ms var(--ez);
}
body.drawer-open { overflow: hidden; }

/* ─── FAQ: плавное раскрытие, «+» поворачивается в «×» ─────────────── */
.faq5 { border-top: 1px solid var(--border); padding-top: 8px; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 0;
  background: none; border: 0; cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.005em;
  color: var(--fg);
  transition: color 200ms var(--ez);
}
.faq-q:hover { color: var(--accent-text); }
.faq-x {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid var(--border);
  display: grid; place-items: center;
  color: var(--muted);
  transition: color 200ms var(--ez), border-color 200ms var(--ez);
}
.faq-item.open .faq-x { color: var(--fg); border-color: var(--fg); }
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 420ms var(--ez);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a-inner { overflow: hidden; min-height: 0; }
.faq-a-body { padding: 0 0 22px; color: var(--muted); max-width: 72ch; font-size: 15px; }
.faq-a-body p { margin: 0; }
.faq-a-body p + p { margin-top: 8px; }

/* ─── рамка браузера для реального UI ──────────────────────────────── */
.browser5 {
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.browser5-bar {
  display: flex; align-items: center; gap: 10px;
  min-height: 42px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.browser5-bar .dots { display: inline-flex; gap: 6px; }
.browser5-bar .dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.demo-note {
  margin: 18px 0 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}

/* ─── таблицы в потоке: горизонтальный скролл внутри контейнера ────── */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .ds-table { min-width: 640px; }

/* ─── hover-лифт карточек ─────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .lift { transition: transform 240ms var(--ez), box-shadow 240ms var(--ez), border-color 240ms var(--ez); }
  .lift:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); }
}

/* ─── cross-portal: тёмная секция со схемой и aurora-стиллом ───────── */
.cross-portal {
  --cp-fg: #F2F5F9;
  --cp-muted: #A9B6CE;
  --cp-line: rgba(255, 255, 255, 0.2);
  position: relative;
  background:
    radial-gradient(900px 420px at 18% 0%, rgba(155, 123, 255, 0.16), transparent 60%),
    radial-gradient(900px 420px at 85% 110%, rgba(41, 169, 235, 0.14), transparent 60%),
    linear-gradient(180deg, #090D16 0%, #0C1018 100%);
  color: var(--cp-fg);
  border-top-color: transparent;
  overflow: hidden;
}
.cross-portal::before {
  content: '';
  position: absolute; inset: 0;
  background: url("aurora-cross.jpg") center / cover no-repeat;
  opacity: 0.13;
  pointer-events: none;
}
.cross-portal > .container { position: relative; }
.cross-portal .eyebrow { color: #B39FFF; }
.cross-portal h2, .cross-portal h3 { color: var(--cp-fg); }
.cross-portal .lead { color: var(--cp-muted); }
.cross-portal .prose p { color: var(--cp-muted); }
.cross-portal .btn-ghost { color: var(--cp-fg); }
.cross-portal .btn-ghost:hover { color: #B39FFF; }
.cp-diagram {
  display: flex; align-items: stretch;
  border: 1px solid var(--cp-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  position: relative;
}
.cp-diagram .dg-node {
  flex: 1 1 0;
  min-width: 130px;
  border: 1px solid var(--cp-line);
  border-radius: var(--radius);
  padding: 14px 16px;
  background: rgba(13, 18, 30, 0.6);
  display: flex; flex-direction: column; gap: 4px; justify-content: center;
  position: relative; z-index: 1;
}
.cp-diagram .dg-node .t { font-weight: 600; font-size: 14px; color: var(--cp-fg); }
.cp-diagram .dg-node .s { font-family: var(--font-mono); font-size: 12px; color: var(--cp-muted); }
.cp-diagram .dg-node.core {
  border-color: rgba(102, 160, 255, 0.55);
  background: linear-gradient(135deg, rgba(38, 112, 238, 0.3), rgba(41, 169, 235, 0.16));
}
.dg-link {
  flex: 0 0 64px;
  display: flex; flex-direction: column; justify-content: center; gap: 6px;
  padding-inline: 6px;
}
.dg-link .arr {
  height: 1px;
  background: var(--cp-line);
  position: relative;
}
.dg-link .arr::after {
  content: '';
  position: absolute; top: -3.5px;
  border: 4px solid transparent;
}
.dg-link .arr.r::after { right: -1px; border-left-color: var(--cp-line); }
.dg-link .arr.l::after { left: -1px; border-right-color: var(--cp-line); }
.dg-link .cap { font-family: var(--font-mono); font-size: 12px; color: var(--cp-muted); text-align: center; }

/* схема дорисовывается — SVG-линии поверх скрытых css-стрелок (класс ставит JS) */
.dg-svg {
  display: none;
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0; pointer-events: none; overflow: visible;
}
.cp-draw .dg-svg { display: block; }
.cp-draw .dg-link .arr { visibility: hidden; }
.dg-line { fill: none; stroke: var(--cp-line); stroke-width: 2; stroke-linecap: round; }

/* ─── cross-portal: бытовые шаги (нумерация через .n) ─────────────── */
.cp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cp-steps li {
  border: 1px solid var(--cp-line);
  border-radius: var(--radius);
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
  line-height: 1.5;
  color: var(--cp-fg);
}
.cp-steps .n {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #B39FFF;
  margin-bottom: 6px;
}

/* ─── финальный CTA: aurora bookend замыкает страницу кольцом ───────── */
.final-cta {
  --d-fg: #F2F5F9;
  --d-line: rgba(255, 255, 255, 0.13);
  text-align: center;
  color: #F2F5F9;
  position: relative;
  background:
    radial-gradient(800px 360px at 50% 120%, rgba(38, 112, 238, 0.26), transparent 65%),
    #0A0E16;
  border-top-color: transparent;
  overflow: hidden;
}
.final-cta::before {
  content: '';
  position: absolute; inset: 0;
  background: url("aurora-cta.jpg") center / cover no-repeat;
  opacity: 0.12;
  pointer-events: none;
}
.final-cta > .container { position: relative; }
.final-cta h2 { max-width: 24ch; margin-inline: auto; margin-bottom: var(--gap-md); color: #F2F5F9; }
.final-cta .lead { margin-inline: auto; margin-bottom: var(--gap-lg); color: #A9B6CE; }
.final-cta .hero-cta { justify-content: center; }
.final-cta .btn-primary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
              0 14px 34px -16px rgba(2, 6, 16, 0.65);
  transition: transform 300ms var(--ez), background 240ms var(--ez), box-shadow 300ms var(--ez);
}
.final-cta .btn-primary:hover { transform: scale(1.02); }
.final-cta .btn-ghost { color: var(--d-fg); border: 1px solid var(--d-line); padding-inline: 18px; transition: transform 300ms var(--ez), border-color 240ms var(--ez), color 200ms var(--ez); }
.final-cta .btn-ghost:hover { color: #FFFFFF; border-color: rgba(255, 255, 255, 0.4); transform: scale(1.02); }
.final-cta::after {
  content: '';
  position: absolute; left: -10%; right: -10%; top: -28%; height: 68%;
  background:
    radial-gradient(38% 60% at 20% 28%, rgba(38, 112, 238, 0.5), transparent 70%),
    radial-gradient(34% 55% at 80% 20%, rgba(155, 123, 255, 0.42), transparent 70%),
    radial-gradient(46% 50% at 50% 48%, rgba(41, 169, 235, 0.3), transparent 70%);
  filter: blur(48px);
  opacity: 0.5;
  pointer-events: none;
}

/* ─── плёночное зерно поверх всей страницы (статичная текстура) ───── */
.grain {
  position: fixed; inset: 0; z-index: 9000;
  pointer-events: none;
  opacity: 0.15;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='128'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='128' height='128' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ─── кинетика заголовков секций: пословный подъём со spring ──────── */
.h2k .h2w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.h2k .h2wi {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 620ms var(--ez), transform 620ms var(--ez);
  transition-delay: var(--wd, 0ms);
  will-change: opacity, transform;
}
.h2k.h2k-in .h2wi { opacity: 1; transform: none; }

/* ─── sticky mini-CTA (desktop): pill «Установить» после 60% hero ─── */
.sticky-cta {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px;
  background: var(--accent); color: #FFFFFF;
  font-weight: 600; font-size: 14px; line-height: 1; text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
              0 14px 32px -14px rgba(2, 6, 16, 0.6);
  opacity: 0; transform: translateY(18px) scale(0.92);
  transition: opacity 480ms var(--ez), transform 480ms var(--ez), background 240ms var(--ez);
  pointer-events: none;
}
.sticky-cta.on { opacity: 1; transform: none; pointer-events: auto; }
.sticky-cta:hover { background: var(--accent-hover); transform: scale(1.03); }
.sticky-cta:active { transform: scale(0.97); }

/* ─── виджет Б24: на десктопе — «леденец» над sticky-CTA (центр круга на оси
       пилюли, зазор 16px); на мобиле CTA скрыта — виджет на своём месте ─── */
@media (min-width: 921px) {
  .b24-widget-button-wrapper.b24-widget-button-position-bottom-right {
    right: 47px !important;
    bottom: 75px !important;
  }
}
/* виджет не появляется, пока висит прелоадер */
body:has(> .preloader:not(.done)) .b24-widget-button-wrapper { display: none !important; }

/* ─── мессенджер-вид исходящего сообщения (как видит клиент) ───────── */
.msgview {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  background: var(--surface);
}
.msgview .mv-bubble {
  max-width: 340px;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: 12px 14px;
  background: var(--accent);
  color: #FFFFFF;
  font-size: 14px;
  line-height: 1.5;
}
.msgview .mv-bubble strong { display: block; font-weight: 700; margin-bottom: 2px; }
.msgview .mv-cap { margin: 10px 0 0; font-family: var(--font-mono); font-size: 12px; color: var(--muted); }

/* ─── футер ───────────────────────────────────────────────────────── */
.foot-grid h3 { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 14px; font-weight: 500; }
.foot-made { margin: 26px 0 0; font-size: 14px; color: var(--muted); }
.foot-made a { color: var(--fg); text-decoration: none; transition: color 200ms var(--ez); }
.foot-made a:hover { color: var(--accent-text); }

/* ─── адаптив ─────────────────────────────────────────────────────── */
@media (max-width: 920px) {
  .topnav4 nav, .topnav4 .btn-mini { display: none; }
  .topnav4-inner { width: calc(100vw - 24px); padding-left: 16px; }
  .topnav4-actions { margin-left: auto; }
  .topnav4 .nav-burger { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; }
  .topnav4 .nav-burger svg { margin-left: 1px; }
  .lp-hero { padding-top: 108px; }
  .lp-hero h1 { letter-spacing: -0.024em; }
  .faq-q { font-size: 16px; }
  .sticky-cta { display: none; }
  .cp-steps { grid-template-columns: 1fr; }
  /* схема: вертикальный поток */
  .cp-diagram { flex-direction: column; padding: 20px; }
  .cp-diagram .dg-node { min-width: 0; }
  .dg-link {
    flex: 0 0 auto;
    height: 46px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0;
  }
  .dg-link .arr { width: 1px; height: 13px; background: var(--cp-line); }
  .dg-link .arr::after { top: auto; left: -3.5px; right: auto; border: 4px solid transparent; }
  .dg-link .arr.r::after { bottom: -1px; border-left-color: transparent; border-top-color: var(--cp-line); }
  .dg-link .arr.l::after { top: -1px; bottom: auto; border-right-color: transparent; border-bottom-color: var(--cp-line); border-top-color: transparent; }
}

/* ─── reduced motion: всё статично ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .preloader { transition: none; }
  .preloader__dots i { animation: none; opacity: 1; }
  .au { transition: none; }
  .au.au-off { opacity: 1; transform: none; }
  .lp-hero h1 .ch { transition: none; opacity: 1; transform: none; }
  .h2k .h2wi { opacity: 1; transform: none; transition: none; }
  .sticky-cta { transition: none; }
  .cur-dot, .cur-ring { display: none; }
  .lp-hero .btn, .faq-q, .faq-x, .faq-a, .drawer, .drawer-overlay,
  .drawer nav > a, .topnav4-inner, .topnav4 .nav-burger,
  .final-cta .btn-primary, .final-cta .btn-ghost, .topnav4 .btn-mini,
  .lift { transition: none; }
  .lp-hero .btn-primary:hover, .lp-hero .btn-ghost:hover, .lp-hero .btn-secondary:hover,
  .final-cta .btn-primary:hover, .final-cta .btn-ghost:hover, .topnav4 .btn-mini:hover { transform: none; }
}

/* =============================================================================
   ОБЩИЕ КОМПОНЕНТЫ v13 (каналы с мини-визуалами, шаги-карточки с линией,
   hover-tilt + glare, prose-страницы документов, 404).
   ========================================================================== */

/* ─── impeccable-фикс: длинные hero-лейблы без uppercase (all-caps-body) ── */
.lp-hero .eyebrow { text-transform: none; letter-spacing: 0.04em; }
/* impeccable-фикс: нижний воздух lp-hero (cramped-padding) */
.lp-hero { padding-bottom: 96px; }
@media (max-width: 920px) { .lp-hero { padding-bottom: 68px; } }

/* ─── карточки каналов: сгенерированная иллюстрация + мини-визуал ────── */
.channel-card .ch-ill {
  margin: 0 0 14px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.channel-card .ch-ill img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (hover: hover) and (pointer: fine) {
  .channel-card { transition: transform 240ms var(--ez), box-shadow 240ms var(--ez), border-color 240ms var(--ez); }
  .channel-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-card); border-color: color-mix(in oklch, var(--fg) 22%, transparent); }
}
/* taste: лёгкая асимметрия — средняя карточка ступенькой вниз, своё ratio */
@media (min-width: 921px) {
  .grid-3 > .channel-card:nth-child(2) { margin-top: 34px; }
  .grid-3 > .channel-card:nth-child(2) .ch-ill { aspect-ratio: 16 / 11; }
}
.ch-dot {
  width: 9px; height: 9px; border-radius: 50%;
  display: inline-block; margin-right: 8px; flex: none;
}
.ch-dot.tg { background: #29A9EB; }
.ch-dot.max { background: #9B7BFF; }
.ch-dot.collab { background: #0D8FD6; }
.channel-card .row { display: flex; align-items: center; }
.ch-more { margin-top: 2px; }

/* ─── мини-визуалы (живые мини-чаты в карточках) ────────────────────── */
.mv {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 12px 10px;
  pointer-events: none;
}
.mv-feed { display: flex; flex-direction: column; gap: 8px; min-height: 96px; justify-content: flex-end; }
.mv-row { display: flex; transition: opacity 300ms var(--ez), transform 300ms var(--ez); }
.mv-row.us { justify-content: flex-end; }
.mv-row.off, .mv-sys.off, .mv-attach.off { opacity: 0; transform: translateY(8px) scale(0.96); }
.mv-bub {
  max-width: 84%;
  padding: 7px 11px;
  border-radius: 12px;
  font-size: 12px; line-height: 1.45;
  background: #242C3B; color: #EAF0FA;
}
.mv-row.cl .mv-bub { border-bottom-left-radius: 4px; }
.mv-row.us .mv-bub { background: #2670EE; color: #FFFFFF; border-bottom-right-radius: 4px; }
.mv-bub.pop { animation: mv-pop 380ms var(--ez); }
@keyframes mv-pop { from { transform: scale(0.94); } to { transform: scale(1); } }
.mv-typing { display: inline-flex; gap: 3px; padding: 3px 1px; }
.mv-typing i { width: 4px; height: 4px; border-radius: 50%; background: currentColor; opacity: 0.45; animation: mv-dot 1s infinite; }
.mv-typing i:nth-child(2) { animation-delay: 0.15s; }
.mv-typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes mv-dot { 0%, 60%, 100% { transform: translateY(0); opacity: 0.45; } 30% { transform: translateY(-3px); opacity: 1; } }
.mv-edited {
  display: inline-block; margin-left: 6px;
  font-size: 10.5px; color: rgba(234, 240, 250, 0.55);
  transition: opacity 260ms var(--ez), transform 260ms var(--ez);
}
.mv-edited.off { opacity: 0; transform: scale(0.7); }
.mv-sys {
  align-self: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  transition: opacity 300ms var(--ez), transform 300ms var(--ez);
}
.mv-attach {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-family: var(--font-mono); font-size: 11px;
  color: #7CC7F0;
  border: 1px solid rgba(13, 143, 214, 0.45);
  border-radius: 999px;
  padding: 4px 10px;
  background: rgba(13, 143, 214, 0.12);
  transition: opacity 420ms var(--ez), transform 420ms var(--ez);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}
.chip-bar { position: relative; overflow: hidden; color: var(--fg); }
.chip-bar span { position: relative; }
.chip-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 100%; background: rgba(155, 123, 255, 0.18); }

/* ─── hover-tilt + glare для .lift (классы и элемент ставит JS) ─────── */
.lift { position: relative; overflow: hidden; }
.lift .glare {
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms var(--ez);
  background: radial-gradient(340px 340px at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.07), transparent 65%);
}
@media (hover: hover) and (pointer: fine) {
  .lift.tilting .glare { opacity: 1; }
}
@media (max-width: 920px) {
  .lift:active { transform: scale(0.99); }
}

/* ─── шаги-карточки с линией-прогрессом (как «Как начать» на главной) ── */
.steps-wrap { position: relative; }
.steps-track {
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}
/* прогресс-полоса убрана: линия однородная по всей длине, без сегментов */
.steps-track i { display: none; }
.steps-live .step { opacity: 0.35; transform: translateY(6px); transition: opacity 500ms var(--ez), transform 500ms var(--ez); }
.steps-live .step.on { opacity: 1; transform: none; }
.step-ic {
  display: inline-flex; align-items: center;
  margin-right: 10px;
  color: var(--accent-text);
  vertical-align: -3px;
}
.step-ic svg { width: 18px; height: 18px; }
/* карточный вариант шагов: номер + иконка + заголовок в бордер-карточке */
.steps-cards { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: var(--gap-md); }
.steps-cards .step {
  border-top: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--surface);
}
.steps-cards .step::before { content: none; }
.steps-cards .step h3 { font-size: 16px; }
.steps-cards .step p { font-size: 14px; }
.step-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 12px;
}
.steps-cards + .mv { max-width: 460px; margin: var(--gap-md) auto 0; }

/* ─── prose-страницы документов (оферта, политика) ──────────────────── */
.doc-hero { text-align: left; }
.doc-hero h1 { max-width: 24ch; margin: 0 0 clamp(14px, 2vw, 20px); }
.doc-hero .crumbs { justify-content: flex-start; }
.doc-date { font-family: var(--font-mono); font-size: 13px; color: var(--h-muted); }
.prose-doc { max-width: 72ch; font-size: 16.5px; line-height: 1.7; color: var(--fg); }
.prose-doc h2 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.015em;
  margin: var(--gap-xl) 0 var(--gap-sm);
}
.prose-doc h2:first-child { margin-top: 0; }
.prose-doc p, .prose-doc li { color: var(--muted); }
.prose-doc p { margin: 0; max-width: 72ch; }
.prose-doc p + p { margin-top: var(--gap-sm); }
.prose-doc ul { margin: var(--gap-sm) 0 0; padding-left: 22px; }
.prose-doc li + li { margin-top: 6px; }
.prose-doc strong { color: var(--fg); }

/* ─── 404: компактный hero по мотивам lp-hero ───────────────────────── */
.err-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap-md); }
@media (max-width: 920px) {
  .err-links { grid-template-columns: 1fr; }
  .steps-cards { grid-template-columns: 1fr; }
}

/* ─── reduced motion: новые компоненты статичны ─────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .mv-row, .mv-sys, .mv-attach, .mv-edited, .chip-bar i, .steps-live .step,
  .lift, .channel-card { transition: none; }
  .mv-typing i { animation: none; }
  .mv-bub.pop { animation: none; }
}

/* 404: знак над заголовком */
.err-mark { display: block; margin: 0 auto 18px; width: 44px; height: 44px; }
