@font-face{font-family:Manrope;src:url(assets/manrope-cyrillic.woff2) format('woff2');font-weight:200 800;font-display:swap;unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}
@font-face{font-family:Manrope;src:url(assets/manrope-latin.woff2) format('woff2');font-weight:200 800;font-display:swap}
:root{--green:#1f3d2b;--gold:#c9a24a;--bg:#f6f1e7;--ink:#1b1b18;--muted:#5e5a50;--border:#e2daca}*{box-sizing:border-box}body{margin:0;background:var(--bg);font-family:Manrope,system-ui,sans-serif;color:var(--ink)}button,input,textarea{font:inherit}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer;transition:background .15s,transform .15s}button:active:not(:disabled){transform:translateY(1px)}button:disabled{cursor:default;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--gold);outline-offset:3px}a{color:inherit}button{color:inherit}h1,h2,h3,p{margin:0}button{border:0}svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip{position:fixed;top:-80px;z-index:99;background:white;padding:16px}.skip:focus{top:8px}.header{min-height:94px;background:var(--green);color:white;display:flex;gap:32px;align-items:center;padding:20px 36px}.brand{text-decoration:none;display:flex;gap:12px;align-items:center;flex-shrink:0}.logo{width:48px;height:48px;border-radius:14px;background:var(--gold);color:var(--green);display:grid;place-items:center;font-size:26px;font-weight:800}.brand strong{display:block;font-size:23px;line-height:1.2}.brand small{display:block;color:#cfd8cf;font-size:12px;margin-top:5px}.search{height:46px;max-width:440px;min-width:160px;flex:1;background:white;border-radius:12px;display:flex;align-items:center;gap:10px;padding:0 15px;color:var(--muted)}.search svg{width:21px;flex-shrink:0}.search input{background:transparent;border:0;outline:0;width:100%;font-size:15px;min-width:0}.header-actions{display:flex;gap:10px;align-items:center;margin-left:auto}.outline{height:43px;background:transparent;color:white;border:1px solid #839489;border-radius:11px;padding:0 14px;font-size:12px;font-weight:700;white-space:nowrap}.outline:hover{background:#36533f}.table{background:var(--gold);color:var(--ink);font-size:13px;font-weight:800;padding:12px 17px;border-radius:30px;white-space:nowrap}.layout{display:grid;grid-template-columns:210px minmax(0,1fr) 340px;max-width:1680px;margin:auto;align-items:start}.categories{padding:32px 16px 32px 28px;position:sticky;top:0}.eyebrow{font-size:10px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:var(--muted)}.categories>.eyebrow{display:block;padding:0 12px 16px}.category{width:100%;display:flex;justify-content:space-between;align-items:center;height:49px;border-radius:12px;padding:0 14px;background:transparent;font-size:14px;text-align:left;margin-bottom:5px;font-weight:600}.category[aria-pressed=true]{background:var(--green);color:white;font-weight:800}.category:hover:not([aria-pressed=true]){background:#eae3d3}.category span:last-child{opacity:.65;font-size:12px}.category-note{border-top:1px solid var(--border);margin:34px 12px 0;padding-top:24px}.leaf{display:block;color:#8a7a55;font-size:36px;margin-bottom:12px}.category-note strong{font-size:12px;display:block}.category-note p{font-size:11px;line-height:1.9;color:var(--muted);margin-top:7px}main{padding:28px 28px 32px 10px;min-width:0}.welcome{position:relative;overflow:hidden;border:1px solid #dfd4bd;border-radius:18px;background:#eae2ce;padding:25px 28px;margin-bottom:28px}.welcome .eyebrow{color:#6b603e}.welcome h1{font-size:clamp(25px,2.3vw,35px);line-height:1.2;letter-spacing:-.035em;color:var(--green);margin-top:12px;font-weight:800;position:relative;z-index:1}.welcome p{font-size:12px;color:var(--muted);margin-top:12px;position:relative;z-index:1}.welcome-mark{position:absolute;right:16px;top:-35px;color:#d9cdb2;transform:rotate(-14deg);font-size:250px;font-weight:800;line-height:1.2;pointer-events:none}.menu-heading{display:flex;gap:12px;align-items:baseline;flex-wrap:wrap;margin-bottom:20px}.menu-heading h2{font-size:27px;letter-spacing:-.03em}.menu-heading>span{font-size:11px;color:var(--muted)}.products{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.product{border:1px solid #ece5d6;border-radius:17px;background:white;overflow:hidden;display:flex;flex-direction:column;min-width:0}.product.unavailable{opacity:.6}.product-art{height:150px;background:#e6ddc9;display:flex;align-items:center;justify-content:center;color:#8a7a55;position:relative;width:100%;border-radius:0}.product-art svg{width:64px;height:64px;stroke-width:1.1}.product:nth-child(2n) .product-art{background:#ede6d5}.badge{position:absolute;left:12px;top:12px;background:#f7f2e6;border-radius:6px;padding:5px 8px;font-size:9px;font-weight:800;color:#625436}.product-body{padding:15px;display:flex;flex-direction:column;flex:1}.product h3{font-size:16px;font-weight:800;margin-bottom:6px}.product p{font-size:11px;line-height:1.7;color:var(--muted);margin-bottom:14px;min-height:38px}.product-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;margin-top:auto}.price{font-size:13px;font-weight:800;white-space:nowrap}.choose{background:var(--green);color:white;border-radius:9px;min-height:39px;padding:0 11px;font-size:11px;font-weight:800}.choose:hover,.primary:hover{background:#2f513b}.stopped{font-size:10px;color:#8a3b2e;font-weight:700}.menu-footnote{font-size:10px;color:var(--muted);line-height:1.8;margin-top:26px}.cart{background:white;border-left:1px solid var(--border);padding:30px 24px;position:sticky;top:0;min-height:calc(100dvh - 94px);display:flex;flex-direction:column;gap:23px;max-height:100dvh;overflow:auto}.cart h2{font-size:24px;margin-top:5px;letter-spacing:-.03em}.cart-header{display:flex;justify-content:space-between;align-items:center}.mode-switch{display:flex;background:#f1ece1;border-radius:10px;padding:4px;gap:3px}.mode-switch button{flex:1;border-radius:7px;padding:10px 3px;font-size:11px;font-weight:700;background:transparent;white-space:nowrap}.mode-switch button[aria-pressed=true]{background:white;box-shadow:0 1px 4px #1f3d2b14;color:var(--green)}.cart-empty{text-align:center;padding:38px 4px;color:var(--muted)}.cart-empty svg{width:56px;height:56px;color:#b9ac8f;margin-bottom:18px}.cart-empty strong{display:block;font-size:15px;color:var(--ink);margin-bottom:8px}.cart-empty p{font-size:12px;line-height:1.8}.cart-row{padding:16px 0;border-bottom:1px solid #ece5d6}.cart-row h3{font-size:13px}.cart-row p{font-size:11px;color:var(--muted);line-height:1.6;margin:4px 0 10px;overflow-wrap:anywhere}.cart-row-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px}.cart-row-bottom strong{font-size:13px}.stepper{display:inline-flex;align-items:center;background:#f1ece1;border-radius:10px;padding:3px;gap:2px}.stepper button{background:white;border-radius:7px;width:30px;height:30px;font-size:18px}.stepper span{width:27px;text-align:center;font-size:13px;font-weight:800}.order-comment{display:flex;flex-direction:column;gap:9px;font-size:12px;font-weight:700}.order-comment textarea{resize:vertical;min-height:77px;max-height:180px;border:1px solid var(--border);border-radius:11px;background:#faf7f0;padding:12px;font-size:12px}.cart-bottom{margin-top:auto;display:flex;flex-direction:column;gap:16px}.total{display:flex;align-items:center;justify-content:space-between;font-weight:700}.total strong{font-size:26px;font-weight:800}.primary{border-radius:12px;background:var(--green);color:white;min-height:52px;padding:13px 20px;font-size:14px;font-weight:800;width:100%}.draft-note{text-align:center;font-size:10px;line-height:1.7;color:var(--muted)}.empty-state{padding:50px 20px;background:#efe9dc;border-radius:16px;text-align:center;font-size:14px;color:var(--muted);line-height:1.8}.empty-state strong{display:block;color:var(--ink);font-size:18px;margin-bottom:10px}[hidden]{display:none!important}.mobile-cart,.mobile-close{display:none}.icon-button{width:40px;height:40px;flex-shrink:0;border-radius:50%;background:#f1ece1;font-size:27px;display:grid;place-items:center}.mobile-close{display:none}dialog{border:0;border-radius:22px;padding:0;max-width:900px;width:calc(100% - 36px);background:white;color:var(--ink);max-height:90dvh;overflow:auto;box-shadow:0 24px 100px #0003}dialog::backdrop{background:#14181299;backdrop-filter:blur(3px)}body:has(dialog[open]){overflow:hidden}.dialog-close{position:absolute;right:16px;top:16px;z-index:2}.dish-layout{display:grid;grid-template-columns:36% 1fr}.dish-art{background:#e6ddc9;color:#8a7a55;display:grid;place-items:center;min-height:440px}.dish-art svg{width:130px;height:130px;stroke-width:1}.dish-details{padding:34px;display:flex;flex-direction:column;gap:22px}.dish-details h2{font-size:27px;padding-right:28px}.dish-details>p{font-size:13px;line-height:1.8;color:var(--muted);margin-top:-12px}fieldset{margin:0;padding:0;border:0}legend{font-size:14px;font-weight:800;margin-bottom:12px}.sizes{display:flex;gap:8px}.option{flex:1;border:1px solid var(--border);border-radius:11px;padding:12px 6px;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:12px;cursor:pointer}.option:has(input:checked){border-color:var(--green);background:#eef3ee;box-shadow:inset 0 0 0 1px var(--green)}.option input{accent-color:var(--green)}.extra{display:flex;align-items:center;gap:10px;font-size:12px;padding:9px 0}.extra input{width:18px;height:18px;accent-color:var(--green)}.extra span{margin-left:auto;white-space:nowrap}.field{display:flex;flex-direction:column;gap:9px;font-size:13px;font-weight:700}input:not([type=search],[type=radio],[type=checkbox]){width:100%;border:1px solid var(--border);border-radius:10px;padding:12px;background:#faf7f0;min-height:46px}.dish-actions{display:flex;align-items:center;gap:12px}.dish-actions .primary{font-size:12px}.checkout-body{padding:38px;display:flex;flex-direction:column;gap:20px}#checkout-dialog,#saved-dialog,#service-dialog{max-width:550px}.checkout-body h2{padding-right:28px;font-size:26px}.checkout-body p{line-height:1.8;font-size:13px}.info{padding:14px 16px;background:#f5efdf;border-radius:12px;font-size:12px!important;color:#645739}#checkout-form,#customer-fields,#address-fields{display:flex;flex-direction:column;gap:16px}#checkout-form label{display:flex;flex-direction:column;gap:8px;font-size:12px;font-weight:700}.address-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.summary-line{display:flex;justify-content:space-between;gap:15px;margin:13px 0;font-size:12px}.summary-line strong{white-space:nowrap}.summary-total{border-top:1px solid var(--border);padding-top:16px;font-size:17px}.saved-icon{width:60px;height:60px;border-radius:50%;display:grid;place-items:center;font-size:30px;background:#edf3ec;color:var(--green)}pre{font:12px/1.9 Manrope,system-ui;white-space:pre-wrap;overflow-wrap:anywhere;background:#faf7f0;border-radius:12px;padding:18px;margin:0}.secondary{padding:12px;background:#f1ece1;border-radius:12px;font-weight:700}.toast{position:fixed;bottom:28px;left:50%;transform:translateX(-50%);border-radius:12px;padding:14px 22px;background:var(--green);color:white;font-size:13px;z-index:100;box-shadow:0 4px 20px #0002;pointer-events:none;opacity:0;transition:opacity .2s;max-width:90vw}.toast.visible{opacity:1}
@media(min-width:1550px){.layout{grid-template-columns:240px minmax(0,1fr) 380px}.product-art{height:185px}.product-body{padding:20px}.product h3{font-size:18px}.product p{font-size:13px}.price{font-size:16px}.choose{font-size:13px}.cart{padding:32px}}
@media(max-width:1200px){.header{padding:18px 24px;gap:22px}.header-actions .outline{display:none}.layout{grid-template-columns:175px minmax(0,1fr) 300px}.categories{padding-left:16px}.cart{padding:26px 18px}.products{grid-template-columns:repeat(2,minmax(0,1fr))}main{padding-right:20px}}
@media(max-width:900px){.layout{grid-template-columns:170px minmax(0,1fr)}.cart{display:none;position:fixed;right:0;top:0;bottom:0;max-height:100dvh;width:390px;z-index:20;box-shadow:-20px 0 80px #0003;padding:26px}.cart.is-open{display:flex}.mobile-close{display:grid}.mobile-cart{display:flex;position:fixed;bottom:18px;left:50%;transform:translateX(-50%);width:calc(100% - 44px);max-width:500px;justify-content:space-between;align-items:center;z-index:10;box-shadow:0 6px 26px #1f3d2b33}.mobile-cart:active:not(:disabled){transform:translateX(-50%)}.mobile-cart b{display:inline-grid;place-items:center;background:#ffffff24;border-radius:7px;margin-left:9px;min-width:24px;height:24px;font-size:12px}main{padding-bottom:110px}.products{grid-template-columns:repeat(3,minmax(0,1fr))}.product-art{height:130px}.welcome h1{font-size:32px}.header-actions{margin-left:0}.header .search{max-width:none}.toast{bottom:90px}}
@media(max-width:700px){.header{padding:18px 16px;flex-wrap:wrap;gap:18px}.brand{flex:1}.brand strong{font-size:21px}.brand small{font-size:10px}.logo{width:43px;height:43px;border-radius:12px}.header-actions{margin-left:auto}.table{font-size:11px;padding:11px 12px}.search{order:3;flex-basis:100%;height:44px}.layout{display:block}.categories{position:sticky;top:0;z-index:5;background:var(--bg);padding:12px 0;border-bottom:1px solid var(--border)}.categories>.eyebrow,.category-note{display:none}#categories{display:flex;gap:7px;overflow:auto;padding:0 16px;scrollbar-width:none}.category{width:auto;flex-shrink:0;margin:0;height:40px;padding:0 16px;gap:12px;font-size:12px;border:1px solid var(--border);background:#fff8}.category span:last-child{font-size:10px}main{padding:18px 16px 115px}.welcome{padding:22px;margin-bottom:24px}.welcome .eyebrow{font-size:8px}.welcome h1{font-size:30px}.welcome p{font-size:10px}.welcome-mark{font-size:220px;right:0;top:-15px}.menu-heading{gap:8px;margin-bottom:16px}.menu-heading h2{font-size:24px}.menu-heading>span{font-size:10px}.products{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.product{border-radius:14px}.product-art{height:133px}.product-art svg{width:56px;height:56px}.product-body{padding:12px}.product h3{font-size:14px}.product p{font-size:10px;line-height:1.6;min-height:48px;margin-bottom:9px}.product-footer{align-items:stretch;flex-direction:column;gap:9px}.price{font-size:13px}.choose{width:100%;font-size:11px;min-height:36px}.badge{font-size:8px;left:9px;top:9px;padding:4px 6px}.stopped{min-height:36px;display:flex;align-items:center}.cart{width:100%;border:0;padding:22px 20px}.dish-layout{display:block}.dish-art{min-height:190px}.dish-art svg{width:100px;height:100px}.dish-details{padding:24px;gap:20px}.dish-details h2{font-size:25px}.dish-details>p{font-size:12px}dialog{max-height:94dvh;width:calc(100% - 20px);border-radius:18px}.checkout-body{padding:32px 22px}.dish-actions{gap:8px}.dish-actions .primary{padding:12px;font-size:11px}.dish-actions .stepper button{width:27px}.dish-actions .stepper span{width:22px}.menu-footnote{font-size:9px}.mobile-cart{width:calc(100% - 32px);bottom:calc(12px + env(safe-area-inset-bottom));font-size:13px}.empty-state{padding:38px 20px}.empty-state strong{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

.product-art img{width:100%;height:100%;object-fit:cover}.dish-art img{width:100%;height:100%;max-height:500px;object-fit:cover}.order-timeline p{font-size:12px;padding:8px 0;border-bottom:1px solid var(--border)}
.guest-services{display:none;gap:8px;margin-bottom:20px}.guest-services button{flex:1;padding:12px 8px;font-size:12px}.payment-options{display:flex;flex-wrap:wrap;gap:12px;padding:0;margin:0;border:0}.payment-options legend{font-size:13px;font-weight:700;margin-bottom:10px}.payment-options label{display:flex;align-items:center;gap:8px;font-size:12px;background:#f6f1e7;padding:12px;border-radius:10px}.payment-options input{accent-color:var(--green)}#empty>.secondary{margin-top:15px}
@media(max-width:1200px){.guest-services{display:flex}}
/* Логотип кафе вместо буквы «М» */
.logo{background:#fdfbf3;overflow:hidden;padding:0}.logo img{width:100%;height:100%;object-fit:cover;display:block}
.mode-switch button[hidden]{display:none}

/* Пока меню грузится: надпись вместо пустого места; пустая плашка стола не показывается */
.loading-note{grid-column:1/-1;padding:40px 10px;text-align:center;color:var(--muted)}
.table:empty{display:none}

/* ===== «Мои заказы» под корзиной ===== */
.my-orders{display:flex;flex-direction:column;gap:6px;margin-top:14px;border-top:1px solid var(--border);padding-top:12px}
.my-orders h3{margin:0 0 4px;font-size:13px;letter-spacing:.04em;text-transform:uppercase;color:var(--muted)}
.my-order{display:flex;justify-content:space-between;align-items:center;gap:10px;width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#fff;font:inherit;font-size:13px;cursor:pointer;text-align:left}
.my-order strong{font-size:12px;padding:3px 8px;border-radius:20px;background:#e5f0e7;color:var(--green);white-space:nowrap}
.my-order.status-new strong{background:#f4eace;color:#88671c}
.my-order.status-completed strong{background:#eceae4;color:var(--muted)}
.my-order.status-cancelled strong{background:#f8e1dc;color:#8e2a1d}
/* Окно заказа: причина отмены и время этапов */
.order-state.cancelled{background:#f8e1dc;color:#8e2a1d}
.order-timeline p{display:flex;justify-content:space-between;gap:10px}
/* ===== Стол освобождён: меню только для просмотра ===== */
.view-only-note{display:flex;flex-direction:column;gap:4px;margin:14px 0;padding:14px 16px;border-radius:14px;background:#f4eace;border:1px solid #e3d3a6;color:#6b5317;font-size:14px;line-height:1.5}
.view-only-note strong{font-size:16px;color:#4a3a10}
body.view-only #cart-items,body.view-only .order-comment,body.view-only .total,body.view-only #checkout,body.view-only .draft-note,
body.view-only .mode-switch,body.view-only .dish-actions,body.view-only .choose,body.view-only [data-service],body.view-only .guest-services{display:none!important}
body.view-only #open-cart>*{display:none}
body.view-only #open-cart::after{content:'Мои заказы';font-weight:800}
body.view-only .cart-bottom{margin-top:0}body.view-only .my-orders{border-top:0;margin-top:0;padding-top:0}body.view-only .my-orders h3{display:none}
/* ===== Филиалы: гость без QR выбирает филиал в зелёной шапке — меняет весь сайт ===== */
.branch-pill{display:flex;gap:4px;padding:4px;border-radius:14px;background:#ffffff1f;flex:0 0 auto;margin-left:auto}
.branch-pill button{border:0;background:transparent;color:#e8efe8;border-radius:10px;padding:8px 16px;min-width:110px;font:inherit;font-size:13px;font-weight:700;min-height:36px;white-space:nowrap;cursor:pointer}
.branch-pill button:hover{background:#ffffff14}
.branch-pill button[aria-pressed=true]{background:var(--gold);color:var(--green)}
.branch-pill button:focus-visible{outline:3px solid var(--gold);outline-offset:2px}
@media(max-width:700px){.branch-pill{order:5;width:100%;margin:0}.branch-pill button{flex:1;min-width:0}}

/* «Заказать в Telegram» на странице стола */
.tg-order{display:flex;align-items:center;justify-content:center;gap:8px;margin:-8px 0 20px;padding:12px;border-radius:12px;background:#2AABEE;color:white;font-weight:800;font-size:13px;text-decoration:none}.tg-order:hover{background:#1e96d4}.tg-order:before{content:'';width:18px;height:18px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M21.5 4.3 18.4 19c-.2 1-.9 1.3-1.7.8l-4.7-3.5-2.3 2.2c-.3.3-.5.5-1 .5l.3-4.8 8.8-7.9c.4-.3-.1-.5-.6-.2L6.3 13 1.7 11.6c-1-.3-1-1 .2-1.5L20.1 3c.8-.3 1.6.2 1.4 1.3Z'/%3E%3C/svg%3E") center/contain no-repeat}
body.view-only .tg-order{display:none!important}
