/*
 * CarFashion - ательє салону. Прототип 28.10.2026.
 * Графіт + кремовий, фірмовий червоний лише як сигнал (ціна, замовлення).
 */
:root {
	--bg: #0c0c0d;
	--bg-2: #141416;
	--line: rgba(239, 233, 225, .12);
	--ink: #efe9e1;
	--muted: #8f8a83;
	--red: #ff2b1c;
	--display: "Unbounded", system-ui, sans-serif;
	--text: "Manrope", system-ui, sans-serif;
	--pad: clamp(16px, 4vw, 64px);
	--ease: cubic-bezier(.22, 1, .36, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font: 400 16px/1.55 var(--text); -webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
::selection { background: var(--red); color: #fff; }
.wrap { padding-inline: var(--pad); }
.eyebrow { font: 500 12px/1 var(--text); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: .92; text-transform: uppercase; margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn {
	position: relative; display: inline-flex; align-items: center; gap: 12px; overflow: hidden;
	padding: 18px 28px; border-radius: 999px; background: var(--ink); color: var(--bg);
	font: 600 14px/1 var(--text); letter-spacing: .04em; text-transform: uppercase;
	transition: transform .5s var(--ease);
}
.btn::before {
	content: ""; position: absolute; inset: 0; background: var(--red); border-radius: inherit;
	transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn > * { position: relative; }
.btn:hover::before { transform: none; }
.btn:hover { color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.btn:hover .dot { background: #fff; }
.link-u { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
.link-u:hover { background-size: 100% 1px; }

/* ---------- шапка ---------- */
.hdr {
	position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; justify-content: space-between;
	padding: 22px var(--pad); mix-blend-mode: difference; color: #fff;
}
.hdr__logo { font: 700 18px/1 var(--display); letter-spacing: -.02em; text-transform: uppercase; }
.hdr__logo span { color: var(--red); mix-blend-mode: normal; }
.hdr__nav { display: flex; gap: 32px; font-size: 14px; }
.hdr__right { display: flex; gap: 24px; align-items: center; font-size: 14px; }
.hdr__menu { display: none; width: 40px; height: 40px; position: relative; }
.hdr__menu span { position: absolute; left: 8px; right: 8px; height: 1.5px; background: currentColor; transition: transform .4s var(--ease); }
.hdr__menu span:first-child { top: 16px; }
.hdr__menu span:last-child { top: 23px; }
.menu-open .hdr__menu span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-open .hdr__menu span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mnav {
	position: fixed; inset: 0; z-index: 45; background: var(--bg-2); display: flex; flex-direction: column; justify-content: flex-end;
	padding: 100px var(--pad) 40px; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease); visibility: hidden;
}
.menu-open .mnav { clip-path: inset(0); visibility: visible; }
.mnav a { font: 600 clamp(36px, 11vw, 64px)/1.05 var(--display); text-transform: uppercase; letter-spacing: -.03em; }
.mnav__foot { margin-top: 40px; color: var(--muted); display: grid; gap: 6px; }

/* ---------- курсор (лише миша) ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .3s; }
.cursor.is-on { opacity: 1; }
.cursor__dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #fff; transition: transform .35s var(--ease); }
.cursor.is-link .cursor__dot { transform: scale(4.2); }
.cursor__label { position: absolute; left: 18px; top: -8px; font: 600 11px/1 var(--text); letter-spacing: .12em; text-transform: uppercase; color: #fff; opacity: 0; transition: opacity .3s; white-space: nowrap; }
.cursor.has-label .cursor__label { opacity: 1; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- перехід між сторінками ---------- */
.veil { position: fixed; inset: 0; z-index: 80; background: var(--red); pointer-events: none; transform: translateY(100%); }

/* ---------- прелоадер ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--bg); display: flex; align-items: flex-end; justify-content: space-between; padding: var(--pad); }
.loader__n { font: 600 clamp(80px, 18vw, 260px)/.8 var(--display); letter-spacing: -.05em; }
.loader__t { color: var(--muted); max-width: 240px; font-size: 14px; }

/* ---------- головна: перший екран ---------- */
.hero { position: relative; height: 100svh; min-height: 640px; overflow: hidden; display: grid; place-items: center; }
.hero__img { position: absolute; inset: 0; clip-path: inset(34% 0% 34% 0%); }
.hero__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.25); filter: brightness(.8) contrast(1.05); }
.hero__title { position: relative; z-index: 2; text-align: center; font-size: clamp(54px, 13.5vw, 250px); }
/* запас зверху: інакше обрізається дужка над «Й» */
.hero__title .line { display: block; overflow: hidden; padding-top: .12em; margin-top: -.12em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: normal; color: var(--red); }
.hero__foot {
	position: absolute; left: var(--pad); right: var(--pad); bottom: 28px; z-index: 2;
	display: flex; justify-content: space-between; align-items: flex-end; gap: 24px;
}
.hero__lead { max-width: 380px; font-size: 15px; color: var(--ink); }
.hero__scroll { display: flex; align-items: center; gap: 12px; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero__scroll i { width: 1px; height: 48px; background: var(--line); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; inset: 0; background: var(--ink); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* ---------- 14 кольорів: прокрутка гортає кольори ---------- */
.colors { position: relative; height: 100svh; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--pad); padding-inline: var(--pad); }
.colors__stack { position: relative; height: min(76svh, 46vw); aspect-ratio: 3 / 4; margin-top: 4svh; border-radius: 4px; overflow: hidden; background: var(--bg-2); }
.colors__stack img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.colors__stack img.on { opacity: 1; }
.colors__left .display { font-size: clamp(36px, 5.2vw, 96px); }
.colors__left p { color: var(--muted); max-width: 320px; margin: 24px 0 0; }
.colors__right { justify-self: end; text-align: right; }
.colors__n { font: 600 clamp(64px, 9vw, 160px)/.85 var(--display); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.colors__n small { font-size: .32em; color: var(--muted); letter-spacing: 0; }
.colors__art { margin-top: 18px; font-size: 14px; color: var(--muted); }
.colors__art b { color: var(--ink); font-weight: 600; }
.colors__bar { margin-top: 28px; display: flex; gap: 4px; justify-content: flex-end; }
.colors__bar span { width: 14px; height: 3px; background: var(--line); transition: background .3s, width .3s; }
.colors__bar span.on { background: var(--red); width: 28px; }

/* ---------- матеріали: горизонтальна стрічка ---------- */
.mats { position: relative; overflow: hidden; }
.mats__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 120px var(--pad) 48px; }
.mats__head .display { font-size: clamp(40px, 7vw, 120px); }
.mats__track { display: flex; gap: 20px; padding: 0 var(--pad) 120px; width: max-content; }
.mat {
	position: relative; flex: 0 0 auto; width: clamp(260px, 26vw, 420px); aspect-ratio: 3 / 4; overflow: hidden;
	border-radius: 6px; background: var(--bg-2);
}
.mat img { width: 100%; height: 100%; object-fit: cover; transform: scale(2.4); transform-origin: 50% 45%; transition: transform 1.2s var(--ease); filter: saturate(.9); }
.mat:hover img { transform: scale(2.0); }
.mat::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .75)); }
.mat__t { position: absolute; left: 22px; right: 22px; bottom: 20px; z-index: 1; display: flex; justify-content: space-between; align-items: flex-end; }
.mat__t b { font: 600 28px/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.mat__t span { font-size: 13px; color: var(--muted); }

/* ---------- колекції: великий список ---------- */
.cols { padding: 140px var(--pad); }
.cols__list { border-top: 1px solid var(--line); margin-top: 48px; }
.col-row {
	display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 24px;
	padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding .5s var(--ease), color .3s;
}
.col-row__n { color: var(--muted); font-size: 13px; }
.col-row__t { font: 600 clamp(36px, 6.4vw, 112px)/.95 var(--display); text-transform: uppercase; letter-spacing: -.03em; }
.col-row__c { color: var(--muted); font-size: 14px; text-align: right; }
.col-row:hover { padding-left: 24px; }
.col-row:hover .col-row__t { color: var(--red); }
.cols__float {
	position: fixed; left: 0; top: 0; z-index: 40; width: 300px; aspect-ratio: 3 / 4; pointer-events: none;
	overflow: hidden; border-radius: 4px; opacity: 0; transform: translate(-50%, -50%) scale(.6);
}
.cols__float img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.cols__float img.on { opacity: 1; }

/* ---------- конфігуратор (головна і сторінка товару) ---------- */
.cfg { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 96px); align-items: center; padding: 120px var(--pad); background: var(--bg-2); }
.cfg__stage { position: relative; aspect-ratio: 4 / 5; max-height: 82svh; width: 100%; justify-self: center; overflow: hidden; border-radius: 8px; background: #000; }
.cfg__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cfg__stage .cfg__art { position: absolute; left: 20px; top: 18px; z-index: 2; font: 600 13px/1 var(--text); letter-spacing: .1em; padding: 9px 12px; border-radius: 99px; background: rgba(12, 12, 13, .7); backdrop-filter: blur(8px); }
.cfg__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.chip { padding: 10px 16px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; transition: background .3s, color .3s, box-shadow .3s; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.chip[aria-pressed=true] { background: var(--ink); color: var(--bg); }
.cfg__name { font-size: clamp(40px, 5vw, 84px); }
.cfg__sub { color: var(--muted); margin: 14px 0 28px; }
.seg { display: inline-grid; grid-auto-flow: column; padding: 4px; border-radius: 99px; box-shadow: inset 0 0 0 1px var(--line); position: relative; margin-bottom: 28px; }
.seg button, .seg a { position: relative; z-index: 1; padding: 11px 18px; font-size: 13px; border-radius: 99px; transition: color .35s; }
.seg button[aria-pressed=true], .seg a[aria-current=page] { color: var(--bg); }
.seg__pill { position: absolute; top: 4px; bottom: 4px; border-radius: 99px; background: var(--ink); transition: left .5s var(--ease), width .5s var(--ease); }
.sw { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.sw button { width: 42px; height: 42px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: box-shadow .3s, transform .3s var(--ease); }
.sw button img { width: 100%; height: 100%; object-fit: cover; transform: scale(2.6); }
.sw button:hover { transform: scale(1.08); }
.sw button[aria-pressed=true] { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 3px var(--ink); }
.price { display: flex; align-items: baseline; gap: 14px; margin-bottom: 32px; }
.price b { font: 600 clamp(32px, 3.4vw, 52px)/1 var(--display); letter-spacing: -.03em; }
.price s { color: var(--muted); font-size: 18px; }
.price .save { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.cfg__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- біжучий рядок фактів ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: 26px 0; }
.marquee__in { display: flex; width: max-content; animation: run 38s linear infinite; }
.marquee__in span { font: 600 clamp(22px, 2.6vw, 40px)/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; padding-right: 56px; white-space: nowrap; }
.marquee__in span::after { content: "●"; color: var(--red); font-size: .4em; vertical-align: middle; margin-left: 56px; }
@keyframes run { to { transform: translateX(-50%); } }

/* ---------- факти ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); margin: 120px var(--pad); }
.fact { background: var(--bg); padding: 36px 28px 30px; min-height: 260px; display: flex; flex-direction: column; justify-content: space-between; }
.fact b { font: 600 clamp(48px, 5.4vw, 92px)/.9 var(--display); letter-spacing: -.04em; }
.fact b small { font-size: .38em; letter-spacing: 0; }
.fact p { margin: 0; color: var(--muted); font-size: 14px; max-width: 220px; }

/* ---------- фото клієнтів ---------- */
.reviews { padding: 40px 0 140px; }
.reviews__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding: 0 var(--pad) 40px; }
.reviews__head .display { font-size: clamp(36px, 5.6vw, 96px); }
.reviews__rail { display: flex; gap: 14px; padding: 0 var(--pad); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
.reviews__rail::-webkit-scrollbar { display: none; }
.reviews__rail img { flex: 0 0 auto; height: clamp(300px, 46vh, 520px); width: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 6px; scroll-snap-align: start; user-select: none; -webkit-user-drag: none; }

/* ---------- фінал і підвал ---------- */
.final { padding: 160px var(--pad) 60px; text-align: center; }
.final .display { font-size: clamp(44px, 9vw, 168px); }
.final .display a { color: var(--red); }
.final p { color: var(--muted); max-width: 520px; margin: 28px auto 40px; }
.final__row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.ftr { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 60px var(--pad) 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.ftr h4 { margin: 0 0 14px; color: var(--ink); font: 600 12px/1 var(--text); letter-spacing: .16em; text-transform: uppercase; }
.ftr a { display: block; margin-bottom: 6px; }
.ftr a:hover { color: var(--ink); }
.ftr__word { grid-column: 1 / -1; font: 700 clamp(36px, 11.2vw, 230px)/.8 var(--display); letter-spacing: -.06em; text-transform: uppercase; color: var(--ink); margin-top: 40px; white-space: nowrap; }
.ftr__word span { color: var(--red); }

/* ---------- каталог ---------- */
.page-head { padding: 150px var(--pad) 84px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.page-head .display { font-size: clamp(56px, 11vw, 200px); }
.page-head .count { color: var(--muted); }
.filters { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 84px var(--pad) 18px; margin-top: -66px; background: linear-gradient(var(--bg) 78%, transparent); }
.filters .sep { width: 1px; height: 24px; background: var(--line); margin: 0 8px; }
.filters select { margin-left: auto; background: transparent; color: var(--ink); border: 0; box-shadow: inset 0 0 0 1px var(--line); border-radius: 99px; padding: 10px 16px; font: inherit; font-size: 13px; }
.filters select option { background: var(--bg); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 44px 20px; padding: 24px var(--pad) 140px; }
.card { display: block; }
.card__img { position: relative; aspect-ratio: 3 / 4; overflow: hidden; border-radius: 6px; background: var(--bg-2); }
.card__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), opacity .5s; }
.card__img img + img { opacity: 0; }
.card:hover .card__img img { transform: scale(1.05); }
.card:hover .card__img img + img { opacity: 1; }
.card__tag { position: absolute; left: 12px; top: 12px; z-index: 2; padding: 6px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--red); color: #fff; }
.card__meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.card__name { font: 600 19px/1.15 var(--display); text-transform: uppercase; letter-spacing: -.02em; }
.card__sub { color: var(--muted); font-size: 13px; margin-top: 6px; }
.card__price { text-align: right; white-space: nowrap; font-weight: 700; }
.card__price s { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.card__dots { display: flex; gap: 4px; margin-top: 10px; }
.card__dots span { width: 12px; height: 12px; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px var(--line); }
.card__dots span img { width: 100%; height: 100%; object-fit: cover; transform: scale(3); }
.empty { padding: 60px var(--pad); color: var(--muted); }

/* ---------- сторінка товару ---------- */
.pdp { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 96px); padding: 120px var(--pad) 100px; align-items: start; }
.pdp__gallery { position: sticky; top: 100px; }
.pdp__thumbs { display: flex; gap: 8px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.pdp__thumbs button { flex: 0 0 64px; height: 80px; border-radius: 4px; overflow: hidden; opacity: .45; transition: opacity .3s; }
.pdp__thumbs button[aria-pressed=true], .pdp__thumbs button:hover { opacity: 1; }
.pdp__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.crumbs a:hover { color: var(--ink); }
.pdp h1 { font-size: clamp(44px, 5.6vw, 96px); }
.mats-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 18px 0 30px; }
.mats-row span { font-size: 12px; padding: 6px 10px; border-radius: 99px; background: rgba(239, 233, 225, .08); }
.label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; display: flex; justify-content: space-between; }
.feat { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.feat li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; font-size: 15px; }
.feat li::before { content: ""; flex: 0 0 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--red); }
.promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); margin-top: 32px; }
.promise div { background: var(--bg); padding: 18px 14px; font-size: 13px; color: var(--muted); }
.promise b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.related { padding: 0 var(--pad) 140px; }
.related h2 { font-size: clamp(32px, 4.4vw, 72px); margin-bottom: 36px; }
.related .grid { padding: 0; }

/* ---------- замовлення ---------- */
.drawer { position: fixed; inset: 0; z-index: 70; visibility: hidden; }
.drawer.open { visibility: visible; }
.drawer__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .5s; }
.drawer.open .drawer__bg { opacity: 1; }
.drawer__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--bg-2);
	padding: 32px; display: flex; flex-direction: column; gap: 24px; transform: translateX(100%); transition: transform .7s var(--ease); overflow-y: auto;
}
.drawer.open .drawer__panel { transform: none; }
.drawer__close { align-self: flex-end; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--line); font-size: 20px; }
.drawer h3 { font-size: clamp(30px, 4vw, 44px); }
.drawer__item { display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; padding: 14px; border-radius: 8px; background: rgba(239, 233, 225, .05); }
.drawer__item img { width: 84px; height: 104px; object-fit: cover; border-radius: 4px; }
.drawer__item small { color: var(--muted); display: block; margin-top: 4px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field input {
	background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink);
	font: 600 26px/1.2 var(--display); padding: 10px 0; outline: none; letter-spacing: -.01em;
}
.field input:focus { border-color: var(--ink); }
.drawer__note { font-size: 13px; color: var(--muted); }
.drawer__alt { display: flex; gap: 10px; flex-wrap: wrap; }
.toast { position: fixed; left: 50%; bottom: 28px; z-index: 95; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; background: var(--ink); color: var(--bg); padding: 14px 22px; border-radius: 99px; font-size: 14px; font-weight: 600; transition: transform .6s var(--ease); }
.toast.on { transform: translate(-50%, 0); visibility: visible; }

/* ---------- адаптив ---------- */
@media (max-width: 1024px) {
	.hdr__nav, .hdr__phone { display: none; }
	.hdr__menu { display: block; }
	.colors { grid-template-columns: 1fr; grid-template-rows: auto auto auto; align-content: center; gap: 22px; padding-top: 80px; }
	.colors__stack { height: auto; width: min(62vw, 340px); margin-top: 0; justify-self: center; order: 2; }
	.colors__left { order: 1; text-align: center; }
	.colors__left p { margin-inline: auto; }
	.colors__right { order: 3; justify-self: center; text-align: center; }
	.colors__bar { justify-content: center; }
	.cfg, .pdp { grid-template-columns: 1fr; }
	.pdp__gallery { position: static; }
	.facts { grid-template-columns: repeat(2, 1fr); }
	.ftr { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
	.hero__img { clip-path: inset(30% 0% 34% 0%); }
	.hero__foot { flex-direction: column; align-items: flex-start; }
	.hero__scroll { display: none; }
	.colors__n { font-size: 72px; }
	.mats__head, .reviews__head, .page-head { flex-direction: column; align-items: flex-start; }
	.col-row { grid-template-columns: 1fr auto; padding: 22px 0; }
	.col-row__n { display: none; }
	.cfg { padding-block: 80px; }
	.facts { grid-template-columns: 1fr; margin-block: 80px; }
	.fact { min-height: 0; gap: 18px; }
	.filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.filters select { margin-left: 0; }
	.filters > * { flex: 0 0 auto; }
	.grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
	.card__name { font-size: 14px; }
	.card__meta { flex-direction: column; gap: 4px; }
	.card__price { text-align: left; }
	.promise { grid-template-columns: 1fr; }
	.ftr { grid-template-columns: 1fr; }
	.drawer__panel { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

/* ======================================================================
   Теми варіантів. База вище - темна; світла тема перевизначає токени.
   ====================================================================== */
:root { --chip: rgba(239, 233, 225, .08); --stage: #000; }
[data-theme=light] {
	--bg: #ffffff;
	--bg-2: #f5f5f7;
	--line: rgba(0, 0, 0, .1);
	--ink: #111113;
	--muted: #6e6e73;
	--red: #e3241b;
	--chip: rgba(0, 0, 0, .05);
	--stage: #f5f5f7;
}
[data-theme=light] body { background: var(--bg); color: var(--ink); }
[data-theme=light] .display { font-family: var(--text); font-weight: 800; text-transform: none; letter-spacing: -.045em; line-height: 1; }
[data-theme=light] .hdr { mix-blend-mode: normal; color: var(--ink); background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.8) blur(18px); -webkit-backdrop-filter: saturate(1.8) blur(18px); padding-block: 16px; border-bottom: 1px solid var(--line); }
[data-theme=light] .hdr__logo { font-family: var(--text); font-weight: 800; letter-spacing: -.03em; text-transform: none; font-size: 20px; }
[data-theme=light] .btn { color: #fff; }
[data-theme=light] .btn--ghost { color: var(--ink); }
[data-theme=light] .btn--ghost:hover { color: #fff; }
[data-theme=light] .card__name, [data-theme=light] .mat__t b, [data-theme=light] .col-row__t, [data-theme=light] .price b, [data-theme=light] .fact b, [data-theme=light] .ftr__word, [data-theme=light] .loader__n, [data-theme=light] .field input { font-family: var(--text); font-weight: 800; text-transform: none; }
[data-theme=light] .ftr__word { letter-spacing: -.07em; }
[data-theme=light] .mnav a { font-family: var(--text); font-weight: 800; text-transform: none; }
[data-theme=light] .card__img, [data-theme=light] .cfg__stage { border-radius: 18px; }
[data-theme=light] .filters { padding-top: 96px; }
[data-theme=light] .mats-row span, [data-theme=light] .drawer__item { background: var(--chip); }
[data-theme=light] .cfg__stage { background: var(--stage); }
[data-theme=light] .cfg__stage .cfg__art { background: rgba(255, 255, 255, .8); color: var(--ink); }
[data-theme=light] .drawer__bg { background: rgba(0, 0, 0, .25); }
[data-theme=light] .chip[aria-pressed=true] { color: #fff; }
[data-theme=light] .seg button[aria-pressed=true], [data-theme=light] .seg a[aria-current=page] { color: #fff; }
[data-theme=light] .toast { color: #fff; }

/* 3D-тема: темна база + моно-шрифт для «приладових» підписів */
[data-theme=tech] { --mono: "JetBrains Mono", ui-monospace, monospace; }
[data-theme=tech] .eyebrow { font-family: var(--mono); letter-spacing: .08em; }

/* ======================================================================
   Тема pd: як сайт Porsche. Світло-сірі площини, строгий гротеск,
   кнопки зі скругленням 4 px, товар вирізаний на сірому.
   ====================================================================== */
[data-theme=pd] {
	--bg: #ffffff;
	--bg-2: #eeeff2;
	--bg-3: #d8d8db;
	--line: #e3e4e6;
	--ink: #010205;
	--muted: #6b6d70;
	--red: #d5001c;
	--chip: #eeeff2;
	--stage: #eeeff2;
	--text: "Inter Tight", system-ui, sans-serif;
	--display: "Inter Tight", system-ui, sans-serif;
	--r: 4px;
}
[data-theme=pd] body { background: #fff; color: var(--ink); font-family: var(--text); }
[data-theme=pd] .display, [data-theme=pd] .card__name, [data-theme=pd] .price b, [data-theme=pd] .ftr__word, [data-theme=pd] .mnav a, [data-theme=pd] .field input { font-family: var(--text); font-weight: 400; text-transform: none; letter-spacing: -.02em; }
[data-theme=pd] .btn { border-radius: var(--r); padding: 15px 26px; font-size: 15px; font-weight: 500; letter-spacing: 0; text-transform: none; background: var(--ink); color: #fff; }
[data-theme=pd] .btn::before { display: none; }
[data-theme=pd] .btn:hover { background: #323639; }
[data-theme=pd] .btn--ghost { background: var(--bg-2); color: var(--ink); box-shadow: none; }
[data-theme=pd] .btn--ghost:hover { background: var(--bg-3); color: var(--ink); }
[data-theme=pd] .btn .dot { display: none; }
[data-theme=pd] .chip { border-radius: var(--r); box-shadow: none; background: var(--bg-2); }
[data-theme=pd] .chip[aria-pressed=true] { background: var(--ink); color: #fff; }
[data-theme=pd] .card__img, [data-theme=pd] .cfg__stage { border-radius: 12px; background: var(--bg-2); }
[data-theme=pd] .card__img img { object-fit: cover; }
[data-theme=pd] .card__name { font-size: 20px; font-weight: 500; }
[data-theme=pd] .card__tag { border-radius: var(--r); }
[data-theme=pd] .page-head .display { font-size: clamp(48px, 7vw, 110px); font-weight: 400; }
[data-theme=pd] .filters { padding-top: 96px; }
[data-theme=pd] .seg { border-radius: var(--r); background: var(--bg-2); box-shadow: none; }
[data-theme=pd] .seg__pill { border-radius: var(--r); background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
[data-theme=pd] .seg button[aria-pressed=true], [data-theme=pd] .seg a[aria-current=page] { color: var(--ink); }
[data-theme=pd] .seg button, [data-theme=pd] .seg a { border-radius: var(--r); }
[data-theme=pd] .mats-row span, [data-theme=pd] .drawer__item { background: var(--bg-2); border-radius: var(--r); }
[data-theme=pd] .promise { border-radius: 12px; overflow: hidden; }
[data-theme=pd] .drawer__panel { background: #fff; }
[data-theme=pd] .drawer__bg { background: rgba(0, 0, 0, .3); }
[data-theme=pd] .drawer__close { box-shadow: none; background: var(--bg-2); }
[data-theme=pd] .toast { color: #fff; border-radius: var(--r); }
[data-theme=pd] .veil { background: var(--bg-2); }
[data-theme=pd] .ftr { background: var(--ink); color: #b0b1b2; border-top: 0; }
[data-theme=pd] .ftr h4, [data-theme=pd] .ftr__word { color: #fff; }
.ftr__logo { display: block; height: 28px; width: auto; margin-bottom: 18px; }
[data-theme=pd] .ftr__word span { color: #fff; }
[data-theme=pd] .ftr a:hover { color: #fff; }

/* перехід між сторінками: сторінка закрита кольором шторки ще до першого кадру,
   інакше вміст встигає блимнути до того, як скрипт поставить шторку (common.js) */
html.veil-in::after { content: ""; position: fixed; inset: 0; z-index: 81; background: var(--red); }
[data-theme=pd].veil-in::after { background: var(--bg-2); }
