/* AMAC Auto Trading — public site. Layout follows the Motors "Car Dealer" look:
   dark top bar + header, full-width hero with search panel, grid cards with price tags, dark footer. */
:root {
  --red: #e2312f;
  --red-dark: #c4211f;
  --dark: #1b1d21;
  --dark-2: #232629;
  --dark-3: #2e3236;
  --text: #232628;
  --muted: #6b7178;
  --line: #e4e7eb;
  --bg: #f1f3f6;
  --white: #fff;
  --green: #18a058;
  --amber: #e69b00;
  --radius: 4px;
  --shadow: 0 2px 14px rgba(20, 24, 31, .08);
  --shadow-lg: 0 14px 40px rgba(20, 24, 31, .16);
  --head: 'Montserrat', system-ui, sans-serif;
  --body: 'Open Sans', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { overflow-x: clip; margin: 0; font-family: var(--body); color: var(--text); background: var(--white); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--head); margin: 0 0 .5em; line-height: 1.2; font-weight: 700; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
[hidden] { display: none !important; }
.vd-layout > *, .two-col > *, .inv-layout > * { min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hp { position: absolute; left: -9999px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--head); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; padding: 13px 26px; border-radius: var(--radius); border: 2px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); }
.btn-dark { background: var(--dark-2); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-outline { border-color: currentColor; color: #fff; background: transparent; }
.btn-outline:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn-ghost { background: var(--bg); color: var(--text); }
.btn-ghost:hover { background: var(--line); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 12px; }

/* Top bar */
.topbar { background: var(--dark); color: #a9aeb5; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; min-height: 40px; gap: 16px; }
.topbar-info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar-info i { color: var(--red); margin-right: 6px; }
.topbar a:hover { color: #fff; }
.socials { display: flex; gap: 6px; }
.socials a { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #c8ccd1; transition: .2s; }
.socials a:hover { background: var(--red); color: #fff; }

/* Header */
.header { background: var(--dark-2); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 20px rgba(0,0,0,.25); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 20px; }
.logo img { height: 58px; width: auto; }
.nav { display: flex; align-items: stretch; height: 100%; }
.nav a { display: flex; align-items: center; padding: 0 16px; color: #fff; font-family: var(--head); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; position: relative; transition: color .2s; }
.nav a::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 0; height: 3px; background: var(--red); transform: scaleX(0); transition: .25s; }
.nav a:hover, .nav a.active { color: var(--red); }
.nav a.active::after, .nav a:hover::after { transform: scaleX(1); }
.header-cta { display: flex; align-items: center; gap: 14px; color: #fff; }
.header-phone { display: flex; align-items: center; gap: 10px; }
.header-phone i { font-size: 22px; color: var(--red); }
.header-phone small { display: block; color: #9aa0a7; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.header-phone strong { font-family: var(--head); font-size: 18px; }
.fav-link { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--dark-3); color: #fff; }
.fav-link .count { position: absolute; top: -3px; right: -3px; background: var(--red); font-size: 10px; font-weight: 700; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; padding: 0 4px; }
.fav-link .count:empty { display: none; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }

/* Hero slider */
.hero { position: relative; background: #0d0e10; color: #fff; overflow: hidden; height: 680px; } /* fixed: every slide is the same height */
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; display: flex; align-items: center; }
.hero-slide.active { opacity: 1; z-index: 1; }
.hero-slide > .container { position: relative; z-index: 2; }
.hero-slide .bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); transition: transform 7s ease; }
.hero-slide.active .bg { transform: scale(1); }
/* Studio slider photos (16:9, car on the left): pin to the right and fade the left edge into the black hero. */
.hero-slide.studio .bg { left: auto; width: min(100%, calc(680px * 16 / 9)); background-position: right center; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 28%); mask-image: linear-gradient(90deg, transparent 0, #000 28%); }
.hero-slide.studio::before { background: linear-gradient(90deg, rgba(10,11,13,.95) 0%, rgba(10,11,13,.55) 40%, rgba(10,11,13,0) 70%); }
.hero-slide::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,11,13,.92) 0%, rgba(10,11,13,.6) 45%, rgba(10,11,13,.1) 100%); z-index: 1; }
.hero-inner { position: relative; z-index: 2; padding: 0 0 90px; max-width: 620px; }
.hero-kicker { display: inline-block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--red); padding: 5px 14px; font-family: var(--head); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; }
.hero h1, .hero h2 { font-size: clamp(30px, 4.6vw, 54px); font-weight: 800; text-transform: uppercase; margin-bottom: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero p { color: #cfd3d8; font-size: 17px; margin: 0 0 26px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-price { display: flex; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.hero-price strong { font-family: var(--head); font-size: 44px; color: #fff; }
.hero-price span { color: #b8bdc3; font-size: 14px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 3; bottom: 120px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.hero-dots button { width: 34px; height: 4px; border: 0; background: rgba(255,255,255,.35); cursor: pointer; padding: 0; }
.hero-dots button.active { background: var(--red); }

/* Search panel (overlaps hero) */
.search-panel { position: relative; z-index: 5; margin-top: -90px; }
.search-box { background: var(--dark-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.search-tabs { display: flex; background: var(--dark); }
.search-tabs button { background: none; border: 0; color: #9aa0a7; padding: 16px 26px; font-family: var(--head); font-weight: 700; font-size: 13px; text-transform: uppercase; cursor: pointer; letter-spacing: .05em; }
.search-tabs button.active { background: var(--dark-2); color: #fff; box-shadow: inset 0 3px 0 var(--red); }
.search-fields { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px; padding: 24px; }
.search-fields select, .search-fields input { width: 100%; }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-family: var(--head); }
input, select, textarea { font: inherit; font-size: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--text); width: 100%; transition: border-color .2s, box-shadow .2s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px rgba(226,49,47,.12); }
.search-box select, .search-box input { background: var(--dark-3); border-color: #3b4046; color: #fff; }
textarea { resize: vertical; min-height: 110px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* Sections */
.section { padding: 80px 0; }
.section-gray { background: var(--bg); }
.section-dark { background: var(--dark-2); color: #fff; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(26px, 3vw, 36px); text-transform: uppercase; font-weight: 800; }
.section-head h2 span { color: var(--red); }
.section-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }
.section-head .bar { width: 60px; height: 3px; background: var(--red); margin: 14px auto 18px; }

/* Filter tabs on home */
.tabs { display: flex; justify-content: center; gap: 4px; margin-bottom: 30px; flex-wrap: wrap; }
.tabs button { background: var(--bg); border: 0; padding: 11px 22px; font-family: var(--head); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; color: var(--muted); border-radius: var(--radius); }
.tabs button.active { background: var(--red); color: #fff; }

/* Car cards */
.car-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 26px; }
.car-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; position: relative; }
.car-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.car-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #e9ecef; }
.car-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.car-card:hover .car-media img { transform: scale(1.06); }
.car-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge { font-family: var(--head); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 4px 10px; border-radius: 2px; background: var(--dark-2); color: #fff; }
.badge-red { background: var(--red); }
.badge-green { background: var(--green); }
.badge-amber { background: var(--amber); }
.photo-count { position: absolute; bottom: 10px; left: 12px; z-index: 2; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 2px; }
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 3; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--dark-2); cursor: pointer; display: grid; place-items: center; font-size: 15px; transition: .2s; }
.fav-btn:hover, .fav-btn.on { background: var(--red); color: #fff; }
.price-tag { position: absolute; right: 0; bottom: 0; z-index: 2; background: var(--red); color: #fff; font-family: var(--head); font-weight: 800; font-size: 18px; padding: 8px 16px 8px 22px; clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%); }
.price-tag del { font-size: 12px; opacity: .75; font-weight: 600; margin-right: 6px; }
.car-body { padding: 18px 20px 6px; flex: 1; }
.car-body h3 { font-size: 16px; text-transform: uppercase; margin-bottom: 4px; }
.car-body h3 a:hover { color: var(--red); }
.car-sub { color: var(--muted); font-size: 13px; margin: 0; }
.car-specs { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); margin-top: 14px; }
.car-specs div { padding: 12px 6px; text-align: center; font-size: 12px; color: var(--muted); border-right: 1px solid var(--line); }
.car-specs div:last-child { border-right: 0; }
.car-specs i { display: block; color: var(--red); font-size: 15px; margin-bottom: 4px; }
.car-card.sold .car-media img { filter: grayscale(.65); }
.sold-ribbon { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; background: rgba(0,0,0,.35); }
.sold-ribbon span { font-family: var(--head); font-weight: 800; font-size: 26px; letter-spacing: .2em; color: #fff; border: 3px solid #fff; padding: 6px 20px; transform: rotate(-8deg); }

/* list view */
.car-list .car-card { flex-direction: row; }
.car-list .car-media { width: 340px; flex-shrink: 0; aspect-ratio: auto; min-height: 230px; }
.car-list .car-body { padding: 22px 26px; display: flex; flex-direction: column; }
.car-list .car-specs { grid-template-columns: repeat(6, 1fr); margin-top: auto; }
.car-list { display: flex; flex-direction: column; gap: 20px; }

/* CTA blocks (Looking for a car / sell your car) */
.cta-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.cta-block { padding: 60px 50px; display: flex; gap: 24px; align-items: flex-start; color: #fff; position: relative; overflow: hidden; }
.cta-block i.big { font-size: 54px; opacity: .9; }
.cta-block h3 { font-size: 24px; text-transform: uppercase; }
.cta-block p { opacity: .85; margin: 0 0 20px; }
.cta-red { background: var(--red); }
.cta-dark { background: var(--dark-3); }

/* Brands strip */
.brands { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; }
.brand { background: #fff; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--shadow); transition: .2s; }
.brand:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.brand img { height: 56px; width: auto; object-fit: contain; }
.brand strong { text-align: center; white-space: nowrap; }
.brand span { font-size: 12px; color: var(--muted); }

/* Features / why us */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.feature { text-align: center; padding: 10px; }
.feature .ico { width: 78px; height: 78px; border-radius: 50%; border: 2px solid var(--red); display: grid; place-items: center; margin: 0 auto 18px; font-size: 28px; color: var(--red); transition: .3s; }
.feature:hover .ico { background: var(--red); color: #fff; }
.feature h4 { text-transform: uppercase; font-size: 15px; }
.feature p { color: var(--muted); font-size: 14px; margin: 0; }
.section-dark .feature p { color: #a9aeb5; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--head); font-size: 44px; color: var(--red); line-height: 1; }
.stat span { text-transform: uppercase; font-size: 13px; letter-spacing: .08em; color: #c8ccd1; }

/* Page title bar */
.page-title { background: var(--dark-2) url('/img/pattern.svg'); color: #fff; padding: 46px 0; }
.page-title h1 { font-size: 34px; text-transform: uppercase; margin: 0; }
.crumbs { font-size: 13px; color: #9aa0a7; margin-top: 6px; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 6px; }

/* Inventory layout */
.inv-layout { display: grid; grid-template-columns: 290px 1fr; gap: 30px; align-items: start; }
.sidebar-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 20px; }
.sidebar-box h4 { background: var(--dark-2); color: #fff; margin: 0; padding: 16px 20px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
.sidebar-box h4 i { color: var(--red); margin-right: 8px; }
.sidebar-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 24px; flex-wrap: wrap; }
.inv-toolbar strong { font-family: var(--head); }
.inv-toolbar .right { display: flex; gap: 10px; align-items: center; }
.inv-toolbar select { width: auto; padding: 9px 12px; }
.view-toggle a { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: var(--radius); background: var(--bg); color: var(--muted); }
.view-toggle a.active { background: var(--red); color: #fff; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 5px 12px; font-size: 13px; display: inline-flex; gap: 8px; align-items: center; }
.chip a { color: var(--red); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 40px; }
.pagination a, .pagination span { min-width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); font-weight: 700; padding: 0 12px; }
.pagination .current { background: var(--red); color: #fff; }
.empty { text-align: center; padding: 70px 20px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.empty i { font-size: 48px; color: var(--line); margin-bottom: 14px; }

/* Vehicle detail */
.vd-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.vd-head h1 { font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; margin: 0; }
.vd-head .sub { color: var(--muted); margin-top: 6px; }
.vd-actions { display: flex; gap: 8px; }
.vd-actions button, .vd-actions a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; cursor: pointer; color: var(--text); transition: .2s; }
.vd-actions button:hover, .vd-actions a:hover, .vd-actions .on { background: var(--red); border-color: var(--red); color: #fff; }
.vd-layout { display: grid; grid-template-columns: 1fr 380px; gap: 30px; align-items: start; }
.gallery-main { position: relative; background: #000; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; cursor: zoom-in; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 18px; cursor: pointer; z-index: 2; }
.gallery-nav:hover { background: var(--red); }
.gallery-nav.prev { left: 14px; }
.gallery-nav.next { right: 14px; }
.gallery-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,.65); color: #fff; padding: 4px 10px; font-size: 13px; border-radius: 2px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; margin-top: 10px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden; cursor: pointer; aspect-ratio: 4 / 3; background: #ddd; opacity: .7; transition: .2s; }
.thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button.active, .thumbs button:hover { border-color: var(--red); opacity: 1; }
.price-box { background: var(--dark-2); color: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.price-box .top { padding: 24px; }
.price-box .label { color: #9aa0a7; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; font-weight: 700; }
.price-box .price { font-family: var(--head); font-weight: 800; font-size: 40px; line-height: 1.1; }
.price-box del { color: #9aa0a7; font-size: 18px; }
.price-box .note { color: #6fd39b; font-size: 13px; font-weight: 600; }
.price-box .est { background: var(--dark-3); padding: 14px 24px; display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.price-box .est strong { font-family: var(--head); font-size: 20px; color: #fff; }
.price-box .btns { padding: 20px 24px 24px; display: grid; gap: 10px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; padding: 4px 10px; border-radius: 20px; background: rgba(24,160,88,.18); color: #6fd39b; margin-bottom: 10px; }
.status-pill.pending { background: rgba(230,155,0,.18); color: #ffc24d; }
.status-pill.sold { background: rgba(226,49,47,.2); color: #ff7a78; }
.panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 24px; }
.panel > h3 { padding: 18px 24px; margin: 0; font-size: 16px; text-transform: uppercase; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.panel > h3 i { color: var(--red); }
.panel-body { padding: 24px; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; }
.spec-row { display: flex; justify-content: space-between; padding: 12px 4px; border-bottom: 1px solid var(--line); gap: 12px; font-size: 14px; }
.spec-row:nth-child(odd) { margin-right: 14px; }
.spec-row:nth-child(even) { margin-left: 14px; }
.spec-row span { color: var(--muted); display: flex; gap: 8px; align-items: center; }
.spec-row span i { color: var(--red); width: 16px; text-align: center; }
.spec-row strong { text-align: right; font-weight: 600; }
.quick-specs { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); margin-top: 16px; }
.quick-specs div { padding: 16px 10px; text-align: center; border-right: 1px solid var(--line); }
.quick-specs div:last-child { border-right: 0; }
.quick-specs i { color: var(--red); font-size: 20px; margin-bottom: 6px; display: block; }
.quick-specs small { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.quick-specs strong { font-family: var(--head); font-size: 15px; }
.feature-list { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 30px; }
.feature-list li { padding: 7px 0 7px 28px; position: relative; break-inside: avoid; font-size: 14px; }
.feature-list li::before { content: '\f00c'; font-family: 'Font Awesome 6 Free'; font-weight: 900; position: absolute; left: 0; top: 7px; color: var(--red); }
.highlights { display: grid; gap: 10px; margin-top: 18px; }
.highlight { display: flex; gap: 12px; align-items: flex-start; background: var(--bg); padding: 12px 16px; border-left: 3px solid var(--red); font-size: 14px; }
.calc .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.calc-result { background: var(--bg); border-radius: var(--radius); padding: 18px; text-align: center; margin-top: 8px; }
.calc-result strong { font-family: var(--head); font-size: 32px; color: var(--red); display: block; }
.calc-result small { color: var(--muted); }
.dealer-card { display: flex; gap: 14px; align-items: center; padding: 20px 24px; border-top: 1px solid #3b4046; }
.dealer-card img { width: 60px; height: 60px; border-radius: 50%; background: #fff; padding: 6px; object-fit: contain; }
.carfax-badge { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; margin-top: 16px; }
.carfax-badge i { font-size: 26px; color: var(--green); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; background: rgba(10,11,13,.7); display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-card { background: #fff; border-radius: var(--radius); width: 100%; max-width: 560px; max-height: 92vh; overflow: auto; box-shadow: var(--shadow-lg); }
.modal-card header { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; background: var(--dark-2); color: #fff; }
.modal-card header h3 { margin: 0; font-size: 17px; text-transform: uppercase; }
.modal-card header button { background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; }
.modal-card form { padding: 24px; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 120; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 94vw; max-height: 88vh; object-fit: contain; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); border: 0; color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 20px; cursor: pointer; }
.lightbox button:hover { background: var(--red); }
.lightbox .close { top: 20px; right: 20px; }
.lightbox .prev { left: 20px; top: 50%; }
.lightbox .next { right: 20px; top: 50%; }

.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 20px; display: flex; gap: 10px; align-items: center; }
.alert-success { background: #e7f7ee; color: #116b3c; border: 1px solid #b9e7cc; }

/* Content pages */
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-list i { color: var(--red); font-size: 18px; width: 22px; margin-top: 3px; }
.map-embed { border: 0; width: 100%; height: 380px; border-radius: var(--radius); filter: grayscale(.2); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: s; }
.step { background: #fff; padding: 30px; border-radius: var(--radius); box-shadow: var(--shadow); position: relative; }
.step::before { counter-increment: s; content: counter(s); position: absolute; top: -18px; left: 30px; width: 40px; height: 40px; background: var(--red); color: #fff; border-radius: 50%; display: grid; place-items: center; font-family: var(--head); font-weight: 800; }
.step h4 { margin-top: 10px; text-transform: uppercase; font-size: 15px; }
.step p { color: var(--muted); margin: 0; font-size: 14px; }
.card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px; }
.vin-lookup { display: flex; gap: 10px; }
.vin-result { margin-top: 12px; font-size: 14px; }
.vin-result.ok { color: var(--green); }
.vin-result.err { color: var(--red); }

/* Footer */
.footer { background: var(--dark); color: #a9aeb5; font-size: 14px; }
.footer-main { padding: 70px 0 40px; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; text-transform: uppercase; font-size: 15px; margin-bottom: 20px; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 2px; background: var(--red); }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer .logo img { height: 64px; margin-bottom: 18px; }
.footer .hours li { display: flex; justify-content: space-between; border-bottom: 1px dashed #33373c; padding: 8px 0; }
.footer-cars a { display: flex; gap: 12px; align-items: center; padding: 6px 0; }
.footer-cars img { width: 70px; height: 52px; object-fit: cover; border-radius: 2px; }
.footer-cars strong { color: #fff; display: block; font-size: 13px; }
.footer-cars span { color: var(--red); font-weight: 700; font-size: 13px; }
.footer-bottom { border-top: 1px solid #2b2e33; padding: 20px 0; font-size: 13px; }
.footer-bottom .container { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer .socials a { background: #26292d; }

.mobile-bar { display: none; }
.to-top { position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; border: 0; cursor: pointer; opacity: 0; pointer-events: none; transition: .3s; z-index: 40; box-shadow: var(--shadow-lg); }
.to-top.show { opacity: 1; pointer-events: auto; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Responsive */
@media (max-width: 1100px) {
  .search-fields { grid-template-columns: repeat(3, 1fr); }
  .footer-main { grid-template-columns: 1fr 1fr; }
  .features, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature h4 { overflow-wrap: anywhere; }
  .vd-layout { grid-template-columns: 1fr; }
  .header-phone { display: none; }
}
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav { position: fixed; top: 0; right: 0; bottom: 0; width: 280px; background: var(--dark); flex-direction: column; padding: 80px 0 20px; transform: translateX(100%); transition: .3s; z-index: 60; height: auto; }
  .nav.open { transform: none; box-shadow: -10px 0 40px rgba(0,0,0,.4); }
  .nav a { padding: 16px 28px; border-bottom: 1px solid #26292d; }
  .nav a::after { display: none; }
  .inv-layout { grid-template-columns: 1fr; }
  .filters-wrap { display: none; }
  .filters-wrap.open { display: block; }
  .cta-duo, .two-col, .steps { grid-template-columns: 1fr; }
  .car-list .car-card { flex-direction: column; }
  .car-list .car-media { width: 100%; aspect-ratio: 4 / 3; min-height: 0; }
  .car-list .car-specs { grid-template-columns: repeat(3, 1fr); }
  .topbar-info span:not(:first-child) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .header .container { height: 68px; }
  .logo img { height: 44px; }
  .hero { height: 640px; }
  .hero-slide.studio .bg { width: 100%; background-position: 30% center; -webkit-mask-image: none; mask-image: none; }
  .hero-slide.studio::before, .hero-slide::before { background: linear-gradient(180deg, rgba(10,11,13,.25) 0%, rgba(10,11,13,.65) 45%, rgba(10,11,13,.92) 100%); }
  .hero-inner { padding: 0 0 80px; }
  .hero h1, .hero h2 { -webkit-line-clamp: 3; }
  .hero p { font-size: 15px; -webkit-line-clamp: 3; }
  .hero-dots { bottom: 104px; }
  .hero-actions { flex-wrap: nowrap; }
  .hero-actions .btn { flex: 1; padding: 12px 10px; font-size: 12px; }
  .hero-price { margin-bottom: 20px; }
  .hero-price strong { font-size: 32px; }
  .hero-price strong { font-size: 34px; }
  .search-fields { grid-template-columns: 1fr 1fr; padding: 16px; }
  .search-fields .btn { grid-column: 1 / -1; }
  .section { padding: 56px 0; }
  .card { padding: 20px; }
  .footer-main { grid-template-columns: 1fr; }
  .form-grid, .spec-table, .calc .row { grid-template-columns: 1fr; }
  .spec-row:nth-child(odd), .spec-row:nth-child(even) { margin: 0; }
  .feature-list { columns: 1; }
  .quick-specs { grid-template-columns: repeat(2, 1fr); }
  .thumbs { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .thumbs button { flex: 0 0 84px; scroll-snap-align: start; }
  .quick-specs div:nth-child(2) { border-right: 0; }
  .quick-specs div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cta-block { padding: 40px 24px; flex-direction: column; }
  .topbar .socials { display: none; }
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; bottom: 0; left: 0; right: 0; z-index: 45; }
  .mobile-bar a { padding: 14px; text-align: center; color: #fff; font-family: var(--head); font-weight: 700; font-size: 13px; text-transform: uppercase; }
  .mobile-bar a:first-child { background: var(--red); }
  .mobile-bar a:last-child:not(.wa) { background: var(--dark-2); }
  body { padding-bottom: 50px; }
  .to-top { bottom: 66px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .brands { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .brand { padding: 14px 8px; }
  .brand strong { white-space: normal; font-size: 14px; }
  .brand img { height: 44px; }
}
@media print {
  .topbar, .header, .footer, .vd-actions, .price-box .btns, .mobile-bar, .to-top, .gallery-nav, .thumbs, .similar, .calc { display: none !important; }
  .vd-layout { grid-template-columns: 1fr 300px; }
}

/* WhatsApp */
.btn-wa { background: #25d366; color: #fff; }
.btn-wa:hover { background: #1ebe5b; }
.mobile-bar a.wa { background: #25d366; }
.wa-float { position: fixed; left: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px; background: #25d366; color: #fff; border-radius: 30px; padding: 10px 18px 10px 12px; box-shadow: 0 8px 24px rgba(37,211,102,.4); font-family: var(--head); font-weight: 700; font-size: 13px; transition: transform .2s; }
.wa-float i { font-size: 26px; }
.wa-float:hover { transform: translateY(-2px); }
@media (max-width: 640px) { .wa-float { display: none; } }
@media print { .wa-float { display: none !important; } }
