/* =========================================================
   Джус — шоукейс мини-приложения MAX
   Страница-витрина + 4 темы экранов (переменные на .rail[data-theme])
   ========================================================= */
:root {
  --page-bg: #F6F1EA;
  --page-ink: #22160E;
  --page-ink2: #6B5646;
  --page-line: #E6DCD0;
  --page-card: #FFFFFF;
  --brand-orange: #F26B1D;
  --brand-red: #E2231A;
  --brand-green: #2DB34A;
  --brand-yellow: #F5B820;
  --focus: #1D6FE0;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page-bg); color: var(--page-ink);
  font: 16px/1.5 'Nunito Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  overflow-x: hidden; transition: background-color .3s ease;
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }

.demo-note { text-align: center; font-size: 12px; letter-spacing: .02em; color: var(--page-ink2); padding: 6px 16px; background: rgba(0,0,0,.04); border-bottom: 1px solid var(--page-line); }

.page-head { padding: 24px 0 8px; }
.head-row { display: flex; gap: 20px; align-items: center; }
.head-logo { width: 88px; height: 88px; border-radius: 22px; background: #fff; object-fit: contain; padding: 4px; box-shadow: 0 6px 20px rgba(194,65,12,.14); flex: none; }
h1 { font: 800 clamp(24px, 4vw, 38px)/1.15 'Rubik', sans-serif; margin: 0 0 8px; letter-spacing: -.01em; text-wrap: balance; }
.lead { margin: 0; color: var(--page-ink2); max-width: 70ch; }

.switch { padding-top: 16px; padding-bottom: 8px; }
.switch-list { display: flex; flex-wrap: wrap; gap: 8px; }
.switch-list [role=tab] {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px 8px 10px;
  border-radius: 999px; border: 1.5px solid var(--page-line); background: var(--page-card); line-height: 1.2; text-align: left;
  font-weight: 700; font-size: 15px; transition: border-color .2s, background-color .2s, color .2s, box-shadow .2s;
}
.switch-list [role=tab]:hover { border-color: #C9B8A6; }
.switch-list [role=tab][aria-selected=true] { background: var(--page-ink); color: #fff; border-color: var(--page-ink); box-shadow: 0 6px 16px rgba(0,0,0,.15); }
.sw { display: inline-flex; }
.sw i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; margin-left: -6px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.sw i:first-child { margin-left: 0; }

.stage { padding: 16px 0 24px; transition: background-color .3s ease; }
.stage-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 12px; }
.stage-head h2 { font: 700 22px/1.2 'Rubik', sans-serif; margin: 0 0 4px; }
.v-desc { margin: 0; color: var(--page-ink2); max-width: 75ch; font-size: 15px; }
.rail-ctrl { display: flex; gap: 8px; flex: none; }
.rail-btn { width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--page-line); background: var(--page-card); display: grid; place-items: center; transition: background-color .2s; }
.rail-btn:hover { background: #fff7ef; }
.rail-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* лента телефонов: на компьютере — горизонтальная прокрутка */
.rail {
  display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(16px, calc((100vw - 1240px) / 2 + 16px));
  padding: 8px max(16px, calc((100vw - 1240px) / 2 + 16px)) 24px; scrollbar-width: thin;
}
.rail:focus-visible { outline-offset: -3px; }
.shot { margin: 0; flex: 0 0 375px; scroll-snap-align: start; }
.shot figcaption { display: flex; align-items: center; gap: 10px; font: 600 15px/1.3 'Rubik', sans-serif; margin: 0 0 12px 4px; }
.num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--page-ink); color: #fff; font-size: 13px; }

.page-foot { padding: 8px 16px 40px; color: var(--page-ink2); font-size: 14px; }
.page-foot p { margin: 0; max-width: 80ch; }

/* тёмный вариант — тёмная сцена */
body[data-v=dark] { --page-bg: #101014; --page-ink: #F4F1EC; --page-ink2: #B5AFBF; --page-line: #2C2B35; --page-card: #1A1A21; }
body[data-v=dark] .demo-note { background: rgba(255,255,255,.05); }
body[data-v=dark] .switch-list [role=tab][aria-selected=true] { background: #F4F1EC; color: #101014; border-color: #F4F1EC; }
body[data-v=dark] .num { background: #FF7A1A; color: #160A04; }
body[data-v=dark] .rail-btn:hover { background: #24232c; }
body[data-v=minimal] { --page-bg: #F3F3F1; --page-line: #E2E2DE; }
body[data-v=play] { --page-bg: #FDEBDD; }

/* мобильный: телефоны идут вертикально по одному */
@media (max-width: 860px) {
  .head-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .head-logo { width: 72px; height: 72px; }
  .rail-ctrl { display: none; }
  .rail { flex-direction: column; align-items: center; overflow: visible; scroll-snap-type: none; padding: 8px 16px 16px; gap: 36px; }
  .shot { flex: none; width: 100%; max-width: 375px; }
  .switch-list [role=tab] { flex: 1 1 calc(50% - 8px); justify-content: flex-start; }
}

/* ================= телефон ================= */
.phone {
  width: 100%; max-width: 375px; height: 760px; border-radius: 52px; padding: 10px;
  background: linear-gradient(145deg, #2a2a30, #0d0d10); box-shadow: 0 30px 60px -20px rgba(40,20,5,.35), 0 0 0 1.5px #3a3a42 inset;
}
.screen {
  --pad: 16px;
  position: relative; height: 100%; border-radius: 42px; overflow: hidden; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font-family: var(--font-b); font-size: 15px; line-height: 1.45;
}
.screen h2, .screen h3, .screen h4 { font-family: var(--font-h); margin: 0; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-f { fill: currentColor; stroke: none; }
.ic-xs { width: 15px; height: 15px; }

.sbar { height: 40px; flex: none; display: flex; justify-content: space-between; align-items: center; padding: 6px 28px 0 32px; font: 600 14px/1 system-ui, sans-serif; color: var(--header-ink); background: var(--header-bg); }
.sbar-r { display: flex; gap: 6px; align-items: center; }
.sbar-r svg { height: 11px; width: auto; fill: currentColor; }
.maxbar { flex: none; display: flex; align-items: center; gap: 6px; padding: 2px 8px 8px; background: var(--header-bg); color: var(--header-ink); border-bottom: var(--header-line, 0); }
.mb-btn { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; color: inherit; }
.mb-btn:hover { background: rgba(127,127,127,.15); }
.mb-title { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.mb-title > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.mb-title b { font: 700 15px/1.2 var(--font-h); }
.mb-title small { font-size: 12px; opacity: .85; }
.mb-ava { width: 32px; height: 32px; border-radius: 50%; background: #fff; overflow: hidden; flex: none; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.mb-ava img { width: 100%; height: 100%; object-fit: contain; }

.content { flex: 1; overflow-y: auto; overflow-x: hidden; padding: 12px var(--pad) 16px; scrollbar-width: none; }
.content::-webkit-scrollbar { display: none; }
.content.pb-cta { padding-bottom: 20px; }

/* нижняя навигация */
.tabbar { flex: none; display: flex; justify-content: space-around; padding: 6px 6px 18px; background: var(--nav-bg); border-top: 1px solid var(--line); }
.tb { position: relative; flex: 1; min-height: 48px; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; font-weight: 600; color: var(--ink2); border-radius: 12px; padding: 4px 0; transition: color .2s; }
.tb.on { color: var(--tab-on); }
.tb .badge { position: absolute; top: 0; left: 50%; margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sale-bg); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.tb .badge:empty, .tb .badge[data-cartbadge="0"] { display: none; }

.ctabar { flex: none; display: flex; gap: 10px; align-items: center; padding: 10px var(--pad) 22px; background: var(--nav-bg); border-top: 1px solid var(--line); }
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 20px; border: 0;
  border-radius: var(--r-btn); background: var(--cta); color: var(--cta-ink); font: 700 16px/1 var(--font-h); width: 100%;
  box-shadow: var(--cta-shadow, none); transition: transform .15s ease, filter .15s ease;
}
.cta:hover { filter: brightness(1.06); }
.cta:active { transform: scale(.98); }
.cta.grow { flex: 1; }
.cta.ghost { background: transparent; color: var(--accent-ink); border: 2px solid var(--line-strong); box-shadow: none; margin-top: 16px; }

.icon-btn { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface2); color: var(--ink); display: grid; place-items: center; flex: none; }
.icon-btn.glass { background: rgba(255,255,255,.85); color: #1b1b1b; backdrop-filter: blur(6px); width: 40px; height: 40px; }
.link { border: 0; background: none; color: var(--accent-ink); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 2px; padding: 8px 0; min-height: 40px; }
.link .ic { width: 16px; height: 16px; }
.muted { color: var(--ink2); }
.small { font-size: 13px; margin: 2px 0 10px; }
.lbl { font-size: 13px; font-weight: 700; color: var(--ink2); margin: 14px 0 8px; text-transform: var(--lbl-tt, none); letter-spacing: var(--lbl-ls, 0); }

/* поиск */
.search { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 14px; border-radius: var(--r-field); background: var(--field); border: var(--field-border); color: var(--ink2); text-align: left; font-size: 15px; }
.search span { flex: 1; }
.search .typed { color: var(--ink); font-weight: 600; }
.search.sm { min-height: 44px; margin: 8px 0 10px; }
.search .clear { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--surface2); display: grid; place-items: center; color: var(--ink2); }
.search .clear .ic { width: 16px; height: 16px; }
.ic-r { color: var(--accent-ink); }

/* баннер */
.banner { position: relative; margin: 14px 0 6px; border-radius: var(--r-lg); padding: 18px 16px 26px; min-height: 172px; display: flex; overflow: hidden; background: var(--banner-bg); color: var(--banner-ink); box-shadow: var(--shadow); border: var(--banner-border, 0); }
.bn-txt { position: relative; z-index: 1; width: 62%; }
.bn-kicker { display: inline-block; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--kicker-bg); color: var(--kicker-ink); letter-spacing: .02em; }
.banner h3 { font-size: 24px; line-height: 1.1; margin: 10px 0 6px; font-weight: 800; }
.banner p { margin: 0 0 12px; font-size: 13px; line-height: 1.35; opacity: .95; }
.bn-cta { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--bn-cta-bg); color: var(--bn-cta-ink); font-weight: 800; font-size: 14px; }
.bn-cta .ic { width: 16px; height: 16px; }
.bn-art { position: absolute; right: -8px; bottom: 6px; width: 150px; height: 150px; }
.bn-art::before { content: ''; position: absolute; inset: 14px; border-radius: 50%; background: var(--bn-halo); }
.bn-art .art { position: relative; width: 100%; height: 100%; }
.dots { position: absolute; left: 16px; bottom: 10px; display: flex; gap: 5px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: currentColor; opacity: .4; }
.dots i.on { width: 18px; opacity: 1; }

.sec-h { display: flex; justify-content: space-between; align-items: center; margin: 14px 0 6px; }
.sec-h h3 { font-size: 18px; font-weight: 700; }

/* категории */
.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.cat { border: 0; background: none; padding: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; }
.cat-art { width: 100%; aspect-ratio: 1; border-radius: var(--r-md); display: grid; place-items: center; background: var(--cat-bg); box-shadow: var(--cat-shadow, none); border: var(--cat-border, 0); overflow: hidden; }
.cat-art .art { width: 88%; height: 88%; }
.cat-l { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.cat-n { display: none; font-size: 11px; color: var(--ink2); }
.emo { font-size: 30px; line-height: 1; }

/* карточки товара */
.hscroll { display: flex; gap: 10px; overflow-x: auto; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad) 8px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .pcard { flex: 0 0 148px; scroll-snap-align: start; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pcard { background: var(--surface); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--card-shadow); border: var(--card-border); display: flex; flex-direction: column; min-width: 0; }
.pc-art { position: relative; aspect-ratio: 1 / .9; display: grid; place-items: center; background: var(--art-bg); }
.pc-art .art { width: 78%; height: 88%; }
.pcard.out .pc-art .art { filter: grayscale(.85); opacity: .6; }
.sale, .ptag { position: absolute; left: 8px; top: 8px; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; background: var(--sale-bg); color: #fff; }
.ptag { background: var(--tag-bg); color: var(--tag-ink); }
.sale.inline, .ptag.inline { position: static; display: inline-block; }
.fav { position: absolute; right: 4px; top: 4px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--fav); display: grid; place-items: center; }
.fav .ic { width: 19px; height: 19px; }
.pc-body { padding: 8px 10px 10px; display: flex; flex-direction: column; flex: 1; }
.pcard h4 { font-size: 14px; line-height: 1.25; font-weight: 700; min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-meta { margin: 2px 0 6px; font-size: 12px; color: var(--ink2); }
.pc-meta .low { color: var(--warn); }
.pc-meta .no { color: var(--ink2); font-weight: 700; }
.pc-row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.price { font: 800 15px/1.1 var(--font-h); color: var(--price); display: flex; flex-direction: column; }
.price s, .p-price s { font: 600 12px/1.2 var(--font-b); color: var(--ink2); }
.add { width: 40px; height: 40px; border-radius: var(--r-add); border: 0; background: var(--add-bg); color: var(--add-ink); display: grid; place-items: center; flex: none; transition: transform .15s ease, background-color .2s; box-shadow: var(--add-shadow, none); }
.add:disabled { background: var(--surface2); color: var(--ink2); box-shadow: none; }
.add.pop { transform: scale(1.18); }
.add.sm { width: 36px; height: 36px; }

.perks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.perks div { display: flex; gap: 8px; align-items: center; font-size: 12.5px; font-weight: 600; line-height: 1.3; padding: 10px; border-radius: var(--r-sm); background: var(--surface2); }
.perks .ic { color: var(--ok); }

/* каталог */
.crumbs { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--ink2); }
.crumbs .icon-btn { width: 40px; height: 40px; margin-right: 4px; }
.crumbs b { color: var(--ink); font-size: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)); padding: 2px var(--pad); }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 16px; border-radius: var(--r-chip); border: var(--chip-border); background: var(--chip-bg); color: var(--ink); font-weight: 700; font-size: 14px; transition: background-color .2s, color .2s, border-color .2s; }
.chip.sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.chip.on { background: var(--chip-on-bg); color: var(--chip-on-ink); border-color: var(--chip-on-border, transparent); }
.chip.static { cursor: default; min-height: 30px; font-weight: 600; }
.filters { display: flex; gap: 8px; align-items: center; margin: 10px calc(-1 * var(--pad)) 0; padding: 2px var(--pad); overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.fbtn { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; border-radius: var(--r-chip); border: var(--chip-border); background: var(--surface); font-weight: 700; font-size: 13px; }
.fbtn .ic { width: 17px; height: 17px; }
.fcount { min-width: 20px; height: 20px; border-radius: 10px; background: var(--chip-on-bg); color: var(--chip-on-ink); font-size: 11px; line-height: 20px; text-align: center; }
.result-row { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--ink2); margin: 6px 0 4px; }

/* фильтр-шторка */
.sheet { position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,0); pointer-events: none; transition: background-color .25s ease; display: flex; align-items: flex-end; }
.sheet.open { background: rgba(0,0,0,.45); pointer-events: auto; }
.sheet-card { width: 100%; background: var(--surface); color: var(--ink); border-radius: 26px 26px 0 0; padding: 14px var(--pad) 26px; transform: translateY(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.sheet.open .sheet-card { transform: none; }
.sheet-h { display: flex; justify-content: space-between; align-items: center; font: 700 18px var(--font-h); }
.range { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; }
.rtrack { position: relative; flex: 1; height: 6px; border-radius: 3px; background: var(--surface2); }
.rtrack i { position: absolute; top: 0; bottom: 0; background: var(--accent); border-radius: 3px; }
.rtrack b { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: #fff; border: 3px solid var(--accent); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-weight: 600; font-size: 14px; position: relative; cursor: pointer; }
.switch-row input, .mini-sw input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-row i, .mini-sw i { flex: none; width: 46px; height: 28px; border-radius: 14px; background: var(--surface2); position: relative; transition: background-color .2s; box-shadow: inset 0 0 0 1px var(--line); }
.switch-row i::after, .mini-sw i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch-row input:checked + i, .mini-sw input:checked + i { background: var(--ok); box-shadow: none; }
.switch-row input:checked + i::after, .mini-sw input:checked + i::after { transform: translateX(18px); }
.switch-row input:focus-visible + i, .mini-sw input:focus-visible + i { outline: 3px solid var(--focus); outline-offset: 2px; }
.sheet .cta { margin-top: 12px; }

/* карточка товара — галерея */
.content:has(.gallery) { padding-top: 0; }
.gallery { margin: 0 calc(-1 * var(--pad)); }
.g-main { position: relative; height: 290px; background: var(--surface2); overflow: hidden; }
.g-slot { position: absolute; inset: 0; }
.g-slot[hidden] { display: none; }
.player { position: absolute; inset: 0; background: #000; }
.vframe { width: 100%; height: 100%; }
.player.playing .vf-float1 { animation: floaty 2.4s ease-in-out infinite; }
.player.playing .vf-float2 { animation: floaty 3s ease-in-out infinite reverse; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.vbadge { position: absolute; left: 12px; bottom: 54px; display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; }
.vbadge .ic { width: 15px; height: 15px; }
.bigplay { position: absolute; left: 50%; top: 46%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: #E2231A; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); transition: opacity .25s, transform .2s; }
.bigplay .ic { width: 32px; height: 32px; margin-left: 4px; }
.bigplay:hover { transform: scale(1.06); }
.i-pause { display: none; }
.player.playing .i-play { display: none; }
.player.playing .i-pause { display: block; margin-left: 0; }
.player.playing .bigplay { opacity: 0; }
.player.playing:hover .bigplay, .player.playing .bigplay:focus-visible { opacity: 1; }
.vbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 18px 6px 4px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; }
.vb-btn { width: 40px; height: 40px; border: 0; background: none; color: #fff; display: grid; place-items: center; border-radius: 50%; }
.vb-btn .ic { width: 18px; height: 18px; }
.vtime { font: 700 12px/1 system-ui, sans-serif; font-variant-numeric: tabular-nums; min-width: 28px; }
.vprog { flex: 1; height: 4px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.vprog i { display: block; height: 100%; width: 0; background: #fff; border-radius: 2px; }
.player.playing .vprog i { animation: vprog 24s linear forwards; }
.player.ended .vprog i { width: 100%; }
@keyframes vprog { from { width: 0; } to { width: 100%; } }
.g-top { position: absolute; left: 12px; right: 12px; top: 10px; display: flex; gap: 8px; align-items: center; }
.g-sp { flex: 1; }
.g-count { padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.g-dots { position: absolute; left: 0; right: 0; bottom: 8px; display: none; justify-content: center; gap: 5px; }
.g-slot:not([data-slot="0"]):not([hidden]) ~ .g-dots { display: flex; }
.g-dots i { width: 7px; height: 7px; border-radius: 4px; background: rgba(0,0,0,.25); transition: width .2s; }
.g-dots i.on { width: 18px; background: var(--accent); }
.ph { position: absolute; inset: 0; display: grid; place-items: center; background: var(--art-bg); }
.ph .art { height: 82%; width: auto; }
.ph-b .art { height: 70%; }
.ph-fr { position: absolute; inset: 0; }
.ph-fr svg { position: absolute; width: 64px; height: 64px; }
.ph-fr svg:nth-child(1) { left: 8%; top: 18%; } .ph-fr svg:nth-child(2) { right: 9%; top: 22%; }
.ph-fr svg:nth-child(3) { left: 14%; bottom: 12%; } .ph-fr svg:nth-child(4) { right: 12%; bottom: 14%; }
.ph-duo { display: flex; align-items: flex-end; height: 74%; }
.ph-duo .art { height: 100%; } .ph-duo .art + .art { height: 80%; margin-left: -30px; }
.thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 10px var(--pad) 0; }
.thumb { position: relative; aspect-ratio: 1; padding: 4px; border-radius: var(--r-sm); background: var(--art-bg); border: 2px solid transparent; display: grid; place-items: center; transition: border-color .2s; }
.thumb .art { width: 100%; height: 100%; }
.thumb.on { border-color: var(--accent); }
.t-play { position: absolute; inset: 0; margin: auto; width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.6); color: #fff; display: grid; place-items: center; }
.t-play .ic { width: 14px; height: 14px; margin-left: 2px; }
.t-play.sm { width: 26px; height: 26px; }
.t-dur { position: absolute; right: 4px; bottom: 4px; font-size: 10px; font-weight: 800; color: #fff; background: rgba(0,0,0,.6); padding: 1px 5px; border-radius: 6px; }

.pinfo { padding-top: 12px; }
.p-tags { display: flex; align-items: center; gap: 10px; }
.rate { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: 14px; }
.rate .ic { width: 16px; height: 16px; color: var(--star); }
.rate small { color: var(--ink2); font-weight: 600; }
.p-name { font-size: 22px; line-height: 1.2; margin: 8px 0 6px !important; font-weight: 800; }
.p-price { display: flex; align-items: baseline; gap: 10px; }
.p-price b { font: 800 26px/1 var(--font-h); color: var(--price); }
.p-price s { font-size: 15px; }
.p-price .sale { align-self: center; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: var(--r-field); background: var(--surface2); }
.seg button { flex: 1; min-height: 44px; border: 0; border-radius: calc(var(--r-field) - 3px); background: transparent; font-weight: 700; font-size: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; color: var(--ink2); transition: background-color .2s, color .2s; }
.seg button small { font-size: 11px; font-weight: 600; }
.seg button.on { background: var(--seg-on-bg); color: var(--seg-on-ink); box-shadow: var(--seg-shadow, 0 1px 4px rgba(0,0,0,.12)); }
.seg.mb { margin-bottom: 10px; }
.stock { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; }
.st-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 20%, transparent); }
.st-bar { margin-left: auto; width: 80px; height: 6px; border-radius: 3px; background: var(--surface2); overflow: hidden; }
.st-bar i { display: block; height: 100%; background: var(--ok); }
.deliv-note { display: flex; gap: 8px; align-items: center; margin-top: 8px; font-size: 14px; color: var(--ink2); }
.deliv-note .ic { width: 18px; height: 18px; color: var(--accent-ink); }
.p-desc { margin: 12px 0 10px; font-size: 14.5px; line-height: 1.55; }
.comp { gap: 6px; }
.nutri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.nutri div { padding: 10px 8px; border-radius: var(--r-sm); background: var(--surface2); display: flex; flex-direction: column; align-items: center; text-align: center; }
.nutri b { font: 800 15px/1.2 var(--font-h); }
.nutri span { font-size: 11.5px; color: var(--ink2); }
.stepper { display: flex; align-items: center; background: var(--surface2); border-radius: var(--r-btn); flex: none; }
.stepper button { width: 44px; height: 52px; border: 0; background: none; display: grid; place-items: center; color: var(--ink); border-radius: var(--r-btn); }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.stepper.sm button { width: 38px; height: 38px; }
.stepper.sm .ic { width: 16px; height: 16px; }

/* корзина */
.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.scr-title { font-size: 24px; font-weight: 800; }
.clist { display: flex; flex-direction: column; gap: 10px; }
.citem { display: flex; gap: 10px; padding: 10px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--card-shadow); border: var(--card-border); position: relative; }
.ci-art { width: 76px; height: 76px; border-radius: var(--r-sm); background: var(--art-bg); display: grid; place-items: center; flex: none; }
.ci-art .art { width: 86%; height: 86%; }
.ci-mid { flex: 1; min-width: 0; }
.ci-mid h4 { font-size: 14px; line-height: 1.25; padding-right: 30px; }
.ci-mid p { margin: 2px 0 4px; font-size: 12.5px; color: var(--ink2); }
.ci-row { display: flex; align-items: center; justify-content: space-between; }
.ci-sum { font: 800 16px var(--font-h); font-variant-numeric: tabular-nums; }
.ci-del { position: absolute; right: 2px; top: 2px; width: 40px; height: 40px; background: transparent; color: var(--ink2); }
.ci-del .ic { width: 18px; height: 18px; }
.promo { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 4px 12px; border-radius: var(--r-sm); border: 1.5px dashed var(--ok); background: color-mix(in srgb, var(--ok) 9%, transparent); font-size: 14px; }
.promo .ic { color: var(--ok); }
.promo span { flex: 1; }
.recs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rec { position: relative; padding: 6px; border-radius: var(--r-sm); background: var(--surface); border: var(--card-border); box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 4px; }
.rec-art { aspect-ratio: 1; border-radius: calc(var(--r-sm) - 4px); background: var(--art-bg); display: grid; place-items: center; }
.rec-art .art { width: 80%; height: 80%; }
.rec span { font: 800 13px var(--font-h); padding: 2px 4px 4px; }
.rec .add { position: absolute; right: 6px; bottom: 6px; }
.summary { margin-top: 14px; padding: 12px 14px; border-radius: var(--r-md); background: var(--surface); border: var(--card-border); box-shadow: var(--card-shadow); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.summary div { display: flex; justify-content: space-between; gap: 10px; }
.summary b { font-variant-numeric: tabular-nums; }
.summary .neg { color: var(--ok-ink); }
.summary .total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; font: 800 17px var(--font-h); }

/* оформление */
.steps { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--ink2); margin-bottom: 4px; }
.steps span { display: inline-flex; align-items: center; gap: 3px; white-space: nowrap; }
.steps .done { color: var(--ok-ink); }
.steps .done .ic { width: 14px; height: 14px; }
.steps .now { color: var(--ink); }
.steps i { flex: 1; height: 2px; background: var(--line); border-radius: 1px; min-width: 8px; }
.block { margin-top: 12px; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: var(--card-border); box-shadow: var(--card-shadow); }
.b-h { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; margin-bottom: 10px !important; }
.b-h .ic { color: var(--accent-ink); width: 19px; height: 19px; }
.fields { display: grid; gap: 8px; }
.field { display: flex; flex-direction: column; gap: 2px; padding: 6px 12px; border-radius: var(--r-field); background: var(--field); border: var(--field-border); }
.field span { font-size: 12px; color: var(--ink2); font-weight: 600; }
.field input { border: 0; background: none; font: 600 15px var(--font-b); color: var(--ink); padding: 0; outline: none; min-width: 0; }
.dlist, .paylist { display: flex; flex-direction: column; gap: 8px; }
.dopt, .popt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; min-height: 60px; text-align: left; border-radius: var(--r-sm); background: var(--opt-bg); border: 2px solid var(--line); transition: border-color .2s, background-color .2s; }
.dopt.on, .popt.on { border-color: var(--accent); background: var(--opt-on-bg); }
.mono { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font: 800 14px/1 var(--font-h); flex: none; }
.m-cdek { background: #1FA05A; color: #fff; }
.m-yandex { background: #FFCC00; color: #1b1b1b; }
.m-ozon { background: #005BFF; color: #fff; }
.d-mid { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.d-mid b { font-size: 14.5px; }
.d-mid small, .d-r small { font-size: 12px; color: var(--ink2); }
.d-r { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.d-r b { font: 800 14.5px var(--font-h); }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; position: relative; transition: border-color .2s; }
.on > .radio { border-color: var(--accent); }
.on > .radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.dopt .radio { order: -1; }
.pvz { margin-top: 10px; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--line); }
.map { width: 100%; height: 86px; }
.m-bg { fill: var(--map-bg); }
.m-road { stroke: var(--map-road); stroke-width: 6; fill: none; }
.m-river { stroke: var(--map-water); stroke-width: 10; fill: none; opacity: .7; }
.m-pin { fill: var(--accent); } .m-pin2 { fill: var(--ink2); opacity: .5; }
.pvz-row { display: flex; gap: 8px; align-items: center; padding: 6px 10px; font-size: 13px; background: var(--surface); }
.pvz-row > .ic { color: var(--accent-ink); width: 18px; height: 18px; }
.pvz-row div { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.pvz-row small { color: var(--ink2); }
.ic-ok { color: var(--ok); }
.paysub { display: flex; gap: 8px; padding-left: 34px; }
.paysub[hidden] { display: none; }

/* заказ оформлен */
.ok-hero { text-align: center; padding: 8px 0 4px; }
.ok-badge { width: 76px; height: 76px; border-radius: 50%; margin: 6px auto 12px; display: grid; place-items: center; background: var(--ok-badge); color: #fff; box-shadow: 0 0 0 10px color-mix(in srgb, var(--ok) 16%, transparent); animation: pop .5s cubic-bezier(.34,1.56,.64,1) both; }
.ok-badge .ic { width: 38px; height: 38px; stroke-width: 3; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.ok-hero h2 { font-size: 22px; font-weight: 800; }
.ok-hero p { margin: 4px 0 0; color: var(--ink2); font-size: 14px; }
.track { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 10px 8px 10px 14px; border-radius: var(--r-md); background: var(--track-bg); color: var(--track-ink); }
.track div { flex: 1; display: flex; flex-direction: column; }
.track small { font-size: 12px; opacity: .9; }
.track b { font: 800 19px var(--font-h); letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.track .icon-btn { background: rgba(255,255,255,.2); color: inherit; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; display: flex; gap: 12px; padding-bottom: 12px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:not(:last-child)::before { content: ''; position: absolute; left: 11px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.timeline li.done:not(:last-child)::before { background: var(--ok); }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--line-strong); background: var(--surface); }
.tl-dot .ic { width: 14px; height: 14px; stroke-width: 3; }
.done .tl-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.now .tl-dot { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.now .tl-dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(.6); opacity: .6; } }
.timeline div { display: flex; flex-direction: column; line-height: 1.3; }
.timeline b { font-size: 14.5px; }
.timeline li:not(.done):not(.now) b { color: var(--ink2); font-weight: 600; }
.timeline small { font-size: 12.5px; color: var(--ink2); }
.hist { display: flex; flex-direction: column; gap: 8px; }
.hrow { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; min-height: 56px; border-radius: var(--r-sm); background: var(--surface); border: var(--card-border); box-shadow: var(--card-shadow); text-align: left; }
.hrow > span:first-child { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.hrow small { font-size: 12.5px; color: var(--ink2); }
.hrow > .ic { color: var(--ink2); }
.status, .stock-pill { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.s-way { background: var(--st-way-bg); color: var(--st-way-ink); }
.s-ok { background: var(--st-ok-bg); color: var(--st-ok-ink); }
.s-paid { background: var(--st-ok-bg); color: var(--st-ok-ink); }
.s-new { background: var(--st-new-bg); color: var(--st-new-ink); }
.s-cancel { background: var(--surface2); color: var(--ink2); }

/* админка */
.role { font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: var(--surface2); color: var(--ink2); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.kpi { padding: 10px; border-radius: var(--r-sm); background: var(--surface); border: var(--card-border); box-shadow: var(--card-shadow); display: flex; flex-direction: column; min-width: 0; }
.kpi small { font-size: 11.5px; color: var(--ink2); }
.kpi b { font: 800 15px/1.3 var(--font-h); white-space: nowrap; }
.up { font-size: 12px; font-weight: 800; color: var(--ok-ink); }
.chart { margin: 10px 0 0; padding: 12px 12px 8px; border-radius: var(--r-md); background: var(--surface); border: var(--card-border); box-shadow: var(--card-shadow); }
.chart svg { width: 100%; height: auto; overflow: visible; }
.ch-grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 4; }
.ch-line { fill: none; stroke: var(--chart); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ch-dot { fill: var(--surface); stroke: var(--chart); stroke-width: 2.5; }
.ch-s1 { stop-color: var(--chart); stop-opacity: .28; }
.ch-s2 { stop-color: var(--chart); stop-opacity: 0; }
.ch-lbl { font: 600 10px var(--font-b); fill: var(--ink2); }
.chart figcaption { font-size: 12px; color: var(--ink2); margin-top: 2px; }
.atabs { display: flex; gap: 4px; margin: 12px calc(-1 * var(--pad)) 10px; padding: 0 var(--pad); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.atabs button { position: relative; flex: none; min-height: 44px; padding: 0 10px; border: 0; background: none; font-weight: 700; font-size: 14px; color: var(--ink2); display: inline-flex; align-items: center; gap: 4px; }
.atabs button.on { color: var(--ink); }
.atabs button.on::after { content: ''; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.dot-n { min-width: 18px; height: 18px; border-radius: 9px; background: var(--sale-bg); color: #fff; font-size: 11px; line-height: 18px; text-align: center; }
.apanel[hidden] { display: none; }
.abtns { display: flex; gap: 8px; margin-bottom: 10px; }
.abtn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: var(--r-sm); border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; font-size: 14px; }
.abtn.pri { background: var(--cta); color: var(--cta-ink); border-color: transparent; }
.media-up { padding: 10px; border-radius: var(--r-md); border: 2px dashed var(--line-strong); background: var(--surface); margin-bottom: 10px; }
.mu-h { display: flex; flex-direction: column; line-height: 1.3; margin-bottom: 8px; }
.mu-h b { font-size: 14px; }
.mu-h small, .mu-note { font-size: 12px; color: var(--ink2); }
.mu-note { margin: 6px 0 0; }
.mu-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.mu-th { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); background: var(--art-bg); display: grid; place-items: center; padding: 4px; }
.mu-th:first-child { box-shadow: 0 0 0 2px var(--accent); }
.mu-th .art { width: 100%; height: 100%; }
.mu-add { aspect-ratio: 1; border-radius: var(--r-sm); border: 0; background: var(--surface2); color: var(--accent-ink); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.mu-add small { font-size: 11px; font-weight: 700; }
.alist { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.arow { display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-height: 56px; border-radius: var(--r-sm); background: var(--surface); border: var(--card-border); box-shadow: var(--card-shadow); }
.ar-art { width: 40px; height: 40px; border-radius: 10px; background: var(--art-bg); display: grid; place-items: center; flex: none; }
.ar-art .art { width: 90%; height: 90%; }
.ar-mid { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.ar-mid b { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-mid small { font-size: 12px; color: var(--ink2); }
.arow > .ic { color: var(--ink2); }
.mini-sw { position: relative; cursor: pointer; display: block; }
.mini-sw i { width: 40px; height: 24px; }
.mini-sw i::after { width: 18px; height: 18px; }
.mini-sw input:checked + i::after { transform: translateX(16px); }
.tree { display: flex; flex-direction: column; gap: 4px; }
.tree-n { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); background: var(--surface); border: var(--card-border); box-shadow: var(--card-shadow); font-size: 14px; }
.tree-n.sub { margin-left: 22px; font-weight: 600; }
.tree-n .ic { color: var(--accent-ink); }
.tree-n small { margin-left: auto; color: var(--ink2); font-weight: 700; }
.post { padding: 12px; border-radius: var(--r-md); background: var(--surface); border: var(--card-border); box-shadow: var(--card-shadow); }
.post-h { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.post-h .ic { color: var(--accent-ink); }
.post-body { display: flex; gap: 10px; margin: 10px 0 4px; padding: 10px; border-radius: var(--r-sm); background: var(--surface2); font-size: 13.5px; }
.post-body p { margin: 0; }
.post-art { width: 64px; height: 64px; border-radius: 10px; background: var(--art-bg); flex: none; display: grid; place-items: center; }
.post-art .art { width: 90%; height: 90%; }

.toast { position: absolute; left: 50%; bottom: 96px; transform: translate(-50%, 20px); z-index: 8; padding: 10px 16px; border-radius: 999px; background: rgba(20,20,20,.92); color: #fff; font-size: 13.5px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============ Темы ============ */
.rail [style*="--t1"] { --art-bg: linear-gradient(160deg, color-mix(in srgb, var(--t1) 30%, #fff), color-mix(in srgb, var(--t2) 22%, #fff)); }
.rail[data-theme=minimal] [style*="--t1"] { --art-bg: #F6F6F5; }
.rail[data-theme=dark] [style*="--t1"] { --art-bg: radial-gradient(70% 70% at 50% 60%, color-mix(in srgb, var(--t2) 38%, transparent), transparent 75%), #1A1A22; }
.rail[data-theme=play] [style*="--t1"] { --art-bg: linear-gradient(160deg, color-mix(in srgb, var(--t1) 34%, #fff), color-mix(in srgb, var(--t2) 26%, #fff)); }

/* 1. Сочный */
.rail[data-theme=juicy] {
  --font-h: 'Rubik', sans-serif; --font-b: 'Nunito Sans', sans-serif;
  --bg: #FFF7EE; --surface: #FFFFFF; --surface2: #FFEBD8; --ink: #2B1608; --ink2: #765440; --line: #F3DCC6; --line-strong: #E5C2A2;
  --accent: #E8590C; --accent-ink: #C2410C; --ok: #2DB34A; --ok-ink: #1E7B33; --ok-badge: #2DB34A; --warn: #C2410C; --star: #F5B820;
  --header-bg: linear-gradient(100deg, #F26B1D, #E2231A); --header-ink: #fff;
  --nav-bg: #FFFFFF; --tab-on: #D9480F;
  --cta: linear-gradient(100deg, #E8590C, #D21F17); --cta-ink: #fff; --cta-shadow: 0 8px 18px -6px rgba(210,31,23,.55);
  --r-lg: 24px; --r-md: 20px; --r-sm: 14px; --r-btn: 16px; --r-field: 14px; --r-chip: 999px; --r-add: 12px;
  --field: #FFFFFF; --field-border: 1.5px solid #F3DCC6;
  --shadow: 0 10px 24px -10px rgba(226,35,26,.45); --card-shadow: 0 4px 14px -6px rgba(194,65,12,.25); --card-border: 0;
  --banner-bg: linear-gradient(120deg, #FF8A1F 0%, #F2551D 45%, #E2231A 100%); --banner-ink: #fff;
  --kicker-bg: #F5B820; --kicker-ink: #3A1F05; --bn-cta-bg: #fff; --bn-cta-ink: #C2410C; --bn-halo: radial-gradient(#FFE07A, rgba(255,224,122,0) 70%);
  --cat-bg: #fff;
  --chip-bg: #FFFFFF; --chip-border: 1.5px solid #F3DCC6; --chip-on-bg: #2DB34A; --chip-on-ink: #fff;
  --price: #2B1608; --sale-bg: #E2231A; --tag-bg: #F5B820; --tag-ink: #3A1F05; --fav: #E2231A;
  --add-bg: #2DB34A; --add-ink: #fff; --add-shadow: 0 4px 10px -3px rgba(45,179,74,.6);
  --seg-on-bg: #fff; --seg-on-ink: #C2410C;
  --opt-bg: #fff; --opt-on-bg: #FFF3E8;
  --map-bg: #FFF1DC; --map-road: #fff; --map-water: #BFE6FF;
  --track-bg: linear-gradient(100deg, #F26B1D, #E2231A); --track-ink: #fff;
  --st-way-bg: #FFE7CC; --st-way-ink: #9A3412; --st-ok-bg: #DDF6E3; --st-ok-ink: #17692B; --st-new-bg: #FFF1C2; --st-new-ink: #7A5200;
  --chart: #E8590C;
}
.rail[data-theme=juicy] .chip.sm.on { background: #2DB34A; }
.rail[data-theme=juicy] .cat-art { background: var(--art-bg); box-shadow: inset 0 0 0 2px rgba(255,255,255,.7); }
.rail[data-theme=juicy] .add { background: #1E8E3E; }
.rail[data-theme=juicy] .chip.on { background: #1E8E3E; }
.rail[data-theme=juicy] .fcount { background: #1E8E3E; }

/* 2. Минимал */
.rail[data-theme=minimal] {
  --font-h: 'Manrope', sans-serif; --font-b: 'Manrope', sans-serif;
  --bg: #FFFFFF; --surface: #FFFFFF; --surface2: #F4F4F3; --ink: #111111; --ink2: #6A6A6A; --line: #ECECEC; --line-strong: #D6D6D6;
  --accent: #111111; --accent-ink: #C2410C; --ok: #2DB34A; --ok-ink: #1E7B33; --ok-badge: #111; --warn: #C2410C; --star: #F5B820;
  --header-bg: #FFFFFF; --header-ink: #111; --header-line: 1px solid #ECECEC;
  --nav-bg: #FFFFFF; --tab-on: #111;
  --cta: #111111; --cta-ink: #fff;
  --r-lg: 16px; --r-md: 14px; --r-sm: 12px; --r-btn: 12px; --r-field: 12px; --r-chip: 10px; --r-add: 10px;
  --field: #F4F4F3; --field-border: 0;
  --shadow: none; --card-shadow: none; --card-border: 1px solid #ECECEC;
  --banner-bg: #F7F5F2; --banner-ink: #111; --banner-border: 0;
  --kicker-bg: transparent; --kicker-ink: #C2410C; --bn-cta-bg: #111; --bn-cta-ink: #fff; --bn-halo: none;
  --cat-bg: #F6F6F5;
  --chip-bg: #FFFFFF; --chip-border: 1px solid #DCDCDC; --chip-on-bg: #111; --chip-on-ink: #fff;
  --price: #111; --sale-bg: #E2231A; --tag-bg: #111; --tag-ink: #fff; --fav: #111;
  --add-bg: #111; --add-ink: #fff;
  --seg-on-bg: #fff; --seg-on-ink: #111;
  --opt-bg: #fff; --opt-on-bg: #fff;
  --map-bg: #F2F2F0; --map-road: #fff; --map-water: #DCE7EE;
  --track-bg: #111; --track-ink: #fff;
  --st-way-bg: #FFF1E6; --st-way-ink: #9A3412; --st-ok-bg: #EAF7ED; --st-ok-ink: #17692B; --st-new-bg: #FFF6D6; --st-new-ink: #7A5200;
  --chart: #111; --lbl-tt: uppercase; --lbl-ls: .06em;
}
.rail[data-theme=minimal] .bn-kicker { padding: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.rail[data-theme=minimal] .banner h3 { font-size: 26px; letter-spacing: -.02em; }
.rail[data-theme=minimal] .banner::after { content: ''; position: absolute; left: 16px; top: 0; width: 64px; height: 4px; background: linear-gradient(90deg, #F26B1D 0 25%, #2DB34A 25% 50%, #F5B820 50% 75%, #E2231A 75%); }
.rail[data-theme=minimal] .cat-art .art { width: 70%; height: 70%; }
.rail[data-theme=minimal] .mb-ava { box-shadow: 0 0 0 1px #ECECEC; }
.rail[data-theme=minimal] .dots { color: #111; }
.rail[data-theme=minimal] .p-name { font-weight: 700; letter-spacing: -.01em; }
.rail[data-theme=minimal] .scr-title { letter-spacing: -.02em; }
.rail[data-theme=minimal] .ok-badge { box-shadow: 0 0 0 10px #F4F4F3; }
.rail[data-theme=minimal] .now .tl-dot { border-color: #E8590C; box-shadow: 0 0 0 4px #FFE3CF; }
.rail[data-theme=minimal] .now .tl-dot::after { background: #E8590C; }
.rail[data-theme=minimal] .g-dots i.on, .rail[data-theme=minimal] .thumb.on { border-color: #111; }

/* 3. Тёмный премиум */
.rail[data-theme=dark] {
  --font-h: 'Unbounded', sans-serif; --font-b: 'Manrope', sans-serif;
  --bg: #0B0B10; --surface: #15151C; --surface2: #1F1F29; --ink: #F4F1EC; --ink2: #A9A3B4; --line: #2A2A36; --line-strong: #3A3A48;
  --accent: #FF7A1A; --accent-ink: #FF9A4D; --ok: #4ADE6B; --ok-ink: #5BE37A; --ok-badge: linear-gradient(135deg, #4ADE6B, #1FA34A); --warn: #FFB067; --star: #FFC93C;
  --header-bg: #0B0B10; --header-ink: #F4F1EC; --header-line: 1px solid #1F1F29;
  --nav-bg: #101016; --tab-on: #FF9A4D;
  --cta: linear-gradient(100deg, #FF9A2E, #FF4A2E); --cta-ink: #170A04; --cta-shadow: 0 0 24px -4px rgba(255,106,26,.55);
  --r-lg: 22px; --r-md: 18px; --r-sm: 14px; --r-btn: 16px; --r-field: 14px; --r-chip: 999px; --r-add: 50%;
  --field: #15151C; --field-border: 1px solid #2A2A36;
  --shadow: 0 0 0 1px #2A2A36, 0 20px 40px -20px rgba(255,90,20,.5); --card-shadow: none; --card-border: 1px solid #23232E;
  --banner-bg: radial-gradient(120% 120% at 85% 70%, rgba(255,122,26,.45), transparent 55%), radial-gradient(80% 90% at 10% 0%, rgba(74,222,107,.18), transparent 60%), #15151C; --banner-ink: #F4F1EC;
  --kicker-bg: rgba(255,201,60,.14); --kicker-ink: #FFC93C; --bn-cta-bg: #FF7A1A; --bn-cta-ink: #170A04; --bn-halo: radial-gradient(rgba(255,154,46,.55), rgba(255,154,46,0) 70%);
  --cat-bg: #15151C;
  --chip-bg: #15151C; --chip-border: 1px solid #2E2E3A; --chip-on-bg: rgba(255,122,26,.16); --chip-on-ink: #FFB27A; --chip-on-border: #FF7A1A;
  --price: #FFFFFF; --sale-bg: #FF3B30; --tag-bg: #4ADE6B; --tag-ink: #06240F; --fav: #FF9A4D;
  --add-bg: linear-gradient(135deg, #FF9A2E, #FF4A2E); --add-ink: #170A04; --add-shadow: 0 0 16px -2px rgba(255,106,26,.6);
  --seg-on-bg: #2B2B38; --seg-on-ink: #FFB27A; --seg-shadow: inset 0 0 0 1px #FF7A1A;
  --opt-bg: #15151C; --opt-on-bg: rgba(255,122,26,.08);
  --map-bg: #1A1A23; --map-road: #2C2C38; --map-water: #1E3446;
  --track-bg: linear-gradient(110deg, #1F1F29, #2A1A12); --track-ink: #FFC93C;
  --st-way-bg: rgba(255,154,46,.16); --st-way-ink: #FFB27A; --st-ok-bg: rgba(74,222,107,.14); --st-ok-ink: #6EE68B; --st-new-bg: rgba(255,201,60,.14); --st-new-ink: #FFD66B;
  --chart: #FF9A2E;
  color-scheme: dark;
}
.rail[data-theme=dark] .screen h2, .rail[data-theme=dark] .screen h3 { font-weight: 600; letter-spacing: -.01em; }
.rail[data-theme=dark] .banner h3 { font-size: 21px; font-weight: 700; text-shadow: 0 0 18px rgba(255,122,26,.45); }
.rail[data-theme=dark] .p-name, .rail[data-theme=dark] .scr-title, .rail[data-theme=dark] .ok-hero h2 { font-size: 19px; font-weight: 600; }
.rail[data-theme=dark] .sec-h h3 { font-size: 15px; }
.rail[data-theme=dark] .price, .rail[data-theme=dark] .p-price b { font-weight: 600; }
.rail[data-theme=dark] .p-price b { font-size: 22px; color: #FFC93C; text-shadow: 0 0 14px rgba(255,201,60,.35); }
.rail[data-theme=dark] .cat-art { border: 1px solid #262632; }
.rail[data-theme=dark] .cat:nth-child(1) .cat-art { box-shadow: inset 0 0 22px -6px rgba(255,122,26,.7); }
.rail[data-theme=dark] .cat:nth-child(2) .cat-art { box-shadow: inset 0 0 22px -6px rgba(255,59,48,.7); }
.rail[data-theme=dark] .cat:nth-child(3) .cat-art { box-shadow: inset 0 0 22px -6px rgba(255,201,60,.7); }
.rail[data-theme=dark] .cat:nth-child(4) .cat-art { box-shadow: inset 0 0 22px -6px rgba(74,222,107,.7); }
.rail[data-theme=dark] .cat:nth-child(5) .cat-art { box-shadow: inset 0 0 22px -6px rgba(255,122,26,.7); }
.rail[data-theme=dark] .mb-ava { box-shadow: 0 0 0 2px #FF7A1A, 0 0 12px rgba(255,122,26,.6); }
.rail[data-theme=dark] .ok-badge { box-shadow: 0 0 0 10px rgba(74,222,107,.12), 0 0 40px rgba(74,222,107,.45); color: #06240F; }
.rail[data-theme=dark] .track b { text-shadow: 0 0 14px rgba(255,201,60,.4); }
.rail[data-theme=dark] .icon-btn.glass { background: rgba(11,11,16,.7); color: #fff; }
.rail[data-theme=dark] .bigplay { background: rgba(11,11,16,.75); color: #FF9A2E; box-shadow: 0 0 0 2px #FF7A1A, 0 0 30px rgba(255,122,26,.6); }
.rail[data-theme=dark] .ch-line { filter: drop-shadow(0 0 4px rgba(255,154,46,.8)); }
.rail[data-theme=dark] .pcard.out .pc-art .art { opacity: .4; }
.rail[data-theme=dark] .m-cdek, .rail[data-theme=dark] .m-yandex, .rail[data-theme=dark] .m-ozon { box-shadow: 0 0 0 1px rgba(255,255,255,.15); }
.rail[data-theme=dark] .toast { background: #F4F1EC; color: #0B0B10; }
.rail[data-theme=dark] .sheet-card { border-top: 1px solid #2A2A36; }

/* 4. Игривый (claymorphism) */
.rail[data-theme=play] {
  --font-h: 'Nunito', sans-serif; --font-b: 'Nunito', sans-serif;
  --bg: #FFF1E6; --surface: #FFFFFF; --surface2: #FFE6D4; --ink: #3A1F10; --ink2: #7A5240; --line: #F6D9C4; --line-strong: #EBC2A6;
  --accent: #15803D; --accent-ink: #15803D; --ok: #22A045; --ok-ink: #15803D; --ok-badge: #22A045; --warn: #C2410C; --star: #F5B820;
  --header-bg: #FFF1E6; --header-ink: #3A1F10;
  --nav-bg: #FFFFFF; --tab-on: #15803D;
  --cta: #15803D; --cta-ink: #fff; --cta-shadow: 0 6px 0 #0E5A2B, 0 12px 20px -6px rgba(21,128,61,.5);
  --r-lg: 30px; --r-md: 26px; --r-sm: 20px; --r-btn: 22px; --r-field: 20px; --r-chip: 999px; --r-add: 16px;
  --field: #FFFFFF; --field-border: 3px solid #FFE0CB;
  --shadow: 8px 10px 20px -6px rgba(226,110,60,.35), inset -4px -6px 12px rgba(0,0,0,.06), inset 4px 4px 10px rgba(255,255,255,.7);
  --card-shadow: 6px 8px 16px -6px rgba(226,110,60,.3), inset -3px -4px 8px rgba(0,0,0,.04); --card-border: 3px solid #fff;
  --banner-bg: linear-gradient(140deg, #FFD9A0, #FFB8A3 60%, #FFC9D6); --banner-ink: #3A1F10; --banner-border: 3px solid #fff;
  --kicker-bg: #fff; --kicker-ink: #C2410C; --bn-cta-bg: #15803D; --bn-cta-ink: #fff; --bn-halo: #FFF3C4;
  --cat-bg: #fff;
  --chip-bg: #FFFFFF; --chip-border: 3px solid #FFE0CB; --chip-on-bg: #FFC93C; --chip-on-ink: #3A1F10; --chip-on-border: #FFC93C;
  --price: #3A1F10; --sale-bg: #E2231A; --tag-bg: #FFC93C; --tag-ink: #3A1F10; --fav: #E2231A;
  --add-bg: #15803D; --add-ink: #fff; --add-shadow: 0 4px 0 #0E5A2B;
  --seg-on-bg: #FFC93C; --seg-on-ink: #3A1F10; --seg-shadow: 0 3px 0 #E0A800;
  --opt-bg: #fff; --opt-on-bg: #F0FBF2;
  --map-bg: #E6F6E9; --map-road: #fff; --map-water: #BDE3FF;
  --track-bg: linear-gradient(120deg, #FFC93C, #FF9F68); --track-ink: #3A1F10;
  --st-way-bg: #FFE1C2; --st-way-ink: #8A3A0A; --st-ok-bg: #D7F5DE; --st-ok-ink: #15692F; --st-new-bg: #FFF1B8; --st-new-ink: #6B4A00;
  --chart: #E8590C;
}
.rail[data-theme=play] .screen h2, .rail[data-theme=play] .screen h3, .rail[data-theme=play] .screen h4 { font-weight: 900; }
.rail[data-theme=play] .cat-art { border-radius: 50%; border: 3px solid #fff; background: var(--art-bg); box-shadow: 4px 6px 12px -4px rgba(226,110,60,.35), inset -3px -4px 8px rgba(0,0,0,.05); }
.rail[data-theme=play] .cat-l { font-weight: 800; }
.rail[data-theme=play] .search { box-shadow: var(--card-shadow); }
.rail[data-theme=play] .pc-art { margin: 6px 6px 0; border-radius: 20px; }
.rail[data-theme=play] .chip.on { box-shadow: 0 3px 0 #E0A800; }
.rail[data-theme=play] .tabbar { margin: 0 10px 12px; border-radius: 26px; border: 3px solid #fff; box-shadow: var(--card-shadow); padding-bottom: 6px; }
.rail[data-theme=play] .tb.on { background: #E5F7EA; }
.rail[data-theme=play] .ctabar { background: transparent; border-top: 0; }
.rail[data-theme=play] .mb-ava { box-shadow: 0 0 0 3px #fff, 3px 4px 8px rgba(226,110,60,.35); }
.rail[data-theme=play] .banner h3 { font-size: 25px; }
.rail[data-theme=play] .bn-art::after { content: '✨'; position: absolute; left: 4px; top: 2px; font-size: 22px; }
.rail[data-theme=play] .dopt, .rail[data-theme=play] .popt { border-width: 3px; }
.rail[data-theme=play] .ok-badge { box-shadow: 0 6px 0 #15692F, 0 0 0 10px #D7F5DE; }
.rail[data-theme=play] .stepper { box-shadow: inset 2px 3px 6px rgba(0,0,0,.06); }
.rail[data-theme=play] .block::before { content: none; }
.rail[data-theme=play] .cart-t::after { content: ' 🛒'; }
.rail[data-theme=play] .ok-hero h2::after { content: ' 🎉'; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .player.playing .vprog i { animation: none; width: 100%; }
}

/* правки после проверки */
.cta { white-space: nowrap; }
.rail[data-theme=dark] .cta, .rail[data-theme=dark] .abtn { font-family: var(--font-b); font-weight: 800; letter-spacing: .01em; }
.rail[data-theme=dark] .pcard h4, .rail[data-theme=dark] .ci-mid h4, .rail[data-theme=dark] .timeline b { font-family: var(--font-b); font-weight: 700; }
.kpi small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi { padding: 9px 8px; } .kpi b { font-size: 14px; letter-spacing: -.01em; }
.rail[data-theme=dark] .kpi b { font-family: var(--font-b); font-size: 15px; }
