/* Экраны как в мини-аппе: Главная / Меню / Мерч / О нас / Профиль, нижняя навигация, ассистент */
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.view[hidden]{display:none}
/* Место под нижнюю навигацию — внутри синего футера, а не отступом body (иначе внизу светлая полоса) */
.telegram-footer{padding-bottom:calc(178px + env(safe-area-inset-bottom))}
@media(max-width:1050px){.sequence-intro h2{font-size:7.6vw}}

/* Шапка: логотип + профиль. Разделы — только в нижней навигации, как в мини-аппе */
.header-actions{padding:0;background:none;border:0;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.profile-button{box-shadow:0 7px 28px #26202112}
.profile-button{display:flex;align-items:center;gap:10px;min-height:47px;padding:5px 16px 5px 5px;border-radius:100px;background:#fff;border:1px solid #e7e1de;font-size:13px;font-weight:500;white-space:nowrap}
.profile-button:hover{border-color:#0a0505}
.profile-initial{display:grid;place-items:center;width:37px;height:37px;border-radius:50%;background:#f1ede8;color:#0a0505;overflow:hidden;font-size:15px;font-weight:650}
.profile-initial svg{width:20px;height:20px}
.profile-initial img{width:100%;height:100%;object-fit:cover}
.profile-button[aria-current=page]{background:#0a0505;color:#fafafa;border-color:#0a0505}

/* Нижняя навигация */
.bottom-nav{position:fixed;z-index:45;left:50%;bottom:calc(16px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;gap:4px;padding:6px;background:#0a0505eb;border-radius:100px;box-shadow:0 14px 40px #0a050538;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}
.bottom-nav a{display:flex;align-items:center;gap:9px;padding:12px 20px;border-radius:100px;color:#fafafab3;font-size:13px;font-weight:500;transition:background .25s,color .25s}
.bottom-nav a:hover{color:#fafafa}
.bottom-nav a[aria-current=page]{background:#da0505;color:#fff}
.bottom-nav svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round;stroke-linecap:round;flex-shrink:0}

/* Корзина, тост и ассистент не должны перекрывать навигацию */
.cart-float{bottom:calc(92px + env(safe-area-inset-bottom));right:30px}
#shop-toast{bottom:calc(160px + env(safe-area-inset-bottom))}

/* ── Главная: welcome ─────────────────────────────────────────── */
.welcome{padding:136px var(--pad) 90px;background:#fafafa}
.welcome-head{display:flex;justify-content:space-between;align-items:flex-end;gap:30px;margin-bottom:36px}
.welcome-head>p{flex-shrink:0}
.welcome h1{font-size:clamp(46px,6vw,96px);line-height:.95;letter-spacing:-.075em;font-weight:700;margin:0}
.welcome h1 em{color:#da0505;font-style:normal}
.welcome-head>p{font-size:16px;line-height:1.6;color:#595353;margin:0 0 8px;text-align:right}
.promo-rail{position:relative}
.promo-track{display:grid;grid-auto-flow:column;grid-auto-columns:min(78%,980px);gap:18px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding-bottom:4px;overscroll-behavior-x:contain}
.promo-track::-webkit-scrollbar{display:none}
.promo-card{scroll-snap-align:start;position:relative;min-height:420px;border-radius:28px;overflow:hidden;background:#0a0505;color:#fafafa;display:flex;flex-direction:column;justify-content:flex-end;padding:34px;text-align:left;border:0;font:inherit;cursor:pointer;isolation:isolate}
.promo-card img,.promo-card video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:-2;transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.promo-card:hover img{transform:scale(1.04)}
.promo-card:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,#0a050500 35%,#0a0505cc 100%)}
.promo-card.is-plain:after{display:none}
.promo-card.is-art:after{background:linear-gradient(180deg,#0a050500 75%,#0a050566 100%)}
.promo-badge{position:absolute;top:24px;left:24px;font-size:11px;letter-spacing:.12em;font-weight:600;background:#fafafa;color:#0a0505;padding:8px 13px;border-radius:30px}
.promo-badge.hot{background:#da0505;color:#fff}
.promo-card h3{font-size:clamp(28px,3.4vw,52px);line-height:1;letter-spacing:-.06em;margin:0 0 12px;font-weight:650;max-width:15ch}
.promo-card p{margin:0;font-size:15px;line-height:1.5;max-width:52ch;opacity:.86;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.promo-cta{display:inline-flex;margin-top:20px;font-size:13px;font-weight:500;padding:11px 18px;border-radius:30px;background:#fafafa;color:#0a0505;align-self:flex-start}
.promo-card.red{background:#da0505}
.promo-card.cream{background:#ece7e0;color:#0a0505}
.promo-card.cream .promo-cta{background:#0a0505;color:#fafafa}
.promo-card.blue{background:#159fe5}
.promo-word{position:absolute;right:-.06em;top:.05em;font-size:clamp(90px,15vw,220px);font-weight:800;letter-spacing:-.08em;line-height:.8;opacity:.12;z-index:-1;white-space:nowrap}
.promo-controls{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:22px}
.promo-arrow{width:48px;height:48px;border-radius:50%;border:1px solid #d9d6d1;background:transparent;font-size:18px}
.promo-arrow:hover{background:#0a0505;color:#fafafa;border-color:#0a0505}
.promo-dots{display:flex;gap:8px;flex-wrap:wrap;justify-content:center}
.promo-dots button{width:9px;height:9px;padding:0;border-radius:9px;border:0;background:#d9d6d1;transition:width .3s,background .3s}
.promo-dots button[aria-current=true]{width:30px;background:#da0505}
.popular{margin-top:48px}
.popular[hidden]{display:none}
.popular-head{display:flex;justify-content:space-between;align-items:baseline;gap:20px;margin-bottom:18px}
.popular-head h2{font-size:clamp(28px,3.2vw,44px);letter-spacing:-.06em}
.popular-head a{font-size:14px;font-weight:500;white-space:nowrap;border-bottom:1px solid currentColor}
.popular-row{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(210px,1fr);gap:14px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x proximity;padding-bottom:4px}
.popular-row::-webkit-scrollbar{display:none}
.pop-card{scroll-snap-align:start;background:#f1ede8;border-radius:22px;padding:12px 12px 14px;display:flex;flex-direction:column;min-width:0}
.pop-photo{aspect-ratio:1;border-radius:16px;background:#e9e5df;display:grid;place-items:center;overflow:hidden}
.pop-photo img{width:92%;height:92%;object-fit:contain;mix-blend-mode:multiply;transition:transform .5s cubic-bezier(.2,.7,.3,1)}
.pop-card:hover .pop-photo img{transform:translateY(-6px) rotate(-3deg) scale(1.05)}
.pop-card h3{font-size:17px;letter-spacing:-.03em;margin:12px 4px 4px;line-height:1.2}
.pop-kcal{font-size:12px;color:#b40404;margin:0 4px}
.pop-buy{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:auto 4px 0;padding-top:10px}
.pop-buy strong{font-size:15px;font-weight:600}
.pop-add{width:40px;height:40px;border-radius:50%;border:0;background:#da0505;color:#fff;font-size:22px;line-height:1;flex-shrink:0}
.pop-add:hover{background:#b40404}
.quick-tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-top:40px}
.quick-tile{display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-height:170px;padding:22px;border-radius:22px;background:#f1ede8;border:0;text-align:left;font:inherit;color:#0a0505;transition:transform .25s,background .25s}
.quick-tile:hover{transform:translateY(-4px)}
.quick-tile span{font-size:12px;letter-spacing:.1em;opacity:.6}
.quick-tile strong{margin-top:auto;font-size:24px;letter-spacing:-.05em;font-weight:600;line-height:1.05}
.quick-tile small{font-size:13px;opacity:.7}
.tile-red{background:#da0505;color:#fff}
.tile-dark{background:#0a0505;color:#fafafa}

/* ── Карточки меню: кнопка «подробнее» и мини-КБЖУ ───────────── */
.product-open{display:block;width:100%;padding:0;border:0;background:none;text-align:left;font:inherit;color:inherit;cursor:pointer}
.product-meta{display:flex;gap:6px;flex-wrap:wrap;margin:-4px 0 14px;min-height:24px}
.product-meta span{font-size:12px;padding:4px 9px;border-radius:20px;background:#ecebe5;color:#4d4b45}
.product-meta .kcal{background:#fde8e3;color:#b40404}

/* ── Диалог блюда ─────────────────────────────────────────────── */
dialog.product-dialog,dialog.news-dialog{inset:0;margin:auto;height:fit-content;width:min(920px,calc(100% - 32px));max-height:calc(100dvh - 40px);padding:0;border:0;border-radius:30px;background:#fafafa;color:#0a0505;overflow:auto}
dialog.news-dialog{width:min(720px,calc(100% - 32px))}
.product-dialog::backdrop,.news-dialog::backdrop{background:#0a050599;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.pd-inner{display:grid;grid-template-columns:1fr 1fr}
.pd-photo{position:relative;background:#eeede8;min-height:420px;display:grid;place-items:center;overflow:hidden}
.pd-photo img,.pd-photo video{width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply;position:absolute;inset:0}
.pd-photo video{object-fit:cover;mix-blend-mode:normal}
.pd-body{padding:40px 36px 34px;display:flex;flex-direction:column;gap:18px}
.pd-close,.nd-close{position:absolute;top:16px;right:16px;width:44px;height:44px;border-radius:50%;border:0;background:#fafafa;font-size:24px;z-index:2;box-shadow:0 4px 18px #0a050520}
.pd-body .eyebrow{margin:0}
.pd-body h2{font-size:clamp(34px,4vw,54px);line-height:1;letter-spacing:-.06em}
.pd-desc{font-size:15px;line-height:1.6;color:#4d4b45;margin:0}
.pd-desc.muted{color:#8a877f;font-size:14px}
.pd-nutrition{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:0}
.pd-nutrition div{background:#f1ede8;border-radius:16px;padding:14px 10px;text-align:center}
.pd-nutrition dt{font-size:20px;font-weight:600;letter-spacing:-.04em}
.pd-nutrition dd{margin:4px 0 0;font-size:12px;color:#6b6963}
.pd-nutrition .kcal{background:#da0505;color:#fff}
.pd-nutrition .kcal dd{color:#ffe1db}
.pd-facts{display:flex;gap:8px;flex-wrap:wrap;font-size:13px;color:#4d4b45}
.pd-facts span{border:1px solid #dedcd5;border-radius:20px;padding:6px 12px}
.pd-buy{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:18px;border-top:1px solid #e3e0da}
.pd-buy strong{font-size:24px;font-weight:600;letter-spacing:-.03em}
.pd-add{border:0;border-radius:40px;background:#da0505;color:#fff;padding:16px 24px;font-size:15px;font-weight:500}
.pd-add:hover{background:#b40404}
.pd-add[disabled]{background:#cfcbc4;cursor:not-allowed}
a.pd-add{display:inline-flex}

/* ── Новости ──────────────────────────────────────────────────── */
.nd-inner{position:relative}
.nd-inner img{width:100%;max-height:440px;object-fit:cover;display:block}
.nd-body{padding:32px 36px 38px}
.nd-body h2{font-size:clamp(30px,4vw,48px);letter-spacing:-.06em;line-height:1.05;margin:8px 0 18px}
.nd-body p{white-space:pre-line;font-size:16px;line-height:1.65;margin:0;color:#3c3a35}
.nd-body time{font-size:12px;letter-spacing:.1em;color:#8a877f}

/* ── Мерч ─────────────────────────────────────────────────────── */
.merch{padding-top:140px;background:#f8f7f3}
.merch-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 24px;border-top:1px solid #d8d6cf;padding-top:36px}
.merch-card{display:flex;flex-direction:column}
.merch-card .product-photo{aspect-ratio:1}
.merch-card h3{font-size:24px;letter-spacing:-.045em;margin:18px 0 6px}
.merch-card .product-buy{margin-top:12px}
.merch-empty{grid-column:1/-1;font-size:16px;color:#6b6963}

/* ── О нас и карта ────────────────────────────────────────────── */
.about{padding-top:140px;display:grid;grid-template-columns:1.1fr 1fr;gap:30px 60px;align-items:end}
.about-hero h2{font-size:clamp(52px,8vw,128px);line-height:.95;letter-spacing:-.075em}
.about-story p{font-size:17px;line-height:1.65;color:#3c3a35;margin:0 0 16px}
.about-stats{grid-column:1/-1;display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:30px 0 0}
.about-stats div{border-top:1px solid #0a0505;padding-top:18px}
.about-stats dt{font-size:clamp(46px,6vw,90px);font-weight:650;letter-spacing:-.07em;line-height:1;color:#da0505}
.about-stats dd{margin:8px 0 0;font-size:14px;color:#595353}
.branches{padding-top:40px}
.branches-head{margin-bottom:30px}
.branches-layout{display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:stretch}
.branch-map{min-height:520px;border-radius:28px;overflow:hidden;background:#ece7e0;position:relative}
.branch-map>ymaps,.branch-map ymaps{border-radius:inherit}
.map-fallback{position:absolute;inset:0;display:grid;place-items:center;margin:0;color:#6b6963;font-size:14px;padding:20px;text-align:center}
.branch-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;max-height:520px;overflow:auto}
.branch-card{border:1px solid #e3e0da;background:#fff;border-radius:22px;padding:20px 22px;cursor:pointer;transition:border-color .2s,box-shadow .2s}
.branch-card:hover,.branch-card.active{border-color:#0a0505;box-shadow:0 10px 30px #0a050512}
.branch-card h3{font-size:20px;letter-spacing:-.04em;margin:0 0 6px;display:flex;justify-content:space-between;gap:10px;align-items:baseline}
.branch-status{font-size:12px;font-weight:500;padding:4px 10px;border-radius:20px;background:#e5f6ea;color:#18793a;white-space:nowrap;letter-spacing:0}
.branch-status.closed{background:#f3eeee;color:#8a2a2a}
.branch-card p{margin:0 0 4px;font-size:14px;color:#4d4b45;line-height:1.45}
.branch-actions{display:flex;gap:8px;margin-top:14px;flex-wrap:wrap}
.branch-actions a{font-size:13px;padding:9px 14px;border-radius:30px;border:1px solid #dedcd5}
.branch-actions a:first-child{background:#0a0505;color:#fafafa;border-color:#0a0505}
.contacts{padding-top:70px}
.contacts-title{margin-bottom:30px}
.contact-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}
.contact-grid>*{display:flex;flex-direction:column;gap:10px;padding:26px;border-radius:22px;background:#f1ede8;border:0;text-align:left;font:inherit;color:inherit;transition:transform .25s}
.contact-grid>*:hover{transform:translateY(-4px)}
.contact-grid small{font-size:13px;color:#6b6963}
.contact-grid strong{font-size:22px;letter-spacing:-.04em;font-weight:600}
.contact-grid button{background:#da0505;color:#fff}
.contact-grid button small{color:#ffe1db}

/* ── Профиль ──────────────────────────────────────────────────── */
.profile{padding-top:140px;min-height:70vh}
.profile h2{margin-bottom:36px}
.profile-loading{color:#6b6963}
.profile-card{display:grid;grid-template-columns:auto 1fr auto;gap:24px;align-items:center;padding:28px;border-radius:28px;background:#fff;border:1px solid #e3e0da}
.profile-avatar{width:92px;height:92px;border-radius:50%;background:#da0505;color:#fff;display:grid;place-items:center;font-size:36px;font-weight:650;overflow:hidden}
.profile-avatar img{width:100%;height:100%;object-fit:cover}
.profile-card h3{font-size:32px;letter-spacing:-.05em;margin:0 0 6px}
.profile-card p{margin:0;color:#595353;font-size:14px;line-height:1.6}
.profile-card .warn{color:#b40404}
.profile-actions{display:flex;flex-direction:column;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:48px;padding:12px 22px;border-radius:40px;border:1px solid #d9d6d1;background:#fff;font:inherit;font-size:14px;font-weight:500;color:#0a0505;cursor:pointer;white-space:nowrap}
.btn:hover{border-color:#0a0505}
.btn-red{background:#da0505;border-color:#da0505;color:#fff}
.btn-red:hover{background:#b40404;border-color:#b40404}
.btn-dark{background:#0a0505;border-color:#0a0505;color:#fafafa}
.profile-grid{display:grid;grid-template-columns:1fr 1.3fr;gap:24px;margin-top:24px;align-items:start}
.profile-panel{padding:28px;border-radius:28px;background:#f1ede8}
.profile-panel h3{font-size:22px;letter-spacing:-.04em;margin:0 0 18px}
.profile-form{display:flex;flex-direction:column;gap:14px}
.profile-form label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:#595353}
.profile-form input,.profile-form select,.review-card textarea,.review-card input{font:inherit;font-size:15px;padding:13px 15px;border-radius:14px;border:1px solid #d9d6d1;background:#fff;color:#0a0505}
.profile-form .form-status{min-height:20px;font-size:13px;margin:0;color:#18793a}
.order-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.order-list li{background:#fff;border-radius:18px;padding:16px 18px;display:grid;grid-template-columns:1fr auto;gap:6px 14px}
.order-list strong{font-size:15px}
.order-list small{color:#6b6963;font-size:13px}
.order-list .order-items{grid-column:1/-1;font-size:13px;color:#4d4b45}
.order-status{font-size:12px;padding:4px 10px;border-radius:20px;background:#ecebe5;justify-self:end;align-self:start}
.login-card{display:grid;grid-template-columns:1.1fr 1fr;gap:30px;padding:36px;border-radius:30px;background:#0a0505;color:#fafafa}
.login-card h3{font-size:clamp(30px,3.6vw,48px);letter-spacing:-.06em;line-height:1.02;margin:0 0 16px}
.login-card h3 em{color:#ff4b3a;font-style:normal}
.login-card ul{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:12px;font-size:15px;line-height:1.5;color:#e9e3dd}
.login-card li:before{content:'✳';color:#da0505;margin-right:10px}
.login-action{display:flex;flex-direction:column;justify-content:center;gap:16px;background:#1d1717;border-radius:22px;padding:28px}
.login-action p{margin:0;font-size:14px;line-height:1.55;color:#cfc8c2}
.login-action small{font-size:12px;color:#a59d97;line-height:1.5}
.login-action small a{text-decoration:underline}
.tg-widget{min-height:44px}

/* ── AI-ассистент ─────────────────────────────────────────────── */
.assistant-fab{position:fixed;z-index:46;right:24px;bottom:calc(16px + env(safe-area-inset-bottom));display:flex;align-items:center;gap:10px;height:58px;padding:0 22px 0 8px;border-radius:40px;border:0;background:#fafafa;color:#0a0505;box-shadow:0 12px 36px #0a050530,0 0 0 1px #0a05050f;font-size:14px;font-weight:500}
.assistant-fab .assistant-spark{width:42px;height:42px}
.assistant-fab:hover .assistant-spark{transform:rotate(90deg)}
.assistant-spark{display:grid;place-items:center;width:38px;height:38px;border-radius:50%;background:#da0505;color:#fff;font-size:20px;flex-shrink:0;transition:transform .4s}
.assistant-open .assistant-fab{display:none}
.assistant{position:fixed;z-index:60;right:24px;bottom:calc(16px + env(safe-area-inset-bottom));width:min(410px,calc(100% - 32px));height:min(640px,calc(100dvh - 120px));display:flex;flex-direction:column;background:#fafafa;border-radius:28px;box-shadow:0 30px 80px #0a050540,0 0 0 1px #0a050512;overflow:hidden}
.assistant[hidden]{display:none}
.assistant-head{display:flex;align-items:center;gap:12px;padding:16px 16px 14px 18px;background:#0a0505;color:#fafafa}
.assistant-head div{display:flex;flex-direction:column;flex:1}
.assistant-head strong{font-size:16px}
.assistant-head small{font-size:12px;color:#bcb4ae}
.assistant-close{width:38px;height:38px;border-radius:50%;border:0;background:#2a2323;color:#fafafa;font-size:22px}
.assistant-log{flex:1;overflow-y:auto;padding:18px 16px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.msg{max-width:86%;padding:11px 15px;border-radius:20px;font-size:14px;line-height:1.5;white-space:pre-line;overflow-wrap:anywhere}
.msg.bot{align-self:flex-start;background:#f1ede8;border-bottom-left-radius:6px}
.msg.user{align-self:flex-end;background:#da0505;color:#fff;border-bottom-right-radius:6px}
.msg.error{background:#fff1ef;color:#8a2a2a}
.msg.typing{color:#8a877f}
.msg.typing:after{content:'…';animation:dots 1s steps(3) infinite}
@keyframes dots{0%{content:'.'}50%{content:'..'}100%{content:'...'}}
.assistant-chips{display:flex;gap:6px;overflow-x:auto;padding:0 16px 10px;scrollbar-width:none}
.assistant-chips::-webkit-scrollbar{display:none}
.assistant-chips button{white-space:nowrap;border:1px solid #dedcd5;background:#fff;border-radius:30px;padding:8px 13px;font-size:13px}
.assistant-chips button:hover{border-color:#0a0505}
.assistant-chips [data-review-open]{background:#0a0505;color:#fafafa;border-color:#0a0505}
.assistant-form{display:flex;gap:8px;padding:10px 12px calc(12px + env(safe-area-inset-bottom) * 0);border-top:1px solid #e7e3dd;background:#fff}
.assistant-form textarea{flex:1;resize:none;border:0;font:inherit;font-size:15px;padding:10px 6px;max-height:110px;background:transparent;color:#0a0505}
.assistant-form textarea:focus{outline:none}
.assistant-form button{width:44px;height:44px;border-radius:50%;border:0;background:#da0505;color:#fff;font-size:20px;align-self:flex-end}
.assistant-form button[disabled]{background:#cfcbc4}
.review-card{align-self:stretch;background:#fff;border:1px solid #e3e0da;border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:10px}
.review-card strong{font-size:15px}
.review-card textarea{min-height:84px;resize:vertical;font-size:14px}
.review-card input{font-size:14px;padding:11px 13px}
.stars{display:flex;gap:4px}
.stars button{width:40px;height:40px;border:0;background:#f1ede8;border-radius:12px;font-size:20px;color:#cfc8c2;padding:0}
.stars button[aria-pressed=true]{background:#fff4d6;color:#f2a20c}
.review-card .review-status{font-size:13px;margin:0;min-height:18px;color:#8a2a2a}
.review-done{align-self:stretch;background:#e5f6ea;color:#18793a;border-radius:18px;padding:14px 16px;font-size:14px;line-height:1.5}

/* ── Адаптив ──────────────────────────────────────────────────── */
@media(max-width:1050px){
  .quick-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
  .about{grid-template-columns:1fr}
  .branches-layout{grid-template-columns:1fr}
  .branch-list{max-height:none}
  .branch-map{min-height:420px}
  .merch-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .profile-grid{grid-template-columns:1fr}
  .login-card{grid-template-columns:1fr}
}
@media(max-width:650px){
  .telegram-footer{padding-bottom:calc(171px + env(safe-area-inset-bottom))}
  .profile-button{min-height:40px;padding:4px 12px 4px 4px;font-size:12px;gap:8px}
  .profile-initial{width:32px;height:32px}
  .bottom-nav{left:0;right:0;bottom:0;transform:none;border-radius:22px 22px 0 0;justify-content:space-around;padding:6px 6px calc(6px + env(safe-area-inset-bottom));gap:0;background:#0a0505f2}
  .bottom-nav a{flex-direction:column;gap:4px;padding:8px 6px;font-size:11px;flex:1;border-radius:16px}
  .bottom-nav a[aria-current=page]{background:transparent;color:#ff4b3a}
  .bottom-nav svg{width:23px;height:23px}
  .cart-float{left:16px;right:84px;bottom:calc(84px + env(safe-area-inset-bottom))}
  #shop-toast{bottom:calc(150px + env(safe-area-inset-bottom))}
  .assistant-fab{right:16px;bottom:calc(84px + env(safe-area-inset-bottom));height:56px;width:56px;padding:0;justify-content:center}
  .assistant-fab-label{display:none}
  .assistant{right:0;left:0;bottom:0;width:100%;height:min(88dvh,680px);border-radius:24px 24px 0 0}
  .assistant-form{padding-bottom:calc(10px + env(safe-area-inset-bottom))}
  .welcome{padding:112px 16px 64px}
  .welcome-head{flex-direction:column;align-items:flex-start;gap:16px;margin-bottom:26px}
  .welcome-head>p{text-align:left;font-size:14px}
  .welcome h1{font-size:13.4vw}
  .promo-track{grid-auto-columns:88%;gap:10px}
  .promo-card{min-height:380px;padding:24px;border-radius:24px}
  .promo-badge{top:18px;left:18px}
  .popular{margin-top:34px}
  .popular-row{grid-auto-columns:46%;gap:10px}
  .pop-card{border-radius:18px;padding:10px 10px 12px}
  .pop-card h3{font-size:15px}
  .quick-tiles{gap:10px;margin-top:28px}
  .quick-tile{min-height:140px;padding:18px;border-radius:18px}
  .quick-tile strong{font-size:19px}
  .quick-tile small{font-size:12px}
  .merch,.about,.profile{padding-top:110px}
  .merch-grid{grid-template-columns:1fr 1fr;gap:28px 12px}
  .merch-card h3{font-size:17px}
  .merch-card .product-buy{flex-direction:column;align-items:stretch}
  .about-stats{gap:8px}
  .about-stats dd{font-size:12px}
  .branch-map{min-height:340px;border-radius:22px}
  .contact-grid{grid-template-columns:1fr}
  .pd-inner{grid-template-columns:1fr}
  .pd-photo{min-height:300px}
  .pd-body{padding:26px 20px 24px}
  .pd-nutrition{grid-template-columns:repeat(2,1fr)}
  dialog.product-dialog,dialog.news-dialog{width:100%;max-width:100%;max-height:92dvh;margin:auto 0 0;border-radius:24px 24px 0 0;padding:0}
  .nd-body{padding:24px 20px 30px}
  .profile-card{grid-template-columns:auto 1fr;padding:20px;gap:16px}
  .profile-avatar{width:68px;height:68px;font-size:26px}
  .profile-card h3{font-size:24px}
  .profile-actions{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}
  .profile-actions .btn{flex:1}
  .profile-panel,.login-card{padding:22px;border-radius:22px}
  .login-action{padding:20px}
}
@media(prefers-reduced-motion:reduce){
  .promo-card img,.quick-tile,.contact-grid>*,.assistant-spark{transition:none}
  .msg.typing:after{animation:none}
}

/* ── Языки сайта (рядом с «Войти») ── */
.header-actions{display:flex;align-items:center;gap:8px}
.lang-switch{display:flex;align-items:center;padding:4px;border-radius:100px;background:#fff;border:1px solid #e7e1de;box-shadow:0 7px 28px #26202112}
.lang-switch button{border:0;background:none;font:inherit;font-size:12px;font-weight:600;letter-spacing:.04em;color:#595353;padding:8px 10px;border-radius:100px;cursor:pointer;min-width:36px}
.lang-switch button[aria-pressed=true]{background:#0a0505;color:#fafafa}
.lang-switch button:focus-visible{outline:2px solid #da0505;outline-offset:2px}
@media(max-width:650px){.lang-switch{padding:3px}.lang-switch button{padding:7px 8px;min-width:30px;font-size:11px}}

/* ── Карточка Instagram в карусели ── */
.promo-card.insta{background:linear-gradient(135deg,#feda75 0%,#fa7e1e 25%,#d62976 55%,#962fbf 80%,#4f5bd5 100%)}

/* ── «Мы также в других странах» под списком филиалов ── */
.overseas{margin-top:28px;padding-top:22px;border-top:1px solid #e7e1de}
.overseas h3{margin:0 0 6px;font-size:20px;font-weight:650;letter-spacing:-.03em}
.overseas-note{margin:0 0 14px;font-size:14px;color:#595353}
.overseas ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:10px}
.overseas li>a,.overseas li>span{display:inline-flex;align-items:baseline;gap:8px;padding:12px 18px;border-radius:100px;background:#f8f7f3;border:1px solid #e7e1de;font-size:15px;color:#0a0505;text-decoration:none}
.overseas li>a small{font-size:12px;color:#da0505}
.overseas li>a:hover{border-color:#0a0505}
@media(max-width:420px){.header .brand img{width:104px;height:auto}.profile-label{display:none}.profile-button{padding:4px}}


/* ── Подвал: Instagram вместо Telegram ── */
.telegram-footer.insta-footer{background:linear-gradient(120deg,#f9a03f 0%,#e1306c 40%,#c13584 65%,#5851db 100%)}
.insta-footer .telegram-copy em{color:#ffe1ef}
.insta-footer .insta-glyph{filter:drop-shadow(-14px 22px 0 #5a165033)}


/* Карточки карусели с оформлением из админки: тёмный / светлый текст */
.promo-card.ink-dark{color:#0a0505}
.promo-card.ink-dark .promo-cta{background:#0a0505;color:#fafafa}
.promo-card.ink-light{color:#fafafa}
.promo-card.ink-light .promo-cta{background:#fafafa;color:#0a0505}


/* ── Профиль гостя: только информация ── */
.pf-grid{display:grid;grid-template-columns:minmax(260px,340px) 1fr;gap:24px;margin-top:24px;align-items:start}
.pf-side{display:flex;flex-direction:column;gap:14px;position:sticky;top:96px}
.pf-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.pf-stats>div{background:#0a0505;color:#fafafa;border-radius:22px;padding:18px 20px;display:flex;flex-direction:column;gap:4px}
.pf-stats>div:last-child{background:#da0505}
.pf-stats b{font-size:clamp(20px,1.9vw,26px);font-weight:650;letter-spacing:-.04em;line-height:1.05;white-space:nowrap}
.pf-stats span{font-size:12px;opacity:.75;letter-spacing:.04em}
.pf-info{margin:0;background:#fff;border:1px solid #e7e1de;border-radius:22px;padding:6px 20px}
.pf-info>div{display:flex;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #f0ece7}
.pf-info>div:last-child{border-bottom:0}
.pf-info dt{font-size:13px;color:#6b6963}
.pf-info dd{margin:0;font-size:14px;font-weight:600;text-align:right;color:#0a0505}
.pf-info dd a{color:#0a0505;text-decoration:underline;text-underline-offset:3px}
.pf-info .warn{color:#b40404;font-weight:500}
.pf-note{margin:2px 4px 0;font-size:12.5px;color:#6b6963;line-height:1.5}
.pf-note a{color:#0a0505;text-decoration:underline;text-underline-offset:3px}
.pf-main h3{font-size:26px;letter-spacing:-.05em;margin:4px 0 16px}
.pf-orders{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.pf-order{background:#fff;border:1px solid #e7e1de;border-radius:22px;padding:18px 20px;display:flex;flex-direction:column;gap:12px}
.pf-order-top{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.pf-order-top strong{display:block;font-size:17px;letter-spacing:-.02em}
.pf-order-top small{display:block;margin-top:3px;font-size:12.5px;color:#6b6963}
.pf-status{flex:0 0 auto;font-size:12px;font-weight:600;padding:6px 12px;border-radius:30px;white-space:nowrap}
.pf-status.wait{background:#f1ede8;color:#4d4b45}
.pf-status.cook{background:#fff1d6;color:#9a5b00}
.pf-status.way{background:#e3efff;color:#0a5cc4}
.pf-status.done{background:#e3f6ea;color:#16803d}
.pf-status.off{background:#fde4e4;color:#b40404}
.pf-items{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.pf-items li{display:flex;justify-content:space-between;gap:12px;font-size:14px;color:#2a2826}
.pf-items b{font-weight:600;color:#6b6963;white-space:nowrap}
.pf-order-sum{display:flex;justify-content:flex-end;align-items:baseline;gap:14px;padding-top:12px;border-top:1px dashed #e7e1de;font-size:13px;color:#6b6963;flex-wrap:wrap}
.pf-order-sum b{font-size:18px;color:#0a0505;letter-spacing:-.02em}
.pf-disc{color:#16803d;font-weight:600}
.pf-empty{background:#fff;border:1px dashed #d9d4cd;border-radius:22px;padding:32px;text-align:center}
.pf-empty p{margin:0 0 14px;color:#595353}
@media(max-width:900px){.pf-grid{grid-template-columns:1fr}.pf-side{position:static}}
