@font-face { font-family: Inter; src: url(/fonts/inter-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: Saira; src: url(/fonts/saira-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --red: #d71920; --red2: #b3121a; --yellow: #ffd200; --ink: #161616; --muted: #6b6b6b; --line: #e8e4dc; --bg: #faf7f1; --card: #fff; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.45 Inter, Arial, sans-serif; -webkit-text-size-adjust: 100%; }
body.locked { overflow: hidden; }
h1, h2 { font-family: Saira, Arial, sans-serif; line-height: 1.1; margin: 0 0 .4em; }
a { color: inherit; }
[hidden] { display: none !important; }
.loading, .empty { padding: 40px 16px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); } .small { font-size: .85rem; }
.error { color: var(--red2); font-weight: 700; margin: 8px 0; } .error:empty { display: none; }

.hero { background: var(--red); color: #fff; padding: 18px 16px 16px; }
.hero-in { max-width: 1100px; margin: auto; display: flex; align-items: center; gap: 12px; }
.hero h1 { font-size: 1.7rem; margin: 0; } .hero-in p { margin: 2px 0 0; font-size: .85rem; opacity: .9; }
.logo { background: #fff; border-radius: 14px; padding: 4px; flex: none; }
.status { margin-left: auto; flex: none; font-weight: 800; font-size: .8rem; padding: 6px 10px; border-radius: 99px; }
.status.on { background: var(--yellow); color: var(--ink); } .status.off { background: rgba(0,0,0,.25); }
.hero-sub, .note, .recent { max-width: 1100px; margin: 10px auto 0; display: block; font-size: .92rem; }
.note { background: var(--yellow); color: var(--ink); padding: 8px 12px; border-radius: 10px; font-weight: 700; }
.recent { background: #fff; color: var(--red2); padding: 10px 12px; border-radius: 10px; font-weight: 800; text-decoration: none; }

.cats { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; background: var(--bg); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 9px 15px; font: 700 .9rem Inter, Arial, sans-serif; color: var(--ink); cursor: pointer; }
.cat.on { background: var(--ink); color: #fff; border-color: var(--ink); } .cat.hot { background: var(--yellow); border-color: #e7bd00; } .cat.hot.on { background: var(--red); color: #fff; border-color: var(--red); }

.menu { max-width: 1100px; margin: auto; padding: 8px 16px 110px; }
.menu h2 { font-size: 1.3rem; margin: 22px 0 10px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.item { position: relative; display: flex; gap: 12px; align-items: center; width: 100%; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.item:active { transform: scale(.99); }
.item-img { width: 92px; height: 92px; flex: none; object-fit: cover; border-radius: 10px; background: #f3eee4; }
.ph { display: grid; place-items: center; font: 800 2rem Saira, Arial, sans-serif; color: #d9cdb8; background: #f3eee4; }
.item-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding-right: 34px; }
.item-name { font-size: 1rem; line-height: 1.2; }
.item-desc { color: var(--muted); font-size: .84rem; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.item-price { font-weight: 800; color: var(--red2); }
.item-add { position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font: 700 1.3rem/1 Inter, Arial, sans-serif; }

.foot { max-width: 1100px; margin: auto; padding: 10px 16px 120px; color: var(--muted); font-size: .9rem; border-top: 1px solid var(--line); }
.credit a { color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 1px solid #d8d2c6; border-radius: 12px; background: #fff; color: var(--ink); font: 700 1rem Inter, Arial, sans-serif; cursor: pointer; text-decoration: none; }
.btn.primary { background: var(--red); border-color: var(--red); color: #fff; } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.big { width: 100%; min-height: 54px; font-size: 1.05rem; margin-top: 8px; }
.link { background: none; border: 0; padding: 6px 0; font: 700 .95rem Inter, Arial, sans-serif; color: var(--red2); cursor: pointer; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.bar .btn { max-width: 560px; margin: 0 auto; display: flex; justify-content: space-between; box-shadow: 0 8px 24px rgba(0,0,0,.18); }

.sheet { border: 0; padding: 0; margin: auto auto 0; width: 100%; max-width: 560px; max-height: 92vh; border-radius: 20px 20px 0 0; background: #fff; color: var(--ink); }
.sheet::backdrop { background: rgba(0,0,0,.5); }
.sheet-in { position: relative; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
.sheet-x { position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f1ede5; font-size: 1.5rem; line-height: 1; cursor: pointer; z-index: 2; }
.sheet h2 { font-size: 1.4rem; padding-right: 44px; }
.sheet-img { width: calc(100% + 32px); margin: -18px -16px 12px; height: 210px; object-fit: cover; border-radius: 20px 20px 0 0; display: block; }
@media (min-width: 700px) { .sheet { margin: auto; border-radius: 20px; } .sheet-img { border-radius: 20px 20px 0 0; } }
.opts { border: 0; padding: 0; margin: 14px 0; }
.opts legend { font: 800 1rem Saira, Arial, sans-serif; margin-bottom: 6px; padding: 0; } .opts legend span { font: 500 .8rem Inter, Arial, sans-serif; color: var(--muted); margin-left: 8px; }
.opt { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font: 600 .95rem Inter, Arial, sans-serif; color: var(--ink); text-align: left; cursor: pointer; }
.opt.on { border: 2px solid var(--red); padding: 11px; background: #fff6f6; }
.opt-l { flex: 1; } .opt-p { font-weight: 800; color: var(--red2); font-size: .88rem; }
.tick { width: 20px; height: 20px; flex: none; border: 2px solid #bbb; } .tick.radio { border-radius: 50%; } .tick.check { border-radius: 5px; }
.opt.on .tick { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 3px #fff; }
.lbl { display: block; font-weight: 700; font-size: .88rem; margin: 10px 0 0; }
input, select, textarea { display: block; width: 100%; margin-top: 4px; padding: 12px; border: 1px solid #d8d2c6; border-radius: 10px; font: 400 16px Inter, Arial, sans-serif; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.qty { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 14px 0 4px; }
.qty.small { gap: 8px; margin: 0; }
.step { width: 42px; height: 42px; border-radius: 50%; border: 1px solid #d8d2c6; background: #fff; font: 700 1.3rem/1 Inter, Arial, sans-serif; cursor: pointer; color: var(--ink); }
.qty.small .step { width: 32px; height: 32px; font-size: 1.1rem; }
.qty-n { min-width: 24px; text-align: center; font-weight: 800; font-size: 1.1rem; }

.addons { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.addon { display: flex; flex-direction: column; gap: 3px; padding: 8px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.addon img, .addon .ph { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.addon strong { font-size: .9rem; line-height: 1.2; } .addon span { font-size: .85rem; color: var(--muted); } .addon .addon-plus { color: var(--red2); font-weight: 800; }

.lines { list-style: none; padding: 0; margin: 0 0 6px; }
.lines li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lines li > div:first-child { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mods { font-size: .82rem; color: #1d4ed8; font-weight: 600; } .line-t { min-width: 76px; text-align: right; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #f1ede5; border-radius: 12px; padding: 4px; margin: 12px 0 4px; }
.seg button { border: 0; background: none; padding: 11px; border-radius: 9px; font: 800 .95rem Inter, Arial, sans-serif; cursor: pointer; color: var(--ink); }
.seg button.on { background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.12); }
.sum { margin-top: 14px; } .sum p { display: flex; justify-content: space-between; margin: 4px 0; } .sum .grand { font: 800 1.2rem Saira, Arial, sans-serif; }
.pay { background: #fff8d6; border-radius: 10px; padding: 10px 12px; font-weight: 700; margin: 10px 0 0; }

.track { max-width: 560px; margin: auto; padding: 16px 16px 60px; }
.track .back { display: inline-block; margin-bottom: 10px; font-weight: 700; text-decoration: none; color: var(--red2); }
.ref { font: 800 1rem Saira, Arial, sans-serif; color: var(--red2); margin: 0; }
.track h1 { font-size: 1.8rem; } .lead { font-size: 1.05rem; }
.steps { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.steps li { padding: 12px 14px 12px 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line); position: relative; color: var(--muted); font-weight: 600; }
.steps li::before { content: ''; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2px solid #ccc; }
.steps li.on { color: var(--ink); border-color: #f2c6c6; } .steps li.on::before { background: var(--red); border-color: var(--red); box-shadow: inset 0 0 0 3px #fff; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px 12px; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.cancel { display: block; margin: 14px auto 0; color: var(--muted); }

#toasts { position: fixed; top: 12px; left: 50%; transform: translateX(-50%); z-index: 50; display: grid; gap: 6px; width: min(92vw, 420px); }
.toast { background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 10px; font-weight: 700; box-shadow: 0 6px 20px rgba(0,0,0,.2); text-align: center; } .toast.bad { background: var(--red2); }
@media (max-width: 420px) { .hero h1 { font-size: 1.35rem; } .hero-in p { font-size: .78rem; } .logo { width: 44px; height: 44px; } .status { font-size: .72rem; padding: 5px 8px; } }
.opt-cat { font: 800 .78rem Inter, Arial, sans-serif; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin: 12px 0 6px; }
