/* ===================================================================
   Anexica landing — «Сигнал в эфире».
   Чернильно-синий нуар + электрик-лазурь (#1292EE — цвет виджета) +
   сигнальный лайм. Editorial-tech: Unbounded (display) / Onest (body) /
   JetBrains Mono (код, метки, цифры). Hero и embed-секция — всегда
   «эфир» (ink) в обеих темах; светлая тема — тёплая бумага.
   CSP-safe: без инлайнов, шрифты самохост (/fonts).
   =================================================================== */

/* --- токены ------------------------------------------------------- */
:root {
  /* бумага (светлая тема по умолчанию) */
  --bg: #f3f1ea;
  --bg-soft: #ebe8de;
  --surface: #fbfaf6;
  --text: #141b2e;
  --muted: #5a6377;
  --border: #ddd8c9;
  --border-strong: #c8c2af;

  /* фирменные */
  --azure: #1292ee;
  --azure-deep: #0d6fc0;
  --azure-glow: #3faeff;
  --lime: #9adf2e;
  --lime-deep: #5c9a00;

  --accent: var(--azure-deep);
  --accent-hover: #0a5c9e;
  --accent-on: #ffffff;

  /* «эфир» — фикс-палитра ink-секций, НЕ зависит от темы */
  --ink: #060b18;
  --ink-2: #0a1224;
  --ink-surface: #101b36;
  --ink-border: #1d2a47;
  --ink-text: #e9eef9;
  --ink-muted: #8fa0bf;

  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 72rem;
  --shadow-sm: 0 1px 2px rgb(20 27 46 / .07), 0 2px 6px rgb(20 27 46 / .05);
  --shadow-md: 0 10px 30px -10px rgb(20 27 46 / .22), 0 2px 8px -2px rgb(20 27 46 / .08);
  --glow-azure: 0 0 0 1px rgb(18 146 238 / .4), 0 14px 48px -10px rgb(18 146 238 / .5);

  /* 'CurPatch' первым фолбэком: символы ₽/₸ (U+20BD/U+20B8) во всех трёх
     семействах берутся из единого источника (Unbounded — единственный шрифт
     с обоими глифами; в Onest/JetBrains Mono тенге нет вообще). Без этого ₽/₸
     выпадали в системный фолбэк и выглядели чужеродно. unicode-range у CurPatch
     покрывает только эти два символа — остальной текст идёт штатным шрифтом. */
  --font-display: 'CurPatch', 'Unbounded', 'Onest', sans-serif;
  --font-body: 'CurPatch', 'Onest', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'CurPatch', 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  --header-bg: rgb(243 241 234 / .85);
  --footer-bg: #04070f;
  --footer-fg: #aab6cf;
  --footer-fg-strong: #ffffff;
  --footer-muted: #66758f;
  --footer-border: #131e36;
  --footer-rights: #4d5b75;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #060b18;
  --bg-soft: #0a1224;
  --surface: #0e1830;
  --text: #e9eef9;
  --muted: #8fa0bf;
  --border: #1d2a47;
  --border-strong: #2b3b61;
  --accent: var(--azure);
  --accent-hover: var(--azure-glow);
  --accent-on: #04101f;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .5), 0 2px 8px rgb(0 0 0 / .35);
  --shadow-md: 0 12px 36px -10px rgb(0 0 0 / .65), 0 2px 8px -2px rgb(0 0 0 / .4);
  --header-bg: rgb(6 11 24 / .82);
  color-scheme: dark;
}

/* --- база ---------------------------------------------------------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { line-height: 1.12; margin: 0; }
h1, h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; }
h3, h4 { font-weight: 600; letter-spacing: -0.015em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }
.container--narrow { max-width: 46rem; }
.brand {
  font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
  color: var(--text); letter-spacing: .01em;
}

/* --- кнопки --------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  /* Базовый padding: без него `.btn` без модификатора --sm/--lg сжимался до
     нуля и текст не вмещался (embed-CTA «Получить свой ключ»). --sm/--lg ниже
     переопределяют. */
  padding: .72rem 1.4rem; font-size: .98rem; line-height: 1.2;
  border-radius: 12px; font-weight: 600; font-family: var(--font-body);
  transition: transform .16s ease, box-shadow .2s ease, background .16s ease,
              border-color .16s ease, color .16s ease;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn--sm { padding: .5rem .95rem; font-size: .9rem; }
.btn--lg { padding: .95rem 1.7rem; font-size: 1.02rem; }
.btn--primary {
  background: linear-gradient(135deg, var(--azure) 0%, var(--azure-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 18px -4px rgb(18 146 238 / .55);
}
.btn--primary:hover {
  color: #fff; transform: translateY(-2px);
  box-shadow: 0 10px 28px -6px rgb(18 146 238 / .65);
}
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* --- шапка ----------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header__row { display: flex; align-items: center; gap: 1.25rem; min-height: 64px; }
.nav { display: flex; gap: 1.4rem; margin-left: .75rem; margin-right: auto; }
.nav a { color: var(--muted); font-size: .94rem; font-weight: 500; }
.nav a:hover { color: var(--text); }
.site-header__actions { display: flex; align-items: center; gap: .8rem; }
.link-login { color: var(--muted); font-size: .92rem; font-weight: 500; }
.link-login:hover { color: var(--text); }

.lang-switch {
  display: inline-flex; align-items: center; gap: .15rem;
  border: 1px solid var(--border); border-radius: 999px; padding: .2rem .5rem .2rem .55rem;
  background: var(--surface);
}
.lang-switch__icon { display: inline-flex; color: var(--muted); margin-right: .15rem; }
.lang {
  font-family: var(--font-mono); font-size: .7rem; font-weight: 600;
  letter-spacing: .06em; color: var(--muted); padding: .22rem .45rem; border-radius: 999px;
}
.lang:hover { color: var(--text); }
.lang.is-active { background: var(--text); color: var(--bg); }

.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  cursor: pointer; transition: color .15s ease, border-color .15s ease, transform .15s ease;
}
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); transform: rotate(12deg); }
/* inline-flex, иначе inline-span с SVG прижимается к baseline и иконка
   визуально уезжает выше центра кнопки (глобус рядом уже inline-flex). */
.theme-toggle__sun { display: inline-flex; }
.theme-toggle__moon { display: none; }
:root[data-theme="dark"] .theme-toggle__sun { display: none; }
:root[data-theme="dark"] .theme-toggle__moon { display: inline-flex; }

.nav-burger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 8px; background: none;
  border: 1px solid var(--border); border-radius: 10px; cursor: pointer;
}
.nav-burger__bar { display: block; height: 2px; width: 100%; background: var(--text); border-radius: 2px; }

/* --- HERO: «эфир» ----------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(56rem 30rem at 78% -10%, rgb(18 146 238 / .26), transparent 60%),
    radial-gradient(40rem 26rem at -10% 110%, rgb(18 146 238 / .12), transparent 55%),
    var(--ink);
  color: var(--ink-text);
  padding: 5.5rem 0 5rem;
}
/* координатная сетка эфира */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(143 160 191 / .07) 1px, transparent 1px),
    linear-gradient(90deg, rgb(143 160 191 / .07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70rem 40rem at 60% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(70rem 40rem at 60% 0%, #000 30%, transparent 75%);
}
.hero__grid {
  position: relative; display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 3.5rem; align-items: center;
}
.hero__badge {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--azure-glow);
  border: 1px solid rgb(63 174 255 / .35); border-radius: 999px;
  padding: .45rem .9rem; margin-bottom: 1.4rem;
  background: rgb(18 146 238 / .08);
  animation: rise .7s cubic-bezier(.2,.7,.2,1) both;
}
.hero__badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 999px;
  background: var(--lime); box-shadow: 0 0 10px 1px rgb(154 223 46 / .9);
  animation: pulse 2.2s ease-in-out infinite;
}
.hero__title {
  font-size: clamp(2.05rem, 4.4vw, 3.3rem);
  color: #fff; margin: 0 0 1.2rem;
  animation: rise .7s .08s cubic-bezier(.2,.7,.2,1) both;
}
.hero__subtitle {
  font-size: 1.08rem; color: var(--ink-muted); max-width: 34rem;
  margin: 0 0 2rem;
  animation: rise .7s .16s cubic-bezier(.2,.7,.2,1) both;
}
.hero__cta { display: flex; gap: .9rem; flex-wrap: wrap; animation: rise .7s .24s cubic-bezier(.2,.7,.2,1) both; }
.hero .btn--ghost { color: var(--ink-text); border-color: var(--ink-border); }
.hero .btn--ghost:hover { color: var(--azure-glow); border-color: var(--azure); }
.hero__note {
  margin: 1.1rem 0 0; font-size: .86rem; color: var(--ink-muted);
  animation: rise .7s .3s cubic-bezier(.2,.7,.2,1) both;
}
.hero__stats {
  display: flex; gap: 2.4rem; margin-top: 2.6rem; padding-top: 1.8rem;
  border-top: 1px solid var(--ink-border);
  animation: rise .7s .38s cubic-bezier(.2,.7,.2,1) both;
}
.stat { display: grid; gap: .15rem; }
.stat__n {
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem;
  color: #fff; letter-spacing: .01em;
}
.stat__n b { color: var(--lime); font-weight: 700; }
.stat__l { font-family: var(--font-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-muted); }

/* живой чат — главный герой правой колонки */
.hero__demo { position: relative; animation: rise .8s .2s cubic-bezier(.2,.7,.2,1) both; }
.chat-card {
  position: relative;
  background: linear-gradient(180deg, var(--ink-surface) 0%, var(--ink-2) 100%);
  border: 1px solid var(--ink-border);
  border-radius: var(--radius-lg);
  box-shadow:
    0 0 0 1px rgb(18 146 238 / .12),
    0 30px 70px -20px rgb(0 0 0 / .8),
    0 0 90px -30px rgb(18 146 238 / .55);
  transform: rotate(-1.6deg);
  width: min(25rem, 100%); margin-left: auto;
}
.chat-card__head {
  display: flex; align-items: center; gap: .7rem;
  padding: .95rem 1.1rem; border-bottom: 1px solid var(--ink-border);
}
.chat-card__avatar {
  width: 34px; height: 34px; border-radius: 999px; flex: none;
  background: linear-gradient(135deg, var(--azure) 0%, #6fc4ff 100%);
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: .78rem; color: #06223c;
}
.chat-card__title { font-weight: 600; font-size: .92rem; color: var(--ink-text); line-height: 1.2; }
.chat-card__status {
  display: flex; align-items: center; gap: .4rem;
  font-family: var(--font-mono); font-size: .64rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--lime);
}
.chat-card__status::before {
  content: ""; width: 6px; height: 6px; border-radius: 999px; background: var(--lime);
  box-shadow: 0 0 8px 1px rgb(154 223 46 / .8);
  animation: pulse 2.2s ease-in-out infinite;
}
.chat-card__body { padding: 1.1rem; display: grid; gap: .6rem; min-height: 17rem; align-content: start; }

.cmsg {
  max-width: 84%; padding: .6rem .85rem; border-radius: 14px;
  font-size: .88rem; line-height: 1.45; opacity: 0;
}
.cmsg--v {
  justify-self: end; color: #fff;
  background: linear-gradient(135deg, var(--azure) 0%, var(--azure-deep) 100%);
  border-bottom-right-radius: 4px;
}
.cmsg--o {
  justify-self: start; color: var(--ink-text);
  background: rgb(143 160 191 / .14);
  border: 1px solid var(--ink-border);
  border-bottom-left-radius: 4px;
}
.cmsg--m1 { animation: msgin 14s .6s infinite both; }
.cmsg--m2 { animation: msgin 14s 3.4s infinite both; }
.cmsg--m3 { animation: msgin 14s 6.2s infinite both; }
.cmsg--m4 { animation: msgin 14s 8.6s infinite both; }

.ctyping {
  justify-self: start; display: inline-flex; gap: 4px; align-items: center;
  padding: .65rem .8rem; border-radius: 14px; border-bottom-left-radius: 4px;
  background: rgb(143 160 191 / .14); border: 1px solid var(--ink-border);
  opacity: 0; animation: typingwin 14s 1.6s infinite both;
}
.ctyping i {
  width: 6px; height: 6px; border-radius: 999px; background: var(--ink-muted);
  animation: blink 1s ease-in-out infinite;
}
.ctyping i:nth-child(2) { animation-delay: .18s; }
.ctyping i:nth-child(3) { animation-delay: .36s; }

.crate {
  justify-self: start; display: inline-flex; gap: .5rem; align-items: center;
  font-size: 1rem; padding: .45rem .8rem; border-radius: 999px;
  border: 1px dashed var(--ink-border); color: var(--ink-muted);
  opacity: 0; animation: msgin 14s 10.6s infinite both;
}
.crate b { filter: drop-shadow(0 0 6px rgb(154 223 46 / .9)); }

/* плавающие чипы вокруг карточки */
.chip {
  position: absolute; z-index: 2;
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .08em; color: var(--ink-text);
  background: var(--ink-2); border: 1px solid var(--ink-border);
  border-radius: 999px; padding: .45rem .8rem;
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / .7);
}
.chip--tg { top: -1rem; left: 4%; animation: floaty 7s ease-in-out infinite; }
.chip--ws { bottom: 8%; left: -4%; animation: floaty 8s 1.2s ease-in-out infinite; }
.chip b { color: var(--azure-glow); font-weight: 600; }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.72); opacity: .65; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes blink { 0%, 100% { opacity: .25; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-2px); } }
/* реплики живут внутри 14s-цикла: появились → видимы → растворились в конце */
@keyframes msgin {
  0% { opacity: 0; transform: translateY(10px) scale(.97); }
  2.5% { opacity: 1; transform: none; }
  92% { opacity: 1; }
  97%, 100% { opacity: 0; transform: translateY(-6px); }
}
/* «печатает…» виден только в своём окне 1.6s→3.2s (≈11% цикла) */
@keyframes typingwin {
  0% { opacity: 0; transform: translateY(8px); }
  2% { opacity: 1; transform: none; }
  10% { opacity: 1; }
  12.5%, 100% { opacity: 0; transform: translateY(-4px); }
}

/* --- тикер ------------------------------------------------------------ */
.ticker {
  overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  padding: .8rem 0;
}
.ticker__track { display: inline-flex; animation: marquee 36s linear infinite; will-change: transform; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 1.6rem; padding-right: 1.6rem;
  font-family: var(--font-mono); font-size: .74rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.ticker__item::after { content: "✦"; color: var(--azure); font-size: .8rem; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- секции (общее) ---------------------------------------------------- */
section { padding: 5.5rem 0; }
.section__title {
  font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .8rem; color: var(--text);
}
.section__subtitle { color: var(--muted); margin: 0 0 2.6rem; max-width: 38rem; font-size: 1.02rem; }

/* --- фичи: bento -------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.6rem;
  transition: transform .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.feature:hover { transform: translateY(-4px); border-color: var(--azure); box-shadow: var(--shadow-md); }
.feature:nth-child(1) { grid-column: span 2; }
.feature:nth-child(4) { grid-column: span 2; }
.feature__icon { font-size: 1.5rem; margin-bottom: .9rem; }
.feature h3 { font-size: 1.06rem; margin-bottom: .45rem; color: var(--text); }
.feature p { margin: 0; color: var(--muted); font-size: .94rem; }
/* лазурная «ниточка эфира» поверх карточки */
.feature::before {
  content: ""; position: absolute; top: 0; left: 1.6rem; right: 60%;
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--azure), transparent);
  opacity: 0; transition: opacity .25s ease;
}
.feature:hover::before { opacity: 1; }

/* --- как запустить -------------------------------------------------------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4rem;
}
.step { position: relative; display: grid; gap: .4rem; align-content: start; }
.step__n {
  font-family: var(--font-mono); font-weight: 600; font-size: .8rem;
  color: var(--accent); letter-spacing: .1em;
  display: flex; align-items: center; gap: .8rem; margin-bottom: .5rem;
}
.step__n::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
.step h3 { font-size: 1.08rem; color: var(--text); }
.step p { margin: .3rem 0 0; color: var(--muted); font-size: .94rem; }

/* --- embed: терминал в эфире --------------------------------------------- */
.embed { background: var(--ink); color: var(--ink-text); position: relative; overflow: hidden; }
.embed::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(40rem 20rem at 18% 0%, rgb(18 146 238 / .16), transparent 60%);
}
.embed .section__title { color: #fff; }
.embed .section__subtitle { color: var(--ink-muted); }
.embed__grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.embed__hint {
  display: inline-flex; align-items: center; gap: .6rem; margin-top: 1.4rem;
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--lime);
}
.terminal {
  background: #050910; border: 1px solid var(--ink-border); border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -18px rgb(0 0 0 / .8), 0 0 70px -30px rgb(18 146 238 / .5);
  overflow: hidden;
}
.terminal__bar {
  display: flex; align-items: center; gap: .45rem;
  padding: .7rem 1rem; border-bottom: 1px solid var(--ink-border);
}
.terminal__dot { width: 10px; height: 10px; border-radius: 999px; }
.terminal__dot:nth-child(1) { background: #e0635c; }
.terminal__dot:nth-child(2) { background: #e0a93e; }
.terminal__dot:nth-child(3) { background: #6fbf57; }
.terminal__file {
  margin-left: auto; font-family: var(--font-mono); font-size: .7rem; color: var(--ink-muted);
}
.terminal__code {
  margin: 0; padding: 1.3rem 1.4rem 1.5rem; overflow-x: auto;
  font-family: var(--font-mono); font-size: .8rem; line-height: 1.75; color: #c4d3ee;
}
.terminal__code .c-tag { color: var(--azure-glow); }
.terminal__code .c-attr { color: #9adf2e; }
.terminal__code .c-val { color: #ffc66d; }
.terminal__code .c-cmt { color: #5a6b8c; }

/* --- сравнение -------------------------------------------------------------- */
.compare-scroll { overflow-x: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; }
.compare thead th {
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .12em;
  text-transform: uppercase; text-align: left; padding: .8rem 1.1rem; color: var(--muted);
}
.compare thead th:first-of-type { color: var(--accent); }
.compare tbody th {
  text-align: left; font-weight: 500; color: var(--muted);
  padding: .95rem 1.1rem; border-top: 1px solid var(--border); font-size: .94rem;
}
.compare tbody td { padding: .95rem 1.1rem; border-top: 1px solid var(--border); font-size: .95rem; }
.cmp-us { color: var(--text); font-weight: 600; background: rgb(18 146 238 / .07); }
.cmp-other { color: var(--muted); }

/* --- тарифы ------------------------------------------------------------------ */
.cur-toggle { display: inline-flex; gap: .25rem; border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: .25rem; margin-bottom: 2rem; }
.cur-btn {
  font-family: var(--font-mono); font-size: .85rem; font-weight: 600;
  border: 0; background: none; color: var(--muted); border-radius: 999px;
  padding: .4rem .9rem; cursor: pointer; transition: all .15s ease;
}
.cur-btn:hover { color: var(--text); }
.cur-btn.is-active { background: var(--text); color: var(--bg); }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.6rem 1.4rem;
  transition: transform .2s ease, box-shadow .25s ease, border-color .2s ease;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan--featured {
  background: linear-gradient(180deg, var(--ink-surface) 0%, var(--ink-2) 100%);
  border-color: var(--azure); box-shadow: var(--glow-azure);
}
.plan--featured .plan__name, .plan--featured .plan__price,
.plan--featured .plan__price--free { color: #fff; }
.plan--featured .plan__tagline, .plan--featured .plan__seats,
.plan--featured .plan__extra, .plan--featured .plan__feats li,
.plan--featured .plan__per { color: var(--ink-muted); }
.plan--featured .plan__feats li::before { color: var(--lime); }
.plan__badge {
  position: absolute; top: -0.8rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: .64rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  background: var(--lime); color: #15240a;
  padding: .3rem .8rem; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 14px -2px rgb(154 223 46 / .5);
}
.plan__name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; color: var(--text); }
.plan__tagline { color: var(--muted); font-size: .84rem; margin: .3rem 0 1.1rem; min-height: 2.4em; }
.plan__price { margin: 0 0 .2rem; display: flex; align-items: baseline; gap: .3rem; color: var(--text); }
.plan__amount { font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; letter-spacing: .01em; }
.plan__price--free {
  font-family: var(--font-display); font-weight: 700; font-size: 1.6rem;
  margin: 0 0 .2rem; color: var(--text);
}
.plan__per { color: var(--muted); font-size: .9rem; }
.plan__seats { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.plan__extra { font-size: .8rem; color: var(--muted); margin: .25rem 0 1.2rem; min-height: 1.2em; }
.plan__extra--empty { visibility: hidden; }
.plan__cta {
  display: inline-flex; justify-content: center; padding: .7rem 1rem;
  border-radius: 11px; font-weight: 600; font-size: .92rem;
  border: 1px solid var(--border-strong); color: var(--text);
  transition: all .15s ease; margin-bottom: 1.3rem;
}
.plan__cta:hover { border-color: var(--accent); color: var(--accent); }
.plan--featured .plan__cta { border-color: var(--ink-border); color: var(--ink-text); }
.plan__cta--primary {
  background: linear-gradient(135deg, var(--azure) 0%, var(--azure-deep) 100%);
  border-color: transparent !important; color: #fff !important;
  box-shadow: 0 4px 18px -4px rgb(18 146 238 / .55);
}
.plan__cta--primary:hover { transform: translateY(-1px); }
.plan__feats { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.plan__feats li { position: relative; padding-left: 1.3rem; font-size: .88rem; color: var(--muted); }
.plan__feats li::before { content: "✓"; position: absolute; left: 0; color: var(--lime-deep); font-weight: 700; }
.pricing__note { color: var(--muted); font-size: .85rem; max-width: 44rem; margin-top: 2rem; }

/* --- FAQ ----------------------------------------------------------------------- */
.faq__list { display: grid; }
.faq__item { border-top: 1px solid var(--border); }
.faq__item:last-child { border-bottom: 1px solid var(--border); }
.faq__item summary {
  cursor: pointer; list-style: none; display: flex; align-items: baseline; gap: 1rem;
  padding: 1.15rem 0; font-weight: 600; color: var(--text); font-size: 1rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "+"; font-family: var(--font-mono); font-weight: 600;
  color: var(--accent); flex: none; width: 1.1rem;
}
.faq__item[open] summary::before { content: "−"; }
.faq__item p { margin: 0 0 1.2rem 2.1rem; color: var(--muted); font-size: .95rem; }

/* --- финальный CTA ---------------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  background:
    radial-gradient(40rem 20rem at 50% 130%, rgb(18 146 238 / .32), transparent 65%),
    var(--ink);
  color: var(--ink-text);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgb(143 160 191 / .06) 1px, transparent 1px),
    linear-gradient(90deg, rgb(143 160 191 / .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(50rem 26rem at 50% 100%, #000 25%, transparent 70%);
  -webkit-mask-image: radial-gradient(50rem 26rem at 50% 100%, #000 25%, transparent 70%);
}
.cta-band__title { position: relative; font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: #fff; margin-bottom: .8rem; }
.cta-band__subtitle { position: relative; color: var(--ink-muted); margin: 0 0 2rem; }
.cta-band .btn { position: relative; }

/* --- футер ---------------------------------------------------------------------------- */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); padding: 3.6rem 0 2rem; }
.site-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: var(--footer-fg-strong); }
.site-footer__brand p { color: var(--footer-muted); font-size: .9rem; margin: .6rem 0 0; }
.site-footer h4 {
  font-family: var(--font-mono); font-size: .68rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: var(--footer-muted);
  margin-bottom: .9rem;
}
.site-footer a { display: block; color: var(--footer-fg); font-size: .92rem; padding: .22rem 0; }
.site-footer a:hover { color: var(--footer-fg-strong); }
.site-footer__rights {
  margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--footer-border);
  color: var(--footer-rights); font-size: .82rem;
}

/* --- doc-страницы (оферта/оплата/о компании) + контакты ------------------------------------ */
/* шапка-«эфир» внутренних страниц — единый язык с hero главной */
.doc-hero {
  background:
    radial-gradient(46rem 22rem at 80% -30%, rgb(18 146 238 / .22), transparent 60%),
    var(--ink);
  color: var(--ink-text);
  padding: 3.6rem 0 3.2rem;
}
.doc-hero__title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: #fff; margin: 0 0 .8rem;
}
.doc-hero__lead { color: var(--ink-muted); font-size: 1.04rem; margin: 0; max-width: 40rem; }
.doc { padding: 3rem 0 5rem; }
.doc h2 { font-size: 1.35rem; margin: 2.4rem 0 1.2rem; color: var(--text); }
.doc h2:first-child { margin-top: 0; }
.doc__muted { color: var(--muted); font-size: .92rem; margin: 0 0 1.4rem; }
.doc__title { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: .8rem; }
.doc__lead { color: var(--muted); font-size: 1.04rem; margin: 0 0 2.6rem; max-width: 40rem; }
.doc__section { padding: 0; margin-bottom: 2.2rem; }
.doc__section h2 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; margin-bottom: .6rem; color: var(--text); }
.doc__section p { color: var(--muted); margin: .4rem 0; font-size: .96rem; }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: 0 0 3rem; }
.contact-card {
  display: grid; gap: .3rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 1.2rem 1.3rem;
  transition: transform .18s ease, border-color .18s ease;
}
a.contact-card:hover { transform: translateY(-3px); border-color: var(--azure); }
.contact-card__label {
  font-family: var(--font-mono); font-size: .66rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.contact-card__value { color: var(--text); font-weight: 600; font-size: .96rem; }
.requisites { width: 100%; border-collapse: collapse; }
.requisites th {
  text-align: left; vertical-align: top; padding: .6rem 1.2rem .6rem 0;
  color: var(--muted); font-weight: 500; white-space: nowrap; width: 16rem;
  font-size: .92rem;
}
.requisites td { padding: .6rem 0; color: var(--text); font-size: .95rem; }
.requisites tr + tr th, .requisites tr + tr td { border-top: 1px solid var(--border); }

/* --- адаптив ------------------------------------------------------------------------------ */
@media (max-width: 1020px) {
  .hero__grid { grid-template-columns: 1fr; gap: 3rem; }
  .chat-card { margin: 0 auto; transform: rotate(0); }
  .chip--ws { left: 2%; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature:nth-child(1), .feature:nth-child(4) { grid-column: span 2; }
  .plans { grid-template-columns: 1fr 1fr; }
  .embed__grid { grid-template-columns: 1fr; gap: 2.2rem; }
}
@media (max-width: 860px) {
  .nav-burger { display: flex; order: 5; }
  .site-header__actions { order: 4; gap: .5rem; }
  .site-header__row { position: relative; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; z-index: 19;
    flex-direction: column; gap: 0; margin: 0; padding: .5rem 1.5rem 1rem;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md);
  }
  .nav.is-open { display: flex; }
  .nav a { padding: .65rem 0; font-size: 1rem; }
  .link-login, .site-header__actions .btn--primary { display: none; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.8rem; }
  .hero { padding: 3.6rem 0 3.4rem; }
  .hero__stats { gap: 1.6rem; flex-wrap: wrap; }
  section { padding: 3.6rem 0; }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature:nth-child(1), .feature:nth-child(4) { grid-column: auto; }
  .plans { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: 1fr; }
  .requisites th { width: auto; white-space: normal; }
  .site-footer__grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .chip--tg, .chip--ws { display: none; }
}

/* --- меньше движения --------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  .hero__badge, .hero__title, .hero__subtitle, .hero__cta, .hero__note,
  .hero__stats, .hero__demo { animation: none; opacity: 1; transform: none; }
  .cmsg, .crate { animation: none; opacity: 1; }
  .ctyping { display: none; }
  .chip--tg, .chip--ws { animation: none; }
  .chat-card__status::before, .hero__badge::before { animation: none; }
}

/* =================================================================
   FONTS — самохост (latin + cyrillic + cyrillic-ext: казахские Ә Ғ Қ Ң Ө Ұ Ү І Һ)
   ================================================================= */
/* CurPatch — символы валют ₽ (U+20BD) и ₸ (U+20B8) из Unbounded (единственный
   шрифт с обоими). Три веса под mono/body/display-контексты; ~900 байт каждый.
   font-display: swap НЕ ставим — символ короткий, FOIT незаметен, зато нет
   мелькания системным глифом до загрузки. */
@font-face {
  font-family: 'CurPatch';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/currency-400.woff2') format('woff2');
  unicode-range: U+20B8, U+20BD;
}
@font-face {
  font-family: 'CurPatch';
  font-style: normal;
  font-weight: 500 600;
  src: url('/fonts/currency-600.woff2') format('woff2');
  unicode-range: U+20B8, U+20BD;
}
@font-face {
  font-family: 'CurPatch';
  font-style: normal;
  font-weight: 700;
  src: url('/fonts/currency-700.woff2') format('woff2');
  unicode-range: U+20B8, U+20BD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrainsmono-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrainsmono-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/jetbrainsmono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/jetbrainsmono-600-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/jetbrainsmono-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/jetbrainsmono-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/onest-400-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/onest-400-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/onest-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/onest-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/onest-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/onest-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/onest-600-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/onest-600-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/onest-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/unbounded-500-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/unbounded-500-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/unbounded-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/unbounded-700-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/unbounded-700-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Unbounded';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/unbounded-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}