/* ============================================================
   ВключиДом — дизайн-система
   Палитра: «тёплый свет в тёмной квартире»
   ============================================================ */

:root {
  --bg: #0E1116;
  --bg-2: #151A21;
  --bg-3: #1C232C;
  --line: rgba(244, 241, 234, 0.09);
  --text: #F4F1EA;
  --muted: #A9B1BC;
  --amber: #FFB454;
  --amber-soft: #FFC97E;
  --amber-glow: rgba(255, 180, 84, 0.28);
  --green: #7BD88F;
  --red: #FF7A6B;
  --radius: 18px;
  --radius-sm: 12px;
  --font-head: "Unbounded", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --shadow-card: 0 12px 40px rgba(0, 0, 0, 0.35);
  --shadow-glow: 0 8px 40px var(--amber-glow);
  --header-h: 72px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }

a { color: var(--amber); text-decoration: none; }
a:hover { color: var(--amber-soft); }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
h1 { font-size: clamp(30px, 5.4vw, 58px); }
h2 { font-size: clamp(24px, 3.6vw, 40px); }
h3 { font-size: clamp(18px, 2.2vw, 24px); }
h4 { font-family: var(--font-body); font-weight: 800; font-size: 18px; }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }

section { padding: clamp(56px, 9vw, 110px) 0; }

.section-head { max-width: 720px; margin-bottom: clamp(28px, 5vw, 52px); }
.section-head .kicker {
  color: var(--amber); font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.14em; font-size: 13px; margin-bottom: 14px; display: block;
}
.section-head p { color: var(--muted); margin-top: 14px; font-size: 18px; }

.muted { color: var(--muted); }
.accent { color: var(--amber); }
.center { text-align: center; }
.center .section-head { margin-inline: auto; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border-radius: 999px; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 800; font-size: 16px;
  transition: transform 0.15s ease, box-shadow 0.3s ease, background 0.2s ease;
  text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--amber); color: #1A1206; box-shadow: var(--shadow-glow); }
.btn-primary:hover { background: var(--amber-soft); color: #1A1206; }
.btn-primary.pulse { animation: glowPulse 3.2s ease-in-out infinite; }
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1.5px solid rgba(244, 241, 234, 0.25);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }
.btn-sm { padding: 11px 20px; font-size: 15px; }
.btn-block { width: 100%; }

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(255, 180, 84, 0.22); }
  50% { box-shadow: 0 8px 46px rgba(255, 180, 84, 0.45); }
}

/* ---------- Хедер ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  transition: background 0.3s ease, box-shadow 0.3s ease, height 0.3s ease;
  height: var(--header-h);
  display: flex; align-items: center;
}
.header.scrolled {
  background: rgba(14, 17, 22, 0.86);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
  height: 62px;
}
.header-inner { display: flex; align-items: center; gap: 26px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 19px; color: var(--text); }
.logo:hover { color: var(--text); }
.logo .logo-mark {
  /* Слот под маскота 40×40 — заменить на персонажа */
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  background: radial-gradient(circle at 50% 38%, var(--amber-soft), var(--amber) 70%);
  display: grid; place-items: center; position: relative;
  box-shadow: 0 4px 18px var(--amber-glow);
}
.logo .logo-mark::before {
  content: ""; width: 14px; height: 6px; position: absolute; top: 15px;
  background:
    radial-gradient(circle 3px at 3px 3px, #1A1206 98%, transparent),
    radial-gradient(circle 3px at 11px 3px, #1A1206 98%, transparent);
}
.logo .logo-mark::after {
  content: ""; width: 8px; height: 3px; border-radius: 0 0 8px 8px;
  background: #1A1206; position: absolute; top: 24px;
}
.logo b { color: var(--amber); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: 4px; }
.nav > a, .nav-drop > button {
  color: var(--text); font-weight: 600; font-size: 15px; padding: 9px 13px;
  border-radius: 10px; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav-drop > button:hover { background: rgba(244, 241, 234, 0.07); color: var(--text); }
.nav-drop { position: relative; }
.nav-drop > button::after {
  content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s;
}
.nav-drop.open > button::after { transform: rotate(-135deg) translateY(-2px); }
.dropdown {
  position: absolute; top: calc(100% + 10px); left: -20px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-card); padding: 22px;
  display: none; grid-template-columns: repeat(2, 240px); gap: 20px 28px;
}
.nav-drop.open .dropdown { display: grid; }
.dropdown-group b {
  display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--amber); margin-bottom: 8px;
}
.dropdown-group a { display: block; color: var(--text); font-size: 15px; padding: 6px 0; font-weight: 500; }
.dropdown-group a:hover { color: var(--amber); }

.header-cta { margin-left: auto; display: flex; align-items: center; gap: 16px; }
.header-phone { color: var(--text); font-weight: 800; font-size: 16px; white-space: nowrap; }
.header-phone:hover { color: var(--amber); }

.burger {
  display: none; width: 44px; height: 44px; border: none; background: none;
  cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.burger span { width: 24px; height: 2.5px; background: var(--text); border-radius: 2px; transition: 0.3s; }
.burger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Мобильное меню */
.mobile-menu {
  position: fixed; inset: 0; z-index: 85; background: var(--bg);
  padding: 90px 24px 32px; overflow-y: auto;
  display: none; flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu > a { color: var(--text); font-family: var(--font-head); font-size: 22px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mobile-menu details { border-bottom: 1px solid var(--line); }
.mobile-menu summary {
  color: var(--text); font-family: var(--font-head); font-size: 22px; padding: 12px 0;
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.mobile-menu summary::after { content: "+"; color: var(--amber); font-size: 26px; }
.mobile-menu details[open] summary::after { content: "–"; }
.mobile-menu details a { display: block; color: var(--muted); font-size: 17px; padding: 8px 0 8px 12px; }
.mobile-menu .mm-contacts { margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.mobile-menu .mm-contacts .header-phone { font-size: 22px; }
.mm-messengers { display: flex; gap: 12px; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs { padding: calc(var(--header-h) + 24px) 0 0; font-size: 14px; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs li:not(:last-child)::after { content: "→"; margin-left: 6px; opacity: 0.5; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--amber); }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + clamp(40px, 8vw, 90px)) 0 clamp(56px, 8vw, 100px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin: 22px 0 30px; max-width: 560px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 10px 22px; flex-wrap: wrap; margin-top: 28px; color: var(--muted); font-size: 15px; font-weight: 600; }
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges span::before { content: "✓"; color: var(--amber); font-weight: 800; }

/* Сцена «включается свет» */
.hero-scene { position: relative; }
.hero-glow {
  position: absolute; inset: -20%; pointer-events: none;
  background: radial-gradient(circle at 60% 40%, var(--amber-glow), transparent 60%);
  opacity: 0; transition: opacity 1.6s ease 0.4s;
}
.lights-on .hero-glow { opacity: 1; }

/* Страничный hero (внутренние страницы) */
.page-hero { padding: 28px 0 clamp(40px, 6vw, 64px); }
.page-hero .lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); margin-top: 18px; max-width: 720px; }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); border-color: rgba(255, 180, 84, 0.35); }
.card .card-icon { font-size: 30px; margin-bottom: 16px; display: block; line-height: 1; }
.card h3 { margin-bottom: 10px; font-size: 19px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card.static:hover { transform: none; box-shadow: none; border-color: var(--line); }

/* Сценарии */
.scenario-card { position: relative; overflow: hidden; cursor: default; }
.scenario-card .media-ph { margin: -28px -28px 18px; border-radius: 0; aspect-ratio: 16/8; }

/* ---------- Медиа-плейсхолдеры ---------- */
.media-ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 180, 84, 0.10), transparent 55%),
    linear-gradient(150deg, var(--bg-3), var(--bg-2) 70%);
  border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; color: var(--muted); font-size: 14px; text-align: center; padding: 20px;
}
.media-ph::before { content: attr(data-icon); font-size: 34px; opacity: 0.85; }
.media-ph[data-ratio="16:9"] { aspect-ratio: 16/9; }
.media-ph[data-ratio="4:3"] { aspect-ratio: 4/3; }
.media-ph[data-ratio="1:1"] { aspect-ratio: 1/1; }
.media-ph[data-ratio="9:16"] { aspect-ratio: 9/16; }
.media-ph small { opacity: 0.7; max-width: 260px; }

/* ---------- Квиз ---------- */
.quiz-wrap {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(22px, 4vw, 40px); display: grid; grid-template-columns: 1.4fr 1fr;
  gap: clamp(22px, 4vw, 44px); position: relative;
}
.quiz-progress { height: 5px; background: var(--bg-3); border-radius: 99px; margin-bottom: 26px; overflow: hidden; }
.quiz-progress i { display: block; height: 100%; background: var(--amber); border-radius: 99px; transition: width 0.4s ease; }
.quiz-step h3 { margin-bottom: 6px; }
.quiz-step .quiz-sub { color: var(--muted); font-size: 15px; margin-bottom: 20px; }
.quiz-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.quiz-opt {
  background: var(--bg-3); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 14px; cursor: pointer; text-align: center; font-weight: 700; font-size: 15px;
  color: var(--text); transition: 0.2s; font-family: var(--font-body);
}
.quiz-opt .qo-icon { display: block; font-size: 26px; margin-bottom: 8px; }
.quiz-opt .qo-price { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 4px; }
.quiz-opt:hover { border-color: rgba(255, 180, 84, 0.5); }
.quiz-opt.selected { border-color: var(--amber); background: rgba(255, 180, 84, 0.10); box-shadow: 0 0 0 1px var(--amber) inset; }
.quiz-nav { display: flex; gap: 12px; margin-top: 26px; }
.quiz-counter { display: flex; align-items: center; gap: 14px; }
.quiz-counter button {
  width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line);
  background: var(--bg-3); color: var(--text); font-size: 20px; cursor: pointer; font-weight: 800;
}
.quiz-counter output { font-size: 22px; font-weight: 800; min-width: 40px; text-align: center; }

.quiz-summary {
  background: var(--bg-3); border-radius: var(--radius); padding: 26px;
  position: sticky; top: 90px; align-self: start;
}
.quiz-summary .qs-title { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); font-weight: 800; margin-bottom: 12px; }
.quiz-price { font-family: var(--font-head); font-size: clamp(28px, 3vw, 38px); color: var(--amber); }
.quiz-price .old { font-size: 0.55em; color: var(--muted); text-decoration: line-through; margin-left: 10px; font-family: var(--font-body); }
.quiz-items { list-style: none; margin: 16px 0; font-size: 14.5px; color: var(--muted); }
.quiz-items li { padding: 7px 0; border-bottom: 1px dashed var(--line); display: flex; justify-content: space-between; gap: 12px; }
.quiz-items li b { color: var(--text); font-weight: 600; }
.qs-note { font-size: 13px; color: var(--muted); margin-top: 12px; }
.qs-discount { color: var(--green); font-size: 14px; font-weight: 700; margin-top: 8px; }

/* Маскот в квизе */
.mascot-slot { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 18px; }
.mascot-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none; position: relative;
  background: radial-gradient(circle at 50% 35%, var(--amber-soft), var(--amber) 75%);
  box-shadow: 0 4px 16px var(--amber-glow);
}
.mascot-avatar::before {
  content: ""; width: 16px; height: 7px; position: absolute; top: 16px; left: 14px;
  background:
    radial-gradient(circle 3.5px at 3.5px 3.5px, #1A1206 98%, transparent),
    radial-gradient(circle 3.5px at 12.5px 3.5px, #1A1206 98%, transparent);
}
.mascot-avatar::after { content: ""; width: 9px; height: 4px; border-radius: 0 0 9px 9px; background: #1A1206; position: absolute; top: 27px; left: 17.5px; }
.mascot-bubble {
  background: var(--bg-3); border: 1px solid var(--line); border-radius: 4px 16px 16px 16px;
  padding: 10px 16px; font-size: 14.5px; color: var(--muted);
}

/* ---------- Искра (маскот) ----------
   PNG/WebP с прозрачным фоном — ставится на любой тёмный фон. */
.iskra-quiz {
  width: 92px; height: 92px; flex: none;
  transition: opacity 0.25s ease;
  animation: iskra-float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 0 18px rgba(255, 180, 84, 0.22));
}
.iskra-thanks { width: 130px; height: 130px; margin: 0 auto 14px; display: block; filter: drop-shadow(0 0 20px rgba(255, 180, 84, 0.25)); }
.iskra-face-sm { width: 44px; height: 44px; flex: none; }
.iskra-footer { width: 96px; height: 96px; margin-top: 14px; opacity: 0.95; }
.iskra-404 {
  width: min(280px, 65vw); margin: 0 auto 6px; display: block;
  animation: iskra-float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(255, 180, 84, 0.3));
}
.iskra-master { width: min(260px, 100%); margin-top: 16px; filter: drop-shadow(0 0 22px rgba(255, 180, 84, 0.22)); }
.iskra-hero {
  width: min(320px, 75%); height: auto; display: block; margin: 20px auto 0;
  animation: iskra-float 4.5s ease-in-out infinite;
  filter: drop-shadow(0 0 34px rgba(255, 180, 84, 0.3));
}
@keyframes iskra-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .iskra-quiz, .iskra-404, .iskra-hero { animation: none; } }

/* ---------- Формы ---------- */
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 6px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: var(--radius-sm);
  background: var(--bg-3); border: 1.5px solid var(--line); color: var(--text);
  font-family: var(--font-body); font-size: 16px; outline: none; transition: border-color 0.2s;
}
.field input:focus, .field textarea:focus { border-color: var(--amber); }
.field input.error { border-color: var(--red); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.form-note a { color: var(--muted); text-decoration: underline; }
.form-success { text-align: center; padding: 30px 10px; }
.form-success .fs-icon { font-size: 48px; margin-bottom: 14px; }

.msg-choice { display: flex; gap: 10px; flex-wrap: wrap; }
.msg-choice .quiz-opt { flex: 1; padding: 12px; }

/* ---------- Пакеты ---------- */
.packages { align-items: stretch; }
.package { display: flex; flex-direction: column; position: relative; }
.package .pkg-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--amber); color: #1A1206; font-size: 12.5px; font-weight: 800;
  padding: 5px 16px; border-radius: 99px; white-space: nowrap;
}
.package.featured { border-color: var(--amber); box-shadow: var(--shadow-glow); }
.package .pkg-price { font-family: var(--font-head); font-size: 32px; color: var(--amber); margin: 6px 0 2px; }
.package .pkg-for { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.package ul { list-style: none; margin-bottom: 24px; flex: 1; }
.package li { padding: 8px 0 8px 26px; position: relative; font-size: 15px; color: var(--muted); border-bottom: 1px dashed var(--line); }
.package li::before { content: "✓"; position: absolute; left: 0; color: var(--amber); font-weight: 800; }
.packages-note { text-align: center; color: var(--muted); font-size: 15px; margin-top: 26px; max-width: 680px; margin-inline: auto; }

/* ---------- Таблица модулей ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.price-table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 640px; }
.price-table th, .price-table td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--bg-3); font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.price-table td.price { color: var(--amber); font-weight: 800; white-space: nowrap; }
.price-table tr:last-child td { border-bottom: none; }
.price-table td { color: var(--muted); }
.price-table td:first-child { color: var(--text); font-weight: 600; }

/* ---------- Таймлайн ---------- */
.timeline { display: grid; gap: 0; counter-reset: step; }
.timeline-item { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding-bottom: 34px; position: relative; }
.timeline-item::before {
  counter-increment: step; content: counter(step);
  width: 44px; height: 44px; border-radius: 50%; background: var(--bg-3);
  border: 1.5px solid var(--amber); color: var(--amber); font-weight: 800; font-size: 18px;
  display: grid; place-items: center; z-index: 1;
}
.timeline-item::after {
  content: ""; position: absolute; left: 21px; top: 44px; bottom: 0;
  width: 2px; background: var(--line);
}
.timeline-item:last-child::after { display: none; }
.timeline-item h3 { font-size: 19px; margin-bottom: 6px; }
.timeline-item p { color: var(--muted); font-size: 15.5px; max-width: 640px; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text); cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 17px; text-align: left;
  padding: 20px 44px 20px 0; position: relative;
}
.faq-q::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  color: var(--amber); font-size: 26px; font-weight: 400; transition: transform 0.25s;
}
.faq-item.open .faq-q::after { transform: translateY(-50%) rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 0 22px; color: var(--muted); font-size: 15.5px; max-width: 700px; }
.faq-a-inner a { font-weight: 600; }

/* ---------- Отзывы / кейсы ---------- */
.review-card blockquote { font-size: 15.5px; color: var(--muted); font-style: normal; }
.review-card .rc-author { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.review-card .rc-stars { color: var(--amber); letter-spacing: 2px; font-size: 14px; }
.rc-name { font-weight: 700; font-size: 15px; }
.rc-meta { font-size: 13px; color: var(--muted); }

.case-card { overflow: hidden; padding: 0; display: flex; flex-direction: column; }
.case-card .media-ph { border-radius: 0; border: none; }
.case-card .case-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.case-card .case-price { color: var(--amber); font-weight: 800; }
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 12.5px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 99px; padding: 4px 12px; color: var(--muted); }

/* До/после слайдер */
.ba-slider { position: relative; border-radius: var(--radius); overflow: hidden; user-select: none; }
.ba-slider .ba-after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.ba-slider .media-ph { border-radius: 0; height: 100%; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: var(--amber);
  cursor: ew-resize; z-index: 3;
}
.ba-handle::after {
  content: "↔"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 44px; height: 44px; background: var(--amber); color: #1A1206; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
}

/* ---------- Числа/статы ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(28px, 4vw, 44px); color: var(--amber); }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA-полоса ---------- */
.cta-band {
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 180, 84, 0.16), transparent 55%),
    var(--bg-2);
  border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(30px, 5vw, 56px); text-align: center;
}
.cta-band h2 { max-width: 640px; margin-inline: auto; }
.cta-band p { color: var(--muted); margin: 14px auto 26px; max-width: 560px; }
.cta-band .hero-ctas { justify-content: center; }

/* ---------- Блог ---------- */
.article-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.article-card .media-ph { border-radius: 0; border: none; aspect-ratio: 16/9; }
.article-card .ac-body { padding: 24px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--amber); }
.ac-meta { font-size: 13px; color: var(--muted); }
.article-card .ac-body p { color: var(--muted); font-size: 15px; flex: 1; }

/* Статья */
.prose { max-width: 760px; }
.prose > * + * { margin-top: 1.2em; }
.prose h2 { margin-top: 1.8em; font-size: clamp(22px, 3vw, 30px); }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { color: var(--muted); font-size: 17px; }
.prose strong { color: var(--text); }
.prose ul, .prose ol { padding-left: 24px; }
.prose blockquote {
  border-left: 3px solid var(--amber); padding: 4px 0 4px 20px;
  color: var(--text); font-size: 18px;
}
.prose .toc {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 28px;
}
.prose .toc b { display: block; margin-bottom: 10px; font-size: 15px; }
.prose .toc ol { margin: 0; padding-left: 20px; }
.prose .toc a { color: var(--muted); font-size: 15px; }
.prose .toc a:hover { color: var(--amber); }
.article-cta {
  background: var(--bg-2); border: 1px solid rgba(255, 180, 84, 0.3); border-radius: var(--radius);
  padding: 26px 28px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap; justify-content: space-between;
}
.article-cta p { color: var(--text); font-weight: 700; margin: 0; }
.article-meta { display: flex; gap: 16px; color: var(--muted); font-size: 14px; margin: 16px 0 28px; flex-wrap: wrap; }

/* Читайте также */
.related { border-top: 1px solid var(--line); margin-top: 60px; padding-top: 40px; }

/* ---------- Футер ---------- */
.footer { background: var(--bg-2); border-top: 1px solid var(--line); padding: clamp(44px, 6vw, 70px) 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; margin-bottom: 44px; }
.footer h4 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--text); font-size: 15px; padding: 5px 0; font-weight: 500; }
.footer-col a:hover { color: var(--amber); }
.footer-about p { color: var(--muted); font-size: 14.5px; margin-top: 14px; }
.footer .disclaimer { font-size: 13px; color: var(--muted); opacity: 0.8; margin-top: 14px; }
.footer-contacts .header-phone { font-size: 20px; display: block; margin-bottom: 6px; }
.footer-contacts p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; }
.footer-bottom {
  border-top: 1px solid var(--line); padding-top: 24px; display: flex;
  justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 13.5px;
}
.socials { display: flex; gap: 10px; }
.socials a {
  width: 40px; height: 40px; border-radius: 12px; background: var(--bg-3);
  border: 1px solid var(--line); display: grid; place-items: center; font-size: 17px; color: var(--text);
}
.socials a:hover { border-color: var(--amber); }

/* ---------- Плавающие кнопки ---------- */
.float-stack {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; pointer-events: none; transform: translateY(16px);
  transition: 0.4s ease;
}
.float-stack.visible { opacity: 1; pointer-events: auto; transform: none; }
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  display: grid; place-items: center; font-size: 24px; color: #fff;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45); transition: transform 0.2s;
}
.float-btn:hover { transform: scale(1.08); }
.float-btn.fb-call { background: var(--amber); color: #1A1206; }
.float-btn.fb-call.ring { animation: ringPulse 10s ease-in-out infinite; }
.float-btn.fb-wa { background: #2BB741; }
.float-btn.fb-tg { background: #2AABEE; }
@keyframes ringPulse {
  0%, 92%, 100% { transform: none; }
  94%, 98% { transform: rotate(-8deg) scale(1.06); }
  96% { transform: rotate(8deg) scale(1.06); }
}

/* Sticky-CTA мобильная */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 82;
  background: rgba(14, 17, 22, 0.92); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
  display: none; gap: 10px; transform: translateY(110%); transition: transform 0.35s ease;
}
.sticky-cta.visible { transform: none; }
.sticky-cta .btn { flex: 1; padding: 13px; font-size: 15px; }
.sticky-cta .sc-call {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-3); border: 1px solid var(--line); font-size: 20px;
}

/* ---------- Модалки ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100; background: rgba(6, 8, 11, 0.72);
  backdrop-filter: blur(6px); display: none; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 24px;
  width: min(460px, 100%); padding: 34px; position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px); } }
.modal h3 { margin-bottom: 8px; padding-right: 30px; }
.modal .modal-sub { color: var(--muted); font-size: 15px; margin-bottom: 22px; }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 38px; height: 38px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--bg-3);
  color: var(--muted); font-size: 17px; cursor: pointer;
}
.modal-close:hover { color: var(--text); border-color: var(--muted); }

/* ---------- Лид-магнит ---------- */
.leadmagnet {
  background: var(--bg-2); border: 1px dashed rgba(255, 180, 84, 0.4); border-radius: var(--radius);
  padding: 28px; display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
}
.leadmagnet .lm-icon { font-size: 40px; }
.leadmagnet .lm-text { flex: 1; min-width: 220px; }
.leadmagnet .lm-text b { display: block; font-size: 17px; margin-bottom: 4px; }
.leadmagnet .lm-text span { color: var(--muted); font-size: 14.5px; }
.leadmagnet form { display: flex; gap: 10px; flex-wrap: wrap; }
.leadmagnet input {
  padding: 13px 16px; border-radius: var(--radius-sm); background: var(--bg-3);
  border: 1.5px solid var(--line); color: var(--text); font-size: 15px; min-width: 200px;
}

/* ---------- Анимации появления ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s cubic-bezier(0.2, 0.6, 0.2, 1), transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

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

/* ---------- 404 ---------- */
.page-404 { min-height: 70vh; display: grid; place-items: center; text-align: center; padding-top: var(--header-h); }
.page-404 .code { font-family: var(--font-head); font-size: clamp(80px, 18vw, 180px); color: var(--amber); line-height: 1; }

/* ---------- Утилиты ---------- */
.mt-1 { margin-top: 12px; } .mt-2 { margin-top: 24px; } .mt-3 { margin-top: 40px; } .mt-4 { margin-top: 64px; }
.mb-2 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* ============================================================
   Адаптив
   ============================================================ */
@media (max-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .dropdown { grid-template-columns: repeat(2, 210px); }
}

@media (max-width: 900px) {
  .nav { display: none; }
  .burger { display: flex; }
  .header-cta .btn { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .quiz-wrap { grid-template-columns: 1fr; }
  .quiz-summary { position: static; }
  .grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .sticky-cta { display: flex; }
  .float-stack { bottom: 84px; }
  .grid-2 { grid-template-columns: 1fr; }
  .header-phone { display: none; }
  .mobile-menu .header-phone { display: block; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { width: calc(100% - 32px); }
  .quiz-options { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero-ctas .btn { width: 100%; }
}
