:root {
  --ink: #13221e;
  --muted: #68746f;
  --cream: #f5f2e9;
  --paper: #fbfaf6;
  --white: #fff;
  --lime: #d7f04a;
  --lime-dark: #bfd52f;
  --sage: #dfe7dd;
  --line: #d9ddd7;
  --rust: #b75937;
  --shadow: 0 18px 50px rgba(20, 35, 30, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.topbar { min-height: 76px; padding: 0 clamp(22px, 5vw, 80px); display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(19,34,30,.13); background: rgba(251,250,246,.94); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 20; }
.brand { display: inline-flex; gap: 9px; align-items: center; font: 700 20px "Manrope", sans-serif; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--lime); font-size: 14px; letter-spacing: -.5px; }
nav { display: flex; align-items: center; gap: 32px; }
nav a { text-decoration: none; color: #42504b; font-size: 14px; }
nav a:hover { color: var(--ink); }
.nav-active { color: var(--ink); font-weight: 700; }

.button { border: 1px solid transparent; border-radius: 100px; min-height: 48px; padding: 0 24px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; font-weight: 700; cursor: pointer; text-decoration: none; transition: .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--lime); color: var(--ink); box-shadow: 0 8px 20px rgba(174,195,45,.22); }
.button-primary:hover { background: var(--lime-dark); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: #263b34; }
.button-ghost { border-color: #bcc4bf; background: transparent; color: var(--ink); }
.button-small { min-height: 40px; padding: 0 18px; font-size: 13px; }

.hero { min-height: 560px; padding: 78px clamp(24px, 7vw, 112px) 70px; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, .9fr); gap: 6vw; align-items: center; overflow: hidden; }
.eyebrow { margin: 0 0 18px; color: #68766f; font-size: 11px; font-weight: 800; letter-spacing: .18em; }
h1, h2, h3 { font-family: "Manrope", sans-serif; }
h1 { max-width: 760px; margin: 0; font-size: clamp(45px, 5vw, 76px); letter-spacing: -.055em; line-height: .99; }
h1 em { font-family: Georgia, serif; font-weight: 400; color: var(--rust); }
.hero-lead { max-width: 610px; margin: 28px 0 34px; color: #5e6a65; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.7; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { position: relative; min-height: 420px; display: grid; place-items: center; }
.hero-visual::before { content: "ID.4"; position: absolute; color: rgba(19,34,30,.045); font: 800 150px "Manrope", sans-serif; transform: rotate(-10deg); }
.hero-orbit { width: 330px; height: 330px; border: 1px solid #cdd4cf; border-radius: 50%; position: absolute; }
.hero-orbit::before, .hero-orbit::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--rust); position: absolute; }
.hero-orbit::before { left: 30px; top: 50px; }.hero-orbit::after { right: -5px; top: 160px; background: var(--lime-dark); }
.stat-card { position: absolute; background: var(--white); box-shadow: var(--shadow); }
.stat-main { width: 230px; height: 230px; border-radius: 50%; padding: 55px 35px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.stat-main strong { font: 800 74px/1 "Manrope", sans-serif; letter-spacing: -.07em; }
.stat-main > span:last-child { color: var(--muted); font-size: 13px; }
.stat-kicker { color: var(--rust); font-size: 9px; font-weight: 800; letter-spacing: .16em; }
.stat-side { right: 3%; bottom: 12%; padding: 17px 22px; border-radius: 14px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.stat-side strong { color: var(--ink); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--lime-dark); box-shadow: 0 0 0 5px #f1f6d0; }

.summary-strip { background: var(--ink); color: white; padding: 28px clamp(24px, 7vw, 112px); display: grid; grid-template-columns: repeat(4, 1fr); }
.summary-strip > div { padding: 3px 32px; border-right: 1px solid rgba(255,255,255,.16); display: flex; flex-direction: column; gap: 6px; }
.summary-strip > div:first-child { padding-left: 0; }.summary-strip > div:last-child { border: 0; }
.summary-strip span { color: #aebbb5; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.summary-strip strong { font: 700 20px "Manrope", sans-serif; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--lime); }

.section { padding: 90px clamp(24px, 7vw, 112px); }
.section-heading { margin-bottom: 36px; display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.section-heading h2 { margin: 0; font-size: clamp(32px, 4vw, 51px); letter-spacing: -.045em; }
.section-tools { display: flex; align-items: end; gap: 12px; }
.select-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
select { margin-top: 6px; min-height: 48px; min-width: 170px; padding: 0 40px 0 15px; border: 1px solid var(--line); border-radius: 100px; color: var(--ink); background: white; }
.car-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 22px; }
.car-card { position: relative; background: white; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 3px 10px rgba(20,35,30,.03); transition: .25s ease; }
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.car-image { height: 230px; background: #dce3df; overflow: hidden; position: relative; }
.car-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-button { width: 36px; height: 36px; position: absolute; z-index: 3; top: 50%; transform: translateY(-50%); border: 0; border-radius: 50%; background: rgba(19,34,30,.78); color: white; font-size: 25px; line-height: 1; cursor: pointer; opacity: 0; transition: .2s ease; }
.car-image:hover .gallery-button { opacity: 1; }.gallery-prev { left: 13px; }.gallery-next { right: 13px; }
.gallery-count { position: absolute; z-index: 2; right: 14px; bottom: 13px; padding: 6px 9px; border-radius: 100px; background: rgba(19,34,30,.75); color: white; font-size: 10px; font-weight: 700; }
.car-art { width: 100%; height: 100%; position: relative; display: grid; place-items: end start; padding: 24px; overflow: hidden; color: white; background: linear-gradient(145deg, var(--art-a, #84918b), var(--art-b, #283932)); }
.car-art::before { content: "ID.4"; position: absolute; right: -10px; bottom: -31px; color: rgba(255,255,255,.13); font: 800 92px "Manrope", sans-serif; letter-spacing: -.08em; }
.car-art::after { content: ""; position: absolute; width: 74%; height: 34%; left: 13%; top: 35%; border-radius: 50% 55% 24% 24% / 68% 70% 22% 22%; border: 3px solid rgba(255,255,255,.72); border-bottom-width: 8px; transform: skewX(-8deg); }
.car-art span { position: relative; z-index: 1; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.rank-badge { position: absolute; left: 16px; top: 16px; padding: 8px 12px; border-radius: 100px; background: var(--lime); color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.remove-car { position: absolute; right: 16px; top: 16px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(19,34,30,.78); color: white; cursor: pointer; }
.archive-car { position: absolute; z-index: 4; right: 16px; top: 16px; min-width: 48px; height: 34px; padding: 0 11px; border: 0; border-radius: 100px; background: rgba(19,34,30,.78); color: white; font-size: 10px; font-weight: 700; cursor: pointer; }
.card-body { padding: 25px; }
.car-meta { display: flex; justify-content: space-between; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.card-body h3 { margin: 9px 0 3px; font-size: 21px; letter-spacing: -.025em; }
.seller { margin: 0 0 5px; color: var(--muted); font-size: 13px; }
.dealer-location { min-height: 19px; margin: 0 0 19px; color: #53615b; font-size: 11px; }
.dealer-location > span { color: var(--rust); font-size: 9px; }.dealer-location a { margin-left: 7px; color: var(--rust); font-weight: 700; text-underline-offset: 3px; }
.car-numbers { padding: 17px 0; display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.car-numbers div { border-right: 1px solid var(--line); text-align: center; }.car-numbers div:last-child { border: 0; }
.car-numbers span { display: block; color: var(--muted); font-size: 10px; text-transform: uppercase; }.car-numbers strong { font-size: 15px; }
.equipment-preview { min-height: 73px; padding: 17px 0 6px; display: flex; gap: 7px; flex-wrap: wrap; align-content: flex-start; }
.chip { padding: 6px 9px; border-radius: 6px; background: #f0f3ee; color: #53615b; font-size: 10px; }
.chip.warning { color: #954729; background: #fae8df; }
.vip-chip { font-weight: 700; border: 1px solid transparent; }
.vip-chip.vip-yes { color: #47620d; background: #edf5c8; border-color: #d7e59a; }
.vip-chip.vip-no { color: #954729; background: #fae8df; border-color: #efd0c2; }
.vip-chip.vip-unknown { color: #6b746f; background: #eef0ed; border-color: #dfe3df; }
.card-footer { margin-top: 16px; display: flex; justify-content: space-between; align-items: center; }
.finance-box { margin: 14px 0 0; padding: 14px 15px; border-radius: 10px; background: #f1f4e5; display: grid; grid-template-columns: 1fr auto; gap: 3px 12px; }
.finance-box > span { color: #6a776f; font-size: 9px; font-weight: 800; letter-spacing: .1em; }.finance-box strong { grid-row: 1/3; grid-column: 2; align-self: center; font: 800 17px "Manrope", sans-serif; }.finance-box small { color: var(--muted); font-size: 9px; line-height: 1.4; }
.lease-line { margin-top: 8px; padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px; display: flex; flex-direction: column; gap: 3px; }.lease-line strong { font-size: 11px; }.lease-line span { color: var(--muted); font-size: 9px; }
.price strong { display: block; font: 800 24px "Manrope", sans-serif; letter-spacing: -.04em; }.price span { color: var(--muted); font-size: 10px; }
.source-link { font-size: 12px; font-weight: 700; color: var(--rust); text-underline-offset: 4px; }

.comparison-section { background: #eeeee6; }
.archive-section { padding-top: 30px; background: #f3f1e8; border-top: 1px solid var(--line); }
.archive-section .section-heading p:last-child { max-width: 650px; color: var(--muted); }
.archive-grid { display: grid; gap: 13px; }
.archive-card { min-height: 125px; padding: 14px; display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center; border: 1px solid var(--line); border-radius: 15px; background: white; }
.archive-card img { width: 150px; height: 98px; object-fit: cover; border-radius: 10px; }.archive-card h3 { margin: 3px 0 5px; font-size: 18px; }.archive-card p { margin: 0 0 3px; color: #4f5d57; }.archive-card small { color: var(--muted); }
.archive-label { color: var(--rust); font-size: 9px; font-weight: 800; letter-spacing: .12em; }.archive-actions { display: flex; flex-direction: column; align-items: center; gap: 9px; }.archive-actions a { color: var(--rust); font-size: 10px; font-weight: 700; }.archive-empty { color: var(--muted); }
.comparison-heading { align-items: center; }
.comparison-heading p:last-child { max-width: 630px; color: var(--muted); }
.legend { display: flex; gap: 20px; font-size: 12px; color: var(--muted); }
.legend i { width: 8px; height: 8px; display: inline-block; border-radius: 50%; }.yes { background: #709024; }.no { background: #bdc3bf; }
.comparison-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--line); background: white; }
table { width: 100%; min-width: 1050px; border-collapse: collapse; }
th, td { padding: 17px 22px; border-bottom: 1px solid var(--line); text-align: center; font-size: 14px; }
th:first-child, td:first-child { text-align: left; color: var(--muted); width: 210px; }
thead th { padding-top: 25px; padding-bottom: 25px; background: #f8f8f4; color: var(--ink); font-family: "Manrope", sans-serif; }
tbody tr:last-child td { border-bottom: 0; }
.table-group td { padding: 13px 22px; background: #e8ece7; color: #4c5b55 !important; font-size: 11px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; text-align: left !important; }
.table-group-vip td { background: var(--ink); color: white !important; }
.vip-mark { margin-left: 8px; padding: 3px 6px; border-radius: 4px; background: var(--lime); color: var(--ink); font-size: 8px; font-weight: 800; letter-spacing: .08em; vertical-align: 1px; }
.table-yes { color: #5d791b; font-weight: 800; }.table-no { color: #a2aaa5; }
.table-location { color: var(--muted); font-size: 11px; }.table-map-link { color: var(--rust); font-size: 11px; font-weight: 700; text-underline-offset: 3px; }
.table-no-explicit { color: #a95538; font-weight: 700; }
.score { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 800; }
.buyer-note { margin-top: 22px; padding: 23px 25px; display: flex; gap: 16px; align-items: flex-start; border: 1px solid #d9d7c9; border-radius: 14px; background: #f7f5eb; }
.note-icon { flex: 0 0 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--rust); color: white; font-weight: 800; }
.buyer-note strong { font-family: "Manrope", sans-serif; }.buyer-note p { margin: 5px 0 0; color: var(--muted); line-height: 1.6; }
.buy-checklist { margin-top: 42px; display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid #d9d7c9; border-radius: 18px; overflow: hidden; background: #f8f7f0; }
.checklist-title { grid-column: 1/-1; padding: 27px 28px 20px; border-bottom: 1px solid #d9d7c9; }
.checklist-title .eyebrow { margin-bottom: 7px; }.checklist-title h3 { margin: 0; font-size: 22px; letter-spacing: -.025em; }
.buy-checklist article { padding: 24px 20px; border-right: 1px solid #d9d7c9; }.buy-checklist article:last-child { border-right: 0; }
.buy-checklist article > span { display: block; margin-bottom: 17px; color: var(--rust); font: 800 11px "Manrope", sans-serif; letter-spacing: .12em; }
.buy-checklist article strong { font: 700 14px "Manrope", sans-serif; }.buy-checklist article p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }

footer { padding: 30px clamp(24px, 7vw, 112px); background: var(--ink); color: white; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
footer > div { display: flex; align-items: center; gap: 9px; font-weight: 700; } footer p { margin: 0; color: #9eaca6; font-size: 12px; }

.market-hero { min-height: 420px; padding: 70px clamp(24px,7vw,112px); display: grid; grid-template-columns: 1fr 260px; gap: 60px; align-items: center; background: #f6f3ea; }.market-hero h1 { font-size: clamp(48px,6vw,78px); }.market-hero > div > p:last-child { max-width: 690px; color: var(--muted); font-size: 17px; line-height: 1.65; }.market-hero-stat { width: 220px; height: 220px; border-radius: 50%; background: var(--ink); color: white; display: grid; place-content: center; text-align: center; box-shadow: var(--shadow); }.market-hero-stat strong { color: var(--lime); font: 800 68px/1 "Manrope",sans-serif; }.market-hero-stat span { margin-top: 8px; color: #b6c1bc; font-size: 12px; line-height: 1.4; }
.market-summary { padding: 24px clamp(24px,7vw,112px); display: grid; grid-template-columns: repeat(4,1fr); background: var(--ink); color: white; }.market-summary div { padding: 0 28px; border-right: 1px solid rgba(255,255,255,.16); display: flex; flex-direction: column; gap: 5px; }.market-summary div:first-child { padding-left: 0; }.market-summary div:last-child { border: 0; }.market-summary span { color: #aebbb5; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; }.market-summary strong { font-family: "Manrope",sans-serif; }
.market-controls { display: flex; gap: 10px; }.market-controls input { min-height: 48px; width: 210px; padding: 0 17px; border: 1px solid var(--line); border-radius: 100px; background: white; }.market-controls select { margin: 0; }.market-notice { margin-bottom: 25px; padding: 17px 20px; border-left: 4px solid var(--rust); background: #f6eee8; color: #6d5d55; font-size: 13px; }.market-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }.market-card { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: white; transition: .2s ease; }.market-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }.market-selected { border-color: #aac424; box-shadow: 0 0 0 3px rgba(190,215,47,.18); }.market-card-art { height: 125px; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(135deg,#73847c,#253a32); color: white; }.market-card-art.gtx { background: linear-gradient(135deg,#8e5644,#2e302f); }.market-card-art span { font-size: 9px; font-weight: 800; letter-spacing: .14em; }.market-card-art strong { align-self: flex-end; color: rgba(255,255,255,.24); font: 800 58px/1 "Manrope",sans-serif; }.market-card-body { padding: 20px; }.market-id { margin: 0; color: var(--muted); font-size: 9px; letter-spacing: .1em; }.market-card h3 { margin: 7px 0 17px; font-size: 18px; }.market-specs { padding: 13px 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.market-specs span { display: flex; flex-direction: column; }.market-specs span + span { padding-left: 15px; border-left: 1px solid var(--line); }.market-specs small { color: var(--muted); font-size: 9px; }.market-price { display: block; margin: 17px 0; font: 800 23px "Manrope",sans-serif; }.market-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }.market-actions button { min-height: 36px; padding: 0 13px; border: 0; border-radius: 100px; background: var(--lime); color: var(--ink); font-size: 10px; font-weight: 800; cursor: pointer; }.market-actions a { color: var(--rust); font-size: 10px; font-weight: 700; }

dialog { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 22px; color: var(--ink); box-shadow: 0 30px 100px rgba(0,0,0,.28); }
dialog::backdrop { background: rgba(12,22,18,.65); backdrop-filter: blur(5px); }
#carForm { padding: 30px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; }.dialog-head h2 { margin: 0; font-size: 33px; }.dialog-head .eyebrow { margin-bottom: 6px; }
.close-button { border: 0; background: transparent; color: var(--muted); font-size: 34px; cursor: pointer; }
.form-intro { color: var(--muted); font-size: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-grid label { color: #52605a; font-size: 12px; font-weight: 600; }
.form-grid input[type="text"], .form-grid input[type="number"], .form-grid input[type="url"] { width: 100%; height: 44px; margin-top: 6px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fbfbf8; }
.full { grid-column: 1/-1; }
fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 15px; } legend { padding: 0 6px; color: #52605a; font-size: 12px; font-weight: 700; }
.check-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 11px; }.check-grid label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.dialog-actions { margin-top: 23px; display: flex; justify-content: flex-end; gap: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.empty-card { min-height: 280px; padding: 35px; border: 2px dashed var(--line); border-radius: 20px; display: grid; place-items: center; text-align: center; color: var(--muted); }

@media (max-width: 950px) {
  .hero { grid-template-columns: 1fr; padding-top: 55px; }.hero-visual { min-height: 330px; }.hero-orbit { width: 290px; height: 290px; }
  .summary-strip { grid-template-columns: 1fr 1fr; gap: 22px 0; }.summary-strip > div:nth-child(2) { border: 0; }
  .car-grid { grid-template-columns: repeat(2,1fr); }
  .check-grid { grid-template-columns: repeat(2,1fr); }
  .buy-checklist { grid-template-columns: repeat(2,1fr); }.buy-checklist article { border-bottom: 1px solid #d9d7c9; }.buy-checklist article:nth-child(odd) { border-right: 0; }
  .market-grid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 650px) {
  .topbar { min-height: 65px; }.topbar nav a { display: none; }.topbar nav a.nav-mobile { display: inline-flex; font-weight: 700; }.topbar nav { gap: 8px; }
  h1 { font-size: 43px; }.hero { padding: 45px 22px; }.hero-visual { min-height: 300px; }.stat-side { right: 0; }
  .summary-strip { grid-template-columns: 1fr 1fr; padding: 25px 22px; }.summary-strip > div { padding: 0 12px; }.summary-strip strong { font-size: 16px; }
  .section { padding: 65px 22px; }.section-heading { align-items: flex-start; flex-direction: column; }.section-tools { width: 100%; }.select-label { flex: 1; } select { width: 100%; }
  .car-grid { grid-template-columns: 1fr; }.car-image { height: 215px; }
  .gallery-button { opacity: 1; }
  .comparison-heading { align-items: flex-start; }.legend { flex-wrap: wrap; }
  footer { align-items: flex-start; flex-direction: column; }
  .form-grid { grid-template-columns: 1fr; }.full { grid-column: auto; }.check-grid { grid-template-columns: 1fr 1fr; }
  .buy-checklist { grid-template-columns: 1fr; }.buy-checklist article { border-right: 0; }
  .archive-card { grid-template-columns: 90px 1fr; }.archive-card img { width: 90px; height: 80px; }.archive-actions { grid-column: 1/-1; align-items: stretch; }
  .market-hero { grid-template-columns: 1fr; padding: 50px 22px; }.market-hero-stat { width: 170px; height: 170px; }.market-summary { grid-template-columns: 1fr 1fr; gap: 20px 0; }.market-summary div:nth-child(2) { border: 0; }.market-heading { align-items: stretch; }.market-controls { flex-direction: column; width: 100%; }.market-controls input,.market-controls select { width: 100%; }.market-grid { grid-template-columns: 1fr; }
}
