/* ============================================================
   Raskat AI — лендинг
   Тёмная база + светлые «полосы» (.band), которые
   переопределяют цветовые токены внутри себя.
   ============================================================ */

:root {
  --accent: #7b61ff;
  --accent-l: #a78bff;
  --accent-d: #4b32c7;
  --accent2: #f97a5b;
  --good: #37d67a;
  --good-ink: #8fe388;

  --ink: #141220;
  --surface: #1b1826;
  --surface2: #211d31;
  --cloud: #f4f2fb;
  --muted: #9a93b4;
  --border: #2a2740;

  --play: running;
  --gutter: clamp(16px, 4vw, 32px);
  /* У Space Grotesk нет кириллицы: латиница идёт ей, кириллица — Manrope.
     Убирать Manrope из стека нельзя, иначе русский текст уедет в системный шрифт. */
  --sans: "Space Grotesk", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* Светлая полоса: те же имена токенов, другие значения */
.band {
  --cloud: #1b1826;
  --muted: #6b6588;
  --surface: #ffffff;
  --surface2: #faf9fe;
  --ink: #f1eff8;
  --border: #e7e4f1;
  --good-ink: #17914e;
  background: #f6f4fb;
  color: var(--cloud);
  border-top: 1px solid #e7e4f1;
  border-bottom: 1px solid #e7e4f1;
}

.band--alt { background: #edebf5; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--cloud);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: color-mix(in oklab, var(--accent), white 22%); }

img, svg { max-width: 100%; }

::selection { background: color-mix(in oklab, var(--accent), transparent 55%); color: #fff; }

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

@keyframes rk-spin { to { transform: rotate(360deg); } }
@keyframes rk-marq { to { transform: translateX(-50%); } }
@keyframes rk-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .35; transform: scale(.82); }
}

@media (prefers-reduced-motion: reduce) {
  :root { --play: paused; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ------------------------------------------------ каркас */

.page {
  min-height: 100vh;
  overflow-x: clip; /* не hidden: hidden сломал бы sticky-шапку */
  background:
    radial-gradient(1000px 680px at 82% -8%, rgba(123, 97, 255, .16), transparent 58%),
    radial-gradient(760px 600px at 6% 4%, rgba(249, 122, 91, .11), transparent 56%),
    radial-gradient(820px 700px at 2% 40%, rgba(123, 97, 255, .07), transparent 60%),
    var(--ink);
}

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

.section { padding-block: clamp(56px, 8vw, 88px); }
.section--tight { padding-block: clamp(8px, 2vw, 12px) clamp(40px, 6vw, 48px); }

.mono { font-family: var(--mono); }

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .2em;
  color: var(--accent);
  text-transform: uppercase;
}
.band .eyebrow { color: var(--accent2); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: clamp(32px, 5vw, 46px);
  max-width: 720px;
}

.section-head h2 {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.04;
  color: var(--cloud);
  text-wrap: balance;
}

.section-lede {
  font-size: clamp(15px, 2.4vw, 16.5px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

/* ------------------------------------------------ кнопки */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 34px -12px var(--accent);
}
.btn--primary:hover { background: color-mix(in oklab, var(--accent), white 12%); color: #fff; }

.btn--ghost {
  background: transparent;
  color: var(--cloud);
  border: 1.5px solid var(--border);
  font-weight: 500;
}
.btn--ghost:hover { border-color: var(--accent); color: var(--cloud); }

.btn--sm { padding: 10px 17px; font-size: 14px; border-radius: 10px; }
.btn--sm.btn--ghost { padding: 9px 16px; background: color-mix(in oklab, var(--surface), transparent 30%); }
.btn--block { width: 100%; }

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}

/* ------------------------------------------------ чипы и бейджи */

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 9px;
  white-space: nowrap;
}
.chip--good {
  color: var(--good-ink);
  background: color-mix(in oklab, var(--good), transparent 86%);
  border-color: color-mix(in oklab, var(--good), transparent 58%);
}
.chip--accent {
  color: var(--accent);
  background: color-mix(in oklab, var(--accent), transparent 86%);
  border-color: color-mix(in oklab, var(--accent), transparent 55%);
}
.chip--live {
  color: var(--cloud);
  background: var(--ink);
  border-radius: 100px;
  padding: 5px 11px;
  letter-spacing: .06em;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--good);
  flex: 0 0 auto;
}
.dot--pulse {
  animation: rk-pulse 2.4s ease-in-out infinite;
  animation-play-state: var(--play);
}

.badge-soon {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  color: var(--muted);
  background: var(--ink);
  border: 1px dashed var(--border);
  border-radius: 100px;
  padding: 5px 11px;
  text-transform: uppercase;
}

.icon { overflow: visible; flex: 0 0 auto; }

.spin {
  animation: rk-spin 7s linear infinite;
  animation-play-state: var(--play);
  transform-box: fill-box;
  transform-origin: center;
}

/* Декоративные глифы: на узких экранах скрываем, чтобы не тянуть вьюпорт */
.glyph {
  position: absolute;
  color: var(--accent);
  pointer-events: none;
  animation: rk-spin 22s linear infinite;
  animation-play-state: var(--play);
  transform-box: fill-box;
  transform-origin: center;
}

/* ------------------------------------------------ шапка */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: color-mix(in oklab, var(--ink), transparent 22%);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}

.logo { display: flex; align-items: center; gap: 12px; }
.logo:hover { color: inherit; }
.logo-mark { width: 34px; height: 34px; color: var(--accent); }
.logo-text { display: flex; align-items: baseline; gap: 7px; }
.logo-name {
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -.02em;
  color: var(--cloud);
}
.logo-badge {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: .12em;
  color: var(--accent);
  border: 1px solid var(--accent);
  border-radius: 5px;
  padding: 2px 5px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2.2vw, 30px);
  font-size: 14.5px;
}
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--cloud); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

/* ------------------------------------------------ первый экран */

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(36px, 6vw, 56px);
  align-items: center;
  padding-block: clamp(44px, 7vw, 64px) clamp(32px, 5vw, 40px);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 3vw, 26px);
  min-width: 0;
}

.hero h1 {
  font-size: clamp(32px, 7.5vw, 58px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--cloud);
  text-wrap: balance;
}

.lede {
  font-size: clamp(16px, 2.6vw, 18px);
  line-height: 1.58;
  color: var(--muted);
  max-width: 540px;
  text-wrap: pretty;
}
.lede strong { color: var(--cloud); font-weight: inherit; }

.trail {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
  padding-top: 6px;
}
.trail b { color: var(--cloud); font-weight: 400; }
.trail i { color: var(--accent); font-style: normal; }

.hero-visual { position: relative; min-width: 0; }
.hero-visual .glyph {
  right: -40px;
  top: -46px;
  width: 180px;
  height: 180px;
  opacity: .1;
}

/* ------------------------------------------------ карточка конвейера */

.panel {
  position: relative;
  background: linear-gradient(160deg, var(--surface2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(16px, 3vw, 22px);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .8);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.panel-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.panel-id .icon { width: 30px; height: 30px; color: var(--accent); }
.panel-id-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.panel-id-text .k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}
.panel-id-text .v { font-family: var(--mono); font-size: 12px; color: var(--cloud); }

.pipe { display: flex; flex-direction: column; gap: 9px; }

.pipe-row {
  display: flex;
  align-items: center;
  gap: clamp(9px, 2vw, 13px);
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--ink);
  border: 1px solid var(--border);
}
.pipe-row .n { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.pipe-row .icon { width: 20px; height: 20px; color: var(--accent); }
.pipe-row .label { flex: 1; font-size: 14.5px; color: var(--cloud); min-width: 0; }

.pipe-row--active {
  background: color-mix(in oklab, var(--accent), transparent 90%);
  border-color: var(--accent);
}
.pipe-row--active .n { color: var(--accent); }
.pipe-row--active .chip {
  color: var(--accent);
  background: var(--ink);
  border-color: var(--accent);
}
.pipe-row--active .chip .dot { background: var(--accent); width: 6px; height: 6px; animation-duration: 1.6s; }

/* ------------------------------------------------ бегущая строка */

.marquee {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface), transparent 40%);
  overflow: hidden;
  margin-top: 26px;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: rk-marq 26s linear infinite;
  animation-play-state: var(--play);
}

.marquee-row {
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 14px 17px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .12em;
  color: var(--muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-row i { color: var(--accent); font-style: normal; }

/* ------------------------------------------------ конвейер (шаги) */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(206px, 100%), 1fr));
  gap: 14px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num {
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -.02em;
  line-height: 1;
}
.step .icon { width: 26px; height: 26px; color: var(--accent); }
.step h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--cloud);
  letter-spacing: -.01em;
}
.step p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.step--gate {
  background: linear-gradient(160deg, color-mix(in oklab, var(--accent2), transparent 88%), var(--surface));
  border-color: color-mix(in oklab, var(--accent2), transparent 50%);
}
.step--gate .step-num { color: var(--accent2); }

.gate-tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--accent2);
  border: 1px solid var(--accent2);
  border-radius: 6px;
  padding: 3px 7px;
}

/* ------------------------------------------------ модули */

.core {
  background: linear-gradient(150deg, var(--surface2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(22px, 4vw, 34px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(26px, 4vw, 38px);
  margin-bottom: 16px;
}

.core-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.core-title { display: flex; align-items: center; gap: 16px; }
.core-title h3 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  color: var(--cloud);
  letter-spacing: -.02em;
  line-height: 1.08;
}
.core-copy p {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 440px;
  text-wrap: pretty;
}

.icon-box {
  width: 58px;
  height: 58px;
  border-radius: 15px;
  background: color-mix(in oklab, var(--accent), transparent 86%);
  border: 1px solid color-mix(in oklab, var(--accent), transparent 55%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.icon-box .icon { width: 32px; height: 32px; color: var(--accent); }

.tenants {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  min-width: 0;
}

.tenant {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 15px;
  border-radius: 13px;
  background: var(--ink);
  border: 1px solid var(--border);
}
.tenant .icon { width: 22px; height: 22px; color: var(--accent); }
.tenant-text { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tenant-text .n { font-size: 14px; color: var(--cloud); }
.tenant-text .d { font-family: var(--mono); font-size: 10.5px; color: var(--muted); }

.modules {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 16px;
}

.module {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}
.module h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--cloud);
  letter-spacing: -.01em;
}
.module p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  flex: 1;
  text-wrap: pretty;
}

.module-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--accent), transparent 88%);
  border: 1px solid color-mix(in oklab, var(--accent), transparent 60%);
  display: flex;
  align-items: center;
  justify-content: center;
}
.module-icon .icon { width: 28px; height: 28px; color: var(--accent); }

.module-icon--warm {
  background: color-mix(in oklab, var(--accent2), transparent 88%);
  border-color: color-mix(in oklab, var(--accent2), transparent 60%);
}
.module-icon--warm .icon { color: var(--accent2); }

/* ------------------------------------------------ гейты */

.tiers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 16px;
  margin-bottom: 22px;
}

.tier {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}
.tier > * { position: relative; }
.tier h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--cloud);
  letter-spacing: -.015em;
}
.tier p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.tier-ghost {
  position: absolute;
  right: 18px;
  top: 6px;
  font-family: var(--mono);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  pointer-events: none;
  color: color-mix(in oklab, var(--cloud), transparent 94%);
}

.tier-label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.tier-label .bullet {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}

.tier--0 .tier-label { color: var(--good-ink); }
.tier--0 .tier-ghost { color: color-mix(in oklab, var(--good), transparent 92%); }
.tier--1 { border-color: color-mix(in oklab, var(--accent), transparent 62%); }
.tier--1 .tier-label { color: var(--accent); }
.tier--1 .tier-ghost { color: color-mix(in oklab, var(--accent), transparent 90%); }

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

.data {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}

.data-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}
.data-head .src {
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}

.data table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.data th {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 400;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data td {
  padding: 15px 24px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data tbody tr:last-child td { border-bottom: none; }
.data td.mono {
  font-family: var(--mono);
  font-size: 13.5px;
  color: var(--cloud);
  white-space: nowrap;
}
.data td.mono-muted {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.data td.num { font-size: 16px; font-weight: 700; color: var(--cloud); }
.data td.note { font-size: 13px; color: var(--muted); }

.t-policy table { min-width: 440px; }
.t-trust table { min-width: 640px; }

.rec-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  border-radius: 8px;
  padding: 6px 11px;
  white-space: nowrap;
}
.rec-chip--good {
  color: var(--good-ink);
  background: color-mix(in oklab, var(--good), transparent 86%);
  border: 1px solid color-mix(in oklab, var(--good), transparent 58%);
}
.rec-chip--accent {
  color: var(--accent);
  background: color-mix(in oklab, var(--accent), transparent 86%);
  border: 1px solid color-mix(in oklab, var(--accent), transparent 55%);
}

.tag {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  padding: 4px 9px;
  white-space: nowrap;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
}
.tag--0 {
  color: var(--good-ink);
  background: color-mix(in oklab, var(--good), transparent 84%);
  border-color: color-mix(in oklab, var(--good), transparent 58%);
}
.tag--1 {
  color: var(--accent);
  background: color-mix(in oklab, var(--accent), transparent 86%);
  border-color: color-mix(in oklab, var(--accent), transparent 55%);
}

/* ------------------------------------------------ автономность */

.autonomy {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: clamp(32px, 5vw, 44px);
  align-items: start;
}

.steps-list {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.step-item { display: flex; gap: 18px; align-items: flex-start; }
.step-bullet {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: color-mix(in oklab, var(--accent), transparent 86%);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.step-item-body { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.step-item .k {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}
.step-item h4 {
  font-size: 20px;
  font-weight: 700;
  color: var(--cloud);
  letter-spacing: -.01em;
}
.step-item p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}

.hint {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  background: color-mix(in oklab, var(--surface), transparent 30%);
  border: 1px solid var(--border);
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}
.hint .icon { width: 24px; height: 24px; color: var(--accent); }
.hint b { color: var(--cloud); font-weight: 500; }

/* --------------------------------------- демо апрув-бота */

.demo-card {
  position: relative;
  background: linear-gradient(160deg, var(--surface2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(16px, 3vw, 22px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  box-shadow: 0 40px 90px -50px #000;
  min-width: 0;
}

.bot-head { display: flex; align-items: center; gap: 12px; }
.bot-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(140deg, #8f79ff, #4b32c7);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.bot-avatar .icon { width: 22px; height: 22px; color: #fff; }
.bot-id { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bot-id .n { font-size: 14.5px; font-weight: 600; color: var(--cloud); }
.bot-id .d { font-family: var(--mono); font-size: 11px; color: var(--muted); }

.bot-msg {
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-top-left-radius: 4px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bot-msg .k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  color: var(--accent);
  text-transform: uppercase;
}
.bot-msg p { font-size: 14.5px; line-height: 1.5; color: var(--cloud); }
.bot-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.bot-meta i { color: var(--border); font-style: normal; }

.bot-actions { display: flex; gap: 10px; }
.bot-actions .btn { flex: 1; padding: 13px; font-size: 14.5px; border-radius: 11px; }
.bot-actions .btn--ghost { border-width: 1px; color: var(--muted); font-weight: 600; }
.bot-actions .btn--ghost:hover { color: var(--cloud); border-color: var(--muted); }

.rule { height: 1px; background: var(--border); }

.stats { display: flex; gap: 10px; }
.stat {
  flex: 1;
  background: var(--ink);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  min-width: 0;
}
.stat .v {
  font-size: 22px;
  font-weight: 700;
  color: var(--cloud);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat .k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .08em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: center;
}
.stat--muted .v { color: var(--muted); }

.progress { display: flex; flex-direction: column; gap: 7px; }
.progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}
.progress-top b { color: var(--cloud); font-weight: 400; }
.progress-bar {
  height: 8px;
  border-radius: 100px;
  background: var(--ink);
  border: 1px solid var(--border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-d), var(--accent));
  border-radius: 100px;
  transition: width .35s ease;
}

.rec {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 13px;
  background: var(--ink);
  border: 1px solid var(--border);
}
.rec-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: currentColor;
  flex: 0 0 auto;
}
.rec-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rec-label { font-size: 14.5px; font-weight: 600; }
.rec-sub { font-size: 12.5px; color: var(--muted); }

.rec--wait { color: var(--muted); }
.rec--tier1 { color: var(--accent); }
.rec--tier0 { color: var(--good-ink); }

.reset {
  align-self: center;
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 15px 18px;
}
.reset:hover { color: var(--accent); }

/* ------------------------------------------------ баннер «почему мы» */

.why {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-d) 72%, #241a52);
  border-radius: 22px;
  padding: clamp(28px, 5vw, 44px) clamp(24px, 4vw, 40px);
  margin-top: 24px;
}
.why .glyph {
  right: -30px;
  bottom: -40px;
  width: 230px;
  height: 230px;
  color: #fff;
  opacity: .08;
  animation-duration: 24s;
}
.why-body {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 820px;
}
.why .eyebrow { color: rgba(255, 255, 255, .78); letter-spacing: .18em; }
.why p {
  font-size: clamp(19px, 3.6vw, 30px);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.14;
  color: #fff;
  text-wrap: balance;
}

/* ------------------------------------------------ тарифы */

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 18px;
  align-items: stretch;
}

.plan {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: clamp(24px, 4vw, 32px);
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
}

.plan--featured {
  background: linear-gradient(165deg, var(--surface2), var(--surface));
  border: 1.5px solid var(--accent);
  box-shadow: 0 34px 90px -46px var(--accent);
}

.plan-badge {
  position: absolute;
  top: -12px;
  left: 32px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: #fff;
  background: var(--accent);
  border-radius: 100px;
  padding: 5px 13px;
  text-transform: uppercase;
}

.plan-top { display: flex; flex-direction: column; gap: 14px; }
.plan-name {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--muted);
  text-transform: uppercase;
}
.plan--featured .plan-name { color: var(--accent); }
.price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price .v {
  font-size: clamp(38px, 6vw, 44px);
  font-weight: 700;
  color: var(--cloud);
  letter-spacing: -.03em;
  line-height: 1;
}
.price .per { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.plan-note { font-size: 14px; color: var(--muted); }

.features { display: flex; flex-direction: column; gap: 13px; flex: 1; }
.features li { display: flex; gap: 11px; align-items: flex-start; }
.features .icon { width: 17px; height: 17px; color: var(--accent); margin-top: 2px; }
.features span { font-size: 14.5px; line-height: 1.45; color: var(--cloud); }

/* ------------------------------------------------ финальный призыв */

.final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding-block: clamp(72px, 11vw, 112px);
}
.final .glyph {
  left: 50%;
  top: 52%;
  width: min(540px, 130vw);
  height: min(540px, 130vw);
  transform: translate(-50%, -50%);
  opacity: .06;
  animation-duration: 30s;
}
.final-body {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(20px, 3vw, 26px);
}
.final h2 {
  font-size: clamp(30px, 7.5vw, 58px);
  font-weight: 700;
  letter-spacing: -.035em;
  line-height: 1;
  color: var(--cloud);
  max-width: 820px;
  text-wrap: balance;
}
.final .lede { max-width: 600px; }
.final .cta-row { justify-content: center; margin-top: 4px; }
.final .trail { justify-content: center; padding-top: 8px; }
.final .eyebrow { letter-spacing: .22em; }

/* ------------------------------------------------ подвал */

.footer {
  border-top: 1px solid var(--border);
  background: color-mix(in oklab, var(--surface), transparent 45%);
  padding-block: clamp(40px, 6vw, 56px) 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
  gap: clamp(28px, 4vw, 40px);
  padding-bottom: clamp(32px, 5vw, 44px);
}

.footer-about { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.footer-about p {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 260px;
  text-wrap: pretty;
}
.footer-about .mail { align-self: flex-start; font-family: var(--mono); font-size: 12px; color: var(--muted); padding-block: 6px; }
.footer-about .mail:hover { color: var(--accent); }

/* gap + padding вместо просто gap: ссылки получают тач-безопасную высоту */
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.footer-col .k {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--muted);
  text-transform: uppercase;
}
.footer-col a { color: var(--muted); font-size: 14px; padding-block: 7px; }
.footer-col a:hover { color: var(--cloud); }

/* Реквизиты продавца в подвале: без них оферта повисает в воздухе,
   а покупатель не понимает, с кем заключает договор. */
.footer-legal {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  padding-bottom: 4px;
  font-family: var(--mono);
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--muted);
}

.footer-legal .todo,
.footer .todo {
  background: #ffe58a;
  color: #402c00;
  padding: 0 5px;
  border-radius: 3px;
  font-weight: 600;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--muted);
}
.footer-status { display: inline-flex; align-items: center; gap: 8px; }

/* ------------------------------------------------ адаптив */

@media (max-width: 899px) {
  .nav-links { display: none; }
  /* Крупный заголовок и демо-карточка требуют полной ширины */
  .hero,
  .autonomy { grid-template-columns: 1fr; }
}

@media (max-width: 599px) {
  .nav-inner { padding-block: 10px; }
  .logo-mark { width: 30px; height: 30px; }
  .logo-name { font-size: 19px; }
  .btn { padding: 13px 20px; font-size: 15px; }
  .cta-row .btn { flex: 1 1 100%; }
  .tier { padding: 24px 22px; }
  .tier-ghost { font-size: 74px; right: 12px; }
  .module { padding: 22px; }
  .plan-badge { left: 24px; }
  .stat { padding: 12px 8px; }
  .stat .k { font-size: 9px; letter-spacing: .04em; }
  .data-head { flex-direction: column; align-items: flex-start; gap: 6px; padding: 16px 20px; }
  .data th, .data td { padding-inline: 20px; }
  .marquee-row { gap: 24px; font-size: 11px; }
}

@media (max-width: 479px) {
  .nav-actions .btn--ghost { display: none; }
}

/* На 320px логотип и CTA в шапке перестают помещаться в одну строку */
@media (max-width: 389px) {
  .nav-inner { gap: 10px; }
  .logo { gap: 9px; }
  .logo-mark { width: 28px; height: 28px; }
  .logo-name { font-size: 17px; }
  .nav-actions .btn--sm { padding: 10px 12px; font-size: 13px; }
}

@media (max-width: 999px) {
  .hero-visual .glyph { display: none; }
}

/* ------------------------------------------------ cookie-уведомление
   Живёт в стилях сайта, а не в стилях правовых страниц: баннер
   показывается на главной, а она legal.css не подключает. */
.cookie-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 80;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 13.5px;
  line-height: 1.5;
  background: #14161c;
  color: #e8e9ee;
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}

.cookie-bar p { margin: 0; flex: 1 1 320px; }
.cookie-bar a { color: #9aa6ff; text-decoration: underline; }

.cookie-bar .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.cookie-bar button {
  font: inherit;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .22);
  background: transparent;
  color: inherit;
}

.cookie-bar button.primary {
  background: #8f9bff;
  border-color: #8f9bff;
  color: #10121a;
  font-weight: 600;
}

@media (max-width: 620px) {
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; padding: 12px 14px; }
  .cookie-bar .actions { width: 100%; }
  .cookie-bar .actions button { flex: 1; }
}
