@import url('design-tokens.css?v=20260623-1');
@import url('ds-components.css?v=20260622-3');  /* ФАЗА 1: единые компонент-классы .ds-* */
/* =========================================================
   Агентофон — landing styles
   Design tokens — web/shared/design-tokens.css (canonical brandbook),
   копия рядом (design-tokens.css), импортируется выше. SPRINT-28 Ф1.
   ========================================================= */

/* Base */
* { box-sizing: border-box; min-width: 0; }
html, body { margin: 0; padding: 0; max-width: 100%; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-primary);
  background: var(--bg-primary);
  background-image:
    radial-gradient(1200px 600px at 75% -10%, rgba(0,229,184,0.08), transparent 60%),
    radial-gradient(900px 500px at 5% 30%, rgba(52,211,153,0.05), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 760px; }
@media (max-width: 720px) {
  .container { padding: 0 18px; }
}
@media (max-width: 420px) {
  .container { padding: 0 16px; }
}

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(15,15,18,0.72);
  border-bottom: 1px solid var(--border-subtle);
  /* A3 (2026-06-23): viewport-fit=cover уводил шапку под вырез/статус-бар на
     мобайле — «Агентофон»/«Регистрация» лежали вплотную к верхней рамке.
     Отступ на безопасную зону (на десктопе env() = 0, без изменений). */
  padding-top: env(safe-area-inset-top, 0px);
}
@media (max-width: 720px) {
  /* небольшой базовый зазор сверху даже без выреза (где safe-area = 0). */
  .nav { padding-top: calc(env(safe-area-inset-top, 0px) + 6px); }
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; letter-spacing: -0.01em;
  color: var(--text-primary);
}
.brand-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.brand-name { font-size: 16px; }
.brand-logo {
  font-family: var(--font-sans, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 20px;
  color: var(--accent);
  letter-spacing: -0.01em;
}
/* v51: бренд = тот же логотип (трубка+«Агентофон»), что в кабинете */
.brand-logo-img { height: 30px; width: auto; display: block; }
@media (max-width: 640px) { .brand-logo-img { height: 26px; } }
.nav-links {
  display: flex; align-items: center; gap: 22px;
  margin-left: auto;
  flex-wrap: nowrap;
  font-size: 14px; color: var(--text-muted);
}
/* SPRINT-28a P1: items не должны переноситься/рваться на куски
   («Telegra m», «FA Q»). hyphens/overflow-wrap наследуются с body. */
.nav-links a {
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: keep-all;
  hyphens: none;
}
.nav-links a:hover { color: var(--text-primary); }
/* 2026-07-02: смещение якоря под sticky-шапку (~60px), чтобы заголовок секции не
   уезжал под неё при переходе по nav-ссылкам. */
:where(#features, #pricing, #faq, #af-hero) { scroll-margin-top: 72px; }

/* Скрываем меню раньше (≤1024px), пока оно не успело зажаться/сломаться.
   Специфичность .nav-seg > .nav-links (десктоп-грид выше) → скрытие тоже через неё. */
@media (max-width: 1024px) {
  .nav-links { display: none; }
}

.nav-cta {
  display: inline-flex; align-items: center; gap: 10px;
  margin-left: auto;
}
.nav-cta .btn { white-space: nowrap; }
.nav-login {
  display: inline-flex; align-items: center; gap: 8px;
}
/* ref-match: «Войти» — плоский ghost-текст без рамки/фона (как в макете). */
.nav-cta .nav-login.btn-ghost { background: transparent; border-color: transparent; color: var(--text-muted); }
.nav-cta .nav-login.btn-ghost:hover { background: transparent; border-color: transparent; color: var(--text-primary); }
.nav-login .nav-login-icon { width: 24px !important; height: 24px !important; min-width: 24px !important; max-width: none !important; flex: 0 0 auto !important; display: block; }
@media (max-width: 800px) {
  .nav-cta { gap: 8px; }
  /* Иконка-only на узких экранах: показываем только дверь, текст «Войти» прячем. */
  .nav-login { padding: 0; width: 36px; height: 36px; justify-content: center; gap: 0; }
  .nav-login-text { display: none; }
  .nav-login .nav-login-icon { width: 24px !important; height: 24px !important; min-width: 24px !important; max-width: none !important; flex: 0 0 auto !important; display: block; }
  .nav-connect { padding: 0 14px; height: 36px; font-size: 13px; }
}
/* Техподдержка в навигации — Telegram-кружок (#00E5B8) + текст. 2026-06-17.
   На узких экранах (как «Войти») сворачивается в иконку-кружок без текста. */
.nav-support { display: inline-flex; align-items: center; gap: 8px; }
.nav-support-ic { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.nav-support-ic svg { display: block; }
@media (max-width: 800px) {
  .nav-support { padding: 0; width: 36px; height: 36px; justify-content: center; gap: 0; }
  .nav-support-text { display: none; }
}

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 600; font-size: 14px;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  background: transparent; color: var(--text-primary);
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.btn-block { display: flex; width: 100%; justify-content: center; }
.btn-primary {
  background: var(--accent);
  color: #0A2A22;
  box-shadow: 0 6px 24px -8px rgba(0,229,184,0.55), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn-primary:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}
.btn-ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--border-strong);
  color: var(--text-primary);
}
.btn-ghost:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--text-primary);
}

/* =========================================================
   BADGES
   ========================================================= */
.badge {
  display: inline-flex; align-items: center;
  height: 20px; padding: 0 8px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: var(--radius-pill);
}
.badge-beta {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.badge-active {
  background: rgba(52,211,153,0.14);
  color: var(--success);
  border: 1px solid rgba(52,211,153,0.35);
}
.badge-soon {
  background: rgba(251,191,36,0.12);
  color: var(--warning);
  border: 1px solid rgba(251,191,36,0.35);
}

/* status dot */
.dot {
  display: inline-block;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--text-faint);
}
.dot-active {
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(0,229,184,0.18);
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0,229,184,0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(0,229,184,0.05); }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 40px 0 64px;
}
@media (max-width: 720px) {
  .hero { padding: 32px 0 64px; }
  .section { padding: 64px 0; }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  height: 30px; padding: 0 12px;
  font-size: 12px; font-weight: 500;
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(28px, 4.2vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  word-wrap: break-word;
}
.grad-text {
  background: linear-gradient(135deg, #00E5B8 0%, #34D399 60%, #6EE7B7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero .lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-muted);
  margin: 0 0 32px;
  max-width: 540px;
}

.hero-cta {
  display: flex; gap: 12px; flex-wrap: wrap;
  margin-bottom: 18px;
}
@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
}

.hero-meta {
  display: flex; align-items: stretch; flex-wrap: wrap;
  gap: 0; padding: 14px 4px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  max-width: 100%;
}
.meta-item {
  padding: 0 18px; min-width: 0; flex: 1;
  display: flex; flex-direction: column; gap: 2px;
}
.meta-item strong {
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--text-primary);
  white-space: nowrap;
}
.meta-item span {
  font-size: 11px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.04em;
  line-height: 1.3;
}
.meta-divider {
  width: 1px; background: var(--border-subtle); flex: 0 0 auto;
}
@media (max-width: 600px) {
  .hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 10px 4px; }
  .meta-item { padding: 8px 10px; }
  .meta-item strong { font-size: 15px; }
  .meta-item span { font-size: 10px; }
  .meta-divider { display: none; }
}

/* =========================================================
   PHONE / DEMO
   ========================================================= */
/* align-self:center (не stretch) — иначе чат-карточка растягивается на высоту
   более длинной левой колонки и под чатом остаётся пустой серый прямоугольник. */
.hero-demo { display: flex; justify-content: center; align-items: flex-start; align-self: center; }
.phone {
  width: 100%; max-width: 420px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
  height: 560px;
}
.phone-large {
  max-width: 520px;
  height: 660px;
}
/* DEMO-pill в верхней части демо-чата (даёт понять что это симуляция). */
.demo-chat-pill {
  display: inline-flex; align-items: center; align-self: flex-start;
  margin: 10px 0 0 14px;
  padding: 4px 10px;
  font-size: 10px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  flex-shrink: 0;
}
.phone-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(0,229,184,0.06), transparent 70%);
}
.phone-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #0A2A22; font-weight: 700; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.phone-meta { flex: 1; min-width: 0; }
.phone-name {
  display: flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 15px;
}
.phone-status {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  margin-top: 2px;
}
.phone-end {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-muted);
  font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.phone-end:hover { color: var(--text-primary); border-color: var(--text-muted); }

.chat-wrap {
  flex: 1; min-height: 0; position: relative;
  /* Top + bottom fade mask. */
  mask-image: linear-gradient(to bottom, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, black 40px, black calc(100% - 40px), transparent 100%);
}
.chat {
  position: absolute; inset: 0;
  overflow-y: auto;
  padding: 24px 16px;
  display: flex; flex-direction: column; gap: 12px;
  scroll-behavior: smooth;
}
.chat::-webkit-scrollbar { width: 6px; }
.chat::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 3px; }

.bubble {
  max-width: 82%;
  padding: 11px 14px;
  border-radius: var(--radius-lg);
  font-size: 14px; line-height: 1.5;
  animation: pop-in 0.28s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
@keyframes pop-in {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.bubble-anna {
  align-self: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-left: 2px solid var(--accent);
  border-top-left-radius: 6px;
  color: var(--text-primary);
}
.bubble-user {
  align-self: flex-end;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-top-right-radius: 6px;
  color: var(--text-primary);
}
.bubble-typing {
  display: inline-flex; gap: 4px; align-items: center;
  padding: 14px;
}
.bubble-typing span {
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: dot-jump 1.1s infinite ease-in-out;
}
.bubble-typing span:nth-child(2) { animation-delay: 0.15s; }
.bubble-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-jump {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.15);
  min-height: 60px;
}
.chip {
  height: 36px; padding: 0 14px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 13px; font-weight: 500;
  display: inline-flex; align-items: center; gap: 6px;
  transition: all 0.15s ease;
}
.chip:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  transform: translateY(-1px);
}
.chip:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.chip-restart {
  background: transparent; border-style: dashed;
  color: var(--text-muted);
}

/* =========================================================
   SECTIONS
   ========================================================= */
.section { padding: 96px 0; }
.section-tinted {
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015) 30%, rgba(255,255,255,0.015) 70%, transparent);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.section-head { text-align: center; margin-bottom: 56px; }
.kicker {
  display: inline-block;
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 40px);
  line-height: 1.15; letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 auto; max-width: 640px;
}

/* =========================================================
   STEPS
   ========================================================= */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 800px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
}
/* v47 Block 4 (обязательное правило): число «1.» ПЕРЕД заголовком в одну строку,
   как текст-префикс (не отдельный circle-badge сверху). */
.step h3 {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.step-num {
  color: var(--accent);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}
.step p {
  margin: 0; color: var(--text-muted); font-size: 15px;
}
.step strong { color: var(--text-primary); font-weight: 600; }

/* =========================================================
   CASES
   ========================================================= */
.cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
/* Sprint-07.7 F: 2×2 на десктопе (≥1024), 1 столбец на средних/мобильных. */
@media (max-width: 1024px) { .cases { grid-template-columns: 1fr; } }
/* Sprint-07.10 C: vertical layout — иконка → h3 → p сверху вниз.
 * Раньше был horizontal flex (icon | колонка с текстом) — на узких ломалось. */
.case {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 12px;
  align-items: flex-start;
}
.case-icon {
  font-size: 28px; line-height: 1;
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.case > h3, .case > p { min-width: 0; max-width: 100%; }
.case h3 {
  font-size: 16px; font-weight: 700; letter-spacing: -0.005em;
  line-height: 1.25;
  margin: 0 0 6px;
  overflow-wrap: break-word;
}
.case p {
  margin: 0; color: var(--text-muted); font-size: 14px;
  line-height: 1.5;
  overflow-wrap: break-word;
}
@media (max-width: 600px) {
  .case { padding: 18px; gap: 12px; }
  .case-icon { width: 44px; height: 44px; font-size: 24px; }
  .case h3 { font-size: clamp(15px, 4.5vw, 17px); }
  .case p { font-size: 14px; }
}
@media (max-width: 400px) {
  .case { flex-direction: column; align-items: flex-start; gap: 10px; }
}

/* =========================================================
   PRICING
   ========================================================= */
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* Sprint-07.7 H: 4-карточный grid для актуальных тарифов */
.plans-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  max-width: none;
}
@media (max-width: 1280px) { .plans-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 760px; margin: 0 auto; } }
@media (max-width: 768px)  { .plans-4 { grid-template-columns: 1fr; max-width: 460px; } }

.plan-minutes {
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border-radius: 8px;
  padding: 6px 10px;
  margin: -8px 0 12px;
  line-height: 1.5;
}
/* 2026-07-02 (Вариант B, компакт-вёрстка): матрица каналов в шапке карточки. */
.plan-channel {
  font-size: 12.5px; line-height: 1.4; color: var(--text);
  margin: 0 0 10px; min-height: 34px;
}
.plan-channel b { color: var(--accent); font-weight: 700; }
.plan-pool { font-size: 11px; opacity: 0.8; }
.plan-more {
  font-size: 11.5px; color: var(--text-muted); opacity: 0.85;
  margin: 0 0 14px;
}
/* Компакт-таблица каналов под карточками. */
.plan-matrix-wrap { margin-top: 22px; overflow-x: auto; }
.plan-matrix {
  width: 100%; border-collapse: collapse; font-size: 13px;
  min-width: 520px;
}
.plan-matrix th, .plan-matrix td {
  padding: 9px 12px; text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}
.plan-matrix th:first-child, .plan-matrix td:first-child {
  text-align: left; color: var(--text); white-space: nowrap;
}
.plan-matrix thead th {
  color: var(--text-muted); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.plan-matrix tbody td { color: var(--text-muted); }
.plan-matrix-note {
  font-size: 12px; color: var(--text-muted); margin: 10px 2px 0; line-height: 1.5;
}
/* Мобилка: тарифы (4→2→1) и пакеты/возможности (3→2→1) — в столбик.
   Инлайновый grid-template-columns перебиваем !important. Таблица каналов
   скроллится сама (.plan-matrix min-width + .plan-matrix-wrap overflow-x). */
@media (max-width: 980px) { .af-plans { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 860px) { .agf-3  { grid-template-columns: repeat(2, 1fr) !important; } }
@media (max-width: 560px) {
  .af-plans, .agf-3 { grid-template-columns: 1fr !important; max-width: 460px; margin-left: auto; margin-right: auto; }
}
/* Неразрывный телефон демо-линии (в т.ч. после смены режима Для бизнеса/Для себя). */
#af-demo-phone, [data-test-call-num], .phone-cta { white-space: nowrap; }
.nb { white-space: nowrap; }
/* Hero 390: карточка «Живая демо-линия» — в столбик по центру, кнопка на всю ширину. */
@media (max-width: 560px) {
  .af-demo-cta { flex-direction: column !important; text-align: center; gap: 12px !important; padding: 18px 16px !important; }
  .af-demo-cta > div { text-align: center; min-width: 0; width: 100%; }
  .af-demo-cta > span:last-child { width: 100%; justify-content: center; }
}

.plan {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  display: flex; flex-direction: column;
  position: relative;
}
.plan-featured {
  border-color: var(--accent-border);
  background:
    linear-gradient(180deg, rgba(0,229,184,0.05), rgba(0,229,184,0.01) 50%),
    var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--accent-border), 0 20px 60px -30px rgba(0,229,184,0.4);
}
.plan-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
}
.plan-name {
  font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--text-muted);
  margin: 0 0 12px;
}
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.price { font-size: 36px; font-weight: 800; letter-spacing: -0.02em; }
.per { color: var(--text-muted); font-size: 14px; }
.plan-feats {
  list-style: none; padding: 0; margin: 0 0 14px;
  display: flex; flex-direction: column; gap: 6px;
  flex: 1;
  font-size: 13.5px; color: var(--text-muted);
}
.plan-feats li {
  padding-left: 22px; position: relative;
}
.plan-feats li::before {
  content: ''; position: absolute; left: 0; top: 8px;
  width: 12px; height: 6px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* =========================================================
   FAQ
   ========================================================= */
.faq { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  /* Allow long question text to wrap before crowding the +/× indicator. */
  min-width: 0;
}
.faq-item summary::after { flex-shrink: 0; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 22px; font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--accent); }
.faq-item p {
  margin: 0; padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 14px;
}
.faq-item p strong { color: var(--text-primary); font-weight: 600; }
/* 2026-06-25: подсказка-вывод в FAQ (выбор оператора) — мягкий акцент-callout. */
.faq-item p.faq-hint {
  margin: 4px 22px 18px; padding: 12px 14px;
  background: var(--accent-soft); border-left: 3px solid var(--accent);
  border-radius: 10px; color: var(--text-secondary, var(--text-muted));
}
.faq-item p.faq-hint strong { color: var(--accent); }
.faq-item code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  background: var(--bg-input);
  padding: 1px 6px;
  border-radius: 4px;
  color: var(--accent);
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0 32px;
  margin-top: 32px;
}
/* 2026-06-08 (Илья): бренд над колонками, колонки на всю ширину (4 ровных). */
.footer-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: start;
}
.footer-brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700;
}
/* desktop 4 → планшет 2 → мобилка 1; одинаковая ширина, выравнивание по верху. */
.footer-cols {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
  align-items: start;
}
@media (max-width: 860px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; }
}
/* ref-match: бренд+тэглайн = первая колонка футера (шире ссылочных). */
.footer-cols-brandfirst { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
@media (max-width: 860px) { .footer-cols-brandfirst { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-cols-brandfirst { grid-template-columns: 1fr; } }
.footer-col-brand { display: flex; flex-direction: column; gap: 14px; }
.footer-tagline { font-size: 13.5px; line-height: 1.5; color: var(--text-muted); max-width: 260px; }
.footer-col-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.footer-col-cta .btn { width: auto; min-width: 140px; }
@media (max-width: 600px) {
  /* две колонки-ссылки рядом, CTA на всю ширину под ними — не «всё в столбик».
     Правила ПОСЛЕ базовых .footer-col-cta .btn, иначе width:auto перекрывает (одна специфичность). */
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer-col-cta { grid-column: 1 / -1; align-items: stretch; }
  .footer-col-cta .btn { width: 100%; min-width: 0; justify-content: center; }
  .footer-bottom { text-align: center; }
}
/* 2026-06-08: длинные значения (банк, счета) переносятся аккуратно, без налезаний. */
.footer-col { min-width: 0; overflow-wrap: anywhere; word-break: break-word; }
.footer-col h4 {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.footer-col div { font-size: 13px; color: var(--text-secondary, var(--text-muted)); padding: 2px 0; line-height: 1.5; }
.footer-col a {
  display: block;
  font-size: 14px; color: var(--text-primary);
  padding: 4px 0;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px; color: var(--text-faint);
}

/* =========================================================
   AVATAR PHOTO (replaces text "А" everywhere)
   ========================================================= */
.avatar-photo {
  position: relative;
  overflow: hidden;
  background: var(--bg-input);
  border: 1px solid var(--accent-border);
  box-shadow: 0 0 0 3px var(--accent-soft);
  /* Reset gradient and text-content styles inherited from old avatar classes. */
  color: transparent;
}
.avatar-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 28%; /* push face slightly above center */
  display: block;
  border-radius: inherit;
}

/* =========================================================
   HERO checklist + section lead
   ========================================================= */
.hero-checks {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 8px;
  max-width: 540px;
}
/* Sprint-07.10 A: при display:flex user-agent default [hidden]{display:none}
 * не срабатывает — нужен явный override. Из-за этого в Sprint-07.7 оба
 * списка показывались одновременно (8 пунктов вертикально). */
.hero-checks[hidden] { display: none !important; }
/* v49: plain text + зелёный check, без рамок/фона (перегружало hero) */
.hero-checks li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; line-height: 1.4;
  color: var(--text-primary);
}
.hero-checks li strong { font-weight: 700; color: var(--text-primary); white-space: nowrap; }

.check-icon {
  width: 22px; height: 22px;
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 1px;
}

.checks-large {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.checks-large li {
  display: flex; align-items: flex-start; gap: 14px;
  font-size: 16px; line-height: 1.5;
  color: var(--text-primary);
}
.checks-large li strong { font-weight: 700; }
.checks-large .check-icon { width: 24px; height: 24px; }

.btn-icon { width: 16px; height: 16px; flex-shrink: 0; }
.btn-with-icon { gap: 10px; }

.section-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 16px auto 0;
}

/* 2026-06-29: «Помощник на сайте» — 2 колонки (преимущества | живой виджет). Токены. */
.wa-grid { display: grid; grid-template-columns: 1fr 380px; gap: 36px; align-items: start; max-width: 920px; margin: 8px auto 0; }
.wa-points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 18px; }
.wa-points li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; line-height: 1.45; }
.wa-points .check-icon { flex: none; width: 24px; height: 24px; color: var(--accent); margin-top: 1px; }
.wa-widget { width: 100%; min-height: 520px; }
.wa-cta { text-align: center; margin-top: 32px; }
/* Hero: живой виджет вместо мокапа. */
.hero-demo-label { font-size: 13px; color: var(--text-muted); margin: 0 0 10px; text-align: center; }
.hero-widget { width: 360px; max-width: 100%; min-height: 520px; }
/* Лендинг-билдер (Экран 2). */
.wa-builder { display: flex; flex-direction: column; gap: 12px; }
.wa-builder-form { display: flex; gap: 8px; flex-wrap: wrap; }
.wa-builder-form input { flex: 1; min-width: 180px; padding: 12px 14px; font-size: 15px; border-radius: 12px; border: 1px solid var(--border-strong, rgba(255,255,255,.16)); background: var(--bg-input, rgba(255,255,255,.04)); color: inherit; outline: none; }
.wa-builder-form input:focus { border-color: var(--accent); }
.wa-builder-form .btn { white-space: nowrap; }
.wa-builder-status { font-size: 13px; color: var(--text-muted); min-height: 16px; line-height: 1.5; }
.wa-builder-sum { font-size: 14px; line-height: 1.6; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--accent-border, rgba(0,229,184,.28)); background: var(--accent-soft, rgba(0,229,184,.07)); }
.wa-builder-ok { display: flex; align-items: center; gap: 7px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.wa-builder-ok .check-icon { width: 18px; height: 18px; }
@media (max-width: 860px) {
  .wa-grid { grid-template-columns: 1fr; gap: 24px; }
  .wa-widget { max-width: 400px; width: 100%; margin: 0 auto; }
}

/* =========================================================
   SPLIT (2-col image + copy used for telegram + observe)
   ========================================================= */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.split-reverse .split-visual { order: 2; }
.split-reverse .split-copy { order: 1; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split-visual { order: 1; }
  .split-reverse .split-copy { order: 2; }
}
.split-visual { display: flex; justify-content: center; }

/* =========================================================
   TG MOCK
   ========================================================= */
.tg-mock {
  width: 100%; max-width: 460px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.tg-mock-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-subtle);
}
.tg-mock-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0A2A22; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.tg-mock-name { font-weight: 600; font-size: 15px; }
.tg-mock-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.tg-mock-body {
  padding: 18px 16px 20px;
  display: flex; flex-direction: column; gap: 8px;
  background:
    radial-gradient(800px 200px at 80% -10%, rgba(0,229,184,0.04), transparent 70%),
    var(--bg-primary);
}
.tg-mock-day {
  align-self: center;
  font-size: 11px; color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  padding: 4px 10px; border-radius: var(--radius-pill);
  margin-bottom: 6px;
}
.tg-bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px; line-height: 1.45;
  position: relative;
}
.tg-bubble-out {
  align-self: flex-end;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-bottom-right-radius: 4px;
}
.tg-bubble-in {
  align-self: flex-start;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
}
.tg-bubble-meta {
  font-size: 11px; color: var(--text-muted);
  margin-top: 6px; text-align: right;
}
.tg-bubble-in .tg-bubble-meta { text-align: left; }
.tg-bubble .muted { color: var(--text-muted); }

.tg-bubble-voice {
  display: flex; align-items: center; gap: 10px;
  padding: 2px 0;
  min-width: 200px;
}
.tg-bubble-play {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--accent); color: #0A2A22;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  padding-left: 2px;
}
.tg-bubble-wave {
  flex: 1; height: 18px;
  display: inline-flex; align-items: center; gap: 2px;
}
.tg-bubble-wave i {
  display: inline-block;
  width: 2px; background: var(--accent);
  border-radius: 1px;
  animation: wave 1.2s ease-in-out infinite;
}
.tg-bubble-wave i:nth-child(1)  { height: 30%; animation-delay: 0.0s; }
.tg-bubble-wave i:nth-child(2)  { height: 60%; animation-delay: 0.1s; }
.tg-bubble-wave i:nth-child(3)  { height: 90%; animation-delay: 0.2s; }
.tg-bubble-wave i:nth-child(4)  { height: 70%; animation-delay: 0.3s; }
.tg-bubble-wave i:nth-child(5)  { height: 100%; animation-delay: 0.4s; }
.tg-bubble-wave i:nth-child(6)  { height: 50%; animation-delay: 0.5s; }
.tg-bubble-wave i:nth-child(7)  { height: 80%; animation-delay: 0.0s; }
.tg-bubble-wave i:nth-child(8)  { height: 40%; animation-delay: 0.1s; }
.tg-bubble-wave i:nth-child(9)  { height: 95%; animation-delay: 0.2s; }
.tg-bubble-wave i:nth-child(10) { height: 60%; animation-delay: 0.3s; }
.tg-bubble-wave i:nth-child(11) { height: 75%; animation-delay: 0.4s; }
.tg-bubble-wave i:nth-child(12) { height: 35%; animation-delay: 0.5s; }
.tg-bubble-wave i:nth-child(13) { height: 90%; animation-delay: 0.0s; }
.tg-bubble-wave i:nth-child(14) { height: 50%; animation-delay: 0.1s; }
.tg-bubble-wave i:nth-child(15) { height: 70%; animation-delay: 0.2s; }
.tg-bubble-wave i:nth-child(16) { height: 30%; animation-delay: 0.3s; }
.tg-bubble-wave i:nth-child(17) { height: 80%; animation-delay: 0.4s; }
.tg-bubble-wave i:nth-child(18) { height: 45%; animation-delay: 0.5s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.6); opacity: 0.55; }
  50%      { transform: scaleY(1);   opacity: 1;    }
}
.tg-bubble-time { font-size: 12px; color: var(--text-muted); white-space: nowrap; }

/* =========================================================
   LIVE MOCK (real-time observation)
   ========================================================= */
.live-mock {
  width: 100%; max-width: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex; flex-direction: column;
}
.live-mock-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(0,229,184,0.06), transparent 80%);
  border-bottom: 1px solid var(--border-subtle);
}
.live-mock-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0A2A22; font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.live-mock-name { font-weight: 600; font-size: 14px; }
.live-mock-sub {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--text-muted);
  margin-top: 2px;
}
.live-mock-transcript {
  padding: 16px;
  display: flex; flex-direction: column; gap: 12px;
  font-size: 13px; line-height: 1.5;
  min-height: 220px;
  background: var(--bg-primary);
}
.live-line {
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border-subtle);
  animation: line-in 0.5s ease both;
}
.live-line b { font-weight: 600; }
.live-line-anna { border-left: 2px solid var(--accent); }
.live-line-them { border-left: 2px solid var(--text-faint); }
.live-line-current { background: var(--accent-soft); border-color: var(--accent-border); }
@keyframes line-in {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.caret {
  display: inline-block;
  width: 1px; height: 14px;
  background: var(--accent);
  vertical-align: -2px;
  margin-left: 2px;
  animation: blink 1s steps(2) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.live-mock-controls {
  display: flex; gap: 6px;
  padding: 12px 16px 16px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.15);
}
.live-btn {
  flex: 1;
  height: 36px; padding: 0 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.03);
  color: var(--text-primary);
  font-size: 12px; font-weight: 500;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.live-btn:hover { border-color: var(--accent-border); background: var(--accent-soft); }
.live-btn-stop:hover { border-color: rgba(248,113,113,0.4); background: rgba(248,113,113,0.08); color: #fca5a5; }

/* =========================================================
   MODAL
   ========================================================= */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  animation: fade-in 0.2s ease;
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  position: relative;
  width: 100%; max-width: 460px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 32px 28px;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.6);
  animation: pop-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}
.modal-card-narrow { max-width: 380px; text-align: center; }
.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-muted);
  border-radius: 50%;
}
.modal-close:hover { color: var(--text-primary); border-color: var(--text-muted); }
.modal-card h3 {
  margin: 0 0 8px;
  font-size: 22px; font-weight: 700; letter-spacing: -0.01em;
}
.modal-sub {
  margin: 0 0 24px;
  font-size: 14px; color: var(--text-muted);
}
.modal-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.phone-cta {
  display: block;
  margin: 16px 0 12px;
  font-size: 28px; font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  padding: 14px 16px;
  text-align: center;
  transition: filter 0.15s ease;
}
.phone-cta:hover { filter: brightness(1.1); }
.modal-fineprint {
  font-size: 12px; color: var(--text-muted);
  margin: 8px 0 0;
}

/* form */
.form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field-label {
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted);
}
.form input[type="text"],
.form input[type="email"] {
  height: 44px; padding: 0 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-primary);
  font: inherit; font-size: 14px;
}
.form input:focus {
  outline: none;
  border-color: var(--accent-border);
  background: rgba(0,229,184,0.04);
}
.contact-toggle {
  display: inline-flex;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 4px;
  gap: 2px;
  align-self: flex-start;
}
.ct-tab {
  background: transparent;
  border: none;
  padding: 8px 16px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-pill);
  transition: all 0.15s ease;
}
.ct-tab.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-border);
}
.checkrow {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.check {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}
.check input { width: 14px; height: 14px; accent-color: var(--accent); }
.check:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  color: var(--text-primary);
}
.form-fineprint {
  margin: 0; text-align: center;
  font-size: 12px; color: var(--text-muted);
}

/* =========================================================
   FAB SUPPORT CHAT
   ========================================================= */
.fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 90;
  height: 48px; padding: 4px 18px 4px 4px;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--accent);
  color: #0A2A22;
  border: none;
  border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600;
  box-shadow: 0 12px 30px -8px rgba(0,229,184,0.5), 0 1px 0 rgba(255,255,255,0.2) inset;
  transition: transform 0.15s ease, filter 0.15s ease;
}
.fab:hover { transform: translateY(-2px); filter: brightness(1.05); }
.fab.is-open { transform: scale(0.92); opacity: 0.6; pointer-events: none; }

.fab-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  position: relative;
  /* Inside the bright pill: use a darker rim for legibility, drop the accent glow. */
  border: 2px solid rgba(10, 42, 34, 0.35);
  box-shadow: none;
  flex-shrink: 0;
}
.fab-status {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--success);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 1px rgba(10,42,34,0.4);
}

.fab-chat {
  position: fixed; right: 24px; bottom: 84px; z-index: 95;
  width: 380px; height: 480px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: 0 30px 60px -10px rgba(0,0,0,0.7);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: pop-in 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.fab-chat[hidden] { display: none; }
.fab-chat-head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(0,229,184,0.06), transparent 80%);
}
.fab-chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #0A2A22; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fab-chat-meta { flex: 1; min-width: 0; }
.fab-chat-name { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.fab-chat-sub { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.fab-chat-close {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong);
  background: transparent; color: var(--text-muted);
  border-radius: 50%;
}
.fab-chat-close:hover { color: var(--text-primary); }
.fab-chat-body {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.fab-chat-body::-webkit-scrollbar { width: 4px; }
.fab-chat-body::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 2px; }
.fab-chat-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 10px 14px 14px;
  border-top: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.15);
}
.fab-chat .bubble { font-size: 13px; padding: 9px 12px; }
.fab-chat .chip { height: 32px; padding: 0 12px; font-size: 12px; }

/* =========================================================
   MOBILE responsive overrides
   ========================================================= */
@media (max-width: 720px) {
  .hero { padding: 24px 0 56px; }
  .hero h1 { font-size: clamp(28px, 8vw, 36px) !important; }
  .hero-checks li strong { font-size: 14px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-meta {
    display: grid !important;
    grid-template-columns: 1fr !important;
    padding: 4px 4px;
  }
  .hero-meta .meta-divider { display: none; }
  .hero-meta .meta-item { padding: 12px 16px; border-bottom: 1px solid var(--border-subtle); }
  .hero-meta .meta-item:last-child { border-bottom: none; }
  .phone-large { height: 70vh; min-height: 480px; max-width: 100%; }

  .section-head h2 { font-size: 26px; }
  .section-lead { font-size: 15px; }

  .modal-card { padding: 24px 18px; border-radius: 14px; }
  .modal-card h3 { font-size: 19px; }
  .phone-cta { font-size: 22px; padding: 12px 14px; }

  .fab { right: 16px; bottom: 16px; height: 48px; padding: 4px; gap: 0; }
  .fab-avatar { width: 40px; height: 40px; }
  .fab-label { display: none; }
  .fab-chat {
    right: 16px; left: 16px; bottom: 76px;
    width: auto; height: calc(100vh - 100px);
  }
}

/* =========================================================
   MOBILE — pricing single col + FAB padding + FAQ tightening
   ========================================================= */
@media (max-width: 768px) {
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 600px) {
  /* keep content above the FAB */
  body { padding-bottom: 96px; }
  /* tighter FAQ on small screens */
  .faq-item summary { padding: 16px 18px; font-size: 14px; gap: 12px; }
  .faq-item summary::after { font-size: 20px; }
  .faq-item p { padding: 0 18px 18px; font-size: 13px; }
  /* pricing — full-width CTA inside cards */
  .plan { padding: 24px 18px; }
  .plan-feats { font-size: 13px; }
  .plan .btn { width: 100%; }
}

/* =========================================================
   CONNECT NUMBER (#connect-number) — switcher + table + cards
   ========================================================= */
.cn-switch {
  display: inline-flex;
  margin: 0 auto 28px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 4px;
  width: 100%;
  max-width: 640px;
  justify-content: stretch;
}
.cn-switch-btn {
  flex: 1;
  height: 44px;
  padding: 0 18px;
  border: none; background: transparent; cursor: pointer;
  border-radius: 999px;
  color: var(--text-muted);
  font: inherit; font-size: 14px; font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.cn-switch-btn:hover { color: var(--text-primary); }
.cn-switch-btn.is-active {
  background: var(--accent);
  color: #0A2A22;
  box-shadow: 0 4px 16px -4px rgba(0,229,184,0.45), inset 0 1px 0 rgba(255,255,255,0.25);
}
.cn-switch-wrap { display: flex; justify-content: center; }
@media (max-width: 600px) {
  .cn-switch-btn { font-size: 12px; padding: 0 8px; height: 40px; }
}

.cn-table-wrap {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 18px;
}
.cn-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.cn-table thead th {
  text-align: left;
  padding: 14px 16px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border-subtle);
  white-space: nowrap;
}
.cn-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-primary);
  vertical-align: middle;
}
.cn-table tbody tr:last-child td { border-bottom: none; }
.cn-table tbody tr.is-recommended {
  background: linear-gradient(90deg, rgba(0,229,184,0.06), transparent 80%);
}
.cn-table tbody tr.is-recommended td:first-child {
  border-left: 3px solid var(--accent);
  padding-left: 13px;
}
.cn-provider-name { font-weight: 600; }
.cn-recommended-pill {
  display: inline-block; margin-left: 8px;
  padding: 2px 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  vertical-align: middle;
}
/* Sprint-07.10 D: маленькая серая плашка «ex-Zadarma» рядом с Novofon. */
.cn-ex-pill {
  display: inline-block; margin-left: 6px;
  padding: 1px 6px;
  font-size: 9px; font-weight: 600; letter-spacing: 0.04em;
  color: var(--text-muted);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  vertical-align: middle;
  opacity: 0.75;
}
@media (max-width: 480px) {
  .cn-ex-pill { display: none; }
}

@media (max-width: 768px) {
  .cn-table thead { display: none; }
  .cn-table, .cn-table tbody, .cn-table tbody tr, .cn-table tbody td { display: block; width: 100%; }
  .cn-table tbody tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-subtle);
  }
  .cn-table tbody tr:last-child { border-bottom: none; }
  .cn-table tbody td {
    border: none;
    padding: 4px 0;
    display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  }
  .cn-table tbody td::before {
    content: attr(data-label);
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--text-muted);
    flex-shrink: 0;
  }
  .cn-table tbody td:first-child { padding-bottom: 8px; }
  .cn-table tbody td:first-child::before { display: none; }
  .cn-table tbody tr.is-recommended td:first-child {
    border-left: none; padding-left: 0;
  }
}

.cn-callout {
  display: block;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--text-primary);
  padding: 14px 18px;
  border-radius: 999px;
  font-size: 14px; line-height: 1.5;
  margin-bottom: 36px;
}
@media (max-width: 600px) {
  .cn-callout { border-radius: 14px; font-size: 13px; }
}

/* «Можно ли использовать мобильный?» — split-card ❌ / ✅ */
.cn-mobile-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 24px;
}
.cn-mobile-card-head { margin-bottom: 22px; }
.cn-mobile-card-head h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -0.01em; }
.cn-mobile-card-sub { font-size: 14px; color: var(--text-muted); }
.cn-mobile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .cn-mobile-grid { grid-template-columns: 1fr; } }
.cn-mobile-block {
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 22px;
  background: rgba(255,255,255,0.015);
}
/* Sprint-07.7 J: иконка + h4 inline на одной строке */
.cn-mobile-block-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 12px;
  flex-wrap: nowrap;
}
.cn-mobile-block h4 { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.cn-mobile-block p  { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-primary); opacity: 0.9; }
.cn-mobile-icon     { font-size: 28px; line-height: 1; margin: 0; flex-shrink: 0; }
.cn-mobile-no  { border-color: rgba(248,113,113,0.25); }
.cn-mobile-yes { border-color: var(--accent-border); background: rgba(0,229,184,0.04); }

/* «Что такое SIP-trunk» — info-card */
.cn-sip-card {
  display: flex; gap: 22px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 28px;
}
.cn-sip-icon {
  width: 54px; height: 54px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: 14px;
  font-size: 26px;
}
.cn-sip-body { min-width: 0; }
.cn-sip-body h3 { margin: 0 0 12px; font-size: 22px; letter-spacing: -0.01em; }
.cn-sip-body p  { margin: 0 0 14px; font-size: 15px; line-height: 1.6; color: var(--text-primary); opacity: 0.92; }
.cn-sip-body p:last-of-type { margin-bottom: 22px; }
.cn-sip-cta {
  display: flex; align-items: center; gap: 16px;
  flex-wrap: wrap;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.cn-sip-cta-text { color: var(--text-muted); font-size: 14px; flex: 1; min-width: 200px; }
@media (max-width: 600px) {
  .cn-sip-card { flex-direction: column; padding: 22px; gap: 14px; }
  .cn-sip-cta .btn { width: 100%; }
}


/* =========================================================
   SPRINT-07.5 K: TRY DEMO NOW SECTION (после HERO)
   Бесплатный 5-минутный демо-звонок без регистрации.
   ========================================================= */
.section-try { padding: 64px 0; }
.try-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  background: linear-gradient(120deg, rgba(0,229,184,0.08), rgba(0,229,184,0.02) 60%), var(--bg-elevated);
  border: 1px solid var(--accent-border);
  border-radius: 22px;
  padding: 32px 36px;
  box-shadow: 0 18px 60px -30px rgba(0,229,184,0.4);
}
@media (max-width: 800px) {
  .try-card { grid-template-columns: 1fr; padding: 26px 22px; gap: 22px; text-align: center; }
}
.kicker-accent { color: var(--accent); }
.try-card h2 {
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.2; letter-spacing: -0.01em;
  font-weight: 700;
  margin: 0 0 10px;
}
.try-card-lede {
  font-size: 15px; color: var(--text-muted); line-height: 1.55;
  margin: 0; max-width: 540px;
}
.try-card-cta {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.try-phone {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  background: var(--accent); color: #0A2A22;
  border-radius: var(--radius-pill);
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 800; letter-spacing: -0.01em;
  box-shadow: 0 10px 30px -8px rgba(0,229,184,0.6);
  transition: transform 0.15s ease, filter 0.15s ease;
  white-space: nowrap;
}
.try-phone:hover { transform: translateY(-2px); filter: brightness(1.05); }
.try-phone-icon { width: 24px; height: 24px; }
.try-phone-num { font-variant-numeric: tabular-nums; }
.try-phone-note {
  font-size: 12px; color: var(--text-muted); margin: 0; text-align: center; max-width: 280px;
}

/* =========================================================
   SPRINT-07.7 E: GLOBAL hyphens: none
   Убирает «гра-/ницей», «аэро-/порту», «ру-/лём» в карточках.
   ========================================================= */
* {
  hyphens: none !important;
  -webkit-hyphens: none !important;
  -ms-hyphens: none !important;
}
.case, .step, .plan, .faq-item, .cn-mobile-block, .cn-sip-card,
.plan-feats, .plan-feats li, .feat-card, .where-card, .feat-tile {
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* =========================================================
   SPRINT-07.7 B: HERO AUDIENCE SWITCH (Personal / Business)
   ========================================================= */
.hero-audience-switch {
  display: inline-flex;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  padding: 3px;
  margin: 0 0 16px;
}
.hero-audience-tab {
  height: 32px; padding: 0 18px;
  font-size: 13px; font-weight: 500;
  color: var(--text-muted);
  border: none;
  background: transparent;
  border-radius: var(--radius-pill);
  transition: all 0.15s ease;
}
.hero-audience-tab.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-border);
}

/* ============================================================
   v39: navbar segment switcher (Для себя / Для бизнеса),
   hero phone-mock (AI-поиск), honest limitations block,
   hero cross-link. Reuses existing tokens.
   ============================================================ */

/* Сегмент-переключатель аудитории в навбаре — виден всегда (в т.ч. на mobile). */
.nav-segment {
  display: inline-flex;
  margin: 0 auto;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: var(--surface-2, rgba(255,255,255,0.05));
  border: 1px solid var(--border-subtle);
}
.nav-segment-item {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--text-muted);
  border-radius: 999px;
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.nav-segment-item:hover { color: var(--text-primary); }
.nav-segment-item.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-border);
}
@media (max-width: 460px) {
  .nav-segment-item { padding: 6px 10px; font-size: 12px; }
}

/* Кросс-ссылка в hero («Нужно для бизнеса? → …»). */
.hero-crosslink {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 14px;
  font-size: 13px; color: var(--text-muted);
}
.hero-crosslink a { color: var(--accent); font-weight: 600; }
.hero-crosslink a:hover { text-decoration: underline; }

/* ── Hero phone-mock: статичный «экран» AI-поиска (B2B) ── */
.phone-mock {
  width: 100%; max-width: 380px; margin-left: auto;
  background: var(--surface, #16161b);
  border: 1px solid var(--border-subtle);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.4);
}
.phone-mock-title {
  display: flex; align-items: center; gap: 8px;
  font-size: 15px; font-weight: 700; margin-bottom: 12px;
}
.phone-mock-field {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px; color: var(--text-primary);
  margin-bottom: 12px; line-height: 1.4;
}
.phone-mock-found {
  font-size: 12px; font-weight: 600; color: var(--accent);
  margin-bottom: 8px;
}
.phone-mock-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; padding: 9px 0;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
}
.phone-mock-row:last-child { border-bottom: 0; }
.phone-mock-row .pm-name { color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-mock-row .pm-phone { color: var(--text-muted); flex: none; font-variant-numeric: tabular-nums; }
.phone-mock-row .pm-check { color: var(--accent); flex: none; }
.phone-mock-cost {
  margin-top: 12px; padding: 9px 12px;
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: 10px;
  font-size: 12px; color: var(--text-primary);
}

/* ── Honest limitations (личная страница) ── */
.limits-card {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px;
  max-width: 820px; margin: 0 auto;
}
.limits-card .limit-row {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 15px; line-height: 1.5;
}
.limits-card .limit-mark { flex: none; font-size: 16px; line-height: 1.4; }
.limits-card .limit-no .limit-mark { filter: grayscale(0.2); }
@media (max-width: 640px) {
  .limits-card { grid-template-columns: 1fr; }
}

/* v39: лид-абзац в hero (под h1). */
.hero-lead {
  font-size: 16px; line-height: 1.5;
  color: var(--text-muted);
  margin: 0 0 20px;
  max-width: 520px;
}
@media (max-width: 640px) { .hero-lead { font-size: 15px; } }

/* ============================================================
   v40 HOTFIX: navbar (centered desktop / wrap on mobile),
   footer button layout, hero phone-mock overflow.
   Scoped to .nav-seg so calls.html (no segment) is untouched.
   ============================================================ */

/* Бренд никогда не переносится на 2 строки («Агента/фон»). */
.brand, .brand-logo { white-space: nowrap; }

/* Desktop: flex + space-between (2026-07-12 navfix).
   Прежний grid 1fr auto 1fr жал центр-меню строго в геом.центр вьюпорта, не
   учитывая, что правый CTA-блок (Техподдержка·тема·Войти·Регистрация ≈405px)
   вдвое шире логотипа: зазор меню→логотип ≈263px, меню→CTA ≈74px — меню
   визуально «съезжало вправо», приклеенное к CTA. flex space-between с тремя
   элементами даёт РАВНЫЕ зазоры по обе стороны меню; при скрытом меню (≤1024)
   схлопывается в «бренд слева ↔ CTA справа» без доп. правил. */
.nav-seg {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-seg > .brand     { flex: 0 0 auto; min-width: 0; }
.nav-seg > .nav-segment { flex: 0 0 auto; margin: 0; }
/* margin:0 сбрасывает базовый .nav-links{margin-left:auto} (иначе меню улетело бы
   вправо к CTA, ломая симметрию); внутри — базовый flex gap:22px (ровный ряд). */
.nav-seg > .nav-links { flex: 0 0 auto; margin: 0; }
/* ≤1024: центр-меню скрыто; space-between оставляет бренд↔CTA по краям. */
@media (max-width: 1024px) { .nav-seg > .nav-links { display: none; } }
.nav-seg > .nav-cta   { flex: 0 0 auto; margin-left: 0; }

/* Mobile: центр-группа скрыта (≤1024) — грид схлопывается в «бренд слева, CTA справа». */
@media (max-width: 760px) {
  .nav-seg {
    /* мобила: обратно в flex «бренд ↔ CTA» — десктоп-грид 1fr auto 1fr зажимал
       «Регистрацию» (189px) в 1fr-колонку (~179px) и она вылезала за экран. */
    display: flex;
    justify-content: space-between;
    height: auto;
    min-height: 56px;
    padding: 8px 16px;
    column-gap: 12px;
    row-gap: 8px;
  }
  .nav-seg > .brand { flex: 0 1 auto; min-width: 0; }
  .nav-seg > .nav-cta { flex: 0 0 auto; }
  .nav-seg > .nav-segment { grid-column: 1 / -1; justify-self: stretch; width: 100%; }
  .nav-seg > .nav-segment { order: 3; flex: 0 0 100%; width: 100%; margin: 0; }
  .nav-seg .nav-segment-item { flex: 1; justify-content: center; }
  .nav-seg .badge-beta { display: none; }
}

/* Footer buttons: .footer-col a (выше по специфичности) ломал .btn —
   возвращаем inline-flex + горизонтальный padding + центрируем текст
   (иначе при min-width:140px «Регистрация» прижата влево, выглядит криво). */
.footer-col .btn { display: inline-flex; align-items: center; justify-content: center; padding: 0 14px; }
.footer-col .btn .btn-icon { width: 16px; height: 16px; }
/* .footer-col a задаёт белый цвет (спец. 0,1,1) и перебивал .btn-primary —
   на зелёной кнопке текст ОБЯЗАН быть чёрным #0A2A22 (бренд-контраст). */
.footer-col .btn-primary { color: #0A2A22; }

/* Hero phone-mock не вылезает за узкий экран. */
.phone-mock { width: 100%; max-width: 380px; box-sizing: border-box; }

/* v40 hotfix refinement: guarantee mobile nav fits 360-414px. */
@media (max-width: 760px) {
  /* Войти (иконка) скрыта в навбаре на мобиле — основной CTA «Регистрация»;
     «Войти» остаётся в футере и на странице регистрации. */
  .nav-seg .nav-login { display: none; }
  .nav-seg > .nav-segment, .nav-seg .nav-segment-item { box-sizing: border-box; }
  .nav-seg .nav-connect { padding: 0 12px; }
}

/* v41 Block 1/5: подпись под голосовым пузырём (контекст для посетителя). */
.tg-bubble-caption {
  align-self: flex-end;
  max-width: 90%;
  margin: -2px 0 4px;
  font-size: 11px;
  font-style: italic;
  color: var(--text-faint, var(--text-muted));
  text-align: right;
  line-height: 1.4;
}

/* ============================================================
   v41 Block 2: interface demo frame (B2B второй экран).
   ============================================================ */
.iface-frame {
  position: relative;
  margin-top: 32px;
  background: var(--bg-elevated, #16161b);
  border: 1px solid var(--border-strong, rgba(255,255,255,0.12));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8);
}
.iface-demo-badge {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  background: var(--accent); color: var(--accent-ink, #0A2A22);
  padding: 4px 12px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
}
.iface-chrome {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 14px;
  background: rgba(0,0,0,0.25);
  border-bottom: 1px solid var(--border-subtle);
}
.iface-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.iface-url {
  margin-left: 12px; font-family: monospace; font-size: 12px;
  color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.iface-screen { display: grid; grid-template-columns: 190px 1fr; min-height: 360px; }
.iface-sidebar {
  background: rgba(0,0,0,0.22);
  border-right: 1px solid var(--border-subtle);
  padding: 14px 0;
}
.iface-nav-item {
  padding: 10px 18px; font-size: 14px; color: var(--text-muted);
  border-left: 3px solid transparent;
}
.iface-nav-item.is-active {
  background: var(--accent-soft); color: var(--accent);
  border-left-color: var(--accent); font-weight: 600;
}
.iface-main { padding: 18px 20px; min-width: 0; }
.iface-tabs {
  display: flex; gap: 18px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle); padding-bottom: 2px;
}
.iface-tabs span {
  font-size: 14px; color: var(--text-muted);
  padding-bottom: 10px; white-space: nowrap;
}
.iface-tabs .is-active {
  color: var(--text-primary); font-weight: 600;
  box-shadow: inset 0 -2px 0 var(--accent);
}
.iface-table-wrap { overflow-x: auto; }
.iface-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 460px; }
.iface-table th {
  text-align: left; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--text-muted); font-weight: 600;
  padding: 8px 10px; border-bottom: 1px solid var(--border-subtle);
}
.iface-table td { padding: 11px 10px; border-bottom: 1px solid var(--border-subtle); color: var(--text-primary); white-space: nowrap; }
.iface-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600;
}
.iface-pill-ok   { background: rgba(34,197,94,0.15);  color: var(--accent, #22c55e); }
.iface-pill-wait { background: rgba(251,191,36,0.15); color: var(--warning, #fbbf24); }
.iface-pill-fail { background: rgba(239,68,68,0.15);  color: var(--danger, #f87171); }
.iface-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.iface-actions .btn { cursor: default; }
@media (max-width: 640px) {
  .iface-screen { grid-template-columns: 1fr; }
  .iface-sidebar { display: flex; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; border-right: 0; border-bottom: 1px solid var(--border-subtle); padding: 8px; gap: 6px; scrollbar-width: none; }
  .iface-sidebar::-webkit-scrollbar { display: none; }
  .iface-nav-item { flex: 0 0 auto; border-left: 0; white-space: nowrap; padding: 10px 14px; min-height: 44px; display: flex; align-items: center; border-radius: 8px; }
  .iface-nav-item.is-active { border-left: 0; }
}

/* v41 Block 3: пример-реплика в карточке сценария (HR). */
.case-example {
  margin-top: 10px; padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-left: 2px solid var(--accent-border, var(--accent));
  border-radius: 0 8px 8px 0;
  font-size: 13px; color: var(--text-muted); line-height: 1.5;
}


/* v42 Block 2: преимущества «vs живой сотрудник» в hero. */
.hero-perks {
  list-style: none; margin: 0 0 18px; padding: 0;
  display: grid; gap: 9px;
}
.hero-perks li {
  position: relative; padding-left: 26px;
  font-size: 14px; line-height: 1.5; color: var(--text-primary);
}
.hero-perks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 18px; height: 18px; line-height: 18px; text-align: center;
  color: var(--accent); font-weight: 800;
}

/* v42 Block 3: имитация Telegram inline-keyboard в chat-mock. */
/* Заход 2 Блок 4: быстрые кнопки — ровная сетка чипов 2×2 */
.bot-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 10px 0 2px; }
.bot-btn {
  padding: 7px 11px; min-height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  font-size: 12px; color: var(--text-primary);
  white-space: nowrap; cursor: pointer;
  transition: background .12s;
}
.bot-btn:hover { background: rgba(255,255,255,0.14); }

/* Заход 2 Блок 4: роли пузырей в чат-демо (реплика Анны / цитата собеседника / системный итог) */
.tg-transcript-label {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 5px;
  margin: 4px 0 -2px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-muted);
}
.tg-transcript-ic { width: 11px; height: 11px; color: var(--text-muted); flex-shrink: 0; }
.tg-bubble-quote {
  font-style: italic;
  background: rgba(255,255,255,0.02);
  border-color: var(--border-subtle);
  border-left: 2px solid var(--accent-border);
}
.tg-bubble-system {
  align-self: stretch; max-width: 100%;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
}
.tg-sys-ic { color: var(--accent); }
.tg-dl {
  color: var(--accent); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid var(--accent-border); white-space: nowrap;
}
.tg-dl:hover { filter: brightness(1.1); }

/* Hero CTA «Позвонить Анне» — компактная one-row карточка (v48 Block 1/2).
   max-width 480px → вписана в ритм колонки (h1/lead/checks), не доминирует.
   Зелёная svg-трубка (не эмодзи — по фидбэку Ильи). */
.hero-callnow {
  display: flex; align-items: center; gap: 14px;
  max-width: 480px;
  margin: 10px 0 22px; padding: 12px 18px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  text-decoration: none; color: var(--text-primary);
  transition: transform .15s ease, background .15s ease;
}
.hero-callnow:hover { transform: translateY(-1px); background: rgba(0,229,184,0.14); }
.hero-callnow-ic { color: var(--accent); display: flex; flex-shrink: 0; }
.hero-callnow-ic .btn-icon { width: 22px; height: 22px; }
.hero-callnow-txt { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.hero-callnow-num { font-size: 17px; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hero-callnow-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.hero-callnow-arrow { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }
@media (max-width: 720px) {
  .hero-callnow { max-width: 100%; }
}

/* v42 Block 4: сценарии — иконка слева, текст справа, не растянуто вниз. */
.scenario-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
  gap: 16px;
}
.scenario-card {
  /* 2026-07-02 UX-разгрузка: emoji-иконки убраны, карточка одноколоночная (title-led) */
  display: block;
  padding: 22px;
  border: 1px solid var(--border-subtle); border-radius: 14px;
  background: rgba(255,255,255,0.02);
}
.scenario-card h3 { margin: 0 0 6px; font-size: 16px; }
.scenario-card > div > p { margin: 0; font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.scenario-example {
  margin-top: 10px; padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border-left: 2px solid var(--accent-border, var(--accent));
  border-radius: 0 8px 8px 0;
  font-size: 12px; color: var(--text-muted); line-height: 1.55;
}
.scenario-example strong { color: var(--text-primary); }
@media (max-width: 480px) { .scenario-card { padding: 16px; } }

/* v42 Block 5: interface demo — кликабельные разделы + прогресс/карточки/форма. */
.iface-nav-item { cursor: pointer; transition: background .12s, color .12s; }
.iface-nav-item:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }
.iface-progress { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font-size: 13px; color: var(--text-muted); }
.iface-progress-bar { flex: 1; height: 8px; border-radius: 999px; background: rgba(255,255,255,0.10); overflow: hidden; }
.iface-progress-bar > div { height: 100%; background: var(--accent); border-radius: 999px; }
.iface-cards { display: grid; gap: 10px; }
.iface-mini {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 16px; border: 1px solid var(--border-subtle); border-radius: 10px;
  background: rgba(255,255,255,0.02); font-size: 13px;
}
.iface-mini b { font-size: 15px; }
.iface-mini span { color: var(--text-muted); }
.iface-mini .iface-pill { align-self: flex-start; }
.iface-form { display: grid; gap: 12px; }
.iface-field { display: grid; grid-template-columns: 200px 1fr; gap: 12px; align-items: center; font-size: 14px; }
.iface-field label { color: var(--text-muted); }
.iface-control {
  padding: 9px 12px; border: 1px solid var(--border-subtle); border-radius: 8px;
  background: rgba(255,255,255,0.04); color: var(--text-primary); font-size: 13px;
}
@media (max-width: 560px) { .iface-field { grid-template-columns: 1fr; gap: 4px; } }

/* v42 Block 7: feature/case карточки — иконка слева, текст справа (не вниз).
   + меньше воздуха на мобиле. */
.case {
  display: grid; grid-template-columns: 48px 1fr;
  column-gap: 16px; row-gap: 6px; align-items: start;
}
.case > .case-icon { grid-column: 1; grid-row: 1; margin: 0; }
.case > :not(.case-icon) { grid-column: 2; margin: 0; }
@media (max-width: 768px) { .section { padding: 56px 0; } }

/* v42 Block 8: таблица «AI vs живой сотрудник». */
.vs-table-wrap { overflow-x: auto; border: 1px solid var(--border-subtle); border-radius: 14px; }
.vs-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 520px; }
.vs-table th, .vs-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border-subtle); }
.vs-table thead th { font-size: 13px; color: var(--text-muted); font-weight: 600; }
.vs-table tbody td:first-child { color: var(--text-muted); font-weight: 500; white-space: nowrap; }
.vs-table tbody td { color: var(--text-primary); }
.vs-table .vs-ai {
  background: var(--accent-soft);
  color: var(--text-primary); font-weight: 600;
  border-left: 1px solid var(--accent-border, var(--accent));
}
.vs-table thead .vs-ai { color: var(--accent); }
.vs-table tr:last-child td { border-bottom: 0; }

/* v44 Block 2: ✓ положительных границ — accent. */
.limits-card .limit-row:not(.limit-no) .limit-mark { color: var(--accent); font-weight: 700; }

/* v44 Block 3: vs-table — зебра + vertical divider + меньше зелёного. */
.vs-table tbody tr:nth-child(odd) { background: rgba(255,255,255,0.02); }
.vs-table th:first-child, .vs-table td:first-child { border-right: 2px solid var(--border-strong, rgba(255,255,255,0.14)); }
.vs-table td.vs-ai { background: transparent; color: var(--text-primary); }  /* убрать зелёный фон ячеек */
.vs-table th.vs-ai, .vs-table td.vs-ai { border-left: 1px solid var(--accent-border, rgba(52,211,153,0.4)); }
.vs-table thead th.vs-ai { color: var(--accent); background: transparent; }

/* v44 Block 4: interface-demo «Настройки» — карточки как реальный _settingCard кабинета. */
.iface-scards { display: flex; flex-direction: column; gap: 12px; }
.iface-scard {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; box-sizing: border-box;
  background: var(--surface-2, rgba(255,255,255,0.03));
  border: 1px solid var(--border-subtle); border-radius: 12px;
}
.iface-scard-ic {
  flex: none; width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft, rgba(52,211,153,0.12)); font-size: 18px;
}
.iface-scard-body { flex: 1; min-width: 0; }
.iface-scard-lab { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); margin-bottom: 6px; }
.iface-scard-ctl {
  height: 38px; display: flex; align-items: center; padding: 0 12px;
  border: 1px solid var(--border-strong, rgba(255,255,255,0.14)); border-radius: 8px;
  background: var(--bg-input, rgba(0,0,0,0.2)); font-size: 14px; color: var(--text-primary);
}

/* v44 Block 5: зелёная primary-кнопка ТОЛЬКО на featured-тарифе (Стандарт). */
.plans .plan:not(.plan-featured) .btn-block {
  background: transparent; border: 1px solid var(--border-strong, rgba(255,255,255,0.14)); color: var(--text-primary);
}
.plans .plan-featured .btn-block {
  background: var(--accent); color: var(--accent-ink, #0A2A22); border: none; font-weight: 600;
}

/* v44 Block 6: сценарии 3×3 на десктопе, 2 на планшете, 1 на мобиле. */
.scenario-grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 980px) { .scenario-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .scenario-grid { grid-template-columns: 1fr; } }

/* v44 Block 8: sticky header заметнее + крупный hero segment switcher + mid-CTA. */
.nav { z-index: 100; background: rgba(15,15,18,0.9); }

.hero-segment-switcher {
  display: inline-flex; gap: 4px; padding: 4px;
  margin-bottom: 16px;
  background: var(--surface-2, rgba(255,255,255,0.05));
  border: 1px solid var(--border-subtle); border-radius: 999px;
}
.hero-seg-item {
  padding: 9px 20px; font-size: 14px; font-weight: 600;
  color: var(--text-muted); border-radius: 999px; white-space: nowrap;
  transition: background .15s, color .15s;
}
.hero-seg-item:hover { color: var(--text-primary); }
.hero-seg-item.is-active { background: var(--accent); color: var(--accent-ink, #0A2A22); }

.section-mid-cta { padding: 64px 0; text-align: center; }
.section-mid-cta h2 { margin: 0 0 8px; }
.section-mid-cta p { color: var(--text-muted); margin: 0 0 24px; }
.mid-cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* v44 Block 9: воздух в hero — отступ перед CTA, дыхание у meta. */
.hero-cta { margin-top: 18px; }
.hero-meta { margin-top: 8px; }
@media (max-width: 640px) {
  .hero-segment-switcher { width: 100%; }
  .hero-segment-switcher .hero-seg-item { flex: 1; text-align: center; justify-content: center; }
}

/* v45 Block 4: mobile — header без дубль-switcher (больше места), hero без overlap. */
@media (max-width: 760px) {
  .nav-seg { flex-wrap: nowrap; height: auto; min-height: 56px; padding: 8px 0; column-gap: 10px; }
  .nav-seg > .brand { flex: 0 1 auto; min-width: 0; }
  .nav-seg > .nav-cta { flex: none; margin-left: auto; }
  .nav-seg .nav-login { display: inline-flex; }   /* место освободилось — вернуть «Войти» */
}
@media (max-width: 768px) {
  .hero { padding-top: 24px; }
  .hero-copy h1 { font-size: clamp(28px, 8vw, 40px); }
}
@media (max-width: 480px) {
  .hero-copy h1 { font-size: 30px; }
  .nav-connect { padding: 0 12px; font-size: 13px; }
}

/* v54.1: лендинг voice picker — плейлист, сценарий «Русская рыбалка» (2 экран) */
.voice-picker-landing { padding: 56px 0 48px; background: var(--bg-elevated); border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.voice-picker-landing h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 700; margin: 0 0 8px; letter-spacing: -0.02em; }
.vp-subtitle { color: var(--text-muted); margin: 0 0 28px; font-size: 16px; max-width: 640px; }
.voice-list-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 1040px; }
/* v62: 5 голосов (хиты вверху) */
.voice-list-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 1100px; }
/* 2026-06-08 (Илья): сетка 2 колонки (не «столбик»), стабильный gap, без налезаний;
   на мобилке — 1 колонка. Раньше класса .voice-list-2 не было → раскладка ломалась. */
.voice-list-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; max-width: 720px; }
@media (max-width: 560px) { .voice-list-2 { grid-template-columns: 1fr; } }
/* v62.1: фикс высота для всех карточек (бейдж/без — ровный ряд) + верхний
   padding больше, чтобы контент не лез под бейдж (защита от регрессии). */
.voice-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 22px 18px 18px; background: linear-gradient(180deg, rgba(0,229,184,0.04) 0%, transparent 100%); border: 1px solid var(--border-subtle); border-radius: 14px; cursor: pointer; transition: border-color .2s, box-shadow .2s, background .2s; text-align: left; color: var(--text-primary); font: inherit; min-height: 96px; }
/* v62.1: ХИТ-бейдж — над карточкой (top:-10px), гарантированно CAPS */
.voice-badge { position: absolute; top: -10px; right: 12px; background: var(--accent, #00E5B8); color: #000; font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; z-index: 3; box-shadow: 0 2px 6px rgba(0,229,184,0.25); line-height: 1; white-space: nowrap; }
.voice-card:hover { border-color: var(--accent-border); }
/* 2026-06-05: «Скоро»-голоса — видны, но не активны */
.voice-card.voice-soon { opacity: 0.5; cursor: not-allowed; border-style: dashed; background: none; }
.voice-card.voice-soon:hover { border-color: var(--border-subtle); }
.voice-card.voice-soon .play-icon { background: rgba(255,255,255,0.12); }
.voice-card.voice-soon .play-icon::before { border-color: transparent transparent transparent rgba(255,255,255,0.4); }
/* 2026-06-08 (Илья): бейдж «СКОРО» внутри своей карточки (не поверх соседней). */
.voice-badge-soon { background: rgba(255,255,255,0.16); color: var(--text-muted, #aaa); box-shadow: none; top: 12px; right: 12px; }
.voice-card.playing { border-color: var(--accent); background: linear-gradient(180deg, rgba(0,229,184,0.10) 0%, transparent 100%); box-shadow: 0 0 24px rgba(0,229,184,0.15); }
.voice-card .play-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #04221c; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
/* play — треугольник (CSS-фигура, не эмодзи) */
.voice-card .play-icon::before { content: ''; width: 0; height: 0; border-style: solid; border-width: 8px 0 8px 14px; border-color: transparent transparent transparent #04221c; margin-left: 3px; }
/* playing — стоп-квадрат (в том же стиле, что и в кабинете) */
.voice-card.playing .play-icon::before { width: 14px; height: 14px; border: 0; border-radius: 2px; background: #04221c; margin: 0; }
.voice-card .voice-body { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 0; }
.voice-card .voice-char { font-weight: 600; font-size: 14px; white-space: nowrap; }
.voice-card .waveform { display: flex; align-items: center; gap: 3px; height: 26px; }
.voice-card .waveform i { width: 3px; height: 6px; background: var(--text-muted); border-radius: 2px; }
.voice-card.playing .waveform i { background: var(--accent); animation: vp-wave 0.8s ease-in-out infinite; }
.voice-card.playing .waveform i:nth-child(1){animation-delay:0s;animation-duration:.7s}
.voice-card.playing .waveform i:nth-child(2){animation-delay:.1s;animation-duration:.5s}
.voice-card.playing .waveform i:nth-child(3){animation-delay:.2s;animation-duration:.9s}
.voice-card.playing .waveform i:nth-child(4){animation-delay:.3s;animation-duration:.6s}
.voice-card.playing .waveform i:nth-child(5){animation-delay:.05s;animation-duration:.8s}
.voice-card.playing .waveform i:nth-child(6){animation-delay:.15s;animation-duration:.7s}
.voice-card.playing .waveform i:nth-child(7){animation-delay:.25s;animation-duration:.5s}
.voice-card.playing .waveform i:nth-child(8){animation-delay:.35s;animation-duration:.9s}
.voice-card.playing .waveform i:nth-child(9){animation-delay:.1s;animation-duration:.6s}
.voice-card.playing .waveform i:nth-child(10){animation-delay:.2s;animation-duration:.8s}
.voice-card.playing .waveform i:nth-child(11){animation-delay:0s;animation-duration:.5s}
.voice-card.playing .waveform i:nth-child(12){animation-delay:.3s;animation-duration:.7s}
.voice-card.playing .waveform i:nth-child(13){animation-delay:.15s;animation-duration:.9s}
.voice-card.playing .waveform i:nth-child(14){animation-delay:.25s;animation-duration:.6s}
@keyframes vp-wave { 0%,100%{height:6px} 50%{height:24px} }
/* v62.1: планшет/узкий лэптоп (641–1024px) — 5 колонок не влезают, текст
   вылезал из карточек. Переходим на 2 колонки с переносом текста; 5-я по центру. */
@media (max-width: 1024px) {
  .voice-list-5 { grid-template-columns: 1fr 1fr; }
  .voice-card .voice-char { white-space: normal; line-height: 1.25; }
  .voice-list-5 > .voice-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
}
@media (max-width: 640px) {
  /* Block 6.2: заголовок не наседает на notch, хвост секции короче */
  .voice-picker-landing { padding-top: max(40px, calc(env(safe-area-inset-top) + 28px)); padding-bottom: 36px; }
  .voice-list-4 { grid-template-columns: 1fr 1fr; }
  .voice-list-5 { grid-template-columns: 1fr 1fr; }
  /* v62.1: одинокая 5-я карточка в последнем ряду — по центру (ширина как у соседей) */
  .voice-list-5 > .voice-card:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - 7px); }
  /* v62.1: бейдж над карточкой, компактнее на мобайле */
  .voice-badge { top: -8px; right: 8px; font-size: 9px; padding: 3px 7px; }
  .voice-card { min-height: 84px; padding: 20px 14px 14px; gap: 10px; }
  .voice-card .play-icon { width: 40px; height: 40px; }
  /* Block 6.1: «Мужской · уверенный» не влезает в узкую 2-кол колонку →
     переносим в 2 строки вместо nowrap (надёжно на любой ширине, без обрезки) */
  .voice-card .voice-char { font-size: 13px; line-height: 1.25; white-space: normal; overflow: visible; word-break: normal; }
  /* Block 6.4: меньше разрыв до секции «Сравнение» */
  .voice-picker-landing + section { margin-top: 28px; }
}

@media (max-width: 390px) {
  /* v62.1: узкие карточки — ужать padding-x, бейдж не обрезается шириной */
  .voice-card .voice-char { font-size: 12.5px; }
  .voice-card { padding: 18px 10px 12px; gap: 8px; }
  .voice-badge { right: 6px; font-size: 8px; padding: 2px 5px; }
}

/* v54.3: слайдер скорости речи — полная ширина модуля + tick marks + labels */
.vp-speed { max-width: 1040px; margin: 28px auto 0; }
.vp-speed-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.vp-speed-label { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.vp-speed-val { font-size: 18px; font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.vp-speed-track { position: relative; padding: 8px 0 26px; }
.vp-speed input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; outline: none; cursor: pointer; position: relative; z-index: 2; margin: 0;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent) var(--fill,40%), var(--border-subtle) var(--fill,40%), var(--border-subtle) 100%);
}
.vp-speed input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg-elevated); box-shadow: 0 0 0 1px var(--accent), 0 2px 8px rgba(0,229,184,0.4); cursor: grab; transition: transform .15s; }
.vp-speed input[type="range"]::-webkit-slider-thumb:hover { transform: scale(1.12); }
.vp-speed input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); border: 3px solid var(--bg-elevated); cursor: grab; }
.vp-ticks { position: absolute; left: 0; right: 0; bottom: 0; height: 20px; pointer-events: none; }
.vp-tick { position: absolute; transform: translateX(-50%); top: 10px; font-size: 11px; color: var(--text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vp-tick::before { content: ''; position: absolute; top: -10px; left: 50%; transform: translateX(-50%); width: 1px; height: 6px; background: var(--text-muted); opacity: .45; }
.vp-tick-major::before { width: 2px; height: 8px; opacity: .85; background: var(--text-primary); }
@media (max-width: 640px) {
  .vp-speed input[type="range"]::-webkit-slider-thumb { width: 28px; height: 28px; }
  .vp-tick:not(.vp-tick-major) { color: transparent; }
}

/* =========================================================
   2026-06-10 v83 FRESH — модернизация страниц до регистрации.
   Аддитивный блок: дисплейный шрифт Unbounded для заголовков,
   аврора в hero, staggered-вход, scroll-reveal (html.fx + JS),
   hover-полиш карточек, зерно. Всё гасится prefers-reduced-motion.
   Откат: удалить блок + вернуть ?v= и fonts-link.
   ========================================================= */

/* --- Типографика: дисплейный Unbounded (кириллица) --- */
.hero h1,
.section-head h2,
.section-mid-cta h2,
.try-card h2 {
  font-family: 'Unbounded', 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero h1 { font-size: clamp(26px, 3.8vw, 46px); line-height: 1.12; }
.section-head h2 { font-size: clamp(23px, 3.1vw, 34px); line-height: 1.22; }
.price { font-family: 'Unbounded', 'Inter', sans-serif; font-weight: 500; font-size: 32px; }
.kicker { text-shadow: 0 0 22px rgba(0,229,184,0.35); }

/* --- Анимированный градиент в grad-text --- */
.grad-text {
  background: linear-gradient(120deg, #00E5B8, #6EE7B7 35%, #00E5B8 60%, #34D399 85%, #00E5B8);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
}
@media (prefers-reduced-motion: no-preference) {
  .grad-text { animation: fresh-grad 7s linear infinite; }
}
@keyframes fresh-grad { to { background-position: -220% 0; } }

/* --- Hero: аврора (мягкое живое свечение за контентом) --- */
.hero { position: relative; }
.hero::before {
  content: ''; position: absolute; inset: -120px -10% auto;
  height: 540px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(420px 300px at 18% 30%, rgba(0,229,184,0.16), transparent 70%),
    radial-gradient(520px 340px at 78% 12%, rgba(52,211,153,0.12), transparent 70%),
    radial-gradient(340px 260px at 55% 70%, rgba(110,231,183,0.08), transparent 70%);
  filter: blur(36px);
}
@media (prefers-reduced-motion: no-preference) {
  .hero::before { animation: fresh-aurora 16s ease-in-out infinite alternate; }
}
@keyframes fresh-aurora {
  from { transform: translate3d(-2%, 0, 0) scale(1); opacity: .85; }
  to   { transform: translate3d(3%, 4%, 0) scale(1.08); opacity: 1; }
}

/* --- Зерно поверх фона (глубина, убирает «плоскость») --- */
body::after {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- Staggered-вход hero при загрузке --- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: fresh-up .65s cubic-bezier(.2,.7,.3,1) both; }
  .hero-copy > :nth-child(1) { animation-delay: .05s; }
  .hero-copy > :nth-child(2) { animation-delay: .12s; }
  .hero-copy > :nth-child(3) { animation-delay: .19s; }
  .hero-copy > :nth-child(4) { animation-delay: .26s; }
  .hero-copy > :nth-child(5) { animation-delay: .33s; }
  .hero-copy > :nth-child(6) { animation-delay: .40s; }
  .hero-copy > :nth-child(7) { animation-delay: .47s; }
  .hero-copy > :nth-child(8) { animation-delay: .54s; }
  .hero-demo { animation: fresh-up .8s cubic-bezier(.2,.7,.3,1) .25s both; }
}
@keyframes fresh-up {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* --- Scroll-reveal: элементы скрыты ТОЛЬКО при html.fx (JS жив) --- */
html.fx .section-head,
html.fx .scenario-card, html.fx .step, html.fx .plan,
html.fx .faq-item, html.fx .voice-card, html.fx .case,
html.fx .demo-card {
  opacity: 0; transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--fx-d, 0ms);
}
html.fx .is-in { opacity: 1; transform: none; }

/* --- Hover-полиш карточек --- */
.scenario-card, .step, .plan, .case, .demo-card, .voice-card {
  transition: transform .22s cubic-bezier(.2,.7,.3,1), border-color .22s ease, box-shadow .22s ease, background .22s ease;
}
.scenario-card:hover, .case:hover, .demo-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-border);
  background: rgba(0,229,184,0.04);
  box-shadow: 0 14px 36px -18px rgba(0,229,184,0.35);
}
.plan:hover {
  transform: translateY(-4px);
  border-color: var(--accent-border);
  box-shadow: 0 18px 44px -20px rgba(0,229,184,0.4);
}
.step:hover { transform: translateY(-3px); border-color: var(--accent-border); }
.scenario-card:hover .scenario-icon, .case:hover .case-icon {
  transform: scale(1.12) rotate(-4deg);
}
.scenario-icon, .case-icon { transition: transform .25s cubic-bezier(.2,.7,.3,1); }

/* --- Кнопки: shine-свайп primary + стрелка --- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -80%;
  width: 50%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  transition: left .45s ease; pointer-events: none;
}
.btn-primary:hover::after { left: 130%; }
.btn .btn-icon { transition: transform .2s ease; }
.btn:hover .btn-icon { transform: translateX(3px); }

/* --- «Позвонить сейчас»: пульс-кольцо на иконке --- */
@media (prefers-reduced-motion: no-preference) {
  .hero-callnow-ic { animation: fresh-ring 2.4s ease-out infinite; border-radius: 50%; }
}
@keyframes fresh-ring {
  0%   { box-shadow: 0 0 0 0 rgba(0,229,184,0.45); }
  70%  { box-shadow: 0 0 0 14px rgba(0,229,184,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,229,184,0); }
}

/* --- Секции: едва заметное верхнее свечение у tinted --- */
.section-tinted { position: relative; }
.section-tinted::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(680px, 80%); height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,229,184,0.4), transparent);
}

/* --- Reduced motion: глобальный стоп новых эффектов --- */
@media (prefers-reduced-motion: reduce) {
  .hero::before, body::after { animation: none !important; }
  .scenario-card, .step, .plan, .case, .demo-card, .voice-card,
  .scenario-icon, .case-icon, .btn-primary::after, .btn .btn-icon { transition: none !important; }
}

/* ── Видео-примеры «откуда угодно» (B2B), 2026-06-17. Вертикальные телефон-карточки.
   preload=none + IO-автоплей в index.html — грузим/играем только видимое. ── */
.vdemo-row {
  display: flex; gap: 16px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px; margin-top: 8px;
  scrollbar-width: thin;
}
.vdemo-card {
  flex: 0 0 200px; scroll-snap-align: start;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.vdemo-frame {
  position: relative; aspect-ratio: 9 / 16;
  border-radius: 18px; overflow: hidden;
  background: #0F0F12; border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 40px -18px rgba(0,0,0,0.6);
}
.vdemo-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vdemo-sound {
  position: absolute; right: 10px; bottom: 10px;
  width: 38px; height: 38px; border: none; border-radius: 50%;
  background: var(--accent); color: #0A2A22;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 2px 12px rgba(0,0,0,0.45);
  transition: filter 0.15s ease;
}
.vdemo-sound:hover { filter: brightness(1.06); }
.vdemo-sound svg { width: 18px; height: 18px; display: block; }
.vdemo-cap {
  margin-top: 10px; text-align: center;
  font-size: 14px; font-weight: 500; line-height: 1.35;
  color: var(--text-primary);
}
@media (max-width: 760px) {
  .vdemo-row { gap: 12px; }
  .vdemo-card { flex: 0 0 46%; }   /* ~2 в ряд + peek, горизонтальный скролл */
}

/* F1/F2 (2026-06-29): модуль «Помощник на сайте» — демо-колонка, подсказка, CTA-саб */
.wa-demo-col { display: flex; flex-direction: column; gap: 12px; }
.wa-try { font-size: 14px; color: var(--text-muted); line-height: 1.5; margin: 0; }
.wa-soon { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); background: rgba(255,255,255,0.08); padding: 1px 7px; border-radius: 999px; }
.wa-cta { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 22px; }
.wa-cta-sub { font-size: 13px; color: var(--text-muted); }
.btn-lg { height: 52px; padding: 0 28px; font-size: 16px; }

/* G2 (2026-06-29): левый блок подключения модуля «Помощник на сайте» */
.wa-connect-block { display: flex; flex-direction: column; gap: 22px; padding: 28px; border-radius: 16px; border: 1px solid var(--border-subtle); background: rgba(255,255,255,0.02); }
.wa-connect-block .wa-points { gap: 14px; }
.wa-connect-btn { margin-top: 2px; }
.wa-connect-block .wa-cta-sub { text-align: center; display: block; }
.btn.btn-block { display: flex; width: 100%; justify-content: center; }
@media (max-width: 760px) { .wa-connect-block { padding: 20px; } }

/* ============================================================
   DESIGN 2 — лендинг: чистый hero (живая карточка-агент + waveform)
   + Конструктор агента (живая кастомизация). Токены из design-tokens.css.
   ============================================================ */
@keyframes agf-pulse { 0% { transform: scale(0.85); opacity: 0.7; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes agf-wave  { 0%,100% { transform: scaleY(0.35); } 50% { transform: scaleY(1); } }
@media (prefers-reduced-motion: reduce) {
  .agent-node-ring, .agent-wave i, .live-dot { animation: none !important; }
}

/* — HERO: равные колонки — */
.hero-grid { align-items: stretch; }
.hero-demo { display: flex; align-items: stretch; justify-content: center; width: 100%; }

/* чек-лист с подписями (без emoji) */
.hero-checks2 { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 16px; }
.hero-checks2 li { display: flex; gap: 13px; align-items: flex-start; }
.hc-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent-soft, rgba(0,229,184,0.10)); color: var(--accent); border: 1px solid var(--accent-border, rgba(0,229,184,0.28)); }
.hc-ic svg { width: 19px; height: 19px; }
.hc-tx { display: flex; flex-direction: column; gap: 1px; }
.hc-tx b { font-size: 16px; font-weight: 600; line-height: 1.35; }
.hc-tx span { font-size: 13.5px; color: var(--text-muted); line-height: 1.4; }

/* живая карточка-агент */
.agent-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; align-self: center;
  background: var(--bg-elevated, #16161A); border: 1px solid var(--border-subtle, rgba(242,242,247,0.08));
  border-radius: 16px; box-shadow: 0 1px 2px rgba(0,0,0,0.4), 0 0 40px rgba(0,229,184,0.06); overflow: hidden; }
.agent-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--border-subtle, rgba(242,242,247,0.08)); }
.agent-node { position: relative; width: 40px; height: 40px; flex: none; display: inline-flex; align-items: center; justify-content: center; }
.agent-node-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--accent); animation: agf-pulse 1.8s ease-out infinite; }
.agent-node-ring2 { animation-delay: 0.6s; }
.agent-node-dot { position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #0A2A22;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; box-shadow: 0 0 18px rgba(0,229,184,0.45); }
.agent-card-id { flex: 1; min-width: 0; }
.agent-card-name { font-weight: 600; font-size: 15px; }
.agent-card-status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--accent); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(0,229,184,0.5); animation: live-blink 1.6s ease-in-out infinite; }
@keyframes live-blink { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }
.agent-wave { display: flex; align-items: center; gap: 2px; height: 24px; flex: none; }
.agent-wave i { width: 2.5px; border-radius: 999px; background: var(--accent); height: 100%; transform-origin: center;
  animation: agf-wave 1s ease-in-out infinite; opacity: 0.85; }
.agent-wave i:nth-child(2n){ animation-delay: .12s } .agent-wave i:nth-child(3n){ animation-delay: .24s }
.agent-wave i:nth-child(4n){ animation-delay: .36s } .agent-wave i:nth-child(5n){ animation-delay: .48s }
/* виджет внутри карточки: своя шапка скрыта (её заменяет agent-card-head) */
.agent-card .hero-widget { width: 100%; min-height: 0; }
.agent-card .af-panel.af-inline { height: 430px; border: none; border-radius: 0; background: transparent; }
.agent-card .af-hd { display: none; }

/* — ЭКРАН 2: Конструктор агента — */
.construct-grid { grid-template-columns: 1fr 400px; align-items: start; }
.wa-left { display: flex; flex-direction: column; gap: 22px; }
.wa-custom { background: var(--bg-elevated, #16161A); border: 1px solid var(--border-subtle, rgba(242,242,247,0.08)); border-radius: 16px; padding: 18px 20px; }
.wa-custom-title { font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.wa-custom-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.wa-custom-lab { width: 92px; flex: none; font-size: 13px; color: var(--text-muted); }
.wa-swatches { display: flex; gap: 8px; }
.wa-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; background: var(--sw); padding: 0;
  outline: none; transition: transform 140ms, box-shadow 140ms; }
.wa-sw:hover { transform: scale(1.08); }
.wa-sw.is-on { box-shadow: 0 0 0 2px var(--bg-elevated,#16161A), 0 0 0 4px var(--sw); }
.wa-seg { display: inline-flex; gap: 4px; background: var(--bg-input, #1F1F26); border: 1px solid var(--border-subtle, rgba(242,242,247,0.08)); border-radius: 12px; padding: 3px; }
.wa-seg button { border: none; background: none; cursor: pointer; padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--text-muted); outline: none; transition: background 140ms, color 140ms; }
.wa-seg button.is-on { background: var(--accent-soft, rgba(0,229,184,0.12)); color: var(--accent); }
.wa-custom-hint { font-size: 12px; color: var(--text-muted); margin: 6px 0 0; }
.construct-card { background: var(--bg-elevated, #16161A); border: 1px solid var(--border-subtle, rgba(242,242,247,0.08)); border-radius: 16px; padding: 18px 20px; }
.construct-head { display: flex; align-items: center; gap: 11px; margin-bottom: 14px; }
.construct-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft, rgba(0,229,184,0.10)); color: var(--accent); border: 1px solid var(--accent-border, rgba(0,229,184,0.28)); }
.construct-ic svg { width: 19px; height: 19px; }
.construct-title { font-weight: 600; font-size: 16px; }
.construct-sub { font-size: 12px; color: var(--text-muted); }

/* живые шаги анализа */
.cstep-box { display: flex; flex-direction: column; gap: 10px; margin: 6px 0; }
.cstep { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.cstep-dot { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--border-strong, rgba(242,242,247,0.16)); position: relative; transition: border-color 160ms; }
.cstep.is-wait .cstep-dot { border-color: var(--accent); border-right-color: transparent; animation: agf-spin 0.7s linear infinite; }
.cstep.is-wait .cstep-tx, .cstep.is-done .cstep-tx { color: var(--text-primary); }
.cstep.is-done .cstep-dot { border-color: var(--accent); background: var(--accent); }
.cstep.is-done .cstep-dot::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 9px; border: solid #0A2A22; border-width: 0 2px 2px 0; transform: rotate(45deg); }
@keyframes agf-spin { to { transform: rotate(360deg); } }

/* скругление превью-виджета (живая кастомизация) */
.af-r-sm .af-panel.af-inline { border-radius: 8px !important; }
.af-r-md .af-panel.af-inline { border-radius: 14px !important; }
.af-r-lg .af-panel.af-inline { border-radius: 24px !important; }

/* галка согласия — ЗАМЕТНО больше + крупная кликабельная область */
.af-consent { padding: 12px 14px !important; gap: 11px !important; align-items: center !important; cursor: pointer; }
.af-consent input[type="checkbox"] { width: 22px !important; height: 22px !important; flex: none !important; cursor: pointer; accent-color: var(--accent, #00E5B8); margin: 0 !important; }
.af-consent span { font-size: 12.5px !important; }

@media (max-width: 900px) {
  .construct-grid { grid-template-columns: 1fr; }
  .agent-card { max-width: 100%; }
}


/* ===== DESIGN 2 — макетные токены (Landing.dc.html из zip). Имена --bg-base/--teal-500/--ink не пересекаются с лендинговыми — аддитивно. ===== */
:root {
  /* ── Base palette ─────────────────────────────────────────── */

  /* Accent (бирюзово-зелёный) */
  --teal-500: #00E5B8;   /* primary accent */
  --teal-400: #34D399;   /* secondary accent / lighter */
  --teal-600: #00C7A0;   /* accent pressed */
  --teal-on:  #0A2A22;   /* dark text/icon on accent */

  /* Neutral surfaces (dark theme) */
  --bg-base:    #0F0F12;  /* app background */
  --bg-card:    #16161A;  /* cards, panels */
  --bg-field:   #1F1F26;  /* inputs, wells */
  --bg-raised:  #26262F;  /* hover surface / raised */

  /* Text */
  --ink:        #F2F2F7;                      /* primary text */
  --ink-muted:  rgba(242, 242, 247, 0.55);    /* secondary text */
  --ink-faint:  rgba(242, 242, 247, 0.32);    /* disabled / hints */

  /* Hairlines & borders */
  --line:       rgba(242, 242, 247, 0.08);    /* default border */
  --line-strong:rgba(242, 242, 247, 0.16);    /* emphasized border */

  /* Semantic */
  --success: #34D399;
  --warning: #FBBF24;
  --error:   #F87171;
  --info:    #00E5B8;

  /* Semantic tints (12% over base, for badge/banner fills) */
  --success-tint: rgba(52, 211, 153, 0.14);
  --warning-tint: rgba(251, 191, 36, 0.14);
  --error-tint:   rgba(248, 113, 113, 0.14);
  --accent-tint:  rgba(0, 229, 184, 0.12);

  /* ── Semantic aliases ─────────────────────────────────────── */
  --color-accent:        var(--teal-500);
  --color-accent-hover:  var(--teal-400);
  --color-accent-active: var(--teal-600);
  --color-on-accent:     var(--teal-on);

  --surface-base:   var(--bg-base);
  --surface-card:   var(--bg-card);
  --surface-field:  var(--bg-field);
  --surface-raised: var(--bg-raised);

  --text-primary:   var(--ink);
  --text-secondary: var(--ink-muted);
  --text-disabled:  var(--ink-faint);
  --text-on-accent: var(--teal-on);

  --border-default: var(--line);
  --border-strong:  var(--line-strong);
  --border-focus:   var(--teal-500);

  /* Тени карточек (2026-07-10). В тёмной — почти незаметные (карты контрастят фоном);
     в светлой (ниже) — мягкая «apple»-тень для глубины вместо плоскости. */
  --shadow-card: 0 1px 3px rgba(0,0,0,0.40);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.30);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.38);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.50);
}

/* ──────────────────────────────────────────────────────────────────────
   СВЕТЛАЯ ТЕМА (лендинг). Активируется data-theme="light" на <html> (тумблер
   sun/moon в nav + localStorage cok_theme, общий ключ с кабинетом). Только палитра-
   оверрайды — переопределяем ОБА набора токенов: лендинг-палитру (--ink/--bg-card/
   --line/--teal-*) И design-tokens (--bg-primary/--text-primary/--border-*).
   Значения зеркалят светлую тему кабинета. Бренд-акцент сохранён (teal, чуть
   глубже #00C2A0 — контраст на белом; кнопки остаются бирюзовыми).
   ────────────────────────────────────────────────────────────────────── */
:root[data-theme="light"] {
  color-scheme: light;
  /* лендинг-палитра */
  --bg-base:    #f4f5f7;
  --bg-card:    #ffffff;
  --bg-field:   #eceef1;
  --bg-raised:  #e4e6ea;
  --ink:        #17171c;
  --ink-muted:  rgba(23,23,28,0.62);
  --ink-faint:  rgba(23,23,28,0.42);
  --line:       rgba(0,0,0,0.09);
  --line-strong:rgba(0,0,0,0.15);
  --teal-500:   #00C2A0;
  --teal-400:   #00C2A0;
  --teal-600:   #059b7f;
  --teal-on:    #04231d;
  --success:    #059669;
  --warning:    #B45309;
  --error:      #DC2626;
  --info:       #00C2A0;
  --success-tint: rgba(5,150,105,0.12);
  --warning-tint: rgba(180,83,9,0.12);
  --error-tint:   rgba(220,38,38,0.10);
  --accent-tint:  rgba(0,194,160,0.13);
  /* design-tokens (используются ds-components-кнопками) */
  --bg-primary:    #f4f5f7;
  --bg-elevated:   #ffffff;
  --bg-input:      #eceef1;
  --text-primary:  #17171c;
  --text-muted:    rgba(23,23,28,0.62);
  --text-faint:    rgba(23,23,28,0.42);
  --border-subtle: rgba(0,0,0,0.09);
  --border-strong: rgba(0,0,0,0.15);
  --accent:        #00C2A0;
  --accent-ink:    #04231d;
  /* Гибрид-акцент (2026-07-10): ЗАЛИВКИ CTA-кнопок — яркий бренд-мятный #00E5B8 (сочно,
     тёмный ink читаем); текст/кольца/галочки/эйбрау остаются #00C2A0 (--teal-500, читабельно). */
  --color-accent:  #00E5B8;
  /* Мягкие тени карточек — зеркалят светлую тему кабинета (глубина, не плоскость). */
  --shadow-card: 0 1px 2px rgba(0,0,0,0.05), 0 24px 48px -28px rgba(0,0,0,0.20);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.16);
}
/* Component-оверрайды: правила с ЗАХАРДКоженным тёмным фоном (не токен). */
:root[data-theme="light"] .nav { background: rgba(255,255,255,0.82) !important; }
:root[data-theme="light"] .af-hero-glow { opacity: 0.5; }
/* 2026-07-10: карточки лендинга в СВЕТЛОЙ теме — мягкая тень + hairline = глубина
   (как в кабинете), не плоские блёклые прямоугольники. Тёмную не трогаем. */
:root[data-theme="light"] .af-feat,
:root[data-theme="light"] .af-plans > div,
:root[data-theme="light"] .agf-2 > div,
:root[data-theme="light"] .plan { box-shadow: var(--shadow-card); }
/* Мобилка: пакеты «Нужно больше?» (.agf-2) едут 2-в-ряд на 375px → одна колонка.
   Тарифам — чуть больше row-gap, чтобы бейдж «Популярный» не касался соседа. */
@media (max-width: 560px) {
  .agf-2 { grid-template-columns: 1fr !important; }
  section#pricing .af-plans { gap: 26px !important; }
}
/* Тумблер темы */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
  flex: 0 0 auto;
}
.theme-toggle:hover { background: var(--bg-field); }
.theme-toggle .ic-moon { display: none; }
.theme-toggle .ic-sun { display: block; }
:root[data-theme="light"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="light"] .theme-toggle .ic-moon { display: block; }

:root {
  /* Families */
  --font-sans: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Weights */
  --weight-regular:  400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* Type scale (px) — display → caption */
  --text-display:  44px;   /* hero, big numbers */
  --text-h1:       32px;
  --text-h2:       24px;
  --text-h3:       19px;
  --text-body-lg:  17px;
  --text-body:     15px;   /* default UI text */
  --text-sm:       13px;
  --text-caption:  12px;
  --text-micro:    11px;   /* labels, overlines */

  /* Line heights */
  --leading-tight: 1.15;
  --leading-snug:  1.3;
  --leading-base:  1.5;

  /* Letter spacing */
  --tracking-tight:   -0.02em;
  --tracking-normal:  0;
  --tracking-wide:    0.02em;
  --tracking-overline:0.08em;
}

:root {
  /* 4px base spacing scale */
  --space-0:  0;
  --space-1:  4px;
  --space-2:  8px;
  --space-3:  12px;
  --space-4:  16px;
  --space-5:  20px;
  --space-6:  24px;
  --space-8:  32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;

  /* Radii — 8 / 12 / 16 / pill */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-pill: 999px;

  /* Layout */
  --container-max: 1200px;
  --gutter:        24px;
}

:root {
  /* Elevation — soft, low-key shadows for dark UI.
     Depth comes mostly from surface lightness; shadows are subtle. */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.55);

  /* Accent glow — used sparingly for active/listening states */
  --glow-accent: 0 0 0 4px rgba(0, 229, 184, 0.18);
  --glow-accent-lg: 0 0 24px rgba(0, 229, 184, 0.35);

  /* Focus ring */
  --ring-focus: 0 0 0 3px rgba(0, 229, 184, 0.35);
}


/* Design-2 keyframes (сигнатурные циклы макета) */
@keyframes agf-pulse { 0% { transform: scale(.85); opacity:.7 } 100% { transform: scale(1.6); opacity:0 } }
@keyframes agf-wave  { 0%,100% { transform: scaleY(.3) } 50% { transform: scaleY(1) } }
@keyframes agf-spin  { to { transform: rotate(360deg) } }
@keyframes agf-msg-in{ from { opacity:0; transform: translateY(8px) } to { opacity:1; transform: translateY(0) } }
@keyframes agf-dots  { 0%,80%,100% { opacity:.25; transform: translateY(0) } 40% { opacity:1; transform: translateY(-2px) } }
@media (max-width: 920px) { #af-hero .agf-grid, #af-ek2 .agf-grid { grid-template-columns: 1fr !important; } }
#af-hero input::placeholder, #af-ek2 input::placeholder { color: var(--ink-faint); }
#af-hero .scp4:hover, #af-ek2 .scp4:hover { background: var(--bg-raised) !important; }
#af-hero .scp6:hover, #af-ek2 .scp6:hover { background: var(--teal-400) !important; }

/* 2026-07-04 (мобильная полировка): фолбэк с метриками Inter — убирает layout-shift
   при подгрузке веб-шрифта (CLS 0.31 на hero: h1 перевёрстывался после swap). */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Helvetica Neue'), local('Arial');
  size-adjust: 107%;
  ascent-override: 90.2%;
  descent-override: 22.5%;
  line-gap-override: 0%;
}

/* ===== 2026-07-04 · Мобильная адаптация ≤560 (index + personal, десктоп не тронут) ===== */
@media (max-width: 560px) {
  /* единая сетка: одинаковые поля 16px и вертикальный ритм 44px между секциями */
  main section {
    padding-left: 16px !important; padding-right: 16px !important;
    padding-top: 44px !important; padding-bottom: 44px !important;
  }
  main section:first-of-type { padding-top: 14px !important; }
  /* заголовки: clamp без обрезки */
  main section h1 { font-size: clamp(30px, 8.6vw, 38px) !important; }
  main section h2 { font-size: clamp(24px, 7vw, 30px) !important; }
  /* карточные сетки: столбик с равным gap */
  .agf-grid, .agf-3, .agf-4 { gap: 14px !important; }

  /* 2026-07-25 (моб.фикс верстки): 3-вкладочный сегмент героя (AI-сотрудник · AI-телефония ·
     AI-чат-виджет) был inline-flex + align-self:flex-start → ширина по контенту ~500px →
     горизонтальный оверфлоу ВСЕГО героя (буллеты/заголовок обрезались). На мобиле — полно-
     ширинный сегмент из 3 равных вкладок, помещается в узкий вьюпорт. */
  .af-pageseg { display: flex !important; width: 100%; box-sizing: border-box; gap: 4px !important; }
  .af-pageseg > a { flex: 1 1 0; min-width: 0; padding: 9px 4px !important; font-size: 12px !important; }

  /* шапка: логотип + TG-иконка + компактная «Регистрация» в одну строку.
     .nav-seg@760 обнулял горизонтальный padding контейнера — возвращаем 16px. */
  .nav .nav-seg { padding: 8px 16px; }
  .nav-inner { gap: 10px; }
  .nav-seg > .brand { flex: 0 1 auto; min-width: 0; }
  .nav-cta { gap: 6px; flex: 1 1 auto; }
  .nav-cta .nav-connect { height: 36px; padding: 0 12px; font-size: 12.5px; border-radius: 10px; }
  .nav-support { width: 36px; height: 36px; padding: 0; justify-content: center; }
  .nav-support-text { display: none; }

  /* демо-линия: столбик (иконка → подпись → номер ОДНОЙ строкой → кнопка на всю ширину) */
  .af-demo-cta { flex-direction: column !important; align-items: center !important; gap: 12px !important; text-align: center; padding: 18px 16px !important; }
  .af-demo-cta > div { width: 100%; min-width: 0; }
  #af-demo-phone, .af-demo-phone { white-space: nowrap !important; font-size: clamp(19px, 5.6vw, 22px) !important; }
  .af-demo-cta > span:last-child { width: 100%; justify-content: center; box-sizing: border-box; }

  /* лайт-версия: тяжёлые декоры долой (фикс. перф + чистый вид) */
  .af-hero-glow { display: none !important; }
}

/* ============================================================
   Мобильное меню (бургер) — 2026-07-12.
   На мобиле (≤760px) центр-меню (Агент/Тарифы/FAQ) и «Войти» скрыты
   (см. ранние правила display:none). Раньше их вообще нельзя было
   открыть с телефона — теперь доступ через бургер. Кнопка + панель
   активны только ≤760px; на десктопе .nav-burger = display:none,
   поэтому панель открыть невозможно (и она принудительно спрятана).
   Скоуп — только шапка лендинга (index/personal), кабинет/виджет не трогаем.
   ============================================================ */
.nav-burger { display: none; }
.nav-burger-box { position: relative; width: 18px; height: 14px; display: inline-block; }
.nav-burger-box > span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .22s ease, opacity .16s ease, top .22s ease;
}
.nav-burger-box > span:nth-child(1) { top: 0; }
.nav-burger-box > span:nth-child(2) { top: 6px; }
.nav-burger-box > span:nth-child(3) { top: 12px; }
.nav.menu-open .nav-burger-box > span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav.menu-open .nav-burger-box > span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-burger-box > span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

.nav-menu {
  position: absolute; top: calc(100% + 6px); right: 12px; z-index: 60;
  min-width: 220px; max-width: calc(100vw - 24px);
  display: flex; flex-direction: column; padding: 8px;
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 44px -14px rgba(0,0,0,0.45), 0 2px 8px rgba(0,0,0,0.18);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
  transform-origin: top right;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav.menu-open .nav-menu { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.nav-menu a {
  display: flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border-radius: var(--radius); color: var(--ink);
  font-size: 15px; font-weight: 500; text-decoration: none; white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a:active { background: var(--bg-field); color: var(--ink); }
.nav-menu-sep { height: 1px; margin: 6px 8px; background: var(--line); }

@media (max-width: 760px) {
  .nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 10px; cursor: pointer;
    background: transparent; border: 1px solid var(--line-strong); color: var(--ink);
    flex: 0 0 auto; padding: 0;
  }
  .nav-burger:hover { background: var(--bg-field); }
  /* Техподдержка-иконка переезжает в бургер — освобождаем место в баре. */
  .nav-seg .nav-support { display: none; }
}
@media (min-width: 761px) {
  .nav-menu { display: none !important; }
}

/* Узкие экраны (≤360px, старые/малые Android+iPhone SE): персона-тумблер
   «Для бизнеса / Для себя» имел фикс. 148px×2 (=308px) и вылезал на 320px.
   Делаем его резиновым (flex, во всю ширину контейнера) — тумб 50% работает
   без изменений. 390/375/360px не затрагиваются. */
@media (max-width: 360px) {
  #af-mode-toggle { display: flex !important; width: 100%; align-self: stretch !important; }
  #af-mode-toggle > button, #af-mode-toggle > a { width: auto !important; flex: 1 1 0; min-width: 0; }
}
