/* Smart4Derma — прототип вітрини. Mobile-first, від 360 px.
   Стиль v3: мінімалізм у дусі awwwards — великі заголовки Inter, сірі акценти,
   індекси (01), тонкі лінії, багато повітря, м'які появи при прокрутці.
   Текст 16 / 13 px, мітки 12 px (рішення Валерія 2026-11-29); контраст ≥ 4.5:1, зони натискання ≥ 48 px. */

:root {
  --bg: #FFFFFF;
  --surface: #FFFFFF;
  --photo: #F2F2F4;       /* фон фото товарів (як на самих знімках) */
  --promo-bg: #EEEEF2;    /* фон слайда акції — під колір фону знімків */
  --band: #F4F4F6;        /* фон виділених секцій (категорії на головній) */
  --ink: #1C1D20;
    --muted: #5B5D63;
  --line: #E3E2DF;
  --accent: #A93E5B;      /* малиновий з етикеток — лише назви лінійок */
  --on-dark: #F3F2EE;     /* текст на темному (меню, футер) */
  --on-dark-muted: #A9A7A1;
  --ok: #2F6B45;
  --off: #9A3A2E;

  /* Типографіка: один шрифт Inter, накреслення 400 (усе) і 500 (лише кнопки).
     Заголовки — 4 розміри, трекінг −1.2 %; текст — 16 / 13 px, трекінг −0.3 %;
     мітки — 12 px капсом, трекінг +7 %. Кольори тексту — лише --ink і --muted. */
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: clamp(2.4rem, 10.5vw, 6.4rem);
  --h1: clamp(2.1rem, 8.6vw, 4.4rem);
  --h2: clamp(1.7rem, 6.6vw, 2.9rem);
  --h3: clamp(1.45rem, 5.4vw, 1.9rem);
  --t-body: 16px;
  --t-small: 13px;
  --t-meta: 12px;
  --ls-head: -0.012em;
  --ls-text: -0.003em;
  --ls-caps: .07em;
  --lh-text: 1.55;        /* абзаци */
  --lh-short: 1.35;       /* назви, підписи, короткі рядки */

  --pad: 20px;
  --tap: 48px;
  --hdr: 60px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr) + 12px); }
body {
  margin: 0; min-height: 100dvh; overflow-x: hidden;
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: var(--t-body); line-height: var(--lh-text); letter-spacing: var(--ls-text);
  -webkit-font-smoothing: antialiased;
  font-synthesis: none;
}
html.noscroll body { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3 { font-size: inherit; font-weight: 400; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--pad); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bleed { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }

/* ---------- Типографіка ---------- */
.display, .h1, .h2, .h3, .statement {
  font-weight: 400; letter-spacing: var(--ls-head);
}
.display { font-size: var(--display); line-height: 1; }
.h1 { font-size: var(--h1); line-height: 1.04; }
.h2, .statement { font-size: var(--h2); line-height: 1.08; }
.h3 { font-size: var(--h3); line-height: 1.15; }
.display em, .h1 em, .h2 em, .statement em { font-style: normal; color: var(--muted); }
.meta {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  font-size: var(--t-meta); font-weight: 400; line-height: 1.3; letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--muted);
}
.meta b { font-weight: 400; font-variant-numeric: tabular-nums; }
.lead { color: var(--ink); }
.muted { color: var(--muted); }

/* ---------- Кнопки й посилання ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--tap); padding: 0 22px;
  border: 1px solid transparent; border-radius: 0; background: none;
  font-size: var(--t-body); font-weight: 500; line-height: 1.2; text-align: left;
  text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn svg { transition: transform .35s var(--ease); }
@media (hover: hover) { .btn:hover svg { transform: translateX(4px); } }
.btn--primary { background: var(--ink); color: var(--bg); }
.btn--primary:active { background: #000; }
.btn--outline { border-color: var(--ink); }
.btn--outline:active { background: var(--ink); color: var(--bg); }
.btn--block { width: 100%; }
.btn--lg { min-height: 58px; }
.btn--center { justify-content: center; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.is-done { background: var(--ok); border-color: var(--ok); color: #fff; }

/* Посилання з лінією, що «стікає» при наведенні */
.link {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap);
  padding: 0; border: 0; background: none; cursor: pointer; color: inherit; font-weight: 400; text-decoration: none;
}
.link > span {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  transition: background-size .45s var(--ease);
  padding-bottom: 2px;
}
@media (hover: hover) { .link:hover > span { background-size: 0 1px; background-position: 100% 100%; } }

/* Рядок-посилання з лінією */
.row-link {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 60px; padding: 8px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; font-size: var(--t-body);
}
.row-link:first-child { border-top: 1px solid var(--line); }
.row-link svg { flex: none; transition: transform .35s var(--ease); }
@media (hover: hover) { .row-link:hover svg { transform: translateX(6px); } }

/* ---------- Шапка ---------- */
.hdr {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top);
}
.hdr__row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--hdr); }
.hdr__left { display: flex; align-items: center; margin-left: -10px; }
.hdr__right { display: flex; justify-content: flex-end; margin-right: -10px; }
.hdr__logo img { height: 34px; width: auto; }
.hbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: var(--tap); min-height: var(--tap); padding: 0 10px;
  border: 0; background: none; cursor: pointer; text-decoration: none;
  font-size: var(--t-body); font-weight: 400; -webkit-tap-highlight-color: transparent;
}
.hbtn__count { font-variant-numeric: tabular-nums; }

/* Слайдер акцій на головній: між шапкою й заголовком (поки сірі слайди-заглушки) */
/* Банер на всю ширину одразу під шапкою; текст і риски — по лівому краю сітки сторінки (.wrap) */
.promo {
  position: relative; container-type: inline-size;
  --promo-pad: max(var(--pad), calc((100cqw - 1320px) / 2 + var(--pad)));
}
.promo__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.promo__track::-webkit-scrollbar { display: none; }
.promo__slide {
  flex: 0 0 100%; scroll-snap-align: start;
  display: grid; grid-template-rows: auto 280px; background: var(--promo-bg);
}
.promo__text { display: flex; flex-direction: column; justify-content: space-between; gap: 24px; padding: 24px var(--pad) 28px var(--promo-pad); }
.promo__title { max-width: 16ch; font-size: var(--h2); line-height: 1.04; letter-spacing: var(--ls-head); text-wrap: balance; }
.promo__desc { margin-top: 16px; max-width: 34ch; color: var(--muted); text-wrap: pretty; }
.promo__cta { margin-top: 24px; }
.promo__img { position: relative; overflow: hidden; display: flex; justify-content: center; }
/* Фото й фон слайда трохи різняться — м'який перехід замість видимого шва */
.promo__img::before { content: ""; position: absolute; z-index: 1; left: 0; right: 0; top: 0; height: 30%; background: linear-gradient(var(--promo-bg), transparent); pointer-events: none; }
/* Фото цілим (без обрізання): висота = висота блоку, краї знімка м'яко тануть у фон слайда */
.promo__img img { width: auto; height: 100%; max-width: none; flex: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.promo__dots { position: absolute; left: calc(var(--promo-pad) - 4px); bottom: 20px; display: flex; gap: 2px; }
.promo__dots button { position: relative; width: 36px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; }
.promo__dots button::before { content: ""; position: absolute; left: 4px; right: 4px; top: 11px; height: 2px; background: rgba(28, 29, 32, .2); transition: background-color .3s; }
.promo__dots button[aria-current]::before { background: var(--ink); }

/* ---------- Головна ---------- */
/* Пошук під банером: людина вже знає бренд і шукає конкретний засіб за назвою чи артикулом.
   Сіре поле без рамки з кнопкою «Знайти»; результати — у випадному списку поверх сторінки. */
.hero { padding-top: var(--pad); }
.finder__box { position: relative; }
.finder__field {
  display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px;
  background: var(--band); color: var(--ink); transition: background-color .2s, box-shadow .2s;
}
.finder__field:focus-within { background: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }
.finder__field svg { flex: none; width: 22px; height: 22px; }
.finder__input {
  flex: 1; min-width: 0; height: 48px; padding: 0; border: 0; border-radius: 0; background: none;
  font-size: 18px; letter-spacing: var(--ls-text); color: var(--ink); -webkit-appearance: none; appearance: none;
}
.finder__input::placeholder { color: var(--muted); opacity: 1; }
.finder__input:focus { outline: none; }
.finder__input::-webkit-search-cancel-button { -webkit-appearance: none; }
.finder__kbd { display: none; padding: 2px 8px; border: 1px solid var(--line); font: inherit; font-size: var(--t-meta); color: var(--muted); }
.finder__go { flex: none; width: 48px; padding: 0; justify-content: center; }
.finder__go span { display: none; }
.finder__go svg { width: 22px; height: 22px; color: var(--bg); }
.finder__hint .search__hint { margin-top: 14px; font-size: var(--t-small); }
/* Приклади — звичайні слова в рядку: зона натискання 48 px лишається, але не розсуває рядок */
.finder__hint .search__hint .link { min-height: 0; padding-block: 12px; margin-block: -12px; }
.finder__panel {
  position: absolute; z-index: 12; left: 0; right: 0; top: calc(100% + 8px);
  max-height: min(70vh, 560px); overflow: auto; overscroll-behavior: contain; padding: 4px 20px 8px;
  background: var(--bg); box-shadow: 0 0 0 1px var(--line), 0 24px 48px -16px rgba(28, 29, 32, .28);
}
.finder__panel[hidden] { display: none; }
.finder__count { padding: 12px 0 4px; }
.finder__panel .srow:last-child { border-bottom: 0; }
.finder__panel .search__hint { padding: 16px 0; }
.srow__main:focus-visible { outline-offset: 4px; }

.section { padding-top: 136px; }
/* Секція на кольоровій смузі на всю ширину вікна; вміст лишається на сітці сторінки */
.section--band {
  margin-top: 96px; padding: 48px 0 64px;
  background: var(--band); box-shadow: 0 0 0 100vmax var(--band); clip-path: inset(0 -100vmax);
}
.shead { padding-top: 12px; border-top: 1px solid var(--ink); }
/* Темний варіант смуги (як футер): прибрати клас section--dark — і смуга знову світла */
.section--dark { --band: var(--ink); color: var(--on-dark); }
.section--dark .shead { border-top-color: rgba(255, 255, 255, .35); }
.section--dark .meta, .section--dark .index__note, .section--dark .index__name sup { color: var(--on-dark-muted); }
.section--dark .index a { border-bottom-color: rgba(255, 255, 255, .16); }
.js-reveal .section--dark [data-reveal="line"]::before { background: rgba(255, 255, 255, .35); }
.stitle { margin: 40px 0 64px; }

/* Категорії — типографічний індекс */
.index a {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px;
  min-height: 88px; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none;
}
.index__n { font-size: var(--t-meta); color: var(--muted); font-variant-numeric: tabular-nums; }
.index__name { font-size: var(--h3); line-height: 1.15; letter-spacing: var(--ls-head); transition: transform .45s var(--ease); }
.index__name sup { margin-left: 6px; font-size: var(--t-meta); letter-spacing: var(--ls-text); color: var(--muted); vertical-align: super; line-height: 0; }
.index svg { transition: transform .45s var(--ease); }
.index__note { display: block; margin-top: 8px; font-size: var(--t-small); line-height: var(--lh-short); letter-spacing: var(--ls-text); color: var(--muted); }
.layer--dark .index__note { color: var(--on-dark-muted); }
@media (hover: hover) {
  .index a:hover .index__name { transform: translateX(10px); }
  .index a:hover svg { transform: translateX(6px); }
}

/* Заява про бренд */
.statement { text-indent: 22%; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 72px; align-items: start; }
.duo figure:nth-child(2) { margin-top: 88px; }
.duo__img { aspect-ratio: 3 / 4; background: var(--photo); overflow: hidden; --s: 1; }
.duo__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s)); transform-origin: 50% 62%; }
.duo figcaption { margin-top: 12px; }
.duo__third { display: none; }

/* Кроки */
.steps li { display: grid; grid-template-columns: 72px 1fr; gap: 8px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.steps li:first-child { padding-top: 8px; }
.steps__n { font-size: var(--h2); line-height: 1; letter-spacing: var(--ls-head); }
.steps b { display: block; font-weight: 400; }
.steps p { margin-top: 4px; color: var(--muted); }

/* ---------- Сітка товарів ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px 16px; }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__link { display: flex; flex-direction: column; flex: 1; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.card__img { position: relative; aspect-ratio: 3 / 4; background: var(--photo); overflow: hidden; --s: 1; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--s)); transform-origin: 50% 62%; transition: transform 1.2s var(--ease); }
.card__tag { position: absolute; left: 12px; top: 12px; font-size: var(--t-meta); font-weight: 400; letter-spacing: var(--ls-caps); text-transform: uppercase; }
.card__line { margin-top: 14px; font-size: var(--t-meta); letter-spacing: var(--ls-caps); text-transform: uppercase; color: var(--accent); }
.card__name { margin-top: 18px; line-height: var(--lh-short); overflow-wrap: anywhere; }
.card__sub { margin-top: 4px; font-size: var(--t-small); line-height: var(--lh-short); color: var(--muted); }
.card__price { margin-top: 6px; font-size: var(--t-body); font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.card__add {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: var(--tap); margin-top: 20px; padding: 0;
  border: 0; border-top: 1px solid var(--line); background: none; border-radius: 0;
  font-size: var(--t-body); font-weight: 400; text-align: left; text-decoration: none; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: color .2s, border-color .2s;
}
.card__add i { font-style: normal; line-height: 1; transition: transform .35s var(--ease); }
@media (hover: hover) { .card__add:hover i { transform: rotate(90deg); } }
.card__add.is-done { color: var(--ok); border-color: var(--ok); }
.card__add.is-out { color: var(--off); border-color: var(--line); cursor: default; }
.card.is-out .card__img img { opacity: .5; }
/* Об'єми в плитці: вузька колонка — об'єм і ціна двома рядками, праворуч та сама кнопка «сумка +» */
.card__vars { display: grid; gap: 8px; margin-top: 16px; }
.card__vars .vb__label { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; padding: 6px 12px; line-height: 1.3; }
.plist--home { margin-top: 16px; }

/* Вкладки категорій */
.tabs { display: flex; gap: 24px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  flex: none; display: flex; align-items: center; min-height: 52px; margin-bottom: -1px;
  border-bottom: 1px solid transparent; text-decoration: none; font-size: var(--t-body); color: var(--muted); white-space: nowrap;
}
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }

/* ---------- Категорія ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 4px 10px; padding-top: 20px; font-size: var(--t-small); color: var(--muted); }
.crumbs a { color: var(--muted); text-underline-offset: 4px; }
.cathead { padding: 40px 0 48px; }
.cathead .lead { margin-top: 16px; }
.cathead sup { margin-left: 8px; font-size: var(--t-meta); letter-spacing: var(--ls-text); color: var(--muted); vertical-align: super; line-height: 0; }
.toolbar {
  position: sticky; top: calc(var(--hdr) + env(safe-area-inset-top)); z-index: 10;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 40px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.toolbar__count { font-size: var(--t-small); color: var(--muted); }
.toolbar .hbtn { margin-right: -10px; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ---------- Чипси ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center;
  min-height: 64px; min-width: 100px; padding: 8px 16px;
  border: 1px solid var(--line); border-radius: 0; background: transparent;
  font-size: var(--t-body); font-weight: 400; line-height: 1.25; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent; transition: background-color .2s, color .2s, border-color .2s;
}
.chip small { font-size: var(--t-small); font-weight: 400; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .75); }
.chip.is-out { color: var(--muted); }
.chip.is-out small { color: var(--off); }
.chip.is-out[aria-pressed="true"] small { color: #F2B8A8; }
.chip--check { flex-direction: row; align-items: center; min-height: 48px; min-width: 0; font-weight: 400; }
.chip--check input { position: absolute; opacity: 0; pointer-events: none; }
.chip--check:has(input:checked) { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip--check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Карточка товару ---------- */
.back { display: inline-flex; align-items: center; gap: 6px; min-height: var(--tap); font-size: var(--t-small); text-decoration: none; color: var(--ink); }
.pdp { padding-bottom: 120px; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; background: var(--photo); }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 3 / 4; overflow: hidden; }
.gallery__slide img { width: 100%; height: 100%; object-fit: cover; }
.gallery__meta { display: flex; align-items: center; padding: 16px var(--pad) 0; }
.gallery__count { font-size: var(--t-small); font-variant-numeric: tabular-nums; color: var(--muted); min-width: 52px; }
.gallery__bar { flex: 1; height: 1px; background: var(--line); }
.gallery__bar i { display: block; height: 1px; background: var(--ink); transition: transform .45s var(--ease); }

.pdp__info { padding-top: 36px; }
.pdp__name { margin-top: 14px; }
@media (min-width: 1000px) { .pdp__name { font-size: var(--h2); line-height: 1.08; } }   /* довгі назви не займають пів екрана */
.pdp__sub { margin-top: 16px; color: var(--muted); }
.pdp__price { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 28px; padding: 16px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.pdp__price strong { font-size: var(--t-body); font-weight: 400; font-variant-numeric: tabular-nums; }
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: var(--t-small); color: var(--ok); }
.stock::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stock.is-out { color: var(--off); }
.pdp__sku { margin-top: 8px; font-size: var(--t-small); color: var(--muted); }
.pdp__block { margin-top: 40px; }
.pdp__block .meta { margin-bottom: 12px; }
.pdp__ask { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 32px; padding: 6px 0 6px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pdp__desc { margin-top: 72px; }
.pdp__desc p { line-height: var(--lh-text); }
.pdp__desc p + p { margin-top: 16px; }
.pdp__desc.is-clamped p:not(:first-child) { display: none; }
.pdp__desc.is-clamped p:first-child { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }

.specs { margin-top: 72px; }
.specs .meta { padding-bottom: 12px; border-bottom: 1px solid var(--ink); }
.spec { display: grid; grid-template-columns: 38% 1fr; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.spec dt { font-weight: 400; color: var(--muted); }
.spec dd { color: var(--ink); }
.spec li + li { margin-top: 2px; }

.buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .94); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.buybar__price { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.buybar__price strong { font-size: var(--t-body); font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.buybar__price span { font-size: var(--t-small); color: var(--muted); white-space: nowrap; }
.buybar .btn { flex: 1; }

/* ---------- Плаваюча кнопка менеджера ---------- */
.fab {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 14;
  display: grid; place-items: center; width: 56px; height: 56px; padding: 0;
  border: 0; border-radius: 0; background: var(--ink); color: var(--bg); cursor: pointer;
  /* Тонкий світлий контур — щоб кнопку було видно і над темними блоками (категорії, футер) */
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 10px 28px -10px rgba(28, 29, 32, .45);
  transition: transform .45s var(--ease), opacity .3s;
}
.fab.is-hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }

/* ---------- Шари (dialog) ---------- */
dialog.layer {
  margin: 0; padding: 0; border: 0; max-width: none; max-height: none;
  width: 100%; height: 100dvh; background: var(--bg); color: var(--ink);
}
dialog.layer[open] { display: flex; flex-direction: column; animation: fade .3s var(--ease); }
dialog.layer--sheet { top: auto; margin: 0; height: auto; max-height: 92dvh; }
dialog.layer--sheet[open] { animation: rise .4s var(--ease); }
dialog.layer::backdrop { background: rgba(20, 21, 24, .5); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(48px); opacity: 0; } }
.layer__head {
  display: flex; align-items: center; gap: 8px; min-height: var(--hdr); padding: 6px 10px 6px var(--pad);
  padding-top: max(6px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line);
}
.layer--sheet .layer__head { padding-top: 6px; }
.layer__title { flex: 1; font-size: var(--t-meta); font-weight: 400; letter-spacing: var(--ls-caps); text-transform: uppercase; }
.layer__body { flex: 1; padding: 28px var(--pad) 36px; overflow-y: auto; }
.layer__foot {
  display: flex; gap: 10px; padding: 12px var(--pad) calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: var(--bg);
}
.layer__foot .btn--primary { flex: 1; justify-content: center; }

/* Меню — темне, на весь екран */
dialog.layer--dark { background: var(--ink); color: var(--on-dark); }
.layer--dark .layer__head { border-color: rgba(255, 255, 255, .16); }
.layer--dark .meta { color: var(--on-dark-muted); }
.layer--dark .index a, .layer--dark .row-link { border-color: rgba(255, 255, 255, .16); }
.layer--dark .index__n, .layer--dark .index__name sup { color: var(--on-dark-muted); }
.layer--dark .chip { border-color: rgba(255, 255, 255, .3); }
.layer--dark .chip small { color: var(--on-dark-muted); }
.layer--dark .chip[aria-pressed="true"] { background: var(--on-dark); color: var(--ink); }
.layer--dark .chip[aria-pressed="true"] small { color: var(--muted); }
.menu__group + .menu__group { margin-top: 48px; }
.menu__group > .meta { margin-bottom: 8px; }
.fontswitch { display: flex; gap: 8px; margin-top: 12px; }
.fontswitch .chip { flex: 1; min-width: 0; }

/* Пошук */
.search__field {
  flex: 1; min-width: 0; height: 52px; padding: 0 14px;
  border: 0; border-radius: 0; background: var(--band);
  font: inherit; font-size: var(--t-body); color: var(--ink); -webkit-appearance: none; appearance: none;
}
.search__field:focus { outline: none; background: var(--bg); box-shadow: inset 0 0 0 1px var(--ink); }   /* як поле пошуку на головній */
.search__hint { color: var(--muted); }
.srow { display: grid; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.srow__main { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.srow__main b { display: block; font-weight: 400; line-height: var(--lh-short); }
.srow__main small { display: block; margin-top: 4px; font-size: var(--t-small); color: var(--muted); }
.srow mark { background: none; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; text-decoration-skip-ink: none; }
.srow__tag { color: var(--accent); }
/* Об'єми: на телефоні — стовпчиком на всю ширину, як рядки таблиці; від 600 px — в рядок */
.srow__vars { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding-left: 70px; }
.finder__panel .srow__vars { padding-left: 0; }   /* у вузькому списку пошуку — на всю ширину */
.vb {
  display: flex; align-items: stretch; min-width: 0; min-height: 48px;
  border: 1px solid var(--line); font-size: var(--t-small); font-variant-numeric: tabular-nums; white-space: nowrap;
  transition: border-color .2s;
}
.vb__label { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 14px; }
.vb__label span + span { color: var(--muted); }
/* Дія — чорний квадрат з іконкою «сумка +», видно одразу */
.vb__add {
  flex: none; display: grid; place-items: center; width: 52px; padding: 0; margin: -1px -1px -1px 0;
  border: 0; background: var(--ink); color: var(--bg); cursor: pointer; transition: background-color .2s;
}
.vb__add svg { transition: transform .3s var(--ease); }
/* Уже в кошику: біла кнопка з галочкою, рамка блоку темна */
.vb__add--in { background: var(--bg); color: var(--ink); border-left: 1px solid var(--ink); margin: 0; }
@media (hover: hover) { .vb__add--in:hover { background: var(--band); } }
@media (hover: hover) { .vb__add:hover { background: #000; } .vb__add:hover svg { transform: scale(1.12); } }
.vb__add:active svg { transform: scale(.92); }
.vb.is-in { border-color: var(--ink); }
.vb.is-out { color: var(--muted); border-style: dashed; }
@keyframes vb-bump { 40% { transform: scale(1.3); } }
.vb.is-bump .vb__add svg { animation: vb-bump .4s var(--ease); }

/* Смужка кошика внизу екрана */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96); border-top: 1px solid var(--ink);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.cartbar[hidden] { display: none; }
.cartbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cartbar__sum { display: grid; line-height: 1.3; }
.cartbar__sum span { font-size: var(--t-small); color: var(--muted); }
.cartbar__sum strong { font-weight: 400; font-size: 20px; letter-spacing: var(--ls-head); font-variant-numeric: tabular-nums; }
.cartbar__go { min-height: 52px; gap: 14px; }
@keyframes cartbar-bump { 30% { background: var(--band); } }
.cartbar.is-bump { animation: cartbar-bump .6s var(--ease); }
html.has-cartbar body { padding-bottom: 76px; }
html.has-cartbar .fab { bottom: calc(92px + env(safe-area-inset-bottom)); }
html.has-cartbar .toast { bottom: calc(164px + env(safe-area-inset-bottom)); }
@media (prefers-reduced-motion: reduce) { .vb.is-bump .vb__add svg, .cartbar.is-bump { animation: none; } }
.vb.is-out .vb__label span + span { color: var(--off); }

/* Каталог у вигляді списку */
.plist { border-top: 1px solid var(--line); }
.plist .srow { padding: 18px 0; }
.toolbar__right { display: flex; align-items: center; gap: 4px; }
.viewsw { display: flex; }
.viewsw button {
  display: inline-flex; align-items: center; gap: 8px; min-height: var(--tap); padding: 0 10px;
  border: 0; background: none; color: var(--muted); cursor: pointer;
}
.viewsw button[aria-pressed="true"] { color: var(--ink); }
.viewsw button span { display: none; }
.zoom { display: block; flex: none; width: 54px; height: 72px; overflow: hidden; background: var(--photo); }
.zoom img { width: 100%; height: 100%; object-fit: cover; }

/* Фільтри */
.fgroup + .fgroup { margin-top: 32px; }
.fgroup legend { padding: 0; margin-bottom: 14px; font-weight: 400; color: var(--muted); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.range label { display: grid; gap: 6px; font-size: var(--t-small); color: var(--ink); }
/* Поля «Від / До» — у рамці, як поля оформлення замовлення */
.range input {
  width: 100%; height: 52px; padding: 0 14px; border: 1px solid #C9C8C4; border-radius: 0;
  background: var(--bg); font: inherit; font-size: var(--t-body); color: var(--ink); -webkit-appearance: none; appearance: none;
}
.range input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 40;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 16px; width: max-content; max-width: calc(100% - 32px);
  padding: 14px 18px; background: var(--ink); color: var(--bg); font-size: var(--t-small);
  transition: opacity .3s, transform .45s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: inherit; font-weight: 500; white-space: nowrap; text-underline-offset: 4px; }

/* ---------- Футер ---------- */
.ftr { margin-top: 128px; padding: 56px 0 calc(28px + env(safe-area-inset-bottom)); background: var(--ink); color: var(--on-dark); }
.ftr__lead { font-size: var(--h2); line-height: 1.08; letter-spacing: var(--ls-head); color: var(--on-dark); }
.ftr__lead em { font-style: normal; color: var(--on-dark-muted); }
.ftr__cols { display: grid; gap: 40px; margin-top: 56px; }
.ftr .meta { color: var(--on-dark-muted); margin-bottom: 8px; }
.ftr ul { border-top: 1px solid rgba(255, 255, 255, .16); }
.ftr li a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid rgba(255, 255, 255, .16); text-decoration: none; }
.ftr li svg { transition: transform .35s var(--ease); }
@media (hover: hover) { .ftr li a:hover svg { transform: translateX(6px); } }
.ftr__legal { margin-top: 40px; color: var(--on-dark-muted); font-size: var(--t-small); }
.proto-note { margin-top: 16px; padding: 12px 14px; border: 1px dashed rgba(255, 255, 255, .3); color: var(--on-dark-muted); font-size: var(--t-small); }
.ftr__mark { width: 100%; height: auto; margin-top: 64px; filter: brightness(0) invert(1); opacity: .95; }

/* ---------- Появи при прокрутці (лише якщо користувач не вимкнув анімацію) ---------- */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
/* Фото «відкривається» знизу вгору. Анімуємо саме img, а не контейнер — інакше IntersectionObserver не бачить обрізаний елемент */
.js-reveal [data-reveal="img"] { opacity: 1; transform: none; }
.js-reveal [data-reveal="img"] img { clip-path: inset(100% 0 0 0); transform: scale(calc(var(--s, 1) * 1.18)); transition: clip-path 1.2s var(--ease), transform 1.6s var(--ease); }
.js-reveal [data-reveal="img"].is-in img { clip-path: inset(0 0 0 0); transform: scale(var(--s, 1)); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Ефекти v4 ---------- */
/* Заголовки «виїжджають» по словах з-під маски */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em 0; margin: 0 -.04em -.12em 0; }
.w > span { display: inline-block; }
.js-reveal [data-reveal="words"] { opacity: 1; transform: none; }
.js-reveal [data-reveal="words"] .w > span { transform: translateY(112%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i, 0) * 70ms + var(--d, 0ms)); }
.js-reveal [data-reveal="words"].is-in .w > span { transform: none; }

/* Лінії над секціями промальовуються зліва направо */
.js-reveal [data-reveal="line"] { position: relative; border-top-color: transparent; }
.js-reveal [data-reveal="line"]::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 1.4s var(--ease); transition-delay: var(--d, 0ms);
}
.js-reveal [data-reveal="line"].is-in::before { transform: scaleX(1); }

/* Біжучий рядок з назвами лінійок */
.marquee { overflow: hidden; margin-top: 136px; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.marquee__track { display: flex; align-items: baseline; width: max-content; animation: marquee 32s linear infinite; }
.marquee span, .marquee i {
  font-size: var(--h2); line-height: 1.08;
  letter-spacing: var(--ls-head); white-space: nowrap;
}
.marquee span { padding: 0 .3em; }
.marquee i { font-style: normal; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Паралакс фото */
[data-parallax] img { translate: 0 var(--py, 0px); }
.duo__img { --s: 1; }

/* Плавна зміна фото при виборі об'єму */
.gallery__track.is-swap img { animation: swap .7s var(--ease); }
@keyframes swap { from { opacity: 0; transform: scale(1.24); } }

/* Шапка ховається при прокрутці вниз */
.hdr { transition: transform .5s var(--ease); }
.hdr-off .hdr { transform: translateY(-100%); }
.toolbar { transition: top .5s var(--ease); }
.hdr-off .toolbar { top: 0; }

/* ---------- Скляні плашки (у дусі iOS) ----------
   Скло лише на плашках поверх фото. Кнопки, панелі й шапка — як були. */
:root {
  --glass-bg: rgba(255, 255, 255, .55);
  --glass-blur: blur(18px) saturate(180%);
  --glass-rim: linear-gradient(135deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .25) 38%, rgba(255, 255, 255, .08) 62%, rgba(255, 255, 255, .7));
  --glass-shadow: inset 0 1px 1px rgba(255, 255, 255, .9), inset 0 -1px 1px rgba(0, 0, 0, .04), 0 8px 24px -8px rgba(28, 29, 32, .2), 0 1px 3px rgba(28, 29, 32, .06);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-bg: rgba(255, 255, 255, .92); }
}
.plate {
  position: absolute; z-index: 2; left: 10px; top: 10px;
  display: inline-flex; align-items: center; max-width: calc(100% - 20px);
  padding: 8px 12px; border-radius: 999px;
  border: 1px solid transparent;
  background: linear-gradient(var(--glass-bg), var(--glass-bg)) padding-box, var(--glass-rim) border-box;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  font-size: var(--t-meta); font-weight: 400; line-height: 1; letter-spacing: var(--ls-caps); text-transform: uppercase;
  color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.plate[hidden] { display: none; }
.plate--right { left: auto; right: 10px; }
.plate--bottom { top: auto; bottom: 12px; left: 12px; }
.plate--off { color: var(--off); }
.duo__img, .gallery { position: relative; }
.gallery .plate { top: 14px; left: 14px; }
.gallery .plate--right { left: auto; right: 14px; }
/* Плашка з'являється вже після того, як «відкрилося» фото */
.js-reveal [data-reveal="img"] .plate { opacity: 0; transition: opacity .6s var(--ease) .7s; }
.js-reveal [data-reveal="img"].is-in .plate { opacity: 1; }


/* ---------- Кошик і оформлення ---------- */
.cartpage { display: grid; grid-template-columns: minmax(0, 1fr); gap: 56px; }   /* minmax(0) — щоб поле промокоду не розпирало колонку на телефоні */
.clist { border-top: 0; }
/* Товар у кошику: фото | назва, артикул, сума | хрестик; під ними — рядок керування на всю ширину */
.citem {
  display: grid; grid-template-columns: 60px minmax(0, 1fr) 44px; column-gap: 16px; row-gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
}
.zoom--lg { width: 60px; height: 80px; }
.citem__name { display: block; line-height: var(--lh-short); text-decoration: none; }
@media (hover: hover) { .citem__name:hover { text-decoration: underline; text-underline-offset: 3px; } }
.citem__meta { margin-top: 4px; font-size: var(--t-small); color: var(--muted); }
.citem__sum { margin-top: 8px; font-size: 18px; letter-spacing: var(--ls-head); font-variant-numeric: tabular-nums; }
.citem__rm {
  display: grid; place-items: center; width: 44px; height: 44px; margin: -10px -10px 0 0; justify-self: end;
  padding: 0; border: 0; background: none; color: var(--muted); cursor: pointer;
}
.citem__rm svg { width: 20px; height: 20px; }
@media (hover: hover) { .citem__rm:hover { color: var(--off); } }
.citem__ctrl { grid-column: 1 / -1; display: flex; gap: 8px; }
/* Об'єм і кількість — однакова висота 48 px, однакова тонка рамка */
.sel { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; }
.sel select {
  width: 100%; height: 48px; padding: 0 40px 0 14px; border: 1px solid #C9C8C4; border-radius: 0; background: var(--bg);
  font: inherit; color: var(--ink); cursor: pointer; text-overflow: ellipsis; -webkit-appearance: none; appearance: none;
}
@media (hover: hover) { .sel select:hover { border-color: var(--ink); } }
.sel select:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.sel svg { position: absolute; right: 14px; pointer-events: none; color: var(--ink); }
.citem__vol { flex: 1; min-width: 0; display: flex; align-items: center; height: 48px; padding: 0 14px; background: var(--band); color: var(--ink); }
.cshare {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; margin-top: 24px; padding: 0 18px;
  border: 1px solid var(--ink); background: none; color: var(--ink); cursor: pointer;
}
@media (hover: hover) { .cshare:hover { background: var(--band); } }
.cshare__note { margin-top: 10px; font-size: var(--t-small); color: var(--muted); max-width: 44ch; }
.cshared { margin-bottom: 40px; padding: 24px var(--pad); margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); background: var(--ink); color: var(--on-dark); }
.cshared__title { font-size: 20px; letter-spacing: var(--ls-head); }
.cshared__list { margin-top: 12px; color: var(--on-dark-muted); font-size: var(--t-small); }
.cshared__list li + li { margin-top: 4px; }
.cshared__acts { display: grid; gap: 10px; margin-top: 20px; }
.cshared .btn--primary { background: var(--on-dark); color: var(--ink); }
.cshared .btn--outline { border-color: rgba(255, 255, 255, .5); color: var(--on-dark); }
@media (min-width: 600px) { .cshared__acts { display: flex; } .cshared { margin-left: 0; margin-right: 0; padding: 28px; } }
/* Лічильник: кнопки 48 px, число посередині; рамка — як у списку об'ємів */
.qty { flex: none; display: inline-flex; align-items: stretch; height: 48px; border: 1px solid #C9C8C4; }
.qty button { display: grid; place-items: center; width: 48px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.qty button:disabled { color: #C9C8C4; cursor: default; }
@media (hover: hover) { .qty button:not(:disabled):hover { background: var(--band); } }
.qty output { display: grid; place-items: center; min-width: 40px; font-variant-numeric: tabular-nums; }
.cempty { display: grid; justify-items: start; gap: 24px; padding: 16px 0 40px; }

.csum { padding: 24px var(--pad); margin: 0 calc(-1 * var(--pad)); background: var(--band); }
.csum dl { margin: 16px 0 0; }
.csum dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.csum dt { color: var(--muted); }
.csum dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.csum__total { border-bottom: 0 !important; padding-top: 16px !important; }
.csum__total dt { color: var(--ink); }
.csum__total dd { font-size: 22px; letter-spacing: var(--ls-head); }
.csum__total s { margin-right: 10px; font-size: var(--t-body); color: var(--muted); }
.csum__promo dt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.csum__promo dt b { font-weight: 500; color: var(--ink); letter-spacing: .04em; }
.csum__promo dd { color: var(--ok); }
.pcode__rm { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--muted); font-size: var(--t-small); cursor: pointer; }
.pcode__rm svg { width: 16px; height: 16px; }
@media (hover: hover) { .pcode__rm:hover { color: var(--off); } }
.csum__save { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ok); font-size: var(--t-small); }
.csum__save svg { width: 18px; height: 18px; }
/* Промокод: згорнутий рядок «Є промокод?», поле з кнопкою — як у пошуку */
.pcode { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.pcode__toggle { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0; border: 0; background: none; color: var(--ink); cursor: pointer; }
.pcode__toggle span { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.pcode__form { padding-bottom: 4px; }
.pcode__field { display: flex; }
.pcode__field input {
  flex: 1; min-width: 0; height: 52px; padding: 0 14px; border: 1px solid #C9C8C4; border-right: 0; border-radius: 0; background: var(--bg);
  font: inherit; color: var(--ink); text-transform: uppercase; letter-spacing: .04em; -webkit-appearance: none; appearance: none;
}
.pcode__field input::placeholder { text-transform: none; letter-spacing: var(--ls-text); color: var(--muted); }
.pcode__field input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pcode__field .btn { flex: none; min-height: 52px; }
.pcode__field.is-bad input { border-color: var(--off); box-shadow: inset 0 0 0 1px var(--off); }
.pcode .field__err { display: block; margin-top: 6px; }

.checkout { display: grid; gap: 20px; margin-top: 40px; }
.checkout__sec { margin-top: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--t-small); color: var(--ink); }
.field input {
  height: 52px; padding: 0 14px; border: 1px solid #C9C8C4; border-radius: 0; background: var(--bg);
  font: inherit; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.field input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field__hint { font-size: var(--t-small); color: var(--muted); }
.field__err { font-size: var(--t-small); color: var(--off); }
.field.is-bad input { border-color: var(--off); box-shadow: inset 0 0 0 1px var(--off); }
.field.is-bad .field__hint { display: none; }
.checkout__pay { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--ink); }
.checkout__pay svg { flex: none; margin-top: 1px; }
.checkout__go { justify-content: space-between; margin-top: 8px; }
@media (min-width: 1000px) {
  .cartpage { grid-template-columns: minmax(0, 1.35fr) minmax(360px, 1fr); column-gap: 80px; align-items: start; }
  .cside { position: sticky; top: calc(var(--hdr) + 24px); }
  .csum { margin: 0; padding: 28px; }
}

/* ---------- Ширші екрани (адаптація) ---------- */
@media (min-width: 600px) {
  :root { --pad: 32px; }
  .srow__vars { flex-direction: row; flex-wrap: wrap; }
  .citem__ctrl { grid-column: 2 / -1; max-width: 420px; }
  .finder__panel .srow__vars { padding-left: 70px; }
  .vb__label { justify-content: flex-start; }
  .promo__slide { grid-template-rows: none; grid-template-columns: 1fr 1fr; height: 440px; }
  .promo__text { padding-top: 32px; padding-bottom: 80px; }
  .promo__img::before { right: auto; bottom: 0; width: 30%; height: auto; background: linear-gradient(90deg, var(--promo-bg), transparent); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 96px 24px; }
  .duo { gap: 20px; }
  .ftr__cols { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  :root { --pad: 48px; --hdr: 72px; }
  .hdr__logo img { height: 40px; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 120px 32px; }
  .finder__field { padding: 10px 10px 10px 28px; gap: 18px; }
  .finder__input { height: 60px; font-size: var(--h3); letter-spacing: var(--ls-head); }
  .finder__field svg { width: 26px; height: 26px; }
  .finder__kbd { display: inline-block; }
  .finder__go { width: auto; min-height: 60px; padding: 0 28px; gap: 16px; }
  .finder__go span { display: inline; }
  .finder__panel { padding: 4px 28px 12px; }
  .srow { grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 32px; }
  .srow__vars { padding-left: 0; justify-content: flex-end; }
  .viewsw button span { display: inline; }
  .promo__slide { height: 500px; }
  .promo__text { padding-top: 40px; padding-bottom: 96px; }
  .promo__title { font-size: var(--h1); }
  .promo__desc { margin-top: 20px; }
  .promo__cta { margin-top: 36px; }
  .promo__dots { bottom: 36px; }
  .section { padding-top: 200px; }
  .section--band { margin-top: 136px; padding: 72px 0 96px; }
  .stitle { max-width: 18ch; margin-bottom: 56px; }
  .index { display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .index a:nth-child(2) { border-top: 0; }
  .statement { max-width: 24ch; }
  .duo { grid-template-columns: 1fr 1fr 1fr; }
  .duo__third { display: block; }
  .duo figure:nth-child(3) { margin-top: 40px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
  .steps li { grid-template-columns: 1fr; padding-top: 8px; border-bottom: 0; }
  .steps__n { font-size: var(--h1); margin-bottom: 24px; }
  .pdp { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); column-gap: 80px; padding-bottom: 40px; }
  .pdp > .back { grid-column: 1 / -1; }
  .gallery { align-self: start; position: sticky; top: calc(var(--hdr) + 20px); }
  .gallery__meta { padding-left: 0; padding-right: 0; }
  .pdp__info { padding-top: 0; }
  .buybar { position: static; padding: 24px 0 0; border: 0; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .buybar__price { display: none; }
  .fab { right: 32px; bottom: 32px; }
  .bleed { margin-left: 0; margin-right: 0; }
  .ftr__cols { grid-template-columns: 2fr 1fr 1fr; }
}
