/* =====================================================================
   MONO Store — Telegram Mini App
   Монохром: белый · серый · чёрный. Glass + morphism + liquid glass.
   Layout: одна колонка до 560px, плавающая стеклянная шапка и таб-бар.
   ===================================================================== */

:root {
  /* Цвета (светлая тема) */
  --bg: #ebebee;
  --bg-deep: #dcdce1;
  --ink: #0c0c0e;
  --ink-2: #56565e;
  --ink-3: #8c8c95;
  --line: rgba(12, 12, 16, .08);
  --line-2: rgba(12, 12, 16, .14);
  --fill: rgba(12, 12, 16, .05);
  --fill-2: rgba(12, 12, 16, .09);
  --solid: #0c0c0e;
  --on-solid: #fafafa;
  --glass: rgba(255, 255, 255, .5);
  --glass-2: rgba(250, 250, 252, .74);
  --glass-3: rgba(255, 255, 255, .26);
  --rim: rgba(255, 255, 255, .95);
  --rim-2: rgba(255, 255, 255, .3);
  --spec: rgba(255, 255, 255, .7);
  --shade: rgba(20, 20, 30, .16);
  --scrim: rgba(10, 10, 14, .28);
  --blob-a: #ffffff;
  --blob-b: #c3c3ca;
  --blob-c: #8f8f98;
  --stage-a: #ffffff;
  --stage-b: rgba(255, 255, 255, 0);
  --dark-card: #0f0f12;
  --dark-card-ink: #f5f5f7;

  /* Типографика */
  --f-display: "Unbounded", -apple-system, "SF Pro Display", system-ui, sans-serif;
  --f-body: "Onest", -apple-system, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Форма и движение */
  --r-xl: 30px;
  --r-lg: 24px;
  --r-md: 18px;
  --r-sm: 13px;
  --blur: 24px;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease: cubic-bezier(.22, .8, .24, 1);
  --gutter: 16px;
  --tabbar-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: max(env(safe-area-inset-top, 0px), var(--tg-content-safe-area-inset-top, 0px));

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #060607; --bg-deep: #000; --ink: #f4f4f6; --ink-2: #a4a4ac; --ink-3: #6b6b74;
    --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .15);
    --fill: rgba(255, 255, 255, .06); --fill-2: rgba(255, 255, 255, .11);
    --solid: #f4f4f6; --on-solid: #0b0b0d;
    --glass: rgba(255, 255, 255, .055); --glass-2: rgba(26, 26, 30, .7); --glass-3: rgba(255, 255, 255, .03);
    --rim: rgba(255, 255, 255, .26); --rim-2: rgba(255, 255, 255, .05); --spec: rgba(255, 255, 255, .18);
    --shade: rgba(0, 0, 0, .6); --scrim: rgba(0, 0, 0, .55);
    --blob-a: #44444c; --blob-b: #1c1c21; --blob-c: #66666f;
    --stage-a: rgba(255, 255, 255, .13); --stage-b: rgba(255, 255, 255, 0);
    --dark-card: #f2f2f4; --dark-card-ink: #0c0c0e;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #060607; --bg-deep: #000; --ink: #f4f4f6; --ink-2: #a4a4ac; --ink-3: #6b6b74;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .15);
  --fill: rgba(255, 255, 255, .06); --fill-2: rgba(255, 255, 255, .11);
  --solid: #f4f4f6; --on-solid: #0b0b0d;
  --glass: rgba(255, 255, 255, .055); --glass-2: rgba(26, 26, 30, .7); --glass-3: rgba(255, 255, 255, .03);
  --rim: rgba(255, 255, 255, .26); --rim-2: rgba(255, 255, 255, .05); --spec: rgba(255, 255, 255, .18);
  --shade: rgba(0, 0, 0, .6); --scrim: rgba(0, 0, 0, .55);
  --blob-a: #44444c; --blob-b: #1c1c21; --blob-c: #66666f;
  --stage-a: rgba(255, 255, 255, .13); --stage-b: rgba(255, 255, 255, 0);
  --dark-card: #f2f2f4; --dark-card-ink: #0c0c0e;
  color-scheme: dark;
}

/* ---------------- База ---------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
body {
  margin: 0; min-height: 100%;
  background: var(--bg); color: var(--ink);
  font: 400 15px/1.45 var(--f-body);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
  font-feature-settings: "ss01", "cv11";
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
svg { display: block; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 10px; }
::selection { background: var(--ink); color: var(--bg); }
[hidden] { display: none !important; }

/* ---------------- Атмосфера: живой фон ---------------- */
#bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: radial-gradient(120% 80% at 50% -10%, var(--bg) 0%, var(--bg-deep) 100%); }
#bg i { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .9; will-change: transform; }
/* Telegram Desktop: статичный фон и лёгкое стекло — меньше нагрузка на встроенный браузер */
.desktop #bg i { animation: none; will-change: auto; filter: blur(50px); }
.desktop .glass, .desktop .lg { -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%); }
#bg i:nth-child(1) { width: 70vmax; height: 70vmax; left: -25vmax; top: -30vmax; background: var(--blob-a); animation: drift1 26s var(--ease) infinite alternate; }
#bg i:nth-child(2) { width: 55vmax; height: 55vmax; right: -25vmax; top: 18vh; background: var(--blob-b); animation: drift2 32s var(--ease) infinite alternate; }
#bg i:nth-child(3) { width: 45vmax; height: 45vmax; left: -10vmax; bottom: -22vmax; background: var(--blob-c); opacity: .5; animation: drift3 38s var(--ease) infinite alternate; }
#bg::after {
  content: ""; position: absolute; inset: 0; opacity: .05; mix-blend-mode: overlay;
  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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift1 { to { transform: translate3d(12vmax, 8vmax, 0) scale(1.08); } }
@keyframes drift2 { to { transform: translate3d(-14vmax, 10vmax, 0) scale(.92); } }
@keyframes drift3 { to { transform: translate3d(10vmax, -12vmax, 0) scale(1.12); } }

/* ---------------- Стекло ---------------- */
.glass, .lg {
  position: relative; isolation: isolate;
  background: var(--glass);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(170%);
  backdrop-filter: blur(var(--blur)) saturate(170%);
  border-radius: var(--r-lg);
  box-shadow: 0 12px 32px -14px var(--shade), 0 2px 6px -3px var(--shade), inset 0 1px 0 0 var(--rim-2);
}
/* Кромка-блик: градиентная рамка через маску */
.glass::before, .lg::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(140deg, var(--rim) 0%, var(--rim-2) 30%, transparent 55%, var(--rim-2) 80%, var(--rim) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
/* Liquid glass: толщина стекла, внутренние преломления и подвижный блик */
.lg {
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(18px) saturate(190%) brightness(1.04);
  backdrop-filter: blur(18px) saturate(190%) brightness(1.04);
  box-shadow:
    0 18px 40px -16px var(--shade), 0 3px 10px -4px var(--shade),
    inset 1.5px 1.5px 1px -1px var(--rim),
    inset -1px -1px 1px -1px var(--rim),
    inset 0 0 14px 1px var(--rim-2),
    inset 0 -12px 22px -14px var(--shade);
}
.lg::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(160px circle at var(--mx, 22%) var(--my, -30%), var(--spec), transparent 68%);
  mix-blend-mode: soft-light; opacity: .9; transition: opacity .3s;
}
.glass-flat { background: var(--glass); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px var(--line); }

/* Нажатие: «жидкое» сжатие с пружиной */
.press { transition: transform .45s var(--spring), background-color .2s, color .2s, box-shadow .25s; will-change: transform; }
.press:active { transform: scale(.955); transition-duration: .12s; transition-timing-function: var(--ease); }

/* ---------------- Каркас ---------------- */
#app { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; min-height: 100vh; min-height: var(--tg-viewport-stable-height, 100vh); }
.view { padding: 4px var(--gutter) calc(var(--tabbar-h) + 44px + var(--safe-b)); }
.view.no-tabbar { padding-bottom: calc(112px + var(--safe-b)); }
.view-enter { animation: viewIn .5s var(--ease) both; }
.view-back { animation: viewBack .45s var(--ease) both; }
@keyframes viewIn { from { opacity: 0; transform: translate3d(14px, 0, 0); filter: blur(3px); } }
@keyframes viewBack { from { opacity: 0; transform: translate3d(-14px, 0, 0); filter: blur(3px); } }

/* Шапка */
.topbar {
  position: sticky; top: 0; z-index: 30;
  padding: calc(var(--safe-t) + 10px) var(--gutter) 10px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
  transition: background-color .3s, box-shadow .3s;
}
.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .3s;
  background: var(--glass-2);
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 1px 0 var(--line);
  -webkit-mask: linear-gradient(#000 70%, transparent); mask: linear-gradient(#000 70%, transparent);
}
.topbar.scrolled::before { opacity: 1; }
.tb-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.tb-right { display: flex; justify-content: flex-end; gap: 8px; }
.tb-title { font: 600 16px/1.2 var(--f-body); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; opacity: 0; transform: translateY(4px); transition: .3s var(--ease); }
.topbar.scrolled .tb-title, .topbar.always-title .tb-title { opacity: 1; transform: none; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center;
  font: 700 15px/1 var(--f-display); letter-spacing: -.04em;
  background: var(--solid) linear-gradient(145deg, rgba(127,127,135,.35), transparent 60%); color: var(--on-solid);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), inset 0 0 0 1px rgba(127,127,135,.25), 0 6px 16px -6px var(--shade);
}
.logo-text { font: 600 15px/1 var(--f-display); letter-spacing: .02em; }
.logo-sub { font-size: 11.5px; color: var(--ink-3); margin-top: 3px; letter-spacing: .01em; }

/* Кнопки-иконки */
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; position: relative; flex: none;
}
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn svg { width: 21px; height: 21px; position: relative; z-index: 3; }
.icon-btn.sm svg { width: 18px; height: 18px; }
.icon-btn .dot { position: absolute; top: 2px; right: 0; z-index: 4; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--solid); color: var(--on-solid); font: 600 10.5px/18px var(--f-body); text-align: center; }
.ico { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Таб-бар */
.tabbar {
  position: fixed; z-index: 40; left: 50%; bottom: calc(var(--safe-b) + 12px);
  width: min(calc(100% - 2 * var(--gutter)), 440px); height: var(--tabbar-h);
  transform: translateX(-50%); border-radius: 999px; padding: 6px;
  display: grid; grid-template-columns: repeat(5, 1fr);
  transition: transform .5s var(--spring), opacity .3s;
}
.tabbar.hide { transform: translate(-50%, 140%); opacity: 0; pointer-events: none; }
.tab { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--ink-3); font-size: 10.5px; font-weight: 500; letter-spacing: .01em; border-radius: 999px; transition: color .25s; }
.tab .ico { width: 23px; height: 23px; }
.tab.on { color: var(--ink); }
.tab .badge-n { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--solid); color: var(--on-solid); font: 600 10px/17px var(--f-body); text-align: center; transform-origin: center; }
.tab .badge-n.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.4); } }
.tab-lens {
  position: absolute; z-index: 2; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5);
  border-radius: 999px; background: var(--fill-2);
  box-shadow: inset 1px 1px 1px -0.5px var(--rim), inset -1px -1px 1px -0.5px var(--rim-2), 0 4px 14px -6px var(--shade);
  transition: transform .55s var(--spring);
}
.tab-lens.stretch { animation: lensStretch .55s var(--ease); }
@keyframes lensStretch { 35% { scale: 1.22 .88; } 70% { scale: .96 1.04; } }

/* ---------------- Типографика ---------------- */
.eyebrow { font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.h1 { font: 600 27px/1.12 var(--f-display); letter-spacing: -.035em; margin: 0; text-wrap: balance; }
.h2 { font: 600 19px/1.2 var(--f-display); letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.h3 { font: 600 16px/1.3 var(--f-body); margin: 0; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: 13px; }
.xs { font-size: 11.5px; }
.mono { font-family: var(--f-mono); font-size: .92em; letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.price { font: 600 16px/1.2 var(--f-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-big { font: 600 30px/1.05 var(--f-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.price-old { color: var(--ink-3); text-decoration: line-through; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sec { margin-top: 30px; }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.link { font-size: 14px; font-weight: 500; color: var(--ink-2); display: inline-flex; align-items: center; gap: 2px; }
.link .ico { width: 16px; height: 16px; }
.page-head { padding: 6px 0 18px; }
.page-head .h1 { margin-top: 4px; }
.page-head p { margin: 8px 0 0; color: var(--ink-2); }

/* ---------------- Кнопки ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15.5px; letter-spacing: -.005em; white-space: nowrap;
  position: relative; isolation: isolate; overflow: hidden;
}
.btn .ico { width: 19px; height: 19px; }
.btn-solid { background: var(--solid); color: var(--on-solid); box-shadow: 0 10px 24px -10px var(--shade), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-solid::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(255,255,255,.16), transparent 55%); pointer-events: none; }
.btn-ghost { background: var(--fill); color: var(--ink); }
.btn-glass { color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn[disabled], .btn.is-busy { opacity: .45; pointer-events: none; }
.btn.is-busy::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- Чипы ---------------- */
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(-1 * var(--gutter)); padding: 2px var(--gutter) 4px; scroll-padding: var(--gutter); }
.chips::-webkit-scrollbar, .hscroll::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 36px; padding: 0 15px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--fill); color: var(--ink); font-size: 14px; font-weight: 500; white-space: nowrap;
  box-shadow: inset 0 0 0 1px var(--line);
}
.chip.on { background: var(--solid); color: var(--on-solid); box-shadow: 0 6px 16px -8px var(--shade); }
.chip .count { font-size: 12px; opacity: .55; font-variant-numeric: tabular-nums; }
.chip .ico { width: 16px; height: 16px; }

/* ---------------- Горизонтальные ленты ---------------- */
.hscroll { display: flex; gap: 12px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scrollbar-width: none; margin: -12px calc(-1 * var(--gutter)) -14px; padding: 12px var(--gutter) 34px; scroll-padding: var(--gutter); }
.hscroll > * { scroll-snap-align: start; flex: none; }

/* ---------------- Герой-баннеры ---------------- */
.hero { margin-top: 6px; }
.hero .hscroll { padding-bottom: 36px; margin-bottom: -22px; }
.hero-card {
  width: calc(100vw - 2 * var(--gutter) - 26px); max-width: 500px; height: 218px; border-radius: var(--r-xl);
  display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; padding: 22px 0 22px 22px;
}
.hero-card[data-tone="dark"] { background: #0d0d10; color: #f5f5f7; box-shadow: 0 14px 26px -16px rgba(0,0,0,.5), inset 0 1px 0 rgba(255,255,255,.12); }
.hero-card[data-tone="dark"] .muted { color: #a5a5ad; }
.hero-card[data-tone="dark"]::before { background: linear-gradient(140deg, rgba(255,255,255,.22), transparent 35%, transparent 75%, rgba(255,255,255,.08)); }
.hero-card[data-tone="dark"] .btn-hero { background: #f5f5f7; color: #0d0d10; }
.hero-card[data-tone="light"] { background: linear-gradient(160deg, rgba(255,255,255,.92), rgba(240,240,244,.75)); color: #0c0c0e; }
.hero-card[data-tone="light"] .muted { color: #56565e; }
.hero-card[data-tone="light"] .btn-hero { background: #0c0c0e; color: #fafafa; }
.hero-text { display: flex; flex-direction: column; min-width: 0; position: relative; z-index: 3; }
.hero-text .eyebrow { color: inherit; opacity: .55; }
.hero-title { font: 600 25px/1.05 var(--f-display); letter-spacing: -.045em; margin: 8px 0 8px; text-wrap: balance; }
.hero-sub { font-size: 13.5px; line-height: 1.4; margin: 0; }
.btn-hero { margin-top: auto; align-self: flex-start; height: 38px; padding: 0 16px; font-size: 13.5px; background: var(--solid); color: var(--on-solid); }
.hero-art { position: relative; z-index: 2; display: grid; place-items: center; margin: -10px -8px -30px 0; }
.hero-art svg, .hero-art img { width: 100%; height: 100%; max-height: 240px; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(0,0,0,.28)); }
.dots { display: flex; justify-content: center; align-items: center; gap: 0; position: relative; z-index: 4; }
.dot { flex: none; width: 16px; height: 20px; display: grid; place-items: center; transition: width .35s var(--ease); }
.dot span { display: block; width: 6px; height: 6px; border-radius: 999px; background: var(--ink-3); opacity: .45; transition: width .35s var(--ease), opacity .25s, background-color .25s; }
.dot.on { width: 30px; }
.dot.on span { width: 20px; opacity: 1; background: var(--ink); }
/* Стрелки листания — только на компьютере */
.hero { position: relative; }
.snav { display: none; position: absolute; z-index: 6; width: 38px; height: 38px; border-radius: 50%; place-items: center; }
.snav .ico { width: 18px; height: 18px; position: relative; z-index: 3; }
.desktop .snav { display: grid; }
.snav.prev { left: 4px; } .snav.next { right: 4px; }
.hero .snav { top: auto; bottom: -9px; width: 32px; height: 32px; }
.hero .snav.prev { left: auto; right: 40px; } .hero .snav.next { right: 2px; }
.stage .snav { top: calc(50% - 19px); }
.stage .snav.prev { left: var(--gutter); } .stage .snav.next { right: var(--gutter); }
.dragging, .dragging * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }
.dragging { scroll-snap-type: none !important; scroll-behavior: auto !important; }

.notice { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); padding: 8px 14px; border-radius: 999px; margin: 2px 0 12px; }
.notice .ico { width: 15px; height: 15px; }

/* ---------------- Категории ---------------- */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat { padding: 12px 10px 12px; border-radius: var(--r-lg); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.cat-art { width: 100%; aspect-ratio: 1.25; display: grid; place-items: center; }
.cat-art svg { width: 82%; height: 100%; filter: drop-shadow(0 8px 10px rgba(0,0,0,.16)); }
.cat-art img { width: 82% !important; height: 100% !important; min-height: 0; object-fit: contain; filter: drop-shadow(0 8px 10px rgba(0,0,0,.16)); }
.cat-art { overflow: hidden; }
.arow-art img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cat-title { font-weight: 600; font-size: 14px; position: relative; z-index: 3; }
.cat-sub { font-size: 11px; color: var(--ink-3); line-height: 1.25; position: relative; z-index: 3; }

.catrow { display: grid; grid-template-columns: 92px 1fr auto; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: var(--r-lg); }
.catrow + .catrow { margin-top: 10px; }
.catrow .cat-art { aspect-ratio: 1; border-radius: 18px; background: radial-gradient(circle at 50% 40%, var(--stage-a), var(--stage-b) 70%); }
.catrow .cat-art svg { width: 86%; }
.catrow .h3 { font-size: 17px; }

/* ---------------- Карточка товара ---------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pcard { border-radius: var(--r-lg); padding: 8px 8px 12px; display: flex; flex-direction: column; min-width: 0; }
.hscroll .pcard { width: 168px; }
.pcard-art { position: relative; aspect-ratio: 1; border-radius: 18px; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, var(--stage-a) 0%, var(--stage-b) 72%); }
.pcard-art svg, .pcard-art img { width: 86%; height: 86%; object-fit: contain; filter: drop-shadow(0 10px 14px rgba(0,0,0,.2)); transition: transform .6s var(--spring); }
.pcard:active .pcard-art svg { transform: scale(.96) rotate(-1deg); }
.pcard-badge { position: absolute; top: 8px; left: 8px; z-index: 3; }
.pcard-fav { position: absolute; top: 6px; right: 6px; z-index: 3; }
.pcard-body { padding: 10px 6px 0; display: flex; flex-direction: column; gap: 4px; flex: 1; position: relative; z-index: 3; }
.pcard-title { font-weight: 600; font-size: 14.5px; line-height: 1.25; }
.pcard-sub { font-size: 12px; color: var(--ink-3); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-dots { display: flex; gap: 4px; align-items: center; margin: 3px 0 1px; min-height: 12px; }
.pcard-dots i { width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15), inset 0 1px 1px rgba(255,255,255,.5); }
.pcard-dots span { font-size: 11px; color: var(--ink-3); margin-left: 2px; }
.pcard-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 6px; }
.pcard-foot .price { font-size: 14.5px; }
.pcard-add { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--solid); color: var(--on-solid); flex: none; }
.pcard-add .ico { width: 17px; height: 17px; stroke-width: 2; }

.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; background: var(--solid); color: var(--on-solid); }
.badge.soft { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fav-btn.on .ico { fill: currentColor; }
.fav-btn.pop .ico { animation: heart .5s var(--spring); }
@keyframes heart { 40% { transform: scale(1.35); } }

/* ---------------- Страница товара ---------------- */
.stage { position: relative; margin: 0 calc(-1 * var(--gutter)); height: 360px; }
.stage-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.stage-track::-webkit-scrollbar { display: none; }
.stage-slide { flex: none; width: 100%; height: 100%; scroll-snap-align: center; display: grid; place-items: center; position: relative; }
.stage-slide::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, var(--stage-a), var(--stage-b) 68%); }
.stage-slide svg, .stage-slide img { position: relative; height: 82%; width: 82%; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(0,0,0,.22)); animation: swapIn .45s var(--ease); }
@keyframes swapIn { from { opacity: 0; } }
.stage .dots { position: absolute; bottom: 0; left: 0; right: 0; }
.stage-actions { position: absolute; right: var(--gutter); top: 8px; display: flex; flex-direction: column; gap: 10px; z-index: 5; }
.stage-label { position: absolute; left: var(--gutter); top: 10px; z-index: 5; display: flex; gap: 6px; }

.p-head { margin-top: 6px; }
.p-title { font: 600 28px/1.08 var(--f-display); letter-spacing: -.045em; margin: 8px 0 6px; text-wrap: balance; }
.p-tagline { color: var(--ink-2); margin: 0; }
.p-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-top: 16px; }
.p-price .save { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--fill-2); }
.p-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 10px; font-size: 13px; color: var(--ink-2); }
.p-meta span { display: inline-flex; align-items: center; gap: 6px; }
.p-meta .ico { width: 16px; height: 16px; }
.stock-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--fill-2); }
.stock-dot.order { background: transparent; box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 3px var(--fill-2); }
.stock-dot.out { background: var(--ink-3); }

.config { margin-top: 22px; padding: 18px 16px; border-radius: var(--r-xl); }
.opt-group + .opt-group { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.opt-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; position: relative; z-index: 3; }
.opt-name { font-weight: 600; font-size: 15px; }
.opt-val { font-size: 13.5px; color: var(--ink-2); text-align: right; }
.opt-hint { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 0; position: relative; z-index: 3; }
.swatches { display: flex; flex-wrap: wrap; gap: 12px; position: relative; z-index: 3; }
.swatch { width: 44px; height: 44px; border-radius: 50%; position: relative; transition: transform .45s var(--spring), box-shadow .25s; box-shadow: 0 0 0 1px var(--line-2); }
.swatch i { position: absolute; inset: 4px; border-radius: 50%; box-shadow: inset 0 -4px 8px rgba(0,0,0,.18), inset 0 3px 5px rgba(255,255,255,.55), 0 2px 6px rgba(0,0,0,.15); }
.swatch i::after { content: ""; position: absolute; left: 22%; top: 14%; width: 34%; height: 24%; border-radius: 50%; background: rgba(255,255,255,.55); filter: blur(1.5px); }
.swatch.on { box-shadow: 0 0 0 2px var(--ink); transform: scale(1.06); }
.swatch.soldout { opacity: .4; }
.swatch.soldout::after { content: ""; position: absolute; left: 50%; top: 4px; bottom: 4px; width: 2px; background: var(--ink); transform: rotate(45deg); }
.opts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 8px; position: relative; z-index: 3; }
.opts.wide { grid-template-columns: 1fr; }
.opt {
  min-height: 54px; padding: 9px 14px; border-radius: 16px; text-align: left; display: flex; flex-direction: column; justify-content: center; gap: 2px;
  background: var(--fill); box-shadow: inset 0 0 0 1px var(--line);
}
.opt b { font-weight: 600; font-size: 14.5px; line-height: 1.2; }
.opt-delta { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.opt.on { background: var(--solid); color: var(--on-solid); box-shadow: 0 10px 20px -12px var(--shade); }
.opt.on .opt-delta { color: inherit; opacity: .6; }
.opt.off { opacity: .35; }
.opt.off b { text-decoration: line-through; text-decoration-thickness: 1px; }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 14px; }
.fact { padding: 12px 10px; border-radius: var(--r-md); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink-2); line-height: 1.25; }
.fact .ico { width: 20px; height: 20px; color: var(--ink); position: relative; z-index: 3; }
.fact span { position: relative; z-index: 3; }

.feat { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feat li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.feat li .ico { width: 18px; height: 18px; margin-top: 2px; }
.specs { width: 100%; border-collapse: collapse; font-size: 14px; }
.specs td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs tr:last-child td { border-bottom: 0; }
.specs td:first-child { color: var(--ink-3); width: 42%; padding-right: 12px; }
details.acc { border-radius: var(--r-lg); padding: 0 16px; }
details.acc + details.acc { margin-top: 10px; }
details.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; padding: 16px 0; font-weight: 600; cursor: pointer; position: relative; z-index: 3; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary .ico { transition: transform .4s var(--spring); }
details.acc[open] summary .ico { transform: rotate(180deg); }
details.acc .acc-body { padding: 0 0 16px; position: relative; z-index: 3; }
.prose { color: var(--ink-2); white-space: pre-line; margin: 0; }

/* Нижняя панель покупки */
.buybar {
  position: fixed; z-index: 40; left: 50%; bottom: calc(var(--safe-b) + 12px); transform: translateX(-50%);
  width: min(calc(100% - 2 * var(--gutter)), 528px); border-radius: 999px; padding: 8px 8px 8px 22px;
  display: flex; align-items: center; gap: 12px; animation: barIn .6s var(--spring) both;
}
@keyframes barIn { from { transform: translate(-50%, 130%); } }
.bb-info { flex: 1; min-width: 0; position: relative; z-index: 3; }
.bb-info .price { font-size: 18px; display: block; }
.bb-sub { font-size: 11.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.buybar .btn { flex: none; position: relative; z-index: 3; }

/* ---------------- Списки / меню ---------------- */
.list { border-radius: var(--r-lg); padding: 4px 0; }
.list + .list { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; width: 100%; text-align: left; position: relative; z-index: 3; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 64px; right: 16px; height: 1px; background: var(--line); }
.row-ic { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--fill-2); flex: none; }
.row-ic .ico { width: 19px; height: 19px; }
.row-main { flex: 1; min-width: 0; }
.row-title { font-weight: 500; }
.row-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.row-end { color: var(--ink-3); display: flex; align-items: center; gap: 6px; font-size: 14px; }
.row-end .ico { width: 18px; height: 18px; }

/* ---------------- Корзина ---------------- */
.citem { display: grid; grid-template-columns: 84px 1fr; gap: 14px; padding: 12px; border-radius: var(--r-lg); }
.citem + .citem { margin-top: 10px; }
.citem-art { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 45%, var(--stage-a), var(--stage-b) 75%); position: relative; z-index: 3; }
.citem-art svg, .citem-art img { width: 84%; height: 84%; object-fit: contain; filter: drop-shadow(0 6px 8px rgba(0,0,0,.18)); }
.citem-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; position: relative; z-index: 3; }
.citem-title { font-weight: 600; line-height: 1.25; padding-right: 30px; }
.citem-opts { font-size: 12.5px; color: var(--ink-3); line-height: 1.35; }
.citem-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.citem-del { position: absolute; top: -4px; right: -4px; color: var(--ink-3); }
.citem.gone { opacity: .5; }
.stepper { display: inline-flex; align-items: center; height: 36px; border-radius: 999px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.stepper button { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; }
.stepper button .ico { width: 16px; height: 16px; stroke-width: 2; }
.stepper span { min-width: 22px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.promo-box { display: flex; gap: 8px; padding: 6px; border-radius: 999px; margin-top: 16px; }
.promo-box input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 0 14px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; outline: none; position: relative; z-index: 3; }
.promo-box input::placeholder { text-transform: none; letter-spacing: 0; color: var(--ink-3); font-weight: 400; }
.promo-box .btn { position: relative; z-index: 3; }
.promo-on { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 12px 12px 16px; border-radius: var(--r-md); margin-top: 16px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.promo-on b { font-family: var(--f-mono); letter-spacing: .04em; }
.summary { padding: 16px; border-radius: var(--r-lg); margin-top: 16px; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; color: var(--ink-2); font-variant-numeric: tabular-nums; position: relative; z-index: 3; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 12px; margin-top: 8px; border-top: 1px solid var(--line); position: relative; z-index: 3; }
.sum-total .price { font-size: 22px; }

/* ---------------- Формы ---------------- */
.form-sec { margin-top: 24px; }
.form-sec-title { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.step-n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--solid); color: var(--on-solid); font: 600 12px/1 var(--f-display); flex: none; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field + .field { margin-top: 12px; }
.field > label { font-size: 13px; color: var(--ink-2); padding-left: 4px; }
.input, .textarea, .select {
  width: 100%; min-height: 52px; padding: 13px 16px; border-radius: 16px; border: 0; outline: none;
  background: var(--glass); box-shadow: inset 0 0 0 1px var(--line-2);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: box-shadow .2s, background-color .2s; font-size: 16px;
}
.textarea { min-height: 96px; resize: vertical; line-height: 1.45; }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 22px) 23px, calc(100% - 17px) 23px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.input:focus, .textarea:focus, .select:focus { box-shadow: inset 0 0 0 2px var(--ink); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.field.err .input, .field.err .textarea { box-shadow: inset 0 0 0 2px var(--ink); background-image: repeating-linear-gradient(135deg, transparent 0 8px, var(--fill) 8px 10px); }
.field-err { font-size: 12.5px; font-weight: 500; padding-left: 4px; display: flex; align-items: center; gap: 6px; }
.field-err .ico { width: 15px; height: 15px; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; }
.rcards { display: grid; gap: 10px; }
.rcard { display: grid; grid-template-columns: 24px 1fr auto; gap: 12px; align-items: center; padding: 15px 16px; border-radius: var(--r-md); text-align: left; width: 100%; box-shadow: inset 0 0 0 1px var(--line); background: var(--glass); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.rcard.on { box-shadow: inset 0 0 0 2px var(--ink); background: var(--glass-2); }
.rdot { width: 22px; height: 22px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); display: grid; place-items: center; transition: box-shadow .25s; }
.rcard.on .rdot { box-shadow: inset 0 0 0 7px var(--ink); }
.rcard-title { font-weight: 600; }
.rcard-sub { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.rcard-end { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rcard-end s { color: var(--ink-3); font-weight: 400; margin-right: 6px; }
.subfields { margin-top: 12px; padding: 14px; border-radius: var(--r-md); background: var(--fill); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); text-align: left; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--line-2); flex: none; margin: 0; display: grid; place-items: center; transition: .2s; }
.check input:checked { background: var(--solid); box-shadow: none; }
.check input:checked::after { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--on-solid); border-bottom: 2px solid var(--on-solid); transform: rotate(-45deg) translate(1px, -1px); }

/* Переключатель */
.switch { appearance: none; -webkit-appearance: none; width: 50px; height: 30px; border-radius: 999px; background: var(--fill-2); position: relative; flex: none; margin: 0; cursor: pointer; transition: background-color .3s; box-shadow: inset 0 0 0 1px var(--line); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .45s var(--spring); }
.switch:checked { background: var(--solid); }
.switch:checked::after { transform: translateX(20px); background: var(--on-solid); }

/* Сегменты */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.seg button { height: 36px; border-radius: 999px; font-size: 13.5px; font-weight: 500; color: var(--ink-2); position: relative; z-index: 2; transition: color .25s; }
.seg button.on { color: var(--on-solid); }
.seg-thumb { position: absolute; z-index: 1; top: 4px; bottom: 4px; left: 4px; border-radius: 999px; background: var(--solid); transition: transform .5s var(--spring), width .3s; box-shadow: 0 6px 14px -6px var(--shade); }

/* ---------------- Листы, тосты ---------------- */
#layer { position: fixed; inset: 0; z-index: 100; pointer-events: none; }
.scrim { position: fixed; inset: 0; background: var(--scrim); opacity: 0; transition: opacity .35s; pointer-events: auto; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.scrim.on { opacity: 1; }
.sheet {
  position: fixed; left: 50%; bottom: 0; width: min(100%, 560px); max-height: 88vh; display: flex; flex-direction: column;
  border-radius: 30px 30px 0 0; padding: 8px 0 calc(var(--safe-b) + 16px); pointer-events: auto;
  transform: translate(-50%, 105%); transition: transform .55s var(--spring);
}
.sheet.on { transform: translate(-50%, 0); }
.sheet.lg { background: var(--glass-2); }
.sheet-grip { width: 38px; height: 5px; border-radius: 3px; background: var(--line-2); margin: 2px auto 8px; position: relative; z-index: 3; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 20px 12px; position: relative; z-index: 3; }
.sheet-body { overflow-y: auto; padding: 0 20px; position: relative; z-index: 3; overscroll-behavior: contain; }
.sheet-foot { padding: 14px 20px 0; display: flex; gap: 10px; position: relative; z-index: 3; }
.toast {
  position: fixed; left: 50%; top: calc(var(--safe-t) + 14px); transform: translate(-50%, -160%); z-index: 120;
  display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 16px; border-radius: 999px; width: max-content; max-width: calc(100% - 32px); white-space: nowrap;
  pointer-events: auto; transition: transform .55s var(--spring); font-weight: 500; font-size: 14px;
}
.toast.on { transform: translate(-50%, 0); }
.toast .ico { position: relative; z-index: 3; }
.toast span { position: relative; z-index: 3; overflow: hidden; text-overflow: ellipsis; }
.toast .btn { height: 32px; padding: 0 12px; font-size: 13px; position: relative; z-index: 3; }
.dialog { padding: 6px 20px 0; position: relative; z-index: 3; }
.dialog p { color: var(--ink-2); margin: 8px 0 0; }

/* ---------------- Пустые состояния, скелетоны ---------------- */
.empty { text-align: center; padding: 40px 18px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty-art { width: 140px; height: 140px; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(circle, var(--stage-a), var(--stage-b) 70%); margin-bottom: 6px; }
.empty-art svg { width: 70%; height: 70%; }
.empty p { color: var(--ink-2); margin: 0 0 8px; max-width: 290px; }
.sk { background: linear-gradient(90deg, var(--fill) 25%, var(--fill-2) 50%, var(--fill) 75%); background-size: 200% 100%; animation: sk 1.4s linear infinite; border-radius: 14px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------------- Заказы ---------------- */
.ocard { display: block; padding: 16px; border-radius: var(--r-lg); }
.ocard + .ocard { margin-top: 10px; }
.ocard-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: relative; z-index: 3; }
.ocard-mid { display: flex; align-items: center; gap: 8px; margin: 12px 0; position: relative; z-index: 3; }
.ocard-thumb { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--fill); }
.ocard-thumb svg { width: 80%; height: 80%; }
.ocard-bot { display: flex; justify-content: space-between; align-items: baseline; position: relative; z-index: 3; }
.status { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: inset 0 0 0 1.5px var(--ink); color: var(--ink); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status[data-s="new"] { background: var(--solid); color: var(--on-solid); box-shadow: none; }
.status[data-s="new"]::before { animation: pulse 1.6s ease-in-out infinite; }
.status[data-s="confirmed"]::before, .status[data-s="assembling"]::before { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.status[data-s="done"] { background: var(--fill-2); box-shadow: none; }
.status[data-s="canceled"] { box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-3); text-decoration: line-through; }
.status[data-s="canceled"]::before { background: var(--ink-3); }
@keyframes pulse { 50% { opacity: .3; } }
.timeline { display: grid; gap: 0; position: relative; z-index: 3; }
.tl { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: start; position: relative; padding-bottom: 18px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: 12px; top: 22px; bottom: 0; width: 2px; background: var(--line-2); }
.tl:last-child::before { display: none; }
.tl-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 2px var(--line-2); background: var(--bg); }
.tl-dot .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.tl.done .tl-dot { background: var(--solid); color: var(--on-solid); box-shadow: none; }
.tl.done::before { background: var(--ink); }
.tl.cur .tl-dot { box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 5px var(--fill-2); }
.tl-title { font-weight: 600; padding-top: 3px; }
.tl.todo .tl-title { color: var(--ink-3); font-weight: 500; }
.tl-time { font-size: 12px; color: var(--ink-3); padding-top: 5px; font-variant-numeric: tabular-nums; }

/* Успех */
.success { text-align: center; padding: 30px 8px 10px; display: flex; flex-direction: column; align-items: center; }
.success-ring { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 22px; animation: ringIn .9s var(--spring) both; }
.success-ring svg { width: 56px; height: 56px; position: relative; z-index: 3; }
.success-ring path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .6s .45s var(--ease) forwards; }
@keyframes ringIn { from { transform: scale(.4); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success .num-big { font: 600 15px/1 var(--f-mono); letter-spacing: .04em; padding: 8px 14px; border-radius: 999px; background: var(--fill); margin: 12px 0 6px; }

/* Профиль */
.ucard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-xl); }
.avatar { width: 60px; height: 60px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--solid); color: var(--on-solid); font: 600 22px/1 var(--f-display); overflow: hidden; position: relative; z-index: 3; box-shadow: 0 0 0 3px var(--glass-2), 0 0 0 4px var(--line); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.ucard-main { position: relative; z-index: 3; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.stat { padding: 14px 10px; border-radius: var(--r-md); text-align: center; }
.stat b { display: block; font: 600 22px/1.1 var(--f-display); letter-spacing: -.04em; position: relative; z-index: 3; font-variant-numeric: tabular-nums; }
.stat span { font-size: 12px; color: var(--ink-3); position: relative; z-index: 3; }
.ver { text-align: center; font-size: 11.5px; color: var(--ink-3); margin-top: 28px; padding: 10px; user-select: none; -webkit-user-select: none; }

/* Сравнение */
.cmp-wrap { overflow-x: auto; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px; }
.cmp { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.cmp th, .cmp td { padding: 10px 12px; text-align: left; vertical-align: top; min-width: 140px; border-bottom: 1px solid var(--line); }
.cmp th:first-child, .cmp td:first-child { position: sticky; left: 0; background: var(--glass-2); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); min-width: 100px; max-width: 110px; color: var(--ink-3); z-index: 2; }
.cmp thead th { border-bottom: 0; }
.cmp-head { display: flex; flex-direction: column; gap: 6px; }
.cmp-head .citem-art { width: 100px; }
.cmp tr.same td { color: var(--ink-3); }

/* Поиск */
.search-field { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 16px; height: 52px; border-radius: 999px; }
.search-field input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 16px; position: relative; z-index: 3; }
.search-field .ico { position: relative; z-index: 3; color: var(--ink-3); }
.search-field button { position: relative; z-index: 3; }

/* ---------------- Админка ---------------- */
.admin-mark { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font: 600 11px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; background: var(--solid); color: var(--on-solid); }
.anav { margin: 4px 0 18px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kpi { padding: 14px 16px; border-radius: var(--r-lg); min-width: 0; }
.kpi > * { position: relative; z-index: 3; }
.kpi-l { font-size: 12px; color: var(--ink-3); }
.kpi-v { font: 600 22px/1.15 var(--f-display); letter-spacing: -.045em; margin-top: 6px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-s { font-size: 12px; color: var(--ink-2); margin-top: 4px; }
.kpi.dark { background: var(--solid); color: var(--on-solid); }
.kpi.dark .kpi-l, .kpi.dark .kpi-s { color: inherit; opacity: .6; }
.chart { padding: 16px 16px 12px; border-radius: var(--r-lg); margin-top: 10px; }
.chart > * { position: relative; z-index: 3; }
.chart svg { width: 100%; height: 150px; overflow: visible; }
.chart .ax { font: 500 10px var(--f-body); fill: var(--ink-3); }
.chart .grid-l { stroke: var(--line); stroke-width: 1; }
.chart .bar { fill: var(--ink); opacity: .85; }
.chart .bar.today { opacity: 1; }
.chart .bar-bg { fill: var(--fill); }
.arow { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--r-md); width: 100%; text-align: left; }
.arow + .arow { margin-top: 8px; }
.arow > * { position: relative; z-index: 3; min-width: 0; }
.arow-art { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--fill); }
.arow-art svg, .arow-art img { width: 82%; height: 82%; object-fit: contain; }
.arow-title { font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow-sub { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.arow.hidden-p { opacity: .55; }
.agroup { padding: 16px; border-radius: var(--r-lg); margin-top: 14px; }
.agroup > * { position: relative; z-index: 3; }
.agroup-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.grid-f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-f .field + .field { margin-top: 0; }
.grid-f .span2 { grid-column: 1 / -1; }
.tog-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; }
.tog-row + .tog-row { border-top: 1px solid var(--line); }
.optblock { padding: 14px; border-radius: var(--r-md); background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.optblock + .optblock { margin-top: 12px; }
.vrow { display: grid; grid-template-columns: auto 1fr 96px auto; gap: 8px; align-items: center; margin-top: 8px; }
.vrow .input { min-height: 42px; padding: 8px 12px; font-size: 14px; border-radius: 12px; }
.vrow input[type="color"] { width: 42px; height: 42px; border: 0; padding: 0; background: none; border-radius: 12px; overflow: hidden; cursor: pointer; }
.vrow input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
.vrow input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 12px; }
.vrow .vtag { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--fill-2); font-size: 11px; color: var(--ink-3); }
.vextra { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 4px 50px; font-size: 12.5px; color: var(--ink-2); }
.mini-btn { height: 30px; padding: 0 10px; border-radius: 999px; background: var(--fill-2); font-size: 12.5px; font-weight: 500; display: inline-flex; align-items: center; gap: 5px; }
.mini-btn .ico { width: 14px; height: 14px; }
.mini-btn.on { background: var(--solid); color: var(--on-solid); }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; position: relative; background: var(--fill); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb button { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--solid); color: var(--on-solid); display: grid; place-items: center; }
.thumb button .ico { width: 12px; height: 12px; stroke-width: 2.4; }
.upl { width: 64px; height: 64px; border-radius: 14px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-3); cursor: pointer; position: relative; }
.upl input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.progress { height: 8px; border-radius: 4px; background: var(--fill-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--ink); border-radius: 4px; transition: width .4s var(--ease); }
.sticky-save { position: fixed; z-index: 40; left: 50%; bottom: calc(var(--safe-b) + 12px); transform: translateX(-50%); width: min(calc(100% - 2 * var(--gutter)), 528px); border-radius: 999px; padding: 8px; display: flex; gap: 8px; }
.sticky-save .btn { flex: 1; position: relative; z-index: 3; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; font-size: 14px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

@media (min-width: 520px) {
  .grid-2.wide-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-card { width: 500px; }
}
@media (max-width: 360px) {
  :root { --gutter: 12px; }
  .h1 { font-size: 24px; }
  .cats { gap: 8px; }
  .hscroll .pcard { width: 150px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  #bg i { animation: none; }
}

/* ---------------- Свои выпадающие списки ---------------- */
select option { background: #ffffff; color: #0c0c0e; } /* запасной вариант, если нативный список всё же покажется */
.select-btn { display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer; }
.select-btn .select-txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select-art { width: 30px; height: 30px; flex: none; display: grid; place-items: center; margin: -6px 0 -6px -6px; }
.select-art svg { width: 100%; height: 100%; }
.pick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding-bottom: 4px; }
.pick-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 16px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); font-size: 11.5px; color: var(--ink-2); }
.pick-tile svg { width: 64px; height: 64px; }
.pick-tile.on { box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); background: var(--glass-2); }

/* Сравнение: заметное удаление */
.cmp-pic { position: relative; display: block; width: 100px; }
.cmp-x { position: absolute; top: -6px; right: -6px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--solid); color: var(--on-solid); box-shadow: 0 4px 10px -4px var(--shade); z-index: 3; }
.cmp-x .ico { width: 14px; height: 14px; stroke-width: 2.4; }
.cmp-head .mini-btn { align-self: flex-start; }
/* Группы в выборе картинки */
.pick-group { grid-column: 1 / -1; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); padding: 10px 2px 0; }
.pick-group:first-child { padding-top: 0; }
.pick-tile span { text-align: center; line-height: 1.25; }

/* ---------------- Поддержка: чат ---------------- */
.chat-view { padding-bottom: calc(110px + var(--safe-b)) !important; }
.chat-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); margin: 4px 0 12px; }
.chat { display: flex; flex-direction: column; gap: 6px; }
.chat-day { align-self: center; font-size: 11.5px; color: var(--ink-3); padding: 4px 10px; border-radius: 999px; background: var(--fill); margin: 10px 0 4px; }
.msg { display: flex; flex-direction: column; max-width: 82%; animation: msgIn .35s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(6px); } }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.them { align-self: flex-start; align-items: flex-start; }
.bubble { padding: 10px 14px; border-radius: 20px; line-height: 1.4; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; }
.msg.me .bubble { background: var(--solid); color: var(--on-solid); border-bottom-right-radius: 6px; }
.msg.them .bubble { background: var(--glass-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom-left-radius: 6px; }
.msg.pending { opacity: .55; }
.msg-meta { font-size: 11px; color: var(--ink-3); margin: 3px 6px 0; font-variant-numeric: tabular-nums; }
.chat-note { text-align: center; font-size: 12.5px; color: var(--ink-3); margin: 16px 8px 0; }
.composer { position: fixed; z-index: 40; left: 50%; bottom: calc(var(--safe-b) + 12px); transform: translateX(-50%); width: min(calc(100% - 2 * var(--gutter)), 528px);
  border-radius: 26px; padding: 6px 6px 6px 16px; display: flex; align-items: flex-end; gap: 8px; }
.composer textarea { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; resize: none; font-size: 16px; line-height: 1.4; padding: 10px 0; max-height: 140px; position: relative; z-index: 3; }
.composer textarea::placeholder { color: var(--ink-3); }
.send-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--solid); color: var(--on-solid); flex: none; position: relative; z-index: 3; }
.send-btn .ico { width: 19px; height: 19px; }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter); }
.quick::-webkit-scrollbar { display: none; }

.chat-note .ico { width: 14px; height: 14px; display: inline-block; vertical-align: -2px; }
#chat-locked .btn { flex: 1; position: relative; z-index: 3; }

.tool-btn { width: 40px; height: 40px; margin: 2px 0 2px -10px; border-radius: 50%; display: grid; place-items: center; color: var(--ink-2); background: var(--fill); flex: none; position: relative; z-index: 3; }
.tool-btn .ico { width: 19px; height: 19px; }
.rcard.tpl { text-align: left; }

.logo-mark svg { width: 100%; height: 100%; display: block; }

/* =====================================================================
   v1.2 — подбор iPhone, отзывы, трек-номер, подписка на поступление
   ===================================================================== */
.quiz-cta { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; margin-top: 14px; text-align: left; border-radius: var(--r-lg); color: var(--ink); }
.quiz-cta > * { position: relative; z-index: 3; }
.quiz-cta-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--solid); color: var(--on-solid); }
.quiz-cta-ico .ico { width: 22px; height: 22px; }
.quiz-cta-text b { display: block; font-size: 15px; font-weight: 600; }
.quiz-cta-text span { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.quiz-cta > .ico { color: var(--ink-3); }
.quiz { padding-top: 6px; }
.quiz-prog { display: flex; gap: 6px; margin: 4px 0 18px; }
.quiz-prog i { flex: 1; height: 4px; border-radius: 4px; background: var(--fill-2); transition: background .4s var(--ease); }
.quiz-prog i.on { background: var(--ink); }
.quiz .rcard > span:last-child .ico { width: 18px; height: 18px; color: var(--ink-3); }
.pick-best { display: grid; grid-template-columns: 42% 1fr; gap: 14px; align-items: center; width: 100%; padding: 16px; text-align: left; border-radius: var(--r-xl); color: var(--ink); }
.pick-best > * { position: relative; z-index: 3; }
.pick-art { aspect-ratio: 1; display: grid; place-items: center; }
.pick-art svg, .pick-art img { width: 100%; height: 100%; object-fit: contain; }
.pick-why { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pick-why li { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); }
.pick-why .ico { width: 15px; height: 15px; flex: none; }

.stars { display: inline-flex; gap: 1px; vertical-align: middle; }
.stars i { display: inline-flex; color: var(--line-2); }
.stars i.on { color: var(--ink); }
.stars .ico { width: 14px; height: 14px; fill: currentColor; stroke: currentColor; }
.rating-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--ink-2); padding: 0; background: none; }
.rating-pill .ico { width: 15px; height: 15px; fill: currentColor; color: var(--ink); }
.rating-pill b { color: var(--ink); font-weight: 600; }
.rating-pill span { color: var(--ink-3); }
.pcard-rate { display: flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; color: var(--ink); margin: 2px 0 2px; }
.pcard-rate .ico { width: 12px; height: 12px; fill: currentColor; }
.pcard-rate span { color: var(--ink-3); font-weight: 400; }
.review { padding: 14px 16px; margin-bottom: 10px; }
.review > * { position: relative; z-index: 3; }
.review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-head b { font-size: 14px; }
.review-head .faint { margin-left: auto; }
.review-text { margin: 8px 0 8px; font-size: 14px; line-height: 1.45; color: var(--ink-2); white-space: pre-line; }
.review-badge { display: inline-flex; align-items: center; gap: 4px; color: var(--ink-3); }
.review-badge .ico { width: 13px; height: 13px; }
.review-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; padding: 14px 16px; margin-bottom: 12px; text-align: left; color: var(--ink); }
.review-cta > * { position: relative; z-index: 3; }
.review-cta > .ico { color: var(--ink-3); }
.star-pick { display: flex; justify-content: center; gap: 6px; }
.star-pick button { width: 50px; height: 50px; display: grid; place-items: center; color: var(--line-2); background: none; }
.star-pick button .ico { width: 40px; height: 40px; fill: currentColor; stroke: currentColor; transition: transform .4s var(--spring), color .2s; }
.star-pick button.on { color: var(--ink); }
.star-pick button.on .ico { transform: scale(1.06); }
.star-label { margin-top: 8px; font-size: 14px; color: var(--ink-2); font-weight: 500; }

.track { padding: 14px 16px; margin-bottom: 12px; display: grid; gap: 12px; }
.track > * { position: relative; z-index: 3; }
.track-top { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.track-top > .ico { width: 22px; height: 22px; }
.track-num { font-size: 16px; letter-spacing: .03em; word-break: break-all; }

.phone-ok { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.phone-ok > .ico { width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%; background: var(--solid); color: var(--on-solid); }
.phone-verify { padding: 16px; }

/* --- админка v1.2 --- */
.carrier-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.imp-list { display: grid; gap: 6px; max-height: 46vh; overflow: auto; margin: 10px 0; }
.imp-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; padding: 10px 12px; border-radius: var(--r-sm); background: var(--fill); font-size: 13px; }
.imp-row b { font-weight: 600; }
.imp-row .to { font-weight: 600; color: var(--ink); text-align: right; }
.imp-row .from { color: var(--ink-3); text-decoration: line-through; text-align: right; }
.imp-err { padding: 10px 12px; border-radius: var(--r-sm); background: rgba(255, 59, 48, .1); color: #d70015; font-size: 13px; }
.jrow { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.jrow:last-child { border-bottom: 0; }
.jrow-ic { grid-row: span 2; width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: var(--fill); }
.jrow-ic .ico { width: 17px; height: 17px; }
.jrow-text { font-size: 14px; line-height: 1.35; }
.jrow-meta { font-size: 12px; color: var(--ink-3); }
.subs-tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; color: var(--ink-2); }
.subs-tag .ico { width: 12px; height: 12px; }
.cust-flag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--fill); }
.cust-flag.warn { background: rgba(255, 149, 0, .14); color: #b25000; }
.cust-flag.bad { background: rgba(255, 59, 48, .12); color: #d70015; }
.cust-flag .ico { width: 12px; height: 12px; }

/* Стрелки у лент на компьютере */
.sec-head .row-nav { display: flex; gap: 6px; margin-left: auto; }
.sec-head .link + .row-nav { margin-left: 10px; }
.row-nav .icon-btn { width: 32px; height: 32px; }
.row-nav .icon-btn .ico { width: 16px; height: 16px; position: relative; z-index: 3; }
.row-nav .icon-btn:disabled { opacity: .35; pointer-events: none; }
.desktop .hscroll { cursor: grab; }
.row-nav[hidden] { display: none; }
.sec-head:has(.row-nav:not([hidden])) { align-items: center; }
.row-nav .icon-btn:focus:not(:focus-visible) { outline: none; box-shadow: none; }

/* ---------------- Баннеры: одна карточка, смена с анимацией ---------------- */
.hero-stage { position: relative; height: 218px; touch-action: pan-y; }
.hero-stage .hero-slide { position: absolute; inset: 0; width: auto; max-width: none; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .55s var(--ease), visibility 0s linear .6s, transform .6s var(--ease); --dx: 1; }
.hero-stage[data-dir="-1"] .hero-slide { --dx: -1; }
.hero-stage .hero-slide.on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .55s var(--ease), visibility 0s, transform .6s var(--ease); z-index: 2; }
.hero-stage .hero-slide.out { visibility: visible; z-index: 1; }
/* текст: появляется снизу по очереди */
.hero-slide .hero-text > * { transition: transform .6s var(--spring), opacity .45s var(--ease); }
.hero-slide:not(.on) .hero-text > * { opacity: 0; transform: translateY(12px); }
.hero-slide.on .hero-text > :nth-child(1) { transition-delay: .06s; }
.hero-slide.on .hero-text > :nth-child(2) { transition-delay: .12s; }
.hero-slide.on .hero-text > :nth-child(3) { transition-delay: .18s; }
.hero-slide.on .hero-text > :nth-child(4) { transition-delay: .24s; }
.hero-slide.out .hero-text > * { transition-delay: 0s; transform: translateY(-8px); }
/* картинка: въезжает со стороны листания */
.hero-slide .hero-art > * { transition: transform .75s var(--spring), opacity .5s var(--ease); }
.hero-slide:not(.on) .hero-art > * { opacity: 0; transform: translateX(calc(var(--dx) * 46px)) scale(.92); }
.hero-slide.out .hero-art > * { transform: translateX(calc(var(--dx) * -34px)) scale(.96); }
.hero-stage .hero-art { margin: -10px 14px -30px 0; min-width: 0; }
.hero-stage .hero-art img { max-width: 100%; }
.hero:has(.hero-stage) .dots { margin-top: 12px; }
.hero:has(.hero-stage) .snav { bottom: -6px; }
@media (prefers-reduced-motion: reduce) {
  .hero-slide .hero-text > *, .hero-slide .hero-art > * { transition: opacity .2s !important; transform: none !important; }
}
/* чистая смена: старая карточка остаётся непрозрачной под новой, её текст гаснет быстрее */
.hero-stage .hero-slide.out { opacity: 1; transition: opacity 0s, visibility 0s; }
.hero-slide.out .hero-text > *, .hero-slide.out .hero-art > * { transition: transform .4s var(--ease), opacity .18s linear !important; transition-delay: 0s !important; }
.hero-slide.on .hero-text > :nth-child(1) { transition-delay: .16s; }
.hero-slide.on .hero-text > :nth-child(2) { transition-delay: .22s; }
.hero-slide.on .hero-text > :nth-child(3) { transition-delay: .28s; }
.hero-slide.on .hero-text > :nth-child(4) { transition-delay: .34s; }
.hero-slide.on .hero-art > * { transition-delay: .1s; }

/* Таймер баннеров: линия бежит по контуру карточки */
.hero-ring { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 5; pointer-events: none; overflow: visible; }
.hero-ring path { fill: none; stroke-width: 2.5; stroke-linecap: round; transition: stroke .5s var(--ease); }
.hero-ring-bg { stroke: transparent; }
.hero-ring-fg { stroke-dasharray: 100 100; stroke-dashoffset: 100; stroke: rgba(255,255,255,.85); filter: drop-shadow(0 0 3px rgba(255,255,255,.35)); }
.hero-stage[data-tone="light"] .hero-ring-fg { stroke: rgba(12,12,14,.7); filter: none; }
.hero-stage[data-tone="glass"] .hero-ring-fg { stroke: color-mix(in srgb, var(--ink) 70%, transparent); filter: none; }
