/* Сайт операторов (1а): из утверждённых макетов `docs/design/mockups/operators-couriers/components.css` (Р256, 14.10.2026); правки сайта — в `operator.css`. */
/* Детали дизайн-системы (спецификация docs/roadmap/specs/02-design-system.md, раздел 3).
   Размеры — только токены (tokens.css), цвета — только роли темы (theme-shushu.css):
   это стережёт tests/design/test_tokens_guard.py. Состояния :hover/:active продублированы
   классами .is-hover/.is-active — чтобы библиотека показывала их без мыши. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  /* Подвал внизу окна и на короткой странице: содержимое растягивается между шапкой и подвалом */
  display: flex; flex-direction: column; min-height: 100vh;
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--font-text); font-size: var(--text-md); line-height: var(--leading-text);
  -webkit-font-smoothing: antialiased;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 {
  margin: 0; font-family: var(--font-title); font-weight: var(--weight-medium);
  line-height: var(--leading-title); letter-spacing: 0.01em;
}
h1 { font-size: var(--title-xl); }
h2 { font-size: var(--title-lg); }
h3 { font-size: var(--title-sm); }
p { margin: 0; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ── Кнопки ───────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-lg); padding: 0 var(--space-5); border-radius: var(--radius-md);
  border: 1px solid transparent; background: var(--panel); color: var(--ink);
  font-weight: var(--weight-semibold); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color var(--motion-fast) var(--ease), border-color var(--motion-fast) var(--ease),
    color var(--motion-fast) var(--ease), transform var(--motion-fast) var(--ease);
}
.btn--md { min-height: var(--control-md); padding: 0 var(--space-4); font-size: var(--text-sm); }
.btn--primary { background: var(--accent); color: var(--on-accent); }
.btn--primary:hover, .btn--primary.is-hover { background: var(--accent-hover); }
.btn--secondary { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn--secondary:hover, .btn--secondary.is-hover { background: var(--tint); }
.btn--text { background: transparent; color: var(--accent); padding: 0; white-space: normal; text-align: left; }
.btn--text:hover, .btn--text.is-hover { text-decoration: underline; text-underline-offset: 4px; }
.btn--danger { background: var(--err); color: var(--on-accent); }
.btn--block { width: 100%; }
.btn:active, .btn.is-active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn.is-loading { color: transparent; position: relative; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: var(--icon-md); height: var(--icon-md);
  border: 2px solid var(--on-accent); border-right-color: transparent; border-radius: var(--radius-pill);
  animation: spin var(--motion-decor) linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: var(--icon-button); height: var(--icon-button); border: 0; border-radius: var(--radius-md);
  background: transparent; color: var(--ink); text-decoration: none; cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease);
}
.icon-btn:hover, .icon-btn.is-hover, .icon-btn[aria-expanded="true"] { background: var(--tint); }
.icon-btn svg { width: var(--icon-lg); height: var(--icon-lg); }
.icon-btn__dot {
  position: absolute; top: var(--space-2); right: var(--space-2); width: var(--space-3); height: var(--space-3);
  border-radius: var(--radius-pill); background: var(--err); border: 2px solid var(--page);
}

/* ── Поля ─────────────────────────────────────────────────────────────── */
.field { display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.field__label { font-weight: var(--weight-medium); color: var(--ink); }
.field__hint { color: var(--muted); }
.field__error { color: var(--err); }
.input, .select {
  width: 100%; height: var(--control-lg); padding: 0 var(--space-4); border: 1px solid var(--border);
  border-radius: var(--radius-md); background: var(--panel); font-size: var(--text-md);
  transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.input:hover, .select:hover, .input.is-hover { border-color: var(--gold2); }
.textarea { height: auto; min-height: calc(var(--space-8) * 2); padding: var(--space-3); line-height: var(--leading-text); resize: vertical; }
.input:focus, .select:focus { outline: none; border-color: var(--gold); }
.input:focus-visible, .select:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.search:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.search input:focus-visible { outline: none; }
.input:disabled, .select:disabled { opacity: 0.45; cursor: not-allowed; }
.field--error .input { border-color: var(--err); }
.field--ok .input { border-color: var(--ok); }
.select {
  appearance: none; padding-right: var(--space-7); cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - var(--space-5)) 50%, calc(100% - var(--space-4)) 50%;
  background-size: var(--space-2) var(--space-2); background-repeat: no-repeat;
}
.search {
  display: flex; align-items: center; gap: var(--space-2); height: var(--control-lg);
  padding: 0 var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--panel); color: var(--muted);
}
.search:focus-within { border-color: var(--gold); }
.search svg { width: var(--icon-md); height: var(--icon-md); flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--ink); outline: none; }
.search__clear { border: 0; background: transparent; color: var(--muted); cursor: pointer; padding: var(--space-1); }

/* ── Переключатели, флажки, радио ────────────────────────────────────── */
.switch, .check, .radio {
  display: inline-flex; align-items: center; gap: var(--space-3); min-height: var(--control-md); cursor: pointer;
}
.switch, .check, .radio { position: relative; }
.check--long { align-items: flex-start; }
.check--long .check__box { margin-top: calc((1lh - var(--icon-md)) / 2); }
.check--long input { top: 0; transform: none; margin-top: calc((1lh - var(--icon-md)) / 2); }
/* Поле ввода прозрачное, но нажимаемое — лежит ровно поверх нарисованного флажка */
.switch input, .check input, .radio input { position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: var(--icon-md); height: var(--icon-md); margin: 0; opacity: 0; cursor: pointer; }
.switch input { width: calc(var(--space-7) - var(--space-1)); height: var(--space-5); }
.switch__track {
  position: relative; width: calc(var(--space-7) - var(--space-1)); height: var(--space-5); flex: none;
  border-radius: var(--radius-pill); background: var(--border); transition: background-color var(--motion-base) var(--ease);
}
.switch__track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: calc(var(--space-5) - var(--space-1)); height: calc(var(--space-5) - var(--space-1));
  border-radius: var(--radius-pill); background: var(--panel); box-shadow: var(--shadow-1);
  transition: transform var(--motion-base) var(--ease);
}
.switch input:checked + .switch__track { background: var(--gold); }
.switch input:checked + .switch__track::after { transform: translateX(var(--space-5)); }
.switch input:focus-visible + .switch__track { outline: 2px solid var(--focus); outline-offset: 2px; }
.check__box, .radio__dot {
  width: var(--icon-md); height: var(--icon-md); flex: none; border: 2px solid var(--gold2); background: var(--panel);
  transition: background-color var(--motion-fast) var(--ease);
}
.check__box { border-radius: var(--radius-sm); }
.radio__dot { border-radius: var(--radius-pill); }
.check input:checked + .check__box { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 var(--space-1) var(--panel); }
.radio input:checked + .radio__dot { background: var(--gold); box-shadow: inset 0 0 0 var(--space-1) var(--panel); }
.check input:focus-visible + .check__box, .radio input:focus-visible + .radio__dot { outline: 2px solid var(--focus); outline-offset: 2px; }

/* ── Вкладки и сегменты ───────────────────────────────────────────────── */
.segments {
  max-width: 100%; overflow-x: auto; scrollbar-width: none;
  display: inline-flex; gap: var(--space-1); padding: var(--space-1); border-radius: var(--radius-md);
  background: var(--cream); min-height: var(--control-lg);
}
.segments__item {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-md); padding: 0 var(--space-4); border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--ink); font-weight: var(--weight-medium); white-space: nowrap; cursor: pointer;
  transition: background-color var(--motion-base) var(--ease), color var(--motion-base) var(--ease);
}
.segments__item:hover, .segments__item.is-hover { background: var(--tint); }
.segments__item[aria-pressed="true"] { background: var(--panel); color: var(--accent); box-shadow: var(--shadow-1); }
.tabs { display: flex; gap: var(--space-5); border-bottom: 1px solid var(--border); }
.tabs__item {
  display: inline-flex; align-items: center; min-height: var(--control-lg); border-bottom: 2px solid transparent;
  color: var(--muted); text-decoration: none; font-weight: var(--weight-medium);
}
.tabs__item[aria-current] { color: var(--ink); border-bottom-color: var(--gold); }

/* ── Выпадающие меню ──────────────────────────────────────────────────── */
.menu {
  z-index: var(--z-dropdown); min-width: calc(var(--space-8) * 4); max-width: min(var(--menu-max), calc(100vw - var(--space-4)));
  padding: var(--space-2); border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--panel); box-shadow: var(--shadow-2); overflow: auto;
  animation: menu-in var(--motion-base) var(--ease);
}
.menu[hidden] { display: none; }
@keyframes menu-in { from { opacity: 0; transform: translateY(calc(var(--space-1) * -1)); } }
.menu__head { padding: var(--space-2) var(--space-3) var(--space-3); border-bottom: 1px solid var(--border); margin-bottom: var(--space-2); }
.menu__item {
  display: flex; align-items: center; gap: var(--space-3); width: 100%; min-height: var(--control-md);
  padding: 0 var(--space-3); border: 0; border-radius: var(--radius-md); background: transparent;
  color: var(--ink); text-align: left; text-decoration: none; cursor: pointer;
}
.menu__item:hover, .menu__item:focus-visible, .menu__item.is-hover, .menu__item[aria-current="true"] { background: var(--tint); }
.menu__item[aria-checked="true"] { background: var(--tint); font-weight: var(--weight-semibold); }
.menu__label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__sub { display: block; color: var(--muted); font-size: var(--text-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu__count {
  min-width: var(--space-5); height: var(--space-5); padding: 0 var(--space-2); border-radius: var(--radius-pill);
  background: var(--err); color: var(--on-accent); font-size: var(--text-xs); font-weight: var(--weight-semibold);
  display: inline-flex; align-items: center; justify-content: center;
}
.menu__sep { height: 1px; margin: var(--space-2) 0; background: var(--border); }

/* ── Ярлыки, чипы, аллергены ─────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--control-md); padding: 0 var(--space-4); border: 1px solid var(--border);
  border-radius: var(--radius-pill); background: var(--panel); color: var(--ink); font-size: var(--text-sm);
  white-space: nowrap; cursor: pointer; transition: background-color var(--motion-fast) var(--ease);
}
.chip:hover, .chip.is-hover { border-color: var(--gold2); }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.badge {
  display: inline-flex; align-items: center; gap: var(--space-1); height: var(--space-5); padding: 0 var(--space-2);
  border-radius: var(--radius-pill); background: var(--panel); color: var(--ink);
  font-size: var(--text-xs); font-weight: var(--weight-semibold); white-space: nowrap;
}
.badge--new { background: var(--accent); color: var(--on-accent); }
.badge--hit { background: var(--accent); color: var(--on-accent); }
.badge--left { background: var(--pistachio); color: var(--ink); }
.badge--allergen { background: var(--cream); color: var(--ink); border: 1px dashed var(--muted); }
.badge--off { background: var(--err); color: var(--on-accent); }

/* ── Счётчик ──────────────────────────────────────────────────────────── */
.counter {
  display: inline-flex; align-items: center; height: var(--control-md); border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent); font-weight: var(--weight-semibold);
}
.counter button {
  width: var(--control-md); height: var(--control-md); border: 0; border-radius: var(--radius-pill);
  background: transparent; color: inherit; font-size: var(--text-lg); cursor: pointer;
}
.counter button:hover { background: var(--tint); }
.counter span { min-width: var(--space-5); text-align: center; }
.counter--sm { height: var(--control-sm); background: var(--cream); color: var(--ink); }
.counter--sm button { width: var(--control-sm); height: var(--control-sm); font-size: var(--text-md); }

/* ── Карточка блюда: плитка и строка ─────────────────────────────────── */
.dish-tile {
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border: 1px solid var(--border2); border-radius: var(--radius-lg); background: var(--panel);
  transition: box-shadow var(--motion-base) var(--ease), transform var(--motion-base) var(--ease);
}
.dish-tile:hover { box-shadow: var(--shadow-1); }
.dish-tile__photo {
  position: relative; display: block; width: 100%; aspect-ratio: 1; padding: 0; border: 0; overflow: hidden;
  background: var(--cream); cursor: pointer;
}
.dish-tile__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--motion-decor) var(--ease); }
.dish-tile:hover .dish-tile__photo img { transform: scale(1.03); }
.dish-tile__badges { position: absolute; top: var(--space-3); left: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-1); }
/* Метки блюд (владелец 01.10): кружок со значком в углу фото; при наведении на фото — надпись; количество и
   «показывать всегда» — надписью сразу. На телефоне наводить нечем — полные названия в карточке блюда. */
.dish-tile__tags { position: absolute; top: var(--space-2); left: var(--space-2); z-index: var(--z-raised); display: flex; flex-wrap: wrap; gap: var(--space-1); max-width: calc(100% - var(--space-4)); }
.dish-tag {
  display: inline-flex; align-items: center; height: var(--space-5); min-width: var(--space-5); padding: 0 var(--space-1);
  border-radius: var(--radius-pill); background: var(--panel); color: var(--accent); box-shadow: var(--shadow-1);
  font-size: var(--text-xs); font-weight: var(--weight-semibold); line-height: var(--leading-title); white-space: nowrap;
}
.dish-tag svg { flex: none; width: var(--icon-sm); height: var(--icon-sm); }
/* Место нажатия пальцем — шире самого кружка (около 44), чтобы попадать не целясь */
.dish-tag:not(.dish-tag--always) { position: relative; cursor: pointer; }
.dish-tag:not(.dish-tag--always)::before { content: ""; position: absolute; inset: calc(var(--space-2) * -1 - var(--space-1) / 2); }
.dish-tag.is-open { padding: 0 var(--space-2); }
.dish-tag.is-open .dish-tag__label { max-width: calc(var(--space-8) * 3); }
.dish-tag.is-open:not(.dish-tag--text) .dish-tag__label { margin-left: var(--space-1); }
.dish-tag__label { max-width: 0; overflow: hidden; transition: max-width var(--motion-base) var(--ease), margin var(--motion-base) var(--ease); }
.dish-tag--always { padding: 0 var(--space-2); }
.dish-tag--always .dish-tag__label { max-width: none; }
.dish-tag--always:not(.dish-tag--text) .dish-tag__label { margin-left: var(--space-1); }
@media (hover: hover) {
  .dish-tile__photo:hover .dish-tag, .dish-tile__photo:focus-visible .dish-tag { padding: 0 var(--space-2); }
  .dish-tile__photo:hover .dish-tag__label, .dish-tile__photo:focus-visible .dish-tag__label { max-width: calc(var(--space-8) * 3); }
  .dish-tile__photo:hover .dish-tag:not(.dish-tag--text) .dish-tag__label,
  .dish-tile__photo:focus-visible .dish-tag:not(.dish-tag--text) .dish-tag__label { margin-left: var(--space-1); }
}
@media (prefers-reduced-motion: reduce) { .dish-tag__label { transition: none; } }
.dish-dialog__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.dish-dialog__tags .dish-tag { box-shadow: none; background: var(--cream); }
.dish-tile__body { display: flex; flex-direction: column; gap: var(--space-2); flex: 1; padding: var(--space-4); }
.dish-tile__title {
  font-weight: var(--weight-semibold); font-size: var(--text-md); line-height: var(--leading-title);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden;
  overflow-wrap: anywhere;
}
.dish-tile__desc {
  color: var(--muted); font-size: var(--text-sm);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere;
}
.dish-tile__meta { display: flex; gap: var(--space-3); color: var(--muted); font-size: var(--text-xs); }
.dish-tile__rating { color: var(--ink); }
.dish-tile__rating b { color: var(--gold2); font-weight: var(--weight-bold); }
.dish-tile__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-3); margin-top: auto; padding-top: var(--space-2); }
.dish-tile__price { font-family: var(--font-title); font-size: var(--title-sm); font-weight: var(--weight-medium); white-space: nowrap; }
.dish-tile__add {
  width: var(--control-md); height: var(--control-md); border: 0; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent); font-size: var(--title-sm); cursor: pointer; flex: none;
  transition: background-color var(--motion-fast) var(--ease);
}
.dish-tile__add:hover { background: var(--accent-hover); }
/* Не продаётся сейчас или на выбранное время (Р73, Р104): бледнеет фото, причина и цена читаются полностью */
.dish-tile.is-off .dish-tile__photo { opacity: 0.6; filter: grayscale(0.6); }
.dish-tile__reason { color: var(--err); font-size: var(--text-xs); }
.dish-tile__off { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); }
.dish-tile__left { color: var(--accent); font-weight: var(--weight-semibold); }
@media (min-width: 768px) { .dish-tile__when { min-height: var(--control-sm); font-size: var(--text-xs); } }
/* Строка — телефон, «1 в строке»: фото слева */
.dish-tile--row { flex-direction: row; }
.dish-tile--row .dish-tile__photo {
  /* квадрат с отступом, по верху строки — не полоса во всю высоту (владелец 01.10) */
  width: calc(var(--space-8) + var(--space-7)); height: auto; flex: none; align-self: flex-start;
  margin: var(--space-3) 0 var(--space-3) var(--space-3); border-radius: var(--radius-md);
}
.dish-tile--row .dish-tile__body { gap: var(--space-1); min-width: 0; padding: var(--space-3); }
.dish-tile--row .dish-tile__desc { -webkit-line-clamp: 1; }
.dish-tile--row .dish-tile__foot { flex-wrap: nowrap; padding-top: var(--space-1); }
.dish-tile__price-block { display: grid; min-width: 0; line-height: var(--leading-title); }
.dish-tile__weight { color: var(--muted); font-size: var(--text-xs); white-space: nowrap; }
.dish-tile__photo-rating {
  position: absolute; left: var(--space-1); bottom: var(--space-1); padding: 0 var(--space-2); border-radius: var(--radius-pill);
  background: var(--panel); color: var(--ink); font-size: var(--text-xs); font-weight: var(--weight-semibold); line-height: var(--leading-text);
}
.dish-tile__photo-rating b { color: var(--gold2); }

/* ── Карточка баннера ─────────────────────────────────────────────────── */
.banner-card {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: var(--space-2);
  min-height: calc(var(--space-8) * 3 + var(--space-5)); padding: var(--space-5); overflow: hidden;
  border-radius: var(--radius-xl); background: var(--panel); color: var(--ink); text-decoration: none;
  scroll-snap-align: start;
}
.banner-card img { position: absolute; inset: 0; z-index: var(--z-base); width: 100%; height: 100%; object-fit: cover; transition: transform var(--motion-decor) var(--ease); }
.banner-card:hover img { transform: scale(1.03); }
.banner-card::before { content: ""; position: absolute; inset: 0; z-index: var(--z-raised); background: linear-gradient(to top, var(--panel) 35%, transparent 80%); }
.banner-card > span { position: relative; z-index: var(--z-above); }
.banner-card--dark { background: var(--dark); color: var(--footink); }
.banner-card--dark::before { background: linear-gradient(to top, var(--dark) 25%, transparent 75%); }
.banner-card__eyebrow { font-size: var(--text-xs); font-weight: var(--weight-semibold); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.banner-card--dark .banner-card__eyebrow { color: var(--gold2); }
.banner-card__title { font-family: var(--font-title); font-size: var(--title-md); line-height: var(--leading-title); }
.banner-card__link { font-size: var(--text-sm); font-weight: var(--weight-semibold); }

/* ── Карточки второй строки: заведение и кошелёк ─────────────────────── */
.context-card {
  display: flex; align-items: center; gap: var(--space-3); min-width: 0; height: var(--context-card-h);
  padding: 0 var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--panel); color: var(--ink); text-align: left; text-decoration: none; cursor: pointer;
  transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.context-card:hover, .context-card[aria-expanded="true"] { border-color: var(--gold2); box-shadow: var(--shadow-1); }
.context-card__logo {
  width: calc(var(--space-6) + var(--space-2)); height: calc(var(--space-6) + var(--space-2)); flex: none;
  border-radius: var(--radius-pill); background: var(--cream); object-fit: contain; padding: var(--space-1);
}
.context-card__text { display: grid; min-width: 0; flex: 1; line-height: var(--leading-title); }
.context-card__eyebrow { color: var(--muted); font-size: var(--text-xs); }
.context-card__title { font-weight: var(--weight-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.context-card__sub { color: var(--muted); font-size: var(--text-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.context-card__chevron { width: var(--icon-md); height: var(--icon-md); color: var(--muted); flex: none; }
.context-card--wallet { background: linear-gradient(135deg, var(--panel), var(--cream)); }
.context-card--wallet .context-card__emoji { font-size: var(--title-md); flex: none; }
.context-card__unit { font-family: var(--font-text); font-size: var(--text-sm); color: var(--muted); font-weight: var(--weight-regular); }
.context-card--wallet .context-card__title { font-family: var(--font-title); font-size: var(--title-sm); font-weight: var(--weight-medium); }
.context-card--venue .context-card__sub { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.context-card--wallet .context-card__text { justify-items: center; text-align: center; }
.context-card--wallet .context-card__title, .context-card--wallet .context-card__sub { max-width: 100%; }
.context-card--wallet .context-card__sub { font-size: var(--text-xs); }
/* Узкая карточка кошелька: название и время — двумя строками, а не обрезкой посередине слова */
@media (max-width: 1099px) {
  .context-card--wallet .context-card__sub { display: flex; flex-direction: column; align-items: center; }
  .context-card--wallet .context-card__sub > span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .context-card--wallet .context-card__dot { display: none; }
}
.context-card.is-loading .context-card__title { color: var(--muted); }

/* ── Строка корзины ───────────────────────────────────────────────────── */
.cart-line { display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: center; padding: var(--space-3) 0; border-bottom: 1px solid var(--border2); }
.cart-line__photo { width: calc(var(--space-7) + var(--space-2)); height: calc(var(--space-7) + var(--space-2)); border-radius: var(--radius-md); object-fit: cover; background: var(--cream); }
.cart-line__text { min-width: 0; display: grid; gap: var(--space-1); }
.cart-line__title { font-weight: var(--weight-medium); font-size: var(--text-sm); line-height: var(--leading-title); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; overflow-wrap: anywhere; }
.cart-line__variant { color: var(--muted); font-size: var(--text-xs); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cart-line__price { font-weight: var(--weight-semibold); font-size: var(--text-sm); }
.cart-line.is-missing .cart-line__price { color: var(--err); }
.cart-line.is-missing .cart-line__variant { white-space: normal; } /* причина, почему не войдёт, — целиком */

/* ── Окна, шторки, тосты ─────────────────────────────────────────────── */
.veil { position: fixed; inset: 0; z-index: var(--z-dialog); background: var(--veil); display: grid; place-items: center; padding: var(--space-4); animation: fade-in var(--motion-base) var(--ease); }
.veil[hidden] { display: none; }
@keyframes fade-in { from { opacity: 0; } }
.dialog {
  width: min(100%, calc(var(--space-8) * 13)); max-height: calc(100vh - var(--space-7)); overflow: auto;
  border-radius: var(--radius-xl); background: var(--panel); box-shadow: var(--shadow-3);
  animation: dialog-in var(--motion-slow) var(--ease);
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(var(--space-4)); } }
.dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); padding: var(--space-5) var(--space-5) 0; }
.dialog__body { padding: var(--space-5); display: grid; gap: var(--space-4); }
.dialog__foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: var(--space-3); padding: var(--space-4) var(--space-5); background: var(--panel); border-top: 1px solid var(--border2); }
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-dialog); max-height: 92vh; overflow: auto;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0; background: var(--panel); box-shadow: var(--shadow-3);
  padding-bottom: env(safe-area-inset-bottom); animation: sheet-in var(--motion-slow) var(--ease);
}
@keyframes sheet-in { from { transform: translateY(100%); } }
.sheet__grip { width: var(--space-7); height: var(--space-1); margin: var(--space-2) auto; border-radius: var(--radius-pill); background: var(--border); }
.toast {
  position: fixed; left: 50%; bottom: var(--space-6); z-index: var(--z-toast); transform: translateX(-50%);
  display: flex; align-items: center; gap: var(--space-3); max-width: calc(100vw - var(--space-6));
  padding: var(--space-3) var(--space-5); border-radius: var(--radius-md); background: var(--dark); color: var(--footink);
  box-shadow: var(--shadow-2); font-size: var(--text-sm);
}
.notice { display: flex; gap: var(--space-3); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--cream); font-size: var(--text-sm); }
.notice--ok { background: var(--tint); color: var(--ok); }
.notice--warn { background: var(--tint); color: var(--warn); }
.notice--err { background: var(--tint); color: var(--err); }

/* ── Боковая навигация кабинета ───────────────────────────────────────── */
.navlist { display: grid; gap: var(--space-1); align-content: start; }
.navlist__item {
  display: flex; align-items: center; gap: var(--space-3); min-height: var(--control-lg); padding: 0 var(--space-4);
  border-radius: var(--radius-md); color: var(--ink); text-decoration: none; font-weight: var(--weight-medium);
}
.navlist__item:hover { background: var(--tint); }
.navlist__item[aria-current="page"] { background: var(--panel); color: var(--accent); box-shadow: var(--shadow-1); }

/* ── Заглушка загрузки и пустое ──────────────────────────────────────── */
.skeleton { border-radius: var(--radius-md); background: linear-gradient(90deg, var(--cream), var(--panel), var(--cream)); background-size: 200% 100%; animation: shimmer calc(var(--motion-decor) * 3) linear infinite; min-height: var(--control-lg); }
@keyframes shimmer { to { background-position: -200% 0; } }
.empty { display: grid; justify-items: center; gap: var(--space-3); padding: var(--space-6) var(--space-4); text-align: center; color: var(--muted); }

/* ── Телефон: всё, во что тычут пальцем, — не меньше --tap ───────────── */
@media (max-width: 767px) {
  .icon-btn { width: var(--tap); height: var(--tap); }
  .counter { height: var(--tap); }
  .counter button { width: var(--tap); height: var(--tap); }
  .counter--sm { height: var(--tap); }
  .counter--sm button { width: var(--tap); height: var(--tap); }
  .btn, .segments__item, .chip, .menu__item, .navlist__item { min-height: var(--tap); }
  .chip { min-width: var(--tap); }
  .dish-tile__add { width: var(--tap); height: var(--tap); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0ms !important; animation-iteration-count: 1 !important; }
}

/* ── Дополнения пунктов меню: эмодзи, значение, логотип ──────────────── */
.menu__emoji { font-size: var(--title-sm); flex: none; }
.menu__value { font-weight: var(--weight-semibold); white-space: nowrap; }
.menu__logo { width: var(--control-sm); height: var(--control-sm); flex: none; border-radius: var(--radius-pill); background: var(--cream); object-fit: contain; }
.menu__text { display: grid; min-width: 0; flex: 1; line-height: var(--leading-title); }
.menu__item:has(.menu__text) { min-height: var(--control-lg); }
.choice-list { display: grid; gap: var(--space-1); }
.choice-list .menu__item svg { width: var(--icon-md); height: var(--icon-md); color: var(--gold); flex: none; }

/* ── Дополнения меню: широкое меню с блоками, картинки вида сетки ────── */
.menu--wide { width: min(calc(var(--space-8) * 5 + var(--space-6)), calc(100vw - var(--space-4))); }
.menu__block { display: grid; gap: var(--space-2); padding: var(--space-2) var(--space-3); }
.menu__caption { font-size: var(--text-sm); }
.menu__note { color: var(--muted); font-size: var(--text-xs); }
.menu__foot { display: flex; justify-content: flex-end; padding: var(--space-2) var(--space-3) var(--space-1); border-top: 1px solid var(--border); }
.menu__item:disabled { opacity: 0.45; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip:disabled { opacity: 0.5; cursor: not-allowed; }
.gridpic { display: grid; gap: 2px; width: var(--icon-lg); height: var(--icon-lg); flex: none; }
.gridpic i { display: block; border-radius: 2px; background: var(--gold2); }
.gridpic--1 { grid-template-columns: 1fr; }
.gridpic--2 { grid-template-columns: repeat(2, 1fr); }
.gridpic--3 { grid-template-columns: repeat(3, 1fr); }
.gridpic--4 { grid-template-columns: repeat(4, 1fr); }
.dish-tile__placeholder { display: grid; place-items: center; width: 100%; height: 100%; color: var(--muted); font-size: var(--text-sm); }

/* ── Окно блюда ───────────────────────────────────────────────────────── */
.dish-dialog { width: min(100%, calc(var(--space-8) * 9)); }
.dish-dialog__photo { position: relative; aspect-ratio: 16 / 10; background: var(--cream); overflow: hidden; }
.dish-dialog__photo img { width: 100%; height: 100%; object-fit: cover; }
.dish-dialog__close { position: absolute; top: var(--space-3); right: var(--space-3); background: var(--panel); border-radius: var(--radius-pill); box-shadow: var(--shadow-1); }
.dish-dialog__title { font-size: var(--title-md); }
.dish-dialog__desc { color: var(--muted); }
.dish-dialog__form { display: grid; gap: var(--space-4); }
.dish-dialog__group { display: grid; gap: var(--space-1); margin: 0; padding: 0; border: 0; }
.dish-dialog__group legend { padding: 0; margin-bottom: var(--space-2); font-weight: var(--weight-semibold); }
.dish-dialog__group .radio, .dish-dialog__group .check { width: 100%; }
.dish-dialog__group .radio > span:nth-of-type(2), .dish-dialog__group .check > span:nth-of-type(2) { flex: 1; }
.dish-dialog__included { color: var(--muted); font-size: var(--text-sm); }
@media (max-width: 767px) {
  .veil { place-items: end stretch; padding: 0; }
  .dialog { width: 100%; max-height: 92vh; border-radius: var(--radius-xl) var(--radius-xl) 0 0; }
}

/* ── Блок корзины ─────────────────────────────────────────────────────── */
.cart { display: flex; flex-direction: column; min-height: 0; border: 1px solid var(--border2); border-radius: var(--radius-lg); background: var(--panel); box-shadow: var(--shadow-1); }
.cart__head { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-4) var(--space-4) 0; }
.cart__title { font-size: var(--title-sm); flex: 1; }
.cart__qty { min-width: var(--space-5); height: var(--space-5); padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--cream); font-size: var(--text-xs); font-weight: var(--weight-semibold); display: inline-flex; align-items: center; justify-content: center; }
.cart__context { padding: var(--space-1) var(--space-4) var(--space-3); color: var(--muted); font-size: var(--text-sm); border-bottom: 1px solid var(--border2); }
.cart__lines { flex: 1; min-height: 0; overflow: auto; padding: 0 var(--space-4); overscroll-behavior: contain; }
.cart__empty { flex: 1; display: grid; gap: var(--space-2); align-content: center; justify-items: center; padding: var(--space-6) var(--space-4); text-align: center; color: var(--muted); }
.cart__empty b { color: var(--ink); font-family: var(--font-title); font-weight: var(--weight-medium); font-size: var(--title-sm); }
.cart__foot { display: grid; gap: var(--space-3); padding: var(--space-4); border-top: 1px solid var(--border2); }
.cart__total { display: flex; justify-content: space-between; align-items: baseline; }
.cart__total b { font-family: var(--font-title); font-weight: var(--weight-medium); font-size: var(--title-sm); }
.cart__note { padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--cream); color: var(--ink); text-align: center; font-weight: var(--weight-medium); }
.cart__hint { color: var(--muted); font-size: var(--text-xs); text-align: center; }
.cart-line .counter--sm { align-self: center; }

.transfer { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.transfer__change { display: flex; justify-content: space-between; gap: var(--space-3); padding: var(--space-2) 0; border-bottom: 1px solid var(--border2); font-size: var(--text-sm); }
.transfer__what { color: var(--muted); text-align: right; }
.transfer__total { display: flex; justify-content: space-between; font-weight: var(--weight-semibold); }
.dialog--small { width: min(100%, calc(var(--space-8) * 7)); }

/* ── Карта Гостя с кодом для кассы, списки кабинета ──────────────────── */
.qr-card { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-5); padding: var(--space-5); border-radius: var(--radius-xl); background: var(--panel); border: 1px solid var(--border2); box-shadow: var(--shadow-1); scroll-margin-top: calc(var(--header-h) + var(--space-4)); }
.qr-card__code { width: calc(var(--space-8) * 2 + var(--space-5)); height: calc(var(--space-8) * 2 + var(--space-5)); color: var(--ink); background: var(--on-accent); padding: var(--space-2); border-radius: var(--radius-md); flex: none; }
.qr-card__text { display: grid; gap: var(--space-2); min-width: 0; flex: 1 1 calc(var(--space-8) * 3); }
.qr-card__name { font-family: var(--font-title); font-weight: var(--weight-medium); font-size: var(--title-md); }
.qr-card__hint { font-size: var(--text-sm); }
.wallets { flex-basis: 100%; display: grid; gap: var(--space-3); padding-top: var(--space-4); border-top: 1px solid var(--border2); }
/* Выбор кошелька: один выбранный кошелёк, список всех — выпадающий (на телефоне — шторкой) */
.wallet-picker {
  display: flex; align-items: center; gap: var(--space-3); width: min(100%, calc(var(--space-8) * 7)); min-width: 0;
  padding: var(--space-3) var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--panel), var(--cream)); color: var(--ink); text-align: left;
  transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
button.wallet-picker { cursor: pointer; }
button.wallet-picker:hover, .wallet-picker[aria-expanded="true"] { border-color: var(--gold2); box-shadow: var(--shadow-1); }
.wallet-picker__emoji { flex: none; font-size: var(--title-md); line-height: var(--leading-title); }
.wallet-picker__text { display: grid; flex: 1; min-width: 0; line-height: var(--leading-title); }
.wallet-picker__head { display: flex; align-items: center; gap: var(--space-2); min-width: 0; }
.wallet-picker__name { overflow: hidden; color: var(--muted); font-size: var(--text-sm); text-overflow: ellipsis; white-space: nowrap; }
.wallet-picker__prog {
  flex: none; max-width: 60%; overflow: hidden; padding: 0 var(--space-2); border-radius: var(--radius-pill);
  background: var(--tint); color: var(--accent); font-size: var(--text-xs); font-weight: var(--weight-semibold);
  text-overflow: ellipsis; white-space: nowrap;
}
.wallet-picker__balance { display: flex; align-items: baseline; gap: var(--space-1); min-width: 0; white-space: nowrap; }
.wallet-picker__balance b { font-family: var(--font-title); font-size: var(--title-md); font-weight: var(--weight-medium); }
.wallet-picker__unit { color: var(--muted); font-size: var(--text-sm); }
.wallet-picker__more { flex: none; color: var(--muted); font-size: var(--text-sm); white-space: nowrap; }
.wallet-picker__chevron { flex: none; width: var(--icon-md); height: var(--icon-md); color: var(--muted); }
@media (max-width: 767px) { .wallet-picker { width: 100%; } }
.wallet-picker__time { color: var(--muted); font-size: var(--text-xs); }
.inbox, .ops { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.inbox__item, .ops__item { display: grid; gap: var(--space-1); padding: var(--space-4); border-radius: var(--radius-lg); background: var(--panel); border: 1px solid var(--border2); }
.inbox__item.is-unread { border-color: var(--gold2); box-shadow: inset var(--space-1) 0 0 var(--gold2); }
.ops__item { grid-template-columns: 1fr auto; }
.ops__item .muted { grid-column: 1; }
.ops__item b { grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.ops__plus { color: var(--ok); }
/* История операций кошелька: что, когда и где — слева; сумма и баланс после — справа */
.ops__title { grid-column: 1; min-width: 0; font-weight: var(--weight-medium); overflow-wrap: anywhere; }
.ops__link { color: var(--accent); }
.ops__meta { grid-column: 1; color: var(--muted); font-size: var(--text-sm); }
.ops__item .ops__sum { grid-row: 1; grid-column: 2; align-self: start; justify-self: end; white-space: nowrap; }
.ops__after { grid-row: 2; grid-column: 2; justify-self: end; color: var(--muted); font-size: var(--text-xs); white-space: nowrap; }
.ops__item:target { border-color: var(--gold2); box-shadow: var(--shadow-1); }

/* ── Меню внутри шторки (телефон) ─────────────────────────────────────── */
.menu.menu--in-sheet { position: static !important; width: 100%; max-width: none; max-height: none; padding: 0; border: 0; box-shadow: none; animation: none; }
.menu--in-sheet .menu__head { display: none; }
.has-cartbar .toast, .has-checkoutbar .toast { bottom: calc(var(--control-lg) + var(--space-2) + var(--space-6) + env(safe-area-inset-bottom)); }
/* Открыто окно — тост сверху: не закрывает «Выбрать» и «Отмена» внизу окна */
body:has(.veil) .toast { top: var(--space-5); bottom: auto; }
.cart--short { overflow: auto; }
.cart--short .cart__lines { flex: none; overflow: visible; }
.chip svg { width: var(--icon-sm); height: var(--icon-sm); }

/* ── Поле с кнопкой «скопировать», шаги процедуры, выбор при уходе (Р33) ── */
.input-copy { position: relative; width: 100%; }
.input-copy .input { padding-right: calc(var(--control-lg) + var(--space-1)); }
.input-copy__btn { position: absolute; top: 50%; right: var(--space-1); transform: translateY(-50%); width: var(--control-md); height: var(--control-md); }
.input-copy__btn svg, .data-row__copy svg { width: var(--icon-md); height: var(--icon-md); color: var(--muted); }
.email-status { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: var(--space-1) var(--space-2); margin: 0; color: var(--ink); }
.email-status svg { width: var(--icon-sm); height: var(--icon-sm); margin-top: calc((1lh - var(--icon-sm)) / 2); color: var(--warn); }
.email-status.is-ok svg { color: var(--ok); }
.email-status .btn--text { min-height: 0; line-height: inherit; }
@media (max-width: 767px) { .email-status .btn--text { grid-column: 2; justify-self: start; min-height: var(--tap); } }
.steps { display: grid; gap: var(--space-3); margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps__item { position: relative; display: grid; gap: var(--space-1); padding-left: calc(var(--control-sm) + var(--space-3)); counter-increment: step; }
.steps__item::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center;
  width: var(--control-sm); height: var(--control-sm); border-radius: var(--radius-pill); background: var(--cream); font-weight: var(--weight-semibold);
}
.steps__item.is-current::before { background: var(--accent); color: var(--on-accent); }
.steps__item span { color: var(--muted); font-size: var(--text-sm); }
.leave-choices { display: grid; gap: var(--space-3); }
.leave-choice {
  display: grid; gap: var(--space-1); padding: var(--space-4); border: 1px solid var(--border); border-radius: var(--radius-lg);
  background: var(--panel); text-align: left; cursor: pointer; transition: border-color var(--motion-fast) var(--ease);
}
.leave-choice:hover { border-color: var(--gold2); }
.leave-choice span { color: var(--muted); font-size: var(--text-sm); }
.leave-choice--danger b { color: var(--err); }
.leave-choice--danger:hover { border-color: var(--err); }

/* ── Заказ: корзина с расчётом iiko (Р85, Р90–Р95, Р98, Р104) ────────────
   Тело корзины прокручивается внутри колонки ПК, низ с итогом стоит на месте; на странице корзины — всё подряд. */
.cart--order .cart__body {
  flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain;
  display: grid; grid-auto-rows: max-content; align-content: start; gap: var(--space-4); padding: var(--space-3) var(--space-4) var(--space-4);
}
.cart--order .cart__lines { flex: none; min-height: auto; overflow: visible; padding: 0; }
.cart--order.cart--short .cart__body { flex: none; overflow: visible; }
.cart--order .cart__foot { gap: var(--space-3); }

/* Количество числом между «−» и «+» (И65) */
.counter__input {
  width: calc(var(--space-6) + var(--space-1)); height: 100%; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: inherit; font-size: var(--text-md); font-weight: var(--weight-semibold); text-align: center;
}
.counter__input:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; }
.counter__input:disabled { opacity: 0.45; }
.counter button:disabled { opacity: 0.35; cursor: not-allowed; background: transparent; }
@media (max-width: 767px) { .counter__input { font-size: var(--text-field); } }

/* Цена со скидкой: зачёркнутая цена меню и новая */
.price-old { color: var(--muted); font-weight: var(--weight-regular); }
.price-new { color: var(--accent); font-weight: var(--weight-semibold); }

/* Убранная строка с «Вернуть»; подарок строкой; «больше не положен» — с выбором */
.cart-line--removed { grid-template-columns: minmax(0, 1fr) auto; min-height: var(--control-lg); padding: var(--space-1) 0; color: var(--muted); font-size: var(--text-sm); }
.cart-line__gone { min-width: 0; overflow-wrap: anywhere; }
.cart-line__photo--gift { display: grid; place-items: center; background: var(--tint); color: var(--accent); }
.cart-line__photo--gift svg { width: var(--icon-lg); height: var(--icon-lg); }
.cart-line__variant--warn { color: var(--err); font-weight: var(--weight-semibold); white-space: normal; }
.cart-line__why { color: var(--muted); font-size: var(--text-xs); }
.cart-line__choice { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--space-2); }
.cart-line__choice .btn { flex: 1 1 auto; }
@media (min-width: 768px) {
  .cart-line--removed .btn--text, .cart-line__drop { min-height: var(--control-md); }
}

/* Полоса «до подарка» (И60) и сам подарок (Р92) — одно место в корзине */
.gift-strip { display: grid; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius-md); background: var(--tint); font-size: var(--text-sm); }
.gift-strip__text b { color: var(--accent); }
.gift-strip__bar { display: block; height: var(--space-1); overflow: hidden; border-radius: var(--radius-pill); background: var(--cream); }
.gift-strip__fill { display: block; width: calc(var(--share, 0) * 100%); height: 100%; border-radius: inherit; background: var(--gold); transition: width var(--motion-base) var(--ease); }
.gift-offer {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--space-3);
  padding: var(--space-3); border: 1px solid var(--gold2); border-radius: var(--radius-md); background: var(--panel);
}
.gift-offer__icon { display: grid; place-items: center; width: var(--control-md); height: var(--control-md); border-radius: var(--radius-pill); background: var(--tint); color: var(--accent); }
.gift-offer__icon svg { width: var(--icon-md); height: var(--icon-md); }
.gift-offer__text { display: grid; gap: var(--space-1); min-width: 0; }
.gift-offer__title { font-family: var(--font-text); font-size: var(--text-md); font-weight: var(--weight-semibold); }
.gift-offer__sub { color: var(--muted); font-size: var(--text-xs); }
.gift-offer__add { grid-column: 1 / -1; }
.gift-offer__list { grid-column: 1 / -1; display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.gift-offer__option { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); }

/* Блоки заказа в корзине; «Добавить к заказу?» — одна полоса, листается вбок внутри себя */
.order-block { display: grid; gap: var(--space-2); min-width: 0; }
.order-block__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-3); }
.order-block__title { font-family: var(--font-text); font-size: var(--text-sm); font-weight: var(--weight-semibold); letter-spacing: 0; }
.order-block__note { color: var(--muted); font-size: var(--text-sm); }
.order-block__hint { color: var(--muted); font-size: var(--text-xs); }
.order-block__why { font-size: var(--text-sm); }
.upsell { display: grid; gap: var(--space-2); min-width: 0; }
.upsell:focus { outline: none; }
.upsell__later { color: var(--muted); font-size: var(--text-sm); }
.upsell__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(var(--space-8) * 2); gap: var(--space-3);
  margin: 0; padding: 0 0 var(--space-2); overflow-x: auto; list-style: none; scroll-snap-type: x proximity;
}
.upsell__item { position: relative; display: grid; align-content: start; gap: var(--space-1); min-width: 0; font-size: var(--text-xs); scroll-snap-align: start; }
.upsell__photo { display: block; width: 100%; aspect-ratio: 1; border-radius: var(--radius-md); background: var(--cream); object-fit: cover; }
.upsell__title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; line-height: var(--leading-clamp); }
.upsell__price { font-weight: var(--weight-semibold); }
.upsell__add {
  position: absolute; top: calc(var(--space-8) * 2 - var(--control-md) - var(--space-1)); right: var(--space-1);
  display: grid; place-items: center; width: var(--control-md); height: var(--control-md); border: 0; border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-1); font-size: var(--title-sm); text-decoration: none; cursor: pointer;
}
.upsell__add:hover { background: var(--accent-hover); }
@media (max-width: 767px) {
  .upsell__add { top: calc(var(--space-8) * 2 - var(--tap) - var(--space-1)); width: var(--tap); height: var(--tap); }
}
@media (min-width: 768px) { .upsell__later { min-height: var(--control-sm); } }

/* Поле с кнопкой в строку (промокод, бонусы), знак рубля в поле */
.inline-form { display: flex; gap: var(--space-2); min-width: 0; }
.inline-form .input, .inline-form .input-unit { flex: 1 1 0; min-width: 0; }
.inline-form .btn { flex: none; padding: 0 var(--space-4); }
.input-unit { position: relative; display: block; }
.input-unit .input { padding-right: var(--space-7); }
.input-unit__sign { position: absolute; top: 50%; right: var(--space-4); transform: translateY(-50%); color: var(--muted); }
.code-applied { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-3); }
.code-applied__name { letter-spacing: 0.04em; }
.code-applied__ok { display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.code-applied__ok svg { width: var(--icon-sm); height: var(--icon-sm); color: var(--ok); }
.persons__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }

/* Итог: «Сумма блюд / Скидки (раскрываются по акциям) / Бонусами / Итого» */
.totals { display: grid; gap: var(--space-1); }
.totals__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3); font-size: var(--text-sm); }
.totals__row--sub { padding-left: var(--space-3); color: var(--muted); font-size: var(--text-xs); }
.totals__row--total { padding-top: var(--space-2); font-size: var(--text-md); font-weight: var(--weight-semibold); }
.totals__row--total b { font-family: var(--font-title); font-size: var(--title-sm); font-weight: var(--weight-medium); }
.totals__discounts > summary { list-style: none; cursor: pointer; }
.totals__discounts > summary::-webkit-details-marker { display: none; }
.totals__discounts > summary > span:last-child { color: var(--accent); font-weight: var(--weight-semibold); }
.totals__toggle { display: inline-flex; align-items: center; gap: var(--space-1); }
.totals__chevron { width: var(--icon-sm); height: var(--icon-sm); color: var(--muted); transition: transform var(--motion-fast) var(--ease); }
.totals__discounts[open] .totals__chevron { transform: rotate(180deg); }
.totals__list { display: grid; gap: var(--space-1); margin: var(--space-1) 0 0; padding: 0; list-style: none; }
@media (max-width: 767px) { .totals__discounts > summary { min-height: var(--tap); align-items: center; } }

/* Расчёт ещё идёт — числа скелетом того же размера (раскладка не прыгает); медленно — тихая строка;
   iiko не считает — плашка Р90 */
.calc-wait, .calc-wait * { color: transparent; }
.calc-wait {
  border-radius: var(--radius-sm); background: linear-gradient(90deg, var(--cream), var(--panel), var(--cream));
  background-size: 200% 100%; animation: shimmer calc(var(--motion-decor) * 3) linear infinite;
}
.calc-slow { display: flex; align-items: center; gap: var(--space-2); color: var(--muted); font-size: var(--text-xs); }
.calc-slow__spin {
  flex: none; width: var(--icon-sm); height: var(--icon-sm); border: 2px solid var(--border); border-top-color: var(--gold);
  border-radius: var(--radius-pill); animation: spin var(--motion-decor) linear infinite;
}
.calc-failed { align-items: flex-start; border: 1px solid var(--warn); background: var(--panel); color: var(--ink); }
.calc-failed svg { flex: none; width: var(--icon-md); height: var(--icon-md); color: var(--warn); }
.cart__privileges {
  display: flex; align-items: flex-start; gap: var(--space-2); padding: var(--space-3); border-radius: var(--radius-md);
  background: var(--tint); font-size: var(--text-sm); font-weight: var(--weight-medium);
}
.cart__privileges svg { flex: none; width: var(--icon-md); height: var(--icon-md); color: var(--accent); }

/* Пауза точки, самовывоза или доставки (Р127): словами и выходом — «Выбрать время» после паузы или другая точка */
.pause-note { display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3); border: 1px solid var(--warn); border-radius: var(--radius-md); background: var(--panel); font-size: var(--text-sm); }
.pause-note > svg { flex: none; width: var(--icon-md); height: var(--icon-md); color: var(--warn); }
.pause-note__text { display: grid; gap: var(--space-1); min-width: 0; }
.pause-note__text > span { color: var(--muted); }
.pause-note__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); padding-top: var(--space-1); }

/* Доставка в итоге (И110, Р93): полоса «До бесплатной доставки осталось …» под строкой «Доставка»; не набран минимум
   или адрес вне зон — словами над «Далее» */
.free-strip { display: grid; gap: var(--space-1); padding: var(--space-1) 0 var(--space-1) var(--space-3); color: var(--muted); font-size: var(--text-xs); }
.free-strip b { color: var(--accent); }
.cart__block {
  display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--warn); border-radius: var(--radius-md); background: var(--panel); font-size: var(--text-sm);
}
.cart__block svg { flex: none; width: var(--icon-md); height: var(--icon-md); color: var(--warn); }

/* Что изменилось от смены времени или точки (И103) — словами до оформления; в окне выбора — «Что изменится» */
.order-change {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: var(--space-2) var(--space-3);
  padding: var(--space-3); border: 1px solid var(--gold2); border-radius: var(--radius-md); background: var(--panel); font-size: var(--text-sm);
}
.order-change > svg { width: var(--icon-md); height: var(--icon-md); margin-top: calc((1lh - var(--icon-md)) / 2); color: var(--accent); }
.order-change--preview { grid-template-columns: auto minmax(0, 1fr); }
.order-change__text { display: grid; gap: var(--space-2); min-width: 0; }
.order-change__list { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; }
.order-change__total { font-weight: var(--weight-semibold); }
.order-change__when { font-weight: var(--weight-semibold); }
@media (min-width: 768px) { .order-change__ok { min-height: 0; line-height: inherit; } }

/* Когда (Р104, И101, И108): две большие карточки «Как можно скорее» и «Ко времени»; дни на две недели и окна с местами —
   у самовывоза по 15 минут, у доставки — интервалы по 30 минут */
.when { display: grid; gap: var(--space-3); min-width: 0; }
.when__modes { display: grid; gap: var(--space-2); min-width: 0; }
@media (min-width: 768px) { .when__modes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice-card--big b { font-size: var(--text-lg); }
.choice-card {
  position: relative; display: flex; align-items: flex-start; gap: var(--space-3); padding: var(--space-3) var(--space-4);
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--panel); cursor: pointer;
  transition: border-color var(--motion-fast) var(--ease), box-shadow var(--motion-fast) var(--ease);
}
.choice-card:hover { border-color: var(--gold2); }
.choice-card:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.choice-card.is-off { background: var(--card); cursor: not-allowed; }
.choice-card.is-off b { color: var(--muted); }
.choice-card .radio { min-height: 0; margin-top: calc((1lh - var(--icon-md)) / 2); }
.choice-card__text { display: grid; gap: var(--space-1); min-width: 0; overflow-wrap: anywhere; }
.choice-card__sub { color: var(--muted); font-size: var(--text-sm); }
.when__pick { display: grid; gap: var(--space-4); min-width: 0; padding-top: var(--space-2); }
.when__pick[hidden] { display: none; }
.when__group { display: grid; gap: var(--space-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.when__label { padding: 0; font-size: var(--text-sm); font-weight: var(--weight-semibold); }
.dialog--order .when__label { font-family: var(--font-title); font-size: var(--title-sm); font-weight: var(--weight-medium); }
.when__legend { color: var(--muted); font-size: var(--text-xs); }
.when__note { display: flex; align-items: flex-start; gap: var(--space-2); color: var(--muted); font-size: var(--text-sm); }
.when__note svg { flex: none; width: var(--icon-sm); height: var(--icon-sm); margin-top: calc((1lh - var(--icon-sm)) / 2); color: var(--accent); }
/* Дни — лентой, листается вбок внутри себя; день без окон — серый, с причиной */
.day-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc(var(--space-8) + var(--space-5)); gap: var(--space-2);
  overflow-x: auto; padding-bottom: var(--space-2); scroll-snap-type: x proximity; scrollbar-width: thin;
}
.day-chip, .slot {
  position: relative; display: grid; align-content: start; gap: 2px; padding: var(--space-2) var(--space-3);
  border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--panel); cursor: pointer;
  transition: border-color var(--motion-fast) var(--ease), background-color var(--motion-slow) var(--ease), opacity var(--motion-slow) var(--ease);
}
.day-chip { scroll-snap-align: start; min-height: var(--control-lg); }
.day-chip input, .slot input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.day-chip:hover, .slot:hover { border-color: var(--gold2); }
.day-chip:has(input:checked), .slot:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); background: var(--tint); }
.day-chip:has(input:focus-visible), .slot:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 2px; }
.day-chip__top { font-size: var(--text-sm); }
.day-chip__date { color: var(--muted); font-size: var(--text-xs); }
.day-chip__why { color: var(--err); font-size: var(--text-xs); line-height: var(--leading-title); }
.day-chip.is-off, .slot.is-busy { background: var(--card); border-style: dashed; cursor: not-allowed; }
.day-chip.is-off .day-chip__top, .slot.is-busy .slot__time { color: var(--muted); }
/* Окна — сеткой: на телефоне по три-четыре в ряд, шире — больше */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(calc(var(--space-8) + var(--space-4)), 1fr)); gap: var(--space-2); }
.slots--wide { grid-template-columns: repeat(auto-fill, minmax(calc(var(--space-8) * 2), 1fr)); }
.slot { justify-items: center; text-align: center; }
.slot__time { font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.slot__state { color: var(--muted); font-size: var(--text-xs); white-space: nowrap; }
.slot.is-few .slot__state { color: var(--accent); font-weight: var(--weight-semibold); }
.slot.is-busy { opacity: 0.7; }
.slot.is-busy .slot__time { text-decoration: line-through; }
.slot.is-closed { background: var(--card); border-style: dashed; cursor: not-allowed; opacity: 0.7; }
.slot.is-closed .slot__time { color: var(--muted); }
.slot.is-closed .slot__state { color: var(--err); }
/* Выбранное Гостем окно заняли — не молча (И101): словами и ближайшими свободными */
.when__taken { display: grid; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--warn); border-radius: var(--radius-md); background: var(--panel); font-size: var(--text-sm); }
.when__taken-text { display: flex; align-items: flex-start; gap: var(--space-2); }
.when__taken-text svg { flex: none; width: var(--icon-md); height: var(--icon-md); margin-top: calc((1lh - var(--icon-md)) / 2); color: var(--warn); }
.when__near { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2); }
.when__near-label { color: var(--muted); }

/* Точки бренда (И100): адрес, открыто ли, сколько готовим */
.points { display: grid; gap: var(--space-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.point-card__facts { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); font-size: var(--text-xs); color: var(--muted); }
.point-card__state { color: var(--err); font-weight: var(--weight-semibold); }
.point-card__state.is-open { color: var(--ok); }
.dialog__grip { display: none; }
.dialog__preview { flex-basis: 100%; min-width: 0; }
.dialog__preview .muted { font-size: var(--text-sm); }
@media (max-width: 767px) { .dialog__grip { display: block; } .dialog__grip + .dialog__head { padding-top: var(--space-2); } }

/* Окна «где» и «когда» (И108, Р116): на ПК — по центру, не сжатые; на телефоне — шторка во весь рост; разделы окна —
   крупными заголовками; внизу «Что изменится», «Выбрать» и «Отмена» */
.dialog--order { display: flex; flex-direction: column; width: min(100%, calc(var(--space-8) * 10)); overflow: hidden; }
.dialog--order .dialog__body { flex: 1 1 auto; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.dialog--order .dialog__foot { flex: none; }
.dialog--wide { width: min(100%, calc(var(--space-8) * 15)); }
.dialog__title { font-size: var(--title-md); }
.dialog__part { display: grid; gap: var(--space-3); min-width: 0; }
.dialog__part-title { font-size: var(--title-sm); }
.dialog__same { margin: 0; font-size: var(--text-sm); }
@media (max-width: 767px) { .dialog--order { height: calc(100vh - var(--space-5)); max-height: none; } }

/* Адреса в окне «Куда доставить?»: подпись, адрес, подробности, условия зоны; вне зон — красным, выбрать можно, чтобы
   увидеть почему и «Заберу сам» */
.address-pick__label, .address-card__label {
  justify-self: start; padding: 0 var(--space-2); border-radius: var(--radius-pill); background: var(--cream);
  color: var(--ink); font-size: var(--text-xs); font-weight: var(--weight-semibold);
}
.address-pick__zone { color: var(--muted); font-size: var(--text-xs); font-weight: var(--weight-semibold); }
.address-pick__zone.is-out, .place-pick__hours.is-out { color: var(--err); }
.address-pick.is-out { background: var(--card); }
.address-new { justify-self: start; }
.address-saved { align-items: flex-start; }
.address-saved svg { flex: none; width: var(--icon-md); height: var(--icon-md); }
.addr-layout { display: grid; gap: var(--space-4); min-width: 0; }
@media (min-width: 900px) {
  .dialog--wide .addr-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .dialog--wide .zone-map { position: sticky; top: 0; }
}

/* Своя карта (Р86) с зонами доставки (владелец 05.10): зоны цветом и подписью, легенда с условиями, кухня, точка адреса;
   её зона подсвечена; на телефоне сворачивается */
.zone-map { display: grid; gap: var(--space-2); min-width: 0; }
.zone-map__toggle {
  display: flex; align-items: center; gap: var(--space-2); min-height: var(--control-md); list-style: none; cursor: pointer;
  font-size: var(--text-sm); font-weight: var(--weight-semibold);
}
.zone-map__toggle::-webkit-details-marker { display: none; }
.zone-map__toggle svg { flex: none; width: var(--icon-sm); height: var(--icon-sm); color: var(--accent); }
.zone-map__toggle .zone-map__chevron { margin-left: auto; width: var(--icon-md); height: var(--icon-md); color: var(--muted); transition: transform var(--motion-fast) var(--ease); }
.zone-map[open] .zone-map__chevron { transform: rotate(180deg); }
@media (max-width: 767px) { .zone-map__toggle { min-height: var(--tap); } }
.zone-map__art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--border2); border-radius: var(--radius-lg); background: var(--cream); }
.zone-map__zone { stroke: var(--panel); stroke-width: 2; vector-effect: non-scaling-stroke; opacity: 0.5; transition: opacity var(--motion-base) var(--ease); }
.zone-map__zone--1 { fill: var(--pistachio); }
.zone-map__zone--2 { fill: var(--lilac); }
.zone-map__zone--3 { fill: var(--terra); }
.zone-map__zone--3:not(.is-on):not(.is-off) { opacity: 0.3; }
.zone-map__zone.is-on { opacity: 0.85; stroke: var(--accent); stroke-width: 3; }
.zone-map__zone.is-off { fill: var(--border); opacity: 0.9; stroke-dasharray: 4 3; }
.zone-map__label.is-off { background: var(--card); color: var(--muted); }
.zone-map__item.is-off { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--border); }
.zone-map__swatch--3 { background: var(--terra); opacity: 0.45; }
.zone-map__swatch--off { background: var(--border); }
.zone-map__label {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); padding: 0 var(--space-2);
  border-radius: var(--radius-pill); background: var(--panel); color: var(--ink); box-shadow: var(--shadow-1);
  font-size: var(--text-xs); font-weight: var(--weight-semibold); white-space: nowrap;
}
.zone-map__label.is-on { background: var(--accent); color: var(--on-accent); }
.zone-map__kitchen {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: grid; place-items: center;
  width: var(--control-md); height: var(--control-md); padding: var(--space-1); border-radius: var(--radius-pill); background: var(--panel); box-shadow: var(--shadow-2);
}
.zone-map__kitchen img { width: 100%; height: 100%; object-fit: contain; }
.zone-map__pin {
  position: absolute; left: var(--x); top: var(--y); z-index: var(--z-above); transform: translate(-50%, -50%); display: grid; place-items: center;
  width: var(--control-sm); height: var(--control-sm); border: 2px solid var(--panel); border-radius: var(--radius-pill);
  background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-2);
}
.zone-map__pin svg { width: var(--icon-sm); height: var(--icon-sm); }
.zone-map__pin.is-out { background: var(--err); }
.zone-map__legend { display: grid; gap: var(--space-1); margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.zone-map__item { display: flex; align-items: center; gap: var(--space-2); color: var(--muted); }
.zone-map__item.is-on { color: var(--ink); font-weight: var(--weight-semibold); }
.zone-map__swatch { flex: none; width: var(--icon-sm); height: var(--icon-sm); border-radius: var(--radius-sm); }
.zone-map__swatch--1 { background: var(--pistachio); }
.zone-map__swatch--2 { background: var(--lilac); }
.zone-map__caption { margin: 0; color: var(--muted); font-size: var(--text-xs); }
/* Зона адреса словами над формой; вне зон — и «Заберу сам» */
.zone-line { display: flex; align-items: flex-start; gap: var(--space-2); margin: 0; padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); background: var(--tint); font-size: var(--text-sm); }
.zone-line > svg { flex: none; width: var(--icon-md); height: var(--icon-md); color: var(--ok); }
.zone-line--out { flex-wrap: wrap; align-items: center; border: 1px solid var(--err); background: var(--panel); }
.zone-line--out > svg { color: var(--err); }
.zone-line--out > span { display: grid; gap: var(--space-1); flex: 1 1 calc(var(--space-8) * 3); min-width: 0; }
.zone-line--out > span > span { color: var(--muted); }

/* Оплата (Р112, И112): один способ карточкой; у доставки наличными — «С какой суммы сдача?»; бонусы — отдельным блоком */
.pay { display: grid; gap: var(--space-2); min-width: 0; margin: 0; padding: 0; border: 0; }
.pay-card { display: grid; gap: var(--space-2); min-width: 0; }
.pay-card__change { padding-left: calc(var(--space-4) + var(--icon-md) + var(--space-3)); }
.pay-card__change .input-unit { max-width: calc(var(--space-8) * 4); }
.pay-card__change { justify-items: start; }
.pay-card__change .input-unit { width: 100%; }
@media (max-width: 767px) { .pay-card__change { padding-left: 0; } } /* телефон: «Без сдачи» и две суммы — в одну строку */
.pay__bonus { padding-top: var(--space-4); border-top: 1px solid var(--border2); }
.pay-bonus { display: grid; gap: var(--space-2); min-width: 0; }
.pay-bonus__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--space-1) var(--space-3); }
.pay-bonus__title { font-family: var(--font-text); font-size: var(--text-md); font-weight: var(--weight-semibold); letter-spacing: 0; }
.pay-bonus__note { color: var(--muted); font-size: var(--text-sm); }

/* Персоны от 0: при 0 рядом — «без приборов» (подпись, а не кнопка) */
.persons__row .order-block__title { flex: 1; }
.persons__none { color: var(--muted); font-size: var(--text-sm); }

/* Комментарий к блюду: по нажатию, до 255 знаков, счётчик ближе к пределу */
.cart-line__note { color: var(--ink); font-size: var(--text-xs); font-style: italic; overflow-wrap: anywhere; }
.cart-line__note-btn { grid-column: 2 / -1; justify-self: start; margin-top: calc(var(--space-2) * -1); font-size: var(--text-xs); }
@media (min-width: 768px) { .cart-line__note-btn { min-height: 0; line-height: inherit; } }
.line-note { grid-column: 1 / -1; display: grid; gap: var(--space-2); }
.line-note__field { display: grid; gap: var(--space-1); }
.line-note__label { font-size: var(--text-xs); font-weight: var(--weight-semibold); }
.line-note__input { min-height: calc(var(--control-lg) + var(--space-5)); font-size: var(--text-sm); }
.line-note__count { min-height: 1lh; color: var(--muted); font-size: var(--text-xs); }
.line-note__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
@media (max-width: 767px) { .line-note__input { font-size: var(--text-field); } }

/* Пометка «позже» — то, что придёт следующим выпуском (доставка) */
.tag-later {
  display: inline-flex; align-items: center; height: var(--space-5); margin-left: var(--space-1); padding: 0 var(--space-2);
  border-radius: var(--radius-pill); background: var(--cream); color: var(--muted); font-size: var(--text-xs); font-weight: var(--weight-semibold);
}

/* Новый итог после расчёта — мягко подсвечивается (И102) */
.is-fresh { border-radius: var(--radius-sm); animation: fresh var(--motion-decor) var(--ease); }
@keyframes fresh { from { background: var(--tint); box-shadow: 0 0 0 var(--space-1) var(--tint); } }

/* Сердечко в карточке блюда и в «Любимом» (Р95) */
.dish-dialog__fav {
  position: absolute; top: var(--space-3); right: calc(var(--space-3) * 2 + var(--icon-button));
  border-radius: var(--radius-pill); background: var(--panel); box-shadow: var(--shadow-1); color: var(--accent);
}
.dish-dialog__fav:hover { background: var(--panel); }
.dish-dialog__fav[aria-pressed="true"] svg, .fav-row__heart[aria-pressed="true"] svg { fill: currentColor; }
@media (max-width: 767px) { .dish-dialog__fav { right: calc(var(--space-3) * 2 + var(--tap)); } }

/* Шаги заказа — только те, что знает iiko: сделано, сейчас, впереди */
.order-steps { display: grid; margin: 0; padding: 0; list-style: none; }
.order-steps__item {
  position: relative; display: grid; grid-template-columns: var(--control-sm) minmax(0, 1fr); gap: var(--space-3);
  padding-bottom: var(--space-4); color: var(--muted);
}
.order-steps__item:last-child { padding-bottom: 0; }
.order-steps__item::before {
  content: ""; position: absolute; top: var(--control-sm); bottom: 0; left: calc(var(--control-sm) / 2 - 1px); width: 2px; background: var(--border);
}
.order-steps__item:last-child::before { display: none; }
.order-steps__item.is-done::before { background: var(--gold); }
.order-steps__mark {
  display: grid; place-items: center; width: var(--control-sm); height: var(--control-sm); border: 2px solid var(--border);
  border-radius: var(--radius-pill); background: var(--panel);
}
.order-steps__mark svg { width: var(--icon-sm); height: var(--icon-sm); }
.order-steps__item.is-done .order-steps__mark { border-color: var(--gold); background: var(--gold); color: var(--on-accent); }
.order-steps__item.is-current .order-steps__mark { border-color: var(--accent); box-shadow: 0 0 0 var(--space-1) var(--tint); }
.order-steps__item.is-current .order-steps__mark::after { content: ""; width: var(--space-3); height: var(--space-3); border-radius: var(--radius-pill); background: var(--accent); }
.order-steps__text { display: grid; gap: var(--space-1); min-width: 0; padding-top: var(--space-1); }
.order-steps__text span { font-size: var(--text-sm); }
.order-steps__item.is-done .order-steps__text b, .order-steps__item.is-current .order-steps__text b { color: var(--ink); }
.order-steps__item.is-current .order-steps__text b { font-weight: var(--weight-bold); }
