/* ===========================================================================
   Խորովածանոց — main.css
   ---------------------------------------------------------------------------
   Один файл, без сборщика: проект должен ставиться распаковкой архива.
   Порядок: токены -> база -> компоненты -> блоки главной -> страницы ->
   корзина и чекаут -> адаптив.

   Цвета: уголь и огонь. Тёмная шапка, тёплый кремовый фон, красный
   как акцент действия. Зелёный только для «открыто» — его значение
   не должно спорить с кнопками.
   =========================================================================== */

/* --- токены -------------------------------------------------------------- */
:root {
    --ink:        #17120f;   /* уголь — шапка, заголовки */
    --ink-2:      #2a211c;
    --ink-3:      #5c4f47;
    --muted:      #8a7c72;

    --paper:      #faf6f0;   /* фон страницы */
    --card:       #ffffff;
    --line:       #e9e0d5;
    --line-2:     #d8ccbd;

    --fire:       #d93f1e;   /* главное действие */
    --fire-dark:  #b93317;
    --fire-soft:  #fdeee9;
    --amber:      #ef9f1b;   /* хит, акции */
    --herb:       #3f6b48;   /* открыто */
    --herb-soft:  #eaf3ec;

    --r:          14px;      /* радиус карточек */
    --r-s:        10px;
    --r-pill:     999px;

    --sh:         0 1px 2px rgba(23,18,15,.05), 0 8px 24px -12px rgba(23,18,15,.14);
    --sh-2:       0 2px 6px rgba(23,18,15,.08), 0 18px 40px -16px rgba(23,18,15,.2);

    --wrap:       1200px;
    --gap:        clamp(14px, 2.2vw, 26px);

    --sans: "Noto Sans Armenian", "Noto Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Noto Serif Armenian", "Noto Serif", Georgia, serif;
}

/* --- база ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 120px; }

body {
    margin: 0;
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    color: var(--ink-2);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--fire); }

/* 1.3, а не 1.2: у армянского одновременно высокие верхние выносные
   (ղ, ի, փ) и глубокие нижние (ց, ջ, պ, ը). На 1.2 вторая строка
   заголовка ложится на первую — видно на всех заголовках в два слова. */
h1, h2, h3 { font-family: var(--serif); color: var(--ink); line-height: 1.3; margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

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

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.pad { padding-block: clamp(32px, 6vw, 72px); }
.pad-t { padding-top: 20px; }
.muted { color: var(--muted); }
.sr, .skip {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.skip:focus {
    position: fixed; top: 10px; left: 10px; z-index: 100;
    width: auto; height: auto; clip: auto;
    padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--r-s);
}

.h1 {
    font-size: clamp(26px, 4.2vw, 40px);
    margin: 22px 0 14px;
    letter-spacing: -.01em;
}
.lead { font-size: 17px; color: var(--ink-3); margin: 0 0 18px; max-width: 70ch; }
.empty {
    padding: 44px 20px; text-align: center; color: var(--muted);
    background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--r);
}
.big-ico { color: var(--line-2); display: flex; justify-content: center; margin-bottom: 8px; }

/* ===========================================================================
   Шапка
   =========================================================================== */
.hdr { position: sticky; top: 0; z-index: 40; }

.hdr__top { background: var(--ink); color: #e8ded3; font-size: 13px; }
.hdr__top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; }
.hdr__top-right { display: flex; align-items: center; gap: 14px; }

.hdr__status { display: inline-flex; align-items: center; gap: 7px; }
.hdr__status .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.hdr__status.is-open { color: #7ec98d; }
.hdr__status.is-closed { color: #e5a05a; }

.hdr__phone { font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.hdr__phone:hover { color: var(--amber); }

.langs { display: flex; gap: 2px; }
.langs__a {
    padding: 3px 8px; border-radius: var(--r-pill); font-size: 12px;
    font-weight: 600; letter-spacing: .04em; color: #a99c90;
}
.langs__a:hover { color: #fff; background: rgba(255,255,255,.08); }
.langs__a.is-on { color: var(--ink); background: var(--amber); }

.hdr__main { background: var(--ink-2); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06); }
.hdr__main-in { display: flex; align-items: center; gap: 18px; min-height: 68px; }

.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo:hover { color: inherit; }
/* Размер задаёт высота, ширину считает пропорция логотипа (2.96:1).
   width/height в самом теге нужны, чтобы браузер отвёл место под
   картинку заранее и шапка не прыгала при загрузке. */
.logo__img { height: 75px; width: auto; }

.nav { display: flex; gap: 4px; margin-left: auto; }
.nav__a {
    padding: 9px 13px; border-radius: var(--r-s); font-size: 14.5px; font-weight: 500;
    color: #ded3c7; white-space: nowrap;
}
.nav__a:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav__a.is-on { color: #fff; background: rgba(217,63,30,.9); }

.hdr__actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }

.search { display: flex; align-items: center; }
.search__i {
    width: 190px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.18);
    background: rgba(255,255,255,.07); color: #fff;
    border-radius: var(--r-pill) 0 0 var(--r-pill); outline: none;
}
.search__i::placeholder { color: #a2958a; }
.search__i:focus { border-color: var(--amber); background: rgba(255,255,255,.12); }
.search__b {
    display: grid; place-items: center; width: 40px; height: 38px;
    border: 1px solid rgba(255,255,255,.18); border-left: 0; background: rgba(255,255,255,.07);
    color: #e8ded3; border-radius: 0 var(--r-pill) var(--r-pill) 0;
}
.search__b:hover { background: var(--fire); border-color: var(--fire); color: #fff; }

.cartbtn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: var(--r-pill);
    background: var(--fire); color: #fff; font-weight: 600; font-size: 14.5px;
    white-space: nowrap; transition: background .15s;
}
.cartbtn:hover { background: var(--fire-dark); color: #fff; }
.cartbtn__n {
    min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill);
    background: rgba(0,0,0,.25); display: grid; place-items: center;
    font-size: 12.5px; font-variant-numeric: tabular-nums;
}

/* полоса категорий */
.catbar { background: var(--card); border-bottom: 1px solid var(--line); }
.catbar__in {
    display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none;
    padding-block: 9px;
}
.catbar__in::-webkit-scrollbar { display: none; }
.catbar__a {
    padding: 7px 14px; border-radius: var(--r-pill); font-size: 14px; font-weight: 500;
    color: var(--ink-3); background: var(--paper); white-space: nowrap; flex-shrink: 0;
}
.catbar__a:hover { background: var(--fire-soft); color: var(--fire); }
.catbar__a.is-on { background: var(--ink); color: #fff; }

.burger { display: none; }

/* боковое меню на телефоне */
.drawer { position: fixed; inset: 0; z-index: 60; }
.drawer__bg { position: absolute; inset: 0; background: rgba(23,18,15,.55); }
.drawer__panel {
    position: absolute; inset-block: 0; left: 0; width: min(330px, 86vw);
    background: var(--paper); padding: 22px 20px; overflow-y: auto;
    display: flex; flex-direction: column; gap: 18px;
    animation: slide .2s ease;
}
@keyframes slide { from { transform: translateX(-100%); } }
.drawer__x {
    position: absolute; top: 10px; right: 12px; width: 36px; height: 36px;
    border: 0; background: none; font-size: 28px; line-height: 1; color: var(--ink-3);
}
.drawer__nav { display: flex; flex-direction: column; gap: 2px; margin-top: 26px; }
.drawer__nav a {
    padding: 11px 12px; border-radius: var(--r-s); font-weight: 600;
    font-family: var(--serif); font-size: 17px;
}
.drawer__nav a:hover { background: var(--card); }
.drawer__cats { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); }
.drawer__cats a {
    padding: 6px 12px; border-radius: var(--r-pill); background: var(--card);
    border: 1px solid var(--line); font-size: 13.5px;
}
.drawer__foot { margin-top: auto; display: grid; gap: 8px; }

/* ===========================================================================
   Боковая корзина
   ===========================================================================
   Выезжает справа — так привычнее по доставкам, и большой палец на телефоне
   дотягивается. z-index 65: выше бокового меню (60), но ниже тоста (70)
   и зума (80), иначе сообщение об ошибке спрячется за шторкой.
   =========================================================================== */
.cartdr { position: fixed; inset: 0; z-index: 65; }
.cartdr[hidden] { display: none; }
.cartdr__bg { position: absolute; inset: 0; background: rgba(23,18,15,.55); }
.cartdr__panel {
    position: absolute; inset-block: 0; right: 0; width: min(420px, 94vw);
    background: var(--paper); display: flex; flex-direction: column;
    animation: slide-right .2s ease;
}
@keyframes slide-right { from { transform: translateX(100%); } }

.cartdr__top {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 14px 18px; background: var(--card); border-bottom: 1px solid var(--line);
}
.cartdr__h { font-size: 19px; }
.cartdr__x {
    width: 36px; height: 36px; border: 0; background: none;
    font-size: 28px; line-height: 1; color: var(--ink-3);
}
.cartdr__x:hover { color: var(--fire); }

/* Прокручивается только середина: шапка и кнопка «оформить» всегда на виду. */
.cartdr__scroll { flex: 1; overflow-y: auto; padding: 4px 18px 18px; }

.drline {
    display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 12px;
    padding: 14px 0; border-bottom: 1px solid var(--line);
}
.drline__img { width: 62px; height: 52px; object-fit: cover; border-radius: var(--r-s); }
.drline__mid { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-width: 0; }
.drline__name { font-family: var(--serif); font-weight: 700; font-size: 15px; line-height: 1.35; color: var(--ink); }
.drline__opt { font-size: 12.5px; color: var(--muted); line-height: 1.4; }
.drline__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }
.drline__sum { font-family: var(--serif); font-weight: 700; font-size: 15px; white-space: nowrap; }
.drline__x { padding: 0; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--muted); }
.drline__x:hover { color: var(--fire); }
.drempty { padding: 48px 0; text-align: center; color: var(--muted); }

/* Компактный счётчик: тот же .qty, но ростом под строку шторки. */
.qty--sm .qty__b, .qty__b--sm { width: 32px; min-height: 32px; font-size: 16px; }
.qty__v { min-width: 30px; text-align: center; font-weight: 600; font-size: 14px; }

.cartdr__rec { margin-top: 18px; padding-top: 16px; border-top: 2px solid var(--line); }
.cartdr__rec[hidden] { display: none; }
.cartdr__rh { font-size: 15px; margin: 0 0 12px; }
.recs { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 10px; }
.rec {
    position: relative; padding: 8px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--r-s);
}
.rec__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; margin-bottom: 6px; }
.rec__name {
    font-size: 12.5px; line-height: 1.35; color: var(--ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rec__price { font-family: var(--serif); font-weight: 700; font-size: 14px; margin-top: 4px; padding-right: 34px; }
.rec__add {
    position: absolute; right: 7px; bottom: 7px; width: 34px; height: 34px;
    padding: 0; border: 0; border-radius: 50%; background: none; line-height: 0;
    transition: transform .15s;
}
.rec__add img { width: 100%; height: 100%; }
.rec__add:hover { transform: scale(1.08); }
.rec__add[disabled] { opacity: .5; pointer-events: none; }

.cartdr__foot {
    display: grid; gap: 10px; padding: 14px 18px 18px;
    background: var(--card); border-top: 1px solid var(--line);
}
.cartdr__foot[hidden] { display: none; }
.cartdr__sum { display: flex; align-items: baseline; justify-content: space-between; font-size: 15px; }
.cartdr__sum strong { font-family: var(--serif); font-size: 20px; color: var(--ink); }
.cartdr__full { text-align: center; font-size: 14px; color: var(--muted); }
.cartdr__full:hover { color: var(--fire); }

.notice { background: var(--amber); color: #3a2a06; font-size: 14px; font-weight: 500; }
.notice .wrap { padding-block: 9px; }

/* ===========================================================================
   Кнопки, бейджи, таблетки
   =========================================================================== */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border: 1px solid transparent; border-radius: var(--r-s);
    font-weight: 600; font-size: 14.5px; text-align: center;
    transition: background .15s, border-color .15s, color .15s;
}
.btn--main { background: var(--fire); border-color: var(--fire); color: #fff; }
.btn--main:hover { background: var(--fire-dark); border-color: var(--fire-dark); color: #fff; }
.btn--line { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); background: var(--card); color: var(--ink); }
.btn--ghost { background: var(--card); border-color: var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--line-2); color: var(--ink); }
.btn--dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-2); color: #fff; }
.btn--off { background: var(--paper); border-color: var(--line); color: var(--muted); cursor: not-allowed; }
.btn--lg { padding: 14px 24px; font-size: 16px; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.badge {
    display: inline-block; padding: 3px 9px; border-radius: var(--r-pill);
    font-size: 11.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.5;
}
.badge--hit { background: var(--amber); color: #3a2a06; }
.badge--new { background: var(--herb); color: #fff; }
.badge--sale { background: var(--fire); color: #fff; }
.badge--stop { background: var(--ink-3); color: #fff; }
.badge--spicy { background: var(--fire-soft); color: var(--fire); }

.pill { padding: 4px 11px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; }
.pill--ok { background: var(--herb-soft); color: var(--herb); }
.pill--off { background: #f6ece0; color: #9a6a26; }

.tag {
    padding: 4px 10px; border-radius: var(--r-pill); background: var(--paper);
    border: 1px solid var(--line); font-size: 12.5px; color: var(--ink-3);
}

.alert { padding: 12px 15px; border-radius: var(--r-s); font-size: 14.5px; margin: 14px 0; }
.alert--warn { background: #fdf3e4; color: #8a5a12; border: 1px solid #f3dcb6; }
.alert--err  { background: var(--fire-soft); color: var(--fire-dark); border: 1px solid #f6cfc3; }
.alert--ok   { background: var(--herb-soft); color: var(--herb); border: 1px solid #c9e2cf; }

/* ===========================================================================
   Секции
   =========================================================================== */
.sec { padding-block: clamp(28px, 4.5vw, 54px); }
.sec__h { font-size: clamp(21px, 2.8vw, 30px); margin: 0 0 18px; }
.sec__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec__head .sec__h { margin: 0; }
.sec__more { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--fire); }

/* первый экран */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; }
.hero__bg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; opacity: .42;
}
.hero--nopic {
    background:
        radial-gradient(900px 420px at 18% -10%, rgba(217,63,30,.5), transparent 70%),
        radial-gradient(700px 360px at 90% 110%, rgba(239,159,27,.33), transparent 70%),
        var(--ink);
}
.hero__in { position: relative; padding-block: clamp(50px, 9vw, 110px); }
.hero__text { max-width: 640px; }
.hero__h {
    color: #fff; font-size: clamp(30px, 6vw, 56px); letter-spacing: -.02em;
    margin: 0 0 14px;
}
.hero__p { font-size: clamp(16px, 2vw, 19px); color: #e2d6c9; margin: 0 0 26px; max-width: 48ch; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hero .btn--line { border-color: rgba(255,255,255,.35); color: #fff; }
.hero .btn--line:hover { background: rgba(255,255,255,.12); border-color: #fff; color: #fff; }
.hero__facts {
    list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px;
    margin: 30px 0 0; padding: 0; font-size: 14.5px; color: #cfc2b4;
}
.hero__facts li { display: inline-flex; align-items: center; gap: 7px; }
.hero__facts svg { color: var(--amber); }

/* плитки категорий */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--gap); }
.cat {
    position: relative; display: block; border-radius: var(--r); overflow: hidden;
    background: var(--ink-2); box-shadow: var(--sh); aspect-ratio: 16 / 11;
}
.cat:hover { color: #fff; }
.cat:hover img { transform: scale(1.06); }
.cat__pic { position: absolute; inset: 0; }
.cat__pic img { width: 100%; height: 100%; object-fit: cover; opacity: .72; transition: transform .35s; }
.cat::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(10,7,5,.88) 0%, rgba(10,7,5,.1) 62%);
}
.cat__name {
    position: absolute; left: 14px; right: 44px; bottom: 12px; z-index: 1;
    font-family: var(--serif); font-weight: 700; font-size: 17px; color: #fff;
}
.cat__n {
    position: absolute; right: 12px; bottom: 12px; z-index: 1;
    min-width: 26px; height: 26px; padding: 0 7px; border-radius: var(--r-pill);
    background: rgba(255,255,255,.18); backdrop-filter: blur(3px);
    display: grid; place-items: center; font-size: 12.5px; color: #fff;
}

/* почему мы */
.sec--usp { padding-block: clamp(22px, 3vw, 34px); }
.usps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.usp {
    display: flex; gap: 12px; padding: 16px; background: var(--card);
    border: 1px solid var(--line); border-radius: var(--r);
}
.usp__i {
    flex-shrink: 0; width: 42px; height: 42px; border-radius: 11px;
    display: grid; place-items: center; background: var(--fire-soft); color: var(--fire);
}
.usp__h { display: block; font-size: 15px; color: var(--ink); }
.usp__t { font-size: 13.5px; color: var(--muted); }

/* баннер */
.banner {
    position: relative; overflow: hidden; border-radius: var(--r);
    background: var(--ink-2); color: #fff; min-height: 240px;
    display: flex; align-items: center;
}
.banner--nopic {
    background:
        radial-gradient(600px 300px at 80% 120%, rgba(239,159,27,.42), transparent 70%),
        linear-gradient(110deg, #221a15, #3a2317);
}
.banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.banner__text { position: relative; padding: clamp(24px, 4vw, 44px); max-width: 560px; }
.banner__h { color: #fff; font-size: clamp(22px, 3.2vw, 32px); margin: 0 0 10px; }
.banner__p { color: #e2d6c9; margin: 0 0 20px; }

/* о заведении */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 48px); align-items: center; }
.about__p { font-size: 16.5px; color: var(--ink-3); margin: 0 0 22px; }
.about__pic { border-radius: var(--r); overflow: hidden; box-shadow: var(--sh); }
.about__pic img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.about__pic--nopic {
    aspect-ratio: 4/3; display: grid; place-items: center;
    background: linear-gradient(140deg, #f3e7d8, #e8d6c0); color: #c89b6a; box-shadow: none;
}

/* филиалы на главной */
.branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: var(--gap); }
.branch {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r); overflow: hidden;
}
/* Фото необязательно: без него .branch__body даёт ту же рамку, что раньше. */
.branch__img {
    width: 100%; aspect-ratio: 16 / 10; object-fit: cover;
    border-bottom: 1px solid var(--line);
}
.branch__body { padding: 18px; }
.branch__h { font-size: 18px; margin: 0 0 10px; }
.branch__addr, .branch__phone, .branch__status {
    margin: 0 0 7px; font-size: 14px; color: var(--ink-3);
    display: flex; align-items: center; gap: 7px;
}
.branch__addr svg { color: var(--fire); flex-shrink: 0; }
.branch__status { font-weight: 600; }
.branch__status.is-open { color: var(--herb); }
.branch__status.is-closed { color: #9a6a26; }
.branch__map { font-size: 14px; font-weight: 600; color: var(--fire); }

/* ===========================================================================
   Карточка блюда
   =========================================================================== */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: var(--gap); }

.card {
    display: flex; flex-direction: column; overflow: hidden;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--sh-2); transform: translateY(-2px); border-color: var(--line-2); }
.card.is-stop { opacity: .62; }
.card.is-stop:hover { transform: none; box-shadow: var(--sh); }

.card__media { position: relative; display: block; background: var(--paper); }
.card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.card__badges { position: absolute; top: 10px; left: 10px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.card__spicy {
    position: absolute; top: 10px; right: 10px; width: 28px; height: 28px;
    border-radius: 50%; background: rgba(255,255,255,.92); color: var(--fire);
    display: grid; place-items: center;
}

.card__body { display: flex; flex-direction: column; flex: 1; padding: 14px; gap: 6px; }
.card__name { font-size: 16.5px; line-height: 1.42; }
.card__excerpt {
    margin: 0; font-size: 13.5px; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--muted); }
.card__prep { display: inline-flex; align-items: center; gap: 4px; }
.card__w { font-weight: 600; color: var(--ink-3); }

.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }

/* Круглая кнопка «в корзину»: цена слева, кнопка справа.
   Картинка — цельный assets/img/add-to-cart.svg со своим красным кругом,
   поэтому у кнопки нет ни фона, ни рамки: она только рамка для картинки. */
.cartadd {
    flex-shrink: 0; width: 46px; height: 46px; padding: 0;
    border: 0; border-radius: 50%; background: none; line-height: 0;
    transition: transform .15s, filter .15s;
}
.cartadd img { width: 100%; height: 100%; }
.cartadd:hover { transform: scale(1.07); filter: brightness(1.06); }
.cartadd:active { transform: scale(.96); }
.cartadd[disabled] { opacity: .5; pointer-events: none; }
.card__price { display: flex; flex-direction: column; line-height: 1.28; }
.card__now { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--ink); }
.card__from { font-weight: 600; font-size: 15px; color: var(--ink); }
.card__old { font-size: 13px; color: var(--muted); }
.card__foot .btn { padding: 9px 14px; font-size: 13.5px; }

/* ===========================================================================
   Хлебные крошки, якоря
   =========================================================================== */
.crumbs { display: flex; flex-wrap: wrap; gap: 7px; font-size: 13px; color: var(--muted); padding-top: 16px; }
.crumbs a:hover { color: var(--fire); }

.anchors { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 26px; }
.anchors a {
    padding: 7px 14px; border-radius: var(--r-pill); background: var(--card);
    border: 1px solid var(--line); font-size: 13.5px; font-weight: 500;
}
.anchors a:hover { border-color: var(--fire); color: var(--fire); }

.menucat { padding-block: clamp(18px, 3vw, 32px); }
.menucat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.menucat__head .sec__h { margin: 0; }
.menucat__desc { margin: -6px 0 16px; color: var(--muted); font-size: 14.5px; }

/* ===========================================================================
   Страница блюда
   =========================================================================== */
.prod { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 48px); padding-block: 22px 40px; }
/* Карусель блюда.
   Листание держится на scroll-snap, а не на JS: на телефоне это родной
   свайп с инерцией, и при выключенном JS карусель всё равно листается.
   JS только доводит до кадра по стрелке и подсвечивает миниатюру. */
.gal { position: relative; }
.gal__track {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    border-radius: var(--r); box-shadow: var(--sh); scrollbar-width: none;
}
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { flex: 0 0 100%; scroll-snap-align: start; display: block; cursor: zoom-in; }
.gal__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.gal__nav {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
    display: grid; place-items: center; width: 38px; height: 38px;
    border: 0; border-radius: 50%; background: rgba(255,255,255,.9);
    color: var(--ink); box-shadow: var(--sh); transition: background .15s;
}
.gal__nav:hover { background: #fff; color: var(--fire); }
.gal__nav--prev { left: 10px; transform: translateY(-50%) rotate(180deg); }
.gal__nav--next { right: 10px; }

.gal__thumbs {
    display: flex; gap: 8px; margin-top: 10px;
    overflow-x: auto; scrollbar-width: none;
}
.gal__thumbs::-webkit-scrollbar { display: none; }
.gal__thumb {
    flex: 0 0 auto; width: 76px; height: 60px; padding: 0;
    border: 2px solid transparent; border-radius: var(--r-s);
    overflow: hidden; background: none;
}
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumb.is-on, .gal__thumb:hover { border-color: var(--fire); }

/* Зум. Поверх всего, включая тост (70): это модальное окно.
   Клик по фото переключает «вписано / во всю величину», и тогда
   .lb__stage прокручивается — увеличенное фото можно возить. */
.lb { position: fixed; inset: 0; z-index: 80; background: rgba(10, 7, 5, .93); }
.lb[hidden] { display: none; }
.lb__stage {
    position: absolute; inset: 0; overflow: auto; padding: 20px;
    display: grid; place-items: center; -webkit-overflow-scrolling: touch;
}
.lb__img { max-width: 100%; max-height: calc(100vh - 40px); border-radius: 4px; cursor: zoom-in; }
.lb__img.is-zoomed { max-width: none; max-height: none; width: 180%; cursor: zoom-out; }
.lb__x {
    position: absolute; top: 8px; right: 14px; z-index: 2;
    width: 44px; height: 44px; border: 0; background: none;
    font-size: 34px; line-height: 1; color: #fff;
}

.prod__badges { display: flex; flex-wrap: wrap; gap: 6px; }
.prod__h { font-size: clamp(25px, 3.6vw, 36px); margin: 10px 0 10px; letter-spacing: -.01em; }
.prod__lead { font-size: 16.5px; color: var(--ink-3); margin: 0 0 16px; }
.prod__meta { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14.5px; }
.prod__meta strong { font-weight: 600; }
.prod__block { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.prod__block p { margin: 0; color: var(--ink-3); }

/* Описание: раскрывается по клику. Текст бывает на десять абзацев,
   и без сворачивания кнопка «В корзину» уезжает за экран. */
.disc__sum {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    cursor: pointer; list-style: none;
    font-family: var(--serif); font-weight: 700; font-size: 16px; line-height: 1.35;
    color: var(--ink);
}
.disc__sum::-webkit-details-marker { display: none; }   /* свой треугольник Safari */
.disc__sum::marker { content: ''; }
.disc__sum:hover { color: var(--fire); }
.disc__ic { color: var(--muted); flex-shrink: 0; transform: rotate(90deg); transition: transform .2s; }
.disc[open] .disc__ic { transform: rotate(-90deg); }
.disc__body { padding-top: 12px; }
.prod__h3 { font-size: 16px; margin: 0 0 7px; }

/* выбор порции и добавок */
.buy { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.opts, .mods { border: 0; margin: 0 0 16px; padding: 0; }
.opts__h, .mods__h { font-family: var(--serif); font-weight: 700; font-size: 15px; color: var(--ink); padding: 0 0 8px; }
.req { color: var(--fire); }
.opts__row, .mods__row { display: flex; flex-wrap: wrap; gap: 8px; }

.opt, .mod { position: relative; cursor: pointer; }
.opt input, .mod input { position: absolute; opacity: 0; width: 0; height: 0; }

.opt__b {
    display: flex; flex-direction: column; gap: 2px; min-width: 104px;
    padding: 10px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-s);
    transition: border-color .15s, background .15s;
}
.opt__n { font-size: 14px; font-weight: 600; }
.opt__p { font-size: 13px; color: var(--muted); }
.opt input:checked + .opt__b { border-color: var(--fire); background: var(--fire-soft); }
.opt input:checked + .opt__b .opt__p { color: var(--fire-dark); }
.opt input:focus-visible + .opt__b { outline: 2px solid var(--fire); outline-offset: 2px; }

.mod__b {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px; border: 1.5px solid var(--line-2); border-radius: var(--r-pill);
    font-size: 13.5px; transition: border-color .15s, background .15s;
}
.mod__p { color: var(--muted); font-size: 12.5px; }
.mod input:checked + .mod__b { border-color: var(--fire); background: var(--fire-soft); color: var(--fire-dark); }
.mod input:checked + .mod__b .mod__p { color: var(--fire-dark); }
.mod input:focus-visible + .mod__b { outline: 2px solid var(--fire); outline-offset: 2px; }

.buy__foot { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.buy__add { flex: 1; min-width: 170px; justify-content: space-between; }
.buy__ic { flex-shrink: 0; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-s); overflow: hidden; }
.qty__b { width: 40px; height: 100%; min-height: 44px; border: 0; background: var(--paper); color: var(--ink-3); display: grid; place-items: center; }
.qty__b:hover { background: var(--fire-soft); color: var(--fire); }
.qty__i {
    width: 46px; height: 44px; border: 0; text-align: center; background: var(--card);
    font-weight: 600; -moz-appearance: textfield;
}
.qty__i::-webkit-outer-spin-button, .qty__i::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ===========================================================================
   Корзина и чекаут
   =========================================================================== */
.cols { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .95fr); gap: var(--gap); align-items: start; padding-bottom: 50px; }

.lines { display: flex; flex-direction: column; gap: 10px; }
.line {
    display: grid; grid-template-columns: 84px 1fr auto; gap: 14px; align-items: center;
    padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
}
.line__img { width: 84px; height: 68px; object-fit: cover; border-radius: var(--r-s); }
.line__name { font-family: var(--serif); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.line__opt { font-size: 13px; color: var(--muted); }
.line__mods { font-size: 12.5px; color: var(--muted); margin: 3px 0 0; }
.line__right { display: flex; align-items: center; gap: 12px; }
.line__sum { font-weight: 700; font-family: var(--serif); font-size: 16px; white-space: nowrap; }
.line__x { border: 0; background: none; color: var(--muted); padding: 6px; }
.line__x:hover { color: var(--fire); }
.line .qty__i { height: 36px; width: 40px; }
.line .qty__b { min-height: 36px; width: 32px; }

.sum {
    position: sticky; top: 120px; padding: 20px;
    background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh);
}
.sum__h { font-size: 19px; margin: 0 0 14px; }
.sum__row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 14.5px; }
.sum__row--total {
    margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line);
    font-family: var(--serif); font-weight: 700; font-size: 20px; color: var(--ink);
}
.sum__row--free span:last-child { color: var(--herb); font-weight: 600; }
.sum .btn { margin-top: 16px; }

.promo { display: flex; gap: 8px; margin: 14px 0 4px; }
.promo input {
    flex: 1; min-width: 0; padding: 10px 12px; border: 1px solid var(--line-2);
    border-radius: var(--r-s); background: var(--paper); text-transform: uppercase;
}
.promo input:focus { border-color: var(--fire); outline: none; background: #fff; }

/* форма */
.form { display: flex; flex-direction: column; gap: 18px; }
.fset { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin: 0; }
.fset__h { font-family: var(--serif); font-weight: 700; font-size: 17px; color: var(--ink); padding: 0 0 14px; }
.frow { display: grid; gap: 12px; }
.frow--2 { grid-template-columns: 1fr 1fr; }
.frow--3 { grid-template-columns: repeat(3, 1fr); }

.field { display: flex; flex-direction: column; gap: 5px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.field input, .field select, .field textarea {
    padding: 11px 13px; border: 1px solid var(--line-2); border-radius: var(--r-s);
    background: var(--paper); outline: none; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--fire); background: #fff; }
.field textarea { min-height: 84px; resize: vertical; }
.field--err input, .field--err select { border-color: var(--fire); }
.field__err { font-size: 12.5px; color: var(--fire); }

/* переключатель «доставка / самовывоз / в зале» */
.segs { display: flex; gap: 8px; flex-wrap: wrap; }
.seg { position: relative; flex: 1; min-width: 120px; cursor: pointer; }
.seg input { position: absolute; opacity: 0; width: 0; height: 0; }
.seg__b {
    display: block; padding: 12px 14px; text-align: center; font-weight: 600; font-size: 14px;
    border: 1.5px solid var(--line-2); border-radius: var(--r-s); transition: border-color .15s, background .15s;
}
.seg input:checked + .seg__b { border-color: var(--fire); background: var(--fire-soft); color: var(--fire-dark); }
.seg input:focus-visible + .seg__b { outline: 2px solid var(--fire); outline-offset: 2px; }

/* способы оплаты, список радиокнопок */
.radios { display: flex; flex-direction: column; gap: 8px; }
.radio { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border: 1.5px solid var(--line-2); border-radius: var(--r-s); cursor: pointer; }
.radio:has(input:checked) { border-color: var(--fire); background: var(--fire-soft); }
.radio input { accent-color: var(--fire); width: 18px; height: 18px; }

/* подтверждение телефона кодом */
.codebox { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.codebox .field { flex: 1; min-width: 150px; }
.code-i { letter-spacing: .35em; font-weight: 700; text-align: center; font-size: 18px; }

/* спасибо за заказ */
.done { max-width: 620px; margin-inline: auto; text-align: center; padding-block: clamp(34px, 6vw, 70px); }
.done__ico {
    width: 74px; height: 74px; margin: 0 auto 18px; border-radius: 50%;
    background: var(--herb-soft); color: var(--herb); display: grid; place-items: center;
}
.done__num {
    display: inline-block; margin: 14px 0 18px; padding: 10px 22px;
    background: var(--card); border: 1px dashed var(--line-2); border-radius: var(--r-s);
    font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--ink);
}

/* ===========================================================================
   Кабинет, страницы, филиалы
   =========================================================================== */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 24px; }
.tabs a {
    padding: 9px 16px; border-radius: var(--r-pill); background: var(--card);
    border: 1px solid var(--line); font-size: 14px; font-weight: 500;
}
.tabs a.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.olist { display: flex; flex-direction: column; gap: 10px; }
.ocard { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.ocard__top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.ocard__num { font-family: var(--serif); font-weight: 700; font-size: 16px; }
.ocard__items { margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-3); }
.ocard__items li { list-style: none; display: flex; justify-content: space-between; gap: 10px; padding: 2px 0; }
.ocard__items ul { margin: 0; padding: 0; }

.st { padding: 4px 11px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; }
.st--new { background: var(--fire-soft); color: var(--fire-dark); }
.st--accepted { background: #eef2fb; color: #3d5a9e; }
.st--cooking { background: #fdf3e4; color: #9a6a26; }
.st--delivering { background: #eef7f0; color: var(--herb); }
.st--done { background: var(--herb-soft); color: var(--herb); }
.st--canceled { background: #f2eeec; color: var(--muted); }

.rte { font-size: 16.5px; color: var(--ink-2); padding-bottom: 40px; }
.rte p { margin: 0 0 15px; }
.rte h2 { font-size: 22px; margin: 28px 0 10px; }
.rte a { color: var(--fire); text-decoration: underline; text-underline-offset: 2px; }
.rte ul, .rte ol { padding-left: 22px; }

.brlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: var(--gap); padding-bottom: 46px; }
.brcard { padding: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.brcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.brcard__h { font-size: 19px; margin: 0; }
.brcard__addr, .brcard__row { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font-size: 14.5px; color: var(--ink-3); }
.brcard__addr svg { color: var(--fire); flex-shrink: 0; }
.brcard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }

.hours { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.hours th { text-align: left; font-weight: 400; color: var(--muted); padding: 4px 0; }
.hours td { text-align: right; padding: 4px 0; font-variant-numeric: tabular-nums; }
.hours .is-today th, .hours .is-today td { font-weight: 700; color: var(--ink); }

.search--big { gap: 8px; margin-bottom: 26px; }
.search--big .search__i {
    width: auto; flex: 1; border-radius: var(--r-s); background: var(--card);
    border-color: var(--line-2); color: var(--ink);
}
.search--big .search__i::placeholder { color: var(--muted); }

/* ===========================================================================
   Подвал
   =========================================================================== */
.ftr { margin-top: 40px; background: var(--ink); color: #c9bcb0; font-size: 14.5px; }
.ftr__grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: clamp(20px, 3vw, 40px); padding-block: clamp(30px, 5vw, 54px);
}
.ftr__h { font-size: 15px; color: #fff; margin: 0 0 12px; font-family: var(--sans); font-weight: 700; letter-spacing: .02em; }
.ftr__h--pay { margin-top: 20px; }
.ftr__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ftr__list a:hover { color: var(--amber); }
.ftr__list .muted { color: #8a7c72; font-size: 13.5px; }
.ftr .logo--ftr { margin-bottom: 12px; }
.ftr__tag { margin: 0 0 14px; color: #8a7c72; }
.ftr__phone { display: inline-block; font-size: 19px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.ftr__phone:hover { color: var(--amber); }
.ftr__soc { display: flex; gap: 8px; }
.ftr__soc a {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(255,255,255,.08); color: #e0d5c9;
}
.ftr__soc a:hover { background: var(--fire); color: #fff; }
.ftr__pay { margin: 0; color: #8a7c72; font-size: 13.5px; }
.ftr__bottom { border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; color: #8a7c72; }
.ftr__bottom .wrap { padding-block: 16px; }

/* всплывающее уведомление «добавлено в корзину» */
.toast {
    position: fixed; z-index: 70; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
    display: flex; align-items: center; gap: 10px;
    padding: 12px 18px; border-radius: var(--r-pill);
    background: var(--ink); color: #fff; box-shadow: var(--sh-2);
    font-size: 14.5px; font-weight: 500; opacity: 0;
    transition: opacity .2s, transform .2s; pointer-events: none;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast svg { color: #7ec98d; }
.toast a { color: var(--amber); font-weight: 700; }

/* ===========================================================================
   Кнопка звонка
   ===========================================================================
   Справа внизу, на всех страницах. z-index ниже шторки корзины (60)
   и тоста (70): поверх открытой корзины кнопка мешала бы, а не помогала.
   =========================================================================== */
.callfab {
    position: fixed; right: 18px; bottom: 18px; z-index: 50;
    display: inline-flex; align-items: center; gap: 10px;
    padding: 10px 18px 10px 11px;
    background: var(--fire); color: #fff; border-radius: var(--r-pill);
    font-weight: 700; font-size: 15px; line-height: 1.4;
    box-shadow: var(--sh-2);
    transition: background .15s, transform .15s;
}
.callfab:hover { background: var(--fire-dark); color: #fff; transform: translateY(-1px); }
.callfab__ic {
    display: grid; place-items: center; flex-shrink: 0;
    width: 28px; height: 28px; border-radius: 50%;
    background: rgba(255,255,255,.18);
}
.callfab__num { white-space: nowrap; }

/* ===========================================================================
   Адаптив
   =========================================================================== */
@media (max-width: 1080px) {
    .nav { display: none; }
    .burger {
        display: grid; gap: 4px; width: 42px; height: 42px; padding: 11px 10px;
        border: 1px solid rgba(255,255,255,.2); border-radius: var(--r-s);
        background: rgba(255,255,255,.06); align-content: center;
    }
    .burger span { display: block; height: 2px; background: #fff; border-radius: 2px; }
    .ftr__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .cols { grid-template-columns: 1fr; }
    .sum { position: static; }
    .prod { grid-template-columns: 1fr; }
    .about { grid-template-columns: 1fr; }
    .about__pic { order: -1; }
}

@media (max-width: 680px) {
    body { font-size: 15.5px; }
    .hdr__main-in { min-height: 60px; gap: 10px; }
    .search { display: none; }
    .cartbtn__label { display: none; }
    .cartbtn { padding: 10px 13px; }
    .logo__img { height: 64px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 12px; }
    .card__body { padding: 11px; }
    .card__name { font-size: 15px; }
    .card__excerpt { -webkit-line-clamp: 2; font-size: 12.5px; }
    .card__foot { flex-direction: column; align-items: stretch; gap: 8px; }
    .card__foot .btn { width: 100%; }
    .cats { grid-template-columns: 1fr 1fr; }
    .frow--2, .frow--3 { grid-template-columns: 1fr; }
    .line { grid-template-columns: 64px 1fr; }
    .line__img { width: 64px; height: 54px; }
    .line__right { grid-column: 1 / -1; justify-content: space-between; }
    .ftr__grid { grid-template-columns: 1fr; }
    .hdr__top-in { font-size: 12px; }
    .hdr__phone { display: none; }

    /* На телефоне номер в шапке скрыт — здесь он тем нужнее, поэтому
       кнопка остаётся с номером, только компактнее. */
    .callfab { right: 12px; bottom: 12px; padding: 9px 15px 9px 10px; font-size: 14px; }
    .callfab__ic { width: 24px; height: 24px; }
}

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

.page-checkout legend{
    margin-bottom: 15px;
}