/* «Тесто» — сайт, собранный из листов печатного меню.
   Крем — стол, цветные листы — блоки и разделы, вырезки из меню — у края листа.
   Цвета только токенами из palette.css. Радиусы: 0 (фото, листы), 12px (кнопки, поля), 50% (круглые контролы). */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  background: var(--bg); color: var(--fg);
  font: 400 17px/1.6 Rubik, system-ui, sans-serif;
  padding-bottom: calc(60px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-thickness: 2.5px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--brand); color: var(--on-brand); padding: 10px 16px; border-radius: 12px; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1248px; margin-inline: auto; padding-inline: max(16px, min(4vw, 48px)); }
.ico { width: 22px; height: 22px; flex: none; }
[hidden] { display: none !important; }
p a, li a, dd a, .link, .chk a { padding-block: 4px; }

/* Заглушки видны всем: правдоподобная заглушка опаснее пустого места. */
[data-todo] { outline: 2px dashed var(--accent); outline-offset: 4px; color: var(--accent); font-weight: 500; }

/* ---------- типографика ---------- */
/* H1 страниц и заголовки листов — как в печатном меню: Rubik капсом, очень крупно */
/* H1 страниц — книжная Literata; крик Rubik капсом остаётся логотипу, листам меню и обложкам разделов */
.h1 { font: 400 clamp(44px, 5.6vw, 84px)/1 Literata, Georgia, serif; letter-spacing: -.025em; font-variation-settings: "opsz" 72; }
.leaf__t { font: 900 clamp(46px, 7.4vw, 108px)/.88 Rubik; letter-spacing: -.04em; text-transform: uppercase; }
/* H2 блоков — книжная Literata, одна гарнитура в строке */
.h2 { font: 400 clamp(32px, 3.9vw, 56px)/1.05 Literata, Georgia, serif; letter-spacing: -.02em; text-wrap: balance; font-variation-settings: "opsz" 72; }
.h3 { font: 500 clamp(21px, 1.8vw, 24px)/1.25 Literata, Georgia, serif; }
.lead { font-size: clamp(18px, 1.4vw, 20px); line-height: 1.55; color: var(--fg-2); max-width: 40ch; }
.caption { font-size: 14px; color: var(--fg-2); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- кнопки и ссылки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 12px;
  background: var(--brand); color: var(--on-brand);
  font: 600 17px/1 Rubik; text-decoration: none; white-space: nowrap;
  transition: background-color .15s;
}
.btn:hover { background: var(--brand-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.btn.is-loading { pointer-events: none; opacity: .8; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn--block { display: flex; width: 100%; }
.btn--light { background: var(--on-brand); color: var(--fg); }
.btn--light:hover { background: var(--bg); }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.link::after { content: "→"; transition: transform .15s; }
.link:hover::after { transform: translateX(3px); }

/* ---------- поля ---------- */
.fld { display: grid; align-content: start; gap: 6px; font-size: 14px; color: var(--fg-2); min-width: 0; }
.fld > span i { font-style: normal; color: var(--fg-3); }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 52px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg-3); color: var(--fg); font: 400 17px/1.2 Rubik, sans-serif; transition: border-color .15s;
}
.fld input:hover, .fld select:hover { border-color: var(--fg-3); }
.fld input:focus, .fld select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
.fld__err { color: var(--accent); font-size: 14px; font-weight: 500; margin-top: -2px; }
.fld input[aria-invalid="true"] { border-color: var(--accent); }
.fld--s { max-width: 120px; }
.fld--cut { max-width: 260px; margin-top: 4px; }
.nowrap { white-space: nowrap; }
.hp { display: none; }
.chk { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--fg-2); cursor: pointer; }
.chk input { width: 24px; height: 24px; flex: none; margin-top: 1px; accent-color: var(--brand); }
.chk input[aria-invalid="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.consent { display: grid; gap: 10px; }
.form-error { color: var(--accent); font-weight: 500; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 420px) { .row2 { grid-template-columns: 1fr; } }

/* сегментный переключатель — одна коробка, выбранный сегмент светлый */
.seg { border: 0; padding: 0; min-width: 0; }
.seg legend { font-size: 14px; color: var(--fg-2); margin-bottom: 6px; }
.seg__box { display: flex; background: var(--bg-2); border-radius: 12px; padding: 4px; gap: 4px; }
.seg label { flex: 1; position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: 9px; font-weight: 500; font-size: 15px; text-align: center; padding: 0 8px; }
.seg input:checked + span { background: var(--bg-3); box-shadow: 0 1px 3px color-mix(in srgb, var(--fg) 18%, transparent); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 1px; }
.seg input:disabled + span { opacity: .4; }

/* время — ячейки с тонкой рамкой: видно, что это выбор */
.slots { border: 0; padding: 0; min-width: 0; }
.slots legend { font-size: 14px; color: var(--fg-2); margin-bottom: 6px; }
.slots__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 8px; }
.slot { min-height: 46px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-3); font: 500 16px/1 Rubik; font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--fg-3); }
.slot[aria-checked="true"] { background: var(--brand); color: var(--on-brand); border-color: var(--brand); font-weight: 600; }
.slot:disabled { color: var(--fg-3); text-decoration: line-through; cursor: not-allowed; background: transparent; }
.slots__day { grid-column: 1 / -1; font-size: 14px; color: var(--fg-2); padding-top: 6px; }
.slots__hint { font-size: 14px; color: var(--fg-2); margin-top: 8px; }
.slots__hint.is-err { color: var(--accent); font-weight: 500; }
/* место под две строки времени заранее: сетка приходит после скрипта */
.bform .slots__grid { min-height: 100px; align-content: start; }
.slots.is-loading .slots__grid { opacity: .4; }

/* ---------- шапка ---------- */
.hdr { position: sticky; top: 0; z-index: 40; background: var(--bg); border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); }
.hdr__in { display: flex; align-items: center; gap: 28px; min-height: 76px; padding-inline: max(16px, min(3vw, 40px)); max-width: 1600px; margin-inline: auto; }
.hdr__logo { display: block; color: var(--fg); }
.hdr__logo svg { display: block; height: 52px; width: auto; }
.status { display: flex; align-items: center; gap: 8px; font-size: 15px; color: var(--fg-2); white-space: nowrap; }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--fg-3); }
.status__short { display: none; }
@media (max-width: 420px) { .status__long { display: none; } .status__short { display: inline; } }
.status.is-open .status__dot { background: var(--ok); }
.status.is-soon .status__dot { background: var(--accent); }
.hdr__nav { display: flex; gap: 28px; margin-left: auto; font: 500 16px/1 Rubik; }
.hdr__nav a { text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.hdr__nav a:hover, .hdr__nav a[aria-current="page"] { border-color: var(--fg); }
.hdr__phone { display: flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.hdr__cta { min-height: 46px; padding: 0 20px; font-size: 16px; }
.hdr__burger { display: none; flex: none; width: 48px; height: 48px; margin-right: -10px; align-items: center; justify-content: center; }
.cartbtn { display: inline-flex; align-items: center; gap: 10px; }
.cartbtn__n { font-variant-numeric: tabular-nums; }
.cartbtn.is-bump { animation: bump .3s ease; }
@keyframes bump { 50% { transform: scale(1.06); } }
@media (max-width: 1180px) { .hdr__phone span { display: none; } .hdr__nav { gap: 20px; } }
@media (max-width: 899px) {
  .hdr__nav, .hdr__phone, .hdr__cta:not(.cartbtn) { display: none; }
  .hdr__burger { display: inline-flex; margin-left: auto; }
  .hdr__in { gap: 14px; min-height: 64px; }
  .hdr__logo svg { height: 42px; }
  /* «Закрыто · откроемся завтра в 11:00» не влезает в строку на 360 — переносится, а не выталкивает бургер */
  .status { font-size: 14px; min-width: 0; white-space: normal; line-height: 1.25; }
  .status__dot { flex: none; }
  .hdr__logo { flex: none; }
  .cartbtn { min-height: 40px; padding: 0 12px; font-size: 14px; margin-left: auto; }
  .cartbtn + .hdr__burger { margin-left: 0; }
}
@media (max-width: 560px) { .is-shop .status { display: none; } .cartbtn { white-space: nowrap; } }
/* кнопка корзины: «Корзина · 6 · 1 500 ₽»; на телефоне только сумка и число — сумма есть в нижней плашке */
.cartbtn__n::before, .cartbtn__s::before { content: "·"; margin-right: .35em; }
.cartbtn [data-cart-label] { display: inline-flex; gap: .35em; }
@media (max-width: 560px) { .cartbtn__w, .cartbtn__s { display: none; } .cartbtn__n::before { content: none; } }
/* 900–1100: навигация, телефон и кнопка не помещаются вместе со статусом */
@media (min-width: 900px) and (max-width: 1100px) { .status { display: none; } .hdr__in { gap: 18px; } }
.drawer { position: fixed; inset: 0; z-index: 60; background: color-mix(in srgb, var(--fg) 45%, transparent); }
.drawer__panel { position: absolute; inset: 0 0 0 auto; width: min(380px, 90vw); background: var(--bg); padding: 76px 24px 24px; display: flex; flex-direction: column; gap: 28px; overflow-y: auto; }
.drawer__close { position: absolute; top: 10px; right: 10px; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; }
.drawer__nav { display: grid; }
.drawer__nav a { font: 900 34px/1 Rubik; text-transform: uppercase; letter-spacing: -.03em; text-decoration: none; padding: 14px 0; border-bottom: 1px solid var(--line); }
.drawer__nav a[aria-current="page"] { color: var(--accent); }
.drawer__nav a[aria-current="page"]::before { content: "→ "; }
.drawer__meta { color: var(--fg-2); }

/* нижняя панель на телефоне */
.dock { position: fixed; inset: auto 0 0 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--brand); color: var(--on-brand); padding-bottom: env(safe-area-inset-bottom); }
.dock a { display: grid; justify-items: center; gap: 2px; padding: 8px 4px 7px; font-size: 12px; text-decoration: none; min-height: 56px; }
.dock a:active { background: var(--brand-2); }
@media (min-width: 900px) { .dock { display: none; } }
.is-shop .dock { display: none; }

/* ---------- лист: цветная страница печатного меню ---------- */
.paper { --paper: var(--paper-lemon); background: var(--paper); color: var(--ink); position: relative; overflow: hidden; }
.paper--lemon { --paper: var(--paper-lemon); } .paper--sky { --paper: var(--paper-sky); }
.paper--lime { --paper: var(--paper-lime); } .paper--green { --paper: var(--paper-green); }
.paper--yolk { --paper: var(--paper-yolk); } .paper--apricot { --paper: var(--paper-apricot); }
.paper--sun { --paper: var(--paper-sun); } .paper--pink { --paper: var(--paper-pink); }
.paper--olive { --paper: var(--paper-olive); } .paper--butter { --paper: var(--paper-butter); }
.paper--kraft { --paper: var(--paper-kraft); } .paper--orange { --paper: var(--paper-orange); }
.paper--teal { --paper: var(--paper-teal); } .paper--cloud { --paper: var(--paper-cloud); }
.paper--tomato { --paper: var(--paper-tomato); }
.paper--night { --paper: var(--paper-night); --ink: var(--on-brand); }
.paper--brand { --paper: var(--brand); --ink: var(--on-brand); }
.cutout { position: absolute; pointer-events: none; height: auto; }

/* ---------- главная ---------- */
/* первый экран ровно на высоту окна под шапкой: следующий лист не залезает (решение заказчика 21.09) */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: max(560px, calc(100svh - 77px)); } /* 76 шапка + 1 линия под ней */
/* знак с подписью «просто-вкусно» отцентрован сам по себе — весь столбец держится той же центральной оси, как вывеска */
.hero__side { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 28px; padding: clamp(32px, 5vw, 80px) clamp(16px, 4vw, 64px); }
.hero__mark { color: var(--fg); width: min(100%, 680px); }
.hero__mark svg { display: block; width: 100%; height: auto; }
.hero__line { font: 400 clamp(22px, 2vw, 30px)/1.3 Literata, serif; max-width: 22ch; text-wrap: balance; }
.hero__side .hero__acts { justify-content: center; }
.hero__facts { font-size: 17px; color: var(--fg-2); }
.hero__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero__photo { position: relative; min-height: 420px; background: var(--bg-2); }
.hero__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__mark { display: none; }
  .hero__side { padding-top: 22px; gap: 16px; align-items: flex-start; text-align: left; }
  .hero__side .hero__acts { justify-content: flex-start; }
  .hero__line { font-size: 26px; }
  .hero__photo { aspect-ratio: 1 / 1; min-height: 0; }
}
/* планшет: квадратное фото занимало весь первый экран — ни слогана, ни кнопок */
@media (min-width: 600px) and (max-width: 899px) { .hero__photo { aspect-ratio: 16 / 9; } .hero__photo img { object-position: 50% 62%; } .hero__side { padding-top: 28px; } }

.block { padding-block: clamp(72px, 9vw, 128px); }

/* «Что сейчас» — живой лист меню; вырезка в своей клетке, не поверх текста */
.now { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-areas: "head list" "art list"; gap: 0 clamp(24px, 5vw, 80px); padding: clamp(40px, 6vw, 88px) max(16px, min(5vw, 88px)) 0; }
.now__head { grid-area: head; }
.now__list { grid-area: list; padding-bottom: clamp(40px, 6vw, 88px); }
.now__art { grid-area: art; align-self: end; margin-left: calc(-1 * max(16px, min(5vw, 88px))); }
/* высота вырезки подогнана под список справа: лист без пустого угла */
.now__art img { height: clamp(200px, 19vw, 290px); width: auto; max-width: 100%; }
.now__h { font: 900 clamp(40px, 5.4vw, 84px)/.9 Rubik; letter-spacing: -.035em; text-transform: uppercase; }
.now__sub { font: italic 400 20px/1.3 Literata, serif; margin-top: 14px; }
.now__more { margin-top: 28px; }
.menu-row { display: grid; grid-template-columns: auto 1fr auto; align-items: last baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); text-decoration: none; }
.menu-row__n { font: 500 20px/1.25 Literata, serif; }
.menu-row__dots { border-bottom: 2px dotted color-mix(in srgb, var(--ink) 45%, transparent); transform: translateY(-5px); min-width: 16px; }
.menu-row__p { font: 700 19px/1 Rubik; font-variant-numeric: tabular-nums; white-space: nowrap; }
.menu-row__w { grid-column: 1 / -1; font-size: 14px; margin-top: -2px; }
a.menu-row:hover .menu-row__n { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 899px) {
  .now { grid-template-columns: 1fr; grid-template-areas: "head" "list" "art"; }
  .now__list { padding-bottom: 8px; }
  /* пицца срезана слева — прижата к левому краю листа, как на печатной странице */
  .now__art { justify-self: start; margin: 0 0 0 calc(-1 * max(16px, min(5vw, 88px))); }
  .now__art img { width: 200px; }
}

/* входы в разделы — строки с линией, как оглавление */
.doors { padding-block: clamp(56px, 8vw, 112px); display: grid; }
.door { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) auto; align-items: baseline; gap: 8px 32px; padding: 26px 0; border-top: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); text-decoration: none; }
.door:last-child { border-bottom: 1px solid color-mix(in srgb, var(--fg) 22%, transparent); }
.door__t { font: 400 clamp(34px, 4.4vw, 64px)/1 Literata, serif; letter-spacing: -.02em; }
.door__d { color: var(--fg-2); font-size: 17px; }
.door__go { font-size: 28px; transition: transform .2s; }
.door:hover .door__t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.door:hover .door__go { transform: translateX(6px); }
@media (max-width: 760px) { .door { grid-template-columns: 1fr auto; } .door__d { grid-column: 1; grid-row: 2; font-size: 15px; } .door__go { grid-row: 1 / 3; grid-column: 2; align-self: center; } }

/* как дойти + подвал одним тёмным полем */
.reach { padding-block: clamp(72px, 9vw, 128px) clamp(40px, 5vw, 64px); }
.reach__addr { font: 900 clamp(44px, 6.4vw, 96px)/1 Rubik; letter-spacing: -.035em; text-transform: uppercase; max-width: 14ch; }
.reach__line { margin-top: 20px; font-size: 19px; }
.reach__acts { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 32px; }

.ftr { padding-block: 48px 28px; }
/* большой знак в подвале — тон в тон, как тиснение: логотип на экране один, а не три */
.ftr__mark { color: color-mix(in srgb, var(--ink) 16%, transparent); }
.ftr__mark svg { display: block; width: 100%; height: auto; }
.ftr__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; font-size: 15px; margin-top: clamp(32px, 5vw, 64px); padding-top: 28px; border-top: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.ftr__grid p + p { margin-top: 2px; }
.ftr__grid a { display: inline-block; padding-block: 10px; }
.ftr__h { font-weight: 600; margin-bottom: 8px; }
.ftr__grid--top { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 899px) { body { padding-bottom: 0; } body:not(.is-shop) .ftr { padding-bottom: calc(28px + 60px + env(safe-area-inset-bottom)); } }
.ftr__base a { display: inline-block; padding-block: 6px; }
.ftr__base { display: flex; flex-wrap: wrap; gap: 8px 32px; margin-top: 36px; font-size: 13px; color: color-mix(in srgb, var(--ink) 72%, transparent); }
.ftr [data-todo] { outline-color: currentColor; color: inherit; }
@media (max-width: 899px) { .ftr__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ftr__grid { grid-template-columns: 1fr; } }

/* ---------- внутренние страницы ---------- */
.phead { padding-block: clamp(36px, 5vw, 72px) clamp(20px, 3vw, 36px); display: grid; gap: 18px; }
.phead .lead { max-width: 60ch; }

/* кафе */
/* кафе: два кадра рядом вместо панорамы-полоски — зал и окна, за которые хвалят гости */
.cafe-pair { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(10px, 1.6vw, 20px); }
.cafe-pair img { width: 100%; height: min(74vh, 660px); object-fit: cover; }
@media (max-width: 759px) { .cafe-pair { grid-template-columns: 1fr; } .cafe-pair figure + figure { display: none; } .cafe-pair img { height: auto; aspect-ratio: 4 / 5; } }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 88px); align-items: start; }
@media (max-width: 899px) { .split { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.facts div { display: grid; align-content: start; gap: 2px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--fg-2); }
.facts dd { font: 500 19px/1.3 Literata, serif; }
@media (max-width: 340px) { .facts { grid-template-columns: 1fr; } }
.vitrine { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(10px, 1.6vw, 20px); margin-top: 32px; }
.vitrine img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.vitrine img:first-child { grid-row: span 2; aspect-ratio: auto; object-position: 50% 85%; }
@media (max-width: 760px) { .vitrine { grid-template-columns: 1fr 1fr; } .vitrine img:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 4 / 3; } }
.quotes { display: grid; margin-top: 28px; }
.quote { padding: 26px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px 32px; }
.quote blockquote { font: 400 clamp(19px, 1.8vw, 24px)/1.45 Literata, serif; }
.quote figcaption { font-size: 15px; color: var(--fg-2); }
.quote figcaption b { color: var(--fg); font-weight: 500; display: block; }
.quote figcaption a { display: inline-block; padding-block: 4px; }
@media (max-width: 760px) { .quote { grid-template-columns: 1fr; } }
.promo { padding: clamp(28px, 4vw, 56px); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); }
.promo h2 { font: 900 clamp(30px, 3.6vw, 52px)/.95 Rubik; letter-spacing: -.03em; text-transform: uppercase; margin-bottom: 18px; }
.promo ul { list-style: none; padding: 0; }
.promo li { padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); font-size: 18px; }
@media (max-width: 760px) { .promo { grid-template-columns: 1fr; } }

/* контакты */
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; margin-top: 12px; }
.steps > li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 18px; }
.steps > li::before { content: counter(s); font: 900 28px/1 Rubik; }
.stops { list-style: none; padding: 0; margin-top: 6px; font-size: 16px; color: var(--fg-2); }
.map { position: relative; background: var(--bg-2); aspect-ratio: 13 / 9; overflow: hidden; box-shadow: 0 18px 40px rgb(42 28 9 / .12); }
.map iframe, .map img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.map iframe { z-index: 2; }
.map__load { position: absolute; left: 16px; bottom: 16px; z-index: 1; box-shadow: 0 4px 14px rgb(42 28 9 / .25); }
.cmap { position: sticky; top: 100px; }
.cinfo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px clamp(24px, 4vw, 64px); padding-block: clamp(48px, 6vw, 88px) 96px; }
.cinfo__legal { margin-top: 14px; font-size: 15px; }
@media (max-width: 899px) { .cinfo { grid-template-columns: 1fr; } .cmap { position: static; } }
.hours { display: grid; margin-top: 8px; }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hours dd { font-weight: 600; font-variant-numeric: tabular-nums; }
/* табличные цифры раздвигают скобки телефона: «( 902 )» */
.hours dd a, a[href^="tel:"] { font-variant-numeric: normal; white-space: nowrap; }

/* бронь */
.bk { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: start; padding-bottom: 96px; }
.bk__photo { position: sticky; top: 100px; }
.bk__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 899px) { .bk { grid-template-columns: 1fr; } .bk__photo { display: none; } }
.bform { display: grid; gap: 22px; }
.bform__note { font-size: 15px; color: var(--fg-2); }
.done { display: grid; gap: 12px; padding: clamp(24px, 3vw, 40px); max-width: 780px; }
.done:focus { outline: none; }
.done h3 { font: 400 clamp(30px, 3.2vw, 44px)/1.05 Literata, serif; letter-spacing: -.02em; }
.done__items { list-style: none; padding: 0; display: grid; gap: 6px; font-size: 16px; }
.done__items li { display: flex; justify-content: space-between; gap: 12px; }
.done__acts { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; margin-top: 8px; }
.done__steps { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 16px; margin-top: 6px; }
.done__steps li { display: flex; gap: 10px; align-items: center; opacity: .6; }
.done__steps li::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; }
.done__steps li.is-on { opacity: 1; }
.done__steps li.is-on::before { background: currentColor; }

/* ---------- меню-книжка ----------
   Книжка ровно на экран под шапкой: вниз ничего листать не надо. Длинный лист не растёт вниз,
   а продолжается колонками вправо — тем же свайпом, что и листы. Заголовок листа едет вместе с ним.
   Ширину колонок и точки остановки считает menu.js. */
.book { position: relative; --pad: max(80px, calc((100vw - 1248px) / 2)); --book-h: max(440px, calc(100svh - 77px)); }
.leaves {
  position: relative; display: flex; align-items: stretch; gap: clamp(12px, 2vw, 28px);
  height: var(--book-h); padding: 16px var(--pad) 18px; scroll-padding-inline: var(--pad);
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.leaves::-webkit-scrollbar { display: none; }
.leaves:focus-visible { outline: none; }
.leaf {
  --lpx: clamp(18px, 2vw, 28px);
  flex: none; height: 100%; display: flex; flex-direction: column; scroll-snap-align: start;
  --paper: var(--paper-lemon); position: relative; overflow: clip; background: var(--paper); color: var(--ink);
  padding: clamp(18px, 2.4vw, 32px) var(--lpx) clamp(14px, 2vw, 24px);
  box-shadow: 0 14px 32px rgb(42 28 9 / .13);
}
.leaf__snap { position: absolute; top: 0; width: 1px; height: 1px; scroll-snap-align: start; pointer-events: none; }
.leaf--lemon { --paper: var(--paper-lemon); } .leaf--sky { --paper: var(--paper-sky); }
.leaf--lime { --paper: var(--paper-lime); } .leaf--green { --paper: var(--paper-green); }
.leaf--yolk { --paper: var(--paper-yolk); } .leaf--apricot { --paper: var(--paper-apricot); }
.leaf--sun { --paper: var(--paper-sun); } .leaf--pink { --paper: var(--paper-pink); }
.leaf--olive { --paper: var(--paper-olive); } .leaf--butter { --paper: var(--paper-butter); }
.leaf--kraft { --paper: var(--paper-kraft); } .leaf--orange { --paper: var(--paper-orange); }
.leaf--teal { --paper: var(--paper-teal); } .leaf--cloud { --paper: var(--paper-cloud); }
.leaf--night { --paper: var(--paper-night); --ink: var(--on-brand); }
/* заголовок липнет к левому краю книжки: на второй и третьей колонке длинного листа видно, какой это лист */
.leaf__h { position: sticky; left: calc(var(--pad) + var(--lpx)); z-index: 1; width: min(100%, var(--view-w, 100%) - 2 * var(--lpx)); flex: none;
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 4px 20px; border-bottom: 3px solid var(--ink); padding-bottom: 12px; }
.leaf__t { font-size: clamp(34px, 4.2vw, 64px); }
.leaf__meta { grid-column: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; font: italic 400 17px/1.2 Literata, serif; }
.leaf__logo { grid-column: 2; grid-row: 1 / 3; align-self: start; color: var(--ink); }
.leaf__logo svg { display: block; width: clamp(72px, 8vw, 116px); height: auto; }
.leaf__body { flex: 1; min-height: 0; display: flex; gap: var(--col-g, 44px); padding-top: clamp(12px, 1.6vw, 20px); }
.leaf__photo img { width: auto; max-width: 100%; height: auto; max-height: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px; }
.leaf__art { display: block; width: auto; max-width: 100%; height: auto; max-height: 100%; object-fit: contain; pointer-events: none; filter: drop-shadow(0 14px 18px color-mix(in srgb, var(--ink) 20%, transparent)); }
.leaf__cols { flex: none; height: 100%; width: var(--col-w, 300px); column-width: var(--col-w, 300px); column-gap: var(--col-g, 44px); column-fill: auto;
  column-rule: 1.5px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.leaf__sub, .leaf__note { break-after: avoid-column; }
.leaf__cat + .leaf__cat { margin-top: 20px; }
.leaf__sub { font: 800 21px/1.1 Rubik; text-transform: uppercase; margin-bottom: 4px; }
.leaf__note { font: italic 400 15px/1.3 Literata, serif; }
.leaf__list { list-style: none; padding: 0; }
.li { break-inside: avoid; display: grid; gap: 3px; padding: 10px 0; border-bottom: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); }
.li:last-child { border-bottom: 0; }
.li__n { font: 700 16px/1.25 Rubik; text-transform: uppercase; letter-spacing: .01em; }
.li__d { font-size: 14px; line-height: 1.35; }
.li__f { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.li__w { font-size: 13px; }
.li__p { font: 800 19px/1 Rubik; font-variant-numeric: tabular-nums; }
.li__vars { display: flex; flex-wrap: wrap; gap: 4px 14px; font-variant-numeric: tabular-nums; }
.li__vars i { font-style: normal; font-size: 13px; margin-right: 4px; }
.li__vars b { font: 800 18px/1 Rubik; }
/* блюдо по ссылке с главной — мягкая подсветка на пару секунд, без рамки */
.li.is-hit { background: color-mix(in srgb, var(--ink) 10%, transparent); box-shadow: 0 0 0 8px color-mix(in srgb, var(--ink) 10%, transparent); transition: background-color .6s, box-shadow .6s; }

/* обложка */
.leaf--cover { --paper: var(--paper-tomato); container-type: inline-size; width: min(var(--view-w, 88vw), calc(var(--book-h) * .8));
  display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; padding-bottom: 0; }
.leaf__logo--cover { grid-column: 1; grid-row: 1; justify-self: start; position: relative; z-index: 1; }
.leaf__logo--cover svg { width: clamp(110px, 26cqi, 220px); height: auto; display: block; }
.cover__word { font: 900 min(220px, 27cqi)/.8 Rubik; letter-spacing: -.05em; text-transform: uppercase; margin-top: clamp(16px, 6cqi, 48px); position: relative; z-index: 1; }
.cover__phone { font: 500 clamp(18px, 5cqi, 28px)/1 Rubik; margin-top: 16px; position: relative; z-index: 1; white-space: nowrap; }
.cover__phone a { text-decoration: none; }
.cover__art { position: absolute; right: 0; bottom: 56px; width: 62%; max-height: 58%; object-fit: contain; object-position: right bottom; height: auto; }
.cover__band { grid-row: 5; position: relative; z-index: 1; margin: 0 calc(-1 * var(--lpx)); padding: 18px var(--lpx); background: var(--ink); color: var(--paper-tomato); font: 500 clamp(17px, 4.4cqi, 24px)/1 Rubik; }

/* содержание — вместо вкладок сверху: одно касание до нужного листа */
.toc { list-style: none; padding: 0; counter-reset: toc; }
.toc li { break-inside: avoid; }
.toc a { display: grid; grid-template-columns: minmax(0, auto) 1fr auto; align-items: baseline; gap: 10px; padding: 11px 0; text-decoration: none;
  border-bottom: 1px dashed color-mix(in srgb, var(--ink) 35%, transparent); font: 700 17px/1.2 Rubik; text-transform: uppercase; }
.toc a::after { content: ""; order: 1; border-bottom: 2px dotted color-mix(in srgb, var(--ink) 45%, transparent); transform: translateY(-4px); }
.toc a span { order: 0; }
.toc a i { order: 2; font: italic 400 16px/1 Literata, serif; text-transform: none; font-variant-numeric: tabular-nums; }
.toc a:hover span { text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 899px) { .book { --pad: 56px; --book-h: max(240px, calc(100svh - 65px - 57px - env(safe-area-inset-bottom))); } }
@media (max-width: 699px) { .book { --pad: 16px; } }
@media (max-width: 699px) {
  .leaves { padding-block: 10px 8px; gap: 12px; }
  .leaf { --lpx: 18px; }
  .leaf__t { font-size: clamp(24px, 7.4vw, 40px); }
  .leaf__h .leaf__logo { display: none; }
  /* колонка = страница: линия между колонками легла бы на край экрана */
  .leaf__cols { column-rule: none; }
  .leaf--cover { width: var(--view-w, 88vw); }
}

/* ---------- доставка ---------- */
.dhead { padding-block: clamp(28px, 4vw, 48px) 0; }
.dhead__terms { margin-top: 16px; font-size: 16px; color: var(--fg-2); max-width: 90ch; }
.dhead__terms b { color: var(--fg); font-weight: 600; }
.shop { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(24px, 3vw, 48px); padding-block: 28px 96px; align-items: start; }
.snav { position: sticky; top: 100px; display: grid; gap: 22px; max-height: calc(100vh - 120px); overflow-y: auto; scrollbar-width: thin; }
.snav__g { font: 800 13px/1 Rubik; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-3); margin-bottom: 6px; }
.snav a { display: flex; align-items: center; gap: 10px; padding: 8px 0 8px 12px; margin-left: -15px; font-size: 16px; text-decoration: none; color: var(--fg-2); border-left: 3px solid transparent; }
.snav a:hover { color: var(--fg); }
.snav a.is-active { color: var(--fg); font-weight: 600; border-left-color: var(--fg); }
.shop > * { min-width: 0; }
.stabs { display: none; }
@media (max-width: 899px) {
  .shop { grid-template-columns: 1fr; padding-top: 0; }
  .snav { display: none; }
  .stabs { display: flex; position: sticky; top: 64px; z-index: 20; background: var(--bg); border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); margin-inline: calc(-1 * max(16px, min(4vw, 48px))); padding-inline: max(16px, min(4vw, 48px)); }
  .stabs__in { display: flex; gap: 20px; overflow-x: auto; scrollbar-width: none; flex: 1; }
  .stabs__in::-webkit-scrollbar { display: none; }
  .stabs__in a { flex: none; padding: 15px 0 12px; font: 500 15px/1 Rubik; text-decoration: none; color: var(--fg-2); border-bottom: 3px solid transparent; }
  .stabs__in a.is-active { color: var(--fg); border-color: var(--fg); }
  .stabs__all { flex: none; width: 44px; display: grid; place-items: center; }
}
.ssec { padding-bottom: clamp(40px, 5vw, 64px); }
.scover { min-height: 140px; padding: clamp(22px, 3vw, 36px); display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; }
.scover h2 { font: 900 clamp(38px, 4.4vw, 64px)/.9 Rubik; letter-spacing: -.035em; text-transform: uppercase; position: relative; z-index: 1; max-width: 70%; }
.scover p { position: relative; z-index: 1; font: italic 400 18px/1.3 Literata, serif; max-width: 60%; }
.scover .cutout { right: -3%; bottom: -18%; height: 150%; width: auto; max-width: 46%; object-fit: contain; }
/* вырезка срезана слева: зеркалим, чтобы срез ушёл под правый край плашки */
.scover .cutout--flip { transform: scaleX(-1); right: 0; }
.scover--plain { min-height: 104px; }
.scover--plain h2 { max-width: none; }
/* порядок разделов задаёт класс на <html> из встроенного скрипта: после 13:00 завтраки уходят в конец еды
   до первой отрисовки, без прыжка вёрстки */
.shop__main { display: flex; flex-direction: column; }
.ssec--drinks, .snav a.is-drinks, .stabs__in a.is-drinks { order: 2; }
.bf-late .ssec--bf, .bf-late .snav a.is-bf, .bf-late .stabs__in a.is-bf { order: 1; }
.snav > div { display: flex; flex-direction: column; }
.snav__g { order: -1; }
.dnote { display: none; margin-top: 14px; padding: 12px 16px; background: var(--paper-lemon); color: var(--ink); font-weight: 500; max-width: 90ch; }
.dl-early .dnote--early, .dl-closed .dnote--closed { display: block; }
@media (max-width: 899px) { .scover { min-height: 150px; margin-inline: calc(-1 * max(16px, min(4vw, 48px))); } }

/* карточки с фото: кадр на всю карточку, текст поверх */
.pcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.pcard { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--brand); color: var(--on-brand); }
.pcards--1 .pcard { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.pcards--2, .pcards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pcards--2 .pcard, .pcards--4 .pcard { aspect-ratio: 5 / 4; }
.pcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
/* затемнение — подложка самого текстового блока, а не плитки: растёт вместе с заголовком
   в три строки, а над текстом остаётся чистое фото */
.pcard__b { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 72px 18px 18px; display: grid; gap: 6px;
  background: linear-gradient(to bottom, rgb(42 28 9 / 0), rgb(42 28 9 / .64) 72px, rgb(42 28 9 / .82));
  text-shadow: 0 1px 12px rgb(42 28 9 / .5); }
.pcard__n { font: 600 clamp(20px, 1.9vw, 26px)/1.15 Literata, serif; text-align: left; min-height: 30px; padding-block: 2px; }
.pcard__d { font-size: 14px; line-height: 1.4; opacity: .9; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; max-width: 42ch; }
.pcard__f { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.pcard__w { font-size: 14px; opacity: .9; }
.sone { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 clamp(20px, 3vw, 40px); align-items: start; margin-top: 12px; }
.sone .pcards { grid-template-columns: 1fr; margin-top: 0; position: sticky; top: 100px; }
.sone .pcards--1 .pcard { aspect-ratio: 4 / 5; }
.sone .rows { grid-template-columns: 1fr; margin-top: 0; }
.sone .rows .prow:first-child { padding-top: 4px; }
/* на средних ширинах три строки заголовка + состав закрывали полкадра: состав есть в листе блюда */
@media (min-width: 900px) and (max-width: 1199px) { .pcard__d { display: none; } }
/* планшет: по две фото-карточки в ряд, а не по одной на весь экран */
@media (min-width: 600px) and (max-width: 899px) {
  .pcards, .pcards--2, .pcards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px; margin-inline: 0; }
  .pcard { aspect-ratio: 4 / 5 !important; }
  .sone .pcards { grid-template-columns: 1fr !important; max-width: 50%; }
}
@media (max-width: 899px) {
  .sone { grid-template-columns: 1fr; }
  .sone .pcards { position: static; }
  .pcards { grid-template-columns: 1fr; margin-inline: calc(-1 * max(16px, min(4vw, 48px))); gap: 2px; }
  .pcards--2, .pcards--4 { grid-template-columns: 1fr; }
  .pcard, .pcards--1 .pcard, .pcards--2 .pcard, .pcards--4 .pcard { grid-column: auto; aspect-ratio: 5 / 4; }
}

/* кнопка-цена и степпер */
.pbtn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 7px 0 16px; border-radius: 12px; background: var(--on-brand); color: var(--fg); font: 700 17px/1 Rubik; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pbtn::after { content: "+"; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; font: 500 22px/1 Rubik; }
@media (hover: hover) { .pbtn:hover { background: var(--bg); } .pbtn:hover::after { background: var(--accent); } }
.pbtn:disabled { opacity: .5; cursor: not-allowed; }
.qty { display: inline-flex; align-items: center; border-radius: 12px; background: var(--on-brand); color: var(--fg); min-height: 44px; }
.qty button { width: 42px; height: 44px; display: grid; place-items: center; font: 500 22px/1 Rubik; }
.qty output { min-width: 24px; text-align: center; font: 700 17px/1 Rubik; font-variant-numeric: tabular-nums; }
.plus { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--fg); display: grid; place-items: center; font: 400 24px/1 Rubik; flex: none; }
.plus:hover { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.plus:disabled { opacity: .35; cursor: not-allowed; background: none; color: var(--fg); border-color: var(--fg); }
.rows .qty { background: var(--bg-2); }

/* строки печатного меню */
.rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(24px, 3vw, 48px); margin-top: 8px; }
.rows { align-items: start; }
.prow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.prow__main { display: grid; gap: 3px; min-width: 0; }
.prow__top { display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 8px; }
.prow__n { font: 500 19px/1.25 Literata, serif; text-align: left; min-height: 28px; padding-block: 2px; }
.prow__n:hover { text-decoration: underline; text-underline-offset: 4px; }
.prow__dots { border-bottom: 2px dotted var(--line); transform: translateY(-5px); min-width: 12px; }
.prow__p { font: 600 17px/1 Rubik; font-variant-numeric: tabular-nums; white-space: nowrap; }
.prow__d { font-size: 14px; color: var(--fg-2); line-height: 1.4; }
.prow__w { font-size: 13px; color: var(--fg-3); }
.prow.is-off .prow__n, .prow.is-off .prow__p { color: var(--fg-3); }
.prow.is-off .prow__off { color: var(--fg); }
.prow__off, .pcard__off { font-size: 13px; font-weight: 500; }
.prow__off { color: var(--accent); }
@media (max-width: 760px) { .rows { grid-template-columns: 1fr; } }

/* лист блюда */
.sheetd { position: fixed; inset: 0; z-index: 80; background: color-mix(in srgb, var(--fg) 50%, transparent); display: grid; place-items: center; padding: 16px; }
/* отступы прокрутки под липкие крестик и «Добавить»: элемент в фокусе не прячется под ними */
.sheetd__panel { scroll-padding-block: 72px 104px; }
.sheetd__panel { position: relative; width: min(560px, 100%); max-height: 92svh; overflow-y: auto; background: var(--bg-3); box-shadow: 0 18px 40px rgb(42 28 9 / .2); }
/* крестик и кнопка «Добавить» липкие: у кофе с сиропами лист длиннее экрана */
.sheetd__x { position: sticky; top: 12px; z-index: 3; width: 44px; height: 44px; margin: 12px 12px -56px auto; border-radius: 50%; background: var(--bg-3); display: grid; place-items: center; box-shadow: 0 2px 10px rgb(42 28 9 / .18); }
.sheetd__act { position: sticky; bottom: 0; z-index: 2; margin: 0 -24px -24px; padding: 14px 24px calc(16px + env(safe-area-inset-bottom)); background: var(--bg-3); border-top: 1px solid var(--line); }
.sheetd__img { width: 100%; aspect-ratio: 16 / 10; max-height: 34svh; object-fit: cover; }
.sheetd__paper { height: 180px; }
.sheetd__paper .cutout { right: 4%; bottom: -20%; height: 130%; width: auto; }
.sheetd__b { padding: 22px 24px 24px; display: grid; gap: 14px; }
.sheetd__b h2 { font: 500 28px/1.15 Literata, serif; padding-right: 40px; }
.sheetd__b p { color: var(--fg-2); }
.addons { border: 0; padding: 0; display: grid; }
.addons legend { font-weight: 600; margin-bottom: 4px; }
.addons small { font-weight: 400; color: var(--fg-2); margin-left: 8px; }
.addons__more { justify-self: start; margin-top: 8px; font-weight: 600; text-decoration: underline; text-underline-offset: 5px; min-height: 36px; }
.addon input:disabled + span, .addon:has(input:disabled) b { opacity: .45; }
.addons__hint { font-size: 14px; color: var(--fg-2); padding-top: 8px; }
.seg label, .addon, .zone { cursor: pointer; }
.addon { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.addon input { width: 22px; height: 22px; accent-color: var(--brand); }
.addon span { flex: 1; }
.addon b { font-weight: 600; font-variant-numeric: tabular-nums; }
.sheetd__act { display: flex; gap: 12px; align-items: center; }
.sheetd__act .btn { flex: 1; }
@media (max-width: 600px) { .sheetd { place-items: end stretch; padding: 0; } .sheetd__panel { width: 100%; } }

/* корзина: панель справа */
.cart { position: fixed; inset: 0; z-index: 70; background: color-mix(in srgb, var(--fg) 45%, transparent); }
.cart__panel { position: absolute; inset: 0 0 0 auto; width: min(460px, 100%); background: var(--bg); display: flex; flex-direction: column; box-shadow: -18px 0 40px rgb(42 28 9 / .14); }
.cart__h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 24px 14px; }
.cart__h h2 { font: 400 34px/1 Literata, serif; letter-spacing: -.02em; }
.cart__h-act { display: flex; gap: 8px; align-items: center; }
.cart__clear { font-size: 15px; color: var(--fg-2); text-decoration: underline; min-height: 44px; }
.cart__x { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; }
.cart__scroll { flex: 1; overflow-y: auto; padding: 0 24px; overscroll-behavior: contain; }
.cart__free { padding: 14px 0 16px; font-size: 15px; }
.cart__bar { display: block; height: 6px; background: var(--bg-2); margin-top: 10px; }
.cart__bar i { display: block; height: 100%; background: var(--ok); transition: width .3s; }
.cline__mono { display: grid; place-items: center; background: var(--paper); color: var(--ink); font: 900 26px/1 Rubik; text-transform: uppercase; }
.cline.is-off .cline__img { opacity: .55; }
.cline.is-off .cline__n { color: var(--fg-2); }
.cline.is-off .prow__off { display: block; color: var(--fg); }
.toast { width: max-content; position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 75; transform: translate(-50%, 12px); opacity: 0; pointer-events: none; padding: 12px 20px; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-weight: 500; box-shadow: 0 10px 24px rgb(42 28 9 / .3); transition: opacity .2s, transform .2s; max-width: calc(100vw - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .toast { bottom: 28px; } }
.qday { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 2px; }
.qday button { font-size: 14px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; min-height: 44px; color: var(--fg); }
.upsell span { font-size: 13px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.li__n, .pcard__n, .prow__n { text-wrap: pretty; }
/* рамка фокуса на тёмных и зелёных подложках — кремовая: малиновая там 2:1 */
.ftr :focus-visible, .reach :focus-visible, .pcard :focus-visible, .cartbar:focus-visible, .toast :focus-visible,
.paper--green :focus-visible, .leaf--green :focus-visible, .leaf--night :focus-visible, .leaf--olive :focus-visible { outline-color: var(--on-brand); }
.leaf--green :focus-visible, .paper--green :focus-visible, .leaf--olive :focus-visible { outline-color: var(--ink); }
.cline__rm { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 4px; min-height: 36px; }
.cline__mods { display: block; font: 400 13px/1.35 Rubik; color: var(--fg-2); margin-top: 2px; }
.cline { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.cline__img { width: 56px; height: 56px; object-fit: cover; background: var(--bg-2); }
.cline__img--paper { display: grid; place-items: center; overflow: hidden; background: var(--paper); }
.cline__img--paper img { width: 120%; max-width: none; height: auto; }
.cline__n { font: 500 17px/1.25 Literata, serif; }
.cline__n small { display: block; font: 400 13px/1.3 Rubik; color: var(--fg-2); }
.cline__r { display: grid; justify-items: end; gap: 6px; }
.cline__p { font-weight: 600; font-variant-numeric: tabular-nums; }
.cline .qty { background: var(--bg-2); min-height: 36px; }
.cline .qty button { width: 34px; height: 36px; font-size: 18px; }
.cart__up { padding: 18px 0 8px; }
.cart__up h3 { font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.cart__up-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.upsell { display: grid; gap: 6px; text-align: left; font-size: 14px; }
.upsell img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--bg-2); }
.upsell b { font-weight: 600; }
.cart__foot { padding: 16px 24px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: grid; gap: 8px; background: var(--bg); }
.cart__sum div { display: flex; justify-content: space-between; font-size: 15px; padding: 3px 0; }
.cart__sum .is-total { font: 700 20px/1.2 Rubik; padding-top: 8px; }
.cart__empty { padding: 20px 0; display: grid; gap: 14px; justify-items: start; }
.cart__empty img { width: 160px; }
.cartbar { display: none; }
@media (max-width: 899px) {
  .cart__panel { inset: auto 0 0 0; width: 100%; max-height: 92svh; }
  .cartbar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 46; display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 20px; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-weight: 600; box-shadow: 0 10px 24px rgb(42 28 9 / .3); }
}

/* оформление */
.co { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: clamp(24px, 5vw, 80px); padding-block: 24px 96px; align-items: start; }
.co__form { display: grid; gap: 40px; }
.co__sec { display: grid; gap: 16px; }
.co__sec h2 { font: 400 32px/1.05 Literata, serif; letter-spacing: -.02em; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.co__sec h2 span { font: italic 400 17px/1 Literata, serif; color: var(--fg-2); }
.co__sum { position: sticky; top: 100px; padding: 28px; display: grid; gap: 14px; box-shadow: 0 18px 40px rgb(42 28 9 / .14); }
.co__sum h2 { font: 400 28px/1 Literata, serif; }
.co__lines { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.co__lines li { display: flex; justify-content: space-between; gap: 12px; }
.co__lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.zones { display: grid; border-top: 1px solid var(--line); }
/* цены зон — ровной колонкой, как бы ни были длинны названия сёл */
.zone { display: grid; grid-template-columns: 22px minmax(8em, 11em) 1fr; align-items: center; gap: 4px 12px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
@media (max-width: 480px) { .zone { grid-template-columns: 22px 1fr; } .zone small { grid-column: 2; } }
.zone input { width: 22px; height: 22px; accent-color: var(--brand); }
.zone span { flex: 1; font-weight: 500; }
.zone small { font-size: 14px; color: var(--fg-2); }
.pay-note { font-size: 16px; }
@media (max-width: 899px) { .co { grid-template-columns: 1fr; } .co__sum { position: static; order: -1; } }

/* ---------- документы, 404 ---------- */
.doc { max-width: 760px; padding-block: 48px 96px; }
.doc .h1 { font-size: clamp(36px, 4vw, 52px); }
.doc ul { margin-top: 10px; padding-left: 1.2em; color: var(--fg-2); }
.doc [data-todo] { display: inline-block; }
.doc h2 { font: 500 22px/1.3 Literata, Georgia, serif; margin-top: 32px; }
.doc p { margin-top: 10px; color: var(--fg-2); }
.nf { display: grid; align-items: center; min-height: min(72vh, 680px); }
.nf__in { padding-block: 72px; }
.nf__in > div { display: grid; gap: 18px; max-width: 58%; }
.nf .lead { color: var(--ink); }
.nf__art { position: absolute; right: 0; top: 50%; transform: translateY(-50%); height: min(92%, 620px); width: auto; }
@media (max-width: 700px) {
  .nf { min-height: 0; }
  .nf__in { padding-block: 48px 0; }
  .nf__in > div { max-width: none; }
  .nf__art { position: static; transform: none; justify-self: end; width: 64%; height: auto; margin-top: 8px; }
}
/* подвал прижат к низу на коротких страницах */
body { min-height: 100svh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

/* демо-переключатель режима (только в макете, ?demo) */
.demo-switch { position: fixed; right: 12px; top: 90px; z-index: 90; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: 13px; display: grid; gap: 6px; }
.demo-switch a { text-decoration: none; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line); }
.demo-switch a[aria-current="true"] { background: var(--brand); color: var(--on-brand); }

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

/* контакты: H2 «Как дойти» не липнет к шапке страницы */
.phead + .split { margin-top: clamp(12px, 2.5vw, 32px); }

/* корзина колонкой справа (≥1200): элемент страницы, а не окно поверх */
@media (min-width: 1200px) {
  .is-shop .shop, .is-shop .dhead { max-width: 1600px; }
  .is-shop .shop { grid-template-columns: 200px minmax(0, 1fr) 340px; }
  .is-shop .hdr .cartbtn { display: none; }
  .cart.is-inline { position: static; inset: auto; z-index: auto; background: none; display: block; align-self: stretch; }
  .cart.is-inline .cart__panel { position: sticky; top: 100px; right: auto; bottom: auto; left: auto; width: auto; height: auto; max-height: calc(100vh - 116px);
    background: var(--bg-3); box-shadow: 0 1px 0 var(--line), 0 12px 32px rgb(42 28 9 / .08); border-radius: 12px; overflow: hidden; }
  .cart.is-inline .cart__x { display: none; }
  .cart.is-inline .cart__h { padding: 20px 20px 10px; }
  .cart.is-inline .cart__h h2 { font-size: 28px; }
  .cart.is-inline .cart__scroll { padding: 0 20px; }
  .cart.is-inline .cart__foot { background: var(--bg-3); padding: 14px 20px 18px; }
  .cart.is-inline .cart__empty { justify-items: center; text-align: center; padding: 28px 8px; color: var(--fg-2); }
  .cart.is-inline .cart__empty img { width: 150px; }
  .cart.is-inline .cart__up-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cart__panel.is-bump { animation: cartbump .5s ease; }
}
@keyframes cartbump { 30% { box-shadow: 0 0 0 3px var(--brand), 0 12px 32px rgb(42 28 9 / .08); } }
/* 1200–1439: три колонки не помещаются — разделы уходят в полосу вкладок над витриной */
@media (min-width: 1200px) and (max-width: 1439px) {
  .is-shop .shop { grid-template-columns: minmax(0, 1fr) 320px; }
  .snav { display: none; }
  .stabs { display: flex; position: sticky; top: 77px; z-index: 20; background: var(--bg); border-bottom: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); margin-bottom: 16px; }
  .stabs__in { display: flex; gap: 22px; overflow-x: auto; scrollbar-width: none; flex: 1; }
  .stabs__in::-webkit-scrollbar { display: none; }
  .stabs__in a { flex: none; padding: 15px 0 12px; font: 500 15px/1 Rubik; text-decoration: none; color: var(--fg-2); border-bottom: 3px solid transparent; }
  .stabs__in a.is-active { color: var(--fg); border-color: var(--fg); }
  .stabs__all { flex: none; width: 44px; display: grid; place-items: center; }
}

/* ---------- правки второй проверки ---------- */
.co__form { max-width: 640px; }
.co__sum .caption { color: var(--fg); }
.co__lines li.is-off { color: var(--fg-2); text-decoration: line-through; text-decoration-thickness: 1px; }
.co__warn { padding: 14px 16px; background: var(--paper-lemon); color: var(--ink); display: grid; gap: 6px; justify-items: start; }
.co__warn .link::after { content: none; }
.slots.is-err .slots__grid { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 4px; }
/* строки меню: пунктир только когда есть место; длинное название — цена у последней строки */
.prow__top { grid-template-columns: minmax(0, max-content) minmax(0, 1fr) auto; align-items: last baseline; }
.prow__dots { min-width: 20px; }
@media (max-width: 599px) { .prow__top { grid-template-columns: minmax(0, 1fr) auto; } .prow__dots { display: none; } }
/* телефон: все кнопки количества и добавления не меньше 44 px */
@media (max-width: 899px) {
  .cline .qty { min-height: 44px; }
  .cline .qty button { width: 44px; height: 44px; }
  .plus { width: 44px; height: 44px; }
  .cartbtn { min-height: 44px; }
  .addons__more, .cline__rm { min-height: 44px; }
}
/* планшет 600–899: фото-карточки по две в ряд, одиночная третья — на всю ширину; поля как у строк */
@media (min-width: 600px) and (max-width: 899px) {
  .pcards { margin-inline: 0 !important; }
  .pcards--3 .pcard:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 9 !important; }
  .sone .pcards { max-width: none; }
  .sone .pcard { aspect-ratio: 16 / 9 !important; }
}

/* ---------- доставка: второй проход по дизайну (21.09) ---------- */
/* плашка «доставка откроется» — карточка с иконкой, а не жёлтая полоса */
.dnote { align-items: center; gap: 14px; margin-top: 18px; padding: 12px 22px 12px 12px; border-radius: 16px; width: fit-content; max-width: 100%; font-weight: 400; }
.dl-early .dnote--early, .dl-closed .dnote--closed { display: flex; }
.dnote__ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; }
.dnote b { display: block; font: 700 17px/1.25 Rubik; }
.dnote > span:last-child { font-size: 15px; line-height: 1.4; }
.dterms { list-style: none; padding: 0; margin-top: 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.dterms li { padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); font-size: 14px; line-height: 1.35; color: var(--fg-2); }
.dterms b { display: block; font: 600 16px/1.3 Rubik; color: var(--fg); margin-bottom: 2px; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) { .dterms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* скругления: фото-карточки, обложки разделов, миниатюры */
.pcard, .scover { border-radius: 16px; }
.pcard__img { transition: transform .5s ease; }
@media (hover: hover) { .pcard:hover .pcard__img { transform: scale(1.04); } }
.cline__img, .cline__mono { border-radius: 10px; overflow: hidden; }
@media (max-width: 899px) {
  .scover { margin-inline: 0; }
  .pcards { margin-inline: 0; gap: 10px; }
}

/* окно блюда: крупное фото слева, текст и выбор справа; на телефоне — лист снизу */
.sheetd { padding: 24px; background: color-mix(in srgb, var(--fg) 55%, transparent); }
.sheetd__panel { width: min(980px, 100%); max-height: min(700px, 92svh); overflow: hidden; border-radius: 22px; display: flex; box-shadow: 0 30px 80px rgb(42 28 9 / .35); }
.sheetd__panel > [data-sheet-body] { flex: 1; min-width: 0; display: flex; }
.sheetd__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); width: 100%; min-height: min(580px, 88svh); }
.sheetd__media { position: relative; overflow: hidden; background: var(--bg-2); }
.sheetd__img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; max-height: none; object-fit: cover; }
.sheetd__cut { position: absolute; right: -8%; bottom: -8%; width: 96%; height: auto; max-height: 100%; object-fit: contain; filter: drop-shadow(0 20px 26px color-mix(in srgb, var(--ink) 25%, transparent)); }
.sheetd__mono { position: absolute; inset: 0; display: grid; place-items: center; font: 900 clamp(140px, 20vw, 240px)/1 Rubik; text-transform: uppercase; color: color-mix(in srgb, var(--ink) 30%, transparent); }
.sheetd__b { display: flex; flex-direction: column; gap: 0; padding: 0; min-height: 0; max-height: min(700px, 92svh); overflow-y: auto; overscroll-behavior: contain; }
.sheetd__txt { flex: 1; display: grid; align-content: start; gap: 16px; padding: 36px 32px 24px; }
.sheetd__b h2 { font: 500 clamp(28px, 2.6vw, 38px)/1.1 Literata, serif; letter-spacing: -.015em; padding-right: 48px; }
.sheetd__meta { display: flex; align-items: baseline; gap: 14px; color: var(--fg-2); font-size: 15px; }
.sheetd__meta b { order: -1; font: 700 24px/1 Rubik; color: var(--fg); font-variant-numeric: tabular-nums; }
.sheetd__desc { font-size: 17px; line-height: 1.55; }
.sheetd__act { position: sticky; bottom: 0; margin: 0; padding: 16px 32px 20px; background: var(--bg-3); border-top: 1px solid var(--line); }
.sheetd__act .btn { min-height: 56px; border-radius: 14px; font-size: 18px; }
.sheetd__act .qty { min-height: 56px; border-radius: 14px; }
.sheetd__act .qty button { height: 56px; }
.sheetd__x { position: absolute; top: 16px; right: 16px; margin: 0; z-index: 5; }
.addon { padding-right: 4px; }
@media (max-width: 759px) {
  .sheetd { place-items: end stretch; padding: 0; }
  .sheetd__panel { display: block; width: 100%; max-height: 94svh; overflow-y: auto; border-radius: 22px 22px 0 0; }
  .sheetd__panel > [data-sheet-body] { display: block; }
  .sheetd__grid { display: block; min-height: 0; }
  .sheetd__media { aspect-ratio: 4 / 3; }
  .sheetd__b { max-height: none; overflow: visible; }
  .sheetd__txt { padding: 22px 20px 18px; }
  .sheetd__act { padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); }
  .sheetd__x { position: sticky; top: 12px; float: right; margin: 12px 12px -56px 0; background: color-mix(in srgb, var(--bg-3) 92%, transparent); }
}

/* «К заказу часто берут» — над итогом, всегда на виду, а не в конце прокрутки */
.cart__foot { gap: 10px; }
.cart__up { padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.cart__up:empty { display: none; }
.cart__up h3 { font: 700 16px/1.2 Rubik; margin-bottom: 10px; }
.cart__up-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.upsell { display: grid; gap: 6px; align-content: start; padding: 6px 6px 8px; border-radius: 14px; background: var(--bg); text-align: left; font-size: 13px; transition: transform .15s, box-shadow .15s; }
.upsell img { border-radius: 10px; }
.upsell span { min-height: 2.6em; }
.upsell b { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 34px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: 700 14px/1 Rubik; font-variant-numeric: tabular-nums; }
.upsell b::before { content: "+"; font-size: 17px; font-weight: 500; }
@media (hover: hover) { .upsell:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgb(42 28 9 / .12); } .upsell:hover b { background: var(--brand-2); } }
.upsell:active { transform: scale(.98); }

/* фото в окне блюда — ровно в пропорции снимка 4:5: блюдо целиком, ничего не срезано */
.sheetd__grid { grid-template-columns: auto minmax(340px, 430px); height: min(620px, 88svh); min-height: 0; }
.sheetd__media { height: 100%; aspect-ratio: 4 / 5; }
.sheetd__panel { width: auto; max-width: min(1020px, 100%); }
.sheetd__b { max-height: none; }
.pcard { cursor: pointer; }
@media (max-width: 759px) {
  .sheetd__grid { height: auto; }
  .sheetd__media { height: auto; width: 100%; aspect-ratio: 4 / 5; max-height: none; }
  .sheetd__panel { max-width: none; }
}
/* телефон: условия доставки — лентой в одну строку, еда начинается выше */
@media (max-width: 599px) {
  .dterms { display: flex; overflow-x: auto; scrollbar-width: none; gap: 8px; margin-inline: -16px; padding-inline: 16px; scroll-padding-inline: 16px; scroll-snap-type: x proximity; }
  .dterms::-webkit-scrollbar { display: none; }
  .dterms li { flex: 0 0 auto; width: min(64vw, 230px); scroll-snap-align: start; padding: 10px 14px; }
}

/* меню: соседние листы приглушены — видно, какой лист сейчас открыт */
.leaf { transition: opacity .3s; }
.leaf:not(.is-current) { opacity: .55; }
.leaf__lead { break-inside: avoid; }
/* телефон лёжа: док прячем, иначе книжка с полосой не влезает по высоте */
@media (max-width: 899px) and (orientation: landscape) and (max-height: 500px) {
  body:has(.book) .dock { display: none; }
  .book { --book-h: max(220px, calc(100svh - 65px)); }
}

.sheetd__grid--solo { grid-template-columns: minmax(0, 1fr); width: min(560px, 100vw - 48px); height: auto; max-height: min(700px, 92svh); }
.sheetd__grid--solo .sheetd__b { max-height: min(700px, 92svh); }
@media (max-width: 759px) { .sheetd__grid--solo { width: 100%; } .sheetd__grid--solo .sheetd__txt { padding-top: 64px; } }
/* 1200–1439: вкладки разделов гаснут к правому краю, а не режутся */
@media (min-width: 1200px) and (max-width: 1439px) {
  .stabs__in { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
}
/* главная на телефоне и планшете: первый экран тоже ровно до нижней панели, фото забирает остаток высоты */
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; min-height: calc(100svh - 64px - 57px - env(safe-area-inset-bottom)); }
  .hero__photo { flex: 1 1 auto; aspect-ratio: auto; min-height: 240px; }
}

/* ---------- корзина: третий проход (21.09) — легче и собраннее ---------- */
.cart__panel { background: var(--bg-3); }
.cart__h { padding: 18px 20px 8px; align-items: center; }
.cart__h h2 { font: 500 24px/1.1 Literata, serif; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.cart__n:not(:empty) { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--brand); color: var(--on-brand); font: 700 13px/26px Rubik; text-align: center; font-variant-numeric: tabular-nums; }
.cart__clear { font-size: 14px; color: var(--fg-3); text-decoration: none; }
@media (hover: hover) { .cart__clear:hover { color: var(--fg); text-decoration: underline; } }
.cart__clear[data-sure] { color: var(--accent); font-weight: 600; }
.cart__free { margin: 0 20px 6px; padding: 10px 12px; border-radius: 12px; background: var(--bg); font-size: 14px; display: grid; gap: 8px; }
.cart__free:empty { display: none; }
.cart__free b { font-weight: 700; }
.cart__bar { height: 4px; margin: 0; border-radius: 99px; overflow: hidden; background: color-mix(in srgb, var(--fg) 12%, transparent); }
.cart__bar i { border-radius: 99px; }
.cart__ok { color: var(--ok); font-weight: 600; }
.cart__scroll { padding: 0 20px; min-height: 150px;
  /* мягкие края прокрутки вместо жёсткой линии */
  -webkit-mask-image: linear-gradient(#000 calc(100% - 18px), transparent); mask-image: linear-gradient(#000 calc(100% - 18px), transparent); }
.cline { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-top: 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 8%, transparent); }
.cline:last-child { border-bottom: 0; }
.cline__img, .cline__mono { width: 48px; height: 48px; border-radius: 12px; }
.cline__mono { font-size: 20px; }
.cline__n { font: 500 15px/1.3 Rubik; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cline__n small, .cline__mods { font-size: 12px; }
.cline__r { gap: 4px; }
.cline__p { font: 700 15px/1 Rubik; }
.cline .qty { min-height: 32px; border-radius: 999px; background: var(--bg); }
.cline .qty button { width: 30px; height: 32px; font-size: 17px; border-radius: 999px; }
.cline .qty output { min-width: 18px; font-size: 14px; }
@media (hover: hover) { .cline .qty button:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); } }
/* «часто берут» — компактная лента, а не три больших плитки */
.cart__foot { padding: 12px 20px 18px; gap: 10px; background: var(--bg-3); border-top: 1px solid color-mix(in srgb, var(--fg) 8%, transparent); }
.cart__up { padding: 0 0 12px; border-bottom: 1px dashed color-mix(in srgb, var(--fg) 14%, transparent); }
.cart__up h3 { font: 600 13px/1.2 Rubik; letter-spacing: .02em; color: var(--fg-2); margin-bottom: 8px; }
.cart__up-list, .cart.is-inline .cart__up-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.upsell { position: relative; padding: 0; gap: 5px; background: none; border-radius: 12px; font-size: 12px; }
.upsell img { aspect-ratio: 1; border-radius: 12px; }
.upsell span { min-height: 2.5em; -webkit-line-clamp: 2; line-height: 1.25; color: var(--fg-2); }
.upsell b { position: absolute; right: 5px; top: 5px; min-height: 26px; padding: 0 9px; font-size: 12px; box-shadow: 0 2px 8px rgb(42 28 9 / .25); }
.upsell b::before { font-size: 14px; }
@media (hover: hover) { .upsell:hover { transform: none; box-shadow: none; } .upsell:hover img { filter: brightness(1.05); } }
.cart__sum div { font-size: 14px; padding: 2px 0; color: var(--fg-2); }
.cart__sum .is-total { font: 700 19px/1.2 Rubik; padding-top: 6px; color: var(--fg); }
.cart__foot .btn { min-height: 50px; border-radius: 14px; }
@media (max-width: 899px) {
  .cline .qty { min-height: 40px; } .cline .qty button { width: 40px; height: 40px; }
}

/* полоса «доставка сейчас не работает» над шапкой — вместо большой карточки на странице */
.dbar { display: none; align-items: center; justify-content: center; gap: 10px; min-height: 40px; padding: 8px 16px;
  background: var(--paper-lemon); color: var(--ink); font-size: 14px; line-height: 1.3; text-align: center; }
.dl-early .dbar--early, .dl-closed .dbar--closed { display: flex; }
.dbar__ico { width: 18px; height: 18px; flex: none; }
.dbar b { font-weight: 600; }
.dbar i { font-style: normal; }
@media (max-width: 599px) { .dbar i { display: none; } }

/* ---------- меню: листы во всю ширину, рисунок в углу, стрелки по бокам (21.09) ---------- */
.leaf__deco { position: absolute; right: 0; bottom: 0; display: flex; align-items: flex-end; justify-content: flex-end; pointer-events: none; z-index: 0; }
.leaf__deco[hidden] { display: none; }
.leaf__deco img { display: block; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain;
  filter: drop-shadow(0 18px 24px color-mix(in srgb, var(--ink) 22%, transparent)); }
.leaf__deco--flip img { transform: scaleX(-1); }
.leaf__deco--photo { align-items: center; justify-content: center; padding: 0 var(--lpx) var(--lpx) 0; margin: 0; }
.leaf__deco--photo img { max-height: min(100%, 520px); aspect-ratio: 4 / 5; object-fit: cover; border-radius: 16px; filter: none; box-shadow: 0 18px 40px rgb(42 28 9 / .22); transform: rotate(2deg); }
.leaf__body, .leaf__h { position: relative; z-index: 1; }
.leaf__h { position: sticky; }
/* стрелки листания — по бокам книжки, в полях */
.flip { position: absolute; top: 50%; z-index: 6; width: 56px; height: 56px; margin-top: -28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg-3); color: var(--fg); box-shadow: 0 10px 28px rgb(42 28 9 / .18), 0 0 0 1px color-mix(in srgb, var(--fg) 8%, transparent);
  transition: transform .15s, background-color .15s, color .15s, opacity .2s; }
.flip .ico { width: 24px; height: 24px; }
.flip--prev { left: max(8px, calc(var(--pad) / 2 - 28px)); }
.flip--next { right: max(8px, calc(var(--pad) / 2 - 28px)); }
@media (hover: hover) { .flip:hover { background: var(--brand); color: var(--on-brand); transform: scale(1.06); } }
.flip:active { transform: scale(.96); }
.flip:disabled { opacity: 0; pointer-events: none; }
@media (max-width: 699px) {
  .flip { width: 40px; height: 40px; margin-top: -20px; background: color-mix(in srgb, var(--bg-3) 88%, transparent); }
  .flip .ico { width: 20px; height: 20px; }
  .flip--prev { left: 2px; } .flip--next { right: 2px; }
}

.leaf__deco.is-head { width: 220px; justify-content: flex-end; align-items: center; z-index: 2; }
.leaf__deco.is-head img { max-height: 100%; }
.leaf__deco--photo.is-head { padding: 0; }
.leaf__deco--photo.is-head img { height: 100%; width: auto; max-height: none; border: 3px solid var(--bg-3); border-radius: 12px; transform: rotate(4deg); }
/* заглушки — пустая пунктирная рамка без текста (решение заказчика 21.09); текст остаётся в разметке как пометка */
[data-todo="где вход"], [data-todo="как устроен заказ в зале"], [data-todo="где регистрироваться"], [data-todo="порядок возврата"], [data-todo="срок доставки от заказчика"] { color: transparent !important; display: inline-block; min-width: 12em; min-height: 1.3em; max-width: 100%; vertical-align: middle; user-select: none; }

/* ---------- фото-карточки: фото целиком сверху, текст под ним (как у больших доставок), 21.09 ---------- */
.pcards, .pcards--2, .pcards--4 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 28px 18px !important; margin-inline: 0 !important; margin-top: 16px; }
.pcards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
.sone .pcards { grid-template-columns: minmax(0, 1fr) !important; }
.pcard, .pcards--1 .pcard, .pcards--2 .pcard, .pcards--4 .pcard, .sone .pcard, .sone .pcards--1 .pcard {
  aspect-ratio: auto !important; grid-column: auto !important; display: flex; flex-direction: column; overflow: visible; background: none; color: var(--fg); border-radius: 0; }
.pcard__img { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 18px; object-fit: cover; background: var(--bg-2); transition: filter .2s, transform .2s; }
@media (hover: hover) { .pcard:hover .pcard__img { transform: translateY(-3px); filter: brightness(1.04); } }
.pcard__b { position: static; flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 2px 0; background: none; text-shadow: none; }
.pcard__n { font: 500 clamp(17px, 1.4vw, 20px)/1.2 Literata, serif; color: var(--fg); min-height: 0; padding: 0; }
.pcard__d { display: -webkit-box !important; font-size: 14px; line-height: 1.4; color: var(--fg-2); opacity: 1; -webkit-line-clamp: 2; }
.pcard__f { margin-top: auto; padding-top: 10px; }
.pcard__w { font-size: 13px; color: var(--fg-3); opacity: 1; }
.pcard .pbtn { background: var(--bg-2); }
.pcard .qty { background: var(--bg-2); }
.pcard :focus-visible { outline-color: var(--accent); }
@media (min-width: 600px) and (max-width: 899px) { .pcards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 599px) {
  .pcards, .pcards--2, .pcards--4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 22px 12px !important; }
  .sone .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .pcard__img { border-radius: 14px; }
  .pcard__n { font-size: 16px; }
  .pcard__d { font-size: 13px; }
  .pcard__f { flex-wrap: wrap; gap: 6px; }
  .pcard .pbtn { min-height: 40px; font-size: 15px; }
}
/* сиропы и молоко — опция к кофе: плашка со списком через точку */
.leaf__opt { break-inside: avoid; margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--ink) 7%, transparent); }
.leaf__opt-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font: 800 16px/1.2 Rubik; text-transform: uppercase; margin-bottom: 6px; }
.leaf__opt-h b { font: 800 18px/1 Rubik; font-variant-numeric: tabular-nums; white-space: nowrap; }
.leaf__opt p { font-size: 14px; line-height: 1.5; }
.leaf__deco--float { padding: 0 var(--lpx) var(--lpx) 0; }
/* обложки разделов доставки: рисунок целиком внутри плашки; к краю прижата только сторона, срезанная в печатном меню */
.scover { min-height: 176px; }
.scover .cutout { position: absolute; top: 9%; right: 4%; bottom: auto; height: 82%; width: auto; max-width: 42%; object-fit: contain; object-position: right center; }
.scover .cutout--r { right: 0; }
.scover .cutout--b { top: auto; bottom: 0; height: 88%; object-position: right bottom; }
.scover .cutout--flip { transform: scaleX(-1); }
@media (max-width: 599px) { .scover { min-height: 150px; } .scover .cutout { max-width: 46%; } .scover h2 { max-width: 62%; } }
/* строка корзины: фото + название — одна кнопка, открывает карточку блюда */
.cline { grid-template-columns: minmax(0, 1fr) auto; }
.cline__open { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; align-items: center; text-align: left; min-width: 0; border-radius: 12px; }
@media (hover: hover) { .cline__open:hover .cline__n { text-decoration: underline; text-underline-offset: 3px; } }
/* «часто берут»: лента вбок, третья карточка выглядывает наполовину */
.cart__up-list, .cart.is-inline .cart__up-list { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: -20px; padding: 2px 20px 4px; scroll-padding-inline: 20px; overscroll-behavior-x: contain; }
.cart__up-list::-webkit-scrollbar { display: none; }
.upsell { flex: 0 0 38%; scroll-snap-align: start; display: grid; gap: 6px; position: relative; }
.upsell__open { display: grid; gap: 5px; text-align: left; }
.upsell__open img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--bg-2); }
.upsell__open span { font-size: 12px; line-height: 1.25; color: var(--fg-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.upsell__add { position: absolute; right: 6px; top: 6px; display: inline-flex; align-items: center; gap: 4px; min-height: 28px; padding: 0 10px; border-radius: 999px;
  background: var(--brand); color: var(--on-brand); font: 700 12px/1 Rubik; font-variant-numeric: tabular-nums; box-shadow: 0 2px 8px rgb(42 28 9 / .25); }
.upsell__add::before { content: "+"; font-size: 15px; font-weight: 500; }
@media (hover: hover) { .upsell__add:hover { background: var(--brand-2); } }
@media (max-width: 899px) { .upsell { flex-basis: 34%; } .upsell__add { min-height: 32px; } }
.pcard__n { min-height: 28px; padding-block: 3px; text-align: left; }
