:root {
  --bg: #0c0c0f;
  --bg-2: #121218;
  --panel: #17171d;
  --panel2: #1e1e26;
  --panel3: #26262f;
  --ink: #f5f1ea;
  --muted: #a7a7b1;
  --faint: #87878f;
  --red: #d01828;
  --red-hi: #ea3646;
  --red-text: #ec6a71;
  --red-deep: #9c1320;
  --gold: #d6ad60;
  --green: #4cc24a;
  --line: rgba(208, 24, 40, 0.32);
  --line-soft: rgba(255, 255, 255, 0.09);
  --hair: rgba(245, 241, 234, 0.14);
  --grad-red: linear-gradient(135deg, #ef4b57 0%, #d01828 52%, #9c1320 100%);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 999px;
  --sh-1: 0 10px 30px rgba(0, 0, 0, 0.42);
  --sh-2: 0 28px 60px rgba(0, 0, 0, 0.6);
  --glow: 0 0 26px rgba(208, 24, 40, 0.4);
  --ease: cubic-bezier(0.22, 0.8, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scrollbar-color: var(--red-deep) var(--bg); }

body {
  background: #090909;
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: rgba(208, 24, 40, 0.42); color: #fff; }

button { font-family: inherit; color: inherit; background: none; border: none; cursor: pointer; }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.hidden { display: none !important; }

#ambient {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.frame {
  position: fixed;
  inset: 12px;
  border: 1px solid var(--hair);
  pointer-events: none;
  z-index: 70;
}
.frame::before {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(208, 24, 40, 0.16);
}

.overline {
  font-size: 11px;
  letter-spacing: 0.44em;
  text-transform: uppercase;
  color: var(--red-text);
  font-weight: 500;
}
.orn { width: 220px; height: 24px; color: var(--red); opacity: 0.9; display: block; }

.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 34px;
  background: linear-gradient(180deg, rgba(12, 12, 15, 0.92), rgba(12, 12, 15, 0.66));
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line-soft);
  z-index: 50;
}
.tb-side { display: flex; align-items: center; gap: 16px; }
.tb-right { justify-content: flex-end; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 12px 12px 8px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}
.back-btn svg { width: 16px; height: 16px; }
.back-btn:hover { color: var(--red-hi); }

.brand { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; gap: 4px; min-height: 44px; }
.brand-name {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: 0.06em;
  background: linear-gradient(180deg, #ffffff 6%, #cec7bb 82%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand-sub {
  font-size: 9px;
  letter-spacing: 0.44em;
  text-indent: 0.44em;
  text-transform: uppercase;
  color: var(--muted);
}

.langs { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 40px;
  padding: 12px 10px;
  position: relative;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: var(--faint);
  transition: color 0.25s;
}
.lang-btn:hover { color: var(--ink); }
.lang-btn.active { color: var(--red-hi); }
.lang-btn.active::after {
  content: "";
  position: absolute;
  left: 9px; right: 9px; bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-red);
}
.lang-sep { color: var(--faint); font-size: 10px; opacity: 0.5; }

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 7px 15px;
  border: 1px solid rgba(76, 194, 74, 0.45);
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(76, 194, 74, 0.14), rgba(76, 194, 74, 0.06));
  color: var(--ink);
  transition: border-color 0.3s, background 0.3s;
}
.status-pill #statusText { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.status-pill b { font-size: 12px; font-weight: 600; }
.status-pill em { font-style: normal; font-size: 11px; color: var(--muted); }
.status-pill.ready { border-color: rgba(76, 194, 74, 0.85); background: rgba(76, 194, 74, 0.2); }
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
  animation: pulse 2s ease-in-out infinite;
}

main { position: relative; z-index: 1; max-width: 1260px; margin: 0 auto; padding: 110px 46px 160px; }

.view { display: none; }
.view.active { display: block; animation: rise 0.5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.reveal { opacity: 0; }
.reveal.in { animation: revealUp 0.7s var(--ease) both; animation-delay: calc(var(--i, 0) * 55ms); }
@keyframes revealUp {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}

.hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-2);
  background:
    linear-gradient(180deg, rgba(10, 10, 13, 0.32) 0%, rgba(10, 10, 13, 0.76) 56%, rgba(12, 12, 15, 0.98) 100%),
    url("../img/burger-cheese-hero.jpg") center 34% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 11px;
  border: 1px solid rgba(245, 241, 234, 0.1);
  border-radius: calc(var(--r-lg) - 8px);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; padding: 116px 48px 46px; }
.hero-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.9vw, 48px);
  line-height: 1.08;
  letter-spacing: 0.012em;
  margin: 12px 0 16px;
  text-shadow: 0 6px 34px rgba(0, 0, 0, 0.55);
}
.hero .orn { margin-bottom: 18px; }
.hero-sub { color: #cfc9c0; font-size: 13.5px; letter-spacing: 0.05em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-actions .btn-accent,
.hero-actions .btn-ghost { width: auto; margin: 0; padding: 14px 24px; }

.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(284px, 1fr)); gap: 18px; }

.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: left;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: linear-gradient(170deg, var(--panel2), var(--panel));
  box-shadow: var(--sh-1);
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.cat-card:hover { transform: translateY(-6px); border-color: var(--line); box-shadow: var(--sh-2); }
.cat-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--panel2); }
.cat-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.5s ease;
}
.cat-media.loaded img { opacity: 1; }
.cat-card:hover .cat-media img { transform: scale(1.07); }
.cat-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 10, 13, 0.04) 30%, rgba(10, 10, 13, 0.84) 100%);
}
.cat-media.ornament-media { display: flex; align-items: center; justify-content: center; }
.cat-media.ornament-media::after { display: none; }
.cat-media .orn { width: 150px; opacity: 0.5; }
.cat-index {
  position: absolute;
  top: 14px; left: 16px;
  z-index: 2;
  font-family: var(--serif);
  font-style: italic;
  font-size: 24px;
  color: #fff;
  opacity: 0.9;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
}
.cat-body { position: relative; padding: 15px 17px 16px; }
.cat-count { display: block; font-size: 10px; letter-spacing: 0.3em; text-transform: uppercase; color: var(--faint); }
.cat-name { font-family: var(--serif); font-weight: 500; font-size: 18px; letter-spacing: 0.01em; margin: 5px 0 0; padding-right: 48px; }
.cat-arrow {
  position: absolute;
  right: 15px; bottom: 15px;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-red);
  color: #fff;
  box-shadow: var(--glow);
  transition: transform 0.35s var(--ease);
}
.cat-arrow svg { width: 16px; height: 16px; }
.cat-card:hover .cat-arrow { transform: translateX(3px); }
.cat-num { display: none; }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin: -8px 0 32px; }
.pill {
  position: relative;
  overflow: hidden;
  min-height: 42px;
  padding: 11px 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.pill:hover { color: var(--ink); border-color: var(--line); }
.pill.active { background: var(--grad-red); border-color: transparent; color: #fff; font-weight: 600; box-shadow: var(--glow); }

.cat-head { text-align: center; padding: 4px 0 32px; }
.view-title { font-family: var(--serif); font-weight: 500; font-size: clamp(22px, 2.5vw, 32px); margin: 10px 0 14px; }
.cat-head .orn { margin: 0 auto; }

.dishes { display: grid; grid-template-columns: repeat(auto-fill, minmax(294px, 1fr)); gap: 20px; }

.dish-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: linear-gradient(170deg, var(--panel2), var(--panel));
  box-shadow: var(--sh-1);
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s, border-color 0.4s;
}
.dish-card:hover { transform: translateY(-5px); border-color: var(--line); box-shadow: var(--sh-2); }
.dish-card.tilting {
  transform: perspective(940px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-5px);
  border-color: var(--line);
  box-shadow: var(--sh-2);
}
.dish-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, 0.13), transparent 62%);
}
.dish-card.tilting::before { opacity: 1; }

.dish-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--panel2); }
.dish-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: transform 0.9s var(--ease), opacity 0.5s ease;
  filter: saturate(0.96) contrast(1.03);
}
.dish-media.loaded img { opacity: 1; }
.dish-card:hover .dish-media img { transform: scale(1.06); }
.dish-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 46%, rgba(10, 10, 13, 0.82) 100%);
}
.dish-media.ornament-media { display: flex; align-items: center; justify-content: center; }
.dish-media.ornament-media::after { display: none; }
.dish-media .orn { width: 150px; opacity: 0.5; }

.dish-price {
  position: absolute;
  left: 0; bottom: 0;
  z-index: 2;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 7px 13px;
  border-top-right-radius: 10px;
  background: rgba(12, 12, 15, 0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-family: var(--serif);
  font-size: 16px;
  color: var(--ink);
}
.dish-price small { font-size: 10px; color: var(--muted); letter-spacing: 0.12em; }

.dish-body { padding: 15px 17px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.dish-name { font-family: var(--serif); font-weight: 500; font-size: 17px; line-height: 1.28; letter-spacing: 0.005em; }
.dish-desc {
  flex: 1;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 2px; }
.dish-info { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }

.add-circle {
  position: relative;
  overflow: hidden;
  width: 46px; height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--grad-red);
  color: #fff;
  box-shadow: var(--glow);
  transition: transform 0.3s var(--ease), filter 0.3s;
}
.add-circle svg { width: 18px; height: 18px; }
.add-circle:hover { filter: brightness(1.08); transform: rotate(90deg) scale(1.04); }

.ribbon {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border: 1px solid rgba(234, 54, 70, 0.6);
  border-radius: var(--r-pill);
  background: rgba(12, 12, 15, 0.66);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  font-size: 9.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: 0 0 18px rgba(208, 24, 40, 0.35);
}
.ribbon-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--red-hi);
  box-shadow: 0 0 8px var(--red-hi);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.65); }
}

.tag-row { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  padding: 6px 13px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--red-text);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}
.tag.hot { color: #e79a9a; border-color: rgba(208, 24, 40, 0.6); }

.cart-wrap { display: grid; grid-template-columns: 1fr 356px; gap: 24px; align-items: start; }
.cart-list { display: flex; flex-direction: column; gap: 14px; }

.cart-row {
  position: relative;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: linear-gradient(170deg, var(--panel2), var(--panel));
  box-shadow: var(--sh-1);
}
.cart-thumb {
  width: 80px; height: 80px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--hair);
}
.cart-thumb.ornament-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(closest-side, rgba(208, 24, 40, 0.18), transparent 80%), var(--panel2);
}
.cart-thumb .orn { width: 46px; opacity: 0.55; }
.cart-name { font-family: var(--serif); font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.cart-desc {
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-right { display: flex; align-items: center; gap: 16px; }
.cart-line-price { min-width: 86px; text-align: right; font-family: var(--serif); font-size: 16px; color: var(--ink); }
.cart-line-price small { font-size: 11px; color: var(--muted); letter-spacing: 0.1em; }
.cart-remove {
  position: absolute;
  top: 4px; right: 6px;
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--faint);
  font-size: 15px;
  line-height: 1;
  transition: color 0.25s, background 0.25s;
}
.cart-remove:hover { color: #e79a9a; background: rgba(208, 24, 40, 0.1); }

.stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
.stepper button {
  width: 40px; height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--red-hi);
  font-size: 16px;
  transition: background 0.25s;
}
.stepper button:hover { background: rgba(208, 24, 40, 0.18); }
.stepper span { min-width: 34px; text-align: center; font-size: 14px; font-weight: 500; }

.summary {
  position: sticky;
  top: 100px;
  padding: 24px;
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, var(--panel3), var(--panel));
  box-shadow: var(--sh-2);
}
.sum-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 8px 0;
  font-size: 14px;
  color: var(--muted);
}
.sum-row b { font-family: var(--serif); font-size: 16px; font-weight: 400; color: var(--ink); }
.sum-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px dashed var(--hair);
}
.sum-total .lbl { font-family: var(--serif); font-size: 18px; letter-spacing: 0.06em; }
.sum-total .val { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.sum-total .val small { font-size: 13px; color: var(--muted); letter-spacing: 0.12em; }

.btn-accent {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 20px;
  padding: 16px 22px;
  border-radius: var(--r-sm);
  background: var(--grad-red);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  box-shadow: var(--glow);
  transition: filter 0.3s, transform 0.2s;
}
.btn-accent:hover { filter: brightness(1.08); }
.btn-accent:active { transform: scale(0.985); }
.btn-accent::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-20deg);
  animation: shine 3.8s ease-in-out infinite;
}
@keyframes shine { 0%, 58% { left: -70%; } 86%, 100% { left: 130%; } }

.btn-ghost {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin-top: 12px;
  padding: 17px 22px;
  border: 1px solid var(--hair);
  border-radius: var(--r-sm);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transition: background 0.25s, border-color 0.25s;
}
.btn-ghost:hover { border-color: var(--red); background: rgba(208, 24, 40, 0.12); }

.note-box {
  margin-top: 18px;
  padding: 15px 16px;
  border: 1px solid rgba(208, 24, 40, 0.5);
  border-radius: var(--r-sm);
  background: rgba(208, 24, 40, 0.14);
  color: #ecd9d4;
  font-size: 12.5px;
  line-height: 1.6;
  text-align: center;
}

.tracker {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
}
.tracker-head { display: flex; align-items: center; gap: 12px; }
.tracker-head svg { width: 30px; height: 30px; color: var(--red-hi); flex: 0 0 auto; }
.tracker-head b { display: block; font-family: var(--serif); font-size: 15px; font-weight: 500; }
.tracker-head em { font-style: normal; font-size: 12px; color: var(--muted); }
.tracker-bar { position: relative; height: 3px; margin: 20px 0 14px; border-radius: 3px; background: rgba(255, 255, 255, 0.12); }
.tracker-bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: var(--grad-red); transition: width 0.6s ease; }
.tracker-bar span::after {
  content: "";
  position: absolute;
  right: 0; top: 50%;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--red-hi);
  box-shadow: 0 0 12px var(--red-hi);
  transform: translate(50%, -50%);
}
.tracker-steps { display: flex; justify-content: space-between; gap: 8px; }
.step { display: flex; align-items: center; gap: 7px; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.step i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.step.on { color: var(--muted); }
.step.on i { background: var(--red); }
.step.now { color: var(--ink); }
.step.now i { background: var(--red-hi); box-shadow: 0 0 8px var(--red-hi); }

.cart-empty { padding: 74px 20px; text-align: center; color: var(--muted); }
.cart-empty .orn { margin: 0 auto 22px; }
.cart-empty h3 { font-family: var(--serif); font-size: 21px; font-weight: 500; color: var(--ink); margin-bottom: 10px; }
.cart-empty p { font-size: 14px; margin-bottom: 26px; }
.cart-empty .btn-accent { width: auto; display: inline-block; padding: 16px 44px; }

.bottombar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: linear-gradient(0deg, rgba(12, 12, 15, 0.96), rgba(12, 12, 15, 0.72));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft);
  z-index: 50;
}
.tab {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 10px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color 0.3s;
}
.tab svg { width: 17px; height: 17px; }
.tab:hover { color: var(--muted); }
.tab.active { color: var(--red-hi); }
.tab.active::before {
  content: "";
  position: absolute;
  top: 0; left: 18%; right: 18%;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-red);
  box-shadow: 0 0 14px rgba(208, 24, 40, 0.7);
}
.badge {
  font-style: normal;
  min-width: 20px; height: 20px;
  padding: 0 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--grad-red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  box-shadow: var(--glow);
}
.badge.pop { animation: badgePop 0.45s var(--ease); }
@keyframes badgePop { 0% { transform: scale(1); } 40% { transform: scale(1.5); } 100% { transform: scale(1); } }

.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: center; justify-content: center; padding: 30px; }
.modal-back { position: absolute; inset: 0; background: rgba(8, 8, 10, 0.84); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  background: linear-gradient(170deg, #22222b, var(--panel));
  box-shadow: var(--sh-2);
  display: grid;
  grid-template-columns: 360px 1fr;
  animation: pop 0.4s var(--ease);
  scrollbar-width: thin;
}
@keyframes pop { from { opacity: 0; transform: translateY(22px) scale(0.97); } to { opacity: 1; transform: none; } }

.dish-modal-media-col { position: relative; display: flex; flex-direction: column; min-height: 380px; border-right: 1px solid var(--line-soft); }
.dish-modal-media { position: relative; flex: 1; min-height: 300px; overflow: hidden; background: var(--panel2); }
.dish-modal-media::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(245, 241, 234, 0.14);
  pointer-events: none;
}
.dish-modal-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.5s ease; }
.dish-modal-media.loaded img { opacity: 1; }
.dish-modal-media.ornament-media { display: flex; align-items: center; justify-content: center; }
.dish-modal-media .orn { width: 170px; opacity: 0.5; }
.dish-modal-media .ribbon { top: 16px; left: 16px; }
.dish-thumbs { display: flex; gap: 8px; padding: 12px; background: rgba(0, 0, 0, 0.3); overflow-x: auto; }
.thumb {
  position: relative;
  width: 62px; height: 62px;
  flex: 0 0 62px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 8px;
  background: var(--panel2);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .orn { width: 40px; }
.thumb.active { border-color: var(--red); box-shadow: var(--glow); }

.dish-modal-info { padding: 32px 36px; display: flex; flex-direction: column; gap: 14px; }
.dish-modal-info h2 { font-family: var(--serif); font-weight: 500; font-size: 25px; line-height: 1.18; }
.dish-modal-desc { color: var(--muted); font-size: 13px; line-height: 1.68; }
.dish-modal-buy { display: flex; align-items: center; gap: 18px; margin-top: 6px; flex-wrap: wrap; }
.dish-modal-buy .price { font-family: var(--serif); font-size: 23px; color: var(--ink); }
.dish-modal-buy .price small { font-size: 11px; color: var(--muted); letter-spacing: 0.12em; }
.dish-modal-buy .btn-accent { width: auto; flex: 1; min-width: 200px; margin: 0; }
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  z-index: 3;
  width: 44px; height: 44px;
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  color: var(--muted);
  font-size: 16px;
  transition: color 0.25s, border-color 0.25s, background 0.25s;
}
.modal-close:hover { color: var(--ink); border-color: var(--line); background: rgba(208, 24, 40, 0.12); }

.meta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-pill);
  color: var(--muted);
  font-size: 12.5px;
}
.meta-item svg { width: 15px; height: 15px; color: var(--red-hi); }
.meta-item b { font-family: var(--serif); font-size: 14px; font-weight: 500; color: var(--ink); }
.meta-lbl { font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--faint); }
.sd { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); transition: background 0.3s, box-shadow 0.3s; }
.sd.on { background: var(--red-hi); box-shadow: 0 0 8px rgba(234, 54, 70, 0.75); }

.pairs { margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.pairs-lbl { display: block; margin-bottom: 11px; font-size: 10px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--faint); }
.pairs-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pair-chip {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: 12px;
  transition: border-color 0.25s, background 0.25s;
}
.pair-chip:hover { border-color: var(--red); background: rgba(208, 24, 40, 0.14); }

.dialog-done { display: block; width: min(540px, 100%); padding: 56px 48px 46px; text-align: center; }
.dialog-done .orn { margin: 0 auto 24px; }
.dialog-done h2 { font-family: var(--serif); font-size: 25px; font-weight: 500; margin-bottom: 12px; }
.dialog-done .order-num { font-family: var(--serif); font-size: 38px; color: var(--ink); margin: 8px 0 4px; }
.dialog-done .order-num-lbl { font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--faint); }
.dialog-done p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 18px 0 8px; }
.dialog-done .btn-accent { margin-top: 24px; }

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 90;
  transform: translate(-50%, 12px);
  opacity: 0;
  padding: 15px 26px;
  border: 1px solid rgba(76, 194, 74, 0.5);
  border-radius: var(--r-pill);
  background: rgba(18, 18, 22, 0.96);
  color: var(--ink);
  font-size: 13px;
  letter-spacing: 0.05em;
  box-shadow: var(--sh-2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.3s, transform 0.3s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: scale(0);
  opacity: 0.85;
  pointer-events: none;
  animation: rippleGo 0.62s ease-out forwards;
}
@keyframes rippleGo { to { transform: scale(1); opacity: 0; } }

.dish-media.loading::before,
.dish-modal-media.loading::before,
.cat-media.loading::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(100deg, #17171c 22%, #2c2c34 42%, #17171c 62%);
  background-size: 220% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 120% 0; } to { background-position: -120% 0; } }

@media (max-width: 1024px) {
  .cart-wrap { grid-template-columns: 1fr; }
  .summary { position: static; }
  .dialog { grid-template-columns: 1fr; }
  .dish-modal-media-col { min-height: 320px; border-right: none; border-bottom: 1px solid var(--line-soft); }
}

@media (max-width: 760px) {
  main { padding: 104px 20px 108px; }
  .topbar { padding: 0 16px; height: 74px; }
  .brand-name { font-size: 19px; }
  .frame { inset: 7px; }
  .hero-inner { padding: 92px 24px 32px; }
  .status-pill em { display: none; }
  .status-pill { min-height: 40px; padding: 7px 13px; }
  .filters { justify-content: flex-start; }
  .dishes { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .cart-row { grid-template-columns: 64px 1fr; }
  .cart-row > div { padding-right: 44px; }
  .cart-thumb { width: 64px; height: 64px; }
  .cart-right { grid-column: 2; justify-content: space-between; }
  .lang-btn { padding: 12px 8px; }
  .dish-modal-info { padding: 30px 24px; }
}

.btn-accent,
.btn-ghost,
.pill,
.pair-chip,
.add-circle,
.tab,
.cat-arrow { overflow: clip; }

/* Reference-style tablet menu: food first, charcoal surfaces, red actions. */
:root { --serif: "Manrope", "Segoe UI", sans-serif; --gold: #ef3340; --grad-red: #d92130; --glow: none; }
body::after, #ambient, .frame, .hero .overline, .hero .orn, .hero-actions,
.cat-index, .cat-count, .cat-head .overline, .cat-head .orn, .pairs { display: none; }
.topbar { background: #101010; backdrop-filter: none; -webkit-backdrop-filter: none; height: 86px; }
.brand-name { background: none; color: #ed2939; font-weight: 800; font-size: 28px; letter-spacing: -.04em; }
.brand-sub { font-size: 9px; letter-spacing: .25em; }
.demo-label { font-size: 10px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
main { max-width: 1220px; padding: 112px 34px 110px; }
.hero { margin-bottom: 24px; border: 0; border-radius: 14px; box-shadow: none;
  background: linear-gradient(90deg, rgba(9,9,9,.88), rgba(9,9,9,.2)), url("../img/burger-cheese-hero.jpg") center 42% / cover; }
.hero::after { display: none; }
.hero-inner { padding: 56px 36px; max-width: 700px; }
.hero-title { font-weight: 750; font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; }
.hero-sub { font-size: 17px; color: #dedede; }
.cats, .dishes { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cat-card, .dish-card, .cart-row, .summary { background: #191919; border-radius: 12px; box-shadow: none; }
.cat-card:hover, .dish-card:hover { transform: translateY(-3px); border-color: var(--red); box-shadow: none; }
.cat-media { aspect-ratio: 2.1; }
.cat-body { padding: 16px 20px; }
.cat-name { margin: 0; font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.cat-arrow { background: none; box-shadow: none; color: #fff; }
.cat-head { padding: 0 0 24px; text-align: left; }
.view-title { font-size: 28px; font-weight: 750; margin: 0; }
.filters { justify-content: flex-start; margin: 0 0 24px; }
.pill { border-radius: 8px; min-height: 44px; letter-spacing: .08em; }
.dish-media { aspect-ratio: 1.75; }
.dish-media::after { background: linear-gradient(transparent 65%, rgba(0,0,0,.45)); }
.dish-body { padding: 18px; }
.dish-name { font-size: 18px; font-weight: 700; }
.dish-price { background: #151515; font-size: 19px; font-weight: 700; border-radius: 0 8px 0 0; backdrop-filter: none; }
.add-circle { background: var(--red); box-shadow: none; }
.btn-accent { background: var(--red); border-radius: 8px; box-shadow: none; min-height: 48px; letter-spacing: .12em; }
.btn-accent::after { display: none; }
.stepper { border-color: #454545; border-radius: 8px; }
.stepper button { width: 44px; height: 44px; color: #fff; }
.summary { background: #202020; }
.cart-row { padding: 20px 24px 20px 16px; }
.cart-name { font-weight: 700; }
.bottombar { background: #101010; backdrop-filter: none; -webkit-backdrop-filter: none; }
.tab { padding: 23px 10px; letter-spacing: .12em; font-weight: 600; }
.tab.active::before { top: auto; bottom: 0; left: 30%; right: 30%; background: var(--red); box-shadow: none; }
.dialog { width: min(1040px, 100%); grid-template-columns: 1.1fr 1fr; background: #181818; }
.dish-modal-info { padding: 48px 32px 32px; }
.dish-modal-info h2 { font-size: 30px; font-weight: 750; }
.dish-modal-media-col { min-height: 450px; }
.dish-modal-buy .btn-accent { flex-basis: 100%; }
.dialog-done { display: block; }
.toast { max-width: calc(100vw - 32px); width: max-content; border-radius: 10px; }
@media (max-width: 760px) {
  .topbar { height: 100px; padding: 8px 16px; grid-template-columns: 1fr 1fr; }
  .brand { grid-column: 1; grid-row: 1; align-items: flex-start; }
  .brand-name { font-size: 24px; }
  .tb-left { grid-column: 1; grid-row: 2; }
  .tb-right { grid-column: 2; grid-row: 1 / 3; flex-direction: column; align-items: flex-end; gap: 0; }
  .demo-label { font-size: 9px; }
  .back-btn { padding: 0; min-height: 30px; font-size: 10px; }
  .lang-btn { min-width: 30px; padding: 8px 5px; }
  .lang-sep { display: none; }
  .status-pill { display: none; }
  main { padding: 120px 16px 100px; }
  .hero-inner { padding: 36px 22px; }
  .hero-sub { font-size: 14px; }
  .cats, .dishes { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cat-media { aspect-ratio: 1.4; }
  .cat-body { padding: 14px 12px; }
  .cat-name { font-size: 12px; padding-right: 22px; }
  .cat-arrow { right: 4px; bottom: 7px; }
  .dish-body { padding: 12px; }
  .dish-name { font-size: 15px; }
  .dish-desc { font-size: 12px; }
  .dish-foot { gap: 4px; }
  .dish-info { font-size: 9px; letter-spacing: 0; }
  .dish-price { font-size: 16px; padding: 6px 9px; }
  .add-circle { width: 44px; height: 44px; flex-basis: 44px; }
  .modal { padding: 12px; }
  .dialog { grid-template-columns: 1fr; max-height: 92dvh; }
  .dish-modal-media-col { min-height: 260px; }
  .dish-modal-media { min-height: 240px; }
  .dish-modal-info { padding: 24px; }
  .dish-modal-info h2 { font-size: 25px; }
  .cart-wrap { grid-template-columns: 1fr; }
  .cart-row { gap: 12px; }
  .cart-row > div { padding-right: 20px; }
  .cart-right { flex-wrap: wrap; }
  .tab { font-size: 11px; }
}
@media (max-width: 360px) { .dishes { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .ribbon-dot, .badge.pop, .ripple, .status-dot, .btn-accent::after,
  .dish-media.loading::before, .dish-modal-media.loading::before, .cat-media.loading::before { animation: none !important; }
  .dish-card::before { display: none; }
}
