:root {
  --yellow: #FFC107;
  --yellow-deep: #F2B200;
  --black: #000;
  --white: #fff;
  --asphalt: #ECEDEF;
  --graphite: #55585E;
  --ink-on-yellow: #3A3200;
  --line: #D7D9DD;
  --go: #1F9D55;
  --radius-xl: 32px;
  --radius-l: 20px;
  --radius-m: 16px;
  --radius-s: 12px;
  --gutter: 16px;
  --container: 1200px;
  --tile: 20px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .18);
}
@media (min-width: 768px) { :root { --gutter: 32px; --tile: 26px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: "Onest", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  color: var(--black);
  background: var(--white);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--black); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible { outline-color: var(--yellow); }

h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; text-wrap: balance; }
h2 { font-size: 32px; }
h3 { font-size: 20px; line-height: 1.25; }
@media (min-width: 768px) { h2 { font-size: 44px; } }
p { margin: 0; }

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 56px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 28px; }
.section-lead { color: var(--graphite); max-width: 56ch; margin-top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--yellow-deep); }
.btn-black { background: var(--black); color: var(--white); }
.btn-black:hover { background: #2a2a2a; }
.btn-ghost { background: var(--asphalt); color: var(--black); }
.btn-ghost:hover { background: var(--line); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }

/* Header */
.header { position: sticky; top: 0; z-index: 30; background: var(--yellow); border-bottom: 1px solid rgba(0,0,0,.12); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 68px; padding-top: 10px; padding-bottom: 10px; }
.logo { flex: none; display: block; width: 96px; }
.logo svg { width: 100%; height: auto; display: block; }
.city { position: relative; }
.city-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
  border: 0; border-radius: 999px; background: rgba(0,0,0,.08); cursor: pointer; font-weight: 500; font-size: 15px;
}
.city-btn:hover { background: rgba(0,0,0,.14); }
.city-btn svg { width: 16px; height: 16px; }
.city-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 8px;
  background: var(--white); border-radius: var(--radius-s); box-shadow: var(--shadow);
  list-style: none; margin: 0;
}
.city-menu a { display: block; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.city-menu a:hover { background: var(--asphalt); }
.city-menu a[aria-current="true"] { font-weight: 700; }
.nav { display: none; gap: clamp(14px, 1.6vw, 24px); margin-left: 8px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 16px; white-space: nowrap; }
.nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-phone { display: none; margin-left: auto; text-decoration: none; font-weight: 700; white-space: nowrap; }
.header-phone small { display: block; font-weight: 400; font-size: 13px; color: var(--ink-on-yellow); }
.header .btn { display: none; }
.header-call { margin-left: auto; display: inline-flex; width: 44px; height: 44px; border-radius: 50%; background: var(--black); color: var(--yellow); align-items: center; justify-content: center; }
.header-call svg { width: 22px; height: 22px; }
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header-phone { display: block; }
  .header .btn { display: inline-flex; }
  .header-call { display: none; }
  .header .logo { width: 112px; }
}

/* Geo plaque */
.geo {
  position: fixed; z-index: 40; left: 16px; right: 16px; top: 80px; max-width: 360px; margin-left: auto;
  padding: 20px; background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow);
}
.geo p { font-weight: 700; font-size: 18px; margin-bottom: 14px; }
.geo-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Hero */
.hero { background: var(--yellow); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-copy { padding: 28px var(--gutter) 40px; }
.hero h1 { font-size: 38px; line-height: 1.04; max-width: 12ch; }
.hero-sub { font-size: 18px; margin-top: 16px; max-width: 40ch; color: var(--ink-on-yellow); }
.hero-facts { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; }
.hero-facts li { padding: 0 12px; border-left: 2px solid var(--black); font-size: 13px; line-height: 1.3; }
.hero-facts li:first-child { padding-left: 0; border-left: 0; }
.hero-facts b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.phone-link { font-weight: 800; font-size: 19px; text-decoration: none; line-height: 1.2; }
.phone-link small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-on-yellow); }
.hero-photo { position: relative; margin: 0; order: -1; }
.hero-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 62% 60%; }
.hero-offer {
  position: absolute; left: var(--gutter); bottom: 16px; display: grid; gap: 2px;
  padding: 14px 18px; background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow);
  font-size: 13px; line-height: 1.35; max-width: calc(100% - 2 * var(--gutter));
}
@media (max-width: 1023px) {
  .hero-offer { left: 12px; bottom: 12px; padding: 10px 14px; border-radius: var(--radius-s); }
  .hero-offer a { display: none; }
}
.hero-offer-tag { justify-self: start; margin-bottom: 4px; padding: 2px 8px; background: var(--black); color: var(--yellow); font-weight: 700; font-size: 12px; }
.hero-offer b { font-size: 16px; }
.hero-offer a { margin-top: 6px; font-weight: 700; text-underline-offset: 3px; }
@media (min-width: 640px) {
  .hero h1 { font-size: 48px; }
  .hero-facts li { padding: 0 20px; font-size: 14px; }
  .hero-facts b { font-size: 22px; }
}
@media (min-width: 1024px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); min-height: min(640px, calc(100vh - 140px)); }
  .hero-copy {
    align-self: center;
    padding: 64px 48px 72px max(var(--gutter), calc((100vw - var(--container)) / 2));
  }
  .hero h1 { font-size: 62px; }
  .hero-facts li { padding: 0 24px; }
  .hero-facts b { font-size: 24px; }
  .hero-photo { order: 0; padding: 24px 0 24px 0; }
  .hero-photo img { aspect-ratio: auto; border-radius: var(--radius-xl) 0 0 var(--radius-xl); }
  .hero-offer { left: 32px; bottom: 56px; padding: 18px 22px; font-size: 14px; }
  .hero-offer b { font-size: 20px; }
}

/* Checker band */
.checker {
  height: calc(var(--tile) * 2);
  background:
    conic-gradient(var(--black) 25%, var(--yellow) 0 50%, var(--black) 0 75%, var(--yellow) 0)
    0 0 / calc(var(--tile) * 2) calc(var(--tile) * 2);
}
.checker-drive { animation: drive 1.2s cubic-bezier(.2,.7,.2,1) both; }
@keyframes drive { from { background-position: calc(var(--tile) * -16) 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .checker-drive { animation: none; } html { scroll-behavior: auto; } }

/* Catalog */
.catalog { background: var(--asphalt); }
.count { color: var(--graphite); }
.chips {
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  margin: 0 calc(var(--gutter) * -1) 24px; padding: 0 var(--gutter) 4px;
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border: 0; border-radius: 999px; background: var(--white); cursor: pointer; font-weight: 500; white-space: nowrap;
}
.chip:hover { background: #F7F7F8; }
.chip span { color: var(--graphite); font-weight: 400; }
.chip[aria-pressed="true"] { background: var(--black); color: var(--white); }
.chip[aria-pressed="true"] span { color: #B9BBC0; }
a.chip { color: inherit; text-decoration: none; }
.chip[aria-current="page"] { background: var(--black); color: var(--white); }
.chip[aria-current="page"] span { color: #B9BBC0; }

/* Mobile: horizontal strip with snap */
.cars {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.cars::-webkit-scrollbar { display: none; }
.cars > .car { flex: 0 0 84%; scroll-snap-align: start; }
.cars-progress { margin-top: 12px; color: var(--graphite); font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; }
.cars-more { margin-top: 32px; text-align: center; }
@media (min-width: 768px) {
  .cars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; overflow: visible; margin: 0; padding: 0; }
  .cars > .car { flex: none; }
  .cars-progress { display: none; }
}
@media (min-width: 1024px) { .cars { grid-template-columns: repeat(3, 1fr); gap: 24px; } }

.car { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius-l); overflow: hidden; }
.car-photo { position: relative; flex: none; aspect-ratio: 3 / 2; overflow: hidden; background: #DFE1E4; }
.car-photo img { width: 100%; height: 100%; object-fit: cover; }
.badge { position: absolute; top: 12px; left: 12px; padding: 5px 10px; background: var(--yellow); font-weight: 700; font-size: 13px; line-height: 1.2; }
.car-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.car-format { justify-self: start; align-self: flex-start; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; background: var(--asphalt); font-size: 13px; font-weight: 500; }
.car-format.is-buy { background: var(--black); color: var(--yellow); }
.car-specs { color: var(--graphite); font-size: 15px; margin-top: 6px; }
.car-price { margin: auto 0 0; padding-top: 18px; display: grid; gap: 8px; }
.price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.price-row dt { color: var(--graphite); font-size: 15px; }
.price-row dd { margin: 0; white-space: nowrap; }
.price-row b { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.price-row s { color: var(--graphite); font-size: 15px; }
.price-row dd span { color: var(--graphite); font-size: 15px; margin-left: 2px; }
.car-price.is-double .price-row + .price-row { padding-top: 8px; border-top: 1px dashed var(--line); }
.car-price.is-double b { font-size: 21px; }
.car-actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px; margin-top: 18px; }
.car-actions .btn { padding: 0 10px; }

/* Why */
.why { background: var(--black); color: var(--white); }
.why .section-lead { color: #B9BBC0; }
.why-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 32px 40px; }
@media (min-width: 640px) { .why-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .why-list { grid-template-columns: repeat(3, 1fr); } }
.why-list svg { width: 36px; height: 36px; color: var(--yellow); margin-bottom: 14px; }
.why-list p { color: #C9CBCF; margin-top: 8px; }

/* Steps */
.start { background: var(--asphalt); }
.start-grid { display: grid; gap: 48px; }
@media (min-width: 900px) { .start-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 56px; height: 56px;
  font-weight: 800; font-size: 26px; background: var(--black); color: var(--yellow);
}
.steps li:nth-child(even)::before { background: var(--yellow); color: var(--black); }
.steps p { color: var(--graphite); margin-top: 4px; }
.reqs { background: var(--white); border-radius: var(--radius-l); padding: 28px; }
.reqs-col { display: grid; gap: 20px; align-content: start; }
.reqs h3 { margin-bottom: 16px; }
.reqs ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.reqs li { padding-left: 28px; position: relative; }
.reqs li::before { content: ""; position: absolute; left: 0; top: 7px; width: 12px; height: 12px; background: var(--yellow); outline: 2px solid var(--black); }
.reqs .muted { color: var(--graphite); font-size: 15px; display: block; margin-top: 2px; }

/* News */
.news-list { display: grid; gap: 16px; }
@media (min-width: 900px) { .news-list { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.news-item { display: block; padding: 24px; border-radius: var(--radius-m); background: var(--asphalt); text-decoration: none; }
.news-item:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.news-tag { display: inline-block; margin-bottom: 12px; padding: 2px 8px; background: var(--yellow); font-size: 13px; font-weight: 700; }
.news-item p { color: var(--graphite); margin-top: 10px; font-size: 16px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 0; font-weight: 700; font-size: 19px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--white); font-weight: 400; font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "−"; background: var(--yellow); }
.faq details p { padding-bottom: 20px; color: var(--graphite); max-width: 65ch; }

/* Lead form */
.lead { background: var(--yellow); }
.lead-body { padding-top: 56px; padding-bottom: 56px; }
@media (min-width: 768px) { .lead-body { padding-top: 88px; padding-bottom: 88px; } }
.lead-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .lead-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; } }
.lead-grid .section-lead { color: var(--ink-on-yellow); }
.lead-contacts { margin-top: 24px; display: grid; gap: 4px; }
.lead-contacts > a { font-weight: 800; font-size: 28px; text-decoration: none; }
.office { margin-top: 16px; display: grid; gap: 2px; font-style: normal; color: var(--ink-on-yellow); }
.office b { color: var(--black); }
.office a { margin-top: 6px; font-weight: 700; color: var(--black); text-underline-offset: 3px; }
.form { background: var(--white); border-radius: var(--radius-l); padding: 24px; display: grid; gap: 16px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .form { padding: 32px; } }
.field label { display: block; font-weight: 500; font-size: 15px; margin-bottom: 6px; }
.field input, .field select {
  width: 100%; min-height: 52px; padding: 0 16px; border: 2px solid var(--line); border-radius: var(--radius-s); background: var(--white);
}
.field input:focus, .field select:focus { outline: none; border-color: var(--black); }
.error { color: #C62828; font-size: 14px; margin-top: 6px; }
.error:empty { display: none; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--graphite); }
.consent input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--black); }
.form .btn { width: 100%; }
.form-done h3 { font-size: 24px; margin-bottom: 8px; }
.form-done svg { width: 48px; height: 48px; color: var(--go); margin-bottom: 12px; }

/* Footer */
.footer { background: var(--black); color: var(--white); padding: 56px 0 120px; }
@media (min-width: 1024px) { .footer { padding-bottom: 48px; } }
.footer-grid { display: grid; gap: 32px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 0.9fr; } }
.footer .logo { width: 120px; }
.footer h3 { font-size: 16px; color: #B9BBC0; font-weight: 500; letter-spacing: 0; margin-bottom: 12px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer-phone { font-size: 24px; font-weight: 800; }
.footer-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid #2E3034; color: #8C8F95; font-size: 14px; display: grid; gap: 8px; }

/* Mobile action bar */
.actionbar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -4px 20px rgba(0,0,0,.12);
}
@media (min-width: 1024px) { .actionbar { display: none; } }

/* Very narrow phones (≤ 379px) */
@media (max-width: 379px) {
  .hero-facts li { padding: 0 8px; font-size: 12px; }
  .hero-facts b { font-size: 15px; }
  .actionbar .btn { padding: 0 12px; font-size: 15px; }
}

/* ---------- Shared bits for inner pages ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.car { position: relative; }
.car-link { text-decoration: none; }
.car-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.page-top { background: var(--asphalt); padding-top: 20px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px 8px; font-size: 14px; color: var(--graphite); }
.crumbs a { color: var(--graphite); text-underline-offset: 3px; }
.crumbs a:hover { color: var(--black); }
.page-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; padding: 16px 0 24px; }
.page-head h1 { font-size: 30px; max-width: 22ch; }
@media (min-width: 768px) { .page-head h1 { font-size: 44px; } }

/* ---------- Catalog page ---------- */
.catalog-page { padding: 0 0 56px; }
@media (min-width: 768px) { .catalog-page { padding-bottom: 96px; } }
.filters { position: static; z-index: 5; margin: 0 calc(var(--gutter) * -1) 20px; padding: 12px var(--gutter) 4px; background: var(--asphalt); }
.filters-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.filters .seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--white); border-radius: 999px; }
.filters .seg label { position: relative; }
.filters .seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.filters .seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 500; font-size: 15px; }
.filters .seg input:checked + span { background: var(--black); color: var(--white); }
.filters .seg input:focus-visible + span { outline: 3px solid var(--black); outline-offset: 2px; }
.sort select { min-height: 48px; padding: 0 36px 0 14px; border: 0; border-radius: 999px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center / 16px; appearance: none; font-size: 15px; font-weight: 500; cursor: pointer; }
.chips-filter { margin: 0 calc(var(--gutter) * -1); }
.chips-sep { flex: none; width: 1px; margin: 8px 4px; background: var(--line); }
@media (min-width: 768px) { .filters { position: sticky; top: 68px; } }

/* Mobile catalog: compact list (photo left), whole card clickable */
@media (max-width: 767px) {
  .cars-list { display: grid; gap: 12px; overflow: visible; margin: 0; padding: 0; }
  .cars-list > .car { flex: none; display: grid; grid-template-columns: 38% minmax(0, 1fr); }
  .cars-list .car-photo { aspect-ratio: auto; height: 100%; min-height: 150px; }
  .cars-list .badge { top: 8px; left: 8px; font-size: 11px; padding: 3px 6px; }
  .cars-list .car-body { padding: 12px 14px; }
  .cars-list .car-format { margin-bottom: 6px; font-size: 11px; padding: 2px 8px; }
  .cars-list h3 { font-size: 17px; }
  .cars-list .car-specs { font-size: 13px; margin-top: 2px; }
  .cars-list .car-price { padding-top: 10px; gap: 4px; }
  .cars-list .price-row dt, .cars-list .price-row s, .cars-list .price-row dd span { font-size: 13px; }
  .cars-list .price-row b, .cars-list .car-price.is-double b { font-size: 18px; }
  .cars-list .price-row { display: block; }
  .cars-list .price-row dt { display: inline; margin-right: 6px; }
  .cars-list .price-row dd { display: inline; white-space: normal; }
  .cars-list .price-row s { display: none; }
  .cars-list .car-price.is-double .price-row + .price-row { padding-top: 4px; }
  .cars-list .car-actions { display: none; }
  .cars-list .car-link::after { content: ""; position: absolute; inset: 0; }
}

.empty { padding: 40px 0; max-width: 560px; }
.empty h1, .empty h2 { font-size: 28px; margin-bottom: 10px; }
.empty p { color: var(--graphite); }
.empty-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.seo-text { margin-top: 56px; max-width: 760px; }
.seo-text h2 { font-size: 26px; margin-bottom: 12px; }
.seo-text p { color: var(--graphite); margin-top: 10px; }

/* ---------- Car page ---------- */
.single-car .page-top { background: var(--white); }
.car-top { padding: 16px 0 48px; }
.car-top-grid { display: grid; gap: 24px; }
@media (min-width: 1024px) { .car-top-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: start; } }
.car-gallery { position: relative; margin: 0 calc(var(--gutter) * -1); background: var(--asphalt); }
.car-gallery img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.car-gallery .badge { top: 16px; left: var(--gutter); font-size: 14px; }
@media (min-width: 768px) { .car-gallery { margin: 0; border-radius: var(--radius-l); overflow: hidden; } .car-gallery .badge { left: 16px; } }
.car-panel h1 { font-size: 32px; }
@media (min-width: 1024px) { .car-panel { position: sticky; top: 92px; padding: 28px; border-radius: var(--radius-l); background: var(--asphalt); } .car-panel h1 { font-size: 40px; } }
.car-panel .car-specs { font-size: 16px; margin-top: 8px; }
.car-panel .car-price { margin-top: 20px; padding: 16px 0 0; border-top: 1px solid var(--line); gap: 10px; }
.car-panel .price-row b, .car-panel .car-price.is-double b { font-size: 30px; }
.car-panel .price-row dt { font-size: 17px; color: var(--black); font-weight: 500; }
.car-terms { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.car-terms li { position: relative; padding-left: 22px; font-size: 16px; }
.car-terms li::before { content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; background: var(--black); }
.car-cta { width: 100%; margin-top: 24px; min-height: 56px; }
.car-call { display: block; margin-top: 14px; text-align: center; font-size: 15px; color: var(--graphite); text-decoration: none; }
.car-call b { color: var(--black); }

.car-info { background: var(--asphalt); }
.car-info-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .car-info-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.car-info h2 { font-size: 28px; margin-bottom: 16px; }
@media (min-width: 768px) { .car-info h2 { font-size: 32px; } }
.car-about { max-width: 62ch; }
.car-subtitle { margin: 32px 0 12px; }
.specs { margin: 0; display: grid; background: var(--white); border-radius: var(--radius-m); overflow: hidden; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; }
.specs div + div { border-top: 1px solid var(--asphalt); }
.specs dt { color: var(--graphite); }
.specs dd { margin: 0; font-weight: 500; text-align: right; }
.included { background: var(--white); border-radius: var(--radius-l); padding: 28px; align-self: start; }
.included ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.included li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.included li svg { width: 28px; height: 28px; padding: 5px; background: var(--yellow); border-radius: 50%; }
.included b { display: block; }
.included span { color: var(--graphite); font-size: 15px; }
.included span b { color: var(--black); font-size: 17px; }
.included-note { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 500; }

.actionbar-car { grid-template-columns: 1fr auto; align-items: center; }
.ab-price { display: grid; line-height: 1.2; }
.ab-price b { font-size: 20px; font-weight: 800; }
.ab-price span { font-size: 13px; color: var(--graphite); }
@media (min-width: 768px) { .chips-filter { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0 0 4px; } }

/* ---------- WordPress theme additions ---------- */
.skip-link:focus { position: fixed; left: 16px; top: 16px; z-index: 100; width: auto; height: auto; clip: auto; padding: 10px 16px; background: var(--black); color: var(--white); border-radius: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hero-promo { display: inline-block; margin-top: 20px; padding: 8px 14px; background: var(--black); color: var(--yellow); font-weight: 700; }
.footer-about { margin-top: 16px; color: #C9CBCF; max-width: 32ch; }
.form .error#e-form { margin: 0; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* News list page */
.news-list-page { gap: 20px; }
@media (min-width: 640px) { .news-list-page { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .news-list-page { grid-template-columns: repeat(3, 1fr); } }
.news-list-page .news-item { display: flex; flex-direction: column; }
.news-list-page h2 { font-size: 21px; line-height: 1.25; }
.news-item time { display: block; color: var(--graphite); font-size: 14px; margin-bottom: 6px; }
.news-thumb { display: block; margin: -24px -24px 16px; aspect-ratio: 3 / 2; overflow: hidden; border-radius: var(--radius-m) var(--radius-m) 0 0; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pager { margin-top: 32px; }
.pager .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.pager .page-numbers { display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px; background: var(--asphalt); text-decoration: none; }
.pager .page-numbers.current { background: var(--black); color: var(--white); }

/* Article / simple page */
.article { padding-top: 24px; }
.article-inner { max-width: 820px; }
.article time { display: block; color: var(--graphite); margin-bottom: 8px; }
.article h1 { font-size: 32px; margin-bottom: 24px; }
@media (min-width: 768px) { .article h1 { font-size: 44px; } }
.article-cover { margin: 0 0 28px; border-radius: var(--radius-l); overflow: hidden; }
.article-cover img { width: 100%; height: auto; }
.prose { max-width: 68ch; }
.prose > * + * { margin-top: 16px; }
.prose h2 { font-size: 26px; margin-top: 36px; }
.prose h3 { margin-top: 28px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose a { text-underline-offset: 3px; }
.article-back { margin-top: 40px; font-weight: 700; }

/* Contacts */
.page-kontakty .page-top, .page-template-page-kontakty .page-top { background: var(--asphalt); }
.contacts { padding-top: 8px; background: var(--asphalt); }
.contacts-grid { display: grid; gap: 24px; }
@media (min-width: 900px) { .contacts-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); align-items: stretch; } }
.contacts-card { background: var(--white); border-radius: var(--radius-l); padding: 28px; }
.contacts-card address { font-style: normal; font-size: 19px; }
.contacts-label { margin-top: 20px; color: var(--graphite); font-size: 14px; }
.contacts-label:first-child { margin-top: 0; }
.contacts-phone { display: inline-block; font-size: 30px; font-weight: 800; text-decoration: none; }
.contacts-card .muted { color: var(--graphite); }
.contacts-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.contacts-map { min-height: 360px; border-radius: var(--radius-l); overflow: hidden; background: #DFE1E4; }
.contacts-map iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }
.chip:disabled { opacity: .45; cursor: default; }
.city-btn { white-space: nowrap; }
@media (max-width: 400px) { .city-btn { padding: 0 10px; font-size: 14px; } .header-inner { gap: 10px; } }

/* Cookie notice: above the mobile action bar, bottom-left on desktop */
.cookie {
  position: fixed; z-index: 35; left: 12px; right: 12px; bottom: calc(80px + env(safe-area-inset-bottom));
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 16px;
  background: var(--white); border-radius: var(--radius-m); box-shadow: var(--shadow); font-size: 14px; line-height: 1.4;
}
.cookie p { flex: 1 1 220px; margin: 0; color: var(--graphite); }
.cookie a { color: var(--black); }
@media (min-width: 1024px) { .cookie { left: 24px; right: auto; bottom: 24px; max-width: 460px; } }
@media (max-width: 1023px) {
  .cookie { flex-wrap: nowrap; padding: 10px 12px; gap: 12px; font-size: 13px; line-height: 1.35; }
  .cookie p { flex: 1 1 0; min-width: 0; }
  .cookie .btn { flex: none; min-height: 40px; padding: 0 14px; }
}
.contacts-where { background: var(--yellow); border-radius: var(--radius-l); padding: 28px; }
.contacts-where address { font-style: normal; font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.contacts-where p { margin-top: 10px; color: var(--ink-on-yellow); }
.contacts-where .contacts-label { color: var(--ink-on-yellow); margin-top: 0; }
.contacts-where .btn-ghost { background: rgba(0,0,0,.08); }

/* Выбор города — справа, рядом с телефоном */
.header .city { margin-left: auto; }
.header-call { margin-left: 0; }
@media (min-width: 1024px) { .header-phone { margin-left: 0; } .city-menu { left: auto; right: 0; } }
/* На узких десктопах (1024–1279 px) в шапке не помещается кнопка заявки — оставляем город и телефон */
@media (min-width: 1024px) and (max-width: 1279px) { .header .btn { display: none; } }

/* Подборки каталога (/avto/vykup/ и т. д.) */
.seg-intro { max-width: 70ch; padding-bottom: 28px; display: grid; gap: 10px; color: var(--graphite); }
.seg-links { margin-bottom: 20px; }

/* «Условия и цены»: таблица машин, на телефоне листается вбок внутри блока */
.price-date { color: var(--graphite); max-width: 70ch; margin-bottom: 20px; }
.price-table-wrap { overflow-x: auto; margin: 0 calc(var(--gutter) * -1) 40px; padding: 0 var(--gutter); }
.price-table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; background: var(--white); font-size: 15px; } /* без overflow:hidden — иначе не работает закреплённая колонка */
.price-table thead th:first-child { border-top-left-radius: 12px; }
.price-table thead th:last-child { border-top-right-radius: 12px; }
.price-table th, .price-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.price-table thead th { background: var(--black); color: var(--white); font-weight: 600; font-size: 14px; white-space: nowrap; }
.price-table tbody th { font-weight: 600; }
.price-table tbody th a { color: inherit; text-underline-offset: 3px; }
.price-table td b { white-space: nowrap; }
.price-table s { color: var(--graphite); font-size: 13px; white-space: nowrap; }
.price-table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 767px) {
  /* Название машины закреплено слева, цены листаются */
  .price-table-wrap { padding: 0; }
  .price-table th:first-child { position: sticky; left: 0; z-index: 1; min-width: 160px; padding-left: var(--gutter); background: var(--white); box-shadow: 1px 0 0 var(--line); }
  .price-table thead th:first-child { background: var(--black); }
}
