/* Flor Store — чистый стритвир-магазин. Белое поле, чёрная печать, один зелёный только для «в наличии».
   Прямые углы, волосяные линии, фото ведут, интерфейс отступает. */

:root {
  --paper: #ffffff;
  --ink: #0b0b0c;
  --ink-2: #55565a;
  --ink-3: #6e6f74;
  --ink-4: #8a8b90;   /* только зачёркнутая цена и недоступный размер */
  --line: #e8e8ea;
  --line-2: #d2d2d6;
  --wash: #f3f3f4;
  --wash-2: #e9e9eb;
  --black: #0b0b0c;
  --on-black: #ffffff;
  --on-black-2: #a9a9ae;
  --line-black: #2b2b2f;
  --stock: #13a453;
  --stock-ink: #0a7239;
  --error: #c4320a;
  --warn-bg: #fff4e5;
  --warn-ink: #8a4b06;

  --f-ui: "Onest", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-display: "Unbounded", "Onest", system-ui, sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --t1: 160ms;
  --t2: 320ms;
  --t3: 560ms;

  --gut: 16px;
  --max: 1440px;
  --hdr: 56px;
  --ann: 32px;
}

@media (min-width: 900px) {
  :root { --gut: 32px; --hdr: 64px; }
}

*, *::before, *::after { box-sizing: border-box; }
/* атрибут hidden сильнее любого display из компонентов: иначе «Показать ещё» и поля адреса не прячутся */
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr) + 16px);
  scrollbar-color: var(--ink-3) var(--wash);
  scrollbar-width: thin;
}

body {
  margin: 0;
  font: 400 15px/1.55 var(--f-ui);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  font-optical-sizing: auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }

::selection { background: var(--ink); color: var(--paper); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--wash); }
::-webkit-scrollbar-thumb { background: var(--line-2); border: 2px solid var(--wash); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

img, svg, video, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a.u, .prose a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; text-decoration-color: var(--line-2); transition: text-decoration-color var(--t1); }
a.u:hover, .prose a:hover { text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.on-black :focus-visible, .hero :focus-visible, .ftr :focus-visible { outline-color: var(--on-black); }
input, textarea { caret-color: var(--ink); }

h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
.num { font-variant-numeric: tabular-nums; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.icon-sm { width: 16px; height: 16px; }

/* ── полоса сверху ─────────────────────────────────────────────────────── */
.annbar {
  background: var(--black); color: var(--on-black); height: var(--ann); overflow: hidden;
  font-size: 12px; font-weight: 500; letter-spacing: .02em; view-transition-name: annbar;
}
.annbar-track { display: flex; width: max-content; height: 100%; align-items: center; animation: marquee 48s linear infinite; }
.annbar-track span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap; }
.annbar-track i { width: 4px; height: 4px; background: var(--on-black-2); display: inline-block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ── шапка ─────────────────────────────────────────────────────────────── */
.hdr {
  position: sticky; top: 0; z-index: 40; background: var(--paper); height: var(--hdr);
  border-bottom: 1px solid transparent; transition: border-color var(--t2);
  view-transition-name: hdr;
}
.hdr.is-stuck { border-bottom-color: var(--line); }
.hdr-in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; }
.hdr-nav { display: none; gap: 26px; font-size: 14px; font-weight: 500; }
.hdr-nav a, .ftr-col a { position: relative; }
.hdr-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--t2) var(--ease);
}
.hdr-nav a:hover::after, .hdr-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.wordmark {
  font-family: var(--f-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em;
  text-transform: uppercase; white-space: nowrap; line-height: 1;
}
.hdr-tools { display: flex; justify-content: flex-end; align-items: center; gap: 2px; }
.ibtn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; background: none; border: 0;
  position: relative; color: inherit; transition: opacity var(--t1);
}
.ibtn:hover { opacity: .6; }
.hdr-menu { justify-self: start; }
.badge {
  position: absolute; top: 5px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--ink); color: var(--paper); font-size: 11px; font-weight: 600; line-height: 18px;
  text-align: center; font-variant-numeric: proportional-nums;
}
.badge:empty { display: none; }
.badge.bump { animation: bump var(--t3) var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 30% { transform: scale(1.45); } 100% { transform: scale(1); } }
.only-desk { display: none; }

@media (min-width: 900px) {
  .hdr-nav { display: flex; }
  .hdr-menu { display: none; }
  .wordmark { font-size: 21px; }
  .only-desk { display: inline-grid; }
}

/* мобильное меню */
.sheet-nav { padding: 8px var(--gut) 32px; display: grid; gap: 2px; }
.sheet-nav a { font-family: var(--f-display); font-size: 26px; font-weight: 600; letter-spacing: -.02em; padding: 10px 0; display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--line); }
.sheet-nav a small { font-family: var(--f-ui); font-size: 14px; font-weight: 500; color: var(--ink-3); }

/* поиск */
.search-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px var(--gut) 18px; display: none; }
.search-panel.is-open { display: block; animation: drop var(--t2) var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.search-panel form { max-width: var(--max); margin: 0 auto; display: flex; gap: 10px; }
.search-panel input { flex: 1; }

/* ── герой ─────────────────────────────────────────────────────────────── */
.hero { background: var(--black); color: var(--on-black); overflow: hidden; }
.hero-in { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 32px; }
.hero h1 {
  font-family: var(--f-display); font-weight: 600; font-size: clamp(40px, 9.4vw, 88px);
  line-height: .96; letter-spacing: -.035em;
}
.hero h1 span { display: block; }
.hero-sub { color: var(--on-black-2); font-size: 16px; max-width: 34ch; margin-top: 18px; }
.hero-go { display: grid; margin-top: 26px; border-top: 1px solid var(--line-black); }
.hero-go a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line-black); font-size: 22px; font-weight: 600; letter-spacing: -.01em;
}
.hero-go a .cnt { color: var(--on-black-2); font-weight: 500; margin-left: 8px; font-variant-numeric: proportional-nums; }
.hero-go a .icon { transition: transform var(--t2) var(--ease); }
.hero-go a:hover .icon { transform: translateX(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot-stock { background: var(--stock); box-shadow: 0 0 0 3px color-mix(in srgb, var(--stock) 22%, transparent); }
.dot-pre { border: 1.5px solid currentColor; }
.hero-sync { display: flex; align-items: center; gap: 8px; color: var(--on-black-2); font-size: 13px; margin-top: 18px; }
.hero-sync a { color: var(--on-black); }

.hero-shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 10px; overflow-x: auto;
  scroll-snap-type: x mandatory; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut);
  scroll-padding-inline: var(--gut); scrollbar-width: none;
}
.hero-shots::-webkit-scrollbar { display: none; }
.shot { scroll-snap-align: start; position: relative; display: block; }
.shot .ph { aspect-ratio: 4 / 5; background: #1a1a1d; }
.shot-cap { display: flex; justify-content: flex-start; gap: 8px; font-size: 13px; padding-top: 10px; }
.shot-cap span::before { content: "·"; margin-right: 8px; color: var(--on-black-2); }
.shot-cap b { font-weight: 600; }
.shot-cap span { color: var(--on-black-2); }

@media (min-width: 900px) {
  /* первый экран целиком: заголовок, обе дороги и мозаика дропа видны без прокрутки */
  .hero-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; padding-top: 40px; padding-bottom: 40px;
    align-items: stretch;
  }
  .hero-in > div:first-child { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; }
  .hero h1 { font-size: clamp(44px, 5.2vw, 80px); }
  .hero-sub { font-size: 17px; margin-top: 0; }
  .hero-go { margin-top: 22px; }
  .hero-go a { font-size: 24px; padding: 16px 0; }
  .hero-shots {
    margin: 0; padding: 0; overflow: visible; grid-auto-flow: row; grid-template-columns: 1.15fr 1fr;
    grid-template-rows: 1fr 1fr; grid-auto-columns: auto; gap: 12px;
    /* высота от экрана, а не от фото: иначе квадратные снимки вытягивают героя за первый экран */
    height: clamp(420px, calc(100svh - var(--ann) - var(--hdr) - 80px), 600px);
  }
  .hero-shots .shot:first-child { grid-row: span 2; }
  .shot { overflow: hidden; min-height: 0; }
  .shot .ph { aspect-ratio: auto; position: absolute; inset: 0; }
  .shot-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: var(--on-black);
    background: linear-gradient(to top, rgba(11, 11, 12, .72), transparent);
    opacity: 0; transform: translateY(8px); transition: opacity var(--t2), transform var(--t2) var(--ease);
  }
  .shot:hover .shot-cap, .shot:focus-visible .shot-cap { opacity: 1; transform: none; }
  .shot-cap { justify-content: space-between; }
  .shot-cap span::before { content: none; }
  .shot:hover img { transform: scale(1.03); }
}

/* ── заставка фото: плавное проявление при загрузке ───────────────────── */
.ph { position: relative; overflow: hidden; background: var(--wash); }
.ph img { width: 100%; height: 100%; object-fit: cover; transition: opacity var(--t3) var(--ease), filter var(--t3) var(--ease), transform 900ms var(--ease); }
html.js .ph img.lazy:not(.is-in) { opacity: 0; filter: blur(14px); transform: scale(1.03); }

/* ── секции ────────────────────────────────────────────────────────────── */
.sec { padding: 44px 0; }
.sec + .sec { padding-top: 12px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-h h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 4.4vw, 40px); letter-spacing: -.03em; line-height: 1.05; }
.sec-h h2 .cnt { font-family: var(--f-ui); font-size: .5em; font-weight: 500; color: var(--ink-3); letter-spacing: 0; vertical-align: super; margin-left: 4px; font-variant-numeric: proportional-nums; }
.sec-note { color: var(--ink-2); font-size: 14px; margin-top: 6px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; white-space: nowrap; }
.more .icon { width: 18px; height: 18px; transition: transform var(--t2) var(--ease); }
.more:hover .icon { transform: translateX(4px); }
@media (min-width: 900px) { .sec { padding: 72px 0; } .sec-h { margin-bottom: 28px; } }

/* ── сетка товаров и карточка ──────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 16px; } }
@media (min-width: 1180px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 44px 20px; } }
.catalog-grid .grid { }
@media (min-width: 1180px) { .catalog-body .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1400px) { .catalog-body .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { display: block; position: relative; }
.card .ph { aspect-ratio: 4 / 5; }
.card .alt { position: absolute; inset: 0; opacity: 0; transition: opacity var(--t2) var(--ease); }
.card-tag {
  position: absolute; top: 10px; left: 10px; z-index: 2; background: var(--paper); color: var(--ink);
  font-size: 11px; font-weight: 600; padding: 4px 7px; line-height: 1.2; letter-spacing: .01em;
}
.card-tag.is-sold { background: var(--ink); color: var(--paper); }
.card-body { padding-top: 12px; display: grid; gap: 3px; }
.card-brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; line-height: 1.3; }
.card-title { font-size: 14px; color: var(--ink-2); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.price { font-weight: 600; font-variant-numeric: tabular-nums; }
.price-old { color: var(--ink-4); text-decoration: line-through; font-variant-numeric: tabular-nums; font-size: .9em; }
.card-sizes { font-size: 12px; color: var(--ink-3); letter-spacing: .02em; }
.card-avail { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.card.is-sold .ph img { filter: grayscale(.85); opacity: .55; }
.card.is-sold .card-title, .card.is-sold .price { color: var(--ink-3); }
@media (hover: hover) and (pointer: fine) {
  .card:hover .alt { opacity: 1; }
  .card:hover .ph img { transform: scale(1.025); }
  .card:hover .card-brand { text-decoration: underline; text-underline-offset: .2em; text-decoration-thickness: 1px; }
}
.card-seen::after { content: "смотрели"; position: absolute; top: 10px; right: 10px; z-index: 2; font-size: 11px; color: var(--ink-2); background: rgba(255, 255, 255, .86); padding: 3px 6px; }

/* ── категории и бренды на главной ─────────────────────────────────────── */
.cats { border-top: 1px solid var(--line); }
.cats a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0;
  border-bottom: 1px solid var(--line); font-family: var(--f-display); font-weight: 600;
  font-size: clamp(24px, 5.2vw, 56px); letter-spacing: -.035em; line-height: 1;
}
.cats a span { transition: transform var(--t2) var(--ease); }
.cats a small { font-family: var(--f-ui); font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; font-variant-numeric: proportional-nums; }
.cats a:hover span { transform: translateX(14px); }
.cats a:hover small { color: var(--ink); }
.brands-flow { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: clamp(17px, 2.2vw, 22px); font-weight: 500; letter-spacing: -.01em; }
.brands-flow a { display: inline-flex; align-items: baseline; gap: 6px; }
.brands-flow a sup { font-size: 12px; color: var(--ink-3); font-variant-numeric: proportional-nums; }
.brands-flow a:hover { text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }

/* «как это работает»: две дороги */
.roads { display: grid; gap: 28px; }
.road h3 { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.road ol { list-style: none; margin: 18px 0 0; padding: 0; counter-reset: s; }
.road li { position: relative; padding: 0 0 18px 30px; color: var(--ink-2); }
.road li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 9px; height: 9px; border: 1.5px solid var(--ink); border-radius: 50%; background: var(--paper); z-index: 1; }
.road li::after { content: ""; position: absolute; left: 8px; top: 16px; bottom: 0; width: 1px; background: var(--line-2); }
.road li:last-child::after { display: none; }
.road li b { color: var(--ink); font-weight: 600; display: block; }
@media (min-width: 900px) { .roads { grid-template-columns: 1fr 1fr; gap: 56px; } }

.tg-band { background: var(--wash); padding: 36px 0; }
.tg-in { display: grid; gap: 18px; align-items: center; }
.tg-in h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 3.6vw, 34px); letter-spacing: -.03em; line-height: 1.1; }
.tg-in p { color: var(--ink-2); max-width: 52ch; }
.tg-soon { font-size: 14px; color: var(--ink-3); max-width: 30ch; }
@media (min-width: 900px) { .tg-band { padding: 56px 0; } .tg-in { grid-template-columns: 1fr auto; gap: 40px; } }

/* ── кнопки и поля ─────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px;
  background: var(--ink); color: var(--paper); border: 1px solid var(--ink); font-size: 15px; font-weight: 600;
  letter-spacing: .005em; transition: background var(--t1), color var(--t1), transform var(--t1) var(--ease), opacity var(--t1);
  white-space: nowrap; user-select: none;
}
.btn:hover { background: #2a2a2e; border-color: #2a2a2e; }
.btn:active { transform: scale(.985); }
.btn[disabled], .btn.is-busy { opacity: .45; pointer-events: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-light { background: var(--on-black); color: var(--ink); border-color: var(--on-black); }
.btn-light:hover { background: #dcdcdf; border-color: #dcdcdf; }
.btn-block { width: 100%; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn.is-done { background: var(--ink); border-color: var(--ink); }

.field { display: grid; gap: 6px; }
.field label, .lbl { font-size: 13px; font-weight: 600; }
.field .hint { font-size: 12px; color: var(--ink-3); }
.inp, select.inp, textarea.inp {
  width: 100%; height: 48px; border: 1px solid var(--line-2); background: var(--paper); padding: 0 14px;
  border-radius: 0; font-size: 16px; transition: border-color var(--t1), box-shadow var(--t1);
  appearance: none; -webkit-appearance: none;
}
textarea.inp { height: auto; min-height: 92px; padding: 12px 14px; resize: vertical; }
select.inp { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0b0c' stroke-width='1.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.inp:hover { border-color: var(--ink-3); }
.inp:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.inp::placeholder { color: var(--ink-3); }
.err { color: var(--error); font-size: 14px; display: flex; gap: 8px; align-items: flex-start; background: #fff1ec; padding: 12px 14px; }
.ok-note { color: var(--ink); font-size: 14px; background: var(--wash); padding: 12px 14px; }
.warn { background: var(--warn-bg); color: var(--warn-ink); padding: 12px 14px; font-size: 14px; }

/* ── каталог ───────────────────────────────────────────────────────────── */
.page-h { padding: 28px 0 18px; display: grid; gap: 14px; }
.page-h h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(30px, 6vw, 60px); letter-spacing: -.035em; line-height: 1; }
.page-h h1 .cnt { font-family: var(--f-ui); font-size: .36em; color: var(--ink-3); font-weight: 500; letter-spacing: 0; vertical-align: super; margin-left: 6px; font-variant-numeric: proportional-nums; }
.crumbs { font-size: 13px; color: var(--ink-3); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 0; font-size: 15px; font-weight: 500; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; transition: color var(--t1); }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs a span { font-size: 12px; font-variant-numeric: proportional-nums; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.toolbar .sort { width: auto; height: 40px; font-size: 14px; border-color: var(--line); padding-left: 12px; }
.filter-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid var(--line-2); background: none; font-size: 14px; font-weight: 600; }
.filter-btn b { background: var(--ink); color: var(--paper); font-size: 11px; min-width: 18px; height: 18px; display: inline-grid; place-items: center; padding: 0 5px; font-variant-numeric: proportional-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px 0 12px; border: 1px solid var(--line-2); font-size: 13px; background: var(--paper); transition: border-color var(--t1); }
.chip:hover { border-color: var(--ink); }
.chip .icon { width: 14px; height: 14px; }
.chip-clear { border: 0; text-decoration: underline; text-underline-offset: .2em; padding: 0 4px; }

.catalog-body { display: block; }
.fside { display: none; }
@media (min-width: 1024px) {
  .catalog-body { display: grid; grid-template-columns: 236px minmax(0, 1fr); gap: 40px; align-items: start; }
  .fside { display: block; position: sticky; top: calc(var(--hdr) + 20px); max-height: calc(100dvh - var(--hdr) - 40px); overflow-y: auto; padding-right: 10px; scrollbar-width: thin; scrollbar-color: transparent transparent; }
  .fside:hover { scrollbar-color: var(--line-2) transparent; }
  .fside::-webkit-scrollbar { width: 6px; }
  .fside::-webkit-scrollbar-track { background: transparent; }
  .fside::-webkit-scrollbar-thumb { background: transparent; border: 0; }
  .fside:hover::-webkit-scrollbar-thumb { background: var(--line-2); }
  .filter-btn.mob { display: none; }
}
.fgroup { border-top: 1px solid var(--line); padding: 16px 0; }
.fgroup:first-child { border-top: 0; padding-top: 4px; }
.fgroup h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.fopt { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-size: 14px; color: var(--ink-2); }
.fopt:hover { color: var(--ink); }
.fopt .box { width: 16px; height: 16px; border: 1px solid var(--line-2); flex: none; display: grid; place-items: center; transition: background var(--t1), border-color var(--t1); }
.fopt.is-on { color: var(--ink); font-weight: 500; }
.fopt.is-on .box { background: var(--ink); border-color: var(--ink); }
.fopt.is-on .box::after { content: ""; width: 8px; height: 4px; border: solid var(--paper); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); }
.fopt .n { margin-left: auto; font-size: 12px; color: var(--ink-3); font-variant-numeric: proportional-nums; }
.fopt.is-empty { opacity: .4; pointer-events: none; }
.fsizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fsize { height: 40px; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 13px; font-weight: 500; font-variant-numeric: tabular-nums; transition: border-color var(--t1), background var(--t1), color var(--t1); }
.fsize:hover { border-color: var(--ink); }
.fsize.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fprice { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; }
.fprice .inp { height: 40px; font-size: 14px; padding: 0 10px; }
.fbrand-search { height: 38px; font-size: 14px; margin-bottom: 8px; }
.fbrands { max-height: 280px; overflow-y: auto; }

.empty { padding: 64px 0; text-align: center; display: grid; gap: 14px; justify-items: center; }
.empty h2 { font-family: var(--f-display); font-weight: 600; font-size: 26px; letter-spacing: -.02em; }
.empty p { color: var(--ink-2); max-width: 44ch; }
.load-more { display: flex; justify-content: center; padding: 40px 0 8px; }
.grid.is-loading { opacity: .4; transition: opacity var(--t2); }

/* ── шторки: корзина, меню, фильтры ────────────────────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(11, 11, 12, .42); z-index: 60; opacity: 0; transition: opacity var(--t2); pointer-events: none; }
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 70; top: 0; right: 0; height: 100dvh; width: min(440px, 100vw); background: var(--paper);
  display: flex; flex-direction: column; transform: translateX(104%); transition: transform var(--t3) var(--ease);
  box-shadow: -24px 0 48px -24px rgba(11, 11, 12, .25); visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer.left { left: 0; right: auto; transform: translateX(-104%); }
.drawer.left.is-open { transform: none; }
.drawer.bottom { top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: auto; max-height: 88dvh; transform: translateY(104%); }
.drawer.bottom.is-open { transform: none; }
.drawer-h { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 0 var(--gut); height: var(--hdr); border-bottom: 1px solid var(--line); flex: none; }
.drawer-h h2 { font-size: 16px; font-weight: 700; }
.drawer-b { flex: 1; overflow-y: auto; padding: 0 var(--gut); }
.drawer-f { border-top: 1px solid var(--line); padding: 16px var(--gut) calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 12px; flex: none; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 15px; }
.sum-row b { font-size: 18px; font-variant-numeric: tabular-nums; }
.sum-note { font-size: 12px; color: var(--ink-3); }

.line { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line .ph { aspect-ratio: 4 / 5; }
.line-top { display: flex; justify-content: space-between; gap: 10px; }
.line-brand { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.line-title { font-size: 14px; color: var(--ink-2); line-height: 1.35; }
.line-meta { font-size: 13px; color: var(--ink-3); margin-top: 4px; display: flex; gap: 10px; flex-wrap: wrap; }
.line-bot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.line-problem { color: var(--error); font-size: 13px; margin-top: 4px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); height: 34px; }
.qty button { width: 32px; height: 100%; background: none; border: 0; display: grid; place-items: center; }
.qty button:hover { background: var(--wash); }
.qty span { min-width: 26px; text-align: center; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.x-btn { background: none; border: 0; color: var(--ink-3); font-size: 13px; text-decoration: underline; text-underline-offset: .2em; padding: 4px 0; }
.x-btn:hover { color: var(--ink); }
.cart-empty { padding: 56px 0; text-align: center; display: grid; gap: 14px; justify-items: center; color: var(--ink-2); }

/* ── страница товара ───────────────────────────────────────────────────── */
.pdp { display: grid; gap: 22px; padding-bottom: 40px; }
.gallery { position: relative; margin: 0 calc(var(--gut) * -1); }
.gallery-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track .ph { aspect-ratio: 4 / 5; scroll-snap-align: start; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(255, 255, 255, .9); font-size: 12px; font-weight: 600; padding: 4px 8px; font-variant-numeric: tabular-nums; }
.pimg { view-transition-name: pimg; }
.pinfo { display: grid; gap: 18px; align-content: start; }
.pinfo .brand { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.pinfo h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(24px, 3.2vw, 34px); line-height: 1.08; letter-spacing: -.03em; margin-top: 6px; }
.pprice { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.pprice .price { font-size: 26px; }
.pprice .conv { font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.avail { display: grid; gap: 4px; padding: 14px 16px; background: var(--wash); }
.avail-h { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.avail p { font-size: 14px; color: var(--ink-2); padding-left: 18px; }
.sizes-h { display: flex; justify-content: space-between; align-items: baseline; }
.sizes { display: grid; grid-template-columns: repeat(auto-fill, minmax(62px, 1fr)); gap: 6px; margin-top: 10px; border: 0; padding: 0; }
.sizes input { position: absolute; opacity: 0; pointer-events: none; }
.sizes label {
  height: 48px; display: grid; place-items: center; border: 1px solid var(--line-2); font-size: 14px; font-weight: 500;
  cursor: pointer; font-variant-numeric: tabular-nums; transition: border-color var(--t1), background var(--t1), color var(--t1);
  position: relative; user-select: none;
}
.sizes label:hover { border-color: var(--ink); }
.sizes input:checked + label { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.sizes input:focus-visible + label { outline: 2px solid var(--ink); outline-offset: 2px; }
.sizes input:disabled + label { color: var(--ink-4); cursor: not-allowed; background: linear-gradient(to top right, transparent calc(50% - .5px), var(--line-2) calc(50% - .5px), var(--line-2) calc(50% + .5px), transparent calc(50% + .5px)); }
.sizes input:disabled + label:hover { border-color: var(--line-2); }
.sizes.is-wrong { animation: nudge 360ms var(--ease); }
@keyframes nudge { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.size-msg { font-size: 13px; color: var(--error); min-height: 18px; margin-top: 6px; }
.pbuy { display: grid; gap: 10px; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-weight: 600; cursor: pointer; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary .icon { transition: transform var(--t2) var(--ease); }
.acc details[open] summary .icon { transform: rotate(45deg); }
.acc .acc-b { padding: 0 0 18px; color: var(--ink-2); font-size: 14px; display: grid; gap: 10px; }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; }
.buybar {
  position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; background: var(--paper); border-top: 1px solid var(--line);
  padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
  transform: translateY(110%); transition: transform var(--t2) var(--ease);
}
.buybar.is-on { transform: none; }
.buybar .price { font-size: 17px; }
.buybar .btn { flex: 1; height: 46px; }
@media (min-width: 900px) {
  .pdp { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; padding-top: 8px; }
  .gallery { margin: 0; }
  .gallery-track { grid-auto-flow: row; grid-auto-columns: auto; overflow: visible; gap: 10px; scroll-snap-type: none; }
  .gallery-count { display: none; }
  .pinfo { position: sticky; top: calc(var(--hdr) + 24px); padding-top: 8px; }
  .buybar { display: none; }
}

/* ── оформление, оплата, заказ ─────────────────────────────────────────── */
.co { display: grid; gap: 28px; padding: 8px 0 56px; }
.co-sec { display: grid; gap: 16px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.co-sec h2 { font-family: var(--f-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.co-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .co-grid.two { grid-template-columns: 1fr 1fr; } }
.methods { display: grid; gap: 8px; }
.method { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; border: 1px solid var(--line-2); padding: 14px 16px; cursor: pointer; transition: border-color var(--t1), box-shadow var(--t1); }
.method:hover { border-color: var(--ink-3); }
.method input { accent-color: var(--ink); width: 18px; height: 18px; margin: 0; }
.method:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.method b { font-weight: 600; display: block; }
.method small { color: var(--ink-3); font-size: 13px; }
.method .price { font-size: 15px; }
.co-sum { background: var(--wash); padding: 20px; display: grid; gap: 14px; align-content: start; }
.co-sum h2 { font-size: 16px; font-weight: 700; }
.co-sum .line { grid-template-columns: 56px 1fr; padding: 10px 0; border-color: var(--wash-2); }
.co-sum .totals { display: grid; gap: 8px; padding-top: 6px; }
.co-sum .sum-row.total { border-top: 1px solid var(--line-2); padding-top: 12px; font-weight: 700; }
.pay-usdt { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--ink); padding: 16px; box-shadow: 0 0 0 1px var(--ink); }
.pay-usdt .coin { width: 32px; height: 32px; stroke-width: 1.4; }
.pay-usdt small { color: var(--ink-2); font-size: 13px; display: block; margin-top: 2px; }
@media (min-width: 1000px) {
  .co { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 56px; }
  .co-sum { position: sticky; top: calc(var(--hdr) + 24px); }
}

.pay { max-width: 600px; margin: 0 auto; padding: 24px 0 64px; display: grid; gap: 22px; }
.pay-h h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(26px, 5vw, 38px); letter-spacing: -.03em; line-height: 1.05; }
.pay-h p { color: var(--ink-2); margin-top: 8px; }
.amount { border: 1px solid var(--line-2); padding: 20px; display: grid; gap: 6px; }
.amount .lbl { color: var(--ink-2); font-weight: 500; }
.amount-v { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.amount-v b { font-family: var(--f-display); font-weight: 600; font-size: clamp(34px, 8vw, 52px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.amount-v b span { font-size: .42em; letter-spacing: 0; margin-left: 6px; }
.copy { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); background: var(--paper); font-size: 13px; font-weight: 600; transition: border-color var(--t1), background var(--t1); }
.copy:hover { border-color: var(--ink); }
.copy.is-done { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.net { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; background: var(--warn-bg); color: var(--warn-ink); padding: 6px 10px; justify-self: start; }
.addr { display: grid; grid-template-columns: 1fr; gap: 16px; border: 1px solid var(--line-2); padding: 20px; }
.addr code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; word-break: break-all; background: var(--wash); padding: 10px 12px; display: block; }
.qr { width: 184px; height: 184px; background: var(--paper); padding: 8px; border: 1px solid var(--line); justify-self: center; }
.qr canvas, .qr img, .qr svg { width: 100% !important; height: 100% !important; image-rendering: pixelated; }
@media (min-width: 560px) { .addr { grid-template-columns: 1fr auto; align-items: center; } .qr { justify-self: end; } }
.live { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--wash); font-weight: 500; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1.5px solid var(--ink); animation: ring 1.6s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.live.is-paid { background: var(--ink); color: var(--paper); }
.live.is-paid .pulse { background: var(--paper); }
.live.is-paid .pulse::after { display: none; }
.timer { font-variant-numeric: tabular-nums; color: var(--ink-2); font-size: 14px; }
.steps-pay { margin: 0; padding-left: 20px; color: var(--ink-2); font-size: 14px; display: grid; gap: 6px; }
.hash-form { display: grid; gap: 10px; }
.hash-form .row { display: flex; gap: 8px; }
.hash-form .inp { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; }
.paid-mark { width: 72px; height: 72px; }
.paid-mark circle { stroke-dasharray: 220; stroke-dashoffset: 220; animation: draw 700ms var(--ease) forwards; }
.paid-mark path { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 420ms 520ms var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.stations { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.st { display: grid; grid-template-columns: 22px 1fr; gap: 12px; position: relative; padding-bottom: 20px; }
.st::before { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 1.5px; background: var(--line-2); }
.st:last-child::before { display: none; }
.st i { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--paper); display: grid; place-items: center; z-index: 1; }
.st.is-done i { background: var(--ink); border-color: var(--ink); }
.st.is-done i::after { content: ""; width: 8px; height: 4px; border: solid var(--paper); border-width: 0 0 1.5px 1.5px; transform: rotate(-45deg) translate(1px, -1px); }
.st.is-done::before { background: var(--ink); }
.st.is-now i { border-color: var(--ink); }
.st.is-now i::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: glow 1.8s ease-in-out infinite; }
@keyframes glow { 50% { opacity: .35; } }
.st b { font-weight: 600; display: block; line-height: 22px; }
.st span { color: var(--ink-3); font-size: 13px; }
.st:not(.is-done):not(.is-now) b { color: var(--ink-3); font-weight: 500; }
@media (min-width: 900px) {
  .stations.wide { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .stations.wide .st { grid-template-columns: 1fr; padding-bottom: 0; padding-right: 12px; gap: 10px; }
  .stations.wide .st::before { left: 22px; right: 0; top: 10px; bottom: auto; width: auto; height: 1.5px; }
}
.status-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 5px 10px; background: var(--wash); white-space: nowrap; }
.status-pill.is-good { background: var(--ink); color: var(--paper); }
.status-pill.is-bad { background: #fff1ec; color: var(--error); }
.status-pill.is-wait { background: var(--warn-bg); color: var(--warn-ink); }
.order-rows { border-top: 1px solid var(--line); }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; padding: 16px 0; border-bottom: 1px solid var(--line); align-items: center; }
.order-row:hover .order-num { text-decoration: underline; text-underline-offset: .2em; }
.order-num { font-weight: 700; font-variant-numeric: tabular-nums; }
.order-sub { color: var(--ink-3); font-size: 13px; }
.thumbs { display: flex; gap: 6px; margin-top: 8px; }
.thumbs .ph { width: 44px; aspect-ratio: 4 / 5; }

/* ── вход, кабинет, памятки ────────────────────────────────────────────── */
.narrow { max-width: 440px; margin: 0 auto; padding: 40px 0 72px; display: grid; gap: 22px; }
.narrow h1 { font-family: var(--f-display); font-weight: 600; font-size: clamp(28px, 6vw, 40px); letter-spacing: -.035em; line-height: 1; }
.narrow form { display: grid; gap: 14px; }
.switch-line { font-size: 14px; color: var(--ink-2); }
.acct { display: grid; gap: 24px; padding: 8px 0 64px; }
.prose { max-width: 680px; display: grid; gap: 16px; color: var(--ink-2); padding-bottom: 64px; }
.prose h2 { font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.02em; color: var(--ink); margin-top: 18px; }
.prose ol, .prose ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.prose strong { color: var(--ink); }
.ship-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ship-table td, .ship-table th { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ship-table th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; }
.ship-table td:last-child, .ship-table th:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.nf { padding: 72px 0 96px; display: grid; gap: 18px; justify-items: start; }
.nf b { font-family: var(--f-display); font-weight: 700; font-size: clamp(72px, 16vw, 96px); letter-spacing: -.05em; line-height: .9; }

/* ── подвал ────────────────────────────────────────────────────────────── */
.ftr { background: var(--black); color: var(--on-black); padding: 48px 0 calc(24px + env(safe-area-inset-bottom)); margin-top: 24px; }
.ftr-top { display: grid; gap: 28px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ftr-col h3 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--on-black-2); margin-bottom: 12px; }
.ftr-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.ftr-col a:hover { color: var(--on-black-2); }
.ftr-mark { font-family: var(--f-display); font-weight: 700; font-size: clamp(44px, 12.5vw, 96px); letter-spacing: -.04em; line-height: .86; text-transform: uppercase; margin-top: 48px; white-space: nowrap; overflow: hidden; }
.ftr-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; color: var(--on-black-2); font-size: 13px; border-top: 1px solid var(--line-black); padding-top: 18px; margin-top: 22px; }
@media (min-width: 900px) { .ftr { padding-top: 72px; } .ftr-top { grid-template-columns: 2fr 1fr 1fr 1fr; } }

/* ── всплывашка ────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; transform: translate(-50%, 20px);
  background: var(--ink); color: var(--paper); padding: 12px 18px; font-size: 14px; font-weight: 500; opacity: 0;
  transition: opacity var(--t2), transform var(--t2) var(--ease); pointer-events: none; max-width: calc(100vw - 32px);
  box-shadow: 0 12px 32px -12px rgba(11, 11, 12, .45);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.flyer { position: fixed; z-index: 95; pointer-events: none; object-fit: cover; will-change: transform, opacity, clip-path; }

/* ── переходы между страницами ─────────────────────────────────────────── */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out var(--t1) var(--ease-in) both; }
::view-transition-new(root) { animation: vt-in var(--t2) var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }
::view-transition-group(pimg) { animation-duration: var(--t3); animation-timing-function: var(--ease); }
::view-transition-old(pimg), ::view-transition-new(pimg) { height: 100%; width: 100%; object-fit: cover; overflow: hidden; }
::view-transition-group(hdr), ::view-transition-group(annbar) { animation-duration: 0s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .annbar-track { animation: none; }
}

/* ── админка: та же печать, плотнее ────────────────────────────────────── */
.adm { display: grid; gap: 0; min-height: 100dvh; }
.adm-side { background: var(--black); color: var(--on-black); padding: 16px var(--gut); display: flex; gap: 18px; align-items: center; overflow-x: auto; }
.adm-side .wordmark { font-size: 15px; }
.adm-side nav { display: flex; gap: 16px; font-size: 14px; font-weight: 500; }
.adm-side nav a { color: var(--on-black-2); white-space: nowrap; }
.adm-side nav a[aria-current="page"], .adm-side nav a:hover { color: var(--on-black); }
.adm-main { padding: 24px var(--gut) 64px; display: grid; gap: 22px; align-content: start; max-width: 1280px; width: 100%; }
.adm-main h1 { font-family: var(--f-display); font-weight: 600; font-size: 28px; letter-spacing: -.03em; }
@media (min-width: 1000px) {
  .adm { grid-template-columns: 220px 1fr; }
  .adm-side { flex-direction: column; align-items: stretch; padding: 24px 20px; gap: 28px; position: sticky; top: 0; height: 100dvh; }
  .adm-side nav { flex-direction: column; gap: 4px; }
  .adm-side nav a { padding: 8px 0; }
  .adm-main { padding: 32px 40px 72px; }
}
.adm-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.adm-tile { background: var(--paper); padding: 16px 18px; display: grid; gap: 4px; }
.adm-tile b { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.adm-tile span { font-size: 13px; color: var(--ink-2); }
.adm-tile a { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-weight: 600; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: #fafafa; }
.tbl .ph { width: 44px; aspect-ratio: 4 / 5; }
.tbl-wrap { overflow-x: auto; }
.adm-form { display: grid; gap: 16px; max-width: 760px; }
.adm-row { display: grid; gap: 14px; }
@media (min-width: 700px) { .adm-row.two { grid-template-columns: 1fr 1fr; } .adm-row.three { grid-template-columns: 1fr 1fr 1fr; } }
.adm-imgs { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-imgs .ph { width: 92px; aspect-ratio: 4 / 5; }
.pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-row a { font-size: 13px; padding: 6px 10px; border: 1px solid var(--line-2); }
.pill-row a[aria-current="page"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.review { background: var(--warn-bg); color: var(--warn-ink); font-size: 13px; padding: 2px 6px; display: inline-block; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; }
pre.raw { white-space: pre-wrap; background: var(--wash); padding: 14px; font-size: 13px; max-height: 280px; overflow: auto; margin: 0; }

/* на узком экране счётчик вещей уже стоит у заголовка — в панели он только ломал строку */
@media (max-width: 480px) { .toolbar [data-count-label] { display: none; } }
/* пока каталог пуст (до первой синхронизации), мозаики нет — герой в одну колонку */
@media (min-width: 900px) { .hero-in:not(:has(.hero-shots)) { grid-template-columns: minmax(0, 720px); } }
