/* =========================================================
   Автовикуп Дніпро — лендинг термінового викупу авто
   Кольори винесені в змінні: щоб змінити стиль, правте :root
   ========================================================= */
:root {
  --bg: #031c15;
  --bg-2: #05241b;
  --surface: #0a2e23;
  --surface-2: #103a2d;
  --line: rgba(255, 255, 255, .08);
  --text: #eaf5ef;
  --muted: #93ab9f;
  --accent: #3df5a0;
  --accent-hover: #7dffc0;
  --on-accent: #02261a;
  --tg: #29a9eb;
  --viber: #7360f2;
  --wa: #25d366;
  --ok: #3df5a0;

  --radius: 18px;
  --radius-sm: 12px;
  --container: 1600px;
  --gutter: clamp(20px, 4vw, 72px);
  --header-h: 76px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Unbounded", var(--font);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 1em; height: 1em; flex-shrink: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.accent { color: var(--accent); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 245, 160, .6);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 245, 160, .55); }
  70% { box-shadow: 0 0 0 9px rgba(61, 245, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 245, 160, 0); }
}

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px;
  border: 0; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 16px;
  transition: background .2s, transform .2s, box-shadow .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; transition: transform .2s; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 30px -10px rgba(61, 245, 160, .55); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; border: 1.5px solid var(--line); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--ghost:hover svg { transform: none; }
.btn--tg { background: var(--tg); color: #fff; }
.btn--viber { background: var(--viber); color: #fff; }
.btn--wa { background: var(--wa); color: #fff; }
.btn--tg:hover svg, .btn--viber:hover svg, .btn--wa:hover svg { transform: none; }
.btn--tg:hover, .btn--viber:hover, .btn--wa:hover { filter: brightness(1.1); }
.btn[disabled] { opacity: .7; pointer-events: none; }
.btn.is-loading span::after { content: "…"; }

/* ---------- Шапка ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(3, 28, 21, .82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.is-scrolled { border-color: var(--line); background: rgba(3, 28, 21, .95); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 28px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo__mark { color: var(--accent); width: 40px; height: 40px; }
.logo__mark svg { width: 40px; height: 40px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__text b { font-family: var(--font-display); font-size: 17px; font-weight: 700; letter-spacing: -.01em; }
.logo__text small { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 3px; }
.logo__text .dot { width: 7px; height: 7px; }

.nav { display: flex; gap: 24px; margin: 0 auto; }
.nav a { font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color .2s; }
.nav a:hover { color: var(--text); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.msg {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .2s, filter .2s;
}
.msg svg { width: 22px; height: 22px; }
.msg:hover { transform: translateY(-2px); filter: brightness(1.1); }
.msg--tg { background: var(--tg); color: #fff; }
.msg--viber { background: var(--viber); color: #fff; }
.msg--wa { background: var(--wa); color: #fff; }

.header__phone { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.header__phone b { display: block; font-size: 17px; font-weight: 800; white-space: nowrap; transition: color .2s; }
.header__phone small { display: block; font-size: 12px; color: var(--muted); line-height: 1.2; }
.header__phone:hover b { color: var(--accent); }

.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--surface); border-radius: 10px; position: relative; }
.burger span { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 21px; }
.burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Перший екран ---------- */
.hero { position: relative; padding: 48px 0 64px; overflow: hidden; }
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(700px 420px at 85% 10%, rgba(61, 245, 160, .16), transparent 60%),
    radial-gradient(600px 400px at 0% 100%, rgba(61, 245, 160, .07), transparent 60%);
}
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  opacity: .6;
}
.hero__inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 40px;
  grid-template-areas: ". stack" "title stack" "form stack" "stats stack" ". stack";
  grid-template-rows: 1fr auto auto auto 1fr; align-items: start;
}
.hero__title { grid-area: title; }
.hero__stack { grid-area: stack; align-self: center; justify-self: end; width: min(78%, 460px); margin: 0; }
.hero__form { grid-area: form; margin-top: 30px; }
.hero__stats { grid-area: stats; }
/* Поки немає фото — форма праворуч, як раніше */
.hero__inner.no-stack { grid-template-areas: "title form" "stats form"; grid-template-rows: auto 1fr; }
.no-stack .hero__form { margin-top: 0; align-self: center; }

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(34px, 5.2vw, 62px);
  font-weight: 800; letter-spacing: -.025em;
  margin: 22px 0 20px;
}
.hero__title .accent { display: block; }
.nowrap { white-space: nowrap; }


.hero__stats { display: flex; gap: 14px; margin-top: 24px; flex-wrap: wrap; align-self: start; }
.hero__stats div {
  flex: 1 1 140px; padding: 16px 18px;
  background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: var(--radius-sm);
}
.hero__stats b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--accent); line-height: 1.1; }
.hero__stats span { font-size: 14px; color: var(--muted); }

/* ---------- Картка форми ---------- */
.card-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
}
.hero__form { position: relative; }
.hero__form::before {
  content: ""; position: absolute; inset: -1px; z-index: -1;
  border-radius: calc(var(--radius) + 1px);
  background: linear-gradient(160deg, var(--accent), transparent 45%);
}
.card-form__head { margin-bottom: 22px; }
.card-form__head h2 { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.card-form__head p { color: var(--muted); font-size: 15px; margin-top: 8px; }

.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 13px; font-weight: 700; color: var(--muted); }
.field i { color: var(--accent); font-style: normal; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.lead-form input:not([type="file"]),
.lead-form select,
.lead-form textarea {
  width: 100%; min-height: 52px;
  padding: 13px 16px;
  background: var(--bg-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius-sm);
  outline: none;
  font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.lead-form textarea { resize: vertical; min-height: 90px; }
.lead-form select {
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%239aa3af' stroke-width='2' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
  padding-right: 40px;
}
.lead-form select option { background: var(--surface); }
.lead-form input::placeholder, .lead-form textarea::placeholder { color: #587266; }
.lead-form input:focus, .lead-form select:focus, .lead-form textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(61, 245, 160, .14);
}
.lead-form .is-invalid { border-color: #ff5d5d !important; box-shadow: 0 0 0 4px rgba(255, 93, 93, .14) !important; }
.form-note { font-size: 12px; color: #5f7a6e; text-align: center; }
.form-note a { text-decoration: underline; }
.form-note a:hover { color: var(--accent); }
.form-error { font-size: 14px; color: #ff8a8a; text-align: center; }

/* ---------- Бігучий рядок ---------- */
.ticker { background: var(--accent); color: var(--on-accent); overflow: hidden; padding: 16px 0; transform: rotate(-1deg); margin: -10px -10px 0; }
.ticker__track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span {
  font-family: var(--font-display); font-weight: 700; font-size: 18px; text-transform: uppercase;
  padding: 0 26px; white-space: nowrap; display: flex; align-items: center; gap: 52px;
}
.ticker span::after { content: "✦"; font-size: 14px; margin-right: -26px; }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Секції ---------- */
.section { padding: 72px 0; }
.section--alt { background: rgba(5, 36, 27, .62); border-block: 1px solid var(--line); }
.section__head { max-width: 1000px; margin-bottom: 32px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 16px;
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: currentColor; }
.section__title { font-family: var(--font-display); font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; letter-spacing: -.02em; }
.section__sub { color: var(--muted); margin-top: 16px; font-size: 17px; }

/* ---------- Переваги ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.benefit {
  position: relative; overflow: hidden;
  padding: 26px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  transition: transform .3s, border-color .3s;
}
.benefit:hover { transform: translateY(-4px); border-color: rgba(61, 245, 160, .35); }
.benefit--wide { grid-column: span 2; background: linear-gradient(135deg, var(--surface-2), var(--surface)); }
.benefit--wide p { max-width: 520px; }
.benefit--accent {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: auto 1fr; column-gap: 24px; align-items: center;
  background: var(--accent); color: var(--on-accent); border-color: transparent;
}
.benefit--accent .benefit__icon { grid-row: span 2; margin-bottom: 0; }
.benefit--accent h3 { margin-bottom: 4px; }
.benefit--accent p { color: rgba(3, 28, 21, .75) !important; }
.benefit--accent .benefit__icon { background: var(--on-accent); color: var(--accent); }
.benefit--accent .benefit__num { color: rgba(3, 28, 21, .1); }
.benefit__icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(61, 245, 160, .12); color: var(--accent);
  margin-bottom: 16px;
}
.benefit__icon svg { width: 28px; height: 28px; }
.benefit h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.benefit p { color: var(--muted); }
.benefit__num {
  position: absolute; right: 22px; top: 14px;
  font-family: var(--font-display); font-size: 64px; font-weight: 800;
  color: rgba(255, 255, 255, .04); line-height: 1;
}

/* ---------- Що викуповуємо ---------- */
.cars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.car-tile {
  display: flex; flex-direction: column; gap: 6px;
  padding: 20px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  transition: background .25s;
}
.car-tile:hover { background: var(--surface-2); }
.car-tile b { font-size: 19px; font-weight: 800; }
.car-tile span { color: var(--muted); font-size: 15px; }
.car-tile--cta { border: 1.5px dashed rgba(61, 245, 160, .5); background: transparent; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 700; color: var(--accent); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Етапи ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 56px; right: -21px; width: 22px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px);
}
.step__num {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
  background: var(--accent); color: var(--on-accent);
  margin-bottom: 22px;
}
.step h3 { font-size: 21px; font-weight: 800; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15px; }
.step__time {
  display: inline-block; margin-top: 18px; padding: 5px 12px;
  border-radius: 100px; background: var(--surface-2);
  font-size: 13px; font-weight: 700; color: var(--accent);
}

/* ---------- Оцінка за фото ---------- */
.section--cta { background: linear-gradient(180deg, rgba(5, 36, 27, .7), transparent); position: relative; overflow: hidden; }
.section--cta::before {
  content: ""; position: absolute; width: 700px; height: 700px; left: -250px; top: -200px;
  background: radial-gradient(circle, rgba(61, 245, 160, .12), transparent 65%);
  pointer-events: none;
}
.estimate { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.estimate__text p { color: #c2d6cc; margin-top: 20px; font-size: 17px; }
.estimate__or { margin-top: 36px; }
.estimate__or > span { display: block; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.estimate__msgs { display: flex; gap: 12px; flex-wrap: wrap; }
.estimate__msgs svg { width: 22px; height: 22px; }


/* ---------- Гарантії ---------- */
.guarantees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.guarantee {
  padding: 30px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}
.guarantee h3 { font-size: 19px; font-weight: 800; margin-bottom: 10px; }
.guarantee p { color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .section__head { position: sticky; top: calc(var(--header-h) + 30px); margin-bottom: 0; }
.faq-wrap .btn { margin-top: 28px; }
.faq { display: grid; gap: 12px; }
.faq__item { border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); transition: border-color .2s; }
.faq__item[open] { border-color: rgba(61, 245, 160, .35); }
.faq__item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; font-weight: 700; font-size: 17px;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary svg {
  width: 32px; height: 32px; padding: 7px; border-radius: 50%;
  background: var(--surface-2); color: var(--accent);
  transition: transform .25s, background .25s, color .25s;
}
.faq__item[open] summary svg { transform: rotate(45deg); background: var(--accent); color: var(--on-accent); }
.faq__item p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- Фінал ---------- */
.final { padding: 0 0 110px; }
.final__inner {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 28px;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(255, 255, 255, .25), transparent 60%),
    var(--accent);
  color: var(--on-accent);
}
.final__text p { font-size: 18px; margin: 14px 0 28px; color: rgba(3, 28, 21, .75); }
.final__form { grid-template-columns: 1fr auto; gap: 12px; max-width: 560px; }
.final__form input:not([type="file"]) { background: #fff; color: #031c15; border-color: transparent; min-height: 58px; }
.final__form input::placeholder { color: #84a094; }
.final__form input:focus { border-color: var(--on-accent); box-shadow: 0 0 0 4px rgba(3, 28, 21, .15); }
.final__form .btn--primary { background: var(--on-accent); color: var(--accent); min-height: 58px; box-shadow: none; }
.final__form .btn--primary:hover { background: #000; }
.final .form-error { color: #8b0000; grid-column: 1 / -1; text-align: left; }
.final .form-note { grid-column: 1 / -1; text-align: left; color: rgba(3, 28, 21, .6); }

.contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contacts li { display: flex; gap: 14px; align-items: flex-start; }
.contacts li > svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: rgba(3, 28, 21, .1); }
.contacts small { display: block; font-size: 13px; font-weight: 600; opacity: .65; }
.contacts a, .contacts span { font-weight: 800; font-size: 17px; line-height: 1.35; }
.contacts a:hover { text-decoration: underline; }

/* ---------- Підвал ---------- */
.footer { padding: 28px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.footer__inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.footer__info { display: flex; flex-direction: column; gap: 4px; }
.footer__links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer a:hover { color: var(--accent); }

/* ---------- Мобільна панель ---------- */
.mobile-bar { display: none; }

/* ---------- Модальне вікно ---------- */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: 20px;
  background: rgba(0, 0, 0, .7); backdrop-filter: blur(6px);
  animation: fade .25s;
}
.modal[hidden] { display: none; }
.modal__box {
  position: relative; width: 100%; max-width: 420px;
  padding: 40px 32px 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  text-align: center;
  animation: pop .3s cubic-bezier(.2, 1.4, .4, 1);
}
.modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; }
.modal__close svg { width: 18px; height: 18px; }
.modal__icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(61, 245, 160, .15); color: var(--ok); }
.modal__icon svg { width: 36px; height: 36px; }
.modal h3 { font-family: var(--font-display); font-size: 24px; margin-bottom: 10px; }
.modal p { color: var(--muted); margin-bottom: 26px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.9); } }

/* ---------- Анімація появи ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Адаптив
   ========================================================= */
@media (max-width: 1440px) {
  .nav { gap: 16px; }
  .nav a { font-size: 14px; }
}

@media (max-width: 1180px) {
  .header__phone small { display: none; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0;
    padding: 12px 20px 24px;
    background: var(--bg); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); opacity: 0; pointer-events: none;
    transition: transform .3s, opacity .3s;
  }
  .nav.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav a { font-size: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .header__actions { margin-left: auto; }

  .estimate, .faq-wrap, .final__inner { grid-template-columns: 1fr; }
  .faq-wrap .section__head { position: static; }
  .benefits, .cars { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .step::after { display: none; }
  .guarantees { grid-template-columns: repeat(2, 1fr); }
  .estimate { gap: 40px; }
  .final__inner { padding: 44px 36px; }
}

@media (max-width: 720px) {
  .section { padding: 56px 0; }
  .final { padding-bottom: 76px; }
  .section__head { margin-bottom: 36px; }
  .header__phone, .header .msg { display: none; }
  .hero { padding: 36px 0 64px; }
  .hero__stats { gap: 10px; }
  .hero__stats div { flex-basis: 100px; padding: 14px; }
  .hero__stats b { font-size: 22px; }
  .hero__stats span { font-size: 13px; }
  .card-form { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .benefits, .cars, .steps { grid-template-columns: 1fr; }
  .benefit--wide { grid-column: auto; }
  .benefit--accent { display: block; }
  .benefit--accent .benefit__icon { margin-bottom: 22px; }
  .benefit { padding: 26px; }
  .guarantees { grid-template-columns: 1fr; }
  .final__inner { padding: 36px 22px; border-radius: 22px; }
  .final__form { grid-template-columns: 1fr; }
  .ticker span { font-size: 15px; }

  body { padding-bottom: 76px; }
  .mobile-bar {
    display: flex; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(3, 28, 21, .96); backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
  }
  .mobile-bar__call {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 54px; border-radius: var(--radius-sm);
    background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 17px;
  }
  .mobile-bar__call svg { width: 22px; height: 22px; }
  .mobile-bar__icon { width: 54px; height: 54px; flex: none; border-radius: var(--radius-sm); display: grid; place-items: center; color: #fff; }
  .mobile-bar__icon svg { width: 26px; height: 26px; }
}

@media (max-width: 400px) {
  .mobile-bar { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .mobile-bar__call { font-size: 15px; gap: 6px; }
  .mobile-bar__icon { width: 48px; height: 48px; }
  .mobile-bar__icon svg { width: 23px; height: 23px; }
}

@media (max-width: 380px) {
  .hero__stats div { flex-basis: 100%; display: flex; align-items: baseline; gap: 10px; }
}

/* ---------- Політика конфіденційності ---------- */
.legal { padding: 56px 0 90px; }
.legal .container { max-width: calc(820px + 2 * var(--gutter)); }
.legal h1 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 40px); margin-bottom: 12px; }
.legal h2 { font-size: 21px; font-weight: 800; margin: 36px 0 12px; }
.legal p, .legal li { color: #c2d6cc; }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; margin: 10px 0 12px; display: grid; gap: 6px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal__date { color: var(--muted) !important; font-size: 14px; }
@media (max-width: 720px) { .legal { padding-bottom: 60px; } body.page-legal { padding-bottom: 0; } }

/* =========================================================
   Наші викупи — фото-стікери (полароїди)
   ========================================================= */
.deals-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 8px; }
.deals-head .section__head { margin-bottom: 0; }
.deals-arrows { display: flex; gap: 10px; }
.deals-arrows button, .lb__cap button, .lb__x {
  width: 52px; height: 52px; border: 0; border-radius: 14px; cursor: pointer;
  display: grid; place-items: center; font: 800 22px/1 var(--font);
  background: var(--surface-2); color: var(--text); transition: background .2s, color .2s, transform .12s;
}
.deals-arrows button:hover, .lb__cap button:hover, .lb__x:hover { background: var(--accent); color: var(--on-accent); }
.deals-arrows button:active { transform: translateY(2px); }

.deals {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory;
  /* лента виходить до країв екрана, перша картка — по лінії контейнера */
  padding: 34px calc(50vw - 50%) 40px; margin: 0 calc(50% - 50vw);
  scrollbar-width: none; cursor: grab;
  -webkit-overflow-scrolling: touch;
}
.deals::-webkit-scrollbar { display: none; }
.deals.is-drag { cursor: grabbing; scroll-snap-type: none; }

.sticker {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  flex: 0 0 clamp(260px, 28vw, 340px); scroll-snap-align: center;
  display: block; padding: 8px;
  background: var(--surface); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px;
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .9);
  transform: rotate(-1.2deg); transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), border-color .2s;
}
.sticker:nth-child(even) { transform: rotate(1deg); }
.sticker:hover, .sticker:focus-visible { transform: rotate(0) translateY(-6px); border-color: rgba(61, 245, 160, .5); }
.sticker:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.sticker__photo { position: relative; display: block; overflow: hidden; border-radius: 13px; }
.sticker__photo img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--surface-2); pointer-events: none; -webkit-user-drag: none; transition: transform .5s; }
.sticker:hover .sticker__photo img { transform: scale(1.04); }
.sticker__photo .stamp { right: 12px; top: 16px; font-size: 14px; }

/* Наліпка стану авто */
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 11px 6px 6px; border-radius: 8px;
  background: #021511; color: #fff; border: 1px solid rgba(255, 255, 255, .14);
  font: 800 11.5px/1.1 var(--font); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap;
}
.chip::before { /* аварійна смуга */
  content: ""; width: 16px; height: 16px; border-radius: 4px; flex: none;
  background: repeating-linear-gradient(-45deg, var(--accent) 0 4px, #021511 4px 8px);
}
.chip--dark::before { width: 8px; height: 8px; margin: 0 2px 0 4px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(61, 245, 160, .25); }
.chip--yellow { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.chip--yellow::before { width: 8px; height: 8px; margin: 0 2px 0 4px; border-radius: 50%; background: var(--on-accent); }

/* Штамп «Викуплено» */
.stamp {
  position: absolute; z-index: 2; padding: 5px 10px 4px;
  font: 800 13px/1 var(--font-display); text-transform: uppercase; letter-spacing: .14em;
  color: var(--accent); border: 2.5px solid currentColor; border-radius: 6px;
  box-shadow: inset 0 0 0 2px rgba(2, 21, 17, .55), inset 0 0 0 3.5px currentColor;
  background: rgba(2, 21, 17, .55); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  transform: rotate(-11deg); pointer-events: none;
}

/* Перегляд фото на весь екран */
.lb { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px 16px 96px; background: rgba(2, 18, 14, .94); }
.lb[hidden] { display: none; }
.lb img { max-width: 100%; max-height: 80vh; border-radius: 16px; border: 6px solid #fff; }
.lb__x { position: absolute; top: calc(14px + env(safe-area-inset-top, 0px)); right: 14px; font-size: 28px; }
.lb__cap { position: absolute; left: 0; right: 0; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; justify-content: center; align-items: center; gap: 10px; padding: 0 16px; }
.lb__title { padding: 10px 14px; border-radius: 12px; background: #fff; color: #031c15; font-weight: 800; text-align: center; }

@media (max-width: 720px) {
  .deals-arrows { display: none; }
  .deals { padding-top: 26px; padding-bottom: 32px; gap: 18px; }
  .sticker { flex-basis: 82vw; }
}

/* =========================================================
   Перший екран — стопка фото-стікерів
   ========================================================= */
.lead-form--inline { grid-template-columns: 1fr 1fr; column-gap: 12px; }
.lead-form--inline .btn, .lead-form--inline .form-note, .lead-form--inline .form-error { grid-column: 1 / -1; }
.hero__form .card-form__head { margin-bottom: 16px; }
.hero__form { padding: 24px 26px 20px; }

.hero__stack { position: relative; isolation: isolate; height: clamp(400px, 36vw, 540px); touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.stack { position: absolute; inset: 4% 3% 8%; outline: none; }
.stack:focus-visible { outline: 3px solid var(--accent); outline-offset: 10px; border-radius: 24px; }
.stack-card {
  position: absolute; inset: 0; overflow: hidden; border-radius: 22px;
  background: var(--surface-2); border: 7px solid var(--surface); outline: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .8);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .4s;
  will-change: transform; cursor: grab;
}
.stack-card.is-drag { transition: none; cursor: grabbing; }
.stack-card img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.stack-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.3), transparent 30%, transparent 65%, rgba(0,0,0,.55)); pointer-events: none; }
.stack-card .stamp { right: 14px; top: 16px; font-size: clamp(11px, 1vw, 14px); opacity: 0; transform: rotate(-11deg) scale(1.8); transition: opacity .2s, transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.stack-card.is-top .stamp { opacity: 1; transform: rotate(-11deg) scale(1); transition-delay: .35s; }

.stack-tag { position: absolute; z-index: 300; left: -2%; top: 8%; transform: rotate(-4deg); font-size: 13px; padding: 8px 13px 8px 8px; box-shadow: 0 14px 24px -10px rgba(0, 0, 0, .8); }
.stack-tag.is-pop { animation: stack-pop .45s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stack-pop { 0% { transform: rotate(-4deg) translateY(-8px) scale(.7); opacity: 0; } 100% { transform: rotate(-4deg) scale(1); opacity: 1; } }

.stack-hint {
  position: absolute; left: 0; right: 0; bottom: 0; text-align: center;
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.stack-hint b { display: inline-block; margin-right: 8px; color: var(--accent); animation: hint-nudge 1.6s ease-in-out infinite; }
@keyframes hint-nudge { 50% { transform: translateX(-6px); } }

@media (max-width: 1024px) {
  .hero__inner { column-gap: 32px; }
  .hero__stack { height: clamp(420px, 56vw, 540px); width: 100%; margin: 0; }
}

/* Телефон: стопка маленька, поруч із текстом — щоб разом з формою вміщалась на перший екран */
@media (max-width: 720px) {
  .hero { padding: 20px 0 44px; }
  .hero__inner, .hero__inner.no-stack {
    grid-template-columns: minmax(0, 1fr); column-gap: 0;
    grid-template-areas: "title" "stack" "form" "stats";
    grid-template-rows: none;
  }
  .hero__inner.no-stack { grid-template-areas: "title" "form" "stats"; }
  .hero__title { font-size: clamp(27px, 7.6vw, 34px); margin: 14px 0 12px; }
  .hero__stack { height: 196px; width: 100%; margin: 14px 0 0; justify-self: stretch; }
  .stack { inset: 10px 14px 6px 6px; }
  .stack-card { border-width: 4px; border-radius: 14px; }
  .stack-card .stamp { right: 6px; top: 10px; font-size: 8.5px; padding: 3px 5px 2px; letter-spacing: .08em; border-width: 1.5px; }
  .stack-tag { top: -2px; left: -6px; font-size: 9.5px; padding: 5px 8px 5px 5px; gap: 5px; }
  .stack-tag::before { width: 11px; height: 11px; }
  .stack-hint { display: none; }
  .hero__form, .no-stack .hero__form { margin-top: 16px; padding: 16px 16px 12px; }
  .hero__form .card-form__head { margin-bottom: 12px; }
  .hero__form .card-form__head h2 { font-size: clamp(14px, 4vw, 17px); white-space: nowrap; letter-spacing: -.01em; }
  .hero__form .card-form__head p { display: none; }
  .lead-form--inline { gap: 10px; column-gap: 10px; }
  .lead-form--inline .field > span { font-size: 12px; }
  .lead-form--inline select, .lead-form--inline input:not([type="file"]) { min-height: 48px; padding: 11px 12px; }
  .lead-form--inline select { padding-right: 32px; background-position: right 8px center; }
  .hero__stats { margin-top: 18px; }
}

/* =========================================================
   Живий чат з менеджером
   ========================================================= */
.chat-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  display: flex; align-items: center; gap: 10px; padding: 0 20px 0 16px; height: 58px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--accent); color: var(--on-accent); font: 800 15px var(--font);
  box-shadow: 0 16px 34px -12px rgba(61, 245, 160, .55), 0 0 0 6px rgba(61, 245, 160, .12);
  transition: transform .2s, box-shadow .2s;
}
.chat-fab:hover { transform: translateY(-2px); box-shadow: 0 20px 38px -12px rgba(61, 245, 160, .7), 0 0 0 8px rgba(61, 245, 160, .14); }
.chat-fab svg { width: 26px; height: 26px; }
.chat-dot {
  position: absolute; top: -5px; right: -3px; min-width: 22px; height: 22px; padding: 0 5px;
  border-radius: 11px; border: 2px solid var(--bg); background: #ff4b2b; color: #fff;
  font: 800 12px/18px var(--font); text-align: center;
}
.chat-dot[hidden] { display: none; }
.chat-tip {
  position: fixed; right: 22px; bottom: 92px; z-index: 70; max-width: 270px; cursor: pointer;
  padding: 13px 16px; border-radius: 16px 16px 4px 16px;
  background: var(--surface-2); color: var(--text); border: 1px solid rgba(61, 245, 160, .35);
  font-size: 14px; font-weight: 600; line-height: 1.4; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .9);
  animation: chat-tip-in .4s cubic-bezier(.3, 1.4, .5, 1);
}
.chat-tip[hidden] { display: none; }
@keyframes chat-tip-in { from { opacity: 0; transform: translateY(10px) scale(.96); } }

.chat-scrim { position: fixed; inset: 0; z-index: 150; background: rgba(1, 12, 9, .55); opacity: 0; pointer-events: none; transition: opacity .35s; }
.chat-scrim.is-open { opacity: 1; pointer-events: auto; }
.chat {
  position: fixed; z-index: 160; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw;
  display: flex; flex-direction: column; background: var(--bg-2); border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .9);
  transform: translateX(105%); visibility: hidden;
  transition: transform .45s cubic-bezier(.2, .9, .25, 1), visibility 0s .45s;
}
.chat.is-open { transform: none; visibility: visible; transition: transform .45s cubic-bezier(.2, .9, .25, 1), visibility 0s; }
.chat__grab { display: none; }

.chat__head {
  display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top, 0px)) 14px 14px;
  background: var(--surface); border-bottom: 1px solid var(--line); touch-action: none;
}
.chat__av {
  position: relative; flex: none; width: 46px; height: 46px; border-radius: 14px;
  display: grid; place-items: center; background: var(--accent); color: var(--on-accent);
}
.chat__av svg { width: 22px; height: 22px; }
.chat__av::after { content: ""; position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--ok); border: 3px solid var(--surface); }
.chat__av.is-off::after { background: var(--muted); }
.chat__head b { display: block; font-family: var(--font-display); font-size: 16px; }
.chat__head small { color: var(--ok); font-size: 12px; font-weight: 700; }
.chat__head small.is-off { color: var(--muted); }
.chat__x { margin-left: auto; flex: none; width: 42px; height: 42px; border: 0; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--text); cursor: pointer; }
.chat__x svg { width: 18px; height: 18px; }

.chat__act { display: flex; gap: 8px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.chat__act button {
  flex: 1; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
  background: var(--bg-2); color: var(--text); font: 700 13.5px var(--font); transition: border-color .15s, color .15s;
}
.chat__act button:hover { border-color: var(--accent); color: var(--accent); }

.chat__body {
  flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 18px 12px;
  display: flex; flex-direction: column; gap: 8px;
  background: radial-gradient(500px 300px at 100% 0%, rgba(61, 245, 160, .05), transparent 70%), var(--bg);
}
.cmsg { max-width: 84%; padding: 10px 13px; border-radius: 16px; font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; animation: cmsg-in .28s ease-out both; }
.cmsg--me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 5px; }
.cmsg--op { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 5px; }
.cmsg__who { display: block; margin-bottom: 2px; font-size: 12px; font-weight: 800; color: var(--accent); }
.cmsg--sys { align-self: center; max-width: 92%; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .06); color: var(--muted); font-size: 12.5px; text-align: center; }
.cmsg__t { display: block; margin-top: 3px; font-size: 11px; opacity: .6; text-align: right; }
.cmsg a { color: inherit; font-weight: 800; text-decoration: underline; }
.cmsg--photos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px; width: min(250px, 76%); padding: 4px; }
.cmsg--photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; }
.cmsg--photos.is-one { grid-template-columns: 1fr; }
.cmsg--photos.is-one img { aspect-ratio: 4 / 3; }
.cmsg--photos .cmsg__t { grid-column: 1 / -1; padding: 0 6px 2px; }
@keyframes cmsg-in { from { opacity: 0; transform: translateY(8px); } }
.cmsg-typing { align-self: flex-start; display: flex; gap: 4px; padding: 13px 15px; border-radius: 16px; background: var(--surface-2); }
.cmsg-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: typing 1s infinite; }
.cmsg-typing i:nth-child(2) { animation-delay: .15s; }
.cmsg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 50% { opacity: .3; transform: translateY(-3px); } }

.chat-form { align-self: stretch; max-width: 100%; display: grid; gap: 10px; padding: 16px; background: var(--surface); border: 1px solid rgba(61, 245, 160, .35); }
.chat-form__h { font-family: var(--font-display); font-size: 16px; }
.chat-form p { margin: 0; font-size: 13px; color: var(--muted); }
.chat-form input { width: 100%; height: 46px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-2); color: var(--text); font: 600 16px var(--font); outline: none; }
.chat-form input:focus { border-color: var(--accent); }
.chat-form input.is-invalid, .chat__in input.is-invalid { border-color: #ff5d5d; }
.chat-form__opts { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-form__opts button { padding: 7px 11px; border: 1px solid var(--line); border-radius: 10px; background: transparent; color: var(--text); font: 700 13px var(--font); cursor: pointer; }
.chat-form__opts button[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chat-form .btn { min-height: 48px; }
.chat-form.is-done { border-color: rgba(61, 245, 160, .5); }
.chat-form.is-done .chat-form__h { color: var(--ok); }

.chat__quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 4px; background: var(--bg); }
.chat__quick:empty { display: none; }
.chat__quick button { padding: 9px 14px; border: 1.5px solid var(--accent); border-radius: 99px; background: transparent; color: var(--accent); font: 800 14px var(--font); cursor: pointer; }
.chat__quick button:hover, .chat__quick button.is-main { background: var(--accent); color: var(--on-accent); }

.chat__in { display: flex; align-items: center; gap: 8px; padding: 10px 10px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); }
.chat__in input[type="text"], .chat__in input[type="tel"] {
  flex: 1; min-width: 0; height: 46px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 99px;
  background: var(--bg-2); color: var(--text); font: 600 16px var(--font); outline: none;
}
.chat__in input:focus { border-color: var(--accent); }
.chat__ic { flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
.chat__ic svg { width: 22px; height: 22px; }
.chat__ic--att { background: var(--surface-2); color: var(--text); }
.chat__ic--send { background: var(--accent); color: var(--on-accent); }

@media (max-width: 720px) {
  .chat-fab { right: 14px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); width: 56px; height: 56px; padding: 0; justify-content: center; }
  .chat-fab__text { display: none; }
  .chat-fab { transition: transform .3s cubic-bezier(.3, 1.4, .5, 1), opacity .2s; }
  .chat-fab.is-away { transform: scale(.4); opacity: 0; pointer-events: none; }
  .chat-tip { right: 14px; bottom: calc(152px + env(safe-area-inset-bottom, 0px)); max-width: calc(100vw - 28px); }
  .chat {
    top: var(--ct, 8vh); bottom: auto; left: 0; width: auto; height: var(--chh, 92vh);
    border-left: 0; border-top: 1px solid var(--line); border-radius: 24px 24px 0 0; overflow: hidden;
    transform: translateY(105%);
  }
  .chat.is-open { transform: translateY(var(--dy, 0px)); }
  .chat.is-drag { transition: none; }
  .chat__grab { display: block; padding: 9px 0 2px; background: var(--surface); cursor: grab; touch-action: none; }
  .chat__grab i { display: block; width: 46px; height: 5px; margin: 0 auto; border-radius: 5px; background: var(--surface-2); }
  .chat__head { padding-top: 6px; }
}

/* =========================================================
   Широкий екран: більше колонок — менше гортати
   ========================================================= */
@media (min-width: 1025px) {
  .benefits { grid-template-columns: repeat(4, 1fr); }
  .benefit--accent { grid-column: span 2; align-content: center; }
  .cars { grid-template-columns: repeat(4, 1fr); }
  .car-tile--cta { grid-column: 1 / -1; flex-direction: row; align-items: center; flex-wrap: wrap; column-gap: 16px; }
  .car-tile--cta .link-arrow { margin: 0 0 0 auto; }
}

/* Перший екран на компʼютері: компактна ліва колонка — форма видна без гортання */
@media (min-width: 1025px) {
  .hero__title { font-size: clamp(36px, 3.7vw, 58px); margin: 16px 0 14px; }
  .hero__form { margin-top: 22px; padding: 20px 22px 14px; }
  .hero__form .card-form__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; margin-bottom: 12px; }
  .hero__form .card-form__head h2 { font-size: 19px; }
  .hero__form .card-form__head p { margin: 0; font-size: 14px; }
  .lead-form--inline { grid-template-columns: minmax(150px, .9fr) minmax(0, 1.1fr) auto; align-items: end; gap: 8px 10px; }
  .lead-form--inline .btn { grid-column: auto; min-height: 52px; white-space: nowrap; padding-inline: 22px; }
  .hero__stats { margin-top: 14px; gap: 10px; }
  .hero__stats div { flex: 1 1 0; display: flex; align-items: baseline; gap: 8px; padding: 10px 14px; }
  .hero__stats b { font-size: 20px; white-space: nowrap; }
  .hero__stats span { font-size: 13px; line-height: 1.3; }
}

/* =========================================================
   Телефон: компактні блоки — менше гортати
   ========================================================= */
@media (max-width: 720px) {
  .section { padding: 44px 0; }
  .section__head { margin-bottom: 22px; }
  .section__title { font-size: clamp(24px, 6.6vw, 30px); }
  .section__sub { font-size: 15px; margin-top: 10px; }
  .eyebrow { margin-bottom: 10px; font-size: 12px; }

  .hero__title { margin: 4px 0 0; font-size: clamp(26px, 7.4vw, 32px); line-height: 1.12; }
  .hero__title .accent { hyphens: none; }

  /* Переваги — по дві в ряд */
  .benefits { grid-template-columns: 1fr 1fr; gap: 10px; }
  .benefit { padding: 16px 14px; }
  .benefit--wide, .benefit--accent { grid-column: auto; }
  .benefit--accent { display: block; }
  .benefit--accent .benefit__icon { margin-bottom: 10px; }
  .benefit__icon { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 10px; }
  .benefit__icon svg { width: 22px; height: 22px; }
  .benefit h3 { font-size: 15.5px; margin-bottom: 6px; line-height: 1.2; }
  .benefit p { font-size: 13.5px; line-height: 1.45; }
  .benefit__num { font-size: 38px; right: 10px; top: 8px; }

  /* Що викуповуємо — по дві в ряд */
  .cars { grid-template-columns: 1fr 1fr; gap: 8px; }
  .car-tile { padding: 12px 12px 12px 13px; gap: 4px; }
  .car-tile b { font-size: 14.5px; line-height: 1.25; }
  .car-tile span { font-size: 12.5px; line-height: 1.4; }
  .car-tile--cta { grid-column: 1 / -1; }

  /* Етапи — компактний список: номер ліворуч */
  .steps { gap: 8px; }
  .step { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; padding: 14px; }
  .step::after { display: none; }
  .step__num { grid-row: span 3; width: 40px; height: 40px; font-size: 17px; margin: 0; }
  .step h3 { font-size: 16px; margin-bottom: 2px; }
  .step p { font-size: 13.5px; }
  .step__time { justify-self: start; margin-top: 6px; }

  /* Оцінка онлайн */
  .estimate { gap: 22px; }
  .estimate__text p { font-size: 15px; margin-top: 12px; }
  .estimate__or { margin-top: 18px; }
  .estimate__msgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .estimate__msgs .btn { min-height: 46px; padding: 0 6px; font-size: 13.5px; gap: 6px; }
  .estimate__msgs svg { width: 18px; height: 18px; }

  /* Гарантії — по дві в ряд */
  .guarantees { grid-template-columns: 1fr 1fr; gap: 10px; }
  .guarantee { padding: 16px 14px; }
  .guarantee h3 { font-size: 15px; margin-bottom: 6px; line-height: 1.25; }
  .guarantee p { font-size: 13px; line-height: 1.45; }

  /* Питання */
  .faq-wrap { gap: 20px; }
  .faq-wrap .btn { margin-top: 16px; }
  .faq { gap: 8px; }

  /* Фінальний блок */
  .final { padding-bottom: 44px; }
  .final__text p { font-size: 15px; margin: 10px 0 18px; }
  .contacts { gap: 10px; }
  .contacts li { gap: 10px; align-items: center; }
  .contacts li > svg { width: 34px; height: 34px; padding: 8px; flex: none; }
  .contacts a, .contacts span { font-size: 15px; }
  .contacts small { font-size: 11.5px; }
  .faq__item summary { padding: 14px 16px; font-size: 15px; gap: 12px; }
  .faq__item p { padding: 0 16px 14px; font-size: 14px; }
}

/* =========================================================
   Загальний фон: світло фар, жовте сяйво й сітка (у кольорах сайту)
   ========================================================= */
body::before, body::after, .bg-fx { content: ""; position: fixed; inset: 0; pointer-events: none; }
/* Сяйво */
body::before {
  z-index: -3;
  background:
    radial-gradient(1000px 700px at 92% -8%, rgba(61, 245, 160, .2), transparent 62%),
    radial-gradient(900px 800px at -12% 60%, rgba(61, 245, 160, .12), transparent 60%),
    radial-gradient(800px 600px at 108% 110%, rgba(31, 107, 82, .12), transparent 60%);
  animation: bg-drift 24s ease-in-out infinite alternate;
}
/* Промені фар — повільно ковзають */
.bg-fx {
  z-index: -2; overflow: hidden;
}
.bg-fx::before, .bg-fx::after {
  content: ""; position: absolute; width: 140vmax; height: 34vmax; left: 30%; top: -20%;
  background: linear-gradient(90deg, rgba(61, 245, 160, 0), rgba(61, 245, 160, .09) 45%, rgba(125, 255, 192, .14) 50%, rgba(61, 245, 160, .09) 55%, rgba(61, 245, 160, 0));
  filter: blur(30px); transform-origin: 0 50%; transform: rotate(32deg);
  animation: beam 18s ease-in-out infinite alternate;
}
.bg-fx::after {
  left: -40%; top: 55%; height: 26vmax; transform: rotate(-18deg);
  background: linear-gradient(90deg, rgba(61, 245, 160, 0), rgba(61, 245, 160, .06) 45%, rgba(125, 255, 192, .1) 50%, rgba(61, 245, 160, .06) 55%, rgba(61, 245, 160, 0));
  animation-duration: 23s; animation-delay: -8s;
}
/* Сітка — яскравіша біля світла */
body::after {
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 85% 10%, #000, transparent 70%), radial-gradient(ellipse 60% 60% at 5% 70%, rgba(0, 0, 0, .7), transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 85% 10%, #000, transparent 70%), radial-gradient(ellipse 60% 60% at 5% 70%, rgba(0, 0, 0, .7), transparent 70%);
}
@keyframes bg-drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-4%, 3%, 0) scale(1.12); }
}
@keyframes beam {
  from { transform: rotate(32deg) translateX(-6%); opacity: .7; }
  to { transform: rotate(26deg) translateX(6%); opacity: 1; }
}
.bg-fx::after { animation-name: beam2; }
@keyframes beam2 {
  from { transform: rotate(-18deg) translateX(4%); opacity: .6; }
  to { transform: rotate(-12deg) translateX(-6%); opacity: 1; }
}

/* Світлі секції — легке діагональне штрихування, як дорожня розмітка */
.section--alt {
  background:
    repeating-linear-gradient(-45deg, rgba(61, 245, 160, .025) 0 2px, transparent 2px 22px),
    rgba(5, 36, 27, .55);
}
.section--cta::before { opacity: .9; }

/* Поле «Стан авто» у формі першого екрана — щоб текст не обрізався */
@media (min-width: 1025px) {
  .lead-form--inline select { padding-left: 14px; padding-right: 34px; background-position: right 10px center; }
}

/* Телефон: спокійніший фон угорі — менше й мʼякше світіння */
@media (max-width: 720px) {
  body::before {
    background:
      radial-gradient(420px 320px at 100% 0%, rgba(61, 245, 160, .16), transparent 70%),
      radial-gradient(380px 380px at 0% 75%, rgba(61, 245, 160, .08), transparent 70%);
  }
  .hero__bg { background: radial-gradient(360px 260px at 90% 0%, rgba(61, 245, 160, .1), transparent 70%); }
  .hero__bg::after { opacity: .35; }
  .bg-fx { opacity: .5; }
  .stack-card { border-width: 5px; border-radius: 16px; }
  .stack-card .stamp { right: 10px; top: 12px; font-size: 11px; padding: 4px 7px 3px; letter-spacing: .1em; border-width: 2px; }
  .stack-tag { top: 0; left: 0; font-size: 11px; padding: 6px 10px 6px 6px; gap: 6px; }
  .stack-tag::before { width: 13px; height: 13px; }
}

/* Плитка «Преміум» */
.car-tile--star { background: linear-gradient(135deg, rgba(61, 245, 160, .14), rgba(61, 245, 160, .03)); }
.car-tile--star b { color: var(--accent); }
.car-tile--cta .link-arrow { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* =========================================================
   Світлі секції після першого екрана
   Перший екран і блок «Оцінка за фото» лишаються смарагдовими.
   ========================================================= */
.section:not(.section--cta) {
  --bg: #ffffff; --bg-2: #f3f8f5; --surface: #ffffff; --surface-2: #eef6f2;
  --line: rgba(3, 28, 21, .09); --text: #0b1f16; --muted: #5b6f66;
  --accent: #00a86b; --accent-hover: #00915c; --on-accent: #ffffff; --ok: #00a86b;
  position: relative; background: #ffffff; color: var(--text);
}
.section--alt:not(.section--cta) { background: #f3f8f5; border-color: rgba(3, 28, 21, .06); }
#benefits { background: radial-gradient(60% 50% at 100% 0, rgba(0, 168, 107, .07), transparent 70%), #ffffff; }
#guarantees { background: radial-gradient(50% 60% at 0 100%, rgba(0, 168, 107, .07), transparent 70%), #ffffff; }
.section:not(.section--cta) .benefit,
.section:not(.section--cta) .car-tile,
.section:not(.section--cta) .step,
.section:not(.section--cta) .guarantee,
.section:not(.section--cta) .faq__item {
  background: #ffffff; border-color: rgba(3, 28, 21, .08);
  box-shadow: 0 1px 2px rgba(3, 28, 21, .04), 0 12px 30px -18px rgba(3, 28, 21, .18);
}
.section:not(.section--cta) .benefit--accent { background: linear-gradient(150deg, #00a86b, #00784c); color: #fff; border-color: transparent; }
.section:not(.section--cta) .benefit--accent p { color: rgba(255, 255, 255, .85); }
.section:not(.section--cta) .benefit--accent .benefit__icon { background: rgba(255, 255, 255, .18); color: #fff; }
.section:not(.section--cta) .benefit--accent .benefit__num { color: rgba(255, 255, 255, .18); }
.section:not(.section--cta) .car-tile--star { background: linear-gradient(135deg, #e7f8ef, #ffffff); }
.section:not(.section--cta) .car-tile--cta { background: transparent; box-shadow: none; }
.section:not(.section--cta) .sticker { background: #ffffff; box-shadow: 0 16px 34px -18px rgba(3, 28, 21, .35); }
/* Фінальний блок — смарагдова плашка з білим текстом */
.final .final__inner { background: linear-gradient(135deg, #00a86b, #00784c 70%); color: #fff; }
.final .section__title { color: #fff; }
.final__text p, .final .form-note { color: rgba(255, 255, 255, .82); }
.final .form-note a { color: #fff; }
.final__form input:focus { box-shadow: 0 0 0 4px rgba(255, 255, 255, .3); }
.final__form .btn--primary { background: #031c15; color: #3df5a0; }
.final .form-error { color: #ffe0da; }
.final .contacts small { color: rgba(255, 255, 255, .7); }
.final .contacts a, .final .contacts span { color: #fff; }
.final .contacts svg { background: rgba(255, 255, 255, .16); color: #fff; }
.footer { background: #031c15; }

/* ---------- Смуга довіри (замість бігучого рядка) ---------- */
.trust { position: relative; background: #021511; border-block: 1px solid rgba(61, 245, 160, .14); }
.trust__inner { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.trust li { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 12px; font-weight: 700; font-size: 15px; color: var(--text); }
.trust li + li { border-left: 1px solid rgba(255, 255, 255, .07); }
.trust svg { width: 22px; height: 22px; color: var(--accent); flex-shrink: 0; }
@media (max-width: 720px) {
  .trust__inner { grid-template-columns: 1fr 1fr; padding: 0; }
  .trust li { justify-content: flex-start; padding: 14px 16px; font-size: 14px; }
  .trust li:nth-child(odd) { border-left: 0; }
  .trust li:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .07); }
  .trust li + li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .07); }
}

/* =========================================================
   Правки після огляду
   ========================================================= */
/* 1. Фінальна плашка — всередині сітки, без білої смуги знизу */
.final { padding: 0 0 72px; }
.final .final__inner { width: auto; max-width: calc(var(--container) - 2 * var(--gutter)); margin-inline: var(--gutter); }
@media (min-width: 1680px) { .final .final__inner { margin-inline: auto; } }

/* 2. Номери переваг видно на білому; «Без торгу» — як інші картки */
.section:not(.section--cta) .benefit__num { color: rgba(3, 28, 21, .06); }
.section:not(.section--cta) .benefit--accent .benefit__num { color: rgba(255, 255, 255, .16); }
.benefit--accent { display: block; }
.benefit--accent .benefit__icon { margin-bottom: 16px; }

/* 3. Штамп у колоді — менший і всередині фото; у галереї — тонка позначка */
.stack-card .stamp { right: 22px; top: 22px; font-size: clamp(10px, .85vw, 12px); padding: 4px 8px 3px; letter-spacing: .1em; }
.stack-card .stamp, .stack-card.is-top .stamp { transform-origin: 100% 0; }
.stack-card.is-top .stamp { transform: rotate(-8deg) scale(1); }
.sticker__ok {
  position: absolute; z-index: 2; left: 10px; bottom: 10px; padding: 5px 10px; border-radius: 999px;
  background: rgba(2, 21, 17, .72); color: #3df5a0; font: 700 12px/1 var(--font); backdrop-filter: blur(4px);
}

/* 7. «Іншої ситуації немає?» — 12-та плитка, сітка закривається */
.car-tile--cta { grid-column: auto !important; flex-direction: column !important; align-items: flex-start !important; }
.car-tile--cta .link-arrow { margin: auto 0 0 !important; padding-top: 6px; }

/* 9. Месенджери в загальному стилі: скляна кнопка, фірмовий колір лише в іконці */
.btn--tg, .btn--viber, .btn--wa { background: rgba(255, 255, 255, .07); color: #fff; border: 1px solid rgba(255, 255, 255, .14); }
.btn--tg:hover, .btn--viber:hover, .btn--wa:hover { filter: none; background: rgba(255, 255, 255, .13); }
.msg--tg, .msg--viber, .msg--wa { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }
.msg--tg svg, .btn--tg svg { color: #4fb9ee; }
.msg--viber svg, .btn--viber svg { color: #9a8cff; }
.msg--wa svg, .btn--wa svg { color: #3ee07f; }
.mobile-bar__icon.msg--tg, .mobile-bar__icon.msg--viber, .mobile-bar__icon.msg--wa { background: rgba(255, 255, 255, .07); }
.section:not(.section--cta) .benefit--accent p { color: rgba(255, 255, 255, .86) !important; }
.final { padding-top: 72px; }
@media (max-width: 720px) { .final { padding: 48px 0 56px; } }
