/* ==========================================================================
   Абрикос — QR-меню (страница /menu/)
   ========================================================================== */

/* Высота липкой шапки; JS уточняет отступ по факту (menu.js → syncPadding) */
:root { --mbar-h: 118px; }
/* Плавность прокрутки здесь задаёт menu.js; нативный переход по #якорю — мгновенный, без «пролистывания» всех фото */
html { scroll-padding-top: calc(var(--mbar-h) + 8px); scroll-behavior: auto; }

/* ---------- Липкая шапка ---------- */
.mbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(16, 8, 5, 0.86);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  backdrop-filter: saturate(150%) blur(16px);
  border-bottom: 1px solid var(--line);
}
.mbar__top {
  position: relative;
  height: 62px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}
.mbar__logo { justify-self: center; }
.mbar__back { justify-self: start; }
.mbar__right { justify-self: end; display: flex; align-items: center; gap: 8px; }
.mbar__logo img { width: 112px; height: auto; filter: drop-shadow(0 4px 16px rgba(246, 161, 44, 0.25)); }
.mbar__back,
.mbar__btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gold-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background-color 0.3s var(--ease), color 0.3s;
}
.mbar__back:hover,
.mbar__btn:hover { background: rgba(246, 161, 44, 0.12); color: var(--apricot-2); }
.mbar__back svg,
.mbar__btn svg { width: 20px; height: 20px; }

.search {
  position: absolute;
  inset: 9px var(--gutter);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px 0 16px;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
}
.search > svg { width: 18px; height: 18px; color: var(--gold); flex: none; }
.search input {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  color: var(--cream);
}
.search input::placeholder { color: var(--faint); }
.search input::-webkit-search-cancel-button { display: none; }
.search .mbar__btn { box-shadow: none; width: 38px; height: 38px; }
.is-searching .search { opacity: 1; visibility: visible; transform: none; }
.is-searching .mbar__logo { visibility: hidden; }

/* Разделы-чипсы */
.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px var(--gutter) 12px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 var(--gutter), #000 calc(100% - var(--gutter)), transparent);
}
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  min-height: 40px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 650;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
  transition: background-color 0.35s var(--ease), color 0.35s, box-shadow 0.35s;
}
.chip:hover { box-shadow: inset 0 0 0 1px var(--line-2); }
.chip.is-active {
  background: var(--grad-apricot);
  color: #241004;
  box-shadow: 0 6px 20px -8px rgba(246, 161, 44, 0.8);
}
.chip[hidden] { display: none; }
.chip:first-child { margin-left: auto; }
.chip:last-child { margin-right: auto; }
@media (min-width: 1024px) and (pointer: fine) {
  .chips { flex-wrap: wrap; justify-content: center; gap: 6px; overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .chip { padding: 0 14px; font-size: 13.5px; min-height: 38px; }
  .chip:first-child,
  .chip:last-child { margin: 0; }
}

/* Пока меню не отрисовано скриптом, держим место — без «прыжка» страницы */
.js .chips:empty { min-height: 54px; }
.js #menu-sections:not(:has(.msection)) { min-height: 100vh; }

/* ---------- Интро ---------- */
.mhero {
  position: relative;
  overflow: hidden;
  padding: 44px 0 18px;
  text-align: center;
  isolation: isolate;
}
.mhero::before {
  content: "";
  position: absolute;
  inset: -20% -10% 0;
  z-index: -2;
  background: radial-gradient(50% 60% at 50% 0%, rgba(246, 161, 44, 0.22), transparent 70%);
}
.mhero__ornament {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(../img/brand/ornament-700.webp) center top / 900px auto repeat-x;
  mix-blend-mode: screen;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(60% 90% at 50% 0%, #000 20%, transparent 80%);
  mask-image: radial-gradient(60% 90% at 50% 0%, #000 20%, transparent 80%);
}
.mhero__arm { font-size: 15px; letter-spacing: 0.3em; }
.mhero__title { font-size: clamp(64px, 16vw, 120px); margin-top: 2px; }
.mhero__sub {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  color: var(--gold-2);
  margin-top: 2px;
}
.lunch-pill {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 8px 8px 8px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(246, 161, 44, 0.16), rgba(246, 161, 44, 0.06));
  box-shadow: inset 0 0 0 1px rgba(246, 161, 44, 0.4);
}
.lunch-pill__label { font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-2); }
.lunch-pill__price {
  padding: 4px 16px;
  border-radius: 999px;
  background: var(--grad-apricot);
  color: #241004;
  font-size: 24px;
  line-height: 1.3;
}

/* ---------- Раздел ---------- */
.msection { padding-top: 48px; }
.msection[hidden] { display: none; }
.msection__head {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 4px;
  margin-bottom: 22px;
}
.msection__arm { font-size: 12px; letter-spacing: 0.22em; }
.msection__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 9vw, 56px);
  line-height: 1.02;
  color: var(--cream);
}
.msection__count { font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.msection__head .divider { margin-top: 8px; width: 100%; }
.msection__head .divider svg { width: 26px; height: 26px; }

/* Сетка карточек */
.mgrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
@media (min-width: 680px) { .mgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1040px) { .mgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }

/* Блюдо в обёртке: карточка-кнопка + кнопка «+» для заказа навынос (cart.js) */
.mitem { position: relative; display: flex; min-width: 0; }
.mitem[hidden] { display: none; }
.mitem > .mcard,
.mitem > .mrow { flex: 1; min-width: 0; }

.mcard {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  text-align: left;
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.mcard:hover { box-shadow: inset 0 0 0 1px var(--line-2), var(--shadow); transform: translateY(-3px); }
.mcard:active { transform: scale(0.985); }

.mcard__media {
  position: relative;
  aspect-ratio: 1 / 0.9;
  margin: 6px 6px 0;
  border-radius: calc(var(--radius) - 5px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 45%, rgba(246, 161, 44, 0.12), transparent 60%),
    var(--surface-3);
}
.mcard__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 1s var(--ease);
}
.mcard__media img.is-loaded { opacity: 1; }
.mcard:hover .mcard__media img { transform: scale(1.05); }
.mcard__media--contain img { object-fit: contain; padding: 8%; }
.mcard__noimg {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--gold);
  opacity: 0.45;
}
.mcard__noimg svg { width: 46%; height: 46%; }

.mcard__tag {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #241004;
  background: var(--grad-apricot);
}
.mcard__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 12px 12px;
}
.mcard__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 650;
  line-height: 1.12;
  color: var(--cream);
  overflow-wrap: anywhere;
}
.mcard__desc {
  font-size: 12.5px;
  line-height: 1.4;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mcard__foot {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.mcard__portion { font-size: 12px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mcard .price { font-size: 21px; line-height: 1; }

@media (min-width: 680px) {
  .mcard__name { font-size: 22px; }
  .mcard__body { padding: 14px 16px 16px; }
  .mcard .price { font-size: 23px; }
  .mcard__desc { font-size: 13px; }
}

/* ---------- Список (напитки) ---------- */
.mlist-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
@media (min-width: 860px) { .mlist-wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; } }
.mlist-wrap--solo { max-width: 720px; margin-inline: auto; }
@media (min-width: 860px) { .mlist-wrap--solo { grid-template-columns: minmax(0, 1fr); } }
.mlist-cover {
  border-radius: 999px 999px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  outline: 1px solid var(--line-2);
  outline-offset: 5px;
  background: var(--surface-2);
}
.mlist-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s var(--ease); }
.mlist-cover img.is-loaded { opacity: 1; }
@media (max-width: 859px) { .mlist-cover { aspect-ratio: 16 / 9; border-radius: 160px 160px var(--radius) var(--radius); } }

.mlist {
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 6px 18px;
}
.mrow {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 0;
}
.mlist > .mitem { border-bottom: 1px solid var(--line); }
.mlist > .mitem:last-child { border-bottom: 0; }
.mrow--thumb { display: flex; align-items: center; gap: 14px; }
.mrow__main { display: block; flex: 1; min-width: 0; }
.mrow__thumb {
  flex: none;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--gold);
}
.mrow__thumb img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.6s var(--ease); }
.mrow__thumb img.is-loaded { opacity: 1; }
.mrow__thumb--contain img { object-fit: contain; padding: 4px; }
.mrow__thumb svg { width: 60%; height: 60%; opacity: 0.5; }
.mrow__line { display: flex; align-items: baseline; gap: 10px; }
.mrow__name { min-width: 0; font-family: var(--font-display); font-size: 21px; font-weight: 650; color: var(--cream); line-height: 1.2; overflow-wrap: anywhere; }
.mrow__dots { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--line-2); transform: translateY(-5px); }
.mrow .price { font-size: 21px; }
.mrow__meta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.mrow__vars { margin-top: 6px; display: grid; gap: 4px; }
.mrow__var { display: flex; align-items: baseline; gap: 10px; font-size: 14px; color: var(--text); }
.mrow__var .price { font-size: 18px; }
.mrow__var-portion { color: var(--faint); font-size: 12.5px; }

/* ---------- Пусто / подвал ---------- */
.empty {
  padding: 48px 0;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
}
.mfoot {
  padding-top: 64px;
  padding-bottom: calc(56px + env(safe-area-inset-bottom));
  display: grid;
  justify-items: center;
  gap: 14px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  max-width: 620px;
}
.mfoot strong { color: var(--cream); font-weight: 700; }
.mfoot .divider { width: 100%; margin-bottom: 8px; }
.mfoot__bye { font-size: 22px; letter-spacing: 0.12em; margin-top: 12px; }
.mfoot__bye-ru { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--gold-2); margin-top: -8px; }

.totop {
  position: fixed;
  right: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 40;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(28, 17, 10, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 30px -10px rgba(0, 0, 0, 0.8);
  color: var(--gold-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0.4s;
}
.totop svg { width: 20px; height: 20px; }
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------- Шторка с блюдом ---------- */
.sheet {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  /* clip, а не hidden: при открытии браузер переводит фокус на кнопку «Закрыть», пока шторка ещё
     уезжает вниз за экран, и прокручивал к ней само окно — шторка прыгала. clip прокрутку запрещает. */
  overflow: hidden;
  overflow: clip;
}
.sheet:not([open]) { display: none; }
.sheet[open] { display: flex; align-items: flex-end; justify-content: center; }
.sheet::backdrop { background: rgba(6, 3, 2, 0.7); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.sheet__panel {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, var(--surface-2), var(--bg-2));
  box-shadow: inset 0 1px 0 var(--line-2), 0 -20px 60px -10px rgba(0, 0, 0, 0.7);
  padding-bottom: env(safe-area-inset-bottom);
  animation: sheet-up 0.5s var(--ease) backwards;
  touch-action: pan-y;
}
.sheet.is-closing .sheet__panel { animation: sheet-down 0.3s var(--ease) forwards; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes sheet-down { from { transform: translateY(var(--drag, 0px)); } to { transform: translateY(100%); } }
@media (min-width: 720px) {
  .sheet[open] { align-items: center; }
  .sheet__panel { border-radius: 28px; max-height: 88vh; animation-name: sheet-pop; }
  .sheet.is-closing .sheet__panel { animation-name: sheet-fade; }
  @keyframes sheet-pop { from { opacity: 0; transform: translateY(20px) scale(0.98); } to { opacity: 1; transform: none; } }
  @keyframes sheet-fade { to { opacity: 0; transform: translateY(10px) scale(0.98); } }
}
.sheet__grab {
  position: absolute;
  left: 50%;
  top: 8px;
  z-index: 3;
  width: 44px;
  height: 5px;
  margin-left: -22px;
  border-radius: 3px;
  background: rgba(246, 234, 216, 0.5);
}
@media (min-width: 720px) { .sheet__grab { display: none; } }
.sheet__close {
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(16, 8, 5, 0.7);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--cream);
}
.sheet__close svg { width: 20px; height: 20px; }
.sheet__media {
  aspect-ratio: 4 / 3;
  background: var(--surface-3);
  overflow: hidden;
}
.sheet__media:empty { display: none; }
.sheet__media img { width: 100%; height: 100%; object-fit: cover; }
.sheet__media--contain img { object-fit: contain; padding: 6%; }
.sheet__media--small {
  display: grid;
  place-items: center;
  aspect-ratio: auto;
  padding: 56px 24px 8px;
  background: radial-gradient(circle at 50% 60%, rgba(246, 161, 44, 0.14), transparent 65%), var(--surface-3);
}
.sheet__media--small img { width: auto; height: auto; max-width: 260px; border-radius: 18px; }
.sheet__body { padding: 22px 22px 28px; display: grid; gap: 10px; }
.sheet__media:empty + .sheet__body { padding-top: 56px; }
.sheet__section { font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.sheet__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.05;
  color: var(--cream);
}
.sheet__desc { color: var(--muted); font-size: 15px; line-height: 1.6; }
.sheet__desc:empty { display: none; }
.sheet__variants { margin-top: 8px; display: grid; }
.sheet__variants li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.sheet__var-label { font-size: 15px; font-weight: 650; color: var(--text); }
.sheet__var-portion { font-size: 13px; color: var(--faint); }
.sheet__var-dots { flex: 1; min-width: 12px; border-bottom: 1px dotted var(--line-2); transform: translateY(-5px); }
.sheet__variants .price { font-size: 28px; }

/* Телефоны: без размытия подложки у липкой шапки и кнопок (см. конец base.css) */
@media (pointer: coarse) {
  .mbar, .totop, .sheet__close { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .mbar { background: rgba(16, 8, 5, 0.95); }
  .sheet__close { background: rgba(16, 8, 5, 0.85); }
}

.mbar .lang-pill { height: 44px; min-width: 44px; }
.is-searching .mbar__right .lang-pill { visibility: hidden; }

/* ---------- Бронь стола: номера в подвале меню ---------- */
.mfoot__phones a { color: var(--gold-2); white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* ===================== ЗАКАЗ НАВЫНОС (cart.js) ===================== */
/* «+» у блюда: на карточке — на нижнем краю фото, в списке — справа */
.madd {
  position: absolute;
  z-index: 3;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad-apricot);
  color: #241004;
  box-shadow: 0 8px 20px -8px rgba(246, 161, 44, 0.8), 0 0 0 3px rgba(16, 8, 5, 0.6);
  transition: transform 0.25s var(--ease), background-color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.madd svg { width: 20px; height: 20px; }
.madd:active { transform: scale(0.9); }
.madd__n { display: none; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.madd.has-n { background: var(--cream); }
.madd.has-n svg { display: none; }
.madd.has-n .madd__n { display: block; }
.madd.is-bump { animation: madd-bump 0.4s var(--ease); }
@keyframes madd-bump { 40% { transform: scale(1.2); } }
.mitem--card { container-type: inline-size; }
.mitem--card .madd { right: 12px; top: 12px; }
@supports (top: 1cqw) {
  .mitem--card .madd { top: calc((100cqw - 12px) * 0.9 + 6px - 21px); }
}
.mitem--row .madd { right: 0; top: 50%; margin-top: -21px; }
.ordering .mitem--row .mrow { padding-right: 54px; }

/* нет в наличии (стоп-лист из админки) */
.mitem.is-out .mcard,
.mitem.is-out .mrow { opacity: 0.5; }
.mitem__out {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  background: rgba(16, 8, 5, 0.88);
  color: var(--cream);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.mitem--card .mitem__out { right: 12px; top: 12px; }
.mitem--row .mitem__out { right: 0; top: 16px; }
.mitem--row.is-out .mrow__line .price,
.mitem--row.is-out .mrow__line .mrow__dots { visibility: hidden; }

/* плашка под заголовком меню */
.order-note {
  margin: 18px auto 0;
  max-width: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
  color: var(--gold-2);
  background: rgba(246, 161, 44, 0.08);
  box-shadow: inset 0 0 0 1px rgba(246, 161, 44, 0.28);
}
.order-note svg { width: 20px; height: 20px; flex: none; color: var(--apricot); }
.order-note.is-off { color: var(--muted); background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); }
.order-note.is-off svg { color: var(--faint); }
.order-note[hidden] { display: none; }

/* нижняя панель «Корзина» */
.cartbar {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  width: min(520px, calc(100% - 24px));
  transform: translateX(-50%);
  animation: cartbar-in 0.45s var(--ease) backwards;
}
.cartbar[hidden] { display: none; }
@keyframes cartbar-in { from { transform: translate(-50%, 130%); opacity: 0; } }
.cartbar__btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: 999px;
  text-align: left;
  background: var(--grad-apricot);
  color: #241004;
  box-shadow: 0 16px 40px -12px rgba(246, 161, 44, 0.7), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  -webkit-tap-highlight-color: transparent;
}
.cartbar__btn:active { transform: scale(0.99); }
.cartbar__icon { position: relative; flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(36, 16, 4, 0.12); }
.cartbar__icon svg { width: 22px; height: 22px; }
.cartbar__n {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #241004;
  color: var(--apricot-2);
  font-size: 12px;
  font-weight: 800;
}
.cartbar__text { flex: 1; min-width: 0; display: grid; }
.cartbar__label { font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cartbar__sum { font-size: 22px; line-height: 1.1; color: #241004; }
.cartbar__go { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #241004; color: var(--apricot-2); }
.cartbar__go svg { width: 18px; height: 18px; }
.cartbar.is-off .cartbar__btn { background: var(--surface-3); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.cartbar.is-off .cartbar__sum { color: var(--cream); }
.cartbar.is-off .cartbar__icon { background: rgba(255, 255, 255, 0.05); }
.has-cartbar .totop { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 78px); }
.has-cartbar .mfoot { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }

/* всплывающая подсказка «Добавлено» */
.ctoast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: calc(max(14px, env(safe-area-inset-bottom)) + 84px);
  max-width: calc(100% - 32px);
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(16, 8, 5, 0.95);
  color: var(--cream);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 0 0 1px var(--line-2), 0 12px 30px -10px rgba(0, 0, 0, 0.8);
  opacity: 0;
  transform: translate(-50%, 10px);
  pointer-events: none;
  transition: opacity 0.3s, transform 0.3s var(--ease);
}
.ctoast.is-on { opacity: 1; transform: translate(-50%, 0); }
dialog .ctoast { bottom: max(18px, env(safe-area-inset-bottom)); }

/* количество у варианта (карточка блюда, корзина) */
.qstep { flex: none; display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); }
.qstep:not(.is-on) { padding: 0; box-shadow: none; }
.qstep button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--cream); transition: background-color 0.2s; }
.qstep button:hover { background: rgba(246, 161, 44, 0.14); }
.qstep button svg { width: 16px; height: 16px; }
.qstep .qstep__add { width: 42px; height: 42px; background: var(--grad-apricot); color: #241004; box-shadow: 0 8px 20px -10px rgba(246, 161, 44, 0.8); }
.qstep .qstep__add:hover { background: var(--grad-apricot); }
.qstep .qstep__add svg { width: 19px; height: 19px; }
.qstep__n { min-width: 22px; text-align: center; font-weight: 800; font-variant-numeric: tabular-nums; color: var(--cream); }
.sheet__variants.is-ordering li { align-items: center; }
.sheet__variants .qstep { margin-left: 2px; }

/* окно корзины и оформления */
.cart .cart__panel { max-width: 520px; }
.cart__body { padding: 30px 22px 24px; display: grid; gap: 14px; }
.cart [tabindex="-1"]:focus { outline: none; }
.cart__list { display: grid; }
.cart__item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.cart__item:last-child { border-bottom: 1px solid var(--line); }
.cart__thumb { flex: none; width: 56px; height: 56px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: var(--surface-3); color: var(--gold); }
.cart__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart__thumb--contain img { object-fit: contain; padding: 4px; }
.cart__thumb svg { width: 60%; height: 60%; opacity: 0.5; }
.cart__info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cart__name { font-family: var(--font-display); font-size: 19px; font-weight: 650; line-height: 1.15; color: var(--cream); overflow-wrap: anywhere; }
.cart__sub { font-size: 12.5px; color: var(--faint); }
.cart__warn { font-size: 12.5px; color: #ffab8f; }
.cart__price { font-size: 18px; }
.cart__item.is-out .cart__thumb,
.cart__item.is-out .cart__name { opacity: 0.5; }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); }
.cart__total .price { font-size: 32px; letter-spacing: 0; }
.cart__note { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.cart__note svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--gold); }
.cart__wide { width: 100%; justify-content: center; }
.cart__link { justify-self: center; padding: 10px 12px; font-size: 14px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.cart__link:hover { color: var(--cream); }
.cart__hint { color: var(--muted); font-size: 15px; line-height: 1.5; }
.cart__hint a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cart__closed { padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); color: var(--text); font-size: 14px; line-height: 1.45; }

.cform { display: grid; gap: 14px; }
.cform__field { display: grid; gap: 6px; }
.cform__field > span { font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.cform__field i { font-style: normal; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--faint); }
.cform input:not([type="checkbox"]),
.cform select,
.cform textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--surface-3);
  color: var(--cream);
  font: inherit;
  font-size: 16px;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.cform textarea { min-height: 70px; resize: vertical; }
.cform input:focus-visible,
.cform select:focus-visible,
.cform textarea:focus-visible { outline: 2px solid var(--apricot); outline-offset: 1px; }
.cform input::placeholder,
.cform textarea::placeholder { color: var(--faint); }
.cform select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%23e9c27a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 18px;
}
.cform__hp { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); opacity: 0; }
.cform__consent { display: flex; gap: 12px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; color: var(--muted); cursor: pointer; }
.cform__consent input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--apricot); }
.cform__consent a { color: var(--gold-2); text-decoration: underline; text-underline-offset: 2px; }
.cform__error { padding: 10px 14px; border-radius: 12px; background: rgba(255, 110, 80, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 120, 90, 0.4); color: #ffbfae; font-size: 14px; line-height: 1.45; }
.cform__error[hidden] { display: none; }
.btn.is-busy { opacity: 0.7; pointer-events: none; }

.cart__done { display: grid; justify-items: center; gap: 14px; padding: 16px 0 4px; text-align: center; }
.cart__done p { color: var(--text); font-size: 16px; line-height: 1.55; }
.cart__done strong { color: var(--cream); }
.cart__check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-apricot); color: #241004; box-shadow: 0 16px 40px -14px rgba(246, 161, 44, 0.8); animation: cart-pop 0.5s var(--ease) backwards; }
.cart__check svg { width: 34px; height: 34px; }
@keyframes cart-pop { from { transform: scale(0.6); opacity: 0; } }

@media (pointer: coarse) {
  .ctoast { background: rgba(16, 8, 5, 0.97); }
}
/* в открытой шторке подсказка — сверху, над затемнением, чтобы не закрывала цены */
dialog .ctoast { top: max(14px, env(safe-area-inset-top)); bottom: auto; transform: translate(-50%, -10px); }
dialog .ctoast.is-on { transform: translate(-50%, 0); }
.cart__body > .sheet__section { padding-right: 48px; }
@media (max-width: 380px) {
  .cart__body { padding-inline: 16px; }
  .cart__item { gap: 10px; }
  .cart__thumb { width: 46px; height: 46px; border-radius: 12px; }
  .cart__name { font-size: 17px; }
  .cart__item .qstep button { width: 30px; height: 30px; }
  .cart__item .qstep__n { min-width: 18px; }
  .sheet__variants .qstep button { width: 32px; height: 32px; }
  .sheet__variants .qstep .qstep__add { width: 38px; height: 38px; }
}
