*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { max-width: 100%; overflow-x: hidden; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 .5em; line-height: 1.2; text-wrap: balance; }
p { margin: 0 0 1em; }
.container { max-width: 1760px; margin: 0 auto; padding: 0 28px; }
.section { padding: 64px 0; }
.section--tight { padding: 40px 0; }
.section-head { max-width: 640px; margin: 0 0 32px; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }
.eyebrow {
  display: inline-block; font-weight: 700; font-size: .78rem; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 2px solid transparent; border-radius: var(--radius-btn); padding: 13px 26px;
  font-weight: 700; font-size: .95rem; cursor: pointer; font-family: var(--font-body);
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .22s cubic-bezier(.2,.8,.2,1), background .25s ease, color .2s ease, border-color .2s ease, box-shadow .25s ease;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; border-radius: inherit;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.22), transparent);
  transform: translateX(-120%); transition: transform .55s ease, opacity .2s ease;
}
.btn:hover::after { opacity: 1; transform: translateX(120%); }
.btn:active { transform: scale(.96) translateY(0) !important; }
.btn--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: var(--accent-contrast); box-shadow: 0 10px 24px -10px var(--accent-shadow, var(--accent));
}
.btn--primary:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px var(--accent-shadow, var(--accent)); filter: brightness(1.05); }
.btn--outline { background: var(--surface); border-color: var(--border-strong, currentColor); color: var(--text); box-shadow: 0 4px 14px -8px rgba(0,0,0,.18); }
.btn--outline:hover { background: var(--accent); color: var(--accent-contrast); border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 14px 28px -12px var(--accent-shadow, rgba(0,0,0,.3)); }
.hero-slide .btn--outline {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.75); color: #fff !important;
  backdrop-filter: blur(2px); box-shadow: none;
}
.hero-slide .btn--outline:hover { background: #fff; color: var(--text) !important; border-color: #fff; }
.btn--ghost { background: var(--surface-2); color: var(--text); }
.btn--ghost:hover { background: var(--surface-3); transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: .85rem; border-radius: calc(var(--radius-btn) - 2px); }
.btn--block { width: 100%; }
.btn--light { background: #fff; color: #111; }
@media (prefers-reduced-motion: reduce) {
  .btn, .btn::after { transition: none !important; }
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50; background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(6px);
}
.site-header__bar { display: flex; align-items: center; gap: 24px; padding-top: 14px; padding-bottom: 14px; min-width: 0; position: relative; }
.site-header__bar > * { min-width: 0; }
.logo { flex-shrink: 0; display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; font-size: 1.35rem; color: var(--text); white-space: nowrap; transition: opacity .2s; }
.logo:hover { opacity: .82; }
.logo__mark {
  width: 42px; height: 42px; border-radius: var(--radius-logo);
  background: linear-gradient(145deg, var(--accent), var(--accent-hover));
  color: var(--accent-contrast); display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.1rem; flex-shrink: 0; box-shadow: 0 6px 16px -8px var(--accent-shadow, var(--accent));
}
.logo__mark svg { width: 24px; height: 24px; display: block; }
.logo__word { letter-spacing: -.01em; }
.main-nav { display: flex; gap: 4px; margin-left: 12px; flex: 1; }
.main-nav a {
  padding: 10px 14px; border-radius: 8px; font-weight: 600; font-size: .93rem; color: var(--text-muted);
  transition: background .15s, color .15s;
}
.main-nav a:hover, .main-nav a.is-active { background: var(--surface-2); color: var(--text); }
.header-contact { display: flex; align-items: center; gap: 12px; margin-left: auto; flex-shrink: 0; }
.header-contact__icon { display: none; }
.main-nav__contact { display: none; }
.header-contact__phone { font-weight: 800; font-size: 1.05rem; white-space: nowrap; }
.header-contact__sub { display: block; font-size: .75rem; font-weight: 500; color: var(--text-muted); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px; background: var(--surface-2);
  border: none; cursor: pointer; position: relative; flex-shrink: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
  content: ""; position: absolute; left: 10px; right: 10px; height: 2px; background: var(--text); transition: transform .2s, opacity .2s;
}
.nav-toggle::before { top: 14px; }
.nav-toggle span { top: 20px; }
.nav-toggle::after { top: 26px; }
.nav-toggle.is-active::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-active::after { transform: translateY(-6px) rotate(-45deg); }
.nav-toggle.is-active span { opacity: 0; }

/* Hero */
.hero {
  position: relative; overflow: hidden; color: var(--hero-text);
  background: var(--hero-bg);
}
.hero__inner { position: relative; z-index: 2; padding: 72px 0 88px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1, .hero h2 { font-size: clamp(1.9rem, 3.6vw, 3.1rem); line-height: 1.14; text-wrap: balance; color: var(--hero-heading, var(--hero-text)); }
.hero p.lead { font-size: 1.15rem; opacity: .88; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero__stats { display: flex; gap: 28px; margin-top: 40px; flex-wrap: wrap; }
.hero__stat b { display: block; font-size: 1.7rem; font-family: var(--font-head); }
.hero__stat span { font-size: .82rem; opacity: .75; }
.hero__media { position: relative; border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4/3; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media-tag {
  position: absolute; bottom: 16px; left: 16px; background: rgba(0,0,0,.55); color: #fff;
  padding: 8px 14px; border-radius: 30px; font-size: .82rem; font-weight: 600; backdrop-filter: blur(4px);
}

/* Full-bleed slide photo */
.hero-slide {
  position: relative; background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.hero-slide--1 { background-image: url('../images/hero/slide-1.webp'); }
.hero-slide--2 { background-image: url('../images/hero/slide-2.webp'); }
.hero-slide--3 { background-image: url('../images/hero/slide-3.webp'); }
@media (max-width: 680px) {
  .hero-slide--1 { background-image: url('../images/hero/slide-1-mobile.webp'); }
  .hero-slide--2 { background-image: url('../images/hero/slide-2-mobile.webp'); }
  .hero-slide--3 { background-image: url('../images/hero/slide-3-mobile.webp'); }
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(100deg, rgba(4,6,10,.92) 0%, rgba(6,8,12,.72) 34%, rgba(6,8,12,.32) 62%, rgba(6,8,12,.08) 85%),
    linear-gradient(to top, rgba(0,0,0,.35) 0%, rgba(0,0,0,0) 32%);
}
@media (max-width: 980px) {
  .hero-slide::before {
    background: linear-gradient(180deg, rgba(5,7,12,.6) 0%, rgba(5,7,12,.48) 40%, rgba(4,6,10,.8) 100%);
  }
}
.hero-slide::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  box-shadow: inset 0 0 140px rgba(0,0,0,.45);
}
.hero-slide .hero__inner { position: relative; z-index: 2; display: block; width: 100%; max-width: none; padding: 60px 0; }
.hero-slide .hero__inner > div:first-child { width: 58%; max-width: 700px; }
@media (max-width: 980px) {
  .hero-slide .hero__inner > div:first-child { width: 72%; max-width: none; }
}
@media (max-width: 680px) {
  .hero-slide .hero__inner > div:first-child { width: 100%; }
}
.hero__stat-big { margin-top: 32px; }
.hero__stat-big b { display: block; font-family: var(--font-head); font-size: 3.4rem; line-height: 1; color: #fff; }
.hero__stat-big span { color: rgba(255,255,255,.8); }
@media (max-width: 680px) {
  .hero-slider { height: 960px; }
  .hero-slide .hero__inner { padding: 40px 0; }
  .hero__stat-big b { font-size: 2.6rem; }
}
@media (max-width: 980px) and (min-width: 681px) {
  .hero-slider { height: 880px; }
}

/* USP strip */
.usp-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -44px; position: relative; z-index: 3; padding-bottom: 56px; }
.usp-card {
  background: var(--surface); border-radius: var(--radius-card); padding: 24px; box-shadow: var(--shadow-1);
  border: 1px solid var(--border); transition: transform .25s cubic-bezier(.2,.8,.2,1), border-color .25s ease;
}
.usp-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.usp-card b { display: block; font-size: 1.3rem; font-family: var(--font-head); margin-bottom: 4px; }
.usp-card span { color: var(--text-muted); font-size: .88rem; }

/* Cards grid generic */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* Car card */
.car-card {
  background: var(--surface); border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border);
  display: flex; flex-direction: column; transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s ease, border-color .28s ease;
}
.car-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-1); border-color: var(--accent); }
.car-card__media { overflow: hidden; }
.car-card__media img { transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.car-card:hover .car-card__media img { transform: scale(1.06); }
.car-card__media { position: relative; aspect-ratio: 4/3; background: var(--surface-2); display: block; }
.car-card__media img { width: 100%; height: 100%; object-fit: cover; }
.car-card__placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(135deg, var(--surface-2), var(--surface-3));
  color: var(--text-muted); font-weight: 700; padding: 12px; font-size: .95rem;
}
.car-card__badge {
  position: absolute; top: 12px; left: 12px; background: var(--accent); color: var(--accent-contrast);
  font-size: .72rem; font-weight: 800; padding: 5px 10px; border-radius: 20px; text-transform: uppercase;
}
.car-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.car-card__title { font-size: 1.08rem; }
.car-card__title a:hover { color: var(--accent); }
.car-card__specs { display: flex; flex-wrap: wrap; gap: 6px 10px; font-size: .82rem; color: var(--text-muted); }
.car-card__specs li::after { content: ""; }
.car-card__footer { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px dashed var(--border); }
.car-card { container-type: inline-size; }
.car-card__price { display: flex; flex-direction: column; font-weight: 800; font-size: 1.1rem; white-space: nowrap; }
.car-card__price span { white-space: nowrap; }
/* узкая карточка (десктоп, 4–5 колонок): цена сверху, кнопка на всю ширину — цена и «₽» всегда в одной строке */
@container (max-width: 280px) {
  .car-card__footer { flex-wrap: wrap; row-gap: 10px; }
  .car-card__footer .btn { flex: 1 1 100%; justify-content: center; text-align: center; }
}
.car-card__price-old { font-weight: 500; font-size: .82rem; color: var(--text-muted); text-decoration: line-through; }

/* Catalog layout */
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.filters {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 20px; position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px;
}
.filters h2 { font-size: 1rem; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .8rem; font-weight: 700; color: var(--text-muted); }
.field-row { display: flex; gap: 8px; }
select, input[type="text"], input[type="number"], input[type="tel"], input[type="email"], textarea {
  font-family: var(--font-body); font-size: .94rem; padding: 12px 14px; border-radius: 12px;
  border: 1.5px solid var(--border); background: var(--surface); color: var(--text); width: 100%;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
select:focus, input:focus, textarea:focus {
  outline: none; border-color: var(--accent); background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-soft, rgba(0,0,0,.05));
}
select:hover, input:hover, textarea:hover { border-color: var(--border-strong, var(--border)); }
input.is-invalid { border-color: #e5484d; }
.catalog-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.catalog-toolbar .count { color: var(--text-muted); font-size: .92rem; }
#catalogEmpty { display: none; text-align: center; padding: 60px 20px; color: var(--text-muted); }
.load-more { text-align: center; margin-top: 32px; }

/* Car detail */
.car-detail { display: grid; grid-template-columns: 1.3fr .9fr; gap: 40px; align-items: start; }
.gallery__main { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4/3; background: var(--surface-2); }
.gallery__main img { width: 100%; height: 100%; object-fit: cover; }
.gallery__main--placeholder { display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-weight: 700; font-size: 1.2rem; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.gallery__thumb { width: 78px; height: 58px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: var(--surface-2); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.is-active { border-color: var(--accent); }
.buy-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; position: sticky; top: 90px; }
.buy-card .price-old { color: var(--text-muted); text-decoration: line-through; font-size: 1rem; }
.buy-card .price { font-size: 2rem; font-family: var(--font-head); margin: 4px 0 18px; }
.buy-card .btn { margin-bottom: 10px; }
.specs-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: .93rem; gap: 12px; }
.specs-row span { color: var(--text-muted); }

/* Credit calc widget */
.calc-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.calc-result { background: var(--surface-2); border-radius: 14px; padding: 20px; text-align: center; margin-top: 16px; }
.calc-result .js-calc-result { font-size: 1.9rem; font-family: var(--font-head); font-weight: 800; color: var(--accent); display: block; }
.calc-result .js-calc-overpay { color: var(--text-muted); font-size: .88rem; }
input[type="range"] { width: 100%; accent-color: var(--accent); }

/* Reviews */
.review-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.review-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.review-card__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: var(--accent-contrast); display: flex; align-items: center; justify-content: center; font-weight: 800; }
.review-card__stars { color: var(--accent); font-size: .9rem; }
.video-review { aspect-ratio: 9/16; max-width: 260px; border-radius: var(--radius-card); background: var(--surface-2); display: flex; align-items: center; justify-content: center; color: var(--text-muted); border: 1px solid var(--border); text-align:center; padding: 20px; font-size: .85rem; }

/* Steps / process */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding-top: 46px; }
.step h3 { font-size: 1.2rem; }
.step::before {
  counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0;
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: var(--accent-contrast);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-head);
}

/* Consent checkbox */
.field-consent { display: flex; align-items: flex-start; gap: 10px; font-size: .82rem; color: var(--text-muted); cursor: pointer; }
.field-consent input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent); }
.field-consent a { color: var(--text); text-decoration: underline; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* Cookie bar */
.cookie-bar {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-1);
  padding: 18px 20px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  transform: translateY(140%); transition: transform .35s ease; max-width: 760px; margin: 0 auto;
}
.cookie-bar.is-visible { transform: translateY(0); }
.cookie-bar.is-hidden { transform: translateY(140%); }
.cookie-bar p { margin: 0; font-size: .85rem; color: var(--text-muted); flex: 1; min-width: 220px; }
.cookie-bar__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* Hero slider */
.hero-slider { position: relative; overflow: hidden; height: 860px; }
.hero-slider .hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; z-index: 1;
  transition: opacity .4s ease;
}
.hero-slider .hero-slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.hero-slider__dots { position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; display: flex; gap: 8px; z-index: 5; }
@media (max-width: 980px) { .hero-slider__dots { bottom: 36px; } }
.hero-slider__dot { width: 9px; height: 9px; border-radius: 50%; border: none; background: rgba(255,255,255,.45); padding: 0; cursor: pointer; }
.hero-slider__dot.is-active { background: #fff; }
.hero-slider__arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 42px; height: 42px; border-radius: 50%;
  background: rgba(0,0,0,.32); color: #fff; border: none; cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
}
.hero-slider__arrow:hover { background: rgba(0,0,0,.5); }
.hero-slider__arrow--prev { left: max(12px, calc((100vw - 1760px) / 2 + 8px)); }
.hero-slider__arrow--next { right: max(12px, calc((100vw - 1760px) / 2 + 8px)); }
.hero-slider .hero__inner { padding-left: max(60px, calc((100vw - 1760px) / 2 + 60px)); padding-right: max(60px, calc((100vw - 1760px) / 2 + 60px)); }
@media (max-width: 680px) {
  .hero-slider__arrow { display: none; }
  .hero-slider .hero__inner { padding-left: 40px; padding-right: 40px; }
}

/* Brand tiles */
.brand-tile {
  display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 20px 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); transition: transform .15s, box-shadow .15s;
}
.brand-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.brand-tile__mark {
  width: 56px; height: 56px; border-radius: 50%; background: #ffffff; color: var(--text);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-head); font-size: 1rem;
  border: 1px solid var(--border); overflow: hidden; flex-shrink: 0;
}
.brand-tile__mark img { width: 68%; height: 68%; object-fit: contain; filter: grayscale(1) contrast(1.05); opacity: .82; }
.brand-tile__name { font-weight: 700; font-size: .92rem; }
.brand-tile__count { font-size: .78rem; color: var(--text-muted); }
/* flex вместо grid: неполный последний ряд центрируется, а не «обрывается» слева (марок 50, кратность колонкам не гарантирована) */
.brands-grid { --cols: 6; --gap: 14px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.brands-grid .brand-tile { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); }
/* свёрнуто: 2 ряда на десктопе (12 плиток), 3 ряда на планшете и 4 на мобильном (тоже 12), на широком экране 2 ряда по 8 = 16 */
.brands-grid:not(.is-open) .brand-tile:nth-child(n+13) { display: none; }
.brands-more { display: flex; justify-content: center; margin-top: 22px; }
.brand-tile { min-width: 0; }
.brand-tile__name { max-width: 100%; overflow-wrap: anywhere; }
@media (max-width: 980px) { .brands-grid { --cols: 4; } }
@media (max-width: 680px) {
  .brands-grid { --cols: 3; --gap: 10px; }
  .brand-tile { padding: 14px 6px; gap: 6px; }
  .brand-tile__mark { width: 46px; height: 46px; }
  .brand-tile__name { font-size: .74rem; letter-spacing: 0; }
  .brand-tile__count { font-size: .7rem; }
}

/* Home catalog toggle */
.condition-tabs { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.condition-tabs a { padding: 10px 18px; border-radius: 30px; background: var(--surface-2); font-weight: 700; font-size: .88rem; }
.condition-tabs a.is-active { background: var(--accent); color: var(--accent-contrast); }

/* Forms / modal */
.modal { position: fixed; inset: 0; background: rgba(10,10,12,.55); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal.is-open { display: flex; }
.modal__panel { background: var(--surface); border-radius: var(--radius-card); padding: 32px; max-width: 440px; width: 100%; position: relative; max-height: 90vh; overflow-y: auto; }
.modal__panel h3 { padding-right: 48px; overflow-wrap: anywhere; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--surface-2); cursor: pointer; font-size: 1.1rem; }
.form-grid { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.form-note { font-size: .78rem; color: var(--text-muted); }
body.no-scroll { overflow: hidden; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px); background: var(--text);
  color: var(--bg); padding: 14px 22px; border-radius: 12px; font-weight: 600; font-size: .92rem; z-index: 200;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; max-width: 90vw; text-align: center;
}
.toast.is-visible { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Callback floating button */
.fab-callback {
  position: fixed; right: 22px; bottom: 22px; z-index: 60; background: var(--accent); color: var(--accent-contrast);
  border: none; border-radius: 30px; padding: 15px 22px; font-weight: 800; box-shadow: var(--shadow-1); cursor: pointer;
  display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: .92rem; max-width: calc(100vw - 32px);
}

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 56px 0 28px; margin-top: 64px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 30px; }
.footer-grid h4 { font-size: .95rem; margin-bottom: 14px; }
.footer-grid a, .footer-grid p { color: var(--footer-text-muted); font-size: .9rem; }
.footer-grid li { margin-bottom: 8px; color: var(--footer-text-muted); font-size: .9rem; overflow-wrap: anywhere; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--footer-border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .8rem; color: var(--footer-text-muted); }

/* Map */
.map-frame { border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--border); }
.map-frame iframe { width: 100%; height: 380px; border: 0; display: block; }
.map-frame__caption { padding: 14px 18px; background: var(--surface); border-top: 1px solid var(--border); font-weight: 700; font-size: .92rem; }
.contact-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 24px; }
.contact-card dt { color: var(--text-muted); font-size: .82rem; margin-top: 14px; }
.contact-card dd { margin: 2px 0 0; font-weight: 700; }

/* Location block (above footer) */
.location { padding: 56px 0 8px; }
.location__card {
  display: grid; grid-template-columns: minmax(300px, 460px) 1fr; gap: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-1);
}
.location__info { padding: 36px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.location__info h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 12px; }
.location__row { display: flex; flex-direction: column; padding: 12px 0; border-top: 1px dashed var(--border); }
.location__row span { font-size: .78rem; color: var(--text-muted); margin-bottom: 2px; }
.location__row b, .location__row a { font-weight: 700; overflow-wrap: anywhere; }
.location__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.location__map { position: relative; min-height: 380px; background: var(--surface-2); min-width: 0; }
.location__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 860px) {
  .location { padding-top: 40px; }
  .location__card { grid-template-columns: 1fr; }
  .location__info { padding: 24px 20px; }
  .location__map { min-height: 300px; }
}

/* Page hero (inner pages) */
.page-hero { padding-top: 48px; padding-bottom: 24px; }
.page-hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
.breadcrumbs { font-size: .85rem; color: var(--text-muted); margin-bottom: 14px; }
.breadcrumbs a:hover { color: var(--accent); }

.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }
.prose li { margin-bottom: .4em; }

@media (min-width: 1500px) {
  .grid--4 { grid-template-columns: repeat(5, 1fr); }
  .brands-grid { --cols: 8; }
  .brands-grid:not(.is-open) .brand-tile:nth-child(n+13):nth-child(-n+16) { display: flex; }
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; }
  .usp-strip { grid-template-columns: repeat(2, 1fr); margin-top: 24px; padding-bottom: 44px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .car-detail { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .main-nav.is-open { display: flex; flex-direction: column; margin-left: 0; position: absolute; top: 100%; left: 0; right: 0; background: var(--surface); padding: 10px 20px 20px; border-bottom: 1px solid var(--border); box-shadow: 0 24px 40px -20px rgba(0,0,0,.35); z-index: 40; }
  .nav-toggle { display: block; }
}
@media (max-width: 680px) {
  .header-contact__sub, .header-contact__cta, .header-contact__phone { display: none; }
  .header-contact__icon {
    display: flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px;
    background: linear-gradient(145deg, var(--accent), var(--accent-hover)); color: var(--accent-contrast);
    box-shadow: 0 6px 16px -8px var(--accent-shadow, var(--accent));
  }
  .main-nav.is-open .main-nav__contact {
    display: flex; flex-direction: column; gap: 4px; margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--border);
  }
  .main-nav__contact a { font-weight: 800; font-size: 1.15rem; color: var(--text); padding: 0; }
  .main-nav__contact span { font-size: .8rem; color: var(--text-muted); margin-bottom: 10px; }
  .logo { font-size: 1.05rem; gap: 8px; }
  .logo__mark { width: 34px; height: 34px; font-size: .9rem; }
  .logo__mark svg { width: 19px; height: 19px; }
  .site-header__bar { gap: 10px; }
  .header-contact { gap: 8px; margin-right: 8px; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .usp-strip { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .calc-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .site-header__bar { flex-wrap: nowrap; }
  .fab-callback { right: 14px; bottom: 14px; padding: 14px; border-radius: 50%; }
  .fab-callback__text { display: none; }
  .site-footer { padding-bottom: 84px; }
}
