/* ==========================================================================
   ЧЭПЭЙ (chepey.ru) — Modern Automotive Commerce Stylesheet (v1.1)
   Шрифты: IBM Plex Sans (400/500/600) + IBM Plex Mono
   Шапка: одна выверенная строка с выпадающим меню «Покупателям»
   Цветовая дисциплина: красный строго для основных CTA и точечных акцентов
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. ШАПКА САЙТА (Одна аккуратная строка без обрезаний и случайных переносов)
   -------------------------------------------------------------------------- */
.site-header {
  background-color: var(--bg-graphite);
  border-bottom: 1px solid var(--bg-graphite-border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 76px;
}

.header-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.header-logo {
  height: 46px;
  width: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.header-nav__link {
  color: #E2E8F0;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  white-space: nowrap;
  transition: color var(--transition);
}

.header-nav__link:hover,
.header-nav__link.is-active {
  color: #FFFFFF;
}

.header-nav__link.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--brand-red);
  border-radius: 1px;
}

/* Выпадающий пункт «Покупателям» для второстепенных ссылок (п. 3.2 Дополнения к ТЗ) */
.header-dropdown {
  position: relative;
}

.header-dropdown__trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: #E2E8F0;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--transition);
}

.header-dropdown__trigger:hover {
  color: #FFFFFF;
}

.header-dropdown__trigger svg {
  width: 14px;
  height: 14px;
  opacity: 0.75;
  transition: transform var(--transition);
}

.header-dropdown:hover .header-dropdown__trigger svg,
.header-dropdown:focus-within .header-dropdown__trigger svg {
  transform: rotate(180deg);
}

.header-dropdown__menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  background-color: #1A202B;
  border: 1px solid var(--bg-graphite-border);
  border-radius: var(--radius-md);
  padding: 8px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: all var(--transition);
  z-index: 120;
}

.header-dropdown:hover .header-dropdown__menu,
.header-dropdown:focus-within .header-dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-dropdown__link {
  display: block;
  padding: 9px 12px;
  color: #D0D7E2;
  font-size: 14px;
  font-weight: 400;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
}

.header-dropdown__link:hover {
  background-color: rgba(255, 255, 255, 0.07);
  color: #FFFFFF;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-shrink: 0;
}

.header-phone {
  color: #FFFFFF;
  font-size: 15.5px;
  font-weight: 600;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.header-phone:hover {
  color: #CBD5E1;
}

.header-cta {
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
}

.mobile-menu-toggle {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  background-color: #141820;
  border-bottom: 1px solid var(--bg-graphite-border);
  padding: 18px 24px;
}

.mobile-drawer.is-open {
  display: block;
}

.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-drawer__link {
  color: #E2E8F0;
  font-size: 15.5px;
  font-weight: 500;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

/* --------------------------------------------------------------------------
   2. HERO — ВЫРАЗИТЕЛЬНЫЙ ТЁМНЫЙ ФОТОГРАФИЧЕСКИЙ БАННЕР С ДВИГАТЕЛЕМ
      Спокойная редакционная подпись сверху, H1 (вес 600), один главный красный CTA
   -------------------------------------------------------------------------- */
.hero-banner {
  position: relative;
  background-color: #0B0D12;
  color: #FFFFFF;
  overflow: hidden;
  min-height: 610px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid #222936;
}

.hero-banner__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-banner__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-banner__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(10, 12, 17, 0.96) 0%,
    rgba(10, 12, 17, 0.90) 40%,
    rgba(10, 12, 17, 0.45) 70%,
    rgba(10, 12, 17, 0.18) 100%
  );
  z-index: 2;
}

.hero-banner__inner {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-top: 58px;
  padding-bottom: 52px;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px;
  align-items: end;
}

.hero-banner__inner > * {
  min-width: 0;
}

/* Спокойная текстовая подпись о специализации и географии (без красной плашки — п. 4.2 и 5) */
.hero-kicker-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #B8C2D0;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero-kicker-pill::before {
  content: "";
  width: 20px;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.4);
  border-radius: 1px;
  flex-shrink: 0;
}

/* H1: выверенные 2 строки без висячих слов и рваных переносов */
.hero-headline {
  font-size: clamp(28px, 3.3vw, 50px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 20px;
  padding-bottom: 16px;
  position: relative;
}

.hero-headline__line {
  display: block;
}

.hero-headline::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 88px;
  height: 3px;
  background-color: var(--brand-red);
  border-radius: 2px;
}

.hero-red-bar {
  display: none;
}

.hero-lead {
  font-size: clamp(15px, 1.25vw, 17px);
  font-weight: 400;
  line-height: 1.58;
  color: #CBD5E1;
  max-width: 600px;
  margin-bottom: 26px;
  text-wrap: pretty;
}

/* Быстрый поиск по коду / автомобилю в Hero */
.hero-quick-search {
  background: rgba(20, 25, 34, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  padding: 7px;
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 620px;
  margin-bottom: 14px;
  backdrop-filter: blur(8px);
}

.hero-quick-search__input {
  flex: 1;
  min-width: 0;
  width: 100%;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 15px;
  padding: 9px 14px;
}

.hero-quick-search__input::placeholder {
  color: #8E99AB;
}

.hero-quick-search__input:focus {
  outline: none;
}

.hero-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 30px;
  font-size: 13px;
  color: var(--text-on-dark-secondary);
}

.hero-chip {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #E2E8F0;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition);
}

.hero-chip:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  color: #FFFFFF;
}

/* 3 преимущества с разделителями (спокойная подача без красных иконок тревоги) */
.hero-trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 24px;
  max-width: 640px;
}

.hero-trust-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding-right: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-trust-item:not(:first-child) {
  padding-left: 18px;
}

.hero-trust-item:last-child {
  border-right: none;
  padding-right: 0;
}

.hero-trust-icon {
  width: 32px;
  height: 32px;
  color: #CBD5E1;
}

.hero-trust-title {
  font-size: 13px;
  font-weight: 500;
  color: #E2E8F0;
  line-height: 1.4;
}

/* Спокойная плашка доверия справа снизу */
.hero-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 16px;
}

.hero-floating-badge {
  background: rgba(15, 19, 26, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 390px;
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.4);
}

.hero-floating-badge__icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  color: #CBD5E1;
}

.hero-floating-badge__title {
  font-size: 14px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.hero-floating-badge__sub {
  font-size: 13px;
  font-weight: 400;
  color: #94A3B8;
}

/* --------------------------------------------------------------------------
   3. ПРОФЕССИОНАЛЬНЫЕ ТОВАРНЫЕ КАРТОЧКИ (Светлые, крупные фото, читаемая цена)
      Один красный элемент — основная кнопка действия (п. 6.2 Дополнения к ТЗ)
   -------------------------------------------------------------------------- */
.section-popular {
  padding: 64px 0 54px;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.products-grid-4,
.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.product-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
  overflow: hidden;
}

.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.product-card__media {
  position: relative;
  height: 235px;
  background-color: var(--bg-card-stage);
  border-bottom: 1px solid var(--border-light);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-card__img {
  max-width: 100%;
  max-height: 198px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.35s ease;
  mix-blend-mode: multiply;
}

.product-card:hover .product-card__img {
  transform: scale(1.04);
}

.product-card__code-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--bg-graphite);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 5px;
  z-index: 2;
}

.product-card__cat-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 9px;
  border-radius: 5px;
  z-index: 2;
}

/* Спокойная нейтральная метка вместо красного стикера (п. 6.2 Дополнения к ТЗ) */
.product-card__hit-tag {
  position: absolute;
  bottom: 10px;
  left: 12px;
  background-color: rgba(21, 25, 33, 0.82);
  color: #F8FAFC;
  font-size: 11.5px;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 4px;
  z-index: 2;
}

.product-card__body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card__brand {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.product-card__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-main);
  margin-bottom: 8px;
}

.product-card__title a:hover {
  color: var(--brand-red);
}

.product-card__fitment {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.product-card__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.product-card__pill {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-main);
}

.product-card__status-row {
  margin-bottom: 14px;
}

.product-card__footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.product-card__price-label {
  font-size: 11.5px;
  color: var(--text-muted);
  display: block;
}

.product-card__price {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.015em;
  white-space: nowrap;
}

.product-card__actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.product-card__btn-more {
  padding: 9px 12px;
  font-size: 13.5px;
}

.product-card__btn-main {
  padding: 9px 14px;
  font-size: 13.5px;
}

/* --------------------------------------------------------------------------
   4. ОСНОВНЫЕ КАТЕГОРИИ — КОММЕРЧЕСКАЯ BENTO-ВИТРИНА
   -------------------------------------------------------------------------- */
.section-categories {
  padding: 64px 0;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}

.categories-showcase {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.cat-banner {
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
  border: 1px solid var(--border-light);
  background-color: var(--bg-white);
  transition: transform var(--transition), box-shadow var(--transition);
}

.cat-banner:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.cat-banner--engines {
  grid-column: span 7;
  background: linear-gradient(125deg, #141821 0%, #1D2432 65%, #273042 100%);
  color: #FFFFFF;
  border-color: #2B3344;
  min-height: 300px;
}

.cat-banner--gearboxes {
  grid-column: span 5;
  background: linear-gradient(135deg, #131720 0%, #222A38 100%);
  color: #FFFFFF;
  border-color: #2B3344;
  min-height: 300px;
}

.cat-banner--sub {
  grid-column: span 3;
  background-color: var(--bg-white);
  min-height: 290px;
}

.cat-banner__content {
  position: relative;
  z-index: 2;
  max-width: 58%;
}

.cat-banner--sub .cat-banner__content {
  max-width: 100%;
}

.cat-banner__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}

.cat-banner--sub .cat-banner__badge {
  background: var(--bg-light);
  color: var(--text-secondary);
}

.cat-banner__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 10px;
}

.cat-banner--sub .cat-banner__title {
  font-size: 19.5px;
  font-weight: 600;
  color: var(--text-main);
}

.cat-banner__desc {
  font-size: 14.5px;
  line-height: 1.5;
  opacity: 0.88;
  margin-bottom: 18px;
}

.cat-banner--sub .cat-banner__desc {
  color: var(--text-secondary);
  font-size: 14px;
}

.cat-banner__visual {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 40%;
  aspect-ratio: 1200 / 896;
  height: auto;
  max-height: calc(100% - 36px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  background-color: #11151D;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.cat-banner__visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

.cat-banner--sub .cat-banner__thumb {
  width: 100%;
  aspect-ratio: 1200 / 896;
  height: auto;
  background-color: #11151D;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 16px;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-banner--sub .cat-banner__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.cat-banner--sub:hover .cat-banner__thumb img {
  transform: scale(1.04);
}

.cat-banner__footer {
  position: relative;
  z-index: 2;
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   5. СПЕЦИАЛЬНЫЕ ПРЕДЛОЖЕНИЯ — КОНТРАСТНАЯ ГРАФИТОВАЯ СЕКЦИЯ
   -------------------------------------------------------------------------- */
.section-special-offers {
  background-color: var(--bg-graphite);
  color: #FFFFFF;
  padding: 68px 0;
  border-bottom: 1px solid var(--bg-graphite-border);
}

.offers-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: stretch;
}

.offer-spotlight {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--bg-graphite-border);
  background-color: #0D1016;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 430px;
  padding: 34px;
}

.offer-spotlight__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.offer-spotlight__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 16, 22, 0.15) 0%, rgba(13, 16, 22, 0.93) 72%, rgba(13, 16, 22, 0.99) 100%);
}

.offer-spotlight__content {
  position: relative;
  z-index: 2;
}

.offer-tag {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #F1F5F9;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.offer-spotlight__title {
  font-size: clamp(23px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 12px;
}

.offer-spotlight__desc {
  font-size: 15px;
  color: var(--text-on-dark-secondary);
  line-height: 1.55;
  margin-bottom: 22px;
}

.offers-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
}

.offer-card {
  background-color: var(--bg-graphite-card);
  border: 1px solid var(--bg-graphite-border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color var(--transition);
}

.offer-card:hover {
  border-color: rgba(255, 255, 255, 0.32);
}

.offer-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.offer-card__title {
  font-size: 19px;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.offer-card__desc {
  font-size: 14.5px;
  color: var(--text-on-dark-secondary);
  line-height: 1.5;
  margin-bottom: 16px;
}

.offer-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.offer-card__price {
  font-size: 19.5px;
  font-weight: 600;
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   6. ДВИГАТЕЛИ И АГРЕГАТЫ В НАЛИЧИИ (Выбор марки + Каталог товаров)
   -------------------------------------------------------------------------- */
.section-catalog {
  padding: 68px 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.brand-selector-strip,
.brands-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.brand-tile {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 13px 14px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.brand-tile:hover,
.brand-tile.is-active {
  background-color: var(--bg-graphite);
  border-color: var(--bg-graphite);
  color: #FFFFFF;
}

.brand-tile.is-active {
  box-shadow: inset 0 -2px 0 var(--brand-red);
}

.brand-tile__name {
  font-size: 14.5px;
  font-weight: 600;
}

.brand-tile__count {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.brand-tile:hover .brand-tile__count,
.brand-tile.is-active .brand-tile__count {
  color: #CBD5E1;
}

.catalog-controls {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  margin-bottom: 28px;
}

.catalog-filters-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-label {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
}

.filter-select,
.filter-input {
  background-color: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-family: var(--font-sans);
  font-size: 14.5px;
  color: var(--text-main);
}

.catalog-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

/* --------------------------------------------------------------------------
   7. ПОДБОР ПО VIN — ЗАМЕТНЫЙ КОНТРАСТНЫЙ БЛОК
   -------------------------------------------------------------------------- */
.section-vin {
  background: linear-gradient(135deg, #12161E 0%, #1B222E 100%);
  color: #FFFFFF;
  padding: 72px 0;
  border-bottom: 1px solid var(--bg-graphite-border);
}

.vin-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 44px;
  align-items: center;
}

.vin-info__title {
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 600;
  line-height: 1.16;
  margin-bottom: 16px;
}

.vin-info__lead {
  font-size: 16px;
  color: var(--text-on-dark-secondary);
  line-height: 1.55;
  margin-bottom: 28px;
}

.vin-steps-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vin-step-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.vin-step-item__num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: #E2E8F0;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  padding: 7px 0;
  text-align: center;
}

.vin-step-item__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.vin-step-item__text {
  font-size: 14px;
  color: var(--text-on-dark-secondary);
  line-height: 1.48;
}

.vin-form-card {
  background-color: var(--bg-white);
  color: var(--text-main);
  border-radius: var(--radius-xl);
  padding: 34px;
  box-shadow: var(--shadow-lg);
}

.vin-form-card__header {
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}

.vin-form-card__title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 4px;
}

.vin-form-card__subtitle {
  font-size: 14.5px;
  color: var(--text-secondary);
}

.form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-grid-2 .form-group,
.form-grid-3 .form-group {
  margin-bottom: 0;
}

.form-label {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-main);
}

.form-label span {
  color: var(--brand-red);
}

.form-control {
  width: 100%;
  background-color: var(--bg-light);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text-main);
  transition: all var(--transition);
}

.form-control--mono {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-control:focus {
  outline: none;
  background-color: var(--bg-white);
  border-color: var(--bg-graphite);
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-secondary);
  margin: 16px 0;
}

.form-consent input {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--brand-red);
}

.form-consent a {
  text-decoration: underline;
  color: var(--text-main);
}

.form-feedback {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  font-size: 14.5px;
  font-weight: 500;
}

.form-feedback.is-success {
  display: block;
  background-color: var(--status-stock-bg);
  border: 1px solid var(--status-stock-border);
  color: var(--status-stock-text);
}

/* --------------------------------------------------------------------------
   8. ПОШАГОВЫЙ РЕГЛАМЕНТ ОТ ЗАЯВКИ ДО ВЫДАЧИ (С ДОКУМЕНТАЛЬНЫМ ФОТОКОНТРОЛЕМ)
   -------------------------------------------------------------------------- */
.section-inspection {
  padding: 70px 0;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}

.warehouse-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 32px;
  list-style: none;
  padding: 0;
}

.warehouse-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-top: 3px solid var(--bg-graphite);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  cursor: default;
  user-select: text;
}

.warehouse-card--final {
  border-top-color: var(--brand-red);
}

.warehouse-step__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border-medium);
}

.warehouse-step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  background-color: var(--bg-graphite);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.warehouse-card--final .warehouse-step__num {
  background-color: var(--brand-red);
}

.warehouse-step__connector {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--border-medium) 0%, #94A3B8 100%);
  position: relative;
  min-width: 16px;
}

.warehouse-step__connector::after {
  content: "→";
  position: absolute;
  right: -2px;
  top: 50%;
  transform: translateY(-54%);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
}

.warehouse-card--final .warehouse-step__connector::after {
  content: "✓";
  color: var(--status-stock-text);
}

.warehouse-step__phase {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.warehouse-card__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.warehouse-card__title {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.32;
  color: var(--text-main);
}

.warehouse-card__desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 12px;
}

.warehouse-step__result {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--status-stock-text);
  background-color: var(--status-stock-bg);
  border: 1px solid var(--status-stock-border);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
}

.warehouse-step__result::before {
  content: "✓";
  font-weight: 700;
}

.warehouse-step__photo-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 8px;
  overflow: hidden;
}

.warehouse-step__photo-box img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

.warehouse-step__photo-caption {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-align: center;
}

.warranty-banner-row {
  background-color: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 26px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.warranty-stat {
  border-left: 3px solid #334155;
  padding-left: 16px;
}

.warranty-stat__val {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.warranty-stat__label {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   9. КАК ПРОХОДИТ ПОКУПКА И ДОСТАВКА
   -------------------------------------------------------------------------- */
.section-delivery {
  padding: 68px 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.deal-steps-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 30px;
}

.deal-step-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  position: relative;
}

.deal-step-card__num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.deal-step-card__title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.3;
}

.deal-step-card__desc {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.logistics-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.logistics-panel {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.logistics-panel__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 12px;
}

.logistics-panel__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
  color: var(--text-secondary);
}

.logistics-panel__list li {
  padding-left: 16px;
  position: relative;
}

.logistics-panel__list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #64748B;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   10. ПОСЛЕДНИЕ ПОСТУПЛЕНИЯ НА СКЛАД
   -------------------------------------------------------------------------- */
.section-arrivals {
  padding: 68px 0;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   11. СТАТЬИ И ТЕХНИЧЕСКИЕ МАТЕРИАЛЫ (Без обрезки иллюстраций по высоте)
   -------------------------------------------------------------------------- */
.section-articles {
  padding: 68px 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.article-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition);
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.article-card__media {
  aspect-ratio: 1376 / 768;
  width: 100%;
  background-color: var(--bg-graphite);
  overflow: hidden;
  position: relative;
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  transition: transform 0.35s ease;
}

.article-card:hover .article-card__media img {
  transform: scale(1.03);
}

.article-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 19, 26, 0.85);
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
}

.article-card__body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-card__title {
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
  text-wrap: balance;
}

.article-card__excerpt {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
}

.article-card__link {
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  font-family: var(--font-sans);
  transition: color var(--transition);
}

.article-card__link:hover {
  color: var(--brand-red);
}

/* --------------------------------------------------------------------------
   12. МАРКИ АВТОМОБИЛЕЙ И КЛИЕНТЫ (Кейсы поставок и партнёры)
   -------------------------------------------------------------------------- */
.section-clients {
  padding: 68px 0;
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
}

.client-cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 32px;
}

.client-case-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.client-case__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: nowrap;
}

.client-case__city {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-secondary);
  white-space: nowrap;
}

.client-case__title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.32;
  margin-bottom: 10px;
  text-wrap: balance;
}

.client-case__quote {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 16px;
  text-wrap: pretty;
}

.client-case__author {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-main);
}

.supported-brands-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.supported-brand-badge {
  padding: 8px 15px;
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition);
}

.supported-brand-badge:hover {
  background-color: var(--bg-graphite);
  color: #FFFFFF;
}

/* --------------------------------------------------------------------------
   13. КОНТАКТЫ И ФУТЕР (с копирайтом разработчика WEBLITH)
   -------------------------------------------------------------------------- */
.section-contacts {
  padding: 64px 0;
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-light);
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.contact-card {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.contact-card__label {
  font-size: 12.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-card__value {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.contact-card__value a:hover {
  color: var(--brand-red);
}

.contact-card__note {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.45;
}

.site-footer {
  background-color: var(--bg-graphite);
  color: var(--text-on-dark);
  padding: 60px 0 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--bg-graphite-border);
}

.footer-logo {
  height: 50px;
  width: auto;
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-on-dark-secondary);
  margin-bottom: 16px;
}

.footer-col__title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-on-dark-secondary);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-on-dark-muted);
}

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-legal-links a:hover {
  color: #FFFFFF;
}

.footer-dev {
  display: inline-flex;
  align-items: center;
}

.footer-dev a[data-weblith-badge] {
  color: #FFFFFF;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   14. СТРАНИЦА ТОВАРА (product.html) И МОДАЛЬНЫЕ ОКНА
   -------------------------------------------------------------------------- */
.breadcrumbs-bar {
  background-color: var(--bg-light);
  border-bottom: 1px solid var(--border-light);
  padding: 13px 0;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.breadcrumbs-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.breadcrumbs-sep {
  color: var(--text-muted);
}

.product-page-section {
  padding: 36px 0 64px;
}

.product-hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: start;
  margin-bottom: 44px;
}

.product-gallery {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.product-gallery__main {
  height: 390px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card-stage);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  padding: 18px;
}

.product-gallery__main img {
  max-height: 350px;
  width: auto;
  object-fit: contain;
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.gallery-thumb {
  height: 76px;
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 6px;
  background-color: var(--bg-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.gallery-thumb.is-active,
.gallery-thumb:hover {
  border-color: var(--bg-graphite);
}

.gallery-thumb img {
  max-height: 100%;
  width: auto;
  object-fit: contain;
}

.product-summary-panel {
  background-color: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.product-summary__meta-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.product-summary__title {
  font-size: clamp(23px, 2.3vw, 30px);
  font-weight: 600;
  line-height: 1.22;
  margin-bottom: 12px;
}

.product-summary__applicability {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.product-summary__price-box {
  background-color: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.product-summary__price {
  font-size: 30px;
  font-weight: 600;
}

.product-summary__cta-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.product-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 44px;
}

.detail-block {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.detail-block__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
}

.kit-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.kit-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14.5px;
}

.kit-list li {
  padding-left: 18px;
  position: relative;
}

.kit-list--included li::before {
  content: "+";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--status-stock-text);
}

.kit-list--excluded li::before {
  content: "—";
  position: absolute;
  left: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-muted);
}

.spec-table,
.compat-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.spec-table th,
.spec-table td,
.compat-table th,
.compat-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.spec-table th {
  color: var(--text-secondary);
  font-weight: 400;
  width: 45%;
}

.spec-table td {
  font-weight: 600;
}

.compat-table th {
  background-color: var(--bg-light);
  font-weight: 600;
}

.inspection-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 36px;
}

.inspection-cell {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.inspection-cell__num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.inspection-cell__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.inspection-cell__desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.warehouse-proof-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.warranty-spec-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
  gap: 16px;
}

.pagination-pages {
  display: flex;
  gap: 8px;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-weight: 500;
  font-size: 14px;
}

.page-btn.is-active {
  background-color: var(--bg-graphite);
  color: #FFFFFF;
  border-color: var(--bg-graphite);
}

/* Модальные окна */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 13, 18, 0.76);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.is-open {
  display: flex;
}

.modal-window {
  background-color: var(--bg-white);
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: var(--bg-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  width: 36px;
  height: 36px;
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   14.5. ЮРИДИЧЕСКИЕ ДОКУМЕНТЫ (Политика, Согласие, Оферта) И COOKIE-БАННЕР
   -------------------------------------------------------------------------- */
.legal-page-section {
  padding: 44px 0 72px;
  background-color: var(--bg-light);
}

.legal-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 96px;
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 22px;
}

.legal-toc__title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-light);
}

.legal-toc__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-toc__list a {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  padding: 4px 0;
  display: block;
}

.legal-toc__list a:hover {
  color: var(--brand-red);
}

.legal-doc-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 40px 44px;
  box-shadow: var(--shadow-sm);
}

.legal-doc__meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.legal-doc__title {
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 18px;
}

.legal-doc__lead {
  background-color: var(--bg-light);
  border-left: 3px solid var(--bg-graphite);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 28px;
}

.legal-section {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-light);
}

.legal-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
}

.legal-section h3 {
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text-main);
  margin: 16px 0 8px;
}

.legal-section p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 10px;
}

.legal-section ul {
  padding-left: 20px;
  margin: 10px 0 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-section ul li {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  position: relative;
  padding-left: 14px;
}

.legal-section ul li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-weight: 600;
}

.legal-note-box {
  background-color: #F8FAFC;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  margin: 14px 0;
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.55;
}

.legal-requisites-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 14.5px;
}

.legal-requisites-table th,
.legal-requisites-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.legal-requisites-table th {
  width: 38%;
  color: var(--text-secondary);
  font-weight: 500;
  background-color: var(--bg-light);
}

.legal-requisites-table td {
  font-weight: 500;
  color: var(--text-main);
}

/* Cookie-баннер внизу экрана (как на oporka.ru) */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 32px);
  max-width: 960px;
  background-color: var(--bg-graphite);
  color: #E2E8F0;
  border: 1px solid var(--bg-graphite-border);
  border-radius: var(--radius-lg);
  padding: 16px 22px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  z-index: 190;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.cookie-banner.is-visible {
  display: flex;
}

.cookie-banner__text {
  font-size: 13.5px;
  line-height: 1.5;
  color: #CBD5E1;
}

.cookie-banner__text a {
  color: #FFFFFF;
  text-decoration: underline;
}

.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   15. АДАПТИВНОСТЬ (Проверка на 1920 / 1440 / 1366 / 1280 / 1024 / 768 / 390 px)
   -------------------------------------------------------------------------- */
.offers-layout > *,
.vin-layout > *,
.product-hero-grid > *,
.product-details-grid > *,
.warehouse-proof-layout > *,
.legal-layout > *,
.products-grid-4 > *,
.products-grid > *,
.warehouse-cards-grid > *,
.articles-grid > *,
.contacts-grid > *,
.footer-grid > * {
  min-width: 0;
}

@media (max-width: 1260px) {
  .header-nav {
    gap: 16px;
  }
  .header-nav__link,
  .header-dropdown__trigger {
    font-size: 14px;
  }
  .products-grid-4,
  .products-grid,
  .warehouse-cards-grid,
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .brand-selector-strip,
  .brands-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .deal-steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 1120px) {
  .header-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: inline-flex;
  }
  .hero-banner {
    min-height: auto;
  }
  .hero-banner__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .hero-right-col {
    align-items: flex-start;
    justify-content: flex-start;
  }
  .offers-layout,
  .vin-layout,
  .product-hero-grid,
  .product-details-grid,
  .warehouse-proof-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .legal-toc {
    position: static;
  }
  .cat-banner--engines,
  .cat-banner--gearboxes {
    grid-column: span 12;
  }
  .cat-banner--sub {
    grid-column: span 6;
  }
  .products-grid-4,
  .products-grid,
  .warehouse-cards-grid,
  .articles-grid,
  .contacts-grid,
  .warranty-banner-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .client-cases-grid,
  .logistics-summary-grid,
  .inspection-grid {
    grid-template-columns: 1fr;
  }
  .catalog-filters-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .section-popular,
  .section-categories,
  .section-special-offers,
  .section-catalog,
  .section-vin,
  .section-inspection,
  .section-delivery,
  .section-arrivals,
  .section-articles,
  .section-clients,
  .section-contacts {
    padding: 48px 0;
  }
  .cat-banner__content {
    max-width: 100%;
  }
  .cat-banner__visual {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    aspect-ratio: 1200 / 896;
    height: auto;
    max-height: none;
    margin-top: 16px;
  }
  .deal-steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .brand-selector-strip,
  .brands-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 68px;
    gap: 12px;
  }
  .header-logo {
    height: 38px;
  }
  .header-phone {
    display: none;
  }
  .header-cta {
    padding: 8px 13px;
    font-size: 13px;
  }
  .hero-banner__inner {
    padding-top: 32px;
    padding-bottom: 36px;
    gap: 24px;
  }
  .hero-kicker-pill {
    font-size: 12px;
    align-items: flex-start;
  }
  .hero-kicker-pill::before {
    margin-top: 7px;
  }
  .products-grid-4,
  .products-grid,
  .warehouse-cards-grid,
  .articles-grid,
  .contacts-grid,
  .warranty-banner-row,
  .deal-steps-grid,
  .brand-selector-strip,
  .brands-grid,
  .catalog-filters-row,
  .footer-grid,
  .form-grid-2,
  .form-grid-3,
  .kit-columns,
  .product-summary__cta-group,
  .hero-trust-strip {
    grid-template-columns: 1fr;
  }
  .cat-banner--sub {
    grid-column: span 12;
  }
  .cat-banner,
  .offer-spotlight,
  .vin-form-card,
  .product-summary-panel,
  .detail-block,
  .warranty-spec-box,
  .modal-window {
    padding: 20px;
  }
  .offer-spotlight {
    min-height: 340px;
  }
  .product-gallery__main {
    height: 260px;
  }
  .product-gallery__thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero-quick-search,
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
  }
  .legal-doc-card {
    padding: 24px 18px;
  }
  .hero-trust-item {
    flex-direction: row;
    align-items: center;
    gap: 14px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    padding: 12px 0 !important;
  }
  .hero-trust-item:last-child {
    border-bottom: none;
    padding-bottom: 0 !important;
  }
  .spec-table th,
  .spec-table td,
  .compat-table th,
  .compat-table td,
  .legal-requisites-table th,
  .legal-requisites-table td {
    padding: 9px 8px;
    font-size: 13.5px;
    word-break: break-word;
  }
}
