/* ===== Токены ===== */
:root {
  --cyan: #00D9FF;
  --blue: #008CFF;
  --purple: #713BFF;
  --magenta: #C12BFF;
  --lcyan: #65E8FF;
  --text: #F4F1FF;
  --magenta-tint: color-mix(in srgb, var(--magenta) 55%, var(--text));
  --purple-tint: color-mix(in srgb, var(--purple) 45%, var(--text));
  --danger: #FF5A8C;
  --text-2: rgba(244, 241, 255, .68);
  --text-3: rgba(244, 241, 255, .46);
  --bg: #07040F;
  --bg-2: #0E0820;

  --glass: rgba(255, 255, 255, .055);
  --glass-hi: rgba(255, 255, 255, .09);
  --stroke: rgba(255, 255, 255, .11);
  --stroke-hi: rgba(255, 255, 255, .22);

  --grad: linear-gradient(120deg, var(--cyan) 0%, var(--blue) 30%, var(--purple) 65%, var(--magenta) 100%);
  --grad-soft: linear-gradient(120deg, rgba(0,217,255,.22), rgba(113,59,255,.22) 60%, rgba(193,43,255,.22));

  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-in: cubic-bezier(.55, 0, .75, .2);

  --font-d: 'Unbounded', system-ui, sans-serif;
  --font-b: 'Manrope', system-ui, -apple-system, sans-serif;

  --safe-b: max(env(safe-area-inset-bottom), var(--tg-safe-area-inset-bottom, 0px));
  --safe-t: max(env(safe-area-inset-top), var(--tg-content-safe-area-inset-top, 0px));
  --dock-h: 68px;
  --gutter: 16px;
  color-scheme: dark;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 500 15px/1.5 var(--font-b);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overscroll-behavior-y: none;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { display: block; }
img { display: block; max-width: 100%; }
:focus-visible { outline: none; }
/* кнопки и карточки без голубой рамки при нажатии (в Telegram она остаётся после тапа) */
button, a, [role="button"], .press { -webkit-tap-highlight-color: transparent; }
button:focus, [role="button"]:focus, .press:focus { outline: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Фон-аврора ===== */
.aurora { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; opacity: .55; }
.b1 { width: 340px; height: 340px; background: radial-gradient(closest-side, var(--purple), rgba(113,59,255,0)); width: 520px; height: 520px; top: -220px; right: -220px; animation: drift1 18s ease-in-out infinite alternate; }
.b2 { width: 300px; height: 300px; background: radial-gradient(closest-side, var(--cyan), rgba(0,217,255,0)); width: 460px; height: 460px; top: 36%; left: -260px; opacity: .28; animation: drift2 22s ease-in-out infinite alternate; }
.b3 { width: 320px; height: 320px; background: radial-gradient(closest-side, var(--magenta), rgba(193,43,255,0)); width: 480px; height: 480px; bottom: -240px; right: -140px; opacity: .3; animation: drift3 20s ease-in-out infinite alternate; }
.grain { position: absolute; inset: 0; opacity: .05; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes drift1 { to { transform: translate(-60px, 90px) scale(1.15); } }
@keyframes drift2 { to { transform: translate(80px, -60px) scale(.9); } }
@keyframes drift3 { to { transform: translate(-90px, -40px) scale(1.1); } }

/* ===== Каркас ===== */
#app { position: relative; z-index: 1; min-height: 100%; }
.view {
  min-height: 100vh; min-height: var(--tg-viewport-stable-height, 100dvh);
  padding: calc(var(--safe-t) + 14px) var(--gutter) calc(var(--dock-h) + var(--safe-b) + 36px);
  max-width: 560px; margin: 0 auto; outline: none;
  position: relative; isolation: isolate;
}

/* Неоновый дым */
.smoke-host { position: absolute; left: 0; right: 0; top: 0; height: 100%; pointer-events: none; z-index: -1; overflow: hidden; }
@supports (overflow: clip) { .smoke-host { overflow: clip visible; } } /* по бокам обрезаем, снизу дым затухает сам */
.smoke-host.sm-home { height: 820px; }
.smoke { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s ease; }
.smoke.on { opacity: 1; }
/* фото дыма: две струи — обычная и зеркальная. На заставке они поднимаются
   по бокам от центра и обнимают логотип; на главной — одна, за баннером справа. */
.smoke-photo { position: absolute; inset: 0; }
.sp {
  position: absolute; top: 0; bottom: 0; width: 100%;
  /* растушёвка по бокам — край фото нигде не виден */
}
.sp-r { transform: scaleX(-1); }
.sp i {
  position: absolute; inset: -6% -6% -28% -6%;
  background: url("assets/smoke.webp") 0% 100% / cover no-repeat;
  transform-origin: 30% 100%;
  animation: smoke-loop 18s linear infinite;
}
.sp i + i { animation-delay: -9s; }
.sp-r i { animation-duration: 23s; }          /* разная скорость — струи не синхронны */
.sp-r i + i { animation-delay: -15s; }
.sm-splash .sp { opacity: .85; }
.sm-splash .sp-l { left: 20%; }
.sm-splash .sp-r { left: -20%; }
.sm-home .sp-l { display: none; }
.sm-home .sp-r { left: 0; }
.sm-home .sp i { background-position: 0% 70%; animation-duration: 22s; }
.sm-home .sp i + i { animation-delay: -11s; }
@keyframes smoke-loop {
  0%   { transform: translate3d(0, 16%, 0) scale(1); opacity: 0; }
  25%  { opacity: .95; }
  70%  { opacity: .95; }
  100% { transform: translate3d(-3%, -20%, 0) scale(1.12); opacity: 0; }
}
/* мягкая дымка, медленно дрейфует */
.smoke-haze {
  position: absolute; left: -20%; top: 12%; width: 140%; height: 46%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(113, 59, 255, .14), rgba(0, 140, 255, .06) 55%, transparent);
  animation: haze-drift 22s ease-in-out infinite alternate;
}
@keyframes haze-drift {
  from { transform: translate3d(-8%, 0, 0) scale(1); opacity: .7; }
  to   { transform: translate3d(10%, -6%, 0) scale(1.15); opacity: 1; }
}
.smoke-ash { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (prefers-reduced-motion: reduce) {
  .sp i, .smoke-haze { animation: none !important; opacity: 1 !important; transform: none !important; }
  .sp i + i { display: none; }
}
.view.has-bar { padding-bottom: calc(var(--dock-h) + var(--safe-b) + 112px); }

/* Переходы между экранами */
.view.enter-fwd  { animation: inFwd .46s var(--ease-out) both; }
.view.enter-back { animation: inBack .46s var(--ease-out) both; }
.view.enter-tab  { animation: inTab .38s var(--ease-out) both; }
.view.leave      { animation: leave .16s var(--ease-in) both; }
@keyframes inFwd  { from { opacity: 0; transform: translateX(34px) scale(.985); } }
@keyframes inBack { from { opacity: 0; transform: translateX(-34px) scale(.985); } }
@keyframes inTab  { from { opacity: 0; transform: translateY(14px); } }
@keyframes leave  { to { opacity: 0; transform: scale(.98); } }

/* Каскад появления содержимого */
.rise { animation: rise .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 55ms + 60ms); }
.static .rise { animation: none; }
@keyframes rise { from { opacity: 0; transform: translateY(16px) scale(.97); } }

/* ===== Стекло ===== */
.glass {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,.03) 60%), rgba(14, 8, 30, .5);
  border: 1px solid var(--stroke);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 18px 40px -22px rgba(0,0,0,.9);
}
/* неоновая кромка-градиент для акцентных блоков */
.edge::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: var(--grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .75;
}

/* ===== Нажатия ===== */
.press { transition: transform .22s var(--ease-spring), background-color .2s, border-color .2s, opacity .2s; }
.press:active { transform: scale(.96); transition-duration: .08s; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(101,232,255,.45), rgba(113,59,255,0) 70%); transform: scale(0); animation: ripple .6s var(--ease-out) forwards; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ===== Верхняя панель ===== */
.topbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; min-height: 44px; }
.back {
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none;
}
.back svg { width: 20px; height: 20px; fill: none; stroke: var(--text); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.topbar h1 { margin: 0; font: 600 21px/1.15 var(--font-d); letter-spacing: -.01em; flex: 1; min-width: 0; }
.topbar .act { font-size: 13px; color: var(--text-2); padding: 10px 6px; font-weight: 600; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font: 700 17px/1 var(--font-d); letter-spacing: .02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===== Главная ===== */
.hello { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font: 600 18px var(--font-d); position: relative; background: var(--bg-2); overflow: hidden;
}
.avatar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; padding: 2px; background: conic-gradient(from 200deg, var(--cyan), var(--purple), var(--magenta), var(--cyan)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
@keyframes spin { to { transform: rotate(360deg); } }
.hello-t { flex: 1; min-width: 0; }
.hello-t b { display: block; font: 600 17px/1.2 var(--font-d); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hello-t small { color: var(--text-3); font-size: 13px; }
.chip-bonus { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.chip-bonus svg { width: 18px; height: 18px; fill: none; stroke: var(--lcyan); stroke-width: 1.8; }

.district { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text-2); margin-bottom: 16px; }
.district svg { width: 16px; height: 16px; fill: none; stroke: var(--magenta); stroke-width: 2; }
.district .chev { stroke: var(--text-3); width: 14px; height: 14px; }

.hero { display: block; width: 100%; text-align: left; padding: 22px 20px; min-height: 196px; overflow: hidden; border-radius: var(--r-xl); }
.hero h2 { font: 700 26px/1.08 var(--font-d); margin: 0 0 10px; max-width: 62%; letter-spacing: -.02em; }
.hero p { margin: 0 0 18px; color: var(--text-2); font-size: 13.5px; max-width: 55%; }
.hero .art-wrap { position: absolute; right: -8px; bottom: -6px; width: 170px; height: 176px; animation: float 5s ease-in-out infinite; }
.hero .art-wrap .art { width: 100%; height: 100%; filter: drop-shadow(0 18px 30px rgba(113,59,255,.55)); }
.hero .go { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px 0 18px; border-radius: 999px; background: var(--text); color: #12082a; font-weight: 800; font-size: 14px; }
.hero .go svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .3s var(--ease-spring); }
.hero:active .go svg { transform: translateX(4px); }
@keyframes float { 50% { transform: translateY(-8px) rotate(-2deg); } }

.rating { display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 16px 18px; margin-top: 12px; }
.rating .num { font: 700 34px/1 var(--font-d); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stars { display: flex; gap: 2px; margin-top: 6px; }
.stars svg { width: 12px; height: 12px; fill: var(--lcyan); }
.rating .t { flex: 1; border-left: 1px solid var(--stroke); padding-left: 16px; }
.rating .t b { display: block; font-size: 15px; }
.rating .t small { color: var(--text-3); font-size: 12.5px; }
.rating .arr { width: 20px; height: 20px; fill: none; stroke: var(--text-3); stroke-width: 2; }

.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 0 12px; }
.sec-h h2 { margin: 0; font: 600 19px/1.2 var(--font-d); }
.sec-h a, .sec-h button { color: var(--lcyan); font-size: 13.5px; font-weight: 700; text-decoration: none; padding: 8px 0; }

/* ===== Чипы с ползунком ===== */
.chips { position: relative; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip { position: relative; z-index: 1; flex: none; height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--text-2); border: 1px solid var(--stroke); background: var(--glass); transition: color .25s, border-color .25s; }
.chip.on { color: #12082a; border-color: transparent; background: transparent; }
.chip-pill { position: absolute; z-index: 0; top: 4px; left: 0; height: 38px; border-radius: 999px; background: var(--text); box-shadow: 0 0 22px rgba(101,232,255,.35); transition: transform .45s var(--ease-spring), width .45s var(--ease-spring); pointer-events: none; }

/* ===== Карточки товаров ===== */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.card { display: flex; flex-direction: column; padding: 10px 10px 12px; border-radius: var(--r-lg); overflow: hidden; text-align: left; min-width: 0; }
.card .stage { position: relative; aspect-ratio: 1 / .9; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 100%, rgba(113,59,255,.25), transparent 60%), rgba(0,0,0,.18); margin-bottom: 10px; overflow: hidden; }
.card .stage .art { width: 82%; height: 82%; transition: transform .5s var(--ease-spring); }
.card:active .stage .art { transform: scale(1.06) rotate(-3deg); }
.card .nm { font-weight: 700; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.card .sb { color: var(--text-3); font-size: 12px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; gap: 6px; }
.price { font: 600 16px/1 var(--font-d); white-space: nowrap; }
.price s { display: block; font: 500 11px var(--font-b); color: var(--text-3); margin-bottom: 3px; }
.add {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; position: relative; overflow: hidden;
  background: var(--grad); box-shadow: 0 6px 18px -6px rgba(113,59,255,.8);
}
.add svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; transition: transform .35s var(--ease-spring); }
.add.done svg { transform: rotate(90deg) scale(.9); }
.tag { position: absolute; top: 8px; left: 8px; height: 22px; padding: 0 8px; border-radius: 8px; font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; }
.tag.new { background: rgba(0,217,255,.18); color: var(--lcyan); border: 1px solid rgba(0,217,255,.4); }
.tag.sale { background: rgba(193,43,255,.2); color: var(--magenta-tint); border: 1px solid rgba(193,43,255,.45); }
.tag.hit { background: rgba(113,59,255,.24); color: var(--purple-tint); border: 1px solid rgba(113,59,255,.55); }

.card-wide { display: flex; flex-direction: row; gap: 14px; align-items: center; width: 100%; padding: 12px; border-radius: var(--r-lg); text-align: left; margin-top: 14px; }
.card-wide .stage { width: 120px; flex: none; aspect-ratio: 1; margin: 0; }
.card-wide .info { flex: 1; min-width: 0; }
.card-wide .nm { font: 600 15px/1.25 var(--font-d); min-height: 0; }

/* ===== Поиск ===== */
.search { position: sticky; top: calc(var(--safe-t) + 8px); z-index: 5; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 8px 0 16px; border-radius: 16px; margin-bottom: 12px; background: rgba(18, 10, 38, .92); }
.search svg { width: 19px; height: 19px; fill: none; stroke: var(--text-3); stroke-width: 2; flex: none; }
.search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; font-size: 15px; height: 100%; }
.search input::placeholder { color: var(--text-3); }
.search .clr { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.search .clr[hidden] { display: none; }
.search:focus-within { border-color: rgba(101,232,255,.5); box-shadow: 0 0 0 4px rgba(0,217,255,.12); }

.empty { text-align: center; padding: 40px 20px; border-radius: var(--r-xl); margin-top: 14px; }
.empty .ico { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--stroke); }
.empty .ico svg { width: 28px; height: 28px; fill: none; stroke: var(--lcyan); stroke-width: 1.8; }
.empty h3 { margin: 0 0 6px; font: 600 17px var(--font-d); }
.empty p { margin: 0 0 18px; color: var(--text-2); font-size: 14px; }

/* ===== Кнопки ===== */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 22px; border-radius: 18px; font-weight: 800; font-size: 15.5px; letter-spacing: .01em; }
.btn-main { background: var(--grad); background-size: 200% 100%; color: #fff; box-shadow: 0 14px 30px -12px rgba(113,59,255,.9), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-main[disabled] { filter: grayscale(.7) brightness(.7); box-shadow: none; }
.btn-ghost { background: var(--glass); border: 1px solid var(--stroke-hi); }
.btn-block { width: 100%; }
@keyframes sheen { 50% { background-position: 100% 0; } }

/* ===== Товар ===== */
.pd-stage { position: relative; height: 300px; display: grid; place-items: center; margin: -6px 0 6px; }
.pd-stage::before { content: ""; position: absolute; width: 230px; height: 230px; border-radius: 50%; background: radial-gradient(closest-side, rgba(113,59,255,.7), rgba(0,217,255,.3) 55%, transparent); opacity: .7; width: 300px; height: 300px; }
.pd-stage::after { content: ""; position: absolute; bottom: 24px; width: 160px; height: 18px; border-radius: 50%; background: radial-gradient(rgba(0,0,0,.7), transparent 70%); }
.pd-stage .art { position: relative; z-index: 1; width: 240px; height: 248px; animation: float 5s ease-in-out infinite; filter: drop-shadow(0 24px 30px rgba(0,0,0,.6)); }
.pd-title { font: 600 24px/1.15 var(--font-d); margin: 0 0 6px; letter-spacing: -.015em; }
.pd-sub { color: var(--text-2); margin: 0 0 14px; }
.pd-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.pd-price b { font: 700 30px/1 var(--font-d); }
.pd-price s { color: var(--text-3); font-size: 15px; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.pill { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 10px; font-size: 12px; font-weight: 700; color: var(--text-2); background: var(--glass); border: 1px solid var(--stroke); }
.pd-desc { padding: 16px; color: var(--text-2); font-size: 14px; line-height: 1.6; }

.rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scroll-padding: 0 var(--gutter); }
.rail::-webkit-scrollbar { display: none; }
.rail .card { width: 158px; flex: none; scroll-snap-align: start; }

/* Нижняя панель действия */
.actionbar { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(var(--dock-h) + var(--safe-b) + 22px); width: calc(100% - 2 * var(--gutter)); max-width: 528px; display: flex; gap: 10px; padding: 8px; border-radius: 22px; background: rgba(18, 10, 38, .94); animation: barIn .5s var(--ease-spring) .15s both; }
@keyframes barIn { from { opacity: 0; transform: translate(-50%, 30px); } }
.actionbar .btn { flex: 1; height: 50px; }

.stepper { display: flex; align-items: center; height: 50px; border-radius: 16px; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); flex: none; }
.stepper button { width: 42px; height: 100%; display: grid; place-items: center; border-radius: 14px; }
.stepper button svg { width: 16px; height: 16px; fill: none; stroke: var(--text); stroke-width: 2.4; stroke-linecap: round; }
.stepper button:disabled svg { stroke: var(--text-3); }
.stepper output { min-width: 26px; text-align: center; font: 600 16px var(--font-d); }
.stepper.sm { height: 38px; border-radius: 12px; }
.stepper.sm button { width: 36px; }
.bump { animation: bump .35s var(--ease-spring); }
@keyframes bump { 40% { transform: scale(1.35); } }

/* ===== Корзина ===== */
.ci { display: flex; gap: 12px; padding: 10px; border-radius: var(--r-lg); margin-bottom: 10px; align-items: center; transition: opacity .25s, transform .35s var(--ease-out), max-height .35s var(--ease-out), margin .35s, padding .35s; max-height: 140px; }
.ci.gone { opacity: 0; transform: translateX(-40px) scale(.96); max-height: 0; margin: 0; padding-top: 0; padding-bottom: 0; }
.ci .stage { width: 84px; height: 84px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(0,0,0,.22); }
.ci .stage .art { width: 90%; height: 90%; }
.ci .info { flex: 1; min-width: 0; }
.ci .nm { font-weight: 700; font-size: 14px; line-height: 1.25; }
.ci .sb { color: var(--text-3); font-size: 12px; }
.ci .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-top: 8px; gap: 8px; }
.ci .x { align-self: flex-start; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; flex: none; }
.ci .x svg { width: 16px; height: 16px; fill: none; stroke: var(--text-3); stroke-width: 2.2; stroke-linecap: round; }

.panel { padding: 18px 16px; border-radius: var(--r-xl); margin-top: 12px; }
.panel h3 { margin: 0 0 14px; font: 600 15.5px var(--font-d); display: flex; align-items: center; gap: 8px; }
.panel h3 svg { width: 18px; height: 18px; fill: none; stroke: var(--lcyan); stroke-width: 1.9; }
.hint { color: var(--text-3); font-size: 12.5px; margin: 10px 0 0; }

.seg { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 16px; background: rgba(0,0,0,.28); border: 1px solid var(--stroke); }
.seg button { position: relative; z-index: 1; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--text-2); transition: color .25s; }
.seg button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.seg button.on { color: #12082a; }
.seg .thumb { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 12px; background: var(--text); box-shadow: 0 0 24px rgba(101,232,255,.3); transition: transform .45s var(--ease-spring); }
.seg[data-v="1"] .thumb { transform: translateX(100%); }

.field { display: block; margin-top: 12px; }
.field > span { display: block; font-size: 12px; font-weight: 700; color: var(--text-3); margin: 0 0 6px 4px; }
.inp { width: 100%; height: 50px; border-radius: 14px; padding: 0 14px; background: rgba(0,0,0,.28); border: 1px solid var(--stroke); outline: none; transition: border-color .2s, box-shadow .2s; font-size: 15px; color-scheme: dark; }
.inp::placeholder { color: var(--text-3); }
.inp:focus { border-color: rgba(101,232,255,.55); box-shadow: 0 0 0 4px rgba(0,217,255,.12); }
.inp.err { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255,90,140,.14); animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.two .field { margin-top: 12px; }
.sel { display: flex; align-items: center; gap: 10px; width: 100%; height: 50px; padding: 0 14px; border-radius: 14px; margin-top: 12px; background: rgba(0,0,0,.28); border: 1px solid var(--stroke); text-align: left; font-weight: 600; font-size: 14.5px; }
.sel svg { width: 18px; height: 18px; fill: none; stroke: var(--magenta); stroke-width: 2; flex: none; }
.sel .chev { stroke: var(--text-3); margin-left: auto; width: 16px; }
.sel small { display: block; color: var(--text-3); font-size: 12px; font-weight: 500; line-height: 1.2; }
.sel .tx { line-height: 1.25; }
.sel.tall { height: 60px; }

.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { height: 40px; padding: 0 14px; border-radius: 12px; font-weight: 700; font-size: 13.5px; background: rgba(0,0,0,.28); border: 1px solid var(--stroke); color: var(--text-2); transition: background-color .25s, color .25s, border-color .25s, transform .22s var(--ease-spring); }
.opt.on { background: var(--text); color: #12082a; border-color: transparent; }

.collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .4s var(--ease-out), opacity .3s; }
.collapse > div { overflow: hidden; }
.collapse.shut { grid-template-rows: 0fr; opacity: 0; }

.switch-row { display: flex; align-items: center; gap: 12px; }
.switch-row .tx { flex: 1; }
.switch-row b { display: block; font-size: 14.5px; }
.switch-row small { color: var(--text-3); font-size: 12.5px; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid var(--stroke); flex: none; transition: background .3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--text); transition: transform .4s var(--ease-spring), width .2s; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.switch:active::after { width: 28px; }
.switch[aria-checked="true"] { background: var(--grad); border-color: transparent; box-shadow: 0 0 18px rgba(0,217,255,.45); }
.switch[aria-checked="true"]::after { transform: translateX(22px); }
.switch[aria-checked="true"]:active::after { transform: translateX(16px); }
.switch:disabled { opacity: .45; }
.cashback-note { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--grad-soft); border: 1px solid rgba(113,59,255,.35); font-size: 12.5px; color: var(--text); }
.cashback-note b { color: var(--lcyan); }

.sum { padding: 16px; border-radius: var(--r-xl); margin-top: 12px; }
.sum .ln { display: flex; justify-content: space-between; color: var(--text-2); font-size: 14px; padding: 3px 0; }
.sum .ln.minus span:last-child { color: var(--lcyan); }
.sum .tot { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--stroke-hi); margin-top: 10px; padding-top: 12px; }
.sum .tot span { font-weight: 800; }
.sum .tot b { font: 700 24px var(--font-d); }

/* ===== Бонусы ===== */
.bcard { padding: 22px 20px; border-radius: var(--r-xl); overflow: hidden; min-height: 200px; }
.bcard .gift { position: absolute; right: -24px; top: 4px; width: 210px; mix-blend-mode: screen; -webkit-mask: radial-gradient(70% 70% at 60% 50%, #000 55%, transparent 100%); mask: radial-gradient(70% 70% at 60% 50%, #000 55%, transparent 100%); pointer-events: none; }
.bcard .lab { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.bcard .big { font: 700 52px/1 var(--font-d); margin: 10px 0 4px; background: linear-gradient(120deg, var(--text), var(--lcyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bcard .bal { display: inline-flex; gap: 6px; align-items: baseline; margin-top: 18px; padding: 10px 14px; border-radius: 14px; background: rgba(0,0,0,.35); border: 1px solid var(--stroke-hi); font-size: 13px; color: var(--text-2); position: relative; }
.bcard .bal b { font: 600 17px var(--font-d); color: var(--text); }

.lvl { padding: 18px 16px; border-radius: var(--r-xl); margin-top: 12px; }
.lvl-top { display: flex; align-items: center; gap: 14px; }
.lvl-top .tx { flex: 1; }
.lvl-top small { color: var(--text-3); font-size: 13px; }
.lvl-top b { display: block; font: 600 20px/1.2 var(--font-d); margin: 4px 0; }
.ring { width: 78px; height: 78px; flex: none; position: relative; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .tr { stroke: rgba(255,255,255,.1); }
.ring .pr { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset 1.2s var(--ease-out); }
.ring span { font: 600 12px var(--font-d); }
.bar { height: 10px; border-radius: 99px; background: rgba(255,255,255,.08); margin: 14px 0 8px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--grad); box-shadow: 0 0 14px rgba(0,217,255,.6); transition: width 1.2s var(--ease-out); min-width: 10px; }
.tiers { position: relative; display: flex; justify-content: space-between; margin-top: 18px; padding-top: 30px; }
.tiers::before { content: ""; position: absolute; left: 12px; right: 12px; top: 7px; height: 2px; background: rgba(255,255,255,.14); }
.tier { position: relative; display: flex; flex-direction: column; align-items: center; font-size: 12px; color: var(--text-3); width: 70px; }
.tier:first-child { align-items: flex-start; }
.tier:last-child { align-items: flex-end; }
.tier i { width: 16px; height: 16px; border-radius: 50%; background: var(--bg-2); border: 2px solid rgba(255,255,255,.3); position: absolute; top: -30px; }
.tier.on i { background: var(--cyan); border-color: var(--text); box-shadow: 0 0 0 5px rgba(0,217,255,.18), 0 0 16px var(--cyan); }
.tier b { color: var(--text); font-size: 13px; }
.tier em { font-style: normal; color: var(--magenta); font-weight: 700; }
.tier.on em { color: var(--lcyan); }

.row-btn { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: var(--r-lg); margin-top: 10px; text-align: left; }
.row-btn .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--grad-soft); border: 1px solid var(--stroke); }
.row-btn .ic svg { width: 21px; height: 21px; fill: none; stroke: var(--lcyan); stroke-width: 1.8; stroke-linejoin: round; }
.row-btn .tx { flex: 1; min-width: 0; }
.row-btn b { display: block; font-size: 15px; }
.row-btn small { color: var(--text-3); font-size: 12.5px; }
.row-btn .chev { width: 18px; height: 18px; fill: none; stroke: var(--text-3); stroke-width: 2; flex: none; }

.hist { padding: 6px 16px; border-radius: var(--r-xl); margin-top: 10px; }
.hist .it { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--stroke); }
.hist .it:last-child { border-bottom: 0; }
.hist .it .d { flex: 1; min-width: 0; }
.hist .it .d b { display: block; font-size: 14px; }
.hist .it .d small { color: var(--text-3); font-size: 12px; }
.hist .amt { font: 600 15px var(--font-d); white-space: nowrap; }
.hist .amt.pos { color: var(--lcyan); }
.hist .amt.neg { color: var(--magenta-tint); }
.hist .amt.wait { color: var(--text-3); }

/* ===== Профиль ===== */
.prof { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: var(--r-xl); }
.prof .avatar { width: 64px; height: 64px; font-size: 24px; }
.prof b { display: block; font: 600 19px/1.2 var(--font-d); }
.prof small { color: var(--text-3); }
.stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-top: 12px; }
.stat { padding: 14px 12px; border-radius: var(--r-lg); text-align: left; }
.stat b { display: block; font: 600 19px var(--font-d); }
.stat small { color: var(--text-3); font-size: 12px; }
.order { padding: 14px 16px; border-radius: var(--r-lg); margin-top: 10px; }
.order .h { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.order .h b { font: 600 15px var(--font-d); }
.status { height: 26px; padding: 0 10px; border-radius: 9px; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; background: rgba(0,217,255,.14); color: var(--lcyan); border: 1px solid rgba(0,217,255,.35); }
.status.done { background: rgba(113,59,255,.18); color: var(--purple-tint); border-color: rgba(113,59,255,.45); }
.order p { margin: 8px 0 0; color: var(--text-2); font-size: 13px; }
.order .f { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; gap: 8px; }
.order .f .price { font-size: 15px; }
.mini-btn { height: 36px; padding: 0 12px; border-radius: 11px; font-weight: 700; font-size: 13px; background: var(--glass-hi); border: 1px solid var(--stroke-hi); }

/* ===== Сплэш / возраст ===== */
.splash { min-height: calc(var(--tg-viewport-stable-height, 100dvh) - 40px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-bottom: 20px; }
.logo-orb { position: relative; width: 236px; height: 236px; margin-bottom: 30px; }
.logo-orb img { width: 100%; height: 100%; border-radius: 50%; position: relative; z-index: 1; animation: orbIn 1.1s var(--ease-spring) both; }
.logo-orb::before { content: ""; position: absolute; inset: -18px; border-radius: 50%; inset: -46px; background: radial-gradient(closest-side, rgba(113,59,255,.75), rgba(0,217,255,.35) 60%, transparent); opacity: .7; animation: pulse 3s ease-in-out infinite; }
@keyframes orbIn { from { opacity: 0; transform: scale(.6) rotate(-20deg); } }
@keyframes pulse { 50% { opacity: .9; } }
.splash h1 { font: 600 22px/1.25 var(--font-d); margin: 0 0 10px; max-width: 320px; letter-spacing: -.01em; }
.splash p { color: var(--text-2); margin: 0 0 26px; max-width: 300px; font-size: 14px; }
.perks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 380px; margin-bottom: 28px; }
.perk { padding: 14px 8px; border-radius: 18px; font-size: 12px; color: var(--text-2); font-weight: 600; line-height: 1.3; }
.perk svg { width: 24px; height: 24px; margin: 0 auto 8px; fill: none; stroke: var(--lcyan); stroke-width: 1.7; }
.age { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: var(--text-3); font-size: 12.5px; }
.age b { display: grid; place-items: center; height: 30px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--stroke-hi); color: var(--text); font: 600 12px var(--font-d); }
.splash .btn { max-width: 380px; }
.splash .no { margin-top: 10px; color: var(--text-3); font-size: 13.5px; font-weight: 600; padding: 10px; }

/* ===== Успех заказа ===== */
.success { text-align: center; padding-top: 40px; }
.check { width: 110px; height: 110px; margin: 0 auto 24px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); box-shadow: 0 0 60px rgba(113,59,255,.7); animation: orbIn .8s var(--ease-spring) both; }
.check svg { width: 52px; height: 52px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .6s var(--ease-out) .45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success h1 { font: 600 24px var(--font-d); margin: 0 0 8px; }
.success p { color: var(--text-2); margin: 0 auto 24px; max-width: 300px; }
.success .card-o { text-align: left; padding: 16px; border-radius: var(--r-xl); margin-bottom: 18px; }
.success .card-o .ln { display: flex; justify-content: space-between; padding: 4px 0; font-size: 14px; color: var(--text-2); }
.success .card-o .ln b { color: var(--text); }
.success .btn + .btn { margin-top: 10px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 60; }

/* ===== Док ===== */
.dock {
  position: fixed; z-index: 40; left: 50%; bottom: calc(var(--safe-b) + 12px); transform: translateX(-50%);
  width: calc(100% - 2 * var(--gutter)); max-width: 528px; height: var(--dock-h);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 26px;
  background: rgba(16, 9, 34, .82); border: 1px solid var(--stroke-hi);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 20px 50px -10px rgba(0,0,0,.85), 0 0 40px -12px rgba(113,59,255,.6);
  transition: transform .45s var(--ease-spring), opacity .3s;
}
.dock.hide { transform: translate(-50%, 140%); opacity: 0; }
.dock-blob { position: absolute; top: 6px; left: 6px; height: calc(100% - 12px); width: calc((100% - 12px) / 4); border-radius: 20px; background: rgba(255,255,255,.06); border: 0; box-shadow: none; transition: transform .5s var(--ease-spring); }
.dock-blob.stretch { animation: stretch .5s var(--ease-out); }
@keyframes stretch { 40% { scale: 1.25 .82; } }
.dock-item { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--text-3); font-size: 11px; font-weight: 700; transition: color .3s; }
.dock-item svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; transition: transform .45s var(--ease-spring); }
.dock-item.on { color: var(--text); }
.dock-item.on svg { transform: translateY(-1px) scale(1.08); stroke: var(--lcyan); filter: drop-shadow(0 0 6px rgba(0,217,255,.8)); }
.badge { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--magenta); color: #fff; font: 800 11px/19px var(--font-b); text-align: center; box-shadow: 0 0 12px rgba(193,43,255,.8); }
.badge[hidden] { display: none; }

.fly { position: fixed; z-index: 80; width: 16px; height: 16px; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, #fff 0 25%, var(--cyan) 45%, rgba(113,59,255,0) 72%); box-shadow: 0 0 18px var(--cyan); }

/* ===== Шторка ===== */
.sheet-root { position: fixed; inset: 0; z-index: 70; }
.sheet-root[hidden] { display: none; }
.sheet-scrim { position: absolute; inset: 0; background: rgba(4, 2, 10, .72); animation: fadeIn .3s both; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 86vh; overflow: auto; padding: 8px 18px calc(var(--safe-b) + 22px); border-radius: 28px 28px 0 0; background: linear-gradient(180deg, rgba(30,18,60,.92), rgba(12,7,26,.96)); border: 1px solid var(--stroke-hi); border-bottom: 0; -webkit-backdrop-filter: blur(30px); backdrop-filter: blur(30px); box-shadow: 0 -20px 60px rgba(113,59,255,.35); animation: sheetIn .5s var(--ease-spring) both; touch-action: pan-y; }
.sheet-root.closing .sheet { animation: sheetOut .28s var(--ease-in) both; }
.sheet-root.closing .sheet-scrim { animation: fadeOut .28s both; }
@keyframes sheetIn { from { transform: translateY(100%); } }
@keyframes sheetOut { to { transform: translateY(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
.sheet:focus { outline: none; }
.sheet-grip { width: 42px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.25); margin: 4px auto 14px; }
.sheet h2 { font: 600 19px var(--font-d); margin: 0 0 6px; }
.sheet .lead { color: var(--text-2); margin: 0 0 16px; font-size: 14px; }
.list-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px; border-radius: 16px; margin-bottom: 8px; text-align: left; background: var(--glass); border: 1px solid var(--stroke); }
.list-opt.on { border-color: rgba(101,232,255,.6); background: rgba(0,217,255,.1); }
.list-opt .tx { flex: 1; }
.list-opt b { display: block; font-size: 15px; }
.list-opt small { color: var(--text-3); font-size: 12.5px; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--stroke-hi); flex: none; display: grid; place-items: center; }
.list-opt.on .radio { border-color: var(--lcyan); }
.list-opt.on .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lcyan); box-shadow: 0 0 10px var(--cyan); animation: orbIn .35s var(--ease-spring); }
.review { padding: 14px; border-radius: 16px; background: var(--glass); border: 1px solid var(--stroke); margin-bottom: 8px; }
.review .h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.review p { margin: 0; color: var(--text-2); font-size: 14px; }
.facts { display: grid; gap: 8px; margin-bottom: 16px; }
.fact { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--glass); border: 1px solid var(--stroke); font-size: 14px; }
.fact b { font: 600 15px var(--font-d); color: var(--lcyan); min-width: 64px; }

/* ===== Тост ===== */
.toast { position: fixed; z-index: 90; left: 50%; top: calc(var(--safe-t) + 14px); transform: translate(-50%, -140%); max-width: calc(100% - 32px); padding: 12px 16px; border-radius: 16px; font-size: 14px; font-weight: 700; background: rgba(20,12,44,.85); border: 1px solid rgba(101,232,255,.4); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); box-shadow: 0 10px 30px rgba(0,0,0,.6), 0 0 24px rgba(0,217,255,.25); transition: transform .45s var(--ease-spring), visibility 0s .45s; display: flex; gap: 10px; align-items: center; visibility: hidden; }
.toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease-spring); }
.toast svg { width: 18px; height: 18px; fill: none; stroke: var(--lcyan); stroke-width: 2.4; flex: none; }

/* ===== Доступность движения ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .blob { animation: none; }
}
@media (max-width: 360px) {
  .hero h2 { font-size: 22px; }
  .hero .art-wrap { width: 140px; height: 146px; }
  .stats { grid-template-columns: 1fr 1fr; }
}

/* ---------- Опт ---------- */
.ci { max-height: 180px; }
.ws-note { display: inline-block; margin-top: 5px; padding: 3px 8px; border-radius: 8px; font-size: 11.5px; font-weight: 700; color: var(--text-3); background: rgba(0,0,0,.25); border: 1px solid var(--stroke); }
.ws-note.on { color: var(--lcyan); border-color: rgba(101,232,255,.35); }
.ws-rows { display: grid; gap: 6px; }
.ws-r { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); font-size: 13.5px; transition: border-color .25s, box-shadow .25s; }
.ws-r span { color: var(--text-2); font-weight: 600; }
.ws-r b { font: 600 14.5px var(--font-d); white-space: nowrap; }
.ws-r b small { font: 500 11px var(--font-b); color: var(--text-3); margin-left: 2px; }
.ws-r em { font-style: normal; font-weight: 800; font-size: 12px; color: var(--lcyan); min-width: 40px; text-align: right; }
.ws-r.on { border-color: rgba(101,232,255,.55); box-shadow: 0 0 0 3px rgba(0,217,255,.12); }
.ws-edit { display: grid; grid-template-columns: 1fr 40px; gap: 10px; align-items: end; }
.ws-brand { padding: 12px 0; border-top: 1px solid var(--stroke); }
.ws-brand:first-child { border-top: 0; padding-top: 0; }
.ws-brand-h b { display: block; font: 600 15px var(--font-d); }
.ws-brand-h small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }
.ws-brand-p { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.ws-brand-p .field { margin-top: 8px; }
.ws-brand-p .inp { text-align: center; }
.ws-edit .field { margin-top: 10px; }
.ws-edit .x { width: 40px; height: 50px; display: grid; place-items: center; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid var(--stroke); }
.ws-edit .x svg { width: 16px; height: 16px; fill: none; stroke: var(--text-3); stroke-width: 2.2; stroke-linecap: round; }

/* ---------- Фото товаров ---------- */
.art.photo { display: block; object-fit: contain; background: #fff; border-radius: 14px; }
.card .stage .art.photo { width: 88%; height: 92%; box-shadow: 0 10px 26px rgba(0,0,0,.35); }
.ci .stage .art.photo { width: 100%; height: 100%; border-radius: 12px; }
.pd-stage .art.photo { width: 250px; height: 250px; border-radius: 26px; box-shadow: 0 24px 50px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); filter: none; }
.hero .art-wrap:has(.photo) { width: 116px; height: 116px; right: 16px; bottom: 18px; }
.hero .art-wrap .art.photo { border-radius: 20px; transform: rotate(6deg); box-shadow: 0 14px 30px rgba(0,0,0,.5); filter: none; }
.hero:has(.photo) h2, .hero:has(.photo) p { position: relative; z-index: 2; }
.hero:has(.photo) p { max-width: 58%; }

/* ---------- Заставка: всегда целиком на одном экране ---------- */
/* размеры считаем от высоты окна Telegram, чтобы ничего не приходилось листать */
.view.is-splash {
  --vh: var(--tg-viewport-stable-height, 100dvh);
  min-height: 0; height: var(--vh); overflow: hidden;
  padding-top: calc(var(--safe-t) + 8px); padding-bottom: calc(var(--safe-b) + 8px);
}
.is-splash .splash { height: 100%; min-height: 0; padding: 0; justify-content: center; }
.is-splash .logo-orb { width: clamp(110px, calc(var(--vh) * .28), 236px); height: clamp(110px, calc(var(--vh) * .28), 236px); margin-bottom: clamp(12px, calc(var(--vh) * .035), 30px); flex: none; }
.is-splash .logo-orb::before { inset: -28px; }
.is-splash .splash h1 { font-size: clamp(18px, calc(var(--vh) * .034), 22px); margin-bottom: clamp(4px, calc(var(--vh) * .012), 10px); }
.is-splash .splash p { font-size: clamp(12.5px, calc(var(--vh) * .022), 14px); margin-bottom: clamp(10px, calc(var(--vh) * .03), 26px); }
.is-splash .perks { margin-bottom: clamp(10px, calc(var(--vh) * .03), 28px); gap: 8px; }
.is-splash .perk { padding: clamp(7px, calc(var(--vh) * .017), 14px) 6px; }
.is-splash .perk svg { width: 20px; height: 20px; margin-bottom: clamp(3px, calc(var(--vh) * .01), 8px); }
.is-splash .btn { flex: none; }
/* выбор при входе: розница или опт */
.mode-q { font: 600 14px var(--font-d); color: var(--text-2); margin-bottom: 10px; }
.mode-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; max-width: 380px; flex: none; }
.mode-btn { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 8px; border-radius: 18px; color: #fff; background: var(--grad); background-size: 200% 100%; box-shadow: 0 14px 30px -14px rgba(113,59,255,.9), inset 0 1px 0 rgba(255,255,255,.3); }
.mode-btn + .mode-btn { background: rgba(255,255,255,.06); border: 1px solid var(--stroke-hi); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.mode-btn b { font: 600 16px var(--font-d); }
.mode-btn small { font-size: 12px; opacity: .8; }
.is-splash .mode-btn { padding: clamp(9px, calc(var(--vh) * .02), 14px) 8px; }
.is-splash .mode-q { margin-bottom: clamp(6px, calc(var(--vh) * .014), 10px); }
.is-splash .no { margin-top: 2px; padding: clamp(4px, calc(var(--vh) * .012), 10px); }
.is-splash .age { margin-top: clamp(2px, calc(var(--vh) * .012), 18px); }
html.no-scroll, html.no-scroll body { overflow: hidden; overscroll-behavior: none; }

/* плашки «Хит / Акция / Новинка» — непрозрачные, поверх фото, читаются на любом фоне */
.stage .tag { z-index: 2; border: 0; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.25); box-shadow: 0 4px 12px rgba(0,0,0,.35); }
.stage .tag.hit  { background: linear-gradient(135deg, #713BFF, #9B5BFF); }
.stage .tag.sale { background: linear-gradient(135deg, #C12BFF, #E04BB0); }
.stage .tag.new  { background: linear-gradient(135deg, #008CFF, #00C2E8); }
/* на невысоких экранах фото товара меньше, чтобы название и цена были видны сразу */
.pd-stage:has(.photo) { height: clamp(200px, calc(var(--tg-viewport-stable-height, 100dvh) * .38), 300px); }
.pd-stage .art.photo { width: clamp(170px, calc(var(--tg-viewport-stable-height, 100dvh) * .32), 250px); height: clamp(170px, calc(var(--tg-viewport-stable-height, 100dvh) * .32), 250px); }
.pd-stage:has(.photo)::before { width: clamp(220px, calc(var(--tg-viewport-stable-height, 100dvh) * .4), 300px); height: clamp(220px, calc(var(--tg-viewport-stable-height, 100dvh) * .4), 300px); }

/* ---------- Варианты: цвет, крепость, вкус, сопротивление ---------- */
.opts-panel { display: grid; gap: 16px; }
.opt-group .opt-h { font-size: 13px; color: var(--text-3); font-weight: 700; margin: 0 0 10px 2px; }
.opt-group .opt-h b { color: var(--text); font-weight: 800; }
.opt-group .opt.on { box-shadow: 0 0 18px rgba(101,232,255,.25); }
.sws { gap: 12px; padding-left: 2px; }
.sw { position: relative; width: 36px; height: 36px; border-radius: 50%; background: var(--sw); border: 2px solid rgba(255,255,255,.18); box-shadow: inset 0 -6px 10px rgba(0,0,0,.25), inset 0 4px 8px rgba(255,255,255,.18); transition: transform .25s var(--ease-spring); }
.sw::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid transparent; transition: border-color .2s; }
.sw.on::after { border-color: var(--lcyan); box-shadow: 0 0 14px rgba(0,217,255,.45); }
.sw:active { transform: scale(.9); }
.ci .sb { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ci .sb .vt { color: var(--text-2); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ci .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(255,255,255,.35); }

/* ---------- Наличие на точке (остаток − резерв) ---------- */
.card.na .stage .art { filter: grayscale(.85); opacity: .55; }
.card.na .nm, .card.na .price { opacity: .6; }
.card .add:disabled { opacity: .35; filter: grayscale(1); }
.stage .tag.out { background: #3a3550; color: #e7e3f7; }
.opt.na { opacity: .4; text-decoration: line-through; }
.sw.na { opacity: .35; }
.sw.na::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 2px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.4); }
.stock-line { margin-top: 2px; padding: 9px 12px; border-radius: 12px; font-size: 13px; font-weight: 700; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); }
.stock-line.ok { color: #7ff0b6; }
.stock-line.low { color: #ffc46b; }
.stock-line.out { color: #ff8fae; }
.ws-note.bad { color: #ff8fae; border-color: rgba(255,90,140,.45); }
.status.bad { color: #ff8fae; border-color: rgba(255,90,140,.45); background: rgba(255,90,140,.12); }
.btn:disabled { opacity: .5; filter: grayscale(.6); }
/* админка: склад */
.st-card { padding: 12px 14px; }
.st-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.st-head b { font-size: 14.5px; }
.st-img { width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.st-img .art { width: 40px; height: 40px; border-radius: 10px; }
.st-row { display: grid; grid-template-columns: 1fr auto 74px; align-items: center; gap: 10px; padding: 7px 0; border-top: 1px solid var(--stroke); }
.st-name { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; min-width: 0; }
.st-meta { display: grid; justify-items: end; line-height: 1.2; }
.st-meta em { font-style: normal; font-size: 11.5px; font-weight: 800; color: #ffc46b; }
.st-meta small { font-size: 11.5px; color: var(--text-3); }
.st-in { height: 40px; padding: 0 10px; text-align: center; font-weight: 800; }
.st-in.chg { border-color: rgba(101,232,255,.6); box-shadow: 0 0 0 3px rgba(0,217,255,.12); }
/* админка: заказы */
.a-order p { margin: 4px 0; }
.st-chips { margin-top: 10px; gap: 6px; }
.st-chips .opt { height: 34px; padding: 0 10px; font-size: 12.5px; }
.st-chips .opt:disabled:not(.on) { opacity: .35; }
.st-name .dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(255,255,255,.35); }

/* ===== Сервер: доставка, друг, бонусы ===== */
.sum .ln.bad span { color: #ff8fae; font-size: 12.5px; }
.friend-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; background: rgba(0,217,255,.08); border: 1px solid rgba(101,232,255,.3); font-size: 13px; color: var(--text-2); }
.friend-note b { color: var(--lcyan); }
.friend-note svg { flex: none; width: 20px; height: 20px; fill: none; stroke: var(--lcyan); stroke-width: 1.8; }
.burn { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 5px 10px; border-radius: 10px; background: rgba(255,196,107,.12); border: 1px solid rgba(255,196,107,.35); color: #ffd79a; font-size: 12.5px; position: relative; z-index: 1; }
.burn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; }
.ref-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ref-stats > div { padding: 12px; border-radius: 14px; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); }
.ref-stats b { display: block; font: 600 18px var(--font-d); }
.ref-stats small { color: var(--text-3); font-size: 12px; }
.ref-list { margin-top: 10px; }
.ref-list > div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 2px; border-top: 1px solid var(--stroke); font-size: 13.5px; }
.ref-list small { color: var(--lcyan); white-space: nowrap; }
.order .o-note { color: var(--text-3); font-size: 12px; }
.order .price small { font-family: var(--font-b); font-size: 12px; color: var(--text-3); font-weight: 600; }

/* ===== Админка ===== */
.adm-link { color: var(--text-2); word-break: break-all; }
.lnk { color: var(--lcyan); font-weight: 700; font-size: 13.5px; padding: 4px 0; }
.btn.danger { color: #ff8fae; border-color: rgba(255,90,140,.4); }
.btn.danger svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.doc .doc-cmt { color: var(--text-3); font-size: 12px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; max-width: 60%; }
.dv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dv-meta small { display: block; color: var(--text-3); font-size: 11.5px; font-weight: 700; }
.dv-meta b { font-size: 14px; }
.dv-row { display: grid; grid-template-columns: 1fr auto 76px; gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--stroke); font-size: 13px; }
.dv-row > span:nth-child(2) { color: var(--text-2); text-align: right; display: grid; }
.dv-row > span:nth-child(2) small { color: var(--text-3); font-size: 11px; }
.dv-row > b { text-align: right; font-weight: 800; }
.dv-row.dv-h { border-top: 0; padding-top: 0; color: var(--text-3); font-size: 11.5px; font-weight: 700; }
.dv-row.dv-h > span:last-child { text-align: right; }
.dv-row.dv-t { font-weight: 800; }
.dv-n { display: flex; align-items: center; gap: 8px; min-width: 0; }
.dv-n em { font-style: normal; color: var(--text-3); white-space: nowrap; }
.dot { flex: none; display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--sw); border: 1px solid rgba(255,255,255,.35); }
.pos { color: var(--lcyan); }
.neg { color: #ff8fae; }
.dl-row { padding: 12px 0; border-top: 1px solid var(--stroke); }
.dl-row:first-child { border-top: 0; padding-top: 0; }
.dl-n { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.dl-n > span { flex: 1; min-width: 0; }
.dl-n small { display: block; color: var(--text-3); font-size: 12px; font-weight: 600; }
.dl-n .x { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(0,0,0,.28); border: 1px solid var(--stroke); flex: none; }
.dl-n .x svg { width: 14px; height: 14px; fill: none; stroke: var(--text-3); stroke-width: 2.2; stroke-linecap: round; }
.dl-in { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dl-in.one { grid-template-columns: 1fr; }
.dl-in .field { margin-top: 8px; }
.dl-in .inp { height: 44px; }
.dsum:empty { display: none; }
.pick-h { margin: 16px 2px 8px; font-size: 12px; font-weight: 800; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.list-opt.pick { padding: 8px 12px; }
.list-opt[disabled] { opacity: .45; }
.list-opt .chev { width: 16px; height: 16px; fill: none; stroke: var(--text-3); stroke-width: 2; flex: none; }
.pick-img { width: 44px; height: 44px; flex: none; border-radius: 12px; overflow: hidden; background: rgba(0,0,0,.25); display: grid; place-items: center; }
.pick-img > * { max-width: 100%; max-height: 100%; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.kpi { padding: 14px; border-radius: var(--r-lg); min-width: 0; }
.kpi small { display: block; color: var(--text-3); font-size: 12px; font-weight: 700; }
.kpi b { display: block; font: 600 19px var(--font-d); margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi em { font-style: normal; color: var(--text-3); font-size: 11.5px; }
.bars { display: flex; align-items: stretch; gap: 3px; height: 150px; }
.bar-c { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bar-s { flex: 1; position: relative; }
.bar-s i, .bar-s b { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 4px 4px 1px 1px; }
.bar-s i { background: linear-gradient(180deg, var(--cyan), var(--purple)); opacity: .45; }
.bar-s b { left: 22%; right: 22%; background: var(--lcyan); box-shadow: 0 0 8px rgba(0,217,255,.45); }
.bar-c > span { height: 18px; padding-top: 4px; font-size: 10px; color: var(--text-3); text-align: center; white-space: nowrap; overflow: visible; }
.legend { display: flex; gap: 16px; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-r { background: linear-gradient(180deg, var(--cyan), var(--purple)); opacity: .6; }
.lg-p { background: var(--lcyan); }
.top-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--stroke); font-size: 13.5px; }
.top-row:first-of-type { border-top: 0; }
.top-i { width: 22px; height: 22px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--grad-soft); font-size: 11.5px; font-weight: 800; }
.top-n { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.top-n small { flex-basis: 100%; color: var(--text-3); font-size: 11.5px; }
.top-row > b { white-space: nowrap; }
.split { height: 10px; border-radius: 6px; background: rgba(193,43,255,.45); overflow: hidden; }
.split i { display: block; height: 100%; background: var(--cyan); }
.split-l { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 12.5px; color: var(--text-2); flex-wrap: wrap; }
.split-l span { display: inline-flex; align-items: center; gap: 6px; }
.split-l svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.split-l b { color: var(--text); }
.dl-row.dl-c { display: grid; grid-template-columns: 1fr 72px 34px; gap: 8px; align-items: center; padding: 8px 0; }
.dl-row.dl-c .inp { height: 40px; padding: 0 8px; text-align: center; font-weight: 800; }
.dl-row.dl-c .dl-n { font-size: 13px; }
.dl-h { display: grid; grid-template-columns: 1fr 72px 34px; gap: 8px; font-size: 11.5px; font-weight: 700; color: var(--text-3); margin-bottom: 4px; }
.dl-h span:nth-child(2) { text-align: center; }
.dv-row > span:nth-child(2) { display: block; white-space: nowrap; }
.dv-row > span:nth-child(2) small { display: block; }
.top-l { flex: 1 1 0; min-width: 0; }
.pick-img .art { width: 100%; height: 100%; max-width: none; max-height: none; border-radius: 10px; }
.two.rk { align-items: end; }

/* ===== Каталог: категории, компактный список линеек, отметка «в корзине» ===== */
.quick { display: flex; gap: 8px; margin: 2px 0 12px; }
.quick .opt { display: inline-flex; align-items: center; gap: 6px; }
.quick .opt svg { width: 16px; height: 16px; fill: none; stroke: var(--lcyan); stroke-width: 2; }
.ctiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ctile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 12px 14px; border-radius: var(--r-lg); text-align: left; min-width: 0; }
.ct-img { width: 100%; aspect-ratio: 1.45 / 1; border-radius: 14px; display: grid; place-items: center; margin-bottom: 6px; background: radial-gradient(120% 90% at 50% 100%, rgba(113,59,255,.28), transparent 60%), rgba(0,0,0,.2); overflow: hidden; }
.ct-img .art { width: 70%; height: 86%; }
.ct-img .art.photo { width: 62%; height: 88%; object-fit: contain; box-shadow: none; }
.ct-img > svg { width: 34px; height: 34px; fill: none; stroke: var(--lcyan); stroke-width: 1.6; }
.ctile b { font: 600 14px/1.25 var(--font-d); }
.ctile small { color: var(--text-3); font-size: 12px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.lrows { display: grid; gap: 8px; margin-top: 10px; }
.lrow { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 18px; text-align: left; min-width: 0; }
.lrow.has { border-color: rgba(101,232,255,.38); box-shadow: inset 0 0 0 1px rgba(0,217,255,.12); }
.lr-img { width: 58px; height: 58px; flex: none; border-radius: 14px; display: grid; place-items: center; background: rgba(0,0,0,.24); overflow: hidden; }
.lr-img .art { width: 86%; height: 86%; }
.lr-img .art.photo { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; box-shadow: none; }
.lr-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lr-tx b { font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lr-tx small { color: var(--text-3); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 4px; }
.lr-tx small svg { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--lcyan); stroke-width: 2.4; }
.lr-tx small em { font-style: normal; color: var(--lcyan); font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.lr-p { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.lr-p i { font: 600 14px var(--font-d); font-style: normal; }
.lr-p s { font-size: 11px; color: var(--text-3); }
.lr-p em { font-style: normal; font-size: 11.5px; font-weight: 800; color: var(--lcyan); }
.lr-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; flex: none; }
.lr-side small { font-size: 12px; font-weight: 800; color: #7ff0b6; white-space: nowrap; }
.lr-side small.low { color: #ffc46b; }
.lr-side small.out { color: #ff8fae; }
.lr-q, .incart { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 7px; border-radius: 8px; font-size: 11.5px; font-weight: 800; color: #04121a; background: var(--lcyan); box-shadow: 0 0 12px rgba(0,217,255,.45); white-space: nowrap; }
.lr-q svg, .incart svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 3; }
.incart { position: absolute; top: 8px; right: 8px; z-index: 1; }
.add.sm { width: 34px; height: 34px; border-radius: 11px; }
.add.sm svg { width: 15px; height: 15px; }
.lrow.na .lr-img .art { filter: grayscale(.85); opacity: .55; }
.lrow.na .lr-tx b, .lrow.na .lr-p { opacity: .6; }

/* ===== Новости ===== */
.news-card { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 14px 10px 10px; border-radius: var(--r-lg); margin-top: 12px; text-align: left; }
.nc-img, .nc-ic { width: 54px; height: 54px; flex: none; border-radius: 14px; object-fit: cover; }
.nc-ic { display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--stroke); }
.nc-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--lcyan); stroke-width: 1.8; }
.news-card .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.news-card small { color: var(--lcyan); font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.news-card b { font-size: 14.5px; line-height: 1.25; }
.news-card em { font-style: normal; color: var(--text-3); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-card .chev { width: 18px; height: 18px; fill: none; stroke: var(--text-3); stroke-width: 2; flex: none; }
.post { border-radius: var(--r-xl); overflow: hidden; margin-top: 12px; }
.post-img { display: block; width: 100%; max-height: 320px; object-fit: cover; }
.post-b { padding: 14px 16px 16px; }
.post-b small { color: var(--text-3); font-size: 12px; font-weight: 700; }
.post-b h3 { margin: 4px 0 6px; font: 600 17px/1.3 var(--font-d); }
.post-b p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.5; white-space: pre-line; overflow-wrap: anywhere; }

/* ===== Карточка линейки: выбор вкусов, в корзине, быстрый набор ===== */
.pd-price em { font-style: normal; font: 700 13px var(--font-b); color: var(--lcyan); margin-left: 4px; }
.pill-on { color: #04121a; background: var(--lcyan); border-color: transparent; gap: 4px; }
.pill-on svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; }
.sel.picker { margin-bottom: 10px; }
.sel.picker > svg:first-child { width: 20px; height: 20px; fill: none; stroke: var(--lcyan); stroke-width: 1.9; flex: none; }
.incart-panel h3 svg { stroke: var(--lcyan); }
.ic-list { display: flex; flex-wrap: wrap; gap: 6px; }
.ic-it { display: inline-flex; gap: 4px; align-items: center; min-height: 30px; padding: 4px 10px; border-radius: 10px; font-size: 12.5px; color: var(--text-2); background: rgba(0,0,0,.25); border: 1px solid var(--stroke); }
.ic-it b { color: var(--lcyan); }
.qq { display: flex; gap: 8px; margin-top: 10px; }
.qq .opt { flex: 1; height: 36px; }
.actionbar .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; margin-right: 6px; vertical-align: -3px; }
.qty-in { width: 46px; height: 100%; text-align: center; background: none; border: 0; outline: none; font: 600 16px var(--font-d); color: var(--text); padding: 0; -moz-appearance: textfield; }
.qty-in:focus { background: rgba(0,217,255,.12); border-radius: 8px; }
.stepper.sm .qty-in { width: 42px; font-size: 14px; }
.qty-in:disabled { color: var(--text-3); }

/* окно вкусов */
.sheet-body.fl-sheet { display: flex; flex-direction: column; }
.fl-head { position: sticky; top: -8px; z-index: 3; margin: -8px -18px 0; padding: 8px 18px 10px; background: linear-gradient(180deg, rgba(30,18,60,.98) 85%, rgba(30,18,60,0)); }
.fl-head .lead { margin-bottom: 10px; }
.fl-base { margin-bottom: 10px; }
.fl-tools { display: flex; gap: 8px; align-items: center; }
.fl-search { position: static; flex: 1; height: 44px; margin: 0; border-radius: 14px; background: rgba(0,0,0,.3); border: 1px solid var(--stroke); }
.fl-view { display: flex; gap: 4px; padding: 3px; border-radius: 13px; background: rgba(0,0,0,.3); border: 1px solid var(--stroke); flex: none; }
.fl-view button { width: 38px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.fl-view button.on { background: var(--text); }
.fl-view svg { width: 18px; height: 18px; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; }
.fl-view button.on svg { stroke: #12082a; }
.fl-items { display: grid; gap: 6px; padding: 4px 0 8px; }
.fl-items.grid { grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.fl-it { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 4px; border-radius: 14px; border: 1px solid var(--stroke); background: var(--glass); }
.fl-it.on { border-color: rgba(101,232,255,.6); background: rgba(0,217,255,.09); }
.fl-it.na { opacity: .45; }
.fl-n { flex: 1; min-width: 0; text-align: left; padding: 4px 8px; border-radius: 10px; }
.fl-n b { display: block; font-size: 14px; line-height: 1.25; font-weight: 700; }
.fl-n small { color: var(--text-3); font-size: 11.5px; }
.fl-n small i { font-style: normal; color: var(--lcyan); font-weight: 800; }
.fl-items.grid .fl-it { flex-direction: column; align-items: stretch; padding: 8px; gap: 6px; }
.fl-items.grid .fl-n { padding: 2px 4px; min-height: 52px; }
.fl-items.grid .fl-n b { font-size: 13px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fl-items.grid .stepper { justify-content: space-between; }
.fl-foot { position: sticky; bottom: calc((var(--safe-b) + 22px) * -1); margin: 0 -18px; padding: 10px 18px calc(var(--safe-b) + 14px); background: linear-gradient(180deg, rgba(12,7,26,0), rgba(12,7,26,.96) 30%); z-index: 3; }

/* ===== Корзина: промокод ===== */
.promo-row { display: flex; gap: 8px; }
.promo-row .inp { flex: 1; min-width: 0; text-transform: uppercase; }
.promo-row .btn { flex: none; height: 50px; padding: 0 16px; }
.promo-on { display: flex; align-items: center; gap: 12px; }
.promo-on .ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--stroke); }
.promo-on .ic svg { width: 19px; height: 19px; fill: none; stroke: var(--lcyan); stroke-width: 1.9; }
.promo-on .tx { flex: 1; min-width: 0; }
.promo-on b { display: block; font-size: 14.5px; color: var(--lcyan); }
.promo-on small { color: var(--text-3); font-size: 12.5px; }
.promo-on .x { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; flex: none; }
.promo-on .x svg { width: 16px; height: 16px; fill: none; stroke: var(--text-3); stroke-width: 2.2; }

/* ===== Админка: сворачиваемые категории ===== */
.fold-h { display: flex; align-items: center; gap: 10px; width: 100%; padding: 14px 16px; border-radius: var(--r-lg); margin-top: 8px; text-align: left; }
.fold-h b { flex: 1; min-width: 0; font-size: 14.5px; }
.fold-h small { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.fold-h .chev { width: 18px; height: 18px; fill: none; stroke: var(--text-3); stroke-width: 2; transition: transform .25s; flex: none; }
.fold-h.open .chev { transform: rotate(180deg); }
.fold-h.sub { margin-left: 14px; width: calc(100% - 14px); padding: 11px 14px; }

/* ===== Админка каталога: товары, редактор линейки, категории, импорт ===== */
.adm-tools { display: flex; gap: 8px; margin: 2px 0 10px; }
.adm-tools .opt { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.adm-tools .opt svg { width: 17px; height: 17px; fill: none; stroke: var(--lcyan); stroke-width: 1.9; }
.fold-row { display: flex; align-items: center; gap: 8px; }
.fold-row .fold-h { flex: 1; }
.fold-row.sub { padding-left: 14px; }
.fold-row.sub .fold-h { margin-left: 0; width: auto; }
.ck-all, .ck { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; border: 1.5px solid var(--stroke-hi); background: rgba(0,0,0,.25); margin-top: 8px; }
.ck { margin: 0; width: 26px; height: 26px; border-radius: 8px; }
.ck-all svg, .ck svg { width: 15px; height: 15px; fill: none; stroke: transparent; stroke-width: 3; }
.ck-all.on, .ck.on { background: var(--lcyan); border-color: transparent; box-shadow: 0 0 12px rgba(0,217,255,.45); }
.ck-all.on svg, .ck.on svg { stroke: #04121a; }
.aprow { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; margin-top: 6px; text-align: left; }
.aprow.on { border-color: rgba(101,232,255,.55); background: rgba(0,217,255,.08); }
.aprow.off .lr-img { opacity: .5; }
.aprow .lr-img { width: 48px; height: 48px; border-radius: 12px; }
.aprow .lr-tx small .bad, .aprow em.bad { color: #ff8fae; font-style: normal; font-weight: 800; }
.aprow .ws-l { color: var(--lcyan); font-weight: 700; }
.bulk-sec { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--stroke); }
.bulk-sec h3 { margin: 0 0 6px; font: 600 15px var(--font-d); display: flex; align-items: center; gap: 8px; }
.bulk-sec h3 svg { width: 18px; height: 18px; fill: none; stroke: var(--lcyan); stroke-width: 1.9; }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 36px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px; background-size: 6px 6px; background-repeat: no-repeat; text-overflow: ellipsis; }
select.inp option { background: #140c2a; color: var(--text); }
.inp.ta { height: auto; min-height: 50px; padding: 12px 14px; line-height: 1.45; resize: vertical; font: inherit; font-size: 14.5px; }
.ap-photo { display: flex; gap: 14px; align-items: center; }
.ap-img { width: 96px; height: 96px; flex: none; border-radius: 18px; display: grid; place-items: center; background: radial-gradient(120% 90% at 50% 100%, rgba(113,59,255,.28), transparent 60%), rgba(0,0,0,.24); overflow: hidden; }
.ap-img .art { width: 88%; height: 88%; }
.ap-img .art.photo { width: 100%; height: 100%; object-fit: cover; box-shadow: none; }
.ap-ph-b { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; }
.ap-ph-b .btn { height: 42px; padding: 0 14px; font-size: 13.5px; }
.ap-ph-b .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; margin-right: 6px; }
.np-img { width: 96px; height: 96px; border-radius: 16px; object-fit: cover; flex: none; }
.ap-opt { margin-top: 12px; }
.ap-opt:first-of-type { margin-top: 0; }
.ap-opt-h { display: flex; align-items: center; gap: 8px; margin: 0 2px 6px; }
.ap-opt-h b { font-size: 13.5px; }
.ap-opt-h small { color: var(--lcyan); font-weight: 800; font-size: 12px; flex: 1; }
.ap-opt-h .x { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; }
.ap-opt-h .x svg { width: 14px; height: 14px; fill: none; stroke: var(--text-3); stroke-width: 2.2; }
.actionbar .btn.danger { flex: none; width: 54px; padding: 0; }
.actionbar .btn.danger svg { margin: 0; }
.cat-row { display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 16px; margin-top: 8px; }
.cat-row.sub { margin-left: 18px; }
.cat-n { flex: 1; min-width: 0; text-align: left; padding: 8px 10px; border-radius: 12px; }
.cat-n b { display: block; font-size: 14.5px; }
.cat-n small { color: var(--text-3); font-size: 12px; }
.ic-btn { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(0,0,0,.25); border: 1px solid var(--stroke); flex: none; }
.ic-btn svg { width: 17px; height: 17px; fill: none; stroke: var(--text-2); stroke-width: 2.2; }
.ic-btn:disabled { opacity: .3; }
.imp-rep .kpis { margin-top: 0; }
.imp-rep .kpi { background: rgba(0,0,0,.22); border: 1px solid var(--stroke); }
.imp-list { margin-top: 12px; display: grid; gap: 4px; max-height: 360px; overflow: auto; }
.imp-list div { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.2); font-size: 13px; }
.imp-list b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.imp-list small { color: var(--text-3); white-space: nowrap; flex: none; }
.imp-list em { color: var(--lcyan); font-style: normal; font-weight: 800; }
.order .h .x { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; flex: none; }
.order .h .x svg { width: 17px; height: 17px; fill: none; stroke: var(--text-3); stroke-width: 1.9; }

/* ===== Точки самовывоза (админка) ===== */
.pt-h { display: flex; align-items: flex-start; gap: 10px; }
.pt-h .tx { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pt-h .tx b { font-size: 15px; }
.pt-h .tx small { color: var(--text-2); font-size: 13px; }
.pt-card.off { opacity: .62; }

/* ===== Сотрудники (админка) ===== */
.sf-row.off { opacity: .6; }
.sf-perms { display: grid; gap: 2px; margin-top: 10px; }
.sf-perm { display: flex; align-items: flex-start; gap: 10px; padding: 9px 2px; font-size: 14px; line-height: 1.35; cursor: pointer; }
.sf-perm input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--cyan); }
.sf-perm em { color: var(--text-3); font-style: normal; font-size: 12.5px; }
.sf-perm.ro { opacity: .75; cursor: default; }
