/* ============================================================
   АРХИТЕКТОР БАР — интерфейс v2: меню доставки, карточки блюд,
   корзина-шторка, плашка корзины, тосты, форма брони.
   Mobile-first: базовые стили — телефон, дальше min-width.
   ============================================================ */

:root {
  --surface: #262624;
  --surface-2: #2f2f2c;
  --panel: #232321;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --muted: #9a9a94;
  --soft: #d6d6d0;
  --accent-2: #ea6a0e;
  --ok: #4cc27f;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.45, .55, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

html.sheet-lock, html.sheet-lock body { overflow: hidden; }

.bump { animation: bump .42s var(--ease); }
@keyframes bump { 0% { scale: 1; } 40% { scale: 1.09; } 100% { scale: 1; } }

/* ============================================================
   ОБЩИЕ ШТОРКИ (корзина, карточка блюда)
   ============================================================ */

.sheet { position: fixed; inset: 0; z-index: 1200; visibility: hidden; transition: visibility 0s .45s; }
.sheet.open { visibility: visible; transition: none; }

.sheet-overlay {
  position: absolute; inset: 0;
  background: rgba(8, 8, 8, .58);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .35s ease;
}
.sheet.open .sheet-overlay { opacity: 1; }

.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column;
  background: var(--panel);
  border-radius: 24px 24px 0 0;
  border-top: 1px solid var(--line);
  box-shadow: 0 -24px 60px rgba(0, 0, 0, .45);
  transform: translateY(102%);
  transition: transform .5s var(--ease-out);
  padding-bottom: var(--safe-b);
  overflow: hidden;
}
.sheet.open .sheet-panel { transform: translateY(0); }

.sheet-grip {
  flex: none; height: 24px;
  display: flex; align-items: center; justify-content: center;
  cursor: grab; touch-action: none;
}
.sheet-grip i { width: 42px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .22); }

.sheet-close {
  flex: none; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: rgba(255, 255, 255, .08); color: #fff;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .2s, transform .2s;
}
.sheet-close svg { width: 18px; height: 18px; }
.sheet-close:hover { background: rgba(255, 255, 255, .16); transform: rotate(90deg); }

/* ============================================================
   КОРЗИНА
   ============================================================ */

.cart-head {
  flex: none; display: flex; align-items: center; gap: 6px;
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--line);
  touch-action: none;
}
.cart-head > div { flex: 1; min-width: 0; }
.cart-title { font-size: 22px; font-weight: 800; letter-spacing: .02em; line-height: 1.1; }
.cart-sub { font-size: 12.5px; color: var(--muted); margin-top: 4px; min-height: 1.2em; }
.cart-clear {
  background: none; border: 0; color: var(--muted); cursor: pointer;
  font: 500 13px/1 var(--t-text-font); padding: 10px 8px; transition: color .2s;
}
.cart-clear:hover { color: #fff; }
.cart.is-empty .cart-clear { display: none; }

.cart-scroll {
  flex: 1; min-height: 0; overflow-y: auto;
  overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  padding: 4px 16px 18px;
}

/* строка товара */
.ci {
  display: grid; grid-template-columns: 64px 1fr auto; gap: 12px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  transition: height .35s var(--ease), opacity .3s, transform .4s var(--ease), padding .35s var(--ease);
}
.ci:last-child { border-bottom: 0; }
.ci-enter { opacity: 0; transform: translateX(18px); }
.ci-leave { opacity: 0; padding-top: 0; padding-bottom: 0; border-bottom-color: transparent; }
.ci-ph { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: #1a1a19; }
.ci-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ci-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.ci-unit { font-size: 12px; color: var(--muted); margin: 4px 0 9px; }
.ci-sum { font-size: 15px; font-weight: 800; white-space: nowrap; padding-top: 1px; }

/* пустая корзина */
.cart-empty {
  display: none; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; padding: 36px 12px 28px;
  color: var(--muted); font-size: 14px; line-height: 1.5;
}
.cart.is-empty .cart-empty { display: flex; }
.cart-empty b { color: #fff; font-size: 18px; }
.ce-ico {
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 6px;
  background: rgba(208, 89, 0, .12); color: var(--accent);
  animation: floaty 3.2s ease-in-out infinite;
}
.ce-ico svg { width: 34px; height: 34px; }
@keyframes floaty { 50% { translate: 0 -6px; } }
.ce-btn {
  margin-top: 10px;
  background: #fff; color: #1e1e1e; text-decoration: none;
  font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
  padding: 14px 24px; border-radius: 12px;
  box-shadow: 5px 6px 0 0 var(--accent);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.ce-btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 8px 0 0 var(--accent); }
.ce-btn:active { transform: translate(3px, 3px); box-shadow: 2px 3px 0 0 var(--accent); }

/* «Добавить к заказу» */
.cart-upsell { margin-top: 20px; }
.cart-upsell h3 {
  font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--soft); margin-bottom: 12px;
}
.cu-track {
  display: flex; gap: 10px; overflow-x: auto;
  margin: 0 -16px; padding: 0 16px 4px;
  scroll-snap-type: x mandatory; scroll-padding: 0 16px;
  scrollbar-width: none;
}
.cu-track::-webkit-scrollbar { display: none; }
.cu-card {
  flex: 0 0 136px; scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; padding: 6px;
}
.cu-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 11px; display: block; background: #1a1a19; }
.cu-name {
  flex: 1; font-size: 12px; line-height: 1.3; margin: 7px 3px 6px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cu-row { display: flex; align-items: center; justify-content: space-between; padding: 0 3px 2px; }
.cu-row b { font-size: 13px; }
.cu-add {
  width: 32px; height: 32px; border-radius: 10px; border: 0;
  background: var(--accent); color: #fff; cursor: pointer;
  display: grid; place-items: center; transition: transform .15s, filter .2s;
}
.cu-add svg { width: 16px; height: 16px; }
.cu-add:hover { filter: brightness(1.12); }
.cu-add:active { transform: scale(.88); }

/* низ корзины */
.cart-foot {
  flex: none; display: grid; gap: 12px;
  padding: 14px 16px 16px;
  border-top: 1px solid var(--line);
  background: var(--panel);
}
.cart.is-empty .cart-foot { display: none; }
.cart-hours { display: flex; align-items: center; gap: 9px; margin: 12px 0 2px; font-size: 12.5px; line-height: 1.4; color: var(--soft); }
.cart.is-empty .cart-hours, .cart.is-empty .cart-note { display: none; }
.cart-note { margin-top: 18px; }
.cart-foot .cart-total { padding: 0 2px; }
.cart-hours i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(76, 194, 127, .16); }
.cart-hours.is-closed { color: #ffbf8f; background: rgba(208, 89, 0, .1); padding: 10px 12px; border-radius: 12px; }
.cart-hours.is-closed i { background: var(--accent); box-shadow: 0 0 0 4px rgba(208, 89, 0, .18); }
.cart-total { display: flex; align-items: baseline; justify-content: space-between; color: var(--soft); font-size: 15px; }
.cart-total b { display: inline-block; font-size: 26px; font-weight: 800; color: #fff; font-variant-numeric: tabular-nums; }
.cart-actions { display: flex; gap: 10px; }
.cart-order-btn {
  flex: 1; min-height: 58px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 8px 16px; border-radius: 16px;
  background: var(--accent); color: #fff; text-decoration: none;
  transition: filter .2s, transform .15s;
  position: relative; overflow: hidden;
}
.cart-order-btn svg { width: 22px; height: 22px; flex: none; }
.cart-order-btn span { display: flex; flex-direction: column; line-height: 1.2; }
.cart-order-btn b { font-size: 15px; letter-spacing: .02em; }
.cart-order-btn small { font-size: 12px; opacity: .85; }
.cart-order-btn:hover { filter: brightness(1.08); }
.cart-order-btn:active { transform: scale(.98); }
.cart-order-btn.is-closed, .cart-order-btn.is-closed:hover { background: #3a3532; color: #b9b0a8; filter: none; cursor: not-allowed; transform: none; box-shadow: none; }
.co-closed { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; color: #ffbf8f; background: rgba(208, 89, 0, .1); font-size: 13px; line-height: 1.45; }
.cart-order-btn::after {             /* блик */
  content: ''; position: absolute; top: 0; bottom: 0; width: 60%; left: -80%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  animation: shine 3.6s ease-in-out 1s infinite;
}
@keyframes shine { 0%, 70% { left: -80%; } 100% { left: 140%; } }
.cart-copy {
  flex: none; width: 58px; border-radius: 16px; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .04); color: #fff;
  display: grid; place-items: center; transition: background .2s;
}
.cart-copy svg { width: 22px; height: 22px; }
.cart-copy:hover { background: rgba(255, 255, 255, .1); }
.cart-note { font-size: 11.5px; line-height: 1.5; color: #85857f; }

/* ============================================================
   СЧЁТЧИК −/+ (карточка, шторка блюда, корзина)
   ============================================================ */

.qty {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--accent); color: #fff; border-radius: 12px;
}
.qty-btn {
  flex: none; width: 38px; height: 100%; min-height: 32px;
  border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(0, 0, 0, .14); color: #fff;
  display: grid; place-items: center;
  touch-action: manipulation;
  transition: background .2s, transform .15s;
}
.qty-btn svg { width: 18px; height: 18px; }
.qty-btn:hover { background: rgba(0, 0, 0, .28); }
.qty-btn:active { transform: scale(.86); }
.qty-n {
  flex: 1; display: block; overflow: hidden; text-align: center;
  font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums;
}

.qty--sm { display: inline-flex; height: 34px; gap: 2px; padding: 0; background: rgba(255, 255, 255, .07); }
.qty--sm .qty-btn { width: 34px; background: transparent; }
.qty--sm .qty-btn:hover { background: rgba(255, 255, 255, .1); }
.qty--sm .qty-btn svg { width: 16px; height: 16px; }
.qty--sm .qty-n { flex: none; min-width: 26px; font-size: 14px; }

/* ============================================================
   СТРАНИЦА «ДОСТАВКА»
   ============================================================ */

.menu-page { padding: calc(var(--hdr-h, 64px) + 22px) 0 72px; transition: padding .3s; }
body.has-fab .menu-page { padding-bottom: calc(112px + var(--safe-b)); }

.menu-wrap { max-width: 1280px; margin: 0 auto; padding: 0 16px; }

.menu-head { display: grid; gap: 14px; }
.menu-title {
  font-size: clamp(36px, 10.5vw, 80px);
  font-weight: 800; line-height: .98; letter-spacing: .005em;
}
.menu-title span { display: inline-block; }

.menu-status {
  justify-self: start;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px 8px 12px; border-radius: 99px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 12.5px; color: var(--soft); line-height: 1.3;
}
.ms-dot { flex: none; position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.menu-status.is-open .ms-dot { background: var(--ok); }
.menu-status.is-open .ms-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--ok); animation: ping 1.8s ease-out infinite;
}
.menu-status.is-closed .ms-dot { background: var(--accent); }
@keyframes ping { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }

.menu-search {
  display: flex; align-items: center; gap: 10px;
  height: 50px; padding: 0 6px 0 15px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  color: var(--muted); cursor: text;
  transition: border-color .2s, box-shadow .25s;
}
.menu-search > svg { flex: none; width: 20px; height: 20px; }
.menu-search input {
  flex: 1; min-width: 0; height: 100%;
  background: none; border: 0; outline: 0; color: #fff;
  font: 500 16px var(--t-text-font);       /* 16px — iOS не зумит поле */
}
.menu-search input::placeholder { color: #85857f; }
.menu-search input::-webkit-search-cancel-button { display: none; }
.menu-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(208, 89, 0, .16); color: #fff; }
.msr-clear {
  flex: none; width: 38px; height: 38px; border-radius: 10px; border: 0;
  background: rgba(255, 255, 255, .07); color: #fff; cursor: pointer;
  display: grid; place-items: center;
}
.msr-clear svg { width: 16px; height: 16px; }
.msr-clear[hidden] { display: none; }

/* липкая лента разделов */
.menu-cats { position: sticky; top: var(--hdr-h, 64px); z-index: 30; margin: 16px -16px 4px; padding: 10px 0; }
.menu-cats::before {
  content: ''; position: absolute; z-index: -1; pointer-events: none;
  left: 0; right: 0; bottom: 0; top: calc(-1 * var(--hdr-h, 64px));
  background: rgba(30, 30, 30, .82);
  -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .3s;
}
.menu-cats.stuck::before { opacity: 1; }
.mc-track {
  position: relative; display: flex; gap: 8px;
  overflow-x: auto; padding: 0 16px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent);
          mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 28px), transparent);
}
.mc-track::-webkit-scrollbar { display: none; }
.menu-cat {
  position: relative; z-index: 1; flex: none;
  padding: 11px 16px; border-radius: 99px;
  font-size: 12px; font-weight: 600; letter-spacing: .05em; white-space: nowrap;
  color: var(--soft); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line);
  transition: color .3s, background-color .3s, border-color .3s;
}
.menu-cat:hover { color: #fff; border-color: var(--line-2); }
.menu-cat.active { color: #fff; background-color: transparent; border-color: transparent; }
.menu-cat[hidden] { display: none; }
.mc-ink {
  position: absolute; z-index: 0; top: 0; left: 0; height: 0; width: 0;
  border-radius: 99px; background: var(--accent);
  box-shadow: 0 6px 18px -6px rgba(208, 89, 0, .7);
  transition: transform .5s var(--ease-out), width .5s var(--ease-out), height .5s var(--ease-out);
}

/* разделы */
.menu-section { padding-top: 26px; }
.menu-section[hidden] { display: none; }
.ms-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
.ms-head h2 { font-size: clamp(20px, 5.6vw, 34px); font-weight: 800; letter-spacing: .03em; line-height: 1.12; }
.ms-count { font-size: 12px; color: var(--muted); white-space: nowrap; }

.menu-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  text-align: center; padding: 70px 20px 40px; color: var(--muted); font-size: 14px;
}
.menu-empty b { color: #fff; font-size: 18px; }
.menu-empty[hidden] { display: none; }

/* сетка карточек */
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

/* карточка блюда */
.dish {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 6px 6px 7px;
  transition: border-color .35s, box-shadow .45s var(--ease), transform .45s var(--ease),
              opacity .6s var(--ease), translate .7s var(--ease);
}
.dish[hidden] { display: none; }
.dish.pre { opacity: 0; translate: 0 26px; }
.dish.pre.seen { opacity: 1; translate: 0 0; }
.dish.in { border-color: rgba(208, 89, 0, .6); box-shadow: 0 0 0 1px rgba(208, 89, 0, .25), 0 16px 40px -24px rgba(208, 89, 0, .7); }

.dish-ph {
  position: relative; display: block; width: 100%;
  aspect-ratio: 1 / 1; padding: 0; border: 0;
  border-radius: 13px; overflow: hidden; cursor: zoom-in;
  background: #1a1a19;
  -webkit-tap-highlight-color: transparent;
}
.dish-ph::before {                       /* скелетон, пока грузится фото */
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .05) 50%, transparent 70%) 0 0 / 250% 100%;
  animation: skel 1.4s linear infinite;
}
.dish.loaded .dish-ph::before { display: none; }
@keyframes skel { to { background-position: -250% 0; } }
.dish-ph img {
  position: relative; width: 100%; height: 100%; display: block; object-fit: cover;
  opacity: 0; transform: scale(1.04);
  transition: opacity .6s ease, transform .9s var(--ease);
}
.dish.loaded .dish-ph img { opacity: 1; transform: scale(1); }
.dish-ph.is-empty {
  cursor: default;
  background: #1c1c1b url("../assets/img/1.svg") center 42% / 34% no-repeat;
}
.dish-ph.is-empty::before { display: none; }
.dish-noimg {
  position: absolute; left: 0; right: 0; bottom: 12%;
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #6d6d68;
}

.dish-qb {                               /* бейдж «× 2» на фото */
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 5px 9px; border-radius: 99px;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 800; line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  opacity: 0; transform: scale(.6); transition: opacity .25s, transform .35s var(--spring);
}
.dish.in .dish-qb { opacity: 1; transform: scale(1); }

.dish-body { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 10px 6px 0; }
.dish-price { font-size: 16px; font-weight: 800; letter-spacing: .01em; }
.dish-name {
  font-size: 13px; font-weight: 500; line-height: 1.32; color: #e4e4df;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.dish-desc {
  font-size: 12px; color: var(--muted); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.dish-ctl { position: relative; flex: none; height: 44px; margin-top: 10px; }
.dish-add {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: var(--surface-2); color: #fff;
  font: 600 13.5px/1 var(--t-text-font); letter-spacing: .01em;
  touch-action: manipulation;
  transition: background .25s, color .25s, opacity .25s, transform .3s var(--ease), visibility 0s;
}
.dish-add svg { width: 18px; height: 18px; color: var(--accent); transition: color .25s, transform .35s var(--ease); }
.dish-add:active { transform: scale(.95); }
@media (hover: hover) {
  .dish-add:hover { background: var(--accent); }
  .dish-add:hover svg { color: #fff; transform: rotate(90deg); }
}
.dish-ctl .qty {
  position: absolute; inset: 0; padding: 3px;
  opacity: 0; visibility: hidden; transform: scale(.92);
  transition: opacity .25s, transform .35s var(--spring), visibility 0s .35s;
}
.dish.in .dish-ctl .qty, .dish-ctl.in .qty { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.dish.in .dish-add, .dish-ctl.in .dish-add { opacity: 0; visibility: hidden; transform: scale(.92); transition-delay: 0s, 0s, 0s, 0s, .3s; }

@media (hover: hover) {
  .dish:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 22px 44px -24px rgba(0, 0, 0, .9); }
  .dish.in:hover { border-color: rgba(208, 89, 0, .8); }
  .dish:hover .dish-ph img { transform: scale(1.06); }
}

/* ---------- плашка «Корзина» внизу ---------- */
.cart-fab {
  position: fixed; z-index: 1000;
  left: 12px; right: 12px; bottom: calc(12px + var(--safe-b));
  height: 60px; padding: 0 9px 0 9px;
  display: flex; align-items: center; gap: 12px;
  border: 0; border-radius: 18px; cursor: pointer;
  background: var(--accent); color: #fff;
  font-family: var(--t-text-font);
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .85), 0 8px 24px -10px rgba(208, 89, 0, .7);
  transform: translateY(150%); opacity: 0;
  transition: transform .55s var(--spring), opacity .3s;
  -webkit-tap-highlight-color: transparent;
}
.cart-fab.show { transform: none; opacity: 1; }
.cf-ico { position: relative; flex: none; width: 42px; height: 42px; border-radius: 13px; background: rgba(0, 0, 0, .16); display: grid; place-items: center; }
.cf-ico svg { width: 22px; height: 22px; }
.cf-n {
  position: absolute; top: -5px; right: -5px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: #fff; color: var(--accent);
  font-size: 11px; font-weight: 800; line-height: 20px; text-align: center;
}
.cf-label { flex: 1; text-align: left; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.cf-sum { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cf-go { flex: none; width: 38px; height: 38px; border-radius: 12px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; transition: transform .3s var(--ease); }
.cf-go svg { width: 18px; height: 18px; }
.cart-fab:hover .cf-go { transform: translateX(3px); }

/* «летящее» фото */
.fly-ghost {
  position: fixed; z-index: 1250; pointer-events: none;
  border-radius: 50%; background: #333 center / cover no-repeat;
  border: 2px solid var(--accent);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .5);
}

/* тост */
.toast {
  position: fixed; z-index: 1300; left: 50%;
  bottom: calc(20px + var(--safe-b));
  max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 16px;
  padding: 13px 14px 13px 18px; border-radius: 14px;
  background: #f4f1ea; color: #1e1e1e;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  opacity: 0; transform: translate(-50%, 16px); pointer-events: none;
  transition: opacity .3s, transform .45s var(--ease-out);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { background: none; border: 0; cursor: pointer; color: var(--accent); font: 800 14px var(--t-text-font); padding: 4px; }
body.has-fab .toast { bottom: calc(84px + var(--safe-b)); }
html.sheet-lock .toast { bottom: calc(20px + var(--safe-b)); }

/* ---------- шторка блюда ---------- */
.dish-sheet .sheet-grip { position: absolute; top: 0; left: 0; right: 0; z-index: 3; }
.dish-sheet .sheet-grip i { background: rgba(255, 255, 255, .55); }
.dish-sheet .sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 4;
  background: rgba(20, 20, 20, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.ds-ph { position: relative; flex: none; aspect-ratio: 16 / 10; overflow: hidden; background: #1a1a19; touch-action: none; }
.ds-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ds-ph::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 40%; background: linear-gradient(transparent, rgba(35, 35, 33, .9)); pointer-events: none; }
.ds-ph .dish-noimg { bottom: 40%; text-align: center; }
.ds-ph:has(.dish-noimg) { background: #1c1c1b url("../assets/img/1.svg") center 40% / 18% no-repeat; }
.ds-body { position: relative; padding: 4px 18px 18px; overflow-y: auto; }
.ds-cat { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.ds-name { font-size: 23px; font-weight: 800; line-height: 1.2; margin: 6px 0 18px; }
.ds-row { display: flex; align-items: center; gap: 16px; }
.ds-price { flex: none; font-size: 26px; font-weight: 800; }
.ds-ctl { flex: 1; height: 54px; margin: 0; max-width: 260px; margin-left: auto; }
.ds-ctl .dish-add { font-size: 15px; background: var(--accent); }
.ds-ctl .dish-add svg { color: #fff; }
.ds-ctl .qty-btn { width: 48px; }
.ds-ctl .qty-n { font-size: 19px; }
.ds-nav { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.ds-nav button { background: none; border: 0; cursor: pointer; color: var(--soft); font: 600 13px var(--t-text-font); padding: 8px 0; transition: color .2s; }
.ds-nav button:hover { color: var(--accent); }
.ds-nav button:disabled { opacity: .3; cursor: default; color: var(--soft); }

/* ---------- ≥ 600: планшет вертикально ---------- */
@media (min-width: 600px) {
  .menu-wrap { padding: 0 24px; }
  .menu-cats { margin: 18px -24px 4px; }
  .mc-track { padding: 0 24px; }
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .dish { padding: 8px 8px 9px; border-radius: 20px; }
  .dish-ph { border-radius: 14px; aspect-ratio: 4 / 3.4; }
  .dish-body { padding: 12px 6px 0; gap: 5px; }
  .dish-price { font-size: 18px; }
  .dish-name { font-size: 14px; -webkit-line-clamp: 2; }
  .dish-ctl { height: 46px; margin-top: 12px; }
  .menu-head { grid-template-columns: 1fr minmax(260px, 380px); align-items: center; column-gap: 24px; }
  .menu-title { grid-column: 1 / -1; }
  .menu-search { grid-column: 2; grid-row: 2; }
}

/* ---------- ≥ 768: корзина и блюдо — панель/модалка ---------- */
@media (min-width: 768px) {
  .sheet-grip { display: none; }
  .cart .sheet-panel {
    top: 0; left: auto; width: 440px; max-height: none;
    border-radius: 26px 0 0 26px; border-top: 0; border-left: 1px solid var(--line);
    transform: translateX(102%);
    box-shadow: -30px 0 80px rgba(0, 0, 0, .5);
  }
  .cart.open .sheet-panel { transform: none; }
  .cart-head { padding: 24px 20px 16px 24px; touch-action: auto; }
  .cart-scroll { padding: 4px 24px 20px; }
  .cu-track { margin: 0 -24px; padding: 0 24px 4px; scroll-padding: 0 24px; }
  .cart-foot { padding: 16px 24px 22px; }

  .dish-sheet .sheet-panel {
    left: 50%; top: 50%; right: auto; bottom: auto;
    width: min(780px, calc(100vw - 48px)); max-height: calc(100vh - 48px);
    border-radius: 26px; border: 1px solid var(--line);
    transform: translate(-50%, -46%) scale(.96); opacity: 0;
    transition: transform .5s var(--ease-out), opacity .3s;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .6);
  }
  .dish-sheet.open .sheet-panel { transform: translate(-50%, -50%); opacity: 1; }
  .ds-body { padding: 4px 28px 24px; }
  .ds-name { font-size: 28px; }

  .cart-fab { left: auto; right: 24px; bottom: 24px; width: 360px; }
  body.has-fab .toast { bottom: 24px; }
}

/* ---------- ≥ 960: ноутбук и больше ---------- */
@media (min-width: 960px) {
  .menu-page { padding-top: calc(var(--hdr-h, 110px) + 36px); }
  .menu-wrap { padding: 0 32px; }
  .menu-cats { margin: 22px -32px 4px; }
  .mc-track { padding: 0 32px; }
  .menu-cat { font-size: 12.5px; padding: 12px 18px; }
  .dish-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .menu-section { padding-top: 34px; }
  .ms-head { margin-bottom: 18px; }
}
@media (min-width: 1360px) {
  .menu-cats { margin-left: 0; margin-right: 0; }
  .mc-track { padding: 0; -webkit-mask-image: none; mask-image: none; flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .dish.pre { opacity: 1; translate: none; }
  .sheet-panel, .cart-fab, .mc-ink, .dish, .ci { transition-duration: .01ms !important; }
  .cart-order-btn::after, .ce-ico, .ms-dot::after { animation: none !important; }
}

/* ============================================================
   ФОРМА БРОНИРОВАНИЯ (внутри зеро-блока: высота рамки фиксирована,
   поэтому раскладка своя на каждом размере — см. ниже)
   ============================================================ */

.booking-form {
  display: grid; width: 100%; gap: 8px;
  grid-template-columns: 1fr 1fr;
  grid-template-areas: "name phone" "date date" "time guests" "agree agree" "dep dep" "err err" "submit submit";
}
.bf-name { grid-area: name; } .bf-phone { grid-area: phone; } .bf-date { grid-area: date; } .bf-time { grid-area: time; }
.bf-guests { grid-area: guests; } .bf-agree { grid-area: agree; } .bf-dep { grid-area: dep; } .bf-err { grid-area: err; }
.bf-submit { grid-area: submit; } .bf-done { grid-column: 1 / -1; }
.bf-f { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 15px; font-weight: 600; color: #fff; }
.bf-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }   /* на узких — только подсказка в поле */
.booking-form input:not([type="checkbox"]), .booking-form select {
  width: 100%; min-width: 0; height: 38px; padding: 0 10px;
  background: #fff; border: 2px solid transparent; border-radius: 8px; color: #1e1e1e;
  font: 500 16px var(--t-text-font);                                         /* 16px — iOS не зумит поле */
  transition: border-color .2s, box-shadow .25s;
  -webkit-appearance: none; appearance: none;
}
.booking-form select { padding-right: 28px; cursor: pointer; }
.booking-form input::placeholder { color: #9b9b9b; }
.booking-form input:focus, .booking-form select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(208, 89, 0, .25); }
.bf-sel { position: relative; display: block; }
.bf-sel::after { content: ''; position: absolute; right: 11px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border: 2px solid #1e1e1e; border-top: 0; border-left: 0; transform: rotate(45deg); pointer-events: none; }
.bf-agree { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.bf-chk { display: flex; align-items: center; gap: 7px; cursor: pointer; color: #fff; font-size: 11px; font-weight: 500; line-height: 1.3; }
.bf-chk input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bf-chk i { flex: none; width: 16px; height: 16px; border-radius: 4px; background: #fff; border: 1.5px solid #fff; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.bf-chk i::after { content: ''; width: 8px; height: 4px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .25s var(--spring); }
.bf-chk input:checked + i { background: var(--accent); border-color: var(--accent); }
.bf-chk input:checked + i::after { transform: rotate(-45deg) scale(1); }
.bf-chk input:focus-visible + i { box-shadow: 0 0 0 4px rgba(208, 89, 0, .35); }
.bf-chk a { color: #ffb27a; }
.bf-dep { color: #ffbf8f; font-size: 12px; font-weight: 600; }
.bf-err { color: #ff9b92; font-size: 12px; text-align: center; }
.bf-submit {
  justify-self: center; min-width: 190px; height: 40px; padding: 0 22px;
  background: #fff; border: 0; border-radius: 10px; color: #1e1e1e; cursor: pointer;
  font: 800 13px var(--t-text-font); letter-spacing: .1em; text-transform: uppercase;
  box-shadow: 4px 5px 0 0 var(--accent);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.bf-submit:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 0 var(--accent); }
.bf-submit:active { transform: translate(3px, 3px); box-shadow: 1px 2px 0 0 var(--accent); }
.bf-submit.is-busy { opacity: .7; pointer-events: none; }
.booking-form .is-bad, .bf-chk.is-bad i, .bf-chk input.is-bad + i { border-color: #ff6b5e !important; }
.booking-form.is-sent > *:not(.bf-done) { display: none; }
.booking-form.is-sent .bf-done {
  display: flex; min-height: 150px; align-items: center; justify-content: center; text-align: center;
  padding: 18px; border-radius: 14px; background: rgba(76, 194, 127, .12); border: 1px solid rgba(76, 194, 127, .4);
  color: #fff; font-size: 15px; font-weight: 600; line-height: 1.5; animation: bump .5s var(--ease);
}

/* 480–959: в рамке ~160 px макета — три колонки, кнопка в сетке */
@media (min-width: 480px) {
  .booking-form { gap: 8px 10px; grid-template-columns: 1fr 1fr 1fr;
    grid-template-areas: "name phone guests" "date time submit" "agree agree agree" "dep dep dep" "err err err"; }
  .bf-submit { justify-self: stretch; min-width: 0; height: 38px; padding: 0 10px; font-size: 12px; }
}
/* ≥ 960: подписи над полями, как в оригинале */
@media (min-width: 960px) {
  .booking-form { gap: 14px 22px; }
  .bf-l { position: static; width: auto; height: auto; clip: auto; }
  .booking-form input:not([type="checkbox"]), .booking-form select { height: 48px; padding: 0 15px; border-radius: 10px; }
  .booking-form select { padding-right: 36px; }
  .bf-sel::after { right: 15px; }
  .bf-submit { align-self: end; height: 48px; font-size: 13px; box-shadow: 6px 7px 0 0 var(--accent); }
  .bf-chk { font-size: 13px; gap: 9px; }
  .bf-chk i { width: 18px; height: 18px; border-radius: 5px; }
  .bf-agree { gap: 6px 26px; }
  .bf-dep, .bf-err { font-size: 13px; }
}

/* ---------- карта на контактах ---------- */
.map-section { padding: 45px 0; background: #1e1e1e; }
#map { height: 400px; background: #2a2a28; }
.leaflet-container { font-family: var(--t-text-font); }

/* ---------- текстовая страница (политика ПДн) ---------- */
.text-page { padding: 150px 0 90px; background: #1e1e1e; }
.text-wrap { max-width: 900px; margin: 0 auto; padding: 0 20px; }
.text-wrap h1 { font-size: clamp(22px, 3vw, 32px); margin-bottom: 26px; }
.text-body { font-size: 15px; line-height: 1.65; color: #d9d9d4; }
.text-body a { color: var(--accent); }
@media (max-width: 639px) { .text-page { padding-top: 100px; } }

/* ============================================================
   v2 + сервер: оформление заказа, афиша, объявление, бронь
   ============================================================ */

/* ---------- шаги корзины ---------- */
.cart-back {
  display: none; flex: none; width: 40px; height: 40px; margin-left: -6px; border-radius: 50%;
  border: 0; background: none; color: #fff; cursor: pointer; place-items: center;
}
.cart-back svg { width: 22px; height: 22px; }
.cart.step-co .cart-back { display: grid; }
.cart.step-co .cart-clear { display: none; }
.co-scroll, .co-foot, .ok-view { display: none; }
.cart.step-co .cart-scroll, .cart.step-co .cart-foot,
.cart.step-ok .cart-scroll, .cart.step-ok .cart-foot, .cart.step-ok .cart-head > div, .cart.step-ok .cart-clear { display: none; }
.cart.step-co .co-scroll { display: block; flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 14px 16px 18px; }
.cart.step-co .co-foot { display: grid; gap: 10px; flex: none; padding: 12px 16px 16px; border-top: 1px solid var(--line); }
.cart.step-ok .ok-view { display: flex; }
.cart.step-ok .cart-head { border-bottom: 0; justify-content: flex-end; }
.cart.step-co .co-scroll { animation: coIn .45s var(--ease-out); }
@keyframes coIn { from { opacity: 0; transform: translateX(24px); } }

.cart-go { justify-content: space-between; text-align: left; padding: 8px 18px; border: 0; cursor: pointer; font-family: inherit; }
.cart-go svg { width: 22px; height: 22px; transition: transform .3s var(--ease); }
.cart-go:hover svg { transform: translateX(4px); }
a.cart-copy { text-decoration: none; }

/* способ получения */
.co-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 14px; }
.co-mode {
  display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px;
  border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); color: #fff;
  font-family: inherit; text-align: left; cursor: pointer; transition: border-color .2s, background .2s;
}
.co-mode svg { flex: none; width: 24px; height: 24px; color: var(--muted); transition: color .2s; }
.co-mode span { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.co-mode b { font-size: 14px; }
.co-mode small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-mode.on { border-color: var(--accent); background: rgba(208, 89, 0, .12); }
.co-mode.on svg { color: var(--accent); }
.co-mode.is-off { opacity: .45; cursor: not-allowed; }
.co-off { margin: -4px 0 14px; padding: 10px 12px; border-radius: 12px; background: rgba(208, 89, 0, .1); color: #ffbf8f; font-size: 12.5px; line-height: 1.45; }

/* поля */
.co-grid { display: grid; gap: 10px; }
.co-f { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; font-size: 12.5px; font-weight: 600; color: var(--soft); }
.co-f input, .co-f textarea, .co-addr-in {
  width: 100%; border-radius: 12px; border: 1.5px solid var(--line-2); background: #1b1b1a; color: #fff;
  font: 500 16px/1.3 var(--t-text-font); padding: 12px 14px; outline: 0; resize: vertical;
  transition: border-color .2s, box-shadow .25s;
}
.co-f input::placeholder, .co-f textarea::placeholder { color: #6f6f6a; }
.co-f input:focus, .co-f textarea:focus, .co-addr-in:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(208, 89, 0, .16); }
.co-addr-in { display: flex; align-items: center; gap: 8px; padding: 0 0 0 12px; }
.co-addr-in svg { flex: none; width: 20px; height: 20px; color: var(--accent); }
.co-addr-in input { border: 0; background: none; box-shadow: none !important; padding-left: 0; }
.co-addr { position: relative; }
.co-sug {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 260px; overflow-y: auto; border-radius: 14px; background: #2b2b28; border: 1px solid var(--line-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55); padding: 4px;
}
.co-sug button {
  display: flex; flex-direction: column; gap: 2px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; color: #fff; text-align: left; cursor: pointer; font-family: inherit;
}
.co-sug button b { font-size: 13.5px; font-weight: 600; }
.co-sug button small { font-size: 11.5px; color: var(--muted); }
.co-sug button:hover, .co-sug button.sel { background: rgba(255, 255, 255, .07); }
.co-zone { margin: -2px 0 12px; padding: 11px 13px; border-radius: 12px; background: rgba(76, 194, 127, .1); border: 1px solid rgba(76, 194, 127, .3);
  display: flex; flex-direction: column; gap: 3px; font-size: 12.5px; color: var(--soft); animation: bump .4s var(--ease); }
.co-zone b { color: #8fe0b2; font-size: 13.5px; }
.co-zone.is-warn { background: rgba(208, 89, 0, .1); border-color: rgba(208, 89, 0, .4); }
.co-zone.is-warn b { color: #ffbf8f; }
.co-zone.is-out { background: rgba(255, 90, 80, .08); border-color: rgba(255, 90, 80, .35); }
.co-zone.is-out b { color: #ff9b92; }
.co-short { color: #ffbf8f; font-weight: 600; }
.co-tariff { color: #f3c98b; font-weight: 600; }
.co-pick { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.co-pick svg { flex: none; width: 22px; height: 22px; color: var(--accent); }
.co-pick p { display: flex; flex-direction: column; gap: 3px; font-size: 13.5px; }
.co-pick span { font-size: 12px; color: var(--muted); }
.co-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* галочки согласия */
.co-chk{ display: flex; align-items: flex-start; gap: 10px; margin: 8px 0; cursor: pointer; font-size: 12.5px; line-height: 1.4; color: var(--soft); }
.co-chk input{ position: absolute; opacity: 0; width: 1px; height: 1px; }
.co-chk i{
  flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); background: #1b1b1a;
  display: grid; place-items: center; transition: background .2s, border-color .2s;
}
.co-chk i::after{ content: ''; width: 9px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .25s var(--spring); }
.co-chk input:checked + i{ background: var(--accent); border-color: var(--accent); }
.co-chk input:checked + i::after{ transform: rotate(-45deg) scale(1); }
.co-chk input:focus-visible + i{ box-shadow: 0 0 0 4px rgba(208, 89, 0, .3); }
.co-chk a{ color: var(--accent); }
.is-bad input, .is-bad textarea, .is-bad .co-addr-in, .is-bad i, input.is-bad, select.is-bad { border-color: #ff6b5e !important; }
.co-err { margin: 6px 0 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 90, 80, .1); color: #ff9b92; font-size: 13px; line-height: 1.4; }

/* итог оформления */
.co-lines { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.co-lines div { display: flex; justify-content: space-between; }
.co-lines b { color: var(--soft); font-weight: 600; }
.co-lines .co-dl[hidden] { display: none; }
.co-total { display: inline-block; font-size: 24px; font-weight: 800; color: #fff; }
.co-send { border: 0; cursor: pointer; font-family: inherit; min-height: 56px; }
.co-send.is-busy { pointer-events: none; opacity: .75; }
.co-send.is-busy b::after { content: '…'; }
.co-call { text-align: center; font-size: 12.5px; color: var(--muted); text-decoration: none; }
.co-call:hover { color: #fff; }

/* заказ принят */
.ok-view { flex: 1; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 12px; padding: 10px 24px 34px; min-height: 340px; }
.ok-ico { width: 84px; height: 84px; color: var(--ok); }
.ok-ico svg { width: 100%; height: 100%; }
.cart.step-ok .ok-ico circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: okDraw .7s var(--ease-out) forwards; }
.cart.step-ok .ok-ico path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: okDraw .45s .45s var(--ease-out) forwards; }
@keyframes okDraw { to { stroke-dashoffset: 0; } }
.ok-title { font-size: 24px; font-weight: 800; }
.ok-text { color: var(--soft); font-size: 14px; line-height: 1.5; max-width: 320px; }

/* выбор размера (мерч) */
.size-sheet .sheet-panel { padding: 0 18px 22px; }
.size-sheet .sheet-close { position: absolute; top: 14px; right: 14px; }
.sz-title { font-size: 19px; font-weight: 800; margin: 10px 48px 4px 0; }
.sz-sub { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.sz-list { display: flex; flex-wrap: wrap; gap: 8px; }
.sz-list button { min-width: 64px; height: 48px; padding: 0 16px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); color: #fff; font: 700 15px var(--t-text-font); cursor: pointer; }
.sz-list button:hover { border-color: var(--accent); background: rgba(208, 89, 0, .12); }
@media (min-width: 768px) {
  .size-sheet .sheet-panel { left: 50%; top: 50%; right: auto; bottom: auto; width: 420px; border-radius: 22px; border: 1px solid var(--line);
    transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .45s var(--ease-out), opacity .3s; padding-top: 14px; }
  .size-sheet.open .sheet-panel { transform: translate(-50%, -50%); opacity: 1; }
}
@media (min-width: 768px) {
  .cart.step-co .co-scroll { padding: 16px 24px 20px; }
  .cart.step-co .co-foot { padding: 14px 24px 22px; }
  .co-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- меню: стоп-лист, вес, пояснения ---------- */
.dish-out {
  display: grid; place-items: center; height: 100%; border-radius: 12px;
  border: 1.5px dashed var(--line-2); color: var(--muted); font-size: 12.5px; font-weight: 600;
}
.dish.is-out .dish-ph img { filter: grayscale(.85) brightness(.7); }
.dish.is-out .dish-price { color: var(--muted); }
.dish-weight { font-size: 12px; color: var(--muted); }
.menu-note { padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--soft); font-size: 13px; line-height: 1.45; }
.menu-note.is-off { background: rgba(208, 89, 0, .1); border-color: rgba(208, 89, 0, .35); color: #ffbf8f; }
@media (min-width: 600px) { .menu-note { grid-column: 1 / -1; } }
.orders-off .dish-ctl { display: none; }

/* ---------- объявление ---------- */
.ann {
  position: fixed; z-index: 1100; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b));
  display: flex; align-items: center; gap: 12px; padding: 13px 44px 13px 16px;
  border-radius: 16px; background: rgba(36, 36, 34, .94); border: 1px solid rgba(208, 89, 0, .5);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  transform: translateY(160%); opacity: 0; transition: transform .6s var(--spring), opacity .35s;
}
.ann.show { transform: none; opacity: 1; }
.ann p { flex: 1; font-size: 13.5px; line-height: 1.4; color: #fff; }
.ann-dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px rgba(208, 89, 0, .2); animation: ping2 2s ease-out infinite; }
@keyframes ping2 { 50% { box-shadow: 0 0 0 9px rgba(208, 89, 0, 0); } }
.ann-btn { flex: none; padding: 9px 14px; border-radius: 30px; background: var(--accent); color: #fff; font-size: 12.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.ann-x { position: absolute; top: 6px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.ann-x:hover { color: #fff; }
body.has-fab .ann { bottom: calc(84px + var(--safe-b)); }
@media (max-width: 479px) { .ann { flex-wrap: wrap; } .ann p { flex-basis: calc(100% - 22px); } .ann-btn { margin-left: 21px; } }
@media (min-width: 768px) { .ann { right: auto; max-width: 440px; left: 24px; bottom: 24px; } body.has-fab .ann { bottom: 24px; } }

/* ---------- афиша на «События» ---------- */
.ev-wrap { padding: 8px 0 56px; }
.ev-in { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.ev { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s; }
@media (hover: hover) { .ev:hover { transform: translateY(-4px); border-color: var(--line-2); box-shadow: 0 22px 44px -24px rgba(0, 0, 0, .9); } }
.ev-ph { position: relative; aspect-ratio: 4 / 5; background: #1a1a19 url("../assets/img/1.svg") center / 26% no-repeat; overflow: hidden; }
.ev-ph img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.ev:hover .ev-ph img { transform: scale(1.04); }
.ev-date { position: absolute; left: 12px; top: 12px; display: flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 10px 9px;
  border-radius: 14px; background: #fff; color: #1e1e1e; box-shadow: 4px 5px 0 var(--accent); line-height: 1; }
.ev-date b { font-size: 26px; font-weight: 800; }
.ev-date span { font-size: 11px; font-weight: 700; margin-top: 3px; }
.ev-date i { font-style: normal; font-size: 10.5px; color: #8a8a85; margin-top: 2px; text-transform: uppercase; letter-spacing: .08em; }
.ev-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.ev-body h3 { font-size: 18px; font-weight: 800; line-height: 1.2; }
.ev-time { color: var(--accent); font-size: 13px; font-weight: 700; }
.ev-note, .ev-text { color: var(--soft); font-size: 13px; line-height: 1.45; }
.ev-btn { margin-top: auto; align-self: flex-start; padding: 11px 16px; border-radius: 12px; background: #fff; color: #1e1e1e; font-size: 12.5px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; text-decoration: none; box-shadow: 4px 5px 0 var(--accent); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.ev-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--accent); }
.ev.is-past { opacity: .7; }
.ev.is-past .ev-ph img { filter: grayscale(.6); }
.ev-h2 { font-size: clamp(20px, 5vw, 30px); font-weight: 800; margin: 34px 0 14px; letter-spacing: .02em; }
.ev-grid--past { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.ev-grid--past .ev-ph { aspect-ratio: 1 / 1; }
.ev-grid--past .ev-body h3 { font-size: 15px; }
.ev-soon { color: var(--soft); font-size: 15px; padding: 10px 0 0; }
.has-events #z972628171 { display: none; }
@media (min-width: 600px) { .ev-in { padding: 0 24px; } .ev-grid { gap: 18px; } }
@media (min-width: 960px) { .ev-in { padding: 0 32px; } .ev-wrap { padding-bottom: 80px; } }

.co-zone[hidden], .co-pick[hidden], .co-off[hidden], .co-err[hidden], .co-deliv[hidden], .bf-dep[hidden], .bf-err[hidden] { display: none !important; }
.co-mode { min-width: 0; }

/* ---------- главная: кнопка брони — на месте кнопки из исходного макета ----------
   Под надписью о депозите в зеро-блоке лежит тёмная «жёсткая тень» кнопки (элемент 1741358710436).
   Кнопку ставим на неё с тем же сдвигом, что у кнопки «Меню доставки» на первом экране;
   нажатие — как у остальных кнопок (кнопка −6/−7, тень +6/+7). Координаты — в пикселях макета
   относительно формы (форма 1741354626688). На < 640 тени в макете нет — кнопка остаётся в форме.
   На странице «События» места под кнопку нет — там раскладка общая. */
@media (min-width: 640px) {
  #z986566576 .booking-form {
    position: relative; grid-template-columns: repeat(6, minmax(0, 1fr));
    grid-template-areas: "name name name phone phone phone" "date date time time guests guests" "agree agree agree agree agree agree"
                         "dep dep dep dep dep dep" "err err err err err err";
  }
  #z986566576 .bf-submit {
    position: absolute; left: 189px; top: 226px; width: 148px; height: 25px; min-width: 0; padding: 0;
    border-radius: 3px; box-shadow: none; background: #fff; color: #000;
    font: 700 9px var(--t-text-font); letter-spacing: .04em;
    transition: transform .2s ease-out, background .2s, color .2s;
  }
  #z986566576 .bf-submit:hover { transform: translate(-2px, -2px); box-shadow: none; }
  #z986566576 .bf-submit:active, #z986566576 .bf-submit.pressed { transform: translate(-6px, -7px); box-shadow: none; }
}
@media (min-width: 960px) {
  #z986566576 .bf-submit { left: 250px; top: 319px; width: 235px; height: 40px; border-radius: 5px; font-size: 15px; }
}
@media (min-width: 1200px) {
  #z986566576 .bf-submit { left: 282px; top: 329px; width: 260px; height: 45px; font-size: 16px; }
}

/* ============================================================
   ЛИЧНЫЙ КАБИНЕТ (account.html) и кабинет в корзине
   ============================================================ */
.acc-page { padding: 92px 0 64px; min-height: 70vh; overflow-x: clip; }   /* анимации не должны раздвигать страницу вбок на телефоне */
@keyframes accIn { from { opacity: 0; transform: translateY(12px); } }
.acc-wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }
.acc-loading { color: var(--muted); padding: 40px 0; text-align: center; }
.acc-h1 { font-size: clamp(28px, 7.5vw, 46px); font-weight: 800; line-height: 1.05; letter-spacing: .01em; }
.acc-h2 { font-size: 18px; font-weight: 800; margin-bottom: 14px; }
.acc-lead { color: var(--soft); font-size: 14.5px; line-height: 1.5; margin: 12px 0 18px; }
.acc-muted { color: var(--muted); font-size: 13px; line-height: 1.5; }
.acc-muted a { color: var(--accent); }
.acc-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 16px; margin-bottom: 14px; }
.acc-notice { padding: 12px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.acc-notice.is-ok { background: rgba(76, 194, 127, .12); border: 1px solid rgba(76, 194, 127, .35); color: #b6efcd; }
.acc-notice.is-bad { background: rgba(255, 90, 80, .1); border: 1px solid rgba(255, 90, 80, .35); color: #ffb1aa; }
.acc-notice.is-warn { background: rgba(208, 89, 0, .1); border: 1px solid rgba(208, 89, 0, .4); color: #ffcba4; }
.acc-link { background: none; border: 0; padding: 6px 0; color: var(--accent); font: 600 13px var(--t-text-font); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.acc-link:disabled { opacity: .5; cursor: default; }

/* вход по коду из письма (без пароля) */
.acc-auth { max-width: 520px; margin: 0 auto; }
.acc-how { color: var(--muted); font-size: 12.5px; line-height: 1.5; margin: -2px 0 10px; }
.acc-form#fCode, .acc-form#fMail { animation: accIn .35s var(--ease-out) both; }
.acc-sent { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: var(--soft); }
.acc-sent b { color: #fff; word-break: break-all; }
.acc-auth .acc-sent .acc-link { display: inline; margin: 0; padding: 0; }
.co-f input.acc-code {
  height: 64px; font-size: 30px; font-weight: 700; text-align: center; letter-spacing: .45em; padding-left: .45em;
  font-variant-numeric: tabular-nums; caret-color: var(--accent);
}
.co-f input.acc-code::placeholder { color: rgba(255, 255, 255, .14); }
.acc-auth .acc-resend { margin-top: 14px; }
.acc-resend:disabled { text-decoration: none; color: var(--muted); opacity: 1; }
.acc-spam { text-align: center; margin-top: 8px; font-size: 12px; }
.acc-fill { display: grid; gap: 6px; border-color: rgba(208, 89, 0, .45); background: linear-gradient(160deg, rgba(208, 89, 0, .09), transparent 60%), var(--surface); }
.acc-fill > b { font-size: 16px; }
.acc-fill .co-grid { margin-top: 8px; }
.acc-fill .co-f { margin-bottom: 4px; }
.acc-fill .acc-btn2 { justify-self: start; }
.acc-tabs, .acc-nav {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; padding: 4px; margin-bottom: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
}
.acc-tabs[hidden] { display: none; }
.acc-tabs button, .acc-nav button {
  height: 42px; border: 0; border-radius: 10px; background: none; color: var(--soft); cursor: pointer;
  font: 700 13.5px var(--t-text-font); letter-spacing: .02em; transition: background .25s, color .25s;
}
.acc-tabs button.on, .acc-nav button.on { background: var(--accent); color: #fff; box-shadow: 0 6px 18px -8px rgba(208, 89, 0, .8); }
.acc-nav button i { font-style: normal; font-size: 11px; opacity: .8; }
.acc-form[hidden] { display: none; }
.acc-form .co-chk small { color: var(--muted); }
.acc-btn { width: 100%; border: 0; cursor: pointer; font-family: inherit; margin-top: 6px; }
.acc-btn.is-busy, .acc-btn2.is-busy { opacity: .7; pointer-events: none; }
.acc-auth .acc-link { display: block; margin: 12px auto 0; }
.acc-btn2 {
  height: 46px; padding: 0 20px; border-radius: 12px; border: 1.5px solid var(--line-2); background: none; color: #fff;
  font: 700 14px var(--t-text-font); cursor: pointer; transition: border-color .2s, background .2s;
}
.acc-btn2:hover { border-color: var(--accent); }
.acc-btn2.is-del { border-color: rgba(255, 90, 80, .5); color: #ff9b92; margin-top: 4px; }

/* шапка кабинета */
.acc-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.acc-top .acc-muted { margin-top: 8px; word-break: break-word; }
.acc-out { flex: none; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line-2); background: none; color: var(--soft); font: 600 13px var(--t-text-font); cursor: pointer; }
.acc-out:hover { color: #fff; border-color: #fff; }
.acc-nav { position: sticky; top: 70px; z-index: 5; background: rgba(38, 38, 36, .92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.acc-empty { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 40px 16px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.acc-empty b { color: #fff; font-size: 18px; }
.acc-empty .ce-btn { margin-top: 8px; }

/* заказы */
.acc-order { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin-bottom: 12px; animation: accIn .4s var(--ease-out) both; }
.acc-order header { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 12px; }
.acc-order header div { display: flex; flex-direction: column; gap: 3px; }
.acc-order header b { font-size: 16px; }
.acc-order header span { font-size: 12.5px; color: var(--muted); }
.acc-order .st { flex: none; font-style: normal; font-size: 11.5px; font-weight: 700; padding: 6px 10px; border-radius: 99px; white-space: nowrap; }
.st-new { background: rgba(208, 89, 0, .15); color: #ffb27a; }
.st-done { background: rgba(76, 194, 127, .14); color: #8fe0b2; }
.st-cancel { background: rgba(255, 255, 255, .07); color: var(--muted); }
.st-pay { background: rgba(255, 196, 0, .13); color: #ffd36b; }
.acc-paid { display: block; font-size: 11.5px; font-weight: 600; color: #8fe0b2; margin-top: 2px; }
.acc-items { list-style: none; display: grid; gap: 6px; font-size: 13.5px; }
.acc-items li { display: flex; justify-content: space-between; gap: 12px; }
.acc-items em { font-style: normal; color: var(--muted); white-space: nowrap; }
.acc-items b { font-weight: 600; white-space: nowrap; }
.acc-items .acc-more { justify-content: flex-start; }
.acc-where { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.acc-order footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.acc-total { font-size: 20px; font-weight: 800; }
.acc-repeat {
  height: 44px; padding: 0 18px; border: 0; border-radius: 12px; cursor: pointer;
  background: #fff; color: #1e1e1e; font: 800 12.5px var(--t-text-font); letter-spacing: .06em; text-transform: uppercase;
  box-shadow: 4px 5px 0 var(--accent); transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.acc-repeat:hover { transform: translate(-2px, -2px); box-shadow: 6px 7px 0 var(--accent); }
.acc-repeat:active { transform: translate(3px, 3px); box-shadow: 1px 2px 0 var(--accent); }
.acc-repeat:disabled { opacity: .6; }
.acc-choice { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; padding: 12px; border-radius: 14px; background: rgba(208, 89, 0, .1); font-size: 13px; color: #ffcba4; }
.acc-choice[hidden] { display: none; }
.acc-choice span { flex-basis: 100%; }
.acc-choice button { flex: 1; height: 40px; border-radius: 10px; border: 0; cursor: pointer; font: 700 13px var(--t-text-font); background: var(--accent); color: #fff; }
.acc-choice button + button { background: rgba(255, 255, 255, .1); }

/* адреса */
.acc-hint { margin-bottom: 12px; }
.acc-addr { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; margin-bottom: 10px; display: grid; gap: 12px; }
.acc-addr-t { display: flex; flex-direction: column; gap: 4px; }
.acc-addr-t b { font-size: 15px; }
.acc-addr-t span { font-size: 14px; color: var(--soft); }
.acc-addr-t small { font-size: 12px; color: #8fe0b2; }
.acc-addr-t small + small, .acc-addr-t small.is-out { color: var(--muted); }
.acc-addr-a { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.acc-labels { display: flex; flex-wrap: wrap; gap: 6px; }
.acc-labels button { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: none; color: var(--soft); font: 600 12px var(--t-text-font); cursor: pointer; }
.acc-labels button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.acc-del { background: none; border: 0; color: #ff9b92; font: 600 12.5px var(--t-text-font); cursor: pointer; padding: 6px 0; }

/* профиль */
.acc-switch { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 14px; cursor: pointer; font-size: 13px; line-height: 1.45; color: var(--soft); }
.acc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.acc-switch i { flex: none; position: relative; width: 44px; height: 26px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line-2); transition: background .25s; margin-top: 2px; }
.acc-switch i::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .3s var(--spring); }
.acc-switch input:checked + i { background: var(--accent); border-color: var(--accent); }
.acc-switch input:checked + i::after { transform: translateX(18px); }
.acc-switch input:focus-visible + i { box-shadow: 0 0 0 4px rgba(208, 89, 0, .3); }
.acc-switch b { display: block; color: #fff; font-size: 14px; margin-bottom: 2px; }
.acc-danger summary { cursor: pointer; color: #ff9b92; font-size: 13px; font-weight: 600; margin-top: 8px; }
.acc-danger details[open] summary { margin-bottom: 12px; }
.co-f input:disabled { opacity: .55; }

@media (min-width: 640px) {
  .acc-page { padding-top: 120px; }
  .acc-wrap { padding: 0 24px; }
  .acc-card { padding: 22px 24px; }
  .acc-addr { grid-template-columns: 1fr auto; align-items: center; }
}
@media (min-width: 960px) {
  .acc-page { padding-top: 150px; padding-bottom: 90px; }
  .acc-nav { top: 116px; }
}

/* значок кабинета в шапке: точка — гость вошёл */
#z957171471 [data-elem-id="1779927230246000001"].acc-on::after {
  content: ''; position: absolute; right: 6%; top: 8%; width: 22%; height: 22%; min-width: 6px; min-height: 6px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px #1e1e1e;
}

/* кабинет в корзине: строка «вы вошли / войдите», сохранённые адреса, «сохраните заказ» */
.co-acc { margin: -4px 0 14px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.co-acc[hidden] { display: none; }
.co-acc a { color: var(--accent); font-weight: 600; }
.co-acc b { color: var(--soft); }
.co-saved { margin-bottom: 12px; }
.co-saved[hidden] { display: none; }
.co-saved-t { display: block; font-size: 12.5px; font-weight: 600; color: var(--soft); margin-bottom: 6px; }
.co-saved-list { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
.co-saved-list::-webkit-scrollbar { display: none; }
.co-chip {
  flex: none; max-width: 230px; display: flex; flex-direction: column; gap: 2px; text-align: left;
  padding: 10px 12px; border-radius: 14px; border: 1.5px solid var(--line-2); background: var(--surface); color: #fff;
  font-family: inherit; cursor: pointer; transition: border-color .2s, background .2s;
}
.co-chip b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-chip small { font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.co-chip.on { border-color: var(--accent); background: rgba(208, 89, 0, .12); }
.co-chip-new { border-style: dashed; }
@media (min-width: 768px) { .co-saved-list { margin: 0 -24px; padding: 2px 24px 4px; } }
.ok-acc { display: flex; flex-direction: column; align-items: center; gap: 8px; max-width: 340px; padding: 14px 16px; border-radius: 16px;
  background: rgba(208, 89, 0, .1); border: 1px solid rgba(208, 89, 0, .35); font-size: 13px; line-height: 1.45; color: var(--soft); }
.ok-acc[hidden] { display: none; }
.ok-acc button.ok-acc-btn { border: 0; font: inherit; font-weight: 700; cursor: pointer; }
.ok-acc button.ok-acc-btn.ok-acc-alt { background: none; border: 1.5px solid rgba(255, 255, 255, .28); color: #fff; }
.ok-acc button.ok-acc-btn:disabled { opacity: .6; cursor: default; }
.ok-view.is-bad .ok-ico { color: #ff8a7a; }
.ok-view.is-wait .ok-ico { color: var(--accent); }
.ok-spin { display: block; width: 100%; height: 100%; border-radius: 50%; border: 4px solid rgba(208, 89, 0, .22); border-top-color: var(--accent); animation: okSpin .9s linear infinite; }
@keyframes okSpin { to { transform: rotate(360deg); } }
/* оплата в оформлении */
.co-pay { margin: 2px 0 12px; }
.co-pay[hidden], .co-mail[hidden], .co-pay-note[hidden] { display: none; }
.co-pay-t { display: block; font-size: 12.5px; font-weight: 600; color: var(--soft); margin-bottom: 6px; }
.co-pays { margin-bottom: 10px; }
.co-pays .co-mode { min-height: 54px; }
.co-pay-note { margin: -2px 0 10px; padding: 9px 12px; border-radius: 12px; background: rgba(255, 196, 0, .1); color: #ffd36b; font-size: 12.5px; line-height: 1.45; }
.ok-acc b { color: #fff; font-size: 14.5px; }
.ok-acc a { color: var(--accent); font-weight: 700; }
.ok-acc .ok-acc-btn { margin-top: 4px; padding: 11px 18px; border-radius: 12px; background: var(--accent); color: #fff; text-decoration: none; }
.ok-acc .ok-acc-note { font-size: 11.5px; color: var(--muted); }
.nw { white-space: nowrap; }

/* ---------- форма брони на телефоне (< 480): настоящие пиксели, ровные отступы ----------
   Класс .bf-m и масштаб ставит js/app.js (fitMobile): форма уменьшена обратно из макета, по центру рамки. */
.booking-form.bf-m {
  transform-origin: 0 0;
  gap: clamp(9px, 2.8vw, 12px) 10px;
  grid-template-columns: 1.15fr 1fr;
  grid-template-areas: "name name" "phone phone" "date date" "time guests" "agree agree" "dep dep" "note note" "err err" "submit submit";
}
.booking-form.bf-m input:not([type="checkbox"]), .booking-form.bf-m select {
  height: clamp(44px, 12vw, 50px); padding: 0 14px; border-radius: 12px; font-size: 16px;
}
.booking-form.bf-m select { padding-right: 34px; }
.booking-form.bf-m .bf-sel::after { right: 14px; width: 8px; height: 8px; }
.booking-form.bf-m .bf-agree { flex-direction: column; gap: 9px; margin-top: 2px; }
.booking-form.bf-m .bf-chk { font-size: 13px; gap: 10px; align-items: flex-start; line-height: 1.35; }
.booking-form.bf-m .bf-chk i { width: 20px; height: 20px; border-radius: 6px; margin-top: -1px; }
.booking-form.bf-m .bf-chk i::after { width: 9px; height: 5px; }
.booking-form.bf-m .bf-note { grid-area: note; font-size: 12px; line-height: 1.45; color: rgba(255, 255, 255, .72); margin: 2px 0; }
.booking-form.bf-m .bf-dep, .booking-form.bf-m .bf-err { font-size: 13px; }
.booking-form.bf-m .bf-submit {
  justify-self: stretch; width: auto; min-width: 0; height: 50px; margin: 4px 5px 5px 0; border-radius: 12px;
  font-size: 14px; letter-spacing: .12em; box-shadow: 5px 6px 0 0 var(--accent);
}
.booking-form.bf-m.is-sent .bf-done { min-height: 180px; font-size: 16px; }
.bf-note[hidden] { display: none; }
/* надпись о депозите из макета — внутри формы, исходную прячем */
#z986566576.bf-m-on [data-elem-id="1744299370362"] { visibility: hidden; }

.venue-map { background: #171717; color: #fff; }
.venue-map-frame { position: relative; height: clamp(245px, 34vw, 430px); }
.venue-map-frame iframe, .venue-map-canvas { width: 100%; height: 100%; border: 0; }
.venue-map-canvas { position: absolute; inset: 0; visibility: hidden; }
.venue-map-canvas.is-ready { visibility: visible; }
.venue-map-address { display: block; padding: 12px 5%; color: inherit; font: 500 14px/1.5 var(--t-text-font, sans-serif); }

/* Правовые страницы и ссылки гостевых форм. */
.footer-legal { background: #1e1e1e; color: #e7e5df; padding: 18px 20px 26px; }
.footer-legal nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 26px; }
.footer-legal a { display: inline-flex; align-items: center; min-height: 36px; color: inherit; font-size: 15px; }
.footer-legal a, .acc-legal a, .pd-open { text-decoration: underline; text-underline-offset: .18em; }
.legal-date { color: #c3c0bb; font-size: 14px; margin-bottom: 28px; }
.text-body { overflow-wrap: anywhere; }
.text-body h2 { font-size: clamp(20px, 2.4vw, 26px); line-height: 1.25; color: #f2f1e9; margin: 30px 0 12px; }
.text-body p + p { margin-top: 12px; }
.acc-legal { font-size: 13px; line-height: 1.55; }
.acc-legal a, .pd-dialog a { color: inherit; }
.pd-open { display: inline; border: 0; padding: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.pd-dialog { box-sizing: border-box; width: min(94vw, 38rem); max-height: 85vh; margin: auto; padding: 24px; overflow-y: auto; color: #eee; background: #242424; border: 1px solid #676762; border-radius: 12px; }
.pd-dialog::backdrop { background: rgb(0 0 0 / 65%); }
.pd-dialog h2 { font-size: 21px; line-height: 1.25; }
.pd-dialog p { margin: 14px 0; font-size: 15px; line-height: 1.5; }
.pd-close { padding: 9px 16px; border: 1px solid currentColor; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; }
