/* ============================================================
   Витрина заведения (storefront)
   ============================================================ */

.store-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.store-header .inner {
  display: flex; align-items: center; gap: 14px;
  /* Высота шапки на компьютере фиксированная, на телефоне её задаёт адаптив.
     Переменная --header-h — измеренная высота шапки (её обновляет скрипт):
     от неё липнет полоса разделов, поэтому саму шапку от неё не считаем. */
  height: 64px;
  max-width: var(--container); margin: 0 auto; padding: 0 16px;
}
.store-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 17px; letter-spacing: -.01em; min-width: 0; }
.store-brand .logo {
  width: 38px; height: 38px; border-radius: 12px; object-fit: cover;
  background: var(--brand-soft); color: color-mix(in srgb, var(--brand) 60%, #000);
  display: flex; align-items: center; justify-content: center; font-weight: 800; flex: 0 0 auto;
}
.store-brand .name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.address-btn {
  flex: 1 1 auto; min-width: 0;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid transparent;
  cursor: pointer; text-align: left; transition: all var(--transition);
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .address-btn:hover { background: var(--surface-3); }
}

/* Адрес — одной строкой: «Москва, Лесная улица, 63с1». Город не сжимается,
   адрес обрезается многоточием, поэтому длинный адрес не растягивает шапку. */
.address-btn .grow { display: flex; align-items: baseline; gap: 4px; min-width: 0; }
.address-btn .label { flex: 0 0 auto; font-size: 12px; color: var(--muted); font-weight: 650; line-height: 1.2; white-space: nowrap; }
.address-btn .label::after { content: ","; }
.address-btn .value { flex: 1 1 auto; min-width: 0; font-size: 14px; font-weight: 650; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.address-btn .pin { flex: 0 0 auto; width: 20px; height: 20px; color: var(--brand); }
/* Без города и без адреса подпись города не нужна — остаётся «Укажите адрес». */
.address-btn.no-city .label, .address-btn.no-address .label { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.cart-btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--ink); color: #fff; border: none;
  padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14.5px;
  cursor: pointer; transition: transform var(--transition), background var(--transition);
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .cart-btn:hover { transform: translateY(-1px); background: #24272c; }
}

.cart-btn .count {
  background: var(--brand); color: var(--brand-ink);
  border-radius: 999px; min-width: 22px; padding: 1px 6px; font-size: 12.5px; font-weight: 800;
  text-align: center;
}

/* ---------- обложка ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero-cover { position: absolute; inset: 0; object-fit: cover; width: 100%; height: 100%; opacity: .42; }
/* Обложки нет — «стена» фирменного цвета, освещённая сверху-слева: свет
   уходит в тень внутри одного цвета, без грязных переходов к чёрному. */
.hero-fallback {
  position: absolute; inset: 0;
  background:
    radial-gradient(130% 220% at 12% -10%, color-mix(in srgb, var(--brand) 84%, #fff) 0%, transparent 54%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 94%, #fff) 0%, var(--brand) 42%, color-mix(in srgb, var(--brand) 72%, #000) 100%);
}
.hero-inner {
  position: relative; z-index: 1; max-width: var(--container); margin: 0 auto;
  padding: 36px 16px 30px; color: #fff;
  display: flex; gap: 20px; align-items: center;
}
.hero-logo {
  width: 96px; height: 96px; border-radius: 26px; flex: 0 0 auto;
  background: rgba(255, 255, 255, .92); object-fit: cover;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 800; color: var(--ink);
  box-shadow: var(--shadow-2);
}
.hero h1 { font-size: 34px; margin-bottom: 6px; }
.hero .tagline { opacity: .9; margin-bottom: 14px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-facts .fact {
  background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .28);
  padding: 7px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 650;
  backdrop-filter: blur(10px) saturate(140%);
  font-variant-numeric: tabular-nums;
}
.hero-facts .fact.ok { background: rgba(18, 183, 106, .25); border-color: rgba(18, 183, 106, .5); }
.hero-facts .fact.warn { background: rgba(247, 144, 9, .25); border-color: rgba(247, 144, 9, .5); }

.closed-banner {
  max-width: var(--container); margin: 16px auto 0; padding: 14px 18px;
  background: var(--warn-soft); border: 1px solid color-mix(in srgb, var(--warn) 30%, #fff);
  border-radius: var(--radius); color: #b54708; font-weight: 650;
  display: flex; gap: 10px; align-items: center;
}

/* ---------- навигация по категориям ---------- */
.cat-nav {
  position: sticky; top: var(--header-h); z-index: 30;
  background: rgba(246, 247, 249, .95); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.cat-nav .wrap { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 16px; }
.cat-nav .inner {
  padding: 10px 0;
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
  scroll-behavior: smooth; cursor: grab;
}
.cat-nav .inner::-webkit-scrollbar { display: none; }
.cat-nav .inner.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }
/* Чип не сжимается и не переносит слова: длинный список разделов прокручивается,
   а «Вторые блюда» остаются одной строкой, как в Яндекс.Еде. */
.cat-nav .chip { flex: 0 0 auto; }
/* Стрелки показываем только когда список длиннее полосы. */
.cat-nav-more {
  position: absolute; top: 50%; transform: translateY(-50%); right: 6px; z-index: 2;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer; display: none;
  align-items: center; justify-content: center; box-shadow: var(--shadow-1);
}
.cat-nav-more.is-visible { display: inline-flex; }
.cat-nav-more.is-left { left: 6px; right: auto; }
.cat-nav-more.is-left .ic { transform: rotate(180deg); }

/* ---------- блюда ---------- */
.menu-section { padding: 28px 0 8px; }
.menu-section h2 { font-size: 24px; margin-bottom: 16px; }
.dish-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.dish-card {
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; cursor: pointer; position: relative;
  transition: transform var(--transition);
  display: flex; flex-direction: column;
}
.dish-media { position: relative; aspect-ratio: 16 / 10; background: var(--surface-2); overflow: hidden; }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .dish-card:hover .dish-media img { transform: scale(1.04); }
}

/* Плейсхолдер блюда без фото: тёплая подложка с блик бренда и «тарелка»
   в белом круге — вместо серой заглушки с иконкой документа. */
.dish-media .placeholder, .dish-modal-media .placeholder {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 40px; color: var(--muted);
  background:
    radial-gradient(120% 140% at 20% 0%, color-mix(in srgb, var(--brand) 9%, var(--surface-2)) 0%, transparent 58%),
    linear-gradient(160deg, var(--surface-2), var(--surface-3));
}
.dish-media .placeholder .ic, .dish-modal-media .placeholder .ic {
  width: 26px; height: 26px; padding: 15px; box-sizing: content-box;
  background: var(--surface); border-radius: 50%;
  box-shadow: var(--shadow-1); color: var(--ink-2); stroke-width: 1.6;
}
.dish-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.dish-tag {
  background: var(--ink); color: #fff; border-radius: 999px; padding: 4px 9px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
}
/* Служебная метка «общего блюда сети» — для панели, покупателю она ничего
   не говорит, поэтому на витрине не показываем. */
.dish-tag-shared { display: none; }
.dish-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1 1 auto; }
.dish-name { font-weight: 700; font-size: 16px; }
.dish-desc {
  color: var(--muted); font-size: 13.5px; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.dish-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; }
.dish-price { font-weight: 800; font-size: 16.5px; display: flex; align-items: baseline; gap: 8px; }
.add-btn {
  width: 40px; height: 40px; border-radius: 14px; border: none; cursor: pointer;
  background: var(--surface); color: var(--ink); font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: transform var(--transition), background var(--transition);
  box-shadow: 0 6px 14px color-mix(in srgb, var(--brand) 30%, transparent);
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .add-btn:hover { transform: scale(1.06); }
}

.dish-card .stopped-note { color: var(--danger); font-weight: 650; font-size: 13px; }

/* ---------- модалка блюда ---------- */
.dish-modal-card { max-width: 620px; position: relative; }
/* Фото — как в широкой карточке каталога: 4:3 со скруглением и отступом от краёв. */
.dish-modal-media {
  position: relative; aspect-ratio: 4 / 3; background: var(--surface-2);
  margin: 10px 10px 0; border-radius: var(--radius); overflow: hidden;
}
.dish-modal-media img { width: 100%; height: 100%; object-fit: cover; }
/* Блюдо без фото — колонку не показываем: пустая серая плашка выглядит сломанной. */
.dish-modal-card.is-nophoto .dish-modal-media { display: none; }
.dish-modal-close { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(255,255,255,.92); box-shadow: var(--shadow-1); }
.option-group { margin-bottom: 18px; }
.option-group-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.option-group-title .name { font-weight: 700; }
.option-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer;
  margin-bottom: 8px; transition: all var(--transition); background: var(--surface);
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .option-row:hover { border-color: var(--line-2); background: var(--surface-2); }
}

.option-row input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--brand); }
.option-row.is-selected { border-color: var(--brand); background: var(--brand-soft); }
/* Название варианта слева, переключатель справа — как в Яндекс Еде. */
.option-row .option-name { display: flex; align-items: baseline; gap: 8px; min-width: 0; flex: 1 1 auto; }
.option-row .delta { font-weight: 600; color: var(--muted); white-space: nowrap; }
.dish-total-bar {
  display: flex; align-items: center; gap: 12px; justify-content: space-between;
  margin-top: 8px;
}

/* ---------- корзина ---------- */
.cart-head { padding: 18px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.cart-body { flex: 1 1 auto; overflow-y: auto; padding: 16px 20px; }
.cart-line { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: none; }
.cart-line .thumb {
  width: 56px; height: 56px; border-radius: 12px; background: var(--surface-2); flex: 0 0 auto;
  overflow: hidden; display: flex; align-items: center; justify-content: center; font-size: 22px;
}
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .title { font-weight: 650; font-size: 14.5px; }
.cart-line .opts { color: var(--muted); font-size: 13px; }
.cart-line .price { font-weight: 750; white-space: nowrap; }
.cart-foot { border-top: 1px solid var(--line); padding: 16px 20px 20px; background: var(--surface); }
.cart-note { background: var(--brand-soft); border: 1px dashed var(--brand-line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 13px; font-weight: 650; color: color-mix(in srgb, var(--brand) 45%, #000); margin-bottom: 12px; }
.cart-note.is-ok { background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 35%, #fff); color: #067647; }
.cart-note.is-warn { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 30%, #fff); color: #b42318; }
.sum-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; padding: 4px 0; }
.sum-row.total { font-size: 17px; font-weight: 800; padding-top: 10px; }
.sum-row .val { font-weight: 700; }

.cart-bar {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px;
  display: none; align-items: center; gap: 12px; justify-content: space-between;
  background: var(--ink); color: #fff; border-radius: var(--radius-lg);
  padding: 12px 16px; box-shadow: var(--shadow-3); cursor: pointer;
  border: none; width: auto;
}
.cart-bar .cb-total { font-weight: 800; font-size: 16px; }
.cart-bar .cb-count { background: var(--brand); color: var(--brand-ink); border-radius: 999px; padding: 2px 9px; font-weight: 800; font-size: 13px; }

/* ---------- подсказки адреса (как в Яндекс.Еде) ---------- */
.addr-search { position: relative; margin-bottom: 10px; }
.addr-search .ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.addr-search .input { padding-left: 44px; padding-right: 44px; height: 48px; border-radius: 12px; }
.addr-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: none; background: none; cursor: pointer; color: var(--muted); padding: 6px; }
.addr-clear.is-hidden { display: none; }
.addr-suggestions {
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
  box-shadow: var(--shadow-2); max-height: 312px; overflow-y: auto; margin-bottom: 12px;
}
.addr-suggestions.is-hidden { display: none; }
.addr-suggestion {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; cursor: pointer;
  background: none; border: none; border-bottom: 1px solid var(--line); padding: 12px 14px;
}
.addr-suggestion:last-child { border-bottom: none; }
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .addr-suggestion:hover { background: var(--surface-2); }
}

.addr-dot { width: 16px; height: 16px; border-radius: 50%; border: 1.8px solid var(--ink-2); flex: none; }
.addr-title { display: block; font-size: 14.5px; color: var(--ink); line-height: 1.3; }
.addr-suggestion .addr-title::after { content: ""; }
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .addr-suggestion:hover .addr-title { color: var(--link, #1a73e8); }
}

.addr-subtitle { display: block; color: var(--muted); font-size: 12.5px; }

/* ---------- выбор города ---------- */
.city-current {
  display: flex; align-items: center; gap: 10px; padding: 13px 14px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface-2);
}
.city-picker .chip { cursor: pointer; }

/* ---------- статус заказа ---------- */
.order-hero { text-align: center; padding: 34px 20px; }
.order-hero .emoji { font-size: 54px; }

/* ---------- отзывы и рейтинг ---------- */
.review-stars { display: flex; gap: 6px; margin: 6px 0 2px; }
.review-stars .star {
  font-size: 30px; line-height: 1; background: none; border: none; padding: 0;
  color: var(--line-2); cursor: pointer; transition: color var(--transition), transform var(--transition);
}
.review-stars .star.is-hover, .review-stars .star.is-on { color: #f5a623; }
.review-stars.is-static .star { cursor: default; font-size: 24px; }
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .review-stars .star:hover { transform: scale(1.08); }
}

.rating-badge { display: inline-flex; align-items: center; gap: 4px; font-weight: 750; font-size: 13.5px; }
.rating-badge .ic { width: 15px; height: 15px; color: #f5a623; }
.rating-badge .cnt { color: var(--muted); font-weight: 600; }

/* ---------- иконки ---------- */
.ic { width: 18px; height: 18px; display: inline-block; vertical-align: -3px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 14px; height: 14px; }
.ic-lg { width: 24px; height: 24px; }
.fact .ic, .meta .ic { color: var(--muted); }

/* ---------- счётчик товара как в Яндекс.Еде ---------- */
.dish-card .counter {
  display: inline-flex; align-items: center; gap: 10px; background: var(--surface-2);
  border-radius: 999px; padding: 3px 4px; height: 36px; box-sizing: border-box;
}
.dish-card .counter.is-floating { background: var(--surface); box-shadow: var(--shadow-1); }
.dish-card .counter button {
  width: 30px; height: 30px; border-radius: 50%; border: none; background: none; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2);
  transition: background var(--transition), color var(--transition);
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .dish-card .counter button:hover { background: var(--surface-3); }
}

.dish-card .counter button.is-primary { background: var(--brand); color: var(--brand-ink); }
.dish-card .counter .value { min-width: 16px; text-align: center; font-weight: 750; font-size: 15px; }
.dish-card .add-btn.is-hidden { display: none; }
.dish-card .counter.is-hidden { display: none; }

/* ---------- пустая корзина ---------- */
.cart-empty { text-align: center; padding: 30px 22px 10px; }
.cart-empty .art { width: 168px; height: 168px; margin: 6px auto 14px; display: block; }
.cart-empty h3 { margin: 0 0 8px; font-size: 19px; font-weight: 800; line-height: 1.25; }
.cart-empty p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- прогресс до бесплатной доставки ---------- */
.free-delivery { margin: 0 0 12px; }
.free-delivery .head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.free-delivery .amount { font-weight: 800; font-size: 15px; }
.free-delivery .bar { position: relative; height: 8px; border-radius: 999px; background: var(--ok-soft); overflow: hidden; }
.free-delivery .bar i { display: block; height: 100%; border-radius: 999px; background: var(--ok); transition: width .3s ease; }
.free-delivery .tag {
  position: absolute; right: -2px; top: -22px; background: #12b76a; color: #fff; font-size: 11px;
  font-weight: 800; border-radius: 999px; padding: 3px 7px; white-space: nowrap;
}
.free-delivery .hint { margin: 12px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
.free-delivery .note { color: var(--muted); font-size: 12.5px; }
.free-delivery .truck { width: 34px; height: 34px; border-radius: 50%; background: var(--ok-soft); color: var(--ok-ink, #067647); display: inline-flex; align-items: center; justify-content: center; }
.order-hero h1 { margin: 10px 0 6px; }
.order-track { display: flex; gap: 8px; margin: 22px 0; }
.track-step { flex: 1 1 0; text-align: center; position: relative; }
.track-step .dot {
  width: 30px; height: 30px; border-radius: 50%; margin: 0 auto 8px;
  background: var(--surface-3); color: var(--muted);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}
.track-step.is-done .dot { background: var(--ok); color: #fff; }
.track-step.is-current .dot { background: var(--brand); color: var(--brand-ink); box-shadow: 0 0 0 6px var(--brand-soft); }
.track-step .t { font-size: 12.5px; font-weight: 650; color: var(--ink-2); }
.track-step.is-pending .t { color: var(--muted); }

/* ---------- лендинг сервиса ---------- */
.landing-hero { background: linear-gradient(135deg, var(--ink), #2b3038); color: #fff; padding: 64px 0; }
.landing-hero h1 { font-size: 40px; margin-bottom: 12px; }
.landing-hero p { opacity: .85; max-width: 620px; font-size: 17px; }
.rest-card { display: flex; gap: 14px; align-items: center; padding: 16px; }
.rest-card .logo { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; color: color-mix(in srgb, var(--brand) 60%, #000); overflow: hidden; }
.rest-card .logo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- авторизация ---------- */
.auth-wrap { max-width: 420px; margin: 48px auto; padding: 0 16px; }
.auth-card { padding: 28px; }
.auth-card h1 { font-size: 24px; margin-bottom: 6px; }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  /* Шапка телефона — одна строка: логотип, адрес, меню и действия. */
  .store-header .inner { height: auto; padding: 8px 12px; flex-wrap: nowrap; gap: 8px; }
  .store-brand .name { display: none; }
  /* Оценка заведения есть на самой витрине — в шапке она только отнимает место у адреса. */
  .store-brand .rating-badge { display: none; }
  .address-btn { order: 0; width: 0; padding: 7px 12px; gap: 8px; }
  /* На телефоне место дорого: город — своей строкой, адрес — под ним, тоже обрезается
     многоточием по ширине кнопки. */
  .address-btn .grow { flex-direction: column; align-items: stretch; gap: 0; }
  .address-btn .label { font-size: 11.5px; line-height: 1.15; }
  .address-btn .label::after { content: none; }
  .address-btn .value { width: 100%; max-width: 100%; font-size: 13.5px; line-height: 1.25; }
  /* Корзина на телефоне живёт в нижней панели (наезжает снизу, когда в корзине
     что-то есть): иконка в шапке только отнимает место у адреса. */
  .header-actions .cart-btn { display: none; }
  /* Витрина на телефоне: обложка — баннером сверху, логотип наезжает на её край,
     название крупно, факты — лентой, которую листают пальцем. */
  .hero-cover, .hero-fallback { inset: 0 0 auto; height: 150px; }
  .hero-cover { opacity: .9; }
  .hero::after {
    content: ""; position: absolute; z-index: 0; top: 0; left: 0; right: 0; height: 150px;
    background: linear-gradient(180deg, rgba(20, 22, 26, 0) 45%, rgba(20, 22, 26, .85) 100%);
  }
  .hero-inner { flex-direction: column; align-items: stretch; gap: 0; padding: 150px 16px 18px; }
  .hero-logo {
    width: 78px; height: 78px; border-radius: 24px; font-size: 28px; margin-top: -39px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .38);
  }
  .hero h1 { font-size: 26px; line-height: 1.15; letter-spacing: -.02em; margin: 14px 0 4px; }
  .hero .tagline { font-size: 14px; opacity: .82; margin-bottom: 12px; }
  .hero-facts { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 4px; }
  .hero-facts::-webkit-scrollbar { display: none; }
  .hero-facts .fact, .hero-facts .rating-badge { flex: 0 0 auto; }
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dish-desc { display: none; }
  .cart-bar.is-visible { display: flex; }
  /* Полоса разделов липнет под шапкой, как на компьютере: её отступ считает
     переменная --header-h, которую скрипт держит равной высоте шапки. */

  /* крупнее тапы на телефоне */
  .dish-card .counter { height: 40px; }
  .dish-card .counter button { width: 34px; height: 34px; }
  .stepper button { width: 36px; height: 36px; }
  .cart-line .thumb { width: 60px; height: 60px; }

  /* нижняя панель корзины — как в приложении: крупная кнопка + отступ под жест */
  .cart-bar {
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    min-height: 58px; padding: 12px 16px; border-radius: 18px;
  }
  .cart-bar .cb-label { font-size: 15.5px; font-weight: 700; }
  .cart-bar .cb-total { font-size: 17px; }

  /* корзина на телефоне — нижний лист с ручкой */
  .drawer {
    top: auto; left: 0; right: 0; bottom: 0; width: auto;
    height: min(92vh, 720px); border-radius: 20px 20px 0 0;
    transform: translateY(102%);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .drawer .cart-head { position: relative; padding-top: 22px; }
  .drawer .cart-head::before {
    content: ""; position: absolute; top: 9px; left: 50%; transform: translateX(-50%);
    width: 42px; height: 4px; border-radius: 999px; background: var(--line-2);
  }
  .drawer .cart-body { padding: 12px 16px; }
  .drawer .cart-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
}
@media (max-width: 420px) {
  .dish-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --- промокод, подарок и баллы в корзине ----------------------------- */
.promo-box { margin: 10px 0 6px; }
.promo-row { display: flex; align-items: center; gap: 8px; }
.promo-row .ic { color: var(--muted); flex: none; }
.promo-row .input { flex: 1; min-width: 0; }
.promo-error { color: var(--danger); font-size: 13px; margin-top: 6px; }
.promo-applied { display: grid; gap: 6px; margin-top: 10px; }
.promo-chip {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: var(--ok-soft); color: #05603a; font-size: 13.5px;
}
.promo-chip .badge { background: #fff; color: #05603a; }
.gift-box { margin-top: 12px; padding: 12px; border-radius: var(--radius-sm); background: var(--brand-soft); }
.gift-head { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.gift-option {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-xs);
  background: #fff; margin-bottom: 6px; cursor: pointer; font-size: 14px;
}
.gift-option:last-child { margin-bottom: 0; }
.points-box { margin-top: 12px; padding: 12px; border-radius: var(--radius-sm); background: #f4f3ff; }
.points-head { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--violet); }
.points-row { display: flex; align-items: center; gap: 10px; margin: 10px 0 4px; }
.points-row input[type=range] { flex: 1; accent-color: var(--violet); }
.sum-row.is-discount { color: var(--ok); }
.gift-note {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px;
  border-radius: var(--radius-sm); background: var(--brand-soft); font-size: 13.5px; font-weight: 600;
}

/* --- карта лояльности ------------------------------------------------- */
.loyalty-card {
  padding: 20px; border-radius: var(--radius-lg); color: #fff;
  background: linear-gradient(135deg, #1f2937, #4b5563); text-align: center;
}
.lc-head { display: flex; align-items: center; gap: 10px; text-align: left; }
.lc-head .ic { color: #f5a623; }
.lc-title { display: block; font-weight: 700; }
.lc-sub { display: block; font-size: 12.5px; opacity: .75; }
.lc-qr { margin: 18px auto 10px; width: 200px; height: 200px; background: #fff; border-radius: 16px; padding: 12px; }
.lc-qr svg { width: 100%; height: 100%; display: block; }
.lc-number { font-size: 20px; letter-spacing: 3px; font-weight: 700; }
.lc-barcode {
  display: flex; align-items: flex-end; justify-content: center; gap: 1px;
  height: 64px; margin: 14px auto 6px; padding: 8px 10px; background: #fff; border-radius: 10px; width: fit-content;
}
.lc-barcode i { display: block; height: 100%; background: #14161a; }
.lc-foot { font-size: 12.5px; opacity: .75; }
.loyalty-rules { margin: 0; padding-left: 18px; font-size: 14px; }
.loyalty-rules li { margin-bottom: 4px; }
.card-grid { display: grid; gap: 12px; }
.loyalty-tile {
  display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); color: inherit; text-decoration: none;
  transition: border-color var(--transition), transform var(--transition);
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .loyalty-tile:hover { border-color: var(--brand-line); transform: translateY(-1px); }
}

.loyalty-tile .ic { color: var(--brand); }
.rating-stars { color: #f5a623; letter-spacing: 1px; }
.review-answer { background: var(--surface-2, #fafbfc); border-radius: var(--radius-xs); padding: 8px 10px; font-size: 13.5px; }
.promo-code-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.promo-code-row code { background: var(--surface-2, #fafbfc); padding: 3px 8px; border-radius: 6px; }
.weekday-box ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.weekday-box label { display: flex; align-items: center; gap: 6px; font-size: 14px; }
.stat-card .stat-label { font-size: 13px; color: var(--muted); }
.stat-card .stat-value { font-size: 28px; font-weight: 700; }
.is-negative { color: var(--danger); }

/* --- плашки акций на витрине ------------------------------------------ */
.promo-strip { padding: 18px 0 6px; background: var(--bg); }
.promo-strip .inner { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 1fr); gap: 12px; overflow-x: auto; padding: 0 16px 6px; max-width: var(--container); margin: 0 auto; }
.promo-banner {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 18px;
  border-radius: var(--radius); color: #14161a; min-height: 96px; overflow: hidden;
}
/* Код показываем под описанием акции, а не сбоку — читается сверху вниз. */
.promo-banner:has(.promo-code) { flex-direction: column; align-items: flex-start; }
.promo-banner:has(.promo-code) .promo-text { width: 100%; }
.promo-banner:has(.promo-code) .promo-code { width: 100%; }
.promo-banner .promo-title { font-weight: 800; font-size: 17px; }
.promo-banner .promo-sub { font-size: 13.5px; opacity: .85; }
.promo-banner .promo-when { font-size: 12.5px; opacity: .7; margin-top: 4px; }
.promo-badge {
  position: absolute; top: 10px; right: 12px; background: #14161a; color: #fff;
  padding: 4px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
}
.promo-code {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .82); font-weight: 700; cursor: pointer; font-size: 13.5px;
}
.dish-sale {
  position: absolute; top: 10px; left: 10px; background: var(--danger); color: #fff;
  padding: 4px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800;
}
.price-now { color: var(--danger); font-weight: 700; }
.dish-old-price { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.dish-old-price > span:first-child { text-decoration: line-through; color: var(--muted); }
.dish-tag-sale { background: var(--danger-soft); color: var(--danger); }
@media (max-width: 720px) {
  .promo-strip .inner { grid-auto-flow: row; grid-auto-columns: auto; }
}

/* --- переключатель QR ⇄ штрихкод на карте ----------------------------- */
.lc-switch {
  display: inline-flex; gap: 4px; margin: 14px auto 4px; padding: 4px;
  background: rgba(255, 255, 255, .14); border-radius: 999px;
}
.lc-switch-btn {
  border: 0; cursor: pointer; padding: 7px 16px; border-radius: 999px;
  background: none; color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; opacity: .75;
  transition: background var(--transition), opacity var(--transition);
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .lc-switch-btn:hover { opacity: 1; }
}

.lc-switch-btn.is-active { background: #fff; color: #1f2937; opacity: 1; }
.lc-code { display: none; }
.lc-code.is-active { display: block; }

/* --- счётчик на карточке блюда (появляется только при добавлении) ----- */
.dish-actions { display: flex; align-items: center; justify-content: flex-end; }

/* --- личный кабинет: вкладки, заказы, промокоды, адреса ---------------- */
.profile-page { padding: 24px 16px 80px; max-width: 900px; }
.profile-head { display: flex; align-items: flex-start; gap: 12px; justify-content: space-between; margin-bottom: 14px; }
.profile-head h1 { margin: 0; }
.profile-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 14px; -webkit-overflow-scrolling: touch; }
.profile-tab {
  display: flex; align-items: center; gap: 8px; flex: none; padding: 11px 16px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none;
  font-size: 14.5px; font-weight: 600; transition: border-color var(--transition), background var(--transition);
}
.profile-tab .ic { width: 18px; height: 18px; color: var(--muted); }
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .profile-tab:hover { border-color: var(--brand-line); }
}

.profile-tab.is-active { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.profile-tab.is-active .ic { color: var(--brand-ink); }
.profile-tab-count {
  min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--surface-2, #f1f2f4);
  font-size: 12.5px; line-height: 22px; text-align: center; color: var(--ink);
}
.profile-tab.is-active .profile-tab-count { background: rgba(255, 255, 255, .6); }

.order-list { display: grid; gap: 10px; }
.order-card {
  display: block; padding: 14px 16px; border-radius: var(--radius-sm);
  color: inherit; text-decoration: none; transition: border-color var(--transition), transform var(--transition);
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .order-card:hover { border-color: var(--brand-line); transform: translateY(-1px); }
}

.order-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.order-card-items { font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.order-card-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }

.promo-list { display: grid; gap: 10px; }
.promo-item { padding: 14px 16px; border: 1px dashed var(--brand-line); border-radius: var(--radius-sm); background: var(--brand-soft); }
.promo-item.is-expired { opacity: .6; border-style: solid; background: var(--surface-2, #f7f8f9); }
.promo-item-code { font-size: 17px; font-weight: 800; letter-spacing: 1px; }

.address-list { display: grid; gap: 10px; }
.address-list.is-muted { opacity: .75; }
.address-item { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface); }
.address-item.is-default { border-color: var(--brand-line); background: var(--brand-soft); }
.address-item-head { display: flex; align-items: flex-start; gap: 10px; }
.address-item-head .ic { color: var(--brand); margin-top: 2px; }
.address-item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.address-item-actions form { margin: 0; }

.addr-saved { margin-bottom: 12px; }
.addr-saved-title { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.addr-saved-list { display: grid; gap: 6px; max-height: 220px; overflow-y: auto; }
.addr-saved-item {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; cursor: pointer;
  padding: 11px 14px; border: 1.5px solid transparent; border-radius: var(--radius-sm);
  background: var(--surface-2); font: inherit; color: inherit; transition: border-color var(--transition);
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .addr-saved-item:hover { border-color: var(--brand); }
}

.addr-saved-item .ic { color: var(--brand); flex: none; }
.addr-saved-item .grow { min-width: 0; }
.addr-saved-item .strong { display: block; }
.addr-saved-item .muted { display: block; font-size: 12.5px; }

/* Разделитель «или укажите новый адрес» между сохранёнными адресами и поиском. */
.addr-divider {
  display: flex; align-items: center; gap: 12px; margin: 4px 0 14px;
  color: var(--muted); font-size: 13px; font-weight: 600;
}
.addr-divider::before, .addr-divider::after { content: ""; height: 1px; background: var(--line); flex: 1 1 auto; }
.addr-divider.is-hidden { display: none; }

/* Подсказка в модалке адреса: зачем мы её открыли. */
.addr-notice {
  margin-bottom: 14px; padding: 12px 14px; border: 1px dashed var(--brand-line); border-radius: var(--radius-sm);
  background: var(--brand-soft); color: color-mix(in srgb, var(--brand) 45%, #000);
  font-size: 13.5px; font-weight: 650; line-height: 1.35;
}
.addr-notice.is-hidden { display: none; }

/* Вопрос «Заказ на этот адрес?» — как в Яндекс.Еде. */
.addr-prompt-card { max-width: 400px; }
.addr-prompt-title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.addr-prompt-address { font-size: 15px; line-height: 1.4; }
.addr-prompt-details { margin-top: 6px; color: var(--muted); font-size: 13.5px; }
.addr-prompt-card .modal-foot { gap: 10px; }

@media (max-width: 640px) {
  .profile-page { padding: 16px 12px 96px; }
  .profile-tabs { gap: 6px; }
  .profile-tab { padding: 10px 14px; font-size: 14px; }
  /* действия с адресом — сеткой, основное действие во всю ширину */
  .address-item-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .address-item-actions form { display: contents; }
  .address-item-actions .btn { width: 100%; justify-content: center; }
  .address-item-actions .btn-primary { grid-column: 1 / -1; }
}

/* --- крупные карточки каталога (вид «cards») -------------------------- */
.dish-grid.is-cards {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.dish-card.is-wide { border: 0; background: none; border-radius: 0; }
.dish-card.is-wide .dish-media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.dish-card.is-wide .dish-media img { width: 100%; height: 100%; object-fit: cover; }
.dish-card.is-wide .dish-body { padding: 12px 2px 0; }
.dish-card.is-wide .dish-price { display: flex; align-items: baseline; gap: 8px; font-size: 18px; font-weight: 800; }
.dish-card.is-wide .dish-name { font-size: 15.5px; font-weight: 700; margin-top: 2px; }
.dish-card.is-wide .dish-desc { font-size: 13px; }
.dish-card.is-wide .dish-facts { display: flex; gap: 10px; font-size: 12.5px; color: var(--muted); }
.dish-card.is-wide .dish-popularity {
  display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-top: 4px;
}
.dish-actions.is-overlay {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  border-radius: 999px;
}
.dish-actions.is-overlay .add-btn { border: 0; box-shadow: 0 6px 18px rgba(20, 22, 26, .18); }

/* --- боковая корзина (вид «panel») ------------------------------------ */
.cart-panel { display: none; }
body.has-cart-panel .cart-panel {
  display: flex; flex-direction: column; position: sticky; top: 78px; height: calc(100vh - 94px);
  width: 360px; background: var(--surface);
  border-radius: var(--radius-lg); overflow: hidden;
}
body.has-cart-panel .store-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
body.has-cart-panel .cart-panel .cart-body { flex: 1 1 auto; overflow-y: auto; padding: 4px 16px; }
body.has-cart-panel .cart-panel .cart-foot { padding: 12px 16px 16px; border-top: 1px solid var(--line); }
body.has-cart-panel .cart-bar { display: none; }

/* Заголовок корзины: название и «Очистить» текстом, как в Яндекс.Еде. */
.cart-title { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.cart-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 10px; }
.cart-head-actions { display: flex; align-items: center; gap: 6px; }
.cart-clear {
  background: none; border: 0; padding: 6px 4px; cursor: pointer; color: var(--muted);
  font-size: 14px; font-weight: 600; border-radius: var(--radius-xs);
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .cart-clear:hover { color: var(--ink); background: var(--surface-2); }
}

.cart-clear.is-hidden { display: none; }

/* Переключатель «Доставка / Самовывоз» — сегментами, как в приложении. */
.cart-modes { display: flex; gap: 4px; margin: 0 16px 10px; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.cart-mode {
  flex: 1 1 0; border: 0; background: transparent; cursor: pointer; padding: 9px 12px;
  border-radius: 999px; font-size: 14.5px; font-weight: 650; color: var(--muted);
  transition: background var(--transition), color var(--transition);
}
.cart-mode.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* Строка корзины: фото с бейджем скидки, название, варианты, цена и счётчик. */
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-line:last-child { border-bottom: none; }
.cart-line .thumb {
  position: relative; width: 68px; height: 68px; border-radius: 14px; flex: 0 0 auto;
  background: var(--surface-2); overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .discount-badge, .checkout-line .discount-badge {
  position: absolute; left: 4px; bottom: 4px; background: #12a150; color: #fff;
  border-radius: 6px; padding: 1px 5px; font-size: 11px; font-weight: 700;
}
.cart-line .title { font-weight: 650; font-size: 14.5px; }
.cart-line .opts { color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.cart-line .line-foot, .checkout-line .line-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px;
}
.cart-line .line-price, .checkout-line .line-price { display: flex; align-items: baseline; gap: 8px; }
.cart-line .line-price .now, .checkout-line .line-price .now { font-weight: 800; font-size: 15.5px; }
.cart-line .line-price .was, .checkout-line .line-price .was { color: var(--muted); font-size: 13px; text-decoration: line-through; }

/* Подвал корзины: только статус доставки, скидка и кнопка «Далее». */
.cart-foot { display: flex; flex-direction: column; gap: 8px; }
/* Подсказка «ещё N ₽ …» с иконкой-плиткой и справкой — как в Яндекс.Еде. */
.cart-hint {
  display: flex; align-items: center; gap: 10px; padding: 4px 2px 8px;
  font-size: 14px; color: var(--ink);
}
.cart-hint-ico {
  width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--surface-2);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2);
}
.cart-hint-text { flex: 1 1 auto; min-width: 0; }
.cart-hint-info {
  color: var(--muted); display: inline-flex; cursor: pointer; padding: 4px;
  border: 0; background: none; border-radius: 50%;
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .cart-hint-info:hover { color: var(--ink); background: var(--surface-2); }
}

/* Шкала «цена доставки → 0 ₽»: видно, сколько осталось до бесплатной доставки. */
.cart-progress {
  display: flex; align-items: center; gap: 10px; margin: 2px 0 6px; padding: 8px 12px;
  background: var(--ok-soft); border-radius: 999px; position: relative;
}
.cart-progress-ico {
  width: 30px; height: 30px; flex: none; border-radius: 50%; background: #fff; color: var(--ok-ink, #067647);
  display: inline-flex; align-items: center; justify-content: center;
}
.cart-progress-now { font-weight: 800; color: #067647; white-space: nowrap; }
.cart-progress-bar {
  flex: 1 1 auto; height: 7px; border-radius: 999px; background: rgba(6, 118, 71, .18); overflow: hidden;
}
.cart-progress-bar i { display: block; height: 100%; border-radius: 999px; background: #12a150; transition: width .3s ease; }
.cart-progress-goal {
  flex: none; font-weight: 800; color: #067647; background: #fff; border-radius: 999px;
  padding: 3px 10px; border: 1px dashed rgba(6, 118, 71, .5);
}
.cart-progress-badge {
  position: absolute; top: -10px; right: 8px; background: #12a150; color: #fff;
  border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 800;
}
.cart-free-badge, .fd-badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 650;
  color: #05603a; background: #e9f8ef; border-radius: 999px; padding: 7px 12px;
}
.fd-badge.is-free { background: #12a150; color: #fff; }
.cart-foot .fd-badge { justify-content: center; }
.cart-saving { display: flex; justify-content: space-between; font-size: 14px; color: var(--ok); font-weight: 650; }
.cart-pickup-note {
  display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.cart-pickup-note.is-hidden { display: none; }

/* --- выбор города покупателем ---------------------------------------- */
.city-input-wrap { position: relative; }
.city-suggest {
  position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-2); overflow: hidden; max-height: 220px; overflow-y: auto;
}
.city-suggest.is-hidden { display: none; }
.city-suggest-item {
  display: block; width: 100%; text-align: left; border: 0; background: none; cursor: pointer;
  padding: 11px 14px; font-size: 14.5px; color: var(--ink);
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .city-suggest-item:hover { background: var(--surface-2); }
}

.city-suggest-empty { padding: 11px 14px; font-size: 13px; color: var(--muted); }

/* Главная кнопка «Далее <сумма>» — как в Яндекс.Еде. */
.cart-next {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; border: 0; cursor: pointer; background: var(--brand); color: var(--brand-ink);
  border-radius: 14px; padding: 15px 18px; font-size: 16px; font-weight: 800;
  transition: filter var(--transition), transform var(--transition);
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .cart-next:hover { filter: brightness(1.04); }
}

.cart-next:active { transform: scale(.995); }
.cart-next-total { font-variant-numeric: tabular-nums; }
/* Заказ меньше минимального — кнопка неактивна, но сумма видна. */
.cart-next:disabled,
.cart-next[disabled] { cursor: not-allowed; opacity: .5; filter: saturate(.65); }
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .cart-next:disabled:hover { filter: saturate(.65); }
}


/* ============================================================
   Страница оформления заказа — как в Яндекс.Еде: серая страница,
   белые карточки на 32 px, слева условия и состав, справа оплата и итог.
   ============================================================ */
.co-page { background: var(--surface-2); padding: 24px 16px 96px; }
.co-wrap {
  max-width: 1216px; margin: 0 auto; display: grid;
  grid-template-columns: minmax(0, 1fr) 448px; gap: 40px; align-items: start;
}
.co-main { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.co-side { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 12px; }
.co-head { padding: 8px 4px 0; }
.co-h1 { font-size: 32px; font-weight: 800; margin: 0 0 6px; letter-spacing: -.01em; }
.co-lead { color: var(--muted); font-size: 15px; }

.co-card {
  background: var(--surface); border-radius: var(--radius-xl); padding: 32px;
  display: flex; flex-direction: column; gap: 16px;
}
.co-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.co-h2 { font-size: 20px; font-weight: 700; margin: 0; }
.co-h2.is-xl { font-size: 32px; font-weight: 800; letter-spacing: -.01em; }
.co-link {
  border: 0; background: none; padding: 0; cursor: pointer; font: inherit;
  color: var(--muted); font-weight: 600;
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .co-link:hover { color: var(--ink); }
}


/* Переключатель «Доставка / Самовывоз» — сегменты на сером фоне. */
.co-switch-flex { display: flex; }
.co-switch { display: flex; gap: 4px; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 16px; padding: 4px; }
.co-switch-opt {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600;
  color: var(--muted); padding: 10px 14px; border-radius: 12px; transition: background var(--transition), color var(--transition);
}
.co-switch-opt.is-selected { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }

/* Адрес: строка «Изменить» — серая таблетка; нет адреса — приглашение выбрать. */
.co-address { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.co-address .co-address-main { min-width: 0; }
.co-address .strong { font-size: 17px; font-weight: 700; }
.co-pill {
  display: inline-flex; align-items: center; gap: 6px; border: 0; cursor: pointer; font: inherit;
  background: color-mix(in srgb, var(--ink) 10%, transparent); color: var(--ink);
  border-radius: 12px; padding: 7px 14px; font-weight: 600; white-space: nowrap;
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .co-pill:hover { background: color-mix(in srgb, var(--ink) 16%, transparent); }
}

.co-address.is-empty {
  border: 1.5px dashed var(--line-2); border-radius: 20px; padding: 16px;
  background: color-mix(in srgb, var(--ink) 3%, transparent); cursor: pointer; gap: 12px;
}
.co-address.is-empty .ic { color: var(--brand); }

.co-line { display: flex; align-items: center; gap: 12px; min-height: 44px; font-weight: 600; }
.co-line .grow { min-width: 0; }
.co-line-icon {
  width: 36px; height: 36px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--ink) 6%, transparent); flex: 0 0 auto;
}
.co-note { font-size: 14px; color: var(--muted); }

/* Состав заказа: фото, название, счётчик и цена — как в Яндекс.Еде. */
.co-items { display: flex; flex-direction: column; }
.co-item { display: flex; align-items: center; gap: 16px; padding: 12px 0; }
.co-item + .co-item { border-top: 1px solid var(--line); }
.co-item .thumb {
  position: relative; width: 64px; height: 64px; border-radius: 16px; flex: 0 0 auto;
  background: var(--surface-2); overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.co-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.co-item .co-item-main { min-width: 0; flex: 1 1 auto; }
.co-item .co-item-name { font-size: 16px; font-weight: 600; }
.co-item .co-item-meta { color: var(--muted); font-size: 13px; }
.co-item .co-item-price { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.co-item .co-item-was { display: block; color: var(--muted); font-size: 13px; font-weight: 500; text-decoration: line-through; }
.co-item-lines { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* Счётчик «− n +» и таблетки-кнопки. */
.co-stepper {
  display: inline-flex; align-items: center; gap: 2px; flex: 0 0 auto;
  background: color-mix(in srgb, var(--ink) 8%, transparent); border-radius: 12px; padding: 2px;
}
.co-stepper button {
  width: 36px; height: 36px; border: 0; background: none; cursor: pointer; border-radius: 10px;
  color: var(--ink); font-size: 20px; font-weight: 700; line-height: 1; display: flex; align-items: center; justify-content: center;
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .co-stepper button:hover { background: color-mix(in srgb, var(--ink) 10%, transparent); }
}

.co-stepper .co-num { min-width: 28px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.co-stepper .ic { color: var(--ink); }

/* Поля внутри карточек — с заметной обводкой, как в Яндекс.Еде. */
.co-field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--muted); }
.co-field.is-plain { border-top: 1px solid var(--line); padding-top: 14px; }
.co-input {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line-2); border-radius: 12px; padding: 12px 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
textarea.co-input { min-height: 88px; resize: vertical; }
select.co-input { height: 48px; appearance: none; background-image: none; }
.co-input::placeholder { color: color-mix(in srgb, var(--muted) 80%, transparent); }
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .co-input:hover { border-color: var(--line-3, #cdd2da); }
}

.co-input:focus {
  outline: none; border-color: var(--brand);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent);
}
.co-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.co-check { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.co-fields { display: flex; flex-direction: column; }
.co-req { color: var(--danger); }

/* Детали адреса прямо на оформлении: «Кв./офис», «Домофон», «Подъезд», «Этаж». */
.co-addr-fields { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.co-addr-fields + .co-addr-comment { margin-top: 14px; }
@media (max-width: 640px) {
  .co-addr-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Способ оплаты: выбранная строка + «Изменить», список — по кнопке. */
.co-pay { display: flex; flex-direction: column; }
.co-pay-opt {
  display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer;
  border-top: 1px solid var(--line);
}
.co-pay-opt:first-child { border-top: 0; }
.co-pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.co-pay-opt .co-pay-name { display: block; font-weight: 600; }
.co-pay-opt .co-pay-note { display: block; color: var(--muted); font-size: 13px; }
.co-pay-opt .co-pay-check { opacity: 0; color: var(--brand); flex: 0 0 auto; }
.co-pay-opt.is-selected .co-pay-check { opacity: 1; }
.co-pay-current { display: flex; align-items: center; gap: 12px; }
.co-pay-current .co-pay-name { font-weight: 600; }
.is-hidden { display: none !important; }

/* «Что в цене»: строки с суммами и главная кнопка. */
.co-price { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.co-price .co-price-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.co-price .co-price-row.is-sub { color: var(--muted); font-size: 14px; padding-left: 18px; }
.co-price .co-price-row.is-discount .co-price-val { color: var(--ok); font-weight: 700; }
.co-price .co-price-val { font-variant-numeric: tabular-nums; }
.co-total { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.co-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 20px; font-weight: 800; }
.co-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  border: 0; cursor: pointer; background: var(--brand); color: var(--brand-ink);
  border-radius: 16px; padding: 16px 20px; font-size: 16px; font-weight: 600;
  transition: filter var(--transition);
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .co-cta:hover { filter: brightness(1.04); }
}

.co-cta:disabled { cursor: not-allowed; opacity: .5; }
.co-foot-note { color: var(--muted); font-size: 13px; padding: 0 8px; }

/* Промокод: сперва кнопка «У меня есть промокод» — заметная, с пунктирной
   рамкой как у купона; поле раскрывается по клику. */
.co-promo-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px dashed var(--line-2); background: none; padding: 9px 14px;
  border-radius: 12px; cursor: pointer; font: inherit; font-weight: 600;
  color: var(--ink-2); text-align: left;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .co-promo-toggle:hover { border-color: var(--brand-line); color: var(--ink); background: var(--brand-soft); }
}
.co-promo-row { display: flex; gap: 8px; align-items: center; }
.co-promo-row .co-input { flex: 1 1 auto; min-width: 0; }
.co-promo-error { color: var(--danger); font-size: 13px; }
.co-promo-chip {
  display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--ink) 5%, transparent); font-size: 14px;
}
.co-gift { display: flex; flex-direction: column; gap: 8px; }
.co-gift .co-gift-head { font-weight: 600; font-size: 14px; }
.co-gift label { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.co-points { display: flex; flex-direction: column; gap: 10px; }
.co-points-switch { display: flex; gap: 4px; background: color-mix(in srgb, var(--ink) 6%, transparent); border-radius: 16px; padding: 4px; }
.co-points-switch button {
  flex: 1 1 0; border: 0; background: none; cursor: pointer; font: inherit; font-weight: 600;
  color: var(--muted); padding: 10px 12px; border-radius: 12px;
}
.co-points-switch button.is-active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1); }
.co-points .muted { font-size: 13px; }

@media (max-width: 1000px) {
  .co-page { padding: 16px 12px 120px; }
  .co-wrap { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .co-side { position: static; }
  .co-card { border-radius: 24px; padding: 20px; }
  .co-h1 { font-size: 26px; }
  .co-h2.is-xl { font-size: 24px; }
  .co-grid-2 { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .co-item { gap: 12px; }
  .co-item .thumb { width: 52px; height: 52px; border-radius: 14px; }
  /* Кнопка оплаты и сумма едут за экраном вместе с покупками. */
  .co-total { position: sticky; bottom: 0; background: var(--surface); padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}

/* нижняя панель прячется, когда корзина открыта листом */
body.is-cart-open .cart-bar { display: none; }


/* ============================================================
   Крупные карточки, модалка блюда, скроллы (обновление витрины)
   ============================================================ */

/* --- смена раздела: заголовок не должен прятаться под липкой шапкой ----- */
/* Отступ считаем от высоты шапки: она меняется от экрана, а полоса разделов
   висит под ней и на телефоне, поэтому прежний фиксированный отступ не нужен. */
.menu-section { scroll-margin-top: calc(var(--header-h) + 84px); }

/* --- каталог и корзина в одной сетке (на ПК) ---------------------------- */
.store-layout { display: block; }
.store-main { min-width: 0; }
body.has-cart-panel .store-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start;
}
body.has-cart-panel .store-main .menu-section:first-of-type { padding-top: 8px; }

/* Полоса разделов живёт внутри колонки меню (см. home.html): свой контейнер ей
   не нужен — иначе чипы не совпадают по краю с карточками блюд. */
.store-main .cat-nav .wrap { max-width: none; padding: 0; }
@media (max-width: 720px) {
  /* На телефоне полоса идёт от края до края, как в Яндекс.Еде. */
  .store-main .cat-nav { margin: 0 -16px; }
  .store-main .cat-nav .wrap { padding: 0 16px; }
}
.menu-section.is-popular h2 { display: flex; align-items: center; gap: 10px; }

@media (max-width: 1100px) {
  body.has-cart-panel .store-layout { display: block; }
  body.has-cart-panel .cart-panel { display: none; }
  body.has-cart-panel .cart-bar { display: none; }
  body.has-cart-panel .cart-bar.is-visible { display: flex; }
}
/* Боковая корзина всегда на виду — кнопку в шапке не выводим (см. base.html). */

.cat-nav .inner { scroll-behavior: smooth; }
.cat-nav .chip.is-active {
  background: var(--ink); color: #fff; border-color: var(--ink);
}

/* Внутренние прокрутки корзины и модалок — со своими ползунками. */
.cart-panel .cart-body { scrollbar-width: thin; }
.cart-panel .cart-foot { scrollbar-width: thin; }

/* --- модалка блюда: фото слева, выбор справа (как в Яндекс Еде) --------- */
@media (min-width: 860px) {
  .dish-modal-card {
    max-width: 960px; display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
    gap: 28px; padding: 28px; max-height: 86vh; overflow: hidden;
  }
  /* Без фото карточка — в одну колонку. */
  .dish-modal-card.is-nophoto { max-width: 620px; grid-template-columns: minmax(0, 1fr); }
  /* Фото 4:3: колонка фиксированной ширины, картинка не тянется по высоте карточки. */
  .dish-modal-card .dish-modal-media {
    aspect-ratio: 4 / 3; width: 100%; height: auto; min-height: 0;
    margin: 0; align-self: start;
  }
  /* Прокручивается только правая колонка — фото остаётся на виду. */
  .dish-modal-card .dish-modal-body {
    display: flex; flex-direction: column; min-width: 0; max-height: calc(86vh - 56px);
  }
  .dish-modal-card .dish-modal-body .modal-body { flex: 1 1 auto; overflow-y: auto; padding-right: 4px; }
  .dish-modal-card .dish-modal-body .modal-foot { flex: 0 0 auto; }
  .dish-modal-card .dish-modal-close { top: 14px; right: 14px; }
  .dish-modal-card .dish-modal-head h2 { font-size: 26px; }
  .dish-modal-card .dish-modal-price .price-now { font-size: 30px; }
}
.dish-modal-body { display: flex; flex-direction: column; min-height: 0; }
.dish-modal-head { display: flex; align-items: flex-start; gap: 12px; }
.dish-modal-head h2 { font-size: 22px; margin: 0; line-height: 1.25; }
.dish-modal-weight { font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.dish-modal-price { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 14px 0 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
/* Модалка блюда: кнопка «Добавить» превращается в счётчик, как у карточки. */
.dish-modal-buy { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.dish-modal-buy .dish-modal-add { min-width: 132px; justify-content: center; }
.dish-modal-counter { background: var(--surface-2); }
.dish-modal-counter .qty { min-width: 20px; text-align: center; font-weight: 800; }
.dish-modal-counter button.is-primary { background: var(--brand); color: var(--brand-ink); }
.dish-modal-price .price-now { font-size: 26px; font-weight: 800; }
.dish-modal-price .price-old { font-size: 15px; font-weight: 600; color: var(--muted); text-decoration: line-through; }
.dish-modal-price .dish-qty { margin-left: auto; background: var(--surface-2); padding: 4px; }
.dish-modal-add { border-radius: 12px; padding: 12px 22px; }
.dish-modal-sale {
  display: inline-block; background: #12a150; color: #fff; border-radius: 8px;
  padding: 2px 8px; font-size: 13px; font-weight: 700; margin-bottom: 10px;
}
@media (max-width: 640px) {
  .dish-modal-price .price-now { font-size: 23px; }
  .dish-modal-price .dish-qty { margin-left: 0; }
  .dish-modal-add { flex: 1 1 auto; }
}
.modal-foot .stepper { flex: 0 0 auto; background: var(--surface-2); }
.modal-foot .stepper button { width: 38px; height: 38px; }
@media (max-width: 859px) {
  .dish-modal-card { max-height: 92vh; }
}

/* --- корзина: подвал всегда виден, тело прокручивается ------------------ */
/* `overscroll-behavior: contain` тут не используем: иначе страница не
   прокручивается колесом, когда курсор стоит над корзиной. */
.cart-foot { position: relative; z-index: 2; }
body.has-cart-panel .cart-panel { max-height: calc(100vh - 94px); }
.drawer .cart-foot { border-top: 1px solid var(--line); }

/* --- современные скроллбары внутри блоков (основной браузерный не трогаем) */
.nice-scroll,
.cart-body,
.modal-card,
.modal-body,
.co-items-block,
.sidebar,
.table-wrap {
  scrollbar-width: thin;
  scrollbar-color: rgba(20, 22, 26, .22) transparent;
}
.nice-scroll::-webkit-scrollbar,
.cart-body::-webkit-scrollbar,
.modal-card::-webkit-scrollbar,
.modal-body::-webkit-scrollbar,
.co-items-block::-webkit-scrollbar,
.sidebar::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar { width: 8px; height: 8px; }
.nice-scroll::-webkit-scrollbar-track,
.cart-body::-webkit-scrollbar-track,
.modal-card::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track,
.co-items-block::-webkit-scrollbar-track,
.sidebar::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.nice-scroll::-webkit-scrollbar-thumb,
.cart-body::-webkit-scrollbar-thumb,
.modal-card::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb,
.co-items-block::-webkit-scrollbar-thumb,
.sidebar::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(20, 22, 26, .18); border-radius: 999px;
}
.nice-scroll::-webkit-scrollbar-thumb:hover,
.cart-body::-webkit-scrollbar-thumb:hover,
.modal-card::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover,
.co-items-block::-webkit-scrollbar-thumb:hover,
.sidebar::-webkit-scrollbar-thumb:hover,
.table-wrap::-webkit-scrollbar-thumb:hover { background: rgba(20, 22, 26, .3); }

/* --- фото блюд строго 1:1 (как в Яндекс Еде) ---------------------------- */
.dish-media { aspect-ratio: 1 / 1; }
.dish-card.is-wide .dish-media { aspect-ratio: 1 / 1; }
.co-line .thumb, .cart-line .thumb { aspect-ratio: 1 / 1; }

/* --- сколько карточек блюд в одном ряду ------------------------------- *
   ПК: с боковой корзиной 4 карточки, без неё — 5 (как в Яндекс.Еде).
   Телефон и планшет: две карточки в ряд или в столбик — сетка ниже 1000px. */
@media (min-width: 1001px) {
  .dish-grid, .dish-grid.is-cards { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  body.has-cart-panel .dish-grid,
  body.has-cart-panel .dish-grid.is-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1000px) {
  .dish-grid, .dish-grid.is-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ============================================================
   Информационные страницы витрины: «О нас», «Доставка», «Контакты»
   ============================================================ */

/* На телефоне пункты прячутся под кнопку рядом с действиями в шапке. */
.nav-toggle {
  display: none; width: 40px; height: 40px; flex: 0 0 auto;
  align-items: center; justify-content: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: var(--surface-2); color: var(--ink);
  transition: background var(--transition), color var(--transition);
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .nav-toggle:hover { background: var(--surface-3); }
}

.nav-toggle .ic { width: 20px; height: 20px; }
.nav-toggle .nav-toggle-close { display: none; }
.nav-toggle.is-open { background: var(--ink); color: #fff; }
.nav-toggle.is-open .nav-toggle-open { display: none; }
.nav-toggle.is-open .nav-toggle-close { display: inline-block; }

/* Затемнение под меню: ловит тап мимо списка и гасит страницу под ним. */
.nav-scrim {
  position: absolute; z-index: 1; top: 100%; left: 0; right: 0; height: 100vh;
  background: rgba(16, 24, 40, .38);
  opacity: 0; visibility: hidden; transition: opacity .16s ease, visibility .16s;
}
.store-header.nav-open .nav-scrim { opacity: 1; visibility: visible; }
.store-header.nav-open { z-index: 60; }

.store-nav { display: flex; gap: 4px; margin-left: auto; margin-right: 6px; }
.store-nav-link {
  padding: 8px 12px; border-radius: 10px; color: var(--muted);
  font-weight: 650; font-size: 14px; white-space: nowrap; text-decoration: none;
}
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .store-nav-link:hover { background: var(--surface-2); color: var(--ink); }
}

.store-nav-link.is-active { color: var(--ink); background: var(--surface-2); }

.page { max-width: 940px; margin: 0 auto; padding: 26px 16px 110px; }
.page-head h1 { font-size: 30px; line-height: 1.2; margin: 0 0 8px; }
.page-intro { color: var(--muted); font-size: 16px; margin: 0 0 14px; max-width: 720px; }
.page-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }

.page-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 18px; }
.page-cuisines { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }

.page-block { margin-bottom: 16px; }
.page-block h2 { font-size: 20px; margin: 0 0 10px; }
.page-text { line-height: 1.65; }
.page-text p { margin: 0 0 10px; }
.page-text p:last-child { margin-bottom: 0; }
.page-table { width: 100%; }
.page-table td, .page-table th { vertical-align: top; }

.page-block-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.page-block-photo img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius-sm); display: block;
}
.page-photo { margin: 0 0 16px; }
.page-photo img {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--radius); display: block;
}
.page-photo figcaption { color: var(--muted); font-size: 13.5px; margin-top: 8px; }

.page-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-bottom: 16px; }
.zone-item {
  border-radius: var(--radius-sm); padding: 12px 14px;
  background: var(--surface-2); cursor: pointer; transition: border-color .16s ease, background .16s ease;
}
.zone-item.is-active { border-color: var(--ink); background: var(--surface); }
.zone-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.zone-dot { width: 10px; height: 10px; border-radius: 50%; flex: 0 0 auto; }
.zone-terms { margin: 0; padding-left: 18px; font-size: 13.5px; line-height: 1.55; }

.page-steps { margin: 0; padding-left: 22px; line-height: 1.7; }

/* Карты на страницах: «Контакты» (точка заведения) и «Доставка» (зоны). */
.map-box {
  height: 460px; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); background: var(--surface-2); position: relative;
}
/* Карта выбора адреса в модалке — компактнее: сама модалка должна помещаться на экран. */
.map-box.is-small { height: 320px; }
.map-hint {
  position: absolute; z-index: 5; left: 12px; top: 12px; background: rgba(255,255,255,.95);
  border-radius: var(--radius-xs); padding: 8px 12px; font-size: 12.5px; font-weight: 650;
  box-shadow: var(--shadow-1); max-width: 320px;
}

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.contact-phone { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; color: var(--ink); text-decoration: none; }
/* Ховер — только там, где есть курсор: на тач-экранах он залипает после тапа. */
@media (hover: hover) {
  .contact-phone:hover { color: var(--brand); }
}

.messengers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.schedule-table td { padding: 6px 0; font-size: 14.5px; }
.schedule-table tr.is-today td { font-weight: 700; }
.schedule-table td:first-child { width: 45%; }

@media (max-width: 720px) {
  .page { padding: 18px 12px 130px; }
  .page-head h1 { font-size: 24px; }
  .page-block-split { grid-template-columns: minmax(0, 1fr); }
  .map-box { height: 340px; }
  /* Пункты меню — выпадающий список под шапкой, открывается кнопкой. */
  .nav-toggle { display: inline-flex; }
  .store-nav {
    position: absolute; z-index: 2; top: calc(100% + 6px); left: 10px; right: 10px;
    flex-direction: column; align-items: stretch; gap: 2px; margin: 0;
    padding: 6px; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
  }
  .store-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .store-nav-link { padding: 12px 14px; border-radius: var(--radius-xs); font-size: 15px; }
  body.nav-open { overflow: hidden; }
  .contact-phone { font-size: 20px; }
}

/* Узкие телефоны (до 380 px): в шапке тесно, поэтому ужимаем отступы и значки —
   иначе адресу остаётся пара букв. Город при этом остаётся виден. */
@media (max-width: 380px) {
  .store-header .inner { padding: 8px 10px; gap: 6px; }
  .address-btn { padding: 6px 10px; }
  .store-brand .logo { width: 34px; height: 34px; border-radius: 11px; }
  .nav-toggle { width: 38px; height: 38px; }
}

/* ---------- тарифы: публичная страница и карточки в панели ---------- */
.plan-card { display: flex; flex-direction: column; gap: 6px; }
.plan-head { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.plan-name { font-size: 20px; font-weight: 800; }
.plan-price { font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.plan-price .muted { font-size: 14px; font-weight: 600; }
.plan-list { list-style: none; margin: 8px 0 16px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.plan-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink); }
.plan-list .ic { color: var(--ok); flex: 0 0 auto; margin-top: 2px; }
.plan-card .btn { margin-top: auto; }
.plan-card.is-default { border-color: var(--ok); }

@media (max-width: 720px) {
  .plan-price { font-size: 26px; }
  .landing-hero h1 { font-size: 28px; }
}
