/* ============================================================
   AISUBO — дизайн-система магазина AI-подписок (aisubo.ru)
   Тёмная тема, акценты: фиолетовый #7c5cff + циан #37d5f2.
   Шрифты: Inter (текст), Unbounded (заголовки/логотип).
   ============================================================ */

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

:root {
  --bg:        #0a0813;
  --bg-2:      #0e0b1a;
  --surface:   #141024;
  --surface-2: rgba(255,255,255,.045);
  --surface-3: rgba(255,255,255,.08);
  --border:    rgba(255,255,255,.09);
  --border-2:  rgba(255,255,255,.16);

  --tx:      #eeeaff;
  --tx-dim:  #a8a3c0;
  --tx-mut:  #6f6a88;

  --violet:    #7c5cff;
  --violet-2:  #9d85ff;
  --cyan:      #37d5f2;
  --grad:      linear-gradient(120deg, #8b5cf6, #5c7cff 55%, #37d5f2);
  --grad-btn:  linear-gradient(120deg, #7c5cff, #5c7cff);
  --glow:      rgba(124, 92, 255, .35);

  --ok:    #34d399;
  --warn:  #fbbf24;
  --err:   #f87171;

  --font:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-h:  'Unbounded', 'Inter', sans-serif;

  --r:    20px;
  --r-md: 14px;
  --r-sm: 10px;

  --container: 1200px;
  --shadow:    0 18px 50px rgba(0, 0, 0, .45);
  --shadow-sm: 0 8px 26px rgba(0, 0, 0, .35);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--tx);
  line-height: 1.6;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100dvh;
}

img, svg { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }

::selection { background: rgba(124, 92, 255, .45); }
:focus-visible { outline: 2px solid var(--violet-2); outline-offset: 2px; border-radius: 4px; }
.btn:focus-visible { outline-offset: 3px; }
.btn:active { transform: translateY(0) scale(.985); }

/* тонкий скроллбар в тон тёмной теме (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,.14); border-radius: 6px; border: 2px solid var(--bg-2); }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.24); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* линейные иконки */
.icn { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── Кнопки ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  border: none; border-radius: var(--r-sm); cursor: pointer; text-decoration: none;
  font-family: inherit; font-weight: 700; letter-spacing: -.01em;
  transition: transform .18s, box-shadow .18s, background .18s, border-color .18s, opacity .18s;
}
.btn-primary { background: var(--grad-btn); color: #fff; box-shadow: 0 6px 22px var(--glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px var(--glow), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-ghost {
  background: var(--surface-2); color: var(--tx);
  border: 1px solid var(--border-2);
}
.btn-ghost:hover { background: var(--surface-3); border-color: rgba(255,255,255,.28); }
.btn-lg   { padding: 16px 28px; font-size: 16px; }
.btn-md   { padding: 13px 22px; font-size: 14.5px; }
.btn-sm   { padding: 9px 16px;  font-size: 13.5px; }
.btn-full { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.loading { opacity: .7; pointer-events: none; }

/* ── Шапка ──────────────────────────────────────────────────── */
.header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(10, 8, 19, .78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.header .container { display: flex; align-items: center; gap: 26px; height: 66px; position: relative; }

.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--tx); }
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px;
  background: var(--grad);
  box-shadow: 0 4px 16px var(--glow), inset 0 1px 0 rgba(255,255,255,.35);
}
.logo-icon svg { width: 19px; height: 19px; display: block; }
.logo-text { font-family: var(--font-h); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.logo-text .tld { color: var(--tx-mut); font-weight: 500; }

/* меню — строго по центру шапки (не зависит от ширины логотипа и кнопки) */
.header-nav {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 26px; white-space: nowrap;
}
.header-nav a {
  text-decoration: none; color: var(--tx-dim); font-size: 14.5px; font-weight: 600;
  transition: color .15s;
}
.header-nav a:hover { color: var(--tx); }

.hdr-spacer { flex: 1; }
.hdr-cta { flex-shrink: 0; }
/* на средних ширинах центр-меню начало бы налезать на логотип/кнопку */
@media (max-width: 1040px) and (min-width: 861px) {
  .header-nav { gap: 18px; }
  .header-nav a { font-size: 13.5px; }
}

/* мобильное меню */
.nav-burger {
  display: none; width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid var(--border-2); background: var(--surface-2); border-radius: var(--r-sm);
  cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.nav-burger span { display: block; width: 20px; height: 2px; background: var(--tx); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  position: absolute; top: 100%; left: 0; right: 0; z-index: 210;
  display: flex; flex-direction: column;
  padding: 8px 22px calc(20px + env(safe-area-inset-bottom));
  background: rgba(12, 9, 22, .98);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 18px 34px rgba(0,0,0,.5);
  opacity: 0; visibility: hidden; transform: translateY(-8px); pointer-events: none;
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-mobile.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.nav-mobile a:not(.btn) {
  padding: 14px 4px; font-size: 16px; font-weight: 600; color: var(--tx);
  border-bottom: 1px solid rgba(255,255,255,.07); text-decoration: none;
}
.nav-mobile .btn { margin-top: 12px; }
.nav-scrim {
  position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.55);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.nav-scrim.open { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }

@media (max-width: 860px) {
  .header-nav, .hdr-cta { display: none; }
  .nav-burger { display: flex; margin-left: auto; }
}
@media (min-width: 861px) {
  .nav-mobile, .nav-scrim { display: none !important; }
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 84px 0 40px;
}
.hero::before {
  content: ''; position: absolute; inset: -40% -20% auto;  height: 130%;
  background:
    radial-gradient(42% 55% at 24% 30%, rgba(124, 92, 255, .22), transparent 70%),
    radial-gradient(38% 50% at 78% 22%, rgba(55, 213, 242, .13), transparent 70%);
  pointer-events: none;
}
.hero::after { /* сетка-подложка */
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 60% at 50% 20%, #000 30%, transparent 100%);
  pointer-events: none;
}
.hero .container { position: relative; text-align: center; }

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--violet-2);
  background: rgba(124, 92, 255, .12);
  border: 1px solid rgba(124, 92, 255, .3);
  padding: 7px 15px; border-radius: 99px; margin-bottom: 22px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); }

.hero h1 {
  font-family: var(--font-h); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 54px);
  line-height: 1.14; letter-spacing: -.01em;
  max-width: 830px; margin: 0 auto 20px;
}
.hero h1 .g {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub {
  font-size: clamp(15.5px, 1.6vw, 18px); color: var(--tx-dim);
  max-width: 640px; margin: 0 auto 32px; line-height: 1.65;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 46px; }

.hero-stats {
  display: flex; justify-content: center; gap: 12px; flex-wrap: wrap;
}
.hstat {
  display: flex; align-items: center; gap: 11px;
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 13px 20px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  text-align: left;
}
.hstat svg { width: 21px; height: 21px; color: var(--cyan); flex-shrink: 0; }
.hstat b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; display: block; line-height: 1.25; }
.hstat span { font-size: 12.5px; color: var(--tx-mut); display: block; line-height: 1.3; }

/* ── Заголовки секций ──────────────────────────────────────── */
.section { padding: 74px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-header h2 {
  font-family: var(--font-h); font-weight: 700;
  font-size: clamp(23px, 3vw, 34px); line-height: 1.2; letter-spacing: -.01em;
  margin-bottom: 12px;
}
.section-header p { color: var(--tx-dim); font-size: 15.5px; }

/* ── Каталог: фильтр-пилюли ────────────────────────────────── */
.cat-pills {
  display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-bottom: 38px;
}
.cat-pill {
  border: 1px solid var(--border-2); background: var(--surface-2); color: var(--tx-dim);
  font-size: 14px; font-weight: 600; padding: 10px 19px; border-radius: 99px; cursor: pointer;
  transition: all .18s;
}
.cat-pill:hover { color: var(--tx); border-color: rgba(255,255,255,.3); }
.cat-pill.active {
  background: rgba(124, 92, 255, .16); border-color: rgba(124, 92, 255, .55);
  color: #cfc2ff;
}
.cat-pill .cnt { opacity: .55; font-weight: 500; margin-left: 4px; font-size: 12.5px; }

/* ── Каталог: сетка и карточки ─────────────────────────────── */
.cat-section-title {
  font-family: var(--font-h); font-size: 19px; font-weight: 600; letter-spacing: 0;
  margin: 44px 0 20px; display: flex; align-items: center; gap: 12px;
}
.cat-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px;
}

.pcard {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  overflow: hidden; position: relative;
  transition: transform .22s, border-color .22s, box-shadow .22s;
}
.pcard:hover { transform: translateY(-5px); border-color: rgba(124, 92, 255, .45); box-shadow: var(--shadow); }

.pcard-art {
  position: relative; height: 128px; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(120% 160% at 20% 0%, color-mix(in srgb, var(--pa, #7c5cff) 28%, transparent), transparent 60%),
    radial-gradient(120% 160% at 90% 110%, color-mix(in srgb, var(--pa2, #37d5f2) 22%, transparent), transparent 60%),
    var(--bg-2);
  border-bottom: 1px solid var(--border);
}
.pcard-glyph {
  font-size: 48px; line-height: 1;
  background: linear-gradient(135deg, var(--pa, #7c5cff), var(--pa2, #37d5f2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  filter: drop-shadow(0 4px 18px color-mix(in srgb, var(--pa, #7c5cff) 45%, transparent));
  transition: transform .3s ease;
}
.pcard:hover .pcard-glyph { transform: scale(1.12) rotate(-4deg); }
.pcard-badge {
  position: absolute; top: 12px; left: 12px;
  font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  background: var(--grad-btn); color: #fff; padding: 5px 11px; border-radius: 99px;
  box-shadow: 0 4px 14px var(--glow);
}
.pcard-vendor-tag {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; font-weight: 700; color: var(--tx-dim);
  background: rgba(10, 8, 19, .55); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 99px;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}

.pcard-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.pcard-name { font-size: 18.5px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.pcard-name a { text-decoration: none; }
.pcard-name a::after { content: ''; position: absolute; inset: 0; } /* вся карточка кликабельна */
.pcard-desc { font-size: 13.5px; color: var(--tx-dim); margin-top: 6px; line-height: 1.5; min-height: 40px; }

.pcard-feats { list-style: none; margin: 14px 0 18px; display: grid; gap: 7px; }
.pcard-feats li { display: flex; gap: 9px; font-size: 13px; color: var(--tx-dim); line-height: 1.45; }
.pcard-feats .ck {
  width: 17px; height: 17px; flex-shrink: 0; margin-top: 1px; border-radius: 50%;
  background: rgba(124, 92, 255, .16); color: var(--violet-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 800;
}

.pcard-foot { margin-top: auto; position: relative; z-index: 1; }
.pcard-price { display: flex; align-items: baseline; gap: 7px; margin: 16px 0 4px; }
.pcard-price .from { font-size: 12.5px; color: var(--tx-mut); font-weight: 500; }
.pcard-price .amt { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.pcard-price .per { font-size: 13px; color: var(--tx-mut); }
.pcard-more {
  display: block; text-align: center; margin-top: 11px;
  font-size: 13px; font-weight: 600; color: var(--tx-mut); text-decoration: none;
  transition: color .15s;
}
.pcard-more:hover { color: var(--violet-2); }

/* выделенная карточка («Берут чаще всего») */
.pcard--featured {
  border-color: rgba(124, 92, 255, .55);
  box-shadow: 0 0 0 1px rgba(124, 92, 255, .35), 0 18px 50px rgba(124, 92, 255, .12);
}
.pcard--featured:hover { border-color: var(--violet); }

/* сетка из 5 карточек: 3 сверху, 2 по центру снизу */
.products-grid--five { grid-template-columns: repeat(6, 1fr); }
.products-grid--five .pcard { grid-column: span 2; }
.products-grid--five .pcard:nth-child(4) { grid-column: 2 / span 2; }
@media (max-width: 1000px) {
  .products-grid--five { grid-template-columns: repeat(2, 1fr); }
  .products-grid--five .pcard, .products-grid--five .pcard:nth-child(4) { grid-column: auto; }
}
@media (max-width: 620px) { .products-grid--five { grid-template-columns: 1fr; } }

/* ── Как это работает ──────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 26px 24px; position: relative;
}
.step-num {
  width: 38px; height: 38px; border-radius: var(--r-sm);
  background: var(--grad-btn); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; margin-bottom: 16px;
  box-shadow: 0 4px 14px var(--glow);
}
.step h3 { font-size: 16.5px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 7px; }
.step p { font-size: 13.5px; color: var(--tx-dim); line-height: 1.55; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .steps { grid-template-columns: 1fr; } }

/* ── Гарантии / почему мы ──────────────────────────────────── */
.trust-hero {
  display: flex; gap: 18px; align-items: flex-start;
  background: linear-gradient(120deg, rgba(124,92,255,.13), rgba(55,213,242,.07));
  border: 1px solid rgba(124, 92, 255, .35);
  border-radius: var(--r); padding: 26px 28px; margin-bottom: 20px;
}
.trust-hero svg { width: 34px; height: 34px; color: var(--violet-2); flex-shrink: 0; }
.trust-hero h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.01em; }
.trust-hero p { font-size: 14.5px; color: var(--tx-dim); line-height: 1.6; }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.trust-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 24px;
}
.trust-item svg { width: 24px; height: 24px; color: var(--cyan); margin-bottom: 14px; }
.trust-item h4 { font-size: 15.5px; font-weight: 800; margin-bottom: 7px; letter-spacing: -.01em; }
.trust-item p { font-size: 13.5px; color: var(--tx-dim); line-height: 1.55; }
@media (max-width: 860px) { .trust-grid { grid-template-columns: 1fr; } }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .2s;
}
.faq-item.open { border-color: rgba(124, 92, 255, .4); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: none; border: none; cursor: pointer; text-align: left;
  padding: 18px 22px; color: var(--tx);
  font-size: 15.5px; font-weight: 700; letter-spacing: -.01em; line-height: 1.4;
}
.faq-t {
  width: 26px; height: 26px; flex-shrink: 0; border-radius: 50%;
  background: var(--surface-3); color: var(--tx-dim);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 600; transition: transform .25s, background .2s, color .2s;
}
.faq-item.open .faq-t { transform: rotate(45deg); background: rgba(124,92,255,.2); color: var(--violet-2); }
.faq-a { max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .3s ease, visibility .3s; }
.faq-item.open .faq-a { max-height: 640px; visibility: visible; }
.faq-a p { padding: 0 22px 20px; font-size: 14px; color: var(--tx-dim); line-height: 1.65; }
.faq-a a { color: var(--violet-2); }

/* ── CTA-баннер ─────────────────────────────────────────────── */
.cta-banner { padding: 30px 0 90px; }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  background: var(--surface); border: 1px solid rgba(124, 92, 255, .35);
  border-radius: 26px; padding: 58px 30px;
}
.cta-card::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(55% 90% at 50% -20%, rgba(124, 92, 255, .28), transparent 70%),
    radial-gradient(40% 70% at 85% 110%, rgba(55, 213, 242, .12), transparent 70%);
  pointer-events: none;
}
.cta-card > * { position: relative; }
.cta-card h2 { font-family: var(--font-h); font-size: clamp(21px, 2.6vw, 30px); font-weight: 700; margin-bottom: 12px; }
.cta-card p { color: var(--tx-dim); font-size: 15.5px; max-width: 520px; margin: 0 auto 26px; }
.cta-note { font-size: 13px; color: var(--tx-mut); margin-top: 18px; }

/* ── Футер ──────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 54px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
.footer-brand p { font-size: 13.5px; color: var(--tx-dim); margin-top: 14px; line-height: 1.6; max-width: 300px; }
.footer h4 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--tx-mut); margin-bottom: 15px; }
.footer-links { display: flex; flex-direction: column; }
.footer-links a, .footer-contact a {
  display: block; text-decoration: none; color: var(--tx-dim); font-size: 14px; padding: 5px 0;
  transition: color .15s;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--tx); }
.footer-hours { font-size: 13px; color: var(--tx-mut); margin-top: 8px; }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; }
.footer-bottom p { font-size: 12.5px; color: var(--tx-mut); line-height: 1.6; margin-bottom: 6px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Страница товара ───────────────────────────────────────── */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--tx-mut); padding: 22px 0 0; flex-wrap: wrap; }
.crumbs a { color: var(--tx-mut); text-decoration: none; }
.crumbs a:hover { color: var(--tx-dim); }
.crumbs .sep { opacity: .5; }
.crumbs .cur { color: var(--tx-dim); font-weight: 600; }

.product-hero { padding: 34px 0 64px; position: relative; overflow: hidden; }
.product-hero::before {
  content: ''; position: absolute; inset: -30% -10% auto; height: 120%;
  background:
    radial-gradient(40% 55% at 22% 25%, color-mix(in srgb, var(--pa, #7c5cff) 17%, transparent), transparent 70%),
    radial-gradient(35% 50% at 80% 15%, color-mix(in srgb, var(--pa2, #37d5f2) 10%, transparent), transparent 70%);
  pointer-events: none;
}
.product-hero .container { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }

.p-brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--tx-dim); background: var(--surface-2); border: 1px solid var(--border-2);
  padding: 7px 14px; border-radius: 99px; margin-bottom: 20px;
}
.p-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--pa, #7c5cff), var(--pa2, #37d5f2)); }

.p-h1 { font-family: var(--font-h); font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; margin-bottom: 14px; }
.p-h1 .g {
  background: linear-gradient(120deg, var(--pa, #8b5cf6), var(--pa2, #37d5f2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.p-tagline { font-size: 16.5px; color: var(--tx-dim); margin-bottom: 22px; line-height: 1.6; }

.p-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.p-tag {
  font-size: 12.5px; font-weight: 600; color: var(--tx-dim);
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 6px 13px; border-radius: 99px;
}

/* блок покупки */
.buy-box {
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.variants { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.variant {
  border: 1px solid var(--border-2); background: var(--surface-2);
  border-radius: var(--r-sm); padding: 10px 16px; cursor: pointer;
  font-size: 13.5px; font-weight: 700; color: var(--tx-dim); transition: all .15s;
}
.variant.active {
  border-color: var(--violet); background: rgba(124, 92, 255, .14); color: #d5c9ff;
  box-shadow: 0 0 0 1px var(--violet);
}
.buy-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.buy-price .amt { font-size: 34px; font-weight: 800; letter-spacing: -.025em; line-height: 1; }
.buy-price .per { font-size: 14.5px; color: var(--tx-mut); }
.buy-note { display: flex; flex-wrap: wrap; gap: 7px 16px; margin-top: 15px; }
.buy-note span { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--tx-mut); font-weight: 500; }
.buy-note svg { width: 14px; height: 14px; color: var(--cyan); flex-shrink: 0; }

/* мокап чата на странице товара */
.p-visual { position: relative; }
.chat-mock {
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow);
}
.cm-head {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 18px; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.cm-ava {
  width: 36px; height: 36px; border-radius: var(--r-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  background: linear-gradient(135deg, var(--pa, #7c5cff), var(--pa2, #37d5f2));
  color: #fff;
}
.cm-name { font-size: 14.5px; font-weight: 800; line-height: 1.3; }
.cm-status { font-size: 12px; color: var(--ok); display: flex; align-items: center; gap: 5px; }
.cm-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.cm-body { padding: 20px 18px 24px; display: grid; gap: 12px; }
.cm-msg { max-width: 85%; padding: 11px 15px; border-radius: 15px; font-size: 13.5px; line-height: 1.55; }
.cm-user { justify-self: end; background: var(--grad-btn); color: #fff; border-bottom-right-radius: 5px; }
.cm-ai   { justify-self: start; background: var(--surface-3); color: var(--tx); border-bottom-left-radius: 5px; }
.cm-typing { justify-self: start; display: flex; gap: 5px; padding: 13px 16px; background: var(--surface-3); border-radius: 15px; border-bottom-left-radius: 5px; }
.cm-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--tx-mut); animation: blink 1.2s infinite; }
.cm-typing span:nth-child(2) { animation-delay: .18s; }
.cm-typing span:nth-child(3) { animation-delay: .36s; }
@keyframes blink { 0%, 70%, 100% { opacity: .35; } 35% { opacity: 1; transform: translateY(-2px); } }

/* фичи товара */
.p-features { padding: 0 0 30px; }
.p-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.p-feat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 20px 22px; display: flex; gap: 13px; align-items: flex-start;
}
.p-feat .ck {
  width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; margin-top: 1px;
  background: rgba(124, 92, 255, .16); color: var(--violet-2);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.p-feat p { font-size: 14px; color: var(--tx-dim); line-height: 1.5; }
@media (max-width: 900px) { .p-features-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .p-features-grid { grid-template-columns: 1fr; } }

/* описание товара */
.p-about { padding: 40px 0 10px; }
.p-about-inner { max-width: 760px; margin: 0 auto; }
.p-about h2 { font-family: var(--font-h); font-size: 24px; font-weight: 700; margin-bottom: 20px; }
.p-about p { font-size: 15px; color: var(--tx-dim); line-height: 1.75; margin-bottom: 16px; }
.p-about strong { color: var(--tx); }

/* ── Модалка заказа ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(5, 3, 12, .7);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .22s, visibility .22s;
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  width: 100%; max-width: 470px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r);
  padding: 30px 30px 28px; position: relative;
  box-shadow: var(--shadow);
  transform: translateY(14px) scale(.98); transition: transform .22s;
}
.modal-overlay.active .modal { transform: none; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 38px; height: 38px;
  border: 1px solid var(--border); background: var(--surface-2); border-radius: var(--r-sm);
  color: var(--tx-dim); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--surface-3); color: var(--tx); }
.modal-header { margin-bottom: 22px; padding-right: 40px; }
.modal-header h2 { font-size: 21px; font-weight: 800; letter-spacing: -.015em; margin-bottom: 6px; }
.modal-header p { font-size: 14px; color: var(--tx-dim); }
.modal-header strong { color: var(--tx); }

.order-form { display: grid; gap: 17px; }
.form-group label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.form-group .required { color: var(--err); }
.form-group input[type="email"], .form-group input[type="text"] {
  width: 100%; padding: 13px 15px;
  background: var(--bg-2); border: 1px solid var(--border-2); border-radius: var(--r-sm);
  color: var(--tx); font-family: inherit; font-size: 15px;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(124, 92, 255, .2); }
.form-group input.error { border-color: var(--err); }
.field-hint { display: block; font-size: 12px; color: var(--tx-mut); margin-top: 6px; }

.input-prefix-wrap { position: relative; }
.input-prefix {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  color: var(--tx-mut); font-size: 15px; font-weight: 600; pointer-events: none;
}
.input-prefix-wrap input[type="text"] { padding-left: 34px; }

.form-notice {
  display: flex; gap: 10px; align-items: flex-start;
  background: rgba(55, 213, 242, .07); border: 1px solid rgba(55, 213, 242, .25);
  border-radius: var(--r-sm); padding: 12px 14px;
}
.form-notice svg { width: 18px; height: 18px; color: var(--cyan); flex-shrink: 0; margin-top: 1px; }
.form-notice p { font-size: 13px; color: var(--tx-dim); line-height: 1.5; }

.form-agree { display: flex; gap: 10px; align-items: flex-start; }
.form-agree input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--violet); flex-shrink: 0; }
.form-agree label { font-size: 12.5px; color: var(--tx-dim); line-height: 1.5; }
.form-agree a { color: var(--violet-2); }

.order-err {
  display: none;
  background: rgba(248, 113, 113, .1); border: 1px solid rgba(248, 113, 113, .4);
  color: #fda4a4; border-radius: var(--r-sm); padding: 12px 15px; font-size: 13.5px; line-height: 1.5;
}
.order-err.show { display: block; }
.order-err a { color: #fecaca; font-weight: 700; }

.order-guarantee {
  display: flex; gap: 9px; align-items: flex-start;
  background: rgba(52, 211, 153, .08); border: 1px solid rgba(52, 211, 153, .25);
  color: #86e8c4; border-radius: var(--r-sm); padding: 11px 14px; font-size: 12.5px; line-height: 1.5; font-weight: 500;
}
.order-guarantee svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; }

.btn-order { justify-content: space-between; padding: 16px 22px; font-size: 15.5px; }
.btn-order .price { opacity: .9; font-weight: 800; }

/* окошко «Заявка принята» внутри модалки */
.order-done { text-align: center; padding: 6px 0 2px; }
.order-done .od-ico {
  width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--grad-btn); box-shadow: 0 8px 24px var(--glow);
  display: flex; align-items: center; justify-content: center;
}
.order-done h3 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.order-done .od-sub { font-size: 13.5px; color: var(--tx-dim); margin-bottom: 14px; }
.order-done .od-id {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: rgba(124, 92, 255, .16); color: #cfc2ff;
  padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
}
.order-done .od-text { font-size: 14px; color: var(--tx-dim); line-height: 1.6; margin-bottom: 20px; }
.order-done .od-note { font-size: 12.5px; color: var(--tx-mut); margin-top: 14px; }

/* ── Липкая панель покупки (мобайл, страница товара) ────────── */
.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(12, 9, 22, .94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--border-2);
  transform: translateY(110%); transition: transform .25s ease;
}
.buybar.show { transform: none; }
.buybar .bb-info { min-width: 0; }
.buybar .bb-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar .bb-price { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.buybar .bb-price .per { font-size: 12px; color: var(--tx-mut); font-weight: 500; }
.buybar .btn { margin-left: auto; flex-shrink: 0; }
@media (min-width: 769px) { .buybar { display: none !important; } }
/* FAB не спорит с панелью — только на мобиле, где панель реально видна */
@media (max-width: 768px) {
  body.buybar-open .chat-widget { transform: translateY(-58px); }
}

/* шаги в модалке заказа */
.modal-steps { display: flex; gap: 7px; margin-bottom: 18px; }
.modal-steps .ms {
  flex: 1; text-align: center; font-size: 11.5px; font-weight: 700; letter-spacing: .03em;
  color: var(--tx-mut); padding: 7px 6px 9px; border-top: 3px solid var(--border-2); transition: color .2s, border-color .2s;
}
.modal-steps .ms.active { color: var(--violet-2); border-top-color: var(--violet); }

/* гарантия под CTA-кнопкой баннера */
.cta-guarantee {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 14px;
  font-size: 13px; color: #86e8c4; font-weight: 600;
}
.cta-guarantee svg { width: 15px; height: 15px; flex-shrink: 0; }

/* ── Чат-виджет ─────────────────────────────────────────────── */
.chat-widget { position: fixed; bottom: 22px; right: 22px; z-index: 400; transition: transform .3s; }
.chat-widget.hide { transform: translateY(120px); }
.chat-toggle {
  width: 58px; height: 58px; border: none; border-radius: 50%; cursor: pointer;
  background: var(--grad-btn);
  box-shadow: 0 8px 26px var(--glow);
  display: flex; align-items: center; justify-content: center; position: relative;
  transition: transform .18s;
}
.chat-toggle:hover { transform: scale(1.06); }
.chat-unread {
  position: absolute; top: -2px; right: -2px; min-width: 21px; height: 21px;
  background: var(--err); color: #fff; border-radius: 99px;
  font-size: 11.5px; font-weight: 800; display: flex; align-items: center; justify-content: center;
  padding: 0 6px; border: 2px solid var(--bg);
}
.chat-choice {
  position: absolute; bottom: 70px; right: 0; width: 230px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-md);
  padding: 8px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.chat-choice.open { opacity: 1; visibility: visible; transform: none; }
.chat-choice-item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  background: none; border: none; cursor: pointer; text-decoration: none;
  padding: 12px 13px; border-radius: var(--r-sm); color: var(--tx);
  font-size: 14px; font-weight: 600; font-family: inherit; text-align: left;
  transition: background .15s;
}
.chat-choice-item:hover { background: var(--surface-2); }
.chat-choice-ico {
  width: 34px; height: 34px; border-radius: var(--r-sm); flex-shrink: 0;
  background: var(--surface-2); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
}

.chat-panel {
  position: absolute; bottom: 70px; right: 0;
  width: 370px; height: 520px; max-height: calc(100vh - 120px);
  background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(12px) scale(.98);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.chat-panel.open { opacity: 1; visibility: visible; transform: none; }
.chat-header {
  display: flex; align-items: center; gap: 12px;
  background: var(--grad-btn); padding: 14px 16px; position: relative;
}
.chat-close {
  position: absolute; top: 10px; right: 10px; width: 34px; height: 34px;
  background: rgba(255,255,255,.14); border: none; border-radius: var(--r-sm);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.chat-agent { display: flex; align-items: center; gap: 11px; }
.chat-agent-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
  background: rgba(255,255,255,.2); position: relative;
}
.chat-agent-name { font-size: 14.5px; font-weight: 800; color: #fff; line-height: 1.3; }
.chat-agent-status { font-size: 12px; color: rgba(255,255,255,.85); display: flex; align-items: center; gap: 5px; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #5ff2b0; box-shadow: 0 0 7px #5ff2b0; }

.chat-messages { flex: 1; overflow-y: auto; padding: 16px 14px; background: var(--bg-2); display: flex; flex-direction: column; gap: 10px; }
.chat-msg { display: flex; flex-direction: column; max-width: 100%; }
.chat-msg-user { align-items: flex-end; }
.chat-msg-agent { align-items: flex-start; }
.chat-row { display: flex; align-items: flex-end; gap: 8px; max-width: 92%; }
.chat-mini { width: 26px; height: 26px; border-radius: 50%; overflow: hidden; flex-shrink: 0; position: relative; background: var(--surface-3); }
.chat-mini svg, .chat-mini img { position: absolute; inset: 0; width: 100%; height: 100%; }
.chat-mini img { object-fit: cover; }
.chat-mini-spacer { width: 26px; flex-shrink: 0; }
.chat-bubble-wrap { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.chat-sender { font-size: 11px; font-weight: 700; color: var(--violet-2); margin: 0 0 3px 6px; }
.chat-bubble {
  padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5;
  background: var(--surface-3); color: var(--tx); border-bottom-left-radius: 5px;
  overflow-wrap: anywhere;
}
.chat-msg-user .chat-bubble { background: var(--grad-btn); color: #fff; border-radius: 14px; border-bottom-right-radius: 5px; }
.chat-time { font-size: 10.5px; color: var(--tx-mut); margin: 4px 6px 0; }
.chat-msg-agent .chat-time { margin-left: 40px; }
.chat-msg-system { align-items: center; }
.chat-system-label { font-size: 11.5px; color: var(--tx-mut); background: var(--surface-2); padding: 5px 12px; border-radius: 99px; }
.chat-link { color: var(--cyan); text-decoration: underline; word-break: break-all; }
.chat-msg-user .chat-link { color: #fff; }

.chat-typing { display: flex; gap: 5px; padding: 12px 15px; background: var(--surface-3); border-radius: 14px; border-bottom-left-radius: 5px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--tx-mut); animation: blink 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .18s; }
.chat-typing span:nth-child(3) { animation-delay: .36s; }

.chat-suggest { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 14px 12px; background: var(--bg-2); }
.chat-chip {
  background: rgba(124, 92, 255, .1); border: 1px solid rgba(124, 92, 255, .35); color: #c9bcff;
  border-radius: 99px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: .15s; white-space: nowrap;
}
.chat-chip:hover { background: rgba(124, 92, 255, .2); }

.chat-input-wrap { display: flex; gap: 9px; padding: 12px 13px; border-top: 1px solid var(--border); background: var(--surface); }
.chat-input {
  flex: 1; padding: 11px 14px; background: var(--bg-2);
  border: 1px solid var(--border-2); border-radius: var(--r-sm);
  color: var(--tx); font-family: inherit; font-size: 14px;
}
.chat-input:focus { outline: none; border-color: var(--violet); }
.chat-send {
  width: 44px; height: 44px; flex-shrink: 0; border: none; border-radius: var(--r-sm);
  background: var(--grad-btn); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.rating-block { align-items: center; }
.rating-card { background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-md); padding: 18px 22px; text-align: center; }
.rating-title { font-size: 14.5px; font-weight: 800; margin-bottom: 4px; }
.rating-sub { font-size: 12.5px; color: var(--tx-dim); margin-bottom: 10px; }
.rating-stars { display: flex; gap: 6px; justify-content: center; }
.star-btn { background: none; border: none; font-size: 26px; color: var(--tx-mut); cursor: pointer; transition: color .12s, transform .12s; padding: 2px; }
.star-btn.hover, .star-btn.active { color: #fbbf24; transform: scale(1.12); }
.rating-thanks-stars { font-size: 22px; color: #fbbf24; margin-bottom: 6px; }
.rating-thanks-text { font-size: 14.5px; font-weight: 800; }
.rating-thanks-sub { font-size: 12.5px; color: var(--tx-dim); margin-top: 3px; }

@media (max-width: 520px) {
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-panel {
    position: fixed; inset: auto 10px 84px 10px; width: auto; height: 65vh; max-height: 560px;
  }
}

/* когда открыта форма заказа — прячем плавающий чат */
body:has(#orderModal.active) .chat-widget { display: none !important; }

/* ── Страницы документов ───────────────────────────────────── */
.doc-wrap { max-width: 800px; margin: 0 auto; padding: 48px 24px 80px; }
.doc-wrap h1 { font-family: var(--font-h); font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.25; margin-bottom: 10px; }
.doc-date { font-size: 13.5px; color: var(--tx-mut); margin-bottom: 36px; }
.doc-body h2 { font-size: 19px; font-weight: 800; letter-spacing: -.01em; margin: 34px 0 14px; }
.doc-body p { font-size: 14.5px; color: var(--tx-dim); line-height: 1.75; margin-bottom: 13px; }
.doc-body strong { color: var(--tx); }
.doc-body ul, .doc-body ol { margin: 0 0 16px 22px; }
.doc-body li { font-size: 14.5px; color: var(--tx-dim); line-height: 1.7; margin-bottom: 7px; }
.doc-body a { color: var(--violet-2); }
.doc-body table { width: 100%; border-collapse: collapse; margin: 18px 0 24px; font-size: 14px; }
.doc-body th, .doc-body td { text-align: left; padding: 11px 14px; border: 1px solid var(--border-2); color: var(--tx-dim); }
.doc-body th { background: var(--surface-2); color: var(--tx); font-weight: 700; }
.doc-table-scroll { overflow-x: auto; }

/* ── Анимации появления ────────────────────────────────────── */
.reveal { opacity: 1; }
.reveal-ready { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal-ready.visible { opacity: 1; transform: none; }
.reveal-delay-1.visible { transition-delay: .08s; }
.reveal-delay-2.visible { transition-delay: .16s; }
.reveal-delay-3.visible { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal-ready { opacity: 1; transform: none; }
}

/* ── Адаптив ────────────────────────────────────────────────── */
@media (max-width: 940px) {
  .product-hero .container { grid-template-columns: 1fr; gap: 40px; }
  .p-visual { max-width: 480px; margin: 0 auto; width: 100%; }
}
@media (max-width: 640px) {
  .section { padding: 54px 0; }
  .hero { padding: 56px 0 30px; }
  .hero-cta .btn { width: 100%; }
  .hstat { flex: 1 1 100%; }
  .container { padding: 0 18px; }
  .modal { padding: 26px 20px 22px; }
  .cta-card { padding: 44px 22px; }
}
