/* Натюрлих — оформление сайта.
   Три цвета: тёплая бумага, почти чёрный текст, кирпичный акцент.
   Два шрифта: Playfair Display на заголовки, Inter на текст.
   Базовый кегль 18px и зоны нажатия от 44px — гости в основном 45+. */

:root {
    --paper: #FBF8F3;
    --paper-2: #F3EDE2;
    --paper-3: #EAE1D2;
    --ink: #1C1714;
    --ink-2: #6E6056;
    --line: #DED3C2;
    --accent: #8C3A24;
    --accent-2: #A8492E;
    --on-accent: #FFF8F0;
    --shadow: 0 1px 2px rgba(28, 23, 20, .06), 0 8px 24px rgba(28, 23, 20, .06);

    --serif: "Playfair Display", "Times New Roman", Georgia, serif;
    --sans: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

    --wrap: 1140px;
    --gut: 20px;
    --r: 4px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #15110E;
        --paper-2: #1E1813;
        --paper-3: #2A221B;
        --ink: #F4EDE2;
        --ink-2: #A99A8A;
        --line: #332920;
        --accent: #CC6442;
        --accent-2: #DD7351;
        --on-accent: #1A120D;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    }
}

:root[data-theme="dark"] {
    --paper: #15110E;
    --paper-2: #1E1813;
    --paper-3: #2A221B;
    --ink: #F4EDE2;
    --ink-2: #A99A8A;
    --line: #332920;
    --accent: #CC6442;
    --accent-2: #DD7351;
    --on-accent: #1A120D;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
}

* { box-sizing: border-box; }

/* Фильтр меню прячет позиции атрибутом hidden. Без этого правила его перебивает
   любой display из стилей ниже — например, у строки пива display: grid. */
[hidden] { display: none !important; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 400 18px/1.65 var(--sans);
    /* Цифры одной высоты. У Playfair Display по умолчанию «старинные»: 3, 4, 5, 7 и 9
       опускаются ниже строки, и в ценах и коде заказа это выглядит как опечатка. */
    font-variant-numeric: lining-nums;
    -webkit-text-size-adjust: 100%;
}

img, svg, iframe { max-width: 100%; }
img { height: auto; display: block; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.01em;
    margin: 0 0 .5em;
    text-wrap: balance;
}

h1 { font-size: clamp(38px, 7vw, 72px); }
h2 { font-size: clamp(30px, 4.4vw, 46px); }
h3 { font-size: clamp(21px, 2.2vw, 26px); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 2px;
    border-radius: 2px;
}

.skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    background: var(--accent);
    color: var(--on-accent);
    padding: 12px 20px;
}
.skip:focus { left: 0; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 var(--gut);
}

.muted { color: var(--ink-2); }
.center { text-align: center; }

/* ---------- шапка ---------- */

.top {
    position: sticky;
    top: 0;
    z-index: 40;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--line);
}

.top-row {
    display: flex;
    align-items: center;
    gap: 24px;
    min-height: 72px;
}

.brand {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: var(--ink);
    flex: none;
}
.brand-name {
    font-family: var(--serif);
    font-size: 25px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .01em;
}
/* Второе написание названия — латиницей, как в товарном знаке. Буквы разложены ровно
   по ширине первой строки: ширину ссылки задаёт «Натюрлих», а эта строка её только заполняет. */
.brand-alt {
    display: flex;
    justify-content: space-between;
    width: 0;
    min-width: 100%;
    margin-top: 5px;
    padding: 0 1px;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    color: var(--ink-2);
}

.nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
}
.nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 12px;
    white-space: nowrap;
    color: var(--ink);
    text-decoration: none;
    font-size: 17px;
    font-weight: 500;
    border-radius: var(--r);
}
.nav a:hover { background: var(--paper-2); }
.nav a.on { color: var(--accent); }

.top-act {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}

.top-phone {
    font-weight: 600;
    font-size: 17px;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    padding: 10px 4px;
}
.top-phone:hover { color: var(--accent); }

.icon-btn {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink-2);
    border-radius: var(--r);
    cursor: pointer;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-2); }
a.icon-btn { position: relative; text-decoration: none; }
.icon-btn.on, .acc-btn.in { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }

/* Сколько порций в корзине — кружок на значке. */
.cart-n {
    position: absolute;
    top: -8px;
    right: -8px;
    display: grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 5px;
    border: 2px solid var(--paper);
    border-radius: 11px;
    background: var(--accent);
    color: var(--on-accent);
    font: 700 11px/1 var(--sans);
    font-variant-numeric: tabular-nums;
}

/* С корзиной и профилем шапка тесная: «Вопросы» есть в «О нас» и в подвале. */
@media (max-width: 1240px) { .nav a.nav-faq { display: none; } }
@media (max-width: 1040px) {
    .nav a.nav-more { display: none; }
    .top-phone { display: none; }
}
/* Самые узкие экраны: «Самовывоз» прячется за значком корзины, профиль — в корзине и в подвале. */
@media (max-width: 560px) { .nav a.nav-pickup { display: none; } }
@media (max-width: 420px) { .acc-btn { display: none; } }

@media (max-width: 720px) {
    .top-row { min-height: 60px; gap: 12px; }
    .brand-name { font-size: 21px; }
    .nav { gap: 0; }
    .nav a { padding: 0 10px; font-size: 16px; }
    .top-act .btn { display: none; }
}

/* ---------- кнопки ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 52px;
    padding: 0 26px;
    border: 1px solid var(--ink);
    border-radius: var(--r);
    background: transparent;
    color: var(--ink);
    font: 600 17px/1 var(--sans);
    text-decoration: none;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }

.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--on-accent);
}
.btn.primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: var(--on-accent); }

.btn.ghost { border-color: var(--line); color: var(--ink); }
.btn.ghost:hover { background: var(--paper-2); color: var(--ink); border-color: var(--ink-2); }

.btn.sm { min-height: 44px; padding: 0 18px; font-size: 16px; }

.btn.light {
    border-color: rgba(255, 255, 255, .7);
    color: #fff;
    background: rgba(0, 0, 0, .12);
    backdrop-filter: blur(4px);
}
.btn.light:hover { background: #fff; color: #1C1714; border-color: #fff; }

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

/* ---------- секции ---------- */

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section.tint { background: var(--paper-2); border-top: 0; }

.kicker {
    font-size: 13px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 14px;
}

.lead {
    font-size: clamp(19px, 2vw, 22px);
    color: var(--ink-2);
    max-width: 62ch;
}

.narrow { max-width: 72ch; }

.note { font-size: 16px; color: var(--ink-2); }

/* ---------- первый экран ---------- */

.hero {
    position: relative;
    min-height: min(84vh, 760px);
    display: flex;
    align-items: flex-end;
    color: #fff;
    background: #1C1714;
    overflow: hidden;
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(20, 14, 10, .5) 0%, rgba(20, 14, 10, .25) 40%, rgba(20, 14, 10, .82) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    padding-top: clamp(40px, 8vw, 88px);
    padding-bottom: clamp(40px, 8vw, 88px);
}

.hero h1 {
    color: #fff;
    margin: 0;
    font-size: clamp(44px, 9vw, 92px);
    font-weight: 700;
    letter-spacing: -.02em;
}

/* «Natürlich» под названием: тонкая черта и разреженные заглавные — вторая строка знака. */
.hero-alt {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: clamp(12px, 1.6vw, 20px);
    font-family: var(--sans);
    font-size: clamp(13px, 1.5vw, 17px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: .52em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .86);
}
.hero-alt::before {
    content: "";
    flex: none;
    width: clamp(28px, 5vw, 56px);
    height: 1px;
    background: currentColor;
    opacity: .7;
}

.hero-slogan {
    font-family: var(--serif);
    font-size: clamp(20px, 3vw, 30px);
    font-style: italic;
    color: rgba(255, 255, 255, .92);
    margin: 18px 0 0;
}

.hero .cta { margin-top: 34px; }

.hero-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 32px;
    margin-top: 36px;
    font-size: 16px;
    color: rgba(255, 255, 255, .85);
}
.hero-facts b { color: #fff; font-weight: 600; }

/* ---------- крупное фото в блоке ---------- */

.media {
    margin: 0;
    overflow: hidden;
    border-radius: var(--r);
    background: var(--paper-3);
}
.media img { width: 100%; }

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 72px);
    align-items: center;
}
.split.text-first > .media { order: 2; }

@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; }
    .split.text-first > .media { order: 0; }
}

.gal {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-top: 36px;
}
.gal img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); }

/* ---------- карточки ---------- */

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-top: 36px;
}

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 26px;
}
.card h3 { margin-bottom: .35em; }
.card p { color: var(--ink-2); font-size: 17px; }

/* ---------- новости ---------- */

.page-title { font-size: clamp(34px, 5vw, 56px); margin-bottom: 28px; }
.crumbs { margin: 0 0 18px; font-size: 16px; }
.crumbs a { color: var(--ink-2); }
.crumbs a::before { content: "← "; }

.news-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.news-head h2 { margin: 0; }

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 36px 24px;
}

.news-card {
    display: flex;
    flex-direction: column;
    color: var(--ink);
    text-decoration: none;
}
.news-card:hover { color: var(--ink); }
.news-card:hover .news-title { color: var(--accent); }
.news-card:hover .news-pic img { transform: scale(1.04); }
.news-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.news-pic {
    display: block;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    border-radius: var(--r);
    background: var(--paper-3);
    margin-bottom: 16px;
}
.news-pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-pic.ph {
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 60%),
        var(--paper-2);
    border: 1px solid var(--line);
}
.news-pic.ph span {
    font-family: var(--serif);
    font-size: clamp(26px, 3vw, 34px);
    font-weight: 600;
    color: color-mix(in srgb, var(--accent) 70%, var(--ink-2));
    transition: transform .5s ease;
}
.news-card:hover .news-pic.ph span { transform: scale(1.04); }

.news-body { display: flex; flex-direction: column; gap: 6px; }
.news-date { color: var(--ink-2); font-size: 15px; letter-spacing: .02em; }
.news-title { font-family: var(--serif); font-size: clamp(21px, 2.2vw, 26px); font-weight: 600; line-height: 1.2; }
.news-lead { color: var(--ink-2); font-size: 17px; }
.news-more { color: var(--accent); font-size: 16px; font-weight: 500; margin-top: 4px; }

/* Одна новость — не карточка в углу, а широкий блок: фото слева, текст справа. */
@media (min-width: 760px) {
    .news-grid.one { grid-template-columns: 1fr; }
    .news-grid.one .news-card { display: grid; grid-template-columns: minmax(0, 1.1fr) 1fr; gap: 40px; align-items: center; }
    .news-grid.one .news-pic { margin: 0; }
    .news-grid.one .news-title { font-size: clamp(26px, 3vw, 34px); }
}

.news-cover { margin: 0 0 32px; }
.news-cover img { width: 100%; border-radius: var(--r); }
.news-text { font-size: 19px; }
.news-text p { margin: 0 0 1.1em; }
.news-text + .cta { margin-top: 36px; }

/* ---------- меню ---------- */

/* Вкладки разделов. Ряд выходит за поля до краёв экрана, чтобы на телефоне
   было видно: дальше есть ещё. Листать — пальцем, стрелками или ползунком снизу. */
.chips-nav {
    position: relative;
    margin: 0 calc(var(--gut) * -1) 18px;
}
.chips {
    position: relative;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 4px var(--gut) 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}
/* С JS родную полосу заменяет свой ползунок: родная на Windows — серая
   с треугольниками и не меняет цвет в тёмной теме. */
.js .chips { padding-bottom: 4px; scrollbar-width: none; }
.js .chips::-webkit-scrollbar { display: none; }

/* Края ряда растворяются, а не обрезают вкладку посередине. */
.chips-nav::before,
.chips-nav::after {
    content: "";
    position: absolute;
    top: 0;
    height: 52px;
    width: 72px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity .25s ease;
}
.chips-nav::before { left: 0; background: linear-gradient(90deg, var(--paper) 35%, transparent); }
.chips-nav::after { right: 0; background: linear-gradient(270deg, var(--paper) 35%, transparent); }
.chips-nav.can-prev::before,
.chips-nav.can-next::after { opacity: 1; }

.chips-arrow {
    position: absolute;
    top: 8px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: none;
    place-items: center;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--paper);
    color: var(--ink);
    box-shadow: var(--shadow);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: scale(.7);
    transition: opacity .2s ease, transform .2s ease, visibility .2s, background .2s ease, color .2s ease, border-color .2s ease;
}
/* Сама кнопка маленькая, а попасть по ней можно, как по обычной в 44 px. */
.chips-arrow::before { content: ""; position: absolute; inset: -5px; }
.chips-arrow.prev { left: 6px; }
.chips-arrow.next { right: 6px; }
.chips-arrow:hover { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.chips-arrow:active { transform: scale(.92); }
.js .chips-arrow { display: grid; }
.chips-nav.can-prev .chips-arrow.prev,
.chips-nav.can-next .chips-arrow.next {
    opacity: 1;
    visibility: visible;
    transform: none;
}

/* Ползунок прокрутки вкладок: тонкая дорожка, кирпичная полоска.
   За него можно тянуть, по дорожке — щёлкнуть. */
.chips-track {
    position: relative;
    display: none;
    height: 16px;
    margin: 6px var(--gut) 0;
    cursor: pointer;
    touch-action: none;
}
.js .chips-nav.scrollable .chips-track { display: block; }
.chips-track::before,
.chips-thumb {
    position: absolute;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    border-radius: 100px;
    transition: height .2s ease, margin .2s ease, box-shadow .2s ease;
}
.chips-track::before {
    content: "";
    left: 0;
    right: 0;
    background: var(--paper-3);
}
.chips-thumb {
    left: 0;
    width: 30%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    will-change: transform;
}
.chips-track:hover::before,
.chips-track.drag::before,
.chips-track:hover .chips-thumb,
.chips-track.drag .chips-thumb { height: 6px; margin-top: -3px; }
.chips-track:hover .chips-thumb,
.chips-track.drag .chips-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }
.chips-track.drag { cursor: grabbing; }

.chip {
    flex: none;
    min-height: 44px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--paper);
    color: var(--ink);
    font: 500 16px/1 var(--sans);
    cursor: pointer;
    white-space: nowrap;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--paper);
}

.search {
    width: 100%;
    min-height: 52px;
    padding: 0 18px;
    font: 400 18px/1 var(--sans);
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
    margin-bottom: 24px;
}
.search::placeholder { color: var(--ink-2); }

.cat { margin-top: clamp(40px, 6vw, 72px); }
.cat:first-of-type { margin-top: 28px; }
.cat > h2 { margin-bottom: 6px; }
.cat-note { color: var(--ink-2); font-size: 17px; margin: 0 0 24px; }

.dishes { list-style: none; margin: 0; padding: 0; }
.dish { margin: 0; }

/* Плитки с фото. Фото грузятся по мере прокрутки и в размере под экран:
   400 px на обычном, 800 px на экране с плотными пикселями. */
.dishes.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 34px 20px;
}
@media (max-width: 640px) {
    .dishes.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 12px; }
}

.dish-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    border-radius: var(--r);
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.dish-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

.dish-pic {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: var(--r);
    background: var(--paper-3);
    transition: box-shadow .3s ease;
}
.dish-pic img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .45s ease, transform .7s cubic-bezier(.2, .7, .3, 1);
}
/* Фото проявляется, когда догрузилось, а не рисуется построчно поверх заглушки. */
.js .dish-pic img { opacity: 0; }
.js .dish-pic img.ok { opacity: 1; }

.dish-ph {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 30%;
    max-width: 60px;
    transform: translate(-50%, -50%);
    color: var(--ink-2);
    opacity: .4;
}

/* Блюдо без фото среди плиток с фото: не пустая заглушка, а плашка, как вкладыш
   в бумажном меню, — двойная рамка, виньетки и состав блюда курсивом. */
.dish-plate {
    display: flex;
    align-items: center;
    justify-content: center;
    container-type: inline-size;
    background:
        radial-gradient(130% 100% at 50% 0%, color-mix(in srgb, var(--paper) 60%, transparent), transparent 72%),
        color-mix(in srgb, var(--paper-2) 45%, var(--paper-3));
}
.dish-plate::before {
    content: "";
    position: absolute;
    inset: 10px;
    border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
    outline: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
    outline-offset: 3px;
    border-radius: 2px;
    pointer-events: none;
    transition: border-color .3s ease, outline-color .3s ease;
}
.dish-plate-in {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    padding: 20px 24px;
    text-align: center;
}
.dish-orn { flex: none; width: 62px; height: 9px; color: var(--accent); opacity: .75; }
.dish-plate-text {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    overflow: hidden;
    color: var(--ink);
    font-family: var(--serif);
    /* Кегль — от ширины плитки: состав помещается и в узкой колонке, и в широкой. */
    font-size: clamp(13px, 6.6cqi, 16px);
    font-style: italic;
    line-height: 1.38;
    text-wrap: balance;
}
.dish-plate-initial {
    color: var(--accent);
    font-family: var(--serif);
    font-size: 64px;
    font-style: italic;
    line-height: .9;
}
.dish-card:hover .dish-plate::before {
    border-color: color-mix(in srgb, var(--accent) 70%, transparent);
    outline-color: color-mix(in srgb, var(--accent) 30%, transparent);
}

/* На телефоне плитка вдвое меньше: виньетки уступают место тексту, рамка остаётся. */
@media (max-width: 640px) {
    .dish-plate::before { inset: 6px; outline-offset: 2px; }
    .dish-plate-in { padding: 12px 14px; }
    .dish-plate-text { line-height: 1.28; }
    .dish-orn:has(+ .dish-plate-text), .dish-plate-text + .dish-orn { display: none; }
    .dish-orn { width: 44px; height: 7px; }
    .dish-plate-initial { font-size: 46px; }
}

.dish-card:hover .dish-pic { box-shadow: var(--shadow); }
.dish-card:hover .dish-pic img { transform: scale(1.05); }
.dish-card:hover .dish-name { color: var(--accent); }

.dish-card .dish-name { display: block; margin-top: 12px; font-size: 19px; }
.dish-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 6px;
}
.dish-weight { color: var(--ink-2); font-size: 15px; }
.dish-card .dish-price { font-size: 18px; }
.dish-pic .dish-qty { position: absolute; top: 10px; left: 10px; box-shadow: var(--shadow); }

@media (max-width: 640px) {
    .dish-card .dish-name { margin-top: 9px; font-size: 17px; }
    .dish-weight { font-size: 14px; }
    .dish-card .dish-price { font-size: 16px; }
}

/* Строки — для разделов без фото: название и цена, как в бумажном меню. */
.dishes.rows {
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 56px;
    max-width: 820px;
}

/* На широком экране список читается в две колонки, как разворот бумажного. */
@media (min-width: 980px) {
    .dishes.rows { grid-template-columns: 1fr 1fr; max-width: none; }
}

.dish-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    padding: 15px 10px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: var(--r) var(--r) 0 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: background .2s ease;
}
.dish-row:hover { background: var(--paper-2); }
.dish-row:hover .dish-name { color: var(--accent); }
.dish-row:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.dish-name {
    font-family: var(--serif);
    font-size: 20px;
    font-weight: 600;
    line-height: 1.25;
    transition: color .2s ease;
}
.dish-dots {
    flex: 1 1 auto;
    border-bottom: 1px dotted var(--line);
    transform: translateY(-5px);
    min-width: 12px;
}
.dish-price {
    font-weight: 600;
    font-size: 19px;
    white-space: nowrap;
}

/* Сколько порций уже в заказе — видно, не открывая карточку. */
.dish-qty {
    align-self: center;
    padding: 3px 9px;
    border-radius: 100px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
}

/* ---------- карточка блюда ---------- */

.dish-sheet { padding: 0; }
.dish-sheet-body { padding: 28px 24px calc(28px + env(safe-area-inset-bottom)); }

/* Большое фото — от края до края окна. Под ним уже скачанная плитка
   (фон ставит site.js): пока большое грузится, окно не пустое. */
.dish-sheet-media {
    position: relative;
    aspect-ratio: 3 / 2;
    max-height: 58vh;
    width: 100%;
    background: var(--paper-3) center / cover no-repeat;
}
.dish-sheet-pic {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .35s ease;
}
.dish-sheet-pic.ok { opacity: 1; }

.dish-sheet .sheet-x {
    z-index: 2;
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    backdrop-filter: blur(6px);
    box-shadow: var(--shadow);
}

/* На широком экране фото слева, описание справа: всё видно без прокрутки. */
@media (min-width: 900px) {
    .dish-sheet.has-pic {
        max-width: 980px;
        display: grid;
        grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    }
    .dish-sheet.has-pic .dish-sheet-media { aspect-ratio: 4 / 3; max-height: none; height: 100%; }
    .dish-sheet.has-pic .dish-sheet-body {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px 32px 32px;
    }
}

.dish-sheet h3 { font-size: clamp(24px, 4vw, 32px); margin: 0 0 12px; padding-right: 46px; }

.dish-sheet-line {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.dish-sheet-line span { color: var(--ink-2); font-size: 16px; }
.dish-sheet-line b { font-family: var(--serif); font-size: 26px; }

.dish-sheet-desc { color: var(--ink-2); margin: 16px 0 24px; white-space: pre-line; }
.dish-sheet-desc:empty { display: none; }
.dish-slow { margin: 0 0 20px; color: var(--accent); font-size: 16px; font-weight: 500; }

.sheet-x {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 100px;
    background: var(--paper-2);
    color: var(--ink);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background .2s ease, transform .2s ease;
}
.sheet-x:hover { background: var(--paper-3); transform: rotate(90deg); }

.empty { padding: 48px 0; color: var(--ink-2); font-size: 19px; }

/* ---------- пиво ---------- */

/* Подразделы внутри вкладки «Бар»: разливное по стилям и безалкогольное. */
.cat > .sub + .sub { margin-top: 52px; }
.sub-title { font-size: clamp(23px, 2.6vw, 30px); margin: 26px 0 8px; }
.beer-group {
    margin: 30px 0 0;
    font: 600 14px/1.4 var(--sans);
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ink-2);
}

.beers { list-style: none; margin: 8px 0 0; padding: 0; max-width: 820px; }

@media (min-width: 980px) {
    .beers { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; max-width: none; }
}

.beer {
    display: grid;
    grid-template-columns: 6px 1fr auto;
    gap: 0 18px;
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}
.beer-color { border-radius: 100px; grid-row: 1 / span 2; }
.beer-name { font-family: var(--serif); font-size: 21px; font-weight: 600; }
.beer-origin { color: var(--ink-2); font-size: 15px; }
.beer-desc { color: var(--ink-2); font-size: 16px; grid-column: 2; margin: 6px 0 0; }
.beer-price { text-align: right; white-space: nowrap; font-weight: 600; }
.beer-price small { display: block; font-weight: 400; font-size: 14px; color: var(--ink-2); }
.beer-ours {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 8px;
    border-radius: 100px;
    background: var(--accent);
    color: var(--on-accent);
    font: 600 12px/1.6 var(--sans);
    vertical-align: 2px;
}

/* ---------- сеты ---------- */

/* Первый раздел меню. Карточка — кнопка: открывает окно с крупным фото и составом. */
.sets {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.set-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--paper);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.set-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.set-card:hover .set-name { color: var(--accent); }
.set-card:hover .dish-pic img { transform: scale(1.04); }
.set-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.set-card .dish-pic { border-radius: 0; flex: none; }
.set-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.set-name { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.2; transition: color .2s ease; }
.set-lines { display: block; margin: 12px 0 18px; color: var(--ink-2); font-size: 16px; }
.set-lines > span { display: block; padding: 3px 0 3px 18px; position: relative; }
.set-lines > span::before { content: "·"; position: absolute; left: 4px; color: var(--accent); font-weight: 700; }
.set-price { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; }
.set-price b { font-size: 25px; font-family: var(--serif); }
.set-save { color: var(--accent); font-size: 15px; font-weight: 600; }
@media (max-width: 640px) {
    .sets { grid-template-columns: 1fr; gap: 16px; }
    .set-body { padding: 18px 18px 20px; }
}

/* ---------- таблица ---------- */

.tbl { width: 100%; border-collapse: collapse; margin-top: 24px; }
.tbl td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl td:last-child { text-align: right; white-space: nowrap; font-weight: 600; padding-left: 16px; }
.tbl .d { color: var(--ink-2); font-size: 16px; margin-top: 4px; }

details.block {
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r);
}
details.block > summary {
    cursor: pointer;
    padding: 18px 22px;
    min-height: 44px;
    font-weight: 600;
    font-size: 18px;
}
details.block > div { padding: 0 22px 22px; }

/* ---------- самовывоз ---------- */

.tiers {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 28px 0;
}
.tier {
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 16px 22px;
    background: var(--paper);
    min-width: 150px;
}
.tier span { display: block; color: var(--ink-2); font-size: 15px; }
.tier b { font-family: var(--serif); font-size: 29px; color: var(--accent); }

.calc {
    border: 1px solid var(--line);
    border-radius: var(--r);
    padding: 26px;
    background: var(--paper);
    max-width: 560px;
}
.calc label { display: block; font-weight: 600; margin-bottom: 10px; font-size: 17px; }
.calc input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    font: 600 20px/1 var(--sans);
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.bar { height: 8px; border-radius: 100px; background: var(--paper-3); margin: 20px 0 14px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .25s; }
.calc-res { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 17px; }
.calc-res b { font-size: 21px; font-family: var(--serif); }
.calc-hint { margin-top: 10px; color: var(--accent); font-weight: 600; font-size: 16px; min-height: 1.6em; }

.steps {
    counter-reset: s;
    list-style: none;
    padding: 0;
    margin: 36px 0 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}
.steps li { counter-increment: s; padding-top: 44px; position: relative; color: var(--ink-2); font-size: 17px; }
.steps li::before {
    content: counter(s);
    position: absolute;
    top: 0;
    left: 0;
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 100px;
    background: var(--accent);
    color: var(--on-accent);
    font: 600 17px/1 var(--sans);
}
.steps b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

/* ---------- отзыв и рейтинг ---------- */

.rating {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: inherit;
}
.rating-num {
    font-family: var(--serif);
    font-size: 54px;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}
.rating-txt { font-size: 17px; color: var(--ink-2); }
.rating-txt b { display: block; color: var(--ink); font-size: 19px; }
.rating-count { display: block; margin-top: 4px; font-size: 15px; color: var(--ink-2); }

blockquote.quote {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(22px, 2.6vw, 30px);
    font-style: italic;
    line-height: 1.4;
    max-width: 48ch;
    border-left: 2px solid var(--accent);
    padding-left: 26px;
}
blockquote.quote footer { font: 500 16px/1.5 var(--sans); font-style: normal; color: var(--ink-2); margin-top: 14px; }

/* ---------- FAQ ---------- */

.faq-sec { margin-top: 44px; }
.faq-sec > h3 { font-size: 21px; color: var(--ink-2); font-family: var(--sans); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 20px 44px 20px 0;
    position: relative;
    font-family: var(--serif);
    font-size: clamp(19px, 2vw, 22px);
    font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: "";
    position: absolute;
    right: 8px;
    top: 50%;
    width: 11px;
    height: 11px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: translateY(-70%) rotate(45deg);
    transition: transform .2s;
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq .answer { padding: 0 44px 22px 0; color: var(--ink-2); max-width: 70ch; }

/* ---------- контакты и карта ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 28px;
    margin-top: 36px;
}
.contact-grid dt { font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px; }
.contact-grid dd { margin: 0 0 22px; font-size: 18px; }
.contact-grid dd a { font-weight: 600; }

.map-card {
    margin-top: 40px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    background: var(--paper);
}
.map-card iframe { display: block; width: 100%; height: 420px; border: 0; }
.map-note {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 28px;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-top: 1px solid var(--line);
}
.map-addr { font-size: 18px; }
.map-addr b { display: block; font-family: var(--serif); font-size: 21px; }

@media (max-width: 720px) {
    .map-card iframe { height: 320px; }
}

/* ---------- форма ---------- */

.form { max-width: 560px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 17px; }
.field input {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    font: 400 18px/1 var(--sans);
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
/* Красная рамка только после того, как гость сам испортил значение:
   у поля даты нет placeholder, и со старым правилом оно краснело сразу. */
.field input:user-invalid { border-color: var(--accent); }
.field .hint { font-size: 15px; color: var(--ink-2); margin-top: 6px; }
.field-err { color: var(--accent); font-size: 16px; font-weight: 500; margin-top: 6px; }

/* Списки и текст в форме брони — такие же крупные, как поля ввода. */
.field select,
.field textarea {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    font: 400 18px/1.3 var(--sans);
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--r);
}
.field textarea { min-height: 0; padding: 12px 16px; line-height: 1.5; resize: vertical; }
.field select:user-invalid { border-color: var(--accent); }
.field label .opt { font-weight: 400; color: var(--ink-2); }
.field .check { display: flex; align-items: center; gap: 12px; margin: 0; font-weight: 500; cursor: pointer; }
.field .check input { flex: none; width: 24px; height: 24px; min-height: 0; padding: 0; accent-color: var(--accent); }

/* Форма брони — тремя шагами: когда, где сесть, на кого записать. */
.book-step { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.book-step legend {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    margin-bottom: 16px;
    font: 600 22px/1.25 var(--serif);
}
.book-no {
    display: inline-grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--on-accent);
    font: 600 16px/1 var(--sans);
}
.book-when { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 16px; }
.book-when .field { margin-bottom: 12px; }
.book-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 16px; }
.book-step > .hint { font-size: 15px; color: var(--ink-2); }
.book-sub { color: var(--ink-2); max-width: 640px; }
.book-form.full { max-width: none; }
.book-form.full .field,
.book-form.full .book-when,
.book-form.full .book-two { max-width: 640px; }
.book-bday-date { margin-top: 12px; }
.book-picked { min-height: 1.65em; margin: 0; font-weight: 600; }
.book-form .hall { margin-top: 16px; }
.book-cards { margin-top: 56px; }

.plan-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    list-style: none;
    margin: 4px 0 10px;
    padding: 0;
    color: var(--ink-2);
    font-size: 15px;
}
.plan-legend li { display: flex; align-items: center; gap: 8px; }
.plan-legend i {
    width: 18px;
    height: 14px;
    border: 1px solid var(--accent);
    border-radius: 3px;
    background: color-mix(in srgb, var(--accent) 13%, var(--paper));
}
.plan-legend .lg-sel { background: var(--accent); }
.plan-legend .lg-busy { background: var(--paper-3); border-color: var(--line); }
.plan-legend .lg-small { opacity: .4; }

/* ASP.NET рисует сводку ошибок всегда — пустую рамку прячем. */
.validation-summary-valid { display: none; }

.ok-box, .err-box {
    border: 1px solid var(--accent);
    border-left-width: 4px;
    border-radius: var(--r);
    padding: 22px 24px;
    background: var(--paper-2);
    margin-bottom: 28px;
    max-width: 640px;
}
.ok-box h3 { margin-bottom: .3em; }
.ok-box p:last-child, .err-box p:last-child { margin-bottom: 0; }

/* ---------- самовывоз: оформление и страница заказа ---------- */

.pk { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) {
    .pk { grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); gap: 48px; }
    /* «Прилипает» только сводка рядом с формой: на странице заказа она шла перед кнопками
       и при прокрутке наезжала на них. */
    .pk > .pk-sum { grid-column: 2; grid-row: 1; position: sticky; top: 96px; }
    .pk > .pk-form { grid-column: 1; grid-row: 1; }
}
.pk-sum { padding: 24px; }
/* Сводка заказа и формы стоят на месте — без «подпрыгивания» карточек при наведении. */
.pk-sum.card:hover, .pk-login.card:hover, .acc-profile.card:hover { transform: none; box-shadow: none; }
.pk-sum .tot { padding-bottom: 8px; }
.pk-sum-t { font-size: 24px; margin-bottom: 12px; }
.pk-lines { list-style: none; margin: 0; padding: 0; }
.pk-lines li {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}
.pk-name { flex: 1; font-size: 17px; }
.pk-name small { display: block; color: var(--ink-2); font-size: 14px; }
.pk-qty { color: var(--ink-2); white-space: nowrap; }
.pk-line-sum { min-width: 84px; text-align: right; font-weight: 600; white-space: nowrap; }
.pk-cook {
    margin: 4px 0 14px;
    padding: 12px 14px;
    border-radius: var(--r);
    background: var(--paper-2);
    color: var(--ink-2);
    font-size: 15px;
}
.pk-cook b { display: block; color: var(--ink); font-size: 16px; }
.pk-warn { color: var(--accent); font-weight: 500; }

.pk-code-h, .pk-h1 { font-size: clamp(34px, 5vw, 56px); }
/* Код заказа — как на талоне: рубленый шрифт, цифры одной ширины и высоты. */
.pk-code {
    display: inline-block;
    padding: .06em .34em;
    border-radius: var(--r);
    background: var(--accent);
    color: var(--on-accent);
    font-family: var(--sans);
    font-size: .82em;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: .08em;
    font-variant-numeric: lining-nums tabular-nums;
    vertical-align: .05em;
}

/* «Дорожка» заказа: пройденные шаги закрашены, текущий подсвечен. */
.pk-track {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 8px 0 32px;
    padding: 0;
    counter-reset: pk;
}
.pk-track li { position: relative; padding: 40px 8px 0 0; color: var(--ink-2); font-size: 15px; }
.pk-track li::before {
    counter-increment: pk;
    content: counter(pk);
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--paper);
    font-weight: 700;
}
.pk-track li::after {
    content: "";
    position: absolute;
    top: 14px;
    left: 30px;
    right: 0;
    height: 2px;
    background: var(--line);
}
.pk-track li:last-child::after { display: none; }
.pk-track b { display: block; color: var(--ink); font-size: 17px; }
.pk-track li.done::before { content: "✓"; border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.pk-track li.done::after { background: var(--accent); }
.pk-track li.now::before { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
.pk-track li.now b { color: var(--accent); }
@media (max-width: 560px) {
    .pk-track { grid-template-columns: 1fr; gap: 14px; }
    .pk-track li { padding: 2px 0 0 44px; }
    .pk-track li::after { top: 30px; left: 14px; right: auto; width: 2px; height: calc(100% - 16px); }
}

.pk-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 28px; }
.pk-facts > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.pk-facts span { display: block; color: var(--ink-2); font-size: 15px; }
.pk-facts b { display: block; font-family: var(--serif); font-size: 24px; line-height: 1.25; }
.pk-facts small { display: block; color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.pk-order .pk-sum { max-width: 640px; }
.pk-order .cta form { display: contents; }

/* Корзина: «− 2 +» — обычные ссылки, работают и без JS. */
[data-pk-cart] .pk-lines li { align-items: center; }
.pk-name small.pk-slow, .line-name small.pk-slow { color: var(--accent); font-weight: 500; }
.pk-step-ctl { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.pk-step-ctl b { min-width: 30px; text-align: center; }
.pk-step {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--ink);
    font-size: 20px;
    line-height: 1;
    text-decoration: none;
}
a.pk-step:hover { border-color: var(--ink-2); background: var(--paper-2); color: var(--ink); }
.pk-step.off { opacity: .35; }
.pk-sum-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
@media (max-width: 560px) {
    [data-pk-cart] .pk-lines li { flex-wrap: wrap; row-gap: 8px; }
    [data-pk-cart] .pk-name { flex-basis: 100%; }
    [data-pk-cart] .pk-line-sum { margin-left: auto; }
}
.pk-login h2, .pk-call h2 { font-size: clamp(24px, 3vw, 30px); }
/* Заказ на сайте ещё не запущен: корзина собрана, осталось позвонить. */
.pk-call { padding: 28px; }
.pk-call.card:hover { transform: none; box-shadow: none; }
.pk-call .cta { margin-top: 20px; }
.pk-call .soon { margin-top: 20px; }

/* «Скоро» — анонс того, чего на сайте пока нет. */
.soon {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 14px;
    max-width: 62ch;
    padding: 14px 18px;
    border: 1px dashed color-mix(in srgb, var(--accent) 55%, var(--line));
    border-radius: var(--r);
    color: var(--ink-2);
    font-size: 17px;
}
.soon b {
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.pk-login .form { margin-top: 20px; }
.field .label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 17px; }
.pk-phone { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-height: 52px; margin: 0; }

/* Вход по номеру и «Мои заказы». */
.acc { max-width: 760px; }
.acc-form { margin-top: 8px; }
.field input.acc-code {
    max-width: 200px;
    font-size: 28px;
    letter-spacing: .3em;
    text-align: center;
    font-variant-numeric: tabular-nums;
}
.acc-shown { font-size: 22px; letter-spacing: .15em; }
.acc-resend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 20px; font-size: 16px; }
.link-btn {
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font: inherit;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    cursor: pointer;
}
.link-btn:hover { color: var(--accent-2); }
.acc-h { font-size: clamp(24px, 3vw, 30px); margin: 0 0 14px; }
.acc-orders { list-style: none; margin: 0 0 36px; padding: 0; border-top: 1px solid var(--line); }
.acc-order { display: flex; align-items: center; gap: 12px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.acc-order-main { flex: 1; display: flex; align-items: flex-start; gap: 16px; min-width: 0; color: var(--ink); text-decoration: none; }
.acc-order-main:hover { color: var(--ink); }
.acc-order-main:hover b { color: var(--accent); }
.acc-order .pk-code { flex: none; margin-top: 3px; font-size: 18px; }
.acc-order-what { display: flex; flex-direction: column; min-width: 0; line-height: 1.4; }
.acc-order-what span { color: var(--ink-2); font-size: 16px; }
.acc-order-what small { overflow: hidden; color: var(--ink-2); font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.acc-profile { margin-top: 12px; }
.acc-name { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 12px; max-width: none; }
.acc-name .field { flex: 1 1 240px; margin-bottom: 12px; }
.acc-name .btn { margin-bottom: 12px; }
.acc-exit { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin: 8px 0 16px; }
.acc-exit form { margin: 0; }

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

.foot {
    background: var(--paper-2);
    border-top: 1px solid var(--line);
    padding: clamp(44px, 6vw, 72px) 0 calc(28px + env(safe-area-inset-bottom));
    font-size: 16px;
}
.foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
}
.foot h3 { font-family: var(--sans); font-size: 14px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
.foot-brand { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1.1; margin-bottom: 14px; }
.foot-alt {
    display: block;
    margin-top: 7px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: .4em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.foot p { color: var(--ink-2); }
.plain { list-style: none; margin: 0; padding: 0; }
.plain li { padding: 7px 0; }
.plain a { color: var(--ink); text-decoration: none; }
.plain a:hover { color: var(--accent); text-decoration: underline; }

.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: var(--r);
    color: var(--ink-2);
}
.social a:hover { color: var(--accent); border-color: var(--accent); }

.legal {
    margin: 40px 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--ink-2);
    font-size: 14px;
    max-width: 90ch;
}
.legal-org { display: block; margin-top: 10px; }

@media (max-width: 860px) {
    .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
    .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- всегда видимые телефон и бронь ---------- */

.dock {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 45;
    display: none;
    gap: 8px;
    padding: 10px var(--gut) calc(10px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
}
.dock-btn {
    flex: 1;
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid var(--ink);
    border-radius: var(--r);
    color: var(--ink);
    background: var(--paper);
    font: 600 16px/1 var(--sans);
    text-decoration: none;
}
.dock-btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }

/* На узких экранах шапка прячет телефон и кнопку — их показывает док. */
@media (max-width: 1040px) {
    .dock { display: flex; }
    body { padding-bottom: 76px; }
}

/* ---------- корзина самовывоза ---------- */

.cartbar {
    position: fixed;
    right: var(--gut);
    bottom: 22px;
    z-index: 46;
    display: none;
    align-items: center;
    gap: 16px;
    padding: 12px 14px 12px 20px;
    border-radius: 100px;
    background: var(--ink);
    color: var(--paper);
    box-shadow: var(--shadow);
}
.cartbar.on { display: flex; }
.cartbar-sum { font-size: 16px; line-height: 1.3; }
.cartbar-sum b { font-size: 18px; }
.cartbar-sum small { display: block; color: rgba(255, 255, 255, .7); font-size: 13px; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .cartbar-sum small { color: rgba(0, 0, 0, .6); }
}
:root[data-theme="dark"] .cartbar-sum small { color: rgba(0, 0, 0, .6); }
.cartbar button {
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: 100px;
    background: var(--accent);
    color: var(--on-accent);
    font: 600 16px/1 var(--sans);
    cursor: pointer;
}

@media (max-width: 1040px) {
    .cartbar { bottom: calc(84px + env(safe-area-inset-bottom)); left: var(--gut); right: var(--gut); }
}

.ov {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: flex-end;
    justify-content: center;
    background: rgba(20, 14, 10, .55);
}
.ov.on { display: flex; }
@media (min-width: 720px) { .ov { align-items: center; } }

.sheet {
    position: relative;
    width: 100%;
    max-width: 560px;
    max-height: 86vh;
    overflow: auto;
    background: var(--paper);
    border-radius: var(--r) var(--r) 0 0;
    padding: 28px 24px calc(28px + env(safe-area-inset-bottom));
}
@media (min-width: 720px) { .sheet { border-radius: var(--r); } }

.lines { margin: 18px 0; }
.line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-name { flex: 1; font-size: 17px; }
.line-name small { display: block; color: var(--ink-2); font-size: 14px; }
.qty { display: flex; align-items: center; gap: 2px; }
.qty button {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    font-size: 20px;
    cursor: pointer;
    border-radius: var(--r);
}
.qty span { min-width: 34px; text-align: center; font-weight: 600; }
.line-sum { min-width: 90px; text-align: right; font-weight: 600; }

.tot { padding: 16px 0; font-size: 18px; }
.tot div { display: flex; justify-content: space-between; padding: 5px 0; }
.tot .big { font-family: var(--serif); font-size: 25px; font-weight: 700; padding-top: 12px; border-top: 1px solid var(--line); margin-top: 8px; }

.row2 { display: flex; flex-wrap: wrap; gap: 10px; }
.row2 .btn { flex: 1 1 auto; }

.toast {
    margin-top: 14px;
    color: var(--accent);
    font-weight: 600;
    min-height: 1.6em;
}


/* ---------- схема зала ---------- */

.hall {
    margin-top: 28px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--paper);
    padding: clamp(16px, 3vw, 28px);
}
.hall + .hall { margin-top: 20px; }

.hall-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 20px;
    margin-bottom: 18px;
}
.hall-head h3 { margin: 0; font-size: 24px; }
.hall-head span { color: var(--ink-2); font-size: 16px; }
.hall-head:last-child { margin-bottom: 0; }

/* Закрытая веранда: без схемы, только пометка — переключают в админке. */
.hall.closed { background: var(--paper-2); border-style: dashed; }
.hall.closed .hall-head { margin-bottom: 8px; }
.hall-head .hall-off {
    padding: 3px 12px;
    border-radius: 999px;
    background: var(--paper-3);
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
}
.hall-closed { margin: 0; color: var(--ink-2); }

/* На телефоне план не ужимается до нечитаемого — его сдвигают вбок. */
.hall-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.hall svg { display: block; width: 100%; min-width: 680px; height: auto; }
.hall-swipe { display: none; }
@media (max-width: 760px) { .hall-swipe { display: inline; } }

/* Номер стола и посадка читаются прямо на плане. */
.hall .zone { fill: var(--paper-2); stroke: var(--line); }
.hall .tbl-shape {
    fill: color-mix(in srgb, var(--accent) 13%, var(--paper));
    stroke: var(--accent);
    stroke-width: 1.1;
    transition: fill .2s ease;
}
.hall .seat { fill: var(--ink-2); opacity: .5; }
.hall .tbl-no { fill: var(--ink); font: 600 13px/1 var(--sans); text-anchor: middle; }
.hall .tbl-seats { fill: var(--ink-2); font: 500 10px/1 var(--sans); text-anchor: middle; }
.hall .bar-shape { fill: var(--paper-3); stroke: var(--line); }
.hall .bar-text { fill: var(--ink-2); font: 600 13px/1 var(--sans); text-anchor: middle; letter-spacing: .1em; }
.hall g.tbl:hover .tbl-shape { fill: var(--accent); }
.hall g.tbl:hover .tbl-no,
.hall g.tbl:hover .tbl-seats { fill: var(--on-accent); }

.hall-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 24px;
    margin-top: 16px;
    color: var(--ink-2);
    font-size: 16px;
}

/* Схема в форме брони: свободный стол выбирается нажатием,
   занятые, маленькие для компании и небронируемые — бледные. */
.hall .bar-seat .tbl-no { font-size: 11px; }
.book-form g.tbl[role="button"] { cursor: pointer; }
.book-form g.tbl:focus { outline: none; }
.book-form g.tbl:focus-visible .tbl-shape { stroke-width: 3; }
.hall g.tbl.sel .tbl-shape { fill: var(--accent); }
.hall g.tbl.sel .tbl-no { fill: var(--on-accent); }
.hall g.tbl.busy .tbl-shape,
.hall g.tbl.busy:hover .tbl-shape { fill: var(--paper-3); stroke: var(--line); }
.hall g.tbl.busy .tbl-no,
.hall g.tbl.busy:hover .tbl-no { fill: var(--ink-2); }
.hall g.tbl.busy .seat { opacity: .2; }
.hall g.tbl.small,
.hall g.tbl.off { opacity: .4; }
.hall g.tbl.small:hover .tbl-shape,
.hall g.tbl.off:hover .tbl-shape { fill: color-mix(in srgb, var(--accent) 13%, var(--paper)); }
.hall g.tbl.small:hover .tbl-no,
.hall g.tbl.off:hover .tbl-no { fill: var(--ink); }

/* ---------- движение ---------- */
/* Анимации включаются только при работающем JS (класс js на html):
   без него блоки с .reveal остались бы невидимыми. */

.js .reveal,
.js .reveal-group > * {
    opacity: 0;
    transform: translateY(22px);
}
.js .reveal.in,
.js .reveal-group.in > * {
    opacity: 1;
    transform: none;
    transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}

/* Запасной выход, если наблюдатель не сработал: показать без анимации. */
.js .reveal.shown,
.js .reveal-group.shown > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* Соседние карточки появляются друг за другом, а не разом. */
.js .reveal-group.in > *:nth-child(2) { transition-delay: .07s; }
.js .reveal-group.in > *:nth-child(3) { transition-delay: .14s; }
.js .reveal-group.in > *:nth-child(4) { transition-delay: .21s; }
.js .reveal-group.in > *:nth-child(5) { transition-delay: .28s; }
.js .reveal-group.in > *:nth-child(n+6) { transition-delay: .35s; }

/* Первый экран: фото медленно отъезжает, текст поднимается следом. */
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes riseIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetIn { from { opacity: 0; transform: translateY(26px) scale(.985); } to { opacity: 1; transform: none; } }

.hero-img { animation: heroZoom 1.6s cubic-bezier(.2, .7, .3, 1) both; }
.hero h1 { animation: riseIn .8s .05s cubic-bezier(.2, .7, .3, 1) both; }
.hero-slogan { animation: riseIn .8s .18s cubic-bezier(.2, .7, .3, 1) both; }
.hero .cta { animation: riseIn .8s .3s cubic-bezier(.2, .7, .3, 1) both; }
.hero-facts { animation: riseIn .8s .42s cubic-bezier(.2, .7, .3, 1) both; }

.top { transition: box-shadow .3s ease; }
.top.scrolled { box-shadow: 0 6px 28px rgba(28, 23, 20, .09); }

.btn { transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.card, .tier { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.tier:hover { border-color: var(--accent); }

.media img, .gal img { transition: transform .6s cubic-bezier(.2, .7, .3, 1); }
.media:hover img { transform: scale(1.03); }
.gal img:hover { transform: scale(1.03); }

.chip { transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease; }
.chip:hover { transform: translateY(-1px); }

.social a, .icon-btn { transition: color .2s ease, border-color .2s ease, transform .2s ease; }
.social a:hover, .icon-btn:hover { transform: translateY(-2px); }

.faq summary { transition: color .2s ease; }
.faq summary:hover { color: var(--accent); }
.faq .answer { animation: riseIn .4s ease both; }

.ov.on { animation: fadeIn .2s ease both; }
.ov.on .sheet { animation: sheetIn .32s cubic-bezier(.2, .7, .3, 1) both; }

.rating { transition: transform .25s ease; }
.rating:hover { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
    .js .reveal, .js .reveal-group > * { opacity: 1 !important; transform: none !important; }
}

@media print {
    .top, .dock, .cartbar, .ov, .foot .social, .chips-nav, .search { display: none !important; }
    body { padding: 0; font-size: 12pt; }
    .hero { min-height: auto; color: #000; background: #fff; }
    .hero::after, .hero-img { display: none; }
    .hero h1, .hero-slogan, .hero-alt { color: #000; }
}
