/* ─────────────────────────────────────────────────────────────
   Гостевое меню. Мобильное, быстрое, без фреймворков.
   Цвет акцента и шрифт заголовков задаёт ресторан.
   ───────────────────────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --surface: #f4f4f2;
  --surface-2: #ebeae6;
  --ink: #16140f;
  --muted: #6b675f;
  --line: #e8e6e1;
  --accent: #f2b630;
  --on-accent: #16140f;
  --good: #1e8e5a;
  --bad: #c8412b;
  --shadow: 0 10px 30px -12px rgba(22, 20, 15, .28);
  --display: 'Unbounded', 'Onest', system-ui, sans-serif;
  --display-weight: 600;
  --display-track: -0.01em;
  --ui: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --pad: 16px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #141312;
  --surface: #1f1e1c;
  --surface-2: #2a2826;
  --ink: #f2efe9;
  --muted: #a29d94;
  --line: #2c2a27;
  --shadow: 0 12px 34px -12px rgba(0, 0, 0, .7);
  color-scheme: dark;
}
:root[data-font="classic"] { --display: 'Cormorant', Georgia, serif; --display-weight: 700; --display-track: 0; }
:root[data-font="clean"] { --display: 'Onest', system-ui, sans-serif; --display-weight: 700; --display-track: -0.025em; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 var(--ui);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
#app { max-width: 560px; margin: 0 auto; min-height: 100dvh; position: relative; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ── Скелетон загрузки ───────────────────────────────────────── */
.boot { padding: 0 var(--pad); }
.boot-cover { height: 210px; margin: 0 calc(-1 * var(--pad)) 20px; background: var(--surface); }
.boot-line { height: 18px; border-radius: 9px; background: var(--surface); margin-bottom: 10px; }
.boot-line.w60 { width: 60%; height: 28px; } .boot-line.w40 { width: 40%; }
.boot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.boot-grid i { aspect-ratio: 4/5; border-radius: var(--r-md); background: var(--surface); }
.boot *, .shimmer { animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* ── Шапка ──────────────────────────────────────────────────── */
.hero { position: relative; }
.cover {
  height: 230px; position: relative; overflow: hidden; background: var(--surface);
}
.cover img { width: 100%; height: 100%; object-fit: cover; animation: settle 1.2s cubic-bezier(.2,.7,.2,1) both; }
.cover::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.28) 0%, rgba(0,0,0,0) 38%, rgba(0,0,0,0) 62%, var(--bg) 100%);
}
.cover.empty { height: 92px; background: var(--bg); }
.cover.empty::after { display: none; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

.top-actions { position: absolute; top: max(12px, env(safe-area-inset-top)); right: 12px; display: flex; gap: 8px; z-index: 3; }
.pill-btn {
  height: 36px; min-width: 36px; padding: 0 12px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255,255,255,.92); color: #16140f; font-weight: 600; font-size: 13px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(0,0,0,.12);
}
:root[data-theme="dark"] .pill-btn { background: rgba(31,30,28,.9); color: var(--ink); }
.pill-btn svg { width: 16px; height: 16px; }

.brand { padding: 0 var(--pad); margin-top: -46px; position: relative; z-index: 2; }
.cover.empty + .brand { margin-top: -40px; }
.logo {
  width: 68px; height: 68px; border-radius: 20px; object-fit: cover; background: var(--bg);
  border: 3px solid var(--bg); box-shadow: var(--shadow); margin-bottom: 12px;
}
.brand h1 {
  font: var(--display-weight) 30px/1.08 var(--display); letter-spacing: var(--display-track);
  margin: 0 0 6px; text-wrap: balance;
}
:root[data-font="classic"] .brand h1 { font-size: 36px; }
.brand p.desc { margin: 0 0 14px; color: var(--muted); max-width: 46ch; }

.facts { display: flex; gap: 8px; overflow-x: auto; padding: 2px var(--pad) 4px; margin: 0 calc(-1 * var(--pad)); scrollbar-width: none; }
.facts::-webkit-scrollbar { display: none; }
.fact {
  flex: none; height: 34px; padding: 0 12px; border-radius: 17px; display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none;
}
.fact svg { width: 15px; height: 15px; flex: none; }
.fact .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); }
.fact.closed .dot { background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 22%, transparent); }
.fact.table { background: var(--accent); color: var(--on-accent); font-weight: 600; }

/* ── Статус заказа ───────────────────────────────────────────── */
.order-strip {
  margin: 16px var(--pad) 0; padding: 12px 14px; border-radius: var(--r-md); background: var(--ink); color: var(--bg);
  display: flex; align-items: center; gap: 12px; width: calc(100% - 2 * var(--pad)); text-align: left;
}
.order-strip .ring { width: 30px; height: 30px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--bg) 25%, transparent); border-top-color: var(--accent); animation: spin 1.1s linear infinite; flex: none; }
.order-strip.ready .ring { animation: none; border-color: var(--accent); background: var(--accent); }
.order-strip b { display: block; font-weight: 600; }
.order-strip span { font-size: 13px; opacity: .72; }
.order-strip svg { margin-left: auto; width: 18px; height: 18px; opacity: .6; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Навигация по категориям ─────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  display: flex; align-items: center; gap: 4px; padding: 10px 0 10px var(--pad); margin-top: 18px;
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.nav.stuck { border-bottom-color: var(--line); }
.search-btn { flex: none; width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; background: var(--surface); }
.search-btn svg { width: 18px; height: 18px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-right: var(--pad); scroll-behavior: smooth; position: relative; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; height: 40px; padding: 0 15px; border-radius: 20px; font-weight: 500; font-size: 14px; color: var(--muted);
  transition: background .25s, color .25s;
}
.tab[aria-current="true"] { background: var(--ink); color: var(--bg); }

/* ── Категория ──────────────────────────────────────────────── */
.section { padding: 26px var(--pad) 6px; }
.section-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 16px; }
.section-head h2 {
  font: var(--display-weight) 24px/1.1 var(--display); letter-spacing: var(--display-track); margin: 0;
}
:root[data-font="classic"] .section-head h2 { font-size: 30px; }
.section-head .count { color: var(--muted); font-size: 13px; font-weight: 500; }

/* Сетка с фото */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
.card { position: relative; text-align: left; display: flex; flex-direction: column; min-width: 0; }
.card .ph {
  position: relative; aspect-ratio: 1 / 1; border-radius: var(--r-md); overflow: hidden; background: var(--surface); margin-bottom: 10px;
}
.card .ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .35s, transform .5s cubic-bezier(.2,.7,.2,1); }
.card .ph img.on { opacity: 1; }
.card:active .ph img { transform: scale(.97); }
.card .ph .mono {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, var(--surface));
  color: color-mix(in srgb, var(--accent) 55%, var(--ink));
  font: var(--display-weight) 44px/1 var(--display); letter-spacing: -0.02em;
}
.card h3 { font-size: 15px; font-weight: 600; line-height: 1.25; margin: 0 0 3px; overflow-wrap: anywhere; }
.card .meta { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.card .row { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 38px; }
.price { font-weight: 650; font-size: 15px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.tags { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; z-index: 1; pointer-events: none; }
.tag {
  height: 22px; padding: 0 8px; border-radius: 11px; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center;
  background: rgba(255,255,255,.94); color: #16140f;
}
.tag.hit { background: var(--accent); color: var(--on-accent); }
.tag.spicy { color: #c8412b; }
.tag.vegan { color: #1e7a4f; }

.soldout .ph img, .soldout .thumb img { filter: grayscale(1); opacity: .55 !important; }
.soldout h3, .soldout .price { color: var(--muted); }
.soldout-label { font-size: 12px; font-weight: 600; color: var(--bad); }

/* Список без фото */
.list { display: flex; flex-direction: column; }
.line {
  display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line);
  align-items: start;
}
.line:last-child { border-bottom: 0; }
.line.with-thumb { grid-template-columns: 76px 1fr auto; }
.line .thumb { width: 76px; height: 76px; border-radius: var(--r-sm); overflow: hidden; background: var(--surface); grid-row: span 2; }
.line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.line h3 { font-size: 15.5px; font-weight: 600; margin: 0; line-height: 1.3; display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.line h3 .mini { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 9px; background: var(--surface); color: var(--muted); }
.line h3 .mini.hit { background: var(--accent); color: var(--on-accent); }
.line p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line .side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; grid-row: span 2; }

/* ── Кнопка + и степпер ─────────────────────────────────────── */
.add {
  width: 38px; height: 38px; border-radius: 19px; display: grid; place-items: center; flex: none;
  background: var(--surface); color: var(--ink); transition: background .2s, transform .15s;
}
.add svg { width: 18px; height: 18px; }
.add:active { transform: scale(.9); }
.stepper {
  height: 38px; border-radius: 19px; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center;
  font-weight: 700; font-variant-numeric: tabular-nums; animation: grow .28s cubic-bezier(.3,1.5,.5,1) both; flex: none;
}
.stepper button { width: 36px; height: 38px; display: grid; place-items: center; }
.stepper button svg { width: 16px; height: 16px; }
.stepper span { min-width: 18px; text-align: center; font-size: 15px; }
@keyframes grow { from { transform: scale(.6); opacity: 0; } }

/* ── Нижняя панель ───────────────────────────────────────────── */
.dock {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + var(--safe-b)); z-index: 40;
  width: min(560px, 100%); padding: 0 14px; display: flex; gap: 10px; align-items: center; pointer-events: none;
}
.dock > * { pointer-events: auto; }
.bell {
  width: 56px; height: 56px; border-radius: 28px; display: grid; place-items: center; flex: none;
  background: var(--bg); color: var(--ink); box-shadow: var(--shadow), inset 0 0 0 1px var(--line);
}
.bell svg { width: 24px; height: 24px; }
.cartbar {
  flex: 1; height: 56px; border-radius: 28px; background: var(--ink); color: var(--bg); display: flex; align-items: center; gap: 12px;
  padding: 0 8px 0 20px; box-shadow: var(--shadow); font-weight: 600; animation: rise .4s cubic-bezier(.3,1.3,.5,1) both;
}
.cartbar .label { flex: 1; text-align: left; }
.cartbar .sum {
  height: 40px; padding: 0 16px; border-radius: 20px; background: var(--accent); color: var(--on-accent); display: inline-flex; align-items: center; font-variant-numeric: tabular-nums;
}
.cartbar.bump .sum { animation: bump .35s ease; }
@keyframes rise { from { transform: translateY(30px); opacity: 0; } }
@keyframes bump { 40% { transform: scale(1.08); } }
.spacer { height: calc(110px + var(--safe-b)); }

/* ── Шторки (bottom sheets) ─────────────────────────────────── */
.scrim { position: fixed; inset: 0; background: rgba(10, 9, 8, .45); z-index: 60; animation: fade .25s both; }
.scrim.out { animation: fade .2s reverse both; }
@keyframes fade { from { opacity: 0; } }
.sheet {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); z-index: 61; width: min(560px, 100%);
  max-height: calc(100dvh - 40px); overflow: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 26px 26px 0 0; padding-bottom: calc(18px + var(--safe-b));
  animation: up .38s cubic-bezier(.2,.9,.25,1) both;
}
.sheet.out { animation: down .22s ease-in both; }
@keyframes up { from { transform: translate(-50%, 100%); } }
@keyframes down { to { transform: translate(-50%, 100%); } }
.grab { position: sticky; top: 0; height: 22px; display: grid; place-items: center; z-index: 3; }
.grab::before { content: ''; width: 38px; height: 5px; border-radius: 3px; background: var(--line); }
.sheet.media .grab { position: absolute; left: 0; right: 0; }
.sheet.media .grab::before { background: rgba(255,255,255,.75); }
.x {
  position: absolute; top: 14px; right: 14px; z-index: 4; width: 36px; height: 36px; border-radius: 18px; display: grid; place-items: center;
  background: var(--surface);
}
.sheet.media .x { background: rgba(255,255,255,.92); color: #16140f; position: absolute; }
.x svg { width: 18px; height: 18px; }
.sheet-body { padding: 4px 20px 0; }
.sheet h2 { font: var(--display-weight) 24px/1.15 var(--display); letter-spacing: var(--display-track); margin: 8px 44px 6px 0; text-wrap: balance; }
:root[data-font="classic"] .sheet h2 { font-size: 30px; }
.sheet .lead { color: var(--muted); margin: 0 0 16px; }

/* Карточка блюда */
.dish-media { aspect-ratio: 1 / 1; max-height: 58dvh; width: 100%; background: var(--surface); overflow: hidden; }
.dish-media img { width: 100%; height: 100%; object-fit: cover; }
.dish-facts { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 14px; }
.dish-facts span { height: 28px; padding: 0 11px; border-radius: 14px; background: var(--surface); display: inline-flex; align-items: center; font-size: 13px; font-weight: 500; }
.dish-facts span.hit { background: var(--accent); color: var(--on-accent); }
.dish-desc { margin: 0 0 18px; font-size: 15.5px; line-height: 1.55; color: var(--ink); opacity: .86; }
.pair-title { font-weight: 600; margin: 20px 0 10px; }
.pairs { display: flex; gap: 10px; overflow-x: auto; margin: 0 -20px; padding: 0 20px 4px; scrollbar-width: none; }
.pairs::-webkit-scrollbar { display: none; }
.pair { flex: none; width: 128px; text-align: left; }
.pair .ph { width: 128px; height: 104px; border-radius: var(--r-sm); background: var(--surface); overflow: hidden; margin-bottom: 6px; position: relative; }
.pair .ph img { width: 100%; height: 100%; object-fit: cover; }
.pair .ph .add { position: absolute; right: 6px; bottom: 6px; width: 32px; height: 32px; background: var(--bg); box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.pair b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pair small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sheet-foot {
  position: sticky; bottom: calc(-18px - var(--safe-b)); background: var(--bg); padding: 14px 20px calc(18px + var(--safe-b)); margin-top: 18px; margin-bottom: calc(-18px - var(--safe-b));
  display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line);
}
.big-qty { display: inline-flex; align-items: center; height: 54px; border-radius: 27px; background: var(--surface); font-weight: 700; font-variant-numeric: tabular-nums; }
.big-qty button { width: 46px; height: 54px; display: grid; place-items: center; }
.big-qty button svg { width: 18px; height: 18px; }
.big-qty span { min-width: 22px; text-align: center; font-size: 17px; }
.primary {
  flex: 1; height: 54px; border-radius: 27px; background: var(--ink); color: var(--bg); font-weight: 650; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 20px;
}
.primary.accent { background: var(--accent); color: var(--on-accent); }
.primary[disabled] { opacity: .45; pointer-events: none; }
.primary .num { opacity: .8; font-weight: 600; }
.primary > span { white-space: nowrap; }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-right: 44px; }
.sheet-head h2 { margin-right: 0; }
.link-btn { color: var(--muted); font-weight: 600; font-size: 14px; padding: 6px 0; }
.ghost { height: 54px; border-radius: 27px; padding: 0 20px; background: var(--surface); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }

/* Корзина */
.cart-line { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line .thumb { width: 52px; height: 52px; border-radius: 12px; background: var(--surface); overflow: hidden; display: grid; place-items: center; font-weight: 700; color: var(--muted); }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line b { display: block; font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.cart-line small { color: var(--muted); font-variant-numeric: tabular-nums; }
.cart-line .stepper { background: var(--surface); color: var(--ink); height: 34px; animation: none; }
.cart-line .stepper button { height: 34px; width: 32px; }
.totals { padding: 14px 0 4px; display: grid; gap: 6px; }
.totals div { display: flex; justify-content: space-between; color: var(--muted); }
.totals div.total { color: var(--ink); font-weight: 700; font-size: 18px; margin-top: 4px; }
textarea.note {
  width: 100%; min-height: 64px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 12px 14px; font: inherit; resize: none; margin-top: 14px;
}
textarea.note:focus { outline: 2px solid var(--accent); border-color: transparent; }
.hint { color: var(--muted); font-size: 13px; margin: 12px 0 0; }

/* Сервис-меню (официант, счёт) */
.actions { display: grid; gap: 10px; margin-top: 6px; }
.action {
  display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r-md); background: var(--surface); text-align: left; width: 100%; text-decoration: none;
}
.action .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--bg); flex: none; }
.action .ico svg { width: 22px; height: 22px; }
.action b { display: block; font-weight: 600; }
.action small { color: var(--muted); font-size: 13px; }
.action.main { background: var(--accent); color: var(--on-accent); }
.action.main .ico { background: rgba(255,255,255,.35); }
.action.main small { color: inherit; opacity: .75; }
.action.done { outline: 2px solid var(--good); }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg button { height: 46px; border-radius: 14px; background: var(--bg); font-weight: 600; font-size: 14px; }

/* Инфо */
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; text-decoration: none; }
.info-row:last-child { border-bottom: 0; }
.info-row svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--muted); }
.info-row b { display: block; font-weight: 600; }
.info-row span { color: var(--muted); font-size: 14px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 4px 18px; font-size: 14px; color: var(--muted); margin-top: 4px; }
.hours .today { color: var(--ink); font-weight: 600; }
.socials { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.socials a { height: 42px; padding: 0 16px; border-radius: 21px; background: var(--surface); display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-size: 14px; }
.socials svg { width: 18px; height: 18px; }

/* Оценка */
.stars { display: flex; gap: 6px; justify-content: center; margin: 10px 0 6px; }
.stars button { width: 52px; height: 52px; display: grid; place-items: center; color: var(--line); transition: transform .15s, color .15s; }
.stars button svg { width: 40px; height: 40px; }
.stars button.on { color: var(--accent); }
.stars button:active { transform: scale(.88); }
.field { width: 100%; height: 50px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: 0 14px; font: inherit; margin-top: 10px; }

/* Статус заказа */
.steps { display: grid; gap: 0; margin: 12px 0 8px; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; padding-bottom: 18px; position: relative; color: var(--muted); }
.step::before { content: ''; position: absolute; left: 13px; top: 28px; bottom: 2px; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step i { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); display: grid; place-items: center; }
.step.done i { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.step.now i { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.step.done, .step.now { color: var(--ink); }
.step b { font-weight: 600; display: block; padding-top: 3px; }
.step i svg { width: 14px; height: 14px; }

/* Поиск */
.search {
  position: fixed; inset: 0; z-index: 70; background: var(--bg); width: min(560px, 100%); margin: 0 auto; overflow: auto;
  animation: fade .18s both;
}
.search-top { position: sticky; top: 0; background: var(--bg); padding: 12px var(--pad); display: flex; gap: 10px; align-items: center; z-index: 2; border-bottom: 1px solid var(--line); }
.search-top input {
  flex: 1; height: 46px; border-radius: 23px; border: 0; background: var(--surface); color: var(--ink); padding: 0 18px; font: 500 16px var(--ui);
}
.search-top input:focus { outline: 2px solid var(--accent); }
.search-top button { width: 46px; height: 46px; border-radius: 23px; background: var(--surface); display: grid; place-items: center; flex: none; }
.search-top button svg { width: 18px; height: 18px; }
.search .list { padding: 0 var(--pad); }
.empty-note { text-align: center; color: var(--muted); padding: 48px 24px; }

/* Языки */
.langs { display: grid; gap: 8px; }
.langs button { height: 54px; border-radius: var(--r-md); background: var(--surface); font-weight: 600; text-align: left; padding: 0 18px; display: flex; justify-content: space-between; align-items: center; }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* Тост */
.toast {
  position: fixed; left: 50%; top: max(14px, env(safe-area-inset-top)); transform: translateX(-50%); z-index: 90; max-width: calc(100% - 32px);
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 16px; font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow); animation: drop .3s cubic-bezier(.3,1.3,.5,1) both; display: flex; gap: 10px; align-items: center;
}
.toast.bad { background: var(--bad); color: #fff; }
.toast.out { animation: fade .2s reverse both; }
.toast svg { width: 18px; height: 18px; flex: none; }
@keyframes drop { from { transform: translate(-50%, -24px); opacity: 0; } }

/* Подвал */
.foot { padding: 30px var(--pad) 0; display: grid; gap: 14px; justify-items: center; text-align: center; }
.foot .rate { height: 48px; padding: 0 22px; border-radius: 24px; background: var(--surface); font-weight: 600; display: inline-flex; gap: 8px; align-items: center; }
.foot .rate svg { width: 18px; height: 18px; color: var(--accent); }
.foot small { color: var(--muted); font-size: 12px; }
.foot small a { text-decoration: none; font-weight: 600; }

.missing { padding: 80px 24px; text-align: center; }
.missing h1 { font: 600 24px/1.2 var(--display); margin: 0 0 8px; }
.missing p { color: var(--muted); margin: 0; }
.missing p.alt { margin-top: 18px; font-size: 13.5px; line-height: 1.6; }

@media (min-width: 420px) {
  .grid { gap: 22px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

.slow { background: #fff6dc; border-radius: 16px; padding: 14px 16px; margin: 14px 0 4px; }
.slow p { margin: 0 0 10px; font-size: 14.5px; color: #5b4a12; }
.slow .primary { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.slow .primary svg { width: 18px; height: 18px; }

.opts { display: grid; gap: 14px; margin: 16px 0 6px; }
.opt-group { border: 0; padding: 0; margin: 0; }
.opt-group legend { font-weight: 700; font-size: 15px; margin-bottom: 8px; padding: 0; }
.opt-group legend small { font-weight: 400; color: var(--muted, #8a857c); }
.opt-group.need legend { color: #d1452f; }
.opt-group.need legend::after { content: ' ←'; }
.opt { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 14px; background: var(--chip, rgba(127,127,127,.09)); margin-bottom: 6px; cursor: pointer; font-size: 15px; }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--accent, #f2b630); flex: none; }
.opt span:first-of-type { flex: 1; }
.opt .num { color: var(--muted, #8a857c); font-size: 14px; }
.cart-line .opt-note { display: block; color: var(--muted, #8a857c); }
