/* ============================================================
   Импорт Авто — landing styles
   Theme tokens switch via [data-theme] on <html>
   ============================================================ */

/* ---------- Theme: graphite (default) — cream / ink / gold ---------- */
:root,
[data-theme="graphite"] {
  --bg:          #f4f1ea;
  --bg-alt:      #ece7dc;
  --surface:     #ffffff;
  --surface-2:   #1a1815;
  --ink:         #14120e;
  --ink-soft:    #4a463d;
  --muted:       #8a8479;
  --border:      #e2dccf;
  --accent:      #c08a2d;          /* gold */
  --accent-2:    #d8a948;
  --accent-ink:  #ffffff;
  --hero-tint-1: rgba(20,18,14,.72);
  --hero-tint-2: rgba(20,18,14,.20);
  --dark-panel:  #16140f;
  --dark-panel-ink:#f4f1ea;
  --star:        #c08a2d;
}

/* ---------- Theme: dark-red (DEFAULT) — dark premium + red accent ---------- */
[data-theme="dark-red"] {
  --bg:          #111012;
  --bg-alt:      #18161a;
  --surface:     #1c1a1e;
  --surface-2:   #0b0a0c;
  --ink:         #f4f1ee;
  --ink-soft:    #bdb8b4;
  --muted:       #7f7a78;
  --border:      #2a272c;
  --accent:      #d6342b;          /* premium red */
  --accent-2:    #ec5a4f;
  --accent-ink:  #ffffff;
  --hero-tint-1: rgba(9,8,10,.82);
  --hero-tint-2: rgba(9,8,10,.30);
  --dark-panel:  #1a181c;
  --dark-panel-ink:#f4f1ee;
  --star:        #ec5a4f;
}

/* ---------- Theme: red (classic red — light) ---------- */
[data-theme="red"] {
  --bg:          #efefef;
  --bg-alt:      #e6e6e6;
  --surface:     #ffffff;
  --surface-2:   #161616;
  --ink:         #121212;
  --ink-soft:    #4a4a4a;
  --muted:       #8c8c8c;
  --border:      #e2e2e2;
  --accent:      #c0392b;
  --accent-2:    #d6473a;
  --accent-ink:  #ffffff;
  --hero-tint-1: rgba(15,15,15,.70);
  --hero-tint-2: rgba(15,15,15,.15);
  --dark-panel:  #141414;
  --dark-panel-ink:#f4f4f4;
  --star:        #c0392b;
}

/* ---------- Theme: midnight (dark premium) ---------- */
[data-theme="midnight"] {
  --bg:          #0e0f12;
  --bg-alt:      #15171c;
  --surface:     #181a20;
  --surface-2:   #0a0b0d;
  --ink:         #f3f1ec;
  --ink-soft:    #b9b6ad;
  --muted:       #7c7a73;
  --border:      #272a31;
  --accent:      #cda14a;
  --accent-2:    #e0b964;
  --accent-ink:  #16140f;
  --hero-tint-1: rgba(8,9,11,.78);
  --hero-tint-2: rgba(8,9,11,.30);
  --dark-panel:  #181a20;
  --dark-panel-ink:#f3f1ec;
  --star:        #cda14a;
}

/* ---------- Theme: azure (cool blue) ---------- */
[data-theme="azure"] {
  --bg:          #eef1f5;
  --bg-alt:      #e3e8ef;
  --surface:     #ffffff;
  --surface-2:   #0e1726;
  --ink:         #0e1726;
  --ink-soft:    #3d4859;
  --muted:       #8893a3;
  --border:      #dbe1ea;
  --accent:      #2f6df0;
  --accent-2:    #4a82f5;
  --accent-ink:  #ffffff;
  --hero-tint-1: rgba(14,23,38,.72);
  --hero-tint-2: rgba(14,23,38,.18);
  --dark-panel:  #0e1726;
  --dark-panel-ink:#eef1f5;
  --star:        #2f6df0;
}

/* ---------- Font pairings ---------- */
:root {
  --font-head: 'Unbounded', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --maxw: 1240px;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(20,18,14,.06);
  --shadow:    0 18px 50px -18px rgba(20,18,14,.30);
}
[data-head="unbounded"]{ --font-head: 'Unbounded', system-ui, sans-serif; }
[data-head="montserrat"]{ --font-head: 'Montserrat', system-ui, sans-serif; }
[data-head="oswald"]  { --font-head: 'Oswald', system-ui, sans-serif; }
[data-head="archivo"] { --font-head: 'Archivo', system-ui, sans-serif; }
[data-head="exo2"]    { --font-head: 'Exo 2',  system-ui, sans-serif; }

[data-head="unbounded"] h1,
[data-head="unbounded"] h2,
[data-head="unbounded"] h3,
[data-head="unbounded"] h4,
[data-head="unbounded"] .h-sec { letter-spacing: -.02em; }
[data-head="unbounded"] .hero h1 { font-size: clamp(30px, 5vw, 64px); line-height: 1.08; }
[data-head="unbounded"] .h-sec { font-size: clamp(26px, 3.6vw, 44px); }
[data-head="unbounded"] .brand { letter-spacing: 0; }

/* ============================================================
   Reset / base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { font-family: var(--font-head); margin: 0; line-height: 1.04; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700; font-size: 13px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent);
}
.accent { color: var(--accent); }

.h-sec {
  font-weight: 800; font-size: clamp(30px, 4.4vw, 54px); text-transform: uppercase;
  letter-spacing: -.005em;
}
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head p { color: var(--ink-soft); margin-top: 16px; font-size: 18px; max-width: 640px; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
  text-transform: uppercase; letter-spacing: .04em;
  padding: 16px 30px; border: none; border-radius: 10px;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); position: relative; overflow: hidden; }
.btn-accent:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 12px 28px -10px var(--accent); }
/* E1 — light sheen sweep */
.btn-accent::before { content: ""; position: absolute; top: 0; left: -85%; width: 60%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.5), transparent); transform: skewX(-20deg); pointer-events: none; z-index: 2; }
.btn-accent:hover::before { animation: btnSheen .8s ease; }
@keyframes btnSheen { to { left: 135%; } }
.btn-dark { background: var(--surface-2); color: #fff; }
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; border: 1.5px solid currentColor; }
.btn-block { width: 100%; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background .35s ease, box-shadow .35s ease;
}
/* F2 — header shrinks on scroll */
.site-header.shrunk { background: color-mix(in srgb, var(--bg) 95%, transparent); box-shadow: 0 10px 30px -18px rgba(0,0,0,.55); }
.nav { display: flex; align-items: center; gap: 28px; height: 76px; transition: height .35s cubic-bezier(.2,.7,.2,1); }
.site-header.shrunk .nav { height: 58px; }
.brand { display: flex; align-items: center; gap: 2px; }
.brand b { color: var(--accent); font-weight: 800; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; display: block; flex: none; transition: width .35s cubic-bezier(.2,.7,.2,1), height .35s cubic-bezier(.2,.7,.2,1); }
.site-header.shrunk .brand-logo { width: 44px; height: 44px; }
.brand-logo-foot { width: 220px; max-width: 70vw; height: auto; display: block; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--ink-soft); transition: color .15s; white-space: nowrap; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-cta-m { display: none; padding: 11px 20px; font-size: 13px; border-radius: 9px; }
.nav-phones { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; align-items: flex-start; }
.nav-owner { font-family: var(--font-body); font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #b9b3a6; white-space: nowrap; }
.nav-phone { font-family: var(--font-body); font-weight: 800; font-size: 16px; white-space: nowrap; }
.nav-phone-2nd { font-family: var(--font-body); font-weight: 800; font-size: 16px; white-space: nowrap; color: var(--ink); transition: color .15s; }
.nav-phone:hover, .nav-phone-2nd:hover { color: var(--accent); }
.burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.burger span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s; }

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg image-slot { width: 100%; height: 100%; }
.hero-stack { position: relative; }
.hero-bg-mobile { display: none; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, var(--hero-tint-1) 0%, var(--hero-tint-1) 34%, var(--hero-tint-2) 72%, transparent 100%);
}
.hero-inner { min-height: 640px; display: flex; flex-direction: column; justify-content: center; padding: 90px 0 200px; }
.hero h1 {
  color: #fff; font-weight: 800; text-transform: uppercase;
  font-size: clamp(38px, 6.4vw, 84px); max-width: 14ch;
  text-shadow: 0 4px 40px rgba(0,0,0,.45);
}
.hero h1 .em { color: var(--accent); }
.hero .lead { color: rgba(255,255,255,.88); font-size: clamp(17px, 1.7vw, 22px); margin: 26px 0 34px; max-width: 46ch; font-weight: 500; }
.hero-socials { position: absolute; top: 36px; right: 24px; display: flex; gap: 10px; }
.hero-socials a {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px;
  background: rgba(255,255,255,.14); color: #fff; backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.18); transition: .18s;
}
.hero-socials a:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.hero-socials svg { width: 20px; height: 20px; }

/* benefit bar overlapping hero bottom */
.benefits { position: relative; z-index: 5; margin-top: -120px; }
.benefits-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.bcard {
  background: rgba(28,26,22,.82); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius); padding: 26px 22px; color: #f4f1ea;
  display: flex; flex-direction: column; gap: 12px; min-height: 132px;
}
.bcard .ic { width: 30px; height: 30px; color: var(--accent-2); }
.bcard .ic svg { width: 100%; height: 100%; }
.bcard p { font-size: 15px; line-height: 1.35; color: rgba(244,241,234,.82); }
.bcard p b { color: #fff; font-weight: 700; }
.bcard.cta { background: var(--accent); border-color: var(--accent); justify-content: center; align-items: center; cursor: pointer; transition: .18s; }
.bcard.cta:hover { background: var(--accent-2); transform: translateY(-3px); }
.bcard.cta span { font-family: var(--font-head); font-weight: 700; font-size: 17px; text-transform: uppercase; color: var(--accent-ink); line-height: 1.15; text-align: center; }

/* ============================================================
   About
   ============================================================ */
.about { position: relative; overflow: hidden; background: var(--bg-alt); }
.about-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: flex-start; }
.about h2 { font-weight: 800; font-size: clamp(28px,3.6vw,46px); text-transform: none; margin-bottom: 28px; }
.about-list { display: grid; gap: 14px; }
.about-list li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; color: var(--ink-soft); }
.about-list .dot { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; margin-top: 2px; }
.about-list .dot svg { width: 13px; height: 13px; }
.about-list b { color: var(--ink); font-weight: 700; }
.about-media image-slot { width: 100%; aspect-ratio: 3/4; min-height: 480px; }
.about-media image-slot::part(frame) { background: transparent; }
.watermark { position: absolute; right: -4%; top: 50%; transform: translateY(-50%); font-family: var(--font-head); font-weight: 800; font-size: 38vw; color: var(--ink); opacity: .03; z-index: 0; pointer-events: none; line-height: 1; }

/* ============================================================
   Origins (откуда возим)
   ============================================================ */
.origins-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.origins-grid .origin { scroll-snap-align: unset; }
.origin:nth-child(1), .origin:nth-child(2) { grid-column: span 3; }
.origin:nth-child(3), .origin:nth-child(4), .origin:nth-child(5) { grid-column: span 2; }
.origin {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .2s; display: flex; flex-direction: column;
}
.origin { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s; }
.origin:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: 0 24px 48px -22px color-mix(in srgb, var(--accent) 50%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent); }
.origin .flag { padding: 28px 28px 0; display: flex; align-items: center; gap: 14px; }
.origin .flag .fl { width: 46px; height: 32px; border-radius: 5px; overflow: hidden; flex: none; box-shadow: var(--shadow-sm); }
.origin .flag .fl svg, .origin .flag .fl > div { width: 100%; height: 100%; }
.origin .flag h3 { font-weight: 800; font-size: 24px; }
.origin .body { padding: 18px 28px 30px; }
.origin .body p { color: var(--ink-soft); font-size: 16px; }
.origin .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.origin .tags span { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 100px; background: var(--bg-alt); color: var(--ink-soft); }
.swipe-hint { display: none; }

/* ============================================================
   Cars
   ============================================================ */
.cars { background: var(--bg-alt); }
.cf-controls { display: none; }  /* shown only on mobile (coverflow) */
.rd-controls { display: none; }  /* shown only on desktop (≥1025px) */

/* ===== Desktop rail carousel controls (≥1025px) ===== */
@media (min-width: 1025px) {
  .rd-on {
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: none;   /* snap+left-inset would auto-scroll the rail off its title alignment */
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 96px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 96px), transparent);
  }
  .rd-on.rd-on { scroll-snap-type: none; }   /* beat .vrev-rail/.vid-rail mandatory snap (defined later) */
  .rd-on::-webkit-scrollbar { display: none; height: 0; width: 0; }

  .rd-controls {
    display: flex; align-items: center; justify-content: center; gap: 24px;
    max-width: var(--maxw); margin: 8px auto 0; padding: 0 24px;
  }
  .rd-btn {
    width: 52px; height: 52px; border-radius: 50%; flex: none;
    border: 1.5px solid var(--border); background: var(--surface); color: var(--ink);
    display: grid; place-items: center; cursor: pointer; overflow: hidden; position: relative;
    transition: border-color .2s, transform .1s, opacity .2s;
  }
  .rd-btn::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: var(--accent);
    transform: scale(0);
    transition: transform .28s cubic-bezier(.34,1.56,.64,1);
  }
  .rd-btn:hover { border-color: var(--accent); }
  .rd-btn:hover::before { transform: scale(1); }
  .rd-btn:active { transform: scale(.93); }
  .rd-btn[disabled] { opacity: .3; pointer-events: none; }
  .rd-btn svg { width: 21px; height: 21px; position: relative; z-index: 1; transition: transform .22s cubic-bezier(.34,1.4,.64,1); }
  .rd-prev:hover svg { transform: translateX(-3px); }
  .rd-next:hover svg { transform: translateX(3px); }

  .rd-track {
    position: relative; width: min(360px, 34vw); height: 4px;
    border-radius: 100px; background: var(--border); cursor: pointer;
    touch-action: none;
  }
  .rd-track::before { content: ""; position: absolute; inset: -10px 0; }  /* fat hit area */
  .rd-thumb {
    position: absolute; top: 50%; left: 0; transform: translateY(-50%);
    height: 4px; min-width: 28px; border-radius: 100px; background: var(--accent);
    transition: width .12s linear;
  }
  .rd-counter {
    font-family: var(--font-head); font-weight: 700; font-size: 15px;
    color: var(--muted); min-width: 64px; text-align: center; white-space: nowrap;
  }
  .rd-counter b { color: var(--ink); }

  /* a touch more vertical room now that the scrollbar is gone */
  .cars-rail, .vrev-rail, .vid-rail { padding-bottom: 16px; }
  .vrev-rail { margin-bottom: 20px; }
}
.cars-rail { display: flex; gap: 22px; overflow-x: auto; overflow-y: hidden; padding: 22px 24px 28px; margin-top: -16px; padding-left: 24px; width: 100%; }
.cars-rail::-webkit-scrollbar { height: 8px; }
.cars-rail::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 100px; }
.cars-rail::-webkit-scrollbar-track { background: var(--border); border-radius: 100px; }
.car {
  flex: 0 0 312px;
  cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--shadow-sm);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
/* C1 — lift + accent glow border */
.car:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 26px 52px -22px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 38%, transparent); }
.car-img { position: relative; overflow: hidden; }
/* C2 — image zoom inside frame */
.car-img image-slot { transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.car:hover .car-img image-slot { transform: scale(1.08); }
.car-img image-slot { width: 100%; aspect-ratio: 4/3; }
.car-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.car:hover .car-img img { transform: scale(1.08); }
.car-tags { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; justify-content: space-between; align-items: flex-start; }
.car-tags .type { font-size: 12px; font-weight: 600; background: rgba(20,18,14,.78); color: #fff; padding: 5px 11px; border-radius: 100px; backdrop-filter: blur(4px); }
.car-tags .stock { font-size: 12px; font-weight: 700; background: rgba(255,255,255,.92); color: #1f8a5b; padding: 5px 11px; border-radius: 100px; display: flex; align-items: center; gap: 5px; }
.car-body { padding: 18px 20px 22px; display: flex; flex-direction: column; flex: 1; }
.car-body h3 { font-family: var(--font-head); font-weight: 700; font-size: 21px; }
.car-spec { margin: 14px 0; border-top: 1px solid var(--border); }
.car-spec div { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.car-spec .k { color: var(--muted); }
.car-spec .v { font-weight: 700; }
.car-price { font-family: var(--font-head); font-weight: 800; font-size: 23px; white-space: nowrap; margin-bottom: 16px; }
.car-price small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11px; color: var(--muted); margin-top: 2px; white-space: normal; }
.car .btn { margin-top: auto; }

/* ============================================================
   Steps
   ============================================================ */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 36px 32px; min-height: 220px; box-shadow: var(--shadow-sm);
}
.step .num { position: absolute; right: 20px; top: 8px; font-family: var(--font-head); font-weight: 800; font-size: 110px; color: var(--accent); opacity: .12; line-height: 1; }
.step h3 { font-weight: 800; font-size: 23px; margin-bottom: 14px; position: relative; }
.step p { color: var(--ink-soft); font-size: 15.5px; position: relative; }
.step.feature { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.step.feature h3, .step.feature p { color: var(--accent-ink); }
.step.feature p { opacity: .92; }
.step.feature .num { color: #fff; opacity: .22; }

/* ============================================================
   Guarantees
   ============================================================ */
.guarantees { background: var(--dark-panel); color: var(--dark-panel-ink); }
.guarantees .h-sec { color: var(--dark-panel-ink); }
.guarantees .sec-head p { color: color-mix(in srgb, var(--dark-panel-ink) 70%, transparent); }
.guar-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 18px; }
.guar {
  position: relative; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--dark-panel-ink) 14%, transparent);
  border-radius: var(--radius); padding: 28px 22px; text-align: center;
  background: color-mix(in srgb, var(--dark-panel-ink) 4%, transparent);
}
.guar-inr { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.guar .ic { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; }
.guar .ic svg { width: 24px; height: 24px; }
.guar p { font-size: 15px; font-weight: 600; line-height: 1.35; }
/* B10 — accent curtain reveal (Наши гарантии) */
.guar .curtain { position: absolute; inset: 0; background: var(--accent); z-index: 4; transform: scaleX(1); transform-origin: left; }
.reveal-curtain .guar-inr { opacity: 0; transform: translateX(12px); }
.reveal-curtain.in .guar .curtain { animation: guarCurtain .75s cubic-bezier(.7,0,.2,1) forwards; animation-delay: calc(var(--si, 0) * .11s); }
.reveal-curtain.in .guar-inr { animation: guarInr .5s ease forwards; animation-delay: calc(var(--si, 0) * .11s + .24s); }
@keyframes guarCurtain { to { transform: scaleX(0); } }
@keyframes guarInr { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .guar .curtain { display: none; }
  .reveal-curtain .guar-inr { opacity: 1; transform: none; }
}

/* ============================================================
   Calculator
   ============================================================ */
.calc-wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--border); }
.calc-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.calc-cur { font-weight: 500; font-size: 11px; letter-spacing: .04em; text-transform: none; color: var(--muted); margin-left: 6px; }
.seg-sm button { padding: 8px 10px; font-size: 13px; }
.util-badge { display: inline-block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 5px; background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--accent-2); margin-left: 8px; vertical-align: middle; }
.calc-rate-hint { margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.calc-select { display: none; }  /* mobile only — see ≤640 block */
.calc-form { background: var(--surface); padding: 48px; }
.calc-result { background: var(--dark-panel); color: var(--dark-panel-ink); padding: 48px; display: flex; flex-direction: column; justify-content: center; }
.field { margin-bottom: 24px; }
.field label { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 10px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg button {
  border: 1.5px solid var(--border); background: var(--bg); color: var(--ink-soft);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px; transition: .15s;
}
.seg button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.range-row { display: flex; align-items: center; gap: 16px; }
.range-row input[type=range] { flex: 1; accent-color: var(--accent); }
.range-val { font-family: var(--font-head); font-weight: 800; font-size: 22px; white-space: nowrap; }
.calc-result .rlabel { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: color-mix(in srgb, var(--dark-panel-ink) 60%, transparent); }
.calc-result .rtotal { font-family: var(--font-head); font-weight: 800; font-size: clamp(30px,3.4vw,46px); margin: 12px 0 4px; color: var(--accent-2); white-space: nowrap; letter-spacing: -.02em; }
.calc-result .rnote { font-size: 13px; color: color-mix(in srgb, var(--dark-panel-ink) 56%, transparent); }
.calc-break { margin: 26px 0; display: grid; gap: 10px; }
.calc-break-toggle { display: none; }
.calc-break div { display: flex; justify-content: space-between; font-size: 14.5px; padding-bottom: 10px; border-bottom: 1px solid color-mix(in srgb, var(--dark-panel-ink) 12%, transparent); }
.calc-break .k { color: color-mix(in srgb, var(--dark-panel-ink) 68%, transparent); }
.calc-break .v { font-weight: 700; }

/* ============================================================
   Reviews
   ============================================================ */
.reviews { background: var(--bg-alt); }
.rev-rail { display: flex; gap: 22px; overflow-x: auto; overflow-y: hidden; padding: 22px 24px 28px; margin-top: -16px; width: 100%; scroll-snap-type: x mandatory; }
.rev-rail::-webkit-scrollbar { height: 8px; }
.rev-rail::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 100px; }
.rev-rail::-webkit-scrollbar-track { background: var(--border); border-radius: 100px; }
.review { scroll-snap-align: start; flex: 0 0 360px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); position: relative; }
.review .q { position: absolute; right: 28px; top: 26px; color: var(--accent); font-family: Georgia, serif; font-size: 52px; line-height: 1; opacity: .5; }
.review .who { font-family: var(--font-head); font-weight: 700; font-size: 18px; }
.review .stars { color: var(--star); letter-spacing: 2px; margin: 6px 0 14px; font-size: 15px; }
.review p { color: var(--ink-soft); font-size: 15px; }
.review p b { color: var(--ink); }
.rev-foot { text-align: center; margin-top: 36px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { max-width: 920px; margin: 0 auto; display: grid; gap: 14px; }
.qa {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: border-color .28s ease, background .28s ease, box-shadow .28s ease;
}
/* G6 — row highlight + open accent marker */
.qa::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--accent); transform: scaleY(0); transform-origin: top;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.qa:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); background: color-mix(in srgb, var(--accent) 4%, var(--surface)); }
.qa.is-open { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 14px 34px -22px color-mix(in srgb, var(--accent) 60%, transparent); }
.qa.is-open::before { transform: scaleY(1); }
.qa-q { width: 100%; text-align: left; background: none; border: 0; font-family: var(--font-head); list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 28px; font-weight: 700; font-size: 18px; color: var(--ink); transition: color .2s; }
.qa.is-open .qa-q { color: var(--accent); }
/* G5 — chevron indicator */
.qa .pm { flex: none; width: 11px; height: 11px; margin-right: 6px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; color: var(--muted); transform: rotate(45deg); transition: transform .3s cubic-bezier(.2,.7,.2,1), color .2s; }
.qa.is-open .pm { color: var(--accent); transform: rotate(-135deg); }
/* G1 — smooth height expand/collapse via measured max-height (animates both ways, every time) */
.qa > .ans-wrap { max-height: 0; overflow: hidden; transition: max-height .42s cubic-bezier(.2,.7,.2,1); }
.qa .ans { padding: 0 28px 26px; color: var(--ink-soft); font-size: 16px; max-width: 80ch; opacity: 0; transform: translateY(6px); transition: opacity .3s ease .08s, transform .3s ease .08s; }
.qa.is-open .ans { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .qa > .ans-wrap { transition: none; }
  .qa .ans { transition: none; }
  .qa::before, .qa .pm { transition: none; }
}

/* ============================================================
   Contact
   ============================================================ */
.contact { position: relative; isolation: isolate; overflow: hidden; padding: 120px 0; }
.contact-bg { position: absolute; inset: 0; z-index: -2; }
.contact-bg image-slot { width: 100%; height: 100%; }
.contact::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(8,8,10,.86), rgba(8,8,10,.6)); }
.contact-watermark { position: absolute; left: 50%; bottom: 4%; transform: translateX(-50%); font-family: var(--font-head); font-weight: 800; font-size: 13vw; color: #fff; opacity: .05; white-space: nowrap; z-index: -1; }
.contact-card { background: var(--accent); color: var(--accent-ink); border-radius: 22px; padding: 52px clamp(24px,5vw,68px); max-width: 980px; margin: 0 auto; box-shadow: var(--shadow); }
.contact-card h2 { color: #fff; text-align: center; font-weight: 800; font-size: clamp(30px,4vw,46px); text-transform: uppercase; }
.contact-card .sub { text-align: center; color: rgba(255,255,255,.9); margin: 12px 0 30px; font-size: 17px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr 1.2fr auto; gap: 12px; }
.form-row input { border: none; border-radius: 10px; padding: 16px 18px; font-size: 15px; font-family: inherit; background: #fff; color: #14120e; }
.form-row input:focus { outline: 2px solid var(--surface-2); }
.form-row .btn { white-space: nowrap; }
.form-note { text-align: center; color: rgba(255,255,255,.82); font-size: 13px; margin-top: 18px; }
.form-note a { text-decoration: underline; }
.contact-sent { display: none; flex-direction: column; align-items: center; gap: 8px; text-align: center; color: #fff; padding: 12px 0 4px; }
.contact-sent .cs-check { width: 60px; height: 60px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; margin-bottom: 6px; }
.contact-sent .cs-check svg { width: 30px; height: 30px; }
.contact-sent strong { font-family: var(--font-head); font-weight: 800; font-size: clamp(24px,3vw,34px); text-transform: uppercase; }
.contact-sent span { font-size: 16px; color: rgba(255,255,255,.9); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: var(--surface-2); color: #cfcabf; padding: 64px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 40px; }
.site-footer .brand { color: #fff; font-size: 26px; margin-bottom: 16px; }
.foot-col h4 { font-family: var(--font-body); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 18px; }
.foot-col ul { display: grid; gap: 11px; }
.foot-col a, .foot-col li { font-size: 14.5px; color: #cfcabf; transition: color .15s; }
.foot-col a:hover { color: var(--accent-2); }
.foot-socials { display: flex; gap: 10px; margin-top: 18px; }
.foot-socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; transition: .18s; }
.foot-socials a:hover { background: var(--accent); }
.foot-socials svg { width: 18px; height: 18px; }
.foot-desc { font-size: 14.5px; color: #a7a299; max-width: 32ch; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: #8c877d; }

/* ============================================================
   Floating contact bubble
   ============================================================ */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: flex; flex-direction: column; gap: 12px; }
.fab a { position: relative; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 26px -8px rgba(0,0,0,.5); transition: transform .15s; }
.fab a:hover { transform: scale(1.08); }
/* F3 — pulsing rings */
.fab a::before, .fab a::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; z-index: -1; pointer-events: none; animation: fabPulse 2.6s ease-out infinite; }
.fab a::after { animation-delay: 1.3s; }
@keyframes fabPulse { 0% { transform: scale(1); opacity: .55; } 80%, 100% { transform: scale(1.85); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .fab a::before, .fab a::after { animation: none; display: none; } }
.fab svg { width: 26px; height: 26px; }
.fab .tg { background: #2aabee; }
.fab .mx { background: linear-gradient(135deg, #5b8ef8 0%, #9b4ff7 100%); border-radius: 14px; overflow: hidden; padding: 0; }
.fab .mx img { width: 100%; height: 100%; border-radius: 0; display: block; object-fit: cover; }

/* ============================================================
   Modal
   ============================================================ */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal-back { position: absolute; inset: 0; background: rgba(8,8,10,.6); backdrop-filter: blur(3px); }
.modal-card { position: relative; background: var(--surface); color: var(--ink); border-radius: 20px; padding: 44px; max-width: 460px; width: 100%; box-shadow: var(--shadow); }
.modal-card h3 { font-weight: 800; font-size: 28px; text-transform: uppercase; text-align: center; }
.modal-card .sub { text-align: center; color: var(--ink-soft); margin: 10px 0 26px; font-size: 15px; }
.modal-card .field-stack { display: grid; gap: 12px; }
.modal-card input { border: 1.5px solid var(--border); border-radius: 10px; padding: 15px 16px; font-size: 15px; font-family: inherit; background: var(--bg); color: var(--ink); }
.modal-card input:focus { outline: none; border-color: var(--accent); }
.modal-close { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; border: none; background: var(--bg-alt); border-radius: 50%; font-size: 20px; color: var(--ink-soft); display: grid; place-items: center; }
.modal-note { text-align: center; font-size: 12px; color: var(--muted); margin-top: 14px; }

/* sent state */
.sent-msg { display: none; text-align: center; padding: 20px 0; }
.sent-msg.show { display: block; }
.sent-msg .check { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%; background: #1f8a5b; color: #fff; display: grid; place-items: center; }
.sent-msg .check svg { width: 32px; height: 32px; }

/* ============================================================
   Reveal animation
   ============================================================ */
/* B3 — blur-in for blocks */
.reveal { opacity: 0; filter: blur(14px); transform: translateY(16px) scale(.985); transition: opacity .7s ease, filter .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; filter: blur(0); transform: none; }
/* B4 — cascade: direct children stagger in */
.reveal-cascade > * { opacity: 0; transform: translateY(24px); transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1); }
.reveal-cascade.in > * { opacity: 1; transform: none; transition-delay: calc(var(--si, 0) * 85ms); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-cascade > * { opacity: 1 !important; filter: none !important; transform: none !important; transition: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1080px) {
  .benefits-grid { grid-template-columns: repeat(3,1fr); }
  .guar-grid { grid-template-columns: repeat(3,1fr); }
  .steps-grid { grid-template-columns: repeat(2,1fr); }
}

/* collapse desktop nav to burger early enough to avoid overflow (Unbounded is wide) */
@media (max-width: 1024px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .nav .open-modal { display: none; }
  .theme-toggle { display: none; }
  .nav-phone span { display: none; }
  .mnav-open .mobile-nav { display: flex; }
}

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-media { order: -1; }
  .about-media image-slot { min-height: 0; aspect-ratio: 16/10; }
  .calc-wrap { grid-template-columns: minmax(0, 1fr); }
  .calc-form, .calc-result { min-width: 0; }
  .origins-grid { grid-template-columns: repeat(2, 1fr); }
  .origin:nth-child(1), .origin:nth-child(2),
  .origin:nth-child(3), .origin:nth-child(4), .origin:nth-child(5) { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr 1fr; }
  .form-row .btn { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  .section { padding: 60px 0; }

  /* header — fill the empty space: compact CTA + right-aligned contacts */
  .nav .nav-cta-m { display: inline-flex; padding: 0 14px; height: 36px; font-size: 12px; align-self: center; flex-shrink: 0; }
  .nav-cta { margin-left: auto; }

  .sec-head { margin-bottom: 38px; }
  .sec-head p { font-size: 16px; }

  /* hero — full-bleed truck photo behind hero + benefits on mobile */
  .hero-stack { isolation: isolate; }
  .hero-stack .hero-bg-mobile {
    display: block; position: absolute; left: 0; right: 0; top: 0; bottom: 0;
    z-index: -1;
    background-color: var(--bg);
    background-image: url('assets/hero-bg-mobile.webp');
    background-position: top center;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .hero { overflow: visible; }
  .hero .hero-bg { display: none; }
  .hero-socials { display: none; }
  .hero-cta { display: none; }
  .hero-inner { min-height: 340px; padding: 58px 0 60px; }
  .hero .lead { margin: 20px 0 0; }

  /* benefits */
  .benefits { margin-top: -20px; padding-bottom: 40px; }
  .benefits-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .bcard { min-height: 0; padding: 20px 18px; }
  .bcard.cta { grid-column: 1 / -1; min-height: 0; padding: 22px; }

  /* === A: about — break the text slab into a 2-col card grid === */
  .about h2 { margin-bottom: 20px; }
  .about-list { grid-template-columns: 1fr 1fr; gap: 10px; }
  .about-list li {
    flex-direction: column; gap: 10px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 13px; padding: 16px 14px; font-size: 13.5px; line-height: 1.4;
    box-shadow: var(--shadow-sm); height: 100%;
  }
  .about-list .dot { margin-top: 0; width: 26px; height: 26px; }
  .about-list .dot svg { width: 15px; height: 15px; }

  /* === D: origins — horizontal swipe instead of vertical stack === */
  .origins-grid {
    display: flex; grid-template-columns: none; gap: 14px;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 10px;
  }
  .origins-grid::-webkit-scrollbar { display: none; }
  .origins-grid .origin {
    flex: 0 0 80%; max-width: 320px; scroll-snap-align: start;
  }
  .origin .flag { padding: 24px 22px 0; }
  .origin .body { padding: 16px 22px 26px; }
  /* E: swipe affordance hint */
  .swipe-hint {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 14px; font-size: 13px; font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--muted);
  }
  .swipe-hint svg { width: 18px; height: 18px; animation: swipeNudge 1.8s ease-in-out infinite; }
  @keyframes swipeNudge { 0%,100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }

  /* steps + guarantees */
  .steps-grid { grid-template-columns: 1fr; }
  .step { min-height: 0; padding: 30px 26px; }
  .guar-grid { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* calculator — stop the price total overflowing */
  .calc-form, .calc-result { padding: 32px 24px; }
  .calc-row-2 { grid-template-columns: 1fr; gap: 0; }
  .range-row input[type=range] { min-width: 0; }
  .range-val { font-size: 18px; }
  .calc-result .rtotal { font-size: 30px; white-space: normal; word-break: break-word; }

  /* calc breakdown accordion */
  .calc-break-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; background: transparent; border: none;
    border-top: 1px solid color-mix(in srgb, var(--dark-panel-ink) 12%, transparent);
    padding: 14px 0 10px; margin-top: 8px;
    color: color-mix(in srgb, var(--dark-panel-ink) 80%, transparent);
    font-family: var(--font-body); font-size: 14px; font-weight: 700;
    cursor: pointer; text-align: left;
  }
  .calc-break-toggle:hover { color: var(--dark-panel-ink); }
  .cbt-chevron { width: 18px; height: 18px; flex: none; transition: transform .25s ease; }
  .calc-break-toggle.is-open .cbt-chevron { transform: rotate(180deg); }
  .calc-break { display: none; margin: 0 0 20px; }
  .calc-break.is-open { display: grid; }

  /* calculator — native dropdowns instead of tall button groups */
  .calc-form .seg, .calc-form .seg-sm { display: none; }
  .calc-select {
    display: block; width: 100%; box-sizing: border-box;
    appearance: none; -webkit-appearance: none; -moz-appearance: none;
    font-family: var(--font-body); font-weight: 600; font-size: 15px;
    color: var(--ink); background-color: var(--bg);
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.4'><path d='M6 9l6 6 6-6'/></svg>");
    background-repeat: no-repeat; background-position: right 14px center;
    border: 1.5px solid var(--border); border-radius: 10px;
    padding: 14px 40px 14px 15px; cursor: pointer;
    transition: border-color .15s;
  }
  .calc-select:focus { outline: none; border-color: var(--accent); }
  .field { margin-bottom: 18px; }

  /* rails — coverflow takes over on mobile (see .cf-* below) */
  .car { flex-basis: 84vw; max-width: 320px; }
  .review { flex-basis: 84vw; max-width: 340px; padding: 26px; }

  /* ===== Coverflow slider (mobile) ===== */
  .cf-on {
    perspective: 1100px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    padding-top: 26px;
    padding-bottom: 18px;
    margin-top: -8px;
  }
  .cf-on::-webkit-scrollbar { display: none; }
  .cf-on > * {
    scroll-snap-align: center;
    transform-origin: center center;
    backface-visibility: hidden;
    transition: box-shadow .3s ease;
  }
  /* beat the per-card `scroll-snap-align:start` defaults (.vrev/.review) */
  .cf-on > .car, .cf-on > .vrev, .cf-on > .vid, .cf-on > .review { scroll-snap-align: center; }
  /* the centred (sharp) card gets a stronger lift */
  .cf-on .car,
  .cf-on .vrev,
  .cf-on .vid { box-shadow: 0 26px 50px -28px rgba(0,0,0,.7); }

  .cf-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 6px;
    padding: 0 24px 4px;
  }
  .cf-dots { display: flex; align-items: center; gap: 7px; }
  .cf-dot {
    width: 7px; height: 7px; border-radius: 100px;
    background: var(--muted); opacity: .5;
    transition: width .3s, background .3s, opacity .3s;
    cursor: pointer;
  }
  .cf-dot.on { width: 26px; opacity: 1; background: var(--accent); }
  .cf-navrow { display: flex; align-items: center; gap: 16px; }
  .cf-btn {
    width: 42px; height: 42px; border-radius: 50%;
    border: 1.5px solid var(--border); background: var(--surface);
    color: var(--ink); display: grid; place-items: center; overflow: hidden; position: relative;
    cursor: pointer; transition: border-color .2s, transform .1s;
  }
  .cf-btn::before {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: var(--accent);
    transform: scale(0);
    transition: transform .28s cubic-bezier(.34,1.56,.64,1);
  }
  .cf-btn:hover { border-color: var(--accent); }
  .cf-btn:hover::before { transform: scale(1); }
  .cf-btn:active { transform: scale(.92); }
  .cf-btn svg { width: 18px; height: 18px; position: relative; z-index: 1; transition: transform .22s cubic-bezier(.34,1.4,.64,1); }
  .cf-prev:hover svg { transform: translateX(-3px); }
  .cf-next:hover svg { transform: translateX(3px); }

  /* contact + form */
  .contact { padding: 80px 0; }
  .contact-card { padding: 40px 20px; }
  .contact-card h2 { font-size: clamp(26px, 7vw, 34px); }
  .form-row { grid-template-columns: 1fr; }

  /* footer */
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* modal */
  .modal { padding: 16px; }
  .modal-card { padding: 32px 22px; }
  .modal-card h3 { font-size: 24px; }

  /* floating bubbles a touch smaller */
  .fab { right: 16px; bottom: 16px; gap: 10px; }
  .fab a { width: 50px; height: 50px; }
}

/* ---------- Small / narrow phones ---------- */
@media (max-width: 430px) {
  .wrap { padding: 0 18px; }
  .nav { gap: 12px; }
  .nav-cta { gap: 10px; }
  .nav-phone { font-size: 15px; }
  .guar-grid { grid-template-columns: 1fr; }
  .step h3, .origin .flag h3, .car-body h3 { font-size: 20px; }
  h1, h2, h3, .h-sec { overflow-wrap: break-word; }
}
@media (max-width: 400px) {
  /* show the main phone (theme toggle moved to the drawer freed the space) */
  .nav-phones { display: flex; }
  .nav-phone { font-size: 15px; }
  .nav-phone-2nd { display: none; }
  .nav .nav-cta-m { padding: 0 12px; height: 34px; font-size: 11.5px; }
}
@media (max-width: 360px) {
  /* tightest phones: drop the compact CTA so logo + phone + burger fit */
  .nav .nav-cta-m { display: none; }
}
@media (max-width: 345px) {
  .nav { gap: 8px; }
  .nav-cta { gap: 8px; }
}

/* Mobile nav drawer */
.mobile-nav { display: none; position: fixed; inset: 0; z-index: 80; background: var(--bg); flex-direction: column; padding: 90px 28px 28px; gap: 6px; }
.mobile-nav a { font-family: var(--font-head); font-weight: 700; font-size: 22px; padding: 14px 0; border-bottom: 1px solid var(--border); text-transform: uppercase; }
.mobile-nav .close { position: absolute; top: 24px; right: 24px; font-size: 34px; background: none; border: none; color: var(--ink); }
.mnav-theme { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.mnav-theme-label { font-family: var(--font-body); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.mnav-theme-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 5px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 13px; }
.mnav-theme-switch button { font-family: var(--font-head); font-weight: 700; font-size: 14px; padding: 13px 0; border: none; border-radius: 9px; background: transparent; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .03em; transition: background .18s, color .18s; }
.mnav-theme-switch button.is-active { background: var(--accent); color: var(--accent-ink); }

/* ============================================================
   Theme toggle (невзрачная кнопка)
   ============================================================ */
.theme-toggle {
  width: 40px; height: 40px; flex: none; border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  color: var(--ink-soft); display: grid; place-items: center;
  transition: color .18s, border-color .18s, background .18s;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--muted); background: color-mix(in srgb, var(--ink) 9%, transparent); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
[data-theme="red"] .theme-toggle .i-sun { display: block; }
[data-theme="red"] .theme-toggle .i-moon { display: none; }

/* ============================================================
   Video reviews (9:16) + section sublabels
   ============================================================ */
.rev-sub { display: flex; align-items: center; gap: 14px; margin: 4px 0 22px; }
.rev-sub h3 { font-family: var(--font-head); font-weight: 700; font-size: 22px; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap; }
.rev-sub .line { flex: 1; height: 1px; background: var(--border); }
.rev-sub:not(:first-child) { margin-top: 52px; }

.vrev-rail { display: flex; gap: 18px; overflow-x: auto; overflow-y: hidden; padding: 22px 24px 26px; margin-top: -16px; margin-bottom: 36px; width: 100%; scroll-snap-type: x mandatory; }
.vrev-rail::-webkit-scrollbar { height: 8px; }
.vrev-rail::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 100px; }
.vrev-rail::-webkit-scrollbar-track { background: var(--border); border-radius: 100px; }
.vrev {
  scroll-snap-align: start; flex: 0 0 250px; position: relative; aspect-ratio: 9/16;
  border-radius: 16px; overflow: hidden; background: var(--surface-2);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}
.vrev:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vrev image-slot { width: 100%; height: 100%; }
.vrev::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.92) 8%, rgba(0,0,0,.18) 46%, rgba(0,0,0,.32) 100%); pointer-events: none; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 72px; height: 72px; border-radius: 12px;
  background: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 32px -6px rgba(0,0,0,.55);
  z-index: 3;
}
  width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.94);
  display: grid; place-items: center; z-index: 2; transition: transform .18s, background .18s;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,.5);
}
.vrev:hover .play-btn, .vid:hover .play-btn { transform: translate(-50%,-50%) scale(1.08); background: #fff; }
.play-btn svg { width: 32px; height: 32px; margin-left: 4px; color: var(--accent); }
.vrev .cap { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 2; color: #fff; }
.vrev .cap .stars { color: #ffce3a; font-size: 28px; letter-spacing: 3px; margin-bottom: 4px; }
.vrev .cap b { font-family: var(--font-head); font-weight: 700; font-size: 16px; display: block; line-height: 1.2; }
.vrev .cap span { font-size: 12.5px; color: rgba(255,255,255,.82); }

/* ============================================================
   Rutube video section (16:9)
   ============================================================ */
.video-sec { background: var(--bg-alt); }
.vid-rail { display: flex; gap: 22px; overflow-x: auto; overflow-y: hidden; padding: 22px 24px 28px; margin-top: -16px; width: 100%; }
.vid-rail::-webkit-scrollbar { height: 8px; }
.vid-rail::-webkit-scrollbar-thumb { background: var(--muted); border-radius: 100px; }
.vid-rail::-webkit-scrollbar-track { background: var(--border); border-radius: 100px; }
.vid {
  flex: 0 0 380px;
  position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s, border-color .35s;
}
.vid:hover { transform: translateY(-8px); border-color: var(--accent); box-shadow: 0 22px 44px -20px color-mix(in srgb, var(--accent) 55%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 38%, transparent); }
.vid image-slot { width: 100%; height: 100%; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.vid:hover image-slot { transform: scale(1.07); }
.vid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.72), rgba(0,0,0,.05) 55%); pointer-events: none; }
.vid .rt-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; align-items: center; gap: 6px;
  background: rgba(0,0,0,.55); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .06em;
  padding: 6px 10px; border-radius: 7px; text-transform: uppercase; backdrop-filter: blur(4px);
}
.vid .rt-badge i { width: 7px; height: 7px; border-radius: 50%; background: #00a3ff; }
.vid .cap { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 2; color: #fff; font-family: var(--font-head); font-weight: 700; font-size: 17px; line-height: 1.2; }

/* Rutube embed used as the card poster (loads cover + title, no CORS) */
.vid.has-embed::after { display: none; }
.vid-poster { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
img.vid-poster { object-fit: cover; }
.vid-open { position: absolute; inset: 0; z-index: 3; cursor: pointer; }

.vid-more { padding: 36px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.btn-more-rutube {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--font-head); font-weight: 700; font-size: 16px; letter-spacing: .02em; text-transform: uppercase; text-decoration: none;
  color: #fff; background: var(--accent);
  padding: 20px 36px; border-radius: 14px;
  position: relative; overflow: hidden;
  transition: background .25s, transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s;
  box-shadow: 0 16px 40px -16px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-more-rutube::before {
  content: ""; position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.42), transparent);
  transform: skewX(-20deg);
}
.btn-more-rutube:hover { background: var(--accent-2); transform: translateY(-3px); box-shadow: 0 22px 48px -18px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn-more-rutube:hover::before { animation: btnSheen .8s ease; }
.btn-more-rutube svg:last-child { transition: transform .25s ease; }
.btn-more-rutube:hover svg:last-child { transform: translateX(5px); }

/* ============================================================
   Lightbox (video player)
   ============================================================ */
.lightbox { position: fixed; inset: 0; z-index: 130; display: none; align-items: center; justify-content: center; padding: 28px; background: rgba(6,6,8,.9); backdrop-filter: blur(6px); }
.lightbox.open { display: flex; }
.lb-frame { position: relative; max-width: 100%; max-height: 100%; }
.lb-frame.r169 { width: min(960px, 100%); aspect-ratio: 16/9; }
.lb-frame.r916 { height: min(82vh, 760px); aspect-ratio: 9/16; }
.lb-frame iframe, .lb-frame video { width: 100%; height: 100%; border: 0; border-radius: 14px; background: #000; display: block; }
.lb-slot { position: absolute; inset: 0; }
.lb-empty { width: 100%; height: 100%; border-radius: 14px; background: #141414; border: 1px dashed rgba(255,255,255,.22); display: grid; place-items: center; text-align: center; padding: 28px; color: #fff; }
.lb-empty strong { font-family: var(--font-head); font-weight: 700; font-size: 19px; display: block; margin-bottom: 8px; }
.lb-empty span { font-size: 14px; color: rgba(255,255,255,.7); max-width: 28ch; line-height: 1.5; }
.lb-close { position: absolute; top: -44px; right: 0; width: 38px; height: 38px; border: none; background: rgba(255,255,255,.12); border-radius: 50%; color: #fff; font-size: 22px; display: grid; place-items: center; transition: background .15s; }
.lb-close:hover { background: rgba(255,255,255,.24); }

/* ============================================================
   Car gallery (фото авто)
   ============================================================ */
.car-img.car-open { cursor: zoom-in; }
.car-gallery-hint {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 700; color: #fff;
  background: rgba(20,18,14,.62); backdrop-filter: blur(4px);
  padding: 5px 9px 5px 8px; border-radius: 100px;
  opacity: 0; transform: translateY(-4px); transition: opacity .25s, transform .25s;
}
.car:hover .car-gallery-hint { opacity: 1; transform: none; }

.cgal { position: fixed; inset: 0; z-index: 120; display: none; align-items: center; justify-content: center; padding: 28px; }
.cgal.open { display: flex; }
.cgal-back { position: absolute; inset: 0; background: rgba(6,6,8,.9); backdrop-filter: blur(6px); }
.cgal-card {
  position: relative; z-index: 1; display: grid; grid-template-columns: 1.55fr .9fr; grid-template-rows: minmax(0, 1fr);
  width: min(1080px, 100%); height: min(660px, calc(100vh - 56px)); overflow: hidden;
  background: var(--surface); border-radius: 20px; box-shadow: var(--shadow);
}
.cgal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5; width: 40px; height: 40px;
  border: none; border-radius: 50%; background: rgba(20,18,14,.5); color: #fff;
  font-size: 24px; line-height: 1; display: grid; place-items: center; cursor: pointer; transition: background .15s;
}
.cgal-close:hover { background: rgba(20,18,14,.78); }

.cgal-stage { position: relative; background: #0d0c0b; overflow: hidden; min-height: 0; }
.cgal-track { display: flex; height: 100%; transition: transform .4s cubic-bezier(.2,.7,.2,1); }
.cgal-slide { flex: 0 0 100%; min-width: 100%; height: 100%; }
.cgal-slide image-slot, .cgal-slide img {
  width: 100%; height: 100%; display: block; object-fit: contain; aspect-ratio: auto;
}
.cgal-slide image-slot { object-fit: cover; }
.cgal-slide image-slot { background: #141312; }
.cgal-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.92); color: var(--ink); cursor: pointer;
  display: grid; place-items: center; box-shadow: 0 8px 22px -8px rgba(0,0,0,.5); transition: transform .15s, background .15s;
}
.cgal-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.cgal-nav svg { width: 22px; height: 22px; }
.cgal-nav.prev { left: 16px; }
.cgal-nav.next { right: 16px; }
.cgal-counter {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 3;
  font-size: 12px; font-weight: 700; color: #fff; background: rgba(20,18,14,.6);
  padding: 5px 12px; border-radius: 100px; letter-spacing: .03em;
}

.cgal-side { display: flex; flex-direction: column; padding: 40px 34px 30px; overflow-y: auto; min-height: 0; }
.cgal-type {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-2);
  padding: 5px 11px; border-radius: 100px; margin-bottom: 14px;
}
.cgal-side h3 { font-family: var(--font-head); font-weight: 800; font-size: 28px; line-height: 1.1; }
.cgal-spec { margin: 20px 0; border-top: 1px solid var(--border); }
.cgal-spec div { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.cgal-spec .k { color: var(--muted); }
.cgal-spec .v { font-weight: 700; }
.cgal-price { font-family: var(--font-head); font-weight: 800; font-size: 26px; }
.cgal-price small { display: block; font-family: var(--font-body); font-weight: 500; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
/* --- Комплектация (аккордеон) --- */
.cgal-features-row { display: flex; flex-direction: column; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); margin-top: -1px; }
.cgal-features-toggle {
  width: 100%; display: flex; align-items: center; gap: 8px;
  padding: 11px 0; background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-size: 14.5px; text-align: left;
}
.cgal-features-toggle .k { color: var(--muted); font-size: 14.5px; flex: 1; }
.cgal-feat-count {
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent); border-radius: 20px; padding: 2px 7px;
}
.cgal-features-arrow { color: var(--muted); flex: none; transition: transform .22s ease; }
.cgal-features-row.open .cgal-features-arrow { transform: rotate(180deg); }
.cgal-features-list {
  list-style: none; margin: 0; padding: 0 0 14px 0;
  display: none; flex-direction: column; gap: 0;
}
.cgal-features-row.open .cgal-features-list { display: flex; }
.cgal-features-list li {
  display: flex; align-items: baseline; gap: 10px;
  font-size: 13.5px; color: var(--ink-soft); padding: 5px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  line-height: 1.4; text-align: left;
}
.cgal-features-list li:last-child { border-bottom: none; }
.feat-dot {
  flex: none; font-size: 18px; line-height: 1; color: var(--accent);
  margin-top: -1px;
}

.cgal-dots { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.cgal-dot { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; background: var(--border); cursor: pointer; transition: background .15s, transform .15s; }
.cgal-dot:hover { transform: scale(1.2); }
.cgal-dot.on { background: var(--accent); }
.cgal-cta { margin-top: auto; }

@media (max-width: 760px) {
  .cgal { padding: 0; height: 100dvh; }
  .cgal-card { grid-template-columns: 1fr; width: 100%; height: 100dvh; max-height: 100dvh; border-radius: 0; grid-template-rows: 38dvh minmax(0,1fr); }
  .cgal-stage { min-height: 0; }
  .cgal-side { padding: 22px 22px 0; display: grid; grid-template-rows: minmax(0,1fr) auto; overflow: hidden; min-height: 0; }
  .cgal-info { overflow-y: auto; padding-bottom: 12px; min-height: 0; }
  .cgal-dots { display: none; }
  .cgal-cta {
    margin-top: 0; padding: 16px 22px;
    border-radius: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    width: calc(100% + 44px); margin-left: -22px;
  }
  .cgal-side h3 { font-size: 23px; }
  .cgal-spec { margin: 14px 0; }
  .cgal-dots { margin: 16px 0; }
  .cgal-nav { width: 40px; height: 40px; }
}

/* ============================================================
   Contacts + map
   ============================================================ */
.contacts { background: var(--bg-alt); }
.contacts-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 28px; align-items: stretch; }
.contacts-info { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 40px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.contacts-info h3 { font-family: var(--font-head); font-weight: 800; font-size: 26px; text-transform: uppercase; margin-bottom: 26px; }
.ci-row { display: flex; gap: 16px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--border); }
.ci-row:first-of-type { padding-top: 0; }
.ci-row .ic { flex: none; width: 42px; height: 42px; border-radius: 11px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); display: grid; place-items: center; }
.ci-row .ic svg { width: 21px; height: 21px; }
.ci-row .k { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; }
.ci-row .v { font-size: 17px; font-weight: 600; color: var(--ink); }
.ci-row .v a { display: block; line-height: 1.5; }
.ci-row .v small { display: block; font-weight: 500; font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.ci-row .v a.ci-link { display: inline; line-height: 1.5; font-weight: 700; color: var(--ink); text-decoration: none; transition: color .15s; }
.ci-row .v a.ci-link:hover { color: var(--accent); }
.ci-dot { color: var(--muted); font-weight: 400; }
.sched-sep { color: var(--muted); font-weight: 400; }
.sched-off { font-weight: 700; color: var(--accent); }
.contacts-info .ci-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.ci-social-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); width: 100%; }
.contacts-info .ci-social a { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: #fff; transition: .18s; }
.contacts-info .ci-social a:hover { background: var(--accent); transform: translateY(-2px); }
.contacts-info .ci-social svg { width: 20px; height: 20px; }
.contacts-map { border-radius: 18px; overflow: hidden; min-height: 420px; border: 1px solid var(--border); box-shadow: var(--shadow-sm); position: relative; }
.contacts-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.15); }

@media (max-width: 900px) {
  .contacts-grid { grid-template-columns: 1fr; }
  .contacts-map { min-height: 320px; }
}

/* ============================================================
   A1 — Hero headline: words appear one by one
   ============================================================ */
.hero h1 .word {
  display: inline-block;
  opacity: 0; transform: translateY(28px); filter: blur(8px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1), filter .7s ease;
  transition-delay: calc(var(--wi, 0) * .06s);
  will-change: transform, opacity;
}
.hero h1.in .word { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .hero h1 .word { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ============================================================
   D3 — Odometer for calculator total
   ============================================================ */
.calc-result .rtotal { line-height: 1.25; display: flex; align-items: center; justify-content: flex-start; gap: .12em; flex-wrap: wrap; }
.odometer { display: inline-flex; align-items: center; height: 1.3em; overflow: hidden; font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1; }
.odometer .ocol { display: inline-block; width: .92ch; height: 1.3em; overflow: hidden; }
.odometer .ostrip { display: flex; flex-direction: column; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.odometer .ostrip span { height: 1.3em; line-height: 1.3em; display: flex; align-items: center; justify-content: center; }
.odometer .osep { display: inline-block; width: .32ch; }
@media (prefers-reduced-motion: reduce) { .odometer .ostrip { transition: none; } }
@media (prefers-reduced-motion: reduce) { .swipe-hint svg { animation: none; } }
