/* Guest menu — «Тандыр». Loaded only by menu.html, on top of app.css tokens.
   Motion: transform/opacity only; every element keeps its box, so nothing shifts while photos and data load. */

html { scroll-padding-top: 120px; }
body.guest { background: var(--bg); }
body.guest.has-bar { padding-bottom: 96px; }
body.guest.lock { overflow: hidden; }
.guest button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.app { max-width: 560px; margin: 0 auto; min-height: 100dvh; background: var(--bg); position: relative; }
@media (min-width: 600px) { body.guest { background: var(--surface-2); } .app { box-shadow: var(--shadow-lg); } }
.ico.sm { width: 16px; height: 16px; }

/* photo "bloom": fades and settles in once decoded */
.ph { position: relative; overflow: hidden; background: var(--surface-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity 420ms ease, transform 900ms var(--ease); }
.ph img.is-loaded { opacity: 1; transform: none; }
/* no photo: a calm tile of the same proportion — a muted plate icon, or the venue's own picture (contained) */
.ph.noph { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.ph.noph .ico { width: 34%; height: auto; min-width: 18px; max-width: 72px; opacity: .75; }
.ph.noph.own img { opacity: 1; transform: none; object-fit: contain; padding: 10%; box-sizing: border-box; }

/* ---------- cover: a glass bar over a photo slider; branches with live opening hours ---------- */
.cover { position: relative; height: clamp(320px, 96vw, 440px); overflow: hidden; color: var(--on-photo); isolation: isolate;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--ink-deep))); }
.cover.no-photo { height: 260px; }
.cover-media { position: absolute; inset: 0; z-index: -2; display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain; scrollbar-width: none; }
.cover-media::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.slide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, var(--scrim) 0%, transparent 26%, transparent 48%, var(--scrim) 78%, color-mix(in srgb, var(--ink-deep) 88%, transparent) 100%); }
.cover.no-photo::after { background: linear-gradient(180deg, transparent, var(--scrim)); }
.glass { background: var(--glass-dark); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border: 1px solid var(--glass-line); color: var(--on-photo); }
.topbar { position: absolute; top: max(10px, env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; align-items: center; gap: 8px;
  min-height: 56px; padding: 6px 6px 6px 8px; border-radius: 20px; }
.tb-logo { flex: none; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: var(--surface); }
.tb-logo[hidden] { display: none; }
.tb-logo img { width: 100%; height: 100%; object-fit: cover; }
.topbar .venue-name { flex: 1; min-width: 0; margin: 0 0 0 4px; font: 600 18px/1.2 var(--serif); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.langs { display: inline-flex; gap: 2px; flex: none; }
.lang { min-width: 44px; min-height: 44px; border: 0; border-radius: 14px; background: transparent; font-weight: 700; font-size: 13px;
  color: color-mix(in srgb, var(--on-photo) 82%, transparent); letter-spacing: .02em; transition: background var(--dur-2), color var(--dur-2); }
.lang[aria-pressed="true"] { background: var(--on-photo); color: var(--ink-deep); }
.round-btn { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; }
.cover-info { position: absolute; left: 16px; right: 16px; bottom: 18px; }
.venue-tag { margin: 0; max-width: 24ch; font: 600 clamp(22px, 6.4vw, 30px)/1.15 var(--serif); letter-spacing: -.01em; text-wrap: balance; }
.venue-tag:empty { display: none; }
.branches { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.branches:empty { display: none; }
.br-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; font-size: 13px; line-height: 1.2;
  background: var(--glass-dark); border: 1px solid var(--glass-line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.br-chip b { font-weight: 700; }
.br-chip span { color: color-mix(in srgb, var(--on-photo) 85%, transparent); }
.br-chip.open::before, .br-chip.closed::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.br-chip.open::before { background: color-mix(in srgb, var(--ok) 55%, var(--on-photo)); }
.br-chip.closed::before { background: color-mix(in srgb, var(--on-photo) 45%, transparent); }
.meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.meta:empty { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.dots { position: absolute; right: 8px; top: calc(max(10px, env(safe-area-inset-top)) + 64px); display: flex; }
.dot { width: 22px; height: 44px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.dot::before { content: ''; width: 7px; height: 7px; border-radius: 4px; background: color-mix(in srgb, var(--on-photo) 55%, transparent);
  transition: transform var(--dur-3) var(--ease), background var(--dur-2); }
.dot[aria-current="true"]::before { background: var(--on-photo); transform: scaleX(2.2); }
.cover-info > * { animation: rise var(--dur-4) var(--ease) both; }
.cover-info > :nth-child(2) { animation-delay: 60ms; } .cover-info > :nth-child(3) { animation-delay: 120ms; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- quick actions, category tiles, showcase ---------- */
.quick { display: flex; gap: 8px; overflow-x: auto; padding: 14px 16px 2px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }
.q-chip { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 600 15px var(--font); cursor: pointer;
  transition: transform var(--dur-1); }
.q-chip .ico { color: var(--accent-text); }
.q-chip:active { transform: scale(.96); }
.q-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 16px 4px; }
.tiles:empty { display: none; }
.tile { display: flex; flex-direction: column; min-height: 132px; padding: 0; border: 0; border-radius: 18px; overflow: hidden;
  background: var(--surface-2); color: var(--text); text-align: left; cursor: pointer; transition: transform var(--dur-1); }
.tile:active { transform: scale(.97); }
.tile:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tile-name { padding: 10px 10px 8px; font: 600 14px/1.2 var(--font); overflow-wrap: anywhere; }
.tile .ph { margin-top: auto; aspect-ratio: 4 / 3; }
.tile .ph.noph { font-size: 30px; }
.tile.more { display: grid; place-items: center; text-align: center; font-weight: 700; color: var(--accent-text); }
.showcase { padding: 6px 16px 0; }
.showcase:empty { display: none; }
.show-h { margin: 16px 0 12px; font: 600 24px/1.2 var(--serif); letter-spacing: -.01em; }
.mine-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.mine-forget { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--muted); font: 600 14px var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.mine-repeat { width: 100%; margin-top: 12px; min-height: 48px; justify-content: center; }

/* ---------- service calls ---------- */
.service { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px 16px 4px; }
.service:empty { display: none; }
.svc-btn { position: relative; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: 14px;
  overflow: hidden; transition: background var(--dur-2), border-color var(--dur-2), transform var(--dur-1); }
.svc-btn:active { transform: scale(.97); }
.svc-btn .lbl { display: grid; text-align: left; line-height: 1.2; }
.svc-btn small { color: var(--muted); font-weight: 500; font-size: 12px; font-variant-numeric: tabular-nums; }
.svc-btn[data-sent="true"] { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 45%, transparent); cursor: default; }
.svc-btn[data-sent="true"] .ico { color: var(--ok); }
.svc-btn .ripple { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px; border-radius: 50%; background: var(--ok); opacity: 0; pointer-events: none; }

/* ---------- order tracker ---------- */
.track-card { width: 100%; text-align: left; border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: var(--radius);
  padding: 14px 16px 12px; box-shadow: var(--shadow); animation: rise var(--dur-4) var(--ease); }
.track-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.track-head b { font-size: 15px; }
.track-head .st { font-weight: 700; color: var(--accent-text); }
.track-head .sum { margin-left: auto; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.t-steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; }
.t-rail, .t-fill { position: absolute; top: 9px; left: 12.5%; right: 12.5%; height: 3px; border-radius: 3px; background: var(--surface-3); }
.t-fill { background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform 700ms var(--ease); }
.t-step { position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; padding: 0 2px; font-size: 12px; line-height: 1.25; color: var(--muted); font-weight: 600; text-align: center; }
/* Narrow phones: long Kazakh labels don't fit four columns — keep only the current one (the header names it too). */
@media (max-width: 420px) { .t-step:not(.now) { color: transparent; } .t-step { white-space: nowrap; } }
.t-step i { width: 21px; height: 21px; border-radius: 50%; background: var(--surface-3); border: 3px solid var(--surface); position: relative; transition: background var(--dur-3); }
.t-step.done i, .t-step.now i { background: var(--accent); }
.t-step.now { color: var(--text); }
.t-step.now i::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; background: var(--accent); opacity: .25; animation: halo 1.6s var(--ease) infinite; }
@keyframes halo { from { transform: scale(.5); opacity: .45; } to { transform: scale(1.5); opacity: 0; } }
.t-step.pop i { animation: pop 480ms var(--ease-spring); }
@keyframes pop { 40% { transform: scale(1.45); } }

/* ---------- sticky category bar ---------- */
#stuck-sentinel { height: 1px; }
.catbar { position: sticky; top: 0; z-index: var(--z-sticky); margin-top: 8px;
  background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.catbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); opacity: 0; transition: opacity var(--dur-2); }
.catbar.stuck::after { opacity: 1; }
/* Fixed height: "search pill" (top of page) crossfades into "venue title + search icon" (stuck) — no layout shift. */
.catbar-top { position: relative; height: 56px; display: flex; align-items: center; padding: 6px 16px 0; }
.search-pill { flex: 1; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--muted); font-size: 15px; text-align: left;
  transition: opacity var(--dur-2), transform var(--dur-3) var(--ease), visibility 0s; }
.search-pill .count, .search-btn .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--on-accent);
  font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.search-btn .count { position: absolute; top: 2px; right: 2px; margin: 0; }
.search-pill .count:empty, .search-btn .count:empty { display: none; }
.catbar-title { position: absolute; left: 16px; right: 64px; top: 50%; font: 600 20px/1.2 var(--serif); opacity: 0; transform: translateY(-30%);
  transition: opacity var(--dur-3), transform var(--dur-3) var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.search-btn { position: absolute; right: 8px; top: 9px; color: var(--text); opacity: 0; visibility: hidden; transform: scale(.8);
  transition: opacity var(--dur-2), transform var(--dur-3) var(--ease-spring), visibility 0s var(--dur-2); }
.search-btn:hover { background: var(--surface-2); }
.catbar.stuck .search-pill, .catbar.searching .search-pill { opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity var(--dur-2), transform var(--dur-3) var(--ease), visibility 0s var(--dur-2); }
.catbar.stuck .catbar-title, .catbar.searching .catbar-title { opacity: 1; transform: translateY(-50%); }
.catbar.stuck .search-btn, .catbar.searching .search-btn { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.search-row { display: none; padding: 10px 16px 4px; }
.search-row.open { display: grid; gap: 8px; animation: rise var(--dur-3) var(--ease); }
.search-line { display: flex; gap: 8px; }
.search-field { position: relative; flex: 1; }
.search-field .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { width: 100%; min-height: 46px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); padding: 10px 14px 10px 42px; color: var(--text); font-size: 16px; }
.search-field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.filter-btn { width: 46px; min-height: 46px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); display: grid; place-items: center; }
.filter-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.allergen-panel { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; font-size: 14px; }
.allergen-panel[hidden] { display: none; }
.allergen-panel .chip { min-height: 44px; }
.cats { position: relative; display: flex; gap: 2px; overflow-x: auto; padding: 4px 4px 8px; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; min-height: 44px; padding: 0 12px; border: 0; background: transparent; border-radius: 12px; font-weight: 600; font-size: 15px;
  color: var(--muted); white-space: nowrap; transition: color var(--dur-2); }
.cat[aria-current="true"] { color: var(--text); }
.cat:active { background: var(--surface-2); }
.cat[hidden] { display: none; }
.cat-ink { position: absolute; left: 0; bottom: 8px; width: 100px; height: 3px; border-radius: 3px; background: var(--accent); transform-origin: 0 50%;
  transform: scaleX(0); pointer-events: none; transition: transform var(--dur-3) var(--ease); }

/* ---------- sections ---------- */
#list:focus { outline: none; }
.sec { padding: 4px 16px; }
.sec[hidden] { display: none; }
.sec-head { display: flex; align-items: baseline; gap: 10px; margin: 18px 0 6px; }
.sec-head h2 { font: 600 26px/1.2 var(--serif); letter-spacing: -.01em; margin: 0; }
.sec-head .cnt { color: var(--muted); font-size: 14px; font-weight: 500; }

.hit-badge { position: absolute; top: 8px; left: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; min-width: 0; padding: 3px 9px 3px 7px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 600; line-height: 1.3; color: var(--text); }
.tag .ico { flex: none; }
.dtags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.dtags .tag { font-size: 11px; padding: 2px 7px 2px 5px; }
.photo-note { margin: 0; padding: 8px 20px 0; font-size: 12px; line-height: 1.4; color: var(--muted); display: flex; flex-wrap: wrap; gap: 2px 12px; }
.photo-note a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tag-filter { flex-basis: 100%; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.allergen-panel .chip.tagf { display: inline-flex; align-items: center; gap: 6px; }
.allergen-panel .chip.tagf[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); text-decoration: none; }

/* dish card: photo first (4:5), ♥ with the guests' count, "+" on the photo, name, portion, price */
/* Columns follow the menu's own width (it is a narrow column on desktop too): 2 on a phone, more when there is room. */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(148px, 1fr)); gap: 18px 10px; }
.dish { position: relative; display: flex; flex-direction: column; min-width: 0; }
.dish[hidden] { display: none; }
.dish-media { position: relative; }
.dish-media .ph { width: 100%; aspect-ratio: 4 / 5; border-radius: var(--radius); transition: box-shadow var(--dur-3); }
.dish-media .ph.noph { font-size: 48px; }
.dish.in-cart .dish-media .ph { box-shadow: 0 0 0 2px var(--accent); }
.dish-open { all: unset; cursor: pointer; }
.dish-open::after { content: ''; position: absolute; inset: 0; z-index: 1; border-radius: var(--radius); }
.dish-open:focus-visible::after { outline: 3px solid var(--accent); outline-offset: 3px; }
.dish-name { margin: 9px 0 0; font: 600 15px/1.3 var(--font); overflow-wrap: anywhere; }
.portion { margin: 2px 0 0; color: var(--muted); font-size: 13px; }
.price { margin: 4px 0 0; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.kcal { color: var(--muted); font-size: 13px; }
.dish .qty { position: absolute; right: 8px; bottom: 8px; z-index: 2; }
.like { position: absolute; top: 8px; right: 8px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 10px;
  border: 0; border-radius: 999px; background: var(--glass-dark); color: var(--on-photo); font: 700 13px var(--font); font-variant-numeric: tabular-nums;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); cursor: pointer; transition: background var(--dur-2), color var(--dur-2); }
.like::before { content: ''; position: absolute; inset: -5px; } /* a 44 px target around a smaller pill */
.like[aria-pressed="true"] { background: var(--on-photo); color: var(--like); }
.like[aria-pressed="true"] svg path { fill: currentColor; }
.like:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sold { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; padding: 12px; text-align: center; border-radius: var(--radius);
  background: var(--scrim); color: var(--on-photo); font: 700 15px/1.25 var(--font); pointer-events: none; }
.dish.stopped .ph img { filter: grayscale(1); }
.dish.stopped .dish-name, .dish.stopped .portion, .dish.stopped .price { opacity: .6; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 16px; }

/* ---------- quantity: "+" morphs into a charcoal stepper ---------- */
.qty { position: relative; width: 116px; height: 44px; pointer-events: none; }
.qty > * { pointer-events: auto; }
.add-btn { position: absolute; right: 0; top: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 40%, transparent), 0 0 0 3px var(--bg);
  transition: transform var(--dur-3) var(--ease-spring), opacity var(--dur-2); }
.add-btn:active { transform: scale(.88); }
.stepper { position: absolute; right: 0; top: 0; height: 44px; width: 116px; display: grid; grid-template-columns: 40px 1fr 40px; align-items: center;
  border-radius: 999px; background: var(--ink); color: var(--on-ink); box-shadow: 0 6px 16px rgb(0 0 0 / .22), 0 0 0 3px var(--bg);
  transform-origin: 100% 50%; transform: scaleX(.38); opacity: 0; visibility: hidden;
  transition: transform var(--dur-3) var(--ease-spring), opacity var(--dur-2), visibility 0s var(--dur-3); }
.stepper button { width: 40px; height: 44px; border: 0; background: transparent; color: inherit; display: grid; place-items: center; border-radius: 999px; }
.stepper button:active { transform: scale(.85); }
.n { position: relative; display: block; overflow: hidden; height: 22px; line-height: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; }
.n span { display: block; }
.qty[data-on="true"] .add-btn { transform: scale(.3); opacity: 0; pointer-events: none; }
.qty[data-on="true"] .stepper { transform: none; opacity: 1; visibility: visible; transition-delay: 0s; }
.qty.static { width: 104px; }
.qty.static .stepper { width: 104px; grid-template-columns: 36px 1fr 36px; transform: none; opacity: 1; visibility: visible; box-shadow: none; background: var(--surface-2); color: var(--text); }
.qty.static .stepper button { width: 36px; }
.stepper.inline { position: relative; transform: none; opacity: 1; visibility: visible; width: 132px; height: 52px; grid-template-columns: 44px 1fr 44px;
  box-shadow: none; background: var(--surface-2); color: var(--text); }
.stepper.inline button { width: 44px; height: 52px; }

/* ---------- cart bar & status pill ---------- */
.dock { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); margin-inline: auto; max-width: 528px; z-index: var(--z-bar);
  display: flex; gap: 8px; align-items: stretch; pointer-events: none; }
.dock > * { pointer-events: auto; }
.cart-bar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 18px 8px 10px; border: 0; border-radius: 20px;
  background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-lg); text-align: left; font: inherit; }
.dock [hidden] { display: none; }
.cb-bag { position: relative; width: 44px; height: 44px; border-radius: 14px; background: var(--accent); color: var(--on-accent); display: grid; place-items: center; flex: none; }
.cb-count { position: absolute; top: -6px; right: -6px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--on-ink); color: var(--ink);
  font-size: 12px; font-weight: 800; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.cb-text { display: grid; line-height: 1.2; min-width: 0; }
.cb-text b { font-size: 16px; }
.cb-text small { opacity: .75; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-total { position: relative; margin-left: auto; flex: none; font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; overflow: hidden; height: 24px; line-height: 24px; }
.cb-total span { display: block; white-space: nowrap; }

/* flying photo: X and Y on separate layers with different easings = a real arc */
.fly-x, .fly-y { position: fixed; left: 0; top: 0; z-index: var(--z-fly); pointer-events: none; will-change: transform; }
.fly-y img, .fly-y .ph { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-lg); }

/* ---------- bottom sheet ---------- */
dialog.sheet-host { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; overflow: hidden; color: var(--text); animation: none; }
dialog.sheet-host::backdrop { background: transparent; }
.scrim { position: absolute; inset: 0; background: rgb(20 16 13 / .55); }
.panel { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px; max-height: 92dvh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--radius-lg) var(--radius-lg) 0 0; box-shadow: var(--shadow-lg); overflow: hidden; will-change: transform; }
.grab { position: absolute; top: 0; left: 0; right: 0; height: 28px; z-index: 3; display: grid; place-items: center; touch-action: none; cursor: grab; }
.grab::before { content: ''; width: 40px; height: 5px; border-radius: 3px; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.on-photo .grab::before { background: rgb(255 255 255 / .8); }
.panel-scroll { overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; flex: 1; min-width: 0; }
.panel-scroll:focus { outline: none; }
.panel-foot[hidden] { display: none; }
.panel-foot { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); display: flex; gap: 10px; align-items: center; }
.close-x { position: absolute; top: 14px; right: 14px; z-index: 4; }
.fly-photo { position: fixed; z-index: 5; pointer-events: none; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; will-change: transform; /* the slot's own shape, so the hand-over is seamless */ }
.fly-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-btn { flex: 1; min-height: 52px; border-radius: 16px; font-size: 16px; gap: 6px; }
/* 320–359 px: next to the stepper «В корзину · 2 500 ₸» does not fit in one line — label and price go on two */
@media (max-width: 359px) { .panel-foot .sheet-btn:has(.dot) { flex-direction: column; gap: 0; min-width: 0; line-height: 1.15; font-size: 15px; } .sheet-btn .dot { display: none; } }
.btn.primary.sheet-btn { box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.roll { position: relative; display: inline-block; overflow: hidden; height: 1.3em; line-height: 1.3em; vertical-align: bottom; }
.roll span { display: block; white-space: nowrap; }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* dish detail */
.sd-media { margin: 0; aspect-ratio: 4 / 3; touch-action: none; }
.sd-body { padding: 18px 20px 20px; }
.sd-title { font: 600 28px/1.15 var(--serif); margin: 8px 0 0; }
.sd-desc { color: var(--muted); margin: 8px 0 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; margin: 16px 0 0; }
.facts div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; }
.facts dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.facts dd { margin: 2px 0 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-h { font: 700 15px/1.3 var(--font); margin: 22px 0 10px; }
.mini-rail { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px 4px; }
.mini-rail::-webkit-scrollbar { display: none; }
.mini { flex: none; width: 128px; position: relative; }
.mini .ph { width: 128px; height: 96px; border-radius: 14px; }
.mini b { display: block; font-size: 13px; font-weight: 600; margin-top: 6px; line-height: 1.25; }
.mini span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.mini .plus { position: absolute; top: 52px; right: 4px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--text);
  box-shadow: var(--shadow); display: grid; place-items: center; }
.mini .plus.ok { background: var(--ok); color: #fff; }

/* cart sheet */
.cart-head { padding: 26px 20px 6px; display: flex; align-items: flex-start; gap: 12px; }
.cart-head h2 { font: 600 28px/1.15 var(--serif); margin: 0; }
.cart-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.cart-head .round-btn:hover { background: var(--surface-2); }
.lines { padding: 0 20px; }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line .ph { width: 56px; height: 56px; border-radius: 14px; }
.line .ph.noph { font-size: 22px; }
.line b { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.line .price { font-size: 14px; color: var(--muted); font-weight: 600; }
.cart-sec { padding: 0 20px; }
.note { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warn-soft); font-size: 14px; }
.textarea-btn { display: flex; align-items: center; gap: 8px; min-height: 44px; border: 0; background: transparent; padding: 0; color: var(--accent-text); font-weight: 600; margin-top: 8px; }
.cart-sec textarea[hidden] { display: none; }
fieldset.pay { border: 0; padding: 0; margin: 16px 0 0; display: grid; gap: 8px; }
fieldset.pay legend { font-weight: 700; font-size: 15px; margin-bottom: 10px; padding: 0; }
.pay-opt { position: relative; display: grid; grid-template-columns: 40px 1fr 24px; gap: 12px; align-items: center; min-height: 64px; padding: 10px 14px;
  border-radius: 16px; border: 1.5px solid var(--line-strong); background: var(--surface); cursor: pointer; transition: border-color var(--dur-2), background var(--dur-2); }
.pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.pay-opt .pi { width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); display: grid; place-items: center; }
.pay-opt b { display: block; font-weight: 600; } .pay-opt small { color: var(--muted); font-size: 13px; }
.pay-opt .dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; transition: border-color var(--dur-2); }
.pay-opt .dot::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform var(--dur-3) var(--ease-spring); }
.pay-opt:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pay-opt:has(input:checked) .dot { border-color: var(--accent); }
.pay-opt:has(input:checked) .dot::after { transform: scale(1); }
.pay-opt:has(input:focus-visible) { outline: 3px solid var(--accent); outline-offset: 2px; }
.sum-row { display: flex; justify-content: space-between; margin: 18px 0; font-weight: 800; font-size: 18px; font-variant-numeric: tabular-nums; }
.cart-sec .error:empty { display: none; }

/* success */
.success { padding: 40px 24px 12px; text-align: center; }
.done-badge { position: relative; width: 88px; height: 88px; margin: 0 auto 18px; display: grid; place-items: center; }
.done-badge .core { width: 88px; height: 88px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; animation: pop-in 560ms var(--ease-spring) both; }
.done-badge .ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--ok); animation: ring 1.1s var(--ease) both; }
.done-badge .ring:nth-child(2) { animation-delay: .18s; }
.done-badge .core .ico { width: 40px; height: 40px; stroke-width: 3; animation: pop-in 480ms 180ms var(--ease-spring) both; }
@keyframes pop-in { from { transform: scale(.2); opacity: 0; } }
@keyframes ring { from { transform: scale(.8); opacity: .8; } to { transform: scale(1.9); opacity: 0; } }
.success h2 { font: 600 28px/1.15 var(--serif); margin: 0; }
.success p { color: var(--muted); margin: 8px auto 0; max-width: 320px; }
.success .track-card { margin-top: 22px; }
.success .btn { margin-top: 18px; width: 100%; }
.paid-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; padding: 6px 12px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); font-weight: 700; font-size: 13px; }

/* order status sheet */
.timeline { list-style: none; margin: 0; padding: 4px 20px 12px; }
.timeline li { position: relative; display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 0; color: var(--muted); }
.timeline li::before { content: ''; position: absolute; left: 13px; top: 38px; bottom: -6px; width: 2px; background: var(--surface-3); }
.timeline li:last-child::before { display: none; }
.timeline .tdot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.timeline li.done .tdot, .timeline li.now .tdot { background: var(--accent); color: var(--on-accent); }
.timeline li.done, .timeline li.now { color: var(--text); }
.timeline b { display: block; font-weight: 700; }
.timeline small { font-size: 13px; }

/* toasts sit above the cart bar */
.guest .toasts { bottom: calc(92px + env(safe-area-inset-bottom)); }
.guest .toast { background: var(--ink); color: var(--on-ink); border-radius: 14px; }
.guest .toast .ico { color: var(--glow); }

.consent { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: calc(var(--z-bar) + 1); max-width: 528px; margin: auto; }
.consent p { margin: 0 0 12px; font-size: 14px; }
.menu-foot { text-align: center; color: var(--muted); font-size: 13px; padding: 28px 16px 40px; }
.menu-foot a { color: var(--accent-text); font-weight: 600; }
.skeleton { display: grid; gap: 12px; padding: 16px; }
.skeleton > div { height: 116px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }

@media (prefers-reduced-motion: reduce) {
  .t-step.now i::after { display: none; }
  .ph img { opacity: 1; transform: none; }
}
/* 320–360 px: two columns of 4:5 cards still fit (148 px minimum would leave one card with empty space) */
@media (max-width: 360px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.sheet-end { height: 20px; }

/* landing demo: the menu plays itself inside a phone frame (menu.js autoplay) */
.embed { scrollbar-width: none; }
.embed ::-webkit-scrollbar { display: none; }
.embed .cover-top { top: 40px; }
.embed .catbar-top { height: 84px; padding-top: 34px; }
.embed .search-btn { top: 36px; }
.embed .catbar-title { top: 62%; }
.tapper { position: fixed; z-index: 200; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgb(255 255 255 / .55);
  border: 2px solid rgb(30 23 18 / .35); pointer-events: none; opacity: 0; }

/* ---------- card payment: our own form, the card face follows the input and turns over for the CVV ---------- */
.card-pay .cart-sec { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding-bottom: 16px; }
.card-art { perspective: 1000px; width: min(100%, 340px); aspect-ratio: 1.586; margin: 8px auto 14px; }
.ca-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 560ms var(--ease); }
.card-art.flip .ca-inner { transform: rotateY(180deg); }
.ca-face { position: absolute; inset: 0; border-radius: 18px; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; color: #f4f4f2;
  background: radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--accent) 70%, transparent), transparent 60%),
    radial-gradient(80% 70% at 0% 100%, rgb(255 255 255 / .1), transparent 60%), #141414;
  box-shadow: 0 18px 40px rgb(30 23 18 / .28); }
.ca-front { display: grid; grid-template-rows: auto 1fr auto auto; padding: 18px 20px; }
.ca-chip { width: 42px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #f2d48a, #c9a24a); }
.ca-brand { position: absolute; top: 18px; right: 20px; font-weight: 800; font-style: italic; letter-spacing: .04em; font-size: 18px; }
.ca-num { align-self: end; font: 600 clamp(17px, 5.4vw, 21px)/1.2 ui-monospace, 'Cascadia Mono', Menlo, monospace; letter-spacing: .06em; white-space: nowrap; }
.ca-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: .06em; opacity: .9; }
.ca-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ca-exp { font-variant-numeric: tabular-nums; }
.ca-back { transform: rotateY(180deg); }
.ca-stripe { position: absolute; left: 0; right: 0; top: 22px; height: 40px; background: #0e0b09; }
.ca-sign { position: absolute; left: 20px; right: 20px; top: 80px; height: 36px; border-radius: 6px; background: #f4f4f2; color: #141414; display: flex; align-items: center; justify-content: flex-end;
  padding: 0 12px; font: 700 16px ui-monospace, Menlo, monospace; letter-spacing: .2em; }
.cf-field { display: grid; gap: 6px; margin-top: 8px; min-width: 0; }
.cf-field label { font-size: 14px; font-weight: 700; }
.cf-field .input { min-height: 52px; font-size: 18px; letter-spacing: .04em; font-variant-numeric: tabular-nums; background: var(--surface); }
.cf-field .input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 18%, transparent); }
.cf-err { min-height: 18px; color: var(--err); font-size: 13px; font-weight: 600; }
.cf-err:empty { min-height: 0; }
.cf-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cf-secure { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.cf-secure .ico { flex: none; margin-top: 1px; color: var(--ok); }
.cf-later { justify-self: center; min-height: 44px; margin-top: 4px; border: 0; background: transparent; color: var(--accent-text); font-weight: 700; }
.cf-test { display: grid; gap: 6px; padding: 12px; margin-bottom: 4px; border-radius: var(--radius-sm); background: var(--warn-soft); }
.cf-test > b { display: inline-flex; align-items: center; gap: 8px; color: var(--warn); font-size: 14px; }
.cf-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.cf-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.cf-chip span { overflow-wrap: anywhere; }
.cf-chip { display: grid; gap: 2px; min-height: 44px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); text-align: left; transition: transform var(--dur-1), border-color var(--dur-2); }
.cf-chip:active { transform: scale(.97); }
.cf-chip:hover { border-color: var(--accent); }
.cf-chip b { font-size: 14px; font-variant-numeric: tabular-nums; }
.cf-chip span { font-size: 12px; color: var(--muted); }
.panel-foot .btn + .btn { margin-left: 0; }
/* 3-D Secure: the bank's page sits in a frame inside our sheet */
.acs-wrap { position: relative; height: min(520px, 62dvh); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.acs-wrap.loading::after { content: ''; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px; border-radius: 50%; border: 3px solid var(--accent); border-right-color: transparent; animation: spin .8s linear infinite; }
.acs-frame { width: 100%; height: 100%; border: 0; background: var(--surface); }


/* ---------- "Мои заказы": the dock peek / mini ring and the orders sheet ---------- */
.orders-peek { flex: 1; min-width: 0; position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 14px 8px 10px; border: 0; border-radius: 20px;
  background: var(--ink); color: var(--on-ink); box-shadow: var(--shadow-lg); text-align: left; font: inherit; transition: background var(--dur-3); }
.orders-peek.ready { background: var(--ok); color: var(--bg); }
.orders-peek > .ico { flex: none; opacity: .8; }
.pk-text { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.pk-text b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-text small { font-size: 13px; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rings { display: flex; flex: none; }
.ring { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: color-mix(in srgb, currentColor 12%, transparent); }
.ring + .ring { margin-left: -12px; box-shadow: 0 0 0 3px var(--ink); }
.orders-peek.ready .ring + .ring { box-shadow: 0 0 0 3px var(--ok); }
.ring svg.prog { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring svg.prog circle { fill: none; stroke-width: 3.5; }
.ring .trk { stroke: color-mix(in srgb, currentColor 22%, transparent); }
.ring .val { stroke: var(--glow); stroke-linecap: round; transition: stroke-dashoffset 700ms var(--ease); }
.ring.pay .val { stroke: #ffb561; } .ring.ready .val, .ring.done .val { stroke: #5fd08f; }
.ring > .ico { position: relative; }
.ring.live::after { content: ''; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--glow); opacity: 0; animation: ring-halo 2s var(--ease) infinite; }
@keyframes ring-halo { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.35); opacity: 0; } }
.orders-mini { position: relative; flex: none; width: 64px; min-height: 64px; border: 0; border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); display: grid; place-items: center; }
.orders-mini .badge { position: absolute; top: 6px; right: 6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.orders-mini .badge.pay { background: var(--warn); color: var(--bg); }
.pay-now { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 64px; padding: 0 18px; border: 0; border-radius: 20px; background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-lg); font: 800 15px var(--font); white-space: nowrap; }
.pay-now:active, .orders-peek:active, .orders-mini:active, .cart-bar:active { transform: scale(.98); }
.burst { position: absolute; left: 32px; top: 50%; width: 0; height: 0; pointer-events: none; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 2px; background: var(--glow); opacity: 0; }
.celebrate .burst i { animation: spark 900ms var(--ease) both; }
.burst i:nth-child(1) { --dx: 40px; --dy: -34px; } .burst i:nth-child(2) { --dx: 60px; --dy: -6px; } .burst i:nth-child(3) { --dx: 46px; --dy: 26px; }
.burst i:nth-child(4) { --dx: 14px; --dy: 38px; } .burst i:nth-child(5) { --dx: -22px; --dy: 30px; } .burst i:nth-child(6) { --dx: -30px; --dy: -8px; }
.burst i:nth-child(7) { --dx: -12px; --dy: -38px; } .burst i:nth-child(8) { --dx: 20px; --dy: -46px; } .burst i:nth-child(9) { --dx: 78px; --dy: -24px; } .burst i:nth-child(10) { --dx: 70px; --dy: 22px; }
.burst i:nth-child(even) { background: #fff; }
@keyframes spark { 0% { opacity: 1; transform: translate(0, 0) rotate(0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(180deg) scale(.4); } }

.oc-tabs { display: flex; gap: 6px; padding: 0 20px 12px; overflow-x: auto; scrollbar-width: none; }
.oc-tabs::-webkit-scrollbar { display: none; }
.oc-tab { flex: none; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font: 600 14px var(--font); white-space: nowrap; }
.oc-tab i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.oc-tab.pay i { background: var(--warn); } .oc-tab.cooking i { background: var(--accent); } .oc-tab.ready i, .oc-tab.done i { background: var(--ok); }
.oc-tab[aria-selected="true"] { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.oc-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 12px; scrollbar-width: none; overscroll-behavior-x: contain; }
.oc-cards::-webkit-scrollbar { display: none; }
.oc { flex: none; width: calc(100% - 8px); scroll-snap-align: center; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.oc-hero { display: grid; grid-template-columns: 56px 1fr; gap: 2px 14px; align-items: center; padding: 18px 18px 14px; }
.oc-ic { grid-row: span 2; width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.oc.pay .oc-hero { background: var(--warn-soft); } .oc.pay .oc-ic { background: var(--warn); color: var(--bg); }
.oc.ready .oc-hero, .oc.done .oc-hero { background: var(--ok-soft); } .oc.ready .oc-ic, .oc.done .oc-ic { background: var(--ok); color: var(--bg); }
.oc.cooking .oc-ic { background: var(--surface-2); color: var(--accent-text); }
.oc.cancelled .oc-ic { background: var(--err-soft); color: var(--err); }
.oc-hero h3 { margin: 0; font: 600 22px/1.15 var(--serif); }
.oc-hero p { margin: 0; font-size: 14px; color: var(--muted); }
.oc-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 12px 18px 4px; }
.oc-steps span { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.oc-steps i { height: 6px; border-radius: 3px; background: var(--surface-3); }
.oc-steps .on { color: var(--text); } .oc-steps .on i { background: var(--accent); }
.oc.ready .oc-steps .on i, .oc.done .oc-steps .on i { background: var(--ok); }
.oc-items { list-style: none; margin: 8px 0 0; padding: 0 18px; display: grid; gap: 6px; }
.oc-items li { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.oc-sum { display: flex; justify-content: space-between; gap: 12px; margin: 12px 18px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 15px; }
.oc-foot { display: grid; gap: 8px; padding: 14px 18px 18px; }
.oc-foot .sheet-btn { width: 100%; }

/* ---------- bank decline: pinned at the top of the payment sheet ---------- */
.pay-alert { position: sticky; top: 0; z-index: 3; display: grid; grid-template-columns: 44px 1fr; gap: 12px; margin: 0 16px 8px; padding: 14px;
  border-radius: var(--radius); background: var(--err-soft); border: 1.5px solid color-mix(in srgb, var(--err) 45%, transparent); box-shadow: var(--shadow-lg); }
.pa-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--err); color: var(--bg); }
.pa-body h3 { margin: 2px 0; font: 700 17px/1.25 var(--font); color: var(--err); }
.pa-body h3:focus { outline: none; }
.pa-body p { margin: 0; font-size: 14px; }
.pa-body .pa-safe { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--ok); font-weight: 700; }
.pa-body .pa-attempt { margin-top: 6px; color: var(--muted); font-size: 13px; }
.pa-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.pa-acts .btn { flex: 1 1 auto; }
.pa-acts .btn { min-height: 44px; background: var(--surface); }
.pa-acts .btn.ink { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.foot-col { flex: 1; display: grid; gap: 8px; }

/* ---------- Kaspi QR: steps, waiting state, QR for another phone ---------- */
.kp { display: grid; gap: 14px; }
.kp .dc { margin-top: 0; }
.kp-loading { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 160px; color: var(--muted); }
.kp-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; counter-reset: kp; }
.kp-steps li { counter-increment: kp; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: center; font-size: 15px; }
.kp-steps li::before { content: counter(kp); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); font-weight: 800; font-size: 14px; }
.kp-wait { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); }
.kp-wait .spinner { flex: none; color: var(--accent-text); }
.kp-wait b { display: block; font-weight: 600; }
.kp-left { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.kp-qr { width: max-content; margin: 10px auto 4px; padding: 12px; border-radius: var(--radius-sm); background: var(--qr-paper); }
.kp-qr:empty { display: none; }
.kp-qr img, .kp-qr canvas { display: block; }
a.sheet-btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.cf-staff { font-size: 13px; font-weight: 700; color: var(--warn); }

.foot-status { display: flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; border: 0; border-radius: 12px; background: var(--err-soft); color: var(--err); font: 600 14px var(--font); text-align: left; }
.foot-status span { flex: 1; }
.foot-status u { font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .burst, .ring.live::after { display: none; } }
.menu-foot { display: grid; gap: 10px; justify-items: center; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.foot-links a, .foot-links .linkish { min-height: 44px; display: inline-flex; align-items: center; padding: 0 8px; color: var(--muted); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.linkish { border: 0; background: none; font: inherit; cursor: pointer; }
.consent a, .cf-secure a { color: var(--accent-text); font-weight: 600; }

/* ---------- about, review, favourites; cart lines with a service charge ---------- */
.sum-row.sub { margin: 6px 0; font-size: 14px; font-weight: 500; color: var(--muted); }
.sum-row.sub + .sum-row:not(.sub) { margin-top: 10px; }
.ab-logo { width: 48px; height: 48px; flex: none; border-radius: 50%; object-fit: cover; margin-right: 12px; }
.ab-text { margin: 0 0 14px; font-size: 16px; line-height: 1.55; max-width: 60ch; }
.ab-hours { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.ab-hours li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.ab-hours .st { grid-column: 1 / -1; font-size: 13px; font-weight: 600; }
.ab-hours .st.open { color: var(--ok); }
.ab-hours .st.closed { color: var(--muted); }
.ab-links { display: grid; gap: 8px; margin: 4px 0 8px; }
.ab-link { display: flex; align-items: center; gap: 12px; min-height: 52px; margin: 0; padding: 0 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); color: var(--text); text-decoration: none; font-weight: 600; overflow-wrap: anywhere; }
.ab-link .ico { flex: none; color: var(--accent-text); }
.map-links .mini-h { margin-top: 8px; }
.map-link span { flex: 1 1 auto; min-width: 0; }
.map-ico { flex: none; width: 28px; height: 28px; border-radius: 7px; object-fit: contain; }
.rate { display: flex; justify-content: center; gap: 2px; margin: 6px 0 16px; }
.rate button { width: 56px; height: 56px; display: grid; place-items: center; border: 0; border-radius: 14px; background: transparent;
  color: var(--line-strong); cursor: pointer; transition: color var(--dur-2); }
.rate button.on { color: var(--warn); }
.rate button.on svg path { fill: currentColor; }
.rate button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.review-form textarea { width: 100%; min-height: 120px; }
.cart-sec .grid { margin-top: 4px; }

/* ---------- table booking ---------- */
.bk-mine { padding: 10px 16px 0; }
.bk-mine[hidden] { display: none; }
.bk-mine-btn { width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: var(--radius); text-align: left;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; }
.bk-mine-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bk-mine-ic { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.bk-mine-t { flex: 1; min-width: 0; display: grid; }
.bk-mine-t b { font-weight: 700; font-size: 15px; line-height: 1.3; }
.bk-mine-t small { color: var(--muted); font-size: 13px; }
.bk-head { align-items: center; }
.bk-head .bk-back { margin-left: -8px; }
.bk-ttl { min-width: 0; }
.bk-ttl h2:focus, .cart-head h2[tabindex]:focus { outline: none; }
.bk-prog { display: flex; gap: 6px; padding: 10px 20px 4px; }
.bk-prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background var(--dur-2); }
.bk-prog i.on { background: var(--accent); }
.bk-sec { padding-top: 8px; min-width: 0; }
.bk-h { display: block; font: 700 15px/1.3 var(--font); margin: 14px 0 8px; }
.bk-muted { color: var(--muted); font-size: 14px; margin: 6px 0 10px; }
.bk-note { margin: 12px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); font-size: 14px; }
.bk-note a { font-weight: 700; color: var(--accent-text); }
.bk-alert { margin: 8px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--err-soft); color: var(--err); font-weight: 600; font-size: 14px; }
.bk-strip { position: relative; display: flex; gap: 8px; overflow-x: auto; margin: 0 -20px; padding: 2px 20px 6px; scrollbar-width: none; scroll-snap-type: x proximity; }
.bk-strip::-webkit-scrollbar { display: none; }
.bk-day { flex: none; width: 68px; min-height: 84px; display: grid; justify-items: center; align-content: center; gap: 1px; padding: 6px 4px; border-radius: 16px;
  border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; scroll-snap-align: center;
  transition: background var(--dur-2), border-color var(--dur-2); }
.bk-day-w { font-size: 12px; font-weight: 700; color: var(--muted); }
.bk-day b { font-size: 22px; line-height: 1.15; font-variant-numeric: tabular-nums; }
.bk-day small { font-size: 12px; color: var(--muted); }
.bk-day.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bk-day.on .bk-day-w, .bk-day.on small { color: inherit; opacity: .85; }
.bk-day:focus-visible, .bk-cell:focus-visible, .bk-slot:focus-visible, .bk-other:focus-visible, .bk-stepper button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bk-other { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; margin-top: 4px; padding: 0 4px; border: 0; background: transparent; color: var(--accent-text); font: 600 15px var(--font); cursor: pointer; }
.bk-cal { margin-top: 8px; padding: 10px; border-radius: var(--radius); background: var(--surface-2); }
.bk-cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.bk-cal-head b { font-size: 15px; }
.bk-cal-head .round-btn:disabled { opacity: .35; }
.bk-cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; margin-top: 6px; }
.bk-cal-w { text-align: center; font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.bk-cell { min-width: 0; min-height: 44px; border: 0; border-radius: 12px; background: transparent; color: var(--text); font: 600 15px var(--font); font-variant-numeric: tabular-nums; cursor: pointer; }
.bk-cell.now { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.bk-cell.on { background: var(--accent); color: var(--on-accent); }
.bk-cell:disabled { opacity: .3; cursor: default; }
.bk-guests { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.bk-guests .bk-h { margin: 0; }
.bk-stepper { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); }
.bk-stepper button { width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); display: grid; place-items: center; box-shadow: var(--shadow); cursor: pointer; }
.bk-stepper button:disabled { opacity: .4; box-shadow: none; cursor: default; }
.bk-n { min-width: 44px; text-align: center; font: 800 20px var(--font); font-variant-numeric: tabular-nums; }
.bk-sum { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; font-weight: 700; }
.bk-sum .ico { color: var(--accent-text); flex: none; }
.bk-grp + .bk-grp { margin-top: 6px; }
.bk-gh { margin: 14px 0 8px; font: 700 13px var(--font); color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.bk-gh small { font-weight: 600; text-transform: none; letter-spacing: 0; }
.bk-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bk-slot { min-width: 0; min-height: 48px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: 700 16px var(--font); font-variant-numeric: tabular-nums; cursor: pointer; transition: background var(--dur-2), border-color var(--dur-2); }
.bk-slot.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bk-skel { display: block; height: 48px; border-radius: 14px; background: linear-gradient(90deg, var(--surface-2), var(--surface), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
.bk-empty { display: grid; gap: 4px; padding: 6px 0; }
.bk-empty > b { font-size: 17px; }
.bk-near { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.bk-near .btn { display: grid; justify-items: center; gap: 0; min-height: 56px; padding: 8px; }
.bk-near small { color: var(--muted); font-size: 13px; }
.bk-row2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 12px; }
.bk-field { display: grid; gap: 6px; margin-top: 14px; min-width: 0; }
.bk-field label { font-size: 14px; font-weight: 700; }
.bk-opt { color: var(--muted); font-weight: 500; }
.bk-field .input { background: var(--surface); font-size: 16px; min-height: 48px; }
.bk-field textarea.input { min-height: 72px; }
.bk-field .input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 18%, transparent); }
.bk-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.bk-consent { margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.bk-consent a { color: var(--accent-text); text-decoration: underline; }
.bk-foot { flex: 1; min-width: 0; display: grid; gap: 6px; }
.bk-foot .sheet-btn { width: 100%; line-height: 1.2; padding-block: 8px; }
.bk-err { min-height: 0; margin: 0; }
.bk-err:empty { display: none; }
.bk-ic { flex: none; width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--surface-2); }
.bk-ic.ok { background: var(--ok-soft); color: var(--ok); }
.bk-ic.wait { background: var(--warn-soft); color: var(--warn); }
.bk-ic.bad { background: var(--err-soft); color: var(--err); }
.bk-facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 8px 0 0; }
.bk-facts > div { background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 12px; min-width: 0; }
.bk-facts dt { font-size: 12px; color: var(--muted); font-weight: 600; }
.bk-facts dd { margin: 2px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.bk-facts a { color: var(--accent-text); }
.bk-actions, .bk-confirm { display: grid; gap: 8px; margin-top: 16px; }
.bk-actions .btn, .bk-confirm .btn { min-height: 48px; }
.bk-confirm > p { margin: 0; font-weight: 700; }
.bk-confirm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bk-quiet { color: var(--err); }
.bk-danger { color: var(--err); border-color: color-mix(in srgb, var(--err) 55%, transparent); }
/* closed days: visible but not selectable, the word «закрыто» next to the date */
.bk-day.off, .bk-cell.off { opacity: .55; cursor: not-allowed; background: var(--surface-2); }
.bk-day.off b { text-decoration: line-through; }
.bk-cell.off { display: grid; align-content: center; justify-items: center; line-height: 1.1; }
.bk-cell.off small { font-size: 9px; font-weight: 600; color: var(--muted); }
.bk-lbl { font-size: 14px; font-weight: 700; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bk-chip { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: 600 15px var(--font); cursor: pointer; transition: background var(--dur-2), border-color var(--dur-2); }
.bk-chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bk-chip:focus-visible, .bk-come:focus-visible, .bk-mine-btn.ready:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.bk-ask { display: grid; gap: 6px; margin-top: 8px; padding: 14px; border-radius: var(--radius); background: var(--accent-soft); border: 1.5px solid var(--accent); }
.bk-ask > b { font-size: 17px; }
.bk-ask > p { margin: 0; color: var(--muted); font-size: 14px; }
.bk-come { min-height: 56px; font-size: 18px; margin-top: 6px; }
.bk-ok { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--ok-soft); color: var(--ok); font-weight: 700; }
.bk-ok .ico { flex: none; }
/* waiting list */
.wl-now { display: flex; align-items: center; gap: 8px; margin: 8px 0 0; font-weight: 700; }
.wl-now .ico { color: var(--accent-text); flex: none; }
.wl-wait, .wl-ready, .wl-final { display: grid; justify-items: center; text-align: center; gap: 6px; margin-top: 8px; padding: 22px 16px; border-radius: var(--radius); background: var(--surface-2); }
.wl-big { font: 800 26px/1.2 var(--font); overflow-wrap: anywhere; }
.wl-wait p, .wl-ready p { margin: 0; }
.wl-est { display: flex; align-items: center; gap: 6px; font-weight: 700; }
.wl-ready { position: relative; background: var(--accent); color: var(--on-accent); }
.wl-ready p { font-size: 17px; font-weight: 600; }
.wl-ready-ic { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--on-accent) 18%, transparent); animation: wl-pulse 1.6s ease-in-out infinite; }
.wl-final { grid-template-columns: auto minmax(0, auto); justify-content: center; align-items: center; text-align: left; gap: 10px; }
.bk-mine-btn.ready { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.bk-mine-btn.ready .bk-mine-ic { background: color-mix(in srgb, var(--on-accent) 18%, transparent); color: var(--on-accent); }
.bk-mine-btn.ready small { color: inherit; }
@keyframes wl-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.1); opacity: .75; } }
@media (max-width: 359px) { .bk-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } .bk-day { width: 62px; } }
@media (prefers-reduced-motion: reduce) {
  .bk-skel, .wl-ready-ic { animation: none; }
  .bk-chip { transition: none; }
  .bk-prog i, .bk-day, .bk-slot { transition: none; }
  .tile:active, .q-chip:active { transform: none; }
  .dot::before { transition: none; }
}

/* ---------- desktop (≥1024 px): categories | dishes | cart; sheets become centred dialogs ----------
   Below 1024 px none of this applies: the sidebar and the cart column are not shown and the centre wrapper is transparent. */
.mside, .cartcol { display: none; }
.center { display: contents; }
@media (min-width: 1024px) {
  html { scroll-padding-top: 24px; }
  body.guest { background: var(--bg); }
  body.guest.col.has-bar { padding-bottom: 0; }
  .app { --side: clamp(200px, 17vw, 240px); --cart: clamp(300px, 24vw, 360px);
    max-width: 1400px; padding: 24px clamp(24px, 2.5vw, 32px) 0; background: transparent; box-shadow: none;
    display: grid; grid-template-columns: var(--side) minmax(0, 1fr); grid-template-areas: "cover cover" "side center"; column-gap: 28px; align-items: start; }
  .col .app { grid-template-columns: var(--side) minmax(0, 1fr) var(--cart); grid-template-areas: "cover cover cover" "side center cart"; }

  /* cover: the container's width, rounded */
  .cover { grid-area: cover; height: clamp(340px, 28vw, 400px); margin-bottom: 28px; border-radius: var(--radius-lg); }
  .cover.no-photo { height: 240px; }
  .topbar { top: 16px; left: 16px; right: 16px; }
  .topbar .venue-name { font-size: 20px; }
  .topbar .round-btn:hover, .lang:hover { background: color-mix(in srgb, var(--on-photo) 16%, transparent); }
  .lang[aria-pressed="true"]:hover { background: var(--on-photo); }
  .cover-info { left: 32px; right: 32px; bottom: 28px; }
  .venue-tag { font-size: 40px; max-width: 26ch; }
  .dots { right: 16px; top: 84px; }

  /* left: search, categories (they scroll by themselves in a long menu), quick actions */
  .mside { grid-area: side; position: sticky; top: 24px; max-height: calc(100dvh - 48px); min-width: 0; display: flex; flex-direction: column; gap: 14px; }
  .side-search { flex: none; display: grid; gap: 10px; }
  .side-search .allergen-panel { font-size: 13px; gap: 6px; }
  .side-cats { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; display: flex; flex-direction: column; gap: 2px;
    margin: 0 -6px; padding: 2px 6px; }
  .side-cat { flex: none; position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 12px 10px 14px; border: 0; border-radius: 12px;
    background: transparent; color: var(--muted); font: 600 15px/1.3 var(--font); text-align: left; transition: background var(--dur-2), color var(--dur-2); }
  .side-cat[hidden] { display: none; }
  .side-cat:hover { background: var(--surface-2); color: var(--text); }
  /* current: weight, a card and a bar, not colour alone */
  .side-cat[aria-current="true"] { background: var(--surface); color: var(--text); font-weight: 700; box-shadow: var(--shadow); }
  .side-cat[aria-current="true"]::before { content: ''; position: absolute; left: 4px; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--accent); }
  .side-cat:focus-visible { outline: 3px solid var(--accent); outline-offset: -2px; }
  .sc-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
  .sc-n { flex: none; color: var(--muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .side-quick { flex: none; display: grid; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
  .side-quick:empty { display: none; }
  .mside .quick { display: grid; gap: 2px; padding: 0; overflow: visible; }
  .mside .q-chip { min-height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; font-size: 15px; }
  .mside .q-chip:hover { background: var(--surface-2); }
  .mside .q-chip:focus-visible { outline: 3px solid var(--accent); outline-offset: -2px; }
  .mside .q-count { margin-left: auto; }
  .mside .service { grid-template-columns: minmax(0, 1fr); padding: 0; }

  /* centre: showcases and sections; the tiles and the horizontal bar are the phone's navigation */
  .center { display: block; grid-area: center; min-width: 0; }
  .tiles, .catbar, #stuck-sentinel { display: none; }
  .showcase { padding: 0 0 8px; }
  .show-h { margin: 0 0 14px; }
  .showcase + .showcase:not(:empty) { margin-top: 28px; }
  .mine-repeat { width: auto; padding: 0 22px; }
  .sec { padding: 0; }
  .sec-head { margin: 28px 0 14px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 26px 16px; }
  .skeleton { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0; gap: 16px; }
  .skeleton > div { height: 260px; }
  .menu-foot { padding: 40px 0 48px; }

  /* right: the cart, always in view */
  .col .cartcol { grid-area: cart; position: sticky; top: 24px; max-height: calc(100dvh - 48px); min-width: 0; display: flex; flex-direction: column; gap: 14px; }
  .cc-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
  .cc-orders { flex: none; }
  .cc-orders:empty { display: none; }
  #cc-cart { flex: 0 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 20px; }
  .cc-head { flex: none; display: flex; align-items: center; gap: 12px; }
  .cc-head h2 { margin: 0; font: 700 20px/1.2 var(--font); }
  .cc-head h2:focus { outline: none; }
  .cc-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
  .cc-head p:empty { display: none; }
  .cc-bag { position: relative; flex: none; width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
  .cc-bag .cb-count { background: var(--ink); color: var(--on-ink); box-shadow: 0 0 0 2px var(--surface); }
  .cc-lines { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 10px -20px 0; padding: 0 20px; }
  .cc-lines .line { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 10px; }
  .cc-lines .line:last-child { border-bottom: 0; }
  .cc-lines .line .ph { width: 48px; height: 48px; border-radius: 12px; }
  .cc-lines .line .ph.noph { font-size: 20px; }
  .cc-lines .line b { font-size: 14px; overflow-wrap: anywhere; }
  /* Under the cover, at the top of the page a laptop's screen ends before the column does: the total and the button
     stick to the bottom of the screen until the whole column is in view. */
  .cc-sum { flex: none; position: sticky; bottom: 0; z-index: 1; margin: 0 -20px -20px; padding: 0 20px 20px; border-top: 1px solid var(--line);
    background: var(--surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
  .cc-sum .sum-row.sub:first-child { margin-top: 12px; }
  .cc-sum .sum-row:not(.sub) { margin: 14px 0 16px; }
  .cc-sum .sheet-btn { width: 100%; }
  .cc-empty { display: flex; align-items: center; gap: 10px; margin: 16px 0 2px; color: var(--muted); font-size: 14px; }
  .cc-empty .ico { flex: none; }
  .cc-ord { display: grid; gap: 8px; padding: 16px; }
  .cc-ord .mini-h { margin: 0 0 2px; }
  .cc-o { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 8px 12px 8px 8px; border: 1px solid var(--line); border-radius: 16px;
    background: var(--surface); color: var(--text); text-align: left; font: inherit; transition: background var(--dur-2); }
  .cc-o:hover { background: var(--surface-2); }
  .cc-o:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
  .cc-o .pk-text b, .cc-o .pk-text small { white-space: normal; }
  .cc-o .pk-text small { opacity: 1; color: var(--muted); }
  .cc-o.ready { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 45%, transparent); }
  .cc-o.pay { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
  .cc-o-sum { flex: none; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
  .cc-o > .ico { flex: none; color: var(--muted); }
  .cc-more { min-height: 44px; border: 0; background: none; color: var(--accent-text); font-weight: 600; }
  .cc-ord .sheet-btn { width: 100%; }
  .col .dock { display: none; }
  .guest.col .toasts { bottom: 24px; }

  /* sheets become centred dialogs: scale + fade (menu.js), Esc / scrim / close button, no handle and no drag */
  dialog.sheet-host[open] { display: grid; place-items: center; padding: 24px; }
  .panel { position: relative; left: auto; right: auto; bottom: auto; width: min(540px, 100%); max-width: none; max-height: 88dvh; margin: 0; border-radius: var(--radius-lg); }
  .grab { display: none; }
  .panel-foot { padding: 14px 24px 18px; }
  .cart-head { padding: 24px 24px 6px; }
  .lines, .cart-sec { padding-left: 24px; padding-right: 24px; }
  .sheet-host[data-kind="fav"] .panel { width: min(780px, 100%); }
  .sheet-host[data-kind="booking"] .panel { width: min(640px, 100%); }
  .bk-prog { padding-left: 24px; padding-right: 24px; }
  .bk-strip { margin: 0; padding: 2px 0 6px; flex-wrap: wrap; overflow: visible; }
  .bk-row2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-slots { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .bk-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-day, .bk-slot, .bk-cell, .bk-other, .bk-mine-btn { cursor: pointer; }
  .bk-mine { padding: 8px 0 0; }
  .sheet-host[data-kind="dish"] .panel { width: min(880px, 100%); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .sheet-host[data-kind="dish"] .panel-scroll { display: contents; }
  .sheet-host[data-kind="dish"] .sd-media { grid-column: 1; grid-row: 1 / -1; aspect-ratio: auto; height: auto; min-height: min(480px, 80dvh); touch-action: auto; }
  .photo-note { grid-column: 1; grid-row: 1 / -1; align-self: end; justify-self: start; z-index: 1; margin: 12px; padding: 6px 10px; border-radius: 10px; background: var(--surface); box-shadow: var(--shadow); }
  .sheet-host[data-kind="dish"] .sd-body { grid-column: 2; grid-row: 1; min-height: 0; overflow-y: auto; padding: 28px 28px 20px; }
  .sheet-host[data-kind="dish"] .sd-title { padding-right: 44px; }
  .sheet-host[data-kind="dish"] .sd-body:focus { outline: none; }
  .sheet-host[data-kind="dish"] .mini-rail { margin: 0 -28px; padding: 0 28px 4px; }
  .sheet-host[data-kind="dish"] .panel-foot { grid-column: 2; grid-row: 2; padding: 14px 28px 22px; }
  .sheet-host[data-kind="dish"] .sheet-btn { min-width: 0; }
  .sheet-host[data-kind="dish"] .close-x { top: 16px; right: 16px; background: var(--surface-2); color: var(--text); border: 0; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .round-btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
}
/* hover: the photo lifts (transform) and its shadow fades in (opacity). Only the photo moves — the card, which is the
   hover target, stays put: a card that moved itself slid out from under a cursor at its edge and bounced up and down. */
@media (min-width: 1024px) and (hover: hover) {
  /* Not .dish-media itself: a transform there makes it a stacking context, and «+» and ♥ inside it fell under the
     card's open-dish overlay (.dish-open::after) — a click on them opened the dish. Its children move instead. */
  .dish-media > *, .dish-media::before { transition: transform var(--dur-3) var(--ease), opacity var(--dur-3) var(--ease), background var(--dur-2), color var(--dur-2); }
  .dish-media::before { content: ''; position: absolute; inset: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; }
  .dish:not(.stopped):hover .dish-media > *, .dish:not(.stopped):hover .dish-media::before { transform: translateY(-4px); }
  .dish:not(.stopped):hover .dish-media::before { opacity: 1; }
  .side-cat, .q-chip, .cc-o { cursor: pointer; }
}
@media (min-width: 1024px) and (prefers-reduced-motion: reduce) {
  .dish:not(.stopped):hover .dish-media > *, .dish:not(.stopped):hover .dish-media::before { transform: none; }
}

/* ---------- options (modifiers), time-limited categories, discounts ---------- */
.price .was, .sd-deal .was { color: var(--muted); font-weight: 500; text-decoration: line-through; margin-right: 6px; }
.price .until, .sd-deal .until { display: inline-block; margin-left: 6px; color: var(--muted); font-size: 12px; font-weight: 600; }
.price.deal { display: flex; flex-wrap: wrap; align-items: baseline; row-gap: 0; }
.price.deal .until { margin-left: 0; flex-basis: 100%; }
.sd-deal { margin: 4px 0 0; font-weight: 800; font-size: 20px; font-variant-numeric: tabular-nums; }
.sd-deal .was { font-size: 15px; }
.mini span .was { font-size: 12px; }
.line > div { min-width: 0; }
.line-mods { display: block; margin-top: 2px; color: var(--muted); font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; }
.line .price .was { margin-right: 4px; }
.line .price .until { display: block; margin-left: 0; }
.add-n { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center;
  background: var(--surface); color: var(--text); font: 800 12px/1 var(--font); font-variant-numeric: tabular-nums; box-shadow: 0 0 0 2px var(--accent); }
.add-n[hidden] { display: none; }
.add-btn { position: absolute; }
.add-btn.off { background: var(--surface-3); color: var(--muted); box-shadow: 0 0 0 3px var(--bg); cursor: not-allowed; }
.dish.closed .ph img, .dish.closed .dish-name, .dish.closed .portion, .dish.closed .price, .tile.closed .ph, .side-cat.closed .sc-name { opacity: .5; }
.dish.closed .ph img { filter: grayscale(.6); }
.sold.soon { font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--scrim) 70%, transparent); }
.sec-avail { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text);
  font-size: 13px; font-weight: 600; line-height: 1.3; }
.sec-head { flex-wrap: wrap; }
.tile-avail { padding: 0 10px 6px; color: var(--muted); font-size: 12px; font-weight: 600; line-height: 1.2; }
.oc-it { display: grid; gap: 1px; min-width: 0; }
.oc-it > span { overflow-wrap: anywhere; }
.oc-mods { color: var(--muted); font-size: 13px; }

.mods { display: grid; gap: 18px; margin-top: 18px; }
.mg-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.mg-title { margin: 0; font: 700 16px/1.3 var(--font); min-width: 0; overflow-wrap: anywhere; }
.mg-rule { color: var(--muted); font-size: 13px; font-weight: 600; }
.mg-rule.req { color: var(--text); background: var(--surface-2); padding: 2px 9px; border-radius: 999px; }
.mg-opts { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 8px; }
.mopt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px;
  background: var(--surface); color: var(--text); font: 500 15px/1.3 var(--font); text-align: left; cursor: pointer; transition: background var(--dur-1), border-color var(--dur-1); }
.mopt:active { background: var(--surface-2); }
.mopt:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mopt.on { border-color: var(--accent); background: var(--surface-2); }
.mo-mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; color: transparent; }
.mo-mark.sq { border-radius: 7px; }
.mopt.on .mo-mark { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.mo-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.mo-price { flex: none; color: var(--muted); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mopt.off { opacity: .55; cursor: not-allowed; background: var(--surface-2); }
.mg-note { margin: 6px 0 0; min-height: 0; font-size: 13px; font-weight: 600; }
.mg-note:empty { display: none; }
.mg-note.warn { color: var(--warn); }
.panel-foot:has(.mod-need) { flex-wrap: wrap; }
.mod-need { flex: 0 0 100%; margin: 0; font-size: 14px; font-weight: 600; color: var(--warn); }
.mod-need[hidden] { display: none; }
.btn.sheet-btn:disabled { opacity: .5; box-shadow: none; }
@media (min-width: 1024px) {
  .cc-lines .line-mods { font-size: 12px; }
}

/* ---------- takeaway («С собой»): mode switch, form, pick-up code ---------- */
.tw-banner { display: flex; align-items: center; gap: 10px; margin: 10px 16px 0; padding: 12px 14px; border-radius: var(--radius); background: var(--accent-soft);
  border: 1.5px solid var(--accent); font-weight: 700; font-size: 15px; line-height: 1.3; }
.tw-banner[hidden] { display: none; }
.tw-banner .ico { flex: none; color: var(--accent-text); }
.tw-banner.off { background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.tw-banner.off .ico { color: var(--warn); }
.tw-seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; margin-top: 14px; padding: 4px; border-radius: 16px; background: var(--surface-2); }
.tw-opt { min-width: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; background: transparent;
  color: var(--text); font: 600 15px var(--font); cursor: pointer; transition: background var(--dur-2), color var(--dur-2); }
.tw-opt.on { background: var(--accent); color: var(--on-accent); }
.tw-opt:focus-visible, .tw-chip:focus-visible, .tw-slot:focus-visible, .tw-tick:focus-visible, .tw-link:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.tw-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-width: 0; }
.tw-form:empty { display: none; }
.tw-state { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--warn-soft); font-size: 14px; font-weight: 600; }
.tw-state .ico { flex: none; margin-top: 2px; color: var(--warn); }
.tw-min { display: grid; gap: 8px; margin: 14px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.tw-min-t { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; }
.tw-min-t .ico { flex: none; color: var(--accent-text); }
.tw-bar { display: block; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.tw-bar i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transform-origin: 0 50%; transition: transform var(--dur-3) var(--ease); }
.tw-row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 0 12px; }
.tw-field { display: grid; gap: 6px; margin-top: 14px; min-width: 0; }
.tw-field label, .tw-lbl { font-size: 14px; font-weight: 700; }
.tw-field .input { min-width: 0; background: var(--surface); font-size: 16px; min-height: 48px; }
.tw-field .input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 18%, transparent); }
.tw-known { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.tw-link { min-height: 44px; padding: 0; border: 0; background: none; color: var(--accent-text); font: 600 14px var(--font); text-decoration: underline; cursor: pointer; }
.tw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.tw-chip { min-width: 0; min-height: 44px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: 600 15px/1.25 var(--font); text-align: left; cursor: pointer; transition: background var(--dur-2), border-color var(--dur-2); }
.tw-chip.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tw-chip:disabled { opacity: .5; cursor: not-allowed; }
.tw-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; max-height: 224px; overflow-y: auto; overscroll-behavior: contain; padding: 2px; margin: 2px -2px -2px; }
.tw-slot { min-width: 0; min-height: 44px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: 700 16px var(--font); font-variant-numeric: tabular-nums; cursor: pointer; transition: background var(--dur-2), border-color var(--dur-2); }
.tw-slot.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.tw-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.tw-consent { display: flex; align-items: flex-start; gap: 10px; margin: 14px 0 0; }
.tw-tick { flex: none; width: 44px; height: 44px; margin: -8px 0 -8px -8px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.tw-tick::before { content: ''; grid-area: 1 / 1; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-strong); background: var(--surface); transition: background var(--dur-2), border-color var(--dur-2); }
.tw-tick .ico { grid-area: 1 / 1; color: var(--on-accent); opacity: 0; transform: scale(.6); transition: opacity var(--dur-2), transform var(--dur-3) var(--ease-spring); }
.tw-tick.on::before { background: var(--accent); border-color: var(--accent); }
.tw-tick.on .ico { opacity: 1; transform: none; }
.tw-cons-t { flex: 1; min-width: 0; font-size: 14px; line-height: 1.4; cursor: pointer; }
.tw-cons-t a { color: var(--accent-text); text-decoration: underline; }
/* promo code, stamps, birthday (cart sheet and cart column) */
.promo { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; margin-top: 8px; }
.promo-loy { display: grid; gap: 6px; margin: 6px 0 4px; }
.promo-loy-l { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 8px 12px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); font-size: 13px; line-height: 1.4; }
.promo-loy-l .ico { flex: none; margin-top: 1px; color: var(--accent-text); }
.promo-loy-l span { min-width: 0; overflow-wrap: anywhere; }
.promo-card { justify-self: start; min-height: 44px; }
.promo-open { justify-self: start; }
.promo-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; }
.promo-row .input { min-width: 0; min-height: 48px; font-size: 16px; text-transform: uppercase; letter-spacing: .04em; background: var(--surface); }
.promo-row .input[aria-invalid="true"] { border-color: var(--err); box-shadow: 0 0 0 3px color-mix(in srgb, var(--err) 18%, transparent); }
.promo-go { min-height: 48px; padding: 0 16px; }
.promo-go:disabled { opacity: .5; cursor: not-allowed; }
.promo-ok { display: flex; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 4px 6px 12px; border-radius: var(--radius-sm); background: var(--ok-soft); color: var(--ok); font-size: 14px; font-weight: 700; min-width: 0; }
.promo-ok .ico { flex: none; }
.promo-ok-t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.promo-ok-sum { flex: none; font-variant-numeric: tabular-nums; }
.promo-x { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.promo-x:focus-visible, .promo-open:focus-visible, .promo-go:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.promo-msg { margin: 8px 0 0; }
.promo-msg:empty { display: none; }
.promo-phone { min-width: 0; }
.promo [hidden] { display: none; }
.sum-row.disc { color: var(--ok); font-weight: 700; }
.paid-chip.promo-chip { margin-left: 6px; }
.tw-err { margin: 12px 0 0; }
.tw-err:empty { display: none; }
.tw-pay { margin-top: 18px; }
/* the «accepted» card and «Мои заказы»: ready-by line, the big code, where to collect */
.tw-wrap { display: grid; gap: 14px; }
.tw-pick { display: grid; gap: 12px; text-align: left; margin-top: 20px; }
.oc .tw-pick { margin: 0 16px; }
.tw-pick-at, .tw-pick-ready { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 700; font-size: 16px; color: var(--text); }
.success .tw-pick p { max-width: none; margin: 0; color: var(--text); }
.tw-pick-at .ico { color: var(--accent-text); flex: none; }
.tw-pick-ready { padding: 12px 14px; border-radius: var(--radius); background: var(--ok-soft); color: var(--ok); }
.success .tw-pick .tw-pick-ready { color: var(--ok); }
.tw-pick-ready .ico { flex: none; }
.tw-code { display: grid; justify-items: center; gap: 4px; padding: 16px 12px; border-radius: var(--radius); background: var(--surface-2); text-align: center; }
.tw-code small { color: var(--muted); font-size: 13px; font-weight: 600; }
.tw-code b { font: 800 44px/1.1 var(--font); letter-spacing: .12em; padding-left: .12em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.tw-code span { color: var(--muted); font-size: 13px; }
.tw-pick.ready .tw-code { background: var(--accent); }
.tw-pick.ready .tw-code b, .tw-pick.ready .tw-code small, .tw-pick.ready .tw-code span { color: var(--on-accent); }
.tw-where { display: grid; gap: 4px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); }
.tw-where small { color: var(--muted); font-size: 12px; font-weight: 600; }
.tw-addr { display: flex; align-items: center; gap: 8px; min-height: 36px; color: var(--text); font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.tw-addr .ico { flex: none; color: var(--accent-text); }
.tw-addr a, a.tw-addr { color: var(--accent-text); text-decoration: underline; }
.paid-chip.due { background: var(--warn-soft); color: var(--warn); }
/* delivery: three-way switch, zones, address, change, tracking */
.tw-seg.n3 .tw-opt { gap: 6px; padding: 0 6px; font-size: 14px; }
.tw-opt span { min-width: 0; overflow-wrap: anywhere; }
.dl-zones { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 8px; border-radius: 16px; }
.dl-zones.bad { outline: 2px solid var(--err); outline-offset: 3px; }
.tw-chip.dl-zone { display: grid; align-content: start; gap: 2px; border-radius: 14px; padding: 10px 12px; }
.tw-chip.dl-zone b { font-weight: 700; overflow-wrap: anywhere; }
.tw-chip.dl-zone small { font-size: 13px; font-weight: 500; opacity: .85; }
.dl-addr { container-type: inline-size; min-width: 0; margin-top: 18px; }
.dl-addr-l { display: block; }
.dl-r1 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 6.5rem); gap: 0 12px; }
.dl-r4 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
@container (min-width: 360px) { .dl-r4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 8px; } }
.dl-r4 .tw-field label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dl-comment { min-height: 72px; padding-top: 12px; resize: none; line-height: 1.4; font-family: inherit; }
.dl-change .tw-chips { margin-bottom: 2px; }
.dl-pick { margin-top: 20px; }
.dl-fee { display: flex; justify-content: space-between; gap: 12px; margin: 0; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--line); font-size: 15px; }
.dl-fee b { font-variant-numeric: tabular-nums; }
.success .tw-pick .dl-fee { max-width: none; color: var(--text); }
.btn.dl-call { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; text-decoration: none; }
@media (max-width: 359px) { .tw-seg.n3 .tw-opt .ico { display: none; } .tw-seg.n3 .tw-opt { font-size: 13px; } }
@media (max-width: 359px) { .tw-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tw-code b { font-size: 38px; } }
@media (prefers-reduced-motion: reduce) {
  .tw-opt, .tw-chip, .tw-slot, .tw-tick::before, .tw-tick .ico, .tw-bar i { transition: none; }
}
@media (min-width: 1024px) {
  .tw-banner { margin: 8px 0 0; }
  .tw-seg { flex: none; margin: 12px 0 0; }
  .cc-scroll { flex: 0 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; margin: 10px -20px 0; padding: 0 20px; }
  .cc-scroll .cc-lines { overflow: visible; margin: 0; padding: 0; }
  .cc-scroll .tw-form { padding-bottom: 12px; }
  .tw-code b { font-size: 36px; }
  .sheet-host[data-kind="done"] .tw-code b, .sheet-host[data-kind="orders"] .tw-code b { font-size: 44px; }
}

/* loyalty card after an order */
.card-note { display: flex; align-items: center; gap: 12px; margin: 16px 0 0; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text); text-align: left; }
.card-note > .ico { flex: none; color: var(--accent-text); }
.card-note-t { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: 13px; line-height: 1.4; }
.card-note-t b { font-size: 14px; }
.card-note .btn { flex: none; min-height: 44px; }
.card-note-line { align-items: flex-start; font-size: 13px; line-height: 1.4; }
.card-note-line .ico { margin-top: 2px; }

/* Electronic fiscal receipt */
.receipt { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 12px 18px 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; text-align: left; }
.track-card .receipt { margin: 12px 0 0; }
.receipt-t { font-weight: 600; color: var(--text); }
.receipt-a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.receipt-off { flex-basis: 100%; color: var(--muted, var(--text)); line-height: 1.4; }
