/* Выкуп86 — дизайн-система «Ночной Север» */

:root {
  --bg: #0F1115;
  --surface: #181B22;
  --surface-2: #20242D;
  --line: #2A2F3A;
  --text: #F2F3F5;
  --text-2: #9AA3B2;
  --accent: #FF6B1A;
  --accent-2: #FF8A47;
  --cold: #BFE3FF;
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --shadow: 0 20px 50px -20px rgba(0,0,0,.6);
  --ff-head: "Unbounded", "Arial Narrow", sans-serif;
  --ff-body: "Manrope", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
svg { width: 22px; height: 22px; flex: none; }
.card .ico svg { width: 40px; height: 40px; }
.btn svg { width: 18px; height: 18px; }
.check-list svg { width: 18px; height: 18px; }
.phone-link svg { width: 20px; height: 20px; margin-right: 2px; vertical-align: -5px; }
.footer-messengers svg { width: 20px; height: 20px; }
.mobile-bar svg { width: 20px; height: 20px; }
.hero-actions .btn-ghost svg { width: 18px; height: 18px; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1,h2,h3,h4 { font-family: var(--ff-head); font-weight: 700; line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 700; }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0 0 1em; color: var(--text); }
p.lead { color: var(--text-2); font-size: 18px; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-tight { padding: 40px 0; }
.section-title { max-width: 720px; margin-bottom: 32px; }
.section-title .kicker { color: var(--accent); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: .08em; margin-bottom: 8px; display: block; }
.bg-surface { background: var(--surface); }
.bg-surface-2 { background: var(--surface-2); }
.bg-orange { background: linear-gradient(135deg, #FF6B1A, #E85A0D); color: #1a0e04; }
.bg-orange h2, .bg-orange h3 { color: #1a0e04; }
.bg-orange p { color: #3a2311; }
main { display: block; }

/* -------- Кнопки -------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--ff-body); font-weight: 700; font-size: 16px;
  padding: 15px 26px; border-radius: var(--radius); border: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent); color: #1a0e04; }
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(255,107,26,.6); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-dark { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-dark:hover { border-color: var(--accent); }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 30px; font-size: 17px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.phone-link { font-family: var(--ff-head); font-weight: 700; color: var(--text); font-size: 20px; white-space: nowrap; }
.header-cta .phone-link { font-size: 16px; }
.header-cta .btn { padding: 12px 18px; font-size: 14px; white-space: nowrap; }
.phone-link:hover { color: var(--accent); }

/* -------- Шапка -------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,17,21,.92); backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; gap: 12px; height: 76px; }
.logo { font-family: var(--ff-head); font-weight: 700; font-size: 21px; color: var(--text); display: flex; align-items: center; gap: 10px; margin-right: auto; flex: none; }
.logo .dot { color: var(--accent); }
.main-nav { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.main-nav > .nav-item { position: relative; flex: none; }
.main-nav > a,
.main-nav > .nav-item > a,
.main-nav summary {
  display: flex; align-items: center; gap: 5px; padding: 9px 9px; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 14px; color: var(--text); cursor: pointer; list-style: none; white-space: nowrap;
}
.main-nav summary::-webkit-details-marker { display: none; }
.main-nav > a { flex: none; }
.main-nav > a:hover, .main-nav > .nav-item > a:hover, .main-nav summary:hover { color: var(--accent); background: var(--surface); }
.nav-caret { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; margin-top: -3px; }
details[open] .nav-caret { transform: rotate(-135deg); margin-top: 3px; }
.dropdown-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 240px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 10px; box-shadow: var(--shadow); display: grid; gap: 2px; z-index: 60;
}
.dropdown-panel.wide { min-width: 480px; grid-template-columns: 1fr 1fr; gap: 4px 20px; }
.dropdown-panel .col-title { color: var(--text-2); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px 4px; }
.dropdown-panel a { padding: 8px 10px; border-radius: var(--radius-sm); font-size: 14px; }
.dropdown-panel a:hover { background: var(--surface); color: var(--accent); }
.header-cta { display: flex; align-items: center; gap: 12px; flex: none; }
.burger { display: none; align-items: center; justify-content: center; background: none; border: none; color: var(--text); width: 40px; height: 40px; cursor: pointer; }

/* -------- Бегущая строка -------- */
.marquee { background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; padding: 12px 0; }
.marquee-track { display: flex; gap: 40px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { font-weight: 700; color: var(--text-2); font-size: 14px; white-space: nowrap; letter-spacing: .02em; }
.marquee span b { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* -------- Hero -------- */
.hero {
  position: relative; min-height: 640px; display: flex; align-items: stretch;
  border-bottom: 1px solid var(--line);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15,17,21,.97) 8%, rgba(15,17,21,.86) 40%, rgba(15,17,21,.35) 68%, rgba(15,17,21,.12) 100%);
}
.hero .container { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; width: 100%; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 20px 0 28px; }
.hero-facts li { display: flex; align-items: baseline; gap: 8px; color: var(--text-2); font-size: 14px; }
.hero-facts b { font-family: var(--ff-head); color: var(--accent); font-size: 20px; }
.hero-actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.hero-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
}
.hero-card h2 { font-size: 20px; margin-bottom: 4px; }
.hero-card .lead { font-size: 14px; margin-bottom: 18px; }

/* -------- Формы -------- */
.field { display: block; margin-bottom: 14px; }
.field label { display: block; font-size: 13px; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  border-radius: var(--radius-sm); padding: 13px 14px; font-family: var(--ff-body); font-size: 15px;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--text-2); margin: 14px 0; }
.consent input { margin-top: 3px; }
.consent a { color: var(--cold); text-decoration: underline; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 12px; color: var(--text-2); margin-top: 10px; }
.form-status { margin-top: 12px; font-size: 14px; padding: 12px; border-radius: var(--radius-sm); display: none; }
.form-status.show { display: block; }
.form-status.ok { background: rgba(191,227,255,.1); color: var(--cold); border: 1px solid rgba(191,227,255,.3); }
.form-status.err { background: rgba(255,107,26,.1); color: var(--accent-2); border: 1px solid rgba(255,107,26,.3); }

/* -------- Шаги (sticky) -------- */
.steps-wrap { display: grid; grid-template-columns: .8fr 1.4fr; gap: 48px; align-items: start; }
.steps-sticky { position: sticky; top: 100px; }
.steps-list { display: grid; gap: 18px; }
.step-card {
  display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.step-num { font-family: var(--ff-head); font-size: 40px; font-weight: 700; color: var(--accent); line-height: 1; }
.step-card h3 { margin-bottom: 6px; }
.step-card p { color: var(--text-2); margin: 0; font-size: 14.5px; }

/* -------- Фото-карточки -------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.photo-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; border: 1px solid var(--line); }
.photo-card img { width: 100%; height: 100%; object-fit: cover; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(15,17,21,.92) 10%, rgba(15,17,21,.15) 60%); }
.photo-card .cap { position: absolute; left: 18px; right: 18px; bottom: 16px; z-index: 2; }
.photo-card .cap h3 { margin-bottom: 4px; font-size: 18px; }
.photo-card .cap p { margin: 0; color: var(--text-2); font-size: 13.5px; }

/* -------- Карточки-фичи -------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  transition: border-color .15s, transform .15s;
}
.card:hover { border-color: var(--accent); transform: translateY(-2px); }
.card .ico { width: 40px; height: 40px; color: var(--cold); margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 14.5px; margin: 0; }
.card .num { font-family: var(--ff-head); color: var(--accent); font-size: 28px; margin-bottom: 10px; display: block; }

/* -------- Квиз -------- */
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; max-width: 620px; }
.bg-orange .quiz { background: rgba(26,14,4,.92); border-color: rgba(26,14,4,.4); }
.quiz-progress { display: flex; gap: 6px; margin-bottom: 22px; }
.quiz-progress i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.quiz-progress i.done { background: var(--accent); }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: translateY(0);} }
.quiz-step h3 { margin-bottom: 4px; color: var(--text); }
.bg-orange .quiz-step h3 { color: var(--text); }
.quiz-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.quiz-options button {
  background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: var(--radius-sm);
  padding: 14px; font-family: var(--ff-body); font-weight: 600; font-size: 14.5px; cursor: pointer; text-align: left;
}
.quiz-options button:hover { border-color: var(--accent); }
.quiz-options button.selected { border-color: var(--accent); background: rgba(255,107,26,.12); color: var(--accent-2); }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 12px; }
.quiz-nav .btn-ghost { border-color: rgba(255,255,255,.2); }
.quiz-result { text-align: center; padding: 10px 0; }
.quiz-result .big { font-family: var(--ff-head); font-size: 22px; color: var(--accent); margin: 14px 0; }

/* -------- Сравнение -------- */
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.compare-table th { font-family: var(--ff-head); font-size: 15px; color: var(--text-2); background: var(--surface-2); }
.compare-table th.hl, .compare-table td.hl { background: rgba(255,107,26,.08); color: var(--text); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table td.no { color: var(--text-2); }
.compare-table td.yes { color: var(--cold); font-weight: 700; }

/* -------- FAQ -------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; cursor: pointer; font-weight: 600; }
.faq-q .plus { width: 22px; height: 22px; position: relative; flex: none; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--accent); border-radius: 2px; }
.faq-q .plus::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.faq-q .plus::after { height: 100%; width: 2px; left: 50%; top: 0; transform: translateX(-50%); transition: transform .2s; }
.faq-item.open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; }
.faq-a p { padding: 0 22px 20px; color: var(--text-2); font-size: 14.5px; margin: 0; }
.faq-item.open .faq-a { max-height: 400px; }

/* -------- CTA полоса -------- */
.cta-band { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.cta-band .btn { flex: none; }
.cta-form { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-form .field { flex: 1; min-width: 160px; margin-bottom: 0; }

/* -------- Списки-галочки -------- */
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-2); font-size: 15px; }
.check-list svg { flex: none; margin-top: 3px; color: var(--cold); }

/* -------- Хлебные крошки -------- */
.crumbs { padding: 16px 0; font-size: 13.5px; color: var(--text-2); }
.crumbs a:hover { color: var(--accent); }
.crumbs .sep { margin: 0 6px; opacity: .5; }

/* -------- Хабы (списки марок/районов/городов) -------- */
.hub-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.hub-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.hub-card h3 { margin-bottom: 6px; font-size: 17px; }
.hub-card p { color: var(--text-2); font-size: 13.5px; margin: 0 0 12px; }
.hub-card .btn { font-size: 14px; padding: 10px 16px; }

/* -------- Навигатор ситуаций (раздел «Сложные случаи») -------- */
.situations-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.situation-tile {
  display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px 18px; transition: border-color .15s, transform .15s;
}
.situation-tile:hover { border-color: var(--accent); transform: translateY(-2px); }
.situation-tile .ico { color: var(--cold); flex: none; }
.situation-tile .n { font-family: var(--ff-head); color: var(--accent); font-size: 13px; flex: none; }
.situation-tile .t { font-weight: 700; font-size: 14.5px; }
.situation-card .num { font-family: var(--ff-head); color: var(--accent); font-size: 13px; display: block; margin-bottom: 8px; }
.situation-card .more { color: var(--cold); font-weight: 700; font-size: 14px; display: inline-block; margin-top: 8px; }
.article-body ol { margin: 0 0 1.2em; padding-left: 20px; color: var(--text-2); }
.article-body ol li { margin-bottom: 8px; }
.article-body ol li b { color: var(--text); }

/* -------- Подтема раздела «Сложные случаи» --------
   Тот же тёмный каркас (шапка/подвал/шрифты/кнопки не трогаем — они всё ещё
   используют --accent оранжевый). Внутри раздела только переопределяем токены
   поверхности/линии и заводим отдельный --case-accent (сигнальный жёлтый) для
   меток и рамок карточек — почерк источника, без второго файла и без копий
   компонентов. */
.slozhnye-theme {
  --surface: #14161b;
  --surface-2: #1a1d24;
  --line: #3a3220;
  --case-accent: #FFC21A;
  background: #0b0c10;
}
.slozhnye-theme .kicker,
.slozhnye-theme .card .num,
.slozhnye-theme .situation-tile .n,
.slozhnye-theme .situation-card .num,
.slozhnye-theme .step-num {
  color: var(--case-accent);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
.slozhnye-theme .hero-facts b { color: var(--case-accent); }
.slozhnye-theme .card,
.slozhnye-theme .situation-tile,
.slozhnye-theme .hub-card { border-color: var(--line); }
.slozhnye-theme .card:hover,
.slozhnye-theme .situation-tile:hover,
.slozhnye-theme .hub-card:hover { border-color: var(--case-accent); }
.slozhnye-theme .faq-q .plus::before,
.slozhnye-theme .faq-q .plus::after { background: var(--case-accent); }
.slozhnye-theme .compare-table th.hl,
.slozhnye-theme .compare-table td.hl { background: rgba(255, 194, 26, .10); }
.slozhnye-theme .hero-media::after {
  background: linear-gradient(90deg, rgba(11,12,16,.97) 8%, rgba(11,12,16,.88) 40%, rgba(11,12,16,.4) 68%, rgba(11,12,16,.14) 100%);
}
.header-brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.header-brand .logo { margin-right: 0; }
.section-badge {
  background: var(--case-accent, #FFC21A); color: #1a0e04;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 5px 10px; border-radius: 999px; white-space: nowrap;
}

/* -------- Блог -------- */
.blog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.blog-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.blog-card .date { color: var(--text-2); font-size: 13px; margin-bottom: 8px; display: block; }
.article-body h2 { margin-top: 1.6em; }
.article-body h3 { margin-top: 1.3em; }
.article-body ul { margin: 0 0 1.2em; padding-left: 20px; list-style: disc; color: var(--text-2); }
.article-body li { margin-bottom: 6px; }
.article-meta { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 28px; font-size: 13.5px; color: var(--text-2); }
.article-meta p { margin: 0 0 6px; }
.article-meta p:last-child { margin-bottom: 0; }
.article-meta b { color: var(--text); }
.article-inline-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 32px 0; }
.article-inline-form h3 { margin-bottom: 6px; }
.article-inline-form > p { color: var(--text-2); margin-bottom: 16px; }

/* -------- Футер -------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 100px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
.footer-col h4 { color: var(--text-2); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.footer-col a, .footer-col p { display: block; color: var(--text-2); font-size: 14px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--line); padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--text-2); font-size: 12.5px; }
.footer-messengers { display: flex; gap: 10px; margin-top: 6px; }
.footer-messengers a { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; margin: 0; }
.footer-messengers a:hover { border-color: var(--accent); }

/* -------- Sticky мобильная панель -------- */
.mobile-bar { display: none; }

/* -------- Анимация появления -------- */
.reveal { opacity: 1; transform: none; }
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}

/* -------- Страница оценки -------- */
.quiz-page-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }

/* -------- Адаптив -------- */
@media (max-width: 1080px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-card { max-width: 480px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .photo-grid { grid-template-columns: 1fr; }
  .steps-wrap { grid-template-columns: 1fr; }
  .steps-sticky { position: static; }
  .hub-grid { grid-template-columns: repeat(3, 1fr); }
  .situations-nav { grid-template-columns: repeat(2, 1fr); }
  .cta-band { grid-template-columns: 1fr; }
  .quiz-page-wrap { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav, .header-cta .phone-link, .header-cta .btn { display: none; }
  .burger { display: flex; }
  body.nav-open .main-nav {
    display: flex; position: fixed; inset: 76px 0 0 0; background: var(--bg); z-index: 49;
    flex-direction: column; padding: 20px; overflow-y: auto; gap: 6px;
  }
  body.nav-open .main-nav .dropdown-panel { position: static; box-shadow: none; margin-top: 6px; }
  body.nav-open .main-nav .dropdown-panel.wide { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .grid-4, .hub-grid, .blog-grid, .situations-nav { grid-template-columns: 1fr; }
  .quiz-options { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 44px 0; }
  .hero { min-height: auto; }
  .hero .container { padding-top: 32px; padding-bottom: 32px; }
  body { padding-bottom: 72px; }
  .mobile-bar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .mobile-bar a {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
    height: 48px; font-weight: 700; font-size: 13px;
  }
  .mobile-bar a.call { background: var(--accent); color: #1a0e04; border-color: var(--accent); }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* -------- История сделки под прокрутку -------- */
.deal-story { padding-block: 80px 40px; }
.deal-head { margin-bottom: 32px; max-width: var(--container); }
.deal-head .lead { max-width: 720px; }
/* Карточки: телефон, отключённые анимации, без JS */
.deal-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.deal-step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.deal-step figure { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; }
.deal-step img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deal-text { padding: 18px 20px 22px; }
.deal-text h3 { margin: 8px 0 6px; }
.deal-text p { margin: 0; color: var(--text-2); }
.deal-of { color: var(--text-2); font-size: .85em; }
.deal-progress { display: none; }
@media (max-width: 1080px) { .deal-steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .deal-steps { grid-template-columns: 1fr; } }

/* Сцена под прокрутку: компьютер */
.deal-live .deal-track { height: calc(var(--steps) * 70vh + 100vh); }
.deal-live .deal-stage { position: sticky; top: 0; height: 100vh; overflow: hidden; }
.deal-live .deal-stage::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(15,17,21,.94) 0%, rgba(15,17,21,.72) 34%, rgba(15,17,21,.1) 62%, rgba(15,17,21,0) 75%),
              linear-gradient(0deg, rgba(15,17,21,.7) 0%, rgba(15,17,21,0) 22%); }
.deal-live .deal-steps { display: block; }
.deal-live .deal-step { background: none; border: 0; border-radius: 0; overflow: visible; }
.deal-live .deal-step figure { position: absolute; inset: 0; aspect-ratio: auto; z-index: 0; opacity: 0; transition: opacity .7s ease; }
.deal-live .deal-step img { transform: scale(1.08); transform-origin: 60% 55%; will-change: transform; }
.deal-live .deal-text { position: absolute; z-index: 2; top: 50%; transform: translateY(-40%);
  left: max(24px, calc((100vw - var(--container)) / 2 + 24px)); width: min(460px, 40vw);
  padding: 0; opacity: 0; transition: opacity .5s ease, transform .5s ease; pointer-events: none; }
.deal-live .deal-text .step-num { font-size: 56px; line-height: 1; }
.deal-live .deal-text h3 { font-size: clamp(26px, 2.6vw, 38px); margin: 14px 0 12px; }
.deal-live .deal-text p { font-size: 18px; color: var(--text); opacity: .86; }
.deal-live .deal-step.is-active figure { opacity: 1; }
.deal-live .deal-step.is-active .deal-text { opacity: 1; transform: translateY(-50%); pointer-events: auto; }
.deal-live .deal-progress { display: block; position: absolute; z-index: 2; bottom: 48px; height: 3px; background: var(--line);
  left: max(24px, calc((100vw - var(--container)) / 2 + 24px)); width: min(460px, 40vw); border-radius: 2px; overflow: hidden; }
.deal-live .deal-progress span { display: block; height: 100%; width: 0; background: var(--accent); }

/* -------- Машинка-помощник и окно ИИ-агента -------- */
.toycar { position: fixed; left: 0; top: 0; z-index: 900; width: 64px; height: 40px; padding: 0; border: 0; background: none;
  cursor: pointer; will-change: transform; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); -webkit-tap-highlight-color: transparent; }
.toycar svg { display: block; width: 100%; height: 100%; transition: transform .25s ease; }
.toycar.is-left svg { transform: scaleX(-1); }
.toycar .wheel { transform-box: fill-box; transform-origin: center; }
.toycar.is-moving .wheel { animation: toycar-spin .35s linear infinite; }
@keyframes toycar-spin { to { transform: rotate(360deg); } }
.toycar:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 10px; }
.toycar-tip { position: absolute; bottom: 100%; left: 50%; transform: translate(-50%, -6px); white-space: nowrap;
  background: var(--accent); color: #111; font: 600 12px/1 var(--ff-body); padding: 7px 10px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.toycar.show-tip .toycar-tip { opacity: 1; }
.toycar.is-parked { position: fixed; left: auto; top: auto; right: 20px; bottom: 20px; transform: none !important; }
@media (max-width: 767px) { .toycar.is-parked { bottom: 84px; right: 14px; } }

.agent { position: fixed; right: 20px; bottom: 20px; z-index: 950; width: min(380px, calc(100vw - 24px)); height: min(560px, calc(100vh - 40px));
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow); overflow: hidden; opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease; }
.agent.is-open { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 767px) { .agent { right: 12px; bottom: 12px; height: calc(100vh - 24px); } }
.agent-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.agent-ava { width: 40px; height: 40px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; flex: none; }
.agent-ava svg { width: 30px; height: 20px; }
.agent-title { font: 700 15px/1.2 var(--ff-head); }
.agent-sub { font-size: 12px; color: var(--text-2); }
.agent-sub::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #3ecf6e; margin-right: 6px; }
.agent-close { margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font-size: 22px; cursor: pointer; }
.agent-close:hover { background: var(--bg); color: var(--text); }
.agent-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.agent-msg { max-width: 86%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.45; }
.agent-msg a { color: var(--accent-2); }
.agent-msg.bot { background: var(--surface-2); border-top-left-radius: 4px; align-self: flex-start; }
.agent-msg.me { background: var(--accent); color: #111; border-top-right-radius: 4px; align-self: flex-end; }
.agent-msg.typing { color: var(--text-2); font-style: italic; }
.agent-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 10px; }
.agent-chip { border: 1px solid var(--line); background: transparent; color: var(--text); border-radius: 999px; padding: 7px 12px; font: 500 13px/1 var(--ff-body); cursor: pointer; }
.agent-chip:hover { border-color: var(--accent); color: var(--accent-2); }
.agent-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.agent-input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 12px; padding: 11px 12px; font: 400 14px var(--ff-body); }
.agent-input:focus { outline: none; border-color: var(--accent); }
.agent-send { border: 0; border-radius: 12px; background: var(--accent); color: #111; font: 700 14px var(--ff-body); padding: 0 16px; cursor: pointer; }
.agent-note { padding: 0 14px 12px; font-size: 11px; color: var(--text-2); }
.agent-note a { color: var(--text-2); }
@media (prefers-reduced-motion: reduce) { .toycar svg, .agent { transition: none; } .toycar.is-moving .wheel { animation: none; } }

/* -------- Первый экран: форма строкой слева, фото справа открыто -------- */
.hero .container { grid-template-columns: minmax(0, 660px) 1fr; }
.hero-media img { object-position: 70% 40%; }
.hero-media::after {
  background: linear-gradient(90deg, rgba(15,17,21,.97) 0%, rgba(15,17,21,.9) 32%, rgba(15,17,21,.45) 52%, rgba(15,17,21,.05) 72%, rgba(15,17,21,0) 100%);
}
.hero-card.hero-inline { padding: 18px 20px 14px; margin: 22px 0 6px; background: rgba(24,27,34,.9); backdrop-filter: blur(6px); }
.hero-inline h2 { font-size: 16px; margin-bottom: 10px; }
.hero-inline .lead-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; align-items: end; }
.hero-inline .field { margin: 0; }
.hero-inline .btn-block { width: auto; white-space: nowrap; height: 48px; padding-inline: 22px; }
.hero-inline .consent { grid-column: 1 / -1; margin: 4px 0 0; }
.hero-inline .form-note, .hero-inline .form-status { grid-column: 1 / -1; margin: 0; }
@media (max-width: 1080px) { .hero .container { grid-template-columns: 1fr; } .hero-media::after { background: rgba(15,17,21,.78); } }
@media (max-width: 640px) { .hero-inline .lead-form { grid-template-columns: 1fr; } .hero-inline .btn-block { width: 100%; } }

/* -------- Падающие пачки: сплошной поток за текстом, 4 колонки -------- */
.money-rain { display: none; }
@media (min-width: 1080px) and (prefers-reduced-motion: no-preference) {
  .money-rain { display: block; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0;
    width: min(60vw, calc((100vw - var(--container)) / 2 + 700px)); overflow: hidden; pointer-events: none;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
  .money-rain i { position: absolute; top: -110px; width: 78px; aspect-ratio: 220 / 160; opacity: .42; background: url(/assets/img/money/bundle1.webp) center / contain no-repeat;
    filter: drop-shadow(0 8px 10px rgba(0,0,0,.55)) saturate(.9);
    animation: money-fall 18s linear infinite; will-change: transform; }
  /* 4 колонки x 3 пачки, задержки на треть цикла — поток без разрывов */
  .money-rain i:nth-child(4n+1) { left: 6%;  animation-duration: 18s; }
  .money-rain i:nth-child(4n+2) { left: 31%; animation-duration: 21s; width: 70px; }
  .money-rain i:nth-child(4n+3) { left: 56%; animation-duration: 19s; width: 74px; }
  .money-rain i:nth-child(4n+4) { left: 81%; animation-duration: 22s; width: 66px; }
  .money-rain i:nth-child(1)  { animation-delay: 0s; }    .money-rain i:nth-child(5)  { animation-delay: -6s; }   .money-rain i:nth-child(9)  { animation-delay: -12s; }
  .money-rain i:nth-child(2)  { animation-delay: -3s; }   .money-rain i:nth-child(6)  { animation-delay: -10s; }  .money-rain i:nth-child(10) { animation-delay: -17s; }
  .money-rain i:nth-child(3)  { animation-delay: -8s; }   .money-rain i:nth-child(7)  { animation-delay: -14s; }  .money-rain i:nth-child(11) { animation-delay: -1s; }
  .money-rain i:nth-child(4)  { animation-delay: -5s; }   .money-rain i:nth-child(8)  { animation-delay: -12s; }  .money-rain i:nth-child(12) { animation-delay: -19s; }
}
@keyframes money-fall {
  0%   { transform: translate(0, 0) rotate(-12deg); }
  25%  { transform: translate(14px, 200px) rotate(7deg); }
  50%  { transform: translate(-10px, 410px) rotate(-5deg); }
  75%  { transform: translate(12px, 620px) rotate(10deg); }
  100% { transform: translate(0, 860px) rotate(-8deg); }
}
.hero-inline .honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; }
.hero-inline .lead-form { position: relative; }
.hero-inline .lead-form > button[type="submit"] { grid-column: 3; grid-row: 1; }
@media (max-width: 640px) { .hero-inline .lead-form > button[type="submit"] { grid-column: 1; grid-row: auto; } }

/* -------- Camry-помощник: фото-моделька вместо рисунка -------- */
.toycar { width: 120px; height: 50px; filter: none; }
.toycar-body { display: block; width: 100%; height: 100%; transition: transform .25s ease; }
.toycar.is-left .toycar-body { transform: scaleX(-1); }
.toycar-img { display: block; width: 100%; height: auto; filter: drop-shadow(0 8px 9px rgba(0,0,0,.55)); }
.toycar.is-moving .toycar-img { animation: car-bob .22s ease-in-out infinite alternate; }
.toycar.is-hop .toycar-img { animation: car-hop .7s cubic-bezier(.3,.7,.4,1); }
@keyframes car-bob { from { transform: translateY(0); } to { transform: translateY(-1.5px); } }
@keyframes car-hop { 0%{transform:translateY(0)} 25%{transform:translateY(-16px) rotate(-3deg)} 50%{transform:translateY(0)} 70%{transform:translateY(-7px) rotate(2deg)} 100%{transform:translateY(0)} }
.toycar-beep, .toycar-tip { position: absolute; left: 50%; bottom: 100%; white-space: nowrap; pointer-events: none;
  font: 800 13px/1 var(--ff-head); padding: 8px 12px; border-radius: 999px; opacity: 0;
  transform: translate(-50%, 4px) scale(.9); transition: opacity .2s ease, transform .2s ease; }
.toycar-beep { background: #fff; color: #111; }
.toycar-tip { background: var(--accent); color: #111; box-shadow: 0 0 0 0 rgba(255,107,26,.6); }
.toycar.show-beep .toycar-beep { opacity: 1; transform: translate(-50%, -6px) scale(1); }
.toycar.show-tip .toycar-tip { opacity: 1; transform: translate(-50%, -6px) scale(1); animation: tip-pulse 1.6s ease-out infinite; }
@keyframes tip-pulse { 0% { box-shadow: 0 0 0 0 rgba(255,107,26,.55); } 100% { box-shadow: 0 0 0 14px rgba(255,107,26,0); } }
.agent-ava img { width: 34px; height: auto; }
@media (prefers-reduced-motion: reduce) { .toycar-img, .toycar.show-tip .toycar-tip { animation: none !important; } }

/* История сделки: уходящий текст гаснет сразу, плавно только появление — без наложения шагов */
.deal-live .deal-text { transition: none; }
.deal-live .deal-step.is-active .deal-text { transition: opacity .45s ease, transform .45s ease; }

/* -------- Camry смотрит влево на фото: по умолчанию разворачиваем вправо -------- */
.toycar-body { transform: scaleX(-1); }
.toycar.is-left .toycar-body { transform: none; }

/* -------- Кнопка «Узнать цену»: отблеск и свечение -------- */
.hero-inline .btn-primary, .site-header .btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.hero-inline .btn-primary::after, .site-header .btn-primary::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -60%; width: 40%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.55) 50%, rgba(255,255,255,0) 100%);
  transform: skewX(-18deg); animation: btn-shine 3.6s ease-in-out infinite; }
.hero-inline .btn-primary { box-shadow: 0 0 0 0 rgba(255,107,26,.5); animation: btn-glow 3.6s ease-out infinite; }
.hero-inline .btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -8px rgba(255,107,26,.7); animation: none; }
@keyframes btn-shine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }
@keyframes btn-glow { 0%, 50% { box-shadow: 0 0 0 0 rgba(255,107,26,.5); } 80%, 100% { box-shadow: 0 0 0 12px rgba(255,107,26,0); } }
@media (prefers-reduced-motion: reduce) { .hero-inline .btn-primary, .hero-inline .btn-primary::after, .site-header .btn-primary::after { animation: none; } }

/* -------- Оранжевый блок: квиз + рекламные места -------- */
.quiz-promo-grid { display: grid; grid-template-columns: minmax(0, 620px) minmax(0, 1fr); gap: 28px; align-items: stretch; }
.promo-col { display: grid; gap: 20px; grid-template-rows: 1.25fr 1fr; }
.promo { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; padding: 26px 28px;
  border-radius: var(--radius); text-decoration: none; transition: transform .25s ease, box-shadow .25s ease; }
.promo:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(26,14,4,.8); }
.promo-label { font: 600 11px/1 var(--ff-body); letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.promo-title { font: 700 clamp(20px, 2vw, 26px)/1.15 var(--ff-head); }
.promo-text { font-size: 14px; line-height: 1.5; max-width: 420px; }
.promo-cta { margin-top: auto; font-weight: 700; font-size: 14px; }
.promo-heat { color: #eaf6ff; background:
  radial-gradient(120% 90% at 100% 0%, rgba(191,227,255,.35) 0%, rgba(191,227,255,0) 55%),
  linear-gradient(145deg, #0e2233 0%, #133a57 55%, #1b5277 100%); border: 1px solid rgba(191,227,255,.25); }
.promo-heat .promo-cta { color: #FFB27A; }
.promo-heat::before { content: ""; position: absolute; right: -40px; bottom: -40px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,140,60,.55) 0%, rgba(255,107,26,0) 70%); animation: heat-pulse 3.2s ease-in-out infinite; }
@keyframes heat-pulse { 0%, 100% { transform: scale(.85); opacity: .6; } 50% { transform: scale(1.1); opacity: 1; } }
.promo-snow { position: absolute; inset: 0; pointer-events: none; }
.promo-snow i { position: absolute; top: -10px; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.85);
  animation: snow-fall 7s linear infinite; }
.promo-snow i:nth-child(1) { left: 12%; animation-delay: 0s; }   .promo-snow i:nth-child(2) { left: 30%; animation-delay: -2s; width: 4px; height: 4px; }
.promo-snow i:nth-child(3) { left: 52%; animation-delay: -4.5s; } .promo-snow i:nth-child(4) { left: 68%; animation-delay: -1s; width: 5px; height: 5px; }
.promo-snow i:nth-child(5) { left: 84%; animation-delay: -5.5s; width: 4px; height: 4px; } .promo-snow i:nth-child(6) { left: 94%; animation-delay: -3s; }
@keyframes snow-fall { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translate(-18px, 320px); opacity: 0; } }
.promo-partner { color: var(--text); background: rgba(26,14,4,.9); border: 1px dashed rgba(255,255,255,.28); }
.promo-partner .promo-label { color: var(--accent-2); opacity: 1; }
.promo-partner .promo-text { color: var(--text-2); }
.promo-partner .promo-cta { color: var(--accent-2); }
@media (max-width: 1080px) { .quiz-promo-grid { grid-template-columns: 1fr; } .promo-col { grid-template-rows: auto; grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .promo-col { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .promo-heat::before, .promo-snow i { animation: none; } .promo-snow { display: none; } }

/* -------- Промо-полоса под шапкой -------- */
.promo-strip { background: linear-gradient(90deg, #0e2233, #163f5e 60%, #0e2233); border-bottom: 1px solid rgba(191,227,255,.18); font-size: 14px; }
.promo-strip.is-hidden { display: none; }
.promo-strip-in { display: flex; align-items: center; gap: 12px; height: 42px; }
.promo-strip-rot { position: relative; flex: 1; height: 100%; overflow: hidden; }
.promo-strip-rot a { position: absolute; inset: 0; display: flex; align-items: center; gap: 10px; color: #dcefff; text-decoration: none;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: strip-rot 12s ease-in-out infinite; }
.promo-strip-rot a:nth-child(2) { animation-delay: -6s; }
.promo-strip-rot a b { color: #FFB27A; }
.promo-strip-rot a:hover b { text-decoration: underline; }
.promo-strip-tag { flex: none; font: 700 10px/1 var(--ff-body); letter-spacing: .08em; text-transform: uppercase; color: #0e2233;
  background: #BFE3FF; padding: 5px 7px; border-radius: 5px; }
.promo-strip-close { flex: none; width: 30px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: #9fbdd6; font-size: 20px; cursor: pointer; }
.promo-strip-close:hover { background: rgba(255,255,255,.08); color: #fff; }
@keyframes strip-rot { 0% { opacity: 0; transform: translateY(8px); } 6%, 44% { opacity: 1; transform: none; } 50%, 100% { opacity: 0; transform: translateY(-8px); } }
@media (min-width: 1080px) { .promo-strip { position: sticky; top: 77px; z-index: 49; } }
@media (max-width: 640px) { .promo-strip { font-size: 12.5px; } .promo-strip-in { height: 38px; } }
@media (prefers-reduced-motion: reduce) { .promo-strip-rot a { animation: none; } .promo-strip-rot a:nth-child(2) { display: none; } }

@media (min-width: 1080px) and (prefers-reduced-motion: no-preference) { .money-rain i:nth-child(even) { background-image: url(/assets/img/money/bundle2.webp); } }

/* -------- Голосовое от менеджера в окне помощника -------- */
.agent-voice { padding: 12px 16px 0; }
.agent-voice-btn { width: 100%; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(255,107,26,.45); background: rgba(255,107,26,.1); color: var(--text); font: 600 13px var(--ff-body); text-align: left; }
.agent-voice-btn:hover { background: rgba(255,107,26,.18); }
.agent-voice-ico { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #111; font-size: 11px; }
.agent-voice-bars { display: flex; align-items: center; gap: 3px; height: 18px; }
.agent-voice-bars i { width: 3px; height: 6px; border-radius: 2px; background: var(--accent-2); }
.voice-playing .agent-voice-bars i { animation: voice-bar .9s ease-in-out infinite; }
.voice-playing .agent-voice-bars i:nth-child(2) { animation-delay: -.2s; } .voice-playing .agent-voice-bars i:nth-child(3) { animation-delay: -.45s; }
.voice-playing .agent-voice-bars i:nth-child(4) { animation-delay: -.1s; } .voice-playing .agent-voice-bars i:nth-child(5) { animation-delay: -.6s; }
@keyframes voice-bar { 0%, 100% { height: 5px; } 50% { height: 18px; } }

/* -------- Ролик первого экрана -------- */
.hero-media img { object-position: 60% 45%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; opacity: 0; transition: opacity .8s ease; }
.hero-video.is-on { opacity: 1; }
.hero-sound { position: absolute; right: 24px; bottom: 22px; z-index: 3; border: 1px solid rgba(255,255,255,.25); background: rgba(15,17,21,.6);
  color: #fff; font: 600 13px var(--ff-body); padding: 9px 14px; border-radius: 999px; cursor: pointer; backdrop-filter: blur(6px); }
.hero-sound:hover { background: rgba(15,17,21,.85); }
.hero-media::after { z-index: 1; }
.hero-sound { top: 20px; bottom: auto; }
@media (min-width: 1080px) and (prefers-reduced-motion: no-preference) { .money-rain i { opacity: .62; } }

/* -------- Субтитры голосового над курсором -------- */
.voice-caption { position: fixed; left: 50%; top: 50%; z-index: 1000; max-width: min(520px, calc(100vw - 24px));
  transform: translate(-50%, -100%); pointer-events: none; text-align: center;
  background: rgba(10,11,14,.92); color: #fff; border: 1px solid rgba(255,107,26,.6); border-radius: 14px;
  padding: 10px 16px; font: 700 18px/1.35 var(--ff-body); box-shadow: 0 14px 30px -12px rgba(0,0,0,.7);
  opacity: 0; transition: opacity .15s ease; }
.voice-caption::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 12px; height: 12px; transform: translateX(-50%) rotate(45deg);
  background: rgba(10,11,14,.92); border-right: 1px solid rgba(255,107,26,.6); border-bottom: 1px solid rgba(255,107,26,.6); }
.voice-caption.is-on { opacity: 1; }
.voice-caption.is-docked { left: auto; top: auto; right: 20px; bottom: calc(min(560px, 100vh - 40px) + 34px); transform: none; }
.voice-caption.is-docked::after { left: auto; right: 40px; }
@media (max-width: 767px) { .voice-caption { font-size: 16px; } .voice-caption.is-docked { right: 12px; left: 12px; bottom: auto; top: 12px; max-width: none; } .voice-caption.is-docked::after { display: none; } }

/* -------- Кнопки «Позвонить» -------- */
.btn-call { display: inline-flex; align-items: center; gap: 10px; background: #2fbf63; color: #06150b; border: 0; font-weight: 700; }
.btn-call:hover { background: #3cd574; }
.btn-call svg { flex: none; }
.hero-call-row { margin-top: -6px; }
.deal-call { display: none; }
.deal-live .deal-call { display: inline-flex; position: absolute; z-index: 3; bottom: 92px; left: max(24px, calc((100vw - var(--container)) / 2 + 24px)); }
.float-call { position: fixed; left: 20px; bottom: 20px; z-index: 880; display: none; align-items: center; gap: 10px; text-decoration: none;
  background: #2fbf63; color: #06150b; font: 700 14px var(--ff-body); padding: 8px 18px 8px 8px; border-radius: 999px;
  box-shadow: 0 12px 28px -10px rgba(47,191,99,.7); }
.float-call-ico { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: #06150b; color: #3cd574;
  animation: call-ring 2.4s ease-in-out infinite; }
.float-call::before { content: ""; position: absolute; left: 8px; top: 50%; width: 38px; height: 38px; margin-top: -19px; border-radius: 50%;
  animation: call-pulse 2.4s ease-out infinite; }
@keyframes call-ring { 0%, 70%, 100% { transform: rotate(0); } 74% { transform: rotate(-14deg); } 78% { transform: rotate(12deg); } 82% { transform: rotate(-10deg); } 86% { transform: rotate(8deg); } }
@keyframes call-pulse { 0% { box-shadow: 0 0 0 0 rgba(47,191,99,.55); } 100% { box-shadow: 0 0 0 18px rgba(47,191,99,0); } }
@media (min-width: 768px) { .float-call { display: inline-flex; } }
@media (prefers-reduced-motion: reduce) { .float-call-ico, .float-call::before { animation: none; } }

/* -------- Автопоказ сцены сделки -------- */
.tour-toast { position: fixed; left: 50%; bottom: 22px; z-index: 890; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: rgba(10,11,14,.9); color: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 18px;
  font: 600 13px var(--ff-body); transition: opacity .3s ease, transform .3s ease; cursor: pointer; }
.tour-toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.tour-toast b { color: var(--accent-2); }

/* -------- Всплывающая рекламная плашка на первом экране -------- */
.ad-pop { position: absolute; z-index: 4; top: 20px; right: 160px; width: 300px; display: none; }
@media (min-width: 1080px) { .ad-pop { display: block; } }
.ad-pop-card { position: relative; padding: 14px 16px 14px; border-radius: 16px; color: #fff; text-decoration: none; display: block;
  background: linear-gradient(135deg, rgba(20,14,40,.92), rgba(45,20,70,.92)); backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.8); opacity: 0; transform: translateY(-14px) scale(.92); pointer-events: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,1.4,.4,1); }
.ad-pop.is-on .ad-pop-card { opacity: 1; transform: none; pointer-events: auto; animation: ad-float 5s ease-in-out 1s infinite; }
.ad-pop-card::before { content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: 18px;
  background: linear-gradient(120deg, #FF6B1A, #b46bff, #3cc8ff, #FF6B1A); background-size: 300% 300%; animation: ad-border 4s linear infinite; }
.ad-pop-card::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 16px; background: linear-gradient(135deg, #141028, #2d1446); }
.ad-pop-tag { display: inline-block; font: 700 10px/1 var(--ff-body); letter-spacing: .08em; text-transform: uppercase;
  color: #1a0e04; background: #FFB27A; padding: 4px 7px; border-radius: 5px; }
.ad-pop-title { display: block; margin: 8px 0 4px; font: 700 18px/1.2 var(--ff-head); }
.ad-pop-sub { display: block; font-size: 13px; line-height: 1.4; color: #d9ccff; }
.ad-pop-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 700 13px var(--ff-body); color: #FFB27A; }
.ad-pop-card:hover .ad-pop-cta { text-decoration: underline; }
.ad-pop-close { position: absolute; top: 6px; right: 6px; z-index: 2; width: 26px; height: 26px; border: 0; border-radius: 8px;
  background: rgba(255,255,255,.08); color: #cbbfff; font-size: 16px; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .3s; }
.ad-pop.is-on .ad-pop-close { opacity: 1; }
.ad-pop-close:hover { background: rgba(255,255,255,.18); color: #fff; }
@keyframes ad-border { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes ad-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: reduce) { .ad-pop-card, .ad-pop-card::before { animation: none !important; transition: opacity .2s; } }
