:root {
    --ink: #20313d;
    --muted: #667781;
    --navy: #162a3d;
    --navy-2: #203d58;
    --red: #b9453f;
    --red-dark: #9d3732;
    --sand: #f2e8df;
    --surface: #ffffff;
    --surface-2: #f4f6f6;
    --line: #dce3e5;
    --success: #2e6b57;
    --radius-sm: 10px;
    --radius: 18px;
    --radius-lg: 28px;
    --shadow: 0 18px 55px rgba(22, 42, 61, .1);
    --shell: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--surface); font-family: "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button, select { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); letter-spacing: -.025em; line-height: 1.12; }
h1 { font-size: clamp(2.6rem, 5vw, 5.2rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.4rem); }
h3 { font-size: 1.3rem; }
.shell { margin-inline: auto; max-width: var(--shell); padding-inline: 24px; width: 100%; }
.section { padding-block: 92px; }
.sr-only { clip: rect(0, 0, 0, 0); clip-path: inset(50%); height: 1px; overflow: hidden; position: absolute; white-space: nowrap; width: 1px; }
.skip-link { background: var(--red); color: #fff; left: 12px; padding: 10px 16px; position: fixed; top: -100px; z-index: 1000; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid #e29572; outline-offset: 3px; }

.utility-bar { background: #0f2132; color: rgba(255,255,255,.76); font-size: .82rem; }
.utility-bar__inner { align-items: center; display: flex; justify-content: space-between; min-height: 38px; }
.utility-bar__inner div { display: flex; gap: 28px; }
.utility-bar a:hover { color: #fff; }
.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(22,42,61,.08); position: sticky; top: 0; z-index: 100; }
.site-header__inner { align-items: center; display: flex; justify-content: space-between; min-height: 86px; }
.brand img { display: block; height: 72px; object-fit: contain; width: auto; }
.main-nav { align-items: center; display: flex; gap: 30px; }
.main-nav > a:not(.button) { color: var(--navy); font-size: .93rem; font-weight: 700; position: relative; }
.main-nav > a:not(.button)::after { background: var(--red); bottom: -9px; content: ""; height: 2px; left: 0; position: absolute; transform: scaleX(0); transform-origin: left; transition: transform .2s ease; width: 100%; }
.main-nav > a:not(.button):hover::after { transform: scaleX(1); }
.menu-toggle { background: transparent; border: 0; display: none; padding: 10px; }
.menu-toggle span:not(.sr-only) { background: var(--navy); display: block; height: 2px; margin: 5px 0; width: 26px; }

.button { align-items: center; border: 1px solid transparent; border-radius: 999px; display: inline-flex; font-size: .95rem; font-weight: 800; justify-content: center; min-height: 50px; padding: 12px 24px; transition: background .2s ease, border .2s ease, color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button--small { min-height: 42px; padding: 9px 18px; }
.button--primary { background: var(--navy); color: #fff; }
.button--primary:hover { background: var(--navy-2); }
.button--accent { background: var(--red); color: #fff; }
.button--accent:hover { background: var(--red-dark); }
.button--outline { border-color: var(--navy); color: var(--navy); }
.button--light { background: #fff; color: var(--navy); }
.button--outline-light { border-color: rgba(255,255,255,.55); color: #fff; }
.button--block { width: 100%; }
.button--filter { background: var(--sand); color: var(--navy); display: none; min-height: 44px; }
.text-link { color: var(--navy); font-weight: 800; }
.text-link span { display: inline-block; transition: transform .2s ease; }
.text-link:hover span { transform: translateX(4px); }
.text-link--light { color: #fff; }
.eyebrow { color: var(--red); font-size: .76rem; font-weight: 900; letter-spacing: .16em; margin-bottom: 12px; text-transform: uppercase; }
.eyebrow--light { color: #efb299; }

.hero { background: linear-gradient(120deg, var(--navy) 0%, #1a3852 68%, #254d63 100%); color: #fff; overflow: hidden; position: relative; }
.hero::before { background: radial-gradient(circle, rgba(255,255,255,.09) 0 1px, transparent 1px); background-size: 22px 22px; content: ""; inset: 0; opacity: .32; position: absolute; }
.hero__grid { align-items: center; display: grid; gap: 62px; grid-template-columns: 1.03fr .97fr; min-height: 650px; padding-block: 64px; position: relative; }
.hero h1 { color: #fff; font-size: clamp(3rem, 5.5vw, 5.65rem); margin-bottom: 26px; max-width: 760px; }
.hero__lead { color: rgba(255,255,255,.78); font-size: 1.18rem; max-width: 610px; }
.hero__actions { align-items: center; display: flex; gap: 26px; margin-top: 34px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 22px; list-style: none; margin: 34px 0 0; padding: 0; }
.trust-list li { color: rgba(255,255,255,.74); font-size: .86rem; }
.trust-list li::before { color: #efb299; content: "\2713"; font-weight: 900; margin-right: 7px; }
.hero__visual { min-height: 460px; position: relative; }
.hero__visual > img { border-radius: var(--radius-lg); box-shadow: 0 34px 80px rgba(0,0,0,.25); height: 500px; object-fit: cover; width: 100%; }
.hero-vehicle { align-items: center; background: rgba(255,255,255,.96); border-radius: 16px; bottom: 24px; color: var(--navy); display: grid; gap: 1px; grid-template-columns: 1fr auto; left: -28px; padding: 16px 19px; position: absolute; width: min(330px, calc(100% - 28px)); }
.hero-vehicle span { color: var(--red); font-size: .7rem; font-weight: 900; grid-column: 1 / -1; letter-spacing: .12em; text-transform: uppercase; }
.hero-vehicle strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero-vehicle b { color: var(--red); }

.search-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-top: -42px; padding-block: 32px; position: relative; z-index: 5; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 38px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading--compact { align-items: center; margin-bottom: 24px; }
.section-heading--compact h2 { font-size: 1.65rem; }
.section-heading--compact > span { color: var(--muted); font-weight: 700; }
.section-heading--center { justify-content: center; text-align: center; }
.quick-search { align-items: end; display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr) auto; }
.quick-search label > span, .field > span { color: var(--navy); display: block; font-size: .78rem; font-weight: 800; margin-bottom: 7px; }
input, select, textarea { background: #fff; border: 1px solid #cfd9dc; border-radius: var(--radius-sm); min-height: 50px; padding: 11px 13px; width: 100%; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-2); box-shadow: 0 0 0 3px rgba(32,61,88,.12); outline: 0; }

.vehicle-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vehicle-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 7px 25px rgba(22,42,61,.06); min-width: 0; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.vehicle-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.vehicle-card__image { background: var(--surface-2); display: block; overflow: hidden; padding-top: 68%; position: relative; }
.vehicle-card__image > img { height: 100%; inset: 0; object-fit: cover; position: absolute; transition: transform .4s ease; width: 100%; }
.vehicle-card:hover .vehicle-card__image > img { transform: scale(1.025); }
.image-placeholder { align-items: center; color: var(--muted); display: flex; inset: 0; justify-content: center; position: absolute; }
.vehicle-card__badges { display: flex; gap: 7px; left: 14px; position: absolute; top: 14px; }
.badge { background: rgba(255,255,255,.94); border-radius: 999px; color: var(--navy); font-size: .68rem; font-weight: 900; padding: 6px 9px; text-transform: uppercase; }
.badge--accent { background: var(--red); color: #fff; }
.vehicle-card__body { padding: 22px; }
.vehicle-card__body h3 { font-size: 1.32rem; margin-bottom: 20px; }
.vehicle-card__body h3 span { color: var(--muted); display: block; font-size: .88rem; font-weight: 600; margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-facts { display: grid; gap: 12px 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0 0 22px; }
.vehicle-facts div { min-width: 0; }
.vehicle-facts dt { color: var(--muted); font-size: .69rem; font-weight: 700; text-transform: uppercase; }
.vehicle-facts dd { font-size: .88rem; font-weight: 700; margin: 2px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vehicle-card__footer { align-items: center; border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding-top: 17px; }
.vehicle-card__footer strong { color: var(--red); font-size: 1.3rem; }
.vehicle-card__footer a { color: var(--navy); font-size: .84rem; font-weight: 800; }

.value-section { background: var(--surface-2); padding-block: 92px; }
.value-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.value-grid article { background: #fff; border-radius: var(--radius); padding: 32px; }
.value-grid article > span { color: var(--red); display: block; font-size: 1.4rem; font-weight: 900; margin-bottom: 32px; }
.value-grid h3 { font-size: 1.25rem; }
.value-grid p { color: var(--muted); margin-bottom: 0; }
.cta-section { align-items: center; background: var(--red); border-radius: var(--radius-lg); color: #fff; display: flex; gap: 40px; justify-content: space-between; margin-block: 92px; padding-block: 50px; }
.cta-section h2 { color: #fff; font-size: clamp(2rem, 3.5vw, 3.2rem); margin-bottom: 10px; }
.cta-section p:not(.eyebrow) { color: rgba(255,255,255,.8); margin-bottom: 0; }
.cta-section > div:last-child { display: flex; flex: 0 0 auto; gap: 10px; }

.page-hero { background: linear-gradient(115deg, var(--navy), var(--navy-2)); color: #fff; padding-block: 90px; }
.page-hero h1 { color: #fff; font-size: clamp(2.8rem, 5vw, 4.8rem); margin-bottom: 16px; }
.page-hero p:not(.eyebrow) { color: rgba(255,255,255,.72); font-size: 1.12rem; margin-bottom: 0; }
.inventory-layout { align-items: start; display: grid; gap: 34px; grid-template-columns: 280px minmax(0, 1fr); padding-block: 58px 92px; }
.filter-panel { background: var(--surface-2); border-radius: var(--radius); max-height: calc(100vh - 132px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; padding: 24px; position: sticky; scrollbar-color: #b8c4c8 transparent; scrollbar-width: thin; top: 108px; }
.filter-panel::-webkit-scrollbar { width: 8px; }
.filter-panel::-webkit-scrollbar-thumb { background: #b8c4c8; border: 2px solid var(--surface-2); border-radius: 999px; }
.filter-panel__header { align-items: center; display: flex; justify-content: space-between; }
.filter-panel__header h2 { font-size: 1.6rem; }
.filter-close { background: transparent; border: 0; display: none; font-size: 2rem; }
.filters-form { display: grid; gap: 14px; }
.filter-actions { background: linear-gradient(to bottom, rgba(244,246,246,0), var(--surface-2) 14px); bottom: -24px; display: grid; gap: 10px; margin: 0 -4px; padding: 20px 4px 24px; position: sticky; z-index: 1; }
.field-row { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.field span.field-validation-error { color: var(--red); font-size: .76rem; margin-top: 5px; }
.reset-link { color: var(--red); font-size: .85rem; font-weight: 800; text-align: center; }
.results-toolbar { align-items: center; display: flex; justify-content: space-between; margin-bottom: 26px; }
.results-toolbar > div { align-items: baseline; display: flex; gap: 8px; }
.results-toolbar h2 { font-size: 1.35rem; margin: 0; }
.results-toolbar p { color: var(--muted); margin: 0; }
.results-toolbar select { min-width: 210px; }
.active-filters { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 24px; }
.active-filters > span { color: var(--muted); font-size: .8rem; }
.active-filters b { background: var(--sand); border-radius: 999px; color: var(--navy); font-size: .76rem; padding: 6px 10px; }
.vehicle-grid--results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.empty-state { background: var(--surface-2); border-radius: var(--radius); padding: 70px 28px; text-align: center; }
.empty-state__icon { color: var(--red); display: block; font-size: 3.5rem; }
.empty-state h2 { font-size: 1.8rem; }
.empty-state p { color: var(--muted); margin-inline: auto; max-width: 560px; }
.filter-backdrop { background: rgba(15,33,50,.58); display: none; inset: 0; position: fixed; z-index: 109; }

.breadcrumb { color: var(--muted); display: flex; font-size: .82rem; gap: 8px; padding-block: 24px 8px; }
.breadcrumb a:hover { color: var(--red); }
.detail-header { align-items: end; display: flex; justify-content: space-between; padding-block: 32px; }
.detail-header h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); margin-bottom: 12px; }
.detail-header h1 span { color: var(--muted); display: block; font-size: .34em; font-weight: 600; margin-top: 8px; }
.detail-header > div:first-child > p:last-child { color: var(--muted); }
.detail-price { text-align: right; }
.detail-price span, .detail-price small { color: var(--muted); display: block; font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.detail-price strong { color: var(--red); display: block; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1; margin-block: 6px 10px; }
.detail-layout { align-items: start; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr) 340px; }
.detail-layout > *, .gallery { min-width: 0; }
.gallery { max-width: 100%; overflow: hidden; width: 100%; }
.gallery__main { background: var(--surface-2); border-radius: var(--radius); height: min(58vw, 650px); overflow: hidden; position: relative; }
.gallery__main img { height: 100%; object-fit: cover; width: 100%; }
.gallery__count { background: rgba(15,33,50,.85); border-radius: 999px; bottom: 16px; color: #fff; font-size: .76rem; font-weight: 800; padding: 7px 11px; position: absolute; right: 16px; }
.gallery__arrow { align-items: center; background: rgba(255,255,255,.92); border: 0; border-radius: 50%; box-shadow: 0 8px 24px rgba(15,33,50,.2); color: var(--navy); display: flex; font-size: 2rem; height: 48px; justify-content: center; padding: 0 0 4px; position: absolute; top: 50%; transform: translateY(-50%); width: 48px; }
.gallery__arrow:hover { background: #fff; color: var(--red); }
.gallery__arrow--previous { left: 16px; }
.gallery__arrow--next { right: 16px; }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 2px 2px 8px; scroll-snap-type: x proximity; scrollbar-width: thin; width: 100%; -webkit-overflow-scrolling: touch; }
.gallery__thumbs button { background: var(--surface-2); border: 2px solid transparent; border-radius: 9px; flex: 0 0 112px; min-width: 112px; overflow: hidden; padding: 0; scroll-snap-align: center; width: 112px; }
.gallery__thumbs button:hover, .gallery__thumbs button.is-active { border-color: var(--red); }
.gallery__thumbs img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.lead-card { background: var(--navy); border-radius: var(--radius); color: #fff; padding: 30px; position: sticky; top: 108px; }
.lead-card h2 { color: #fff; font-size: 2.2rem; }
.lead-card > p:not(.eyebrow) { color: rgba(255,255,255,.72); }
.lead-card .button { margin-top: 10px; }
.lead-card .button--outline { border-color: rgba(255,255,255,.5); color: #fff; }
.button--whatsapp { background: var(--success); color: #fff; margin-bottom: 20px; }
.button--whatsapp:hover { background: #17865e; }
.lead-card__trust { border-top: 1px solid rgba(255,255,255,.15); list-style: none; margin: 20px 0 0; padding: 19px 0 0; }
.lead-card__trust li { color: rgba(255,255,255,.75); font-size: .84rem; margin-top: 8px; }
.lead-card__trust li::before { color: #a8d8c7; content: "\2713"; margin-right: 8px; }
.detail-content { padding-block: 42px 72px; }
.detail-main { max-width: calc(100% - 368px); width: 100%; }
.content-card { border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 24px; padding: 34px; }
.content-card h2 { font-size: 2rem; }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin: 30px 0 0; }
.spec-grid div { border-top: 1px solid var(--line); display: flex; justify-content: space-between; padding: 14px 4px; }
.spec-grid dt { color: var(--muted); }
.spec-grid dd { font-weight: 800; margin: 0; text-align: right; }
.rich-copy { color: #4c5f69; line-height: 1.8; }
.options-grid { display: grid; gap: 10px 20px; grid-template-columns: repeat(2, 1fr); list-style: none; margin: 26px 0 0; padding: 0; }
.options-grid li { background: var(--surface-2); border-radius: 9px; padding: 10px 12px; }
.options-grid li::before { color: var(--success); content: "\2713"; font-weight: 900; margin-right: 8px; }

.contact-layout { display: grid; gap: 80px; grid-template-columns: .8fr 1.2fr; padding-block: 82px 100px; }
.contact-info h2, .contact-form-card h2 { font-size: 2.4rem; }
.contact-info > p:not(.eyebrow) { color: var(--muted); }
.contact-method { border-top: 1px solid var(--line); padding-block: 17px; }
.contact-method > span { color: var(--muted); display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.contact-method a, .contact-method address, .contact-method p { font-size: 1.08rem; font-style: normal; font-weight: 700; margin: 4px 0 0; }
.contact-form-card { background: var(--surface-2); border-radius: var(--radius-lg); padding: 38px; }
.contact-form { display: grid; gap: 16px; margin-top: 28px; }
.privacy-consent { display: grid; gap: 6px; }
.privacy-consent label { align-items: flex-start; cursor: pointer; display: flex; gap: 10px; line-height: 1.45; }
.privacy-consent input[type="checkbox"] { accent-color: var(--red); flex: 0 0 auto; height: 18px; margin: 2px 0 0; width: 18px; }
.privacy-consent a { color: var(--red-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.privacy-consent .field-validation-error { color: var(--red); font-size: .76rem; }
.form-contact-hint { color: var(--muted); font-size: .82rem; margin: 0 0 -6px; }
.field > span small { color: var(--muted); font-size: .68rem; font-weight: 600; margin-left: 4px; }
.field > span.field-validation-error { color: var(--red); display: block; font-size: .76rem; margin-top: 5px; }
.honeypot { left: -10000px; position: absolute; }
.selected-vehicle { background: var(--sand); border-radius: var(--radius-sm); padding: 13px 15px; }
.selected-vehicle span { color: var(--muted); display: block; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.validation-summary { background: #fae7e5; border-radius: 10px; color: #8d2f2a; padding: 12px; }
.validation-summary ul { margin: 0; padding-left: 20px; }
.form-note { color: var(--muted); font-size: .76rem; margin: 0; text-align: center; }
.form-note a { color: var(--navy); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.success-state { padding-block: 54px; text-align: center; }
.success-state > span { align-items: center; background: #dceee7; border-radius: 50%; color: var(--success); display: inline-flex; font-size: 2rem; height: 70px; justify-content: center; margin-bottom: 20px; width: 70px; }
.story-grid { display: grid; gap: 80px; grid-template-columns: 1fr 1fr; padding-block: 96px; }
.story-grid h2 { margin-bottom: 0; }

.site-footer { background: #0f2132; color: rgba(255,255,255,.68); padding: 70px 0 100px; }
.footer-grid { display: grid; gap: 60px; grid-template-columns: 1.5fr 1fr .8fr; }
.footer-logo { height: auto; margin-bottom: 18px; max-width: 150px; }
.footer-grid h2 { color: #fff; font-size: 1rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 8px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { align-items: center; border-top: 1px solid rgba(255,255,255,.12); display: flex; font-size: .78rem; justify-content: space-between; margin-top: 52px; padding-top: 24px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer-legal a { font-size: .74rem; text-decoration: underline; text-decoration-color: rgba(255,255,255,.28); text-underline-offset: 3px; }
.mobile-actions { display: none; }
.cookie-banner { bottom: 22px; left: 50%; max-width: 1080px; padding-inline: 18px; position: fixed; transform: translateX(-50%); transition: opacity .2s ease, transform .2s ease; width: 100%; z-index: 220; }
.cookie-banner.is-hidden { opacity: 0; pointer-events: none; transform: translate(-50%, 16px); }
.cookie-banner form { align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 22px 70px rgba(15,33,50,.25); display: flex; gap: 28px; justify-content: space-between; padding: 22px 24px; }
.cookie-banner h2 { font-size: 1.2rem; margin-bottom: 5px; }
.cookie-banner p { color: var(--muted); font-size: .86rem; line-height: 1.55; margin: 0; max-width: 680px; }
.cookie-policy-link { color: var(--navy); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.cookie-banner__actions { display: flex; flex: 0 0 auto; gap: 8px; }
.cookie-banner__actions .button { min-height: 44px; padding: 9px 17px; }
.error-page { align-items: center; background: var(--surface-2); display: flex; min-height: 100vh; padding: 24px; }
.error-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); margin: auto; max-width: 620px; padding: 48px; text-align: center; }
.error-card img { height: 64px; margin: 0 auto 30px; object-fit: contain; }
.error-card h1 { font-size: 2.5rem; }
.page-hero--legal h1 { font-size: clamp(2.7rem, 5vw, 4.7rem); }
.legal-layout { padding-block: 70px 100px; }
.legal-content { margin-inline: auto; max-width: 860px; }
.legal-updated { color: var(--muted); font-size: .84rem; font-weight: 700; margin-bottom: 38px; }
.legal-content h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin: 44px 0 14px; }
.legal-content p, .legal-content li { color: #4c5f69; }
.legal-content a { color: var(--red-dark); font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.legal-content ul { padding-left: 22px; }
.legal-content li + li { margin-top: 10px; }
.legal-table-wrap { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-x: auto; }
.legal-table { border-collapse: collapse; min-width: 650px; width: 100%; }
.legal-table th, .legal-table td { border-bottom: 1px solid var(--line); padding: 15px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--surface-2); color: var(--navy); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table code { background: var(--sand); border-radius: 5px; color: var(--navy); padding: 2px 5px; }

@media (max-width: 1020px) {
    .hero__grid { gap: 34px; grid-template-columns: 1fr 1fr; min-height: 590px; }
    .hero__visual > img { height: 420px; }
    .quick-search { grid-template-columns: repeat(2, 1fr); }
    .quick-search .button { grid-column: span 2; }
    .vehicle-grid { grid-template-columns: repeat(2, 1fr); }
    .inventory-layout { grid-template-columns: 250px minmax(0, 1fr); }
    .vehicle-grid--results { grid-template-columns: 1fr; }
    .detail-layout { grid-template-columns: minmax(0, 1fr) 300px; }
    .detail-main { max-width: calc(100% - 328px); }
}

@media (max-width: 780px) {
    body { padding-bottom: 62px; }
    .utility-bar { display: none; }
    .site-header__inner { min-height: 72px; }
    .brand img { height: 56px; max-width: 94px; }
    .menu-toggle { display: block; }
    .main-nav { align-items: stretch; background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow); display: none; flex-direction: column; gap: 0; left: 0; padding: 14px 24px 24px; position: absolute; right: 0; top: 72px; }
    .main-nav.is-open { display: flex; }
    .main-nav > a:not(.button) { border-bottom: 1px solid var(--line); padding-block: 15px; }
    .hero__grid { grid-template-columns: 1fr; min-height: auto; padding-block: 70px; }
    .hero__copy { position: relative; z-index: 2; }
    .hero__visual { min-height: 300px; }
    .hero__visual > img { height: 350px; }
    .hero-vehicle { left: 14px; }
    .search-panel { border-radius: 20px; margin-inline: 16px; margin-top: -24px; width: auto; }
    .section, .value-section { padding-block: 68px; }
    .section-heading { align-items: start; flex-direction: column; gap: 14px; }
    .section-heading--compact > span { display: none; }
    .value-grid { grid-template-columns: 1fr; }
    .cta-section { align-items: stretch; border-radius: 0; flex-direction: column; margin-block: 0; max-width: none; padding-block: 48px; }
    .cta-section > div:last-child { align-items: stretch; flex-direction: column; }
    .page-hero { padding-block: 65px; }
    .inventory-layout { display: block; padding-top: 30px; }
    .filter-panel { border-radius: 20px 20px 0 0; bottom: 0; left: 0; max-height: min(88vh, 760px); overflow-y: auto; padding-bottom: 0; position: fixed; right: 0; top: auto; transform: translateY(105%); transition: transform .25s ease; z-index: 111; }
    .filter-panel.is-open { transform: translateY(0); }
    .filter-panel__header { background: var(--surface-2); margin: -24px -24px 0; padding: 24px 24px 8px; position: sticky; top: -24px; z-index: 2; }
    .filter-actions { bottom: 0; margin-inline: -4px; padding-bottom: max(20px, env(safe-area-inset-bottom)); }
    .filter-close { display: block; }
    .filter-backdrop.is-open { display: block; }
    .button--filter { display: inline-flex; }
    .results-toolbar { align-items: stretch; gap: 14px; }
    .results-toolbar > div { align-items: flex-start; flex-wrap: wrap; }
    .results-toolbar select { min-width: 165px; }
    .vehicle-grid--results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-header { align-items: start; flex-direction: column; }
    .detail-price { text-align: left; }
    .detail-layout { display: block; width: 100%; }
    .gallery__main { aspect-ratio: 4 / 3; height: auto; max-height: 520px; width: 100%; }
    .gallery__main img { object-fit: contain; }
    .gallery__thumbs { margin-bottom: 22px; }
    .gallery__thumbs button { flex-basis: 92px; min-width: 92px; width: 92px; }
    .lead-card { max-width: 100%; min-width: 0; overflow: hidden; position: static; width: 100%; }
    .lead-card .button { max-width: 100%; white-space: normal; width: 100%; }
    .detail-content { width: 100%; }
    .detail-main { max-width: 100%; width: 100%; }
    .contact-layout, .story-grid { gap: 46px; grid-template-columns: 1fr; padding-block: 64px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .mobile-actions { background: #fff; border-top: 1px solid var(--line); bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); left: 0; position: fixed; right: 0; z-index: 99; }
    .mobile-actions a { color: var(--navy); font-size: .78rem; font-weight: 900; padding: 16px 5px; text-align: center; }
    .mobile-actions a:nth-child(2) { background: var(--success); color: #fff; }
    .cookie-banner { bottom: 72px; }
    .cookie-banner form { align-items: stretch; flex-direction: column; gap: 16px; }
    .cookie-banner__actions { justify-content: flex-end; min-width: 0; width: 100%; }
}

@media (max-width: 560px) {
    .shell { padding-inline: 16px; }
    h1 { font-size: 2.7rem; }
    .hero h1 { font-size: 3.05rem; }
    .hero__lead { font-size: 1rem; }
    .hero__actions { align-items: flex-start; flex-direction: column; }
    .trust-list { display: grid; gap: 7px; }
    .hero__visual { min-height: 260px; }
    .hero__visual > img { height: 290px; }
    .hero-vehicle { bottom: 12px; left: 8px; }
    .quick-search { grid-template-columns: 1fr; }
    .quick-search .button { grid-column: auto; }
    .vehicle-grid, .vehicle-grid--results { grid-template-columns: 1fr; }
    .section-heading h2 { font-size: 2.1rem; }
    .results-toolbar { flex-direction: column; }
    .results-toolbar form, .results-toolbar select { width: 100%; }
    .breadcrumb { overflow: hidden; white-space: nowrap; }
    .detail-header h1 { font-size: 2.7rem; }
    .gallery__main { aspect-ratio: 4 / 3; height: auto; max-height: none; }
    .gallery__arrow { height: 42px; width: 42px; }
    .gallery__thumbs button { flex-basis: 82px; min-width: 82px; width: 82px; }
    .gallery__thumbs img { height: 58px; }
    .content-card { padding: 24px 18px; }
    .spec-grid, .options-grid { grid-template-columns: 1fr; }
    .spec-grid div { align-items: flex-start; flex-direction: column; }
    .spec-grid dd { text-align: left; }
    .contact-form-card { border-radius: 18px; padding: 26px 18px; }
    .field-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-grid > div:first-child { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 6px; }
    .footer-legal { gap: 8px 16px; }
    .legal-layout { padding-block: 48px 72px; }
    .legal-content h2 { margin-top: 36px; }
    .error-card { padding: 38px 22px; }
    .cookie-banner { padding-inline: 10px; }
    .cookie-banner form { border-radius: 16px; padding: 18px; }
    .cookie-banner__actions { display: grid; grid-template-columns: 1fr 1fr; }
    .cookie-banner__actions .button { min-width: 0; padding-inline: 8px; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
