/* Guest menu — «Барная карта»: a printed cocktail-bar menu on a phone.
   Theme tokens and shared components live in base.css. */
#app { max-width: 560px; margin: 0 auto; padding-bottom: calc(120px + var(--safe-b)); }
.btn { min-height: 52px; }
.sheet-title.item-title { font: 600 24px/1.2 var(--font); letter-spacing: -.01em; text-transform: none; }

/* Header */
.hero { padding: calc(30px + var(--safe-t)) 20px 18px; text-align: center; }
.hero-logo { width: 118px; height: auto; margin: 0 auto; }
.hero-meta { margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 12px; font: 400 10.5px/1 var(--wide); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero-meta::before, .hero-meta::after { content: ''; width: 36px; height: 1px; background: var(--line-2); }
.hero-note { margin-top: 12px; color: var(--muted); font-size: 13.5px; }
.hero-warn { margin: 16px auto 0; max-width: 360px; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--muted); font-size: 14px; }

/* Sticky navigation */
.nav { position: sticky; top: 0; z-index: 20; padding: 0 20px; background: rgba(17, 16, 14, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.nav-row { position: relative; display: flex; align-items: center; height: 48px; }
.seg { flex: 1; display: flex; justify-content: center; gap: 24px; height: 100%; padding: 0 34px; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg-btn { position: relative; height: 100%; font: 500 11px/1 var(--wide); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); white-space: nowrap; transition: color .2s; }
.seg-btn:hover { color: var(--muted); }
.seg-btn.on { color: var(--text); }
.seg-btn.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); }
.nav-row > .icon-btn { position: absolute; right: -10px; top: 3px; }
.search-box { flex: 1; display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: var(--r); border: 1px solid var(--line-2); }
.search-box .ic { width: 18px; height: 18px; color: var(--muted); }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: none; background: none; font-size: 16px; }
.nav-row:has(.search-box) > .icon-btn { position: static; margin: 0 -10px 0 6px; }
.chips { position: relative; display: flex; gap: 6px; overflow-x: auto; margin: 0 -20px; padding: 12px 20px; border-top: 1px solid var(--line); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 5px 11px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--muted); font-size: 13px; font-weight: 500; white-space: nowrap; transition: color .2s, border-color .2s; }
.chip:hover { color: var(--text); }
.chip.on { color: var(--text); border: 1px solid rgba(236, 229, 218, .55); }

/* Content */
.content { padding: 0 20px; }
.cat, .hits { padding-top: 32px; scroll-margin-top: 120px; }
.cat .h2 { margin-bottom: 6px; }

.hits-row { display: flex; gap: 10px; overflow-x: auto; margin: 14px -20px 0; padding: 0 20px 2px; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; }
.hits-row::-webkit-scrollbar { display: none; }
.hit { flex: none; width: 156px; min-height: 134px; display: flex; flex-direction: column; padding: 14px 14px 12px; border-radius: var(--r-sm); border: 1px solid rgba(236, 229, 218, .13); scroll-snap-align: start; cursor: pointer; transition: background-color .2s; }
.hit:hover { background: var(--surface); }
.hit.has-img { padding: 0; overflow: hidden; }
.hit.has-img .hit-body { padding: 10px 14px 12px; }
.hit-media { height: 104px; }
.hit-body { display: flex; flex-direction: column; flex: 1; }
.hit-num { font: 400 22px/1 var(--wide); color: var(--accent); }
.hit-name { margin-top: 10px; font-size: 15px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hit-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 12px; }
.hit-foot .step button { width: 26px; }

.item { display: grid; grid-template-columns: 1fr; padding: 11px 0; cursor: pointer; }
.item.has-img { grid-template-columns: 56px 1fr; gap: 14px; align-items: start; }
.thumb { width: 56px; height: 56px; border-radius: var(--r-sm); }
.item-body { min-width: 0; }
.item-line { display: flex; align-items: center; gap: 8px; min-height: 30px; }
.item-name { flex: 0 1 auto; font-size: 16px; font-weight: 500; line-height: 1.3; }
.item-name sup { margin-left: 5px; font-size: 10px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); vertical-align: 5px; }
.dots { flex: 1 1 16px; min-width: 16px; border-bottom: 1px dotted rgba(236, 229, 218, .28); transform: translateY(5px); }
.price { font: 400 14px var(--wide); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price small { font: 400 12px var(--font); color: var(--muted); margin-right: 4px; }
.item-meta { margin-top: 3px; padding-right: 38px; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.item.is-stop .item-name, .item.is-stop .price, .item.is-stop .thumb { opacity: .4; }
.stop-tag { font-size: 12.5px; color: var(--dim); white-space: nowrap; margin-left: 4px; }

.add { position: relative; width: 30px; height: 30px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px solid rgba(236, 229, 218, .24); color: var(--text); flex: none; transition: background-color .2s, transform .1s; }
.add:hover { background: var(--surface-2); }
.add:active { transform: scale(.92); }
.add .ic { width: 16px; height: 16px; stroke-width: 1.8; }
.add .qty-badge { position: absolute; inset: 0; display: grid; place-items: center; border-radius: var(--r-sm); background: var(--text); color: var(--bg); font: 500 12.5px var(--wide); }
.ctl { display: inline-flex; flex: none; margin-left: 4px; }
.bump { animation: bump .3s var(--ease); }
@keyframes bump { 40% { transform: scale(1.03); } }

.empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.empty .ic { width: 30px; height: 30px; color: var(--dim); margin: 0 auto 12px; display: block; }
.foot { padding: 40px 20px 10px; text-align: center; color: var(--dim); font-size: 12.5px; line-height: 1.6; }

/* Dock */
.dock { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; max-width: 560px; margin: 0 auto;
  padding: 16px 14px calc(14px + var(--safe-b)); background: linear-gradient(to top, var(--bg) 62%, rgba(17, 16, 14, 0)); }
.dock-btn { position: relative; width: 58px; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; flex: none;
  border-radius: var(--r); background: rgba(17, 16, 14, .9); border: 1px solid var(--line-2); font-size: 10.5px; color: var(--muted); }
.dock-btn .ic { color: var(--text); }
.dock-btn .dot, .dock-btn.is-on::after { content: ''; position: absolute; top: 8px; right: 14px; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.dock-btn.is-on .dot { display: none; }
.dock-cta { flex: 1; height: 54px; display: flex; align-items: center; gap: 8px; padding: 0 16px; border-radius: var(--r); background: var(--text); color: var(--bg);
  font: 500 12px/1 var(--wide); letter-spacing: .08em; text-transform: uppercase; min-width: 0; transition: transform .1s; }
.dock-cta:active { transform: scale(.985); }
.dock-cta.alt { background: rgba(17, 16, 14, .9); color: var(--text); border: 1px solid var(--line-2); }
.dock-cta b { margin-left: auto; font-weight: 500; font-size: 13px; letter-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cta-count { color: var(--accent); }

/* Item sheet */
.sheet-media { aspect-ratio: 4 / 3; }
.desc { margin-top: 12px; color: #c6beb2; line-height: 1.55; }
.variants { display: grid; gap: 8px; }
.variant { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; min-height: 52px; padding: 0 16px; border-radius: var(--r); border: 1px solid var(--line); text-align: left; transition: border-color .2s, background-color .2s; }
.variant .radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--dim); transition: border-color .2s; }
.variant.on { background: var(--surface); border: 1px solid rgba(236, 229, 218, .45); }
.variant.on .radio { border-color: var(--accent); background: radial-gradient(circle, var(--accent) 0 4px, transparent 4.5px); }
.v-price { font: 400 13px var(--wide); color: var(--muted); }
.variant.on .v-price { color: var(--text); }
.qty { display: flex; align-items: center; height: 52px; border-radius: var(--r); border: 1px solid var(--line-2); flex: none; }
.qty button { width: 44px; height: 100%; display: grid; place-items: center; color: var(--muted); }
.qty button:hover { color: var(--text); }
.qty span { min-width: 20px; text-align: center; font: 500 14px var(--wide); }
.stop-note { flex: 1; text-align: center; padding: 14px; color: var(--muted); }

.mini-row { display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 2px; scrollbar-width: none; }
.mini-row::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 148px; min-height: 122px; display: flex; flex-direction: column; padding: 12px; border-radius: var(--r-sm); border: 1px solid rgba(236, 229, 218, .13); cursor: pointer; }
.mini.has-img { padding: 0; overflow: hidden; }
.mini.has-img .mini-body { padding: 10px 12px 12px; }
.mini-media { height: 88px; }
.mini-body { display: flex; flex-direction: column; flex: 1; }
.mini-cat { font: 400 9.5px/1.3 var(--wide); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.mini-name { margin-top: 6px; font-size: 14px; font-weight: 500; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-foot { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; }
.mini-foot .price { font-size: 12.5px; }
.mini-foot .add { width: 28px; height: 28px; }
.mini-foot .step { height: 28px; }
.mini-foot .step button { width: 26px; }

/* Cart */
.cart-line { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px dotted rgba(236, 229, 218, .2); }
.cl-name { font-weight: 500; }
.cl-var { color: var(--muted); font-size: 13.5px; }
.cl-price { margin-top: 3px; font: 400 13px var(--wide); color: var(--muted); }
.cart-line.is-stop .cl-name, .cart-line.is-stop .cl-price { opacity: .45; text-decoration: line-through; }
.cart-line.is-stop .stop-tag { color: var(--danger); margin-top: 4px; display: block; margin-left: 0; }
.sum-row { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; color: var(--muted); }
.sum-row b { font: 500 20px var(--wide); color: var(--text); }
.note { flex: 1; text-align: center; color: var(--muted); font-size: 14px; padding: 6px 0; }

/* Orders */
.sent { display: flex; gap: 12px; align-items: center; margin: 0 44px 22px 0; padding: 14px 16px; border-radius: var(--r); border: 1px solid rgba(108, 193, 150, .35); animation: rise .45s var(--ease); }
.sent > .ic { width: 22px; height: 22px; color: var(--ok); stroke-width: 2; }
.sent b { display: block; font-weight: 600; }
.sent span { color: var(--muted); font-size: 13.5px; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.order { margin-top: 14px; padding: 16px; border-radius: var(--r); border: 1px solid var(--line-2); }
.order-head { display: flex; justify-content: space-between; align-items: center; font: 500 12px var(--wide); letter-spacing: .08em; text-transform: uppercase; }
.order-head .muted { font-family: var(--font); font-size: 13.5px; letter-spacing: 0; text-transform: none; }
.progress { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 14px; }
.ps i { display: block; height: 2px; background: var(--surface-3); overflow: hidden; position: relative; }
.ps.done i { background: var(--accent); }
.ps.now i::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(230, 0, 126, .9), transparent); animation: slide 1.6s infinite; }
@keyframes slide { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.ps span { display: block; margin-top: 8px; font-size: 12.5px; color: var(--dim); }
.ps.done span { color: var(--text); }
.ps.now span { color: var(--muted); }
.cancelled { margin-top: 12px; color: var(--danger); font-size: 14px; }
.order-items { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px dotted rgba(236, 229, 218, .2); display: grid; gap: 7px; font-size: 14px; }
.order-items li { display: flex; justify-content: space-between; gap: 12px; }
.order-items em { font-style: normal; color: var(--muted); }
.order-items li span:last-child { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.order-comment { margin-top: 10px; color: var(--muted); font-size: 13.5px; }
.foot-total { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.foot-total span { font-size: 12.5px; color: var(--muted); }
.foot-total b { font: 500 17px var(--wide); }

/* Bill */
.bill-lines { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 9px; }
.bill-lines li { display: flex; justify-content: space-between; gap: 14px; }
.bill-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--muted); }
.bill-lines em { font-style: normal; color: var(--muted); }
.bill-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 18px; padding-top: 16px; border-top: 1px dotted rgba(236, 229, 218, .3); }
.bill-total span { color: var(--muted); }
.bill-total b { font: 500 24px var(--wide); letter-spacing: -.01em; }
.bill-group { margin-top: 18px; }
.bill-group-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.bill-group-head b { color: var(--text); font: 500 13px var(--wide); }
.bill-group .bill-lines { margin-top: 10px; }
.bill-note { margin-top: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.pay-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 3px; padding: 16px; min-height: 104px; border-radius: var(--r); border: 1px solid var(--line-2); text-align: left; transition: border-color .2s, background-color .2s; }
.pay .ic { width: 24px; height: 24px; color: var(--muted); margin-bottom: auto; }
.pay b { font-weight: 500; }
.pay span { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.pay.on { background: var(--surface); border: 1px solid rgba(236, 229, 218, .55); }
.pay.on .ic { color: var(--text); }
.pay.on::after { content: ''; position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--text) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2311100e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }
.status-card { display: flex; gap: 12px; align-items: center; margin-top: 20px; padding: 14px 16px; border-radius: var(--r); background: var(--surface); }
.status-card .ic { width: 22px; height: 22px; color: var(--muted); }
.status-card b { display: block; font-weight: 500; }
.status-card span { color: var(--muted); font-size: 13.5px; }
.status-card.wait .ic { animation: pulse 1.8s infinite; }

/* Small centered sheets: call waiter, empty cart, thanks */
.center-sheet { text-align: center; padding: 44px 24px 12px; }
.center-sheet .big-ic { width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center; border-radius: var(--r); border: 1px solid var(--line-2); color: var(--text); }
.center-sheet .big-ic .ic { width: 24px; height: 24px; }
.center-sheet .sheet-title { margin-top: 0; }
.center-sheet p { margin-top: 10px; color: var(--muted); }
.thanks-logo { width: 130px; height: auto; margin: 0 auto 24px; }
.sheet-title + div { margin-top: 10px; }

/* Loading skeleton */
.sk-row { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; }
.sk-row .b { height: 14px; width: 55%; }
.sk-row .c { height: 14px; width: 60px; }

/* Tips: cash with the bill, or a transfer to the waiter */
.tipway { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tipway button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--r); border: 1px solid var(--line-2); font-size: 14.5px; transition: border-color .2s, background-color .2s; }
.tipway button .ic { width: 18px; height: 18px; color: var(--muted); }
.tipway button.on { background: var(--surface); border: 1px solid rgba(236, 229, 218, .6); }
.tipway button.on .ic { color: var(--text); }
.tip-note { margin-top: 12px; color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.tip-card { display: grid; gap: 10px; margin-top: 12px; padding: 16px; border-radius: var(--r); background: var(--surface); }
.tip-card > .btn { width: 100%; }
.tip-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-2); font-size: 14.5px; }
.tip-info span { user-select: all; word-break: break-word; }
.tip-qr { margin: 4px 0 0; display: flex; gap: 12px; align-items: center; }
.tip-qr img { width: 112px; height: 112px; flex: none; object-fit: contain; background: #fff; padding: 6px; border-radius: var(--r-sm); }
.tip-qr figcaption { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.tip-info .icon-btn { width: 36px; height: 36px; color: var(--text); border: 1px solid var(--line-2); }
