/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Убираем дефолтную серо-синюю вспышку при тапе; для кнопок/чипов — лёгкий
   фирменный отклик вместо неё. Ощущается аккуратнее на тёмной теме. */
html { -webkit-tap-highlight-color: transparent; }
.btn, .chat-chip, .faq-question, .nav-burger, .nav-mobile a,
.chat-choice-item, .pricing-card .btn-buy { -webkit-tap-highlight-color: rgba(157,133,255,.2); }

:root {
  --green: #7c5cff;
  --green-dark: #6242f5;
  --green-light: #efebff;
  --green-glow: rgba(124,92,255,.25);
  --dark: #0d1020;
  --dark-2: #161b22;
  --dark-3: #21262d;
  --gray: #6e7681;
  --gray-light: #f6f8fa;
  --white: #ffffff;
  --border: #e6e8ec;
  --border-dark: rgba(255,255,255,.08);
  --radius: 18px;
  --radius-sm: 11px;
  --radius-xs: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,.07);
  --shadow-md: 0 8px 32px rgba(0,0,0,.1);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.15);
  --font: 'Manrope', -apple-system, BlinkMacSystemFont, sans-serif;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ===== REVEAL ANIMATIONS ===== */
/* Hidden state added by JS — content visible without JS */
.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s cubic-bezier(.4,0,.2,1), transform .65s cubic-bezier(.4,0,.2,1);
}
.reveal-ready.visible { opacity: 1; transform: none; }
.reveal-delay-1.reveal-ready { transition-delay: .1s; }
.reveal-delay-2.reveal-ready { transition-delay: .2s; }
.reveal-delay-3.reveal-ready { transition-delay: .3s; }
.reveal-delay-4.reveal-ready { transition-delay: .4s; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none !important;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background var(--transition);
}
.btn:hover::after { background: rgba(255,255,255,.08); }

.btn-sm  { padding: 9px 20px; font-size: 14px; }
.btn-lg  { padding: 17px 36px; font-size: 17px; }
.btn-full { width: 100%; justify-content: center; }
.btn-buy { padding: 18px 24px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; }

.btn-primary {
  background: var(--green);
  color: var(--white);
  border-color: var(--green);
  box-shadow: 0 4px 14px var(--green-glow);
}
.btn-primary:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
  box-shadow: 0 10px 28px rgba(124,92,255,.32);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0); }

.btn:focus-visible,
.faq-question:focus-visible,
.modal-close:focus-visible,
.chat-toggle:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

/* Animated pulsing CTA button */
.btn-animated {
  background: linear-gradient(135deg, var(--green) 0%, #0ea5e9 100%);
  border: none;
  box-shadow: 0 4px 20px rgba(124,92,255,.4);
  animation: btn-pulse 2.8s ease-in-out infinite;
}
.btn-animated:hover {
  box-shadow: 0 8px 30px rgba(124,92,255,.55);
  transform: translateY(-3px) scale(1.02);
  animation: none;
  background: linear-gradient(135deg, #6242f5 0%, #0284c7 100%);
}
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(124,92,255,.4); }
  50%       { box-shadow: 0 4px 36px rgba(124,92,255,.7), 0 0 0 8px rgba(124,92,255,.08); }
}

.btn-secondary {
  background: rgba(124,92,255,.08);
  color: var(--dark);
  border: 2px solid var(--border);
  font-weight: 600;
}
.btn-secondary:hover {
  background: rgba(124,92,255,.12);
  border-color: var(--green);
  color: var(--green-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--dark);
  border-color: var(--border);
  font-weight: 700;
}
.btn-outline:hover {
  border-color: var(--green);
  color: var(--green);
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px var(--green-glow);
}

.btn-white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
  font-weight: 700;
}
.btn-white:hover {
  background: var(--green-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.8);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 19px;
  color: var(--dark);
  letter-spacing: -.02em;
}
.logo-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 9px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='26.2' cy='37.6' r='8.2' fill='none' stroke='%23ffffff' stroke-width='5.6'/%3E%3Crect x='31.4' y='26.8' width='5.6' height='21.6' rx='2.8' fill='%23ffffff'/%3E%3Crect x='42.6' y='26.8' width='5.6' height='21.6' rx='2.8' fill='%23ffffff'/%3E%3Ccircle cx='45.4' cy='18.6' r='3.9' fill='%2322d3ee'/%3E%3C/svg%3E") center / 86% no-repeat,
    linear-gradient(140deg, #9d85ff 0%, #7c5cff 52%, #4527c9 100%);
  box-shadow: 0 4px 14px rgba(124,92,255,.45), inset 0 1px 0 rgba(255,255,255,.3), inset 0 0 0 1px rgba(255,255,255,.08);
  font-size: 0; color: transparent; /* прячем символ, показываем монограмму «ai» */
  transition: transform .2s, box-shadow .2s;
}
.logo:hover .logo-icon {
  transform: rotate(-8deg) scale(1.06);
  box-shadow: 0 6px 18px rgba(124,92,255,.55), inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 0 1px rgba(255,255,255,.1);
}
.header-nav { display: flex; gap: 32px; }
.header-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  transition: color var(--transition);
  padding: 4px 0;
  position: relative;
}
.header-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transform: scaleX(0);
  transition: transform var(--transition);
}
.header-nav a:hover { color: var(--dark); text-decoration: none; }
.header-nav a:hover::after { transform: scaleX(1); }

/* Кнопка личного кабинета в шапке — стеклянная пилюля с огранкой (не плоский аутлайн) */
.hdr-lk {
  display: inline-flex; align-items: center; gap: 8px;
  margin-left: 16px; padding: 9px 16px;
  font-size: 14px; font-weight: 600; color: var(--text, #f4f7fb); letter-spacing: -.01em;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.022));
  border: 1px solid rgba(255,255,255,.13); border-radius: 100px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 2px 8px rgba(0,0,0,.28);
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.hdr-lk svg { width: 16px; height: 16px; color: var(--acc); }
.hdr-lk:hover {
  transform: translateY(-1px);
  border-color: rgba(157,133,255,.5);
  background: linear-gradient(180deg, rgba(157,133,255,.16), rgba(157,133,255,.05));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 8px 22px rgba(157,133,255,.22);
  text-decoration: none;
}
@media (max-width: 900px) { .hdr-lk { display: none; } }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h1,
.section-header h2 {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -.03em;
  margin-bottom: 12px;
  line-height: 1.15;
}
.section-header p { font-size: 18px; color: var(--gray); }

/* ===== HERO ===== */
.hero {
  padding: 84px 0 90px;
  text-align: center;
  background: linear-gradient(175deg, #f5f2ff 0%, #f8fcff 50%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  top: -200px; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse, rgba(124,92,255,.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(124,92,255,.1);
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 28px;
  border: 1px solid rgba(124,92,255,.2);
  letter-spacing: .01em;
}
.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
@keyframes blink {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.85); }
}
.hero-title {
  font-size: clamp(46px, 7vw, 80px);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
  letter-spacing: -.04em;
}
.gradient-text {
  background: linear-gradient(120deg, var(--green) 0%, #0ea5e9 45%, var(--green) 90%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-pan 6s linear infinite;
}
@keyframes gradient-pan { to { background-position: 220% center; } }
.hero-subtitle {
  font-size: 20px;
  color: var(--gray);
  max-width: 540px;
  margin: 0 auto 44px;
  line-height: 1.65;
  font-weight: 400;
}
.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}
.hero-stats {
  display: inline-flex;
  align-items: center;
  gap: 36px;
  background: rgba(255,255,255,.8);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 16px 40px;
  backdrop-filter: blur(8px);
  flex-wrap: wrap;
  justify-content: center;
}
.stat { display: flex; flex-direction: column; align-items: center; }
.stat strong { font-size: 22px; font-weight: 800; color: var(--dark); letter-spacing: -.02em; }
.stat span   { font-size: 13px; color: var(--gray); font-weight: 500; }
.stat-divider { width: 1px; height: 36px; background: var(--border); }

/* ===== BENEFITS ===== */
.benefits { padding: 88px 0; background: var(--white); }
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefit-card {
  padding: 36px 30px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.benefit-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,92,255,.04), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.benefit-card:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.benefit-card:hover::before { opacity: 1; }
.benefit-icon-wrap {
  width: 58px; height: 58px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin-bottom: 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(124,92,255,.13), rgba(14,165,233,.1));
  border: 1px solid rgba(124,92,255,.16);
}
.benefit-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.01em; }
.benefit-card p  { font-size: 15px; color: var(--gray); line-height: 1.6; }

/* ===== HOW IT WORKS ===== */
.how-it-works { padding: 88px 0; background: var(--gray-light); }
.steps {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.step { flex: 1; min-width: 160px; max-width: 210px; text-align: center; }
.step-number {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--green), #0ea5e9);
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 6px 20px rgba(124,92,255,.35);
}
.step-content h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-content p  { font-size: 14px; color: var(--gray); line-height: 1.6; }
.step-arrow { font-size: 26px; color: var(--green); height: 56px; display: flex; align-items: center; opacity: .6; flex-shrink: 0; }

/* ===== PRICING ===== */
.pricing { padding: 88px 0; background: var(--gray-light); }
/* Гибкая сетка. ВАЖНО: витрина сгруппирована по брендам-категориям
   (.pricing-cat), поэтому на ДЕСКТОПЕ (≥769) justify-content переопределён
   на flex-start — карточки прижаты влево, под свой левый заголовок. Здесь
   базовый center оставлен для мобильной колонки (inert) — НЕ возвращать center
   на десктоп, иначе короткие категории отрываются от заголовков. */
.pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.pricing-card { flex: 0 0 336px; max-width: 336px; }
/* Витрина — первая секция страницы: компактнее сверху и снизу, мягкий
   градиент. Двойной класс — чтобы перебить мобильное правило
   «.pricing { padding: 64px 0 }» ниже по файлу (равная специфичность). */
.pricing.pricing--top {
  padding: 52px 0 64px;
  background: linear-gradient(175deg, #f5f2ff 0%, #f7fafc 55%, var(--gray-light) 100%);
}
.pricing--top .section-header { margin-bottom: 44px; }
/* «Обложка товара» — витрина выглядит как карточки маркетплейса.
   Градиент — в фирменных тонах вендора, глиф + короткий wordmark, тег SDK. */
.pcard-img {
  position: relative;
  height: 112px;
  border-radius: 12px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  color: #fff;
  flex-shrink: 0;
}
.pcard-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 75% at 18% 0%, rgba(255,255,255,.26), transparent 55%);
  pointer-events: none;
}
.pcard-glyph { font-size: 42px; line-height: 1; }
.pcard-x { font-size: 25px; font-weight: 900; letter-spacing: -.02em; }
.pcard-tag {
  position: absolute;
  top: 10px; right: 10px;
  z-index: 1;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  background: rgba(255,255,255,.92);
  color: var(--dark);
  padding: 3px 9px;
  border-radius: 99px;
}
.pcard-img--gpt        { background: linear-gradient(135deg, #10a37f, #0d8a6b 55%, #065f46); } /* аутентичный зелёный OpenAI — НЕ перекрашивать в бренд */
.pcard-img--claude     { background: linear-gradient(135deg, #e08a68, #d97757 45%, #a34d31); }
.pcard-img--claude-max { background: linear-gradient(135deg, #46312a, #7a4c38 55%, #d97757); }
.pcard-img--gemini     { background: linear-gradient(135deg, #4285f4, #7b6cf6 55%, #a142f4); }

/* Одинаковая высота шапки карточки, чтобы цены стояли на одной линии.
   Естественная высота однострочной шапки ~95px — значение ниже было бы
   пустым. Все описания подобраны так, чтобы помещаться в одну строку. */
@media (min-width: 981px) { .pricing-header { min-height: 96px; } }
/* Все карточки одного размера. «Популярную» выделяем не масштабом, а
   рамкой, свечением и бейджем (см. .pricing-card--featured в тёмной теме). */
.pricing-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  position: relative;
  transition: all var(--transition);
  background: var(--white);
  display: flex;
  flex-direction: column;
}
/* Кнопки покупки на одной линии по низу карточек любой высоты */
.pricing-card .btn-buy { margin-top: auto; }
/* Общая строка способов оплаты и гарантия — под всей витриной */
.pricing-methods--row { margin: 34px auto 0; max-width: 640px; }
.pricing .pricing-note { margin-top: 18px; }
/* Три УТП компактными чипами под витриной (замена hero-статистики) */
.pricing-usp {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 12px;
  margin-top: 18px;
}
.pricing-usp span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: #065f46;
  background: var(--green-light);
  border: 1px solid rgba(124,92,255,.2);
  border-radius: 100px;
  padding: 9px 16px;
  line-height: 1.3;
}
.pricing-usp .icn { width: 15px; height: 15px; flex-shrink: 0; color: #6242f5; }

/* Мобильная витрина: вертикальный список карточек. Никакого горизонтального
   свайпа — все 5 тарифов видно обычной прокруткой вниз, каждый читаем и удобно
   нажимается. Карточки компактнее: ниже обложка, плотнее отступы. */
@media (max-width: 768px) {
  .pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    padding: 8px 0 0;
  }
  .pricing-grid .pricing-card {
    flex: 1 1 auto;
    max-width: none;
    padding: 20px 18px;
  }
  /* у «популярной» карточки бейдж выступает вверх — даём ему воздух */
  .pricing-grid .pricing-card--featured { margin-top: 12px; }
  .pricing-features { margin-bottom: 22px; }
  .pricing-usp { flex-direction: column; align-items: stretch; max-width: 340px; margin-left: auto; margin-right: auto; }
  .pricing-usp span { justify-content: center; }
}
/* Десктоп: жёстко фиксируем размер карточек (страховка — идёт ПОСЛЕ мобильного
   блока, поэтому побеждает даже если мобильное правило где-то применится). */
@media (min-width: 769px) {
  .pricing-grid .pricing-card { flex: 0 0 336px; max-width: 336px; width: 336px; padding: 32px 28px; }
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.pricing-card--featured {
  border-color: var(--green);
  background: linear-gradient(160deg, #f5f2ff 0%, #ffffff 60%);
  box-shadow: 0 8px 40px rgba(13,17,23,.07);
}
.pricing-card--featured:hover { box-shadow: 0 16px 48px rgba(13,17,23,.1); }
.pricing-badge {
  position: absolute;
  top: -15px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--green), #0ea5e9);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 18px;
  border-radius: 100px;
  white-space: nowrap;
  letter-spacing: .02em;
}
.pricing-header h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.02em; }
.pricing-desc { font-size: 14px; color: var(--gray); margin-bottom: 28px; }
.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 32px;
}
.price-amount { font-size: 48px; font-weight: 900; color: var(--dark); letter-spacing: -.04em; }
.price-period { font-size: 16px; color: var(--gray); }
.pricing-features { list-style: none; margin-bottom: 36px; }
.pricing-features li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  font-size: 15px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  font-weight: 500;
}
.pricing-features li:last-child { border-bottom: none; }
.check { color: var(--green); font-weight: 800; flex-shrink: 0; font-size: 16px; }
.pricing-note {
  text-align: center;
  font-size: 15px;
  color: #065f46;
  max-width: 600px;
  margin: 0 auto;
  padding: 16px 24px;
  background: var(--green-light);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(124,92,255,.2);
  font-weight: 500;
}

/* ===== HERO TRUST ROW ===== */
.hero-trust {
  display: flex; align-items: center; justify-content: center;
  gap: 12px 20px; flex-wrap: wrap;
  margin-top: 26px;
}
.hero-trust .ht {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 500; color: var(--gray);
}
.hero-trust .ht-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--border); }

/* ===== PRICING EXTRAS ===== */
.pricing-trust { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.pricing-guarantee {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px; color: #065f46; font-weight: 600;
  background: var(--green-light); border: 1px solid rgba(124,92,255,.2);
  border-radius: var(--radius-sm); padding: 12px 16px; line-height: 1.4;
}
.pricing-methods { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pricing-method {
  font-size: 12px; color: var(--gray); background: var(--gray-light);
  border: 1px solid var(--border); padding: 5px 12px; border-radius: 100px; font-weight: 500;
}

/* ===== REVIEWS ===== */
.reviews { padding: 88px 0; background: var(--gray-light); }
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 14px;
  transition: all var(--transition);
}
.review-card:hover { border-color: rgba(124,92,255,.35); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.review-stars { color: #f59e0b; font-size: 16px; letter-spacing: 2px; }
.review-text { font-size: 15px; color: #2c333d; line-height: 1.65; flex: 1; }
.review-author { display: flex; align-items: center; gap: 12px; }
.review-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--green), #0ea5e9);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.review-name { font-size: 14.5px; font-weight: 700; }
.review-meta { font-size: 12.5px; color: var(--gray); }
.reviews-foot { text-align: center; margin-top: 34px; font-size: 14px; color: var(--gray); }
.reviews-foot b { color: var(--green-dark); }

/* responsive for benefits + reviews */
@media (max-width: 1000px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .reviews-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .benefits-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}

/* ===== FEATURES ===== */
.features { padding: 88px 0; background: var(--dark); color: var(--white); }
.features .section-header h2 { color: var(--white); }
.features .section-header p  { color: rgba(255,255,255,.5); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
.feature-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  background: var(--dark-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  transition: all var(--transition);
}
.feature-item:hover {
  background: #2a2f3d;
  border-color: rgba(124,92,255,.3);
  transform: translateY(-2px);
}
.feature-icon { font-size: 28px; flex-shrink: 0; filter: drop-shadow(0 2px 8px rgba(0,0,0,.3)); }
.feature-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.feature-item p  { font-size: 14px; color: rgba(255,255,255,.5); line-height: 1.5; }

/* ===== FAQ ===== */
.faq { padding: 88px 0; background: var(--gray-light); }
.faq-list { max-width: 740px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item:hover { border-color: rgba(124,92,255,.3); }
.faq-item.open  { border-color: var(--green); }
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 26px;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--dark);
  gap: 16px;
  letter-spacing: -.01em;
}
.faq-toggle {
  width: 28px; height: 28px;
  background: var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 400;
  color: var(--green);
  flex-shrink: 0;
  transition: all var(--transition);
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--green-light); }
.faq-answer { display: none; padding: 0 26px 22px; }
.faq-item.open .faq-answer { display: block; }
.faq-answer p { font-size: 15px; color: var(--gray); line-height: 1.75; }
.faq-answer a { color: var(--green); font-weight: 500; }

/* ===== CTA BANNER ===== */
.cta-banner {
  padding: 88px 0;
  background: linear-gradient(135deg, #064e3b 0%, #0c4a6e 100%);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(124,92,255,.2), transparent 70%);
  pointer-events: none;
}
.cta-banner h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; margin-bottom: 14px; letter-spacing: -.03em; }
.cta-banner p  { font-size: 18px; opacity: .75; margin-bottom: 40px; }

/* ===== FOOTER ===== */
.footer { background: var(--dark); color: var(--white); padding: 68px 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--border-dark);
}
.footer-brand .logo { color: var(--white); margin-bottom: 14px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,.45); max-width: 260px; line-height: 1.7; }
.footer-links h4, .footer-contact h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: rgba(255,255,255,.35); margin-bottom: 18px;
}
.footer-links, .footer-contact { display: flex; flex-direction: column; gap: 2px; }
.footer-links a, .footer-contact a {
  font-size: 14px; color: rgba(255,255,255,.65);
  padding: 5px 0; transition: color var(--transition);
}
.footer-links a:hover, .footer-contact a:hover { color: var(--white); text-decoration: none; }
.footer-hours { font-size: 13px; color: rgba(255,255,255,.3); margin-top: 8px; }
.footer-bottom { padding: 26px 0; text-align: center; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,.25); line-height: 1.9; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13,17,23,.65);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px;
  width: 100%;
  max-width: 490px;
  position: relative;
  transform: scale(.95) translateY(16px);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
  max-height: 90vh;
  max-height: min(90vh, 100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-close {
  position: absolute; top: 16px; right: 16px;
  background: var(--gray-light); border: none;
  width: 34px; height: 34px; border-radius: 50%;
  font-size: 15px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); transition: all var(--transition);
}
.modal-close:hover { background: var(--border); color: var(--dark); }
.modal-header { margin-bottom: 30px; }
.modal-header h2 { font-size: 26px; font-weight: 800; margin-bottom: 6px; letter-spacing: -.02em; }
.modal-header p  { font-size: 15px; color: var(--gray); }
.modal-header strong { color: var(--green); }

.order-form { display: flex; flex-direction: column; gap: 22px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label { font-size: 14px; font-weight: 600; color: var(--dark); }
.required { color: #ef4444; }

.input-prefix-wrap { position: relative; display: flex; }
.input-prefix {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 16px; font-weight: 700;
  color: var(--green);
  pointer-events: none;
}
.input-prefix-wrap input { padding-left: 30px !important; }

.form-group input {
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 16px; /* 16px: ниже этого iOS зумит страницу при фокусе на поле */
  color: var(--dark);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
  width: 100%;
}
.form-group input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(124,92,255,.12);
}
.form-group input.error { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.1); }
.field-hint { font-size: 12px; color: var(--gray); }

.form-notice {
  display: flex; gap: 12px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
}
.notice-icon { font-size: 18px; flex-shrink: 0; }
.form-notice p { font-size: 13px; color: #1e40af; line-height: 1.6; }

.form-agree { display: flex; gap: 12px; align-items: center; }
.form-agree input[type="checkbox"] {
  width: 24px; height: 24px;
  accent-color: var(--green);
  margin-top: 0; flex-shrink: 0; cursor: pointer;
}
.form-agree label { font-size: 13px; color: var(--gray); line-height: 1.6; cursor: pointer; }
.form-agree a { color: var(--green); font-weight: 500; }

.btn-pay {
  padding: 18px;
  font-size: 16px;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: -.01em;
}
.btn-pay-price { font-size: 18px; font-weight: 800; }
.btn-pay.loading { pointer-events: none; opacity: .7; }

/* ===== LEGAL PAGES ===== */
.legal-page { min-height: 80vh; padding: 60px 0; }
.legal-page h1 { font-size: 36px; font-weight: 800; margin-bottom: 8px; letter-spacing: -.02em; }
.legal-page .last-updated { font-size: 14px; color: var(--gray); margin-bottom: 44px; }
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 20px; font-weight: 700; margin: 36px 0 12px; }
.legal-content p, .legal-content li {
  font-size: 15px; color: #374151; line-height: 1.85; margin-bottom: 12px;
}
.legal-content ul { padding-left: 20px; }
.legal-content li { margin-bottom: 8px; }

/* ===== LIVE CHAT WIDGET ===== */
.chat-widget {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 900;
}
/* Chat choice popup */
.chat-choice {
  position: absolute;
  bottom: 70px; right: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(13,17,23,.12), 0 0 0 1px rgba(13,17,23,.05);
  padding: 8px;
  min-width: 220px;
  display: none;
  flex-direction: column;
  gap: 4px;
  animation: choiceFadeIn .18s ease;
  transform-origin: bottom right;
}
.chat-choice.open { display: flex; }
@keyframes choiceFadeIn {
  from { opacity:0; transform: scale(.9); }
  to   { opacity:1; transform: scale(1); }
}
.chat-choice-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  color: #0d1020 !important;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  transition: background .15s;
  white-space: nowrap;
}
.chat-choice-item:hover {
  background: #f5f2ff;
  text-decoration: none !important;
}
.chat-choice-ico { flex-shrink: 0; display: inline-flex; align-items: center; line-height: 0; }

.chat-toggle {
  width: 58px; height: 58px;
  background: linear-gradient(135deg, var(--green), #0ea5e9);
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(124,92,255,.45);
  transition: all var(--transition);
  position: relative;
}
.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 32px rgba(124,92,255,.6);
}
.chat-icon { display: flex; align-items: center; justify-content: center; }
.chat-unread {
  position: absolute; top: -4px; right: -4px;
  width: 20px; height: 20px;
  background: #ef4444; color: white;
  border-radius: 50%; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid white;
  animation: chat-bounce .6s ease-in-out infinite alternate;
}
@keyframes chat-bounce {
  from { transform: scale(1); }
  to   { transform: scale(1.15); }
}
.chat-panel {
  position: absolute;
  bottom: 72px; right: 0;
  width: 340px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(13,17,23,.13), 0 0 0 1px rgba(13,17,23,.05);
  display: none;
  flex-direction: column;
  overflow: hidden;
  transform-origin: bottom right;
  animation: chat-open .25s cubic-bezier(.34,1.56,.64,1);
}
.chat-panel.open { display: flex; }
@keyframes chat-open {
  from { opacity: 0; transform: scale(.92) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.chat-header {
  background: linear-gradient(135deg, #064e3b 0%, #0c4a6e 100%);
  padding: 18px 20px;
  position: relative;
}
/* Крестик в шапке — на мобиле FAB прячется за клавиатурой, нужен явный close */
.chat-close {
  position: absolute; top: 10px; right: 10px;
  width: 40px; height: 40px; border: none;
  background: rgba(255,255,255,.14); border-radius: 50%;
  display: none; align-items: center; justify-content: center;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .15s;
}
.chat-close:active { background: rgba(255,255,255,.26); }
@media (max-width: 520px) { .chat-close { display: flex; } }
.chat-agent { display: flex; align-items: center; gap: 12px; }
.chat-agent-avatar {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: white;
  border: 2px solid rgba(255,255,255,.3);
}
.chat-agent-name { font-size: 14px; font-weight: 700; color: white; }
.chat-agent-status { display: flex; align-items: center; gap: 6px; font-size: 12px; color: rgba(255,255,255,.75); margin-top: 2px; }
.status-dot {
  width: 7px; height: 7px; background: #4ade80; border-radius: 50%;
  animation: blink 2s ease-in-out infinite;
}
.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  max-height: 320px;
  background: #fafafa;
}
.chat-msg { display: flex; flex-direction: column; gap: 4px; }
.chat-msg-agent { align-items: flex-start; }
.chat-msg-user  { align-items: flex-end; }
.chat-bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg-agent .chat-bubble {
  background: var(--white);
  color: var(--dark);
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.chat-msg-user .chat-bubble {
  background: linear-gradient(135deg, var(--green), #0ea5e9);
  color: white;
  border-radius: 16px 4px 16px 16px;
}
.chat-time { font-size: 11px; color: var(--gray); padding: 0 4px; }
.chat-typing {
  display: flex; gap: 4px; align-items: center; padding: 10px 14px;
  background: var(--white); border-radius: 4px 16px 16px 16px;
  width: fit-content; box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.chat-typing span {
  width: 6px; height: 6px; background: var(--gray);
  border-radius: 50%; animation: typing-dot 1.4s ease-in-out infinite;
}
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes typing-dot {
  0%,60%,100% { transform: translateY(0); opacity: .4; }
  30%          { transform: translateY(-6px); opacity: 1; }
}
.chat-input-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
  background: var(--white);
}
.chat-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  font-family: var(--font);
  font-size: 16px; /* 16px: иначе iOS зумит при фокусе */
  outline: none;
  transition: border-color var(--transition);
  background: var(--gray-light);
}
.chat-input:focus { border-color: var(--green); background: white; }
.chat-send {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--green), #0ea5e9);
  border: none; border-radius: 50%;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all var(--transition);
}
.chat-send:hover { transform: scale(1.08); box-shadow: 0 4px 12px var(--green-glow); }

/* ── Chat system messages (user-facing) ── */
.chat-msg-system { align-items: center; }
.chat-system-label {
  font-size: 12px;
  color: var(--gray);
  background: rgba(124,92,255,.08);
  border: 1px solid rgba(124,92,255,.18);
  border-radius: 100px;
  padding: 5px 14px;
  text-align: center;
  max-width: 100%;
}

/* ── Rating block ── */
.rating-block { align-items: stretch !important; }
.rating-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.rating-title { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.rating-sub   { font-size: 13px; color: var(--gray); margin-bottom: 14px; }
.rating-stars { display: flex; gap: 6px; justify-content: center; }
.star-btn {
  background: none; border: none; font-size: 26px; cursor: pointer;
  color: #d1d5db; transition: color .15s, transform .15s;
  line-height: 1;
}
.star-btn.hover, .star-btn.active { color: #f59e0b; }
.star-btn.hover  { transform: scale(1.15); }
.star-btn:disabled { cursor: default; }
.rating-thanks { padding: 8px 0; }
.rating-thanks-stars { font-size: 24px; color: #f59e0b; letter-spacing: 2px; margin-bottom: 8px; }
.rating-thanks-text  { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.rating-thanks-sub   { font-size: 12px; color: var(--gray); }

/* ===== ADMIN PANEL ===== */
.admin-body {
  background: #0f1117;
  color: white;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0d1020 0%, #161b22 100%);
  padding: 24px;
}
.admin-login-card {
  background: var(--dark-2);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  padding: 48px 44px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 64px rgba(0,0,0,.5);
}
.admin-login-card .logo { color: white; margin-bottom: 32px; }
.admin-login-card h1 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.admin-login-card p { font-size: 14px; color: rgba(255,255,255,.45); margin-bottom: 32px; }
.admin-form { display: flex; flex-direction: column; gap: 16px; }
.admin-form label { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.6); margin-bottom: 4px; display: block; }
.admin-form input {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  color: white; font-family: var(--font); font-size: 15px; outline: none;
  transition: border-color var(--transition);
}
.admin-form input:focus { border-color: var(--green); background: rgba(255,255,255,.08); }
.admin-form input::placeholder { color: rgba(255,255,255,.3); }
.admin-error { color: #f87171; font-size: 13px; display: none; }
.admin-error.show { display: block; }

.admin-layout {
  display: none;
  flex: 1;
  height: 100vh;
  overflow: hidden;
}
.admin-layout.show { display: flex; }

.admin-sidebar {
  width: 300px; min-width: 300px;
  background: var(--dark-2);
  border-right: 1px solid var(--border-dark);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.admin-sidebar-header {
  padding: 20px 20px 16px;
  border-bottom: 1px solid var(--border-dark);
  display: flex; align-items: center; justify-content: space-between;
}
.admin-sidebar-header .logo { color: white; font-size: 16px; }
.admin-logout {
  font-size: 12px; color: rgba(255,255,255,.4);
  background: none; border: 1px solid rgba(255,255,255,.1);
  border-radius: 6px; padding: 4px 10px; cursor: pointer; color: rgba(255,255,255,.5);
  font-family: var(--font); transition: all var(--transition);
}
.admin-logout:hover { border-color: #f87171; color: #f87171; }
.admin-chat-list {
  flex: 1; overflow-y: auto;
  padding: 10px 0;
}
.admin-chat-item {
  padding: 14px 20px; cursor: pointer;
  border-left: 3px solid transparent;
  transition: all var(--transition);
  display: flex; flex-direction: column; gap: 4px;
}
.admin-chat-item:hover { background: rgba(255,255,255,.04); }
.admin-chat-item.active { background: rgba(124,92,255,.08); border-left-color: var(--green); }
.admin-chat-item.has-unread { border-left-color: #f59e0b; }
.admin-chat-name { font-size: 14px; font-weight: 600; color: white; }
.admin-chat-preview { font-size: 12px; color: rgba(255,255,255,.4); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-chat-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 2px; }
.admin-chat-time { font-size: 11px; color: rgba(255,255,255,.3); }
.admin-unread-badge {
  background: #f59e0b; color: white;
  font-size: 10px; font-weight: 700;
  padding: 2px 7px; border-radius: 100px;
}
.admin-empty {
  padding: 40px 20px; text-align: center;
  color: rgba(255,255,255,.3); font-size: 14px;
}

.admin-main {
  flex: 1; display: flex; flex-direction: column; overflow: hidden;
  background: #0f1117;
}
.admin-main-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3); font-size: 15px; text-align: center;
}
.admin-chat-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--border-dark);
  display: flex; align-items: center; gap: 14px;
  background: var(--dark-2);
  min-height: 70px;
}
.admin-chat-avatar {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--green), #0ea5e9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: white; flex-shrink: 0;
}
.admin-chat-info-name { font-size: 15px; font-weight: 700; color: white; }
.admin-chat-info-sub  { font-size: 12px; color: rgba(255,255,255,.4); }

.admin-messages {
  flex: 1; padding: 20px 24px;
  overflow-y: auto; display: flex; flex-direction: column; gap: 14px;
  background: #0f1117;
}
.admin-msg { display: flex; flex-direction: column; gap: 4px; }
.admin-msg-user   { align-items: flex-start; }
.admin-msg-agent  { align-items: flex-end; }
.admin-bubble {
  max-width: 70%; padding: 10px 14px;
  border-radius: 16px; font-size: 14px; line-height: 1.55; word-break: break-word;
}
.admin-msg-user .admin-bubble {
  background: var(--dark-3); color: rgba(255,255,255,.85);
  border-radius: 4px 16px 16px 16px;
}
.admin-msg-agent .admin-bubble {
  background: linear-gradient(135deg, var(--green), #0ea5e9); color: white;
  border-radius: 16px 4px 16px 16px;
}
.admin-msg-label { font-size: 11px; color: rgba(255,255,255,.3); padding: 0 4px; }

.admin-input-wrap {
  padding: 16px 24px;
  border-top: 1px solid var(--border-dark);
  background: var(--dark-2);
  display: flex; gap: 10px;
}
.admin-input {
  flex: 1; padding: 12px 18px;
  background: rgba(255,255,255,.06);
  border: 1.5px solid rgba(255,255,255,.1);
  border-radius: 100px; color: white;
  font-family: var(--font); font-size: 14px; outline: none;
  transition: border-color var(--transition);
}
.admin-input:focus { border-color: var(--green); background: rgba(255,255,255,.08); }
.admin-input::placeholder { color: rgba(255,255,255,.3); }
.admin-send {
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--green), #0ea5e9);
  border: none; border-radius: 100px;
  color: white; font-family: var(--font); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all var(--transition);
}
.admin-send:hover { transform: translateY(-1px); box-shadow: 0 4px 12px var(--green-glow); }

/* ===== SUCCESS PAGE ===== */
.success-page {
  min-height: 85vh; display: flex; align-items: center;
  justify-content: center; padding: 60px 24px;
  background: linear-gradient(175deg, #f5f2ff 0%, #f8fcff 60%, #ffffff 100%);
}
.success-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 52px;
  max-width: 520px; width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.success-icon {
  width: 88px; height: 88px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 44px;
  margin: 0 auto 32px;
  animation: success-pop .5s cubic-bezier(.34,1.56,.64,1);
}
@keyframes success-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}
.success-card h1 { font-size: 30px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.02em; }
.success-card p  { font-size: 16px; color: var(--gray); line-height: 1.7; margin-bottom: 16px; }
.success-steps {
  background: var(--gray-light);
  border-radius: var(--radius-sm);
  padding: 22px 26px;
  text-align: left; margin: 28px 0;
}
.success-step-row {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px; color: var(--dark);
}
.success-step-row:last-child { border-bottom: none; }
.success-step-num {
  width: 24px; height: 24px;
  background: var(--green); color: white;
  border-radius: 50%; font-size: 12px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.manager-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(135deg, #229ED9 0%, #1a7fc1 100%);
  color: white !important; text-decoration: none !important;
  padding: 18px 36px;
  border-radius: var(--radius-sm);
  font-size: 17px; font-weight: 700;
  letter-spacing: -.01em;
  margin-top: 8px;
  box-shadow: 0 6px 24px rgba(34,158,217,.4);
  animation: manager-pulse 2.5s ease-in-out infinite;
  transition: all var(--transition);
}
.manager-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 10px 32px rgba(34,158,217,.55);
  animation: none;
}
@keyframes manager-pulse {
  0%,100% { box-shadow: 0 6px 24px rgba(34,158,217,.4); }
  50%      { box-shadow: 0 6px 36px rgba(34,158,217,.65), 0 0 0 8px rgba(34,158,217,.08); }
}
.manager-btn-icon { font-size: 22px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .header-nav { display: none; }
  .hero { padding: 72px 0 60px; }
  .steps { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
  .step { max-width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .modal { padding: 30px 22px 26px; }
  .modal-header { margin-bottom: 24px; padding-right: 34px; }
  .modal-header h2 { font-size: 22px; }
  .chat-panel { width: 300px; right: 0; }
  .admin-sidebar { width: 260px; min-width: 260px; }
  .success-card { padding: 40px 26px; }
}
@media (max-width: 700px) {
  .hero-stats { flex-direction: column; border-radius: var(--radius); padding: 20px; gap: 16px; }
  .stat-divider { width: 100%; height: 1px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  /* Чат-панель = управляемый bottom-sheet: fixed к вьюпорту, поднимается над
     iOS-клавиатурой скриптом (visualViewport). Симметричные поля 12/12. */
  .chat-panel {
    position: fixed; left: 12px; right: 12px; width: auto;
    bottom: calc(84px + env(safe-area-inset-bottom));
    max-height: min(70dvh, calc(100dvh - 150px));
    border-radius: 20px; transform-origin: bottom center;
  }
  .chat-messages { min-height: 200px; padding: 16px 14px; }
  .chat-input-wrap { gap: 10px; }
  .chat-input { padding: 12px 16px; }
  .chat-send { width: 46px; height: 46px; }
  .admin-sidebar { display: none; }

  /* Плавающая кнопка чата перекрывала текст в подвале и карточки
     преимуществ — оставляем под неё запас снизу и уменьшаем саму кнопку */
  .footer-bottom { padding-bottom: 84px; }
  .chat-widget { bottom: 16px; right: 16px; }
  .chat-toggle { width: 50px; height: 50px; }
  .chat-choice { bottom: 60px; }
}

/* ===== SAFETY / NO-RISK ===== */
.safety { padding: 88px 0; background: var(--white); }
.safety-guarantee {
  display: flex; align-items: center; gap: 20px;
  max-width: 760px; margin: 0 auto 40px;
  padding: 26px 30px;
  background: linear-gradient(135deg, #f5f2ff, #f8fcff);
  border: 1.5px solid rgba(124,92,255,.25);
  border-radius: var(--radius);
  box-shadow: 0 8px 32px rgba(124,92,255,.1);
}
.sg-badge {
  width: 60px; height: 60px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 30px; border-radius: 16px;
  background: var(--white); box-shadow: 0 4px 14px rgba(124,92,255,.18);
}
.sg-text h3 { font-size: 19px; font-weight: 800; margin-bottom: 4px; letter-spacing: -.01em; }
.sg-text p { font-size: 14.5px; color: var(--gray); line-height: 1.55; }
.safety-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 1000px; margin: 0 auto; }
.safety-item {
  padding: 24px; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); transition: all var(--transition);
}
.safety-item:hover { border-color: rgba(124,92,255,.35); box-shadow: var(--shadow); transform: translateY(-3px); }
.si-ico {
  width: 46px; height: 46px; margin-bottom: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; border-radius: 13px;
  background: linear-gradient(135deg, rgba(124,92,255,.12), rgba(14,165,233,.1));
  border: 1px solid rgba(124,92,255,.15);
}
.safety-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; letter-spacing: -.01em; }
.safety-item p { font-size: 13.5px; color: var(--gray); line-height: 1.55; }

/* ===== ANCHOR OFFSET (sticky header) ===== */
section[id] { scroll-margin-top: 84px; }

/* ===== RESPONSIVE: new sections ===== */
@media (max-width: 900px) {
  .hero-trust .ht-sep { display: none; }
  .safety-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  /* Единая вертикальная шкала отступов секций — убирает разнобой 64/72px
     и «мёртвые» тёмные полосы между секциями (ощущение дешевизны). */
  .how-it-works, .safety, .pricing, .features, .faq, .cta-banner { padding: 52px 0; }
  .section-header { margin-bottom: 30px; }
  .hero-actions { margin-bottom: 44px; }
  .chat-widget { right: 16px; }
}
@media (max-width: 560px) {
  .safety-grid { grid-template-columns: 1fr; }
  /* Баннер-гарантия строкой (бейдж слева), а не столбцом по центру — плотнее и ровнее */
  .safety-guarantee { flex-direction: row; align-items: center; text-align: left; gap: 16px; padding: 20px 18px; margin-bottom: 28px; }
}

/* ============================================================
   POLISH LAYER — micro-interactions & motion (added)
   ============================================================ */

/* Бегущий блик по «живым» кнопкам */
.btn-animated { position: relative; overflow: hidden; }
.btn-animated::before {
  content: "";
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-18deg);
  animation: btn-shine 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shine {
  0%, 60% { left: -120%; }
  100%    { left: 130%; }
}

/* Иконка преимущества слегка подпрыгивает при наведении на карточку */
.benefit-card:hover .benefit-icon-wrap { transform: translateY(-3px) scale(1.06) rotate(-3deg); }
.benefit-icon-wrap { transition: transform .3s cubic-bezier(.34,1.56,.64,1); }

/* Карточки «что входит» — мягкий подъём */
.feature-item { transition: transform .25s var(--transition), background .25s; }
.feature-item:hover .feature-icon { transform: scale(1.15) rotate(-6deg); transition: transform .3s cubic-bezier(.34,1.56,.64,1); }

/* Пульсация бейджа тарифа, чтобы притягивал взгляд */
.pricing-badge { animation: badge-pop 2.6s ease-in-out infinite; }
@keyframes badge-pop {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-2px) scale(1.05); }
}

/* Уважаем системную настройку «меньше движения» */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   CALM LAYER (Apple-минимал) — убрать бесконечное движение,
   свести green→blue к одному плоскому акценту, нейтральные
   тени, спокойнее заголовок. Движение — только на действие.
   ============================================================ */

/* — стоп всем «вечным» анимациям — */
.btn-animated, .pricing-badge, .badge-dot, .status-dot, .chat-unread, .manager-btn { animation: none !important; }
.btn-animated::before { display: none !important; }            /* убираем «блик» по кнопке */
.gradient-text { animation: none !important; }
.benefit-card:hover .benefit-icon-wrap, .feature-item:hover .feature-icon { transform: none !important; }
.reveal-ready { transform: translateY(12px); transition-duration: .45s, .45s; }

/* — один плоский акцент (без градиента и второго синего #0ea5e9) — */
.btn-animated { background: var(--green) !important; box-shadow: 0 1px 2px rgba(13,17,23,.06), 0 6px 18px rgba(124,92,255,.16) !important; }
.btn-animated:hover { background: var(--green-dark) !important; box-shadow: 0 2px 5px rgba(13,17,23,.08), 0 10px 24px rgba(124,92,255,.2) !important; transform: translateY(-2px); }
/* fix: белая кнопка на тёмной CTA-секции — не заливаем её зелёным (иначе зелёный текст на зелёном) */
.btn-white.btn-animated { background: var(--white) !important; color: var(--green-dark) !important; box-shadow: 0 2px 12px rgba(0,0,0,.2) !important; }
.btn-white.btn-animated:hover { background: var(--green-light) !important; color: var(--green-dark) !important; }
.btn-primary { box-shadow: 0 1px 2px rgba(13,17,23,.06), 0 6px 18px rgba(124,92,255,.16); }
.gradient-text { background: none !important; -webkit-text-fill-color: var(--green) !important; color: var(--green) !important; }
.step-number { background: var(--green) !important; box-shadow: 0 4px 14px rgba(124,92,255,.18) !important; }
.pricing-badge { background: var(--green) !important; }
.chat-toggle, .chat-send { background: var(--green) !important; box-shadow: 0 6px 20px rgba(124,92,255,.28) !important; }
.chat-toggle:hover { box-shadow: 0 8px 26px rgba(124,92,255,.38) !important; }
.chat-msg-user .chat-bubble { background: var(--green) !important; }
.chat-header { background: #241d52 !important; }
.si-ico { background: var(--green-light) !important; border-color: rgba(124,92,255,.16) !important; }
.cta-banner { background: #0c3a2b !important; }

/* — нейтральная тень вместо цветного свечения — */
.benefit-card:hover { box-shadow: 0 2px 6px rgba(13,17,23,.05), 0 12px 28px rgba(13,17,23,.08) !important; }

/* — спокойный заголовок (меньше «постера», больше продукта) — */
.hero-title { font-weight: 700; font-size: clamp(40px, 5.5vw, 56px); letter-spacing: -.025em; }
.section-header h2 { font-weight: 700; }

/* ============================================================
   DARK THEME 2.0 — премиальная тёмная тема AI-витрины.
   Слой ПОСЛЕДНИЙ в каскаде: переопределяет светлую базу и Calm-слой
   точечно, по компонентам (токены не трогаем — их семантика в базе
   завязана на светлую тему). Дисплейный шрифт заголовков — Unbounded
   (подключается в <head> страниц вместе с Inter).
   ============================================================ */

:root {
  --bg0: #06070f;          /* самый глубокий фон (футер, край страницы) */
  --bg1: #0a0c17;          /* фон секций */
  --bg2: #0d1020;          /* чередование секций */
  --surface: #141731;      /* карточки, модалка, панели */
  --line: rgba(255,255,255,.09);
  --line-strong: rgba(255,255,255,.16);
  --text: #e9eef5;
  --text-dim: #9aa4b2;
  --text-faint: #67717f;
  --acc: #9d85ff;          /* чуть ярче базового зелёного — читается на тёмном */
  --font-display: 'Space Grotesk', 'Manrope', sans-serif;
}

/* — база — */
body { background: var(--bg1); color: var(--text); }
::selection { background: rgba(157,133,255,.35); color: #fff; }

/* — шапка: тёмное стекло — */
.header {
  background: rgba(10,12,28,.72);
  border-bottom: 1px solid var(--line);
}
.logo { color: var(--text); }
.logo-text { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: 0; }
.header-nav a { color: var(--text-dim); }
.header-nav a:hover { color: var(--text); }

/* — типографика секций — */
.section-header h1,
.section-header h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(24px, 3.2vw, 38px);
  letter-spacing: 0;
  color: #f4f7fb;
}
.section-header p { color: var(--text-dim); }

/* — витрина: тёмное «поле» со свечениями и сеткой — */
.pricing { background: var(--bg1); }
.pricing.pricing--top {
  padding: 64px 0 84px;
  background:
    radial-gradient(52% 46% at 20% -4%, rgba(124,92,255,.17), transparent 62%),
    radial-gradient(44% 40% at 80% 0%, rgba(99,102,241,.13), transparent 62%),
    var(--bg1);
  position: relative;
  overflow: hidden;
}
.pricing.pricing--top::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(72% 64% at 50% 0%, #000 20%, transparent 100%);
  mask-image: radial-gradient(72% 64% at 50% 0%, #000 20%, transparent 100%);
  pointer-events: none;
}
.pricing--top .container { position: relative; }

/* — карточки товаров: тёмное стекло — */
.pricing-card {
  background: linear-gradient(180deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.02) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 18px 44px rgba(0,0,0,.35);
}
.pricing-card:hover {
  border-color: var(--line-strong);
  box-shadow: 0 26px 60px rgba(0,0,0,.5);
  transform: translateY(-6px);
}
.pricing-card--featured {
  border-color: rgba(157,133,255,.55);
  background: linear-gradient(180deg, rgba(157,133,255,.10) 0%, rgba(255,255,255,.02) 55%);
  box-shadow: 0 22px 56px rgba(0,0,0,.45), 0 0 44px rgba(124,92,255,.14);
}
.pricing-card--featured:hover { box-shadow: 0 28px 64px rgba(0,0,0,.55), 0 0 56px rgba(124,92,255,.2); }
@media (min-width: 981px) {
  .pricing-card--featured,
  .pricing-card--featured.reveal-ready,
  .pricing-card--featured.reveal-ready.visible {
    box-shadow: 0 22px 56px rgba(0,0,0,.45), 0 0 44px rgba(124,92,255,.16);
  }
  .pricing-card--featured:hover,
  .pricing-card--featured.reveal-ready.visible:hover {
    box-shadow: 0 30px 68px rgba(0,0,0,.55), 0 0 60px rgba(124,92,255,.22);
  }
}
/* свечение карточки в цвет вендора при наведении */
.pricing-card:has(.pcard-img--gemini):hover     { border-color: rgba(124,108,246,.5);  box-shadow: 0 26px 60px rgba(0,0,0,.5), 0 0 48px rgba(124,58,237,.2); }
.pricing-card:has(.pcard-img--claude):hover     { border-color: rgba(217,119,87,.5);   box-shadow: 0 26px 60px rgba(0,0,0,.5), 0 0 48px rgba(217,119,87,.18); }
.pricing-card:has(.pcard-img--claude-max):hover { border-color: rgba(217,119,87,.45);  box-shadow: 0 26px 60px rgba(0,0,0,.5), 0 0 48px rgba(217,119,87,.15); }

/* — обложки товаров: сочнее, с бликом, точечным паттерном и тенью глифа — */
.pcard-img { height: 128px; border-radius: 14px; margin-bottom: 20px; }
.pcard-img::before {
  content: '';
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.22) 1px, transparent 1.4px);
  background-size: 13px 13px;
  opacity: .3;
  -webkit-mask-image: linear-gradient(200deg, #000 15%, transparent 70%);
  mask-image: linear-gradient(200deg, #000 15%, transparent 70%);
  pointer-events: none;
}
.pcard-img::after { background: radial-gradient(120% 95% at 18% -8%, rgba(255,255,255,.22), transparent 55%); }
.pcard-glyph { font-size: 46px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.45)); }
.pcard-x { font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: 0; text-shadow: 0 4px 14px rgba(0,0,0,.4); }
.pcard-tag { background: rgba(7,9,13,.55); color: #fff; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(4px); }
.pcard-img--gpt        { background: radial-gradient(130% 140% at 16% -10%, #38d9ab 0%, #10a37f 42%, #04503c 100%); } /* аутентичный зелёный OpenAI */
.pcard-img--claude     { background: radial-gradient(130% 140% at 16% -10%, #f4ab8a 0%, #d97757 45%, #86381c 100%); }
.pcard-img--claude-max { background: radial-gradient(130% 140% at 16% -10%, #e08a63 0%, #78452e 48%, #1d130d 100%); }
.pcard-img--gemini     { background: radial-gradient(130% 140% at 16% -10%, #93b8ff 0%, #5b7cf7 45%, #6d28d9 100%); }

/* — содержимое карточки — */
.pricing-header h3 { color: #f4f7fb; font-size: 21px; }
.pricing-desc { color: var(--text-dim); }
/* nowrap: внутри «1 290₽» есть пробел — без запрета цена ломалась на две
   строки на узких экранах. Если строка целиком не влезает, переносится
   только период («/ месяц»), а не половина числа. */
.pricing-price { flex-wrap: wrap; row-gap: 2px; }
.price-amount { color: #fff; font-size: 44px; white-space: nowrap; }
.price-period { color: var(--text-faint); white-space: nowrap; }
@media (max-width: 768px) {
  .price-amount { font-size: 36px; }
  .price-period { font-size: 14px; }
  .pricing-header h3 { font-size: 20px; }
}
.pricing-features li { color: #c7cfdb; border-bottom-color: rgba(255,255,255,.06); }
.check { color: var(--acc); }
.pricing-badge {
  background: linear-gradient(90deg, #7c5cff, #9d85ff) !important;
  box-shadow: 0 6px 20px rgba(124,92,255,.45);
  font-weight: 700;
}

/* — способы оплаты и чипы УТП — */
.pricing-usp span {
  color: #c8baff;
  background: rgba(157,133,255,.09);
  border-color: rgba(157,133,255,.28);
}
.pricing-usp .icn { color: var(--acc); }

/* Категории-разделители витрины по брендам. Полноширинный флекс-элемент
   (flex-basis:100%) переносит карточки бренда на новую строку — существующие
   правила .pricing-grid > .pricing-card не затрагиваются (заголовок не карточка). */
.pricing-cat {
  flex: 0 0 100%; width: 100%;
  display: flex; align-items: center; gap: 10px;
  margin: 14px 4px 0;
}
.pricing-cat:first-child { margin-top: 0; }
.pc-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.pricing-cat--gpt    .pc-dot { background: #7c5cff; box-shadow: 0 0 10px rgba(124,92,255,.6); }
.pricing-cat--claude .pc-dot { background: #d97757; box-shadow: 0 0 10px rgba(217,119,87,.55); }
.pricing-cat--gemini .pc-dot { background: #7b6cf6; box-shadow: 0 0 10px rgba(123,108,246,.55); }
.pc-name { font-size: 15px; font-weight: 800; color: var(--text); letter-spacing: -.01em; }
.pc-vendor { font-size: 12px; color: var(--text-faint); }
.pc-line { flex: 1; height: 1px; min-width: 20px; background: linear-gradient(90deg, rgba(255,255,255,.11), transparent); }

/* ДЕСКТОП (≥769): карточки категории прижаты ВЛЕВО — ровно под свой левый
   заголовок (раньше justify-content:center уводил короткие категории —
   ChatGPT 2 карточки, Gemini 1 — к центру, в отрыв от заголовка). Блок ниже
   базовых .pricing-cat правил → margin-override выигрывает по порядку каскада.
   Мобильная колонка (≤768) не затронута: всё внутри min-width:769. */
@media (min-width: 769px) {
  .pricing-grid { justify-content: flex-start; }
  /* дот-маркер заголовка встаёт вровень с левым краем карточек (0 сбоку),
     больше воздуха перед новой категорией — читается как единый блок */
  .pricing-cat { margin: 32px 0 0; }
  /* полоска-«полка» бренда: у начала — брендовый тон, мягко гаснет, НЕ доходя
     до правого края → пустота справа у коротких категорий = осознанный воздух */
  .pricing-cat .pc-line {
    background: linear-gradient(90deg,
      var(--pc-accent, rgba(255,255,255,.20)) 0%,
      rgba(255,255,255,.10) 20%,
      rgba(255,255,255,0)   80%);
  }
  .pricing-cat--gpt    { --pc-accent: rgba(124,92,255,.45); }
  .pricing-cat--claude { --pc-accent: rgba(217,119,87,.42); }
  .pricing-cat--gemini { --pc-accent: rgba(123,108,246,.45); }
}

/* — «Как это работает» — */
.how-it-works { background: var(--bg2); }
.step-content h3 { color: var(--text); }
.step-content p { color: var(--text-dim); }
.step-arrow { color: var(--acc); opacity: .5; }

/* — «Покупка без риска» — */
.safety { background: var(--bg1); }
/* Гарантия-баннер = «герой» секции: акцентное стекло + мягкое зелёное свечение. */
.safety-guarantee {
  border: 1px solid rgba(157,133,255,.24);
  border-radius: 18px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(157,133,255,.15), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.015) 55%, rgba(255,255,255,.008) 100%),
    #10151d;
  box-shadow:
    0 1px 2px rgba(0,0,0,.42),
    0 18px 44px -10px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.07),
    inset 0 -1px 0 rgba(0,0,0,.30),
    0 0 44px rgba(157,133,255,.10);
}
.sg-badge {
  background: linear-gradient(160deg, rgba(157,133,255,.20), rgba(157,133,255,.09));
  border: 1px solid rgba(157,133,255,.28);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -1px 0 rgba(0,0,0,.22),
    0 4px 12px -1px rgba(157,133,255,.30);
}
.sg-text h3 { color: var(--text); }
.sg-text p { color: var(--text-dim); }
/* Карточки-пункты — тот же многослойный рецепт тёмного стекла, что строки витрины. */
.safety-item {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 18px;
  background:
    radial-gradient(125% 85% at 22% -25%, rgba(255,255,255,.055), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.062) 0%, rgba(255,255,255,.017) 46%, rgba(255,255,255,.010) 100%),
    #10151d;
  box-shadow:
    0 1px 2px rgba(0,0,0,.42),
    0 10px 26px -6px rgba(0,0,0,.40),
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.30);
}
.safety-item:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.14);
  box-shadow:
    0 1px 2px rgba(0,0,0,.42),
    0 22px 46px -10px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 40px rgba(157,133,255,.14);
}
.safety-item h4 { color: var(--text); }
.safety-item p { color: var(--text-dim); }
.si-ico {
  background: rgba(157,133,255,.12) !important;
  border: 1px solid rgba(157,133,255,.22) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    inset 0 -1px 0 rgba(0,0,0,.22),
    0 3px 8px rgba(0,0,0,.34);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.safety-item:hover .si-ico {
  border-color: rgba(157,133,255,.42) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -1px 0 rgba(0,0,0,.22),
    0 4px 14px -2px rgba(157,133,255,.40);
}

/* — Отзывы — (тёмная тема: базовый .reviews CSS был светлым и мёртвым, секции
   на странице не было; красим в один язык с safety/faq) */
.reviews { background: var(--bg1); }
.reviews .section-header h2 { color: var(--text); }
.reviews .section-header p  { color: var(--text-dim); }
.reviews-stat {
  display: flex; align-items: baseline; justify-content: center; gap: 10px;
  flex-wrap: wrap; margin: -8px 0 30px; text-align: center;
}
.rs-num { font-size: 30px; font-weight: 800; color: var(--acc); letter-spacing: -.02em; line-height: 1; }
.rs-label { font-size: 14.5px; color: var(--text-dim); }
.review-card { background: rgba(255,255,255,.035); border-color: var(--line); }
.review-card:hover { border-color: rgba(157,133,255,.4); box-shadow: 0 14px 36px rgba(0,0,0,.4); }
.review-stars { color: #f5b544; }
.review-text { color: var(--text-dim); }
.review-name { color: var(--text); }
.review-meta { color: var(--text-faint); }
.reviews-foot { color: var(--text-dim); }
.reviews-foot b { color: var(--acc); }

/* — FAQ — */
.faq { background: var(--bg2); }
/* Стекло витрины + контактная/амбиентная тень. Радиус 18px, кромка 1px. */
.faq-item {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 18px;
  background:
    radial-gradient(125% 85% at 22% -25%, rgba(255,255,255,.055), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.062) 0%, rgba(255,255,255,.017) 46%, rgba(255,255,255,.010) 100%),
    #10151d;
  box-shadow:
    0 1px 2px rgba(0,0,0,.42),
    0 10px 26px -6px rgba(0,0,0,.40),
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.30);
  /* opacity/transform .45s возвращают въезд-по-скроллу (этот shorthand иначе
     перебивает transition у .reveal-ready); фон НЕ анимируем (градиенты не
     интерполируются). */
  transition:
    opacity .45s cubic-bezier(.4,0,.2,1),
    transform .45s cubic-bezier(.4,0,.2,1),
    box-shadow .24s cubic-bezier(.4,0,.2,1),
    border-color .2s ease;
}
.faq-item:not(.open):hover {
  border-color: rgba(255,255,255,.14);
  box-shadow:
    0 1px 2px rgba(0,0,0,.42),
    0 22px 46px -10px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.08),
    0 0 40px -8px rgba(157,133,255,.14);
}
.faq-item.open {
  border-color: rgba(157,133,255,.42);
  background:
    radial-gradient(120% 80% at 22% -25%, rgba(157,133,255,.10), transparent 58%),
    linear-gradient(180deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.014) 46%, rgba(255,255,255,.010) 100%),
    #10151d;
  box-shadow:
    0 1px 2px rgba(0,0,0,.42),
    0 14px 32px -8px rgba(0,0,0,.46),
    0 0 40px -8px rgba(157,133,255,.18),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 0 0 1px rgba(157,133,255,.10);
}
.faq-question { color: var(--text); }
.faq-toggle {
  background: rgba(157,133,255,.12);
  border: 1px solid rgba(157,133,255,.22);
  color: var(--acc);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    inset 0 -1px 0 rgba(0,0,0,.22),
    0 3px 8px rgba(0,0,0,.34);
  transition:
    transform .26s cubic-bezier(.34,1.4,.5,1),
    background .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.faq-item:not(.open):hover .faq-toggle {
  background: rgba(157,133,255,.18);
  border-color: rgba(157,133,255,.34);
}
.faq-item.open .faq-toggle {
  transform: rotate(45deg);
  background:
    linear-gradient(180deg, rgba(157,133,255,.30) 0%, rgba(157,133,255,.16) 100%),
    rgba(157,133,255,.06);
  border-color: rgba(157,133,255,.40);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.24),
    inset 0 -1px 0 rgba(0,0,0,.22),
    0 3px 10px rgba(157,133,255,.24);
}
.faq-item.open .faq-answer {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 16px;
}
.faq-answer p { color: var(--text-dim); }
.faq-answer a { color: var(--acc); }

/* — CTA и футер — */
.cta-banner {
  background:
    radial-gradient(60% 90% at 50% -20%, rgba(157,133,255,.2), transparent 65%),
    linear-gradient(180deg, var(--bg1), var(--bg0)) !important;
  border-top: 1px solid var(--line);
}
/* CTA-помощь — стеклянная карточка в одном языке с витриной, а не голый
   текст с белой кнопкой (та выбивалась из тёмной темы). */
.cta-card {
  max-width: 600px;
  margin: 0 auto;
  padding: 46px 40px 40px;
  text-align: center;
  background: linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 26px 64px rgba(0,0,0,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.cta-ico {
  width: 58px; height: 58px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 16px;
  background: linear-gradient(135deg, #2aabee, #229ED9);
  box-shadow: 0 8px 22px rgba(34,158,217,.4);
}
.cta-ico svg { width: 27px; height: 27px; stroke: #fff; }
.cta-banner h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(22px, 3vw, 32px); letter-spacing: 0; margin-bottom: 12px; }
.cta-card p { font-size: 16px; color: var(--text-dim); line-height: 1.6; max-width: 440px; margin: 0 auto; opacity: 1; }
/* Telegram-кнопка — тот же язык, что «Написать оператору» на success.html */
.cta-tg-btn {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 26px;
  padding: 16px 32px;
  background: linear-gradient(135deg, #2aabee, #229ED9);
  color: #fff !important;
  border-radius: 13px;
  font-size: 16px; font-weight: 700; letter-spacing: -.01em;
  box-shadow: 0 8px 26px rgba(34,158,217,.4);
  transition: transform .2s, box-shadow .2s;
}
.cta-tg-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(34,158,217,.55); text-decoration: none; }
.cta-tg-btn svg { width: 20px; height: 20px; stroke: #fff; }
.cta-card .cta-note { font-size: 13px; color: var(--text-faint); margin-top: 20px; }
.footer { background: var(--bg0); border-top: 1px solid var(--line); }

/* ── СЕКЦИЯ ВЕНДОРОВ («Какие нейросети мы подключаем») ── */
.features { background: var(--bg1) !important; }
.vendor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1080px;
  margin: 0 auto;
}
.vendor-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px 24px 28px;
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.vendor-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.vendor-card--gpt::before    { background: linear-gradient(90deg, #9d85ff, #7c5cff); }
.vendor-card--claude::before { background: linear-gradient(90deg, #f4ab8a, #d97757); }
.vendor-card--gemini::before { background: linear-gradient(90deg, #93b8ff, #7b6cf6); }
.vendor-card:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 22px 50px rgba(0,0,0,.45); }
.vendor-card--gpt:hover    { box-shadow: 0 22px 50px rgba(0,0,0,.45), 0 0 44px rgba(124,92,255,.16); }
.vendor-card--claude:hover { box-shadow: 0 22px 50px rgba(0,0,0,.45), 0 0 44px rgba(217,119,87,.16); }
.vendor-card--gemini:hover { box-shadow: 0 22px 50px rgba(0,0,0,.45), 0 0 44px rgba(124,108,246,.18); }
.vendor-head { display: flex; align-items: center; gap: 13px; margin-bottom: 20px; }
.vendor-logo {
  width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 25px; color: #fff;
  box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.vendor-card--gpt .vendor-logo    { background: linear-gradient(135deg, #7c5cff, #065f46); }
.vendor-card--claude .vendor-logo { background: linear-gradient(135deg, #d97757, #86381c); }
.vendor-card--gemini .vendor-logo { background: linear-gradient(135deg, #5b7cf7, #6d28d9); }
.vendor-head h3 { font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: 0; color: #f4f7fb; line-height: 1.15; }
.vendor-by { font-size: 12.5px; color: var(--text-faint); }
.vendor-card ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.vendor-card li { position: relative; padding-left: 24px; font-size: 14px; color: #c7cfdb; line-height: 1.5; }
.vendor-card li::before { content: ''; position: absolute; left: 2px; top: 7px; width: 7px; height: 7px; border-radius: 2px; }
.vendor-card--gpt li::before    { background: #9d85ff; }
.vendor-card--claude li::before { background: #e0895f; }
.vendor-card--gemini li::before { background: #7b8ff7; }
.vendor-cta {
  display: block; width: fit-content; margin: 34px auto 0;
  font-size: 15px; font-weight: 600; color: var(--acc);
  padding: 11px 22px; border: 1px solid rgba(157,133,255,.35);
  border-radius: 100px; transition: all .2s;
}
.vendor-cta:hover { background: rgba(157,133,255,.12); border-color: var(--acc); text-decoration: none; transform: translateY(-2px); }

/* ══════════════════════════════════════════════════════════════════
   ТРАСТ-ПАНЕЛЬ ВИТРИНЫ — единое стекло: гарантии + приём оплаты.
   Заменяет три разрозненных ряда (.pricing-methods--row + .pricing-usp).
   Чипы .pay-mark (белые, брендовые) НЕ трогаются — легенда логотипов.
   ══════════════════════════════════════════════════════════════════ */
.trust-panel {
  max-width: 860px;
  margin: 40px auto 0;
  padding: 28px 32px;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 20px;
  background:
    radial-gradient(125% 85% at 22% -25%, rgba(255,255,255,.055), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.062) 0%, rgba(255,255,255,.017) 46%, rgba(255,255,255,.010) 100%),
    #10151d;
  box-shadow:
    0 1px 2px rgba(0,0,0,.42),
    0 10px 26px -6px rgba(0,0,0,.40),
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.30);
  transition: border-color .25s ease, box-shadow .25s ease;
}
.trust-panel:hover {
  border-color: rgba(255,255,255,.12);
  box-shadow:
    0 1px 2px rgba(0,0,0,.42),
    0 16px 36px -8px rgba(0,0,0,.46),
    inset 0 1px 0 rgba(255,255,255,.07),
    inset 0 -1px 0 rgba(0,0,0,.30),
    0 0 40px rgba(157,133,255,.10);
}
/* Гарантии: 3 реальных пункта — акцентная плитка-иконка + жирная подпись */
.trust-guarantees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 24px; }
.trust-item { display: flex; align-items: center; gap: 13px; min-width: 0; }
.trust-ico {
  flex-shrink: 0; width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 11px;
  background: rgba(157,133,255,.12);
  border: 1px solid rgba(157,133,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -1px 0 rgba(0,0,0,.22), 0 4px 12px -2px rgba(157,133,255,.30);
}
.trust-ico .icn { width: 19px; height: 19px; color: var(--acc); }
.trust-label { font-size: 13.5px; font-weight: 600; line-height: 1.32; color: var(--text); letter-spacing: -.005em; }
/* Хайрлайн-разделитель, растворяется к краям */
.trust-divider { height: 1px; margin: 24px 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.10) 12%, rgba(255,255,255,.10) 88%, transparent); }
/* Приём оплаты: ярлык + белые чипы в УТОПЛЕННОМ «слоте оплаты» (трастовая конвенция) */
.trust-pay { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; }
.trust-pay-label { flex-shrink: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--text-faint); }
.trust-pay .pricing-methods {
  justify-content: flex-start; gap: 8px; margin: 0;
  background: rgba(0,0,0,.20);
  border: 1px solid rgba(255,255,255,.05);
  box-shadow: inset 0 1px 3px rgba(0,0,0,.4);
  border-radius: 14px;
  padding: 8px 10px;
}
/* Оферта-нотис под витриной (чекбокс убран — согласие через кнопку «Купить») */
.trust-oferta { max-width: 640px; margin: 18px auto 0; text-align: center; font-size: 12.5px; line-height: 1.5; color: var(--text-faint); }
.trust-oferta a { color: var(--text-dim); text-decoration: underline; text-underline-offset: 2px; }
.trust-oferta a:hover { color: var(--acc); }
@media (max-width: 768px) {
  .trust-panel { max-width: 460px; padding: 22px 20px; }
  .trust-guarantees { grid-template-columns: 1fr; gap: 14px; }
  .trust-divider { margin: 20px 0; }
  .trust-pay { flex-direction: column; align-items: flex-start; gap: 12px; }
  .trust-pay .pricing-methods { width: 100%; justify-content: center; }
}
@media (max-width: 375px) { .trust-panel { padding: 20px 16px; } }
@media (prefers-reduced-motion: reduce) { .trust-panel { transition: none; } }

/* ══════════════════════════════════════════════════════════════════
   MATERIAL-DEPTH ПОЛИРОВКА БЛОКОВ — единый стеклянный язык витрины
   (how-it-works, cta+footer, вендоры, отзывы, ритм секций). Тёмная тема,
   после всех dark-базовых правил → выигрывает по порядку каскада.
   ══════════════════════════════════════════════════════════════════ */

/* — «Как это работает»: глянцевый бейдж (все ширины) + стеклянные карточки (десктоп) — */
.how-it-works .step-number {
  background:
    radial-gradient(120% 120% at 32% 18%, rgba(255,255,255,.28), rgba(255,255,255,0) 45%),
    var(--green) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -1px 0 rgba(0,0,0,.22),
    0 3px 8px rgba(0,0,0,.34),
    0 4px 16px rgba(124,92,255,.30) !important;
}
@media (min-width: 769px) {
  .how-it-works .steps { align-items: stretch; gap: 6px; }
  .how-it-works .step {
    flex: 1; min-width: 155px; max-width: 230px;
    display: flex; flex-direction: column; align-items: center;
    padding: 32px 24px 28px; border-radius: 18px;
    border: 1px solid rgba(255,255,255,.075);
    background:
      radial-gradient(125% 85% at 22% -25%, rgba(255,255,255,.055), transparent 60%),
      linear-gradient(180deg, rgba(255,255,255,.062) 0%, rgba(255,255,255,.017) 46%, rgba(255,255,255,.010) 100%),
      #10151d;
    box-shadow:
      0 1px 2px rgba(0,0,0,.42),
      0 10px 26px -6px rgba(0,0,0,.40),
      inset 0 1px 0 rgba(255,255,255,.06),
      inset 0 -1px 0 rgba(0,0,0,.30);
    /* opacity в transition ОБЯЗАТЕЛЕН — иначе перебивает fade у .reveal-ready и карточки «выскакивают» */
    transition: opacity .45s cubic-bezier(.4,0,.2,1), transform .3s cubic-bezier(.4,0,.2,1), border-color .2s ease, box-shadow .2s ease;
  }
  .how-it-works .step:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,.14);
    box-shadow:
      0 1px 2px rgba(0,0,0,.42),
      0 22px 46px -10px rgba(0,0,0,.5),
      inset 0 1px 0 rgba(255,255,255,.08),
      0 0 40px rgba(157,133,255,.14);
  }
  .how-it-works .step:hover .step-number {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.34),
      inset 0 -1px 0 rgba(0,0,0,.22),
      0 4px 10px rgba(0,0,0,.36),
      0 6px 22px rgba(124,92,255,.45) !important;
  }
  .how-it-works .step-content h3 { letter-spacing: -.01em; }
  .how-it-works .step-arrow {
    align-self: center; height: auto; font-size: 24px;
    color: var(--acc); opacity: .5;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
  }
}

/* — CTA-карточка: полное стекло + телеграм-синий ореол (радиус 20 — семья витрины) — */
.cta-card {
  position: relative; z-index: 1;
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 20px;
  background:
    radial-gradient(125% 85% at 22% -25%, rgba(255,255,255,.055), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.062) 0%, rgba(255,255,255,.017) 46%, rgba(255,255,255,.010) 100%),
    #10151d;
  box-shadow:
    0 1px 2px rgba(0,0,0,.42),
    0 22px 46px -10px rgba(0,0,0,.5),
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.30),
    0 0 40px rgba(34,158,217,.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: border-color .2s ease, box-shadow .2s ease;
}
.cta-card:hover {
  border-color: rgba(255,255,255,.12);
  box-shadow:
    0 1px 2px rgba(0,0,0,.42),
    0 26px 54px -12px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.08),
    inset 0 -1px 0 rgba(0,0,0,.30),
    0 0 52px rgba(34,158,217,.22);
}
.cta-banner h2 { color: #f4f7fb; }
.cta-ico {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -1px 0 rgba(0,0,0,.22),
    0 3px 8px rgba(0,0,0,.34),
    0 6px 18px -2px rgba(34,158,217,.45);
}
.cta-tg-btn { box-shadow: inset 0 1px 0 rgba(255,255,255,.20), 0 8px 26px rgba(34,158,217,.4); }
.cta-tg-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.22), 0 12px 32px rgba(34,158,217,.55); }

/* — Футер: обработанная кромка, токен-хайрлайны, лоск ссылок — */
.footer {
  background: var(--bg0);
  border-top: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
.footer-grid { border-bottom: 1px solid var(--line); }
.footer-links h4, .footer-contact h4 { color: var(--text-faint); }
.footer-brand p { color: var(--text-dim); }
.footer-hours { color: var(--text-faint); }
.footer-links a, .footer-contact a { color: var(--text-dim); transition: color .18s ease, text-decoration-color .18s ease; }
.footer-links a:hover, .footer-contact a:hover {
  color: var(--text); text-decoration: underline;
  text-decoration-color: rgba(157,133,255,.6); text-decoration-thickness: 1px; text-underline-offset: 4px;
}
.footer-bottom p { color: var(--text-faint); }

/* — Вендор-карточки #what: стекло витрины + брендовые кольца-свечения — */
#what .vendor-card {
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 18px;
  background:
    radial-gradient(125% 85% at 22% -25%, rgba(255,255,255,.055), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.062) 0%, rgba(255,255,255,.017) 46%, rgba(255,255,255,.010) 100%),
    #10151d;
  box-shadow:
    0 1px 2px rgba(0,0,0,.42),
    0 10px 26px -6px rgba(0,0,0,.40),
    inset 0 1px 0 rgba(255,255,255,.06),
    inset 0 -1px 0 rgba(0,0,0,.30);
  transition: transform .25s cubic-bezier(.4,0,.2,1), border-color .25s, box-shadow .25s;
}
#what .vendor-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 1px 2px rgba(0,0,0,.42), 0 22px 46px -10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08);
}
#what .vendor-card--gpt:hover    { box-shadow: 0 1px 2px rgba(0,0,0,.42), 0 22px 46px -10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08), 0 0 44px -8px rgba(124,92,255,.22); }
#what .vendor-card--claude:hover { box-shadow: 0 1px 2px rgba(0,0,0,.42), 0 22px 46px -10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08), 0 0 44px -8px rgba(217,119,87,.22); }
#what .vendor-card--gemini:hover { box-shadow: 0 1px 2px rgba(0,0,0,.42), 0 22px 46px -10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08), 0 0 44px -8px rgba(124,108,246,.24); }
#what .vendor-card--gpt .vendor-logo    { box-shadow: inset 0 1px 0 rgba(255,255,255,.30), inset 0 -1px 0 rgba(0,0,0,.22), 0 4px 12px -1px rgba(124,92,255,.34); }
#what .vendor-card--claude .vendor-logo { box-shadow: inset 0 1px 0 rgba(255,255,255,.30), inset 0 -1px 0 rgba(0,0,0,.22), 0 4px 12px -1px rgba(217,119,87,.34); }
#what .vendor-card--gemini .vendor-logo { box-shadow: inset 0 1px 0 rgba(255,255,255,.30), inset 0 -1px 0 rgba(0,0,0,.22), 0 4px 12px -1px rgba(124,108,246,.36); }

/* — Отзывы: стат-пилюля + стеклянные карточки + кавычка-водяной знак — */
.reviews .reviews-stat {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center;
  gap: 10px; width: fit-content; max-width: 100%;
  margin: -2px auto 32px; padding: 13px 24px;
  border: 1px solid rgba(255,255,255,.075); border-radius: 100px;
  background:
    radial-gradient(125% 130% at 22% -35%, rgba(255,255,255,.06), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.055) 0%, rgba(255,255,255,.012) 100%),
    #10151d;
  box-shadow: 0 1px 2px rgba(0,0,0,.42), 0 8px 22px -8px rgba(0,0,0,.4), inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.28);
}
.reviews .rs-num { text-shadow: 0 0 20px rgba(157,133,255,.28); }
.reviews .review-card {
  position: relative;
  border: 1px solid rgba(255,255,255,.075); border-radius: 18px;
  background:
    radial-gradient(125% 85% at 22% -25%, rgba(255,255,255,.055), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,.062) 0%, rgba(255,255,255,.017) 46%, rgba(255,255,255,.010) 100%),
    #10151d;
  box-shadow: 0 1px 2px rgba(0,0,0,.42), 0 10px 26px -6px rgba(0,0,0,.40), inset 0 1px 0 rgba(255,255,255,.06), inset 0 -1px 0 rgba(0,0,0,.30);
}
.reviews .review-card:hover {
  border-color: rgba(255,255,255,.14);
  box-shadow: 0 1px 2px rgba(0,0,0,.42), 0 22px 46px -10px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.08), 0 0 40px -8px rgba(157,133,255,.16);
}
.reviews .review-card::after {
  content: '\201D';
  position: absolute; top: 14px; right: 18px; z-index: 0;
  font-family: Georgia, 'Times New Roman', serif; font-size: 58px; line-height: 1;
  color: rgba(157,133,255,.12); pointer-events: none;
}
.reviews .review-card > * { position: relative; z-index: 1; }
.reviews .review-stars { text-shadow: 0 0 12px rgba(245,181,68,.28); }
.reviews .review-avatar {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.30), inset 0 -1px 0 rgba(0,0,0,.22), 0 3px 8px rgba(0,0,0,.34);
  text-shadow: 0 1px 1px rgba(0,0,0,.28);
}

/* — Заголовки секций: акцентный kicker + ритм фонов/границ (h2 → витрина h1 не трогается) — */
.section-header h2 { font-size: clamp(27px, 3.3vw, 38px); letter-spacing: -.015em; line-height: 1.12; }
.how-it-works .section-header p,
.safety .section-header p,
.features .section-header p,
.reviews .section-header p,
.faq .section-header p { max-width: 600px; margin-left: auto; margin-right: auto; }
.section-header h2::before {
  content: ''; display: block;
  width: clamp(38px, 6vw, 46px); height: 3px;
  margin: 0 auto clamp(13px, 2.2vw, 18px); border-radius: 2px;
  background: linear-gradient(90deg, rgba(157,133,255,0), var(--acc) 30%, #9d85ff 70%, rgba(157,133,255,0));
  box-shadow: 0 0 16px rgba(157,133,255,.28);
}
#what { background: var(--bg2) !important; }
.how-it-works, .safety, .features, .reviews, .faq { border-top: 1px solid rgba(255,255,255,.05); }

@media (max-width: 900px) {
  .vendor-grid { grid-template-columns: 1fr; max-width: 460px; }
}

/* — модалка заказа — */
.modal { background: var(--surface); border: 1px solid var(--line); }
.modal-close { background: rgba(255,255,255,.07); color: var(--text-dim); }
.modal-close:hover { background: rgba(255,255,255,.14); color: var(--text); }
.modal-header h2 { color: var(--text); }
.modal-header p { color: var(--text-dim); }
.modal-header strong { color: var(--acc); }
.form-group label { color: var(--text); }
.form-group input {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.13);
  color: var(--text);
}
.form-group input::placeholder { color: var(--text-faint); }
.form-group input:focus { border-color: var(--acc); background: rgba(255,255,255,.07); }
.field-hint { color: var(--text-faint); }
.form-notice { background: rgba(59,130,246,.1); border-color: rgba(59,130,246,.3); }
.form-notice p { color: #a6c8f5; }
.form-agree label { color: var(--text-dim); }
.form-agree a { color: var(--acc); }
.input-prefix { color: var(--acc); }

/* — вторичные кнопки — */
.btn-secondary { background: rgba(255,255,255,.06); color: var(--text); border-color: var(--line); }
.btn-secondary:hover { background: rgba(157,133,255,.12); border-color: rgba(157,133,255,.5); color: #c8baff; }
.btn-white { background: #f2f5fa; color: #0b5c46; border-color: #f2f5fa; }

/* — юридические страницы: «карточка-документ» в языке витрины — */
.legal-page {
  min-height: 80vh;
  padding: 52px 0 84px;
  position: relative;
  background:
    radial-gradient(46% 34% at 50% 0%, rgba(157,133,255,.10), transparent 70%),
    var(--bg1);
}
.legal-content {
  max-width: 840px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(255,255,255,.015));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 44px 52px 52px;
  box-shadow: 0 26px 64px rgba(0,0,0,.42);
}
/* ссылка «на главную» над заголовком */
.legal-back {
  display: inline-flex; align-items: center;
  font-size: 13.5px; font-weight: 600; color: var(--text-dim);
  margin-bottom: 22px; transition: color .2s;
}
.legal-back:hover { color: var(--acc); text-decoration: none; }
.legal-page h1 {
  color: #f4f7fb; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 3.4vw, 30px); letter-spacing: 0; margin-bottom: 12px; line-height: 1.2;
}
/* дата редакции — бейдж-пилюля */
.legal-page .last-updated {
  display: inline-block;
  font-size: 12.5px; font-weight: 600; color: var(--acc);
  background: rgba(157,133,255,.1); border: 1px solid rgba(157,133,255,.26);
  padding: 5px 13px; border-radius: 100px; margin-bottom: 6px;
}
/* заголовки разделов с верхним разделителем — структура «как на главной» */
.legal-content h2 {
  color: var(--text); font-size: 18px; font-weight: 700; letter-spacing: -.01em;
  margin: 34px 0 14px; padding-top: 30px; border-top: 1px solid var(--line);
}
.legal-content h2:first-of-type { border-top: none; padding-top: 12px; }
.legal-content p { color: #b8c2cf; font-size: 15px; line-height: 1.85; margin-bottom: 12px; }
/* списки с фирменными зелёными маркерами вместо стандартных точек */
.legal-content ul { list-style: none; padding-left: 0; margin: 6px 0 14px; }
.legal-content li {
  position: relative; padding-left: 24px; margin-bottom: 10px;
  color: #b8c2cf; font-size: 15px; line-height: 1.7;
}
.legal-content li::before {
  content: ''; position: absolute; left: 3px; top: 9px;
  width: 6px; height: 6px; border-radius: 2px; background: var(--acc);
}
.legal-content a { color: var(--acc); font-weight: 500; }
.legal-content a:hover { text-decoration: underline; }
.legal-content strong, .legal-content b { color: var(--text); }
@media (max-width: 600px) {
  .legal-content { padding: 32px 22px 36px; border-radius: 18px; }
  .legal-content h2 { padding-top: 24px; margin-top: 28px; }
}

/* — обложка на мобильном: чуть ниже, чтобы карточка в вертикальном списке
   была компактнее (единственный источник высоты для мобайла) — */
@media (max-width: 768px) {
  .pcard-img { height: 104px; margin-bottom: 14px; }
}

/* ============================================================
   МОБИЛЬНЫЙ UX — сводный слой правок (идёт ПОСЛЕДНИМ → выигрывает каскад
   при равной специфичности). Цель: убрать пустоту сверху, ужать карточки,
   вернуть полезную ширину, починить форму под клавиатурой, довести тач-цели
   до 44px. Десктоп (≥769px) не затрагивается. По итогам аудита моб. UX.
   ============================================================ */
@media (max-width: 768px) {
  /* Поля контейнера: 28px на 360px забирали ~15% ширины экрана */
  .container { padding: 0 18px; }

  /* Sticky-шапка ниже, логотип компактнее — больше первого экрана под товар */
  .header .container { height: 56px; }
  .logo { font-size: 17px; }
  .logo-icon { width: 26px; height: 26px; }
  section[id] { scroll-margin-top: 64px; } /* якоря под уменьшенную шапку */

  /* Витрина начинается почти сразу, без пустого тёмного поля сверху */
  .pricing.pricing--top { padding: 22px 0 40px; }
  .pricing--top .section-header { margin-bottom: 22px; }
  .section-header p { font-size: 15px; line-height: 1.5; }

  /* Карточки компактнее: ниже обложка, плотнее ритм — вдвое меньше прокрутки */
  .pcard-img   { height: 84px; margin-bottom: 12px; }
  .pcard-glyph { font-size: 34px; }
  .pcard-x     { font-size: 18px; }
  .pcard-tag   { display: none; }              /* бейдж «SDK» — шум на телефоне */
  .pricing-desc     { margin-bottom: 12px; }
  .pricing-price    { margin-bottom: 16px; }
  .pricing-features { margin-bottom: 16px; }
  .pricing-features li { padding: 7px 0; font-size: 14px; }
  /* Основной CTA витрины: не даём обрезать «Купить за 15 890₽» на узких экранах */
  .pricing-grid .pricing-card .btn-buy { padding: 16px 14px; font-size: 16px; }

  /* Тач-цели ≥44px: крестик модалки был 34px */
  .modal-close  { width: 42px; height: 42px; top: 10px; right: 10px; }
  .modal-header { padding-right: 46px; }

  /* Кнопка оплаты: не обрезаем цену на узких экранах (ужимается текст, не сумма) */
  .btn-pay       { padding: 16px; gap: 10px; }
  .btn-pay-text  { font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .btn-pay-price { font-size: 16px; white-space: nowrap; }

  /* Сопроводительный текст формы — крупнее для чтения на телефоне */
  .field-hint      { font-size: 13px; }
  .form-agree label { font-size: 14px; line-height: 1.5; }
  .form-notice p   { font-size: 13.5px; }

  /* КЛЮЧЕВОЕ: модалку — к верху и скроллим ВЕСЬ оверлей, чтобы экранная
     клавиатура iOS не перекрывала кнопку оплаты (iOS не ужимает vh/dvh
     под клавиатуру, а центрированную fixed-модалку не поднять над ней). */
  .modal-overlay {
    align-items: flex-start;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 14px 12px calc(48px + env(safe-area-inset-bottom));
  }
  .modal { max-height: none; overflow: visible; }

  /* Плавающий чат — выше жестовой полосы iPhone (home-indicator) */
  .chat-widget { bottom: calc(20px + env(safe-area-inset-bottom)); transition: transform .28s ease, opacity .28s ease; }
  /* Прячем FAB при скролле вниз (класс .hide ставит скрипт в index.html), чтобы
     кнопка чата не перекрывала правый край CTA «Купить». Десктоп не трогаем. */
  .chat-widget.hide { transform: translateY(160%); opacity: 0; pointer-events: none; }
}

@media (max-width: 480px) {
  .pricing.pricing--top { padding: 18px 0 34px; }
  .how-it-works, .safety, .features, .faq, .cta-banner { padding: 44px 0; } /* следующая ступень шкалы (витрину не трогаем) */
  .chat-widget { bottom: calc(16px + env(safe-area-inset-bottom)); }
}

@media (max-width: 400px) {
  .container   { padding: 0 14px; }
  .price-amount { font-size: 34px; }           /* «15 890₽» гарантированно без переноса */
  .pcard-img   { height: 76px; }
  .pricing-grid .pricing-card .btn-buy { font-size: 15px; letter-spacing: -.02em; }
}

/* Прокрутка ленты чата не «тянет» за собой страницу под виджетом */
.chat-messages { overscroll-behavior: contain; }

/* На тач-экранах :hover срабатывает по тапу и «залипает» до тапа в пустоту —
   карточка/кнопка застревает в приподнятом состоянии. Сбрасываем декоративные
   подъёмы там, где нет настоящего наведения курсором. Десктоп не затрагивается. */
@media (hover: none) {
  .pricing-card:hover,
  .review-card:hover,
  .safety-item:hover,
  .benefit-card:hover,
  .feature-item:hover { transform: none; }
  .benefit-card:hover .benefit-icon-wrap { transform: none; }
  .btn:hover,
  .btn-primary:hover,
  .btn-buy:hover,
  .btn-pay:hover { transform: none; }
}

/* ============================================================
   МОБИЛЬНАЯ ВИТРИНА ТАРИФОВ — простой ВЕРТИКАЛЬНЫЙ список.
   Раньше была горизонтальная свайп-карусель, но часть пользователей не понимала,
   что нужно смахивать вбок. Теперь тарифы идут столбцом: листаешь вниз (это
   интуитивно всем) и видишь все. Десктоп — прежняя сетка.
   ============================================================ */
.pricing-dots { display: none; } /* блок-заглушка на случай старого кэша разметки */
.swipe-hint  { display: none; }

@media (max-width: 768px) {
  .pricing-grid {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 16px;
    overflow: visible;
    padding: 8px 0 0;
  }
  .pricing-grid > .pricing-card {
    width: 100%;
    max-width: 100%;
    margin: 0;
    /* карточки всегда видны — не зависим от reveal-анимации */
    opacity: 1 !important;
    transform: none !important;
  }
  /* у «популярной» карточки бейдж «Берут чаще всего» выступает вверх на 15px:
     даём отступ сверху (чтобы он не липнул к карточке над ним) и чуть больше
     верхнего паддинга (чистая полоса между бейджем и зелёной обложкой). */
  .pricing-grid > .pricing-card--featured { margin-top: 24px; padding-top: 28px; }
}

/* ============================================================
   МОБИЛЬНЫЙ ЛОСК v2 (второй аудит): единые шкалы + посекционные апгрейды.
   Идёт после базовых мобильных правил → выигрывает каскад. Десктоп не затронут.
   ============================================================ */
@media (max-width: 768px) {
  /* СИСТЕМА №2: единый кегль вторичного текста карточек (был 13.5/14 вразнобой) */
  .safety-item p, .step-content p, .vendor-card li { font-size: 14.5px; line-height: 1.55; }

  /* СИСТЕМА №4: единый язык радиусов (мелкие карточки 11px → 16px) */
  .faq-item, .safety-item { border-radius: 16px; }

  /* «Как это работает» → левый timeline с линией-коннектором вместо центр. колонки */
  .step-arrow { display: none; }
  .steps { flex-direction: column; align-items: stretch; gap: 0; max-width: 360px; margin: 0 auto; }
  .step { max-width: 100%; text-align: left; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; padding-bottom: 26px; position: relative; }
  .step:last-child { padding-bottom: 0; }
  .step-content { padding-top: 8px; }
  .step:not(:last-child)::before { content: ""; position: absolute; left: 21px; top: 44px; bottom: -22px; width: 2px; border-radius: 2px; background: linear-gradient(var(--green), rgba(124,92,255,.18)); }
  .step-number { width: 44px; height: 44px; font-size: 18px; margin: 0; position: relative; z-index: 1; }
  .step-content h3 { font-size: 17px; margin-bottom: 4px; letter-spacing: -.01em; }

  /* FAQ: уже поля, крупнее вопрос, мягкое раскрытие */
  .faq-list { gap: 12px; }
  .faq-question { padding: 18px 20px; gap: 12px; font-size: 15.5px; }
  .faq-answer { padding: 0 20px 20px; }
  .faq-item.open .faq-answer { animation: faqReveal .28s ease both; }

  /* CTA-баннер: сжать карточку, кнопка во всю ширину, ужать ореол */
  .cta-card { padding: 34px 22px 30px; border-radius: 20px; }
  .cta-tg-btn { display: flex; width: 100%; justify-content: center; padding: 16px 20px; margin-top: 22px; }
  .cta-glow { width: 360px; height: 280px; }

  /* «Что входит» (вендоры): плотнее + CTA во всю ширину (тач ~48px) */
  .vendor-grid { gap: 14px; }
  .vendor-card { padding: 22px 20px 24px; }
  .vendor-card ul { gap: 10px; }
  .vendor-card li { padding-left: 22px; }
  .vendor-cta { width: 100%; max-width: 340px; margin-top: 24px; padding: 15px 22px; font-size: 15.5px; text-align: center; }

  /* Футер: тач-цели ссылок 44px + читаемый текст (НЕ shorthand на .footer-bottom!) */
  .footer { padding-top: 48px; }
  .footer-links a, .footer-contact a { display: flex; align-items: center; min-height: 44px; padding: 8px 0; font-size: 15px; }
  .footer-links h4, .footer-contact h4 { margin-bottom: 8px; }
  .footer-bottom { text-align: left; padding-top: 22px; }
  .footer-bottom p { color: rgba(255,255,255,.42); font-size: 12.5px; line-height: 1.7; }
  .footer-bottom p + p { margin-top: 8px; }
  .footer-brand p { color: rgba(255,255,255,.55); }
  .footer-hours { color: rgba(255,255,255,.5); }

  /* Микро-лоск: короче reveal-стаггер, крупнее H1 витрины */
  .reveal-delay-1.reveal-ready, .reveal-delay-2.reveal-ready,
  .reveal-delay-3.reveal-ready, .reveal-delay-4.reveal-ready { transition-delay: .06s; }
  .pricing--top .section-header h1 { font-size: 26px; line-height: 1.2; }
}

/* Safety-карточки в list-row: иконка-маркер во всю высоту (паттерн iOS-настроек) */
@media (max-width: 560px) {
  .safety-grid { gap: 12px; }
  .safety-item { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 5px; align-items: start; padding: 18px; }
  .si-ico { grid-column: 1; grid-row: 1 / span 2; margin-bottom: 0; }
  .safety-item h4 { grid-column: 2; margin-bottom: 0; }
  .safety-item p  { grid-column: 2; }
}
@media (max-width: 400px) {
  .sg-badge { width: 48px; height: 48px; font-size: 24px; }
  .safety-guarantee { gap: 12px; padding: 16px; }
  .cta-card { padding: 30px 18px 28px; }
}

/* Мягкое раскрытие ответа FAQ + отклик на нажатие (тач) */
@keyframes faqReveal { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .faq-item.open .faq-answer { animation: none; } }
@media (hover: none) {
  .faq-question:active { background: rgba(157,133,255,.12); }
  .faq-question:active .faq-toggle { transform: scale(.9); }
  .faq-item.open .faq-question:active .faq-toggle { transform: rotate(45deg) scale(.9); }
}

/* ============================================================
   PREMIUM MATERIAL-DEPTH — витрина тарифов, мобайл.
   ПОЛНАЯ ЗАМЕНА блока @media (max-width:768px) со строк 2177–2300.
   Порядок правил (сначала generic .pricing-card, потом --featured)
   СОХРАНЁН — это гарантирует, что зелёное стекло featured
   не перебивается общим фоном. Грид/тап/области/min-height/цена #fff
   и вендор-градиенты .pcard-img--* НЕ трогаются.
   ============================================================ */
@media (max-width: 768px) {
  .pricing-grid { gap: 12px; padding: 4px 0 0; }

  /* ---- СТРОКА: многослойное тёмное стекло, обработанная кромка,
         контактная + амбиентная тень. Грид 52|1fr|auto|36 без изменений. ---- */
  .pricing-grid > .pricing-card {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto 36px;
    grid-template-areas: "img body price go" "feat feat feat feat";
    align-items: center;
    column-gap: 11px; row-gap: 0;
    padding: 14px 15px;
    min-height: 82px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.075);
    /* слои снизу вверх: глухая база чуть светлее фона страницы →
       линейное стекло с быстрым затуханием → мягкий свет сверху-слева */
    background:
      radial-gradient(125% 85% at 22% -25%, rgba(255,255,255,.055), transparent 60%),
      linear-gradient(180deg, rgba(255,255,255,.062) 0%, rgba(255,255,255,.017) 46%, rgba(255,255,255,.010) 100%),
      #10151d;
    /* 1 тугая контактная тень + 1 мягкая амбиентная (neg. spread) +
       верхний глянцевый хайлайт + нижний тёмный рант = «объект на поверхности» */
    box-shadow:
      0 1px 2px rgba(0,0,0,.42),
      0 10px 26px -6px rgba(0,0,0,.40),
      inset 0 1px 0 rgba(255,255,255,.06),
      inset 0 -1px 0 rgba(0,0,0,.30);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background .18s ease, border-color .18s ease,
                box-shadow .18s cubic-bezier(.4,0,.2,1);
  }
  /* ПРЕСС: строка «вдавливается» — амбиентная тень сжимается, добавляется
     внутренняя тень, глянец сверху гаснет. transform запрещён (none !important),
     поэтому глубина строится только светом и тенью. */
  .pricing-grid > .pricing-card:active {
    border-color: rgba(255,255,255,.15);
    background:
      radial-gradient(125% 85% at 22% -25%, rgba(255,255,255,.04), transparent 60%),
      linear-gradient(180deg, rgba(255,255,255,.05) 0%, rgba(255,255,255,.028) 100%),
      #0d121a;
    box-shadow:
      0 1px 2px rgba(0,0,0,.30),
      0 3px 8px -4px rgba(0,0,0,.30),
      inset 0 1px 2px rgba(0,0,0,.24),
      inset 0 1px 0 rgba(255,255,255,.03);
  }

  /* ---- ИКОНКА 52px: огранка — верхний глянец, нижняя тёмная фаска,
         тугая контактная тень + приглушённое (классное) брендовое свечение.
         Радиальные градиенты .pcard-img--* остаются как есть. ---- */
  .pricing-grid > .pricing-card .pcard-img {
    grid-area: img;
    width: 52px; height: 52px; min-height: 0;
    margin: 0; border-radius: 14px; gap: 0;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.34),
      inset 0 -1px 0 rgba(0,0,0,.22),
      0 3px 8px rgba(0,0,0,.34);
  }
  .pricing-grid > .pricing-card .pcard-img--gpt {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.34), inset 0 -1px 0 rgba(0,0,0,.22),
                0 4px 12px -1px rgba(124,92,255,.36);
  }
  .pricing-grid > .pricing-card .pcard-img--claude,
  .pricing-grid > .pricing-card .pcard-img--claude-max {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.34), inset 0 -1px 0 rgba(0,0,0,.22),
                0 4px 12px -1px rgba(217,119,87,.34);
  }
  .pricing-grid > .pricing-card .pcard-img--gemini {
    box-shadow: inset 0 1px 0 rgba(255,255,255,.34), inset 0 -1px 0 rgba(0,0,0,.22),
                0 4px 12px -1px rgba(124,108,246,.36);
  }
  .pricing-grid > .pricing-card .pcard-glyph { font-size: 26px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.42)); }
  .pricing-grid > .pricing-card .pcard-x,
  .pricing-grid > .pricing-card .pcard-tag { display: none; }

  /* ---- ТЕЛО ---- */
  .pricing-grid > .pricing-card .pricing-header { grid-area: body; min-height: 0; min-width: 0; margin: 0; }
  .pricing-grid > .pricing-card .pricing-header h3 {
    font-size: 15.5px; font-weight: 700; line-height: 1.15; margin: 0;
    color: #f4f7fb; letter-spacing: -.015em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .pricing-grid > .pricing-card .pricing-desc {
    font-size: 12px; line-height: 1.3; margin: 3px 0 0; color: var(--text-dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  /* ---- ОПИСАНИЕ (фичи) ПОД товаром — в отдельном ряду грида (feat), во всю ширину.
     Вернули на карточку по просьбе: под каждым тарифом его описание. ---- */
  .pricing-grid > .pricing-card .pricing-features {
    grid-area: feat; display: grid; gap: 6px;
    margin: 12px 0 1px; padding: 12px 0 0;
    border-top: 1px solid rgba(255,255,255,.07);
    list-style: none;
  }
  .pricing-grid > .pricing-card .pricing-features li {
    display: flex; align-items: flex-start; gap: 8px;
    padding: 0; border: none;
    font-size: 12.5px; line-height: 1.35; color: #c7cfdb;
  }
  .pricing-grid > .pricing-card .pricing-features .check {
    flex-shrink: 0; color: #9d85ff; font-weight: 800; font-size: 12px; line-height: 1.5;
  }

  /* ---- ЦЕНА: сумма #fff с лёгкой контактной тенью для чёткости на стекле ---- */
  .pricing-grid > .pricing-card .pricing-price {
    grid-area: price;
    flex-direction: column; align-items: flex-end; flex-wrap: nowrap;
    gap: 1px; margin: 0; text-align: right; white-space: nowrap;
  }
  .pricing-grid > .pricing-card .price-amount {
    font-size: 17.5px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05;
    color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.30);
    font-variant-numeric: tabular-nums lining-nums;
    font-feature-settings: "tnum" 1, "lnum" 1;
  }
  .pricing-grid > .pricing-card .price-period {
    font-size: 10.5px; line-height: 1.1; color: var(--text-faint);
    font-variant-numeric: tabular-nums;
  }

  /* ---- КНОПКА-ШЕВРОН 36px: стеклянный зелёный акцент с верхним глянцем ---- */
  .pricing-grid > .pricing-card .btn-buy {
    grid-area: go; position: relative;
    width: 36px; height: 36px; min-width: 0; padding: 0;
    display: flex; align-items: center; justify-content: center; align-self: center;
    border: 1px solid rgba(157,133,255,.28); border-radius: 50%;
    background:
      linear-gradient(180deg, rgba(157,133,255,.20) 0%, rgba(157,133,255,.09) 100%),
      rgba(157,133,255,.05);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 2px 6px rgba(0,0,0,.22);
    font-size: 0; pointer-events: none;
    transition: background .16s ease, box-shadow .16s ease, border-color .16s ease;
  }
  /* Шеврон «>» — SVG в background, во всю кнопку (inset:0), центрируется самим
     background-position:center. Размер задаём background-size (46px), чтобы стрелка
     была нормального размера, а не 4px (прежняя маска 16px давала крошечный шеврон). */
  .pricing-grid > .pricing-card .btn-buy::before {
    content: ''; position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317b894' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 40px no-repeat;
  }
  .pricing-grid > .pricing-card--featured .btn-buy::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
  }
  .pricing-grid > .pricing-card:active .btn-buy {
    border-color: rgba(157,133,255,.42);
    background:
      linear-gradient(180deg, rgba(157,133,255,.30) 0%, rgba(157,133,255,.16) 100%),
      rgba(157,133,255,.06);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.20), 0 1px 3px rgba(0,0,0,.20);
  }

  /* ---- FEATURED — ГЕРОЙ: послойное зелёное стекло + мягкое кольцо-свечение,
         обработанная кромка, залитая кнопка. Двухрядный грид без изменений. ---- */
  .pricing-grid > .pricing-card--featured {
    grid-template-columns: 52px minmax(0, 1fr) auto 36px;
    grid-template-areas:
      "bdg  bdg  bdg   bdg"
      "img  body price go"
      "feat feat feat  feat";
    row-gap: 9px;
    margin-top: 0; padding-top: 14px;
    border: 1.5px solid rgba(157,133,255,.5);
    background:
      radial-gradient(120% 95% at 18% -28%, rgba(157,133,255,.26), transparent 55%),
      linear-gradient(180deg, rgba(157,133,255,.13) 0%, rgba(255,255,255,.02) 60%),
      #0f1720;
    box-shadow:
      0 1px 2px rgba(0,0,0,.42),
      0 12px 30px -8px rgba(0,0,0,.42),
      0 0 40px -6px rgba(124,92,255,.22),
      inset 0 1px 0 rgba(255,255,255,.10),
      inset 0 0 0 1px rgba(157,133,255,.10);
  }
  .pricing-grid > .pricing-card--featured .pricing-badge {
    grid-area: bdg;
    position: static; transform: none; top: auto; left: auto;
    justify-self: start; align-self: center;
    animation: none;
    font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
    padding: 4px 12px; border-radius: 100px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 4px 14px rgba(124,92,255,.42);
  }
  .pricing-grid > .pricing-card--featured .pcard-img      { grid-area: img; }
  .pricing-grid > .pricing-card--featured .pricing-header { grid-area: body; }
  .pricing-grid > .pricing-card--featured .pricing-price  { grid-area: price; }
  .pricing-grid > .pricing-card--featured .btn-buy {
    grid-area: go;
    background: linear-gradient(180deg, #8f7bff 0%, #7452f7 100%);
    border-color: transparent; color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.34), 0 4px 14px rgba(124,92,255,.5);
  }
  .pricing-grid > .pricing-card--featured .btn-buy::before { color: #fff; }
  .pricing-grid > .pricing-card--featured:active .btn-buy {
    background: linear-gradient(180deg, #9d85ff 0%, #7d5eff 100%);
    box-shadow: inset 0 1px 2px rgba(0,0,0,.18), 0 2px 8px rgba(124,92,255,.4);
  }
}

/* ═══════════════════════════════════════════════════════════════
   СОСТОЯНИЕ «ОТКРЫВАЕМ ОПЛАТУ»
   Класс .loading на кнопки покупки вешался с самого начала, но правила под него
   не существовало: между тапом и переходом на платёжку (0,5–2 с, в плохой сети
   дольше) страница не менялась ВООБЩЕ. Немая пауза перед прыжком на чужой домен
   читается как «зависло» или «развод» — и человек уходит. Показываем работу.
   ═══════════════════════════════════════════════════════════════ */
.open-modal.loading,
.btn-buy.loading {
  position: relative;
  pointer-events: none;
  opacity: .85;
}
/* Спиннер СБОКУ, а не поверх подписи: гасить текст через color не вышло — его
   перебивает правило с !important из основной темы кнопок, и надпись просвечивала
   сквозь крутилку. Сбоку он читается даже лучше: «Подключить за 2 490 ₽ ⟳». */
.open-modal.loading::after,
.btn-buy.loading::after {
  content: '';
  position: absolute;
  top: 50%; right: 14px;
  width: 16px; height: 16px;
  margin: -8px 0 0 0;
  border: 2px solid rgba(255, 255, 255, .35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: scg-spin .7s linear infinite;
}
/* На мобильной витрине кнопка — стеклянный кружок с зелёным шевроном в ::before.
   Гасим шеврон, иначе он крутился бы вместе со спиннером внахлёст. */
.pricing-grid > .pricing-card .btn-buy.loading::before { opacity: 0; }
/* На мобильной витрине кнопка — кружок 36px: там спиннер по центру, текста нет. */
.pricing-grid > .pricing-card .btn-buy.loading::after {
  top: 50%; left: 50%; right: auto;
  margin: -8px 0 0 -8px;
  border-color: rgba(157, 133, 255, .3);
  border-top-color: #9d85ff;
}
@keyframes scg-spin { to { transform: rotate(360deg); } }

/* Ошибка перехода к оплате. Раньше показывалась нативным alert() — системное окно
   браузера в момент оплаты выглядит как сбой сайта. Своя плашка внизу экрана. */
.buy-error {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%) translateY(12px);
  z-index: 9999;
  max-width: min(440px, calc(100vw - 32px));
  padding: 14px 18px;
  background: #1a1216;
  border: 1px solid rgba(251, 113, 133, .45);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  color: #f4e7ea;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.buy-error.show { opacity: 1; transform: translateX(-50%) translateY(0); pointer-events: auto; }
.buy-error a { color: #ffb4c0; text-decoration: underline; }


/* ════════════════════════════════════════════════════════════
   AiSeller — фирменный слой поверх базовой темы.
   Палитра: чернильный фон + аметист #7c5cff + циан #22d3ee.
   Блок добавляется ПОСЛЕДНИМ и выигрывает по каскаду — базу выше
   не редактируем точечно, чтобы диффы с апстримом оставались чистыми.
   ════════════════════════════════════════════════════════════ */

/* Словомарка: «ai» градиентом, «seller» текстом */
.logo-text em, .ais-wm em {
  font-style: normal;
  background: linear-gradient(92deg, #9d85ff, #22d3ee);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@supports not (background-clip: text) {
  .logo-text em, .ais-wm em { color: #9d85ff; -webkit-text-fill-color: currentColor; }
}

/* Главные кнопки: градиент аметист → циановый край */
.btn-primary {
  background: linear-gradient(115deg, #8f6fff, #6a44ff 55%, #22d3ee 165%);
  border-color: transparent;
}
.btn-primary:hover {
  background: linear-gradient(115deg, #9d85ff, #7c5cff 55%, #38e0f5 165%);
  border-color: transparent;
}

/* Заголовки-акценты: вернуть живой градиент (база гасила его в моно-цвет) */
.gradient-text {
  background: linear-gradient(92deg, #9d85ff 20%, #22d3ee) !important;
  -webkit-background-clip: text !important; background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  color: #9d85ff !important;
}

/* Реальные логотипы продуктов на карточках витрины: масштаб через font-size
   родителя (.pcard-glyph), поэтому все брейкпоинты работают без правок */
.pcard-logo { width: 1em; height: 1em; display: block; }
