/* Фирменный стиль «Ленивый вареник» — по брендбуку 1.1 */
:root {
  --brand: #AD5663;        /* основной малиновый */
  --brand-dark: #8F4350;
  --cream: #FBE0D0;        /* основной персиковый */
  --brown: #AE826E;        /* доп. цвет */
  --pink: #C67482;         /* доп. цвет */
  --bg: #FFF7F3;           /* фон */
  --panel: #EEDFD7;        /* плашки */
  --card: #FFFFFF;
  --text: #3E2F2C;
  --muted: #7A6560;
  --line: #EEDFD7;
  --radius: 18px;
  --head: "Comfortaa", "Nunito", sans-serif;
  --body: "Source Sans 3", "Source Sans Pro", Arial, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; overscroll-behavior: none; }
body { padding-bottom: 96px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
.hidden { display: none !important; }

/* ---------- шапка ---------- */
.top { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: 12px 16px 10px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { height: 38px; width: auto; }
.cart-pill { position: relative; border: 0; background: var(--cream); color: var(--brand); border-radius: 14px; height: 44px; min-width: 44px; padding: 0 12px; display: flex; align-items: center; gap: 6px; font-weight: 700; }
.cart-pill svg { width: 22px; height: 22px; }
.search { margin-top: 16px; position: relative; display: block; }
.search input { width: 100%; border: 0; background: var(--card); border-radius: 14px; padding: 12px 14px 12px 42px; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); outline: none; }
.search input:focus { box-shadow: inset 0 0 0 2px var(--pink); }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px 4px; margin: 0 -16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; border-radius: 20px; padding: 9px 14px; background: var(--panel); color: var(--text); font-weight: 600; font-size: 14px; white-space: nowrap; }
.chip.on { background: var(--brand); color: #fff; }

/* ---------- баннер ---------- */
.banner { margin: 6px 16px 4px; border-radius: var(--radius); background: #fff url(img/pattern.png) center/150px; position: relative; overflow: hidden; min-height: 132px; display: flex; align-items: center; }
.banner-in { background: rgba(255, 247, 243, 0.94); margin: 14px; padding: 14px 16px; border-radius: 14px; max-width: 72%; }
.banner h2 { margin: 0 0 4px; font-family: var(--head); font-size: 19px; color: var(--brand); line-height: 1.2; }
.banner p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- каталог ---------- */
.section-title { font-family: var(--head); font-weight: 700; color: var(--brand); font-size: 22px; margin: 18px 16px 10px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 0 16px; }
.card { background: var(--card); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 3px 12px rgba(173, 86, 99, 0.07); }
.card-photo { aspect-ratio: 1 / 1; background: var(--cream); position: relative; border: 0; padding: 0; width: 100%; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.ph img { width: 54%; height: auto; opacity: 0.55; object-fit: contain; }
.badge { position: absolute; left: 8px; top: 8px; background: var(--bg); color: var(--brand); border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.card-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.card-name { border: 0; background: none; padding: 0; text-align: left; font-weight: 700; font-size: 15px; line-height: 1.25; min-height: 38px; }
.card-mass { font-size: 13px; color: var(--muted); }
.card-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 44px; }
.price { font-weight: 700; font-size: 17px; }
.price.none { font-size: 13px; font-weight: 600; color: var(--muted); }
.add { width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.add:disabled { background: var(--panel); color: var(--muted); }
.add svg { width: 20px; height: 20px; }
.stepper { display: flex; align-items: center; background: var(--cream); border-radius: 14px; height: 44px; flex: none; }
.stepper button { width: 38px; height: 44px; border: 0; background: none; color: var(--brand); font-size: 22px; font-weight: 700; }
.stepper span { min-width: 22px; text-align: center; font-weight: 700; color: var(--brand); }
.empty { text-align: center; color: var(--muted); padding: 40px 24px; }
.empty img { width: 120px; margin: 0 auto 12px; opacity: 0.5; }

/* ---------- карточка блюда (лист) ---------- */
.sheet-bg { position: fixed; inset: 0; background: rgba(62, 47, 44, 0.45); z-index: 20; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 24px 24px 0 0; z-index: 21; padding-bottom: 110px; animation: up .22s ease-out; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-photo { aspect-ratio: 4 / 3; background: var(--cream); }
.sheet-photo img { width: 100%; height: 100%; object-fit: cover; }
.sheet-close { position: absolute; right: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,247,243,0.92); color: var(--text); display: flex; align-items: center; justify-content: center; }
.sheet-in { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.sheet h1 { font-family: var(--head); font-size: 22px; line-height: 1.25; margin: 0; color: var(--text); }
.desc { margin: 0; color: var(--muted); line-height: 1.45; }
.variants { display: flex; gap: 8px; flex-wrap: wrap; }
.variant { border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; padding: 10px 14px; text-align: left; min-height: 44px; }
.variant b { display: block; }
.variant small { color: var(--muted); }
.variant.on { box-shadow: inset 0 0 0 2px var(--brand); background: #fff; }
.block { background: var(--card); border-radius: 16px; padding: 14px; }
.block h3 { margin: 0 0 8px; font-size: 15px; font-family: var(--head); color: var(--brand); }
.block p { margin: 0; line-height: 1.5; font-size: 15px; }
.note { font-size: 13px; color: var(--muted); margin-top: 6px !important; }
.allergen { font-weight: 700; color: var(--brand-dark); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag { background: var(--cream); color: #6E3640; border-radius: 8px; padding: 3px 9px; font-size: 13px; font-weight: 600; }
.kbju { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; }
.kbju div { background: var(--bg); border-radius: 12px; padding: 8px 4px; }
.kbju b { display: block; font-size: 17px; }
.kbju small { color: var(--muted); font-size: 12px; }
details.block summary { font-family: var(--head); font-weight: 700; color: var(--brand); font-size: 15px; list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
details.block summary::-webkit-details-marker { display: none; }
details.block summary::after { content: "+"; font-size: 20px; }
details.block[open] summary::after { content: "−"; }
details.block[open] summary { margin-bottom: 8px; }

/* ---------- корзина и оформление ---------- */
.page { padding: 8px 16px 16px; }
.page-title { font-family: var(--head); font-size: 24px; color: var(--brand); margin: 6px 0 14px; }
.line { display: flex; gap: 12px; align-items: center; background: var(--card); border-radius: 16px; padding: 10px; margin-bottom: 10px; }
.line-photo { width: 64px; height: 64px; border-radius: 12px; background: var(--cream); overflow: hidden; flex: none; }
.line-photo img { width: 100%; height: 100%; object-fit: cover; }
.line-photo .ph img { width: 70%; }
.line-info { flex-grow: 1; min-width: 0; }
.line-name { font-weight: 700; font-size: 15px; line-height: 1.25; }
.line-sub { font-size: 13px; color: var(--muted); }
.line-sum { font-weight: 700; margin-top: 2px; }
.warn { background: #FCEFD9; color: #6B4A12; border-radius: 12px; padding: 10px 12px; font-size: 14px; margin-bottom: 10px; }
.totals { background: var(--card); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 700; font-size: 18px; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.link-btn { border: 0; background: none; color: var(--brand); font-weight: 700; padding: 12px 0; }
.form { display: flex; flex-direction: column; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea { border: 0; background: var(--card); border-radius: 14px; padding: 13px 14px; font-size: 16px; box-shadow: inset 0 0 0 1px var(--line); outline: none; width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { box-shadow: inset 0 0 0 2px var(--pink); }
.field.bad input, .field.bad textarea { box-shadow: inset 0 0 0 2px #C0392B; }
.err { color: #A3261A; font-size: 13px; }
.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); background: var(--panel); border-radius: 14px; padding: 4px; }
.seg button { border: 0; background: none; border-radius: 10px; padding: 11px 0; font-weight: 700; color: var(--muted); }
.seg button.on { background: #fff; color: var(--brand); }
.info { background: var(--cream); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.45; }
.done { text-align: center; padding: 40px 24px; }
.done img { width: 180px; margin: 0 auto 16px; }
.done h1 { font-family: var(--head); color: var(--brand); }

/* ---------- нижняя кнопка (вне Telegram) ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px 16px 18px; background: linear-gradient(rgba(255,247,243,0), var(--bg) 30%); z-index: 25; }
.bar button { width: 100%; border: 0; border-radius: 16px; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; padding: 16px; }
.toast { position: fixed; left: 50%; bottom: 100px; transform: translateX(-50%); background: var(--text); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 30; }
.fallback { object-fit: contain !important; padding: 22%; opacity: 0.55; }

/* ================= v1.1: анимации и плавность ================= */
:root { --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.56, .64, 1); }

/* нажатие на всё кликабельное */
button, .chip, .card-photo, .card-name, .variant-opt, .seg button { transition: transform .18s var(--ease), background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), opacity .2s; }
button:active:not(:disabled) { transform: scale(0.94); }
.card { transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.card:has(.card-photo:active), .card:has(.card-name:active) { transform: scale(0.97); }
.card-photo:active:not(:disabled), .card-name:active:not(:disabled) { transform: none; }
.bar button:active, .link-btn:active { transform: scale(0.97); }
.chip.on { box-shadow: 0 4px 12px rgba(173, 86, 99, 0.28); }

/* «пружинка» при добавлении */
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.22); } 100% { transform: scale(1); } }
.pop { animation: pop .35s var(--spring); }
@keyframes badge-in { from { transform: scale(0); } to { transform: scale(1); } }
.cart-pill .cnt { display: inline-block; animation: badge-in .3s var(--spring); }
.stepper { animation: badge-in .25s var(--spring); }

/* появление карточек и экранов */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.grid .card { animation: rise .35s var(--ease) both; }
.page-enter { animation: rise .3s var(--ease) both; }

/* лист блюда */
.sheet { animation: none; overscroll-behavior: none; -webkit-overflow-scrolling: touch; transform-origin: top left; will-change: transform; }
.sheet-bg { animation: fade .3s var(--ease) both; touch-action: none; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* переключатель с бегающей плашкой (граммовка, доставка/самовывоз) */
.switch { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--panel); border-radius: 16px; padding: 4px; }
.switch-ind { position: absolute; top: 4px; bottom: 4px; left: 4px; border-radius: 12px; background: #fff; box-shadow: 0 2px 8px rgba(62, 47, 44, 0.12); transition: transform .35s var(--spring); }
.switch button { position: relative; z-index: 1; border: 0; background: none; border-radius: 12px; padding: 10px 6px; min-height: 48px; color: var(--muted); font-weight: 700; line-height: 1.2; }
.switch button.on { color: var(--brand); }
.switch button small { display: block; font-weight: 600; font-size: 12px; color: var(--muted); }
.switch button:active { transform: scale(0.96); }

/* плавная смена чисел */
.fade-swap { animation: swap .3s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* КБЖУ: на 100 г и на всю упаковку */
.kbju-row + .kbju-row { margin-top: 10px; }
.kbju-cap { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }

/* раскрытие адреса в оформлении */
.collapse { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s var(--ease), opacity .3s; }
.collapse > div { overflow: hidden; }
.collapse.shut { grid-template-rows: 0fr; opacity: 0; }

/* строка корзины при удалении */
.line { transition: opacity .25s, transform .25s var(--ease); }
.line.gone { opacity: 0; transform: translateX(-30px); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
.add b { font-size: 16px; }

/* ================= v1.2 ================= */
html, body { touch-action: manipulation; }          /* без зума по двойному тапу */
body { padding-bottom: 24px; }
body.has-bar { padding-bottom: 130px; }
.line, .totals, .card, .block { -webkit-user-select: none; user-select: none; }

/* лист блюда: выезжает снизу, тянется вниз */
.sheet { transform-origin: center; padding-bottom: 140px; max-height: 94vh; }
.grabber { position: absolute; top: 8px; left: 50%; width: 40px; height: 5px; margin-left: -20px; border-radius: 3px; background: rgba(255, 255, 255, 0.85); box-shadow: 0 1px 4px rgba(0,0,0,.15); z-index: 2; }
.kbju-switch { margin-bottom: 10px; }
.kbju-switch .switch button { min-height: 40px; padding: 8px 6px; font-size: 14px; }
.kbju-mass { font-weight: 600; opacity: .8; }

/* нижняя кнопка: чуть выше, не прыгает — меняется только цена */
.bar { padding: 12px 16px calc(30px + env(safe-area-inset-bottom)); }
.bar button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 56px; box-shadow: 0 6px 18px rgba(173, 86, 99, 0.3); }
.bar button:disabled { opacity: .65; }
.bar .bp { display: inline-block; font-variant-numeric: tabular-nums; }
.bar .bp::before { content: "·"; margin-right: 8px; opacity: .7; }
.bar button:active:not(:disabled) { transform: scale(0.98); }

/* «Вернуться в меню» над заголовком корзины */
.back-pill { display: inline-flex; align-items: center; gap: 4px; border: 0; background: var(--cream); color: var(--brand); border-radius: 12px; padding: 9px 14px 9px 8px; min-height: 40px; font-weight: 700; font-size: 14px; margin: 4px 0 18px; }
.back-pill svg { width: 18px; height: 18px; }
.toast { bottom: calc(120px + env(safe-area-inset-bottom)); }
.sheet-bg { animation: none; }

/* v1.3: ничего не прыгает */
.sheet { height: 94vh; max-height: 94vh; }                 /* лист фиксированной высоты — смена текста его не двигает */
.kbju div { min-height: 58px; display: flex; flex-direction: column; justify-content: center; }
.kbju b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kbju-switch .switch button { white-space: nowrap; font-size: 13px; }
.stepper, .stepper .qty, .line-sum, .price { animation: none !important; font-variant-numeric: tabular-nums; }
.stepper .qty { display: inline-block; min-width: 26px; text-align: center; }

/* v1.4: нижняя кнопка — надпись слева, цена справа; цена не двигает надпись */
.bar button { justify-content: space-between; padding: 16px 22px; }
.bar .bp { animation: none !important; text-align: right; min-width: 90px; }
.bar .bp::before { content: none; }
.bar button:has(.bp.hidden) { justify-content: center; }

/* v1.5 */
.toast { left: 0; right: 0; margin: 0 auto; width: fit-content; max-width: calc(100% - 32px); transform: none; text-align: center; }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fff; border-radius: 16px; padding: 8px 8px 8px 18px; min-height: 64px; box-shadow: 0 6px 18px rgba(62, 47, 44, 0.12); }
.bar-price { display: flex; flex-direction: column; -webkit-user-select: none; user-select: none; }
.bar-price b { font-size: 18px; font-variant-numeric: tabular-nums; }
.bar-price small { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.bar-stepper { display: flex; align-items: center; background: var(--brand); border-radius: 14px; height: 48px; }
.bar-stepper button { width: 48px; height: 48px; border: 0; background: none; color: #fff; font-size: 24px; font-weight: 700; }
.bar-stepper .qty { min-width: 30px; text-align: center; color: #fff; font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.bar .bar-stepper button { width: 48px; height: 48px; min-height: 0; padding: 0; box-shadow: none; border-radius: 12px; background: none; display: flex; align-items: center; justify-content: center; }

/* v1.6: всплывашка — мягко выплывает и растворяется */
.toast { animation: none; }
.toast.toast-in { animation: toast-in .45s cubic-bezier(.22, 1.2, .36, 1) both; }
.toast.toast-out { animation: toast-out .26s ease-in both; }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(.92); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(8px) scale(.96); } }

/* v1.7: действующий заказ над меню, экран «Спасибо» */
.active-order { margin: 6px 16px 10px; background: #fff; border-radius: var(--radius); padding: 14px 16px; box-shadow: inset 0 0 0 2px var(--cream), 0 3px 12px rgba(173, 86, 99, 0.08); }
.active-order summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.active-order summary::-webkit-details-marker { display: none; }
.ao-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ao-badge { background: var(--brand); color: #fff; border-radius: 10px; padding: 4px 10px; font-weight: 700; font-size: 13px; }
.ao-sum { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; }
.ao-when { font-weight: 700; font-family: var(--head); color: var(--brand); font-size: 15px; margin-top: 4px; }
.ao-where { font-size: 14px; color: var(--muted); }
.ao-more { font-size: 13px; color: var(--muted); }
.active-order[open] .ao-more u { text-decoration: none; }
.ao-items { list-style: none; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ao-items li { display: flex; justify-content: space-between; gap: 10px; }
.done-stamp { animation: stamp-in .7s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes stamp-in { from { opacity: 0; transform: scale(.6) rotate(-25deg); } to { opacity: 1; transform: none; } }
.done h1 { line-height: 1.3; }
.done-no { font-weight: 700; font-size: 17px; }

/* v1.8: слоган в шапке, сохранённые адреса */
.top-row { position: relative; }
.tagline { position: absolute; left: 50%; transform: translateX(-50%); font-family: var(--head); font-size: 12px; color: var(--pink); letter-spacing: .02em; white-space: nowrap; pointer-events: none; }
.addr-list { display: flex; flex-direction: column; gap: 8px; }
.addr-row { display: flex; gap: 8px; align-items: stretch; }
.addr { flex: 1; display: flex; align-items: center; gap: 12px; text-align: left; border: 0; background: #fff; border-radius: 14px; padding: 12px 14px; min-height: 52px; box-shadow: inset 0 0 0 1px var(--line); font-size: 15px; line-height: 1.35; }
.addr.on { box-shadow: inset 0 0 0 2px var(--brand); }
.addr .radio { flex: none; width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--panel); transition: box-shadow .2s; }
.addr.on .radio { box-shadow: inset 0 0 0 6px var(--brand); }
.addr b { color: var(--brand); }
.addr-del { flex: none; width: 44px; border: 0; border-radius: 14px; background: var(--panel); color: var(--muted); display: flex; align-items: center; justify-content: center; }
.addr-del svg { width: 16px; height: 16px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); min-height: 32px; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }

/* v1.9: слоган ровно между логотипом и корзиной; страница заказа */
.tagline { position: static; transform: none; flex: 1; text-align: center; }
button.active-order { display: flex; flex-direction: column; gap: 4px; width: calc(100% - 32px); text-align: left; border: 0; font: inherit; color: inherit; }
button.active-order:active { transform: scale(0.98); }
.order-info { background: #fff; border-radius: 16px; padding: 4px 14px; }
.oi-row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; font-size: 15px; }
.oi-row + .oi-row { border-top: 1px solid var(--line); }
.oi-row span { color: var(--muted); flex: none; }
.oi-row b { text-align: right; }
.cancel-btn { width: 100%; border: 0; border-radius: 16px; padding: 15px; background: #fff; color: #A3261A; font-weight: 700; font-size: 16px; box-shadow: inset 0 0 0 2px #F0C9C3; }

/* v2.0 */
html, body { overscroll-behavior-y: auto; }            /* мягкий «отскок» в конце списка */
div.active-order { display: flex; flex-direction: column; gap: 4px; cursor: pointer; transition: transform .18s var(--ease); }
div.active-order:active { transform: scale(0.98); }
.ao-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.ao-open { display: inline-flex; align-items: center; gap: 2px; background: var(--brand); color: #fff; border-radius: 12px; padding: 9px 10px 9px 14px; font-weight: 700; font-size: 14px; box-shadow: 0 4px 12px rgba(173, 86, 99, 0.28); }
.ao-open svg { width: 18px; height: 18px; }

/* v2.1: крупнее нижняя кнопка, сердечко избранного */
.bar button { font-size: 18px; }
.bar .bp { font-size: 18px; }
.bar-price b { font-size: 20px; }
.sheet-fav { position: absolute; left: 12px; top: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,247,243,0.92); color: var(--text); display: flex; align-items: center; justify-content: center; z-index: 2; }
.sheet-fav svg { fill: transparent; transition: fill .25s, color .25s; }
.sheet-fav.on { color: var(--brand); }
.sheet-fav.on svg { fill: var(--pink); }

/* v2.2: профиль */
.top-row { gap: 8px; }
.p-card { background: #fff; border-radius: 18px; padding: 16px; display: flex; align-items: center; gap: 14px; }
.p-ava { width: 56px; height: 56px; border-radius: 50%; background: var(--cream); color: var(--brand); display: flex; align-items: center; justify-content: center; font-family: var(--head); font-weight: 700; font-size: 24px; flex: none; }
.p-who { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.p-who b { font-size: 18px; } .p-who small { font-size: 15px; color: var(--muted); }
.p-edit { border: 0; background: var(--panel); border-radius: 12px; padding: 9px 12px; font-weight: 700; font-size: 14px; }
.p-h { margin: 20px 0 8px; font-family: var(--head); font-size: 17px; color: var(--brand); }
.p-hrow { display: flex; justify-content: space-between; align-items: baseline; }
.p-link { border: 0; background: none; color: var(--brand); font-weight: 700; font-size: 14px; padding: 6px 0; }
.p-active .active-order { margin: 0 0 8px; width: 100%; }
.p-group { background: #fff; border-radius: 16px; display: flex; flex-direction: column; overflow: hidden; }
.p-row { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 14px 16px; text-align: left; width: 100%; min-height: 56px; }
.p-row + .p-row { border-top: 1px solid var(--line); }
.p-row-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.p-row-t b { font-size: 16px; font-weight: 600; } .p-row-t small { font-size: 14px; color: var(--muted); }
.p-chev { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.p-chev svg { width: 18px; height: 18px; } .p-chev i { font-style: normal; }
.p-soon { background: #FCEFD9; color: #6B4A12; border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.p-danger { color: #A3261A; font-weight: 600; font-size: 16px; }
.p-switch { width: 50px; height: 30px; border-radius: 15px; border: 0; background: var(--panel); position: relative; flex: none; padding: 0; }
.p-switch span { position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .25s var(--spring); }
.p-switch.on { background: var(--brand); } .p-switch.on span { transform: translateX(20px); }
.p-favs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.p-fav { border: 0; background: #fff; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; padding: 0; text-align: left; }
.p-fav-ph { height: 82px; background: var(--cream); display: block; } .p-fav-ph img { width: 100%; height: 100%; object-fit: cover; } .p-fav-ph .ph img { width: 54%; height: auto; opacity: .55; }
.p-fav b { padding: 8px; font-size: 13px; line-height: 1.2; }
.p-empty { background: #fff; border-radius: 16px; padding: 14px 16px; color: var(--muted); font-size: 14px; }
.p-foot { text-align: center; font-family: var(--head); font-size: 12px; color: var(--pink); margin: 24px 0 8px; }
.h-card { background: #fff; border-radius: 18px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 10px; }
.h-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.h-top span { display: flex; flex-direction: column; } .h-top small { color: var(--muted); font-size: 14px; } .h-top > b { font-size: 17px; }
.h-thumbs { display: flex; gap: 6px; align-items: center; } .h-thumbs small { color: var(--muted); font-size: 14px; margin-left: 4px; }
.h-th { width: 44px; height: 44px; border-radius: 10px; background: var(--cream); overflow: hidden; display: block; } .h-th img { width: 100%; height: 100%; object-fit: cover; } .h-th .ph img { width: 70%; height: auto; opacity: .55; }
.h-btns { display: flex; gap: 8px; }
.h-repeat { flex: 1; border: 0; background: var(--brand); color: #fff; border-radius: 12px; padding: 12px; font-weight: 700; font-size: 15px; }
.h-more { border: 0; background: var(--panel); border-radius: 12px; padding: 12px 14px; font-weight: 700; font-size: 15px; }
.card-fav { position: absolute; left: 8px; top: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,247,243,0.92); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.card-fav svg { width: 20px; height: 20px; fill: var(--pink); }
.gone-card { opacity: 0; transform: scale(.9); transition: opacity .25s, transform .25s; }

/* v2.3: категории двумя столбиками, без горизонтальной прокрутки */
.cat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 4px 16px 6px; }
.cat-grid .chip { width: 100%; border-radius: 14px; padding: 12px 10px; font-size: 15px; text-align: center; white-space: normal; line-height: 1.2; min-height: 46px; }
.cat-grid .chip:first-child { grid-column: 1 / -1; }

/* ================= v3: дизайн в стиле сайта + нижнее меню ================= */
/* шапка: малиновая полоса, редкие волны с белой кромкой, цветочки внутри */
.brand { margin-bottom: 4px; }
.brand-bar { background: var(--brand); height: 60px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 16px; }
.brand-tag { color: var(--cream); font-family: var(--head); font-size: 11px; line-height: 1.25; }
.brand-logo { background: var(--cream); border-radius: 22px; padding: 5px 12px; }
.brand-logo img { width: 72px; display: block; }
.brand-fl { justify-self: end; position: relative; width: 44px; height: 44px; }
.fl { position: absolute; display: block; }
.fl svg { width: 100%; height: 100%; display: block; }
.fl1 { width: 17px; height: 17px; right: 2px; top: 5px; opacity: .95; }
.fl2 { width: 11px; height: 11px; right: 24px; top: 24px; opacity: .75; }
.brand-edge { height: 15px; background: radial-gradient(circle at 18px 0, var(--brand) 0 13px, #FFFFFF 13.5px 15.5px, transparent 16px) repeat-x 0 0 / 36px 16px; }

/* нижнее меню */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 18; background: rgba(255,247,243,0.97); border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; padding: 6px 8px calc(8px + env(safe-area-inset-bottom)); }
.tab { position: relative; border: 0; background: none; border-radius: 14px; padding: 6px 0 5px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 600; transition: background-color .25s, color .25s, transform .15s; }
.tab svg { width: 22px; height: 22px; }
.tab.on { background: var(--cream); color: var(--brand); }
.tab-badge { position: absolute; top: 1px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 4px; box-sizing: border-box; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
body.has-tabs { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
body.has-tabs.has-bar { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
body.has-tabs .bar { bottom: calc(62px + env(safe-area-inset-bottom)); padding-bottom: 10px; }
body.sheet-open .bar { bottom: 0; padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
.toast { bottom: calc(160px + env(safe-area-inset-bottom)) !important; }

/* главная */
.home { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.home .active-order { margin: 0; width: 100%; }
.home .p-h { margin: 8px 0 -2px; }
.sec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sec-tile { border: 0; background: #fff; border-radius: 18px; padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 5px; min-height: 96px; box-shadow: 0 3px 12px rgba(173,86,99,0.07); }
.sec-tile b { font-size: 15px; } .sec-tile small { font-size: 12px; color: var(--muted); }
.sec-ic { width: 34px; height: 34px; border-radius: 12px; background: var(--cream); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.sec-ic svg { width: 18px; height: 18px; }
.zone-row { width: 100%; border: 0; background: var(--cream); color: var(--brand-dark); border-radius: 16px; padding: 13px 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 15px; text-align: left; }
.zone-row svg { width: 20px; height: 20px; flex: none; } .zone-row span { flex: 1; }
#lines + .zone-row { margin: 2px 0 10px; }

/* каталог */
.cat-top { display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }
.sec-switch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--panel); border-radius: 14px; padding: 4px; }
.sec-switch button { border: 0; background: none; border-radius: 10px; padding: 9px 2px; font-size: 13px; font-weight: 700; color: var(--muted); }
.sec-switch button.on { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(62,47,44,0.1); }
.cat-top .search { margin-top: 0; }

/* значки температуры и сердечко на карточке */
.temps { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; pointer-events: none; }
.temps i { width: 26px; height: 26px; border-radius: 50%; background: rgba(255,247,243,0.92); display: flex; align-items: center; justify-content: center; }
.temps svg { width: 14px; height: 14px; }
.t-snow { color: #7B6A9E; } .t-fire { color: #8F4350; }
.card-fav { left: auto !important; right: 8px; width: 32px !important; height: 32px !important; }
.card-fav svg { width: 17px !important; height: 17px !important; fill: transparent !important; stroke: currentColor; transition: fill .25s; }
.card-fav.on svg { fill: var(--pink) !important; }

/* лист блюда: «как привезти» */
.lbl { font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: -6px; }
.tsw { display: inline-flex; align-items: center; gap: 6px; }
.tsw i { display: flex; } .tsw svg { width: 16px; height: 16px; }

/* зоны доставки */
.zsheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 21; background: var(--bg); border-radius: 24px 24px 0 0; padding: 16px 16px calc(24px + env(safe-area-inset-bottom)); max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.z-head { display: flex; justify-content: space-between; align-items: center; }
.z-head h2 { margin: 0; font-family: var(--head); font-size: 22px; color: var(--brand); }
.z-head .sheet-close { background: var(--panel); }
.z-map { width: 100%; border-radius: 16px; display: block; background: #EFE7DF; min-height: 120px; object-fit: cover; }
.z-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.z-btn { display: flex; align-items: center; gap: 8px; border: 0; background: #fff; border-radius: 14px; padding: 10px; font-size: 14px; font-weight: 600; line-height: 1.2; text-align: left; box-shadow: inset 0 0 0 1px var(--line); }
.z-btn.on { box-shadow: inset 0 0 0 2px var(--brand); }
.z-btn i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }

/* контакты */
a.p-row { color: var(--text); text-decoration: none; }
.tab svg { fill: none; }
body.zones-open #bar { display: none; }
/* белая кромка волн видна за счёт тонкой розовой обводки снаружи */
.brand-edge { height: 18px; background: radial-gradient(circle at 18px 0, var(--brand) 0 12.5px, #FFFFFF 13px 15.5px, #E3B5B9 16px 17px, transparent 17.5px) repeat-x 0 0 / 36px 18px; }
.brand-edge { display: block; width: 100%; height: 22px; background: none; margin-top: -1px; }

/* ================= v4: правки по списку папы + плавные переключения ================= */
/* без «прыжков»: карточки и экраны не выезжают снизу, а мягко проявляются */
.grid .card { animation: none; }
.page-enter, .soft-in { animation: fadein .22s ease both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* переключения кнопок — плавно и с отдачей */
.chip { transition: background-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .18s var(--ease); }
.chip.pop { animation: soft-pop .4s var(--spring); }
@keyframes soft-pop { 0% { transform: scale(1); } 35% { transform: scale(1.06); } 100% { transform: scale(1); } }
.tabs { isolation: isolate; }
.tab-ind { position: absolute; z-index: -1; left: 8px; top: 6px; width: calc((100% - 16px - 16px) / 5); height: calc(100% - 6px - 8px - env(safe-area-inset-bottom)); border-radius: 14px; background: var(--cream); transition: transform .45s var(--spring), opacity .2s; }
.tab.on { background: transparent; }
.tab { transition: color .3s var(--ease), transform .15s; }
.tab svg.pop { animation: soft-pop .4s var(--spring); }
.tab-badge.pop { animation: pop .35s var(--spring); }
.sec-switch { position: relative; isolation: isolate; }
.sec-ind { position: absolute; z-index: -1; left: 4px; top: 4px; bottom: 4px; width: calc((100% - 8px - 12px) / 4); border-radius: 10px; background: #fff; box-shadow: 0 2px 8px rgba(62,47,44,0.1); transition: transform .45s var(--spring); }
.sec-switch button { transition: color .3s var(--ease), transform .15s; }
.sec-switch button.on { background: none; box-shadow: none; }
.switch-ind { transition: transform .35s var(--spring), opacity .25s; }
.switch.empty .switch-ind { opacity: 0; }
.switch.empty button { color: var(--text); }
.switch.need { box-shadow: inset 0 0 0 2px var(--pink); animation: nudge .45s ease; }
@keyframes nudge { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 45% { transform: translateX(5px); } 70% { transform: translateX(-3px); } }
#tempLbl { transition: color .25s; }
#tempLbl.need { color: var(--brand-dark); }
.p-switch, .p-switch span { transition: background-color .3s var(--ease), transform .3s var(--spring); }

/* тост — в цветах вареника */
.toast { display: flex; align-items: center; gap: 8px; background: var(--cream); color: var(--brand-dark); font-weight: 700; font-size: 15px;
  border-radius: 16px; padding: 11px 16px; box-shadow: inset 0 0 0 1.5px var(--pink), 0 8px 22px rgba(173, 86, 99, 0.2); text-align: left; }
.toast-emo { font-size: 22px; line-height: 1; flex: none; }

/* главная: пустые акции и новинки */
.h-empty { border: 2px dashed var(--line); border-radius: 18px; min-height: 84px; display: flex; align-items: center; justify-content: center; color: #B79E95; font-size: 14px; }

/* гарниры в листе блюда */
.garn h3 { margin: 4px 0 10px; font-family: var(--head); font-size: 15px; color: var(--brand); }
.garn-row { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.garn-row::-webkit-scrollbar { display: none; }
.garn-card { flex: none; width: 128px; border: 0; background: #fff; border-radius: 16px; padding: 7px; display: flex; flex-direction: column; gap: 4px; text-align: left; box-shadow: inset 0 0 0 1.5px var(--line); }
.garn-ph { display: block; height: 82px; border-radius: 11px; overflow: hidden; background: var(--cream); }
.garn-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.garn-ph .ph { height: 100%; display: flex; align-items: center; justify-content: center; } .garn-ph .ph img { width: 60%; height: auto; }
.garn-card b { font-size: 13px; line-height: 1.2; min-height: 31px; }
.garn-card small { display: flex; justify-content: space-between; gap: 4px; font-size: 12px; color: var(--muted); }
.garn-card small i { font-style: normal; font-weight: 700; color: var(--text); }

/* корзина */
.cline { align-items: stretch; }
.cline .line-photo { width: 76px; height: 76px; }
.cline .line-info { display: flex; flex-direction: column; gap: 3px; }
.cl-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.cl-del { flex: none; width: 34px; height: 34px; margin: -6px -6px 0 0; border: 0; border-radius: 10px; background: none; color: var(--brand-dark); display: flex; align-items: center; justify-content: center; }
.cl-del svg { width: 20px; height: 20px; }
.cl-del:active { background: var(--cream); }
.cline .line-sub { display: flex; align-items: center; gap: 8px; }
.ttag { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.ttag svg { width: 15px; height: 15px; }
.ttag.f { color: #7B6A9E; } .ttag.w { color: #8F4350; }
.cl-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.cl-bottom .stepper { height: 36px; }
.cl-bottom .stepper button { height: 36px; }

/* оформление: короткий список без фото */
.mini-list { background: #fff; border-radius: 18px; padding: 10px 14px; margin-bottom: 14px; }
.ml-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2px; }
.ml-edit { border: 0; background: none; color: var(--brand); font-weight: 700; font-size: 14px; padding: 4px 0; }
.ml-row { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 7px 0; border-top: 1px solid #F4E8E1; }
.ml-ic { width: 16px; flex: none; display: flex; } .ml-ic i { display: flex; } .ml-ic svg { width: 15px; height: 15px; }
.ml-n { flex: 1; min-width: 0; line-height: 1.25; } .ml-q { color: var(--muted); } .ml-s { min-width: 64px; text-align: right; font-variant-numeric: tabular-nums; }
.share-phone { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font-weight: 700; font-size: 15px; padding: 12px; margin-top: -6px; }
.share-phone svg { width: 18px; height: 18px; }
.check.consent { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); line-height: 1.4; }
.check.consent > span:nth-of-type(1) { flex: 1; }
.check.consent a { color: var(--brand); text-decoration: underline; }
.check.consent .err { flex-basis: 100%; }
.check.consent input { width: 22px; height: 22px; accent-color: var(--brand); margin: 0; flex: none; }
.check.consent.bad input { outline: 2px solid #C0392B; outline-offset: 1px; border-radius: 4px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* «Мои аллергены» */
.alg { background: #fff; border-radius: 18px; margin-top: 12px; overflow: hidden; }
.alg-head { width: 100%; border: 0; background: none; display: flex; align-items: center; gap: 10px; padding: 14px 16px; text-align: left; }
.alg-head .p-row-t { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.alg-head b { font-size: 16px; } .alg-head small { font-size: 13px; color: var(--muted); }
.alg-chev { display: flex; color: #B79E95; transition: transform .35s var(--spring); } .alg-chev svg { width: 18px; height: 18px; }
.alg.open .alg-chev { transform: rotate(90deg); }
.alg-list { padding: 0 10px 8px; display: flex; flex-direction: column; }
.alg-opt { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 9px 6px; font-size: 15px; text-align: left; border-radius: 10px; }
.alg-opt.none { font-weight: 700; border-bottom: 1px solid #F4E8E1; border-radius: 0; margin-bottom: 2px; }
.alg-box { flex: none; width: 22px; height: 22px; border-radius: 7px; box-shadow: inset 0 0 0 1.5px #D9C6BD; display: flex; align-items: center; justify-content: center; color: transparent; transition: background-color .25s var(--ease), box-shadow .25s, color .2s; }
.alg-box.round { border-radius: 50%; }
.alg-box svg { width: 14px; height: 14px; }
.alg-opt.on .alg-box { background: var(--brand); box-shadow: none; color: #fff; }

/* предупреждение об аллергенах */
.modal { position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-bg { position: absolute; inset: 0; background: rgba(62, 47, 44, 0.5); }
.modal-card { position: relative; width: 100%; max-width: 360px; background: #fff; border-radius: 24px; padding: 22px 20px 18px; display: flex; flex-direction: column; gap: 10px; text-align: center; }
.modal-ic { align-self: center; width: 56px; height: 56px; border-radius: 50%; background: var(--cream); color: var(--brand); display: flex; align-items: center; justify-content: center; }
.modal-ic svg { width: 28px; height: 28px; }
.modal-h { font-family: var(--head); font-weight: 700; font-size: 19px; color: var(--brand); }
.modal-card p { margin: 0; font-size: 16px; line-height: 1.4; }
.modal-card small { color: var(--muted); font-size: 13px; }
.modal-card button { border: 0; border-radius: 14px; min-height: 48px; font-weight: 700; font-size: 16px; }
.m-no { background: var(--brand); color: #fff; margin-top: 6px; }
.m-yes { background: var(--cream); color: var(--brand-dark); }

/* статус заказа (заглушка) */
.st { background: #fff; border-radius: 18px; padding: 14px 16px 2px; margin-top: 12px; }
.st-step { position: relative; display: flex; gap: 12px; padding-bottom: 14px; }
.st-step:not(:last-child)::before { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.st-step.is-done:not(:last-child)::before { background: var(--brand); }
.st-dot { flex: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #E2D2CA; }
.st-step.is-done .st-dot { background: var(--brand); box-shadow: none; }
.st-step.is-now .st-dot { box-shadow: inset 0 0 0 5px var(--brand); animation: st-pulse 1.8s ease-in-out infinite; }
@keyframes st-pulse { 0%, 100% { box-shadow: inset 0 0 0 5px var(--brand), 0 0 0 0 rgba(173,86,99,.35); } 50% { box-shadow: inset 0 0 0 5px var(--brand), 0 0 0 6px rgba(173,86,99,0); } }
.st-t { display: flex; flex-direction: column; gap: 1px; padding-top: 1px; }
.st-t b { font-size: 15px; } .st-t small { font-size: 13px; color: var(--muted); }
.st-step:not(.is-done):not(.is-now) .st-t b { color: #B79E95; }

/* документы */
.doc-text { background: #fff; border-radius: 18px; padding: 16px; font-size: 15px; line-height: 1.5; }
.price { white-space: nowrap; }
.card-foot:has(.stepper) .price { font-size: 15px; }
.two > * { min-width: 0; }
.two input, .two select { min-width: 0; box-sizing: border-box; }

/* разделы каталога: три в строку + «Подписка» отдельной малиновой плашкой */
.sec-switch { grid-template-columns: 1fr 1.45fr 1fr; }
.sec-ind { width: 0; transition: transform .45s var(--spring), width .45s var(--spring), opacity .25s; }
.sec-switch.off .sec-ind { opacity: 0; }
.sec-switch button { font-size: 14px; padding: 10px 2px; }
.sub-plate { width: 100%; border: 0; border-radius: 16px; min-height: 58px; padding: 0 12px; display: flex; align-items: center; gap: 12px; text-align: left;
  background: var(--brand); color: #fff; box-shadow: 0 6px 16px rgba(173, 86, 99, 0.28); transition: box-shadow .3s var(--ease), transform .18s var(--ease), background-color .3s; }
.sub-plate.on { background: var(--brand-dark); box-shadow: 0 0 0 3px var(--cream), 0 0 0 5px var(--brand), 0 8px 20px rgba(173, 86, 99, 0.35); }
.sub-plate.pop { animation: soft-pop .4s var(--spring); }
.sub-ic { width: 36px; height: 36px; flex: none; border-radius: 12px; background: rgba(255, 255, 255, 0.18); display: flex; align-items: center; justify-content: center; }
.sub-ic svg { width: 20px; height: 20px; }
.sub-t { flex: 1; display: flex; flex-direction: column; }
.sub-t b { font-family: var(--head); font-size: 16px; } .sub-t small { font-size: 12px; font-weight: 600; color: var(--cream); }
.sub-tag { background: rgba(255, 255, 255, 0.22); border-radius: 8px; padding: 3px 8px; font-size: 11px; font-weight: 700; }
.cat-top { gap: 10px; }

/* главная: видео как на сайте + кнопка «Выбор блюд» */
.brand { position: relative; z-index: 2; }
.hero { position: relative; z-index: 1; margin: -30px 0 12px; aspect-ratio: 4 / 5; max-height: 72vh; overflow: hidden; background: #F3D9C6 url(img/hero.jpg) center / cover no-repeat; }
.hero-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 38%; background: linear-gradient(rgba(255,247,243,0), rgba(255,247,243,.55) 70%, var(--bg)); pointer-events: none; }
.pick { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); width: 236px; height: 70px; border: 0; padding: 0; background: none;
  filter: drop-shadow(0 8px 18px rgba(143, 67, 80, 0.28)); animation: pick-float 3.2s ease-in-out infinite; }
.pick-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pick span { position: relative; font-family: var(--head); font-weight: 700; font-size: 23px; color: var(--brand); letter-spacing: .01em; }
.pick:active:not(:disabled) { transform: translateX(-50%) scale(0.95); animation: none; }
@keyframes pick-float { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .pick { animation: none; } }

/* =================== v5: дизайн «как на сайте» =================== */
:root { --brand: #AF5764; --cream: #FDE2D2; --bg: #FFF6F2; --line5: #F1D9D2; --muted5: #8A7470; }
html, body { background: var(--bg); }
/* шапка */
.brand { display: none; }
.hd { position: relative; height: 100px; z-index: 3; }
.hd-svg { position: absolute; left: 0; top: 0; width: 100%; height: 104px; display: block; }
.hd-fl { position: absolute; display: block; line-height: 0; pointer-events: none; }
.hd-logo { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); }
.cloud-logo { position: relative; display: block; }
.cloud-logo svg { position: absolute; inset: 0; overflow: visible; }
.cloud-logo img { position: absolute; display: block; }
.cloud-logo i { position: absolute; left: 0; right: 0; text-align: center; font-style: normal; font-family: var(--head); font-weight: 700; font-size: 8px; color: var(--brand); }
/* видео */
.hero { margin: -34px 0 6px; aspect-ratio: 4 / 5; max-height: 74vh; z-index: 1; }
.pick { display: none; }
.pick5 { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: 214px; height: 64px; border: 0; padding: 0; background: none; filter: drop-shadow(0 8px 18px rgba(143,67,80,.25)); animation: pick-float 3.2s ease-in-out infinite; }
.pick5 svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pick5 span { position: relative; font-family: var(--head); font-weight: 400; font-size: 22px; color: var(--brand); }
.pick5:active:not(:disabled) { transform: translateX(-50%) scale(.95); animation: none; }
/* общее */
.page5 { padding: 8px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.page5.nb { padding-bottom: 6px; }
.h5c { margin: 10px 0 0; text-align: center; font-family: var(--head); font-weight: 400; font-size: 27px; color: var(--brand); }
.h5l { margin: 0; font-family: var(--head); font-weight: 400; font-size: 28px; color: var(--brand); }
.h5l.big { font-size: 31px; margin-top: 4px; }
.muted5 { margin: 0; font-size: 14px; color: var(--muted5); }
.btn5 { border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 700; font-size: 16px; min-height: 46px; padding: 0 20px; align-self: flex-start; }
.btn5.full { width: 100%; align-self: stretch; }
.btn5.xl { min-height: 56px; font-size: 19px; }
.btn5.sm { min-height: 40px; font-size: 15px; padding: 0 16px; border-radius: 11px; }
.btn5:disabled { opacity: .5; }
.obtn5 { border: 1.5px solid #E2B3B8; border-radius: 12px; background: #fff; color: var(--brand); font-weight: 600; font-size: 15px; min-height: 44px; padding: 0 16px; align-self: flex-start; transition: background-color .25s, color .25s, transform .15s; }
.obtn5.full { width: 100%; align-self: stretch; }
.obtn5.sm { min-height: 36px; font-size: 14px; padding: 0 13px; }
.obtn5.on { background: #FBE3D8; }
.link5 { border: 0; background: none; color: var(--brand); text-decoration: underline; font-size: 15px; align-self: flex-start; padding: 4px 0; }
.card5 { background: #fff; border-radius: 20px; border: 1px solid var(--line5); box-shadow: 0 4px 14px rgba(175,87,100,.06); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.empty b.soon-h { display: block; color: var(--brand); font-family: var(--head); font-size: 18px; margin-bottom: 6px; }
/* главная */
.promo5 { display: flex; gap: 10px; }
.promo { flex: 1; border: 1px solid var(--line5); background: #fff; border-radius: 18px; padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 4px 14px rgba(175,87,100,.06); }
.promo b { font-size: 13px; letter-spacing: .02em; color: var(--text); } .promo small { font-size: 12.5px; color: var(--muted5); line-height: 1.35; }
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.carousel::-webkit-scrollbar { display: none; }
.car-item { flex: none; width: calc(100% - 8px); scroll-snap-align: center; }
.dots { display: flex; justify-content: center; gap: 6px; margin-top: -4px; }
.dots i { width: 7px; height: 7px; border-radius: 4px; background: #E8C4C4; transition: width .3s var(--spring), background-color .3s; }
.dots i.on { width: 18px; background: var(--brand); }
.rev5 { display: flex; gap: 14px; align-items: center; }
.rev-fl { width: 118px; height: 150px; border-radius: 18px; background: #F6DCD6; display: flex; align-items: center; justify-content: center; flex: none; }
.rev5 > div { display: flex; flex-direction: column; gap: 8px; } .rev5 p { margin: 0; font-size: 14px; } .rev5 small { color: var(--muted5); font-size: 13.5px; }
.addr5 { margin: -4px 0 0; font-size: 14px; }
.map5 { height: 220px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line5); background: #EDE6E1; }
.map5 iframe { width: 100%; height: 100%; border: 0; display: block; }
/* подвал */
.ft { margin-top: 34px; }
.ft-top { position: relative; height: 60px; }
.ft-top > svg { position: absolute; inset: 0; width: 100%; height: 60px; display: block; }
.ft-logo { position: absolute; left: 50%; top: -34px; transform: translateX(-50%); }
.ft-body { background: var(--brand); padding: 10px 16px 28px; display: flex; flex-direction: column; gap: 16px; }
.ft-slogan { text-align: center; color: #fff; font-family: var(--head); font-size: 19px; line-height: 1.35; margin-top: 4px; }
.ft-links { background: var(--bg); border-radius: 18px; padding: 6px 14px; display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
.ft-links button { border: 0; background: none; text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line5); font-size: 13.5px; color: var(--brand); }
.ft-form { background: var(--bg); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.ft-form p { margin: 0; font-family: var(--head); color: var(--brand); font-size: 15.5px; line-height: 1.45; }
.ft-form input:not([type=checkbox]), .ft-form textarea, .f5 input, .f5 textarea { width: 100%; box-sizing: border-box; border: 0; border-radius: 12px; background: #FFF3EE; box-shadow: inset 0 0 0 1px #F0D4CC; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--text); outline: none; resize: vertical; }
.ft-form input:focus, .ft-form textarea:focus, .f5 input:focus, .f5 textarea:focus { box-shadow: inset 0 0 0 2px var(--pink); }
.ft-fl { display: flex; justify-content: flex-end; gap: 16px; line-height: 0; } .ft-fl.center { justify-content: center; }
.ft-check { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted5); }
.ft-check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.ft-check a { color: var(--brand); text-decoration: underline; }
/* каталог */
.tb5 { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 4px; }
.tb-sec { position: relative; }
.sec-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 12; background: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(62,47,44,.16); padding: 6px; min-width: 200px; display: flex; flex-direction: column; animation: fadein .18s ease; }
.sec-menu button { border: 0; background: none; text-align: left; padding: 11px 12px; border-radius: 10px; font-size: 15px; font-weight: 600; color: var(--text); }
.sec-menu button.on { background: #F8E1DD; color: var(--brand); }
.tb-new { border: 0; background: none; font-family: var(--head); font-weight: 700; font-size: 15px; color: var(--text); padding: 6px 10px; border-radius: 12px; }
.tb-new.on { background: #F8E1DD; color: var(--brand); }
.tb-fav { border: 0; background: none; font-size: 22px; color: var(--brand); width: 40px; height: 40px; border-radius: 50%; }
.tb-fav.on { background: #F8E1DD; }
.chip5 { border: 1.5px solid #E6C3C3; background: #fff; color: var(--text); border-radius: 18px; padding: 7px 13px; font-size: 14px; font-weight: 600; transition: background-color .25s, color .25s, border-color .25s, transform .15s; }
.chip5.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip5.sm { font-size: 13px; font-weight: 700; color: var(--brand); padding: 6px 12px; }
.chip5.pop { animation: soft-pop .4s var(--spring); }
.chips5 { display: flex; flex-wrap: wrap; gap: 8px; }
.search5 { position: relative; display: block; }
.search5 svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted5); }
.search5 input { width: 100%; box-sizing: border-box; border: 0; background: #fff; border-radius: 14px; padding: 13px 14px 13px 42px; font-size: 16px; box-shadow: inset 0 0 0 1.5px #EBCFCB; outline: none; }
.search5 input:focus { box-shadow: inset 0 0 0 2px var(--pink); }
.list5 { padding: 4px 16px 0; display: flex; flex-direction: column; gap: 14px; }
/* карточка */
.dc { background: #fff; border-radius: 20px; border: 1px solid var(--line5); box-shadow: 0 4px 14px rgba(175,87,100,.06); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.dc-top { display: flex; gap: 12px; align-items: flex-start; }
.dc-ph { width: 76px; height: 76px; flex: none; border: 0; padding: 0; border-radius: 12px; overflow: hidden; background: #FBE3D8; }
.dc-ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dc-ph .ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; } .dc-ph .ph img { width: 62%; height: auto; opacity: .55; }
.dc-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dc-nr { display: flex; gap: 6px; align-items: flex-start; }
.dc-name { flex: 1; border: 0; background: none; padding: 0; text-align: left; font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--text); }
.dc-name.big { font-size: 22px; flex: none; }
.dc .card-fav { position: static; flex: none; width: 34px !important; height: 34px !important; border-radius: 50%; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.08); border: 0; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.dc-stars { display: flex; align-items: center; gap: 6px; } .dc-stars span { color: var(--brand); letter-spacing: 2px; font-size: 14px; } .dc-stars small { font-size: 12px; color: var(--brand); }
.dc-bigph { position: relative; } .dc-bigph .dc-ph { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 16px; }
.dc-bigph .ph img { width: 44%; }
.dc-bigph .card-fav { position: absolute; right: 10px; top: 10px; }
.dc-cat { font-size: 13px; color: var(--muted5); margin-bottom: -6px; }
.dc-desc { margin: 0; font-size: 15px; line-height: 1.4; }
.dr { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line5); }
.dr-p { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dr-p b { font-family: var(--head); font-weight: 700; font-size: 21px; color: var(--brand); white-space: nowrap; }
.dr-p small { font-size: 13px; font-weight: 600; } .dr-p small.dr-l { font-weight: 400; color: var(--muted5); font-size: 12px; }
.dr-t { display: flex; gap: 2px; } .dr-t i { font-style: normal; width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: box-shadow .25s, background-color .25s; }
.dr-t i.on.f { box-shadow: inset 0 0 0 1.5px #4D8FD6; background: #fff; } .dr-t i.on.w { box-shadow: inset 0 0 0 1.5px #E8823A; background: #fff; }
.dr-na { font-size: 13px; color: var(--muted5); font-weight: 600; }
.dr-q { display: flex; align-items: center; gap: 6px; }
.dr-step { display: inline-flex; align-items: center; gap: 8px; }
.dr-step button { width: 34px; height: 34px; border-radius: 10px; border: 1.5px solid #E2B3B8; background: #fff; color: var(--brand); font-size: 20px; line-height: 1; padding: 0; }
.dr-step b { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.dr-del { width: 34px; height: 34px; border: 0; background: none; color: var(--brand); padding: 0; display: flex; align-items: center; justify-content: center; }
.dr-del svg { width: 20px; height: 20px; }
.dc-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.dc-info { font-size: 14px; line-height: 1.45; background: #FFF6F2; border-radius: 12px; padding: 10px 12px; }
.dc-info small { color: var(--muted5); }
/* выбор температуры */
.tmod .tm-card { position: relative; width: 100%; max-width: 360px; background: var(--bg); border-radius: 24px; padding: 22px 20px; display: flex; flex-direction: column; gap: 12px; }
.tm-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.tm-head h2 { margin: 0; font-family: var(--head); font-weight: 400; font-size: 26px; line-height: 1.25; color: var(--brand); }
.tm-x { border: 0; background: none; color: var(--brand); padding: 4px; } .tm-x svg { width: 22px; height: 22px; }
.tm-card p { margin: 0; font-size: 15px; } .tm-card small { font-size: 13px; color: var(--muted5); }
.tm-opts { display: flex; gap: 12px; }
.tm-o { flex: 1; height: 110px; border-radius: 16px; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 16px; }
.tm-o span { font-size: 34px; line-height: 1; }
.tm-o.f { border: 1.5px solid #4D8FD6; color: #2F74C0; } .tm-o.w { border: 1.5px solid #E8823A; color: #D2611D; }
/* корзина */
.zone5 { background: #FBE3D8; border: 1px solid #F1C9BE; border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.zone5-t { display: flex; gap: 10px; align-items: center; font-size: 14px; } .zone5-t span { font-size: 26px; }
.cl5 { background: #fff; border: 1px solid var(--line5); border-radius: 20px; padding: 12px; display: flex; gap: 12px; align-items: flex-start; margin: 0 0 10px; box-shadow: 0 4px 14px rgba(175,87,100,.06); }
.cl-ph { width: 66px; height: 66px; border-radius: 12px; overflow: hidden; background: #FBE3D8; flex: none; }
.cl-ph img { width: 100%; height: 100%; object-fit: cover; } .cl-ph .ph { height: 100%; display: flex; align-items: center; justify-content: center; } .cl-ph .ph img { width: 62%; height: auto; }
.cl-i { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cl-n { color: var(--brand); font-size: 17px; line-height: 1.2; }
.cl-p { font-size: 14px; } .cl-p b { color: var(--brand); }
.cl-t { font-size: 14px; } .cl-t.w { color: #D2611D; } .cl-t.f { color: #2F74C0; }
.cl-b { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.cl-b .line-sum { margin-left: auto; font-weight: 700; }
.sum5 { background: #fff; border: 1px solid var(--line5); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 4px 14px rgba(175,87,100,.06); }
.sum5 > div { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.sum5 .grand { font-weight: 700; font-size: 18px; color: var(--brand); margin-bottom: 8px; }
/* кабинет */
.cab-k { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--muted5); margin-bottom: -10px; }
.cab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cab-grid button { min-height: 44px; border-radius: 12px; border: 1.5px solid #EBCFCB; background: #fff; color: var(--brand); font-weight: 600; font-size: 14px; transition: background-color .3s, color .3s, border-color .3s, transform .15s; }
.cab-grid button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.card5 .h5c { margin-top: 0; font-size: 26px; }
.f5 { display: flex; flex-direction: column; gap: 6px; } .f5 > span { font-size: 14px; font-weight: 700; }
.gpills { display: flex; gap: 8px; flex-wrap: wrap; }
.gpills button { border-radius: 10px; padding: 9px 13px; font-size: 14px; font-weight: 600; background: #fff; border: 1.5px solid #EBCFCB; color: var(--text); transition: background-color .25s, color .25s; }
.gpills button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.card5 .alg { margin-top: 0; border: 1px solid var(--line5); }
.card5 .share-phone { margin-top: -4px; }
.card5 .p-row { padding-left: 0; padding-right: 0; }
.more5 { padding: 4px 14px; gap: 0; }
.more5 button { display: flex; justify-content: space-between; align-items: center; border: 0; background: none; padding: 13px 0; border-bottom: 1px solid var(--line5); font-size: 16px; font-weight: 600; color: var(--text); text-align: left; }
.more5 button svg { width: 18px; height: 18px; color: var(--brand); }
.more5 button.p-danger { color: #B23B3B; border-bottom: 0; }
.about-v { border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: #F3D9C6 url(img/hero.jpg) center / cover; }
.about-v video { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-t { margin: 0; text-align: center; font-size: 17px; line-height: 1.5; }
/* нижнее меню + плашка зоны */
.tabs { background: rgba(255,246,242,.97); border-top: 1px solid var(--line5); }
.tab-ind { background: #F8E1DD; }
.tab-emo { font-size: 23px; line-height: 22px; height: 22px; display: block; filter: saturate(.9); }
.zstrip { position: fixed; left: 8px; right: 8px; z-index: 18; bottom: calc(68px + env(safe-area-inset-bottom)); height: 34px; border: 0; border-radius: 12px; background: #F8E6DF; color: var(--brand); font-weight: 700; font-size: 13px; box-shadow: 0 -2px 10px rgba(255,246,242,.9); }
body.sheet-open .zstrip, body.zones-open .zstrip { display: none; }
body.has-tabs.has-zone { padding-bottom: calc(126px + env(safe-area-inset-bottom)); }
body.has-tabs.has-zone .bar { bottom: calc(104px + env(safe-area-inset-bottom)); }
.sec-menu[hidden], .dc-info[hidden] { display: none !important; }
.carousel { align-items: flex-start; }
.ft-top > svg.ft-svg { position: absolute; inset: 0; width: 100%; height: 60px; display: block; }
.hd-svg { overflow: visible; }

/* v5.1: шапка ниже, крупные ❄️/🔥, зоны крупнее */
.hd { height: 78px; }
.hd-svg { height: 80px; }
.hd-logo { top: -2px; }
.hero { margin-top: -26px; }
.dr-t { gap: 6px; }
.dr-t button, .dr-t i { width: 42px; height: 42px; border-radius: 12px; border: 1.5px dashed #E6C3C3; background: #fff; font-size: 22px; line-height: 1; padding: 0; display: flex; align-items: center; justify-content: center; font-style: normal; transition: border-color .25s, box-shadow .25s, transform .15s; }
.dr-t button.on.f { border: 2px solid #4D8FD6; box-shadow: 0 0 0 3px rgba(77,143,214,.15); }
.dr-t button.on.w { border: 2px solid #E8823A; box-shadow: 0 0 0 3px rgba(232,130,58,.15); }
.dr-t button.pop { animation: soft-pop .4s var(--spring); }
.dr-t.off i { opacity: .35; border-style: solid; }
.dr { flex-wrap: wrap; row-gap: 8px; }
.zsheet { max-height: 96vh; padding-top: 14px; }
.z-mapbtn { position: relative; border: 0; padding: 0; background: none; border-radius: 16px; overflow: hidden; display: block; width: 100%; }
.z-map { width: 100%; height: auto; min-height: 0; object-fit: contain; border-radius: 16px; }
.z-zoom { position: absolute; right: 10px; bottom: 10px; background: rgba(255,255,255,.92); color: var(--brand); border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.z-btn { padding: 12px 10px; font-size: 15px; }
.mapzoom { position: fixed; inset: 0; z-index: 50; background: rgba(40,28,26,.92); }
.mz-scroll { position: absolute; inset: 0; overflow: auto; -webkit-overflow-scrolling: touch; }
.mz-scroll img { display: block; width: 230%; max-width: none; height: auto; }
.mz-x { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.mz-hint { position: absolute; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: rgba(255,255,255,.9); color: var(--brand); font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 12px; pointer-events: none; }

/* v5.2: шапка из оригинальных картинок сайта */
.hd.site { height: 76px; }
.hd-edge { position: absolute; left: 0; top: 0; width: 100%; height: 76px; display: block; }
.hd-sf { position: absolute; width: 15px; height: 16px; display: block; pointer-events: none; }
.hd-slogo { position: absolute; left: 50%; top: 5px; transform: translateX(-50%); width: 100px; height: 71px; display: block; }
.hd.site + .hero { margin-top: -22px; }
.ft-edge { position: absolute; left: 0; bottom: 0; width: 100%; height: 76px; display: block; transform: scaleY(-1); }
.ft-top:has(.ft-edge) { height: 76px; }
.ft-slogo { position: absolute; left: 50%; bottom: 4px; transform: translateX(-50%); width: 100px; height: 71px; display: block; z-index: 2; }
/* прячем кремовую кромку по прямым краям картинки (верх шапки / стык подвала) */
.hd-edge { top: -4px; height: 80px; left: -3px; width: calc(100% + 6px); }
.ft-edge { bottom: -5px; height: 80px; left: -3px; width: calc(100% + 6px); }
.ft-body { position: relative; }
/* кремовая подложка под краем: закрывает просветы между розовым и кремовой каймой */
.hd-fill, .ft-fill { position: absolute; left: -3px; width: calc(100% + 6px); height: 80px; background: #FDE2D2; display: block;
  -webkit-mask: url(img/site-edge.svg) 0 0 / 100% 100% no-repeat; mask: url(img/site-edge.svg) 0 0 / 100% 100% no-repeat; pointer-events: none; }
.ft-fill { transform: scaleY(-1); }
/* сплошная малиновая полоса по самому верху — без прерывистой каймы */
.hd-topbar { position: absolute; left: 0; right: 0; top: 0; height: 10px; background: #AF5764; display: block; }
.hd-sf, .hd-slogo { z-index: 2; }
/* углы шапки у краёв экрана — закрашиваем малиновым */
.hd.site::before, .hd.site::after { content: ""; position: absolute; top: 0; width: 18px; height: 20px; background: #AF5764; z-index: 1; pointer-events: none; }
.hd.site::before { left: 0; border-bottom-right-radius: 10px; }
.hd.site::after { right: 0; border-bottom-left-radius: 10px; }
