@import url("https://fonts.googleapis.com/css2?family=Golos+Text:wght@700;800&display=swap");

:root {
  /* светлая тема: страница белая, тёмные — только тикер/шапка и футер (--dark*) */
  --bg: #f2f2f0;
  --fg: #0a0a0a;
  --muted: #6f6f66;
  --line: rgba(10, 10, 10, 0.14);
  --card: #e8e8e3;
  --dark: #0a0a0a;
  --dark-fg: #f2f2f0;
  --ticker-h: 38px;
  --hdr-h: 64px;
  --top-h: 102px; /* ticker + header, обновляется из JS */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --pad: clamp(16px, 4vw, 56px);
  /* единая типографика заголовков и вертикальные интервалы (кратные 8) */
  --head-size: clamp(28px, 3.2vw, 40px);    /* ~32px — единый размер заголовков секций/страниц */
  --gap-top: clamp(72px, 8vw, 112px);       /* единый отступ до контента */
  --gap-section: clamp(72px, 8vw, 112px);   /* единое расстояние между секциями */
  --gap-title: clamp(24px, 3vw, 40px);      /* отступ от заголовка до контента */
  --gap-bottom: clamp(64px, 9vw, 120px);    /* нижний отступ секции до футера */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--fg);
  font-family: "Inter", system-ui, sans-serif; font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  padding-top: var(--top-h);
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: var(--fg); color: var(--bg); }

/* заголовки — единая дисплейная гарнитура Golos Text */
h1, h2, h3,
.hero__title, .section-head__title, .page-hero__title,
.lookbook__name,
.product__name, .about__lead {
  font-family: "Golos Text", "Inter", system-ui, sans-serif;
}

/* «дорогое» появление: размытие + лёгкое искажение (без подъёма снизу) */
.reveal {
  opacity: 0;
  filter: blur(12px);
  transform: scale(0.985) skewY(0.5deg);
  transition:
    opacity 1.1s cubic-bezier(0.22, 1, 0.36, 1),
    filter 1.3s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, filter, transform;
}
.reveal.is-in { opacity: 1; filter: blur(0); transform: none; }
/* единый «печатающийся» текст: каретка в конце набора */
.tw-caret {
  display: inline-block; width: 0.08em; min-width: 2px; height: 1em; margin-left: 0.06em;
  background: currentColor; vertical-align: -0.08em;
  animation: twCaret 0.85s steps(1) infinite;
}
@keyframes twCaret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
/* лёгкий каскад для блоков доставки */
.support__card.reveal:nth-child(2) { transition-delay: 0.1s; }
.support__card.reveal:nth-child(3) { transition-delay: 0.2s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border: 1px solid var(--fg); border-radius: 0;
  font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; background: transparent; color: var(--fg);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
}
.btn--solid { background: var(--fg); color: var(--bg); }
.btn--solid:hover { transform: translateY(-2px); }
.btn--block { width: 100%; }
.btn--ghost:hover { background: var(--fg); color: var(--bg); }
/* белая заливка + чёрный текст (например, «К товарам» на видео) */
.btn--light { background: #fff; color: #0a0a0a; border-color: #fff; }
.btn--light:hover { background: transparent; color: #fff; border-color: #fff; transform: translateY(-2px); }

/* ========================================================
   LOADER (мерцающий логотип)
   ======================================================== */
/* лоадер всегда тёмный (интро), даже на светлой теме */
.loader {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center;
  background: var(--dark); color: var(--dark-fg);
  transition: opacity 0.35s var(--ease), visibility 0.35s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader__inner { display: flex; align-items: center; justify-content: center; padding: 0 24px; }
.loader__logo {
  width: 86px; height: auto; filter: brightness(0) invert(1);
  animation: logoFlicker 1.1s steps(1) infinite;
}

/* ========================================================
   TOPBAR: тикер + шапка (fixed overlay)
   ======================================================== */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 90; transition: transform 0.6s var(--ease), opacity 0.6s var(--ease); }
/* скрыт над hero, плавно выезжает после первого скролла */
.topbar.is-hidden { transform: translateY(-110%); opacity: 0; pointer-events: none; }

/* --- тикер --- */
.ticker {
  background: var(--dark); color: var(--dark-fg);
  height: var(--ticker-h); display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: height 0.35s var(--ease);
}
.ticker__rotator {
  position: relative; height: 1.2em; line-height: 1.2em; text-align: center;
}
.ticker__rotator span {
  display: block; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600; transition: font-size 0.35s var(--ease);
}
.topbar.is-compact .ticker { height: 24px; }
.topbar.is-compact .ticker__rotator span { font-size: 10px; }

/* --- непрозрачная шапка с физическим вырезом центрального логотипа --- */
.hdr {
  --hdr-logo-mask: url("../assets/heros.png");
  --hdr-logo-w: 132px;
  --hdr-logo-h: 32px;
  position: relative; height: var(--hdr-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line); /* граница, чтобы белая шапка не сливалась с белым фоном */
  overflow: visible;
}
.hdr { transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
/* шапка и центральная mask-форма видимы и на первом экране главной */
.topbar.is-top .hdr { opacity: 1; transform: none; pointer-events: auto; }

/*
 * Непрозрачная поверхность header. Alpha-маска логотипа исключается из
 * полноразмерной маски, оставляя в фоне настоящее прозрачное отверстие.
 */
.hdr__surface {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #fff;
  -webkit-mask-image: linear-gradient(#000 0 0), var(--hdr-logo-mask);
  mask-image: linear-gradient(#000 0 0), var(--hdr-logo-mask);
  -webkit-mask-position: 0 0, center;
  mask-position: 0 0, center;
  -webkit-mask-size: 100% 100%, var(--hdr-logo-w) var(--hdr-logo-h);
  mask-size: 100% 100%, var(--hdr-logo-w) var(--hdr-logo-h);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-mode: alpha, alpha;
  mask-mode: alpha, alpha;
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.hdr__outline {
  position: absolute; left: 50%; top: 50%; z-index: 1;
  width: calc(var(--hdr-logo-w) + 1.2px);
  height: calc(var(--hdr-logo-h) + 1.2px);
  transform: translate(-50%, -50%);
  pointer-events: none;
  background: #9c9c9c;
  opacity: 0.72;
  -webkit-mask-image: var(--hdr-logo-mask);
  mask-image: var(--hdr-logo-mask);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  -webkit-mask-mode: alpha; mask-mode: alpha;
}

/* Единственный оригинальный контент страницы инвертируется внутри выреза. */
.hdr__inversion {
  position: absolute; left: 50%; top: 50%; z-index: 2;
  width: var(--hdr-logo-w); height: var(--hdr-logo-h);
  transform: translate(-50%, -50%); pointer-events: auto; cursor: pointer;
  background: rgba(255,255,255,0.001);
  mix-blend-mode: normal;
  -webkit-backdrop-filter: invert(1) contrast(1.9) brightness(0.96) blur(0.2px);
  backdrop-filter: invert(1) contrast(1.9) brightness(0.96) blur(0.2px);
  -webkit-mask-image: var(--hdr-logo-mask);
  mask-image: var(--hdr-logo-mask);
  -webkit-mask-position: center; mask-position: center;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: calc(100% + 1px) calc(100% + 1px);
  mask-size: calc(100% + 1px) calc(100% + 1px);
  -webkit-mask-mode: alpha; mask-mode: alpha;
}
@supports not ((-webkit-backdrop-filter: invert(1)) or (backdrop-filter: invert(1))) {
  .hdr__inversion { background: #0a0a0a; }
}
@media (max-width: 900px) {
  .hdr { --hdr-logo-w: 118px; --hdr-logo-h: 29px; }
}
@media (max-width: 860px) {
  /* Mobile WebKit can drop the composite mask layer during scroll.
     Keep the header surface reliably opaque and render the centre mark directly. */
  .hdr { background: #fff; }
  .hdr__surface, .hdr__outline { display: none; }
  .hdr__inversion {
    background: #0a0a0a;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
@media (max-width: 600px) {
  .hdr { --hdr-logo-w: 98px; --hdr-logo-h: 24px; }
}

.hdr__left, .hdr__right { position: relative; z-index: 3; display: flex; align-items: center; gap: 16px; color: var(--fg); }
.hdr__logo img { height: 30px; width: auto; display: block; filter: none; }
.hdr__icon {
  background: none; border: none; cursor: pointer; color: var(--fg);
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
/* корзина: иконка + цифра-бейдж рядом */
.hdr__cart { position: relative; padding: 4px; }
.hdr__cart-ico { display: block; color: var(--fg); }
.hdr__cart-count {
  position: absolute; top: -4px; right: -6px;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--fg); color: var(--bg);
  font-size: 10px; font-weight: 700; line-height: 1; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.hdr__cart-count.is-empty { display: none; }
.hdr__burger { width: 26px; height: 14px; position: relative; }
.hdr__burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--fg); transition: transform 0.3s var(--ease); }
.hdr__burger span:nth-child(1) { top: 2px; }
.hdr__burger span:nth-child(2) { bottom: 2px; }

/* белая плашка шапки → иконки/логотип тёмные, тонкая линия-граница снизу */
.hdr { border-bottom: 1px solid var(--line); }
.hdr__icon, .hdr__cart-ico { color: var(--fg); }
.hdr__burger span { background: var(--fg); }
.hdr__cart-count { background: var(--fg); color: var(--bg); }

/* эквалайзер музыки в шапке */
.music-toggle__bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.music-toggle__bars span { width: 2px; height: 4px; background: var(--fg); border-radius: 2px; }
.is-playing .music-toggle__bars span { animation: eq 0.9s ease-in-out infinite; }
.is-playing .music-toggle__bars span:nth-child(2) { animation-delay: 0.2s; }
.is-playing .music-toggle__bars span:nth-child(3) { animation-delay: 0.4s; }
.is-playing .music-toggle__bars span:nth-child(4) { animation-delay: 0.1s; }
@keyframes eq { 0%,100% { height: 4px; } 50% { height: 14px; } }

@media (max-width: 620px) {
  .hdr__icon .label-text { display: none; }
}

/* ========================================================
   МЕНЮ (четверть экрана, справа)
   ======================================================== */
.scrim {
  position: fixed; inset: 0; z-index: 95; background: rgba(10,10,10,0.42);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.scrim.is-open { opacity: 1; visibility: visible; }
.menu {
  position: fixed; top: 0; right: 0; z-index: 96; height: 100vh;
  width: 25vw; min-width: 320px; max-width: 460px;
  background: var(--bg); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform 0.5s var(--ease);
  display: flex; flex-direction: column; padding: 28px;
}
.menu.is-open { transform: translateX(0); }
.menu__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.menu__head span { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.menu__close { background: none; border: none; font-size: 22px; cursor: pointer; line-height: 1; color: var(--fg); }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; letter-spacing: -0.01em;
  text-transform: uppercase; padding: 12px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  transition: padding-left 0.3s var(--ease);
}
.menu__links a:hover { padding-left: 10px; }
.menu__links a small { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; color: var(--muted); }
.menu__foot { margin-top: auto; font-size: 12px; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
@media (max-width: 760px) { .menu { width: 78vw; min-width: 0; } }

/* ========================================================
   КОРЗИНА (drawer)
   ======================================================== */
.cart {
  position: fixed; top: 0; right: 0; z-index: 96; height: 100vh;
  width: 30vw; min-width: 340px; max-width: 480px;
  background: var(--bg); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform 0.5s var(--ease);
  display: flex; flex-direction: column;
}
.cart.is-open { transform: translateX(0); }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 24px 28px; border-bottom: 1px solid var(--line); }
.cart__head h3 { font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; }
.cart__close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--fg); }
.cart__items { flex: 1; overflow-y: auto; padding: 12px 28px; }
.cart__empty { color: var(--muted); text-align: center; padding: 60px 0; letter-spacing: 0.06em; }
.cart-item { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-item img { width: 64px; height: 84px; object-fit: cover; background: var(--card); border-radius: 4px; }
.cart-item__name { font-size: 14px; font-weight: 600; }
.cart-item__meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-item__qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; }
.cart-item__qty button { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1px solid var(--line); background: none; color: var(--fg); border-radius: 50%; cursor: pointer; font-size: 14px; line-height: 1; transition: border-color 0.2s, color 0.2s; }
.cart-item__qty button:hover { border-color: var(--fg); }
.cart-item__remove { margin-left: 6px; padding: 0; color: var(--muted); transition: color 0.2s, border-color 0.2s; }
.cart-item__remove svg { width: 14px; height: 14px; display: block; }
.cart-item__remove:hover { color: var(--fg); border-color: var(--fg); }
.cart-item__price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.cart__foot { padding: 22px 28px; border-top: 1px solid var(--line); }
.cart__total { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.06em; }

/* тост «добавлено в корзину» */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  z-index: 110; background: var(--fg); color: var(--bg); padding: 12px 22px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.is-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ========================================================
   МУЗЫКАЛЬНЫЙ ПЛЕЕР — glass, плейлист, громкость
   ======================================================== */
.player-glass {
  position: relative; z-index: 8; display: inline-flex; align-items: center;
}
.player-glass__btn {
  width: 32px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(242,242,240,0.72); color: var(--fg); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.player-glass__btn:hover { background: var(--fg); color: var(--bg); }
.player-glass__btn:active { transform: scale(0.94); }
.player-glass__player-icon { width: 19px; height: 19px; overflow: visible; }
.player-glass__headphones {
  fill: none; stroke: currentColor; stroke-width: 1.65;
  stroke-linecap: round; stroke-linejoin: round;
}
.player-glass__eq {
  fill: none; stroke: currentColor; stroke-width: 1.25; stroke-linecap: round;
  opacity: 0.38; transform-box: fill-box; transform-origin: center bottom;
}
.player-glass__btn.is-playing {
  background: var(--fg); color: var(--bg);
}
.player-glass__btn.is-playing .player-glass__eq { opacity: 1; animation: playerEqualizer 0.72s ease-in-out infinite alternate; }
.player-glass__btn.is-playing .player-glass__eq--2 { animation-delay: -0.48s; }
.player-glass__btn.is-playing .player-glass__eq--3 { animation-delay: -0.24s; }
@keyframes playerEqualizer {
  0% { transform: scaleY(0.35); }
  100% { transform: scaleY(1); }
}
.player-glass__panel {
  position: absolute; left: 40px; top: 50%; z-index: 10;
  width: min(360px, calc(100vw - 130px)); height: var(--hdr-h); padding: 7px 12px;
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 68px 24px;
  align-items: center; column-gap: 10px;
  font-family: "Inter", system-ui, sans-serif;
  background: rgba(255,255,255,0.94); border: 1px solid var(--line); border-radius: 5px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.12);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transform: translate(6px, -50%) scale(0.98);
  transform-origin: left center;
  transition: opacity 0.22s var(--ease), visibility 0.22s, transform 0.22s var(--ease);
}
.player-glass.is-open .player-glass__panel {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translate(0, -50%) scale(1);
}
@media (hover: hover) and (pointer: fine) {
  .player-glass::after {
    content: ""; position: absolute; left: 32px; top: -8px; z-index: 9;
    width: 12px; height: 48px;
  }
  .player-glass:hover .player-glass__panel,
  .player-glass.is-hovered .player-glass__panel,
  .player-glass:focus-within .player-glass__panel {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translate(0, -50%) scale(1);
  }
}
.player-glass__control {
  width: 30px; height: 30px; padding: 0; border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--fg); cursor: pointer;
  font-size: 18px; line-height: 1;
}
.player-glass__control:hover { background: #cfcfca; }
.player-glass__control:active { background: #0a0a0a; color: #fff; }
.player-glass__control:disabled {
  opacity: 0.36; cursor: default; pointer-events: none;
}
.player-glass__control--play { width: 34px; height: 34px; background: #111; color: #fff; font-size: 11px; }
.player-glass__control--play:hover { background: #303030; }
.player-glass__control--play.is-unavailable { background: #d7d7d2; color: #777; cursor: default; }
.player-glass__play-icon {
  display: block; min-width: 12px; margin-left: 1px;
  font: 700 11px/1 "Inter", system-ui, sans-serif;
}
.player-glass__control--play.is-playing .player-glass__play-icon {
  margin-left: 0; font-size: 10px; letter-spacing: -2px;
}
.player-glass__control--play { grid-column: 1; grid-row: 1; justify-self: center; }
.player-glass__meta {
  grid-column: 2; grid-row: 1; min-width: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
}
.player-glass__artist,
.player-glass__title {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.player-glass__artist {
  font-family: "Golos Text", "Inter", system-ui, sans-serif;
  font-size: 10px; font-weight: 700; letter-spacing: 0.045em; text-transform: uppercase;
}
.player-glass__title {
  color: var(--muted); font-size: 9px; font-weight: 500; letter-spacing: 0.02em;
}
.player-glass__status {
  min-height: 10px; overflow: hidden; color: #777;
  font-size: 8px; font-weight: 500; line-height: 1.05; letter-spacing: 0.025em;
  white-space: nowrap; text-overflow: ellipsis;
}
.player-glass__nav {
  grid-column: 3; grid-row: 1; display: flex; align-items: center; justify-content: center; gap: 2px;
}
.player-glass__nav .player-glass__control { background: #dfdfda; color: #0a0a0a; }
.player-glass__nav .player-glass__control:hover { background: #c9c9c3; }
.player-glass__nav .player-glass__control:active { background: #0a0a0a; color: #fff; }
.player-glass.is-autoplay-blocked .player-glass__btn {
  animation: playerNeedsAction 1.8s ease-in-out infinite;
}
@keyframes playerNeedsAction {
  0%, 100% { box-shadow: 0 0 0 0 rgba(10,10,10,0); }
  50% { box-shadow: 0 0 0 5px rgba(10,10,10,0.12); }
}
.player-glass__volume {
  grid-column: 4; grid-row: 1; width: 24px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2; pointer-events: auto;
}
.player-glass__volume input {
  --volume: 30%;
  width: 16px; height: 44px; margin: 0; padding: 0; cursor: pointer;
  writing-mode: vertical-lr; direction: rtl;
  appearance: none; -webkit-appearance: none; background: transparent;
}
.player-glass__volume input::-webkit-slider-runnable-track {
  width: 5px; height: 100%; border-radius: 999px;
  background: linear-gradient(to top, var(--fg) 0 var(--volume), #d5d5d1 var(--volume) 100%);
}
.player-glass__volume input::-webkit-slider-thumb {
  width: 12px; height: 12px; margin-left: -3.5px; border: 0; border-radius: 50%;
  appearance: none; -webkit-appearance: none; background: var(--fg);
}
.player-glass__volume input::-moz-range-track { width: 5px; border-radius: 999px; background: #d5d5d1; }
.player-glass__volume input::-moz-range-progress { width: 5px; border-radius: 999px; background: var(--fg); }
.player-glass__volume input::-moz-range-thumb { width: 12px; height: 12px; border: 0; border-radius: 50%; background: var(--fg); }
.player-glass__volume input:focus-visible { outline: 1px solid var(--fg); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .player-glass__btn.is-playing .player-glass__eq { animation: none; }
  .player-glass.is-autoplay-blocked .player-glass__btn { animation: none; }
}
@media (max-width: 620px) {
  .hdr__left { z-index: 5; }
  .player-glass__panel {
    position: fixed; left: max(8px, env(safe-area-inset-left)); right: max(8px, env(safe-area-inset-right));
    top: calc(var(--ticker-h) + var(--hdr-h) + 8px); width: auto; height: auto; min-height: 112px;
    padding: 12px 14px;
    grid-template-columns: 40px minmax(0, 1fr) 72px;
    grid-template-rows: 44px 32px;
    column-gap: 10px; row-gap: 8px;
    z-index: 100; background: #fff;
    -webkit-backdrop-filter: none; backdrop-filter: none;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
  }
  .player-glass.is-open .player-glass__panel { transform: translateY(0) scale(1); }
  .player-glass__control--play { grid-column: 1; grid-row: 1; width: 38px; height: 38px; }
  .player-glass__meta { grid-column: 2; grid-row: 1; }
  .player-glass__artist { font-size: 11px; }
  .player-glass__title { font-size: 10px; }
  .player-glass__status { font-size: 9px; }
  .player-glass__nav { grid-column: 3; grid-row: 1; justify-content: flex-end; gap: 4px; }
  .player-glass__nav .player-glass__control { width: 32px; height: 34px; }
  .player-glass__volume {
    grid-column: 1 / -1; grid-row: 2;
    width: 100%; height: 32px;
  }
  .player-glass__volume input {
    width: 100%; height: 34px; min-width: 0;
    writing-mode: horizontal-tb !important; direction: ltr !important;
    pointer-events: auto; touch-action: none; opacity: 1;
  }
  .player-glass__volume input::-webkit-slider-runnable-track {
    width: 100%; height: 6px;
    background: linear-gradient(to right, var(--fg) 0 var(--volume), #d5d5d1 var(--volume) 100%);
  }
  .player-glass__volume input::-webkit-slider-thumb {
    width: 18px; height: 18px; margin-left: 0; margin-top: -6px;
  }
  .player-glass__volume input::-moz-range-track { width: 100%; height: 6px; }
  .player-glass__volume input::-moz-range-progress { width: auto; height: 6px; }
  .player-glass__volume input::-moz-range-thumb { width: 18px; height: 18px; }
}

/* Подсказка «Нажми, чтобы включить музыку» рядом с иконкой плеера — сдержанная,
   без анимации-приманки, исчезает сама при скролле или после взаимодействия. */
.player-glass__hint {
  position: absolute; left: 40px; top: 50%; z-index: 9;
  transform: translate(-4px, -50%);
  white-space: nowrap;
  font-family: "Inter", system-ui, sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.01em; color: var(--fg);
  background: rgba(255,255,255,0.92); border: 1px solid var(--line);
  padding: 6px 10px; border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.player-glass__hint::before {
  content: ""; position: absolute; left: -4px; top: 50%; width: 7px; height: 7px;
  background: rgba(255,255,255,0.92); border-left: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: translateY(-50%) rotate(45deg);
}
.player-glass__hint.is-visible {
  opacity: 1; visibility: visible; transform: translate(0, -50%);
}
@media (max-width: 620px) {
  .player-glass__hint {
    position: fixed; left: 50%; right: auto;
    top: calc(var(--ticker-h) + var(--hdr-h) + 10px);
    transform: translate(-50%, -6px);
    font-size: 10px; padding: 5px 10px;
    white-space: nowrap; max-width: none; line-height: 1.3;
  }
  .player-glass__hint::before { display: none; }
  .player-glass__hint.is-visible { transform: translate(-50%, 0); }
}

/* блокировка скролла страницы под оверлеями (меню/корзина/карточка) */
html.is-locked, body.is-locked { overflow: hidden; }

/* ========================================================
   HERO: видео на весь экран, текст и кнопки в левом нижнем углу
   ======================================================== */
.hero-wrap {
  position: relative; z-index: 1;
  height: 100svh; height: 100dvh;
  max-height: 100svh; max-height: 100dvh;
  background: var(--dark);
  margin-top: calc(-1 * var(--top-h)); /* видео уходит под прозрачный topbar */
}
.hero {
  position: relative; height: 100%; overflow: hidden;
  background: var(--dark); color: var(--dark-fg);
}
/* Видео заполняет hero без дополнительного программного увеличения. */
.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  transform: scale(1); transform-origin: center;
  pointer-events: none; will-change: transform;
}
/* мобильный фоновый скролл-карусель фото (вместо видео) */
.hero__photos {
  display: none;
  position: absolute; inset: 0; z-index: 0;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.hero__photos::-webkit-scrollbar { display: none; }
.hero__photos-track {
  display: flex; height: 100%; width: max-content;
}
.hero__photo {
  flex: 0 0 100vw; width: 100vw; height: 100%;
  object-fit: cover; object-position: center;
  scroll-snap-align: start; scroll-snap-stop: always;
  display: block; pointer-events: none;
}
/* наложение: затемнение к низу/левому краю, чтобы текст читался */
.hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.32) 42%, rgba(0,0,0,0.12) 70%, rgba(0,0,0,0.28) 100%),
    linear-gradient(to right, rgba(0,0,0,0.62) 0%, rgba(0,0,0,0.15) 48%, rgba(0,0,0,0) 100%);
}
/* блюр + градиент снизу — текст и кнопки читаются на любом кадре */
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.15) 60%, rgba(0,0,0,0) 100%);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(to top, #000 28%, transparent 100%);
          mask-image: linear-gradient(to top, #000 28%, transparent 100%);
}
/* контент по сетке (те же поля --pad), прижат к левому нижнему углу */
.hero__content {
  position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(96px, 14vh, 150px);
  padding: 0 var(--pad);
  display: flex; flex-direction: column; align-items: flex-start; text-align: left;
  color: var(--dark-fg);
}
.hero__eyebrow {
  font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase;
  opacity: 0.85; margin-bottom: 16px;
}
.hero__title {
  line-height: 0;
}
.hero__wordmark {
  display: block;
  width: clamp(180px, 36vw, 480px);
  height: auto;
  filter: brightness(0) invert(1);
  mix-blend-mode: difference;
}
@media (max-width: 600px) {
  .hero__wordmark { width: min(62vw, 250px); }
}
/* мобильная адаптация: ровные интервалы между секциями */
@media (max-width: 860px) {
  :root {
    --head-size: clamp(22px, 5.4vw, 28px);
    --gap-section: clamp(52px, 13vw, 72px);
    --gap-title: 24px;
    --gap-bottom: clamp(52px, 13vw, 72px);
  }
  .hero-wrap {
    height: calc(100svh - var(--top-h)); height: calc(100dvh - var(--top-h));
    max-height: calc(100svh - var(--top-h)); max-height: calc(100dvh - var(--top-h));
    margin-top: 0;
  }
  .hero__video { display: none; }
  .hero__photos { display: block; }
  .hero__photo {
    object-fit: cover;
    object-position: center top;
  }
  .hero__content { bottom: clamp(72px, 12vh, 110px); pointer-events: none; }
  .brand-block__head { margin-top: var(--gap-section); margin-bottom: var(--gap-title); }
  .lookbook__shell { padding: var(--gap-section) 0 0; gap: var(--gap-title); }
  /* каталог: карточки чуть крупнее */
  .cards { gap: clamp(10px, 2.6vw, 14px); row-gap: clamp(16px, 4vw, 22px); }
  .card__media { aspect-ratio: 3 / 5.2; }
  .card__info { padding: 16px 0 10px; }
  .card__name, .card__price { font-size: 14px; }
  .card__colors { padding-bottom: 14px; }
}
.hero__lead {
  margin-top: 18px; max-width: 440px;
  font-size: clamp(14px, 1.5vw, 17px); line-height: 1.5; opacity: 0.85;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(22px, 3vw, 34px); }
/* светлая кнопка-призрак поверх тёмного видео */
.btn--invert { border-color: rgba(242,242,240,0.7); color: var(--dark-fg); }
.btn--invert:hover { background: var(--dark-fg); color: var(--dark); border-color: var(--dark-fg); }
.hero__scroll {
  position: absolute; z-index: 2; bottom: 22px; right: var(--pad);
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--dark-fg); opacity: 0.6;
  animation: heroScrollPulse 2.2s ease-in-out infinite;
}
@keyframes heroScrollPulse { 0%,100% { opacity: 0.6; } 50% { opacity: 0.2; } }
.page-body { position: relative; z-index: 2; background: var(--bg); }

/* ========================================================
   SECTION HEAD / MARQUEE
   ======================================================== */
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 0 var(--pad); margin: var(--gap-section) 0 var(--gap-title); }
.section-head__title { font-family: "Golos Text", "Inter", sans-serif; font-size: var(--head-size); font-weight: 700; letter-spacing: -0.035em; text-transform: uppercase; line-height: 1.05; }
.section-head__meta { color: var(--muted); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; }
.marquee { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 14px 0; }
.marquee--prefooter { position: relative; z-index: 2; background: var(--bg); border-bottom: 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 32s linear infinite; font-size: clamp(12px, 1.6vw, 18px); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.marquee__group { display: flex; flex: 0 0 auto; }
.marquee__track span { padding-right: 8px; white-space: nowrap; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ========================================================
   КАТАЛОГ
   ======================================================== */
.shop { padding: var(--gap-section) 0 0; }
.shop > .section-head {
  min-height: 40px; margin: 0 0 var(--gap-title); align-items: center;
}
/* единая сетка: карточки в тех же полях, что и заголовки секций */
/* товары по 4 в ряд, в адаптиве — по 2 */
.cards { display: grid; gap: clamp(10px, 1.4vw, 26px); grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 0 var(--pad); }
@media (max-width: 860px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* большой брейкпоинт: карточки/подписи крупнее */
@media (min-width: 1440px) {
  .cards { gap: clamp(16px, 1.6vw, 32px); }
  .card__info { font-size: 16px; padding: 18px 0 10px; }
  .card__name { font-size: 15px; }
  .card__price { font-size: 15px; }
}
.card { position: relative; background: transparent; min-width: 0; }
.card__media { position: relative; aspect-ratio: 5 / 7; overflow: hidden; display: block; cursor: pointer; background: var(--card); }
.card__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: transform 0.7s var(--ease), opacity 0.45s var(--ease); }
.card__photo--main.is-active { opacity: 1; }
.card.card--evil-tee .card__photo--main,
.card.card--evil-tee .card__photo.is-active { transform: scale(1.12); }
.card__media.is-manual .card__photo { opacity: 0; }
.card__media.is-manual .card__photo.is-active { opacity: 1; }
.card__nav { position: absolute; inset: 0; z-index: 5; pointer-events: none; }
.card__nav-btn {
  position: absolute; top: 50%; transform: translateY(-50%); pointer-events: auto;
  width: 34px; height: 42px; padding: 0; border: 1px solid rgba(255,255,255,0.42);
  background: rgba(0,0,0,0.34); color: #fff; cursor: pointer; font-size: 22px;
  opacity: 0; transition: opacity 0.25s var(--ease), background 0.25s var(--ease);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.card__nav-btn--prev { left: 8px; }
.card__nav-btn--next { right: 8px; }
.card__nav-btn:hover { background: rgba(0,0,0,0.68); }
.card__nav-count {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  padding: 4px 7px; border-radius: 999px; background: rgba(0,0,0,0.38); color: #fff;
  font-size: 10px; letter-spacing: 0.08em; opacity: 0; transition: opacity 0.25s var(--ease);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.card__media:hover .card__nav-btn,
.card__media:hover .card__nav-count { opacity: 1; }
.card__swipe-hint {
  position: absolute; left: 50%; top: auto; bottom: 16px; z-index: 6;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border: 1px solid rgba(255,255,255,0.5);
  background: rgba(0,0,0,0.46); color: #fff;
  -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap; pointer-events: none;
  opacity: 1; visibility: visible;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease), visibility 0.35s;
}
.card__swipe-hint.is-dismissed {
  opacity: 0; visibility: hidden; transform: translate(-50%, 6px);
}
.card__swipe-hint-arrow {
  display: inline-block; font-size: 20px; line-height: 0.8;
  animation: cardSwipeHintArrow 0.9s var(--ease) infinite;
}
.card__swipe-hint-arrow--prev { --hint-dir: -5px; }
.card__swipe-hint-arrow--next { --hint-dir: 5px; }
@keyframes cardSwipeHintArrow {
  0%, 100% { transform: translateX(0); opacity: 0.65; }
  50% { transform: translateX(var(--hint-dir)); opacity: 1; }
}
@media (hover: none), (max-width: 860px) {
  .card__nav-btn { width: 32px; height: 40px; }
}
@media (max-width: 860px) {
  .card__media { touch-action: pan-y; }
  .card__nav { display: none; }
  .card__swipe-hint {
    left: 8px; right: 8px; top: auto; bottom: 8px;
    width: auto; transform: none; justify-content: space-between;
  }
  .card__swipe-hint.is-dismissed { transform: translateY(6px); }
}
.card__tag { position: absolute; top: 10px; right: 10px; z-index: 3; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--fg); color: var(--bg); padding: 4px 8px; }
/* блок покупки: размеры + кнопка, лежит на фото, выезжает на ховере */
.card__buy {
  position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 4;
  display: flex; flex-direction: column; gap: 8px;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity 0.12s ease, transform 0.12s ease, visibility 0s linear 0.12s;
}
.card__media:hover .card__buy,
.card__buy:focus-within {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease), visibility 0s;
}
@media (hover: hover) and (pointer: fine) {
  .card__media:hover .card__swipe-hint { opacity: 0; visibility: hidden; }
}
.card__sizes { display: flex; gap: 6px; flex-wrap: wrap; }
.card__size {
  flex: 1 1 0; min-width: 34px; padding: 8px 0;
  background: rgba(255,255,255,0.9); color: #0d0d0d; border: 1px solid transparent;
  font-size: 11px; font-weight: 600; letter-spacing: 0.04em; cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.card__size:hover { background: #fff; }
.card__size.is-active { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.card__size.is-unavailable,
.card__size:disabled {
  opacity: 1; cursor: not-allowed; text-decoration: line-through;
  background: #fff; color: #0d0d0d; border-color: #0d0d0d;
}
.card__size.is-unavailable:hover,
.card__size:disabled:hover { background: #fff; border-color: #0d0d0d; }
.card__add.is-disabled {
  opacity: 1; cursor: not-allowed; text-decoration: none;
  background: #d8d8d3; color: #777; border: 1px solid #c8c8c3;
}
.card__add.is-disabled:hover { background: #d8d8d3; color: #777; }
/* подсказка «выберите размер», если жмут добавить без выбора */
.card__buy.needs-size .card__sizes { animation: sizeNudge 0.4s var(--ease); }
.card__buy.needs-size .card__size { border-color: var(--fg); }
@keyframes sizeNudge { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.card__add {
  border: none; background: var(--fg); color: var(--bg);
  padding: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer;
}
.card__add:hover { background: #2b2b2b; }
.card__info { display: block; padding: 14px 0 8px; cursor: pointer; }
.card__meta { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.card__name { font-size: 13px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.card__price { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
/* переключатель цвета в карточке каталога (виден и на тач) */
.card__colors { display: flex; gap: 6px; padding: 0 0 12px; }
.card__color {
  width: 16px; height: 16px; border-radius: 999px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); background: var(--sw, #ccc);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.card__color:hover { transform: scale(1.14); }
.card__color.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--fg); }
/* на тач/узких экранах не показываем размеры на превью —
   они доступны при открытии карточки товара (тап по фото) */
@media (hover: none), (max-width: 860px) { .card__buy { display: none; } }

/* ========================================================
   СТРАНИЦЫ (общий хедер)
   ======================================================== */
/* единый отступ от шапки до заголовка и от заголовка до контента на всех страницах */
.page-hero { padding: var(--gap-top) var(--pad) var(--gap-title); }
.page-hero__eyebrow { display: none; }
.page-hero__title { font-family: "Golos Text", "Inter", sans-serif; font-size: var(--head-size); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; text-transform: uppercase; }

/* --- юридические страницы (политика и т.п.) --- */
.legal { max-width: 760px; padding: 0 var(--pad) var(--gap-bottom); }
.legal__updated { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 34px; }
.legal h3 { font-size: 17px; font-weight: 700; letter-spacing: 0.01em; margin: 34px 0 10px; }
.legal p { font-size: 15px; line-height: 1.8; color: rgba(242,242,240,0.78); }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* --- ЛУКБУК --- */
.lookbook {
  --lb-gap: 16px;
  --lb-w: clamp(280px, 28vw, 360px);
  --lb-ratio: 4 / 5;
  position: relative;
  padding-bottom: 0;
}
.lookbook__shell {
  display: flex; flex-direction: column; gap: var(--gap-title);
  padding: var(--gap-section) 0 0;
}
.lookbook__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 40px; padding: 0 var(--pad); flex: 0 0 auto;
}
.lookbook__nav {
  display: flex; align-items: center; gap: 8px; flex: 0 0 auto;
  margin-left: auto;
}
.lookbook__nav-btn {
  width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line); border-radius: 2px;
  background: transparent; color: var(--fg);
  font-size: 18px; line-height: 1; cursor: pointer;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.lookbook__nav-btn:hover { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.lookbook__nav-btn:active { transform: scale(0.96); }
.lookbook__nav-btn:disabled { opacity: 0.32; cursor: not-allowed; pointer-events: none; }

.lookbook__viewport {
  overflow: hidden; width: 100%;
  touch-action: pan-y;
}
.lookbook__strip {
  display: flex; align-items: stretch; gap: var(--lb-gap);
  padding: 0 var(--pad); will-change: transform;
}
.lookbook__slide {
  flex: 0 0 var(--lb-w); width: var(--lb-w);
  margin: 0;
}
.lookbook__frame {
  position: relative; width: 100%;
  aspect-ratio: var(--lb-ratio);
  background: #0a0a0a;
  overflow: hidden;
}
.lookbook__asset {
  position: absolute; inset: 0;
}
.lookbook__asset img,
.lookbook__asset .lookbook__vid {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1) contrast(1.02);
  transition: filter 0.55s var(--ease);
}
.lookbook__slide.is-active .lookbook__asset img,
.lookbook__slide.is-active .lookbook__asset .lookbook__vid {
  filter: grayscale(0) contrast(1.04) saturate(1.05);
}
.lookbook__noise {
  position: absolute; inset: -20%; z-index: 2; pointer-events: none;
  opacity: 0; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  transition: opacity 0.2s var(--ease);
}
.lookbook__scanlines {
  position: absolute; inset: 0; z-index: 3; pointer-events: none; opacity: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(255,255,255,0.04) 0px,
    rgba(255,255,255,0.04) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: soft-light;
  transition: opacity 0.2s var(--ease);
}
@keyframes lookbookTvNoise {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-1%, 1%); }
}
@keyframes lookbookTvFlicker {
  0%, 100% { opacity: 0.32; }
  50% { opacity: 0.44; }
}
@keyframes lookbookSignal {
  0%, 100% { filter: grayscale(0) contrast(1.04) saturate(1.04); }
  50% { filter: grayscale(0) contrast(1.08) saturate(1.06); }
}
@media (hover: hover) and (pointer: fine) {
  .lookbook__slide:hover .lookbook__noise {
    opacity: 0.38;
    animation: lookbookTvNoise 0.45s steps(2) infinite, lookbookTvFlicker 0.6s steps(2) infinite;
  }
  .lookbook__slide:hover .lookbook__scanlines { opacity: 0.45; }
  .lookbook__slide:hover .lookbook__asset img,
  .lookbook__slide:hover .lookbook__asset .lookbook__vid {
    animation: lookbookSignal 0.7s steps(2) infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  .lookbook__slide:hover .lookbook__noise,
  .lookbook__slide:hover .lookbook__scanlines { animation: none; opacity: 0.35; }
}

.lookbook__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: flex; flex-direction: column; gap: 8px;
  padding: clamp(20px, 3vw, 34px) clamp(18px, 2.4vw, 28px);
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  opacity: 0; transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.lookbook__slide.is-active .lookbook__cap { opacity: 1; transform: none; }
.lookbook__idx { font-size: 12px; color: rgba(255,255,255,0.7); letter-spacing: 0.18em; font-variant-numeric: tabular-nums; }
.lookbook__name { font-size: clamp(20px, 2vw, 30px); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; line-height: 1; }
.lookbook__desc { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.82); max-width: 360px; }

@media (max-width: 860px) {
  .lookbook { --lb-w: min(82vw, 320px); }
}
/* ===========================================================
   О БРЕНДЕ — редакционный блок, появление по скроллу
   =========================================================== */
.brand-block { padding-bottom: var(--gap-section); }
.brand-block__head { margin-top: var(--gap-section); margin-bottom: var(--gap-title); }
.brand {
  position: relative; isolation: isolate; overflow: hidden;
  background: #000; color: #f3f3ee;
  padding: clamp(58px, 6vw, 84px) 0;
}
.brand::after { display: none; }
/* крупная «призрачная» надпись на фоне для глубины */
.brand__ghost {
  --ghost-x: 50%; --ghost-y: 50%;
  position: absolute; left: 50%; top: clamp(8px, 2vw, 24px); transform: translateX(-50%);
  z-index: 0; font-family: "Golos Text", "Inter", sans-serif; font-weight: 800; line-height: 0.9;
  font-size: clamp(96px, 27vw, 440px); letter-spacing: -0.04em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,0.025);
  background: radial-gradient(circle at var(--ghost-x) var(--ghost-y), rgba(255,255,255,0.1) 0, rgba(255,255,255,0.025) 14%, transparent 29%);
  -webkit-background-clip: text; background-clip: text;
  white-space: nowrap; pointer-events: none; user-select: none; will-change: transform;
  transition: letter-spacing 0.35s var(--ease), filter 0.35s var(--ease), -webkit-text-stroke-color 0.35s var(--ease);
}
.brand:hover .brand__ghost {
  letter-spacing: -0.025em;
  -webkit-text-stroke-color: rgba(255,255,255,0.07);
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.025));
}
.brand__grid {
  position: relative; z-index: 1; width: 100%;
  margin: 0; padding: 0 var(--pad);
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 48px); align-items: start;
}
.brand__col { display: flex; flex-direction: column; align-items: flex-start; align-self: stretch; }
.brand__title {
  font-family: "Golos Text", "Inter", sans-serif; font-weight: 700;
  font-size: clamp(22px, 2.6vw, 34px); line-height: 1.08; letter-spacing: -0.03em;
  color: #f3f3ee;
  margin: 0 0 clamp(6px, 0.8vw, 10px);
}
.brand__line { display: block; overflow: hidden; padding-bottom: 0.02em; }
.brand__line > span { display: block; opacity: 0; filter: blur(10px); will-change: opacity, filter, transform; }
.brand__type { display: flex; flex-direction: column; gap: 0; max-width: 48ch; margin: 0 0 clamp(8px, 1vw, 12px); }
.brand__type-line {
  margin: 0; font-size: clamp(14px, 1.1vw, 16px); line-height: 1.6; color: rgba(255,255,255,0.72);
}
/* меняющаяся фраза + CTA — прижаты к низу колонки */
.brand__phrase {
  display: flex; align-items: flex-end; height: 6.4em;
  margin-top: auto; padding-top: 0;
  margin-bottom: clamp(8px, 1vw, 12px); overflow: visible;
  font-family: "Golos Text", "Inter", sans-serif; font-weight: 400;
  font-size: clamp(14px, 1.4vw, 18px); line-height: 1.25; letter-spacing: -0.01em; color: #fff;
}
.brand__phrase-inner {
  display: inline-block; will-change: transform;
  transition: transform 0.46s var(--ease), opacity 0.46s var(--ease), filter 0.46s var(--ease);
}
.brand__phrase-inner.is-out { transform: translateY(-0.8em); opacity: 0; filter: blur(5px); }
.brand__phrase-inner.is-enter { transform: translateY(0.8em); opacity: 0; filter: blur(5px); }
/* мигающая каретка во время «печати» */
.brand__caret {
  display: inline-block; width: 0.5em; height: 1.05em; margin-left: 1px; vertical-align: -0.16em;
  background: #fff; animation: brandCaret 0.9s steps(1) infinite;
}
@keyframes brandCaret { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }
/* кнопка-заливка */
.brand__cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  min-height: 56px; padding: 18px 34px;
  background: #f3f3ee; color: #0a0a0a; border-radius: 2px;
  font-family: "Golos Text", "Inter", sans-serif; font-weight: 700; text-transform: uppercase;
  font-size: 14px; letter-spacing: 0.1em;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.brand__cta:hover { background: #fff; transform: translateY(-2px); }
.brand__cta-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  flex: 0 0 auto; transition: transform 0.45s var(--ease);
}
.brand__cta-arrow svg { display: block; }
.brand__cta:hover .brand__cta-arrow { transform: translate(4px, -4px); }
.brand__cta-label--short { display: none; }
/* медиа */
.brand__media { position: relative; }
.brand__media-inner {
  position: relative; width: 100%; aspect-ratio: 4 / 5;
  max-height: min(64vh, 540px); overflow: hidden; background: #000;
  clip-path: inset(0 0 0 0);
  opacity: 0;
}
@media (min-width: 861px) {
  .brand { padding: 0; }
  .brand__grid {
    min-height: clamp(520px, 48vw, 680px);
    display: block; padding-right: 0;
  }
  .brand__col {
    width: 54%; min-height: inherit;
    padding-top: clamp(58px, 5.5vw, 82px);
    padding-bottom: clamp(58px, 5.5vw, 82px);
    padding-right: clamp(28px, 3.5vw, 52px);
  }
  .brand__media {
    position: absolute; inset: 0 0 0 auto;
    width: 46%; max-width: none; height: 100%; min-height: 100%;
    margin: 0; padding: 0; overflow: hidden;
  }
  .brand__media-inner {
    position: absolute; inset: 0;
    width: 100%; height: 100%; max-height: none;
    margin: 0; padding: 0; aspect-ratio: auto;
  }
}
.brand__video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; display: block; margin: 0; border: 0; transform: scale(1.01);
}
/* запасной показ без GSAP / при reduce-motion */
.brand.is-static .brand__line > span { opacity: 1; filter: none; }
.brand.is-static .brand__media-inner { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .brand__caret { display: none; } }
@media (min-width: 1100px) {
  .brand { padding: 0; }
  .brand__ghost { font-size: clamp(72px, 14vw, 240px); top: clamp(8px, 1.4vw, 20px); }
  .brand__media-inner { max-height: none; }
  .brand__cta { min-height: 58px; padding: 19px 38px; font-size: 14px; }
}
@media (max-width: 860px) {
  .brand { padding: 0; }
  .brand__grid { display: grid; grid-template-columns: 1fr; gap: 0; padding: 0; }
  .brand__media {
    order: -1;
    overflow: hidden;
    position: relative; inset: auto; height: auto; min-height: 0;
    z-index: 0;
    width: 100%;
    max-width: 100%;
  }
  .brand__media-inner {
    aspect-ratio: 4 / 5;
    max-height: min(62vh, 420px);
    width: 100%;
    overflow: hidden;
  }
  .brand__video { transform: none; will-change: auto; }
  .brand__col {
    position: relative;
    z-index: 2;
    width: 100%; min-height: 0; padding: 32px var(--pad) 48px;
    background: #000;
  }
  .brand__ghost { display: none; }
  .brand__title { margin-bottom: 16px; }
  .brand__type { margin: 0 0 32px; }
  .brand__phrase { height: 7em; margin: 0 0 10px; padding-top: 0; margin-top: 0; }
  .brand__cta { min-height: 54px; padding: 17px 30px; font-size: 13px; }
  .brand__cta-label--long { display: none; }
  .brand__cta-label--short { display: inline; }
}

/* --- WebGL галерея --- */
body[data-page="gallery"] { overflow: hidden; padding-top: 0; height: 100vh; }
.gl-canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; cursor: grab; background: var(--bg); z-index: 0; }
.gl-canvas:active { cursor: grabbing; }
.gl-loading { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 80; color: var(--fg); font-family: monospace; font-size: 16px; letter-spacing: 0.1em; }
.gl-hint { position: fixed; left: 16px; bottom: 16px; z-index: 80; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); pointer-events: none; }
/* затемнение/блюр холста, когда открыто фото */
.gl-canvas.is-dimmed { filter: blur(14px) brightness(0.5); transition: filter 0.4s var(--ease); }
/* оверлей просмотра фото из галереи */
.gl-lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 56px);
  background: rgba(8, 8, 8, 0.72);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.4s var(--ease), visibility 0.4s var(--ease);
}
.gl-lightbox.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
body.gl-lightbox-open { overflow: hidden; }
.gl-lightbox__img {
  max-width: min(92vw, 900px); max-height: 88vh; width: auto; height: auto;
  object-fit: contain; border-radius: 2px; box-shadow: 0 30px 80px rgba(0,0,0,0.55);
  transform: scale(0.94); transition: transform 0.45s var(--ease);
}
.gl-lightbox.is-open .gl-lightbox__img { transform: scale(1); }
.gl-lightbox__close {
  position: absolute; top: clamp(14px, 3vw, 28px); right: clamp(14px, 3vw, 28px); z-index: 2;
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.4);
  background: rgba(0,0,0,0.35); color: #fff; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.gl-lightbox__close:hover { background: rgba(255,255,255,0.92); color: #000; transform: rotate(90deg); }

/* Полноэкранная галерея товара: кнопки на десктопе, нативный свайп на мобильных. */
.gl-lightbox--product { padding: clamp(12px, 3vw, 40px); }
.gl-lightbox__viewport {
  width: min(92vw, 980px); height: min(88vh, 900px);
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  touch-action: pan-x; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.gl-lightbox__viewport.is-zoomed { scroll-snap-type: none; touch-action: none; }
.gl-lightbox__viewport.is-zooming .gl-lightbox__img,
.gl-lightbox__viewport.is-zoomed .gl-lightbox__img { transition: none; }
.gl-lightbox__viewport.is-swiping-from-zoom .gl-lightbox__img {
  transition: transform 0.18s ease;
  transform: none !important;
}
.gl-lightbox__viewport::-webkit-scrollbar { display: none; }
.gl-lightbox__track { display: flex; width: 100%; height: 100%; }
.gl-lightbox--product .gl-lightbox__img {
  flex: 0 0 100%; width: 100%; height: 100%; max-width: none; max-height: none;
  object-fit: contain; scroll-snap-align: center; scroll-snap-stop: always;
  box-shadow: none; border-radius: 0; transform: none;
}
.gl-lightbox--product.is-open .gl-lightbox__img { transform: none; }
.gl-lightbox__nav {
  position: absolute; top: 50%; z-index: 3; transform: translateY(-50%);
  width: 44px; height: 44px; padding: 0; border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.42); background: rgba(0,0,0,0.42);
  color: #fff; font-size: 25px; line-height: 1; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px);
}
.gl-lightbox--product.has-many .gl-lightbox__nav { display: flex; }
.gl-lightbox__nav--prev { left: clamp(12px, 3vw, 30px); }
.gl-lightbox__nav--next { right: clamp(12px, 3vw, 30px); }
.gl-lightbox--product .gl-lightbox__nav--prev {
  left: max(8px, calc(50% - var(--lightbox-image-half, min(46vw, 490px)) - 56px));
}
.gl-lightbox--product .gl-lightbox__nav--next {
  right: max(8px, calc(50% - var(--lightbox-image-half, min(46vw, 490px)) - 56px));
}
.gl-lightbox__nav:disabled { opacity: 0.25; cursor: default; }
.gl-lightbox__count {
  position: absolute; left: 50%; bottom: clamp(12px, 2vw, 24px); z-index: 3;
  transform: translateX(-50%); color: #fff; font-size: 11px;
  letter-spacing: 0.14em; font-variant-numeric: tabular-nums;
}
.gl-lightbox__zoom-status {
  position: absolute; left: 50%; bottom: 48px; z-index: 5;
  transform: translateX(-50%); padding: 8px 12px;
  border: 1px solid rgba(255,255,255,0.42); border-radius: 999px;
  background: rgba(8,8,8,0.72); color: #fff; cursor: pointer;
  font-size: 10px; font-weight: 600; line-height: 1; letter-spacing: 0.06em;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.gl-lightbox__zoom-status[hidden] { display: none; }
@media (max-width: 620px) {
  .gl-lightbox--product { padding: 0; background: #080808; }
  .gl-lightbox__viewport { width: 100vw; height: 100dvh; }
  .gl-lightbox--product .gl-lightbox__img { padding: 44px 0 28px; }
  .gl-lightbox--product .gl-lightbox__nav { display: none; }
  .gl-lightbox__count { bottom: max(14px, env(safe-area-inset-bottom)); }
  .gl-lightbox__zoom-status { bottom: max(44px, calc(env(safe-area-inset-bottom) + 42px)); }
}

/* --- селебрити --- */
.celebs { padding: 0 var(--pad) var(--gap-bottom); }
.celebs__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .celebs__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .celebs__grid { grid-template-columns: 1fr; } }
.celeb { display: block; }
/* прямые углы; подпись — внутри фото, поверх затемнения снизу */
.celeb__media { position: relative; aspect-ratio: 4/4.55; max-height: 68vh; overflow: hidden; border-radius: 0; background: var(--card); cursor: zoom-in; }
.celeb__media img { width: 100%; height: 100%; object-fit: cover; filter: contrast(1.04); }
/* карусель: лента слайдов листается по X, стрелки/точки поверх */
.celeb__track { display: flex; height: 100%; transition: transform 0.55s var(--ease); will-change: transform; }
.celeb__track img { flex: 0 0 100%; }
.celeb__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 36px; height: 36px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(0,0,0,0.42); color: #fff; font-size: 20px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.3s var(--ease), background 0.3s var(--ease);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.celeb__nav--prev { left: 10px; }
.celeb__nav--next { right: 10px; }
.celeb__nav:hover { background: rgba(0,0,0,0.7); }
.celeb:hover .celeb__nav { opacity: 1; }
.celeb__dots { position: absolute; left: 0; right: 0; bottom: 12px; z-index: 2; display: flex; justify-content: center; gap: 6px; }
.celeb__dot { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,0.45); cursor: pointer; transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.celeb__dot.is-active { background: #fff; transform: scale(1.3); }
@media (hover: none) { .celeb__nav { opacity: 1; } }
.celeb__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 1;
  background: linear-gradient(to top, rgba(0,0,0,0.72) 0%, rgba(0,0,0,0.2) 38%, transparent 62%);
}
.celeb__name {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 18px 20px; color: #fff;
  font-size: clamp(17px, 1.7vw, 22px); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  opacity: 1; transform: none;
}

/* --- карточка товара --- */
.product { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(20px, 4vw, 60px); padding: var(--gap-top) var(--pad) var(--gap-bottom); }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }
.product__gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
@media (max-width: 860px) {
  .product__gallery {
    grid-template-columns: none;
    display: flex;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .product__gallery::-webkit-scrollbar { display: none; }
  .product__gallery img {
    flex: 0 0 86%;
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }
}
.product__gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; background: var(--card); border-radius: 6px; }
.product__info { position: sticky; top: calc(var(--top-h) + 20px); align-self: start; }
.product__name { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.02em; text-transform: uppercase; line-height: 0.98; }
.pdrawer .product__name { line-height: 0.95; }
.product__price { font-size: 18px; color: var(--muted); margin: 8px 0 24px; }
.product__description { margin: 20px 0 0; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.product__description-text {
  color: #000; font-size: 14px; line-height: 1.65;
  transition: max-height 0.35s var(--ease);
}
.product__facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.product__facts li { position: relative; padding-left: 18px; }
.product__facts li::before {
  content: ""; position: absolute; left: 1px; top: 0.78em;
  width: 7px; height: 1px; background: var(--fg);
}
.product__description.is-collapsible:not(.is-open) .product__description-text {
  max-height: 6.6em; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 65%, transparent 100%);
}
.product__description-toggle {
  display: flex; justify-content: space-between; width: 100%; margin-top: 8px; padding: 8px 0;
  border: 0; background: none; color: var(--fg);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
}
.product__description-toggle[hidden] { display: none; }
.product__description-toggle-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex: 0 0 auto;
}
.product__description-toggle-icon svg { display: block; transition: transform 0.3s var(--ease); }
.product__description.is-open .product__description-toggle-icon svg { transform: rotate(180deg); }
.product__sibling {
  display: grid; grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; gap: 14px;
  margin: 0 0 24px; padding: 10px; border: 1px solid var(--line); color: var(--fg);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.product__sibling:hover { border-color: var(--fg); background: var(--card); }
.product__sibling img { width: 54px; height: 66px; object-fit: cover; background: var(--card); }
.product__sibling-swatch { width: 32px; height: 32px; margin-left: 11px; border-radius: 50%; border: 1px solid var(--line); background: var(--sw, #888); }
.product__sibling > span:not(.product__sibling-swatch) { display: flex; flex-direction: column; gap: 4px; }
.product__sibling small { color: var(--muted); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; }
.product__sibling strong { font-size: 13px; letter-spacing: 0.05em; text-transform: uppercase; }
.product__sibling .product__sibling-arrow { display: block; font-size: 16px; }
.product__sizes-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.product__size-chart-btn {
  padding: 0; border: none; background: none; cursor: pointer;
  font-size: 12px; text-decoration: underline; text-underline-offset: 3px;
  color: var(--muted); text-transform: none; letter-spacing: 0;
  transition: color 0.2s var(--ease);
}
.product__size-chart-btn:hover,
.product__size-chart-btn.is-active { color: var(--fg); }
.size-chart {
  margin: -6px 0 18px; padding: 14px 16px; border: 1px solid var(--line);
  background: var(--card); border-radius: 4px; overflow-x: auto;
}
.size-chart[hidden] { display: none; }
.size-chart__table { width: 100%; border-collapse: collapse; font-size: 12px; }
.size-chart__table th,
.size-chart__table td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.size-chart__table th { font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; color: var(--muted); }
.size-chart__table tr:last-child td { border-bottom: none; }
.size-chart__note { margin: 10px 0 0; font-size: 11px; color: var(--muted); }
.size-chart--image { padding: 0; overflow: hidden; }
.size-chart__image {
  display: block; width: 100%; max-height: min(58vh, 620px);
  object-fit: contain; background: #111; cursor: zoom-in;
}
.product__sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.size { min-width: 52px; padding: 12px 10px; border: 1px solid var(--line); border-radius: 6px; background: none; color: var(--muted); cursor: pointer; font-size: 13px; text-transform: uppercase; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.size.is-active { border-color: var(--fg); background: var(--fg); color: var(--bg); }
.size.is-unavailable,
.size:disabled {
  opacity: 0.38; cursor: not-allowed; text-decoration: line-through;
  border-color: var(--line); color: var(--muted); background: transparent;
}
.size.is-unavailable:hover,
.size:disabled:hover { border-color: var(--line); background: transparent; }
.product__actions.needs-size .product__sizes { animation: sizeNudge 0.4s var(--ease); }
.product__actions.needs-size .size:not(.is-unavailable) { border-color: var(--fg); }
.product__actions .btn:disabled { opacity: 1; cursor: not-allowed; pointer-events: none; }
.product__actions { display: flex; flex-direction: column; gap: 10px; }

/*
 * Базовый паттерн состояний выбора и зависимых действий.
 * data-state: available | selected | unavailable | locked | ready.
 */
.ui-choice { opacity: 1 !important; position: relative; }
.ui-choice[data-state="available"] {
  background: #fff; color: #111; border-color: #9b9b9b;
  text-decoration: none; box-shadow: none; cursor: pointer;
}
.ui-choice[data-state="available"]:hover { border-color: #111; background: #f1f1f1; }
.ui-choice[data-state="selected"] {
  background: #111; color: #fff; border-color: #111;
  text-decoration: none; cursor: pointer;
  box-shadow: none;
}
.ui-choice:focus-visible,
.ui-action:focus-visible { outline: 2px solid #777; outline-offset: 2px; }
.ui-choice[data-state="unavailable"] {
  opacity: 1 !important; color: #777; border-color: #b8b8b8; cursor: not-allowed;
  text-decoration: line-through; text-decoration-thickness: 1.5px;
  background: #fff;
  box-shadow: none;
}
.ui-choice[data-state="unavailable"]:hover {
  border-color: #b8b8b8;
  background: #fff;
}
.ui-action {
  opacity: 1 !important;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.ui-action[data-state="locked"] {
  opacity: 1 !important; color: #666; border: 1px solid #c4c4c4;
  background: #ececec;
  cursor: not-allowed;
}
.ui-action[data-state="ready"] {
  opacity: 1 !important; background: #111; color: #fff; border: 1px solid #111;
  cursor: pointer;
}
.ui-action[data-state="ready"]:hover { background: #2b2b2b; }
/* выбор цвета в карточке/драуэре товара */
.product__colors-head { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 10px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.product__colors { display: flex; gap: 10px; margin-bottom: 22px; }
.product__color {
  width: 26px; height: 26px; border-radius: 999px; padding: 0; cursor: pointer;
  border: 1px solid var(--line); background: var(--sw, #ccc);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.product__color:hover { transform: scale(1.1); }
.product__color.is-active { box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--fg); }

.product__pack {
  margin-top: clamp(28px, 4vw, 40px); padding-top: clamp(24px, 3vw, 32px);
  border-top: 1px solid var(--line); display: grid; gap: 14px;
}
.product__pack--collapsible {
  margin-top: 20px; padding-top: 0; border-top: none; border-bottom: 1px solid var(--line); gap: 0;
}
.product__pack-toggle {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0; border: none; background: none;
  color: var(--fg); font-size: 13px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; cursor: pointer; text-align: left;
}
.product__pack-toggle-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; flex: 0 0 auto;
}
.product__pack-toggle-icon svg {
  display: block;
  transition: transform 0.3s var(--ease);
}
.product__pack--collapsible.is-open .product__pack-toggle-icon svg { transform: rotate(180deg); }
.product__pack-panel { display: grid; gap: 12px; padding: 0 0 16px; }
.product__pack-panel[hidden] { display: none; }
.product__pack-kicker {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 700; color: var(--fg);
}
.product__pack-media { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.product__pack-media img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; background: #111; border-radius: 4px;
}
.product__pack-text { font-size: 15px; line-height: 1.6; color: var(--fg); margin: 0; }
.product__pack-note { font-size: 13px; line-height: 1.55; color: var(--muted); margin: 0; }
.product__gallery img.is-zoomable,
.pdrawer__gallery img.is-zoomable,
.product__pack-media img.is-zoomable { cursor: zoom-in; }

.pdrawer .product__pack { margin-top: 24px; padding-top: 0; gap: 0; }
.pdrawer .product__pack-toggle { font-size: 13px; }
.pdrawer .product__pack-media {
  grid-template-columns: 1fr 1fr;
  width: 100%;
  max-width: none;
  gap: 8px;
}
.pdrawer .product__pack-media img {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}
.pdrawer .product__pack-text { font-size: 13px; line-height: 1.55; }
/* --- выезжающий модуль карточки товара (drawer) --- */
.pdrawer {
  position: fixed; top: 0; right: 0; z-index: 96; height: 100vh;
  width: min(1100px, 96vw); background: var(--bg); border-left: 1px solid var(--line);
  transform: translateX(105%); transition: transform 0.5s var(--ease);
  display: grid; grid-template-columns: 1.5fr 1fr;
}
.pdrawer.is-open { transform: translateX(0); }
.pdrawer__gallery { overflow-y: auto; background: var(--card); }
.pdrawer__gallery img { width: 100%; display: block; }
.pdrawer__gallery img + img { margin-top: 4px; }
.pdrawer__side { position: relative; border-left: 1px solid var(--line); padding: 64px 32px 32px; overflow-y: auto; }
.pdrawer__close {
  position: absolute; top: 64px; right: 32px; z-index: 2;
  width: 28px; height: 28px; padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: none; border: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--fg);
}
.pdrawer .product__info { position: static; top: auto; }
.pdrawer .product__name { padding-right: 40px; }
@media (max-width: 760px) {
  .pdrawer {
    display: block; width: 100vw; height: 100dvh;
    overflow-x: hidden; overflow-y: auto;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
  }
  .pdrawer__gallery {
    display: flex;
    width: 100%; height: min(72dvh, 720px);
    flex: 0 0 auto;
    gap: 4px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .pdrawer__gallery::-webkit-scrollbar { display: none; }
  .pdrawer__gallery img {
    flex: 0 0 calc(100% - 16px);
    width: calc(100% - 16px);
    height: 100%;
    object-fit: cover;
    object-position: center top;
    background: var(--card);
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }
  .pdrawer__gallery img + img { margin-top: 0; }
  .pdrawer__side {
    position: relative; border-left: none; border-top: 1px solid var(--line);
    padding: 28px 24px 32px; overflow: visible;
  }
  .pdrawer__close {
    position: fixed; top: 12px; right: 12px; z-index: 12;
    width: 38px; height: 38px; border-radius: 999px;
    background: rgba(255,255,255,0.92); color: #111;
    box-shadow: 0 5px 18px rgba(0,0,0,0.18);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
}

/* --- архив / about / support --- */
.archive__inner { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; min-height: 60vh; padding: var(--pad); }
.archive__soon {
  position: relative; display: block; appearance: none; border: 0; padding: 0;
  width: min(82vw, 1000px); background: none; cursor: default;
  outline: none; box-shadow: none;
}
.archive__soon:hover,
.archive__soon:focus,
.archive__soon:focus-visible,
.archive__soon:active { outline: none; box-shadow: none; }
.archive__soon-svg {
  display: block; width: 100%; height: auto; overflow: visible;
  shape-rendering: geometricPrecision;
}
.archive__letter { cursor: pointer; pointer-events: bounding-box; }
.archive__letter-hit { fill: transparent; pointer-events: all; }
.archive__letter-outline {
  fill: #dedede; stroke: none;
  transition: fill 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.archive__letter-fill {
  opacity: 0; pointer-events: none;
  clip-path: inset(0 100% 0 0);
  transition:
    opacity 0.42s ease,
    clip-path 0.72s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, clip-path;
}
@media (max-width: 760px) {
  .archive__letter-outline { transition-duration: 0.3s; }
  .archive__letter-fill {
    transition:
      opacity 0.28s ease,
      clip-path 0.52s cubic-bezier(0.22, 1, 0.36, 1);
  }
}
.archive__sub { color: var(--muted); letter-spacing: 0.2em; text-transform: uppercase; margin-top: 18px; }
/* две равные колонки: слева текст, справа hero-видео; в адаптиве видео ниже */
.about { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: clamp(28px, 4vw, 56px); padding: var(--gap-section) var(--pad) var(--gap-bottom); }
body[data-page="about"] .page-hero { padding-bottom: 0; }
body[data-page="about"] .about { padding-top: 64px; }
.about__text {
  max-width: none;
  display: flex; flex-direction: column; height: auto; min-height: 0;
}
.about__manifesto {
  display: grid; align-content: start; gap: clamp(14px, 1.6vw, 20px);
  color: #111; font-size: clamp(16px, 1.45vw, 21px); line-height: 1.55;
}
.about__manifesto p { margin: 0; max-width: 52ch; }
.about__manifesto strong { font-weight: 800; }
.about__manifesto p {
  opacity: 0; transform: translateY(18px); filter: blur(5px);
  transition:
    opacity 0.65s var(--ease),
    transform 0.65s var(--ease),
    filter 0.65s var(--ease),
    color 0.25s var(--ease);
  transition-delay: calc(var(--manifesto-i, 0) * 90ms);
}
.about__manifesto.is-visible p { opacity: 1; transform: none; filter: none; }
@media (hover: hover) and (pointer: fine) {
  .about__manifesto.is-visible p:hover { transform: translateX(8px); color: #666; }
  .about__manifesto.is-visible p:hover strong { color: #000; }
}
@media (prefers-reduced-motion: reduce) {
  .about__manifesto p { opacity: 1; transform: none; filter: none; transition: none; }
}
.about__note + .about__note { margin-top: 14px; }
/* компактное видео сохраняет правую колонку горизонтальной сетки */
.about__video { position: relative; height: auto; min-height: 0; width: 100%; margin-left: auto; align-self: stretch; border-radius: 0; overflow: hidden; background: #000; }
.about__video video,
.about__video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .about { grid-template-columns: 1fr; align-items: start; }
  .about__text { height: auto; min-height: 0; }
  .about__video { height: auto; min-height: auto; aspect-ratio: 16/10; }
}
.about__lead { font-size: clamp(18px, 1.8vw, 25px); font-weight: 400; line-height: 1.45; margin: 0 0 32px; max-width: 48ch; }
.about__note { color: var(--muted); max-width: 44ch; }
.about__phrase {
  height: clamp(180px, 18vw, 230px); min-height: clamp(180px, 18vw, 230px);
  margin: auto 0 0; padding-top: clamp(28px, 5vw, 64px);
  overflow: visible; color: var(--muted); font-size: clamp(14px, 1.25vw, 18px); line-height: 1.45;
}
.about__phrase-inner {
  display: inline-block; max-width: 46ch;
  transition: transform 0.46s var(--ease), opacity 0.46s var(--ease), filter 0.46s var(--ease);
}
.about__phrase-inner.is-out { transform: translateY(-0.8em); opacity: 0; filter: blur(5px); }
.about__phrase-inner.is-enter { transform: translateY(0.8em); opacity: 0; filter: blur(5px); }
@media (min-width: 861px) {
  .about__lead,
  .about__note { max-width: none; }
}
.support__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding: 0 var(--pad) clamp(20px, 3vw, 28px);
}
#support .support__grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 861px) {
  #support .support__card {
    min-height: 360px;
    max-height: 360px;
    overflow: hidden;
  }
  #support .support__packaging.support__card {
    gap: 0;
    padding: clamp(24px, 3vw, 32px);
  }
  #support .support__packaging-inner {
    height: 100%;
    gap: 16px;
    align-items: stretch;
    grid-template-columns: minmax(0, 1fr) auto;
  }
  #support .support__packaging-copy {
    gap: 12px;
    align-self: start;
  }
  #support .support__packaging-media {
    height: 100%;
    min-height: 0;
    max-height: none; width: auto; aspect-ratio: 3 / 4;
    justify-self: end;
  }
  #support .support__packaging-track,
  #support .support__packaging-track img {
    height: 100%;
    min-height: 0;
    max-height: none;
    aspect-ratio: auto;
  }
}
.support__packaging.support__card {
  gap: 0;
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
}
.support__packaging-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(16px, 2vw, 24px);
  align-items: stretch;
  width: 100%;
  flex: 1;
  min-height: 0;
}
.support__packaging-copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.support__packaging-copy p { margin: 0; }
.support__packaging-media { position: relative; overflow: hidden; width: 100%; }
.support__packaging-track {
  display: flex; height: 100%;
  transition: transform 0.45s var(--ease);
  will-change: transform;
}
.support__packaging-track img {
  flex: 0 0 100%;
  width: 100%; height: 100%;
  aspect-ratio: auto;
  max-height: none;
  object-fit: cover;
  display: block;
  background: transparent;
}
.support__packaging-nav {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px; pointer-events: none;
}
.support__packaging-btn {
  pointer-events: auto;
  width: 28px; height: 28px; padding: 0;
  border: 1px solid rgba(255,255,255,0.22); background: rgba(0,0,0,0.2); color: rgba(255,255,255,0.88);
  font-size: 15px; line-height: 1; cursor: pointer;
  opacity: 0.72; transition: opacity 0.2s var(--ease), background 0.2s var(--ease);
}
.support__packaging-media:hover .support__packaging-btn,
.support__packaging-media:focus-within .support__packaging-btn { opacity: 1; }
.support__packaging-btn:hover { background: rgba(0,0,0,0.34); }
.support__packaging-dots {
  position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%);
  display: flex; gap: 5px; pointer-events: auto;
}
.support__packaging-dots span {
  width: 5px; height: 5px; border-radius: 999px; background: rgba(255,255,255,0.28);
}
.support__packaging-dots span.is-active { background: rgba(255,255,255,0.82); }
@media (max-width: 860px) {
  #support .support__grid { grid-template-columns: 1fr; }
  .support__packaging-inner { grid-template-columns: 1fr; gap: 16px; }
  .support__packaging-media { order: 2; width: 100%; aspect-ratio: 3 / 4; }
  .support__packaging-track,
  .support__packaging-track img { height: 100%; max-height: none; }
}
@media (max-width: 860px) { .support__grid { grid-template-columns: 1fr; } }
.support__card { border: 1px solid var(--line); border-radius: 0; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 16px; min-height: 360px; }
.support__card h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; letter-spacing: -0.01em; }
.support__card p { color: var(--muted); font-size: 16px; line-height: 1.55; }
.support__card--accent { background: var(--card); }
.support__card--accent .btn { margin-top: auto; align-self: flex-start; border-radius: 0; }
/* Списки в «Доставке» и «Возврате» — тот же шрифт, что у текста в «Упаковке» и «Поддержке» */
.support__list {
  margin: 0; padding: 0; list-style: none; display: grid; gap: 12px;
  color: var(--muted); font-size: 16px; line-height: 1.55;
}
.support__list li { position: relative; padding-left: 18px; }
.support__list li::before {
  content: ""; position: absolute; left: 1px; top: 0.7em;
  width: 8px; height: 1px; background: var(--fg);
}
.support__list strong { color: var(--fg); font-weight: 700; }
@media (max-width: 860px) {
  .support__card {
    min-height: 0;
    gap: 12px;
    padding: 20px 20px 32px;
  }
  .support__packaging.support__card { gap: 0; padding: 20px 20px 32px; }
  .support__card h3 { font-size: clamp(20px, 5vw, 24px); }
  .support__card p { margin: 0; }
  .support__card--accent .btn { margin-top: 32px; }
}
@media (min-width: 861px) and (max-width: 1180px) {
  #support .support__packaging.support__card {
    min-height: 360px; max-height: none; overflow: visible;
  }
  #support .support__packaging-inner {
    height: auto; grid-template-columns: 1fr; gap: 18px;
  }
  #support .support__packaging-media {
    order: 2; width: min(100%, 220px); height: auto;
    min-height: 0; max-height: none; aspect-ratio: 3 / 4;
    justify-self: start; margin-top: 2px;
  }
  #support .support__packaging-track,
  #support .support__packaging-track img { height: 100%; max-height: none; }
}
.support__faq {
  padding: 0 var(--pad) var(--gap-bottom);
  margin-top: var(--gap-section);
}
.support__faq .page-hero__title { margin-bottom: var(--gap-title); }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: 20px 0; font-size: 17px; font-weight: 600; color: var(--fg); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq__q span { transition: transform 0.3s var(--ease); }
.faq__item.is-open .faq__q span { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); color: var(--muted); }
.faq__a p { padding-bottom: 20px; }

/* ---------- FOOTER ---------- */
/* чёрный подвал; содержимое инжектится buildFooter() из main.js.
   Внутри только сетка колонок и нижняя строка — без CTA. */
.footer {
  background: var(--dark); color: var(--dark-fg);
  border-top: 1px solid var(--line);
  padding: clamp(60px, 9vw, 130px) var(--pad) 36px;
}

/* --- колонки: бренд / карта сайта / контакты / документы --- */
.footer__grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__col h4 {
  font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase;
  color: rgba(242,242,240,0.45); margin-bottom: 16px; font-weight: 600;
}
.footer__col a {
  display: block; padding: 5px 0; font-size: 14px; color: rgba(242,242,240,0.85);
  transition: color 0.25s var(--ease), transform 0.25s var(--ease);
}
.footer__col a:hover { color: #fff; transform: translateX(4px); }
/* логотип — примерно половина высоты колонки бренда, текст под ним */
.footer__logo {
  display: block; height: clamp(88px, 12vw, 130px); width: auto;
  margin-bottom: 24px; filter: invert(1); cursor: pointer;
}
.footer__logo-link { display: inline-block; color: inherit; }
/* ховер: «гаснущее» мигание в духе гезлайтинга */
.footer__logo:hover { animation: logoFlicker 1.1s steps(1) infinite; }
@keyframes logoFlicker {
  0%, 100% { opacity: 1; }
  8%  { opacity: 0.25; }
  14% { opacity: 0.95; }
  26% { opacity: 0.5; }
  34% { opacity: 1; }
  52% { opacity: 0.7; }
  62% { opacity: 1; }
  81% { opacity: 0.35; }
  88% { opacity: 0.9; }
}
.footer__about { font-size: 13px; line-height: 1.7; color: rgba(242,242,240,0.55); max-width: 240px; }

.footer__bottom {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: clamp(40px, 6vw, 70px); padding-top: 24px;
  border-top: 1px solid rgba(242,242,240,0.16);
}
.footer__copy { color: rgba(242,242,240,0.45); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer__copy--motto { letter-spacing: 0.18em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
  html { scroll-behavior: auto; }
  .loader { display: none; }
}
