:root {
  --bg: #080809;
  --bg2: #0f0f12;
  --surface: #16161a;
  --surface2: #1e1e24;
  --text: #f4f4f5;
  --muted: #9898a3;
  --accent: #d4b56a;
  --accent-dim: rgba(212, 181, 106, 0.35);
  --accent2: #f0e6c8;
  --border: #2e2e36;
  --radius: 6px;
  --radius-lg: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --header-z: 100;
  --lightbox-z: 200;
  /* Единая мера строки текста и вертикальный ритм блоков */
  --prose-max: min(68ch, 100%);
  --prose-max-tight: min(58ch, 100%);
  --section-y: clamp(40px, 6vw, 64px);
  --gap-after-h2: 22px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.5; overflow-x: hidden;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
/* Контейнер как у butikavto.by: max-width 1600px, padding 50px; ≤999px — 15px */
.wrap {
  width: 100%;
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  padding-left: max(50px, env(safe-area-inset-left, 0px));
  padding-right: max(50px, env(safe-area-inset-right, 0px));
  /* Сетка каталога считает колонки по ширине контента, а не по viewport */
  container-type: inline-size;
  container-name: wrap;
}
@media (max-width: 999px) {
  .wrap {
    padding-left: max(15px, env(safe-area-inset-left, 0px));
    padding-right: max(15px, env(safe-area-inset-right, 0px));
  }
}
.topbar {
  /* Ниже шапки: иначе при наложениях клики могут «проседать» под верхнюю полосу */
  position: relative; z-index: calc(var(--header-z) - 1);
  background: var(--bg2); border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 10px 0;
  min-height: 44px;
}
.topbar__tagline {
  flex: 1 1 auto;
  min-width: 0;
}
.topbar__phones {
  flex-shrink: 0;
  text-align: right;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 12px;
}
.topbar__phones a {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.topbar__sep { opacity: 0.45; }
.topbar a { color: var(--accent2); }
.header__brand-row {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 16px;
  min-width: 0;
}
.header__contacts {
  display: none;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 4px;
  font-size: 11px;
  line-height: 1.35;
  color: var(--muted);
  max-width: min(100%, 200px);
}
.header__hours { display: block; }
.header__phone {
  display: inline-block;
  color: var(--accent2);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
}
.header__phone:hover { color: var(--accent2); text-decoration: underline; }
.header {
  position: sticky; top: 0; z-index: var(--header-z);
  background: linear-gradient(180deg, rgba(8,8,9,0.97) 0%, rgba(8,8,9,0.92) 100%);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 24px; padding: 14px 0 16px;
}
.logo {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex-shrink: 0;
  line-height: 1.1; text-decoration: none; color: var(--text);
  letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
}
.logo:hover { text-decoration: none; color: var(--text); }
.logo__wordmark {
  font-weight: 700; font-size: clamp(17px, 3.8vw, 22px); color: var(--accent2);
  letter-spacing: 0.15em; text-shadow: 0 0 36px var(--accent-dim);
}
.nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 12px 8px; flex: 1 1 280px; min-width: 0;
}
.nav__links {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end;
  gap: 6px 4px; min-width: 0;
}
.nav__links a {
  display: inline-block; padding: 8px 10px; color: var(--muted);
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.07em;
  border-radius: var(--radius); text-decoration: none; white-space: nowrap;
}
.nav__links a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.nav-dropdown {
  position: relative;
  display: inline-block;
}
.nav-dropdown__summary {
  list-style: none;
  cursor: pointer;
  display: inline-block;
  padding: 8px 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  border-radius: var(--radius);
  user-select: none;
}
.nav-dropdown__summary::-webkit-details-marker { display: none; }
.nav-dropdown__summary::after {
  content: " ▾";
  font-size: 9px;
  opacity: 0.75;
}
.nav-dropdown[open] > .nav-dropdown__summary {
  color: var(--text);
  background: var(--surface);
}
.nav-dropdown__summary:hover { color: var(--text); background: var(--surface); }
.nav-dropdown__panel {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  min-width: min(280px, calc(100vw - 32px));
  padding: 8px 0;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45);
  z-index: calc(var(--header-z) + 2);
}
.nav-dropdown__panel a {
  display: block;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
  border-radius: 0;
  white-space: normal;
  line-height: 1.35;
}
.nav-dropdown__panel a:hover {
  background: var(--surface);
  color: var(--accent2);
  text-decoration: none;
}
@media (max-width: 900px) {
  .topbar { display: none; }
  /* Совпадает с боковыми полями .wrap на узких экранах (15px + safe-area) */
  .header > .wrap {
    padding-left: max(15px, env(safe-area-inset-left, 0px));
    padding-right: max(15px, env(safe-area-inset-right, 0px));
  }
  /* Верх шапки: логотип к левому краю, график и телефон — к правому; ниже — меню */
  .header__brand-row {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
  }
  .header__contacts {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    flex-shrink: 0;
    max-width: calc(100% - 132px);
    min-width: 0;
  }
  .header__hours {
    font-size: 10px;
    line-height: 1.35;
    order: 2;
  }
  .header__phone {
    order: 1;
    font-size: clamp(16px, 4.8vw, 20px);
    font-weight: 700;
    letter-spacing: 0.02em;
  }
  .header__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 12px 0 14px;
  }
  .nav {
    width: 100%;
    max-width: 100%;
    flex: none;
    min-width: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
  }
  .btn--nav {
    flex-shrink: 0;
    width: auto;
    max-width: none;
    align-self: center;
    padding: 8px 12px;
    font-size: 9px;
  }
  .nav__links {
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__links a {
    flex-shrink: 0;
    width: auto;
    max-width: none;
    padding: 7px 8px;
    font-size: 10px;
    text-align: center;
    box-sizing: border-box;
    white-space: nowrap;
  }
  .nav-dropdown {
    flex-shrink: 0;
    width: auto;
    max-width: none;
  }
  .nav-dropdown__summary {
    width: auto;
    max-width: none;
    padding: 7px 8px;
    font-size: 10px;
    text-align: center;
    box-sizing: border-box;
  }
  /* Панель не внутри прокручиваемой полосы по оси Y — fixed снизу, иначе overflow-x обрезает absolute */
  .nav-dropdown__panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    margin-top: 0;
    max-width: none;
    min-width: 0;
    max-height: min(70vh, 420px);
    overflow-y: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.5);
    z-index: calc(var(--header-z) + 5);
    padding-bottom: max(12px, env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 640px) {
  .topbar__inner {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px 12px;
    padding: 8px 0;
  }
  .topbar__tagline {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 12px;
    line-height: 1.4;
  }
  .topbar__phones {
    flex-shrink: 0;
    text-align: right;
    justify-content: flex-end;
  }
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 11px 20px; border-radius: var(--radius); background: var(--accent);
  color: #141414; font-weight: 700; border: none; cursor: pointer;
  text-transform: uppercase; letter-spacing: 0.07em; font-size: 11px; text-decoration: none;
  transition: filter 0.15s ease, transform 0.1s ease;
}
.btn:hover { filter: brightness(1.06); text-decoration: none; color: #141414; }
.btn:active { transform: scale(0.98); }
.btn--ghost { background: transparent; color: var(--accent2); border: 1px solid var(--accent); }
.btn--nav { flex-shrink: 0; padding: 10px 16px; font-size: 10px; }
.main { position: relative; z-index: 0; min-height: 48vh; }
.main__messages { padding-top: 16px; padding-bottom: 8px; }
.hero {
  min-height: min(56vh, 620px); display: flex; flex-direction: column; justify-content: center;
  padding: clamp(36px, 8vw, 72px) 0;
  background:
    radial-gradient(ellipse 80% 50% at 85% 15%, rgba(212,181,106,0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(100,100,120,0.08), transparent 45%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(28px, 5.5vw, 52px); font-weight: 300; line-height: 1.12;
  margin: 0 0 18px; text-transform: uppercase; letter-spacing: 0.03em; max-width: 16ch;
}
.hero--home {
  position: relative;
  overflow: hidden;
  min-height: min(64vh, 720px);
  background-color: #050506;
  background-image:
    linear-gradient(
      105deg,
      rgba(8, 8, 9, 0.97) 0%,
      rgba(8, 8, 9, 0.88) 28%,
      rgba(8, 8, 9, 0.5) 48%,
      rgba(8, 8, 9, 0.22) 68%,
      rgba(8, 8, 9, 0.08) 100%
    ),
    url("../img/hero-home-banner.png");
  background-size: cover;
  background-position: 72% center;
  background-repeat: no-repeat;
}
.hero--home .wrap {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero--home h1,
.hero--home .hero__wide {
  margin-left: auto;
  margin-right: auto;
}
.hero--home .hero__actions {
  justify-content: center;
}
.hero--home h1 {
  max-width: min(46ch, 94vw);
  text-shadow: 0 2px 32px rgba(0, 0, 0, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.18;
}
@media (min-width: 720px) {
  .hero--home h1 { max-width: min(52ch, 56rem); }
}
@media (max-width: 640px) {
  .hero--home {
    min-height: min(42vh, 380px);
    background-position: 60% center;
    padding-top: 24px;
    padding-bottom: 28px;
  }
  .hero--home h1 {
    margin-bottom: 12px;
    font-size: clamp(22px, 6.5vw, 30px);
  }
  .hero--home .hero__wide {
    margin-bottom: 18px;
    font-size: 14px;
    line-height: 1.5;
  }
}
.hero p {
  color: var(--muted);
  max-width: var(--prose-max-tight);
  font-size: clamp(15px, 2.5vw, 17px);
  line-height: 1.65;
  margin: 0 0 26px;
}
.hero__wide { max-width: var(--prose-max) !important; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.section {
  padding: var(--section-y) 0;
  border-top: 1px solid var(--border);
}
.section:first-of-type { border-top: none; }
.section__title {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 8px;
  font-weight: 600;
  line-height: 1.35;
}
.section h2:not(.cta-strip__title) {
  margin: 0 0 var(--gap-after-h2);
  font-weight: 400;
  font-size: clamp(22px, 4vw, 30px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.section--tight { padding-top: clamp(32px, 5.5vw, 52px); padding-bottom: var(--section-y); }
.section__lead {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: var(--prose-max);
  margin: 0 0 28px;
}
/* Главная (услуги): заголовки по центру */
.home-section--center .section__title,
.home-section--center > .wrap > h2:not(.cta-strip__title),
.home-section--center > .wrap > .section__lead {
  text-align: center;
}
.home-section--center > .wrap > .section__lead {
  margin-left: auto;
  margin-right: auto;
}
/* Витрина каталога (главная + /каталог/): как на макете — центр и фильтры в один ряд */
.showcase-section .section__title,
.showcase-section > .wrap > h2:not(.cta-strip__title),
.showcase-section > .wrap > .section__lead {
  text-align: center;
}
.showcase-section > .wrap > .section__lead {
  margin-left: auto;
  margin-right: auto;
}
.showcase-section .filters {
  max-width: min(1120px, 100%);
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px 14px;
}
.showcase-section .filters .filters__submit .btn {
  width: 100%;
}
@media (max-width: 991px) {
  .showcase-section .filters {
    grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  }
}
/* Заголовок страницы карточки: ближе к блоку с фото */
.detail-page__title {
  margin-bottom: 14px !important;
}
/* auto-fit убирает пустые колонки — четыре карточки равномерно заполняют ряд */
.home-services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 16px;
}
@media (min-width: 1100px) {
  .home-section--center .home-services {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.home-service-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  padding: 20px 20px 18px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  color: inherit; text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  min-height: 140px;
}
.home-service-card:hover {
  border-color: var(--accent-dim); box-shadow: 0 12px 36px rgba(0,0,0,0.28);
  text-decoration: none; color: inherit; transform: translateY(-2px);
}
.home-service-card--accent { border-color: var(--accent-dim); background: linear-gradient(145deg, var(--surface) 0%, var(--surface2) 100%); }
.home-service-card__label {
  font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent2);
}
.home-service-card__short { font-size: 14px; color: var(--muted); line-height: 1.5; flex: 1; }
.home-service-card__go { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); }
@media (max-width: 640px) {
  /* Услуги на главной: плитки 2 в ряд, без «Подробнее» */
  .section.section--tight {
    padding-top: 22px;
    padding-bottom: 24px;
  }
  .section.section--tight h2 {
    margin-bottom: 14px;
    font-size: clamp(17px, 5vw, 22px);
    line-height: 1.2;
  }
  .home-services {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .home-service-card {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 6px;
    min-height: 0;
    padding: 12px 10px 14px;
    border-radius: var(--radius-lg);
  }
  .home-service-card:hover {
    transform: none;
  }
  .home-service-card__go {
    display: none;
  }
  .home-service-card__label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.2;
    min-width: 0;
  }
  .home-service-card__short {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.35;
    color: var(--muted);
    flex: 1;
  }
}
.section--cta {
  padding-top: clamp(28px, 4vw, 44px);
  padding-bottom: clamp(28px, 4vw, 44px);
}
/*
 * CTA-полоса: внешние края совпадают с сеткой (.wrap), внутри карточки — свои поля,
 * как на макете: текст слева, кнопки справа, «воздух» по периметру тёмного блока.
 */
.cta-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px 32px;
  padding: clamp(24px, 3.5vw, 36px) clamp(22px, 4vw, 48px);
  background: linear-gradient(135deg, var(--surface2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}
.cta-strip > div:first-child {
  flex: 1 1 min(100%, 320px);
  min-width: 0;
}
.cta-strip__title {
  margin: 0 0 10px;
  font-size: clamp(18px, 2.8vw, 22px);
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.35;
  color: var(--text);
  text-transform: none;
  max-width: min(48ch, 100%);
}
.cta-strip__text {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
  max-width: min(52ch, 100%);
}
.cta-strip__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  flex-shrink: 0;
  align-items: center;
}
/* Каталог авто: 4 в ряд при достаточной ширине контейнера .wrap */
.grid {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
}
@container wrap (min-width: 800px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .lp-features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
@container wrap (min-width: 480px) and (max-width: 799px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lp-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@container wrap (max-width: 479px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .lp-features {
    grid-template-columns: 1fr;
  }
}
/* Браузеры без container queries — те же логики по ширине окна (приблизительно) */
@supports not (container-type: inline-size) {
  @media (min-width: 960px) {
    .grid {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .lp-features {
      grid-template-columns: repeat(4, minmax(0, 1fr));
    }
  }
  @media (min-width: 520px) and (max-width: 959px) {
    .grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lp-features {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
  @media (max-width: 519px) {
    .grid {
      grid-template-columns: 1fr;
    }
    .lp-features {
      grid-template-columns: 1fr;
    }
  }
}
.grid > .catalog-grid__empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px 0 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { border-color: var(--accent-dim); box-shadow: 0 12px 40px rgba(0,0,0,0.35); }
.card > a, .card__link { display: block; color: inherit; text-decoration: none; }
.card > a:hover, .card__link:hover { text-decoration: none; color: inherit; }
.card__body > .card__link .card__title { color: inherit; }
.card__body > .card__link:hover .card__title { color: var(--accent2); }
.card__img {
  aspect-ratio: 4/3; background: var(--bg2); background-size: cover; background-position: center;
}
.card__body { padding: 18px 20px 22px; }
.card__title {
  font-size: 16px; font-weight: 600; margin: 0 0 8px; color: var(--text);
  line-height: 1.3; word-break: break-word;
}
.card__meta { font-size: 13px; color: var(--muted); margin: 0 0 12px; line-height: 1.45; }
.card__price { font-size: 19px; color: var(--accent2); font-weight: 700; margin: 0; }
.leasing-snippet {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.leasing-snippet__label { margin: 0 0 4px; font-weight: 600; color: var(--text); }
.leasing-snippet__partner { font-weight: 400; color: var(--muted); }
.leasing-snippet__pay { margin: 0 0 6px; font-size: 15px; color: var(--accent2); }
.leasing-snippet__hint { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.4; }
.leasing-widget {
  margin: 18px 0 22px;
  padding: 18px 20px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.leasing-widget__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.leasing-widget__intro { margin: 0 0 14px; font-size: 13px; color: var(--muted); }
.leasing-widget__controls { display: flex; flex-direction: column; gap: 12px; margin-bottom: 14px; }
.leasing-widget__field {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto;
  gap: 6px 12px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.leasing-widget__field > span:first-child { grid-column: 1 / -1; }
.leasing-widget__range { width: 100%; grid-column: 1 / -1; max-width: 100%; accent-color: var(--accent); }
.leasing-widget__select {
  grid-column: 1 / -1;
  padding: 8px 10px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}
.leasing-widget__result { margin: 0 0 8px; font-size: 15px; color: var(--text); }
.leasing-widget__note { margin: 0; font-size: 12px; color: var(--muted); }
.brand-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.brand-pill {
  padding: 10px 18px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; font-size: 13px; color: var(--muted);
  transition: border-color 0.15s, color 0.15s;
}
.brand-pill:hover { border-color: var(--accent); color: var(--text); text-decoration: none; }
.filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 14px 18px;
  margin: 0 0 26px;
  align-items: end;
}
.filters > div { min-width: 0; }
.filters label {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--muted); display: block; margin-bottom: 6px;
}
.filters select, .filters input {
  width: 100%; max-width: 100%; padding: 11px 12px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); font-size: 14px;
}
.filters .filters__checkbox label {
  display: flex; align-items: center; gap: 10px; margin: 0;
  text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--text);
  cursor: pointer; min-height: 44px;
}
.input {
  width: 100%; max-width: 100%; padding: 12px 14px; background: var(--surface);
  border: 1px solid var(--border); color: var(--text); border-radius: var(--radius);
  font-size: 15px; margin-bottom: 12px;
}
.input:last-of-type { margin-bottom: 0; }
.input--textarea { min-height: 120px; resize: vertical; }
.pagination {
  display: flex;
  gap: 10px 12px;
  flex-wrap: wrap;
  margin-top: clamp(24px, 4vw, 36px);
  align-items: center;
}
.pagination a, .pagination span {
  padding: 9px 16px; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--muted); text-decoration: none;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent2); }
.pagination .current { border-color: var(--accent); color: var(--accent2); font-weight: 600; }
.detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 44px);
  align-items: start;
  margin-top: 0;
}
.detail__price-head { margin-top: 0; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; } }
.detail__aside { min-width: 0; }
.detail__gallery {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: 100%;
}
.gallery__thumb {
  position: relative; display: block; width: 100%; padding: 0; margin: 0; border: none;
  border-radius: var(--radius); cursor: zoom-in; background: var(--bg2);
  overflow: hidden; aspect-ratio: 4/3;
}
.gallery__thumb:focus { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery__thumb-inner {
  display: block; width: 100%; height: 100%; background-size: cover; background-position: center;
  transition: transform 0.25s ease;
}
.gallery__thumb:hover .gallery__thumb-inner { transform: scale(1.04); }
.gallery__hint {
  position: absolute; bottom: 8px; right: 8px; padding: 4px 8px; font-size: 10px;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text);
  background: rgba(0,0,0,0.65); border-radius: 4px; pointer-events: none;
}
.specs {
  display: grid; grid-template-columns: minmax(100px, auto) minmax(0, 1fr);
  gap: 10px 20px; font-size: 14px; margin: 20px 0 24px; padding: 20px 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.specs dt { color: var(--muted); margin: 0; font-weight: 500; }
.specs dd { margin: 0; font-weight: 500; word-break: break-word; min-width: 0; }
.detail__lead { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--border); }
.detail__lead h3 { margin: 0 0 14px; font-size: 17px; font-weight: 600; }
.detail__lead .input { margin-bottom: 12px; }
.detail__lead .btn { margin-top: 14px; }
.lightbox {
  position: fixed; inset: 0; z-index: var(--lightbox-z);
  display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(4,4,6,0.92); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity 0.2s ease, visibility 0.2s ease;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img-wrap { position: relative; max-width: min(96vw, 1400px); max-height: 88vh; margin: auto; }
.lightbox__img {
  display: block; max-width: 100%; max-height: 88vh; width: auto; height: auto;
  object-fit: contain; border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
}
.lightbox__close, .lightbox__prev, .lightbox__next {
  position: absolute; z-index: 2; display: flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; padding: 0; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font-size: 28px; line-height: 1; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.lightbox__close:hover, .lightbox__prev:hover, .lightbox__next:hover {
  background: var(--surface2); border-color: var(--accent);
}
.lightbox__close { top: 12px; right: 12px; }
.lightbox__prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__counter {
  position: absolute; bottom: -36px; left: 50%; transform: translateX(-50%);
  font-size: 13px; color: var(--muted); white-space: nowrap;
}
@media (max-width: 600px) {
  .lightbox__prev { left: 4px; }
  .lightbox__next { right: 4px; }
  .lightbox__close { top: 8px; right: 8px; }
}
.footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: clamp(40px, 6vw, 52px) 0 clamp(44px, 6vw, 56px);
  margin-top: clamp(48px, 8vw, 64px);
  color: var(--muted);
  font-size: 14px;
}
.footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 4vw, 40px) clamp(28px, 4vw, 44px);
  align-items: start;
}
.footer__grid p {
  margin: 0 0 10px;
  line-height: 1.65;
}
.footer__grid p:last-child { margin-bottom: 0; }
.footer__col--about > p:not(.footer__brand) {
  max-width: min(62ch, 100%);
}
.footer__brand {
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent2); margin: 0 0 12px; font-size: 13px;
}
.footer__mini-title {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--accent); margin: 0 0 10px; font-weight: 600;
}
.footer__links { margin-top: 16px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent2); }
.messages { list-style: none; padding: 0; margin: 0 0 16px; }
.messages li {
  padding: 12px 16px; background: var(--surface); border-left: 3px solid var(--accent);
  margin-bottom: 8px; border-radius: 0 var(--radius) var(--radius) 0;
}
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.row-actions form { margin: 0; }
.detail__desc-wrap { margin-top: 18px; }
.detail__description {
  margin: 0 0 10px;
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.65;
  color: var(--muted);
  word-break: break-word;
}
.detail__description--collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.detail__desc-toggle { margin: 0; padding: 6px 0; font-size: 13px; }

.car-prices-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.car-prices-block__main {
  font-size: 19px;
  font-weight: 700;
  color: var(--accent2);
  line-height: 1.25;
}
.car-prices-block__main--muted {
  font-size: 15px;
  font-weight: 600;
  color: var(--muted);
}
.car-prices-block__sub {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}
.car-prices-block__more {
  margin-top: 6px;
  width: 100%;
  max-width: 100%;
}
.car-prices-block__summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  list-style: none;
}
.car-prices-block__summary::-webkit-details-marker { display: none; }
.car-prices-block__summary::after {
  content: " ▾";
  font-size: 10px;
  opacity: 0.85;
}
.car-prices-block__more[open] .car-prices-block__summary::after {
  content: " ▴";
}
.car-prices-block__extra {
  margin-top: 8px;
  padding-left: 2px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.car-prices-block__extra-line { margin: 0 0 4px; }
.car-prices-block__extra-line:last-child { margin-bottom: 0; }

.catalog-load-more {
  display: block;
  margin: clamp(22px, 4vw, 32px) auto 0;
}

/* Лендинги услуг */
.lp-hero {
  padding: clamp(40px, 8vw, 72px) 0;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(ellipse 70% 45% at 90% 0%, rgba(212,181,106,0.12), transparent 55%),
    var(--bg);
}
.lp-hero__inner {
  max-width: none;
  text-align: center;
}
.lp-hero__kicker { margin-bottom: 12px; }
.lp-hero__title {
  font-size: clamp(26px, 4.5vw, 42px); font-weight: 600; line-height: 1.15;
  margin: 0 auto 16px; letter-spacing: 0.02em; text-transform: none;
  max-width: min(44ch, 100%);
}
.lp-hero__lead {
  font-size: clamp(16px, 2.2vw, 18px); color: var(--muted); line-height: 1.65;
  margin: 0 auto 24px;
  max-width: min(62ch, 100%);
}
.lp-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-bottom: 16px;
  justify-content: center;
}
.lp-hero__extra {
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
  max-width: var(--prose-max);
}
.lp-hero__extra a { color: var(--accent2); }
.lp-body { padding: clamp(36px, 6vw, 56px) 0 64px; }
.lp-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, min(28vw, 440px));
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}
@media (max-width: 960px) { .lp-split { grid-template-columns: 1fr; } }
.lp-main {
  min-width: 0;
  text-align: center;
}
.lp-prose {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 auto 20px;
  max-width: var(--prose-max);
}
.lp-prose--small { font-size: 14px; max-width: var(--prose-max); }
.lp-h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent); margin: 36px auto 18px; font-weight: 700;
}
.lp-h2:first-of-type { margin-top: 0; }
.lp-fin-block { margin-top: 36px; }
.lp-fin-block:first-of-type { margin-top: 20px; }
.lp-prose--links { margin-top: 16px; }
.lp-prose--links a { color: var(--accent2); }
.lp-features {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr));
  max-width: 100%;
}
.lp-feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 18px 16px 16px;
  text-align: center;
}
.lp-feature__title { margin: 0 0 8px; font-size: 16px; font-weight: 600; color: var(--text); }
.lp-feature__text { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }
.lp-checklist {
  margin: 0 auto 8px;
  padding-left: 1.25em;
  color: var(--muted);
  line-height: 1.75;
  font-size: 15px;
  max-width: var(--prose-max);
  text-align: left;
}
.lp-checklist li { margin-bottom: 8px; }
.lp-checklist li:last-child { margin-bottom: 0; }
.lp-address__list {
  margin: 0 auto 18px;
  padding-left: 1.2em;
  color: var(--muted);
  line-height: 1.65;
  max-width: var(--prose-max);
  text-align: left;
}
.lp-hours {
  list-style: none;
  padding: 0;
  margin: 0 auto 16px;
  color: var(--muted);
  font-size: 15px;
  max-width: var(--prose-max);
  text-align: left;
}
.lp-hours li { margin-bottom: 4px; }
.lp-aside { position: relative; }
@media (min-width: 961px) {
  /* Ниже липкой шапки: базовый отступ + safe-area (iOS) */
  .lp-aside {
    position: sticky;
    top: max(84px, calc(env(safe-area-inset-top, 0px) + 72px));
  }
}
.lp-form-card {
  background: var(--surface2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  text-align: center;
}
.lp-form-card__title { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.lp-form-card__sub {
  margin: 0 auto 16px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 36ch;
}
.lp-form-card .input {
  text-align: left;
}
.lp-form-card__phone { margin: 0 0 18px; font-size: 15px; }
.lp-form-card__label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.lp-form-card__phone a { color: var(--accent2); font-weight: 600; font-size: 17px; }
.lp-form .input { margin-bottom: 14px; }
.lp-form__submit { width: 100%; margin-top: 8px; }

/* Узкая колонка для простых форм (заказ звонка) */
.wrap.wrap--narrow {
  max-width: min(560px, 100%);
}
.form-stack {
  margin-top: 22px;
}
.form-stack .btn[type="submit"] {
  margin-top: 16px;
}
.text-muted {
  color: var(--muted);
  line-height: 1.65;
  margin: 0 0 22px;
  max-width: var(--prose-max);
}
