/* Страница автомобиля: лента блоков слева и боковая колонка 380px; на телефоне — верх со слайдером,
   чипами, ценой и калькулятором, снизу фиксированная панель. Галерея, лайтбокс, калькулятор, похожие. */

.car-page { display: flex; flex-direction: column; gap: var(--page-gap); }
.car-page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--page-gap); align-items: start; }
.car-page__main { display: flex; flex-direction: column; gap: var(--page-gap); min-width: 0; }
.car-page__aside { display: flex; flex-direction: column; gap: var(--page-gap); align-self: stretch; }
.car-page__stick { position: sticky; top: var(--page-gap); display: flex; flex-direction: column; gap: 18px; padding: var(--space-5); }
.car-page__aside-m { display: none; }
.car-page__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: var(--space-5) 28px; }
.car-page__title { margin: 0 6px 0 0; font: var(--font-h1); letter-spacing: var(--tracking-h1); text-wrap: balance; overflow-wrap: anywhere; }
.car-page__chip { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; border-radius: var(--radius-md); background: var(--surface-secondary); font-size: 14px; color: var(--text-secondary); }
.car-page__chip--g { background: var(--brand-primary-subtle-strong); color: var(--brand-primary-pressed); }
.car-page__id { margin-left: auto; font-size: 13px; color: var(--text-tertiary); }
.car-page__features { display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4) 0; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); }
.car-page__feature { display: flex; align-items: center; gap: var(--space-3); }
.car-page__feature-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; background: var(--brand-primary-subtle-strong); color: var(--brand-primary-pressed); display: flex; align-items: center; justify-content: center; }
.car-page__feature-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.car-page__feature-text b { font-size: 15px; font-weight: 500; }
.car-page__feature-text small { font-size: 13px; color: var(--text-tertiary); }
.car-page__cta { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.car-page__cta--col { grid-template-columns: 1fr; }
.car-page__seller { display: flex; flex-direction: column; gap: 3px; padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); font-size: 14px; color: var(--text-secondary); }
.car-page__seller b { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 500; color: var(--text-primary); }
.car-page__seller b svg { color: var(--brand-primary); }
.car-page__seller span, .car-page__seller b { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.car-page__seller a { color: var(--text-link); align-self: flex-start; }
.car-page__sec { padding: var(--space-5) 28px; }
.car-page__h2 { margin: 0 0 18px; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.car-page__specs { display: flex; flex-direction: column; margin: 0; }
.car-page__spec { display: flex; justify-content: space-between; gap: var(--space-4); padding: 11px 0; border-bottom: 1px solid var(--border-subtle); font-size: 15px; line-height: 21px; }
.car-page__spec dt { margin: 0; color: var(--text-secondary); }
.car-page__spec dd { margin: 0; min-width: 0; text-align: right; font-weight: 500; color: var(--text-primary); overflow-wrap: anywhere; }
.car-page__vin { font-family: var(--font-secondary); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.car-page__more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 48px; margin-top: var(--space-3); border-radius: var(--radius-md); background: var(--surface-secondary); font-size: 15px; font-weight: 500; color: var(--text-primary); transition: background-color var(--dur-fast) var(--ease); }
.car-page__more:hover { background: var(--surface-tertiary); }
.car-page__more[aria-expanded='true'] .car-page__more-chevron { transform: rotate(180deg); }
.car-page__description { max-width: 760px; margin: 0; font-size: 16px; line-height: 26px; white-space: pre-line; overflow-wrap: anywhere; }
.car-page__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--page-gap); align-items: stretch; }
.car-page__pair--solo { grid-template-columns: 1fr; }
.car-page__dealer { display: flex; flex-direction: column; gap: var(--space-4); }
.car-page__dealer .car-page__h2 { margin: 0; }
.car-page__dealer-text { display: flex; flex-direction: column; gap: var(--space-3); min-width: 0; }
.car-page__official { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 14px; color: var(--text-secondary); }
.car-page__dealer-rows { display: flex; flex-direction: column; gap: var(--space-2); font-size: 15px; line-height: 21px; color: var(--text-secondary); }
.car-page__dealer-rows > span, .car-page__dealer-rows > a { display: flex; align-items: flex-start; gap: var(--space-2); }
.car-page__dealer-rows > a { color: var(--text-primary); font-weight: 500; }
.car-page__dealer-rows svg { flex: none; margin-top: 2px; color: var(--text-tertiary); }
.car-page__dealer-cars { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; font-size: 14px; color: var(--text-link); }
.car-page__dealer-cars:hover { color: var(--text-link-hover); }
.branch-map { display: flex; flex-direction: column; gap: var(--space-2); }
.branch-map__frame { width: 100%; height: 220px; border: 0; border-radius: var(--radius-md); background: var(--color-white-v1); }
.branch-map__link { font: var(--font-ui-text); color: var(--color-green); }
.car-page__map { flex: 1; min-height: 220px; }
.car-page__map .branch-map__frame { flex: 1; height: auto; min-height: 220px; border-radius: 14px; background: var(--surface-secondary); }
.car-page__bar { display: none; }
@media (min-width: 760px) { .car-page__pair--solo .car-page__dealer { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 20px; } }
@media (max-width: 1279px) { .car-page__grid { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 1023px) {
  .car-page__grid { grid-template-columns: minmax(0, 1fr); }
  .car-page__aside { display: none; }
  .car-page__aside-m { display: flex; flex-direction: column; gap: 14px; padding: 20px; }
}
@media (max-width: 759px) {
  .car-page { gap: var(--space-2); padding-bottom: 72px; }
  .car-page__main { gap: var(--space-2); }
  .car-page__head, .car-page__gallery, .car-page__aside-m, .car-page__calc { display: none !important; }
  .car-page__cta { grid-template-columns: 1fr; }
  .car-page__sec { padding: 18px var(--space-4); }
  .car-page__h2 { font-size: 20px; line-height: 26px; }
  .car-page__map { min-height: 200px; }
  .car-page__bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: 10px var(--space-4) calc(10px + env(safe-area-inset-bottom)); background: var(--color-white); box-shadow: 0 -6px 20px rgba(6, 8, 18, 0.1); }
  .car-page__bar > div { display: flex; flex-direction: column; min-width: 0; }
  .car-page__bar b { font: 700 18px/24px var(--font-secondary); }
  .car-page__bar small { font-size: 12px; color: var(--brand-primary-pressed); }
  body:has(.car-page) .widget { bottom: 84px; }
}

/* ---------- Блок цены ---------- */
.price-block { display: flex; flex-direction: column; gap: 4px; }
.price-block__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price-block__price { font: var(--font-price); min-width: 0; }
.price-block__fav { flex: none; width: 48px; height: 48px; border-radius: var(--radius-lg); background: var(--surface-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-primary); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.price-block__fav:hover { background: var(--surface-tertiary); }
.price-block__fav .card__fav-on { display: none; }
.price-block__fav[aria-pressed='true'] { color: var(--color-error); background: var(--color-error-50); }
.price-block__fav[aria-pressed='true'] .card__fav-on { display: block; }
.price-block__fav[aria-pressed='true'] .card__fav-off { display: none; }
.price-block__old { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 14px; color: var(--text-tertiary); }
.price-block__discount { padding: 2px 6px; border-radius: var(--radius-sm); background: var(--surface-secondary); color: var(--text-primary); font: 500 12px/16px var(--font-secondary); }
.price-block__monthly { font-size: 15px; color: var(--brand-primary-pressed); }
.price-block__monthly:hover { color: var(--text-link-hover); }

/* ---------- Галерея ---------- */
.gallery { position: relative; padding: var(--space-4); }
.gallery__empty { display: grid; place-items: center; aspect-ratio: 16 / 6; border-radius: var(--radius-xl); background: var(--color-gray-100); font: var(--font-caption); letter-spacing: var(--tracking-caption); text-transform: uppercase; color: var(--text-secondary); }
.gallery__strip { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, auto); grid-auto-columns: max(250px, calc((100% - 12px) / 6.5)); gap: 2px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x proximity; border-radius: var(--radius-xl); scrollbar-width: none; outline: none; }
.gallery__strip::-webkit-scrollbar { display: none; }
.gallery__strip:focus-visible { box-shadow: var(--focus-ring); }
.gallery__tile { position: relative; display: block; padding: 0; border: 0; background: var(--color-gray-100); cursor: zoom-in; scroll-snap-align: start; overflow: hidden; aspect-ratio: 250 / 182; }
.gallery__tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform var(--dur-slow) var(--ease); }
.gallery__tile:hover img { transform: scale(1.04); }
.gallery__seg { position: absolute; left: 28px; top: 28px; display: flex; background: var(--color-white); border-radius: var(--radius-lg); box-shadow: 0 4px 14px rgba(6, 8, 18, 0.12); overflow: hidden; }
.gallery__seg button { height: 40px; padding: 0 var(--space-4); font-size: 15px; color: var(--text-primary); transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease); }
.gallery__seg button + button { border-left: 1px solid var(--border-subtle); }
.gallery__seg button[aria-selected='true'] { background: var(--color-ink); color: var(--color-white); }
.gallery__nav { position: absolute; top: 50%; z-index: 2; width: 44px; height: 44px; transform: translateY(-50%); border-radius: 50%; background: var(--color-white); box-shadow: 0 4px 14px rgba(6, 8, 18, 0.16); display: flex; align-items: center; justify-content: center; color: var(--text-primary); transition: background-color var(--dur-fast) var(--ease); }
.gallery__nav:hover { background: var(--surface-secondary); }
.gallery__nav--prev { left: 4px; }
.gallery__nav--next { right: 4px; }

.lightbox { position: fixed; inset: 0; z-index: 2000; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: var(--space-3); padding: var(--space-4) var(--space-5) 20px; background: rgba(6, 8, 18, 0.94); color: var(--color-white); outline: none; }
.lightbox__top { display: flex; align-items: center; gap: var(--space-4); font-size: 15px; min-width: 0; }
.lightbox__title { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lightbox__counter { margin-left: auto; flex: none; color: rgba(255, 255, 255, 0.7); }
.lightbox__close { flex: none; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); color: var(--color-white); display: flex; align-items: center; justify-content: center; }
.lightbox__main { position: relative; min-height: 0; width: 100%; max-width: 1200px; justify-self: center; display: flex; align-items: center; justify-content: center; }
.lightbox__img { display: block; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-xl); }
.lightbox__nav { position: absolute; top: 50%; width: 56px; height: 56px; transform: translateY(-50%); border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--color-white); display: flex; align-items: center; justify-content: center; }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__thumbs { display: flex; gap: 6px; justify-content: safe center; overflow-x: auto; scrollbar-width: none; }
.lightbox__thumbs button { flex: none; width: 84px; height: 60px; padding: 0; border-radius: var(--radius-md); overflow: hidden; opacity: 0.5; background: var(--surface-inverse-raised); transition: opacity var(--dur-fast) var(--ease); }
.lightbox__thumbs button[aria-current='true'] { opacity: 1; box-shadow: 0 0 0 2px var(--brand-primary); }
.lightbox__thumbs button:hover { opacity: 0.85; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 759px) {
  .gallery { padding: var(--space-2); }
  .gallery__strip { grid-auto-columns: 164px; border-radius: var(--radius-lg); }
  .gallery__seg { left: var(--space-4); top: var(--space-4); }
  .gallery__seg button { height: 36px; padding: 0 var(--space-3); font-size: 14px; }
  .gallery__nav { display: none; }
  .lightbox { padding: 10px var(--space-2) 14px; }
  .lightbox__nav { width: 44px; height: 44px; }
  .lightbox__nav--prev { left: var(--space-2); }
  .lightbox__nav--next { right: var(--space-2); }
  .lightbox__thumbs button { width: 60px; height: 44px; }
}

/* ---------- Калькулятор ---------- */
.calc { padding: var(--space-5) 28px; scroll-margin-top: var(--space-3); }
.calc__head { margin-bottom: 18px; }
.calc__title { margin: 0; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.calc__lead { margin: 4px 0 0; font-size: 14px; color: var(--text-secondary); }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); }
.calc__inputs { display: flex; flex-direction: column; gap: 22px; padding: 20px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--border-subtle); }
.calc__range { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; align-items: baseline; font-size: 14px; color: var(--text-secondary); }
.calc__range b { font-size: 17px; color: var(--text-primary); }
.calc__range small { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-tertiary); }
/* m-top: своя дорожка и бегунок, как в CarMobileTop редизайна */
.calc__range input { grid-column: 1 / -1; width: 100%; height: 6px; margin: 6px 0 0; appearance: none; border-radius: 3px; background: linear-gradient(90deg, var(--brand-primary) var(--p), var(--border-subtle) var(--p)); outline: 0; }
.calc__range input::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; border-radius: 50%; background: var(--color-white); border: 2px solid var(--brand-primary); box-shadow: var(--shadow-sm); cursor: grab; }
.calc__range input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--color-white); border: 2px solid var(--brand-primary); }
.calc__range input:focus-visible::-webkit-slider-thumb { box-shadow: var(--focus-ring); }
.calc__result { display: flex; flex-direction: column; gap: var(--space-2); padding: 20px; border-radius: 14px; background: var(--brand-primary-subtle); box-shadow: inset 0 0 0 1px var(--brand-primary-subtle-strong); }
.calc__muted { font-size: 14px; color: var(--text-secondary); }
.calc__muted b { color: var(--text-primary); }
.calc__pay { margin-bottom: auto; font: 700 30px/36px var(--font-secondary); }
.calc__apply { margin-top: var(--space-3); }
@media (max-width: 759px) { .calc { padding: 18px var(--space-4); } .calc__grid { grid-template-columns: 1fr; } }

/* ---------- Похожие ---------- */
.similar { display: flex; flex-direction: column; }
.similar__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) 4px 4px; margin-bottom: var(--space-4); }
.similar__title { margin: 0; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
.similar__all { display: flex; align-items: center; gap: 4px; font-size: 14px; white-space: nowrap; color: var(--text-secondary); }
.similar__all:hover { color: var(--brand-primary-pressed); }
.similar__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-3); }
@media (max-width: 1279px) { .similar__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 760px) and (max-width: 1279px) { .similar__grid > :nth-child(n + 4) { display: none; } }
@media (max-width: 759px) {
  .similar__head { padding: var(--space-3) 4px 0; margin-bottom: var(--space-3); }
  .similar__title { font-size: 20px; line-height: 26px; }
  .similar__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-2); }
}

/* ---------- Верх страницы на телефоне ---------- */
.m-top { display: none; }
.m-top__slider { position: relative; border-radius: var(--radius-box); overflow: hidden; background: var(--color-gray-100); }
.m-top__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.m-top__track::-webkit-scrollbar { display: none; }
.m-top__track img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; scroll-snap-align: start; background: var(--color-gray-100); }
.m-top__empty { display: grid; place-items: center; aspect-ratio: 4 / 3; font: var(--font-caption); letter-spacing: var(--tracking-caption); text-transform: uppercase; color: var(--text-secondary); }
.m-top__count, .m-top__kind { position: absolute; top: var(--space-3); padding: 5px 10px; border-radius: var(--radius-full); font-size: 13px; line-height: 16px; }
.m-top__count { right: var(--space-3); background: rgba(6, 8, 18, 0.66); color: var(--color-white); font-weight: 500; }
.m-top__kind { left: var(--space-3); background: rgba(255, 255, 255, 0.92); color: var(--text-primary); }
.m-top__nav { position: absolute; top: 50%; width: 36px; height: 36px; transform: translateY(-50%); border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--text-primary); display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(6, 8, 18, 0.15); }
.m-top__nav--prev { left: 10px; }
.m-top__nav--next { right: 10px; }
.m-top__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.m-top__dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); transition: width var(--dur-base) var(--ease); }
.m-top__dots i.on { width: 16px; border-radius: 3px; background: var(--color-white); }
.m-top__info, .m-top__pay { background: var(--color-white); border-radius: var(--radius-box); padding: var(--space-4); }
.m-top__head { display: flex; align-items: flex-start; gap: 10px; }
.m-top__title { flex: 1; min-width: 0; margin: 0; font-size: 20px; line-height: 26px; font-weight: 600; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.m-top__acts { display: flex; gap: 6px; flex: none; }
.m-top__ico { width: 40px; height: 40px; border-radius: 50%; background: var(--surface-secondary); color: var(--text-primary); display: flex; align-items: center; justify-content: center; }
.m-top__ico[aria-pressed='true'] { color: var(--color-error); background: var(--color-error-50); }
.m-top__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 var(--space-3); }
.m-top__chips span { font-size: 13px; line-height: 16px; padding: 5px 9px; border-radius: var(--radius-md); background: var(--surface-secondary); color: var(--text-secondary); }
.m-top__chips span.g { background: var(--brand-primary-subtle); color: var(--brand-primary-pressed); }
.m-top__price { display: block; font: 700 28px/34px var(--font-secondary); letter-spacing: -0.01em; }
.m-top__old { display: block; margin-top: 2px; font-size: 14px; color: var(--text-tertiary); }
.m-top__pay-head { position: relative; display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 0 44px 0 0; text-align: left; }
.m-top__pay-head span { font-size: 14px; color: var(--text-secondary); }
.m-top__pay-head b { font: 700 24px/30px var(--font-secondary); color: var(--brand-primary-pressed); }
.m-top__pay-head small { font-size: 13px; color: var(--text-tertiary); }
.m-top__chev { position: absolute; right: 0; top: 50%; width: 36px; height: 36px; transform: translateY(-50%); border-radius: 50%; background: var(--surface-secondary); display: flex; align-items: center; justify-content: center; color: var(--text-primary); transition: transform var(--dur-base) var(--ease); }
.m-top__pay-head[aria-expanded='true'] .m-top__chev { transform: translateY(-50%) rotate(180deg); }
.m-top__pay-body { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border-subtle); }
.m-top__range { display: flex; flex-direction: column; gap: var(--space-2); }
.m-top__range small { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-tertiary); }
.m-top__range-label { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); font-size: 14px; color: var(--text-secondary); }
.m-top__range-label b { font-size: 17px; color: var(--text-primary); }
.m-top__term { display: flex; flex-direction: column; gap: var(--space-2); margin-top: var(--space-4); }
.m-top__term > span { font-size: 14px; color: var(--text-secondary); }
.m-top__term > div { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.m-top__term button { height: 40px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--border-default); background: var(--color-white); font-size: 14px; color: var(--text-primary); }
.m-top__term button[aria-pressed='true'] { background: var(--color-ink); color: var(--color-white); box-shadow: none; }
.m-top__sum { display: flex; justify-content: space-between; align-items: baseline; margin: var(--space-4) 0 14px; font-size: 14px; color: var(--text-secondary); }
.m-top__sum b { font-size: 16px; color: var(--text-primary); }
@media (max-width: 759px) { .m-top { display: flex; flex-direction: column; gap: var(--space-2); } }

/* ---------- Блоки дизайна без API (только при NUXT_PUBLIC_SHOW_WIP): CarCertified, CarVinCheck, CarMarketPrice, CarBookingModal ---------- */
.cert { overflow: hidden; }
.cert__top { display: flex; align-items: center; gap: 12px; width: 100%; padding: 16px 20px; border: 0; background: none; font: inherit; text-align: left; color: var(--text-primary); cursor: pointer; }
@media (max-width: 759px) {
  .cert__top { padding: 14px 16px; }
}
.cert__badge { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-primary); color: #ffffff; display: flex; align-items: center; justify-content: center; }
.cert__tt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.cert__tt b { font-size: 18px; line-height: 22px; font-weight: 700; letter-spacing: -0.01em; }
.cert__tt small { font-size: 13px; color: var(--text-tertiary); }
.cert__tog { flex: none; display: flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--brand-primary-pressed); }
.cert__tog svg { transition: transform 200ms cubic-bezier(0.2, 0, 0, 1); }
.cert--open .cert__tog svg { transform: rotate(180deg); }
@media (max-width: 759px) {
  .cert__tog-text { display: none; }
}
.cert__keys { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 20px 16px; }
@media (max-width: 759px) {
  .cert__keys { padding: 0 16px 14px; }
}
.cert__keys span { display: flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px 0 8px; border-radius: 999px; background: var(--brand-primary-subtle-strong); color: var(--brand-primary-pressed); font-size: 13px; font-weight: 500; }
.cert__body { border-top: 1px solid var(--border-subtle); padding: 16px 20px 18px; }
@media (max-width: 759px) {
  .cert__body { padding: 14px 16px; }
}
.cert__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1100px) {
  .cert__cols { grid-template-columns: 1fr; gap: 14px; }
}
.cert__col { display: flex; flex-direction: column; min-width: 0; }
.cert__col h3 { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-tertiary); }
.cert__row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14px; line-height: 19px; color: var(--text-secondary); border-bottom: 1px dashed var(--border-subtle); }
.cert__row > span { flex: 1 1 auto; min-width: 0; }
.cert__row b { flex: none; display: flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.cert__row b.ok svg { color: var(--brand-primary); }
.cert__doc { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 14px; color: var(--text-primary); }
.cert__doc i { flex: none; width: 28px; height: 28px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--border-subtle); color: #ef4444; font: 600 9px/1 "Gotham", Arial, Helvetica, sans-serif; font-style: normal; display: flex; align-items: center; justify-content: center; }
.cert__doc--g i { background: var(--brand-primary); color: #ffffff; box-shadow: none; }
.vin-inline { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 620px; }
@media (max-width: 759px) {
  .vin-inline { grid-template-columns: 1fr; max-width: none; }
}
.vin-card { display: flex; flex-direction: column; gap: 16px; padding: 22px 20px 20px; border-radius: 16px; background: linear-gradient(180deg, rgb(0, 9, 27) 0%, rgb(43, 138, 236) 100%); color: #ffffff; }
@media (max-width: 759px) {
  .vin-card { padding: 16px; }
}
.vin-card h3 { margin: 0; font-size: 22px; line-height: 26px; font-weight: 700; letter-spacing: -0.01em; }
.vin-card p { margin: 8px 0 0; font-size: 14px; line-height: 20px; color: rgba(255, 255, 255, 0.85); }
.vin-card__form { display: flex; flex-direction: column; gap: 8px; padding-top: 60px; }
.vin-card__field { display: flex; height: 48px; border-radius: 8px; background: #ffffff; box-shadow: inset 0 0 0 1px #dfdfdf; }
.vin-card__field:focus-within { box-shadow: inset 0 0 0 1.5px var(--brand-primary), 0 0 0 3px rgba(62, 198, 150, 0.32); }
.vin-card__field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; padding: 0 16px; font: inherit; font-size: 16px; letter-spacing: 0.04em; color: #060812; }
.vin-card__field input::placeholder { color: #a1a1a1; letter-spacing: 0; }
.vin-card__link { margin-top: 6px; font-size: 14px; color: var(--color-primary-300); text-decoration: underline dashed; text-underline-offset: 4px; }
.vin-card__link:hover { color: #ffffff; }
.market { display: flex; flex-direction: column; padding: 24px 28px; }
@media (max-width: 759px) {
  .market { padding: 18px 16px; }
}
.market__title { margin: 0; font-size: 24px; line-height: 30px; font-weight: 600; letter-spacing: -0.01em; }
@media (max-width: 759px) {
  .market__title { font-size: 20px; line-height: 26px; }
}
.market__lead { margin: 4px 0 0; font-size: 14px; color: var(--text-secondary); }
.market__top { display: flex; align-items: center; gap: 10px; margin: 22px 0 26px; }
.market__top b { font: 700 26px/32px "Gotham", Arial, Helvetica, sans-serif; white-space: nowrap; }
@media (max-width: 759px) {
  .market__top b { font-size: 22px; line-height: 28px; }
}
.market__tag { padding: 4px 10px; border-radius: 8px; font-size: 13px; font-weight: 500; white-space: nowrap; }
.market__tag--g { background: var(--brand-primary-subtle-strong); color: var(--brand-primary-pressed); }
.market__tag--w { background: #fefce8; color: var(--text-primary); }
.market__bar { position: relative; height: 8px; margin: 28px 6px 10px; border-radius: 4px; background: linear-gradient(90deg, #3ec696 0%, #fefce8 55%, #eab308 100%); }
.market__mk { position: absolute; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #ffffff; border: 3px solid #060812; }
.market__mk em { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); font-style: normal; font-size: 12px; white-space: nowrap; color: var(--text-secondary); }
.market__mk--avg { border-color: var(--text-tertiary); }
.market__mk--avg em { bottom: auto; top: 20px; }
.market__mk--me em { color: var(--text-primary); font-weight: 600; }
.market__scale { display: flex; justify-content: space-between; margin-top: 26px; font-size: 13px; color: var(--text-tertiary); }
.booking { display: flex; flex-direction: column; gap: 14px; }
.booking p { margin: 0; }
.booking--ok { align-items: center; text-align: center; gap: 12px; }
.booking--ok p { line-height: 22px; }
.booking__ok { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-primary-subtle-strong); color: var(--brand-primary-pressed); display: flex; align-items: center; justify-content: center; }
.booking__muted { color: var(--text-secondary); }
.booking__slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.booking__slots button { height: 44px; border: 0; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--border-default); background: #ffffff; font: inherit; font-size: 14px; color: var(--text-primary); cursor: pointer; }
.booking__slots button[aria-pressed=true] { box-shadow: inset 0 0 0 2px var(--brand-primary); color: var(--brand-primary-pressed); font-weight: 500; }
.booking__slots button:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(62, 198, 150, 0.32); }
.booking__fine { font-size: 12px; color: var(--text-tertiary); }
.car-page__spec[hidden] { display: none; }
.car-page__more:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(62, 198, 150, 0.32); }
@media (min-width: 1024px) {
  .car-page__vin-inline { display: none !important; }
}
@media (max-width: 759px) {
  .car-page__vin-inline { display: none !important; }
}
@media (max-width: 1100px) {
  .car-page__pair { grid-template-columns: 1fr; }
  .car-page__pair > :nth-child(2) { order: -1; }
}
.car-page__map.branch-map .branch-map__frame { flex: 1; height: auto; min-height: 220px; border-radius: 14px; background: var(--surface-secondary); }

.m-top__range input { width: 100%; height: 28px; margin: 0; appearance: none; background: none; }
.m-top__range input::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--brand-primary) var(--p), var(--border-subtle) var(--p)); }
.m-top__range input::-webkit-slider-thumb { appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #ffffff; border: 2px solid var(--brand-primary); box-shadow: 0 2px 6px rgba(6, 8, 18, 0.18); }
.m-top__range input::-moz-range-track { height: 6px; border-radius: 3px; background: var(--border-subtle); }
.m-top__range input::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--brand-primary); }
.m-top__range input::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #ffffff; border: 2px solid var(--brand-primary); }
