html { scroll-padding-top: 120px; }
/* ==========================================================================
   VERITEX · раскладка страниц прототипа (шаг 2). Компоненты — в components.css.
   Анимируем только transform/opacity (кроме декоративного вращения кольца — тоже transform).
   ========================================================================== */

#site-top { display: contents; }
/* До того как скрипт вставит шапку, держим её место (высота .site-header 76 px + рамка), иначе страница «прыгает» (CLS). */
#site-top:empty { display: block; min-height: 77px; }
.hide-m { display: none !important; }
.show-m { display: inline-flex; }
@media (min-width: 900px) { .hide-m { display: inline-flex !important; } .show-m { display: none !important; } }
[hidden] { display: none !important; }

.row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 300; background: var(--paper); color: var(--paper-ink); padding: 12px 18px; border-radius: var(--r-pill); }
.skip:focus { top: 12px; }

/* ---------- общие секции ---------- */
.section { padding-block: var(--s-6); }
@media (min-width: 900px) { .section { padding-block: var(--s-7); } }
.section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-2) var(--s-4); margin-bottom: var(--s-5); }
.section__head p { max-width: 46ch; color: var(--text-muted); font-size: 15px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--violet-glow); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.crumbs a { min-height: 44px; padding-inline: 2px; display: inline-flex; align-items: center; }
.crumbs a:hover { color: var(--text); }
.sq { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line-strong); font-family: var(--font-mono); font-size: 14px; color: var(--text-muted); flex: none; }
.sq.is-on { background: var(--violet); box-shadow: none; color: #fff; }

/* поле частиц в «ячейке»: контур мерцает бегущей волной */
.ring { position: relative; isolation: isolate; border-radius: var(--r-panel); overflow: hidden; aspect-ratio: 1 / 0.92; width: 100%; max-height: 70svh; }
@media (min-width: 960px) { .ring { aspect-ratio: 1 / 1; max-height: 680px; } }
.ring__spin { position: absolute; inset: -80%; z-index: -2; background: conic-gradient(from 0deg, transparent 0 55%, rgba(169, 139, 219, 0.1) 70%, var(--violet-glow) 99%, transparent 100%); animation: ring-spin 9s linear infinite; }
.ring__fill { position: absolute; inset: 1px; z-index: -1; border-radius: calc(var(--r-panel) - 1px); background: radial-gradient(70% 60% at 50% 45%, rgba(112, 70, 163, 0.2), transparent 75%), var(--bg-raised); }
@keyframes ring-spin { to { transform: rotate(360deg); } }
.ring canvas, .ring .poster { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring .poster { display: grid; place-items: center; transition: opacity var(--dur-slow) var(--ease); }
.ring .poster svg { width: 62%; height: auto; opacity: 0.85; }
.ring.is-live .poster { opacity: 0; pointer-events: none; }

.callout { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; font-family: var(--font-mono); font-size: 12px; color: var(--violet-glow); white-space: nowrap; opacity: 0; transition: opacity var(--dur-base) var(--ease); will-change: transform; }
.callout.is-on { opacity: 1; }
.callout--ok { color: var(--ok); }
.callout__dot { position: absolute; left: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 22%, transparent); }
.callout__line { position: absolute; left: 0; top: 0; height: 1px; background: currentColor; opacity: 0.55; transform-origin: 0 0; }
.callout__text { position: absolute; left: 0; top: 0; padding: 4px 8px; border-radius: 6px; background: rgba(15, 13, 19, 0.7); box-shadow: inset 0 0 0 1px var(--line-strong); min-height: 24px; }
.callout__text::after { content: ""; display: inline-block; width: 6px; height: 12px; margin-left: 2px; vertical-align: -2px; background: currentColor; opacity: 0; }
.callout.is-typing .callout__text::after { opacity: 1; }
@media (max-width: 520px) { .callout { font-size: 11px; } }

/* ---------- бегущая строка на главной ---------- */
.ticker-wrap { margin-top: var(--s-2); }

/* ---------- история «Как устроен Veritex» ---------- */
.story { position: relative; }
.story__pin { display: none; }
.story-cards { display: grid; gap: var(--s-3); padding-bottom: var(--s-6); }
@media (min-width: 640px) { .story-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.story-card { overflow: hidden; border-radius: var(--r-cell); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); display: grid; }
.story-card__view { position: relative; aspect-ratio: 16 / 11; background: radial-gradient(70% 70% at 50% 50%, rgba(112, 70, 163, 0.18), transparent 75%); }
.story-card__view canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-card__view img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.story-card__body { padding: var(--s-3) var(--s-3) var(--s-4); display: grid; gap: 8px; }
.story-card__key { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--violet-glow); text-transform: uppercase; letter-spacing: 0.1em; }
.story-card h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.story-card p { color: var(--text-muted); font-size: 15px; }
.story[data-mode="auto"] .story-cards { display: none; }
.story[data-mode="auto"] .story__pin { display: grid; padding-block: var(--s-5); }
.story[data-mode="auto"] .step { padding-block: var(--s-2); }
.story[data-mode="auto"] .section__head { margin-bottom: var(--s-4); }
.story__grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.1fr); gap: var(--s-6); align-items: center; }
.story__steps { position: relative; display: grid; padding-left: 28px; }
.story__steps ol { display: grid; list-style: none; }
.story[data-mode="auto"] .story-wrap { display: none; }
.story__rail { position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.story__rail i { position: absolute; inset: 0; background: var(--violet-glow); transform-origin: 0 0; transform: scaleY(0); transition: transform var(--dur-slow, 400ms) var(--ease); }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px var(--s-3); padding-block: var(--s-3); border-top: 1px solid var(--line); opacity: 0.32; transition: opacity var(--dur-base) var(--ease); }
.step:first-of-type { border-top: 0; }
.step.is-active { opacity: 1; }
.step.is-active .sq { background: var(--violet); box-shadow: none; color: #fff; }
.step h3 { font-size: 24px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.2; }
.step p { grid-column: 2; color: var(--text-muted); font-size: 16px; max-width: 44ch; }
.step__key { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--violet-glow); }
.story__stage { position: relative; }
.story__stage .ring { max-height: min(74svh, 640px); }
.story__pp { position: absolute; right: 12px; bottom: 8px; z-index: 3; }
.step { cursor: default; }
.story[data-mode="auto"] .step { cursor: pointer; }
.story[data-mode="auto"] .step:hover { opacity: 0.7; }
.story[data-mode="auto"] .step.is-active:hover { opacity: 1; }
.story__cap { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(15, 13, 19, 0.7); box-shadow: inset 0 0 0 1px var(--line-strong); font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.story__cap span { transition: opacity var(--dur-base) var(--ease); }

/* ---------- каталог-превью, чипы ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-note { margin-top: var(--s-3); }
.cat-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px var(--s-3); margin-top: var(--s-3); font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.empty { display: grid; justify-items: start; gap: var(--s-2); padding: var(--s-5); border-radius: var(--r-cell); box-shadow: inset 0 0 0 1px var(--line); background: var(--bg-raised); }

/* ---------- проверка партии (блок на главной) ---------- */
.verify-block { display: grid; gap: var(--s-5); align-items: center; padding: var(--s-4); border-radius: var(--r-panel); background: radial-gradient(60% 90% at 90% 0%, rgba(112, 70, 163, 0.28), transparent 70%), var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 900px) { .verify-block { grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); padding: var(--s-6); gap: var(--s-6); } }
.verify-block p.lead { margin-top: var(--s-2); max-width: 46ch; color: var(--text-muted); }
.verify-block form { margin-top: var(--s-4); display: grid; gap: 8px; max-width: 520px; }
.label-mini { justify-self: center; width: min(100%, 360px); padding: 18px 20px; border-radius: 16px; background: var(--paper); color: var(--paper-ink); font-family: var(--font-mono); font-size: 13px; transform: rotate(-3deg); display: grid; gap: 6px; }
.label-mini__cell { display: grid; gap: 2px; padding: 10px 12px; border-radius: 10px; background: var(--violet); color: #fff; font-family: var(--font-body); }
.label-mini__cell b { font-weight: 400; font-size: 26px; letter-spacing: -0.02em; line-height: 1.1; }
.label-mini__cell span { font-family: var(--font-mono); font-size: 11px; opacity: 0.9; }
.label-mini__row { display: flex; gap: 12px; padding: 3px 6px; }
.label-mini__row span:first-child { color: var(--paper-muted); width: 34px; }
.label-mini__row.is-hl { box-shadow: inset 0 0 0 2px var(--violet); border-radius: 8px; }
.label-mini__hint { margin-top: 4px; font-size: 12px; color: var(--paper-muted); font-family: var(--font-body); }

/* ---------- журнал партий ---------- */
.jtable { border-top: 1px solid var(--line-strong); }
.jrow { display: grid; align-items: center; gap: 6px var(--s-3); padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "sub pur" "lab coa"; }
.jrow > * { min-width: 0; }
.jrow__lot { grid-area: sub; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.jrow__lot b { font-weight: 400; color: var(--text); } .jrow__lot span { color: var(--text-muted); }
.jrow__pur { grid-area: pur; justify-self: end; }
.jrow__lab { grid-area: lab; color: var(--text-muted); font-size: 12px; }
.jrow__coa { grid-area: coa; justify-self: end; }
.jrow--head { display: none; }
.jrow a.link { display: inline-flex; align-items: center; min-height: var(--tap); gap: 6px; }
@media (min-width: 900px) {
  .jrow { grid-template-columns: 120px minmax(140px, 1.2fr) 100px minmax(160px, 1.2fr) 110px 110px 90px; grid-template-areas: none; }
  .jrow > * { grid-area: auto !important; justify-self: start !important; }
  .jrow__lot { display: contents; }
  .jrow__coa { justify-self: end !important; }
  .jrow--head { display: grid; color: var(--text-muted); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding-block: 12px; }
}

/* ---------- как купить / стандарт / FAQ / Telegram ---------- */
.buy { display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .buy { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4); position: relative; } }
.buy__step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px var(--s-3); align-items: start; }
@media (min-width: 900px) { .buy__step { grid-template-columns: 1fr; gap: var(--s-3); } }
.buy__step h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.25; }
.buy__step p { color: var(--text-muted); font-size: 15px; grid-column: 2; }
@media (min-width: 900px) { .buy__step p { grid-column: 1; } }
.buy-note { margin-top: var(--s-4); font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); max-width: 70ch; }

.standard { display: grid; gap: var(--s-5); }
@media (min-width: 900px) { .standard { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-6); } }
.standard__title { max-width: 14ch; text-wrap: balance; }
.principles { display: grid; gap: var(--s-4) var(--s-5); }
@media (min-width: 640px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.principle { display: grid; gap: 8px; align-content: start; padding-top: var(--s-3); border-top: 1px solid var(--line-strong); }
.principle b { font-family: var(--font-mono); font-weight: 400; font-size: 12px; color: var(--violet-glow); }
.principle h3 { font-size: 20px; font-weight: 500; letter-spacing: -0.01em; }
.principle p { color: var(--text-muted); font-size: 15px; }

.faq { max-width: 880px; }
.faq details { border-top: 1px solid var(--line-strong); }
.faq details:last-of-type { border-bottom: 1px solid var(--line-strong); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); min-height: 64px; padding-block: 14px; cursor: pointer; font-size: clamp(18px, 2.4vw, 22px); letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform var(--dur-base) var(--ease); color: var(--text-muted); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .faq__a { padding: 0 0 var(--s-4); max-width: 68ch; color: var(--text-muted); font-size: 16px; }
.tg-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding-block: var(--s-5); border-top: 1px solid var(--line); }
.tg-strip p { font-size: clamp(22px, 3vw, 32px); letter-spacing: -0.02em; max-width: 24ch; line-height: 1.15; }

/* ---------- подвал ---------- */
.site-footer { margin-top: var(--s-6); padding-block: var(--s-6) var(--s-5); border-top: 1px solid var(--line); }
.site-footer__grid { display: grid; gap: var(--s-5) var(--s-4); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.site-footer__brand { grid-column: 1 / -1; }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.4fr repeat(4, minmax(0, 1fr)); } .site-footer__brand { grid-column: auto; } }
.site-footer h2 { color: var(--text-muted); margin-bottom: var(--s-2); }
.site-footer ul { display: grid; }
.site-footer li a { display: inline-flex; align-items: center; min-height: var(--tap); font-size: 15px; }
.site-footer li a:hover { color: var(--violet-glow); }
.site-footer__legal { margin-top: var(--s-5); max-width: 78ch; font-size: 12px; color: var(--text-muted); }
.site-footer__bar { display: flex; justify-content: space-between; gap: 12px; margin-top: var(--s-4); padding-top: var(--s-3); border-top: 1px solid var(--line); font-size: 12px; color: var(--text-muted); }

/* ---------- каталог ---------- */
.page-head { padding-block: var(--s-4) var(--s-4); display: grid; gap: var(--s-3); }
.page-head h1 { font-size: clamp(44px, 8vw, 104px); line-height: 1; letter-spacing: -0.04em; font-weight: 400; }
.page-head__meta { display: flex; flex-wrap: wrap; gap: 6px var(--s-3); font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.catalog-bar { display: grid; gap: var(--s-2); }
.catalog-bar .toolbar { align-items: stretch; }
.toolbar__row { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; width: 100%; }
.toolbar__row .input-wrap { flex: 1 1 240px; }
.toolbar__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); margin-right: 4px; }
.cat-results { margin-top: var(--s-4); }
.plist__thumb { width: 28px; flex: none; }
@media (max-width: 999.98px) { .plist__thumb { width: 24px; } }

/* ---------- карточка товара ---------- */
.pdp { display: grid; gap: var(--s-5); padding-top: var(--s-3); }
@media (min-width: 960px) { .pdp { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--s-6); align-items: start; } .pdp__media { position: sticky; top: 92px; } }
.pdp__vial { position: relative; aspect-ratio: 4 / 4.4; border-radius: var(--r-panel); overflow: hidden; background: radial-gradient(55% 50% at 50% 55%, rgba(112, 70, 163, 0.35), transparent 72%), var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 960px) { .pdp__vial { aspect-ratio: 1 / 1.02; max-height: 78svh; } }
.pdp__vial canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.pdp__vial canvas:active { cursor: grabbing; }
.pdp__vial .poster { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity var(--dur-slow) var(--ease); }
.pdp__vial .poster svg { width: 34%; }
.pdp__vial.is-live .poster { opacity: 0; pointer-events: none; }
.pdp__hint { position: absolute; left: 14px; bottom: 14px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; min-height: 32px; padding: 0 12px; border-radius: var(--r-pill); background: rgba(15, 13, 19, 0.7); box-shadow: inset 0 0 0 1px var(--line-strong); font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); pointer-events: none; }
.pdp__rot { position: absolute; right: 14px; bottom: 14px; z-index: 2; }
.pdp__info { display: grid; gap: var(--s-3); align-content: start; }
.pdp__title { font-size: clamp(44px, 6.5vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 400; overflow-wrap: anywhere; }
.pdp__name { color: var(--text-muted); margin-top: -6px; }
.pdp__form { font-size: 15px; color: var(--text-muted); }
.pdp__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pdp__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px 18px; font-variant-numeric: tabular-nums; }
.pdp__price b { font-weight: 400; font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.02em; }
.pdp__buy { display: flex; flex-wrap: nowrap; gap: var(--s-2); align-items: center; }
.pdp__buy .btn--primary { flex: 1 1 0; min-width: 0; }
.pdp__ruo { font-size: 13px; color: var(--text-muted); }
.pdp-sec { margin-top: var(--s-6); display: grid; gap: var(--s-4); }
@media (min-width: 900px) { .pdp-sec { margin-top: var(--s-7); grid-template-columns: minmax(0, 0.34fr) minmax(0, 1fr); gap: var(--s-6); } }
.pdp-sec > h2 { font-size: clamp(28px, 3.4vw, 44px); letter-spacing: -0.03em; font-weight: 400; line-height: 1.1; }
.pdp-sec__sub { margin-top: var(--s-2); font-size: 14px; color: var(--text-muted); max-width: 30ch; font-family: var(--font-body); letter-spacing: 0; }
.seq { margin-top: var(--s-4); display: grid; gap: var(--s-2); }
.seq__cap { font-size: 14px; color: var(--text-muted); }
.pdp-empty { display: grid; gap: var(--s-2); justify-items: start; padding: var(--s-4); border-radius: var(--r-cell); box-shadow: inset 0 0 0 1px var(--line); background: var(--bg-raised); max-width: 560px; }
.similar { display: grid; gap: var(--s-2); grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .similar { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- COA: дополнения ---------- */
.coa__demo { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: var(--r-pill); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--paper-muted); box-shadow: inset 0 0 0 1px var(--paper-line); }
.coa__chart { padding: 12px 10px 4px; border-radius: 16px; background: #fff; box-shadow: inset 0 0 0 1px var(--paper-line); }
.paper .data-table > div { border-color: var(--paper-line); }
.paper .data-table dt { color: var(--paper-muted); }

/* ---------- проверка партии ---------- */
.vhero { position: relative; isolation: isolate; text-align: center; padding-block: var(--s-6) var(--s-5); }
.vhero__bg { position: absolute; inset: 0 0 -40px; z-index: -1; pointer-events: none; opacity: 0.8; -webkit-mask-image: linear-gradient(#000 40%, transparent); mask-image: linear-gradient(#000 40%, transparent); }
.vhero__bg canvas { width: 100%; height: 100%; display: block; }
.vhero h1 { font-size: clamp(40px, 7vw, 88px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 400; margin-top: var(--s-3); text-wrap: balance; }
.vhero p.lead { margin: var(--s-3) auto 0; max-width: 52ch; color: var(--text-muted); }
.vform { margin: var(--s-5) auto 0; width: min(100%, 640px); display: grid; gap: 8px; text-align: left; }
.vform .input-row { align-items: stretch; flex-wrap: wrap; }
.vform .input-row .btn { height: 64px; flex: 1 1 100%; }
@media (min-width: 520px) { .vform .input-row { flex-wrap: nowrap; } .vform .input-row .btn { flex: none; } }
.vresult { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); margin-top: var(--s-5); }
.vcard { display: grid; gap: var(--s-4); padding: var(--s-4); border-radius: var(--r-panel); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); }
@media (min-width: 900px) { .vcard { grid-template-columns: 160px minmax(0, 1fr) minmax(0, 0.9fr); padding: var(--s-5); gap: var(--s-5); align-items: center; } }
.vcard__vial { width: 110px; justify-self: center; }
@media (min-width: 900px) { .vcard__vial { width: 130px; } }
.vcard__big { display: flex; align-items: baseline; gap: 6px; font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ok); line-height: 1; }
.vcard__big b { font-weight: 400; font-size: clamp(56px, 8vw, 80px); letter-spacing: -0.04em; }
.vcard__big span { font-size: 28px; }
.vcard__actions { display: grid; gap: 8px; margin-top: var(--s-3); }
.vcard__actions .btn { background: var(--text); color: var(--bg); }
.vcard__actions .btn--secondary { background: transparent; color: var(--text); }
.vnote { padding: 14px 18px; border-radius: var(--r-input); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 14px; color: var(--text-muted); }
.vmiss { display: grid; gap: var(--s-2); padding: var(--s-4); border-radius: var(--r-cell); background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--line); }
.vtable { overflow-x: auto; }
.vtable table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; font-variant-numeric: tabular-nums; min-width: 640px; }
.vtable th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); padding: 12px 10px 12px 0; border-bottom: 1px solid var(--line-strong); }
.vtable td { padding: 14px 10px 14px 0; border-bottom: 1px solid var(--line); }
.vtable tr.is-cur td { background: rgba(244, 240, 250, 0.04); }
.vtable td:last-child, .vtable th:last-child { text-align: right; padding-right: 0; }
.chip-s { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 1px var(--violet-glow); color: var(--violet-glow); font-size: 11px; }

/* ---------- диалоги: поиск, меню, подписка ---------- */
dialog.sheet-dialog { padding: 0; border: 0; margin: 0; width: 100%; max-width: none; max-height: 100vh; background: var(--bg); color: var(--text); box-shadow: inset 0 -1px 0 var(--line-strong); }
dialog.sheet-dialog::backdrop { background: rgba(15, 13, 19, 0.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
dialog.sheet-dialog--center { margin: auto; width: min(520px, calc(100vw - 32px)); border-radius: var(--r-panel); box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--bg-raised); padding: var(--s-4); }
.sheet { padding-block: var(--s-3) var(--s-5); }
.sheet__bar { display: flex; gap: var(--s-2); align-items: center; }
.search-res { margin-top: var(--s-2); display: grid; max-height: 60vh; overflow: auto; }
.search-res__item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: center; min-height: 64px; padding-block: 10px; border-top: 1px solid var(--line); }
.search-res__item:hover .search-res__code { color: var(--violet-glow); }
.search-res__code { font-size: 22px; letter-spacing: -0.01em; }
.search-res__item .mono { grid-column: 1; font-size: 12px; }
.search-res__item .status { grid-column: 2; grid-row: 1 / span 2; }
dialog.menu-dialog { padding: 0; border: 0; margin: 0; width: 100%; height: 100%; max-width: none; max-height: none; background: var(--bg); color: var(--text); }
.menu-dialog__bg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.55; }
.menu-dialog__in { position: relative; display: grid; align-content: start; gap: var(--s-5); padding: var(--s-3) max(16px, env(safe-area-inset-right)) var(--s-5) max(16px, env(safe-area-inset-left)); min-height: 100%; }
.menu-dialog__top { display: flex; justify-content: space-between; align-items: center; min-height: 52px; }
.menu-dialog__list a { display: flex; align-items: center; min-height: 64px; font-size: clamp(30px, 8vw, 44px); letter-spacing: -0.03em; border-bottom: 1px solid var(--line); }
.menu-dialog__list a[aria-current="page"] { color: var(--violet-glow); }
.menu-dialog__sub { display: flex; gap: var(--s-3); }
.menu-dialog__sub a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text-muted); }
.notify .row .btn { flex: 1 1 auto; }

/* ---------- тост и нижняя панель корзины ---------- */
.toast { position: fixed; z-index: 400; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: max-content; max-width: calc(100vw - 32px); padding: 12px 20px; border-radius: var(--r-pill); background: var(--paper); color: var(--paper-ink); font-size: 14px; text-align: center; opacity: 0; transform: translate(-50%, 12px); pointer-events: none; transition: opacity var(--dur-base) var(--ease), transform var(--dur-base) var(--ease); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
body.has-cart-bar .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
.cart-bar-wrap { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left)); }
@media (min-width: 768px) { .cart-bar-wrap { display: none !important; } }
body.has-cart-bar { padding-bottom: 84px; }
@media (min-width: 768px) { body.has-cart-bar { padding-bottom: 0; } }
dialog[open] ~ .toast { z-index: 400; }

@media (prefers-reduced-motion: reduce) {
  .ring__spin { animation: none; opacity: 0.35; }
}

.jrow__date, .jrow__who { display: none; color: var(--text-muted); }
@media (min-width: 900px) { .jrow__date, .jrow__who { display: block; } }

/* страница товара: мини-полоса доверия и мобильная панель (ТЗ 14.6) */
.pdp__trust { display: grid; gap: 8px; list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line); }
.pdp__trust li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); }
.pdp__trust li .icon { flex: none; color: var(--violet-glow); }
.pdp__trust b { font-weight: 400; color: var(--text); }
.pdp-bar { position: fixed; z-index: 45; left: 0; right: 0; bottom: 0; padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left)); background: rgba(15, 13, 19, 0.92); box-shadow: 0 -1px 0 var(--line-strong); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.pdp-bar[hidden] { display: none; }
.pdp-bar__in { display: flex; align-items: center; gap: 16px; }
.pdp-bar__p { display: grid; gap: 2px; min-width: 0; font-variant-numeric: tabular-nums; }
.pdp-bar__p b { font-weight: 400; font-size: 22px; line-height: 1.1; white-space: nowrap; }
.pdp-bar__p span { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pdp-bar .btn { flex: 1; min-height: 48px; }
body.has-pdp-bar { padding-bottom: 76px; }
body.has-pdp-bar .toast { bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) { .pdp-bar { display: none !important; } body.has-pdp-bar { padding-bottom: 0; } }
