/* Инь-Янь — широкая раскладка меню для компьютера (от 1024 px).
   Цвета, шрифты и скругления те же, что в menu.css (переменные темы из админки). Телефонная вёрстка не меняется. */
:root { --wbar-h: 60px; --wpad: clamp(24px, 2.2vw, 48px); --ease-out: cubic-bezier(.23,1,.32,1); --ease-drawer: cubic-bezier(.32,.72,0,1); }
.dish .ds { display: none; }
.ndot { display: inline-block; width: .2em; height: .2em; margin: 0 .16em; border-radius: 50%; background: var(--dot); vertical-align: .2em; }

/* ---------- стартовый экран: снимок фасада во всю ширину, под ним тёмная полоса с названием и кнопкой ---------- */
body.wsplash .app { max-width: none; box-shadow: none; }
body.wsplash .view.on.splash { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; height: 100vh; height: 100dvh; min-height: 0; padding: 0 !important; text-align: left; }
.splash .wsp-pic { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; }
.splash .wsp-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; opacity: 0; animation: fadeIn 1.1s var(--ease-out) .05s forwards; }
.splash .wsp-bar { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding: 34px clamp(40px, 5vw, 88px) 38px; animation: riseIn .7s var(--ease-out) .25s both; }
.splash .wsp-name { font-family: var(--display); font-weight: var(--fw-d); font-size: clamp(52px, 5.2vw, 84px); line-height: .92; letter-spacing: -0.04em; margin: 0; white-space: nowrap; }
.splash .wsp-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; font-size: 17px; font-weight: 500; color: rgba(255,255,255,.7); }
.splash .wsp-sub i { width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.4); }
.splash .wsp-r { display: flex; align-items: center; gap: 34px; flex: none; }
.splash .wsp-r .links { gap: 4px 24px; }
@media (hover: hover) and (pointer: fine) { .splash .cta:hover .knob img { animation-duration: 3s; } .splash .links a:hover { color: #fff; } }
@media (max-width: 1180px) { .splash .wsp-r { flex-direction: column-reverse; align-items: flex-end; gap: 14px; } }

/* ---------- каркас ---------- */
html:has(body.wide) { scrollbar-gutter: stable; }
body.wide .app { max-width: none; box-shadow: none; overflow: visible; }
/* без анимации появления: transform и opacity на секции делают её точкой отсчёта для fixed, и выезжающий заказ прятался под шапку */
body.wide .view.wide-menu { animation: none; display: grid; grid-template-columns: clamp(212px, 13vw, 260px) minmax(0, 1fr) clamp(320px, 19vw, 380px); column-gap: clamp(28px, 2.2vw, 48px); align-items: start; padding: calc(var(--wbar-h) + 28px) var(--wpad) 96px; min-height: 100vh; }
body.wide.modal-on { overflow: hidden; }

/* шапка во всю ширину: знак и название, поиск, заказ и язык */
body.wide .topbar.wide { left: 0; right: 0; transform: none; width: auto; margin: 0; height: var(--wbar-h); border-radius: 0; gap: 20px; padding: 0 var(--wpad);
  background: color-mix(in srgb, var(--bg) 84%, transparent); box-shadow: inset 0 -1px 0 var(--line); }
body.wide .topbar.wide .nm { flex: none; cursor: pointer; font-size: 17px; }
body.wide .topbar.wide .ig { font-size: 12.5px; }
body.wide .topbar.wide .ig svg { width: 14px; height: 14px; }
body.wide .topbar.wide .mark.plain, body.wide .topbar.wide .mark.plain img { height: 38px; }
body.wide .topbar.wide .mark:not(.plain) { width: 38px; height: 38px; }
body.wide .topbar.wide .mark:not(.plain) img { width: 34px; }
.topbar .wsearch { flex: 1; max-width: 460px; margin: 0 auto; height: 40px; padding: 0 14px; box-shadow: inset 0 0 0 1px var(--line); background: var(--panel); transition: box-shadow .2s; }
.topbar .wsearch:focus-within { box-shadow: inset 0 0 0 1.5px var(--ink), 0 10px 28px -18px rgba(30,27,24,.6); }
.topbar .wsearch svg { width: 17px; height: 17px; }
.topbar .wsearch input { font-size: 14.5px; }
.topbar .wsearch .clr { width: 26px; height: 26px; }
body.wide .topbar .cartbtn { height: 36px; padding: 0 12px; font-size: 13.5px; }
body.wide .topbar .lang { height: 34px; padding: 0 6px 0 11px; background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.topbar .wig { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); transition: color .15s; }
.topbar .wig svg { width: 17px; height: 17px; }
@media (hover: hover) and (pointer: fine) { .topbar .wig:hover { color: var(--ink); } }
body.wide .langmenu { transform: scale(.95); transform-origin: top right; }
body.wide .langmenu.on { transform: scale(1); }
body.wide .toast { bottom: 32px; z-index: 90; }
body.wide.modal-on .toast { bottom: 40px; }

/* ---------- разделы слева ---------- */
.wside { position: sticky; top: calc(var(--wbar-h) + 28px); max-height: calc(100vh - var(--wbar-h) - 48px); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; padding: 2px 6px 24px 2px; scrollbar-width: none; }
.wside::-webkit-scrollbar { display: none; }
.wnav { position: relative; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px 6px 6px; border-radius: 15px; color: var(--muted); font-size: 14px; font-weight: 600; line-height: 1.2; transition: background-color .2s, color .2s, box-shadow .2s; }
.wnav img, .wnav em { width: 40px; height: 40px; border-radius: 11px; object-fit: cover; flex: none; background: var(--panel-2); }
.wnav span { flex: 1; min-width: 0; }
.wnav i { width: 7px; height: 7px; border-radius: 50%; background: var(--dot); flex: none; opacity: 0; transform: scale(.3); transition: opacity .2s, transform .3s var(--ease-out); }
.wnav.on { background: var(--panel); color: var(--ink); box-shadow: 0 10px 24px -16px rgba(30,27,24,.55); }
.wnav.on i { opacity: 1; transform: none; }
.wnav:active { transform: scale(.985); }
.wsub { display: none; flex-direction: column; padding: 6px 0 10px 58px; }
.wsub.on { display: flex; }
.wsub button { text-align: left; padding: 6px 10px; margin-left: -10px; border-radius: 9px; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: color .15s, background-color .15s; }
.wsub button.on { color: var(--ink); font-weight: 600; }
@media (hover: hover) and (pointer: fine) {
  .wnav:hover { color: var(--ink); background: color-mix(in srgb, var(--panel) 60%, transparent); }
  .wnav.on:hover { background: var(--panel); }
  .wsub button:hover { color: var(--ink); background: color-mix(in srgb, var(--panel) 60%, transparent); }
}

/* ---------- обложка: название, слоган, строка «адрес · часы · телефон» ---------- */
.wmain { min-width: 0; }
body.wide .block { margin-top: 0; }
.whero h1 { font-family: var(--display); font-weight: var(--fw-d); font-size: clamp(54px, 5vw, 76px); line-height: .94; letter-spacing: -0.04em; }
.whero .wtag { margin-top: 12px; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--muted-2); }
.whero .wslogan { margin-top: 16px; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }
.winfo { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; margin-top: 28px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.winfo .wi { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.winfo svg { width: 18px; height: 18px; flex: none; color: var(--muted-2); }
.winfo .shut { color: var(--dot); font-weight: 600; }
.winfo a.wi { color: var(--ink); transition: color .15s; }
@media (hover: hover) and (pointer: fine) { .winfo a.wi:hover { color: var(--dot); } }

/* без фото: слева название и строка с адресом, справа эмблема */
.whero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; padding: 18px 8px 34px 2px; border-bottom: 1px solid var(--line); }
.whero .whmark { width: 160px; height: auto; filter: drop-shadow(0 18px 28px rgba(30,27,24,.22)); }

/* ---------- лента меню ---------- */
.wcat { padding-top: 56px; scroll-margin-top: calc(var(--wbar-h) + 4px); }
.wch { display: flex; align-items: baseline; gap: 14px; padding-bottom: 14px; margin-bottom: 24px; border-bottom: 1px solid var(--line); }
.wch h2 { font-family: var(--display); font-weight: var(--fw-d); font-size: 34px; line-height: 1.05; letter-spacing: -0.03em; }
.wch span { font-size: 14px; color: var(--muted-2); white-space: nowrap; }
.wgrp { margin-top: 40px; scroll-margin-top: calc(var(--wbar-h) + 24px); }
.wcat > .grid + .wgrp, .wch + .wgrp { margin-top: 0; }
.wcat > .grid + .wgrp { margin-top: 40px; }
.wgrp h3 { font-family: var(--display); font-weight: var(--fw-d); font-size: 20px; letter-spacing: -0.02em; margin-bottom: 16px; }
body.wide .grid { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 34px 20px; }
body.wide .dish { animation: none; opacity: 1; }
body.wide .dish .ph, body.wide .dish [data-open] { cursor: pointer; }
body.wide .dish .ph img { transition: transform .5s var(--ease-out); }
body.wide .dish .n { font-size: 15.5px; margin-top: 13px; }
body.wide .dish .ds { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 5px; font-size: 13.5px; line-height: 1.4; color: var(--muted); }
body.wide .dish .w { margin-top: 5px; }
body.wide .dish .p { font-size: 17px; margin-top: 8px; }
@media (hover: hover) and (pointer: fine) {
  body.wide .dish:hover .ph img { transform: scale(1.045); }
  body.wide .plus:hover { background: #fff; }
}
body.wide .hits { padding: 0; margin-top: 48px; }
body.wide .hits .rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 34px 20px; overflow: visible; margin: 0; padding: 0; }
body.wide .hits .rail .dish { width: auto; }
body.wide .promo { padding: 0; margin-top: 48px; }
body.wide .promo h2, body.wide .hits h2, body.wide .textblock h2 { font-size: 26px; padding: 0; }
body.wide .promo .rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); overflow: visible; padding: 0; }
body.wide .promo .banner { width: auto; }
body.wide .textblock { padding: 0; margin-top: 48px; max-width: 72ch; }
body.wide .homefoot.block { margin: 64px 0 0; }
body.wide .made { margin: 56px 0 8px; }
body.wide .hitsrow { padding: 4px 0 0; }
body.wide.searching .wmain > *:not(.hitsrow) { display: none; }
body.wide.searching .wnav.on { background: transparent; box-shadow: none; color: var(--muted); }
body.wide.searching .wnav i { opacity: 0; }

/* ---------- заказ справа ---------- */
.wcart { position: sticky; top: calc(var(--wbar-h) + 28px); max-height: calc(100vh - var(--wbar-h) - 48px); display: flex; flex-direction: column; border-radius: 22px; background: var(--panel); box-shadow: 0 0 0 1px rgba(30,27,24,.05), 0 24px 50px -32px rgba(30,27,24,.55); }
.wcart .wc-in { display: flex; flex-direction: column; min-height: 0; padding: 0 0 20px; }
.wcart .hd { display: flex; align-items: center; gap: 8px; padding: 20px 20px 6px; }
.wcart .hd h2 { flex: 1; font-family: var(--display); font-weight: var(--fw-d); font-size: 22px; letter-spacing: -0.02em; display: flex; align-items: center; gap: 8px; }
.wcart .wcn { min-width: 26px; height: 26px; padding: 0 8px; border-radius: 13px; background: var(--dot); color: #fff; font-size: 13px; line-height: 26px; text-align: center; letter-spacing: 0; }
.wcart .clear { width: 38px; height: 38px; }
.wcart .wc-x { display: none; width: 38px; height: 38px; border-radius: 50%; place-items: center; background: var(--panel-2); }
.wcart .wc-x svg { width: 18px; height: 18px; }
.wcart .lines { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 20px 0; }
.wcart .line { grid-template-columns: 54px minmax(0, 1fr) auto; gap: 12px; padding: 12px 0; }
.wcart .line img, .wcart .line .noimg { width: 54px; height: 54px; border-radius: 12px; cursor: pointer; }
.wcart .line .n { font-size: 14px; }
.wcart .line .p { font-size: 14px; }
.wcart .stepper.flat { height: 36px; }
.wcart .stepper.flat button { width: 32px; height: 36px; }
.wcart .sum { margin: 10px 20px 0; padding-top: 14px; }
.wcart .sum b { font-size: 24px; }
.wcart .go { padding: 16px 20px 0; }
.wcart .go .btn { height: 54px; }
.wcart .cart-hint { margin: 12px 20px 0; font-size: 13px; }
.wc-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 28px 20px; color: var(--muted); }
.wc-empty svg { width: 40px; height: 40px; color: var(--muted-2); margin-bottom: 6px; }
.wc-empty b { font-family: var(--display); font-weight: var(--fw-d); font-size: 16px; color: var(--ink); }
.wc-empty span { font-size: 13.5px; line-height: 1.45; max-width: 26ch; }
.wcart-back { display: none; }
@media (min-width: 1280px) { body.wide .topbar .cartbtn { display: none; } }
/* до 1280 px заказ выезжает справа по кнопке в шапке */
@media (max-width: 1279px) {
  body.wide .view.wide-menu { grid-template-columns: 208px minmax(0, 1fr); column-gap: 28px; }
  .wcart { position: fixed; top: 12px; right: 12px; bottom: 12px; z-index: 65; width: 380px; max-height: none; transform: translateX(calc(100% + 24px)); visibility: hidden; transition: transform .38s var(--ease-drawer), visibility 0s .38s; }
  body.cart-open .wcart { transform: none; visibility: visible; transition: transform .38s var(--ease-drawer), visibility 0s; }
  .wcart .wc-in { height: 100%; }
  .wcart .wc-x { display: grid; }
  .wcart-back { display: block; position: fixed; inset: 0; z-index: 64; background: rgba(23,20,19,.38); opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.cart-open .wcart-back { opacity: 1; pointer-events: auto; }
}

/* ---------- блюдо окном поверх меню ---------- */
.wmodal { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 32px; }
.wm-back { position: absolute; inset: 0; background: rgba(23,20,19,.5); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: wmFade .2s ease-out both; }
@keyframes wmFade { from { opacity: 0; } }
.wm-box { position: relative; display: flex; flex-direction: column; width: min(600px, 100%); max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); border-radius: 26px; overflow: hidden; background: var(--bg); box-shadow: 0 40px 100px -30px rgba(0,0,0,.6); animation: wmIn .28s var(--ease-out) both; }
@keyframes wmIn { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.wm-x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: 0 8px 20px -10px rgba(0,0,0,.6); transition: transform .14s var(--ease-out); }
.wm-x svg { width: 20px; height: 20px; }
.wm-x:active { transform: scale(.94); }
.wm-scroll { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.wm-scroll .item .photo { margin-top: 0; }
.wm-scroll .item .panel { padding: 0 32px 28px; }
.wm-scroll .item .photo:empty + .panel { padding-top: 64px; }
.wm-scroll .item h1 { font-size: 30px; padding-right: 8px; }
.wm-scroll .also { margin: 0 -32px; padding: 0 32px 6px; }
.wm-box .buybar { position: static; transform: none; width: auto; max-width: none; flex: none; padding: 14px 32px 20px; }
@media (hover: hover) and (pointer: fine) { .wm-x:hover { background: #fff; } }

@media (prefers-reduced-motion: reduce) {
  .wm-box, .wm-back, .splash .wsp-l, .splash .wsp-photo { animation: none; opacity: 1; }
  .wcart, .wcart-back { transition: none; }
  body.wide .dish .ph img { transition: none; }
}
