/* ============================================================
   ОСУ́ДА — мобильное меню. Тёмная роскошь + золото
   ============================================================ */
:root {
  --bg: #0d0d0f;
  --bg-2: #141318;
  --card: #1a1820;
  --card-2: #211e29;
  --line: rgba(255, 255, 255, 0.08);
  --gold: #e8c468;
  --gold-deep: #c79a3e;
  --gold-soft: #f3dca0;
  --emerald: #1f7a5a;
  --cream: #f4efe6;
  --muted: #9c97a3;
  --radius: 20px;
  --shadow: 0 20px 50px -18px rgba(0, 0, 0, 0.7);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --max: 520px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg);
  color: var(--cream);
  line-height: 1.5;
  overflow-x: hidden;
  /* мягкое золотистое свечение по краям */
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(199, 154, 62, 0.18), transparent 60%),
    radial-gradient(80% 50% at 100% 100%, rgba(31, 122, 90, 0.1), transparent 60%);
  background-attachment: fixed;
}

h1, h2, h3, .serif { font-family: "Cormorant Garamond", serif; }

img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Центрируем всё в «телефонную» ширину */
#topbar, .hero, .service, .cat-nav, #menu, .foot { max-width: var(--max); margin-inline: auto; }

/* ---------- Прогресс прокрутки ---------- */
#progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-soft));
  z-index: 100; box-shadow: 0 0 12px var(--gold);
  transition: width 0.1s linear;
}

/* ---------- Верхняя панель ---------- */
#topbar {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: var(--max); z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; transition: background 0.4s, backdrop-filter 0.4s, padding 0.3s;
}
#topbar.solid {
  background: rgba(13, 13, 15, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  padding-top: 10px; padding-bottom: 10px;
}
.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { color: var(--gold); font-size: 18px; }
.brand-name {
  font-family: "Cormorant Garamond", serif; font-weight: 700;
  font-size: 22px; letter-spacing: 2px;
}
.top-actions { display: flex; align-items: center; gap: 12px; }
.table-pill {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--gold-soft);
  border: 1px solid rgba(232,196,104,0.32); border-radius: 20px; padding: 5px 11px;
  background: rgba(232,196,104,0.08);
}
.table-pill b { font-weight: 800; color: var(--gold); }
.table-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #38d27a;
  box-shadow: 0 0 0 0 rgba(56,210,122,0.6); animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(56,210,122,0.55); }
  100% { box-shadow: 0 0 0 8px rgba(56,210,122,0); }
}
.hero-meta b { color: var(--gold); font-weight: 800; }
.top-cart { position: relative; background: none; border: none; color: var(--cream); cursor: pointer; }
.cart-badge {
  position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px;
  background: var(--gold); color: #1a1206; font-size: 11px; font-weight: 800;
  border-radius: 10px; display: grid; place-items: center; padding: 0 5px;
  opacity: 0; transform: scale(0); transition: 0.3s var(--ease);
}
.cart-badge.show { opacity: 1; transform: scale(1); }

/* ---------- Герой ---------- */
.hero {
  position: relative; height: 100svh; min-height: 560px;
  display: flex; flex-direction: column; justify-content: flex-end;
  align-items: center; text-align: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: -8% 0 0 0; z-index: -2;
  background:
    url("https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1000&q=70") center/cover,
    radial-gradient(circle at 50% 40%, #2a2118, #0d0d0f);
  will-change: transform;
  animation: heroIn 1.4s var(--ease) both;
}
@keyframes heroIn { from { opacity: 0; transform: scale(1.18); } to { opacity: 1; } }
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,13,15,0.45) 0%, rgba(13,13,15,0.2) 35%, rgba(13,13,15,0.85) 78%, var(--bg) 100%);
}
.hero-content { padding: 0 26px 78px; will-change: transform, opacity; }
.hero-kicker {
  text-transform: uppercase; letter-spacing: 5px; font-size: 11px; font-weight: 700;
  color: var(--gold-soft); margin-bottom: 12px;
  animation: up 0.9s var(--ease) 0.3s both;
}
.hero-title {
  font-size: clamp(54px, 19vw, 92px); font-weight: 700; line-height: 0.92;
  letter-spacing: 3px;
  background: linear-gradient(180deg, #fff 0%, var(--gold-soft) 60%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 8px 40px rgba(199, 154, 62, 0.25);
  animation: up 1s var(--ease) 0.45s both;
}
.hero-sub {
  font-size: 16px; color: var(--cream); opacity: 0.86; margin-top: 14px;
  animation: up 1s var(--ease) 0.6s both;
}
.hero-meta {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 16px; font-size: 13px; color: var(--muted); font-weight: 600;
  animation: up 1s var(--ease) 0.72s both;
}
.hero-meta span:first-child { color: var(--gold); }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.hero-cta {
  display: inline-block; margin-top: 26px; padding: 15px 40px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.5px; text-decoration: none;
  color: #1a1206; border-radius: 40px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  box-shadow: 0 14px 34px -10px rgba(232, 196, 104, 0.6);
  animation: up 1s var(--ease) 0.85s both, glow 3s ease-in-out 2s infinite;
  position: relative; overflow: hidden;
}
.hero-cta::after {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.6), transparent);
  animation: shine 3.5s ease-in-out 2.5s infinite;
}
@keyframes shine { 0% { left: -120%; } 60%, 100% { left: 140%; } }
@keyframes glow {
  0%, 100% { box-shadow: 0 14px 34px -10px rgba(232, 196, 104, 0.6); }
  50% { box-shadow: 0 14px 44px -6px rgba(232, 196, 104, 0.9); }
}
@keyframes up { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* поднимающийся «пар» */
.steam { position: absolute; bottom: 30%; left: 50%; transform: translateX(-50%); z-index: -1; }
.steam span {
  position: absolute; bottom: 0; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.5), transparent 70%);
  filter: blur(4px); opacity: 0;
  animation: steam 6s ease-in infinite;
}
.steam span:nth-child(1) { left: -30px; animation-delay: 0s; }
.steam span:nth-child(2) { left: 0; animation-delay: 2s; }
.steam span:nth-child(3) { left: 30px; animation-delay: 4s; }
@keyframes steam {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  20% { opacity: 0.5; }
  100% { transform: translateY(-160px) scale(2.4); opacity: 0; }
}
.scroll-hint {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 34px; border: 2px solid rgba(255,255,255,0.3); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 8px; border-radius: 4px; background: var(--gold);
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; top: 7px; } 30% { opacity: 1; } 60% { opacity: 1; } 100% { opacity: 0; top: 20px; } }

/* ---------- Быстрое обслуживание (под обложкой) ---------- */
.service { padding: 26px 16px 6px; }
.service-head {
  display: flex; align-items: center; gap: 14px; margin-bottom: 16px;
}
.service-head p {
  font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold-soft); white-space: nowrap;
}
.sh-line { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.svc-btn {
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 15px 6px 13px; border-radius: 18px; cursor: pointer;
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line); color: var(--cream);
  font-family: inherit; font-size: 12.5px; font-weight: 600;
  transition: transform 0.2s var(--ease), border-color 0.25s, box-shadow 0.25s;
}
.svc-btn b { font-weight: 600; }
.svc-ic {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: var(--gold); background: rgba(232,196,104,0.09);
  border: 1px solid rgba(232,196,104,0.24);
  transition: background 0.25s, transform 0.25s var(--ease);
}
.svc-ic svg { width: 26px; height: 26px; }
.svc-btn:active { transform: scale(0.94); }
.svc-btn:active .svc-ic { background: rgba(232,196,104,0.2); }
.svc-btn.sent {
  border-color: rgba(232,196,104,0.5);
  box-shadow: 0 10px 26px -12px rgba(232,196,104,0.6);
}
.svc-btn.sent .svc-ic { animation: svcPing 0.5s var(--ease); }
@keyframes svcPing {
  0% { transform: scale(1); } 40% { transform: scale(1.18); background: var(--gold); color: #1a1206; } 100% { transform: scale(1); }
}
@media (hover: hover) {
  .svc-btn:hover { border-color: rgba(232,196,104,0.4); transform: translateY(-2px); }
  .svc-btn:hover .svc-ic { background: rgba(232,196,104,0.16); }
}

/* ---------- Навигация категорий ---------- */
.cat-nav {
  position: sticky; top: 56px; z-index: 50;
  display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none;
  padding: 12px 16px; margin-top: -2px;
  background: rgba(13, 13, 15, 0.82); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  scroll-padding: 16px;
}
.cat-nav::-webkit-scrollbar { display: none; }
.pill {
  flex: 0 0 auto; display: flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 30px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line);
  color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap;
  transition: 0.35s var(--ease);
}
.pill .pill-count { margin-left: 5px; font-size: 12px; opacity: 0.55; font-weight: 600; }
.pill.active {
  color: #1a1206; border-color: transparent;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  box-shadow: 0 8px 20px -8px rgba(232, 196, 104, 0.7);
  transform: translateY(-1px);
}

/* ---------- Категории и карточки ---------- */
#menu { padding: 8px 16px 60px; }
.category { padding-top: 30px; }
.cat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.cat-head h2 { font-size: 30px; font-weight: 700; letter-spacing: 0.5px; }
.cat-head h2 .cat-count { margin-left: 9px; font-size: 18px; font-weight: 600; opacity: 0.4; letter-spacing: 0; }
.cat-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--line), transparent); }

.cards { display: flex; flex-direction: column; gap: 14px; }
.card {
  display: flex; gap: 14px; padding: 12px; align-items: center;
  background: linear-gradient(150deg, var(--card-2), var(--card));
  border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); cursor: pointer;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: linear-gradient(120deg, transparent 40%, rgba(232,196,104,0.06));
  opacity: 0; transition: 0.4s;
}
.card:active { transform: scale(0.98); }
@media (hover: hover) {
  .card:hover { transform: translateY(-3px); border-color: rgba(232,196,104,0.35); box-shadow: 0 26px 46px -18px rgba(0,0,0,0.8); }
  .card:hover::before { opacity: 1; }
}
.card-img {
  width: 96px; height: 96px; flex: 0 0 auto; border-radius: 15px; overflow: hidden;
  position: relative; background: var(--bg-2);
}
.card-img.noimg, .im-img.noimg {
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(232,196,104,0.28), transparent 60%),
    linear-gradient(150deg, #2a2433, #15131b);
}
.card-img.noimg::after, .im-img.noimg::after {
  content: attr(data-emoji); font-size: 42px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.5));
}
/* Видео блюда: лежит поверх фото (фото — постер и запасной вариант) */
.card-vid, .im-vid {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 1; background: var(--bg-2);
}
/* Значок «видео» в углу карточки — подсказка, что блюдо оживает */
.card-img .vid-tag {
  position: absolute; bottom: 6px; right: 6px; z-index: 2;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(10,10,12,0.55); backdrop-filter: blur(3px);
  display: grid; place-items: center; color: #fff;
}
.card-img .vid-tag svg { width: 11px; height: 11px; }
.badge {
  position: absolute; top: 7px; left: 7px; z-index: 2;
  font-size: 10px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  color: #1a1206; padding: 3px 8px; border-radius: 20px;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  box-shadow: 0 4px 10px -3px rgba(0,0,0,0.6);
}
.card-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.card-body h3 { font-size: 21px; font-weight: 600; line-height: 1.1; }
.card-body p {
  font-size: 12.5px; color: var(--muted); margin: 5px 0 10px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-foot { display: flex; align-items: center; justify-content: space-between; }
.price { font-size: 17px; font-weight: 800; color: var(--gold); letter-spacing: 0.3px; }
.add {
  width: 38px; height: 38px; flex: 0 0 auto; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(232,196,104,0.4); color: var(--gold);
  background: rgba(232,196,104,0.08);
  display: grid; place-items: center; transition: 0.25s var(--ease);
}
.add:active { transform: scale(0.85); }
.add.pop { animation: pop 0.4s var(--ease); }
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.3); background: var(--gold); color: #1a1206; }
  100% { transform: scale(1); }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.show { opacity: 1; transform: none; }

/* ---------- «Летящее» блюдо ---------- */
.fly {
  position: fixed; z-index: 200; font-size: 30px; pointer-events: none;
  transform: translate(-50%, -50%);
  transition: transform 0.7s cubic-bezier(0.5, -0.4, 0.4, 1), opacity 0.7s ease;
}

/* ---------- Плавающая кнопка ---------- */
.fab {
  position: fixed; bottom: 22px; right: 22px; z-index: 70;
  width: 60px; height: 60px; border-radius: 20px; cursor: pointer; border: none;
  color: #1a1206; background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  box-shadow: 0 16px 34px -10px rgba(232,196,104,0.7);
  display: grid; place-items: center;
  transform: translateY(120px) scale(0.6); opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.3s;
}
.fab.show { transform: none; opacity: 1; }
.fab.bump { animation: bump 0.45s var(--ease); }
@keyframes bump { 0%,100% { transform: scale(1); } 35% { transform: scale(1.15) rotate(-6deg); } }
.fab-count {
  position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px;
  background: var(--bg); color: var(--gold); border: 2px solid var(--gold);
  font-size: 12px; font-weight: 800; border-radius: 12px;
  display: grid; place-items: center; padding: 0 5px;
}
@media (min-width: 520px) { .fab { right: calc(50% - 260px + 22px); } }

/* ---------- Затемнение ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,0.6);
  backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: 0.35s;
}
.backdrop.show { opacity: 1; visibility: visible; }

/* ---------- Нижний лист корзины ---------- */
.sheet {
  position: fixed; bottom: 0; left: 50%; transform: translate(-50%, 100%);
  width: 100%; max-width: var(--max); z-index: 90;
  background: var(--bg-2); border-radius: 26px 26px 0 0;
  border: 1px solid var(--line); border-bottom: none;
  box-shadow: 0 -20px 60px rgba(0,0,0,0.6);
  display: flex; flex-direction: column; max-height: 82vh;
  transition: transform 0.5s var(--ease);
}
.sheet.open { transform: translate(-50%, 0); }
.sheet-grip { width: 42px; height: 5px; border-radius: 3px; background: var(--line); margin: 12px auto 4px; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 8px 22px 14px; }
.sheet-head h2 { font-size: 26px; font-weight: 700; line-height: 1; }
.sheet-table { font-size: 13px; color: var(--muted); }
.sheet-table b { color: var(--gold); font-weight: 800; }
.icon-btn {
  width: 34px; height: 34px; border-radius: 11px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--muted); font-size: 15px;
}
.cart-list { overflow-y: auto; padding: 0 18px; flex: 1; }
.cart-empty { text-align: center; padding: 50px 0; color: var(--muted); }
.cart-empty span { display: grid; place-items: center; margin: 0 auto 14px; color: var(--gold); opacity: 0.55; }
.cart-empty p { font-size: 18px; color: var(--cream); }
.cart-empty small { font-size: 13px; }
.cart-row {
  display: flex; align-items: center; gap: 13px; padding: 13px 0;
  border-bottom: 1px solid var(--line);
  animation: rowIn 0.4s var(--ease) both;
}
@keyframes rowIn { from { opacity: 0; transform: translateX(20px); } }
.cart-emoji {
  width: 48px; height: 48px; flex: 0 0 auto; border-radius: 13px; font-size: 24px;
  display: grid; place-items: center;
  background: linear-gradient(150deg, #2a2433, #15131b); border: 1px solid var(--line);
}
.cart-info { flex: 1; min-width: 0; }
.cart-info strong { display: block; font-size: 15px; font-weight: 700; }
.cart-info span { font-size: 13px; color: var(--gold); font-weight: 700; }
.qty {
  display: flex; align-items: center; gap: 4px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 3px;
}
.qty button {
  width: 30px; height: 30px; border-radius: 9px; cursor: pointer; border: none;
  background: transparent; color: var(--gold); font-size: 18px; font-weight: 700;
  transition: 0.2s;
}
.qty button:active { background: rgba(232,196,104,0.15); transform: scale(0.9); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: 15px; }
.sheet-foot { padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.total-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.total-row span { color: var(--muted); font-weight: 600; }
.total-row strong { font-size: 26px; font-weight: 800; color: var(--gold); font-family: "Cormorant Garamond", serif; }
.order-btn {
  width: 100%; padding: 16px; border: none; border-radius: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font-size: 16px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #25a55d, var(--emerald));
  box-shadow: 0 14px 30px -10px rgba(31,122,90,0.7);
  transition: 0.25s var(--ease);
}
.order-btn:active { transform: scale(0.97); }
.order-btn.disabled { opacity: 0.4; pointer-events: none; }
.sheet-note { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 10px; }

/* ---------- Чаевые официанту ---------- */
.tip-block { margin-bottom: 16px; }
.tip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tip-head span { font-weight: 700; font-size: 14px; color: var(--cream); display: inline-flex; align-items: center; gap: 7px; }
.tip-heart { width: 17px; height: 17px; color: var(--gold); }
.tip-head small { font-size: 11px; color: var(--muted); }
.tip-chips { display: flex; gap: 8px; }
.tip-chip {
  flex: 1; padding: 11px 4px; border-radius: 12px; cursor: pointer;
  background: var(--card-2); border: 1px solid var(--line); color: var(--cream);
  font-family: inherit; font-weight: 700; font-size: 14px;
  transition: 0.2s var(--ease);
}
.tip-chip:active { transform: scale(0.94); }
.tip-chip.active {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  border-color: var(--gold); color: #2a2207;
  box-shadow: 0 8px 20px -8px rgba(232, 196, 104, 0.6);
}
.tip-custom { margin-top: 10px; }
.tip-custom input {
  width: 100%; padding: 12px 14px; border-radius: 12px; outline: none;
  background: var(--card-2); border: 1px solid var(--line); color: var(--cream);
  font-family: inherit; font-size: 15px; font-weight: 600;
}
.tip-custom input:focus { border-color: var(--gold); }
.sum-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; font-size: 14px; }
.sum-row span { color: var(--muted); font-weight: 600; }
.sum-row b { color: var(--cream); font-weight: 700; }
.sum-row.tip-line b { color: var(--gold); }
.sum-row em { font-style: normal; color: var(--gold-deep); font-size: 12px; }
.done-tip span { color: var(--gold-soft); }

/* ---------- Модалка блюда ---------- */
.item-modal {
  position: fixed; inset: 0; z-index: 95; display: grid; place-items: center;
  padding: 20px; opacity: 0; visibility: hidden;
  background: rgba(0,0,0,0.55); backdrop-filter: blur(4px);
  transition: opacity 0.35s, visibility 0.35s;
}
.item-modal.open { opacity: 1; visibility: visible; }
.im-card {
  width: 100%; max-width: 440px; background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 24px; overflow: hidden;
  box-shadow: var(--shadow); position: relative;
  transform: scale(0.85) translateY(20px); transition: transform 0.4s var(--ease);
}
.item-modal.open .im-card { transform: none; }
.im-close {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px; border-radius: 12px; cursor: pointer; border: none;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(6px); color: #fff; font-size: 15px;
}
.im-img { width: 100%; height: 240px; position: relative; background: var(--bg); }
.im-img::after { font-size: 70px; }
.im-img img { animation: imgZoom 6s ease-out both; }
@keyframes imgZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.im-body { padding: 20px 22px 24px; }
.im-body h2 { font-size: 30px; font-weight: 700; line-height: 1.05; }
.im-body p { color: var(--muted); font-size: 14.5px; margin-top: 8px; }
/* Выбор порции в модалке */
.im-portions { display: flex; flex-direction: column; gap: 11px; margin-top: 20px; }
.im-portions[hidden] { display: none; }
.port-heading {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
  color: var(--gold);
}
.port-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.port-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 3px;
  padding: 11px 16px; border-radius: 14px; cursor: pointer; min-width: 120px;
  background: var(--card); border: 1.5px solid var(--line); color: var(--muted);
  transition: 0.2s var(--ease);
}
.port-chip span { font-size: 13px; font-weight: 600; }
.port-chip b { font-size: 17px; font-weight: 700; color: var(--cream); font-family: "Cormorant Garamond", serif; }
.port-chip.active {
  border-color: transparent; color: #1a1206;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  box-shadow: 0 8px 20px -10px rgba(232, 196, 104, 0.7);
}
.port-chip.active b { color: #1a1206; }

/* Заметный значок «выбор порции» на карточке меню */
.price-wrap { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; min-width: 0; }
.port-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px 3px 8px; border-radius: 20px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px;
  color: var(--gold); background: rgba(232, 196, 104, 0.14);
  border: 1px solid rgba(232, 196, 104, 0.45); white-space: nowrap;
}
.port-badge svg { flex: 0 0 auto; }

.im-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 22px; }
.im-price { font-size: 26px; font-weight: 800; color: var(--gold); font-family: "Cormorant Garamond", serif; }
.im-add {
  flex: 1; max-width: 220px; padding: 15px; border: none; border-radius: 14px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #1a1206;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  box-shadow: 0 12px 26px -10px rgba(232,196,104,0.6);
  transition: 0.25s var(--ease);
}
.im-add:active { transform: scale(0.95); }

/* ---------- Подвал ---------- */
.foot {
  text-align: center; padding: 48px 26px calc(110px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); margin-top: 20px;
  background: radial-gradient(120% 80% at 50% 0%, rgba(199,154,62,0.08), transparent 60%);
}
.foot-mark { font-size: 30px; color: var(--gold); margin-bottom: 6px; }
.foot h3 { font-size: 34px; font-weight: 700; letter-spacing: 2px; }
.foot-tag { color: var(--muted); font-size: 14px; margin-top: 4px; }
.foot-info { display: flex; flex-direction: column; gap: 14px; margin: 30px 0; }
.foot-info > div { display: flex; align-items: center; gap: 12px; justify-content: center; }
.foot-info span { display: grid; place-items: center; color: var(--gold); }
.foot-info span svg { width: 19px; height: 19px; }
.foot-info p, .foot-info a { font-size: 14px; color: var(--cream); text-decoration: none; }
.foot-info a { color: var(--gold); font-weight: 700; }
.foot-copy { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ---------- Экран «Заказ принят» ---------- */
.order-done {
  position: fixed; inset: 0; z-index: 110; display: grid; place-items: center;
  padding: 22px; opacity: 0; visibility: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(31,122,90,0.25), rgba(0,0,0,0.7));
  backdrop-filter: blur(8px); transition: opacity 0.4s, visibility 0.4s;
}
.order-done.open { opacity: 1; visibility: visible; }
.done-card {
  width: 100%; max-width: 420px; text-align: center;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 26px;
  padding: 34px 24px 26px; box-shadow: var(--shadow);
  transform: scale(0.8) translateY(30px); transition: transform 0.5s var(--ease);
}
.order-done.open .done-card { transform: none; }
.done-check {
  width: 88px; height: 88px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle, rgba(56,210,122,0.18), transparent 70%);
}
.done-check svg { width: 88px; height: 88px; }
.done-check circle {
  stroke: #38d27a; stroke-width: 2.5;
  stroke-dasharray: 151; stroke-dashoffset: 151;
  animation: drawCircle 0.6s var(--ease) 0.15s forwards;
}
.done-check path {
  stroke: #38d27a; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 48; stroke-dashoffset: 48;
  animation: drawCheck 0.4s var(--ease) 0.6s forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.done-card h2 { font-size: 32px; font-weight: 700; animation: up 0.5s var(--ease) 0.7s both; }
.done-sub { color: var(--muted); font-size: 14px; margin-top: 6px; animation: up 0.5s var(--ease) 0.8s both; }
.done-table {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 20px auto 16px; padding: 12px 20px; border-radius: 16px; width: fit-content;
  background: rgba(232,196,104,0.08); border: 1px solid rgba(232,196,104,0.28);
  animation: up 0.5s var(--ease) 0.9s both;
}
.done-table > span { color: var(--muted); font-size: 14px; }
.done-table strong { font-size: 26px; color: var(--gold); font-family: "Cormorant Garamond", serif; }
.done-time { font-size: 12px !important; }
.done-time b { color: var(--cream); }
.done-list { text-align: left; margin: 4px 0 12px; border-top: 1px solid var(--line); }
.done-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.done-row span { color: var(--cream); }
.done-row b { color: var(--gold); white-space: nowrap; }
.done-total-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 2px 16px; }
.done-total-row span { color: var(--muted); font-weight: 600; }
.done-total-row strong { font-size: 24px; color: var(--gold); font-family: "Cormorant Garamond", serif; }
.done-btn {
  width: 100%; padding: 15px; border: none; border-radius: 15px; cursor: pointer;
  font-size: 15px; font-weight: 700; color: #1a1206;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  box-shadow: 0 12px 26px -10px rgba(232,196,104,0.6); transition: 0.25s var(--ease);
}
.done-btn:active { transform: scale(0.97); }

/* ---------- Колокольчик (вызов официанта) ---------- */
.top-bell {
  position: relative; background: none; border: none; cursor: pointer;
  color: var(--gold-soft); padding: 0; display: grid; place-items: center;
  transition: transform 0.2s var(--ease);
}
.top-bell:active { transform: scale(0.88); }
.top-bell.ring svg { animation: bellRing 0.6s ease; transform-origin: 50% 2px; }
@keyframes bellRing {
  0%,100% { transform: rotate(0); }
  20% { transform: rotate(16deg); } 40% { transform: rotate(-13deg); }
  60% { transform: rotate(8deg); } 80% { transform: rotate(-5deg); }
}

.call-sheet .call-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 4px 18px 2px;
}
.call-opt {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 18px 10px; border-radius: 16px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); color: var(--cream);
  font-size: 13.5px; font-weight: 600; text-align: center;
  transition: transform 0.18s var(--ease), border-color 0.2s, background 0.2s;
}
.call-opt span {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  color: var(--gold); background: rgba(232,196,104,0.09); border: 1px solid rgba(232,196,104,0.22);
}
.call-opt span svg { width: 26px; height: 26px; }
.call-opt:active { transform: scale(0.95); }
.call-opt:hover { border-color: rgba(232,196,104,0.4); background: var(--card-2); }

/* ---------- Тост ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px);
  z-index: 120; max-width: 88%; padding: 13px 20px; border-radius: 14px;
  background: linear-gradient(150deg, #211b0f, #15110a);
  border: 1px solid rgba(232,196,104,0.5); color: var(--gold-soft);
  font-size: 13.5px; font-weight: 600; text-align: center; line-height: 1.4;
  box-shadow: 0 16px 40px rgba(0,0,0,0.5); opacity: 0; pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

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

/* ---------- Заказ не дошёл до кухни ---------- */
.done-warn {
  display: grid;
  gap: 5px;
  margin: 0 0 14px;
  padding: 13px 15px;
  border-radius: 14px;
  background: rgba(240, 88, 79, 0.1);
  border: 1px solid rgba(240, 88, 79, 0.42);
}
.done-warn b { font-size: 14px; color: #ff8078; }
.done-warn span { font-size: 12.5px; line-height: 1.45; color: var(--cream); opacity: 0.9; }
#toast.warn {
  background: #f0584f;
  color: #fff;
  font-weight: 600;
}
