/* =========================================
   ВКУСНЫЕ ИСТОРИИ — MAIN STYLES
   ========================================= */

:root {
    --bg: #1C120E; --bg2: #241813;
    --surface: #2B1D17; --surface2: #33231B;
    --line: rgba(241,227,214,.14); --line2: rgba(241,227,214,.22);
    --ink: #F6EFE8; --muted: rgba(255,235,215,.82); --muted2: rgba(246,239,232,.55);
    --beige: #F1E3D6; --sand: #E9D3BF; --gold: #FFCF8B;
    --ember: #F28C28; --ember2: #E06C12; --cocoa: #3B1D17; --smoke: #070707;
    --brand-orange: #F28C28;
    --header-row-h: 34px; --bottom-nav-h: 68px;
}

html, body {
    overflow-x: clip;
    width: 100%;
    max-width: 100vw;
    scroll-behavior: smooth;
    margin: 0;
    padding: 0;
}

html {
    background:
        radial-gradient(1200px 600px at 50% -15%, rgba(255,180,100,.28), transparent 70%),
        radial-gradient(800px 500px at 20% 0%, rgba(255,150,80,.18), transparent 65%),
        radial-gradient(800px 500px at 80% 10%, rgba(255,180,100,.15), transparent 70%),
        linear-gradient(180deg, #2A1B14 0%, #24160F 50%, #1C120D 100%);
    min-height: 100vh;
}

body {
    background: transparent; /* Оставляем body прозрачным, чтобы просвечивал фон из html */
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
    padding-bottom: env(safe-area-inset-bottom);
}


.min-h-screen { min-height: 100dvh !important; }
@supports (-webkit-touch-callout: none) { body { min-height: -webkit-fill-available; } }

/* Tailwind Overrides */
.text-gray-900, .text-gray-800, .text-grayDark { color: var(--ink) !important; }
.text-gray-700 { color: var(--muted) !important; }
.text-gray-600, .text-gray-500 { color: var(--muted2) !important; }
.text-gray-400 { color: rgba(246,239,232,.45) !important; }
.border-gray-200, .border-grayLight { border-color: var(--line) !important; }
.border-gray-300 { border-color: var(--line2) !important; }
.bg-white { background-color: var(--surface) !important; }
.bg-grayLight { background-color: rgba(241,227,214,.08) !important; }
.bg-secondary { background: transparent !important; }
.text-orange-600, .text-primary { color: var(--gold) !important; }
.hover\:text-primary:hover { color: var(--gold) !important; }

/* Header Desktop */
header {
    background: linear-gradient(180deg, rgba(42,26,19,.96) 0%, rgba(34,20,15,.95) 100%) !important;
    backdrop-filter: blur(12px); border-bottom: 1px solid var(--line) !important;
    box-shadow: 0 0 60px rgba(255,160,80,.12), 0 20px 50px rgba(0,0,0,.35);
}
header .header-inner { display: grid; grid-template-columns: max-content minmax(0,1fr) max-content; align-items: center; column-gap: .70rem; }
.header-left { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.logo-wrap { line-height: 0; }
header img { display: block; }
.header-city { height: var(--header-row-h); display: flex; align-items: center; line-height: 1; }
.header-city svg { margin-top: 0 !important; }
.header-right { display: flex; align-items: center; gap: .5rem; flex-wrap: nowrap !important; }

.oki-navwrap { height: var(--header-row-h); display: flex; align-items: center; justify-content: center; min-width: 0; gap: .30rem; }
.oki-nav { height: var(--header-row-h); display: flex; align-items: center; gap: .72rem; overflow-x: auto; scroll-behavior: smooth; padding: .08rem .08rem .22rem; min-width: 0; white-space: nowrap; -ms-overflow-style: none; scrollbar-width: none; }
.oki-nav::-webkit-scrollbar { display: none; }

.nav-link { position: relative; transition: color 0.22s ease; color: rgba(246,239,232,.76); font-size: .88rem; display: inline-flex; align-items: center; height: var(--header-row-h); line-height: 1; margin: 0; }
.nav-link::after { content: ""; position: absolute; bottom: -4px; left: 0; width: 0%; height: 2px; background-color: var(--gold); transition: width 0.22s ease; border-radius: 999px; box-shadow: 0 10px 24px rgba(255,207,139,.18); }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link.active { color: var(--gold); text-shadow: 0 0 8px rgba(255,170,90,.45); }

.oki-nav-arrow { width: 28px; height: 28px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(241,227,214,.18); background: rgba(0,0,0,.22); color: rgba(246,239,232,.88); transition: all .16s ease; flex: 0 0 auto; }
.oki-nav-arrow svg { width: 14px; height: 14px; }
.oki-nav-arrow:hover { background: rgba(241,227,214,.08); border-color: rgba(255,207,139,.28); transform: translateY(-1px); }
.oki-nav-arrow.is-gone { opacity: 0; pointer-events: none; transform: none; }

/* Buttons & Badges */
.oki-btn { display: inline-flex; align-items: center; gap: .45rem; padding: .48rem .88rem; border-radius: 9999px; border: 1px solid var(--line2); background-color: rgba(20,18,16,.78); color: rgba(246,239,232,.88); font-size: .90rem; font-weight: 650; box-shadow: 0 10px 26px rgba(0,0,0,.28); transition: all .18s ease; white-space: nowrap; }
.oki-btn:hover { border-color: rgba(255,200,120,.55); color: #fff; background: linear-gradient(180deg, rgba(255,190,120,.18), rgba(255,150,80,.15)); transform: translateY(-1px); }
.oki-btn-icon { width: 18px; height: 18px; opacity: .80; transition: opacity .18s ease; }
.oki-btn:hover .oki-btn-icon { opacity: 1; }

.oki-accent, .bg-primary { background: linear-gradient(180deg, #FFA64D, #FF8C3A) !important; border-color: rgba(242,140,40,.55) !important; color: #fff !important; box-shadow: 0 0 35px rgba(255,150,70,.35), 0 18px 44px rgba(242,140,40,.25) !important; }
.oki-accent .oki-btn-icon { opacity: .95; }
.oki-accent:hover, .bg-primary:hover, #checkoutBtn:hover, #getCodeBtn:hover, #submitCodeBtn:hover, #addToCartBtn:hover { background: linear-gradient(180deg, #FFB86A, #FFA050) !important; transform: translateY(-1px); filter: saturate(1.05); }

.oki-badge { position: absolute; top: -0.4rem; right: -0.4rem; background-color: var(--gold); color: rgba(15,14,13,.92); font-size: .72rem; font-weight: 900; padding: .1rem .38rem; border-radius: 9999px; box-shadow: 0 14px 26px rgba(255,207,139,.22); border: 1px solid rgba(241,227,214,.25); }

/* Inputs */
input, textarea { background: rgba(10,9,9,.55) !important; border-color: rgba(241,227,214,.18) !important; color: var(--ink) !important; }
textarea { resize: none; }
input::placeholder, textarea::placeholder { color: rgba(246,239,232,.55); }
input:focus, textarea:focus { outline: none !important; box-shadow: 0 0 0 3px rgba(255,207,139,.18) !important; border-color: rgba(255,207,139,.35) !important; }

/* Modals & Cookie Banner */
#cartDrawer, #ordersDrawer, #productModal, #cityModal, #loginModal, #deliveryAddressModal, #pickupAddressModal, #timeModal, #confirmDeleteModal, #confirmCancelModal { background-color: rgba(0,0,0,.62) !important; backdrop-filter: blur(4px); }
#cartDrawer .bg-white, #ordersDrawer .bg-white, #productModalPanel, #cityModal .bg-white, #loginModal .bg-white, #deliveryAddressModal > div, #pickupAddressModal > div, #timeModal > div, #confirmDeleteModal > div, #confirmCancelModal > div {
    border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0,0,0,.62);
    background: radial-gradient(900px 320px at 10% 0%, rgba(255,207,139,.08), transparent 60%), linear-gradient(180deg, rgba(20,18,16,.98), rgba(20,18,16,.92)) !important;
}
#checkoutBtn, #getCodeBtn, #submitCodeBtn, #addToCartBtn { background: linear-gradient(180deg, var(--ember), var(--ember2)) !important; border: 1px solid rgba(242,140,40,.55) !important; box-shadow: 0 18px 48px rgba(242,140,40,.22); }
.cookie-card { border: 1px solid rgba(241,227,214,.18); background: radial-gradient(900px 320px at 10% 0%, rgba(255,207,139,.10), transparent 60%), linear-gradient(180deg, rgba(20,18,16,.95), rgba(20,18,16,.90)); backdrop-filter: blur(10px); box-shadow: 0 25px 70px rgba(0,0,0,.55), 0 0 35px rgba(255,170,90,.15); }
.cookie-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.cookie-btn { padding: .55rem 1.2rem; border-radius: 9999px; font-size: .85rem; font-weight: 700; background: linear-gradient(180deg, var(--ember), var(--ember2)); border: 1px solid rgba(242,140,40,.55); box-shadow: 0 0 20px rgba(255,170,90,.25), 0 12px 30px rgba(242,140,40,.30); transition: all .2s ease; }
.cookie-btn:hover { transform: translateY(-1px); box-shadow: 0 0 30px rgba(255,170,90,.35), 0 18px 50px rgba(242,140,40,.40); }

/* Bottom Navigation */
#mobileBottomNav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20000; padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 769px) { #mobileBottomNav { display: none !important; } }
#mobileBottomNav .nav-shell { height: var(--bottom-nav-h, 56px); border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(28,18,14,.78), rgba(28,18,14,.96)); backdrop-filter: blur(14px); }
#mobileBottomNav .nav-btn { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; flex: 1; height: 100%; color: rgba(246,239,232,.82); font-weight: 650; font-size: 10px; user-select: none; transition: color 0.2s ease, flex 0.3s ease; }
#mobileBottomNav .nav-btn:active { transform: scale(.98); }
#mobileBottomNav .nav-ico { width: 20px; height: 20px; opacity: .92; }
#mobileBottomNav .nav-btn.is-accent { color: var(--gold); }
#mobileBottomNav .nav-btn.hidden { display: none !important; }
#mobileBottomNav .nav-badge { position: absolute; top: 4px; right: 50%; margin-right: -18px; min-width: 16px; height: 16px; display: inline-flex; align-items: center; justify-content: center; padding: 0 4px; border-radius: 999px; background: var(--gold); color: rgba(15,14,13,.92); font-size: 9px; font-weight: 900; border: 1px solid rgba(241,227,214,.25); }

/* --- SPECIFIC PAGES ELEMENTS --- */
/* Footer */
footer { background: rgba(12,11,11,.65) !important; border-top: 1px solid var(--line) !important; }

/* Home / City Page */
.product-card { border-radius: 1.25rem; border: 1px solid var(--line); background: radial-gradient(600px 250px at 10% 0%, rgba(255,180,110,.18), transparent 60%), linear-gradient(180deg, #3A261E 0%, #2E1F18 100%); box-shadow: 0 18px 46px rgba(0,0,0,.35); transition: all 0.18s ease; overflow: hidden; }
.product-card:hover { box-shadow: 0 0 35px rgba(255,170,90,.18), 0 26px 70px rgba(0,0,0,.40); border-color: rgba(255,200,140,.35); transform: translateY(-3px); background: radial-gradient(700px 260px at 12% 0%, rgba(255,200,130,.25), transparent 60%), linear-gradient(180deg, #4A3025 0%, #3A261E 100%); }
.product-card img { background: var(--smoke); border: 1px solid rgba(241,227,214,.16); box-shadow: 0 18px 40px rgba(0,0,0,.40); }
.oki-hero { border-radius: 1.75rem; color: #fff; border: 1px solid rgba(255,210,160,.25); background: radial-gradient(1100px 600px at 50% -10%, rgba(255,210,150,.35), transparent 70%), radial-gradient(800px 500px at 15% 0%, rgba(255,170,100,.25), transparent 65%), linear-gradient(180deg, #4A3025 0%, #3A261E 100%); box-shadow: 0 0 70px rgba(255,170,90,.18), 0 30px 90px rgba(0,0,0,.40); overflow: hidden; }
.oki-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .7rem; border-radius: 999px; border: 1px solid rgba(241,227,214,.20); background: rgba(0,0,0,.22); color: rgba(246,239,232,.92); font-weight: 750; font-size: .85rem; }
.oki-hero-media { border-radius: 1.25rem; border: 1px solid rgba(241,227,214,.16); background: radial-gradient(110% 140% at 0% 0%, rgba(255,207,139,.16), rgba(0,0,0,.10)); box-shadow: 0 18px 46px rgba(0,0,0,.45); overflow: hidden; }
#productModalPanel .lg\:w-1\/2:last-child { background: linear-gradient(180deg, rgba(35,22,17,.98), rgba(25,16,12,.95)); }
#productName { color: var(--gold) !important; text-shadow: 0 0 10px rgba(255,170,90,.25); }
#productDesc { color: rgba(246,239,232,.75) !important; }
#nutritionInfoBtn { background: rgba(0,0,0,.35); border-color: rgba(241,227,214,.18) !important; color: var(--gold) !important; }
#sizeButtons button { background: rgba(10,9,9,.45); border-color: rgba(241,227,214,.18) !important; color: var(--ink); }
#sizeButtons button.bg-orange-500 { background: linear-gradient(180deg, var(--ember), var(--ember2)) !important; border-color: rgba(242,140,40,.55) !important; }
#selectedChips .bg-gray-100 { background: rgba(241,227,214,.08) !important; border: 1px solid rgba(241,227,214,.14); }
#addIngredients button { background: rgba(15,12,10,.55); border-color: rgba(241,227,214,.16); }
#addIngredients button.border-orange-500 { background: linear-gradient(180deg, rgba(255,160,80,.22), rgba(255,120,60,.18)); }

/* Profile Page */
.profile-card { border-radius: 1.5rem; border: 1px solid var(--line); background: radial-gradient(900px 320px at 10% 0%, rgba(255,207,139,.06), transparent 60%), linear-gradient(180deg, rgba(20,18,16,.92), rgba(20,18,16,.86)); box-shadow: 0 22px 70px rgba(0,0,0,.42); }
.profile-title { color: var(--gold); text-shadow: 0 0 10px rgba(255,170,90,.22); }
.muted { color: var(--muted2); }
.oki-switch { width: 46px; height: 26px; border-radius: 999px; background: rgba(241,227,214,.14); border: 1px solid rgba(241,227,214,.18); position: relative; transition: all .18s ease; flex: 0 0 auto; }
.oki-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 999px; background: rgba(246,239,232,.85); transition: all .18s ease; box-shadow: 0 10px 22px rgba(0,0,0,.35); }
input[type="checkbox"]:checked + .oki-switch { background: rgba(242,140,40,.35); border-color: rgba(242,140,40,.55); }
input[type="checkbox"]:checked + .oki-switch::after { transform: translateX(20px); background: var(--gold); }

/* Order & Checkout */
main > section.bg-white, main > aside.bg-white { border: 1px solid var(--line); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
#orderItems > div { background: radial-gradient(600px 250px at 10% 0%, rgba(255,180,110,.14), transparent 60%), linear-gradient(180deg, #3A261E 0%, #2E1F18 100%) !important; border-color: var(--line) !important; box-shadow: 0 18px 46px rgba(0,0,0,.22) !important; }
#orderItems img { background: var(--smoke); border: 1px solid rgba(241,227,214,.16); box-shadow: 0 18px 40px rgba(0,0,0,.32); }
.step-item {
    min-width: 0;
}
.step-item .step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: 999px;
    border: 1.5px solid rgba(241,227,214,.22) !important;
    background: linear-gradient(180deg, rgba(18,14,12,.96), rgba(38,26,21,.92)) !important;
    color: rgba(246,239,232,.72) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.03), 0 8px 20px rgba(0,0,0,.22);
    transition: all 0.25s ease;
}
.step-item .step-text,
.step-item span {
    color: rgba(246,239,232,.64) !important;
    transition: color 0.25s ease, opacity 0.25s ease;
}
.step-item.completed .step-circle {
    background: linear-gradient(180deg, #FFA64D, #F28C28) !important;
    border-color: rgba(255,180,90,.8) !important;
    color: #fff !important;
    box-shadow: 0 0 18px rgba(242,140,40,.24), 0 10px 28px rgba(0,0,0,.24);
}
.step-item.active .step-circle {
    background: radial-gradient(circle at 50% 35%, rgba(255,223,170,.26), rgba(255,175,90,.16) 45%, rgba(38,26,21,.96) 100%) !important;
    color: var(--gold) !important;
    border-color: rgba(255,207,139,.85) !important;
    transform: scale(1.06);
    box-shadow: 0 0 0 4px rgba(255,207,139,.08), 0 0 18px rgba(255,207,139,.20), 0 10px 26px rgba(0,0,0,.24);
}
.step-item.completed .step-text,
.step-item.completed span,
.step-item.active .step-text,
.step-item.active span {
    color: var(--gold) !important;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255,207,139,.16);
}
.step-item.cancelled .step-circle {
    background: linear-gradient(180deg, #ff6668, #ef4444) !important;
    border-color: #ff7c7d !important;
    color: #fff !important;
    box-shadow: 0 0 18px rgba(239,68,68,.20);
}
.step-item.cancelled .step-text {
    color: #ff8f90 !important;
    font-weight: 800;
}
nav#orderSteps .h-\[2px\], nav#checkoutSteps .h-\[2px\] {
    background: linear-gradient(90deg, rgba(241,227,214,.12), rgba(255,207,139,.2), rgba(241,227,214,.12)) !important;
    border-radius: 999px;
}
@media (min-width: 769px) {
    nav#orderSteps,
    nav#checkoutSteps {
        gap: .5rem !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
    }
    .step-item {
        gap: .55rem !important;
    }
    .step-item .step-circle {
        width: 2.5rem;
        height: 2.5rem;
        font-size: .95rem !important;
    }
    .step-item .step-text,
    .step-item span {
        font-size: .88rem !important;
        white-space: nowrap;
    }
    nav#orderSteps .h-\[2px\],
    nav#checkoutSteps .h-\[2px\] {
        width: 2.25rem !important;
        flex: 0 0 2.25rem !important;
        margin: 0 .1rem !important;
    }
}
#closeDeliveryModalBtn, #closePickupModalBtn { background: rgba(0,0,0,.30) !important; border: 1px solid rgba(241,227,214,.18) !important; color: rgba(246,239,232,.88) !important; }
#closeDeliveryModalBtn:hover, #closePickupModalBtn:hover { background: rgba(241,227,214,.08) !important; }
#yandexMap { width: 100%; height: 100%; min-height: 45vh; background: rgba(10,9,9,.55); border-radius: 12px; position: relative; z-index: 1; border: 1px solid rgba(241,227,214,.16); }
.map-loader { background: rgba(10,9,9,.65) !important; }
.delivery-left-panel { background: radial-gradient(700px 260px at 10% 0%, rgba(255,207,139,.10), transparent 60%), linear-gradient(180deg, rgba(20,18,16,.98), rgba(20,18,16,.92)) !important; border: 1px solid var(--line); border-radius: 16px; padding: 20px; width: 100%; max-width: 360px; max-height: 75vh; overflow-y: auto; box-shadow: 0 20px 60px rgba(0,0,0,.45); z-index: 20; }
.address-item { border: 1px solid rgba(241,227,214,.16); border-radius: 12px; padding: 10px 14px; transition: all 0.2s ease; background: rgba(0,0,0,.16); }
.address-item:hover { background: rgba(241,227,214,.08); border-color: rgba(255,207,139,.35); transform: translateY(-2px); }
.address-item.selected { background: rgba(255,207,139,.10); border-color: rgba(255,207,139,.55); }
.zoom-btn, .locate-btn { width: 36px; height: 36px; border: 1px solid rgba(241,227,214,.18); border-radius: 50%; background: rgba(0,0,0,.30); color: rgba(246,239,232,.92); display: flex; align-items: center; justify-content: center; font-weight: 900; box-shadow: 0 12px 30px rgba(0,0,0,.35); transition: all 0.2s; }
.zoom-btn:hover, .locate-btn:hover { background: rgba(241,227,214,.08); border-color: rgba(255,207,139,.35); transform: translateY(-1px); }
#cancelCancelBtn { border-color: var(--line2) !important; background: rgba(0,0,0,.18) !important; color: rgba(246,239,232,.88) !important; }
#cancelCancelBtn:hover { background: rgba(241,227,214,.08) !important; }
#toastContainer > div { border: 1px solid rgba(241,227,214,.18); box-shadow: 0 18px 50px rgba(0,0,0,.35); }

/* More Page */
.prose-like p { margin: .65rem 0; }
.legal-pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; line-height: 1.5; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); }
.more-sticky { top: 50vh; transform: translateY(-50%); max-height: calc(100vh - 140px); overflow: auto; scrollbar-width: none; }
.more-sticky::-webkit-scrollbar { display: none; }
.more-link.active { outline: 2px solid rgba(255,207,139,.45); box-shadow: 0 0 0 6px rgba(255,207,139,.10); }
.consent-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.consent-link:hover { opacity: .9; }

/* Animations */
@keyframes fadeIn { 0% { opacity: 0 } 100% { opacity: 1 } }
@keyframes scaleIn { 0% { transform: scale(0.95); opacity: 0 } 100% { transform: scale(1); opacity: 1 } }
.animate-fadeIn { animation: fadeIn 0.25s ease-out forwards; }
.animate-scaleIn { animation: scaleIn 0.25s ease-out forwards; }

/* =========================================
   MEDIA QUERIES (Mobile responsiveness)
   ========================================= */
@media (max-width: 1400px) {
    .header-right .oki-btn { padding: .44rem .62rem; }
    .header-right .oki-btn > span:not(.oki-badge) { display: none; }
}

@media (max-width: 768px) {
    body { padding-bottom: calc(var(--bottom-nav-h, 56px) + env(safe-area-inset-bottom)); }
    header { position: static !important; top: auto !important; }
    header .header-inner { display: flex; flex-direction: column; gap: .45rem; padding-top: .55rem; padding-bottom: .45rem; }
    .header-left { width: 100%; justify-content: space-between; align-items: center; gap: 0.5rem; }
    .header-right { display: none !important; }
    .header-city { height: auto; padding: .35rem .65rem; border: 1px solid rgba(241,227,214,.18); border-radius: 999px; background: rgba(0,0,0,.20); }
    #cartDrawer .absolute, #ordersDrawer .absolute { padding-bottom: calc(var(--bottom-nav-h, 56px) + env(safe-area-inset-bottom)) !important; }
    #mobileCategoryBarMount { position: sticky; top: 0; z-index: 40 !important; background: linear-gradient(180deg, rgba(42,26,19,.96) 0%, rgba(34,20,15,.95) 100%); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0,0,0,.35); margin-left: -16px !important; margin-right: -16px !important; width: auto !important; overflow: clip; box-sizing: border-box; }
    #mobileCategoryBarMount .oki-navwrap { height: auto !important; padding: 0.45rem 0 !important; width: 100%; justify-content: flex-start; min-width: 0; }
    .oki-nav { height: auto !important; width: 100%; padding: 0 !important; gap: 0.6rem !important; scroll-snap-type: x mandatory; min-width: 0; }
    .nav-link:first-child { margin-left: 0 !important; } .nav-link:last-child { margin-right: 0 !important; }
    .nav-link { height: auto !important; line-height: normal !important; padding: 0.6rem 1.3rem !important; font-size: 0.95rem !important; font-weight: 600 !important; color: rgba(246,239,232,.95) !important; border-radius: 999px; border: 1px solid rgba(241,227,214,.14) !important; background: rgba(0,0,0,.18) !important; scroll-snap-align: start; flex: 0 0 auto; }
    .nav-link.active { color: var(--gold) !important; text-shadow: 0 0 8px rgba(255,170,90,.45) !important; border-color: rgba(255,207,139,.4) !important; background: rgba(255,207,139,.08) !important; }
    .nav-link::after, .oki-nav::after { display: none !important; }
    .oki-nav-arrow { display: none !important; }
    .oki-hero h1 { line-height: 1.15 !important; }
    .oki-hero p{
        line-height:1.6;
        text-shadow:0 1px 4px rgba(0,0,0,.6);
        color:rgba(255,255,255,.92);
    }
    .hero-text-bg{
        background:rgba(0,0,0,.35);
        backdrop-filter:blur(6px);
        padding:12px;
        border-radius:12px;
    }
    .oki-hero .hero-actions, .oki-hero .hero-features { display: none !important; }
    .oki-hero .hero-chips .oki-chip:nth-child(3) { display: none !important; }
    #productModalPanel { bottom: calc(var(--bottom-nav-h, 56px) + env(safe-area-inset-bottom)) !important; max-height: calc(92vh - var(--bottom-nav-h, 56px)) !important; height: calc(92vh - var(--bottom-nav-h, 56px)) !important; }
    .more-sticky { top: auto; transform: none; max-height: none; overflow: visible; }
    #pickupAddressModal, #timeModal, #confirmDeleteModal, #confirmCancelModal { align-items: flex-end !important; }
    #pickupAddressModal > div, #timeModal > div, #confirmDeleteModal > div, #confirmCancelModal > div { width: 100% !important; margin: 0 !important; max-height: 85vh !important; border-radius: 24px 24px 0 0 !important; border-bottom: none !important; padding-bottom: env(safe-area-inset-bottom); transform: translateY(100%); animation: slideUpSheet 0.3s ease-out forwards; }
    @keyframes slideUpSheet { to { transform: translateY(0); } }
    #deliveryAddressModal > div { width: 100% !important; height: 100dvh !important; max-width: none !important; border-radius: 0 !important; margin: 0 !important; }
    #closeDeliveryModalBtn { top: calc(env(safe-area-inset-top, 16px) + 16px) !important; }
    .delivery-left-panel { width: 100% !important; max-width: 100% !important; left: 0 !important; bottom: 0 !important; border-radius: 24px 24px 0 0 !important; max-height: 55vh !important; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
    #zoomControls { top: auto !important; bottom: calc(55vh + 20px) !important; transform: none !important; }
    .checkout-sticky-footer { padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important; border-radius: 24px 24px 0 0; }
    #orderItems { max-height: none !important; overflow: visible !important; }
}

@media (max-width: 480px) {
    /* Общие фиксы для зума */
    input, textarea, select { font-size: 16px !important; }
    header img { max-width: 120px !important; }

    /* Отступы для основных блоков */
    main .p-6, main .md\:p-8, .profile-card { padding: 1.25rem !important; }
    #productModalPanel, #loginModal > div { margin-left: 0.5rem !important; margin-right: 0.5rem !important; width: calc(100% - 1rem) !important; }
    .oki-chip { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
    .legal-pre { padding: 1rem !important; font-size: 11px !important; word-break: break-all !important; }

    /* ==================================== */
    /* ИСПРАВЛЕНИЯ ДЛЯ CHECKOUT.HTML        */
    /* ==================================== */
    /* Возвращаем место: уменьшаем огромные паддинги карточек */
    main > section.bg-white, main > aside.bg-white {
        padding: 1.25rem !important;
        border-radius: 20px !important;
    }

    /* Шапка: центрируем контент */
    header > div { padding: 0.75rem 0.5rem !important; gap: 0.75rem !important; }
    header img { margin: 0 auto; }

    /* Шаги заказа: темные, аккуратные и без белых кружков */
    nav#orderSteps, nav#checkoutSteps {
        gap: 0.2rem !important;
        justify-content: space-between !important;
        align-items: flex-start !important;
        width: 100%;
        padding-left: 0.1rem;
        padding-right: 0.1rem;
        overflow-x: auto;
        flex-wrap: nowrap !important;
    }
    .step-item {
        gap: 0.28rem !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        flex: 1 1 0;
    }
    .step-circle {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px !important;
        font-size: 0.74rem !important;
        border-width: 1.5px !important;
    }
    .step-text, .step-item span {
        font-size: 0.58rem !important;
        line-height: 1.15 !important;
        margin-top: 0 !important;
        text-align: center;
        max-width: 52px;
        white-space: normal !important;
    }
    nav#orderSteps .h-\[2px\], nav#checkoutSteps .h-\[2px\] {
        width: 100% !important;
        min-width: 10px !important;
        flex: 1 1 10px !important;
        margin-top: 12px !important;
    }

    /* Сетка: Имя и Телефон ставим друг под другом */
    .grid.md\:grid-cols-2 { grid-template-columns: 1fr !important; }

    /* Кнопки внизу (Отменить заказ и На главную) — в столбик, кнопка на всю ширину */
    section.bg-white > .flex.justify-between.items-center.mt-6 { flex-direction: column-reverse !important; gap: 1rem !important; align-items: stretch !important; }
    #cancelOrderBtn { width: 100% !important; text-align: center; justify-content: center; }

    /* Размер шрифта заголовка заказа */
    #orderTitle { font-size: 1.5rem !important; }
}

/* =========================================
   ПОЗИЦИОНИРОВАНИЕ БАННЕРА COOKIE
   ========================================= */

#cookieBanner {
    /* Делаем его выше всех модалок и нижнего меню (у меню z-index: 20000) */
    z-index: 20001 !important;
}

@media (max-width: 768px) {
    #cookieBanner {
        /* Поднимаем баннер на высоту нижнего меню + безопасная зона iPhone + отступ 16px */
        bottom: calc(var(--bottom-nav-h) + env(safe-area-inset-bottom) + 16px) !important;
    }
}
#orderItems {
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* Заставляем все внутренние flex-контейнеры заказа сужаться, а не растягивать экран */
#orderItems * {
    min-width: 0;
}

/* =========================================
   СТИЛИ КНОПОК ВРЕМЕНИ И АДРЕСА
   ========================================= */
.timeBtn.bg-orange-50 {
    /* Меняем блеклую кнопку на насыщенную для стиля сайта */
    background: linear-gradient(180deg, var(--ember), var(--ember2)) !important;
    color: #fff !important;
    border-color: rgba(242,140,40,.55) !important;
    box-shadow: 0 10px 24px rgba(242,140,40,.35) !important;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* =========================================
   СВОРАЧИВАНИЕ ПАНЕЛИ КАРТЫ
   ========================================= */
.delivery-left-panel {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ПК версия: панель ВСЕГДА полностью развернута, ручка скрыта */
@media (min-width: 769px) {
    .delivery-left-panel.panel-half,
    .delivery-left-panel.panel-minimized {
        transform: none !important;
    }
    #mobilePanelHandle { display: none !important; }
}

/* Мобильная версия: 3 состояния (Открыто, Половина, Скрыто) */
@media (max-width: 768px) {
    #deliveryAddressModal > div {
        height: 100vh !important;
        max-height: 100vh !important;
        border-radius: 0 !important;
    }
    #yandexMap { border-radius: 0 !important; }

    /* Промежуточное состояние: скрыть наполовину */
    .delivery-left-panel.panel-half {
        transform: translateY(45%) !important;
    }
    /* Минимизированное состояние: видна только ручка и кнопка "Добавить" (оставляем ~65px) */
    .delivery-left-panel.panel-minimized {
        transform: translateY(calc(100% - 65px)) !important;
    }
}

/* =========================================
   EXTRA MOBILE FIXES FOR CHECKOUT / ORDER
   ========================================= */

/* Общие анти-переполнения для checkout/order */
main,
main > section,
main > aside,
main > section > div,
main > aside > div,
#orderItems > div,
#orderItems > div > div {
    min-width: 0;
}

@media (max-width: 768px) {
    /* Страницы checkout/order: одна колонка без горизонтального скролла */
    main {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    main > section.bg-white,
    main > aside.bg-white {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 20px !important;
        padding: 1rem !important;
    }

    /* Если summary/sidebar был sticky справа на десктопе */
    main > aside,
    .checkout-sticky,
    .order-sticky,
    .sticky-summary,
    .cart-summary {
        position: static !important;
        top: auto !important;
    }

    /* Сетки формы и итогов — в одну колонку */
    .grid,
    .grid.md\:grid-cols-2,
    .grid.lg\:grid-cols-2,
    .grid.lg\:grid-cols-3,
    .grid.xl\:grid-cols-2,
    .grid.xl\:grid-cols-3 {
        grid-template-columns: minmax(0, 1fr) !important;
    }

    /* Любые горизонтальные action-блоки пусть переносятся */
    .flex.justify-between,
    .flex.items-center.justify-between,
    .flex.gap-2,
    .flex.gap-3,
    .flex.gap-4,
    .flex.gap-6 {
        flex-wrap: wrap;
    }

    /* Кнопки и ссылки-действия — на всю ширину, если тесно */
    button,
    .oki-btn,
    .bg-primary,
    #checkoutBtn,
    #cancelOrderBtn,
    #repeatOrderBtn,
    a.oki-btn {
        max-width: 100%;
    }

    .checkout-sticky-footer {
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
    }

    .checkout-sticky-footer .flex,
    .checkout-sticky-footer .items-center {
        flex-wrap: wrap;
    }

    .checkout-sticky-footer button,
    .checkout-sticky-footer .oki-btn,
    .checkout-sticky-footer a,
    .checkout-sticky-footer [role="button"] {
        width: 100%;
        justify-content: center;
    }

    /* Карточки товаров заказа не должны раздвигать экран */
    #orderItems > div {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden;
    }

    #orderItems img {
        width: 72px !important;
        min-width: 72px !important;
        height: 72px !important;
        object-fit: cover;
    }

    #orderItems .flex,
    #orderItems [class*="flex"] {
        min-width: 0;
    }

    #orderItems .truncate,
    #orderItems h3,
    #orderItems h4,
    #orderItems p,
    #orderItems span {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    /* Поля формы: убираем залипание в 2 колонки */
    form .grid,
    form .md\:grid-cols-2,
    form .lg\:grid-cols-2 {
        grid-template-columns: 1fr !important;
    }

    input,
    textarea,
    select {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Шаги — компактнее и пригодны для 360-390px */
    nav#orderSteps,
    nav#checkoutSteps {
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 2px;
    }

    nav#orderSteps::-webkit-scrollbar,
    nav#checkoutSteps::-webkit-scrollbar {
        display: none;
    }

    .step-item {
        flex: 0 0 auto;
    }

    .step-item .step-text,
    .step-item span {
        max-width: 72px;
        text-align: center;
        white-space: normal !important;
        line-height: 1.2 !important;
    }
}

@media (max-width: 480px) {
    /* Ещё плотнее на маленьких телефонах */
    main > section.bg-white,
    main > aside.bg-white {
        padding: .875rem !important;
        border-radius: 18px !important;
    }

    #orderItems > div {
        padding: .75rem !important;
    }

    #orderItems img {
        width: 64px !important;
        min-width: 64px !important;
        height: 64px !important;
    }

    .checkout-sticky-footer {
        padding-left: .875rem !important;
        padding-right: .875rem !important;
    }

    .step-item .step-text,
    .step-item span {
        max-width: 56px;
    }
}
/* =========================================
   FREE GIFT SLIDER
   ========================================= */
#freeGiftSection {
    min-width: 0;
}

#freeGiftOptions.free-gift-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 6px 2px 10px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    overscroll-behavior-x: contain;
    min-width: 0;
}

#freeGiftOptions.free-gift-slider::-webkit-scrollbar {
    height: 6px;
}

#freeGiftOptions.free-gift-slider::-webkit-scrollbar-thumb {
    background: rgba(242, 140, 40, 0.45);
    border-radius: 999px;
}

#freeGiftOptions .free-gift-card {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
    scroll-snap-align: start;
    box-shadow: 0 8px 24px rgba(0,0,0,0.16);
    border-radius: 20px;
    min-height: 96px;
    align-items: center;
    box-sizing: border-box;
}

#freeGiftOptions .free-gift-card img {
    width: 64px;
    height: 64px;
    min-width: 64px;
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

#freeGiftOptions .free-gift-card .min-w-0 {
    min-width: 0;
}

#freeGiftOptions .free-gift-card .text-grayDark {
    line-height: 1.2;
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* Планшет */
@media (max-width: 1024px) {
    #freeGiftOptions .free-gift-card {
        flex: 0 0 290px;
        min-width: 290px;
        max-width: 290px;
    }
}

/* Мобилка: карточки ШИРЕ, листаются, видно кусок следующей */
@media (max-width: 640px) {
  #freeGiftOptions.free-gift-slider {
    gap: 10px;
    padding: 4px 0 10px;
    scroll-padding-left: 0;
  }

  #freeGiftOptions .free-gift-card {
    flex: 0 0 58%;
    min-width: 58%;
    max-width: 58%;
    padding: 12px 12px;
    border-radius: 18px;
    align-items: center;
    gap: 10px;
    min-height: 96px;
  }

  #freeGiftOptions .free-gift-card img {
    width: 50px;
    height: 50px;
    min-width: 50px;
    border-radius: 12px;
  }

  #freeGiftOptions .free-gift-card .text-grayDark {
    font-size: 0.82rem !important;
    line-height: 1.18 !important;
    word-break: keep-all !important;
    overflow-wrap: break-word !important;
    hyphens: none;
  }

  #freeGiftOptions .free-gift-card .text-xs,
  #freeGiftOptions .free-gift-card .text-sm {
    font-size: 0.72rem !important;
    line-height: 1.12 !important;
  }

  #freeGiftOptions .free-gift-card .w-5.h-5 {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
  }

  #freeGiftOptions .free-gift-card .w-2\.5.h-2\.5 {
    width: 8px !important;
    height: 8px !important;
  }
}

/* ~400px: ещё чуть шире */
@media (max-width: 420px) {
  #freeGiftOptions .free-gift-card {
    flex: 0 0 62%;
    min-width: 62%;
    max-width: 62%;
    padding: 11px 10px;
    gap: 9px;
  }

  #freeGiftOptions .free-gift-card img {
    width: 46px;
    height: 46px;
    min-width: 46px;
  }

  #freeGiftOptions .free-gift-card .text-grayDark {
    font-size: 0.78rem !important;
    line-height: 1.14 !important;
  }
}

/* Очень маленькие экраны */
@media (max-width: 360px) {
  #freeGiftOptions .free-gift-card {
    flex: 0 0 68%;
    min-width: 68%;
    max-width: 68%;
  }
}