/* =========================================================================
   Japan Select — прототип (Этап 5, Фаза 2)
   Дизайн-система: нейтральная оболочка + брендовые акценты.
   См. design/brand-foundation.md и design/ux-direction.md.
   ========================================================================= */

:root {
  /* Оболочка Japan Select (нейтральная, на всех страницах) */
  --bg:        #FAFAF8;   /* мягкий почти-белый «воздух» */
  --surface:   #FFFFFF;   /* карточки, шапка */
  --ink:       #1E2A3A;   /* текст, логотип, цена, кнопка действия */
  --ink-soft:  #2C3A4D;
  --muted:     #6B7280;   /* подписи, справочная цена ¥ */
  --line:      #E7E5E0;   /* рамки, разделители */
  --line-soft: #F0EEE9;

  /* Брендовые акценты (по одному на бренд) — только маркер */
  --uq:  #D10A1F;   /* UNIQLO — красный */
  --gu:  #1357C2;   /* GU — синий */

  /* По умолчанию активный бренд — переопределяется на [data-brand] */
  --brand: var(--ink);

  --radius:    14px;
  --radius-sm: 9px;
  --maxw:      1240px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Golos Text", system-ui, sans-serif;
  --font-jp: "Noto Sans JP", var(--font-body);
}

[data-brand="uniqlo"] { --brand: var(--uq); }
[data-brand="gu"]     { --brand: var(--gu); }

/* ---------- base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; color-scheme: light; }
a, button { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-size: 16px;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--font-display); font-weight: 700; letter-spacing: -.02em; line-height: 1.04; }
.hero h1, .section-head h2, .buy h1, .promo .cap h3, .blog-card h3 { text-wrap: balance; }
.jp { font-family: var(--font-jp); }
.eyebrow {
  font-family: var(--font-display);
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}

/* =========================================================================
   БРЕНД-РАМКА Japan Select (постоянная на каждой странице)
   ========================================================================= */
.frame-top {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.brandbar {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center; gap: 24px; height: 66px;
}
.logo { display: flex; align-items: baseline; gap: 9px; }
.logo .dot {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--ink); display: inline-block; transform: translateY(1px);
}
.logo .name {
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  letter-spacing: -.02em; color: var(--ink);
}
.logo .by { font-size: 12px; color: var(--muted); font-weight: 500; }
.frame-top .spacer { flex: 1; }

.icons { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  transition: background .2s var(--ease);
  position: relative;
}
.icon-btn:hover { background: var(--line-soft); }
.icon-btn svg { width: 21px; height: 21px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.cart-count {
  position: absolute; top: 4px; right: 4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--brand); color: #fff;
  border-radius: 9px; font-size: 11px; font-weight: 700;
  display: grid; place-items: center; line-height: 1;
  font-family: var(--font-display);
}

/* Обещание честности — всегда под шапкой */
.promise {
  background: var(--ink);
  color: #fff;
}
.promise .wrap {
  display: flex; align-items: center; gap: 10px;
  height: 38px; font-size: 13.5px; font-weight: 500;
  justify-content: center; text-align: center;
}
.promise b { font-weight: 700; }
.promise .yen { color: #C9D2DE; }
.promise-row { gap: 16px; }
.promise-offer { white-space: nowrap; }
.promise-dot { width: 5px; height: 5px; border-radius: 50%; background: #C9D2DE; flex: none; }

/* =========================================================================
   ВКЛАДКИ БРЕНДОВ
   ========================================================================= */
.tabs {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.tabs .wrap { display: flex; align-items: stretch; gap: 4px; }
.tab {
  display: flex; align-items: center; gap: 11px;
  padding: 17px 6px 14px; margin-right: 26px;
  font-family: var(--font-display); font-weight: 700; font-size: 16px;
  color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px;
  transition: color .2s var(--ease);
}
.tab:hover { color: var(--ink); }
.tab[aria-current="true"] { color: var(--ink); }
.tab[data-tab="uniqlo"][aria-current="true"] { border-bottom-color: var(--uq); }
.tab[data-tab="gu"][aria-current="true"]     { border-bottom-color: var(--gu); }
.tab .sub { font-size: 12px; font-weight: 500; color: var(--muted); }
/* Кнопка-действие справа в полосе вкладок — открыть каталог текущего бренда */
.tab-cta {
  margin-left: 14px; align-self: center;   /* группа «Дропы + Каталог» уезжает вправо через .tab-link (margin-left:auto) */
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: #fff; background: var(--ink);
  padding: 10px 18px; border-radius: var(--radius-sm);
  transition: transform .15s var(--ease), background .2s;
}
.tab-cta:hover { transform: translateY(-1px); background: #16202e; }
.tab-cta svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 2.2; }
.tab-cta .tc-short { display: none; }

/* Брендовый бейдж — маленький маркер «мы возим этот бренд» */
.badge {
  font-family: var(--font-display); font-weight: 800; letter-spacing: .02em;
  color: #fff; border-radius: 5px; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  flex: none; white-space: nowrap;
}
.badge.uq { background: var(--uq); }
.badge.gu { background: var(--gu); }
.badge.sm { font-size: 11px; padding: 5px 8px; }
.badge.lg { font-size: 14px; padding: 8px 11px; }

/* Официальные квадратные логотипы брендов (реальные SVG-файлы) */
.blogo { display: inline-block; flex: none; vertical-align: middle; height: 26px; width: 26px; border-radius: 4px; object-fit: contain; }
.blogo.sm { height: 22px; width: 22px; }
.blogo.lg { height: 34px; width: 34px; }

/* =========================================================================
   ФИРМЕННЫЙ ПРИЁМ — «честная бирка» (ценник-ярлык одежды)
   ₽ крупно + ¥ как справочный оттиск. Дырочка слева — как у бумажной бирки.
   ========================================================================= */
.ptag {
  position: relative; display: inline-flex; align-items: baseline; gap: 9px;
  background: #FBF8F1; border: 1px solid #E6E0D2;
  border-radius: 4px 10px 10px 4px; padding: 9px 15px 9px 26px;
  box-shadow: 0 1px 0 rgba(255,255,255,.7) inset;
}
/* бумажная зернистость ценника */
.ptag::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  opacity: .5; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  background-size: 120px 120px;
}
/* пробитая дырочка для нитки */
.ptag::before {
  content: ""; position: absolute; left: 9px; top: 50%; transform: translateY(-50%);
  width: 9px; height: 9px; border-radius: 50%; z-index: 1;
  background: var(--bg);
  box-shadow: inset 0 1px 2px rgba(30,42,58,.35), 0 0 0 1px #DAD2C0;
}
.ptag > * { position: relative; z-index: 1; }
.ptag .rub { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: var(--ink); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.ptag .yen { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ptag.lg { flex-direction: column; align-items: flex-start; gap: 2px; padding: 13px 18px 13px 28px; border-radius: 13px; }
.ptag.lg::before { top: 16px; transform: none; width: 9px; height: 9px; }
.ptag.lg .lbl { font-family: var(--font-display); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ptag.lg .nums { display: flex; align-items: baseline; gap: 11px; }
.ptag.lg .rub { font-size: 30px; }
.ptag.lg .yen { font-size: 15px; }
.card .ptag { margin-top: 9px; }

/* =========================================================================
   HERO (вводная полоса бренда)
   ========================================================================= */
.hero { padding: 56px 0 34px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 50px; align-items: center; }
.hero-media { position: relative; }
.hero-photo { display: block; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/5; background: var(--line-soft); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.hero-photo:hover img { transform: scale(1.03); }
.hero-ptag {
  position: absolute; left: 20px; bottom: 20px;
  box-shadow: 0 16px 36px -16px rgba(20,28,40,.45); transform: rotate(-2deg);
  background: var(--surface);
}
.hero-cap { display: none; }

/* Витрина недели в hero: 2 крупные карточки + строка-крючок про дроп/акцию.
   Контент задаёт WEEKLY в app.js (обновляется еженедельно из радара). */
.hero-grid--wide { grid-template-columns: .88fr 1.18fr; gap: 46px; }
.hw-cap {
  font-family: var(--font-display); font-size: 11.5px; font-weight: 700;
  letter-spacing: .13em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px; display: flex; align-items: center; gap: 9px;
}
.hw-cap::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }
.hw-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.hw-card { display: block; border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.hw-photo { aspect-ratio: 3 / 3.7; overflow: hidden; background: var(--line-soft); }
.hw-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .7s var(--ease); }
.hw-card:hover .hw-photo img { transform: scale(1.03); }
/* подпись ПОД фото: бейдж слева, бирка цены справа — на снимке ничего не лежит */
.hw-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; }
.hw-badge {
  font-family: var(--font-display); font-weight: 700; font-size: 10.5px;
  letter-spacing: .08em; text-transform: uppercase; line-height: 1.35; color: var(--ink);
}
.hw-badge small { display: block; font-weight: 600; font-size: 10px; letter-spacing: .04em; text-transform: none; color: var(--muted); margin-top: 3px; }
.hw-meta .ptag.lg { position: static; transform: rotate(-1.5deg); padding: 7px 12px 7px 22px; border-radius: 9px; box-shadow: 0 10px 22px -12px rgba(20,28,40,.4), 0 0 0 1px var(--line); flex: none; }
.hw-meta .ptag.lg::before { top: 11px; width: 7px; height: 7px; }
.hw-meta .ptag.lg .lbl { font-size: 9px; }
.hw-meta .ptag.lg .rub { font-size: 18px; }
.hw-meta .ptag.lg .yen { font-size: 11.5px; }
.hw-drop { margin-top: 16px; display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink-soft); }
.hw-drop .d { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); flex: none; animation: hwpulse 2s infinite; }
.hw-drop b { color: var(--ink); }
.hw-drop a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
@keyframes hwpulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero .eyebrow { margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.hero h1, .hero #hero-title { font-size: clamp(34px, 6vw, 62px); max-width: 16ch; }
.hero h1 .accent, .hero #hero-title .accent { color: var(--brand); }
.hero p { margin-top: 20px; font-size: 18px; color: var(--ink-soft); max-width: 48ch; }
.hero .cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  font-family: var(--font-display); font-weight: 700; font-size: 15.5px;
  padding: 15px 26px; border-radius: var(--radius-sm);
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-primary, .btn-ghost {
  background: transparent; color: var(--ink);
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .1s var(--ease);
}
.btn-primary { border: 1px solid var(--ink); }
.btn-ghost   { border: 1px solid var(--line); }
.btn-primary:hover, .btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:active, .btn-ghost:active { transform: translateY(1px); }

/* Полоса доверия */
.trust {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin: 8px 0 12px;
}
.trust .item { background: var(--surface); padding: 22px 22px; }
.trust .item h3 { font-family: var(--font-display); font-size: 15px; font-weight: 700; }
.trust .item p { font-size: 13px; color: var(--muted); margin-top: 3px; }

/* =========================================================================
   СЕКЦИИ
   ========================================================================= */
.section { padding: 46px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.section-head h2 { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; }
.section-head .more { font-size: 14px; color: var(--muted); font-weight: 600; display: inline-flex; gap: 6px; align-items: center; }
.section-head .more:hover { color: var(--brand); }

/* Новости и акции — горизонтальная лента */
.promos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(420px, 46%); gap: 20px; overflow-x: auto; padding-bottom: 10px; scroll-snap-type: x mandatory; scroll-padding-left: 24px; cursor: grab; user-select: none; }
.promos.dragging { cursor: grabbing; scroll-snap-type: none; }
.promos::-webkit-scrollbar { height: 4px; }
.promos::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
/* Афиша новости (チラシ): цветное поле вместо фото — товарные фотографии в
   новостях не используются никогда (товары живут в hero-витрине и «Подборке»).
   Палитры: gu (синий), uq (красный), ink (индиго, сервис), paper (тихая новость).
   Вариант --inv (бумага + цветная рамка) ставится автоматически, когда рядом
   оказываются две афиши одного цвета, — чтобы лента не сливалась в одно пятно. */
.pcard {
  position: relative; display: block; aspect-ratio: 16/10; scroll-snap-align: start;
  border-radius: var(--radius); overflow: hidden; color: #fff;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
  box-shadow: 0 1px 2px rgba(20,28,40,.08);
}
a.pcard:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(20,28,40,.45); }
.pcard--gu   { background: linear-gradient(140deg, #1a63d6 0%, #1357C2 48%, #0e4097 100%); }
.pcard--uq   { background: linear-gradient(140deg, #e01228 0%, #D10A1F 52%, #a90818 100%); }
.pcard--ink  { background: linear-gradient(140deg, #27364a 0%, #1E2A3A 55%, #16202d 100%); }
.pcard--paper{ background: #FAFAF8; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 1px 2px rgba(20,28,40,.06); }
.pcard .ptype {
  position: absolute; top: 16px; left: 16px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border-radius: 7px; padding: 6px 11px;
  font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .02em;
}
.pcard--gu .ptype { color: #1357C2; }
.pcard--uq .ptype { color: #D10A1F; }
.pcard--ink .ptype { color: #1E2A3A; }
.pcard--paper .ptype { background: #D10A1F; color: #fff; }
.pcard .ptype .live { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: hwpulse 1.8s infinite; }
.pcard .wm {
  position: absolute; right: -3%; bottom: -24%; z-index: 1;
  font-family: 'Noto Sans JP', sans-serif; font-weight: 900;
  font-size: 290px; line-height: 1; color: rgba(255,255,255,.12);
  pointer-events: none; user-select: none;
}
.pcard .wm.num { font-family: var(--font-display); font-weight: 800; letter-spacing: -.04em; }
.pcard--paper .wm { color: rgba(30,42,58,.055); }
.pcard .vjp {
  position: absolute; top: 18px; right: 20px; z-index: 2;
  writing-mode: vertical-rl; font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700; font-size: 14px; letter-spacing: .42em;
  color: rgba(255,255,255,.6);
}
.pcard--paper .vjp { color: rgba(30,42,58,.45); }
.pcard .stamp {
  position: absolute; bottom: 22px; right: 56px; z-index: 2;
  width: 78px; height: 78px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.92); box-shadow: inset 0 0 0 5px rgba(255,255,255,.35);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Noto Sans JP', sans-serif; font-weight: 700; font-size: 17px;
  transform: rotate(-11deg); letter-spacing: .06em;
}
.pcard--paper .stamp { border-color: #D10A1F; box-shadow: inset 0 0 0 5px rgba(209,10,31,.25); color: #D10A1F; }
.pcard .cap2 { position: absolute; left: 22px; right: 120px; bottom: 20px; z-index: 3; }
.pcard .cap2 .kicker {
  font-family: var(--font-display); font-weight: 800; font-size: 13px;
  letter-spacing: .14em; text-transform: uppercase; opacity: .75; margin-bottom: 8px;
}
.pcard .cap2 h3 { font-family: var(--font-display); font-weight: 800; font-size: 26px; line-height: 1.08; letter-spacing: -.01em; margin: 0 0 9px; }
.pcard .cap2 p { font-size: 14px; line-height: 1.45; opacity: .88; margin: 0; }
.pcard .cap2 .go {
  display: inline-block; margin-top: 12px; font-family: var(--font-display); font-weight: 700; font-size: 14px;
  border-bottom: 2px solid rgba(255,255,255,.5); padding-bottom: 2px;
}
.pcard--paper .cap2 p { color: var(--ink-soft); opacity: 1; }
.pcard--paper .cap2 .go { border-bottom-color: rgba(209,10,31,.4); color: #D10A1F; }
/* инверсная версия цветной афиши: бумага + цветная рамка, печать и плашка */
.pcard--inv { color: var(--ink); }
.pcard--inv .cap2 p { color: var(--ink-soft); opacity: 1; }
.pcard--inv .vjp { color: rgba(30,42,58,.45); }
.pcard--gu.pcard--inv { background: #FAFAF8; box-shadow: inset 0 0 0 2px #1357C2, 0 1px 2px rgba(20,28,40,.06); }
.pcard--uq.pcard--inv { background: #FAFAF8; box-shadow: inset 0 0 0 2px #D10A1F, 0 1px 2px rgba(20,28,40,.06); }
.pcard--ink.pcard--inv { background: #FAFAF8; box-shadow: inset 0 0 0 2px #1E2A3A, 0 1px 2px rgba(20,28,40,.06); }
.pcard--gu.pcard--inv .ptype { background: #1357C2; color: #fff; }
.pcard--uq.pcard--inv .ptype { background: #D10A1F; color: #fff; }
.pcard--ink.pcard--inv .ptype { background: #1E2A3A; color: #fff; }
.pcard--gu.pcard--inv .wm { color: rgba(19,87,194,.08); }
.pcard--uq.pcard--inv .wm { color: rgba(209,10,31,.07); }
.pcard--ink.pcard--inv .wm { color: rgba(30,42,58,.06); }
.pcard--gu.pcard--inv .stamp { border-color: #1357C2; box-shadow: inset 0 0 0 5px rgba(19,87,194,.25); color: #1357C2; }
.pcard--uq.pcard--inv .stamp { border-color: #D10A1F; box-shadow: inset 0 0 0 5px rgba(209,10,31,.25); color: #D10A1F; }
.pcard--ink.pcard--inv .stamp { border-color: #1E2A3A; box-shadow: inset 0 0 0 5px rgba(30,42,58,.25); color: #1E2A3A; }
.pcard--gu.pcard--inv .cap2 .go { color: #1357C2; border-bottom-color: rgba(19,87,194,.4); }
.pcard--uq.pcard--inv .cap2 .go { color: #D10A1F; border-bottom-color: rgba(209,10,31,.4); }
.pcard--ink.pcard--inv .cap2 .go { color: #1E2A3A; border-bottom-color: rgba(30,42,58,.4); }

/* Каталог-сетка */
.grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px 18px;
}
/* min-width:0 + minmax(0,1fr): без них 1fr-трек упирается в min-content карточки
   (фото 1500px, сердечко в строке цены) и на узких экранах распирает грид шире
   вьюпорта → горизонтальный скролл. */
.card { display: flex; flex-direction: column; min-width: 0; }
.card .ph {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 3/4; background: var(--line-soft);
}
.card .ph img:not(.blogo) { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), opacity .3s; }
.card:hover .ph img:not(.blogo) { transform: scale(1.035); }
/* Брендовый бейдж в товарной карточке — справа сверху, чтобы не перекрывать
   текст/детали на фото (особенно в коллаборациях). Только внутри .card .ph —
   hero/header/logo не затрагиваются. */
.card .ph .badge, .card .ph .blogo { position: absolute; top: 10px; right: 10px; left: auto; }
.card .ph .blogo { width: 30px; height: 30px; }
.card .ph .blogo { filter: drop-shadow(0 1px 4px rgba(0,0,0,.22)); }
.card .ph .sale {
  position: absolute; top: 10px; right: 10px;
  background: var(--ink); color: #fff; font-family: var(--font-display);
  font-weight: 700; font-size: 12px; padding: 5px 9px; border-radius: 50px;
}
.card .chips { display: flex; gap: 6px; margin: 12px 0 9px; }
.card .chip-mini { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--line); background-size: cover; background-position: center; }
.card .chip-more { font-size: 11px; color: var(--muted); align-self: center; }
.card-cat { margin: 12px 0 4px; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.card h3 {
  font-size: 14.5px; font-weight: 500; line-height: 1.3; color: var(--ink-soft);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.6em;
}
.card-meta { margin-top: 7px; display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.card-meta .rev-stars.sm { font-size: 12px; letter-spacing: .5px; }
.card-meta .dotsep { opacity: .6; }
.card .ptag { margin-top: 12px; align-self: flex-start; }
.card .price { margin-top: 8px; display: flex; align-items: baseline; gap: 9px; }
.card .price .rub { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; font-variant-numeric: tabular-nums; }
.card .price .yen { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.card .sizes-mini { margin-top: 7px; font-size: 11.5px; color: var(--muted); letter-spacing: .03em; }

/* =========================================================================
   КАРТОЧКА ТОВАРА
   ========================================================================= */
.crumbs { font-size: 13px; color: var(--muted); padding: 20px 0 4px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); }
.crumbs .sep { opacity: .5; }

.pdp { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; padding: 14px 0 40px; align-items: start; }

/* Галерея */
.gallery { display: grid; grid-template-columns: 76px 1fr; gap: 14px; position: sticky; top: 120px; min-width: 0; }
.pdp > * { min-width: 0; }       /* колонки PDP (галерея/покупка) не распирают грид (фикс overflow) */
.gallery > * { min-width: 0; }   /* stage/thumbs внутри галереи тоже сжимаемы */
.thumbs { display: flex; flex-direction: column; gap: 10px; }
.thumb {
  aspect-ratio: 3/4; border-radius: 9px; overflow: hidden;
  border: 1.5px solid var(--line); background: var(--line-soft);
  transition: border-color .2s var(--ease);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb[aria-current="true"] { border-color: var(--ink); }
.thumb.video { position: relative; }
.thumb.video::after {
  content: "▶"; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 16px; background: rgba(20,28,40,.32);
}
.stage { border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--line-soft); position: relative; }
.stage img, .stage video { width: 100%; height: 100%; object-fit: cover; }

/* Панель покупки */
.buy .brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.buy .brandline .lbl { font-family: var(--font-display); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.buy h1 { font-family: var(--font-display); font-weight: 700; font-size: 29px; line-height: 1.12; letter-spacing: -.02em; }
.buy .name-ja { margin-top: 8px; font-size: 14px; color: var(--muted); }
.orig-site-link { display: inline-block; margin-top: 6px; font-size: 12px; color: var(--muted); text-decoration: none; border-bottom: 1px dotted var(--muted); }
.orig-site-link:hover { color: var(--ink); border-bottom-color: var(--ink); }
.buy .name-ja .lbl { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; display: block; margin-bottom: 2px; opacity: .8; }

.price-block { margin: 22px 0; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.price-block .note { margin-top: 12px; font-size: 12.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.price-block .note .i { width: 15px; height: 15px; border-radius: 50%; border: 1px solid var(--muted); font-size: 10px; display: inline-grid; place-items: center; font-style: normal; }

.opt { margin: 20px 0; }
.opt .opt-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 11px; }
.opt .opt-head .t { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.opt .opt-head .v { font-size: 13px; color: var(--muted); }

.colors { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch {
  width: 44px; height: 44px; border-radius: 50%; padding: 0;
  border: 1.5px solid var(--line); background-size: cover; background-position: center;
  position: relative; transition: transform .15s var(--ease);
}
.swatch:hover { transform: scale(1.06); }
.swatch[aria-current="true"] { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--ink); }

.sizes { display: flex; gap: 9px; flex-wrap: wrap; }
.size {
  min-width: 52px; padding: 13px 10px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--surface);
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  transition: border-color .15s var(--ease), background .15s;
}
.size:hover:not(:disabled) { border-color: var(--ink); }
.size[aria-current="true"] { border-color: var(--ink); background: var(--ink); color: #fff; }
.size:disabled {
  color: var(--line); border-color: var(--line-soft); cursor: not-allowed;
  text-decoration: line-through; text-decoration-color: var(--line);
}
/* «Проверить размер» — заметный вход рядом с выбором размера (как サイズを確認する на UNIQLO Japan). */
.size-help { margin-top: 12px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.size-check-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
}
.size-check-btn svg { flex: none; color: var(--brand); transition: color .18s var(--ease); }
.size-check-btn:hover { background: var(--ink); color: #fff; transform: translateY(-1px); }
.size-check-btn:hover svg { color: #fff; }
.size-check-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.size-check-hint { font-size: 12.5px; color: var(--muted); }

/* Вкладки внутри модалки «Проверить размер» (Мерки изделия / Соответствие RU/EU) */
.size-tabs { display: flex; gap: 4px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.size-tab {
  appearance: none; background: none; border: none; cursor: pointer;
  padding: 8px 4px; margin-bottom: -1px;
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  color: var(--muted); border-bottom: 2px solid transparent;
  transition: color .18s var(--ease), border-color .18s var(--ease);
}
.size-tab + .size-tab { margin-left: 16px; }
.size-tab:hover { color: var(--ink-soft); }
.size-tab.is-active { color: var(--ink); border-bottom-color: var(--ink); }
.size-tab:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.size-pane[hidden] { display: none; }
/* Ссылка-источник под таблицей мерок → страница товара на UNIQLO/GU Japan */
.size-src-link { color: var(--brand); font-weight: 600; white-space: nowrap; border-bottom: 1px solid currentColor; }
.size-src-link:hover { opacity: .8; }

.add-row { margin-top: 26px; }
.btn-add {
  width: 100%; justify-content: center; background: var(--ink); color: #fff;
  font-size: 17px; padding: 19px; border-radius: var(--radius);
}
.btn-add:disabled { background: var(--line); color: var(--muted); cursor: not-allowed; }
.btn-add:not(:disabled):hover { transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(30,42,58,.55); }
.ship-usp { margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); display: flex; gap: 8px; align-items: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; }
.ship-usp .ic { flex: none; }
.ship-usp b { font-weight: 600; color: var(--ink); }
.ship-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.ship-note .ic { flex: none; }

.model-line { margin-top: 18px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; color: var(--ink-soft); display: flex; gap: 9px; align-items: center; }

/* Аккордеон */
.accordion { margin-top: 30px; border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-head { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 18px 2px; font-family: var(--font-display); font-weight: 700; font-size: 15px; text-align: left; }
.acc-head .pm { font-size: 20px; color: var(--muted); transition: transform .25s var(--ease); font-weight: 400; }
.acc-item.open .acc-head .pm { transform: rotate(45deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); }
.acc-item.open .acc-body { max-height: 600px; }
.acc-body .inner { padding: 0 2px 22px; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }

table.sizetable { width: 100%; border-collapse: collapse; margin-top: 4px; font-size: 13.5px; }
table.sizetable th, table.sizetable td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }
table.sizetable td { font-variant-numeric: tabular-nums; }
table.sizetable th { font-family: var(--font-display); font-weight: 700; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.table-note { margin-top: 10px; font-size: 12px; color: var(--muted); }

/* Care instructions list */
.care-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
}
.care-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-soft, var(--ink));
}
.care-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
}
.care-text b { font-size: 13.5px; font-weight: 600; display: block; line-height: 1.3; }
.care-text small { font-size: 12px; color: var(--muted); }
.care-machine .care-icon  { background: #EFF6FF; color: #1D4ED8; }
.care-hand    .care-icon  { background: #F0FDF4; color: #15803D; }
.care-dry     .care-icon  { background: #FEF9C3; color: #854D0E; }
.care-tumble  .care-icon  { background: var(--line, #E7E5E0); color: var(--muted); }
.care-no-water .care-icon { background: #FEF2F2; color: #B91C1C; }
.care-warn    .care-icon  { background: #FFF7ED; color: #C2410C; }
.care-no .care-text b     { text-decoration: line-through; text-decoration-color: var(--line, #E7E5E0); color: var(--muted); }

/* Individual size grid — real measurements */
.size-grid { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 4px; }
.size-grid th, .size-grid td {
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.size-grid th:first-child, .size-grid td:first-child {
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ink-soft, var(--ink));
  background: var(--bg);
  position: sticky; left: 0;
}
.size-grid thead th {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .05em;
  background: var(--bg);
}
.size-grid tr:last-child td { border-bottom: none; }
.size-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.size-grid-note { margin-top: 8px; font-size: 12px; color: var(--muted); }

/* =========================================================================
   ФУТЕР
   ========================================================================= */
.footer { background: var(--surface); border-top: 1px solid var(--line); margin-top: 40px; }
.footer .wrap { padding: 40px 24px 30px; }
/* Маршрут заказа — одна строка над колонками, тонкий разделитель под ней */
.foot-route { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding-bottom: 20px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.foot-route .r { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.foot-route .r .opt { color: var(--muted); font-weight: 500; }
.foot-route .a { color: var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.15fr; gap: 36px; align-items: start; }
.footer .logo { margin-bottom: 12px; }
.footer .about { font-size: 13.5px; color: var(--muted); max-width: 34ch; line-height: 1.6; }
.foot-jp { font-family: 'Noto Sans JP', sans-serif; font-size: 12px; color: var(--muted); letter-spacing: .14em; margin-top: 10px; }
.foot-col h5 { font-family: var(--font-display); font-weight: 700; font-size: 13px; line-height: 26px; text-transform: uppercase; letter-spacing: .06em; margin: 0 0 12px; }
.foot-col a { display: block; font-size: 14px; color: var(--ink-soft); padding: 5px 0; }
.foot-col a:hover { color: var(--brand); }
.foot-social { display: flex; gap: 10px; margin-top: 16px; }
.foot-social a, .foot-social .icon-btn { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; color: var(--ink); transition: border-color .2s var(--ease), background .2s; }
.foot-social a:hover { border-color: var(--ink); background: var(--line-soft); }
.foot-social svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
/* Контакты — единый ритм: иконка + текст одного веса */
.foot-contact .c-row { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 500; color: var(--ink-soft); padding: 5px 0; }
.foot-contact .c-row svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.6; flex: none; }
.foot-contact a.c-row:hover { color: var(--brand); }
.foot-contact .c-soon, .foot-contact .c-hours { color: var(--muted); }
.foot-bottom { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 12.5px; color: var(--muted); }
.foot-req { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 9px; line-height: 1.6; }
.foot-req .req-co { font-family: var(--font-display); font-weight: 700; color: var(--ink-soft); letter-spacing: .01em; }
.foot-req .req-dot { color: var(--muted); opacity: .55; }
.foot-req a { color: var(--ink-soft); transition: color .2s var(--ease); }
.foot-req a:hover { color: var(--brand); }
.disclaimer { max-width: 66%; line-height: 1.6; }
.foot-copy { color: var(--muted); }

/* SEO/блог */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.blog-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: border-color .2s, transform .2s var(--ease); display: flex; flex-direction: column; }
.blog-card:hover { border-color: var(--ink); transform: translateY(-3px); }
.blog-card-img { width: 100%; aspect-ratio: 1200 / 630; height: auto; object-fit: cover; object-position: top; display: block; }
.blog-card-body { padding: 18px 22px 22px; }
.blog-card .tag { font-size: 12px; color: var(--brand); font-weight: 700; }
.blog-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 8px 0; line-height: 1.25; }
.blog-card p { font-size: 13.5px; color: var(--muted); }

/* =========================================================================
   ПОИСК В ШАПКЕ (с выбором бренда)
   ========================================================================= */
.hsearch {
  justify-self: center; width: 100%; max-width: 560px; display: flex; align-items: stretch;
  border: 1px solid var(--line); border-radius: 11px; overflow: hidden;
  background: var(--surface); transition: border-color .2s var(--ease);
}
.hsearch:focus-within { border-color: var(--ink); }
.hsearch .scope {
  border: none; background: var(--line-soft); color: var(--ink);
  font-family: var(--font-display); font-weight: 700; font-size: 13.5px;
  padding: 0 12px; border-right: 1px solid var(--line); cursor: pointer;
}
.hsearch input {
  flex: 1; border: none; padding: 12px 14px; font-family: var(--font-body);
  font-size: 14.5px; color: var(--ink); background: transparent; min-width: 0;
}
.hsearch input::placeholder { color: var(--muted); }
.hsearch .go { padding: 0 15px; color: var(--muted); display: grid; place-items: center; }
.hsearch .go:hover { color: var(--brand); }
.hsearch .go svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.7; }
.icon-btn.search-icon { display: none; }

/* =========================================================================
   СЕРВИСНЫЙ РИТУАЛ — короткий честный маршрут товара
   ========================================================================= */
.ritual {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px;
  margin-top: 16px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface);
}
.ritual .step {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--ink-soft); white-space: nowrap;
}
.ritual .step .n {
  width: 19px; height: 19px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 700; font-size: 11px; color: #fff; background: var(--ink);
}
.ritual .step .opt { font-size: 11px; color: var(--muted); }
.ritual .step .arrow { color: var(--line); font-size: 14px; margin-left: 4px; }

/* =========================================================================
   СВОРАЧИВАНИЕ ДЛИННОГО ТЕКСТА (описание) + кнопка-стрелка
   ========================================================================= */
.clamp {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4;
  overflow: hidden;
}
.clamp.expanded { -webkit-line-clamp: unset; }
.clamp-toggle {
  margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 5px;
}
.clamp-toggle::after { content: '▾'; font-size: 11px; transition: transform .18s; }
.clamp-toggle[aria-expanded="true"]::after { transform: rotate(180deg); }
.clamp-toggle:hover { color: var(--brand); }

/* =========================================================================
   ОТЗЫВЫ
   ========================================================================= */
.reviews-box { border-top: 1px solid var(--line); padding-top: 28px; }
.reviews-head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.reviews-head h2 { margin: 0; }
.rev-rating { display: inline-flex; align-items: baseline; gap: 8px; }
.rev-avg { font-family: var(--font-display); font-weight: 700; font-size: 22px; color: var(--ink); }
.rev-count { font-size: 13px; color: var(--muted); }
.rev-stars { color: var(--line); font-size: 14px; letter-spacing: 1px; white-space: nowrap; }
.rev-stars .star.on { color: #F5A623; }
.rev-note { margin-top: 6px; font-size: 13px; color: var(--muted); max-width: 620px; }
.rev-list { margin-top: 18px; display: grid; gap: 16px; max-width: 720px; }
.rev { padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.rev-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.rev .rev-stars { font-size: 13px; }
.rev-meta { font-size: 12px; color: var(--muted); }
.rev-text { margin: 8px 0 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.reviews-box .clamp-toggle { margin-top: 16px; }

/* Лента товаров «С этим смотрят» / «Вы недавно смотрели» */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: 232px;
  gap: 18px; overflow-x: auto; padding-bottom: 10px;
  scroll-snap-type: x proximity; scroll-padding-left: 24px;
}
.rail::-webkit-scrollbar { height: 8px; }
.rail::-webkit-scrollbar-thumb { background: var(--line); border-radius: 8px; }
.rail .card { scroll-snap-align: start; }

/* =========================================================================
   ТОСТ (добавлено в корзину)
   ========================================================================= */
.toast {
  position: fixed; left: 50%; bottom: -120px; transform: translateX(-50%);
  background: var(--ink); color: #fff; padding: 15px 22px; border-radius: var(--radius);
  font-size: 14.5px; font-weight: 500; display: flex; gap: 11px; align-items: center;
  box-shadow: 0 18px 40px -14px rgba(20,28,40,.6); z-index: 100;
  transition: bottom .4s var(--ease); max-width: 90vw;
}
.toast.show { bottom: 30px; }
.toast .ok { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: 13px; flex: none; }

/* =========================================================================
   Анимация появления
   ========================================================================= */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise .7s var(--ease) both; }
.reveal.d1 { animation-delay: .06s; }
.reveal.d2 { animation-delay: .12s; }
.reveal.d3 { animation-delay: .18s; }
.reveal.d4 { animation-delay: .24s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } * { transition: none !important; } }

/* =========================================================================
   АДАПТИВ
   ========================================================================= */
.menu-btn { display: none; }
.sticky-buy { display: none; }

/* =========================================================================
   КОРЗИНА / ОФОРМЛЕНИЕ
   ========================================================================= */
.cart-head { display: flex; align-items: baseline; gap: 14px; margin: 8px 0 24px; }
.cart-head h1 { margin: 0; }
.cart-count-lbl { color: var(--muted); font-size: 15px; }
.cart-grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 28px; align-items: start; }
.cart-items { display: flex; flex-direction: column; gap: 20px; }
.cart-group { display: flex; flex-direction: column; gap: 12px; }
.cart-group-head { display: flex; align-items: center; gap: 10px; }
.badge.lgbadge { font-size: 13px; padding: 6px 11px; border-radius: 7px; }
.cart-group-meta { font-weight: 600; font-size: 14.5px; color: var(--ink); }
.cart-group-foot { display: flex; justify-content: flex-end; padding: 2px 4px 0; }
.jp-ship { font-size: 13px; color: var(--ink-soft); }
.jp-ship.free { color: #1E7B34; font-weight: 500; }
.jp-ship b { font-family: var(--font-display); }
.jp-hint { color: var(--muted); font-size: 12px; }
.free-lbl { color: #1E7B34; }
.cart-item {
  display: grid; grid-template-columns: 96px minmax(0,1fr) auto; gap: 16px;
  padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface);
}
.ci-ph { display: block; border-radius: 8px; overflow: hidden; aspect-ratio: 3/4; background: var(--line-soft); }
.ci-ph img { width: 100%; height: 100%; object-fit: cover; }
.ci-main { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.ci-name { font-weight: 600; color: var(--ink); line-height: 1.3; }
.ci-name:hover { color: var(--brand); }
.ci-ja { font-family: 'Noto Sans JP', sans-serif; font-size: 12px; color: var(--muted); }
.ci-opts { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.cart-item.is-oos { border-color: #E3B7BC; background: #FCF6F6; }
.cart-item.is-oos .ci-ph img { opacity: .55; filter: grayscale(.4); }
.ci-oos { margin-top: 4px; font-size: 12.5px; line-height: 1.4; color: var(--uq); font-weight: 500; }
.oos-hint { color: var(--uq); background: #FCF6F6; }
.ci-remove { margin-top: auto; padding: 4px 0; border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.ci-remove:hover { color: var(--uq); }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 14px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 50px; }
.qty-btn { width: 32px; height: 32px; border: 0; background: none; cursor: pointer; font-size: 18px; color: var(--ink); border-radius: 50%; }
.qty-btn:disabled { color: var(--line); cursor: not-allowed; }
.qty-btn:not(:disabled):hover { background: var(--line-soft); }
.qty-n { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; }

.cart-summary { position: sticky; top: 88px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.cart-summary h2 { margin: 0 0 14px; font-size: 19px; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; font-size: 14.5px; }
.sum-row.muted { color: var(--muted); font-size: 13.5px; }
.sum-val { display: inline-flex; align-items: baseline; gap: 8px; text-align: right; }
.sum-val b { font-family: var(--font-display); font-size: 17px; font-variant-numeric: tabular-nums; }
.sum-val .yen { font-size: 12.5px; color: var(--muted); }
.sum-sep { height: 1px; background: var(--line); margin: 10px 0; }
.sum-total { font-size: 16px; }
.sum-total b { font-size: 22px; }
.sum-note { margin: 12px 0 16px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.sum-approx { font-size: 11px; color: var(--muted); font-weight: 400; }
.sum-row.ship-detail { margin-top: -4px; font-size: 12px; }
.ship-hint { margin: 8px 0 0; padding: 10px 12px; background: var(--bg); border-radius: var(--radius-sm); font-size: 12.5px; line-height: 1.45; color: var(--ink-soft); }
.sum-row.pay-now { font-size: 14px; color: var(--ink-soft); }
.sum-row.pay-now b { font-family: var(--font-display); font-size: 16px; }
/* Ориентир по доставке в РФ — отдельный блок, НЕ в сумме к оплате (оценка). */
.ship-est { margin: 10px 0 0; padding: 11px 13px; background: var(--bg); border-radius: var(--radius-sm); }
.ship-est-line { font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.ship-est-line b { font-weight: 700; }
.ship-est-air { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.ship-est-caveat { display: block; margin-top: 6px; font-size: 12px; line-height: 1.45; color: var(--muted); }
.cart-checkout { width: 100%; justify-content: center; text-align: center; }
.sum-trust { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sum-trust li { position: relative; padding-left: 22px; font-size: 12.5px; color: var(--ink-soft); }
.sum-trust li::before { content: '✓'; position: absolute; left: 0; color: var(--uq); font-weight: 700; }

.cart-empty { text-align: center; padding: 60px 20px 80px; max-width: 460px; margin: 0 auto; }
.cart-empty-ic { font-size: 46px; }
.cart-empty h1 { margin: 14px 0 8px; }
.cart-empty p { color: var(--muted); margin: 0 0 24px; }
.cart-empty-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* --- Оформление --- */
.checkout-grid { display: grid; grid-template-columns: minmax(0,1fr) 360px; gap: 28px; align-items: start; }
.checkout-form { display: flex; flex-direction: column; gap: 16px; }
.co-card { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.co-card h2 { margin: 0 0 16px; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.co-step { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-size: 13px; font-weight: 700; display: grid; place-items: center; flex: none; }
.fld-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fld { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.fld-row .fld { margin-bottom: 0; }
.fld:last-child { margin-bottom: 0; }
.fld-lbl { font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.fld-lbl .opt { color: var(--muted); font-weight: 400; }
.fld-in {
  font: inherit; font-size: 15px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg);
  transition: border-color .15s var(--ease);
}
.fld-in:focus { outline: none; border-color: var(--ink); }
.fld-hint { font-size: 12px; color: var(--muted); }

.co-radio-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.co-radio { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; transition: border-color .15s var(--ease), background .15s; }
.co-radio.selected { border-color: var(--ink); background: var(--line-soft); }
.co-radio.disabled { opacity: .55; cursor: not-allowed; }
.co-radio input { margin-top: 3px; accent-color: var(--ink); }
.co-radio-body { display: flex; flex-direction: column; gap: 2px; }
.co-radio-body b { font-size: 14.5px; }
.co-radio-body span { font-size: 13px; color: var(--muted); }
.co-note { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); background: var(--bg); border-radius: var(--radius-sm); padding: 12px 14px; }
.co-agree { display: flex; gap: 10px; font-size: 13px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.co-agree input { margin-top: 3px; accent-color: var(--ink); flex: none; }
.co-agree a { color: var(--ink); text-decoration: underline; }
.co-account { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13px; line-height: 1.5; color: var(--ink-soft); cursor: pointer; }
.co-account input { margin-top: 2px; accent-color: var(--ink); flex: none; }
.co-account b { color: var(--ink); font-weight: 600; }
.co-step-opt { background: var(--bg); border: 1px solid var(--line); }
.co-h-opt { font-size: 12px; font-weight: 500; color: var(--muted); }
.co-inspect { margin: 0; }

.co-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 6px; }
.co-group { display: flex; flex-direction: column; gap: 10px; }
.co-group-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.co-item { position: relative; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; gap: 10px; align-items: center; }
.co-ph { border-radius: 6px; overflow: hidden; aspect-ratio: 3/4; background: var(--line-soft); }
.co-ph img { width: 100%; height: 100%; object-fit: cover; }
.co-qty { position: absolute; top: -7px; left: 32px; min-width: 18px; height: 18px; padding: 0 4px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; display: grid; place-items: center; box-shadow: 0 0 0 2px var(--surface); }
.co-jpship { font-size: 12.5px; color: var(--ink-soft); padding-left: 2px; }
.co-jpship.free { color: #1E7B34; }
.co-jpship .muted-i { color: var(--muted); }
.co-info { display: flex; flex-direction: column; min-width: 0; }
.co-name { font-size: 13px; line-height: 1.3; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.co-opt { font-size: 12px; color: var(--muted); }
.co-price { text-align: right; font-size: 12px; }
.co-price b { display: block; font-family: var(--font-display); font-size: 14px; }
.co-price .yen { color: var(--muted); }
.co-summary h2 { font-size: 17px; }

/* --- Каталог (PLP) --- */
.plp-head { margin: 8px 0 22px; }
.plp-head h1 { margin: 0; }
.plp-sub { color: var(--muted); font-size: 14.5px; }
.plp-grid { display: grid; grid-template-columns: 252px minmax(0,1fr); gap: 32px; align-items: start; }
.plp-nav { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; display: flex; flex-direction: column; gap: 2px; scrollbar-width: none; -ms-overflow-style: none; }
.plp-nav::-webkit-scrollbar { display: none; }
.plp-nav-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; padding: 0 14px; }
.plp-nav-subtitle { font-size: 11px; letter-spacing: .04em; color: var(--muted); opacity: .8; margin: 10px 0 4px; padding: 0 14px; }
/* Сайдбар-список коллабораций (.plp-collab-*) удалён в редизайне дропов 2026-06-25. */
.plp-cat { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 14.5px; color: var(--ink-soft); border-radius: var(--radius-sm); text-align: left; width: 100%; }
.plp-cat:hover { background: var(--line-soft); }
.plp-cat.active { background: var(--ink); color: #fff; font-weight: 600; }
.plp-count { font-size: 12px; color: var(--muted); }
.plp-cat.active .plp-count { color: rgba(255,255,255,.7); }
.plp-bar { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; font-size: 14px; color: var(--muted); }
.plp-sort { position: relative; font-size: 13px; }
.plp-sort-btn { background: none; border: none; cursor: pointer; font: inherit; font-size: 13px; color: var(--ink-soft); padding: 0; display: flex; align-items: center; gap: 4px; }
.plp-sort-btn:hover { color: var(--ink); }
.plp-sort-arrow { font-size: 10px; line-height: 1; }
.plp-sort-menu { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 4px 0; min-width: 170px; box-shadow: 0 4px 16px rgba(0,0,0,.1); z-index: 90; list-style: none; margin: 0; }
.plp-sort-menu li { padding: 8px 14px; font-size: 13px; color: var(--ink-soft); cursor: pointer; }
.plp-sort-menu li:hover { background: var(--bg-alt, #f5f5f0); color: var(--ink); }
.plp-sort-menu li.active { font-weight: 700; color: var(--ink); }

/* --- Гендерная панель каталога --- */
.plp-gender-bar { display: flex; gap: 24px; margin-bottom: 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; align-items: baseline; }
.plp-gender { background: none; border: none; border-bottom: 2px solid transparent; padding: 0 0 2px; cursor: pointer; font: inherit; font-size: 15px; color: var(--muted); white-space: nowrap; transition: color .15s; }
.plp-gender:hover { color: var(--ink); }
.plp-gender.active { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.plp-gcnt { display: none; }
.plp-gender[data-gender="Все"] { font-size: 13px; margin-left: auto; }
.plp-grid { margin-top: 20px; }

/* --- Личный кабинет --- */
.acc-top { display: flex; align-items: center; gap: 16px; margin: 8px 0 26px; }
.acc-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 22px; display: grid; place-items: center; flex: none; }
.acc-id { flex: 1; min-width: 0; }
.acc-id h1 { margin: 0; font-size: 22px; }
.acc-id span { color: var(--muted); font-size: 14px; }
.acc-logout { padding: 10px 18px; font-size: 14px; }
.acc-grid { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 28px; align-items: start; }
.acc-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 88px; }
.acc-nav-item { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 14.5px; color: var(--ink-soft); }
.acc-nav-item:hover { background: var(--line-soft); }
.acc-nav-item.active { background: var(--ink); color: #fff; font-weight: 600; }
.acc-section-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; }
.acc-section-head h2 { margin: 0; }
.orders { display: flex; flex-direction: column; gap: 18px; }
/* Единая сетка списков ЛК (T-LK-COLUMNS, §4.2 спеки): одни и те же колонки
   у легенды (.lk-cols) и у строк карточек (.order-head). Значение строго под своей
   подписью. Запрещены «два независимых flexbox» — только общий grid. */
.lk-grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)        /* заказ · бренд · дата */
    minmax(120px, auto)   /* статус */
    minmax(96px, auto)    /* сумма / стоимость */
    minmax(108px, auto);  /* действие */
  align-items: center;
  column-gap: 20px;
}
.lk-cols {
  padding: 0 20px 7px; margin-bottom: 2px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted); font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .04em;
}
.lk-cols .lk-col { align-self: baseline; }
.lk-col-status { justify-self: start; }
.lk-col-money  { justify-self: end; text-align: right; }
.lk-col-act    { justify-self: end; text-align: right; }
.lk-none { color: var(--muted); font-size: 14px; padding: 14px 0; }
/* Баян: свёрнутые завершённые заказы/посылки */
.lk-done { margin-top: 18px; border-top: 1px solid var(--line); }
.lk-done > .lk-done-sum {
  cursor: pointer; list-style: none; padding: 14px 2px 0;
  font-family: var(--font-display); font-weight: 700; font-size: 14.5px;
  color: var(--muted); display: flex; align-items: center; gap: 8px;
}
.lk-done > .lk-done-sum::-webkit-details-marker { display: none; }
.lk-done > .lk-done-sum::before {
  content: '+'; font-size: 18px; line-height: 1; color: var(--muted);
  transition: transform .2s var(--ease, ease);
}
.lk-done[open] > .lk-done-sum::before { transform: rotate(45deg); }
.lk-done-cnt {
  font-family: var(--font-body, inherit); font-weight: 600; font-size: 12px;
  background: var(--line-soft); color: var(--muted);
  padding: 1px 8px; border-radius: 50px;
}
.lk-done-body { padding-top: 14px; }
.lk-done-body .lk-cols { padding-left: 20px; padding-right: 20px; }
/* Чекаут: блок адреса для «отправить сразу» (Этап 2) */
.co-ship-addr { margin: 10px 0 0 26px; }
.co-ship-addr-lbl { display: block; }
.co-ship-addr-lbl .fld-lbl { display: block; margin-bottom: 4px; }
.co-ship-addr-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
/* Подсказка в карточке посылки (расформирована/отменена) */
.ship-note {
  background: var(--line-soft); border-radius: var(--radius-sm);
  padding: 10px 12px; font-size: 13px; color: var(--ink-soft);
  margin-bottom: 12px; line-height: 1.5;
}
.order-card { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 20px; }
/* .order-head раскладывается общей сеткой .lk-grid (см. выше) */
.order-head { padding: 0 0; }
/* Левая колонка: номер крупно, под ним бренд+дата серым */
.lk-col-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.order-sub { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.order-brand { color: var(--muted); font-size: 13px; font-weight: 600; }
.order-no { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.order-date { color: var(--muted); font-size: 13px; }
.order-price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; font-size: 15px; }
.order-status { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 50px; display: inline-block; white-space: nowrap; }
.order-status.st-active { background: #FFF4E5; color: #B26A00; }
.order-status.st-done { background: #E7F4EA; color: #1E7B34; }
/* §5.2: стоимость доставки с подписью, не голое число */
.shipment-fee {
  display: inline-flex; flex-direction: column; align-items: flex-end; gap: 1px;
  font-family: var(--font-display); font-weight: 700; font-size: 15px; white-space: nowrap;
}
.shipment-fee-lbl {
  color: var(--muted); font-family: var(--font-body);
  font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em;
}
.shipment-fee-pending {
  color: var(--muted); font-family: var(--font-body);
  font-size: 13px; font-weight: 500; white-space: normal;
}
/* Подвал карточки: вторичные действия отдельной строкой, не ломают сетку (§4.2) */
.lk-foot {
  display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center;
  margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft);
}
.lk-foot-btn { font-size: 13px; padding: 7px 14px; min-height: 36px; }
.shipment-pay-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  line-height: 1;
  white-space: nowrap;
  transition: transform .1s var(--ease), background .18s var(--ease), border-color .18s var(--ease);
}
.shipment-pay-btn b {
  font-family: var(--font-display);
  font-weight: 700;
  white-space: nowrap;
}
.shipment-pay-btn:hover {
  background: transparent;
  color: var(--ink);
}
.shipment-pay-btn:active { transform: translateY(1px); }
.shipment-pay-btn:disabled {
  cursor: wait;
  opacity: .72;
  transform: none;
}

.otl { list-style: none; display: flex; margin: 20px 0; padding: 0; counter-reset: s; }
.otl-step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.otl-step::before { content: ''; position: absolute; top: 11px; left: -50%; width: 100%; height: 2px; background: var(--line); z-index: 0; }
.otl-step:first-child::before { display: none; }
.otl-step.done::before, .otl-step.active::before { background: var(--ink); }
.otl-dot { width: 24px; height: 24px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; color: #fff; position: relative; z-index: 1; }
.otl-step.done .otl-dot { background: var(--ink); border-color: var(--ink); }
.otl-step.active .otl-dot { border-color: var(--ink); box-shadow: 0 0 0 4px var(--line-soft); }
.otl-step.active .otl-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.otl-lbl { font-size: 11.5px; line-height: 1.3; color: var(--muted); max-width: 84px; }
.otl-step.done .otl-lbl, .otl-step.active .otl-lbl { color: var(--ink); font-weight: 500; }

.order-body { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: 24px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--line); }
.order-items { display: flex; flex-direction: column; gap: 12px; }
.order-side { display: flex; flex-direction: column; gap: 4px; }
.order-note { font-size: 12.5px; line-height: 1.5; color: var(--ink-soft); background: var(--bg); border-radius: var(--radius-sm); padding: 11px 13px; margin: 6px 0 4px; }
.shipment-badge { font-size: 12px; color: var(--muted); text-decoration: underline; }
.order-btn { margin-top: 8px; justify-content: center; padding: 11px; font-size: 14px; }

@media (max-width: 1000px) {
  .pdp { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .gallery { position: static; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .blog-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-grid--wide { grid-template-columns: 1fr; }
  .hero-media { max-width: 460px; }
  .hero-grid--wide .hero-media { max-width: 560px; }
  .hero-photo { aspect-ratio: 16/11; }
  .pcard .wm { font-size: 220px; }
  .pcard .cap2 h3 { font-size: 22px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  body { font-size: 15px; }
  .icons .lbl { display: none; }
  .hero { padding: 40px 0 18px; min-height: 100dvh; box-sizing: border-box; }
  .hero p { font-size: 16px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
  .promos { grid-auto-columns: minmax(280px, 86%); gap: 14px; }
  /* Карточка акции: на телефоне бейдж и заголовок переводим В ПОТОК (flex-column),
     чтобы перекрытие было невозможно при любой длине заголовка из данных/админки.
     Декор (.wm/.vjp/.stamp) остаётся absolute — он за текстом по z-index.
     aspect-ratio заменён на min-height: карточка растёт под длинный заголовок. */
  .pcard {
    aspect-ratio: auto; min-height: 220px;
    display: flex; flex-direction: column;
    padding: 16px;
  }
  .pcard .ptype { position: static; align-self: flex-start; z-index: 3; }
  .pcard .cap2 {
    position: static; right: auto; left: auto; bottom: auto;
    margin-top: auto; padding-top: 14px; z-index: 3;
  }
  .pcard .cap2 h3 { font-size: 19px; }
  .pcard .cap2 p { font-size: 12.5px; }
  .pcard .wm { font-size: 170px; }
  /* Печать-ханко смещаем в правый верхний угол, чтобы не лезла на текст внизу */
  .pcard .stamp { width: 54px; height: 54px; font-size: 12px; right: 16px; bottom: auto; top: 54px; }
  .pcard .vjp { font-size: 12px; right: 14px; }
  .ptag.lg .rub { font-size: 26px; }
  .hero-media { max-width: none; }
  .hero-photo { aspect-ratio: 4/5; }
  .hw-cards { gap: 10px; }
  .hw-meta { padding: 9px 10px; }
  .hw-badge { font-size: 9.5px; }
  .hw-badge small { display: none; }
  .hw-meta .ptag.lg { padding: 5px 9px 5px 17px; }
  .hw-meta .ptag.lg::before { top: 9px; left: 6px; }
  .hw-meta .ptag.lg .rub { font-size: 15px; }
  .hw-meta .ptag.lg .yen { font-size: 10px; }
  .hw-drop { font-size: 13px; }
  .section { padding: 34px 0; }
  /* Полоса доверия компактнее: сетка 2×2 остаётся, паддинги и шрифты меньше,
     чтобы секция помещалась примерно в половину экрана телефона */
  .trust .item { padding: 14px 14px; }
  .trust .item h3 { font-size: 13.5px; }
  .trust .item p { font-size: 12px; margin-top: 2px; line-height: 1.4; }
  .hsearch { display: none; }
  .icon-btn.search-icon { display: grid; }
  .foot-route { gap: 6px; padding-bottom: 16px; margin-bottom: 26px; }
  .disclaimer { max-width: 100%; }
  .ritual { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 13px; }
  .ritual .step .arrow { display: none; }
  .rail { grid-auto-columns: 158px; gap: 12px; }
  .section-head h2 { font-size: 21px; }
  .promise .wrap { font-size: 11.5px; height: auto; padding: 8px 16px; }
  .promise-row { flex-wrap: wrap; gap: 6px 12px; }
  .promise-offer { white-space: normal; }
  .foot-grid { grid-template-columns: 1fr; gap: 22px; }

  /* Вкладки компактнее: прячем длинные описания, оставляем бренд */
  .tab .sub { display: none; }
  .tab { margin-right: 18px; padding: 14px 4px 11px; }
  /* Кнопка каталога: компактнее, короткая подпись «Каталог UNIQLO/GU».
     margin-left:8px — идёт сразу за «Дропы»; саму группу вправо уводит
     .tab-link (margin-left:auto). */
  .tab-cta { margin-left: 8px; padding: 8px 13px; font-size: 12.5px; gap: 5px; }
  .tab-cta .tc-long { display: none; }
  .tab-cta .tc-short { display: inline; }
  .tab-cta svg { width: 13px; height: 13px; }

  /* Шапка в две строки: 1) логотип + подпись «Доставка из Японии»,
     2) иконки во всю ширину с зоной касания 44×44. Десктоп не затрагивается —
     всё внутри @media (max-width:640px). .hsearch здесь display:none (строка ниже),
     поэтому brandbar перестраиваем в две строки через grid-template-areas. */
  .brandbar {
    grid-template-columns: 1fr;
    grid-template-areas: "logo" "icons";
    height: auto;
    row-gap: 6px;
    padding-top: 9px; padding-bottom: 7px;
    align-items: stretch;
  }
  .brandbar .logo { grid-area: logo; align-self: center; align-items: baseline; }
  .brandbar .hsearch { grid-area: auto; }
  .brandbar .icons { grid-area: icons; }
  .logo .name { font-size: 17px; }
  /* Подпись бизнеса остаётся видимой — оформлена сдержанным акцентом */
  .logo .by {
    font-size: 10.5px; font-weight: 600;
    letter-spacing: .04em; color: var(--muted);
    text-transform: uppercase; transform: translateY(-1px);
  }
  /* Иконки крупнее и равномерно по ширине строки, палец легко попадает */
  .icons {
    justify-content: space-between;
    gap: 4px;
    padding-top: 2px;
    border-top: 1px solid var(--line-soft);
  }
  .icon-btn {
    width: 48px; height: 44px; border-radius: var(--radius-sm);
    flex: 1 1 0; max-width: 64px;
  }
  .icon-btn svg { width: 23px; height: 23px; }
  .cart-count { top: 5px; right: 50%; transform: translateX(15px); }

  /* Галерея на телефоне — горизонтальные миниатюры под главным фото */
  .gallery { grid-template-columns: minmax(0, 1fr); }
  .gallery .thumbs { flex-direction: row; order: 2; overflow-x: auto; }
  .thumb { width: 64px; flex: none; }

  /* Липкая кнопка покупки — появляется только когда inline-кнопка ушла за экран */
  .sticky-buy {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--surface); border-top: 1px solid var(--line);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    gap: 12px; align-items: center; display: none;
  }
  .sticky-buy.is-active { display: flex; }
  .sticky-buy .pp { flex: none; }
  .sticky-buy .pp .rub { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
  .sticky-buy .pp .yen { font-size: 12px; color: var(--muted); }
  .sticky-buy .btn-add { padding: 15px; font-size: 15px; }
  body.pdp-page { padding-bottom: 84px; }

  /* Корзина / оформление на телефоне */
  .cart-grid { grid-template-columns: 1fr; gap: 18px; }
  .cart-summary { position: static; }
  .cart-item { grid-template-columns: 76px minmax(0,1fr); gap: 14px; }
  .ci-right { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }

  .checkout-grid { grid-template-columns: 1fr; gap: 18px; }
  .co-summary { position: static; order: -1; }
  .fld-row { grid-template-columns: 1fr; gap: 0; }
  .fld-row .fld { margin-bottom: 14px; }

  .acc-grid { grid-template-columns: 1fr; gap: 18px; }
  /* Мобильный (§4.2): карточка перестраивается в столбик — номер+бренд+дата,
     статус, сумма, действие. Колонки не нужны, порядок тот же. Легенда колонок
     на узком экране скрывается (под столбиком она бессмысленна). */
  .lk-cols { display: none; }
  .order-head.lk-grid {
    grid-template-columns: 1fr auto;
    column-gap: 12px;
    row-gap: 10px;
    align-items: center;
  }
  .order-head .lk-col-l       { grid-column: 1 / -1; grid-row: 1; }
  .order-head .lk-col-status  { grid-column: 1; grid-row: 2; justify-self: start; }
  .order-head .lk-col-money   { grid-column: 2; grid-row: 2; justify-self: end; }
  .order-head .lk-col-act     { grid-column: 1 / -1; grid-row: 3; justify-self: stretch; text-align: left; margin-top: 4px; }
  .order-head .lk-col-act .order-toggle { text-align: left; }
  .order-head .lk-col-act .shipment-choose-btn,
  .order-head .lk-col-act .btn-primary { width: 100%; justify-content: center; }
  .acc-nav { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .acc-nav-item { white-space: nowrap; flex: none; }

  .plp-grid { grid-template-columns: 1fr; gap: 16px; }
  /* Корень бага гигантских капсул: базовый .plp-nav — column-flex с
     max-height: calc(100vh-108px) и align-items:stretch. В ряд (row) stretch
     растягивал кнопки на всю эту высоту. Снимаем ограничение высоты и stretch. */
  .plp-nav {
    position: static; flex-direction: row; align-items: flex-start;
    overflow-x: auto; overflow-y: hidden; gap: 6px; padding-bottom: 4px;
    max-height: none;
  }
  .plp-nav-title { display: none; }
  .plp-cat { width: auto; flex: none; align-self: flex-start; white-space: nowrap; border: 1px solid var(--line); border-radius: 50px; padding: 8px 14px; }
  .plp-cat .plp-count { display: none; }
  .plp-gender-bar { flex-wrap: nowrap; overflow-x: auto; gap: 16px; padding-bottom: 12px; }
  .order-body { grid-template-columns: 1fr; gap: 18px; }
  .otl { overflow-x: auto; gap: 4px; }
  .otl-step { min-width: 72px; }
}

@media (min-width: 641px) and (max-width: 1000px) {
  .cart-grid, .checkout-grid { grid-template-columns: minmax(0,1fr) 300px; }
}

/* =========================================================================
   МОДАЛЬНОЕ ОКНО (общий компонент)
   ========================================================================= */
#modal-root:empty { display: none; }
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(20,28,40,.5); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 20px;
  opacity: 0; transition: opacity .22s var(--ease);
}
.modal-backdrop.show { opacity: 1; }
.modal {
  background: var(--surface); border-radius: var(--radius);
  width: 100%; max-width: 560px; max-height: 88vh; overflow: auto;
  box-shadow: 0 30px 80px -24px rgba(20,28,40,.6);
  transform: translateY(12px); transition: transform .22s var(--ease);
}
.modal-backdrop.show .modal { transform: none; }
.modal.sm { max-width: 420px; }
.modal.md { max-width: 520px; }
.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 22px 14px; position: sticky; top: 0; background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.modal-head h2 { margin: 0; font-size: 19px; font-family: var(--font-display); }
.modal-close { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 15px; color: var(--muted); transition: background .2s var(--ease); }
.modal-close:hover { background: var(--line-soft); color: var(--ink); }
.modal-body { padding: 18px 22px 24px; }
.modal-lead { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.55; }
.modal-fine { font-size: 12px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.modal-body .fld { margin-bottom: 14px; }
.modal-body .btn-add { width: 100%; justify-content: center; margin-top: 4px; }
.modal-body .sizetable { margin-top: 0; }
.msearch { display: flex; flex-direction: column; gap: 12px; }
.msearch .scope { font: inherit; font-family: var(--font-display); font-weight: 700; font-size: 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.msearch input { font: inherit; font-size: 15px; padding: 13px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); }
.msearch input:focus, .msearch .scope:focus { outline: none; border-color: var(--ink); }
.info-body-ul { margin: 0 0 4px; padding-left: 20px; }
.info-body-ul li { margin: 6px 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; }

/* =========================================================================
   ИНФО-СТРАНИЦЫ (помощь) + ЖУРНАЛ-СТАТЬЯ
   ========================================================================= */
.info-grid { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 40px; align-items: start; padding: 10px 0 20px; }
.info-nav { position: sticky; top: 88px; display: flex; flex-direction: column; gap: 18px; }
.info-nav-title { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 6px; padding: 0 12px; }
.info-nav-item { display: block; padding: 9px 12px; border-radius: var(--radius-sm); font-size: 14.5px; color: var(--ink-soft); }
.info-nav-item:hover { background: var(--line-soft); }
.info-nav-item.active { background: var(--ink); color: #fff; font-weight: 600; }
.info-main { max-width: 720px; }
.info-main h1 { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -.02em; }
.info-lead { margin: 12px 0 24px; font-size: 17px; color: var(--ink-soft); line-height: 1.5; }
.info-body { font-size: 15px; color: var(--ink-soft); line-height: 1.65; }
.info-body h3 { font-family: var(--font-display); font-weight: 700; font-size: 17px; color: var(--ink); margin: 24px 0 8px; }
.info-body p { margin: 10px 0; }
.info-body ul, .info-body ol { margin: 10px 0; padding-left: 22px; }
.info-body li { margin: 7px 0; }
.info-body b { color: var(--ink); font-weight: 600; }
.info-steps { list-style: none; counter-reset: st; padding: 0; margin: 16px 0; }
.info-steps li { position: relative; padding: 0 0 16px 44px; counter-increment: st; }
.info-steps li::before { content: counter(st); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.info-steps li:not(:last-child)::after { content: ''; position: absolute; left: 13px; top: 30px; bottom: 2px; width: 2px; background: var(--line); }
.info-route { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 22px 0; padding: 16px; border: 1px dashed #D8D1C2; border-radius: var(--radius); background: #FBF8F1; }
.info-route span { font-family: var(--font-display); font-weight: 700; font-size: 12.5px; color: var(--ink); white-space: nowrap; }
.info-route em { color: var(--muted); font-weight: 500; font-style: normal; }
.info-route i { color: var(--line); font-style: normal; }
.info-note { margin-top: 20px; font-size: 13.5px; color: var(--muted); }
.info-callout { margin: 18px 0; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.info-faq { margin-top: 8px; border-top: 1px solid var(--line); }
.info-help { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.info-help span { font-size: 15px; color: var(--ink-soft); }

.article { max-width: 720px; margin: 10px auto 0; }
.article-tag { font-size: 13px; color: var(--brand); font-weight: 700; }
.article h1 { font-family: var(--font-display); font-weight: 800; font-size: clamp(28px, 4vw, 40px); letter-spacing: -.02em; margin: 8px 0; line-height: 1.1; }
.article-lead { font-size: 18px; color: var(--ink-soft); line-height: 1.5; margin-bottom: 22px; }
.article-more { max-width: 1000px; margin: 50px auto 0; padding-top: 30px; border-top: 1px solid var(--line); }
.article-more h2 { font-family: var(--font-display); font-size: 22px; margin-bottom: 18px; }

/* =========================================================================
   ВХОД / РЕГИСТРАЦИЯ
   ========================================================================= */
.auth { max-width: 400px; margin: 30px auto 60px; }
.auth-tabs { display: flex; gap: 4px; padding: 4px; background: var(--line-soft); border-radius: var(--radius-sm); margin-bottom: 22px; }
.auth-tab { flex: 1; padding: 11px; border-radius: 7px; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--muted); transition: background .2s var(--ease), color .2s; }
.auth-tab.active { background: var(--surface); color: var(--ink); box-shadow: 0 1px 4px rgba(20,28,40,.08); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form .fld { margin-bottom: 0; }
.auth-form .btn-add { width: 100%; justify-content: center; margin-top: 4px; }
.auth-forgot { font-size: 13px; color: var(--muted); align-self: flex-end; margin-top: -6px; }
.auth-forgot:hover { color: var(--brand); }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0; color: var(--muted); font-size: 13px; }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-tg { width: 100%; justify-content: center; }
.auth-tg svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.auth-form { margin-bottom: 0; }

/* Фирменная кнопка входа через Telegram — той же геометрии, что .btn-add,
   но в синем стиле Telegram. */
.btn-tg {
  width: 100%; display: inline-flex; align-items: center; justify-content: center;
  gap: 10px; padding: 19px; border-radius: var(--radius);
  background: #2AABEE; color: #fff; font-size: 17px; font-weight: 600;
  transition: background .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn-tg svg { width: 21px; height: 21px; flex: none; }
.btn-tg:hover { background: #1f97d4; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(34,158,217,.6); }
.btn-tg:active { transform: translateY(0); }
.btn-tg:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.auth-note { margin-top: 18px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 12.5px; line-height: 1.5; color: var(--muted); text-align: center; }
.auth-note a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.auth-note a:hover { color: var(--brand); }
.auth-alt { margin-top: 18px; text-align: center; font-size: 14px; color: var(--muted); }
.auth-alt a { color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.auth-alt a:hover { color: var(--brand); }

/* =========================================================================
   404
   ========================================================================= */
.notfound { padding-top: 70px; }
.nf-code { font-family: var(--font-display); font-weight: 800; font-size: 84px; color: var(--brand); line-height: 1; letter-spacing: -.03em; }

/* =========================================================================
   КАРТОЧКА ТОВАРА — нет в наличии / снято с продажи / инфо о цене
   ========================================================================= */
.pdp-banner { margin-bottom: 14px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 13.5px; color: var(--ink-soft); }
.pdp-banner b { color: var(--ink); }
.soldout-box { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.soldout-head { font-family: var(--font-display); font-weight: 700; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.soldout-head .so-ic { font-size: 18px; }
.soldout-box p { margin: 8px 0 14px; font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.soldout-box .btn { width: 100%; justify-content: center; }
.price-info { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; text-align: left; padding: 0; border: 0; background: none; font: inherit; }
.price-info:hover { color: var(--ink); }
.price-info:hover .i { border-color: var(--ink); color: var(--ink); }

/* =========================================================================
   КАТАЛОГ — пустой результат
   ========================================================================= */
.plp-empty { text-align: center; padding: 50px 20px 70px; grid-column: 1 / -1; max-width: 420px; margin: 0 auto; }
.plp-empty-ic { font-size: 42px; }
.plp-empty h3 { font-family: var(--font-display); font-size: 19px; margin: 12px 0 6px; }
.plp-empty p { color: var(--muted); font-size: 14px; margin-bottom: 20px; }

/* =========================================================================
   ЛИЧНЫЙ КАБИНЕТ — детали заказа, избранное, адреса, данные
   ========================================================================= */
.acc-back { display: inline-block; margin-bottom: 16px; font-size: 14px; color: var(--muted); font-weight: 600; }
.acc-back:hover { color: var(--brand); }
.order-detail { padding: 24px; }
.order-detail-grid { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: 28px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--line); align-items: start; }
.od-h { font-family: var(--font-display); font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 12px; }
.od-h2 { margin-top: 22px; }
.od-side { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.od-addr { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 4px 0 16px; }
.od-help { width: 100%; justify-content: center; }

.acc-wish-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 20px 16px; }
.acc-empty { padding: 40px 20px 50px; }
.acc-empty .cart-empty-ic { font-size: 38px; color: var(--brand); }

.addr-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.addr-card { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 16px; }
.addr-card.is-default { border-color: var(--ink); }
.addr-top { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 15px; }
.addr-badge { font-size: 11px; font-weight: 600; color: #fff; background: var(--ink); padding: 3px 8px; border-radius: 50px; letter-spacing: .02em; }
.addr-line { margin: 8px 0 12px; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.addr-actions { display: flex; gap: 14px; }
.addr-actions button { font: inherit; font-size: 13px; color: var(--muted); padding: 0; }
.addr-actions button:hover { color: var(--brand); }
.addr-add { grid-column: 1 / -1; padding: 16px; border: 1.5px dashed var(--line); border-radius: var(--radius-sm); font-family: var(--font-display); font-weight: 600; font-size: 14.5px; color: var(--ink-soft); background: none; transition: border-color .2s var(--ease), color .2s; }
.addr-add:hover { border-color: var(--ink); color: var(--ink); }
.addr-default { border-color: var(--ink); }
#addr-list { display: flex; flex-direction: column; gap: 12px; }
.addr-form { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; background: var(--surface); }
.acc-data-form { max-width: 560px; }
.acc-data-form .btn-add { width: auto; margin-top: 4px; }

.bal-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 22px; }
.bal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.bal-lbl { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.bal-sum { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.bal-withdraw { padding: 11px 18px; font-size: 14px; }
.bal-note { margin-top: 14px; font-size: 13px; color: var(--muted); line-height: 1.55; max-width: 60ch; }
.bal-h { font-family: var(--font-display); font-weight: 700; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 26px 0 12px; }
.bal-ops { display: flex; flex-direction: column; }
.bal-op { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
.bal-op-main { display: flex; flex-direction: column; gap: 2px; }
.bal-op-text { font-size: 14px; color: var(--ink-soft); }
.bal-op-date { font-size: 12px; color: var(--muted); }
.bal-op-amt { font-family: var(--font-display); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.bal-op-amt.plus { color: #1E7B34; }

@media (max-width: 1000px) {
  .info-grid { grid-template-columns: 1fr; gap: 22px; }
  .info-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 10px 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
  .info-nav-group { display: contents; }
  .order-detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .info-nav-item { padding: 7px 10px; border: 1px solid var(--line); border-radius: 50px; font-size: 13px; }
  .info-nav-item.active { border-color: var(--ink); }
  .info-nav-title { display: none; }
  .addr-list { grid-template-columns: 1fr; }
  .nf-code { font-size: 64px; }
  .modal-body { padding: 16px 18px 20px; }
  .modal-head { padding: 16px 18px 12px; }
}

/* ── Результат поиска по ссылке / артикулу ─────────────────────────────── */
.search-result { display: flex; gap: 18px; align-items: flex-start; }
.sr-ph { position: relative; width: 130px; flex-shrink: 0; }
.sr-ph img { width: 100%; border-radius: 8px; display: block; }
.sr-ph .blogo { position: absolute; top: 8px; left: 8px; }
.sr-info { flex: 1; min-width: 0; }
.sr-cat { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 6px 0 2px; }
.sr-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.3; margin: 0 0 8px; }
.sr-rating { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-soft); margin-bottom: 8px; }
.sr-price { margin: 8px 0 4px; }
.sr-meta { font-size: 12px; color: var(--muted); margin: 0 0 14px; }
.sr-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.search-badge { display: inline-block; padding: 3px 9px; border-radius: 4px; font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.search-badge.in-stock { background: #e6f4ea; color: #1d7633; }
.search-badge.out-stock { background: #fde8e8; color: #b5281c; }
.plp-cat-all { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 10px; color: var(--muted); }
.plp-back-btn { display: flex; align-items: center; gap: 6px; width: 100%; padding: 8px 14px; border: 0; background: none; cursor: pointer; font: inherit; font-size: 13px; color: var(--muted); border-radius: var(--radius-sm); text-align: left; }
.plp-back-btn:hover { background: var(--line-soft); color: var(--ink); }
@media (max-width: 480px) {
  .search-result { flex-direction: column; }
  .sr-ph { width: 100%; max-width: 200px; }
}
/* =========================================================================
   AUTH: password toggle, inline errors, header display_name
   ========================================================================= */
.fld-error { display: block; font-size: 12.5px; color: #B5281C; }

.fld-pw { position: relative; }
.fld-pw .fld-in { padding-right: 46px; width: 100%; display: block; }
.fld-pw-btn {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 26px; height: 26px; display: grid; place-items: center;
  color: var(--muted); padding: 0; border: none; background: none; cursor: pointer;
}
.fld-pw-btn:hover { color: var(--ink); }
.fld-pw-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.fld-pw-btn .eye-off { display: none; }
.fld-pw-btn.visible .eye-on  { display: none; }
.fld-pw-btn.visible .eye-off { display: block; }

/* Header: иконка аккаунта — залитая чёрная SVG когда залогинен, без круга */
.auth-name { display: none; }
.icon-btn.has-name svg { fill: var(--ink); stroke: none; }

/* =========================================================================
   ЗАКАЗЫ: цвета статусов + accordion
   ========================================================================= */
.order-status.st-blue { background: #E3EEFF; color: #1357C2; }
.order-status.st-gray { background: var(--line-soft); color: var(--muted); }
.order-status.st-red  { background: #FDE8E8; color: #B5281C; }

.order-toggle {
  font: inherit; font-size: 13px; font-weight: 600; color: var(--muted); padding: 0;
  border: none; background: none; cursor: pointer; white-space: nowrap;
}
.order-toggle:hover { color: var(--brand); }
.order-detail-block { display: none; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.order-card.open .order-detail-block { display: block; }

.od-items { display: flex; flex-direction: column; gap: 12px; }
.od-item { display: flex; align-items: flex-start; gap: 14px; font-size: 14px; }
.od-item-info { flex: 1; min-width: 0; }
.od-item-name { font-weight: 500; }
.od-item-meta { color: var(--muted); font-size: 13px; margin-top: 2px; }
.od-item-price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; font-size: 14px; }

.od-history { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.od-history-row { display: flex; align-items: center; gap: 10px; font-size: 13px; flex-wrap: wrap; }
.od-history-date { color: var(--muted); white-space: nowrap; }
.od-track { margin-top: 12px; font-size: 13.5px; }
.od-track b { font-weight: 700; }
.od-summary { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.od-sum-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-soft); }
.od-sum-row span:last-child { font-family: var(--font-display); font-weight: 600; white-space: nowrap; }
.od-sum-total { font-weight: 600; color: var(--ink); margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.od-sum-total span:last-child { font-weight: 700; }

/* §5.3: состав посылки — заказы раскрываемыми «баянами» */
.ship-orders { margin-top: 18px; }
.ship-orders-title {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 10px;
}
.ship-order { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 10px; background: var(--bg); }
.ship-order:last-child { margin-bottom: 0; }
.ship-order-sum {
  display: flex; align-items: center; gap: 12px;
  cursor: pointer; list-style: none; padding: 13px 16px;
  font-size: 14px;
}
.ship-order-sum::-webkit-details-marker { display: none; }
.ship-order-sum::before {
  content: '+'; font-size: 16px; line-height: 1; color: var(--muted);
  flex: none; transition: transform .2s var(--ease, ease);
}
.ship-order[open] > .ship-order-sum::before { transform: rotate(45deg); }
.ship-order-id { font-weight: 600; min-width: 0; flex: 1 1 auto; }
.ship-order-cnt { color: var(--muted); font-size: 13px; white-space: nowrap; flex: none; }
.ship-order-price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; flex: none; }
.ship-order-items { padding: 12px 16px 16px; border-top: 1px solid var(--line-soft); gap: 8px; }

/* ── Скелетон-загрузка каталога ─────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}
.sk {
  background: linear-gradient(90deg, #ebebeb 25%, #f5f5f5 50%, #ebebeb 75%);
  background-size: 1200px 100%;
  animation: shimmer 1.5s infinite linear;
  border-radius: 4px;
}
.card-sk {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.card-sk .sk-ph {
  aspect-ratio: 3 / 4;
  width: 100%;
}
.card-sk .sk-cat   { height: 10px; width: 45%; }
.card-sk .sk-title { height: 14px; width: 75%; }
.card-sk .sk-price { height: 16px; width: 35%; }
.plp-sk-wrap {
  padding: 24px 0;
}
@media (prefers-reduced-motion: reduce) {
  .sk { animation: none; }
}

/* ── Скелетон-загрузка списков ЛК (§15.3, Волна 4) ───────────────────────────
   Переиспользует .sk + @keyframes shimmer каталога. Имитирует строку-карточку
   списка: левая колонка (две строки), бейдж статуса, сумма, кнопка. */
.lk-sk { display: flex; flex-direction: column; gap: 12px; }
.lk-sk-row {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center; gap: 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); padding: 18px 20px;
}
.lk-sk-l { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lk-sk .sk-line-no    { height: 16px; width: 90px; }
.lk-sk .sk-line-sub   { height: 11px; width: 150px; }
.lk-sk .sk-line-badge { height: 20px; width: 110px; border-radius: 50px; }
.lk-sk .sk-line-money { height: 16px; width: 70px; }
.lk-sk .sk-line-act   { height: 16px; width: 84px; }
.lk-sk-card {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); padding: 22px;
  display: flex; flex-direction: column; gap: 14px;
}
.lk-sk-card .sk-line-no  { height: 18px; width: 120px; }
.lk-sk-card .sk-line-sub { height: 13px; width: 70%; }
@media (max-width: 600px) {
  .lk-sk-row { grid-template-columns: 1fr auto; row-gap: 12px; }
  .lk-sk-row .sk-line-act { grid-column: 1 / -1; width: 100%; height: 40px; border-radius: var(--radius-sm); }
}

/* ── Пустые состояния списков ЛК (§15.3, Волна 4) ────────────────────────────
   .acc-empty уже задаёт отступы; добавляем структуру: заголовок, текст, действие. */
.acc-empty { text-align: left; }
.acc-empty .acc-empty-ttl { font-family: var(--font-display); font-weight: 800; font-size: 19px; margin: 0 0 8px; }
.acc-empty .acc-empty-txt { color: var(--muted); font-size: 14.5px; line-height: 1.55; max-width: 460px; margin: 0; }
.acc-empty .acc-empty-act { display: inline-flex; margin-top: 18px; }

/* ── Маленький диалог подтверждения (§15.3, Волна 4) ─────────────────────────
   Деструктивные действия (роспуск/отмена, закрытие мастера) — наш диалог в
   дизайне витрины вместо нативного confirm(). Переиспользует слой .wiz-backdrop. */
.lk-confirm {
  background: var(--surface); border-radius: var(--radius);
  width: 100%; max-width: 420px;
  box-shadow: 0 30px 80px -24px rgba(20,28,40,.6);
  transform: translateY(12px); transition: transform .22s var(--ease);
  padding: 26px 26px 22px;
}
.wiz-backdrop.show .lk-confirm { transform: none; }
.lk-confirm-ttl { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.25; margin: 0 0 10px; }
.lk-confirm-txt { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 22px; }
.lk-confirm-acts { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.lk-confirm-acts .btn { min-height: 44px; padding: 11px 20px; font-size: 14.5px; }
@media (max-width: 480px) {
  .wiz-backdrop { padding: 16px; }
  .lk-confirm-acts { flex-direction: column-reverse; }
  .lk-confirm-acts .btn { width: 100%; justify-content: center; }
}

/* ── Товары без наличия ──────────────────────────────────────────────────── */
.card--oos { opacity: .55; }
.card--oos .ph::after {
  content: 'Нет в наличии';
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 12px;
  font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,.45) 0%, transparent 60%);
}
.plp-oos-toggle {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 18px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12.5px; color: var(--muted); cursor: pointer;
  user-select: none;
}
.plp-oos-toggle input { cursor: pointer; }

/* ── Cookie-баннер ───────────────────────────────────────────────────────── */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 9999;
  background: var(--bg); border-top: 1px solid var(--line);
  padding: 12px 16px 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 -2px 12px rgba(0,0,0,.06);
}
.cookie-bar p {
  font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5;
}
.cookie-bar a { color: var(--fg); text-underline-offset: 3px; }
.cookie-bar button {
  align-self: flex-start;
  background: #111; color: #fff;
  border: none; border-radius: 6px;
  padding: 9px 22px; font-size: 13px; font-weight: 600;
  cursor: pointer; white-space: nowrap;
}
.cookie-bar button:hover { opacity: .85; }

/* =========================================================================
   СТРАНИЦА ОПЛАТЫ / ПОПОЛНЕНИЯ БАЛАНСА
   ========================================================================= */
.pay-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 0 60px;
}

.pay-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 36px;
  width: 100%;
  max-width: 480px;
}

.pay-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -.02em;
  margin: 12px 0 22px;
  color: var(--ink);
}

/* Разбивка стоимости */
.pay-breakdown {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 26px;
}

.pay-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
}

.pay-row:last-child { border-bottom: none; }

.pay-row-lbl { font-size: 14px; color: var(--muted); }

.pay-row-val {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.pay-row-total { background: var(--bg); }
.pay-row-total .pay-row-lbl { color: var(--ink); font-weight: 600; font-size: 14.5px; }
.pay-row-total .pay-row-val { font-size: 16px; }

.pay-balance-ok  { color: #1E7B34; }
.pay-balance-low { color: #B5281C; }

/* Поле суммы */
.pay-amount-section { margin-bottom: 26px; }

.pay-amount-lbl {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 700;
}

.pay-amount-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 2px solid var(--ink);
  padding-bottom: 6px;
  transition: border-color .15s var(--ease);
}

.pay-amount-input-wrap:focus-within { border-bottom-color: var(--brand, var(--ink)); }

.pay-amount-input {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 38px;
  letter-spacing: -.03em;
  color: var(--ink);
  border: none;
  background: transparent;
  width: 100%;
  padding: 0;
  appearance: textfield;
  -moz-appearance: textfield;
  line-height: 1.1;
}

.pay-amount-input::-webkit-inner-spin-button,
.pay-amount-input::-webkit-outer-spin-button { appearance: none; margin: 0; }

.pay-amount-input:focus { outline: none; }

.pay-amount-currency {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 28px;
  color: var(--muted);
  flex: none;
  line-height: 1;
}

/* Кнопка и уведомление */
.pay-btn { width: 100%; justify-content: center; }

.pay-notice[hidden] { display: none; }
.pay-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
  animation: rise .4s var(--ease) both;
}

.pay-notice-icon { flex: none; font-size: 18px; line-height: 1.4; }

.pay-notice-text a {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.pay-notice-text a:hover { color: var(--brand, var(--ink)); border-bottom-color: currentColor; }

/* Inline-ошибка недостаточного баланса под карточкой посылки */
.shipment-balance-error {
  margin-top: 10px;
  padding: 10px 14px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: #B5281C;
  line-height: 1.45;
}

.shipment-balance-link {
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
  margin-left: 4px;
}

.shipment-balance-link:hover { color: var(--brand, var(--ink)); }

@media (max-width: 640px) {
  .pay-card { padding: 20px 18px; }
  .pay-amount-input { font-size: 30px; }
  .pay-amount-currency { font-size: 22px; }
}

/* Блок коллабораций на главной убран (Stage 8 UI cleanup) — стили .collabs-row /
   .collab-card удалены. Полка-директория коллабов в каталоге (.collab-rail* /
   .collab-tile*) и сайдбар-список удалены в редизайне дропов 2026-06-25 —
   вместо них редакционная шапка дропа (.drophero*) и страница /drops (.drops*),
   стили см. в конце файла. */

@media (max-width: 640px) {
  /* ВАЖНО: правила ниже должны жить именно в ЭТОМ позднем media-блоке — базовые
     .plp-oos-toggle (≈1664) и .plp-cat-all (≈1480) объявлены ПОСЛЕ раннего
     мобильного блока (≈1083) и перебили бы такие же правила там по каскаду. */

  /* Чекбокс «Включая нет в наличии» — такая же капсула, как таблетки категорий:
     одна строка, ~40px, radius 50px; сбрасываем сайдбарные margin/padding/бордер */
  .plp-oos-toggle {
    flex: none; align-self: flex-start;
    white-space: nowrap;
    margin: 0; padding: 8px 14px;
    border: 1px solid var(--line); border-radius: 50px;
    font-size: 13px; color: var(--ink-soft);
    gap: 7px;
  }
  .plp-oos-toggle input { width: 15px; height: 15px; margin: 0; accent-color: var(--ink); }

  /* «Все товары» — обычная капсула в ряду, без разделителя вертикального сайдбара */
  .plp-cat-all { margin-top: 0; padding-top: 8px; }

  /* «← Все категории» (режим серии) — тоже капсула, не блок на всю ширину */
  .plp-back-btn {
    flex: none; width: auto; align-self: flex-start;
    white-space: nowrap;
    border: 1px solid var(--line); border-radius: 50px; padding: 8px 14px;
  }

}

/* §7: оплата доставки упакованной посылки — карточки способа (.wiz-opt) и адреса
   (.wiz-addr), как в мастере. Здесь только обвязка формы. */
.dlv-form { padding: 14px 0 4px; display: flex; flex-direction: column; gap: 20px; }
.dlv-group { display: flex; flex-direction: column; gap: 12px; }
.dlv-title { font-family: var(--font-display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dlv-fine { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.dlv-pay { min-height: 44px; justify-content: center; }
.dlv-addr-form { border: none; padding: 0; background: none; max-width: none; }

/* =========================================================================
   МАСТЕР СОЗДАНИЯ ПОСЫЛКИ (§6 спеки) — модальное окно, 4 шага.
   Десктоп: окно во весь контентный блок. Мобильный: экран целиком.
   ========================================================================= */
body.wiz-open { overflow: hidden; }
.wiz-backdrop {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(20,28,40,.5); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 24px;
  opacity: 0; transition: opacity .22s var(--ease);
}
.wiz-backdrop.show { opacity: 1; }
.wiz {
  background: var(--surface); border-radius: var(--radius);
  width: 100%; max-width: 720px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(20,28,40,.6);
  transform: translateY(12px); transition: transform .22s var(--ease);
}
.wiz-backdrop.show .wiz { transform: none; }
.wiz-loading { padding: 40px; text-align: center; color: var(--muted); }

.wiz-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 18px 22px 16px; border-bottom: 1px solid var(--line); flex: none;
}
.wiz-progress { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.wiz-progress-step { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .03em; text-transform: uppercase; }
.wiz-progress-title { font-family: var(--font-display); font-weight: 800; font-size: 19px; line-height: 1.2; }
.wiz-dots { display: flex; gap: 6px; margin-top: 4px; }
.wiz-dot { width: 26px; height: 4px; border-radius: 50px; background: var(--line); transition: background .2s var(--ease); }
.wiz-dot.active { background: var(--ink); }
.wiz-dot.done { background: var(--ink); opacity: .55; }

.wiz-body { padding: 20px 22px; overflow: auto; flex: 1 1 auto; }
.wiz-lead { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.5; }
.wiz-fine { margin-top: 14px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.wiz-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 22px; border-top: 1px solid var(--line); flex: none; background: var(--surface);
}
.wiz-foot-info { font-size: 13.5px; color: var(--muted); }
.wiz-foot .btn { min-height: 44px; padding: 11px 20px; font-size: 14.5px; }
.wiz-foot .btn-ghost { padding: 11px 16px; }

/* Шаг 1: выбор заказов */
.wiz-picks { display: flex; flex-direction: column; gap: 10px; }
.wiz-pick {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  min-height: 60px; transition: border-color .15s var(--ease), background .15s var(--ease);
}
.wiz-pick:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.wiz-pick input { width: 20px; height: 20px; flex: none; accent-color: var(--ink); }
.wiz-pick-main { display: flex; flex-direction: column; gap: 3px; flex: 1 1 auto; min-width: 0; }
.wiz-pick-no { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.wiz-pick-date { font-size: 13px; color: var(--muted); }
.wiz-pick-price { font-family: var(--font-display); font-weight: 700; white-space: nowrap; }

/* Шаг 2: способ доставки */
.wiz-opts { display: flex; flex-direction: column; gap: 12px; }
.wiz-opt {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.wiz-opt:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.wiz-opt input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--ink); }
.wiz-opt-body { display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; min-width: 0; }
.wiz-opt-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.wiz-opt-name { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.wiz-opt-eta { font-size: 13px; color: var(--muted); }
.wiz-opt-tariff { font-size: 13.5px; color: var(--ink-soft); }

/* Шаг 3: адреса */
.wiz-addrs { display: flex; flex-direction: column; gap: 12px; }
.wiz-addr {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.wiz-addr.is-sel, .wiz-addr:has(input:checked) { border-color: var(--ink); background: var(--bg); }
.wiz-addr input { width: 20px; height: 20px; flex: none; margin-top: 2px; accent-color: var(--ink); }
.wiz-addr-body { display: flex; flex-direction: column; gap: 5px; flex: 1 1 auto; min-width: 0; }
.wiz-addr-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wiz-addr-label { color: var(--muted); font-size: 13px; font-weight: 500; font-family: var(--font-body); }
.wiz-addr-line { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.wiz-addr-form { border: none; padding: 0; background: none; max-width: none; }

/* Шаг 4: подтверждение */
.wiz-sum { display: flex; flex-direction: column; gap: 18px; }
.wiz-sum-block { display: flex; flex-direction: column; gap: 6px; }
.wiz-sum-h { font-family: var(--font-display); font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.wiz-sum-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.wiz-sum-total { font-weight: 700; padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--line-soft); }
.wiz-sum-val { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }
.wiz-sum-note { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.wiz-sum-warn { color: #B5281C; }
.wiz-immediately { margin: 4px 0 0; }
.wiz-err { margin-top: 8px; }

@media (max-width: 640px) {
  .wiz-backdrop { padding: 0; }
  .wiz { max-width: none; max-height: none; height: 100vh; height: 100dvh; border-radius: 0; }
  .wiz-head { padding: 16px 18px 14px; }
  .wiz-progress-title { font-size: 18px; }
  .wiz-body { padding: 18px; }
  .wiz-foot { padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); }
  .wiz-foot .btn-primary { flex: 1 1 auto; justify-content: center; }
  .wiz-pick, .wiz-opt, .wiz-addr { padding: 16px 14px; }
}

.od-photos { padding: 10px 0; }
.od-photos-title { font-size: 13px; font-weight: 700; margin-bottom: 8px; }
.od-photos-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.od-photo { width: 80px; height: 80px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); cursor: pointer; }

/* ── Волна 5 ─────────────────────────────────────────────────────────────── */

/* T-SHIP-RETURNED-FLOW (§15.1 ❌1): экран вернувшейся посылки — текст + действия.
   Деньги/переотправку ведёт менеджер, поэтому действия — письма (mailto), а не
   клиентское самообслуживание. Тёплое предупреждение, не «ошибка». */
.ship-returned {
  border: 1px solid #F3C9C4; background: #FEF4F3; border-radius: var(--radius-sm);
  padding: 16px 16px 14px; margin-bottom: 16px;
}
.ship-returned-head { display: flex; gap: 12px; align-items: flex-start; }
.ship-returned-ic {
  flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: #B5281C; color: #fff; font-weight: 800; font-size: 15px;
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.ship-returned-ttl { font-family: var(--font-display); font-weight: 800; font-size: 16px; color: #8C2018; }
.ship-returned-txt { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 6px 0 0; max-width: 62ch; }
.ship-returned-acts { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.ship-returned-acts .btn { min-height: 44px; }
.ship-returned-note { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 12px 0 0; }
@media (max-width: 640px) {
  .ship-returned-acts { flex-direction: column; }
  .ship-returned-acts .btn { width: 100%; justify-content: center; }
}

/* Подсказка-предупреждение в деталях заказа, когда его посылка вернулась. */
.ship-note-warn { background: #FEF4F3; color: #8C2018; }
.ship-note-warn a { color: #B5281C; font-weight: 700; }

/* Вторичная ссылка-сигнал на карточке заказа «Посылка вернулась — что делать». */
.shipment-badge-warn { color: #B5281C; font-weight: 700; }

/* §9: Профиль — к общей сетке/типографике, без инлайн-стилей. */
.prof-val { font-size: 15px; }
.prof-muted { color: var(--muted); }
.prof-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 14px;
}
.prof-row .prof-val { margin-top: 4px; }
.prof-tg-btn { font-size: 13px; }
.prof-acts { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

/* §9: Баланс — кнопки и баннеры в классах вместо инлайн-стилей. */
.bal-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bal-ops-empty { color: var(--muted); padding: 16px 0; font-size: 14px; }
.bal-notice {
  border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px;
  font-size: 14px; line-height: 1.5;
}
.bal-notice-ok { background: #E7F4EA; border-left: 4px solid #1E7B34; color: #1E4620; font-weight: 500; }
.bal-notice-pending {
  background: var(--line-soft); border-left: 4px solid var(--brand);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.bal-notice-body { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.bal-notice-ttl { font-weight: 600; color: var(--ink); }
.bal-notice-desc { font-size: 13px; color: var(--muted); }
.bal-notice-spinner {
  flex: none; width: 20px; height: 20px; border: 2px solid var(--muted);
  border-top-color: var(--brand); border-radius: 50%;
  animation: bal-spin 1s linear infinite;
}
@keyframes bal-spin { to { transform: rotate(360deg); } }

/* §10: Баннер impersonation — режим «вошли как клиент» */
.impersonation-banner{background:#fff3cd;border-bottom:2px solid #ff9800;padding:16px;text-align:center;position:sticky;top:0;z-index:9999;}
.impersonation-banner .imp-content{max-width:960px;margin:0 auto;font-size:14px;color:#333;}
.impersonation-banner strong{display:block;margin-bottom:8px;font-size:16px;color:#d32f2f;}
.impersonation-banner p{margin:0 0 12px;}
.imp-exit-btn{background:#d32f2f;color:#fff;border:none;padding:8px 16px;border-radius:4px;cursor:pointer;font-weight:600;}
.imp-exit-btn:hover{background:#b71c1c;}

/* Метка «Администратор» в шапке (бренд-red) */
.admin-badge{display:inline-flex;align-items:center;padding:4px 10px;border-radius:6px;background:#D10A1F;color:#fff;font-size:12px;font-weight:700;text-decoration:none;letter-spacing:.02em;white-space:nowrap;align-self:center;}
.admin-badge:hover{background:#b00919;}

/* §11: Кнопка «Создать счёт» в корзине (только admin) + модалка «кому» */
.btn-create-invoice{display:block;width:100%;margin-top:20px;padding:14px 20px;background:#1E2A3A;color:#fff;border:none;border-radius:9px;font-weight:700;font-size:15px;cursor:pointer;font-family:var(--font-display,inherit);}
.btn-create-invoice:hover{background:#16202c;}
.inv-modal{display:flex;flex-direction:column;gap:12px;}
.inv-toggle{display:flex;gap:4px;background:#f5f5f5;border-radius:6px;padding:4px;}
.inv-tab{flex:1;padding:8px 12px;border:none;border-radius:4px;background:transparent;cursor:pointer;font-size:14px;font-weight:500;color:#555;}
.inv-tab--active{background:#fff;color:#1E2A3A;font-weight:700;box-shadow:0 1px 3px rgba(0,0,0,.1);}
.inv-panel{display:flex;flex-direction:column;gap:8px;}
.inv-result{display:flex;flex-direction:column;gap:8px;margin-top:4px;}
.inv-ok{margin:0;font-size:15px;font-weight:600;color:#2e7d32;}
.inv-link{font-size:13px;color:#1357C2;word-break:break-all;}
.inv-copy{margin-top:4px;font-size:14px;}
.inv-cli-results{display:flex;flex-direction:column;border:1px solid #E7E5E0;border-radius:8px;overflow:hidden;max-height:240px;overflow-y:auto;}
.inv-cli-result{display:block;width:100%;text-align:left;padding:9px 12px;border:none;border-bottom:1px solid #F0EEE9;background:#fff;cursor:pointer;}
.inv-cli-result:last-child{border-bottom:none;}
.inv-cli-result:hover{background:#FAFAF8;}
.inv-cli-nm{font-size:14px;font-weight:600;color:#1E2A3A;}
.inv-cli-ct{font-size:12px;color:#6B7280;margin-top:1px;}
.inv-cli-none{padding:10px 12px;font-size:13px;color:#6B7280;}
.inv-cli-selected{font-size:13px;color:#0a7d34;background:#e8f6ec;border-radius:8px;padding:8px 12px;}

/* §12: Реестр счетов (invoices-list.html) */
.invoices-list-header{display:flex;align-items:baseline;gap:20px;margin:24px 0 16px;}
.invoices-list-title{margin:0;font-size:24px;font-weight:700;}
.invoices-list-back{font-size:14px;color:#1357C2;text-decoration:none;}
.invoices-list-back:hover{text-decoration:underline;}
.invoices-list-controls{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:18px;align-items:center;}
.invoices-filter-select{padding:8px 10px;border:1px solid #ccc;border-radius:4px;font-size:14px;background:#fff;}
.invoices-search{flex:1;min-width:180px;padding:8px 10px;border:1px solid #ccc;border-radius:4px;font-size:14px;}
.invoices-refresh-btn{padding:8px 16px;background:#1357C2;color:#fff;border:none;border-radius:4px;font-size:14px;font-weight:600;cursor:pointer;}
.invoices-refresh-btn:hover{background:#0d47a1;}
.invoices-loading,.invoices-error,.invoices-empty{padding:20px;text-align:center;font-size:15px;color:#555;}
.invoices-error{color:#d32f2f;}
.invoices-table-wrap{overflow-x:auto;}
.invoices-table{width:100%;border-collapse:collapse;font-size:14px;}
.invoices-table th{background:#f5f5f5;font-weight:600;text-align:left;padding:10px 12px;border-bottom:2px solid #ddd;white-space:nowrap;}
.invoices-table td{padding:10px 12px;border-bottom:1px solid #eee;vertical-align:top;}
.invoices-table tr:hover td{background:#fafafa;}
.inv-number{font-weight:600;color:#1357C2;}
.inv-date{font-size:12px;color:#777;margin-top:2px;}
.inv-status-badge{display:inline-block;padding:3px 8px;border-radius:12px;font-size:12px;font-weight:600;}
.badge-draft{background:#e0e0e0;color:#555;}
.badge-sent{background:#bbdefb;color:#0d47a1;}
.badge-paid{background:#c8e6c9;color:#2e7d32;}
.badge-cancelled{background:#ffcdd2;color:#c62828;}
.inv-action-btn{padding:5px 10px;border:1px solid #ccc;border-radius:4px;font-size:13px;cursor:pointer;background:#fff;}
.inv-action-btn:hover{background:#f5f5f5;}
.inv-action-open{color:#1357C2;border-color:#1357C2;}
.inv-action-open:hover{background:#e3f2fd;}

/* §13: Страница счёта (invoice.html) */
/* ============ Счёт — премиальный документ (концепция A «тихая роскошь») ============
   Единый дизайн со серверным PDF (WeasyPrint рендерит тот же макет). */
.invoice-page{background:#FAFAF8;}
.invoice-page .wrap{max-width:900px;}
.inv-page-state{padding:60px 20px;text-align:center;font-size:16px;color:#6B7280;}
.inv-page-error{color:#c62828;}

.inv-doc{position:relative;font-family:'Golos Text','Noto Sans JP',sans-serif;color:#1E2A3A;padding:6px 2px 0;}
.inv-accent{height:5px;border-radius:3px;
  background:linear-gradient(90deg,#1E2A3A 0,#1E2A3A 62%,#D10A1F 62%,#D10A1F 78%,#1357C2 78%);}

/* шапка */
.inv-head{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap;margin-top:24px;}
.inv-doc-logo{font-family:'Manrope',sans-serif;font-weight:800;font-size:24px;letter-spacing:-.02em;color:#1E2A3A;line-height:1;}
.inv-doc-tagline{font-size:11px;letter-spacing:.32em;text-transform:uppercase;color:#9298A4;margin-top:9px;}
.inv-doc-seller{text-align:right;font-size:11px;line-height:1.85;color:#3B4658;}
.inv-doc-seller strong{font-weight:600;color:#1E2A3A;}
.inv-doc-seller .jp{color:#9298A4;}

/* заголовок счёта */
.inv-title-row{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;flex-wrap:wrap;
  margin-top:46px;padding-bottom:18px;border-bottom:1.5px solid #1E2A3A;}
.inv-title-label{font-size:11px;letter-spacing:.42em;text-transform:uppercase;color:#9298A4;}
.inv-title-no{font-family:'Manrope',sans-serif;font-weight:800;font-size:42px;letter-spacing:-.025em;line-height:.95;margin:8px 0 0;color:#1E2A3A;}
.inv-title-meta{text-align:right;font-size:12px;line-height:1.9;color:#3B4658;}
.inv-title-meta .k{color:#9298A4;}
.inv-status-badge{display:inline-block;margin-top:7px;padding:5px 14px;border:1px solid #1E2A3A;border-radius:100px;
  font-family:'Manrope',sans-serif;font-weight:600;font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:#1E2A3A;}
.inv-status-badge.badge-paid{border-color:#2C8A57;color:#2C8A57;}
.inv-status-badge.badge-cancelled{border-color:#9298A4;color:#9298A4;}

/* кому */
.inv-parties{margin-top:24px;}
.inv-party-l{font-size:10.5px;letter-spacing:.26em;text-transform:uppercase;color:#9298A4;margin-bottom:7px;}
.inv-party-name{font-family:'Manrope',sans-serif;font-weight:700;font-size:17px;letter-spacing:-.01em;color:#1E2A3A;}

/* позиции */
.inv-items-wrap{margin-top:30px;overflow-x:auto;}
.inv-items-table{width:100%;border-collapse:collapse;font-size:13.5px;}
.inv-items-table thead th{font-size:10px;letter-spacing:.16em;text-transform:uppercase;color:#9298A4;font-weight:500;
  padding:0 12px 11px 0;border-bottom:1px solid #E7E4DC;text-align:left;white-space:nowrap;}
.inv-items-table thead th.r{text-align:right;}
.inv-items-table thead th.c{text-align:center;}
.inv-items-table tbody td{padding:14px 12px 14px 0;border-bottom:1px solid #EFEDE6;vertical-align:top;}
.inv-items-table tbody tr:last-child td{border-bottom:none;}
.inv-item-name{font-weight:500;color:#1E2A3A;}
.inv-item-link{color:#1E2A3A;text-decoration:none;}
.inv-item-link:hover{text-decoration:underline;text-underline-offset:2px;}
.inv-item-art{font-size:11px;color:#9298A4;margin-top:4px;}
.inv-item-art a{color:#9298A4;text-decoration:none;}
.inv-item-art a:hover{text-decoration:underline;}
.inv-item-brand{display:inline-block;font-family:'Manrope',sans-serif;font-weight:700;font-size:8.5px;letter-spacing:.05em;
  padding:2px 6px;border-radius:4px;margin-right:6px;vertical-align:1px;text-decoration:none;}
.inv-item-brand.uq{background:#fdecee;color:#D10A1F;}
.inv-item-brand.gu{background:#e9f0fc;color:#1357C2;}
.inv-item-qty{text-align:center;color:#3B4658;white-space:nowrap;}
.inv-item-jpy{text-align:right;color:#9298A4;white-space:nowrap;}
.inv-item-price{text-align:right;font-weight:600;color:#1E2A3A;white-space:nowrap;}
.inv-items-empty{text-align:center;color:#9298A4;padding:18px;}

/* печать-ханко + итоги */
.inv-foot{display:flex;justify-content:space-between;align-items:center;gap:36px;margin-top:34px;}
.inv-seal{width:106px;height:106px;border-radius:50%;border:2.5px solid #C2402F;color:#C2402F;flex-shrink:0;
  transform:rotate(-9deg);text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;
  box-shadow:inset 0 0 0 3.5px #FAFAF8, inset 0 0 0 4.5px rgba(194,64,47,.45);}
.inv-seal-s1{font-family:'Manrope',sans-serif;font-weight:800;font-size:14px;letter-spacing:.5px;line-height:1.08;}
.inv-seal-s2{font-family:'Noto Sans JP','Golos Text',sans-serif;font-size:8px;letter-spacing:3px;margin-top:4px;opacity:.82;}
.inv-totals{margin-left:auto;width:320px;max-width:100%;}
.inv-total-row{display:flex;justify-content:space-between;gap:14px;font-size:13px;padding:7px 0;color:#3B4658;}
.inv-total-label{color:#3B4658;}
.inv-total-value{font-weight:500;white-space:nowrap;}
.inv-total-main{border-top:1.5px solid #1E2A3A;padding-top:14px;margin-top:8px;align-items:baseline;}
.inv-total-main .inv-total-label{font-family:'Manrope',sans-serif;font-weight:700;font-size:14px;color:#1E2A3A;}
.inv-total-main .inv-total-value{font-family:'Manrope',sans-serif;font-weight:800;font-size:25px;letter-spacing:-.02em;color:#1E2A3A;}
.inv-total-note{font-size:10.5px;color:#9298A4;margin:11px 0 0;line-height:1.6;text-align:right;}

/* оплата */
.inv-pay{display:flex;align-items:center;gap:24px;margin-top:28px;padding:22px 26px;background:#F2F0EA;border-radius:14px;}
.inv-pay-main{flex:1;min-width:0;}
.inv-pay-cta{display:inline-block;background:#1E2A3A;color:#fff;border:none;cursor:pointer;
  font-family:'Manrope',sans-serif;font-weight:700;font-size:14.5px;padding:13px 30px;border-radius:9px;}
.inv-pay-cta:hover:not(:disabled){background:#16202c;}
.inv-pay-cta:disabled{opacity:.55;cursor:not-allowed;}
.inv-pay-link{font-size:11.5px;color:#3B4658;margin-top:11px;word-break:break-all;}
.inv-pay-link a{color:#1E2A3A;font-weight:600;text-decoration:none;}
.inv-pay-link a:hover{text-decoration:underline;}
.inv-pay-hint{font-size:10.5px;color:#9298A4;margin-top:5px;line-height:1.5;}
.inv-qr{width:96px;height:96px;flex-shrink:0;background:#fff;border-radius:9px;padding:6px;box-shadow:0 2px 12px rgba(30,42,58,.07);}
.inv-qr img{width:100%;height:100%;display:block;}

/* действия + низ */
.inv-actions{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 0;}
.inv-btn-print{padding:11px 22px;background:#fff;color:#1E2A3A;border:1px solid #D6D3CB;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;font-family:'Golos Text',sans-serif;}
.inv-btn-print:hover{background:#f3f1eb;}
.inv-legal{display:flex;justify-content:space-between;align-items:flex-end;gap:16px;flex-wrap:wrap;
  margin-top:30px;padding-top:18px;border-top:1px solid #E7E4DC;}
.inv-legal-links{display:flex;gap:14px;flex-wrap:wrap;}
.inv-legal-link{font-size:11px;color:#9298A4;text-decoration:none;}
.inv-legal-link:hover{color:#1E2A3A;text-decoration:underline;}
.inv-thanks{font-family:'Manrope',sans-serif;font-weight:600;color:#3B4658;font-size:12px;}
.inv-print-link{display:none;}

/* предохранитель: страница счёта никогда не выходит за ширину экрана */
.invoice-page{overflow-x:clip;}
@media (max-width:680px){
  .inv-head{flex-direction:column;gap:14px;}
  .inv-doc-seller{text-align:left;}
  .inv-title-row{flex-wrap:wrap;}
  .inv-title-no{font-size:34px;}
  .inv-title-meta{text-align:left;width:100%;}
  /* позиции на мобиле — карточками (таблица в 5 колонок не влезает в экран) */
  .inv-items-wrap{overflow-x:visible;}
  .inv-items-table,.inv-items-table tbody{display:block;width:100%;}
  .inv-items-table thead{display:none;}
  .inv-items-table tr{display:block;padding:13px 0;border-bottom:1px solid #EFEDE6;}
  .inv-items-table tr:last-child td{border:none;}
  .inv-items-table td{display:inline;padding:0;border:none;white-space:normal;}
  .inv-items-table td.inv-item-name{display:block;font-size:14px;margin-bottom:5px;}
  .inv-items-table td.inv-item-jpy{display:none;}
  .inv-items-table td:nth-child(2){font-size:12.5px;color:#3B4658;}
  .inv-items-table td:nth-child(2)::after{content:" · ";color:#9298A4;}
  .inv-item-qty{font-size:12.5px;color:#3B4658;}
  .inv-item-qty::before{content:"×";color:#9298A4;}
  .inv-item-price{float:right;font-weight:600;font-size:13.5px;}
  .inv-foot{flex-direction:column;align-items:stretch;gap:18px;}
  .inv-seal{align-self:flex-start;}
  .inv-totals{width:100%;}
  .inv-total-main{flex-wrap:wrap;}
  .inv-total-main .inv-total-value{font-size:20px;}
  .inv-total-note{text-align:left;}
  .inv-pay{flex-direction:column;align-items:stretch;}
  .inv-qr{align-self:center;}
}
@media print{
  #frame,#footer,.no-print{display:none!important;}
  .invoice-page{background:#fff;}
  .inv-print-link{display:block;font-size:11px;color:#3B4658;margin-top:16px;}
}

/* =====================================================================
   Админ-вкладки личного кабинета: «Счета» (реестр) и «Клиенты».
   Видны только админу (account.js: is_admin). Стиль строго по UI-киту —
   индиго var(--ink); статус-бейджи переиспользуют .badge-draft/sent/paid/
   cancelled. GU-синий для кнопок не используется.
   ===================================================================== */

/* Разделитель и заголовок админ-секции в боковой навигации ЛК */
.acc-nav-sep{margin:14px 4px 4px;font-size:11px;font-weight:700;letter-spacing:.06em;
  text-transform:uppercase;color:var(--muted);}
@media (max-width:760px){
  .acc-nav-sep{align-self:center;margin:0 2px;white-space:nowrap;}
}

/* Маленькая кнопка-действие в строках реестра/клиентов (геометрия компактнее .btn) */
.adm-mini-btn{padding:8px 14px;font-size:13.5px;border-radius:var(--radius-sm);}

/* Чипсы-фильтры статуса */
.adm-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px;}
.adm-chip{font-family:var(--font-display);font-weight:600;font-size:13.5px;
  padding:7px 14px;border-radius:999px;border:1px solid var(--line);
  background:#fff;color:var(--ink-soft);cursor:pointer;
  transition:background .15s var(--ease),color .15s var(--ease),border-color .15s var(--ease);}
.adm-chip:hover{border-color:var(--ink);color:var(--ink);}
.adm-chip.is-on{background:var(--ink);color:#fff;border-color:var(--ink);}

/* --- Реестр счетов --- */
.adm-inv-table{display:flex;flex-direction:column;}
.adm-inv-table{max-width:100%;}
.adm-inv-head,.adm-inv-row{
  display:grid;
  grid-template-columns:minmax(78px,1fr) minmax(104px,1.3fr) minmax(68px,.8fr) minmax(92px,.9fr) minmax(72px,.7fr) minmax(120px,auto);
  align-items:center;column-gap:12px;}
.adm-inv-head{padding:0 14px 8px;border-bottom:1px solid var(--line);
  color:var(--muted);font-size:11.5px;font-weight:600;text-transform:uppercase;
  letter-spacing:.04em;}
.adm-inv-row{padding:14px;border:1px solid var(--line);border-radius:var(--radius-sm);
  margin-top:10px;background:#fff;font-size:14px;}
.adm-inv-row:hover{border-color:var(--ink);box-shadow:0 8px 24px -16px rgba(30,42,58,.4);}
.adm-inv-num{display:block;font-weight:700;color:var(--ink);}
.adm-inv-date{display:block;font-size:12px;color:var(--muted);margin-top:2px;}
.adm-inv-name{display:block;font-weight:500;color:var(--ink);}
.adm-inv-contact{display:block;font-size:12px;color:var(--muted);margin-top:2px;word-break:break-word;}
.adm-inv-sum{font-weight:700;color:var(--ink);white-space:nowrap;}
.adm-inv-author{color:var(--ink-soft);}
.adm-inv-acts{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
/* статус-бейдж в реестре — .inv-status-badge + общие .badge-* (уже в файле выше) */

@media (max-width:1024px){
  .adm-inv-head{display:none;}
  .adm-inv-row{grid-template-columns:1fr;row-gap:8px;}
  .adm-inv-c{display:flex;justify-content:space-between;gap:12px;}
  .adm-inv-no,.adm-inv-client{flex-direction:column;align-items:flex-start;}
  .adm-inv-acts{justify-content:flex-start;}
}

/* --- Клиенты --- */
.adm-block{border:1px solid var(--line);border-radius:var(--radius);padding:18px;
  margin-bottom:18px;background:#fff;}
.adm-block-h{font-family:var(--font-display);font-weight:800;font-size:16px;
  color:var(--ink);margin-bottom:12px;}
.adm-search{width:100%;}
.adm-results{margin-top:12px;display:flex;flex-direction:column;gap:10px;}

.adm-client-row{display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-sm);}
.adm-client-row:hover{border-color:var(--ink);}
.adm-client-name{display:block;font-weight:600;color:var(--ink);}
.adm-client-guest{display:inline-block;padding:1px 7px;border-radius:6px;background:#efe7d6;color:#7a5a16;font-size:11px;vertical-align:middle;margin-left:6px;}
.adm-client-contacts{display:block;font-size:12.5px;color:var(--muted);margin-top:2px;word-break:break-word;}
.adm-client-info{min-width:0;}

.adm-create-form{margin-top:0;}

/* Блок «Доступы для клиента — скопировать в чат» */
.adm-access{margin-top:16px;padding:16px;border:1px solid var(--ink);
  border-radius:var(--radius-sm);background:var(--line-soft);}
.adm-access-h{font-family:var(--font-display);font-weight:800;font-size:15px;
  color:var(--ink);margin-bottom:10px;}
.adm-access-rows{display:flex;flex-direction:column;gap:8px;margin-bottom:14px;}
.adm-access-row{display:grid;grid-template-columns:74px 1fr auto;align-items:center;
  gap:10px;font-size:14px;}
.adm-access-lbl{color:var(--muted);font-size:12.5px;font-weight:600;}
.adm-access-val{color:var(--ink);font-weight:500;word-break:break-all;}
.adm-access-field-copy{border:1px solid var(--line);background:#fff;color:var(--ink-soft);
  font-size:12px;font-weight:600;padding:5px 10px;border-radius:7px;cursor:pointer;white-space:nowrap;
  transition:background .15s var(--ease),color .15s var(--ease),border-color .15s var(--ease);}
.adm-access-field-copy:hover{background:var(--ink);color:#fff;border-color:var(--ink);}
.adm-access-copy{width:auto;}
.adm-access-note{font-size:12.5px;color:var(--muted);margin-top:10px;line-height:1.5;}
.adm-access-warn{color:var(--uq);}
@media (max-width:560px){
  .adm-access-row{grid-template-columns:1fr auto;}
  .adm-access-lbl{grid-column:1 / -1;}
}

/* Гостевая модалка оформления заказа со страницы счёта (inv-gm*) */
.inv-gm{position:fixed;inset:0;background:rgba(20,24,32,.45);
  display:flex;align-items:center;justify-content:center;z-index:1000;padding:16px;}
.inv-gm-box{position:relative;background:#FAFAF8;border-radius:14px;
  max-width:360px;width:100%;padding:28px 24px;box-shadow:0 12px 40px rgba(0,0,0,.18);}
.inv-gm-title{margin:0 0 14px;font-size:18px;}
.inv-gm-note{margin:8px 0 14px;font-size:13px;color:#5a5f66;line-height:1.45;}
.inv-gm-opt{display:block;width:100%;padding:13px 16px;margin:8px 0;border:0;
  border-radius:10px;background:#1E2A3A;color:#fff;font-size:15px;cursor:pointer;}
.inv-gm-opt-2{background:transparent;color:#1E2A3A;border:1px solid #1E2A3A;}
.inv-gm-in{display:block;width:100%;padding:11px 13px;margin:8px 0;
  border:1px solid #d6d3cd;border-radius:9px;font-size:15px;}
.inv-gm-err{color:#b3261e;font-size:13px;margin:4px 0;}
.inv-gm-close{position:absolute;top:10px;right:12px;border:0;background:none;
  font-size:22px;line-height:1;color:#9a9a9a;cursor:pointer;}

/* =========================================================================
   РЕДИЗАЙН ГЛАВНОЙ 2026-06 — hero-карусель, бренд-кнопки каталога, чипсы,
   пред-подвал CTA. Старые .hero/.hero-grid/.hw-* остаются для fallback.
   ========================================================================= */
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0;}
.hero-carousel{position:relative;background:#0f1722;overflow:hidden;}
.hero-carousel[hidden]{display:none;}
.hc-track{display:flex;transition:transform .8s var(--ease);}
.hc-slide{position:relative;flex:0 0 100%;min-height:592px;display:flex;align-items:flex-end;overflow:hidden;}
.hc-slide .bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 22%;}
.hc-slide .scrim{position:absolute;inset:0;background:
  linear-gradient(90deg,rgba(15,23,34,.82) 0%,rgba(15,23,34,.5) 38%,rgba(15,23,34,.1) 70%,rgba(15,23,34,0) 100%),
  linear-gradient(0deg,rgba(15,23,34,.6) 0%,rgba(15,23,34,0) 42%);}
.hc-jp{position:absolute;top:42px;right:38px;writing-mode:vertical-rl;font-family:var(--font-jp);font-weight:900;font-size:28px;color:rgba(255,255,255,.85);letter-spacing:.12em;text-shadow:0 2px 16px rgba(0,0,0,.45);}
.hc-inner{position:relative;width:100%;}
.hc-wrap{max-width:var(--maxw);margin:0 auto;padding:56px 24px 54px;color:#fff;}
.hc-eyebrow{display:inline-flex;align-items:center;gap:9px;font-family:var(--font-display);font-weight:800;font-size:12px;letter-spacing:.15em;text-transform:uppercase;color:rgba(255,255,255,.85);}
.hc-eyebrow .dot{width:7px;height:7px;border-radius:50%;background:var(--uq);animation:hwpulse 2s infinite;}
[data-brand="gu"] .hc-eyebrow .dot{background:#2b7bff;}  /* GU — яркая синяя пульсирующая точка */
.hc-lock{font-family:var(--font-display);font-weight:800;font-size:15px;letter-spacing:.16em;text-transform:uppercase;margin-top:18px;opacity:.95;}
.hc-title{font-family:var(--font-display);font-weight:800;font-size:clamp(34px,5.4vw,60px);line-height:.98;letter-spacing:-.03em;margin:8px 0 14px;max-width:15ch;text-wrap:balance;}
.hc-lead{font-size:18px;line-height:1.5;color:rgba(255,255,255,.88);max-width:480px;}
.hc-actions{margin-top:26px;display:flex;align-items:center;gap:16px;flex-wrap:wrap;}
.hc-cta{display:inline-flex;align-items:center;gap:9px;background:#fff;color:var(--ink);font-family:var(--font-display);font-weight:700;font-size:16px;border-radius:var(--radius-sm);padding:16px 26px;transition:transform .2s var(--ease);}
.hc-cta:hover{transform:translateY(-1px);}
.hc-price{display:inline-flex;flex-direction:column;color:#fff;}
.hc-price .lbl{font-family:var(--font-display);font-size:10px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:rgba(255,255,255,.7);}
.hc-price .nums{display:flex;align-items:baseline;gap:9px;}
.hc-price .rub{font-family:var(--font-display);font-weight:800;font-size:24px;}
.hc-price .yen{font-size:13px;color:rgba(255,255,255,.62);}
.hc-promise{border-top:1px solid rgba(255,255,255,.18);margin-top:30px;padding-top:18px;display:flex;gap:28px;flex-wrap:wrap;font-size:13.5px;color:rgba(255,255,255,.82);}
.hc-promise b{font-family:var(--font-display);font-weight:700;color:#fff;}
.hc-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:5;width:46px;height:46px;border-radius:50%;background:rgba(255,255,255,.16);backdrop-filter:blur(6px);color:#fff;display:grid;place-items:center;font-size:20px;border:1px solid rgba(255,255,255,.25);transition:background .2s;}
.hc-arrow:hover{background:rgba(255,255,255,.32);}
.hc-arrow.prev{left:22px;} .hc-arrow.next{right:22px;}
.hc-dots{position:absolute;left:0;right:0;bottom:18px;z-index:5;display:flex;justify-content:center;gap:9px;}
.hc-dot{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.4);border:none;padding:0;transition:all .25s;cursor:pointer;}
.hc-dot.active{background:#fff;width:26px;border-radius:5px;}

/* Большие бренд-кнопки каталога (UNIQLO/GU раздельно) */
.catnav{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:34px;}
.catbtn{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 24px;border-radius:var(--radius);background:var(--surface);box-shadow:0 0 0 1px var(--line);transition:transform .25s var(--ease),box-shadow .25s var(--ease);}
.catbtn:hover{transform:translateY(-2px);box-shadow:0 18px 36px -22px rgba(20,28,40,.4),0 0 0 1px var(--line);}
.catbtn .l{display:flex;align-items:center;gap:15px;}
.catbtn .mk{width:52px;height:52px;border-radius:11px;overflow:hidden;flex:none;}
.catbtn .mk img{width:100%;height:100%;object-fit:contain;display:block;}
.catbtn .t{font-family:var(--font-display);font-weight:800;font-size:18px;letter-spacing:-.01em;color:var(--ink);}
.catbtn .t small{display:block;font-family:var(--font-body);font-weight:500;font-size:12.5px;color:var(--muted);margin-top:2px;letter-spacing:0;}
.catbtn .arr{font-size:22px;color:var(--muted);transition:transform .25s var(--ease),color .25s;}
.catbtn:hover .arr{transform:translateX(4px);color:var(--ink);}

/* Быстрые категории-чипсы */
.cats{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px;}
.cats a{font-family:var(--font-display);font-weight:600;font-size:13.5px;color:var(--ink-soft);background:var(--surface);border:1px solid var(--line);border-radius:999px;padding:9px 16px;transition:all .2s;}
.cats a:hover{border-color:var(--ink);color:var(--ink);transform:translateY(-1px);}
.cats a.hot{color:var(--uq);border-color:rgba(209,10,31,.35);}

/* Пред-подвал CTA (индиго) */
.cta-band{margin-top:56px;background:var(--ink);color:#fff;}
.cta-band .wrap{display:flex;align-items:center;justify-content:space-between;gap:26px;padding:46px 24px;flex-wrap:wrap;}
.cta-band .ct{max-width:560px;}
.cta-band .jp{font-family:var(--font-jp);font-weight:700;font-size:13px;color:rgba(255,255,255,.5);letter-spacing:.12em;}
.cta-band h2{font-family:var(--font-display);font-weight:800;font-size:30px;letter-spacing:-.02em;margin:8px 0 8px;}
.cta-band p{font-size:15px;color:rgba(255,255,255,.78);line-height:1.5;}
.cta-band .acts{display:flex;gap:14px;flex-wrap:wrap;}
.cta-band .b1{display:inline-flex;align-items:center;gap:9px;background:#fff;color:var(--ink);font-family:var(--font-display);font-weight:700;font-size:15px;border-radius:var(--radius-sm);padding:15px 24px;transition:transform .2s var(--ease);}
.cta-band .b1:hover{transform:translateY(-1px);}
.cta-band .b2{display:inline-flex;align-items:center;gap:9px;color:#fff;border:1px solid rgba(255,255,255,.34);font-family:var(--font-display);font-weight:700;font-size:15px;border-radius:var(--radius-sm);padding:15px 24px;transition:background .2s;}
.cta-band .b2:hover{background:rgba(255,255,255,.12);}

@media (prefers-reduced-motion: reduce){
  .hc-track{transition:none!important;}
  .hc-eyebrow .dot,.hc-dot,.hero-carousel *{animation:none!important;}
}
@media(max-width:900px){
  .catnav{grid-template-columns:1fr;}
}
@media(max-width:640px){
  .hc-slide{min-height:486px;}
  .hc-wrap{padding:40px 20px 38px;}
  .hc-title{font-size:32px;}
  .hc-lead{font-size:15.5px;}
  .hc-lock{font-size:13px;}
  .hc-promise{gap:12px 18px;font-size:12.5px;margin-top:22px;padding-top:14px;}
  .hc-jp,.hc-arrow{display:none;}
  .cta-band .wrap{padding:34px 20px;}
  .cta-band h2{font-size:24px;}
}

/* Индиго-подвал (редизайн 2026-06): тёмная заливка низа, светлый текст.
   Только цвета — структура renderFooter и тексты/реквизиты не тронуты. */
.footer{background:#18222F;border-top-color:rgba(255,255,255,.12);}
.footer .logo .name{color:#fff;}
.footer .logo .by{color:rgba(255,255,255,.55);}
.footer .logo .dot{background:var(--uq);}
.foot-route{border-bottom-color:rgba(255,255,255,.14);}
.foot-route .r{color:rgba(255,255,255,.9);}
.foot-route .r .opt{color:rgba(255,255,255,.5);}
.foot-route .a{color:rgba(255,255,255,.45);}
.footer .about{color:rgba(255,255,255,.6);}
.foot-jp{color:rgba(255,255,255,.62);}
.foot-col h5{color:rgba(255,255,255,.7);}
.foot-col a{color:rgba(255,255,255,.78);}
.foot-col a:hover{color:#fff;}
.foot-social a,.foot-social .icon-btn{border-color:rgba(255,255,255,.2);color:rgba(255,255,255,.85);}
.foot-social a:hover{border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.08);}
.foot-contact .c-row{color:rgba(255,255,255,.78);}
.foot-contact a.c-row:hover{color:#fff;}
.foot-contact .c-soon,.foot-contact .c-hours{color:rgba(255,255,255,.5);}
.foot-bottom{border-top-color:rgba(255,255,255,.14);color:rgba(255,255,255,.55);}
.foot-req .req-co{color:rgba(255,255,255,.8);}
.foot-req .req-dot{color:rgba(255,255,255,.4);}
.foot-req a{color:rgba(255,255,255,.7);}
.foot-req a:hover{color:#fff;}
.disclaimer{color:rgba(255,255,255,.45);}
.foot-copy{color:rgba(255,255,255,.5);}

/* =========================================================================
   ИЗБРАННОЕ (wishlist) — сердечко на карточке/PDP + сетка в кабинете
   Эталон: design/favorites-mockup/index.html
   ========================================================================= */

/* Сердечко в строке цены карточки каталога (справа от пилюли .ptag) */
.price-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.fav-btn {
  flex: none; width: 34px; height: 34px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center; border-radius: 50%; color: var(--ink);
  transition: background .2s var(--ease);
}
.fav-btn:hover { background: var(--line-soft); }
.fav-btn svg { width: 23px; height: 23px; stroke: currentColor; fill: none; stroke-width: 1.6; transition: fill .15s, stroke .15s, transform .15s; }
.fav-btn.is-fav svg { fill: var(--uq); stroke: var(--uq); animation: favpop .26s var(--ease); }
@keyframes favpop { 0% { transform: scale(1); } 45% { transform: scale(1.22); } 100% { transform: scale(1); } }

/* Сердечко на странице товара — справа от крупной цены (.ptag.lg) */
.price-block-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fav-btn--pdp { width: 46px; height: 46px; border: 1px solid var(--line); background: var(--surface); }
.fav-btn--pdp:hover { background: var(--line-soft); }
.fav-btn--pdp svg { width: 24px; height: 24px; stroke-width: 1.7; }

/* Карточка во вкладке «Избранное» (кабинет). Сетка — существующий .acc-wish-grid */
.fav-card { position: relative; }
.fav-card .ph { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; background: var(--line-soft); margin-bottom: 10px; }
.fav-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.fav-card .f-cat { font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.fav-card .f-name { font-size: 14px; font-weight: 500; color: var(--ink-soft); line-height: 1.3; margin: 4px 0 6px; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
/* Действия — аккуратный серый текст, как .addr-actions (НЕ крупные кнопки) */
.fav-card .f-acts { display: flex; gap: 16px; margin-top: 11px; }
.fav-card .f-act { font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; background: none; border: 0; padding: 0; }
.fav-card .f-act:hover { color: var(--brand); }
.fav-card .f-act--rm:hover { color: var(--uq); }
/* Снятый с продажи */
.fav-card.fav-soldout .ph { filter: grayscale(1); opacity: .6; }
.fav-card .ph .so-tag { position: absolute; left: 10px; bottom: 10px; background: var(--ink); color: #fff; font-size: 11px; padding: 4px 9px; border-radius: 50px; }

/* =========================================================================
   Дропы — редизайн 2026-06-25 (спека drops-ux-redesign-design.md).
   Эталон вёрстки: design/drops-mockup/. Токены берём из :root (совпадают).
   .drophero-* — редакционная шапка дропа на странице каталога (?collab=).
   .drops-* — лента карточек-историй на странице /drops.
   ========================================================================= */

/* ---- редакционная шапка дропа (над сеткой каталога) ---- */
.drophero{ position:relative; min-height:min(70vh,640px); display:flex;
  align-items:flex-end; overflow:hidden; color:#fff; background:#0d121a;
  border-radius:var(--radius); margin:0 0 26px; }
.drophero .bg{ position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; transform:scale(1.05); animation:dropkb 14s var(--ease) forwards; }
@keyframes dropkb{ to{ transform:scale(1); } }
.drophero-veil{ position:absolute; inset:0; background:linear-gradient(180deg,
  rgba(10,15,24,.34) 0%, rgba(10,15,24,.05) 34%, rgba(10,15,24,.6) 78%, rgba(10,15,24,.88) 100%); }
.drophero-jp{ position:absolute; right:3%; top:6%; font-family:var(--font-jp);
  font-weight:700; font-size:clamp(54px,11vw,150px); color:rgba(255,255,255,.07);
  line-height:.9; user-select:none; writing-mode:vertical-rl; }
.drophero-inner{ position:relative; z-index:2; width:100%; padding:0 28px 40px; }
.drophero-eyebrow{ font-size:12px; letter-spacing:.2em; text-transform:uppercase;
  font-weight:700; opacity:.92; display:flex; align-items:center; gap:9px; }
.drophero-eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--uq);
  box-shadow:0 0 0 4px rgba(209,10,31,.28); }
.drophero-lock{ font-family:var(--font-display); font-weight:700;
  font-size:clamp(14px,2vw,19px); letter-spacing:.03em; margin:14px 0 4px; opacity:.96; }
.drophero h1{ font-family:var(--font-display); font-weight:800; letter-spacing:-.025em;
  line-height:.98; font-size:clamp(38px,7vw,86px); text-shadow:0 2px 36px rgba(0,0,0,.25); margin:0; }
.drophero-lead{ max-width:540px; margin-top:16px; font-size:clamp(14.5px,1.4vw,17px);
  line-height:1.55; color:rgba(255,255,255,.9); }
.drophero-meta{ margin-top:18px; display:flex; gap:18px; flex-wrap:wrap;
  font-size:13px; font-weight:600; color:rgba(255,255,255,.85); }

/* ---- статья про дроп (между шапкой и каталогом) ----
   ОДНА колонка, инфо-статья: компактный читаемый текст (~16px) — статья
   привлекает внимание, покупка ниже в каталоге. Без колонок и боковых фото. */
.drop-story{ background:var(--bg); padding:44px 0 30px; }
.drop-story .ds-wrap{ max-width:1040px; margin:0 auto; padding:0 24px; }
.ds-kicker{ display:block; font-family:var(--font-display); font-size:12px; font-weight:700;
  letter-spacing:.18em; text-transform:uppercase; color:var(--uq); }
.ds-heading{ font-family:var(--font-display); font-weight:800; letter-spacing:-.02em;
  font-size:clamp(22px,2.6vw,30px); line-height:1.12; margin:8px 0 14px; color:var(--ink); }
.drop-story .ds-wrap p{ font-family:var(--font-body); font-size:16px; line-height:1.7; color:var(--ink-soft); }
.drop-story .ds-wrap p:first-of-type{ font-size:17.5px; line-height:1.6; color:var(--ink); }
.drop-story .ds-wrap p + p{ margin-top:13px; }
.ds-quote{ margin:22px 0; padding-left:18px; border-left:3px solid var(--uq);
  font-family:var(--font-display); font-weight:600; font-style:italic; font-size:18px;
  line-height:1.45; color:var(--ink); }
.drop-story .ds-wrap p.ds-credit{ margin-top:20px; font-size:13px; line-height:1.5;
  color:var(--muted); letter-spacing:.02em; }
@media (max-width:640px){
  .drop-story{ padding:32px 0 22px; }
  .drop-story .ds-wrap p{ font-size:15px; }
  .drop-story .ds-wrap p:first-of-type{ font-size:16px; }
}

/* ---- статус-плашка дропа (вместо точного счётчика, спека §5) ---- */
.drop-status{ display:inline-flex; align-items:center; gap:7px; font-family:var(--font-display);
  font-weight:700; font-size:12.5px; padding:6px 12px; border-radius:50px; }
.drop-status .d{ width:7px; height:7px; border-radius:50%; }
.drop-status.live{ background:rgba(30,123,52,.18); color:#7be0a0; }
.drop-status.live .d{ background:#1c9c5b; }
.drop-status.soldout{ background:rgba(181,40,28,.2); color:#ffb4ad; }
.drop-status.soldout .d{ background:#c2c2c2; }

/* ---- лента /drops ---- */
.drops-head{ padding:30px 0 10px; }
.drops-head h1{ font-family:var(--font-display); font-weight:800; letter-spacing:-.02em;
  font-size:clamp(30px,5vw,52px); line-height:1.02; margin:0 0 8px; }
.drops-head p{ color:var(--ink-soft); font-size:16px; max-width:60ch; }
.drops-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; margin:24px 0 70px; }
.dropcard{ position:relative; display:block; border-radius:var(--radius); overflow:hidden;
  color:#fff; min-height:340px; background:#0d121a;
  box-shadow:0 1px 2px rgba(20,28,40,.08); transition:transform .4s var(--ease),box-shadow .4s var(--ease); }
a.dropcard:hover{ transform:translateY(-4px); box-shadow:0 24px 48px -24px rgba(20,28,40,.45); }
.dropcard .bg{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover;
  transition:transform .6s var(--ease); }
.dropcard:hover .bg{ transform:scale(1.05); }
.dropcard-veil{ position:absolute; inset:0; background:linear-gradient(to top,
  rgba(10,15,24,.85) 0%, rgba(10,15,24,.25) 52%, transparent 78%); }
.dropcard-body{ position:absolute; left:0; right:0; bottom:0; z-index:2; padding:22px 22px 24px; }
.dropcard-eyebrow{ font-size:11px; letter-spacing:.16em; text-transform:uppercase;
  font-weight:700; color:rgba(255,255,255,.75); margin-bottom:6px; }
.dropcard-lock{ font-family:var(--font-display); font-weight:700; font-size:14px;
  letter-spacing:.03em; opacity:.95; }
.dropcard h2{ font-family:var(--font-display); font-weight:800; letter-spacing:-.02em;
  font-size:clamp(22px,3vw,30px); line-height:1.04; margin:4px 0 10px; }
.dropcard-foot{ display:flex; align-items:center; gap:12px; }
.drops-empty{ padding:60px 0 80px; text-align:center; color:var(--muted); }

/* ---- пункт меню «Дропы» в шапке ---- */
.tabs .tab-link{ font-family:var(--font-display); font-weight:700; font-size:14px;
  color:var(--ink-soft); display:inline-flex; align-items:center; padding:0 4px;
  margin-left:auto; align-self:center; }   /* «Дропы» забирает всё свободное место → группа «Дропы + Каталог» прижата к правому краю, бренд-вкладки слева */
.tabs .tab-link:hover{ color:var(--ink); }
.tabs .tab-link[aria-current="page"]{ color:var(--ink); border-bottom:2px solid var(--uq); }

@media(max-width:760px){
  .drops-grid{ grid-template-columns:1fr; }
  .drophero{ min-height:62vh; }
  .drophero-inner{ padding:0 18px 28px; }
}
@media (prefers-reduced-motion: reduce){
  .drophero .bg, .dropcard .bg{ animation:none; transform:none; }
}
