/*
Theme Name: РОЭМ’С
Description: Сайт доставки гастропаба РОЭМ’С: меню из WooCommerce, корзина, оформление и оплата. Перенесён из прототипа design/prototype.
Version: 0.5.0
Requires PHP: 8.1
Text Domain: roems
*/
:root {
  --cream: #F2E7D4; --surface: #FAF4EA; --ink: #171512; --muted: #776D60;
  --line: rgba(23, 21, 18, .12); --green: #2F5B3D; --green-d: #244A31;
  --brown: #725948; --brown-d: #5B4637; --on-dark: #F3E9DA;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
img { display: block; max-width: 100%; }
body { position: relative; background: var(--cream); font-family: Onest, system-ui, sans-serif; color: var(--ink); -webkit-font-smoothing: antialiased; }
body.lock { overflow: hidden; }
[hidden] { display: none !important; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (prefers-reduced-motion: reduce) {
  .slide, .slide.on img, .sheet, .ov, .dish .ph img, .st img, .bx img { animation: none !important; transition: none !important; }
}
/* Logo */
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: inherit; }
.logo img { height: 38px; width: auto; }
.logo .wm { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo .wm span { font-family: Montserrat; font-weight: 300; font-size: 21px; letter-spacing: .16em; margin-right: -.16em; }
.logo .wm small { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 7.5px; letter-spacing: .3em; font-weight: 500; }
.logo .wm small::before, .logo .wm small::after { content: ""; width: 16px; height: 1px; background: currentColor; opacity: .8; }
.logo.cream { color: var(--on-dark); }

/* Header */
.hdr { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; gap: 12px; }
.hdr .ic { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; position: relative; }
.hdr .ic svg { width: 22px; height: 22px; }
.hdr.over { position: absolute; top: 0; left: 0; right: 0; z-index: 3; color: var(--on-dark); padding-bottom: 28px; }
.hdr.over .logo, .hdr.over .ic { filter: drop-shadow(0 1px 6px rgba(20,14,10,.45)); }
.hdr.solid { position: sticky; top: 0; z-index: 5; background: rgba(242,231,212,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hdr .right { display: flex; align-items: center; gap: 6px; }
.hdr .login { display: none; font-size: 14px; padding: 0 8px; }
.badge { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; border-radius: 9px; background: var(--green); color: #fff; font-size: 10.5px; font-weight: 600; display: grid; place-items: center; padding: 0 4px; }
.badge:empty { display: none; }
.hdr .deskbar, .hdr .phone-n, .hdr .cartpill { display: none; }

/* Hero slider */
.hero { position: relative; aspect-ratio: 1024 / 784; overflow: hidden; background: #2B231D; }
/* Shade the top for the logo and the bottom for the dots, whatever the photo */
.hero::after, .hero::before { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.hero::after { top: 0; height: 60%; background: linear-gradient(rgba(20,14,10,.74), rgba(20,14,10,.42) 30%, rgba(20,14,10,0)); }
.hero::before { bottom: 0; height: 22%; background: linear-gradient(rgba(20,14,10,0), rgba(20,14,10,.32)); }
/* keen-slider 6.8.6 (MIT), container rules from keen-slider.min.css */
.keen-slider:not([data-keen-slider-disabled]){-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent;align-content:flex-start;display:flex;overflow:hidden;position:relative;touch-action:pan-y;-webkit-user-select:none;user-select:none;width:100%}
/* Hero slides: swipe on phones, drag with the mouse */
.hero .keen-slider { height: 100%; }
.slide { position: relative; flex: 0 0 100%; height: 100%; overflow: hidden; }
.slide picture { display: block; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.on img { animation: kb 8s ease-out forwards; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 2; }
.dots button { width: 7px; height: 7px; border-radius: 4px; background: rgba(243,233,218,.55); transition: width .3s; }
.dots button.on { width: 20px; background: var(--on-dark); }

/* Layout */
.wrap { padding: 0 16px; }
.deliv { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; }
.seg2 { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg2 button { flex: 1; text-align: center; padding: 10px 0; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink); transition: background .2s; }
.seg2 button.on { background: var(--green); color: #fff; }
.addr { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; width: 100%; }
.addr svg { width: 18px; height: 18px; flex: none; }
.addr span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.addr .chev { opacity: .5; width: 14px; }

/* Promos: stories */
.promos { margin-top: 18px; }
.stories { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 18px -16px 0; padding: 0 16px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
/* Snap cards to the page padding, not the screen edge */
.stories, .banners { scroll-padding-inline: 16px; }
.st { flex: none; width: 148px; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; position: relative; scroll-snap-align: start; color: var(--on-dark); }
.st img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.st::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,10,0) 40%, rgba(20,14,10,.78)); }
.st:hover img { transform: scale(1.05); }
.lbl { position: absolute; top: 10px; left: 10px; z-index: 1; font-size: 10.5px; font-weight: 500; letter-spacing: .02em; background: rgba(250,244,234,.9); color: var(--ink); padding: 4px 8px; border-radius: 999px; }
.st .tx { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1; display: flex; flex-direction: column; gap: 3px; }
.st .tx b { font-weight: 500; font-size: 15px; line-height: 1.15; }
.st .tx em { font-style: normal; font-size: 13px; opacity: .88; }

/* Promos: banners */
.banners { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 18px -16px 0; padding: 0 16px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.bn { flex: none; width: 300px; height: 168px; border-radius: 18px; overflow: hidden; position: relative; background: var(--brown); color: var(--on-dark); scroll-snap-align: start; }
.bn img { position: absolute; right: 0; top: 0; height: 100%; width: 58%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent, #000 38%); mask-image: linear-gradient(90deg, transparent, #000 38%); }
.bn .bt { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100%; padding: 14px 16px; width: 62%; }
.bn .lbl { position: static; align-self: flex-start; margin-bottom: 10px; }
.bn b { font-weight: 500; font-size: 16px; line-height: 1.15; }
.bn em { font-style: normal; font-size: 12.5px; opacity: .8; margin-top: 4px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bn u { text-decoration: none; font-size: 12.5px; margin-top: auto; opacity: .9; }

/* Promos: bento */
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.bx { position: relative; border-radius: 18px; overflow: hidden; color: var(--on-dark); aspect-ratio: 1; }
.bx img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.bx:hover img { transform: scale(1.04); }
.bx::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,14,10,0) 35%, rgba(20,14,10,.78)); }
.bx .tx { position: absolute; left: 14px; right: 14px; bottom: 13px; z-index: 1; display: flex; flex-direction: column; gap: 3px; }
.bx .tx b { font-weight: 500; font-size: 15px; line-height: 1.15; }
.bx .tx em { font-style: normal; font-size: 12.5px; opacity: .88; }
.bx.big { grid-column: span 2; aspect-ratio: 16 / 10; }
.bx.big .tx b { font-size: 22px; }
.bx.big .tx em { font-size: 14px; }
.bx.strip { grid-column: span 2; aspect-ratio: auto; height: 86px; background: var(--brown); }
.bx.strip::after { display: none; }
.bx.strip img { position: absolute; right: 0; top: 0; width: 46%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%); }
.bx.strip .tx { top: 0; bottom: 0; justify-content: center; }

/* Chips and menu */
.chips { position: sticky; top: 0; z-index: 4; display: flex; gap: 6px; overflow-x: auto; background: rgba(242,231,212,.95); backdrop-filter: blur(10px); margin: 18px -16px 0; padding: 10px 16px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: none; font-size: 14px; padding: 8px 14px; border-radius: 999px; color: var(--muted); }
.chips button.on { background: var(--ink); color: var(--on-dark); }
.cat { padding-top: 14px; }
.cat h2 { font-size: 20px; font-weight: 600; margin: 4px 0 12px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; }
.dish { display: flex; flex-direction: column; }
.dish .ph { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; }
.dish .ph img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform .4s ease; }
.dish .ph:hover img { transform: scale(1.14); }
.dish .dn { font-weight: 400; font-size: 14.5px; line-height: 1.3; margin: 8px 0 8px; cursor: pointer; flex: 1; }
.price { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; font-weight: 500; padding: 7px 12px 7px 14px; border-radius: 999px; border: 1px solid rgba(23,21,18,.25); transition: background .2s, border-color .2s; }
.price i { font-style: normal; font-size: 17px; line-height: 1; color: var(--green); }
.price:hover { border-color: var(--green); }
.step { display: inline-flex; align-items: center; gap: 4px; background: var(--green); color: #fff; border-radius: 999px; padding: 3px; }
.step button { width: 30px; height: 30px; border-radius: 50%; font-size: 18px; text-align: center; line-height: 30px; }
.step button:hover { background: rgba(255,255,255,.14); }
.step b { min-width: 18px; text-align: center; font-weight: 500; font-size: 14.5px; }

/* Delivery zone */
.dw { color: var(--muted); font-size: 14px; margin-top: 2px; }
.kb { margin-top: 14px; }
.kb .seg2 button { font-size: 13.5px; padding: 8px 0; }
.kb ul { display: grid; grid-template-columns: repeat(4, 1fr); margin: 12px 0 0; padding: 0; list-style: none; text-align: center; }
.kb li { font-size: 12px; color: var(--muted); }
.kb li b { display: block; color: var(--ink); font-size: 16px; font-weight: 500; margin-bottom: 1px; }
.zone { margin-top: 40px; display: grid; gap: 16px; }
.zone h2 { font-size: 24px; font-weight: 600; line-height: 1.15; margin: 6px 0 10px; }
.zone .zt > p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.zf { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.zf li { list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.zf b { display: block; font-size: 17px; font-weight: 600; }
.zf span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.zm { position: relative; height: 400px; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #E9E2D6; isolation: isolate; }
#zone-map { position: absolute; inset: 0; }
.zm .leaflet-tile-pane { filter: saturate(.5) sepia(.15) brightness(1.04) contrast(.94); }
.zcheck { position: absolute; z-index: 500; left: 10px; right: 10px; top: 10px; display: flex; align-items: center; gap: 10px; background: var(--surface); border-radius: 16px; padding: 10px 10px 10px 14px; box-shadow: 0 8px 22px rgba(30,20,10,.16); font-size: 13.5px; line-height: 1.35; }
.zcheck .ti { flex: 1; }
.zcheck b { display: block; font-size: 14.5px; font-weight: 600; }
.zcheck span { color: var(--muted); }
.zcheck button { flex: none; background: var(--green); color: #fff; font-size: 13.5px; font-weight: 500; padding: 9px 14px; border-radius: 999px; }
.zcheck .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--brown); }
.zcheck.ok .dot { background: var(--green); }
.zcheck.no .dot { background: #B5452F; }
.zcheck.no button { background: var(--brown); }
.rpin { width: 44px; height: 44px; border-radius: 50%; background: var(--brown); border: 3px solid #fff; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(30,20,10,.3); }
.rpin img { height: 25px; width: auto; }
.cpin { width: 22px; height: 22px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 3px 8px rgba(0,0,0,.3); background: var(--green); }
.cpin.no { background: #B5452F; }
.lnk { color: var(--green); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.zerr { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 14px; }

/* Minimal Leaflet styles (the library's stylesheet is not loaded) */
.leaflet-pane, .leaflet-tile, .leaflet-marker-icon, .leaflet-marker-shadow, .leaflet-tile-container, .leaflet-pane > svg, .leaflet-pane > canvas, .leaflet-zoom-box, .leaflet-image-layer, .leaflet-layer { position: absolute; left: 0; top: 0; }
.leaflet-container { overflow: hidden; -webkit-tap-highlight-color: transparent; font: inherit; outline: 0; }
.leaflet-tile, .leaflet-marker-icon { user-select: none; -webkit-user-drag: none; }
.leaflet-container img.leaflet-tile, .leaflet-container .leaflet-marker-pane img { max-width: none !important; max-height: none !important; padding: 0; }
.leaflet-tile { visibility: hidden; }
.leaflet-tile-loaded { visibility: inherit; }
.leaflet-pane { z-index: 400; }
.leaflet-tile-pane { z-index: 200; }
.leaflet-overlay-pane { z-index: 400; }
.leaflet-marker-pane { z-index: 600; }
.leaflet-map-pane svg { z-index: 200; }
.leaflet-zoom-animated { transform-origin: 0 0; }
.leaflet-zoom-anim .leaflet-zoom-animated { transition: transform .25s cubic-bezier(0, 0, .25, 1); }
.leaflet-zoom-anim .leaflet-tile, .leaflet-pan-anim .leaflet-tile { transition: none; }
.leaflet-zoom-anim .leaflet-zoom-hide { visibility: hidden; }
.leaflet-marker-icon, .leaflet-pane > svg path, .leaflet-tile-container { pointer-events: none; }
.leaflet-grab { cursor: grab; }
.leaflet-dragging .leaflet-grab { cursor: grabbing; }
.leaflet-top, .leaflet-bottom { position: absolute; z-index: 1000; pointer-events: none; }
.leaflet-top { top: 0; } .leaflet-bottom { bottom: 0; } .leaflet-left { left: 0; } .leaflet-right { right: 0; }
.leaflet-control { position: relative; z-index: 800; pointer-events: auto; float: left; clear: both; }
.leaflet-right .leaflet-control { float: right; }
.leaflet-top .leaflet-control { margin-top: 10px; }
.leaflet-right .leaflet-control { margin-right: 10px; }
.leaflet-bar { border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(30,20,10,.16); }
.leaflet-bar a { display: block; width: 34px; height: 34px; line-height: 33px; text-align: center; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 19px; }
.leaflet-bar a + a { border-top: 1px solid var(--line); }
.leaflet-bar a.leaflet-disabled { color: #bbb; }
.leaflet-control-attribution { position: absolute; top: 6px; left: 8px; margin: 0 !important; font-size: 9.5px; color: #6b6258; background: rgba(250,244,234,.75); padding: 1px 6px; border-radius: 6px; }
.leaflet-control-attribution a { color: inherit; }

.foot { margin: 40px -16px 0; background: var(--brown-d); color: var(--on-dark); padding: 28px 16px 120px; display: grid; gap: 18px; font-size: 13.5px; }
.foot p { opacity: .85; line-height: 1.5; }
.foot a { color: inherit; text-decoration: none; }
.foot .tel { font-size: 17px; font-weight: 500; letter-spacing: .01em; }
.foot .hours { margin-top: 18px; }
.foot .legal { border-top: 1px solid rgba(243, 233, 218, .14); padding-top: 16px; font-size: 12.5px; }
.foot .req { font-size: 11.5px; opacity: .6; margin-top: 8px; }
.foot .req span { white-space: nowrap; }
/* Telegram channel card, looks like a channel preview */
.tgc { display: grid; grid-template-columns: auto 1fr; gap: 12px 12px; align-items: center; padding: 16px; border-radius: 18px; background: rgba(243, 233, 218, .07); border: 1px solid rgba(243, 233, 218, .14); transition: background .2s; }
.tgc:hover { background: rgba(243, 233, 218, .11); }
.tgc .av { width: 48px; height: 48px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; }
.tgc .av img { height: 30px; width: auto; }
.tgc .nm { display: grid; gap: 2px; line-height: 1.2; }
.tgc .nm small { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; }
.tgc .nm b { font-size: 18px; font-weight: 500; letter-spacing: .01em; }
.tgc p { grid-column: 1 / -1; font-size: 13.5px; }
.tgc .go { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; background: var(--on-dark); color: var(--brown-d); font-weight: 500; font-size: 15px; padding: 12px; border-radius: 999px; }
.tgc .go svg { width: 16px; height: 16px; }

/* Overlays */
.fabs { position: fixed; z-index: 20; right: 14px; bottom: 16px; display: flex; gap: 8px; align-items: center; }
.fab.info { font-family: Georgia, serif; font-size: 19px; }
.fab { height: 48px; min-width: 48px; border-radius: 24px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 6px 18px rgba(30,20,10,.18); position: relative; font-weight: 600; }
.fab svg { width: 21px; height: 21px; }
.fab.cart { background: var(--brown); color: var(--on-dark); display: flex; gap: 8px; padding: 0 13px; }
.fab.cart .sum { font-size: 14px; font-weight: 500; }
.fab.cart .sum:empty { display: none; }
.fab.order { background: var(--green); color: #fff; padding: 0 14px; font-size: 13.5px; font-weight: 500; text-decoration: none; }
.fab.up { position: fixed; left: 16px; bottom: 16px; z-index: 20; display: none; }
.ov { position: fixed; inset: 0; z-index: 30; background: rgba(20,14,10,.45); animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 31; left: 0; right: 0; bottom: 0; max-height: 88vh; max-height: 88dvh; padding-bottom: max(22px, env(safe-area-inset-bottom)); overflow-y: auto; background: var(--surface); border-radius: 24px 24px 0 0; animation: up .28s ease; padding: 0 18px 22px; scrollbar-width: none; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: rgba(23,21,18,.18); margin: 10px auto 6px; }
.sheet .x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(250,244,234,.9); display: grid; place-items: center; z-index: 2; }
.sheet .x svg { width: 16px; }
.sheet h3 { font-size: 21px; font-weight: 600; line-height: 1.2; margin: 14px 0 6px; padding-right: 36px; }
.sheet.dish-s .body h3 { padding-right: 0; }
.sheet p { color: var(--muted); font-size: 14.5px; line-height: 1.45; }
.sheet .big-img { margin: 6px -18px 0; aspect-ratio: 4 / 3; overflow: hidden; }
.sheet .big-img img { width: 100%; height: 100%; object-fit: cover; }
.sheet .act { margin-top: 18px; display: flex; gap: 10px; align-items: center; }
.btn { flex: 1; background: var(--green); color: #fff; font-weight: 500; font-size: 15.5px; text-align: center; padding: 14px; border-radius: 999px; }
.btn:hover { background: var(--green-d); }
.btn[disabled] { opacity: .45; cursor: default; }
.rows { margin-top: 10px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.row img { width: 64px; height: 48px; object-fit: cover; border-radius: 10px; }
.row .rn { flex: 1; font-size: 14px; line-height: 1.3; }
.row .rp { font-weight: 500; font-size: 14.5px; min-width: 64px; text-align: right; }
.row .step button { width: 26px; height: 26px; line-height: 26px; }
.sum-l { display: flex; justify-content: space-between; font-size: 14.5px; padding: 6px 0; color: var(--muted); }
.sum-l.tot { color: var(--ink); font-weight: 600; font-size: 17px; padding-top: 10px; }
.note { margin-top: 10px; font-size: 13px; background: #EFE5D3; border-radius: 12px; padding: 10px 12px; color: var(--brown-d); }
.list { margin-top: 8px; }
.list button { display: block; width: 100%; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.info li { list-style: none; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; display: flex; justify-content: space-between; gap: 12px; }
.info li span { color: var(--muted); }
.field { width: 100%; margin-top: 14px; font: inherit; font-size: 15px; padding: 13px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; }
.co .lb { margin-top: 18px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.co .field { margin-top: 8px; }
.co select.field { appearance: none; color: var(--ink); }
/* Account number in the checkout, not editable */
.field.ro { display: flex; justify-content: space-between; gap: 12px; background: transparent; color: var(--ink); }
.field.ro span { color: var(--muted); font-size: 13px; }
.field.err { border-color: #B5452F; box-shadow: 0 0 0 1px #B5452F inset; }
.g3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pick { margin-top: 8px; display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.pick b { color: var(--ink); font-weight: 500; }
.pick svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--ink); }
.agree { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; font-size: 13px; line-height: 1.4; color: var(--muted); cursor: pointer; }
.agree input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--green); flex: none; }
.agree u { text-underline-offset: 2px; }
.fine { margin-top: 10px; text-align: center; font-size: 12.5px !important; }
.paysum { font-size: 32px; font-weight: 600; margin: 6px 0 4px; }
.paym button { display: flex; align-items: center; gap: 12px; }
.paym i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); flex: none; }
.paym .on i { border: 5px solid var(--green); }
.okic { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 22px 0 4px; }
.okic svg { width: 28px; height: 28px; }
.empty { text-align: center; padding: 30px 0 10px; color: var(--muted); }
.toast { position: fixed; z-index: 40; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: var(--on-dark); font-size: 13.5px; padding: 10px 16px; border-radius: 999px; white-space: nowrap; animation: fade .2s; }

/* Desktop */
@media (min-width: 820px) {
  .logo img { height: 46px; }
  .logo .wm span { font-size: 25px; }
  .logo .wm small { font-size: 8.5px; }
  .hdr { padding: 16px 28px; }
  .hdr .login { display: block; }
  .hero { aspect-ratio: auto; height: clamp(340px, 52vh, 560px); }
  .wrap { max-width: 940px; margin: 0 auto; padding: 0 24px; }
  .wrap.wide { max-width: 1180px; }
  .deliv { flex-direction: row; padding-top: 22px; }
  .deliv .seg2 { width: 300px; flex: none; }
  .stories { display: grid; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 22px 0 0; padding: 0; gap: 14px; }
  .st { width: auto; }
  .st .tx b { font-size: 17px; }
  .banners { display: grid; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 22px 0 0; padding: 0; gap: 14px; }
  .wide .banners { grid-template-columns: repeat(4, 1fr); }
  .wide .bn { height: 170px; }
  .wide .bn .bt { width: 78%; }
  .wide .bn img { width: 64%; }
  .bn { width: auto; height: 180px; }
  .bn b { font-size: 20px; }
  .bento { grid-template-columns: 1.5fr 1fr 1fr; grid-template-rows: 210px 110px; gap: 14px; margin-top: 22px; }
  .bx { aspect-ratio: auto; }
  .bx.big { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: auto; }
  .bx.big .tx b { font-size: 28px; }
  .bx.strip { grid-column: 2 / span 2; grid-row: 2; height: auto; }
  .chips { margin: 22px 0 0; padding: 12px 0; }
  .cat h2 { font-size: 24px; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 26px 18px; }
  .wide .grid { grid-template-columns: repeat(4, 1fr); }
  .dish .dn { font-size: 15.5px; }
  .zone { margin-top: 64px; grid-template-columns: 5fr 7fr; gap: 40px; align-items: center; }
  .zone h2 { font-size: 34px; }
  .zm { height: 440px; }
  .zcheck { left: auto; width: 360px; }
  .foot { margin: 56px 0 0; border-radius: 22px 22px 0 0; grid-template-columns: 1fr 1fr minmax(300px, 1.1fr); gap: 28px 32px; padding: 34px 36px 60px; }
  .foot .legal { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 20px; }
  .foot .legal .req { margin-top: 0; }
  .fabs { right: 22px; bottom: 22px; }
  .fab.up { left: 22px; bottom: 22px; }
  .fab.up.show { display: grid; }
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%); width: 760px; max-height: 84vh; border-radius: 24px; animation: pop .25s ease; padding: 0 28px 26px; }
  @keyframes pop { from { transform: translate(-50%, -46%); opacity: 0; } }
  .sheet .grab { display: none; }
  .sheet.dish-s { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 0 28px 0 0; overflow: hidden; }
  .sheet.dish-s .big-img { margin: 0; aspect-ratio: auto; height: 100%; min-height: 420px; }
  .sheet.dish-s .body { padding: 26px 0; display: flex; flex-direction: column; }
  .sheet.dish-s .act { margin-top: auto; }
  .sheet.drawer { left: auto; right: 0; top: 0; bottom: 0; transform: none; width: 430px; max-height: none; padding-bottom: 26px; border-radius: 0; animation: slide .28s ease; padding-top: 18px; }
  @keyframes slide { from { transform: translateX(40px); opacity: 0; } }
  .sheet.small { width: 480px; }
  .hdr.solid .deskbar { display: flex; flex: 1; max-width: 560px; gap: 10px; align-items: center; }
  .hdr.solid .deskbar .seg2 { width: 230px; flex: none; }
  .hdr.solid .deskbar .seg2 button { padding: 8px 0; font-size: 13.5px; }
  .hdr.solid .deskbar .addr { padding: 9px 12px; font-size: 13.5px; }
  .hdr.solid .phone-n { display: block; font-size: 14px; margin-right: 8px; }
  .hdr.solid .cartpill { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(23,21,18,.3); border-radius: 999px; padding: 9px 16px; font-size: 14px; }
  .hdr.solid .cartpill svg { width: 18px; }
  .hdr.solid .menu-ic, .hdr.solid .cart-ic { display: none; }
  .solo-deliv { display: none; }
  .toast { bottom: 90px; }
}

/* Address field with Yandex suggestions and the zone check under it */
.sg { position: relative; }
.sugg { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 28px rgba(30,20,10,.16); max-height: 264px; overflow-y: auto; }
.sugg button { display: block; width: 100%; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.sugg li:last-child button { border-bottom: 0; }
.sugg button:hover, .sugg button:focus-visible { background: var(--surface); }
.sugg b { display: block; font-weight: 500; font-size: 14.5px; }
.sugg span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.zres { margin-top: 6px; font-size: 13.5px; line-height: 1.4; }
.zres:empty { display: none; }
.zr { font-weight: 500; color: var(--muted); }
.zr.ok { color: var(--green); }
.zr.no { color: #B5452F; }
.zaddr { margin-top: 18px; }
.zaddr .lb { font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.zaddr .field { margin-top: 8px; }

/* WordPress admin bar */
body.admin-bar .chips { top: 32px; }
@media (max-width: 782px) { body.admin-bar .chips { top: 46px; } }
@media (max-width: 600px) { body.admin-bar .chips { top: 0; } }

/* Inner pages: offer, privacy, delivery, WooCommerce pages */
.hdr.solid .phone-n { display: none; font-size: 14px; margin-right: 8px; text-decoration: none; }
.hdr.solid .cartpill { display: flex; align-items: center; gap: 8px; border: 1px solid rgba(23,21,18,.3); border-radius: 999px; padding: 8px 14px; font-size: 14px; text-decoration: none; }
.hdr.solid .cartpill svg { width: 18px; }
.page-body { padding: 28px 0 8px; font-size: 15.5px; line-height: 1.6; }
.page-body h1 { font-size: 28px; font-weight: 600; line-height: 1.2; margin-bottom: 18px; }
.page-body h2 { font-size: 21px; font-weight: 600; margin: 28px 0 10px; }
.page-body h3 { font-size: 17px; font-weight: 600; margin: 20px 0 8px; }
.page-body p, .page-body ul, .page-body ol, .page-body table { margin-bottom: 12px; }
.page-body ul, .page-body ol { padding-left: 1.3em; }
.page-body a { color: var(--green); text-underline-offset: 3px; }
.page-body table { width: 100%; border-collapse: collapse; }
.page-body th, .page-body td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.foot .contact p + p { margin-top: 6px; }
@media (min-width: 820px) {
  .hdr.solid .phone-n { display: block; }
  .page-body { padding-top: 44px; }
  .page-body h1 { font-size: 36px; }
}

/* Order status page */
.ost { background: var(--surface); border-radius: 18px; padding: 18px 16px; margin-bottom: 18px; }
.page-body .ost-steps { display: flex; gap: 6px; list-style: none; padding: 0; margin-bottom: 16px; }
.ost-steps li { flex: 1; font-size: 12.5px; line-height: 1.25; color: var(--muted); border-top: 3px solid var(--line); padding-top: 8px; }
.ost[data-step="accepted"] li:nth-child(1), .ost[data-step="cooking"] li:nth-child(-n+2), .ost[data-step="ready"] li:nth-child(-n+3), .ost[data-step="done"] li { color: var(--ink); font-weight: 600; border-color: var(--green); }
.ost[data-step="wait"] .ost-steps, .ost[data-step="failed"] .ost-steps, .ost[data-step="cancelled"] .ost-steps, .ost[data-step="problem"] .ost-steps { display: none; }
.page-body .ost-title { font-size: 21px; font-weight: 600; line-height: 1.2; margin-bottom: 6px; }
.ost[data-step="done"] .ost-title { color: var(--green); }
.page-body .ost-text { margin-bottom: 0; color: var(--muted); }
.page-body .btn.ost-pay { display: block; margin-top: 14px; color: #fff; text-decoration: none; }
.ost:not([data-step="wait"]) .ost-pay { display: none; }

/* Guest account */
.kab-me { color: var(--muted); }
/* Sign-in: Yandex black, VK blue as their guidelines ask, phone as a plain link */
.logins { display: grid; gap: 10px; margin-top: 16px; max-width: 360px; }
.sheet .logins { max-width: none; }
.btn.login-btn, .page-body .btn.login-btn { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; padding: 13px 20px; }
.btn.login-btn:hover { background: #000; }
.btn.login-btn.vk { background: #0077FF; }
.btn.login-btn.vk:hover { background: #0062D1; }
.vk-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: #fff; color: #0077FF; font-style: normal; font-weight: 700; font-size: 10.5px; letter-spacing: -.02em; }
.page-body .login-more, .login-more { margin: -2px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.login-more a { color: var(--ink); }
.page-body .login-phone, .login-phone { display: block; text-align: center; padding: 8px 0; color: var(--ink); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; }
.otp { max-width: 360px; }
.otp .btn { display: block; width: 100%; margin-top: 10px; }
.otp input[name="code"] { font-size: 22px; letter-spacing: .35em; text-align: center; }
.otp input[name="code"]::placeholder { letter-spacing: normal; font-size: 16px; }
.otp-hint .lnk { font-size: inherit; }
.page-body .otp-again { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
.otp-again .lnk { margin-right: 14px; font-size: 14px; }
.page-body .otp-msg { margin-top: 10px; color: #B5452F; font-size: 14px; }
.otp-msg:empty { display: none; }
.kab .fine { text-align: left; max-width: 360px; }
.ya-mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #FC3F1D; color: #fff; font-style: normal; font-weight: 700; font-size: 14px; }
.kab-order { background: var(--surface); border-radius: 18px; padding: 14px 16px 16px; margin-bottom: 14px; }
.kab-order .sum-l.tot { padding-top: 0; }
.page-body .kab-date { color: var(--muted); font-size: 13.5px; margin-bottom: 8px; }
.kab-order .ost { background: #EFE5D3; padding: 12px 14px; margin-bottom: 8px; }
.page-body .kab-order .ost-title { font-size: 16px; margin-bottom: 0; }
.kab-order .ost-steps { margin-bottom: 10px; }
.kab-again { display: block; width: 100%; margin-top: 10px; background: transparent; color: var(--green); border: 1px solid var(--green); }
.kab-again:hover { color: #fff; }
.page-body .ost-link { display: inline-block; margin-top: 10px; color: var(--green); font-weight: 600; }
.seg2 button:disabled { opacity: .4; cursor: default; }
.page-body .ost-link[hidden] { display: none; }
