/* ===== SushiWay — мобильное веб-приложение ===== */
:root { --col: 460px; --tabbar-h: 68px; }

/* На компьютере приложение показывается колонкой «телефона» по центру */
body { background: var(--bg); }
@media (min-width: 600px) {
  body { background: var(--page-bg); background-attachment: fixed; }
  .app { border-left: 1px solid var(--line); border-right: 1px solid var(--line); box-shadow: 0 0 80px rgba(0, 0, 0, .6); }
}
.app { position: relative; width: min(var(--col), 100%); min-height: 100vh; min-height: 100dvh; margin: 0 auto; background: var(--bg); }
.screen { padding: 0 16px calc(var(--tabbar-h) + 90px + var(--safe-b)); animation: fade .25s; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }
.hint { color: var(--dim); font-size: 12.5px; margin: 8px 0 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; display: inline-block; box-shadow: 0 0 0 3px rgba(127, 196, 138, .18); }
.dot.off { background: var(--danger); box-shadow: 0 0 0 3px rgba(239, 122, 106, .18); }

/* ---- Верхняя панель ---- */
.appbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; margin: 0 -16px; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(var(--bg-rgb), .88); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.appbar.plain { padding-top: max(14px, env(safe-area-inset-top)); padding-bottom: 12px; }
.appbar h1 { margin: 0; font-size: 32px; line-height: 1.1; }
.appbar-logo { width: 38px; height: 38px; object-fit: contain; }
.appbar-txt { flex: 1; min-width: 0; }
.appbar-txt b { display: block; font-size: 22px; line-height: 1; }
.status-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; max-width: 100%; }
.status-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.round-btn { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 5px; font-weight: 800; font-size: 14px; }
.round-btn svg { width: 18px; height: 18px; }
#reviews-chip svg { color: var(--gold); width: 16px; }
.text-btn { border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 14px; padding: 8px; }

.pause-banner { margin: 6px 0 10px; padding: 12px 14px; border-radius: 14px; background: rgba(60, 22, 18, .85); border: 1px solid rgba(239, 122, 106, .5); font-weight: 600; font-size: 14px; }

/* ---- Баннеры (карусель) ---- */
.banners { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 6px -16px 0; padding: 0 16px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banner { position: relative; flex: 0 0 100%; height: 180px; border-radius: 22px; overflow: hidden; scroll-snap-align: center; border: 1px solid var(--line-strong); text-align: left; padding: 0; color: var(--ink); background: var(--surface); }
.banner > img, .banner > .art, .banner > .art svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--bg-rgb), .95) 0%, rgba(var(--bg-rgb), .7) 45%, rgba(var(--bg-rgb), .05) 100%); }
.banner-txt { position: absolute; z-index: 1; left: 18px; top: 16px; bottom: 16px; width: 62%; display: flex; flex-direction: column; align-items: flex-start; }
.banner-tag { padding: 3px 12px; border-radius: 999px; background: var(--btn-grad); color: var(--on-accent); font: italic 700 15px/1.3 var(--serif); }
.banner-title { margin: 8px 0 2px; font: 700 28px/1 var(--serif); text-transform: uppercase; letter-spacing: .01em; }
.banner-sub { font-size: 13px; color: var(--muted); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.banner-cta { margin-top: auto; font-weight: 800; font-size: 14px; color: var(--gold); }
.banner-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 2px; }
.banner-dots i { width: 6px; height: 6px; border-radius: 999px; background: var(--track); transition: .25s; }
.banner-dots i.on { width: 18px; background: var(--gold); }

/* ---- Поиск ---- */
.search { position: relative; display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 0 14px; height: 48px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.search:focus-within { border-color: var(--gold); }
.search svg { width: 20px; height: 20px; color: var(--muted); flex: none; }
.search input { flex: 1; border: 0; background: none; outline: none; font-size: 16px; min-width: 0; }
.search input::-webkit-search-cancel-button { display: none; }
.search-x { border: 0; background: var(--track); color: var(--ink); width: 26px; height: 26px; border-radius: 50%; font-size: 16px; line-height: 1; }

/* ---- Разделы (липкие вкладки) ---- */
.cats { position: sticky; top: calc(58px + env(safe-area-inset-top)); z-index: 15; display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: 10px 16px;
  background: rgba(var(--bg-rgb), .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 700; font-size: 14px; white-space: nowrap; }
.cat.on { background: var(--btn-grad); color: var(--on-accent); border-color: transparent; }

/* ---- Лента ---- */
.feed-sec { scroll-margin-top: calc(118px + env(safe-area-inset-top)); padding-top: 18px; }
.feed-sec h2, .block-title { margin: 0 0 12px; font: 700 28px/1.05 var(--serif); }
.block-title { margin-top: 22px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: 20px; background: linear-gradient(180deg, var(--surface-hi), var(--surface)); border: 1px solid var(--line); overflow: hidden; }
.card-media { position: relative; display: block; width: 100%; aspect-ratio: 1; border: 0; padding: 0; background: var(--bg); overflow: hidden; }
.card-media img, .card-media svg { width: 100%; height: 100%; object-fit: cover; }
.card-media .badge { position: absolute; top: 8px; left: 8px; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 10px 12px 12px; }
.card-name { margin: 0; font-weight: 800; font-size: 14.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-desc { margin: 4px 0 0; color: var(--dim); font-size: 12px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 10px; min-height: 48px; }
.price { font-weight: 800; font-size: 16px; white-space: nowrap; line-height: 1.1; }
.price s { display: block; color: var(--dim); font-weight: 600; font-size: 12px; }
.plus { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--btn-grad); color: var(--on-accent); display: grid; place-items: center; flex: none; box-shadow: 0 6px 14px rgba(var(--accent2-rgb), .3); }
.plus svg { width: 18px; height: 18px; }
.plus:active { transform: scale(.9); }
.plus:disabled { opacity: .35; box-shadow: none; }
.stepper { display: inline-flex; align-items: center; height: 38px; border-radius: 999px; background: var(--btn-grad); color: var(--on-accent); }
.stepper button { width: 34px; height: 38px; border: 0; background: none; color: var(--on-accent); font-size: 20px; font-weight: 800; }
.stepper output { min-width: 18px; text-align: center; font-weight: 800; }
.stepper.dark { background: var(--surface-top); color: var(--ink); border: 1px solid var(--line); }
.stepper.dark button { color: var(--gold); }
.pick-count { position: absolute; top: 8px; right: 8px; min-width: 28px; height: 28px; border-radius: 999px; background: var(--btn-grad); color: var(--on-accent); font-weight: 800; display: grid; place-items: center; font-size: 14px; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.feed-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* «Собери свой сет» — карточка в ленте */
.set-promo { display: flex; align-items: center; gap: 14px; width: 100%; margin-top: 18px; padding: 14px; border-radius: 20px; border: 1px solid var(--line-strong); background: linear-gradient(120deg, var(--surface-top), var(--surface) 70%); color: var(--ink); text-align: left; }
.set-promo .art { width: 74px; height: 74px; border-radius: 16px; overflow: hidden; flex: none; }
.set-promo b { display: block; font: 700 22px/1.1 var(--serif); }
.set-promo small { color: var(--muted); }
.set-promo .chev { margin-left: auto; color: var(--gold); font-size: 26px; }

/* ---- Конструктор сета ---- */
.bento-card { position: sticky; top: calc(62px + env(safe-area-inset-top)); z-index: 12; padding: 14px; border-radius: 22px; border: 1px solid var(--line-strong); background: linear-gradient(180deg, var(--surface-top), var(--surface)); box-shadow: 0 14px 30px rgba(0, 0, 0, .5); }
.bento-info { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.bento-info b { font-size: 15px; }
.bento-info span { color: var(--gold); font-weight: 800; font-size: 20px; }
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 7px; border-radius: 14px; background: var(--bg-deep); border: 2px solid var(--track); }
.bento.s2 { grid-template-columns: repeat(2, 1fr); }
.bento.s3 { grid-template-columns: repeat(3, 1fr); }
.slot { position: relative; aspect-ratio: 1; border-radius: 9px; border: 1.5px dashed rgba(var(--accent-rgb), .3); display: grid; place-items: center; overflow: hidden; color: var(--dim); font-size: 18px; font-weight: 800; background: var(--field); padding: 0; }
.slot.filled { border: 1.5px solid var(--line-strong); }
.slot.filled img, .slot.filled svg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.slot .x { position: absolute; top: 3px; right: 3px; width: 20px; height: 20px; border-radius: 50%; background: rgba(0, 0, 0, .75); color: #fff; font-size: 13px; display: grid; place-items: center; z-index: 1; }
.bento-names { margin: 8px 0 10px; font-size: 12.5px; color: var(--muted); min-height: 17px; }
.bento-actions { display: flex; gap: 8px; }
.bento-actions .btn-gold { flex: 1; }

/* ---- Панель «Оформить» и вкладки ---- */
.tabbar { position: fixed; z-index: 50; left: 50%; bottom: 0; transform: translateX(-50%); width: min(var(--col), 100%); display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  height: calc(var(--tabbar-h) + var(--safe-b)); padding: 0 6px var(--safe-b); background: rgba(var(--bg-rgb), .94); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); border-top: 1px solid var(--line); }
.tabbar > button { position: relative; height: var(--tabbar-h); border: 0; background: none; color: var(--dim); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 700; -webkit-tap-highlight-color: transparent; }
.tabbar > button svg { width: 24px; height: 24px; }
.tabbar > button[aria-current="page"] { color: var(--gold); }
.tab-dot { position: absolute; top: 12px; right: calc(50% - 16px); width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--bar); animation: pulse 1.6s infinite; }
.cart-orb { position: relative; width: 58px; height: 58px; margin-bottom: 16px; border-radius: 50%; background: var(--btn-grad); color: var(--on-accent); display: grid; place-items: center; box-shadow: 0 8px 22px rgba(var(--accent2-rgb), .4), 0 0 0 5px var(--bar); }
.cart-orb svg { width: 26px !important; height: 26px !important; }
.orb-count { position: absolute; top: -2px; right: -4px; min-width: 22px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--on-accent); color: var(--gold); border: 2px solid var(--gold); font-size: 12px; display: grid; place-items: center; }
.cart-orb.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: scale(1.14); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 2px var(--bar), 0 0 0 2px rgba(var(--accent-rgb), .6); } 70% { box-shadow: 0 0 0 2px var(--bar), 0 0 0 9px rgba(var(--accent-rgb), 0); } 100% { box-shadow: 0 0 0 2px var(--bar), 0 0 0 2px rgba(var(--accent-rgb), 0); } }

.checkout-bar { position: fixed; z-index: 49; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px); width: min(calc(var(--col) - 24px), calc(100% - 24px));
  display: flex; align-items: center; gap: 12px; height: 54px; padding: 0 18px 0 8px; border-radius: 18px; border: 1px solid var(--line-strong); background: var(--surface-top); color: var(--ink); font-weight: 800; font-size: 15px; box-shadow: 0 12px 30px rgba(0, 0, 0, .55); animation: rise .3s; }
.checkout-bar b { margin-left: auto; color: var(--gold); font-size: 16px; }
.cb-count { min-width: 38px; height: 38px; padding: 0 8px; border-radius: 12px; background: var(--btn-grad); color: var(--on-accent); display: grid; place-items: center; }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 14px); } }

/* ---- Плитки (экраны «Ещё» и «Заказы») ---- */
.tile { display: block; width: 100%; padding: 16px; margin-top: 12px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-hi), var(--surface)); color: var(--ink); text-align: left; }
.tile p { margin: 6px 0 0; }
.tile-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile.mini { display: flex; flex-direction: column; gap: 2px; }
.tile.mini b { font-size: 15px; }
.tile.mini small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.mini-ic { font-size: 22px; margin-bottom: 4px; }
.hours-head { display: flex; align-items: center; gap: 8px; font-size: 16px; }
.install { display: flex; align-items: center; gap: 12px; border-color: var(--line-strong); }
.install img { border-radius: 12px; }
.install b { display: block; }
.install small, .install-ios small { color: var(--muted); font-size: 12.5px; }
.install .chev { margin-left: auto; color: var(--gold); font-size: 24px; }
.install-ios b { display: block; margin-bottom: 4px; }
.contact-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.contact-row:last-of-type { border-bottom: 0; }
.contact-row .who { flex: 1; min-width: 0; }
.contact-row .who small { display: block; color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.contact-row .who b { font-size: 16px; }
.ic-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--gold); background: var(--surface-hi); flex: none; text-decoration: none; }
.ic-btn svg { width: 20px; height: 20px; }
.chips-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chips-row:empty { display: none; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 13.5px; text-decoration: none; }
.map-frame { margin: 12px 0 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); height: 190px; background: var(--field); }
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }
.foot { padding: 28px 0 0; text-align: center; color: var(--muted); font-size: 13px; }
.foot img { margin: 0 auto 6px; width: 44px; height: 44px; object-fit: contain; }
.foot p { margin: 2px 0; }

/* Заказы */
.order-card { margin-top: 12px; border-radius: 20px; border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-hi), var(--surface)); overflow: hidden; }
.order-card.active { border-color: var(--line-strong); box-shadow: 0 10px 30px rgba(var(--accent2-rgb), .12); }
.oc-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.oc-head b { font: 700 24px/1 var(--serif); }
.oc-head time { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.st { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.st-new, .st-cooking, .st-ready, .st-on_way { background: rgba(var(--accent-rgb), .14); color: var(--gold); }
.st-delivered { background: rgba(127, 196, 138, .14); color: var(--ok); }
.st-cancelled { background: rgba(239, 122, 106, .14); color: var(--danger); }
.progress { display: grid; gap: 4px; padding: 0 16px 12px; }
.progress .bars { display: grid; grid-auto-flow: column; gap: 4px; }
.progress .bars i { height: 5px; border-radius: 4px; background: var(--track); }
.progress .bars i.on { background: var(--btn-grad); }
.progress .bars i.now { background: var(--btn-grad); animation: glow 1.4s infinite alternate; }
@keyframes glow { to { opacity: .45; } }
.progress p { margin: 6px 0 0; font-weight: 800; font-size: 17px; }
.progress small { color: var(--muted); }
.oc-items { margin: 0; padding: 10px 16px; border-top: 1px solid var(--line); list-style: none; font-size: 13.5px; color: var(--muted); }
.oc-items li { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.oc-foot { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--line); }
.oc-foot b { margin-right: auto; font-size: 16px; }
.empty-state { text-align: center; padding: 60px 10px; color: var(--muted); }
.empty-state .empty-art, .empty-art { width: 140px; height: 140px; margin: 0 auto 14px; border-radius: 30px; overflow: hidden; }
.empty-state p { margin: 0 0 16px; font: 700 24px/1.2 var(--serif); color: var(--ink); }

/* ---- Шторки ---- */
.sheet { width: min(var(--col), 100vw); max-height: 92dvh; margin: auto auto 0; border-radius: 26px 26px 0 0; border-bottom: 0; }
@media (min-width: 700px) { .sheet { margin: auto auto 0; border-radius: 26px 26px 0 0; border-bottom: 0; } }
.sheet.full { height: 100dvh; max-height: 100dvh; border-radius: 0; border: 0; }
@media (min-width: 600px) { .sheet.full { height: 96dvh; max-height: 96dvh; border-radius: 26px 26px 0 0; border: 1px solid var(--line); border-bottom: 0; } }
.sheet-head { padding-top: max(14px, env(safe-area-inset-top)); }
.sheet.full .sheet-head h2, #review-dialog .sheet-head h2 { text-align: center; font-size: 26px; }
.grab { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 40px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .35); z-index: 3; }
.dish-sheet { position: relative; overflow: hidden; }
.dish-hero { aspect-ratio: 1 / .85; background: var(--bg); flex: none; }
.dish-hero img, .dish-hero svg { width: 100%; height: 100%; object-fit: cover; }
.floating { position: absolute; top: 14px; right: 14px; z-index: 2; background: rgba(var(--bg-rgb), .75); }
.dish-sheet h2 { margin: 6px 0 8px; font-size: 32px; line-height: 1.05; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.dish-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dish-foot .plus-wide { height: 50px; padding: 0 22px; border-radius: 16px; border: 0; background: var(--btn-grad); color: var(--on-accent); font-weight: 800; font-size: 15px; }
.dish-foot .stepper { height: 50px; border-radius: 16px; }
.dish-foot .stepper button { width: 46px; height: 50px; }
.price-big { font-size: 24px; font-weight: 800; margin: 0; }
.price-big s { font-size: 14px; color: var(--dim); margin-left: 6px; }
.btn-lg { min-height: 54px; font-size: 16px; border-radius: 18px; }

/* Корзина */
.lines { list-style: none; padding: 0; margin: 0; }
.line { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.line .thumb { width: 58px; height: 58px; border-radius: 14px; overflow: hidden; background: var(--bg); }
.line .thumb img, .line .thumb svg { width: 100%; height: 100%; object-fit: cover; }
.line b { display: block; font-size: 14.5px; line-height: 1.25; }
.line small { display: block; color: var(--muted); font-size: 12px; line-height: 1.35; }
.line .lp { color: var(--gold); font-weight: 800; font-size: 14px; margin-top: 2px; }
.line .stepper { height: 34px; }
.line .stepper button { width: 30px; height: 34px; font-size: 18px; }
.nudge { margin: 12px 0 0; padding: 10px 12px; border-radius: 14px; background: rgba(var(--accent-rgb), .08); border: 1px dashed var(--line-strong); font-size: 13px; }
.nudge .bar { height: 5px; border-radius: 4px; background: var(--track); margin-top: 8px; overflow: hidden; }
.nudge .bar i { display: block; height: 100%; background: var(--btn-grad); }
.seg.big { margin: 16px 0 0; }
.seg.big span { padding: 12px 8px; font-size: 15px; }
.form-card { margin-top: 12px; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface); }
.form-card h3 { margin: 0 0 12px; font: 700 21px/1 var(--serif); color: var(--gold); }
.form-card .field:last-child { margin-bottom: 0; }
.map-pick { position: relative; }
.addr-map { height: 200px; border-radius: 14px; border: 1px solid var(--line); overflow: hidden; background: var(--surface-hi); z-index: 0; }
.locate { position: absolute; z-index: 500; right: 8px; bottom: 8px; background: rgba(var(--bg-rgb), .92); }
.map-pick + .hint { margin-bottom: 12px; }
.when-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.when-row .field { margin: 0; }
.totals { margin-top: 12px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.totals div { display: flex; justify-content: space-between; padding: 3px 0; color: var(--muted); font-size: 14.5px; }
.totals .sum { color: var(--ink); font-size: 20px; font-weight: 800; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); }
.totals .free { color: var(--ok); }
.closed-note { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: rgba(60, 22, 18, .6); border: 1px solid rgba(239, 122, 106, .45); font-size: 14px; }
.form-err { margin-top: 10px; text-align: center; }
.cart-empty { text-align: center; padding: 40px 0; }
.cart-empty p { font-size: 26px; margin: 0 0 18px; }

/* Leaflet */
.leaflet-container { background: var(--surface-hi) !important; font: inherit !important; }
.leaflet-tile-pane { filter: brightness(.85) contrast(1.05) saturate(.85); }
.leaflet-control-attribution { background: rgba(var(--bg-rgb), .7) !important; color: var(--dim) !important; font-size: 9px !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.pin { position: relative; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--btn-grad); border: 2px solid var(--on-accent); box-shadow: 0 6px 14px rgba(0, 0, 0, .5); }
.pin::after { content: ''; position: absolute; inset: 9px; border-radius: 50%; background: var(--on-accent); }

/* Готово */
.done { padding: 34px 22px calc(26px + var(--safe-b)); display: grid; gap: 10px; }
.done-mark { width: 78px; height: 78px; margin: 0 auto 4px; border-radius: 50%; display: grid; place-items: center; background: var(--btn-grad); color: var(--on-accent); box-shadow: 0 10px 30px rgba(var(--accent2-rgb), .35); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.done-mark svg { width: 40px; height: 40px; }
.done h2 { font-size: 32px; margin: 0; }
.done p { margin: 0; }

/* Отзывы */
.reviews-summary { display: flex; align-items: center; gap: 14px; }
.reviews-summary .big { font: 700 50px/1 var(--serif); }
.stars { display: inline-flex; gap: 2px; color: var(--gold); }
.stars svg { width: 15px; height: 15px; }
.stars .off { color: var(--off); }
.reviews { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.review { padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--field); }
.review header { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 4px; }
.review p { margin: 0; white-space: pre-line; font-size: 14.5px; }
.review time { color: var(--dim); font-size: 12px; }
.stars-input { border: 0; padding: 0; margin: 0 0 16px; text-align: center; }
.stars-input legend { width: 100%; margin-bottom: 6px; }
.stars-input .row { display: flex; justify-content: center; gap: 6px; }
.stars-input label { cursor: pointer; }
.stars-input input { position: absolute; opacity: 0; }
.stars-input svg { width: 44px; height: 44px; color: var(--off); transition: color .15s, transform .15s; }
.stars-input label.on svg { color: var(--gold); transform: scale(1.06); }

.toast { bottom: calc(var(--tabbar-h) + 80px + var(--safe-b)); }

/* Плашка хостинга внизу экрана (Netlify, бесплатный тариф): поднимаем панель над ней. */
:root { --host-badge: 0px; }
.tabbar { bottom: var(--host-badge); }
.checkout-bar { bottom: calc(var(--tabbar-h) + var(--safe-b) + 10px + var(--host-badge)); }
.screen { padding-bottom: calc(var(--tabbar-h) + 90px + var(--safe-b) + var(--host-badge)); }
body.has-host-badge::after { content: ''; position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(var(--col), 100%); height: var(--host-badge); background: var(--bg-deep); z-index: 49; }
