/* ===== Токены ===== */
/* «Мясной мир»: винно-красная витрина с неоновым свечением. Тёмная тема — фирменная и включена по умолчанию,
   светлая («крафт-бумага») — по выбору. */
:root {
  --bg: #1A0507;
  --bg-2: #240A0D;
  --surface: #2B0C10;
  --surface-2: #361117;
  --surface-3: #43161D;
  --ink: #FFF3F0;
  --ink-2: #E2BDB8;
  --ink-3: #A9817C;
  --line: #5A1A22;
  --line-2: #7A2530;
  --primary: #E3192B;
  --primary-hover: #FF2E40;
  --primary-ink: #FFFFFF;
  --primary-soft: #4A0F17;
  --accent: #FF3B4A;
  --accent-ink: #FFFFFF;
  --accent-soft: #4A121A;
  --gold: #E8B04E;
  --ember: linear-gradient(135deg, #F0283A 0%, #C8102A 55%, #8C0A1C 100%);
  --glow: 0 0 0 1px rgb(255 59 74 / .55), 0 0 22px rgb(255 40 60 / .35);
  --neon: 0 0 14px rgb(255 40 60 / .22), inset 0 0 12px rgb(255 40 60 / .08);
  --neon-line: rgb(255 59 74 / .5);
  --bg-tint: #5A0E18;
  --char: #120304;
  --char-ink: #FFF3F0;
  --sale: #FF4D5E;
  --ok: #4CC38A;
  --warn: #F2B544;
  --danger: #FF6B5E;
  --shadow-1: 0 1px 0 rgb(255 255 255 / .04) inset, 0 6px 20px rgb(0 0 0 / .35);
  --shadow-2: 0 20px 50px rgb(0 0 0 / .55);
  --texture: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --r-s: 10px;
  --r-m: 14px;
  --r-l: 18px;
  --r-xl: 26px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Oswald", "Manrope", "Arial Narrow", sans-serif;
  --tabbar-h: 64px;
  --hdr-h: 68px;
  --gutter: clamp(16px, 4vw, 32px);
  --page-pad: var(--gutter);
  --edge: max(var(--page-pad), calc((100% - 1320px) / 2 + var(--page-pad)));
  --tile-mix: 0%;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #F3EDE4; --bg-2: #E9E0D3; --surface: #FFFDF9; --surface-2: #F7F1E8; --surface-3: #EFE6DA;
  --ink: #1B1714; --ink-2: #5C5049; --ink-3: #94877E; --line: #E2D7C9; --line-2: #D3C5B4;
  --primary: #C42A22; --primary-hover: #A8211B; --primary-soft: #F8E2DD;
  --accent: #D21F32; --accent-ink: #FFFFFF; --accent-soft: #FBE3E3; --gold: #B9842A;
  --glow: 0 0 0 1px rgb(196 42 34 / .18), 0 16px 40px -14px rgb(196 42 34 / .35);
  --sale: #D7261E; --ok: #2E8B57; --warn: #B7791F; --danger: #C62828;
  --shadow-1: 0 1px 2px rgb(27 23 20 / .06), 0 6px 18px rgb(27 23 20 / .06); --shadow-2: 0 18px 44px rgb(27 23 20 / .16);
  --texture: none;
  --neon: var(--shadow-1);
  --neon-line: var(--line);
  --bg-tint: #F3EDE4;
  color-scheme: light;
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--hdr-h) + 12px); }
body {
  margin: 0; color: var(--ink); font: 400 16px/1.5 var(--font);
  background: radial-gradient(900px 480px at 50% -120px, color-mix(in srgb, var(--primary) 26%, transparent), transparent 70%), var(--texture), linear-gradient(180deg, color-mix(in srgb, var(--bg) 70%, var(--bg-tint)) 0, var(--bg) 900px) no-repeat, var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 70%, transparent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.i { width: 22px; height: 22px; flex: none; }
.wrap { width: 100%; max-width: 1320px; margin-inline: auto; padding-inline: var(--page-pad); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: var(--r-s); }
.main { min-height: 60vh; }
.muted { color: var(--ink-2); }
.small { font-size: 14px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

h1, h2, h3 { margin: 0; }
.h1 { font: 700 clamp(30px, 7vw, 52px)/1.02 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.h2 { font: 700 clamp(21px, 4.4vw, 30px)/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.h3 { font: 700 18px/1.3 var(--font); }

/* ===== Кнопки ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border-radius: var(--r-m); border: 0;
  background: var(--primary); color: var(--primary-ink); font-weight: 600; font-size: 16px; letter-spacing: .01em;
  transition: transform .12s ease, background .2s ease, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:hover { background: var(--primary-hover); box-shadow: var(--glow); }
.btn--accent:hover { background: color-mix(in srgb, var(--accent) 88%, #000); }
.btn--ghost:hover, .btn--soft:hover { background: var(--primary-soft); }
.btn--accent { background: var(--accent); color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn--soft { background: var(--primary-soft); color: var(--primary); }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }
.btn.is-loading::after {
  content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.iconbtn {
  position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: transparent; color: var(--ink);
}
.iconbtn:hover { background: var(--bg-2); }
.link { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Шапка ===== */
.hdr {
  position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr__in { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; min-height: 60px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; align-self: center; }
.logo__text { font: 700 26px/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; }
.logo__text b { color: var(--primary-hover); font-weight: 700; }
.hdr__nav { display: none; gap: 4px; }
.hdr__link { padding: 8px 12px; border-radius: var(--r-s); font-weight: 600; color: var(--ink-2); }
.hdr__link:hover, .hdr__link.is-active { color: var(--ink); background: var(--surface-2); }
.hdr__actions { display: flex; align-items: center; gap: 2px; justify-self: end; grid-column: 2; grid-row: 1; }
.hdr__account, .hdr__bell { display: none; }
.dot, .badge {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
}
.cartbtn {
  position: relative; display: none; align-items: center; gap: 8px; height: 46px; padding: 0 18px 0 14px; border-radius: var(--r-m);
  background: var(--ember); color: #fff; font-weight: 700; white-space: nowrap; box-shadow: 0 8px 22px -8px rgb(227 25 43 / .7);
}
.cartbtn .badge { top: -4px; right: -4px; }
.search { position: relative; grid-column: 1 / -1; grid-row: 2; margin-bottom: 10px; }
.search__icon { position: absolute; right: 16px; top: 50%; translate: 0 -50%; color: var(--accent); pointer-events: none; }
.search__input {
  width: 100%; height: 48px; padding: 0 48px 0 20px; border-radius: 999px; border: 1px solid rgb(255 59 74 / .45);
  background: color-mix(in srgb, var(--surface) 80%, transparent); font-size: 15px; -webkit-appearance: none; appearance: none;
  box-shadow: 0 0 18px -4px rgb(255 59 74 / .28), inset 0 1px 0 rgb(255 255 255 / .03);
}
.search__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgb(255 59 74 / .18), 0 0 24px rgb(255 59 74 / .3); }
.search__input::placeholder { color: var(--ink-3); }
.suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 40; background: var(--surface);
  border-radius: var(--r-m); box-shadow: var(--shadow-2); padding: 6px; max-height: min(70vh, 480px); overflow: auto;
}
.suggest__item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r-s); }
.suggest__item:hover, .suggest__item.is-active { background: var(--bg-2); }
.suggest__emoji { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: var(--bg-2); font-size: 22px; flex: none; }
.suggest__name { flex: 1; min-width: 0; }
.suggest__price { font-weight: 600; white-space: nowrap; }
.suggest__cat { display: inline-block; margin: 4px; padding: 6px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-weight: 500; font-size: 14px; }
.suggest__empty { padding: 14px; color: var(--ink-2); }

@media (min-width: 900px) {
  .hdr__in { grid-template-columns: auto auto 1fr auto; gap: 18px; }
  .hdr__nav { display: flex; }
  .search { grid-column: 3; grid-row: 1; margin: 0; max-width: 520px; }
  .hdr__actions { grid-column: 4; }
  .hdr__account, .hdr__bell { display: inline-grid; }
  .cartbtn { display: inline-flex; }
  .logo__text { font-size: 26px; max-width: none; }
}

/* ===== Нижняя панель ===== */
.tabbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 35; display: grid; grid-template-columns: repeat(5, 1fr);
  height: var(--tabbar-h); border-radius: 24px; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--neon-line); box-shadow: var(--neon), 0 12px 30px rgb(0 0 0 / .45);
}
.tabbar__item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; color: var(--ink-3); min-width: 0; }
.tabbar__item span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.tabbar__item.is-active { color: var(--accent); text-shadow: 0 0 12px rgb(255 59 74 / .6); }
.tabbar__item.is-active .i { filter: drop-shadow(0 0 6px rgb(255 59 74 / .7)); }
.tabbar__bag { position: relative; display: inline-grid; place-items: center; }
.tabbar__item .tabbar__bag, .tabbar__item .badge { overflow: visible; max-width: none; text-overflow: clip; }
.tabbar__bag .badge { top: -7px; right: -11px; box-shadow: 0 0 0 2px var(--surface); }
.tabbar__cart { color: var(--ink-3); }
@media (min-width: 900px) { .tabbar { display: none; } body { padding-bottom: 0; } }

/* ===== Сетевой статус, тосты ===== */
.netbar { position: sticky; top: 0; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px var(--gutter); font-size: 14px; text-align: center; }
.toasts { position: fixed; left: 50%; translate: -50% 0; bottom: calc(var(--tabbar-h) + 30px + env(safe-area-inset-bottom)); z-index: 60; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
@media (min-width: 900px) { .toasts { bottom: 24px; } }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-m);
  background: var(--ink); color: var(--bg); box-shadow: var(--shadow-2); font-size: 15px; animation: toast-in .25s ease;
}
.toast--error { background: var(--danger); color: #fff; }
.toast__action { margin-left: auto; background: none; border: 0; color: inherit; font-weight: 700; text-decoration: underline; padding: 4px; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ===== Рекламная полоса и попап ===== */
.appbar { display: flex; align-items: center; gap: 10px; padding: 8px var(--gutter) 8px 4px; background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); font-size: 13px; line-height: 1.3; }
.appbar__close { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; color: var(--ink-3); }
.appbar__close .i { width: 18px; height: 18px; }
.appbar__icon { flex: none; border-radius: 10px; }
.appbar__text { display: grid; flex: 1; min-width: 0; }
.appbar__text span { color: var(--ink-2); }
.appbar__btn { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--ember); color: #fff; font-weight: 700; box-shadow: var(--glow); }
.strip { display: flex; align-items: center; gap: 8px; background: linear-gradient(90deg, #4A0F17, #2B0C10 60%); color: #F5EFE8; border-bottom: 1px solid #3A1714; padding: 6px 8px 6px var(--gutter); font-size: 14px; font-weight: 500; }
.strip__link { flex: 1; min-width: 0; }
.strip__close { border: 0; background: none; color: inherit; width: 36px; height: 36px; display: grid; place-items: center; }
.popup { position: fixed; inset: 0; z-index: 70; display: grid; place-items: end center; background: rgb(0 0 0 / .45); padding: 16px; animation: fade .2s; }
@media (min-width: 600px) { .popup { place-items: center; } }
.popup__card { position: relative; width: min(100%, 400px); background: var(--surface); color: var(--ink); border: 1px solid var(--line-2); border-radius: var(--r-l); padding: 28px 22px 22px; text-align: center; }
.popup__img { margin: 0 auto 12px; max-height: 180px; width: auto; }
.popup__title { font: 700 22px/1.15 var(--font-display); text-transform: uppercase; letter-spacing: .02em; margin: 0 0 8px; }
.popup__text { margin: 0 0 18px; opacity: .9; }
.popup__close { position: absolute; top: 8px; right: 8px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .18); color: inherit; display: grid; place-items: center; }
.btn--ad { background: var(--primary); color: var(--primary-ink); width: 100%; }
@keyframes fade { from { opacity: 0; } }

/* ===== Разделы ===== */
.section { margin-block: 28px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.more { display: inline-flex; align-items: center; gap: 2px; color: var(--primary); font-weight: 600; font-size: 15px; white-space: nowrap; }
.more .i { width: 18px; height: 18px; }

/* ===== Истории ===== */
.stories { display: flex; gap: 12px; overflow-x: auto; padding: 14px var(--edge) 4px; scroll-padding-inline: var(--edge); scrollbar-width: none; scroll-snap-type: x proximity; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: none; width: 84px; border: 0; background: none; padding: 0; text-align: center; scroll-snap-align: start; }
.story__ring { display: block; width: 76px; height: 76px; margin: 0 auto 6px; padding: 2px; border-radius: 50%; background: linear-gradient(140deg, var(--accent), var(--primary)); box-shadow: 0 0 16px -2px rgb(255 59 74 / .45); }
.story.is-seen .story__ring { background: var(--line-2); box-shadow: none; }
.story__img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 3px solid var(--bg); background: var(--surface-2); }
.story__title { display: block; font-size: 12px; font-weight: 600; line-height: 1.25; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.viewer { position: fixed; inset: 0; z-index: 80; background: #000; display: grid; place-items: center; }
.viewer__frame { position: relative; width: min(100vw, calc(100dvh * 9 / 16)); height: min(100dvh, calc(100vw * 16 / 9)); background: #111; overflow: hidden; }
@media (min-width: 600px) { .viewer__frame { border-radius: 18px; height: min(92dvh, 820px); width: calc(min(92dvh, 820px) * 9 / 16); } }
.viewer__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.viewer__bars { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.viewer__bar { flex: 1; height: 3px; border-radius: 2px; background: rgb(255 255 255 / .35); overflow: hidden; }
.viewer__bar i { display: block; height: 100%; width: 0; background: #fff; }
.viewer__close { position: absolute; top: 22px; right: 10px; z-index: 3; width: 44px; height: 44px; border: 0; background: none; color: #fff; display: grid; place-items: center; }
.viewer__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 60px 20px 24px; background: linear-gradient(transparent, rgb(0 0 0 / .65)); color: #fff; font-size: 17px; }
.viewer__text .btn { margin-top: 12px; width: 100%; background: #fff; color: #111; }
.viewer__nav { position: absolute; top: 0; bottom: 0; width: 35%; z-index: 1; border: 0; background: none; }
.viewer__nav--prev { left: 0; } .viewer__nav--next { right: 0; width: 65%; }

/* ===== Карусель ===== */
.hero { padding-top: 14px; }
.carousel { position: relative; }
.carousel__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 10px;
  padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); overscroll-behavior-x: contain;
}
.carousel__track::-webkit-scrollbar { display: none; }
.slide {
  position: relative; flex: 0 0 calc(100% - 28px); scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column; justify-content: center; gap: 14px; min-height: 210px;
  padding: 20px 18px; border-radius: var(--r-xl); color: #F5EFE8; overflow: hidden; isolation: isolate;
  border: 1px solid var(--neon-line); box-shadow: var(--neon);
  /* Цвета баннера из админки сознательно не используются: на угольном фоне любой цвет кроме огня смотрится чужим. */
  background:
    radial-gradient(70% 90% at 85% 75%, rgb(240 40 58 / .42), transparent 65%),
    radial-gradient(40% 50% at 80% 90%, rgb(255 59 74 / .35), transparent 70%),
    linear-gradient(160deg, #3A0F15, #1E0609 70%);
}
.slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--texture), repeating-linear-gradient(115deg, transparent 0 46px, rgb(0 0 0 / .18) 46px 50px); opacity: .8; }
.slide__body { position: relative; z-index: 2; max-width: 58%; display: flex; flex-direction: column; align-items: flex-start; }
.slide__kicker { order: 2; display: inline-block; margin: 0 0 8px; padding: 3px 12px; border-radius: 999px; background: rgb(227 25 43 / .28); border: 1px solid rgb(255 59 74 / .9); color: #fff; box-shadow: 0 0 12px rgb(255 40 60 / .45); font: 700 12px/1.2 var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.slide__accent { color: var(--gold); }
.slide__title { order: 1; font: 700 clamp(24px, 6.4vw, 56px)/1.02 var(--font-display); text-transform: uppercase; letter-spacing: .01em; margin: 0 0 10px; text-wrap: balance; }
.slide__text { order: 3; margin: 0; font-size: clamp(13px, 3.4vw, 18px); line-height: 1.4; opacity: .82; max-width: 30ch; }
.slide__btn { position: relative; z-index: 2; align-self: flex-start; background: var(--ember); border-radius: 999px; color: #fff; min-height: 44px; padding: 0 22px; font-size: 16px; box-shadow: var(--glow); }
.slide__art { position: absolute; right: 2%; top: 50%; translate: 0 -50%; width: 44%; max-width: 360px; max-height: 94%; aspect-ratio: 1; display: grid; place-items: center; z-index: 1; pointer-events: none; }
.slide__art img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 24px 30px rgb(0 0 0 / .55)) saturate(1.08); }
.carousel__dots { display: flex; justify-content: center; gap: 6px; margin-top: 12px; }
.carousel__dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 4px; background: var(--ink-3); opacity: .35; transition: width .25s, opacity .25s, background .25s; }
.carousel__dot.is-active { width: 24px; opacity: 1; background: var(--primary); }
.carousel__arrow { display: none; }
@media (min-width: 900px) {
  .carousel__track { padding-inline: var(--edge); scroll-padding-inline: var(--edge); gap: 16px; }
  .slide { flex-basis: 100%; min-height: 400px; padding: 48px 64px; }
  .slide__body { max-width: 52%; }
  .slide__art { right: 5%; width: 42%; max-width: 440px; }
  .carousel__arrow {
    position: absolute; top: 50%; translate: 0 -50%; z-index: 3; display: grid; place-items: center; width: 52px; height: 52px;
    border: 0; border-radius: 50%; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2);
  }
  .carousel__arrow--prev { left: max(8px, calc((100vw - 1320px) / 2 - 10px)); }
  .carousel__arrow--prev .i { rotate: 180deg; }
  .carousel__arrow--next { right: max(8px, calc((100vw - 1320px) / 2 - 10px)); }
}

/* ===== Бенто категорий ===== */
.rounds { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 16px 6px; }
.rounds--scroll { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 6px; scroll-padding-inline: var(--gutter); }
.rounds--scroll::-webkit-scrollbar { display: none; }
.rounds--scroll .round { flex: none; width: 84px; scroll-snap-align: start; }
@media (min-width: 900px) {
  .rounds { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 22px 12px; }
  .rounds--scroll { display: grid; overflow: visible; margin: 0; padding: 4px 0; }
  .rounds--scroll .round { width: auto; }
}
.round { display: grid; justify-items: center; align-content: start; gap: 8px; min-width: 0; text-align: center; color: var(--ink); }
.round__pic {
  display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; font-size: 34px; line-height: 1;
  background: radial-gradient(70% 70% at 50% 40%, var(--surface-3), var(--bg-2) 90%); border: 1px solid var(--line-2);
  transition: border-color .2s ease, box-shadow .25s ease, transform .2s ease;
}
.round__pic img { width: 100%; height: 100%; object-fit: cover; }
.round:hover .round__pic { border-color: var(--accent); box-shadow: 0 0 16px -2px rgb(255 59 74 / .45); transform: translateY(-2px); }
.round__name { font-size: 12px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
@media (min-width: 900px) { .round__pic { width: 92px; height: 92px; font-size: 44px; } .round__name { font-size: 14px; } }

/* ===== Карточка товара ===== */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 600px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1560px) { .grid--wide { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.card {
  position: relative; display: flex; flex-direction: column; min-width: 0; background: linear-gradient(180deg, var(--surface-2), var(--surface) 55%);
  border: 1px solid var(--line); border-radius: var(--r-l); padding: 10px 10px 12px;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
@media (min-width: 600px) { .card { padding: 12px 12px 14px; } }
@media (hover: hover) { .card:hover { border-color: rgb(255 59 74 / .4); box-shadow: var(--glow); transform: translateY(-2px); z-index: 2; } }
.card__media { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden;
  background: radial-gradient(70% 60% at 50% 45%, var(--surface-3), var(--bg-2) 85%); }
.card__media img { width: 100%; height: 100%; object-fit: cover; background: none !important; transition: transform .3s; }
.card:hover .card__media img { transform: scale(1.04); }
.card__emoji { font-size: clamp(56px, 17vw, 92px); line-height: 1; filter: drop-shadow(0 14px 18px rgb(0 0 0 / .5)); transition: transform .3s; }
.card:hover .card__emoji { transform: scale(1.06); }
.tag { position: absolute; top: 10px; left: 10px; padding: 5px 8px; border-radius: 6px; background: var(--gold); color: #1A140C; font: 700 11px/1.1 var(--font); text-transform: uppercase; letter-spacing: .08em; }
.tag--sale { background: var(--sale); color: #fff; }
.card__body { padding: 14px 2px 12px; flex: 1; display: flex; flex-direction: column; }
.card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 8px; margin: 0 0 6px; order: -1; }
.price { font: 700 20px/1.15 var(--font-display); white-space: nowrap; letter-spacing: .02em; }
.price__kop { font-size: .62em; vertical-align: .32em; }
.price--sale { color: var(--sale); }
.price__old { color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.card__name { margin: 0; font-size: 14px; font-weight: 500; line-height: 1.35; color: var(--ink); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; min-height: 4.05em; }
.card__name a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.card__meta { display: flex; align-items: center; gap: 10px; margin: 6px 0 0; color: var(--ink-3); font-size: 13px; }
.card__rating { display: inline-flex; align-items: center; gap: 2px; color: var(--ink-2); font-weight: 600; }
.card__rating .i { width: 14px; height: 14px; color: var(--gold); }
.card__pack { margin: 0; }
.card__out { margin: 0; text-align: center; color: var(--ink-3); font-size: 14px; min-height: 44px; display: grid; place-items: center; background: var(--bg); border-radius: var(--r-m); }
.card.is-out .card__media { opacity: .5; }

/* Кнопка «В корзину» ↔ счётчик */
.buy { position: relative; z-index: 1; height: 44px; margin: 0; }
.buy--big { height: 56px; }
.buy__add {
  display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--r-m);
  background: var(--ember); color: #fff; font-weight: 700; font-size: 15px; transition: box-shadow .2s, filter .2s;
}
.buy__add:hover { filter: brightness(1.08); box-shadow: var(--glow); }
.buy__add .i { width: 19px; height: 19px; }
.buy--big .buy__add { font-size: 17px; }
.buy__counter { display: none; height: 100%; align-items: center; justify-content: space-between; border-radius: var(--r-m); background: var(--primary-soft); color: color-mix(in srgb, var(--primary) 60%, var(--ink)); box-shadow: inset 0 0 0 1px rgb(227 25 43 / .45); }
.buy.has-qty .buy__add { display: none; }
.buy.has-qty .buy__counter { display: flex; }
.buy__btn { width: 44px; height: 100%; border: 0; background: none; color: inherit; display: grid; place-items: center; border-radius: var(--r-m); }
.buy__btn:hover { background: color-mix(in srgb, var(--primary) 12%, transparent); }
.buy__btn[disabled] { opacity: .4; }
.buy__qty { font-weight: 800; font-variant-numeric: tabular-nums; min-width: 2ch; text-align: center; line-height: 1.1; }
.buy__qty small { display: block; font-size: 11px; font-weight: 500; opacity: .8; }
.buy--big .buy__btn { width: 56px; }

/* Лента товаров */
.rail__track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - var(--gutter) * 2 - 12px) / 2.15); gap: 12px; overflow-x: auto; padding: 4px var(--edge) 28px; margin-bottom: -20px; scroll-padding-inline: var(--edge); scroll-snap-type: x proximity; scrollbar-width: none; }
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > .card { scroll-snap-align: start; }
@media (min-width: 600px) { .rail__track { grid-auto-columns: 232px; gap: 20px; } }
.rail__nav { display: flex; align-items: center; gap: 6px; }
.rail__nav .more { margin-right: 6px; }
.rail__arrow { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); transition: border-color .2s, color .2s, box-shadow .2s; }
.rail__arrow .i { width: 18px; height: 18px; }
.rail__arrow:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 14px -2px rgb(255 59 74 / .45); }
.rail__track { scroll-behavior: smooth; }

/* ===== О магазине и FAQ ===== */
.about {
  display: grid; gap: 16px; padding: 24px; border-radius: var(--r-xl); color: #FFF7EE;
  border: 1px solid rgb(255 59 74 / .2);
  background: radial-gradient(60% 90% at 100% 100%, rgb(240 40 58 / .45), transparent 70%), repeating-linear-gradient(115deg, transparent 0 46px, rgb(0 0 0 / .22) 46px 50px), linear-gradient(160deg, #3A0F15, #1A0507);
}
.about__title { font: 700 clamp(24px, 5vw, 38px)/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.about__text { margin: 0; opacity: .88; font-size: 17px; }
.about__facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 0; padding: 0; list-style: none; }
.about__facts li { padding: 14px; border-radius: var(--r-m); background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .07); }
:root[data-theme="dark"] .about__facts li { background: rgb(0 0 0 / .12); }
.about__facts b { display: block; font: 700 26px/1.1 var(--font-display); margin-bottom: 4px; color: var(--gold); }
@media (min-width: 900px) { .about { grid-template-columns: 1.2fr 1fr; padding: 40px; align-items: center; } }
.faq { display: grid; gap: 8px; }
.faq__item { background: var(--surface); border-radius: var(--r-m); box-shadow: var(--shadow-1); }
.faq__q { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 600; cursor: pointer; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q .i { transition: rotate .2s; color: var(--ink-3); }
.faq__item[open] .faq__q .i { rotate: 90deg; }
.faq__a { padding: 0 18px 16px; margin: 0; color: var(--ink-2); }

/* ===== Каталог ===== */
.page-head { padding-block: 16px 6px; }
.page-head__row { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.page-head__count { color: var(--ink-3); font-size: 15px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 13px; color: var(--ink-3); }
.crumbs li:not(:last-child)::after { content: "›"; margin-left: 6px; }
.crumbs a:hover { color: var(--ink); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--page-pad) 10px; margin-inline: calc(var(--page-pad) * -1); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--r-s); background: var(--surface); font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--ink); border: 0; transition: background .15s; }
.chip:hover { background: var(--bg-2); }
.chip.is-active { background: var(--primary); color: var(--primary-ink); }
.toolbar { position: sticky; top: calc(var(--hdr-h) + 58px); z-index: 20; display: flex; gap: 8px; align-items: center; padding: 8px 0 10px; background: var(--bg); }
@media (min-width: 900px) { .toolbar { top: var(--hdr-h); } }
.sortbar { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.sortbar::-webkit-scrollbar { display: none; }
.sortbar .chip { height: 36px; padding: 0 14px; }
.toolbar__count { margin-left: auto; color: var(--ink-3); font-size: 14px; white-space: nowrap; }
.filters-open { flex: none; }
.filters-open .count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--primary); color: var(--primary-ink); font-size: 12px; }
.select { height: 40px; padding: 0 34px 0 14px; border-radius: var(--r-s); border: 0; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23969DA8' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; -webkit-appearance: none; appearance: none; font-size: 14px; font-weight: 600; }
.filters { display: grid; gap: 20px; }
.filters__group { border: 0; margin: 0; padding: 0; }
.filters__title { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.check { display: flex; align-items: center; gap: 10px; min-height: 38px; font-size: 15px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--primary); }
.range { display: flex; gap: 8px; align-items: center; }
.range .input { min-height: 44px; }
.input, .textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; border-radius: var(--r-m); border: 1.5px solid var(--line);
  background: var(--surface); font-size: 16px; -webkit-appearance: none; appearance: none;
}
.textarea { min-height: 96px; resize: vertical; }
.input:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.input.is-invalid { border-color: var(--danger); }
.field { display: grid; gap: 6px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.field__error { color: var(--danger); font-size: 14px; }
.drawer { position: fixed; inset: 0; z-index: 75; background: rgb(0 0 0 / .45); display: flex; align-items: flex-end; }
.drawer__panel { width: 100%; max-height: 88dvh; overflow: auto; background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom)); animation: up .25s ease; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
@keyframes up { from { transform: translateY(30px); opacity: .4; } }
.layout { display: block; }
.layout__aside { display: none; }
@media (min-width: 1000px) {
  .layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
  .layout__aside { display: grid; gap: 14px; position: sticky; top: calc(var(--hdr-h) + 16px); max-height: calc(100vh - var(--hdr-h) - 32px); overflow: auto; scrollbar-width: thin; }
  .filters-open { display: none; }
}
.aside-card { padding: 18px; border-radius: var(--r-l); background: var(--surface); border: 1px solid var(--line); }
.tree { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.tree a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--r-s); font-size: 15px; font-weight: 500; color: var(--ink-2); }
.tree a:hover { background: var(--surface-2); color: var(--ink); }
.tree a.is-active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.tree__emoji { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: var(--surface-2); font-size: 17px; flex: none; }
.tree .tree { margin: 2px 0 6px 38px; }
.tree .tree a { padding: 6px 10px; font-size: 14px; }
.seo-text { margin-block: 36px; padding: 24px; border-radius: var(--r-l); background: var(--surface); color: var(--ink-2); }
.seo-text h2 { color: var(--ink); margin-bottom: 8px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 26px 0; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; padding: 0 12px; border-radius: var(--r-s); background: var(--surface); font-weight: 600; }
.pager .is-current { background: var(--primary); color: var(--primary-ink); }
.empty { display: grid; justify-items: center; gap: 10px; padding: 48px 16px; text-align: center; }
.empty__emoji { font-size: 64px; }
.empty__title { font: 700 20px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .02em; margin: 0; }
.empty__icon { width: 72px; height: 72px; color: var(--primary); opacity: .85; }
.empty p { margin: 0; color: var(--ink-2); max-width: 36ch; }
.inline-ad { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: var(--r-l); background: radial-gradient(120% 140% at 0% 0%, var(--primary-soft), transparent 60%), var(--surface); color: var(--ink); border: 1px solid var(--line-2); }
.inline-ad__body { flex: 1; }
.inline-ad__title { display: block; font: 700 19px/1.2 var(--font-display); text-transform: uppercase; margin: 0 0 4px; }
.inline-ad .btn { background: var(--primary); color: var(--primary-ink); }

/* ===== Скелетоны ===== */
.skeleton { position: relative; overflow: hidden; background: var(--bg-2); border-radius: var(--r-s); }
.skeleton::after { content: ""; position: absolute; inset: 0; translate: -100% 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 60%, transparent), transparent); animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { translate: 100% 0; } }
.sk-card { height: 270px; border-radius: var(--r-l); }
.sk-line { height: 14px; margin: 8px 0; }

/* ===== Товар ===== */
.pdp { display: grid; gap: 18px; padding-block: 10px 24px; }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; } }
.gallery { position: relative; }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r-xl); }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; aspect-ratio: 1; scroll-snap-align: center; display: grid; place-items: center; background: radial-gradient(circle at 50% 60%, var(--surface), var(--bg-2)); }
.gallery__slide img { width: 82%; height: 82%; object-fit: contain; }
.gallery__emoji { font-size: clamp(140px, 40vw, 260px); line-height: 1; filter: drop-shadow(0 20px 24px rgb(0 0 0 / .16)); }
.gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; }
.gallery__thumb { width: 64px; height: 64px; padding: 4px; border-radius: 14px; border: 2px solid transparent; background: var(--surface); }
.gallery__thumb.is-active { border-color: var(--primary); }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }
.gallery__thumb--video { position: relative; background: var(--surface-3); }
.gallery__thumb--video::after { content: ""; position: absolute; inset: 0; margin: auto; width: 24px; height: 24px; border-radius: 50%; background: rgb(0 0 0 / .6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='white'/%3E%3C/svg%3E") center / 16px no-repeat; }
.gallery__slide--video { background: #000; }
.gallery__slide--video video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.pdp__title { font: 700 clamp(24px, 6vw, 36px)/1.15 var(--font-display); text-transform: uppercase; margin: 6px 0 6px; }
.pdp__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--ink-2); font-size: 15px; align-items: center; }
.stars { display: inline-flex; gap: 1px; color: var(--gold); }
.stars .i { width: 16px; height: 16px; }
.stars .is-empty { color: var(--line); }
.pdp__buy { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); z-index: 10; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; margin: 18px 0; padding: 12px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-2); }
@media (min-width: 900px) { .pdp__buy { position: static; box-shadow: var(--shadow-1); padding: 18px; } }
.pdp__price .price { font-size: 26px; }
.pdp__note { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); }
.specs { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; }
.specs dt { color: var(--ink-3); }
.specs dd { margin: 0; }
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-top: 8px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 6px; margin-right: 12px; font-weight: 600; color: var(--ink-2); white-space: nowrap; border-bottom: 2px solid transparent; }
.prose { color: var(--ink-2); }
.prose p { margin: 0 0 12px; }
.review { padding: 16px 0; border-bottom: 1px solid var(--line); }
.review__head { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.review__text { margin: 0; }
.dist { display: grid; gap: 6px; }
.dist__row { display: grid; grid-template-columns: 20px 1fr 32px; gap: 8px; align-items: center; font-size: 14px; color: var(--ink-2); }
.dist__bar { height: 8px; border-radius: 4px; background: var(--bg-2); overflow: hidden; }
.dist__bar i { display: block; height: 100%; background: var(--gold); }
.rate { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 4px; }
.rate input { position: absolute; opacity: 0; }
.rate label { cursor: pointer; color: var(--line); }
.rate label .i { width: 34px; height: 34px; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--gold); }
.rate input:focus-visible + label { outline: 2px solid var(--accent); border-radius: 6px; }

/* ===== Корзина и оформление ===== */
.cart-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; padding-bottom: 120px; }
.cart-layout > * { min-width: 0; }
@media (min-width: 900px) { .cart-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; padding-bottom: 40px; } }
.line { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); }
.line + .line { margin-top: 8px; }
.line__media { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 16px; background: var(--bg-2); font-size: 40px; }
.line__media img { width: 64px; height: 64px; object-fit: contain; }
.line__name { font-weight: 600; line-height: 1.3; }
.line__pack { color: var(--ink-3); font-size: 14px; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.line__row .buy { width: 128px; height: 40px; }
.line__row .buy__btn { width: 40px; }
.line__warn { margin: 6px 0 0; color: var(--warn); font-size: 14px; }
.line.is-out { opacity: .65; }
.summary { padding: 18px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); }
@media (min-width: 900px) { .summary { position: sticky; top: calc(var(--hdr-h) + 16px); } }
.summary__row { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; }
.summary__row--total { font-weight: 700; font-size: 20px; padding-top: 12px; margin-top: 6px; border-top: 1px dashed var(--line); }
.progress { margin: 6px 0 14px; padding: 12px 14px; border-radius: var(--r-m); background: var(--primary-soft); color: var(--primary); font-size: 14px; font-weight: 500; }
.progress--warn { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.progress__bar { height: 6px; border-radius: 3px; background: color-mix(in srgb, currentColor 18%, transparent); margin-top: 8px; overflow: hidden; }
.progress__bar i { display: block; height: 100%; background: currentColor; border-radius: 3px; transition: width .4s ease; }
.checkout-bar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 25; padding: 10px var(--gutter); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
@media (min-width: 900px) { .checkout-bar { display: none; } }
.promo { display: flex; gap: 8px; margin: 12px 0; }
.promo .input { min-height: 46px; }
.promo-applied { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: var(--r-m); background: var(--primary-soft); color: var(--primary); font-weight: 600; margin: 12px 0; }
.steps { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.steps > * { min-width: 0; }
.step { padding: 18px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); }
.step__title { display: flex; align-items: center; gap: 10px; font: 700 18px/1.2 var(--font-display); text-transform: uppercase; margin: 0 0 14px; }
.step__num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font: 700 14px var(--font); }
.options { display: grid; gap: 8px; }
.option { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.option input { position: absolute; opacity: 0; }
.option:has(input:checked) { box-shadow: inset 0 0 0 2px var(--primary); background: var(--primary-soft); }
.option:has(input:focus-visible) { outline: 3px solid var(--accent); }
.option:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.option__icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--bg-2); color: var(--primary); }
.option__title { font-weight: 600; }
.option__sub { font-size: 14px; color: var(--ink-2); }
.option__price { font-weight: 700; white-space: nowrap; }
.days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.days::-webkit-scrollbar { display: none; }
.day { flex: none; padding: 10px 16px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1.5px var(--line); background: var(--surface); border: 0; font-weight: 600; font-size: 15px; }
.day.is-active { background: var(--ink); color: var(--bg); box-shadow: none; }
.slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 10px; }
.slot { position: relative; padding: 12px; border-radius: var(--r-m); box-shadow: inset 0 0 0 1.5px var(--line); text-align: center; font-weight: 600; cursor: pointer; }
.slot input { position: absolute; opacity: 0; }
.slot:has(input:checked) { background: var(--primary); color: var(--primary-ink); box-shadow: none; }
.slot:has(input:disabled) { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.slot__why { display: block; font-size: 12px; font-weight: 400; text-decoration: none; }
.map-wrap { position: relative; }
.map-locate { position: absolute; right: 10px; bottom: 10px; z-index: 500; box-shadow: var(--shadow-2); }
.map { height: 260px; border-radius: var(--r-m); overflow: hidden; background: var(--bg-2); margin-top: 10px; isolation: isolate; }
.zone-msg { margin: 8px 0 0; font-size: 14px; font-weight: 500; }
.zone-msg.is-ok { color: var(--ok); } .zone-msg.is-bad { color: var(--danger); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.addr-list { display: grid; gap: 8px; margin-bottom: 12px; }
.alert { padding: 14px 16px; border-radius: var(--r-m); background: var(--accent-soft); color: var(--ink); margin: 0 0 12px; }
.alert--error { background: color-mix(in srgb, var(--danger) 14%, var(--surface)); }
.alert ul { margin: 6px 0 0; padding-left: 18px; }

/* ===== Вход ===== */
.auth { max-width: 420px; margin: 24px auto 48px; padding: 24px; border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-1); }
.auth__emoji { font-size: 48px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: var(--r-s); background: var(--bg-2); margin: 16px 0; }
.seg button { height: 42px; border: 0; border-radius: var(--r-s); background: none; font-weight: 600; color: var(--ink-2); }
.seg button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.code-input { letter-spacing: .6em; text-align: center; font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ===== Кабинет ===== */
.acc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-block: 16px 40px; }
.acc > * { min-width: 0; }
@media (min-width: 900px) { .acc { grid-template-columns: 240px minmax(0, 1fr); align-items: start; } }
.acc-nav { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.acc-nav::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .acc-nav { flex-direction: column; margin: 0; padding: 0; position: sticky; top: calc(var(--hdr-h) + 16px); } .acc-nav .chip { justify-content: flex-start; } }
.panel { padding: 18px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); }
.panel + .panel { margin-top: 14px; }
.tier { position: relative; padding: 20px; border-radius: var(--r-l); color: #fff; background: linear-gradient(135deg, var(--tier, #A3172B), color-mix(in srgb, var(--tier, #A3172B) 50%, #000)); overflow: hidden; }
.tier__name { font: 700 28px/1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.tier__bar { height: 8px; border-radius: 4px; background: rgb(255 255 255 / .25); margin: 14px 0 8px; overflow: hidden; }
.tier__bar i { display: block; height: 100%; background: #fff; }
.tiers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.tiers div { padding: 10px 6px; border-radius: var(--r-s); background: var(--bg-2); text-align: center; font-size: 13px; }
.tiers b { display: block; font-size: 15px; }
.order-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.order-row:last-child { border-bottom: 0; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: var(--primary-soft); color: var(--primary); font-size: 13px; font-weight: 600; }
.status--cancelled { background: var(--bg-2); color: var(--ink-3); }
.status--delivered { background: color-mix(in srgb, var(--ok) 16%, var(--surface)); color: var(--ok); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { position: relative; padding: 0 0 18px 28px; color: var(--ink-3); }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.timeline li::after { content: ""; position: absolute; left: 11px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline li.is-done { color: var(--ink); }
.timeline li.is-done::before { background: var(--primary); }
.timeline li.is-current::before { box-shadow: 0 0 0 5px var(--primary-soft); }
.chat { display: flex; flex-direction: column; height: min(70dvh, 620px); border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; }
.chat__list { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 80%; padding: 10px 14px; border-radius: 18px; background: var(--bg-2); align-self: flex-start; white-space: pre-wrap; word-wrap: break-word; }
.msg--me { align-self: flex-end; background: var(--primary); color: var(--primary-ink); border-bottom-right-radius: 6px; }
.msg:not(.msg--me) { border-bottom-left-radius: 6px; }
.msg__time { display: block; font-size: 11px; opacity: .65; margin-top: 2px; text-align: right; }
.msg.is-pending { opacity: .6; }
.msg.is-failed { outline: 2px solid var(--danger); }
.chat__form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat__form .input { min-height: 46px; border-radius: 999px; }
.chat__send { width: 46px; height: 46px; border-radius: var(--r-m); border: 0; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; flex: none; }
.refbox { display: flex; gap: 8px; margin: 12px 0; }
.refbox .input { font-weight: 600; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--bg-2); display: grid; place-items: center; font-size: 30px; overflow: hidden; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; margin: 0; }
.kv dt { color: var(--ink-2); } .kv dd { margin: 0; text-align: right; }

/* ===== Подвал ===== */
.ftr { margin-top: 56px; padding: 44px 0 24px; background: var(--char); color: color-mix(in srgb, var(--char-ink) 68%, transparent); font-size: 15px; border-top: 1px solid var(--line); }
.ftr__grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .ftr__grid { grid-template-columns: 2fr 1fr 1fr; } }
.ftr__brand { display: flex; align-items: center; gap: 10px; font: 700 20px/1.1 var(--font-display); text-transform: uppercase; letter-spacing: .02em; color: var(--char-ink); margin: 0 0 10px; }
.ftr__brand .i { width: 30px; height: 30px; color: var(--primary); }
.ftr__h { font: 700 12px/1.2 var(--font); text-transform: uppercase; letter-spacing: .12em; color: var(--accent); margin: 0 0 12px; }
.ftr__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ftr__list a:hover { color: var(--char-ink); }
.ftr__muted { margin: 0; }
.ftr__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 24px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / .1); font-size: 13px; color: color-mix(in srgb, var(--char-ink) 45%, transparent); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 899px) { [data-cart-page] .summary > .btn--accent { display: none; } }

/* ===== Каталог в стиле крупных сетей ===== */
.subcats { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; padding: 4px var(--page-pad) 12px; margin-inline: calc(var(--page-pad) * -1); scrollbar-width: none; }
.subcats::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .subcats { flex-wrap: wrap; margin: 0; padding: 6px 0 14px; overflow: visible; } }
.pill { flex: none; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: var(--r-s); background: var(--surface); border: 1px solid var(--line); font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--ink); transition: background .15s, color .15s; }
.pill:hover { background: var(--primary-soft); color: var(--primary); }
.pill.is-active { background: var(--primary); color: var(--primary-ink); }
.toolbar { justify-content: space-between; }
.quick { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.quick::-webkit-scrollbar { display: none; }
.quick .pill { height: 36px; font-size: 13px; }
.sort-select { flex: none; }
.sort-select .select { height: 36px; background-color: var(--surface); }
.tree a { padding: 7px 10px; font-size: 15px; font-weight: 500; color: var(--ink); border-radius: var(--r-s); }
.tree a.is-active { background: none; color: var(--primary); font-weight: 700; }
.tree a:hover { background: var(--surface-2); color: var(--primary); }
.tree .tree { margin: 0 0 6px 12px; padding-left: 10px; border-left: 2px solid var(--line); }
.tree .tree a { font-size: 14px; color: var(--ink-2); padding: 5px 10px; }
.cat-section { margin: 26px 0; }
.cat-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }

/* ===== Уведомления и история покупок ===== */
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 6px; background: var(--primary); color: var(--primary-ink); font-size: 12px; font-weight: 700; }
.chip.is-active .count { background: var(--primary-ink); color: var(--primary); }
.notes { padding: 6px; }
.note { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 12px; padding: 12px; border-radius: var(--r-m); align-items: start; }
.note + .note { border-top: 1px solid var(--line); border-top-left-radius: 0; border-top-right-radius: 0; }
.note:hover { background: var(--surface-2); }
.note__icon { grid-row: span 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-s); background: var(--bg-2); color: var(--ink-2); }
.note__icon .i { width: 20px; height: 20px; }
.note__text { display: grid; gap: 2px; min-width: 0; }
.note__time { grid-column: 2; }
.note.is-unread .note__icon { background: var(--primary-soft); color: var(--primary); }
.note.is-unread .note__text b::after { content: ""; display: inline-block; width: 8px; height: 8px; margin-left: 8px; border-radius: 50%; background: var(--primary); vertical-align: middle; }
.note--courier_near .note__icon { background: var(--accent-soft); color: color-mix(in srgb, var(--accent) 70%, var(--ink)); }
.eta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 14px 16px; border-radius: var(--r-l); background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.eta .i { width: 28px; height: 28px; color: color-mix(in srgb, var(--accent) 70%, var(--ink)); animation: eta-drive 1.6s ease-in-out infinite alternate; }
@keyframes eta-drive { from { translate: -2px 0; } to { translate: 2px 0; } }
.promos { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.promo { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-m); border: 1px dashed var(--neon-line); background: var(--surface-2); }
.promo__main { display: grid; gap: 2px; min-width: 0; }
.promo__title { font-size: 16px; }
.promo__code { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 40px; padding: 0 12px; border: 0; border-radius: 10px; background: var(--ember); color: #fff; font: 700 15px/1 var(--font-display); letter-spacing: .06em; box-shadow: var(--glow); }
.promo__code .i { width: 16px; height: 16px; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
@media (min-width: 700px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-l); background: var(--surface); box-shadow: var(--shadow-1); border-top: 3px solid var(--primary); }
.stat__label { font-size: 13px; color: var(--ink-3); }
.stat__value { font: 700 24px/1.1 var(--font-display); letter-spacing: .02em; }
.bars { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 150px; }
.bars__col { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; text-align: center; }
.bars__col i { align-self: end; display: block; min-height: 3px; border-radius: 4px 4px 2px 2px; background: var(--primary); transition: background .15s; }
.bars__col i.is-zero { background: var(--line); }
.bars__col:hover i:not(.is-zero) { background: var(--primary-hover); }
.bars__col span { font-size: 11px; color: var(--ink-3); }
.hist-tools { display: grid; gap: 10px; margin: 18px 0 14px; }
.hist-tools__search { grid-column: auto; grid-row: auto; margin: 0; }
@media (min-width: 900px) { .hist-tools { grid-template-columns: minmax(0, 1fr) auto; align-items: center; } }
.hist-item { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.hist-item > .card { flex: 1; }
.hist-item__meta { margin: 0; padding: 0 4px; font-size: 13px; line-height: 1.4; }
@media (min-width: 1000px) { .hist-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .hist-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ===== Витрина: акценты ===== */
.section-head .h2 { font: 600 15px/1.2 var(--font-display); letter-spacing: .08em; color: var(--ink-2); }
@media (min-width: 900px) { .section-head .h2 { font-size: 18px; } }
.faq__item { border: 1px solid var(--line); }
.faq__item[open] { border-color: var(--line-2); }
.status { background: var(--primary-soft); color: color-mix(in srgb, var(--primary) 60%, var(--ink)); }

/* ===== Корзина: рекомендации и предложение ===== */
.cart-recs { margin: 8px calc(var(--page-pad) * -1) 24px; }
.cart-recs .section-head { padding-inline: var(--page-pad); }
.popup--sheet { place-items: end center; padding: 0; background: rgb(0 0 0 / .55); backdrop-filter: blur(3px); }
@media (min-width: 700px) { .popup--sheet { place-items: center; padding: 16px; } }
.sheet {
  position: relative; width: min(100%, 560px); max-height: 88dvh; overflow-y: auto; padding: 22px 16px calc(18px + env(safe-area-inset-bottom));
  border-radius: var(--r-xl) var(--r-xl) 0 0; color: var(--ink); border: 1px solid rgb(255 59 74 / .25);
  background: radial-gradient(80% 60% at 100% 0%, rgb(240 40 58 / .28), transparent 65%), var(--surface);
  box-shadow: 0 -20px 60px rgb(0 0 0 / .5); animation: sheet-up .32s cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 700px) { .sheet { border-radius: var(--r-xl); padding: 26px 24px 22px; } }
@keyframes sheet-up { from { transform: translateY(40px); opacity: 0; } }
.sheet .popup__close { background: var(--surface-2); color: var(--ink); }
.sheet__kicker { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px 4px 8px; border-radius: 999px; background: linear-gradient(90deg, #FF3B4A, #C8102A); color: #fff; font: 700 12px/1.2 var(--font-display); text-transform: uppercase; letter-spacing: .06em; }
.sheet__kicker .i { width: 16px; height: 16px; }
.sheet__title { margin: 12px 0 4px; font: 700 clamp(26px, 7vw, 34px)/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .02em; }
.sheet__text { margin: 0 0 14px; color: var(--ink-2); }
.sheet__deals { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 6px; scroll-snap-type: x proximity; }
.sheet__deals::-webkit-scrollbar { display: none; }
.sheet__deals .card { scroll-snap-align: start; }
@media (min-width: 700px) { .sheet__deals { grid-auto-columns: 31%; margin-inline: 0; padding-inline: 0; } }
.sheet__btn { margin-top: 14px; }

/* ===== Страница каталога: категории сверху, товары ниже ===== */
.cat-top { margin-bottom: 18px; }
@media (min-width: 900px) { .cat-top { display: flex; flex-wrap: wrap; gap: 18px; } .cat-top .round { width: 104px; } }

/* ===== Неоновые рамки ===== */
.card, .panel, .stat, .line, .summary, .faq__item, .tile, .inline-ad { border-color: var(--neon-line); box-shadow: var(--neon); }
.card { border-width: 1px; border-style: solid; }
.line, .summary, .panel, .stat { border: 1px solid var(--neon-line); }
.round__pic { border-color: var(--neon-line); box-shadow: var(--neon); }
.hdr { background: color-mix(in srgb, var(--bg) 78%, transparent); border-bottom-color: var(--line); }
.sheet { border-color: var(--neon-line); }

