/* =========================================================
   ПОРТМОТОР — контентные блоки: привезённые авто и отзывы.
   Отдельный файл, чтобы не трогать основной styles.css.
   Использует те же токены из :root.
   ========================================================= */

/* =================== служебное =================== */

.draft-bar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 9px 16px;
  background: #2B2823;
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
}
.draft-bar code { color: #E8B84B; }
.draft-bar a { color: var(--paper); text-decoration: underline; text-underline-offset: 3px; }

.draft-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 2px 8px;
  border-radius: var(--r-btn);
  background: #E8B84B;
  color: #2B2823;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* активный пункт меню */
.header-nav__link.is-active { color: var(--red); }

/* =================== всплывающее уведомление ===================
   position:fixed — не двигает вёрстку и ни на что не влияет.
   Показывается поверх всего, само уезжает через несколько секунд. */

.toast {
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: calc(22px + env(safe-area-inset-bottom));
  width: max-content;
  max-width: min(92vw, 440px);
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 18px;
  background: var(--ink);
  color: var(--paper);
  border-radius: 13px;
  box-shadow: 0 18px 44px -14px rgba(0, 0, 0, .6);
  font-size: 15px;
  line-height: 1.45;
  opacity: 0;
  transform: translate(-50%, 16px) scale(.97);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
  pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0) scale(1); }
.toast--err { background: var(--red); color: #fff; }
.toast--ok  { background: #2C6E3F; color: #fff; }
.toast i { font-size: 20px; flex: none; margin-top: 1px; }
.toast a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  pointer-events: auto;
  white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  .toast { transition: opacity .2s; transform: translate(-50%, 0); }
}

/* =================== плашка статуса =================== */
/* Единый формат для всех записей: либо «Доступен к заказу» (красная,
   призыв к действию), либо «Купили для клиента» (графитовая, портфолио). */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-btn);
  white-space: nowrap;
}
.status-badge i { font-size: 13px; }
.status-badge--available { background: var(--red); color: #fff; }
.status-badge--sold      { background: rgba(27, 27, 27, .82); color: var(--paper); }

/* на фото карточки — с размытием подложки */
.car-card__status {
  position: absolute;
  top: 12px; left: 12px;
  backdrop-filter: blur(6px);
}

/* =================== фильтры каталога =================== */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 22px 38px;
  margin-top: 28px;
}
.filters__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray);
  margin-bottom: 10px;
}
.chip__n {
  font-family: var(--font-mono);
  font-size: 11px;
  opacity: .55;
}

/* =================== полоса контентного блока =================== */

.content-band {
  background: var(--paper-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(56px, 9vh, 100px) var(--gutter);
}
.content-band__inner { max-width: var(--maxw); margin: 0 auto; }

.content-band__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}
.content-band__head-text { max-width: 640px; }
.content-band__lead {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.6;
}
.content-band__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--red);
  border-bottom: 1.5px solid transparent;
  padding-bottom: 2px;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
  white-space: nowrap;
}
.content-band__all:hover { border-color: var(--red); gap: 12px; }

/* =================== сетка карточек =================== */

/* Каталог: компактная сетка — на широком экране четыре карточки в ряд. */
.cars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(262px, 1fr));
  gap: 20px;
}

/* На главной блок акцентный — три карточки в ряд, крупнее. */
.cars-grid--home { grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  align-items: start;
}

/* та же защита от «нерастяжимого» содержимого, что и у .car-page */
.cars-grid > *, .reviews-grid > * { min-width: 0; }

/* =================== карточка авто =================== */

.car-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.car-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-2);
  box-shadow: 0 18px 40px -24px rgba(27, 27, 27, .5);
}

.car-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--paper-3);
}
.cars-grid--home .car-card__media { aspect-ratio: 3 / 2; }
.car-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s var(--ease);
}
.car-card:hover .car-card__media img { transform: scale(1.045); }

/* плашки поверх фото */
.car-card__origin,
.car-card__score,
.car-card__count {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: var(--r-btn);
  backdrop-filter: blur(6px);
}
.car-card__origin {
  bottom: 12px; left: 12px;
  background: rgba(27, 27, 27, .62);
  color: var(--paper);
}
.car-card__score {
  top: 12px; right: 12px;
  background: var(--red);
  color: #fff;
  font-weight: 500;
}
.car-card__score i { font-size: 12px; }
.car-card__count {
  bottom: 12px; right: 12px;
  background: rgba(27, 27, 27, .62);
  color: var(--paper);
}
.car-card__count i { font-size: 13px; }

.car-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 17px 17px 15px;
}
.car-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.16rem;
  line-height: 1.2;
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}
.car-card__title a { transition: color .2s var(--ease); }
.car-card:hover .car-card__title a { color: var(--red); }
.car-card__year {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 400;
  color: var(--gray);
}

.car-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 13px;
}
.car-card__chips li {
  font-size: 12px;
  line-height: 1.3;
  color: var(--ink-2);
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: rgba(27, 27, 27, .025);
}

.car-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: auto;
  padding-top: 18px;
}
.car-card__price {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.28rem;
  line-height: 1.15;
  color: var(--ink);
}
.car-card__price small {
  display: block;
  margin-top: 3px;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11.5px;
  letter-spacing: .01em;
  color: var(--gray);
}
.car-card__more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  flex: none;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-btn);
  color: var(--ink);
  transition: all .22s var(--ease);
}
.car-card__more i { font-size: 18px; }
.car-card:hover .car-card__more {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.car-card__client {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.car-card__client i { font-size: 15px; color: var(--red); }

/* заглушка вместо фото */
.photo-stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 100%;
  min-height: 180px;
  background:
    repeating-linear-gradient(45deg, rgba(27,27,27,.03) 0 10px, transparent 10px 20px),
    var(--paper-3);
  color: var(--gray-2);
}
.photo-stub i { font-size: 38px; }
.photo-stub span {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* =================== карточка отзыва =================== */

.review-card {
  display: flex;
  flex-direction: column;
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 24px 22px;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.review-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-2);
  box-shadow: 0 16px 36px -24px rgba(27, 27, 27, .45);
}

.review-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-card__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  flex: none;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 19px;
  line-height: 1;
}
.review-card__who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.review-card__author {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.2;
}
.review-card__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--gray);
}
.review-card__source {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  flex: none;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  color: var(--ink-soft);
}
.review-card__source i { font-size: 17px; }

.stars {
  display: inline-flex;
  gap: 3px;
  margin-top: 15px;
  color: var(--red);
}
.stars i { font-size: 15px; }
.stars i.is-off { color: var(--line-2); }

.review-card__text {
  margin: 13px 0 0;
  font-size: 15.5px;
  line-height: 1.65;
  color: var(--ink-2);
}
.review-card__text p + p { margin-top: 10px; }
.review-card__text::before {
  content: '«';
  font-family: var(--font-display);
  font-size: 2.4rem;
  line-height: 0;
  vertical-align: -.28em;
  color: var(--red);
  margin-right: 4px;
}

.review-card__photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(76px, 1fr));
  gap: 8px;
  margin-top: 16px;
}
.review-card__photo {
  display: block;
  aspect-ratio: 1;
  border-radius: var(--r-btn);
  overflow: hidden;
  border: 1px solid var(--line);
}
.review-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.review-card__photo:hover img { transform: scale(1.07); }

.review-card__car {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: auto;
  padding-top: 16px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-soft);
}
.review-card__car i { font-size: 16px; color: var(--red); }
.review-card__car a { color: var(--red); border-bottom: 1px solid transparent; transition: border-color .2s var(--ease); }
.review-card__car a:hover { border-color: var(--red); }

/* =================== пустое состояние =================== */

.content-empty {
  padding: 44px 28px;
  text-align: center;
  border: 1px dashed var(--line-2);
  border-radius: var(--r-card);
  color: var(--ink-soft);
  background: rgba(251, 246, 236, .5);
}
.content-empty i { font-size: 34px; color: var(--gray-2); }
.content-empty p { margin-top: 12px; }

/* =================== шапка внутренних страниц =================== */

.page-hero {
  padding: clamp(38px, 7vh, 76px) var(--gutter) clamp(28px, 5vh, 48px);
}
.page-hero__inner { max-width: var(--maxw); margin: 0 auto; }
.page-hero__lead {
  margin-top: 16px;
  max-width: 680px;
  font-size: 17.5px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .04em;
  color: var(--gray);
}
.crumbs a { color: var(--ink-soft); transition: color .2s var(--ease); }
.crumbs a:hover { color: var(--red); }
.crumbs i { font-size: 13px; opacity: .6; }

.page-section { padding: 0 var(--gutter) clamp(56px, 9vh, 96px); }
.page-section__inner { max-width: var(--maxw); margin: 0 auto; }

/* =================== страница автомобиля =================== */

.car-page {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr);
  gap: 38px;
  align-items: start;
}
/* Ячейки грида по умолчанию не сжимаются уже своего содержимого
   (min-width:auto). Из-за этого лента миниатюр из 9 фото растягивала
   колонку и на телефоне появлялся горизонтальный скролл. */
.car-page > * { min-width: 0; }

.car-hero__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.car-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-btn);
  color: var(--ink-soft);
}
.car-hero__tag--red { border-color: var(--red); color: var(--red); }
.car-hero__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.06;
  text-transform: uppercase;
  letter-spacing: -.005em;
}
.car-hero__sub {
  margin-top: 12px;
  font-size: 17px;
  color: var(--ink-soft);
}

/* галерея */
.gallery { margin-top: 26px; }
.gallery__main {
  position: relative;
  aspect-ratio: 3 / 2;
  border-radius: var(--r-card);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper-3);
}
.gallery__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ease);
  cursor: zoom-in;
}
.gallery__slide.is-active { opacity: 1; visibility: visible; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }

.gallery__nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(251, 246, 236, .88);
  color: var(--ink);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 14px -6px rgba(27,27,27,.5);
  opacity: 0;
  transition: opacity .25s var(--ease), background .2s var(--ease);
}
.gallery__main:hover .gallery__nav,
.gallery__nav:focus-visible { opacity: 1; }
.gallery__nav:hover { background: var(--red); color: #fff; }
.gallery__nav i { font-size: 22px; }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }

.gallery__counter {
  position: absolute;
  bottom: 12px; right: 12px;
  padding: 5px 10px;
  border-radius: var(--r-btn);
  background: rgba(27, 27, 27, .68);
  color: var(--paper);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .06em;
  backdrop-filter: blur(6px);
}

.gallery__thumbs {
  display: flex;
  gap: 9px;
  margin-top: 11px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  /* прокрутка ленты не должна утаскивать страницу назад по свайпу */
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}
.gallery__thumb {
  display: block;
  width: 92px;
  aspect-ratio: 4 / 3;
  flex: none;
  padding: 0;
  border: 1.5px solid var(--line);
  border-radius: var(--r-btn);
  overflow: hidden;
  background: none;
  opacity: .62;
  transition: opacity .2s var(--ease), border-color .2s var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover { opacity: 1; }
.gallery__thumb.is-active { opacity: 1; border-color: var(--red); }

/* текст записи */
.prose {
  margin-top: 34px;
  font-size: 17px;
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 68ch;
}
.prose > * + * { margin-top: 1.05em; }
.prose h2, .prose h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin-top: 1.6em;
}
.prose h2 { font-size: 1.5rem; }
.prose h3 { font-size: 1.22rem; }
.prose ul, .prose ol { padding-left: 1.15em; }
.prose ul li { list-style: none; position: relative; padding-left: 18px; }
.prose ul li + li { margin-top: .45em; }
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .62em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red);
}
.prose ol { list-style: decimal; }
.prose ol li { margin-left: .3em; }
.prose ol li + li { margin-top: .45em; }
.prose a { color: var(--red); border-bottom: 1px solid rgba(200,25,30,.4); }
.prose a:hover { border-color: var(--red); }
.prose strong { font-weight: 600; color: var(--ink); }
.prose blockquote {
  border-left: 3px solid var(--red);
  padding-left: 18px;
  color: var(--ink-soft);
  font-style: italic;
}
.prose img { border-radius: var(--r-card); border: 1px solid var(--line); }

/* боковая колонка */
.car-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 18px; }

.price-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-card);
  padding: 26px 24px;
}
.price-card__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--gray-2);
}
.price-card__value {
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 3.2vw, 2.4rem);
  line-height: 1.05;
  color: var(--paper);
}
.price-card__note {
  margin-top: 7px;
  font-size: 13.5px;
  color: var(--gray-2);
}
.price-card__actions { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.price-card .btn--ghost { color: var(--paper); border-color: var(--line-light); justify-content: center; }
.price-card .btn--ghost:hover { border-color: var(--paper); background: rgba(239,227,207,.08); }
.price-card .btn--primary { justify-content: center; }

.spec-card {
  background: var(--paper-card);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 22px 22px 8px;
}
.spec-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin-bottom: 14px;
}
.spec-list dl { margin: 0; }
.spec-list__row {
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.spec-list__row:first-child { border-top: none; }
.spec-list dt {
  font-size: 13.5px;
  color: var(--ink-soft);
  flex: none;
  max-width: 46%;
}
.spec-list dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  text-align: right;
}

/* =================== CTA =================== */

.content-cta {
  margin: 0 var(--gutter) clamp(56px, 9vh, 96px);
  background: var(--red);
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
}
.content-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}
.content-cta__inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(38px, 6vw, 60px) clamp(24px, 5vw, 56px);
  text-align: center;
}
.content-cta__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  text-transform: uppercase;
  color: #fff;
}
.content-cta__text {
  margin: 14px auto 0;
  max-width: 620px;
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .9);
}
.content-cta__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}
.content-cta .btn--primary { background: #fff; color: var(--red); }
.content-cta .btn--primary:hover { background: var(--paper); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.content-cta .btn--ghost { color: #fff; border-color: rgba(255,255,255,.55); }
.content-cta .btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.12); }

/* =================== лайтбокс =================== */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(20, 19, 17, .95);
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: min(94vw, 1500px);
  max-height: 86vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9);
}
.lightbox__btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border: none;
  border-radius: 50%;
  background: rgba(239, 227, 207, .12);
  color: var(--paper);
  transition: background .2s var(--ease);
}
.lightbox__btn:hover { background: var(--red); }
.lightbox__btn i { font-size: 26px; }
.lightbox__btn--close { top: 20px; right: 20px; width: 46px; height: 46px; }
.lightbox__btn--prev { left: clamp(10px, 3vw, 34px); top: 50%; translate: 0 -50%; }
.lightbox__btn--next { right: clamp(10px, 3vw, 34px); top: 50%; translate: 0 -50%; }
.lightbox__counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  translate: -50% 0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: .08em;
  color: var(--gray-2);
}

/* =================== адаптив =================== */

@media (max-width: 1000px) {
  .car-page { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .car-side { position: static; }
  .price-card__actions { flex-direction: row; flex-wrap: wrap; }
  .price-card__actions .btn { flex: 1 1 200px; }
}

@media (max-width: 700px) {
  .content-band__head { align-items: flex-start; }
  .cars-grid { grid-template-columns: 1fr; gap: 18px; }
  .reviews-grid { grid-template-columns: 1fr; }
  .car-card__media { aspect-ratio: 16 / 10; }
  .gallery__nav { opacity: 1; width: 38px; height: 38px; }
  .gallery__thumb { width: 74px; }
  .review-card { padding: 20px 18px; }
  .lightbox__btn--prev,
  .lightbox__btn--next { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .car-card, .review-card, .car-card__media img, .gallery__slide { transition: none !important; }
  .car-card:hover, .review-card:hover { transform: none; }
}
