/* =========================================================
   Мятый элемент — кузовной ремонт после ДТП, Липецк
   Палитра: графит + сигнальный оранжевый. Mobile-first.
   ========================================================= */
:root {
  --bg: #0f1113;
  --bg-2: #15181b;
  --surface: #1b1f23;
  --surface-2: #232830;
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --text: #eef0f2;
  --muted: #a3abb4;
  --dim: #6f7882;
  --accent: #ff6600;
  --accent-2: #ff8533;
  --accent-ink: #1a0a03;
  --ok: #3ccf8e;
  --light-bg: #f3f1ee;
  --light-surface: #ffffff;
  --light-text: #16191c;
  --light-muted: #5b636c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .55);
  --font-display: "Unbounded", "Manrope", system-ui, sans-serif;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1240px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.section { padding: 72px 0; position: relative; }
@media (min-width: 1024px) { .section { padding: 112px 0; } }
.section--light { background: var(--light-bg); color: var(--light-text); }
.section--light .muted { color: var(--light-muted); }
.section--alt { background: var(--bg-2); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.section-head { max-width: 820px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(26px, 4.2vw, 46px); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 17px; color: var(--muted); max-width: 680px; }
.section--light .section-head p { color: var(--light-muted); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 14px; border: 0;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 102, 0, .8); }
.btn--primary:hover { background: var(--accent-2); }
.btn--ghost { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .12); }
.btn--dark { background: var(--light-text); color: #fff; }
.btn--dark:hover { background: #000; }
.btn--block { width: 100%; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(15, 17, 19, .86); backdrop-filter: blur(14px); border-color: var(--line); }
.header__row { display: flex; align-items: center; gap: 20px; height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
.logo__mark { width: 40px; height: 40px; flex: none; border-radius: 10px; }
.logo small { display: block; font-family: var(--font); font-weight: 500; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.nav { display: none; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 14px; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--text); }
.header__cta { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.header__phone { display: none; text-decoration: none; font-weight: 700; font-size: 17px; }
.header__phone small { display: block; font-weight: 500; font-size: 11px; color: var(--ok); }
.header__phone small::before { content: "● "; }
.icon-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.07); border: 1px solid var(--line); text-decoration: none; }
.icon-btn svg { width: 20px; height: 20px; }
.header .btn { min-height: 44px; padding: 0 18px; font-size: 14px; display: none; }
@media (min-width: 640px) { .header .btn { display: inline-flex; } }
@media (min-width: 1100px) {
  .nav { display: flex; }
  .header__cta { margin-left: 28px; }
  .header__phone { display: block; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; padding: 110px 0 40px; overflow: hidden; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media video, .hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(15,17,19,.5) 0%, rgba(15,17,19,.1) 30%, rgba(15,17,19,.55) 75%, var(--bg) 100%),
    linear-gradient(90deg, rgba(15,17,19,.88) 0%, rgba(15,17,19,.55) 45%, rgba(15,17,19,0) 80%);
}
@media (max-width: 1023px) {
  .hero::before { background: linear-gradient(180deg, rgba(15,17,19,.55) 0%, rgba(15,17,19,.78) 35%, rgba(15,17,19,.9) 70%, var(--bg) 100%); }
}
@media (min-width: 1024px) { .hero { align-items: center; padding: 120px 0 60px; } }
.hero__inner { max-width: 820px; }
.hero__geo { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; backdrop-filter: blur(8px); }
.hero__geo i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(60,207,142,.2); }
.hero h1 { font-size: clamp(28px, 4.6vw, 52px); margin-top: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__sub { margin-top: 18px; font-size: clamp(16px, 2vw, 19px); color: #d4d8dc; max-width: 620px; }
.hero__bullets { display: grid; gap: 10px; margin-top: 22px; }
.hero__bullets li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.hero__bullets svg { width: 20px; height: 20px; flex: none; color: var(--accent); margin-top: 2px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__actions .btn { flex: 1 1 260px; }
@media (min-width: 640px) { .hero__actions .btn { flex: 0 0 auto; } }
.hero__note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 36px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(10px); }
.stats > div { background: rgba(21,24,27,.82); padding: 16px 18px; }
.stats b { display: block; font-family: var(--font-display); font-size: clamp(20px, 3vw, 28px); font-weight: 600; }
.stats span { font-size: 13px; color: var(--muted); }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Trust strip ---------- */
.strip { border-block: 1px solid var(--line); background: var(--bg-2); overflow: hidden; }
.strip__track { display: flex; gap: 48px; padding: 18px 0; width: max-content; animation: marquee 38s linear infinite; }
.strip__track span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.strip__track span::before { content: ""; width: 6px; height: 6px; background: var(--accent); transform: rotate(45deg); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Situations ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; padding: 12px 18px; border-radius: 999px; border: 1px solid rgba(22,25,28,.14);
  background: var(--light-surface); color: var(--light-text); font-weight: 600; font-size: 14px; transition: all .2s;
}
.tab[aria-selected="true"] { background: var(--light-text); color: #fff; border-color: var(--light-text); }
.situation { display: none; margin-top: 22px; background: var(--light-surface); border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); }
.situation.is-active { display: grid; animation: fadeUp .4s ease; }
@media (min-width: 900px) { .situation.is-active { grid-template-columns: 1.05fr 1fr; } }
.situation__img { aspect-ratio: 16/11; }
.situation__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 900px) { .situation__img { aspect-ratio: auto; } }
.situation__body { padding: 28px 22px 30px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .situation__body { padding: 44px; } }
.situation__body h3 { font-size: clamp(21px, 2.6vw, 28px); }
.situation__body .pain { padding: 14px 16px; border-left: 3px solid var(--accent); background: #fbf5f1; border-radius: 0 12px 12px 0; font-size: 15px; color: var(--light-muted); }
.checks { display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; font-size: 15px; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ---------- Hidden damage ---------- */
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 1000px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split--rev > :first-child { order: 2; } }
.frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.frame img, .frame video { width: 100%; height: 100%; object-fit: cover; }
.frame__tag { position: absolute; left: 14px; bottom: 14px; padding: 8px 12px; border-radius: 10px; background: rgba(15,17,19,.82); backdrop-filter: blur(6px); font-size: 13px; font-weight: 600; color: #fff; }
.frame__tag b { color: var(--accent); }
.signs { display: grid; gap: 10px; counter-reset: s; margin-top: 24px; }
.signs li { counter-increment: s; display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-size: 15px; }
.signs li::before { content: counter(s, decimal-leading-zero); font-family: var(--font-mono); font-size: 13px; color: var(--accent); padding-top: 2px; }
.signs li.is-locked { filter: blur(3px); user-select: none; opacity: .65; }
.signs-cta { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; font-size: 14px; color: var(--muted); }

/* ---------- Process ---------- */
.steps { display: grid; gap: 16px; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--light-surface); border: 1px solid rgba(22,25,28,.08); display: flex; flex-direction: column; gap: 10px; }
.step__n { font-family: var(--font-mono); font-size: 12px; color: var(--accent); letter-spacing: .1em; }
.step h3 { font-size: 19px; }
.step p { font-size: 15px; color: var(--light-muted); }
.step__meta { margin-top: auto; padding-top: 12px; border-top: 1px dashed rgba(22,25,28,.14); font-size: 13px; font-weight: 600; display: flex; justify-content: space-between; gap: 8px; }
.step__meta span:last-child { color: var(--accent); }

/* ---------- OSAGO ---------- */
.osago { background: radial-gradient(1200px 500px at 85% 0%, rgba(255,102,0,.16), transparent 60%), var(--bg-2); }
.compare-cards { display: grid; gap: 14px; margin-top: 28px; }
@media (min-width: 640px) { .compare-cards { grid-template-columns: 1fr 1fr; } }
.cc { padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.cc--hi { border-color: rgba(255,102,0,.5); background: linear-gradient(180deg, rgba(255,102,0,.12), rgba(255,102,0,.02)); }
.cc small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.cc b { display: block; font-family: var(--font-display); font-size: 26px; margin: 8px 0 6px; }
.cc p { font-size: 14px; color: var(--muted); }
.legal-note { margin-top: 18px; font-size: 12px; color: var(--dim); }

/* ---------- Tech grid ---------- */
.tech { display: grid; gap: 16px; }
@media (min-width: 800px) { .tech { grid-template-columns: repeat(6, 1fr); } }
.tech__card { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--surface); border: 1px solid var(--line); min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.tech__card > img, .tech__card > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s ease; }
.tech__card:hover > img { transform: scale(1.04); }
.tech__card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,17,19,0) 30%, rgba(15,17,19,.92) 100%); }
.tech__body { padding: 22px; }
.tech__body h3 { font-size: 20px; }
.tech__body p { margin-top: 8px; font-size: 14px; color: #c9ced3; max-width: 460px; }
.tech__kpi { display: inline-block; margin-bottom: 10px; padding: 6px 10px; border-radius: 8px; background: var(--accent); color: #fff; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
@media (min-width: 800px) {
  .tech__card:nth-child(1) { grid-column: span 4; min-height: 440px; }
  .tech__card:nth-child(2) { grid-column: span 2; min-height: 440px; }
  .tech__card:nth-child(3), .tech__card:nth-child(4), .tech__card:nth-child(5) { grid-column: span 2; }
}

/* ---------- Pricing ---------- */
.formats { display: grid; gap: 16px; }
@media (min-width: 760px) { .formats { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1150px) { .formats { grid-template-columns: repeat(4, 1fr); } }
.fmt { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--light-surface); border: 1px solid rgba(22,25,28,.08); overflow: hidden; }
.fmt__img { aspect-ratio: 16/10; overflow: hidden; }
.fmt__img img { width: 100%; height: 100%; object-fit: cover; }
.fmt__body { padding: 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.fmt__body h3 { font-size: 19px; }
.fmt__body > p { font-size: 14px; color: var(--light-muted); }
.fmt .checks li { font-size: 14px; }
.fmt__price { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(22,25,28,.08); display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.fmt__price b { font-family: var(--font-display); font-size: 20px; }
.fmt__price small { color: var(--light-muted); font-size: 12px; }
.fmt--featured { border: 2px solid var(--accent); }
.badge { align-self: flex-start; padding: 5px 10px; border-radius: 8px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; }

.price-table { margin-top: 40px; border-radius: var(--radius); background: var(--light-surface); border: 1px solid rgba(22,25,28,.08); overflow: hidden; }
.price-table summary { list-style: none; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 700; cursor: pointer; }
.price-table summary::-webkit-details-marker { display: none; }
.price-table summary::after { content: "+"; font-size: 24px; color: var(--accent); transition: transform .2s; }
.price-table[open] summary::after { transform: rotate(45deg); }
.price-rows { padding: 0 22px 18px; }
.price-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px dashed rgba(22,25,28,.12); font-size: 15px; }
.price-row b { white-space: nowrap; }
.price-foot { padding: 0 22px 22px; font-size: 13px; color: var(--light-muted); }

/* ---------- Quiz ---------- */
.quiz-wrap { display: grid; gap: 24px; }
@media (min-width: 1000px) { .quiz-wrap { grid-template-columns: 1.4fr .9fr; align-items: start; } }
.quiz { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 24px 20px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .quiz { padding: 36px; } }
.quiz__top { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.quiz__bar { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); margin: 14px 0 26px; overflow: hidden; }
.quiz__bar i { display: block; height: 100%; width: 20%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); border-radius: inherit; transition: width .35s ease; }
.quiz__step { display: none; }
.quiz__step.is-active { display: block; animation: fadeUp .35s ease; }
.quiz__step h3 { font-size: clamp(20px, 2.6vw, 26px); }
.quiz__step > p { margin-top: 8px; color: var(--muted); font-size: 14px; }
.options { display: grid; gap: 10px; margin-top: 20px; }
@media (min-width: 640px) { .options { grid-template-columns: 1fr 1fr; } }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); font-size: 15px; font-weight: 600; transition: all .15s; cursor: pointer; }
.opt span::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-2); transition: all .15s; }
.opt input[type="checkbox"] + span::before { border-radius: 6px; }
.opt input:checked + span { border-color: var(--accent); background: rgba(255,102,0,.1); }
.opt input:checked + span::before { border-color: var(--accent); background: var(--accent); box-shadow: inset 0 0 0 3px var(--bg-2); }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.quiz__nav { display: flex; gap: 10px; margin-top: 26px; }
.quiz__nav .btn--ghost { flex: 0 0 auto; }
.quiz__nav .btn--primary { flex: 1; }
.quiz__side { display: grid; gap: 16px; }
.gift { padding: 24px; border-radius: 24px; background: linear-gradient(160deg, rgba(255,102,0,.2), rgba(255,102,0,.03)); border: 1px solid rgba(255,102,0,.35); }
.gift h3 { font-size: 20px; margin-top: 8px; }
.gift ul { margin-top: 14px; }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-top: 14px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input, .textarea, .select {
  width: 100%; min-height: 54px; padding: 14px 16px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--bg-2); color: var(--text); font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255,102,0,.15); }
.input.is-error { border-color: #ff4d4d; }
.section--light .input, .section--light .textarea { background: #fff; color: var(--light-text); border-color: rgba(22,25,28,.16); }
.section--light .field label { color: var(--light-muted); }
.consent { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 13px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.consent a { color: var(--accent); }
.form-error { margin-top: 10px; font-size: 13px; color: #ff6b6b; min-height: 1em; }
.contact-pref { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.contact-pref .opt span { min-height: 44px; padding: 10px 14px; font-size: 14px; }
.dropzone { margin-top: 14px; display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 14px; border: 1.5px dashed rgba(22,25,28,.25); background: #fff; cursor: pointer; font-size: 14px; color: var(--light-muted); }
.dropzone svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.dropzone input { display: none; }
.dropzone.has-files { border-color: var(--accent); color: var(--light-text); }
.success { text-align: center; padding: 30px 10px; }
.success svg { width: 64px; height: 64px; color: var(--ok); margin: 0 auto 16px; }
.success h3 { font-size: 24px; }
.success p { margin-top: 10px; color: var(--muted); }

/* ---------- Case / before-after ---------- */
.ba { position: relative; aspect-ratio: 3/2; border-radius: var(--radius); overflow: hidden; user-select: none; touch-action: pan-y; box-shadow: var(--shadow); --pos: 50%; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__after { clip-path: inset(0 0 0 var(--pos)); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; background: #fff; transform: translateX(-50%); pointer-events: none; }
.ba__handle::after { content: "⟷"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 48px; height: 48px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 20px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.ba__label { position: absolute; top: 14px; padding: 6px 12px; border-radius: 8px; background: rgba(15,17,19,.8); color: #fff; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.ba__label--l { left: 14px; } .ba__label--r { right: 14px; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.case-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
.case-facts div { padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.case-facts b { display: block; font-family: var(--font-display); font-size: 20px; }
.case-facts span { font-size: 12px; color: var(--muted); }
.case-story { display: grid; gap: 12px; margin-top: 22px; }
.case-story p { font-size: 15px; color: #cfd3d8; }
.case-story strong { color: var(--text); }

.reviews { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 900px) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.review__stars { color: #ffc23d; letter-spacing: 3px; }
.review p { font-size: 15px; color: #d8dce0; }
.review footer { margin-top: auto; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.rating-bar { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.rating-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; font-size: 14px; }
.rating-pill b { font-family: var(--font-display); font-size: 18px; }

/* ---------- Comparison ---------- */
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--light-surface); border-radius: var(--radius); overflow: hidden; font-size: 14px; }
.cmp-wrap { overflow-x: auto; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
.cmp th, .cmp td { padding: 16px 14px; text-align: left; border-bottom: 1px solid rgba(22,25,28,.07); vertical-align: top; min-width: 150px; }
.cmp th { font-family: var(--font-display); font-size: 14px; font-weight: 600; background: #f8f7f5; }
.cmp td:first-child, .cmp th:first-child { font-weight: 700; min-width: 170px; }
.cmp .us { background: rgba(255,102,0,.07); }
.cmp th.us { background: var(--accent); color: #fff; }
.cmp tr:last-child td { border-bottom: 0; }
.y { color: #1a9a5f; font-weight: 700; } .n { color: #c6372a; font-weight: 700; } .m { color: #b07b12; font-weight: 700; }

/* ---------- Guarantees ---------- */
.g-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .g-grid { grid-template-columns: repeat(3, 1fr); } }
.g-card { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.g-card__ico { width: 46px; height: 46px; border-radius: 12px; background: rgba(255,102,0,.14); color: var(--accent); display: grid; place-items: center; margin-bottom: 16px; }
.g-card__ico svg { width: 24px; height: 24px; }
.g-card h3 { font-size: 19px; }
.g-card p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.pay { margin-top: 24px; display: grid; gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
@media (min-width: 760px) { .pay { grid-template-columns: repeat(3, 1fr); } }
.pay > div { padding: 22px; background: var(--surface); }
.pay small { font-family: var(--font-mono); font-size: 11px; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.pay b { display: block; font-family: var(--font-display); font-size: 24px; margin: 6px 0 4px; }
.pay p { font-size: 14px; color: var(--muted); }

/* ---------- Team ---------- */
.team-points { display: grid; gap: 14px; margin-top: 24px; }
.team-points li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; }
.team-points i { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--light-text); color: #fff; font-style: normal; font-family: var(--font-mono); font-size: 14px; }
.team-points b { display: block; font-size: 16px; }
.team-points span { font-size: 14px; color: var(--light-muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; max-width: 920px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { list-style: none; padding: 20px 22px; display: flex; justify-content: space-between; gap: 16px; font-weight: 700; font-size: 16px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(255,255,255,.06); color: var(--accent); font-size: 20px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 20px; color: var(--muted); font-size: 15px; }

/* ---------- Contacts / photo form ---------- */
.contact-grid { display: grid; gap: 24px; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 1fr 1fr; } }
.card-light { background: var(--light-surface); border-radius: 24px; padding: 24px 20px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.35); }
@media (min-width: 768px) { .card-light { padding: 36px; } }
.card-light h3 { font-size: 24px; }
.messengers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.msg-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; border: 1px solid rgba(22,25,28,.12); text-decoration: none; font-size: 13px; font-weight: 700; color: var(--light-text); transition: all .2s; }
.msg-btn:hover { border-color: var(--accent); }
.msg-btn svg { width: 26px; height: 26px; }
.contact-list { display: grid; gap: 16px; margin-top: 20px; }
.contact-list li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; font-size: 15px; }
.contact-list svg { width: 22px; height: 22px; color: var(--accent); }
.contact-list small { display: block; color: var(--light-muted); font-size: 13px; }
.map { position: relative; margin-top: 20px; border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; background: #e6e3de; display: grid; place-items: center; color: var(--light-muted); font-size: 14px; text-align: center; padding: 20px; }
.map:has(iframe) { position: relative; padding: 0; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.geo-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.geo-tags span { padding: 6px 10px; border-radius: 8px; background: #f1eeea; font-size: 12px; color: var(--light-muted); }

/* ---------- Final CTA ---------- */
.final { position: relative; overflow: hidden; isolation: isolate; }
.final > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15,17,19,.95) 0%, rgba(15,17,19,.75) 55%, rgba(15,17,19,.35) 100%); }
.final h2 { font-size: clamp(28px, 4.6vw, 52px); max-width: 820px; }
.final p { margin-top: 18px; max-width: 620px; color: #d3d7db; font-size: 17px; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0 120px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
@media (min-width: 1024px) { .footer { padding-bottom: 48px; } }
.footer__grid { display: grid; gap: 28px; }
@media (min-width: 900px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }
.footer h4 { font-family: var(--font); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--text); margin-bottom: 12px; }
.footer li + li { margin-top: 8px; }
.footer__legal { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--dim); display: grid; gap: 8px; }

/* ---------- Mobile sticky bar ---------- */
.mbar { position: fixed; z-index: 60; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: 52px 52px 1fr; gap: 8px; padding: 8px; border-radius: 18px; background: rgba(21,24,27,.92); backdrop-filter: blur(14px); border: 1px solid var(--line-2); box-shadow: 0 10px 40px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .3s ease; }
.mbar.is-visible { transform: none; }
.mbar a { display: grid; place-items: center; min-height: 52px; border-radius: 12px; text-decoration: none; }
.mbar a:not(.btn) { background: rgba(255,255,255,.07); }
.mbar svg { width: 22px; height: 22px; }
.mbar .btn { min-height: 52px; padding: 0 12px; font-size: 15px; }
@media (min-width: 1024px) { .mbar { display: none; } }

/* ---------- Cookie ---------- */
.cookie { position: fixed; z-index: 70; left: 10px; right: 10px; bottom: 80px; max-width: 520px; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 13px; color: var(--muted); display: none; gap: 12px; align-items: center; }
.cookie.is-visible { display: flex; }
.cookie .btn { min-height: 40px; padding: 0 16px; font-size: 14px; flex: none; }
@media (min-width: 1024px) { .cookie { bottom: 20px; left: 20px; } }

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 90; left: 50%; bottom: 90px; transform: translate(-50%, 20px); max-width: calc(100% - 32px); padding: 14px 18px; border-radius: 14px; background: #fff; color: var(--light-text); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.6); backdrop-filter: blur(4px); padding: 10px; }
.modal.is-open { display: flex; }
@media (min-width: 640px) { .modal { align-items: center; } }
.modal__box { position: relative; width: 100%; max-width: 480px; max-height: 92svh; overflow: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 28px 22px; animation: fadeUp .3s ease; }
.modal__close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 10px; border: 0; background: rgba(255,255,255,.08); color: var(--text); font-size: 22px; }
.modal__box h3 { font-size: 22px; padding-right: 40px; }
.modal__box > p { margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .strip__track { animation: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Антиспам-поле: скрыто от людей, видно ботам */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }


/* ===== v2: материалы клиента ===== */
.hero__media img { object-position: 60% center; }
.sub-h { margin-top: 26px; font-size: 19px; }
.vs { display: grid; gap: 12px; }
@media (min-width: 640px) { .vs { grid-template-columns: 1fr 1fr; } }
.vs__card { padding: 18px 18px 20px; border-radius: 16px; font-size: 15px; }
.vs__card small { display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.vs__card--bad { background: #ece9e5; color: var(--light-muted); }
.vs__card--bad small { color: #c6372a; }
.vs__card--good { background: var(--light-surface); border: 2px solid var(--accent); }
.vs__card--good small { color: var(--accent); }
.steps--dark .step { background: var(--surface); border-color: var(--line); }
.steps--dark .step p { color: var(--muted); }
.steps--dark .step__meta { border-top-color: var(--line-2); }
@media (min-width: 1150px) { .formats--3 { grid-template-columns: repeat(3, 1fr); } }
.quiz__photo { aspect-ratio: 3/2; }
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.gallery__item { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background: var(--surface); }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item figcaption { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(15,17,19,.8); font-size: 12px; font-weight: 600; }
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16/9; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .gallery__item--wide { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
}
.team-points--dark { margin-top: 32px; }
@media (min-width: 900px) { .team-points--dark { grid-template-columns: repeat(4, 1fr); } }
.team-points--dark i { background: var(--accent); }
.team-points--dark span { color: var(--muted); }
.lawyer { padding: 36px 0; background: linear-gradient(90deg, rgba(255,102,0,.16), rgba(255,102,0,.04)); border-block: 1px solid rgba(255,102,0,.3); }
.lawyer__row { display: grid; gap: 18px; align-items: center; }
@media (min-width: 900px) { .lawyer__row { grid-template-columns: auto 1fr auto; gap: 28px; } }
.lawyer__ico { width: 56px; height: 56px; border-radius: 14px; background: var(--accent); color: #fff; display: grid; place-items: center; }
.lawyer__ico svg { width: 28px; height: 28px; }
.lawyer h2 { font-size: clamp(20px, 2.6vw, 26px); }
.lawyer p { margin-top: 8px; color: var(--muted); font-size: 15px; max-width: 720px; }
.facade { position: relative; margin-top: 20px; border-radius: 16px; overflow: hidden; aspect-ratio: 16/9; }
.facade img { width: 100%; height: 100%; object-fit: cover; }
.facade span { position: absolute; left: 10px; bottom: 10px; padding: 6px 10px; border-radius: 8px; background: rgba(15,17,19,.8); color: #fff; font-size: 12px; font-weight: 600; }

/* шапка: меню без переносов */
.logo, .header__phone, .nav a { white-space: nowrap; }
@media (min-width: 1100px) { .nav { display: none; } .header__phone { display: block; } }
@media (min-width: 1280px) { .nav { display: flex; gap: 22px; } }
@media (min-width: 1100px) { .header__cta { margin-left: auto; } }
@media (min-width: 1280px) { .header__cta { margin-left: 28px; } }
.lawyer__contact { margin-top: 10px !important; color: var(--text) !important; font-size: 16px !important; }
.lawyer__contact a { color: var(--accent); font-weight: 700; text-decoration: none; white-space: nowrap; }
.faq details > div a { color: var(--accent); font-weight: 700; text-decoration: none; }
