/* Витрина «Суши посад».
   Раскладка: липкая шапка + лента категорий, сетка карточек по разделам, корзина — боковая панель (на телефоне — шторка снизу). */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f1f2f4;
  --ink: #15171c;
  --muted: #646a74;
  --line: #e2e4e8;
  --accent: #e0290f;
  --accent-ink: #ffffff;
  --accent-soft: #fde9e5;
  --brand: #073626;
  --brand-2: #0c4632;
  --brand-ink: #ffffff;
  --gold: #f2b624;
  --ok: #1f8a4c;
  --ok-soft: #e3f4ea;
  --rice: #fbfaf6;
  --salmon: #f39a6e;
  --nori: #1f2a26;
  --shadow: 0 1px 2px rgb(20 22 28 / .06), 0 8px 24px rgb(20 22 28 / .06);
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Golos Text", "Segoe UI", Roboto, system-ui, sans-serif;
  --r: 14px;
  --r-sm: 10px;
  --wrap: 1240px;
  --header-h: 64px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased;
}
body.lock { overflow: hidden; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--surface); }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.num { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---- Шапка ---- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 20px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex: none; }
.logo-mark { width: 44px; height: 44px; flex: none; object-fit: contain; }
.logo-text { font-family: var(--f-display); font-weight: 700; font-size: 18px; letter-spacing: -.01em; line-height: 1; }
.logo-text small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: 0; margin-top: 4px; }
.top-info { display: flex; gap: 24px; align-items: center; margin-left: auto; font-size: 14px; }
.top-info .label { color: var(--muted); font-size: 12px; display: block; line-height: 1.2; }
.top-info b { font-weight: 600; }
.open-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; }
.open-dot.closed { background: var(--muted); }
.phone-link { color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.cart-btn { display: inline-flex; align-items: center; gap: 10px; border: 0; background: var(--accent); color: var(--accent-ink);
  border-radius: 999px; padding: 10px 18px; font-weight: 600; white-space: nowrap; }
.cart-btn .count { background: rgb(255 255 255 / .22); border-radius: 999px; padding: 1px 8px; font-size: 13px; }
.cart-btn:hover { filter: brightness(1.06); }

/* ---- Лента категорий ---- */
.cats { border-top: 1px solid var(--line); }
.cats-scroll { display: flex; gap: 6px; overflow-x: auto; padding-block: 10px; scrollbar-width: none; }
.cats-scroll::-webkit-scrollbar { display: none; }
.cat-chip { flex: none; border: 1px solid transparent; background: transparent; padding: 7px 14px; border-radius: 999px;
  color: var(--muted); font-weight: 500; text-decoration: none; white-space: nowrap; font-size: 14px; }
.cat-chip:hover { color: var(--ink); background: var(--surface-2); }
.cat-chip.active { background: var(--ink); color: var(--surface); }

/* ---- Объявления ---- */
.notice { margin-top: 16px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--accent-soft); color: var(--ink); font-size: 14px; }
.promos { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 12px; overflow-x: auto; padding-block: 20px 4px; scrollbar-width: thin; }
.promo { background: var(--surface); border-radius: var(--r); padding: 16px 18px; border: 1px solid var(--line); min-width: 0; }
.promo h3 { margin: 0 0 4px; font-size: 15px; font-weight: 700; text-wrap: balance; }
.promo p { margin: 0; color: var(--muted); font-size: 13px; }
.promo-kicker { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 6px; }

/* ---- Меню ---- */
main { padding-bottom: 96px; }
.section { padding-top: 28px; }
.section h2 { font-family: var(--f-display); font-weight: 600; font-size: clamp(22px, 3vw, 28px); letter-spacing: -.01em; margin: 0 0 16px; text-wrap: balance; }
.section h2 .n { font-family: var(--f-body); font-weight: 500; font-size: 14px; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; min-width: 0; transition: box-shadow .2s; }
.card:hover { box-shadow: var(--shadow); }
.card.out { opacity: .6; }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); border: 0; padding: 0; width: 100%; display: block; overflow: hidden; }
.card-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-media img.bg { object-fit: cover; filter: blur(20px) saturate(1.1); transform: scale(1.4); }
.card-media:has(img.main) .ph { display: none; }
.card-media:has(img.main) { background: #000; }
.card-media img.main { object-fit: contain; transition: transform .35s ease; }
.card:hover .card-media img.main { transform: scale(1.03); }
.mini .card-media img.main, .line-img img.main { object-fit: cover; }
.labels { position: absolute; left: 10px; top: 10px; display: flex; gap: 4px; flex-wrap: wrap; }
.lbl { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; background: var(--surface); color: var(--ink); }
.lbl-hit, .lbl-promo { background: var(--accent); color: var(--accent-ink); }
.lbl-new { background: var(--ok); color: #fff; }
.lbl-spicy { background: #b3261e; color: #fff; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-title { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.3; text-wrap: balance; }
.card-title button { all: unset; cursor: pointer; }
.card-title button:focus-visible { outline: 2px solid var(--accent); }
.card-desc { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.seg { display: flex; background: var(--surface-2); border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { flex: 1; border: 0; background: transparent; border-radius: 8px; padding: 5px 4px; font-size: 13px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.price { font-weight: 700; font-size: 18px; white-space: nowrap; }
.price small { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 4px; }
.add { border: 0; background: var(--accent-soft); color: var(--accent); font-weight: 600; border-radius: 999px; padding: 8px 16px; white-space: nowrap; }
.add:hover { background: var(--accent); color: var(--accent-ink); }
.add[disabled] { background: var(--surface-2); color: var(--muted); cursor: default; }
.stepper { display: inline-flex; align-items: center; background: var(--accent); color: var(--accent-ink); border-radius: 999px; }
.stepper button { border: 0; background: transparent; color: inherit; width: 34px; height: 34px; font-size: 18px; line-height: 1; border-radius: 999px; }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; }
.stepper.light { background: var(--surface-2); color: var(--ink); }

/* Заглушка фото — рисованный ролл, если картинка не загрузилась */
.ph { position: absolute; inset: 0; display: grid; place-items: center; background:
  radial-gradient(circle at 30% 120%, var(--accent-soft), transparent 60%), var(--surface-2); }
.ph::before { content: ""; width: 46%; aspect-ratio: 1; background: var(--ph-img, none) center / contain no-repeat; opacity: .35; filter: saturate(.6); }
.ph span { position: absolute; bottom: 10px; left: 0; right: 0; text-align: center; font-size: 11px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }

/* ---- Подвал ---- */
.foot { background: var(--brand); color: var(--brand-ink); padding-block: 36px 44px; margin-top: 32px; }
.foot-logo { width: 150px; height: auto; }
.foot-about { margin-top: 12px; color: rgb(255 255 255 / .75); }
.foot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; font-size: 14px; }
.foot h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.foot p { margin: 0 0 4px; }
.foot a { color: var(--brand-ink); }
.foot .admin-link { color: rgb(255 255 255 / .6); font-size: 13px; }
.foot .phone-link { color: var(--brand-ink); }

/* ---- Карусель баннеров ---- */
.banners { padding-top: 20px; }
.banners-wrap { position: relative; }
.banner-track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 20px; }
.banner-track::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 86%; scroll-snap-align: start; aspect-ratio: 1600 / 630; border-radius: 20px; overflow: hidden; background: var(--surface-2); display: block; }
.banner img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.banner:hover img { transform: scale(1.02); }
.banner-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink);
  font-size: 26px; line-height: 1; box-shadow: var(--shadow); display: grid; place-items: center; padding-bottom: 3px; }
.banner-arrow.prev { left: max(4px, env(safe-area-inset-left, 0px)); }
.banner-arrow.next { right: max(4px, env(safe-area-inset-right, 0px)); }
.banner-arrow:hover { background: var(--accent); color: var(--accent-ink); }
.banner-dots { display: flex; justify-content: center; gap: 6px; padding-top: 12px; }
.banner-dots button { width: 8px; height: 8px; border-radius: 4px; border: 0; padding: 0; background: var(--line); transition: width .2s, background .2s; }
.banner-dots button[aria-current] { width: 22px; background: var(--accent); }

/* ---- Плавающая кнопка корзины (телефон) ---- */
.cart-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: linear-gradient(to top, var(--bg) 60%, transparent); display: none; }
.cart-bar button { width: 100%; justify-content: space-between; padding: 14px 20px; font-size: 16px; box-shadow: 0 8px 24px rgb(217 58 43 / .35); }

/* ---- Панели (корзина, товар) ---- */
.scrim { position: fixed; inset: 0; background: rgb(10 12 16 / .5); z-index: 70; opacity: 0; transition: opacity .2s; }
.scrim.show { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%); background: var(--bg); z-index: 80; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .25s ease; padding-top: env(safe-area-inset-top, 0px); }
.drawer.show { transform: none; }
.drawer-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.drawer-head h3 { margin: 0; font-family: var(--f-display); font-weight: 600; font-size: 19px; flex: 1; }
.icon-btn { border: 0; background: var(--surface-2); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 18px; line-height: 1; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; gap: 16px; }
.drawer-foot { padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.btn-main { border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; border-radius: 12px; padding: 14px 18px; font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; }
.btn-main[disabled] { opacity: .5; cursor: default; }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 10px 14px; font-weight: 500; }

.lines { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.line { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line-img { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; position: relative; background: var(--surface-2); }
.line-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.line-img img.bg { display: none; }
.line-img .ph::before { width: 70%; }
.line-img .ph span { display: none; }
.line-name { font-weight: 600; font-size: 14px; line-height: 1.3; min-width: 0; }
.line-name small { display: block; color: var(--muted); font-weight: 400; }
.line-right { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line .stepper button { width: 30px; height: 30px; font-size: 16px; }

.free-bar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; font-size: 13px; }
.free-bar .track { height: 6px; border-radius: 3px; background: var(--surface-2); margin-top: 8px; overflow: hidden; }
.free-bar .fill { height: 100%; background: var(--ok); border-radius: 3px; transition: width .3s; }

.upsell h4 { margin: 0 0 8px; font-size: 14px; }
.upsell-row { display: grid; grid-auto-flow: column; grid-auto-columns: 132px; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.mini { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; font-size: 13px; }
.mini .card-media { aspect-ratio: 1; }
.mini .card-media img.bg { display: none; }
.mini .ph span { display: none; }
.mini-body { padding: 8px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.mini-name { font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini .add { padding: 6px 10px; font-size: 13px; margin-top: auto; }

.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; min-width: 0; }
.msg { font-size: 13px; margin: 0; }
.msg:empty { display: none; }
.msg.err { color: var(--accent); }
.msg.ok { color: var(--ok); }
.totals { display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.totals div { display: flex; justify-content: space-between; gap: 12px; }
.totals .muted { color: var(--muted); }
.empty { text-align: center; color: var(--muted); padding: 48px 12px; }
.empty .logo-mark { width: 88px; height: 88px; margin: 0 auto 16px; }

/* ---- Форма оформления ---- */
.form { display: flex; flex-direction: column; gap: 14px; }
.fieldset { background: var(--surface); border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); margin: 0; min-width: 0; }
.fieldset legend { font-weight: 700; font-size: 14px; padding: 0; float: left; width: 100%; margin-bottom: 2px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field span { font-size: 12px; color: var(--muted); }
.input { width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; font-size: 15px; min-width: 0; }
.input:focus { outline: none; border-color: var(--accent); }
textarea.input { resize: vertical; min-height: 64px; }
.toggle { display: flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 4px; }
.toggle button { flex: 1; border: 0; background: transparent; border-radius: 9px; padding: 9px; font-weight: 600; color: var(--muted); }
.toggle button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgb(0 0 0 / .1); }
.hp { position: absolute; left: -9999px; }
.success { text-align: center; padding: 40px 12px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.success .big { font-family: var(--f-display); font-size: 26px; font-weight: 700; }
.success .check { width: 72px; height: 72px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: grid; place-items: center; font-size: 34px; }

/* ---- Карточка товара (модалка) ---- */
.modal { position: fixed; z-index: 80; left: 50%; top: 50%; transform: translate(-50%, -46%); opacity: 0; pointer-events: none;
  width: min(760px, calc(100% - 32px)); max-height: calc(100% - 48px); overflow: auto; background: var(--surface); border-radius: 18px;
  display: grid; grid-template-columns: 1fr 1fr; transition: opacity .2s, transform .2s; }
.modal.show { opacity: 1; transform: translate(-50%, -50%); pointer-events: auto; }
.modal .card-media { aspect-ratio: 1; height: 100%; }
.modal-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.modal-body h3 { font-family: var(--f-display); font-weight: 600; font-size: 22px; margin: 0; text-wrap: balance; padding-right: 32px; }
.modal-body p { margin: 0; color: var(--muted); }
.modal .close { position: absolute; right: 12px; top: 12px; }

@media (max-width: 860px) {
  .top-info .hide-m { display: none; }
}
@media (max-width: 640px) {
  :root { --header-h: 56px; }
  .top-row { gap: 12px; }
  .top-info { gap: 12px; }
  .top-info .hours { display: none; }
  .top .cart-btn { display: none; }
  .banners { padding-top: 14px; }
  .banner { flex-basis: 92%; border-radius: 14px; }
  .banner-track { border-radius: 16px; gap: 10px; }
  .banner-arrow { display: none; }
  .logo-text small { display: none; }
  .cart-bar.has { display: block; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card-body { padding: 10px; gap: 6px; }
  .card-title { font-size: 14px; }
  .card-desc { -webkit-line-clamp: 2; font-size: 12px; }
  .card-foot { flex-direction: column; align-items: stretch; }
  .price { font-size: 16px; }
  .add { width: 100%; }
  .stepper { justify-content: space-between; }
  .seg button { font-size: 12px; padding: 4px 2px; }
  .drawer { top: auto; height: 92%; width: 100%; border-radius: 18px 18px 0 0; transform: translateY(100%); padding-top: 0; overflow: hidden; }
  .modal { grid-template-columns: 1fr; top: auto; bottom: 0; left: 0; width: 100%; max-height: 92%; transform: translateY(100%); border-radius: 18px 18px 0 0; }
  .modal.show { transform: none; }
  .modal .card-media { aspect-ratio: 16 / 10; height: auto; }
  .modal-body { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---- Акции ---- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 20px; }
.promo-card { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s; min-width: 0; }
.promo-card:hover { box-shadow: var(--shadow); }
.promo-img { display: block; aspect-ratio: 1600 / 630; background: var(--surface-2); position: relative; border: 0; padding: 0; width: 100%; cursor: pointer; }
.promo-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-noimg { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; font-family: var(--f-display); font-weight: 600; font-size: 18px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--brand-ink); text-wrap: balance; }
.promo-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.promo-body h3 { margin: 0; font-size: 18px; line-height: 1.3; text-wrap: balance; }
.promo-cond { color: var(--accent); font-weight: 600; font-size: 13px; }
.promo-desc { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.promo-actions { margin-top: auto; padding-top: 6px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.promos-page { padding-block: 28px 16px; }
.page-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-title h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(26px, 4vw, 36px); margin: 0; letter-spacing: -.015em; }
.back-link { color: var(--muted); text-decoration: none; font-weight: 500; }
.back-link:hover { color: var(--accent); }
.top-nav { display: flex; gap: 4px; }
.top-nav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 8px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px; }
.top-nav a:hover { color: var(--ink); background: var(--surface-2); }
.top-nav a[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.top-nav a span { background: var(--accent); color: var(--accent-ink); font-size: 11px; border-radius: 999px; padding: 1px 7px; }
.promo-code { font-size: 13px; color: var(--muted); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--accent-soft); color: var(--accent); padding: 2px 7px; border-radius: 6px; font-weight: 700; font-size: .95em; }
.modal-promo { grid-template-columns: 1fr; width: min(640px, calc(100% - 32px)); }
.promo-hero { aspect-ratio: 1600 / 630; background: var(--surface-2); }
.promo-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.modal-meta { color: var(--accent); font-weight: 600; font-size: 14px; }
.pre { white-space: pre-line; }
.promo-apply { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; background: var(--surface-2); border-radius: 12px; }
.link-btn { border: 0; background: none; color: var(--accent); padding: 0; font-weight: 600; font-size: 13px; align-self: flex-start; }

/* ---- Добавки в карточке товара ---- */
.modal-product .modal-body { max-height: min(86vh, 760px); overflow-y: auto; }
.modal-desc { margin: 0; color: var(--muted); }
.mods { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 2px; }
.mods-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.muted-s { color: var(--muted); font-size: 12px; }
.mod-row { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 2px 0; font-size: 14px; cursor: default; }
label.mod-row { cursor: pointer; }
.mod-row input { width: 18px; height: 18px; accent-color: var(--accent); flex: none; }
.mod-name { flex: 1; min-width: 0; }
.mod-price { color: var(--muted); font-size: 13px; white-space: nowrap; }
.mod-add { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font-size: 18px; line-height: 1; flex: none; }
.mod-add:hover { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.stepper.sm button { width: 28px; height: 28px; font-size: 15px; }
.modal-foot { position: sticky; bottom: -24px; background: var(--surface); padding: 12px 0 0; margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.add-count { background: var(--accent); color: var(--accent-ink); border-radius: 999px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.line-mods { color: var(--accent) !important; }
.gift-pick { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-top: 8px; }
.toast { position: fixed; left: 50%; bottom: calc(88px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 10px 18px; border-radius: 10px; z-index: 95; font-weight: 500; box-shadow: 0 8px 24px rgb(0 0 0 / .2); max-width: calc(100% - 32px); }
.phone-box { white-space: nowrap; }
@media (max-width: 640px) {
  .promo-grid { grid-template-columns: 1fr; }
  .top-nav a { padding: 6px 10px; font-size: 14px; }
  .logo-text { font-size: 15px; }
  .phone-box { display: none; }
  .modal-product .modal-body { max-height: none; overflow: visible; }
  .modal-foot { bottom: calc(-24px - env(safe-area-inset-bottom, 0px)); padding-bottom: 4px; }
}

/* ---- Мои заказы ---- */
.lk-list { display: flex; flex-direction: column; gap: 14px; max-width: 760px; }
.lk-order { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: var(--surface); }
.lk-order.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.lk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.lk-head h3 { margin: 0; font-size: 18px; }
.lk-head b { font-size: 18px; white-space: nowrap; }
.lk-eta { font-family: var(--f-display); font-weight: 600; font-size: clamp(17px, 2.4vw, 22px); color: var(--ok); }
.lk-eta.wait { color: var(--muted); font-family: var(--f-body); font-size: 15px; }
.lk-cancel { color: var(--accent); font-weight: 600; }
.lk-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; counter-reset: s; }
.lk-steps li { font-size: 12px; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--line); text-align: center; }
.lk-steps li.done { border-color: var(--ok); color: var(--ink); }
.lk-steps li.now { border-color: var(--accent); color: var(--ink); font-weight: 700; }
.lk-items summary { cursor: pointer; color: var(--muted); font-size: 14px; }
.lk-items ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.lk-items li { display: flex; justify-content: space-between; gap: 12px; }
.lk-items small { color: var(--muted); }
.lk-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-left: 2px; }
.track-link { display: flex; flex-direction: column; gap: 6px; width: 100%; text-align: left; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .lk-steps li { font-size: 10px; } .top-nav a { padding: 6px 8px; font-size: 13px; } }
@media (max-width: 640px) {
  .top-row { flex-wrap: wrap; row-gap: 0; }
  .top-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 8px; scrollbar-width: none; }
  .top-nav a { white-space: nowrap; }
  .top-info { margin-left: auto; }
}

/* ---- Личный кабинет ---- */
.lk-guest { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 24px; align-items: start; }
.lk-auth { gap: 12px; }
.lk-why { background: var(--surface-2); border-radius: var(--r); padding: 18px 20px; }
.lk-why ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.lk-who { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.lk-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.lk-tabs button { border: 0; background: none; padding: 10px 16px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.lk-tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--accent); }
.lk-sub { font-size: 16px; margin: 22px 0 10px; }
.lk-history { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); max-width: 760px; }
.lk-hrow { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.lk-hrow:last-child { border-bottom: 0; }
.lk-hrow > div:first-child { min-width: 0; }
.lk-hrow .muted-s { overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.lk-hright { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.pill-s { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill-s.done, .pill-s.confirmed { background: var(--ok-soft); color: var(--ok); }
.pill-s.cancelled { background: var(--accent-soft); color: var(--accent); }
.btn-ghost.sm { padding: 5px 10px; font-size: 13px; }
.lk-addrs { display: flex; flex-direction: column; gap: 10px; max-width: 640px; margin-bottom: 12px; }
.lk-addr { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.lk-addr.def { border-color: var(--ok); }
.lk-addr-act { display: flex; gap: 10px; align-items: center; flex: none; }
.lk-pane .fieldset { max-width: 640px; }
.check-s { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.check-s input { width: 16px; height: 16px; accent-color: var(--accent); }
.addr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.addr-chip { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 6px 10px; font-size: 13px; text-align: left; }
.addr-chip.on { border-color: var(--accent); background: var(--accent-soft); }
.lk-hint { margin: 0; font-size: 13px; color: var(--muted); background: var(--surface-2); padding: 10px 12px; border-radius: 10px; }
.lk-hint a { color: var(--accent); font-weight: 600; }
@media (max-width: 760px) { .lk-guest { grid-template-columns: 1fr; } .lk-hrow { flex-direction: column; } .lk-hright { flex-direction: row; align-items: center; } }
