/*
 * Головна (19.11): серії видно з першого екрана, картки хочеться клікнути.
 * Світла тема сайту (pd, як Porsche), свої класи hm-*; pd.css і style.css не чіпаємо.
 */
[data-page=home] { --hm-card: #eeeff2; --hm-card2: #e6e7eb; }
.hm { overflow-x: clip; }
.hm-eyebrow { font: 500 14px/1.2 var(--text); letter-spacing: .02em; color: var(--muted); margin: 0 0 18px; }
.hm-head { width: min(1520px, calc(100% - 2 * var(--pad))); margin: 0 auto 40px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.hm-head .pd-lead { margin: 0; }

/* ---------- 1. перший екран: сцена (19.11 «как-будто не доработано»): темний подіум, світлова пляма, крісла з відображенням ---------- */
.hm-hero { position: relative; min-height: min(100svh, 1000px); display: grid; grid-template-rows: auto 1fr auto; padding-top: 112px; overflow: hidden; color: #fff;
	background: radial-gradient(60% 55% at 50% 62%, #3a3836 0%, #1b1a19 45%, #0b0b0c 80%); }
.hm-hero::before { content: ""; position: absolute; left: 0; right: 0; top: 66%; bottom: 0; pointer-events: none;
	background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent 30%), radial-gradient(50% 60% at 50% 0%, rgba(255, 236, 214, .12), transparent 70%); border-top: 1px solid rgba(255, 255, 255, .08); }
.hm-hero__text { position: relative; width: min(1520px, calc(100% - 2 * var(--pad))); margin: 0 auto; text-align: center; }
.hm-hero .hm-eyebrow { color: rgba(255, 255, 255, .6); }
.hm-hero__title { font: 200 clamp(40px, 5vw, 88px)/1 var(--text); letter-spacing: -.035em; margin: 0; }
.hm-hero__sub { font-size: clamp(17px, 1.3vw, 21px); color: rgba(255, 255, 255, .62); margin: 20px 0 0; }
.hm-parade { position: relative; display: flex; justify-content: center; align-items: end; gap: clamp(16px, 4vw, 80px); width: min(1700px, calc(100% - 2 * var(--pad))); margin: 10px auto 0; }
.hm-parade__track { display: contents; }
.hm-pa.is-dup { display: none; }
.hm-pa { flex: 0 0 auto; display: grid; justify-items: center; text-decoration: none; color: inherit; transition: opacity .4s; }
/* одна висота в усіх (19.11: «почему они разной высоты?»), ширина своя; 5 крісел (сума пропорцій ~3.59) */
.hm-pa__img { position: relative; display: block; height: min(clamp(170px, calc(100svh - 600px), 400px), calc((min(1700px, 100vw - 2 * var(--pad)) - 320px) / 3.7)); transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.hm-pa__img img { display: block; height: 100%; width: auto; filter: drop-shadow(0 24px 26px rgba(0, 0, 0, .55)); }
/* відображення в підлозі */
.hm-pa__img .hm-pa__refl { position: absolute; left: 0; top: 100%; transform: scaleY(-1); opacity: .22; filter: blur(1.5px);
	-webkit-mask-image: linear-gradient(to top, #000 0%, transparent 35%); mask-image: linear-gradient(to top, #000 0%, transparent 35%); pointer-events: none; }
.hm-pa__name { position: relative; margin-top: 26px; font: 500 clamp(15px, 1.15vw, 20px)/1.1 var(--text); letter-spacing: -.01em; }
.hm-pa__cat { position: relative; margin-top: 4px; font-size: 13px; color: rgba(255, 255, 255, .5); }
/* 25.11 користувач: «не нужно делать прозрачность кресел при наведении... то на которое наводишь, нужно увеличивать чуть».
   Інші крісла не бліднуть; наведене трохи більшає від підлоги (низ на місці, відображення лишається під ним). */
.hm-pa__img { transform-origin: 50% 100%; }
.hm-pa:hover .hm-pa__img { transform: scale(1.07); }
.hm-hero__cats { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); width: min(1520px, calc(100% - 2 * var(--pad))); margin: 30px auto 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.hm-hero__cats a { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 26px 0; text-decoration: none; color: inherit; transition: color .25s; }
.hm-hero__cats a + a { padding-left: 24px; border-left: 1px solid rgba(255, 255, 255, .12); }
.hm-hero__cats b { font: 500 clamp(16px, 1.2vw, 20px)/1.1 var(--text); }
.hm-hero__cats span { font-size: 14px; line-height: 1.4; color: rgba(255, 255, 255, .55); }
.hm-hero__cats a:hover b { text-decoration: underline; text-underline-offset: 5px; }
/* шапка над темними блоками */
[data-page=home] .pd-hdr.is-dark { color: #fff; }
[data-page=home] .pd-hdr.is-dark:not(.is-solid) .pd-hdr__logo .lg-d, [data-page=home] .pd-hdr.is-dark.is-solid .pd-hdr__logo .lg-d  { display: none; }
[data-page=home] .pd-hdr.is-dark:not(.is-solid) .pd-hdr__logo .lg-l, [data-page=home] .pd-hdr.is-dark.is-solid .pd-hdr__logo .lg-l  { display: block; }
[data-page=home] .pd-hdr.is-dark.is-solid { background: rgba(11, 11, 12, .82); box-shadow: 0 1px 0 rgba(255, 255, 255, .08); }
[data-page=home] .pd-hdr.is-dark .pd-hdr__order { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- 2. смуга розділів ---------- */
.hm-tabs { position: sticky; top: var(--hm-hdr, 76px);  /* висота шапки з JS: на телефоні 64, щоб не було щілини (19.11) */  z-index: 20; background: rgba(255, 255, 255, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.hm-tabs__in { display: flex; gap: 6px; align-items: center; width: min(1520px, calc(100% - 2 * var(--pad))); margin: 0 auto; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.hm-tabs__in::-webkit-scrollbar { display: none; }
.hm-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: var(--r); font-size: 15px; color: var(--muted); text-decoration: none; transition: background .25s, color .25s; }
.hm-tabs a i { font-style: normal; font-size: 12px; color: var(--muted); }
.hm-tabs a:hover, .hm-tabs a.on { background: var(--hm-card); color: var(--ink); }
.hm-tabs .hm-tabs__all { margin-left: auto; color: var(--ink); }

/* ---------- розділ і картки серій ---------- */
/* розділи чергуються: білий і світло-сірий (на сірому картки білі) */
.hm-sec { padding: clamp(80px, 8vw, 130px) 0 clamp(80px, 7vw, 120px); scroll-margin-top: 140px; }
.hm-sec.is-grey { background: #f4f4f6; --hm-card: #fff; --hm-card2: #fafafb; }
.hm-sec + .hm-sec:not(.hm-sec--cont) { border-top: 1px solid var(--line); }
.hm-sec--cont { padding-top: clamp(40px, 4vw, 70px); }
.hm-sec.is-grey + .hm-ban, .hm-sec.is-grey ~ .hm-ban { margin-top: 0; }
.hm-sec:has(+ .hm-ban) { padding-bottom: clamp(60px, 6vw, 100px); }
.hm-head > div:first-child { display: grid; gap: 14px; }
.hm-grid { width: min(1520px, calc(100% - 2 * var(--pad))); margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.hm-card { position: relative; display: grid; grid-template-rows: auto 1fr auto auto; background: var(--hm-card); border-radius: var(--r); padding: 22px 22px 20px; min-height: 0; transition: background .35s; }
.hm-card:hover { background: var(--hm-card2); }
.hm-card__link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.hm-card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.hm-card__top h3 { margin: 0; font: 500 clamp(19px, 1.45vw, 26px)/1.1 var(--text); letter-spacing: -.015em; }
.hm-card__top span { flex: none; font-size: 13px; color: var(--muted); }
.hm-card__img { position: relative; aspect-ratio: 1 / 1; min-width: 0; margin-top: 10px; }
.hm-card__img img { position: absolute; inset: 2% 8% 8%; width: 84%; height: 90%; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .16)); transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.hm-card:hover .hm-card__img img { transform: translateY(-10px); }
/* крісла в картках парять (19.11, «это должны парить»): покачування через translate (не transform: його бере наведення), тінь унизу дихає в такт; фаза зсунута по картках */
.hm-card__img::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: -2%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .28), transparent); animation: hm-shadow 5s ease-in-out infinite; animation-delay: var(--d, 0s); }
.hm-card__img img { animation: hm-float 5s ease-in-out infinite; animation-delay: var(--d, 0s); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .12)); }
.hm-sec--photo .hm-card__img::after { display: none; }
.hm-sec--photo .hm-card__img img { animation: none; }
.hm-card:nth-child(4n+2) { --d: -1.2s; } .hm-card:nth-child(4n+3) { --d: -2.5s; } .hm-card:nth-child(4n+4) { --d: -3.7s; }

@keyframes hm-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes hm-float { 0%, 100% { translate: 0 -10px; } 50% { translate: 0 6px; } }
@keyframes hm-shadow { 0%, 100% { transform: scale(.8); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hm-card__img img, .hm-card__img::after { animation: none; } .hm-parade__track { animation: none !important; } .hm-parade { overflow-x: auto !important; } }
.hm-card__dots { position: relative; z-index: 2; display: flex; align-items: center; gap: 6px; min-height: 24px; margin-top: 6px; }
.hm-card__dots button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; overflow: hidden; cursor: pointer; background: #ccc; box-shadow: 0 0 0 1px rgba(0, 0, 0, .1); transition: box-shadow .2s, transform .2s; }
.hm-card__dots button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hm-card__dots button[aria-pressed=true] { box-shadow: 0 0 0 2px var(--hm-card), 0 0 0 3px var(--ink); }
.hm-card__dots button:hover { transform: scale(1.15); }
.hm-card__dots em { font-style: normal; font-size: 13px; color: var(--muted); margin-left: 2px; }
.hm-card__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(0, 0, 0, .08); font-size: 14px; }
.hm-card__price b { font-weight: 500; font-size: 16px; }
.hm-card__kit { color: var(--muted); font-size: 13px; white-space: nowrap; }
/* кермо: кадр цілим фото */
.hm-sec--photo .hm-card__img { padding: 0; margin: 14px -22px 0; aspect-ratio: 4 / 5; overflow: hidden; }
.hm-sec--photo .hm-card__img img { inset: 0; width: 100%; height: 100%; object-fit: cover; filter: none; }
.hm-sec--photo .hm-card:hover .hm-card__img img { transform: scale(1.04); }

/* ---------- 3. вставки лінійок: на всю ширину, у кожної свій характер ---------- */
.hm-ban { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; overflow: hidden; margin-top: clamp(90px, 9vw, 150px);
	min-height: min(720px, calc(100svh - 140px)); padding: clamp(40px, 5vw, 90px) max(var(--pad), calc((100% - 1520px) / 2)); text-decoration: none; color: var(--ink); }
.hm-ban__text { position: relative; z-index: 2; display: grid; gap: 22px; max-width: 640px; }
.hm-ban__name { font-size: 15px; letter-spacing: .02em; color: var(--muted); }
.hm-ban__title { font: 300 clamp(40px, 4.6vw, 84px)/1.02 var(--text); letter-spacing: -.035em; }
.hm-ban__sub { font-size: clamp(17px, 1.25vw, 20px); line-height: 1.55; color: var(--muted); max-width: 520px; }
.hm-ban__go { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; font-size: 17px; font-weight: 500; }
.hm-ban__go svg { width: 22px; height: 22px; transition: transform .3s; }
.hm-ban:hover .hm-ban__go svg { transform: translateX(8px); }
.hm-ban__img { position: relative; z-index: 1; display: grid; place-items: center; height: min(500px, calc(100svh - 330px)); }
.hm-ban__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; animation: hm-float 6s ease-in-out infinite; filter: drop-shadow(0 30px 30px rgba(0, 0, 0, .22)); }
/* Monaco: світло і чисто, як Porsche */
.hm-ban.is-light { background: linear-gradient(120deg, #f7f7f8 0%, #e8e9ed 100%); }
/* Rocket: чорне, помаранчевий акцент */
.hm-ban.is-dark { background: radial-gradient(90% 80% at 72% 55%, #24201d, #0b0b0c 70%); color: #fff; }
.hm-ban.is-dark .hm-ban__name { color: #ff6a13; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; font-size: 13px; }
.hm-ban.is-dark .hm-ban__title { font-weight: 600; letter-spacing: -.03em; font-size: clamp(34px, 3.4vw, 62px); }
.hm-ban.is-dark .hm-ban__sub { color: #a5a5aa; }
.hm-ban__slash { position: absolute; left: 40%; right: -10%; top: 58%; height: clamp(60px, 7vw, 120px); background: #ff6a13; transform: skewY(-9deg); box-shadow: 0 0 100px rgba(255, 106, 19, .4); }
/* Start: теплий салон на заході сонця, текст на темних дверях зліва */
.hm-ban.is-scene { color: #fff; background: #120d09; }
.hm-ban__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hm-ban.is-scene::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(10, 7, 5, .82) 0%, rgba(10, 7, 5, .45) 42%, transparent 70%); }
.hm-ban.is-scene .hm-ban__name, .hm-ban.is-scene .hm-ban__sub { color: rgba(255, 255, 255, .78); }
.hm-ban.is-scene .hm-ban__text { grid-column: 1; }
/* Rocket: спортивний характер на сцені */
.hm-ban.is-rocket .hm-ban__name { color: #ff6a13; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; font-size: 13px; }
.hm-ban.is-rocket .hm-ban__title { font-weight: 600; letter-spacing: -.03em; font-size: clamp(34px, 3.4vw, 62px); }
.hm-ban.is-rocket .hm-ban__go svg { color: #ff6a13; }

/* ---------- 4. факти ---------- */
.hm-facts { width: min(1520px, calc(100% - 2 * var(--pad))); margin: clamp(100px, 10vw, 160px) auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.hm-facts > div { display: grid; gap: 10px; padding: 34px 24px 0 0; }
.hm-facts > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.hm-facts b { font: 300 clamp(40px, 4.4vw, 76px)/1 var(--text); letter-spacing: -.03em; }
.hm-facts span { font-size: 15px; color: var(--muted); }

@media (max-width: 1200px) {
	.hm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
	.hm-hero { padding-top: 100px; min-height: 0; }
	.hm-hero::before { display: none; }
	/* бігуча стрічка: їде вліво по колу, на дотик пауза */
	.hm-parade { width: 100%; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; justify-content: flex-start; margin-top: 30px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
	.hm-parade::-webkit-scrollbar { display: none; }
	/* їде скриптом через scrollLeft, щоб працював і свайп пальцем (19.11) */
	.hm-parade__track { display: flex; width: max-content; }
	.hm-parade .hm-pa, .hm-parade .hm-pa.is-dup { display: grid; flex: 0 0 auto; margin-right: 14px; }
	.hm-pa__img { height: 230px; }
	.hm-parade:hover .hm-pa { opacity: 1; }
	.hm-hero__cats { grid-template-columns: 1fr 1fr; }
	.hm-hero__cats a:nth-child(3) { padding-left: 0; border-left: 0; }
	.hm-hero__cats a:nth-child(n+3) { border-top: 1px solid var(--line); }
	.hm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.hm-hero__text { text-align: left; }
	.hm-card { padding: 14px 14px 14px; }
	.hm-sec--photo .hm-card__img { margin: 10px -14px 0; }
	.hm-card__dots button { width: 18px; height: 18px; }
	.hm-card__foot { flex-direction: column; gap: 2px; }
	.hm-ban { grid-template-columns: 1fr; min-height: 0; gap: 24px; }
	.hm-ban__img { height: 320px; order: -1; }
	.hm-ban.is-scene { min-height: 560px; align-items: end; }
	.hm-ban.is-scene::before { background: linear-gradient(0deg, rgba(10, 7, 5, .85) 0%, rgba(10, 7, 5, .4) 55%, transparent 80%); }
	.hm-ban__slash { left: -10%; top: 22%; }
	.hm-facts { grid-template-columns: 1fr 1fr; }
	.hm-facts > div:nth-child(3) { padding-left: 0; border-left: 0; }
	.hm-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 30px; }
}
@media (max-width: 420px) {
	.hm-hero__cats a { padding-right: 10px; }
	.hm-hero__cats span { font-size: 12px; }
	.hm-hero__cats a + a { padding-left: 10px; }
	.hm-card__dots { gap: 5px; }
	.hm-card__dots button { width: 16px; height: 16px; }
	.hm-pa__img { height: 200px; }
}
@media (max-width: 359px) {
	.hm-hero__cats b { font-size: 15px; }
}
/* 19.11 магазин на головній по тому ж контейнеру, що сітка й текст (було на 64px правіше) */
.hm .pd-shop { width: min(1520px, calc(100% - 2 * var(--pad))); padding-inline: 0; }

/* 20.11 перевірка верстки: на 320-390 «14 кольорів» вилазило за край картки серії; назва і кількість кольорів переносяться */
.hm-card__top { flex-wrap: wrap; row-gap: 4px; }
.hm-card__top h3 { min-width: 0; overflow-wrap: anywhere; }
/* 20.11 перевірка верстки: на 320 вміст картки серії був на 2 px ширший за картку (колонка сітки тягнулась по найширшому) */
.hm-card { grid-template-columns: minmax(0, 1fr); }
/* 20.11 перевірка верстки: на 320 «Передние · Весь салон» обрізалось краєм картки */
@media (max-width: 420px) { .hm-card__kit { white-space: normal; } }
/* 22.11 скорість (CLS 0.615 на телефоні): серії, смугу розділів і секції малює home.js; поки вони порожні, тримаємо їхнє місце,
   інакше статичний текст «Чохли й накидки» спершу стає вгорі, а потім його виштовхує вниз */
.hm-parade:empty { min-height: 441px; }
.hm-hero__cats:empty { min-height: 97px; }
.hm-tabs:empty { min-height: 68px; }
.hm-sections:empty { min-height: 10000px; }
@media (max-width: 900px) {
	.hm-parade:empty { min-height: 267px; }
	.hm-hero__cats:empty { min-height: 211px; }
}

/* 25.11 заголовок обрав користувач: «Преміальні ізраїльські накидки й чохли на сидіння вашого авто».
   Комп'ютер: 2 рядки (перенос перед «на сидіння»); телефон: 3 рівні рядки, як у зразку користувача, кожен рядок не ламається. */
.hm-l--br::before { content: ""; display: block; }
@media (max-width: 640px) {
	.hm-hero__title { font-size: clamp(25px, 8.3vw, 40px); }
	.hm-l { display: block; white-space: nowrap; }
	.hm-l--br::before { display: none; }
}
/* 25.11 RU-заголовок довший («Премиальные израильские накидки и чехлы»): трохи менший кегль, щоб так само 2 рядки на комп'ютері й 3 на телефоні */
html[lang=ru] .hm-hero__title { font-size: clamp(36px, 4.1vw, 76px); }
@media (max-width: 640px) { html[lang=ru] .hm-hero__title { font-size: clamp(22px, 7.4vw, 36px); } }
