/* ============================================================
   Octavox — octavox.bg
   Един файл, без build. Цветовете идват от логото:
   тъмносиньо #101040 (надпис), индиго #4058a8 → циан #40a8e0 (знак).
   Шрифт: Onest (Google Fonts, кирилица + латиница).
   Светла и тъмна тема през prefers-color-scheme.
   ============================================================ */

/* ---------- 1. Токени ---------- */

:root {
  color-scheme: light;

  /* марка — константи и в двете теми */
  --navy: #101040;
  --navy-2: #1a1c5a;
  --indigo: #4058a8;
  --blue: #4080c0;
  --cyan: #40a8e0;
  --grad: linear-gradient(120deg, #4058a8 0%, #4080c0 50%, #40a8e0 100%);

  /* неутрални — slate с лек син нюанс */
  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --bg-3: #eaeef6;
  --line: #e2e7f0;
  --line-2: #c9d2e2;
  --text: #1e293b;
  --text-2: #475569;
  --text-3: #5f6b82;
  --heading: #101040;
  --link: #3a51a0;
  --focus: #4058a8;
  --tint: #edf1fb;      /* фон на етикети и икони */
  --tint-text: #34488f;

  /* бутони */
  --btn-bg: #101040;
  --btn-bg-hover: #1a1c5a;
  --btn-text: #ffffff;

  /* тъмни ленти (ИИ секция и футър) */
  --band: #101040;
  --band-2: #181b5c;
  --band-text: #eef1fb;
  --band-muted: #b7c0de;
  --band-line: rgba(255,255,255,.14);
  --band-glow: rgba(64,168,224,.32);

  /* статуси — само за декоративния панел */
  --ok: #137040;  --ok-bg: #e3f5ea;
  --warn: #a8540b; --warn-bg: #fdefdc;
  --busy: #34488f; --busy-bg: #e8edfa;

  /* форми */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(16,16,64,.05), 0 1px 3px rgba(16,16,64,.06);
  --shadow-lg: 0 32px 56px -24px rgba(16,16,64,.28), 0 2px 6px rgba(16,16,64,.06);
  --wrap: 1200px;
  --gutter: 24px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0f23;
    --bg-2: #10152f;
    --bg-3: #181e3f;
    --line: #242c52;
    --line-2: #34407a;
    --text: #e6eaf6;
    --text-2: #aab4d0;
    --text-3: #8b95b8;
    --heading: #f3f5fc;
    --link: #98b0f4;
    --focus: #5cc0f2;
    --tint: #171e44;
    --tint-text: #a9bcf6;
    --btn-bg: #4f69c8;
    --btn-bg-hover: #6079d6;
    --btn-text: #ffffff;
    --band: #070a1d;
    --band-2: #0f1338;
    --band-text: #eef1fb;
    --band-muted: #aab4d4;
    --band-line: rgba(255,255,255,.10);
    --band-glow: rgba(64,168,224,.26);
    --ok: #52d08c;  --ok-bg: rgba(82,208,140,.14);
    --warn: #f2ad5e; --warn-bg: rgba(242,173,94,.14);
    --busy: #a9bcf6; --busy-bg: rgba(169,188,246,.14);
    --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
    --shadow-lg: 0 32px 56px -24px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0f23;
  --bg-2: #10152f;
  --bg-3: #181e3f;
  --line: #242c52;
  --line-2: #34407a;
  --text: #e6eaf6;
  --text-2: #aab4d0;
  --text-3: #8b95b8;
  --heading: #f3f5fc;
  --link: #98b0f4;
  --focus: #5cc0f2;
  --tint: #171e44;
  --tint-text: #a9bcf6;
  --btn-bg: #4f69c8;
  --btn-bg-hover: #6079d6;
  --btn-text: #ffffff;
  --band: #070a1d;
  --band-2: #0f1338;
  --band-text: #eef1fb;
  --band-muted: #aab4d4;
  --band-line: rgba(255,255,255,.10);
  --band-glow: rgba(64,168,224,.26);
  --ok: #52d08c;  --ok-bg: rgba(82,208,140,.14);
  --warn: #f2ad5e; --warn-bg: rgba(242,173,94,.14);
  --busy: #a9bcf6; --busy-bg: rgba(169,188,246,.14);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-lg: 0 32px 56px -24px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.04);
}

/* ---------- 2. Основа ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  font-family: "Onest", "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--heading);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.125rem, 1.35rem + 3.1vw, 3.5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.375rem); font-weight: 700; line-height: 1.12; letter-spacing: -.02em; }
h3 { font-size: 1.125rem; }
p  { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: 600; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--navy); color: #fff; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 16px; }

/* ---------- 3. Компоненти ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 24px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); }
.btn-primary:hover { background: var(--btn-bg-hover); color: var(--btn-text); }
.btn-secondary { background: var(--bg); color: var(--heading); border-color: var(--line-2); }
.btn-secondary:hover { border-color: var(--indigo); color: var(--link); }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px; border-radius: 999px;
  background: var(--tint); color: var(--tint-text);
  font-size: .875rem; font-weight: 500; line-height: 1.3;
}
.tag::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--grad); flex: none;
}

.sec-head { max-width: 62ch; margin-bottom: 48px; }
.sec-head h2 { margin-bottom: 16px; }
.sec-head p { font-size: 1.0625rem; color: var(--text-2); }
.sec-head.centered { margin-left: auto; margin-right: auto; text-align: center; }

.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-alt + .section-alt { border-top: 0; }

.ico { width: 28px; height: 28px; color: var(--indigo); margin-bottom: 20px; }
.ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
:root[data-theme="dark"] .ico { color: var(--cyan); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ico { color: var(--cyan); } }

/* ---------- 4. Горна лента ---------- */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
@supports not (background: color-mix(in srgb, red, blue)) { .topbar { background: var(--bg); } }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 72px; }
.logo { display: inline-flex; align-items: center; border-radius: 4px; }
.logo img { height: 32px; width: auto; }
.logo-dark { display: none; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px;
  border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; text-decoration: none;
  white-space: nowrap; transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--heading); background: var(--bg-2); }
.nav .lang {
  margin-left: 4px; padding: 8px 12px; border: 1px solid var(--line-2);
  font-size: .875rem; font-weight: 600; letter-spacing: .02em; color: var(--text-2);
}
.nav .lang:hover { border-color: var(--indigo); color: var(--link); background: transparent; }
.nav .nav-cta {
  margin-left: 8px; padding: 8px 18px; background: var(--btn-bg); color: var(--btn-text); font-weight: 600;
}
.nav .nav-cta:hover { background: var(--btn-bg-hover); color: var(--btn-text); }

/* ---------- 5. Заглавен блок ---------- */

.hero {
  position: relative; overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(900px 520px at 88% 12%, color-mix(in srgb, var(--cyan) 16%, transparent), transparent 62%),
    radial-gradient(700px 480px at 4% 96%, color-mix(in srgb, var(--indigo) 10%, transparent), transparent 60%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px; align-items: center;
}
.hero-copy .tag { margin-bottom: 24px; }
.hero h1 { max-width: 17ch; margin-bottom: 24px; }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--text-2); max-width: 56ch; margin-bottom: 32px; }

.price-line {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 32px;
}
.price-line strong { font-size: 1.75rem; font-weight: 700; color: var(--heading); letter-spacing: -.02em; line-height: 1; }
.price-line span { color: var(--text-2); }
.wave { display: inline-flex; align-items: center; gap: 3px; height: 20px; align-self: center; margin-right: 4px; }
.wave i { display: block; width: 4px; height: 100%; border-radius: 2px; background: var(--grad); transform-origin: center; }
.wave i:nth-child(1) { height: 45%; }
.wave i:nth-child(2) { height: 100%; }
.wave i:nth-child(3) { height: 65%; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* декоративен панел — операторски изглед */
.hero-visual { display: flex; justify-content: center; }
.panel {
  width: 100%; max-width: 460px;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  font-size: .9375rem; line-height: 1.4;
  font-variant-numeric: tabular-nums;
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px; background: var(--bg-2); border-bottom: 1px solid var(--line);
  color: var(--text-2); font-size: .875rem; font-weight: 500;
}
.panel-head .live { display: inline-flex; align-items: center; gap: 8px; }
.panel-head .live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.panel-rows { list-style: none; }
.panel-rows li {
  display: grid; grid-template-columns: 40px 1fr auto 44px; align-items: center; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
}
.panel-rows li:last-child { border-bottom: 0; }
.panel .ext {
  display: inline-flex; align-items: center; justify-content: center; height: 28px;
  border-radius: 6px; background: var(--bg-3); color: var(--text-2); font-size: .8125rem; font-weight: 600;
}
.panel .name { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.panel .dur { color: var(--text-3); font-size: .8125rem; text-align: right; }
.state {
  display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px;
  border-radius: 999px; font-size: .8125rem; font-weight: 500; white-space: nowrap;
}
.state::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.state.busy { color: var(--busy); background: var(--busy-bg); }
.state.free { color: var(--ok); background: var(--ok-bg); }
.state.ring { color: var(--warn); background: var(--warn-bg); }
.state.ring::before { animation: blink 1.1s ease-in-out infinite; }
.state.talk { color: var(--tint-text); background: var(--tint); }
.state.talk::before { display: none; }
.panel-rows .ai-row { background: linear-gradient(90deg, color-mix(in srgb, var(--indigo) 8%, transparent), color-mix(in srgb, var(--cyan) 8%, transparent)); }
.panel .ext-ai { background: var(--grad); color: #fff; }
.bars { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.bars i { display: block; width: 3px; height: 100%; border-radius: 2px; background: currentColor; transform-origin: center; animation: talk 1s ease-in-out infinite; }
.bars i:nth-child(1) { height: 40%; animation-delay: -.2s; }
.bars i:nth-child(2) { height: 80%; animation-delay: -.5s; }
.bars i:nth-child(3) { height: 100%; animation-delay: -.1s; }
.bars i:nth-child(4) { height: 65%; animation-delay: -.7s; }
.bars i:nth-child(5) { height: 45%; animation-delay: -.35s; }
.panel-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; background: var(--bg-2); border-top: 1px solid var(--line);
  color: var(--text-2); font-size: .875rem;
}
.panel-foot b { color: var(--text); font-weight: 600; }

@keyframes talk  { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.35); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

/* ---------- 6. Три колони с икони ---------- */

.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px; }
.pillar { position: relative; padding-left: 24px; border-left: 1px solid var(--line-2); }
.pillar h3 { margin-bottom: 12px; }
.pillar p { color: var(--text-2); }

/* ---------- 7. Мрежа с функции ---------- */

.fgrid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
}
.fcell { background: var(--bg); padding: 32px 28px; }
.fcell h3 { margin-bottom: 14px; font-size: 1.0625rem; }
.fcell ul { list-style: none; display: grid; gap: 8px; color: var(--text-2); font-size: .9375rem; }
.fcell li { position: relative; padding-left: 18px; }
.fcell li::before {
  content: ""; position: absolute; left: 0; top: .66em; width: 8px; height: 2px; border-radius: 1px;
  background: var(--cyan);
}

/* ---------- 8. ИИ агент ---------- */

.ai {
  position: relative; overflow: hidden; padding: 96px 0;
  background:
    radial-gradient(1000px 560px at 92% 0%, var(--band-glow), transparent 64%),
    radial-gradient(700px 420px at 0% 100%, color-mix(in srgb, var(--indigo) 30%, transparent), transparent 60%),
    var(--band);
  color: var(--band-text);
}
.ai h2, .ai h3 { color: #fff; }
.ai .tag { background: rgba(255,255,255,.10); color: #fff; margin-bottom: 24px; }
.ai-head {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 64px; align-items: center; margin-bottom: 64px;
}
.ai-head h2 { margin-bottom: 16px; max-width: 18ch; }
.ai-head p { color: var(--band-muted); font-size: 1.0625rem; max-width: 56ch; }

.voice { display: flex; align-items: center; justify-content: center; gap: 5px; height: 120px; }
.voice i {
  display: block; width: 5px; height: calc(var(--h) * 100%); border-radius: 3px;
  background: var(--grad); transform-origin: center; animation: talk 1.7s ease-in-out infinite;
}
.voice i:nth-child(2n)  { animation-delay: -.35s; }
.voice i:nth-child(3n)  { animation-delay: -.7s; }
.voice i:nth-child(5n)  { animation-delay: -1.1s; }
.voice i:nth-child(7n)  { animation-delay: -1.45s; }

.flow { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; position: relative; }
.flow li { position: relative; padding-top: 28px; }
.flow li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--grad); box-shadow: 0 0 0 4px var(--band);
  z-index: 1;
}
.flow li::after {
  content: ""; position: absolute; top: 6px; left: 14px; right: -32px; height: 2px;
  background: var(--band-line);
}
.flow li:last-child::after { display: none; }
.flow h3 { margin-bottom: 10px; }
.flow p { color: var(--band-muted); font-size: .9375rem; }
.ai-note {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--band-line);
  color: var(--band-muted); font-size: .9375rem; max-width: 72ch;
}

/* ---------- 9. Цена ---------- */

.price-card {
  position: relative; max-width: 960px; margin: 0 auto;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.price-card::before { content: ""; display: block; height: 6px; background: var(--grad); }
.price-main { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.price-offer {
  padding: 48px 40px; background: var(--bg-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: center; gap: 8px;
}
.price-big { display: block; font-size: clamp(3rem, 2.5rem + 2vw, 4rem); font-weight: 700; color: var(--heading); letter-spacing: -.03em; line-height: 1; }
.price-unit { color: var(--text-2); font-size: 1.0625rem; margin-bottom: 24px; }
.price-offer .btn { align-self: flex-start; }
.price-includes { padding: 48px 40px; }
.price-includes h3 { margin-bottom: 20px; font-size: 1.0625rem; }
.checks { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; color: var(--text); font-size: .9375rem; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--tint);
}
.checks li::after {
  content: ""; position: absolute; left: 6px; top: 7px; width: 8px; height: 5px;
  border-left: 2px solid var(--indigo); border-bottom: 2px solid var(--indigo);
  transform: rotate(-45deg);
}
.fineprint {
  display: grid; gap: 16px; padding: 28px 40px; border-top: 1px solid var(--line);
  color: var(--text-2); font-size: .9375rem;
}
.fineprint strong { color: var(--text); }

/* ---------- 10. Как започва ---------- */

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps li { position: relative; padding-top: 64px; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 0; left: 0; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 1.125rem;
  box-shadow: 0 0 0 4px var(--bg-2);
  z-index: 1;
}
.steps li::after { content: ""; position: absolute; top: 22px; left: 44px; right: -40px; height: 1px; background: var(--line-2); }
.steps li:last-child::after { display: none; }
.steps h3 { margin-bottom: 10px; }
.steps p { color: var(--text-2); font-size: .9375rem; }
:root[data-theme="dark"] .steps li::before { background: var(--btn-bg); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .steps li::before { background: var(--btn-bg); } }

/* ---------- 11. Контакт ---------- */

.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; align-items: start; }
.contact-grid .sec-head { margin-bottom: 32px; }
.details {
  margin: 0; padding: 32px; display: grid; gap: 20px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.details dt { font-size: .875rem; font-weight: 500; color: var(--text-3); }
.details dd { margin: 4px 0 0; color: var(--text); }

/* ---------- 12. Долна лента ---------- */

.footer { background: var(--band); color: var(--band-muted); padding: 64px 0 32px; font-size: .9375rem; }
.footer-cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr); gap: 48px; margin-bottom: 48px; }
.footer-logo { height: 30px; width: auto; margin-bottom: 20px; }
.footer-about { max-width: 44ch; }
.footer-title { margin-bottom: 16px; color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: var(--band-muted); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  padding-top: 24px; border-top: 1px solid var(--band-line); font-size: .875rem;
}
.footer :focus-visible { outline-color: var(--cyan); }
.ai :focus-visible { outline-color: var(--cyan); }

/* ---------- 13. Тъмна тема — смяна на логото и ленти ---------- */

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark  { display: block; }
  :root:not([data-theme="light"]) .ai { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  :root:not([data-theme="light"]) .footer { border-top: 1px solid var(--line); }
  :root:not([data-theme="light"]) .price-offer { background: var(--bg-3); }
}
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark  { display: block; }
:root[data-theme="dark"] .ai { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .footer { border-top: 1px solid var(--line); }
:root[data-theme="dark"] .price-offer { background: var(--bg-3); }

/* ---------- 14. Отзивчивост ---------- */

@media (max-width: 1023px) {
  .section, .ai { padding: 72px 0; }
  .hero { padding: 64px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { justify-content: flex-start; }
  .panel { max-width: 560px; }
  .pillars { gap: 32px; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-head { grid-template-columns: 1fr; gap: 40px; margin-bottom: 48px; }
  .voice { height: 88px; justify-content: flex-start; }
  .flow { gap: 24px; }
  .flow li::after { right: -24px; }
  .price-main { grid-template-columns: 1fr; }
  .price-offer { border-right: 0; border-bottom: 1px solid var(--line); padding: 40px 32px; }
  .price-includes { padding: 40px 32px; }
  .fineprint { padding: 24px 32px; }
  .steps { gap: 32px; }
  .steps li::after { right: -32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
  .pillars { grid-template-columns: 1fr; gap: 28px; }
  .fgrid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 28px; padding-left: 30px; }
  .flow li { padding-top: 0; }
  .flow li::before { left: -30px; top: 6px; }
  .flow li::after { top: 20px; bottom: -34px; left: -24px; right: auto; width: 2px; height: auto; }
  .steps { grid-template-columns: 1fr; gap: 32px; padding-left: 64px; }
  .steps li { padding-top: 0; }
  .steps li::before { left: -64px; top: -2px; }
  .steps li::after { top: 46px; bottom: -32px; left: -42px; right: auto; width: 1px; height: auto; }
  .checks { grid-template-columns: 1fr; }
}

@media (max-width: 639px) {
  :root { --gutter: 16px; }
  .section, .ai { padding: 56px 0; }
  .hero { padding: 48px 0 56px; }
  .hero h1 { max-width: none; }
  .sec-head { margin-bottom: 32px; }
  .topbar-in { height: 64px; gap: 12px; }
  .logo img { height: 24px; }
  .nav a.hide-sm { display: none; }
  .nav .nav-cta { padding: 8px 14px; }
  .btn { width: 100%; }
  .actions { flex-direction: column; }
  .price-offer, .price-includes { padding: 32px 24px; }
  .fineprint { padding: 24px; }
  .price-offer .btn { align-self: stretch; }
  .fcell { padding: 24px 20px; }
  .details { padding: 24px; }
  .panel-rows li { padding: 12px 16px; gap: 10px; grid-template-columns: 36px 1fr auto 40px; }
  .panel-head, .panel-foot { padding: 12px 16px; }
  .footer-cols { grid-template-columns: 1fr; gap: 32px; }
  .footer .legal { flex-direction: column; gap: 8px; }
}

@media (max-width: 419px) {
  .nav a.hide-xs { display: none; }
}

/* ---------- 15. Намалено движение ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bars i, .voice i, .state.ring::before { animation: none; }
  .btn, .nav a { transition: none; }
}

/* ============================================================
   16. Правни страници (/privacy, /terms, /delete-account)
   Дълъг текст за четене: тясна колона, ясна йерархия,
   съдържание отстрани на голям екран.
   ============================================================ */

.doc { padding: 48px 0 96px; }

.doc-wrap {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

/* --- съдържание отстрани --- */

.doc-toc {
  position: sticky; top: 92px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  padding-right: 8px;
  font-size: .9375rem;
  border-right: 1px solid var(--line);
}
.doc-toc h2 {
  font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 16px;
}
.doc-toc ol { list-style: none; counter-reset: toc; }
.doc-toc li { margin-bottom: 4px; }
.doc-toc a {
  display: block; padding: 6px 12px 6px 0;
  color: var(--text-2); text-decoration: none; line-height: 1.35;
  border-left: 2px solid transparent; padding-left: 12px;
  transition: color .15s ease, border-color .15s ease;
}
.doc-toc a:hover { color: var(--link); border-left-color: var(--indigo); text-decoration: none; }

/* --- самият документ --- */

.doc-body { max-width: 70ch; font-size: 1.0625rem; line-height: 1.75; color: var(--text); }

.doc-body h1 {
  font-size: clamp(1.875rem, 1.4rem + 1.9vw, 2.5rem);
  margin-bottom: 24px; padding-bottom: 24px;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #4058a8, #40a8e0) 1;
  border-width: 0 0 3px 0;
}
.doc-body h2 {
  font-size: 1.5rem; margin: 64px 0 16px;
  scroll-margin-top: 96px;
}
.doc-body h2:first-of-type { margin-top: 48px; }
.doc-body h3 {
  font-size: 1.1875rem; margin: 32px 0 12px; color: var(--text);
  scroll-margin-top: 96px;
}
.doc-body h4 { font-size: 1.0625rem; margin: 24px 0 8px; }

.doc-body p { margin: 0 0 16px; }
.doc-body strong { color: var(--heading); font-weight: 600; }

.doc-body ul, .doc-body ol { margin: 0 0 16px; padding-left: 24px; }
.doc-body li { margin-bottom: 8px; }
.doc-body li > ul, .doc-body li > ol { margin: 8px 0 0; }
.doc-body ul { list-style: none; padding-left: 20px; }
.doc-body ul > li { position: relative; }
.doc-body ul > li::before {
  content: ""; position: absolute; left: -16px; top: .65em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--indigo);
}
.doc-body ol { list-style: decimal; }
.doc-body ol > li::marker { color: var(--text-3); font-weight: 600; }

.doc-body a { color: var(--link); }

.doc-body hr {
  border: 0; height: 1px; background: var(--line); margin: 48px 0;
}

.doc-body blockquote {
  margin: 24px 0; padding: 16px 24px;
  background: var(--bg-2); border-left: 3px solid var(--indigo);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.doc-body blockquote p { margin: 0; color: var(--text-2); }

.doc-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .875em; padding: 2px 6px; border-radius: 4px;
  background: var(--tint); color: var(--tint-text);
  overflow-wrap: anywhere;
}

/* --- таблици --- */

.tabwrap { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
.doc-body table {
  width: 100%; border-collapse: collapse; font-size: .9375rem;
  border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden;
}
.doc-body th {
  background: var(--bg-2); color: var(--heading); font-weight: 600;
  padding: 12px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top;
}
.doc-body td {
  padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top;
  color: var(--text-2);
}
.doc-body tbody tr:last-child td { border-bottom: 0; }
.doc-body tbody tr:nth-child(even) { background: color-mix(in srgb, var(--bg-2) 45%, transparent); }

/* --- нагоре --- */

.doc-top { margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--line); }
.doc-top a { color: var(--text-3); text-decoration: none; font-size: .9375rem; }
.doc-top a:hover { color: var(--link); }

/* --- по-малки екрани --- */

@media (max-width: 1024px) {
  .doc-wrap { grid-template-columns: 1fr; gap: 32px; }
  .doc-toc {
    position: static; max-height: none; border-right: 0;
    border: 1px solid var(--line); border-radius: var(--r-md);
    padding: 20px; background: var(--bg-2);
  }
  .doc-toc ol { columns: 2; column-gap: 24px; }
  .doc-toc li { break-inside: avoid; }
  .doc-body { max-width: none; }
}

@media (max-width: 640px) {
  .doc { padding: 32px 0 64px; }
  .doc-toc ol { columns: 1; }
  .doc-body { font-size: 1rem; line-height: 1.7; }
  .doc-body h2 { font-size: 1.3125rem; margin: 48px 0 12px; }
  .doc-body h3 { font-size: 1.0625rem; }
}

/* --- печат --- */

@media print {
  .topbar, .footer, .doc-toc, .doc-top, .skip { display: none !important; }
  .doc-wrap { grid-template-columns: 1fr; }
  .doc-body { max-width: none; font-size: 11pt; line-height: 1.5; color: #000; }
  .doc-body h2 { page-break-after: avoid; }
  .doc-body table, .doc-body blockquote, .doc-body li { page-break-inside: avoid; }
  .doc-body a::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
  .doc-body a[href^="#"]::after { content: ""; }
}
