:root {
  --coal: #14170f;
  --smoke: #2e332a;
  --ash: #6f7566;
  --paper: #f3f1e7;
  --card: #fbfaf4;
  --ember: #c8320f;
  --leaf: #4f6b34;
  --gold: #e0a318;
  --line: #d9d5c4;
  --r-lg: 18px;
  --r-md: 12px;
  --r-sm: 8px;
  --head-h: 4.5rem;
  --nav-h: 3.6rem;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + var(--nav-h) + .6rem); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--paper); color: var(--coal);
  font: 400 17px/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: -.01em; margin: 0; }
a { color: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
.wrap { width: min(1460px, 100% - 3rem); margin-inline: auto; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.top { position: sticky; top: 0; z-index: 40; background: var(--coal); color: #f2efe4; box-shadow: 0 2px 14px rgba(20,23,15,.28); }
.top-in { display: flex; align-items: center; gap: 1.5rem; padding: .7rem 0; }
.brand { display: flex; align-items: center; gap: .7rem; font-family: Bitter, serif; font-size: 1.32rem; font-weight: 700; text-decoration: none; line-height: 1.1; }
.brand img { width: 46px; height: 46px; flex: none; border-radius: 999px; }
.brand b { display: block; font-weight: 700; white-space: nowrap; }
.brand-txt span { display: block; font-family: "Golos Text", sans-serif; font-size: .68rem; font-weight: 400; color: #a9ae9c; letter-spacing: .04em; }
.top-tel { margin-left: auto; text-align: right; font-size: .8rem; color: #a9ae9c; }
.top-tel a { display: block; font-family: Bitter, serif; font-size: 1.22rem; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; }

.hero { position: relative; background: var(--coal); color: #f5f2e6; overflow: hidden; }
.hero > img { position: absolute; inset: 0; opacity: .58; filter: saturate(.92) contrast(1.04); }
.hero::after { content: ""; position: absolute; inset: 0; background:
  linear-gradient(95deg, rgba(16,18,12,.96) 0%, rgba(16,18,12,.86) 34%, rgba(16,18,12,.42) 62%, rgba(16,18,12,.62) 100%),
  radial-gradient(120% 80% at 50% 120%, rgba(16,18,12,.85), transparent 60%); }
.hero-in { position: relative; z-index: 3; padding: 1.6rem 0; max-width: 34rem; }
.hero h1 { font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.05; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0,0,0,.45); }
.hero p { max-width: 34ch; }
.hero p { margin: 1.1rem 0 0; font-size: 1.06rem; color: #ded9c8; }
.cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.9rem; }
.btn { display: inline-block; white-space: nowrap; padding: .78rem 1.5rem; border-radius: var(--r-md); border: 2px solid transparent; font: 600 1rem "Golos Text", sans-serif; text-decoration: none; cursor: pointer; }
.btn-1 { background: var(--ember); color: #fff; }
.btn-1:hover { background: #ab2a0c; }
.btn-2 { border-color: #6d7364; color: #f2efe4; background: none; }
.facts { position: relative; z-index: 2; display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,.16); padding: 1.1rem 0 1.4rem; font-size: .9rem; color: #cfcbb9; }
.facts p { margin: 0; padding-right: 1.2rem; }
.facts p + p { padding-left: 1.2rem; border-left: 1px solid rgba(255,255,255,.14); }
@media (max-width: 860px) {
  .facts { grid-template-columns: repeat(2, 1fr); gap: .7rem 0; }
  .facts p:nth-child(3) { padding-left: 0; border-left: none; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .facts p + p { padding-left: 0; border-left: none; }
}
.facts b { color: var(--gold); font-weight: 600; }

.catnav { position: sticky; top: var(--head-h); 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(--smoke); 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(--smoke); 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(--smoke); 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(--smoke); 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; }

/* Состав обрезаем по числу строк, а не по высоте: строки считает сам браузер,
   поэтому многоточие всегда попадает на границу строки. Сколько строк
   показывать — задаёт --compo-lines, на телефоне их меньше.
   Кнопку «весь состав» включает скрипт, и только если текст правда не влез. */
.compo { margin: .4rem 0 .25rem; font-size: .86rem; line-height: 1.45; color: var(--smoke);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--compo-lines, 6);
  line-clamp: var(--compo-lines, 6); overflow: hidden; }
.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(--smoke); }
.cols ul { margin: .4rem 0; padding-left: 1.1rem; }
.cols li { margin-bottom: .3rem; }

.contacts { background: var(--coal); color: #eceadf; padding: 3.4rem 0 2.4rem; }
.contacts h2 { color: #fff; font-size: 1.6rem; margin-bottom: 1.4rem; }
.contacts a { color: #fff; }
.contacts .cols p { color: #cbc9bb; }
.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: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  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: #b7bcab; margin: .25rem 0 0; }
.rating .meta a { color: #fff; }
.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: #b7bcab; }
.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 rgba(255,255,255,.14); font-size: .8rem; color: #8f9484; }

/* 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(--smoke); 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] —
   иначе закрытый диалог перестал бы скрываться. */
.dish-dlg { width: min(560px, calc(100% - 1.6rem)); max-height: min(92vh, 900px); overflow: hidden; }
.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); }
.dish-pic { position: relative; flex: none; aspect-ratio: 3 / 2; background: #e6e2d3; }
.dish-pic img { width: 100%; height: 100%; object-fit: cover; }
/* Прокручивается только состав; фото сверху и кнопки внизу стоят на месте */
.dish-scroll { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain;
  padding: 1.1rem 1.3rem 1.1rem; }
.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(--smoke); }
.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; }
.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(--smoke); 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 { 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: .55; 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; }
.cat-head { border-bottom-color: var(--acc); }
.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 .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: inset 0 0 0 1px rgba(255,255,255,.05), 0 12px 30px -16px rgba(224,163,24,.6); }
.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; }
  .compo { --compo-lines: 2; margin: .3rem 0 .2rem; font-size: .84rem; }
  .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; }

/* 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; }
