:root {
  color-scheme: only dark; /* сайт завжди темний — браузери не перефарбовують */
  --bg: #141414; --card: #1d1d1d; --line: #2c2c2c; --text: #eee; --muted: #9a9a9a;
  --accent: #f2c14e; --accent-ink: #1a1400; --green: #7bc96f; --danger: #e5604f;
  --r: 14px; --gut: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 108px; }
body {
  margin: 0; color: var(--text); font: 15px/1.4 Rubik, system-ui, sans-serif;
  background: var(--bg) radial-gradient(ellipse at top, #262626, var(--bg) 60%) fixed;
  -webkit-tap-highlight-color: transparent; padding-bottom: 96px;
}
body.lock { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, .cats a { font-family: 'Rubik Dirt', Rubik, sans-serif; font-weight: 400; letter-spacing: .02em; }

.top { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gut) 6px; }
.logo { margin: 0; font-size: 34px; }
.langs { position: absolute; right: 12px; top: calc(100% + 6px); z-index: 50; background: var(--card, #1d1d1d); border: 1px solid var(--line); border-radius: 14px; padding: 6px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; box-shadow: 0 10px 30px #000a; width: min(320px, calc(100vw - 24px)); }
.langs[hidden] { display: none; }
.langs button { background: none; border: 0; color: inherit; text-align: left; padding: 9px 10px; border-radius: 10px; font: inherit; white-space: nowrap; }
.langs button:hover { background: #ffffff14; }
.lang { background: none; border: 1px solid var(--line); border-radius: 99px; padding: 6px 14px; font-weight: 700; }

.cats {
  position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  padding: 10px var(--gut); background: rgba(20,20,20,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; color: var(--muted); text-decoration: none; padding: 7px 13px; border-radius: 99px; background: var(--card); font-size: 15px; }
.cats a.on { background: var(--accent); color: var(--accent-ink); }

.wifi-banner { margin: 12px var(--gut) 0; padding: 10px 14px; border-radius: var(--r); background: #2b2412; color: var(--accent); font-size: 14px; cursor: pointer; }

main { max-width: 1100px; margin: 0 auto; padding: 0 var(--gut); }
.cat h2 { font-size: 30px; margin: 28px 0 12px; }
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }

.item { background: var(--card); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.ph { aspect-ratio: 1; background: #1a1a1a url(../img/bg.jpg?v=3) center/cover; display: grid; place-items: center; }
.ph img { width: 100%; height: 100%; object-fit: contain; } /* тіні вже «запечені» у PNG */

/* напої — компактні картки, 3 в ряд на телефоні */
.drinks .grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
@media (min-width: 700px) { .drinks .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } }
.drinks .info { padding: 6px 8px 8px; gap: 4px; }
.drinks .info h3 { font-size: 13px; }
.drinks .info p { font-size: 11px; } /* опис повністю (напр. завдаток за кальян з собою) */
.drinks .price { font-size: 15px; }
.drinks .add { height: 30px; min-width: 32px; padding: 0 8px; }
.drinks .vars .add { font-size: 11px; padding: 0 4px; }
.info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.info h3 { margin: 0; font-size: 16px; line-height: 1.2; text-transform: uppercase; }
.size { display: block; color: var(--muted); font-size: 12px; font-weight: 400; text-transform: none; margin-top: 2px; }
.info p { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-size: 19px; font-weight: 700; color: var(--accent); }
.price small { font-size: 12px; font-weight: 400; }
.vars { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.add {
  border: 0; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-weight: 700;
  min-width: 40px; height: 36px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.vars .add { width: 100%; font-size: 13px; }
.add.on { background: var(--green); }
.add i { font-style: normal; background: rgba(0,0,0,.2); border-radius: 99px; padding: 0 7px; }

/* додатки — компактний список */
.compact .grid { grid-template-columns: 1fr; gap: 0; }
@media (min-width: 700px) { .compact .grid { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.compact .item { background: none; border-bottom: 1px solid var(--line); border-radius: 0; }
.compact .info { flex-direction: row; align-items: center; padding: 8px 0; }
.compact .info h3 { flex: 1; font-size: 14px; }
.compact .size { display: inline; margin-left: 6px; }
.compact .row { margin: 0; }
.compact .price { font-size: 15px; }

.foot { text-align: center; color: var(--muted); padding: 40px var(--gut) 20px; font-size: 13px; }

.fab {
  position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); bottom: max(16px, env(safe-area-inset-bottom));
  border: 0; border-radius: 99px; background: var(--accent); color: var(--accent-ink); padding: 12px 22px 12px 12px;
  display: flex; align-items: center; gap: 12px; font-size: 16px; box-shadow: 0 8px 28px rgba(0,0,0,.55);
}
.fab span { background: var(--accent-ink); color: var(--accent); border-radius: 99px; min-width: 30px; height: 30px; display: grid; place-items: center; font-weight: 700; }

.sheet, .modal { position: fixed; inset: 0; z-index: 20; }
.sheet[hidden], .modal[hidden] { display: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.6); }
.sheet-body {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow-y: auto; max-width: 560px; margin: 0 auto;
  background: #1b1b1b; border-radius: 20px 20px 0 0; padding: 16px var(--gut) max(20px, env(safe-area-inset-bottom));
  animation: up .2s ease-out;
}
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-head h2 { margin: 0; font-size: 26px; }
.x { background: none; border: 0; font-size: 20px; padding: 6px; }
.line { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line.sum { grid-template-columns: 1fr auto; border: 0; font-size: 17px; }
.lp { min-width: 72px; text-align: right; }
.qty { display: flex; align-items: center; gap: 8px; }
.qty button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: none; }
.empty { color: var(--muted); text-align: center; padding: 16px 0; }
textarea, select { width: 100%; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; }
textarea { margin-top: 10px; resize: vertical; }
.table-row { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.table-row span { white-space: nowrap; }
details { margin-top: 12px; background: var(--card); border-radius: 10px; padding: 10px 12px; }
summary { cursor: pointer; }
.h { color: var(--muted); font-size: 13px; padding-top: 6px; }
.msg { min-height: 22px; margin: 10px 0 4px; text-align: center; color: var(--accent); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn { border: 0; border-radius: 12px; padding: 14px 10px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 15px; }
.btn.alt { background: #2d2d2d; color: var(--text); }
.btn.ghost { background: none; border: 1px solid var(--line); color: var(--text); }
.btn:disabled { opacity: .4; }

.modal-body {
  position: absolute; left: var(--gut); right: var(--gut); top: 50%; transform: translateY(-50%); max-width: 420px; margin: 0 auto;
  background: #1b1b1b; border-radius: 20px; padding: 20px; display: grid; gap: 12px; text-align: center;
}
.modal-body h2 { margin: 0; font-size: 24px; }
.modal-body p { margin: 0; color: var(--muted); }
.wifi-card { background: var(--card); border-radius: 12px; padding: 12px; display: grid; gap: 4px; font-size: 17px; }
.wifi-card b { color: var(--accent); }
.fab[hidden] { display: none; }

/* статус замовлення над кнопкою кошика */
.order-status {
  position: fixed; z-index: 10; left: 50%; transform: translateX(-50%); bottom: calc(max(16px, env(safe-area-inset-bottom)) + 66px);
  width: min(calc(100% - 32px), 440px); padding: 10px 16px; border-radius: 14px; font-size: 14px; font-weight: 500; text-align: center;
  box-shadow: 0 8px 28px rgba(0,0,0,.55); cursor: pointer; animation: up .25s ease-out;
}
.order-status[hidden] { display: none; }
.order-status.wait { background: #2b2412; color: var(--accent); border: 1px solid #4a3d16; }
.order-status.ok { background: #16301a; color: #9fe39a; border: 1px solid #2b5a2f; }
.st { font-size: 12px; }

/* вже замовлене в кошику */
.hist { margin-top: 14px; background: var(--card); border-radius: 12px; padding: 12px; }
.hist-title { font-weight: 700; margin-bottom: 6px; }
.hist-order { padding: 8px 0; border-top: 1px solid var(--line); }
.hist-order:first-of-type { border-top: 0; }
.hist-head { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 4px; }
.hist-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 2px 0; }
.hist-line span:last-child { color: var(--muted); white-space: nowrap; }
.hist-total { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; }
.st { font-size: 12px; border-radius: 99px; padding: 2px 8px; }
.st.ok { background: #16301a; color: #9fe39a; }
.st.wait { background: #2b2412; color: var(--accent); }

/* ---------- кошик (новий вигляд) ---------- */
.sheet-body { background: linear-gradient(180deg, #1f1f1f, #161616); border-top: 1px solid #ffffff14; }
.sheet-body::before { content: ''; display: block; width: 44px; height: 5px; border-radius: 99px; background: #ffffff30; margin: -6px auto 10px; }
.table-row { background: var(--card); border-radius: 14px; padding: 8px 12px; margin: 10px 0 6px; justify-content: space-between; }
.table-row select { width: auto; min-width: 80px; font-weight: 700; font-size: 17px; text-align: center; border-radius: 10px; }
.cl-title { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .6px; margin: 14px 2px 6px; }
#cartList .line { grid-template-columns: 44px 1fr auto auto; background: var(--card); border: 0; border-radius: 14px; padding: 8px 10px; margin-bottom: 6px; }
#cartList .line.sum { grid-template-columns: 1fr auto; background: none; padding: 8px 4px 0; font-size: 18px; }
#cartList .line.sum b { color: var(--accent); }
#cartList .line.auto { background: #2a2414; border: 1px dashed #f2c14e55; }
.line .ln { font-weight: 600; line-height: 1.2; min-width: 0; }
.line .ln small { display: block; color: var(--muted); font-weight: 400; font-size: 12px; margin-top: 2px; }
.th { width: 44px; height: 44px; border-radius: 10px; object-fit: cover; background: #0004; display: block; }
.qty { background: #0003; border-radius: 99px; padding: 3px; gap: 6px; }
.qty button { width: 28px; height: 28px; border: 0; background: #ffffff14; color: var(--text); font-size: 17px; font-weight: 700; }
.qty b { min-width: 18px; text-align: center; }
.lp { min-width: 64px; font-weight: 700; }
.tw { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-top: 8px; color: var(--text); }
.tw.on { border-color: var(--accent); background: #2a2414; }
.tw-ic { font-size: 26px; }
.tw-t { flex: 1; display: grid; }
.tw-t small { color: var(--muted); font-size: 12px; }
.sw { width: 46px; height: 28px; border-radius: 99px; background: #3a3a3a; position: relative; flex: none; transition: .2s; }
.sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: .2s; }
.tw.on .sw { background: var(--accent); }
.tw.on .sw::after { left: 21px; }
textarea { border-radius: 14px; }
.hist { border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.hist-title { font-size: 16px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 10px; }
.hist-line.disc span { color: #9fe39a !important; }
.hist-total b { color: var(--accent); font-size: 18px; }
.hist-note { color: var(--muted); font-size: 11px; text-align: center; margin-top: 8px; opacity: .7; }
.actions .btn { border-radius: 14px; padding: 15px 10px; }

/* чайові */
.tips { background: var(--card); border-radius: 14px; padding: 12px; display: grid; gap: 10px; text-align: left; }
.tips-t { display: flex; justify-content: space-between; font-weight: 700; }
.tips-t b { color: var(--accent); }
.tips-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.tip { border: 1px solid var(--line); background: #ffffff0d; color: var(--text); border-radius: 12px; padding: 10px 2px; font-weight: 700; font-size: 15px; display: grid; gap: 2px; }
.tip small { font-size: 10px; font-weight: 500; color: var(--muted); }
.tip.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tip.on small { color: var(--accent-ink); }
.tips input { width: 100%; background: #0003; color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; }
/* ✨ помічник */
.ai-card { display: flex; flex-direction: column; gap: 4px; width: 100%; margin: 22px 0 6px; padding: 18px 20px; border: 1px solid #f2c14e66; border-radius: var(--r); text-align: left; color: var(--text);
  background: linear-gradient(120deg, #2b2412, #1d1d1d 60%, #2a1d2b); cursor: pointer; box-shadow: 0 0 24px #f2c14e1f; }
.ai-card b { font-size: 19px; color: var(--accent); }
.ai-card span { color: var(--muted); font-size: 14px; }
.ai-modal { max-height: 88vh; overflow: auto; }
.ai-q { font-size: 17px; margin: 6px 0 14px; }
.ai-opts { display: grid; gap: 8px; }
.ai-own { display: flex; gap: 8px; margin-top: 10px; }
.ai-own input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; color: var(--text); padding: 10px 12px; font: inherit; }
.ai-own .btn { width: auto; padding: 0 16px; }
.ai-skip { background: none; border: 0; color: var(--muted); text-decoration: underline; margin-top: 14px; font: inherit; cursor: pointer; }
.ai-pick { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 12px; }
.ai-pick h3 { margin: 0 0 4px; color: var(--accent); }
.ai-pick p { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.ai-pick ul { list-style: none; padding: 0; margin: 0 0 12px; }
.ai-pick li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--line); }
.ai-think { display: flex; gap: 8px; justify-content: center; padding: 30px; }
.ai-think i { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); animation: aib 1s infinite alternate; }
.ai-think i:nth-child(2) { animation-delay: .2s } .ai-think i:nth-child(3) { animation-delay: .4s }
@keyframes aib { to { opacity: .2; transform: translateY(-6px); } }
.table-row.locked select { appearance: none; -webkit-appearance: none; background: var(--accent); color: var(--accent-ink); opacity: 1; border: 0; padding: 6px 14px; }
.table-row.locked::after { content: '🔒'; }
.call-btn { margin-left: auto; margin-right: 8px; border: 1px solid #f2c14e88; background: #2b2412; color: var(--accent); font: 700 14px Rubik, system-ui, sans-serif; padding: 7px 14px; border-radius: 99px; cursor: pointer; }
.call-btn:disabled { opacity: .5; }

/* 🛵 доставка і самовивіз (?go) */
body.go .call-btn, body.go .table-row { display: none !important; }
.wifi-banner.go-ok { background: #1b2a1d; color: #9be59f; border-color: #2e4a31; }
.go-modal { max-height: 92vh; overflow: auto; gap: 10px; }
.go-modal input, .go-modal select { width: 100%; background: #222; color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; font: inherit; font-size: 16px; }
.seg2 { display: flex; gap: 8px; } .seg2 button { flex: 1; padding: 12px 8px; border-radius: 12px; border: 1px solid var(--line); background: #222; color: var(--text); font: 700 15px Rubik, system-ui, sans-serif; display: flex; flex-direction: column; align-items: center; gap: 2px; }
.seg2 button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); } .seg2 small { font-weight: 500; font-size: 11px; opacity: .8; }
.go-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .go-row > span:first-child { white-space: nowrap; } .go-row select { width: auto; min-width: 150px; }
.go-row .qty { display: flex; align-items: center; gap: 10px; } .go-row .qty button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: #222; color: var(--text); font-size: 18px; }
.go-bonus input { width: 24px !important; height: 24px; }
.go-sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.go-note { color: var(--muted); font-size: 13px; } .go-err { color: #ff6b6b; font-size: 14px; }
.go-sum { border-top: 1px dashed var(--line); padding-top: 8px; display: grid; gap: 4px; } .go-sum div { display: flex; justify-content: space-between; color: var(--muted); } .go-sum .tot { color: var(--text); font-size: 18px; }
.go-reco { margin: 8px 0; } .go-chips { display: flex; flex-wrap: wrap; gap: 6px; } .go-chip { border: 1px dashed var(--accent); background: none; color: var(--accent); border-radius: 20px; padding: 7px 12px; font: 500 13px Rubik, system-ui, sans-serif; }
.go-hint { background: #2b2412; color: var(--accent); border-radius: 10px; padding: 9px 12px; font-size: 14px; margin: 6px 0; }
.go-ord { display: flex; width: 100%; gap: 6px; align-items: center; background: #222; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 10px 12px; margin-top: 6px; font: inherit; text-align: left; } .go-ord span { margin-left: auto; }
.go-old { display: flex; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); } .btn.sm { padding: 7px 12px; font-size: 13px; flex: none; }
.go-big { font-size: 56px; text-align: center; } .go-no { text-align: center; margin: 0; font-size: 26px; } .go-st { text-align: center; font-size: 18px; color: var(--text) !important; }
.go-steps { display: flex; justify-content: center; gap: 8px; } .go-steps i { font-style: normal; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #222; opacity: .35; } .go-steps i.on { opacity: 1; background: #2b2412; box-shadow: 0 0 0 2px var(--accent); }
.go-modal a.btn { text-align: center; text-decoration: none; }
.go-modal, .go-modal * { box-sizing: border-box; } .go-modal { overflow-x: hidden; } body.go #actions { display: grid; grid-template-columns: 1fr; } body.go #actions .btn, .go-modal .btn { width: 100%; }
/* 👤 · 🔔 · мова — однакові кнопки шапки */
.top .call-btn, .top .lang { height: 38px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font: 700 14px Rubik, system-ui, sans-serif; border-radius: 99px; line-height: 1; flex-shrink: 0; white-space: nowrap; }
.top .logo { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 400px) { .top .logo { font-size: 26px; } .top .call-btn, .top .lang { padding: 0 10px; } }
.top .me-btn { width: 38px; min-width: 38px; padding: 0; margin-right: 6px; font-size: 17px; color: inherit; text-decoration: none; }
.top .call-btn { margin-right: 6px; }
.me-k { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 10px 0; } .me-k div { background: var(--card2, #1c1c1f); border-radius: 14px; padding: 10px; display: grid; } .me-k b { font-size: 17px; color: var(--accent); } .me-k span { font-size: 12px; color: var(--muted); }
.me-l { display: grid; gap: 6px; } .me-l div { background: var(--card2, #1c1c1f); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
#meBody h3 { margin: 14px 0 6px; font-size: 15px; }

/* ===== 🍽 Конструктор меню (js/menu-design.js) — лише коли власник зберіг дизайн (html[data-mt]) ===== */
html[data-mt] { color-scheme: only dark; } html[data-mt][data-mode="light"] { color-scheme: only light; }
html[data-mt] body { background: var(--pagebg); font-family: var(--fb); font-size: var(--fz); }
html[data-mt] :is(h1, h2, .cats a) { font-family: var(--fh); }
html[data-mt] .cats { background: var(--catbg); }
html[data-mt][data-sticky="0"] .cats { position: static; }
html[data-mt] .cats a { background: var(--card); } html[data-mt]:not([data-cats="line"]) .cats a.on { background: var(--accent); color: var(--accent-ink); }
html[data-mt][data-cats="line"] .cats a { background: none; border-radius: 0; padding: 7px 4px; border-bottom: 2px solid transparent; } html[data-mt][data-cats="line"] .cats a.on { background: none; color: var(--accent); border-color: var(--accent); } html[data-mt][data-cats="line"] .cats { gap: 16px; }
html[data-mt][data-cats="box"] .cats a { border-radius: calc(var(--r) * .6); border: 1px solid var(--line); }
html[data-mt] .cat h2 { font-size: var(--ttlsz); } html[data-mt][data-ttl="c"] .cat h2 { text-align: center; }
html[data-mt][data-ttlline="1"] .cat h2 { display: flex; align-items: center; gap: 14px; } html[data-mt][data-ttlline="1"] .cat h2::after { content: ''; flex: 1; height: 1px; background: var(--line); } html[data-mt][data-ttlline="1"][data-ttl="c"] .cat h2::before { content: ''; flex: 1; height: 1px; background: var(--line); }
html[data-mt][data-caps="0"] .info h3 { text-transform: none; }
html[data-mt][data-desc="0"] .info p { display: none; } html[data-mt][data-size="0"] .size { display: none !important; }
html[data-mt][data-price="text"] .price { color: var(--text); }
html[data-mt][data-cards="line"] .item { border: 1px solid var(--line); } html[data-mt][data-cards="shadow"] .item { box-shadow: 0 8px 24px rgba(0,0,0,.22); } html[data-mt][data-mode="light"][data-cards="shadow"] .item { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
html[data-mt] .compact .item { border: 0; border-bottom: 1px solid var(--line); box-shadow: none; }
/* 🖼 фон під фото страв */
html[data-mt] .ph { aspect-ratio: var(--ratio); } html[data-mt] .ph img { object-fit: var(--fit); }
html[data-mt]:not([data-phbg="tex"]) .ph { background: var(--phbg); }
/* 🗂 вигляд карток */
html[data-mt][data-lay="grid"] .cat:not(.compact):not(.drinks) .grid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
@media (min-width: 700px) { html[data-mt][data-lay="grid"] .cat:not(.compact):not(.drinks) .grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
html[data-mt][data-lay="big"] .cat:not(.compact) .grid { grid-template-columns: 1fr; } @media (min-width: 700px) { html[data-mt][data-lay="big"] .cat:not(.compact) .grid { grid-template-columns: 1fr 1fr; } }
html[data-mt][data-lay="big"] .info h3 { font-size: 19px; } html[data-mt][data-lay="big"] .info p { font-size: 14px; }
html[data-mt][data-lay="list"] .cat:not(.compact) .grid { grid-template-columns: 1fr; gap: 10px; } @media (min-width: 700px) { html[data-mt][data-lay="list"] .cat:not(.compact) .grid { grid-template-columns: 1fr 1fr; } }
html[data-mt][data-lay="list"] .cat:not(.compact) .item { flex-direction: row; align-items: stretch; } html[data-mt][data-lay="list"] .cat:not(.compact) .ph { width: 112px; flex: none; aspect-ratio: auto; min-height: 112px; }
html[data-mt][data-lay="text"] .ph { display: none; } html[data-mt][data-lay="text"] .cat:not(.compact) .grid { grid-template-columns: 1fr; gap: 0; } @media (min-width: 700px) { html[data-mt][data-lay="text"] .cat:not(.compact) .grid { grid-template-columns: 1fr 1fr; column-gap: 28px; } }
html[data-mt][data-lay="text"] .cat .item { background: none; border: 0; box-shadow: none; border-bottom: 1px dashed var(--line); border-radius: 0; } html[data-mt][data-lay="text"] .info { padding: 12px 0; }
/* ➕ кнопки */
html[data-mt][data-add="plus"] .row .add { width: 38px; min-width: 38px; padding: 0; font-size: 20px; }
html[data-mt][data-add="wide"] .row { flex-wrap: wrap; } html[data-mt][data-add="wide"] .row .add { width: 100%; }
html[data-mt][data-btn="line"] .add:not(.on) { background: transparent; color: var(--accent); box-shadow: inset 0 0 0 2px var(--accent); }
html[data-mt][data-btn="fill"] .add { border-radius: calc(var(--r) * .7); }
html[data-mt] .fab span { background: var(--accent-ink); color: var(--accent); }
/* вікна й форми під тему */
html[data-mt] :is(.sheet-body, .modal-body) { background: var(--card); border-color: var(--line); color: var(--text); }
html[data-mt] :is(.btn.alt, .seg2 button, .go-row .qty button, .go-ord, .go-steps i, .langs, textarea, select, .tw, details, .hist) { background: var(--card2); color: var(--text); border-color: var(--line); }
html[data-mt] .langs button:hover { background: var(--card); }
html[data-mt] .wifi-banner { background: var(--card2); }
.top .logo img { height: 1.1em; width: 1.1em; object-fit: contain; border-radius: 8px; vertical-align: -0.15em; margin-right: 8px; }
#mtNote { padding: 9px var(--gut); text-align: center; font-weight: 600; font-size: 14px; }

/* ===== 🎨 Новий стиль вікон гостя (як каса VARVAR-STYLE: Rubik, заокруглення 22, мʼяка тінь, світіння) ===== */
.modal-body { display: flex; flex-direction: column; gap: 12px; border-radius: 26px; padding: 22px 20px 20px; background: linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, #fff 8%), var(--card)); border: 1px solid color-mix(in srgb, var(--text) 9%, transparent); box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.2); max-height: calc(100dvh - 32px); overflow-y: auto; }
.modal-body > * { flex: none; }
.modal-body h2, .sheet-head h2 { font-family: Rubik, system-ui, sans-serif; font-weight: 700; letter-spacing: 0; font-size: 21px; }
.sheet-head { gap: 10px; } .sheet-head h2 { text-align: left; }
.x { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--text) 8%, transparent); color: var(--muted); font-size: 16px; padding: 0; flex: none; }
.sheet-body { border-radius: 26px 26px 0 0; border-top: 1px solid color-mix(in srgb, var(--text) 9%, transparent); box-shadow: 0 -20px 60px rgba(0,0,0,.5); padding-top: 10px; }
.sheet-body::before { content: ''; display: block; width: 42px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--text) 22%, transparent); margin: 0 auto 10px; }
.sheet-bg { background: rgba(0,0,0,.62); backdrop-filter: blur(3px); }
.btn { min-height: 50px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; line-height: 1.2; }
.btn.sm { min-height: 36px; border-radius: 12px; }
.btn:not(.alt):not(.ghost):not(:disabled) { box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn.ghost { background: color-mix(in srgb, var(--text) 5%, transparent); border-color: color-mix(in srgb, var(--text) 14%, transparent); }
.btn.alt { background: color-mix(in srgb, var(--text) 9%, var(--card)); }
.btn:active { transform: scale(.98); }
/* кошик */
.line { padding: 12px 0; } .line .ln b, .line > span:first-child { font-weight: 600; }
.qty button { width: 34px; height: 34px; background: color-mix(in srgb, var(--text) 7%, transparent); border-color: transparent; font-size: 17px; }
.line.sum { padding-top: 14px; font-weight: 700; } .line.sum b, .line.sum span:last-child { color: var(--accent); font-size: 20px; }
textarea, select, .go-modal input, .go-modal select { border-radius: 14px; background: color-mix(in srgb, var(--text) 5%, var(--card)); border-color: color-mix(in srgb, var(--text) 11%, transparent); }
textarea:focus, select:focus, .go-modal input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
details, .hist, .tw, .go-ord { border-radius: 16px; }
.actions { gap: 10px; margin-top: 4px; }
/* 🛵 замовлення з собою / доставка: статус */
.go-modal { gap: 12px; }
.go-big { font-size: 46px; width: 88px; height: 88px; border-radius: 50%; display: grid; place-items: center; margin: 4px auto 0; background: color-mix(in srgb, var(--accent) 14%, transparent); box-shadow: 0 0 40px color-mix(in srgb, var(--accent) 22%, transparent); }
.go-no { font-size: 24px; font-weight: 700; } .go-st { font-size: 16px; margin: -4px 0 2px !important; }
.go-steps { margin: 2px 0 4px; gap: 6px; } .go-steps i { width: 38px; height: 38px; font-size: 17px; background: color-mix(in srgb, var(--text) 7%, transparent); } .go-steps i.on { background: color-mix(in srgb, var(--accent) 18%, transparent); box-shadow: 0 0 0 2px var(--accent); }
.seg2 button { border-radius: 16px; min-height: 56px; background: color-mix(in srgb, var(--text) 5%, var(--card)); }
.seg2 button.on { box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 30%, transparent); }
.go-hint { border-radius: 14px; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.go-sum { border-top-style: solid; border-color: color-mix(in srgb, var(--text) 10%, transparent); padding-top: 10px; } .go-sum .tot b, .go-sum .tot span:last-child { color: var(--accent); }
.fab { border-radius: 22px; padding: 10px 22px 10px 10px; box-shadow: 0 12px 34px color-mix(in srgb, var(--accent) 35%, transparent), 0 8px 28px rgba(0,0,0,.55); }
.fab span { border-radius: 14px; }
