.app { max-width: 520px; margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative; padding-bottom: 72px; }
@media (min-width: 560px) {
  body { background: color-mix(in srgb, var(--bg) 70%, #000); }
  .app { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
}

/* hero */
.hero { position: relative; height: 260px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(5, 10, 9, 0.35), rgba(5, 10, 9, 0) 40%, var(--bg) 100%); }
.hero-bar { position: absolute; z-index: 2; top: 14px; left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.glass { background: rgba(14, 22, 20, 0.62); -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); border: 1px solid rgba(255, 255, 255, 0.14); color: #edf1ef; }
@media (prefers-reduced-transparency: reduce) { .glass { background: #131b19; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.lang { display: flex; padding: 3px; border-radius: 999px; }
.lang button { min-width: 44px; height: 34px; border-radius: 999px; font-size: 13px; font-weight: 700; letter-spacing: 0.02em; transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.lang button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.round { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; font-size: 20px; transition: transform 0.2s var(--ease); }
.round:active { transform: scale(0.94); }

.head { position: relative; z-index: 2; margin-top: -48px; padding: 0 20px; }
.logo { width: 60px; height: 60px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: 28px; margin-bottom: 12px; box-shadow: 0 0 0 4px var(--bg); }
.head h1 { font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; }
.tagline { color: var(--muted); margin-top: 4px; font-size: 15px; }
.table-pill { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px 6px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); font-weight: 700; font-size: 14px; }

.info { margin: 18px 20px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 4px 16px; }
.info-row { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; }
.info-row + .info-row { border-top: 1px solid var(--line); }
.info-row i { font-size: 20px; color: var(--accent-text); margin-top: 1px; }
.info-row b { display: block; font-size: 15px; font-weight: 700; }
.info-row span { color: var(--muted); font-size: 14px; }
.status-open { color: #5fcf94; font-weight: 700; }
.status-closed { color: var(--danger); font-weight: 700; }
:root[data-theme="light"] .status-open { color: #17824a; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .status-open { color: #17824a; } }

.actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 20px 0; }
.btn { height: 46px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; transition: transform 0.2s var(--ease), background 0.2s; }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.btn i { font-size: 18px; }

.gallery { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 18px 20px 4px; scrollbar-width: none; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { width: 150px; height: 108px; object-fit: cover; border-radius: var(--r-card); flex: none; scroll-snap-align: start; background: var(--surface-2); }

/* search + tabs */
.search { position: relative; margin: 22px 20px 0; }
.search i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 19px; }
.search input { width: 100%; height: 48px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; padding: 0 44px 0 46px; }
.search input::placeholder { color: var(--muted); }
.search .clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 999px; display: none; place-items: center; color: var(--muted); }
.search.has-q .clear { display: grid; }

.tabs { position: sticky; top: 0; z-index: 20; margin-top: 14px; padding: 10px 0; background: color-mix(in srgb, var(--bg) 88%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.tabs.stuck { border-bottom-color: var(--line); }
.tabs-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tab { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); transition: background 0.25s var(--ease), color 0.25s var(--ease); }
.tab[aria-current="true"] { background: var(--accent); color: var(--on-accent); border-color: transparent; }

/* menu */
.section { padding: 26px 20px 0; scroll-margin-top: 64px; }
.section h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 14px; }
.list { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 1fr 108px; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px; transition: transform 0.25s var(--ease), border-color 0.2s; }
.item:active { transform: scale(0.985); }
.item-body { display: flex; flex-direction: column; min-width: 0; padding: 2px 0 2px 4px; }
.item h3 { font-size: 16px; font-weight: 700; line-height: 1.25; }
.item p { color: var(--muted); font-size: 13.5px; margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item-foot { margin-top: auto; padding-top: 10px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font-weight: 800; font-size: 16px; }
.weight { color: var(--muted); font-size: 13px; }
.item-photo { position: relative; width: 108px; height: 108px; border-radius: 14px; overflow: hidden; background: var(--surface-2); }
.item-photo img { width: 100%; height: 100%; object-fit: cover; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.badge { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent-text); }
.badge.veg { background: color-mix(in srgb, #5fcf94 18%, transparent); color: #5fcf94; }
:root[data-theme="light"] .badge.veg { color: #17824a; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .badge.veg { color: #17824a; } }
.item.is-stop .item-photo img { filter: grayscale(1) brightness(0.55); }
.item.is-stop h3, .item.is-stop .price { color: var(--muted); }
.stop-tag { position: absolute; inset: auto 6px 6px 6px; text-align: center; font-size: 11px; font-weight: 800; padding: 4px 6px; border-radius: 999px; background: rgba(14, 22, 20, 0.82); color: #edf1ef; }
.empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.empty i { font-size: 36px; display: block; margin-bottom: 10px; color: var(--accent-text); }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

.foot { padding: 36px 20px 8px; color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot a { color: var(--accent-text); font-weight: 700; }

/* sheet */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(2, 8, 7, 0.6); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); }
.scrim.open { opacity: 1; pointer-events: auto; }
.sheet { position: fixed; z-index: 60; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 520px; max-height: 92dvh; overflow-y: auto; background: var(--surface); border-radius: var(--r-sheet) var(--r-sheet) 0 0; box-shadow: var(--shadow); transform: translateY(105%); transition: transform 0.45s var(--ease); overscroll-behavior: contain; }
.sheet.open { transform: none; }
.sheet-photo { position: relative; height: 260px; background: var(--surface-2); }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-photo.is-stop img { filter: grayscale(1) brightness(0.55); }
.sheet-close { position: absolute; top: 14px; right: 14px; }
.sheet-body { padding: 20px 20px 28px; }
.sheet-body h2 { font-size: 24px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; }
.sheet-meta { display: flex; align-items: baseline; gap: 10px; margin-top: 8px; }
.sheet-meta .price { font-size: 22px; }
.sheet-desc { margin-top: 14px; color: var(--text); }
.block { margin-top: 20px; }
.block h4 { margin: 0 0 8px; font-size: 13px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.block p { color: var(--text); font-size: 15px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); }
.chip i { color: var(--danger); font-size: 16px; }
.notice { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--danger) 14%, transparent); color: var(--danger); font-weight: 700; font-size: 14px; display: flex; gap: 8px; align-items: center; }
body.lock { overflow: hidden; }

/* cart */
.item { position: relative; align-items: start; }
.item:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.item-photo { align-self: start; }
.ctl { position: absolute; right: 18px; bottom: 18px; }
.add { width: 38px; height: 38px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-size: 20px; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); transition: transform 0.2s var(--ease); }
.add:active { transform: scale(0.9); }
.stepper { display: inline-flex; align-items: center; height: 38px; border-radius: 999px; background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.stepper button { width: 38px; height: 38px; border-radius: 999px; display: grid; place-items: center; font-size: 18px; }
.stepper button:active { background: rgba(0, 0, 0, 0.12); }
.stepper b { min-width: 20px; text-align: center; font-weight: 800; font-size: 15px; }
.stepper.big { height: 52px; box-shadow: none; }
.stepper.big button { width: 52px; height: 52px; font-size: 22px; }
.stepper.big b { min-width: 34px; font-size: 18px; }

.cartbar { position: fixed; z-index: 40; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); margin: 0 auto; max-width: 488px; height: 58px; padding: 0 20px 0 10px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: flex; align-items: center; gap: 12px; font-weight: 800; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45); animation: barIn 0.5s var(--ease); }
.cartbar[hidden] { display: none; }
.cartbar:active { transform: scale(0.985); }
.cb-n { min-width: 38px; height: 38px; border-radius: 999px; background: var(--on-accent); color: var(--accent); display: grid; place-items: center; font-size: 16px; }
.cb-label { flex: 1; text-align: left; font-size: 16px; }
.cb-sum { font-size: 16px; }
@keyframes barIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

.sheet-foot { position: sticky; bottom: 0; display: flex; align-items: center; gap: 14px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
.cta { flex: 1; height: 52px; padding: 0 20px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; transition: transform 0.2s var(--ease); }
.cta span { margin-left: auto; padding-left: 12px; }
.sheet-foot .cta:has(span) { justify-content: flex-start; }
.cta:active { transform: scale(0.985); }
.cta:disabled { background: var(--surface-2); color: var(--muted); }
.foot-total { margin-left: auto; text-align: right; display: grid; font-size: 12px; color: var(--muted); font-weight: 700; }
.foot-total b { color: var(--text); font-size: 18px; font-weight: 800; }

.cart-head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 4px; }
.cart-head h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; }
.cart-head .sheet-close.static { position: static; margin-left: auto; background: var(--surface-2); border-color: var(--line); color: var(--text); }
.table-pill.sm { margin: 0; padding: 4px 10px; font-size: 13px; display: inline-flex; align-items: center; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, transparent); color: var(--accent-text); font-weight: 700; }
.cart-list { padding: 8px 20px 0; }
.crow { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 14px 0; }
.crow + .crow { border-top: 1px solid var(--line); }
.crow-main b { display: block; font-size: 16px; line-height: 1.25; }
.crow-main span { color: var(--muted); font-size: 13.5px; }
.crow .stepper { grid-row: 1; grid-column: 2; box-shadow: none; }
.crow-sum { grid-column: 2; justify-self: end; font-weight: 800; font-size: 14px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: 6px 20px 0; padding: 16px 0 4px; border-top: 1px solid var(--line); font-weight: 700; color: var(--muted); }
.cart-total b { color: var(--text); font-size: 26px; font-weight: 800; }
.cart-hint { margin: 10px 20px 0; color: var(--muted); font-size: 13.5px; }
.cart-actions { display: flex; gap: 10px; padding: 18px 20px calc(24px + env(safe-area-inset-bottom)); }
.cart-actions .btn { height: 52px; padding: 0 22px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; }

.waiter { position: fixed; inset: 0; z-index: 80; background: var(--bg); overflow-y: auto; padding: 22px 20px calc(28px + env(safe-area-inset-bottom)); max-width: 520px; margin: 0 auto; display: flex; flex-direction: column; }
.waiter[hidden] { display: none; }
.waiter-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.waiter-top small { color: var(--muted); font-weight: 700; font-size: 14px; }
.waiter-top h2 { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-top: 2px; }
.waiter-top .round { background: var(--surface-2); border: 1px solid var(--line); }
.waiter-list { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 12px; }
.waiter-list li { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; }
.wq { width: 64px; height: 64px; border-radius: 999px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; font-weight: 800; font-size: 30px; }
.wn { font-weight: 800; font-size: 24px; line-height: 1.15; }
.wn small { display: block; margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--muted); }
.waiter-total { margin-top: auto; padding-top: 24px; display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: var(--muted); }
.waiter-total b { color: var(--text); font-size: 34px; font-weight: 800; }
.app { padding-bottom: 96px; }
