/* ═══════════════════════════════════════════════
   pages/home.css — стили только для главной страницы
   ═══════════════════════════════════════════════ */

/* ─── Section titles ───────────────────────────────────────── */
.home-about .section-title,
.home-featured .section-title,
.home-brands .section-title {
  margin-top: 10px;
}

/* ─── Featured Cars section ────────────────────────────────── */
.home-featured {
  background: var(--surface);
  color: var(--text);
}

.home-featured .section-lead {
  color: var(--muted);
}

.home-featured__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-featured__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-featured__card {
  text-decoration: none;
  color: inherit;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  box-shadow: var(--shadow-card);
}

.home-featured__card:hover {
  box-shadow: 0 18px 40px rgba(0,0,0,.40);
  border-color: var(--primary);
}

.home-featured__media {
  position: relative;
  aspect-ratio: 16/10;
  background: rgba(0,0,0,.30);
}

.home-featured__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16/10;
}

.home-featured__info {
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-featured__title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.home-featured__title {
  margin: 0;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: .02em;
  color: var(--text);
}

.home-featured__price {
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 900 !important;
}

.home-featured__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  margin-top: 10px;
}

.home-featured__meta span {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 10px;
}

.home-featured__actions {
  margin-top: 26px;
  display: flex;
  justify-content: center;
}

/* ─── Brands section ───────────────────────────────────────── */
.home-brands__header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.home-brands__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.home-brands__item {
  text-decoration: none;
  text-align: center;
  padding: 14px 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
  letter-spacing: .02em;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
}

.home-brands__item:hover {
  box-shadow: 0 14px 30px rgba(0,0,0,.25);
  border-color: var(--primary);
}

.home-brands__actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
}

/* ─── User-select lock на интерактивные блоки ──────────────── */
:where(.home-featured, .home-featured *, .home-brands, .home-brands *) {
  -webkit-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

:where(.home-featured, .home-featured *, .home-brands, .home-brands *)::selection {
  background: transparent !important;
  color: inherit !important;
}

:where(.home-featured, .home-featured *, .home-brands, .home-brands *)::-moz-selection {
  background: transparent !important;
  color: inherit !important;
}

/* ─── Hero text reset (parent-theme override) ──────────────── */
/* Удаляет любые фоны/тени/рамки с текстовых элементов hero на главной.
   Источник конфликта — родительская тема. Фикс живёт здесь, не в base.css. */

body.home .hero__inner,
body.home .hero__content,
body.home .hero__copy,
body.home .hero__eyebrow,
body.home .hero__eyebrow span,
body.home .hero__title,
body.home .hero__title span,
body.home .hero__subtitle,
body.home .hero__subtitle span,
body.home .section-title,
body.home .section-title span {
  background: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border-color: transparent !important;
  outline: 0 !important;
  filter: none !important;
  -webkit-filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.home .hero__eyebrow,
body.home .hero__title,
body.home .hero__subtitle {
  padding: 0 !important;
}

body.home .hero__eyebrow span,
body.home .hero__title span,
body.home .hero__subtitle span {
  padding: 0 !important;
  display: inline !important;
}

body.home .hero__eyebrow::before,
body.home .hero__eyebrow::after,
body.home .hero__title::before,
body.home .hero__title::after,
body.home .hero__subtitle::before,
body.home .hero__subtitle::after,
body.home .section-title::before,
body.home .section-title::after {
  content: none !important;
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .home-brands__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 991px) {
  .home-featured__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  .home-featured__grid { grid-template-columns: 1fr; }
  .home-brands__grid   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
