/* AMG Auto — black, the logo's crimson, white and silver. Rounded strokes like the logo's lettering. */
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-display-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("../fonts/manrope-latin.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("../fonts/figtree-latin.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }

:root {
  --black: #000; --surface: #121214; --raised: #1c1c1f; --line: #2b2b30;
  --text: #f5f5f6; --silver: #b9bbbe; --dim: #85878c;
  --red: #e3002b; --red-hi: #ff2148; --wa: #25d366;
  /* Three roles: --display for large headings, --ui for small titles, prices and numbers, --body for text.
     The pairing is chosen in Appearance > Customize > AMG Auto (default: Barlow Condensed + Barlow, the road-sign family).
     --hk enlarges headings for narrow typefaces. */
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", sans-serif;
  --ui: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --hw: 600; --ht: .004em; --uw: 600; --hk: 1.14;
  /* The whole site uses these eight text sizes and no others. */
  --t-xs: .75rem; --t-sm: .875rem; --t-md: 1rem; --t-lg: 1.125rem; --t-xl: 1.375rem;
  --t-h2: calc(clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem) * var(--hk)); --t-h1: calc(clamp(1.875rem, 1.2rem + 2.6vw, 3rem) * var(--hk)); --t-hero: calc(clamp(2.3rem, 1.2rem + 5vw, 5rem) * var(--hk));
  --wrap: 1240px; --gap: clamp(16px, 2.4vw, 28px); --r-card: 6px; --r-field: 12px; /* corners: small for pictures and cards, medium for panels and fields, pills for buttons */ --top: 76px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); }
body { margin: 0; background: var(--black); color: var(--text); font: 400 var(--t-md)/1.6 var(--body); -webkit-font-smoothing: antialiased; font-variant-numeric: lining-nums; }
img, svg { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration-color: var(--dim); text-underline-offset: .2em; }
a:hover { color: #fff; text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: var(--r-card); }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.ic { flex: none; vertical-align: -0.18em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 200; padding: 10px 16px; background: #fff; color: #000; border-radius: var(--r-card); }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gap), var(--wrap)); margin-inline: auto; }

.h1, .h2, .hero__title, .buy__title { font-family: var(--display); font-weight: var(--hw); line-height: 1.1; letter-spacing: var(--ht); text-wrap: balance; }
.h3 { font-family: var(--ui); text-wrap: balance; }
.h1 { font-size: var(--t-h1); }
.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-lg); font-weight: var(--uw); line-height: 1.3; letter-spacing: -.01em; }
.lead { font-size: var(--t-lg); color: var(--silver); max-width: 62ch; }
.prose { max-width: 68ch; color: var(--silver); }
.prose > * + * { margin-top: 1em; }
.prose ul { list-style: disc; padding-left: 1.2em; } .prose ol { list-style: decimal; padding-left: 1.2em; }
.prose h3, .prose h4 { color: var(--text); font-family: var(--ui); font-weight: 500; margin-top: 1.6em; }
/* Numbers drawn like the logo's neon lettering */
.outline { font-family: var(--ui); font-weight: 800; color: transparent; -webkit-text-stroke: 1.5px var(--red); letter-spacing: 0; }

/* buttons: pill-shaped, like the logo's strokes */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55em; min-height: 48px; padding: 0 1.6em; border: 1.5px solid transparent; border-radius: 99px; font-weight: 600; font-size: var(--t-md); letter-spacing: .01em; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hi); color: #fff; }
.btn--line { border-color: #fff; color: #fff; background: transparent; }
.btn--line:hover { background: #fff; color: #000; }
.btn--wa { background: var(--raised); border-color: var(--line); color: #fff; } /* white on dark: the green stays in the mark only */
.btn--wa .ic, .dockbar__a--wa .ic { color: var(--wa); }
.btn--wa:hover { border-color: var(--wa); color: #fff; }
.btn--block { width: 100%; }
.btnrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* header */
.top { position: sticky; top: 0; z-index: 100; background: rgba(0, 0, 0, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.admin-bar .top { top: 32px; }
.top__in { display: flex; align-items: center; gap: 20px; height: var(--top); }
.logo img { height: 54px; width: auto; }
.nav { display: flex; gap: clamp(12px, 2vw, 30px); margin-left: auto; }
.nav__a { text-decoration: none; font-weight: 500; font-size: var(--t-md); letter-spacing: .01em; color: var(--silver); padding: 8px 0; border-bottom: 2px solid transparent; }
.nav__a:hover, .nav__a[aria-current] { color: #fff; border-bottom-color: var(--red); }
.top__tools { display: flex; align-items: center; gap: 14px; }
.langs { display: flex; border: 1px solid var(--line); border-radius: 99px; overflow: hidden; font-size: var(--t-sm); font-weight: 600; }
.langs a { display: grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 8px; text-decoration: none; color: var(--silver); }
.langs a[aria-current] { background: #fff; color: #000; }
.btn--call { min-height: 42px; padding: 0 1.1em; flex-direction: row-reverse; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; padding: 0; }
.burger .ic:last-child, .nav-open .burger .ic:first-child { display: none; }
.nav-open .burger .ic:last-child { display: inline; }

/* hero */
.hero { position: relative; isolation: isolate; padding-bottom: 8px; }
.hero__bg { position: absolute; inset: 0 0 90px 0; z-index: -2; background: var(--surface) center / cover no-repeat; }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.4) 45%, rgba(0,0,0,0) 100%), linear-gradient(0deg, #000 0%, rgba(0,0,0,0) 38%); pointer-events: none; }
.hero__in { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; min-height: clamp(380px, 62vh, 640px); padding-block: 72px 56px; }
.hero__copy { max-width: 720px; }
.hero__title { font-size: var(--t-hero); line-height: 1.04; }
.hero__text { margin-top: 20px; font-size: var(--t-lg); color: #e4e4e6; max-width: 46ch; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 24px; font-size: var(--t-md); color: #e4e4e6; }
.rating__stars { fill: #fff; flex: none; } .rating__off { fill: rgba(255, 255, 255, .22); }
.rating strong { font-family: var(--ui); font-weight: 700; font-size: var(--t-lg); color: #fff; }
.rating__n { margin-left: 4px; padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, .3); color: #fff; }
a.rating__n { padding-block: 10px; text-decoration-color: rgba(255, 255, 255, .5); }
.hero__count { text-align: right; color: var(--silver); font-size: var(--t-md); line-height: 1.2; white-space: nowrap; }
.hero__count .outline { display: block; font-size: clamp(3.4rem, 2rem + 7vw, 8rem); line-height: .9; -webkit-text-stroke-width: 2px; }
.hero__line { position: absolute; left: 0; right: 0; bottom: 100px; z-index: -1; width: 100%; height: 60px; pointer-events: none; }
.hero__line path { fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; filter: drop-shadow(0 0 6px rgba(227, 0, 43, .8)); animation: draw 1.6s .25s cubic-bezier(.6, 0, .2, 1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.search { position: relative; display: grid; grid-template-columns: repeat(3, 1fr) auto; gap: 14px; align-items: end; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-field); }

/* form fields */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: var(--t-sm); font-weight: 600; color: var(--silver); }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 14px; background: var(--black); border: 1px solid var(--line); border-radius: var(--r-field); color: var(--text); }
.field select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23b9bbbe' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.field select:disabled { opacity: .45; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid #fff; outline-offset: 1px; border-color: transparent; }
.field input[type=file] { padding: 10px; }
.field .is-bad, .field input.is-bad { border-color: var(--red-hi); }
.form__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.field--wide { grid-column: 1 / -1; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__consent { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; color: var(--silver); font-size: var(--t-md); }
.form__consent input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--red); flex: none; }
.form__msg { margin-top: 16px; padding: 14px 18px; border-radius: var(--r-field); }
.form__msg--ok { background: #0e2a1a; border: 1px solid #1f6b3f; }
.form__msg--bad { background: #2c0a11; border: 1px solid var(--red); }
.panel { margin-top: 48px; padding: clamp(20px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-field); }
.panel .h2 { margin-bottom: 22px; }
.panel .h2 + .lead { margin-top: -8px; }

/* bands */
.band { padding-block: clamp(48px, 7vw, 96px); }
.band--alt { background: var(--surface); border-block: 1px solid var(--line); }
.band__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.band .h2 + .quotes { margin-top: 28px; }

.trust { padding-block: clamp(40px, 5vw, 64px); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.trust__item { padding-top: 18px; border-top: 1px solid var(--line); color: var(--silver); font-size: var(--t-md); }
.trust__item .ic { color: #fff; margin-bottom: 12px; }
.trust__h { font-family: var(--ui); font-weight: var(--uw); font-size: var(--t-lg); letter-spacing: -.01em; line-height: 1.3; color: var(--text); margin-bottom: 8px; }

/* car cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; position: relative; }
.band--alt .card { background: var(--black); }
.card:hover { border-color: #55565c; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--raised); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.card--sold .card__media img { filter: grayscale(1) brightness(.6); }
.card__tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.tag { display: inline-block; padding: 4px 11px; border-radius: 99px; font-size: var(--t-sm); font-weight: 700; line-height: 1.3; }
.tag--new { background: var(--red); color: #fff; }
.tag--status { background: #fff; color: #000; }
.card__count { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 99px; background: rgba(0, 0, 0, .7); font-size: var(--t-sm); }
.card__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 16px; }
.card__title { font-family: var(--ui); font-weight: 700; font-size: var(--t-lg); line-height: 1.25; letter-spacing: -.015em; }
.card__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card__title a { text-decoration: none; }
.card__title .mk { width: 26px; height: 26px; color: var(--silver); }
.card__title a::after { content: ""; position: absolute; inset: 0; } /* the whole card is the link */
.card__version { margin-top: 4px; color: var(--dim); font-size: var(--t-md); line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.card__facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 16px; }
.card__facts li, .buy__facts li { padding: 3px 10px; border: 1px solid var(--line); border-radius: 99px; font-size: var(--t-sm); color: var(--silver); white-space: nowrap; }
.card__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.card__price strong { font-family: var(--ui); font-weight: 700; font-size: var(--t-xl); letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; }
.card__price s { color: var(--dim); font-size: var(--t-sm); margin-right: 4px; }
.card__warranty { display: inline-flex; align-items: center; gap: 5px; color: var(--silver); font-size: var(--t-sm); white-space: nowrap; }

/* browse */
.bt { width: min(100%, 210px); height: auto; fill: none; stroke: #d9dadd; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; transition: stroke .2s, filter .2s; }
.bt * { vector-effect: non-scaling-stroke; }
.bt { stroke-width: 1.6; }
.bt__thin { stroke-width: 1; opacity: .55; }
.bt__ground { stroke-width: 1; opacity: .22; stroke-dasharray: 2 5; }
.bti { width: 84px; height: 84px; margin-block: -14px -10px; fill: #d9dadd; transition: fill .2s; }
/* brand wall: large marks on a hairline grid */
.makes__h { margin: 0 0 28px; }
.makes { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); background: var(--black); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.makes li { box-shadow: 1px 0 0 var(--line), 0 1px 0 var(--line); } /* hairlines to the right and below; the frame hides the outer ones */
.makes a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; height: 100%; min-height: 168px; padding: 30px 10px 22px; text-decoration: none; color: var(--silver); text-align: center; transition: color .2s, background-color .2s; }
.makes .mk { width: 58px; height: 58px; opacity: .82; transition: opacity .2s, transform .25s; }
.makes__name { font-size: var(--t-xs); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }
.makes__n { position: absolute; top: 12px; right: 12px; min-width: 26px; padding: 2px 7px; border: 1px solid var(--line); border-radius: 99px; font-size: var(--t-xs); font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; transition: color .2s, border-color .2s, background-color .2s; }
.makes a::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 0; height: 2px; background: var(--red); transition: width .25s, left .25s; }
.makes a:hover, .makes a:focus-visible { color: #fff; background: #0b0b0c; }
.makes a:hover .mk, .makes a:focus-visible .mk { opacity: 1; transform: translateY(-3px); }
.makes a:hover::after, .makes a:focus-visible::after { left: 0; width: 100%; }
.makes a:hover .makes__n, .makes a:focus-visible .makes__n { color: #fff; border-color: var(--red); background: var(--red); }
.mk { display: inline-block; flex: none; fill: currentColor; }
.mk--img { filter: invert(1); object-fit: contain; } /* the files are black drawings */
.card__title .mk--img { opacity: .72; }
.mk--text { display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--ui); font-weight: 700; font-size: .8em; }

.why { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.why--text { grid-template-columns: 1fr; }
.why--text .why__copy { display: grid; grid-template-columns: .8fr 1.2fr; gap: 24px clamp(28px, 5vw, 72px); align-items: start; }
.why--text .why__copy > * { margin-top: 0; grid-column: 2; justify-self: start; }
.why--text .why__copy > .h2 { grid-column: 1; grid-row: 1 / span 2; }
.why__copy > * + * { margin-top: 22px; }
.why__pic { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-card); background: var(--raised); }
/* About: text beside the photo; the photo is wide, so it keeps a 3:2 frame and sits level with the title */
.about { align-items: start; }
.about .why__pic { height: auto; aspect-ratio: 3 / 2; }
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); margin-bottom: 28px; }
.quote { padding: 24px; background: var(--black); border-left: 2px solid var(--silver); }
.quote figcaption { margin-top: 14px; color: var(--silver); font-weight: 600; }

.visit { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.visit__copy > * + * { margin-top: 22px; }
.facts { display: grid; gap: 18px; }
.facts dt { display: flex; align-items: center; gap: 8px; color: var(--silver); font-size: var(--t-sm); font-weight: 600; }
.facts dd { margin-top: 4px; font-size: var(--t-lg); }
.facts__tel, .bigtel__a { text-decoration: none; font-family: var(--ui); font-weight: 600; }
.bigtel__a { font-size: var(--t-h1); color: #fff; }
.map { position: relative; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map__cover { position: absolute; inset: 0; }
/* the still map is a light drawing: turned dark to sit in the page */
.map__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: invert(1) hue-rotate(180deg) saturate(.55) brightness(.82) contrast(.92); }
.map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); color: #fff; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .9)); }
.map__pin .ic { fill: var(--red); stroke: #fff; }
.map__bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 56px 18px 16px; background: linear-gradient(0deg, rgba(0, 0, 0, .94) 45%, rgba(0, 0, 0, 0)); }
.map__addr { font-weight: 600; }
.map__bar .btn { min-height: 44px; padding: 0 1.2em; font-size: var(--t-sm); background: rgba(0, 0, 0, .5); }
.map__bar .btn:hover { background: #fff; }
.map__note { flex-basis: 100%; font-size: var(--t-xs); color: var(--silver); }
.map__credit { position: absolute; right: 8px; top: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(0, 0, 0, .65); font-size: var(--t-xs); color: var(--silver); text-decoration: none; }

/* pages */
.pg { padding-block: clamp(36px, 6vw, 80px); }
.pg__head { margin-bottom: 40px; } .pg__head .lead { margin-top: 16px; }
.pg--text .h1 { margin-bottom: 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.steps li { padding-top: 16px; border-top: 1px solid var(--line); color: var(--silver); }
.steps__n { display: block; font-size: var(--t-h1); line-height: 1; margin-bottom: 14px; }
.steps .h3 { color: var(--text); margin-bottom: 8px; }
.blocks { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); margin-bottom: 40px; }
.blocks__item { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--silver); }
.blocks__item .ic { color: var(--silver); margin-bottom: 14px; } .blocks__item .h3 { color: var(--text); margin-bottom: 8px; }
.legalnote, .vdp__small { margin-top: 28px; color: var(--dim); font-size: var(--t-sm); max-width: 80ch; }
.empty { padding: 36px; border: 1px dashed var(--line); border-radius: var(--r-card); color: var(--silver); }
.empty p + p { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 12px; }

/* stock */
.stock { padding-block: clamp(28px, 4vw, 56px) 80px; }
.stock__head { margin-bottom: 28px; }
.stock__cols { display: grid; grid-template-columns: 280px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.filters { position: sticky; top: calc(var(--top) + 20px); display: grid; gap: 14px; padding: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-field); max-height: calc(100vh - var(--top) - 40px); overflow: auto; }
.admin-bar .filters { top: calc(var(--top) + 52px); }
.filters__head { display: none; }
.filters__go { margin-top: 6px; }
.filters__reset { display: grid; place-items: center; min-height: 44px; text-align: center; font-size: var(--t-md); color: var(--silver); }
.js .filters__go { display: none; }
.results__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 22px; }
.results__count { margin-right: auto; color: var(--silver); }
.results__count strong { font-family: var(--ui); font-size: var(--t-xl); color: #fff; margin-right: 4px; }
.results__sort { display: flex; align-items: center; gap: 10px; }
.results__sort label { color: var(--silver); font-size: var(--t-md); white-space: nowrap; }
.results__sort select { min-height: 44px; padding: 6px 38px 6px 14px; background-color: var(--black); border: 1px solid var(--line); border-radius: 99px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' fill='none' stroke='%23b9bbbe' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m1 1 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.results__filter { display: none; min-height: 44px; }
.results.is-loading { opacity: .45; transition: opacity .15s; }
.cards--stock { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.pager { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pager .page-numbers { min-width: 44px; height: 44px; display: inline-grid; place-items: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; }
.pager .current { background: #fff; color: #000; border-color: #fff; font-weight: 700; }
.pager a:hover { border-color: #fff; }

/* car page */
.vdp { padding-block: 20px 80px; }
.vdp__back { margin-bottom: 5px; font-size: var(--t-md); } .vdp__back a { display: inline-block; padding-block: 11px; text-decoration: none; color: var(--silver); }
.vdp__cols { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(20px, 3vw, 44px); align-items: start; }
.gal { position: relative; border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.gal__stage { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; aspect-ratio: 4 / 3; }
.gal__stage::-webkit-scrollbar { display: none; }
.gal__slide { flex: 0 0 100%; scroll-snap-align: start; cursor: zoom-in; }
.gal__slide img { width: 100%; height: 100%; object-fit: cover; }
.gal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; }
.gal__nav:hover { background: #fff; color: #000; }
.gal__nav--prev { left: 12px; } .gal__nav--next { right: 12px; }
.gal__pos { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; background: rgba(0, 0, 0, .7); font-size: var(--t-sm); }
.gal__tag { position: absolute; left: 12px; top: 12px; font-size: var(--t-md); padding: 6px 14px; }
.thumbs { display: flex; gap: 8px; margin-top: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.thumbs button { flex: 0 0 104px; padding: 0; border: 2px solid transparent; border-radius: var(--r-card); overflow: hidden; background: none; cursor: pointer; opacity: .6; }
.thumbs button[aria-current], .thumbs button:hover { opacity: 1; border-color: #fff; }
.thumbs img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.vdp__sec { margin-top: clamp(36px, 5vw, 60px); }
.vdp__sec > .h3, .vdp__sec > .h2 { margin-bottom: 20px; }
.specs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px; }
.spec { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--silver); } .spec dd { font-weight: 600; text-align: right; }
.equip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.equip__h { font-size: var(--t-md); font-weight: 700; color: var(--silver); margin-bottom: 10px; }
.equip li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; } .equip li .ic { color: var(--dim); margin-top: 5px; }
.buy { position: sticky; top: calc(var(--top) + 20px); padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-field); }
.admin-bar .buy { top: calc(var(--top) + 52px); }
.buy__make { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 9px; color: var(--silver); font-size: var(--t-sm); font-weight: 600; letter-spacing: .04em; text-decoration: none; }
.buy__make .mk { width: 34px; height: 34px; color: #fff; }
.buy__title { font-size: var(--t-h2); }
.buy__version { margin-top: 6px; color: var(--silver); line-height: 1.4; }
.buy__facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.buy__price { margin-top: 22px; line-height: 1.1; }
.buy__price strong { font-family: var(--ui); font-weight: 700; font-size: var(--t-h1); letter-spacing: -.03em; font-variant-numeric: tabular-nums lining-nums; }
.buy__price s { color: var(--dim); }
.buy__price--sold { font-family: var(--ui); font-size: var(--t-xl); font-weight: 600; color: var(--silver); }
.buy__monthly { color: var(--silver); margin-top: 6px; }
.buy__note { margin-top: 12px; color: var(--silver); font-size: var(--t-md); }
.buy__edit { margin-top: 12px; }
.buy__cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 24px; }
.buy__cta > :first-child, .buy__cta > :nth-child(2):last-child { grid-column: 1 / -1; }
.buy__cta > :not(.btn--primary) { min-height: 46px; padding: .5em .9em; font-size: var(--t-sm); text-align: center; }
.buy__cta > .btn--line { border-color: var(--line); }
.buy__cta > .btn--line:hover { border-color: #fff; }
.buy__warranty { display: flex; gap: 12px; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); font-size: var(--t-md); color: var(--silver); }
.buy__warranty .ic { color: var(--silver); margin-top: 2px; } .buy__warranty strong { color: var(--text); display: block; margin-bottom: 4px; }
.buy__share { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 0; border: 0; background: none; color: var(--silver); cursor: pointer; }
.buy__share:hover { color: #fff; }
.vdp__form { padding: clamp(20px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-field); }
.vdp__form .h2 { margin-bottom: 8px; } .vdp__form .lead { margin-bottom: 24px; font-size: var(--t-md); }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); margin-top: var(--gap); }
.duo__item { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: var(--r-card); }
.duo__item .ic { color: var(--silver); }

.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: rgba(0, 0, 0, .96); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100vw; max-height: 100vh; max-height: 100dvh; object-fit: contain; }
.lightbox__x, .lightbox__nav { position: absolute; width: 54px; height: 54px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; }
.lightbox__x { right: 14px; top: 14px; } .lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav--prev { left: 14px; } .lightbox__nav--next { right: 14px; }
.lightbox__x:hover, .lightbox__nav:hover { background: #fff; color: #000; }
.lightbox__pos { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); padding: 4px 12px; border-radius: 99px; background: rgba(0, 0, 0, .6); font-size: var(--t-sm); }

/* footer */
.foot { margin-top: 40px; border-top: 1px solid var(--line); background: var(--black); color: var(--silver); font-size: var(--t-md); }
.foot__grid { display: grid; grid-template-columns: 1.5fr repeat(4, 1fr); gap: clamp(24px, 3vw, 48px); padding-block: clamp(40px, 5vw, 72px); }
.logo--foot img { height: 78px; margin-bottom: 16px; }
.foot__h { font-family: var(--ui); font-weight: var(--uw); font-size: var(--t-md); color: var(--text); margin-bottom: 14px; }
.foot__addr { font-style: normal; margin-bottom: 10px; }
.foot__tel { color: #fff; font-weight: 700; text-decoration: none; }
.foot__list li + li { margin-top: 0; }
.foot__list a, .foot__a, .foot__tel, .foot__links a, .foot__btn, .facts__tel { display: inline-block; padding-block: 11px; }
.foot__list { margin-top: -11px; }
.foot a { text-decoration: none; } .foot a:hover { text-decoration: underline; }
.foot__base { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; padding-block: 22px; border-top: 1px solid var(--line); font-size: var(--t-sm); color: var(--dim); }
.foot__links { display: flex; gap: 20px; margin-left: auto; }
.foot__mob { flex-basis: 100%; }

.social { display: inline-flex !important; align-items: center; gap: 8px; text-decoration: none; }
.socials { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.dockbar { display: none; }

/* cookie consent */
.consent { position: fixed; left: 22px; bottom: 22px; z-index: 120; width: min(440px, calc(100vw - 28px)); padding: 20px 22px; background: #0e0e10; border: 1px solid var(--line); border-radius: var(--r-field); box-shadow: 0 20px 60px rgba(0, 0, 0, .7); font-size: var(--t-md); line-height: 1.5; color: var(--silver); }
.consent[hidden] { display: none; }
.consent p + p { margin-top: 8px; }
.consent__btns { display: flex; gap: 10px; margin-top: 16px; }
.consent__btns .btn { flex: 1; min-height: 44px; padding: 0 1em; } /* refusing is as easy as accepting */
.foot__btn { padding-inline: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.foot__btn:hover { text-decoration: underline; }
.form__privacy { margin: -6px 0 18px; color: var(--dim); font-size: var(--t-sm); max-width: 70ch; }
.buy__ttc { color: var(--dim); font-size: var(--t-sm); font-weight: 500; margin-left: 4px; }

/* assistant (chatbot) */
.chat { position: fixed; right: 22px; bottom: 22px; z-index: 110; }
.chat__open { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 22px 0 18px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 99px; background: #0e0e10; color: #fff; font: 600 var(--t-md)/1 var(--ui); letter-spacing: .01em; cursor: pointer; box-shadow: 0 10px 30px rgba(0, 0, 0, .6), 0 0 0 1px rgba(227, 0, 43, .35), 0 0 22px rgba(227, 0, 43, .28); transition: box-shadow .2s, transform .2s; }
.chat__open .ic { color: var(--red); }
.chat__open:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0, 0, 0, .7), 0 0 0 1px var(--red), 0 0 30px rgba(227, 0, 43, .45); }
.chat.is-open .chat__open { display: none; }
.chat__panel { display: flex; flex-direction: column; width: min(400px, calc(100vw - 28px)); height: min(620px, calc(100vh - 110px)); background: #0c0c0e; border: 1px solid var(--line); border-radius: var(--r-field); overflow: hidden; box-shadow: 0 24px 70px rgba(0, 0, 0, .75), 0 0 0 1px rgba(227, 0, 43, .18); }
.chat__panel[hidden] { display: none; }
.chat__head { display: flex; align-items: center; gap: 6px; padding: 16px 12px 14px 20px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #151517, #0c0c0e); }
.chat__head > div { flex: 1; min-width: 0; }
.chat__title { display: block; font: var(--hw) var(--t-xl)/1.2 var(--display); letter-spacing: var(--ht); }
.chat__sub { display: flex; align-items: center; gap: 6px; margin-top: 3px; color: var(--dim); font-size: var(--t-sm); }
.chat__sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fd07a; }
.chat__icon { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--silver); cursor: pointer; }
.chat__icon:hover { background: var(--raised); color: #fff; }
.chat__log { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.chat__msg { max-width: 88%; padding: 11px 15px; border-radius: var(--r-field); font-size: var(--t-md); line-height: 1.5; overflow-wrap: anywhere; }
.chat__msg p + p { margin-top: .6em; }
.chat__msg--bot { align-self: flex-start; background: var(--raised); border-bottom-left-radius: 5px; }
.chat__msg--me { align-self: flex-end; background: var(--red); color: #fff; border-bottom-right-radius: 5px; }
.chat__msg--wait { display: inline-flex; gap: 5px; padding: 15px; }
.chat__msg--wait span { width: 7px; height: 7px; border-radius: 50%; background: var(--silver); animation: chatdot 1.1s infinite ease-in-out; }
.chat__msg--wait span:nth-child(2) { animation-delay: .15s; } .chat__msg--wait span:nth-child(3) { animation-delay: .3s; }
@keyframes chatdot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.chat__car { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-field); background: var(--black); text-decoration: none; }
.chat__car:hover { border-color: var(--silver); }
.chat__car img { width: 96px; height: 72px; object-fit: cover; border-radius: var(--r-card); flex: none; }
.chat__car span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.chat__car strong { font-weight: 700; line-height: 1.25; }
.chat__car small { color: var(--dim); font-size: var(--t-xs); line-height: 1.35; }
.chat__car b { font-weight: 700; font-variant-numeric: tabular-nums; }
.chat__chips { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 4px; }
.chat__chips[hidden] { display: none; }
.chat__quick { display: flex; flex-wrap: wrap; gap: 8px; }
.chat__link { display: inline-block; margin-top: 10px; margin-right: 12px; font-weight: 600; font-size: var(--t-md); color: #fff; }
.chat__chip { padding: 9px 14px; border: 1px solid var(--line); border-radius: 99px; background: none; color: var(--text); font: inherit; font-size: var(--t-sm); text-align: left; cursor: pointer; }
.chat__chip:hover { border-color: var(--silver); }
.chat__form { display: flex; align-items: flex-end; gap: 8px; padding: 12px 12px 8px 16px; border-top: 1px solid var(--line); }
.chat__form textarea { flex: 1; min-height: 44px; max-height: 120px; padding: 11px 14px; resize: none; background: var(--black); border: 1px solid var(--line); border-radius: var(--r-field); color: var(--text); font: inherit; font-size: var(--t-md); line-height: 1.4; }
.chat__form textarea:focus { outline: 2px solid #fff; outline-offset: 1px; border-color: transparent; }
.chat__send { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--red); color: #fff; cursor: pointer; }
.chat__send:hover { background: var(--red-hi); }
.chat__note { padding: 0 16px 10px; color: var(--dim); font-size: var(--t-xs); line-height: 1.35; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  /* The menu hangs under the header bar and fills the rest of the screen. It is placed relative to the bar
     (not the window): the bar's blur effect makes "fixed" children measure against the bar itself. */
  .nav { position: absolute; left: 0; right: 0; top: 100%; height: calc(100vh - var(--top)); height: calc(100dvh - var(--top)); z-index: 90; display: none; flex-direction: column; gap: 0; margin: 0; padding: 12px var(--gap) 40px; background: var(--black); overflow: auto; overscroll-behavior: contain; }
  .admin-bar .nav { height: calc(100vh - var(--top) - 32px); height: calc(100dvh - var(--top) - 32px); }
  .nav-open .nav { display: flex; }
  .nav-open { overflow: hidden; }
  .nav__a { padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--ui); font-size: var(--t-xl); color: #fff; }
  .top__tools { margin-left: auto; }
  .burger { display: grid; place-items: center; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .foot__grid { grid-template-columns: repeat(2, 1fr); } .foot__brand { grid-column: 1 / -1; }
  .vdp__cols { grid-template-columns: 1fr; }
  .buy { position: static; }
  .vdp__side { order: -1; display: contents; }
  .vdp__cols { display: flex; flex-direction: column; }
  .vdp__main { display: contents; }
  .gal { order: 1; } .thumbs { order: 2; } .buy { order: 3; } .vdp__main > .vdp__sec, .vdp__main > .vdp__small { order: 4; }
  .vdp__cols > *, .vdp__main > * { width: 100%; }
}
@media (max-width: 900px) {
  .stock__cols { grid-template-columns: 1fr; }
  .results__filter { display: inline-flex; }
  .filters { position: fixed; inset: 0; z-index: 250; max-height: none; border-radius: 0; border: 0; padding: 20px var(--gap) 110px; display: none; align-content: start; }
  .admin-bar .filters { top: 0; }
  .filters-open .filters { display: grid; }
  .filters-open { overflow: hidden; }
  .filters__head { display: flex; align-items: center; justify-content: space-between; font-family: var(--ui); font-size: var(--t-xl); }
  .filters__close { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; }
  .js .filters__go { display: inline-flex; position: fixed; left: var(--gap); right: var(--gap); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 2; }
  .js .filters::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1; height: calc(80px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .search { grid-template-columns: 1fr 1fr; } .search .btn { grid-column: 1 / -1; }
  .why, .visit, .why--text .why__copy { grid-template-columns: 1fr; }
  .why--text .why__copy > *, .why--text .why__copy > .h2 { grid-column: 1; grid-row: auto; }
  .equip, .quotes, .steps { grid-template-columns: 1fr; }
  .hero__count { display: none; }
  .makes { grid-template-columns: repeat(3, 1fr); } .makes a { min-height: 132px; gap: 12px; padding: 26px 6px 16px; } .makes .mk { width: 44px; height: 44px; } .makes__name { font-size: var(--t-xs); letter-spacing: .1em; }
}
@media (max-width: 782px) { .admin-bar .top { top: 46px; } .admin-bar .nav { height: calc(100vh - var(--top) - 46px); height: calc(100dvh - var(--top) - 46px); } }
@media (max-width: 640px) {
  :root { --top: 64px; }
  .logo img { height: 42px; }
  .btn--call .plume-lt { display: none; } .btn--call { width: 44px; min-height: 44px; padding: 0; }
  .cards, .trust__grid, .blocks, .duo, .form__grid, .search { grid-template-columns: 1fr; }
  .hero__in { min-height: 0; padding-block: 56px 36px; }
  .hero__bg { inset: 0 0 240px 0; }
  .hero__line { display: none; }
  .foot__grid { grid-template-columns: 1fr 1fr; }
  .results__sort label { display: none; }
  .top { background: #000; backdrop-filter: none; } /* a live blur behind a sticky bar is costly on phones */
  .band, .trust, .foot { content-visibility: auto; contain-intrinsic-size: auto 700px; } /* sections far from the screen are not laid out until needed */
  .dockbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 1px; background: var(--line); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .dockbar__a { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 56px; padding: 0 4px; border: 0; background: var(--surface); color: #fff; text-decoration: none; font: 700 var(--t-sm)/1.2 var(--body); cursor: pointer; }
  .dockbar__a--call { background: var(--red); color: #fff; }
  body { padding-bottom: 57px; }
  .chat { right: 12px; bottom: 70px; }
  /* first visit: a strip sitting on the bar, not a card floating over the page */
  .consent { left: 0; right: 0; bottom: calc(57px + env(safe-area-inset-bottom)); width: auto; padding: 14px var(--gap); border-width: 1px 0 0; border-radius: 0; box-shadow: 0 -14px 30px rgba(0, 0, 0, .65); font-size: var(--t-sm); line-height: 1.45; }
  .consent__btns { margin-top: 12px; }
  .chat.is-open { inset: 0; right: 0; bottom: 0; z-index: 260; }
  .chat.is-open .chat__panel { width: 100%; height: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .chat__open { display: none; } /* on phones the assistant is the bar's third button */
  /* rows of cars become one swipeable line, bleeding to the screen edges */
  .cards--swipe { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gap)); padding-inline: var(--gap); scroll-padding-inline: var(--gap); }
  .cards--swipe::-webkit-scrollbar { display: none; }
  .cards--swipe > .card { flex: 0 0 82%; scroll-snap-align: start; }
  .single-vehicule .buy__cta .btn--primary, .single-vehicule .buy__cta .btn--wa { display: none; }
  .single-vehicule .buy__cta { display: none; } /* Call and WhatsApp are in the bar at the bottom */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__line path { animation: none; stroke-dashoffset: 0; }
  * { transition: none !important; }
}
@media print { .chat, .top, .foot, .dockbar, .filters, .gal__nav, .thumbs, .vdp__form, .duo, .buy__cta, .buy__share { display: none !important; } body { background: #fff; color: #000; } }
