/* ============================================================
   NUELLE — design prototype
   Токени тримаються в синхроні з DESIGN.md
   ============================================================ */

:root {
  --paper: #FBFAF8;
  --paper-tint: #F1EDE8;
  --ink: #141210;
  --ink-soft: #6E6862;
  --line: #DFD9D2;
  --ink-mid: #4A4540;

  /* Логотип/wordmark — тільки латиниця («Nuelle»). Ogg покриває лише U+0020–007E,
     тому кирилиця автоматично падає в Oranienbaum (наступний у стеку). */
  --font-logo: "Ogg", "Oranienbaum", Georgia, serif;
  /* Вага Ogg для всієї латиниці. 400 = Regular. */
  --logo-weight: 400;
  --font-display: "Oranienbaum", Georgia, serif;
  --font-accent: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Golos Text", system-ui, sans-serif;
  --font-hand: "Marck Script", cursive;

  --pad: clamp(16px, 4vw, 64px);
  --container: min(1560px, 100vw - var(--pad) * 2);
  --section: clamp(60px, 8vh, 120px);
  --header-h: 64px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

/* clip, а не hidden: не створює scroll-контейнер, тому position: sticky далі працює */
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }
/* сторінка скролиться елементом <html>, тож overflow на body її не тримає */
html:has(body.is-locked) { overflow: hidden; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
/* padding: 0 обовʼязково — UA-стиль дає кнопці 1px 6px, і там, де кнопка є
   обгорткою навколо картинки, це читається як випадкові щілини у верстці */
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--ink); color: var(--paper); }

.container { width: var(--container); margin-inline: auto; }

/* Хлібні крихти. Правило спільне, а не в межах .page-head: та сама розмітка
   стоїть і в колонці картки товару, де секційного контейнера немає. */
.crumbs { font-size: 12px; color: var(--ink-soft); letter-spacing: 0.04em; }
.crumbs a { transition: color 0.2s ease; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* --- типографічні примітиви --- */

.u-eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.u-it { font-family: var(--font-accent); font-style: italic; font-weight: 400; }

/* Амперсанд у назві бренду.
   У файлі Ogg знака "&" немає, тому його несе окремий шрифт — Tangerine.
   Це каліграфічна лігатура "Et", як у референсі, і справжній гліф:
   різкий на будь-якому кеглі, без розтрового джерела. */
.amp {
  font-family: "Tangerine", cursive;
  font-weight: 400;
  font-style: normal;
  font-size: 1.16em;
  line-height: 0;
  margin-inline: 0.0em -0.09em;
  flex: 0 0 auto;
}
.u-hand { font-family: var(--font-hand); color: var(--ink); }

.section-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0;
}
.section-title .u-it { font-size: 1.08em; letter-spacing: 0; }

/* Латинський заголовок — набирається Ogg. Курсив теж Ogg (у файлі є italic). */
.section-title--lat { font-family: var(--font-logo); font-weight: var(--logo-weight); letter-spacing: -0.01em; }
.section-title--lat em { font-style: italic; font-weight: var(--logo-weight); }


/* ── Ogg (Sharp Type) ─────────────────────────────────────────
   ⚠️ У цій збірці лежить урізана демо-версія: рівно 66 знаків —
   A–Z, a–z, 0–9, крапка, пробіл. НЕМАЄ кирилиці, коми, апострофа,
   амперсанда, дефіса, лапок, діакритики.
   Тому Ogg стоїть ТІЛЬКИ на --font-logo (слово «Nuelle»),
   а всі заголовки українською йдуть через --font-display.
   Повну ліцензійну версію (Latin, 300+ мов) — з sharptype.co.
   ──────────────────────────────────────────────────────────── */

@font-face {
  font-family: "Ogg";
  src: url("../fonts/ogg-thin.woff2") format("woff2");
  font-weight: 100;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E;
}
@font-face {
  font-family: "Ogg";
  src: url("../fonts/ogg-thin-italic.woff2") format("woff2");
  font-weight: 100;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0020-007E;
}
@font-face {
  font-family: "Ogg";
  src: url("../fonts/ogg-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E;
}
@font-face {
  font-family: "Ogg";
  src: url("../fonts/ogg-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E;
}
@font-face {
  font-family: "Ogg";
  src: url("../fonts/ogg-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E;
}
@font-face {
  font-family: "Ogg";
  src: url("../fonts/ogg-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0020-007E;
}

/* ============================================================
   Прелоадер
   ============================================================ */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
}
.preloader__word {
  font-family: var(--font-logo);
  font-weight: var(--logo-weight);
  font-size: clamp(1.9rem, 10vw, 9rem);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  overflow: hidden;
}
/* Початковий зсув літер задає JS у пікселях: у амперсанда line-height 0,
   тож відсоткові трансформації для нього дорівнюють нулю. */
.preloader__word span { display: block; }
.preloader__count {
  position: absolute;
  right: var(--pad);
  bottom: var(--pad);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: rgba(251, 250, 248, 0.55);
}
.preloader__bar {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  bottom: calc(var(--pad) + 26px);
  height: 1px;
  background: rgba(251, 250, 248, 0.18);
}
.preloader__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--paper);
}

/* ============================================================
   Кастомний курсор
   ============================================================ */

/* Системна стрілка ховається лише коли кастомний курсор реально працює
   (клас вішає cursor() — не на тачі й не при reduced-motion). */
body.has-cursor, body.has-cursor * { cursor: none !important; }

.cursor, .cursor-ring {
  position: fixed;
  top: 0; left: 0;
  pointer-events: none;
  z-index: 300;
  border-radius: 50%;
  mix-blend-mode: difference;
}
/* поки кастомний курсор вимкнено (лайтбокс, попап) — його елементів не має бути видно */
body:not(.has-cursor) .cursor, body:not(.has-cursor) .cursor-ring { display: none; }
.cursor { width: 6px; height: 6px; background: #fff; margin: -3px 0 0 -3px; }
.cursor-ring {
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  display: grid;
  place-items: center;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}
.cursor-ring span { opacity: 0; transform: scale(0.6); }
.cursor-ring.is-media { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: rgba(255,255,255,0.08); }
.cursor-ring.is-media span { opacity: 1; transform: scale(1); }

@media (hover: none), (prefers-reduced-motion: reduce) {
  /* Системна стрілка ховається лише коли кастомний курсор реально працює
   (клас вішає cursor() — не на тачі й не при reduced-motion). */
body.has-cursor, body.has-cursor * { cursor: none !important; }

.cursor, .cursor-ring { display: none; }
}

/* ============================================================
   Хедер
   ============================================================ */

.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding-inline: var(--pad);
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: border-color 0.4s var(--ease);
}
.header.is-stuck { border-bottom-color: var(--line); }

.header__nav, .header__utils {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.header__utils { justify-content: flex-end; }

.header a, .header button { position: relative; }
.header a::after, .menu-toggle::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.header a:hover::after, .menu-toggle:hover::after { transform: scaleX(1); transform-origin: left; }

.header__mark {
  font-family: var(--font-logo);
  font-weight: var(--logo-weight);
  font-size: 19px;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.header.is-stuck .header__mark { opacity: 1; transform: none; pointer-events: auto; }
/* На головній логотип виїжджає на скролі — угорі вже стоїть гігантський wordmark.
   На внутрішніх сторінках дублювати нічого, тож він видимий одразу. */
body:not(.is-home) .header__mark { opacity: 1; transform: none; pointer-events: auto; }

.cart-count { font-variant-numeric: tabular-nums; }

.header__hide-sm { display: inline; }
@media (max-width: 720px) { .header__hide-sm { display: none; } }

/* ============================================================
   Фулскрін-меню
   ============================================================ */

.menu {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  grid-template-rows: var(--header-h) 1fr auto;
  padding-inline: var(--pad);
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.8s var(--ease);
  pointer-events: none;
}
.menu.is-open { clip-path: inset(0 0 0 0); pointer-events: auto; }

.menu__top { display: flex; align-items: center; justify-content: space-between; font-size: 13px; }
.menu__body { display: flex; align-items: center; }
.menu__list { list-style: none; margin: 0; padding: 0; }
.menu__list li { overflow: hidden; }
.menu__list a {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 9vw, 7rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  transform: translateY(110%);
  transition: color 0.3s var(--ease);
}
.menu__list a:hover { color: rgba(251, 250, 248, 0.5); }
.menu__list em { font-family: var(--font-accent); font-size: 1.06em; }
.menu__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding-block: 28px;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(251, 250, 248, 0.55);
}

/* ============================================================
   Hero — гігантський wordmark + фул-блід кадр
   ============================================================ */

.hero { padding-top: var(--header-h); position: relative; }

.hero__word {
  font-family: var(--font-logo);
  font-weight: var(--logo-weight);
  font-size: clamp(2.4rem, 16.6vw, 17rem);
  line-height: 0.9;
  letter-spacing: -0.025em;
  text-align: center;
  margin: clamp(10px, 2vh, 28px) 0 clamp(14px, 3vh, 36px);
  padding-inline: var(--pad);
  display: flex;
  justify-content: center;
  align-items: baseline;
  overflow: hidden;
}
.hero__word span { display: block; will-change: transform; }

.hero__media {
  position: relative;
  height: clamp(360px, 62vh, 760px);
  overflow: hidden;
  background: var(--paper-tint);
}
.hero__media img {
  width: 100%;
  /* запас під паралакс: кадр вищий за рамку, різниця — це хід анімації.
     134% дає 29.5% ходу замість колишніх 16.5% — рух нарешті видно,
     і лишається ~25px перекриття на краях, щоб ніде не вилізла рамка. */
  height: 134%;
  object-fit: cover;
  /* Кадр широкий (1712x919), у вертикальний екран він влазить лише вузькою
     смугою — по горизонталі відрізається дві третини. 24% ставить вікно кадру
     на голову й корпус; при 50% на телефоні лишались самі стегна. */
  object-position: 24% 30%;
  will-change: transform;
}

.hero__card {
  position: absolute;
  right: clamp(16px, 5vw, 84px);
  bottom: clamp(16px, 5vh, 64px);
  width: clamp(180px, 20vw, 240px);
  background: var(--paper);
  padding: 10px 10px 0;
}
.hero__card img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 40%; width: 100%; }
.hero__card figcaption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding: 10px 2px 12px;
  font-size: 12px;
  letter-spacing: 0.03em;
}
.hero__card figcaption span:last-child { white-space: nowrap; }
.hero__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0 0;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   Біжучий рядок
   ============================================================ */

.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  margin-top: clamp(40px, 7vh, 90px);
  padding-block: clamp(14px, 2.4vh, 26px);
  display: flex;
  white-space: nowrap;
}
.marquee__row { display: flex; flex-shrink: 0; will-change: transform; }
.marquee span {
  font-family: var(--font-logo);
  font-weight: var(--logo-weight);
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  line-height: 1;
  padding-inline: 0.42em;
  display: flex;
  align-items: baseline;
}
.marquee span::after {
  content: "✦";
  font-size: 0.32em;
  color: var(--ink-soft);
  margin-left: 1.3em;
  /* span вирівняний по baseline — зірочку центруємо окремо по висоті рядка */
  align-self: center;
  line-height: 1;
}
.marquee em { font-family: var(--font-logo); font-weight: var(--logo-weight); font-style: italic; }

/* ============================================================
   Рейка бестселерів
   ============================================================ */

.rail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-block: var(--section) clamp(24px, 4vh, 48px);
}
.rail-head .u-eyebrow { padding-bottom: 10px; }

.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(230px, 1fr);
  gap: clamp(12px, 1.6vw, 26px);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 12px;
  scrollbar-width: thin;
}
.rail > * { scroll-snap-align: start; }
@media (min-width: 1100px) { .rail { grid-auto-columns: minmax(0, 1fr); overflow: visible; } }

/* ============================================================
   Картка товару
   ============================================================ */

.card { position: relative; }
.card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-tint);
}
.card__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease);
}
.card:hover .card__media img { transform: scale(1.05); }

.card__flag {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  background: var(--paper);
  padding: 4px 9px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.card__flag--sale { background: var(--ink); color: var(--paper); }

.card__quick {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: rgba(251, 250, 248, 0.94);
  backdrop-filter: blur(6px);
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.card:hover .card__quick, .card:focus-within .card__quick { transform: none; }
.card__quick .u-eyebrow { flex: 1 0 100%; margin-bottom: 2px; }

/* На тачі ховера немає, а iOS ще й залипає на :hover після першого тапу:
   панель виїжджала й накривала посилання на товар, тож перейти в картку
   ставало неможливо — працювали лише кнопки розмірів.
   Тому тут вона видима одразу, вузькою смужкою внизу кадру й без підпису:
   решта фото лишається клікабельною. */
@media (hover: none), (max-width: 720px) {
  .card__quick {
    transform: none;
    padding: 8px;
    gap: 5px;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .card__quick::-webkit-scrollbar { display: none; }
  .card__quick .u-eyebrow { display: none; }
  .card__quick .size-chip { flex: 0 0 auto; min-width: 34px; padding: 6px 7px; }
}

.size-chip {
  min-width: 40px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.04em;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.size-chip:hover, .size-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.size-chip[disabled] { opacity: 0.32; cursor: not-allowed; text-decoration: line-through; }

.card__info {
  display: grid;
  grid-template-columns: 1fr auto;
  /* назва й ціна вирівнюються по базовій лінії — тоді ціну можна міняти в розмірі,
     не підганяючи їй відступ зверху вручну */
  align-items: baseline;
  gap: 0 12px;
  padding-top: 12px;
}
.card__name {
  font-family: var(--font-logo);
  font-weight: var(--logo-weight);
  font-size: clamp(19px, 1.5vw, 23px);
  line-height: 1.15;
  letter-spacing: 0;
}
.card__desc { grid-column: 1 / -1; font-size: 12px; color: var(--ink-soft); padding-top: 2px; }
/* Ціна росте разом із карткою: на телефоні лишається 14px, на десктопі
   доходить до 18px — поруч із назвою в 23px дрібний прайс губився. */
.card__price {
  font-size: clamp(14px, 1.15vw, 18px);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.card__price s { color: var(--ink-soft); margin-right: 6px; font-size: clamp(13px, 0.95vw, 15px); }
.card__price em { font-style: normal; }
.card__dots { display: flex; gap: 5px; grid-column: 1 / -1; padding-top: 6px; }
.card__dots i { width: 9px; height: 9px; border-radius: 50%; border: 1px solid var(--line); }

/* ============================================================
   Плитки категорій
   ============================================================ */

.tiles {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  align-items: start;
  gap: clamp(12px, 1.6vw, 26px);
  padding-top: var(--section);
}
.tile { position: relative; overflow: hidden; aspect-ratio: 4 / 5; }
.tile:nth-child(2) { margin-top: clamp(30px, 8vw, 130px); }
@media (max-width: 860px) {
  .tiles { grid-template-columns: 1fr; }
  .tile:nth-child(2) { margin-top: 0; }
}
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile:hover img { transform: scale(1.06); }
.tile figcaption {
  position: absolute;
  left: 40px;
  bottom: 34px;
  color: var(--paper);
  font-family: var(--font-logo);
  font-weight: var(--logo-weight);
  font-style: normal;
  font-size: 3.4rem;
  line-height: 1;
  text-shadow: 0 1px 30px rgba(0, 0, 0, 0.35);
}

/* ============================================================
   Типографічний маніфест
   ============================================================ */

.manifest {
  /* Маніфест — пауза між блоками, тож простір навколо нього має читатись однаково
     з обох боків. Знизу трохи менше за виміром: під ним заголовок, у якого власний
     інтерліньяж над великими літерами, і оптично низ виглядає просторішим.
     Секція розпродажу нижче свого верхнього відступу не додає — інакше вони
     складались би, і низ виходив удвічі більшим за верх. */
  padding-block: calc(var(--section) * 1.6) calc(var(--section) * 1.4);
  text-align: center;
}
.manifest__type {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6.4vw, 5.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
}
.manifest__type em { font-family: var(--font-accent); font-style: italic; font-size: 1.1em; }
.manifest__type .u-hand { font-size: 0.92em; display: inline-block; transform: rotate(-4deg); }
.manifest__type i { display: inline-block; will-change: transform, opacity; font-style: inherit; }
.manifest__note {
  max-width: 46ch;
  margin: clamp(24px, 4vh, 48px) auto 0;
  color: var(--ink-soft);
  font-size: 15px;
}

/* ============================================================
   Стрічка Instagram
   ============================================================ */

.ig { padding-top: var(--section); }
.ig__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  padding-top: clamp(20px, 3vh, 36px);
}
.ig__grid a { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: var(--paper-tint); }
.ig__grid img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.ig__grid a:hover img { transform: scale(1.08); }

/* ============================================================
   Кампейн-банер
   ============================================================ */

.campaign {
  position: relative;
  margin-top: var(--section);
  height: clamp(380px, 74vh, 720px);
  overflow: hidden;
}
/* Кадр горизонтальний: на десктопі він лягає майже цілком (по вертикалі
   зрізається 37px), тож там X ні на що не впливає. А на телефоні видно лише
   близько третини ширини — 80% ставить вікно на модель, при 50% лишались ноги. */
.campaign img { width: 100%; height: 116%; object-fit: cover; object-position: 80% 30%; }
.campaign__cap {
  position: absolute;
  z-index: 1;
  inset: auto 0 clamp(28px, 8vh, 90px);
  text-align: center;
  color: var(--paper);
  padding-inline: var(--pad);
}
.campaign__cap p {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.6vw, 4rem);
  line-height: 1.08;
  margin: 0 0 22px;
  text-shadow: 0 1px 40px rgba(0, 0, 0, 0.4);
}
.campaign__cap em { font-family: var(--font-accent); font-style: italic; font-size: 1.1em; }

/* --- кнопки --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  position: relative;
  overflow: hidden;
  transition: color 0.4s var(--ease);
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--paper);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: var(--ink); }
/* прозорий і світлий варіанти інвертуються в інший бік */
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost::before, .btn--light::before { background: var(--ink); }
.btn--ghost:hover, .btn--light:hover { color: var(--paper); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.btn[hidden] { display: none; }

/* ============================================================
   Футер
   ============================================================ */

.footer { padding-top: var(--section); }
/* auto-fit давав розсилці таку саму вузьку колонку, як спискам посилань,
   і поле вводу з кнопкою з неї вилазило. Тепер колонки задані явно:
   три вузькі під меню й одна широка під форму. */
.footer__cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: clamp(40px, 6vh, 80px);
  border-top: 1px solid var(--line);
  padding-top: clamp(28px, 4vh, 56px);
}
@media (min-width: 560px) {
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* розсилка на всю ширину, доки колонок мало */
  .footer__cols > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 1000px) {
  .footer__cols { grid-template-columns: repeat(3, minmax(120px, 0.75fr)) minmax(280px, 1.3fr); }
  .footer__cols > :last-child { grid-column: auto; }
}

.footer h4 { margin: 0 0 14px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.footer li a { transition: color 0.3s var(--ease); }
.footer li a:hover { opacity: 0.55; }

/* коли розсилка займає обидві колонки, лінія вводу на всю ширину виглядає розтягнутою */
.subscribe { display: flex; max-width: 460px; border-bottom: 1px solid var(--ink); }
/* без min-width: 0 інпут тримає власну «розмірну» ширину і ламає колонку */
.subscribe input { flex: 1; min-width: 0; border: 0; background: none; padding: 8px 0; outline: none; }
.subscribe input::placeholder { color: var(--ink-soft); }
.subscribe button { white-space: nowrap; padding: 8px 0 8px 12px; font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; }
.subscribe button:hover { opacity: 0.55; }
.footer__legal { font-size: 11px; color: var(--ink-soft); padding-top: 12px; }

.footer__word {
  font-family: var(--font-logo);
  font-weight: var(--logo-weight);
  font-size: clamp(2.4rem, 18vw, 18rem);
  line-height: 0.85;
  letter-spacing: -0.025em;
  text-align: center;
  padding-bottom: clamp(10px, 2vh, 30px);
  overflow: hidden;
}

/* ============================================================
   Кошик — висувна панель
   ============================================================ */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(20, 18, 16, 0.35);
  backdrop-filter: blur(3px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  z-index: 110;
  width: min(430px, 100vw);
  background: var(--paper);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(101%);
  transition: transform 0.6s var(--ease);
  box-shadow: -20px 0 60px rgba(20, 18, 16, 0.08);
}
.drawer.is-open { transform: none; }

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--line);
}
.drawer__head h3 { margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 400; }
.drawer__close { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.drawer__close:hover { opacity: 0.55; }

.drawer__body { overflow-y: auto; padding: 6px 26px; }
.drawer__empty { padding: 60px 0; text-align: center; color: var(--ink-soft); }
.drawer__empty p { font-family: var(--font-accent); font-style: italic; font-size: 22px; color: var(--ink); margin: 0 0 18px; }

.line-item {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.line-item img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: var(--paper-tint); }
.line-item__top { display: flex; justify-content: space-between; gap: 10px; }
.line-item__name { font-family: var(--font-logo); font-weight: var(--logo-weight); font-size: 19px; line-height: 1.15; }
.line-item__opt { font-size: 12px; color: var(--ink-soft); padding-top: 2px; }
.line-item__x { font-size: 13px; color: var(--ink-soft); line-height: 1; padding: 2px; }
.line-item__x:hover { color: var(--ink); }
.line-item__foot { display: flex; align-items: center; justify-content: space-between; padding-top: 12px; }

code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.92em; color: var(--ink); }
.line-item__price { font-size: 14px; font-variant-numeric: tabular-nums; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 2px; }
.qty button { width: 28px; height: 28px; line-height: 1; }
.qty button:hover { opacity: 0.55; }
.qty span { min-width: 22px; text-align: center; font-size: 13px; font-variant-numeric: tabular-nums; }

.drawer__foot { padding: 18px 26px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer__row { display: flex; justify-content: space-between; padding-bottom: 6px; font-size: 14px; }
.drawer__row--total { font-size: 17px; padding-block: 8px 16px; }
.drawer__row--total span:last-child { font-variant-numeric: tabular-nums; }
.drawer__note { font-size: 11px; color: var(--ink-soft); padding-top: 12px; text-align: center; }

/* ============================================================
   Каталог
   ============================================================ */

.page-head { padding-top: calc(var(--header-h) + clamp(30px, 6vh, 80px)); }
.page-head h1 { margin: 10px 0 0; }
.page-head__lead { max-width: 52ch; color: var(--ink-soft); padding-top: 18px; }

.filters {
  position: sticky;
  top: var(--header-h);
  z-index: 60;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: clamp(28px, 5vh, 56px);
  padding-block: 12px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.filters__sep { flex: 1; }
.chip {
  padding: 8px 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.06em;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}
.chip:hover { border-color: var(--ink); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.chip--count { border: 0; color: var(--ink-soft); pointer-events: none; }

/* Сходинка колонок 1 → 2 → 3 → 4. Сторінка вантажиться по 12 карток,
   а 12 ділиться на кожне з цих чисел — тому останній ряд завжди повний. */
.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(20px, 2.4vw, 40px) clamp(12px, 1.6vw, 26px);
  padding-top: clamp(28px, 5vh, 56px);
}
@media (min-width: 360px)  { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 720px)  { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.grid__none {
  grid-column: 1 / -1;
  padding-block: clamp(50px, 12vh, 120px);
  text-align: center;
  color: var(--ink-soft);
}
.u-link { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); }

/* ламана сітка: парні картки зміщені вниз (рахуємо тільки картки, не банер) */
@media (min-width: 1180px) {
  .grid > .card:nth-of-type(4n + 2) { transform: translateY(clamp(20px, 4vw, 64px)); }
  .grid > .card:nth-of-type(4n + 4) { transform: translateY(clamp(10px, 2vw, 32px)); }
}
.grid__wide {
  grid-column: 1 / -1;
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  margin-block: clamp(20px, 4vh, 60px);
}
@media (max-width: 700px) { .grid__wide { aspect-ratio: 4 / 5; } }
.grid__wide img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
/* Банер має два кадри — широкий і телефонний, тож картинка загорнута
   в <picture>. Без цього рядка обгортка лишається inline і img
   з height:100% немає від чого рахувати висоту. */
.grid__wide picture { display: block; width: 100%; height: 100%; }
.grid__wide::after, .campaign::after {
  content: "";
  position: absolute;
  inset: 40% 0 0;
  background: linear-gradient(to top, rgba(20, 18, 16, 0.62), rgba(20, 18, 16, 0));
  pointer-events: none;
}
/* Кампейн-кадр світлий — бетонна підлога й біла стіна. Стандартної вуалі
   не вистачає, щоб білий заголовок на ній читався, тож для цього блока
   вона глибша й починається вище. */
.campaign::after {
  inset: 22% 0 0;
  background: linear-gradient(to top,
    rgba(20, 18, 16, 0.88),
    rgba(20, 18, 16, 0.56) 46%,
    rgba(20, 18, 16, 0));
}
.grid__wide figcaption {
  z-index: 1;
  position: absolute;
  inset: auto var(--pad) clamp(20px, 4vh, 48px) var(--pad);
  color: var(--paper);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}
.grid__wide p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.4vw, 3rem);
  line-height: 1.05;
  max-width: 16ch;
  text-shadow: 0 1px 30px rgba(0, 0, 0, 0.4);
}
.grid__wide em { font-family: var(--font-accent); font-style: italic; font-size: 1.1em; }

.load-more { display: grid; place-items: center; padding-block: clamp(40px, 7vh, 90px); }

/* ============================================================
   Картка товару (PDP)
   ============================================================ */

.pdp {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 70px);
  padding-top: calc(var(--header-h) + clamp(20px, 4vh, 48px));
}
@media (min-width: 980px) { .pdp { grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); } }

/* Розмітка галереї — плоский список кадрів. Тут із нього збирається
   плитка 1 + 2 + 1: перший кадр на всю ширину, пара під ним, широкий четвертий.
   Решта кадрів у гриді не показується — вони живуть у лайтбоксі. Без проміжків:
   6-піксельні щілини між фото читались як випадковий баг верстки. */
.pdp__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.pdp__gallery figure { margin: 0; background: var(--paper-tint); overflow: hidden; }
.pdp__gallery img { width: 100%; height: 100%; object-fit: cover; }
/* Розкладку задають класи, а не :nth-child: у товару з вибором кольору
   в розмітці лежать кадри всіх кольорів, і порядковий номер у DOM більше
   не збігається з номером кадру в тому, що зараз показано. */
.pdp__gallery > figure { display: none; aspect-ratio: 4 / 5; }
.pdp__gallery > figure.is-lead { display: block; }
.pdp__gallery > figure.is-lead--wide { grid-column: 1 / -1; }
.pdp__gallery > figure.is-lead--last { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
/* Схований колір має лишатись схованим: [hidden] сам по собі слабший
   за правила з класом вище. */
.pdp__gallery > figure[hidden] { display: none; }
.pdp__gallery-dots { display: none; }

/* На вузьких блок покупки їде під галерею, і чотири плитки одна за одною
   перетворюються на довгу стрічку прокрутки. Тому там — звичайний слайдер
   на всю ширину екрана: свайп рідний, доти під ним. */
@media (max-width: 979px) {
  .pdp__gallery {
    display: flex;
    /* нуль: інакше прокрутка на clientWidth щоразу зсувається на ширину гепа */
    gap: 0;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .pdp__gallery::-webkit-scrollbar { display: none; }
  /* У стрічку йдуть усі кадри вибраного кольору — тут ліміту в чотири
     плитки немає, але кадри інших кольорів мають лишатись схованими. */
  .pdp__gallery > figure:not([hidden]) {
    display: block;
    flex: 0 0 100%;
    aspect-ratio: 4 / 5;
    scroll-snap-align: center;
  }
  .pdp__gallery > figure.is-lead--last { aspect-ratio: 4 / 5; }
  /* усі кадри вже в стрічці — лічильник «+N фото» тут не потрібен.
     Специфічність вища за базове правило: воно оголошене нижче в файлі. */
  .pdp__gallery .shot__more { display: none; }

  /* верхній відступ панелі покупки потрібен, лише коли вона стоїть поруч із галереєю
     і вирівнюється з її верхом. Під галереєю він просто відриває опис від фото. */
  /* специфічність вища: базове правило .pdp__side оголошене нижче в файлі */
  .pdp .pdp__side { padding-block: 0; }

  .pdp__gallery-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    padding-top: 14px;
  }
  .pdp__gallery-dots button {
    width: 7px; height: 7px;
    border-radius: 99px;
    background: var(--line);
    transition: width 0.35s var(--ease), background 0.35s var(--ease);
  }
  .pdp__gallery-dots button.is-active { width: 22px; background: var(--ink); }
}
/* Рекомендації відбиваємо від блоку покупки, щоб вони не читались як його частина.
   Крок той самий, що між сіткою каталогу й футером (clamp у .load-more):
   разом із padding у .rail-head дає ту саму вертикальну паузу на обох сторінках. */
.pdp__rec { padding-top: clamp(40px, 7vh, 90px); }

.pdp__side { padding-block: clamp(20px, 5vh, 70px) 0; align-self: start; }

.pdp__badge {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 3px 8px;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.pdp__title {
  font-family: var(--font-logo);
  font-weight: var(--logo-weight);
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 12px 0 10px;
}
.pdp__desc-line { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); padding-bottom: 14px; }
/* Ціна — головне число сторінки, тому вона крупна й у власній рамці,
   а не рядком дрібного тексту серед решти. */
.pdp__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-block: 2px 4px;
  font-variant-numeric: tabular-nums;
}
.pdp__price em {
  font-style: normal;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.01em;
}
.pdp__price s { color: var(--ink-soft); font-size: 17px; }
.pdp__desc { color: var(--ink-soft); max-width: 54ch; padding-block: 20px; }

.spec { display: grid; gap: 6px; padding-bottom: 24px; font-size: 14px; }
.spec div { display: grid; grid-template-columns: 150px 1fr; gap: 10px; }
.spec dt { color: var(--ink-soft); }
.spec dd { margin: 0; }

.stock { display: flex; align-items: center; gap: 8px; font-size: 13px; padding-bottom: 20px; }
.stock i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.stock.is-low i { background: transparent; box-shadow: inset 0 0 0 1.5px var(--ink); }

.sizes__head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; }
.sizes__head button { font-size: 12px; letter-spacing: 0.08em; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.sizes__head button:hover { color: var(--ink); }
.sizes__list { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 22px; }

.swatches { display: flex; gap: 8px; padding-bottom: 22px; }
.swatch { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.swatch.is-active { outline: 1px solid var(--ink); outline-offset: 3px; }

.pdp__actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding-bottom: 26px; }
.icon-btn {
  width: 52px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  transition: background 0.3s var(--ease), color 0.3s var(--ease);
}
.icon-btn:hover { background: var(--ink); color: var(--paper); }

.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 17px 0;
  text-align: left;
  font-size: 14px;
}
.acc__btn i { font-style: normal; font-size: 18px; line-height: 1; transition: transform 0.4s var(--ease); }
.acc__item.is-open .acc__btn i { transform: rotate(45deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.5s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel p { margin: 0 0 16px; color: var(--ink-soft); font-size: 14px; max-width: 54ch; }

.combo { display: grid; gap: 8px; padding-top: 26px; }
.combo__row {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  padding: 10px 14px 10px 10px;
  transition: border-color 0.3s var(--ease);
}
.combo__row:hover { border-color: var(--ink); }
.combo__row img { aspect-ratio: 1 / 1; object-fit: cover; width: 100%; background: var(--paper-tint); }
.combo__row b { font-family: var(--font-logo); font-weight: var(--logo-weight); font-size: 19px; line-height: 1.15; display: block; }
.combo__row small { color: var(--ink-soft); font-size: 13px; }
/* плюс центруємо гридом: у 20px гліфа «+» велика нижня напівпорожнеча,
   через яку він у звичайному потоці сидить нижче центра кола */
.combo__add {
  font-size: 18px;
  line-height: 1;
  width: 28px; height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.combo__add:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============================================================
   Чекаут
   ============================================================ */

.checkout {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 72px);
  padding-block: clamp(28px, 5vh, 56px) var(--section);
}
@media (min-width: 980px) { .checkout { grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr); } }

.fieldset { border: 0; margin: 0 0 clamp(28px, 4vh, 48px); padding: 0; }
.fieldset__head { display: flex; align-items: baseline; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.fieldset__num { font-family: var(--font-accent); font-style: italic; font-size: 28px; color: var(--ink-soft); line-height: 1; }
.fieldset legend { padding: 0; }
.fieldset__head h2 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }

.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 16px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  padding: 9px 0;
  outline: none;
  border-radius: 0;
  transition: border-color 0.3s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--ink); }
.field small { font-size: 12px; color: var(--ink-soft); }
.field small b { color: var(--ink); font-weight: 500; }

.opt-list { display: grid; gap: 8px; }
.opt {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  padding: 16px 18px;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.opt:hover { border-color: var(--ink); }
.opt.is-active { border-color: var(--ink); background: #fff; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__mark { width: 16px; height: 16px; border: 1px solid var(--line); border-radius: 50%; position: relative; }
.opt.is-active .opt__mark { border-color: var(--ink); }
.opt.is-active .opt__mark::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--ink); }
.opt b { font-weight: 400; font-size: 14px; display: block; }
.opt small { color: var(--ink-soft); font-size: 12.5px; }
.opt__price { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.summary { background: var(--paper-tint); padding: clamp(20px, 3vw, 32px); align-self: start; }
@media (min-width: 980px) { .summary { position: sticky; top: calc(var(--header-h) + 20px); } }
.summary h3 { margin: 0 0 18px; font-family: var(--font-display); font-weight: 400; font-size: 22px; }
.summary__items { display: grid; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.summary__item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; font-size: 13.5px; }
.summary__item img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.summary__item b { display: block; font-family: var(--font-logo); font-weight: var(--logo-weight); font-size: 18px; line-height: 1.15; }
.summary__item small { display: block; color: var(--ink-soft); font-size: 12px; }
.summary__rows { display: grid; gap: 8px; padding-block: 16px; font-size: 14px; }
.summary__rows div { display: flex; justify-content: space-between; gap: 12px; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; padding-block: 14px 20px; border-top: 1px solid var(--line); font-size: 19px; }
.summary__total b { font-weight: 400; font-variant-numeric: tabular-nums; }
.promo { display: flex; gap: 8px; padding-bottom: 18px; }
.promo input { flex: 1; border: 1px solid var(--line); background: #fff; padding: 11px 12px; outline: none; font-size: 13px; }
.promo button { padding-inline: 16px; border: 1px solid var(--ink); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.promo button:hover { background: var(--ink); color: var(--paper); }
.trust { display: grid; gap: 8px; padding-top: 18px; font-size: 12.5px; color: var(--ink-soft); }
.trust div { display: flex; gap: 9px; }
.trust b { color: var(--ink); font-weight: 500; }

.todo {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 8px;
  background: var(--paper-tint);
  color: var(--ink);
  border: 1px dashed var(--ink-soft);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ============================================================
   Reveal / доступність
   ============================================================ */

.reveal { clip-path: inset(0 0 100% 0); }
.rise { opacity: 0; transform: translateY(28px); }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { clip-path: none; }
  .rise { opacity: 1; transform: none; }
}


/* ============================================================
   Інформаційні сторінки
   ============================================================ */

.info {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 72px);
  padding-block: clamp(28px, 5vh, 56px) var(--section);
}
@media (min-width: 900px) { .info { grid-template-columns: 240px minmax(0, 1fr); } }

.info__nav { align-self: start; }
@media (min-width: 900px) { .info__nav { position: sticky; top: calc(var(--header-h) + 20px); } }
.info__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.info__nav a { font-size: 14px; color: var(--ink-soft); transition: color 0.3s var(--ease); }
.info__nav a:hover { color: var(--ink); }
.info__nav .is-current { color: var(--ink); }
.info__nav .is-current::before { content: "— "; }

.prose { max-width: 68ch; }
.prose h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  line-height: 1.1;
  margin: clamp(34px, 5vh, 56px) 0 14px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 15px; font-weight: 500; margin: 26px 0 8px; }
.prose p { margin: 0 0 16px; color: var(--ink-soft); }
.prose p strong, .prose li strong { color: var(--ink); font-weight: 500; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 20px; color: var(--ink-soft); }
.prose li { margin-bottom: 8px; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { opacity: 0.55; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: clamp(32px, 5vh, 56px) 0; }

.callout {
  border-left: 2px solid var(--ink);
  padding: 2px 0 2px 18px;
  margin: 0 0 20px;
}
.callout p:last-child { margin-bottom: 0; }

/* таблиці (розмірна сітка, тарифи) */
.table-wrap { overflow-x: auto; margin: 0 0 20px; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
table.t th, table.t td { text-align: left; padding: 11px 14px 11px 0; border-bottom: 1px solid var(--line); }
table.t th {
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft); font-weight: 500; border-bottom-color: var(--ink);
}
table.t td { font-variant-numeric: tabular-nums; }
table.t tr:last-child td { border-bottom: 0; }

/* ============================================================
   Про бренд
   ============================================================ */

.about-lead {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 3.2rem);
  line-height: 1.12;
  max-width: 20ch;
  margin: clamp(30px, 5vh, 60px) 0 0;
}
.about-lead em { font-family: var(--font-accent); font-style: italic; font-size: 1.08em; }

.about-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding-top: var(--section);
}
@media (min-width: 900px) { .about-split { grid-template-columns: 1fr 1fr; } }
.about-split--flip > figure { order: 2; }
@media (max-width: 899px) { .about-split--flip > figure { order: 0; } }
.about-split figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-tint); }
.about-split img { width: 100%; height: 100%; object-fit: cover; }

.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: clamp(20px, 3vw, 44px);
  padding-top: var(--section);
  border-top: 1px solid var(--line);
  margin-top: var(--section);
}
.facts b {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
}
.facts span { display: block; font-size: 13px; color: var(--ink-soft); padding-top: 8px; }

/* ============================================================
   Контакти
   ============================================================ */

.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: clamp(24px, 4vw, 56px);
  padding-block: clamp(30px, 5vh, 60px) var(--section);
}
.contacts h3 { margin: 0 0 12px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); font-weight: 500; }
.contacts p { margin: 0 0 6px; }
.contacts a { text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   404
   ============================================================ */

.e404 {
  min-height: 78vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-top: var(--header-h);
}
.e404__num {
  font-family: var(--font-logo);
  font-weight: var(--logo-weight);
  font-size: clamp(6rem, 26vw, 22rem);
  line-height: 0.82;
  letter-spacing: -0.03em;
}
.e404 p { max-width: 40ch; margin: 18px auto clamp(24px, 4vh, 40px); color: var(--ink-soft); }
.e404__links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ============================================================
   Дякуємо за замовлення
   ============================================================ */

.thanks { padding-block: clamp(40px, 8vh, 110px) var(--section); text-align: center; }
.thanks__mark { font-family: var(--font-accent); font-style: italic; font-size: clamp(2.4rem, 7vw, 5rem); line-height: 1; }
.thanks h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3.4vw, 2.6rem); margin: 18px 0 12px; }
.thanks > .container > p { max-width: 46ch; margin: 0 auto; color: var(--ink-soft); }
.thanks__box {
  max-width: 560px;
  margin: clamp(32px, 5vh, 56px) auto 0;
  border: 1px solid var(--line);
  padding: clamp(20px, 3vw, 32px);
  text-align: left;
}
.thanks__row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.thanks__row:last-of-type { border-bottom: 0; }
.thanks__row span:first-child { color: var(--ink-soft); }
.thanks__row b { font-weight: 400; font-variant-numeric: tabular-nums; }
.thanks__next { padding-top: 18px; margin-top: 12px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-soft); }

/* згода з офертою в чекауті */
.terms { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 13.5px; color: var(--ink-soft); }
.terms input { margin: 2px 0 0; accent-color: var(--ink); flex: 0 0 auto; }
.terms a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }


/* ============================================================
   Розділи вітрини, фільтри, сортування
   ============================================================ */

/* Верхній рівень — це різні полиці (білизна / піжами / купальники),
   а не фільтр усередині однієї видачі. Тому вони окремим рядом над фільтрами. */
.catnav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: clamp(18px, 3vw, 40px);
  padding-top: clamp(22px, 4vh, 44px);
  border-bottom: 1px solid var(--line);
}
.catnav a, .catnav span {
  position: relative;
  padding-bottom: 14px;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.9rem);
  line-height: 1;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.catnav a:hover { color: var(--ink); }
.catnav .is-current { color: var(--ink); }
.catnav .is-current::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--ink);
}
@media (max-width: 640px) {
  /* розділи теж стрічкою — щоб не займали два рядки */
  .catnav {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    /* інерція на iOS. Прив'язки (scroll-snap) свідомо немає: вона вирівнює
       перший пункт по краю скрол-порту, ігноруючи padding-inline, і стрічка
       сама зсувається на величину відступу — перше слово виглядає підрізаним. */
    -webkit-overflow-scrolling: touch;
  }
  .catnav::-webkit-scrollbar { display: none; }
  .catnav > * { flex: 0 0 auto; }

  /* Пальцем зручніше, коли ціль вища за сам текст. */
  .catnav a, .catnav span { padding-bottom: 16px; }
}

/* Край стрічки, за якою є ще пункти, розчиняється — це видима обіцянка,
   що там продовження. Класи ставить JS (nnEdgeFade), тож на прокрученій
   до кінця стрічці зайвого затухання немає.
   Працює і для розділів, і для категорій каталогу. */
.catnav.has-right,
.filters__cats.has-right {
  -webkit-mask-image: linear-gradient(to right, #000 78%, transparent);
  mask-image: linear-gradient(to right, #000 78%, transparent);
}
.catnav.has-left,
.filters__cats.has-left {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%);
  mask-image: linear-gradient(to right, transparent, #000 10%);
}
.catnav.has-left.has-right,
.filters__cats.has-left.has-right {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 10%, #000 78%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 10%, #000 78%, transparent);
}
}
.catnav .is-soon { pointer-events: none; }
.catnav .is-soon i {
  font-style: normal;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  vertical-align: middle;
  margin-left: 8px;
  padding: 3px 6px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.filters { display: block; }
.filters__cats, .filters__tools { display: flex; align-items: center; gap: 8px; }
.filters__cats { flex-wrap: wrap; }
.filters__tools { flex-wrap: wrap; justify-content: flex-end; padding-top: 8px; }
@media (min-width: 900px) {
  /* на десктопі обидва ряди вміщуються в один */
  .filters { display: flex; align-items: center; gap: 8px; }
  .filters__cats { flex: 1; }
  .filters__tools { padding-top: 0; }
}
/* на вузьких категорії — стрічка з горизонтальним скролом:
   інакше вони переносяться в три ряди і липка панель зʼїдає чверть екрана */
@media (max-width: 640px) {
  .filters__cats {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
  }
  .filters__cats::-webkit-scrollbar { display: none; }
  .filters__cats .chip { flex: 0 0 auto; }
  /* лічильник з'їдає рядок і штовхає сортування вниз — на вузьких він зайвий,
     результат і так видно в сітці, а «Скинути» показує, що фільтр активний */
  .filters__tools { justify-content: space-between; }
  .filters__tools .chip--count { display: none; }
}

.chip--ghost { border-style: dashed; }
.chip--reset { border: 0; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; }
.chip--reset:hover { color: var(--ink); }

/* Панель фасетів. Ховається за кнопкою: на 24 товарах вона зайва,
   на 700 — обовʼязкова, і краще мати місце під неї одразу. */
.facets {
  display: grid;
  gap: clamp(16px, 2.4vw, 32px);
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}
@media (min-width: 720px) { .facets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* авторський display б'є UA-правило [hidden]{display:none} — повертаємо його */
.facets[hidden] { display: none; }
.facets__group { display: grid; gap: 10px; align-content: start; }
.facets__group > div { display: flex; flex-wrap: wrap; gap: 6px; }
.facets .dot {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--line);
  position: relative;
}
.facets .dot.is-active { outline: 1px solid var(--ink); outline-offset: 3px; }

/* --- кастомний селект --- */

.select { position: relative; }
.select select {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  appearance: none;
}
.select__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  transition: border-color 0.3s var(--ease);
}
.select__btn:hover, .select.is-open .select__btn { border-color: var(--ink); }
.select__btn i {
  width: 7px; height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.select.is-open .select__btn i { transform: translateY(1px) rotate(-135deg); }

.select__list {
  list-style: none;
  margin: 0;
  position: absolute;
  z-index: 70;
  top: calc(100% + 6px);
  right: 0;
  min-width: 100%;
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: 4px;
  display: grid;
  gap: 1px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}
.select.is-open .select__list { opacity: 1; visibility: visible; transform: none; }
.select__list li {
  padding: 9px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.select__list li:hover { background: var(--paper-tint); }
.select__list li.is-active { background: var(--ink); color: var(--paper); }

/* --- «Показати ще» --- */

.load-more .btn.is-loading { pointer-events: none; opacity: 0.5; }
.load-more .btn.is-loading span::after {
  content: "";
  display: inline-block;
  width: 11px; height: 11px;
  margin-left: 10px;
  vertical-align: -1px;
  border: 1px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Сердечко «в бажане»
   ============================================================ */

.fav {
  display: grid;
  place-items: center;
  color: var(--ink);
  transition: transform 0.3s var(--ease), color 0.3s var(--ease);
}
.fav svg {
  width: var(--fav-size, 22px);
  height: var(--fav-size, 22px);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
  transition: fill 0.3s var(--ease);
}
.fav.is-on svg { fill: currentColor; }
.fav:active { transform: scale(0.88); }

/* на картці каталогу — правий верхній кут, зʼявляється на ховері,
   але якщо товар уже в бажаному, видно завжди */
.fav--card {
  --fav-size: 15px;
  position: absolute;
  z-index: 2;
  top: 10px; right: 10px;
  width: 34px; height: 34px;
  padding: 6px;
  background: rgba(251, 250, 248, 0.86);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(-4px);
}
.card:hover .fav--card,
.card:focus-within .fav--card,
.fav--card.is-on { opacity: 1; transform: none; }
@media (hover: none), (max-width: 720px) { .fav--card { opacity: 1; transform: none; } }

/* на сторінці товару — велика кнопка поруч із «Додати в кошик» */
.icon-btn.fav { --fav-size: 21px; }
.icon-btn.fav:hover { color: var(--paper); }

/* ============================================================
   Галерея товару: плитки + лайтбокс
   ============================================================ */

.shot {
  display: block;
  position: relative;
  width: 100%; height: 100%;
  overflow: hidden;
  background: var(--paper-tint);
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.shot:hover img { transform: scale(1.03); }

.shot__zoom {
  position: absolute;
  right: 12px; bottom: 12px;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  background: rgba(251, 250, 248, 0.88);
  backdrop-filter: blur(6px);
  border-radius: 50%;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.shot__zoom svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; }
.shot:hover .shot__zoom { opacity: 1; transform: none; }
@media (hover: none) { .shot__zoom { opacity: 1; transform: none; } }

/* «+6 фото» на останній плитці — решта кадрів живе в лайтбоксі,
   інакше сторінка з десятком знімків стає нескінченною стрічкою */
.shot__more {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(20, 18, 16, 0.42);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: 0.01em;
  transition: background 0.4s var(--ease);
}
.shot:hover .shot__more { background: rgba(20, 18, 16, 0.55); }

.lb {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  align-items: center;
  background: var(--paper);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.lb.is-open { opacity: 1; visibility: visible; }

.lb__bar {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--ink-soft);
}
.lb__num { font-variant-numeric: tabular-nums; }

.lb__stage {
  grid-row: 2;
  height: 100%;
  display: grid;
  place-items: center;
  overflow: hidden;
  cursor: zoom-in;
}
/* Збільшене фото можна тягнути, тож курсор має обіцяти саме це, а не «зменшити».
   Під час перетягування прибираємо перехід — інакше картинка тягнеться
   із затримкою й здається «гумовою». */
.lb__stage.is-zoomed { cursor: grab; }
.lb__stage.is-zoomed.is-dragging { cursor: grabbing; }
.lb__stage.is-zoomed img { will-change: transform; }
.lb__stage.is-dragging img { transition: none; }
/* Палець тягне саме фото, а не сторінку під ним. */
.lb__stage.is-zoomed img { touch-action: none; }
.lb__stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.45s var(--ease);
}

.lb__arrow {
  grid-row: 2;
  width: clamp(44px, 6vw, 76px);
  height: 100%;
  font-size: 18px;
  color: var(--ink-soft);
  transition: color 0.3s var(--ease);
}
.lb__arrow:hover { color: var(--ink); }
@media (max-width: 680px) { .lb__arrow { display: none; } }

.lb__thumbs {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  justify-content: center;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 14px var(--pad) 20px;
}
.lb__thumbs::-webkit-scrollbar { display: none; }
.lb__thumbs button {
  flex: 0 0 auto;
  width: clamp(44px, 5vw, 60px);
  aspect-ratio: 3 / 4;
  opacity: 0.42;
  transition: opacity 0.3s var(--ease);
}
.lb__thumbs button.is-active { opacity: 1; outline: 1px solid var(--ink); outline-offset: 2px; }
.lb__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Попап (розмірна сітка)
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 190;
  display: grid;
  place-items: center;
  padding: var(--pad);
  background: rgba(20, 18, 16, 0.45);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__panel {
  width: min(560px, 100%);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--paper);
  padding: clamp(22px, 3vw, 34px);
  transform: translateY(14px);
  transition: transform 0.45s var(--ease);
}
.modal.is-open .modal__panel { transform: none; }
.modal__head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 20px; }
.modal__head h3 { margin: 0; font-family: var(--font-display); font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 400; }
.modal__head button { font-size: 12px; letter-spacing: 0.1em; color: var(--ink-soft); }
.modal__head button:hover { color: var(--ink); }
.modal__note { color: var(--ink-soft); font-size: 13px; padding-block: 18px; }

.sizetable { width: 100%; border-collapse: collapse; font-size: 14px; }
.sizetable th, .sizetable td { padding: 11px 8px; text-align: left; border-bottom: 1px solid var(--line); }
.sizetable thead th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); font-weight: 400; }
/* Ogg має винос гліфа за межі ширини — без запасу праворуч «L» і «XL» підрізає */
.sizetable tbody th { font-family: var(--font-logo); font-weight: var(--logo-weight); font-size: 17px; white-space: nowrap; padding-right: 20px; }
.sizetable td { font-variant-numeric: tabular-nums; color: var(--ink-soft); }

/* ============================================================
   Карусель товарів
   ============================================================ */

.carousel { --cg: clamp(12px, 1.6vw, 26px); position: relative; }

.carousel__track {
  display: flex;
  gap: var(--cg);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * {
  flex: 0 0 auto;
  scroll-snap-align: start;
  width: calc((100% - 4 * var(--cg)) / 5);
}
@media (max-width: 1180px) { .carousel__track > * { width: calc((100% - 3 * var(--cg)) / 4); } }
@media (max-width: 900px)  { .carousel__track > * { width: calc((100% - 2 * var(--cg)) / 3); } }
/* На вузьких картка помітно більша: у неї має вміщатись рядок розмірів,
   який на телефоні показується постійно. Обрізаний край сусідньої
   так само підказує, що ряд гортається. */
@media (max-width: 680px)  { .carousel__track > * { width: calc((100% - 0.7 * var(--cg)) / 1.7); } }

.carousel.is-dragging .carousel__track { scroll-behavior: auto; cursor: grabbing; }
.carousel.is-dragging a, .carousel.is-dragging img { pointer-events: none; }

/* Підвал каруселі: доти зліва (скільки лишилось гортати), стрілки справа */
.carousel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: clamp(16px, 2.2vw, 28px);
}
.carousel__dots { display: flex; align-items: center; gap: 7px; }
.carousel__dots button {
  width: 7px; height: 7px;
  border-radius: 99px;
  background: var(--line);
  transition: width 0.35s var(--ease), background 0.35s var(--ease);
}
.carousel__dots button.is-active { width: 22px; background: var(--ink); }
.carousel__dots:empty { display: none; }
/* нічого гортати — підвал зайвий */
.carousel.is-static .carousel__foot { display: none; }

.carousel__nav { display: flex; gap: 6px; margin-left: auto; }
@media (max-width: 680px) { .carousel__nav { display: none; } }
.carousel__nav button {
  width: 42px; height: 42px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 15px; line-height: 1;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), opacity 0.3s;
}
.carousel__nav button:hover:not([disabled]) { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.carousel__nav button[disabled] { opacity: 0.28; pointer-events: none; }


/* ============================================================
   Сітка категорій
   ============================================================ */

.cats {
  display: grid;
  /* явні колонки: auto-fit давав 5+1 і сітка розсипалась */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 20px);
  padding-top: clamp(24px, 4vh, 44px);
}
@media (min-width: 720px)  { .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .cats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.cat {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  display: block;
  background: var(--paper-tint);
}
.cat img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.cat:hover img { transform: scale(1.06); }
.cat::after {
  content: "";
  position: absolute; inset: 45% 0 0;
  background: linear-gradient(to top, rgba(20,18,16,0.6), rgba(20,18,16,0));
}
.cat b {
  position: absolute;
  z-index: 1;
  left: clamp(14px, 1.6vw, 22px);
  bottom: clamp(12px, 1.6vh, 20px);
  color: var(--paper);
  font-family: var(--font-logo);
  font-weight: var(--logo-weight);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1;
}
.cat small {
  position: absolute; z-index: 1;
  left: clamp(14px, 1.6vw, 22px);
  top: clamp(12px, 1.6vh, 18px);
  color: var(--paper);
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 0.75;
}

/* ============================================================
   Блок «який у мене розмір»
   ============================================================ */

.sizehelp {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding-top: var(--section);
}
@media (min-width: 900px) { .sizehelp { grid-template-columns: 0.9fr 1.1fr; } }
.sizehelp figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--paper-tint); }
.sizehelp img { width: 100%; height: 100%; object-fit: cover; }
.sizehelp h2 { margin: 0 0 16px; }
.sizehelp p { color: var(--ink-soft); max-width: 46ch; margin: 0 0 14px; }
.sizehelp ol { margin: 0 0 26px; padding-left: 18px; color: var(--ink-soft); max-width: 46ch; }
.sizehelp li { margin-bottom: 7px; }
.sizehelp li b { color: var(--ink); font-weight: 500; }

/* ============================================================
   Бонус за підписку
   ============================================================ */

.bonus {
  margin-top: var(--section);
  background: var(--paper-tint);
  padding: clamp(32px, 6vw, 80px) clamp(20px, 4vw, 64px);
  text-align: center;
}
/* −10% — це і є повідомлення блока, тож воно й має бути найбільшим.
   Було навпаки: цифра дрібним світлим курсивом, а рядок під нею крупнішим —
   при гортанні око не чіплялось ні за що. Тепер цифра набрана дисплейним
   шрифтом на всю ширину уваги, а рядок пояснення пішов у курсив під неї. */
.bonus__mark {
  font-family: var(--font-display);
  font-size: clamp(4rem, 11vw, 9rem);
  line-height: 0.86;
  letter-spacing: -0.02em;
}
.bonus h2 {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 2.2vw, 1.75rem);
  margin: clamp(8px, 1.4vw, 16px) 0 12px;
}
.bonus p { max-width: 44ch; margin: 0 auto; color: var(--ink-soft); font-size: 14.5px; }
.bonus form { display: flex; gap: 8px; max-width: 430px; margin: clamp(22px, 4vh, 34px) auto 0; }
.bonus input {
  flex: 1; border: 1px solid var(--line); background: var(--paper);
  padding: 13px 14px; outline: none; font-size: 14px;
}
.bonus input:focus { border-color: var(--ink); }
.bonus small { display: block; padding-top: 12px; font-size: 12px; color: var(--ink-soft); }
