:root {
  --bg: #f2ece4; --surface: #fffaf4; --surface2: #e9dfd2; --text: #24201e; --muted: #7b7067; --line: #e2d6c7;
  --brand: #24201e; --brand2: #3b332d; --brand-soft: #ece2d4; --on-brand: #ffffff;
  --accent: #e39a1b; --accent-soft: #fbefd9; --ok: #2f9a5b; --ok-soft: #e4f4ea; --danger: #d04b3e;
  --shadow: 0 2px 10px rgba(36, 32, 30, .07); --shadow-up: 0 -6px 24px rgba(36, 32, 30, .12);
  --brand-shadow: 0 8px 22px rgba(36, 32, 30, .22); --banner-shadow: 0 5px 14px rgba(36, 32, 30, .16);
  --r: 20px; --r-sm: 14px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
html.dark {
  --bg: #13100e; --surface: #1d1916; --surface2: #29231f; --text: #f3ede6; --muted: #a39789; --line: #342d27;
  --brand: #f0a92a; --brand2: #f6c060; --brand-soft: #3a2b16; --on-brand: #1c1307;
  --accent: #f0a92a; --accent-soft: #3a2b16; --ok: #4cc27f; --ok-soft: #173426; --danger: #ef6b5f;
  --shadow: 0 6px 22px rgba(0, 0, 0, .4); --shadow-up: 0 -8px 30px rgba(0, 0, 0, .5);
  --brand-shadow: 0 10px 30px rgba(240, 169, 42, .25); --banner-shadow: 0 6px 16px rgba(240, 169, 42, .2);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.4 var(--font); }
body { overscroll-behavior-y: none; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
img { display: block; }
.hidden { display: none !important; }
.fatal { padding: 60px 24px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- шапка ---------- */
.hero { padding: 18px 16px 6px; display: flex; gap: 14px; align-items: center; }
.logo { width: 74px; height: 74px; border-radius: 22px; background: #fff center/86% no-repeat; flex: none;
  box-shadow: var(--shadow); }
.hero-t { flex: 1; min-width: 0; }
.hero h1 { margin: 0 0 6px; font-size: 21px; letter-spacing: -.2px; line-height: 1.15; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12.5px; padding: 4px 9px; border-radius: 99px; background: var(--surface); color: var(--muted);
  box-shadow: 0 1px 0 var(--line); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.pill.no { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.icon-btn { width: 42px; height: 42px; border-radius: 14px; background: var(--surface); box-shadow: var(--shadow);
  display: grid; place-items: center; font-size: 19px; flex: none; align-self: flex-start; }
.notice { margin: 10px 16px 0; padding: 11px 14px; border-radius: var(--r-sm); background: var(--accent-soft);
  color: var(--accent); font-weight: 600; font-size: 14px; }

/* ---------- поиск и категории ---------- */
.search { margin: 12px 16px 4px; position: relative; }
.search input { width: 100%; border: 0; outline: 0; background: var(--surface); border-radius: var(--r-sm);
  padding: 12px 14px 12px 40px; box-shadow: 0 1px 0 var(--line); }
.search::before { content: "🔍"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); font-size: 15px;
  opacity: .55; }
.cats { position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 10px 0 10px;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-left: 16px; padding-right: 16px;
  transition: box-shadow .2s; }
.cats.stuck { box-shadow: 0 8px 18px -12px rgba(0, 0, 0, .25); }
.cats::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 9px 14px; border-radius: 99px; background: var(--surface); font-weight: 600;
  font-size: 14px; box-shadow: 0 1px 0 var(--line); transition: background .2s, color .2s; white-space: nowrap; }
.chip.on { background: var(--brand); color: var(--on-brand); box-shadow: none; }
/* две кнопки: всё меню / по категориям */
.vseg { flex: 1; display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--surface);
  box-shadow: 0 1px 0 var(--line); }
.vseg button { flex: 1; padding: 10px 6px; border-radius: 12px; font-weight: 650; font-size: 14.5px; color: var(--muted);
  transition: background .2s, color .2s; white-space: nowrap; }
.vseg button.on { background: var(--brand); color: var(--on-brand); }
/* карусели разделов */
.rail-sec { padding: 8px 0 6px; }
.rail-h { display: flex; align-items: baseline; justify-content: space-between; width: 100%; padding: 12px 18px 10px; text-align: left; }
.rail-h b { font-size: 21px; letter-spacing: -.3px; }
.rail-h span { color: var(--brand); font-weight: 600; font-size: 14px; white-space: nowrap; }
.rail { display: flex; gap: 10px; overflow-x: auto; padding: 2px 16px 12px; scroll-snap-type: x mandatory;
  scroll-padding: 0 16px; scrollbar-width: none; overscroll-behavior-x: contain; }
.rail::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 41%; max-width: 180px; scroll-snap-align: start; background: var(--surface); border-radius: var(--r);
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; text-align: left; transition: transform .12s; }
.mini:active { transform: scale(.97); }
.mini .n { padding: 8px 10px 0; font-weight: 650; font-size: 13.5px; line-height: 1.25; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 41px; }
.mini .row { margin-top: auto; padding: 6px 10px 10px; display: flex; align-items: center; justify-content: space-between; }
.mini .price { font-size: 14px; white-space: nowrap; overflow: hidden; }
.mini .price small { font-size: 11px; }
.mini .plus { width: 30px; height: 30px; border-radius: 10px; font-size: 20px; flex: none; margin-left: 4px; }
.mini.more { align-items: center; justify-content: center; gap: 4px; background: var(--brand-soft); color: var(--brand); }
.mini.more b { font-size: 24px; }
.mini.more span { font-weight: 600; font-size: 14px; }
.cat-back { margin: 14px 0 0; padding: 7px 12px 7px 9px; border-radius: 99px; background: var(--surface); color: var(--brand);
  font-weight: 600; font-size: 14px; box-shadow: 0 1px 0 var(--line); }
.sec h2.cat-h { margin-top: 10px; }

/* ---------- меню ---------- */
.sec { padding: 6px 16px 4px; scroll-margin-top: 62px; }
.sec h2 { margin: 18px 2px 4px; font-size: 23px; letter-spacing: -.3px; }
.sub h3 { margin: 16px 2px 10px; font-size: 15px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { background: var(--surface); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column; position: relative; text-align: left; transition: transform .12s; }
.card:active { transform: scale(.97); }
.ph { aspect-ratio: 1 / 1; background: var(--surface2); position: relative; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s; }
.ph img.ld { opacity: 1; }
.ph .emo { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px;
  background: linear-gradient(145deg, var(--brand-soft), var(--surface2)); }
.badge { position: absolute; left: 8px; top: 8px; background: var(--accent); color: #fff; font-size: 11.5px;
  font-weight: 700; padding: 3px 8px; border-radius: 99px; }
.card .b { padding: 10px 11px 11px; display: flex; flex-direction: column; flex: 1; gap: 4px; }
.card .n { font-weight: 650; font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.card .d { font-size: 12.5px; color: var(--muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.card .row { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; }
.price { font-weight: 750; font-size: 16px; }
.price small { font-weight: 500; color: var(--muted); font-size: 12px; margin-right: 2px; }
.plus { width: 34px; height: 34px; border-radius: 12px; background: var(--brand-soft); color: var(--brand);
  font-size: 22px; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.plus.has { background: var(--brand); color: var(--on-brand); font-size: 14px; font-weight: 750; }
.empty { text-align: center; color: var(--muted); padding: 50px 20px; }
.foot { text-align: center; color: var(--muted); font-size: 12.5px; padding: 26px 20px 120px; line-height: 1.7; }
.foot a { color: var(--brand); text-decoration: none; }

/* ---------- панель корзины ---------- */
.cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  background: var(--brand); color: var(--on-brand); border-radius: 18px; padding: 14px 18px; display: flex;
  align-items: center; gap: 12px; box-shadow: var(--brand-shadow); font-weight: 700;
  animation: up .25s ease-out; }
.cartbar .cnt { background: rgba(255, 255, 255, .22); border-radius: 10px; padding: 2px 9px; font-size: 14px; }
html.dark .cartbar .cnt { background: rgba(0, 0, 0, .15); }
.cartbar .sum { margin-left: auto; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.bump { animation: bump .3s; }
@keyframes bump { 50% { transform: scale(1.04); } }

/* ---------- лист блюда ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; }
.sheet-bg { position: absolute; inset: 0; background: rgba(10, 14, 18, .45); animation: fade .2s; }
.sheet-box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; background: var(--bg);
  border-radius: 24px 24px 0 0; overflow-y: auto; animation: slide .28s cubic-bezier(.2, .8, .2, 1);
  padding-bottom: calc(96px + env(safe-area-inset-bottom)); overscroll-behavior: contain; }
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateY(100%); } }
.sheet .big { aspect-ratio: 4 / 3; background: var(--surface2); position: relative; }
.sheet .big img { width: 100%; height: 100%; object-fit: cover; }
.sheet .big .emo { position: absolute; inset: 0; display: grid; place-items: center; font-size: 80px;
  background: linear-gradient(145deg, var(--brand-soft), var(--surface2)); }
.sheet .x { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0, 0, 0, .45); color: #fff; font-size: 18px; display: grid; place-items: center; z-index: 2; }
.sheet .grab { position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px;
  border-radius: 9px; background: rgba(255, 255, 255, .7); z-index: 2; }
.pd { padding: 16px 18px 4px; }
.pd h2 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; letter-spacing: -.2px; }
.pd .desc { color: var(--muted); white-space: pre-line; font-size: 14.5px; }
.grp { margin: 18px 0 0; }
.grp-h { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 8px; }
.grp-h b { font-size: 16px; }
.tag { font-size: 12px; padding: 2px 8px; border-radius: 99px; background: var(--surface2); color: var(--muted); }
.tag.req { background: var(--accent-soft); color: var(--accent); }
.tag.req.ok { background: var(--ok-soft); color: var(--ok); }
.opts { background: var(--surface); border-radius: var(--r-sm); overflow: hidden; box-shadow: 0 1px 0 var(--line); }
.opt { display: flex; align-items: center; gap: 12px; padding: 13px 14px; width: 100%; text-align: left;
  border-bottom: 1px solid var(--line); }
.opt:last-child { border-bottom: 0; }
.opt .mk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none;
  display: grid; place-items: center; transition: all .15s; }
.opt.sq .mk { border-radius: 7px; }
.opt.on .mk { border-color: var(--brand); background: var(--brand); }
.opt.on .mk::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-brand); }
.opt.sq.on .mk::after { width: 10px; height: 6px; border-radius: 0; background: none; border: 2.5px solid var(--on-brand);
  border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt .on-t { flex: 1; }
.opt .p { color: var(--muted); font-weight: 600; white-space: nowrap; }
.buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; animation: slide .28s cubic-bezier(.2, .8, .2, 1); padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--bg); display: flex; gap: 10px; box-shadow: var(--shadow-up); }
.step { display: flex; align-items: center; background: var(--surface); border-radius: 16px; box-shadow: 0 1px 0 var(--line); }
.step button { width: 42px; height: 50px; font-size: 22px; font-weight: 600; color: var(--brand); }
.step span { min-width: 22px; text-align: center; font-weight: 700; }
.step.sm button { width: 34px; height: 34px; font-size: 18px; }
.step.sm { border-radius: 12px; }
.btn { flex: 1; height: 50px; border-radius: 16px; background: var(--brand); color: var(--on-brand); font-weight: 750;
  font-size: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: opacity .2s; }
.btn:disabled, .btn.off { opacity: .45; }
.btn.ghost { background: var(--surface); color: var(--brand); box-shadow: 0 1px 0 var(--line); }

/* ---------- экраны ---------- */
.scr { padding: 14px 16px calc(110px + env(safe-area-inset-bottom)); animation: fade .2s; }
.scr-h { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 14px; }
.scr-h h1 { margin: 0; font-size: 26px; letter-spacing: -.4px; }
.link { color: var(--brand); font-weight: 600; }
.box { background: var(--surface); border-radius: var(--r); box-shadow: var(--shadow); padding: 4px 14px; margin-bottom: 14px; }
.box-t { font-size: 13px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700;
  margin: 18px 4px 8px; }
.line { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.thumb { width: 58px; height: 58px; border-radius: 14px; background: var(--surface2) center/cover; flex: none;
  display: grid; place-items: center; font-size: 26px; }
.line .t { flex: 1; min-width: 0; }
.line .t b { display: block; font-weight: 650; font-size: 14.5px; line-height: 1.25; }
.line .t small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.line .t .price { font-size: 14.5px; margin-top: 4px; display: block; }
.progress { margin: 4px 0 14px; padding: 12px 14px; background: var(--surface); border-radius: var(--r-sm);
  font-size: 13.5px; box-shadow: 0 1px 0 var(--line); }
.bar { height: 6px; border-radius: 6px; background: var(--surface2); margin-top: 8px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); border-radius: 6px;
  transition: width .3s; }
.hscroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll .mini { flex: none; width: 118px; background: var(--surface); border-radius: 16px; padding: 10px; box-shadow: 0 1px 0 var(--line);
  text-align: left; }
.hscroll .mini b { display: block; font-size: 13px; font-weight: 600; line-height: 1.2; height: 31px; overflow: hidden; }
.hscroll .mini span { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-weight: 700; font-size: 14px; }
.hscroll .mini span i { font-style: normal; width: 26px; height: 26px; border-radius: 9px; background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; }
.sumrow { display: flex; justify-content: space-between; padding: 7px 0; }
.sumrow.big { font-weight: 800; font-size: 18px; padding-top: 10px; border-top: 1px dashed var(--line); margin-top: 4px; }
.sumrow .free { color: var(--ok); font-weight: 600; }
.fixed-btn { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: linear-gradient(to top, var(--bg) 70%, transparent); display: flex; flex-direction: column; gap: 8px; }
.fixed-btn .btn, .btns .btn { flex: none; }
.fixed-btn .progress { margin: 0; box-shadow: var(--shadow); }
.warn { color: var(--accent); font-size: 13px; text-align: center; font-weight: 600; }

.seg { display: flex; background: var(--surface2); border-radius: 14px; padding: 4px; gap: 4px; margin: 12px 0; }
.seg button { flex: 1; padding: 10px 6px; border-radius: 11px; font-weight: 650; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0, 0, 0, .08); }
.choice { display: flex; align-items: center; gap: 12px; padding: 13px 0; width: 100%; text-align: left;
  border-bottom: 1px solid var(--line); }
.choice:last-child { border-bottom: 0; }
.choice .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface2); display: grid; place-items: center;
  font-size: 19px; flex: none; }
.choice.on .ic { background: var(--brand-soft); }
.choice .t { flex: 1; min-width: 0; }
.choice .t b { display: block; font-weight: 650; }
.choice .t small { display: block; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.choice .mk { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; display: grid; place-items: center; }
.choice.on .mk { border-color: var(--brand); background: var(--brand); }
.choice.on .mk::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--on-brand); }
.choice .ed { color: var(--brand); font-size: 13px; font-weight: 600; padding: 6px; }
.add-line { color: var(--brand); font-weight: 650; padding: 14px 0; width: 100%; text-align: left; display: flex; gap: 12px; align-items: center; }
.add-line .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); display: grid; place-items: center; font-size: 20px; }

.form { padding: 8px 0 12px; }
.fl { display: block; margin: 8px 0; }
.fl span { display: block; font-size: 12.5px; color: var(--muted); margin: 0 2px 4px; font-weight: 600; }
.fl input, .fl textarea { width: 100%; border: 1.5px solid var(--line); background: var(--bg); border-radius: 12px;
  padding: 11px 12px; outline: 0; transition: border-color .15s; }
.fl input:focus, .fl textarea:focus { border-color: var(--brand); }
.fl textarea { resize: none; min-height: 70px; }
.fl.bad input { border-color: var(--danger); }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.row2 { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; }
.labels { display: flex; gap: 8px; margin: 8px 0; flex-wrap: wrap; }
.lbl { padding: 8px 12px; border-radius: 99px; background: var(--surface2); font-weight: 600; font-size: 13.5px; }
.lbl.on { background: var(--brand); color: var(--on-brand); }
.check { display: flex; align-items: center; gap: 10px; padding: 8px 2px; font-weight: 600; }
.check .mk { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line); display: grid; place-items: center; }
.check.on .mk { background: var(--brand); border-color: var(--brand); }
.check.on .mk::after { content: ""; width: 10px; height: 6px; border: 2.5px solid var(--on-brand); border-top: 0; border-right: 0;
  transform: rotate(-45deg) translate(1px, -1px); }
.phone-row { display: flex; gap: 8px; align-items: flex-end; }
.phone-row .fl { flex: 1; }
.tg-btn { height: 45px; padding: 0 12px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); font-weight: 650;
  font-size: 13.5px; margin: 8px 0; white-space: nowrap; }
.days { display: flex; gap: 8px; margin: 4px 0 10px; }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding-bottom: 12px; }
.times button { padding: 10px 0; border-radius: 12px; background: var(--surface2); font-weight: 650; font-size: 14px; }
.times button.on { background: var(--brand); color: var(--on-brand); }
.chg { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 0 12px; }
.pay-opt { display: flex; gap: 10px; padding: 12px 0; }
.pay-opt button { flex: 1; border-radius: 16px; padding: 14px 10px; background: var(--surface2); text-align: center;
  border: 2px solid transparent; font-weight: 650; }
.pay-opt button i { display: block; font-size: 26px; font-style: normal; margin-bottom: 4px; }
.pay-opt button.on { border-color: var(--brand); background: var(--brand-soft); }

.done { text-align: center; padding: 70px 24px 120px; animation: fade .3s; }
.done .ok { width: 96px; height: 96px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); margin: 0 auto 20px;
  display: grid; place-items: center; font-size: 46px; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.done h1 { margin: 0 0 6px; font-size: 28px; }
.done p { color: var(--muted); margin: 6px 0; }
.done .btns { display: flex; flex-direction: column; gap: 10px; margin-top: 28px; }

.ord { padding: 13px 0; border-bottom: 1px solid var(--line); }
.ord:last-child { border-bottom: 0; }
.ord-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ord-h b { font-size: 15px; }
.st { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--surface2); white-space: nowrap; }
.st.new, .st.accepted { background: var(--accent-soft); color: var(--accent); }
.st.onway, .st.ready { background: var(--brand-soft); color: var(--brand); }
.st.done { background: var(--ok-soft); color: var(--ok); }
.ord .it { color: var(--muted); font-size: 13px; margin: 5px 0 8px; }
.ord-f { display: flex; justify-content: space-between; align-items: center; }
.small-btn { padding: 7px 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); font-weight: 650; font-size: 13.5px; }
.info-l { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.info-l:last-child { border-bottom: 0; }
.info-l i { font-style: normal; font-size: 19px; width: 26px; text-align: center; }

.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px);
  background: rgba(20, 26, 30, .92); color: #fff; padding: 11px 16px; border-radius: 14px; font-weight: 600; font-size: 14px;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 100; max-width: 88%; text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.skel { background: linear-gradient(90deg, var(--surface2), var(--surface), var(--surface2)); background-size: 200% 100%;
  animation: sk 1.2s infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }

/* комментарий к заказу: заметный блок */
.note-t { text-transform: none; letter-spacing: 0; font-size: 16px; color: var(--text); }
.note { border: 1.5px solid var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.note-h { font-size: 13.5px; color: var(--muted); margin: 6px 2px 2px; }
.note-sm { margin: 0; }
.note-sm textarea { min-height: 44px; height: 44px; background: var(--surface); border-color: transparent; box-shadow: 0 1px 0 var(--line);
  padding: 11px 12px; font-size: 14px; line-height: 1.4; overflow: hidden; }
.callbox { display: flex; gap: 12px; align-items: center; text-align: left; background: var(--accent-soft); color: var(--text);
  border-radius: 16px; padding: 14px 16px; margin: 18px 0 8px; }
.callbox i { font-style: normal; font-size: 26px; }
.callbox b { display: block; color: var(--accent); }
.callbox small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.call-l { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 5px; }
.call-l.no { color: var(--danger); }
.st.cancelled { background: var(--surface2); color: var(--danger); }

/* дата и время */
.datepick { position: relative; overflow: hidden; }
.datepick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; }
.timepick { position: relative; display: flex; align-items: center; gap: 12px; background: var(--surface2); border-radius: 14px;
  padding: 11px 14px; margin: 2px 0 14px; border: 1.5px solid transparent; }
.timepick.set { border-color: var(--brand); background: var(--brand-soft); }
.timepick select { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; font-size: 16px; }
.tp-ic { font-size: 22px; }
.tp-t { flex: 1; }
.tp-t small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.tp-t b { font-size: 19px; }
.timepick:not(.set) .tp-t b { color: var(--brand); font-size: 16px; }
.tp-ch { color: var(--muted); font-size: 22px; }
/* город по умолчанию — бледный, но это настоящий текст */
.fl input.dim { color: var(--muted); }

/* кнопка профиля в шапке */
.prof-btn { position: relative; flex: none; align-self: flex-start; display: flex; flex-direction: column; align-items: center; gap: 2px;
  background: var(--brand); color: var(--on-brand); border-radius: 16px; padding: 8px 10px 7px; min-width: 64px;
  box-shadow: var(--banner-shadow); }
.prof-btn .pi { font-size: 20px; line-height: 1; display: block; height: 20px; }
.prof-btn .pi svg { display: block; }
.prof-btn .pt { font-size: 11.5px; font-weight: 700; }
.prof-btn .dot { position: absolute; top: -3px; right: -3px; width: 13px; height: 13px; border-radius: 50%; background: var(--accent);
  border: 2px solid var(--bg); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.25); } }
/* плашка на главной */
.banner { display: flex; align-items: center; gap: 12px; margin: 12px 16px 0; padding: 12px 14px; border-radius: 18px; width: calc(100% - 32px);
  background: var(--surface); box-shadow: var(--shadow); text-align: left; animation: fade .3s; }
.banner.act { background: var(--brand); color: var(--on-brand); }
.banner .b-ic { font-size: 26px; width: 44px; height: 44px; border-radius: 14px; background: var(--brand-soft); display: grid; place-items: center; flex: none; }
.banner.act .b-ic { background: rgba(255, 255, 255, .18); }
.banner .b-t { flex: 1; min-width: 0; }
.banner .b-t small { display: block; font-size: 12.5px; opacity: .8; font-weight: 600; }
.banner .b-t b { display: block; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.banner .b-call { opacity: 1 !important; margin-top: 2px; }
.banner .b-ch { font-size: 24px; opacity: .7; }
.banner .b-sum { font-weight: 750; white-space: nowrap; }
.banner.rate .b-t b { white-space: normal; }
.b-stars { display: flex; gap: 6px; margin-top: 6px; }
.b-stars button { font-size: 30px; color: var(--line); line-height: 1; transition: color .1s; }
.b-stars button:active, .b-stars button:hover { color: #f5b301; }
/* профиль: плашки заказов кликабельные */
.ord { cursor: pointer; }
.ord:active { opacity: .7; }
.ord-btns { display: flex; align-items: center; gap: 8px; }
.ord-more { font-size: 24px; color: var(--muted); }
.ord-stars { color: #f5b301; font-size: 13px; margin-left: 6px; letter-spacing: 1px; }
/* страница заказа */
.st-card { padding: 16px; }
.st-big { display: flex; align-items: center; gap: 10px; font-size: 20px; }
.st-big i { font-style: normal; font-size: 28px; }
.st-card.cancelled .st-big b { color: var(--danger); }
.st-card.done .st-big b { color: var(--ok); }
.steps { display: flex; align-items: flex-start; margin: 16px 0 4px; }
.step-i { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 62px; flex: none; text-align: center; }
.step-i i { font-style: normal; width: 36px; height: 36px; border-radius: 50%; background: var(--surface2); display: grid; place-items: center;
  font-size: 17px; filter: grayscale(1); opacity: .55; }
.step-i span { font-size: 11.5px; color: var(--muted); font-weight: 600; line-height: 1.2; }
.step-i.past i { background: var(--ok); color: #fff; filter: none; opacity: 1; font-weight: 800; }
.step-i.cur i { background: var(--brand-soft); filter: none; opacity: 1; box-shadow: 0 0 0 3px var(--brand); }
.step-i.cur span { color: var(--text); }
.step-l { flex: 1; height: 3px; background: var(--surface2); margin-top: 17px; border-radius: 3px; }
.cancel-l { color: var(--danger); margin-top: 10px; font-size: 14px; }
.info-l small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.info-l em { color: var(--muted); font-size: 13px; }
/* отзыв */
.rv-form { padding: 6px 14px 14px; }
.rv-q { font-weight: 700; margin: 12px 2px 6px; }
.rv-q.sm { font-size: 14px; color: var(--muted); }
.rv-two { display: flex; flex-direction: column; gap: 2px; }
.stars { display: flex; gap: 4px; }
.stars button { font-size: 24px; color: var(--line); line-height: 1; padding: 2px; transition: transform .1s, color .1s; }
.stars.big button { font-size: 40px; }
.stars button.on { color: #f5b301; }
.stars button:active { transform: scale(1.2); }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin: 4px 0 6px; }
.tagc { padding: 7px 11px; border-radius: 99px; background: var(--surface2); font-size: 13.5px; font-weight: 600; }
.tagc.on { background: var(--ok-soft); color: var(--ok); box-shadow: inset 0 0 0 1.5px var(--ok); }
.tagc.bad.on { background: var(--accent-soft); color: var(--accent); box-shadow: inset 0 0 0 1.5px var(--accent); }
.rv-form .btn { width: 100%; margin-top: 10px; flex: none; }
.rv-done { padding: 12px 14px; }
.rv-row { display: flex; justify-content: space-between; padding: 4px 0; }
.st-show { color: #f5b301; letter-spacing: 2px; }
.st-show i { font-style: normal; color: var(--line); }
.rv-text { margin: 8px 0 0; font-style: italic; }
.rv-edit { margin-top: 8px; font-size: 14px; }

/* карточка блюда: подсказка, что фото можно открыть */
.sheet .big img { cursor: zoom-in; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(0, 0, 0, .45);
  color: #fff; display: grid; place-items: center; font-size: 17px; pointer-events: none; }
.sheet .grab { width: 44px; height: 5px; top: 9px; background: rgba(255, 255, 255, .85); box-shadow: 0 1px 4px rgba(0, 0, 0, .3); }
.sheet-box, .sheet-buy { will-change: transform; }
/* просмотр фото */
.viewer { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; touch-action: none;
  overscroll-behavior: contain; }
.v-bg { position: absolute; inset: 0; background: #000; }
.viewer img { position: relative; max-width: 100vw; max-height: 100vh; object-fit: contain; will-change: transform; user-select: none;
  -webkit-user-drag: none; }
.v-x { position: absolute; top: calc(14px + env(safe-area-inset-top)); right: 14px; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .16); color: #fff; font-size: 19px; display: grid; place-items: center; z-index: 2; }

/* готовый заказ: карточка с кнопкой отзыва */
.st-card.done .rv-btn { width: 100%; flex: none; margin-top: 14px; }
.rv-mine { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-weight: 600; }
.rv-mine .st-show { font-size: 20px; }
.st-card.done .btn.ghost { background: var(--surface2); box-shadow: none; }
.rv-mine + .rv-text { text-align: left; }

/* обращения и пожелания (профиль) */
.fb-hint { font-size: 13.5px; margin: 2px 2px 8px; }
.fb-send { display: block; width: 100%; flex: none; margin-top: 4px; }
/* корзина: «Очистити» красной */
.link.clear-btn { white-space: nowrap; flex: none; color: var(--danger); background: rgba(208, 75, 62, .1); padding: 7px 12px; border-radius: 99px; font-weight: 650; }
html.dark .link.clear-btn { background: rgba(239, 107, 95, .14); }
/* профиль: «Мої замовлення» — 2 последних, стрелка ведёт ко всем */
.ords-box { padding-top: 4px; }
.ords-h { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 10px 0 8px; text-align: left; }
.ords-h b { font-size: 17px; }
.ords-h span { color: var(--brand); font-weight: 650; font-size: 14.5px; padding: 5px 10px; border-radius: 99px; background: var(--brand-soft); }
/* поиск: крестик «стереть» — бледно-красный в ещё более бледном кружке */
.search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; margin-left: 8px;
  cursor: pointer; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='rgb(208,75,62)%27 fill-opacity=%27.09'/%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='rgb(208,75,62)%27 stroke-opacity=%27.6' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat; }
html.dark .search input::-webkit-search-cancel-button { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='12' fill='rgb(239,107,95)%27 fill-opacity=%27.13'/%3E%3Cpath d='M8 8l8 8M16 8l-8 8' stroke='rgb(239,107,95)%27 stroke-opacity=%27.75' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* сайт в браузере: своя кнопка «назад» (в Telegram — системная) */
.wback { position: fixed; z-index: 60; left: 12px; top: calc(10px + env(safe-area-inset-top)); width: 42px; height: 42px;
  border-radius: 50%; background: var(--surface); color: var(--brand); font-size: 30px; line-height: 38px; font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .14); }
.wback.hidden { display: none; }
html.web .scr-h { padding-left: 50px; min-height: 42px; }        /* место под кнопку «назад» */
html.web .done { padding-top: 60px; }
/* сайт на компьютере: широкая раскладка как у сайта кафе (дизайн тот же, меняются только ширины и колонки) */
@media (min-width: 760px) {
  html.web { --w: 1180px; --pad: max(24px, calc((100vw - var(--w)) / 2)); --form: 760px; --fside: max(0px, calc((100vw - var(--form)) / 2)); }
  html.web .hero { padding: 26px var(--pad) 8px; }
  html.web .logo { width: 84px; height: 84px; }
  html.web .hero h1 { font-size: 26px; }
  html.web .search { margin: 14px var(--pad) 4px; }
  html.web .cats { padding-left: var(--pad); padding-right: var(--pad); }
  html.web .vseg { flex: none; width: 460px; }
  html.web .banner { margin: 14px var(--pad) 0; width: auto; max-width: 620px; }
  html.web .sec { padding: 6px var(--pad) 4px; }
  html.web .sec h2 { font-size: 27px; margin-top: 26px; }
  html.web .grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  html.web .card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(36, 32, 30, .16); }
  html.web .card .n { font-size: 16px; }
  html.web .card .d { font-size: 14px; line-height: 1.4; -webkit-line-clamp: 4; }       /* описание целиком почти у всех блюд */
  html.web .card .b { padding: 12px 14px 14px; }
  html.web .card .ph { aspect-ratio: 5 / 4; }                 /* фото пониже, карточка не огромная */
  html.web .rail-h { padding-left: var(--pad); padding-right: var(--pad); }
  html.web .rail { padding-left: var(--pad); padding-right: var(--pad); scroll-padding: 0 var(--pad); gap: 16px; }
  html.web .mini { width: auto; max-width: none; }
  /* ряды «По категоріях» на компьютере: один ровный ряд без горизонтальной прокрутки, остальное — «Усі ›» */
  html.web .rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); grid-template-rows: auto; grid-auto-rows: 0;
    row-gap: 0; overflow: hidden; scroll-snap-type: none; padding-top: 4px; }
  html.web .rail > * { min-width: 0; }
  html.web .mini:hover { transform: translateY(-3px); }
  /* открыто окно блюда — своя кнопка «назад» не нужна, в окне есть ✕ */
  html.web .sheet:not(.hidden) ~ #wback { display: none; }
  /* корзина, оформление, профиль — по центру, читаемой ширины */
  html.web .scr, html.web .done { max-width: var(--form); margin: 0 auto; }
  html.web .buy, html.web .fixed-btn { left: var(--fside); right: var(--fside); }
  html.web .cartbar { left: calc(50% - 340px); right: calc(50% - 340px); bottom: 22px; padding: 20px 28px; border-radius: 22px;
    font-size: 20px; gap: 16px; cursor: pointer; transition: transform .15s, box-shadow .15s; }
  html.web .cartbar:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(36, 32, 30, .28); }
  html.web .cartbar .cnt { font-size: 17px; padding: 3px 12px; border-radius: 12px; }
  html.web .wback { left: calc(var(--fside) + 12px); }
  /* карточка блюда — окно по центру: фото слева, выбор справа, кнопка «Додати» внизу окна */
  html.web .sheet-box { left: calc(50% - 440px); right: calc(50% - 440px); top: 6vh; bottom: calc(6vh + 74px); max-height: none;
    padding-bottom: 20px; display: grid; grid-template-columns: 400px 1fr; align-items: start; border-radius: 24px 24px 0 0; }
  html.web .sheet .big { position: sticky; top: 0; aspect-ratio: 1 / 1; }
  html.web .sheet .grab { display: none; }
  html.web .sheet-buy { left: calc(50% - 440px); right: calc(50% - 440px); bottom: 6vh; border-radius: 0 0 24px 24px; }
  html.web .sheet-buy .btn { max-width: 420px; margin-left: auto; }
}
@media (min-width: 1500px) { html.web .grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px) and (max-width: 939px) {
  html.web .sheet-box, html.web .sheet-buy { left: 24px; right: 24px; }
  html.web .sheet-box { grid-template-columns: 1fr; }
  html.web .sheet .big { position: relative; aspect-ratio: 16 / 9; }
}
}

/* сайт: переключатель темы над кнопкой «Профіль» (в Telegram тему задаёт Telegram) */
.hero-r { flex: none; align-self: flex-start; display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.theme-sw { position: relative; display: flex; justify-content: space-between; align-items: center; height: 30px; padding: 0 7px;
  border-radius: 99px; background: var(--surface2); font-size: 14px; box-shadow: inset 0 0 0 1px var(--line); }
.theme-sw span { position: relative; z-index: 1; width: 22px; text-align: center; transition: opacity .2s; }
.theme-sw span:last-of-type { opacity: .45; }
.theme-sw.on span:first-of-type { opacity: .45; } .theme-sw.on span:last-of-type { opacity: 1; }
.theme-sw i { position: absolute; top: 3px; left: 3px; width: 30px; height: 24px; border-radius: 99px; background: var(--surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .18); transition: transform .22s cubic-bezier(.2, .8, .2, 1); }
.theme-sw.on i { transform: translateX(calc(100% - 2px)); }

/* Wi-Fi закладу: в «Про заклад» и внизу меню, тап копирует пароль */
button.wifi { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; }
.foot-wifi.wifi { display: inline-flex; width: auto; padding: 0; margin-top: 6px; gap: 6px; color: inherit; font-size: inherit; }
.foot-wifi i { font-style: normal; }
button.wifi.info-l { border-bottom: 1px solid var(--line); }
button.wifi.info-l:last-child { border-bottom: 0; }

/* Шапка-картинка паба (header.webp, фон прозрачный). Кнопки — в прозрачных верхних углах арки, плашки — под ней */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero.hb { position: relative; display: block; padding: 14px 12px 4px; text-align: center; }
.hb-img { display: block; width: 100%; max-width: 560px; height: auto; margin: 6px auto 0; aspect-ratio: 1001 / 456;
  filter: drop-shadow(0 8px 18px rgba(36, 32, 30, .22)); user-select: none; -webkit-user-drag: none; }
html.dark .hb-img { filter: drop-shadow(0 0 1px rgba(240, 169, 42, .45)) drop-shadow(0 10px 26px rgba(0, 0, 0, .55)); }
.hb .prof-btn { position: absolute; top: 12px; right: 12px; flex-direction: row; gap: 6px; height: 36px; min-width: 0;
  padding: 0 13px 0 11px; border-radius: 99px; z-index: 2; }
.hb .prof-btn .pi { height: 18px; }
.hb .prof-btn .pt { font-size: 13px; }
.hb .theme-sw { position: absolute; top: 15px; left: 12px; width: 66px; z-index: 2; }
.hb .pills { justify-content: center; margin-top: 10px; }
@media (max-width: 359px) { .hb .prof-btn .pt { display: none; } .hb .prof-btn { padding: 0 10px; } }
@media (min-width: 760px) {
  html.web .hero.hb { padding: 22px var(--pad) 6px; }
  html.web .hb-img { max-width: 600px; margin-top: 0; }
  html.web .hb .prof-btn { top: 24px; right: var(--pad); height: 42px; padding: 0 18px 0 15px; }
  html.web .hb .prof-btn .pt { font-size: 14px; }
  html.web .hb .theme-sw { top: 30px; left: var(--pad); }
  html.web .hb .pills { margin-top: 14px; }
}
@media (max-width: 389px) {
  .hb-img { margin-top: 14px; }
  .hb .pill { font-size: 11.5px; padding: 4px 8px; }
  .hb .pills { gap: 5px; }
}
