/* ---------- Fonts (self-hosted, subset: Latin + Cyrillic + typographic marks) ---------- */
@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-var.woff2") format("woff2");
  font-weight: 700 900;
  font-style: normal;
  font-display: swap;
}
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Fira Sans"; src: url("../fonts/fira-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* =====================================================================
   ЦВЕТА САЙТА — меняйте только здесь.
   Каждый цвет ниже используется по всему сайту (главная, заказ, 404).
   После смены проверьте, что текст хорошо читается на своём фоне.
   ===================================================================== */
:root {
  /* Схема «Угли и лаваш» (выбрана 2026-12-06): угли — красный, лаваш — пшеничный. */
  --c-bg: #1a1310;           /* фон страницы */
  --c-bg-deep: #120d0b;      /* шапка, первый экран, «Как заказать», подвал */
  --c-card: #2a1f1a;         /* закрытые разделы меню, поля формы */
  --c-card-2: #382a22;       /* открытый раздел, панель «Вы отправили?» */
  --c-panel: #211915;        /* список блюд внутри раздела */
  --c-text: #f5ece0;         /* основной текст */
  --c-muted: #cdbcaa;        /* подписи, «от 280 сом», описания */
  --c-placeholder: #93806f;  /* подсказка внутри пустого поля */
  --c-nav: #ecdcc4;          /* разделы на первом экране (Шашлыки, Пицца…) */
  --c-accent: #c0392b;       /* кнопки «+», «Корзина», «Отправить» */
  --c-accent-hover: #d04536; /* те же кнопки под курсором */
  --c-accent-edge: #7a2018;  /* тень-«ступенька» под главной кнопкой */
  --c-accent-text: #e8c48a;  /* цветной текст: название, разделы меню, цифры 1 2 3, стрелки */
  --c-on-accent: #fff4ea;    /* текст на красных кнопках */
  --c-scrollbar: #4a3a30;    /* полоса прокрутки */
  --c-error: #f2877a;        /* ошибки в форме (рамка поля и текст под ним) */
}

/* ---------- Tokens ---------- */
:root {
  --ink: #1d1b1a;          /* neutral charcoal (was brown #1b1410) */
  --paper: #ebeae7;        /* stone grey, chosen 2026-12-05 instead of beige */
  --paper-2: #dcdad6;
  --red: #c8173b;          /* accent on light grounds */
  --red-dark: #f0647c;     /* accent on the charcoal ground */
  --wine: #8e1c2e;         /* muted logo red for the many "+" buttons */
  --wine-hover: #73152a;
  --muted: #57514b;        /* secondary text on paper, ~7:1 */
  --muted-dark: #b5b0a9;   /* secondary text on charcoal */
  --line: rgb(27 20 16 / .34);
  --line-dark: color-mix(in srgb, var(--c-text) 16%, transparent);
  --line-strong: rgb(27 20 16 / .62);  /* control borders, >= 3:1 on paper */

  --display: "Bitter", Georgia, "Times New Roman", serif;
  --text: "Fira Sans", "Segoe UI", Roboto, Arial, sans-serif;

  --wrap: 1100px;
  --gut: clamp(1rem, 4.5vw, 2rem);
  --top-h: 56px;
  --sticky-h: 112px;
  --tap: 44px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--sticky-h);
  scrollbar-color: var(--muted) var(--paper-2);
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.5 var(--text);
  font-kerning: normal;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
button { font: inherit; color: inherit; }
::selection { background: var(--red); color: var(--paper); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.top :focus-visible, .hero :focus-visible, .how :focus-visible, .foot :focus-visible { outline-color: var(--red-dark); }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gut)); margin-inline: auto; padding-inline: var(--gut); }

.skip {
  position: absolute; left: .5rem; top: -4rem; z-index: 50;
  background: var(--paper); color: var(--ink); padding: .75rem 1rem; border-radius: 6px;
}
.skip:focus { top: .5rem; }

.price, .qty__n, .hero__from, .cartbar__sum { font-variant-numeric: tabular-nums lining-nums; }

/* ---------- Top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--ink); color: var(--paper);
  border-bottom: 1px solid var(--line-dark);
}
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 56px; }
.top__brand {
  font: 800 1.1875rem/1.1 var(--display);
  color: var(--paper); text-decoration: none; letter-spacing: -.005em;
  padding-block: .5rem;
}
.top__city { color: var(--muted-dark); font-size: .9375rem; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); color: var(--paper); padding: clamp(1.75rem, 6vw, 4rem) 0 clamp(2rem, 6vw, 4.5rem); }
.hero__title {
  font: 800 clamp(1.75rem, 8vw, 3.5rem)/1.04 var(--display);
  color: var(--red-dark); letter-spacing: -.015em;
}
.hero__lead { margin-top: .875rem; max-width: 40ch; color: var(--muted-dark); font-size: clamp(1rem, 2.4vw, 1.1875rem); }
.hero__list { margin-top: clamp(1.75rem, 5vw, 3rem); border-top: 1px solid var(--line-dark); }
.hero__row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0 .75rem;
  padding: clamp(.5rem, 1.6vw, .875rem) 0;
  border-bottom: 1px solid var(--line-dark);
  text-decoration: none;
}
.hero__word {
  font: 900 clamp(1.75rem, 10.6vw, 5.75rem)/1 var(--display);
  text-transform: uppercase; letter-spacing: -.025em;
  transition: color .18s ease-out;
}
.hero__from { flex: none; font: 500 clamp(.9375rem, 2.3vw, 1.25rem)/1.2 var(--text); color: var(--muted-dark); white-space: nowrap; }
.hero__row:hover .hero__word { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: .12em; }
.hero__all {
  display: inline-flex; align-items: baseline; gap: .5rem; flex-wrap: wrap;
  margin-top: 1.25rem; min-height: var(--tap); padding-block: .625rem;
  font: 600 1.0625rem/1.3 var(--text); color: var(--paper);
  text-decoration: underline; text-decoration-color: var(--muted-dark); text-decoration-thickness: 2px;
}
.hero__all-n::before { content: "— "; }
.hero__all-n { color: var(--muted-dark); font-weight: 400; }

/* ---------- Notices ---------- */
.notices { display: grid; gap: .5rem; padding-block: 1rem 0; }
.notice { padding: .875rem 1rem; border-radius: 8px; background: var(--paper-2); font-weight: 500; }
.notice--closed { background: var(--red); color: var(--paper); font-weight: 600; }
.notice--warn { background: var(--paper); border: 2px solid var(--ink); font-weight: 600; }
.notice--info { background: var(--paper-2); border-left: 4px solid var(--ink); border-radius: 4px 8px 8px 4px; margin-bottom: 1rem; }

/* ---------- Menu: accordion of identical rows ---------- */
.menu { padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(2.5rem, 6vw, 4.5rem); outline: none; }
.menu__title, .menu__list { max-width: 760px; }
.menu__title { font: 900 clamp(1.75rem, 6vw, 2.25rem)/1.1 var(--display); margin-bottom: 1rem; }
.menu__status { color: var(--muted); padding-block: 2rem; }
.menu__list { display: grid; gap: .5rem; }

.sec { background: var(--paper-2); border-radius: 14px; scroll-margin-top: .5rem; /* header offset comes from html scroll-padding-top */ }
/* Keyboard focus and scrolled-to fields must not hide under the fixed cart bar. */
html.has-cart { scroll-padding-bottom: 96px; }
.sec__sum {
  display: grid; grid-template-columns: 1fr auto auto; grid-template-areas: "t c v" "m c v";
  align-items: center; column-gap: .75rem; row-gap: .125rem;
  min-height: 68px; padding: .75rem 1rem; border-radius: 14px; cursor: pointer; list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.sec__sum::-webkit-details-marker { display: none; }
.sec__sum::marker { content: ""; }
.sec__title { grid-area: t; font: 800 1.375rem/1.2 var(--display); letter-spacing: -.005em; }
.sec__meta { grid-area: m; color: var(--muted); font-size: .9375rem; }
.sec__count {
  grid-area: c; padding: .25rem .625rem; border-radius: 999px;
  background: var(--ink); color: var(--paper); font-size: .8125rem; font-weight: 600; white-space: nowrap;
}
.sec__chev {
  grid-area: v; position: relative; width: 36px; height: 36px; border-radius: 50%;
  border: 2px solid var(--ink); transition: background-color .15s ease-out, border-color .15s ease-out;
}
.sec__chev::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: translate(-50%, -70%) rotate(45deg); transition: transform .18s ease-out;
}
.sec__sum:hover .sec__chev { background: rgb(27 20 16 / .08); }
/* Open section: dark title bar, dishes on a lighter panel below. */
.sec[open] > .sec__sum { background: var(--ink); color: var(--paper); border-radius: 14px 14px 0 0; }
.sec[open] > .sec__sum .sec__meta { color: var(--muted-dark); }
.sec[open] > .sec__sum .sec__count { background: var(--paper); color: var(--ink); }
.sec[open] > .sec__sum .sec__chev { border-color: color-mix(in srgb, var(--c-text) 55.00000000000001%, transparent); }
.sec[open] > .sec__sum .sec__chev::before { border-color: var(--paper); transform: translate(-50%, -30%) rotate(-135deg); }
.sec[open] > .sec__sum:hover .sec__chev { background: color-mix(in srgb, var(--c-text) 10%, transparent); }
.sec__sum:focus-visible { outline-offset: 3px; }
.sec__body { padding: .5rem 1rem 1rem; background: var(--paper); border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 14px 14px; }
.sec__note { color: var(--muted); font-size: .9375rem; }

.dish { display: flex; align-items: flex-start; gap: .75rem; padding: .75rem 0; }
.dish + .dish { border-top: 1px solid rgb(27 20 16 / .1); }
.dish__main { flex: 1; min-width: 0; padding-top: .5625rem; }
.dish__line { display: flex; align-items: baseline; gap: .375rem; }
.dish__name { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.dish__unit { flex: none; color: var(--muted); font-size: .875rem; }
.leader { flex: 1; min-width: 1.25rem; border-bottom: 2px dotted var(--line); transform: translateY(-.28em); }
.price { flex: none; font-weight: 600; white-space: nowrap; }
.dish__desc { margin-top: .25rem; color: var(--muted); font-size: .9375rem; line-height: 1.45; max-width: 52ch; }
.dish__soldout { margin-top: .25rem; color: var(--muted); font-weight: 600; font-size: .875rem; }
.dish.is-soldout .dish__name { font-weight: 500; }
.dish.is-soldout .dish__name, .dish.is-soldout .price, .dish.is-soldout .var__label { color: var(--muted); }
.dish.is-soldout .price { text-decoration: line-through; text-decoration-thickness: 1px; }

.vars { margin-top: .375rem; }
.var { display: flex; align-items: center; gap: .5rem; min-height: calc(var(--tap) + .25rem); }
.var__label { flex: none; min-width: 3.5rem; font-weight: 500; color: var(--muted); }
.var .leader { transform: none; }

/* ---------- Add / quantity control (ink, round; red is kept for the cart bar and the send button) ---------- */
.act { flex: none; display: flex; justify-content: flex-end; min-width: var(--tap); }
.dish > .act { margin-top: 0; }
.add, .qty__btn {
  position: relative; display: inline-grid; place-items: center;
  width: var(--tap); height: var(--tap); padding: 0; border-radius: 50%; cursor: pointer;
  border: 2px solid var(--wine); background: var(--wine); color: var(--paper);
  transition: transform .12s ease-out, background-color .15s ease-out, color .15s ease-out;
}
.add:hover { background: var(--wine-hover); border-color: var(--wine-hover); }
.add:active, .qty__btn:active { transform: scale(.92); }
.qty__btn--plus:hover { background: var(--wine-hover); border-color: var(--wine-hover); }
.qty__btn--minus { background: transparent; color: var(--wine); }
.qty__btn--minus:hover { background: rgb(142 28 46 / .08); }
/* Drawn plus / minus marks (no glyphs). */
.add::before, .add::after, .qty__btn::before, .qty__btn--plus::after {
  content: ""; position: absolute; width: 16px; height: 2.5px; border-radius: 2px; background: currentColor;
}
.add::after, .qty__btn--plus::after { transform: rotate(90deg); }
.qty { display: inline-flex; align-items: center; gap: .125rem; }
.qty__n { min-width: 2.25ch; text-align: center; font-weight: 700; font-size: 1.0625rem; }
.add:disabled, .qty__btn:disabled { cursor: not-allowed; background: transparent; border-color: var(--line); color: var(--muted); transform: none; }
.orders-off .add { display: none; }

/* ---------- Bar (view only, inside the accordion) ---------- */
.bar__group { margin-top: 1.25rem; }
.bar__title { font: 800 1.125rem/1.2 var(--display); padding-bottom: .375rem; border-bottom: 1px solid var(--line); }
#bar .dish { padding: .5rem 0; }
#bar .dish__main { padding-top: 0; }
#bar .dish__name { font-weight: 500; font-size: 1rem; }

/* ---------- How to order ---------- */
.how { background: var(--ink); color: var(--paper); padding: clamp(2.75rem, 7vw, 5rem) 0; }
.how__title { font: 900 clamp(1.75rem, 6vw, 2.5rem)/1.1 var(--display); }
.how__steps { display: grid; gap: 2rem; margin-top: 2rem; counter-reset: none; }
.how__step { display: grid; grid-template-columns: 3.25rem 1fr; column-gap: 1rem; align-content: start; }
.how__n { grid-row: span 2; font: 900 3.5rem/.9 var(--display); color: var(--muted-dark); }
.how__step h3 { font: 600 1.1875rem/1.3 var(--text); }
.how__step p { margin-top: .375rem; color: var(--muted-dark); max-width: 42ch; }

/* ---------- Footer ---------- */
.foot { background: var(--ink); color: var(--paper); border-top: 1px solid var(--line-dark); padding: 2rem 0 calc(2rem + env(safe-area-inset-bottom)); }
.foot__in { display: grid; gap: 1rem; }
.foot__name { font: 800 1.25rem/1.2 var(--display); color: var(--paper); }
.foot__list { display: grid; gap: .5rem; }
.foot__list li { display: flex; flex-wrap: wrap; gap: .25rem .75rem; }
.foot__k { color: var(--muted-dark); min-width: 7.5rem; }
.foot__list a { min-height: var(--tap); display: inline-flex; align-items: center; }
.foot__up { justify-self: start; min-height: var(--tap); display: inline-flex; align-items: center; color: var(--muted-dark); }

/* ---------- Cart bar ---------- */
.cartbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: .5rem var(--gut) calc(.5rem + env(safe-area-inset-bottom));
  pointer-events: none;
}
.cartbar__link {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  max-width: 560px; margin-inline: auto; min-height: 56px; padding: 0 1.25rem;
  background: var(--red); color: var(--paper); border-radius: 12px; text-decoration: none;
  font-weight: 600; font-size: 1.0625rem;
  box-shadow: 0 6px 20px rgb(27 20 16 / .28);
}
.cartbar__link:hover { background: #a9122f; }
.cartbar__link:focus-visible { outline-color: var(--ink); }
.has-cart body { padding-bottom: 84px; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 88px; z-index: 45; transform: translateX(-50%);
  width: min(92vw, 520px); padding: .875rem 1rem; border-radius: 10px;
  background: var(--ink); color: var(--paper); box-shadow: 0 6px 20px rgb(27 20 16 / .3);
}


/* ---------- Shared bits ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Buttons look like pressed stamps: a solid bottom edge that sinks on press. */
.btn {
  --edge: #8c0f28;
  display: inline-flex; align-items: center; justify-content: center; gap: .625rem;
  min-height: 54px; padding: 0 1.5rem; border-radius: 999px; cursor: pointer;
  font: 600 1.0625rem/1.2 var(--text); text-decoration: none; text-align: center;
  border: 2px solid transparent; box-shadow: 0 4px 0 var(--edge);
  transition: background-color .15s ease-out, transform .1s ease-out, box-shadow .1s ease-out;
}
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--edge); }
.btn--main { background: var(--red); color: var(--paper); border-color: var(--red); }
.btn--main:hover { background: #b3133a; border-color: #b3133a; }
.btn--main:disabled { --edge: rgb(27 20 16 / .2); background: var(--paper-2); border-color: var(--line); color: var(--muted); cursor: not-allowed; transform: none; }
.btn--ghost { --edge: var(--ink); background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--paper-2); }
.btn--wide { width: 100%; min-height: 60px; font-size: 1.125rem; }
.btn__arrow { flex: none; transition: transform .15s ease-out; }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------- Order page ---------- */
.top__back {
  display: inline-flex; align-items: center; gap: .25rem; min-height: var(--tap); padding-right: .5rem;
  color: var(--paper); font-weight: 600; text-decoration: none;
}
.top__back:hover { text-decoration: underline; }
.top__brand--small { font-size: 1rem; }
.order { max-width: calc(620px + 2 * var(--gut)); padding-top: 1.75rem; padding-bottom: 3rem; }
.page__title { font: 900 clamp(1.875rem, 7vw, 2.5rem)/1.1 var(--display); margin-bottom: 1.25rem; outline: none; }
.order .notices { padding: 0 0 1rem; }

.lines { margin-bottom: 2rem; }
.line {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "main sum" "qty qty"; gap: .5rem 1rem;
  padding: 1rem 0; border-bottom: 1px solid rgb(27 20 16 / .14);
}
.line:first-child { border-top: 2px solid var(--ink); }
.line__main { grid-area: main; min-width: 0; }
.line__name { font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }
.line__var { font-weight: 500; color: var(--muted); }
.line__calc { color: var(--muted); font-size: .9375rem; margin-top: .125rem; }
.line__sum { grid-area: sum; align-self: start; font-size: 1.0625rem; }
.line .qty { grid-area: qty; }
@media (min-width: 480px) {
  .line { grid-template-columns: 1fr auto 6.5rem; grid-template-areas: "main qty sum"; align-items: center; }
  .line__sum { align-self: center; text-align: right; }
}
.total { padding-top: 1rem; }
.total__row { display: flex; justify-content: space-between; align-items: baseline; font: 800 1.5rem/1.2 var(--display); }
.total__row .price { font-family: var(--text); font-weight: 700; }
.total__note { margin-top: .375rem; color: var(--muted); font-size: .9375rem; }
.total .notice { margin-top: .75rem; }

.form { display: grid; gap: 1.25rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.form__label { display: block; font-weight: 600; margin-bottom: .375rem; }
.form__opt { font-weight: 400; color: var(--muted); }
.seg { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg legend { padding: 0; }
.cart-note { margin-bottom: 1rem; }
.seg__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 15px; background: var(--paper-2); border: 2px solid var(--ink); }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
/* Delivery / pickup: one segmented switch, the chosen half is filled. */
.seg__opt span {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .125rem;
  min-height: 60px; padding: .5rem .75rem; text-align: center; border-radius: 11px; color: var(--ink);
  transition: background-color .15s ease-out, color .15s ease-out;
}
.seg__opt b { font-weight: 700; font-size: 1.0625rem; }
.seg__opt small { color: var(--muted); font-size: .8125rem; line-height: 1.25; }
.seg__opt input:checked + span { background: var(--ink); color: var(--paper); }
.seg__opt input:checked + span small { color: var(--muted-dark); }
.seg__opt:hover input:not(:checked) + span { background: rgb(27 20 16 / .06); }
.seg__opt input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.input {
  display: block; width: 100%; min-height: 54px; padding: .8125rem 1rem;
  border: 2px solid transparent; border-bottom-color: var(--line-strong); border-radius: 12px 12px 6px 6px;
  background: var(--paper-2); color: var(--ink);
  font: 400 1.0625rem/1.4 var(--text); /* >=16px: no iOS zoom */
  transition: border-color .15s ease-out, background-color .15s ease-out;
}
textarea.input { resize: vertical; min-height: 4.75rem; }
.input::placeholder { color: #6b655f; }
.input:hover { border-bottom-color: var(--ink); }
.input:focus { outline: none; background: var(--paper); border-color: var(--ink); border-radius: 12px; }
.input[aria-invalid="true"] { border-color: var(--red); background: var(--paper); }
.field__hint { margin-top: .375rem; color: var(--muted); font-size: .9375rem; }
.field__err { margin-top: .375rem; color: var(--red); font-weight: 600; font-size: .9375rem; }
.check { position: relative; display: flex; gap: .75rem; align-items: center; min-height: var(--tap); cursor: pointer; color: var(--muted); font-size: .9375rem; }
.check input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.check__box { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border: 2px solid var(--line-strong); border-radius: 8px; background: var(--paper); color: var(--paper); transition: background-color .15s ease-out; }
.check__box svg { display: block; opacity: 0; transition: opacity .12s ease-out; }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check__box svg { opacity: 1; }
.check input:focus-visible + .check__box { outline: 3px solid var(--red); outline-offset: 2px; }
.form__after { margin-top: -.5rem; color: var(--muted); font-size: .9375rem; text-align: center; }

.pending {
  margin-bottom: 1.75rem; padding: 1.25rem; border-radius: 14px;
  background: var(--ink); color: var(--paper);
}
.pending__title { font: 800 1.375rem/1.2 var(--display); color: var(--paper); }
.pending__q { margin-top: .375rem; font-size: 1.125rem; font-weight: 600; }
.pending__hint { margin-top: .5rem; color: var(--muted-dark); font-size: .9375rem; }
.pending__actions { display: grid; gap: .875rem; margin-top: 1.25rem; }
.pending .btn--ghost { --edge: #000; background: transparent; color: var(--paper); border-color: color-mix(in srgb, var(--c-text) 50%, transparent); }
.pending .btn--ghost:hover { background: color-mix(in srgb, var(--c-text) 8%, transparent); }
.pending .btn--main { --edge: #6e0b1f; }
.pending :focus-visible { outline-color: var(--red-dark); }
@media (min-width: 560px) { .pending__actions { grid-template-columns: 1fr 1fr; } .pending__actions .btn--main { grid-column: 1 / -1; } }

.empty, .thanks { padding: 1rem 0 2rem; }
.empty__text { color: var(--muted); margin-bottom: 1.5rem; font-size: 1.0625rem; }
.thanks__no { font-weight: 700; font-size: 1.125rem; margin: -.5rem 0 1rem; }
.thanks__steps { list-style: decimal; padding-left: 1.25rem; display: grid; gap: .5rem; margin-bottom: 1.75rem; font-size: 1.0625rem; }

/* 404 */
.nf { min-height: calc(100vh - 56px); }


/* ---------- Photos ---------- */
.hero__top { display: grid; gap: 1.25rem; }
.hero__photo { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 6px; background: #2a201a; }
.dish.has-img { gap: .875rem; }
.dish__img { flex: none; width: 64px; height: 64px; margin-top: .25rem; border-radius: 6px; object-fit: cover; background: var(--paper-2); }
.foot__note { color: var(--muted-dark); font-size: .875rem; }
.foot__note a { color: var(--paper); }
@media (min-width: 760px) {
  .hero__top { grid-template-columns: 1fr 460px; align-items: center; gap: 3rem; }
  .hero__photo { aspect-ratio: 3 / 2; }
  .dish__img { width: 72px; height: 72px; }
}

/* ---------- Tablet / desktop ---------- */
@media (min-width: 760px) {
  .sec__sum { min-height: 76px; }
  .sec__title { font-size: 1.5rem; }
  .how__steps { grid-template-columns: repeat(3, 1fr); gap: 2.5rem; }
  .how__step { grid-template-columns: 1fr; }
  .how__n { grid-row: auto; font-size: 4.5rem; margin-bottom: .75rem; }
  .foot__in { grid-template-columns: 1fr 2fr auto; align-items: start; }
  .foot__note { grid-column: 1 / -1; grid-row: 2; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Credits page */
.credits__list { display: grid; gap: .875rem; margin-bottom: 1.75rem; line-height: 1.5; }
.credits a { color: var(--red); }

/* In-cart rows */
/* The counter stays under the finger; the price drops below the name when space is short. */
.dish.in-cart .dish__line { flex-wrap: wrap; row-gap: .125rem; }
.dish.in-cart .dish__name { flex: 1 1 100%; }
.dish.in-cart .leader { display: none; }

/* Pending order: "edit" link */
.pending__edit {
  display: block; margin: .75rem auto 0; min-height: var(--tap); padding: 0 .5rem;
  background: none; border: 0; color: var(--muted-dark); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; font-size: .9375rem;
}
.pending__edit:hover { color: var(--paper); }
#send-err a { color: inherit; }

/* Mobile hero: lower photo so the category rows stay on the first screen */
@media (max-width: 759px) {
  .hero__photo { aspect-ratio: 5 / 2; }
  .hero__lead { margin-top: .5rem; }
}
/* Order page: header aligned with the narrow content column */
.page-order .top .wrap { max-width: calc(620px + 2 * var(--gut)); }

/* Narrow phones (320–359px): let accordion cards shrink to the screen, tighter inner padding. */
.sec { min-width: 0; }
.sec__title { min-width: 0; }
@media (max-width: 359px) {
  .sec__sum { padding-inline: .75rem; column-gap: .5rem; }
  .sec__body { padding-inline: .625rem; }
  .qty { gap: 0; }
}
/* Variant rows (0.5 л / 1 л): the counter drops to its own line when the row is too narrow. */
.var { flex-wrap: wrap; row-gap: .25rem; }
.var .act { margin-left: auto; }
/* Large system font / narrow screens: price wraps under a long name instead of overflowing. */
.dish__line { flex-wrap: wrap; }
.dish__name { min-width: 0; overflow-wrap: break-word; }
/* Delivery / pickup cards stack when two don't fit side by side. */
.seg__opts { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); }
.top__brand { min-width: 0; }
.cartbar__link { flex-wrap: wrap; column-gap: .75rem; }

/* =====================================================================
   THEME: dark grill (chosen 2026-12-05). Charcoal ground, ember-orange
   accent instead of red. Placed last so it overrides the light rules.
   ===================================================================== */
:root {
  /* Old names kept for the rules above; all of them point to the palette at the top. */
  --bg: var(--c-bg);
  --bg-deep: var(--c-bg-deep);
  --card: var(--c-card);
  --card-2: var(--c-card-2);
  --text-l: var(--c-text);
  --ember: var(--c-accent);
  --ember-l: var(--c-accent-text);
  --muted: var(--c-muted);
  --muted-dark: var(--c-muted);
  --ink: var(--c-bg-deep);
  --paper: var(--c-text);
  --paper-2: var(--c-card);
  --line-dark: color-mix(in srgb, var(--c-text) 16%, transparent);
  --line: color-mix(in srgb, var(--c-text) 20%, transparent);
  --line-strong: color-mix(in srgb, var(--c-text) 50%, transparent);
  --red: var(--ember); --red-dark: var(--ember-l); --wine: var(--ember); --wine-hover: var(--c-accent-hover);
  scrollbar-color: var(--c-scrollbar) var(--bg);
}
body { background: var(--bg); color: var(--text-l); }
::selection { background: var(--ember); color: var(--c-on-accent); }
:focus-visible, .top :focus-visible, .hero :focus-visible, .how :focus-visible, .foot :focus-visible, .pending :focus-visible { outline-color: var(--ember-l); }
.top, .hero, .how, .foot { background: var(--bg-deep); }
.top { color: var(--text-l); }
.hero__title, .hero__from { color: var(--ember-l); }
.hero__all { color: var(--text-l); }
.skip { background: var(--text-l); color: var(--bg); }

/* Notices */
.notice { background: var(--card); }
.notice--closed { background: var(--ember); color: var(--c-on-accent); }
.notice--warn { background: var(--bg); border-color: var(--ember-l); }
.notice--info { background: var(--card); border-left-color: var(--ember-l); }

/* Menu accordion */
.menu__title { color: var(--text-l); }
.sec { background: var(--card); }
.sec[open] > .sec__sum { background: var(--card-2); color: var(--text-l); }
.sec__body { background: var(--c-panel); border-color: var(--card-2); }
.sec__chev { border-color: var(--text-l); }
.sec__chev::before { border-color: var(--text-l); }
.sec__sum:hover .sec__chev { background: color-mix(in srgb, var(--c-text) 8%, transparent); }
.sec__count, .sec[open] > .sec__sum .sec__count { background: var(--ember); color: var(--c-on-accent); }
.dish + .dish { border-top-color: color-mix(in srgb, var(--c-text) 8%, transparent); }
.add, .qty__btn--plus { color: var(--c-on-accent); }
.qty__btn--minus { color: var(--ember-l); border-color: var(--ember-l); }
.qty__btn--minus:hover { background: color-mix(in srgb, var(--c-accent-text) 12%, transparent); }
.add:disabled, .qty__btn:disabled { color: var(--muted); border-color: var(--line); background: transparent; }

/* Cart bar, toast */
.cartbar__link { background: var(--ember); color: var(--c-on-accent); box-shadow: 0 6px 20px rgb(0 0 0 / .5); }
.cartbar__link:hover { background: var(--wine-hover); }
.cartbar__link:focus-visible { outline-color: var(--text-l); }
.toast { background: var(--card-2); color: var(--text-l); border: 1px solid var(--line); }

/* Buttons */
.btn--main { background: var(--ember); border-color: var(--ember); color: var(--c-on-accent); --edge: var(--c-accent-edge); }
.btn--main:hover { background: var(--wine-hover); border-color: var(--wine-hover); }
.btn--main:disabled { --edge: #000; background: var(--card); border-color: var(--line); color: var(--muted); }
.btn--ghost, .pending .btn--ghost { --edge: #000; background: transparent; color: var(--text-l); border-color: var(--line-strong); }
.btn--ghost:hover, .pending .btn--ghost:hover { background: color-mix(in srgb, var(--c-text) 8%, transparent); }
.pending .btn--main { --edge: var(--c-accent-edge); }

/* Order page */
.line { border-bottom-color: color-mix(in srgb, var(--c-text) 12%, transparent); }
.line:first-child, .form { border-top-color: var(--text-l); }
.input { background: var(--card); color: var(--text-l); border-bottom-color: var(--line-strong); }
.input:hover { border-bottom-color: var(--text-l); }
.input:focus { background: var(--bg); border-color: var(--text-l); }
.input::placeholder { color: var(--c-placeholder); }
.input[aria-invalid="true"] { border-color: var(--ember-l); background: var(--bg); }
.field__err, #send-err a { color: var(--ember-l); }
.seg__opts { background: var(--card); border-color: var(--text-l); }
.seg__opt span { color: var(--text-l); }
.seg__opt input:checked + span { background: var(--ember); color: var(--c-on-accent); }
.seg__opt input:checked + span small { color: var(--c-on-accent); }
.seg__opt:hover input:not(:checked) + span { background: color-mix(in srgb, var(--c-text) 6%, transparent); }
.check__box { background: var(--card); color: var(--c-on-accent); }
.check input:checked + .check__box { background: var(--ember); border-color: var(--ember); }
.pending { background: var(--card-2); }
.pending__title { color: var(--text-l); }
.pending__edit:hover { color: var(--text-l); }
.top__back { color: var(--text-l); }

/* Round 4 (2026-12-05): brighter and larger menu, orange section names and step numbers. */

.hero__title { color: var(--text-l); }
.hero__word { color: var(--ember-l); }
.hero__row:hover .hero__word { color: var(--ember-l); }
.hero__from { color: var(--muted); }
.how__n { color: var(--ember-l); }
.menu__title, .menu__list { max-width: 920px; }
.menu__title { font-size: clamp(2rem, 7vw, 2.75rem); }
.sec__title, .sec[open] > .sec__sum .sec__title { color: var(--ember-l); font-size: 1.625rem; }
.sec__sum { min-height: 78px; }
.sec__meta { font-size: 1rem; }
.sec__body { padding-inline: .875rem; }
.dish { padding: .875rem 0; }
.dish__name { font-size: 1.1875rem; }
.dish .price, .var .price { font-size: 1.125rem; }
.dish__desc { font-size: 1rem; }
.sec__note { font-size: 1rem; }
.leader { border-bottom-color: color-mix(in srgb, var(--c-text) 30%, transparent); }
@media (min-width: 760px) {
  .sec__sum { min-height: 88px; padding-inline: 1.5rem; }
  .sec__title, .sec[open] > .sec__sum .sec__title { font-size: 2rem; }
  .sec__body { padding: 1rem 1.5rem 1.5rem; }
  .dish__name { font-size: 1.25rem; }
}
/* Long names wrap inside their own box; the price stays on the right (in-cart rows keep their own rule). */
.dish:not(.in-cart) .dish__line { flex-wrap: nowrap; }
.dish:not(.in-cart) .dish__name { flex: 0 1 auto; }
.leader { min-width: .75rem; }
/* Footer contacts: label above value on phones, same for every row. */
@media (max-width: 759px) {
  .foot__list li { flex-direction: column; gap: 0; }
  .foot__list a { min-height: 0; padding-block: .375rem; }
}

/* Round 5 (2026-12-06): name as a "sign" (big lettering in a thin double frame),
   smaller section links on the first screen. Colours come from the palette at the top. */
.top__brand { color: var(--c-accent-text); font-weight: 900; }
.hero__title {
  display: inline-block; margin: 6px; padding: .3em .42em .36em;
  font-weight: 900; font-size: clamp(2.6rem, 11.5vw, 5.75rem); line-height: .95; letter-spacing: -.02em;
  color: var(--c-accent-text);
  border: 2px solid color-mix(in srgb, var(--c-text) 60%, transparent);
  outline: 1px solid color-mix(in srgb, var(--c-text) 35%, transparent); outline-offset: 5px;
  border-radius: 3px;
}
.hero__list { margin-top: 2rem; }
.hero__row { padding-block: .6rem; align-items: center; }
.hero__word { font: 600 1.125rem/1.25 var(--text); color: var(--c-nav); letter-spacing: 0; text-transform: none; }
.hero__word::after { content: "→"; margin-left: .45em; color: var(--c-accent-text); }
.hero__row:hover .hero__word { color: var(--c-accent-text); text-decoration: none; }
.hero__from { font-size: .9375rem; }
@media (min-width: 900px) {
  .hero__word { font-size: 1.25rem; }
  .hero__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 3rem; }
}

/* Owner's announcement (admin «Объявление»): red like the main buttons, larger, so it is noticed. */
.notice--banner { background: var(--c-accent); color: var(--c-on-accent); font: 700 clamp(1.0625rem, 2.6vw, 1.25rem)/1.35 var(--text); padding: 1rem 1.25rem; border-radius: 12px; }

/* =====================================================================
   Round 6 (2026-12-06): fixes after the 4 reviews.
   ===================================================================== */
:root { --wrap: 920px; }                       /* first screen, menu and cart bar share one width */
.top__brand { font-weight: 800; }
.nowrap { white-space: nowrap; }

/* Name: sized by the screen only, so a large system font or a 320px phone never pushes it off-screen. */
.hero__title { display: block; font-size: min(10.5vw, 4.75rem); max-width: calc(100% - 12px); }
.hero .notices { padding-top: 0; margin-bottom: 1.25rem; }

/* Facts under the name */
.hero__facts { display: grid; gap: .375rem; margin-top: 1.25rem; color: var(--c-muted); font-size: 1rem; line-height: 1.4; }
@media (min-width: 760px) {
  .hero__facts { display: flex; flex-wrap: wrap; gap: .25rem 0; }
  .hero__facts li + li::before { content: "·"; margin-inline: .6em; color: var(--c-placeholder); }
}
.hero__facts a { color: var(--c-text); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-text) 40%, transparent); text-underline-offset: .2em; }
.hero__facts a:hover { text-decoration-color: currentColor; }
.facts__open { color: var(--c-text); font-weight: 600; }
.hero__all-n { display: none; }

/* Announcement strip that stays under the header */
.bannerbar { position: fixed; top: var(--top-h); left: 0; right: 0; z-index: 29; background: var(--c-accent); color: var(--c-on-accent); box-shadow: 0 4px 14px rgb(0 0 0 / .35); }
.bannerbar__in { display: flex; align-items: center; gap: .5rem; }
.bannerbar__text { flex: 1; min-width: 0; min-height: 44px; padding: 0; background: none; border: 0; color: inherit; font: 700 1rem/1.3 var(--text); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer; }
.bannerbar__x { position: relative; flex: none; width: 44px; height: 44px; margin-right: -.625rem; background: none; border: 0; color: inherit; cursor: pointer; border-radius: 50%; }
.bannerbar__x::before, .bannerbar__x::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2.5px; border-radius: 2px; background: currentColor; transform: translate(-50%, -50%) rotate(45deg); }
.bannerbar__x::after { transform: translate(-50%, -50%) rotate(-45deg); }
.bannerbar__x:hover { background: rgb(0 0 0 / .15); }
.bannerbar :focus-visible { outline: 3px solid var(--c-on-accent); outline-offset: -3px; }

/* Long words in owner texts and dish names never widen the page */
.notice { overflow-wrap: anywhere; }
.line__name { min-width: 0; overflow-wrap: anywhere; }

/* Errors look like errors (not like the wheat accent of titles) */
.input[aria-invalid="true"] { border-color: var(--c-error); background: color-mix(in srgb, var(--c-error) 8%, var(--c-bg)); }
.field__err, #send-err a { color: var(--c-error); }
.field__err::before { content: ""; display: inline-block; width: .5em; height: .5em; margin-right: .45em; border-radius: 50%; background: currentColor; vertical-align: .1em; }
#send-err a::before { content: none; }

/* Dish rows: when the list is narrow for its font (large system font), the price goes under the name
   instead of squeezing the name letter by letter. */
.dishes { container-type: inline-size; }
@container (max-width: 16rem) {
  .dish:not(.in-cart) .dish__line { flex-wrap: wrap; }
  .dish:not(.in-cart) .dish__name { flex: 1 1 100%; overflow-wrap: normal; }
  .dish:not(.in-cart) .leader { display: none; }
}
/* Dish already in the cart: price drops under the name only on phones */
@media (min-width: 480px) {
  .dish.in-cart .dish__line { flex-wrap: nowrap; }
  .dish.in-cart .dish__name { flex: 0 1 auto; }
  .dish.in-cart .leader { display: block; }
}
.qty { gap: .375rem; }

/* Cart bar: same width as the content; at a large font the sum wraps instead of leaving the screen */
.cartbar__link { max-width: var(--wrap); }
.cartbar__link > span { min-width: 0; }

/* «Как заказать»: calm step numbers in a ring instead of huge digits */
.how__n { display: grid; place-items: center; width: 3rem; height: 3rem; border: 2px solid var(--c-accent-text); border-radius: 50%; font: 800 1.375rem/1 var(--display); }
.how__step { grid-template-columns: 3rem 1fr; }
@media (min-width: 760px) {
  .how__n { font-size: 1.375rem; margin-bottom: .75rem; }
  .how__step { grid-template-columns: 1fr; }
}

/* Footer: label and value on one baseline */
.foot__list li { align-items: center; }

/* Order page: while «Вы отправили?» is shown, the cart counters are quiet */
#pending:not([hidden]) ~ #checkout .lines .qty { opacity: .45; pointer-events: none; }
