/* ============ BATONS'ON — editorial / minimal ============ */
/* Шрифты подключены локально в assets/fonts/fonts.css — обращение к Google
   передавало IP каждого посетителя за границу без основания. */
:root {
  --bg: oklch(0.975 0.006 75);
  --bg-2: oklch(0.95 0.009 75);
  --ink: oklch(0.2 0.006 60);
  --ink-soft: oklch(0.46 0.008 60);
  --accent: oklch(0.52 0.07 45);
  --on-accent: oklch(0.985 0.005 80);
  --card: oklch(0.99 0.004 80);
  --line: oklch(0.9 0.006 75);
  --radius: 2px;
  --ui: 'Onest', system-ui, sans-serif;
  --display: 'Cormorant Garamond', Georgia, serif;
  --maxw: 1400px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
/* Плавную прокрутку у страницы НЕ включаем: она делает плавным любой переход,
   и при заходе в карточку товара экран больше секунды полз снизу вверх —
   покупатель успевал увидеть подвал сайта вместо товара.
   Там, где плавность нужна (переход к списку категорий), она задаётся в месте вызова. */
html { max-width: 100%; overflow-x: clip; }
body {
  font-family: var(--ui);
  background: var(--bg);
  color: var(--ink);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background .9s cubic-bezier(.4,0,.2,1), color .9s cubic-bezier(.4,0,.2,1);
  max-width: 100%;
  overflow-x: clip;
}
img { display: block; width: 100%; object-fit: cover; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: 40px; }
::selection { background: var(--ink); color: var(--bg); }

/* keyboard focus — visible ring for accessibility, never on mouse */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 1px; }
:focus:not(:focus-visible) { outline: none; }

/* tiny uppercase label */
.eyebrow { font-family: var(--ui); font-size: 11px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--ink-soft); }

/* ---------- placeholders ---------- */
.ph { position: relative; width: 100%; overflow: hidden; background: var(--bg-2);
  display: grid; place-items: center; }
.ph-stripes { position: absolute; inset: 0; opacity: .55;
  background: repeating-linear-gradient(135deg, transparent 0 16px, color-mix(in oklch, var(--ink) 5%, transparent) 16px 17px); }
.ph-label { position: relative; font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .04em; color: var(--ink-soft); text-transform: lowercase;
  background: var(--card); padding: 5px 11px; border: 1px solid var(--line); }
.media-img { width: 100%; height: 100%; }
.media-stage { position: relative; display: block; width: 100%; height: 100%; overflow: hidden; isolation: isolate; background: var(--bg-2); }
.media-backdrop { position: absolute; z-index: 0; inset: -10%; background-position: center; background-size: cover; background-repeat: no-repeat;
  filter: blur(22px) saturate(.76); opacity: .96; transform: scale(1.08); }
.media-stage > .media-img, .media-stage > .card-video, .media-stage > .pdp-video {
  position: relative; z-index: 1; width: 100%; height: 100%; display: block; object-fit: contain; object-position: center; transform: none; }
/* Фотография под роликом: видна сразу, ролик проявляется поверх, когда пошёл */
.media-stage > .card-photo { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  display: block; object-fit: cover; object-position: center; }
.media-stage > .card-video { position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity .25s ease; }
.media-stage > .card-video.rolling { opacity: 1; }
.media-stage > .pdp-video-poster { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%;
  display: block; object-fit: contain; object-position: center; background: var(--bg-2); opacity: 1; transition: opacity .2s ease; }
.media-stage > .pdp-video { position: absolute; inset: 0; z-index: 2; opacity: 0; transition: opacity .2s ease; }
.media-stage > .pdp-video.ready { opacity: 1; }
.media-stage > .pdp-video-poster.hidden { opacity: 0; }

/* ---------- header ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid var(--line);
  transition: background .9s, border-color .9s; }
.hd-row { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { font-family: var(--display); font-weight: 650; font-size: 37px; letter-spacing: .01em;
  display: flex; align-items: baseline; line-height: 1; }
.logo b { color: var(--accent); font-style: italic; }
.logo .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: 3px; align-self: center; }
.catalog-trigger { min-height: 48px; padding: 11px 18px; color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.catalog-trigger span { display: inline-block; margin-left: 6px; transition: transform .2s; }
.catalog-trigger.on span { transform: rotate(180deg); }
.catalog-panel { position: absolute; top: 100%; left: 0; right: 0; background: color-mix(in oklch, var(--bg) 97%, transparent); border-bottom: 1px solid var(--line); box-shadow: 0 24px 50px -36px rgba(0,0,0,.38); backdrop-filter: blur(24px) saturate(1.2); }
.catalog-panel-inner { padding-block: 22px 28px; }
.catalog-panel-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.catalog-panel-head > span { color: var(--ink-soft); font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.catalog-panel-head button { width: 44px; height: 44px; font-size: 24px; color: var(--ink); }
.catalog-panel-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(170px,1fr)); gap: 8px; padding-top: 14px; }
.catalog-panel-grid button { min-height: 82px; padding: 15px; border: 1px solid transparent; text-align: left; transition: background .2s,border-color .2s; }
.catalog-panel-grid button:hover,.catalog-panel-grid button.on { background: var(--bg-2); border-color: var(--line); }
.catalog-panel-grid b { display: block; color: var(--ink); font-family: var(--display); font-size: 21px; font-weight: 500; }
.catalog-panel-grid span { display: block; margin-top: 5px; color: var(--ink-soft); font-size: 11px; line-height: 1.35; }
.nav { display: flex; gap: 26px; margin-left: 12px; }
.nav button { font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-soft); transition: .25s; white-space: nowrap; position: relative; padding: 4px 0; }
.nav button::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--ink); transition: right .3s; }
.nav button:hover { color: var(--ink); }
.nav button:hover::after, .nav button.on::after { right: 0; }
.nav button.on { color: var(--ink); }
.hd-sp { flex: 1; }
.hd-tools { display: flex; align-items: center; gap: 6px; }
.hd-act { display: flex; align-items: center; gap: 18px; }
.icon-btn { width: auto; min-width: 44px; height: 44px; padding: 0 8px; display: flex; align-items: center; justify-content: center; gap: 7px; transition: .2s; position: relative; font-size: 18px; color: var(--ink); border-radius: 50%; }
.icon-btn svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.95; stroke-linecap: round; stroke-linejoin: round; }
.action-label { font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
.icon-btn:hover { opacity: .55; }
.cart-count { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 100px; background: var(--ink); color: var(--bg); font-size: 10px; font-weight: 700;
  display: grid; place-items: center; }
.admin-link { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 11px 18px; color: var(--on-accent); background: var(--ink); display: flex; align-items: center; gap: 8px; transition: .25s; }
.admin-link:hover { background: var(--accent); }
.admin-link.ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.admin-link.ghost:hover { background: var(--ink); color: var(--bg); }
.admin-link .pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--on-accent); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ opacity: 1; } 50%{ opacity: .35; } }

/* owner utility bar */
.ownerbar { background: var(--ink); color: var(--bg); }
.ownerbar-row { display: flex; align-items: center; gap: 18px; height: 42px; }
.ob-label { font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; opacity: .6; }
.ob-sp { flex: 1; }
.ob-link { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--bg);
  display: flex; align-items: center; gap: 7px; opacity: .85; transition: .2s; }
.ob-link:hover { opacity: 1; color: var(--bg); }
.ob-link .pulse { width: 6px; height: 6px; border-radius: 50%; background: oklch(0.78 0.16 145); animation: pulse 2s infinite; }
.dir-switch { display: flex; align-items: center; gap: 2px; border: 1px solid color-mix(in oklch, var(--bg) 28%, transparent); padding: 3px; }
.dir-switch .ds-cap { font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; opacity: .55; padding: 0 7px; }
.dir-switch button { font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 11px; color: var(--bg); opacity: .65; transition: .2s; }
.dir-switch button:hover { opacity: 1; }
.dir-switch button.on { background: var(--bg); color: var(--ink); opacity: 1; }

/* promo marquee (only Pop) */
.promo { display: none; overflow: hidden; background: var(--accent); color: var(--on-accent); white-space: nowrap; }
.promo-track { display: inline-flex; gap: 48px; padding: 11px 0; animation: marq 24s linear infinite; }
.promo-track span { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
@keyframes marq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- hero (full-bleed rotating video) ---------- */
.hero { position: relative; height: calc(100vh - 76px); min-height: 580px; max-height: 880px; overflow: hidden;
  display: flex; align-items: flex-end; }
.hero-bg { position: absolute; inset: 0; z-index: 0; background: #000; }
.hero-bg .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  object-position: center; opacity: 0; transition: opacity .35s ease; pointer-events: none; }
.hero-bg video.show.is-playing { opacity: 1; }
.hero-bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, color-mix(in oklch, black 20%, transparent) 0%, transparent 30%, color-mix(in oklch, black 55%, transparent) 100%); }
.hero-inner { position: relative; z-index: 2; width: 100%; padding-bottom: 64px; color: #fff; }
.hero-inner .eyebrow { color: rgba(255,255,255,.82); }
.hero h1 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; line-height: .98;
  font-size: clamp(52px, 8vw, 132px); margin: 16px 0 0; }
.hero h1.hero-slogan { font-size: clamp(46px, 6.3vw, 102px); line-height: .88; transform: translateY(20px) scaleX(.96); transform-origin: left center; margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: #fff; }
.hero h1 .continue-word { display: inline-block; letter-spacing: .035em; transform: translateY(-7px); }
.hero h1 .slogan-line { display: inline-block; font-size: .72em; white-space: nowrap; }
.hero-sub { font-size: 17px; color: rgba(255,255,255,.86); max-width: 42ch; margin-top: 22px; line-height: 1.5; font-weight: 300; }
.hero-pills { display: flex; gap: 8px; margin-top: 30px; flex-wrap: nowrap; }
.pill { min-height: 44px; padding: 13px 16px; border: 1px solid rgba(255,255,255,.45); color: #fff; font-size: 11px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase; transition: .25s; backdrop-filter: blur(4px); }
.pill:hover { background: #fff; color: var(--ink); border-color: #fff; }
.pill.primary { background: #fff; color: var(--ink); }
.pill.primary:hover { background: transparent; color: #fff; border-color: #fff; }
.hero-dots { position: absolute; right: 40px; bottom: 66px; z-index: 3; display: flex; gap: 8px; }
/* Кнопка звука стоит в правом верхнем углу, ровно под последней надписью
   бегущей строки, а не посреди кадра. */
.hero-sound { position: absolute; right: 40px; top: 64px; z-index: 4; min-height: 44px; display: flex; align-items: center; gap: 8px;
  padding: 11px 16px; border: 1px solid rgba(255,255,255,.5); color: #fff; font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; backdrop-filter: blur(6px); transition: .25s; }
.hero-sound:hover, .hero-sound[aria-pressed="true"] { background: #fff; color: var(--ink); border-color: #fff; }
.hero-dots i { width: 28px; height: 2px; background: rgba(255,255,255,.4); transition: .3s; cursor: pointer; }
.hero-dots i.on { background: #fff; }
.hero-marquee { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; gap: 40px; justify-content: space-between;
  padding: 14px 40px; font-size: 12.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.92); }

/* ---------- btn ---------- */
.btn { padding: 15px 30px; font-weight: 500; font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  transition: .25s; display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--ink); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: transparent; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--bg); }

/* ---------- category tiles ---------- */
.tiles { padding-block: 90px 40px; }
.tiles-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tile { position: relative; overflow: hidden; aspect-ratio: 3/4.4; background: var(--bg-2); cursor: pointer; }
.tile .ph, .tile .media-img { width: 100%; height: 100%; transition: transform 1s cubic-bezier(.2,0,.1,1); }
/* Обложка категории заполняет плитку целиком. Раньше фото вписывалось внутрь,
   а поля по краям закрывались размытой копией — на телефоне это выглядело
   как фотография в серой рамке. */
.tile .media-stage > .media-img, .tile .media-stage > .card-video, .tile .media-stage > video {
  position: absolute; inset: 0; object-fit: cover; object-position: center; }
.tile .media-backdrop { display: none; }
.tile:hover .ph, .tile:hover .media-img { transform: scale(1.05); }
.tile::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(transparent 45%, color-mix(in oklch, black 58%, transparent)); transition: .4s; }
.tile:hover::after { background: linear-gradient(transparent 30%, color-mix(in oklch, black 65%, transparent)); }
.tile-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px; color: #fff; text-align: center; }
.tile-cap .tn { font-family: var(--display); font-weight: 500; font-size: 26px; line-height: 1; }
.tile-cap .tl { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 7px; }

/* ---------- section ---------- */
.sec { padding-block: 70px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; gap: 20px; }
.sec-head .h-l { display: flex; flex-direction: column; gap: 12px; }
.sec-head h2 { font-family: var(--display); font-weight: 500; letter-spacing: -.01em; font-size: clamp(34px, 4.4vw, 58px); line-height: .98; }
.sec-head p { color: var(--ink-soft); font-size: 15px; font-weight: 300; max-width: 50ch; }
.sec-head .link { min-height: 44px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; padding-top: 4px; border-bottom: 1px solid var(--ink); transition: .25s; }
.sec-head .link:hover { gap: 14px; }
.sec-center { text-align: center; align-items: center; flex-direction: column; }

/* ---------- product grid (premium) ---------- */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 18px; }
.card { background: transparent; cursor: pointer; display: flex; flex-direction: column; outline: none; }
.card:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.card-media { position: relative; overflow: hidden; background: var(--bg-2); aspect-ratio: 360/470;
  transition: box-shadow .45s cubic-bezier(.2,0,.1,1); }
.card:hover .card-media { box-shadow: 0 24px 50px -30px color-mix(in oklch, var(--ink) 60%, transparent); }
.card-media .ph, .card-media .media-stage { width: 100%; height: 100%; }
.card-media .media-stage > .media-img,
.card-media .media-stage > .card-video { object-fit: cover; object-position: center; }
.card-media .media-backdrop { display: none; }
.media-arrow { position: absolute; top: 50%; z-index: 6; width: 44px; height: 44px; transform: translateY(-50%);
  display: grid; place-items: center; padding: 0; border: 1px solid rgba(255,255,255,.72); border-radius: 50%;
  background: transparent; color: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.18); filter: drop-shadow(0 1px 1px rgba(0,0,0,.34));
  transition: background .2s, border-color .2s, transform .2s; }
.media-arrow svg { display: block; width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.media-arrow:hover { background: rgba(255,255,255,.18); border-color: #fff; transform: translateY(-50%) scale(1.05); }
.media-arrow.prev { left: 12px; }
.media-arrow.next { right: 12px; }
.card-media .media-img { transition: opacity .25s ease; }
.card-media::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: color-mix(in oklch, var(--ink) 5%, transparent); opacity: 0; transition: opacity .4s; }
.card:hover .card-media::after { opacity: 1; }
.card-badge { position: absolute; top: 14px; left: 14px; z-index: 4; }
.card-off { position: absolute; top: 14px; right: 14px; z-index: 4; color: var(--ink); background: var(--bg);
  font-weight: 600; font-size: 11px; letter-spacing: .04em; padding: 5px 9px; font-variant-numeric: tabular-nums; }
.badge { background: transparent; color: #fff; font-weight: 600; font-size: 10px; letter-spacing: .14em;
  padding: 0; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0,0,0,.45); }
.card-wish { position: absolute; top: 8px; right: 8px; z-index: 5; width: 20px; height: 20px; display: grid; place-items: center;
  background: color-mix(in oklch, var(--bg) 45%, transparent); backdrop-filter: blur(6px); border-radius: 50%; font-size: 11px; line-height: 1;
  color: var(--ink); opacity: 0; transform: scale(.82); transition: opacity .25s, transform .25s, background .2s, color .2s;
  pointer-events: none; }
.card:hover .card-wish { opacity: .85; transform: scale(1); pointer-events: auto; }
.card:hover .card-wish:hover { opacity: 1; }
.card-wish:hover { background: var(--ink); color: var(--bg); }
.card:hover .card-wish.on { color: var(--accent); background: color-mix(in oklch, var(--bg) 70%, transparent); }
.card-wish:active { transform: scale(.9); }
.card-quick { position: absolute; right: 9px; bottom: 9px; left: auto; z-index: 4; height: 30px; padding: 0 10px; border-radius: 4px;
  background: color-mix(in oklch, var(--ink) 88%, transparent); color: var(--bg); backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: 5px; font-weight: 500; font-size: 14px; line-height: 1; letter-spacing: 0; text-transform: none;
  opacity: 0; transform: translateY(6px); transition: opacity .28s, transform .28s, background .2s; }
.card-quick .cq-sign { font-size: 15px; line-height: 1; margin-top: -1px; }
.card-quick .cq-bag { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card:hover .card-quick { opacity: 1; transform: translateY(0); }
.card-quick:hover { background: var(--accent); }
.card-quick:active { transform: scale(.985); }
.card-quick.added { background: oklch(0.6 0.13 150); color: #fff; }
.card-body { padding: 16px 2px 4px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card { display: flex; flex-direction: column; }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.card-name { font-size: 15px; font-weight: 500; line-height: 1.25; transition: color .2s;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  min-height: calc(2 * 1.25em); }
.card:hover .card-name { color: var(--accent); }
.card-brand { font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.card-sub { font-size: 13px; color: var(--ink-soft); font-weight: 300; line-height: 1.35; }
.stars { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-soft); font-weight: 300; }
.stars-fill { color: var(--ink); letter-spacing: -1px; font-size: 11px; }
.stars-val { font-weight: 500; color: var(--ink); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 3px; height: 34px; overflow: hidden; }
.card-foot .price { flex: none; }
.available-colors { color: var(--muted); font-size: 11.5px; line-height: 1.35; min-height: 30px; }
.available-colors b { color: var(--ink); font-weight: 650; }
.card-stock-out { color: #9f2f2f; font-size: 12px; font-weight: 700; }
.card-quick:disabled { cursor: not-allowed; opacity: .65; }
.price { display: flex; align-items: baseline; gap: 9px; }
.price-now { font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-old { font-size: 13px; color: var(--ink-soft); text-decoration: line-through; font-weight: 300; font-variant-numeric: tabular-nums; }
.swatches { display: flex; gap: 0; align-items: center; flex: 0 1 auto; min-width: 0; overflow: hidden; }
.swatch { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; transition: transform .2s; }
.swatch::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--swatch-color);
  box-shadow: inset 0 0 0 1px color-mix(in oklch, var(--ink) 18%, transparent); transition: box-shadow .2s, transform .2s; }
.swatch:hover::before { transform: scale(1.12); }
.swatch.on::before { box-shadow: 0 0 0 1.5px var(--bg), 0 0 0 3px var(--ink); }
.swatch-more { font-size: 11px; color: var(--ink-soft); font-weight: 500; flex: none; padding-left: 3px; }
@media (hover: none) {
  .card-quick { opacity: 1; transform: none; height: 28px; padding: 0 8px; gap: 4px; }
  /* «Пушистая демисезонная кепка — серо-голубая» не дочитывалась: обрывалась на цвете */
  .card-name { -webkit-line-clamp: 4; min-height: calc(2 * 1.3em); font-size: 13px; line-height: 1.3; letter-spacing: -0.01em; }
  /* стрелка перелистывания закрывала пол-лица на фото */
  .media-arrow { width: 32px; height: 32px; }
  .media-arrow svg { width: 18px; height: 18px; }
  .card-foot { height: auto; min-height: 30px; }
  .card-quick .cq-bag { width: 14px; height: 14px; }
}

/* ---------- editorial: shop the look ---------- */
.editorial { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; align-items: stretch; }
.editorial.rev { grid-template-columns: 1fr 1.15fr; }
.ed-img { position: relative; overflow: hidden; min-height: 540px; background: var(--bg-2); }
.ed-img img { width: 100%; height: 100%; object-position: top center; }
.ed-img .ai-flag { position: absolute; top: 20px; left: 20px; font-family: 'JetBrains Mono', monospace; font-size: 10px;
  letter-spacing: .04em; color: #fff; background: color-mix(in oklch, black 45%, transparent); padding: 7px 11px; display: flex; align-items: center; gap: 7px; backdrop-filter: blur(6px); }
.ed-img .ai-flag .sp { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 1.8s infinite; }
.ed-body { background: var(--card); display: flex; flex-direction: column; justify-content: center; padding: 64px clamp(32px, 5vw, 84px); }
.ed-body h3 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 3.6vw, 46px); line-height: 1; margin: 14px 0 14px; }
.ed-body p { color: var(--ink-soft); font-weight: 300; font-size: 15px; line-height: 1.6; max-width: 38ch; }
.ed-items { display: flex; flex-direction: column; margin-top: 28px; }
.ed-item { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); cursor: pointer; transition: .2s; }
.ed-item:last-child { border-bottom: 1px solid var(--line); }
.ed-item:hover { padding-left: 8px; }
.ed-item-media { width: 56px; height: 70px; flex-shrink: 0; overflow: hidden; background: var(--bg-2); }
.ed-item-info { flex: 1; }
.ed-item-info b { font-weight: 500; font-size: 14px; display: block; }
.ed-item-info span { font-size: 12px; color: var(--ink-soft); font-weight: 300; }
.ed-item-price { font-weight: 600; font-size: 14px; }
.ed-item .arr { font-size: 16px; color: var(--ink-soft); }

/* ---------- готовые образы ---------- */
.of-nav { display: flex; gap: 8px; }
.of-nav { display: none; }
.of-nav button { width: 46px; height: 46px; border: 1px solid var(--ink); font-size: 16px; transition: .25s; }
.of-nav button:hover { background: var(--ink); color: var(--bg); }
.outfits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.outfit { display: flex; flex-direction: column; }
.of-media { position: relative; overflow: hidden; aspect-ratio: 4/5; background: var(--bg-2); cursor: default; }
.of-media video, .of-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 1s; }
.of-media:hover video, .of-media:hover img { transform: scale(1.04); }
.of-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, color-mix(in oklch, black 62%, transparent)); }
.of-tag { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 10px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: #fff; background: color-mix(in oklch, black 40%, transparent); backdrop-filter: blur(6px); padding: 6px 11px; }
.of-play { position: absolute; top: 14px; right: 14px; z-index: 2; font-family: 'JetBrains Mono', monospace; font-size: 10px;
  color: #fff; background: color-mix(in oklch, black 40%, transparent); backdrop-filter: blur(6px); padding: 6px 10px; }
.of-cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px; color: #fff; }
.of-cap b { font-family: var(--display); font-weight: 500; font-size: 26px; display: block; line-height: 1; }
.of-cap span { font-size: 12px; opacity: .9; font-weight: 300; }
.of-items { display: flex; flex-direction: column; margin: 4px 0 0; }
.of-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px;
  border-bottom: 1px solid var(--line); text-align: left; transition: .2s; }
.of-item:hover { padding-left: 6px; }
.of-item-name { font-size: 13.5px; font-weight: 400; }
.of-item-price { font-size: 13px; font-weight: 600; white-space: nowrap; }
.of-add { margin-top: 14px; padding: 15px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase; transition: .25s; }
.of-add:hover { background: var(--accent); }
.looks { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.look { overflow: hidden; position: relative; aspect-ratio: 3/4; background: var(--bg-2); cursor: pointer; }
.look img { width: 100%; height: 100%; object-position: top center; transition: transform 1s; }
.look:hover img { transform: scale(1.05); }
.look::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 55%, color-mix(in oklch, black 60%, transparent)); }
.look-info { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px; z-index: 2; color: #fff; }
.look-info b { font-family: var(--display); font-weight: 500; font-size: 21px; display: block; }
.look-info span { font-size: 12px; opacity: .85; font-weight: 300; }
.look-ai { position: absolute; top: 14px; left: 14px; z-index: 2; font-family: 'JetBrains Mono', monospace;
  font-size: 10px; background: color-mix(in oklch, black 45%, transparent); color: #fff; padding: 6px 10px;
  display: flex; align-items: center; gap: 6px; backdrop-filter: blur(6px); }
.look-ai .sp { width: 5px; height: 5px; border-radius: 50%; background: #fff; }

/* ---------- newsletter ---------- */
.news { padding: 100px 0; text-align: center; background: var(--bg-2); transition: background .9s; }
.news h2 { font-family: var(--display); font-weight: 500; font-size: clamp(34px, 4.6vw, 58px); line-height: 1; }
.news p { color: var(--ink-soft); font-weight: 300; font-size: 16px; margin: 16px auto 30px; max-width: 46ch; }
.news-form { display: flex; gap: 0; max-width: 480px; margin: 0 auto; border: 1px solid var(--ink); }
.news-form input { flex: 1; padding: 16px 20px; background: transparent; border: none; font-size: 14px; color: var(--ink); }
.news-form input:focus { outline: none; }
.news-form button { padding: 0 28px; background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; }

/* ---------- footer ---------- */
.ft { border-top: 1px solid var(--line); padding: 70px 0 40px; }
.ft-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 42px; }
.ft h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .16em; color: var(--ink-soft); margin-bottom: 18px; font-weight: 600; }
.ft a, .ft p { display: block; color: var(--ink); font-size: 14px; margin-bottom: 11px; font-weight: 300; }
.ft a:hover { color: var(--accent); }
.ft-logo { font-family: var(--display); font-weight: 600; font-size: 34px; margin-bottom: 14px; }
.ft-soc { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ft-soc a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px 7px 7px; border: 1px solid var(--line); border-radius: 999px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); margin: 0; }
.ft-soc a:hover { border-color: currentColor; transform: translateY(-1px); }
.soc-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: #fff; font-weight: 700; font-size: 13px; }
.instagram .soc-icon { background: linear-gradient(135deg, #7c3aed, #e1306c 48%, #f59e0b); }
.tiktok .soc-icon { background: #111; text-shadow: -1px 0 #25f4ee, 1px 0 #fe2c55; }
.youtube .soc-icon { background: #ff0033; font-size: 10px; }
.pinterest .soc-icon { background: #e60023; font-family: Georgia, serif; }
.ft-support p { max-width: 24ch; }
.ft-support button, .support-result button { min-height: 42px; padding: 0 17px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.ft-support-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ft-support .ft-admin-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; margin: 0;
  border: 1px solid var(--line); color: var(--ink-soft); font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ft-support .ft-admin-link:hover { border-color: var(--ink); color: var(--ink); }
.support-modal { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px; background: rgba(17,15,13,.56); backdrop-filter: blur(8px); }
.support-card { position: relative; width: min(560px, 100%); max-height: calc(100svh - 32px); overflow-y: auto; padding: 38px; background: var(--bg); color: var(--ink); box-shadow: 0 24px 80px rgba(0,0,0,.24); }
.support-card h2 { margin: 10px 0 26px; font-family: var(--display); font-size: clamp(34px, 5vw, 52px); font-weight: 500; line-height: 1; }
.support-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border: 0; background: transparent; color: var(--ink); font-size: 30px; }
.support-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; }
.support-form label { display: grid; gap: 8px; color: var(--ink-soft); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.support-form label:nth-of-type(5), .support-consent, .support-note, .support-submit { grid-column: 1 / -1; }
.support-form input, .support-form select, .support-form textarea { width: 100%; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 13px 14px; font: inherit; font-size: 14px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.support-form textarea { resize: vertical; min-height: 110px; }
.support-consent { display: flex !important; grid-template-columns: 18px 1fr !important; align-items: start; text-transform: none !important; letter-spacing: 0 !important; font-weight: 400 !important; }
.support-consent input { width: 18px; height: 18px; padding: 0; }
.support-note { margin: 0; color: #a33; font-size: 13px; }
.support-submit { min-height: 50px; border: 1px solid var(--ink); background: var(--ink); color: var(--bg); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.support-submit:disabled { opacity: .55; }
.support-result b { display: block; margin-bottom: 8px; font-size: 20px; }
.support-result p { margin-bottom: 24px; }
.ft-bottom { margin-top: 46px; padding-top: 22px; border-top: 1px solid var(--line); display: grid;
  grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 12px; color: var(--ink-soft); font-weight: 300; }
.ft-bottom .pay-row { grid-column: 2; justify-self: center; }
.pay-row { display: flex; gap: 10px; align-items: center; }
.pay-chip { border: 1px solid var(--line); padding: 5px 10px; font-size: 10px; font-weight: 600; letter-spacing: .06em; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .wrap { padding-inline: 24px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tiles-grid { grid-template-columns: repeat(3, 1fr); }
  .outfits { grid-template-columns: repeat(2, 1fr); }
  .looks { grid-template-columns: repeat(3, 1fr); }
  .editorial, .editorial.rev { grid-template-columns: 1fr; }
  .ed-img { min-height: 420px; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  #root { width: 100%; max-width: 100%; overflow-x: clip; }
  .wrap { padding-inline: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px; }
  .tiles-grid { grid-template-columns: repeat(2, 1fr); }
  .outfits { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .looks { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .hd-row { gap: 4px; }
  /* Логотипу нельзя давать сжиматься: при min-width: 0 флекс ужимал его до 22px,
     а текст с nowrap вылезал наружу и налезал на значок поиска. */
  .logo { flex: 0 0 auto; min-width: auto; font-size: 22px; white-space: nowrap; }
  .hd-tools { gap: 0; margin-left: auto; flex: 0 0 auto; }
  .catalog-trigger { margin-left: 0; min-height: 48px; padding-inline: 5px; font-size: 11.5px; font-weight: 800; letter-spacing: .035em; }
  .catalog-trigger span { margin-left: 3px; font-size: 18px; font-weight: 800; line-height: 1; }
  .catalog-panel { max-height: calc(100svh - 76px); overflow-y: auto; }
  .catalog-panel-grid { grid-template-columns: 1fr 1fr; }
  .catalog-panel-grid button { min-height: 74px; padding: 12px; }
  .catalog-panel-grid b { font-size: 18px; }
  .hd-act { gap: 0; }
  .icon-btn { width: 38px; min-width: 38px; height: 44px; padding: 0; }
  .icon-btn svg { width: 23px; height: 23px; stroke-width: 1.9; }
  .cart-trigger { width: 54px; min-width: 54px; height: 54px; }
  .cart-trigger svg { width: 31px; height: 31px; stroke-width: 2.5; }
  .card-wish { width: 22px; height: 22px; font-size: 12px; }
  .card:active .card-wish { opacity: .9; transform: scale(1); pointer-events: auto; }
  .action-label { display: none; }
  .hero { height: auto; min-height: calc(100svh - 76px); max-height: none; }
  .hero h1 { font-size: clamp(44px, 13vw, 80px); }
  .hero h1.hero-slogan { font-size: clamp(36px, 9.8vw, 58px); transform: translateY(12px) scaleX(.97); margin-bottom: 12px; }
  .hero h1 .slogan-line { font-size: .66em; white-space: normal; }
  .hero-inner { padding-bottom: 52px; }
  .hero-pills { flex-wrap: wrap; }
  .hero-marquee { display: none; }
  .hero-sound { top: 12px; right: 16px; }
  .hero-dots { right: 16px; bottom: 24px; }
  .sec-head { align-items: flex-start; margin-bottom: 28px; }
  .card-foot { align-items: flex-start; flex-direction: column; }
  .ft-grid { grid-template-columns: 1fr; }
  .support-card { padding: 30px 20px 24px; }
  .support-form { grid-template-columns: 1fr; }
  .support-form label, .support-consent, .support-note, .support-submit { grid-column: 1; }
  .ft-bottom { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
  .pay-row { flex-wrap: wrap; }
  .news-form { width: 100%; }
  .news-form input { min-width: 0; }
  .news-form button { padding-inline: 18px; }
  .ob-label { display: none; }
  .ownerbar-row { gap: 12px; justify-content: space-between; }
  .dir-switch .ds-cap { display: none; }
}

/* ============ DIRECTION: POP (энергичнее, плотнее, как у конкурентов, но лучше) ============ */
[data-dir="pop"] { --display: var(--ui); --radius: 4px; }
[data-dir="pop"] .promo { display: block; }
[data-dir="pop"] body, [data-dir="pop"] { font-weight: 500; }
[data-dir="pop"] .logo { font-weight: 800; letter-spacing: -.03em; }
[data-dir="pop"] .logo b { font-style: normal; }
[data-dir="pop"] .hero h1 { font-weight: 800; letter-spacing: -.04em; text-transform: uppercase; line-height: .9; }
[data-dir="pop"] .hero h1 em { font-style: normal; color: var(--accent); }
[data-dir="pop"] .hero-sub { font-weight: 400; }
[data-dir="pop"] .sec-head h2, [data-dir="pop"] .news h2, [data-dir="pop"] .ed-body h3,
[data-dir="pop"] .cat-head h1, [data-dir="pop"] .pdp-info h1 { font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; }
[data-dir="pop"] .of-cap b, [data-dir="pop"] .look-info b, [data-dir="pop"] .tile-cap .tn { font-weight: 800; letter-spacing: -.02em; text-transform: uppercase; }
[data-dir="pop"] .ft-logo { font-weight: 800; letter-spacing: -.03em; }
[data-dir="pop"] .pill.primary, [data-dir="pop"] .btn-primary, [data-dir="pop"] .of-add,
[data-dir="pop"] .card-quick, [data-dir="pop"] .news-form button, [data-dir="pop"] .ft-install-btn, [data-dir="pop"] .admin-link { background: var(--accent); color: var(--on-accent); }
[data-dir="pop"] .btn-primary { border-color: var(--accent); }
[data-dir="pop"] .pill.primary:hover, [data-dir="pop"] .btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
[data-dir="pop"] .card-name { font-weight: 700; }
[data-dir="pop"] .card-off { background: var(--accent); color: var(--on-accent); font-weight: 700; }
[data-dir="pop"] .card-media { border: 1px solid var(--line); }
[data-dir="pop"] .eyebrow { color: var(--accent); }
[data-dir="pop"] .sec { padding-block: 56px; }

/* ============ DIRECTION: GLASS (Liquid Glass — матовое стекло поверх медиа) ============ */
[data-dir="glass"] { --radius: 22px; --accent: oklch(0.62 0.16 250); }
[data-dir="glass"] .hd { background: color-mix(in oklch, var(--bg) 55%, transparent); backdrop-filter: blur(26px) saturate(1.5); }
[data-dir="glass"] .hero h1 { letter-spacing: -.02em; }
[data-dir="glass"] .hero-inner { background: color-mix(in oklch, #fff 12%, transparent); backdrop-filter: blur(30px) saturate(1.4);
  border: 1px solid rgba(255,255,255,.35); border-radius: 30px; padding: 44px clamp(28px,4vw,60px) 50px;
  margin-bottom: 40px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.4); }
[data-dir="glass"] .pill { border-radius: 100px; background: color-mix(in oklch, #fff 16%, transparent);
  backdrop-filter: blur(12px); border-color: rgba(255,255,255,.5); }
[data-dir="glass"] .tile, [data-dir="glass"] .card-media, [data-dir="glass"] .of-media, [data-dir="glass"] .look,
[data-dir="glass"] .pdp-main, [data-dir="glass"] .ed-img { border-radius: 22px; }
[data-dir="glass"] .card-media { border: 1px solid color-mix(in oklch, var(--ink) 8%, transparent);
  box-shadow: 0 20px 50px -30px color-mix(in oklch, var(--ink) 45%, transparent); }
[data-dir="glass"] .card-quick, [data-dir="glass"] .card-wish { border-radius: 100px;
  background: color-mix(in oklch, #fff 50%, transparent); backdrop-filter: blur(14px); color: var(--ink); }
[data-dir="glass"] .card-quick:hover { background: var(--accent); color: #fff; }
[data-dir="glass"] .badge { background: color-mix(in oklch, #fff 24%, transparent); backdrop-filter: blur(10px);
  padding: 5px 11px; border-radius: 100px; text-shadow: none; color: var(--ink); }
[data-dir="glass"] .btn { border-radius: 100px; }
[data-dir="glass"] .news-form { border-radius: 100px; overflow: hidden; }
[data-dir="glass"] .co-card, [data-dir="glass"] .drawer { backdrop-filter: blur(20px); }

/* ============ DIRECTION: MEGA (Oversized Typography — гигантский шрифт, электрик-синий) ============ */
[data-dir="mega"] { --display: var(--ui); --accent: oklch(0.46 0.28 268); --radius: 0px; }
[data-dir="mega"] body { font-weight: 600; }
[data-dir="mega"] .logo { font-weight: 800; letter-spacing: -.04em; }
[data-dir="mega"] .logo b { font-style: normal; color: var(--accent); }
[data-dir="mega"] .hero h1 { font-weight: 800; letter-spacing: -.05em; line-height: .82; text-transform: uppercase;
  font-size: clamp(64px, 13vw, 220px); mix-blend-mode: normal; }
[data-dir="mega"] .hero h1 em { color: var(--accent); font-style: normal; }
[data-dir="mega"] .hero-sub { font-weight: 500; }
[data-dir="mega"] .sec-head h2, [data-dir="mega"] .news h2, [data-dir="mega"] .cat-head h1,
[data-dir="mega"] .pdp-info h1 { font-weight: 800; letter-spacing: -.045em; text-transform: uppercase;
  font-size: clamp(40px, 7vw, 110px); line-height: .85; color: var(--accent); }
[data-dir="mega"] .ed-body h3, [data-dir="mega"] .of-cap b, [data-dir="mega"] .tile-cap .tn,
[data-dir="mega"] .look-info b { font-weight: 800; letter-spacing: -.03em; text-transform: uppercase; }
[data-dir="mega"] .eyebrow { color: var(--accent); font-weight: 700; }
[data-dir="mega"] .ft-logo { font-weight: 800; letter-spacing: -.04em; }
[data-dir="mega"] .pill.primary, [data-dir="mega"] .btn-primary, [data-dir="mega"] .of-add,
[data-dir="mega"] .card-quick, [data-dir="mega"] .news-form button, [data-dir="mega"] .ft-install-btn, [data-dir="mega"] .admin-link { background: var(--accent); color: #fff; }
[data-dir="mega"] .btn-primary { border-color: var(--accent); }
[data-dir="mega"] .card-name { font-weight: 700; }
[data-dir="mega"] .card-off { background: var(--accent); color: #fff; font-weight: 700; }

/* ---------- reduced motion (HIG) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .promo-track { animation: none !important; transform: none !important; }
  .hero-bg video { display: none; }
  .hero-bg { background: #000; }
}

/* управление видео на карточке товара — только снизу, ничего по центру */
.pdp-video-bar { position: absolute; z-index: 3; left: 10px; bottom: 10px; display: flex; gap: 8px; opacity: .38; transition: opacity .25s; }
.pdp-main:hover .pdp-video-bar, .pdp-video-bar:focus-within, .pdp-video-bar:active { opacity: 1; }
.pdp-vbtn { width: 36px; height: 36px; border: 0; border-radius: 50%; cursor: pointer; font-size: 13px; line-height: 1;
  display: grid; place-items: center; color: var(--bg); background: color-mix(in oklch, var(--ink) 62%, transparent);
  backdrop-filter: blur(6px); transition: background .2s, opacity .2s; }
.pdp-vbtn:hover { background: color-mix(in oklch, var(--ink) 82%, transparent); }
.pdp-vbtn.on { background: color-mix(in oklch, var(--accent) 78%, transparent); }
.icon-btn.wish-on { color: var(--accent); }

/* возврат из категории к выбору категорий */
.cat-back { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 40px;
  padding: 8px 15px; margin-bottom: 18px; border: 1px solid var(--line); border-radius: var(--radius);
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink);
  background: transparent; transition: color .2s, background .2s, border-color .2s, transform .15s; }
.cat-back-arrow { font-size: 20px; font-weight: 700; line-height: 1; transform: translateY(-1px); }
.cat-back:hover { color: var(--ink); background: color-mix(in oklch, var(--ink) 7%, var(--bg)); border-color: color-mix(in oklch, var(--ink) 35%, var(--line)); }
.cat-back:active { transform: translateY(1px); }
@media (max-width: 700px) {
  .cat-back { min-height: 46px; padding: 10px 15px; font-size: 13px; }
  .cat-back-arrow { font-size: 22px; }
}

/* ---------- правовые страницы, реквизиты и cookie ---------- */
.ft-legal { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.ft-legal-links { display: flex; flex-wrap: wrap; gap: 18px; }
.ft-legal-links button { font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; transition: color .2s; }
.ft-legal-links button:hover { color: var(--ink); }
.ft-requisites { font-size: 11.5px; line-height: 1.7; color: var(--ink-soft); max-width: 92ch; }

/* Та же ошибка, что была утром у «Личного кабинета»: сокращённая запись
   padding обнуляла боковые поля, текст упирался в край экрана на телефоне. */
.legal { padding-top: 46px; padding-bottom: 70px; max-width: 820px; }
.legal h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 42px); margin: 6px 0 22px; }
.legal-body { font-size: 15px; line-height: 1.75; color: var(--ink); display: flex; flex-direction: column; gap: 12px; }
.legal-body h2 { font-size: 17px; font-weight: 600; margin-top: 18px; }
.legal-note { font-size: 12.5px; color: var(--ink-soft); border-left: 2px solid var(--line); padding-left: 12px; margin-top: 18px; }
.legal-details { display: grid; grid-template-columns: minmax(0, 190px) minmax(0, 1fr); gap: 10px 18px; font-size: 15px; }
.legal-details dt { color: var(--ink-soft); }
.legal-details dd { margin: 0; }

.cookie-bar { position: fixed; right: 16px; bottom: 80px; left: auto; z-index: 1200; max-width: 420px;
  display: flex; align-items: center; gap: 12px; background: color-mix(in oklch, var(--ink) 94%, transparent); color: var(--bg);
  padding: 11px 13px; border-radius: 6px; box-shadow: 0 14px 34px rgba(0,0,0,.20); font-size: 12px; line-height: 1.45; }
.cookie-bar p { margin: 0; }
.cookie-link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.cookie-ok { flex: none; background: var(--bg); color: var(--ink); border-radius: 4px; padding: 7px 14px; font-size: 11px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; transition: opacity .2s; }
.cookie-ok:hover { opacity: .82; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-secondary { flex: none; border: 1px solid currentColor; color: inherit; border-radius: 4px; padding: 7px 12px; font-size: 11px; font-weight: 600; }
.cookie-details { flex-basis: 100%; opacity: .82; font-size: 12px; }
@media (max-width: 720px) {
  .legal-details { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .legal-details dd { margin-bottom: 10px; }
  .cookie-bar { left: 10px; right: 10px; bottom: 10px; max-width: none; padding: 10px 12px; font-size: 12px; flex-wrap: wrap; }
  .cookie-actions { width: 100%; }
  .cookie-ok, .cookie-secondary { flex: 1 1 auto; text-align: center; }
}
.co-consent { display: flex; gap: 9px; align-items: flex-start; margin-top: 16px; font-size: 12.5px; line-height: 1.55; color: var(--ink-soft); }
.co-consent input { margin-top: 2px; flex: none; width: 16px; height: 16px; accent-color: var(--ink); }
/* Текст согласия не сжимался и вылезал за карточку вправо: во flex элемент
   по умолчанию не уже своего содержимого, нужен явный min-width: 0 */
.co-consent > span { flex: 1 1 auto; min-width: 0; }
.co-consent button { display: inline; text-align: left; white-space: normal; padding: 0; }
.co-consent button { color: var(--ink); text-decoration: underline; text-underline-offset: 2px; }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; }
.cookie-close { flex: none; width: 22px; height: 22px; border-radius: 50%; color: inherit; opacity: .6; font-size: 16px; line-height: 1; }
.cookie-close:hover { opacity: 1; }

/* длинные названия товаров на телефоне не должны вылезать за экран */
@media (max-width: 720px) {
  .pdp h1, .pdp-info h1 { font-size: clamp(22px, 6.4vw, 28px); line-height: 1.12; overflow-wrap: anywhere; hyphens: auto; }
  .legal h1 { overflow-wrap: anywhere; }
}
.co-error { margin-top: 10px; font-size: 13px; color: oklch(0.55 0.17 25); }

/* ---------- личный кабинет ---------- */
/* Верх/низ отдельно от боковых полей: сокращённая запись `padding: 46px 0 70px`
   заодно обнуляла padding-left/right, перебивая общий боковой отступ `.wrap` —
   на телефоне текст личного кабинета упирался прямо в край экрана. */
.account { padding-top: 46px; padding-bottom: 70px; max-width: 780px; }
.account h1 { font-family: var(--display); font-size: clamp(28px, 4vw, 40px); margin: 6px 0 10px; }
.account-lead { color: var(--ink-soft); font-size: 14px; margin-bottom: 22px; }
.account-tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.account-tabs button { padding: 9px 16px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
.account-tabs button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.account-form { display: grid; gap: 12px; max-width: 420px; }
.account-form label { display: grid; gap: 6px; font-size: 13px; color: var(--ink-soft); }
.account-form input { padding: 12px 13px; border: 1px solid var(--line); border-radius: 4px; font-size: 15px; background: var(--card); color: var(--ink); }
.account-orders { display: grid; gap: 14px; }
.account-order { border: 1px solid var(--line); border-radius: 6px; padding: 16px; display: grid; gap: 8px; background: var(--card); }
.account-order-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.order-badge { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 5px 10px; border-radius: 100px; background: var(--bg-2); }
.order-shipped { background: oklch(0.88 0.09 240); }
.order-delivered { background: oklch(0.88 0.11 150); }
.order-canceled { background: oklch(0.9 0.06 25); }
.account-order-items { font-size: 14px; line-height: 1.5; }
.account-order-foot { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-soft); }
.account-order-foot b { color: var(--ink); font-size: 15px; }
.account-repeat { justify-content: center; margin-top: 4px; }
.account-empty { color: var(--ink-soft); }

/* ---------- отзывы ---------- */
.review-stars { display: flex; gap: 4px; }
.review-stars button { font-size: 26px; line-height: 1; color: var(--line); transition: color .15s; }
.review-stars button.on { color: oklch(0.72 0.15 75); }
.account-form textarea, .account-form select { padding: 12px 13px; border: 1px solid var(--line); border-radius: 4px; font-size: 15px; background: var(--card); color: var(--ink); font-family: inherit; }
.pdp-reviews { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 20px; }
.pdp-reviews h2 { font-size: 17px; font-weight: 600; display: flex; align-items: baseline; gap: 10px; }
.pdp-reviews h2 span { font-size: 13px; color: var(--ink-soft); font-weight: 400; }
.pdp-reviews-list { display: grid; gap: 12px; margin-top: 14px; }
.pdp-review { border: 1px solid var(--line); border-radius: 6px; padding: 13px 15px; background: var(--card); }
.pdp-review-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 6px; }
.pdp-review-head span { color: oklch(0.72 0.15 75); letter-spacing: 1px; }
.pdp-review p { font-size: 14px; line-height: 1.6; margin: 0; }
