/* ==========================================================================
   OFFDAY — стилі сайту
   ========================================================================== */

/* Шрифт Inter лежить на нашому сайті (assets/fonts/), а не вантажиться з Google Fonts (2026-11-14):
   так браузер покупця не звертається до серверів Google і не передає їм IP-адресу (вимога GDPR;
   у Німеччині за підключення Google Fonts з їхніх серверів штрафували). Файли — ті самі, що віддавав
   Google Fonts (Inter v20, змінна товщина 400–700), розбиті за алфавітами: браузер вантажить лише
   потрібні (unicode-range). */
/* cyrillic-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-cyrillic-ext.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-greek-ext.woff2') format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-greek.woff2') format('woff2');
  unicode-range: U+0370-0377, U+037A-037F, U+0384-038A, U+038C, U+038E-03A1, U+03A3-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-vietnamese.woff2') format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Темна тема «як на банері»: майже чорний фон, хромовані кільця й зірки (body::before),
     світлий текст, крижано-блакитний хром як у логотипі */
  color-scheme: dark;
  --color-bg: #07080c;          /* фон банера */
  --color-fg: #f2f5fb;          /* основний текст */
  --color-on-fg: #07080c;       /* текст на світлих кнопках */
  --color-muted: rgba(226, 233, 247, 0.62);
  --color-border: rgba(214, 226, 255, 0.14);
  --color-border-strong: rgba(214, 226, 255, 0.28);
  --color-surface: rgba(17, 20, 29, 0.78);   /* картки (розмірна сітка, відгуки) */
  --color-surface-solid: #10131b;            /* меню, кошик, пошук, вікна */
  --color-field: #121419;                    /* поля форм, кнопки розмірів (непрозорі — зірки фону не перетинають текст) */
  --color-media: #0b0d13;                    /* фон під фото товару */
  --color-chrome: #dce7ff;                   /* хром логотипа: зірки рейтингу, акценти */
  --color-highlight: #a996ff;                /* підсвічена мірка в розмірній сітці */
  --color-buy: #5a31f4;         /* фіолетова кнопка «Buy it now» */
  --color-error: #ff8a8a;
  --color-success: #7ee2a0;

  --radius: 14px;
  --page-max: 1440px;
  --page-pad: 40px;
  --header-h: 76px;

  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-fg);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Футер завжди внизу екрана: сторінка не нижча за екран, а <main> займає все вільне місце між шапкою
     й футером («панельку внизу нехай закріпить… на сайтах вона завжди внизу», 2026-11-14 — на «Контактах»
     під футером лишалась порожнеча). Решта дітей body (меню, кошик, вікна, фон) — position: fixed, не заважають. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
/* Фон сайту — як на банері. Два нерухомі шари (сторінка гортається поверх них):
   body::before — темні градієнти; body::after — хромовані кільця й зірки, вирізані з фону банера скриптом
   tools/site-bg.swift (чорне в них — чистий чорний, тож у режимі screen видно лише хром).
   Поки банер на екрані, кільця сховані (клас body.hero-on-screen ставить initHero() у main.js): у банера свої
   кільця, а крізь прозорий низ банера кільця фону змішувались із підлогою. Прокрутив банер — плавно зʼявляються. */
body::before,
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background:
    radial-gradient(110% 60% at 50% -8%, #192034 0%, rgba(25, 32, 52, 0) 62%),
    radial-gradient(80% 50% at 50% 112%, #111829 0%, rgba(17, 24, 41, 0) 70%),
    var(--color-bg);
}
body::after {
  background:
    url(../img/bg-ring-right.jpg) right -48px top 12% / clamp(150px, 18vw, 290px) auto no-repeat,
    url(../img/bg-ring-left.jpg) left -56px bottom 4% / clamp(170px, 21vw, 330px) auto no-repeat;
  mix-blend-mode: screen;
  transition: opacity 0.6s var(--ease);
}
body.hero-on-screen::after { opacity: 0; }
/* Зірки фону — лише на широких екранах (від 1700px): там вони стоять у порожніх полях обабіч сторінки.
   На вужчих фон нерухомий, а текст гортається — зірка рано чи пізно лягає на текст (було на описі товару). */
@media (min-width: 1700px) {
  body::after {
    background:
      url(../img/bg-star.jpg) right 7% top 64% / clamp(44px, 5vw, 84px) auto no-repeat,
      url(../img/bg-star.jpg) left 5% top 11% / clamp(30px, 3.4vw, 58px) auto no-repeat,
      url(../img/bg-ring-right.jpg) right -48px top 12% / clamp(150px, 18vw, 290px) auto no-repeat,
      url(../img/bg-ring-left.jpg) left -56px bottom 4% / clamp(170px, 21vw, 330px) auto no-repeat;
  }
}
/* Деталі фону (2026-11-13, «добав на фон більше деталей»): зоряний пил, тонкі орбіти й промені як у банера,
   блискітки, що мерехтять. Шар .site-fx вставляє injectBackdrop() у main.js першим у <body>, тож він лежить
   між градієнтами (body::before) і кільцями (body::after).
   Блискітки — лише в бічних полях сторінки (--g — середина поля), щоб не лягати на текст;
   орбіти й промені посередині сторінки ледь видні (маска). Поки банер на екрані, орбіти й блискітки сховані,
   як і кільця. Пил і орбіти повільно їдуть угору при прокрутці (глибина), якщо браузер це вміє. */
.site-fx {
  --g: max(calc(var(--page-pad) / 2), calc((100vw - var(--page-max) + 2 * var(--page-pad)) / 4));
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.site-fx__dust {
  position: absolute;
  inset: 0 0 -30vh;
  background: url(../img/bg-dust.svg) 0 0 / 640px 640px repeat;
}
.site-fx__lines,
.site-fx__sparks {
  position: absolute;
  inset: 0;
  transition: opacity 0.6s var(--ease);
}
.site-fx__lines {
  bottom: -16vh;
  -webkit-mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.38) 24%, rgba(0, 0, 0, 0.38) 76%, #000);
          mask-image: linear-gradient(90deg, #000, rgba(0, 0, 0, 0.38) 24%, rgba(0, 0, 0, 0.38) 76%, #000);
}
.site-fx__orbit { position: absolute; overflow: visible; }
.site-fx__orbit--a { left: -24vw; top: 4vh; width: 88vw; height: 46vh; rotate: -11deg; }
.site-fx__orbit--b { right: -30vw; top: 50vh; width: 96vw; height: 42vh; rotate: 8deg; }
.site-fx__streak {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, rgba(220, 231, 255, 0), rgba(236, 242, 255, 0.6) 58%, rgba(220, 231, 255, 0));
}
.site-fx__streak--a { left: 2vw; top: 44vh; width: 26vw; rotate: 22deg; }
.site-fx__streak--b { right: 1vw; top: 27vh; width: 20vw; rotate: -26deg; }
.site-fx__streak--c { right: 6vw; top: 86vh; width: 14vw; rotate: -18deg; opacity: 0.6; }
.site-fx__spark {
  --dx: 0px;
  position: absolute;
  left: calc(var(--g) + var(--dx));
  top: var(--y);
  width: min(var(--s), calc(var(--g) * 1.8));
  aspect-ratio: 1;
  translate: -50% -50%;
  /* 4-промінна зірка з ореолом, як на банері (вертикальні промені довші) */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100'%3E%3Cdefs%3E%3CradialGradient id='g'%3E%3Cstop offset='0' stop-color='%23fff' stop-opacity='.8'/%3E%3Cstop offset='.3' stop-color='%23c3d6ff' stop-opacity='.25'/%3E%3Cstop offset='1' stop-color='%23c3d6ff' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Ccircle r='30' fill='url(%23g)'/%3E%3Cpath d='M0-50C2-6 6-2 34 0C6 2 2 6 0 50C-2 6-6 2-34 0C-6-2-2-6 0-50Z' fill='%23f2f6ff'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: fx-twinkle var(--t, 7s) ease-in-out var(--d, 0s) infinite;
}
.site-fx__spark--r { left: calc(100% - var(--g) - var(--dx)); }
.site-fx__spark--wide { display: none; }
body.hero-on-screen .site-fx__lines,
body.hero-on-screen .site-fx__sparks { opacity: 0; }
/* На широких екранах поля великі: блискітки розходяться по полю й з'являються ще кілька */
@media (min-width: 1700px) {
  .site-fx__spark { --dx: var(--wx, 0px); }
  .site-fx__spark--wide { display: block; }
}
@keyframes fx-twinkle {
  0%, 100% { opacity: 0.3; scale: 0.72; }
  50% { opacity: 1; scale: 1; }
}
@supports (animation-timeline: scroll()) {
  .site-fx__dust { animation: fx-drift-dust linear both; animation-timeline: scroll(root); }
  .site-fx__lines { animation: fx-drift-lines linear both; animation-timeline: scroll(root); }
}
@keyframes fx-drift-dust { to { translate: 0 -30vh; } }
@keyframes fx-drift-lines { to { translate: 0 -16vh; } }
/* Поки відкрите вікно (відгук, фото, меню, кошик), прокрутка сторінки заблокована. --lock-pad — ширина смуги
   прокрутки, що при цьому зникає (ставить keepWidthOnScrollLock() у main.js; там, де смуга звичайна, а не
   «плаваюча» — Windows, Mac з мишкою): сторінка й фіксовані панелі лишаються на місці, нічого не зсувається */
body.scroll-lock { overflow: hidden; padding-right: var(--lock-pad, 0px); }
body.scroll-lock .sticky-atc,
body.scroll-lock .toast { margin-left: calc(var(--lock-pad, 0px) / -2); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, figure { margin: 0; }
:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 2px; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: #000; color: #fff; padding: 10px 16px;
  border-radius: 10px; text-decoration: none;
}
.skip-link:focus { top: 8px; }

/* Великі заголовки — хромований градієнт, як у логотипі на банері */
.rte__title,
.sg__title,
.reviews__title,
.lookbook__title,
.contact-page h1,
.policies-page h1,
.admin h1,
.checkout__title,
.order-card__title,
.policy__title,
.product__title {
  background: linear-gradient(180deg, #ffffff 0%, #e6eeff 40%, #93a9d4 54%, #f1f5ff 68%, #c3d2ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.page-width {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px;
  border-radius: var(--radius);
  font-size: 14px; font-weight: 500; line-height: 1;
  text-decoration: none; white-space: nowrap;
  transition: opacity 0.15s, transform 0.1s, background-color 0.15s;
}
.btn:hover { opacity: 0.85; }
.btn:active { transform: scale(0.99); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--color-fg); color: var(--color-on-fg); }
.btn--buy { background: var(--color-buy); color: #fff; font-weight: 600; }
.btn--block { width: 100%; }

.icon-btn {
  position: relative;
  display: inline-grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  transition: background-color 0.15s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.08); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- Announcement bar ---------- */
.announcement-bar {
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 12px; font-weight: 500;
  text-align: center;
  overflow: hidden;
}
/* Бігучий рядок «Безкоштовна доставка ✦ …» (2026-11-23, «сделай бегущую строку только с фразы бесплатная доставка»).
   Дві однакові половини (.marquee__group) їдуть на −50% — без шва. Швидкість — --marquee-dur (main.js, ~55 px/с).
   Наведення мишки — пауза. «Зменшити рух» у системі — замість рядка звичайний текст по центру. */
.announcement-bar__text { margin: 0; padding: 0 16px; }
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee var(--marquee-dur, 40s) linear infinite; }
.marquee__group { display: flex; flex: none; align-items: center; }
.marquee__item { padding: 0 20px; white-space: nowrap; text-transform: uppercase; letter-spacing: 0.1em; }
.marquee__sep { color: var(--color-chrome); font-size: 10px; opacity: 0.8; }
.announcement-bar:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: no-preference) {
  .announcement-bar__text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { display: none; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 8, 12, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.site-header.is-scrolled { border-bottom-color: var(--color-border); }

.header__inner {
  display: flex; align-items: center; gap: 24px;
  height: var(--header-h);
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}
.header__mobile-left { display: none; }
.header__logo { display: block; flex: none; }
.header__logo img { height: 52px; width: auto; }

.header__nav { display: flex; gap: 18px; }
.header__nav-link {
  padding: 6px 0;
  font-size: 14px; letter-spacing: 0.01em; text-transform: uppercase;
  text-decoration: none;
  color: var(--color-muted);
  transition: color 0.15s;
}
.header__nav-link:hover,
.header__nav-link[aria-current='page'] { color: var(--color-fg); }

.header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.cart-count {
  position: absolute; top: 3px; right: 0;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px;
  background: var(--color-fg); color: var(--color-on-fg);
  font-size: 10px; font-weight: 600; line-height: 17px; text-align: center;
}

/* Currency */
/* Країна й мова (заповнює main.js; країни, валюти й мови — i18n.js) */
.locale { position: relative; }
.locale__btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 40px; padding: 0 8px;
  border-radius: 10px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.02em;
  white-space: nowrap;
}
.locale__btn:hover { background: rgba(255, 255, 255, 0.08); }
.locale__btn svg { width: 16px; height: 16px; flex: none; }
.locale__btn svg:last-child { width: 14px; height: 14px; transition: transform 0.2s; }
.locale__btn[aria-expanded='true'] svg:last-child { transform: rotate(180deg); }
.locale__panel {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10;
  width: 300px; padding: 18px;
  background: var(--color-surface-solid);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.locale__title { margin-bottom: 14px; font-size: 15px; font-weight: 600; }
.locale-form { display: grid; gap: 12px; }
.locale-form__field { display: grid; gap: 6px; font-size: 13px; color: var(--color-muted); }
.locale-form select {
  width: 100%; height: 44px; padding: 0 36px 0 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: 10px;
  background: var(--color-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f5fb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  font: inherit; font-size: 14px; color: var(--color-fg);
  appearance: none;
}
.locale-form select:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 1px; }
.locale-form .btn { height: 46px; margin-top: 4px; }

/* ---------- Hero (банер над товаром) ----------
   Банер видно цілком (2:1) — раніше він обрізався по висоті, і в дівчат зрізало голови й руки.
   Під фото — 36 % його висоти на «хвіст»: підлога продовжується вниз і плавно гасне (.hero__tail),
   а в ній — чіткі дзеркальні відображення дівчат (.hero__mirror); «фон розтягни вниз» → двічі «ще довше» →
   «убери размытие оставь эту зеркальность», 2026-11-14. Цей запас і для повільного наближення — тапочки
   не обрізаються.
   На широких і низьких екранах висота фото обмежена (75 % екрана, не більше 865px): тоді .hero__stage
   вужчий за сторінку і по боках плавно переходить у фон сайту.
   .hero__stage = фото + хвіст; .hero__photo — саме фото 2:1 угорі. Усі шари, зірки й відблиск задані
   у % від фото (.hero__photo), тож завжди стоять на своїх місцях.
   Шари: .hero__tail, .hero__back (фон без дівчат + відблиск + зірки) і три .hero__girl поверх.
   --px / --py (від -1 до 1) ставить initHero() у main.js, коли мишка рухається над банером. */
.hero {
  --px: 0;
  --py: 0;
  position: relative;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1774 / 1206; /* фото 1774×887 + 36 % на хвіст знизу */
  max-height: min(102vh, 1177px); /* фото не вище 75vh / 865px (× 1.36) */
  /* Боки фону плавно переходять у фон сайту — без чіткої межі («прям градієнт, щоб без чітких границь» →
     «ще м'якше», 2026-11-14; спершу було 4 %, потім 14 %). --fade — ширина переходу з кожного боку
     (на телефоні вужча, див. медіазапит ≤749px). Прозорість іде по S-кривій (smoothstep): біля краю й
     біля середини змінюється повільно, тож ні з того, ні з іншого боку не видно, де градієнт почався.
     Маску накладено лише на фон (.hero__back, .hero__tail), не на дівчат — вони лишаються яскравими. */
  --fade: 24%;
  --hero-sides: linear-gradient(to right,
    transparent,
    rgba(0, 0, 0, 0.03) calc(var(--fade) * 0.1), rgba(0, 0, 0, 0.16) calc(var(--fade) * 0.25),
    rgba(0, 0, 0, 0.35) calc(var(--fade) * 0.4), rgba(0, 0, 0, 0.5) calc(var(--fade) * 0.5),
    rgba(0, 0, 0, 0.65) calc(var(--fade) * 0.6), rgba(0, 0, 0, 0.84) calc(var(--fade) * 0.75),
    rgba(0, 0, 0, 0.97) calc(var(--fade) * 0.9),
    #000 var(--fade), #000 calc(100% - var(--fade)),
    rgba(0, 0, 0, 0.97) calc(100% - var(--fade) * 0.9), rgba(0, 0, 0, 0.84) calc(100% - var(--fade) * 0.75),
    rgba(0, 0, 0, 0.65) calc(100% - var(--fade) * 0.6), rgba(0, 0, 0, 0.5) calc(100% - var(--fade) * 0.5),
    rgba(0, 0, 0, 0.35) calc(100% - var(--fade) * 0.4), rgba(0, 0, 0, 0.16) calc(100% - var(--fade) * 0.25),
    rgba(0, 0, 0, 0.03) calc(100% - var(--fade) * 0.1),
    transparent);
}
.hero__stage {
  position: absolute;
  left: 50%; top: 0;
  height: 100%;
  aspect-ratio: 1774 / 1206;
  translate: -50% 0;
  /* невеликий запас по краях для паралаксу; точка масштабу у верхній чверті фото (25 % / 1.36) — волосся
     майже не зрізається, а низ при наближенні опускається в запас під фото */
  transform: scale(1.02);
  transform-origin: 50% 18.38%;
  /* боки й низ гаснуть на самих шарах фону (.hero__back, .hero__tail: --hero-sides × свій градієнт донизу) */
  animation:
    hero-in 1.6s var(--ease) both,                     /* поява */
    hero-drift 20s ease-in-out 1.6s infinite alternate; /* повільне наближення й назад */
}
/* Поки шари вантажаться, анімація стоїть на першому кадрі (клас ставить initHero) */
.hero.is-loading .hero__stage { animation-play-state: paused; }

.hero__photo {
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 1774 / 887;
}

.hero__back {
  position: absolute;
  inset: 0;
  translate: calc(var(--px) * -6px) calc(var(--py) * -4px);
  transition: translate 0.6s var(--ease);
  /* Фон до 87 % висоти, далі плавно віддає місце хвосту (.hero__tail під ним) і відображенням (.hero__mirror).
     Дівчата — окремі шари поверх, тож тапочки лишаються повністю яскравими.
     Дві маски перемножуються (intersect): боки (--hero-sides) і низ. */
  --hero-back-fade: linear-gradient(to bottom, #000 87%, rgba(0, 0, 0, 0.8) 91%, rgba(0, 0, 0, 0.5) 94.5%,
    rgba(0, 0, 0, 0.2) 97.5%, transparent);
  -webkit-mask-image: var(--hero-sides), var(--hero-back-fade);
  -webkit-mask-composite: source-in;
  mask-image: var(--hero-sides), var(--hero-back-fade);
  mask-composite: intersect;
}
.hero__bg { width: 100%; height: 100%; }

/* Хвіст: підлога продовжується під фото до 136 % його висоти й плавно гасне. Лежить під .hero__back.
   Посередині — рівний тон підлоги (там, де стоять дівчата, у фоні їхні силуети замазані розмитим
   оточенням — розтягнуте, воно давало муть під фото; «убери размытие оставь эту зеркальность», 2026-11-14),
   а чіткі відображення дівчат дає .hero__mirror. По боках (::before) — розтягнута в 3.25 раза нижня смуга
   фону з відблисками кілець (з 84 % висоти фото). */
.hero__tail {
  position: absolute;
  left: 0; right: 0;
  top: 84%; height: 16%;
  background: #1e1e21; /* тон підлоги між дівчатами внизу фото (≈ rgb 30 30 32) */
  transform: scaleY(3.25);
  transform-origin: 50% 0;
  translate: calc(var(--px) * -6px) calc(var(--py) * -4px);
  transition: translate 0.6s var(--ease);
  pointer-events: none;
  /* Гасне з 14 % до 90 % по S-кривій (smoothstep, як боки) — унизу дуже повільно, тож немає видимої нижньої межі.
     При найбільшому наближенні (1.035) низ банера обрізає хвіст на ~93 %, там уже порожньо.
     Разом із боками (--hero-sides) — маски перемножуються (intersect). */
  --hero-tail-fade: linear-gradient(to bottom,
    #000 14%, rgba(0, 0, 0, 0.97) 21.6%, rgba(0, 0, 0, 0.84) 33%, rgba(0, 0, 0, 0.65) 44.4%,
    rgba(0, 0, 0, 0.5) 52%, rgba(0, 0, 0, 0.35) 59.6%, rgba(0, 0, 0, 0.16) 71%, rgba(0, 0, 0, 0.06) 79%,
    rgba(0, 0, 0, 0.015) 85.5%, transparent 90%);
  -webkit-mask-image: var(--hero-sides), var(--hero-tail-fade);
  -webkit-mask-composite: source-in;
  mask-image: var(--hero-sides), var(--hero-tail-fade);
  mask-composite: intersect;
}
.hero__tail::before {
  content: '';
  position: absolute;
  inset: 0;
  /* та сама картинка фону, показано лише її низ (100 / 16 = 625 % висоти); лише боки — там, де дівчат немає */
  background: url(../img/hero-banner-bg.jpg) 50% 100% / 100% 625% no-repeat;
  -webkit-mask-image: linear-gradient(to right, #000 15%, transparent 19%, transparent 85.5%, #000 89%);
  mask-image: linear-gradient(to right, #000 15%, transparent 19%, transparent 85.5%, #000 89%);
}

/* Відображення дівчат у підлозі — чіткі, без розмиття, як на початковому банері. Ті самі шари (.hero__girl),
   перевернуті (scale: 1 -1) відносно лінії підошв; з тією ж анімацією, тож хитаються дзеркально.
   .hero__mirror — фото + хвіст (136 %), .hero__mirror-in — саме фото 2:1 (координати дівчат у % від нього).
   Маска в координатах фото: до 87 % — 0 (там справжні відображення на фоні), до 100 % наростає до 0.35
   рівно настільки, наскільки гасне .hero__back (відображення з фото плавно змінюються перевернутими шарами),
   далі по S-кривій гасне до 0 на 128 % висоти фото. Відсотки нижче = висота фото / 1.36.
   Сила відображень — 0.35 («отражения слабее», 2026-11-14; спершу було 0.55): щоб змінити, помножити
   всі rgba(…) нижче на той самий коефіцієнт. */
.hero__mirror {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 136%;
  pointer-events: none;
  --hero-mirror-fade: linear-gradient(to bottom,
    transparent 63.97%, rgba(0, 0, 0, 0.07) 66.91%, rgba(0, 0, 0, 0.175) 69.49%, rgba(0, 0, 0, 0.28) 71.69%,
    rgba(0, 0, 0, 0.35) 73.53%, rgba(0, 0, 0, 0.34) 75.59%, rgba(0, 0, 0, 0.295) 78.68%,
    rgba(0, 0, 0, 0.227) 81.76%, rgba(0, 0, 0, 0.175) 83.82%, rgba(0, 0, 0, 0.123) 85.88%,
    rgba(0, 0, 0, 0.055) 88.97%, rgba(0, 0, 0, 0.01) 92.06%, transparent 94.12%);
  -webkit-mask-image: var(--hero-mirror-fade);
  mask-image: var(--hero-mirror-fade);
}
.hero__mirror-in {
  position: absolute;
  inset: 0 0 auto;
  aspect-ratio: 1774 / 887;
}
.hero__girl.hero__refl {
  scale: 1 -1;
  translate: calc(var(--px) * 12px) calc(var(--py) * -6px); /* паралакс по вертикалі — навпаки */
}
/* вісь — лінія підошв (рядок, де тапок торкається підлоги: 787 з 811, 606 з 616, 782 з 791) */
.hero__refl.hero__girl--1 { transform-origin: 52.3% 97.04%; }
.hero__refl.hero__girl--2 { transform-origin: 48.3% 98.38%; }
.hero__refl.hero__girl--3 { transform-origin: 45% 98.86%; }

/* Дівчата: кожна — фото з маскою прозорості, стоїть точно на своєму місці на фоні.
   transform-origin — точка між підошвами, тож ноги стоять на місці, а тіло хитається. */
.hero__girl {
  position: absolute;
  height: auto;
  -webkit-mask: var(--mask) center / 100% 100% no-repeat;
  mask: var(--mask) center / 100% 100% no-repeat;
  translate: calc(var(--px) * 12px) calc(var(--py) * 6px);
  transition: translate 0.6s var(--ease);
  will-change: transform;
}
.hero__girl--1 { /* бордовий: повільно погойдується */
  --mask: url(../img/hero-girl-1-mask.png);
  left: 14.994%; top: 0.225%; width: 19.278%;
  transform-origin: 52.3% 96.7%;
  animation: hero-sway 3.4s ease-in-out infinite alternate;
}
.hero__girl--2 { /* рожевий, у навушниках: качається в такт музиці */
  --mask: url(../img/hero-girl-2-mask.png);
  left: 33.484%; top: 28.861%; width: 35.738%;
  transform-origin: 48.3% 98.4%;
  animation: hero-vibe 1.05s ease-in-out infinite alternate;
}
.hero__girl--3 { /* блакитний: погойдується назустріч бордовому */
  --mask: url(../img/hero-girl-3-mask.png);
  left: 67.756%; top: 0; width: 22.041%;
  transform-origin: 45% 99.2%;
  animation: hero-sway 3.9s ease-in-out -1.2s infinite alternate-reverse;
}

/* Відблиск, що пробігає по хромованому логотипу */
.hero__glint {
  position: absolute;
  left: 31%; top: 1%; width: 41%; height: 30%;
  overflow: hidden;
  /* overlay світлішає лише світлий хром, а чорний фон лишається чорним (color-dodge давав сіру смугу) */
  mix-blend-mode: overlay;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}
.hero__glint::before {
  content: '';
  position: absolute;
  top: -20%; bottom: -20%; left: 0;
  width: 30%;
  background: linear-gradient(100deg, transparent 0%, rgba(255, 255, 255, 0.95) 50%, transparent 100%);
  translate: -120% 0;
  animation: hero-glint 7s ease-in-out 1.8s infinite;
}

/* Зірки, що мерехтять поверх зірок на фото */
.hero__spark {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--s);
  aspect-ratio: 1;
  translate: -50% -50%;
  pointer-events: none;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle, #fff 0 4%, rgba(190, 215, 255, 0.6) 12%, transparent 34%),
    linear-gradient(90deg, transparent, #fff 50%, transparent) center / 100% 2px no-repeat,
    linear-gradient(0deg, transparent, #fff 50%, transparent) center / 2px 100% no-repeat;
  opacity: 0;
  animation: hero-twinkle 3.6s ease-in-out var(--delay, 0s) infinite;
}

@keyframes hero-in {
  from { opacity: 0; scale: 1.08; }
  to { opacity: 1; scale: 1; }
}
@keyframes hero-drift {
  from { transform: scale(1.02); }
  to { transform: scale(1.035); }
}
@keyframes hero-sway {
  from { transform: rotate(-1deg) scaleY(1); }
  to { transform: rotate(1deg) scaleY(1.012); }
}
@keyframes hero-vibe {
  from { transform: rotate(-0.9deg) scale(1); }
  to { transform: rotate(0.9deg) scale(1.01); }
}
@keyframes hero-glint {
  0% { translate: -120% 0; }
  25%, 100% { translate: 420% 0; }
}
@keyframes hero-twinkle {
  0% { opacity: 0; scale: 0.3; rotate: -60deg; }
  50% { opacity: 1; scale: 1; rotate: 0deg; }
  100% { opacity: 0; scale: 0.3; rotate: 60deg; }
}

/* ---------- Product grid / cards ---------- */
.product-list { padding-block: 48px 64px; }
.section-title { font-size: 24px; font-weight: 700; line-height: 1.2; margin-bottom: 24px; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 16px;
}
.product-card { display: block; text-decoration: none; }
.product-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #000;
}
.product-card__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: opacity 0.4s var(--ease), transform 0.8s var(--ease);
}
.product-card__img--secondary { opacity: 0; }
.product-card:hover .product-card__img--secondary { opacity: 1; }
.product-card:hover .product-card__img { transform: scale(1.03); }
.product-card__title { margin-top: 12px; font-size: 14px; font-weight: 400; line-height: 1.4; }
.product-card__price { margin-top: 2px; font-size: 12px; font-weight: 500; }

/* ---------- Product page ---------- */
.hero + .product-section { padding-top: 24px; } /* відступ між банером і товаром (плюс 4 % запасу під фото) */
.product {
  display: grid;
  grid-template-columns: minmax(0, 57fr) minmax(0, 43fr);
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--page-pad);
}
.product__media {
  position: sticky; top: var(--header-h);
  align-self: start;
  padding-right: 24px;
}
.product__info { padding: 28px 0 64px 24px; }

/* Gallery (свайп на мобільних, стрілки на десктопі) */
.gallery { position: relative; }
.gallery__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track:focus-visible { outline-offset: -2px; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: start; }
.gallery__slide img {
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: calc(100vh - var(--header-h));
  object-fit: contain;
  background: var(--color-media);
}
/* Студійне фото (перший слайд): вирізаний костюм кольору (будує product.js з studio у data.js).
   Власного фону немає — костюм стоїть прямо на фоні сайту; при зміні кольору плавно змінюється лише костюм.
   (Якщо в data.js задати studio.background, під костюмом зʼявиться .studio__bg.) */
.studio {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: calc(100vh - var(--header-h));
  overflow: hidden;
}
.studio__stage { position: absolute; top: 0; bottom: 0; left: 50%; aspect-ratio: 3 / 4; translate: -50% 0; }
.gallery__slide .studio__bg,
.gallery__preview .studio__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; max-height: none;
  aspect-ratio: auto; object-fit: cover;
  background: #0b0b0e;
}
.gallery__slide .studio__layer,
.gallery__preview .studio__layer {
  position: absolute;
  height: auto; max-height: none;
  aspect-ratio: auto; object-fit: fill;
  background: none;
  -webkit-mask: var(--mask) center / 100% 100% no-repeat;
  mask: var(--mask) center / 100% 100% no-repeat;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.gallery__slide .studio__layer.is-active,
.gallery__preview .studio__layer.is-active { opacity: 1; }
.gallery__arrow {
  position: absolute; top: 50%;
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
  color: var(--color-on-fg);
  transform: translateY(-50%);
  opacity: 0;
  transition: opacity 0.2s, background-color 0.15s;
}
.gallery__arrow svg { width: 18px; height: 18px; }
.gallery__arrow--prev { left: 14px; }
.gallery__arrow--next { right: 14px; }
.gallery:hover .gallery__arrow,
.gallery__arrow:focus-visible { opacity: 1; }
.gallery__arrow:hover { background: #fff; }
.gallery__dots {
  position: absolute; left: 50%; bottom: 16px;
  display: flex; gap: 6px;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  transform: translateX(-50%);
}
.gallery__dot {
  width: 6px; height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  transition: width 0.25s var(--ease), background-color 0.25s;
}
.gallery__dot[aria-current='true'] { width: 18px; background: #fff; }

/* Превʼю кольору при наведенні на кнопку кольору (не на першому слайді): та сама студійна сцена —
   вирізаний костюм на фоні сайту, а фото під ним (.gallery__track) на цей час ховається.
   Без studio у data.js усередині — .gallery__preview-img (головне фото кольору). */
.gallery__preview {
  position: absolute; inset: 0; z-index: 3;
  opacity: 0; visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0s 0.2s;
}
.gallery__preview.is-visible { opacity: 1; visibility: visible; transition: opacity 0.2s; }
.gallery__preview-img {
  width: 100%; height: 100%;
  object-fit: contain;
  background: var(--color-media);
}
.gallery__track { transition: opacity 0.2s; }
.gallery.is-previewing .gallery__track { opacity: 0; }

/* Info */
.product__title { font-size: 32px; font-weight: 700; line-height: 1.1; text-transform: uppercase; }
.product__price { margin-top: 16px; font-size: 14px; }
.product__perk { margin-top: 4px; font-size: 13px; color: var(--color-chrome); } /* «Бесплатная доставка» під ціною (2026-11-23) */
.product__divider { margin: 24px 0; border: 0; border-top: 1px solid var(--color-border); }

.variant-picker { margin: 0 0 16px; padding: 0; border: 0; min-width: 0; }
.variant-picker legend { margin-bottom: 8px; padding: 0; font-size: 14px; }
.pills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
/* Кольори: 3 в ряд, якщо кнопки не вужчі за 150px, інакше 2 — довгі назви («Небесно-голубой») не переносяться */
.pills--color { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pill { position: relative; display: block; }
.pill input {
  position: absolute; inset: 0;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: pointer;
}
.pill span {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-field);
  font-size: 14px; line-height: 1.3; text-align: center;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.pill:hover span { border-color: var(--color-fg); }
.pill input:checked + span { background: var(--color-fg); border-color: var(--color-fg); color: var(--color-on-fg); }
.pill input:focus-visible + span { outline: 2px solid var(--color-fg); outline-offset: 2px; }
.pill input:disabled { cursor: not-allowed; }
.pill input:disabled + span { color: var(--color-muted); text-decoration: line-through; border-color: var(--color-border); }

.product-form__row { display: flex; gap: 10px; margin-top: 24px; }
/* min-width: 0 — кнопка не ширша за рядок: довгий напис (напр. «Добавить в корзину» на вузькому телефоні)
   переноситься на другий рядок, а не вилазить за край сторінки (було +14px на телефоні 375px). */
.product-form__row .add-to-cart { flex: 1; min-width: 0; }
.product-form__row .add-to-cart span { white-space: normal; text-align: center; line-height: 1.25; }
.product-form .btn--buy { width: 100%; margin-top: 10px; }

.qty {
  display: flex; align-items: center; flex: none;
  width: 126px; height: 52px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-field);
}
.qty button {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 100%;
  color: var(--color-fg);
}
.qty button svg { width: 14px; height: 14px; }
.qty input {
  width: 100%; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-size: 14px; text-align: center;
  -moz-appearance: textfield; appearance: textfield;
}
.qty input::-webkit-outer-spin-button,
.qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qty--sm { width: 104px; height: 38px; border-radius: 10px; }
.qty--sm button { width: 32px; }

/* Description (rich text) */
.rte { margin-top: 40px; }
.rte__title {
  margin-bottom: 14px;
  font-size: 56px; font-weight: 700; line-height: 1; letter-spacing: -0.01em;
  text-transform: uppercase;
}
.rte p { margin: 7px 0; }
/* Опис товару — окремий рядок під товаром (будує product.js): ліворуч відео, праворуч текст.
   Колонки як у .product вище (там фото 57 | кнопки 43, тут відео 57 | текст 43): відео під галереєю,
   текст під кнопками. Відео «прилипає» під шапкою, поки гортаєш опис.
   (Пробували навпаки — текст ліворуч, відео праворуч; повернули: «поменяй обратно местами», 2026-11-13.) */
.product-story {
  display: grid;
  grid-template-columns: minmax(0, 57fr) minmax(0, 43fr);
  grid-template-rows: auto 1fr;
  grid-template-areas: "video title" "video text";
  max-width: var(--page-max);
  margin-inline: auto;
  padding: 40px var(--page-pad) 72px;
}
.product-story:not(.has-video) { grid-template-areas: ". title" ". text"; }
.product-story__video {
  grid-area: video;
  position: sticky;
  top: calc(var(--header-h) + 24px);
  align-self: start;
  display: flex;
  justify-content: center;
  padding-right: 24px;
}
.product-story__title { grid-area: title; padding-left: 24px; }
.product-story__text { grid-area: text; margin-top: 0; padding-left: 24px; }
.product-story__text > :first-child { margin-top: 0; }
/* Відео: вертикальне 9:16, по висоті екрана (без шапки), не вище 760px; ширину задає рамка (figure) —
   так воно стоїть по центру колонки, як фото в галереї вище */
.product-video { width: min(100%, calc((100vh - var(--header-h) - 48px) * 9 / 16), 428px); margin: 0; }
.product-video__media {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--color-media);
}
.rte h3 { margin: 20px 0 8px; font-size: 32px; font-weight: 700; line-height: 1.1; }
/* Акордеон: Details, Care instructions (будує product.js з h3 опису) — натиснути, щоб розгорнути */
.accordion { border-top: 1px solid var(--color-border); }
.accordion:first-of-type { margin-top: 24px; }
.accordion:last-child { border-bottom: 1px solid var(--color-border); }
.accordion__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 2px; border-radius: 6px; }
.rte .accordion__title { margin: 0; font-size: 16px; font-weight: 600; letter-spacing: 0.04em; line-height: 1.3; }
.accordion__summary svg { width: 18px; height: 18px; flex: none; color: var(--color-muted); transition: transform 0.25s var(--ease), color 0.15s; }
.accordion__summary:hover svg { color: var(--color-fg); }
.accordion[open] > .accordion__summary svg { transform: rotate(180deg); }
.accordion__body { padding-bottom: 18px; }
/* Плавне розгортання там, де браузер уміє (новий Chrome, Safari); в інших — просто відкривається */
@supports (interpolate-size: allow-keywords) {
  .accordion { interpolate-size: allow-keywords; }
  .accordion::details-content {
    block-size: 0;
    overflow: clip;
    transition: block-size 0.35s var(--ease), content-visibility 0.35s allow-discrete;
  }
  .accordion[open]::details-content { block-size: auto; }
}
.rte ul { margin: 0; padding-left: 18px; }
.rte strong { font-weight: 700; }

/* ---------- Size guide (розмірна сітка; будує product.js з sizeGuide у data.js) ----------
   Ліворуч таблиця (колонки — наші розміри, обраний підсвічений), праворуч схеми A–G і «How to measure».
   Наведення на рядок з літерою: .sg отримує .has-active, а елементи з цією літерою — .is-active. */
.size-guide {
  padding-block: 72px 88px;
  scroll-margin-top: var(--header-h);
}
.sg__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 32px;
  margin-bottom: 28px;
}
.sg__title { font-size: clamp(32px, 3.6vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.sg__note { max-width: 34rem; font-size: 15px; line-height: 1.5; color: var(--color-muted); }
.sg {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 20px;
  align-items: start;
}
.sg__card {
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.sg__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sg__table th,
.sg__table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: 15px;
  font-weight: 400;
  text-align: left;
  transition: background-color 0.2s;
}
.sg__table td { text-align: center; white-space: nowrap; }
.sg__table thead th {
  padding-bottom: 14px;
  border-bottom: 0;
  font-size: 13px;
  color: var(--color-muted);
  vertical-align: bottom;
}
.sg__table thead th[data-size] { width: 22%; text-align: center; }
.sg__size {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  background: var(--color-field);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-fg);
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.sg__size:hover { border-color: var(--color-fg); }
.sg__size[aria-pressed='true'] { border-color: var(--color-fg); background: var(--color-fg); color: var(--color-on-fg); }
.sg__size:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 2px; }
.sg__table td.is-selected { background: rgba(190, 210, 255, 0.12); font-weight: 600; }
.sg__group th {
  padding-top: 24px;
  padding-bottom: 8px;
  border-bottom-color: var(--color-border-strong);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-muted);
}
.sg__table tbody:first-of-type .sg__group th { padding-top: 6px; }
.sg__row--eu th,
.sg__row--eu td { font-weight: 700; }
.sg__table tr[data-m]:focus-visible { outline: 2px solid var(--color-fg); outline-offset: -2px; }
.sg__table tr.is-active th,
.sg__table tr.is-active td:not(.is-selected) { background: rgba(169, 150, 255, 0.16); }

/* Кружечок з літерою мірки (у таблиці, у списку, на схемі) */
.sg__key {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--color-fg);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  color: var(--color-on-fg);
  vertical-align: 1px;
  transition: background-color 0.2s;
}
.sg__key--empty { visibility: hidden; }
.is-active > .sg__key,
.is-active > th > .sg__key { background: var(--color-highlight); }

/* Схеми худі (спереду, ззаду) і штанів */
.sg__figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: -6px -6px 22px;
}
.sg__figure { width: 100%; height: auto; overflow: visible; }
.sg__garment { fill: rgba(200, 215, 255, 0.07); stroke: rgba(220, 230, 255, 0.5); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; }
.sg__m { fill: none; stroke: var(--color-fg); stroke-width: 1.5; stroke-linecap: round; transition: opacity 0.2s, stroke 0.2s; }
.sg__badge circle { fill: var(--color-fg); stroke: var(--color-surface-solid); stroke-width: 2; transition: fill 0.2s; }
.sg__badge text { fill: var(--color-on-fg); stroke: none; font: 700 14px var(--font); text-anchor: middle; dominant-baseline: central; }
.sg.has-active .sg__m:not(.is-active) { opacity: 0.18; }
.sg__m.is-active { stroke: var(--color-highlight); }
.sg__m.is-active .sg__badge circle { fill: var(--color-highlight); }

.sg__subtitle { margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.sg__how { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; line-height: 1.45; }
.sg__how li { display: flex; align-items: flex-start; }
.sg__how li:not([data-m]) { padding-left: 30px; }
.sg__how .sg__key { flex: none; margin-top: 0; }

/* Посилання «Size guide» біля вибору розміру */
.variant-picker legend { width: 100%; }
.variant-picker__guide {
  float: right;
  font-size: 13px;
  color: var(--color-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.variant-picker__guide:hover { color: var(--color-fg); }

.related { padding-block: 48px 64px; }

/* ---------- Reviews (відгуки під розмірною сіткою; будує reviews.js, дані — Firebase Firestore) ----------
   Ліворуч підсумок (середня оцінка, смужки 5…1 зірок, «Write a review»), праворуч список відгуків.
   Форма — нативний <dialog class="review-dialog">, фото з відгуку відкриваються в .lightbox. */
.reviews {
  padding-block: 24px 96px;
  scroll-margin-top: 16px; /* відступ під шапкою вже дає scroll-padding-top у html */
}
.reviews__layout {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 28px 56px;
  align-items: start;
}
.reviews__summary {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  display: grid;
  gap: 20px;
}
.reviews__title { font-size: clamp(32px, 3.6vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.reviews__score { display: flex; align-items: center; gap: 16px; }
.reviews__avg {
  font-size: 64px; font-weight: 700; line-height: 0.9; letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.reviews__score-info { display: grid; gap: 6px; }
.reviews__score .stars { --star: 20px; }
.reviews__total { font-size: 14px; color: var(--color-muted); }
.reviews__bars { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.reviews__bar-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 32px;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.reviews__bar-label { display: inline-flex; align-items: center; gap: 4px; color: var(--color-muted); }
.reviews__bar-label svg { width: 12px; height: 12px; fill: var(--color-chrome); }
.reviews__bar { height: 6px; overflow: hidden; border-radius: 999px; background: rgba(214, 226, 255, 0.12); }
.reviews__bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #9fb4dd, var(--color-chrome)); }
.reviews__bar-count { text-align: right; color: var(--color-muted); }
.reviews__write { margin-top: 4px; }
/* без особистого посилання — пояснення замість кнопки «Write a review» (reviews.js) */
.reviews__note { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--color-muted); }

.reviews__status {
  padding: 28px;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius);
  font-size: 15px;
  color: var(--color-muted);
}
.reviews__retry { margin-left: 4px; color: var(--color-fg); text-decoration: underline; text-underline-offset: 3px; }
.reviews__list { display: grid; gap: 12px; }
.reviews__more { display: flex; justify-content: center; margin-top: 24px; }
.reviews__more-btn {
  height: 48px;
  padding: 0 24px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.reviews__more-btn:hover { border-color: var(--color-fg); background: var(--color-fg); color: var(--color-on-fg); }
.reviews__more-btn:disabled { opacity: 0.5; cursor: progress; }

/* Один відгук */
.review {
  padding: 24px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.review:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 2px; }
.review__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.review__date { font-size: 13px; color: var(--color-muted); white-space: nowrap; }
.review__name { margin-top: 12px; font-size: 16px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.review__meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 2px 0 0; font-size: 13px; color: var(--color-muted); }
/* «Подтверждённая покупка» — відгук за особистим посиланням */
.review__verified { display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 0; font-size: 13px; font-weight: 500; color: var(--color-chrome); }
.review__verified svg { width: 16px; height: 16px; flex: none; }
.review__text { margin-top: 10px; font-size: 15px; line-height: 1.6; white-space: pre-line; overflow-wrap: anywhere; }
/* «Перевести» / «Переведено автоматически · Показать оригинал» під текстом відгуку */
.review__tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 8px; font-size: 13px; }
.review__tr-note { color: var(--color-muted); }
.review__tr-link {
  padding: 0; border: 0; background: none; color: inherit; font: inherit;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  cursor: pointer;
}
.review__tr-link:hover { text-decoration-color: currentColor; }
.review__tr-link:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 2px; border-radius: 2px; }
.review__photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.review__photo {
  width: 88px;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--color-media);
  cursor: zoom-in;
}
.review__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.review__photo:hover img { transform: scale(1.05); }
.review__photo:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 2px; }

/* Зірки для показу: два ряди — порожні й зафарбовані, ширину зафарбованих задає --value (0–5) */
.stars {
  --star: 16px;
  --gap: 2px;
  position: relative;
  display: inline-block;
  flex: none;
  line-height: 0;
  vertical-align: middle;
}
.stars__row { display: flex; gap: var(--gap); }
.stars svg { width: var(--star); height: var(--star); flex: none; fill: rgba(214, 226, 255, 0.2); }
.stars__row--fill {
  position: absolute;
  top: 0; left: 0;
  width: max(0px, calc(var(--value) * var(--star) + (var(--value) - 1) * var(--gap)));
  overflow: hidden;
}
.stars__row--fill svg { fill: var(--color-chrome); filter: drop-shadow(0 0 4px rgba(190, 210, 255, 0.35)); }

/* Вікно з формою відгуку */
.review-dialog {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 48px);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: var(--color-surface-solid);
  color: var(--color-fg);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
}
.review-dialog::backdrop { background: rgba(0, 0, 0, 0.65); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.review-form { display: grid; gap: 18px; padding: 20px 28px 28px; }
.review-form__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-right: -10px; }
.review-form__title { font-size: 22px; font-weight: 700; line-height: 1.2; }
.review-form__field { display: grid; gap: 8px; min-width: 0; }
.review-form__label { padding: 0; font-size: 14px; font-weight: 500; }
.review-form__opt { font-weight: 400; color: var(--color-muted); }
.review-form__hint { font-size: 12px; line-height: 1.4; color: var(--color-muted); } /* «на сайті не показується» під полем пошти */
.review-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.review-form input[type='text'],
.review-form input[type='email'],
.review-form textarea,
.review-form select {
  width: 100%;
  border: 1px solid var(--color-border-strong);
  border-radius: 12px;
  background: var(--color-field);
  font-size: 16px; /* 16px — щоб iPhone не збільшував сторінку при наборі */
  outline: 0;
  transition: border-color 0.15s;
}
.review-form input[type='text'],
.review-form input[type='email'] { height: 48px; padding: 0 14px; }
.review-form textarea { min-height: 128px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.review-form select {
  height: 48px;
  padding: 0 36px 0 14px;
  background: var(--color-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f5fb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
  appearance: none;
}
.review-form input[type='text']:focus,
.review-form input[type='email']:focus,
.review-form textarea:focus,
.review-form select:focus { border-color: var(--color-fg); }
.review-form__trap, .form-trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.review-form .form-message { margin: -6px 0 0; }
.review-form__submit:disabled { cursor: progress; }

/* Вибір оцінки: 5 великих зірок; data-show на fieldset — скільки зірок підсвітити */
.rate { margin: 0; padding: 0; border: 0; min-width: 0; }
.rate legend { margin-bottom: 8px; }
.rate__stars { display: flex; gap: 4px; margin-left: -4px; }
.rate__star { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; cursor: pointer; }
.rate__star input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.rate__star svg { width: 34px; height: 34px; fill: transparent; stroke: rgba(214, 226, 255, 0.45); stroke-width: 1.4; stroke-linejoin: round; transition: fill 0.15s, stroke 0.15s, transform 0.15s var(--ease); }
.rate__star:has(input:focus-visible) { outline: 2px solid var(--color-fg); outline-offset: -2px; }
.rate[data-show='1'] .rate__star:nth-child(-n+1) svg,
.rate[data-show='2'] .rate__star:nth-child(-n+2) svg,
.rate[data-show='3'] .rate__star:nth-child(-n+3) svg,
.rate[data-show='4'] .rate__star:nth-child(-n+4) svg,
.rate[data-show='5'] .rate__star:nth-child(-n+5) svg {
  fill: var(--color-chrome);
  stroke: var(--color-chrome);
  filter: drop-shadow(0 0 6px rgba(190, 210, 255, 0.45));
}
.rate__star:hover svg { transform: scale(1.1); }

/* Фото у формі: мініатюри + плитка «Add photos» */
.review-form__photos { display: flex; flex-wrap: wrap; gap: 10px; }
.review-form__thumb,
.review-form__add {
  position: relative;
  width: 88px;
  aspect-ratio: 1;
  border-radius: 12px;
}
.review-form__thumb { overflow: hidden; background: var(--color-media); }
.review-form__thumb img { width: 100%; height: 100%; object-fit: cover; }
.review-form__thumb.is-loading { background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.12) 50%, rgba(255, 255, 255, 0.04) 70%) 0 0 / 300% 100%; animation: review-loading 1.2s linear infinite; }
.review-form__remove {
  position: absolute;
  top: 4px; right: 4px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
}
.review-form__remove svg { width: 14px; height: 14px; }
.review-form__remove:focus-visible { outline: 2px solid #fff; outline-offset: 1px; }
.review-form__add {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 4px;
  padding: 6px;
  border: 1px dashed var(--color-border-strong);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  color: var(--color-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}
.review-form__add svg { width: 24px; height: 24px; }
.review-form__add:hover { border-color: var(--color-fg); color: var(--color-fg); }
.review-form__add:has(input:focus-visible) { outline: 2px solid var(--color-fg); outline-offset: 2px; }
@keyframes review-loading { to { background-position: -300% 0; } }

/* ---------- Lookbook (сітка фото під товаром; будує product.js з lookbook у data.js) ----------
   Кнопки-фільтри за кольором, сітка 4 / 3 / 2 фото в ряд, «Show all photos»,
   перегляд фото на весь екран (.lightbox — нативний <dialog>). */
.product-section { scroll-margin-top: var(--header-h); } /* «Choose …» прокручує сюди */
.lookbook { padding-block: 80px 96px; }
.lookbook__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px 32px;
  margin-bottom: 28px;
}
.lookbook__title { font-size: clamp(32px, 3.6vw, 52px); font-weight: 700; line-height: 1; letter-spacing: -0.035em; }
.lookbook__filters { display: flex; flex-wrap: wrap; gap: 8px; }
.lookbook__filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  background: var(--color-field);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}
.lookbook__filter:hover { border-color: var(--color-fg); }
.lookbook__filter[aria-pressed='true'] { border-color: var(--color-fg); background: var(--color-fg); color: var(--color-on-fg); }
.lookbook__filter:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 2px; }
.lookbook__count { opacity: 0.5; font-variant-numeric: tabular-nums; }
.lookbook__swatch {
  width: 14px;
  height: 14px;
  flex: none;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}
.lookbook__filter[aria-pressed='true'] .lookbook__swatch { box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.5); }

.lookbook__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.lookbook__tile {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  cursor: zoom-in;
}
.lookbook__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.lookbook__tile:hover img { transform: scale(1.03); }
.lookbook__tile:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 3px; }
.lookbook__more { display: flex; justify-content: center; margin-top: 32px; }
.lookbook__more-btn {
  height: 48px;
  padding: 0 24px;
  border: 1px solid var(--color-fg);
  border-radius: var(--radius);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.15s, color 0.15s;
}
.lookbook__more-btn:hover { background: var(--color-fg); color: var(--color-on-fg); }
.lookbook__more-btn:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 3px; }

/* Перегляд фото на весь екран */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0a0b0e;
  color: #fff;
}
.lightbox[open] { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lightbox::backdrop { background: transparent; }
.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 64px 88px 8px;
  touch-action: pan-y;
}
.lightbox__img {
  /* займає все поле, а contain вписує фото цілком — так воно ніколи не виходить за екран */
  position: absolute;
  inset: 64px 88px 8px;
  width: calc(100% - 176px);
  height: calc(100% - 72px);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.lightbox__nav,
.lightbox__close {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  transition: background-color 0.15s;
}
.lightbox__nav:hover,
.lightbox__close:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox__nav:focus-visible,
.lightbox__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.lightbox__nav { top: 50%; width: 52px; height: 52px; transform: translateY(-50%); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }
.lightbox__nav svg { width: 22px; height: 22px; }
.lightbox__close { top: 14px; right: 14px; width: 44px; height: 44px; }
.lightbox__close svg { width: 20px; height: 20px; }
.lightbox__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 16px 24px;
}
.lightbox__count { font-size: 14px; opacity: 0.7; font-variant-numeric: tabular-nums; }
.lightbox__choose {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px 0 16px;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-on-fg);
}
.lightbox__choose:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Sticky add-to-cart bar */
.sticky-atc {
  position: fixed; left: 50%; bottom: 16px; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  width: min(600px, calc(100% - 24px));
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: rgba(16, 19, 27, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 36px rgba(0, 0, 0, 0.5);
  transform: translate(-50%, calc(100% + 32px));
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0s 0.35s;
}
.sticky-atc.is-visible {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform 0.35s var(--ease);
}
.sticky-atc img { width: 40px; height: 53px; object-fit: cover; border-radius: 6px; background: #000; flex: none; }
.sticky-atc__info { flex: 1; min-width: 0; }
.sticky-atc__title { font-size: 13px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-atc__variant { font-size: 12px; line-height: 1.3; color: var(--color-muted); }
.sticky-atc__price { font-size: 13px; white-space: nowrap; }
.sticky-atc .btn { height: 44px; padding: 0 18px; border-radius: 12px; }

/* ---------- Contact page ---------- */
.contact-page { max-width: 760px; padding-block: 48px 72px; }
.contact-page h1 { margin-bottom: 8px; font-size: 40px; font-weight: 700; line-height: 1.1; }
.contact-page__lead { margin-bottom: 28px; color: var(--color-muted); }

/* ---------- Умови та політики (policies.html; тексти й дані продавця — policies.js) ---------- */
.policies-page { max-width: 820px; padding-block: 48px 72px; }
.policies-page h1 { margin-bottom: 8px; font-size: 40px; font-weight: 700; line-height: 1.1; }
.policies-page__lead { margin: 0 0 4px; color: var(--color-muted); }
.policies-page__updated { margin: 0 0 24px; font-size: 13px; color: var(--color-muted); }
.policies-page__note {
  margin: 0 0 16px; padding: 10px 14px;
  border: 1px solid var(--color-border); border-radius: 12px;
  background: var(--color-surface);
  font-size: 13px; line-height: 1.5;
}
.policies-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.policies-toc a {
  padding: 8px 14px;
  border: 1px solid var(--color-border-strong); border-radius: 999px;
  background: var(--color-field);
  font-size: 13px; text-decoration: none;
  transition: border-color 0.15s;
}
.policies-toc a:hover { border-color: var(--color-fg); }
.policy { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--color-border); }
.policy__title { margin: 0 0 12px; font-size: 28px; font-weight: 700; line-height: 1.15; }
.policy h3 { margin: 22px 0 6px; font-size: 16px; font-weight: 600; line-height: 1.35; }
.policy p { margin: 8px 0; line-height: 1.65; }
.policy ul,
.policy ol { margin: 8px 0; padding-left: 20px; line-height: 1.65; }
.policy li { margin: 4px 0; }
/* посилання на пошту (mailto) — підкреслене, довга адреса може перенестися на телефоні */
.policy a { text-underline-offset: 3px; overflow-wrap: anywhere; }
.policy a:hover { color: var(--color-chrome); }
.policy blockquote {
  margin: 12px 0; padding: 14px 16px;
  border-left: 2px solid var(--color-border-strong); border-radius: 0 12px 12px 0;
  background: var(--color-surface);
  font-size: 13px; line-height: 1.7;
}
/* Таблиця доставки: країна — ціна — строк (data.js → shipping) */
.policy-table {
  width: 100%;
  margin: 12px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.policy-table th,
.policy-table td { padding: 9px 12px 9px 0; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
.policy-table thead th { font-size: 12px; font-weight: 500; color: var(--color-muted); }
.policy-table tbody th { font-weight: 500; }
.policy-table__price,
.policy-table__none { white-space: nowrap; font-variant-numeric: tabular-nums; }
.policy-table__none { color: var(--color-muted); }
.policy-table__days { white-space: nowrap; }
.policy-table td:last-child { padding-right: 0; color: var(--color-muted); }
/* Ще не заповнені дані продавця й доставки (FACTS у policies.js) */
.policy-todo {
  padding: 1px 6px;
  border: 1px dashed rgba(255, 196, 120, 0.7); border-radius: 6px;
  background: rgba(255, 196, 120, 0.12);
  color: #ffd9a8;
  font-size: 0.92em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone; /* при переносі на новий рядок рамка з обох боків */
}
.contact-form { display: grid; gap: 12px; }

/* ---------- Оформлення замовлення (checkout.html → checkout.js) і «Дякуємо» (order.html → order.js), 2026-11-21 ---------- */
.checkout { max-width: 1120px; padding-block: 40px 72px; }
.checkout__title { margin-bottom: 24px; font-size: 40px; font-weight: 700; line-height: 1.1; }
.checkout__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 400px); gap: 40px; align-items: start; }
.checkout__form { display: grid; gap: 28px; min-width: 0; }
.checkout__section { display: grid; gap: 14px; }
.checkout__h2 { font-size: 20px; font-weight: 700; line-height: 1.2; }
.checkout__muted { color: var(--color-muted); }
.checkout__small { font-size: 13px; line-height: 1.5; }
.checkout__warn { color: var(--color-error); font-size: 14px; line-height: 1.5; }
.checkout__notice {
  margin-bottom: 20px; padding: 12px 16px;
  border: 1px solid var(--color-border-strong); border-radius: 12px;
  background: var(--color-surface); font-size: 14px; line-height: 1.5;
}
.checkout__empty {
  display: grid; gap: 16px; justify-items: start; padding: 24px;
  border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface);
}
.co-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.co-row--zip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); }
.co-field { display: grid; gap: 6px; min-width: 0; }
.co-field__label { font-size: 14px; font-weight: 500; }
.co-field__hint { font-size: 12px; line-height: 1.4; color: var(--color-muted); }
.co-field input,
.co-field select {
  width: 100%; height: 48px; padding: 0 14px;
  border: 1px solid var(--color-border-strong); border-radius: 12px;
  background: var(--color-field);
  font-size: 16px; /* 16px — щоб iPhone не збільшував сторінку при наборі */
  outline: 0; transition: border-color 0.15s;
}
.co-field select {
  padding-right: 36px; appearance: none;
  background: var(--color-field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f2f5fb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E") no-repeat right 12px center / 14px;
}
.co-field input:focus,
.co-field select:focus { border-color: var(--color-fg); }
.co-field.is-invalid input,
.co-field.is-invalid select { border-color: var(--color-error); }
.co-field.is-invalid .co-field__label { color: var(--color-error); }
/* спосіб доставки й оплати — «картка» з вибраним кружечком */
.co-option {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--color-fg); border-radius: 12px; background: var(--color-field);
}
.co-option--empty { display: block; border-color: var(--color-border-strong); }
.co-option__radio {
  flex: none; width: 18px; height: 18px;
  border: 2px solid var(--color-fg); border-radius: 50%;
  background: var(--color-fg); box-shadow: inset 0 0 0 3px var(--color-field);
}
.co-option__text { display: grid; gap: 2px; flex: 1; min-width: 0; font-size: 14px; }
.co-option__text span { font-size: 13px; color: var(--color-muted); }
.co-option__price { font-weight: 600; white-space: nowrap; }
/* способи оплати — два варіанти на вибір (PayPal / банківська картка) */
.co-options { display: grid; gap: 10px; }
.co-option--choice { border-color: var(--color-border-strong); cursor: pointer; transition: border-color 0.15s; }
.co-option--choice:hover { border-color: var(--color-muted); }
.co-option--choice:has(input:checked) { border-color: var(--color-fg); }
.co-option--choice:has(input:focus-visible) { outline: 2px solid var(--color-chrome); outline-offset: 2px; }
.co-option--choice .co-option__radio { background: transparent; box-shadow: none; border-color: var(--color-border-strong); }
.co-option--choice:has(input:checked) .co-option__radio { border-color: var(--color-fg); background: var(--color-fg); box-shadow: inset 0 0 0 3px var(--color-field); }
.co-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.co-consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--color-buy); }
.co-consent a { text-decoration: underline; text-underline-offset: 3px; }
.co-consent.is-invalid { color: var(--color-error); }
.checkout__pay { min-height: 54px; font-size: 16px; }
.checkout__form .form-message { margin-top: -16px; }
/* підсумок замовлення збоку (на планшеті й телефоні — над формою) */
.checkout__summary {
  position: sticky; top: calc(var(--header-h) + 20px);
  display: grid; gap: 16px; padding: 22px;
  border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface);
}
.checkout__summary-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.checkout__edit { font-size: 13px; color: var(--color-muted); text-decoration: underline; text-underline-offset: 3px; }
.checkout__edit:hover { color: var(--color-fg); }
.co-items { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.co-item { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.co-item__media { position: relative; }
.co-item__media img { display: block; width: 64px; height: 85px; object-fit: cover; border-radius: 10px; background: var(--color-media); }
.co-item__qty {
  position: absolute; top: -7px; right: -7px;
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px;
  background: var(--color-fg); color: var(--color-on-fg);
  font-size: 12px; font-weight: 600; line-height: 22px; text-align: center;
}
.co-item__info { display: grid; gap: 2px; font-size: 14px; }
.co-item__title { font-weight: 600; }
.co-item__variant { font-size: 13px; color: var(--color-muted); }
.co-item__price { font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.co-totals { display: grid; gap: 8px; margin: 0; padding-top: 14px; border-top: 1px solid var(--color-border); font-size: 14px; }
.co-totals div { display: flex; justify-content: space-between; gap: 12px; }
.co-totals dt { color: var(--color-muted); }
.co-totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.co-totals__total { padding-top: 10px; border-top: 1px solid var(--color-border); font-size: 17px; font-weight: 700; }
.co-totals__total dt { color: var(--color-fg); }

.order-page { max-width: 640px; padding-block: 56px 72px; }
.order-card {
  display: grid; gap: 12px; padding: 32px 28px;
  border: 1px solid var(--color-border); border-radius: 20px; background: var(--color-surface);
  line-height: 1.6;
}
.order-card p { margin: 0; }
.order-card__title { font-size: 40px; font-weight: 700; line-height: 1.1; }
.order-card__number { font-size: 14px; font-weight: 600; color: var(--color-chrome); font-variant-numeric: tabular-nums; }
.order-card a:not(.btn) { text-decoration: underline; text-underline-offset: 3px; }
.order-card__actions { margin-top: 8px; }
.order-card__spinner {
  width: 22px; height: 22px;
  border: 2px solid var(--color-border-strong); border-top-color: var(--color-fg); border-radius: 50%;
  animation: co-spin 0.9s linear infinite;
}
@keyframes co-spin { to { transform: rotate(360deg); } }

@media (max-width: 989px) {
  .checkout__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .checkout__summary { position: static; order: -1; }
}
@media (max-width: 749px) {
  .checkout { padding-block: 24px 56px; }
  .checkout__title { margin-bottom: 16px; font-size: 30px; }
  .checkout__summary { padding: 16px; }
  .order-page { padding-block: 32px 56px; }
  .order-card { padding: 24px 18px; }
  .order-card__title { font-size: 32px; }
}

/* Сторінка власниці admin.html — посилання для відгуків (admin.js) */
.admin { max-width: 760px; padding-block: 40px 72px; }
.admin h1 { margin: 16px 0 8px; font-size: 36px; font-weight: 700; line-height: 1.1; }
.admin__logo { display: inline-block; }
.admin__logo img { display: block; width: 108px; height: auto; }
/* форма входу й створення — карткою, як вікна на сайті */
.admin #admin-root > .admin__create,
.admin #admin-root > .admin__login { padding: 20px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); }
.admin__lead { margin-bottom: 28px; color: var(--color-muted); line-height: 1.6; }
.admin__muted { color: var(--color-muted); }
.admin__small { font-size: 13px; }
.admin__hint { margin-top: 10px; }
.admin__error { margin-top: 10px; color: var(--color-error); }
.admin__done { color: var(--color-chrome); }
.admin__link { text-decoration: underline; text-underline-offset: 3px; color: inherit; }
.admin__label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 500; }
.admin__create { display: grid; gap: 12px; margin-top: 20px; }
.admin__create .btn { justify-self: start; }
.admin__result,
.admin__item { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-surface); }
.admin__result { margin-top: 16px; }
.admin__code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; }
.admin__h2 { margin: 40px 0 12px; font-size: 22px; font-weight: 700; }
.admin__items { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.admin__item p { margin: 0; }
.admin__item-title { font-weight: 600; }
.admin__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.admin__btn { padding: 8px 14px; border: 1px solid var(--color-border-strong); border-radius: 999px; font-size: 13px; }
.admin__btn:hover { border-color: var(--color-fg); }
.admin__btn--danger { color: var(--color-error); }
.admin__h3 { margin: 28px 0 12px; font-size: 17px; font-weight: 600; }
/* замовлення на admin.html (2026-11-21) */
.admin__toggle { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; color: var(--color-muted); cursor: pointer; }
.admin__toggle input { width: 16px; height: 16px; accent-color: var(--color-buy); }
.admin__order.is-todo { border-color: var(--color-chrome); }   /* оплачено, але ще не відправлено */
.admin__badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.admin__badge--ok { background: rgba(126, 226, 160, 0.16); color: var(--color-success); }
.admin__badge--warn { background: rgba(255, 206, 120, 0.16); color: #ffd486; }
.admin__badge--bad { background: rgba(255, 138, 138, 0.16); color: var(--color-error); }
.admin__badge--muted { background: rgba(214, 226, 255, 0.08); color: var(--color-muted); }
.admin__lines { margin: 0; padding-left: 18px; line-height: 1.6; }
.admin__address {
  margin: 0; padding: 10px 12px;
  border: 1px solid var(--color-border); border-radius: 10px; background: var(--color-field);
  font: inherit; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere;
}
.admin__order-result { display: grid; gap: 6px; padding-top: 4px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius);
  background: var(--color-field);
  font-size: 15px;
  outline: 0;
  transition: border-color 0.15s;
}
.field input:focus,
.field textarea:focus { border-color: var(--color-fg); }
.field textarea { min-height: 150px; resize: vertical; }
input::placeholder,
textarea::placeholder { color: var(--color-muted); opacity: 1; }
.contact-form .btn { justify-self: start; min-width: 160px; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer { padding-top: 16px; } /* над рядком © — лише невеликий відступ (блок підписки прибрано) */
.footer__bottom {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 8px 40px;
  padding-block: 20px 32px;
  /* лінія зверху з відступами по краях, як в оригіналі */
  background: linear-gradient(var(--color-border), var(--color-border)) no-repeat center top / calc(100% - 2 * var(--page-pad)) 1px;
  font-size: 12px;
  color: var(--color-muted);
}
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; } /* Доставка · Повернення · Конфіденційність · Умови → policies.html */
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--color-fg); text-decoration: underline; }
/* © OFFDAY + значки Instagram / Facebook (посилання вставляє main.js у [data-social]) */
.footer__brand { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.footer__brand p { margin: 0; }
.footer__social, .menu-drawer__social { display: flex; gap: 4px; }
.social-link {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; margin: -8px 0; /* велика зона дотику, але рядок не стає вищим */
  border-radius: 50%;
  color: var(--color-muted);
  transition: color 0.2s ease, background-color 0.2s ease;
}
.social-link svg { width: 20px; height: 20px; }
.footer__bottom .social-link:hover,
.social-link:hover { color: var(--color-fg); background: rgb(255 255 255 / 0.06); text-decoration: none; }
.social-link:focus-visible { outline: 2px solid var(--color-fg); outline-offset: 1px; }
.menu-drawer__social { margin-left: auto; }
.menu-drawer__social .social-link { margin: 0; color: var(--color-fg); }

.form-message { margin-top: 8px; font-size: 13px; }
.form-message:empty { display: none; }
.form-message.is-error { color: var(--color-error); }
.form-message.is-success { color: var(--color-success); }

/* ---------- Overlay, drawers ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s, visibility 0s 0.3s;
}
.overlay.is-open { opacity: 1; visibility: visible; transition: opacity 0.3s; }

.drawer {
  position: fixed; top: 0; bottom: 0; z-index: 100;
  display: flex; flex-direction: column;
  width: min(420px, 100%);
  background: var(--color-surface-solid);
  visibility: hidden;
  transition: transform 0.35s var(--ease), visibility 0s 0.35s;
}
.drawer--right { right: 0; transform: translateX(100%); }
.drawer--left { left: 0; transform: translateX(-100%); }
.drawer.is-open { transform: none; visibility: visible; transition: transform 0.35s var(--ease); }
.drawer__header {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 20px 16px 24px;
  border-bottom: 1px solid var(--color-border);
}
.drawer__title { font-size: 20px; font-weight: 700; line-height: 1.2; }
.drawer__title span { font-weight: 400; color: var(--color-muted); }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; }
.drawer__footer { padding: 20px 24px 24px; border-top: 1px solid var(--color-border); }

.menu-drawer__logo { height: 44px; width: auto; }
.menu-drawer__nav { padding-top: 20px; }
.menu-drawer__nav a { display: block; padding: 4px 0; font-size: 28px; line-height: 1.4; text-decoration: none; }
.menu-drawer__footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; }
.menu-drawer__locale-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 0; font-size: 13px; font-weight: 500; letter-spacing: 0.02em; }
.menu-drawer__locale-btn svg { width: 18px; height: 18px; }
.menu-drawer__locale { flex: 1 0 100%; padding-top: 4px; }


/* Cart */
.cart-item {
  display: grid; grid-template-columns: 80px minmax(0, 1fr) auto; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.cart-item img { width: 80px; height: 107px; object-fit: cover; border-radius: 8px; background: #000; }
.cart-item__title { font-size: 13px; font-weight: 500; line-height: 1.35; text-decoration: none; }
.cart-item__title:hover { text-decoration: underline; }
.cart-item__variant { margin-top: 2px; font-size: 12px; color: var(--color-muted); }
.cart-item__price { margin-top: 2px; font-size: 13px; }
.cart-item__controls { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.cart-item__remove { font-size: 12px; color: var(--color-muted); text-decoration: underline; }
.cart-item__remove:hover { color: var(--color-fg); }
.cart-item__total { font-size: 13px; font-weight: 500; white-space: nowrap; }
.cart-empty { display: grid; justify-items: center; gap: 18px; padding: 56px 0; text-align: center; font-size: 16px; }
.cart-summary { display: flex; justify-content: space-between; font-size: 16px; font-weight: 600; }
.cart-note { margin: 4px 0 16px; font-size: 12px; color: var(--color-muted); }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--color-fg); color: var(--color-on-fg);
  font-size: 13px; font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  opacity: 0; pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.25s, transform 0.25s var(--ease);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 989px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .product-story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .rte__title { font-size: 44px; }
  .lookbook__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sg { grid-template-columns: minmax(0, 1fr); }
  .sg__figures { max-width: 640px; }
  .reviews__layout { grid-template-columns: minmax(0, 1fr); }
  .reviews__summary { position: static; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .reviews__title,
  .reviews__write { grid-column: 1 / -1; }
  .reviews__write { justify-self: start; width: auto; }
}

@media (max-width: 749px) {
  :root { --page-pad: 20px; --header-h: 64px; }

  .header__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; }
  .header__mobile-left { display: flex; gap: 2px; margin-left: -8px; }
  .header__nav,
  .header__actions .locale { display: none; }
  .header__logo img { height: 44px; }
  .header__actions { justify-self: end; margin-left: 0; margin-right: -8px; gap: 2px; }

  /* Телефон: лічильник і відступи кнопки трохи менші — «Добавить в корзину» вміщується в один рядок на 375px */
  .product-form__row .qty { width: 112px; }
  .product-form__row .qty button { width: 36px; }
  .product-form__row .add-to-cart { padding-inline: 14px; }

  .product-list { padding-block: 32px 48px; }
  .section-title { font-size: 22px; margin-bottom: 18px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 10px; }

  .hero + .product-section { padding-top: 12px; }
  .hero { --fade: 12%; } /* банер на всю ширину екрана — краї й так за межами, широкий перехід лише гасив би кільця */
  .product { display: block; padding-inline: 0; }
  .product__media { position: static; padding-right: 0; }
  .gallery__slide img { max-height: none; }
  .studio { max-height: none; }
  .gallery__arrow { display: none; }
  .product__info { padding: 24px var(--page-pad) 48px; }
  .product__title { font-size: 28px; }
  .rte__title { font-size: 40px; }
  .rte h3 { font-size: 26px; }
  /* Опис на телефоні — одна колонка: заголовок, відео на всю ширину, текст */
  .product-story { display: block; padding: 8px var(--page-pad) 48px; }
  .product-story__title,
  .product-story__text { padding-left: 0; }
  .product-story__video { position: static; display: block; padding-right: 0; margin: 18px 0 22px; }
  .product-video { width: 100%; }
  .product-video__media { max-height: 78vh; }
  .size-guide { padding-block: 48px 56px; }
  .sg__head { margin-bottom: 20px; }
  .sg__card { padding: 16px; }
  .sg__card--how { display: block; padding: 20px 16px; }
  .sg__card--how .sg__figures { margin-bottom: 20px; }
  /* Схеми на телефоні: два худі в рядок, штани під ними; літери трохи більші */
  .sg__figures { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
  .sg__figure:last-child { grid-column: 1 / -1; justify-self: center; width: 58%; }
  .sg__badge circle { r: 15px; }
  .sg__badge text { font-size: 17px; }
  .sg__table th,
  .sg__table td { padding: 10px 6px; font-size: 14px; }
  .sg__table td { font-size: 13.5px; }
  .sg__key { margin-right: 8px; }

  /* Lookbook на телефоні: 2 фото в ряд, фільтри — одним рядком, що гортається */
  .lookbook { padding-block: 48px 56px; }
  .lookbook__head { margin-bottom: 18px; }
  .lookbook__filters {
    flex-wrap: nowrap;
    width: calc(100% + 2 * var(--page-pad));
    margin-inline: calc(-1 * var(--page-pad));
    padding-inline: var(--page-pad);
    overflow-x: auto;
    scrollbar-width: none;
  }
  .lookbook__filters::-webkit-scrollbar { display: none; }
  .lookbook__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .lookbook__tile { border-radius: 10px; }
  .lightbox__img { inset: 60px 8px 4px; width: calc(100% - 16px); height: calc(100% - 64px); }
  .lightbox__nav { width: 40px; height: 40px; background: rgba(0, 0, 0, 0.35); }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }

  /* Відгуки на телефоні: усе в одну колонку, форма — на весь екран */
  .reviews { padding-block: 8px 64px; }
  .reviews__summary { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .reviews__write { justify-self: stretch; width: 100%; }
  .reviews__avg { font-size: 56px; }
  .review { padding: 20px 18px; }
  .review__photo { width: 76px; }
  .review-dialog {
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .review-form { padding: 12px var(--page-pad) 32px; }
  .review-form__row { grid-template-columns: 1fr; }
  .review-form__thumb,
  .review-form__add { width: 84px; }

  /* 26px від низу (+ «безпечна зона» iPhone, якщо є): з 10px панель лягала на заокруглені кути екрана
     («занадто низько і виходить за рамки телефону, додай ще десь 16px», 2026-11-14) */
  .sticky-atc { bottom: calc(26px + env(safe-area-inset-bottom, 0px)); gap: 10px; }
  .sticky-atc__price { display: none; }
  .sticky-atc .btn { padding: 0 14px; }

  .field-row { grid-template-columns: 1fr; }
  .contact-page h1,
  .policies-page h1 { font-size: 32px; }
  .policy__title { font-size: 24px; }
  .contact-form .btn { justify-self: stretch; }

  .footer__bottom { grid-template-columns: 1fr; }
  .site-footer { padding-top: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Банер без руху: просто фото */
  .hero__stage,
  .hero__girl,
  .hero__glint::before { animation: none !important; }
  .hero__spark { display: none; }
  /* Фон без руху: блискітки світяться рівно, пил і орбіти не їдуть */
  .site-fx__spark,
  .site-fx__dust,
  .site-fx__lines { animation: none !important; }
  .site-fx__spark { opacity: 0.75; }
}
