/* ==========================================================================
   Реплиус — лендинг v5 (макет). Структура и тексты как в v3/v4.
   Идея: «обои мессенджера». Ключевые блоки (hero, отзывы, финал) лежат на
   мягком переливающемся градиенте с узором из иконок, как фон чата.
   - Шрифт один: Geologica (заголовки 700, текст 400).
   - Цвет: фирменный синий + голубой. Тёплые оттенки только внутри «обоев».
   - Без наклонов. Движение: дрейф обоев, всплытие сообщений, подъём карточек.
   - Радиусы: блоки 32px, карточки 20px, вложенные 12px, кнопки pill.
   ========================================================================== */

:root {
  --p-bg: #fdfdff;
  --p-bg-tint: #f5f8fe;
  --p-surface: #ffffff;
  --p-surface-2: #f3f6fc;
  --p-text: #0c1324;
  --p-text-2: #485269;
  --p-text-3: #69728a;
  --p-line: #e6eaf2;
  --p-line-2: #d3d9e5;
  --p-accent: #1f5bff;
  --p-accent-ink: #1646d1;
  --p-accent-soft: #e6edff;
  --p-ok: #0d8f61;
  --p-ok-soft: #e1f5ec;
  --p-shadow: 0 1px 2px rgb(12 19 36 / .05), 0 12px 30px -14px rgb(12 19 36 / .16);
  --p-shadow-lg: 0 2px 6px rgb(12 19 36 / .05), 0 36px 70px -30px rgb(20 50 140 / .32);

  /* обои: база и четыре мягких пятна */
  --wp-base: #dfe8fb;
  --wp-1: #b6cdff;
  --wp-2: #c4ecef;
  --wp-3: #fbe3d4;
  --wp-4: #d8dcff;
  --wp-doodle: rgb(31 70 180 / .1);

  --ink: #0c1324;
  --blue: #1f5bff;
  --sky: #2bb3ff;
  --warn: #c2410c;
  --warn-soft: #fdeee4;

  --f: "Geologica", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-blk: 32px;
  --r-card: 20px;
  --r-in: 12px;
  --r-pill: 999px;
  --maxw: 1240px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --p-bg: #070b16;
    --p-bg-tint: #0b1121;
    --p-surface: #0f1628;
    --p-surface-2: #151d33;
    --p-text: #e9edf7;
    --p-text-2: #a7b0c7;
    --p-text-3: #8690aa;
    --p-line: #1c253c;
    --p-line-2: #2b3653;
    --p-accent: #5585ff;
    --p-accent-ink: #7b9fff;
    --p-accent-soft: #152246;
    --p-ok: #34c795;
    --p-ok-soft: #0f2c24;
    --p-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 30px -14px rgb(0 0 0 / .6);
    --p-shadow-lg: 0 2px 6px rgb(0 0 0 / .3), 0 36px 70px -30px rgb(0 0 0 / .8);
    --wp-base: #0c1530;
    --wp-1: #1a3486;
    --wp-2: #0f4250;
    --wp-3: #3a2638;
    --wp-4: #231f5c;
    --wp-doodle: rgb(170 195 255 / .07);
    --ink: #0f1830;
    --warn: #ff9a5c;
    --warn-soft: #2e1b10;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --p-bg: #070b16;
  --p-bg-tint: #0b1121;
  --p-surface: #0f1628;
  --p-surface-2: #151d33;
  --p-text: #e9edf7;
  --p-text-2: #a7b0c7;
  --p-text-3: #8690aa;
  --p-line: #1c253c;
  --p-line-2: #2b3653;
  --p-accent: #5585ff;
  --p-accent-ink: #7b9fff;
  --p-accent-soft: #152246;
  --p-ok: #34c795;
  --p-ok-soft: #0f2c24;
  --p-shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 30px -14px rgb(0 0 0 / .6);
  --p-shadow-lg: 0 2px 6px rgb(0 0 0 / .3), 0 36px 70px -30px rgb(0 0 0 / .8);
  --wp-base: #0c1530;
  --wp-1: #1a3486;
  --wp-2: #0f4250;
  --wp-3: #3a2638;
  --wp-4: #231f5c;
  --wp-doodle: rgb(170 195 255 / .07);
  --ink: #0f1830;
  --warn: #ff9a5c;
  --warn-soft: #2e1b10;
  color-scheme: dark;
}

/* Рабочие токены страницы */
:root, .lead-form, .phone-in, .tgb {
  --bg: var(--p-bg);
  --bg-tint: var(--p-bg-tint);
  --surface: var(--p-surface);
  --surface-2: var(--p-surface-2);
  --text: var(--p-text);
  --text-2: var(--p-text-2);
  --text-3: var(--p-text-3);
  --line: var(--p-line);
  --line-2: var(--p-line-2);
  --accent: var(--p-accent);
  --accent-ink: var(--p-accent-ink);
  --accent-soft: var(--p-accent-soft);
  --accent-on: #ffffff;
  --ok: var(--p-ok);
  --ok-soft: var(--p-ok-soft);
  --shadow: var(--p-shadow);
  --shadow-lg: var(--p-shadow-lg);
}
.lead-form, .phone-in, .tgb { color: var(--text); }

/* Тёмные поверхности */
#ai, .ex-r, .ftr, .bdg.ru, .cs.start, .promo, .app.tg, .case.big {
  --text: #eef2fb;
  --text-2: #b3bcd3;
  --text-3: #8b95b0;
  --line: rgb(255 255 255 / .1);
  --line-2: rgb(255 255 255 / .2);
  --surface: rgb(255 255 255 / .05);
  --surface-2: rgb(255 255 255 / .08);
  --accent: #7ea2ff;
  --accent-ink: #a3bdff;
  --accent-soft: rgb(126 162 255 / .16);
  --ok: #3ad29f;
  --ok-soft: rgb(58 210 159 / .14);
  background-color: var(--ink);
  color: var(--text);
}

/* Синие поверхности */
.plan.pop, .wp-blue, .ba-after, .ch-card.feat {
  --text: #ffffff;
  --text-2: rgb(255 255 255 / .86);
  --text-3: rgb(255 255 255 / .72);
  --line: rgb(255 255 255 / .2);
  --line-2: rgb(255 255 255 / .34);
  --surface: rgb(255 255 255 / .12);
  --surface-2: rgb(255 255 255 / .16);
  --accent: #ffffff;
  --accent-ink: #ffffff;
  --accent-soft: rgb(255 255 255 / .18);
  --accent-on: #1646d1;
  --ok: #ffffff;
  --ok-soft: rgb(255 255 255 / .2);
  background-color: var(--blue);
  color: var(--text);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.6 var(--f); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
p { margin: 0; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sec { padding: 112px 0; position: relative; }
.sec-tint { background: var(--bg-tint); }
.blk { margin: 0 12px; border-radius: var(--r-blk); }

.h2 { font-size: clamp(30px, 3.6vw, 50px); max-width: 21ch; text-wrap: balance; letter-spacing: -0.035em; }
.h2 em, .final h2 em { font-style: normal; color: var(--accent); }
.lead { color: var(--text-2); font-size: 18px; max-width: 58ch; margin-top: 18px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500;
  padding: 6px 14px 6px 6px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line);
  color: var(--text-2); margin-bottom: 20px; align-self: flex-start;
}
/* иконка Lucide в синем кружке (раньше — общий значок через ::before) */
.eyebrow .eb-ic { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.eyebrow .eb-ic svg { width: 13px; height: 13px; }
.sec-head { margin-bottom: 56px; }
.sec-head.center { text-align: center; }
.sec-head.center .h2, .sec-head.center .lead { margin-left: auto; margin-right: auto; }
.muted { color: var(--text-2); }
.soon {
  display: inline-flex; align-items: center; font-size: 11px; font-weight: 500; letter-spacing: 0;
  padding: 2px 8px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-3);
  border: 1px solid var(--line); vertical-align: middle; white-space: nowrap;
}
.new { display: inline-flex; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-on); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- обои мессенджера ---------- */
.wp { position: relative; isolation: isolate; overflow: hidden; background-color: var(--wp-base); }
.wp::before {
  content: ""; position: absolute; inset: -25%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(closest-side at 22% 28%, var(--wp-1), transparent),
    radial-gradient(closest-side at 78% 22%, var(--wp-2), transparent),
    radial-gradient(closest-side at 70% 78%, var(--wp-3), transparent),
    radial-gradient(closest-side at 24% 80%, var(--wp-4), transparent);
  animation: drift 26s ease-in-out infinite alternate;
}
.wp::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: var(--wp-doodle);
  -webkit-mask: var(--doodle, none) 0 0 / 300px 300px repeat; mask: var(--doodle, none) 0 0 / 300px 300px repeat;
}
@keyframes drift {
  0% { transform: translate(0, 0) rotate(0deg) scale(1); }
  50% { transform: translate(4%, -3%) rotate(8deg) scale(1.06); }
  100% { transform: translate(-3%, 3%) rotate(-6deg) scale(1); }
}
/* На первом экране узор не нужен: там своя 3D-композиция, остаётся только градиент */
.hero.wp::after, .hero .ib-msgs::after { display: none; }
.wp-blue {
  --wp-base: #1f5bff;
  --wp-1: #3f8cff;
  --wp-2: #2bb3ff;
  --wp-3: #5b6dff;
  --wp-4: #1646d1;
  --wp-doodle: rgb(255 255 255 / .1);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 26px; border-radius: var(--r-pill);
  font-weight: 500; font-size: 16px; white-space: nowrap;
  transition: transform .3s var(--ease), background .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--accent); color: var(--accent-on); box-shadow: 0 10px 24px -12px rgb(31 91 255 / .8); }
.btn-primary:hover { background: var(--accent-ink); }
.btn-primary i { transition: transform .3s var(--ease); }
.btn-primary:hover i.ph-arrow-right { transform: translateX(4px); }
.btn-ghost { border: 1px solid var(--line-2); background: var(--surface); }
.btn-ghost:hover { border-color: var(--text-3); }
.wp .btn-ghost { background: color-mix(in srgb, var(--p-surface) 70%, transparent); backdrop-filter: blur(8px); border-color: transparent; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 15px; }
.btn-lg { height: 58px; padding: 0 30px; font-size: 17px; }
.btn i { font-size: 18px; }

/* ---------- promo ---------- */
.promo { font-size: 14px; text-align: center; padding: 10px 48px; position: relative; }
.promo a { font-weight: 600; color: #a9c1ff; text-decoration: underline; text-underline-offset: 3px; }
.promo-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: inherit; opacity: .7; font-size: 18px; }
.promo-x:hover { opacity: 1; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 40; padding-top: 24px; transition: background .3s, box-shadow .3s, padding .3s, margin .3s; }
/* прилипшая шапка без верхнего отступа; margin компенсирует высоту, чтобы страница не дёргалась */
.hdr.scrolled { padding-top: 0; margin-bottom: 24px; }
.hdr.scrolled, .hdr.menu { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px); box-shadow: 0 1px 0 var(--line); }
.hdr-in { height: 72px; display: flex; align-items: center; gap: 32px; }
.logo img { height: 30px; width: auto; }
.hdr .logo img { height: 40px; }
.logo .logo-dark { display: none; }
:root[data-theme="dark"] .logo .logo-light { display: none; }
:root[data-theme="dark"] .logo .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo .logo-dark { display: block; }
}
.nav { display: flex; gap: 2px; align-items: center; margin: 0; padding: 0; }
.nav > li { list-style: none; position: relative; }
.nav-a { display: inline-flex; align-items: center; gap: 4px; padding: 8px 14px; border-radius: var(--r-pill); font-size: 15px; color: var(--text-2); transition: color .15s, background .15s; }
.nav-a:hover, .nav li:hover > .nav-a { color: var(--text); background: color-mix(in srgb, var(--surface) 70%, transparent); }
.nav-a i { font-size: 12px; transition: transform .25s var(--ease); }
.nav li:hover > .nav-a i { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 14px); left: -12px; width: 580px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--shadow-lg); padding: 10px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease), transform .3s var(--ease), visibility .25s;
}
.mega::before { content: ""; position: absolute; inset: -16px 0 auto; height: 16px; }
.nav li:hover > .mega, .nav li:focus-within > .mega { opacity: 1; visibility: visible; transform: none; }
.mega a { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-in); transition: background .15s; }
.mega a:hover { background: var(--surface-2); }
.mega i { font-size: 22px; color: var(--accent); flex: none; margin-top: 2px; }
.mega b { display: block; font-size: 15px; font-weight: 600; }
.mega span { display: block; font-size: 13px; color: var(--text-3); line-height: 1.4; }
.mega.channels { width: 420px; }
.mega.channels a { align-items: center; padding: 10px 12px; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.icon-btn { width: 42px; height: 42px; border-radius: var(--r-pill); display: grid; place-items: center; color: var(--text-2); font-size: 20px; transition: background .15s, color .15s; }
.icon-btn:hover { background: color-mix(in srgb, var(--surface) 70%, transparent); color: var(--text); }
.login { font-size: 15px; padding: 8px 14px; color: var(--text-2); }
.login:hover { color: var(--text); }
.burger { display: none; }
.mnav { display: none; position: fixed; inset: var(--mnav-top, 64px) 0 0; background: var(--bg); z-index: 39; padding: 8px 24px 24px; overflow: auto; overscroll-behavior: contain; }
.mnav.open { display: block; animation: pop .35s var(--ease); }
.mnav a { display: block; padding: 14px 4px; font-size: 22px; font-weight: 600; border-bottom: 1px solid var(--line); }
.mnav-cta { display: grid; gap: 12px; margin-top: 28px; }
.mnav .mnav-cta .btn { display: flex; width: 100%; padding: 0 24px; font-size: 17px; border-bottom: 0; }
.mnav .mnav-cta .btn-ghost { background: var(--surface); border: 1px solid var(--line-2); }
body.menu-open { overflow: hidden; }
.hdr.menu { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }

/* ---------- hero: обои, текст по центру, окно продукта ниже ---------- */
/* под шапкой, но с тем же отступом 12px от полосы объявления, что и по бокам */
.hero { margin-top: -84px; padding: 140px 0 0; }
.hero-grid { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700; }
.hero h1 .hl { color: var(--accent); display: block; }
.hero-copy { display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.hero-sub { font-size: 20px; color: var(--text-2); margin-top: 24px; max-width: 52ch; line-height: 1.5; }
.hero-cta { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; justify-content: center; }
.risk { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding: 0; list-style: none; font-size: 14px; color: var(--text-2); }
.risk li { display: inline-flex; align-items: center; gap: 6px; }
.risk i { color: var(--ok); font-size: 16px; }

/* Экран устройства нарисован на CSS: тонкий алюминиевый край, чёрная рамка, камера.
   Нижней рамки нет — экран уходит за низ первого экрана и «продолжается».
   Ширина экрана = min(920px, 57vw); от неё же считаются эффекты. */
.hero-vis { position: relative; width: 100%; max-width: min(920px, 57vw); margin-top: clamp(56px, 5.5vw, 80px); margin-bottom: 18px; text-align: left; }
.device { position: relative; }
.scr { position: relative; width: 100%; aspect-ratio: 1000 / 550; }
.bezel { position: absolute; z-index: 1; inset: -16px -16px -80px; border-radius: 26px 26px 0 0; background: #0b0d12;
  box-shadow: 0 0 0 1.5px #d9dde5, 0 0 0 3px #a9b0bc, inset 0 1px 0 rgb(255 255 255 / .12), 0 40px 90px -30px rgb(10 30 90 / .55); }
.bezel::after { content: ""; position: absolute; top: 6px; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3a4256, #10131b 70%); box-shadow: 0 0 0 1.5px #1b1f29; }
.scr-in { position: absolute; z-index: 2; inset: 0 0 -80px; overflow: hidden; border-radius: 10px 10px 0 0; background: var(--surface); }
/* линия между списком и перепиской продолжается ниже окна чата, до края первого экрана */
.scr-in::after { content: ""; position: absolute; top: 0; bottom: 0; left: calc(280px * var(--k, .9) - 1px); width: 1px; background: var(--line); }
/* мягкая тень снизу поверх экрана: экран уходит в неё у края первого экрана */
/* только в пределах экрана, чтобы на фоне не было видно краёв */
.scr-fade { position: absolute; z-index: 3; left: 0; right: 0; bottom: -18px; height: 50px; pointer-events: none;
  background: linear-gradient(to top, rgb(15 25 60 / .12), rgb(15 25 60 / .04) 50%, transparent); }
.hero[data-bg="brand"] .scr-fade { background: linear-gradient(to top, rgb(2 6 25 / .28), rgb(2 6 25 / .08) 50%, transparent); }
/* чат рисуется в «родном» размере 1000×550 и масштабируется под экран (--k ставит app.js) */
.scr-in .inbox { width: 1000px; height: 550px; transform: scale(var(--k, .9)); transform-origin: 0 0; }
/* Эффект за окном чата: вращающееся цветное свечение (под ним — пузыри-сообщения, см. ниже) */
@property --fx-a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.fx { position: absolute; inset: 0; z-index: 0; pointer-events: none; animation: fxIn 1.4s var(--ease) .3s backwards; }
@keyframes fxIn { from { opacity: 0; } }
/* Размытие — на контейнере с запасом 200px вокруг эллипса: Safari обрезает blur по рамке элемента,
   и без запаса у верхнего края свечения видна прямая линия */
.fx-glow { --pad: 200px; position: absolute; left: 50%; top: calc(-70px - var(--pad)); width: calc(118% + 2 * var(--pad)); height: calc(600px + 2 * var(--pad));
  transform: translateX(-50%); filter: blur(64px); }
.fx-glow::before { content: ""; position: absolute; inset: var(--pad); border-radius: 50%;
  background: conic-gradient(from var(--fx-a), #67e8f9, #c4b5fd, #f0abfc, #93c5fd, #5eead4, #67e8f9);
  animation: fxSpin 16s linear infinite; }
@keyframes fxSpin { to { --fx-a: 360deg; } }

.inbox {
  z-index: 1;
  position: relative; background: var(--surface); border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
  overflow: hidden; border: 0;
  display: grid; grid-template-columns: 280px 1fr; height: 500px;
}
.ib-list { border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
/* Интерфейс в экране: сетка 4/8px, общая левая линия 24px в колонке переписки, шапки обеих колонок 60px */
.ib-top { height: 60px; display: flex; align-items: center; gap: 10px; padding: 0 20px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.ib-top .cnt { margin-left: auto; background: var(--accent); color: var(--accent-on); font-size: 11px; font-weight: 600; border-radius: var(--r-pill); min-width: 22px; height: 22px; padding: 0 7px; display: grid; place-items: center; }
.ib-items { flex: 1; overflow: hidden; position: relative; padding-top: 6px; }
.ib-item { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: center; padding: 11px 20px; transition: background .3s; }
.ib-item.active { background: var(--accent-soft); }
.ib-item.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.ib-item.enter { animation: slideIn .6s var(--ease); }
@keyframes slideIn { from { transform: translateY(-100%); opacity: 0; } to { transform: none; opacity: 1; } }
.av { position: relative; flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 14px; color: #fff; }
.av.ph { background-color: var(--surface-2); background-size: cover; background-position: center; }
/* значок канала на аватаре: крупный, с белой обводкой */
.av .ch { position: absolute; right: -3px; bottom: -3px; width: 20px; height: 20px; border-radius: 50%; background: var(--p-surface); display: grid; place-items: center; overflow: hidden; box-shadow: 0 0 0 2px var(--p-surface), 0 1px 3px rgb(12 19 36 / .18); }
.ib-main { min-width: 0; display: grid; gap: 3px; }
.ib-row { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.ib-name { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-time { flex: none; font-size: 11.5px; color: var(--text-3); }
.ib-prev { color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.ib-thread { display: flex; flex-direction: column; min-width: 0; }
.ib-thead { height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.ib-thead .av { width: 38px; height: 38px; font-size: 13px; }
.ib-who { display: grid; gap: 2px; min-width: 0; }
.ib-who b { font-size: 15px; font-weight: 600; line-height: 1.2; }
.ib-who span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); line-height: 1.2; }
.ib-who .si, .ib-who .lt { width: 16px; height: 16px; flex: none; }
.ib-who .lt { border-radius: 5px; }
.ib-who .lt .lu { width: 70%; height: 70%; }
.ib-thead .tag { margin-left: auto; font-size: 11px; padding: 3px 10px; border-radius: var(--r-pill); background: var(--ok-soft); color: var(--ok); font-weight: 600; }
/* окно диалога тоже на «обоях», как в настоящем мессенджере */
.ib-msgs { flex: 1; padding: 20px 24px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; overflow: hidden; position: relative; isolation: isolate; background: var(--surface-2); }
.ib-msgs::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wp-doodle); -webkit-mask: var(--doodle, none) 0 0 / 260px 260px repeat; mask: var(--doodle, none) 0 0 / 260px 260px repeat; }
.msg { max-width: 70%; padding: 10px 14px; border-radius: 18px; font-size: 14px; line-height: 1.45; animation: pop .45s var(--ease); }
.msg.in { background: var(--surface); box-shadow: 0 1px 2px rgb(12 19 36 / .08); align-self: flex-start; border-bottom-left-radius: 6px; }
.msg.out { background: var(--accent); color: var(--accent-on); align-self: flex-end; border-bottom-right-radius: 6px; }
@keyframes pop { from { transform: translateY(10px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.ib-ai { margin: 0 24px 12px; border: 1px solid var(--accent); border-radius: 16px; background: var(--surface); padding: 14px 16px; font-size: 13px; display: none; gap: 8px; flex-direction: column; box-shadow: 0 10px 30px -16px rgb(31 91 255 / .6); }
.ib-ai.show { display: flex; animation: pop .45s var(--ease); }
.ib-ai-h { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--accent); }
.ib-ai-t { min-height: 20px; color: var(--text); }
.ib-ai-t::after { content: "▍"; color: var(--accent); animation: blink 1s steps(1) infinite; }
.ib-ai-t.done::after { content: ""; }
@keyframes blink { 50% { opacity: 0; } }
.ib-ai-b { display: flex; gap: 6px; }
.ib-ai-b span { font-size: 12px; padding: 4px 12px; border-radius: var(--r-pill); border: 1px solid var(--line); color: var(--text-2); }
.ib-ai-b span.go { background: var(--accent); border-color: var(--accent); color: var(--accent-on); }
.ib-input { display: flex; gap: 10px; align-items: center; padding: 14px 24px 18px; border-top: 1px solid var(--line); }
.ib-input div { flex: 1; height: 44px; border-radius: var(--r-pill); background: var(--surface-2); padding: 0 16px; display: flex; align-items: center; font-size: 13px; color: var(--text-3); }
.ib-input button { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--accent); color: var(--accent-on); display: grid; place-items: center; }
.float-card { position: absolute; z-index: 3; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px 18px; font-size: 13px; display: flex; gap: 12px; align-items: center; animation: bob 6s ease-in-out infinite; }
.float-card i { font-size: 26px; }
.float-card b { display: block; font-size: 15px; }
.float-card span { color: var(--text-3); font-size: 12px; }
.fc-1 { left: -64px; top: 200px; }
.fc-1 .av { width: 36px; height: 36px; font-size: 12px; }
.fc-1 .fc-ic { font-size: 18px; color: var(--text-3); margin-left: 2px; }
.fc-2 { right: -56px; top: 80px; animation-delay: -3s; }
.fc-2 > i { color: var(--accent); }
/* смена содержимого карточек: плавно исчезает и появляется (translate не мешает анимации bob на transform) */
/* «пружинка»: быстро сжимается и гаснет → меняется текст → выскакивает с перелётом и встаёт на место.
   Используем свойство scale, чтобы не мешать анимации bob на transform. */
.fc-1 { transform-origin: left center; }
.fc-2 { transform-origin: right center; }
.float-card { transition: opacity .18s ease-in, scale .18s ease-in; }
.float-card.out { opacity: 0; scale: .86; }
.float-card.in { animation: fcPop .6s linear both, bob 6s ease-in-out infinite; }
.fc-2.in { animation: fcPop .6s linear both, bob 6s ease-in-out -3s infinite; }
@keyframes fcPop {
  0%   { opacity: 0; scale: .86; }
  35%  { opacity: 1; scale: 1.07; }
  60%  { scale: .97; }
  80%  { scale: 1.015; }
  100% { opacity: 1; scale: 1; }
}
.float-card .av { width: 36px; height: 36px; font-size: 12px; }
.float-card .fc-note { color: #f59e0b; }
.float-card .fc-deal { color: var(--ok); }
.float-card .fc-ok { color: var(--ok); }
.float-card .fc-night { color: #8b5cf6; }
.fc-2 .fc-go { margin-left: 6px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--accent); color: var(--accent-on); font-size: 12px; font-weight: 600; }
@keyframes bob { 50% { transform: translateY(-10px); } }

.lt { display: inline-grid; place-items: center; border-radius: 6px; color: #fff; font-weight: 700; font-size: 11px; line-height: 1; }

/* ---------- каналы: иконки-приложения бегущей строкой ---------- */
.strip { padding: 72px 0 24px; }
.strip-t { text-align: center; font-size: 15px; color: var(--text-3); margin-bottom: 28px; }
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.mq-track { display: flex; gap: 36px; width: max-content; animation: mq 50s linear infinite; padding: 6px 0; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.chip-ch { display: inline-flex; align-items: center; gap: 14px; font-weight: 600; font-size: 18px; white-space: nowrap; letter-spacing: -0.01em; }
.chip-ch .si, .chip-ch .lt { width: 30px; height: 30px; }
.chip-ch .lt { font-size: 15px; border-radius: 9px; }
.trust-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 36px; margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row i { font-size: 20px; color: var(--accent); }

/* ---------- live demo ---------- */
.demo { display: grid; grid-template-columns: 1fr 1.05fr; border-radius: var(--r-blk); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.demo-l { padding: 60px 56px; display: flex; flex-direction: column; }
.demo-l .h2 { font-size: clamp(28px, 3vw, 42px); }
.demo-steps { margin: 36px 0 0; padding: 0; list-style: none; display: grid; gap: 0; counter-reset: s; }
.demo-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; color: var(--text-2); padding: 0 0 22px; position: relative; }
.demo-steps li:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px; background: var(--line); }
.demo-steps b { color: var(--text); display: block; font-size: 17px; font-weight: 600; }
.demo-steps .n { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.demo-ch { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 32px; }
.demo-ch a { display: inline-flex; gap: 8px; align-items: center; height: 46px; padding: 0 18px; border-radius: var(--r-pill); background: var(--surface-2); font-weight: 500; font-size: 15px; transition: background .2s, transform .3s var(--ease); }
.demo-ch a:hover { background: var(--accent-soft); transform: translateY(-2px); }
.demo-r { padding: 44px 40px; display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.phone { background: #05080f; border-radius: 38px; padding: 9px; box-shadow: var(--shadow-lg); }
.phone-in { background: var(--surface); border-radius: 30px; height: 390px; display: flex; flex-direction: column; overflow: hidden; }
.phone-top { padding: 16px 14px 10px; display: flex; gap: 8px; align-items: center; border-bottom: 1px solid var(--line); font-size: 12px; }
.phone-top img { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); padding: 3px; }
.phone-top > div { display: grid; gap: 2px; line-height: 1.15; }
.phone-top b { display: block; font-size: 13px; }
.phone-top span { color: var(--ok); font-size: 11px; }
.phone-msgs { flex: 1; padding: 10px; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; background: var(--surface-2); overflow: hidden; }
.phone-msgs .msg { font-size: 12px; max-width: 88%; padding: 7px 10px; }
.phone-form { display: flex; gap: 6px; padding: 8px; }
.phone-form label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.phone-form input { flex: 1; min-width: 0; height: 36px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: var(--surface); padding: 0 12px; font: inherit; font-size: 12px; color: var(--text); }
.phone-form input::placeholder { color: var(--text-3); }
.phone-form button { width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; flex: none; }
.op { background: color-mix(in srgb, var(--p-surface) 80%, transparent); backdrop-filter: blur(10px); border-radius: var(--r-card); overflow: hidden; box-shadow: var(--shadow); }
.op-h { padding: 14px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.op-h .live { margin-left: auto; font-size: 11px; color: var(--ok); display: inline-flex; gap: 6px; align-items: center; font-weight: 600; }
.op-h .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(13 143 97 / .5); } 70% { box-shadow: 0 0 0 8px rgb(13 143 97 / 0); } 100% { box-shadow: 0 0 0 0 rgb(13 143 97 / 0); } }
.op-body { padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 280px; justify-content: flex-end; }
.op-body .msg { font-size: 13px; }
.op-empty { text-align: center; color: var(--text-3); font-size: 13px; margin: auto; max-width: 26ch; }
.op-empty i { font-size: 32px; display: block; margin: 0 auto 8px; color: var(--line-2); }
.op-meta { font-size: 11px; color: var(--text-3); display: flex; gap: 6px; align-items: center; }

/* ---------- stats: крупные цифры без карточек ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 8px 32px; border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat b { display: block; font-size: clamp(42px, 5vw, 72px); font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat:first-child b { color: var(--accent); }
.stat span { display: block; margin-top: 14px; color: var(--text-2); font-size: 15px; max-width: 22ch; }
.live-counter { margin-top: 56px; display: inline-flex; align-items: center; gap: 12px; padding: 12px 20px 12px 16px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.live-counter b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.live-counter i { color: var(--ok); font-size: 20px; }

/* ---------- goals: вкладки с подчёркиванием ---------- */
.tabs { display: flex; gap: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.tab { height: 52px; padding: 0; font-weight: 500; font-size: 18px; color: var(--text-3); position: relative; transition: color .2s; }
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--accent); transform: scaleX(0); transition: transform .35s var(--ease); }
.tab[aria-selected="true"] { color: var(--text); }
.tab[aria-selected="true"]::after { transform: scaleX(1); }
.tab:not([aria-selected="true"]):hover { color: var(--text-2); }
.panel { display: none; }
.panel.on { display: grid; animation: pop .5s var(--ease); }
.goal { grid-template-columns: 1fr 1fr; gap: 20px; }
.ba { border-radius: var(--r-card); padding: 36px; position: relative; }
.ba h3 { font-size: 21px; display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.ba ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.ba li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 16px; }
.ba li i { font-size: 21px; }
.ba-before { background: var(--surface); border: 1px dashed var(--line-2); color: var(--text-2); }
.ba-before h3 { color: var(--text-3); }
.ba-before li { text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--text-3) 50%, transparent); }
.ba-before li i { color: var(--text-3); }
.ba-after { overflow: hidden; isolation: isolate; }
.ba-after::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 100% 0%, rgb(43 179 255 / .55), transparent 50%); }
.ba-after h3 i { color: #fff !important; }
.ba-after .metric { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px; }
.ba-after .metric b { font-size: 52px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.ba-after .metric span { color: var(--text-2); font-size: 14px; max-width: 30ch; }

/* ---------- channels: «домашний экран» с иконками ---------- */
.ch-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ch-card { position: relative; padding: 24px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-height: 180px; transition: transform .35s var(--ease), box-shadow .3s; }
.ch-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.ch-card .ci-w { width: 56px; height: 56px; border-radius: 16px; background: var(--surface); box-shadow: 0 0 0 1px var(--line), 0 6px 14px -8px rgb(12 19 36 / .25); display: grid; place-items: center; margin-bottom: 4px; }
.ch-card .ci-w .si, .ch-card .ci-w .lt { width: 32px; height: 32px; }
.ch-card .ci-w .lt { font-size: 16px; border-radius: 9px; }
.ch-card h3 { font-size: 18px; letter-spacing: -0.02em; }
.ch-card p { font-size: 14px; color: var(--text-2); line-height: 1.45; }
.ch-card .soon, .ch-card .new { position: absolute; top: 22px; right: 22px; }
.ch-card.dim { background: transparent; border-style: dashed; }
.ch-card.dim .ci-w { box-shadow: 0 0 0 1px var(--line); filter: grayscale(.5); opacity: .75; }
.ch-card.feat { grid-column: span 2; border: 0; overflow: hidden; isolation: isolate; min-height: 200px; }
.ch-card.feat::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 100% 100%, rgb(43 179 255 / .6), transparent 55%); }
.ch-card.feat .ci-w { background: #fff; box-shadow: none; }
.ch-card.feat h3 { font-size: 26px; max-width: 16ch; }
.ch-card.feat p { max-width: 42ch; font-size: 15px; }
.ch-card.feat .new { background: #fff; color: var(--blue); }
.foot-note { margin-top: 20px; font-size: 12px; color: var(--text-3); }

/* ---------- AI: тёмная секция ---------- */
#ai { overflow: hidden; isolation: isolate; }
#ai::before { content: ""; position: absolute; z-index: -1; left: 50%; top: -280px; width: 1100px; height: 560px; transform: translateX(-50%); background: radial-gradient(closest-side, rgb(31 91 255 / .45), transparent); pointer-events: none; }
#ai .eyebrow { background: var(--surface); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(220px, auto); gap: 12px; }
.bx { border-radius: var(--r-card); padding: 30px; position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: border-color .3s; }
.bx:hover { border-color: var(--line-2); }
.bx h3 { font-size: 22px; margin-bottom: 10px; }
.bx p { color: var(--text-2); font-size: 15px; max-width: 42ch; }
.bx .role { font-size: 13px; font-weight: 600; color: var(--accent); margin-bottom: 16px; display: inline-flex; align-items: center; gap: 6px; }
.bx-1 { grid-column: span 4; grid-row: span 2; background: linear-gradient(160deg, #1f5bff 0%, #173fb8 60%, #0f2a7d 100%); border: 0; isolation: isolate; }
.bx-1::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(255 255 255 / .06); -webkit-mask: var(--doodle, none) 0 0 / 300px 300px repeat; mask: var(--doodle, none) 0 0 / 300px 300px repeat; }
.bx-1 .role { color: #fff; }
.bx-1 h3 { font-size: clamp(26px, 2.8vw, 38px); max-width: 17ch; }
.bx-1 p { color: rgb(255 255 255 / .86); }
.bx-2 { grid-column: span 2; grid-row: span 2; }
.bx-3, .bx-4, .bx-5 { grid-column: span 2; }
.ai-demo { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; max-width: 540px; }
.ai-demo .q { font-size: 15px; background: #fff; color: #0c1324; padding: 11px 15px; border-radius: 18px; border-bottom-left-radius: 6px; justify-self: start; max-width: 85%; }
.ai-demo .a { font-size: 15px; background: #cfe0ff; color: #0c1324; padding: 11px 15px; border-radius: 18px; border-bottom-right-radius: 6px; justify-self: end; max-width: 85%; }
.ai-demo .src { font-size: 12px; color: rgb(255 255 255 / .8); display: flex; align-items: center; gap: 6px; justify-self: end; }
.meter { margin-top: auto; display: grid; gap: 14px; }
.meter-r { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 13px; }
.meter-r span { color: var(--text-2); }
.meter-r b { font-weight: 600; font-variant-numeric: tabular-nums; }
.meter-r .bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; width: var(--v); min-width: 6px; background: var(--accent); }
.meter-r:nth-child(2) .bar { background: var(--sky); }
.meter-r:nth-child(3) .bar { background: var(--line-2); }
.objections { margin-top: auto; display: flex; flex-wrap: wrap; gap: 8px; }
.objections span { font-size: 13px; padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface-2); }
.objections span b { color: var(--accent); margin-left: 6px; }
.xlate { margin-top: auto; display: grid; gap: 6px; font-size: 13px; }
.xlate div { padding: 9px 13px; border-radius: 14px; background: var(--surface-2); }
.xlate div:last-child { background: var(--accent-soft); }
.xlate div small { display: block; color: var(--text-3); font-size: 11px; }
.voice { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; background: var(--surface-2); }
.voice .wave { flex: 1; height: 28px; display: flex; align-items: center; gap: 2px; }
.voice .wave i { display: block; width: 3px; border-radius: 3px; background: var(--accent); opacity: .85; }
.voice-t { font-size: 13px; color: var(--text-2); margin-top: 8px; }

/* ---------- team: три колонки без карточек ---------- */
.feat-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.feat-grp { padding: 36px 32px 0; border-left: 1px solid var(--line); }
.feat-grp:first-child { padding-left: 0; border-left: 0; }
.feat-grp h3 { font-size: 24px; margin-bottom: 28px; }
.feat-grp ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.feat-grp li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.feat-grp li > i { width: 44px; height: 44px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: 21px; color: var(--accent); }
.feat-grp b { display: block; font-size: 16px; font-weight: 600; margin-bottom: 2px; }
.feat-grp span { font-size: 14px; color: var(--text-2); line-height: 1.5; }

/* ---------- owner ---------- */
.owner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.owner-list { margin: 36px 0 0; padding: 0; list-style: none; display: grid; gap: 18px; }
.owner-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; font-size: 17px; }
.owner-list i { font-size: 26px; color: var(--accent); }
.fired { position: relative; }
.fired-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 30px; }
.fired-row { display: flex; align-items: center; gap: 14px; }
.fired-row .av { width: 52px; height: 52px; font-size: 16px; }
.fired-row b { display: block; font-size: 17px; }
.fired-row span { font-size: 14px; color: var(--text-3); }
.fired-badge { margin-left: auto; font-size: 12px; font-weight: 600; padding: 5px 12px; border-radius: var(--r-pill); background: var(--warn-soft); color: var(--warn); }
.fired-arrow { display: flex; align-items: center; gap: 10px; margin: 22px 0; color: var(--text-3); font-size: 14px; }
.fired-arrow::before, .fired-arrow::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.fired-keep { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fired-keep div { background: var(--surface-2); border-radius: var(--r-in); padding: 16px; }
.fired-keep b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.fired-keep span { font-size: 12px; color: var(--text-2); }
.fired-foot { margin-top: 20px; display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ok); font-weight: 600; }
.fired-foot i { font-size: 20px; }
.lock { position: absolute; z-index: 2; right: -18px; top: -22px; width: 68px; height: 68px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 30px; box-shadow: 0 16px 34px -12px rgb(31 91 255 / .8); }

/* ---------- cascade ---------- */
.cascade { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-bottom: 56px; }
.cs { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px 20px; margin-right: 32px; display: flex; flex-direction: column; gap: 10px; transition: border-color .4s, box-shadow .4s; }
.cs:last-child { margin-right: 0; }
.cs:not(:last-child)::after { content: ""; position: absolute; right: -33px; top: 50%; width: 33px; height: 2px; background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 10px); background-size: 20px 2px; animation: flow 1s linear infinite; opacity: .6; }
@keyframes flow { to { background-position: 20px 0; } }
.cs .ci-w { width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; }
.cs .ci-w .si, .cs .ci-w .lt { width: 26px; height: 26px; }
.cs b { font-size: 17px; }
.cs span { font-size: 13px; color: var(--text-2); }
.cs .st { font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; margin-top: auto; }
.cs .st:empty { display: none; }
.cs .st.fail { color: var(--text-3); }
.cs .st.ok { color: var(--ok); }
.cs.start { border-color: transparent; }
.cs.start .ci-w { background: var(--blue); color: #fff; font-size: 24px; }
.cs.hit { border-color: var(--ok); box-shadow: 0 0 0 5px var(--ok-soft); }
.casc-split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.scen { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 34px; }
.scen h3, .rule h3 { font-size: 23px; margin-bottom: 8px; }
.scen > p { color: var(--text-2); margin-bottom: 24px; }
.scen-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.scen-list button { text-align: left; padding: 14px; border-radius: var(--r-in); border: 1px solid var(--line); background: var(--surface); display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 14px; transition: border-color .2s, background .2s; }
.scen-list button:hover { border-color: var(--accent); background: var(--accent-soft); }
.scen-list i { font-size: 22px; color: var(--accent); }
.scen-list b { display: block; font-size: 14px; font-weight: 600; }
.scen-list span { font-size: 12px; color: var(--text-3); }
.rule { border-radius: var(--r-card); padding: 34px; display: flex; flex-direction: column; gap: 10px; }
.rule > p { color: var(--text-2); margin-bottom: 14px; }
.rule-row { display: flex; align-items: center; gap: 12px; background: var(--surface); border-radius: 16px; border-bottom-left-radius: 6px; padding: 12px 14px; font-size: 14px; box-shadow: 0 1px 2px rgb(12 19 36 / .08); }
.rule-row .k { flex: none; font-weight: 600; color: var(--accent); background: var(--accent-soft); font-size: 12px; padding: 5px 10px; border-radius: 8px; min-width: 52px; text-align: center; }
.rule-row .v { font-weight: 500; flex: 1; min-width: 0; }
.saving { margin-top: auto; padding-top: 22px; display: flex; gap: 14px; align-items: center; font-size: 14px; color: var(--text-2); }
.saving b { font-size: 32px; font-weight: 700; color: var(--text); letter-spacing: -0.04em; white-space: nowrap; }

/* ---------- analytics ---------- */
.an { display: grid; grid-template-columns: 1.2fr 1fr; gap: 64px; align-items: center; }
.dash { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); padding: 26px; }
.dash-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi { background: var(--surface-2); border-radius: var(--r-in); padding: 16px; }
.kpi span { font-size: 12px; color: var(--text-3); display: block; margin-bottom: 4px; }
.kpi b { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.kpi em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ok); margin-left: 6px; }
.chart { height: 170px; position: relative; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .ln { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 900; stroke-dashoffset: 900; transition: stroke-dashoffset 2.2s var(--ease); }
.chart .ar { fill: url(#areaG); opacity: 0; transition: opacity 1.2s .6s; }
.in .chart .ln { stroke-dashoffset: 0; }
.in .chart .ar { opacity: 1; }
.chart .lbl { font-size: 11px; fill: var(--text-3); }
.ops { margin-top: 18px; display: grid; gap: 6px; }
.ops-r { display: grid; grid-template-columns: 30px 1fr auto auto; gap: 12px; align-items: center; font-size: 13px; padding: 6px 8px; border-radius: 10px; }
.ops-r:first-child { background: var(--accent-soft); }
.ops-r .av { width: 30px; height: 30px; font-size: 11px; }
.ops-r .t { color: var(--text-3); font-variant-numeric: tabular-nums; }
.ops-r .s { font-weight: 600; font-variant-numeric: tabular-nums; }
.an-list { margin: 32px 0 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.an-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; color: var(--text-2); }
.an-list i { font-size: 22px; color: var(--accent); }
.an-list b { color: var(--text); font-weight: 600; }

/* ---------- integrations ---------- */
.int-cloud { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.int { height: 104px; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; font-weight: 500; font-size: 14px; position: relative; transition: transform .35s var(--ease), box-shadow .3s; }
.int:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.int .si { width: 32px; height: 32px; }
.int .soon { position: absolute; top: 8px; right: 8px; font-size: 10px; padding: 1px 6px; }
.int-extra { margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.int-x { display: flex; gap: 18px; align-items: center; padding: 26px 28px; border-radius: var(--r-card); background: var(--bg-tint); }
.int-x > i { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; color: var(--accent); background: var(--surface); flex: none; }
.int-x b { display: block; font-size: 18px; font-weight: 600; }
.int-x span { font-size: 14px; color: var(--text-2); }
.int-x a { margin-left: auto; color: var(--accent); font-weight: 600; font-size: 14px; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }

/* ---------- apps ---------- */
.apps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.app { border-radius: var(--r-card); padding: 28px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-height: 260px; }
/* Цветные плашки с градиентом — как у вариантов в мастере рассылки кабинета (broadcasts.css, .opt .ic) */
.app > i { --ic: #1f5bff; --ic2: #5b8cff; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 28px; color: #fff; background: linear-gradient(135deg, var(--ic2), var(--ic)); box-shadow: 0 8px 18px -8px var(--ic); margin-bottom: 4px; }
.app > i.ic--violet { --ic: #7c3aed; --ic2: #a78bfa; }
.app > i.ic--orange { --ic: #f6501a; --ic2: #ff8a1f; }
.app > i.ic--sky { --ic: #0284c7; --ic2: #38bdf8; }
.app h3 { font-size: 20px; }
.app p { font-size: 14px; color: var(--text-2); }
.app .plat { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.app .plat span { font-size: 12px; padding: 5px 11px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--text-2); display: inline-flex; gap: 6px; align-items: center; }
.app .plat .si { width: 14px; height: 14px; }
.tgb { background: var(--surface); border-radius: 22px; padding: 14px; display: grid; gap: 8px; font-size: 12.5px; box-shadow: 0 30px 50px -20px rgb(0 0 0 / .5); }
.tgb .m { background: var(--surface-2); border-radius: 14px; padding: 9px 11px; line-height: 1.4; }
.tgb .m small { display: block; color: var(--text-3); font-size: 11px; margin-bottom: 2px; }
.tgb .kb { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tgb .kb span { text-align: center; padding: 8px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 12px; }
.tgb .me { background: var(--accent); color: #fff; border-radius: 14px; border-bottom-right-radius: 5px; padding: 9px 11px; justify-self: end; max-width: 85%; }

/* ---------- industries ---------- */
.ind { display: grid; grid-template-columns: 270px 1fr; gap: 40px; }
.ind-nav { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); }
.ind-nav button { text-align: left; padding: 13px 20px; font-weight: 500; color: var(--text-3); display: flex; align-items: center; gap: 12px; position: relative; transition: color .2s; }
.ind-nav button::before { content: ""; position: absolute; left: -1px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--accent); transform: scaleY(0); transition: transform .3s var(--ease); }
.ind-nav button i { font-size: 20px; }
.ind-nav button:hover { color: var(--text); }
.ind-nav button[aria-selected="true"] { color: var(--text); font-weight: 600; }
.ind-nav button[aria-selected="true"]::before { transform: scaleY(1); }
.ind-nav button[aria-selected="true"] i { color: var(--accent); }
.ind-p { grid-template-columns: 1.25fr 1fr; gap: 16px; }
.ind-txt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.ind-txt h3 { font-size: 23px; }
.ind-txt dl { margin: 0; display: grid; gap: 14px; }
.ind-txt dt { font-size: 13px; font-weight: 600; color: var(--text-3); }
.ind-txt dd { margin: 4px 0 0; font-size: 15px; color: var(--text-2); }
.ind-txt .res { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.ind-txt .res b { font-size: 40px; font-weight: 700; color: var(--accent); letter-spacing: -0.05em; line-height: 1; }
.ind-txt .res span { display: block; font-size: 13px; margin-top: 6px; color: var(--text-2); }
.ind-chat { border-radius: var(--r-card); padding: 22px; padding-top: 84px; display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; min-height: 400px; position: relative; overflow: hidden; isolation: isolate; background: var(--wp-base); }
.ind-chat::before { content: ""; position: absolute; inset: -20%; z-index: -2; background: radial-gradient(closest-side at 25% 30%, var(--wp-1), transparent), radial-gradient(closest-side at 80% 70%, var(--wp-2), transparent); }
.ind-chat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wp-doodle); -webkit-mask: var(--doodle, none) 0 0 / 260px 260px repeat; mask: var(--doodle, none) 0 0 / 260px 260px repeat; }
.ind-chat .hd { position: absolute; top: 0; left: 0; right: 0; padding: 16px 18px; display: flex; gap: 10px; align-items: center; background: color-mix(in srgb, var(--surface) 85%, transparent); backdrop-filter: blur(10px); font-size: 14px; }
.ind-chat .hd b { display: block; font-size: 14px; }
.ind-chat .hd span { font-size: 12px; color: var(--text-3); }
.ind-chat .msg { max-width: 78%; font-size: 14px; }
.ind-chat .btns { align-self: flex-end; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 78%; }
.ind-chat .btns span { font-size: 13px; padding: 7px 14px; border-radius: var(--r-pill); color: var(--accent); background: var(--surface); font-weight: 600; box-shadow: 0 1px 2px rgb(12 19 36 / .08); }
.ind-chat .sys { align-self: center; font-size: 12px; color: var(--text-2); background: color-mix(in srgb, var(--surface) 75%, transparent); padding: 5px 12px; border-radius: var(--r-pill); display: inline-flex; gap: 6px; align-items: center; }
.ind-chat .sys i { color: var(--accent); }
.roles { margin-top: 72px; }
.roles h3 { font-size: 24px; margin-bottom: 20px; }
.role-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.role-row::-webkit-scrollbar { display: none; }
.rl { scroll-snap-align: start; flex: 0 0 250px; border-radius: var(--r-card); padding: 24px; background: var(--surface); border: 1px solid var(--line); }
.rl i { font-size: 28px; color: var(--accent); }
.rl b { display: block; font-size: 17px; font-weight: 600; margin: 14px 0 6px; }
.rl span { font-size: 14px; color: var(--text-2); }

/* ---------- compare ---------- */
.cmp { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; max-width: 1000px; margin: 0 auto; }
.cmp table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp th, .cmp td { padding: 18px 26px; text-align: left; }
.cmp thead th { font-size: 14px; font-weight: 500; color: var(--text-3); padding-top: 24px; border-bottom: 1px solid var(--line); }
.cmp tbody tr + tr td { border-top: 1px solid var(--line); }
.cmp .us { background: var(--accent-soft); font-weight: 600; width: 26%; }
.cmp thead th.us img { height: 24px; display: inline-block; vertical-align: middle; }
.cmp td i { font-size: 22px; vertical-align: -5px; }
.cmp .y { color: var(--accent); }
.cmp .n { color: var(--text-3); }
.cmp td:first-child { font-weight: 500; }
.cmp td:last-child { color: var(--text-2); }
.cmp-wrap { overflow-x: auto; }
.cmp .logo-inline.d { display: none; }
:root[data-theme="dark"] .cmp .logo-inline.l { display: none; }
:root[data-theme="dark"] .cmp .logo-inline.d { display: inline-block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cmp .logo-inline.l { display: none; } :root:not([data-theme="light"]) .cmp .logo-inline.d { display: inline-block; } }

/* ---------- cases ---------- */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.case { border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease), box-shadow .3s; }
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.case-img.v { display: grid; place-items: center; font-size: 64px; aspect-ratio: 16 / 10; color: var(--accent); background: var(--accent-soft); position: relative; overflow: hidden; }
.case-b { padding: 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.case-b b { font-size: 46px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.case-b p { font-size: 15px; color: var(--text-2); }
.case-b .who { margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--text-3); display: flex; justify-content: space-between; gap: 8px; }
.case-b .who span:first-child { font-weight: 600; color: var(--text); }
.case.big { grid-column: span 2; flex-direction: row; border: 0; }
.case.big .case-img { aspect-ratio: auto; flex: .8; background: var(--wp-base); color: var(--blue); font-size: 100px; isolation: isolate; }
.case.big .case-img::before { content: ""; position: absolute; inset: -20%; z-index: -1; background: radial-gradient(closest-side at 30% 30%, #2f6bff, transparent), radial-gradient(closest-side at 75% 75%, #2bb3ff, transparent); opacity: .9; }
.case.big .case-img i { color: #fff; }
.case.big .case-b { flex: 1.2; padding: 30px; }
.case.big .case-b b { font-size: 56px; color: #9cb8ff; }
.case.big .tag { font-size: 12px; font-weight: 600; color: var(--text-3); }
.case.big dl { margin: 8px 0 0; display: grid; gap: 10px; font-size: 14px; }
.case.big dt { font-weight: 600; }
.case.big dd { margin: 0; color: var(--text-2); }

/* ---------- testimonials: переписка на обоях ---------- */
.quotes { columns: 3; column-gap: 16px; }
.q { break-inside: avoid; margin: 0 0 16px; border-radius: 22px; border-bottom-left-radius: 6px; padding: 24px; background: var(--surface); box-shadow: 0 1px 2px rgb(12 19 36 / .08), 0 10px 24px -16px rgb(12 19 36 / .25); position: relative; }
.q p { font-size: 16px; line-height: 1.55; }
.q .stars { color: #f5a524; font-size: 14px; margin-bottom: 10px; display: flex; gap: 2px; }
.q .by { display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.q .by img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--surface-2); }
.q .by b { display: block; font-size: 14px; font-weight: 600; }
.q .by span { font-size: 13px; color: var(--text-3); }
.q.acc { --text-3: rgb(255 255 255 / .75); padding: 32px; background: var(--blue); color: #fff; border-radius: 26px; border-bottom-left-radius: 26px; border-bottom-right-radius: 6px; }
.q.acc p { font-size: 22px; line-height: 1.4; font-weight: 500; letter-spacing: -0.02em; }
.ratings { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; justify-content: center; }
.rate { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--p-surface) 75%, transparent); backdrop-filter: blur(8px); font-size: 14px; color: var(--text-2); }
.rate b { color: var(--text); font-size: 18px; font-weight: 700; }
.rate i { color: #f5a524; font-size: 18px; }

/* ---------- security ---------- */
.sec-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bdg { border-radius: var(--r-card); padding: 24px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.bdg > i { font-size: 28px; color: var(--accent); }
.bdg b { font-size: 16px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.bdg span { font-size: 14px; color: var(--text-2); }
.bdg span a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.bdg.ru { grid-column: span 2; flex-direction: row; align-items: center; gap: 20px; padding: 28px; border: 0; }
.bdg.ru b { font-size: 20px; }
.bdg.ru .flag { width: 60px; height: 42px; border-radius: 8px; overflow: hidden; display: grid; grid-template-rows: 1fr 1fr 1fr; flex: none; box-shadow: 0 0 0 1px rgb(255 255 255 / .15); }
.bdg.ru .flag i:nth-child(1) { background: #fcfdff; }
.bdg.ru .flag i:nth-child(2) { background: #1f5bff; }
.bdg.ru .flag i:nth-child(3) { background: #e3263b; }
.sec-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- support ---------- */
.sup { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mate { border-radius: var(--r-card); overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.mate:nth-child(2) { margin-top: 36px; }
.mate img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.mate div { padding: 12px 14px; }
.mate b { display: block; font-size: 15px; font-weight: 600; }
.mate span { font-size: 12px; color: var(--text-3); }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise div { padding: 22px 20px; border-left: 1px solid var(--line); }
.promise div:first-child { padding-left: 0; border-left: 0; }
.promise b { display: block; font-size: 36px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.promise div:first-child b { color: var(--accent); }
.promise span { font-size: 14px; color: var(--text-2); display: block; margin-top: 8px; }
.try-sup { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.try-sup > span { font-size: 14px; color: var(--text-2); margin-right: 4px; }

/* ---------- pricing ---------- */
.period { display: inline-flex; gap: 4px; padding: 5px; border-radius: var(--r-pill); background: var(--surface-2); margin: 0 auto 48px; }
.period button { height: 44px; padding: 0 20px; border-radius: var(--r-pill); font-weight: 500; font-size: 15px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; transition: background .25s, color .25s, box-shadow .25s; }
.period button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.period em { font-style: normal; font-size: 12px; font-weight: 600; color: var(--ok); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr) .85fr; gap: 12px; align-items: stretch; }
.plan { border-radius: 24px; padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; position: relative; }
.plan h3 { font-size: 22px; }
.plan .d { font-size: 14px; color: var(--text-2); min-height: 42px; }
.plan .pr { display: flex; align-items: baseline; gap: 6px; }
.plan .pr b { font-size: 48px; font-weight: 700; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; line-height: 1; }
.plan .pr span { color: var(--text-3); font-size: 14px; }
.plan .old { font-size: 13px; color: var(--text-3); text-decoration: line-through; min-height: 18px; }
.plan ul { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; font-size: 14px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 8px; }
.plan li i { color: var(--accent); font-size: 18px; }
.plan li.no { color: var(--text-3); }
.plan li.no i { color: var(--text-3); }
.plan .btn { width: 100%; margin-top: auto; }
.plan.pop { border: 0; overflow: hidden; isolation: isolate; box-shadow: 0 36px 70px -30px rgb(31 91 255 / .8); }
.plan.pop::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 100% 0%, rgb(43 179 255 / .6), transparent 50%); }
.plan.pop .flag { position: absolute; top: 20px; right: 20px; background: #fff; color: var(--blue); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: var(--r-pill); }
.plan.ent { background: transparent; border-style: dashed; }
.unl { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center; font-size: 14px; color: var(--text-2); }
.unl span { display: inline-flex; gap: 6px; align-items: center; }
.unl i { color: var(--accent); }
.extras { margin-top: 56px; display: grid; grid-template-columns: 1.15fr 1fr; border-radius: 28px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.ex-l, .ex-r { padding: 36px; }
.extras h3 { font-size: 24px; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.extras h3 i { color: var(--accent); }
.extras h3 + p { color: var(--text-2); font-size: 15px; margin-bottom: 24px; max-width: 46ch; }
.ex-rows { display: grid; gap: 10px; }
.ex-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.ex-row > i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 20px; background: var(--accent-soft); color: var(--accent); }
.ex-row div { display: grid; gap: 2px; line-height: 1.3; min-width: 0; }
.ex-row b { font-weight: 600; font-size: 15px; }
.ex-row span { font-size: 13px; color: var(--text-3); }
.ex-row em { font-style: normal; font-weight: 700; font-size: 17px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ai-packs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.ap { padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; }
.ap b { font-size: 26px; font-weight: 700; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.15; }
.ap b::after { content: " подсказок"; font-size: 13px; font-weight: 400; letter-spacing: 0; color: var(--text-3); }
.ap span { font-weight: 600; font-variant-numeric: tabular-nums; }
.ap small { font-size: 12px; color: var(--ok); font-weight: 600; }
.ap.best { border-color: var(--accent); }
.trial { margin-top: 20px; border-radius: 28px; padding: 32px 36px; background: var(--bg-tint); display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: center; }
.trial h3 { font-size: 21px; }
.trial ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; counter-reset: t; }
.trial li { counter-increment: t; font-size: 14px; color: var(--text-2); display: flex; flex-direction: column; gap: 4px; }
.trial li::before { content: counter(t); width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.trial li b { color: var(--text); font-size: 14px; font-weight: 600; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; align-items: start; max-width: 1100px; margin: 0 auto; }
.faq > div { gap: 0 !important; }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary { list-style: none; padding: 22px 0; font-weight: 500; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; cursor: pointer; transition: color .2s; }
.faq summary:hover { color: var(--accent); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { font-size: 18px; color: var(--text-3); transition: transform .35s var(--ease), color .2s; flex: none; }
.faq details[open] summary i { transform: rotate(45deg); color: var(--accent); }
.faq details p { padding: 0 0 22px; color: var(--text-2); font-size: 15px; animation: pop .4s var(--ease); max-width: 52ch; }

/* ---------- final CTA на синих обоях ---------- */
.final { border-radius: 36px; padding: 88px 72px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.final h2 { font-size: clamp(36px, 4.4vw, 62px); line-height: 1.03; letter-spacing: -0.045em; max-width: 13ch; }
.final h2 em { color: #bcd2ff; }
.final p { font-size: 19px; color: var(--text-2); margin-top: 20px; max-width: 40ch; }
.final .risk { color: var(--text); }
.final .risk i { color: #fff; }
.lead-form { background: var(--surface); border-radius: 28px; border-bottom-right-radius: 8px; padding: 32px; box-shadow: 0 40px 80px -30px rgb(6 10 30 / .55); display: grid; gap: 18px; }
.lead-form h3 { font-size: 23px; }
.fld { display: grid; gap: 6px; }
.fld label, .fld .lbl { font-size: 13px; font-weight: 500; color: var(--text-2); }
.fld input { height: 52px; border-radius: var(--r-in); border: 1px solid var(--line-2); background: var(--surface); padding: 0 16px; font: inherit; color: var(--text); transition: border-color .2s, box-shadow .2s; }
.fld input::placeholder { color: var(--text-3); }
.fld input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.fld .hint { font-size: 12px; color: var(--text-3); }
.fld .err { font-size: 12px; color: #d92d20; display: none; }
.fld.bad input { border-color: #d92d20; }
.fld.bad .err { display: block; }
.via { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.via button { height: 46px; border-radius: var(--r-in); border: 1px solid var(--line-2); display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: 13px; font-weight: 500; background: var(--surface); transition: border-color .2s, background .2s; }
.via button[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.lead-form .btn { width: 100%; }
.lead-form .legal { font-size: 12px; color: var(--text-3); }
.lead-form .ok-msg { display: none; text-align: center; padding: 28px 8px; }
.lead-form .ok-msg i { font-size: 52px; color: var(--ok); display: inline-block; animation: pop .5s var(--ease); }
.lead-form .ok-msg b { display: block; font-size: 22px; margin: 10px 0 6px; }
.lead-form .ok-msg span { color: var(--text-2); font-size: 15px; }
.lead-form.sent > :not(.ok-msg) { display: none; }
.lead-form.sent .ok-msg { display: block; }

/* ---------- footer ---------- */
.ftr { padding: 80px 0 40px; margin-top: 112px; }
.ftr .logo .logo-light { display: none !important; }
.ftr .logo .logo-dark { display: block !important; }
.ftr-top { display: grid; grid-template-columns: 1.3fr repeat(5, 1fr); gap: 32px; }
.ftr-brand img { height: 30px; }
.ftr-brand p { font-size: 14px; color: var(--text-2); margin-top: 16px; max-width: 30ch; }
.ftr-brand .soc { display: flex; gap: 8px; margin-top: 20px; }
.ftr-brand .soc a { width: 44px; height: 44px; border-radius: 50%; background: rgb(255 255 255 / .07); display: grid; place-items: center; transition: background .2s; }
.ftr-brand .soc a:hover { background: rgb(255 255 255 / .14); }
.ftr h4 { font-size: 14px; font-weight: 600; margin-bottom: 18px; letter-spacing: 0; }
.ftr ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.ftr li a { font-size: 14px; color: var(--text-2); transition: color .15s; }
.ftr li a:hover { color: #fff; }
.ftr-bot { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 13px; color: var(--text-3); }
.ftr-bot a:hover { color: #fff; }
.ftr-bot .note { flex-basis: 100%; font-size: 12px; }

/* ---------- web chat widget (dogfooding) ---------- */

/* ---------- reveal ---------- */
.rv:not(.in) { opacity: 0; }
.rv.in { animation: rvIn .9s var(--ease) var(--d, 0s) backwards; }
@keyframes rvIn { from { opacity: 0; translate: 0 28px; } }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: grid; }
  .login { display: none; }
  .fc-1 { left: 12px; top: auto; bottom: 40px; } .fc-2 { right: 12px; top: -30px; }
  .demo { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .ch-grid { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bx-1 { grid-column: span 2; grid-row: auto; min-height: 420px; }
  .bx-2 { grid-column: span 2; grid-row: auto; }
  .bx-3, .bx-4 { grid-column: span 1; }
  .bx-5 { grid-column: span 2; }
  .feat-cols { grid-template-columns: 1fr; border-top: 0; }
  .feat-grp { padding: 32px 0; border-left: 0; border-top: 1px solid var(--line); }
  .owner, .an, .sup, .sec-grid { grid-template-columns: 1fr; gap: 48px; }
  .cascade { grid-template-columns: 1fr; gap: 16px; }
  .cs { margin-right: 0; }
  .cs:not(:last-child)::after { right: auto; left: 42px; top: auto; bottom: -17px; width: 2px; height: 17px; background: repeating-linear-gradient(180deg, var(--accent) 0 4px, transparent 4px 8px); animation: none; }
  .casc-split { grid-template-columns: 1fr; }
  .int-cloud { grid-template-columns: repeat(4, 1fr); }
  .apps { grid-template-columns: 1fr 1fr; }
  .ind { grid-template-columns: 1fr; }
  .ind-nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; border-left: 0; border-bottom: 1px solid var(--line); }
  .ind-nav button { white-space: nowrap; }
  .ind-nav button::before { left: 12px; right: 12px; top: auto; bottom: -1px; width: auto; height: 3px; transform: scaleX(0); }
  .ind-nav button[aria-selected="true"]::before { transform: scaleX(1); }
  .cases { grid-template-columns: 1fr 1fr; }
  .quotes { columns: 2; }
  .plans { grid-template-columns: 1fr 1fr; }
  .extras { grid-template-columns: 1fr; }
  .trial { grid-template-columns: 1fr; }
  .final { grid-template-columns: 1fr; padding: 64px 44px; }
  .ftr-top { grid-template-columns: 1fr 1fr 1fr; }
  .ftr-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 80px 0; }
  .blk { margin: 0 8px; border-radius: 24px; }
  .sec-head { margin-bottom: 36px; }
  .hdr { padding-top: 14px; }
  .hdr.scrolled { padding-top: 0; margin-bottom: 14px; }
  .hdr-in { gap: 12px; height: 64px; }
  .hdr .logo img { height: 34px; }
  .hdr-right .btn { display: none; }
  .hero { margin-top: -70px; padding-top: 118px; }
  .hero h1 { font-size: clamp(36px, 11vw, 52px); }
  .hero-sub { font-size: 17px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 100%; }
  .hero-vis { margin-top: 28px; width: calc(100% - 16px); max-width: none; }
  .bezel { inset: -8px -8px -80px; border-radius: 18px 18px 0 0; }
  .scr-in { border-radius: 8px 8px 0 0; }
  .float-card { display: none; }
  .fx-glow { height: calc(420px + 2 * var(--pad)); }
  .chip-ch { font-size: 16px; }
  .trust-row { gap: 12px 20px; font-size: 14px; }
  .demo-l { padding: 36px 22px; }
  .demo-r { grid-template-columns: 1fr; padding: 28px 16px; }
  .phone { max-width: 240px; margin: 0 auto; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .stat { padding: 0 0 0 16px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat b { font-size: 34px; }
  .stat span { font-size: 13px; }
  .goal { grid-template-columns: 1fr; }
  .ba { padding: 26px; }
  .ba-after .metric b { font-size: 40px; }
  .tabs { gap: 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .tab { font-size: 15px; white-space: nowrap; }
  .ch-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ch-card { padding: 18px; }
  .ch-card.feat { grid-column: span 2; }
  .ch-card .soon, .ch-card .new { top: 14px; right: 14px; }
  .bento { grid-template-columns: 1fr; }
  .bx-1, .bx-2, .bx-3, .bx-4, .bx-5 { grid-column: auto; }
  .bx { padding: 24px; }
  .fired-keep b { font-size: 20px; }
  .lock { right: 4px; width: 56px; height: 56px; font-size: 26px; }
  .scen-list { grid-template-columns: 1fr; }
  .dash { padding: 18px; }
  .dash-top { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .kpi { padding: 12px; }
  .kpi b { font-size: 19px; }
  .kpi em { display: block; margin: 2px 0 0; }
  .int-cloud { grid-template-columns: repeat(2, 1fr); }
  .int-extra { grid-template-columns: 1fr; }
  .int-x { flex-wrap: wrap; }
  .int-x a { margin-left: 74px; }
  .apps { grid-template-columns: 1fr; }
  .ind-p { grid-template-columns: 1fr; }
  .cmp th, .cmp td { padding: 14px; font-size: 14px; }
  .cmp table { min-width: 560px; }
  .cases { grid-template-columns: 1fr; }
  .case.big { grid-column: auto; flex-direction: column; }
  .case.big .case-img { aspect-ratio: 16 / 10; }
  .quotes { columns: 1; }
  .q.acc p { font-size: 19px; }
  .badges { grid-template-columns: 1fr; }
  .bdg.ru { grid-column: auto; flex-direction: column; align-items: flex-start; }
  .bdg.wide { grid-column: auto; }
  .team { gap: 8px; }
  .mate:nth-child(2) { margin-top: 20px; }
  .promise b { font-size: 26px; }
  .promise div { padding: 16px 10px; }
  .promise span { font-size: 12px; }
  .plans { grid-template-columns: 1fr; }
  .period { display: flex; }
  .period button { flex: 1; padding: 0 8px; font-size: 14px; }
  .extras { border-radius: 24px; }
  .ex-l, .ex-r { padding: 26px 20px; }
  .ex-row { grid-template-columns: 40px 1fr; }
  .ex-row em { grid-column: 2; }
  .ap b { font-size: 22px; }
  .trial { padding: 24px 20px; border-radius: 24px; }
  .trial ol { grid-template-columns: 1fr; }
  .faq { grid-template-columns: 1fr; }
  .final { padding: 44px 20px; border-radius: 24px; }
  .via { grid-template-columns: 1fr 1fr; }
  .ftr { margin-top: 80px; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .promo { padding: 10px 40px 10px 16px; text-align: left; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .rv:not(.in) { opacity: 1; }
  .rv.in { animation: none; }
  .mq-track { animation: none; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
}

/* ---------- brand icons ---------- */
.si { display: inline-block; width: 20px; height: 20px; flex: none; background: none center / contain no-repeat; }
.si-apple { background: currentColor; -webkit-mask: url(assets/icons/apple.svg) center / contain no-repeat; mask: url(assets/icons/apple.svg) center / contain no-repeat; }
/* Официальные логотипы. Файлы в assets/brands: Wikimedia Commons, сайты брендов, иконка Ozon из App Store. */
.si-wa { background-image: url(assets/brands/whatsapp.svg); }
.si-tg { background-image: url(assets/brands/telegram.svg); }
.si-vk { background-image: url(assets/brands/vk.svg); }
.si-max { background-image: url(assets/brands/max.svg); }
.si-ig { background-image: url(assets/brands/instagram.svg); }
.si-ok { background-image: url(assets/brands/ok.svg); }
.si-vb { background-image: url(assets/brands/viber.svg); }
.si-n8n { background-image: url(assets/brands/n8n.svg); }
.si-avito { background-image: url(assets/brands/avito.png); }
.si-waba { background-image: url(assets/brands/whatsapp-business.png); }
.si-wb { background-image: url(assets/brands/wildberries.png); border-radius: 22%; }
.si-ozon { background-image: url(assets/brands/ozon.png); border-radius: 22%; }
.si-amo { background-image: url(assets/brands/amocrm.png); }
.si-b24 { background-image: url(assets/brands/bitrix24.svg); }
.si-ycl { background-image: url(assets/brands/yclients.png); }
.si-rcrm { background-image: url(assets/brands/retailcrm.svg); }
.si-1c { background-image: url(assets/brands/1c.svg); }
.si-mp { background-image: url(assets/brands/megaplan.png); border-radius: 22%; }
.si-gc { background-image: url(assets/brands/getcourse.png); }
.si-alt { background-image: url(assets/brands/altegio.svg); }
.si-rs { background-image: url(assets/brands/roistat.png); }
.si-ym { background-image: url(assets/brands/yandex-metrica.svg); }
.si-tilda { background-image: url(assets/brands/tilda.png); }
/* SMS и Email: иконки Lucide (mail, message-square-text), цветные градиентные плашки */
.lt-sms { background: linear-gradient(135deg, #34d399, #059669); }
.lt-mail { background: linear-gradient(135deg, #fb923c, #ea580c); }
.lt .lu { display: block; width: 62%; height: 62%; color: #fff; }
.av .ch .lt .lu { width: 66%; height: 66%; }
.lt-web { background: linear-gradient(135deg, #60a5fa, #1f5bff); }
.lt-tel { background: #0f9d6b; }

/* ---------- icon sizes by context ---------- */
.mega.channels .si, .mega.channels .lt { width: 22px; height: 22px; }
.mega.channels .lt { font-size: 11px; }
.demo-ch .si { width: 20px; height: 20px; }
/* логотип заполняет кружок целиком, белая только тонкая обводка */
.av .ch .si, .av .ch .lt { width: 100%; height: 100%; }
.av .ch .lt { font-size: 10px; border-radius: 50%; }
.btn .si { width: 18px; height: 18px; }
.op-meta .si, .op-meta .lt { width: 12px; height: 12px; }
.op-meta .lt { font-size: 7px; border-radius: 3px; }
.lt i { font-size: 1.1em; }
.logo-inline { height: 22px; }
span.lt, span.av { color: #fff; }

/* ==========================================================================
   Первый экран: фирменный синий фон («обои» с переливом), белый текст.
   Окно чата и карточки поверх него — со своими светлыми токенами.
   ========================================================================== */
.hero[data-bg="brand"] {
  --surface: #ffffff; --surface-2: #f2f5fa; --line: #e3e7ef; --line-2: #cfd5e1; --accent-soft: #e6edff;
  --ok: #0d8f61; --ok-soft: #e1f5ec; --p-surface: #ffffff;
  --wp-base: #1f5bff; --wp-1: #3f8cff; --wp-2: #2bb3ff; --wp-3: #5b6dff; --wp-4: #1646d1;
  --text: #ffffff; --text-2: rgb(255 255 255 / .86); --text-3: rgb(255 255 255 / .72); --accent: #ffffff; --accent-ink: #e6edff;
  color: var(--text);
}
.hero[data-bg="brand"] h1 .hl { color: #bcd2ff; }
.hero[data-bg="brand"] .inbox {
  --text: #0c1324; --text-2: #485269; --text-3: #69728a; --accent: #1f5bff; --accent-ink: #1646d1; color: var(--text);
}
.hero[data-bg="brand"] .btn-primary { background: #fff; color: #1646d1; }
.hero[data-bg="brand"] .btn-ghost { color: #fff; background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .28); }
.hero[data-bg="brand"] .btn-ghost:hover { background: rgb(255 255 255 / .2); }
/* шапка поверх синего первого экрана, пока страница не прокручена */
.hdr:not(.scrolled):not(.menu) { --text: #fff; --text-2: rgb(255 255 255 / .82); }
.hdr:not(.scrolled):not(.menu) .logo .logo-light { display: none; }
.hdr:not(.scrolled):not(.menu) .logo .logo-dark { display: block; }
.hdr:not(.scrolled):not(.menu) .nav-a:hover, .hdr:not(.scrolled) .nav li:hover > .nav-a, .hdr:not(.scrolled) .icon-btn:hover { background: rgb(255 255 255 / .12); }
.hdr:not(.scrolled):not(.menu) .hdr-right .btn-primary { background: #fff; color: #1646d1; }

/* «Пузыри»: облачка сообщений медленно всплывают по бокам от окна, дальние мельче и размыты */
.fx-bubbles { position: absolute; inset: 0; }
.bb {
  position: absolute; top: var(--y); display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 16px 10px 10px; border-radius: 20px; font: 500 14px/1.2 var(--f); color: #0c1324;
  background: rgb(255 255 255 / .92); box-shadow: 0 0 0 1px rgb(12 19 36 / .05), 0 18px 40px -18px rgb(10 30 90 / .45);
  scale: var(--s); filter: blur(calc((1 - var(--s)) * 6px)); opacity: calc(var(--s) * 1.05);
  animation: bbFloat 9s ease-in-out var(--dl) infinite;
}
.bb.l { right: calc(100% + var(--x)); transform-origin: right center; border-bottom-right-radius: 6px; }
.bb.r { left: calc(100% + var(--x)); transform-origin: left center; border-bottom-left-radius: 6px; }
.bb .si { width: 24px; height: 24px; }
@keyframes bbFloat { 0%, 100% { translate: 0 10px; } 50% { translate: 0 -12px; } }

@media (max-width: 767px) { .fx-bubbles { display: none !important; } }




/* сноски-звёздочки у названий каналов */
.chip-ch sup, .mega sup, .ch-card h3 sup { font-size: .6em; vertical-align: super; line-height: 0; margin-left: 1px; color: var(--text-3); }

/* ---------- карточки поверх экрана: тёмное «жидкое стекло» ----------
   Веб-аппроксимация Liquid Glass (не официальный материал Apple): полупрозрачная
   тонированная подложка + размытие фона + тонкая светлая кромка + блик сверху. */
.float-card {
  --text: #ffffff; --text-2: rgb(255 255 255 / .82); --text-3: rgb(255 255 255 / .7); --accent: #8fb0ff; --ok: #4ade80;
  color: var(--text); isolation: isolate; overflow: hidden;
  background: linear-gradient(135deg, rgb(22 30 60 / .74), rgb(16 22 48 / .58));
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid rgb(255 255 255 / .09);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .07), 0 20px 44px -16px rgb(8 14 40 / .55);
}
.float-card::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; border-radius: inherit;
  background: radial-gradient(120% 80% at 15% 0%, rgb(255 255 255 / .18), transparent 55%); }
.float-card span { color: var(--text-3); }
.float-card .av { color: #fff; box-shadow: 0 0 0 2px rgb(255 255 255 / .25); }
.fc-2 > i, .float-card .ph-sparkle { color: #a5c0ff; }
.float-card .fc-note { color: #fbbf24; }
.float-card .fc-night { color: #c4b5fd; }
.fc-2 .fc-go { background: #ffffff; color: #1646d1; }
.fc-1 .fc-ic { color: rgb(255 255 255 / .6); }
/* на «Ночи» и «Бренд-синем» текст в стеклянных карточках тоже белый (перебиваем правило для .inbox/.float-card этих фонов) */
.hero[data-bg] .float-card { --text: #ffffff; --text-2: rgb(255 255 255 / .82); --text-3: rgb(255 255 255 / .7); --accent: #8fb0ff; color: #ffffff; }
@media (prefers-reduced-transparency: reduce) { .float-card { background: #141c38; -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* кнопка-ответ под сообщением в демо («Да» → регистрация) */
.msg-kb { display: flex; gap: 6px; margin-top: -2px; }
.msg-kb.out { justify-content: flex-end; }
.msg-kb.in { justify-content: flex-start; }
.kb-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; height: 36px; padding: 0 22px; border-radius: 12px;
  background: var(--surface); color: var(--accent); font-weight: 600; font-size: 14px; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: 0 1px 2px rgb(12 19 36 / .08); animation: pop .45s var(--ease); transition: background .2s, color .2s, transform .2s var(--ease); }
.kb-btn:hover { background: var(--accent); color: var(--accent-on); transform: translateY(-1px); }
.phone-msgs .kb-btn { min-width: 72px; height: 30px; font-size: 12px; border-radius: 10px; padding: 0 16px; }
.kb-btn { font-family: inherit; cursor: pointer; }
.kb-btn.kb-main { background: var(--accent); color: var(--accent-on); border-color: var(--accent); }
.kb-btn.kb-main:hover { background: var(--accent-ink); }
.phone-msgs .kb-btn.kb-main { padding: 0 12px; }

/* две иконки внахлёст: MAX и поверх него, со сдвигом, Telegram */
.ci-pair { display: flex; margin-bottom: 4px; }
.ci-pair .ci-w { margin-bottom: 0; }
.ci-pair .ci-w + .ci-w { margin-left: -14px; margin-top: 10px; box-shadow: 0 0 0 3px var(--blue), 0 8px 18px -8px rgb(0 0 0 / .35); }

/* бейджи магазинов приложений */
.stores { margin-top: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.store { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px; border-radius: 12px; background: #0c1324; color: #fff; transition: transform .2s var(--ease), background .2s; }
.store:hover { background: #1f2a44; transform: translateY(-1px); }
.store .si { width: 20px; height: 20px; color: #fff; }
.store span { display: grid; line-height: 1.05; font-size: 14px; font-weight: 600; }
.store small { font-size: 9.5px; font-weight: 400; opacity: .8; }
.si-gplay { background: currentColor; -webkit-mask: url(assets/icons/googleplay.svg) center / contain no-repeat; mask: url(assets/icons/googleplay.svg) center / contain no-repeat; }
:root[data-theme="dark"] .store { background: #f3f6fc; color: #0c1324; }
:root[data-theme="dark"] .store .si { color: #0c1324; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .store { background: #f3f6fc; color: #0c1324; } :root:not([data-theme="light"]) .store .si { color: #0c1324; } }

/* сценарии в блоке «Что меняется после подключения»: заголовок вместо крупной цифры */
.case .tag { font-size: 12px; font-weight: 600; color: var(--accent); }
.case-t { font-size: 21px; line-height: 1.2; letter-spacing: -0.02em; margin: 2px 0 2px; }
.case.big .case-t { font-size: 30px; color: #fff; max-width: 18ch; }
.case.big .tag { color: #9cb8ff; }

/* после удаления «Реестра ПО» нечётная карточка растягивается на всю ширину, без дыры в сетке */
.bdg.wide { grid-column: span 2; }
@media (max-width: 767px) { .bdg.wide { grid-column: auto; } }

/* ---------- блок поддержки: текст слева, пример переписки справа ---------- */
@media (min-width: 1101px) { .sup { grid-template-columns: 1.1fr 1fr; } }
.sup .lead { margin-top: 18px; }
.try-sup { flex-direction: column; align-items: flex-start; gap: 12px; }
.try-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.sup-chat { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); overflow: hidden; }
.sc-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.sc-head img { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-2); padding: 5px; }
.sc-head > div { display: grid; gap: 2px; line-height: 1.15; }
.sc-head b { font-size: 15px; font-weight: 600; }
.sc-head span { font-size: 12px; color: var(--ok); }
.sc-body { padding: 20px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-2); min-height: 320px; justify-content: flex-end; }
.sc-body .msg { max-width: 82%; font-size: 14.5px; animation: none; }
.sc-meta { align-self: flex-start; font-size: 11.5px; color: var(--text-3); margin: -4px 0 2px 4px; }

/* меню «Каналы»: общее правило .mega span (display:block) ломало центровку иконок в плашках SMS / чата / почты */
.mega .lt { display: grid; place-items: center; flex: none; color: #fff; border-radius: 6px; line-height: 1; }
.mega .lt .lu { width: 64%; height: 64%; }

/* ---------- мобильная версия: доводка (≤767px) ---------- */
@media (max-width: 767px) {
  /* класс .wrap обнулял верхний отступ строки преимуществ — линия прилипала к первому пункту */
  .trust-row.wrap { margin-top: 28px; padding-top: 24px; gap: 10px 18px; }
  /* лента каналов: компактнее и ближе к первому экрану */
  .strip { padding-top: 44px; }
  .strip-t { font-size: 14px; margin-bottom: 20px; padding: 0 16px; }
  .mq-track { gap: 26px; }
  .chip-ch { font-size: 15px; gap: 10px; }
  .chip-ch .si, .chip-ch .lt { width: 24px; height: 24px; }
  /* счётчик «за последние 24 часа» */
  .live-counter { display: flex; flex-wrap: wrap; gap: 2px 8px; font-size: 14px; border-radius: 18px; padding: 12px 16px; }
  /* таблица сравнения помещается в экран без горизонтальной прокрутки */
  .cmp table { min-width: 0; font-size: 13px; }
  .cmp th, .cmp td { padding: 12px 10px; font-size: 13px; }
  .cmp td:first-child { width: 40%; }
  .cmp .us { width: auto; }
  .cmp thead th.us img { height: 18px; }
  /* переключатель периода оплаты: скидка под названием, всё в одну высоту */
  .period button { flex-direction: column; gap: 0; height: 52px; line-height: 1.15; white-space: nowrap; }
  /* кнопки мессенджеров в блоке поддержки — в одну строку */
  .try-btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; width: 100%; }
  .try-btns .btn { padding: 0 6px; font-size: 14px; gap: 6px; }
  /* финальный блок: колонки не шире экрана */
  .final { grid-template-columns: minmax(0, 1fr); }
  .final > * { min-width: 0; }
  .final p { font-size: 17px; }
}

/* карточка «доступ закрыт»: плотная пара имя/должность, плашка не переносится */
.fired-row > div { display: grid; gap: 2px; line-height: 1.25; min-width: 0; }
.fired-badge { white-space: nowrap; }
@media (max-width: 767px) {
  .fired-row { display: grid; grid-template-columns: 48px 1fr; column-gap: 12px; row-gap: 10px; align-items: center; }
  .fired-row .av { width: 48px; height: 48px; }
  .fired-badge { grid-column: 2; justify-self: start; margin-left: 0; }
  .fired-card { padding: 22px; }
}
.fired-keep span { display: block; line-height: 1.3; margin-top: 4px; }
