/* ===== Superauto ===== */
:root {
  --brand: #01487e;
  --brand-ink: #01365c;
  --brand-mid: #327aac;
  --brand-soft: #e9f1f8;
  --accent: #ef6b21;
  --accent-ink: #d4571a;
  --accent-soft: #fdf0e7;
  --ink: #0e1216;
  --ink-2: #161c24;
  --ink-3: #1e2733;
  --paper: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eef1f6;
  --line: #e4e8ef;
  --line-dark: #253040;
  --text: #101620;
  --muted: #5a6675;
  --muted-light: #9aa6b6;
  --ok: #12a150;
  --star: #d9a406;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(16,22,32,.06), 0 1px 3px rgba(16,22,32,.05);
  --shadow-md: 0 6px 20px rgba(16,22,32,.08), 0 2px 6px rgba(16,22,32,.05);
  --shadow-lg: 0 18px 50px rgba(16,22,32,.16);
  --container: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 {
  font-family: "Sora", "Inter", system-ui, sans-serif;
  line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); font-weight: 700;
}
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--brand); color: #fff; padding: 10px 18px; z-index: 200; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
.visually-hidden { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; border:0; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: "Inter", sans-serif; font-weight: 600; font-size: .96rem; line-height: 1;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex: none; width: 18px; height: 18px; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(239,107,33,.28); }
.btn-primary:hover { background: var(--accent-ink); box-shadow: 0 10px 22px rgba(239,107,33,.34); transform: translateY(-2px); }
.btn-ghost { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-ghost:hover { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.6); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--brand); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); background: var(--brand-soft); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); transform: translateY(-2px); }
.btn-sm { padding: 9px 15px; font-size: .86rem; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgba(16,22,32,.06); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 74px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-logo { height: 42px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; color: var(--ink); }
.brand-tag { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 9px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; color: var(--text); transition: background .18s var(--ease), color .18s var(--ease); }
.main-nav a:hover { background: var(--surface-2); }
.main-nav a.active { color: var(--brand); background: var(--brand-soft); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.phone-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: .95rem; color: var(--ink); transition: color .18s var(--ease); }
.phone-link:hover { color: var(--brand); }
.phone-link svg { color: var(--brand); }
.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); cursor: pointer; padding: 0 11px; }
.nav-toggle span { height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; gap: 4px; padding: 14px 24px 22px; border-top: 1px solid var(--line); background: var(--paper); }
.mobile-nav a { padding: 13px 12px; border-radius: 10px; font-weight: 500; font-size: 1.05rem; }
.mobile-nav a:hover { background: var(--surface-2); }
.mobile-nav .btn { margin-top: 8px; }

/* ===== Hero ===== */
.hero { position: relative; background: radial-gradient(120% 130% at 15% 10%, #1b2432 0%, var(--ink) 55%); color: #fff; overflow: hidden; }
.hero::after { content:""; position:absolute; right:-10%; top:-30%; width:520px; height:520px; border-radius:50%; background: radial-gradient(circle, rgba(1,72,126,.28), transparent 62%); pointer-events:none; }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: clamp(56px, 7vw, 92px) 0; }
.hero-eyebrow { display: inline-flex; align-items:center; gap:8px; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: #a9cfe8; margin-bottom: 20px; padding: 6px 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; background: rgba(255,255,255,.05); }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.7rem); font-weight: 800; margin-bottom: 20px; overflow-wrap: break-word; }
.hero h1 .accent { color: #f5934f; }
.hero-sub { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(255,255,255,.85); max-width: 520px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: .92rem; color: rgba(255,255,255,.85); }
.hero-trust li { display: inline-flex; align-items: center; gap: 9px; }
.hero-trust svg { width: 18px; height: 18px; color: #5ba3d0; flex: none; }

/* featured car card in hero */
.feat-card { background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); color: var(--text); transform: rotate(-.6deg); transition: transform .4s var(--ease); }
.feat-card:hover { transform: rotate(0deg) translateY(-4px); }
.feat-media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--surface-2); }
.feat-media img { width: 100%; height: 100%; object-fit: cover; }
.feat-flag { position: absolute; top: 14px; left: 14px; font-size: .74rem; font-weight: 700; color: #fff; background: var(--brand); padding: 6px 12px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.feat-body { padding: 20px 22px 22px; }
.feat-eyebrow { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--muted); }
.feat-body h3 { margin: 4px 0 12px; font-size: 1.35rem; }
.feat-specs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.feat-specs span { font-size: .82rem; color: var(--muted); background: var(--surface); border: 1px solid var(--line); padding: 5px 11px; border-radius: 999px; }
.feat-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.feat-price { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.6rem; color: var(--ink); }

/* ===== Sections ===== */
.section { padding: clamp(60px, 8vw, 100px) 0; scroll-margin-top: 82px; }
.section-alt { background: var(--surface); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-lead { color: var(--muted); font-size: 1.08rem; margin: 0; }
.eyebrow-tag { display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--brand); background: var(--brand-soft); padding: 6px 13px; border-radius: 999px; margin-bottom: 16px; }
.section-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 32px; }
.section-head-row .section-head { margin-bottom: 0; }

/* ===== Filters ===== */
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 170px; min-width: 150px; }
.field label { font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.field select {
  appearance: none; font-family: inherit; font-size: .95rem; color: var(--text);
  padding: 11px 38px 11px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a6675' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  cursor: pointer; transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.field select:hover { border-color: #c9d2df; }
.field select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); outline: none; }
.filter-reset { flex: 0 0 auto; align-self: flex-end; }
.results-count { color: var(--muted); font-size: .9rem; margin: 0 0 20px; }

/* ===== Car grid ===== */
.car-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.car-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease); display: flex; flex-direction: column; }
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: #d6deea; }
.car-media { position: relative; aspect-ratio: 3/2; overflow: hidden; background: var(--surface-2); display:block; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.car-card:hover .car-media img { transform: scale(1.05); }
.car-flag { position: absolute; top: 12px; left: 12px; font-size: .72rem; font-weight: 700; letter-spacing: .02em; color: #fff; background: var(--brand); padding: 5px 11px; border-radius: 999px; box-shadow: var(--shadow-sm); }
.car-count { position: absolute; bottom: 12px; right: 12px; display:flex; align-items:center; gap:5px; font-size: .74rem; font-weight: 600; color: #fff; background: rgba(14,18,22,.72); padding: 4px 9px; border-radius: 999px; }
.car-count svg { width: 13px; height: 13px; }
.car-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.car-head h3 { margin: 0 0 3px; font-size: 1.12rem; }
.car-head h3 a { color: inherit; }
.car-head h3 a:hover { color: var(--brand); }
.car-sub { margin: 0; color: var(--muted); font-size: .9rem; }
.car-specs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; font-size: .88rem; color: var(--muted); }
.car-specs li { display: inline-flex; align-items: center; gap: 7px; }
.car-specs svg { width: 16px; height: 16px; color: var(--brand); flex: none; }
.car-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 15px; border-top: 1px solid var(--line); }
.car-price { font-family: "Sora", sans-serif; font-weight: 800; font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em; }
.no-results { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); margin-top: 8px; }
.no-results p { margin-bottom: 16px; }
.grid-note { margin: 28px 0 0; color: var(--muted); font-size: .95rem; text-align: center; }
.grid-note a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ===== USP ===== */
.usp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.usp { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .28s var(--ease), box-shadow .28s var(--ease); }
.usp:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.usp-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; }
.usp-icon svg { width: 27px; height: 27px; }
.usp h3 { margin-bottom: 8px; }
.usp p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ===== Over ons ===== */
.over-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.over-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.over-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.over-copy h2 { margin-bottom: 16px; }
.over-copy p { color: var(--muted); }
.over-facts { display: flex; flex-wrap: wrap; gap: 28px; margin: 26px 0; }
.fact { display: flex; flex-direction: column; gap: 4px; }
.fact-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--brand); }
.fact-value { font-weight: 500; color: var(--ink); }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.contact-list li { display: flex; gap: 15px; align-items: flex-start; }
.contact-icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.contact-icon svg { width: 22px; height: 22px; }
.contact-label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.contact-list a { font-weight: 600; color: var(--ink); transition: color .18s var(--ease); }
.contact-list a:hover { color: var(--brand); }
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-sm); background: var(--surface-2); }
.map-visual { position: relative; height: 240px; overflow: hidden; }
.map-streets { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-marker { position: absolute; left: 38%; top: 46%; transform: translate(-50%, -100%); color: var(--brand); z-index: 2; }
.map-marker svg { width: 40px; height: 40px; filter: drop-shadow(0 5px 6px rgba(14,18,22,.4)); }
.map-marker::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); transform: translateX(-50%); box-shadow: 0 0 0 0 rgba(1,72,126,.45); animation: mapPulse 2.2s ease-out infinite; }
@keyframes mapPulse { 0% { box-shadow: 0 0 0 0 rgba(1,72,126,.45); } 70% { box-shadow: 0 0 0 18px rgba(1,72,126,0); } 100% { box-shadow: 0 0 0 0 rgba(1,72,126,0); } }
.map-chip { position: absolute; left: 14px; bottom: 14px; z-index: 3; display: inline-flex; align-items: center; gap: 7px; background: #fff; color: var(--ink); font-size: .82rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; box-shadow: var(--shadow-md); }
.map-chip svg { width: 15px; height: 15px; color: var(--brand); flex: none; }
.map-link { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 16px; font-weight: 600; font-size: .9rem; color: var(--brand); background: var(--paper); border-top: 1px solid var(--line); transition: background .18s var(--ease); }
.map-link:hover { background: var(--brand-soft); }
.contact-form-wrap { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-md); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field label { font-size: .84rem; font-weight: 600; color: var(--ink); }
.form-field input, .form-field textarea { font-family: inherit; font-size: .98rem; color: var(--text); padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 11px; background: var(--surface); transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease); resize: vertical; }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted-light); }
.form-field input:focus, .form-field textarea:focus { border-color: var(--brand); background: var(--paper); box-shadow: 0 0 0 3px var(--brand-soft); outline: none; }
.form-field input:invalid:not(:placeholder-shown) { border-color: #e0574b; }
.form-hint { margin: 0; font-size: .84rem; color: var(--muted); text-align: center; }
.form-success { text-align: center; padding: 30px 10px; }
.success-icon { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 18px; background: rgba(18,161,80,.12); color: var(--ok); }
.success-icon svg { width: 34px; height: 34px; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--muted); margin: 0; }
.form-success a { color: var(--brand); font-weight: 600; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: #c4cddb; padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 48px; }
.brand-light .brand-name { color: #fff; }
.brand-light .brand-tag { color: var(--muted-light); }
.footer-about { margin: 18px 0 0; max-width: 320px; font-size: .95rem; color: var(--muted-light); }
.footer-col h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; font-family: "Inter", sans-serif; font-weight: 700; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; font-size: .95rem; }
.footer-col a { transition: color .18s var(--ease); }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding: 22px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .86rem; color: var(--muted-light); }
.footer-bottom p { margin: 0; }

/* ===== Detail page ===== */
.detail-main { padding-top: 24px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--muted); margin-bottom: 20px; flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--brand); }
.breadcrumb svg { width: 15px; height: 15px; color: var(--muted-light); }
.breadcrumb .current { color: var(--ink); font-weight: 500; }
.detail-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.detail-head h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 6px; }
.detail-head .detail-sub { color: var(--muted); margin: 0; }
.detail-price { font-family: "Sora", sans-serif; font-weight: 800; font-size: clamp(1.8rem, 3vw, 2.3rem); color: var(--brand); white-space: nowrap; }

/* gallery */
.gallery { display: grid; grid-template-columns: 1fr; gap: 12px; }
.gallery-main { position: relative; aspect-ratio: 16/10; border-radius: var(--radius-lg); overflow: hidden; background: var(--surface-2); box-shadow: var(--shadow-md); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: none; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md); transition: background .18s var(--ease), transform .18s var(--ease); }
.gallery-nav:hover { background: #fff; }
.gallery-nav:active { transform: translateY(-50%) scale(.94); }
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-counter { position: absolute; bottom: 14px; right: 14px; font-size: .8rem; font-weight: 600; color: #fff; background: rgba(14,18,22,.72); padding: 5px 11px; border-radius: 999px; }
.gallery-thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.gallery-thumb { aspect-ratio: 4/3; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--surface-2); cursor: pointer; padding: 0; transition: border-color .18s var(--ease), opacity .18s var(--ease); opacity: .75; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb:hover { opacity: 1; }
.gallery-thumb.active { border-color: var(--brand); opacity: 1; }

/* detail layout */
.detail-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; margin-top: 40px; }
.detail-block { margin-bottom: 40px; }
.detail-block h2 { font-size: 1.4rem; margin-bottom: 18px; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.spec-row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 16px; background: var(--paper); font-size: .94rem; }
.spec-row .k { color: var(--muted); }
.spec-row .v { color: var(--ink); font-weight: 600; text-align: right; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 500; color: var(--ink); background: var(--surface); border: 1px solid var(--line); padding: 9px 14px; border-radius: 999px; }
.chip svg { width: 16px; height: 16px; color: var(--ok); flex: none; }
.detail-desc { color: var(--muted); font-size: 1.02rem; }
.detail-aside { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }
.aside-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-md); }
.aside-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 4px; }
.aside-price { font-family: "Sora", sans-serif; font-weight: 800; font-size: 2rem; color: var(--ink); }
.aside-sub { color: var(--muted); font-size: .9rem; margin-bottom: 20px; }
.aside-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.aside-meta { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; font-size: .9rem; color: var(--muted); }
.aside-meta div { display: flex; align-items: center; gap: 10px; }
.aside-meta svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.aside-note { background: var(--brand-soft); border-radius: var(--radius); padding: 16px 18px; font-size: .88rem; color: var(--brand-ink); }
.aside-note strong { color: var(--brand-ink); }

/* ===== Reveal (bulletproof) ===== */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js-reveal .reveal.in { opacity: 1; transform: none; }
.js-reveal .reveal.show-now { opacity: 1; transform: none; transition: none; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .usp-grid { grid-template-columns: repeat(2, 1fr); }
  .car-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 40px; }
  .detail-grid { grid-template-columns: 1.4fr 1fr; gap: 30px; }
  .gallery-thumbs { grid-template-columns: repeat(5, 1fr); }
}
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  .site-header.nav-open .mobile-nav { display: flex; }
  .phone-link { display: none; }
  .header-actions .btn-primary { display: none; }
  .hero-inner { grid-template-columns: 1fr; gap: 34px; }
  .feat-card { max-width: 460px; }
  .over-grid, .contact-grid { grid-template-columns: 1fr; }
  .over-media { order: -1; }
  .contact-form-wrap { order: -1; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-aside { position: static; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .container { padding: 0 18px; }
  .hero-inner { padding-top: 72px; padding-bottom: 76px; }
  .hero h1 { font-size: clamp(1.7rem, 8vw, 2.5rem); }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .car-grid { grid-template-columns: 1fr; }
  .usp-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .filters { flex-direction: column; align-items: stretch; gap: 12px; }
  .field { min-width: 0; flex: 0 0 auto; }
  .filter-reset { align-self: stretch; }
  .spec-table { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .gallery-nav { width: 40px; height: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; gap: 6px; }
  .detail-head { gap: 10px; }
}
@media (max-width: 380px) {
  .footer-inner { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
