/* Layout: the original Midwest Auto layout. Black header and full-bleed hero, white lot sections,
   red accents and calls to action. Content eases up into place as it scrolls into view. */
:root {
  --black: #0a0a0a;
  --charcoal: #1f1f1f;
  --steel: #333333;
  --red: #e31732;
  --red-hover: #c3132b;
  --red-soft: rgba(227, 23, 50, 0.12);
  --white: #ffffff;
  --muted: #ededed;
  --mist: #f6f6f6;
  --line: #e0e0e0;
  --text: #0a0a0a;
  --text-muted: #666666;
  --text-on-dark: #b5b5b5;
  --ok: #1e7b4b;
  --ok-bg: #e7f5ed;
  --warn: #8a5300;
  --warn-bg: #fff3dc;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 6px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.65, 0.3, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; letter-spacing: 0.04em; text-transform: uppercase; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--red); color: #fff; padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { left: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Motion: things ease up into place ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); will-change: opacity, transform; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal-fade { opacity: 0; transition: opacity 1.1s ease; transition-delay: var(--d, 0s); }
.js .reveal-fade.in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .reveal-fade { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 26px; border-radius: var(--radius); border: 2px solid transparent;
  font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hover); box-shadow: 0 10px 24px rgba(227, 23, 50, 0.35); }
.btn-dark { background: var(--black); color: #fff; }
.btn-dark:hover { background: var(--steel); }
.btn-outline { border-color: var(--black); color: var(--black); background: transparent; }
.btn-outline:hover { background: var(--black); color: #fff; }
.btn-ghost { border-color: rgba(255, 255, 255, 0.85); color: #fff; background: transparent; }
.btn-ghost:hover { background: #fff; color: var(--black); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--black); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Bars ---------- */
.announce { background: var(--red); color: #fff; text-align: center; font-size: 14px; font-weight: 500; padding: 8px var(--gutter); }
.preview-bar { background: #ffe9a8; color: #3a2a00; font-size: 13px; text-align: center; padding: 8px var(--gutter); line-height: 1.45; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: rgba(10, 10, 10, 0.97); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.06); transition: box-shadow 0.3s ease; }
.site-header.scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.logo { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: 0.06em; text-decoration: none; color: #fff; white-space: nowrap; flex: none; }
.logo-red { color: var(--red); }
.main-nav { display: flex; gap: 6px; margin-inline: auto; }
.main-nav a { font-family: var(--display); font-weight: 400; font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none; color: #d4d4d4; padding: 10px 14px; position: relative; white-space: nowrap; transition: color 0.2s ease; }
.main-nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.main-nav a:hover { color: #fff; }
.main-nav a:hover::after { transform: scaleX(1); }
.main-nav a[aria-current="page"] { color: var(--red); }
.header-actions { display: flex; align-items: center; gap: 16px; flex: none; }
.header-phone { display: inline-flex; align-items: center; gap: 8px; color: #d4d4d4; text-decoration: none; font-size: 14px; white-space: nowrap; }
.header-phone svg { width: 16px; height: 16px; color: var(--red); }
.header-phone:hover { color: #fff; }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: 8px; cursor: pointer; border-radius: var(--radius); }
.nav-toggle svg { width: 26px; height: 26px; }
@media (max-width: 1100px) { .header-phone span { display: none; } }
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .main-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; margin: 0; background: var(--black); border-top: 1px solid var(--steel); padding: 6px var(--gutter) 14px; }
  .site-header.nav-open .main-nav { display: flex; animation: drop 0.25s var(--ease); }
  .main-nav a { padding: 14px 2px; font-size: 16px; border-bottom: 1px solid var(--charcoal); }
  .main-nav a::after { display: none; }
}
@media (max-width: 420px) { .header-actions .btn { display: none; } }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(90vh, 880px); display: flex; align-items: flex-end; background: var(--black); color: #fff; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(42% 34% at 74% 80%, rgba(227, 23, 50, 0.72) 0%, rgba(227, 23, 50, 0.2) 48%, transparent 72%),
    radial-gradient(26% 12% at 66% 94%, rgba(255, 64, 86, 0.55) 0%, transparent 70%),
    linear-gradient(178deg, transparent 72%, rgba(227, 23, 50, 0.14) 86%, transparent 100%),
    radial-gradient(70% 46% at 82% 6%, rgba(255, 255, 255, 0.10) 0%, transparent 62%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 2px, transparent 2px 140px),
    linear-gradient(180deg, #151515 0%, #0b0b0b 58%, #050505 100%);
}
.hero-bg img { width: 100%; height: 100%; object-fit: cover; animation: slow-zoom 14s ease-out both; }
@keyframes slow-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 10, 10, 0.92) 0%, rgba(10, 10, 10, 0.7) 42%, rgba(10, 10, 10, 0.12) 100%), linear-gradient(0deg, rgba(10, 10, 10, 0.75) 0%, transparent 48%); }
.hero-content { position: relative; z-index: 2; padding-block: clamp(120px, 18vh, 200px) clamp(56px, 10vh, 100px); }
.hero h1 { font-weight: 500; font-size: clamp(2.5rem, 8.4vw, 6.4rem); line-height: 1.02; letter-spacing: 0.035em; }
@media (max-width: 420px) { .hero h1 { font-size: 2.3rem; letter-spacing: 0.02em; } }
.hero h1 .line { display: block; }
.hero h1 .red { color: var(--red); }
.hero-sub { margin-top: 24px; max-width: 48ch; color: #d6d6d6; font-size: clamp(1rem, 1.5vw, 1.2rem); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 18px; width: 22px; height: 36px; border: 2px solid rgba(255, 255, 255, 0.45); border-radius: 12px; transform: translateX(-50%); }
.scroll-cue::before { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(10px); } }
@media (max-width: 640px) { .scroll-cue { display: none; } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 9vw, 104px); }
.section.tight-top { padding-top: 0; }
.section-dark { background: var(--black); color: #fff; }
.section-mist { background: var(--mist); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
.section-head p { margin-top: 12px; color: var(--text-muted); font-size: 1.08rem; }
.section-dark .section-head p { color: var(--text-on-dark); }
.eyebrow { font-family: var(--display); font-size: 14px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.center { text-align: center; }
.center-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: clamp(36px, 5vw, 52px); }
.page-hero { background: var(--black); color: #fff; padding-block: clamp(64px, 9vw, 104px); text-align: center; position: relative; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 80% at 50% 120%, rgba(227, 23, 50, 0.32), transparent 70%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-size: clamp(2.4rem, 6.4vw, 4.4rem); font-weight: 600; }
.page-hero p { margin: 14px auto 0; max-width: 62ch; color: #cfcfcf; font-size: clamp(1rem, 1.5vw, 1.15rem); }

/* ---------- Vehicle cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card-grid.auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .card-grid, .card-grid.auto { grid-template-columns: minmax(0, 1fr); } }
.vcard { display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s ease; }
.vcard:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(10, 10, 10, 0.13); border-color: transparent; }
.vcard-media { position: relative; display: block; aspect-ratio: 16 / 10; max-width: 100%; background: var(--muted); overflow: hidden; text-decoration: none; }
.vcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.vcard:hover .vcard-media img { transform: scale(1.06); }
.ph-light { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #a3a3a3; }
.ph-light svg { width: 46%; max-width: 190px; height: auto; }
.ph-light span { font-family: var(--display); font-size: 13px; letter-spacing: 0.24em; text-transform: uppercase; }
.chip { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 4px; font-family: var(--display); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.2; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-available { background: var(--ok-bg); color: var(--ok); }
.chip-soon { background: var(--black); color: #fff; }
.chip-soon::before { background: var(--red); animation: pulse 1.6s ease-in-out infinite; }
.chip-pending { background: #fff; color: var(--steel); }
.chip-special { background: var(--warn-bg); color: var(--warn); }
@keyframes pulse { 50% { opacity: 0.35; } }
.vcard-body { display: flex; flex-direction: column; gap: 4px; padding: 22px 22px 24px; flex: 1; min-width: 0; }
.vcard-title { font-size: 1.35rem; letter-spacing: 0.05em; }
.vcard-title a { text-decoration: none; transition: color 0.2s ease; }
.vcard-title a:hover { color: var(--red); }
.vcard-sub { color: var(--text-muted); font-size: 14.5px; }
.vcard-price { margin-top: 12px; }
.price { display: block; font-family: var(--display); font-weight: 600; font-size: 1.95rem; line-height: 1; letter-spacing: 0.02em; color: var(--red); font-variant-numeric: tabular-nums; }
.price-soft { display: block; font-family: var(--display); font-weight: 500; font-size: 1.35rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); line-height: 1.1; }
.price-note { display: block; margin-top: 6px; font-size: 13px; color: var(--text-muted); }
.vcard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; padding-top: 20px; }
.vcard-actions .btn { min-height: 44px; padding: 0 10px; font-size: 13.5px; }
.empty-state { grid-column: 1 / -1; border: 2px dashed var(--line); border-radius: 8px; padding: 40px 24px; text-align: center; color: var(--text-muted); }
.empty-state h3 { color: var(--text); font-size: 1.5rem; margin-bottom: 8px; }
.empty-state .btn { margin-top: 18px; }
.load-error { grid-column: 1 / -1; background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 14px 16px; }
.loading-line { grid-column: 1 / -1; color: var(--text-muted); padding-block: 24px; text-align: center; }

/* ---------- Why choose us ---------- */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 980px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .features { grid-template-columns: minmax(0, 1fr); } }
.feature { background: var(--charcoal); border: 1px solid var(--steel); border-radius: 8px; padding: 32px 24px; text-align: center; min-width: 0; transition: transform 0.35s var(--ease), border-color 0.35s ease; }
.feature:hover { transform: translateY(-5px); border-color: var(--red); }
.feature .icon { width: 60px; height: 60px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); transition: background-color 0.3s ease, color 0.3s ease; }
.feature:hover .icon { background: var(--red); color: #fff; }
.feature .icon svg { width: 28px; height: 28px; }
.feature h3 { font-size: 1.2rem; letter-spacing: 0.08em; }
.feature p { margin-top: 10px; color: var(--text-on-dark); font-size: 15px; }
.section:not(.section-dark) .feature { background: #fff; border-color: var(--line); }
.section:not(.section-dark) .feature p { color: var(--text-muted); }

/* ---------- Red band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--red); color: #fff; text-align: center; padding-block: clamp(60px, 8vw, 92px); }
.cta-band::before { content: ""; position: absolute; inset: -40% -10%; background: radial-gradient(40% 60% at 15% 50%, rgba(255, 255, 255, 0.14), transparent 70%), radial-gradient(40% 60% at 85% 50%, rgba(0, 0, 0, 0.18), transparent 70%); }
.cta-band .wrap { position: relative; }
.cta-band h2 { font-size: clamp(2.2rem, 5.4vw, 3.6rem); }
.cta-band p { margin: 12px auto 0; max-width: 56ch; font-size: clamp(1.02rem, 1.6vw, 1.2rem); color: rgba(255, 255, 255, 0.92); }
.cta-band .center-actions { margin-top: 30px; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .reviews { grid-template-columns: minmax(0, 1fr); } }
.review { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 28px; display: flex; flex-direction: column; gap: 14px; margin: 0; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.review:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(10, 10, 10, 0.1); }
.stars { color: var(--red); letter-spacing: 3px; font-size: 18px; }
.stars-off { color: var(--line); }
.review blockquote { margin: 0; font-style: italic; color: #333; }
.review figcaption { margin-top: auto; font-family: var(--display); letter-spacing: 0.12em; text-transform: uppercase; font-size: 14px; }

/* ---------- Inventory page ---------- */
.filter-bar { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 14px; align-items: end; box-shadow: 0 8px 24px rgba(10, 10, 10, 0.05); }
.filter-bar .field label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); font-weight: 600; }
.filter-bar .wide { grid-column: span 2; }
@media (max-width: 520px) { .filter-bar .wide { grid-column: auto; } }
.filters-toggle { display: none; }
@media (max-width: 760px) {
  .filters-toggle { display: inline-flex; }
  .filter-bar { display: none; }
  .filter-bar.open { display: grid; animation: drop 0.25s var(--ease); }
}
.inv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 24px 0 22px; }
.inv-count { font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); font-size: 15px; }
.inv-count b { color: var(--text); font-weight: 600; }
.toolbar-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar-actions select { width: auto; min-width: 200px; }
.fineprint { margin-top: 26px; font-size: 13px; color: var(--text-muted); }

/* ---------- Vehicle page ---------- */
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 26px; color: var(--text-muted); text-decoration: none; font-size: 14.5px; transition: color 0.2s ease; }
.back-link:hover { color: var(--red); }
.vd { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; padding-block: 22px clamp(40px, 6vw, 72px); }
@media (max-width: 900px) { .vd { grid-template-columns: minmax(0, 1fr); } }
.gallery-main { position: relative; aspect-ratio: 4 / 3; max-width: 100%; border-radius: 8px; overflow: hidden; background: var(--muted); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s ease; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: none; width: 96px; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--muted); transition: border-color 0.2s ease; }
.thumbs button[aria-current="true"] { border-color: var(--red); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.vd-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.vd-info .chip { position: static; justify-self: start; }
.vd-info h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.vd-sub { color: var(--text-muted); font-size: 1.05rem; }
.vd-price { margin-top: 10px; }
.vd-price .price { font-size: 2.6rem; }
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.specs div { background: var(--mist); border-radius: 6px; padding: 12px 14px; min-width: 0; }
.specs dt { font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); }
.specs dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.vd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.vd-actions .btn { padding: 10px 12px; white-space: normal; line-height: 1.2; text-align: center; }
.vd-actions .full { grid-column: 1 / -1; }
.vd-vin { margin-top: 12px; font-size: 13.5px; color: var(--text-muted); overflow-wrap: anywhere; }
.vd-vin b { color: var(--text); font-weight: 600; }
.disclosure { margin-top: 16px; background: var(--warn-bg); color: #5a3800; border-radius: 6px; padding: 14px 16px; font-size: 15px; }
.disclosure strong { display: block; font-family: var(--display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--warn); margin-bottom: 2px; }
.vd-below { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); padding-bottom: clamp(40px, 6vw, 72px); }
@media (max-width: 900px) { .vd-below { grid-template-columns: minmax(0, 1fr); } }
.vd-block + .vd-block { margin-top: 28px; }
.vd-block h2 { font-size: 1.5rem; margin-bottom: 12px; }
.vd-block p { color: #333; max-width: 65ch; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; }
.feature-list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; background: var(--red); border-radius: 2px; transform: rotate(45deg); }
@media (max-width: 480px) { .feature-list { grid-template-columns: minmax(0, 1fr); } }
.finance-note { margin-top: 14px; font-size: 14px; color: var(--text-muted); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; }
.req { color: var(--red); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], input[type="search"], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #d6d6d6; border-radius: var(--radius); background: #fff; color: var(--text); font-size: 16px; line-height: 1.3;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, #777 50%), linear-gradient(135deg, #777 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: #333; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.three { grid-template-columns: 2fr 1fr 1fr; }
@media (max-width: 600px) { .form-grid, .form-grid.three { grid-template-columns: minmax(0, 1fr); } }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: clamp(22px, 4vw, 40px); min-width: 0; box-shadow: 0 10px 30px rgba(10, 10, 10, 0.06); }
.form-card > h2 { font-size: clamp(1.6rem, 3vw, 2rem); }
.form-card > p { margin-top: 6px; color: var(--text-muted); }
.form-card form { margin-top: 22px; }
.form-section + .form-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-section h3 { font-size: 1.1rem; letter-spacing: 0.1em; color: var(--red); margin-bottom: 16px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 24px; }
.form-foot small { flex: 1 1 240px; color: var(--text-muted); font-size: 12.5px; line-height: 1.5; }
.form-msg { margin-top: 14px; padding: 12px 14px; border-radius: 6px; font-size: 15px; }
.form-msg.ok { background: var(--ok-bg); color: var(--ok); }
.form-msg.err { background: #fde8eb; color: #a3102a; }
.form-msg.info { background: var(--warn-bg); color: var(--warn); }
.form-done { padding: 12px 0; animation: drop 0.4s var(--ease); }
.form-done h3 { font-size: 1.7rem; color: var(--red); }
.form-done p { margin-top: 8px; color: var(--text-muted); }

/* ---------- Content pages ---------- */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 56px); align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.fin-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 44px); align-items: start; }
@media (max-width: 960px) { .fin-layout { grid-template-columns: minmax(0, 1fr); } }
.side-card { background: var(--black); color: #fff; border-radius: 8px; padding: 28px; position: sticky; top: calc(env(safe-area-inset-top, 0px) + var(--header-h) + 20px); }
.side-card h3 { font-size: 1.3rem; }
.side-card p, .side-card li { color: var(--text-on-dark); font-size: 15px; }
.side-card ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 12px; }
.side-card li { display: flex; gap: 10px; }
.side-card li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; background: var(--red); border-radius: 2px; transform: rotate(45deg); }
.side-card .btn { margin-top: 22px; }
@media (max-width: 960px) { .side-card { position: static; } }
.prose { max-width: 68ch; }
.prose p { color: #333; font-size: 1.05rem; }
.prose p + p { margin-top: 1em; }
.prose h2 { font-size: 1.6rem; margin: 1.6em 0 0.5em; }
.value-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .value-cards { grid-template-columns: minmax(0, 1fr); } }
.legal-card { margin-top: 24px; font-size: 13.5px; color: var(--text-muted); border-left: 3px solid var(--red); padding: 4px 0 4px 14px; line-height: 1.6; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; transition: border-color 0.3s ease, transform 0.3s var(--ease); }
.contact-list li:hover { border-color: var(--red); transform: translateX(4px); }
.contact-list .icon { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list h3 { font-size: 1rem; letter-spacing: 0.12em; color: var(--text-muted); }
.contact-list p, .contact-list a { font-size: 1.1rem; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--red); }
.contact-list .sub { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; color: var(--text-muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--black); color: #d4d4d4; padding-block: 64px 28px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 36px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: minmax(0, 1fr); } }
.footer-grid > div { min-width: 0; }
.footer-grid h2 { font-size: 16px; letter-spacing: 0.14em; color: #fff; margin-bottom: 16px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-grid a { text-decoration: none; color: #bdbdbd; transition: color 0.2s ease; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--red); }
.footer-brand p { margin-top: 14px; color: #9d9d9d; font-size: 14.5px; max-width: 34ch; }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; color: #bdbdbd; overflow-wrap: anywhere; }
.footer-contact svg { width: 17px; height: 17px; flex: none; margin-top: 4px; color: var(--red); }
.footer-hours { color: #bdbdbd; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.social-link { display: inline-flex; padding: 7px 14px; border: 1px solid var(--steel); border-radius: 999px; font-size: 13px; }
.social-link:hover { border-color: var(--red); }
.footer-legal { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--charcoal); display: grid; gap: 8px; font-size: 12.5px; color: #8f8f8f; line-height: 1.55; }
.footer-legal .legal-line { color: #bdbdbd; letter-spacing: 0.02em; }

/* ---------- Mobile action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--black); border-top: 1px solid #000; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .action-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px 9px; color: #fff; text-decoration: none; font-family: var(--display); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
  .action-bar a + a { border-left: 1px solid var(--charcoal); }
  .action-bar a:first-child { background: var(--red); }
  .action-bar svg { width: 20px; height: 20px; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- Finance page ---------- */
.mt { margin-top: 16px; }
.features.fin-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 760px) { .features.fin-tiles { grid-template-columns: minmax(0, 1fr); } }
.side-note { margin-top: 20px; }
.side-card .btn + .btn, .side-card [data-finance-live] + .btn { margin-top: 12px; }

/* ---------- Content page bits ---------- */
.col-title { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 20px; }
.contact-list .step-num { font-family: var(--display); font-size: 20px; font-weight: 600; }
.contact-list p.plain { font-size: 15px; font-weight: 400; color: #444; margin-top: 2px; }
.contact-list .inline-link, .inline-link { color: var(--red); font-weight: 600; text-decoration: none; }
.contact-list .inline-link:hover, .inline-link:hover { text-decoration: underline; }
.center-prose { margin-inline: auto; text-align: center; }
.value-cards { margin-top: clamp(40px, 6vw, 64px); }
.center-legal { max-width: 560px; margin: clamp(36px, 5vw, 52px) auto 0; text-align: left; }

.vd-missing { padding-block: 24px clamp(48px, 7vw, 88px); }
.vd-missing .card-grid { margin-top: 32px; }
.card-grid.similar { margin-bottom: clamp(48px, 7vw, 88px); }

/* ---------- 404 ---------- */
.notfound { padding-block: clamp(80px, 14vw, 160px); text-align: center; }
.notfound h1 { font-size: clamp(2.6rem, 8vw, 5rem); }
.notfound p { margin-top: 14px; color: var(--text-muted); }
