:root {
  --ink: #101216;
  --muted: #68707c;
  --line: #dde1e7;
  --surface: #f4f6f8;
  --white: #fff;
  --accent: #1769e0;
  --accent-dark: #0d4eae;
  --danger: #d92d20;
  --success: #14804a;
  --radius: 8px;
  --shadow: 0 16px 42px rgba(16, 18, 22, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Arial, Helvetica, sans-serif; line-height: 1.45; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 72px; }
.section-muted { background: var(--surface); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.eyebrow { margin: 0 0 10px; color: var(--accent); font-size: 13px; font-weight: 700; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 850px; margin-bottom: 18px; font-size: clamp(38px, 5vw, 66px); line-height: 1.02; letter-spacing: 0; }
h2 { margin-bottom: 20px; font-size: 32px; line-height: 1.15; letter-spacing: 0; }
.button { display: inline-flex; min-height: 46px; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--accent); border-radius: 6px; background: var(--accent); color: var(--white); font-weight: 700; }
.button:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.button-secondary { background: var(--white); color: var(--ink); border-color: var(--line); }
.button-wide { width: 100%; }
.button-small { min-height: 36px; padding-inline: 14px; }
.text-link { color: var(--accent); font-weight: 700; }

.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); }
.header-row { display: grid; min-height: 74px; grid-template-columns: auto 1fr auto; align-items: center; gap: 34px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; text-transform: uppercase; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; background: var(--ink); color: var(--white); border-radius: 4px; }
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 15px; font-weight: 700; }
.main-nav a:hover { color: var(--accent); }
.header-actions { display: flex; align-items: center; gap: 20px; }
.phone { font-weight: 800; }
.favorite-link { position: relative; display: flex; width: 24px; height: 24px; align-items: center; justify-content: center; color: var(--ink); }
.favorite-icon { width: 24px; height: 24px; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.favorite-count { position: absolute; top: -8px; right: -9px; display: grid; min-width: 17px; height: 17px; padding: 0 4px; place-items: center; border: 2px solid var(--white); border-radius: 9px; background: var(--accent); color: var(--white); font-size: 10px; font-weight: 800; line-height: 1; }
.icon-button { display: none; width: 42px; height: 42px; border: 0; background: transparent; }
.menu-toggle span { display: block; width: 24px; height: 2px; margin: 5px auto; background: var(--ink); }

.breadcrumbs { padding-top: 28px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; padding: 0; color: var(--muted); font-size: 14px; line-height: 1.35; list-style: none; }
.breadcrumbs li { display: inline-flex; min-width: 0; align-items: center; gap: 10px; }
.breadcrumbs li:not(:last-child)::after { width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: var(--accent); content: ""; }
.breadcrumbs a { transition: color .2s; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs a:focus-visible { border-radius: 2px; outline: 2px solid var(--accent); outline-offset: 3px; }
.breadcrumbs [aria-current="page"] { color: #4b535e; }
.messages { padding-top: 16px; }
.message { padding: 14px 18px; border-radius: 6px; background: var(--surface); }
.message.success { color: var(--success); }
.message.error { color: var(--danger); }

.hero { position: relative; min-height: 610px; display: flex; flex-direction: column; justify-content: center; color: var(--white); background: #101216; }
.hero-slide { position: absolute; inset: 0; display: flex; align-items: center; background-image: linear-gradient(90deg, rgba(8,11,16,.88) 0%, rgba(8,11,16,.55) 48%, rgba(8,11,16,.1) 100%), var(--hero-image); background-position: center; background-size: cover; }
.hero-slide[hidden] { display: none; }
.hero-slide .hero-content { width: 100%; padding-bottom: 220px; }
.hero-promo-button { margin-top: 24px; }
.hero-tools { position: relative; z-index: 2; margin-top: 225px; padding-bottom: 30px; }
.hero-slider-controls { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.hero-slider-arrow, .hero-slider-dots button { border: 1px solid rgba(255,255,255,.55); background: rgba(8,11,16,.68); color: var(--white); }
.hero-slider-arrow { width: 42px; height: 42px; border-radius: 50%; }
.hero-slider-dots { display: flex; gap: 7px; }
.hero-slider-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; }
.hero-slider-dots button[aria-selected="true"] { background: var(--accent); border-color: var(--accent); }
.hero-content { padding-block: 68px; }
.hero-content > p:not(.eyebrow) { max-width: 560px; font-size: 20px; }
.hero-search { display: flex; max-width: 650px; margin-top: 32px; padding: 8px; background: var(--white); border-radius: var(--radius); }
.hero-search input { flex: 1; min-width: 0; border: 0; padding: 0 16px; outline: 0; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 38px; }
.hero-stats span { display: flex; flex-direction: column; color: rgba(255,255,255,.75); font-size: 13px; }
.hero-stats strong { color: var(--white); font-size: 18px; }
.service-strip { border-bottom: 1px solid var(--line); }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.service-grid a { display: grid; padding: 28px; grid-template-columns: 40px 1fr; column-gap: 12px; border-left: 1px solid var(--line); }
.service-grid a:last-child { border-right: 1px solid var(--line); }
.service-grid span { grid-row: 1 / 3; color: var(--accent); font-weight: 800; }
.service-grid strong { font-size: 18px; }
.service-grid small { color: var(--muted); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.section-heading h2 { margin-bottom: 0; }

.cars-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.car-card { min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .2s, box-shadow .2s; }
.car-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.car-photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); }
.car-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.car-photo-placeholder { display: grid; width: 100%; height: 100%; place-items: center; color: var(--muted); font-weight: 700; }
.car-card:hover .car-photo img { transform: scale(1.035); }
.discount, .availability { position: absolute; top: 14px; padding: 6px 9px; border-radius: 4px; color: var(--white); font-size: 12px; font-weight: 800; }
.discount { left: 14px; background: var(--danger); }
.availability { right: 14px; background: var(--success); }
.availability-sold { background: var(--muted); }
.car-card-body { padding: 20px; }
.car-title-row { display: flex; align-items: start; justify-content: space-between; gap: 14px; }
.car-title-row h3 { margin: 0; font-size: 21px; }
.favorite-button { display: grid; flex: 0 0 auto; width: 38px; height: 38px; padding: 0; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--white); color: var(--ink); }
.favorite-button .favorite-icon { width: 20px; height: 20px; }
.favorite-button.is-active { color: var(--danger); }
.favorite-button.is-active .favorite-icon { fill: currentColor; }
.car-trim { min-height: 42px; margin: 8px 0 14px; color: var(--muted); }
.spec-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; padding: 0; list-style: none; }
.spec-chips li { padding: 5px 8px; border-radius: 4px; background: var(--surface); color: #4b535e; font-size: 12px; }
.price-row { display: flex; min-height: 52px; align-items: baseline; gap: 10px; }
.price-row strong { font-size: 25px; }
.price-row del { color: var(--muted); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.brand-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.brand-grid a { display: flex; min-height: 78px; align-items: center; justify-content: space-between; padding: 22px; background: var(--white); font-weight: 700; }
.brand-grid a:hover { color: var(--accent); }
.callback-band { display: grid; padding: 38px; grid-template-columns: 1fr 1.4fr; align-items: center; gap: 42px; background: var(--ink); color: var(--white); border-radius: var(--radius); }
.inline-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 10px; }
.inline-form input, .stack-form input, .lead-form input, .lead-form textarea, .filters input, .filters select, .catalog-toolbar select { width: 100%; min-height: 46px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.inline-form .consent { grid-column: 1 / -1; }
.inline-form .form-status { grid-column: 1 / -1; }
.consent { display: flex; align-items: start; gap: 8px; color: var(--muted); font-size: 12px; }
.consent input { width: 16px; min-height: auto; margin-top: 2px; }
.consent a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}
.consent a:hover {
  color: var(--accent-dark);
}
.consent a:focus-visible {
  border-radius: 2px;
  outline: 3px solid rgba(39, 104, 216, .24);
  outline-offset: 2px;
}
.form-status { min-height: 20px; margin: 0; color: var(--muted); font-size: 13px; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }
[data-lead-form].is-submitting { opacity: .72; }
[data-lead-form] [aria-invalid="true"] { border-color: var(--danger) !important; }

.page-head { padding-top: 44px; padding-bottom: 30px; }
.page-head h1, .detail-head h1, .service-hero h1, .legal-page h1 { font-size: clamp(36px, 5vw, 56px); }
.catalog-filter { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 16px; background: var(--surface); border-radius: var(--radius); }
.filter-field { min-width: 0; }
.filter-field label { display: none; }
.filter-field select { width: 100%; height: 52px; padding: 0 38px 0 14px; border: 1px solid transparent; border-radius: 6px; background: var(--white); color: var(--ink); text-overflow: ellipsis; }
.filter-field select:hover, .filter-field select:focus { border-color: var(--accent); outline: 0; }
.filter-field select:disabled { color: #9ba1aa; cursor: not-allowed; background: #e9ecef; }
.filter-field-wide { grid-column: span 1; }
.filter-actions { display: flex; align-items: center; gap: 14px; }
.filter-actions .button { min-width: 130px; }
.reset-link { text-align: center; color: var(--muted); font-size: 13px; }
.catalog-toolbar { display: flex; align-items: end; justify-content: space-between; margin-bottom: 24px; }
.catalog-toolbar h2 { margin-bottom: 0; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 32px; }
.pagination-page, .pagination-arrow { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 5px; background: var(--white); color: var(--ink); font-weight: 700; text-decoration: none; }
.pagination-page:hover, .pagination-arrow:hover { border-color: var(--ink); }
.pagination-page.is-current { border-color: var(--ink); background: var(--ink); color: var(--white); }
.cars-grid-catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.empty-state { grid-column: 1 / -1; padding: 70px 20px; text-align: center; border: 1px dashed var(--line); border-radius: var(--radius); }
.empty-state p:not(.eyebrow) { max-width: 540px; margin-inline: auto; color: var(--muted); }
[hidden] { display: none !important; }

.detail-head { display: flex; align-items: start; justify-content: space-between; padding-top: 42px; padding-bottom: 26px; }
.detail-head h1 { margin-bottom: 8px; }
.favorite-detail { width: 50px; height: 50px; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, .75fr); align-items: start; gap: 28px; }
.gallery { width: 100%; max-width: 700px; min-width: 0; }
.gallery-stage { position: relative; width: 100%; height: 420px; overflow: hidden; border-radius: 6px; background: var(--surface); }
.gallery-open { width: 100%; height: 100%; padding: 0; border: 0; background: transparent; }
.gallery-open:not(:disabled):hover .gallery-main { transform: scale(1.015); }
.gallery-open:focus-visible, .gallery-dots button:focus-visible, .gallery-dialog button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.gallery-main { width: 100%; height: 100%; object-fit: contain; transition: transform .2s; }
.gallery-placeholder { display: grid; width: 100%; height: 100%; min-height: 240px; place-items: center; padding: 24px; color: var(--muted); font-weight: 700; text-align: center; }
.gallery-stage-nav { position: absolute; top: 50%; z-index: 2; display: grid; width: 44px; height: 44px; padding: 0; place-items: center; transform: translateY(-50%); border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(16,18,22,.68); color: var(--white); font-size: 23px; }
.gallery-stage-nav:hover { background: rgba(16,18,22,.9); }
.gallery-stage-prev { left: 14px; }
.gallery-stage-next { right: 14px; }
.gallery-counter, .gallery-dialog-counter { position: absolute; right: 14px; bottom: 14px; padding: 6px 9px; border-radius: 4px; background: rgba(16, 18, 22, .78); color: var(--white); font-size: 12px; font-weight: 700; }
.gallery-dots { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.gallery-dots li { display: flex; }
.gallery-dots button { display: grid; width: 18px; height: 18px; padding: 0; place-items: center; border: 0; background: transparent; }
.gallery-dots .f-carousel__dot { width: 8px; height: 8px; border-radius: 50%; background: #b8bec7; transition: width .2s, background .2s; }
.gallery-dots li.is-current .f-carousel__dot { width: 22px; border-radius: 4px; background: var(--accent); }
.gallery-dots button:disabled .f-carousel__dot { background: var(--line); }
.gallery-dialog { width: 100vw; max-width: none; height: 100vh; max-height: none; padding: 48px 72px; border: 0; background: rgba(10, 12, 15, .96); color: var(--white); }
.gallery-dialog::backdrop { background: rgba(10, 12, 15, .9); }
.gallery-dialog[open] { display: grid; grid-template-columns: 52px minmax(0, 1fr) 52px; align-items: center; gap: 20px; }
.gallery-dialog img { width: 100%; height: calc(100vh - 96px); object-fit: contain; }
.gallery-close, .gallery-nav { display: grid; width: 48px; height: 48px; padding: 0; place-items: center; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(16,18,22,.7); color: var(--white); font-size: 28px; }
.gallery-close { position: fixed; top: 20px; right: 20px; z-index: 1; }
.gallery-dialog-counter { position: fixed; right: 24px; bottom: 20px; }
.purchase-panel { position: sticky; top: 96px; min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.purchase-panel .availability { position: static; display: inline-block; }
.price-label { margin: 22px 0 2px; color: var(--muted); font-size: 13px; }
.detail-price { font-size: 38px; font-weight: 800; }
.purchase-panel del { color: var(--muted); }
.purchase-benefits { display: grid; gap: 8px; margin: 24px 0; padding-left: 20px; }
.sold-notice { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.sold-notice h2 { font-size: 22px; }
.sold-notice p { color: var(--muted); }
.stack-form, .lead-form { display: grid; gap: 11px; }
.detail-content { display: grid; grid-template-columns: 1.4fr 1fr; gap: 60px; }
.spec-table { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--line); }
.spec-table div { display: flex; justify-content: space-between; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.spec-table div:nth-child(odd) { padding-right: 24px; }
.spec-table div:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
.spec-table dt { color: var(--muted); }
.spec-table dd { margin: 0; font-weight: 700; text-align: right; }
.history-panel { padding: 28px; background: var(--surface); border-radius: var(--radius); }
.history-panel li { margin-bottom: 9px; }
.vin { font-family: monospace; }
.history-unavailable { margin: 18px 0; padding: 16px; border-left: 4px solid #d49a20; background: #fff7e6; }
.history-unavailable strong { display: block; margin-bottom: 6px; }
.history-unavailable p, .history-source-note { margin: 0; color: var(--muted); }
.history-source-note { margin: 18px 0 8px; font-size: 14px; }
.two-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; }
.features-heading { display: flex; align-items: baseline; gap: 12px; }
.features-heading h2 { margin-bottom: 20px; }
.features-heading span { padding: 4px 8px; border-radius: 4px; background: var(--white); color: var(--muted); font-size: 12px; font-weight: 700; }
.feature-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 36px; }
.feature-group h3 { margin: 0 0 12px; font-size: 17px; }
.feature-list { margin: 0; padding-left: 20px; }
.feature-list li { margin-bottom: 10px; break-inside: avoid; }
.feature-empty { color: var(--muted); }
.features-toggle { margin-top: 10px; }

.service-hero { margin-top: 18px; padding: 80px 0; background: #101216; color: var(--white); }
.trade-hero { background: #18231e; }
.service-hero-grid { display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 80px; }
.service-hero-grid > div > p { max-width: 630px; color: #c9ced6; font-size: 19px; }
.lead-form { padding: 28px; background: var(--white); color: var(--ink); border-radius: var(--radius); }
.lead-form h2 { font-size: 24px; }
.field-error { color: var(--danger); }
.benefits-grid, .steps-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.benefits-grid article, .steps-grid article { padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); }
.benefits-grid strong { display: block; font-size: 30px; }
.benefits-grid span { color: var(--muted); }
.steps-grid { grid-template-columns: repeat(3, 1fr); }
.steps-grid > article > span { color: var(--accent); font-size: 13px; font-weight: 800; }
.steps-grid h2 { margin-top: 24px; font-size: 22px; }

.finance-page { margin-top: 18px; padding: 54px 0 68px; background: var(--surface); }
.finance-page h1 { margin-bottom: 36px; }
.finance-flow { display: grid; grid-template-columns: .9fr 1.3fr .9fr; align-items: stretch; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.flow-step { display: flex; min-width: 0; padding: 28px; flex-direction: column; gap: 16px; background: var(--white); }
.flow-step h2 { margin: 0 0 8px; font-size: 22px; }
.step-number { color: var(--accent); font-size: 12px; font-weight: 800; text-transform: uppercase; }
.flow-step input:not([type="range"]), .flow-step select { width: 100%; min-height: 50px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 5px; background: var(--white); }
.calculator-step label { display: grid; gap: 10px; color: var(--muted); font-size: 13px; }
.calculator-step label strong { color: var(--ink); font-size: 18px; }
.calculator-step input[type="range"] { width: 100%; accent-color: var(--accent); }
.range-marks { display: flex; justify-content: space-between; margin-top: -8px; color: var(--muted); font-size: 11px; }
.vehicle-step { grid-column: span 1; }
.vehicle-selector { display: grid; gap: 16px; }
.selector-progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.selector-progress li { display: grid; gap: 5px; color: var(--muted); font-size: 11px; line-height: 1.2; }
.selector-progress li::after { content: ""; height: 3px; border-radius: 2px; background: var(--line); }
.selector-progress li.is-active { color: var(--ink); }
.selector-progress li.is-active::after { background: var(--accent); }
.selector-progress span { display: grid; width: 24px; height: 24px; place-items: center; border: 1px solid var(--line); border-radius: 50%; font-weight: 700; }
.selector-progress .is-active span { border-color: var(--accent); color: var(--accent); }
.selector-fields { display: grid; gap: 12px; }
.selector-fields label { display: grid; gap: 7px; color: var(--muted); font-size: 12px; font-weight: 700; }
.selector-fields input[type="search"] { min-height: 42px; margin-bottom: 7px; }
.selector-fields select:disabled { color: #9298a1; cursor: not-allowed; background: #f2f3f4; }
.selector-status { min-height: 18px; margin: -5px 0 0; color: var(--muted); font-size: 12px; }
.selected-vehicle { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; align-items: center; padding-top: 14px; border-top: 1px solid var(--line); }
.selected-vehicle img { width: 72px; height: 54px; object-fit: cover; border-radius: 4px; }
.selected-vehicle div { display: grid; gap: 4px; min-width: 0; }
.selected-vehicle strong { overflow: hidden; font-size: 13px; text-overflow: ellipsis; }
.selected-vehicle span { color: var(--muted); font-size: 12px; }
.credit-result { display: grid; gap: 14px; margin-top: auto; padding-top: 18px; border-top: 1px solid var(--line); }
.credit-result dl { display: grid; gap: 8px; margin: 0; }
.credit-result dl div { display: flex; justify-content: space-between; gap: 12px; }
.credit-result dt { color: var(--muted); font-size: 13px; }
.credit-result dd { margin: 0; font-size: 13px; font-weight: 700; white-space: nowrap; }
.credit-result p { display: grid; gap: 4px; margin: 0; }
.credit-result p span { color: var(--muted); font-size: 13px; }
.credit-result p strong { color: var(--accent); font-size: 24px; }
.credit-result small { color: var(--muted); font-size: 11px; line-height: 1.45; }
.trade-flow { grid-template-columns: .75fr 1.5fr .75fr; }
.trade-fields { display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
.trade-fields .step-number, .trade-fields h2 { grid-column: 1 / -1; }
.service-benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.service-benefits article { min-height: 160px; padding: 26px; background: var(--white); }
.service-benefits strong { font-size: 18px; }
.service-benefits p { margin-top: 12px; color: var(--muted); }
.banks-grid { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 280px); gap: 12px; overflow-x: auto; padding-bottom: 10px; overscroll-behavior-inline: contain; scrollbar-width: thin; scroll-snap-type: x proximity; }
.banks-grid .bank-item { display: grid; height: 80px; place-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 6px; background: var(--white); scroll-snap-align: start; }
.banks-grid .bank-item img { display: block; width: auto; max-width: 140px; height: 32px; object-fit: contain; }

.contacts-grid { display: grid; grid-template-columns: 380px 1fr; min-height: 450px; gap: 24px; padding-bottom: 72px; }
.contact-card { display: flex; flex-direction: column; align-items: start; gap: 10px; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); }
.contact-card span { margin-top: 12px; color: var(--muted); font-size: 13px; }
.contact-card a:not(.button) { font-size: 26px; font-weight: 800; }
.contact-card .button { margin-top: 22px; }
.contact-map { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #eef1f3; }
.map-attribution { position: absolute; top: 0; left: 0; color: #eee; font-size: 12px; }
.contact-map iframe { display: block; width: 100%; height: 100%; min-height: 450px; border: 0; }
.legal-page { max-width: 860px; padding-top: 50px; padding-bottom: 90px; }
.legal-page { overflow-wrap: anywhere; }
.legal-page p { color: #3d444e; font-size: 17px; line-height: 1.75; }
.legal-page h2 { margin-top: 34px; font-size: 25px; }
.legal-page li { margin-bottom: 8px; color: #3d444e; line-height: 1.6; }
.legal-lead { font-weight: 700; }
.legal-warning { margin: 24px 0 34px; padding: 18px 20px; border-left: 4px solid #c98b00; background: #fff8e5; }
.legal-warning p { margin: 6px 0 0; font-size: 14px; line-height: 1.55; }
.error-page { min-height: 560px; padding-top: 80px; padding-bottom: 100px; }
.error-page > p:not(.eyebrow, .error-code) { max-width: 620px; color: var(--muted); font-size: 18px; }
.error-code { margin-bottom: 8px; color: var(--line); font-size: 96px; font-weight: 800; line-height: .9; }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.site-footer { padding: 58px 0 28px; background: var(--ink); color: #d7dbe0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 70px; }
.footer-grid nav, .footer-grid > div:last-child { display: flex; flex-direction: column; align-items: start; gap: 12px; }
.brand-footer { margin-bottom: 20px; color: var(--white); }
.brand-footer .brand-mark { background: var(--accent); }
.footer-phone { color: var(--white); font-size: 21px; font-weight: 800; }
.legal-note { margin-top: 42px; padding-top: 20px; border-top: 1px solid #30343a; color: #8f969f; font-size: 12px; }
.cookie-banner { position: fixed; right: 0; bottom: 0; left: 0; z-index: 80; display: none; padding: 16px 0; background: rgb(248, 249, 251); box-shadow: 0 0 48px -16px rgba(0, 0, 0, .32); border-radius: 16px 16px 0 0; }
.cookie-banner.is-visible { display: block; }
.cookie-banner-content { display: flex; min-height: 52px; align-items: center; justify-content: space-between; gap: 32px; }
.cookie-banner-text { display: flex; flex-direction: column; align-items: start; gap: 5px; }
.cookie-banner-text p { margin: 0; font-size: 16px; font-weight: 700; }
.cookie-banner-text a { color: var(--accent); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner-button { min-width: 180px; }

@media (max-width: 980px) {
  .header-row { grid-template-columns: auto auto 1fr; gap: 16px; }
  .icon-button { display: block; }
  .main-nav { position: absolute; left: 0; right: 0; top: 74px; display: none; padding: 22px 20px; flex-direction: column; align-items: stretch; background: var(--white); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: flex; }
  .header-actions { justify-self: end; }
  .cars-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-hero-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .finance-flow, .trade-flow { grid-template-columns: 1fr; }
  .vehicle-step { grid-column: auto; }
  .service-benefits { grid-template-columns: 1fr 1fr; }
  .catalog-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .purchase-panel { position: static; }
}

@media (max-width: 700px) {
  .container { width: auto; margin-inline: 14px; }
  .section { padding-block: 48px; }
  h1 { font-size: 40px; }
  h2 { font-size: 27px; }
  .header-row { min-height: 64px; }
  .main-nav { top: 64px; }
  .brand { font-size: 0; }
  .brand-mark { font-size: 18px; }
  .phone { display: none; }
  .hero { min-height: 560px; background-position: 62% center; }
  .hero-slide { background-position: 62% center; }
  .hero-slide .hero-content { padding-bottom: 250px; }
  .hero-tools { margin-top: 250px; padding-bottom: 24px; }
  .hero-slider-controls { justify-content: center; }
  .hero-content { padding-block: 48px; }
  .hero-search { flex-direction: column; }
  .hero-search input { min-height: 48px; }
  .hero-stats { gap: 18px; }
  .hero-stats span { width: calc(50% - 9px); }
  .service-grid { grid-template-columns: 1fr; }
  .service-grid a, .service-grid a:last-child { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .section-heading { align-items: start; flex-direction: column; }
  .cars-grid, .cars-grid-catalog { grid-template-columns: 1fr; }
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .callback-band { grid-template-columns: 1fr; padding: 26px; }
  .inline-form { grid-template-columns: 1fr; }
  .catalog-filter { grid-template-columns: 1fr 1fr; }
  .catalog-toolbar { align-items: stretch; flex-direction: column; gap: 18px; }
  .catalog-toolbar form, .catalog-toolbar select { width: 100%; }
  .detail-head { gap: 16px; }
  .detail-grid { gap: 16px; }
  .gallery-dots { gap: 5px; }
  .gallery-dialog { padding: 64px 14px 20px; }
  .gallery-dialog[open] { grid-template-columns: 42px minmax(0, 1fr) 42px; gap: 6px; }
  .gallery-dialog img { height: calc(100vh - 84px); }
  .gallery-nav { width: 40px; height: 40px; font-size: 22px; }
  .detail-content, .two-columns, .service-hero-grid, .contacts-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature-groups { grid-template-columns: 1fr; gap: 22px; }
  .spec-table { grid-template-columns: 1fr; }
  .spec-table div:nth-child(odd), .spec-table div:nth-child(even) { padding-inline: 0; border-left: 0; }
  .benefits-grid, .steps-grid { grid-template-columns: 1fr 1fr; }
  .trade-fields { grid-template-columns: 1fr; }
  .trade-fields .step-number, .trade-fields h2 { grid-column: auto; }
  .service-hero { padding: 52px 0; }
  .contacts-grid { min-height: auto; }
  .contact-map iframe { min-height: 330px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 430px) {
  .hero-stats span, .filter-actions, .filter-actions .button { width: 100%; }
  .catalog-filter, .benefits-grid, .steps-grid, .brand-grid, .service-benefits { grid-template-columns: 1fr; }
  .banks-grid { grid-auto-columns: minmax(230px, 82vw); }
  .card-actions { grid-template-columns: 1fr; }
  .cookie-banner { padding: 14px 0; border-radius: 12px 12px 0 0; }
  .cookie-banner-content { align-items: stretch; gap: 14px; }
  .cookie-banner-text { flex: 1; }
  .cookie-banner-button { min-width: 126px; padding-inline: 12px; }
}
.form-honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* Current reference-inspired shell */
:root {
  --ink: #0a0a0b;
  --muted: #6f7177;
  --line: #e8e9ec;
  --surface: #f6f7f9;
  --accent: #2f76df;
  --accent-dark: #195fca;
  --radius: 8px;
  --shadow: 0 16px 40px rgba(13, 18, 28, .08);
}
body { font-family: "Segoe UI", Arial, Helvetica, sans-serif; }
.container { width: min(1190px, calc(100% - 48px)); }
.site-header { position: relative; padding: 18px 0 10px; border: 0; background: var(--white); backdrop-filter: none; }
.header-row { min-height: 54px; grid-template-columns: auto 1fr auto; gap: 14px; }
.brand { min-height: 50px; padding: 0 18px; border: 1px solid var(--line); border-radius: 28px; font-size: 17px; text-transform: uppercase; }
.brand-mark { width: auto; height: auto; background: transparent; color: var(--ink); font-size: 19px; transform: rotate(-18deg); }
.main-nav { gap: 10px; }
.main-nav a, .phone, .favorite-link { display: inline-flex; min-height: 50px; align-items: center; padding: 0 20px; border: 1px solid var(--line); border-radius: 28px; background: #fafafa; font-size: 15px; font-weight: 500; }
.main-nav a:hover { border-color: #cfd2d8; color: var(--ink); }
.header-actions { gap: 10px; }
.phone { font-weight: 500; }
.favorite-link { width: 50px; padding: 0; justify-content: center; }
.favorite-count { top: -4px; right: -4px; }

.hero { min-height: 420px; margin-top: 4px; color: var(--ink); background: transparent; }
.hero-slide { position: static; display: grid; min-height: 420px; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; background: transparent; }
.hero-slide .hero-content { display: flex; padding: 50px 54px 150px 0; flex-direction: column; align-items: start; justify-content: flex-start; }
.hero-content h1 { max-width: 560px; margin-bottom: 20px; font-size: 44px; line-height: 1.08; }
.hero-content > p:not(.eyebrow) { max-width: 520px; color: #31343a; font-size: 16px; }
.hero-promo-button { min-width: 235px; min-height: 52px; margin-top: 2px; border-radius: 28px; }
.hero-media { min-width: 0; border-radius: 18px 18px 0 18px; background-color: var(--surface); background-image: var(--hero-image); background-position: center; background-repeat: no-repeat; background-size: contain; }
.hero-slider-controls { position: absolute; right: 52%; bottom: 16px; z-index: 3; margin: 0; }
.hero-slider-arrow, .hero-slider-dots button { border-color: var(--line); background: rgba(255,255,255,.9); color: var(--ink); }

.service-strip { margin-top: -118px; border: 0; pointer-events: none; }
.service-grid { position: relative; z-index: 4; width: min(590px, calc(50% - 12px)); margin-left: max(24px, calc((100% - 1190px) / 2)); grid-template-columns: repeat(3, 1fr); gap: 10px; }
.service-grid a { min-height: 118px; padding: 18px 15px; grid-template-columns: 1fr; align-content: end; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); pointer-events: auto; }
.service-grid a:last-child { border-right: 1px solid var(--line); }
.service-grid span { grid-row: auto; margin-bottom: 13px; color: var(--ink); font-size: 28px; font-weight: 400; line-height: 1; }
.service-grid strong { font-size: 16px; }
.service-grid small { font-size: 13px; }

.home-filter-wrap { padding-top: 32px; }
.home-filter { grid-template-columns: repeat(5, 1fr); padding: 0; gap: 10px; background: transparent; }
.home-filter .filter-field select { height: 50px; border-color: var(--line); border-radius: 26px; background: var(--surface); }
.home-filter .filter-actions { grid-column: 1 / -1; }
.home-filter .button { min-height: 48px; border-radius: 24px; }
.section { padding-block: 62px; }
.section-heading h2 { font-size: 34px; }
.eyebrow { color: var(--accent); }
.cars-grid { gap: 18px; }
.cars-grid-home { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cars-grid-home .car-photo { aspect-ratio: 4 / 3; }
.car-card { border-radius: 8px; box-shadow: none; }
.car-card:hover { transform: none; box-shadow: var(--shadow); }
.car-photo { aspect-ratio: 1.42 / 1; }
.car-card-body { padding: 17px; }
.favorite-button { border-radius: 50%; }
.button { border-radius: 22px; }
.card-actions .button { border-radius: 5px; }
.callback-band { border-radius: 14px; }

@media (max-width: 1080px) {
  .main-nav a { padding-inline: 14px; }
  .phone { display: none; }
}
@media (max-width: 980px) {
  .site-header { padding-top: 10px; }
  .header-row { grid-template-columns: auto 1fr auto; }
  .icon-button { display: block; justify-self: end; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); }
  .main-nav { top: 70px; padding: 14px 20px 22px; gap: 8px; }
  .main-nav a { justify-content: center; }
  .header-actions { grid-column: 3; grid-row: 1; }
  .hero-slide { grid-template-columns: .9fr 1.1fr; }
  .service-grid { width: calc(50% - 24px); }
  .cars-grid-home { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .container { width: auto; margin-inline: 14px; }
  .site-header { padding-bottom: 6px; }
  .brand { min-height: 44px; padding-inline: 13px; font-size: 14px; }
  .brand-mark { font-size: 16px; }
  .favorite-link { min-height: 44px; width: 44px; }
  .hero { min-height: 0; margin-top: 8px; }
  .hero-slide { min-height: 0; grid-template-columns: 1fr; }
  .hero-slide .hero-content { min-height: 270px; padding: 28px 4px 30px; }
  .hero-content h1 { font-size: 36px; }
  .hero-media { order: -1; min-height: 280px; border-radius: 14px; }
  .hero-slider-controls { right: 24px; bottom: 286px; }
  .service-strip { margin-top: 12px; }
  .service-grid { width: auto; margin-inline: 14px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .service-grid a { min-height: 112px; padding: 12px 10px; }
  .service-grid span { font-size: 23px; }
  .service-grid strong { font-size: 14px; }
  .service-grid small { font-size: 11px; }
  .home-filter-wrap { padding-top: 22px; }
  .home-filter { grid-template-columns: 1fr 1fr; }
  .home-filter .filter-actions { grid-column: 1 / -1; }
  .cars-grid-home { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 430px) {
  .brand span:last-child { display: none; }
  .brand { width: 44px; padding: 0; justify-content: center; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service-grid a { min-width: 0; }
  .service-grid strong, .service-grid small { overflow-wrap: anywhere; }
  .home-filter { grid-template-columns: 1fr; }
}

/* Independent visual direction */
:root {
  --ink: #15171a;
  --surface: #f3f5f7;
  --accent: #2768d8;
  --accent-dark: #174ea9;
  --signal: #b9d92f;
  --content-max: 1360px;
  --content-gutter: 24px;
}
.container {
  width: min(var(--content-max), calc(100% - (var(--content-gutter) * 2)));
  margin-inline: auto;
}
.section {
  padding-block: 48px;
}
.site-header {
  padding: 0;
  border-bottom: 1px solid var(--line);
}
.header-row {
  min-height: 76px;
  gap: 28px;
}
.brand {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  font-size: 18px;
}
.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 4px;
  background: var(--ink);
  color: var(--white);
  font-size: 18px;
  transform: none;
}
.main-nav {
  gap: 26px;
}
.main-nav a {
  position: relative;
  min-height: 76px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 600;
}
.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--accent);
  content: "";
  opacity: 0;
  transform: scaleX(.45);
  transition: opacity .2s, transform .2s;
}
.main-nav a:hover::after {
  opacity: 1;
  transform: scaleX(1);
}
.phone {
  min-height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  font-weight: 700;
}
.favorite-link {
  width: 44px;
  min-height: 44px;
  border-radius: 6px;
  background: var(--surface);
}
.hero {
  min-height: 420px;
  margin-top: 12px;
}
.hero-slide {
  min-height: 420px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border-radius: 6px;
  background: var(--surface);
}
.hero-slide .hero-content {
  position: relative;
  min-width: 0;
  padding: 42px 54px 18px;
  background: var(--surface);
  color: var(--ink);
}
.hero-slide .hero-content::before {
  width: 62px;
  height: 5px;
  margin-bottom: 28px;
  background: var(--signal);
  content: "";
}
.hero-content h1 {
  color: var(--ink);
  font-size: 42px;
}
.hero-content > p:not(.eyebrow) {
  color: #5f6670;
}
.hero-actions {
  width: 100%;
  margin-top: auto;
  padding-top: 22px;
}
.hero-services {
  display: grid;
  width: 100%;
  margin-top: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.hero-services a {
  display: grid;
  min-width: 0;
  min-height: 126px;
  padding: 16px;
  align-content: end;
  border: 1px solid #e3e6ea;
  border-radius: 4px;
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(18, 24, 34, .07);
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.hero-services a:hover {
  border-color: #cbd1d8;
  background: var(--white);
  box-shadow: 0 9px 24px rgba(18, 24, 34, .11);
}
.hero-services span {
  margin-bottom: 12px;
  color: var(--signal);
  font-size: 25px;
  line-height: 1;
}
.hero-services strong {
  font-size: 15px;
}
.hero-services small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.hero-media {
  border-radius: 0;
}
.home-filter-wrap {
  padding-top: 16px;
}
.home-filter {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
}
.home-filter .filter-field select {
  height: 48px;
  border-color: var(--line);
  border-radius: 4px;
  background: var(--white);
}
.home-filter .filter-actions {
  justify-content: flex-end;
}
.home-filter .button {
  border-radius: 5px;
}
.section-muted {
  border-block: 1px solid var(--line);
}

.cookie-banner {
  right: auto;
  bottom: 20px;
  left: 50%;
  width: min(440px, calc(100% - 40px));
  padding: 16px;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 50px rgba(12, 17, 27, .18);
}
.cookie-banner-content {
  width: 100%;
  min-height: 0;
  margin: 0;
  gap: 18px;
}
.cookie-banner-button {
  min-width: 126px;
  min-height: 42px;
  padding-inline: 16px;
  border-radius: 5px;
}

@media (max-width: 980px) {
  .header-row { min-height: 68px; }
  .main-nav { top: 68px; }
  .main-nav a { min-height: 48px; }
  .hero-slide .hero-content { padding-inline: 34px; }
}
@media (max-width: 700px) {
  .container { width: auto; }
  .site-header { padding: 0; }
  .header-row { min-height: 64px; }
  .gallery-stage { height: auto; aspect-ratio: 4 / 3; }
  .hero { margin-top: 14px; }
  .hero-slide { grid-template-columns: 1fr; border-radius: 5px; }
  .hero-slide .hero-content { padding: 32px 24px; }
  .hero-slide .hero-content::before { margin-bottom: 20px; }
  .hero-content h1 { font-size: 34px; }
  .hero-media { min-height: 260px; }
  .hero-services a { min-height: 112px; padding: 12px; }
  .hero-services span { font-size: 22px; }
  .hero-services strong { font-size: 13px; }
  .hero-services small { font-size: 11px; }
  .home-filter { padding: 12px; }
  .cookie-banner {
    right: auto;
    bottom: 12px;
    left: 50%;
    width: calc(100% - 24px);
    padding: 14px;
  }
}
@media (max-width: 430px) {
  .cookie-banner-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
  }
  .cookie-banner-button {
    min-width: 112px;
  }
}
