/* GARSON — тёмная тема в духе iOS: системный шрифт, стеклянные материалы, капсулы. */
:root {
  --bg: #15100d;
  --bg2: #1d1713;
  --sheet: #1f1915;
  --fill: rgba(255, 238, 222, .065);
  --fill2: rgba(255, 238, 222, .10);
  --fill3: rgba(255, 238, 222, .15);
  --line: rgba(255, 240, 226, .10);
  --line2: rgba(255, 240, 226, .17);
  --sep: rgba(255, 240, 226, .09);
  --t1: #f6f0ea;
  --t2: rgba(246, 240, 234, .62);
  --t3: rgba(246, 240, 234, .38);
  --gold: #e8ae5e;
  --gold2: #f1c27f;
  --red: #ff453a;
  --green: #32d74b;
  --orange: #ff9f0a;
  --blue: #64b5ff;
  --cream: #fff6ec;
  --ink: #1a120c;
  --glass: rgba(40, 30, 25, .55);
  --glass-hi: inset 0 0 0 .5px rgba(255, 245, 235, .20), inset 0 1px 0 rgba(255, 255, 255, .10);
  --blur: blur(22px) saturate(180%);
  --sb: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --st: var(--tg-content-safe-area-inset-top, 0px);
  --tabbar-h: 62px;
  --tabbar-b: max(10px, calc(var(--sb) - 4px));
  --ease: cubic-bezier(.32, .72, 0, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); color-scheme: dark; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--t1);
  font: 400 15px/1.35 var(--font); letter-spacing: -.008em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
}
body.lock { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; text-align: inherit; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
button:disabled { cursor: default; }
a { color: inherit; text-decoration: none; }
img { display: block; }
input, textarea, select { font: inherit; color: inherit; margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3, p, ol, ul { margin: 0; }
.ic { display: block; flex: none; }
:focus-visible { outline: 2px solid rgba(232, 174, 94, .7); outline-offset: 2px; }

/* ---------- каркас ---------- */
.app { min-height: 100vh; min-height: 100dvh; }
.page { max-width: 600px; margin: 0 auto; padding: calc(10px + var(--st)) 16px 28px; animation: pagein .26s ease both; }
.app.with-nav .page { padding-bottom: calc(var(--tabbar-h) + var(--tabbar-b) + 30px); }
.app:not(.with-nav) .page { padding-bottom: calc(28px + var(--sb)); }
.page-h { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 8px 2px 14px; min-height: 58px; }
.page-h h1 { font-size: 32px; line-height: 38px; font-weight: 700; letter-spacing: -.026em; min-width: 0; overflow-wrap: anywhere; }
.page-h .chip-st { margin-bottom: 6px; }
.page-h .link, .page-h .btn.sm { margin-bottom: 3px; }
.boot, .boot-err { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
/* мягкое затемнение под плавающей панелью, как у iOS */
.app.with-nav::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: calc(64px + var(--sb)); z-index: 29; pointer-events: none;
  background: linear-gradient(to top, rgba(21, 16, 13, .92), rgba(21, 16, 13, .55) 55%, rgba(21, 16, 13, 0)); }

.sec-t { font-size: 22px; line-height: 27px; font-weight: 700; letter-spacing: -.022em; }
.sec-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 30px 2px 12px; }
.sec-row .sec-t { min-width: 0; text-wrap: balance; }
.more { flex: none; display: inline-flex; align-items: center; gap: 1px; color: var(--gold); font-size: 15px; font-weight: 600; padding: 4px 0 3px 8px; }
.more:active { opacity: .6; }

.hscroll { display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scroll-padding: 0 16px; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll::after { content: ""; flex: 0 0 6px; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px;
  background: var(--cream); color: var(--ink); font-size: 17px; font-weight: 600; letter-spacing: -.015em; white-space: nowrap;
  transition: transform .18s var(--ease), opacity .2s, background .2s; }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .35; }
.btn.wide { width: 100%; }
.btn.grow, .grow { flex: 1; min-width: 0; }
.btn.ghost { background: var(--fill2); color: var(--t1); box-shadow: inset 0 0 0 .5px var(--line); }
.btn.ghost:active:not(:disabled) { background: var(--fill3); }
.btn.danger, .btn.ghost.danger { color: #ff6b61; }
.btn.sm { height: 34px; padding: 0 14px; font-size: 15px; gap: 5px; }
.btn-row { display: flex; gap: 10px; }
.btn-row .btn { flex: 1; padding: 0 12px; }
.link { color: var(--gold); font-size: 16px; font-weight: 500; padding: 6px 2px; }
.link:active { opacity: .6; }
.link.danger { color: #ff6b61; }
.icon-btn { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; color: var(--t2); background: var(--fill2); }
.icon-btn:disabled { opacity: .28; }
.glass-btn { display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(28, 20, 16, .38);
  -webkit-backdrop-filter: blur(16px) saturate(170%); backdrop-filter: blur(16px) saturate(170%); box-shadow: var(--glass-hi), 0 2px 10px rgba(0, 0, 0, .18); }

/* ---------- главная ---------- */
.brand { display: flex; align-items: center; gap: 12px; padding: 6px 2px 16px; }
.brand-logo { width: 46px; height: 46px; flex: none; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 .5px var(--line2); }
.brand-t { min-width: 0; }
.brand-t h1 { font-size: 19px; line-height: 23px; font-weight: 700; letter-spacing: -.02em; }
.brand-t p { margin-top: 2px; font-size: 13.5px; line-height: 17px; color: var(--t2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.active-order { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px 11px 11px; margin-bottom: 14px; border-radius: 20px;
  background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); text-align: left; }
.active-order:active { background: var(--fill2); }
.ao-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; color: var(--green); background: rgba(50, 215, 75, .14); }
.ao-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ao-t span { font-size: 16px; font-weight: 600; }
.ao-t small { font-size: 13.5px; color: var(--t2); }

.hero { position: relative; isolation: isolate; overflow: hidden; border-radius: 26px; min-height: 232px; background: var(--bg2); }
.hero::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 .5px rgba(255, 240, 226, .12); pointer-events: none; }
.hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-shade { position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(16, 11, 8, .94) 0%, rgba(16, 11, 8, .80) 38%, rgba(16, 11, 8, .30) 72%, rgba(16, 11, 8, .08) 100%),
    linear-gradient(0deg, rgba(16, 11, 8, .35), rgba(16, 11, 8, 0) 45%); }
.hero-body { display: flex; flex-direction: column; align-items: flex-start; padding: 18px 18px 20px; }
.hero-badge { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--t1);
  background: rgba(255, 245, 235, .12); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); box-shadow: var(--glass-hi); }
.hero-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(50, 215, 75, .18); }
.hero-badge.closed i { background: var(--orange); box-shadow: 0 0 0 3px rgba(255, 159, 10, .18); }
.hero h2 { margin-top: 14px; max-width: 250px; font-size: 28px; line-height: 31px; font-weight: 700; letter-spacing: -.028em; text-wrap: balance; }
.hero p { margin-top: 8px; max-width: 238px; font-size: 14.5px; line-height: 19px; color: rgba(246, 240, 234, .76); }
.hero-btn { margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px 0 20px; border-radius: 999px;
  background: var(--cream); color: var(--ink); font-size: 16px; font-weight: 600; letter-spacing: -.015em; transition: transform .18s var(--ease); }
.hero-btn .ic { color: #c27a2c; }
.hero-btn:active { transform: scale(.96); }

.cats-t { margin: 28px 2px 12px; }
.chips { gap: 8px; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 17px 0 14px; border-radius: 999px;
  background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: background .2s; }
.chip .ic { color: var(--gold); }
.chip:active { background: var(--fill3); }

/* ---------- карточки ---------- */
.cards { gap: 12px; }
.card { position: relative; flex: none; width: 156px; cursor: pointer; }
.card.g { width: auto; min-width: 0; }
.card-media { position: relative; aspect-ratio: 1; border-radius: 20px; overflow: hidden; background: var(--bg2); transition: transform .2s var(--ease); }
.card-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 .5px rgba(255, 240, 226, .10); pointer-events: none; }
.card:active .card-media { transform: scale(.975); }
.card-media .img { width: 100%; height: 100%; object-fit: cover; }
.card.off .card-media .img { filter: grayscale(.9) brightness(.55); }
.card-add { position: absolute; right: 8px; bottom: 8px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: #fff;
  background: rgba(28, 20, 16, .40); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); box-shadow: var(--glass-hi), 0 3px 12px rgba(0, 0, 0, .22);
  transition: transform .18s var(--ease); }
.card-add:active { transform: scale(.9); }
.card-step { position: absolute; left: 8px; right: 8px; bottom: 8px; }
.card-step .stepper { width: 100%; justify-content: space-between; color: #fff; background: rgba(28, 20, 16, .46); -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); box-shadow: var(--glass-hi), 0 3px 12px rgba(0, 0, 0, .22); }
.card-tag { position: absolute; left: 8px; top: 8px; height: 22px; padding: 0 9px; border-radius: 999px; display: inline-flex; align-items: center;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em; color: var(--gold2); background: rgba(28, 20, 16, .42);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%); box-shadow: var(--glass-hi); }
.card-off { position: absolute; left: 8px; bottom: 8px; height: 26px; padding: 0 10px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 600;
  color: var(--t1); background: rgba(28, 20, 16, .5); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--glass-hi); }
.card-b { display: flex; flex-direction: column; gap: 2px; padding: 9px 3px 0; }
.card-p { font-size: 16px; line-height: 20px; font-weight: 700; letter-spacing: -.012em; font-variant-numeric: tabular-nums; }
.card-n { font-size: 14px; line-height: 18px; color: rgba(246, 240, 234, .74); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.off .card-p, .card.off .card-n { color: var(--t3); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
@media (min-width: 540px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- степпер ---------- */
.stepper { display: inline-flex; align-items: center; flex: none; height: 52px; border-radius: 999px; background: var(--fill2); box-shadow: inset 0 0 0 .5px var(--line); }
.stepper button { width: 46px; height: 100%; display: grid; place-items: center; border-radius: 999px; }
.stepper button:active { background: var(--fill2); }
.stepper span { min-width: 26px; text-align: center; font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stepper.sm { height: 36px; }
.stepper.sm button { width: 36px; }
.stepper.sm span { min-width: 20px; font-size: 15px; }

/* ---------- меню ---------- */
.search { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 6px 0 13px; border-radius: 999px; color: var(--t3);
  background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); transition: box-shadow .2s, background .2s; }
.search:focus-within { background: var(--fill2); box-shadow: inset 0 0 0 1px rgba(232, 174, 94, .55); }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 16px; color: var(--t1); -webkit-appearance: none; appearance: none; }
.search input::placeholder { color: var(--t3); }
.search input::-webkit-search-cancel-button { display: none; }
.search button { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: var(--bg); background: var(--t3); transform: scale(.72); }
.menu .search { margin-bottom: 4px; }
.menu-head { position: sticky; top: 0; z-index: 20; margin: 0 -16px; padding: 10px 0; transition: background .25s, box-shadow .25s;
  background: rgba(21, 16, 13, 0); }
.menu-head.stuck { background: rgba(21, 16, 13, .72); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); box-shadow: 0 .5px 0 var(--sep); }
.tabs { margin: 0; gap: 8px; }
.tab { flex: none; height: 36px; padding: 0 15px; border-radius: 999px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; color: var(--t2);
  background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); transition: background .25s, color .25s, box-shadow .25s; }
.tab.on { color: var(--ink); background: var(--cream); box-shadow: none; }
.menu-sec { padding-top: 16px; }
.menu-sec + .menu-sec { padding-top: 26px; }
.menu-sec .sec-t { margin: 0 2px 14px; }

/* ---------- лист блюда ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; flex-direction: column; justify-content: flex-end; }
.backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .52); touch-action: none; animation: fade .3s ease both; }
.sheet { position: relative; width: 100%; max-width: 600px; margin: 0 auto; max-height: calc(100% - 28px - var(--st)); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  background: var(--sheet); border-radius: 32px 32px 0 0; box-shadow: inset 0 .5px 0 rgba(255, 240, 226, .14), 0 -12px 40px rgba(0, 0, 0, .45);
  padding-bottom: calc(18px + var(--sb)); animation: up .46s var(--ease) both; will-change: transform; }
.sheet::-webkit-scrollbar { display: none; }
.closing .sheet { animation: down .24s cubic-bezier(.4, 0, 1, 1) both; }
.closing.dragged .sheet { animation: none; }
.closing .backdrop { animation: fadeout .24s ease both; }
.sheet-grab { position: absolute; z-index: 3; top: 7px; left: 50%; width: 38px; height: 5px; margin-left: -19px; border-radius: 3px; background: rgba(255, 255, 255, .55); }
.sheet-x { position: absolute; z-index: 3; top: 14px; right: 14px; width: 34px; height: 34px; }
.sheet-media { position: relative; aspect-ratio: 5 / 4; background: var(--bg2); }
.sheet-media .img { width: 100%; height: 100%; object-fit: cover; }
.sheet-media .card-tag { top: auto; bottom: 14px; left: 16px; height: 26px; padding: 0 11px; font-size: 12.5px; }
.sheet-b { padding: 20px 20px 4px; }
.sheet-b h2 { font-size: 25px; line-height: 30px; font-weight: 700; letter-spacing: -.024em; }
.sheet-meta { display: flex; align-items: baseline; gap: 10px; margin-top: 6px; }
.sheet-meta b { font-size: 19px; font-weight: 700; color: var(--gold2); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.sheet-meta span { font-size: 15px; color: var(--t3); }
.sheet-b p { margin-top: 12px; font-size: 16px; line-height: 23px; color: var(--t2); }
.sheet-act { display: flex; align-items: center; gap: 10px; margin-top: 24px; }
.sheet-act .btn { padding: 0 16px; }
.sheet-rm { display: block; margin: 12px auto 0; }

/* ---------- списки / группы (inset grouped) ---------- */
.group { margin: 0 0 16px; border-radius: 22px; overflow: hidden; background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); }
.group > * { position: relative; }
.group > * + *::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--sep); }
.group > .row.has-ic + *::before, .group > .row.has-ic + .row::before { left: 60px; }
.row { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; text-align: left; color: var(--t1); transition: background .15s; }
button.row:active, a.row:active { background: var(--fill2); }
.row-ic { width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--gold); background: rgba(232, 174, 94, .14); }
.row-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-t span { font-size: 16px; line-height: 21px; }
.row-t small { font-size: 13.5px; line-height: 18px; color: var(--t2); overflow-wrap: anywhere; }
.row-chev { color: var(--t3); }
.row.danger, .row.danger .row-ic { color: #ff6b61; }

.switch-row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 14px 10px 16px; text-align: left; }
.switch-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.switch-txt span { font-size: 16px; line-height: 21px; }
.switch-txt small { font-size: 13.5px; line-height: 18px; color: var(--t2); }
.switch { position: relative; flex: none; width: 51px; height: 31px; border-radius: 999px; background: rgba(120, 108, 98, .34); transition: background .25s; }
.switch i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .18), 0 1px 2px rgba(0, 0, 0, .12); transition: transform .32s var(--ease); }
.switch.on { background: var(--green); }
.switch.on i { transform: translateX(20px); }

/* ---------- корзина ---------- */
.lines { border-radius: 22px; overflow: hidden; background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); }
.line { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; }
.line + .line::before { content: ""; position: absolute; top: 0; left: 82px; right: 0; border-top: .5px solid var(--sep); }
.line-img { width: 60px; height: 60px; flex: none; border-radius: 14px; overflow: hidden; background: var(--bg2); }
.line-img .img { width: 100%; height: 100%; object-fit: cover; }
.line-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.line-t span { font-size: 15.5px; line-height: 20px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-t b { font-size: 15px; font-weight: 600; color: var(--t2); font-variant-numeric: tabular-nums; }
.line.off .line-img, .line.off .line-t { opacity: .5; }
.line .stepper.sm { background: var(--fill2); }

.sum { display: flex; flex-direction: column; gap: 10px; margin: 16px 0; padding: 15px 16px; border-radius: 22px; background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); }
.sum > div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 15.5px; color: var(--t2); }
.sum > div > span:last-child { flex: none; color: var(--t1); font-variant-numeric: tabular-nums; }
.sum-i > span:first-child { color: var(--t1); min-width: 0; }
.sum hr { margin: 2px 0; border: 0; border-top: .5px solid var(--sep); }
.sum > .sum-total { font-size: 18px; font-weight: 700; color: var(--t1); letter-spacing: -.015em; }
.sum-note { font-size: 13.5px; line-height: 18px; color: var(--t3); }
.sum-note.warn { color: #ffc46b; }
.note { margin: 12px 0; padding: 0 6px; font-size: 13.5px; line-height: 18px; color: var(--t3); }
.note.warn { padding: 12px 14px; border-radius: 16px; color: #ffcf85; background: rgba(255, 159, 10, .10); box-shadow: inset 0 0 0 .5px rgba(255, 159, 10, .26); }
.cta-bar { position: sticky; z-index: 31; bottom: calc(var(--tabbar-h) + var(--tabbar-b) + 12px); padding-top: 8px; margin-top: 8px; }
.app:not(.with-nav) .cta-bar { bottom: max(14px, var(--sb)); }
.cta-bar .btn { box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.cta-bar::before { content: ""; position: absolute; z-index: -1; left: -16px; right: -16px; top: -22px; bottom: -12px; pointer-events: none;
  background: linear-gradient(to bottom, rgba(21, 16, 13, 0), rgba(21, 16, 13, .9) 42%, var(--bg) 70%); }
.app:not(.with-nav) .cta-bar::before { bottom: calc(-1 * max(14px, var(--sb)) - 1px); }

/* ---------- оформление ---------- */
.seg { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 3px; margin-bottom: 20px; border-radius: 999px;
  background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); }
.seg-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / var(--n)); border-radius: 999px; background: rgba(255, 240, 226, .16);
  box-shadow: inset 0 0 0 .5px rgba(255, 245, 235, .16), inset 0 1px 0 rgba(255, 255, 255, .07), 0 2px 8px rgba(0, 0, 0, .25);
  transform: translateX(calc(100% * var(--i))); transition: transform .36s var(--ease); }
.seg button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; padding: 0 10px; border-radius: 999px;
  font-size: 15px; font-weight: 600; color: var(--t2); white-space: nowrap; transition: color .25s; }
.seg button.on { color: var(--t1); }
.seg button:disabled { opacity: .35; }
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field-l { padding: 0 4px; font-size: 13.5px; font-weight: 600; color: var(--t2); }
.field input, .field textarea, .field select { display: block; width: 100%; min-height: 50px; padding: 13px 16px; border: 0; outline: 0; border-radius: 16px;
  background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); font-size: 16px; line-height: 22px; color: var(--t1);
  -webkit-appearance: none; appearance: none; transition: box-shadow .2s, background .2s; }
.field textarea { resize: none; }
.field input:focus, .field textarea:focus, .field select:focus { background: var(--fill2); box-shadow: inset 0 0 0 1.5px rgba(232, 174, 94, .75); }
.field ::placeholder { color: var(--t3); }
.field.has-err input, .field.has-err textarea { box-shadow: inset 0 0 0 1.5px rgba(255, 69, 58, .8); }
.field select { padding-right: 42px; background-repeat: no-repeat; background-position: right 15px center; background-size: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f6f0ea' stroke-opacity='.5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5M7 9l5-5 5 5'/%3E%3C/svg%3E"); }
.field select option { background: #2a221d; color: var(--t1); }
.field input[type=time] { min-width: 0; }
.field input[type=time]::-webkit-calendar-picker-indicator { filter: invert(1); opacity: .5; }
.field-e { padding: 0 4px; font-size: 13px; color: #ff6b61; }
.field-h { padding: 0 4px; font-size: 13px; line-height: 17px; color: var(--t3); }
.inp-row { display: flex; gap: 8px; }
.inp-row input { flex: 1; min-width: 0; }
.chip-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 50px; padding: 0 15px; border-radius: 16px;
  background: var(--fill2); box-shadow: inset 0 0 0 .5px var(--line); color: var(--gold); font-size: 15px; font-weight: 600; white-space: nowrap; }
.chip-btn:active { background: var(--fill3); }
.chip-btn.loc { align-self: flex-start; height: 40px; border-radius: 999px; margin-top: -4px; }
.chip-btn.loc.on { color: var(--green); }
.pickup-box { display: flex; align-items: flex-start; gap: 12px; padding: 14px; border-radius: 18px; background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); }
.pickup-box b { display: block; font-size: 16px; font-weight: 600; }
.pickup-box span:not(.row-ic) { display: block; margin-top: 2px; font-size: 14.5px; line-height: 19px; color: var(--t2); }
.slots { gap: 8px; }
.slot { flex: none; height: 38px; padding: 0 15px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--t2); white-space: nowrap; font-variant-numeric: tabular-nums;
  background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); transition: background .2s, color .2s; }
.slot.on { color: var(--ink); background: var(--cream); box-shadow: none; }
.pay { border-radius: 18px; overflow: hidden; background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); }
.pay-o { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; height: 54px; padding: 0 16px; font-size: 16px; text-align: left; transition: background .15s; }
.pay-o:active { background: var(--fill2); }
.pay-o + .pay-o::before { content: ""; position: absolute; top: 0; left: 48px; right: 0; border-top: .5px solid var(--sep); }
.pay-o .ic { color: var(--t3); transition: color .2s; }
.pay-o.on .ic { color: var(--gold); }
.pay-o span { flex: 1; }
.radio { position: relative; width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--t3); transition: background .2s, box-shadow .2s; }
.pay-o.on .radio { background: var(--gold); box-shadow: none; }
.pay-o.on .radio::after { content: ""; position: absolute; left: 7.5px; top: 4px; width: 5px; height: 10px; border: solid var(--ink); border-width: 0 2.2px 2.2px 0; transform: rotate(45deg); }

/* ---------- заказ ---------- */
.done-b { min-height: calc(100vh - 60px); min-height: calc(100dvh - 60px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 24px 6px; text-align: center; }
.done-ic { width: 88px; height: 88px; margin-bottom: 10px; border-radius: 50%; display: grid; place-items: center; color: var(--green); background: rgba(50, 215, 75, .13); box-shadow: inset 0 0 0 .5px rgba(50, 215, 75, .3); animation: pop .5s var(--ease) both; }
.done-b h1 { font-size: 26px; line-height: 31px; font-weight: 700; letter-spacing: -.024em; }
.done-b p { max-width: 310px; margin-bottom: 18px; font-size: 16px; line-height: 22px; color: var(--t2); }
.stack { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.stack.wide { width: 100%; }
.stack > .link { align-self: center; }
.olist { display: flex; flex-direction: column; gap: 10px; }
.ocard { display: flex; flex-direction: column; gap: 5px; width: 100%; padding: 14px 16px 15px; border-radius: 22px; text-align: left; background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); transition: background .15s; }
.ocard:active { background: var(--fill2); }
.ocard.hot { box-shadow: inset 0 0 0 1px rgba(232, 174, 94, .6); background: rgba(232, 174, 94, .07); }
.ocard-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ocard-h b { min-width: 0; font-size: 17px; font-weight: 700; letter-spacing: -.015em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocard .muted { font-size: 13.5px; }
.ocard-f { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-top: 4px; }
.ocard-items { min-width: 0; font-size: 14.5px; color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ocard-f b { flex: none; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.muted { color: var(--t2); }
.chip-st { flex: none; display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.st-new { color: #8fcaff; background: rgba(100, 181, 255, .15); }
.st-accepted, .st-cooking { color: #ffc06a; background: rgba(255, 159, 10, .14); }
.st-delivering, .st-ready { color: var(--gold2); background: rgba(232, 174, 94, .16); }
.st-done { color: #6ee286; background: rgba(50, 215, 75, .14); }
.st-canceled { color: #ff8178; background: rgba(255, 69, 58, .14); }
.steps { list-style: none; margin: 0 0 16px; padding: 10px 16px; border-radius: 22px; background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); }
.steps li { position: relative; display: flex; align-items: center; gap: 14px; height: 40px; font-size: 16px; color: var(--t3); }
.steps li i { position: relative; z-index: 1; width: 12px; height: 12px; flex: none; border-radius: 50%; background: var(--bg2); box-shadow: inset 0 0 0 1.5px rgba(246, 240, 234, .28); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 5.25px; top: 26px; height: 28px; width: 1.5px; border-radius: 1px; background: rgba(246, 240, 234, .14); }
.steps li.past { color: var(--t2); }
.steps li.past i { background: var(--green); box-shadow: none; }
.steps li.past::after { background: rgba(50, 215, 75, .55) !important; }
.steps li.now { color: var(--t1); font-weight: 600; }
.steps li.now i { background: var(--gold); box-shadow: 0 0 0 4px rgba(232, 174, 94, .2); }
.steps li small { margin-left: auto; font-size: 13.5px; font-weight: 400; color: var(--t3); font-variant-numeric: tabular-nums; }
.kv { margin: 16px 0; border-radius: 22px; overflow: hidden; background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); }
.kv > div { position: relative; display: flex; justify-content: space-between; gap: 18px; padding: 13px 16px; font-size: 15.5px; line-height: 21px; }
.kv > div + div::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; border-top: .5px solid var(--sep); }
.kv span { flex: none; color: var(--t2); }
.kv b { min-width: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.kv a { color: var(--gold); }
.hist { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 0; padding: 0 6px; }
.hist div { display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; color: var(--t3); }
.hist b { font-weight: 600; color: var(--t2); }
.hist small { margin-left: auto; font-size: 13px; }

/* ---------- инфо ---------- */
.info-head { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 0 22px; text-align: center; }
.info-head img { width: 84px; height: 84px; margin-bottom: 8px; border-radius: 50%; object-fit: cover; background: #fff; box-shadow: 0 0 0 .5px var(--line2), 0 10px 30px rgba(0, 0, 0, .35); }
.info-head h2 { font-size: 24px; line-height: 29px; font-weight: 700; letter-spacing: -.022em; }
.info-head p { font-size: 14.5px; color: var(--t2); }
.pill { display: inline-flex; align-items: center; gap: 7px; height: 28px; margin-top: 10px; padding: 0 12px 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--fill2); box-shadow: inset 0 0 0 .5px var(--line); }
.pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.pill.closed i { background: var(--orange); }
.txt { padding: 14px 16px 15px; }
.txt h3 { display: flex; align-items: center; gap: 12px; font-size: 16px; font-weight: 600; }
.txt p { margin-top: 10px; font-size: 15px; line-height: 21px; color: var(--t2); }
.txt ul { list-style: none; margin: 10px 0 0; padding: 0; }
.txt li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 15px; color: var(--t2); }
.txt li b { font-weight: 600; color: var(--t1); font-variant-numeric: tabular-nums; }

/* ---------- плавающая панель вкладок ---------- */
.tabbar { position: fixed; z-index: 40; left: 50%; bottom: var(--tabbar-b); transform: translateX(-50%); width: min(calc(100% - 32px), 440px); height: var(--tabbar-h);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 4px; border-radius: 999px;
  background: rgba(36, 27, 22, .80); -webkit-backdrop-filter: blur(26px) saturate(190%); backdrop-filter: blur(26px) saturate(190%);
  box-shadow: inset 0 0 0 .5px rgba(255, 240, 226, .16), inset 0 1px 0 rgba(255, 255, 255, .07), 0 12px 32px rgba(0, 0, 0, .5), 0 2px 6px rgba(0, 0, 0, .25); }
.tabbar-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc((100% - 8px) / 4); border-radius: 999px; background: rgba(255, 240, 226, .11);
  box-shadow: inset 0 0 0 .5px rgba(255, 245, 235, .10); transform: translateX(calc(100% * var(--i))); transition: transform .42s var(--ease); }
.tab-i { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 0; border-radius: 999px; color: var(--t2); transition: color .25s; }
.tab-i.on { color: var(--t1); }
.tab-i.on .tab-ic { color: var(--gold); }
.tab-i:active .tab-ic { transform: scale(.9); }
.tab-ic { position: relative; transition: transform .2s var(--ease), color .25s; }
.tab-l { font-size: 10.5px; line-height: 13px; font-weight: 600; letter-spacing: .005em; }
.badge { position: absolute; top: -4px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; font-style: normal; box-shadow: 0 0 0 2px rgba(38, 29, 24, .95); animation: pop .4s var(--ease) both; }

/* ---------- служебное ---------- */
.empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 52px 24px 30px; text-align: center; }
.empty-ic { width: 72px; height: 72px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; color: var(--t2); background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); }
.empty h3 { font-size: 20px; line-height: 25px; font-weight: 700; letter-spacing: -.02em; }
.empty p { max-width: 280px; font-size: 15px; line-height: 20px; color: var(--t2); }
.empty .btn { margin-top: 16px; height: 46px; padding: 0 22px; font-size: 16px; }
.spin { display: grid; place-items: center; padding: 56px 0; }
.spin i { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid rgba(255, 240, 226, .14); border-top-color: var(--t1); animation: rot .75s linear infinite; }
.img.ph { display: grid; place-items: center; width: 100%; height: 100%; color: var(--t3); background: var(--bg2); }
.toast { position: fixed; z-index: 90; top: calc(10px + var(--st)); left: 50%; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px;
  background: rgba(48, 38, 32, .8); -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  box-shadow: inset 0 0 0 .5px rgba(255, 240, 226, .18), 0 10px 30px rgba(0, 0, 0, .45); font-size: 15px; font-weight: 600; text-align: center; animation: tin .4s var(--ease) both; }
.toast.err { color: #ff8a80; }

/* ---------- админка ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 14px 14px 13px; border-radius: 20px; background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); }
.stat b { font-size: 26px; line-height: 31px; font-weight: 700; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--t2); }
.stat.wide { grid-column: 1 / -1; }
.admin .search { margin-bottom: 12px; }
.admin .seg { margin-bottom: 18px; }
.amenu-sec { margin-top: 18px; }
.amenu-sec .sec-t { margin: 0 4px 10px; font-size: 20px; line-height: 25px; }
.amenu-sec > .aitem { background: var(--fill); }
.amenu-sec > h3 + .aitem { border-radius: 20px 20px 0 0; }
.amenu-sec > .aitem:last-child { border-radius: 0 0 20px 20px; }
.amenu-sec > h3 + .aitem:last-child { border-radius: 20px; }
.aitem, .acat { position: relative; display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 8px; }
.aitem + .aitem::before { content: ""; position: absolute; top: 0; left: 72px; right: 0; border-top: .5px solid var(--sep); }
.group > .acat + .acat::before { left: 72px; }
.aitem.hidden .aitem-img, .aitem.hidden .aitem-t { opacity: .45; }
.aitem-main { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; text-align: left; }
.aitem-img { width: 52px; height: 52px; flex: none; border-radius: 13px; object-fit: cover; overflow: hidden; }
.aitem-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.aitem-t span { font-size: 15.5px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aitem-t small { font-size: 13px; color: var(--t2); }
.tag { display: inline-block; padding: 1px 7px; border-radius: 999px; font-size: 11px; font-weight: 700; font-style: normal; color: var(--gold2); background: rgba(232, 174, 94, .16); vertical-align: 1px; }
.stock { flex: none; min-width: 58px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: #ff8178; background: rgba(255, 69, 58, .14); text-align: center; }
.stock.on { color: #6ee286; background: rgba(50, 215, 75, .14); }
.imgpick { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--fill); box-shadow: inset 0 0 0 .5px var(--line); }
.imgpick.item { width: 148px; }
.imgpick.logo { width: 96px; border-radius: 50%; }
.imgpick.hero { aspect-ratio: 16 / 9; }
.imgpick.welcome { width: 160px; }
.imgpick img { width: 100%; height: 100%; object-fit: cover; }
.imgpick-ph { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--t2); }
.imgpick-edit { position: absolute; left: 8px; bottom: 8px; height: 28px; padding: 0 11px; border-radius: 999px; display: inline-flex; align-items: center; font-size: 12.5px; font-weight: 700; color: #fff;
  background: rgba(28, 20, 16, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: var(--glass-hi); }
.imgpick.logo .imgpick-edit { left: 50%; transform: translateX(-50%); }
.imgpick-busy { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .45); }
.imgpick-busy .spin { padding: 0; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form .sec-t { margin: 14px 4px -2px; font-size: 20px; line-height: 25px; }
.form .group { margin: 0; }
.pad { padding-top: 8px; }

/* ---------- анимации ---------- */
@keyframes pagein { from { opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeout { to { opacity: 0; } }
@keyframes rot { to { transform: rotate(360deg); } }
@keyframes tin { from { opacity: 0; transform: translate(-50%, -14px) scale(.95); } }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
