/* Шрифт Ubuntu лежит у нас (public/fonts/ubuntu, Ubuntu Font Licence 1.0 - LICENCE.txt рядом): без запросов к Google Fonts */
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ubuntu/ubuntu-400-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 400; font-display: swap; src: url('../fonts/ubuntu/ubuntu-400-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ubuntu/ubuntu-500-cyrillic.woff2') format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Ubuntu'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/ubuntu/ubuntu-500-latin.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* Витрина v2 - блок меню (phase-showcase-v2-plan.md, шаг 3). Вид - макет, принятый владельцем 12.11.2026
   (showcase.css макета, все правила под .sc, чтобы не задеть стили прежнего сайта).
   База - телефон; от 720 px - две колонки; от 1100 px - фильтры боковой панелью, плитка - сколько влезает (от 180 px), не больше пяти. Шаг сетки 4 px. */
.sc {
  --page: #F7F4EE; --card: #FFFFFF; --raised: #EFE9DF;
  --ink: #43291F; --ink2: #6A5448; --muted: #7B6A5E; --hair: rgba(67, 41, 31, .12);
  --green: #D5E6BC; --green-ink: #2F5411; --accent: #4A7A1E; --hot: #B93A22;
  --ease: cubic-bezier(.22, 1, .36, 1);
  position: relative; box-sizing: border-box; background: var(--page); color: var(--ink);
  font-family: 'Ubuntu', system-ui, sans-serif; font-size: 15px; line-height: 20px; font-weight: 400;
  font-variant-numeric: tabular-nums; text-align: left;
}
.sc *, .sc *::before, .sc *::after { box-sizing: border-box; }
.sc button {
  font: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; text-align: inherit;
  text-transform: none; letter-spacing: normal; box-shadow: none; -webkit-tap-highlight-color: transparent;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.sc button:active { transform: scale(.98); }
.sc button:disabled { cursor: default; transform: none; }
.sc button:focus-visible, .sc input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sc svg { flex: none; display: block; }
.sc :where(h2, h3, p) { margin: 0; padding: 0; font-family: inherit; font-weight: inherit; color: inherit; letter-spacing: normal; text-transform: none; }
.sc [hidden] { display: none !important; }
.sc mark { background: var(--green); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- липкая панель ---------- */
.sc-top { position: sticky; top: 0; z-index: 10; background: var(--page); box-shadow: 0 1px 0 var(--hair); }
.sc-bar { display: flex; flex-direction: column; gap: 8px; padding: 8px 0; }
.sc-find { display: flex; gap: 8px; margin: 0 12px; }
.sc-search {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 40px; margin: 0; padding: 0 12px;
  background: var(--card); border: 1px solid var(--hair); border-radius: 999px; color: var(--muted); font-weight: 400;
}
.sc .sc-search input {
  flex: 1; min-width: 0; width: auto; height: 100%; margin: 0; padding: 0; border: 0; outline: 0; background: none; box-shadow: none;
  font: inherit; font-size: 16px; color: var(--ink); -webkit-appearance: none; appearance: none;
}
.sc-search input::placeholder { color: var(--muted); opacity: 1; }
.sc-search input::-webkit-search-cancel-button { cursor: pointer; }

.sc .btn-filters {
  flex: none; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--hair); font-size: 14px; font-weight: 500; white-space: nowrap;
}
.sc .btn-filters.is-on { border-color: var(--ink); }

/* рубрики: таблетки, нажатие прокручивает к рубрике */
.sc-rubrics { position: relative; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 0 12px; }
.sc-rubrics::-webkit-scrollbar { display: none; }
.sc .rub {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--hair); font-size: 15px; font-weight: 500; white-space: nowrap;
}
.sc .rub.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.sc .rub-hall { font-size: 12px; font-weight: 400; color: var(--muted); }
.sc .rub.is-active .rub-hall { color: #fff; }

/* кнопки фильтра */
.sc .chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px;
  background: var(--card); border: 1px solid var(--hair); font-size: 14px; white-space: nowrap;
}
.sc .chip-n { font-size: 12px; color: var(--muted); }
.sc .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.sc .chip[aria-pressed="true"] .chip-n { color: rgba(255, 255, 255, .7); }
.sc .chip:disabled { opacity: .45; }
.sc .chip-badge {
  min-width: 20px; height: 20px; padding: 0 4px; border-radius: 10px; background: var(--ink); color: #fff;
  font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center;
}

/* итог включённого фильтра */
.sc-status {
  display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; min-height: 48px; padding: 4px 8px 4px 16px;
  background: var(--accent); color: #fff; font-size: 14px;
}
.sc-status b { font-weight: 500; font-size: 16px; }
.sc .st-chips { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 8px 4px; padding-bottom: 8px; }
.sc .st-chips:empty { display: none; }
/* условия на плашке - размером с таблетку порции; палец попадает по зоне чуть больше видимой */
.sc .st-chips .chip {
  position: relative; height: 28px; gap: 4px; padding: 0 8px 0 10px; line-height: 16px;
  background: rgba(255, 255, 255, .16); border-color: transparent; color: #fff;
}
.sc .st-chips .chip::after { content: ''; position: absolute; inset: -4px 0; }
.sc .st-chips .chip svg { width: 14px; height: 14px; }
.sc .st-reset {
  margin-left: auto; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: #fff; color: var(--ink); font-weight: 500; white-space: nowrap;
}

/* ---------- лента ---------- */
.sc-main { padding: 0 12px 96px; }
.sc-note { margin: 16px 4px 0; font-size: 14px; line-height: 20px; color: var(--ink2); }
.sc .sec { position: relative; padding-top: 24px; }
.sc .sec-anchor { position: absolute; top: calc(-1 * var(--top, 104px)); }
.sc .sec-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 0 4px 12px; }
.sc .sec-title { font-size: 24px; line-height: 28px; font-weight: 500; }
.sc .sec-count { font-size: 15px; line-height: 20px; color: var(--muted); }
.sc .sec-note { font-size: 14px; line-height: 20px; color: var(--muted); }
.sc .grid { display: grid; gap: 8px; }

/* карточка */
.sc .card {
  display: grid; grid-template-columns: 160px minmax(0, 1fr); column-gap: 12px; row-gap: 12px; padding: 8px;
  background: var(--card); border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
}
.sc .card-photo {
  position: relative; display: block; width: 160px; height: 108px; align-self: start; border-radius: 8px; overflow: hidden; background: #fff;
}
.sc .card-photo img, .sc .dish-photo img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sc .is-nophoto { background: var(--raised); }
.sc .is-nophoto img { visibility: hidden; }
.sc .badge {
  position: absolute; left: 4px; top: 4px; padding: 2px 8px; border-radius: 6px; font-size: 12px; line-height: 16px;
  font-weight: 500; color: #fff; background: var(--ink);
}
.sc .badge--new { background: var(--accent); }
.sc .badge--sale { background: var(--hot); }
.sc .card-info { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding-top: 4px; }
.sc .card-name { font-size: 17px; line-height: 20px; font-weight: 500; }
.sc .card-desc {
  font-size: 13px; line-height: 18px; color: var(--ink2); white-space: pre-line;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.sc .spicy { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; line-height: 16px; font-weight: 500; color: var(--hot); }
/* Место под то, что появляется по нажатию, занято заранее: выбор порции не двигает карточку и окно
   («Острое» - только у блюд, где острая хоть одна порция; описание порций - по самому длинному) */
.sc .spicy.is-off { visibility: hidden; }
.sc .card:has(.pills) .card-desc { min-height: 54px; }

/* порции: «таблетка» как на прежнем сайте - строкой по ширине названий, ряд растягивается, не влезло - перенос;
   выбранная - коричневый текст на белом */
.sc .pills { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 2px; padding: 2px; background: var(--raised); border-radius: 16px; }
/* карточка тянется до высоты соседа (фото разной высоты) - лишнее место не растягивает таблетки, цена с кнопкой - внизу */
.sc .card .pills { align-self: start; align-content: flex-start; }
.sc .card .card-buy { align-self: end; }
.sc .pill {
  position: relative; display: flex; flex: 1 1 auto; align-items: center; justify-content: center; min-width: 0; min-height: 28px;
  padding: 4px 8px; border-radius: 14px; font-size: 14px; line-height: 16px; text-align: center; color: var(--ink2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sc .pill::after { content: ''; position: absolute; inset: -6px 0; }
.sc .pill[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 500; box-shadow: 0 0 0 1px var(--hair), 0 1px 2px rgba(0, 0, 0, .08); }
.sc .pill:disabled { opacity: .4; text-decoration: line-through; }
/* сколько этой порции в корзине - кружком внутри таблетки после названия (на краю его срезала таблетка) */
.sc .pill-q {
  flex: none; display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px;
  margin-left: 6px; padding: 0 4px; border-radius: 8px;
  background: var(--accent); color: #fff; font-size: 11px; line-height: 1; font-weight: 500; text-decoration: none;
}
.sc .pill-q[hidden] { display: none; }

.sc .card-buy { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 0 0 4px; }
.sc .price { font-size: 20px; line-height: 24px; font-weight: 500; white-space: nowrap; }
.sc .portion-one { margin-left: 8px; font-size: 13px; font-weight: 400; color: var(--muted); white-space: normal; }
.sc .btn-add {
  height: 44px; padding: 0 20px; border-radius: 22px; background: var(--green); color: var(--green-ink);
  font-weight: 500; font-size: 16px; white-space: nowrap;
}
.sc .stepper { display: flex; align-items: center; height: 44px; border-radius: 22px; background: var(--accent); color: #fff; font-weight: 500; font-size: 16px; }
.sc .stepper button { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: #fff; }
.sc .stepper-n { min-width: 24px; text-align: center; }

/* пустой результат */
.sc .empty { margin: 24px 0; padding: 32px 20px; background: var(--card); border-radius: 16px; text-align: center; }
.sc .empty svg { margin: 0 auto; color: var(--muted); }
.sc .empty-title { margin-top: 12px; font-size: 22px; line-height: 28px; font-weight: 500; }
.sc .empty-text { margin: 4px 0 20px; color: var(--ink2); }
.sc .empty-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.sc .btn-remove { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; background: var(--ink); color: #fff; font-weight: 500; }
.sc .btn-ghost { height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--hair); background: var(--card); font-weight: 500; white-space: nowrap; }
.sc .btn-ghost:disabled { opacity: .45; }

/* группы фильтра (лист и боковая панель) */
.sc .fg { margin-bottom: 24px; }
.sc .fg-title { margin-bottom: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink2); }
.sc .fg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sc .fg-note { margin-top: 12px; font-size: 12px; line-height: 16px; color: var(--muted); }
.sc .sheet-note { margin: 0 0 16px; }

/* ---------- лист фильтров (телефон) и окно блюда ---------- */
.sc .sc-shade { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(40, 24, 18, .5); cursor: default; }
.sc .sc-shade:active { transform: none; }
.sc .x { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--card); border: 1px solid var(--hair); }

.sc-side { display: none; }
.sc.is-sheet .sc-side { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; }
.sc .sheet {
  position: relative; display: flex; flex-direction: column; width: 100%; max-height: 88%; overflow: hidden;
  background: var(--page); border-radius: 20px 20px 0 0;
}
.sc .sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 8px 16px; }
.sc .sheet-title { font-size: 22px; line-height: 28px; font-weight: 500; }
.sc .side-title, .sc .side-sum { display: none; }
.sc .sheet-body { overflow-y: auto; padding: 8px 16px 0; overscroll-behavior: contain; }
.sc .sheet-foot { display: flex; gap: 8px; padding: 12px 16px 16px; background: var(--card); box-shadow: 0 -1px 0 var(--hair); }
.sc .btn-main {
  flex: 1; height: 48px; padding: 0 20px; border-radius: 24px; background: var(--accent); color: #fff;
  font-weight: 500; font-size: 16px; text-align: center; white-space: nowrap;
}
.sc .btn-main.is-none { background: var(--raised); color: var(--ink2); }
.sc .sheet-foot .btn-ghost { height: 48px; border-radius: 24px; padding: 0 20px; }

.sc-ov { position: fixed; inset: 0; z-index: 40; display: flex; align-items: flex-end; justify-content: center; }
.sc .dish {
  position: relative; display: flex; flex-direction: column; width: 100%; max-height: 94%; overflow: hidden;
  background: var(--card); border-radius: 20px 20px 0 0;
}
.sc .dish:focus { outline: none; }
.sc .dish > .x { position: absolute; top: 12px; right: 12px; z-index: 2; }
.sc .dish-scroll { overflow-y: auto; overscroll-behavior: contain; }
.sc .dish-photo { position: relative; aspect-ratio: 3 / 2; background: #fff; }
.sc .dish-photo .badge { left: 16px; top: 16px; }
.sc .dish-info { display: flex; flex-direction: column; gap: 20px; padding: 4px 16px 20px; }
.sc .dish-name { font-size: 24px; line-height: 28px; font-weight: 500; }
.sc .dish-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sc .dish-desc { font-size: 15px; line-height: 22px; color: var(--ink2); white-space: pre-line; }
.sc .dish-label { margin-bottom: 8px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--ink2); }
.sc .inc { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.sc .inc-item { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; line-height: 24px; color: var(--ink2); }
.sc .inc-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--raised); box-shadow: 0 0 0 1px var(--hair); }
.sc .dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 16px 20px; box-shadow: 0 -1px 0 var(--hair); }

/* ---------- от 720 px: две колонки карточек ---------- */
@media (min-width: 720px) {
  .sc .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sc .sheet { max-width: 560px; margin: 0 auto; }
  .sc-ov { align-items: center; }
  .sc .dish { width: 480px; max-height: 92%; border-radius: 20px; }
}

/* ---------- от 1100 px: десктоп макета ---------- */
@media (min-width: 1100px) {
  .sc-bar { display: grid; grid-template-columns: 280px minmax(0, 1fr); column-gap: 24px; align-items: start; padding: 12px 24px; max-width: 1600px; margin: 0 auto; }
  .sc-find { margin: 0; }
  .sc .btn-filters { display: none; }
  .sc-rubrics { flex-wrap: wrap; overflow: visible; padding: 0; gap: 8px 6px; }
  .sc .rub { height: 36px; padding: 0 12px; font-size: 14px; }
  .sc-search { height: 36px; }
  .sc-status { flex-wrap: nowrap; padding: 4px 24px; font-size: 15px; }
  .sc .st-chips { order: 0; width: auto; padding: 0; }
  .sc-body { display: grid; grid-template-columns: 280px minmax(0, 1fr); column-gap: 24px; align-items: start; padding: 0 24px; max-width: 1600px; margin: 0 auto; }

  .sc-side, .sc.is-sheet .sc-side {
    display: block; position: sticky; inset: auto; top: calc(var(--top, 104px) + 16px); z-index: 1;
    max-height: calc(100vh - var(--top, 104px) - 32px); overflow-y: auto; scrollbar-width: thin;
    margin-top: 24px; padding: 20px 16px 0; background: var(--card); border-radius: 16px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  }
  .sc-side .sc-shade, .sc-side .sheet-title, .sc-side .x, .sc-side .sheet-foot { display: none; }
  .sc .sheet { display: block; max-height: none; overflow: visible; background: none; border-radius: 0; }
  .sc .sheet-head { padding: 0; }
  .sc .sheet-body { overflow: visible; padding: 0; }
  .sc .side-title { display: block; font-size: 20px; line-height: 24px; font-weight: 500; }
  .sc .side-sum { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 14px; }
  .sc .side-sum[hidden] { display: none !important; }
  .sc .side-sum b { font-weight: 500; }
  .sc .side-sum .btn-ghost { height: 36px; }
  /* подписи под заголовком нет: отступ до кнопок держит сам заголовок, итог фильтра встаёт в него же */
  .sc .sheet-head { margin-bottom: 20px; }
  .sc .side-sum { margin: -8px 0 20px; }
  .sc-side .chip { height: 36px; background: var(--page); border-color: transparent; }
  .sc-side .chip[aria-pressed="true"] { background: var(--ink); }

  .sc-main { padding: 0 0 96px; }
  .sc .sec-title { font-size: 28px; line-height: 32px; }
  /* сколько влезает, но не больше пяти в ряд (решение владельца 12.11.2026) */
  .sc .grid { grid-template-columns: repeat(auto-fill, minmax(max(220px, calc((100% - 4 * 12px) / 5)), 1fr)); gap: 12px; }
  .sc .card { display: flex; flex-direction: column; gap: 12px; padding: 12px; container-type: inline-size; }
  .sc .card-photo { width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .sc .badge { left: 8px; top: 8px; }
  .sc .card-info { flex: 1; padding: 0 4px; }
  .sc .card-name { font-size: 18px; line-height: 24px; }
  .sc .card-desc { font-size: 14px; line-height: 20px; }
  .sc .card:has(.pills) .card-desc { min-height: 60px; }
  /* карточка - колонка: порции и цена с кнопкой во всю ширину (высоту таблеткам не даёт колонка, лишнее - в описании) */
  .sc .card .pills, .sc .card .card-buy { align-self: stretch; }
  .sc .empty { max-width: 560px; margin: 48px auto; }
  .sc .dish-info { padding: 4px 24px 24px; }
  .sc .dish-photo .badge { left: 16px; top: 16px; }
  .sc .dish-foot { padding: 12px 24px 20px 28px; }
}

/* Узкая плитка: цена и кнопка в одну строку - мельче */
@container (max-width: 240px) {
  .sc .card-buy { gap: 8px; }
  .sc .card-buy .price { font-size: 17px; }
  .sc .card-buy .btn-add { height: 36px; padding: 0 14px; font-size: 14px; }
  .sc .card-buy .stepper { height: 36px; font-size: 14px; }
  .sc .card-buy .stepper button { width: 32px; height: 36px; }
  .sc .card-buy .stepper-n { min-width: 16px; }
  .sc .pill { padding: 4px 6px; font-size: 13px; }
}

/* Подвал сайта на новой витрине - в тон её тёплому фону, чуть темнее (владелец 12.11.2026) */
.main-footer { background: #EAE3D8; }
