:root {
  color-scheme: light;
  --ink: #132541;
  --navy: #122e55;
  --blue: #234a80;
  --muted: #506078;
  --line: #dce3eb;
  --wash: #f3f6f9;
  --white: #fff;
  --wide: 1240px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: auto; }
button, select, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #356fc2; outline-offset: 3px; }
.wrap { width: min(var(--wide), calc(100% - 38px)); margin-inline: auto; }
.skip { position: absolute; z-index: 5; top: 10px; left: 10px; padding: 12px; color: white; background: var(--navy); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }
.site-header { border-bottom: 1px solid var(--line); background: var(--white); }
.header-inner { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 23px; font-weight: 760; letter-spacing: -.045em; }
.brand > span > span { color: var(--blue); }
.brand svg { width: 39px; height: 39px; flex: none; }
.header-inner nav { display: flex; align-items: center; gap: clamp(15px, 3vw, 42px); font-size: .94rem; }
.header-inner nav a { padding-block: 5px; }
.header-inner nav a:hover, .header-inner nav [aria-current] { color: var(--blue); text-decoration: underline; text-underline-offset: 7px; }
.header-action { display: none; padding: 10px 15px; border: 1px solid var(--line); border-radius: 9px; font-size: .88rem; font-weight: 650; }
.header-action:hover { background: var(--wash); }
.hero { display: grid; background: var(--wash); border-radius: 21px; overflow: hidden; margin-top: 25px; }
.hero-content { padding: clamp(21px, 4vw, 56px); }
.hero-photo { min-width: 0; }
.hero-photo img { aspect-ratio: 1.7; width: 100%; height: 100%; object-fit: cover; object-position: 57% center; }
.eyebrow { color: var(--blue); margin: 0 0 12px; font-size: .78rem; font-weight: 730; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { letter-spacing: -.045em; line-height: 1.1; text-wrap: balance; }
h1 { margin-bottom: 17px; font-size: clamp(2.25rem, 4.5vw, 4.4rem); font-weight: 780; }
h2 { font-size: clamp(1.65rem, 3vw, 2.45rem); margin-bottom: 15px; }
h3 { margin-bottom: 10px; font-size: 1.36rem; }
.lead { color: var(--muted); font-size: clamp(1rem, 1.5vw, 1.12rem); line-height: 1.63; max-width: 58ch; }
.muted { color: var(--muted); }
.hero-note { margin: 14px 0 0; font-size: .85rem; }
.quick-search, .filters { display: grid; gap: 10px; }
.quick-search { max-width: 640px; margin-top: 24px; }
label { color: var(--ink); min-width: 0; display: grid; gap: 6px; }
label > span { font-size: .78rem; font-weight: 650; }
input, select { min-height: 43px; width: 100%; color: var(--ink); background: white; border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; }
input::placeholder { color: #6c788b; }
.primary, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 9px; min-height: 45px; padding: 9px 15px; border: 1px solid transparent; border-radius: 8px; font-weight: 680; }
.primary { color: white; background: var(--navy); }
.primary:hover { background: var(--blue); }
.secondary { color: var(--navy); background: white; border-color: var(--line); }
.secondary:hover { background: var(--wash); }
.section { padding-block: 34px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.text-link { color: var(--blue); font-weight: 670; font-size: .92rem; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.brand-grid { display: grid; gap: 9px; grid-template-columns: repeat(2, 1fr); }
.brand-tile { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 10px; padding: 11px 9px; min-height: 59px; white-space: nowrap; text-align: center; }
.brand-tile:hover { background: var(--wash); border-color: #8ba6c6; }
.brand-tile span { display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: var(--wash); font-size: .65rem; font-weight: 800; letter-spacing: -.025em; color: var(--blue); flex: none; }
.brand-tile b { font-size: .79rem; }
.section-tint { background: var(--wash); }
.car-grid { display: grid; gap: 18px; }
.car-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: white; }
.car-card:hover { border-color: #9ab0cb; }
.card-image { display: block; overflow: hidden; background: var(--wash); }
.card-image img { aspect-ratio: 1.7; object-fit: cover; transition: transform .22s ease-out; }
.card-image:hover img { transform: scale(1.025); }
.card-body { padding: 16px; display: flex; flex-direction: column; flex: 1; }
.card-meta, .spec-line { font-size: .81rem; color: var(--muted); }
.card-meta { margin-bottom: 8px; }
.card-meta span, .spec-line span { padding-inline: 2px; }
.spec-line { margin: 0 0 16px; }
.card-bottom { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; flex-wrap: wrap; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.card-bottom b { font-size: 1.2rem; letter-spacing: -.045em; }
.card-bottom a { font-size: .83rem; font-weight: 660; color: var(--blue); }
.card-bottom a:hover { text-decoration: underline; }
.guide { display: grid; gap: 24px; }
.guide ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; align-content: start; }
.guide li { display: grid; gap: 4px; padding: 15px 15px 15px 18px; background: var(--wash); border-radius: 10px; }
.guide li span { color: var(--muted); font-size: .9rem; }
.site-footer { padding: 33px 0 20px; background: var(--wash); border-top: 1px solid var(--line); }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; align-items: start; }
.footer-main p, .footer-note { color: var(--muted); font-size: .86rem; }
.footer-main p { margin: 8px 0 0; }
.footer-main nav { display: flex; flex-wrap: wrap; gap: 10px 20px; font-size: .9rem; }
.footer-main nav a:hover { text-decoration: underline; }
.footer-note { padding-top: 14px; margin-top: 20px; border-top: 1px solid var(--line); }
.page-heading { padding-top: 30px; padding-bottom: 14px; }
.page-heading h1, .text-page h1 { font-size: clamp(2rem, 4vw, 3.65rem); }
.breadcrumb { margin-bottom: 18px; color: var(--muted); font-size: .87rem; overflow-wrap: anywhere; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { padding-inline: 4px; }
.filters { grid-template-columns: 1fr 1fr; align-items: end; padding: 14px; background: var(--wash); border: 1px solid var(--line); border-radius: 12px; }
.filters .secondary { min-height: 43px; font-size: .84rem; }
.listing { padding-bottom: 52px; }
.results-bar { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 13px; margin-block: 18px; }
.results-bar p { margin: 0 0 7px; font-weight: 630; }
.results-bar select { max-width: 100%; }
.empty { padding: 28px; background: var(--wash); border-radius: 12px; }
.detail-main { display: grid; gap: 20px; align-items: start; }
.gallery { min-width: 0; }
.gallery figure { margin: 0; background: var(--wash); border-radius: 14px; overflow: hidden; }
.gallery figure img { aspect-ratio: 1.6; object-fit: cover; }
.gallery figcaption { padding: 8px 14px; color: var(--muted); font-size: .86rem; }
.thumbnails { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.thumbnail { min-width: 0; border: 1px solid var(--line); padding: 4px; border-radius: 8px; color: var(--ink); background: white; }
.thumbnail[aria-pressed=true] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.thumbnail img { aspect-ratio: 1.7; object-fit: cover; border-radius: 5px; }
.thumbnail span { display: block; padding: 4px; font-size: .75rem; }
.detail-info { padding: clamp(15px, 2.7vw, 28px); border: 1px solid var(--line); border-radius: 14px; }
.detail-info h2, .article h2 { font-size: 1.55rem; }
.detail-price { font-size: clamp(1.8rem, 4vw, 2.45rem); font-weight: 760; letter-spacing: -.045em; margin-bottom: 16px; }
.specs { margin-block: 0 22px; }
.specs div { display: flex; justify-content: space-between; gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; text-align: right; font-weight: 620; }
.article { padding-block: 34px 48px; }
.article p:not(.breadcrumb) { max-width: 67ch; }
.article h2 { margin-top: 25px; }
.text-page { min-height: 57vh; }
@media (min-width: 540px) {
  .wrap { width: min(var(--wide), calc(100% - 54px)); }
  .quick-search { grid-template-columns: 1fr 1fr; align-items: end; }
  .quick-search button { grid-column: span 2; justify-self: start; }
  .brand-grid { grid-template-columns: repeat(4, 1fr); }
  .car-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 20px; }
}
@media (min-width: 810px) {
  .header-action { display: inline-flex; gap: 8px; }
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); }
  .hero-photo img { aspect-ratio: auto; min-height: 390px; }
  .hero { margin-top: 37px; }
  .section { padding-block: 46px; }
  .car-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide { grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
  .detail-main { grid-template-columns: 1.38fr 1fr; gap: 28px; }
}
@media (min-width: 1090px) {
  .brand-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); }
  .brand-tile { justify-content: center; }
  .brand-tile span { width: 28px; height: 28px; }
  .filters { grid-template-columns: repeat(5, minmax(0, 1fr)) 1.25fr; }
  .filters .secondary { grid-column: 6; justify-self: end; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}
