/* Visual layer only. Catalog values, order calculations and API remain unchanged. */
:root {
  --poster-red:#7e202c; --poster-deep-red:#55151f; --poster-gold:#d7b56d;
  --poster-paper:#f5ead7; --poster-paper-light:#fffaf0; --poster-ink:#332620;
  --poster-muted:#806b58; --poster-steel:#667974;
  --theme-border:#ddcdb8; --theme-shadow:0 8px 28px #4824190d;
}
body { margin:0; background:#f5ead7; color:var(--poster-ink); font-family:Arial,Helvetica,sans-serif; }
body::before,body::after { display:none; }
body button,body input,body select,body textarea { font-family:Arial,Helvetica,sans-serif; }
body button,body [role=button],body a { -webkit-tap-highlight-color:transparent; }
body button:focus-visible,body [role=button]:focus-visible,body a:focus-visible { outline:2px solid var(--poster-gold); outline-offset:3px; }
.header { display:flex; height:104px; box-sizing:border-box; background:var(--poster-deep-red); border-bottom:1px solid #d7b56d66; box-shadow:0 4px 20px #48241916; min-height:104px; padding:16px max(24px,calc((100% - 1280px)/2)); gap:20px; }
.header-left { display:flex; width:48px; flex:none; }
.header-title { width:max-content; right:auto; grid-column:auto; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); flex:none; min-width:0; }
.header-right { flex:none; width:auto; margin:0 0 0 auto; }
.header-contacts { display:none; }
.header-actions { gap:16px; align-items:flex-start; }
.header-title .main-title { font-size:clamp(28px,3.2vw,42px); font-weight:400; letter-spacing:.5px; line-height:1.1; padding:5px 14px; border:3px solid #dfbd69; outline:none; box-shadow:none; background:#7a1c23; color:#efd28a; text-shadow:none; -webkit-text-stroke:0; white-space:nowrap; }
.header-title .sub-title { font:500 16px/1.4 Arial,sans-serif; letter-spacing:.7px; color:#e9c675; margin-top:7px; text-shadow:none; }
.header-action-btn { width:64px; min-width:0; height:60px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:0; border:0; box-shadow:none; background:transparent; }
.header-action-btn:hover { transform:none; }
.header-action-icon.icon-photo { width:60px; height:60px; flex:none; box-sizing:border-box; border:1.5px solid #e2c477; border-radius:50%; background:none; padding:9px; box-shadow:none; filter:none; }
.header-action-icon svg { display:block; width:100%; height:100%; fill:none; stroke:#e2c477; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.header-action-label { display:none; }
.header-cart-btn .badge { position:absolute; top:100%; bottom:auto; left:50%; width:max-content; height:auto; overflow:visible; clip:auto; clip-path:none; font:600 12px/1.3 Arial,sans-serif; background:none; color:#f2dca3; border:0; box-shadow:none; margin:5px 0 0; padding:0; min-width:0; }
.header-cart-btn .badge { transform:translateX(-50%); text-shadow:none; }
.burger-btn { width:38px; height:40px; padding:8px 5px; }
.burger-btn span { height:2px; background:var(--poster-gold); box-shadow:none; border-radius:3px; }
.site-layout { display:block; max-width:1280px; margin:0 auto; padding:0 24px; gap:0; }
.content-column { width:100%; min-width:0; }
.nav-menu,.nav-menu.open { position:sticky; top:104px; left:auto; width:100%; height:auto; min-height:0; max-height:none; padding:16px 0; background:#f5ead7f5; border:0; box-shadow:none; overflow:visible; z-index:70; backdrop-filter:blur(8px); }
.nav-menu .menu-title,.nav-menu .menu-cart { display:none; }
.nav-menu .menu-list { display:flex; gap:10px; overflow-x:auto; list-style:none; margin:0; padding:2px 0 5px; scrollbar-width:thin; scrollbar-color:#cdb99a transparent; }
.nav-menu .menu-list li { flex:none; margin:0; }
.nav-menu .menu-list a { display:block; padding:10px 20px; min-height:42px; border:1px solid #d9c7ae; border-radius:24px; color:var(--poster-red); background:#fffaf066; font:600 14px/1.4 Arial,sans-serif; text-shadow:none; box-shadow:none; white-space:nowrap; transition:background .2s,color .2s,border-color .2s; }
.nav-menu .menu-list a::before,.nav-menu .menu-list a::after { display:none; }
.nav-menu .menu-list a:is(:hover,:active,:focus,.active) { padding:10px var(--category-padding,20px); font-weight:600; transform:none; }
.nav-menu .menu-list a.active { color:#fffaf0; background:var(--poster-red); border-color:var(--poster-red); transform:none; }
@media (hover:hover) and (pointer:fine) {
  .nav-menu .menu-list a:hover { color:#fffaf0; background:var(--poster-red); border-color:var(--poster-red); transform:none; }
}
@media (hover:none), (pointer:coarse), (max-width:768px) {
  .nav-menu .menu-list a { transition:none; -webkit-tap-highlight-color:transparent; }
  .nav-menu .menu-list a:hover:not(.active) { color:var(--poster-red); background:#fffaf066; border-color:#d9c7ae; transform:none; }
}
.nav-menu.open .menu-list { flex-wrap:wrap; }
.menu-overlay { display:none; }
.main-content { padding:0; margin:0; max-width:none; }
.content-column { --catalog-columns:4; --catalog-gap:22px; }
.stories-container { position:relative; padding:4px 0 22px; margin:0; background:none; border:0; box-shadow:none; }
.stories-wrapper { display:flex; gap:var(--catalog-gap); padding:0; overflow-x:auto; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; }
.stories-wrapper .story-item { flex:0 0 calc((100% - (var(--catalog-columns) - 1) * var(--catalog-gap)) / var(--catalog-columns)); min-width:0; scroll-snap-align:start; }
.stories-wrapper .story-item:hover { transform:none; }
.stories-wrapper .story-avatar { width:100%; height:auto; aspect-ratio:330/456; border:0; border-radius:inherit; }
.stories-scroll-btn { position:absolute; z-index:2; top:calc((100% - 22px) / 2); transform:translateY(-50%); display:grid; place-items:center; width:34px; height:34px; padding:0; border:1px solid #c6aa75; border-radius:50%; background:#fff9eef2; color:var(--poster-red); box-shadow:0 2px 8px #48241924; cursor:pointer; }
.stories-scroll-btn[hidden] { display:none; }
.stories-scroll-btn:hover { background:#f1e2c5; }
.stories-scroll-btn:focus-visible { outline:2px solid var(--poster-red); outline-offset:3px; }
.stories-scroll-btn svg { width:18px; height:18px; }
.stories-scroll-prev { left:6px; }
.stories-scroll-next { right:6px; }
.story,.story-card,.story-item { border-radius:14px; border:1px solid var(--theme-border); box-shadow:var(--theme-shadow); overflow:hidden; }
.story-avatar { border:1px solid var(--theme-border); border-radius:14px; box-shadow:none; }
.story-avatar:hover { border-color:var(--poster-red); }
.catalog-section { margin-bottom:36px; scroll-margin-top:185px; }
.catalog-section .section-title { background:none; border:0; box-shadow:none; color:var(--poster-red); padding:8px 0 20px; margin:0; font:700 28px/1.2 Georgia,serif; letter-spacing:0; text-shadow:none; }
.catalog { display:grid; grid-template-columns:repeat(var(--catalog-columns),minmax(0,1fr)); gap:var(--catalog-gap); }
.catalog .product-card,.catalog .product-card[data-category="Удон"] { display:flex; flex-direction:column; min-width:0; min-height:0; height:100%; padding:0 18px 18px; border:1px solid #9b596166; border-radius:16px; background:#fff9ee; box-shadow:var(--theme-shadow); overflow:hidden; cursor:pointer; transition:box-shadow .2s,transform .2s; }
.catalog .product-card:hover { border-color:#9b5961; box-shadow:0 10px 28px #48241918; transform:translateY(-2px); }
.product-card::before,.product-card::after { display:none; }
.catalog .product-card { position:relative; }
.catalog .product-badge { position:absolute; z-index:2; top:12px; left:12px; display:inline-flex; align-items:center; gap:5px; max-width:calc(100% - 24px); padding:6px 9px; border:1px solid #dfbd6940; border-radius:5px; background:var(--theme-wine,#7d202e); color:#f5dfab; font:700 12px/1.2 Arial,sans-serif; text-transform:uppercase; box-shadow:0 2px 5px #30101520; pointer-events:none; }
.catalog .product-badge svg { width:19px; height:19px; flex:none; }
@media (max-width:768px) {
  .catalog .product-badge { top:8px; left:8px; max-width:calc(100% - 16px); gap:4px; padding:5px 6px; font-size:10px; }
  .catalog .product-badge svg { width:16px; height:16px; }
}
.catalog .product-card .product-image { width:calc(100% + 36px); max-width:none; height:auto; aspect-ratio:4/3; object-fit:cover; margin:0 -18px 17px; border:0; border-radius:15px 15px 0 0; filter:none; background:#080807; }
.catalog .product-card:is([data-category="Пицца"],[data-category="Удон"],[data-category="Поке"],[data-category="Салат"]) .product-image { background:#fff9ee; }
.catalog .product-card .catalog-photo-fill { position:relative; overflow:hidden; }
.catalog-photo-fill img { display:block; width:100%; height:100%; position:absolute; inset:0; object-fit:cover; object-position:center; }
.catalog-photo-portrait img { position:absolute; inset:auto; left:50%; top:50%; width:75%; height:133.333333%; max-width:none; object-fit:cover; transform:translate(-50%,-50%) rotate(90deg); }
.catalog .product-name { font:700 20px/1.25 Georgia,serif; text-align:left; color:var(--poster-red); margin:0 0 12px; padding:0; border:0; min-height:50px; text-shadow:none; }
.catalog .product-info { display:flex; justify-content:flex-start; gap:9px; flex-wrap:wrap; margin:0 0 12px; padding:10px 0 0; border:0; border-top:1px solid #e2d3bd; min-height:0; font:400 13px/1.4 Arial,sans-serif; }
.catalog .product-info span { padding:0; border:0; background:none; font:inherit; color:#675140; box-shadow:none; }
.product-description { font:400 14px/1.5 Arial,sans-serif; color:#756352; margin:0 0 18px; }
.catalog .product-card { align-items:stretch; text-align:left; }
.catalog .product-name { display:block; width:100%; }
.catalog .price-block { margin:auto 0 0; padding:0; min-height:42px; gap:10px; justify-content:space-between; flex-wrap:wrap; }
.product-price-label { font:700 23px/1.2 Georgia,serif; color:var(--poster-red); white-space:nowrap; }
.catalog .price-block .price-value { display:flex; align-items:center; justify-content:center; min-height:42px; min-width:0; padding:10px 13px; border:1px solid var(--poster-red); border-radius:9px; background:var(--poster-red); color:#fffaf0; box-shadow:none; font:600 14px/1.3 Arial,sans-serif; text-transform:none; }
.catalog .price-block .price-value:not(.choose-variant) { font-size:0; }
.catalog .price-block .price-value:not(.choose-variant)::before { content:'В корзину'; font:600 14px/1.3 Arial,sans-serif; }
.catalog .price-block .price-value.hidden { display:none; }
.catalog .price-block .price-value:hover { background:var(--poster-deep-red); border-color:var(--poster-deep-red); box-shadow:none; }
.catalog .price-block .qty-controls { gap:7px; }
.catalog .price-block .qty-btn { width:36px; height:38px; border:1px solid #d7c3a6; border-radius:8px; background:#f5ead7; color:var(--poster-red); font:600 20px/1 Arial,sans-serif; box-shadow:none; }
.catalog .price-block .qty-number { min-width:20px; font:700 17px/1 Arial,sans-serif; text-shadow:none; }
.catalog .product-variant-preview { gap:6px; margin:0 0 12px; }
.catalog .product-variant-pill { border:1px solid #e0d0b8; background:#f7efdf; box-shadow:none; border-radius:8px; padding:8px; }
.catalog .product-variant-pill .variant-name,.catalog .product-variant-pill .variant-weight,.catalog .product-variant-pill .variant-price { font-family:Arial,sans-serif; font-weight:600; }
.modal-overlay,.cart-modal,.profile-page-modal { background:#24171299; backdrop-filter:blur(5px); }
/* Blur the actual page as well as the backdrop: keyboard panning can expose
   content outside a fixed overlay in mobile browsers. Dialogs are body siblings,
   so their size, focus scrolling and rendering remain unchanged. */
body:has(.modal-overlay.active, .story-modal.active, #entryPopupDialog[open]) > :is(.header, .site-layout, .site-footer, .guest-orders-float) {
  filter:blur(5px);
  pointer-events:none;
}
.modal-content,.cart-content,.profile-content,.profile-page-content,#entryPopupDialog { border:1px solid var(--theme-border); border-radius:18px; background:#fff8e9; box-shadow:0 20px 65px #28150d30; color:var(--poster-ink); }
.cart-content { padding:28px; }
.modal-content::before,.cart-content::before,.profile-content::before,.profile-page-content::before { display:none; }
.profile-content h2 { border:0; border-radius:12px; background:var(--poster-red); color:#fff8e9; padding:16px; box-shadow:none; font:700 24px/1.3 Georgia,serif; }
.profile-content label,.profile-details-form label { font:600 13px/1.4 Arial,sans-serif; text-transform:none; }
.profile-tab { text-transform:none; }
.cart-title,.cart-content h2,.profile-content h2,.profile-page-content h2,.success-title { font-family:Georgia,serif; font-weight:700; letter-spacing:0; }
.cart-title,.cart-content h2 { border:0; border-radius:12px; background:var(--poster-red); color:#fff8e9; box-shadow:none; padding:16px; }
.cart-item { border:1px solid #ddcdb8; border-radius:12px; box-shadow:none; padding:14px; background:#fffaf0; }
.cart-item-name { font:600 15px/1.4 Arial,sans-serif; }
.cart-item-thumb { border:1px solid #bca88e; border-radius:7px; overflow:hidden; box-shadow:none; }
.cart-item-qty { border:1px solid #dfcfb7; border-radius:6px; background:#f8efdc; font:600 14px/1.2 Arial,sans-serif; white-space:nowrap; }
.cart-item-price { background:none; border:0; color:var(--poster-red); box-shadow:none; font:700 18px/1.3 Arial,sans-serif; padding:4px; }
.cart-item-actions button { border:1px solid #dfcfb7; border-radius:7px; box-shadow:none; background:#f7ebd6; color:var(--poster-red); }
.cart-total,.promo-panel,.checkout-summary,.delivery-block,.order-summary { background:#faf0de; border:1px solid #decdb3; border-radius:12px; box-shadow:none; }
.promo-panel { border-left:3px solid var(--poster-red); }
.cart-total { color:var(--poster-red); font:700 22px/1.4 Georgia,serif; padding:16px; }
.cart-content input,.cart-content select,.cart-content textarea,.profile-content input,.profile-details-form input { border:1px solid #cdbba0; border-radius:9px; background:#fffcf5; box-shadow:none; color:var(--poster-ink); min-width:0; font-size:16px; font-weight:400; }
.cart-content input:focus,.cart-content textarea:focus,.profile-content input:focus,.profile-details-form input:focus { border-color:var(--poster-red); outline:2px solid #7e202c15; background:#fffdf8; }
.address-suggest-panel { box-sizing:border-box; top:100%; margin-top:5px; padding:4px; background:#fffcf5; border:1px solid var(--theme-border); border-radius:12px; box-shadow:0 8px 24px #4824191a; overscroll-behavior:contain; }
.address-suggest-item { box-sizing:border-box; min-height:44px; padding:10px 12px; border:0; border-bottom:1px solid #e9ddcb; border-radius:8px; color:var(--poster-ink); transition:background .15s,color .15s; }
.address-suggest-item:hover,.address-suggest-item.active { background:#f5ead7; color:var(--poster-red); }
.address-suggest-item:focus-visible { outline:2px solid var(--poster-gold); outline-offset:-2px; }
.address-suggest-title { font:600 14px/1.4 Arial,sans-serif; overflow-wrap:anywhere; }
.address-suggest-subtitle { margin-top:3px; font:400 12px/1.4 Arial,sans-serif; color:var(--poster-muted); opacity:1; overflow-wrap:anywhere; }
.address-suggest-empty { padding:10px 12px; font:400 14px/1.5 Arial,sans-serif; }
.delivery-block label,.delivery-block .datetime-title { font:600 13px/1.4 Arial,sans-serif; color:var(--poster-red); }
.delivery-block .radio-group label { border:1px solid #d6c3a5; border-radius:9px; box-shadow:none; color:var(--poster-red); background:#fffaf0; min-height:44px; padding:10px; }
.delivery-block .radio-group label:has(input:checked) { background:var(--poster-red); color:#fffaf0; border-color:var(--poster-red); }
.delivery-block .radio-group input { accent-color:var(--poster-gold); }
.delivery-message,.profile-auth-note { border-radius:8px; background:#f4ebda; font:400 14px/1.5 Arial,sans-serif; }
.cart-next-btn,.cart-submit-btn,.cart-back-btn,.promo-apply-btn,.profile-submit-btn,.modal-add-btn,.success-btn,.profile-tab { border:1px solid var(--poster-red); border-radius:9px; background:var(--poster-red); color:#fffaf0; box-shadow:none; font:600 16px/1.4 Arial,sans-serif; padding:13px 18px; }
.cart-content button:hover,.profile-content button:hover { box-shadow:none; }
#cartModal h2 { color:#fff8e9 !important; border:0 !important; padding:16px !important; font-family:Georgia,serif !important; text-align:center; box-shadow:none; font-weight:700; }
.cart-step-note,.delivery-payment-note { border:1px solid #decdb3; border-radius:9px; background:#faf0de; box-shadow:none; font:400 14px/1.5 Arial,sans-serif; padding:14px; }
.delivery-block .radio-group label.active-radio { box-shadow:none; transform:none; }
.cart-content .pickup-info,.cart-content .delivery-route-status { background:#f4ebda; border:0; border-left:3px solid var(--poster-steel); border-radius:0 8px 8px 0; box-shadow:none; font:400 14px/1.5 Arial,sans-serif; }
.cart-content .persons-row label,.cart-content .promo-title,.cart-content .cart-sauces-title { font:600 14px/1.4 Arial,sans-serif; text-transform:none; }
.cart-content .persons-row label,.cart-content .cart-sauces-title { font-size:16px; }
.cart-content .persons-counter button,.cart-content .persons-counter .sauce-quantity,.cart-content .persons-counter #orderPersons { border-radius:8px; }

.cart-content .checkout-total-row { font:400 14px/1.5 Arial,sans-serif; }
.cart-content .checkout-total-final { font-size:16px; font-weight:600; border-color:#ddcdb8; }
.cart-content .submit-order:hover,.profile-content .profile-submit:hover { background:var(--poster-deep-red); transform:none; }
.cart-content .cart-close,.profile-close,.modal-close { box-shadow:none; text-shadow:none; color:var(--poster-red); }
.story-modal .story-close { border:1.5px solid var(--poster-gold); border-radius:10px; background:var(--poster-red); color:var(--poster-gold); box-shadow:0 3px 12px #00000024; transition:background .2s,border-color .2s; }
.story-modal .story-close:hover { background:var(--poster-deep-red); transform:none; }
.modal-close,#entryPopupDialog .entry-popup-close { border:1px solid #decdb3; border-radius:8px; background:#faf0de; color:var(--poster-red); display:grid; place-items:center; box-sizing:border-box; }
.modal-close:hover,#entryPopupDialog .entry-popup-close:hover { background:#f3e5cf; color:var(--poster-red); transform:none; }
.cart-content .remove-item { border-radius:8px; }
.profile-page-content:has(#profileOrdersView.active) { background:#f5ead7; }
#profileOrderHistoryList .profile-order-card { background:#fff9ee; border:1px solid #dfcab0; border-top:3px solid var(--poster-red); border-radius:12px; padding:18px; box-shadow:var(--theme-shadow); }
#profileOrderHistoryList .profile-order-top { border-bottom:1px solid #e2d3bd; }
.order-pricing { border-left:2px solid var(--poster-red); background:#faf0de; border-radius:0 9px 9px 0; }
.order-progress-icon { border-width:1px; border-radius:10px; box-shadow:none; }
.order-progress-step.current .order-progress-icon { color:#fff6e4; background:var(--poster-red); border-color:var(--poster-red); box-shadow:none; }
.profile-round-btn { border:1px solid #d4bd98; border-radius:10px; background:#fff8e9; box-shadow:none; color:var(--poster-red); }
.profile-orders-card,.profile-bonus-card,.profile-contact-card,.profile-person-card,.profile-info-card,.profile-card { background:#fffaf0; border:1px solid #decdb3; border-radius:12px; box-shadow:none; }
.profile-tab { background:#f8efdf; color:var(--poster-red); }
.profile-tab.active { background:var(--poster-red); color:#fffaf0; }
.submit-order,.profile-submit,.promo-btn,.cart-secondary-btn,.profile-secondary-btn,.profile-page-logout,.profile-logout {
  border:1px solid var(--poster-red); border-radius:9px; background:var(--poster-red); color:#fffaf0;
  box-shadow:none; font:600 15px/1.4 Arial,sans-serif; padding:13px 18px;
}
.cart-secondary-btn,.profile-secondary-btn,.profile-page-logout,.profile-logout { background:#fffaf0; color:var(--poster-red); border-color:#d6c3a5; }
.checkout-total-panel,.order-success-panel,.profile-code-summary { background:#faf0de; border:1px solid #decdb3; border-radius:12px; box-shadow:none; }
.order-success-title { background:var(--poster-red); color:#fffaf0; border:0; border-radius:9px; box-shadow:none; font:700 24px Georgia,serif; }
.order-status-icon,.order-status-step-icon,.modal-qty-btn { border:1px solid #d7c3a6; border-radius:8px; box-shadow:none; }
.modal-qty-number { font:700 20px Arial,sans-serif; text-shadow:none; }
.cart-extra-controls button { border:1px solid #d7c3a6; border-radius:8px; box-shadow:none; background:#f5ead7; color:var(--poster-red); min-width:40px; min-height:42px; }
.profile-identity-card,.profile-orders-banner,.profile-bonus-box,.profile-contact-link { border:1px solid #decdb3; border-radius:12px; background:#fffaf0; box-shadow:none; }
.profile-orders-banner { display:grid; grid-template-columns:minmax(0,1fr) auto 20px; align-items:center; gap:14px; min-height:84px; padding:18px; background:#faf0de; color:var(--poster-red); }
.profile-orders-banner::after { display:none; }
.profile-orders-button:hover { transform:none; border-color:var(--poster-gold); box-shadow:none; }
.profile-orders-banner .profile-orders-count { min-height:0; padding:0; border:0; border-radius:0; background:none; box-shadow:none; color:var(--poster-muted); font:600 14px/1.4 Arial,sans-serif; }
.profile-orders-banner .profile-orders-arrow { position:static; transform:none; color:var(--poster-red); font:400 28px/1 Arial,sans-serif; text-shadow:none; }
.profile-identity-card { grid-template-columns:60px minmax(0,1fr); padding:14px; }
.profile-identity-card .profile-avatar-frame { width:60px; height:60px; box-sizing:border-box; border:1.5px solid #e2c477; border-radius:50%; background:none; color:var(--poster-red); padding:9px; box-shadow:none; }
.profile-avatar-frame svg { display:block; width:100%; height:100%; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.profile-birthday-hint { margin:-4px 0 0; color:var(--poster-muted); font:400 12px/1.5 Arial,sans-serif; }
.profile-details-form #profileBirthdayInput:disabled { opacity:1; color:var(--poster-muted); background:#f5eddf; cursor:not-allowed; }
.profile-birthday-control { position:relative; min-width:0; }
.profile-details-form #profileBirthdayMobile,.profile-birthday-calendar { display:none; }
@media (max-width:768px), (pointer:coarse) {
 .profile-details-form #profileBirthdayInput { display:none; }
 .profile-details-form #profileBirthdayMobile { display:block; width:100%; padding-right:48px; }
 .profile-birthday-calendar { display:flex; position:absolute; right:4px; top:0; bottom:0; width:40px; align-items:center; justify-content:center; margin:0; cursor:pointer; }
 .profile-birthday-calendar svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; }
 .profile-details-form #profileBirthdayPicker { display:block; position:absolute; inset:0; width:100%; height:100%; margin:0; padding:0; opacity:0; cursor:pointer; }
 .profile-birthday-calendar.locked { opacity:0.55; cursor:not-allowed; }
 .profile-details-form #profileBirthdayMobile:disabled { opacity:1; color:var(--poster-muted); background:#f5eddf; cursor:not-allowed; }
 .profile-details-form #profileBirthdayMobile::placeholder { color:var(--poster-muted); opacity:1; }
}
.profile-section-title,.profile-identity-name { font-family:Georgia,serif; font-weight:700; }
.profile-avatar-frame,.profile-orders-count { border:1px solid #d6c3a5; border-radius:9px; box-shadow:none; background:#fff8e9; }
.profile-overview-name { font:700 20px/1.3 Georgia,serif; }
.profile-overview-phone { font:400 14px/1.5 Arial,sans-serif; }
.profile-orders-banner h3 { margin:0; font:700 22px/1.3 Georgia,serif; color:var(--poster-red); text-transform:none; text-shadow:none; }
.profile-bonus-balance { background:#faf0de; border:1px solid #decdb3; border-radius:12px; box-shadow:none; }
.profile-promo-card { border:1px solid #decdb3; border-radius:9px; box-shadow:none; overflow:hidden; }
.profile-content,.profile-page-content,.cart-content { font-family:Arial,sans-serif; }
#entryPopupDialog { padding:50px 24px 24px; overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#cdb99a transparent; }
#entryPopupDialog::backdrop { background:#24171299; backdrop-filter:blur(5px); }
#entryPopupDialog .entry-popup-close { top:10px; right:10px; font:400 26px/1 Arial,sans-serif; }
#entryPopupImage { border:1px solid #decdb3; border-radius:12px; flex:none; max-height:48dvh; }
#entryPopupText { margin:16px 0 0; color:var(--poster-ink); font:400 15px/1.5 Arial,sans-serif; }
#entryPopupOffer { margin:16px 0 0; padding:12px 14px; border:1px solid #decdb3; border-left:3px solid var(--poster-red); border-radius:10px; background:#faf0de; color:#675140; font:400 14px/1.5 Arial,sans-serif; }
#entryPopupDismiss { margin-top:20px; background:var(--poster-red); color:#fffaf0; border:0; border-radius:9px; font:600 15px/1.4 Arial,sans-serif; padding:13px 18px; transition:background .2s; }
#entryPopupDismiss:hover { background:var(--poster-deep-red); }
@media (min-width:769px) {
  #entryPopupDialog {
    width:min(var(--entry-popup-width,1024px),calc(100vw - 64px));
    height:fit-content;
    max-height:calc(100dvh - 64px);
    margin:auto;
  }
  #entryPopupImage { width:100%; height:auto; flex:none; min-height:0; max-height:none; object-fit:contain; }
  #entryPopupDialog .entry-popup-close:focus { outline:none; box-shadow:none; }
  #entryPopupDialog .entry-popup-close:focus-visible { border-color:var(--poster-red); background:#f3e5cf; }
}
@media (max-width:480px) {
  #entryPopupDialog { padding:50px 16px 18px; }
}
.guest-orders-float { background:var(--poster-red); color:#fffaf0; border:1px solid #b67c70; border-radius:28px; box-shadow:0 4px 18px #48241926; font-family:Arial,sans-serif; }
#productModal .modal-content { padding:22px; }
#productModal .modal-image { border:1px solid #dfcfb7; border-radius:12px; filter:none; aspect-ratio:auto; object-fit:cover; }
#productModal .modal-photo { display:contents; }
#productModal .modal-photo.modal-photo-rotated { display:block; position:relative; width:100%; aspect-ratio:4/3; overflow:hidden; border:1px solid #dfcfb7; border-radius:12px; margin:0 auto 8px; flex-shrink:0; }
#productModal .modal-photo-rotated .modal-image { position:absolute; inset:auto; left:50%; top:50%; width:75%; height:133.333333%; max-width:none; margin:0; border:0; border-radius:0; object-fit:cover; transform:translate(-50%,-50%) rotate(90deg); }
#productModal .modal-name { font:700 26px/1.2 Georgia,serif; color:var(--poster-red); border:0; }
#productModal .modal-desc { border:0; background:none; padding:8px 0; font:400 14px/1.5 Arial,sans-serif; color:#756352; }
#productModal .modal-info span { border:0; background:none; font:400 14px Arial,sans-serif; }
#productModal .modal-price { font:700 26px/1.3 Georgia,serif; color:var(--poster-red); }
#productModal .modal-variant-card { border:1px solid #decdb3; border-radius:10px; box-shadow:none; padding:12px; background:#faf0de; color:var(--poster-ink); }
#productModal .modal-variant-option input:checked + .modal-variant-card { border-color:var(--poster-red); background:var(--poster-red); color:#fff8e9; box-shadow:none; transform:none; }
#productModal .modal-variant-title { font:600 15px/1.4 Arial,sans-serif; text-transform:none; }
#productModal .modal-variant-weight { font:400 13px/1.4 Arial,sans-serif; }
#productModal .modal-variant-price { font:600 17px/1.4 Arial,sans-serif; }
#productModal .modal-add-btn { border:0; border-radius:9px; box-shadow:none; color:#fffaf0; background:var(--poster-red); }
.modal-overlay .modal-content,.modal-overlay .cart-content,.modal-overlay .profile-content,.modal-overlay .profile-page-content { overscroll-behavior-y:contain; }
#productModal .modal-content { max-height:calc(100dvh - 24px); overflow-y:auto; }
.site-footer { background:#55151f; border-top:1px solid #d7b56d66; color:#f2e4c9; padding:30px 24px; margin-top:40px; }
.site-footer-inner { max-width:1232px; }
.site-footer details { border:0; border-radius:9px; background:transparent; }
.site-footer summary { color:#f2e4c9; }
.site-footer a { color:#e3c98e; }
::-webkit-scrollbar { width:6px; height:6px; }
::-webkit-scrollbar-track { background:#f3e9d7; border:0; }
::-webkit-scrollbar-thumb { background:#c7af8f; border:0; border-radius:8px; }
@media (max-width:1100px) { .content-column { --catalog-columns:3; --catalog-gap:18px; } }
@media (max-width:768px) {
  .header { height:86px; min-height:86px; padding:12px 16px; gap:12px; }
  .nav-menu,.nav-menu.open { top:86px; }
  .site-layout { padding:0 16px; }
  .content-column { --catalog-columns:2; --catalog-gap:16px; }
  .header-title .main-title { font-size:30px; }
  .header-right,.header-actions { display:contents; }
  #profileMenuBtn,#headerCart { position:absolute; top:50%; transform:translateY(-50%); }
  #profileMenuBtn { left:16px; }
  #headerCart { right:16px; }
  .header-cart-btn .badge { margin-top:2px; }
  .header-title .sub-title { font-size:12px; }
  .header-actions { gap:9px; }
  .header-action-btn { width:54px; height:50px; }
  .header-action-icon.icon-photo { width:50px; height:50px; padding:8px; }
  .catalog-section { scroll-margin-top:180px; }
  .catalog .product-name { font-size:20px; }
  .modal-overlay { padding:12px; }
  /* Let the browser reveal focused fields using its native keyboard scrolling. */
  .modal-overlay { box-sizing:border-box; height:100vh; height:100lvh; }
  /* Keep the dialog's scroll area stable when a keyboard reduces the visible
     viewport. The browser may pan to the focused field without flex-shrinking
     the panel and hiding the rest of the form. */
  .modal-overlay > :is(.modal-content,.cart-content,.profile-content,.profile-page-content) {
    flex-shrink:0;
    max-height:calc(100vh - 24px);
    max-height:calc(100lvh - 24px);
    box-sizing:border-box;
  }
  /* Cover the area Safari exposes when it pans for the keyboard with the
     same dimmed, blurred backdrop. Keep the floating dialog and native focus
     scrolling unchanged; never extend the cream panel itself. */
  .modal-overlay { isolation:isolate; }
  .modal-overlay.active::after {
    content:""; position:absolute; pointer-events:none;
    top:100%; left:0; right:0; bottom:-100vh; bottom:-100lvh;
    z-index:-1; background:#24171299;
    -webkit-backdrop-filter:blur(5px); backdrop-filter:blur(5px);
  }
  .cart-content,.profile-content,.profile-page-content { padding:20px; max-width:calc(100vw - 24px); }
  .cart-item-info { min-width:0; }
}
@media (max-width:480px) {
  .header { height:78px; min-height:78px; padding:10px 12px; gap:8px; }
  .header-left { width:28px; }
  .burger-btn { width:28px; height:36px; padding:8px 3px; }
  .header-actions { gap:6px; }
  .header-action-btn { width:44px; height:42px; }
  .header-action-icon.icon-photo { width:42px; height:42px; padding:6px; }
  .header-title .main-title { font-size:clamp(19px,5.2vw,24px); padding:4px 7px; }
  .header-title .sub-title { font-size:9px; letter-spacing:.3px; }
  #profileMenuBtn { left:12px; }
  #headerCart { right:12px; }
  .header-cart-btn .badge { font-size:10px; }
  .nav-menu,.nav-menu.open { top:78px; padding:11px 0; }
  .nav-menu .menu-list { gap:8px; }
  .nav-menu .menu-list a { --category-padding:16px; padding:10px 16px; font-size:13px; }
  .site-layout { padding:0 12px; }
  .stories-container { padding-bottom:12px; }
  .content-column { --catalog-gap:12px; }
  .stories-scroll-btn { top:calc((100% - 12px) / 2); width:32px; height:32px; }
  .catalog .product-card,.catalog .product-card[data-category="Удон"] { border-radius:12px; padding:0 12px 14px; }
  .catalog .product-card .product-image { width:calc(100% + 24px); margin:0 -12px 12px; border-radius:11px 11px 0 0; }
  .catalog-section { scroll-margin-top:160px; }
  .catalog .product-name { font-size:17px; min-height:43px; margin-bottom:8px; }
  .catalog .product-info { font-size:11px; gap:7px; margin-bottom:8px; padding-top:8px; }
  .product-description { font-size:12px; line-height:1.5; margin-bottom:14px; }
  .product-price-label { font-size:21px; width:100%; }
  .catalog .price-block { gap:9px; }
  .catalog .price-block .price-value { width:100%; min-height:42px; font-size:13px; padding:10px 8px; }
  .catalog .price-block .price-value:not(.choose-variant)::before { font-size:13px; }
  .catalog .price-block .price-value:not(.choose-variant) { font-size:0; }
  .catalog .price-block .qty-controls { width:100%; justify-content:space-between; }
  .catalog .price-block .qty-btn { width:40px; height:42px; }
  .catalog .product-variant-preview { flex-wrap:wrap; }
  .catalog .product-variant-pill { padding:6px 5px; flex:1; min-width:0; }
  .catalog .product-variant-pill .variant-price { font-size:12px; }
  .catalog-section .section-title { font-size:25px; padding:8px 0 16px; }
  .cart-content,.profile-content,.profile-page-content { padding:18px; border-radius:14px; }
  .cart-title,.cart-content h2 { font-size:23px; padding:14px 8px; }
  .cart-item { padding:10px; }
  .cart-item-name { font-size:13px; }
  .cart-item-price { font-size:16px; }
  .cart-total { font-size:22px; }
  .cart-content .persons-counter #orderPersons,.cart-content .persons-counter .sauce-quantity { font-size:16px; }
  #profileOrderHistoryList .profile-order-card { padding:13px; }
  .profile-round-btn { width:42px; height:42px; }
  .delivery-block .radio-group label { flex:1 1 110px; min-width:0; font-size:12px; }
}
@media (max-width:360px) {
  .header-title .main-title { font-size:19px; padding:4px 6px; }
  .header-title .sub-title { font-size:8px; letter-spacing:0; }
}
@media (prefers-reduced-motion:reduce) { .product-card,.menu-list a { transition:none; } }

