/* Xenia — свой ИИ-агент и своё облако */

/* ---------- Fonts ---------- */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #080b14;
  --bg-soft: #0c1120;
  --bg-panel: #101728;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #eef1f8;
  --text-dim: #aab2c8;
  --text-faint: #7b849c;

  --gold: #f5b971;
  --gold-deep: #e08b45;
  --teal: #5fd3d8;
  --teal-deep: #2f9bb5;
  --navy: #2f4a94;
  --danger: #ef6a6a;
  --ok: #62d29a;

  --grad-gold: linear-gradient(135deg, #ffd39b 0%, #f5b971 45%, #e08b45 100%);
  --grad-teal: linear-gradient(135deg, #8ef0ec 0%, #5fd3d8 45%, #2f9bb5 100%);
  --grad-mix: linear-gradient(120deg, #f5b971 0%, #f0a3a3 40%, #5fd3d8 100%);

  --font-display: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.42);
  --shadow-glow: 0 20px 60px -18px rgba(245, 185, 113, 0.35);

  --wrap: 1180px;
  --nav-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }

::selection { background: rgba(245, 185, 113, 0.28); }

/* фоновое свечение страницы */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(760px 520px at 78% -6%, rgba(245, 185, 113, 0.16), transparent 62%),
    radial-gradient(680px 520px at 8% 12%, rgba(95, 211, 216, 0.12), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(47, 74, 148, 0.22), transparent 65%);
  pointer-events: none;
}
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.35;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 30%, transparent 78%);
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.15rem, 1.35rem + 3.4vw, 4rem); }
h2 { font-size: clamp(1.72rem, 1.15rem + 2.3vw, 2.9rem); }
h3 { font-size: clamp(1.16rem, 1.02rem + 0.6vw, 1.45rem); }
h4 { font-size: 1.03rem; letter-spacing: -0.01em; }
p { text-wrap: pretty; }

.grad-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-teal {
  background: var(--grad-teal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  font-size: clamp(1.02rem, 0.95rem + 0.4vw, 1.24rem);
  color: var(--text-dim);
  line-height: 1.7;
}
.muted { color: var(--text-dim); }
.faint { color: var(--text-faint); font-size: 0.92rem; }
.nowrap { white-space: nowrap; }

/* ---------- Layout ---------- */
.wrap {
  width: min(100% - 2.4rem, var(--wrap));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 2.4rem, 820px); margin-inline: auto; }

section { position: relative; }
.section { padding: clamp(3.5rem, 2rem + 6vw, 7rem) 0; }
.section-tight { padding: clamp(2.5rem, 1.5rem + 4vw, 4.5rem) 0; }

.section-head { max-width: 780px; margin-bottom: clamp(2rem, 1rem + 3vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: '';
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.section-head.center .eyebrow::before { display: none; }
.section-head h2 + p { margin-top: 1rem; }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  border: 0;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(8, 11, 20, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(8, 11, 20, 0.9);
}
.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.62rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--border-strong), 0 6px 18px rgba(0, 0, 0, 0.4);
}
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: -2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}
.nav-links a {
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  font-size: 0.94rem;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links a.active { color: var(--gold); }
/* специфичность: иначе .nav-links a перебивает цвет и отступы кнопки */
.nav-links a.btn { flex-shrink: 0; padding: 0.62rem 1.25rem; }
.nav-links a.btn-primary { color: #1a1206; background: var(--grad-gold); }
.nav-links a.btn-primary:hover { color: #1a1206; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  cursor: pointer;
  padding: 0;
  place-items: center;
}
.burger span {
  display: block;
  width: 17px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.2s;
}
.burger span + span { margin-top: 4px; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(5.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-5.5px) rotate(-45deg); }

@media (max-width: 940px) {
  .burger { display: grid; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 1rem 1.2rem 1.6rem;
    background: rgba(10, 14, 26, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { padding: 0.8rem 0.9rem; font-size: 1.02rem; }
  .nav-links .btn { margin-top: 0.6rem; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.78rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.25s, background 0.25s, border-color 0.25s, color 0.2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad-gold);
  color: #1a1206;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { box-shadow: 0 24px 70px -16px rgba(245, 185, 113, 0.55); transform: translateY(-2px); }
.btn-ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(245, 185, 113, 0.5); transform: translateY(-2px); }
.btn-lg { padding: 0.95rem 1.8rem; font-size: 1.04rem; }
.btn .icon { width: 18px; height: 18px; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  transition: gap 0.2s, color 0.2s;
}
.link-arrow:hover { gap: 0.7rem; }
.link-arrow .icon { width: 16px; height: 16px; }

/* ---------- Icons ---------- */
.icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-tile {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, rgba(245, 185, 113, 0.16), rgba(245, 185, 113, 0.04));
  border: 1px solid rgba(245, 185, 113, 0.22);
  color: var(--gold);
  flex-shrink: 0;
}
.icon-tile.teal {
  background: linear-gradient(150deg, rgba(95, 211, 216, 0.16), rgba(95, 211, 216, 0.04));
  border-color: rgba(95, 211, 216, 0.24);
  color: var(--teal);
}
.icon-tile.lg { width: 56px; height: 56px; border-radius: 17px; }
.icon-tile.lg .icon { width: 27px; height: 27px; }

/* ---------- Chips / badges ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.9rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.87rem;
  color: var(--text-dim);
}
.chip .icon { width: 15px; height: 15px; color: var(--gold); }
.chip.teal .icon { color: var(--teal); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem 0.4rem 0.5rem;
  border-radius: 999px;
  background: rgba(95, 211, 216, 0.1);
  border: 1px solid rgba(95, 211, 216, 0.25);
  font-size: 0.84rem;
  color: var(--teal);
  font-weight: 600;
}
.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(95, 211, 216, 0.16);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(95, 211, 216, 0.14); }
  50% { box-shadow: 0 0 0 7px rgba(95, 211, 216, 0.04); }
}

/* ---------- Hero ---------- */
.hero {
  padding: clamp(2.6rem, 1.5rem + 5vw, 5.5rem) 0 clamp(3rem, 2rem + 4vw, 5rem);
  /* Свечение под картинкой выходит за её края; на узком экране это давало
     горизонтальную прокрутку. clip, а не hidden: не создаёт скролл-контейнер. */
  overflow-x: clip;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.3rem; }
.hero h1 em { font-style: normal; }
.hero .lead { max-width: 40ch; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin: 2rem 0 1.6rem;
}
.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  color: var(--text-faint);
  font-size: 0.89rem;
}
.hero-proof span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-proof .icon { width: 15px; height: 15px; color: var(--ok); }

.hero-visual { position: relative; }
.hero-visual img {
  width: 100%;
  border-radius: var(--r-xl);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: -14%;
  background: radial-gradient(circle at 62% 40%, rgba(245, 185, 113, 0.28), transparent 66%);
  filter: blur(28px);
  z-index: -1;
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.95rem;
  border-radius: 14px;
  background: rgba(16, 23, 40, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  animation: float 6s ease-in-out infinite;
}
.float-card .icon { width: 17px; height: 17px; color: var(--gold); }
.float-card.teal .icon { color: var(--teal); }
.float-card.f1 { top: 8%; left: -6%; }
.float-card.f2 { bottom: 16%; right: -5%; animation-delay: -2s; }
.float-card.f3 { bottom: -3%; left: 8%; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 520px; margin-inline: auto; }
  .hero .lead { max-width: none; }
  .float-card.f1 { left: -2%; }
  .float-card.f2 { right: -2%; }
  .float-card.f3 { display: none; }
}
@media (max-width: 560px) {
  .float-card { font-size: 0.78rem; padding: 0.5rem 0.75rem; }
}

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: 1.1rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.card {
  position: relative;
  padding: 1.55rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.28s, border-color 0.28s, background 0.28s;
  overflow: hidden;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(245, 185, 113, 0.09), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--surface-2); }
.card:hover::after { opacity: 1; }
.card h3, .card h4 { margin: 0.95rem 0 0.5rem; }
.card p { color: var(--text-dim); font-size: 0.96rem; }
.card-link { display: block; }
.card-link:hover h3 { color: var(--gold); }

.card-lg { padding: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); border-radius: var(--r-xl); }

.panel {
  padding: clamp(1.6rem, 1.1rem + 1.8vw, 2.8rem);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
}

/* два столпа */
.pillars { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.4rem; align-items: stretch; }
.pillar {
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.3rem);
  border-radius: var(--r-xl);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(245, 185, 113, 0.08), rgba(255, 255, 255, 0.02) 60%);
  display: flex;
  flex-direction: column;
}
.pillar.teal { background: linear-gradient(165deg, rgba(95, 211, 216, 0.08), rgba(255, 255, 255, 0.02) 60%); }
.pillar h3 { margin: 1.1rem 0 0.6rem; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.65rem); }
.pillar ul { margin: 1.2rem 0 1.6rem; display: grid; gap: 0.62rem; }
.pillar .link-arrow { margin-top: auto; }
.pillar-link { color: var(--teal); }

.pillar-join {
  display: grid;
  place-items: center;
  gap: 0.5rem;
  padding: 1rem 0.4rem;
  text-align: center;
}
.pillar-join .ring {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(245, 185, 113, 0.45);
  color: var(--gold);
  background: rgba(245, 185, 113, 0.06);
}
.pillar-join span {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  font-weight: 700;
  writing-mode: vertical-rl;
}
@media (max-width: 900px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar-join { padding: 0.2rem; }
  .pillar-join span { writing-mode: horizontal-tb; }
}

/* маркированные списки */
.list-check { display: grid; gap: 0.72rem; }
.list-check li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--text-dim);
  font-size: 0.97rem;
}
.list-check .icon { width: 20px; height: 20px; color: var(--gold); margin-top: 2px; }
.list-check.teal .icon { color: var(--teal); }
.list-check strong { color: var(--text); font-weight: 600; }

/* ---------- Аудитории ---------- */
.aud-card { display: flex; flex-direction: column; }
.aud-card .aud-img {
  margin: -1.55rem -1.55rem 1.2rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-bottom: 1px solid var(--border);
  filter: saturate(1.02);
}
.aud-card ul { margin: 0.9rem 0 1.4rem; }
.aud-card .link-arrow { margin-top: auto; }

/* ---------- Возможности ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 1rem; }
.cap {
  padding: 1.3rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.cap:hover { transform: translateY(-3px); border-color: rgba(245, 185, 113, 0.35); background: var(--surface-2); }
.cap .icon-tile { width: 40px; height: 40px; border-radius: 12px; margin-bottom: 0.85rem; }
.cap .icon-tile .icon { width: 20px; height: 20px; }
.cap h4 { margin-bottom: 0.3rem; }
.cap p { font-size: 0.9rem; color: var(--text-dim); line-height: 1.55; }

/* ---------- Сценарии / диалог ---------- */
.dialog { display: grid; gap: 0.8rem; }
.bubble {
  max-width: 82%;
  padding: 0.75rem 1.1rem;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.55;
  border: 1px solid var(--border);
}
.bubble.you {
  justify-self: end;
  background: rgba(245, 185, 113, 0.12);
  border-color: rgba(245, 185, 113, 0.25);
  border-bottom-right-radius: 6px;
}
.bubble.bot {
  justify-self: start;
  background: rgba(255, 255, 255, 0.05);
  border-bottom-left-radius: 6px;
  color: var(--text-dim);
}
.bubble .who {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.25rem;
  font-weight: 700;
}

/* ---------- Таблица сравнения ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
table.cmp {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  background: var(--surface);
}
table.cmp th, table.cmp td {
  padding: 0.95rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  font-size: 0.95rem;
}
table.cmp thead th {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.04);
  position: sticky;
  top: 0;
}
table.cmp thead th:last-child { color: var(--gold); }
table.cmp tbody tr:last-child td { border-bottom: 0; }
table.cmp tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
table.cmp td:first-child { color: var(--text); font-weight: 600; width: 26%; }
table.cmp td:nth-child(2) { color: var(--text-faint); }
table.cmp td:last-child { color: var(--text-dim); }
table.cmp .yes { color: var(--ok); font-weight: 600; }
table.cmp .no { color: var(--danger); }
table.cmp .partial { color: var(--gold); }

.cmp-cards { display: none; }
@media (max-width: 720px) {
  .table-wrap { display: none; }
  .cmp-cards { display: grid; gap: 0.9rem; }
  .cmp-card {
    padding: 1.15rem;
    border-radius: var(--r-md);
    background: var(--surface);
    border: 1px solid var(--border);
  }
  .cmp-card h4 { margin-bottom: 0.75rem; }
  .cmp-row { display: grid; gap: 0.2rem; padding: 0.6rem 0; border-top: 1px dashed var(--border); }
  .cmp-row .k { font-size: 0.74rem; letter-spacing: 0.09em; text-transform: uppercase; color: var(--text-faint); font-weight: 700; }
  .cmp-row.a .v { color: var(--text-faint); }
  .cmp-row.b .v { color: var(--text); }
}

/* ---------- Развёрнутое сравнение ---------- */
.cmpx {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.cmpx-head,
.cmpx-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1.05fr;
  gap: 1.2rem;
  padding: 1rem 1.3rem;
  align-items: start;
}
.cmpx-head {
  background: rgba(255, 255, 255, 0.05);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  position: sticky;
  top: var(--nav-h);
  z-index: 5;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cmpx-head .b { color: var(--gold); }
.cmpx-group {
  padding: 0.8rem 1.3rem;
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
}
.cmpx-row { border-top: 1px solid var(--border); font-size: 0.94rem; }
.cmpx-row:hover { background: rgba(255, 255, 255, 0.02); }
.cmpx-row .k { font-weight: 600; color: var(--text); }
.cmpx-row .a { color: var(--text-faint); }
.cmpx-row .b { color: var(--text-dim); }
.cmpx-row .b strong { color: var(--text); font-weight: 600; }
.cmpx-mark {
  display: inline-block;
  margin-right: 0.35rem;
  font-weight: 700;
}
.cmpx-mark.yes { color: var(--ok); }
.cmpx-mark.no { color: var(--danger); }
.cmpx-mark.part { color: var(--gold); }

@media (max-width: 780px) {
  .cmpx-head { display: none; }
  .cmpx-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 1.15rem 1.15rem 1.25rem;
  }
  .cmpx-row .k {
    font-family: var(--font-display);
    font-size: 1rem;
  }
  .cmpx-row .a,
  .cmpx-row .b {
    padding-left: 0.9rem;
    border-left: 2px solid var(--border);
  }
  .cmpx-row .b { border-left-color: rgba(245, 185, 113, 0.5); }
  .cmpx-row .a::before,
  .cmpx-row .b::before {
    display: block;
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
  }
  .cmpx-row .a::before { content: 'Умная колонка'; color: #5d6579; }
  .cmpx-row .b::before { content: 'Свой агент'; color: var(--gold); }
}

/* ---------- Шаги ---------- */
.steps { display: grid; gap: 1.1rem; grid-template-columns: repeat(4, 1fr); counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  padding: 1.5rem 1.35rem 1.35rem;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--border);
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: var(--grad-gold);
  color: #1a1206;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.98rem;
  margin-bottom: 0.9rem;
}
.step h4 { margin-bottom: 0.4rem; }
.step p { font-size: 0.92rem; color: var(--text-dim); }

/* ---------- Цитата ---------- */
.quote {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.4rem;
  align-items: center;
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem);
  border-radius: var(--r-xl);
  background: linear-gradient(140deg, rgba(245, 185, 113, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(245, 185, 113, 0.2);
}
.quote img {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(245, 185, 113, 0.35);
}
.quote blockquote { font-size: clamp(1.02rem, 0.95rem + 0.5vw, 1.22rem); line-height: 1.6; font-family: var(--font-display); font-weight: 500; }
.quote cite { display: block; margin-top: 0.7rem; font-style: normal; color: var(--text-faint); font-size: 0.88rem; }
@media (max-width: 560px) { .quote { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ---------- Метрики ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 800px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  padding: 1.35rem;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.15rem);
  font-weight: 800;
  line-height: 1.1;
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 0.86rem; color: var(--text-dim); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0.7rem; }
.faq details {
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.faq details[open] { border-color: rgba(245, 185, 113, 0.28); background: var(--surface-2); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.05rem 1.3rem;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  width: 10px;
  height: 10px;
  margin-left: auto;
  border-right: 1.8px solid var(--gold);
  border-bottom: 1.8px solid var(--gold);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq .faq-body { padding: 0 1.3rem 1.2rem; color: var(--text-dim); font-size: 0.96rem; }
.faq .faq-body p + p { margin-top: 0.7rem; }

/* ---------- Форма ---------- */
.form-section { position: relative; }
.form-card {
  padding: clamp(1.5rem, 1rem + 2vw, 2.8rem);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 0.42rem; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.field label .req { color: var(--gold); }
.field .hint { font-size: 0.79rem; color: var(--text-faint); }
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 13px;
  background: rgba(8, 11, 20, 0.55);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.98rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.field textarea { min-height: 112px; resize: vertical; line-height: 1.55; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23aab2c8' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 17px;
  padding-right: 2.6rem;
  cursor: pointer;
}
.field select option { background: #101728; color: var(--text); }
.field input::placeholder, .field textarea::placeholder { color: #5d6579; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: rgba(245, 185, 113, 0.6);
  box-shadow: 0 0 0 3px rgba(245, 185, 113, 0.14);
  background: rgba(8, 11, 20, 0.8);
}
.field input:invalid:not(:placeholder-shown) { border-color: rgba(239, 106, 106, 0.5); }

.opts { display: flex; flex-wrap: wrap; gap: 0.5rem; }
/* Чекбокс скрыт, но остаётся в фокусной цепочке. Размер задаём явно:
   иначе сработает `.field input { width: 100% }` и абсолютный элемент
   растянется от своего места в строке за край экрана. */
.opt input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.opt span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(8, 11, 20, 0.4);
  font-size: 0.9rem;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
  user-select: none;
}
.opt span:hover { border-color: var(--border-strong); color: var(--text); }
.opt input:checked + span {
  border-color: rgba(245, 185, 113, 0.6);
  background: rgba(245, 185, 113, 0.14);
  color: var(--gold);
}
.opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(245, 185, 113, 0.2); }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.7rem;
  align-items: start;
  font-size: 0.85rem;
  color: var(--text-faint);
  line-height: 1.5;
}
.consent input {
  width: 19px;
  height: 19px;
  margin-top: 2px;
  accent-color: #f5b971;
  cursor: pointer;
}
.consent a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 3px; }

.hp { position: absolute !important; left: -9999px !important; width: 1px; opacity: 0; height: 0; overflow: hidden; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; margin-top: 0.4rem; }
.form-note { font-size: 0.84rem; color: var(--text-faint); }

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: 13px;
  font-size: 0.93rem;
  border: 1px solid transparent;
}
.form-status.show { display: block; }
.form-status.err { background: rgba(239, 106, 106, 0.1); border-color: rgba(239, 106, 106, 0.35); color: #ffb4b4; }
.form-status.ok { background: rgba(98, 210, 154, 0.1); border-color: rgba(98, 210, 154, 0.35); color: #a5e9c8; }

.form-done { display: none; text-align: center; padding: 1.5rem 0.5rem; }
.form-done.show { display: block; }
.form-done .icon-tile { margin: 0 auto 1.2rem; color: var(--ok); background: rgba(98, 210, 154, 0.12); border-color: rgba(98, 210, 154, 0.3); }
.form-done h3 { margin-bottom: 0.6rem; }
.form-done p { color: var(--text-dim); max-width: 46ch; margin-inline: auto; }

.btn[disabled] { opacity: 0.6; cursor: progress; }
.spinner {
  width: 17px;
  height: 17px;
  border: 2px solid rgba(26, 18, 6, 0.3);
  border-top-color: #1a1206;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- CTA-полоса ---------- */
.cta-band {
  padding: clamp(2rem, 1.4rem + 2.4vw, 3.4rem);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 240px at 80% 0%, rgba(245, 185, 113, 0.2), transparent 65%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border-strong);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.6rem;
  align-items: center;
}
@media (max-width: 780px) { .cta-band { grid-template-columns: 1fr; } }
.cta-band h2 { margin-bottom: 0.6rem; }
.cta-band p { color: var(--text-dim); max-width: 52ch; }

/* ---------- Изображение с подписью ---------- */
.figure {
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.figure figcaption { padding: 0.85rem 1.2rem; font-size: 0.86rem; color: var(--text-faint); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.6rem, 1rem + 3vw, 3.4rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse .split-media { order: 0; }
}

/* ---------- Хлебные крошки / шапка страницы ---------- */
.page-head { padding: clamp(2.2rem, 1.4rem + 3vw, 4rem) 0 clamp(1.5rem, 1rem + 2vw, 2.6rem); }
.crumbs { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--text-faint); margin-bottom: 1.1rem; }
.crumbs a:hover { color: var(--gold); }
.crumbs .icon { width: 13px; height: 13px; }
.page-head h1 { margin-bottom: 1.1rem; }
.page-head .lead { max-width: 62ch; }

/* ---------- Футер ---------- */
.footer {
  margin-top: clamp(3rem, 2rem + 3vw, 5rem);
  border-top: 1px solid var(--border);
  padding: clamp(2.2rem, 1.6rem + 2vw, 3.4rem) 0 2rem;
  background: rgba(8, 11, 20, 0.6);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
.footer h5 {
  font-family: var(--font-display);
  font-size: 0.79rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.9rem;
  font-weight: 700;
}
.footer ul { display: grid; gap: 0.55rem; }
.footer a { color: var(--text-dim); font-size: 0.94rem; }
.footer a:hover { color: var(--gold); }
.footer-brand p { color: var(--text-faint); font-size: 0.92rem; max-width: 38ch; margin-top: 0.9rem; }
.footer-bottom {
  margin-top: 2.4rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  justify-content: space-between;
  font-size: 0.84rem;
  color: var(--text-faint);
}

/* ---------- Появление при скролле ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Утилиты ---------- */
.mt-1 { margin-top: 0.6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }
.center { text-align: center; }
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
