/* «Тепло» — витрина доставки.
   Идея: сайт живёт по времени суток. Фильм на главной идёт от утра в кофейне к вечеру у мангала,
   меню делится на «вечерний» тёмный мангал и «утреннюю» светлую кофейню. */


:root {
  --milk: #F7EEDF;
  --parchment: #EFE3CC;
  --paper: #FFFAF1;
  --ink: #2C3516;
  --ink-soft: #5E6145;
  --olive: #485B24;
  --olive-2: #6B723F;
  --sage: #989D5C;
  --sage-soft: #DFE0C3;
  --mustard: #E2AC32;
  --mustard-ink: #8A5D00;
  --ember: #D0612F;
  --coal: #1D2014;
  --coal-2: #282C1C;
  --coal-line: #3A3F29;
  --ember-soft: #F0B98E;
  --danger: #A8432A;
  --line: #E2D3B6;

  --f-display: "Nunito", "Trebuchet MS", system-ui, sans-serif;
  --f-body: "Golos Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --f-hand: "Marck Script", "Segoe Script", cursive;

  --r-s: 10px;
  --r-m: 18px;
  --r-l: 28px;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --wrap: 1240px;
  --header-h: 64px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 64px); }
body {
  margin: 0; background: var(--milk); color: var(--ink);
  font-family: var(--f-body); font-size: 16px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--mustard); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font-family: var(--f-display); font-weight: 800; font-size: 16px; letter-spacing: .01em;
  text-decoration: none; transition: transform .12s ease, background-color .15s ease;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--olive); color: var(--paper); }
.btn-primary:hover { background: #3C4C1D; }
.btn-ember { background: var(--ember); color: #FFF7EE; }
.btn-ember:hover { background: #B9521F; }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-light { background: var(--paper); color: var(--ink); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }

/* ---------- Шапка ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  padding-top: env(safe-area-inset-top, 0px);
  transition: background-color .25s ease, box-shadow .25s ease, color .25s ease;
  color: #FFF8EC;
}
.site-header.solid { background: var(--milk); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.site-header .bar { height: var(--header-h); display: flex; align-items: center; gap: 20px; }
.logo { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1; }
.logo b { font-family: var(--f-display); font-weight: 700; font-size: 27px; letter-spacing: .06em; }
.logo small { display: flex; align-items: center; gap: 5px; font-family: var(--f-display); font-weight: 600; font-size: 9.5px; letter-spacing: .14em; margin-top: 3px; }
.logo small svg { width: 11px; height: 11px; fill: currentColor; }
.logo small svg.flip { transform: scaleX(-1); }
.main-nav { display: flex; gap: 6px; margin-left: 12px; }
.main-nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; }
.main-nav a:hover { background: rgba(127, 127, 90, .16); }
.header-phone { margin-left: auto; text-decoration: none; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px 0 12px;
  border-radius: 999px; border: 0; cursor: pointer; background: var(--olive); color: var(--paper);
  font-weight: 700; font-variant-numeric: tabular-nums;
}
.cart-btn svg { width: 22px; height: 22px; }
.cart-btn .count { min-width: 22px; height: 22px; border-radius: 11px; background: var(--mustard); color: var(--coal); font-size: 13px; display: grid; place-items: center; padding: 0 6px; }
.cart-btn.bump { animation: bump .35s ease; }
@keyframes bump { 40% { transform: scale(1.08); } }
@media (max-width: 860px) {
  .main-nav { display: none; }
  .header-phone { display: none; }
  .cart-btn { margin-left: auto; }
  :root { --header-h: 58px; }
}

.announce { background: var(--mustard); color: var(--coal); }
.announce .wrap { padding-block: 12px; font-weight: 600; }
.closed-note { background: var(--parchment); color: var(--ink); border-bottom: 1px solid var(--line); }
.closed-note .wrap { padding-block: 12px; }

/* ---------- Навигация по меню ---------- */
.menu-nav {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 30;
  background: var(--milk); border-bottom: 1px solid var(--line);
}
.menu-nav .wrap { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.menu-nav .wrap::-webkit-scrollbar { display: none; }
.menu-nav a {
  flex: none; text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 8px 14px; border-radius: 999px;
  color: var(--ink-soft); white-space: nowrap;
}
.menu-nav a.group { color: var(--ink); font-family: var(--f-display); font-weight: 800; }
.menu-nav a.on { background: var(--ink); color: var(--paper); }
.menu-nav .sep { flex: none; width: 1px; height: 22px; background: var(--line); margin: 0 4px; }

/* ---------- Группы меню: вечер и утро ---------- */
.group-sec { padding-block: 64px 40px; }
.group-sec.evening { background: var(--coal); color: #F3EAD8; }
.group-sec.evening .muted { color: #B9B39A; }
.group-sec.morning { background: var(--milk); }
.group-sec.drinks { background: var(--parchment); }
.group-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 16px 32px; margin-bottom: 26px; }
.group-head h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(40px, 6vw, 76px); line-height: .95; margin: 0; letter-spacing: -.01em; }
.group-head .hand { font-family: var(--f-hand); font-size: clamp(22px, 2.4vw, 30px); margin: 0 0 6px; }
.evening .group-head .hand { color: var(--ember-soft); }
.morning .group-head .hand, .drinks .group-head .hand { color: var(--olive-2); }
.group-head p.sub { margin: 10px 0 0; max-width: 52ch; }
.muted { color: var(--ink-soft); }

.gift {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center;
  max-width: 420px; padding: 14px 18px; border-radius: var(--r-m);
  background: var(--coal-2); border: 1px solid var(--coal-line);
}
.gift svg { width: 42px; height: 42px; }
.gift b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 17px; color: #FFF3DF; }
.gift span { font-size: 14px; color: #CFC7AE; }

.cat { margin-top: 44px; }
.cat:first-of-type { margin-top: 18px; }
.cat-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 18px; }
.cat-title h3 { font-family: var(--f-display); font-weight: 800; font-size: 28px; margin: 0; }
.cat-title span { font-size: 14.5px; }

/* Сеты — крупные горизонтальные плитки */
.sets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.set-card {
  position: relative; display: grid; grid-template-rows: auto 1fr; border-radius: var(--r-l); overflow: hidden;
  background: var(--coal-2); border: 1px solid var(--coal-line); color: #F3EAD8; text-align: left; cursor: pointer; padding: 0;
}
.set-card .ph { aspect-ratio: 4 / 3; background: #2F3322; overflow: hidden; }
.set-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.set-card:hover .ph img { transform: scale(1.04); }
.set-card .body { padding: 18px 20px 20px; display: grid; gap: 8px; align-content: start; }
.set-card h4 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 23px; }
.set-card .for { font-family: var(--f-hand); font-size: 22px; color: var(--ember-soft); line-height: 1; }
.set-card ul { margin: 2px 0 0; padding: 0; list-style: none; font-size: 14px; color: #CFC7AE; display: grid; gap: 2px; }
.set-card .price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.set-card .price { font-family: var(--f-display); font-weight: 800; font-size: 24px; }
.set-card .old { font-size: 14px; color: #9A957F; text-decoration: line-through; margin-left: 8px; }
@media (max-width: 960px) { .sets { grid-template-columns: minmax(0, 1fr); } .set-card { grid-template-columns: 42% minmax(0, 1fr); grid-template-rows: none; } .set-card .ph { aspect-ratio: auto; height: 100%; } }
@media (max-width: 560px) { .set-card { grid-template-columns: minmax(0, 1fr); } .set-card .ph { aspect-ratio: 16 / 10; } }

/* Карточки товаров */
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 20px; }
@media (max-width: 1100px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; } }
.card { display: grid; grid-template-rows: auto 1fr; gap: 12px; min-width: 0; }
.card .ph {
  position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden;
  background: var(--parchment); border: 0; padding: 0; cursor: pointer;
}
.evening .card .ph { background: #2F3322; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.card .ph:hover img { transform: scale(1.04); }
.card .badges { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.badge.hit { background: var(--ember); color: #FFF7EE; }
.badge.new { background: var(--mustard); color: var(--coal); }
.badge.deal { background: var(--olive); color: var(--paper); }
.card .info { display: grid; grid-template-rows: auto auto 1fr auto; gap: 4px; min-width: 0; }
.card h4 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 18px; line-height: 1.2; }
.card .meta { font-size: 13.5px; }
.card .desc { align-self: start; max-height: 2.8em; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.card .price { font-family: var(--f-display); font-weight: 800; font-size: 19px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card .price small { font-family: var(--f-body); font-weight: 500; font-size: 13px; opacity: .75; }
.add {
  flex: none; min-height: 42px; min-width: 42px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--olive); color: var(--paper); font-weight: 700; font-size: 14.5px; display: inline-flex; align-items: center; gap: 6px;
}
.evening .add { background: var(--ember); color: #FFF7EE; }
.add svg { width: 18px; height: 18px; }
.add.in { background: var(--sage-soft); color: var(--ink); }
.evening .add.in { background: #3A3F29; color: #F3EAD8; }
.card.off .ph img { filter: grayscale(.85) opacity(.6); }
.card.off .add { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .6; cursor: not-allowed; }
@media (max-width: 760px) {
  .card h4 { font-size: 16px; }
  .card .desc { display: none; }
  .card .price { font-size: 17px; }
  .add { padding: 0 12px; }
  .add .label { display: none; }
}

/* Плейсхолдер вместо фото */
.ph .noimg { position: absolute; inset: 0; display: grid; place-items: center; padding: 14px; text-align: center; }
.ph .noimg span { font-family: var(--f-display); font-weight: 800; font-size: clamp(15px, 2vw, 20px); line-height: 1.15; color: var(--olive-2); }
.evening .ph .noimg span { color: #C9C2A6; }
.ph .noimg svg { position: absolute; width: 60%; height: 60%; opacity: .12; fill: currentColor; }

/* ---------- Подвал ---------- */
.site-footer { background: var(--coal); color: #D9D2BC; padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { margin: 0 0 10px; font-family: var(--f-display); font-weight: 800; font-size: 17px; color: #FFF3DF; }
.site-footer p { margin: 0 0 6px; font-size: 14.5px; }
.site-footer a { color: #FFF3DF; }
.site-footer .logo { color: #FFF3DF; align-items: flex-start; }
.site-footer .hand { font-family: var(--f-hand); font-size: 26px; color: var(--ember-soft); margin-top: 14px; }
.site-footer .legal { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--coal-line); font-size: 13px; color: #9A957F; display: flex; flex-wrap: wrap; gap: 8px 22px; }
@media (max-width: 860px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Плавающая корзина на телефоне ---------- */
.float-cart {
  position: fixed; left: var(--gutter); right: var(--gutter-r); bottom: max(14px, env(safe-area-inset-bottom, 0px)); z-index: 35;
  display: none; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px;
  border-radius: 999px; border: 0; cursor: pointer; background: var(--olive); color: var(--paper);
  font-family: var(--f-display); font-weight: 800; font-size: 16px; box-shadow: 0 10px 30px rgba(29, 32, 20, .35);
}
@media (max-width: 760px) { .float-cart.show { display: flex; } }

/* ---------- Оверлеи: товар, корзина, оформление ---------- */
.overlay { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: flex-end; }
.overlay .scrim { position: absolute; inset: 0; background: rgba(23, 25, 15, .55); animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.panel {
  position: relative; width: min(520px, 100%); height: 100%; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; animation: slide .28s cubic-bezier(.2, .8, .2, 1);
  padding-top: env(safe-area-inset-top, 0px);
}
@keyframes slide { from { transform: translateX(40px); opacity: .4; } }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px var(--gutter-r) 12px var(--gutter); border-bottom: 1px solid var(--line); }
.panel-head h2 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 24px; }
.panel-body { flex: 1; overflow-y: auto; padding: 16px var(--gutter-r) 24px var(--gutter); overscroll-behavior: contain; }
.panel-foot { padding: 14px var(--gutter-r) max(14px, env(safe-area-inset-bottom, 0px)) var(--gutter); border-top: 1px solid var(--line); background: var(--paper); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--parchment); cursor: pointer; display: grid; place-items: center; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }

/* Окно товара: на телефоне — снизу */
.overlay.center { align-items: center; justify-content: center; }
.product-panel {
  position: relative; width: min(860px, calc(100% - 32px)); max-height: min(92vh, 760px); background: var(--paper); border-radius: var(--r-l);
  overflow: hidden; display: grid; grid-template-columns: 1fr 1fr; animation: rise .28s cubic-bezier(.2, .8, .2, 1);
}
@keyframes rise { from { transform: translateY(24px); opacity: .4; } }
.product-panel .ph { position: relative; background: var(--parchment); min-height: 100%; }
.product-panel .ph img { width: 100%; height: 100%; object-fit: cover; }
.product-panel .content { display: flex; flex-direction: column; min-height: 0; max-height: min(92vh, 760px); }
.product-panel .scroll { flex: 1; overflow-y: auto; padding: 26px 26px 12px; }
.product-panel h2 { margin: 0 44px 6px 0; font-family: var(--f-display); font-weight: 800; font-size: 30px; line-height: 1.1; }
.product-panel .close { position: absolute; right: 14px; top: 14px; z-index: 2; background: rgba(255, 250, 241, .92); }
.product-panel .desc { margin: 8px 0 0; color: var(--ink-soft); }
.product-panel .comp { margin: 12px 0 0; padding-left: 18px; color: var(--ink-soft); }
.product-panel .foot { padding: 14px 26px max(18px, env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: flex; gap: 12px; align-items: center; }
.product-panel .foot .btn { flex: 1; }
@media (max-width: 760px) {
  .overlay.center { align-items: flex-end; }
  .product-panel { width: 100%; max-height: 94vh; border-radius: var(--r-l) var(--r-l) 0 0; grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); animation: up .3s cubic-bezier(.2, .8, .2, 1); }
  @keyframes up { from { transform: translateY(60px); } }
  .product-panel .ph { aspect-ratio: 16 / 10; min-height: 0; }
  .product-panel .content { max-height: none; min-height: 0; }
  .product-panel .scroll { padding: 18px 18px 8px; }
  .product-panel h2 { font-size: 24px; }
  .product-panel .foot { padding-inline: 18px; }
}

.field-group { margin-top: 22px; }
.field-group > .label { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; margin-bottom: 10px; }
.field-group > .label small { font-weight: 500; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper);
  cursor: pointer; font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
}
.chip small { font-weight: 500; color: var(--ink-soft); }
.chip[aria-pressed="true"], .chip[aria-checked="true"] { border-color: var(--olive); background: var(--olive); color: var(--paper); }
.chip[aria-pressed="true"] small, .chip[aria-checked="true"] small { color: #E6E3C8; }

.stepper { display: inline-flex; align-items: center; border-radius: 999px; background: var(--parchment); }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; border-radius: 50%; cursor: pointer; font-size: 22px; font-weight: 700; display: grid; place-items: center; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper output { min-width: 64px; text-align: center; font-weight: 800; font-family: var(--f-display); font-variant-numeric: tabular-nums; }
.stepper.small button { width: 36px; height: 36px; font-size: 18px; }
.stepper.small output { min-width: 44px; font-size: 15px; }

.weight-box { display: grid; gap: 12px; padding: 16px; border-radius: var(--r-m); background: var(--milk); }
.weight-box .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.weight-box .gift-note { font-size: 14px; color: var(--mustard-ink); }

/* Корзина */
.cart-line { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line .thumb { width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: var(--parchment); position: relative; }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .name { font-weight: 700; line-height: 1.25; }
.cart-line .opts { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }
.cart-line .controls { display: flex; align-items: center; gap: 10px; margin-top: 8px; flex-wrap: wrap; }
.cart-line .sum { font-family: var(--f-display); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cart-line .err { color: var(--danger); font-size: 13.5px; margin-top: 4px; }
.link-btn { border: 0; background: none; padding: 4px 0; cursor: pointer; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; }

.gift-box { margin-top: 18px; padding: 16px; border-radius: var(--r-m); background: #FBF0D5; border: 1px solid #EED9A6; }
.gift-box h3 { margin: 0 0 4px; font-family: var(--f-display); font-weight: 800; font-size: 18px; }
.gift-box p { margin: 0; font-size: 14px; color: var(--mustard-ink); }
.gift-box .sauce { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; }
.gift-box .hint { margin-top: 10px; font-size: 13.5px; }

.meter { margin-top: 18px; }
.meter .track { height: 6px; border-radius: 3px; background: var(--parchment); overflow: hidden; }
.meter .fill { height: 100%; background: var(--olive); border-radius: 3px; transition: width .3s ease; }
.meter p { margin: 6px 0 0; font-size: 14px; color: var(--ink-soft); }

.totals { display: grid; gap: 6px; margin-top: 18px; }
.totals .row { display: flex; justify-content: space-between; gap: 12px; font-variant-numeric: tabular-nums; }
.totals .row.total { font-family: var(--f-display); font-weight: 800; font-size: 22px; padding-top: 8px; border-top: 1px solid var(--line); margin-top: 4px; }
.totals .row.disc { color: var(--olive); }

.empty { text-align: center; padding: 48px 12px; }
.empty .hand { font-family: var(--f-hand); font-size: 28px; color: var(--olive-2); margin: 0; }
.empty p { color: var(--ink-soft); }

/* Оформление */
.form { display: grid; gap: 18px; }
.form fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 12px; }
.form legend { font-family: var(--f-display); font-weight: 800; font-size: 19px; margin-bottom: 4px; padding: 0; }
.input { display: grid; gap: 6px; }
.input label { font-size: 14px; font-weight: 600; color: var(--ink-soft); }
.input input, .input textarea, .input select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #FFFFFF;
  font: inherit; color: var(--ink);
}
.input textarea { min-height: 84px; resize: vertical; }
.input input:focus, .input textarea:focus, .input select:focus { border-color: var(--olive); outline: none; box-shadow: 0 0 0 3px rgba(72, 91, 36, .18); }
.input.bad input, .input.bad textarea { border-color: var(--danger); }
.input .msg { font-size: 13.5px; color: var(--danger); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--parchment); }
.seg button { min-height: 44px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--paper); box-shadow: 0 1px 4px rgba(44, 53, 22, .15); }
.radio-list { display: grid; gap: 8px; }
.radio {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--line);
  background: #FFFFFF; cursor: pointer; text-align: left; width: 100%;
}
.radio .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--sage); flex: none; display: grid; place-items: center; }
.radio[aria-checked="true"] { border-color: var(--olive); }
.radio[aria-checked="true"] .dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--olive); }
.radio small { display: block; color: var(--ink-soft); font-size: 13.5px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; max-height: 196px; overflow-y: auto; padding: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.consent input { width: 22px; height: 22px; margin: 0; accent-color: var(--olive); flex: none; }
.form-error { padding: 12px 14px; border-radius: 12px; background: #F6DED6; color: #6E2A17; font-size: 14.5px; }
.note { font-size: 13.5px; color: var(--ink-soft); }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.success { text-align: center; padding: 28px 8px; }
.success .big { font-family: var(--f-display); font-weight: 800; font-size: 40px; margin: 8px 0; }
.success .hand { font-family: var(--f-hand); font-size: 30px; color: var(--olive-2); margin: 0; }
.success p { color: var(--ink-soft); }

/* Тосты */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: max(86px, calc(env(safe-area-inset-bottom, 0px) + 80px)); z-index: 80; display: grid; gap: 8px; width: min(440px, calc(100% - 32px)); }
.toast { background: var(--ink); color: var(--paper); padding: 12px 16px; border-radius: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); animation: rise .25s ease; }
.toast.err { background: var(--danger); }
@media (min-width: 761px) { .toasts { left: var(--gutter); transform: none; bottom: 24px; width: min(380px, calc(100% - 32px)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* шапка группы на телефоне: подарок под текстом, а не сбоку (иначе текст сжимается в колонку по слову) */
@media (max-width: 760px) {
  .group-head { grid-template-columns: minmax(0, 1fr); }
  .gift { max-width: none; }
}

/* ===================== Главная: одно фото, условия, сразу меню ===================== */
.hero { background: var(--coal); }
.hero-media { position: relative; height: 62vh; height: 62svh; min-height: 420px; max-height: 620px; overflow: hidden; background: var(--coal); }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hero-in .6s ease both; }
@keyframes hero-in { from { opacity: 0; } to { opacity: 1; } }
.hero-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(to top, rgba(20, 22, 12, .88) 0%, rgba(20, 22, 12, .45) 40%, rgba(20, 22, 12, 0) 68%), linear-gradient(to bottom, rgba(20, 22, 12, .5) 0%, rgba(20, 22, 12, 0) 22%); }
.hero-cap { position: absolute; left: 0; right: 0; bottom: 0; padding-bottom: 26px; color: #FFF8EC; }
.hero-cap .hand { font-family: var(--f-hand); font-size: clamp(22px, 2.8vw, 34px); color: var(--ember-soft); margin: 0 0 4px; text-shadow: 0 1px 12px rgba(0, 0, 0, .55); }
.hero-cap h1 { font-family: var(--f-display); font-weight: 800; margin: 0; max-width: 16ch; font-size: clamp(36px, 6vw, 80px); line-height: .98; letter-spacing: -.01em; text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero-status { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(20, 22, 12, .55); font-size: 14px; font-weight: 600; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hero-status i { width: 9px; height: 9px; border-radius: 50%; background: #8FBF4A; box-shadow: 0 0 0 3px rgba(143, 191, 74, .25); flex: none; }
.hero-status.closed i { background: var(--mustard); box-shadow: 0 0 0 3px rgba(226, 172, 50, .25); }
.hero-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding-block: 16px 20px; color: #F3EAD8; }
.hero-terms { margin: 0; font-size: 15px; color: #E4DCC6; max-width: 60ch; }
.hero-terms b { color: #FFF8EC; font-weight: 700; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-actions .btn-primary { background: var(--paper); color: var(--ink); }
.hero-actions .btn-primary:hover { background: #fff; }
.hero-actions .btn-ghost { color: #F3EAD8; box-shadow: inset 0 0 0 1.5px rgba(243, 234, 216, .55); }
.hero-actions .btn-ghost:hover { box-shadow: inset 0 0 0 2px #F3EAD8; }

/* Кнопка звонка в шапке — на телефоне вместо номера */
.call-btn { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.call-btn svg { width: 21px; height: 21px; }

/* Повторить прошлый заказ */
.repeat-wrap { padding-top: 16px; }
.repeat { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px 14px; padding: 12px 12px 12px 14px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); }
.repeat > svg { width: 26px; height: 26px; color: var(--olive); }
.repeat b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 15.5px; line-height: 1.2; }
.repeat span { display: block; font-size: 13.5px; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.repeat .btn { min-height: 42px; padding: 0 16px; font-size: 15px; }

/* Лента «Чаще всего заказывают» */
.hits { background: var(--milk); padding: 20px 0 6px; }
.hits h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 12px; }
.hits-row { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 2px max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))) 18px; scroll-padding-inline: var(--gutter); }
.hits-row::-webkit-scrollbar { display: none; }
.hit-card { flex: 0 0 158px; scroll-snap-align: start; display: grid; gap: 8px; align-content: start; }
.hit-card .ph { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: var(--r-m); overflow: hidden; background: var(--parchment); border: 0; padding: 0; cursor: pointer; }
.hit-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.hit-card h4 { margin: 0; font-family: var(--f-display); font-weight: 800; font-size: 15.5px; line-height: 1.2; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hit-card .buy { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.hit-card .price { font-family: var(--f-display); font-weight: 800; font-size: 16.5px; white-space: nowrap; }
.hit-card .price small { font-family: var(--f-body); font-weight: 500; font-size: 12px; opacity: .75; }
.add.add-sm { min-height: 38px; min-width: 38px; padding: 0; justify-content: center; }
.add.add-sm svg { width: 18px; height: 18px; }

/* Кто мы */
.about { background: var(--parchment); padding-block: 56px; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px 48px; align-items: center; }
.about-ph { border-radius: var(--r-l); overflow: hidden; aspect-ratio: 4 / 3; background: var(--sage-soft); }
.about-ph img { width: 100%; height: 100%; object-fit: cover; }
.about .hand { font-family: var(--f-hand); font-size: clamp(22px, 2.4vw, 30px); color: var(--olive-2); margin: 0 0 4px; }
.about h2 { font-family: var(--f-display); font-weight: 800; font-size: clamp(30px, 4vw, 52px); line-height: 1; margin: 0 0 14px; }
.about p { margin: 0 0 18px; max-width: 54ch; }
.facts { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; }
.facts b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 18px; line-height: 1.15; }
.facts span { font-size: 14px; color: var(--ink-soft); }
.about-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* Корзина: добавить к заказу */
.upsell { margin: 6px 0 14px; }
.upsell h3 { font-family: var(--f-display); font-weight: 800; font-size: 17px; margin: 0 0 10px; }
.upsell-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.upsell-row::-webkit-scrollbar { display: none; }
.up-card { flex: 0 0 116px; display: grid; gap: 6px; align-content: start; }
.up-card .ph { position: relative; width: 100%; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--parchment); }
.up-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.up-card .name { font-weight: 700; font-size: 13.5px; line-height: 1.2; min-height: 2.4em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.up-card .buy { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-weight: 800; font-size: 14.5px; }
.up-card .add { min-height: 34px; min-width: 34px; padding: 0; justify-content: center; }
.up-card .add svg { width: 16px; height: 16px; }

/* Вес: «≈ на N человек» под пресетом */
.chip[data-preset] { flex-direction: column; justify-content: center; gap: 0; min-height: 52px; padding: 4px 16px; line-height: 1.15; }
.chip .per { display: block; font-size: 12px; font-weight: 600; opacity: .72; }

@media (max-width: 860px) {
  .call-btn { display: inline-flex; margin-left: auto; }
  .call-btn + .cart-btn { margin-left: 8px; }
}
@media (max-width: 760px) {
  .about-grid { grid-template-columns: minmax(0, 1fr); }
  .about { padding-block: 40px; }
}
@media (max-width: 700px) {
  .hero-media { height: 46svh; min-height: 300px; max-height: 440px; }
  .hero-cap { padding-bottom: 16px; }
  .hero-cap h1 { font-size: clamp(32px, 9.4vw, 44px); }
  .hero-status { margin-top: 10px; font-size: 13px; }
  .hero-bar { padding-block: 12px 16px; gap: 12px; }
  .hero-terms { font-size: 13.5px; line-height: 1.45; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: 8px; }
  .hero-actions .btn { min-height: 50px; padding: 0 10px; font-size: 15px; }
  .group-sec { padding-block: 34px 28px; }
  .group-head h2 { font-size: 34px; }
  .group-head .hand { font-size: 21px; margin-bottom: 2px; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* ---------- «Загляните к нам»: фото кафе кружками, как истории ---------- */
html.locked { overflow: hidden; }
.about-stories { margin-bottom: 26px; }
.about-stories .hand { margin-bottom: 10px; }
.stories { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 6px; margin-inline: -2px; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: 0 0 auto; display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.story__ring { width: 76px; height: 76px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--ember), #E2AC32, var(--olive), var(--ember)); display: block; }
.story__ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--parchment); display: block; background: var(--paper); }
.story__name { font-size: 13px; font-weight: 700; }
.story:focus-visible .story__ring { outline: 3px solid var(--olive); outline-offset: 2px; }
.about-ph { cursor: zoom-in; }
.story-view { position: fixed; inset: 0; z-index: 90; background: #0e0f0a; display: grid; place-items: center; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.story-view { overflow: hidden; }
.story-view__bg { position: absolute; inset: -40px; background: center / cover no-repeat; filter: blur(28px) brightness(.55) saturate(1.15); transform: scale(1.1); }
.story-view__img { position: relative; width: 100%; height: 100%; max-width: 560px; object-fit: contain; display: block; }.story-view__bars { position: absolute; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(540px, calc(100% - 20px)); display: flex; gap: 4px; z-index: 2; }
.story-view__bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .35); overflow: hidden; }
.story-view__bars b { display: block; height: 100%; width: 0; background: #fff; }
.story-view__head { position: absolute; top: calc(22px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(540px, calc(100% - 20px)); display: flex; align-items: center; gap: 10px; z-index: 2; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); }
.story-view__brand { font-family: var(--f-display); font-weight: 900; letter-spacing: .06em; }
.story-view__name { font-weight: 600; opacity: .9; flex: 1; }
.story-view__close { width: 44px; height: 44px; border: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; }
.story-view__close svg { width: 26px; height: 26px; }
.story-view__text { font-family: var(--f-hand); position: absolute; bottom: calc(28px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: min(520px, calc(100% - 40px)); margin: 0; color: #fff; font-size: 30px; text-align: center; text-shadow: 0 2px 10px rgba(0, 0, 0, .6); z-index: 2; pointer-events: none; }
.story-view__nav { position: absolute; top: 80px; bottom: 90px; width: 40%; border: 0; background: none; cursor: pointer; z-index: 1; }
.story-view__nav.prev { left: 0; }
.story-view__nav.next { right: 0; width: 60%; }

/* ===================== Телефон как приложение =====================
   Нижняя панель вкладок (Меню · Кафе · Заказы · Корзина), экраны вместо одной длинной страницы,
   окна выезжают снизу. Верх приложения живёт по времени суток: утром светлый, вечером — угольный, как у мангала. */
.app-screen { display: none; }
.about .screen-head, .install-card-wrap { display: none; }
.dock { display: none; }
.orders-link { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 999px; white-space: nowrap; }
.orders-link:hover { background: rgba(127, 127, 90, .16); }
.screen-title { font-family: var(--f-display); font-weight: 800; font-size: 34px; line-height: 1.05; letter-spacing: -.01em; margin: 0; }

/* Заказы с этого телефона (и на компьютере в окне) */
.order-tile { display: grid; gap: 8px; padding: 16px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); }
.order-tile + .order-tile { margin-top: 12px; }
.order-tile .top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-tile .no { font-family: var(--f-display); font-weight: 800; font-size: 20px; }
.order-tile .when { font-size: 14px; color: var(--ink-soft); }
.order-tile .what { font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-tile .bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 4px; }
.order-tile .sum { font-family: var(--f-display); font-weight: 800; font-size: 19px; }
.order-tile .acts { display: flex; gap: 8px; }
.order-tile .acts .btn { min-height: 40px; padding: 0 14px; font-size: 14.5px; }
.st { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; background: var(--parchment); color: var(--ink); white-space: nowrap; }
.st i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st.live { background: #FBE6C6; color: #8A4A12; }
.st.live i { animation: pulse 1.6s ease-in-out infinite; }
.st.done { background: var(--sage-soft); color: var(--olive); }
.st.cancelled { background: #F3DCD4; color: #7A2E1A; }
@keyframes pulse { 50% { opacity: .25; } }
.orders-empty { text-align: center; padding: 40px 8px; }
.orders-empty .hand { font-family: var(--f-hand); font-size: 28px; color: var(--olive-2); margin: 0 0 6px; }
.orders-empty p { color: var(--ink-soft); margin: 0 0 18px; }

/* Установка на экран «Домой» */
.install { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px 40px 12px 12px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); margin-top: 14px; }
.install .app-ico { width: 46px; height: 46px; border-radius: 12px; overflow: hidden; flex: none; box-shadow: 0 2px 8px rgba(29, 32, 20, .2); }
.install .app-ico img { width: 100%; height: 100%; }
.install b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 16px; line-height: 1.2; }
.install span { display: block; font-size: 13.5px; color: var(--ink-soft); line-height: 1.35; }
.install .btn { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.install .x { position: absolute; right: 2px; top: 50%; margin-top: -18px; width: 36px; height: 36px; border: 0; background: none; color: var(--ink-soft); cursor: pointer; display: grid; place-items: center; }
.install .x svg { width: 16px; height: 16px; }
.install .x-wrap { display: contents; }
.install-big { padding: 18px; border-radius: var(--r-l); background: var(--olive); color: var(--paper); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.install-big .app-ico { width: 58px; height: 58px; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.install-big .app-ico img { width: 100%; height: 100%; }
.install-big b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 18px; }
.install-big span { display: block; font-size: 14px; color: #E6E3C8; margin-top: 2px; }
.install-big .btn { grid-column: 1 / -1; background: var(--paper); color: var(--ink); }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 12px; counter-reset: st; }
.steps li { counter-increment: st; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 16px; }
.steps li::before { content: counter(st); width: 34px; height: 34px; border-radius: 50%; background: var(--parchment); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; }
.steps svg { width: 22px; height: 22px; vertical-align: -5px; color: #2F7BF6; }

@media (max-width: 760px) {
  :root { --dock-h: 64px; --dock-gap: max(10px, env(safe-area-inset-bottom, 0px)); }
  html { -webkit-tap-highlight-color: transparent; scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 60px); }
  body { padding-bottom: calc(var(--dock-h) + var(--dock-gap) + 18px); }
  .dock-tab, .menu-nav a, .chip, .btn, .add, .story { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }

  /* шапка: логотип и звонок; корзина живёт в нижней панели */
  .site-header .cart-btn, .float-cart, .float-cart.show, .orders-link { display: none !important; }
  .call-btn { margin-left: auto; }

  /* нижняя панель вкладок — парящая, полупрозрачная, как в iOS */
  .dock {
    position: fixed; z-index: 50; left: 12px; right: 12px; bottom: var(--dock-gap);
    display: grid; grid-template-columns: 1fr 1fr 1fr 1.25fr; align-items: center; gap: 4px;
    height: var(--dock-h); padding: 6px; border-radius: 999px;
    background: rgba(255, 250, 241, .84); -webkit-backdrop-filter: blur(18px) saturate(1.6); backdrop-filter: blur(18px) saturate(1.6);
    box-shadow: 0 10px 30px rgba(29, 32, 20, .2), inset 0 0 0 1px rgba(44, 53, 22, .08);
  }
  .dock-tab {
    position: relative; height: 100%; border: 0; border-radius: 999px; background: transparent; color: var(--ink-soft);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    text-decoration: none; font-size: 11.5px; font-weight: 700; cursor: pointer; padding: 0 4px; min-width: 0;
    transition: background-color .2s ease, color .2s ease;
  }
  .dock-tab svg { width: 24px; height: 24px; flex: none; }
  .dock-tab span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
  .dock-tab.on { color: var(--olive); background: rgba(72, 91, 36, .12); }
  .dock-dot { position: absolute; top: 7px; left: calc(50% + 8px); width: 9px; height: 9px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 2px var(--paper); }
  /* корзина с товарами — заполненная капсула с суммой */
  .dock-cart.full { flex-direction: row; gap: 7px; background: var(--olive); color: var(--paper); font-size: 15px; font-family: var(--f-display); font-weight: 800; padding: 0 10px 0 8px; }
  .dock-cart.full svg { width: 22px; height: 22px; }
  .dock-cart.full span { overflow: visible; }
  .dock-count { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--mustard); color: var(--coal); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
  .dock-cart.full .dock-count { top: 6px; left: 22px; box-shadow: 0 0 0 2px var(--olive); }
  body.is-evening .dock-cart.full .dock-count { box-shadow: 0 0 0 2px var(--ember); }
  .dock-cart.bump { animation: bump .35s ease; }
  .toasts { bottom: calc(var(--dock-h) + var(--dock-gap) + 14px); }

  /* вечером верх приложения и панель — угольные, как зона мангала */
  body.is-evening .dock { background: rgba(29, 32, 20, .86); box-shadow: 0 10px 30px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(255, 248, 236, .08); }
  body.is-evening .dock-tab { color: #B9B39A; }
  body.is-evening .dock-tab.on { color: #FFF3DF; background: rgba(255, 243, 223, .12); }
  body.is-evening .dock-cart.full { background: var(--ember); color: #FFF7EE; }
  body.is-evening .dock-dot { box-shadow: 0 0 0 2px var(--coal); }
  body.is-evening .site-header.solid { background: var(--coal); color: #FFF3DF; box-shadow: 0 1px 0 var(--coal-line); }

  /* первый экран: фото со скруглением снизу, как карточка приложения */
  .hero-media { border-radius: 0 0 26px 26px; }
  .hero { background: transparent; }
  .hero-bar { background: var(--coal); margin-top: -26px; padding-top: 38px; border-radius: 0 0 26px 26px; }
  .hero-media { position: relative; z-index: 1; }

  /* экраны */
  body[data-screen="menu"] #about, body[data-screen="menu"] .site-footer { display: none; }
  body[data-screen="cafe"] main > :not(#about), body[data-screen="orders"] main > :not(#ordersScreen), body[data-screen="orders"] .site-footer { display: none; }
  body[data-screen="orders"] #ordersScreen { display: block; }
  body[data-screen="cafe"] .about .screen-head { display: block; }
  body[data-screen="cafe"] .install-card-wrap:not([hidden]) { display: block; margin-bottom: 22px; }
  body[data-screen="cafe"] .site-footer { padding-top: 32px; }
  .app-screen, body[data-screen="cafe"] .about { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 14px); min-height: 70vh; }
  .orders-screen .screen-title { margin-bottom: 18px; }
  .about .screen-head { margin-bottom: 18px; }
  .about .screen-head p { margin: 4px 0 0; }

  /* окна выезжают снизу, их можно смахнуть вниз */
  .overlay { align-items: flex-end; }
  .panel {
    width: 100%; height: calc(100% - env(safe-area-inset-top, 0px) - 10px); padding-top: 0;
    border-radius: 24px 24px 0 0; animation: up .32s cubic-bezier(.2, .8, .2, 1); overflow: hidden;
  }
  @keyframes up { from { transform: translateY(70px); opacity: .6; } }
  .panel-head { padding-top: 22px; position: relative; }
  .grab { position: absolute; left: 50%; top: 8px; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(44, 53, 22, .22); z-index: 3; }
  .product-panel .grab { background: rgba(255, 250, 241, .85); box-shadow: 0 1px 4px rgba(0, 0, 0, .25); }
  .overlay .sheet-drag { transition: none !important; animation: none !important; }
  .overlay .sheet-back { transition: transform .22s ease; }
}
@media (min-width: 761px) { .grab { display: none; } }
/* запущено с экрана «Домой»: без подсказок установки */
.standalone .install-wrap, .standalone .install-card-wrap { display: none !important; }
/* iPhone, значок на экране «Домой» (iOS 26, статус-бар «black-translucent»): пока страница не выше экрана,
   iOS укорачивает окно на высоту статус-бара, и нижняя панель всплывает на ~60 px (WebKit 301108) — так было на пустых
   «Заказах». Делаем документ чуть выше «укороченного» окна: iOS отдаёт весь экран; min(100lvh) не даёт лишней прокрутки. */
html.standalone { min-height: min(100lvh, calc(100% + max(1px, env(safe-area-inset-top, 0px)))); }
@media (display-mode: standalone) {
  html { min-height: min(100lvh, calc(100% + max(1px, env(safe-area-inset-top, 0px)))); }
}
.btn-ghost-dark { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost-dark:hover { box-shadow: inset 0 0 0 2px var(--sage); }
@media (max-width: 760px) { .panel.install-sheet { height: auto; } }
.inst-lead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; margin-bottom: 16px; }
.inst-lead .app-ico { width: 58px; height: 58px; border-radius: 14px; overflow: hidden; box-shadow: 0 3px 12px rgba(29, 32, 20, .22); }
.inst-lead .app-ico img { width: 100%; height: 100%; display: block; }
.inst-lead p { margin: 0; font-size: 15px; line-height: 1.4; color: var(--ink-soft); }
.install-sheet .steps { margin-bottom: 4px; }
.install-sheet .dots { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--parchment); font-size: 18px; line-height: 1; vertical-align: -3px; }
.inst-btn { width: 100%; margin-top: 14px; min-height: 52px; font-size: 16.5px; }
.inst-btn + .inst-btn { margin-top: 8px; }
.inst-note { font-size: 14px; margin: 10px 0 0; }
.inst-warn { margin: 0 0 10px; padding: 12px 14px; border-radius: var(--r-s); background: var(--parchment); font-size: 15px; line-height: 1.4; }
.inst-done { margin: 0; padding: 14px 16px; border-radius: var(--r-m); background: var(--sage-soft); font-size: 16px; line-height: 1.4; }

/* ===================== Бонусы: карта гостя ===================== */
.bonus-screen .screen-title { margin-bottom: 18px; }
.bcard { border-radius: 24px; padding: 20px; margin-bottom: 14px; }
.bcard h2 { font-family: var(--f-display); font-weight: 800; font-size: 24px; line-height: 1.15; margin: 0 0 10px; }
.bcard .hand { font-family: var(--f-hand); font-size: 24px; margin: 0 0 4px; }
.bcard--promo { background: var(--coal); color: #F3EAD8; }
.bcard--promo .hand { color: var(--ember-soft); }
.perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.perks li { position: relative; padding-left: 26px; font-size: 15px; color: #D9D2BC; }
.perks li::before { content: ""; position: absolute; left: 2px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--mustard); box-shadow: 0 0 0 3px rgba(226, 172, 50, .25); }
.perks b { color: #FFF3DF; }
.bjoin { padding: 2px 0 8px; }
.bjoin select { width: 100%; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font: inherit; color: var(--ink); }
.bcard--code { background: var(--paper); border: 1px solid var(--line); text-align: center; }
.bcard--code .hand { color: var(--olive-2); }
.bcode { font-family: var(--f-display); font-weight: 800; font-size: 54px; letter-spacing: .06em; margin: 8px 0 12px; color: var(--olive); }
.bcard--code p { margin: 0 0 8px; color: var(--ink-soft); }
/* сама карта — как настоящая карта в кошельке */
.bcard--live {
  position: relative; overflow: hidden; color: #FFF8EC; aspect-ratio: 1.6; display: grid; grid-template-rows: auto 1fr auto auto; gap: 6px;
  background: radial-gradient(120% 90% at 100% 0%, #6B723F 0%, rgba(107, 114, 63, 0) 60%), linear-gradient(150deg, #485B24 0%, #2C3516 70%, #1D2014 100%);
  box-shadow: 0 18px 40px rgba(29, 32, 20, .28);
}
.bcard--live::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; border: 26px solid rgba(255, 243, 223, .06); }
.bcard__top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.bcard__brand { font-family: var(--f-display); font-weight: 700; letter-spacing: .08em; font-size: 20px; }
.bcard__lvl { font-size: 13px; font-weight: 800; padding: 5px 10px; border-radius: 999px; background: var(--mustard); color: var(--coal); }
.bcard__pts { align-self: center; font-family: var(--f-display); font-weight: 800; font-size: clamp(48px, 15vw, 64px); line-height: 1; }
.bcard__pts small { font-size: 18px; font-weight: 700; margin-left: 8px; color: #E6E3C8; }
.bcard__name { display: flex; justify-content: space-between; gap: 10px; font-weight: 700; font-size: 15px; }
.bcard__name span { color: #D7DDBE; font-weight: 500; }
.bcard__next { font-size: 13px; color: #D7DDBE; position: relative; z-index: 1; }
.bcard__next .bar { height: 6px; border-radius: 3px; background: rgba(255, 248, 236, .18); overflow: hidden; margin-bottom: 6px; }
.bcard__next .bar i { display: block; height: 100%; border-radius: 3px; background: var(--mustard); }
.bnote { margin: -4px 0 14px; text-align: center; }
.bstamps { padding: 16px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); margin-bottom: 12px; }
.bstamps__head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.bstamps__head b { font-family: var(--f-display); font-weight: 800; font-size: 18px; }
.bstamps__head span { font-size: 14px; color: var(--ink-soft); }
.bstamps__row { display: flex; gap: 8px; flex-wrap: wrap; }
.bstamps__row i { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--parchment); color: #C9B992; }
.bstamps__row i svg { width: 22px; height: 22px; }
.bstamps__row i.on { background: #926F4F; color: #FFF3DF; }
.bstamps__row i.gift { background: transparent; border: 2px dashed #D8C49A; color: #C9B992; }
.bstamps__row i.gift.on { border: 0; background: var(--mustard); color: var(--coal); animation: bump .5s ease 2; }
.binvite { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 16px; border-radius: var(--r-m); background: #FBF0D5; border: 1px solid #EED9A6; margin-bottom: 18px; }
.binvite b { display: block; font-family: var(--f-display); font-weight: 800; font-size: 17px; }
.binvite span { font-size: 14px; color: var(--mustard-ink); }
.binvite .btn { flex: none; min-height: 42px; padding: 0 16px; font-size: 15px; }
.bh { font-family: var(--f-display); font-weight: 800; font-size: 19px; margin: 18px 0 8px; }
.bhist { list-style: none; margin: 0 0 8px; padding: 0; }
.bhist li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bhist small { display: block; font-size: 13px; color: var(--ink-soft); }
.bhist b { font-family: var(--f-display); font-weight: 800; white-space: nowrap; color: var(--olive); }
.bhist b.minus { color: var(--danger); }
.bonus-screen .link-btn, .panel .link-btn[data-bonus-leave] { display: block; margin: 16px auto 0; }
@media (max-width: 760px) {
  .dock.has-bonus { grid-template-columns: 1fr 1fr 1fr 1fr 1.25fr; }
  .dock.has-bonus .dock-tab { font-size: 11px; }
  body[data-screen="bonus"] main > :not(#bonusScreen), body[data-screen="bonus"] .site-footer { display: none; }
  body[data-screen="bonus"] #bonusScreen { display: block; }
}
/* код для кассы на карте: списать баллы, забрать подарок */
.bpay { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 16px; margin: 12px 0; border-radius: var(--r-m); background: #FFF3DF; border: 1.5px dashed var(--mustard); }
.bpay > div:first-child { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bpay b { font-size: 15px; }
.bpay span { font-size: 13px; color: var(--ink-soft); }
.bpay__code { font-family: var(--f-display); font-weight: 800; font-size: 32px; letter-spacing: .05em; color: var(--olive); white-space: nowrap; }
.totals .row.pts { align-items: center; color: var(--olive); cursor: pointer; }
.totals .row.pts input { width: 18px; height: 18px; margin: 0 6px 0 0; vertical-align: -3px; accent-color: var(--olive); }
.totals .row.pts small { color: var(--ink-soft); margin-left: 4px; }
.toasts.top { bottom: auto; top: max(14px, env(safe-area-inset-top, 0px)); }
@media (max-width: 360px) {
  .product-panel .foot { gap: 8px; padding-inline: 14px; }
  .product-panel .foot .stepper { flex: none; }
  .product-panel .foot .btn { white-space: nowrap; font-size: 15px; padding-inline: 12px; }
}
@media (max-width: 360px) {
  .product-panel .foot .stepper button { width: 36px; }
  .product-panel .foot .stepper output { min-width: 22px; }
}

/* ===================== Акции: сторис над меню (v17) ===================== */
.promo-row { padding-top: 14px; }
.pstories { display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 8px; margin-inline: -2px; }
.pstories::-webkit-scrollbar { display: none; }
.pstory { flex: 0 0 auto; width: 78px; display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: inherit; }
.pstory__ring { width: 72px; height: 72px; border-radius: 50%; padding: 3px; background: conic-gradient(from 200deg, var(--ember), var(--mustard), var(--olive), var(--ember)); display: block; }
.pstory.seen .pstory__ring { background: #CFC6B2; }
.pstory__ring img, .pstory__ring i { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 3px solid var(--milk); display: block; background: var(--parchment); }
.pstory__name { font-size: 12.5px; font-weight: 700; line-height: 1.2; text-align: center; max-width: 78px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pstory:focus-visible .pstory__ring { outline: 3px solid var(--olive); outline-offset: 2px; }
.pstory.seen .pstory__name { color: var(--ink-soft); font-weight: 600; }

.pview__media { position: relative; width: 100%; height: 100%; max-width: 560px; }
.pview__media .story-view__img, .pview__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: #0e0f0a; }
@media (min-width: 761px) { .pview__media .story-view__img, .pview__video { object-fit: contain; } }
.pview__shade { position: absolute; left: 50%; transform: translateX(-50%); bottom: 0; width: min(560px, 100%); height: 58%; background: linear-gradient(to bottom, transparent, rgba(12, 13, 8, .78)); pointer-events: none; z-index: 1; }
.pview__ava { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; background: rgba(255, 255, 255, .25); flex: none; }
.pview__ava img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pview__mute { width: 44px; height: 44px; border: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; }
.pview__mute svg { width: 24px; height: 24px; }
.pview__mute[hidden] { display: none; }
.pview__text { position: absolute; left: 50%; transform: translateX(-50%); bottom: calc(26px + env(safe-area-inset-bottom)); width: min(520px, calc(100% - 36px)); z-index: 3; color: #fff; display: grid; gap: 8px; pointer-events: none; }
.pview__text h2 { font-family: var(--f-display); font-weight: 900; font-size: 30px; line-height: 1.08; margin: 0; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); text-wrap: balance; }
.pview__text p { margin: 0; font-size: 17px; line-height: 1.4; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }
.pview__cta { pointer-events: auto; margin-top: 8px; min-height: 52px; width: 100%; background: var(--paper); color: var(--ink); font-size: 17px; font-weight: 800; border-radius: 999px; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.pview__cta:active { transform: scale(.98); }
.pview .story-view__nav { bottom: 150px; }

/* ===================== Уведомления гостю (v17) ===================== */
.push-card { display: grid; gap: 8px; padding: 16px; border-radius: var(--r-m); background: var(--paper); border: 1px solid var(--line); text-align: left; margin: 14px 0 4px; }
.push-card b { font-family: var(--f-display); font-weight: 800; font-size: 17px; line-height: 1.25; }
.push-card > span { color: var(--ink-soft); font-size: 14.5px; line-height: 1.4; }
.push-card__check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.35; cursor: pointer; }
.push-card__check input { width: 20px; height: 20px; margin: 0; flex: none; accent-color: var(--olive); }
.push-card .btn { justify-self: start; min-height: 46px; }
.push-card__err { color: var(--danger); font-size: 13.5px; }
.push-card--on { background: var(--sage-soft); border-color: transparent; }
.push-order { max-width: 640px; margin-inline: auto; padding-bottom: 40px; }
.push-wrap:not([hidden]) { margin-bottom: 22px; }
.push-set { padding: 18px; border-radius: var(--r-l); background: var(--paper); border: 1px solid var(--line); display: grid; gap: 12px; }
.push-set h3 { font-family: var(--f-display); font-weight: 900; font-size: 20px; margin: 0; }
.push-set .push-card { margin: 0; padding: 0; border: 0; background: none; }
.push-set__row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; cursor: pointer; }
.push-set__row input { width: 22px; height: 22px; margin: 0; accent-color: var(--olive); }
.push-set__row b { display: block; font-size: 16px; }
.push-set__row small { display: block; color: var(--ink-soft); font-size: 13.5px; }
.linkish { border: 0; background: none; padding: 0; font: inherit; color: var(--ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; font-size: 14px; }

/* ===================== Меню зала по QR на столе (/zal/) ===================== */
.zal-page { background: var(--milk); }
.zal-head { position: sticky; top: 0; z-index: 20; background: var(--olive); color: var(--paper); padding-top: env(safe-area-inset-top, 0px); box-shadow: 0 2px 10px rgba(29, 32, 20, .18); }
.zal-head__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 8px; }
.zal-logo { color: inherit; text-decoration: none; display: grid; line-height: 1; }
.zal-logo b { font-family: var(--f-display); font-weight: 900; font-size: 24px; letter-spacing: .04em; }
.zal-logo small { font-size: 10px; letter-spacing: .14em; opacity: .85; margin-top: 3px; }
.zal-table { background: var(--paper); color: var(--olive); font-family: var(--f-display); font-weight: 900; font-size: 16px; padding: 6px 14px; border-radius: 999px; }
.zal-tools { padding-bottom: 10px; }
.zal-search { display: flex; align-items: center; gap: 8px; background: rgba(255, 250, 241, .14); border-radius: 12px; padding: 0 12px; height: 42px; }
.zal-search svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.zal-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: inherit; font: inherit; font-size: 16px; outline: none; }
.zal-search input::placeholder { color: rgba(255, 250, 241, .7); }
.zal-cats { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); }
.zal-cats__row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.zal-cats__row::-webkit-scrollbar { display: none; }
.zal-cats a { flex: none; padding: 7px 13px; border-radius: 999px; color: var(--ink-soft); text-decoration: none; font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.zal-cats a.on { background: var(--olive); color: var(--paper); }
.zal-main { padding-top: 8px; padding-bottom: 20px; max-width: 760px; }
.zal-cat { scroll-margin-top: 150px; padding-top: 18px; }
.zal-cat h2 { font-family: var(--f-display); font-weight: 900; font-size: 24px; margin: 0 0 8px; }
.zal-cat__note { margin: -4px 0 8px; font-size: 14px; }
.zal-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line); }
.zal-item:not(:has(.zal-item__ph)) { grid-template-columns: minmax(0, 1fr) auto; }
.zal-item__ph { width: 72px; height: 72px; border-radius: 14px; object-fit: cover; background: var(--parchment); }
.zal-item h3 { font-size: 16.5px; line-height: 1.25; margin: 0; font-weight: 700; }
.zal-item__meta { display: block; color: var(--ink-soft); font-size: 13.5px; margin-top: 2px; }
.zal-item p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; line-height: 1.4; }
.zal-item__opts { font-size: 13px !important; }
.zal-item__price { font-family: var(--f-display); font-weight: 900; font-size: 17px; white-space: nowrap; text-align: right; }
.zal-item__price small { display: block; font-family: var(--f-body); font-weight: 500; font-size: 12px; color: var(--ink-soft); }
.zal-item.is-off { opacity: .55; }
.zal-off { font-family: var(--f-body); font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.zal-badge { display: inline-block; vertical-align: 2px; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 999px; background: var(--mustard); color: var(--ink); }
.zal-empty { padding: 40px 0; }
.zal-foot { max-width: 760px; padding-top: 18px; padding-bottom: calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); display: grid; gap: 6px; }
.zal-foot p { margin: 0; }
