/* МоторПлюс — вариант 3. Светлая тема: белый, графит, красный акцент. Минимум блоков. */
@import url("fonts.css");

:root {
  --bg: #f5f5f2;
  --white: #ffffff;
  --gray: #ebebe6;
  --ink: #141519;
  --ink-2: #2a2c31;
  --muted: #62666e;
  --dim: #8b8f96;
  --line: rgba(20, 21, 25, .1);
  --red: #e5192e;
  --red-2: #ff2f44;
  --red-dark: #b80f20;
  --ok: #1f9d55;
  --dark: #111215;
  --radius: 20px;
  --wrap: 1200px;
  --head-h: 72px;
  --font: "Manrope", "Segoe UI", Arial, sans-serif;
  --font-head: "Unbounded", "Arial Black", sans-serif;
  --shadow: 0 24px 60px -28px rgba(20, 21, 25, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--red); color: #fff; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { margin: 0; font-family: var(--font); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
h1 { font-size: clamp(32px, 4.2vw, 58px); }
h2 { font-size: clamp(28px, 3.2vw, 44px); }
h3 { font-size: 19px; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0; }
.accent { color: var(--red); }
.lead { font-size: clamp(17px, 1.35vw, 20px); color: var(--muted); max-width: 52ch; }

/* ---------- buttons ---------- */
.btn { --h: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 26px; border-radius: 999px; font: 700 15px/1 var(--font); white-space: nowrap; transition: background-color .2s, transform .2s, box-shadow .2s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 12px 28px -12px rgba(229, 25, 46, .7); }
.btn-red:hover { background: var(--red-2); transform: translateY(-1px); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--ink); }
.btn-ghost { border: 1px solid var(--line); background: #fff; }
.btn-sm { --h: 42px; padding: 0 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(245, 245, 242, .86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s; }
.header.is-scrolled { border-bottom-color: var(--line); }
.header .wrap { height: var(--head-h); display: flex; align-items: center; gap: 28px; }
.logo { flex: none; }
.logo img { height: 36px; width: auto; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { white-space: nowrap; font-size: 15px; font-weight: 600; color: var(--ink-2); transition: color .2s; }
.nav a:hover { color: var(--red); }
.head-right { display: flex; align-items: center; gap: 10px; }
.msg { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.msg svg { width: 20px; height: 20px; }
.head-phone { font-weight: 800; font-size: 16px; white-space: nowrap; margin: 0 6px 0 8px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 1px solid var(--line); place-items: center; }
.burger span, .burger span::before, .burger span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .25s, background-color .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -6px; } .burger span::after { top: 6px; }
.menu-open .burger span { background: transparent; }
.menu-open .burger span::before { transform: translateY(6px) rotate(45deg); }
.menu-open .burger span::after { transform: translateY(-6px) rotate(-45deg); }
.mobile-menu { position: fixed; inset: var(--head-h) 0 0 0; z-index: 49; background: var(--bg); padding: 16px 20px 120px; overflow-y: auto; display: none; flex-direction: column; gap: 4px; }
.menu-open .mobile-menu { display: flex; }
.mobile-menu .m-link { font-size: 22px; font-weight: 800; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mobile-menu .m-phone { font-size: 24px; font-weight: 800; margin: 24px 0 14px; }

/* ---------- hero ---------- */
.hero { padding: 8px 0 0; }
.hero-panel {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: minmax(0, 1fr); align-items: center;
  padding: clamp(32px, 5vw, 72px); border-radius: 32px; color: #fff; min-height: 600px;
  background: #08090a;
}
.hero-copy { display: grid; gap: 22px; max-width: 600px; position: relative; z-index: 1; }
.hero-photo { position: absolute; inset: 0 0 0 auto; width: 60%; z-index: 0; pointer-events: none; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%;
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 42%); }
.hero-form { margin-top: 10px; padding: 16px; }
.hero-form .form-grid { gap: 10px; }
.hf-row { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; }
.hero .lead { color: #c3c6cc; }
.checks { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 12px 24px; flex-wrap: wrap; }
.checks li { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15.5px; }
.checks svg { width: 22px; height: 22px; padding: 5px; border-radius: 50%; background: var(--red); color: #fff; flex: none; }

/* ---------- forms ---------- */
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card { position: relative; padding: 28px; color: var(--ink); }
.form-title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.form-grid { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input { width: 100%; height: 54px; padding: 0 18px; border-radius: 14px; background: var(--bg); border: 1px solid transparent; outline: none; font-size: 16px; font-weight: 600; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.input::placeholder { color: var(--dim); font-weight: 500; }
.input:focus { background: #fff; border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 25, 46, .12); }
.input.is-invalid { border-color: var(--red); background: #fff2f3; }
.select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%2362666e' stroke-width='2' d='m1 1 5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 18px center; }
.vin-input-wrap { position: relative; }
.vin-input { letter-spacing: .08em; text-transform: uppercase; padding-right: 76px; }
.vin-input::placeholder { letter-spacing: 0; text-transform: none; }
.vin-counter { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 700; color: var(--dim); padding: 5px 8px; border-radius: 8px; background: #fff; }
.vin-counter.ok { color: var(--ok); }
.vin-result { display: none; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-radius: 12px; background: #fff1f2; border: 1px solid rgba(229, 25, 46, .25); font-size: 13.5px; animation: pop .3s ease; }
.vin-result.show { display: flex; }
.vin-result.warn { background: #fff8e6; border-color: #f0d48a; }
.vin-result .vr-brand { font-weight: 800; font-size: 17px; }
.vin-result .vr-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.vin-result .tag { padding: 3px 8px; border-radius: 6px; background: #fff; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.vin-result .vr-text { flex-basis: 100%; color: var(--muted); }
@keyframes pop { from { opacity: 0; transform: translateY(-4px); } }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--dim); line-height: 1.45; cursor: pointer; }
.consent input { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 0; border-radius: 5px; border: 1.5px solid #c4c6ca; background: #fff; display: grid; place-items: center; cursor: pointer; }
.consent input:checked { background: var(--red); border-color: var(--red); }
.consent input:checked::after { content: ""; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.consent input.is-invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 25, 46, .2); }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.form-success { display: none; text-align: center; padding: 20px 6px; gap: 12px; justify-items: center; }
.form-success .ok-ico { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #e8f6ee; color: var(--ok); }
.form-success .ok-ico svg { width: 28px; height: 28px; }
.form-success h3 { font-size: 22px; }
.form-success p { color: var(--muted); }
form.is-sent .form-grid { display: none; }
form.is-sent .form-success { display: grid; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-gray { background: var(--gray); }
.section h2 { margin-bottom: clamp(28px, 3.5vw, 48px); }

.why { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 80px); align-items: start; }
.why h2 { margin: 0; position: sticky; top: calc(var(--head-h) + 32px); }
.why-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.why-list li { display: grid; gap: 14px; padding: 28px 0; border-top: 1px solid var(--line); }
.why-list .n { font: 700 14px/1 var(--font-head); color: var(--red); }
.why-list p { color: var(--muted); margin-top: 8px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: t; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 2px; background: repeating-linear-gradient(90deg, #c9cac4 0 8px, transparent 8px 14px); }
.timeline li { position: relative; counter-increment: t; display: grid; gap: 6px; padding-right: 20px; }
.timeline li::before { content: counter(t); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px; background: var(--ink); color: #fff; font: 700 16px/1 var(--font-head); box-shadow: 0 0 0 8px var(--gray); position: relative; }
.timeline li:last-child::before { background: var(--red); }
.timeline b { font-size: 19px; font-weight: 800; letter-spacing: -.015em; }
.timeline span { color: var(--muted); }

.rev-top { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: clamp(28px, 3.5vw, 48px); }
.rev-top h2 { margin: 0; }
.rating { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); font-weight: 600; }
.rating b { font-size: 28px; font-weight: 800; color: var(--ink); }
.stars { color: #f5a623; letter-spacing: 2px; }
.rev-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.rev { padding: 26px; display: grid; gap: 14px; align-content: start; box-shadow: none; }
.rev p { font-size: 16px; }
.rev footer { font-size: 13.5px; color: var(--muted); }
.rev footer b { display: block; color: var(--ink); font-size: 15px; }

/* ---------- CTA ---------- */
.cta { padding-bottom: clamp(48px, 6vw, 88px); }
.cta-panel { border-radius: 32px; padding: clamp(32px, 5vw, 64px); color: #fff; background: radial-gradient(600px 400px at 100% 0%, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%); display: grid; gap: 28px; }
.cta h2 { max-width: 20ch; }
.cta-row { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 10px; position: relative; }
.cta-row .input { background: #fff; height: 58px; }
.cta-row .btn { --h: 58px; }
.cta-row .vin-result { grid-column: 1 / -1; color: var(--ink); }
.cta .consent { color: rgba(255, 255, 255, .8); }
.cta .consent input { border-color: rgba(255, 255, 255, .7); background: transparent; }
.cta .consent input:checked { background: #fff; }
.cta .consent input:checked::after { border-color: var(--red); }
.cta .form-success { justify-items: start; text-align: left; padding: 0; }
.cta-contacts { display: flex; gap: 12px 28px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .25); font-weight: 700; }
.cta-contacts a, .cta-contacts span { display: inline-flex; align-items: center; gap: 10px; }
.cta-contacts span { font-weight: 500; color: rgba(255, 255, 255, .85); }
.cta-contacts svg { width: 20px; height: 20px; }

/* ---------- footer ---------- */
.footer { padding: 8px 0 110px; font-size: 14px; color: var(--muted); }
.foot-row { display: flex; align-items: center; gap: 24px 36px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.footer .logo img { height: 30px; }
.foot-nav { display: flex; gap: 24px; flex-wrap: wrap; margin-left: auto; font-weight: 600; color: var(--ink-2); }
.foot-nav a:hover { color: var(--red); }
.foot-phone { font-weight: 800; font-size: 17px; color: var(--ink); }
.foot-copy { margin-top: 18px; font-size: 12.5px; color: var(--dim); }

/* ---------- inner page ---------- */
.page-hero { padding: 48px 0 8px; }
.crumbs { font-size: 13px; color: var(--dim); margin-bottom: 16px; display: flex; gap: 8px; }
.crumbs a:hover { color: var(--red); }
.side-grid { display: grid; grid-template-columns: 1fr 380px; gap: 56px; align-items: start; }
.side-grid aside { position: sticky; top: calc(var(--head-h) + 24px); }
.prose { max-width: 760px; color: var(--ink-2); }
.prose h2 { font-size: clamp(24px, 2.4vw, 32px); margin: 48px 0 14px; }
.prose p + p { margin-top: 12px; }
.pay-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.pay { display: grid; gap: 4px; padding: 20px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.pay b { font-size: 16px; }
.pay span { font-size: 13.5px; color: var(--muted); }
.pay .pi { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); color: var(--red); margin-bottom: 8px; }
.pay .pi svg { width: 18px; height: 18px; }
.pay.hot { border-color: var(--red); box-shadow: inset 0 0 0 1px var(--red); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips span { padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 700; font-size: 14px; }

/* ---------- mobile bar, modal, cookie ---------- */
.mbar { display: none; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; padding: 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, .18); grid-template-columns: 50px 50px 1fr; gap: 8px; transform: translateY(140%); transition: transform .35s ease; }
.mbar.show { transform: none; }
.mbar .sq { height: 50px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); }
.mbar .sq svg { width: 22px; height: 22px; }
.mbar .btn { --h: 50px; }
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; background: rgba(20, 21, 25, .55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.modal.open { display: grid; animation: fade .25s ease; }
.modal .form-card { width: min(100%, 420px); }
.modal-close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); font-size: 20px; line-height: 1; z-index: 2; }
@keyframes fade { from { opacity: 0; } }
.cookie { position: fixed; right: 16px; bottom: 16px; z-index: 70; max-width: 360px; padding: 14px 16px; display: none; grid-template-columns: 1fr auto; gap: 12px; align-items: center; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; color: var(--muted); }
.cookie.show { display: grid; }
.cookie a { text-decoration: underline; }

.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav { display: none; }
  .burger { display: grid; }
  .head-right { margin-left: auto; }
}
@media (max-width: 960px) {
  .why, .side-grid { grid-template-columns: 1fr; }
  .hero-panel { min-height: 0; padding-top: 240px; }
  .hero-photo { width: 100%; height: 340px; inset: 0 0 auto 0; }
  .hero-photo img { object-position: 50% 40%; mask-image: linear-gradient(180deg, #000 45%, transparent 100%); -webkit-mask-image: linear-gradient(180deg, #000 45%, transparent 100%); }
  .hero-copy { max-width: none; }
  .why h2 { position: static; }
  .timeline { grid-template-columns: 1fr 1fr; gap: 32px 0; }
  .timeline::before { display: none; }
  .rev-grid { grid-template-columns: 1fr; }
  .side-grid aside { position: static; }
  .cta-row { grid-template-columns: 1fr 1fr; }
  .cta-row .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  :root { --head-h: 62px; }
  .wrap { width: min(100% - 24px, var(--wrap)); }
  .logo img { height: 28px; }
  .msg, .head-phone, .head-cb { display: none; }
  .hero-panel { padding: 190px 14px 14px; border-radius: 24px; }
  .hero-photo { height: 260px; }
  .hf-row { grid-template-columns: 1fr; }
  .hero-form { padding: 14px; }
  .checks { flex-direction: column; gap: 10px; }
  .form-card { padding: 20px; }
  .why-list { grid-template-columns: 1fr; }
  .why-list li { grid-template-columns: 40px 1fr; padding: 20px 0; }
  .timeline { grid-template-columns: 1fr; gap: 0; }
  .timeline li { grid-template-columns: 48px 1fr; column-gap: 16px; padding: 0 0 20px; }
  .timeline li::before { grid-row: span 2; margin: 0; }
  .timeline b { align-self: end; }
  .rev-grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -12px; padding: 0 12px 6px; }
  .rev { flex: 0 0 85%; scroll-snap-align: center; }
  .cta-panel { border-radius: 24px; padding: 28px 18px; }
  .cta-row { grid-template-columns: 1fr; }
  .cta-contacts { flex-direction: column; }
  .foot-nav { margin-left: 0; }
  .mbar { display: grid; }
  .cookie { left: 10px; right: 10px; bottom: 80px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.prose .note { margin-top: 20px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.prose ul { padding-left: 20px; display: grid; gap: 6px; }
