/* Сайт ресторана. Светлая основа, один фирменный цвет (--brand, --on-brand задаёт страница).
   Сначала телефон, потом планшет (640) и компьютер (960). */
@font-face{font-family:Onest;src:url(fonts/onest-cyrillic.woff2) format("woff2");font-weight:400 800;font-display:swap;
  unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Onest;src:url(fonts/onest-latin.woff2) format("woff2");font-weight:400 800;font-display:swap;
  unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+20BD,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
  --bg:#fff;--elev:#fff;--surface:#f4f5f7;--surface-2:#eceef1;--line:#ebecef;--text:#141416;--muted:#74767e;
  --glass:rgba(255,255,255,.92);--scrim:rgba(20,20,22,.45);--dark-card:#1c1c1f;
  --soft:color-mix(in srgb,var(--brand) 11%,var(--bg));--soft-2:color-mix(in srgb,var(--brand) 18%,var(--bg));
  --dim:color-mix(in srgb,var(--brand) 42%,var(--bg));
  --brand-hover:color-mix(in srgb,var(--brand) 88%,#000);
  --ok:#1f9d55;--danger:#d93a3f;
  --r:24px;--r-sm:16px;--shadow:0 6px 24px rgba(20,20,22,.08);--shadow-up:0 -8px 30px rgba(20,20,22,.10);
  --head:60px;--ease:cubic-bezier(.2,.8,.2,1);
  color-scheme:light;
}
/* Тёплый шаблон: кремовая основа, тёплые тексты и поверхности */
:root[data-scheme=warm]{
  --bg:#fbf6ee;--elev:#fffdf9;--surface:#f3eadc;--surface-2:#eadfcd;--line:#eadfcf;--text:#2b1d14;--muted:#86725f;
  --glass:rgba(251,246,238,.92);--scrim:rgba(43,29,20,.45);--dark-card:#2b1d14;
  --soft:color-mix(in srgb,var(--brand) 12%,#fbf6ee);--soft-2:color-mix(in srgb,var(--brand) 20%,#fbf6ee);
  --r:28px;--shadow:0 6px 24px rgba(43,29,20,.10);--shadow-up:0 -8px 30px rgba(43,29,20,.10);
}
:root[data-scheme=warm] .section-title,:root[data-scheme=warm] .intro h1{letter-spacing:-.025em}
:root[data-scheme=warm] .tab.on{background:var(--brand);color:var(--on-brand)}
/* Тёмный шаблон: те же размеры и сетка, другие поверхности */
:root[data-scheme=dark]{
  --bg:#0f0f11;--elev:#1b1b1f;--surface:#1b1b1f;--surface-2:#26262b;--line:#2a2a30;--text:#f4f4f6;--muted:#9a9ba3;
  --glass:rgba(15,15,17,.88);--scrim:rgba(0,0,0,.6);--dark-card:#26262b;
  --soft:color-mix(in srgb,var(--brand) 16%,#17171a);--soft-2:color-mix(in srgb,var(--brand) 26%,#17171a);
  --dim:color-mix(in srgb,var(--brand) 55%,#17171a);
  --brand-hover:color-mix(in srgb,var(--brand) 85%,#fff);
  --shadow:0 6px 24px rgba(0,0,0,.45);--shadow-up:0 -8px 30px rgba(0,0,0,.5);
  color-scheme:dark;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;scroll-padding-top:calc(var(--head) + 64px)}
body{margin:0;background:var(--bg);color:var(--text);font:16px/1.5 Onest,system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  -webkit-font-smoothing:antialiased}
a{color:inherit}
button,input,select,textarea{font:inherit;color:inherit}
button{-webkit-tap-highlight-color:transparent}
img{max-width:100%;display:block}
svg{width:22px;height:22px;fill:currentColor;flex:none}
[hidden]{display:none!important}
h1,h2,h3{margin:0;line-height:1.15;letter-spacing:-.01em}
.wrap{max-width:1240px;margin:0 auto;padding-left:max(16px,env(safe-area-inset-left));padding-right:max(16px,env(safe-area-inset-right))}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.skip{position:absolute;left:-9999px}
.skip:focus{left:16px;top:8px;z-index:1000;background:var(--brand);color:var(--on-brand);padding:8px 14px;border-radius:12px}
:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.muted{color:var(--muted)}

/* ---------- кнопки ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:12px 22px;border-radius:999px;border:0;
  font-weight:600;font-size:16px;text-decoration:none;cursor:pointer;transition:background .2s,transform .12s,opacity .2s}
.btn:active{transform:scale(.98)}
.btn.primary{background:var(--brand);color:var(--on-brand)}
.btn.primary:hover{background:var(--brand-hover)}
.btn.soft{background:var(--surface);color:var(--text)}
.btn.soft:hover{background:var(--surface-2)}
.btn.text{background:none;color:var(--muted);min-height:40px}
.btn.wide{width:100%}
.btn.big{min-height:56px;font-size:17px}
.btn:disabled{opacity:.55;cursor:wait}
.btn svg{width:20px;height:20px}
.x{width:40px;height:40px;border-radius:50%;border:0;background:var(--surface);color:var(--text);display:grid;place-items:center;cursor:pointer;flex:none}
.x:hover{background:var(--surface-2)}
.x svg{width:20px;height:20px}
.linklike{border:0;background:none;padding:0;cursor:pointer;color:inherit;text-align:left}

/* ---------- шапка ---------- */
.top{position:sticky;top:0;z-index:60;background:var(--glass);backdrop-filter:saturate(1.6) blur(14px);-webkit-backdrop-filter:saturate(1.6) blur(14px);transition:box-shadow .2s}
.top.scrolled{box-shadow:0 1px 0 var(--line)}
.top-in{height:var(--head);display:flex;align-items:center;gap:12px}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;min-width:0;margin-right:auto}
.brand-mark{width:40px;height:40px;border-radius:12px;background:var(--brand);color:var(--on-brand);display:grid;place-items:center;font-weight:800;font-size:20px;flex:none}
.brand-logo{width:40px;height:40px;border-radius:12px;object-fit:cover;flex:none;background:var(--surface)}
.cover{aspect-ratio:16/7;max-height:360px;width:100%;border-radius:var(--r);overflow:hidden;background:var(--soft);margin-bottom:18px}
.cover img{width:100%;height:100%;object-fit:cover}
.brand-text{display:flex;flex-direction:column;min-width:0}
.brand-name{font-weight:700;font-size:17px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-sub{font-size:12px;color:var(--muted);white-space:nowrap}
.search.top-search{display:none}
.top-phone{display:none}
.top-actions{display:flex;align-items:center;gap:8px}
.round{height:44px;min-width:44px;border-radius:999px;border:0;background:var(--surface);color:var(--text);display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 11px;cursor:pointer;transition:background .2s}
.round:hover{background:var(--surface-2)}
.round-label{display:none;font-weight:600;font-size:15px;max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cart-btn{height:44px;border:0;border-radius:999px;background:var(--brand);color:var(--on-brand);display:inline-flex;align-items:center;gap:8px;padding:0 14px 0 12px;font-weight:600;font-size:15px;cursor:pointer;transition:background .2s,transform .2s}
.cart-btn:hover{background:var(--brand-hover)}
.cart-btn-text,.cart-btn-sep{display:none}
.cart-btn-sep{width:1px;height:20px;background:currentColor;opacity:.35}
.count{min-width:20px;text-align:center;font-variant-numeric:tabular-nums}
.bump{animation:bump .45s var(--ease)}
@keyframes bump{30%{transform:scale(1.12)}}

/* ---------- поиск ---------- */
.search{position:relative;display:flex;align-items:center;height:48px;border-radius:16px;background:var(--surface);padding:0 14px;gap:10px;color:var(--muted)}
.search input{flex:1;min-width:0;height:100%;border:0;background:none;outline:0;font-size:16px;color:var(--text)}
.search input::placeholder{color:var(--muted)}
.search:focus-within{box-shadow:0 0 0 2px var(--brand) inset;background:var(--elev)}

/* ---------- вступление ---------- */
.intro{padding-top:12px;padding-bottom:4px}
.intro h1{font-size:28px;font-weight:800;letter-spacing:-.02em}
.lead{margin:6px 0 0;color:var(--muted);font-size:16px}
.facts{list-style:none;margin:14px -16px 0;padding:0 16px;display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;scroll-padding-inline:16px}
.facts::-webkit-scrollbar{display:none}
.facts li{flex:none;white-space:nowrap;display:inline-flex;align-items:center;gap:6px;background:var(--surface);border-radius:999px;padding:7px 12px 7px 10px;font-size:14px;font-weight:500}
.facts svg{width:16px;height:16px;color:var(--brand)}
.intro-search{margin-top:16px}

/* ---------- хиты ---------- */
.section-title{font-size:24px;font-weight:800;margin:0 0 14px}
.hits{margin-top:26px}
.hits-row{display:flex;gap:10px;overflow-x:auto;scroll-snap-type:x mandatory;margin:0 -16px;padding:0 16px 6px;scrollbar-width:none;scroll-padding-inline:16px}
.hits-row::-webkit-scrollbar{display:none}
.hit{flex:none;width:232px;display:flex;align-items:center;gap:10px;padding:8px;border-radius:20px;background:var(--surface);cursor:pointer;scroll-snap-align:start;transition:background .2s}
.hit:hover{background:var(--surface-2)}
.hit-ph{width:64px;height:64px;border-radius:14px;overflow:hidden;background:var(--soft);display:grid;place-items:center;color:var(--dim);flex:none}
.hit-ph img{width:100%;height:100%;object-fit:cover}
.hit-ph svg{width:34px;height:34px}
.hit-info{display:flex;flex-direction:column;min-width:0}
.hit-name{font-weight:600;font-size:14px;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.hit-price{font-size:14px;color:var(--muted);margin-top:2px}

/* ---------- разделы ---------- */
.tabs{position:sticky;top:var(--head);z-index:50;background:var(--glass);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);margin-top:18px;transition:box-shadow .2s}
.tabs.stuck{box-shadow:0 1px 0 var(--line)}
.tabs-in{display:flex;gap:6px;overflow-x:auto;padding-top:8px;padding-bottom:8px;scrollbar-width:none}
.tabs-in::-webkit-scrollbar{display:none}
.tab{flex:none;padding:9px 16px;border-radius:999px;text-decoration:none;font-weight:600;font-size:15px;color:var(--text);background:var(--surface);transition:background .2s,color .2s}
.tab:hover{background:var(--surface-2)}
.tab.on{background:var(--text);color:var(--bg)}

/* ---------- меню ---------- */
.category{padding-top:22px}
.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px}
.card{position:relative;cursor:pointer;min-width:0}
.ph{position:relative;aspect-ratio:1;border-radius:var(--r);overflow:hidden;background:var(--soft)}
.ph img{width:100%;height:100%;object-fit:cover;transition:transform .5s var(--ease)}
.card:hover .ph img{transform:scale(1.04)}
.ph-empty{position:absolute;inset:0;display:grid;place-items:center;color:var(--dim)}
.ph-empty svg{width:42%;height:42%}
.badges{position:absolute;left:10px;top:10px;display:flex;flex-wrap:wrap;gap:4px;pointer-events:none}
.badges.static{position:static;margin-bottom:10px}
.badges span{font-size:12px;font-weight:700;line-height:1;padding:6px 9px;border-radius:999px;color:#fff;letter-spacing:.01em}
.badge-new{background:#2f7cf6}.badge-hit{background:#ff8a00}.badge-sale{background:var(--danger)}
.ph-actions{position:absolute;left:8px;right:8px;bottom:8px;display:flex;flex-wrap:wrap-reverse;justify-content:flex-end;align-items:center;gap:6px;pointer-events:none}
.ph-actions>*{pointer-events:auto}
.plus{flex:none;width:46px;height:46px;border-radius:50%;border:0;background:var(--elev);color:var(--text);
  display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 14px rgba(20,20,22,.12);transition:background .2s,color .2s,transform .15s}
.plus:hover{background:var(--brand);color:var(--on-brand)}
.plus:active{transform:scale(.92)}
.stepper{display:inline-flex;align-items:center;background:var(--elev);border-radius:999px;height:44px;box-shadow:0 4px 14px rgba(20,20,22,.12)}
.stepper button{width:44px;height:44px;border:0;background:none;font-size:22px;font-weight:500;cursor:pointer;color:var(--brand);border-radius:50%}
.stepper button:hover{background:var(--soft)}
.stepper span{min-width:22px;text-align:center;font-weight:700;font-variant-numeric:tabular-nums}
.card-stepper{flex:none;animation:pop .25s var(--ease)}
/* размер на карточке */
.sizes{margin-right:auto;display:inline-flex;gap:2px;padding:3px;border-radius:999px;background:var(--elev);box-shadow:0 4px 14px rgba(20,20,22,.12)}
.sizes button{min-width:34px;height:36px;padding:0 9px;border:0;border-radius:999px;background:none;color:var(--text);font:inherit;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;cursor:pointer;white-space:nowrap;transition:background .2s,color .2s}
.sizes button:hover{background:var(--soft)}
.sizes button[aria-checked="true"]{background:var(--brand);color:var(--on-brand)}
.sizes button:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
/* размеры столбиком слева внизу фото — на телефоне так же, как на компьютере: строка закрывала фото блюда */
.ph-actions{flex-wrap:nowrap;align-items:flex-end}
.sizes{flex-direction:column;border-radius:18px}
.sizes button{height:30px;min-width:46px;border-radius:15px;font-size:13px;padding:0 8px}
/* узкие карточки (две в ряд на телефоне ~360 px): размеры и «− N +» помещаются рядом, не вылезая за фото */
@media (max-width:420px){.ph-actions{left:6px;right:6px;bottom:6px}.sizes button{min-width:40px;padding:0 6px}
  .card-stepper{height:40px}.card-stepper button{width:34px;height:40px;font-size:20px}.card-stepper span{min-width:18px}}
@keyframes pop{from{transform:scale(.7);opacity:0}}
.meta{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:10px}
.price{font-size:19px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.old-price{font-size:14px;font-weight:500;color:var(--muted);margin-left:4px}
.weight{font-size:13px;color:var(--muted);white-space:nowrap}
.name{margin:3px 0 0;font-size:15px;font-weight:500;line-height:1.3}
.card-title{all:unset;cursor:pointer;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.card-title:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:4px}
.desc{display:none;margin:4px 0 0;font-size:13px;line-height:1.4;color:var(--muted);-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.nothing{padding:40px 0;text-align:center;color:var(--muted)}
.empty-menu{text-align:center;padding:48px 16px 24px;max-width:420px;margin:0 auto}
.empty-art{width:120px;height:120px;border-radius:36px;background:var(--soft);color:var(--brand);display:grid;place-items:center;margin:0 auto 18px}
.empty-art svg{width:60px;height:60px}
.empty-menu h2{font-size:24px}
.empty-menu p{color:var(--muted);margin:8px 0 20px}

/* ---------- отзывы ---------- */
.reviews{display:flex;gap:12px;overflow-x:auto;margin:0 -16px;padding:0 16px 6px;scroll-snap-type:x mandatory;scrollbar-width:none;scroll-padding-inline:16px}
.review{flex:none;width:300px;margin:0;padding:18px;border-radius:var(--r);background:var(--surface);scroll-snap-align:start}
.stars{color:#ffb400;letter-spacing:2px}.stars span{color:var(--surface-2)}
.review blockquote{margin:8px 0 10px;font-size:15px}
.review figcaption{font-weight:600;font-size:14px}

/* ---------- подвал ---------- */
.footer{margin-top:48px;background:var(--surface);padding:32px 0 calc(100px + env(safe-area-inset-bottom));font-size:14px;color:var(--muted)}
.footer-in{display:flex;flex-direction:column;gap:20px}
.footer-name{font-weight:700;font-size:18px;color:var(--text)}
.footer-phone{display:inline-block;margin:6px 0;font-size:20px;font-weight:700;color:var(--text);text-decoration:none}
.footer p{margin:2px 0}
.footer-links{display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.footer-links a{text-decoration:none}
.footer-links a:hover,.footer-links .linklike:hover{color:var(--text)}

/* ---------- нижняя панель (телефон) ---------- */
.dock{position:fixed;left:0;right:0;bottom:0;z-index:70;display:flex;gap:10px;justify-content:flex-end;padding:12px max(12px,env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));pointer-events:none}
.dock>*{pointer-events:auto}
.dock-call{width:56px;height:56px;border-radius:50%;background:var(--elev);color:var(--text);display:grid;place-items:center;box-shadow:var(--shadow);text-decoration:none;flex:none}
.dock-cart{flex:1;height:56px;border:0;border-radius:999px;background:var(--brand);color:var(--on-brand);display:flex;align-items:center;gap:12px;padding:0 20px 0 16px;
  font-size:16px;font-weight:600;cursor:pointer;box-shadow:0 8px 24px color-mix(in srgb,var(--brand) 35%,transparent);animation:rise .35s var(--ease)}
.dock-cart strong{margin-left:auto;font-variant-numeric:tabular-nums}
.dock-cart-l{display:inline-flex;align-items:center;gap:6px;padding-right:12px;border-right:1px solid color-mix(in srgb,var(--on-brand) 35%,transparent)}
@keyframes rise{from{transform:translateY(20px);opacity:0}}

.owner-bar{position:fixed;left:12px;bottom:calc(84px + env(safe-area-inset-bottom));z-index:75;background:var(--text);color:var(--bg);text-decoration:none;font-size:14px;font-weight:600;padding:10px 14px;border-radius:999px;box-shadow:var(--shadow)}
.toast{position:fixed;left:50%;bottom:calc(88px + env(safe-area-inset-bottom));transform:translateX(-50%);z-index:90;background:var(--text);color:var(--bg);padding:11px 18px;border-radius:999px;font-size:15px;font-weight:500;box-shadow:var(--shadow);animation:rise .25s var(--ease);white-space:nowrap}

/* ---------- корзина ---------- */
.scrim{position:fixed;inset:0;z-index:80;background:var(--scrim);animation:fade .2s}
@keyframes fade{from{opacity:0}}
.drawer{position:fixed;z-index:81;left:0;right:0;bottom:0;top:0;background:var(--elev);display:flex;flex-direction:column;
  transform:translateY(100%);visibility:hidden;transition:transform .35s var(--ease),visibility 0s .35s}
.drawer.open{transform:none;visibility:visible;transition:transform .35s var(--ease)}
.drawer-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 16px 10px}
.drawer-head h2{font-size:26px;font-weight:800}
.drawer-sub{margin:4px 0 0;color:var(--muted);font-size:14px}
.drawer-body{flex:1;overflow-y:auto;padding:0 16px 16px;overscroll-behavior:contain}
.drawer-foot{padding:14px 16px calc(14px + env(safe-area-inset-bottom));box-shadow:var(--shadow-up)}
.line{display:grid;grid-template-columns:64px 1fr auto;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid var(--line)}
.line-ph{width:64px;height:64px;border-radius:14px;overflow:hidden;background:var(--soft);display:grid;place-items:center;color:var(--dim)}
.line-ph img{width:100%;height:100%;object-fit:cover}
.line-name{font-weight:600;font-size:15px;line-height:1.3}
.line-sub{font-size:13px;color:var(--muted)}
.line-right{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.line-sum{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.line .stepper{height:36px;box-shadow:none;background:var(--surface)}
.line .stepper button{width:34px;height:36px;font-size:20px}
.line .stepper button:hover{background:var(--surface-2)}
.cart-empty{text-align:center;padding:48px 0;color:var(--muted)}
.cart-empty .empty-art{width:96px;height:96px;border-radius:28px}
.cart-empty strong{display:block;color:var(--text);font-size:19px;margin-bottom:4px}
.upsell{margin-top:22px}
.upsell h3{font-size:18px;font-weight:700;margin-bottom:10px}
.upsell-row{display:flex;gap:10px;overflow-x:auto;margin:0 -16px;padding:0 16px 4px;scrollbar-width:none;scroll-padding-inline:16px}
.upsell-row::-webkit-scrollbar{display:none}
.up{flex:none;width:132px;border-radius:20px;background:var(--surface);padding:8px;display:flex;flex-direction:column;gap:6px}
.up-ph{aspect-ratio:1;border-radius:14px;overflow:hidden;background:var(--soft);display:grid;place-items:center;color:var(--dim)}
.up-ph img{width:100%;height:100%;object-fit:cover}
.up-name{font-size:13px;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em}
.up-add{border:0;border-radius:999px;background:var(--elev);height:34px;font-weight:700;font-size:14px;cursor:pointer;color:var(--text)}
.up-add:hover{background:var(--brand);color:var(--on-brand)}
.points-note{margin:0 0 10px;padding:10px 12px;border-radius:14px;background:var(--soft);font-size:14px}
.total-row{display:flex;justify-content:space-between;align-items:baseline;margin-bottom:12px;font-size:16px}
.total-row strong{font-size:22px;font-variant-numeric:tabular-nums}

/* ---------- окна ---------- */
.modal{border:0;padding:0;background:var(--elev);color:var(--text);width:100%;max-width:100%;max-height:94dvh;margin:auto 0 0;border-radius:28px 28px 0 0;
  overflow:auto;overscroll-behavior:contain}
.modal[open]{animation:sheet .35s var(--ease)}
@keyframes sheet{from{transform:translateY(40px);opacity:.4}}
.modal::backdrop{background:var(--scrim);animation:fade .2s}
.modal-body{position:relative;padding:24px 16px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:12px}
.modal-body h2{font-size:24px;font-weight:800;padding-right:48px}
.modal-x{position:absolute;right:14px;top:14px}
.modal-lead{margin:-4px 0 4px;color:var(--muted);font-size:15px}
.field{display:flex;flex-direction:column;gap:6px;font-size:14px;font-weight:500;color:var(--muted)}
.field em{font-style:normal;font-weight:400;opacity:.8}
.field input,.field textarea,.field select{width:100%;min-height:52px;padding:13px 16px;border-radius:var(--r-sm);border:1.5px solid transparent;background:var(--surface);
  font-size:16px;color:var(--text);outline:0;transition:border-color .2s,background .2s}
.field textarea{resize:vertical;min-height:72px}
.field input:focus,.field textarea:focus{border-color:var(--brand);background:var(--elev)}
.check{display:flex;gap:10px;align-items:flex-start;font-size:14px;color:var(--muted);cursor:pointer;line-height:1.4}
.check input{width:22px;height:22px;flex:none;accent-color:var(--brand);margin:0}
.check a{color:var(--text)}
.form-error{margin:0;padding:12px 14px;border-radius:14px;background:color-mix(in srgb,var(--danger) 12%,var(--bg));color:var(--danger);font-size:14px;font-weight:500}
.hint-box{margin:0;padding:12px 14px;border-radius:14px;background:var(--soft);font-size:14px}
.hint-box a{display:inline-block;margin-top:4px;font-weight:600}
.group{display:flex;flex-direction:column;gap:10px;padding-top:4px}
.group h3{font-size:17px;font-weight:700}
.two{display:grid;gap:10px}
.pay-options{display:grid;gap:8px}
.pay{display:flex;align-items:center;gap:12px;padding:14px 16px;border-radius:var(--r-sm);background:var(--surface);cursor:pointer;font-weight:500;border:1.5px solid transparent;transition:border-color .2s,background .2s}
.pay input{width:20px;height:20px;accent-color:var(--brand);margin:0}
.pay:has(input:checked){border-color:var(--brand);background:var(--elev)}
.checkout-foot{position:sticky;bottom:calc(-20px - env(safe-area-inset-bottom));margin:4px -16px calc(-20px - env(safe-area-inset-bottom));padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--elev);box-shadow:var(--shadow-up)}
#orderSubmit{justify-content:space-between;padding:0 24px}
.points-card{padding:14px 16px;border-radius:var(--r-sm);background:var(--soft);font-weight:600}
.done{text-align:center;align-items:center}
.done h2{padding:0}
.done p{margin:0 0 8px;color:var(--muted)}
.done-mark{width:72px;height:72px;border-radius:50%;background:color-mix(in srgb,var(--ok) 16%,var(--bg));color:var(--ok);display:grid;place-items:center;font-size:36px;font-weight:800;margin-top:8px}

/* окно блюда */
.product-modal .product-body{position:relative;display:flex;flex-direction:column}
.pd-close{position:absolute;right:14px;top:14px;z-index:2;background:var(--glass);box-shadow:var(--shadow)}
.pd-img{aspect-ratio:1;max-height:56dvh;width:100%;background:var(--soft);overflow:hidden}
.pd-img img{width:100%;height:100%;object-fit:cover}
.pd-info{padding:20px 16px 0;display:flex;flex-direction:column}
.pd-info h2{font-size:26px;font-weight:800;padding-right:8px}
.pd-weight{color:var(--muted);margin-top:6px;font-size:15px}
.pd-desc{margin:12px 0 0;font-size:15px;line-height:1.55}
.pd-desc:empty{display:none}
.kbju-wrap{margin-top:16px}
.kbju-note{margin:0 0 8px;font-size:13px;color:var(--muted)}
.kbju{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:0}
.kbju div{background:var(--surface);border-radius:14px;padding:10px 8px;text-align:center}
.kbju dt{font-size:12px;color:var(--muted)}
.kbju dd{margin:2px 0 0;font-weight:700;font-size:16px}
.pd-foot{position:sticky;bottom:0;margin:20px -16px 0;padding:12px 16px calc(12px + env(safe-area-inset-bottom));background:var(--elev);box-shadow:var(--shadow-up)}
#pdAdd .old-price{color:inherit;opacity:.7}

/* cookie */
.cookie{position:fixed;z-index:95;left:12px;right:12px;bottom:calc(12px + env(safe-area-inset-bottom));max-width:560px;margin:0 auto;background:var(--dark-card);color:#e9e9ec;
  border-radius:24px;padding:18px;box-shadow:0 12px 40px rgba(0,0,0,.25);font-size:14px;animation:rise .35s var(--ease)}
.cookie p{margin:0 0 14px;line-height:1.45}
.cookie a{color:#fff}
.cookie-btns{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.cookie .btn{min-height:46px;font-size:15px;padding:10px 12px}
.cookie .btn.soft{background:#2e2e33;color:#fff}
.cookie .btn.soft:hover{background:#3a3a40}

/* ---------- планшет ---------- */
@media (min-width:640px){
  .grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:30px 18px}
  .desc{display:-webkit-box}
  .intro h1{font-size:36px}
  .two{grid-template-columns:1fr 1fr}
  .modal{width:min(520px,calc(100% - 32px));margin:auto;border-radius:28px;max-height:90dvh}
  .modal-body{padding:28px 28px 24px}
  .checkout-foot{bottom:-24px;margin:4px -28px -24px;padding:14px 28px}
  .product-modal{width:min(920px,calc(100% - 32px));overflow:hidden}
  .product-modal .product-body{display:grid;grid-template-columns:1.05fr 1fr;height:min(620px,88dvh)}
  .pd-img{aspect-ratio:auto;max-height:none;height:100%}
  .pd-info{padding:32px 28px 0;overflow-y:auto}
  .pd-foot{margin:auto -28px 0;padding:16px 28px 20px;box-shadow:none}
  .drawer{left:auto;width:440px;transform:translateX(100%);border-radius:28px 0 0 28px}
  .drawer-head,.drawer-body,.drawer-foot{padding-left:24px;padding-right:24px}
  .upsell-row{margin:0 -24px;padding:0 24px 4px}
  .hit{width:260px}
  .review{width:340px}
}
/* ---------- компьютер ---------- */
@media (min-width:960px){
  :root{--head:72px}
  .footer{padding-bottom:32px}
  .brand{margin-right:0}
  .brand-mark,.brand-logo{width:44px;height:44px;font-size:22px}
  .cover{aspect-ratio:16/5}
  .brand-name{font-size:19px}
  .search.top-search{display:flex;flex:1;max-width:420px;margin:0 auto 0 24px;height:46px}
  .intro-search{display:none}
  .top-phone{display:block;font-weight:700;text-decoration:none;white-space:nowrap;margin-right:8px}
  .round-label{display:inline}
  .cart-btn{height:46px;padding:0 18px}
  .cart-btn-text,.cart-btn-sep{display:inline-block}
  .dock{display:none}
  .owner-bar{bottom:20px;left:20px}
  .toast{bottom:28px}
  .intro{padding-top:28px}
  .intro h1{font-size:44px}
  .lead{font-size:18px}
  .grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:36px 24px}
  .section-title{font-size:30px;margin-bottom:18px}
  .category{padding-top:34px}
  .hits-row,.reviews,.facts{margin-left:0;margin-right:0;padding-left:0;padding-right:0}
  .facts{flex-wrap:wrap}
  .footer-in{flex-direction:row;justify-content:space-between}
  .footer-links{align-items:flex-end}
  .cookie{left:auto;right:24px;bottom:24px;margin:0}
}
@media (min-width:1200px){.grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}html{scroll-behavior:auto}}

/* варианты (переключатель) и добавки */
.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:4px;padding:4px;margin-top:16px;border-radius:999px;background:var(--surface)}
.seg label{position:relative;cursor:pointer}
.seg input{position:absolute;opacity:0}
.seg span{display:block;text-align:center;padding:10px 8px;border-radius:999px;font-weight:600;font-size:14px;line-height:1.2;transition:background .2s,box-shadow .2s}
.seg input:checked+span{background:var(--elev);box-shadow:0 2px 8px rgba(20,20,22,.12)}
.seg input:focus-visible+span{outline:2px solid var(--brand);outline-offset:1px}
.opt-group{border:0;margin:18px 0 0;padding:0}
.opt-group legend{padding:0;margin-bottom:8px;font-weight:700;font-size:16px}
.opt-group legend small{font-weight:500;color:var(--muted);font-size:13px;margin-left:6px}
.opt{display:grid;grid-template-columns:24px 1fr auto;gap:10px;align-items:center;padding:12px 14px;border-radius:14px;background:var(--surface);cursor:pointer;margin-top:6px;transition:box-shadow .2s}
.opt:has(input:checked){box-shadow:inset 0 0 0 1.5px var(--brand)}
.opt input{width:20px;height:20px;accent-color:var(--brand);margin:0}
.opt .op{color:var(--muted);font-size:14px;white-space:nowrap}
#pdError{margin-top:14px}

/* компьютер: кнопки размеров чуть крупнее */
@media (min-width:960px){
  .sizes{border-radius:20px}
  .sizes button{height:32px;min-width:52px;border-radius:16px;font-size:14px}
}

/* --- широкий логотип (надпись вместо значка), личный кабинет, доставка --- */
.brand-logo.wide{width:auto;height:38px;max-width:46vw;border-radius:0;object-fit:contain;background:none}
.hidden-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.round-badge{min-width:22px;padding:2px 7px;border-radius:999px;background:var(--brand);color:#fff;font-size:12px;font-weight:700;line-height:18px;text-align:center}
.points-card{display:grid;grid-template-columns:1fr auto;align-items:center;gap:2px 12px}
.points-card b{font-size:28px;line-height:1;color:var(--brand)}
.points-card small{grid-column:1/-1;font-weight:400;font-size:13px;color:var(--muted)}
.lk-h{margin:18px 0 8px;font-size:16px}
.lk-list{display:grid;gap:8px;max-height:38vh;overflow:auto}
.lk-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border-radius:14px;background:var(--soft)}
.lk-title{font-weight:600;font-size:14px}
.lk-sub{font-size:13px;color:var(--muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.lk-row .btn{flex:none;padding:8px 12px;font-size:13px}
.lk-more{margin-top:14px}
.lk-more summary{cursor:pointer;font-weight:600;font-size:14px;margin-bottom:8px}
.plus-pts{color:#1a8f4c}
.three{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.delivery-map{height:240px;margin-top:10px;border-radius:14px;overflow:hidden;background:var(--soft)}
.delivery-note{margin:10px 0 0;padding:10px 14px;border-radius:14px;background:var(--soft);font-size:14px;font-weight:600}
.delivery-note.warn{background:color-mix(in srgb,#e5484d 14%,var(--soft));color:#c2262b}
@media (min-width:900px){.brand-logo.wide{width:auto;height:44px}}
.brand-sub{overflow:hidden;text-overflow:ellipsis}
/* широкий логотип уже содержит название — на телефоне строка «Доставка …» не помещается */
@media (max-width:560px){.brand-logo.wide{height:34px;max-width:52vw}.brand-logo.wide+.brand-text .brand-sub{display:none}}
/* акции, «Доставка и оплата», «О нас» */
.promos{margin-top:8px}
.promos-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(240px,1fr);gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-bottom:4px}
.promo{scroll-snap-align:start;padding:18px 20px;border-radius:var(--r-sm);background:linear-gradient(135deg,var(--brand),color-mix(in srgb,var(--brand) 70%,#000));color:#fff;min-height:96px}
.promo-title{margin:0;font-size:18px;line-height:1.2}
.promo-text{margin:6px 0 0;font-size:14px;opacity:.92}
.info-blocks{display:grid;gap:16px;margin:32px auto 8px}
.info-block{padding:20px;border-radius:var(--r-sm);background:var(--soft)}
.info-block .section-title{margin-top:0}
.info-block p{margin:0 0 8px;line-height:1.55}
.zones-list{margin:8px 0 0;padding-left:18px;display:grid;gap:4px}
@media (min-width:900px){.info-blocks{grid-template-columns:1fr 1fr}}
