/* ШОВ — общий стиль.
   Направление: «split stage» (taste-skill). Фон — бумага, вещи стоят на студийном сером, один зелёный акцент на кнопке действия.
   Мотив — полоса тканой бирки: чёрные и светлые бруски. */

:root {
  --paper: #ebebe9;
  --paper-2: #dfdfdc;
  --studio: #a8a8aa;
  --studio-2: #b4b4b6;
  --ink: #0e0e0e;
  --muted: #3a3a3c;
  --accent: #1f5c49;
  --accent-2: #174838;
  --accent-ink: #ffffff;
  --field: #1b1b1c;
  --field-ink: #ebebe9;

  --display: 'Cormorant', Georgia, 'Times New Roman', serif;
  --text: 'Golos Text', 'Helvetica Neue', Arial, sans-serif;

  --step-small: 1rem;
  --step-note: 0.875rem;
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2.25rem, 1.4rem + 3vw, 4rem);

  --gap: 12px;
  --pad: clamp(20px, 3.4vw, 56px);
  --bar: 64px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --stripe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='56'%3E%3Crect width='28' height='56' fill='%230e0e0e'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
html.locked { overflow: hidden; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
::selection { background: var(--ink); color: var(--paper); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step-head);
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.lead { font-size: var(--step-lead); line-height: 1.35; }
.small { font-size: var(--step-small); }
.muted { color: var(--muted); }
.stripe { height: 56px; background: var(--stripe) repeat-x left top; }
.stripe-thin { height: 8px; background: var(--stripe) repeat-x left top; background-size: 16px 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink);
  font-size: var(--step-body); font-weight: 500; text-decoration: none;
  cursor: pointer;
  transition: background-color .2s, transform .15s var(--ease);
}
.btn:hover { background: var(--accent-2); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { background: var(--studio); color: var(--muted); cursor: not-allowed; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #2a2a2c; }
.btn-tone { background: var(--paper-2); color: var(--ink); }
.btn-tone:hover { background: var(--studio-2); }
.btn-wide { width: 100%; }
.link { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; transition: text-decoration-thickness .15s; }
.link:hover { text-decoration-thickness: 2px; }

/* ---------- шапка ---------- */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  height: var(--bar); padding: 0 var(--gap) 0 var(--pad);
  background: var(--paper);
}
.bar-menu {
  display: none; align-items: center; gap: 8px;
  background: none; border: 0; padding: 8px 4px; cursor: pointer; font-size: var(--step-small);
}
.bar-menu svg, .tool svg, .drawer-close svg { flex: none; width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.bar-logo { display: block; color: var(--ink); }
.logo { width: 92px; height: auto; }
.bar-nav { display: flex; gap: 28px; justify-content: center; }
.bar-nav a { text-decoration: none; font-size: var(--step-small); color: var(--muted); padding: 6px 0; transition: color .15s; }
.bar-nav a:hover, .bar-nav a[aria-current] { color: var(--ink); }
.bar-nav a[aria-current] { text-decoration: underline; text-underline-offset: 6px; }
.bar-tools { display: flex; gap: 4px; }
.tool {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 12px; text-decoration: none; font-size: var(--step-small);
  transition: background-color .15s;
}
.tool:hover { background: var(--paper-2); }
.count:empty { display: none; }
.count {
  min-width: 22px; height: 22px; padding: 0 6px;
  display: inline-grid; place-items: center;
  background: var(--ink); color: var(--paper); font-size: 14px; line-height: 1;
}

@media (max-width: 1080px) {
  .bar { grid-template-columns: 1fr auto 1fr; padding: 0 var(--gap); }
  .bar-menu { display: inline-flex; justify-self: start; }
  .bar-nav { display: none; }
  .bar-logo { justify-self: center; }
  .bar-tools { justify-self: end; }
  .tool-label { display: none; }
}

/* ---------- выезжающее меню (как на образце: панель слева) ---------- */
.drawer { position: fixed; inset: 0; z-index: 50; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(14,14,14,.45); opacity: 0; transition: opacity .3s; }
.drawer-panel {
  position: absolute; top: 0; bottom: 0; left: 0; width: min(380px, 88vw);
  background: var(--paper); padding: 0 0 32px;
  transform: translateX(-100%); transition: transform .32s var(--ease);
  box-shadow: 0 0 40px rgba(0,0,0,.18); /* taste-skill-ignore: выезжающее меню парит над страницей */
  overflow-y: auto;
}
.drawer.is-open .drawer-scrim { opacity: 1; }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { height: var(--bar); display: flex; align-items: center; padding: 0 var(--gap); }
.drawer-close { background: none; border: 0; padding: 8px; cursor: pointer; }
.drawer nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; text-decoration: none; font-size: var(--step-body);
  transition: background-color .15s, padding-left .2s var(--ease);
}
.drawer nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.drawer nav a:hover, .drawer nav a[aria-current] { background: var(--paper-2); }

/* ---------- появление ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- карточки ---------- */
.grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px var(--gap);
}
@media (max-width: 1080px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 8px; } }

.card { position: relative; }
.card-link { display: block; text-decoration: none; }
.plate {
  aspect-ratio: 4 / 5; background: var(--studio);
  display: grid; place-items: center; overflow: hidden;
  transition: background-color .3s;
}
.plate .garment { width: 82%; height: 82%; transition: transform .5s var(--ease); }
.card-link:hover .plate { background: var(--studio-2); }
.card-link:hover .garment { transform: scale(1.04) translateY(-4px); }
.card-name { margin-top: 14px; font-size: var(--step-body); font-weight: 500; line-height: 1.3; }
.card-meta { margin-top: 4px; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--step-small); }
.card-note { color: var(--muted); }
.wish-btn {
  position: absolute; top: 8px; right: 8px;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--paper); border: 0; cursor: pointer;
  transition: background-color .15s, transform .15s var(--ease);
}
.wish-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--ink); stroke-width: 1.8; transition: fill .15s; }
.wish-btn:hover { background: var(--paper-2); }
.wish-btn.is-on svg, [data-wish].is-on svg { fill: var(--ink); }
.pop { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.2); } }

/* ---------- сообщение ---------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 60;
  transform: translate(-50%, 140%); transition: transform .35s var(--ease);
  background: var(--ink); color: var(--paper); padding: 16px 22px;
  max-width: calc(100vw - 24px); font-size: var(--step-small);
  box-shadow: 0 10px 30px rgba(0,0,0,.25); /* taste-skill-ignore: всплывающее сообщение */
}
.toast a { color: var(--paper); }
.toast.is-on { transform: translate(-50%, 0); }

/* =========================================================
   Главная
   ========================================================= */
.hero {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap);
  padding: 0 var(--gap) var(--gap);
  min-height: calc(100svh - var(--bar));
}
.hero-card {
  display: flex; flex-direction: column; background: var(--paper-2);
}
.hero-body {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 48px var(--pad);
}
.hero-body .logo { width: min(300px, 60%); color: var(--ink); margin-bottom: 44px; }
.hero-body h1 { max-width: 13ch; }
.hero-body .hero-text { margin-top: 24px; max-width: 36ch; }
.hero-body .btn { margin-top: 36px; }
.hero-links { display: flex; justify-content: center; gap: 28px; padding: 0 24px 28px; flex-wrap: wrap; }
.hero-links a { font-size: var(--step-body); }
.hero-photo { position: relative; overflow: hidden; background: var(--field); min-height: 520px; }
.fade-stack img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
.fade-stack img.is-on { opacity: 1; }
.hero-photo img { animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.1) translate(-1.5%, -1%); } }
.hero-caption {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  background: var(--paper); padding: 12px 16px; font-size: var(--step-small);
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; min-height: 0; height: 30svh; }
  .hero-card { margin-top: -24px; position: relative; z-index: 3; margin-left: 12px; margin-right: 12px; }
  .stripe { height: 40px; background-size: 40px 40px; }
  .hero-body { padding: 24px 20px 24px; }
  .hero-body .logo { width: 44%; margin-bottom: 20px; }
  .hero-body .hero-text { margin-top: 14px; }
  .hero-body .btn { margin-top: 22px; }
  .hero-body h1 { font-size: clamp(2.25rem, 9vw, 3rem); }
}

/* Витрина: квадратная пластина и вкладки разделов */
.showcase {
  display: grid; grid-template-columns: 1fr 1fr; min-height: 88svh;
  margin-top: clamp(100px, 12vw, 180px);
}
.showcase-plate { display: grid; place-items: center; padding: 40px; }
.showcase-plate .plate { width: 100%; max-width: 640px; aspect-ratio: 1; }
.showcase-plate .garment { width: 70%; height: 70%; }
.showcase-side { display: flex; flex-direction: column; justify-content: space-between; padding: 40px var(--pad) 40px 0; }
.tabs { display: flex; gap: 28px; flex-wrap: wrap; }
.tab {
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font-size: 1.125rem; color: var(--muted);
  transition: color .15s;
}
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.showcase-copy { max-width: 46ch; }
.showcase-copy h2 { margin-bottom: 28px; }
.showcase-copy p + p { margin-top: 12px; }
.cells { display: grid; grid-template-columns: 1fr 1fr; }
.cells .btn { min-height: 72px; }
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; min-height: 0; }
  .showcase-plate { padding: 0 16px; }
  .showcase-side { padding: 24px 16px 0; gap: 28px; }
  .tabs { gap: 20px; }
  .cells { grid-template-columns: 1fr; }
  .cells .btn { min-height: 60px; }
}

/* Новинки сеткой */
.shelf { padding: clamp(100px, 12vw, 180px) var(--gap) 0; }
.shelf-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; padding: 0 0 36px; }
.shelf-head p { max-width: 40ch; }

/* «Скоро»: печатный лист на чёрном поле */
.soon {
  margin-top: clamp(100px, 12vw, 180px);
  background: var(--field); padding: clamp(64px, 8vw, 120px) 10px;
  display: grid; grid-template-columns: repeat(12, 1fr);
}
.sheet {
  grid-column: 4 / span 6;
  background: var(--paper); color: var(--ink);
  padding: 72px clamp(28px, 5vw, 64px);
  text-align: center;
  position: relative;
}
.sheet::before, .sheet::after {
  content: ''; position: absolute; left: 0; right: 0; height: 10px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='10'%3E%3Ccircle cx='10' cy='0' r='8' fill='%231b1b1c'/%3E%3C/svg%3E") repeat-x left top;
}
.sheet::before { top: 0; }
.sheet::after { bottom: 0; transform: scaleY(-1); }
.sheet h2 { font-size: clamp(2.25rem, 1.6rem + 1.6vw, 3rem); }
.sheet > p { margin: 12px auto 0; max-width: 52ch; }
.sheet-group { margin-top: 56px; }
.sheet-group h3 { font-family: var(--display); font-weight: 600; font-size: var(--step-lead); margin-bottom: 20px; }
.sheet ul { list-style: none; margin: 0 auto; padding: 0; max-width: 440px; text-align: left; }
.sheet li + li { margin-top: 16px; }
.sheet li a { display: flex; justify-content: space-between; gap: 16px; text-decoration: none; }
.sheet li a:hover .sheet-name { text-decoration: underline; text-underline-offset: 4px; }
.sheet .price { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sheet li small { display: block; color: var(--muted); font-size: var(--step-small); margin-top: 2px; }
.countdown { margin-top: 56px; }
.countdown span { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 1080px) { .sheet { grid-column: 2 / span 10; } }
@media (max-width: 720px) { .soon { padding: 56px 10px; } .sheet { grid-column: 1 / -1; padding: 56px 24px; } }

/* Одна рамка, меняется содержимое */
.frame-sec {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap);
  padding: clamp(120px, 14vw, 200px) var(--pad) 0;
  align-items: end;
}
.frame {
  grid-column: 2 / span 5; position: relative; aspect-ratio: 4 / 5; overflow: hidden; cursor: pointer;
  background: var(--studio); border: 0; padding: 0;
}
.frame-text { grid-column: 8 / span 4; padding-bottom: 8px; }
.frame-text h2 { margin-bottom: 20px; }
.frame-cap { margin-top: 24px; font-size: var(--step-small); min-height: 3em; }
@media (max-width: 860px) {
  .frame-sec { grid-template-columns: 1fr; padding: 96px 16px 0; }
  .frame, .frame-text { grid-column: 1; }
  .frame { width: 72vw; justify-self: center; }
}

/* Узкая колонка текста */
.intro {
  padding: clamp(120px, 14vw, 200px) 0 160px 15vw;
  display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 6vw; align-items: start;
}
.intro-text p { font-size: 1rem; line-height: 1.55; color: var(--muted); }
.intro-text p + p { margin-top: 1.5em; }
.intro-text p:first-child { color: var(--ink); font-weight: 500; }
.intro-pic { max-width: 620px; }
.intro-pic img, .intro-pic video { width: 100%; height: auto; background: var(--field); }
.intro-pic p { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; padding: 72px 20px 96px; gap: 48px; }
  .intro-text { width: 78%; }
}

/* ---------- подвал: название по последней фотографии ---------- */
.foot {
  position: relative; min-height: 100svh; overflow: hidden;
  color: var(--paper); display: flex; flex-direction: column; justify-content: space-between;
  margin-top: clamp(100px, 12vw, 180px);
  background: var(--field);
}
.foot-short { min-height: 78svh; }
.foot-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5) grayscale(0.2); }
.foot-top, .foot-bottom { position: relative; padding: 32px var(--pad); }
.foot-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.foot-links { display: flex; flex-direction: column; gap: 6px; }
.foot-links a { text-decoration: none; font-size: 1rem; }
.foot-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-contact { max-width: 34ch; font-size: 1rem; }
.foot-contact p + p { margin-top: 8px; }
.foot-name {
  font-family: var(--display); font-weight: 600;
  font-size: 34vw; line-height: 0.74; letter-spacing: -0.04em;
  margin: 0 0 24px -0.04em;
}
.foot-legal { font-size: var(--step-small); max-width: 64ch; }
.foot-legal a { color: inherit; }
@media (max-width: 720px) {
  .foot { min-height: 88svh; }
  .foot-name { font-size: 40vw; }
}

/* =========================================================
   Каталог
   ========================================================= */
.cat-head {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--gap); align-items: stretch;
  padding: 0 var(--gap) var(--gap);
}
.cat-head-text { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: 56px calc(var(--pad) - var(--gap)) 28px; background: var(--paper-2); }
.cat-head-text h1 { font-size: clamp(3rem, 1.6rem + 5vw, 7rem); }
.cat-photo { position: relative; overflow: hidden; height: clamp(320px, 52svh, 560px); background: var(--field); }
.cat-photo img { width: 100%; height: 100%; object-fit: cover; animation: drift 24s ease-in-out infinite alternate; }
.cat-photo figcaption { position: absolute; left: 0; bottom: 0; background: var(--paper); padding: 10px 14px; font-size: var(--step-note); }
.cat-head p { margin-top: 16px; max-width: 52ch; }
.cat-count { color: var(--muted); font-size: var(--step-small); }
.cat-tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding: 16px var(--pad); margin: 0 var(--gap) 32px; background: var(--paper-2);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  border: 0; background: transparent; padding: 8px 14px; cursor: pointer; font-size: var(--step-small);
  transition: background-color .15s;
}
.chip:hover { background: var(--studio-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: var(--step-small); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); }
.sort { margin-left: auto; display: inline-flex; align-items: center; gap: 10px; font-size: var(--step-small); }
.sort select { border: 0; background: var(--paper); padding: 8px 10px; font-size: var(--step-small); cursor: pointer; }
.cat-grid { padding: 0 var(--gap); }
.empty { padding: 80px var(--pad); max-width: 52ch; }
.empty p + p, .empty p + .btn { margin-top: 20px; }
.cat-soon-band { background: var(--field); color: var(--field-ink); padding: 28px var(--pad); margin: 0 var(--gap) 32px; display: flex; flex-wrap: wrap; gap: 8px 40px; align-items: baseline; }
.cat-soon-band strong { font-family: var(--display); font-weight: 600; font-size: var(--step-lead); }
@media (max-width: 720px) {
  .cat-head { grid-template-columns: 1fr; }
  .cat-photo { height: 34svh; order: -1; }
  .cat-photo figcaption { display: none; }
  .cat-head-text { padding: 28px 16px 20px; }
  .cat-tools { padding: 14px 12px; }
  .sort { margin-left: 0; }
}

/* =========================================================
   Страница вещи
   ========================================================= */
.stage { display: grid; grid-template-columns: 55fr 45fr; align-items: start; }
.stage-media {
  position: sticky; top: var(--bar); height: calc(100svh - var(--bar));
  margin: 0 0 0 var(--gap);
  background: var(--studio); overflow: hidden;
}
.stage-media .view { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transition: opacity .6s ease; }
.stage-media .view.is-on { opacity: 1; }
.stage-media .garment { width: 78%; height: 84%; }
.stage-media .view img { width: 100%; height: 100%; object-fit: cover; }
.stage-switch { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; }
.stage-switch button {
  border: 0; background: var(--paper); padding: 10px 16px; cursor: pointer; font-size: var(--step-small);
  transition: background-color .15s;
}
.stage-switch button:hover { background: var(--paper-2); }
.stage-switch button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.stage-crumbs { position: absolute; left: 12px; top: 12px; z-index: 2; background: var(--paper); padding: 8px 12px; font-size: var(--step-small); }
.stage-crumbs a { text-decoration: none; }
.stage-crumbs a:hover { text-decoration: underline; }

.stage-read { padding: 40px var(--pad) 40px; max-width: calc(46ch + 2 * var(--pad)); }
.stage-read section + section { margin-top: 64px; }
.pd-name { font-size: clamp(2.25rem, 1.6rem + 1.8vw, 3.25rem); }
.pd-price { margin-top: 18px; display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.pd-price .lead { font-variant-numeric: tabular-nums; }
.pd-color { margin-top: 6px; color: var(--muted); }
.pd-soon { margin-top: 24px; background: var(--field); color: var(--field-ink); padding: 20px 22px; }
.pd-soon strong { display: block; font-family: var(--display); font-weight: 600; font-size: var(--step-lead); }

.sizes-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.sizes-head h2 { font-size: var(--step-body); font-weight: 500; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 6px; }
.sizes-one { grid-template-columns: 1fr; }
.size {
  position: relative; min-height: 58px; border: 0; background: var(--paper-2); cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  font-size: var(--step-body); font-weight: 500;
  transition: background-color .15s, color .15s, transform .15s var(--ease);
}
.size small { font-size: 13px; font-weight: 400; color: var(--muted); }
.size:hover:not([disabled]) { background: var(--studio-2); }
.size:active:not([disabled]) { transform: scale(0.97); }
.size[aria-checked="true"] { background: var(--ink); color: var(--paper); }
.size[aria-checked="true"] small { color: var(--studio-2); }
.size.is-fit:not([aria-checked="true"]) { background: var(--studio); }
.size[disabled] { cursor: not-allowed; color: var(--muted); background: transparent; text-decoration: line-through; }
.size[disabled] small { text-decoration: none; }
.stock-line { margin-top: 14px; min-height: 1.5em; }

.finder { background: var(--paper-2); padding: 22px; }
.finder label { display: block; font-weight: 500; }
.finder-row { display: flex; gap: 8px; margin-top: 12px; align-items: stretch; }
.finder input {
  width: 120px; min-height: 52px; padding: 0 14px; border: 0; background: var(--paper);
  font-size: var(--step-body); font-variant-numeric: tabular-nums;
}
.finder-unit { align-self: center; color: var(--muted); }
.finder-out { margin-top: 14px; min-height: 3em; }

.actions { display: grid; grid-template-columns: 1fr 64px; gap: 6px; }
.actions .btn { min-height: 64px; }
.actions .wish-big { padding: 0; }
.actions .wish-big svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.actions .wish-big.is-on svg { fill: currentColor; }
.actions-note { margin-top: 12px; }

/* Состав — как пришитая бирка */
.label { background: var(--field); color: var(--field-ink); }
.label .stripe { height: 28px; background-size: 28px 28px; filter: invert(0.92); }
.label-body { padding: 28px 26px 30px; }
.label-body h2 { font-family: var(--display); font-weight: 600; font-size: var(--step-lead); }
.label dl { margin: 18px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; }
.label dt { color: #a9a9ab; }
.label dd { margin: 0; }
.label ul { margin: 22px 0 0; padding: 0; list-style: none; }
.label li + li { margin-top: 4px; }

.measure h2, .about h2, .ship h2 { font-size: var(--step-body); font-weight: 500; margin-bottom: 14px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: var(--step-small); font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 10px 10px 0; border-bottom: 1px solid #c9c9c6; }
thead th { font-weight: 500; }
tr.is-picked td, tr.is-picked th { background: var(--paper-2); }
.about p + p, .ship p + p { margin-top: 12px; }

.related { padding: clamp(100px, 10vw, 160px) var(--gap) 0; }
.related h2 { padding: 0 0 32px calc(var(--pad) - var(--gap)); }

@media (max-width: 860px) {
  .stage { grid-template-columns: 1fr; }
  .stage-media { position: relative; top: 0; height: 64svh; margin: 0 var(--gap); }
  .stage-read { padding: 28px 16px 0; }
  .stage-read section + section { margin-top: 48px; }
}

/* =========================================================
   Корзина и избранное
   ========================================================= */
.page-head { padding: 72px var(--pad) 40px; display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }
.basket { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--gap); padding: 0 var(--gap); align-items: start; }
.lines { list-style: none; margin: 0; padding: 0; }
.line {
  display: grid; grid-template-columns: 132px 1fr auto; gap: 20px; align-items: start;
  padding: 16px; background: var(--paper-2);
}
.line + .line { margin-top: 6px; }
.line .plate { aspect-ratio: 4 / 5; }
.line-name { font-weight: 500; text-decoration: none; }
.line-name:hover { text-decoration: underline; text-underline-offset: 4px; }
.line-meta { margin-top: 4px; color: var(--muted); font-size: var(--step-small); }
.stepper { display: inline-flex; margin-top: 18px; background: var(--paper); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; font-size: 1.25rem; transition: background-color .15s; }
.stepper button:hover:not([disabled]) { background: var(--studio-2); }
.stepper button[disabled] { color: #9a9a9c; cursor: not-allowed; }
.stepper output { min-width: 40px; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.line-side { text-align: right; display: flex; flex-direction: column; align-items: end; gap: 12px; }
.line-sum { font-variant-numeric: tabular-nums; font-weight: 500; }
.line-remove { border: 0; background: none; padding: 4px 0; cursor: pointer; font-size: var(--step-small); text-decoration: underline; text-underline-offset: 4px; color: var(--muted); }
.line-remove:hover { color: var(--ink); }
.summary { position: sticky; top: calc(var(--bar) + 12px); background: var(--field); color: var(--field-ink); }
.summary .stripe { filter: invert(0.92); height: 28px; background-size: 28px 28px; }
.summary-body { padding: 28px; }
.summary h2 { font-family: var(--display); font-weight: 600; font-size: var(--step-lead); }
.summary dl { margin: 22px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-variant-numeric: tabular-nums; }
.summary dd { margin: 0; text-align: right; }
.summary .total { font-size: var(--step-lead); padding-top: 8px; }
.summary .btn { margin-top: 26px; }
.summary .small { margin-top: 14px; color: #a9a9ab; }
@media (max-width: 960px) {
  .basket { grid-template-columns: 1fr; }
  .summary { position: static; }
}
@media (max-width: 560px) {
  .page-head { padding: 40px 16px 28px; }
  .line { grid-template-columns: 96px 1fr; gap: 14px; padding: 12px; }
  .line-side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
}

/* =========================================================
   Вход и аккаунт
   ========================================================= */
.tool-avatar { width: 26px; height: 26px; object-fit: cover; border-radius: 50%; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.link-btn[disabled] { color: var(--muted); cursor: default; text-decoration: none; }

.auth .stage-media { background: var(--field); }
.auth-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.2) brightness(0.85); animation: drift 30s ease-in-out infinite alternate; }
.auth .stage-read { padding-top: 56px; padding-bottom: 72px; }
.auth-step h1 { margin-bottom: 18px; }
.auth-lead { max-width: 44ch; }
.auth-buttons { display: grid; gap: 8px; margin-top: 36px; }
.auth-buttons .btn { min-height: 64px; justify-content: center; }
.ya-mark {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: #fc3f1d; color: #fff; font-weight: 500; font-size: 15px; line-height: 1;
}
.auth-alt { margin-top: 24px; }
.auth-forgot { margin-top: -8px; }
.dev-code { background: var(--paper-2); padding: 14px 18px; margin: 0 0 20px; max-width: 52ch; }
.dev-code strong { font-variant-numeric: tabular-nums; letter-spacing: 0.15em; }
.auth-back { margin-bottom: 28px; color: var(--muted); text-decoration: none; }
.auth-back:hover { color: var(--ink); }
.auth-how { margin: 0 0 28px; padding-left: 1.25em; max-width: 44ch; }
.auth-how li + li { margin-top: 6px; }
.tg-code { background: var(--paper-2); padding: 20px 22px; margin-bottom: 8px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.tg-code strong { font-family: var(--display); font-weight: 600; font-size: var(--step-head); line-height: 1; letter-spacing: 0.12em; font-variant-numeric: tabular-nums; }
.btn[aria-disabled="true"] { pointer-events: none; background: var(--studio); color: var(--muted); }
.auth-status { margin-top: 16px; min-height: 1.5em; }
.auth-form { display: grid; gap: 16px; margin-top: 8px; max-width: 440px; }
.auth-form label { display: grid; gap: 6px; font-weight: 500; }
.auth-form input {
  min-height: 54px; padding: 0 16px; border: 0; background: var(--paper-2);
  font-size: var(--step-body); font-weight: 400; border-radius: 0;
  transition: background-color .15s;
}
.auth-form input:focus { background: #fff; }
.code-input { font-size: 2rem !important; letter-spacing: 0.4em; font-variant-numeric: tabular-nums; }
.auth-error { background: var(--field); color: var(--field-ink); padding: 14px 18px; margin-bottom: 28px; max-width: 52ch; }
.auth-error.is-ok { background: var(--accent); color: var(--accent-ink); }

.account-head { align-items: center; }
.account-who { display: flex; align-items: center; gap: 24px; min-width: 0; }
.account-who h1 { font-size: clamp(2.25rem, 1.6rem + 2vw, 3.5rem); overflow-wrap: anywhere; }
.account-who p { margin-top: 6px; }
.avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; background: var(--studio); }
.avatar-empty { display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 2.75rem; color: var(--paper); background: var(--ink); }
.account-msg { margin: 0 var(--pad) 24px; }
.account-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: var(--gap); padding: 0 var(--gap); align-items: start; }
.account-card { background: var(--paper-2); padding: 28px clamp(20px, 3vw, 36px) 32px; }
.account-card h2 { font-family: var(--display); font-weight: 600; font-size: var(--step-lead); margin-bottom: 20px; }
.account-wide { grid-column: 1 / -1; }
.account-note { margin-top: 20px; }
.methods, .sessions { list-style: none; margin: 0; padding: 0; }
.methods li, .sessions li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 16px; background: var(--paper); }
.methods li + li, .sessions li + li { margin-top: 6px; }
.methods li > div, .sessions li > div { display: grid; gap: 2px; min-width: 0; }
.methods .btn, .sessions .btn { min-height: 44px; padding: 0 18px; font-size: var(--step-small); }
.method-ok { color: var(--accent); font-weight: 500; font-size: var(--step-small); }
.link-box { margin-top: 16px; background: var(--paper); padding: 20px; display: grid; gap: 14px; max-width: none; }
.tg-inline { font-family: var(--display); font-size: 1.6rem; letter-spacing: 0.1em; }
@media (max-width: 860px) {
  .account-grid { grid-template-columns: 1fr; }
  .account-who { gap: 16px; }
  .avatar { width: 72px; height: 72px; }
  .methods li, .sessions li { flex-wrap: wrap; }
  .auth .stage-media { height: 28svh; }
  .auth .stage-read { padding-top: 32px; }
}

/* =========================================================
   Документы: оферта, политика, согласие
   ========================================================= */
.doc { padding: 56px var(--pad) 0; max-width: calc(72ch + 2 * var(--pad)); }
.doc-head h1 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.75rem); max-width: 18ch; }
.doc-head .lead { margin-top: 16px; max-width: 52ch; }
.doc-head .muted { margin-top: 10px; }
.doc-toc { display: flex; flex-wrap: wrap; gap: 6px; margin: 36px 0 8px; }
.doc-toc a { background: var(--paper-2); padding: 8px 12px; text-decoration: none; font-size: var(--step-small); transition: background-color .15s; }
.doc-toc a:hover { background: var(--studio-2); }
.doc-body section { margin-top: 48px; scroll-margin-top: calc(var(--bar) + 16px); }
.doc-body h2 { font-family: var(--display); font-weight: 600; font-size: var(--step-lead); margin-bottom: 16px; }
.doc-body p, .doc-body li, .doc-body dd { max-width: 70ch; }
.doc-body p + p { margin-top: 12px; }
.doc-body ol, .doc-body ul { margin: 0; padding-left: 1.4em; }
.doc-body li + li { margin-top: 10px; }
.doc-body code { font-size: 0.92em; background: var(--paper-2); padding: 1px 6px; }
.doc-terms { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 10px 24px; margin: 16px 0; }
.doc-terms dt { font-weight: 500; }
.doc-terms dd { margin: 0; }
.doc-table th[scope="row"] { font-weight: 500; }
.doc-table td, .doc-table th { vertical-align: top; }
mark.todo { background: #f3dd8a; color: var(--ink); padding: 0 4px; }
@media (max-width: 720px) {
  .doc { padding: 36px 16px 0; }
  .doc-terms { grid-template-columns: 1fr; gap: 2px; }
  .doc-terms dd { margin-bottom: 10px; }
}

/* Подвал: документы и реквизиты */
.foot-docs { display: flex; flex-wrap: wrap; gap: 6px 24px; margin-bottom: 12px; font-size: var(--step-small); }
.foot-docs a { color: inherit; }
.foot-seller { margin-bottom: 8px; }

/* Согласие на странице входа */
.consent { display: flex; gap: 12px; align-items: flex-start; max-width: 52ch; margin: 0 0 28px; padding: 14px 16px; background: var(--paper-2); cursor: pointer; font-size: var(--step-small); line-height: 1.45; }
.consent input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.consent.is-missing { outline: 2px solid var(--accent); animation: nudge .35s var(--ease); }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Кабинет: удаление */
.account-danger p { max-width: 70ch; }
.danger-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 18px; }
.danger-row p { width: 100%; }
.offer-note { margin-top: 14px; color: #a9a9ab; }
.offer-note a { color: inherit; }
