/* Шашлычный дворик — тёмная тема, тёплый оранжевый акцент. Mobile first.
   Никаких backdrop-filter, fixed-фонов и тяжёлых теней на закреплённых элементах. */
[hidden] { display: none !important; }

@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/static/fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("/static/fonts/manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20BD, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #0f0c0a;
  --bg-2: #171310;
  --card: #1d1814;
  --card-2: #26201b;
  --line: rgba(255, 220, 190, .08);
  --text: #f7f1ea;
  --muted: #a8998c;
  --accent: #ff7a1a;
  --accent-2: #ff5c0a;
  --accent-soft: rgba(255, 122, 26, .14);
  --on-accent: #fff;
  --gold: #ffb15c;
  --ok: #7fd48b;
  --err: #ff8a7a;
  --radius: 20px;
  --radius-s: 12px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --top-h: 56px;
  /* ===== единая система стилей ===== */
  --r-card: 20px;   /* карточки, окна, баннеры */
  --r-btn: 14px;    /* кнопки */
  --r-field: 12px;  /* поля ввода */
  --r-sm: 8px;      /* мелкие плашки, значки */
  --r-pill: 999px;  /* чипы, круглые кнопки */
  --bd: 1px solid var(--line);                       /* обычная рамка */
  --bd-ac: 1px solid rgba(255, 122, 26, .3);         /* акцентная рамка */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px; --sp-6: 32px;
  --shadow-1: 0 4px 14px rgba(0, 0, 0, .35);
  --shadow-2: 0 10px 30px rgba(0, 0, 0, .45);
  --fs-2xs: 11px; --fs-xs: 12.5px; --fs-s: 13.5px; --fs-sm: 14px; --fs-md: 15px; --fs-base: 16px;
  --fs-lg: 18px; --fs-xl: 20px; --fs-2xl: 24px; --fs-3xl: 30px;
  --wrap: 1200px;   /* ширина контента */

  /* совместимость с admin.css */
  --ember: var(--accent); --on-ember: var(--on-accent);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(112px + env(safe-area-inset-top, 0px)); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 500 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(84px + var(--safe-b));
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--font); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 8px 12px; border-radius: var(--r-sm); z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Шапка ---------- */
.top { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.top__in { max-width: var(--wrap); margin: 0 auto; height: var(--top-h); padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.brand { min-width: 0; flex: 1 1 auto; text-decoration: none; color: inherit; border-radius: var(--r-sm); transition: opacity .12s ease; }
.brand:active { opacity: .7; }
.brand__name { font-weight: 800; font-size: var(--fs-lg); line-height: 1.15; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__addr { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-call {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px;
  border-radius: var(--r-pill); text-decoration: none; font-weight: 700; font-size: var(--fs-s);
  background: var(--accent-soft); color: var(--gold); border: var(--bd-ac);
  transition: transform .12s ease;
  position: relative;
}
.btn-call::after { content: ""; position: absolute; inset: -4px; } /* зона касания 44px */
.btn-call svg { width: 15px; height: 15px; }
.btn-call:active { transform: scale(.96); }

/* корзина в шапке */
.hcart {
  flex: none; position: relative; display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px 0 8px;
  border: 0; border-radius: var(--r-pill); background: var(--card-2); color: var(--text); font-weight: 800; font-size: var(--fs-s);
  transition: transform .12s ease;
}
.hcart::after { content: ""; position: absolute; inset: -4px; }
.hcart:active { transform: scale(.96); }
.hcart__ic { position: relative; display: grid; place-items: center; width: 24px; height: 24px; }
.hcart__ic svg { width: 21px; height: 21px; }
.hcart__ic.bump { animation: cart-bump .45s cubic-bezier(.3, 1.6, .5, 1); }
.hcart__n {
  position: absolute; top: -7px; left: 14px; min-width: 12px; height: 16px; padding: 0 3px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff; font-size: var(--fs-2xs); font-weight: 800; line-height: 16px; text-align: center;
  border: 2px solid var(--bg); box-sizing: content-box;
}
.hcart__sum { font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 4px; }
body:not(.has-cart) .hcart { width: 40px; padding: 0; justify-content: center; }
@keyframes cart-bump { 0% { transform: scale(1); } 35% { transform: translateY(-4px) scale(1.25); } 70% { transform: scale(.95); } 100% { transform: scale(1); } }
/* узкий экран с полной корзиной: «Позвонить» сворачивается в иконку, чтобы влезла сумма */
@media (max-width: 440px) {
  .has-cart .btn-call span { display: none; }
  .has-cart .btn-call { width: 36px; padding: 0; justify-content: center; }
}

/* фото, летящее в корзину */
.fly { position: fixed; z-index: 90; pointer-events: none; will-change: transform; }
.fly__y { width: 100%; height: 100%; will-change: transform; }
.fly__img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-card); will-change: transform, opacity; box-shadow: var(--shadow-2); }

.banner { max-width: var(--wrap); margin: 10px auto 0; padding: 0 16px; display: flex; }
.banner { gap: 10px; align-items: center; }
.banner > svg { display: none; }
.banner p {
  margin: 0; flex: 1; padding: 9px 12px 9px 40px; border-radius: var(--r-field); font-size: var(--fs-xs); line-height: 1.35; color: var(--muted);
  background: linear-gradient(90deg, rgba(255, 122, 26, .16), rgba(255, 122, 26, .04)) , var(--bg-2);
  border: var(--bd-ac); position: relative;
}
.banner p::before {
  content: ""; position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 6h12v9H2zM14 9h4.5L22 12.5V15h-8z' fill='black'/%3E%3Ccircle cx='6' cy='17' r='2.2' fill='black'/%3E%3Ccircle cx='17' cy='17' r='2.2' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 6h12v9H2zM14 9h4.5L22 12.5V15h-8z' fill='black'/%3E%3Ccircle cx='6' cy='17' r='2.2' fill='black'/%3E%3Ccircle cx='17' cy='17' r='2.2' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
}
.banner b { color: var(--text); font-weight: 700; }

/* ---------- Способ получения ---------- */
.modebar { display: none; }
.mseg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: var(--r-btn); background: var(--bg-2); }
.mseg__o { min-height: 42px; border: 0; border-radius: var(--r-sm); background: none; color: var(--muted); font-weight: 700; font-size: var(--fs-sm); white-space: nowrap; padding: 0 4px; transition: background-color .2s ease, color .2s ease; }
.mseg__o[aria-checked="true"] { background: var(--text); color: var(--bg); }
.mrow { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 12px; border: var(--bd); border-radius: var(--r-btn); background: var(--card); color: var(--text); text-decoration: none; text-align: left; font: inherit; }
.mrow > svg { width: 18px; height: 18px; flex: none; margin-left: auto; color: var(--muted); }
.mrow__ic { font-size: var(--fs-lg); flex: none; }
.mrow__t { min-width: 0; display: flex; flex-direction: column; font-weight: 700; font-size: var(--fs-sm); line-height: 1.25; }
.mrow__t > span, .mrow__t small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mrow__t small { font-weight: 600; font-size: var(--fs-xs); color: var(--muted); }
.mrow--addr:not(.is-set) .mrow__t > span { color: var(--gold); }
.mrow--book { border-color: rgba(255, 122, 26, .35); }
/* показываем только части текущего режима (режим ставится до отрисовки — без прыжков) */
html[data-mode="delivery"] [data-for]:not([data-for="delivery"]),
html[data-mode="pickup"] [data-for]:not([data-for="pickup"]),
html[data-mode="hall"] [data-for]:not([data-for="hall"]) { display: none !important; }

/* мотоцикл на баннере доставки */

/* ---------- Категории ---------- */
.cats { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); z-index: 25; background: var(--bg); border-bottom: 1px solid var(--line); }
.cats__in { position: relative; isolation: isolate; }
.cats__in { max-width: var(--wrap); margin: 0 auto; display: flex; gap: 6px; overflow-x: auto; padding: 8px 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.cats__in::-webkit-scrollbar { display: none; }
.chip {
  flex: none; height: 34px; display: inline-flex; align-items: center; padding: 0 13px; border-radius: var(--r-pill);
  text-decoration: none; white-space: nowrap; font-size: var(--fs-s); font-weight: 600; color: var(--muted);
  position: relative; transition: color .3s ease-out;
}
/* фон неактивной кнопки — под капсулой, текст — над ней */
.chip::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--bg-2); }
.chip.is-active { color: var(--bg); }

/* капсула активной категории: три части (края + растягиваемая середина), двигаются только transform */
.pill { position: absolute; left: 0; top: 0; height: 34px; width: 0; pointer-events: none; opacity: 0; }
.pill.ready { opacity: 1; }
.pill i { position: absolute; top: 0; left: 0; height: 34px; background: var(--text); will-change: transform; }
.pill__l { width: 17px; border-radius: 17px 0 0 17px; }
.pill__r { width: 17px; border-radius: 0 17px 17px 0; }
.pill__m { width: 100px; transform-origin: 0 0; }
.pill.ready i { transition: transform .35s cubic-bezier(.22, .8, .3, 1); }

/* полоска прогресса по текущей категории */
.cats__bar { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; pointer-events: none; }

/* заголовок категории выплывает при появлении (один раз) */
.reveal .cat__title { opacity: 0; transform: translateY(14px); transition: opacity .5s ease-out, transform .5s cubic-bezier(.2, .8, .2, 1); }
.reveal .cat__title.in { opacity: 1; transform: none; }

/* ---------- Меню ---------- */
.menu { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.cat { padding-top: 32px; }
.cat__title { margin: 0 0 12px; font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }

/* карточка блюда: сетка 2 колонки */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 10px; }
.card { display: flex; flex-direction: column; min-width: 0; transition: transform .12s ease; }
.card:active { transform: scale(.98); }
.card__media { position: relative; }
.card__img { width: 100%; aspect-ratio: 1 / 1; height: auto; border-radius: var(--r-card); object-fit: cover; background: var(--card-2); }
.card__price { margin-top: 8px; font-size: var(--fs-lg); font-weight: 800; line-height: 1.2; color: #fff; letter-spacing: -.01em; }
.card__name { margin: 2px 0 0; font-size: var(--fs-sm); font-weight: 500; line-height: 1.28;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__w { margin-top: 2px; font-size: var(--fs-xs); color: var(--muted); line-height: 1.25; }
.card .ctl--block { margin-top: auto; padding-top: 8px; }

/* нет в наличии */
.out { margin-top: auto; padding-top: 8px; }
.card .out { height: 48px; display: flex; align-items: flex-end; }
.out { color: var(--muted); font-weight: 700; font-size: var(--fs-s); }
.card .out::before { content: "Нет в наличии"; display: flex; align-items: center; justify-content: center; width: 100%; height: 40px; border-radius: var(--r-field); border: 1px dashed var(--line); }
.card .out { font-size: 0; }
.card.is-out .card__img, .big.is-out .big__img { filter: grayscale(.7); opacity: .6; }
.out--big { margin: 0; padding: 0 14px; height: 40px; display: grid; place-items: center; border-radius: var(--r-pill); background: rgba(15, 12, 10, .8); font-size: var(--fs-s); }
.ds__add:disabled { background: var(--card-2); color: var(--muted); cursor: not-allowed; }

/* акции */
.sale { position: absolute; top: 8px; left: 8px; padding: 3px 8px; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-size: var(--fs-xs); font-weight: 800; line-height: 1.3; }
.sale--inline { position: static; margin-left: 2px; }
.sale--inline:empty { display: none; }
.card__price.is-sale, .big__price.is-sale { color: var(--accent); }
.card__price s, .big__price s { margin-left: 6px; font-size: var(--fs-s); font-weight: 600; color: var(--muted); letter-spacing: 0; }
.big__price s { font-size: var(--fs-md); }
.badge--sale { background: var(--accent); color: #fff; }
.chip--promo { color: var(--gold); }
.chip--promo.is-active { color: var(--bg); }

/* кнопка «+» → счётчик «− 1 +» */
.ctl { position: relative; flex: none; }
.ctl__add {
  width: 36px; height: 36px; border-radius: var(--r-pill); border: 0; display: grid; place-items: center;
  background: var(--card-2); color: var(--gold); transition: transform .12s ease, background-color .15s ease;
  position: relative;
}
.ctl__add::after, .ctl__b::after { content: ""; position: absolute; inset: -5px; } /* зона касания */
.ctl__add svg { width: 18px; height: 18px; }
.ctl__add:active { transform: scale(.9); }
.ctl__add--wide { width: auto; padding: 0 16px; height: 40px; font-weight: 800; font-size: var(--fs-sm); background: var(--accent); color: var(--on-accent); }
.ctl__cnt { display: none; align-items: center; height: 36px; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent); animation: pop .18s ease-out; }
.ctl__b { position: relative; width: 34px; height: 36px; border: 0; background: none; color: inherit; font-size: var(--fs-xl); font-weight: 700; line-height: 1; display: grid; place-items: center; }
.ctl__b:active { transform: scale(.85); }
.ctl__n { min-width: 16px; text-align: center; font-weight: 800; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.ctl--block .ctl__add { width: 100%; height: 40px; border-radius: var(--r-btn); gap: 4px; display: flex; align-items: center; justify-content: center;
  background: var(--card-2); color: var(--text); font-weight: 700; font-size: var(--fs-sm); }
.ctl--block .ctl__add svg { width: 16px; height: 16px; }
.ctl--block .ctl__cnt { width: 100%; height: 40px; border-radius: var(--r-btn); justify-content: space-between; }
.ctl--block .ctl__b { width: 44px; height: 40px; }
.has-qty .ctl__add { display: none; }
.has-qty .ctl__cnt { display: inline-flex; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }

/* ---------- Карусель «На компанию» ---------- */
.company { padding-top: 32px; }
.carousel {
  display: flex; gap: 16px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px;
  scroll-snap-type: x mandatory; scroll-padding-inline: 16px; overscroll-behavior-x: contain; scrollbar-width: none;
}
.carousel::after { content: ""; flex: 0 0 1px; } /* отступ справа у последней карточки */
.carousel::-webkit-scrollbar { display: none; }
.big {
  position: relative; flex: 0 0 80%; max-width: 340px; aspect-ratio: 4 / 4.3; border-radius: var(--r-card); overflow: hidden;
  scroll-snap-align: start; background: var(--card-2); isolation: isolate;
  transition: transform .12s ease;
}
.big:active { transform: scale(.985); }
.big__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.big::after { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(10, 7, 5, .72) 58%, rgba(10, 7, 5, .96) 100%); }
.big__badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-size: var(--fs-2xs); font-weight: 800; padding: 4px 9px; border-radius: var(--r-pill); background: rgba(15, 12, 10, .78); color: var(--text); }
.badge--hit { background: var(--accent); color: var(--on-accent); }
.big__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; }
.big__name { margin: 0; font-size: var(--fs-lg); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.big__w { font-size: var(--fs-s); font-weight: 600; color: var(--gold); white-space: nowrap; margin-left: 4px; }
.big__desc { margin: 3px 0 0; font-size: var(--fs-xs); color: #cfc3b8; line-height: 1.3; }
.big__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.big__price { font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; }
.big .ctl__cnt { height: 40px; }
/* активная карточка: мягкое оранжевое свечение рамки раз в 2 с (анимируется только opacity) */
.big::before {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; opacity: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 122, 26, .95), inset 0 0 26px rgba(255, 122, 26, .45);
  transition: opacity .4s ease;
}
.big.is-on::before { animation: glow 2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
.big.is-on .ctl__add--wide { animation: btn-pulse 2s ease-in-out infinite; }
@keyframes btn-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
/* бейджи «Хит» и «−%»: пробегающий блик */
.big .badge--hit, .big .badge--sale { position: relative; overflow: hidden; isolation: isolate; }
.big .badge--hit::after, .big .badge--sale::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 60%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .6), transparent);
  transform: translateX(-120%); animation: shine 3s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(260%); } }
.big .ctl__b { height: 40px; width: 38px; }

/* ---------- Подвал ---------- */
.foot { max-width: var(--wrap); margin: 32px auto 0; padding: 20px 16px; border-top: 1px solid var(--line); color: var(--muted); text-align: center; font-size: var(--fs-sm); }
.foot__name { color: var(--text); font-weight: 800; margin-bottom: 4px; }
.foot a { color: var(--gold); font-weight: 700; text-decoration: none; }

/* ---------- Плавающая корзина ---------- */
.fab {
  position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b));
  max-width: 480px; margin: 0 auto; height: 54px; padding: 0 18px 0 10px; border: 0; border-radius: var(--r-btn);
  display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: var(--fs-md);
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 4px 14px rgba(255, 92, 10, .3);
  animation: fab-in .22s ease-out;
}
.fab__count { min-width: 32px; height: 32px; border-radius: var(--r-sm); background: rgba(0, 0, 0, .2); display: grid; place-items: center; font-size: var(--fs-sm); padding: 0 6px; }
.fab__count.jump { animation: jump .35s cubic-bezier(.3, 1.6, .5, 1); }
.fab__sum { margin-left: auto; font-variant-numeric: tabular-nums; }
.fab:active { transform: scale(.98); }
@keyframes fab-in { from { transform: translateY(24px); opacity: 0; } }
@keyframes jump { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-7px) scale(1.15); } 100% { transform: translateY(0) scale(1); } }

/* ---------- Нижние листы ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); animation: fade .2s ease; }
.sheet__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; overscroll-behavior: contain;
  max-width: 560px; margin: 0 auto; padding: var(--sp-2) var(--sp-4) calc(18px + var(--safe-b));
  background: var(--bg-2); border-radius: var(--r-card) var(--r-card) 0 0;
  animation: up .26s cubic-bezier(.2, .8, .2, 1);
}
.sheet__panel--tall { min-height: 60vh; }
.sheet__handle { width: 40px; height: 4px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .2); margin: 4px auto 10px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; }
.sheet__title { margin: 0 0 12px; font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.icon-btn { width: 40px; height: 40px; border: 0; border-radius: var(--r-pill); background: var(--card); display: grid; place-items: center; }
.icon-btn svg { width: 18px; height: 18px; }
@keyframes up { from { transform: translateY(100%); } }
.sheet__panel { transition: transform .22s cubic-bezier(.3, .7, .4, 1); will-change: transform; }
.sheet.closing .sheet__panel { transform: translateY(100%) !important; transition: transform .22s ease-in; }
.sheet.closing .sheet__backdrop { opacity: 0; transition: opacity .22s ease; }
.sheet__backdrop { transition: opacity .22s ease; }

/* карточка блюда в окне */
.sheet__panel--dish { padding: 0; display: flex; flex-direction: column; }
.ds__media { position: relative; flex: none; }
.ds__media img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: var(--r-card) var(--r-card) 0 0; background: var(--card-2); }
.ds__grab { position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .55); }
.ds__close { position: absolute; top: 12px; right: 12px; background: rgba(15, 12, 10, .7); color: #fff; }
.ds__body { padding: 14px 16px 8px; flex: 1; }
.ds__name { margin: 0; font-size: var(--fs-2xl); font-weight: 800; line-height: 1.2; letter-spacing: -.02em; }
.ds__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 6px; }
.ds__price { font-size: var(--fs-lg); font-weight: 800; }
.ds__price.is-sale { color: var(--accent); }
.ds__old { color: var(--muted); font-size: var(--fs-sm); }
.ds__old:empty { display: none; }
.ds__w { margin-top: 4px; font-size: var(--fs-lg); font-weight: 700; color: var(--gold); }
.ds__comp { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.ds__comp-t { margin: 0 0 4px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ds__nuts { padding: 2px 8px; border-radius: var(--r-pill); background: rgba(255, 177, 92, .14); color: var(--gold); font-size: var(--fs-2xs); font-weight: 700; text-transform: none; letter-spacing: 0; }
.ds__desc { margin: 0; font-size: var(--fs-s); line-height: 1.45; color: #d9cec4; }
#dsOpts { margin-top: 14px; }
#dsOpts .opt-group { border: 0; padding: 0; margin: 0 0 14px; }
.ds__bar {
  position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center;
  padding: 10px 16px calc(12px + var(--safe-b)); background: var(--bg-2); border-top: 1px solid var(--line);
}
.ds__cnt { flex: none; display: flex; align-items: center; height: 52px; border-radius: var(--r-btn); background: var(--card-2); }
.ds__cnt .ctl__b { width: 44px; height: 52px; }
.ds__cnt .ctl__b:disabled { opacity: .35; cursor: default; }
.ds__cnt .ctl__n { min-width: 20px; }
.ds__add { flex: 1; height: 52px; border: 0; border-radius: var(--r-btn); background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: var(--fs-base); font-variant-numeric: tabular-nums; transition: transform .12s ease; }
.ds__add:active { transform: scale(.98); }
.card__name, .big__name { cursor: pointer; }
.big { cursor: pointer; }
@keyframes fade { from { opacity: 0; } }

.opt-group { margin: 4px 0 14px; }
.opt-group__t { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; font-weight: 700; }
.opt-row { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 14px; border-radius: var(--r-field); background: var(--card); margin-bottom: 6px; cursor: pointer; }
.opt-row input { width: 20px; height: 20px; accent-color: var(--accent); }
.opt-row__p { margin-left: auto; color: var(--gold); font-weight: 700; }

/* «С этим часто берут» */
.ups { margin: 6px 0 4px; }
.ups__t { margin: 0 0 10px; font-size: var(--fs-base); font-weight: 800; letter-spacing: -.01em; }
.ups__row { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; overscroll-behavior-x: contain; }
.ups__row::-webkit-scrollbar { display: none; }
.mini { flex: 0 0 112px; min-width: 0; cursor: pointer; }
.mini__img { width: 112px; height: 112px; border-radius: var(--r-btn); object-fit: cover; background: var(--card-2); }
.mini__name { margin-top: 6px; font-size: var(--fs-xs); line-height: 1.25; height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.mini__price { font-weight: 800; font-size: var(--fs-s); }
.mini__add { position: relative; width: 32px; height: 32px; border: 0; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--accent); color: #fff; transition: transform .12s ease; }
.mini__add::after { content: ""; position: absolute; inset: -6px; }
.mini__add svg { width: 16px; height: 16px; }
.mini__add:active { transform: scale(.88); }
.mini.is-added .mini__add { background: var(--card-2); color: var(--ok); }
.mini.is-added .mini__add svg path { d: path("M5 12.5 10 17l9-10"); }
.ds__body .ups { margin-top: 18px; }

/* корзина */
.cart { list-style: none; margin: 0 0 14px; padding: 0; }
.cart__item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cart__img { width: 52px; height: 52px; border-radius: var(--r-field); object-fit: cover; flex: none; background: var(--card); }
.cart__info { flex: 1; min-width: 0; }
.cart__name { font-weight: 700; font-size: var(--fs-sm); line-height: 1.25; cursor: pointer; }
.cart__img { cursor: pointer; }
.cart__extra { font-size: var(--fs-xs); color: var(--muted); }
.cart__price { font-weight: 800; font-size: var(--fs-sm); }
.cart .ctl__cnt { display: inline-flex; animation: none; }
.cart__empty { color: var(--muted); padding: 20px 0; text-align: center; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: var(--r-btn); background: var(--card); margin-bottom: 14px; }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; }
.seg__opt span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 4px 8px; border-radius: var(--r-sm); font-weight: 700; font-size: var(--fs-sm); line-height: 1.2; color: var(--muted); transition: background-color .2s ease, color .2s ease; cursor: pointer; }
.seg__opt input:checked + span { background: var(--accent); color: var(--on-accent); }
.seg__opt input:focus-visible + span { outline: 2px solid var(--gold); }

.field { margin-bottom: 10px; }
.field label { display: block; font-size: var(--fs-s); font-weight: 700; margin-bottom: 5px; }
.field .opt { font-weight: 500; color: var(--muted); }
.field input, .field textarea, .field select {
  width: 100%; min-height: 48px; padding: 11px 14px; border-radius: var(--r-field); font: inherit; font-size: var(--fs-base);
  background: var(--card); color: var(--text); border: var(--bd); transition: border-color .15s ease;
}
.field textarea { resize: vertical; min-height: 66px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.field input[aria-invalid="true"] { border-color: var(--err); }
::placeholder { color: #7d6f64; }

.totals { margin: 14px 0 6px; padding: 12px 14px; border-radius: var(--r-field); background: var(--card); }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; }
.totals dt { color: var(--muted); }
.totals dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.totals__sum { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 9px !important; }
.totals__sum dt { color: var(--text); font-weight: 800; }
.totals__sum dd { font-size: var(--fs-xl); font-weight: 800; }
.hint { margin: 8px 0; color: var(--gold); font-size: var(--fs-sm); font-weight: 600; }
.hint:empty, .err:empty { display: none; }
.err { margin: 8px 0; color: var(--err); font-weight: 600; font-size: var(--fs-sm); }

.btn-main {
  width: 100%; min-height: 54px; border: 0; border-radius: var(--r-btn); margin-top: var(--sp-2);
  font-weight: 800; font-size: var(--fs-base); color: var(--on-accent); background: var(--accent);
  transition: transform .12s ease, opacity .2s ease;
}
.btn-main:active { transform: scale(.98); }
.btn-main:disabled { cursor: not-allowed; background: var(--card-2); color: var(--muted); }

.done { text-align: center; padding: 26px 8px 8px; }
.done__icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: var(--r-pill); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.done__icon svg { width: 38px; height: 38px; }
.done__title { margin: 0 0 6px; font-size: var(--fs-3xl); font-weight: 800; letter-spacing: -.02em; }
.done__text { margin: 0; font-size: var(--fs-base); }
.done__num { color: var(--muted); margin: 8px 0 18px; }

/* ---------- Корзина: боковая панель справа ---------- */
.side {
  position: absolute; top: 0; right: 0; bottom: 0; width: 85%; max-width: 440px;
  display: flex; flex-direction: column; background: var(--bg-2); border-radius: var(--r-card) 0 0 var(--r-card);
  animation: side-in .28s cubic-bezier(.2, .8, .2, 1);
  transition: transform .22s cubic-bezier(.3, .7, .4, 1); will-change: transform;
}
.sheet.closing .side { transform: translateX(100%) !important; transition: transform .22s ease-in; }
@keyframes side-in { from { transform: translateX(100%); } }
.side__head { flex: none; display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
.side__title { margin: 0; flex: 1; font-size: var(--fs-xl); font-weight: 800; letter-spacing: -.02em; }
.side__head .icon-btn:first-child { margin-left: -6px; }
.side__scroll { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; }
.side__foot { flex: none; padding: 10px 16px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--bg-2); }
.side__foot .hint { margin: 2px 0 0; font-size: var(--fs-s); }
.side__foot .btn-main { margin-top: 8px; }
.side__sum { display: flex; justify-content: space-between; align-items: baseline; font-weight: 800; }
.side__sum b { font-size: var(--fs-xl); font-variant-numeric: tabular-nums; }
.side .cart { margin-bottom: 16px; }
.side .cart__item { padding: 12px 0; }
.side .cart__img { width: 64px; height: 64px; }
.side .ups__row { margin: 0 -16px; }
.terms { margin-top: 16px; padding: 12px 14px; border-radius: var(--r-field); background: var(--card); font-size: var(--fs-s); color: var(--muted); }
.terms__t { color: var(--text); font-weight: 800; font-size: var(--fs-s); margin-bottom: 4px; }
.terms p { margin: 0; line-height: 1.4; }
.terms b { color: var(--text); }
#checkoutView { padding-top: 4px; }

/* скидка пенсионерам */
.pens-ban { max-width: var(--wrap); margin: 8px auto 0; padding: 0 16px; display: flex; }
.pens-ban > span { flex: none; display: grid; place-items: center; width: 40px; border-radius: 12px 0 0 12px; background: #ffd23f; font-size: var(--fs-xl); }
.pens-ban p { flex: 1; margin: 0; padding: 8px 12px; border-radius: 0 12px 12px 0; background: rgba(255, 210, 63, .12); border: 1px solid rgba(255, 210, 63, .35); border-left: 0; font-size: var(--fs-s); line-height: 1.35; }
.pens-ban b { color: #ffd23f; }
.pens-chk { display: flex; gap: 12px; align-items: center; min-height: 56px; margin: 4px 0 12px; padding: 10px 14px; border-radius: var(--r-field); background: var(--card); border: var(--bd); cursor: pointer; font-weight: 700; font-size: var(--fs-md); line-height: 1.3; }
.pens-chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pens-chk small { display: block; font-weight: 600; font-size: var(--fs-xs); color: var(--muted); }
.pens-chk__box { flex: none; width: 24px; height: 24px; border-radius: var(--r-sm); border: 2px solid var(--muted); display: grid; place-items: center; }
.pens-chk input:checked + .pens-chk__box { background: #ffd23f; border-color: #ffd23f; }
.pens-chk input:checked + .pens-chk__box::after { content: ""; width: 6px; height: 11px; border: solid #1a1200; border-width: 0 3px 3px 0; transform: translateY(-1px) rotate(45deg); }
.pens-chk:has(input:checked) { border-color: rgba(255, 210, 63, .6); }
.pens-chk input:focus-visible + .pens-chk__box { outline: 2px solid var(--gold); outline-offset: 2px; }
.totals__disc dd { color: #ffd23f; font-weight: 800; }

/* условия по зонам в корзине */
.terms__z { margin: 0 0 6px; padding-left: 18px; }
.terms__z li { margin: 3px 0; }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg--3 .seg__opt span { font-size: var(--fs-s); padding: 4px 2px; white-space: nowrap; letter-spacing: -.01em; }
.co-addr { margin-bottom: 12px; }
.co-addr__l { font-size: var(--fs-s); font-weight: 700; margin-bottom: 5px; }
.co-addr__b { width: 100%; min-height: 56px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 10px; padding: 8px 14px; border-radius: var(--r-field); border: var(--bd); background: var(--card); color: var(--text); text-align: left; font: inherit; }
.co-addr__t { font-weight: 700; font-size: var(--fs-md); line-height: 1.3; }
.co-addr__b small { grid-column: 1; font-size: var(--fs-xs); color: var(--muted); }
.co-addr__b small:empty { display: none; }
.co-addr__b small.bad, .aitem small.bad { color: var(--err); font-weight: 700; }
.co-addr__ch { grid-column: 2; grid-row: 1 / span 2; color: var(--gold); font-weight: 700; font-size: var(--fs-s); }

/* мои адреса */
.addr-note { margin: 0 0 10px; color: var(--muted); font-size: var(--fs-s); }
.alist { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.aitem { border-radius: var(--r-btn); background: var(--card); border: var(--bd); }
.aitem.is-sel { border-color: var(--accent); }
.aitem__pick { width: 100%; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px 6px; border: 0; background: none; color: var(--text); text-align: left; font: inherit; }
.aitem__r { flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: var(--r-pill); border: 2px solid var(--muted); }
.aitem.is-sel .aitem__r { border: 7px solid var(--accent); }
.aitem__t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.aitem__t b { font-size: var(--fs-md); }
.aitem__a { font-size: var(--fs-sm); line-height: 1.3; }
.aitem__t small { font-size: var(--fs-xs); color: var(--muted); }
.aitem__act { display: flex; gap: 6px; padding: 0 10px 10px 46px; }
.aitem__btn { min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: var(--card-2); color: var(--text); font-weight: 700; font-size: var(--fs-s); }
.aitem__btn--del { color: var(--err); }
.btn-ghost { width: 100%; min-height: 52px; border: 1px dashed rgba(255, 177, 92, .45); border-radius: var(--r-btn); background: none; color: var(--gold); font-weight: 800; font-size: var(--fs-md); }
.addr-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.addr-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.alabels { display: flex; gap: 6px; margin-bottom: 6px; }
.alabel { min-height: 40px; padding: 0 14px; border-radius: var(--r-pill); border: var(--bd); background: var(--card); color: var(--text); font-weight: 700; font-size: var(--fs-sm); }
.alabel[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--gold); }
.azones { border: 0; padding: 0; margin: 4px 0 8px; display: grid; gap: 6px; }
.azones legend { font-size: var(--fs-s); font-weight: 700; margin-bottom: 6px; padding: 0; }
.azone { position: relative; display: block; cursor: pointer; }
.azone input { position: absolute; opacity: 0; inset: 0; }
.azone__b { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px 11px 44px; border-radius: var(--r-field); border: var(--bd); background: var(--card); position: relative; }
.azone__b::before { content: ""; position: absolute; left: 14px; top: 13px; width: 20px; height: 20px; border-radius: var(--r-pill); border: 2px solid var(--muted); box-sizing: border-box; }
.azone input:checked + .azone__b { border-color: var(--accent); background: var(--accent-soft); }
.azone input:checked + .azone__b::before { border: 6px solid var(--accent); }
.azone input:focus-visible + .azone__b { outline: 2px solid var(--gold); }
.azone__b small { color: var(--muted); font-size: var(--fs-xs); }
#addrSheet .sheet__head .icon-btn:first-child { margin-right: 4px; }
#addrSheet .sheet__title, #bookSheet .sheet__title { margin: 0; flex: 1; }
#addrSheet .sheet__head, #bookSheet .sheet__head { margin-bottom: 10px; gap: 8px; }

/* бронь */
.bguests { display: inline-flex; align-items: center; height: 48px; border-radius: var(--r-field); background: var(--card); }
.bguests .ctl__b { width: 52px; height: 48px; font-size: var(--fs-2xl); }
.bguests .ctl__b:disabled { opacity: .35; }
.bguests output { min-width: 36px; text-align: center; font-weight: 800; font-size: var(--fs-lg); }
.field input[type="date"], .field input[type="time"] { -webkit-appearance: none; appearance: none; color-scheme: dark; }

/* пока открыто окно, страница зафиксирована (позиция восстанавливается в JS) */
body.locked { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }

/* ---------- Шире телефона ---------- */
@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 14px; }
  .big { flex-basis: 320px; }
}
/* сетка: 2 колонки на телефоне, 3 на планшете, 4 на ПК */
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-4); } }
@media (min-width: 1000px) {
  .sheet__panel { bottom: auto; top: 50%; transform: translateY(-50%); border-radius: var(--r-card); animation: fade .2s ease; }
  .sheet.closing .sheet__panel { transform: translateY(-50%) !important; opacity: 0; transition: opacity .2s ease; }
  .sheet__handle { display: none; }
}
@media (max-width: 350px) {
  .btn-call span { display: none; }
  .btn-call { width: 36px; padding: 0; justify-content: center; }
}
/* ---------- «вау»-эффекты (только transform/opacity) ---------- */
/* скелет-мерцание под фото, пока оно грузится: пустое фото прозрачно, под ним бежит блик */
.card__media { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-card); background: var(--card-2); }
.ds__media { isolation: isolate; overflow: hidden; border-radius: var(--r-card) var(--r-card) 0 0; background: var(--card-2); }
.card__img, .ds__media img { background: transparent; }
.card__media.near:not(.ld)::before, .big.near:not(.ld) > .shim, .ds__media:not(.ld)::before {
  content: ""; position: absolute; z-index: -3; inset: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .08) 50%, transparent 80%);
  transform: translateX(-100%); animation: shimmer 1.3s ease-in-out infinite;
}
.card__media .card__img { position: relative; z-index: -1; }
.ds__media img { position: relative; z-index: -1; }
@keyframes shimmer { to { transform: translateX(100%); } }
.shim { display: none; }
.big.near:not(.ld) > .shim { display: block; }

/* карточки выплывают снизу при первой прокрутке */
.card.pre { opacity: 0; transform: translateY(18px); }
.card.pre.in { opacity: 1; transform: none; transition: opacity .45s ease, transform .5s cubic-bezier(.2, .7, .3, 1); }

/* искры над каруселью */
.company { position: relative; }
.embers { position: absolute; z-index: 2; left: 0; right: 0; top: 0; width: 100%; height: 100%; pointer-events: none; }

/* пар над горячим блюдом в окне блюда */
.steam { display: none; position: absolute; z-index: 0; left: 15%; right: 15%; top: 4%; height: 70%; pointer-events: none; }
.ds__media.is-hot.ld .steam { display: block; }
.steam i { position: absolute; bottom: 0; width: 44%; height: 70%; border-radius: 50%; opacity: 0;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .26), rgba(255, 255, 255, .09) 55%, transparent);
  animation: steam 4.2s ease-in-out infinite; will-change: transform, opacity; }
.steam i:nth-child(1) { left: 6%; }
.steam i:nth-child(2) { left: 30%; animation-delay: 1.4s; }
.steam i:nth-child(3) { left: 52%; animation-delay: 2.8s; }
@keyframes steam {
  0% { transform: translateY(20%) scale(.6, .7); opacity: 0; }
  30% { opacity: .9; }
  100% { transform: translateY(-60%) scale(1.25, 1.6); opacity: 0; }
}

/* искорки от кнопки и всплывашка «Добавлено» */
.spark { position: fixed; z-index: 90; width: 7px; height: 7px; border-radius: var(--r-pill); pointer-events: none;
  background: radial-gradient(circle, #fff6c8 0 30%, #ffb15c 55%, rgba(255, 122, 26, 0) 72%); }
.added { position: fixed; z-index: 95; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); padding: 10px 18px; border-radius: var(--r-pill);
  background: rgba(30, 22, 16, .96); border: var(--bd-ac); color: var(--text); font-weight: 800; font-size: var(--fs-md);
  box-shadow: var(--shadow-2); pointer-events: none; opacity: 0; transform: translate(-50%, 16px) scale(.92);
  transition: opacity .2s ease, transform .25s cubic-bezier(.2, .8, .3, 1.3); }
.added.on { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* блик на «Оформить заказ» раз в 4 с */
#toCheckout { position: relative; overflow: hidden; isolation: isolate; }
#toCheckout:not(:disabled)::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: 0; width: 45%; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: translateX(-120%) skewX(-18deg); animation: shine 4s ease-in-out 1s infinite;
}
@keyframes shine { 0% { transform: translateX(-120%) skewX(-18deg); } 22%, 100% { transform: translateX(330%) skewX(-18deg); } }

/* «Спасибо!»: мотоцикл уезжает с дымком, галочка рисуется */
.done__road { position: relative; height: 34px; margin: 0 auto 6px; max-width: 280px; overflow: hidden; }
.done__moto { position: absolute; left: calc(50% - 16px); top: 2px; font-size: var(--fs-3xl); line-height: 30px; opacity: 0; }
.done__road .puff { position: absolute; left: calc(50% - 10px); top: 14px; width: 14px; height: 14px; border-radius: var(--r-pill); background: rgba(220, 210, 200, .5); opacity: 0; }
.done.play .done__moto { animation: moto-go 1.8s cubic-bezier(.5, 0, .75, .3) .5s both; }
.done.play .puff { animation: puff 1.1s ease-out both; }
.done.play .puff:nth-of-type(1) { animation-delay: .75s; }
.done.play .puff:nth-of-type(2) { animation-delay: 1s; }
.done.play .puff:nth-of-type(3) { animation-delay: 1.25s; }
@keyframes moto-go { 0% { opacity: 1; transform: translateX(-60px); } 25% { opacity: 1; transform: translateX(0); } 100% { opacity: 1; transform: translateX(240px); } }
@keyframes puff { 0% { opacity: .9; transform: translate(-6px, 0) scale(.4); } 100% { opacity: 0; transform: translate(-40px, -14px) scale(2.2); } }
.done__check { stroke-dasharray: 1; stroke-dashoffset: 0; }
.done.play .done__check { animation: draw .55s cubic-bezier(.6, 0, .3, 1) .15s both; }
.done.play .done__icon { animation: pop .35s ease both; }
@keyframes draw { from { stroke-dashoffset: 1; } }

/* слабые телефоны и «уменьшить движение»: всё выключено */
.lite .card.pre { opacity: 1; transform: none; }
.lite .embers, .lite .spark, .lite .done__road { display: none; }
.lite .card__media::before, .lite .shim, .lite .ds__media::before, .lite #toCheckout::after, .lite .steam { animation: none !important; display: none !important; }
.lite .done.play .done__check, .lite .done.play .done__icon { animation: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}



/* контакты: сохранённые имя и телефон */
.contact { display: flex; align-items: center; gap: 12px; min-height: 60px; margin-bottom: 12px; padding: 10px 14px; border-radius: var(--r-field); background: var(--card); border: var(--bd); }
.contact__ic { font-size: var(--fs-xl); }
.contact__i { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.3; }
.contact__i b { font-size: var(--fs-md); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.contact__i span { font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.contact__ch { flex: none; min-height: 44px; padding: 0 6px; border: 0; background: none; color: var(--gold); font-weight: 800; font-size: var(--fs-sm); }
.arcpt { margin: 2px 0 12px; border-radius: var(--r-field); border: var(--bd); background: var(--card); }
.arcpt summary { min-height: 48px; display: flex; align-items: center; gap: 6px; padding: 0 14px; font-weight: 700; font-size: var(--fs-sm); cursor: pointer; list-style: none; }
.arcpt summary::-webkit-details-marker { display: none; }
.arcpt summary::before { content: "+"; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-pill); background: var(--card-2); color: var(--gold); font-weight: 800; }
.arcpt[open] summary::before { content: "−"; }
.arcpt .field { padding: 0 14px; }
/* условия доставки в баннере: место под 2 строки заранее — шрифт догрузится без сдвига */

/* разделы меню ниже экрана браузер не считает при загрузке; при первом переходе по категории считаем всё (.cv-all), чтобы якорь попал точно (WebKit) */
/* в WebKit (iPhone/iPad/Mac, класс .emo-l) не включаем: там с ним не долистать до подвала */
html:not(.emo-l) .cat ~ .cat ~ .cat { content-visibility: auto; contain-intrinsic-size: auto 1100px; }
html.cv-all .cat ~ .cat ~ .cat { content-visibility: visible; }

/* строка разработчика в подвале и её панель — без анимаций */
.dev { margin: 18px 0 0; font-size: var(--fs-xs); line-height: 1.5; color: var(--muted); opacity: .75; }
.dev__link { padding: 6px 2px; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.dev__text { margin: 0 0 16px; color: var(--muted); font-size: var(--fs-md); line-height: 1.45; }
.dev__btns { display: grid; gap: 8px; padding-bottom: env(safe-area-inset-bottom); }
.dev__b { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: var(--r-btn); background: var(--card-2); color: var(--text); font-weight: 800; font-size: var(--fs-md); text-decoration: none; }
.dev__b--wa { background: #1f9d55; color: #fff; }
.dev__b--tg { background: #2a8bd6; color: #fff; }
.sheet--still, .sheet--still *, .sheet--still .sheet__panel, .sheet--still .sheet__backdrop { transition: none !important; animation: none !important; }

/* ---------- баннер-заголовок категории ---------- */
.cban { position: relative; isolation: isolate; overflow: hidden; height: 110px; margin: 0 0 14px; padding: 0 18px 0 22px;
  display: flex; flex-direction: column; justify-content: center; gap: 4px; border-radius: var(--r-card); background: var(--card-2); font-size: inherit; }
.cban::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ac); }
.cban::after { content: ""; position: absolute; z-index: -1; inset: 0;
  background: linear-gradient(90deg, rgba(12, 9, 7, .97) 0%, rgba(12, 9, 7, .9) 38%, rgba(12, 9, 7, .35) 72%, rgba(12, 9, 7, .1) 100%); }
.cban__img { position: absolute; z-index: -2; right: 0; top: 0; width: 72%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.cban__t { margin: 0; display: flex; align-items: center; gap: 10px; font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.cban__e { font-size: var(--fs-2xl); line-height: 1; }
.cban__n { padding-left: 36px; font-size: var(--fs-s); font-weight: 700; color: rgba(255, 255, 255, .72); }
@media (min-width: 900px) {
  .cban { height: 140px; padding-left: 30px; }
  .cban__t { font-size: var(--fs-3xl); }
  .cban__e { font-size: var(--fs-3xl); }
  .cban__n { padding-left: 42px; font-size: var(--fs-sm); }
  .cban__img { width: 60%; }
}
.chip__e { margin-right: 6px; }

/* ---------- слайдер под адресом: условия + скидка пенсионерам (56 px) ---------- */
.psl { max-width: var(--wrap); margin: 12px auto 0; padding: 0 16px; }
.psl__track { display: flex; height: 56px; border-radius: var(--r-btn); overflow: hidden; border: var(--bd-ac); background: var(--bg-2); }
.psl__s { position: relative; flex: 0 0 100%; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  transform: translateX(calc(var(--i, 0) * -100%)); transition: transform .45s cubic-bezier(.3, .7, .2, 1); }
.psl__s p { margin: 0; font-size: var(--fs-xs); line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.psl__s b { color: var(--text); font-weight: 700; }
.psl__s--del { background: linear-gradient(90deg, rgba(255, 122, 26, .14), rgba(255, 122, 26, .03)); padding-bottom: 12px; }
.psl__s--pens { background: rgba(255, 210, 63, .1); }
.psl__s--pens b { color: #ffd23f; }
.psl__ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: var(--r-sm); background: #ffd23f; font-size: var(--fs-xl); }
.psl__dots { display: flex; justify-content: center; gap: 6px; height: 14px; align-items: center; }
.psl__dot { width: 18px; height: 14px; padding: 0; border: 0; background: none; position: relative; }
.psl__dot::after { content: ""; position: absolute; left: 6px; top: 4px; width: 6px; height: 6px; border-radius: var(--r-pill); background: var(--muted); opacity: .45; }
.psl__dot[aria-selected="true"]::after { background: var(--accent); opacity: 1; }
/* дорожка для мотоцикла — отдельной полосой внизу, под текстом */
.road { position: absolute; left: 0; right: 0; bottom: 0; height: 12px; overflow: hidden; pointer-events: none;
  background: linear-gradient(transparent 10px, rgba(255, 177, 92, .18) 10px); }
.road::after { content: ""; position: absolute; left: 0; right: 0; bottom: 1px; height: 0; border-top: 1px dashed rgba(255, 177, 92, .25); }
.moto { position: absolute; left: 0; bottom: 0; font-size: var(--fs-2xs); line-height: 12px; animation: ride 9s linear infinite; will-change: transform; }
.moto i, .done__moto i { display: inline-block; font-style: normal; }
/* эмодзи 🛵 на разных телефонах смотрит в разные стороны: JS ставит .moto-flip, если он смотрит влево */
.moto-flip .moto i, .moto-flip .done__moto i { transform: scaleX(-1); }
@keyframes ride { from { transform: translateX(-20px); } to { transform: translateX(110vw); } }
@media (min-width: 1232px) { @keyframes ride { from { transform: translateX(-20px); } to { transform: translateX(1200px); } } }

/* ---------- минималистичный верх (как в приложениях доставки) ---------- */
.brand__name { font-size: var(--fs-lg); }
.btn-call, body .hcart { height: 40px; }
.btn-call { width: 40px; padding: 0; justify-content: center; border-radius: var(--r-pill); background: var(--card-2); color: var(--text); border: 0; }
.btn-call svg { width: 18px; height: 18px; }
body:not(.has-cart) .hcart { width: 40px; }
.top__in { gap: 8px; }
/* одна строка-кнопка: способ + адрес */
.mbtn { display: flex; align-items: center; gap: 8px; width: calc(100% - 32px); max-width: 1048px; height: 44px; margin: 12px auto 0; padding: 0 12px;
  border: 0; border-radius: var(--r-btn); background: var(--card); color: var(--text); font: inherit; text-align: left; }
.mbtn__ic { flex: none; font-size: var(--fs-lg); }
.mbtn__t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: var(--fs-sm); }
.mbtn__t b { font-weight: 800; }
.mbtn__dot { color: var(--muted); }
.mbtn:not(.is-set) #maddrT { color: var(--gold); font-weight: 700; }
.mbtn > svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
#addrListView .mseg { margin-bottom: 14px; }
.addr-h { margin: 0 0 4px; font-size: var(--fs-base); font-weight: 800; }
.mpane { display: grid; gap: 10px; }
.mpane__t { margin: 4px 0; font-size: var(--fs-md); line-height: 1.45; color: var(--muted); }
.mpane__t b { color: var(--text); }
.mpane__b { display: flex; align-items: center; justify-content: center; text-decoration: none; }
/* слайдер 48 px: мелкий текст, точки справа */
.psl { position: relative; }
.psl__track { height: 48px; border-radius: var(--r-field); }
.psl__s { padding: 0 34px 0 12px; gap: 8px; }
.psl__s p { font-size: var(--fs-xs); line-height: 1.3; }
.psl__s--del { padding-bottom: 8px; }
.psl__ic { width: 28px; height: 28px; font-size: var(--fs-base); border-radius: var(--r-sm); }
.psl__dots { position: absolute; right: 22px; top: 0; height: 48px; flex-direction: column; gap: 0; justify-content: center; }
.psl__dot { width: 20px; height: 14px; }
.psl__dot::after { left: 7px; top: 4px; }
.road { height: 9px; background: linear-gradient(transparent 7px, rgba(255, 177, 92, .16) 7px); }
.moto { font-size: 9px; line-height: 9px; }
/* категории */
.cats__in { padding-top: 6px; padding-bottom: 6px; }
.cats { margin-top: 12px; }
.cat { padding-top: 24px; }
.company { padding-top: 16px; }
.cat__title--plain { margin: 0 0 12px; font-size: var(--fs-xl); }
.cban { height: 80px; border-radius: var(--r-card); margin-bottom: 12px; }
.cban__t { font-size: var(--fs-xl); }
.cban__e { font-size: var(--fs-2xl); }
.cban__n { padding-left: 32px; font-size: var(--fs-xs); }
@media (min-width: 900px) {
  .cban { height: 100px; }
  .cban__t { font-size: var(--fs-2xl); }
  .cban__n { padding-left: 38px; }
}

/* строка условий доставки в итогах */
.totals .totals__dl { display: block; }
.totals__dl dd { margin: 0; font-size: var(--fs-xs); line-height: 1.4; color: var(--muted); text-align: left; font-weight: 500; }
.totals__dl b { color: var(--text); font-weight: 700; }

/* ---------- приложение (PWA) ---------- */
/* в установленном приложении нет адресной строки: шапка уходит под вырез — отступ safe-area */
.top { padding-top: env(safe-area-inset-top, 0px); }
.top__in { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
/* баннер «Установите приложение» — над шапкой, уезжает при прокрутке; без анимаций */
.pwa { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; padding-top: calc(8px + env(safe-area-inset-top, 0px));
  background: #1d1611; border-bottom: 1px solid var(--line); }
.pwa[hidden] { display: none; }
.has-pwa .top { padding-top: 0; }   /* баннер сверху в потоке (как у Додо) — шапку и корзину не закрывает */
.pwa__ic { flex: none; width: 40px; height: 40px; border-radius: var(--r-sm); }
.pwa__t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.pwa__t b { font-size: var(--fs-sm); }
.pwa__t span { font-size: var(--fs-xs); color: var(--muted); }
.pwa__go { flex: none; height: 36px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--accent); color: #fff; font-weight: 800; font-size: var(--fs-sm); }
.pwa__x { flex: none; width: 36px; height: 44px; border: 0; background: none; color: var(--muted); font-size: var(--fs-2xl); line-height: 1; }
.offline { position: sticky; top: 0; z-index: 40; padding: 8px 16px; padding-top: calc(8px + env(safe-area-inset-top, 0px)); background: #5a1e18; color: #ffd0c8; font-size: var(--fs-s); font-weight: 700; text-align: center; }
.offline[hidden] { display: none; }
/* подсказка для iPhone */
.ios-steps { margin: 0 0 8px; padding-left: 22px; display: grid; gap: 12px; font-size: var(--fs-md); line-height: 1.45; }
.ios-share { width: 22px; height: 22px; vertical-align: -5px; margin: 0 2px; }
.ios-plus { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: var(--r-sm); background: var(--card-2); font-size: var(--fs-sm); vertical-align: 1px; }
.ios-arrow { display: block; width: 40px; height: 60px; margin: 6px auto calc(4px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 768px) { .ios-arrow { transform: rotate(180deg); } } /* на iPad «Поделиться» сверху */

/* ---------- строка адреса «как у Додо» ---------- */
.mbtn { height: auto; min-height: 52px; padding: 6px 12px; align-items: center; }
.mbtn__ic { font-size: var(--fs-lg); }
.mbtn__t { display: flex; flex-direction: column; gap: 1px; }
.mbtn__a { font-size: var(--fs-md); font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #ffb15c;
  background: linear-gradient(90deg, #ffb15c 0%, #ffd23f 25%, #ff7a1a 50%, #ffd23f 75%, #ffb15c 100%); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* блик запускается после загрузки (вместе с угольками), чтобы не мешать первой отрисовке */
.fx-go .mbtn__a { animation: addr-shine 3s linear infinite; }
@keyframes addr-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
.fx-go .mbtn.is-set .mbtn__a { animation-duration: 6s; }
.mbtn__s { font-size: var(--fs-xs); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (prefers-reduced-motion: reduce) { .mbtn__a { animation: none; -webkit-text-fill-color: currentColor; background: none; } }
.lite .mbtn__a { animation: none; }
/* слайдер: бронь — кликабельный слайд */
.psl__s--book { border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; background: rgba(77, 163, 255, .08); }
.psl__ic--del, .psl__ic--book { background: var(--card-2); }
/* карта самовывоза */
.mmap { position: relative; height: 240px; border-radius: var(--r-card); overflow: hidden; background: var(--card-2); }
.mmap iframe { width: 100%; height: 100%; border: 0; display: block; }
.mpane__row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mpane__row .btn-main { margin: 0; }
.foot__book { margin: 12px 0 0; min-height: 44px; padding: 0 18px; border: var(--bd-ac); border-radius: var(--r-pill); background: var(--accent-soft); color: var(--gold); font-weight: 800; font-size: var(--fs-sm); }
.chip--about { color: var(--gold); }

/* без выделения текста и меню «Копировать» на баннерах, кнопках, карточках, категориях и в шапке; поля ввода — как обычно */
.top, .mbtn, .psl, .cats, .chip, .card, .big, .cban, button, .btn-main, .btn-ghost, .fab, .pwa, .sheet__head, .mseg, .seg {
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
input, textarea, select { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* баннеры слайдера — кнопки с лёгким нажатием */
button.psl__s { border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; width: 100%; }
button.psl__s:active { transform: translateX(calc(var(--i, 0) * -100%)) scale(.97); }
.psl__p { margin: 0; font-size: var(--fs-xs); line-height: 1.3; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.psl__p b { color: var(--text); font-weight: 700; }
.psl__s--pens .psl__p b { color: #ffd23f; }
/* панель скидки пенсионерам */
.pensx { text-align: center; padding: 4px 4px calc(8px + var(--safe-b)); }
.pensx__pct { font: 800 64px/1 var(--font); color: #ffd23f; margin: 4px 0 12px; }
.pensx__terms { margin: 0 0 12px; font-size: var(--fs-base); font-weight: 700; }
.pensx__how { margin: 0 0 10px; font-size: var(--fs-md); line-height: 1.5; color: #e3d8cc; text-align: left; background: var(--card-2); border-radius: var(--r-btn); padding: 12px 14px; }
.pensx__note { margin: 0 0 14px; font-size: var(--fs-s); color: var(--muted); }
/* бронь: блюда к приходу */
.bpre { margin: 4px 0 12px; }
.bpre small { display: block; font-size: var(--fs-xs); color: var(--muted); font-weight: 500; margin-top: 2px; }

.contact__del { display: block; margin: -4px 0 12px auto; padding: 6px 2px; min-height: 32px; border: 0; background: none; color: var(--muted); font: 600 13px var(--font); text-decoration: underline; text-underline-offset: 3px; }
.contact__del[hidden] { display: none; }

/* ---------- полировка под все устройства ---------- */
/* фокус с клавиатуры виден рамкой; мышью — без рамки */
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
/* наведение мышью — только там, где оно есть */
@media (hover: hover) and (pointer: fine) {
  .chip:hover { color: var(--text); }
  .btn-main:hover, .pwa__go:hover, .ctl__add:hover { filter: brightness(1.08); }
  .btn-ghost:hover, .mbtn:hover, .aitem__pick:hover { background-color: var(--card-2); }
  .card__name:hover { color: var(--gold); }
  .psl__s:hover { filter: brightness(1.1); }
}
/* длинные названия не ломают карточки */
.card__name, .big__name, .ds__title, .cban__t, .aitem__a { overflow-wrap: anywhere; hyphens: auto; }
/* окна по высоте видимой части экрана (без панелей браузера); вырез и нижняя полоска iPhone — через --safe-b и safe-area-inset-top */
.sheet__panel { max-height: 92dvh; }
/* крупный шрифт в настройках телефона: цена и кнопка не налезают друг на друга, суммы не рвутся */
.big__foot { flex-wrap: wrap; gap: var(--sp-2); }
.big__price, .card__price, .side__sum b, .totals b, .ds__add { white-space: nowrap; }
.side__sum { gap: var(--sp-3); }
.ds__add { height: auto; min-height: 52px; padding: var(--sp-1) var(--sp-3); line-height: 1.15; white-space: normal; }
