/* ==========================================================================
   SERA - главная страница интернет-магазина одежды
   Содержание:
   1. Токены (цвета, шрифты, отступы)   4. Утилиты и заглушки фото
   2. Сброс и база                     5. Компоненты (кнопки, курсор, шапка)
   3. Типографика                      6. Секции страницы
                                       7. Адаптив и reduced-motion
   Анимируем только transform / opacity - это держит 60 FPS.
   ========================================================================== */

/* 1. ТОКЕНЫ ---------------------------------------------------------------- */
:root {
  /* палитра: тёплая бумага + чернила, один акцент */
  --paper:   #f2efe9;
  --paper-2: #e8e4da;
  --ink:     #0e0d0c;
  --ink-soft:#3a3733;
  --muted:   #7d776c;
  --night:   #0b0a09;
  --night-2: #171513;
  --accent:  #d8441f;
  --line:      rgb(14 13 12 / .16);
  --line-inv:  rgb(242 239 233 / .18);

  /* шрифты */
  --ff-display: "Cormorant", "Times New Roman", serif;
  --ff-text:    "Onest", system-ui, sans-serif;

  /* fluid-типографика: корневой размер плавно растёт от 14px (мобильный) до ~28px (4K),
     а всё остальное считается в rem - поэтому вся вёрстка масштабируется бесшовно */
  --fs-label: .72rem;
  --fs-small: .84rem;
  --fs-body:  clamp(.95rem, .9rem + .2vw, 1.1rem);
  --fs-lead:  clamp(1.15rem, 1rem + .7vw, 1.9rem);
  --fs-h2:    clamp(2.8rem, 1.2rem + 6vw, 12rem);
  --fs-h3:    clamp(1.5rem, 1.1rem + 1.4vw, 3rem);
  /* ограничиваем и по высоте экрана, чтобы на низких окнах hero помещался целиком */
  --fs-mega:  clamp(5rem, min(1.6rem + 15.5vw, 24svh), 42rem);

  /* ритм */
  --gutter: clamp(1rem, .5rem + 2vw, 3.5rem);
  --section: clamp(6rem, 3rem + 10vw, 18rem);

  /* движение */
  --ease-out:    cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
}

/* 2. СБРОС И БАЗА ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  font-size: clamp(14px, 12.2px + .4vw, 30px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
/* Lenis берёт управление прокруткой, нативное сглаживание отключаем */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoscroll) { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ff-text);
  font-size: var(--fs-body);
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--paper); }

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

/* 3. ТИПОГРАФИКА ------------------------------------------------------------- */
.eyebrow {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}

.h2 {
  font-family: var(--ff-display);
  font-size: var(--fs-h2);
  font-weight: 300;
  line-height: .88;
  letter-spacing: -.025em;
}
.h2 em, .hero__title em, .about__giant em { font-style: italic; font-weight: 300; }

/* Построчная маска для заголовков: текст выезжает из-под линии */
.line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.line__in { display: block; }

/* 4. УТИЛИТЫ И ЗАГЛУШКИ ФОТО ----------------------------------------------------- */
:root {
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  /* светлое зерно для тёмных секций (без mix-blend-mode - он дорогой для GPU) */
  --noise-light: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* .media - рамка под фото. Внутрь кладут <img> (или заглушку .ph, если фото ещё нет) - ведут себя одинаково */
.media { position: relative; overflow: hidden; background: var(--paper-2); }
.media > img,
.media > .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* .ph - заглушка: тональный градиент + зерно + подпись. Заменяется на <img src="..."> без правок CSS */
.ph {
  --a: #cfc4b2; --b: #a89b86; --ph-ink: rgb(14 13 12 / .5);
  background:
    radial-gradient(120% 80% at 18% 0%, rgb(255 255 255 / .38), transparent 60%),
    linear-gradient(168deg, var(--a), var(--b));
}
.ph::before {
  content: ""; position: absolute; inset: 0;
  background-image: var(--noise); background-size: 220px;
  opacity: .16; mix-blend-mode: multiply; pointer-events: none;
}
.ph::after {
  content: attr(data-label);
  position: absolute; left: 1rem; bottom: 1rem;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ph-ink);
}
/* тона: песок, графит, камень, глина, шалфей, слоновая кость, чернильный */
.ph--sand     { --a: #d3c8b6; --b: #a99c86; }
.ph--graphite { --a: #4a4641; --b: #1c1a18; --ph-ink: rgb(242 239 233 / .5); }
.ph--stone    { --a: #c3bfb6; --b: #8f8b83; }
.ph--clay     { --a: #c29579; --b: #8a5d49; --ph-ink: rgb(242 239 233 / .55); }
.ph--sage     { --a: #a6ab9a; --b: #6f7768; --ph-ink: rgb(242 239 233 / .55); }
.ph--ivory    { --a: #ece6d9; --b: #cdc3b0; }
.ph--ink      { --a: #525b68; --b: #232830; --ph-ink: rgb(242 239 233 / .5); }

/* 5. КОМПОНЕНТЫ -------------------------------------------------------------- */

/* ссылка «на главное содержимое» для клавиатуры */
.skip {
  position: fixed; top: .5rem; left: .5rem; z-index: 300;
  padding: .6rem 1rem; background: var(--paper); color: var(--ink);
  transform: translateY(-200%);
}
.skip:focus { transform: none; }

/* ссылка с подчёркиванием, которое «перетекает» при наведении */
.link-u { position: relative; display: inline-block; }
.link-u::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -.15em; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform .6s var(--ease-out);
}
.link-u:hover::after, .link-u:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* кнопка: заливка выезжает снизу, стрелка уходит и возвращается */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 1rem;
  padding: 1.15em 1.9em; border: 1px solid currentColor; border-radius: 100vmax;
  font-size: var(--fs-small); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  overflow: hidden; isolation: isolate; will-change: transform;
}
.btn__bg {
  position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--fill, var(--paper)); transform: translateY(101%);
  transition: transform .7s var(--ease-out);
}
.btn:hover .btn__bg, .btn:focus-visible .btn__bg { transform: translateY(0); }
.btn__label, .btn__arrow { position: relative; transition: color .5s var(--ease-out), transform .7s var(--ease-out); }
.btn:hover .btn__label { color: var(--hover-ink, var(--ink)); }
.btn:hover .btn__arrow { color: var(--hover-ink, var(--ink)); transform: translateX(.35rem); }
.btn--light { color: var(--paper); --fill: var(--paper); --hover-ink: var(--ink); }
.btn--dark  { color: var(--ink);   --fill: var(--ink);   --hover-ink: var(--paper); }

/* курсор: появляется только у устройств с мышью */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 250; pointer-events: none;
  width: 0; height: 0; display: none;
}
.cursor::before {
  content: ""; position: absolute; left: 0; top: 0; width: 1rem; height: 1rem; margin: -.5rem 0 0 -.5rem;
  border-radius: 50%; background: #fff; mix-blend-mode: difference;
  transform: scale(var(--s, 1)); transition: transform .5s var(--ease-out);
}
.cursor__label {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(.6);
  opacity: 0; font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  white-space: nowrap; color: var(--ink);
  transition: opacity .35s, transform .5s var(--ease-out);
}
.cursor.is-label::before { --s: 5.2; mix-blend-mode: normal; background: var(--paper); }
.cursor.is-label .cursor__label { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.cursor.is-link::before { --s: 2.4; }
@media (hover: hover) and (pointer: fine) {
  .cursor { display: block; }
  html.js body, html.js a, html.js button { cursor: none; }
}

/* прелоадер */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--night); color: var(--paper);
  display: grid; place-items: center; will-change: transform;
}
.loader__brand {
  font-family: var(--ff-display); font-weight: 300; font-size: clamp(5rem, 2rem + 16vw, 40rem);
  line-height: .8; letter-spacing: .02em; overflow: hidden; padding: .05em .02em .12em;
}
.loader__brand span { display: inline-block; }
.loader__note, .loader__count {
  position: absolute; bottom: var(--gutter);
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .16em; text-transform: uppercase;
}
.loader__note  { left: var(--gutter); color: rgb(242 239 233 / .55); }
.loader__count { right: var(--gutter); font-variant-numeric: tabular-nums; }
.loader__count sup { font-size: .7em; margin-left: .15em; }
.loader__bar {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
}

/* шапка */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 1.4rem var(--gutter); color: var(--ink);
  font-size: var(--fs-small); font-weight: 500; letter-spacing: .08em; text-transform: uppercase;
  transition: color .5s var(--ease-out);
  will-change: transform;
}
/* поверх тёмных секций (hero, «О бренде») и мобильного меню шапка светлая - класс ставит JS */
.header.is-light, .header.is-menu { color: var(--paper); }
.header__logo {
  font-family: var(--ff-display); font-size: 2rem; font-weight: 400; letter-spacing: .12em; line-height: 1;
  justify-self: start;
}
.header__nav { display: flex; gap: clamp(1.5rem, 1rem + 2vw, 4rem); }
.header__tools { display: flex; justify-content: flex-end; align-items: center; gap: clamp(1rem, .5rem + 1.5vw, 2.5rem); }
.header__tool { letter-spacing: inherit; text-transform: inherit; font-weight: inherit; }
.header__count {
  display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; margin-left: .35em;
  border: 1px solid currentColor; border-radius: 50%; font-size: .85em; font-variant-numeric: tabular-nums;
}
.burger { display: none; position: relative; width: 2.6rem; height: 2.6rem; }
.burger__line {
  position: absolute; left: .4rem; right: .4rem; height: 1px; background: currentColor;
  transition: transform .6s var(--ease-out);
}
.burger__line:nth-child(1) { top: calc(50% - .22rem); }
.burger__line:nth-child(2) { top: calc(50% + .22rem); }
.burger[aria-expanded="true"] .burger__line:nth-child(1) { transform: translateY(.22rem) rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { transform: translateY(-.22rem) rotate(-45deg); }

/* мобильное меню */
.menu {
  position: fixed; inset: 0; z-index: 90; background: var(--night); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center; padding: 7rem var(--gutter) var(--gutter);
  transform: translateY(-100%); visibility: hidden;
  transition: transform .9s var(--ease-in-out), visibility 0s .9s;
}
.menu.is-open { transform: none; visibility: visible; transition: transform .9s var(--ease-in-out); }
.menu__nav { display: grid; gap: .4rem; }
.menu__link {
  display: block; overflow: hidden; padding-bottom: .1em;
  font-family: var(--ff-display); font-size: clamp(3.4rem, 2rem + 9vw, 9rem); font-weight: 300; line-height: .95;
}
.menu__link span { display: block; transform: translateY(105%); transition: transform .9s var(--ease-out); }
.menu.is-open .menu__link span { transform: none; }
.menu.is-open .menu__link:nth-child(1) span { transition-delay: .25s; }
.menu.is-open .menu__link:nth-child(2) span { transition-delay: .32s; }
.menu.is-open .menu__link:nth-child(3) span { transition-delay: .39s; }
.menu.is-open .menu__link:nth-child(4) span { transition-delay: .46s; }
.menu__foot { margin-top: auto; font-size: var(--fs-label); letter-spacing: .16em; text-transform: uppercase; color: rgb(242 239 233 / .5); }

/* 6. СЕКЦИИ ------------------------------------------------------------------ */

/* --- HERO --- */
.hero {
  position: relative; min-height: 100svh; isolation: isolate; overflow: clip;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 7rem var(--gutter) 0;
  background: var(--night); color: var(--paper);
}
.hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero__glow {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  will-change: transform;
}
.hero__glow--a {
  left: -18vmax; top: -22vmax;
  background: radial-gradient(closest-side, rgb(216 68 31 / .34), transparent);
  animation: drift-a 18s ease-in-out infinite alternate;
}
.hero__glow--b {
  right: -24vmax; bottom: -30vmax;
  background: radial-gradient(closest-side, rgb(194 149 121 / .28), transparent);
  animation: drift-b 22s ease-in-out infinite alternate;
}
.hero__grain {
  position: absolute; inset: -10%; background-image: var(--noise-light); background-size: 220px;
  opacity: .07; animation: grain 1.2s steps(6) infinite; will-change: transform;
}
@keyframes drift-a { to { transform: translate3d(22vw, 16vh, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-20vw, -18vh, 0) scale(1.2); } }
@keyframes grain {
  0%   { transform: translate3d(0, 0, 0); }
  20%  { transform: translate3d(-3%, 2%, 0); }
  40%  { transform: translate3d(2%, -3%, 0); }
  60%  { transform: translate3d(-2%, -2%, 0); }
  80%  { transform: translate3d(3%, 2%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.hero__media {
  position: absolute; z-index: -1; right: calc(var(--gutter) + 5vw); top: 12svh;
  height: 72svh; aspect-ratio: 3 / 4; max-width: 40vw; background: var(--night-2);
}
.hero__media :is(img, .ph) { height: 112%; top: -6%; } /* запас по высоте для параллакса внутри рамки */
.hero__card { position: absolute; z-index: -1; width: clamp(8rem, 13vw, 28rem); }
.hero__card .media { aspect-ratio: 4 / 5; }
.hero__card figcaption {
  margin-top: .7rem; font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase;
  color: rgb(242 239 233 / .6);
}
.hero__card--a { left: 41vw; top: 14svh; }
.hero__card--b { right: var(--gutter); top: 44svh; width: clamp(7rem, 9vw, 20rem); }
.hero__media .ph::after { top: 4.5rem; bottom: auto; }

.hero__eyebrow { margin-bottom: 1.6rem; font-size: var(--fs-label); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgb(242 239 233 / .7); }

.hero__title {
  font-family: var(--ff-display); font-weight: 300; font-size: var(--fs-mega);
  line-height: .82; letter-spacing: -.035em; color: var(--paper);
}
.hero__title .line:nth-child(2) { padding-left: 7vw; }
.hero__title .line:nth-child(3) { padding-left: 24vw; }

.hero__foot {
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr); align-items: center; gap: 2rem;
  margin-top: clamp(1.5rem, 1rem + 2vw, 4rem); padding: 1.6rem 0 1.8rem;
  border-top: 1px solid var(--line-inv);
}
.hero__lead { max-width: 30rem; font-size: var(--fs-small); line-height: 1.55; color: rgb(242 239 233 / .72); }
.hero__scroll {
  justify-self: end; display: flex; align-items: center; gap: .9rem;
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgb(242 239 233 / .7);
}
.hero__scroll-line { position: relative; width: 1px; height: 3rem; background: var(--line-inv); overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; inset: 0; background: var(--paper);
  animation: scroll-line 2.2s var(--ease-in-out) infinite;
}
@keyframes scroll-line {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* --- БЕГУЩАЯ СТРОКА --- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding: clamp(1rem, .6rem + 1vw, 2rem) 0; background: var(--paper); }
.marquee__track { display: flex; width: max-content; will-change: transform; }
.marquee__group {
  display: flex; align-items: center; flex-shrink: 0; gap: clamp(1.5rem, 1rem + 2vw, 4rem); padding-right: clamp(1.5rem, 1rem + 2vw, 4rem);
  font-family: var(--ff-display); font-style: italic; font-weight: 300;
  font-size: clamp(1.8rem, 1rem + 3vw, 6rem); line-height: 1; white-space: nowrap;
}
.marquee__dot { width: .35em; height: .35em; border-radius: 50%; background: var(--accent); flex-shrink: 0; }

/* --- НОВАЯ КОЛЛЕКЦИЯ (горизонтальный скролл) --- */
.collection { position: relative; background: var(--paper); }
/* По умолчанию (мобильные, reduced-motion, без JS) - обычная лента со свайпом.
   Класс .is-pinned JS добавляет только на десктопе: тогда секция закрепляется, а лента едет по скроллу */
.collection__pin { display: flex; flex-direction: column; padding: 6rem 0 3rem; }
.collection__bar { display: flex; justify-content: space-between; align-items: baseline; padding: 1.2rem var(--gutter) 0; }
.collection__counter { font-size: var(--fs-small); font-weight: 500; letter-spacing: .12em; font-variant-numeric: tabular-nums; color: var(--muted); }
.collection__counter [data-current] { color: var(--ink); }

.collection__viewport {
  display: flex; align-items: center; padding: 2rem 0;
  overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter);
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.collection__viewport::-webkit-scrollbar { display: none; }
.is-pinned .collection__pin { height: 100svh; padding-bottom: 0; }
.is-pinned .collection__viewport { flex: 1; min-height: 0; padding: 0; overflow: hidden; scroll-snap-type: none; }
.collection__track {
  display: flex; align-items: center; flex-shrink: 0;
  gap: clamp(2rem, 1rem + 4.5vw, 8rem); padding: 0 var(--gutter);
  will-change: transform;
}

.collection__intro { flex: 0 0 auto; width: clamp(18rem, 38vw, 80rem); padding-right: 2vw; scroll-snap-align: start; }
.collection__text { max-width: 24rem; margin-top: 2rem; font-size: var(--fs-small); line-height: 1.6; color: var(--ink-soft); }
.collection__hint { display: flex; align-items: center; gap: 1rem; margin-top: 2.2rem; font-size: var(--fs-label); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.collection__hint span { width: 4rem; height: 1px; background: var(--ink); transform-origin: left; animation: hint 2.4s var(--ease-in-out) infinite; }
@keyframes hint { 0%, 100% { transform: scaleX(.3); } 50% { transform: scaleX(1); } }

/* карточка товара: высота рамки задаётся в svh, ширина = 3/4 высоты */
.product { --h: 52svh; position: relative; flex: 0 0 auto; width: calc(var(--h) * .75); scroll-snap-align: center; }
.product--l { --h: 58svh; }
.product--s { --h: 44svh; }
/* асимметрия по вертикали и разные размеры - только в закреплённом режиме, где хватает высоты */
.is-pinned .product { --h: 46svh; }
.is-pinned .product--l { --h: 54svh; }
.is-pinned .product--s { --h: 36svh; }
.is-pinned .product--down { transform: translateY(5svh); }
.is-pinned .product--up   { transform: translateY(-5svh); }
.product__link { display: block; }
.product__media { height: var(--h); width: 100%; }
.product__imgs { position: absolute; inset: 0; transition: transform 1.2s var(--ease-out); will-change: transform; }
.product__imgs > :is(img, .ph) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product__alt { opacity: 0; transition: opacity .9s var(--ease-out); }
.product:hover .product__imgs { transform: scale(1.06); }
.product:hover .product__alt { opacity: 1; }
.product__badge {
  position: absolute; top: 1rem; left: 1rem; padding: .35em .8em; border-radius: 100vmax;
  background: var(--paper); color: var(--ink); font-size: var(--fs-label); font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
.product__info { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.product__name { font-family: var(--ff-display); font-size: clamp(1.25rem, .9rem + 1vw, 2.4rem); font-weight: 400; line-height: 1; letter-spacing: -.01em; }
.product__meta { margin-top: .35rem; font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.product__price { font-size: var(--fs-small); font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.product__add {
  position: absolute; left: .8rem; right: .8rem; top: calc(var(--h) - 3.8rem);
  padding: 1rem; border-radius: 100vmax; background: var(--ink); color: var(--paper);
  font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transform: translateY(150%); opacity: 0; transition: transform .8s var(--ease-out), opacity .5s, background .4s;
}
.product:hover .product__add, .product__add:focus-visible { transform: none; opacity: 1; }
.product__add:hover { background: var(--accent); }
.product__add.is-added { background: var(--accent); }

.collection__end { flex: 0 0 auto; display: grid; place-items: center; width: clamp(14rem, 22vw, 40rem); }
.collection__end-circle {
  display: grid; place-content: center; gap: .6rem; text-align: center;
  width: 100%; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--ink);
  font-family: var(--ff-display); font-size: var(--fs-h3); font-style: italic; line-height: 1;
  transition: background .6s var(--ease-out), color .6s var(--ease-out);
}
.collection__end-count { font-family: var(--ff-text); font-style: normal; font-size: var(--fs-label); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.collection__end:hover .collection__end-circle { background: var(--ink); color: var(--paper); }

.collection__progress { display: none; position: relative; height: 1px; margin: 0 var(--gutter) 1.6rem; background: var(--line); }
.is-pinned .collection__progress { display: block; }
.collection__progress span { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; }

/* --- КАТАЛОГ (асимметричная сетка 12 колонок) --- */
.catalog { padding: var(--section) var(--gutter); background: var(--paper); }
.catalog__head {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 1.6rem;
  align-items: end; margin-bottom: clamp(3rem, 2rem + 5vw, 10rem);
}
.catalog__head .eyebrow { grid-column: 1 / -1; }
.catalog__head .h2 { grid-column: 1 / span 9; }
.catalog__all { grid-column: 10 / -1; justify-self: end; font-size: var(--fs-small); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }

.catalog__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: clamp(3rem, 2rem + 4vw, 8rem);
  align-items: start;
}
.tile { display: block; }
.tile__media { width: 100%; }
.tile__media :is(img, .ph) { height: 114%; top: -7%; will-change: transform; }
.tile__cap { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 1rem; margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.tile__num, .tile__count { font-size: var(--fs-label); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tile__title { font-family: var(--ff-display); font-size: var(--fs-h3); font-weight: 400; line-height: 1; letter-spacing: -.01em; transition: transform .8s var(--ease-out); }
.tile:hover .tile__title { transform: translateX(.5rem); }
.tile__media :is(img, .ph) { transition: scale 1.4s var(--ease-out); }
.tile:hover .tile__media :is(img, .ph) { scale: 1.05; }

.tile--a { grid-column: 1 / span 5; }
.tile--a .tile__media { aspect-ratio: 4 / 5; }
.tile--b { grid-column: 7 / span 4; margin-top: clamp(4rem, 2rem + 10vw, 16rem); }
.tile--b .tile__media { aspect-ratio: 1; }
.catalog__note {
  grid-column: 11 / -1; align-self: end; max-width: 16rem;
  font-size: var(--fs-small); line-height: 1.6; color: var(--ink-soft);
}
.tile--c { grid-column: 2 / span 4; }
.tile--c .tile__media { aspect-ratio: 3 / 4; }
.tile--d { grid-column: 7 / span 6; margin-top: clamp(3rem, 1rem + 8vw, 12rem); }
.tile--d .tile__media { aspect-ratio: 5 / 4; }

/* --- О БРЕНДЕ --- */
.about { padding: var(--section) 0; background: var(--night); color: var(--paper); overflow: clip; }
.about__eyebrow { padding: 0 var(--gutter); color: rgb(242 239 233 / .55); }
.about__statement {
  max-width: 34ch; margin: clamp(2rem, 1rem + 3vw, 5rem) 0 0; padding: 0 var(--gutter);
  font-family: var(--ff-display); font-weight: 300; font-size: clamp(2rem, 1rem + 2.8vw, 5.5rem);
  line-height: 1; letter-spacing: -.02em;
}
.about__statement .w { display: inline-block; opacity: .16; will-change: opacity; }

.about__giant { margin-top: clamp(3rem, 2rem + 4vw, 7rem); display: grid; gap: .1em; font-family: var(--ff-display); font-weight: 300; font-size: clamp(3rem, 1rem + 8vw, 20rem); line-height: .9; letter-spacing: -.03em; }
.about__row { display: flex; align-items: baseline; gap: .35em; width: max-content; margin: 0; white-space: nowrap; will-change: transform; }
.about__row em { font-style: italic; color: var(--accent); }
.about__row--outline { color: transparent; -webkit-text-stroke: 1px rgb(242 239 233 / .55); }

.about__grid {
  display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: clamp(3rem, 2rem + 4vw, 8rem);
  align-items: start; margin-top: clamp(5rem, 3rem + 8vw, 14rem); padding: 0 var(--gutter);
}
.about__img :is(img, .ph) { height: 116%; top: -8%; }
.about__img--a { grid-column: 1 / span 4; aspect-ratio: 4 / 5; }
.about__copy { grid-column: 6 / span 4; display: grid; gap: 2.2rem; justify-items: start; align-self: center; font-size: var(--fs-lead); line-height: 1.45; font-weight: 300; }
.about__copy p { font-family: var(--ff-display); font-size: calc(var(--fs-lead) * 1.25); line-height: 1.25; }
.about__img--b { grid-column: 10 / span 3; aspect-ratio: 3 / 4; margin-top: clamp(4rem, 2rem + 10vw, 14rem); }
.about__stats {
  grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); column-gap: var(--gutter); margin: 0;
  border-top: 1px solid var(--line-inv);
}
.about__stats > div { display: flex; flex-direction: column-reverse; gap: .8rem; padding: 2rem 0 0; }
.about__stats dd { margin: 0; font-family: var(--ff-display); font-weight: 300; font-size: clamp(3.4rem, 1.4rem + 7vw, 14rem); line-height: .9; font-variant-numeric: tabular-nums; }
.about__pre { font-size: .32em; font-style: italic; letter-spacing: .02em; margin-right: .2em; color: rgb(242 239 233 / .6); }
.about__stats dt { font-size: var(--fs-label); font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: rgb(242 239 233 / .55); }

/* --- ФУТЕР --- */
.footer { position: relative; padding: clamp(5rem, 3rem + 6vw, 12rem) var(--gutter) 1.6rem; background: var(--paper); color: var(--ink); overflow: clip; }
.footer__top { display: grid; grid-template-columns: repeat(12, 1fr); column-gap: var(--gutter); row-gap: 3.5rem; }
.footer__news { grid-column: 1 / span 4; }
.footer__title { margin-top: 1.4rem; max-width: 20ch; font-family: var(--ff-display); font-weight: 300; font-size: clamp(2.2rem, 1.2rem + 3vw, 6rem); line-height: .95; letter-spacing: -.02em; }
.footer__title em { font-style: italic; }
.footer__form { position: relative; display: flex; margin-top: 2.4rem; border-bottom: 1px solid var(--ink); max-width: 30rem; }
.footer__form input {
  flex: 1; min-width: 0; padding: 1rem 0; border: 0; background: none; color: inherit;
  font: inherit; font-size: var(--fs-small); outline: none;
}
.footer__form input::placeholder { color: var(--muted); }
.footer__form button { padding: 0 .4rem 0 1rem; font-size: 1.4rem; transition: transform .6s var(--ease-out); }
.footer__form button:hover { transform: translateX(.4rem); }
.footer__ok { position: absolute; left: 0; top: calc(100% + .8rem); font-size: var(--fs-label); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.footer__col { grid-column: span 2; font-size: var(--fs-small); }
.footer__col:nth-of-type(1) { grid-column: 6 / span 2; }
.footer__col .eyebrow { margin-bottom: 1.2rem; }
.footer__col li + li { margin-top: .55rem; }
.footer__col:last-child { grid-column: span 3; }
.footer__social { display: flex; gap: 1.2rem; margin-top: 1.2rem; }

.footer__word {
  margin: clamp(3rem, 2rem + 6vw, 10rem) 0 0; text-align: center;
  font-family: var(--ff-display); font-weight: 300; font-size: clamp(6rem, 33vw, 90rem);
  line-height: .74; letter-spacing: .02em; white-space: nowrap; user-select: none; overflow: hidden; padding-bottom: .06em;
}
.footer__word span { display: inline-block; will-change: transform; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 1.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line);
  font-size: var(--fs-label); letter-spacing: .12em; text-transform: uppercase; color: var(--muted);
}
.footer__bottom a:hover { color: var(--ink); }

/* 7. АДАПТИВ И REDUCED-MOTION ------------------------------------------------------ */
@media (max-width: 1100px) {
  .header { grid-template-columns: 1fr auto; }
  .header__nav { display: none; }
  .burger { display: block; }
  .header__tool--search { display: none; }
  .hero__card--a { left: 30vw; }
  .about__img--a { grid-column: 1 / span 6; }
  .about__copy { grid-column: 7 / -1; }
  .about__img--b { grid-column: 8 / span 5; }
  .footer__news { grid-column: 1 / -1; }
  .footer__col, .footer__col:nth-of-type(1), .footer__col:last-child { grid-column: span 4; }
}

@media (max-width: 900px) {
  /* лента-свайп: карточки «залипают» по центру, интро занимает почти весь экран */
  .collection__track { align-items: flex-start; }
  .collection__intro { width: 78vw; }
  .product__add { transform: none; opacity: 1; }
}

@media (max-width: 760px) {
  .hero { padding-top: 6rem; }
  .hero__media { right: var(--gutter); top: 9svh; height: 50svh; max-width: 62vw; }
  .hero__card { display: none; }
  .hero__title .line:nth-child(2) { padding-left: 0; }
  .hero__title .line:nth-child(3) { padding-left: 14vw; }
  .hero__foot { grid-template-columns: 1fr; gap: 1.4rem; }
  .hero__scroll { display: none; }
  .catalog__head .h2, .catalog__all { grid-column: 1 / -1; justify-self: start; }
  .catalog__grid { row-gap: 3rem; }
  .tile--a { grid-column: 1 / span 11; }
  .tile--b { grid-column: 3 / -1; margin-top: 0; }
  .catalog__note { grid-column: 1 / span 10; }
  .tile--c { grid-column: 1 / span 10; }
  .tile--d { grid-column: 1 / -1; margin-top: 0; }
  .about__img--a { grid-column: 1 / span 9; }
  .about__copy { grid-column: 1 / -1; }
  .about__img--b { grid-column: 4 / -1; margin-top: 0; }
  .about__stats { grid-template-columns: 1fr; }
  .about__stats > div { flex-direction: row-reverse; justify-content: space-between; align-items: baseline; padding: 1.2rem 0; border-bottom: 1px solid var(--line-inv); }
  .footer__col, .footer__col:nth-of-type(1), .footer__col:last-child { grid-column: span 6; }
  .footer__col:last-child { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; }
}

/* Для тач-устройств: «наведение» недоступно, поэтому быстрые действия показываем сразу */
@media (hover: none) {
  .product__add { transform: none; opacity: 1; }
}

/* Уважаем системную настройку «уменьшить движение» */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .about__statement .w { opacity: 1; }
}

/* счётчик коллекции остаётся справа без подписи слева */
.collection__counter { margin-left: auto; }

/* цифры с нижними выносными элементами (3, 4, 5...) не должны задевать подпись */
.about__stats dd { padding-bottom: .24em; }
