/* Шрифт Wix Madefor Display (переменный, 400–700) — со своего сервера */
@font-face {
  font-family: 'Wix Madefor Display'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/ui/fonts/wix-madefor-display-cyrillic.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Wix Madefor Display'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url(/ui/fonts/wix-madefor-display-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Фуджи QR-меню — по финальному макету Figma «WEB MENU» (шрифт Wix Madefor Display) */
:root {
  /* ══ Дизайн-токены гостевого меню «Фуджи» (docs/DESIGN_SYSTEM.md, часть 1) ══ */

  /* ── Цвет: бренд ── */
  --purple: #993CA6;          /* бренд: акценты, кнопки, активные состояния */
  --purple-dark: #7B2D88;     /* конец градиента баннера «Бизнес-ланч» */
  --purple-soft: #F5ECF6;     /* мягкая подложка бренда: пилюли, чипы, кнопки-счётчики */
  --purple-tint: #FDFBFD;
  --pink: #FF1FB1;
  --purple-rgb: 153, 60, 166; /* для rgba(var(--purple-rgb), .3) */

  /* ── Цвет: фоны и текст ── */
  --bg: #F9F9F9;              /* фон страницы */
  --card: #FFFFFF;            /* карточки, шторки */
  --white: #fff;              /* белый текст/иконки на тёмном и цветном */
  --ink: #292929;             /* основной текст */
  --muted: rgba(41, 41, 41, .5);
  --muted-2: #969696;
  --ink-60: rgba(41, 41, 41, .6);   /* вторичный текст */
  --ink-75: rgba(41, 41, 41, .75);  /* почти основной текст (подписи, суммы) */
  --ink-navy: #031928;        /* название позиции в корзине */
  --navy: #091027;            /* фирменный тёмно-синий (как в админке) */
  --ink-rgb: 41, 41, 41;
  --white-rgb: 255, 255, 255;
  --black-rgb: 0, 0, 0;

  /* ── Цвет: линии и нейтральные заливки ── */
  --line: #CBCBCB;
  --line-soft: rgba(150, 150, 150, .5);
  --line-rgb: 203, 203, 203;
  --gray-50: #F8F8F8;
  --gray-100: #F5F5F5;
  --gray-150: #F2F2F2;
  --gray-200: #EEE;
  --gray-300: #E5E5E5;        /* разделители списков */
  --gray-400: #D9D9D9;
  --gray-500: #B9B9B9;        /* выключенная кнопка */
  --gray-600: #7F7F7F;
  --gray-700: #555;

  /* ── Цвет: «сливовые» нейтральные (подложки лёнча, шторки) ── */
  --plum-50: #FAF8FB;
  --plum-100: #F0EAF1;
  --plum-200: #E4DCE6;
  --plum-250: #D6CCD9;
  --plum-300: #C9B5CD;
  --plum-500: #8E7A93;
  --plum-600: #6F5E75;
  --plum-50-rgb: 250, 248, 251;
  --purple-soft-rgb: 245, 236, 246;
  --removed-line: #e6e3ee;    /* снятая из заказа позиция */
  --removed-ink: #8a8696;

  /* ── Цвет: статусы ── */
  --ok: #4F7947;              /* ok: текст/иконка */
  --ok-soft: #F6FFEC;         /* ok: подложка */
  --warn-soft: #FFF3D6;       /* warn: подложка («готово») */
  --warn-ink: #9A6300;        /* warn: текст */
  --kitchen: #D25E20;         /* «готовится», остаток блюда */
  --kitchen-soft: #FFE8DB;
  --danger: #D8374B;          /* danger: сильный (ошибка, 18+) */
  --danger-50: #FDF1F2;
  --danger-100: #FDECEE;
  --danger-150: #FDE4E4;      /* danger: подложка статуса/тоста */
  --danger-200: #F1D4D8;
  --danger-250: #F5B5B5;
  --danger-400: #F35353;      /* кнопка «удалить» в строке корзины */
  --danger-500: #E5484D;
  --danger-ink: #710F0F;      /* danger: текст на подложке */
  --info-soft: #E5EFF6;       /* info: подложка */
  --info-ink: #002B4D;        /* info: текст */

  /* ── Цвет: метки блюд (совпадают с menu-admin/utils/menu.ts и tailwind tag-*) ── */
  --tag-mild-bg: #C7EA98;    --tag-mild-ink: #2B5D21;
  --tag-spicy-bg: #FFB9CA;   --tag-spicy-ink: #76122B;
  --tag-new-bg: #FFC9AC;     --tag-new-ink: #CB4700;
  --tag-hit-bg: #DFC0FF;     --tag-hit-ink: #6000C7;
  --tag-kids-bg: #FFCEEE;    --tag-kids-ink: #710049;
  --tag-gift-bg: #93C9EA;    --tag-gift-ink: #0C4F79;
  --tag-nosugar-bg: #B0D77D; --tag-nosugar-ink: #456E0F;

  /* ── Цвет: ИИ-шар ── */
  --orb-pink: #F4B6F2; --orb-violet: #9C9CF6; --orb-cyan: #A6F2F7; --orb-base: #C8C4F7;

  /* ── Шрифт ── */
  --font-sans: 'Wix Madefor Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --fs-micro: 8px; --fs-nano: 9px;
  --fs-3xs: 10px; --fs-2xs: 11px; --fs-xs: 12px; --fs-sm: 13px; --fs-base: 14px; --fs-md: 15px; --fs-lg: 16px;
  --fs-lg-plus: 17px; --fs-xl: 18px; --fs-2xl: 20px; --fs-2xl-plus: 22px; --fs-3xl: 24px; --fs-4xl: 32px;
  --fs-5xl: 40px; --fs-6xl: 48px; --fs-7xl: 64px; --fs-8xl: 96px;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600; --fw-bold: 700;
  --lh-none: 1; --lh-tight: 1.15; --lh-snug: 1.25; --lh-base: 1.3; --lh-relaxed: 1.35;

  /* ── Отступы (шаг 4px; --sp-N = N × 4px) ── */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 20px; --sp-6: 24px; --sp-8: 32px; --sp-10: 40px; --sp-12: 48px;

  /* ── Радиусы ── */
  --r-2: 2px; --r-6: 6px; --r-8: 8px; --r-10: 10px; --r-12: 12px; --r-14: 14px; --r-16: 16px;
  --r-18: 18px; --r-20: 20px; --r-24: 24px; --r-32: 32px; --r-pill: 48px; --r-full: 50%;

  /* ── Тени ── */
  --shadow: 0 0 14.2px rgba(0, 0, 0, .05);                 /* карточки */
  --shadow-lg: 0 10px 40px rgba(41, 41, 41, .12);          /* крупные поверхности */
  --shadow-pop: 0 6px 18px rgba(41, 41, 41, .12);
  --shadow-up: 0 -6px 18px rgba(41, 41, 41, .05);         /* нижняя панель */
  --shadow-bar-up: 0 -4px 14px rgba(0, 0, 0, .04);
  --shadow-bar-down: 0 4px 14px rgba(0, 0, 0, .04);       /* шапка при прокрутке */
  --shadow-cats: 0 6px 12px -8px rgba(0, 0, 0, .08);
  --shadow-brand: 0 8px 24px rgba(153, 60, 166, .25);
  --glow-inner: inset 0 0 8px 2px rgba(255, 255, 255, .45);
  --glow-tag: inset 0 0 4px rgba(255, 255, 255, .9);
  --ring-focus: 0 0 0 2px var(--purple);
  --ring-inset: inset 0 0 0 1px var(--purple);

  /* ── Слои (z-index) ── */
  --z-raise: 1; --z-above: 2; --z-top: 3; --z-chips: 15; --z-sticky: 20; --z-float: 29; --z-nav: 30;
  --z-sheet: 50; --z-modal: 80; --z-toast: 90;

  /* ── Анимации ── */
  --dur-fast: .15s; --dur-base: .2s; --dur-slow: .3s;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-pop: cubic-bezier(.2, .9, .3, 1.4);

  /* ── Служебные ── */
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --nav-h: 92px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip; }
body {
  font-family: var(--font-sans);
  font-size: var(--fs-base); line-height: normal; -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; }
.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; position: relative; }
.boot { min-height: 100dvh; display: grid; place-items: center; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
html { scroll-behavior: smooth; }

/* ── AI-шар (загрузка, отзыв) ───────────────────────────── */
.orb {
  position: relative; border-radius: var(--r-full); flex-shrink: 0;
  background: radial-gradient(circle at 30% 30%, var(--orb-pink) 0%, transparent 55%), radial-gradient(circle at 72% 35%, var(--orb-violet) 0%, transparent 55%),
    radial-gradient(circle at 55% 78%, var(--orb-cyan) 0%, transparent 60%), var(--orb-base);
  filter: blur(6px) saturate(1.1); animation: orb-spin 9s linear infinite, orb-breathe 4s ease-in-out infinite;
}
.orb--md { width: 100px; height: 100px; }
.orb--sm { width: 60px; height: 60px; filter: blur(3px); }
.ai-orb { width: 128px; height: 128px; object-fit: contain; animation: orb-breathe 4s ease-in-out infinite; }
.ai-orb--md { width: 96px; height: 96px; margin: 0 auto var(--sp-5); }
@keyframes orb-spin { to { transform: rotate(360deg); } }
@keyframes orb-breathe { 50% { scale: 1.06; } }

/* ── Шапка ──────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: var(--z-sticky); display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: calc(14px + var(--safe-t)) var(--sp-4) var(--sp-3); background: var(--bg);
}
.topbar__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.topbar__rest { display: flex; align-items: center; gap: 6px; max-width: 100%; font-size: var(--fs-base); font-weight: var(--fw-medium); text-align: left; }
.topbar__rest span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar__rest img { width: 16px; height: 16px; flex-shrink: 0; }
.topbar__table { font-size: var(--fs-base); font-weight: var(--fw-medium); text-align: left; }
.status-pill {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 var(--sp-3); border-radius: var(--r-20); flex: 0 1 auto; min-width: 0;
  font-size: var(--fs-3xs); font-weight: var(--fw-medium); letter-spacing: -.2px; white-space: nowrap;
  background: var(--purple-soft); color: var(--purple);
}
.status-pill img { width: 16px; height: 16px; flex-shrink: 0; object-fit: contain; }
.status-pill span { overflow: hidden; text-overflow: ellipsis; }
.status-pill[data-tone="info"] { background: var(--info-soft); color: var(--info-ink); }
.status-pill[data-tone="cooking"] { background: var(--kitchen-soft); color: var(--kitchen); }
.status-pill[data-tone="done"] { background: var(--ok-soft); color: var(--ok); }
.status-pill[data-tone="error"] { background: var(--danger-150); color: var(--danger-ink); }
.back-btn {
  flex-shrink: 0; width: 36px; height: 36px; margin-left: -6px; border-radius: var(--r-full); display: grid; place-items: center; color: var(--ink);
}
.back-btn svg { width: 22px; height: 22px; }

/* ── Экран ──────────────────────────────────────────────── */
.screen { padding: 0 var(--sp-2) calc(var(--nav-h) + var(--sp-6) + var(--safe-b)); }
.screen--center { min-height: calc(100svh - 64px); display: flex; flex-direction: column; }
.screen-enter { animation: screen-in .28s var(--ease-out) both; }
@keyframes screen-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── Нижняя панель ──────────────────────────────────────── */
.nav {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: var(--z-nav); width: 100%; max-width: 480px;
  display: flex; justify-content: space-between; padding: var(--sp-3) var(--sp-5) calc(18px + var(--safe-b));
  background: var(--bg); border-top: 1px solid rgba(var(--line-rgb), .3);
  transform: translateX(-50%) translateZ(0);
}
.nav__item { width: 66px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.nav__icon {
  position: relative; width: 66px; height: 32px; border-radius: var(--r-pill); display: grid; place-items: center;
  transition: background-color var(--dur-base), box-shadow var(--dur-base);
}
.nav__icon img { width: 20px; height: 20px; object-fit: contain; }
.nav__icon .nav__orb { width: 26px; height: 26px; }
.nav__label { font-size: var(--fs-3xs); color: rgba(var(--black-rgb), .75); white-space: nowrap; }
.nav__item.is-active .nav__icon { background: var(--purple); box-shadow: var(--glow-inner); }
.nav__item.is-active .nav__icon--ai { background: rgba(var(--purple-rgb), .1); box-shadow: var(--ring-inset); }
.badge {
  position: absolute; top: -4px; left: 38px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: var(--r-8);
  background: var(--purple); color: var(--white); font-size: var(--fs-micro); font-weight: var(--fw-semibold); display: grid; place-items: center;
}
.nav__item.is-active .badge { background: var(--white); color: var(--purple); }

/* ── Поиск и разделы ────────────────────────────────────── */
.search {
  display: flex; align-items: center; gap: var(--sp-2); height: 42px; margin: 2px var(--sp-2) var(--sp-3); padding: 0 var(--sp-3);
  background: var(--white); border: 1px solid var(--line-soft); border-radius: var(--r-16); transition: border-color var(--dur-base);
}
.search.is-active, .search:focus-within { border-color: var(--purple); }
/* Поля ввода — 16px: меньше iPhone приближает страницу при вводе */
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--fs-lg); }
.search input::placeholder { color: var(--muted-2); }
.search input::-webkit-search-cancel-button { display: none; }
.search__icon { width: 18px; height: 18px; border-radius: var(--r-full); background: var(--gray-500); display: grid; place-items: center; flex-shrink: 0; }
.search__icon img { width: 10px; height: 10px; }
.search__clear { width: 22px; height: 22px; display: grid; place-items: center; color: var(--muted-2); }
.search__clear svg { width: 16px; height: 16px; }

.cats {
  position: sticky; top: calc(var(--topbar-h, calc(64px + var(--safe-t))) - 1px); z-index: var(--z-chips); margin: 0 -8px; padding: var(--sp-2) var(--sp-2) 10px;
  display: flex; gap: var(--sp-2); overflow-x: auto; scrollbar-width: none; background: var(--bg);
  border-radius: 0 0 var(--r-16) var(--r-16); box-shadow: var(--shadow-cats);
}
.cats::-webkit-scrollbar { display: none; }
.cats button {
  position: relative; flex-shrink: 0; padding: var(--sp-3); border-radius: var(--r-8); background: var(--white);
  font-size: var(--fs-xs); font-weight: var(--fw-medium); white-space: nowrap; transition: color var(--dur-base), background-color var(--dur-base);
}
.cats button.is-active { background: var(--gray-100); color: var(--purple); }
.cats button.is-active::after {
  content: ''; position: absolute; left: 50%; bottom: 6px; width: 24px; height: 1px; margin-left: -12px; background: rgba(var(--purple-rgb), .5);
}
/* «Меню» закреплено у левого края строки разделов (как в макете) */
.cats .cats__all {
  position: sticky; left: 0; z-index: var(--z-above); display: flex; align-items: center; gap: 6px; background: var(--purple-soft); color: var(--purple);
  box-shadow: -8px 0 0 0 var(--bg), 8px 0 10px -4px var(--bg);
}
.cats .cats__all svg { width: 16px; height: 16px; }
/* Кухня / Бар — два меню точки: выбранное залито, второе — рядом */
.menu-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-1); padding: var(--sp-1); margin: 0 0 var(--sp-2); border-radius: var(--r-14); background: var(--white); box-shadow: var(--shadow); }
.menu-tabs button { min-height: 40px; border-radius: var(--r-10); font-size: var(--fs-base); font-weight: var(--fw-semibold); color: var(--ink-75); transition: background-color var(--dur-base), color var(--dur-base); }
.menu-tabs button.is-on { background: var(--purple); color: var(--white); }
.section-switch { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); width: 100%; margin: var(--sp-1) 0 calc(96px + var(--safe-b, 0px));
  padding: 18px var(--sp-5); border-radius: var(--r-16); background: var(--purple-soft); color: var(--purple); text-align: left; font-size: var(--fs-xl); font-weight: var(--fw-semibold); }
.section-switch small { font-size: var(--fs-sm); font-weight: var(--fw-regular); color: var(--ink-75); }
.section-title { font-weight: var(--fw-medium); font-size: var(--fs-3xl); color: var(--purple); margin: var(--sp-4) 10px var(--sp-3); scroll-margin-top: 130px; }
.list { display: flex; flex-direction: column; gap: var(--sp-2); }
.list--last { min-height: calc(100dvh - var(--topbar-h, 64px) - 170px); align-content: start; }
.empty { text-align: center; color: var(--muted); padding: var(--sp-12) var(--sp-4); }

/* ── Карточка блюда ─────────────────────────────────────── */
.dish {
  position: relative; display: flex; gap: 10px; padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-1); background: var(--card);
  border-radius: var(--r-12); box-shadow: var(--shadow); transition: background-color var(--dur-base), opacity var(--dur-base);
}
.dish.has-qty { background: var(--purple-tint); }
.dish__photo { position: relative; flex-shrink: 0; width: 144px; height: 144px; border-radius: var(--r-8); overflow: hidden; }
/* Фото вписано в рамку абсолютно: какой бы ни была картинка (широкая, высокая, крупная), она целиком в рамке
   и не раздвигает её — иначе низ фото обрезался бы (было на экранах 430 px) */
.dish__img { position: relative; width: 100%; height: 100%; display: grid; place-items: center; font-size: var(--fs-6xl); background: var(--white); }
.dish__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.dish__count {
  position: absolute; inset: 0; display: grid; place-items: center; background: rgba(var(--purple-rgb), .3);
  color: var(--white); font-size: var(--fs-4xl); font-weight: var(--fw-medium); pointer-events: none;
}
.dish__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.dish__name { font-weight: var(--fw-medium); font-size: var(--fs-lg); line-height: 18px; }
.dish__desc {
  font-size: var(--fs-xs); line-height: 14px; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.dish__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 36px; }
.dish__weight { font-size: var(--fs-xs); font-weight: var(--fw-medium); white-space: nowrap; }
.dish__soon { font-size: var(--fs-xs); font-weight: var(--fw-medium); color: rgba(var(--purple-rgb), .4); white-space: nowrap; }
.dish.is-stopped .dish__img { filter: grayscale(.6); opacity: .7; }

.price-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-4); height: 36px; padding: 0 var(--sp-8); border-radius: var(--r-pill);
  background: var(--purple-soft); color: var(--purple); font-size: var(--fs-xs); font-weight: var(--fw-semibold); white-space: nowrap; flex-shrink: 0;
}
.price-pill--qty { padding: 0 6px; gap: 6px; }
.price-pill--qty button { width: 28px; height: 28px; display: grid; place-items: center; color: var(--purple); opacity: .8; }
.price-pill--qty svg { width: 13px; height: 13px; }

/* Большая карточка (админка → «Большая карточка») */
.dish--big { display: block; padding: 0; border-radius: var(--r-32); overflow: hidden; }
.dish--big .dish__photo { width: 100%; height: 320px; border-radius: 0; }
.dish--big .dish__img img { object-fit: cover; }
.dish--big .dish__overlay {
  position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
  padding: var(--sp-10) var(--sp-5) var(--sp-4) var(--sp-6); background: linear-gradient(rgba(var(--white-rgb), 0), rgba(var(--white-rgb), .85) 60%);
}
.dish--big .dish__name { font-size: var(--fs-lg); }
.price-pill--big { height: 30px; padding: 0 var(--sp-2) 0 var(--sp-4); gap: 10px; border-radius: var(--r-16); background: var(--pink); color: var(--white); font-size: var(--fs-md); font-weight: var(--fw-medium); }
.price-pill--big img { width: 16px; height: 16px; }
.price-pill--big.price-pill--qty { padding: 0 var(--sp-1); }
.price-pill--big.price-pill--qty button { color: var(--white); opacity: 1; }

/* Метки на фото */
.tags { position: absolute; top: 6px; left: 6px; z-index: var(--z-above); display: flex; flex-wrap: wrap; gap: var(--sp-1); max-width: calc(100% - 12px); }
.tag-chip {
  display: inline-flex; align-items: center; gap: 3px; height: 18px; min-width: 18px; padding: 0 var(--sp-1); border-radius: var(--r-12); justify-content: center;
  font-size: var(--fs-micro); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: .02em; box-shadow: var(--glow-tag);
  background: var(--gray-200); color: var(--ink);
}
.tag-chip img { width: 10px; height: 10px; object-fit: contain; }
.tags--text { position: static; margin-bottom: var(--sp-2); }
.tags--text .tag-chip { padding: 0 6px; }
.tag-chip[data-badge="mild"] { background: var(--tag-mild-bg); color: var(--tag-mild-ink); }
.tag-chip[data-badge="spicy"] { background: var(--tag-spicy-bg); color: var(--tag-spicy-ink); }
.tag-chip[data-badge="new"] { background: var(--tag-new-bg); color: var(--tag-new-ink); }
.tag-chip[data-badge="hit"], .tag-chip[data-badge="chef"] { background: var(--tag-hit-bg); color: var(--tag-hit-ink); }
.tag-chip[data-badge="kids"] { background: var(--tag-kids-bg); color: var(--tag-kids-ink); }
.tag-chip[data-badge="gift"], .tag-chip[data-badge="sale"] { background: var(--tag-gift-bg); color: var(--tag-gift-ink); }
.tag-chip[data-badge="nosugar"], .tag-chip[data-badge="veg"] { background: var(--tag-nosugar-bg); color: var(--tag-nosugar-ink); }

/* ── Кнопки и поля ──────────────────────────────────────── */
.btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); width: 100%; min-height: 52px; padding: var(--sp-2) var(--sp-5) var(--sp-2) var(--sp-6);
  border-radius: var(--r-16); background: var(--white); border: 1px solid var(--line); font-weight: var(--fw-medium); font-size: var(--fs-base); text-align: left; color: var(--ink);
  transition: transform var(--dur-fast), opacity var(--dur-base);
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; }
.btn + .btn { margin-top: 10px; }
.btn--dark { background: var(--purple); border-color: var(--purple); color: var(--white); font-weight: var(--fw-semibold); }
.btn--outline { color: var(--purple); }
.btn--center { justify-content: center; padding: var(--sp-2) var(--sp-5); }
.btn .round-btn { width: 20px; height: 20px; background: none; color: inherit; display: grid; place-items: center; flex-shrink: 0; }
.btn .round-btn svg { width: 18px; height: 18px; }
.btn__sub { display: block; font-size: var(--fs-xs); font-weight: var(--fw-regular); opacity: .75; margin-top: 2px; }
.btn--qty { padding: 0 var(--sp-3); color: var(--purple-soft); }
.btn--qty button { width: 40px; height: 40px; display: grid; place-items: center; color: var(--white); }
.btn--qty svg { width: 18px; height: 18px; }
.btn--qty span { display: flex; align-items: center; gap: var(--sp-3); font-weight: var(--fw-semibold); }
.btn--qty i { width: 1px; height: 16px; background: rgba(var(--purple-soft-rgb), .5); }
.round-btn {
  width: 40px; height: 40px; border-radius: var(--r-full); background: var(--purple); color: var(--white); display: grid; place-items: center; flex-shrink: 0;
}
.round-btn svg { width: 20px; height: 20px; }
.link-btn { color: var(--purple); font-size: var(--fs-sm); padding: 10px 6px; margin: -6px 0; }
.link-btn--logout { display: block; margin: var(--sp-4) auto 0; font-size: var(--fs-base); color: var(--ink); opacity: .7; }

.field { display: block; margin-bottom: var(--sp-3); }
.field__label { display: block; font-size: var(--fs-base); font-weight: var(--fw-medium); margin: 0 0 var(--sp-2); }
.input {
  width: 100%; padding: 14px var(--sp-3); border: 1px solid var(--line); border-radius: var(--r-16); background: var(--white); outline: 0; font-size: var(--fs-lg);
  transition: border-color var(--dur-base);
}
.input:focus { border-color: var(--purple); }
.input::placeholder { color: var(--muted-2); }
.field__note { font-size: var(--fs-base); line-height: 18px; margin: -4px 0 var(--sp-3); }
.field__note a { color: var(--purple); }
.pill-input { display: flex; align-items: center; gap: var(--sp-2); width: 100%; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-16); padding: var(--sp-1) var(--sp-3); min-height: 52px; }
.pill-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--fs-lg); }
.consent { display: flex; align-items: flex-start; gap: var(--sp-2); margin: var(--sp-1) 0 var(--sp-2) var(--sp-2); font-size: var(--fs-xs); line-height: 16px; cursor: pointer; }
.consent a { color: var(--purple); text-decoration: underline; }
.consent input:focus-visible + .consent__box { outline: 2px solid var(--purple); outline-offset: 2px; }
.btn--danger { color: var(--danger); border-color: var(--danger); }
.consent input { position: absolute; opacity: 0; }
.consent__box { width: 20px; height: 20px; border-radius: var(--r-6); border: 1px solid var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.consent__box svg { width: 11px; height: 11px; opacity: 0; }
.consent input:checked + .consent__box svg { opacity: 1; }
.auth__error { color: var(--danger); text-align: center; font-size: var(--fs-sm); min-height: 18px; margin: 10px 0; }
.fuji-btn {
  display: flex; align-items: center; gap: var(--sp-3); width: 100%; margin-top: var(--sp-3); padding: var(--sp-1) var(--sp-4) var(--sp-1) var(--sp-1); min-height: 52px; border-radius: var(--r-16);
  border: 1px solid var(--line); background: var(--white); color: var(--purple); font-size: var(--fs-base); font-weight: var(--fw-medium); text-decoration: none;
}
.fuji-btn img { width: 42px; height: 42px; flex-shrink: 0; }
.auth { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--sp-10) + var(--safe-t)) var(--sp-4) calc(var(--sp-10) + var(--safe-b)); }
.auth__main { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.logo { font-weight: var(--fw-bold); font-size: var(--fs-5xl); letter-spacing: .04em; text-align: center; color: var(--purple); margin: 0 0 var(--sp-10); }

/* Строки-кнопки (помощь, действия в корзине) */
.menu-rows { display: flex; flex-direction: column; gap: var(--sp-2); }
.menu-row {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: var(--sp-5) var(--sp-4); border-radius: var(--r-16); border: 1px solid var(--line);
  background: var(--white); font-size: var(--fs-lg); text-align: left; transition: transform var(--dur-fast), opacity var(--dur-base);
}
.menu-row:active { transform: scale(.98); }
.menu-row:disabled { opacity: .5; }
.menu-row span { flex: 1; min-width: 0; }
.menu-row img { width: 20px; height: 20px; flex-shrink: 0; }
.menu-row > img:last-child { transform: rotate(-90deg); }
.menu-row + .menu-row { margin-top: var(--sp-2); }
.menu-rows .menu-row + .menu-row { margin-top: 0; }

/* ── AI ─────────────────────────────────────────────────── */
.screen--ai { padding-left: var(--sp-4); padding-right: var(--sp-4); }
.ai-hero { display: flex; flex-direction: column; align-items: center; padding-top: 10vh; text-align: center; }
.ai-hero h1 { font-weight: var(--fw-regular); font-size: var(--fs-3xl); margin: var(--sp-12) 0 6px; }
.ai-hero__hello { font-size: var(--fs-xs); color: var(--muted); }
.ai-head { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) 0 var(--sp-1); }
.ai-head__orb { width: 40px; height: 40px; object-fit: contain; }
.ai-head__orb.is-thinking { animation: orb-breathe 1.2s ease-in-out infinite; }
.ai-head__title { font-size: var(--fs-base); }
.ai-head__sub { font-size: var(--fs-base); color: var(--muted); }
.ai-bottom { margin-top: auto; padding-top: var(--sp-5); }
.chips { display: flex; gap: var(--sp-2); overflow-x: auto; margin: 0 -16px var(--sp-3); padding: var(--sp-1) var(--sp-4); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0; display: inline-flex; align-items: center; gap: var(--sp-2); padding: var(--sp-3) var(--sp-6); border-radius: var(--r-16); background: var(--white);
  box-shadow: var(--shadow); font-size: var(--fs-base); transition: background-color var(--dur-base), color var(--dur-base);
}
.chip img { width: 22px; height: 22px; object-fit: contain; }
.chip__emoji { font-size: var(--fs-xl); line-height: var(--lh-none); }
.chip.is-active { background: var(--purple-soft); color: var(--purple); }
.ai-input { display: flex; align-items: center; gap: var(--sp-2); height: 52px; padding: 0 var(--sp-3); background: var(--white); border: 1px solid var(--line); border-radius: var(--r-16); }
.ai-input:focus-within { border-color: var(--purple); }
.ai-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--fs-lg); }
.ai-input input::placeholder { color: var(--muted-2); }
.ai-input button { width: 24px; height: 24px; flex-shrink: 0; }
.ai-input button img { width: 24px; height: 24px; }
.ai-results { display: flex; flex-direction: column; gap: var(--sp-2); padding: var(--sp-3) 0 var(--sp-1); margin: 0 -8px; }
.ai-results.is-fresh .dish { animation: rise .35s ease both; }
.ai-results.is-fresh .dish:nth-child(2) { animation-delay: .06s; }
.ai-results.is-fresh .dish:nth-child(3) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.ai-error { background: var(--white); border-radius: var(--r-16); padding: var(--sp-5); text-align: center; box-shadow: var(--shadow); margin: 0 var(--sp-2); }
.ai-error__title { font-weight: var(--fw-medium); margin-bottom: 6px; }
.ai-error .btn { margin-top: 14px; }
.submit-btn { margin-top: var(--sp-3); }

/* ── Баннеры ────────────────────────────────────────────── */
.banners { display: flex; gap: var(--sp-2); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -8px var(--sp-2); padding: 0 var(--sp-2); }
.banners::-webkit-scrollbar { display: none; }
.banner { position: relative; flex: 0 0 88%; scroll-snap-align: center; aspect-ratio: 2 / 1; border-radius: var(--r-24); overflow: hidden; background: var(--white); box-shadow: var(--shadow); text-align: left; }
.banners .banner:only-child { flex-basis: 100%; }
.banner:not(.has-img) { aspect-ratio: auto; }
.banner--static { cursor: default; }
.banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner__text { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px var(--sp-4) var(--sp-3); background: linear-gradient(transparent, rgba(var(--ink-rgb), .55)); color: var(--white); }
.banner:not(.has-img) .banner__text { position: static; background: none; color: var(--ink); padding: var(--sp-5); }
.banner__title { font-weight: var(--fw-semibold); font-size: var(--fs-lg); }
.banner__sub { font-size: var(--fs-xs); opacity: .85; margin-top: 3px; }

/* ── Заказ ──────────────────────────────────────────────── */
.screen--order { padding-left: 0; padding-right: 0; }
.stepper-card { background: var(--white); border-radius: 0 0 var(--r-24) var(--r-24); padding: var(--sp-2) var(--sp-2) 28px; margin-bottom: var(--sp-2); text-align: center; }
.stepper { display: flex; gap: var(--sp-2); align-items: center; height: 40px; padding: 0 var(--sp-3); border-radius: var(--r-16); background: var(--bg); }
.stepper__bar { position: relative; flex: 1; height: 3px; border-radius: var(--r-2); background: var(--gray-600); }
.stepper__bar.is-done { background: var(--purple); }
.stepper__bar.is-current { background: linear-gradient(90deg, var(--purple) 40%, var(--gray-600) 40%); }
.stepper__bar img { position: absolute; top: 50%; left: 40%; width: 24px; height: 24px; transform: translate(-50%, -50%); }
.stepper__bar:last-child.is-current { background: var(--purple); }
.stepper__bar:last-child.is-current img { left: 100%; transform: translate(-100%, -50%); }
.stepper__title { font-size: var(--fs-lg); font-weight: var(--fw-medium); margin-top: var(--sp-6); }
.stepper__sub { font-size: var(--fs-xs); color: var(--ink-60); margin-top: 6px; }
.order-card { background: var(--white); border-radius: var(--r-24); padding: var(--sp-2) var(--sp-4); margin-bottom: var(--sp-2); overflow: hidden; }
.order-empty { background: var(--white); border-radius: var(--r-24); padding: 120px var(--sp-4); text-align: center; font-size: var(--fs-lg); font-weight: var(--fw-medium); margin-bottom: var(--sp-2); }
.cart-line { position: relative; border-bottom: 1px solid var(--gray-300); }
.cart-line:last-of-type { border-bottom: 0; }
.cart-line__row {
  position: relative; z-index: var(--z-raise); display: flex; align-items: center; gap: 10px; padding: 14px 0; background: var(--white);
  transition: transform .25s var(--ease-out); touch-action: pan-y;
}
.cart-line.is-open .cart-line__row { transform: translateX(-84px); }
.cart-line__del {
  position: absolute; right: 0; top: 50%; width: 72px; height: 60px; margin-top: -30px; border-radius: var(--r-8); background: var(--danger-400);
  display: grid; place-items: center;
}
.cart-line__del img { width: 20px; height: 20px; }
.cart-line__img { width: 48px; height: 48px; border-radius: var(--r-8); overflow: hidden; flex-shrink: 0; display: grid; place-items: center; font-size: var(--fs-2xl-plus); background: var(--white); }
.cart-line__img { position: relative; }
.cart-line__img img, .cart-line__img video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cart-line__main { flex: 1; min-width: 0; }
.cart-line__name { font-size: var(--fs-base); color: var(--ink-navy); line-height: var(--lh-tight); }
.cart-line__price { font-size: var(--fs-xs); margin-top: 6px; }
.stepper-mini { display: flex; align-items: center; justify-content: space-between; width: 72px; height: 28px; border-radius: var(--r-32); background: var(--purple-soft); flex-shrink: 0; }
.stepper-mini button { width: 24px; height: 28px; display: grid; place-items: center; color: var(--purple); }
.stepper-mini svg { width: 11px; height: 11px; }
.stepper-mini b { font-size: var(--fs-base); font-weight: var(--fw-medium); color: var(--purple); }
.sent-group + .sent-group { margin-top: var(--sp-2); }
.sent-group__name { font-size: var(--fs-lg); color: var(--ink-75); padding: var(--sp-3) 0 0; }
.sent-line { display: flex; align-items: center; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--gray-300); }
.sent-group:last-of-type .sent-line:last-child { border-bottom: 0; }
.sent-line__sum { font-size: var(--fs-base); white-space: nowrap; }
.sent-line__sum span { color: var(--ink-75); margin-left: 2px; }
.st { display: inline-block; margin-top: var(--sp-1); padding: 2px var(--sp-2); border-radius: var(--r-10); font-size: var(--fs-3xs); font-weight: var(--fw-medium); background: var(--gray-150); color: var(--muted); }
.st--kitchen { background: var(--kitchen-soft); color: var(--kitchen); }
.st--ready { background: var(--warn-soft); color: var(--warn-ink); }
.st--served { background: var(--ok-soft); color: var(--ok); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; padding: var(--sp-3) 0 var(--sp-2); border-top: 1px solid var(--gray-300); font-size: var(--fs-base); color: var(--ink-75); }
.total-row b { font-size: var(--fs-xl); font-weight: var(--fw-semibold); color: var(--ink); }
.actions { padding: 0 var(--sp-2); }
.actions .btn, .actions .menu-row { margin-top: var(--sp-2); }
.menu-row__icon { width: 20px; height: 20px; }

/* ── Шторки ─────────────────────────────────────────────── */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: var(--z-sheet); background: rgba(var(--ink-rgb), .28); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; animation: fade var(--dur-base); transition: background-color .22s, opacity .22s;
}
.sheet-backdrop.is-closing { opacity: 0; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: relative; width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; background: var(--bg);
  border-radius: var(--r-24) var(--r-24) 0 0; padding: var(--sp-2) var(--sp-4) calc(var(--sp-6) + var(--safe-b)); animation: up .28s var(--ease-out);
  touch-action: pan-y; will-change: transform;
}
@keyframes up { from { transform: translateY(100%); } }
.sheet__grip { width: 36px; height: 3px; border-radius: var(--r-2); background: var(--gray-400); margin: 0 auto var(--sp-5); cursor: grab; }
.sheet h2 { font-weight: var(--fw-medium); font-size: var(--fs-2xl); color: var(--purple); margin: 0 0 6px; }
.sheet__hint { font-size: var(--fs-xs); color: var(--ink-75); margin: 0 0 var(--sp-5); line-height: 16px; }
.sheet--gray { background: var(--bg); }
.sheet--white { background: var(--white); border-radius: var(--r-12) var(--r-12) 0 0; }
.sheet__close { position: absolute; top: 16px; right: 16px; width: 28px; height: 28px; display: grid; place-items: center; z-index: var(--z-above); }
.sheet__close img { width: 20px; height: 20px; }
.sheet__title-center { text-align: center; margin-bottom: var(--sp-4) !important; }
.cat-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); margin-bottom: var(--sp-3); }
.cat-tabs button { position: relative; padding: var(--sp-3); border-radius: var(--r-8); background: var(--bg); font-size: var(--fs-xs); font-weight: var(--fw-medium); }
.cat-tabs button.is-active { background: var(--gray-100); color: var(--purple); }
.cat-tabs button.is-active::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 24px; height: 1px; margin-left: -12px; background: rgba(var(--purple-rgb), .5); }
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.cat-grid button {
  height: 108px; border-radius: var(--r-12); border: .77px solid var(--line); background: var(--white); display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--sp-2); padding: 6px; font-size: var(--fs-3xs); text-align: center;
}
.cat-grid img { width: 72px; height: 64px; object-fit: contain; }
.cat-grid__emoji { font-size: var(--fs-5xl); line-height: 64px; }

/* Карточка блюда */
.sheet--product { padding: 0 0 0; background: var(--plum-50); }
.sheet--product .sheet__grip { position: absolute; top: 8px; left: 50%; margin: 0 0 0 -18px; z-index: var(--z-top); background: rgba(var(--white-rgb), .7); }
.product__photo { position: relative; background: var(--white); }
/* Фото блюда целиком, без обрезки: вписано в квадрат на белом */
.product-hero { position: relative; width: 100%; height: min(100vw, 380px, 46vh); display: grid; place-items: center; font-size: var(--fs-8xl); overflow: hidden; background: var(--white); }
.product-hero img { position: absolute; top: 12px; left: 16px; width: calc(100% - 32px); height: calc(100% - 20px); object-fit: contain; }
.product-hero video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-hero.has-preview::before { content: ''; position: absolute; top: 12px; left: 16px; width: calc(100% - 32px); height: calc(100% - 20px);
  background: var(--preview) center / contain no-repeat; }
.product__close {
  position: absolute; top: 16px; right: 16px; z-index: var(--z-top); width: 32px; height: 32px; border-radius: var(--r-full);
  background: rgba(var(--ink-rgb), .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); display: grid; place-items: center;
}
.product__close img { width: 20px; height: 20px; }
.dish__count--hero { font-size: var(--fs-8xl); }
.product__info {
  position: relative; padding: var(--sp-4) var(--sp-5) var(--sp-2); background: var(--plum-50); border-radius: var(--r-24) var(--r-24) 0 0;
  box-shadow: var(--shadow-bar-up);
}
.sheet h2.product__name { color: var(--ink); font-size: var(--fs-lg); margin: 0; }
.product__weight { font-size: var(--fs-xs); color: var(--ink-60); margin-top: var(--sp-1); }
.product__block { margin-top: var(--sp-5); }
.product__label { font-size: var(--fs-xs); font-weight: var(--fw-medium); margin-bottom: 6px; }
.product__label--row { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); }
.product__block p { margin: 0; font-size: var(--fs-xs); line-height: 15px; }
.nutri { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-2); margin-top: var(--sp-2); }
.nutri div { background: var(--white); border-radius: var(--r-8); padding: 10px var(--sp-1); text-align: center; font-size: var(--fs-3xs); color: var(--ink-60); }
.nutri b { display: block; font-size: var(--fs-xs); font-weight: var(--fw-medium); color: var(--ink); margin-bottom: 2px; }
.nutri-toggle { display: flex; gap: var(--sp-1); }
.nutri-toggle button { padding: var(--sp-2) var(--sp-3); border-radius: var(--r-16); font-size: var(--fs-xs); border: .5px solid transparent; }
.nutri-toggle button.is-active { border-color: var(--purple); color: var(--purple); }
.product__cta { position: sticky; bottom: 0; z-index: var(--z-above); padding: var(--sp-3) var(--sp-5) calc(var(--sp-4) + var(--safe-b)); background: linear-gradient(rgba(var(--plum-50-rgb), 0), var(--plum-50) 30%); }
.product__cta .btn { min-height: 48px; color: var(--purple-soft); }

/* Выбор ресторана */
.rest-list { display: flex; flex-direction: column; gap: var(--sp-2); max-height: 60vh; overflow-y: auto; }
.rest-item {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); text-align: left; padding: 14px var(--sp-4); border-radius: var(--r-16);
  border: 1px solid var(--line); background: var(--white); cursor: pointer;
}
.rest-item b { font-size: var(--fs-base); font-weight: var(--fw-medium); }
.rest-item span { font-size: var(--fs-xs); color: var(--ink-75); }
.rest-item[disabled] { background: rgba(var(--ink-rgb), .03); border-color: transparent; cursor: default; }
.rest-item[disabled] b, .rest-item[disabled] span { opacity: .5; }
.rest-note { display: flex; align-items: center; gap: 6px; font-style: normal; font-size: var(--fs-3xs); color: var(--ink-60); margin-top: 2px; }
.rest-note::before { content: ''; width: 4px; height: 4px; border-radius: var(--r-full); background: currentColor; }
.rest-note--here { color: var(--ok); }

/* Оплата, счёт, отзыв */
.card { background: var(--white); border-radius: var(--r-16); box-shadow: var(--shadow); padding: var(--sp-4); }
.card + .card { margin-top: var(--sp-3); }
.big-sum { text-align: center; font-size: var(--fs-4xl); font-weight: var(--fw-semibold); margin: 0 0 var(--sp-1); }
.sum-rows { font-size: var(--fs-sm); color: var(--ink-75); display: flex; justify-content: space-between; margin: var(--sp-1); }
.label { font-size: var(--fs-base); font-weight: var(--fw-medium); margin: var(--sp-4) 0 var(--sp-2); }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: var(--sp-2); margin-bottom: var(--sp-3); }
.opt { padding: 13px var(--sp-2); border-radius: var(--r-12); background: var(--white); border: 1px solid var(--line); font-size: var(--fs-sm); font-weight: var(--fw-medium); text-align: center; }
.opt.is-active { border-color: var(--purple); color: var(--purple); background: var(--purple-tint); }
.stars { display: flex; justify-content: center; gap: var(--sp-2); margin: var(--sp-2) 0 var(--sp-5); }
.stars button { font-size: var(--fs-5xl); color: var(--gray-400); transition: transform var(--dur-fast), color var(--dur-fast); }
.stars button.is-on { color: var(--purple); }
.stars button:active { transform: scale(1.2); }
textarea.field {
  width: 100%; min-height: 96px; border: 1px solid var(--line); outline: 0; border-radius: var(--r-16); padding: 14px var(--sp-3); background: var(--white); resize: none; font-size: var(--fs-lg);
}
textarea.field:focus { border-color: var(--purple); }
.bill-guests { display: flex; flex-direction: column; background: var(--white); border-radius: var(--r-16); border: 1px solid var(--line); padding: 0 var(--sp-4); }
.bill-guest { display: flex; align-items: center; gap: var(--sp-3); padding: 14px 0; border-bottom: 1px solid var(--gray-300); cursor: pointer; font-size: var(--fs-base); }
.bill-guest:last-child { border-bottom: 0; }
.bill-guest input { position: absolute; opacity: 0; pointer-events: none; }
.bill-guest__box { width: 20px; height: 20px; border-radius: var(--r-6); border: 1px solid var(--ink); display: grid; place-items: center; flex-shrink: 0; color: var(--white); }
.bill-guest__box svg { width: 11px; height: 11px; opacity: 0; }
.bill-guest input:checked + .bill-guest__box { background: var(--purple); border-color: var(--purple); }
.bill-guest input:checked + .bill-guest__box svg { opacity: 1; }
.bill-guest__name { flex: 1; min-width: 0; font-weight: var(--fw-medium); }
.bill-guest__name i { font-style: normal; color: var(--muted); font-weight: var(--fw-regular); }
.bill-guest--note { cursor: default; color: var(--muted); }

/* ── Плашка «Включить уведомления» ────────────────────────── */
.push-prompt {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); transform: translateX(-50%); z-index: var(--z-float);
  width: calc(100% - 24px); max-width: 456px; display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 14px;
  border-radius: var(--r-18); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: var(--fs-xs);
}
.push-prompt__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; color: var(--muted-2); line-height: var(--lh-base); }
.push-prompt__text b { color: var(--ink); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.push-prompt__go { flex-shrink: 0; min-height: 36px; padding: 0 14px; border-radius: var(--r-12); background: var(--purple); color: var(--white); font-weight: var(--fw-semibold); font-size: var(--fs-sm); }
.push-prompt__x { flex-shrink: 0; width: 32px; height: 36px; font-size: var(--fs-2xl); line-height: var(--lh-none); color: var(--muted-2); }

/* ── Уведомление ────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; top: calc(12px + var(--safe-t)); z-index: var(--z-toast); transform: translate(-50%, -160%);
  display: flex; align-items: center; gap: var(--sp-2); max-width: calc(100% - 32px); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-20);
  background: var(--bg); border: 1px solid var(--line); color: var(--info-ink); font-size: var(--fs-sm); box-shadow: var(--shadow-lg);
  transition: transform var(--dur-slow) var(--ease-out), visibility var(--dur-slow); visibility: hidden;
}
.toast img { width: 16px; height: 16px; flex-shrink: 0; }
.toast.is-shown { transform: translate(-50%, 0); visibility: visible; }
.toast.is-error { background: var(--danger-150); border-color: var(--danger-250); color: var(--danger-ink); }

.spinner { width: 20px; height: 20px; border: 2.5px solid rgba(var(--white-rgb), .35); border-top-color: var(--white); border-radius: var(--r-full); animation: orb-spin .8s linear infinite; }
.spinner--dark { border-color: rgba(var(--ink-rgb), .15); border-top-color: var(--ink); }
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 0%, var(--gray-50) 50%, var(--gray-200) 100%); background-size: 200% 100%; animation: sk 1.2s infinite;
  border-radius: var(--r-12); height: 168px;
}
@keyframes sk { to { background-position: -200% 0; } }

/* «Живое» меню: видео блюда вместо фото */
.has-video { position: relative; background: var(--white); }
.has-video video { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: inherit; background: transparent; }

/* Превью карточки в админке (?preview=1): настоящее меню, блюдо в фокусе */
body.is-preview { overscroll-behavior: none; }
body.preview-list .dish:not(.is-focus) { opacity: .35; filter: grayscale(.3); }
body.preview-list .dish.is-focus { box-shadow: var(--ring-focus); }
body.is-preview, body.is-preview * { scrollbar-width: none; }
body.is-preview ::-webkit-scrollbar { display: none; }

/* Узкие телефоны */
@media (max-width: 370px) {
  .dish__photo { width: 120px; height: 120px; }
  .price-pill { padding: 0 var(--sp-5); }
  .nav { padding-left: var(--sp-3); padding-right: var(--sp-3); }
}
@media (max-height: 720px) {
  .ai-hero { padding-top: 3vh; }
  .ai-orb { width: 96px; height: 96px; }
  .ai-hero h1 { margin-top: var(--sp-6); }
}
@media (display-mode: standalone) { .topbar { padding-top: calc(var(--sp-4) + var(--safe-t)); } }
.is-fullscreen .topbar { padding-top: calc(var(--sp-4) + var(--safe-t)); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* ── Состояния и мелочи ─────────────────────────────────── */
:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible { outline: 0; }
html.sheet-open, html.sheet-open body { overflow: hidden; }
.is-scrolled .topbar { box-shadow: var(--shadow-bar-down); }
.is-scrolled .topbar:has(~ main #cats) { box-shadow: none; }
.topbar { transition: box-shadow var(--dur-base) ease; }
.empty__title { font-size: var(--fs-lg); font-weight: var(--fw-medium); color: var(--ink); margin-bottom: 6px; }
.empty__btn { margin: var(--sp-5) auto 0; max-width: 320px; }
.skeleton--search { height: 42px; margin: 2px var(--sp-2) var(--sp-3); border-radius: var(--r-16); }
.skeleton--cats { height: 40px; margin: 0 0 var(--sp-3); border-radius: var(--r-8); }
.list .skeleton { height: 168px; }
.dish__left { display: block; font-style: normal; font-size: var(--fs-3xs); font-weight: var(--fw-medium); color: var(--kitchen); margin-top: 2px; }
.st--stop { background: var(--danger-150); color: var(--danger-ink); }
.cart-line.is-problem .cart-line__img { filter: grayscale(1); opacity: .6; }
.cart-line.is-problem .cart-line__name { color: var(--ink-60); }
.submit-btn:disabled { background: var(--gray-500); border-color: var(--gray-500); opacity: 1; }

/* Анимации: количество на фото, счётчик корзины, нажатия */
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.12); } 100% { transform: scale(1); opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } }
.dish__count { animation: fade-in var(--dur-base) ease both; }
.badge { animation: pop var(--dur-slow) var(--ease-pop) both; }
.price-pill, .stepper-mini button, .chip, .cats button, .nav__item, .cat-grid button, .rest-item, .product__close { transition: transform var(--dur-fast) ease, background-color var(--dur-base), color var(--dur-base), opacity var(--dur-base); }
.price-pill:active, .chip:active, .cats button:active, .cat-grid button:active, .rest-item:active:not([disabled]) { transform: scale(.96); }
.price-pill--qty button:active, .stepper-mini button:active { transform: scale(.85); }
.nav__item:active .nav__icon { transform: scale(.92); }
.nav__icon { transition: background-color .25s, box-shadow .25s, transform var(--dur-fast); }
.stepper__bar { transition: background-color .4s ease; }
/* Иконка шага: анимируем scale, а не transform — transform держит её по центру линии */
@keyframes pop-scale { 0% { scale: .4; opacity: 0; } 70% { scale: 1.12; } 100% { scale: 1; opacity: 1; } }
.stepper__bar img { animation: pop-scale .35s var(--ease-pop) both; }
/* Фото проявляется один раз, когда загрузилось (перерисовка его не трогает) */
.dish__img img, .cart-line__img img, .product-hero img { opacity: 0; transition: opacity var(--dur-slow) ease; }
.dish__img img.is-loaded, .cart-line__img img.is-loaded, .product-hero img.is-loaded { opacity: 1; }
.cart-line__del { transition: opacity var(--dur-base); opacity: 0; }
.cart-line.is-open .cart-line__del { opacity: 1; }

/* Передаём заказ — кнопка остаётся фиолетовой со спиннером */
.submit-btn:disabled:has(.spinner) { background: var(--purple); border-color: var(--purple); opacity: .85; }
/* Узкие телефоны (320–370 px): «− цена +» и вес помещаются в карточку */
@media (max-width: 370px) {
  .price-pill--qty { gap: 0; padding: 0 2px; }
  .price-pill--qty button { width: 26px; }
  .dish__weight { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .dish__foot { gap: var(--sp-1); }
  .dish__body { gap: 6px; }
  .dish__desc { -webkit-line-clamp: 3; }
}

/* ── Выбор в карточке блюда: размер и модификаторы (макет: Option_text, размеры) ── */
.opt-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: var(--sp-2); margin-top: var(--sp-2); }
.opt-tile {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: var(--sp-1); padding: var(--sp-2) var(--sp-1) 6px; min-height: 84px;
  background: var(--white); border: 1px solid transparent; border-radius: var(--r-12); text-align: center; transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.opt-tile:active { transform: scale(.96); }
.opt-tile.is-on { border-color: var(--purple); }
.opt-tile__circle {
  width: 44px; height: 44px; border-radius: var(--r-full); overflow: hidden; display: grid; place-items: center; flex-shrink: 0;
  background: var(--bg); color: var(--muted); font-size: var(--fs-lg); font-weight: var(--fw-medium);
}
.opt-tile__circle img { width: 100%; height: 100%; object-fit: cover; }
.opt-tile__circle--size { background: var(--white); border: 1.5px solid var(--danger-500); color: var(--danger-500); font-size: var(--fs-2xs); }
.opt-tile.is-on .opt-tile__circle--size { background: var(--danger-100); }
.opt-tile__name { font-size: var(--fs-3xs); line-height: 12px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.opt-tile__price { font-size: var(--fs-3xs); color: var(--purple); font-weight: var(--fw-medium); }
.opt-tile__qty { position: absolute; top: 4px; right: 6px; font-style: normal; font-size: var(--fs-3xs); font-weight: var(--fw-semibold); color: var(--white); background: var(--purple); border-radius: var(--r-8); padding: 0 5px; }
.opt-hint { font-size: var(--fs-3xs); font-weight: var(--fw-regular); color: var(--ink-60); }
.opt-hint.is-missing { color: var(--kitchen); }
.btn--muted { background: var(--gray-500); border-color: var(--gray-500); }

/* ── Алкоголь: 18+, правила точки, окно «Вам есть 18 лет?» ── */
.tag-18 {
  position: absolute; left: 6px; bottom: 6px; z-index: var(--z-above); display: inline-grid; place-items: center; height: 20px; min-width: 28px; padding: 0 5px;
  border-radius: var(--r-10); background: rgba(var(--white-rgb), .94); border: 1.5px solid var(--danger); color: var(--danger);
  font-size: var(--fs-3xs); font-weight: var(--fw-bold); letter-spacing: .02em; line-height: var(--lh-none);
}
.tag-18--big { position: static; flex-shrink: 0; height: 24px; min-width: 34px; font-size: var(--fs-xs); }
.tag-18--inline { position: static; height: 16px; min-width: 24px; padding: 0 var(--sp-1); border-width: 1px; font-size: var(--fs-nano); vertical-align: 1px; }
.dish__soon--alco { color: var(--danger); opacity: .7; }
.alco-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 10px var(--sp-3); border-radius: var(--r-12); background: var(--white); border: 1px solid var(--danger-200); }
.alco-note.is-closed { background: var(--danger-50); border-color: var(--danger-250); }
.alco-note__rules { font-size: var(--fs-xs); line-height: 16px; color: var(--ink); }
.alco-note__sub { margin-top: 3px; font-size: var(--fs-xs); line-height: 15px; color: var(--danger); font-weight: var(--fw-medium); }
.alco-note:not(.is-closed) .alco-note__sub { color: var(--ink-60); font-weight: var(--fw-regular); }
.age-modal {
  position: fixed; inset: 0; z-index: var(--z-modal); display: grid; place-items: center; padding: var(--sp-5); background: rgba(var(--ink-rgb), .4);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade var(--dur-base);
}
.age-modal__box { width: 100%; max-width: 340px; padding: var(--sp-6) var(--sp-5) var(--sp-5); border-radius: var(--r-24); background: var(--bg); text-align: center; box-shadow: var(--shadow-lg); }
.age-modal__badge {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: var(--sp-3); border-radius: var(--r-full);
  border: 3px solid var(--danger); color: var(--danger); font-size: var(--fs-2xl); font-weight: var(--fw-bold);
}
.age-modal h2 { margin: 0 0 var(--sp-2); font-size: var(--fs-2xl); font-weight: var(--fw-medium); color: var(--ink); }
.age-modal p { margin: 0 0 var(--sp-2); font-size: var(--fs-sm); line-height: 17px; color: var(--ink-75); }
.age-modal p.age-modal__doc { color: var(--muted-2); font-size: var(--fs-xs); }
.age-modal .btn { margin-top: 10px; width: 100%; }
.age-modal .btn[data-age="yes"] { margin-top: var(--sp-4); }

.cart-line__opts { font-size: var(--fs-2xs); color: var(--ink-60); margin-top: 3px; line-height: var(--lh-snug); }

.order-card__note { margin: 0 0 var(--sp-3); padding: 10px var(--sp-3); border-radius: var(--r-12); background: var(--purple-soft); color: var(--purple); font-size: var(--fs-sm); line-height: var(--lh-relaxed); }
.order-card__removed { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line, var(--removed-line)); font-size: var(--fs-sm); color: var(--removed-ink); }
.order-card__removed-title { font-weight: var(--fw-semibold); margin-bottom: var(--sp-1); }
.removed-line { display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.removed-line span { text-decoration: line-through; }
.removed-line i { font-style: normal; white-space: nowrap; }

/* ── Бизнес-ланч: баннер в меню и конструктор ─────────────── */
/* Бизнес-ланч — одна позиция меню с большим фото (как «большая карточка» блюда) */
.lunch-card { cursor: pointer; }
.lunch-card .dish__name small { display: block; margin-top: 2px; font-size: var(--fs-sm); font-weight: var(--fw-regular); opacity: .9; }
.lunch-card__time { position: absolute; left: 12px; top: 12px; padding: var(--sp-1) 10px; border-radius: var(--r-12); background: rgba(var(--white-rgb), .92); color: var(--purple); font-size: var(--fs-xs); font-weight: var(--fw-semibold); }
.lunch-card.is-off .lunch-card__time { color: var(--plum-600); }
.lunch-card.is-off .dish__img { filter: grayscale(.5); }
.lunch-card__ph { display: grid; place-items: center; aspect-ratio: 16 / 10; font-size: var(--fs-7xl); background: linear-gradient(135deg, var(--purple-soft), var(--white)); }
.lunch-banner {
  margin: 0 0 14px; padding: 18px var(--sp-4) 14px; border-radius: var(--r-20); color: var(--white); cursor: pointer; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%); box-shadow: var(--shadow-brand);
}
.lunch-banner::after { content: ''; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: var(--r-full); background: rgba(var(--white-rgb), .08); pointer-events: none; }
.lunch-banner:active { transform: scale(.99); }
.lunch-banner.is-off { background: linear-gradient(135deg, var(--plum-500) 0%, var(--plum-600) 100%); box-shadow: var(--shadow-pop); }
.lunch-banner__top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); flex-wrap: wrap; }
.lunch-banner__tag { font-size: var(--fs-2xs); font-weight: var(--fw-semibold); letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.lunch-banner__time { font-size: var(--fs-2xs); background: rgba(var(--white-rgb), .18); border-radius: var(--r-10); padding: 3px 9px; }
.lunch-banner__title { margin: 10px 0 10px; font-size: var(--fs-3xl); line-height: 28px; font-weight: var(--fw-bold); letter-spacing: .02em; text-transform: uppercase; }
.lunch-banner__list { list-style: none; margin: 0; padding: 10px var(--sp-3); border-radius: var(--r-14); border: 1px solid rgba(var(--white-rgb), .45); display: grid; gap: 7px; }
.lunch-banner__list li { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-sm); line-height: 17px; }
.lunch-banner__list b { font-weight: var(--fw-bold); white-space: nowrap; }
.lunch-banner__cta { margin-top: var(--sp-3); display: flex; align-items: center; justify-content: center; gap: 6px; height: 40px; border-radius: var(--r-12); background: var(--white); color: var(--purple); font-weight: var(--fw-semibold); font-size: var(--fs-base); }
.lunch-banner__cta img { width: 12px; height: 12px; transform: rotate(-90deg); filter: invert(31%) sepia(40%) saturate(1700%) hue-rotate(255deg); }

.sheet--lunch { height: 100dvh; max-height: 100dvh; max-width: 480px; border-radius: 0; padding: 0; background: var(--bg); display: flex; flex-direction: column; overflow: hidden; }
.sheet--lunch .sheet__grip { display: none; }
.lunch { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.lunch__head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--sp-3); padding: calc(14px + var(--safe-t)) var(--sp-4) var(--sp-2); }
.lunch__head h2 { margin: 0; font-size: var(--fs-2xl); font-weight: var(--fw-bold); color: var(--purple); text-transform: uppercase; letter-spacing: .02em; }
.lunch__time { margin-top: 3px; font-size: var(--fs-xs); color: var(--muted-2); }
.lunch__time.is-off { color: var(--danger); }
.lunch__close { width: 32px; height: 32px; display: grid; place-items: center; border-radius: var(--r-full); background: var(--white); flex-shrink: 0; }
.lunch__close img { width: 18px; height: 18px; }
.lunch__progress { display: flex; gap: 6px; padding: 6px var(--sp-4) 10px; overflow-x: auto; scrollbar-width: none; }
.lunch__progress::-webkit-scrollbar { display: none; }
.lunch__seg { flex: 1 0 auto; min-width: 64px; text-align: left; display: grid; gap: var(--sp-1); font-size: var(--fs-2xs); color: var(--muted-2); }
.lunch__seg i { display: block; height: 4px; border-radius: var(--r-2); background: var(--plum-200); }
.lunch__seg span { white-space: nowrap; }
.lunch__seg.is-done i { background: var(--purple); opacity: .55; }
.lunch__seg.is-cur i { background: var(--purple); }
.lunch__seg.is-cur { color: var(--purple); font-weight: var(--fw-semibold); }
.lunch__body { flex: 1; min-height: 0; overflow-y: auto; padding: var(--sp-1) var(--sp-4) var(--sp-4); }
.lunch__h { margin: var(--sp-1) 0 var(--sp-3); font-size: var(--fs-xl); font-weight: var(--fw-semibold); color: var(--ink); }
.lunch__h small { display: block; margin-top: 2px; font-size: var(--fs-xs); font-weight: var(--fw-regular); color: var(--muted-2); }
.lunch__combos { display: grid; gap: 10px; }
.lunch-combo { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--sp-3); text-align: left; padding: 14px; border-radius: var(--r-16); background: var(--white); border: 1.5px solid transparent; box-shadow: var(--shadow); }
.lunch-combo.is-on { border-color: var(--purple); background: var(--purple-soft); }
.lunch-combo.is-stopped { opacity: .5; }
.lunch-combo__name { font-weight: var(--fw-semibold); font-size: var(--fs-md); }
.lunch-combo__name small { margin-left: 6px; font-size: var(--fs-2xs); font-weight: var(--fw-regular); color: var(--muted-2); }
.lunch-combo.has-img { grid-template-columns: 64px 1fr auto; }
.lunch-combo__img { grid-column: 1; grid-row: 1 / span 3; width: 64px; height: 64px; border-radius: var(--r-12); overflow: hidden; background: var(--plum-100); align-self: center; }
.lunch-combo__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lunch-combo.has-img .lunch-combo__name, .lunch-combo.has-img .lunch-combo__steps, .lunch-combo.has-img .lunch-combo__desc { grid-column: 2; }
.lunch-combo.has-img .lunch-combo__price { grid-column: 3; grid-row: 1 / span 3; }
.lunch-combo__desc { grid-column: 1; font-size: var(--fs-xs); line-height: 16px; color: var(--muted-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lunch-combo__steps { grid-column: 1; font-size: var(--fs-xs); color: var(--muted-2); }
.lunch-combo__price { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--purple); font-size: var(--fs-lg-plus); white-space: nowrap; }
.lunch__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.lunch-item { text-align: left; display: flex; flex-direction: column; border-radius: var(--r-16); background: var(--white); border: 1.5px solid transparent; box-shadow: var(--shadow); overflow: hidden; }
.lunch-item.is-on { border-color: var(--purple); background: var(--purple-soft); }
.lunch-item__photo { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--plum-100); }
.lunch-item__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lunch-item__photo em { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; font-size: var(--fs-5xl); color: var(--plum-300); }
.lunch-item__name { padding: var(--sp-2) 10px 0; font-size: var(--fs-sm); line-height: 16px; font-weight: var(--fw-medium); min-height: 40px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lunch-item__desc { padding: 2px 10px 0; font-size: var(--fs-2xs); line-height: 14px; color: var(--muted-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lunch-item__meta { padding: 2px 10px 10px; font-size: var(--fs-2xs); color: var(--muted-2); min-height: 25px; }
.lunch-check { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: var(--r-full); background: rgba(var(--white-rgb), .9); border: 1.5px solid var(--plum-250); display: grid; place-items: center; }
.is-on > .lunch-check, .is-on .lunch-check { background: var(--purple); border-color: var(--purple); }
.is-on > .lunch-check::after, .is-on .lunch-check::after { content: ''; width: 9px; height: 5px; border-left: 2px solid var(--white); border-bottom: 2px solid var(--white); transform: rotate(-45deg) translate(1px, -1px); }
.lunch__drinks { display: grid; gap: var(--sp-2); }
.lunch-drink { position: relative; display: flex; align-items: center; gap: var(--sp-3); padding: 10px 44px 10px 10px; border-radius: var(--r-14); background: var(--white); border: 1.5px solid transparent; box-shadow: var(--shadow); text-align: left; }
.lunch-drink.is-on { border-color: var(--purple); background: var(--purple-soft); }
.lunch-drink.is-stopped { opacity: .5; }
.lunch-drink__img { width: 48px; height: 48px; border-radius: var(--r-12); overflow: hidden; background: var(--plum-100); display: grid; place-items: center; color: var(--plum-300); font-size: var(--fs-2xl); flex-shrink: 0; }
.lunch-drink__img img { width: 100%; height: 100%; object-fit: cover; }
.lunch-drink__name { flex: 1; font-size: var(--fs-base); font-weight: var(--fw-medium); }
.lunch-drink__name small { display: block; font-size: var(--fs-2xs); font-weight: var(--fw-regular); color: var(--muted-2); }
.lunch-drink b { color: var(--purple); font-size: var(--fs-base); white-space: nowrap; }
.lunch-drink .lunch-check { top: 50%; margin-top: -12px; right: 12px; }
.lunch__foot { padding: 10px var(--sp-4) calc(14px + var(--safe-b)); background: var(--white); border-top: 1px solid var(--plum-100); box-shadow: var(--shadow-up); }
.lunch__total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-2); margin-bottom: var(--sp-2); font-size: var(--fs-base); }
.lunch__total b { color: var(--purple); font-size: var(--fs-xl); }
.lunch__total small { color: var(--muted-2); font-size: var(--fs-xs); }
.lunch__off { margin-bottom: var(--sp-2); font-size: var(--fs-xs); color: var(--danger); }
.lunch__foot .btn { min-height: 48px; }

/* Ваш официант */
.waiter-line { margin: 0 0 var(--sp-2); padding: 10px 14px; border-radius: var(--r-16); background: var(--white); font-size: var(--fs-base); color: var(--gray-700); }
.waiter-line b { color: var(--ink, var(--navy)); }

.age-modal.is-shake .age-modal__box { animation: age-shake .35s ease; }
@keyframes age-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@media (prefers-reduced-motion: reduce) { .age-modal.is-shake .age-modal__box { animation: none; } }
