/* Прокофий и Булочка — QR-меню.
   Светлая тёплая тема в цветах логотипа: фирменный оранжевый #EC6608,
   эспрессо для текста, кремовый фон. Шрифт системный (SF, Roboto, Segoe UI):
   ничего не качается, текст на каждом устройстве выглядит «родным».
   Сдержанно: вес не выше 600, скругления 4–10 px, вместо теней — тонкие линии. */

:root {
  color-scheme: light;
  --bg: #fbf7f2;
  --surface: #ffffff;
  --surface-2: #f4ece3;
  --tile: #f6f0e8;
  --ink: #241a14;
  --ink-2: #6b5e55;
  --ink-3: #75685d;
  --line: #ebe1d6;
  --line-2: #dcd0c3;
  --brand: #ec6608;
  --brand-press: #d45a05;
  --brand-soft: #fff0e3;
  --brand-text: #b84a00;
  --sun: #fab900;
  --ok: #1f9254;
  --danger: #cf3a2c;
  --r-lg: 10px;
  --r-md: 8px;
  --r-sm: 6px;
  --sh-1: 0 1px 2px rgba(36, 26, 20, 0.08);
  --sh-2: 0 8px 24px rgba(36, 26, 20, 0.12);
  --topbar-h: calc(60px + env(safe-area-inset-top, 0px));
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
  -webkit-tap-highlight-color: transparent;
}
[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--topbar-h) + 60px);
}
html.is-locked,
html.is-locked body {
  overflow: hidden;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}
b,
strong {
  font-weight: 600;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a {
  color: var(--brand-text);
}

:focus-visible {
  outline: 2px solid rgba(236, 102, 8, 0.6);
  outline-offset: 2px;
}

.ico {
  display: inline-grid;
  width: 20px;
  height: 20px;
  flex: none;
}
.ico svg,
.icon-btn svg,
.chip--icon svg,
.sheet__close svg,
.stepper__btn svg,
.state__icon svg,
.status-icon svg,
.img-ph svg,
.mode-opt__icon svg,
.guest__icon svg {
  width: 100%;
  height: 100%;
}
.ico--sm {
  width: 16px;
  height: 16px;
}

/* ---------- Шапка ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(251, 247, 242, 0.9);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.topbar__inner {
  max-width: 1080px;
  height: 60px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand {
  display: block;
  height: 38px;
}
.brand img {
  height: 100%;
  width: auto;
}
.topbar__title {
  font-size: 18px;
  font-weight: 600;
}
.icon-btn {
  width: 40px;
  height: 40px;
  padding: 9px;
  margin-left: -8px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  display: grid;
  place-items: center;
}
.icon-btn:active {
  background: var(--surface-2);
}
.icon-btn--sm {
  width: 32px;
  height: 32px;
  padding: 7px;
  margin: 0;
  border-radius: 50%;
}

.mode-chip {
  margin-left: auto;
  height: 38px;
  padding: 0 10px 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.mode-chip .ico:first-child {
  color: var(--brand);
}
.mode-chip .ico--sm {
  color: var(--ink-3);
}

/* ---------- Контент ---------- */

.content {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
  animation: fade 0.18s ease-out;
}
body.has-cartbar .content--menu {
  padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
}

@keyframes fade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}

/* ---------- Приветствие и выбор способа получения ---------- */

.hero {
  padding: 14px 2px 6px;
}
.hero__title {
  font-size: clamp(26px, 7vw, 34px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero__addr {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 400;
}
.hero__addr .ico {
  color: var(--brand);
}
.hero__hint {
  margin: 10px 2px 0;
  color: var(--ink-2);
  font-size: 14px;
}
.hero__hint b {
  color: var(--ink);
}

.seg {
  margin-top: 16px;
  max-width: 440px;
  padding: 3px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
}
.seg__btn {
  height: 42px;
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.seg__btn.is-active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--sh-1);
}
.seg__btn.is-active .ico {
  color: var(--brand);
}

.notice {
  margin-top: 14px;
  max-width: 560px;
  padding: 12px 14px;
  border: 1px solid #f7d8bd;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  color: #6f3405;
  font-size: 15px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.notice .ico {
  color: var(--brand);
}

.link-btn {
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--brand-text);
  font-size: 14px;
  font-weight: 500;
}
.link-btn--muted {
  color: var(--ink-3);
}

/* ---------- Категории ---------- */

.cats {
  position: sticky;
  top: var(--topbar-h);
  z-index: 20;
  margin: 8px -16px 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 247, 242, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
}
.cats__row {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.cats__row::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  height: 46px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  background: none;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}
.chip.is-active {
  border-bottom-color: var(--brand);
  color: var(--ink);
}
.chip--icon {
  width: 24px;
  padding: 12px 0;
  display: grid;
  place-items: center;
}

.search {
  flex: 1;
  height: 36px;
  margin: 5px 0;
  padding: 0 4px 0 10px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
}
.search:focus-within {
  border-color: var(--brand);
}
.search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
}
.search__input::-webkit-search-cancel-button {
  display: none;
}

/* ---------- Сетка блюд ---------- */

.cat-section {
  padding-top: 20px;
  scroll-margin-top: calc(var(--topbar-h) + 62px);
}
.cat-title {
  margin: 4px 0 12px;
  font-size: 21px;
  font-weight: 600;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 12px;
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px 16px;
  }
}
@media (min-width: 920px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.card:has(.card__hit:active) .card__media {
  opacity: 0.85;
}
@media (hover: hover) {
  .card:hover .card__name {
    color: var(--brand-text);
  }
}
.card__hit {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 0;
  border-radius: inherit;
  background: transparent;
}
.card__media,
.sheet__media,
.line__img,
.mini__img {
  position: relative;
  overflow: hidden;
  background: var(--tile);
}
.card__media {
  aspect-ratio: 5 / 4;
  border-radius: var(--r-md);
  transition: opacity 0.15s;
}
.card__media img,
.sheet__media img,
.line__img img,
.mini__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* фото блюд на белом фоне — «растворяем» белое в тёплой подложке */
  mix-blend-mode: multiply;
}
.img-ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #d8c9b8;
  padding: 26%;
}
.card__body {
  padding: 10px 0 0;
  flex: 1;
}
.card__name {
  font-size: 15px;
  line-height: 1.3;
  transition: color 0.15s;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card__meta {
  margin-top: 2px;
  min-height: 1.3em;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 400;
}
.card__action {
  position: relative;
  z-index: 2;
  padding: 8px 0 0;
}

.price-btn {
  width: 100%;
  height: 38px;
  padding: 0 5px 0 11px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-size: 15px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.15s, background 0.15s;
}
.price-btn:active {
  background: var(--surface-2);
}
.price-btn__plus {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
}

.stepper {
  height: 48px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  display: inline-flex;
  align-items: center;
  flex: none;
}
.stepper__btn {
  width: 44px;
  height: 100%;
  padding: 14px;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
}
.stepper__btn:disabled {
  opacity: 0.3;
}
.stepper__val {
  min-width: 22px;
  text-align: center;
  font-size: 17px;
  font-weight: 600;
}
.stepper--compact {
  height: 38px;
  border: 1px solid #f3cfae;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand-text);
}
.card .stepper--compact {
  width: 100%;
  justify-content: space-between;
}
.stepper--compact .stepper__btn {
  width: 40px;
  padding: 12px;
}

/* ---------- Плашка корзины ---------- */

.cartbar-wrap {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 18px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(to top, var(--bg) 45%, rgba(251, 247, 242, 0));
  pointer-events: none;
  animation: rise 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes rise {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
}
.cartbar {
  pointer-events: auto;
  width: 100%;
  max-width: 560px;
  height: 56px;
  margin: 0 auto;
  padding: 0 18px 0 10px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--brand);
  color: #fff;
  box-shadow: 0 6px 16px rgba(36, 26, 20, 0.16);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 17px;
  font-weight: 600;
}
.cartbar:active {
  background: var(--brand-press);
}
.cartbar__count {
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
}
.cartbar__label {
  flex: 1;
  text-align: left;
}

/* ---------- Кнопки и поля ---------- */

.btn {
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: var(--r-md);
  font-size: 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 0.15s, transform 0.1s;
}
.btn:active:not(:disabled) {
  transform: translateY(1px);
}
.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:active:not(:disabled) {
  background: var(--brand-press);
}
.btn--primary:disabled {
  background: #e9ddd0;
  color: var(--ink-2);
  box-shadow: none;
}
.btn--secondary {
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--ink);
}
.btn--ghost {
  height: 44px;
  background: none;
  color: var(--ink-2);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 4px;
}
.btn--ghost:hover {
  color: var(--danger);
}
.btn--danger {
  background: var(--danger);
  color: #fff;
}
.btn--danger:disabled {
  opacity: 0.6;
}
.btn--grow {
  flex: 1;
  min-width: 0;
}
.btn__sum {
  margin-left: 10px;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.input {
  width: 100%;
  height: 50px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 16px;
  font-weight: 400;
  outline: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(236, 102, 8, 0.12);
}
.input::placeholder {
  color: var(--ink-3);
  font-weight: 400;
}
.input--area {
  height: auto;
  min-height: 78px;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.4;
}

.check {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--ink-2);
  font-size: 14px;
}
.check input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex: none;
  accent-color: var(--brand);
}

/* ---------- Шторка ---------- */

.sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
}
.sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(36, 26, 20, 0.45);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: 12px 12px 0 0;
  background: var(--surface);
  box-shadow: 0 -8px 30px rgba(36, 26, 20, 0.16);
  transform: translateY(100%);
  transition: transform 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
  outline: 0;
}
.sheet.is-open .sheet__backdrop {
  opacity: 1;
}
.sheet.is-open .sheet__panel {
  transform: none;
}
@media (min-width: 720px) {
  .sheet__panel {
    left: 50%;
    right: auto;
    top: 50%;
    bottom: auto;
    width: 520px;
    max-height: 88vh;
    border-radius: var(--r-lg);
    transform: translate(-50%, -46%);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
  }
  .sheet.is-open .sheet__panel {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}
.sheet__close {
  position: sticky;
  top: 12px;
  z-index: 3;
  float: right;
  width: 40px;
  height: 40px;
  margin: 12px 12px -52px 0;
  padding: 10px;
  border: 0;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--sh-1);
  display: grid;
  place-items: center;
}
.sheet__media {
  aspect-ratio: 4 / 3;
}
.sheet__body {
  clear: both;
  padding: 18px 20px 20px;
}
.sheet__body--mode {
  padding-top: 24px;
}
.sheet__title {
  padding-right: 8px;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 600;
}
.sheet__body--mode .sheet__title {
  padding-right: 48px;
}
.sheet__meta {
  margin-top: 4px;
  color: var(--ink-3);
  font-size: 14px;
  font-weight: 400;
}
.sheet__desc {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.sheet__footer {
  position: sticky;
  bottom: 0;
  z-index: 2;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  gap: 12px;
}

.nutri {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.nutri__cell {
  padding: 8px 10px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
}
.nutri dt {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 400;
}
.nutri dd {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}

.mgroup {
  margin-top: 22px;
}
.mgroup__head {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mgroup__title {
  font-size: 17px;
  font-weight: 600;
}
.mgroup__hint {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
}
.mgroup__hint.is-req {
  background: var(--brand-soft);
  color: var(--brand-text);
}
.mgroup__count {
  margin-left: auto;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 400;
}

.opts {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.opt {
  width: 100%;
  min-height: 52px;
  padding: 10px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  font-size: 15px;
  font-weight: 400;
}
.opt:last-child {
  border-bottom: 0;
}
.opt.is-on {
  background: #fffaf5;
}
.opt__radio {
  width: 22px;
  height: 22px;
  flex: none;
  border: 2px solid #cdbfb2;
  border-radius: 50%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.opt.is-on .opt__radio {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 5px var(--surface);
  background: var(--brand);
}
.opt__name {
  flex: 1;
}
.opt__price {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}

.mchips {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mchip {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  transition: border-color 0.15s, background 0.15s;
}
.mchip__price {
  color: var(--ink-3);
  font-size: 13px;
}
.mchip.is-on {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-text);
}
.mchip.is-on .mchip__price {
  color: var(--brand-text);
}
.mchip__check {
  width: 16px;
  height: 16px;
  display: inline-grid;
}
.mchip__check svg {
  width: 100%;
  height: 100%;
}
.mchip:disabled {
  opacity: 0.45;
}

/* ---------- Способ получения и стол ---------- */

.mode-opts {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.panel .mode-opts {
  margin-top: 4px;
}
.mode-opt {
  padding: 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}
.mode-opt__icon {
  width: 38px;
  height: 38px;
  padding: 9px;
  border-radius: var(--r-sm);
  background: var(--surface-2);
  color: var(--ink-2);
  display: grid;
  place-items: center;
}
.mode-opt__text b {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.mode-opt__text span {
  display: block;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.3;
}
.mode-opt.is-on {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.mode-opt.is-on .mode-opt__icon {
  background: var(--brand);
  color: #fff;
}

.table-field {
  margin-top: 16px;
}
.field-label {
  display: block;
  margin-bottom: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.table-input {
  height: 56px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-3);
  transition: border-color 0.15s, background 0.15s;
}
.table-input:focus-within {
  border-color: var(--brand);
  background: var(--surface);
}
.table-input:has(.is-invalid) {
  border-color: var(--danger);
}
.input--table {
  height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none !important;
  color: var(--ink);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.field-msg {
  margin: 8px 2px 0;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 400;
}
.field-msg.is-error {
  color: var(--danger);
}
.field-msg.is-ok {
  color: var(--ok);
}
.table-set {
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}
.table-set__num {
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 600;
}
.table-set__text {
  flex: 1;
  min-width: 0;
}
.table-set__text b {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.table-set__text span {
  display: block;
  color: var(--ink-2);
  font-size: 13px;
}

/* ---------- Экран заказа ---------- */

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 12px 0 calc(110px + env(safe-area-inset-bottom, 0px));
}
.panel {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel__title {
  display: block;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 600;
}
.panel__head .panel__title {
  margin-bottom: 4px;
}
.panel__note {
  margin: 12px 2px 0;
  color: var(--ink-2);
  font-size: 14px;
}
label.panel__title + .panel__note {
  margin: -4px 0 12px;
}

.lines {
  list-style: none;
  padding: 0;
}
.line {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}
.line:first-child {
  border-top: 0;
}
.line__img {
  width: 56px;
  height: 56px;
  border-radius: var(--r-sm);
}
.line__img .img-ph {
  padding: 14px;
}
.line__name {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.25;
}
.line__mods {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.3;
}
.line__price {
  margin-top: 3px;
  font-size: 14px;
  font-weight: 600;
}
.line .stepper--compact {
  width: 112px;
  justify-content: space-between;
}

.upsell {
  margin: 4px 0 14px;
}
.upsell__title {
  margin: 6px 2px 10px;
  font-size: 17px;
  font-weight: 600;
}
.upsell__row {
  margin: 0 -16px;
  padding: 2px 16px 8px;
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.upsell__row::-webkit-scrollbar {
  display: none;
}
.mini {
  flex: none;
  width: 132px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.mini__img {
  aspect-ratio: 5 / 4;
  border-radius: var(--r-sm);
}
.mini__name {
  min-height: 2.5em;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mini__price {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
}
.mini__plus {
  width: 26px;
  height: 26px;
  padding: 6px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
}

.panel--show {
  padding: 24px 20px;
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
  text-align: center;
}
.show__label {
  color: var(--sun);
  font-size: 28px;
  font-weight: 600;
}
.show__sum {
  margin-top: 2px;
  font-size: 22px;
  font-weight: 600;
}
.show__text {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.45;
}
.show__text b {
  color: #fff;
}

.guest__card {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #f3cfae;
  border-radius: var(--r-md);
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  gap: 12px;
}
.guest__icon {
  width: 38px;
  height: 38px;
  padding: 9px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: #fff;
  display: grid;
}
.guest__card b {
  display: block;
  font-size: 15px;
  font-weight: 600;
}
.guest__card span {
  display: block;
  color: var(--ink-2);
  font-size: 13px;
}
.guest__note {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13px;
}

.switch {
  position: relative;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.switch__text {
  flex: 1;
}
.switch__text b {
  display: block;
  font-size: 15px;
}
.switch__text span {
  display: block;
  color: var(--ink-3);
  font-size: 13px;
}
.switch__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.switch__ui {
  position: relative;
  width: 50px;
  height: 30px;
  flex: none;
  border-radius: 999px;
  background: #dccfc2;
  transition: background 0.15s;
}
.switch__ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s;
}
.switch__input:checked + .switch__ui {
  background: var(--brand);
}
.switch__input:checked + .switch__ui::after {
  transform: translateX(20px);
}
.switch__input:focus-visible + .switch__ui {
  outline: 3px solid rgba(236, 102, 8, 0.55);
  outline-offset: 2px;
}

.summary__row {
  padding: 4px 0;
  display: flex;
  justify-content: space-between;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 400;
}
.summary__row.is-bonus {
  color: var(--ok);
}
.summary__row--total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 19px;
  font-weight: 600;
}
.summary__legal {
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 12px;
}
.summary__legal a {
  color: inherit;
}

.actionbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.actionbar__inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
}

/* ---------- Статус заказа, пустые состояния ---------- */

.page--center {
  max-width: 520px;
  padding-top: 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.page--center .btn {
  width: 100%;
  max-width: 360px;
  margin-top: 12px;
}
.status-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  padding: 17px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.status-icon--ok {
  background: #e3f4ea;
  color: var(--ok);
}
.status-icon--muted {
  background: var(--surface-2);
  color: var(--ink-2);
}
.status-icon--err {
  background: #fde8e5;
  color: var(--danger);
}
.status-icon--wait {
  border: 4px solid var(--surface-2);
  border-top-color: var(--brand);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.order-no {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
}
.order-no span {
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 500;
}
.order-no b {
  font-size: 56px;
  line-height: 1.05;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.bonus-line {
  margin-top: 14px;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  background: #fff3d6;
  color: #6e4a00;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.receipt {
  width: 100%;
  margin: 20px 0 8px;
  padding: 4px 16px;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  text-align: left;
}
.receipt li {
  padding: 10px 0;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 400;
}
.receipt li:first-child {
  border-top: 0;
}
.receipt small {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
}
.receipt--canceled li {
  color: var(--ink-3);
}

/* Отмена заказа: тихая ссылка → подтверждение на месте, обратный отсчёт */
.cancel {
  width: 100%;
  max-width: 360px;
  margin-top: 4px;
}
.page--center .cancel .btn {
  margin-top: 8px;
}
.cancel__hint {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.cancel__box {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #f0c9c4;
  border-radius: var(--r-md);
  background: #fdf3f2;
  text-align: left;
}
.cancel__title {
  font-size: 16px;
  font-weight: 600;
}
.cancel__text {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 14px;
}
.cancel__actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.page--center .cancel__actions .btn {
  width: auto;
  height: 46px;
  margin-top: 0;
  padding: 0 12px;
  font-size: 15px;
}
.cancel__error {
  width: 100%;
  max-width: 360px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #f0c9c4;
  border-radius: var(--r-md);
  background: #fdf3f2;
  color: #8f2419;
  font-size: 14px;
}

.state {
  padding: 56px 16px;
  text-align: center;
}
.state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  padding: 17px;
  border-radius: var(--r-lg);
  background: var(--surface-2);
  color: var(--brand);
}
.state__title {
  font-size: 22px;
  line-height: 1.25;
  font-weight: 600;
}
.state__text {
  max-width: 36ch;
  margin: 8px auto 0;
  color: var(--ink-2);
  font-size: 15px;
}
.state .btn {
  margin-top: 20px;
}
.empty {
  padding: 40px 0;
  color: var(--ink-3);
  text-align: center;
  font-weight: 400;
}

/* ---------- Скелетон ---------- */

.sk {
  border-radius: var(--r-sm);
  background: linear-gradient(90deg, #efe6dc 25%, #f7f0e8 37%, #efe6dc 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
@keyframes shimmer {
  from {
    background-position: 100% 50%;
  }
  to {
    background-position: 0 50%;
  }
}
.sk--img {
  aspect-ratio: 5 / 4;
  border-radius: var(--r-md);
}
.sk--line {
  height: 14px;
  margin-top: 10px;
}
.sk--short {
  width: 55%;
}
.sk--title {
  height: 34px;
  width: 70%;
  margin: 10px 0;
}
.sk--seg {
  height: 52px;
  max-width: 440px;
  margin-top: 16px;
  border-radius: var(--r-md);
}
.sk--chip {
  flex: none;
  width: 72px;
  height: 18px;
  margin: 14px 0;
  border-radius: 4px;
}
.menu-body {
  min-height: 40vh;
}

/* ---------- Подвал ---------- */

.site-footer {
  margin: 40px -16px 0;
  padding: 28px 20px 8px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--ink-2);
}
.site-footer__logo {
  width: 150px;
  height: auto;
  margin: 0 auto 14px;
  mix-blend-mode: multiply;
}
.site-footer__contacts {
  padding: 0;
  list-style: none;
}
.site-footer__contacts li {
  margin: 4px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 400;
}
.site-footer__contacts .ico {
  color: var(--brand);
}
.site-footer__contacts a {
  color: inherit;
  text-decoration: none;
}
.site-footer__links {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
}
.site-footer__links a {
  color: var(--ink-2);
  font-size: 13px;
  text-underline-offset: 3px;
}
.site-footer__legal {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 12px;
}

/* ---------- Тост ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  width: max-content;
  max-width: min(420px, calc(100% - 32px));
  padding: 12px 16px;
  text-wrap: balance;
  border-radius: var(--r-md);
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 400;
  text-align: center;
  box-shadow: var(--sh-2);
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
}
.toast.is-raised {
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
}
.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.noscript {
  padding: 24px;
  text-align: center;
}

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

/* Строка «С собой» на экране заказа (способ выбирается на главной) */
.panel--row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.panel__icon {
  width: 42px;
  height: 42px;
  padding: 10px;
  flex: none;
  border-radius: var(--r-sm);
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
}
.panel__icon svg {
  width: 100%;
  height: 100%;
}
.panel--row b {
  display: block;
  font-size: 16px;
  font-weight: 600;
}
.panel--row span:not(.panel__icon) {
  display: block;
  color: var(--ink-2);
  font-size: 13px;
}
.panel .table-field {
  margin-top: 0;
}
.pickup {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pickup-row {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
}
.pickup-row:disabled {
  background: var(--surface-2);
  border-color: var(--line);
}
.pickup-row:disabled .pickup-row__action {
  display: none;
}
.pickup-row__icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--brand);
  display: grid;
}
.pickup-row__icon svg {
  width: 100%;
  height: 100%;
}
.pickup-row__text {
  flex: 1;
  min-width: 0;
}
.pickup-row__text b {
  display: block;
  font-size: 16px;
}
.pickup-row__sub {
  display: block;
  color: var(--ink-2);
  font-size: 13px;
}
.pickup-row__action {
  color: var(--brand-text);
  font-size: 14px;
  font-weight: 500;
}

/* Колёса прокрутки времени (шторка «Когда заберёте») */
.pickup-sheet {
  text-align: center;
}
.pickup-sheet .sheet__title {
  padding: 0 40px;
}
.wheels {
  position: relative;
  max-width: 280px;
  margin: 12px auto 0;
}
/* полоса выбранной строки */
.wheels::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 88px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  pointer-events: none;
}
.wheel {
  position: relative;
  height: 220px;
  padding: 88px 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  outline-offset: -2px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
.wheel::-webkit-scrollbar {
  display: none;
}
.wheel__item {
  position: relative;
  height: 44px;
  display: grid;
  place-items: center;
  scroll-snap-align: center;
  font-size: 24px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.12s, transform 0.12s;
}
.wheel__item--d0 {
  font-weight: 500;
}
.wheel__item--d1 {
  opacity: 0.45;
  transform: scale(0.88);
}
.wheel__item--d2,
.wheel__item--d3 {
  opacity: 0.22;
  transform: scale(0.8);
}

/* ---------- Ссылки на документы (экран заказа и статуса) ---------- */

.legal-links {
  margin: 14px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 16px;
  font-size: 12px;
}
.legal-links a {
  color: var(--ink-3);
  text-underline-offset: 3px;
}

/* ---------- Ноутбук и широкие экраны: разделы слева, корзина справа ---------- */

.side-nav,
.cart-panel {
  display: none;
}

@media (hover: hover) {
  .chip:not(.is-active):hover {
    color: var(--ink);
  }
  .price-btn:hover {
    border-color: var(--ink-3);
  }
}

@media (min-width: 1024px) {
  html {
    scroll-padding-top: calc(var(--topbar-h) + 16px);
  }
  .topbar__inner {
    max-width: 1320px;
    padding: 0 24px;
  }
  .brand {
    height: 42px;
  }
  .content {
    max-width: 1320px;
    padding: 0 24px 48px;
  }
  body.has-cartbar .content--menu {
    padding-bottom: 48px;
  }
  .cartbar-wrap {
    display: none !important;
  }
  .toast.is-raised {
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }

  .menu-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 340px;
    gap: 28px;
    align-items: start;
  }
  .cats {
    display: none;
  }
  .hero {
    padding-top: 24px;
  }
  .cat-section {
    scroll-margin-top: calc(var(--topbar-h) + 16px);
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 18px;
  }
  .site-footer {
    margin: 48px 0 0;
  }

  .side-nav,
  .cart-panel {
    display: block;
    position: sticky;
    top: calc(var(--topbar-h) + 16px);
  }
  .side-nav {
    padding-top: 24px;
  }
  .side-nav__searchbox {
    height: 40px;
    padding: 0 10px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-md);
    background: var(--surface);
    color: var(--ink-3);
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .side-nav__searchbox:focus-within {
    border-color: var(--brand);
  }
  .side-nav__search {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 15px;
    font-weight: 400;
    color: var(--ink);
  }
  .side-nav__list {
    margin-top: 12px;
    max-height: calc(100vh - var(--topbar-h) - 130px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  .side-nav__link {
    padding: 9px 12px;
    border: 0;
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    transition: background 0.15s, color 0.15s;
  }
  .side-nav__link:hover {
    background: var(--surface-2);
    color: var(--ink);
  }
  .side-nav__link.is-active {
    background: var(--surface-2);
    color: var(--ink);
    box-shadow: inset 2px 0 0 var(--brand);
  }
  .side-nav__count {
    font-size: 13px;
    opacity: 0.55;
  }

  .cart-panel {
    margin-top: 24px;
    max-height: calc(100vh - var(--topbar-h) - 40px);
    overflow-y: auto;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    background: var(--surface);
  }
  .cart-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .cart-panel__title {
    font-size: 19px;
    font-weight: 600;
  }
  .cart-panel__empty {
    padding: 22px 8px 6px;
    text-align: center;
    color: var(--ink-2);
    font-size: 14px;
  }
  .cart-panel__empty .state__icon {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    padding: 17px;
  }
  .cart-panel__lines {
    margin-top: 6px;
    padding: 0;
    list-style: none;
  }
  .cline {
    padding: 10px 0;
    border-top: 1px solid var(--line);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
  }
  .cline:first-child {
    border-top: 0;
  }
  .cline__name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.25;
  }
  .cline__mods {
    margin-top: 1px;
    color: var(--ink-3);
    font-size: 12px;
    line-height: 1.3;
  }
  .cline__price {
    margin-top: 2px;
    font-size: 13px;
    font-weight: 600;
  }
  .cline .stepper--compact {
    height: 34px;
  }
  .cline .stepper__btn {
    width: 32px;
    padding: 10px;
  }
  .cart-panel__mode {
    width: 100%;
    margin-top: 12px;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: var(--surface);
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
  }
  .cart-panel__mode:hover {
    border-color: #d9cbbd;
  }
  .cart-panel__mode .panel__icon {
    width: 38px;
    height: 38px;
    padding: 9px;
  }
  .cart-panel__mode-text {
    flex: 1;
    min-width: 0;
  }
  .cart-panel__mode-text b {
    display: block;
    font-size: 15px;
    font-weight: 600;
  }
  .cart-panel__mode-text span {
    display: block;
    color: var(--ink-2);
    font-size: 12px;
  }
  .cart-panel__mode .ico--sm {
    color: var(--ink-3);
  }
  .cart-panel__total {
    margin-top: 16px;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    color: var(--ink-2);
    font-size: 15px;
    font-weight: 500;
  }
  .cart-panel__total b {
    color: var(--ink);
    font-size: 21px;
    font-weight: 600;
  }
  .cart-panel__cta {
    width: 100%;
    margin-top: 12px;
  }
  .cart-panel__note {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: var(--r-sm);
    background: var(--brand-soft);
    color: #6f3405;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
  }

  .upsell__row {
    margin: 0;
    padding: 2px 2px 8px;
  }

  /* экран заказа: слева данные, справа итог с кнопкой */
  .page--order {
    max-width: 1080px;
    padding: 24px 0 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
  }
  .order-side {
    position: sticky;
    top: calc(var(--topbar-h) + 16px);
  }
  .order-side .actionbar {
    position: static;
    padding: 0;
    border: 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .order-side .actionbar__inner {
    max-width: none;
  }
}

/* ---------- Установка приложения (PWA) ---------- */

.install-btn {
  margin: 18px auto 0;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.install-btn .ico {
  color: var(--brand);
}
.install-btn:hover {
  border-color: var(--brand);
}
.install-steps {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.install-step {
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.install-step__num {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.install-step__text {
  flex: 1;
}
.install-step__ico {
  width: 24px;
  height: 24px;
  color: var(--ink-2);
}

/* В установленном приложении: учитываем вырез экрана и «домашнюю» полосу iPhone */
@media (display-mode: standalone) {
  .site-footer {
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}
.input--email {
  margin-top: 10px;
}

/* Гибрид: шапка и навигация третьего концепта, витрина первого. */
:root { --bg: #fffcf6; --surface-2: #f3eee5; --tile: #f2ebe0; --ink: #2c2018; --ink-2: #6b6058; --ink-3: #75685d; --line: #e8e0d5; --r-lg: 18px; --r-md: 12px; --topbar-h: calc(84px + env(safe-area-inset-top, 0px)); }
.topbar { background: var(--brand); border-radius: 0 0 18px 18px; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.topbar__inner { height: 84px; position: relative; justify-content: center; }
.brand { height: 64px; max-width: calc(100% - 64px); }
.brand img { width: 245px; height: 100%; object-fit: contain; }
.header-search { position: absolute; right: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: white; font-size: 12px; font-weight: 600; }
.topbar .icon-btn { position: absolute; left: 20px; color: #fff; }
.topbar__title { font-size: 22px; }
.mode-chip { display: none; }
.hero { padding: 18px 0 6px; }
.seg { margin: 0; max-width: none; padding: 4px; border-radius: 30px; background: var(--surface-2); }
.seg__btn { height: 44px; border-radius: 25px; font-size: 16px; }
.seg__btn.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.seg__btn.is-active .ico { color: #fff; }
.fulfillment-row { width: 100%; min-height: 48px; margin-top: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 28px; background: transparent; display: flex; align-items: center; gap: 10px; text-align: left; }
.fulfillment-row > .ico:first-child { color: var(--brand-text); }
.fulfillment-row__label { flex: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 14px; }
.fulfillment-row__label > span { color: var(--ink-2); font-size: 13px; }
.cats { background: rgba(255,252,246,.97); border-bottom: 0; }
.cats__row { gap: 8px; padding-top: 10px; padding-bottom: 10px; }
.chip { height: 42px; padding: 0 17px; background: var(--surface-2); border: 0; border-radius: 24px; font-size: 14px; color: var(--ink); }
.chip.is-active { background: var(--brand); color: #fff; }
.chip--icon { width: 42px; padding: 11px; }
.cat-title { font-size: 27px; font-weight: 600; letter-spacing: -.03em; margin-bottom: 14px; }
.cat-section { padding-top: 14px; }
.grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 24px 14px; }
.card { background: transparent; border: 0; padding: 0; border-radius: 12px; min-width: 0; }
.card__media { aspect-ratio: 1; border-radius: 12px; background: var(--tile); }
.card__media img, .sheet__media img, .line__img img, .mini__img img { object-fit: cover; mix-blend-mode: normal; }
.card__body { padding-top: 10px; }
.card__name { font-size: 16px; font-weight: 500; line-height: 1.3; min-height: 2.6em; overflow-wrap: anywhere; }
.card__meta { font-size: 12px; }
.card__action { padding-top: 4px; }
.price-btn { height: 44px; padding: 0; border: 0; border-radius: 22px; background: transparent; font-size: 18px; color: var(--ink); }
.price-btn__plus { width: 36px; height: 36px; padding: 10px; border-radius: 50%; color: #fff; }
.card .stepper--compact { width: 100%; height: 44px; border-radius: 24px; }
.card .stepper--compact .stepper__btn { width: 44px; }
.cartbar { background: var(--brand); border-radius: 18px; box-shadow: 0 6px 22px #30251e1a; }
.cartbar__count { background: #ffffff24; border-radius: 12px; }
.cartbar-wrap { background: linear-gradient(to top,var(--bg) 45%,transparent); }
.sheet__panel { border-radius: 20px 20px 0 0; background: var(--bg); }
.sheet__media { aspect-ratio: 1; max-height: 42dvh; }
.sheet__media img { object-fit: contain; }
.sheet__body { padding: 20px; }
.sheet__title { font-size: 28px; letter-spacing: -.03em; }
.sheet__footer { background: var(--bg); }
.sheet__footer .btn { min-width: 0; border-radius: 14px; }
.panel { box-shadow: none; }
.line { border-color: var(--line); }
.mini__img { aspect-ratio: 1; }
.menu-main,.side-nav,.cart-panel { min-width: 0; }
@media (min-width: 640px) and (max-width: 1023px) { .grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (min-width: 720px) { .sheet__panel { border-radius: 20px; } }
@media (min-width: 1024px) {
 .hero { padding-top: 20px; }
 .brand { height: 64px; }
 .menu-layout { grid-template-columns: 180px minmax(0,1fr) 290px; gap: 24px; }
 .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
 .header-search { display: none; }
 .cart-panel { border-radius: 18px; }
}
@media (max-width: 359px) {
 .content { padding-left: 12px; padding-right: 12px; }
 .brand img { width: 220px; }
 .header-search { right: 6px; }
 .sheet__footer { gap: 8px; padding-left: 12px; padding-right: 12px; }
 .sheet__footer .btn { padding: 0 12px; font-size: 14px; }
 .card__name { font-size: 14px; }
 .price-btn { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Финальная сверка с выбранным макетом: без повторного поиска и заголовка. */
.brand { height: 84px; }
.brand img { width: 280px; height: 84px; }
.cats__row > .chip--icon { display: none; }
.menu-body > .cat-section:first-child > .cat-title { display: none; }
.menu-body > .cat-section:first-child { padding-top: 6px; }
@media (min-width: 1024px) { .brand { height: 84px; } }
@media (max-width: 359px) { .brand img { width: 240px; } }
