/* Лендинг Сонар Хаб — статика на токенах Liquid (design/tokens.md): светлая тема,
   бренд #8b5cf6/#6d28d9/#c084fc, Rubik 600 заголовки + Inter, стекло + glow-фон. */

@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-latin.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20A0-20CF; }
@font-face { font-family: 'Inter'; src: url('/assets/fonts/inter-cyrillic.woff2') format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Rubik'; src: url('/assets/fonts/rubik-latin.woff2') format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF; }
@font-face { font-family: 'Rubik'; src: url('/assets/fonts/rubik-cyrillic.woff2') format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

:root {
  --brand: #8b5cf6; --brand-deep: #6d28d9; --brand-soft: #c084fc;
  --bg: #f7f6fb; --text: #1c1a27; --muted: #5f5b74; --line: rgba(28, 26, 39, .1);
  --card: rgba(255, 255, 255, .72); --card-solid: #fff;
  --r-md: 14px; --r-lg: 20px; --r-xl: 28px;
  --shadow: 0 1px 2px rgba(28, 26, 39, .05), 0 12px 32px -12px rgba(109, 40, 217, .12);
  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Rubik', var(--font);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.55; font-size: 16px; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* фон: мягкие glow-пятна бренда */
.atmo { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(560px 420px at 12% -6%, rgba(139, 92, 246, .14), transparent 65%),
    radial-gradient(640px 480px at 96% 12%, rgba(192, 132, 252, .12), transparent 65%),
    radial-gradient(720px 560px at 50% 108%, rgba(109, 40, 217, .08), transparent 70%); }

/* шапка */
.site-header { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); background: rgba(247, 246, 251, .78); border-bottom: 1px solid var(--line); }
.header-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 22px; height: 22px; color: var(--brand); }
.site-nav { display: flex; gap: 20px; margin-left: 8px; }
.site-nav a { color: var(--muted); font-size: 14.5px; }
.site-nav a:hover { color: var(--text); text-decoration: none; }
.header-cta { margin-left: auto; display: flex; gap: 10px; }

/* кнопки */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 10px 18px; font-size: 14.5px; font-weight: 550; transition: .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; box-shadow: 0 6px 20px -6px rgba(109, 40, 217, .45); }
.btn-primary:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-ghost { color: var(--text); border: 1px solid var(--line); background: rgba(255, 255, 255, .5); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-lg { padding: 14px 26px; font-size: 16px; border-radius: var(--r-md); }

/* герой */
.hero { padding: 88px 0 56px; text-align: center; }
.hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 5.4vw, 54px); line-height: 1.12; letter-spacing: -.015em; max-width: 820px; margin: 0 auto; }
.hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--brand-deep), var(--brand), var(--brand-soft)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .sub { font-size: clamp(16px, 2.2vw, 19px); color: var(--muted); max-width: 640px; margin: 20px auto 0; }
.hero .cta-row { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.hero .fineprint { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* бейдж моделей */
.model-strip { display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; margin-top: 44px; color: var(--muted); font-size: 14px; }
.model-strip b { color: var(--text); font-weight: 600; }

/* секции */
section { padding: 56px 0; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.sec-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.6vw, 36px); line-height: 1.18; letter-spacing: -.01em; }
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 16.5px; }
.kicker { display: inline-block; font-size: 12.5px; font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 12px; }

/* карточки-витрины */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.card { background: var(--card); backdrop-filter: blur(20px) saturate(1.3); -webkit-backdrop-filter: blur(20px) saturate(1.3); border: 1px solid rgba(255, 255, 255, .65); outline: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); }
.card h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 14.8px; }
.card .num { font-family: var(--font-display); font-weight: 600; font-size: 30px; color: var(--brand-deep); margin-bottom: 10px; display: block; }
.card-icon { width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(139, 92, 246, .16), rgba(109, 40, 217, .1)); color: var(--brand-deep); margin-bottom: 14px; }
.card-icon svg { width: 21px; height: 21px; }

/* шаги */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { position: relative; padding: 22px 20px 20px; border-radius: var(--r-md); background: var(--card-solid); outline: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: -13px; left: 18px; width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; font-size: 13px; font-weight: 650; display: flex; align-items: center; justify-content: center; }
.step b { display: block; margin-bottom: 5px; font-size: 15px; }
.step span { color: var(--muted); font-size: 13.5px; }

/* фичи списком */
.feature-list { list-style: none; display: grid; gap: 12px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.feature-list li::before { content: ''; flex: 0 0 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 8px; }
.feature-list b { font-weight: 600; }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }

/* тарифы */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--card-solid); outline: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px 22px; }
.plan.featured { outline: 2px solid var(--brand); box-shadow: 0 16px 40px -16px rgba(109, 40, 217, .35); position: relative; }
.plan.featured::before { content: 'Популярный'; position: absolute; top: -11px; left: 50%; transform: translateX(-50%); background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; font-size: 11.5px; font-weight: 650; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.plan .price { font-family: var(--font-display); font-weight: 600; font-size: 30px; margin: 10px 0 2px; }
.plan .price small { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan .energy { color: var(--brand-deep); font-weight: 600; font-size: 14px; margin-bottom: 14px; }
.plan ul { list-style: none; display: grid; gap: 7px; font-size: 13.8px; color: var(--muted); margin-bottom: 18px; }
.plan ul li::before { content: '✓  '; color: var(--brand); font-weight: 700; }
.plan .btn { margin-top: auto; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: var(--card-solid); outline: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 20px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--muted); font-size: 14.6px; margin-top: 10px; }

/* CTA-полоса */
.cta-band { text-align: center; background: linear-gradient(135deg, rgba(139, 92, 246, .12), rgba(109, 40, 217, .07)); border-radius: var(--r-xl); padding: 56px 28px; outline: 1px solid rgba(139, 92, 246, .25); }
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 3.4vw, 34px); margin-bottom: 12px; }
.cta-band p { color: var(--muted); margin-bottom: 26px; }

/* текстовые страницы (legal) */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 0 72px; }
.doc h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 4vw, 36px); margin-bottom: 8px; }
.doc .doc-date { color: var(--muted); font-size: 13.5px; margin-bottom: 32px; }
.doc h2 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 34px 0 12px; }
.doc p, .doc li { font-size: 15.3px; color: #34313f; margin-bottom: 10px; }
.doc ul, .doc ol { padding-left: 22px; margin-bottom: 14px; }
.doc table { border-collapse: collapse; width: 100%; margin: 14px 0; font-size: 14.6px; }
.doc td, .doc th { border: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }

/* ── продукт-шоты: CSS-мокапы интерфейса (витрины функционала) ── */
.shot { background: #fff; border-radius: 16px; outline: 1px solid var(--line); box-shadow: 0 2px 6px rgba(28,26,39,.06), 0 32px 80px -24px rgba(109,40,217,.28); overflow: hidden; font-size: 12.5px; text-align: left; }
.shot-bar { display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg,#fbfaff,#f4f2fb); }
.shot-bar i { width: 9px; height: 9px; border-radius: 50%; background: #e3e0ef; }
.shot-bar i:nth-child(1){background:#f0b9b3}.shot-bar i:nth-child(2){background:#efd9a5}.shot-bar i:nth-child(3){background:#b6dcb8}
.shot-url { margin-left: 10px; flex: 1; max-width: 300px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; color: var(--muted); font-size: 11px; white-space: nowrap; overflow: hidden; }
.shot-body { display: flex; min-height: 0; }
.shot-side { flex: 0 0 148px; border-right: 1px solid var(--line); background: #faf9fd; padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.shot-side b { font-family: var(--font-display); font-size: 12px; display: flex; align-items: center; gap: 6px; margin-bottom: 8px; color: var(--text); }
.shot-side b svg { width: 13px; height: 13px; color: var(--brand); }
.shot-side span { padding: 5px 8px; border-radius: 8px; color: var(--muted); font-size: 11.5px; }
.shot-side .on { background: rgba(139,92,246,.12); color: var(--brand-deep); font-weight: 600; }
.shot-side .zap { margin-top: auto; font-size: 10.5px; color: var(--brand-deep); background: rgba(139,92,246,.1); border-radius: 8px; padding: 6px 8px; text-align: center; font-weight: 600; }
.shot-main { flex: 1; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; font-size: 10.5px; color: var(--muted); background: #fff; }
.chip b { color: var(--text); font-weight: 600; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.bubble { max-width: 88%; border-radius: 12px; padding: 8px 12px; line-height: 1.45; }
.bubble.user { align-self: flex-end; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; border-bottom-right-radius: 4px; }
.bubble.ai { align-self: flex-start; background: #f6f4fc; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.doc-chip { display: flex; align-items: center; gap: 9px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 8px 11px; margin-top: 8px; box-shadow: 0 2px 8px rgba(28,26,39,.06); }
.doc-chip .ic { width: 26px; height: 26px; border-radius: 7px; background: linear-gradient(135deg,#8b5cf6,#6d28d9); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; }
.doc-chip small { color: var(--muted); display: block; font-size: 10px; }
.composer { margin-top: auto; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; color: var(--muted); background: #fff; }
.composer .send { margin-left: auto; width: 24px; height: 24px; border-radius: 7px; background: linear-gradient(135deg,var(--brand),var(--brand-deep)); color:#fff; display:flex; align-items:center; justify-content:center; font-size: 11px; }
/* карточка встречи */
.rec { padding: 16px 18px; display: grid; gap: 10px; }
.rec-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rec-head b { font-family: var(--font-display); font-size: 14px; }
.badge { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; }
.badge.ok { background: #e5f5e6; color: #256d2a; }
.rec-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.rec-tabs span { padding: 5px 12px 7px; font-size: 11.5px; color: var(--muted); border-bottom: 2px solid transparent; }
.rec-tabs .on { color: var(--brand-deep); font-weight: 600; border-bottom-color: var(--brand); }
.tr-line { display: flex; gap: 9px; align-items: baseline; }
.tr-line .who { flex: 0 0 auto; font-size: 10px; font-weight: 700; border-radius: 6px; padding: 2px 7px; }
.tr-line .who.a { background: rgba(139,92,246,.14); color: var(--brand-deep); }
.tr-line .who.b { background: #e8f0fb; color: #29527a; }
.tr-line .tc { color: #b6b2c6; font-size: 10px; flex: 0 0 auto; }
.tr-line p { font-size: 11.8px; color: #3c3950; }
.sum { background: #f6f4fc; border: 1px solid var(--line); border-radius: 10px; padding: 10px 13px; }
.sum b { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--brand-deep); display: block; margin-bottom: 6px; }
.sum li { font-size: 11.5px; color: #3c3950; margin-left: 14px; }
/* превью КП */
.kp-wrap { display: flex; gap: 18px; align-items: stretch; }
.kp-page { flex: 0 0 46%; aspect-ratio: 0.72; border-radius: 10px; overflow: hidden; position: relative; background: linear-gradient(150deg, #2a1650 0%, #6d28d9 55%, #8b5cf6 100%); color: #fff; padding: 16px; display: flex; flex-direction: column; box-shadow: 0 12px 32px -10px rgba(42,22,80,.5); }
.kp-page .kp-logo { display: flex; align-items: center; gap: 6px; font-family: var(--font-display); font-weight: 600; font-size: 11px; opacity: .95; }
.kp-page h4 { font-family: var(--font-display); font-weight: 600; font-size: 15px; line-height: 1.25; margin-top: auto; }
.kp-page small { opacity: .75; font-size: 9.5px; margin-top: 6px; }
.kp-page::after { content: ''; position: absolute; inset: 0; background: radial-gradient(140px 140px at 85% 18%, rgba(255,255,255,.18), transparent 70%); }
.kp-checks { flex: 1; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.kp-checks div { display: flex; gap: 8px; align-items: center; font-size: 11.8px; color: #3c3950; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 7px 11px; }
.kp-checks .ok { color: #256d2a; font-weight: 700; }
/* появление шотов */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.rise { opacity: 0; animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
.rise.d1 { animation-delay: .08s } .rise.d2 { animation-delay: .18s } .rise.d3 { animation-delay: .3s }
@media (prefers-reduced-motion: reduce) { .rise { animation: none; opacity: 1; } }
.hero-shot { max-width: 760px; margin: 44px auto 0; }
.split .shot { align-self: stretch; }
.shot-note { color: var(--muted); font-size: 12.5px; text-align: center; margin-top: 12px; }

/* мобильное меню */
.nav-burger { display: none; margin-left: auto; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.6); cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 4px; }
.nav-burger i { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--text); }
.mobile-nav { display: none; border-bottom: 1px solid var(--line); background: rgba(247,246,251,.97); backdrop-filter: blur(18px); }
.mobile-nav.openned, .mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 13px 20px; color: var(--text); font-size: 15px; border-top: 1px solid var(--line); }
@media (max-width: 860px) {
  .nav-burger { display: flex; }
  .header-cta .btn-ghost { display: none; }
  .header-cta .btn { padding: 8px 14px; font-size: 13.5px; }
  .brand { white-space: nowrap; font-size: 16px; }
  .kp-wrap { flex-direction: column; }
  .kp-page { flex-basis: auto; max-width: 300px; }
  .shot-side { display: none; }
}

/* модалка заявки (фейк-дор оплаты) */
.lead-modal { margin: auto; border: none; border-radius: var(--r-lg); padding: 0; max-width: 420px; width: calc(100vw - 40px); box-shadow: 0 24px 64px -16px rgba(28, 26, 39, .35); }
.lead-modal::backdrop { background: rgba(28, 26, 39, .45); backdrop-filter: blur(4px); }
.lead-modal form, .lead-modal > div { padding: 30px 28px; display: grid; gap: 12px; position: relative; }
.lead-modal [hidden], .lead-modal form[hidden] { display: none; }
.lead-modal h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; }
.lead-modal p { color: var(--muted); font-size: 14.4px; }
.lead-modal input:not([type=hidden]) { border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; font: inherit; font-size: 15px; }
.lead-modal input:focus { outline: 2px solid var(--brand); border-color: transparent; }
.lead-close { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 24px; color: var(--muted); cursor: pointer; line-height: 1; }
.lead-fine { font-size: 12px !important; }

/* подвал */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 44px; background: rgba(255, 255, 255, .5); }
.foot-in { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot-brand { font-family: var(--font-display); font-weight: 600; margin-bottom: 8px; }
.foot-note { color: var(--muted); font-size: 13px; margin-top: 4px; }
.foot-nav { display: grid; gap: 8px; font-size: 13.5px; }

@media (max-width: 860px) {
  .grid-3, .plans, .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 24px; }
  .site-nav { display: none; }
  .hero { padding: 56px 0 40px; }
}
@media (max-width: 560px) {
  .grid-3, .grid-2, .plans, .steps { grid-template-columns: 1fr; }
  section { padding: 40px 0; }
}
