/* Оформление витрины.
   Палитра и размеры — в tokens.css, он подключается первым.
   Здесь каркас, первый экран и карточки. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 1rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0; background: var(--paper); color: var(--coal);
  font: 400 16px/1.55 "Golos Text", system-ui, sans-serif; -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: Bitter, Georgia, serif; font-weight: 700; letter-spacing: -.02em; margin: 0; }
a { color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 2px; }

/* ── каркас ──
   Боковая панель и содержимое рядом, а не одно под другим. На узких
   экранах панель уезжает за край и открывается кнопкой: столбец
   в 260 пикселей забрал бы у телефона две трети ширины. */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.wrap { width: min(var(--wrap), 100% - 3rem); margin-inline: auto; }

/* ── боковая панель ── */
.side {
  position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto;
  background: var(--paper-2); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 1.4rem 0 1rem;
}
/* Колонка ростом во весь экран, а разделов двенадцать — вместе с маркой
   и подвалом они в неё не всегда влезают. Прокрутка выше объявлена, но
   сама собой она не включалась: флекс сначала сжимает содержимое и лишь
   потом признаёт, что места нет. Сжимался блок марки — до min-height
   в 44 пикселя, той самой нижней границы нажимаемой цели, — и логотип
   с названием, все 138 пикселей, ложились поверх «Популярного» и «Сетов».
   Запрещаем сжатие: не влезает — пусть прокручивается. */
.side > * { flex: none; }

.side-brand { display: block; text-align: center; text-decoration: none; padding: 0 1rem 1.3rem; }
.side-brand img { width: 86px; height: 86px; margin: 0 auto .5rem; border-radius: 999px; }
.side-brand b { display: block; font-family: Bitter, serif; font-size: 1.22rem; line-height: 1.15; }
.side-brand span { display: block; font-size: .78rem; color: var(--ash); margin-top: .15rem; }

.side-nav, .side-extra { display: flex; flex-direction: column; gap: .1rem; padding: 0 .7rem; }
.side-extra { margin-top: .9rem; padding-top: .9rem; border-top: 1px solid var(--line); }
/* Именно списки, а не всякая ссылка внутри панели.
   Правило «.side a» точнее, чем «.side-brand», и перебивало его: марка
   становилась в строку — значок слева, название посередине, город справа. */
.side-nav a, .side-extra a {
  display: flex; align-items: center; gap: .75rem; min-height: 44px; padding: .5rem .8rem;
  border-radius: var(--r-md); text-decoration: none; font-size: .95rem; color: var(--ink);
}
.side-nav a:hover, .side-extra a:hover { background: rgba(212, 85, 60, .07); }
.side-nav a.on { background: var(--ember-soft); color: var(--ember-text); font-weight: 600; }
.side-nav .ic, .side-extra .ic { width: 21px; height: 21px; flex: none; color: var(--ash); }
.side-nav a.on .ic { color: var(--ember-text); }
.side-extra a { color: var(--ash); }

.side-foot {
  margin: auto .9rem 0; padding-top: 1.4rem; font-family: Bitter, serif; font-style: italic;
  font-size: 1rem; color: var(--ash); text-align: center; line-height: 1.3;
}

/* ── верхняя строка ── */
.topbar {
  position: sticky; top: 0; z-index: 40; min-height: var(--topbar);
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  padding: .6rem clamp(1rem, 3vw, 2rem);
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.topbar .ic { width: 18px; height: 18px; flex: none; color: var(--ash); }
.tb-city, .tb-hours { display: flex; align-items: center; gap: .45rem; margin: 0; font-size: .92rem; }
.tb-city .ic { color: var(--ember-text); }
.tb-hours { color: var(--ash); }
.tb-phone {
  display: flex; align-items: center; gap: .5rem; margin-left: auto;
  font-weight: 600; text-decoration: none; white-space: nowrap;
}
.tb-phone .ic { color: var(--ember-text); }

/* Способ получения. Радиокнопки скрыты, но остаются рабочими:
   с клавиатуры выбор переключается стрелками сам, без скрипта. */
.tb-method { display: flex; gap: .2rem; padding: .2rem; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 999px; }
.tb-method input { position: absolute; opacity: 0; pointer-events: none; }
.tb-method span { display: block; padding: .42rem 1.1rem; border-radius: 999px; cursor: pointer;
  font-size: .9rem; white-space: nowrap; }
.tb-method input:checked + span { background: var(--coal); color: #fff; }
.tb-method input:focus-visible + span { outline: 3px solid var(--ember); outline-offset: 2px; }

.tb-cart {
  display: flex; align-items: center; gap: .55rem; min-height: 44px; padding: .5rem 1.2rem;
  border: 0; border-radius: var(--r-md); background: var(--ember); color: var(--on-ember);
  font: 600 .95rem "Golos Text", sans-serif; cursor: pointer;
}
.tb-cart:hover { background: var(--ember-dark); }
.tb-cart .ic { color: currentColor; }
.tb-cart-n { background: rgba(255,255,255,.25); border-radius: 999px; padding: 0 .45rem; font-size: .82rem; }

.side-toggle { display: none; width: 44px; height: 44px; border: 0; background: none;
  color: var(--coal); cursor: pointer; }
.side-toggle svg { width: 24px; height: 24px; }

/* ── первый экран ── */
.hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center; gap: clamp(1rem, 3vw, 3rem);
  padding: clamp(1.4rem, 3vw, 2.6rem) clamp(1rem, 3vw, 2rem);
}
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.9rem); line-height: 1.03; text-wrap: balance; }
.hero-sub { margin: .9rem 0 0; font-size: 1.05rem; color: var(--ash); }
.hero-cta { display: flex; align-items: center; gap: 1.4rem; margin-top: 1.7rem; flex-wrap: wrap; }
.hero-note { margin: 0; font-family: Bitter, serif; font-style: italic; font-size: .95rem;
  color: var(--ash); line-height: 1.25; }
.hero-pic { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); }
.hero-pic img { aspect-ratio: 16 / 11; }

.btn {
  display: inline-flex; align-items: center; gap: .55rem; white-space: nowrap;
  min-height: 48px; padding: .8rem 1.5rem; border-radius: var(--r-md);
  border: 2px solid transparent; font: 600 1rem "Golos Text", sans-serif;
  text-decoration: none; cursor: pointer;
}
.btn .ic { width: 20px; height: 20px; }
.btn-1 { background: var(--ember); color: var(--on-ember); }
.btn-1:hover { background: var(--ember-dark); }
.btn-2 { border-color: var(--line); color: var(--coal); background: var(--card); }
.btn-2:hover { border-color: var(--coal); }

/* ── полоса обещаний ── */
.promises {
  display: flex; flex-wrap: wrap; gap: .8rem clamp(1.5rem, 5vw, 4rem);
  margin: 0; padding: 1rem clamp(1rem, 3vw, 2rem);
  list-style: none; border-block: 1px solid var(--line); background: var(--paper);
  font-size: .93rem;
}
.promises li { display: flex; align-items: center; gap: .6rem; }
.promises .ic { width: 21px; height: 21px; flex: none; color: var(--ash); }

@media (max-width: 1000px) {
  /* minmax(0, 1fr), а не 1fr: у трека 1fr минимальная ширина равна ширине
     содержимого, и длинное слово или широкая строка распирают колонку
     наружу. На 320 страница доставки выходила 322 — два пикселя вбок,
     которых достаточно, чтобы телефон начал ездить горизонтально. */
  .shell { grid-template-columns: minmax(0, 1fr); }
  /* Спрятанная панель должна быть спрятана и для клавиатуры.
     Один сдвиг за край её не убирает: браузер по-прежнему считает её
     видимой, и на телефоне первое же нажатие Tab уводило внутрь — восемнадцать
     остановок по меню, которого на экране нет. Скринридер зачитывал его так же.
     visibility убирает панель и из порядка обхода, и из дерева доступности,
     а отложенный переход оставляет саму анимацию выезда нетронутой. */
  .side {
    position: fixed; inset: 0 auto 0 0; width: var(--side); z-index: 60;
    transform: translateX(-100%); box-shadow: var(--sh-3);
    visibility: hidden;
    transition: transform .22s ease, visibility 0s linear .22s;
  }
  .side.open {
    transform: none;
    visibility: visible;
    transition: transform .22s ease, visibility 0s;
  }
  .side-toggle { display: grid; place-items: center; }
  .hero { grid-template-columns: 1fr; }
  .hero-pic { order: -1; }
}
@media (max-width: 640px) {
  .topbar { gap: .8rem; }
  .tb-hours, .tb-method { display: none; }
  .tb-cart span { display: none; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }


.catnav { position: sticky; top: var(--topbar); z-index: 30; background: var(--paper);
  border-bottom: 1px solid var(--line); box-shadow: 0 6px 16px rgba(20,23,15,.06); }
.catnav .wrap { display: grid; gap: .4rem; padding-block: .45rem; }
/* Полоса разделов: тени по краям показывают, что она прокручивается.
   min-width: 0 обязателен — иначе внутри grid-родителя эта строка растягивается
   по своему содержимому (12 разделов ≈ 1460 px) и утаскивает всю страницу вбок,
   несмотря на overflow-x: auto у .catscroll. */
.catrow { position: relative; display: flex; align-items: center; gap: .3rem; min-width: 0; }
.catrow::before, .catrow::after { content: ""; position: absolute; top: 0; width: 40px; height: 100%;
  pointer-events: none; opacity: 1; transition: opacity .2s ease; z-index: 2; }
.catrow::before { left: 0; background: linear-gradient(90deg, var(--paper), rgba(243,241,231,0)); }
.catrow::after { right: 0; background: linear-gradient(270deg, var(--paper), rgba(243,241,231,0)); }
.catrow.at-start::before { opacity: 0; }
.catrow.at-end::after { opacity: 0; }

/* ─── Поиск по меню ─── */
.catsearch { display: flex; align-items: center; gap: .55rem;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: .1rem .5rem .1rem .85rem; transition: border-color .16s ease, box-shadow .16s ease; }
.catsearch:focus-within { border-color: var(--acc, var(--coal));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--coal) 10%, transparent); }
.catsearch .ic { flex: none; width: 18px; height: 18px; color: var(--ash); }
.catsearch-in { flex: 1; min-width: 0; border: none; background: none; outline: none;
  font: 400 .95rem "Golos Text", sans-serif; color: var(--coal); padding: .58rem 0; }
.catsearch-in::placeholder { color: var(--ash); }
/* убираем «родной» крестик Safari/Chrome — свой понятнее и попадает по нему палец */
.catsearch-in::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.catsearch-x { flex: none; width: 30px; height: 30px; border-radius: 999px; cursor: pointer;
  border: none; background: #efece0; color: var(--ash); font-size: 1.15rem; line-height: 1;
  display: grid; place-items: center; }
.catsearch-x:hover { background: var(--coal); color: #fff; }
.search-count { margin: .5rem 0 0; font-size: .86rem; color: var(--ash); }
.search-count b { color: var(--coal); font-weight: 600; }

/* Раздел, из которого поиск выбросил все блюда, схлопываем целиком */
.cat[hidden] { display: none !important; }
.cat-empty { margin: 0; padding: .4rem 0 1rem; color: var(--ash); font-size: .9rem; }
.search-empty { margin: 2.5rem auto; padding: 0 1rem; max-width: 44ch; text-align: center;
  color: var(--ash); font-size: .98rem; line-height: 1.6; }
.linkish { border: none; background: none; padding: 0; cursor: pointer;
  font: inherit; color: var(--ember); text-decoration: underline; text-underline-offset: 3px; }
.catscroll { display: flex; gap: .5rem; overflow-x: auto; padding: .2rem 0; flex: 1; min-width: 0;
  scrollbar-width: none; scroll-behavior: smooth; cursor: grab; }
.catscroll::-webkit-scrollbar { display: none; }
.catscroll.dragging { cursor: grabbing; scroll-behavior: auto; }
.navarrow { flex: none; z-index: 3; width: 32px; height: 32px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ash); font-size: 1rem; line-height: 1;
  display: none; place-items: center; transition: background .16s ease, color .16s ease, opacity .2s ease; }
.navarrow:hover { background: var(--coal); color: #fff; border-color: var(--coal); }
.navarrow[disabled] { opacity: .25; cursor: default; }
.navarrow[disabled]:hover { background: #fff; color: var(--ash); border-color: var(--line); }
@media (hover: hover) and (pointer: fine) { .navarrow { display: grid; } }
@media (prefers-reduced-motion: reduce) { .catscroll { scroll-behavior: auto; } }
.catnav a { white-space: nowrap; text-decoration: none; font-size: .93rem; color: var(--ash); padding: .35rem .8rem; border-radius: 999px; border: 1px solid transparent; }
.catnav a:hover { background: #e7e4d6; border-color: var(--line); }

.cat { padding: 3.2rem 0 .6rem; }
.cat-head { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 1rem; row-gap: .25rem;
  border-bottom: 3px solid var(--coal); padding-bottom: .6rem; margin-bottom: 1.6rem; }
.cat-head h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); }
.note { grid-column: 2; margin: 0; font-size: .84rem; color: var(--ash); max-width: 60ch; }

.sets { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 1.4rem; }
.ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .5rem;
  background:
    repeating-linear-gradient(135deg, rgba(20,23,15,.05) 0 2px, transparent 2px 14px),
    linear-gradient(145deg, color-mix(in srgb, var(--acc) 16%, #f0ead9), #e4ddc8); }
.ph-ic { width: 62px; height: 62px; color: var(--acc); opacity: .9; }
.ph span { font-size: .82rem; color: rgba(20,23,15,.5); letter-spacing: .02em; }
.set { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.set-pic { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #e6e2d3; }
.set-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.save { position: absolute; top: .7rem; left: .7rem; background: var(--ember); color: #fff; font-size: .78rem; font-weight: 600; padding: .28rem .6rem; border-radius: 999px; }
.set-body { display: flex; flex-direction: column; flex: 1; padding: .85rem .95rem .9rem; }
.set h3 { font-size: 1.14rem; line-height: 1.25; }

/* Состав обрезаем по числу строк, а не по высоте: строки считает сам браузер,
   поэтому многоточие всегда попадает на границу строки. Сколько строк
   Кнопку «весь состав» включает скрипт, и только если текст правда не влез. */
.more { align-self: flex-start; background: none; border: none; padding: .1rem 0 .5rem; cursor: pointer;
  font: 500 .82rem "Golos Text", sans-serif; color: var(--acc); text-decoration: underline; text-underline-offset: 3px; }
.set-foot { display: flex; align-items: center; gap: .8rem; margin-top: auto; padding-top: .65rem; border-top: 1px dashed var(--line); }

.list { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 64px 1fr auto auto; align-items: center; gap: 1rem; padding: .85rem 0; border-bottom: 1px solid var(--line); }
.row-pic { width: 64px; height: 64px; overflow: hidden; background: #e6e2d3; border-radius: var(--r-md); }
.row h3 { font-size: 1.03rem; font-family: "Golos Text", sans-serif; font-weight: 600; }
.portion { margin: .1rem 0 0; font-size: .84rem; color: var(--ash); }
.set-pic img[src$=".svg"] { object-fit: contain; background: #ede7d6; }

.price { margin: 0; font-family: Bitter, serif; font-size: 1.22rem; white-space: nowrap; }
.was { display: block; font-family: "Golos Text", sans-serif; font-size: .78rem; font-weight: 400; color: var(--ash); }
.add { background: none; border: 1.5px solid var(--acc, var(--coal)); color: var(--acc, var(--coal)); font: 600 .88rem "Golos Text", sans-serif; padding: .48rem 1.1rem; border-radius: var(--r-sm); cursor: pointer; }
.add:hover { background: var(--acc, var(--coal)); color: #fff; }
.add.done { background: var(--leaf); border-color: var(--leaf); color: #fff; }

/* gallery */
.gallery { padding: 3.6rem 0 0; }
.gallery h2 { font-size: clamp(1.5rem, 3.4vw, 2.05rem); margin-bottom: .4rem; }
.gallery > .wrap > p { margin: 0 0 1.4rem; color: var(--ash); max-width: 52ch; font-size: .95rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { gap: .7rem; } }
.grid figure { margin: 0; aspect-ratio: 3 / 2; border-radius: var(--r-lg); overflow: hidden; background: #e6e2d3; }
.kitchen { margin-top: 1rem; border-radius: var(--r-lg); overflow: hidden; background: #e6e2d3; }
.kitchen img { height: auto; }

.info { background: var(--card); border-top: 1px solid var(--line); margin-top: 3.5rem; padding: 3.4rem 0; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2.6rem; }
.cols h2 { font-size: 1.35rem; margin-bottom: .7rem; }
.cols h3 { font-size: 1rem; margin: 1.3rem 0 .3rem; font-family: "Golos Text", sans-serif; font-weight: 600; }
.cols p, .cols li { font-size: .95rem; color: var(--ash); }
.cols ul { margin: .4rem 0; padding-left: 1.1rem; }
.cols li { margin-bottom: .3rem; }

/* Контакты были тёмным блоком из прежнего оформления. На кремовой странице
   он не просто выбивался: правило «.contacts a» красило в белый и кнопки —
   а они на белой подложке. Белым по белому, контраст один к одному.
   Проверка это и поймала: девять мест, где текста попросту не видно. */
.contacts { background: var(--paper-2); color: var(--ink); padding: 3.4rem 0 2.4rem;
  border-top: 1px solid var(--line); }
.contacts h2 { font-size: 1.6rem; margin-bottom: 1.4rem; }
.contacts .cols p { color: var(--ash); }
.contacts .big-tel { color: var(--coal); text-decoration: none; }
.big-tel { font-family: Bitter, serif; font-size: 1.65rem; font-weight: 700; text-decoration: none; display: block; }
.rating { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-top: 2.2rem;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 1.1rem 1.3rem; }
.rating .score { margin: 0; font-family: Bitter, serif; font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; }
.rating .stars { color: var(--gold); font-size: 1.05rem; letter-spacing: .12em; }
.rating .meta { font-size: .88rem; color: var(--ash); margin: .25rem 0 0; }
.rating .meta a { color: var(--coal); }
.goodplace { margin-left: auto; display: flex; align-items: center; gap: .6rem; text-decoration: none;
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .5rem .95rem; }
.goodplace b { font-size: .92rem; }
.goodplace span { font-size: .78rem; color: var(--ash); }
.goodplace:hover { border-color: var(--gold); }
@media (max-width: 720px) { .goodplace { margin-left: 0; } }
.socials { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .8rem; }
.soc { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none;
  border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: .5rem 1rem;
  font-size: .92rem; transition: border-color .18s ease, background .18s ease, transform .18s ease; }
.soc:hover { transform: translateY(-2px); }
.soc-tg:hover { border-color: #4aa3dd; background: rgba(74,163,221,.14); }
.soc-vk:hover { border-color: #6a90c8; background: rgba(106,144,200,.14); }
.soc-ig:hover { border-color: #d1608f; background: rgba(209,96,143,.14); }
@media (prefers-reduced-motion: reduce) { .soc:hover { transform: none; } }
.map { margin-top: 1.2rem; border-radius: var(--r-lg); overflow: hidden; background: #20241b; }
.map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Карта до клика: локальный снимок вместо виджета Яндекса */
.map-facade { position: relative; display: block; height: 380px; cursor: pointer; }
.map-facade img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Затемнение убрано: карту видно как есть. Кликабелен весь блок,
   поэтому подсказка внизу справа — маленькая и ничего не перекрывает. */
.map-facade::after { content: ""; position: absolute; inset: 0; background: transparent; transition: background .2s; }
.map-facade:hover::after { background: rgba(20,23,15,.08); }
.map-load { position: absolute; right: .6rem; bottom: .6rem; z-index: 1;
  display: inline-flex; align-items: center; gap: .35rem; cursor: pointer;
  padding: .42rem .7rem; border: 0; border-radius: 999px;
  background: rgba(251,250,244,.94); color: var(--coal); font: inherit; font-weight: 600; font-size: .8rem;
  box-shadow: 0 2px 10px rgba(0,0,0,.25); }
.map-load:hover { background: #fff; }
.map-load .ic { width: 15px; height: 15px; flex: none; }
@media (max-width: 520px) {
  /* на узких экранах оставляем только значок */
  .map-load span { display: none; }
  .map-load { padding: .45rem; }
}
.map-acts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.map-acts .btn { font-size: .93rem; padding: .62rem 1.2rem; }
.map-acts .btn-2 { border-color: #565c4c; }
@media (max-width: 720px) { .map iframe, .map-facade { height: 300px; } }
.foot-logo { width: 92px; height: 92px; border-radius: 999px; margin-bottom: 1rem; }
.legal { margin-top: 2.6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--ash); }

/* floating cart */
/* Полоса заказа внизу экрана — см. app/partials/minbar.php.
   Живёт постоянно, а не появляется после первого добавления: минимальную
   сумму человек должен видеть до того, как в неё упрётся. */
.minbar {
  position: fixed; left: 50%; bottom: 1.1rem; z-index: 60;
  width: min(520px, 100vw - 2rem); transform: translateX(-50%);
  padding: 0; border: none; background: none; cursor: pointer;
  font: inherit; color: inherit; text-align: left;
}
.minbar-in {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .75rem;
  padding: .7rem .8rem .8rem 1rem; border-radius: var(--r-lg);
  background: var(--coal); color: var(--paper);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  transition: box-shadow .2s ease;
}
.minbar:hover .minbar-in { box-shadow: 0 14px 36px rgba(0,0,0,.45); }
.minbar:active .minbar-in { transform: scale(.99); }
.minbar .ic { width: 22px; height: 22px; color: var(--gold); }
.minbar-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.minbar-text b { font-size: .99rem; }
.minbar-text span { font-size: .82rem; opacity: .72; }
.minbar-go {
  grid-column: 3; justify-self: end; white-space: nowrap;
  background: linear-gradient(135deg, #ff7a18 0%, #f24b0a 48%, #d92f06 100%);
  color: #fff; border-radius: 999px; padding: .5rem 1.05rem;
  font: 700 .93rem "Golos Text", sans-serif;
  box-shadow: 0 4px 14px rgba(242,75,10,.45);
}
.minbar-track { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.14); }
.minbar-track i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .25s ease; }

/* Пустая корзина — полоса спокойная, ничего не торопит */
.minbar[data-state="empty"] .ic { color: rgba(242,239,228,.5); }
.minbar[data-state="empty"] .minbar-track { display: none; }
/* Набрано меньше минимума — показываем, сколько осталось */
.minbar[data-state="short"] .ic { color: var(--gold); }
/* Готово к оформлению — акцент уходит на кнопку */
.minbar[data-state="ready"] .ic { color: #8fce6a; }
.minbar[data-state="ready"] .minbar-track i { background: #8fce6a; }

.minbar.bump .minbar-in { animation: bump .38s ease; }
@media (prefers-reduced-motion: reduce) {
  .minbar-in, .minbar-track i { transition: none; }
  .minbar.bump .minbar-in { animation: none; }
}

/* header nav */
.mainnav { display: flex; gap: 1.3rem; margin-left: 1rem; }
.mainnav a { text-decoration: none; font-size: .93rem; color: #d5d2c4; }
.mainnav a:hover { color: #fff; }
.call { display: none; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: var(--r-sm); background: var(--ember); color: #fff; text-decoration: none; }
.call .ic { width: 20px; height: 20px; }
.burger { display: none; background: rgba(255,255,255,.1); border: none; border-radius: var(--r-sm);
  width: 40px; height: 40px; cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; margin: 3px auto; background: #f2efe4; border-radius: 2px;
  transition: transform .2s, opacity .2s; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.drawer { display: none; background: var(--ash); color: #f2efe4; border-top: 1px solid rgba(255,255,255,.1); }
.drawer.open { display: block; }
.drawer ul { list-style: none; margin: 0; padding: .5rem 0 1rem; }
.drawer li { border-bottom: 1px solid rgba(255,255,255,.08); }
.drawer li:last-child { border: none; }
.drawer a { display: block; padding: .8rem 0; text-decoration: none; font-size: 1rem; }
.drawer .tel { font-family: Bitter, serif; font-size: 1.15rem; font-weight: 700; }

/* cart dialog */
dialog { border: none; padding: 0; width: min(480px, calc(100% - 1.6rem)); border-radius: var(--r-lg);
  background: var(--card); color: var(--coal); box-shadow: 0 24px 60px rgba(20,23,15,.35); }
dialog::backdrop { background: rgba(20,23,15,.55); backdrop-filter: blur(2px); }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.15rem 1.3rem; background: var(--coal); color: #fff; }
.dlg-head h2 { font-size: 1.2rem; }
.x { background: rgba(255,255,255,.12); border: none; color: #fff; width: 32px; height: 32px;
  border-radius: 999px; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.x:hover { background: rgba(255,255,255,.24); }
.dlg-body { padding: 1.1rem 1.3rem 1.3rem; }
#cartList { list-style: none; margin: 0; padding: 0; max-height: 44vh; overflow: auto; }
#cartList li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: .85rem;
  padding: .7rem 0; border-bottom: 1px solid var(--line); }
#cartList li:last-child { border-bottom: none; }
.ci-pic { width: 52px; height: 52px; border-radius: var(--r-sm); overflow: hidden; background: #e6e2d3; }
.ci-name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.ci-each { font-size: .8rem; color: var(--ash); }
.ci-right { display: flex; flex-direction: column; align-items: flex-end; gap: .35rem; }
.ci-sum { font-family: Bitter, serif; font-size: 1rem; }
.qty { display: inline-flex; align-items: center; gap: .1rem; background: #efece0; border-radius: 999px; padding: .15rem; }
.qty button { width: 28px; height: 28px; border: none; background: #fff; color: var(--coal);
  border-radius: 999px; font-size: 1rem; line-height: 1; cursor: pointer; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.qty button:hover { background: var(--coal); color: #fff; }
.qty span { min-width: 1.6rem; text-align: center; font-size: .92rem; font-weight: 600; }
.progress { margin: 1.1rem 0 .4rem; height: 6px; border-radius: 999px; background: #e5e1d2; overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--leaf); border-radius: 999px; transition: width .25s ease; }
.hint { font-size: .84rem; color: var(--ash); margin: .5rem 0 0; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-family: Bitter, serif;
  font-size: 1.3rem; margin: 1.1rem 0 1rem; padding-top: .9rem; border-top: 2px solid var(--coal); }
.dlg-body .cta { margin-top: 0; }
.dlg-body .btn { flex: 1; text-align: center; }
.dlg-body .btn-2 { border-color: var(--line); color: var(--coal); background: #fff; }
.dlg-body .btn-2:hover { border-color: var(--coal); background: #f2efe3; }

/* ─── Окно блюда ─── */
/* Шире корзины: здесь фото — главное, ради него окно и открывают.
   Прокручивается только текстовая часть, поэтому фото и крестик остаются
   на месте при длинном составе. display задаём только для [open] —
   иначе закрытый диалог перестал бы скрываться. */
/* Высота окна — в dvh, а не в vh.
   В Safari на айфоне vh считается от экрана БЕЗ адресной строки, а она
   обычно видна: окно на 92vh оказывается выше того, что реально влезает,
   и часть содержимого уезжает за нижний край. dvh меняется вместе
   с панелями браузера. Строка на vh оставлена запасной для движков,
   которые dvh ещё не знают. */
.dish-dlg { width: min(560px, calc(100% - 1.6rem)); max-height: min(92vh, 900px); overflow: hidden; }
.dish-dlg { max-height: min(92dvh, 900px); }
.dish-dlg[open] { display: flex; flex-direction: column; }
/* Крестик лежит поверх фото — своей полосы заголовка тут нет */
.dish-x { position: absolute; top: .7rem; right: .7rem; z-index: 3;
  width: 34px; height: 34px; border: none; border-radius: 999px; cursor: pointer;
  background: rgba(20,23,15,.55); color: #fff; font-size: 1.05rem; line-height: 1;
  backdrop-filter: blur(4px); }
.dish-x:hover { background: var(--coal); }
/* Фото уступает место составу, а не наоборот.
   Раньше оно занимало 219 px при любой высоте экрана, и вместе
   с подвалом съедало 360 px намертво. На невысоком экране составу
   оставалось около сотни пикселей — четыре строки из пятнадцати,
   и человек решал, что состав просто не открывается. Теперь фото
   сжимается первым: ради состава окно и открывают. */
.dish-pic { position: relative; flex: 0 1 auto; aspect-ratio: 3 / 2;
  max-height: 32dvh; min-height: 108px; min-width: 0; overflow: hidden;
  background: #e6e2d3; }
/* Картинку кладём по краям коробки, а не через height: 100%.
   В WebKit сотня процентов у ребёнка flex-элемента с aspect-ratio
   считается от высоты ДО сжатия: коробка ужималась до 120 px,
   картинка оставалась 179 px и накрывала собой состав. */
.dish-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Прокручивается только состав; фото сверху и кнопки внизу стоят на месте */
.dish-scroll { position: relative; flex: 1 1 auto; min-height: 0; overflow: auto;
  overscroll-behavior: contain; padding: 1.1rem 1.3rem 1.1rem; }
/* Подсказка, что список продолжается: без неё обрезанный состав
   читается как поломка, а не как то, что нужно прокрутить.
   Полоска исчезает сама, когда прокрутка доходит до низа. */
.dish-scroll::after {
  content: ''; position: sticky; bottom: -1.1rem; left: 0; display: block;
  height: 2.2rem; margin: -2.2rem -1.3rem 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(251,250,244,0), var(--card) 82%);
  opacity: 1; transition: opacity .2s ease;
}
.dish-scroll.at-end::after { opacity: 0; }
.dish-scroll h2 { font-size: 1.4rem; line-height: 1.2; }
/* Состав целиком, без обрезки — ради него окно и открывают */
.dish-compo { margin: .7rem 0 0; font-size: .95rem; line-height: 1.55; color: var(--ash); }
.dish-foot { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: .8rem 1rem;
  padding: .95rem 1.3rem 1.1rem; border-top: 1px solid var(--line); background: var(--card);
  box-shadow: 0 -8px 18px -12px rgba(20,23,15,.4); }
.dish-foot .price { font-size: 1.45rem; }
.dish-foot .was { font-size: .85rem; }
.dish-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.dish-qty { min-width: 116px; justify-content: space-between; }
.dish-actions .add { padding: .6rem 1.2rem; }
.dish-actions .btn { padding: .62rem 1.3rem; }

/* Карточка открывает окно — показываем это курсором */
.set { cursor: pointer; }
/* Кнопки внизу карточки живут своей жизнью и окно не открывают */
.set .set-foot { cursor: default; }

/* Название — кнопка, но выглядит как заголовок: она нужна, чтобы окно
   открывалось с клавиатуры, а не только мышью по карточке. */
.dish-open { display: block; width: 100%; text-align: left; cursor: pointer;
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; color: inherit; }
.dish-open:hover { color: var(--acc); }
.dish-open:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 3px; }

@media (max-width: 520px) {
  .dish-scroll { padding: .95rem 1rem 1rem; }
  .dish-scroll h2 { font-size: 1.22rem; }
  .dish-foot { gap: .7rem; padding: .8rem 1rem .95rem; }
  .dish-actions { width: 100%; margin-left: 0; }
  .dish-actions .btn, .dish-actions .add { flex: 1; text-align: center; }
  /* фото пониже — иначе на коротком экране состава почти не видно */
  .dish-pic { aspect-ratio: 16 / 10; }
}
.order-form { display: grid; gap: .6rem; margin-top: .2rem; }
.seg { display: flex; gap: .4rem; }
.seg label { flex: 1; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: .55rem .5rem; border: 1px solid var(--line);
  border-radius: var(--r-sm); font-size: .9rem; cursor: pointer; background: #fff; }
.seg input:checked + span { background: var(--coal); color: #fff; border-color: var(--coal); }
.seg input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.order-form input[type=text], .order-form input[type=tel], .order-form input[type=email],
.order-form select, .order-form textarea {
  width: 100%; padding: .62rem .8rem; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--coal); font: 400 .95rem "Golos Text", sans-serif; }
.order-form textarea { min-height: 62px; resize: vertical; }
.order-form input:focus, .order-form select:focus, .order-form textarea:focus {
  outline: none; border-color: var(--acc, var(--ember)); box-shadow: 0 0 0 3px rgba(200,50,15,.12); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }

/* ── когда привезти ───────────────────────────────────────────────────
   Две кнопки выбора, а под «ко времени» — календарь и окна времени.
   Размеры взяты не на глаз: день календаря и окно времени не ниже
   44 пикселей, иначе пальцем в них не попасть. */
.when { border: 0; padding: 0; margin: 0; display: grid; gap: .5rem; }
.when legend { padding: 0; font-size: .82rem; color: var(--ash); }
.when-mode { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.when-mode input { position: absolute; opacity: 0; pointer-events: none; }
.when-mode span { display: grid; align-content: center; min-height: 52px; padding: .4rem .5rem;
  cursor: pointer; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff;
  font-size: .88rem; line-height: 1.2; text-align: center; text-wrap: balance; }
.when-mode small { display: block; font-size: .74rem; color: var(--ash); margin-top: .1rem; }
.when-mode input:checked + span { background: var(--coal); color: #fff; border-color: var(--coal); }
.when-mode input:checked + span small { color: rgba(255,255,255,.72); }
.when-mode input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

.when-pick { display: grid; gap: .6rem; }
.cal { border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: .5rem; }
.cal-head { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.cal-title { text-align: center; font-size: .92rem; }
.cal-nav { width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
  color: var(--coal); font-size: 1.3rem; line-height: 1; border-radius: var(--r-sm); }
.cal-nav:disabled { color: var(--line); cursor: default; }
.cal-nav:not(:disabled):hover { background: var(--paper); }
.cal-dows, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dows { margin: .35rem 0 .15rem; }
.cal-dows span { text-align: center; font-size: .72rem; color: var(--ash); }
.cal-day { min-height: 44px; border: 1px solid transparent; border-radius: var(--r-sm);
  background: none; color: var(--coal); cursor: pointer;
  font: 400 .9rem "Golos Text", sans-serif; }
.cal-day:not(:disabled):hover { background: var(--paper); }
.cal-day:disabled { color: var(--line); cursor: default; }
.cal-day.is-today { border-color: var(--line); font-weight: 600; }
.cal-day.is-on { background: var(--coal); color: #fff; border-color: var(--coal); }
.cal-day:focus-visible, .cal-nav:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }

.slots-h { font-size: .82rem; color: var(--ash); margin: 0 0 .3rem; }
.slots-grid { display: grid; gap: .35rem;
  grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); }
.slot { min-height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: #fff; color: var(--coal); cursor: pointer;
  font: 400 .9rem "Golos Text", sans-serif; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--coal); }
.slot.is-on { background: var(--coal); color: #fff; border-color: var(--coal); }
.slot:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.slots-none { font-size: .85rem; color: var(--ash); margin: .2rem 0 0; }

/* Колонок здесь нет намеренно. Соблазн поставить календарь и время рядом
   на широком экране разбивается о то, что корзина — окно поверх страницы
   шириной не больше 480 пикселей при любом мониторе. Правило по ширине
   экрана срабатывало бы, а места не прибавлялось: время сжималось до двух
   кнопок в ряд, и под календарём оставалась пустота. Друг под другом
   время занимает всю ширину — шесть кнопок в ряд вместо двух. */
.agree { display: flex; gap: .55rem; align-items: flex-start; font-size: .82rem; color: var(--ash); }
.agree input { margin-top: .2rem; accent-color: var(--ember); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.err { margin: .3rem 0 0; font-size: .85rem; color: #b0361b; }
.done-box { text-align: center; padding: 1.8rem .6rem 1rem; }
.done-box .tick { width: 54px; height: 54px; margin: 0 auto .8rem; border-radius: 999px;
  background: var(--leaf); color: #fff; display: grid; place-items: center; font-size: 1.6rem; }
.done-box h3 { font-size: 1.15rem; margin-bottom: .4rem; }
.done-box p { font-size: .92rem; color: var(--ash); margin: .3rem 0; }
.empty { text-align: center; color: var(--ash); padding: 1.6rem 0; font-size: .95rem; }
.link-btn { background: none; border: none; color: var(--ash); font: 400 .85rem "Golos Text", sans-serif; text-decoration: underline; cursor: pointer; padding: 0; }


/* графические фоны */
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(20,23,15,.055) 1px, transparent 0),
    radial-gradient(1200px 500px at 50% -12%, rgba(224,163,24,.10), transparent 70%);
  background-size: 22px 22px, 100% 100%;
}
.hero { isolation: isolate; }
.hero .haze { position: absolute; inset: auto -5% -30% -5%; height: 70%; z-index: 1; pointer-events: none;
  background: radial-gradient(50% 60% at 30% 100%, rgba(224,120,26,.22), transparent 70%);
  filter: blur(20px); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(3%, 2%, 0) scale(1.08); } }
.hero > img, .hero > picture > img { animation: slowzoom 34s ease-in-out infinite alternate; }
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.07); } }

.info { position: relative; overflow: hidden; }
.info::before { content: ""; position: absolute; inset: 0; opacity: .5; pointer-events: none;
  background-image: repeating-linear-gradient(135deg, rgba(20,23,15,.045) 0 2px, transparent 2px 16px); }
.info .wrap { position: relative; }
.contacts { position: relative; overflow: hidden; }
.contacts::before { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 2px, transparent 2px 26px),
                    radial-gradient(60% 70% at 88% 8%, rgba(200,50,15,.28), transparent 70%); }
.contacts .wrap { position: relative; }

/* иконки */
.ic { width: 22px; height: 22px; flex: none; }
.cat-ic { grid-row: span 2; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--acc); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--acc) 35%, transparent); }
.cat-ic .ic { width: 26px; height: 26px; }
/* Цвет раздела остаётся полоской под заголовком, но не самим заголовком:
   акценты подбирались под тёмный фон, и на кремовом «Новые сеты» давали
   2,75 к 1 — ниже порога читаемости. Полоске контраст не нужен, тексту нужен. */
.cat > .cat-head { border-bottom: 2px solid var(--acc); }
.cat > .cat-head h2 { color: var(--coal); }
.cat-head h2 { color: var(--acc); }
.facts p { display: flex; align-items: center; gap: .5rem; }
.facts .ic { width: 19px; height: 19px; color: var(--gold); }
.icolist { list-style: none; padding: 0; }
.icolist li { display: flex; align-items: flex-start; gap: .6rem; }
.icolist .ic { width: 20px; height: 20px; margin-top: .18rem; color: var(--leaf); }
.contact-line { display: flex; align-items: center; gap: .6rem; }
.contact-line .ic { color: var(--gold); }
.btn .ic { width: 19px; height: 19px; vertical-align: -4px; margin-right: .45rem; }

/* появление секций */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.seen { opacity: 1; transform: none; }

/* микро-движение */
.set { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.set:hover { transform: translateY(-4px); border-color: var(--acc);
  box-shadow: 0 14px 30px rgba(20,23,15,.14); }
.set-pic img { transition: transform .45s ease; }
.set:hover .set-pic img { transform: scale(1.05); }
.row { transition: background .18s ease; }
.row:hover { background: rgba(255,255,255,.55); }
.add { transition: background .16s ease, color .16s ease, transform .12s ease; }
.add:active { transform: scale(.95); }
.grid figure img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s ease; }
.grid figure:hover img { transform: scale(1.06); }
.catnav a.here { background: var(--coal); color: var(--paper); border-color: var(--coal); }
@keyframes bump { 30% { transform: scale(1.09); } 60% { transform: scale(.97); } 100% { transform: none; } }
.save { animation: pop .35s ease .1s both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.rating .stars { display: inline-block; animation: pop .5s ease both; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero > img, .hero > picture > img, .hero .haze, .save, .rating .stars { animation: none; }
  .set:hover, .set:hover .set-pic img, .grid figure:hover img { transform: none; }
}


/* ── хиты недели в шапке ────────────────────────────── */
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 3rem; padding: 2.4rem 0; }
.promos { position: relative; z-index: 3; flex: 0 1 auto;
  display: grid; grid-template-columns: repeat(2, minmax(260px, 330px)); gap: .8rem; }
.promos-title { grid-column: 1 / -1; }
.promos-title { display: flex; align-items: center; gap: .45rem; margin: 0 0 .1rem .2rem;
  font: 600 .82rem "Golos Text", sans-serif; letter-spacing: .04em; color: var(--gold);
  text-shadow: 0 0 18px rgba(224,163,24,.5); }
.promos-title .ic { width: 16px; height: 16px; }

.promo {
  position: relative; display: grid; grid-template-columns: 92px 1fr; gap: .85rem; align-items: center;
  padding: .75rem; border-radius: 16px;
  background: linear-gradient(160deg, rgba(40,33,24,.80), rgba(20,23,15,.88));
  border: 1px solid rgba(255,214,150,.26);
  box-shadow: 0 20px 44px -20px rgba(0,0,0,.8), 0 0 44px -16px rgba(224,163,24,.45),
              inset 0 1px 0 rgba(255,255,255,.08);
  backdrop-filter: blur(10px) saturate(1.1);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.promo::before {
  content: ""; position: absolute; inset: -2px; border-radius: 18px; z-index: -1; pointer-events: none;
  background: conic-gradient(from 180deg, rgba(224,163,24,.5), rgba(200,50,15,.45), rgba(224,163,24,.5));
  filter: blur(14px); opacity: .5; animation: aura 5s ease-in-out infinite alternate;
}
.promo:nth-child(3)::before { animation-delay: -1.6s; }
.promo:nth-child(4)::before { animation-delay: -3.2s; }
.promo:nth-child(5)::before { animation-delay: -4.4s; }
@keyframes aura { from { opacity: .34; } to { opacity: .68; } }
.promo:hover { transform: translateY(-3px); border-color: rgba(255,214,150,.5);
  box-shadow: 0 26px 54px -20px rgba(0,0,0,.85), 0 0 58px -14px rgba(224,163,24,.65); }

.promo-pic { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 20px -10px rgba(0,0,0,.9); }
.promo-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.promo:hover .promo-pic img { transform: scale(1.07); }
.promo-off { position: absolute; left: 4px; bottom: 4px; padding: .2rem .45rem; border-radius: 999px;
  font: 700 .68rem "Golos Text", sans-serif; color: #fff;
  background: linear-gradient(135deg, #ff7a18, #d92f06); box-shadow: 0 6px 16px -6px rgba(255,122,24,.9); }

.promo-body { min-width: 0; }
.promo h2 { font-size: 1.02rem; color: #fff; line-height: 1.15; }
.promo-desc { margin: .2rem 0 .5rem; font-size: .76rem; color: #b9bcac; }
.promo-foot { display: flex; align-items: center; justify-content: space-between; gap: .6rem; }
.promo-price { margin: 0; font-family: Bitter, serif; line-height: 1.1; }
.promo-price s { display: block; font-family: "Golos Text", sans-serif; font-size: .7rem; color: #8f9484; }
.promo-price b { font-size: 1.12rem; color: var(--gold); text-shadow: 0 0 20px rgba(224,163,24,.45); }
.promo .add { border-color: #ffb347; color: #14170f; background: linear-gradient(135deg, #ffc46b, #e0a318);
  font-weight: 700; font-size: .78rem; padding: .42rem .8rem;
  box-shadow: 0 8px 20px -10px rgba(224,163,24,.9); }
.promo .add:hover { background: #fff; border-color: #fff; color: #14170f; }
.promo .add.done { background: var(--leaf); border-color: var(--leaf); color: #fff; }
@media (max-width: 1340px) {
  .hero-row { flex-direction: column; align-items: stretch; gap: 1.8rem; }
  .hero-in { max-width: 44rem; padding-bottom: 0; }
  .promos { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .promos { grid-template-columns: 1fr; }
  .promo:nth-child(n+4) { display: none; }
  .promo { grid-template-columns: 78px 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .promo::before { animation: none; }
  .promo:hover { transform: none; }
}

/* ── свечения и фактуры ────────────────────────────── */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background:
    radial-gradient(38rem 26rem at 8% 12%, rgba(224,163,24,.16), transparent 62%),
    radial-gradient(34rem 24rem at 96% 34%, rgba(200,50,15,.14), transparent 64%),
    radial-gradient(30rem 22rem at 20% 78%, rgba(79,107,52,.13), transparent 66%);
}
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .32;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.5'/%3E%3C/svg%3E");
}
.wrap, main, .cat, .gallery, .info, .contacts, .hero { position: relative; z-index: 1; }

/* мягкий ореол вокруг блока меню */
.cat::before {
  content: ""; position: absolute; left: 50%; top: 2rem; transform: translateX(-50%);
  width: min(70rem, 92%); height: 22rem; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 16%, transparent), transparent 72%);
  filter: blur(28px); opacity: .8;
}

/* стеклянная полоса разделов */
.catnav { background: rgba(243,241,231,.82); backdrop-filter: blur(12px) saturate(1.15); }
.top { background: linear-gradient(180deg, #171a12, #14170f); }

/* искры над мангалом в шапке */
.sparks { position: absolute; inset: 0; z-index: 2; pointer-events: none; overflow: hidden; }
.sparks i {
  position: absolute; bottom: -12px; width: 3px; height: 3px; border-radius: 50%;
  background: #ffb347; box-shadow: 0 0 8px 2px rgba(255,150,40,.75);
  animation: spark linear infinite;
}
@keyframes spark {
  0%   { transform: translate3d(0,0,0) scale(.6); opacity: 0; }
  12%  { opacity: .95; }
  70%  { opacity: .55; }
  100% { transform: translate3d(var(--dx, 20px), -78vh, 0) scale(1); opacity: 0; }
}

/* карточки: цветное свечение при наведении */
.set:hover { box-shadow: 0 18px 40px -12px color-mix(in srgb, var(--acc) 42%, transparent),
                          0 8px 20px rgba(20,23,15,.12); }
.cat-ic { box-shadow: 0 8px 22px -6px color-mix(in srgb, var(--acc) 65%, transparent); }
.cat-head { position: relative; }
.cat-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px;
  background: linear-gradient(90deg, var(--acc), transparent 60%); filter: blur(3px); opacity: .85; }

/* галерея: подсветка и приближение */
.grid figure { box-shadow: 0 6px 20px rgba(20,23,15,.10); transition: box-shadow .25s ease, transform .25s ease; }
.grid figure:hover { transform: translateY(-4px); box-shadow: 0 18px 38px -12px rgba(200,50,15,.45); }
.kitchen { box-shadow: 0 18px 40px -18px rgba(20,23,15,.55); }

/* блоки внизу: больше света */
.info::after { content: ""; position: absolute; left: -10%; bottom: -30%; width: 60%; height: 70%;
  pointer-events: none; background: radial-gradient(closest-side, rgba(224,163,24,.20), transparent 70%); filter: blur(10px); }
.contacts::after { content: ""; position: absolute; right: -8%; top: -20%; width: 55%; height: 80%;
  pointer-events: none; background: radial-gradient(closest-side, rgba(200,50,15,.28), transparent 70%); filter: blur(12px); }
.rating { box-shadow: var(--sh-1); }
.big-tel { text-shadow: 0 0 22px rgba(224,163,24,.35); }

@media (prefers-reduced-motion: reduce) { .sparks { display: none; } }
@media (max-width: 720px) { .sparks { display: none; } body::before { opacity: .4; } }

@media (max-width: 900px) {
  .mainnav { display: none; }
  .burger { display: block; }
  .top-tel { margin-left: auto; }
}
@media (max-width: 720px) {
  .top-in { gap: .5rem; }
  .brand { font-size: 1.02rem; gap: .5rem; }
  .brand img { width: 36px; height: 36px; }
  .brand-txt span { display: none; }
  .top-tel { display: none; }
  .call { display: inline-flex; margin-left: auto; }
  .row { grid-template-columns: 52px 1fr auto; row-gap: .5rem; }
  .row-pic { width: 52px; height: 52px; }
  .add { grid-column: 3; }
  .hero-in { padding: 3rem 0 2.4rem; }
  body { padding-bottom: 5rem; }

  /* ─── Компактная карточка на телефоне ───
     Раньше одно блюдо занимало почти весь экран: фото 3:2 во всю ширину плюс
     состав в десять строк. Здесь фото ниже, состав — две строки, отступы
     плотнее; за полным составом остаётся кнопка «весь состав». */
  .sets { gap: .8rem; }
  .set-pic { aspect-ratio: 2 / 1; }
  .set-body { padding: .7rem .8rem .75rem; }
  .set h3 { font-size: 1.05rem; }
  .cat { padding: 2.2rem 0 .4rem; }
  .cat-head { margin-bottom: 1rem; padding-bottom: .5rem; }
  .price { font-size: 1.1rem; }
  .add { padding: .44rem .9rem; }
}

/* ─── Счётчик количества прямо на карточке блюда ─── */
/* Счётчик появляется только после «В корзину». Без этих правил класс .qty
   с его display:inline-flex перебивал бы браузерный [hidden], и счётчики
   висели бы сразу на всех карточках. */
.card-qty[hidden], .add[hidden] { display: none; }
.card-qty { min-width: 108px; justify-content: space-between; }
.card-qty .qty-n { min-width: 1.8rem; text-align: center; font-size: .95rem; font-weight: 600; }
.card-qty button { font-size: 1.05rem; line-height: 1; }
.promo .card-qty { background: rgba(255,255,255,.14); }
.promo .card-qty .qty-n { color: var(--paper); }

/* Корзина: кнопка заблокирована, пока не набран минимум */
#sendOrder.is-locked { opacity: .55; cursor: not-allowed; }

@media (max-width: 720px) {
  .minbar { bottom: .8rem; width: calc(100vw - 1.6rem); }
  .minbar-in { padding: .65rem .7rem .75rem .85rem; gap: .6rem; }
  .minbar-text b { font-size: .94rem; }
  .minbar-go { padding: .48rem .9rem; font-size: .89rem; }
}

/* Пояснение к заблокированной кнопке отправки */
.minlock { margin: 0 0 .7rem; padding: .6rem .8rem; border-radius: var(--r-md);
  background: #fdf1e4; border: 1px solid #e8c9a6; color: #7a4412; font-size: .88rem; line-height: 1.45; }

/* Полоска рабочей копии. Намеренно яркая и в потоке страницы, а не поверх:
   её нельзя не заметить и нельзя прокрутить мимо. */
.devbar { margin: 0; padding: .5rem 1rem; text-align: center;
  background: repeating-linear-gradient(135deg, #f0b429 0 14px, #e0a318 14px 28px);
  color: #2b2200; font-size: .86rem; font-weight: 600; letter-spacing: .01em; }
.devbar a { color: #2b2200; }

/* hidden должен побеждать любой display из классов — иначе скрытые
   элементы остаются на экране (так уже случалось с .card-qty и .icon-btn). */
[hidden] { display: none !important; }

/* Подсказки адреса под полем ввода */
.suggest-wrap { position: relative; }
.suggest-list {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  margin: 0; padding: .25rem; list-style: none;
  max-height: 15rem; overflow-y: auto;
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 10px 26px rgba(20,23,15,.18);
}
.suggest-list li {
  padding: .55rem .7rem; border-radius: var(--r-sm); cursor: pointer;
  font-size: .93rem; line-height: 1.3;
}
.suggest-list li:hover, .suggest-list li.is-on { background: #efece0; }
.suggest-list li b { font-weight: 600; }
.suggest-list li small { display: block; color: var(--ash); font-size: .78rem; }
.suggest-empty { padding: .6rem .7rem; color: var(--ash); font-size: .88rem; }

/* ─── Страницы разделов меню: /menu/ и /menu/<id>/ ─── */

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem;
  padding: 1.1rem 0 .2rem; font-size: .88rem; color: var(--ash); }
.crumbs a { color: var(--ash); text-decoration: none; border-bottom: 1px solid transparent; }
.crumbs a:hover { color: var(--coal); border-bottom-color: var(--line); }
.crumb-sep { color: var(--line); }

.page-head { padding: .6rem 0 1.6rem; border-bottom: 3px solid var(--coal); margin-bottom: 1.6rem; }
.page-head h1 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); line-height: 1.1; }
.page-intro { margin: .7rem 0 0; max-width: 62ch; color: var(--ash); font-size: .98rem; line-height: 1.55; }

/* Плитка разделов на /menu/ */
.sect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: .8rem; padding-bottom: 2rem; }
.sect-card { display: flex; align-items: center; gap: .85rem; text-decoration: none;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: .95rem 1.05rem; transition: border-color .16s ease, transform .16s ease; }
.sect-card:hover { border-color: var(--acc); transform: translateY(-2px); }
.sect-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px;
  border-radius: 12px; background: color-mix(in srgb, var(--acc) 14%, transparent); color: var(--acc); }
.sect-ic .ic { width: 22px; height: 22px; }
.sect-body { display: flex; flex-direction: column; line-height: 1.3; }
.sect-body b { font-family: Bitter, serif; font-size: 1.06rem; }
.sect-body em { font-style: normal; font-size: .84rem; color: var(--ash); }

/* Ссылки на другие разделы внизу страницы раздела */
.other-sects { padding: 2.2rem 0 2.6rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.other-sects h2 { font-size: 1.15rem; margin-bottom: .9rem; }
.sect-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.sect-links a { text-decoration: none; font-size: .92rem; color: var(--ash);
  padding: .42rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--card); }
.sect-links a:hover { border-color: var(--coal); color: var(--coal); }
/* Белым по тёмному, а не «цветом бумаги»: пока бумага была тёмной, эта
   кнопка читалась; на светлой палитре её текст совпал с фоном страницы,
   и надпись стала невидимой — 1,03 к 1. */
.sect-links a.all { background: var(--coal); color: #fff; border-color: var(--coal); }

/* На странице раздела заголовок самого раздела не нужен — он уже в h1 */
.menu-page .cat-head { display: none; }
.menu-page .cat { padding-top: 0; }
.catnav a.menu-all { background: var(--coal); color: var(--paper); border-color: var(--coal); font-weight: 600; }
.catnav a.menu-all:hover { background: var(--ember); border-color: var(--ember); }

/* ── Разделы меню в подвале ──────────────────────────────────────────
   Не украшение: до этого блока двенадцать страниц разделов не были
   связаны с главной ни одной ссылкой, и поисковику неоткуда было брать
   быстрые ссылки. Заодно человеку из подвала не надо подниматься наверх. */
.foot-sections { margin-top: 2rem; }
.foot-sections h3 { margin: 0 0 .7rem; font: 600 .82rem var(--text);
  letter-spacing: .09em; text-transform: uppercase; color: var(--ash); }
.foot-sections ul { margin: 0; padding: 0; list-style: none;
  display: grid; gap: .45rem 1.4rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 620px) { .foot-sections ul { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .foot-sections ul { grid-template-columns: repeat(4, 1fr); } }
.foot-sections a { font-size: .93rem; text-decoration: none; }
.foot-sections a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Страница одного блюда ───────────────────────────────────────────
   Появилась ради двух вещей: попасть в выдачу по запросу вроде
   «люля-кебаб Химки» и отдать Яндексу товарный фид — там у каждого
   предложения обязателен свой адрес, а якоря на разделе не годятся. */
.dish-page { display: grid; gap: 1.6rem; margin: 1.4rem 0 0;
  grid-template-columns: 1fr; align-items: start; }
@media (min-width: 820px) { .dish-page { grid-template-columns: 1.1fr 1fr; gap: 2.4rem; } }

.dish-page-pic { position: relative; border-radius: var(--r-lg); overflow: hidden;
  background: var(--char); }
.dish-page-pic img { width: 100%; height: auto; display: block; }

.dish-page-serves { margin: 0 0 .9rem; display: inline-block; padding: .34rem .8rem;
  border-radius: 999px; background: var(--card); border: 1px solid var(--line);
  font-size: .88rem; font-weight: 600; }
.dish-page-compo { font-size: 1.02rem; line-height: 1.6; color: var(--ash); }
.dish-page-price { margin: 1.4rem 0 1.1rem; font-family: var(--disp); }
.dish-page-price s { margin-right: .6rem; font-family: var(--text); font-size: .95rem;
  color: var(--ash); }
.dish-page-price b { font-size: 2.1rem; }
.dish-page-buy { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; }
.dish-page-buy .add { padding: .8rem 1.7rem; font-size: 1rem; }
.dish-page-note { margin: 1.2rem 0 0; font-size: .9rem; line-height: 1.55; color: var(--ash);
  max-width: 44ch; }

/* ── Текст под блюдом ────────────────────────────────────────────────
   Не наполнитель: страница без него отличается от соседней только
   названием и ценой, и поиск считает такие страницы почти копиями. */
.dish-about { margin: 2.4rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line);
  max-width: 68ch; }
.dish-about h2 { margin: 0 0 .8rem; font-size: 1.24rem; }
.dish-about p { margin: 0 0 .8rem; font-size: 1rem; line-height: 1.65; color: var(--ash); }
.dish-about p:last-child { margin-bottom: 0; }
.dish-about a:not(.btn) { color: var(--ember-text); }

/* ── Переход к соседним блюдам ──────────────────────────────────────
   Пришедший из поиска иначе упирается в тупик и уходит. */
.dish-nav { display: grid; gap: .7rem; margin: 2rem 0 0; grid-template-columns: 1fr; }
@media (min-width: 620px) { .dish-nav { grid-template-columns: 1fr 1fr; } }
.dish-nav a { display: grid; gap: .2rem; padding: .9rem 1.1rem; border-radius: var(--r-md);
  background: var(--card); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .18s ease; }
.dish-nav a:hover { border-color: var(--gold); }
.dish-nav span { font-size: .78rem; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ash); }
.dish-nav b { font-size: 1rem; line-height: 1.3; }
.dish-nav-next { text-align: right; }

/* ── Частые вопросы ──────────────────────────────────────────────────
   Шесть вопросов были размечены для поисковиков, но на странице их
   никто не видел. Поисковики такое считают обманом и отключают всю
   разметку разом — теперь текст виден человеку, и он тот же самый. */
.faq { padding: 2.6rem 0 1rem; }
.faq h2 { margin: 0 0 1.2rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary { padding: 1rem 2.2rem 1rem 0; cursor: pointer; position: relative;
  font-size: 1.04rem; font-weight: 600; line-height: 1.4; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .4rem; top: 50%;
  transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--gold);
  line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq summary:hover { color: var(--ember-text); }
.faq p { margin: 0 0 1.1rem; padding-right: 2.2rem; font-size: .98rem; line-height: 1.65;
  color: var(--ash); max-width: 72ch; }

/* Текст под плитками разделов: хаб без него был на двести слов */
.menu-about { margin: 2.6rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line);
  max-width: 70ch; }
.menu-about h2 { margin: 0 0 .9rem; font-size: 1.3rem; }
.menu-about p { margin: 0 0 .9rem; font-size: 1rem; line-height: 1.68; color: var(--ash); }
.menu-about p:last-child { margin-bottom: 0; }
.menu-about a:not(.btn) { color: var(--ember-text); }

/* ── Простые страницы: доставка, о компании ──────────────────────────
   Колонка текста, ничего больше. Ширина ограничена: длинная строка
   на широком экране читается тяжело, а эти страницы читают, а не листают. */
.page-text { max-width: 70ch; margin-top: 1.4rem; }
.page-text .lede { font-size: 1.14rem; line-height: 1.6; }
.page-text h2 { margin: 2rem 0 .7rem; font-size: 1.34rem; }
.page-text p { margin: 0 0 .9rem; font-size: 1.02rem; line-height: 1.68; color: var(--ash); }
.page-text .lede { color: var(--ink, inherit); }
.page-text ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.page-text li { margin: .4rem 0; font-size: 1.02rem; line-height: 1.6; color: var(--ash); }
/* Терракотой, а не золотым: золотой давал 4,35 к 1 при норме 4,5.
   И :not(.btn) не для красоты — правило «.page-text a» точнее, чем
   «.btn-1», и красило надпись на кнопке в золотой поверх терракоты.
   «Смотреть меню» выходило 1,03 к 1, то есть кнопка была пустой. */
.page-text a:not(.btn) { color: var(--ember-text); }
.page-text b { color: inherit; }
.page-cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

/* ── Статьи ──────────────────────────────────────────────────────────
   Часть запросов коммерческой страницей не закрыть: «сколько мяса
   на компанию» спрашивают до того, как решили заказывать. */
.art-list { display: grid; gap: 1rem; margin-top: 1.4rem;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.art-card { display: grid; gap: .6rem; padding: 1.1rem 1.2rem; border-radius: var(--r-lg);
  background: var(--card); border: 1px solid var(--line); text-decoration: none;
  transition: border-color .18s ease; }
.art-card:hover { border-color: var(--gold); }
.art-card img { width: 100%; height: 150px; object-fit: cover; border-radius: var(--r-md); }
.art-card b { font-size: 1.08rem; line-height: 1.3; }
.art-card em { font-style: normal; font-size: .92rem; line-height: 1.55; color: var(--ash); }
.art-body { margin-top: 1.2rem; }
.art-body h2 { margin: 1.8rem 0 .6rem; font-size: 1.28rem; }
.art-body ul { margin: 0 0 1rem; padding-left: 1.3rem; }
.art-body li { margin: .45rem 0; }

/* ── заголовок каталога и поиск ──
   В макете они в одну строку: заголовок слева, поиск справа. На узком
   экране встают друг под другом — поиск в 300 пикселей рядом с заголовком
   не помещается, а ужимать его до неузнаваемости хуже, чем перенести. */
.catalog-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.2rem; flex-wrap: wrap; margin: 2rem 0 1.4rem;
}
.catalog-top h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
.catsearch {
  position: relative; display: flex; align-items: center; gap: .55rem;
  width: min(26rem, 100%); padding: .1rem .9rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
}
.catsearch .ic { width: 19px; height: 19px; flex: none; color: var(--ash); }
.catsearch-in {
  flex: 1; min-width: 0; min-height: 44px; border: 0; background: none;
  font: 400 .95rem "Golos Text", sans-serif; color: var(--coal);
}
.catsearch-in:focus { outline: none; }
.catsearch:focus-within { border-color: var(--ember); }
.catsearch-in::-webkit-search-cancel-button { display: none; }
.catsearch-x { width: 30px; height: 30px; flex: none; border: 0; background: none;
  color: var(--ash); font-size: 1.3rem; line-height: 1; cursor: pointer; border-radius: 999px; }
.catsearch-x:hover { background: var(--sunk); color: var(--coal); }
.search-count { margin: -.7rem 0 1rem; font-size: .88rem; color: var(--ash); }

/* Каталог живёт внутри колонки контента, а не в общей .wrap:
   боковая панель уже задала левый край. */
.content > main { padding: 0 clamp(1rem, 3vw, 2rem) 3rem; }

/* ── карточка блюда ──
   Фото, название, одна строка про размер, цена и кнопка. Всё.
   Состав ушёл в окно блюда: в карточке он занимал до четырнадцати строк
   у сетов, и цена уезжала за край экрана. */
.set { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--sh-1); display: flex; flex-direction: column; }
.set:hover { box-shadow: var(--sh-2); }
.set-pic { position: relative; aspect-ratio: 4 / 3; }
.set-body { display: flex; flex-direction: column; gap: .3rem; padding: .9rem 1rem 1rem; flex: 1; }
.set h3 { font-size: 1.05rem; line-height: 1.25; }
.set h3 .dish-open { border: 0; background: none; padding: 0; font: inherit; color: inherit;
  text-align: left; cursor: pointer; }
.set-note { margin: 0; font-size: .88rem; color: var(--ash); }
.set-foot { display: flex; align-items: center; justify-content: space-between;
  gap: .6rem; margin-top: auto; padding-top: .8rem; flex-wrap: wrap; }
.price { margin: 0; display: flex; align-items: baseline; gap: .5rem; }
.price b { font-size: 1.25rem; font-weight: 700; }
.price .was { font-size: .85rem; color: var(--ash); }
.set .add { min-height: 44px; padding: .55rem 1.1rem; border: 0; border-radius: var(--r-sm);
  background: var(--ember); color: var(--on-ember); font: 600 .92rem "Golos Text", sans-serif;
  cursor: pointer; }
.set .add:hover { background: var(--ember-dark); }
.save { position: absolute; left: .7rem; top: .7rem; background: var(--ember); color: var(--on-ember);
  border-radius: 999px; padding: .2rem .6rem; font-size: .8rem; font-weight: 600; }

/* Заголовок раздела: без прежнего кружка со значком —
   в столбце слева значок раздела уже есть, второй раз он ничего не добавляет. */
.cat { margin-top: 2.4rem; }
.cat > .cat-head { display: block; border: 0; padding: 0 0 .9rem; }
.cat > .cat-head .cat-ic { display: none; }
.cat > .cat-head h2 { font-size: clamp(1.35rem, 2.4vw, 1.9rem); }
.sets { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); }

/* ── внутренние страницы ──
   Раньше содержимое центрировалось в .wrap на всю ширину окна. Теперь
   левый край задаёт боковая панель, и своя центровка тянула бы текст
   ещё правее — до середины оставшегося места. */
.content > .page { padding: 1.6rem clamp(1rem, 3vw, 2rem) 3rem; max-width: 60rem; }
.crumbs { font-size: .86rem; color: var(--ash); margin: 0 0 .9rem; }
.crumbs a { color: var(--ash); }
.crumb-sep { margin: 0 .4rem; }
.page-head h1 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.1; }
.page-intro { margin: .7rem 0 0; font-size: 1.03rem; color: var(--ash); max-width: 60ch; }

/* Подвал стоит после колонки контента и потому во всю ширину.
   Отступ слева на ширину панели — иначе он уезжает под неё. */
footer { background: var(--paper-2); border-top: 1px solid var(--line); }
@media (min-width: 1001px) {
  body > footer, .shell + footer { padding-left: var(--side); }
}


/* ── размер нажимаемого ──
   44 пикселя — не придирка: это ширина подушечки пальца, и всё, что ниже,
   промахивается. Правило касается самостоятельных элементов управления;
   ссылки внутри предложений под него не подпадают — их не тычут пальцем
   вслепую, а читают глазами и попадают по строке. */
.big-tel, .tb-phone, .map-load, .foot-sections a, .sect-links a, .side-brand {
  display: inline-flex; align-items: center; min-height: 44px;
}
.foot-sections a, .sect-links a { min-height: 40px; }
.side-brand { display: block; }

/* Ссылки внутри предложений стандарт от 44 пикселей освобождает — по ним
   попадают глазом, а не вслепую. Но 18 пикселей мало и для глаза: строка
   с двумя ссылками подряд превращается в лотерею. Поднимаем до 24 —
   это нижняя граница по WCAG 2.5.8 для любой нажимаемой цели. */
/* Перечислять места по одному — путь наступить на грабли ещё раз: на
   странице блюда нашлись те же 20 пикселей в двух абзацах, которых
   в списке не было. Поэтому правило по смыслу: ссылка внутри абзаца
   или пункта списка, где угодно на сайте. */
p a, li a, .crumbs a { display: inline-block; min-height: 24px; line-height: 24px; }
/* Кроме тех, что сами по себе кнопки или карточки */
p a.btn, li a.btn, .art-card, .sect-links a { min-height: unset; line-height: inherit; }
.sect-links a { display: inline-flex; align-items: center; min-height: 40px; }

/* ── список найденного ──
   Показывается там, где всего меню на странице нет: на странице раздела
   и на странице блюда. Раньше поиск там молчал — искать было не в чем,
   кроме соседних карточек. Ссылка ведёт на страницу блюда: человек
   пришёл с вопросом «есть ли у вас», и ответ должен быть один клик. */
.search-hits {
  display: grid; gap: .35rem; margin: .6rem 0 1.2rem;
  max-height: min(60vh, 30rem); overflow-y: auto;
}
.search-hit {
  display: grid; grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center; gap: .8rem;
  padding: .5rem .7rem; border-radius: var(--r-md);
  background: var(--paper-2); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); min-height: 44px;
}
.search-hit:hover { background: var(--ember-soft); border-color: var(--ember); }
.search-hit img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; }
.search-hit span { display: grid; gap: .1rem; min-width: 0; }
.search-hit b { font-weight: 600; font-size: .95rem; overflow-wrap: anywhere; }
.search-hit i { font-style: normal; font-size: .8rem; color: var(--ash); }
.search-hit-p { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
