/* =========================================================
   Teysee — «жидкое стекло» (витрина)

   Идея: страница лежит на живом цветном фоне, а всё, что можно
   потрогать (шапка, кнопки, окна, панели), — стекло: полупрозрачная
   заливка, размытие того, что под ним, яркая кромка с бликом сверху-слева
   и мягкая тень. Товары — глянцевые «камни» цвета бренда.
   Движение — пружины, как в iOS: у нажатия и появления есть лёгкий
   перелёт и осадка. Админка живёт в style.css и этот файл не грузит.

   Тяжёлое размытие (backdrop-filter) стоит только на тех элементах, под
   которыми прокручивается контент: шапка, панель фильтров, окна, уведомления.
   Если устройство тянет плохо, включается «лёгкий режим» (класс .lite
   на <html>): те же формы без размытия.
   ========================================================= */

/* ---------- Шрифты (лежат в /fonts: CSP не пускает внешние) ---------- */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/geist-mono-cyrillic.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 400 700; font-display: swap; src: url("/fonts/geist-mono-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- Темы ----------
   Тёмная — по умолчанию, светлая — по системной настройке или кнопке (data-theme). */
:root {
  color-scheme: dark;
  --text: #f3f5ff; --muted: rgba(232,236,255,.7); --muted-2: rgba(232,236,255,.44);
  --accent: #4aa3ff; --accent-ink: #fff; --accent-top: #5cb0ff; --accent-deep: #0a72f0;
  --ok: #46d39a; --err: #ff7b8a; --warn: #f6c453; --info: #6fb4ff;
  /* Фон выбирается в настройках (data-bg на <html>): «сияние» (по умолчанию) — мягкий свет сверху; «чистый» — почти чёрный, как у Apple;
     «волны» (значение ribbons) — готовые обои bg-dark.jpg (исходник bg-dark.svg, отрисован вместе с зерном) */
  --wall-base: #000;
  --wall-plain: linear-gradient(180deg, #0d0e14 0%, #000 42%);
  --wall-glow: radial-gradient(95% 55% at 50% -10%, rgba(62,90,255,.4), transparent 72%), radial-gradient(60% 42% at 100% 0%, rgba(140,80,255,.2), transparent 72%), linear-gradient(180deg, #06070f, #000 62%);
  --wall-ribbons: url("/bg-dark.jpg") 50% 50% / cover no-repeat;
  --glass-tint: rgba(9,11,24,.24);
  --fill: rgba(255,255,255,.025); --fill-2: rgba(255,255,255,.07);
  --panel-a: rgba(28,32,56,.64); --panel-b: rgba(9,11,25,.72); --panel-solid: rgba(10,12,24,.94);
  --card-a: rgba(255,255,255,.07); --card-b: rgba(255,255,255,.016);
  --rim-a: rgba(255,255,255,.3); --rim-b: rgba(255,255,255,.14); --rim-c: rgba(255,255,255,.04);
  /* кромка как у Apple: тонкая белая линия, ярче на верхнем левом и нижнем правом углу, без цвета */
  --spec: rgba(255,255,255,.58); --spec-2: rgba(255,255,255,.22); --hl: rgba(255,255,255,.08);
  --edge: rgba(0,0,0,.55); --hair: rgba(255,255,255,.12); --hover: rgba(255,255,255,.1);
  --inner-glow: rgba(255,255,255,.055);
  --sh-s: 0 12px 28px -12px rgba(0,0,0,.8), 0 2px 6px rgba(0,0,0,.4);
  --sh-l: 0 40px 90px -28px rgba(0,0,0,.9), 0 12px 28px -12px rgba(0,0,0,.6);
  --bf: blur(8px) saturate(2.1) brightness(1.12);
  --bf-l: blur(16px) saturate(1.9) brightness(1.08);
  --lens-a: rgba(255,255,255,.24); --lens-b: rgba(255,255,255,.08); --lens-rim: rgba(255,255,255,.6); --lens-sh: 0 4px 12px -3px rgba(0,0,0,.65);
  --field: rgba(0,0,0,.3); --field-sh: inset 0 1px 3px rgba(0,0,0,.5);
  --scrim: rgba(2,3,10,.55);
  --lite-bg: rgba(12,14,28,.94);
  --gloss: .3; --bloom: .1;
  --shadow: var(--sh-l);
  /* Inter: переменный, с оптическими размерами (крупный текст рисуется плотнее, как SF Pro Display), одинаковый на iPhone и ПК */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --display: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, "SF Mono", "Geist Mono", Menlo, monospace; /* только номера заказов и коды */
  /* пружины для переходов; те же кривые считает app.js для анимаций (WAAPI) */
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --spring-soft: cubic-bezier(.3, 1.15, .5, 1);
  --spring-bouncy: cubic-bezier(.34, 1.4, .64, 1);
  --ease: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --text: #0b1030; --muted: rgba(11,16,48,.72); --muted-2: rgba(11,16,48,.46);
  --accent: #0a7aff; --accent-ink: #fff; --accent-top: #52aaff; --accent-deep: #0a6cf0;
  --ok: #16794a; --err: #c23049; --warn: #94600a; --info: #1d5fc4;
  --wall-base: #e4e5eb;
  --wall-plain: linear-gradient(180deg, #eeeff3 0%, #e4e5eb 50%, #dddfe6 100%);
  --wall-glow: radial-gradient(95% 55% at 50% -10%, rgba(120,150,255,.42), transparent 72%), radial-gradient(60% 45% at 100% 0%, rgba(232,168,228,.32), transparent 72%), linear-gradient(180deg, #ebecf2, #dfe1e9);
  --wall-ribbons: url("/bg-light.jpg") 50% 50% / cover no-repeat;
  --glass-tint: rgba(205,214,236,.22);
  --fill: rgba(255,255,255,.06); --fill-2: rgba(255,255,255,.2);
  --panel-a: rgba(232,236,247,.62); --panel-b: rgba(208,215,234,.52); --panel-solid: rgba(218,223,238,.95);
  --card-a: rgba(255,255,255,.28); --card-b: rgba(255,255,255,.08);
  --rim-a: rgba(255,255,255,.7); --rim-b: rgba(255,255,255,.36); --rim-c: rgba(255,255,255,.1);
  --spec: rgba(255,255,255,.98); --spec-2: rgba(255,255,255,.62); --hl: rgba(255,255,255,.46);
  --edge: rgba(45,60,120,.26); --hair: rgba(30,45,100,.15); --hover: rgba(255,255,255,.36);
  --inner-glow: rgba(255,255,255,.12);
  --sh-s: 0 10px 24px -10px rgba(40,58,130,.42), 0 2px 5px rgba(40,58,130,.12);
  --sh-l: 0 34px 80px -26px rgba(40,58,130,.55), 0 10px 24px -10px rgba(40,58,130,.22);
  --bf: blur(8px) saturate(2.1);
  --bf-l: blur(16px) saturate(1.9);
  --lens-a: rgba(255,255,255,.62); --lens-b: rgba(255,255,255,.26); --lens-rim: rgba(255,255,255,.95); --lens-sh: 0 4px 12px -3px rgba(40,58,130,.4);
  --field: rgba(255,255,255,.34); --field-sh: inset 0 1px 3px rgba(40,60,140,.18);
  --scrim: rgba(20,28,62,.34);
  --lite-bg: rgba(220,225,239,.95);
  --gloss: .5; --bloom: .2;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --text: #0b1030; --muted: rgba(11,16,48,.72); --muted-2: rgba(11,16,48,.46);
    --accent: #0a7aff; --accent-ink: #fff; --accent-top: #52aaff; --accent-deep: #0a6cf0;
    --ok: #16794a; --err: #c23049; --warn: #94600a; --info: #1d5fc4;
    --wall-base: #e4e5eb;
    --wall-plain: linear-gradient(180deg, #eeeff3 0%, #e4e5eb 50%, #dddfe6 100%);
    --wall-glow: radial-gradient(95% 55% at 50% -10%, rgba(120,150,255,.42), transparent 72%), radial-gradient(60% 45% at 100% 0%, rgba(232,168,228,.32), transparent 72%), linear-gradient(180deg, #ebecf2, #dfe1e9);
    --wall-ribbons: url("/bg-light.jpg") 50% 50% / cover no-repeat;
    --glass-tint: rgba(205,214,236,.22);
    --fill: rgba(255,255,255,.06); --fill-2: rgba(255,255,255,.2);
    --panel-a: rgba(232,236,247,.62); --panel-b: rgba(208,215,234,.52); --panel-solid: rgba(218,223,238,.95);
    --card-a: rgba(255,255,255,.28); --card-b: rgba(255,255,255,.08);
    --rim-a: rgba(255,255,255,.7); --rim-b: rgba(255,255,255,.36); --rim-c: rgba(255,255,255,.1);
  --spec: rgba(255,255,255,.98); --spec-2: rgba(255,255,255,.62); --hl: rgba(255,255,255,.46);
    --edge: rgba(45,60,120,.26); --hair: rgba(30,45,100,.15); --hover: rgba(255,255,255,.36);
    --inner-glow: rgba(255,255,255,.12);
    --sh-s: 0 10px 24px -10px rgba(40,58,130,.42), 0 2px 5px rgba(40,58,130,.12);
    --sh-l: 0 34px 80px -26px rgba(40,58,130,.55), 0 10px 24px -10px rgba(40,58,130,.22);
    --bf: blur(8px) saturate(2.1);
    --bf-l: blur(16px) saturate(1.9);
    --lens-a: rgba(255,255,255,.62); --lens-b: rgba(255,255,255,.26); --lens-rim: rgba(255,255,255,.95); --lens-sh: 0 4px 12px -3px rgba(40,58,130,.4);
    --field: rgba(255,255,255,.34); --field-sh: inset 0 1px 3px rgba(40,60,140,.18);
    --scrim: rgba(20,28,62,.34);
    --lite-bg: rgba(220,225,239,.95);
    --gloss: .5; --bloom: .2;
  }
}
/* пружины с настоящим перелётом (linear() есть в Chrome 113+, Safari 17.2+, Firefox 112+) */
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.023, 0.083, 0.168, 0.269, 0.378, 0.487, 0.592, 0.69, 0.777, 0.853, 0.917, 0.969, 1.01, 1.04, 1.061, 1.075, 1.082, 1.083, 1.081, 1.076, 1.068, 1.06, 1.051, 1.042, 1.033, 1.025, 1.018, 1.012, 1.006, 1.002, 0.999, 0.996, 0.995, 0.994, 0.993, 0.993, 0.993, 0.994, 0.994, 0.995, 0.996, 0.997, 0.997, 1);
    --spring-soft: linear(0, 0.015, 0.055, 0.112, 0.18, 0.254, 0.331, 0.408, 0.482, 0.553, 0.618, 0.678, 0.732, 0.78, 0.823, 0.859, 0.891, 0.917, 0.939, 0.958, 0.973, 0.985, 0.994, 1.001, 1.006, 1.01, 1.013, 1.014, 1.015, 1.015, 1.015, 1.014, 1.013, 1.012, 1.011, 1.01, 1.009, 1.008, 1.006, 1.005, 1.005, 1.004, 1.003, 1.003, 1);
    --spring-bouncy: var(--spring);
  }
}

/* ---------- Фон: спокойные пятна цвета, сквозь которые «видит» стекло ---------- */
/* по умолчанию «Сияние» */
body::before { --wall: var(--wall-glow); }
html[data-bg="plain"] body::before { --wall: var(--wall-plain); }
html[data-bg="ribbons"] body::before { --wall: var(--wall-ribbons); }
html { background: var(--wall-base); scroll-behavior: smooth; scrollbar-gutter: stable; touch-action: manipulation; }
body::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; background: var(--wall), var(--wall-base); transform: translateZ(0); }
/* окраска фона под выбранный бренд (--tint ставит app.js) */
body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .8s var(--ease);
  background: radial-gradient(60% 50% at 50% 30%, color-mix(in srgb, var(--tint, transparent) 60%, transparent), transparent 75%); }
html[style*="--tint"] body::after { opacity: .75; }

/* ---------- База ---------- */
* { box-sizing: border-box; }
body {
  margin: 0; color: var(--text); font: 16px/1.55 var(--font);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-optical-sizing: auto; font-feature-settings: "cv05", "cv08"; -webkit-tap-highlight-color: transparent;
}
body:has(dialog[open]) { overflow: hidden; }
h1, h2, h3 { line-height: 1.12; margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.022em; }
h3 { font-weight: 650; letter-spacing: -.015em; }
p { margin: 0; }
a { color: inherit; }
img { display: block; }
button { font: inherit; color: inherit; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 860px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--text); color: var(--wall-base); }
.skip:focus { left: 12px; }
kbd { font: 600 .72rem/1 var(--mono); color: var(--muted); padding: 4px 7px; border-radius: 8px; background: var(--hover); box-shadow: inset 0 0 0 1px var(--hair); }
::selection { background: color-mix(in srgb, var(--accent) 35%, transparent); }

/* ---------- Материал «стекло» ----------
   .gl — заливка, кромка-блик, тень и подсветка под курсором.
   .bf — ещё и размытие того, что под элементом (только там, где под ним прокручивается контент). */
.gl {
  position: relative; isolation: isolate;
  background: linear-gradient(180deg, var(--fill-2), var(--fill)); background-color: var(--glass-tint);
  box-shadow: inset 0 0 0 .5px var(--hl), inset 1px 1px 0 -.5px var(--spec-2), inset -1px -1px 0 -.5px var(--hl), inset 0 0 20px var(--inner-glow), 0 0 0 .5px var(--edge), var(--sh-s);
}
.gl.bf::before, .btn::before, .icon-btn.solid::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--spec) 0%, transparent 24%, transparent 70%, var(--spec-2) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.gl::after, .btn::after, .icon-btn.solid::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(170px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.5), transparent 66%); }
:root[data-theme="light"] .gl::after, :root[data-theme="light"] .btn::after, :root[data-theme="light"] .icon-btn.solid::after { background: radial-gradient(170px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.85), transparent 66%); }
@media (prefers-color-scheme: light) { :root:not([data-theme]) .gl::after, :root:not([data-theme]) .btn::after, :root:not([data-theme]) .icon-btn.solid::after { background: radial-gradient(170px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.85), transparent 66%); } }
@media (hover: none) { .gl:not(.bf)::after { display: none; } }
@media (hover: hover) { .gl:hover::after, .btn:hover::after, .icon-btn.solid:hover::after { opacity: 1; } }
.gl.lit::after, .btn.lit::after, .icon-btn.solid.lit::after { opacity: 1; transition-duration: .08s; }
.bf { -webkit-backdrop-filter: var(--bf); backdrop-filter: var(--bf); }
/* мягкое свечение у верхнего края; кромка белая и тонкая (::before выше), без цветной каймы */
.gl.bf { background: radial-gradient(130% 180% at 14% -34%, rgba(255,255,255,var(--bloom)), transparent 48%), linear-gradient(180deg, var(--fill-2), var(--fill)); background-color: var(--glass-tint); }
.bf-l { -webkit-backdrop-filter: var(--bf-l); backdrop-filter: var(--bf-l); }

.rf-defs { position: absolute; width: 0; height: 0; overflow: hidden; pointer-events: none; }

/* ---------- Кнопки и поля ---------- */
.btn {
  position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px; border: 0; border-radius: 999px; font: 650 .98rem var(--font); letter-spacing: -.005em;
  cursor: pointer; text-decoration: none; white-space: nowrap; user-select: none;
  transition: transform .55s var(--spring), box-shadow .3s var(--ease), filter .2s;
}
.btn:active { transform: scale(.955); transition-duration: .12s; }
.btn.lg { height: 56px; padding: 0 30px; font-size: 1.04rem; }
.btn.sm { height: 38px; padding: 0 16px; font-size: .88rem; }
.btn.ghost, .icon-btn.solid { background: linear-gradient(180deg, var(--fill-2), var(--fill)); box-shadow: inset 0 1px 0 var(--rim-a), inset 0 -1px 0 var(--rim-c), inset 0 0 14px var(--inner-glow), 0 0 0 .5px var(--edge), var(--sh-s); }
.btn.primary {
  color: #fff;
  background: radial-gradient(120% 90% at 30% -30%, rgba(255,255,255,.32), transparent 60%), linear-gradient(180deg, var(--accent-top), var(--accent-deep));
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.28), inset 0 0 16px rgba(255,255,255,.1), 0 14px 28px -12px rgba(10,114,240,.75), 0 2px 6px rgba(10,114,240,.25);
}
.btn.primary::before { background: linear-gradient(135deg, rgba(255,255,255,.8) 0%, transparent 26%, transparent 70%, rgba(255,255,255,.34) 100%); }
.btn.danger { color: var(--err); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.icon-btn {
  position: relative; isolation: isolate; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: inherit; cursor: pointer; font-size: 1.05rem;
  transition: background-color .2s, transform .55s var(--spring);
}
.icon-btn:hover { background: var(--hover); }
.icon-btn:active { transform: scale(.9); transition-duration: .1s; }
.field {
  width: 100%; height: 48px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--field); color: var(--text); font: inherit;
  box-shadow: var(--field-sh), inset 0 0 0 1px var(--hair), 0 1px 0 rgba(255,255,255,.35);
  transition: box-shadow .25s var(--ease), background-color .25s;
}
.field::placeholder { color: var(--muted-2); }
.field:focus { outline: none; box-shadow: var(--field-sh), inset 0 0 0 1.5px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 24%, transparent); }
.field[aria-invalid="true"] { box-shadow: var(--field-sh), inset 0 0 0 1.5px var(--err); }

/* ---------- Шапка: три плавающих стеклянных капсулы ---------- */
.top {
  position: sticky; top: max(12px, env(safe-area-inset-top)); z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1200px; margin: max(12px, env(safe-area-inset-top)) auto 0; padding: 0 max(22px, env(safe-area-inset-right)) 0 max(22px, env(safe-area-inset-left)); pointer-events: none;
}
.top > * { pointer-events: auto; }
.logo { display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 20px 0 12px; border-radius: 999px; font: 700 1.2rem/1 var(--display); letter-spacing: -.045em; text-decoration: none; }
/* знак: две стеклянные капсулы складываются в T — верхняя плотная, ножка полупрозрачная, как слой жидкого стекла.
   Тот же рисунок в /icon.svg */
.logo-mark {
  position: relative; display: inline-grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 9px; font-size: 0; color: transparent; overflow: hidden;
  background: radial-gradient(110% 80% at 25% -10%, rgba(255,255,255,.55), transparent 55%), linear-gradient(150deg, #43d3ff 0%, #1d7cff 55%, #3b3fe8 100%);
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35), inset 0 -2px 4px rgba(0,20,90,.25), 0 4px 10px -4px rgba(16,90,240,.7);
}
.logo-mark svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 1.5px rgba(0,30,110,.35)); }
.logo-mark .lm-bar { fill: #fff; }
.logo-mark .lm-stem { fill: rgba(255,255,255,.62); }
.logo-text { padding-bottom: 1px; }
.nav { position: relative; display: flex; align-items: center; gap: 2px; height: 52px; padding: 4px; border-radius: 999px; }
.nav a { position: relative; z-index: 1; display: grid; place-items: center; height: 44px; padding: 0 16px; border-radius: 999px; color: var(--muted); text-decoration: none; font-size: .94rem; font-weight: 500; white-space: nowrap; transition: color .25s; }
.nav a:hover, .nav a[aria-current="true"] { color: var(--text); }
/* «линза» — стеклянная капля, которая переезжает к выбранному пункту.
   Положение задаёт translate, ширину width (left остаётся нулём), вытянутость и «вздутие» под пальцем — scale:
   так движение рисует видеокарта, а не пересчёт раскладки на каждом кадре */
.lens {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; pointer-events: none; opacity: 0; translate: 0 0; scale: 1;
  background: linear-gradient(180deg, var(--lens-a), var(--lens-b));
  box-shadow: inset 0 0 0 .5px var(--hl), inset 0 0 14px rgba(255,255,255,.08), var(--lens-sh);
  transition: opacity .3s var(--ease), scale .55s var(--spring), box-shadow .3s var(--ease);
}
.lens.on { opacity: 1; }
.lens.press { scale: 1.12; box-shadow: inset 0 1px 0 var(--lens-rim), inset 0 0 18px rgba(255,255,255,.2), 0 12px 24px -8px rgba(0,0,0,.5); }
.nav, .filters, .tabbar { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
/* Кнопки и ссылки нельзя «удержать»: долгое нажатие не открывает меню ссылки (копировать, открыть в новой вкладке),
   не выделяет подпись и не тащит картинку. Поля ввода и данные заказа (код доступа) по-прежнему выделяются и копируются */
a, button, summary, label, [role="button"], [role="tab"], .card, .m-item, .acct-order, .o-item, .gc-box, img, svg {
  -webkit-touch-callout: none; -webkit-user-drag: none; }
button, .btn, .tab, .chip, .nav a, .foot-nav a, .logo, .icon-btn, .cart-btn, .acct-btn, .search-btn, .cta-search, .seg, .var, .fav, .add-btn, summary,
.card, .m-item, .acct-order, .o-item, .stepper, .status, .count, .lens, .demo {
  -webkit-user-select: none; user-select: none; }
.nav a, .chip, .tab { -webkit-user-drag: none; }
.lens::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--spec) 0%, transparent 30%, transparent 66%, var(--spec-2) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
/* пока линзу тащат пальцем или мышью — едва заметная радужная кромка (свет расслаивается в толстом стекле), отпустили — снова белая */
.lens::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
  background: conic-gradient(from 210deg, rgba(255,150,170,.42), rgba(255,255,255,.5) 18%, rgba(140,190,255,.42) 38%, rgba(255,255,255,.12) 55%, rgba(150,240,210,.36) 75%, rgba(255,150,170,.42));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }
.lens.drag::after { opacity: 1; transition-duration: .15s; }
.bar-actions { display: flex; align-items: center; gap: 2px; height: 52px; padding: 4px; border-radius: 999px; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer; font-size: .93rem; transition: background-color .2s, color .2s, transform .55s var(--spring); }
.search-btn:hover { background: var(--hover); color: var(--text); }
.search-btn:active { transform: scale(.95); transition-duration: .1s; }
/* корзина — небольшой значок со счётчиком в углу; аккаунт — главная кнопка справа */
.cart-btn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 999px; cursor: pointer; background: none; color: var(--muted);
  transition: background-color .2s, color .2s, transform .55s var(--spring);
}
.cart-btn .cart-ico { width: 20px; height: 20px; }
.cart-label { display: none; } /* подпись была в старой разметке: если браузер покажет её из кэша, кнопка не ломается */
.cart-btn:hover { background: var(--hover); color: var(--text); }
.cart-btn:active { transform: scale(.92); transition-duration: .1s; }
.count {
  min-width: 32px; height: 32px; padding: 0 9px; display: grid; place-items: center; border-radius: 999px; color: #fff; font-size: .84rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, var(--accent-top), var(--accent-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 3px 8px -2px rgba(10,114,240,.7);
}
.cart-btn .count { position: absolute; top: 2px; right: 0; min-width: 19px; height: 19px; padding: 0 5px; font-size: .68rem;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 2px 6px -1px rgba(10,114,240,.75); transition: scale .45s var(--spring), opacity .2s; }
.cart-btn .count.zero { scale: 0; opacity: 0; }
.acct-btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px; height: 44px; max-width: 190px; padding: 0 18px 0 6px; border: 0; border-radius: 999px; cursor: pointer;
  color: var(--text); font-weight: 600; font-size: .95rem;
  background: linear-gradient(180deg, var(--lens-a), var(--lens-b)); box-shadow: inset 0 1px 0 var(--lens-rim), var(--lens-sh);
  transition: transform .55s var(--spring), filter .2s;
}
@media (hover: hover) { .acct-btn:hover { filter: brightness(1.12); } }
.acct-btn:active { transform: scale(.95); transition-duration: .1s; }
.acct-av { position: relative; display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; color: var(--text);
  background: var(--hover); box-shadow: inset 0 0 0 .5px var(--hl); }
.acct-av .acct-initial { position: absolute; inset: 0; width: auto; height: auto; }
.acct-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.count.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.4); } }
/* аккаунт: человечек, а когда email известен — первая буква в синем кружке */
.acct-initial { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font: 700 .9rem/1 var(--display);
  background: radial-gradient(90% 70% at 30% 0%, rgba(255,255,255,.45), transparent 60%), linear-gradient(160deg, var(--accent-top), var(--accent-deep));
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35), 0 3px 8px -3px rgba(10,114,240,.7); }
.settings-btn.has-initial > svg, .settings-btn.has-initial .acct-av > svg { display: none; }
.tabbar { display: none; }
.tab { text-decoration: none; }

/* ---------- Главный экран ---------- */
.hero { position: relative; padding: 44px 0 70px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.28fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.8rem); line-height: 1.04; letter-spacing: -.03em; }
.lead { margin: 24px 0 32px; max-width: 46ch; color: var(--muted); font-size: 1.14rem; line-height: 1.55; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
/* «Смотреть каталог»: синяя капля с числом товаров; «Найти товар»: стеклянная строка поиска с примерами */
.btn.cta-main { gap: 12px; padding: 0 10px 0 28px; }
.cta-main:not(:has(.cta-count:not(:empty))) { padding-right: 28px; }
.cta-count { display: grid; place-items: center; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; font-size: .9rem; font-weight: 700; font-variant-numeric: tabular-nums;
  background: rgba(255,255,255,.2); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.4); }
.cta-count:empty { display: none; }
.cta-search { display: inline-flex; flex: 1 1 210px; align-items: center; gap: 12px; height: 56px; min-width: 0; max-width: 380px; padding: 0 24px 0 20px; border: 0; border-radius: 999px; cursor: pointer; text-align: left; color: var(--text); font: inherit;
  transition: transform .55s var(--spring); }
.cta-search svg { flex: none; color: var(--muted); }
.cta-search-text { font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
.cta-search-hint { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted-2); font-size: .94rem; }
@media (hover: hover) { .cta-search:hover, .cta-main:hover { transform: scale(1.025); } }
/* ПК: рядом с кнопкой каталога подсказке с брендами не хватало места («Spot…») — показываем только «Найти товар», обе кнопки в один ряд */
@media (min-width: 961px) { .cta-search { flex: 0 0 auto; padding-right: 26px; } .cta-search-hint { display: none; } }
.cta-search:active, .cta-main:active { transform: scale(.96); transition-duration: .12s; }

/* пример заказа: «живая активность» */
.demo { margin-top: 40px; max-width: 450px; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; border-radius: 32px; }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .78rem; }
.demo-tag { color: var(--muted); font-weight: 500; }
.demo-status { padding: 3px 12px; border-radius: 999px; font-weight: 700; transition: background-color .35s, color .35s, transform .5s var(--spring); }
.demo-status.pending { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.demo-status.paid { background: color-mix(in srgb, var(--info) 20%, transparent); color: var(--info); }
.demo-status.ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.demo-row { display: flex; align-items: center; gap: 14px; }
.demo-row .gc-box { width: 64px; flex: none; }
.demo-name { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.demo-name b { font-weight: 650; }
.demo-name span { color: var(--muted); font-size: .86rem; }
.demo-price { margin-left: auto; font: 700 1.2rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.demo-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.demo-steps i { height: 4px; border-radius: 4px; background: var(--hair); transition: background-color .5s var(--ease), box-shadow .5s; }
.demo-steps[data-s="1"] i:nth-child(1), .demo-steps[data-s="2"] i:nth-child(-n+2), .demo-steps[data-s="3"] i { background: var(--accent); box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent); }
.demo-steps[data-s="3"] i { background: var(--ok); box-shadow: 0 0 8px color-mix(in srgb, var(--ok) 60%, transparent); }
.demo-code { padding: 14px 18px; border-radius: 20px; background: var(--field); box-shadow: var(--field-sh), inset 0 0 0 1px var(--hair); color: var(--muted-2); font: 600 1.05rem/1 var(--mono); letter-spacing: .08em; transition: color .35s, box-shadow .35s; }
.demo-code.on { color: var(--ok); box-shadow: var(--field-sh), inset 0 0 0 1px color-mix(in srgb, var(--ok) 50%, transparent), 0 0 22px -6px color-mix(in srgb, var(--ok) 50%, transparent); }

/* ---------- «Камень»: глянцевая заливка цвета бренда ---------- */
.gc, .m-item, .card, .pd-panel {
  --ink: color-mix(in oklab, var(--c, #555), #000 84%); /* тёмный «чернильный» тон бренда для текста на светлых цветах */
}
/* Цвет бренда приводится к общей яркости и насыщенности (oklch): плитки и карты смотрятся одним семейством,
   без «кислотных» Duolingo и YouTube и без сдвига оттенка в градиенте. Свет — мягкий сверху, кромка — тонкая белая, как у стекла */
/* кромка цветных поверхностей (плитки, карты, кнопка «В корзину» под курсором) */
:root { --gem-edge: inset 0 0 0 .5px rgba(255,255,255,.16), inset 1px 1px 0 -.5px rgba(255,255,255,.55), inset -1px -1px 0 -.5px rgba(255,255,255,.18), inset 0 -14px 24px -18px rgba(0,0,0,.35); }
.gc, .m-item, .card {
  --c-base: var(--c, #555);
  --c-top: color-mix(in oklab, var(--c, #555), #fff 12%);
  --c-bot: color-mix(in oklab, var(--c, #555), #000 20%);
}
@supports (color: oklch(from red l c h)) {
  .gc, .m-item, .card {
    --c-base: oklch(from var(--c, #555) clamp(.3, l, .6) min(c, .19) h);
    --c-top: oklch(from var(--c, #555) calc(clamp(.3, l, .6) + .075) min(c, .175) h);
    --c-bot: oklch(from var(--c, #555) calc(clamp(.3, l, .6) - .075) min(c, .19) h);
  }
}
/* YouTube и Netflix — в настоящем фирменном красном (data-raw ставит app.js) */
.gc-box[data-raw] .gc, .m-item[data-raw], .card[data-raw] {
  --c-base: var(--c); --c-top: color-mix(in oklab, var(--c), #fff 10%); --c-bot: color-mix(in oklab, var(--c), #000 20%);
}
.gc, .m-item {
  --gem: radial-gradient(130% 90% at 18% -12%, rgba(255,255,255,.2), rgba(255,255,255,0) 55%), linear-gradient(180deg, var(--c-top), var(--c-bot));
}
.gem-edge { box-shadow: var(--gem-edge), 0 14px 26px -16px color-mix(in srgb, var(--c-base) 80%, #000), 0 2px 5px rgba(0,0,0,.12); }

/* стена брендов: стеклянный поднос с «камнями» */
.wall { position: relative; aspect-ratio: 1.2; padding: 12px; border-radius: 42px; }
.wall-layer { position: absolute; inset: 12px; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(4, 1fr); grid-auto-flow: dense; gap: 10px; }
.m-item {
  --c: #555; position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start;
  container-type: size; padding: 16px; border: 0; border-radius: 28px; overflow: hidden; cursor: pointer; text-align: left;
  color: #fff; background: var(--gem);
  box-shadow: var(--gem-edge), 0 14px 26px -16px color-mix(in srgb, var(--c-base) 80%, #000), 0 2px 5px rgba(0,0,0,.12);
  transition: transform .6s var(--spring), box-shadow .3s var(--ease);
}
.m-item:nth-child(1), .m-ph:nth-child(1) { grid-column: span 2; grid-row: span 2; }
/* 11 плиток в сетке 4×4: Spotify 2×2, ChatGPT и Discord 2×1, остальные 1×1 */
.m-item:nth-child(4), .m-item:nth-child(9), .m-ph:nth-child(4), .m-ph:nth-child(9) { grid-column: span 2; }
/* логотип в стеклянном кружке: одинаковый размер и вес у всех брендов */
.m-item .ico, .m-item .ico-mono { box-sizing: border-box; width: 42px; height: 42px; padding: 9px; border-radius: 50%; aspect-ratio: 1;
  background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 .5px rgba(255,255,255,.3), inset 1px 1px 0 -.5px rgba(255,255,255,.6), 0 4px 10px -4px rgba(0,0,0,.3);
  transition: transform .6s var(--spring); transform-origin: left top; }
/* значки в фирменном виде: Netflix — красная N на чёрном, YouTube и Duolingo — на белом, флаги eSIM — на весь кружок */
.ico[data-icon="esim"] { padding: 7px 9px; background: rgba(255,255,255,.18); }
.ico[data-icon="netflix"], .gc-logo[data-icon="netflix"] { background: #0b0b0b; box-shadow: inset 0 0 0 .5px rgba(255,255,255,.25), inset 1px 1px 0 -.5px rgba(255,255,255,.4), 0 4px 10px -4px rgba(0,0,0,.4); }
.ico[data-icon="youtube"], .gc-logo[data-icon="youtube"], .ico[data-icon="duolingo"], .gc-logo[data-icon="duolingo"] { background: #fff; box-shadow: inset 0 0 0 .5px rgba(0,0,0,.08), 0 4px 10px -4px rgba(0,0,0,.35); }
.gc-logo.flag { padding: 0 !important; object-fit: cover; background: #fff; box-shadow: inset 0 0 0 .2cqw rgba(255,255,255,.5), 0 .6cqw 1.6cqw -.6cqw rgba(0,0,0,.4); }
.gc-flag.gc-data { color: #fff; background: rgba(255,255,255,.18); box-shadow: inset 0 0 0 .2cqw rgba(255,255,255,.3), inset .3cqw .3cqw 0 -.2cqw rgba(255,255,255,.5); }
.m-item:nth-child(1) .ico, .m-item:nth-child(1) .ico-mono { width: min(64px, 50cqmin); height: min(64px, 50cqmin); padding: min(13px, 10cqmin); }
.ico { position: relative; z-index: 1; object-fit: contain; }
.ico-mono { position: relative; z-index: 1; font-weight: 800; line-height: 1; }
.m-item .ico-mono { display: grid; place-items: center; padding: 0; font-size: 1.2rem; }
.m-text { position: relative; display: flex; flex-direction: column; gap: 3px; text-shadow: 0 1px 2px rgba(0,0,0,.16); }
.m-name { font-weight: 650; font-size: clamp(.84rem, 6.2cqw, 1.4rem); line-height: 1.1; letter-spacing: -.015em; }
.m-from { font: 500 .76rem/1.2 var(--font); font-variant-numeric: tabular-nums; opacity: .78; display: none; }
@container (min-width: 150px) and (min-height: 130px) { .m-from { display: block; } }
/* Плитка подстраивается под свой размер (на узком телефоне строка стены всего ~55 px):
   узкая — только логотип по центру, как значок приложения (название есть в aria-label);
   низкая и широкая — логотип и название в одну строку */
@container (max-width: 90px) {
  .m-item .ico, .m-item .ico-mono { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: min(48px, calc(100cqmin + 8px)); height: min(48px, calc(100cqmin + 8px)); padding: min(10px, 22cqmin); transform-origin: center; }
  .m-text { display: none; }
}
@container (min-width: 91px) and (max-height: 64px) {
  .m-item .ico, .m-item .ico-mono { position: absolute; left: 12px; top: 50%; translate: 0 -50%; width: min(42px, calc(100cqh + 6px)); height: min(42px, calc(100cqh + 6px)); padding: min(9px, 22cqh); transform-origin: left center; }
  .m-text { position: absolute; left: calc(22px + min(42px, calc(100cqh + 6px))); right: 10px; top: 50%; translate: 0 -50%; }
  .m-name { font-size: clamp(.78rem, 34cqh, 1.15rem); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .m-from { display: none; }
}
}
@media (hover: hover) {
  .m-item:hover { transform: scale(1.04); box-shadow: var(--gem-edge), 0 22px 34px -16px color-mix(in srgb, var(--c-base) 85%, #000), 0 2px 5px rgba(0,0,0,.12); }
  .m-item:hover .ico, .m-item:hover .ico-mono { transform: scale(1.08); }
}
.m-item:active { transform: scale(.97); transition-duration: .12s; }
.m-item[aria-pressed="true"] { outline: 3px solid var(--text); outline-offset: 3px; }
/* заглушки, пока каталог грузится: стеклянные плитки той же раскладки */
.m-ph { border-radius: 28px; background: linear-gradient(180deg, var(--fill-2), var(--fill)); box-shadow: inset 0 0 0 1px var(--hair); }

/* ---------- Секции ---------- */
.section { padding-top: 84px; padding-bottom: 8px; scroll-margin-top: 90px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
.sec-head .muted { margin-top: 6px; }

/* ---------- Каталог: панель инструментов ---------- */
.catalog-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 0 14px; }
.searchbox { display: flex; align-items: center; gap: 10px; flex: 0 1 236px; min-width: 0; height: 52px; padding: 0 20px; border-radius: 999px; color: var(--muted); transition: box-shadow .3s var(--ease); }
.searchbox:focus-within { box-shadow: inset 0 1px 0 var(--rim-a), 0 0 0 1.5px var(--accent), 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent), var(--sh-s); }
.searchbox input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: inherit; }
.searchbox input::placeholder { color: var(--muted-2); }
.sort { position: relative; flex: none; height: 52px; border-radius: 999px; }
.sort select {
  appearance: none; -webkit-appearance: none; height: 100%; min-width: 196px; padding: 0 46px 0 22px; border: 0; border-radius: 999px; background: none; color: var(--text); font: inherit; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 20px center;
}
.sort select:focus-visible { outline-offset: 0; }
.sort select option { color: #111; background: #fff; }
.filters { position: relative; display: flex; align-items: center; gap: 2px; height: 52px; padding: 4px; border-radius: 999px; flex: 0 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.chip { position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-size: .94rem; font-weight: 500; cursor: pointer; transition: color .25s, transform .55s var(--spring); }
.chip:hover { color: var(--text); }
.chip:active { transform: scale(.94); transition-duration: .1s; }
.chip[aria-pressed="true"] { color: var(--text); }
.chip small { opacity: .55; font-variant-numeric: tabular-nums; }

/* ---------- Каталог: карты ---------- */
.grid { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 26px; padding: 18px 0 56px; }
.card {
  --c: #555; position: relative; display: flex; flex-direction: column; padding: 10px 10px 14px; border-radius: 34px;
  /* стекло карточки чуть окрашено цветом бренда: карта, подпись и кнопка смотрятся одним целым */
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--c-base) 16%, transparent), transparent 70%), linear-gradient(180deg, var(--card-a), var(--card-b));
  transition: transform .6s var(--spring), box-shadow .3s var(--ease);
}
@media (hover: hover) { .card:hover { transform: scale(1.025); } }
.card.away .gc-box, .card.away .fav { visibility: hidden; }

/* размеры внутри карты заданы в cqw (доля её ширины): одна и та же карта
   в каталоге, в окне товара и в полёте в корзину выглядит одинаково */
.gc-box { container-type: inline-size; position: relative; }
.gc-box.tilt { perspective: 1000px; }
.gc {
  position: relative; isolation: isolate; overflow: hidden; aspect-ratio: 1.586; border-radius: 9.6cqw; color: #fff;
  background: var(--gem);
  box-shadow: var(--gem-edge), 0 6cqw 10cqw -6cqw color-mix(in srgb, var(--c-base) 85%, #000), 0 .8cqw 2cqw rgba(0,0,0,.12);
  transition: box-shadow .4s var(--ease), scale .45s var(--spring);
}
/* мягкий косой отсвет, как на пластиковой карте (без глянцевой «капли») */
.gc::before { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(118deg, rgba(255,255,255,.13) 0%, rgba(255,255,255,0) 42%); pointer-events: none; }
.gc-box.tilt .gc { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.gc-glare { position: absolute; inset: 0; z-index: 6; pointer-events: none; opacity: 0; transition: opacity .35s var(--ease);
  background: radial-gradient(circle at var(--mx, 30%) var(--my, 0%), rgba(255,255,255,.3), transparent 50%); }
.gc-box.live .gc-glare { opacity: 1; }
.gc-sheen { position: absolute; z-index: 7; top: -20%; bottom: -20%; left: 0; width: 34%; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.34), transparent); transform: translateX(-120%) skewX(-18deg); }
.gc-mark { position: absolute; z-index: 3; right: -12cqw; bottom: -17cqw; width: 66cqw; height: 66cqw; object-fit: contain; opacity: .1; rotate: -14deg; filter: brightness(0) invert(1); pointer-events: none; user-select: none;
  translate: calc(var(--tx, 0) * -4cqw) calc(var(--ty, 0) * -4cqw); transition: rotate .9s var(--ease), scale .9s var(--ease); }
.gc-box.live .gc-mark { rotate: -7deg; scale: 1.06; }
.gc-mono { display: grid; place-items: center; font-family: var(--display); font-weight: 800; line-height: 1; }
.gc-mark.gc-mono { width: auto; height: auto; font-size: 60cqw; }
.gc-top { position: absolute; z-index: 5; left: 7.4cqw; top: 6.6cqw; display: flex; align-items: center; gap: 2.8cqw; }
.gc-logo { box-sizing: border-box; width: 11.5cqw; height: 11.5cqw; padding: 2.3cqw; border-radius: 50%; object-fit: contain; user-select: none;
  background: rgba(255,255,255,.16); box-shadow: inset 0 0 0 .2cqw rgba(255,255,255,.28), inset .3cqw .3cqw 0 -.2cqw rgba(255,255,255,.55); }
.gc-logo.gc-mono { padding: 0; font-size: 6cqw; }
.gc-brand { font: 650 5.2cqw/1 var(--display); letter-spacing: -.015em; text-shadow: 0 .2cqw .6cqw rgba(0,0,0,.16); }
.gc-val { position: absolute; z-index: 5; left: 7.4cqw; bottom: 6.4cqw; max-width: 72cqw; white-space: nowrap; font: 700 11.5cqw/1 var(--display); letter-spacing: -.03em; word-spacing: .12em; text-shadow: 0 .3cqw 1.2cqw rgba(0,0,0,.18); }
.gc-val.long { font-size: 8.4cqw; }
/* очень длинное название («Верификация аккаунта») — в две строки, не дальше середины карты справа */
.gc-val.xlong { max-width: 64cqw; white-space: normal; font-size: 8cqw; line-height: 1.04; text-wrap: balance; }
/* eSIM: SIM-карта с золотым чипом в цвете, справа на карте (не блеклым водяным знаком) */
.gc-mark.gc-sim { filter: drop-shadow(0 1.2cqw 2cqw rgba(0,0,0,.35)); opacity: 1; width: 17cqw; height: 21cqw; right: 9cqw; bottom: auto; top: 20cqw; rotate: -9deg; translate: none; }
.gc-box.live .gc-mark.gc-sim { rotate: -4deg; scale: 1.05; }
.gc.mini .gc-mark.gc-sim { display: none; }
.gc-issuer { position: absolute; z-index: 5; right: 6.6cqw; bottom: 6.6cqw; width: 6cqw; height: 6cqw; border-radius: 1.5cqw; background: #fff; opacity: .6;
  -webkit-mask: radial-gradient(1.3cqw at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(1.3cqw at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(1.3cqw at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat, radial-gradient(1.3cqw at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat; }
.gc-flag { position: absolute; z-index: 5; right: 22cqw; top: 6cqw; padding: 1.2cqw 2.8cqw; border-radius: 99px; color: #0e1330; font: 700 3.9cqw/1.2 var(--font);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.78)); box-shadow: inset 0 .2cqw 0 #fff, 0 .8cqw 1.8cqw -.6cqw rgba(0,0,0,.3); }
/* GTA VI: своя «обложка» вместо цвета бренда. Standard — закат над морем, Ultimate — ночь с золотым названием.
   Небо — фон карты, солнце и море — отдельные слои, пальмы и город — /icons/gta-scene.svg */
.gc.gta {
  --hz: 74.2%;
  background: linear-gradient(180deg, #2b0f55 0%, #7a2390 30%, #e2407c 55%, #ff8a4c 70%, #ffc06a var(--hz));
  box-shadow: var(--gem-edge), 0 6cqw 10cqw -6cqw rgba(120,20,80,.8), 0 .8cqw 2cqw rgba(0,0,0,.12);
}
.gc.gta[data-ed="ultimate"] { background: linear-gradient(180deg, #07061f 0%, #1d0f4a 34%, #55207a 56%, #b8306f 68%, #f07a45 var(--hz));
  box-shadow: var(--gem-edge), 0 6cqw 10cqw -6cqw rgba(40,10,90,.9), 0 .8cqw 2cqw rgba(0,0,0,.12); }
.gc.gta::before { z-index: 4; }
.gta-sun { position: absolute; z-index: 1; left: 50%; top: calc(var(--hz) - 25cqw); width: 34cqw; height: 34cqw; border-radius: 50%;
  background: linear-gradient(180deg, #fff1a8 0%, #ffc45c 45%, #ff6f5e 100%); box-shadow: 0 0 14cqw 3cqw rgba(255,150,90,.55);
  /* нижняя половина солнца — в полосках, как отражение в мареве над водой */
  -webkit-mask: linear-gradient(#000 0 52%, transparent 0) top / 100% 100% no-repeat, repeating-linear-gradient(180deg, #000 0 1.9cqw, transparent 0 3.2cqw);
  mask: linear-gradient(#000 0 52%, transparent 0) top / 100% 100% no-repeat, repeating-linear-gradient(180deg, #000 0 1.9cqw, transparent 0 3.2cqw);
  translate: calc(var(--tx, 0) * 2cqw) calc(var(--ty, 0) * 1cqw); }
.gc.gta[data-ed="ultimate"] .gta-sun { background: linear-gradient(180deg, #ffe7b0 0%, #ffb25c 45%, #e4486e 100%); box-shadow: 0 0 14cqw 2cqw rgba(240,90,110,.45); }
.gta-sea { position: absolute; z-index: 2; left: 0; right: 0; top: var(--hz); bottom: 0;
  background: repeating-linear-gradient(180deg, rgba(255,190,120,.22) 0 .5cqw, transparent .5cqw 2.6cqw) 67% 0 / 34cqw 100% no-repeat, linear-gradient(180deg, #5a1d6e, #1a0830); }
.gc.gta[data-ed="ultimate"] .gta-sea { background: repeating-linear-gradient(180deg, rgba(255,150,120,.2) 0 .5cqw, transparent .5cqw 2.6cqw) 67% 0 / 34cqw 100% no-repeat, linear-gradient(180deg, #2a0f4f, #07041a); }
.gta-scene { position: absolute; z-index: 3; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right bottom; pointer-events: none; user-select: none;
  translate: calc(var(--tx, 0) * -2.5cqw) calc(var(--ty, 0) * -1.2cqw); }
.gc.gta .gc-top { z-index: 5; }
.gc.gta .gc-logo { background: rgba(255,255,255,.18); }
.gta-title { position: absolute; z-index: 5; left: 7.4cqw; bottom: 15cqw; font: 800 17cqw/.9 var(--display); letter-spacing: -.05em; white-space: nowrap;
  color: #fff; text-shadow: 0 .4cqw 0 rgba(120,20,90,.45), 0 0 6cqw rgba(255,90,150,.55); }
.gc.gta[data-ed="ultimate"] .gta-title { color: #ffd98a; background: linear-gradient(180deg, #fff3c9 10%, #ffcf6a 55%, #e9993a 90%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  text-shadow: none; filter: drop-shadow(0 .4cqw 0 rgba(60,10,70,.6)) drop-shadow(0 0 4cqw rgba(255,170,80,.35)); }
.gta-ed { position: absolute; z-index: 5; left: 7.6cqw; bottom: 7cqw; font: 650 4.8cqw/1 var(--display); letter-spacing: -.01em; color: rgba(255,255,255,.92); text-shadow: 0 .3cqw 1cqw rgba(30,0,40,.6); }
.gc.gta[data-ed="ultimate"] .gta-ed { color: #ffe3a6; }
.gc.gta.mini .gta-title, .gc.gta.mini .gta-ed, .gc.gta.mini .gc-top { display: none; }
.gta-mini { position: absolute; z-index: 5; left: 50%; top: 42%; translate: -50% -50%; font: 800 34cqw/1 var(--display); letter-spacing: -.04em; color: #fff; text-shadow: 0 0 10cqw rgba(255,90,150,.6); }
.gc.gta[data-ed="ultimate"] .gta-mini { color: #ffd98a; }
/* маленькая карта: корзина, заказы, поиск — только логотип */
.gc.mini { border-radius: 11cqw; box-shadow: var(--gem-edge), 0 3cqw 4cqw -2.4cqw color-mix(in srgb, var(--c-base) 80%, #000); }
.gc.mini .gc-val, .gc.mini .gc-issuer, .gc.mini .gc-flag, .gc.mini .gc-brand { display: none; }
.gc.mini .gc-top { left: 50%; top: 50%; translate: -50% -50%; }
.gc.mini .gc-logo { width: 40cqw; height: 40cqw; padding: 8cqw; }
.gc.mini .gc-logo.gc-mono { font-size: 30cqw; }
.gc.mini .gc-mark { opacity: .14; width: 90cqw; height: 90cqw; right: -22cqw; bottom: -34cqw; }

/* Тёмные подписи на светлых брендах больше не нужны: цвет приведён к яркости, на которой белый текст читается всегда */
.card-main { display: block; padding: 0; border: 0; background: none; text-align: left; color: inherit; cursor: pointer; outline: none; }
.card-main:active .gc { scale: .985; }
.card-main:focus-visible .gc { outline: 3px solid var(--accent); outline-offset: 4px; }
.card-cap { display: block; padding: 16px 10px 0; }
.card-title { display: block; font: 650 1.1rem/1.2 var(--display); letter-spacing: -.02em; }
.card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 6px; min-height: 2.9em; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding: 14px 4px 0 10px; }
.price-box { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.price { font: 700 1.6rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.per { min-height: 1.2em; font: 500 .76rem/1.2 var(--font); font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.per b { color: var(--ok); font-weight: 600; }
.fav {
  position: absolute; top: 22px; right: 22px; z-index: 3; width: 36px; height: 36px; display: grid; place-items: center; padding: 0;
  border-radius: 50%; border: 0; background: rgba(255,255,255,.22); color: #fff; cursor: pointer; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 0 0 1px rgba(255,255,255,.14), 0 4px 10px -3px rgba(0,0,0,.3);
  transition: background-color .2s, transform .55s var(--spring), color .2s;
}
.fav:hover { background: rgba(255,255,255,.36); transform: scale(1.1); }
.fav:active { transform: scale(.88); transition-duration: .1s; }
.fav svg { fill: none; transition: fill .2s; }
.fav[aria-pressed="true"] { color: #ff6b8d; }
.fav[aria-pressed="true"] svg { fill: currentColor; }

/* «В корзину» превращается в счётчик, когда товар уже в корзине */
.add { position: relative; flex: none; width: 130px; height: 44px; }
.add > * { position: absolute; inset: 0; transition: opacity .25s var(--ease), transform .55s var(--spring); }
.add-btn {
  display: flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px; color: var(--text); font: 650 .92rem var(--font); cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c-base) 22%, var(--lens-a)), color-mix(in srgb, var(--c-base) 14%, var(--lens-b)));
  box-shadow: inset 0 0 0 .5px var(--hl), inset 1px 1px 0 -.5px var(--spec-2), var(--lens-sh);
  transition: opacity .25s var(--ease), transform .55s var(--spring), background .25s, color .25s, box-shadow .25s;
}
@media (hover: hover) { .add-btn:hover { color: #fff; background: linear-gradient(180deg, var(--c-top), var(--c-bot)); box-shadow: var(--gem-edge), 0 8px 18px -8px color-mix(in srgb, var(--c-base) 80%, #000); } }
.add-btn:active { transform: scale(.93); transition-duration: .1s; }
/* ПК: «В корзину» залита цветом бренда с белым текстом — заметнее бледной капсулы; под курсором чуть светлее */
@media (min-width: 821px) {
  .add-btn { color: #fff; font-weight: 650; background: linear-gradient(180deg, var(--c-top), var(--c-bot));
    box-shadow: var(--gem-edge), 0 8px 18px -10px color-mix(in srgb, var(--c-base) 85%, #000); text-shadow: 0 1px 1px rgba(0,0,0,.15); }
  @media (hover: hover) { .add-btn:hover { color: #fff; filter: brightness(1.1) saturate(1.05); transform: scale(1.04); background: linear-gradient(180deg, var(--c-top), var(--c-bot)); } }
}
.add-step { display: flex; align-items: center; justify-content: space-between; padding: 4px; border-radius: 999px; background: linear-gradient(180deg, var(--fill-2), var(--fill)); box-shadow: inset 0 1px 0 var(--rim-a), 0 0 0 .5px var(--edge), var(--sh-s); opacity: 0; transform: scale(.7); }
.add-step button { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--lens-b); color: var(--text); cursor: pointer; box-shadow: inset 0 1px 0 var(--lens-rim); transition: background-color .15s, transform .5s var(--spring); }
.add-step button:hover:not(:disabled) { background: var(--lens-a); }
.add-step button:active:not(:disabled) { transform: scale(.86); transition-duration: .1s; }
.add-step button:disabled { opacity: .4; cursor: not-allowed; }
.add-qty { min-width: 24px; text-align: center; font: 700 1rem var(--display); font-variant-numeric: tabular-nums; }
.add[data-in="1"] .add-btn { opacity: 0; transform: scale(.7); pointer-events: none; }
.add[data-in="1"] .add-step { opacity: 1; transform: none; }

/* заглушка карты, пока грузится каталог */
.card.skel { pointer-events: none; }
.sk { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--hair), var(--hover), var(--hair)); background-size: 220% 100%; animation: shimmer 1.4s infinite linear; }
.sk-face { aspect-ratio: 1.586; border-radius: 24px; }
.sk-l { height: 14px; margin: 16px 10px 0; }
.sk-l.s { width: 56%; } .sk-l.m { width: 84%; margin-top: 10px; }
@keyframes shimmer { to { background-position: -220% 0; } }
.card.ghost { position: absolute; margin: 0; pointer-events: none; z-index: 2; }
.empty { text-align: center; padding: 56px 0; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.empty::before { content: ""; width: 128px; aspect-ratio: 1.586; margin-bottom: 8px; border-radius: 20px; rotate: -6deg;
  background: radial-gradient(circle at 24% 30%, var(--muted-2) 0 5px, transparent 6px), linear-gradient(var(--hair), var(--hair)) 18% 72% / 44% 4px no-repeat, linear-gradient(180deg, var(--fill-2), var(--fill));
  box-shadow: inset 0 1px 0 var(--rim-a), 0 0 0 .5px var(--edge), var(--sh-s); }

/* ---------- Как это работает / вопросы ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; }
.step { display: flex; flex-direction: column; gap: 10px; padding: 26px 26px 28px; border-radius: 34px; }
.step .num { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 14px; border-radius: 50%; color: #fff; font: 700 1.1rem var(--display);
  background: linear-gradient(180deg, var(--accent-top), var(--accent-deep)); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 8px 16px -6px rgba(10,114,240,.7); }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); font-size: .96rem; max-width: 40ch; }
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.faq .sec-head { margin-bottom: 0; position: sticky; top: 100px; }
.faq-list { padding: 8px 28px; border-radius: 36px; }
details { border-bottom: 1px solid var(--hair); }
details:last-child { border-bottom: 0; }
summary { cursor: pointer; list-style: none; padding: 20px 0; font-weight: 650; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--hover) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat; box-shadow: inset 0 1px 0 var(--rim-a); transition: transform .55s var(--spring), background-color .2s; }
details[open] summary::after { transform: rotate(135deg); }
details p { color: var(--muted); padding-bottom: 20px; max-width: 68ch; }

/* ---------- Подвал ---------- */
.foot { padding: 90px 0 calc(36px + env(safe-area-inset-bottom)); }
.foot-slab { padding: 32px 34px; border-radius: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; align-items: start; }
.foot-brand .muted { margin-top: 12px; max-width: 360px; }
.foot-nav { display: flex; flex-direction: column; gap: 8px; }
.foot-nav a { color: var(--muted); text-decoration: none; font-size: .94rem; transition: color .2s; }
.foot-nav a:hover { color: var(--text); }
.lookup label { display: block; font-size: .88rem; color: var(--muted); margin-bottom: 8px; }
.lookup-row { display: flex; gap: 8px; }
.lookup .field { font-size: .95rem; }
.legal { margin-top: 22px; padding: 0 12px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.legal p { flex: 1 1 420px; }
.fx-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border: 0; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--muted); cursor: pointer; transition: transform .55s var(--spring), color .2s; }
.fx-btn:hover { color: var(--text); }
.fx-btn:active { transform: scale(.94); transition-duration: .1s; }

/* ---------- Диалоги ---------- */
dialog { border: 0; padding: 0; color: var(--text); max-width: 100%; max-height: 100%; background: transparent; }
dialog::backdrop { background: var(--scrim); }
@keyframes bd-in { from { opacity: 0; } }
@keyframes bd-out { to { opacity: 0; } }
dialog[open]::backdrop { animation: bd-in .4s var(--ease) both; }
dialog.closing::backdrop { animation: bd-out .3s var(--ease) forwards; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.97); } }
.panel { isolation: isolate; background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); box-shadow: inset 0 1px 0 var(--rim-a), inset 0 0 20px var(--inner-glow), 0 0 0 .5px var(--edge), var(--sh-l); }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, var(--spec) 0%, transparent 22%, transparent 74%, var(--spec-2) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude; }

/* Окно товара: прозрачный контейнер на весь экран, внутри панель. Клик мимо панели закрывает окно.
   Карту из каталога app.js «переносит» в шапку панели, поэтому у самого окна нет анимации появления. */
/* Само окно не прокручивается (overflow: clip): пока шторка выезжает снизу, её сдвиг добавлял окну ~500 px «прокрутки»,
   Safari прокручивал туда (фокус на кнопке закрытия), а в конце выезда прокрутка сбрасывалась — шторка с картой прыгала.
   Высота панели и так ограничена, длинный текст листается внутри неё (.pd-body) */
.pd-dialog { width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 16px; overflow: hidden; overflow: clip; overscroll-behavior: contain; }
.pd-dialog[open] { display: flex; }
.pd-panel { --c: #555; position: relative; margin: auto; width: min(620px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; overflow: hidden; border-radius: 42px; }
.pd-grab { display: none; }
.pd-stage { position: relative; flex: none; display: grid; place-items: center; padding: 54px 36px 38px; overflow: hidden;
  background: radial-gradient(72% 100% at 50% 0%, color-mix(in srgb, var(--c) 38%, transparent), transparent 72%); }
.pd-stage .gc-box { width: min(360px, 100%); }
.pd-stage .gc-box::after { content: ""; position: absolute; left: 8%; right: 8%; bottom: -24px; height: 28px; z-index: -1; pointer-events: none; background: radial-gradient(closest-side, color-mix(in srgb, var(--c) 60%, rgba(0,0,0,.5)), transparent); opacity: .55; filter: blur(8px); }
.pd-close, .pd-stage .fav { position: absolute; top: 16px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; cursor: pointer; color: var(--text);
  background: linear-gradient(180deg, var(--lens-a), var(--lens-b)); box-shadow: inset 0 1px 0 var(--lens-rim), var(--lens-sh); transition: transform .55s var(--spring), background-color .2s; }
.pd-close { right: 16px; }
.pd-stage .fav { right: 64px; }
.pd-close:hover, .pd-stage .fav:hover { transform: scale(1.08); }
.pd-close:active, .pd-stage .fav:active { transform: scale(.9); transition-duration: .1s; }
.pd-stage .fav[aria-pressed="true"] { color: #ff4f7b; }
.pd-body { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.pd-panel .pd-body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 22px 32px 0; gap: 20px; }
.pd-title { font: 700 1.85rem/1.08 var(--display); letter-spacing: -.038em; }
.pd-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.pd-meta span { padding: 4px 12px; border-radius: 99px; background: var(--hover); color: var(--muted); font-size: .82rem; font-weight: 500; box-shadow: inset 0 1px 0 var(--rim-a); }
.pd-meta span.ok { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); font-weight: 650; box-shadow: none; }
.pd-desc { margin-top: 12px; color: var(--muted); }
/* варианты переносятся по сетке: при 7 странах eSIM одна строка уезжала за край и окно листалось вбок */
.variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 6px; padding: 5px; border-radius: 24px; background: var(--field); box-shadow: var(--field-sh), inset 0 0 0 1px var(--hair); }
.var { text-align: left; padding: 11px 16px; border: 0; border-radius: 19px; background: transparent; color: var(--muted); cursor: pointer; display: flex; flex-direction: column; gap: 2px; transition: background .25s, color .25s, box-shadow .25s, transform .55s var(--spring); }
.var:hover { color: var(--text); }
.var:active { transform: scale(.97); transition-duration: .1s; }
.var[aria-pressed="true"] { background: linear-gradient(180deg, var(--lens-a), var(--lens-b)); color: var(--text); box-shadow: inset 0 1px 0 var(--lens-rim), var(--lens-sh); }
.var b { font-size: .95rem; line-height: 1.25; -webkit-hyphens: auto; hyphens: auto; overflow-wrap: break-word; }
.pd-panel .pd-body { overflow-x: hidden; }
.var span { font-size: .86rem; opacity: .85; font-variant-numeric: tabular-nums; }
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.features li { display: flex; gap: 12px; color: var(--muted); }
.features li::before { content: ""; flex: none; width: 21px; height: 21px; margin-top: 1px; border-radius: 50%; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 3px 8px -3px var(--c);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 10.5 3 3 6-7'/%3E%3C/svg%3E") center / 100% no-repeat, linear-gradient(180deg, color-mix(in oklab, var(--c), #fff 42%), color-mix(in oklab, var(--c), #fff 14%)); }
.pd-panel[data-ink="dark"] .features li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23072012' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 10.5 3 3 6-7'/%3E%3C/svg%3E"), linear-gradient(180deg, color-mix(in oklab, var(--c), #fff 42%), color-mix(in oklab, var(--c), #fff 14%)); }
.pd-buy { position: sticky; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 0 -32px; padding: 16px 32px 26px; background: var(--panel-solid); box-shadow: 0 -1px 0 var(--hair); }
.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--field); box-shadow: var(--field-sh), inset 0 0 0 1px var(--hair); }
.stepper button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: linear-gradient(180deg, var(--lens-a), var(--lens-b)); color: var(--text); cursor: pointer; font-size: 1.1rem; box-shadow: inset 0 1px 0 var(--lens-rim), 0 2px 6px -2px rgba(0,0,0,.25); transition: transform .5s var(--spring), opacity .2s; }
.stepper button:active:not(:disabled) { transform: scale(.86); transition-duration: .1s; }
.stepper button:disabled { opacity: .4; cursor: not-allowed; }
.stepper .val { min-width: 34px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.pd-total { font: 700 1.7rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

/* Быстрый поиск */
.palette { width: min(680px, calc(100% - 24px)); margin: 11vh auto auto; border-radius: 36px; overflow: hidden; isolation: isolate; }
.pal-box { position: relative; }
.pal-input { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--hair); color: var(--muted); }
.pal-input input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 1.1rem; min-width: 0; }
#pal-list { list-style: none; margin: 0; padding: 10px; max-height: min(52vh, 400px); overflow-y: auto; }
#pal-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 22px; cursor: pointer; transition: background-color .2s; }
#pal-list li[aria-selected="true"] { background: linear-gradient(180deg, var(--lens-a), var(--lens-b)); box-shadow: inset 0 1px 0 var(--lens-rim), var(--lens-sh); }
#pal-list .gc-box { width: 50px; flex: none; }
#pal-list .pl-main { flex: 1; min-width: 0; }
#pal-list .pl-name { display: block; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#pal-list .pl-sub { display: block; color: var(--muted); font-size: .84rem; }
#pal-list .pl-price { font-weight: 700; font-variant-numeric: tabular-nums; }
#pal-list .pl-act { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; color: var(--accent); background: var(--hover); box-shadow: inset 0 1px 0 var(--rim-a); }
.pal-group { padding: 10px 14px 4px; font-size: .82rem; font-weight: 650; color: var(--muted); cursor: default; }
.pal-empty { padding: 28px; text-align: center; color: var(--muted); }
.pal-foot { display: flex; gap: 18px; padding: 12px 22px; border-top: 1px solid var(--hair); color: var(--muted); font-size: .8rem; }

/* Корзина: плавающая панель справа */
.drawer { position: fixed; inset: 12px 12px 12px auto; margin: 0; width: min(450px, calc(100% - 24px)); height: auto; max-height: none; border-radius: 40px; overflow: hidden; isolation: isolate; }
.drawer-inner { display: flex; flex-direction: column; height: 100%; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px 16px 28px; }
.drawer-head h2 { font-size: 1.5rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 0 28px; }
.drawer-body .empty { padding: 64px 0; }
.line { display: grid; grid-template-columns: 78px 1fr auto; gap: 4px 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.line .gc-box { grid-row: 1 / span 2; margin-top: 2px; }
.line .nm { font-weight: 650; line-height: 1.3; }
.line .sub { color: var(--muted); font-size: .86rem; }
.line-total { font-weight: 700; font-variant-numeric: tabular-nums; }
.line-qty { grid-column: 2 / -1; display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.link-btn { background: none; border: 0; color: var(--err); cursor: pointer; font-size: .88rem; padding: 4px 0; margin-left: auto; }
.drawer-foot { padding: 18px 28px calc(26px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 9px; background: var(--panel-solid); box-shadow: 0 -1px 0 var(--hair); }
.drawer-foot label { color: var(--muted); font-size: .88rem; }
.promo { display: flex; gap: 8px; }
.promo .field { font-size: .95rem; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.sums { display: flex; flex-direction: column; gap: 4px; font-size: .94rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.sums > div { display: flex; justify-content: space-between; }
.sums .disc { color: var(--ok); font-weight: 650; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: 1.05rem; }
.total strong { font: 700 1.75rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.msg { min-height: 1.2em; font-size: .88rem; }
.msg.err { color: var(--err); }
.msg.ok { color: var(--ok); }

/* ---------- Страница заказа ---------- */
.order-card { overflow: hidden; border-radius: 42px; padding: 34px; display: flex; flex-direction: column; gap: 24px; }
.order-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.order-brands { display: flex; gap: 12px; margin-top: 20px; }
.order-brands .gc-box { width: 92px; }
.order-id { font: 600 1.3rem var(--mono); word-break: break-all; }
.status { display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: .86rem; font-weight: 700; white-space: nowrap; box-shadow: inset 0 1px 0 var(--rim-a); }
.status.pending { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
.status.paid { background: color-mix(in srgb, var(--info) 20%, transparent); color: var(--info); }
.status.delivered { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.status.cancelled { background: color-mix(in srgb, var(--err) 18%, transparent); color: var(--err); }
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); margin: 6px 0; }
.tl-step { position: relative; display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; font-size: .88rem; color: var(--muted); }
.tl-step::before, .tl-step.done::after { content: ""; position: absolute; top: 16px; right: 50%; width: 100%; height: 3px; border-radius: 3px; background: var(--hair); }
.tl-step:first-child::before, .tl-step:first-child::after { display: none; }
.tl-dot { position: relative; z-index: 1; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-size: .82rem; font-weight: 800; background: linear-gradient(180deg, var(--fill-2), var(--fill)); box-shadow: inset 0 1px 0 var(--rim-a), 0 0 0 .5px var(--edge); }
.tl-step.done { color: var(--text); }
.tl-step.done::after { background: var(--ok); transform-origin: left; box-shadow: 0 0 10px color-mix(in srgb, var(--ok) 55%, transparent); }
.tl-step.done .tl-dot { color: #fff; background: linear-gradient(180deg, color-mix(in oklab, var(--ok), #fff 22%), var(--ok)); box-shadow: inset 0 1px 0 rgba(255,255,255,.7), 0 6px 14px -5px var(--ok); }
.tl-step.now .tl-dot { box-shadow: inset 0 1px 0 var(--rim-a), 0 0 0 2px var(--accent), 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); animation: pulse2 2s infinite; }
.tl-step.now { color: var(--text); font-weight: 650; }
@keyframes pulse2 { 50% { box-shadow: inset 0 1px 0 var(--rim-a), 0 0 0 2px var(--accent), 0 0 0 11px color-mix(in srgb, var(--accent) 0%, transparent); } }
.order-rows { display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.order-row { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hair); }
.order-row .sub { color: var(--muted); font-size: .88rem; }
.notice { padding: 16px 20px; border-radius: 24px; background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 30%, transparent); font-size: .94rem; }
.notice.err { background: color-mix(in srgb, var(--err) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--err) 34%, transparent); }
/* выданный код — стеклянная «вставка» с зелёным свечением */
.delivery { border-radius: 28px; padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; background: var(--field); box-shadow: var(--field-sh), inset 0 0 0 1px color-mix(in srgb, var(--ok) 50%, transparent), 0 0 34px -10px color-mix(in srgb, var(--ok) 55%, transparent); }
.delivery h3 { font-size: 1rem; color: var(--ok); }
.delivery pre { margin: 0; white-space: pre-wrap; word-break: break-word; font: 600 1.1rem/1.6 var(--mono); letter-spacing: .03em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* ---------- Оплата USDT: выбор способа в корзине и блок оплаты на странице заказа ---------- */
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.paybox .pay-opt { font: inherit; text-align: left; border: 0; }
.paybox .pay-opt:hover { box-shadow: var(--field-sh), inset 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent); }
.pay-switch { align-self: flex-start; padding: 4px 2px; border: 0; background: none; color: var(--accent); font: 600 .9rem var(--font); cursor: pointer; }
.pay-switch:hover { text-decoration: underline; }
.drawer-foot .pay-opt, .paybox .pay-opt { position: relative; display: flex; align-items: center; gap: 10px; min-width: 0; padding: 10px 12px; border-radius: 18px; cursor: pointer; color: var(--text); font-size: .95rem;
  background: var(--field); box-shadow: var(--field-sh), inset 0 0 0 1px var(--hair); transition: box-shadow .25s var(--ease), transform .5s var(--spring); }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt:has(input:checked) { box-shadow: var(--field-sh), inset 0 0 0 2px var(--accent), 0 6px 18px -10px color-mix(in srgb, var(--accent) 70%, transparent); }
.pay-opt:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-opt:active { transform: scale(.97); }
.pay-opt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pay-opt-text b { font-weight: 650; line-height: 1.15; }
.pay-opt-text small { color: var(--muted); font-size: .74rem; line-height: 1.25; }
/* значки способов оплаты: официальные знаки бирж, сетей и m10 в круге; у сетей — маленький значок USDT в углу */
.pay-logo { position: relative; flex: none; width: 34px; height: 34px; }
.pay-logo > img:first-child { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 .5px rgba(255,255,255,.25), 0 3px 8px -3px rgba(0,0,0,.4); }
.pay-badge { position: absolute; right: -3px; bottom: -3px; width: 17px; height: 17px; padding: 2px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); }
.pay-group { display: flex; flex-direction: column; gap: 8px; }
.pay-group h4 { margin: 0; color: var(--muted); font-size: .8rem; font-weight: 600; }
.paybox .pay-opt.last { box-shadow: var(--field-sh), inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.pay-field.addr .pay-v { font-size: .92rem; line-height: 1.35; letter-spacing: 0; }
.pay-wait.claim { flex-wrap: wrap; align-items: center; }
.pay-wait.claim > span { flex: 1 1 220px; }
.pay-wait.claim .btn { flex: none; }
.paybox { display: flex; flex-direction: column; gap: 16px; padding: 20px 22px; border-radius: 28px; background: var(--field);
  box-shadow: var(--field-sh), inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 34px -12px color-mix(in srgb, var(--accent) 50%, transparent); }
.pay-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.pay-head .pay-logo { width: 44px; height: 44px; }
.pay-head .pay-badge { width: 20px; height: 20px; }
.pay-head h3 { font-size: 1.08rem; }
.pay-head p { margin: 3px 0 0; }
.pay-timer { padding: 7px 12px; border-radius: 999px; background: var(--hover); font: 700 1rem/1 var(--display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pay-timer.late { color: var(--err); font-size: .82rem; }
.pay-steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 12px; font-size: .95rem; line-height: 1.45; }
.pay-steps li::marker { color: var(--muted); font-weight: 700; }
.pay-steps p { margin: 6px 2px 0; }
.pay-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "k btn" "v btn"; align-items: center; gap: 3px 12px; padding: 11px 12px 11px 16px; border-radius: 18px;
  background: color-mix(in srgb, var(--text) 5%, transparent); box-shadow: inset 0 0 0 1px var(--hair); }
.pay-k { grid-area: k; color: var(--muted); font-size: .8rem; }
.pay-v { grid-area: v; overflow-wrap: anywhere; font: 650 1.12rem/1.2 var(--mono); letter-spacing: .02em; user-select: all; -webkit-user-select: all; }
.pay-field.sum .pay-v { font: 750 1.6rem/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pay-field .btn { grid-area: btn; }
.pay-wait { display: flex; align-items: flex-start; gap: 10px; margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.pay-pulse { flex: none; width: 10px; height: 10px; margin-top: .38em; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); }
.motion .pay-pulse { animation: pay-pulse 1.8s var(--ease) infinite; }
@keyframes pay-pulse { 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.notice.ok { background: color-mix(in srgb, var(--ok) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 34%, transparent); }
@media (max-width: 420px) {
  .paybox { padding: 18px 16px; }
  .pay-opts { grid-template-columns: 1fr; }
  .pay-head { grid-template-columns: auto minmax(0, 1fr); }
  .pay-timer { grid-column: 1 / -1; justify-self: start; }
}
.sums-order { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sums-order > div { display: flex; justify-content: space-between; }
.sums-order .disc { color: var(--ok); }
.order-row strong, .o-sum, .o-right strong { font-variant-numeric: tabular-nums; }
.orders-list { display: flex; flex-direction: column; gap: 14px; }
.o-item { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 18px; align-items: center; padding: 18px 22px; border-radius: 32px; text-decoration: none; transition: transform .6s var(--spring); }
@media (hover: hover) { .o-item:hover { transform: scale(1.012); } }
.o-item:active { transform: scale(.985); transition-duration: .1s; }
.o-item .o-id { font-family: var(--mono); font-weight: 600; grid-column: 2; }
.o-stack { grid-column: 1; grid-row: 1 / span 2; display: flex; }
.o-stack .gc-box { width: 64px; margin-left: -22px; }
.o-stack .gc-box:first-child { margin-left: 0; }
.o-item .o-sum { grid-column: 2; color: var(--muted); font-size: .9rem; }
.o-item .o-right { grid-row: 1 / span 2; grid-column: 3; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }

/* ---------- Уведомления ---------- */
.toasts { position: fixed; z-index: 1000; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; width: min(460px, calc(100% - 24px)); pointer-events: none; }
.toast { position: relative; overflow: hidden; pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 54px; padding: 12px 22px; border-radius: 999px; background: linear-gradient(180deg, var(--panel-a), var(--panel-b)); }
.toast span { flex: 1; font-size: .94rem; font-weight: 500; }
.toast button { background: none; border: 0; color: var(--accent); font-weight: 700; cursor: pointer; padding: 4px 6px; border-radius: 10px; }
.toast.err { box-shadow: inset 0 1px 0 var(--rim-a), inset 0 0 0 1.5px color-mix(in srgb, var(--err) 60%, transparent), var(--sh-s); }

/* ---------- Адаптив ---------- */
@media (max-width: 1099px) { .catalog-bar .filters { flex: 1 1 100%; } }
/* Панель каталога больше не прилипает: на ПК при прокрутке каталога категории переезжают в шапку (html.cat-mode),
   вместо логотипа и меню — одна полоса над карточками */
/* категории лежат поверх левой части шапки и проявляются, а логотип с меню в это время гаснут: без скачка раскладки */
.top-cats { position: absolute; left: max(22px, env(safe-area-inset-left)); top: 0; width: max-content;
  max-width: calc(100% - 2 * max(22px, env(safe-area-inset-left)) - var(--actions-w, 420px) - 14px);
  opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97); transform-origin: left center;
  transition: opacity .38s var(--ease), transform .55s var(--spring-soft, var(--ease)), visibility 0s linear .38s; }
.top .logo, .top .nav { transition: opacity .32s var(--ease), transform .5s var(--spring-soft, var(--ease)), visibility 0s linear 0s; }
.catalog-bar .filters { transition: opacity .3s var(--ease), visibility 0s linear 0s; }
.cat-mode .top-cats { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.cat-mode .top .logo, .cat-mode .top .nav { opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.97); transition-delay: 0s, 0s, .32s; }
.cat-mode .catalog-bar .filters { opacity: 0; visibility: hidden; transition-delay: 0s, .3s; }
@media (max-width: 1000px) { .top-cats { display: none; } }
@media (max-width: 960px) {
  .faq { grid-template-columns: 1fr; gap: 20px; }
  .faq .sec-head { position: static; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hero { padding: 28px 0 48px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 1100px) {
  .search-btn .search-label, .search-btn kbd { display: none; }
  .search-btn { width: 44px; padding: 0; justify-content: center; }
}
@media (max-width: 1000px) {
  .nav { display: none; }
}
@media (max-width: 820px) {
  .top { padding: 0 14px; }
  /* сверху справа только поиск и тема; корзина и заказы переехали в нижнюю панель */
  .bar-actions > .settings-btn { display: none; }

  /* нижняя плавающая панель, как в iOS 26: значок над подписью, линза стоит на текущем разделе,
     едет за пальцем и садится на пункт, на котором отпустили */
  .tabbar {
    position: fixed; z-index: 31; left: 14px; right: 14px; max-width: 420px; margin-inline: auto; display: flex; align-items: center; justify-content: space-between;
    bottom: max(14px, env(safe-area-inset-bottom)); height: 68px; padding: 5px; gap: 2px; border-radius: 999px; touch-action: pan-y;
    scale: 1; transition: scale .55s var(--spring);
  }
  /* как у iOS: под панелью контент сильнее размыт и чуть притушен, чтобы подписи читались над любыми карточками */
  .tabbar.bf { --bf: blur(16px) saturate(1.8) brightness(1.04); background-color: color-mix(in srgb, var(--glass-tint), var(--wall-base) 30%); }
  .tabbar.dragging { scale: 1.03; }
  .tabbar > .lens { top: 5px; bottom: 5px; }
  .tab {
    position: relative; z-index: 1; display: flex; flex: 1 1 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0;
    height: 58px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--muted); font: inherit; cursor: pointer;
    transition: color .25s, transform .55s var(--spring);
  }
  .tab:active { transform: scale(.94); transition-duration: .1s; }
  .tab svg { transition: transform .5s var(--spring); }
  .tabbar > .hot { color: var(--accent); }
  .tabbar > .hot svg { transform: scale(1.1); }
  .tab-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; font-size: .66rem; font-weight: 600; line-height: 1.1; letter-spacing: 0; white-space: nowrap; }
  .tab .count { position: absolute; top: 5px; left: calc(50% + 4px); min-width: 20px; height: 20px; padding: 0 5px; font-size: .68rem; }
  .foot { padding-bottom: calc(112px + env(safe-area-inset-bottom)); }
  .toasts { bottom: calc(96px + env(safe-area-inset-bottom)); }
}
@media (max-width: 359px) {
  .tab-label { font-size: .6rem; }
  .tabbar { left: 8px; right: 8px; padding: 4px; }
  .btn.cta-main { padding-left: 22px; }
}
@media (max-width: 480px) {
  .top .logo { padding: 0 16px 0 11px; gap: 8px; }
  .top { gap: 8px; }
}
/* совсем узкие экраны: в шапке только знак */
@media (max-width: 359px) {
  .top .logo { padding: 0 11px; }
  .top .logo-text { display: none; }
}
@media (max-width: 560px) {
  .catalog-bar .searchbox, .catalog-bar .sort { flex: 1 1 100%; }
  .hero-cta > * { flex: 1 1 100%; min-width: 0; max-width: none; }
  .cta-main { justify-content: space-between; }
  .acct-stat { padding: 11px 12px; }
  .sort select { width: 100%; }
  .filters, .filters.bf { margin-inline: -22px; padding: 4px 26px; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .filters::before, .filters::after { display: none; }
  .grid { grid-template-columns: 1fr; gap: 22px 0; }
  .order-card { padding: 22px; }
  .o-item { grid-template-columns: auto minmax(0, 1fr); padding: 16px 18px; gap: 4px 14px; }
  .o-stack .gc-box { width: 52px; margin-left: -18px; }
  .o-item .o-id { font-size: .84rem; overflow-wrap: anywhere; }
  .o-item .o-right { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; justify-content: space-between; margin-top: 8px; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-slab { padding: 24px 22px; }
  .section { padding-top: 56px; }
  .wall { padding: 8px; border-radius: 30px; }
  .wall-layer { inset: 8px; gap: 6px; }
  .m-item { padding: 10px; border-radius: 18px; }
  .m-from { display: none !important; }
  .m-name { font-size: min(.82rem, 12.5cqw); }
  .palette { margin-top: 6vh; border-radius: 30px; }
  .drawer { inset: 8px; width: auto; border-radius: 32px; }
  .pd-dialog { padding: 0; align-items: flex-end; }
  .pd-panel { width: 100%; max-height: 94dvh; margin: auto 0 0; border-radius: 34px 34px 0 0; }
  .pd-stage, .pd-grab { touch-action: none; }
  .pd-grab { display: block; position: absolute; top: 8px; left: 50%; z-index: 4; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: var(--muted-2); opacity: .6; }
  .pd-stage { padding: 52px 22px 30px; }
  .pd-panel .pd-body { padding: 20px 22px 0; }
  .pd-buy { margin: 0 -22px; padding: 14px 22px calc(22px + env(safe-area-inset-bottom)); }
  .pd-buy .btn { flex: 1 1 100%; }
}
@media (hover: none) and (pointer: coarse) {
  .field, .searchbox input, .sort select, .pal-input input, .promo .field, .lookup .field { font-size: 16px; }
}
@media (max-height: 760px) {
  .pd-stage { padding: 46px 26px 28px; }
  .pd-stage .gc-box { width: min(290px, 100%); }
}

/* ---------- Аккаунт ---------- */
.acct .drawer-body { padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
.acct-id { display: flex; align-items: center; gap: 14px; padding: 2px 0 18px; }
.acct-ava { flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; color: #fff; font: 700 1.45rem/1 var(--display);
  background: radial-gradient(90% 70% at 30% 0%, rgba(255,255,255,.45), transparent 60%), linear-gradient(160deg, var(--accent-top), var(--accent-deep));
  box-shadow: inset 0 0 0 .5px rgba(255,255,255,.35), 0 10px 22px -10px rgba(10,114,240,.8); }
.acct-who { min-width: 0; }
.acct-name { font-weight: 650; font-size: 1.08rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-sub { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.acct-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.acct-stat { min-width: 0; padding: 12px 14px; border-radius: 20px; background: linear-gradient(180deg, var(--fill-2), var(--fill)); box-shadow: inset 0 0 0 .5px var(--hl), inset 1px 1px 0 -.5px var(--spec-2), 0 4px 12px -8px rgba(0,0,0,.4); }
.acct-stat b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 1.18rem/1.15 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.acct-stat span { color: var(--muted); font-size: .78rem; }
.acct-h { margin: 26px 0 2px; font-size: 1.1rem; }
.acct-day { margin: 14px 0 8px; color: var(--muted); font-size: .84rem; font-weight: 600; }
.acct-order { display: block; padding: 14px 16px; border-radius: 26px; color: inherit; text-decoration: none; background: var(--hover); box-shadow: inset 0 0 0 .5px var(--hl), inset 1px 1px 0 -.5px var(--spec-2);
  transition: transform .5s var(--spring); }
.acct-order + .acct-order { margin-top: 8px; }
@media (hover: hover) { .acct-order:hover { transform: scale(1.012); } }
.acct-order:active { transform: scale(.98); transition-duration: .1s; }
.ao-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.ao-time { font-weight: 700; font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.status.sm { padding: 3px 11px; font-size: .74rem; }
.ao-item { display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 0; }
.ao-item .gc-box { width: 46px; }
.ao-ph { width: 46px; aspect-ratio: 1.586; border-radius: 9px; background: var(--hover); }
.ao-item .nm { font-weight: 600; font-size: .94rem; line-height: 1.25; }
.ao-item .sub { color: var(--muted); font-size: .8rem; }
.ao-item strong { font-variant-numeric: tabular-nums; }
.ao-facts { display: flex; flex-direction: column; gap: 1px; margin-top: 6px; color: var(--muted); font-size: .82rem; }
.ao-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 10px; padding-top: 10px; box-shadow: 0 -1px 0 var(--hair); }
.ao-id { min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--muted-2); font: .76rem var(--mono); }
.ao-foot strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.ao-code { display: block; margin-top: 8px; color: var(--ok); font-size: .82rem; font-weight: 600; }
.acct-empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 12px 0 4px; color: var(--muted); }
.acct-links { display: flex; gap: 8px; margin-top: 14px; }
.acct-row { display: flex; gap: 8px; }
.acct-row .field { flex: 1; min-width: 0; }

/* вход и регистрация */
.auth-hero { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 0 20px; text-align: center; }
.auth-hero h3 { margin-top: 6px; font: 700 1.35rem/1.15 var(--display); letter-spacing: -.02em; }
.auth-hero p { max-width: 34ch; color: var(--muted); font-size: .9rem; line-height: 1.45; }
.acct-ava.ghost { width: 72px; height: 72px; color: var(--accent); background: linear-gradient(180deg, var(--fill-2), var(--fill)); background-color: var(--hover);
  box-shadow: inset 0 0 0 .5px var(--hl), inset 1px 1px 0 -.5px var(--spec), 0 10px 24px -12px rgba(0,0,0,.5); }
.seg { --n: 2; --i: 0; position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); padding: 4px; border-radius: 999px; background: var(--field); box-shadow: var(--field-sh), inset 0 0 0 .5px var(--hair); }
.acct-sec .seg { margin-bottom: 18px; }
.seg-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / var(--n)); border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, var(--lens-a), var(--lens-b)); box-shadow: inset 0 0 0 .5px var(--hl), var(--lens-sh);
  translate: calc(var(--i) * 100%) 0; transition: translate .55s var(--spring); }
.seg-btn { position: relative; z-index: 1; min-width: 0; height: 38px; padding: 0 8px; border: 0; border-radius: 999px; background: none; color: var(--muted); font-weight: 600; font-size: .9rem; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .25s; }
.seg-btn[aria-checked="true"], .seg-btn[aria-selected="true"] { color: var(--text); }
.auth-form, .acct-form { display: flex; flex-direction: column; gap: 12px; }
.af-row { display: flex; flex-direction: column; gap: 6px; }
.af-row label, .acct-form > label { color: var(--muted); font-size: .86rem; font-weight: 500; padding-left: 4px; }
.af-hint { color: var(--muted-2); font-size: .78rem; padding-left: 4px; }
.pw-wrap { position: relative; }
.pw-wrap .field { padding-right: 54px; }
.pw-eye { position: absolute; top: 4px; right: 4px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s; }
.pw-eye:hover, .pw-eye[aria-pressed="true"] { color: var(--text); background: var(--hover); }
.af-submit { margin-top: 4px; width: 100%; }
.auth-form .msg:empty, .acct-form .msg:empty { display: none; }
.auth-device { margin-top: 30px; padding-top: 4px; box-shadow: 0 -1px 0 var(--hair); }
.auth-device .acct-h { margin-top: 22px; }
/* настройки профиля */
.acct-settings { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.acct-more { border-radius: 24px; background: var(--hover); box-shadow: inset 0 0 0 .5px var(--hl); }
.acct-more > summary { padding: 12px 14px 12px 18px; font-weight: 600; font-size: .95rem; }
.acct-more > .acct-form { padding: 0 16px 16px; }
.acct-more .btn { align-self: flex-start; }
.acct-logout { width: 100%; margin-top: 22px; }

/* ---------- Настройки: группы как в «Настройках» iOS ---------- */
.set-sec { margin-top: 22px; }
#acct-body > .set-sec:first-child { margin-top: 0; }
.set-h { margin: 0 0 10px 6px; font: 650 1.08rem/1.2 var(--display); letter-spacing: -.015em; }
/* группы и блок аккаунта — тем же стеклом, что панели сайта: заливка, мягкий свет сверху, тонкая белая кромка */
.set-group, .acct-sec {
  position: relative; isolation: isolate; border-radius: 28px;
  background: radial-gradient(130% 90% at 14% -30%, rgba(255,255,255,var(--bloom)), transparent 50%), linear-gradient(180deg, var(--fill-2), var(--fill)); background-color: var(--glass-tint);
  box-shadow: inset 0 0 0 .5px var(--hl), inset 1px 1px 0 -.5px var(--spec), inset -1px -1px 0 -.5px var(--spec-2), inset 0 0 20px var(--inner-glow), 0 0 0 .5px var(--edge), var(--sh-s);
}
.set-group { overflow: hidden; }
.acct-sec { padding: 20px 18px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; padding: 10px 14px 10px 18px; }
.set-row + .set-row, .set-row + .set-link, .set-link + .set-link, .set-link + .set-row { box-shadow: inset 0 .5px 0 var(--hair); }
.set-link { transition: background-color .2s; }
@media (hover: hover) { .set-link:hover { background: var(--hover); } }
.set-row.col { flex-direction: column; align-items: stretch; gap: 10px; padding: 14px 14px 14px 18px; }
.set-row .seg { flex: 0 1 230px; }
.set-row.col .seg { flex: none; }
.set-label { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-weight: 600; font-size: .95rem; }
.set-label small { color: var(--muted); font-size: .76rem; font-weight: 400; line-height: 1.3; }
.set-link { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px 0 18px; color: inherit; text-decoration: none; font-weight: 600; font-size: .95rem; }
.set-link:active { background: var(--hover); }
.chev { width: 8px; height: 8px; border-top: 2px solid var(--muted-2); border-right: 2px solid var(--muted-2); rotate: 45deg; margin-right: 4px; }
.set-foot { margin: 18px 16px 4px; color: var(--muted-2); font-size: .78rem; line-height: 1.4; }
.set-lookup .field { height: 44px; }
.set-logout { width: 100%; height: 44px; border: 0; border-radius: 14px; background: none; color: var(--err); font: 600 .98rem var(--font); cursor: pointer; }
.set-logout:active { background: var(--hover); }
.acct-buys { width: 100%; margin-top: 12px; }
.acct-sec .acct-stats { margin-top: 2px; }
.set-group .acct-form { gap: 8px; }
.set-group .acct-more { background: none; box-shadow: none; }
.set-group .acct-more > summary { padding: 4px 0; }
.set-group .acct-more > .acct-form { padding: 6px 0 4px; }
/* выбор фона: три живых образца */
.bg-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bg-opt { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 0; border: 0; background: none; color: var(--muted); font: 600 .82rem var(--font); cursor: pointer; }
.bg-sw { width: 100%; aspect-ratio: 1 / 1.25; border-radius: 20px; box-shadow: inset 0 0 0 .5px var(--hl), inset 1px 1px 0 -.5px var(--spec), 0 0 0 .5px var(--edge), 0 8px 18px -10px rgba(0,0,0,.5); transition: box-shadow .25s, transform .45s var(--spring); }
.sw-plain { background: var(--wall-plain), var(--wall-base); }
.sw-glow { background: var(--wall-glow), var(--wall-base); }
.sw-ribbons { background: var(--wall-ribbons), var(--wall-base); }
.bg-opt[aria-checked="true"] { color: var(--text); }
.bg-opt[aria-checked="true"] .bg-sw { box-shadow: inset 0 0 0 .5px var(--hl), inset 1px 1px 0 -.5px var(--spec), 0 0 0 2px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 25%, transparent), 0 8px 18px -10px rgba(0,0,0,.5); }
.bg-opt:active .bg-sw { transform: scale(.95); }

/* ---------- Лёгкий режим: те же формы без размытия ---------- */
/* телефоны и не-Chromium: большие панели (окно товара, корзина, поиск) без размытия, как почти непрозрачное стекло.
   Размытие на движущейся панели во весь экран — главная причина рывков и вылетов вкладки в Safari */
html.nopanelblur .bf-l { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.nopanelblur .panel, html.nopanelblur .pd-panel, html.nopanelblur .drawer, html.nopanelblur .palette { background-color: var(--lite-bg); }
html.lite .bf, html.lite .bf-l { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: var(--lite-bg); }
html.lite .panel, html.lite .pd-panel, html.lite .drawer, html.lite .palette { background-color: var(--lite-bg); }
html.lite .gl::after, html.lite .btn::after, html.lite .gc-glare { display: none; }
@media (prefers-reduced-transparency: reduce) {
  .bf, .bf-l { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; background-color: var(--lite-bg); }
  .panel, .pd-panel, .drawer, .palette { background-color: var(--lite-bg); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bf, .bf-l { background-color: var(--lite-bg); }
  .panel, .pd-panel, .drawer, .palette { background-color: var(--lite-bg); }
}
@media (prefers-contrast: more) {
  :root { --edge: rgba(128,128,128,.7); --hair: rgba(128,128,128,.5); --muted: var(--text); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* =========================================================
   Движение
   Всё, что прячет или двигает элементы само, включается только классом .motion
   (его ставит boot.js, если у человека не включено «уменьшить движение»).
   Без него страница статична и ничего не скрыто.
   ========================================================= */
@keyframes rise { from { opacity: 0; translate: 0 18px; } }
@keyframes drop { from { opacity: 0; translate: 0 -22px; scale: .96; } }
@keyframes pop-in { from { opacity: 0; scale: .8; } }
@keyframes word-up { from { translate: 0 110%; } }
@keyframes view-in { from { opacity: 0; translate: 0 18px; } }
@keyframes ping { from { box-shadow: inset 0 1px 0 var(--lens-rim), 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } to { box-shadow: inset 0 1px 0 var(--lens-rim), 0 0 0 16px transparent; } }
@keyframes dot-pop { from { scale: 0; } 60% { scale: 1.3; } }
@keyframes tl-grow { from { transform: scaleX(0); } }
@keyframes toast-life { to { transform: scaleX(0); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(24px) scale(.9); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(10px) scale(.95); } }
@keyframes faq-in { from { opacity: 0; translate: 0 -6px; } }
@keyframes ph { to { opacity: .5; } }

/* Полёт карты в корзину (элемент — копия карты, создаёт app.js) */
.fly { position: fixed; margin: 0; z-index: 2000; pointer-events: none; transform-origin: 50% 50%; will-change: transform; }
.fly .gc { transform: none; }
/* Конфетти при выдаче заказа */
.confetti { position: fixed; inset: 0; z-index: 3000; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; display: block; border-radius: 3px; will-change: transform, opacity; box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }

/* Главный экран: один сценарий — шапка, слова, текст, кнопки, подносы */
.motion .hero h1 .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .1em .04em .14em; margin: -.1em -.04em -.14em; }
.motion .hero h1 .wi { display: inline-block; }
.motion:not(.go) .hero h1 .wi { translate: 0 110%; }
.motion:not(.go) .hero .lead, .motion:not(.go) .hero-cta, .motion:not(.go) .demo, .motion:not(.go) .m-item { opacity: 0; }
.motion.go .hero h1 .wi { animation: word-up .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 90ms + .15s); }
.motion.go .hero .lead { animation: rise .8s var(--ease) .55s backwards; }
.motion.go .hero-cta { animation: rise .8s var(--ease) .7s backwards; }
.motion.go .demo { animation: rise .8s var(--ease) .9s backwards; }
.motion.go .m-item { animation: pop-in .8s var(--spring-bouncy) backwards; animation-delay: calc(var(--i, 0) * 45ms + .4s); }

/* телефоны и Safari: плитки и секции появляются только сдвигом и прозрачностью, без увеличения */
.nopanelblur.motion.go .m-item { animation: rise .6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms + .4s); }
.nopanelblur.motion .rv { scale: 1; transition: opacity .6s var(--ease), translate .7s cubic-bezier(.22,1,.36,1); }
.nopanelblur.motion .rv.in { scale: 1; }

/* Появление разделов при прокрутке (классы ставит app.js) */
.motion .rv { opacity: 0; translate: 0 22px; scale: .97; transition: opacity .7s var(--ease), translate .9s var(--spring-soft), scale .9s var(--spring-soft); transition-delay: calc(var(--i, 0) * 90ms); }
.motion .rv.in { opacity: 1; translate: 0 0; scale: 1; }
.motion .rv-h { clip-path: inset(0 0 100% 0); translate: 0 .4em; transition: clip-path .8s var(--ease), translate .8s var(--ease); }
.motion .rv-h.in { clip-path: inset(-.25em -.1em -.35em -.1em); translate: 0 0; }
.motion details[open] > p { animation: faq-in .4s var(--ease); }

/* Карты каталога выкладываются на экран по одной (app.js: revealCard). До этого они прозрачны.
   Именно opacity, а не clip-path: наблюдатель прокрутки не видит обрезанные элементы */
.motion .card.hold { opacity: 0; }
.motion .m-ph { animation: ph 1.4s ease-in-out infinite alternate; }

/* Корзина: строки выезжают при открытии, значок вздрагивает при попадании карты */
.motion .drawer.opening .line { animation: rise .6s var(--ease) backwards; }
.motion .drawer.opening .line:nth-child(1) { animation-delay: .15s; }
.motion .drawer.opening .line:nth-child(2) { animation-delay: .23s; }
.motion .drawer.opening .line:nth-child(3) { animation-delay: .31s; }
.motion .drawer.opening .line:nth-child(n+4) { animation-delay: .39s; }
.motion .cart-btn.ping { animation: ping .7s var(--ease); }

/* Уведомления: пружинное появление, полоска времени и мягкий выход */
.motion .toast { animation: toast-in .7s var(--spring-bouncy); }
.motion .toast::after { content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 3px; border-radius: 3px; background: var(--accent); opacity: .5; transform-origin: left; animation: toast-life 3.5s linear forwards; }
.motion .toast.out { animation: toast-out .28s var(--ease) forwards; }
/* телефон и Safari: уведомление проявляется без пружинного прыжка */
@keyframes toast-soft { from { opacity: 0; transform: translateY(14px); } }
.nopanelblur.motion .toast { animation: toast-soft .5s cubic-bezier(.32,.72,0,1); }
.nopanelblur.motion .toast.out { animation: toast-out .26s cubic-bezier(.4,0,.6,1) forwards; }

/* Страницы заказов: карточка въезжает, шкала заполняется по шагам */
.motion #order-view:not([hidden]) .order-card, .motion #orders-view:not([hidden]) .sec-head { animation: view-in .7s var(--spring-soft) backwards; }
.motion .o-item { animation: view-in .65s var(--spring-soft) backwards; }
.motion .o-item:nth-child(1) { animation-delay: .12s; }
.motion .o-item:nth-child(2) { animation-delay: .19s; }
.motion .o-item:nth-child(3) { animation-delay: .26s; }
.motion .o-item:nth-child(4) { animation-delay: .33s; }
.motion .o-item:nth-child(n+5) { animation-delay: .4s; }
.motion .tl-step.done::after { animation: tl-grow .7s var(--ease) backwards; animation-delay: calc(var(--i, 0) * .3s + .25s); }
.motion .tl-step.done .tl-dot { animation: dot-pop .6s var(--spring-bouncy) backwards; animation-delay: calc(var(--i, 0) * .3s + .5s); }
.motion .delivery { animation: view-in .7s var(--spring-soft) .9s backwards; }

/* Смена темы: новая тема раскрывается кругом от кнопки (View Transitions) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
.vt *, .vt *::before, .vt *::after { animation-play-state: paused !important; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }
.no-anim *, .no-anim *::before, .no-anim *::after { transition: none !important; }

/* ---------- «Скоро появится»: товар виден, но не продаётся ---------- */
.card.soon .gc-box { filter: saturate(.7) brightness(.94); }
.card.soon .price { color: var(--muted); }
.card.soon .card-desc { color: var(--muted); font-style: normal; }
.soon-tag { display: inline-flex; align-items: center; flex: none; height: 44px; padding: 0 16px; border-radius: 999px; white-space: nowrap;
  color: var(--muted); font: 600 .88rem var(--font); background: var(--hover); box-shadow: inset 0 0 0 1px var(--hair); }
.gc-flag.soon { color: #fff; background: rgba(12,16,34,.55); box-shadow: inset 0 0 0 .2cqw rgba(255,255,255,.35), 0 .8cqw 1.8cqw -.6cqw rgba(0,0,0,.35); }
.pd-soon { margin: 14px 0 0; padding: 12px 16px; border-radius: 18px; font-size: .92rem; line-height: 1.45;
  background: color-mix(in srgb, var(--accent) 11%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent); }
.pd-buy.soon .pd-total { color: var(--muted); }
.soon-btn[disabled] { opacity: 1; cursor: default; color: var(--muted); background: var(--hover); box-shadow: inset 0 0 0 1px var(--hair); }

/* ---------- Объявление сверху (текст задаётся в админке) ---------- */
.site-notice { position: relative; z-index: 31; max-width: 1200px; margin: max(10px, env(safe-area-inset-top)) auto 0; padding: 10px 22px; text-align: center;
  font: 600 .9rem/1.4 var(--font); color: var(--text); }
.site-notice::before { content: ""; position: absolute; inset: 0 max(22px, env(safe-area-inset-left)); z-index: -1; border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent); }
.site-notice[hidden] { display: none; }
@media (max-width: 560px) { .site-notice { padding: 9px 30px; font-size: .84rem; } .site-notice::before { inset: 0 14px; border-radius: 18px; } }
