/* ═══════════════════════════════════════════════════════════
   OYAMI — SUSHI DELIVERY · фирменный стиль
   ═══════════════════════════════════════════════════════════ */
:root {
  --bg: #080808;
  --card: #151515;
  --bg2: #202020;
  --red: #E5222A;
  --red-hi: #F2353D;
  --red-lo: #B8161D;
  --cream: #F5EEE4;
  --muted: #A7A19A;
  --line: #292929;
  --ok: #4CAF7A;
  --warn: #E5A322;

  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --jp: "Noto Serif JP", serif;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;

  --h-sm: 38px;
  --h-md: 46px;
  --h-lg: 56px;

  --gut: 16px;
  --container: 1240px;
  --header-h: 72px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --t-fast: .18s;
  --t: .32s;
  --t-slow: .6s;

  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
  --glow: 0 10px 34px -10px rgba(229, 34, 42, .55);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--cream);
  font: 500 16px/1.55 var(--font); letter-spacing: .005em;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
body.lock { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.jp { font-family: var(--jp); font-weight: 600; }
.mt { margin-top: 48px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--red); padding: 8px 14px; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.seo { padding: 40px var(--gut); }

.h1 { font: 700 clamp(34px, 5vw, 56px)/1.05 var(--serif); letter-spacing: -.01em; margin: 0 0 20px; }
.h2 { font: 700 clamp(28px, 3.6vw, 40px)/1.1 var(--serif); margin: 0; letter-spacing: -.005em; }
.kicker { font-size: 12px; font-weight: 700; letter-spacing: .32em; color: var(--muted); margin: 0 0 18px; display: flex; gap: 12px; align-items: center; }
.kicker .jp { color: var(--red); letter-spacing: 0; font-size: 15px; }

/* ─────────── Кнопки: единая система ─────────── */
.btn {
  --bh: var(--h-md);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--bh); padding: 0 22px; border-radius: var(--r);
  font-weight: 700; font-size: 15px; letter-spacing: .02em; white-space: nowrap;
  border: 1px solid transparent; position: relative; overflow: hidden; user-select: none;
  transition: background var(--t-fast) var(--ease), border-color var(--t-fast), color var(--t-fast), transform var(--t-fast) var(--ease), box-shadow var(--t) var(--ease);
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: scale(.97); }
.btn--sm { --bh: var(--h-sm); padding: 0 16px; font-size: 14px; border-radius: var(--r-sm); }
.btn--lg { --bh: var(--h-lg); padding: 0 30px; font-size: 15px; letter-spacing: .08em; }
.btn--block { width: 100%; }
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-hi); box-shadow: var(--glow); }
.btn--primary:active { background: var(--red-lo); }
.btn--ghost { background: transparent; border-color: var(--line); color: var(--cream); }
.btn--ghost:hover { border-color: #444; background: rgba(255,255,255,.03); }
.btn--soft { background: var(--bg2); color: var(--cream); }
.btn--soft:hover { background: #2a2a2a; }
.btn[disabled], .btn.is-loading { pointer-events: none; opacity: .65; }
.btn.is-loading { color: transparent; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn .ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.35); transform: scale(0); animation: ripple .6s var(--ease-out); pointer-events: none; }

.icon-btn {
  width: var(--h-md); height: var(--h-md); display: inline-grid; place-items: center; border-radius: var(--r);
  color: var(--cream); transition: background var(--t-fast), transform var(--t-fast);
}
.icon-btn:hover { background: var(--bg2); }
.icon-btn:active { transform: scale(.94); }

.link-arrow { color: var(--muted); font-weight: 600; font-size: 14px; display: inline-flex; gap: 6px; align-items: center; transition: color var(--t-fast); }
.link-arrow::after { content: "→"; transition: transform var(--t-fast) var(--ease); }
.link-arrow:hover { color: var(--cream); }
.link-arrow:hover::after { transform: translateX(4px); }

.badge {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px;
  background: var(--red); color: #fff; font: 800 11px/20px var(--font); text-align: center; font-style: normal;
}
.badge.bump { animation: bump .45s var(--ease-out); }

/* ─────────── Поля ─────────── */
.field { display: flex; align-items: center; gap: 10px; height: var(--h-md); padding: 0 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); transition: border-color var(--t-fast), background var(--t-fast); }
.field:focus-within { border-color: #555; background: #181818; }
.field input, .field textarea, .field select { flex: 1; min-width: 0; width: 100%; background: none; border: 0; outline: 0; height: 100%; }
.field input::placeholder, .field textarea::placeholder { color: #6f6a64; }
.field svg { width: 18px; height: 18px; color: var(--muted); }
.field--area { height: auto; padding: 12px 14px; }
.field--area textarea { resize: vertical; min-height: 72px; }
.field.is-invalid { border-color: var(--red); animation: shake .35s; }
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }
input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }
.label { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px 2px; font-weight: 600; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(4, 1fr); }
.form-grid > * { min-width: 0; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-4 { grid-column: 1 / -1; }
.err { color: #ff6b6b; font-size: 13px; margin: 6px 2px 0; min-height: 0; }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { width: 44px; height: 26px; border-radius: 13px; background: var(--bg2); border: 1px solid var(--line); position: relative; transition: background var(--t-fast); }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform var(--t) var(--ease-out), background var(--t-fast); }
.switch input:checked + .switch__ui { background: var(--red); border-color: var(--red); }
.switch input:checked + .switch__ui::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--red); outline-offset: 2px; }

.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; font-size: 14px; color: var(--muted); }
.check input { position: absolute; opacity: 0; }
.check__box { width: 22px; height: 22px; flex: none; border-radius: 7px; border: 1px solid #444; display: grid; place-items: center; transition: background var(--t-fast), border-color var(--t-fast); }
.check__box::after { content: ""; width: 10px; height: 6px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); transition: transform var(--t-fast) var(--ease-out); margin-top: -2px; }
.check input:checked + .check__box { background: var(--red); border-color: var(--red); }
.check input:checked + .check__box::after { transform: rotate(-45deg) scale(1); }
.check a { color: var(--cream); text-decoration: underline; text-underline-offset: 3px; }

.seg { display: inline-flex; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); gap: 4px; width: 100%; }
.seg__btn { flex: 1; height: calc(var(--h-md) - 10px); border-radius: var(--r-sm); font-weight: 700; font-size: 14px; color: var(--muted); transition: background var(--t) var(--ease), color var(--t-fast); }
.seg__btn:hover { color: var(--cream); }
.seg__btn.is-active { background: var(--bg2); color: var(--cream); box-shadow: inset 0 0 0 1px #333; }

.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; scroll-snap-type: x proximity; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  height: var(--h-sm); padding: 0 16px; border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-weight: 600; font-size: 14px; white-space: nowrap; color: var(--muted); scroll-snap-align: start;
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast), transform var(--t-fast);
}
.chip:hover { color: var(--cream); border-color: #3a3a3a; }
.chip:active { transform: scale(.96); }
.chip.is-active { background: var(--cream); color: var(--bg); border-color: var(--cream); }

.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 999px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.tabs::-webkit-scrollbar { display: none; }
.tab { height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--muted); white-space: nowrap; transition: background var(--t) var(--ease), color var(--t-fast); }
.tab:hover { color: var(--cream); }
.tab.is-active { background: var(--red); color: #fff; }

/* ─────────── Шапка ─────────── */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(8, 8, 8, .72); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-bottom: 1px solid transparent; transition: border-color var(--t), background var(--t); }
.header.is-scrolled { border-bottom-color: var(--line); background: rgba(8, 8, 8, .88); }
.header__row { height: 100%; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 38px; height: 38px; stroke: none; transition: transform var(--t-slow) var(--ease-out); }
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.05); }
.logo__text { display: flex; flex-direction: column; line-height: 1; }
.logo__text b { font: 800 21px/1 var(--font); letter-spacing: .22em; }
.logo__text small { font-size: 9px; letter-spacing: .38em; color: var(--muted); margin-top: 5px; font-weight: 700; }
.nav { display: flex; gap: 6px; margin-left: 24px; }
.nav__link { padding: 10px 14px; border-radius: var(--r-sm); font-weight: 600; font-size: 15px; color: var(--muted); position: relative; transition: color var(--t-fast); }
.nav__link::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); border-radius: 2px; transform: scaleX(0); transition: transform var(--t) var(--ease-out); }
.nav__link:hover, .nav__link.is-active { color: var(--cream); }
.nav__link.is-active::after { transform: scaleX(1); }
.header__actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.cart-btn { position: relative; display: inline-flex; align-items: center; gap: 10px; height: var(--h-md); padding: 0 18px; border-radius: var(--r); background: var(--red); color: #fff; font-weight: 700; margin-left: 6px; transition: background var(--t-fast), box-shadow var(--t), transform var(--t-fast); }
.cart-btn:hover { background: var(--red-hi); box-shadow: var(--glow); }
.cart-btn:active { transform: scale(.96); }
.cart-btn .badge { background: var(--cream); color: var(--bg); }
.cart-btn.shake { animation: cartPop .5s var(--ease-out); }
.show-sm { display: none; }

.net-banner { background: #3a2a10; color: #f5d9a8; font-size: 14px; padding: 10px var(--gut); text-align: center; }

/* ─────────── Анимации появления ─────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }
.view { min-height: 70vh; outline: none; }
.view.is-entering { animation: viewIn .5s var(--ease-out); }

/* ─────────── Hero ─────────── */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; isolation: isolate; }
.hero__sun {
  position: absolute; z-index: -1; width: min(62vw, 640px); aspect-ratio: 1; border-radius: 50%;
  right: max(-8vw, -120px); top: 50%; translate: 0 -50%;
  background: radial-gradient(circle at 38% 36%, #ff4a50 0%, var(--red) 46%, #a3141a 100%);
  box-shadow: 0 0 120px 10px rgba(229, 34, 42, .25);
  animation: sunIn 1.4s var(--ease-out) both, sunFloat 14s ease-in-out 1.4s infinite;
}
.hero__waves { position: absolute; inset: auto 0 0 0; height: 160px; z-index: -1; opacity: .5;
  background: repeating-radial-gradient(circle at 50% 140%, transparent 0 18px, rgba(245,238,228,.05) 19px 20px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; min-height: min(72vh, 640px); }
.hero__title { font: 700 clamp(44px, 6.4vw, 88px)/.98 var(--serif); margin: 0 0 22px; letter-spacing: -.015em; text-wrap: balance; }
.hero__sub { font-size: 18px; color: var(--muted); max-width: 480px; margin: 0 0 32px; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__facts { display: flex; gap: 36px; margin: 44px 0 0; padding: 0; }
.hero__facts div { display: flex; flex-direction: column-reverse; }
.hero__facts dt { font: 700 26px/1.1 var(--serif); }
.hero__facts dd { margin: 0 0 4px; font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.hero .reveal:nth-child(1) { transition-delay: .1s; }
.hero .reveal:nth-child(2) { transition-delay: .2s; }
.hero .reveal:nth-child(3) { transition-delay: .32s; }
.hero .reveal:nth-child(4) { transition-delay: .44s; }
.hero .reveal:nth-child(5) { transition-delay: .56s; }
.hero__visual { position: relative; height: min(56vh, 520px); }
.hero__plate { position: absolute; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.85); border: 1px solid rgba(255,255,255,.06); background: var(--card); opacity: 0; will-change: transform; }
.hero__plate img { width: 100%; height: 100%; object-fit: cover; }
.hero__plate--1 { width: 64%; aspect-ratio: 4/3; left: 4%; top: 12%; animation: plateIn 1s var(--ease-out) .35s forwards, drift 9s ease-in-out 1.4s infinite; --rot: -4deg; }
.hero__plate--2 { width: 46%; aspect-ratio: 4/3; right: 0; top: 0; animation: plateIn 1s var(--ease-out) .55s forwards, drift 11s ease-in-out 1.6s infinite reverse; --rot: 5deg; }
.hero__plate--3 { width: 48%; aspect-ratio: 4/3; right: 8%; bottom: 0; animation: plateIn 1s var(--ease-out) .75s forwards, drift 10s ease-in-out 1.8s infinite; --rot: 2deg; }
.hero__kanji { position: absolute; left: -2%; bottom: 2%; font: 600 120px/1 var(--jp); color: rgba(245,238,228,.06); pointer-events: none; }

/* ─────────── Секции ─────────── */
.section { padding: 48px 0; }
.section--dark { background: linear-gradient(180deg, transparent, #0e0e0e 20%, #0e0e0e 80%, transparent); }
.section__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }

.promo-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.promo-strip::-webkit-scrollbar { display: none; }
.promo-card {
  position: relative; min-height: 168px; padding: 24px; border-radius: var(--r-lg); overflow: hidden; scroll-snap-align: start;
  background: linear-gradient(135deg, #1b1b1b, #121212); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: flex-end;
  transition: transform var(--t) var(--ease), border-color var(--t);
}
.promo-card::before { content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--red); right: -50px; top: -60px; opacity: .9; transition: transform var(--t-slow) var(--ease-out); }
.promo-card:nth-child(2n)::before { background: var(--cream); opacity: .1; }
.promo-card:hover { transform: translateY(-3px); border-color: #3a3a3a; }
.promo-card:hover::before { transform: scale(1.12); }
.promo-card h3 { position: relative; font: 700 26px/1.1 var(--serif); margin: 0 0 6px; }
.promo-card p { position: relative; margin: 0; color: var(--muted); font-size: 14px; }
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

.rail { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 3 * 18px) / 4); gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

.cats-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.cat-tile {
  position: relative; aspect-ratio: 1; border-radius: var(--r-lg); overflow: hidden; background: var(--card); border: 1px solid var(--line);
  display: flex; align-items: flex-end; padding: 14px; isolation: isolate; transition: border-color var(--t), transform var(--t) var(--ease);
}
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .75; transition: transform var(--t-slow) var(--ease-out), opacity var(--t); }
.cat-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,.85)); }
.cat-tile span { font-weight: 700; font-size: 15px; }
.cat-tile small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.cat-tile:hover { border-color: #444; transform: translateY(-3px); }
.cat-tile:hover img { transform: scale(1.08); opacity: .95; }

.adv { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.adv--inline { grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
.adv__item { padding: 26px; border-radius: var(--r-lg); background: var(--card); border: 1px solid var(--line); }
.adv__icon { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: rgba(229, 34, 42, .12); color: var(--red); font-size: 22px; margin-bottom: 16px; }
.adv__item h3 { margin: 0 0 6px; font-size: 17px; }
.adv__item p { margin: 0; color: var(--muted); font-size: 14px; }
.adv .reveal:nth-child(2) { transition-delay: .08s; } .adv .reveal:nth-child(3) { transition-delay: .16s; } .adv .reveal:nth-child(4) { transition-delay: .24s; }

.delivery { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; padding: 40px; border-radius: var(--r-xl); background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.delivery::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--red); left: -150px; bottom: -170px; opacity: .85; }
.delivery > * { position: relative; z-index: 1; }
.delivery .h2 { margin-bottom: 12px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: s; }
.steps li { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--bg2); border-radius: var(--r); }
.steps b { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); color: var(--red); font-size: 14px; flex: none; }

/* ─────────── Карточка товара ─────────── */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pcard {
  position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; transition: border-color var(--t) var(--ease), transform var(--t) var(--ease), box-shadow var(--t);
  animation: cardIn .5s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 40ms);
}
.pcard:hover { border-color: #3d3d3d; transform: translateY(-4px); box-shadow: var(--shadow); }
.pcard__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--bg2); cursor: pointer; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out), opacity .4s; opacity: 0; }
.pcard__media img.is-loaded { opacity: 1; }
.pcard:hover .pcard__media img { transform: scale(1.06); }
.pcard__tags { position: absolute; left: 10px; top: 10px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 1; }
.tag { height: 24px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: .03em; background: rgba(8,8,8,.75); color: var(--cream); backdrop-filter: blur(6px); }
.tag--hit { background: var(--cream); color: var(--bg); }
.tag--new { background: #F5EEE41f; border: 1px solid #F5EEE466; }
.tag--promo { background: var(--red); color: #fff; }
.tag--spicy { color: #ff7a59; }
.pcard__body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard__name { font-weight: 700; font-size: 17px; line-height: 1.25; margin: 0; cursor: pointer; transition: color var(--t-fast); }
.pcard__name:hover { color: #fff; }
.pcard__desc { color: var(--muted); font-size: 13px; line-height: 1.45; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__meta { font-size: 12px; color: #7d7872; font-weight: 600; }
.pcard__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: calc(var(--h-md) + 12px); }
.price { display: flex; flex-direction: column; line-height: 1.1; }
.price b { font-size: 20px; font-weight: 800; }
.price s { color: #77726c; font-size: 13px; font-weight: 600; }
.price--promo b { color: #ff5a60; }

.add-btn { min-width: 128px; }
.add-btn.added { animation: added .5s var(--ease-out); }
.stepper { display: inline-flex; align-items: center; height: var(--h-md); border-radius: var(--r); background: var(--bg2); border: 1px solid #333; min-width: 128px; justify-content: space-between; animation: stepIn .35s var(--ease-out); }
.stepper button { width: 42px; height: 100%; display: grid; place-items: center; border-radius: var(--r); transition: background var(--t-fast), color var(--t-fast); color: var(--cream); font-size: 20px; font-weight: 600; }
.stepper button:hover { background: #2c2c2c; color: #fff; }
.stepper button:active { transform: scale(.9); }
.stepper output { min-width: 28px; text-align: center; font-weight: 800; }
.stepper output.tick { animation: tick .3s var(--ease-out); }
.stepper--sm { height: var(--h-sm); min-width: 108px; }
.stepper--sm button { width: 36px; }

.fly { position: fixed; z-index: 200; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; pointer-events: none; box-shadow: 0 10px 30px rgba(0,0,0,.6); border: 2px solid var(--red); transition: transform .7s cubic-bezier(.5, -.3, .7, .9), opacity .7s; }

/* скелетоны */
.skeleton { background: linear-gradient(100deg, var(--card) 30%, #1d1d1d 50%, var(--card) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; border-radius: var(--r-lg); }
.skeleton--card { aspect-ratio: 3/4; }
.skeleton--block { height: 420px; }

/* ─────────── Каталог ─────────── */
.catalog__top { position: sticky; top: var(--header-h); z-index: 30; background: rgba(8,8,8,.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.catalog__title-row { display: flex; align-items: center; gap: 20px; padding: 22px 0 12px; flex-wrap: wrap; }
.catalog__title-row .h1 { margin: 0; font-size: clamp(32px, 4vw, 44px); }
.catalog__tools { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.field--search { width: 260px; }
.chips-bar { padding: 4px 0 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
.select { position: relative; }
.select__btn { gap: 6px; }
.select__list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; list-style: none; margin: 0; padding: 6px; background: #161616; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); z-index: 40; opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none; transition: opacity var(--t-fast), transform var(--t) var(--ease-out); }
.select.is-open .select__list { opacity: 1; transform: none; pointer-events: auto; }
.select__list li { padding: 10px 12px; border-radius: var(--r-sm); cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
.select__list li:hover, .select__list li[aria-selected=true] { background: var(--bg2); color: var(--cream); }
.cat-section { padding-top: 34px; scroll-margin-top: calc(var(--header-h) + 150px); }
.cat-section__title { font: 700 32px/1.1 var(--serif); margin: 0 0 18px; display: flex; align-items: baseline; gap: 12px; }
.cat-section__title small { font: 600 13px var(--font); color: var(--muted); }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 16px; }
.active-filters:empty { display: none; }
.active-filters .chip { color: var(--cream); display: inline-flex; gap: 8px; align-items: center; }
.active-filters .chip::after { content: "×"; color: var(--muted); font-size: 16px; }
.results-head { padding: 26px 0 16px; color: var(--muted); font-weight: 600; }
.catalog { padding-bottom: 60px; }

.empty { text-align: center; padding: 70px 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.empty__sun { width: 96px; height: 96px; border-radius: 50%; background: var(--red); margin-bottom: 20px; box-shadow: 0 0 60px rgba(229, 34, 42, .35); animation: sunFloat 6s ease-in-out infinite; }
.empty .btn { margin-top: 18px; }

/* ─────────── Sheet (фильтры) ─────────── */
.sheet { position: fixed; inset: 0; z-index: 90; background: rgba(0,0,0,.6); display: flex; justify-content: flex-end; animation: fade .25s; }
.sheet__panel { width: min(420px, 100%); height: 100%; background: #0f0f0f; border-left: 1px solid var(--line); display: flex; flex-direction: column; animation: slideL .4s var(--ease-out); }
.sheet__head, .sheet__foot { padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet__head { border-bottom: 1px solid var(--line); }
.sheet__head h3 { margin: 0; font-size: 20px; }
.sheet__body { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 24px; }
.sheet__foot { border-top: 1px solid var(--line); }
.sheet__foot .btn { flex: 1; }
.fgroup { border: 0; padding: 0; margin: 0; }
.fgroup legend { font-weight: 700; margin-bottom: 12px; font-size: 15px; }
.range-row { display: flex; align-items: center; gap: 10px; }
.range-row .field { flex: 1; }

/* ─────────── Drawer ─────────── */
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 80; animation: fade .3s; backdrop-filter: blur(2px); }
.drawer { position: fixed; top: 0; bottom: 0; z-index: 85; width: min(440px, 100%); background: #0e0e0e; display: flex; flex-direction: column; transition: transform .45s var(--ease-out); visibility: hidden; }
.drawer--right { right: 0; transform: translateX(100%); border-left: 1px solid var(--line); }
.drawer--left { left: 0; transform: translateX(-100%); border-right: 1px solid var(--line); width: min(340px, 88%); }
.drawer.is-open { transform: none; visibility: visible; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 16px 16px 22px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { margin: 0; font-size: 22px; }
.drawer__nav { display: flex; flex-direction: column; padding: 14px; }
.drawer__nav a { padding: 14px 10px; font-size: 20px; font-weight: 700; border-bottom: 1px solid var(--line); }
.drawer__cats { padding: 10px 14px 30px; display: flex; flex-wrap: wrap; gap: 8px; overflow-y: auto; }

.cart__body { flex: 1; overflow-y: auto; padding: 8px 18px; }
.cart__foot { padding: 16px 18px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #0e0e0e; display: flex; flex-direction: column; gap: 12px; }
.cart__foot:empty { display: none; }
.citem { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); animation: itemIn .4s var(--ease-out) both; }
.citem.is-removing { animation: itemOut .35s var(--ease) forwards; }
.citem img { width: 72px; height: 72px; border-radius: var(--r); object-fit: cover; background: var(--bg2); }
.citem__name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.citem__price { color: var(--muted); font-size: 13px; margin-top: 2px; }
.citem__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.citem__sum { font-weight: 800; }
.citem__rm { font-size: 12px; color: #77726c; font-weight: 600; transition: color var(--t-fast); }
.citem__rm:hover { color: var(--red); }
.upsell { padding: 18px 0 8px; }
.upsell h4 { margin: 0 0 12px; font-size: 15px; }
.upsell__row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.upsell__row::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 128px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px; display: flex; flex-direction: column; gap: 6px; transition: border-color var(--t); }
.mini:hover { border-color: #3a3a3a; }
.mini img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r-sm); background: var(--bg2); }
.mini__name { font-size: 12px; font-weight: 700; line-height: 1.2; height: 2.4em; overflow: hidden; }
.mini .btn { --bh: 32px; padding: 0 10px; font-size: 13px; border-radius: var(--r-sm); }
.promo-row { display: flex; gap: 8px; }
.promo-row .field { flex: 1; height: var(--h-md); }
.promo-ok { color: var(--ok); font-size: 13px; font-weight: 600; }
.totals { display: grid; gap: 6px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; color: var(--muted); }
.totals .grand { color: var(--cream); font-size: 20px; font-weight: 800; padding-top: 6px; }
.totals .grand span:last-child { transition: transform var(--t) var(--ease-out); display: inline-block; }
.totals .grand span.pulse { animation: tick .35s var(--ease-out); }
.totals .disc { color: var(--ok); }

/* ─────────── Модальные окна ─────────── */
.modal { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 24px; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); animation: fade .3s; overflow-y: auto; }
.modal__panel { position: relative; width: min(980px, 100%); background: #0f0f0f; border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; animation: modalIn .5s var(--ease-out); max-height: calc(100dvh - 48px); display: flex; flex-direction: column; }
.modal__panel--checkout { width: min(760px, 100%); }
.modal__content { overflow-y: auto; overflow-x: hidden; }
.modal__close { position: absolute; right: 12px; top: 12px; z-index: 3; background: rgba(8,8,8,.7); backdrop-filter: blur(8px); }
.modal.is-closing { animation: fade .25s reverse forwards; }
.modal.is-closing .modal__panel { animation: modalOut .25s var(--ease) forwards; }

.pd { display: grid; grid-template-columns: 1.05fr 1fr; }
.pd__media { position: relative; background: var(--bg2); min-height: 100%; }
.pd__media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; animation: zoomIn .8s var(--ease-out); }
.pd__info { padding: 34px 32px 28px; display: flex; flex-direction: column; gap: 14px; }
.pd__info h2 { font: 700 38px/1.05 var(--serif); margin: 0; padding-right: 40px; }
.pd__desc { color: var(--muted); margin: 0; }
.pd__comp { font-size: 14px; margin: 0; }
.pd__comp b { display: block; font-size: 12px; letter-spacing: .14em; color: var(--muted); margin-bottom: 4px; }
.nutr { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.nutr div { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.nutr b { display: block; font-size: 17px; }
.nutr span { font-size: 12px; color: var(--muted); }
.pd__buy { display: flex; gap: 12px; align-items: center; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.pd__buy .btn { flex: 1; }
.pd__similar { padding: 6px 32px 30px; border-top: 1px solid var(--line); }
.pd__similar h3 { font: 700 24px var(--serif); margin: 22px 0 14px; }
.pd__similar .rail { grid-auto-columns: 200px; }
.pd__similar .pcard__desc { display: none; }

/* ─────────── Оформление ─────────── */
.co { padding: 30px 32px 28px; }
.co h2 { font: 700 34px/1.1 var(--serif); margin: 0 0 6px; }
.co__steps { display: flex; gap: 8px; margin: 18px 0 26px; }
.co__steps span { flex: 1; height: 4px; border-radius: 2px; background: var(--bg2); position: relative; overflow: hidden; }
.co__steps span::after { content: ""; position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.co__steps span.is-done::after { transform: scaleX(1); }
.co__section { display: flex; flex-direction: column; gap: 14px; animation: stepFade .45s var(--ease-out); }
.co__section + .co__section { margin-top: 26px; }
.co__section h3 { margin: 0; font-size: 17px; }
.co__nav { display: flex; gap: 12px; margin-top: 28px; }
.co__nav .btn--primary { flex: 1; }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pay-opt { position: relative; text-align: left; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--card); display: flex; flex-direction: column; gap: 6px; transition: border-color var(--t-fast), background var(--t-fast), transform var(--t-fast); }
.pay-opt:hover { border-color: #444; }
.pay-opt:active { transform: scale(.98); }
.pay-opt.is-active { border-color: var(--red); background: #1a1212; }
.pay-opt b { font-size: 16px; }
.pay-opt span { color: var(--muted); font-size: 13px; }
.pay-opt::after { content: ""; position: absolute; right: 16px; top: 16px; width: 18px; height: 18px; border-radius: 50%; border: 2px solid #444; transition: border var(--t-fast); }
.pay-opt.is-active::after { border: 6px solid var(--red); }
.note { padding: 16px 18px; border-radius: var(--r); background: rgba(229, 34, 42, .08); border: 1px solid rgba(229, 34, 42, .35); font-size: 14px; line-height: 1.5; }
.note--warn { animation: stepFade .4s var(--ease-out); }
.note--info { background: var(--card); border-color: var(--line); color: var(--muted); }
.note .btn { margin-top: 14px; }
.loc-list { display: grid; gap: 10px; }
.loc { text-align: left; padding: 16px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); transition: border-color var(--t-fast); }
.loc.is-active { border-color: var(--red); }
.loc b { display: block; }
.loc span { font-size: 13px; color: var(--muted); }
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 10px; }
.summary__items { display: grid; gap: 6px; font-size: 14px; max-height: 220px; overflow-y: auto; }
.summary__items div { display: flex; justify-content: space-between; gap: 12px; }
.summary__items span:first-child { color: var(--muted); }

/* ─────────── Страница заказа ─────────── */
.order-page { max-width: 820px; }
.order-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.order-head .h1 { margin: 0; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; height: var(--h-sm); padding: 0 14px; border-radius: 999px; background: var(--bg2); font-weight: 700; font-size: 14px; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 0 0 rgba(229,163,34,.6); animation: ping 1.8s infinite; }
.status-pill[data-s=paid]::before, .status-pill[data-s=cooking]::before, .status-pill[data-s=ready]::before, .status-pill[data-s=courier]::before, .status-pill[data-s=done]::before { background: var(--ok); }
.status-pill[data-s=cancelled]::before, .status-pill[data-s=payment_rejected]::before { background: var(--red); animation: none; }
.pay-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: grid; gap: 18px; position: relative; overflow: hidden; }
.pay-box::after { content: ""; position: absolute; width: 200px; height: 200px; border-radius: 50%; background: var(--red); right: -90px; top: -100px; opacity: .9; }
.pay-box > * { position: relative; z-index: 1; }
.pay-amount { font: 700 48px/1 var(--serif); }
.card-num { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border-radius: var(--r); background: var(--bg); border: 1px dashed #3a3a3a; font: 700 clamp(18px, 4.5vw, 24px)/1.2 var(--font); letter-spacing: .08em; flex-wrap: wrap; }
.upload { display: flex; align-items: center; gap: 14px; padding: 16px; border: 1px dashed #3a3a3a; border-radius: var(--r); cursor: pointer; transition: border-color var(--t-fast), background var(--t-fast); }
.upload:hover, .upload.is-drag { border-color: var(--red); background: rgba(229,34,42,.05); }
.upload input { display: none; }
.upload__thumb { width: 52px; height: 52px; border-radius: var(--r-sm); background: var(--bg2); display: grid; place-items: center; overflow: hidden; flex: none; }
.upload__thumb img { width: 100%; height: 100%; object-fit: cover; }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 14px; padding: 10px 0; position: relative; color: var(--muted); font-size: 14px; animation: itemIn .4s var(--ease-out) both; }
.timeline li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #444; margin: 0 6px; }
.timeline li > span:last-child { white-space: nowrap; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 28px; bottom: -6px; width: 2px; background: var(--line); }
.timeline li:last-child { color: var(--cream); font-weight: 700; }
.timeline li:last-child::before { border-color: var(--red); background: var(--red); }
.order-grid { display: grid; gap: 18px; margin-top: 18px; }
.card-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.card-box h3 { margin: 0 0 12px; font-size: 17px; }
.profile { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; }
.my-order { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.my-order:last-child { border: 0; }

.page { padding: 40px var(--gut) 70px; }
.prose { max-width: 820px; }
.prose p { color: #d9d2c8; }
.prose h3 { margin: 28px 0 8px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 24px; }

/* ─────────── Поиск ─────────── */
.search { position: fixed; inset: 0; z-index: 96; background: rgba(5,5,5,.86); backdrop-filter: blur(10px); animation: fade .25s; }
.search__panel { max-width: 780px; margin: 0 auto; padding: 22px var(--gut); height: 100%; display: flex; flex-direction: column; animation: dropIn .4s var(--ease-out); }
.search__bar { display: flex; align-items: center; gap: 12px; height: 62px; padding: 0 10px 0 18px; border-radius: var(--r-lg); background: var(--card); border: 1px solid #333; }
.search__bar input { flex: 1; background: none; border: 0; outline: 0; font-size: 18px; font-weight: 600; min-width: 0; }
.search__hints { display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 0; }
.search__results { overflow-y: auto; display: grid; gap: 6px; padding-bottom: 40px; }
.sres { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r); transition: background var(--t-fast); cursor: pointer; animation: itemIn .3s var(--ease-out) both; }
.sres:hover, .sres.is-focus { background: var(--card); }
.sres img { width: 64px; height: 48px; object-fit: cover; border-radius: var(--r-sm); background: var(--bg2); }
.sres b { display: block; font-size: 15px; }
.sres small { color: var(--muted); font-size: 12px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sres mark { background: none; color: var(--red-hi); }

/* ─────────── Уведомления ─────────── */
.toasts { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; width: min(440px, calc(100% - 32px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 16px; border-radius: var(--r); background: #1b1b1b; border: 1px solid #333; box-shadow: var(--shadow); font-weight: 600; font-size: 14px; animation: toastIn .45s var(--ease-out); }
.toast::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); flex: none; }
.toast--error::before { background: var(--red); }
.toast--info::before { background: var(--cream); }
.toast.is-out { animation: toastOut .3s var(--ease) forwards; }

/* ─────────── Нижняя панель (mobile) ─────────── */
.tabbar { display: none; }
.mobile-cart { display: none; }

/* ─────────── Подвал ─────────── */
.footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 50px 0 30px; background: #060606; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.footer__note { max-width: 300px; font-size: 14px; }
.footer__col { display: flex; flex-direction: column; gap: 8px; }
.footer__col h4 { margin: 0 0 6px; font-size: 13px; letter-spacing: .16em; color: var(--muted); text-transform: uppercase; }
.footer__col a, .footer__col div > * { color: #cfc8be; font-size: 14px; transition: color var(--t-fast); }
.footer__col a:hover { color: #fff; }
#footerCats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.footer__bottom { display: flex; justify-content: space-between; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); color: #6f6a64; font-size: 13px; }
.footer__bottom .jp { color: var(--red); }

/* ═══════════ Адаптив ═══════════ */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .rail { grid-auto-columns: calc((100% - 2 * 18px) / 3); }
  .cats-grid { grid-template-columns: repeat(4, 1fr); }
  .adv { grid-template-columns: repeat(2, 1fr); }
  .field--search { width: 200px; }
}
@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .nav, .hide-sm, .cart-btn__sum { display: none; }
  .show-sm { display: inline-grid; }
  .cart-btn { padding: 0; width: var(--h-md); justify-content: center; }
  .hero { padding: 24px 0 40px; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 10px; }
  .hero__visual { order: -1; height: 300px; }
  .hero__sun { width: 360px; right: -90px; top: 160px; }
  .hero__sub { font-size: 16px; }
  .hero__facts { gap: 22px; margin-top: 30px; }
  .pd { grid-template-columns: 1fr; }
  .pd__info { padding: 22px 20px; }
  .pd__info h2 { font-size: 32px; }
  .pd__similar { padding: 0 20px 24px; }
  .delivery { grid-template-columns: 1fr; padding: 26px; gap: 22px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .profile { grid-template-columns: 1fr; }
  .catalog__tools { width: 100%; margin: 0; }
  .field--search { flex: 1; width: auto; }
}
@media (max-width: 700px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .rail { grid-auto-columns: 70%; gap: 12px; }
  .cats-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .cat-tile { padding: 10px; border-radius: var(--r); }
  .cat-tile span { font-size: 13px; }
  .adv, .adv--inline { grid-template-columns: 1fr 1fr; gap: 10px; }
  .adv__item { padding: 18px; }
  .adv__item h3 { font-size: 15px; }
  .adv__item p { font-size: 13px; }
  .section { padding: 34px 0; }
  .pcard { border-radius: var(--r); }
  .pcard__body { padding: 10px 10px 12px; gap: 4px; }
  .pcard__name { font-size: 14px; }
  .pcard__desc { font-size: 12px; }
  .pcard__foot { flex-direction: column; align-items: stretch; gap: 8px; padding-top: 8px; }
  .price { flex-direction: row; align-items: baseline; gap: 8px; }
  .price b { font-size: 17px; }
  .add-btn, .stepper { min-width: 0; width: 100%; --bh: var(--h-sm); height: var(--h-sm); font-size: 14px; padding: 0 10px; }
  .stepper button { width: 38px; }
  .tag { height: 20px; font-size: 10px; padding: 0 7px; }
  .catalog__title-row { padding: 14px 0 8px; gap: 12px; }
  .catalog__tools .select__btn span, .catalog__tools [data-action=filters] { font-size: 0; gap: 0; padding: 0; width: var(--h-md); }
  .catalog__tools [data-action=filters] svg, .select__btn svg { font-size: 16px; }
  .select__btn { width: var(--h-md); padding: 0; }
  .select__btn span { display: none; }
  .cat-section__title { font-size: 26px; }
  .modal { padding: 0; place-items: end center; }
  .modal__panel { border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 94dvh; animation: sheetUp .5s var(--ease-out); }
  .modal.is-closing .modal__panel { animation: sheetDown .3s var(--ease) forwards; }
  .co { padding: 24px 18px calc(24px + env(safe-area-inset-bottom)); }
  .co h2 { font-size: 28px; }
  .form-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-grid .span-2 { grid-column: 1 / -1; }
  .pay-opts { grid-template-columns: 1fr; }
  .pay-box { padding: 22px 18px; }
  .pay-amount { font-size: 40px; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer { padding-bottom: 20px; }
  .toasts { bottom: calc(140px + env(safe-area-inset-bottom)); }
  body.lock .toasts { bottom: auto; top: calc(12px + env(safe-area-inset-top)); }
  .catalog__title-row .h1 { display: none; }
  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(10,10,10,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  }
  .tabbar__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; color: #8d8780; transition: color var(--t-fast); }
  .tabbar__item svg { width: 22px; height: 22px; }
  .tabbar__item.is-active { color: var(--cream); }
  .tabbar__item.is-active svg { color: var(--red); }
  .tabbar__item .badge { top: 6px; right: calc(50% - 22px); }
  .mobile-cart {
    position: fixed; left: 12px; right: 12px; bottom: calc(74px + env(safe-area-inset-bottom)); z-index: 65;
    display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 18px; border-radius: var(--r);
    background: var(--red); color: #fff; font-weight: 800; box-shadow: var(--glow); transform: translateY(140%); transition: transform .45s var(--ease-out);
  }
  .mobile-cart.is-on { transform: none; }
  .header__actions .cart-btn { display: none; }
}
@media (max-width: 380px) {
  .hero__title { font-size: 40px; }
  .btn--lg { padding: 0 20px; }
}
@media (hover: none) {
  .pcard:hover { transform: none; box-shadow: none; }
  .pcard:hover .pcard__media img { transform: none; }
}

/* ═══════════ Keyframes ═══════════ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes sunIn { from { opacity: 0; scale: .7; } }
@keyframes sunFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 12px); } }
@keyframes plateIn { from { opacity: 0; transform: translateY(40px) rotate(0) scale(.94); } to { opacity: 1; transform: translateY(0) rotate(var(--rot)) scale(1); } }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(var(--rot)); } 50% { transform: translateY(-10px) rotate(calc(var(--rot) * .6)); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@keyframes added { 0% { transform: scale(1); } 40% { transform: scale(.92); } 100% { transform: scale(1); } }
@keyframes stepIn { from { opacity: 0; transform: scale(.9); } }
@keyframes tick { 0% { transform: translateY(-6px); opacity: .3; } 100% { transform: none; opacity: 1; } }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }
@keyframes cartPop { 0%, 100% { transform: none; } 30% { transform: scale(1.08) rotate(-3deg); } 60% { transform: scale(.98) rotate(2deg); } }
@keyframes itemIn { from { opacity: 0; transform: translateX(16px); } }
@keyframes itemOut { to { opacity: 0; transform: translateX(40px); height: 0; padding: 0; margin: 0; border-width: 0; } }
@keyframes slideL { from { transform: translateX(100%); } }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(20px) scale(.98); } }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes zoomIn { from { transform: scale(1.08); } }
@keyframes stepFade { from { opacity: 0; transform: translateY(8px); } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-16px); } }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(229,163,34,.6); } 70% { box-shadow: 0 0 0 8px rgba(229,163,34,0); } 100% { box-shadow: 0 0 0 0 rgba(229,163,34,0); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__plate { opacity: 1; transform: rotate(var(--rot)); }
}
