/*
 * «Кулинарный дом» — витрина. Ламповый уют: кремовая бумага, лесной зелёный, клеверный акцент.
 * Mobile-first. Цвета сняты с логотипа и сдвинуты в тёплую «чековую» гамму.
 */
:root {
    /* Палитра */
    --forest: #17421a;          /* поверхности: шапка, плитки, навигация */
    --forest-rgb: 23, 66, 26;   /* тот же цвет для полупрозрачных слоёв */
    --forest-2: #1f5220;
    --forest-3: #2a6322;
    --moss: #d6e6a0;            /* светлый текст на лесном */
    --clover: #4cb814;          /* только графика и обводки */
    --lime: #a6d117;
    --cta: #2e7d12;             /* кнопки действия, кремовый текст на них ≥ 5:1 */
    --cta-hover: #25660e;
    --cream: #fbf1d9;           /* фон страницы */
    --paper: #fffbef;           /* карточки */
    --butter: #f3e2b0;
    --line: #e6d6a8;
    --ink: #22301d;
    --muted: #6a6850;
    --cream-ink: #fff8e6;       /* текст на тёмно-зелёном */
    --tomato: #c13a22;          /* стоп, ошибки, старая цена */
    --scroll: #8fb467; --scroll-2: #b9cf93;
    --tile-2: #25621f; --tile-3: #0f3320; --tile-4: #3d6a1a; --tile-5: #1c5a40;
    --body-text: #3f4a35; --opt-on: #eef5d6;
    --plate-0: #f3e2b0; --plate-1: #dce8bd; --plate-2: #f7d9b5; --plate-3: #cfe6c6; --plate-4: #f2d6c4;

    /* Тип */
    --font-display: 'Rubik', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;

    /* Форма и ритм */
    --r-xl: 28px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
    --gutter: 16px;
    --tabbar-h: 64px;
    --shadow: 0 1px 0 rgba(var(--forest-rgb), .06), 0 10px 22px -12px rgba(70, 55, 10, .32);
    --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--scroll) transparent; accent-color: var(--cta); }
body { margin: 0; background: var(--cream); color: var(--ink); font: 16px/1.5 var(--font-body); min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; -webkit-tap-highlight-color: transparent; caret-color: var(--cta); text-rendering: optimizeLegibility; }
@media (max-width: 819px) { body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; }
button { font: inherit; color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--scroll-2); border-radius: 10px; border: 2px solid var(--cream); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 8px; }

.ico { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--cream-ink); padding: 10px 14px; border-radius: 8px; z-index: 300; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* ---------------------------------------------------------------- Шапка */
.top { background: var(--forest); color: var(--cream-ink); padding-top: env(safe-area-inset-top); position: relative; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.has-hero .top { border-radius: 0; }
.top__row { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 8px; padding-top: 10px; padding-bottom: 8px; }
.top__burger { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; color: inherit; border-radius: 50%; cursor: pointer; }
.top__burger:hover { background: rgba(255, 248, 230, .12); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; justify-self: start; min-width: 0; }
.brand__logo { border-radius: 50%; border: 2px solid var(--lime); background: #fff; flex: none; }
.brand__name { font: 800 18px/1.1 var(--font-display); letter-spacing: -.01em; color: var(--cream-ink); white-space: nowrap; }
.top__nav { display: none; gap: 4px; justify-self: center; }
.top__nav a { padding: 8px 14px; border-radius: 999px; text-decoration: none; font: 600 15px var(--font-display); color: rgba(255, 248, 230, .86); }
.top__nav a:hover { background: rgba(255, 248, 230, .12); color: var(--cream-ink); }
.top__nav a[aria-current="page"] { background: var(--cream); color: var(--forest); }
.top__login, .top__user { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 2px solid rgba(255, 248, 230, .45); background: transparent; color: var(--cream-ink); font: 600 15px var(--font-display); text-decoration: none; cursor: pointer; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top__login:hover, .top__user:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.top__user .ico, .top__login .ico { width: 20px; height: 20px; }
@media (max-width: 819px) { .top__user span, .top__login span { display: none; } .top__login, .top__user { padding: 0; width: 44px; justify-content: center; } }
@media (min-width: 820px) { .top__row { grid-template-columns: auto 1fr auto; } .top__burger { display: none; } .top__nav { display: flex; } }

.modebar { display: grid; gap: 10px; padding-bottom: 14px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255, 248, 230, .14); border-radius: 999px; padding: 4px; }
.seg__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; background: transparent; border-radius: 999px; font: 600 15px var(--font-display); cursor: pointer; color: rgba(255, 248, 230, .82); transition: background-color .2s var(--ease), color .2s var(--ease); }
.seg__btn .ico { width: 20px; height: 20px; }
.seg__btn[aria-pressed="true"] { background: var(--cream); color: var(--forest); }
.addr { display: grid; grid-template-columns: 24px 1fr 20px; align-items: center; gap: 10px; min-height: 56px; padding: 8px 14px; background: var(--paper); color: var(--ink); border: 0; border-radius: var(--r-md); cursor: pointer; text-align: left; width: 100%; }
.addr > .ico:first-child { color: var(--cta); }
.addr > .ico:last-child { width: 18px; height: 18px; color: var(--muted); }
.addr__txt { display: grid; min-width: 0; }
.addr__label { font-size: 12px; color: var(--muted); font-weight: 700; }
.addr__value { font: 600 16px/1.25 var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 820px) { .modebar { grid-template-columns: 300px 1fr; align-items: center; } }

/* ---------------------------------------------------------------- Приветствие и поиск */
/* Нижний край — «чековая» перфорация: ряд полукруглых вырезов */
.hero { position: relative; background: var(--forest); color: var(--cream-ink); padding-bottom: 26px; margin-bottom: 14px; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -11px; height: 11px; background: radial-gradient(circle at 11px 0, var(--forest) 10.5px, transparent 11px) 0 0 / 22px 11px repeat-x; pointer-events: none; }
.hero__title { font: 800 clamp(26px, 6.4vw, 40px)/1.08 var(--font-display); letter-spacing: -.02em; max-width: 16ch; }
.hero__sub { margin-top: 8px; color: var(--moss); font-weight: 700; font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.hero__sub span { display: inline-flex; align-items: center; gap: 6px; }
.hero__sub span + span::before { content: "·"; margin-right: 10px; opacity: .7; }
.hero__sub .ico { width: 18px; height: 18px; }
.hero__open { color: var(--lime); }
.hero__closed { color: #ffd9a0; }
.search { position: relative; margin-top: 18px; }
.search .ico { position: absolute; left: 16px; top: 50%; margin-top: -10px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; }
.search__input { width: 100%; min-height: 52px; padding: 0 48px 0 46px; border: 0; border-radius: 999px; background: var(--paper); color: var(--ink); font: 600 16px var(--font-body); }
.search__input::placeholder { color: #8a8668; font-weight: 500; }
.search__input:focus { outline: 3px solid var(--lime); outline-offset: 2px; }
.search__clear { position: absolute; right: 6px; top: 50%; margin-top: -20px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; border-radius: 50%; color: var(--muted); cursor: pointer; }
.search__clear:hover { background: var(--butter); }
.search__clear .ico { position: static; margin: 0; }
.search-note { margin: 14px 0 0; color: var(--muted); font-weight: 700; }

.notice { background: #ffe9b8; color: #5b4300; font-weight: 700; font-size: 14px; padding: 8px 0; text-align: center; }

/* ---------------------------------------------------------------- Рубрики-плитки */
.rubrics { padding-top: 18px; scroll-margin-top: 12px; }
.section-title { font: 700 22px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--forest); margin-bottom: 12px; }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tile { position: relative; display: grid; align-content: space-between; min-height: 112px; padding: 14px; border-radius: var(--r-lg); background: var(--forest); color: var(--cream-ink); text-decoration: none; overflow: hidden; isolation: isolate; transition: transform .25s var(--ease), background-color .25s var(--ease); }
.tile:nth-child(5n+2) { background: var(--tile-2); }
.tile:nth-child(5n+3) { background: var(--tile-3); }
.tile:nth-child(5n+4) { background: var(--tile-4); }
.tile:nth-child(5n+5) { background: var(--tile-5); }
/* Круглый штамп с числом блюд в рубрике */
.stamp { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--lime); color: var(--ink); font: 700 14px var(--font-display); transform: rotate(-12deg); box-shadow: 0 0 0 2px var(--lime), inset 0 0 0 2.5px var(--lime), inset 0 0 0 3.5px rgba(34, 48, 29, .45); font-variant-numeric: tabular-nums; }
.tile__name { padding-right: 36px; }
.tile:hover { transform: translateY(-3px); }
.tile:active { transform: scale(.98); }
.tile__name { font: 700 17px/1.15 var(--font-display); max-width: 11ch; }
.tile__count { font-size: 13px; font-weight: 700; color: var(--moss); }
.tile__ico { position: absolute; right: -6px; bottom: -8px; width: 76px; height: 76px; color: var(--lime); opacity: .9; stroke-width: 2.2; z-index: -1; transform: rotate(-6deg); }

/* ---------------------------------------------------------------- Липкая панель рубрик */
/* Панель рубрик не занимает места и скрыта, пока на экране плитки рубрик; появляется, когда плитки прокручены */
.chips { position: sticky; top: 0; z-index: 20; height: 60px; margin-bottom: -60px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .2s var(--ease), visibility 0s linear .2s; background: var(--cream); border-bottom: 2px dotted var(--line); }
.chips.is-on { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .2s var(--ease); }
.chips__row { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips__row::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; background: var(--paper); border: 1.5px solid var(--line); text-decoration: none; font: 600 15px var(--font-display); white-space: nowrap; cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease); }
.chip:hover { border-color: var(--forest); }
.chip[aria-current="true"] { background: var(--forest); border-color: var(--forest); color: var(--cream-ink); }

/* ---------------------------------------------------------------- Каталог */
.catalog { padding-bottom: 40px; }
.cat { scroll-margin-top: 64px; padding-top: 28px; }
.cat__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-bottom: 8px; margin-bottom: 14px; border-bottom: 2px dotted var(--line); }
.cat__title { font: 800 clamp(24px, 5.4vw, 30px)/1.1 var(--font-display); letter-spacing: -.02em; color: var(--forest); }
.cat__n { font-weight: 700; color: var(--muted); font-size: 14px; white-space: nowrap; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.card { position: relative; display: flex; flex-direction: column; background: var(--paper); border: 1.5px solid #eadcb0; border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; transition: transform .25s var(--ease); }
.card:hover { transform: translateY(-2px); }
.card__media { position: relative; display: block; aspect-ratio: 16 / 11; background: var(--plate-0); overflow: hidden; }
.card__media img { width: 100%; height: 100%; object-fit: cover; }
.plate { position: absolute; inset: 0; display: grid; place-items: center; color: var(--forest); }
.plate .ico { width: 52%; height: 52%; max-width: 84px; max-height: 84px; stroke-width: 1.9; opacity: .82; }
.tint-0 { background: var(--plate-0); } .tint-1 { background: var(--plate-1); } .tint-2 { background: var(--plate-2); } .tint-3 { background: var(--plate-3); } .tint-4 { background: var(--plate-4); }
.plate--lg .ico { max-width: 150px; max-height: 150px; }
.card__body { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 14px; flex: 1; }
.card__title { font: 600 15.5px/1.25 var(--font-display); letter-spacing: -.005em; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a { text-decoration: none; }
.card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 10px; }
.card__stop { color: var(--tomato); font: 600 14px var(--font-display); }
.card.is-stopped .card__media { filter: grayscale(1); opacity: .55; }
.card.is-stopped .card__title { color: var(--muted); }
.price { font: 700 19px/1 var(--font-display); letter-spacing: -.01em; color: var(--forest); white-space: nowrap; font-variant-numeric: tabular-nums; }
.price small { font: 600 13px var(--font-body); color: var(--muted); margin-right: 3px; }
.price--lg { font-size: 30px; }
.tag { position: absolute; left: 8px; top: 8px; background: var(--lime); color: var(--ink); font: 700 12px var(--font-display); padding: 3px 10px; border-radius: 8px; transform: rotate(-3deg); }

.add { flex: none; position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; border: 2px solid var(--forest); border-radius: 50%; background: var(--paper); color: var(--forest); cursor: pointer; transition: background-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease); }
.add .ico { width: 22px; height: 22px; stroke-width: 2.4; }
.add:hover { background: var(--forest); color: var(--cream-ink); }
.add:active { transform: scale(.92); }
.add.is-done { background: var(--cta); border-color: var(--cta); color: var(--cream-ink); }
/* «Штамп»: при добавлении по кнопке расходится кольцо, галочка прижимается */
.add.is-done::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--clover); animation: stamp-ring .65s var(--ease) forwards; pointer-events: none; }
.add.is-done .ico { animation: stamp-press .35s var(--ease); }
@keyframes stamp-ring { from { transform: scale(1); opacity: .9; } to { transform: scale(1.9); opacity: 0; } }
@keyframes stamp-press { from { transform: scale(1.7) rotate(-14deg); opacity: .4; } to { transform: none; opacity: 1; } }
.add[disabled] { opacity: .5; cursor: progress; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 28px; border: 2px solid transparent; border-radius: 999px; background: var(--cta); color: var(--cream-ink); font: 600 16px var(--font-display); letter-spacing: .005em; text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), transform .15s var(--ease); }
.btn:hover { background: var(--cta-hover); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { background: #d8ccaa; color: #7a7152; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--forest); color: var(--cream-ink); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.linkbtn { justify-self: start; border: 0; background: none; padding: 6px 0; color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.linkbtn:hover { color: var(--forest); }

.empty { padding-top: 64px; padding-bottom: 64px; text-align: center; display: grid; gap: 8px; }
.empty h1 { font-size: 26px; }
.empty p { color: var(--muted); }

/* ---------------------------------------------------------------- Страница товара */
.pdp { padding-top: 14px; padding-bottom: 48px; }
.crumbs { margin-bottom: 12px; }
.crumbs a { text-decoration: none; color: var(--muted); font-weight: 700; }
.crumbs a:hover { color: var(--forest); }
.pdp__grid { display: grid; gap: 22px; }
.pdp__media { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-xl); overflow: hidden; background: var(--plate-0); }
.pdp__media img { width: 100%; height: 100%; object-fit: cover; }
.pdp__info { display: grid; gap: 12px; align-content: start; }
.pdp__title { font: 800 clamp(26px, 6vw, 36px)/1.1 var(--font-display); letter-spacing: -.02em; color: var(--forest); }
.pdp__text { color: var(--body-text); font-size: 16.5px; max-width: 62ch; }
.pdp__h { font: 700 16px var(--font-display); margin-top: 8px; }
.pdp__buy { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 12px; padding-top: 16px; border-top: 2px dotted var(--line); }
.plain { margin: 0; padding-left: 18px; color: var(--body-text); }
@media (min-width: 800px) { .pdp__grid { grid-template-columns: 1.1fr 1fr; gap: 36px; } }

/* ---------------------------------------------------------------- Окна (шторки) */
.sheet { border: 0; padding: 0; background: var(--cream); color: var(--ink); width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: var(--r-xl) var(--r-xl) 0 0; overflow: hidden; }
.sheet::backdrop { background: rgba(14, 32, 14, .58); }
.sheet[open] { display: flex; flex-direction: column; animation: sheet-up .3s var(--ease); }
@keyframes sheet-up { from { transform: translateY(36px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 720px) { .sheet { max-width: 540px; margin: auto; border-radius: var(--r-xl); max-height: 90dvh; } }
.sheet__inner { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.sheet__scroll { overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.sheet__media { position: relative; aspect-ratio: 16 / 10; background: var(--plate-0); }
.sheet__media img { width: 100%; height: 100%; object-fit: cover; }
.sheet__close { position: absolute; right: 12px; top: 12px; z-index: 2; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--paper); color: var(--ink); box-shadow: var(--shadow); cursor: pointer; }
.sheet__close .ico { width: 20px; height: 20px; }
.sheet__close--static { position: static; flex: none; background: var(--butter); box-shadow: none; }
.sheet__content { padding: 18px 16px; display: grid; gap: 12px; }
.sheet__title { font: 800 24px/1.15 var(--font-display); letter-spacing: -.02em; color: var(--forest); }
.sheet__text { color: var(--body-text); font-size: 15px; }
.sheet__label { font: 700 16px var(--font-display); color: var(--forest); }

.opt { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 0; }
.opt legend { font: 700 16px var(--font-display); padding: 0; margin-bottom: 4px; }
.opt__hint { font-weight: 600; color: var(--muted); font-size: 13px; margin-left: 6px; }
.opt__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 8px 14px; border: 2px solid var(--line); border-radius: var(--r-md); cursor: pointer; background: var(--paper); transition: border-color .2s var(--ease), background-color .2s var(--ease); }
.opt__row:has(input:checked) { border-color: var(--forest); background: var(--opt-on); }
.opt__row:has(input:focus-visible) { outline: 3px solid var(--lime); outline-offset: 2px; }
.opt__row.is-disabled { opacity: .5; cursor: not-allowed; }
.opt__row input { accent-color: var(--cta); width: 20px; height: 20px; flex: none; }
.opt__name { flex: 1; font-weight: 600; }
.opt__price { color: var(--muted); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.opt__row--col { align-items: flex-start; }

.sheet__bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 2px dotted var(--line); background: var(--paper); }
.qty { display: inline-flex; align-items: center; background: var(--butter); border-radius: 999px; }
.qty button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; border-radius: 50%; color: var(--forest); }
.qty button .ico { width: 20px; height: 20px; stroke-width: 2.4; }
.qty button[disabled] { opacity: .35; cursor: not-allowed; }
.qty output { min-width: 28px; text-align: center; font: 700 17px var(--font-display); font-variant-numeric: tabular-nums; }
.sheet__bar .btn { flex: 1; padding: 0 16px; }

/* ---------------------------------------------------------------- Корзина */
.cartbar { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 10px); z-index: 30; padding: 0 var(--gutter); pointer-events: none; }
@media (min-width: 820px) { .cartbar { bottom: 18px; } }
.cartbar[hidden] { display: none; }
.cartbar__btn { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; max-width: 560px; margin: 0 auto; min-height: 56px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--cta); color: var(--cream-ink); font: 600 16px var(--font-display); cursor: pointer; box-shadow: 0 12px 26px -8px rgba(var(--forest-rgb), .65); animation: pop-in .35s var(--ease); }
@keyframes pop-in { from { transform: translateY(14px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.cartbar__btn:hover { background: var(--cta-hover); }
.cartbar__btn strong { font: 700 18px var(--font-display); font-variant-numeric: tabular-nums; }
.cartbar__lbl { display: inline-flex; align-items: center; gap: 10px; }

.cart__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 16px 8px; }
.cart__content { padding: 4px 16px 16px; display: grid; gap: 12px; }
.cart__content--flush { padding: 0; }
.cart__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cart__empty { padding: 32px 16px 40px; text-align: center; display: grid; gap: 16px; justify-items: center; color: var(--muted); }
.cart__bar { display: grid; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 2px dotted var(--line); background: var(--paper); }
.cart__totals { display: grid; gap: 6px; }
.cart__row { display: flex; justify-content: space-between; gap: 12px; }
.cart__row span:last-child { font-variant-numeric: tabular-nums; font-weight: 700; }
.cart__row--total { font: 700 20px var(--font-display); padding-top: 8px; border-top: 2px dotted var(--line); }
.cart__hint { font-size: 13px; color: var(--muted); font-weight: 600; }
.cart__warn { font-size: 14px; font-weight: 700; color: var(--tomato); }
.cart__recv { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--butter); border-radius: var(--r-md); }
.cart__recv-main { display: grid; min-width: 0; }
.cart__recv-title { font-size: 12px; color: var(--muted); font-weight: 700; }
.cart__recv-text { font: 600 15px/1.25 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.cline { display: grid; grid-template-columns: 72px 1fr; gap: 12px; padding: 10px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: var(--paper); }
.cline.has-issue { border-color: var(--tomato); background: #fff3ee; }
.cline__img { position: relative; width: 72px; height: 72px; border-radius: 14px; overflow: hidden; background: var(--plate-0); }
.cline__img img { width: 100%; height: 100%; object-fit: cover; }
.cline__img .plate .ico { width: 62%; height: 62%; }
.cline__main { display: grid; gap: 4px; min-width: 0; }
.cline__name { font: 600 15px/1.25 var(--font-display); }
.cline__desc { font-size: 13px; color: var(--muted); font-weight: 600; }
.cline__issue { font-size: 13px; font-weight: 700; color: var(--tomato); }
.cline__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.cline__sum { white-space: nowrap; font: 700 16px var(--font-display); font-variant-numeric: tabular-nums; }
.qty--sm button { width: 40px; height: 40px; }

/* ---------------------------------------------------------------- Формы */
.field { position: relative; display: grid; gap: 4px; }
.field__label { font-size: 13px; color: var(--muted); font-weight: 700; }
.field__input { width: 100%; min-height: 48px; padding: 10px 14px; border: 2px solid var(--line); border-radius: var(--r-md); background: var(--paper); font: 600 16px var(--font-body); color: var(--ink); }
textarea.field__input { resize: vertical; min-height: 68px; }
select.field__input { appearance: auto; }
.field__input::placeholder { color: #9a9677; font-weight: 500; }
.field__input:focus { outline: 3px solid var(--lime); outline-offset: 0; border-color: var(--forest); }
.field__input--code { font: 700 30px var(--font-display); letter-spacing: .4em; text-align: center; }
.field-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.field-grid--4 { grid-template-columns: repeat(2, 1fr); }
.field-grid--eq { grid-template-columns: 1fr 1fr; }
@media (min-width: 480px) { .field-grid--4 { grid-template-columns: repeat(4, 1fr); } }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--body-text); cursor: pointer; font-weight: 600; }
.check input { width: 22px; height: 22px; flex: none; margin-top: 0; accent-color: var(--cta); }
.check a { color: var(--cta); }
.zoneinfo { font-size: 14px; color: var(--muted); min-height: 1.4em; font-weight: 700; }
.zoneinfo--ok { color: var(--cta); }
.zoneinfo--bad { color: var(--tomato); }
.oauth { display: grid; gap: 10px; margin-top: 4px; }
.oauth__or { text-align: center; color: var(--muted); font-size: 14px; font-weight: 700; }
.oauth__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.oauth__btn { min-height: 46px; padding: 0 12px; }

/* ---------------------------------------------------------------- Адрес и карта */
.sheet--map { max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; max-width: 100%; }
@media (min-width: 900px) { .sheet--map { max-width: 960px; width: 960px; height: min(720px, 92dvh); border-radius: var(--r-xl); margin: auto; } }
.mapdlg { display: flex; flex-direction: column; min-height: 0; flex: 1; }
@media (min-width: 900px) { .mapdlg { display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto 1fr; } .mapdlg__head { grid-column: 1 / -1; } }
.mapdlg__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px 10px; }
.mapwrap { position: relative; flex: 1 1 44%; min-height: 250px; background: var(--plate-1); }
.map { position: absolute; inset: 0; isolation: isolate; background: var(--plate-1); font-family: var(--font-body); }
.mappin { position: absolute; left: 50%; top: 50%; width: 38px; height: 46px; margin: -46px 0 0 -19px; z-index: 6; pointer-events: none; transition: transform .25s var(--ease); filter: drop-shadow(0 6px 5px rgba(20, 40, 15, .35)); }
.mappin svg { width: 100%; height: 100%; }
.mapwrap.is-moving .mappin { transform: translateY(-10px); }
.mapsearch { position: absolute; left: 12px; right: 12px; top: 12px; z-index: 8; }
.mapsearch .field__input { background: var(--paper); box-shadow: var(--shadow); padding-left: 44px; border-color: transparent; min-height: 50px; border-radius: 999px; }
.mapsearch > .ico { position: absolute; left: 15px; top: 15px; width: 20px; height: 20px; color: var(--muted); pointer-events: none; z-index: 1; }
.maplocate { position: absolute; left: 12px; bottom: 22px; z-index: 8; width: 48px; height: 48px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--paper); color: var(--forest); box-shadow: var(--shadow); cursor: pointer; }
.maplocate:hover { background: var(--butter); }
.maphint { position: absolute; left: 70px; right: 70px; bottom: 26px; z-index: 7; text-align: center; font-size: 12px; font-weight: 700; color: var(--forest); background: rgba(255, 251, 239, .9); padding: 6px 10px; border-radius: 999px; pointer-events: none; }
.mappanel { display: flex; flex-direction: column; min-height: 0; flex: 1 1 56%; background: var(--cream); }
.mappanel .sheet__scroll { padding: 0; }
.leaflet-container { font-family: var(--font-body); background: var(--plate-1); }
.leaflet-control-attribution { font-size: 10px; }
.leaflet-bar a, .leaflet-touch .leaflet-bar a { width: 44px; height: 44px; line-height: 44px; color: var(--forest); font-size: 20px; }
.maphelp { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); text-align: center; }
.rate .ico, .rate__ico { width: 15px; height: 15px; fill: currentColor; stroke: currentColor; stroke-width: 1.2; vertical-align: -2px; margin-right: 3px; }
.sugg { list-style: none; margin: 6px 0 0; padding: 4px; position: absolute; left: 0; right: 0; top: 100%; z-index: 9; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; }
.sugg[hidden] { display: none; }
.sugg__item { display: grid; width: 100%; text-align: left; gap: 0; padding: 10px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; }
.sugg__item span { font-size: 13px; color: var(--muted); }
.sugg__item:hover, .sugg__item:focus-visible { background: var(--butter); }
.sugg__empty { padding: 10px 12px; font-size: 14px; color: var(--muted); font-weight: 600; }
.saved { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.saved .field__label { width: 100%; }

/* ---------------------------------------------------------------- Вход */
.btn--ghost.oauth__btn { background: var(--paper); }

/* ---------------------------------------------------------------- Нижнее меню и ящик */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--forest); color: rgba(255, 248, 230, .72); border-top: 1px solid rgba(255, 248, 230, .12); }
@media (min-width: 820px) { .tabbar { display: none; } }
.tab { position: relative; display: grid; place-items: center; align-content: center; gap: 3px; border: 0; background: transparent; color: inherit; text-decoration: none; font: 700 11px var(--font-body); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tab .ico { width: 24px; height: 24px; }
.tab[aria-current="page"], .tab:hover { color: var(--cream-ink); }
.tab[aria-current="page"]::before { content: ""; position: absolute; top: 0; width: 28px; height: 4px; border-radius: 0 0 4px 4px; background: var(--lime); }
.tab__badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--lime); color: var(--ink); font: 700 12px/20px var(--font-display); text-align: center; }

.drawer { border: 0; padding: 0; margin: 0; height: 100dvh; max-height: 100dvh; width: min(88vw, 360px); background: var(--cream); color: var(--ink); border-radius: 0 var(--r-xl) var(--r-xl) 0; overflow: hidden; }
.drawer::backdrop { background: rgba(14, 32, 14, .58); }
.drawer[open] { display: flex; flex-direction: column; animation: drawer-in .3s var(--ease); }
@keyframes drawer-in { from { transform: translateX(-30px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 16px 14px; background: var(--forest); color: var(--cream-ink); }
.drawer__head .sheet__close--static { background: rgba(255, 248, 230, .16); color: var(--cream-ink); }
.drawer__nav { display: grid; padding: 12px; gap: 2px; overflow-y: auto; flex: 1; align-content: start; }
.drawer__nav a, .drawer__nav button { display: flex; align-items: center; gap: 14px; min-height: 52px; padding: 0 14px; border: 0; background: transparent; border-radius: var(--r-md); text-decoration: none; text-align: left; font: 600 18px var(--font-display); color: var(--ink); cursor: pointer; }
.drawer__nav a:hover, .drawer__nav button:hover { background: var(--butter); }
.drawer__nav a[aria-current="page"] { background: var(--forest); color: var(--cream-ink); }
.drawer__nav .ico { color: var(--cta); }
.drawer__nav a[aria-current="page"] .ico { color: var(--lime); }
.drawer__sep { height: 0; border-top: 2px dotted var(--line); margin: 8px 6px; }
.drawer__small a, .drawer__small button { font: 600 15px var(--font-body); min-height: 44px; color: var(--muted); }
.drawer__foot { padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 2px dotted var(--line); display: grid; gap: 4px; font-weight: 700; }
.drawer__foot span { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------------------------------------------------------------- Оформление и заказ */
.checkout, .order { padding-top: 14px; padding-bottom: 48px; max-width: 720px; }
.checkout__title { font: 800 clamp(26px, 6vw, 32px)/1.1 var(--font-display); letter-spacing: -.02em; color: var(--forest); margin: 4px 0 14px; }
#checkout-root, .order, .account { display: grid; gap: 14px; }
.ocard { background: var(--paper); border: 1.5px solid #eadcb0; border-radius: var(--r-lg); box-shadow: var(--shadow); padding: 16px; display: grid; gap: 10px; }
.ocard__h { font: 700 18px var(--font-display); color: var(--forest); }
.ocard__status { font: 800 24px/1.15 var(--font-display); letter-spacing: -.01em; color: var(--forest); }
.ocard__pay { display: grid; gap: 10px; padding: 12px; background: #ffe9b8; border-radius: var(--r-md); }
.plain--clean { list-style: none; padding: 0; display: grid; gap: 8px; }
.oitem { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 2px dotted var(--line); }
.oitem:last-child { border-bottom: 0; }
.oitem strong { font-variant-numeric: tabular-nums; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps__item { position: relative; padding: 9px 0 9px 36px; color: var(--muted); font-weight: 700; }
.steps__item::before { content: ""; position: absolute; left: 5px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; border: 2.5px solid var(--line); background: var(--paper); z-index: 1; }
.steps__item::after { content: ""; position: absolute; left: 12px; top: -50%; bottom: 50%; width: 3px; background: var(--line); }
.steps__item:first-child::after { display: none; }
.steps__item.is-done { color: var(--ink); }
.steps__item.is-done::before { background: var(--cta); border-color: var(--cta); }
.steps__item.is-done::after { background: var(--cta); }
.steps__item.is-current { font-family: var(--font-display); font-weight: 700; color: var(--forest); }
.steps__item.is-current::before { box-shadow: 0 0 0 6px #dcebb4; }
.mockpay { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- Кабинет, отзывы */
.account { padding-top: 14px; padding-bottom: 48px; max-width: 720px; }
.olist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.orow { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fffdf5; }
.orow__main { display: grid; gap: 2px; min-width: 0; }
.orow__num { font: 700 17px var(--font-display); text-decoration: none; color: var(--forest); }
.orow__meta { font-size: 13px; color: var(--muted); font-weight: 600; }
.orow__status { font-size: 14px; font-weight: 700; }
.orow__side { display: grid; justify-items: end; gap: 4px; }
.orow__side strong { font: 700 17px var(--font-display); font-variant-numeric: tabular-nums; }
.orow__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.stars { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; }
.stars legend { width: 100%; padding: 0; margin-bottom: 2px; font: 700 14px var(--font-display); }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 34px; line-height: 1; padding: 4px 3px; color: #d9cfae; cursor: pointer; }
.stars:has(input:nth-of-type(1):checked) label:nth-of-type(-n+1),
.stars:has(input:nth-of-type(2):checked) label:nth-of-type(-n+2),
.stars:has(input:nth-of-type(3):checked) label:nth-of-type(-n+3),
.stars:has(input:nth-of-type(4):checked) label:nth-of-type(-n+4),
.stars:has(input:nth-of-type(5):checked) label:nth-of-type(-n+5) { color: #f0a81c; }
.stars input:focus-visible + label { outline: 3px solid var(--lime); border-radius: 6px; }
.rev-h { font: 700 16px var(--font-display); margin: 6px 0 2px; }
.rev-form, .rev-done { display: grid; gap: 8px; padding: 12px; border: 1.5px solid var(--line); border-radius: var(--r-md); }
.rev-reply { background: var(--butter); padding: 8px 12px; border-radius: 10px; font-size: 14px; }
.rate { color: #7a5200; font-weight: 700; }
.rate__n { color: var(--muted); font-weight: 600; }
.reviews { margin-top: 28px; }
.revlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rev { padding: 12px 14px; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow); display: grid; gap: 4px; }
.rev__head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; color: #a06b00; }
.rev__head strong { color: var(--ink); }

/* ---------------------------------------------------------------- Cookie, подвал, юридические страницы, уведомления */
.cookiebar { position: fixed; left: 12px; right: 12px; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 76px); z-index: 90; max-width: 560px; margin: 0 auto; display: grid; gap: 10px; padding: 14px 16px; background: var(--paper); border-radius: var(--r-lg); box-shadow: 0 12px 34px rgba(23, 40, 15, .32); font-size: 14px; }
@media (min-width: 820px) { .cookiebar { bottom: 90px; } }
.cookiebar p { margin: 0; color: var(--body-text); font-weight: 600; }
.cookiebar a { color: var(--cta); }
.cookiebar__btns { display: flex; gap: 8px; flex-wrap: wrap; }

.foot { background: var(--forest); color: var(--moss); margin-top: auto; flex: none; padding: 28px 0 40px; font-size: 14px; font-weight: 600; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.foot__row { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; }
.foot a, .foot .linkbtn { color: var(--cream-ink); }
.foot__brand { display: flex; align-items: center; gap: 10px; font: 700 16px var(--font-display); color: var(--cream-ink); margin-bottom: 14px; }
.legal { padding-top: 16px; padding-bottom: 48px; max-width: 760px; }
.legal h1 { font: 800 30px/1.1 var(--font-display); color: var(--forest); margin: 8px 0 12px; letter-spacing: -.02em; }
.legal h2 { font: 700 19px var(--font-display); margin: 26px 0 6px; color: var(--forest); }
.legal p, .legal li { color: var(--body-text); }
.legal__note { background: #ffe9b8; color: #5b4300; padding: 8px 12px; border-radius: var(--r-sm); font-size: 14px; font-weight: 700; }
.info-grid { display: grid; gap: 14px; }
.info-table { width: 100%; border-collapse: collapse; }
.info-table th, .info-table td { text-align: left; padding: 10px 8px; border-bottom: 2px dotted var(--line); vertical-align: top; }
.info-table th { font: 700 13px var(--font-display); color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }

.toast { position: fixed; left: 50%; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 84px); transform: translate(-50%, 20px); background: var(--ink); color: var(--cream-ink); padding: 12px 20px; border-radius: 999px; font: 600 15px var(--font-display); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .25s var(--ease); z-index: 200; max-width: calc(100vw - 32px); text-align: center; }
@media (min-width: 820px) { .toast { bottom: 90px; } }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

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

/* Степпер на карточке: после первого «+» кнопка превращается в «− число +» */
.card__foot { flex-wrap: wrap; }
.stepper { display: inline-flex; align-items: center; flex: 1 1 100%; justify-content: space-between; height: 44px; border-radius: 999px; background: var(--forest); color: var(--cream-ink); transform-origin: right center; }
.stepper.is-new { animation: stepper-in .35s var(--ease); }
.stepper button { width: 40px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.stepper button .ico { width: 20px; height: 20px; stroke-width: 2.6; }
.stepper button:active { background: rgba(255, 248, 230, .18); }
.stepper output { min-width: 22px; text-align: center; font: 800 17px var(--font-display); font-variant-numeric: tabular-nums; }
.stepper output.is-bump { animation: qty-bump .3s var(--ease); }
@keyframes stepper-in { from { width: 44px; opacity: .4; transform: scale(.7); } to { opacity: 1; transform: none; } }
@keyframes qty-bump { 0% { transform: translateY(8px) scale(.7); opacity: 0; } 60% { transform: translateY(-2px) scale(1.2); opacity: 1; } 100% { transform: none; } }
@media (prefers-reduced-motion: reduce) { .stepper.is-new, .stepper output.is-bump { animation: none; } }

/* Ручка «потяни вниз» у нижних шторок */
.sheet:not(.sheet--map)::after { content: ""; position: absolute; left: 50%; top: 8px; width: 42px; height: 5px; margin-left: -21px; border-radius: 3px; background: rgba(34, 48, 29, .28); pointer-events: none; z-index: 5; }
.sheet:not([open])::after { display: none; }
@media (min-width: 720px) { .sheet::after { display: none; } }
.sheet { touch-action: auto; }

/* «Вы уже заказывали» */
.recs { display: grid; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 2px dotted var(--line); }
.recs[hidden] { display: none; }
.recs__title { font: 700 17px var(--font-display); color: var(--forest); }
.recs__list { display: flex; gap: 10px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 8px; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.recs__list::-webkit-scrollbar { display: none; }
.rec { flex: none; width: 150px; scroll-snap-align: start; display: grid; grid-template-rows: auto 1fr auto; gap: 6px; padding: 8px; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow); }
.rec__media { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--plate-0); }
.rec__media img { width: 100%; height: 100%; object-fit: cover; }
.rec__media .plate .ico { width: 46%; height: 46%; }
.rec__name { font: 700 14px/1.2 var(--font-display); color: var(--ink); text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.4em; }
.rec__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.rec__foot .price { font-size: 16px; }

.recs, .recs__list { min-width: 0; max-width: 100%; }
.recs--flat { border-top: 0; margin-top: 0; }
.recs--flat .recs__list { margin: 0 -4px; padding: 2px 4px 8px; }
.recs--flat .recs__title { font-size: 20px; }

/* Полосы прокрутки не налезают на шторки: у листа своя, скрытая; фон страницы под открытым диалогом не прокручивается */
.sheet__scroll, .drawer, .sugg { scrollbar-width: none; }
.sheet__scroll::-webkit-scrollbar, .drawer::-webkit-scrollbar, .sugg::-webkit-scrollbar { display: none; }
html:has(dialog[open]) { overflow: hidden; }
#review-root { display: grid; gap: 10px; }
#review-root .rev-h { margin: 8px 0 0; }
body > main { flex: 1 0 auto; padding-bottom: 32px; }
@media (max-width: 819px) { .foot { padding-bottom: calc(72px + var(--tabbar-h) + env(safe-area-inset-bottom)); } }

/* Нижнее меню со скруглёнными краями */
.tabbar { border-radius: 0; }

/* Плашка корзины: компактная, справа — иконка и сумма */
.cartbar__btn { width: auto; max-width: none; margin: 0 0 0 auto; min-height: 52px; padding: 0 20px; gap: 10px; }
.cartbar__lbl #cartbar-text { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 820px) { .cartbar__btn { margin: 0 0 0 auto; } }

/* Вход через соцсети: иконки брендов */
.oauth__row { grid-template-columns: repeat(3, 1fr); }
.oauth__btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px; font-size: 14px; }
.oauth__ico { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.oauth__btn.is-off { opacity: .6; }

/* Карточка заказа в кабинете: шапка, лента блюд, кнопка «Повторить» */
.orow--order { display: grid; gap: 12px; padding: 14px; justify-content: stretch; align-items: stretch; }
.orow__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.orow__sum { font: 700 18px var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.orow__slider { list-style: none; margin: 0 -14px; padding: 0 14px 4px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.orow__slider::-webkit-scrollbar { display: none; }
.orow__item { flex: none; width: 92px; scroll-snap-align: start; display: grid; gap: 6px; }
.orow__pic { position: relative; display: block; width: 92px; height: 92px; border-radius: 14px; overflow: hidden; background: var(--plate-0); }
.orow__pic img { width: 100%; height: 100%; object-fit: cover; }
.orow__pic .plate .ico { width: 48%; height: 48%; }
.orow__qty { position: absolute; right: 6px; bottom: 6px; padding: 1px 7px; border-radius: 999px; background: rgba(var(--forest-rgb), .88); color: var(--cream-ink); font: 700 12px var(--font-display); }
.orow__name { font-size: 12px; font-weight: 700; line-height: 1.2; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.orow__repeat { min-height: 46px; }

/* Лента блюд в карточке заказа: компактнее, с отступами от края блока */
.orow--order { padding: 16px; }
.orow__slider { margin: 0; padding: 2px 0 6px; gap: 8px; }
.orow__item { width: 68px; }
.orow__pic { width: 68px; height: 68px; border-radius: 12px; }
.orow__qty { right: 4px; bottom: 4px; padding: 0 6px; font-size: 11px; }
.orow__name { font-size: 11.5px; }

/* Адреса в кабинете */
.addr-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.acard { display: grid; gap: 12px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: var(--r-md); background: #fffdf5; transition: border-color .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease); }
.acard.is-current { border-color: var(--cta); background: #f1f8e6; box-shadow: 0 0 0 3px rgba(76, 184, 20, .16); }
.acard__top { display: flex; align-items: flex-start; gap: 10px; }
.acard__text { display: grid; gap: 2px; min-width: 0; flex: 1; }
.acard__title { font: 700 17px/1.2 var(--font-display); color: var(--forest); overflow-wrap: anywhere; }
.acard__meta { font-size: 14px; color: var(--muted); font-weight: 600; overflow-wrap: anywhere; }
.acard__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.acard__tag { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 800; background: var(--butter); color: var(--forest); }
.acard__tag--now { background: var(--cta); color: var(--cream-ink); }
.acard__tag .ico { width: 14px; height: 14px; stroke-width: 2.6; }
.acard__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.acard__default { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; font-weight: 700; cursor: pointer; }
.acard__default input { width: 22px; height: 22px; margin: 0; accent-color: var(--cta); cursor: pointer; }
.acard__btns { display: flex; gap: 8px; margin-left: auto; }
.acard__btns .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--danger-ghost { background: transparent; color: var(--tomato); border: 2px solid #e3b2a5; }
.btn--danger-ghost:hover { background: #fbe3dc; border-color: var(--tomato); color: var(--tomato); }
@media (max-width: 480px) { .acard__btns { margin-left: 0; width: 100%; } .acard__btns .btn { flex: 1; } }

.crumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; font-size: 14px; font-weight: 700; }
.crumbs__list li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.crumbs__list a { color: var(--forest); text-decoration: none; }
.crumbs__list a:hover { text-decoration: underline; }
.crumbs__list [aria-current] { color: var(--muted); overflow-wrap: anywhere; }
.about { margin-top: 36px; padding: 20px 18px; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--r-lg); display: grid; gap: 8px; }
.about h2 { font: 800 20px var(--font-display); color: var(--forest); margin: 0; }
.about p { margin: 0; color: var(--body-text); }
.about a { color: var(--forest); font-weight: 800; }

/* Эффект стекла у окон: те же цвета сайта, но с прозрачностью и размытием фона */
.sheet::backdrop, .drawer::backdrop { backdrop-filter: blur(7px) saturate(1.08); -webkit-backdrop-filter: blur(7px) saturate(1.08); }
.sheet:not(.sheet--map) { background: rgba(251, 241, 217, .84); backdrop-filter: blur(20px) saturate(1.15); -webkit-backdrop-filter: blur(20px) saturate(1.15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 -18px 50px -24px rgba(14, 32, 14, .55); border: 1px solid rgba(255, 255, 255, .45); border-bottom: 0; }
@media (min-width: 720px) { .sheet:not(.sheet--map) { border-bottom: 1px solid rgba(255, 255, 255, .45); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 30px 70px -28px rgba(14, 32, 14, .6); } }
.sheet:not(.sheet--map) .sheet__bar, .sheet:not(.sheet--map) .cart__bar { background: rgba(255, 251, 239, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.drawer { background: rgba(var(--forest-rgb), .86); backdrop-filter: blur(20px) saturate(1.1); -webkit-backdrop-filter: blur(20px) saturate(1.1); }
.cookiebar { background: rgba(255, 251, 239, .86); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); border: 1px solid rgba(255, 255, 255, .55); }
.toast { backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .sheet:not(.sheet--map) { background: var(--cream); } .drawer { background: var(--forest); } .cookiebar { background: var(--paper); }
}
@media (prefers-reduced-transparency: reduce) {
    .sheet:not(.sheet--map) { background: var(--cream); backdrop-filter: none; } .drawer { background: var(--forest); backdrop-filter: none; } .cookiebar { background: var(--paper); backdrop-filter: none; }
}
.legal__list { display: grid; gap: 8px; padding-left: 22px; margin: 0 0 12px; }
.legal__req { display: grid; grid-template-columns: minmax(120px, 190px) 1fr; gap: 6px 14px; margin: 0 0 16px; }
.legal__req dt { color: var(--muted); font-weight: 700; }
.legal__req dd { margin: 0; overflow-wrap: anywhere; }

/* Галерея блюда */
.gal { position: absolute; inset: 0; }
.gal__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.gal__track::-webkit-scrollbar { display: none; }
.gal__slide { flex: none; width: 100%; height: 100%; scroll-snap-align: center; position: relative; background: var(--plate-0); }
.gal__slide img, .gal__slide video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gal__slide video { object-fit: contain; background: #10200f; }
.gal__dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.gal__dot { pointer-events: auto; width: 24px; height: 24px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.gal__dot::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: rgba(255, 251, 239, .65); box-shadow: 0 0 0 1px rgba(var(--forest-rgb), .35); transition: width .2s var(--ease), background .2s var(--ease); }
.gal__dot.is-on::before { width: 22px; background: var(--cream); }

.auth__hint { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted, #5a6450); }
.auth__hint:empty { display: none; }
.oauth .auth__hint { margin-top: 10px; text-align: center; }
/* Меню-ящик со стеклом: светлая подложка, чтобы текст читался (цвета сайта прежние) */
.drawer { background: rgba(251, 241, 217, .95); backdrop-filter: blur(22px) saturate(1.1); -webkit-backdrop-filter: blur(22px) saturate(1.1); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .drawer { background: var(--cream); } }
@media (prefers-reduced-transparency: reduce) { .drawer { background: var(--cream); backdrop-filter: none; } }
.drawer__head { background: var(--forest); }

.addr-more { margin: 0 0 12px; min-height: 48px; }
#address-others { margin-top: 0; }
#address-others[hidden] { display: none; }

/* Слайдер фото в карточке меню */
.card__mediabox { position: relative; }
.cslide { position: absolute; inset: 0; display: block; }
.cslide__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.cslide__track::-webkit-scrollbar { display: none; }
.cslide__track img { flex: none; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; }
.cslide__dots { position: absolute; left: 0; right: 0; bottom: 8px; display: flex; justify-content: center; gap: 4px; pointer-events: none; }
.cslide__dot { width: 6px; height: 6px; border-radius: 99px; background: rgba(255, 251, 239, .7); box-shadow: 0 0 0 1px rgba(var(--forest-rgb), .3); transition: width .2s var(--ease), background .2s var(--ease); }
.cslide__dot.is-on { width: 16px; background: var(--cream); }
/* Видео в галерее: обложка и кнопка, файл грузится позже фото */
.vslide { position: relative; width: 100%; height: 100%; background: #10200f; }
.vslide video { width: 100%; height: 100%; object-fit: contain; display: block; background: #10200f; }
.vslide__play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px 0 14px; border: 0; border-radius: 999px; background: rgba(255, 251, 239, .9); color: var(--forest); font: 800 15px var(--font-display); cursor: pointer; box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.vslide__play .ico { width: 22px; height: 22px; fill: currentColor; stroke: none; }
.vslide.is-playing .vslide__play { display: none; }

/* Автоплей без звука: большая кнопка скрыта, остаётся маленькая кнопка звука */
.vslide.is-autoplay .vslide__play { display: none; }
.vslide.is-started video { background: #000; }
.vslide__sound { position: absolute; right: 10px; bottom: 36px; width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255, 251, 239, .88); color: var(--forest); cursor: pointer; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .5); }
.vslide__sound[hidden] { display: none; }
.vslide__sound .ico { width: 22px; height: 22px; }

/* Лента исполнения заказа над нижним меню */
:root { --ostrip-h: 0px; }
.ostrip { position: fixed; left: 0; right: 0; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); z-index: 36; display: none; }
.ostrip.is-on { display: block; animation: ostrip-in .4s var(--ease); }
@keyframes ostrip-in { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 820px) { .ostrip { bottom: 0; } }
.ostrip__link { display: grid; gap: 4px; padding: 8px 18px 12px; text-decoration: none; color: var(--cream-ink); background: rgba(var(--forest-rgb), .92); backdrop-filter: blur(16px) saturate(1.1); -webkit-backdrop-filter: blur(16px) saturate(1.1); border-top: 1px solid rgba(255, 248, 230, .18); }
.ostrip__text { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.ostrip__label { font: 700 14px var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ostrip__num { color: var(--moss); font-weight: 700; white-space: nowrap; }
.ostrip__track { position: relative; height: 34px; margin: 0 8px; }
.ostrip__track::before { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 0; border-top: 3px dotted rgba(255, 248, 230, .45); }
.ostrip__fill { position: absolute; left: 0; bottom: 6px; height: 3px; width: calc(var(--p, .1) * 100%); border-radius: 3px; background: var(--lime); transition: width 1.2s var(--ease); }
.ostrip__home, .ostrip__end { position: absolute; bottom: 0; width: 16px; height: 16px; color: var(--moss); display: grid; place-items: center; }
.ostrip__home { left: -8px; } .ostrip__end { right: -8px; }
.ostrip__home .ico, .ostrip__end .ico { width: 16px; height: 16px; }
.ostrip__rider { position: absolute; bottom: 2px; left: calc(var(--p, .1) * 100%); width: 44px; height: 30px; margin-left: -22px; color: var(--cream-ink); transition: left 1.2s var(--ease); }
.ostrip__rider .ico { width: 100%; height: 100%; stroke-width: 2.2; }
.ostrip.is-delivery .ostrip__rider .ico { color: var(--cream-ink); }
.ostrip__rider.is-riding { animation: courier-bob .55s ease-in-out infinite; }
.ostrip__rider.is-courier:not(.is-riding) { animation: courier-wait 2.4s ease-in-out infinite; }
@keyframes courier-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }
@keyframes courier-wait { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1px); } }
/* самовывоз: коробка упаковывается */
.ostrip__rider.is-box { width: 36px; height: 30px; margin-left: -18px; }
.ostrip__rider.is-box .ico { position: absolute; left: 0; bottom: 0; width: 36px; height: 28px; }
.ostrip__lid { position: absolute; left: 0; top: -1px; width: 36px; height: 9px; transform-origin: 0 100%; transition: transform .6s var(--ease); transform: rotate(-38deg); color: var(--lime); }
.ostrip__rider.is-box .ostrip__lid .ico { position: static; width: 36px; height: 9px; fill: currentColor; stroke-width: 1.5; }
.ostrip__rider.is-closed .ostrip__lid { transform: rotate(0); }
.ostrip__rider.is-packing .ostrip__lid { animation: lid-flap 1.8s ease-in-out infinite; }
@keyframes lid-flap { 0%, 100% { transform: rotate(-38deg); } 50% { transform: rotate(-12deg); } }
.ostrip__item { position: absolute; left: 11px; top: -2px; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); opacity: 0; }
.ostrip__item--2 { left: 19px; background: #f2b01e; }
.ostrip__rider.is-packing .ostrip__item--1 { animation: drop-in 1.6s ease-in infinite; }
.ostrip__rider.is-packing .ostrip__item--2 { animation: drop-in 1.6s ease-in .8s infinite; }
@keyframes drop-in { 0% { transform: translateY(-14px); opacity: 0; } 25% { opacity: 1; } 70% { transform: translateY(10px); opacity: 1; } 100% { transform: translateY(12px); opacity: 0; } }
.ostrip__rider.is-closed::after { content: ""; position: absolute; right: -3px; top: -4px; width: 14px; height: 14px; border-radius: 50%; background: var(--lime); --chk-size: 9px; }
@media (prefers-reduced-motion: reduce) { .ostrip__rider, .ostrip__fill, .ostrip__lid, .ostrip__item { animation: none !important; transition: none !important; } }
/* плавающие элементы поднимаются над лентой */
html.has-ostrip .cartbar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--ostrip-h) + 10px); }
html.has-ostrip .toast { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--ostrip-h) + 84px); }
html.has-ostrip .cookiebar { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + var(--ostrip-h) + 76px); }
html.has-ostrip .foot { padding-bottom: calc(96px + var(--tabbar-h) + var(--ostrip-h) + env(safe-area-inset-bottom)); }
@media (min-width: 820px) { html.has-ostrip .cartbar { bottom: calc(var(--ostrip-h) + 18px); } html.has-ostrip .foot { padding-bottom: calc(40px + var(--ostrip-h)); } }

/* Видео в карточке меню: слайд после основного фото, плавное появление */
.cslide__track > * { flex: none; width: 100%; height: 100%; scroll-snap-align: center; }
.cslide__vid { position: relative; display: block; background: #10200f; }
.cslide__vid video { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .7s var(--ease); }
.cslide.is-playing .cslide__vid video { opacity: 1; }
.cslide__vid video[poster] { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .cslide__vid video { transition: none; } }

/* Иконки ленты заказа: цветные плоские, крупнее и понятнее */
.sico { width: 100%; height: 100%; display: block; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ostrip__track { height: 56px; margin: 0 20px; }
.ostrip__track::before { bottom: 10px; }
.ostrip__fill { bottom: 10px; }
.ostrip__home, .ostrip__end { width: 38px; height: 38px; bottom: 0; color: inherit; }
.ostrip__home { left: -20px; } .ostrip__end { right: -20px; }
.ostrip__home .sico, .ostrip__end .sico { width: 38px; height: 38px; }
.ostrip__rider { bottom: 2px; width: 74px; height: 46px; margin-left: -37px; }
.ostrip__rider .sico { width: 74px; height: 46px; }
.ostrip__rider.is-bag { width: 44px; height: 44px; margin-left: -22px; }
.ostrip__rider.is-bag .sico { position: absolute; left: 0; bottom: 0; width: 44px; height: 44px; }
.ostrip__rider.is-bag .ostrip__item { left: 15px; top: -6px; width: 9px; height: 9px; }
.ostrip__rider.is-bag .ostrip__item--2 { left: 26px; }
.ostrip__item { background: var(--cream-ink); }
.ostrip__rider.is-packing { animation: bag-shake 1.6s ease-in-out infinite; }
@keyframes bag-shake { 0%, 100% { transform: rotate(0); } 45% { transform: rotate(-3deg); } 55% { transform: rotate(3deg); } }
.ostrip__rider.is-closed { animation: none; }
.ostrip__rider.is-closed::after { display: none; }
/* Дорога под иконками: линия не заходит на крайние иконки и не пересекает фигуры */
.ostrip__track::before { left: 24px; right: 24px; bottom: 5px; }
.ostrip__fill { left: 24px; bottom: 5px; width: calc((100% - 48px) * var(--p, .1)); }
.ostrip__home, .ostrip__end { bottom: 2px; }
.ostrip__rider { bottom: 2px; left: calc(24px + (100% - 48px) * var(--p, .1)); }
.ostrip__rider .sico { fill: var(--forest); }
/* Курьер/пакет ходит между крайними иконками и не наезжает на них даже при 100% */
.ostrip__fill { width: calc(34px + (100% - 116px) * var(--p, .1)); }
.ostrip__rider { left: calc(58px + (100% - 116px) * var(--p, .1)); }
/* Курьер из готового значка (заливка, пропорции 512:380) */
.ostrip__rider.is-courier { width: 64px; height: 48px; margin-left: -32px; }
.ostrip__rider.is-courier .sico { width: 64px; height: 48px; }
.ostrip__rider.is-riding { animation: courier-ride .5s ease-in-out infinite; }
@keyframes courier-ride { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-2px) rotate(-1.5deg); } }
/* линии скорости позади курьера, пока он в пути */
.ostrip__rider.is-riding::before { content: ""; position: absolute; right: 100%; top: 40%; width: 18px; height: 10px; margin-right: 2px; background: linear-gradient(currentColor, currentColor) 0 0 / 14px 2px no-repeat, linear-gradient(currentColor, currentColor) 6px 8px / 12px 2px no-repeat; opacity: .7; animation: courier-wind .45s linear infinite; }
@keyframes courier-wind { 0% { transform: translateX(6px); opacity: 0; } 40% { opacity: .75; } 100% { transform: translateX(-6px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ostrip__rider.is-riding::before { animation: none; opacity: .5; } }
/* Курьер-силуэт: пропорции 64:55, линии скорости уже нарисованы в значке */
.ostrip__rider.is-courier { width: 62px; height: 54px; margin-left: -31px; }
.ostrip__rider.is-courier .sico { width: 62px; height: 54px; fill: currentColor; stroke: none; }
.ostrip__rider.is-riding::before { display: none; }
/* ---- Анимация по статусам ---- */
/* Курьера нет, пока заказ не готов */
.ostrip__rider.is-hidden { opacity: 0; transition: none; animation: none; pointer-events: none; }
/* «Готов»: курьер выезжает к повару и ждёт, слегка покачиваясь */
.ostrip__rider.is-appear { animation: courier-in .7s var(--ease) both, courier-wait 2.4s ease-in-out .7s infinite; }
@keyframes courier-in { from { opacity: 0; transform: translateX(-14px) scale(.85); } to { opacity: 1; transform: none; } }
/* «Выполнен»: курьер стоит у дома */
.ostrip__rider.is-arrived { animation: none; }
/* Повар «готовит»: шапка покачивается, над ней поднимается пар */
.ostrip__home { position: absolute; }
.ostrip__home.is-cooking .sico { transform-origin: 50% 90%; animation: chef-cook .9s ease-in-out infinite; }
@keyframes chef-cook { 0%, 100% { transform: rotate(0) translateY(0); } 25% { transform: rotate(-5deg) translateY(-1px); } 75% { transform: rotate(5deg) translateY(-1px); } }
.ostrip__home.is-cooking::before, .ostrip__home.is-cooking::after { content: ""; position: absolute; top: -6px; width: 2px; height: 7px; border-radius: 2px; background: currentColor; opacity: 0; animation: steam 1.4s ease-out infinite; }
.ostrip__home.is-cooking::before { left: 12px; }
.ostrip__home.is-cooking::after { left: 22px; animation-delay: .6s; }
@keyframes steam { 0% { transform: translateY(6px); opacity: 0; } 30% { opacity: .8; } 100% { transform: translateY(-6px); opacity: 0; } }
/* «Выполнен»: зелёная галочка на доме или магазине */
.ostrip__end { position: absolute; }
.ostrip__end.is-done::after { content: ""; position: absolute; right: -5px; top: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); --chk-size: 11px; animation: check-pop .5s var(--ease) both; }
@keyframes check-pop { 0% { transform: scale(0); } 70% { transform: scale(1.25); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .ostrip__home.is-cooking .sico, .ostrip__home.is-cooking::before, .ostrip__home.is-cooking::after, .ostrip__end.is-done::after, .ostrip__rider.is-appear { animation: none !important; } }
/* «Вы уже заказывали»: результат добавления показываем в самой карточке (плашка корзины скрыта под окном блюда) */
.rec { grid-template-rows: auto 1fr auto auto; }
.rec__note { margin: 0; font: 700 12px/1.25 var(--font-display); }
.rec__note:empty { display: none; }
.rec__note.is-ok { color: var(--forest); }
.rec__note.is-err { color: #b3261e; }
.rec .add.is-added { background: var(--lime); color: var(--forest); }

/* Галочка-бейдж на доме/магазине: круг на ::after, сама «галка» на ::before, цвет штриха из темы */
.ostrip__end.is-done::before { content: ""; position: absolute; right: 1.5px; top: -1px; width: 5px; height: 9px; z-index: 1; border: solid var(--forest); border-width: 0 2.4px 2.4px 0; border-radius: 1px; transform: translate(-1px, 0) rotate(40deg) scale(0); animation: check-tick .5s var(--ease) .12s both; }
@keyframes check-tick { 0% { transform: translate(-1px, 0) rotate(40deg) scale(0); } 100% { transform: translate(-1px, 0) rotate(40deg) scale(1); } }
@media (prefers-reduced-motion: reduce) { .ostrip__end.is-done::before { animation: none; transform: translate(-1px, 0) rotate(40deg); } }

/* ================================================================ Цветовое оформление (выбирается в админке) */
html[data-theme="terracotta"] {
    --forest: #4b1f17; --forest-rgb: 75, 31, 23; --forest-2: #5e2a20; --forest-3: #70352a;
    --moss: #f3d9b8; --clover: #d9622b; --lime: #f2a541;
    --cta: #b8431d; --cta-hover: #9a3716;
    --cream: #fbf0e4; --paper: #fffaf3; --butter: #f3dcc2; --line: #e8cfb4;
    --ink: #33201a; --muted: #7a6558; --cream-ink: #fff6ea; --tomato: #a31d1d;
    --scroll: #c79a7b; --scroll-2: #e0bfa4;
    --tile-2: #7a3a24; --tile-3: #34120d; --tile-4: #8a5a1c; --tile-5: #5a2a38;
    --body-text: #4a3a32; --opt-on: #f8e7d2;
    --plate-0: #f3dcc2; --plate-1: #f2d8b4; --plate-2: #f7d9b5; --plate-3: #efd0bd; --plate-4: #f2d6c4;
    --shadow: 0 1px 0 rgba(var(--forest-rgb), .06), 0 10px 22px -12px rgba(90, 40, 20, .32);
}
html[data-theme="sea"] {
    --forest: #0f3a4a; --forest-rgb: 15, 58, 74; --forest-2: #14495c; --forest-3: #1b5b70;
    --moss: #cfe9ee; --clover: #1fa6a0; --lime: #ffb703;
    --cta: #0b7a75; --cta-hover: #086561;
    --cream: #f3f7f6; --paper: #fbfdfc; --butter: #dcebe8; --line: #cfe0dc;
    --ink: #14262b; --muted: #5a6f72; --cream-ink: #f2fbfa; --tomato: #c13a22;
    --scroll: #7fb3b8; --scroll-2: #b5d3d6;
    --tile-2: #17607a; --tile-3: #082a36; --tile-4: #1b6b5c; --tile-5: #26446b;
    --body-text: #34484c; --opt-on: #dff0ee;
    --plate-0: #dcebe8; --plate-1: #d2e8ee; --plate-2: #f6e3b9; --plate-3: #cfe6df; --plate-4: #f3d9cc;
    --shadow: 0 1px 0 rgba(var(--forest-rgb), .06), 0 10px 22px -12px rgba(10, 50, 60, .3);
}

/* ---- Ещё пять вариантов оформления ---- */
html[data-theme="plum"] {
    --forest: #3d1c40; --forest-rgb: 61, 28, 64; --forest-2: #4d2751; --forest-3: #5e3263;
    --moss: #f1d6f0; --clover: #c04f9c; --lime: #f59ac2;
    --cta: #8a2b6c; --cta-hover: #721f58;
    --cream: #fbf2f7; --paper: #fffafc; --butter: #f1dbe8; --line: #e6cfdc;
    --ink: #2f1a2e; --muted: #755b70; --cream-ink: #fff5fb; --tomato: #b3261e;
    --scroll: #b98fb0; --scroll-2: #d9bfd3;
    --tile-2: #6a2f6e; --tile-3: #2a1030; --tile-4: #8a3a6a; --tile-5: #4a2a6a;
    --body-text: #4a384a; --opt-on: #f6e3ef;
    --plate-0: #f1dbe8; --plate-1: #e9d8f0; --plate-2: #f7d9d5; --plate-3: #e0d6f0; --plate-4: #f4d6e0;
    --shadow: 0 1px 0 rgba(var(--forest-rgb), .06), 0 10px 22px -12px rgba(60, 20, 60, .3);
}
html[data-theme="cherry"] {
    --forest: #5a1220; --forest-rgb: 90, 18, 32; --forest-2: #6c1b2c; --forest-3: #7e2638;
    --moss: #ffd9d2; --clover: #e0523f; --lime: #ff9f8a;
    --cta: #b3202b; --cta-hover: #961a23;
    --cream: #fff3ef; --paper: #fffaf8; --butter: #fbdcd2; --line: #efcfc6;
    --ink: #351a1a; --muted: #7d5a56; --cream-ink: #fff5f1; --tomato: #8f1d1d;
    --scroll: #cf968c; --scroll-2: #e8bdb5;
    --tile-2: #8a2a38; --tile-3: #3a0e16; --tile-4: #a8452d; --tile-5: #6a2a4a;
    --body-text: #4d3634; --opt-on: #fde7e0;
    --plate-0: #fbdcd2; --plate-1: #f7e0c2; --plate-2: #f7d9b5; --plate-3: #f2d0d6; --plate-4: #f4d6c4;
    --shadow: 0 1px 0 rgba(var(--forest-rgb), .06), 0 10px 22px -12px rgba(90, 20, 30, .3);
}
html[data-theme="graphite"] {
    --forest: #1e2730; --forest-rgb: 30, 39, 48; --forest-2: #28333e; --forest-3: #33414e;
    --moss: #d7e0e8; --clover: #2fbf8f; --lime: #6ee7b7;
    --cta: #17785a; --cta-hover: #125f47;
    --cream: #f3f5f6; --paper: #fcfdfd; --butter: #e1e6ea; --line: #d3dade;
    --ink: #1a2128; --muted: #5b6770; --cream-ink: #f4f8fa; --tomato: #c13a22;
    --scroll: #8c9aa5; --scroll-2: #bcc6ce;
    --tile-2: #2f4352; --tile-3: #10171d; --tile-4: #35504a; --tile-5: #3b3f55;
    --body-text: #38434b; --opt-on: #e3f3ec;
    --plate-0: #e1e6ea; --plate-1: #d9e8e2; --plate-2: #e8e2d4; --plate-3: #dbe3ee; --plate-4: #eadfe0;
    --shadow: 0 1px 0 rgba(var(--forest-rgb), .06), 0 10px 22px -12px rgba(20, 30, 40, .3);
}
html[data-theme="indigo"] {
    --forest: #1b2559; --forest-rgb: 27, 37, 89; --forest-2: #243170; --forest-3: #2e3d86;
    --moss: #d9e0ff; --clover: #4f6df5; --lime: #7dd3fc;
    --cta: #3347c6; --cta-hover: #2938a3;
    --cream: #f4f5fc; --paper: #fcfcff; --butter: #dfe3f6; --line: #d2d7ee;
    --ink: #1a1f3a; --muted: #5d6285; --cream-ink: #f5f7ff; --tomato: #c13a22;
    --scroll: #8f99d3; --scroll-2: #bcc3e6;
    --tile-2: #33449a; --tile-3: #111a45; --tile-4: #2a5aa0; --tile-5: #4b3a96;
    --body-text: #3a3f62; --opt-on: #e6e9fb;
    --plate-0: #dfe3f6; --plate-1: #d6e4f6; --plate-2: #efe3d6; --plate-3: #e0dcf3; --plate-4: #f1dce6;
    --shadow: 0 1px 0 rgba(var(--forest-rgb), .06), 0 10px 22px -12px rgba(25, 35, 90, .3);
}
html[data-theme="honey"] {
    --forest: #3b2f10; --forest-rgb: 59, 47, 16; --forest-2: #4a3c16; --forest-3: #5a4a1d;
    --moss: #f6e7b3; --clover: #d49b00; --lime: #ffc83d;
    --cta: #8a5d00; --cta-hover: #6f4a00;
    --cream: #fcf6e3; --paper: #fffcf0; --butter: #f4e5b3; --line: #eadba4;
    --ink: #2e2610; --muted: #77683f; --cream-ink: #fff9e4; --tomato: #b3261e;
    --scroll: #c4aa63; --scroll-2: #e0d09b;
    --tile-2: #6b5316; --tile-3: #251d08; --tile-4: #7a6a1c; --tile-5: #5a3a1a;
    --body-text: #4b4125; --opt-on: #f9efc9;
    --plate-0: #f4e5b3; --plate-1: #efe6b8; --plate-2: #f7d9b5; --plate-3: #e8e2b8; --plate-4: #f2d6c4;
    --shadow: 0 1px 0 rgba(var(--forest-rgb), .06), 0 10px 22px -12px rgba(80, 60, 10, .3);
}

/* Пунктир дорожки в ленте заказа: круглые точки (3 px, шаг 6 px) вместо квадратных */
.ostrip__track::before { height: 3px; border: 0; background: radial-gradient(circle at 1.5px 1.5px, rgba(255, 248, 230, .45) 1.5px, transparent 1.6px) 0 0 / 6px 3px repeat-x; }

/* «Клевер»: цвета логотипа (яркий #58bc1a и салатовый #aad44e на белом), тёмная поверхность и кнопка выведены из его оттенка. Сгенерирована theme-builder.js. */
html[data-theme="logo"] {
    --forest: #21500f; --forest-2: #2a6513; --forest-3: #337b17; --forest-rgb: 33, 80, 15;
    --moss: #d3efc8; --clover: #aad44e; --lime: #aad44e; --cta: #327a0a; --cta-hover: #265e08; --cream: #f4f9ec;
    --paper: #ffffff; --butter: #e4f0d1; --line: #d7e9ba; --ink: #1c2a12; --muted: #5a6550; --cream-ink: #f3f9f0;
    --tomato: #c13a22; --scroll: #95ad89; --scroll-2: #bfcfb5; --tile-2: #2e7612; --tile-3: #122c08; --tile-4: #136523;
    --tile-5: #465911; --body-text: #3c4933; --opt-on: #ddead1; --plate-0: #e4f0d1; --plate-1: #d6e8cf; --plate-2: #dfedc0;
    --plate-3: #d1e6d5; --plate-4: #ebe8cb;
    --shadow: 0 1px 0 rgba(var(--forest-rgb), .06), 0 10px 22px -12px rgba(var(--forest-rgb), .35);
}

/* «Вы уже заказывали»: кнопка добавления компактнее (зона нажатия остаётся не меньше 44 px за счёт невидимого поля) */
.rec .add { width: 34px; height: 34px; border-width: 2px; }
.rec .add .ico { width: 18px; height: 18px; }
.rec .add::before { content: ""; position: absolute; inset: -5px; border-radius: 50%; }

/* Окно блюда: кнопка закрытия закреплена над прокруткой, всегда в видимой области */
.sheet__close--pinned { position: absolute; right: 12px; top: 12px; z-index: 6; background: rgba(255, 251, 239, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 2px 10px rgba(0, 0, 0, .28); }

/* Название адреса: правка в карточке */
.acard__edit { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; align-items: center; }
.acard__edit input { flex: 1 1 200px; min-width: 0; min-height: 40px; }
.acard__btns { flex-wrap: wrap; }

/* Метки «Хит» и «Новинка» */
.badges { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 5px; z-index: 2; pointer-events: none; }
.badges--inline { position: static; margin: 0 0 6px; pointer-events: auto; }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font: 800 12px/1.3 var(--font-display); letter-spacing: .01em; white-space: nowrap; box-shadow: 0 2px 6px -2px rgba(0, 0, 0, .35); }
.badge--hit { background: var(--lime); color: var(--forest); }
.badge--new { background: var(--cta); color: var(--cream-ink); }

/* Метки «Хит» и «Новинка» в виде наклонных стикеров: светлая «вырубная» кайма, тень, значок */
.badges { gap: 0; left: 6px; top: 8px; }
.badge { position: relative; gap: 4px; padding: 4px 10px 4px 8px; border: 3px solid var(--paper); border-radius: 10px; font: 800 12px/1 var(--font-display); letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 0 0 1px rgba(var(--forest-rgb), .18), 0 4px 9px -3px rgba(0, 0, 0, .45); transform: rotate(-6deg); transform-origin: 20% 80%; }
.badge::before { content: ""; width: 11px; height: 11px; flex: none; background: currentColor; -webkit-mask: var(--bi) center / contain no-repeat; mask: var(--bi) center / contain no-repeat; }
.badge--hit { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5c.9 4.3 5.6 5.7 5.6 11a5.6 5.6 0 0 1-11.2 0c0-2.2 1.1-3.7 2.2-4.8.1 2 .9 3.1 2 3.4C10.4 7.9 10.3 4.5 12 1.5z'/%3E%3C/svg%3E"); background: var(--lime); color: var(--forest); }
.badge--new { --bi: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1.5l2.7 7.3 7.3 2.7-7.3 2.7L12 21.5l-2.7-7.3L2 11.5l7.3-2.7z'/%3E%3C/svg%3E"); background: var(--cta); color: var(--cream-ink); transform: rotate(5deg); margin-left: -3px; margin-top: 4px; }
.badges--inline { gap: 0; }
.badges--inline .badge--new { margin-top: 0; margin-left: 2px; }
@media (prefers-reduced-motion: no-preference) { .card:hover .badge--hit { transform: rotate(-3deg) scale(1.04); } .card:hover .badge--new { transform: rotate(2deg) scale(1.04); } .badge { transition: transform .25s var(--ease); } }

/* Стикеры компактнее: меньше кайма, шрифт и значок, оба в один ряд */
.badges { left: 5px; top: 6px; flex-wrap: nowrap; }
.badge { gap: 3px; padding: 2px 7px 2px 5px; border-width: 2px; border-radius: 8px; font-size: 10px; letter-spacing: .04em; box-shadow: 0 0 0 1px rgba(var(--forest-rgb), .16), 0 3px 6px -2px rgba(0, 0, 0, .4); }
.badge::before { width: 8px; height: 8px; }
.badge--new { margin-top: 2px; margin-left: -2px; }
.badges--inline .badge { font-size: 11px; }

/* Нижнее меню: пятая кнопка «Позвонить» (только если в настройках указан телефон) */
.tabbar--call { grid-template-columns: repeat(5, 1fr); }
.tab--call .ico { color: var(--lime); }
.tab--call:active { transform: scale(.95); }
@media (max-width: 359px) { .tabbar--call .tab { font-size: 10px; } }

/* Главная: слайдер «Вы уже заказывали» в одну строку между рубриками и меню */
.home-recs { margin: 4px 0 6px; }
.recs--home { margin-top: 0; padding-top: 0; border-top: 0; gap: 8px; }
.recs--home .recs__title { font: 700 22px/1.2 var(--font-display); color: var(--forest); }
.recs--home .recs__list { padding-bottom: 12px; }
.recs__list { scroll-padding-left: 16px; scroll-padding-right: 16px; }
.recs--flat .recs__list { scroll-padding-left: 4px; scroll-padding-right: 4px; }
.home-recs { margin: 22px 0 8px; }

/* Страницы ошибок (404 и др.) */
.stub { min-height: 52vh; display: grid; align-content: center; justify-items: center; gap: 10px; padding-top: 48px; padding-bottom: 72px; text-align: center; }
.stub__code { margin: 0; font: 800 clamp(84px, 24vw, 150px)/1 var(--font-display); letter-spacing: -.04em; color: var(--forest); background: linear-gradient(transparent 64%, var(--lime) 64% 90%, transparent 90%); padding: 0 .12em; }
.stub__title { font: 700 clamp(22px, 5vw, 30px)/1.2 var(--font-display); color: var(--forest); }
.stub__text { max-width: 42ch; color: var(--muted); font-size: 16px; }
.stub__actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 12px; }

/* Мессенджеры и соцсети: значки сплошные, в цвет текста (как значок MAX) */
.ico--solid { fill: currentColor; stroke: none; }
.social { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social__link { display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px 0 14px; border-radius: 999px; background: var(--forest); color: var(--cream-ink); font: 700 16px var(--font-display); text-decoration: none; transition: background-color .2s var(--ease), transform .15s var(--ease); }
.social__link .ico { width: 24px; height: 24px; color: var(--lime); }
.social__link:hover { background: var(--forest-2); }
.social__link:active { transform: scale(.97); }
.foot__social { list-style: none; margin: 16px 0 0; padding: 0; display: flex; gap: 10px; }
.foot__social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid rgba(255, 248, 230, .35); color: var(--cream-ink); transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.foot__social a:hover { background: var(--lime); border-color: var(--lime); color: var(--forest); }
.foot__social .ico { width: 20px; height: 20px; }

/* Степпер в блоках «Вы уже заказывали» / «Вам может понравиться»: та же форма, что на карточке, но по масштабу блока */
.rec__foot { flex-wrap: nowrap; }
.rec .stepper { flex: 0 0 auto; width: 88px; height: 34px; justify-content: space-between; margin-left: auto; }
.rec .stepper button { width: 28px; height: 34px; }
.rec .stepper button .ico { width: 16px; height: 16px; stroke-width: 2.8; }
.rec .stepper output { min-width: 18px; font-size: 15px; }
.recs--flat .rec .stepper { width: 92px; }

/* ---- Стекло в стиле macOS: нижнее меню (как у строки состояния заказа) и баннер cookie ---- */
.tabbar { background: rgba(var(--forest-rgb), .88); backdrop-filter: blur(20px) saturate(1.5); -webkit-backdrop-filter: blur(20px) saturate(1.5); border-top: 1px solid rgba(255, 248, 230, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.cookiebar { left: 12px; right: 12px; width: auto; gap: 10px; padding: 12px 14px; font-size: 12.5px; line-height: 1.4; border-radius: 18px; background: rgba(255, 255, 255, .58); backdrop-filter: blur(28px) saturate(1.8) brightness(1.05); -webkit-backdrop-filter: blur(28px) saturate(1.8) brightness(1.05); border: 1px solid rgba(255, 255, 255, .7); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .85), 0 18px 40px -14px rgba(10, 30, 10, .45), 0 2px 6px rgba(10, 30, 10, .12); }
.cookiebar p { text-align: left; font-weight: 600; color: var(--ink); }
.cookiebar a { color: var(--cta); font-weight: 700; text-underline-offset: 2px; }
.cookiebar__btns { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.cookiebar__btns .btn { min-height: 38px; padding: 0 12px; font-size: 13.5px; width: 100%; justify-content: center; }
@media (min-width: 560px) { .cookiebar { left: 50%; right: auto; width: min(560px, calc(100% - 24px)); transform: translateX(-50%); } .cookiebar__btns { grid-auto-flow: column; grid-auto-columns: max-content; justify-content: flex-start; } .cookiebar__btns .btn { width: auto; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .tabbar { background: var(--forest); } .cookiebar { background: var(--paper); } }
@media (prefers-reduced-transparency: reduce) { .tabbar { background: var(--forest); backdrop-filter: none; -webkit-backdrop-filter: none; } .cookiebar { background: var(--paper); backdrop-filter: none; -webkit-backdrop-filter: none; } }

/* Нижнее меню: ширина колонок по числу пунктов (3 или 4 с «Позвонить») */
.tabbar, .tabbar--call { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }

/* Таблица условий доставки: на телефоне карточками, чтобы страница не выходила за экран */
.info-table { width: 100%; }
@media (max-width: 640px) {
    .info-table, .info-table tbody, .info-table tr, .info-table td { display: block; width: 100%; }
    .info-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .info-table tr { padding: 10px 0 12px; border-bottom: 2px dotted var(--line); }
    .info-table td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 3px 0; text-align: right; }
    .info-table td::before { content: attr(data-label); flex: none; color: var(--muted); font-weight: 700; font-size: 13px; text-align: left; }
}
@media (max-width: 640px) { .info-table td { border-bottom: 0; padding-left: 0; padding-right: 0; } .info-table td:first-child { font: 700 17px var(--font-display); color: var(--forest); justify-content: flex-start; text-align: left; } .info-table td:first-child::before { content: none; } }
@media (max-width: 640px) { .info-table__v { text-align: right; } .info-table td:first-child .info-table__v { text-align: left; } }

/* Блоки рекомендаций: цена, кнопка и степпер подогнаны под ширину карточки (150 px), ничего не обрезается */
.rec__foot { gap: 4px; align-items: center; min-width: 0; }
.rec__foot .price { font-size: 14px; white-space: nowrap; flex: 0 1 auto; min-width: 0; }
.rec__foot .price small { font-size: 11px; }
.rec .add { width: 32px; height: 32px; margin-left: auto; }
.rec .add .ico { width: 17px; height: 17px; }
.rec .stepper, .recs--flat .rec .stepper { width: 80px; height: 32px; margin-left: auto; flex: 0 0 auto; }
.rec .stepper button { width: 26px; height: 32px; }
.rec .stepper button .ico { width: 14px; height: 14px; }
.rec .stepper output { min-width: 16px; font-size: 14px; }

/* Баннер cookie: кнопки справа, обычной ширины */
.cookiebar__btns { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.cookiebar__btns .btn { width: auto; min-width: 104px; }
@media (min-width: 560px) { .cookiebar__btns { justify-content: flex-end; } }
.auth__call { margin-top: 8px; }
.auth__wait { margin: 0; font-weight: 700; text-align: center; color: var(--muted, #5a6450); }
