/* ============================================================
   AI.DEVLABS - Лендинг ботов для MAX
   Дизайн-система: строгий корпоратив, сине-голубая гамма MAX
   ============================================================ */

/* Шрифт Onest - open-source аналог фирменного Max Sans (для аутентичности с max.ru) */
@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* --- Brand blue (MAX-style) --- */
  --blue-700: #0540C9;
  --blue-600: #0A5BFF;
  --blue-500: #1C7BFF;
  --blue-400: #4F9BFF;
  --cyan-500: #18C2FF;
  --cyan-400: #5AD6FF;
  --grad-brand: linear-gradient(135deg, #0A5BFF 0%, #18C2FF 100%);
  --grad-brand-soft: linear-gradient(135deg, #0A5BFF 0%, #2E9BFF 60%, #18C2FF 100%);
  --grad-deep: linear-gradient(160deg, #061A3F 0%, #0B3A8F 45%, #0A5BFF 100%);

  /* --- Neutrals (cool) --- */
  --ink-900: #0A1530;
  --ink-700: #20304F;
  --ink-500: #50607E;
  --ink-400: #7C8AA3;
  --ink-300: #AEB9CC;
  --line: #E4EAF3;
  --line-strong: #D2DBE9;
  --surface: #FFFFFF;
  --surface-2: #F4F7FC;
  --surface-3: #EAF1FB;

  /* --- Accents --- */
  --ok: #18A66B;
  --warn: #E6A100;

  /* --- Geometry --- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(13, 40, 90, 0.06);
  --shadow-md: 0 12px 32px rgba(13, 40, 90, 0.10);
  --shadow-lg: 0 30px 70px rgba(11, 46, 120, 0.18);
  --shadow-blue: 0 18px 44px rgba(10, 91, 255, 0.32);

  --maxw: 1200px;
  --gut: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Onest', system-ui, sans-serif;
  color: var(--ink-900);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

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

.mono {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* --- Section scaffolding --- */
section { position: relative; }
.section-pad { padding: 110px 0; }
@media (max-width: 768px) { .section-pad { padding: 72px 0; } }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

.h-section {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--ink-900);
}
.sub-section {
  margin-top: 18px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--ink-500);
  max-width: 620px;
  text-wrap: pretty;
}
.section-head { margin-bottom: 56px; }
.section-head.center { text-align: center; }
.section-head.center .sub-section { margin-left: auto; margin-right: auto; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 600;
  font-size: 16px;
  border: none;
  border-radius: var(--r-md);
  padding: 15px 26px;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--grad-brand);
  color: #fff;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 50px rgba(10, 91, 255, 0.42); }
.btn-ghost {
  background: var(--surface);
  color: var(--ink-900);
  border: 1.5px solid var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover { border-color: var(--blue-400); color: var(--blue-600); transform: translateY(-2px); }
.btn-white {
  background: #fff;
  color: var(--blue-700);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(0,0,0,.18); }
.btn-lg { padding: 18px 32px; font-size: 17px; }
.btn-arrow svg { transition: transform .18s ease; }
.btn-arrow:hover svg { transform: translateX(3px); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 4px 24px rgba(13,40,90,.05);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 38px; height: 38px;
  border-radius: 11px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 19px;
  box-shadow: var(--shadow-blue);
  flex-shrink: 0;
}
.brand b { color: var(--blue-600); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  list-style: none;
}
.nav-links a {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-700);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--blue-600); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
/* Кнопка в правом верхнем углу - по высоте равна логотипу (.brand-mark 38px) */
.nav-cta-btn {
  padding: 9px 18px;
  font-size: 14px;
  border-radius: var(--r-sm);
  box-shadow: 0 6px 16px rgba(10, 91, 255, 0.25);
}
.nav-cta-btn:hover { box-shadow: 0 10px 22px rgba(10, 91, 255, 0.32); }
.nav-toggle { display: none; }
@media (max-width: 940px) {
  .nav-links { display: none; }
  .nav-cta .btn-ghost { display: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  background: var(--grad-deep);
  color: #fff;
  overflow: hidden;
  padding: 70px 0 90px;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(24,194,255,.40), transparent 60%),
    radial-gradient(700px 500px at 10% 110%, rgba(10,91,255,.40), transparent 60%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 15px 8px 9px;
  border-radius: 100px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  font-size: 13.5px;
  font-weight: 500;
  color: #DCE9FF;
  margin-bottom: 26px;
}
.hero-badge .dot {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  font-size: 12px; font-weight: 900; color: #fff;
}
.hero h1 {
  font-size: clamp(38px, 5.4vw, 62px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(120deg, #7FE0FF, #BFE6FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead {
  margin-top: 24px;
  font-size: clamp(17px, 1.7vw, 20px);
  color: #C5D6F2;
  max-width: 540px;
  text-wrap: pretty;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 48px;
  display: flex;
  gap: 38px;
  flex-wrap: wrap;
}
.hero-stat .num {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-stat .lbl {
  font-size: 13.5px;
  color: #9FB6DC;
  margin-top: 2px;
}
.hero-stat .num .accent { color: #7FE0FF; }

/* Hero phone */
.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}
.hero-visual::before {
  content: "";
  position: absolute;
  width: 380px; height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(24,194,255,.35), transparent 70%);
  filter: blur(20px);
  z-index: 0;
}

/* ============================================================
   PHONE MOCKUP (MAX-style chat)
   ============================================================ */
.phone {
  position: relative;
  z-index: 2;
  width: 332px;
  background: #0B1020;
  border-radius: 44px;
  padding: 13px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06) inset;
}
.phone-screen {
  position: relative;
  background: #EEF3FA;
  border-radius: 33px;
  overflow: hidden;
  height: 660px;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 130px; height: 26px;
  background: #0B1020;
  border-radius: 0 0 16px 16px;
  z-index: 12;
}
.chat-top {
  background: var(--grad-brand);
  color: #fff;
  padding: 34px 16px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.chat-ava {
  width: 42px; height: 42px;
  border-radius: 13px;
  background: rgba(255,255,255,.20);
  display: grid; place-items: center;
  font-size: 20px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.25);
}
.chat-top .who { font-weight: 700; font-size: 15.5px; line-height: 1.2; }
.chat-top .stat { font-size: 12px; color: #D6E8FF; display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.chat-top .stat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #5CF0A8; box-shadow: 0 0 0 3px rgba(92,240,168,.25); }
.chat-top .top-ic { margin-left: auto; display: flex; gap: 4px; opacity: .85; }

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  background:
    radial-gradient(circle at 20% 10%, rgba(24,194,255,.05), transparent 40%),
    #EEF3FA;
  scroll-behavior: smooth;
}
.chat-body::-webkit-scrollbar { width: 0; }
.chat-day {
  align-self: center;
  font-size: 11.5px;
  color: var(--ink-400);
  background: rgba(255,255,255,.7);
  padding: 3px 12px;
  border-radius: 100px;
  margin: 2px 0 6px;
}
.msg {
  max-width: 80%;
  padding: 10px 13px;
  font-size: 14px;
  line-height: 1.42;
  border-radius: 17px;
  position: relative;
  word-wrap: break-word;
}
.msg.anim { animation: msgIn .32s cubic-bezier(.2,.8,.25,1) both; }
@media (prefers-reduced-motion: reduce) { .msg.anim { animation: none; } }
@keyframes msgIn {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.msg.bot {
  align-self: flex-start;
  background: #fff;
  color: var(--ink-900);
  border-bottom-left-radius: 5px;
  box-shadow: 0 1px 2px rgba(13,40,90,.08);
}
.msg.user {
  align-self: flex-end;
  background: var(--grad-brand);
  color: #fff;
  border-bottom-right-radius: 5px;
  box-shadow: 0 3px 10px rgba(10,91,255,.30);
}
.msg .time {
  font-size: 10px;
  opacity: .6;
  margin-top: 3px;
  text-align: right;
}
.msg.bot .time { color: var(--ink-400); }
.msg strong { font-weight: 700; }
.msg .card-line { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; border-bottom: 1px dashed var(--line); font-size: 13px; }
.msg .card-line:last-child { border-bottom: none; }
.msg .card-line span:first-child { color: var(--ink-400); }
.msg .card-line span:last-child { font-weight: 600; }

/* typing indicator */
.typing {
  align-self: flex-start;
  background: #fff;
  border-radius: 17px;
  border-bottom-left-radius: 5px;
  padding: 13px 15px;
  display: flex;
  gap: 4px;
  box-shadow: 0 1px 2px rgba(13,40,90,.08);
}
.typing span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--ink-300);
  animation: typing 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: .18s; }
.typing span:nth-child(3) { animation-delay: .36s; }
@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* quick replies */
.chat-replies {
  flex-shrink: 0;
  padding: 10px 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  background: #EEF3FA;
  border-top: 1px solid rgba(13,40,90,.05);
  min-height: 56px;
  align-content: flex-start;
  max-height: 150px;
  overflow-y: auto;
}
.chat-replies::-webkit-scrollbar { width: 0; }
.reply-chip {
  background: #fff;
  border: 1.5px solid var(--blue-400);
  color: var(--blue-600);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 100px;
  transition: all .15s ease;
}
.reply-chip.anim { animation: chipIn .3s ease both; }
@media (prefers-reduced-motion: reduce) { .reply-chip.anim { animation: none; } }
@keyframes chipIn { from { opacity:0; transform: scale(.9);} to {opacity:1; transform:none;} }
.reply-chip:hover { background: var(--grad-brand); color: #fff; border-color: transparent; transform: translateY(-1px); }
.reply-chip.restart { border-color: var(--line-strong); color: var(--ink-500); }
.reply-chip.restart:hover { background: var(--ink-700); border-color: transparent; }

.chat-inputbar {
  flex-shrink: 0;
  padding: 10px 12px 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: #EEF3FA;
}
.chat-inputbar .fake-input {
  flex: 1;
  background: #fff;
  border-radius: 100px;
  padding: 11px 16px;
  font-size: 13.5px;
  color: var(--ink-400);
  border: 1px solid var(--line);
}
.chat-inputbar .send-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--grad-brand);
  display: grid; place-items: center;
  flex-shrink: 0;
}

/* ============================================================
   LOGOS / TRUST STRIP
   ============================================================ */
.trust {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 30px 0;
}
.trust-inner { display: flex; align-items: center; gap: 40px; flex-wrap: wrap; justify-content: center; }
.trust-label { font-size: 13px; color: var(--ink-400); font-weight: 500; }
.trust-logos { display: flex; gap: 38px; flex-wrap: wrap; align-items: center; }
.trust-logo {
  font-weight: 700;
  font-size: 17px;
  color: var(--ink-300);
  letter-spacing: -0.01em;
  transition: color .2s ease;
  display: flex; align-items: center; gap: 8px;
}
.trust-logo:hover { color: var(--ink-500); }
.trust-logo .lg-ic { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-3); display: grid; place-items: center; font-size: 12px; }

/* ============================================================
   BENEFITS
   ============================================================ */
.bg-soft { background: var(--surface-2); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.bcard {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.bcard .b-ic {
  width: 54px; height: 54px;
  border-radius: 15px;
  background: var(--surface-3);
  display: grid; place-items: center;
  margin-bottom: 22px;
  color: var(--blue-600);
}
.bcard h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.01em; }
.bcard p { margin-top: 10px; color: var(--ink-500); font-size: 15.5px; line-height: 1.55; }

/* ============================================================
   SCENARIOS + DEMO
   ============================================================ */
.demo-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 48px;
  align-items: start;
}
.scenario-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.scn {
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all .18s ease;
  position: relative;
}
.scn:hover { border-color: var(--blue-400); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.scn.active {
  border-color: transparent;
  background: var(--grad-brand);
  box-shadow: var(--shadow-blue);
}
.scn.active .scn-ic { background: rgba(255,255,255,.18); color: #fff; }
.scn.active h4, .scn.active p { color: #fff; }
.scn.active p { opacity: .85; }
.scn-ic {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--surface-3);
  color: var(--blue-600);
  display: grid; place-items: center;
  flex-shrink: 0;
  transition: all .18s ease;
}
.scn h4 { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.scn p { font-size: 13.5px; color: var(--ink-500); margin-top: 4px; line-height: 1.4; }
.scn .play {
  position: absolute;
  top: 18px; right: 18px;
  font-size: 11px;
  font-weight: 600;
  color: var(--blue-500);
  opacity: 0;
  transition: opacity .18s ease;
}
.scn:hover .play { opacity: 1; }
.scn.active .play { opacity: 1; color: #fff; }

.demo-aside { position: sticky; top: 100px; }
.demo-hint {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--ink-400);
}
.demo-hint b { color: var(--blue-600); }

/* ============================================================
   PROCESS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  position: relative;
  padding-top: 30px;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  font-family: 'JetBrains Mono', monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--blue-600);
  background: var(--surface-3);
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.step h4 { font-size: 18.5px; font-weight: 700; letter-spacing: -0.01em; }
.step p { margin-top: 9px; color: var(--ink-500); font-size: 15px; line-height: 1.5; }
.step .line {
  position: absolute;
  top: 56px; left: 64px; right: -14px;
  height: 2px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}
.step:last-child .line { display: none; }
@media (max-width: 900px) { .step .line { display: none; } }

/* ============================================================
   PRICING
   ============================================================ */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  align-items: stretch;
}
.tier {
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
}
.tier.featured {
  background: var(--grad-deep);
  border-color: transparent;
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.tier.featured::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(500px 300px at 90% 0%, rgba(24,194,255,.30), transparent 60%);
  pointer-events: none;
}
.tier .t-tag {
  font-size: 13px; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase;
  color: var(--blue-600);
}
.tier.featured .t-tag { color: #7FE0FF; }
.tier .t-badge {
  position: absolute; top: 22px; right: 22px;
  background: var(--grad-brand);
  color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 5px 12px; border-radius: 100px;
  z-index: 2;
}
.tier .price {
  margin: 16px 0 4px;
  font-size: 38px; font-weight: 800; letter-spacing: -0.02em;
}
.tier .price small { font-size: 16px; font-weight: 600; color: var(--ink-400); }
.tier.featured .price small { color: #9FB6DC; }
.tier .price-note { font-size: 14px; color: var(--ink-400); margin-bottom: 24px; }
.tier.featured .price-note { color: #9FB6DC; }
.tier ul { list-style: none; display: flex; flex-direction: column; gap: 13px; margin-bottom: 28px; flex: 1; }
.tier li { display: flex; gap: 11px; font-size: 15px; align-items: flex-start; line-height: 1.4; }
.tier li svg { flex-shrink: 0; margin-top: 2px; color: var(--ok); }
.tier.featured li svg { color: #5CF0A8; }
.tier .btn { width: 100%; }

/* ============================================================
   CASES
   ============================================================ */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 30px 28px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.case .c-tag {
  display: inline-flex;
  font-size: 12.5px; font-weight: 600;
  color: var(--blue-600);
  background: var(--surface-3);
  padding: 5px 12px; border-radius: 100px;
  margin-bottom: 20px;
}
.case .c-num {
  font-size: 44px; font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.case .c-metric { font-size: 14.5px; color: var(--ink-500); margin-top: 8px; font-weight: 500; }
.case .c-desc { margin-top: 18px; font-size: 14.5px; color: var(--ink-500); line-height: 1.55; padding-top: 18px; border-top: 1px solid var(--line); }

.stat-band {
  margin-top: 56px;
  background: var(--grad-deep);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stat-band::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 300px at 80% 120%, rgba(24,194,255,.30), transparent 60%);
  pointer-events: none;
}
.stat-band .sb { position: relative; z-index: 2; text-align: center; }
.stat-band .sb .n { font-size: 42px; font-weight: 800; letter-spacing: -0.02em; }
.stat-band .sb .n .accent { color: #7FE0FF; }
.stat-band .sb .l { font-size: 14px; color: #9FB6DC; margin-top: 6px; }

/* ============================================================
   CTA / FORM
   ============================================================ */
.cta-section { background: var(--surface-2); }
.cta-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.cta-left {
  background: var(--grad-deep);
  color: #fff;
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.cta-left::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(500px 400px at 10% 110%, rgba(24,194,255,.30), transparent 60%);
  pointer-events: none;
}
.cta-left > * { position: relative; z-index: 2; }
.cta-left h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.cta-left p { margin-top: 16px; color: #C5D6F2; font-size: 16px; line-height: 1.6; }
.cta-points { margin-top: 32px; display: flex; flex-direction: column; gap: 16px; list-style: none; }
.cta-points li { display: flex; gap: 13px; align-items: center; font-size: 15.5px; }
.cta-points li .cp-ic {
  width: 34px; height: 34px; border-radius: 10px;
  background: rgba(255,255,255,.12);
  display: grid; place-items: center; flex-shrink: 0;
}
.cta-contact { margin-top: 36px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-direction: column; gap: 10px; }
.cta-contact a { display: flex; align-items: center; gap: 11px; font-size: 15px; color: #DCE9FF; }
.cta-contact a:hover { color: #fff; }

.cta-form { padding: 56px 48px; }
.cta-form h3 { font-size: 23px; font-weight: 700; letter-spacing: -0.01em; }
.cta-form .form-sub { color: var(--ink-500); font-size: 15px; margin-top: 8px; margin-bottom: 28px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-700); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink-900);
  padding: 13px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: var(--surface);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 4px rgba(28,123,255,.12);
}
.field textarea { resize: vertical; min-height: 84px; }
.chips-select { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-opt {
  font-size: 13.5px; font-weight: 500;
  padding: 9px 14px;
  border: 1.5px solid var(--line-strong);
  border-radius: 100px;
  color: var(--ink-700);
  background: var(--surface);
  transition: all .15s ease;
}
.chip-opt:hover { border-color: var(--blue-400); }
.chip-opt.on { background: var(--grad-brand); color: #fff; border-color: transparent; }
.form-note { font-size: 12.5px; color: var(--ink-400); margin-top: 14px; line-height: 1.5; }
.form-note a { color: var(--blue-600); }
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}
.form-success.show { display: block; animation: msgIn .4s ease both; }
.form-success .fs-ic {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--grad-brand);
  display: grid; place-items: center; margin: 0 auto 22px;
  box-shadow: var(--shadow-blue);
}
.form-success h3 { font-size: 24px; }
.form-success p { color: var(--ink-500); margin-top: 10px; }

/* ============================================================
   FAQ (mini)
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  background: none; border: none;
  text-align: left;
  padding: 24px 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--ink-900);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-q .fq-plus {
  flex-shrink: 0;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--surface-3);
  display: grid; place-items: center;
  color: var(--blue-600);
  transition: transform .25s ease, background .2s ease;
  font-size: 20px;
}
.faq-item.open .fq-plus { transform: rotate(45deg); background: var(--grad-brand); color: #fff; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a-inner { padding-bottom: 24px; color: var(--ink-500); font-size: 16px; line-height: 1.6; max-width: 680px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #0A1530;
  color: #fff;
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.10);
}
.footer .brand { color: #fff; margin-bottom: 16px; }
.footer-about { color: #93A4C4; font-size: 14.5px; line-height: 1.6; max-width: 300px; }
.footer h5 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #6E82A8; margin-bottom: 18px; font-weight: 600; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a { color: #C2CFE6; font-size: 14.5px; transition: color .15s ease; }
.footer ul a:hover { color: #fff; }
.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #6E82A8;
  font-size: 13.5px;
}
.footer-bottom .socials { display: flex; gap: 12px; }
.footer-bottom .socials a {
  width: 38px; height: 38px; border-radius: 11px;
  background: rgba(255,255,255,.07);
  display: grid; place-items: center;
  transition: background .15s ease;
}
.footer-bottom .socials a:hover { background: var(--blue-600); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { order: -1; }
  .demo-layout { grid-template-columns: 1fr; }
  .demo-aside { position: static; display: flex; justify-content: center; }
  .benefits-grid, .price-grid, .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 36px 20px; }
  .cta-card { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .benefits-grid, .price-grid, .cases-grid, .scenario-list, .steps { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 24px; }
  .cta-left, .cta-form { padding: 40px 28px; }
  .tier.featured { order: -1; }
}
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   MOBILE ADAPTATION - финальные правки под телефоны
   ============================================================ */

/* Защита от горизонтального скролла - бывает из-за теней/трансформов */
html, body { overflow-x: hidden; }

/* Телефон-мокап (hero и демо) - фиксированная 332x660 ломается на узких */
@media (max-width: 768px) {
  .phone { width: min(332px, calc(100vw - 32px)); max-width: 100%; }
  .phone-screen { height: min(660px, calc((100vw - 32px) * 1.99)); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
}

/* Базовые правки <= 680px - дополняем существующий блок выше */
@media (max-width: 680px) {
  .nav { gap: 12px; }
  .brand { font-size: 17px; }
  .nav-cta-btn { padding: 8px 14px; font-size: 13px; }
  .cta-contact { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* Узкие экраны (iPhone SE и ниже) - читаемые размеры */
@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  .section-pad { padding: 56px 0; }

  /* Хедер - бренд и кнопка не должны налезать */
  .brand-mark { width: 32px; height: 32px; font-size: 14px; }
  .brand { font-size: 15px; gap: 8px; }
  .nav-cta-btn { padding: 7px 12px; font-size: 12.5px; }

  /* Hero - меньше шапки и кнопок */
  .hero { padding-top: 28px; }
  .hero h1 { font-size: clamp(28px, 8vw, 38px); }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-stats { gap: 16px; flex-wrap: wrap; }
  .hero-stat .num { font-size: 26px; }

  /* Заголовки секций */
  .h-section { font-size: clamp(22px, 6.5vw, 30px); }
  .sub-section { font-size: 14.5px; }

  /* Телефон ещё чуть меньше */
  .phone { width: min(290px, calc(100vw - 24px)); padding: 10px; border-radius: 36px; }
  .phone-screen { border-radius: 28px; }

  /* CTA-блок */
  .cta-card h2 { font-size: 24px; }
  .cta-left, .cta-form { padding: 28px 20px; }
  .form-sub { font-size: 14px; }

  /* Тарифы - меньше padding */
  .tier { padding: 30px 24px; }
  .price { font-size: clamp(24px, 7vw, 30px); }

  /* Шаги процесса */
  .step { padding: 24px 22px; }

  /* Footer - всё в одну колонку и центруем */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .footer-legal { flex-direction: column; gap: 8px; text-align: center; justify-content: center; }
  .footer-address { font-size: 13.5px; line-height: 1.55; }
}
