/* ============================================================
   AlexVerde AI — Redesign Layer
   Полный хайтек-редизайн публичного сайта под AI-платформу.
   Переводит дизайн-систему (токены site.css) на AI-палитру,
   добавляет 3D-фон, метаморфозы кнопок, стекло и новые секции.
   Подключается ПОСЛЕ site.css — переопределяет токены и компоненты.
   ============================================================ */

/* ---------- 1. AI-палитра (переопределение токенов site.css) ---------- */
:root {
  /* Фон: глубокий космос, почти чёрный с холодным подтоном */
  --bg: #101713;
  --bg-2: #0d1310;
  --surface: #161f19;
  --surface-2: #1a241d;
  --surface-3: #203026;

  /* Текст */
  --text: #f4f3ee;
  --text-2: #a9b6a9;
  --muted: #70806f;

  /* Бренд: премиальное золото AlexVerde сохраняем как якорь */
  --accent: #8DD9A6;
  --accent-2: #a9e6bd;
  --accent-soft: rgba(141, 217, 166, 0.10);
  --gold: #8DD9A6;
  --gold-soft: rgba(141, 217, 166, 0.12);

  /* AI-неон: изумрудно-бирюзовый — основной «智能化» акцент */
  --ai: #8DD9A6;
  --ai-2: #A9E6BD;
  --ai-soft: rgba(141, 217, 166, 0.10);
  --sky: #8DD9A6;
  --sky-soft: rgba(141, 217, 166, 0.10);

  /* Доп. неоны для градиентов и свечений */
  --violet: #86A98F;
  --violet-soft: rgba(134, 169, 143, 0.12);
  --cyan: #9CC5A5;
  --cyan-soft: rgba(156, 197, 165, 0.10);

  --danger: #ff647c;
  --danger-soft: rgba(255, 100, 124, 0.12);

  /* Рамки: холодные, с AI-подсветкой */
  --border: rgba(160, 200, 170, 0.12);
  --border-strong: rgba(170, 210, 180, 0.26);
  --border-ai: rgba(141, 217, 166, 0.22);

  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;

  /* Многослойные тени со стеклянным свечением */
  --shadow-card:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 40px -24px rgba(0, 0, 0, 0.55);
  --shadow-glow: 0 0 0 1px var(--border-strong), 0 14px 34px -22px rgba(0, 0, 0, 0.5);

  --text-shadow: 0 1px 2px rgba(2, 4, 10, 0.65), 0 2px 26px rgba(2, 4, 10, 0.55);
  --text-shadow-soft: 0 1px 2px rgba(2, 4, 10, 0.6), 0 1px 14px rgba(2, 4, 10, 0.45);

  /* Аура-градиент для героя/кнопок: золото → изумруд → фиолет */
  --ai-grad: linear-gradient(110deg, #8DD9A6 0%, #b7e7c6 100%);
  --ai-grad-soft: linear-gradient(110deg, rgba(141,217,166,.10), rgba(141,217,166,.16));

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Manrope', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', monospace;
  --font-cyber: 'Manrope', 'Inter', sans-serif;
}

/* ---------- 2. Фон страницы: Quiet Technology — туманности + тонкая сетка ---------- */
body {
  background: #101713;
  background-image:
    radial-gradient(1100px 650px at 70% 12%, rgba(141, 217, 166, 0.07), transparent 62%),
    radial-gradient(1000px 600px at 15% 85%, rgba(134, 169, 143, 0.07), transparent 60%),
    radial-gradient(900px 520px at 95% 90%, rgba(141, 217, 166, 0.045), transparent 55%),
    linear-gradient(rgba(141, 217, 166, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 217, 166, 0.035) 1px, transparent 1px);
  background-size: auto, auto, auto, 56px 56px, 56px 56px;
  background-attachment: fixed;
}
/* Фоллбэк-вариант (используется как основной фон) */
.no-ai-bg body, body.no-ai-bg {
  background-image:
    radial-gradient(1100px 650px at 70% 12%, rgba(141, 217, 166, 0.07), transparent 62%),
    radial-gradient(1000px 600px at 15% 85%, rgba(134, 169, 143, 0.07), transparent 60%),
    linear-gradient(rgba(141, 217, 166, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 217, 166, 0.035) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
}

/* 3D WebGL-сцена (нейросеть/частицы) — подложка под контентом */
#ai-bg {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.4s ease;
  transform: translateZ(0);
  will-change: transform;
}
#ai-bg.is-ready { opacity: 1; }
/* Лёгкая вуаль, чтобы текст всегда читался поверх сцены */
#ai-bg-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1400px 800px at 50% -10%, transparent 60%, rgba(12, 17, 13, 0.38) 100%),
    linear-gradient(180deg, rgba(12, 17, 13, 0.06) 0%, rgba(12, 17, 13, 0.18) 100%);
}
@media (max-width: 720px) {
  #ai-bg { opacity: 0; }
  #ai-bg.is-ready { opacity: 0.62; }
}
/* Нет WebGL / экономия батареи — 3D-сцена скрыта, работает фоллбэк-фон body */
.no-ai-bg #ai-bg, .no-ai-bg #ai-bg-veil, body.no-ai-bg #ai-bg, body.no-ai-bg #ai-bg-veil { display: none; }
@media (prefers-reduced-motion: reduce) {
  #ai-bg { transition: none; }
  #ai-bg, #ai-bg-veil { animation: none; }
}

/* ---------- 3. Метаморфозы кнопок ---------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.2, 0.9, 0.2, 1),
    box-shadow 0.45s ease,
    color 0.3s ease,
    background-color 0.45s ease,
    border-color 0.45s ease,
    letter-spacing 0.45s ease;
}
/* Скользящая световая волна — «живая» метаморфоза при наведении */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.28) 48%, transparent 76%);
  transform: translateX(-120%) skewX(-18deg);
  transition: transform 0.8s cubic-bezier(0.2, 0.9, 0.2, 1);
  pointer-events: none;
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(120%) skewX(-18deg); }

/* Метаморфоза формы: скругление «дышит», кнопка чуть вытягивается */
.btn-primary {
  background: var(--ai);
  color: #101713;
  font-weight: 700;
  border: none;
  box-shadow: 0 6px 18px -10px rgba(141, 217, 166, 0.45);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: #a9e6bd;
  transform: translateY(-1px);
  box-shadow: 0 10px 26px -12px rgba(141, 217, 166, 0.55);
  color: #101713;
}
.btn-primary:active { transform: translateY(1px); }

.btn-outline {
  background: rgba(10, 15, 30, 0.4);
  border: 1px solid var(--border-ai);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-outline:hover, .btn-outline:focus-visible {
  transform: translateY(-2px);
  border-radius: 999px;
  border-color: var(--ai);
  color: var(--ai);
  box-shadow: 0 0 26px -6px rgba(141, 217, 166, 0.5);
}

.btn-ghost { color: var(--text-2); }
.btn-ghost:hover { color: var(--ai); transform: translateY(-1px); }

/* Магнитная кнопка: JS подтягивает к курсору (data-magnetic) */
.btn-magnetic { will-change: transform; }

@keyframes btnGradShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* ---------- 4. Стеклянные карточки ---------- */
.card, .glass {
  position: relative;
  background: linear-gradient(160deg, rgba(18, 27, 48, 0.72), rgba(8, 12, 24, 0.72));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.2, 1), border-color 0.4s ease, box-shadow 0.4s ease;
}
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(141, 217, 166, 0.5), transparent 40%, rgba(134, 169, 143, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}
.card:hover { transform: translateY(-2px); border-color: var(--border-strong); }
.card:hover::after { opacity: 1; }

/* ---------- 5. Градиентный текст ---------- */
.grad-text, .grad {
  background: linear-gradient(100deg, #8DD9A6 0%, #c9ecd3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

/* ---------- 6. Новый герой ---------- */
.hero-ai {
  position: relative;
  padding: clamp(84px, 12vw, 150px) 0 clamp(60px, 8vw, 100px);
}
.hero-ai .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-cyber);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ai);
  padding: 8px 16px;
  border: 1px solid var(--border-ai);
  border-radius: 999px;
  background: rgba(141, 217, 166, 0.05);
}
.hero-ai .eyebrow .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ai);
  box-shadow: 0 0 12px var(--ai);
  animation: livePulse 1.8s ease-in-out infinite;
}
.hero-ai h1 {
  font-size: clamp(38px, 6.4vw, 82px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  margin: 26px 0 22px;
}
.hero-ai .hero-sub {
  font-size: clamp(16px, 2.1vw, 21px);
  color: var(--text-2);
  max-width: 640px;
  line-height: 1.65;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 60px;
  max-width: 720px;
}
.hero-stats .stat {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(10, 15, 30, 0.5);
  backdrop-filter: blur(10px);
}
.hero-stats .stat b {
  display: block;
  font-family: var(--font-cyber);
  font-size: clamp(24px, 3.4vw, 34px);
  background: var(--ai-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}
.hero-stats .stat span { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 3D-панель «AI-агенты» в герое */
.ai-panel {
  position: relative;
  border: 1px solid var(--border-ai);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(14, 21, 38, 0.85), rgba(6, 9, 20, 0.9));
  box-shadow: var(--shadow-glow);
  padding: 22px;
  backdrop-filter: blur(16px);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg);
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
}
.ai-panel:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg) translateY(-4px); }
.ai-panel .ai-agent-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.ai-panel .ai-agent-row:hover {
  background: rgba(141, 217, 166, 0.06);
  border-color: var(--border-ai);
  transform: translateX(4px);
}
.ai-agent-icon {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--ai-grad-soft);
  border: 1px solid var(--border-ai);
  font-size: 20px;
}
.ai-agent-row .status {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ai);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(141, 217, 166, 0.08);
  border: 1px solid var(--border-ai);
}

/* ---------- 7. Секции и заголовки ---------- */
.section-ai { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.sec-head-ai { max-width: 720px; margin-bottom: 54px; }
.sec-head-ai .eyebrow {
  font-family: var(--font-cyber);
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ai);
}
.sec-head-ai h2 {
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -0.03em;
  margin: 16px 0 16px;
  line-height: 1.08;
}
.sec-head-ai p { color: var(--text-2); font-size: clamp(15px, 1.8vw, 18px); }

/* Карточка направления продукта */
.product-card-ai { padding: 30px; }
.product-card-ai .feature-icon {
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 16px;
  font-size: 28px;
  background: var(--ai-grad-soft);
  border: 1px solid var(--border-ai);
  margin-bottom: 22px;
}
.product-card-ai h3 { font-size: 22px; margin-bottom: 12px; }
.product-card-ai p { color: var(--text-2); margin-bottom: 18px; }
.product-card-ai ul { list-style: none; display: grid; gap: 10px; margin-bottom: 22px; }
.product-card-ai li { display: flex; gap: 10px; font-size: 14px; color: var(--text-2); }
.product-card-ai li::before { content: '▸'; color: var(--ai); }

/* Шаги «как работает» */
.step-card-ai { padding: 28px; }
.step-card-ai .step-num {
  font-family: var(--font-cyber);
  font-size: 40px;
  background: var(--ai-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: 14px;
}

/* FAQ — аккордеон (классы .faq-item/.faq-q/.faq-a обслуживает initFaq из site.js) */
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(10, 15, 30, 0.5);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item:hover { border-color: var(--border-ai); }
.faq-item .faq-q {
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  font-size: 16px;
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  text-align: left;
}
.faq-item .faq-a { padding: 0 22px; color: var(--text-2); }
.faq-item.open .faq-a { padding: 0 22px 20px; }
.faq-item .faq-icon { color: var(--ai); transition: transform 0.3s ease; font-family: var(--font-cyber); }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ---------- 8. Lead-форма «заявка» ---------- */
.lead-form {
  display: grid;
  gap: 16px;
  padding: 32px;
  border: 1px solid var(--border-ai);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(14, 21, 38, 0.8), rgba(6, 9, 20, 0.85));
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-glow);
}
.lead-form .field { display: grid; gap: 8px; }
.lead-form label { font-size: 13px; color: var(--text-2); font-weight: 500; }
.lead-form input, .lead-form textarea, .lead-form select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(4, 6, 14, 0.6);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.lead-form input:focus, .lead-form textarea:focus, .lead-form select:focus {
  outline: none;
  border-color: var(--ai);
  box-shadow: 0 0 0 3px rgba(141, 217, 166, 0.15);
}
.lead-form textarea { resize: vertical; min-height: 110px; }
.lead-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .lead-form .row-2 { grid-template-columns: 1fr; } }
.lead-form .form-note { font-size: 12px; color: var(--muted); }
.lead-ok {
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid var(--border-ai);
  background: rgba(141, 217, 166, 0.08);
  color: var(--ai);
  font-weight: 600;
}

/* CTA-баннер */
.cta-banner-ai {
  position: relative;
  text-align: center;
  padding: clamp(40px, 6vw, 72px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-ai);
  background:
    radial-gradient(700px 300px at 50% 0%, rgba(141, 217, 166, 0.12), transparent 70%),
    linear-gradient(160deg, rgba(14, 21, 38, 0.85), rgba(6, 9, 20, 0.9));
  overflow: hidden;
}
.cta-banner-ai h2 { font-size: clamp(26px, 4vw, 44px); margin-bottom: 16px; }
.cta-banner-ai p { color: var(--text-2); max-width: 560px; margin: 0 auto 30px; }

/* ---------- 9. Утилиты ---------- */
.text-ai { color: var(--ai); }
.grid-ai-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.grid-ai-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .grid-ai-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid-ai-2, .grid-ai-3 { grid-template-columns: 1fr; } }

/* Плавное появление (совместимо с initScrollReveal) */
.reveal-ai { opacity: 0; transform: translateY(36px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-ai.active { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-ai { opacity: 1; transform: none; transition: none; }
  .btn, .btn::before, .card, .ai-panel { transition: none !important; animation: none !important; }
}

/* --- Клиентский кабинет: список заявок и быстрые действия --- */
.cab-leads { display: grid; gap: 14px; }
.cab-lead {
  border: 1px solid var(--border, #1a2138);
  border-radius: 14px;
  padding: 16px 18px;
  background: var(--surface, rgba(255, 255, 255, 0.03));
}
.cab-lead-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cab-lead p { color: var(--muted, #9aa4bf); font-size: 14.5px; margin-bottom: 8px; overflow-wrap: anywhere; }
.lead-status {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: var(--font-cyber, inherit);
}
.lead-status.is-new { color: var(--ai, #8DD9A6); background: rgba(141, 217, 166, 0.12); border: 1px solid rgba(141, 217, 166, 0.35); }
.lead-status.is-progress { color: var(--cyan, #9CC5A5); background: rgba(156, 197, 165, 0.12); border: 1px solid rgba(156, 197, 165, 0.35); }
.lead-status.is-bad { color: var(--danger, #ff5f6d); background: rgba(255, 95, 109, 0.12); border: 1px solid rgba(255, 95, 109, 0.35); }
.quick-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Клиентский кабинет: welcome-hero --- */
.cab-hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 30px 32px;
  margin-bottom: 24px;
  border-radius: 20px;
  border: 1px solid var(--border-ai, rgba(141, 217, 166, 0.22));
  background:
    linear-gradient(135deg, rgba(141, 217, 166, 0.10), rgba(134, 169, 143, 0.08) 55%, rgba(141, 217, 166, 0.06)),
    var(--surface, rgba(255, 255, 255, 0.03));
  overflow: hidden;
}
.cab-hero-glow {
  position: absolute;
  right: -70px;
  top: -90px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(141, 217, 166, 0.28), transparent 65%);
  pointer-events: none;
}
.cab-hero-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display, inherit);
  font-size: 30px;
  font-weight: 700;
  color: #04120d;
  background: linear-gradient(135deg, var(--ai, #8DD9A6), var(--cyan, #9CC5A5));
  box-shadow: 0 0 34px rgba(141, 217, 166, 0.35);
}
.cab-hero-body { position: relative; z-index: 1; min-width: 0; }
.cab-hero-body h2 { font-size: 22px; margin-bottom: 6px; }
.cab-hero-body p { color: var(--muted, #9aa4bf); font-size: 14.5px; margin-bottom: 16px; max-width: 560px; }
.cab-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 640px) {
  .cab-hero { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
}

/* --- Три направления --- */
.cab-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
@media (max-width: 900px) { .cab-benefits { grid-template-columns: 1fr; } }
.cab-benefit {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 22px 24px;
  border-radius: 16px;
  border: 1px solid var(--border, #1a2138);
  background: var(--surface, rgba(255, 255, 255, 0.03));
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
}
.cab-benefit:hover {
  transform: translateY(-4px);
  border-color: rgba(141, 217, 166, 0.45);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35), 0 0 26px rgba(141, 217, 166, 0.12);
}
.cab-benefit-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ai, #8DD9A6);
  background: rgba(141, 217, 166, 0.10);
  border: 1px solid rgba(141, 217, 166, 0.28);
  margin-bottom: 4px;
}
.cab-benefit b { font-size: 16.5px; color: var(--text, #eef2ff); }
.cab-benefit span { color: var(--muted, #9aa4bf); font-size: 13.5px; line-height: 1.55; }
.cab-benefit-go {
  position: absolute;
  top: 20px;
  right: 20px;
  font-style: normal;
  color: var(--ai, #8DD9A6);
  opacity: 0.6;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.cab-benefit:hover .cab-benefit-go { transform: translateX(4px); opacity: 1; }

/* --- Счётчик заявок в заголовке панели --- */
.cab-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--ai, #8DD9A6);
  background: rgba(141, 217, 166, 0.12);
  border: 1px solid rgba(141, 217, 166, 0.35);
  border-radius: 999px;
  padding: 2px 10px;
}

/* --- Кабинет заполняет экран: без чёрной дыры до футера --- */
.cabinet { min-height: 62vh; }
.cabinet-main .cabinet-banner { margin-bottom: 22px; }

/* ---------- Quiet Technology: светлые аналитические секции (Ivory) ---------- */
.section-light {
  background: #f4f3ee;
  color: #1c2620;
}
.section-light h1, .section-light h2, .section-light h3 { color: #14201a; }
.section-light p, .section-light li { color: #3d4a41; }
.section-light .card {
  background: #ffffff;
  border-color: rgba(20, 32, 26, 0.10);
  box-shadow: 0 10px 30px -22px rgba(20, 32, 26, 0.25);
}
.section-light .card:hover { border-color: rgba(20, 32, 26, 0.22); }
.section-light .grad-text, .section-light .grad {
  background: linear-gradient(100deg, #2e6e46 0%, #4c8f63 100%);
  -webkit-background-clip: text; background-clip: text;
}
.section-light .eyebrow {
  color: #2e6e46;
  border-color: rgba(46, 110, 70, 0.25);
  background: rgba(141, 217, 166, 0.12);
}
.section-light .btn-primary { background: #2e6e46; color: #f4f3ee; }
.section-light .btn-primary:hover, .section-light .btn-primary:focus-visible { background: #245a39; color: #f4f3ee; }
.section-light .btn-outline { border-color: rgba(20, 32, 26, 0.25); color: #1c2620; }
.section-light .btn-outline:hover { border-color: #2e6e46; color: #2e6e46; }
.section-light a:not(.btn) { color: #2e6e46; }
.section-light .kicker { color: #2e6e46; }

/* ============================================================
   Quiet Technology — лендинг (qt-*)
   ============================================================ */
.section-qt { padding: clamp(72px, 9vw, 120px) 0; position: relative; }
.sec-head-qt { max-width: 760px; margin-bottom: 48px; }
.sec-head-qt h2 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.12; letter-spacing: -0.02em; margin: 18px 0 14px; font-weight: 800; }
.sec-head-qt .sec-sub { font-size: 17px; line-height: 1.65; color: var(--text-2); }
.sec-head-qt .eyebrow {
  display: inline-block; font-size: 11.5px; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--ai); border: 1px solid var(--border-ai); border-radius: 999px; padding: 7px 14px; background: rgba(141, 217, 166, 0.06);
}
.grid-qt-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.grid-qt-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 960px) { .grid-qt-3, .grid-qt-2 { grid-template-columns: 1fr; } }

.qt-card { padding: 26px 26px 24px; }
.qt-card h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 10px; }
.qt-card p { font-size: 14.5px; line-height: 1.62; color: var(--text-2); }
.qt-num { display: inline-block; font-family: var(--font-mono); font-size: 12.5px; color: var(--ai); border: 1px solid var(--border-ai); border-radius: 6px; padding: 3px 9px; margin-bottom: 16px; }
.qt-result { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.qt-result b { color: var(--text); font-weight: 600; }
.qt-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--ai); text-decoration: none; }
.qt-more:hover span { transform: translateX(3px); }
.qt-more span { transition: transform 0.2s ease; }
.qt-closing { max-width: 720px; margin: 36px auto 0; text-align: center; font-size: 16.5px; line-height: 1.6; color: var(--text-2); }

/* Hero */
.hero-qt { padding: clamp(72px, 10vw, 130px) 0 clamp(56px, 7vw, 90px); }
.hero-qt h1 { font-size: clamp(34px, 5.2vw, 64px); line-height: 1.08; letter-spacing: -0.025em; margin: 22px 0 20px; font-weight: 800; }
.hero-qt .hero-sub { font-size: clamp(16px, 1.9vw, 19.5px); color: var(--text-2); max-width: 620px; line-height: 1.62; }
.hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 0; }
.hero-points li { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--text-2); }
.hero-points svg { color: var(--ai); flex: none; }

/* Панель-схема в hero */
.qt-panel { border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); padding: 24px; box-shadow: var(--shadow-card); }
.qt-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.qt-panel-title { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-2); }
.qt-panel-tag { font-family: var(--font-mono); font-size: 11px; color: var(--ai); border: 1px solid var(--border-ai); border-radius: 999px; padding: 3px 10px; }
.qt-steps-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.qt-steps-mini li { display: flex; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border); position: relative; }
.qt-steps-mini li:last-child { border-bottom: none; }
.qt-steps-mini li::before { content: ""; position: absolute; left: 5px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.qt-steps-mini { counter-reset: qstep; }
.qt-steps-mini li { counter-increment: qstep; padding-left: 26px; }
.qt-steps-mini li::after { content: counter(qstep); position: absolute; left: 0; top: 12px; width: 11px; height: 11px; border-radius: 50%; background: var(--ai); opacity: 0.9; font: 0/0 a; }
.qt-steps-mini b { flex: none; width: 130px; font-size: 14px; font-weight: 700; color: var(--text); }
.qt-steps-mini span { font-size: 13px; color: var(--muted); }
.qt-panel-foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.qt-panel-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 10px; }
.qt-integrations { display: flex; flex-wrap: wrap; gap: 8px; }
.qt-integrations span { font-size: 12.5px; color: var(--text-2); border: 1px solid var(--border); border-radius: 6px; padding: 4px 10px; background: rgba(141, 217, 166, 0.04); }

/* Кейсы */
.qt-case-tag { display: inline-block; font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #2e6e46; background: rgba(141, 217, 166, 0.16); border-radius: 999px; padding: 4px 12px; margin-bottom: 14px; font-weight: 700; }
.qt-case-fields { margin: 14px 0 0; display: grid; gap: 10px; }
.qt-case-fields dt { font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.qt-case-fields dd { margin: 2px 0 0; font-size: 14px; line-height: 1.5; color: #3d4a41; }
.qt-case-note { margin-top: 14px; font-size: 12.5px; line-height: 1.5; color: var(--muted); border-top: 1px dashed rgba(20, 32, 26, 0.15); padding-top: 12px; }
.section-light .qt-more { color: #2e6e46; }

/* Timeline процесса */
.qt-timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; position: relative; }
@media (max-width: 960px) { .qt-timeline { grid-template-columns: 1fr; } }
.qt-timeline li { position: relative; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 22px 22px 20px; display: flex; gap: 16px; align-items: flex-start; }
.qt-step-n { flex: none; width: 34px; height: 34px; border-radius: 8px; background: rgba(141, 217, 166, 0.10); border: 1px solid var(--border-ai); color: var(--ai); font-family: var(--font-mono); font-size: 15px; display: grid; place-items: center; }
.qt-timeline h3 { font-size: 16.5px; margin-bottom: 6px; }
.qt-timeline p { font-size: 13.5px; line-height: 1.55; color: var(--text-2); }

/* Основатель */
.qt-founder { margin-top: 44px; display: grid; grid-template-columns: 240px 1fr; gap: 32px; align-items: start; padding: 30px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
@media (max-width: 720px) { .qt-founder { grid-template-columns: 1fr; } }
.qt-founder-photo { aspect-ratio: 1; border-radius: var(--radius); border: 1px dashed rgba(20, 32, 26, 0.25); display: grid; place-items: center; color: var(--muted); font-size: 13px; background: rgba(141, 217, 166, 0.05); }
.qt-founder-body h3 { font-size: 21px; margin: 14px 0 12px; }
.qt-founder-body p { font-size: 14.5px; line-height: 1.65; color: var(--text-2); margin-bottom: 10px; }

/* Экономический эффект */
.qt-roi-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; margin-bottom: 44px; }
@media (max-width: 960px) { .qt-roi-grid { grid-template-columns: 1fr; } }
.qt-roi-factors { list-style: none; margin: 0; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: 12px; }
.qt-roi-factors li { display: flex; gap: 12px; align-items: baseline; font-size: 14.5px; color: var(--text-2); }
.qt-roi-factors li::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--ai); flex: none; align-self: center; }
.qt-roi-note { padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface-2); }
.qt-roi-note h3 { font-size: 17px; margin-bottom: 10px; }
.qt-roi-note p { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.qt-stage-main { border-color: var(--border-strong); }

/* Финальная форма */
.qt-contact-grid { align-items: start; }
.qt-meet-title { font-size: 15px; margin: 26px 0 12px; color: var(--text); }
.qt-meet { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.qt-meet li { display: flex; gap: 12px; align-items: baseline; font-size: 14.5px; color: var(--text-2); }
.qt-meet li::before { content: "—"; color: var(--ai); }

/* Доступность: видимый фокус */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--ai);
  outline-offset: 2px;
}
.calc-note { margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: var(--muted); }
.section-light .calc-note { color: #5a6a5e; }
