:root{
  --wb:#bb1630;--wb2:#d91d3d;--bg:#fafafa;--white:#fff;
  --text:#1d1d1f;--sub:#737378;--border:rgba(29,29,31,.09);--shadow:0 1px 2px rgba(29,29,31,.04),0 8px 24px rgba(29,29,31,.05);
  --radius:14px;--hh:96px;--bnh:56px;
  --font:-apple-system,BlinkMacSystemFont,'SF Pro Text','Segoe UI',sans-serif;
}
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;}
html{overflow-x:hidden;max-width:100%;}
body{font-family:var(--font);background:#fff;color:var(--text);min-height:100vh;overflow-x:hidden;max-width:100%;padding-bottom:calc(var(--bnh) + env(safe-area-inset-bottom) + 10px);}
@media(min-width:768px){body{padding-bottom:0;}}
button{cursor:pointer;font-family:inherit;-webkit-tap-highlight-color:transparent;}
a{text-decoration:none;color:inherit;}
img{max-width:100%;display:block;}

/* ── PRELOADER ── */
#preloader{position:fixed;inset:0;z-index:9999;background:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;transition:opacity .5s ease;}
.pl-body{text-align:center;}
.pl-label{font-size:.6rem;color:var(--sub);letter-spacing:.24em;text-transform:uppercase;margin-bottom:7px;animation:plUp .7s ease both;}
.pl-name{font-size:2.4rem;font-weight:900;color:var(--text);letter-spacing:.01em;line-height:1;animation:plUp .8s .1s ease both;}
.pl-name b{color:var(--wb);font-style:normal;}
.pl-line{width:36px;height:2px;background:var(--wb);border-radius:1px;margin:12px auto 0;transform:scaleX(0);transform-origin:center;animation:plLine .55s .55s ease both;}
.pl-bar{width:150px;height:4px;background:rgba(29,29,31,.08);border-radius:99px;overflow:hidden;animation:plUp .6s .25s ease both;}
.pl-fill{height:100%;width:0;background:linear-gradient(90deg,var(--wb2),var(--wb));animation:plFill 1.15s .4s cubic-bezier(.4,0,.2,1) forwards;}
.pl-note{font-size:.58rem;color:var(--sub);letter-spacing:.1em;animation:plUp .6s .65s ease both;}
@keyframes plFill{to{width:100%;}}
@keyframes plUp{from{opacity:0;transform:translateY(7px);}to{opacity:1;transform:none;}}
@keyframes plLine{to{transform:scaleX(1);}}

/* ── HEADER ── */
.wb-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.86);backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%);border-bottom:1px solid rgba(255,255,255,.7);box-shadow:none;}
.wb-header-inner{display:flex;align-items:center;gap:10px;height:60px;padding:0 16px;max-width:1280px;margin:0 auto;}
.wb-logo{background:none;border:none;font-size:.98rem;font-weight:820;letter-spacing:-.02em;color:var(--text);flex-shrink:0;}
.wb-logo span{color:var(--wb);}
.wb-search-wrap{flex:1;position:relative;max-width:480px;}
.wb-search{width:100%;border:1px solid var(--border);border-radius:14px;padding:9px 34px 9px 14px;font-size:.86rem;outline:none;background:#f6f6f8;transition:border-color .18s,background .18s;font-family:var(--font);}
.wb-search:focus{border-color:var(--wb);background:#fff;}
.wb-search-btn{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:none;background:none;padding:0;cursor:pointer;color:var(--sub);}
.wb-search-btn svg{width:15px;height:15px;display:block;}
.wb-actions{display:flex;align-items:center;gap:8px;flex-shrink:0;}
.wb-act-btn{display:flex;align-items:center;gap:5px;border:1px solid var(--border);border-radius:14px;padding:8px 12px;font-size:.74rem;font-weight:700;background:rgba(255,255,255,.82);color:var(--text);transition:transform .11s ease-out,border-color .16s,color .16s;white-space:nowrap;min-height:44px;}
.wb-act-btn:hover{border-color:var(--wb);color:var(--wb);}
.wb-act-btn:active{transform:scale(.965);}
.wb-act-btn svg{width:18px;height:18px;flex-shrink:0;}
.wb-badge{position:absolute;top:-6px;right:-8px;background:var(--wb);color:#fff;border-radius:99px;padding:1px 5px;font-size:.6rem;font-weight:800;min-width:17px;text-align:center;display:none;border:2px solid #fff;}
.wb-badge.show{display:inline-block;}
.wb-bnav-cart-inner{position:relative;}
.wb-delivery-strip{background:transparent;border-top:1px solid var(--border);padding:8px 16px;display:flex;align-items:center;gap:8px;font-size:.72rem;color:var(--sub);overflow-x:auto;white-space:nowrap;scrollbar-width:none;}
.wb-delivery-strip::-webkit-scrollbar{display:none;}
.wb-delivery-strip b{color:var(--text);}
.wb-ds-sep{color:var(--border);opacity:.7;}

/* ── HERO (светлый, без телефона — уже переопределён block-0/аналогичными блоками на других страницах) ── */
.wb-hero{background:#fff;padding:44px 20px 0;}
.wb-hero-tag{display:inline-block;background:var(--bg);border-radius:99px;padding:5px 14px;font-size:.7rem;font-weight:700;color:var(--wb);letter-spacing:.06em;text-transform:uppercase;margin-bottom:18px;}
.wb-hero-title{font-size:2.2rem;font-weight:800;line-height:1.05;color:var(--text);letter-spacing:-.04em;margin-bottom:12px;}
.wb-hero-title em{color:var(--wb);font-style:normal;}
.wb-hero-sub{font-size:.92rem;color:var(--sub);line-height:1.55;margin-bottom:26px;font-weight:400;}
.wb-hero-actions{display:flex;gap:10px;margin-bottom:32px;flex-wrap:wrap;}
.wb-hero-btn-main{background:var(--wb);color:#fff;border:none;border-radius:17px;padding:15px 26px;font-size:.9rem;font-weight:720;letter-spacing:-.005em;cursor:pointer;min-height:52px;}
.wb-hero-btn-sec{background:#fff;color:var(--text);border:1px solid var(--border);border-radius:17px;padding:14px 22px;font-size:.9rem;font-weight:650;cursor:pointer;min-height:52px;}
.wb-hero-img-wrap{display:none;}
@media(min-width:480px){.wb-hero-title{font-size:2.6rem;}}
@media(min-width:768px){.wb-hero{padding:64px 40px 0;max-width:900px;margin:0 auto;}.wb-hero-title{font-size:3.4rem;}}

/* ── SECTIONS ── */
.wb-section{padding:20px 16px 8px;max-width:1280px;margin:0 auto;}
.wb-section-head{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:14px;}
.wb-section-title{font-size:1.05rem;font-weight:780;letter-spacing:-.02em;}
.wb-section-more{font-size:.78rem;color:var(--wb);font-weight:700;}

/* ── BUNDLES ── */
.wb-bundles{display:flex;gap:10px;overflow-x:auto;padding-bottom:6px;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.wb-bundles::-webkit-scrollbar{display:none;}
.wb-bundle{flex:0 0 200px;background:#fff;border-radius:20px;overflow:hidden;border:1px solid var(--border);box-shadow:var(--shadow);cursor:pointer;transition:transform .18s,box-shadow .18s;}
.wb-bundle:hover{transform:translateY(-3px);box-shadow:0 18px 40px rgba(29,29,31,.1);}
.wb-bundle-img{height:80px;background:var(--bg);display:flex;align-items:center;justify-content:center;position:relative;}
.wb-bundle-tag{position:absolute;top:8px;left:8px;background:#fff;color:var(--wb);font-size:.58rem;font-weight:800;padding:3px 8px;border-radius:99px;text-transform:uppercase;letter-spacing:.05em;}
.wb-bundle-body{padding:12px;}
.wb-bundle-name{font-size:.84rem;font-weight:750;margin-bottom:3px;}
.wb-bundle-comp{font-size:.66rem;color:var(--sub);line-height:1.5;margin-bottom:8px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.wb-bundle-footer{display:flex;align-items:center;justify-content:space-between;gap:6px;}
.wb-bundle-price{font-size:.9rem;font-weight:800;color:var(--text);}
.wb-bundle-btn{border:1px solid var(--wb);border-radius:99px;padding:6px 12px;font-size:.7rem;font-weight:700;color:var(--wb);background:#fff;transition:background .18s,color .18s;}
.wb-bundle-btn:hover{background:var(--wb);color:#fff;}

/* ── CATEGORY CHIPS ── */
.wb-cats-bar{background:#fff;border-bottom:none;}
.wb-cats-scroll{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:8px;padding:10px 16px 18px;max-width:1280px;margin:0 auto;scrollbar-width:none;}
.wb-cats-scroll::-webkit-scrollbar{display:none;}
.wb-cat-chip{flex:0 0 auto;min-height:44px;padding:0 16px;display:inline-flex;align-items:center;border-radius:99px;border:1px solid var(--border);font-size:.84rem;font-weight:680;background:#fff;color:var(--sub);transition:background .16s,color .16s,border-color .16s;text-align:center;white-space:nowrap;}
.wb-cat-chip.active,.wb-cat-chip:hover{background:var(--wb);color:#fff;border-color:transparent;}

/* ── TOOLBAR ── */
.wb-toolbar{display:flex;align-items:center;justify-content:space-between;padding:0 16px 18px;max-width:1280px;margin:0 auto;}
.wb-prod-count{font-size:.82rem;color:var(--sub);}
.wb-sort-select{border:1px solid var(--border);border-radius:14px;padding:8px 14px;font-size:.84rem;outline:none;background:#fff;color:var(--text);cursor:pointer;font-family:var(--font);min-height:44px;}

/* ── PRODUCT GRID ── */
.wb-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;padding:0 16px 28px;max-width:1280px;margin:0 auto;}
@media(min-width:640px){.wb-grid{grid-template-columns:repeat(3,1fr);}}
@media(min-width:960px){.wb-grid{grid-template-columns:repeat(4,1fr);gap:18px;}}
@media(min-width:1280px){.wb-grid{grid-template-columns:repeat(5,1fr);}}
.wb-empty{grid-column:1/-1;text-align:center;padding:64px 16px;color:var(--sub);font-size:.94rem;}

/* ── PRODUCT CARD ── */
.wb-card{background:#fff;border-radius:22px;overflow:hidden;border:1px solid var(--border);display:flex;flex-direction:column;cursor:pointer;transition:box-shadow .2s,transform .2s;box-shadow:var(--shadow);}
.wb-card:hover{box-shadow:0 18px 50px rgba(29,29,31,.11);transform:translateY(-3px);}
.wb-card-img{aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;position:relative;background:var(--bg);overflow:hidden;}
.wb-card-label{font-size:.7rem;font-weight:800;color:rgba(29,29,31,.28);text-align:center;line-height:1.3;padding:10px;user-select:none;}
.wb-card-fav{position:absolute;top:10px;right:10px;width:38px;height:38px;border:1px solid rgba(255,255,255,.75);background:rgba(255,255,255,.82);border-radius:13px;display:flex;align-items:center;justify-content:center;cursor:pointer;transition:background .15s;backdrop-filter:blur(10px);}
.wb-card-fav svg{width:16px;height:16px;stroke:var(--sub);fill:none;stroke-width:2;transition:stroke .15s,fill .15s;}
.wb-card-fav.active svg{stroke:var(--wb);fill:var(--wb);}
.wb-card-fav:hover{background:#fff;}
.wb-card-discount{position:absolute;top:10px;left:10px;background:var(--wb);color:#fff;font-size:.6rem;font-weight:800;padding:4px 9px;border-radius:99px;}
.wb-card-new{position:absolute;bottom:10px;left:10px;background:var(--text);color:#fff;font-size:.58rem;font-weight:760;padding:4px 9px;border-radius:99px;text-transform:uppercase;letter-spacing:.02em;}
.wb-card-body{padding:14px;display:flex;flex-direction:column;gap:5px;flex:1;}
.wb-card-brand{font-size:.6rem;font-weight:700;color:var(--sub);text-transform:uppercase;letter-spacing:.06em;}
.wb-card-name{font-size:.86rem;font-weight:740;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;}
.wb-card-rating{display:flex;align-items:center;gap:5px;}
.wb-card-stars{color:var(--wb);font-size:.7rem;}
.wb-card-reviews{font-size:.64rem;color:var(--sub);}
.wb-card-price-wrap{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;margin-top:3px;}
.wb-card-price{font-size:1.02rem;font-weight:800;color:var(--text);}
.wb-card-unit{font-size:.64rem;color:var(--sub);}
.wb-card-oldprice{font-size:.7rem;color:var(--sub);text-decoration:line-through;}
.wb-card-delivery{font-size:.62rem;color:#157347;margin-top:2px;}
.wb-card-qty{display:flex;align-items:center;justify-content:space-between;background:#fff5f7;border-radius:15px;padding:4px;margin-top:auto;}
.wb-card-qty button{width:36px;height:36px;border:none;background:none;font-size:1.1rem;font-weight:700;color:var(--wb);border-radius:11px;display:flex;align-items:center;justify-content:center;transition:transform .1s;}
.wb-card-qty button:active{transform:scale(.92);}
.wb-card-qty span{min-width:26px;text-align:center;font-size:.86rem;font-weight:720;}
.wb-card-add{width:100%;background:var(--wb);color:#fff;border:none;border-radius:15px;padding:12px 4px;font-size:.78rem;font-weight:720;margin-top:auto;min-height:44px;transition:background .15s;font-family:var(--font);}
.wb-card-add:active{transform:scale(.97);}

/* ── OVERLAY ── */
.overlay{position:fixed;inset:0;z-index:1900;background:rgba(18,18,20,.4);opacity:0;pointer-events:none;transition:opacity .26s;backdrop-filter:blur(3px);}
.overlay.open{opacity:1;pointer-events:all;}

/* ── CART DRAWER ── */
.drawer{position:fixed;top:0;right:0;bottom:0;z-index:2000;width:min(420px,100%);background:rgba(255,255,255,.98);display:flex;flex-direction:column;transform:translateX(100%);transition:transform .32s cubic-bezier(.2,.8,.2,1);box-shadow:-24px 0 80px rgba(29,29,31,.17);}
.drawer.open{transform:none;}
.drawer-head{display:flex;align-items:center;justify-content:space-between;padding:calc(20px + env(safe-area-inset-top)) 20px 16px;border-bottom:1px solid var(--border);flex-shrink:0;}
.drawer-head h2{font-size:1.3rem;font-weight:800;letter-spacing:-.03em;}
.drawer-close{width:44px;height:44px;border:1px solid var(--border);background:var(--bg);border-radius:14px;font-size:.9rem;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.drawer-body{flex:1;overflow-y:auto;padding:12px 20px;}
.drawer-footer{padding:14px 20px calc(14px + env(safe-area-inset-bottom));border-top:1px solid var(--border);flex-shrink:0;}
.cart-item{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--border);}
.cart-item-icon{width:58px;height:58px;border-radius:15px;background:var(--bg);display:flex;align-items:center;justify-content:center;font-size:.6rem;font-weight:800;color:#fff;flex-shrink:0;text-align:center;line-height:1.2;overflow:hidden;}
.cart-item-icon img{width:100%;height:100%;object-fit:cover;display:block;}
.cart-item-info{flex:1;min-width:0;}
.cart-item-name{font-size:.86rem;font-weight:720;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cart-item-price{font-size:.76rem;color:var(--sub);margin-top:2px;}
.cart-item-qty{display:flex;align-items:center;gap:4px;flex-shrink:0;}
.ciq-btn{width:36px;height:36px;border:1px solid var(--border);background:#fff;border-radius:11px;font-size:1rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:border-color .15s;}
.ciq-btn:hover{border-color:var(--wb);color:var(--wb);}
.ciq-val{min-width:24px;text-align:center;font-size:.86rem;font-weight:720;}
.ciq-del{width:36px;height:36px;border:none;background:#fff5f7;border-radius:11px;color:var(--wb);font-size:.86rem;cursor:pointer;display:flex;align-items:center;justify-content:center;}
.cart-empty{text-align:center;padding:64px 16px;color:var(--sub);}
.cart-empty div{font-size:2.5rem;margin-bottom:14px;}
.cart-total-row{display:flex;justify-content:space-between;font-weight:800;font-size:1rem;padding:10px 0;}
.checkout-btn{width:100%;background:var(--wb);color:#fff;border:none;border-radius:17px;padding:15px;min-height:54px;font-size:.94rem;font-weight:720;cursor:pointer;font-family:var(--font);}
.checkout-btn:disabled{background:var(--border);cursor:not-allowed;}

/* ── PROFILE DRAWER ── */
.profile-drawer{position:fixed;top:0;right:0;bottom:0;z-index:2000;width:min(420px,100%);background:rgba(255,255,255,.98);display:flex;flex-direction:column;transform:translateX(100%);transition:transform .32s cubic-bezier(.2,.8,.2,1);box-shadow:-24px 0 80px rgba(29,29,31,.17);}
.profile-drawer.open{transform:none;}
.profile-drawer-head{display:flex;align-items:center;justify-content:space-between;padding:calc(20px + env(safe-area-inset-top)) 20px 16px;border-bottom:1px solid var(--border);flex-shrink:0;}
.profile-drawer-head h2{font-size:1.3rem;font-weight:800;letter-spacing:-.03em;}
.fb-loading{padding:24px;text-align:center;color:var(--sub);font-size:.8rem;}
.fb-user-hero{display:flex;align-items:center;gap:12px;padding:16px 20px;background:linear-gradient(145deg,#7f0d1d,#d91d3d);color:#fff;}
.fb-user-ava{width:48px;height:48px;border-radius:14px;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center;font-size:1.1rem;font-weight:800;flex-shrink:0;}
.fb-user-info{flex:1;min-width:0;}
.fb-user-name2{font-size:.94rem;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.fb-user-sub2{font-size:.72rem;opacity:.75;margin-top:2px;}
.fb-user-badge{display:inline-block;margin-top:5px;font-size:.6rem;font-weight:700;background:rgba(255,255,255,.2);padding:3px 8px;border-radius:99px;}
.fb-exit-btn{border:1px solid rgba(255,255,255,.4);border-radius:12px;padding:7px 12px;font-size:.7rem;font-weight:700;cursor:pointer;background:transparent;color:#fff;flex-shrink:0;}
.fb-auth-section{padding:18px 20px 14px;}
.fb-auth-title{font-size:.66rem;font-weight:700;color:var(--sub);text-transform:uppercase;letter-spacing:.1em;margin-bottom:12px;}
.fb-btn{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--border);border-radius:14px;padding:12px;font-size:.84rem;font-weight:700;cursor:pointer;background:#fff;color:var(--text);margin-bottom:8px;transition:border-color .18s,background .18s;font-family:var(--font);min-height:48px;}
.fb-btn:hover{border-color:var(--sub);background:var(--bg);}
.fb-btn-google{color:var(--text);}
.fb-btn-anon{color:var(--sub);}
.fb-form-group{margin-bottom:8px;}
.fb-form-group input{width:100%;border:1px solid var(--border);border-radius:14px;padding:11px 14px;font-size:.86rem;outline:none;transition:border-color .18s;font-family:var(--font);background:var(--bg);}
.fb-form-group input:focus{border-color:var(--wb);background:#fff;}
.fb-row{display:flex;gap:8px;margin-bottom:8px;}
.fb-row .fb-btn{flex:1;margin-bottom:0;}
.fb-err{font-size:.76rem;color:var(--wb);margin:4px 0 6px;display:none;padding:9px 12px;background:#fff5f7;border-radius:12px;}
.fb-err.show{display:block;}
.fb-divider{display:flex;align-items:center;gap:10px;margin:10px 0;color:var(--border);font-size:.68rem;letter-spacing:.06em;text-transform:uppercase;}
.fb-divider::before,.fb-divider::after{content:'';flex:1;height:1px;background:var(--border);}
.fb-phone-step{display:none;}
.fb-phone-step.active{display:block;}
.fb-section-sep{height:1px;background:var(--border);margin:0 20px;}
.prof-tabs{display:flex;border-bottom:1px solid var(--border);padding:0 20px;}
.prof-tab{flex:1;padding:12px 4px;border:none;background:none;font-size:.76rem;font-weight:700;color:var(--sub);border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;font-family:var(--font);}
.prof-tab.active{color:var(--wb);border-bottom-color:var(--wb);}
.profile-body{flex:1;overflow-y:auto;}
.profile-fg{margin-bottom:14px;}
.profile-fg label{display:block;font-size:.7rem;font-weight:700;color:var(--sub);text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px;}
.profile-fg input{width:100%;border:1px solid var(--border);border-radius:14px;padding:11px 14px;font-size:.86rem;outline:none;font-family:var(--font);background:var(--bg);}
.profile-fg input:focus{border-color:var(--wb);background:#fff;}
.profile-saved{font-size:.74rem;color:#157347;background:#f2fbf6;border-radius:10px;padding:6px 12px;display:none;margin-top:8px;}
.profile-saved.show{display:block;}
.my-order-card{background:#fff;border:1px solid var(--border);border-radius:16px;padding:14px;margin-bottom:10px;box-shadow:var(--shadow);}
.moc-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;cursor:pointer;}
.moc-id{font-size:.72rem;font-weight:800;color:var(--sub);}
.moc-status{font-size:.7rem;font-weight:700;background:var(--bg);padding:4px 9px;border-radius:99px;}
.moc-status.delivered{color:#157347;background:#f2fbf6;}
.moc-date{font-size:.68rem;color:var(--sub);}
.moc-total{font-size:.86rem;font-weight:800;}
.moc-repeat-btn{padding:8px 14px;background:var(--wb);color:#fff;border:none;border-radius:12px;font-size:.72rem;font-weight:700;cursor:pointer;}

/* ── ORDER MODAL (старый попап, недостижим из интерфейса — токены на всякий случай) ── */
.modal-overlay{position:fixed;inset:0;z-index:3000;background:rgba(18,18,20,.45);display:none;align-items:flex-end;justify-content:center;}
.modal-overlay.open{display:flex;}
.modal{background:#fff;border-radius:26px 26px 0 0;width:100%;max-width:540px;padding:24px 20px 38px;max-height:92vh;overflow-y:auto;}
.modal h2{font-size:1.1rem;font-weight:800;margin-bottom:16px;}
.fg{margin-bottom:14px;}
.fg label{display:block;font-size:.7rem;font-weight:700;color:var(--sub);text-transform:uppercase;letter-spacing:.05em;margin-bottom:6px;}
.fg input,.fg textarea,.fg select{width:100%;border:1px solid var(--border);border-radius:14px;padding:11px 14px;font-size:.86rem;outline:none;background:var(--bg);font-family:var(--font);}
.fg input:focus,.fg textarea:focus{border-color:var(--wb);background:#fff;}
.form-row{display:flex;gap:10px;}
.form-row .fg{flex:1;}
.pay-opts{display:flex;gap:8px;flex-wrap:wrap;}
.pay-opt{flex:1;min-width:76px;border:1px solid var(--border);border-radius:14px;padding:10px 6px;text-align:center;font-size:.78rem;font-weight:700;cursor:pointer;background:#fff;transition:background .15s,color .15s;}
.pay-opt.sel{background:var(--wb);color:#fff;border-color:transparent;}
.date-grid{display:flex;gap:6px;overflow-x:auto;padding-bottom:4px;scrollbar-width:none;}
.date-grid::-webkit-scrollbar{display:none;}
.date-opt{flex:0 0 56px;text-align:center;border:1px solid var(--border);border-radius:13px;padding:8px 4px;cursor:pointer;transition:background .15s;}
.date-opt.sel{background:var(--wb);color:#fff;border-color:transparent;}
.d-wd{font-size:.6rem;font-weight:700;text-transform:uppercase;}
.d-dt{font-size:.8rem;font-weight:800;margin-top:2px;}
.time-grid{display:flex;gap:6px;flex-wrap:wrap;}
.time-opt{border:1px solid var(--border);border-radius:12px;padding:8px 12px;font-size:.76rem;font-weight:700;cursor:pointer;background:#fff;transition:background .15s;}
.time-opt.sel{background:var(--wb);color:#fff;border-color:transparent;}
.order-summary{background:var(--bg);border-radius:14px;padding:14px;margin:14px 0;}
.order-summary h3{font-size:.72rem;font-weight:700;color:var(--sub);text-transform:uppercase;letter-spacing:.05em;margin-bottom:10px;}
.os-item{display:flex;justify-content:space-between;font-size:.8rem;padding:5px 0;border-bottom:1px solid var(--border);}
.os-total{display:flex;justify-content:space-between;font-weight:800;font-size:.9rem;padding:10px 0 0;}
.confirm-btn{width:100%;background:var(--wb);color:#fff;border:none;border-radius:15px;padding:14px;font-size:.9rem;font-weight:720;margin-top:8px;cursor:pointer;font-family:var(--font);}
.cancel-btn{width:100%;border:1px solid var(--border);background:#fff;border-radius:15px;padding:13px;font-size:.84rem;font-weight:700;margin-top:8px;cursor:pointer;color:var(--sub);font-family:var(--font);}
.success-msg{text-align:center;padding:22px 0;}
.success-msg h2{font-size:1.2rem;font-weight:800;margin-bottom:8px;}
.success-msg p{font-size:.84rem;color:var(--sub);line-height:1.6;}

/* ── TG LINK BUTTON ── */
.tg-link{display:inline-flex;align-items:center;gap:6px;background:#229ed9;color:#fff;border-radius:14px;padding:11px 18px;font-size:.82rem;font-weight:700;text-decoration:none;transition:opacity .15s;}
.tg-link:hover{opacity:.88;}

/* ── PICKUP POPUP (мёртвый код, недостижим — токены на всякий случай) ── */
#pickupOverlay{position:fixed;inset:0;z-index:5000;background:rgba(18,18,20,.45);display:none;align-items:flex-end;justify-content:center;}
#pickupOverlay.open{display:flex;}
.pickup-popup{background:#fff;border-radius:26px 26px 0 0;width:100%;max-width:460px;padding:20px 20px 30px;max-height:78vh;display:flex;flex-direction:column;}
.pickup-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px;}
.pickup-head h3{font-size:1rem;font-weight:800;}
.pickup-head button{border:none;background:var(--bg);border-radius:50%;width:36px;height:36px;font-size:.9rem;cursor:pointer;}
.pickup-list{overflow-y:auto;flex:1;display:flex;flex-direction:column;gap:8px;margin-bottom:14px;}
.pickup-item{border:1px solid var(--border);border-radius:15px;padding:14px;cursor:pointer;transition:border-color .18s,background .18s;}
.pickup-item.selected{border-color:var(--wb);background:#fff5f7;}
.pickup-item-name{font-size:.88rem;font-weight:700;margin-bottom:3px;}
.pickup-item-addr{font-size:.76rem;color:var(--sub);}
.pickup-item-time{font-size:.7rem;color:var(--sub);margin-top:3px;}

/* ── ORDER STATUS BAR ── */
.order-status-bar{margin:8px 0;}
.osb-steps{position:relative;display:flex;justify-content:space-between;padding-top:14px;margin:8px 0;}
.osb-line{position:absolute;top:7px;left:0;right:0;height:3px;background:var(--border);border-radius:99px;}
.osb-line-fill{height:100%;background:var(--wb);border-radius:99px;}
.osb-step{display:flex;flex-direction:column;align-items:center;gap:5px;flex:1;position:relative;z-index:1;}
.osb-dot{width:14px;height:14px;border-radius:50%;background:var(--border);border:2px solid #fff;font-size:.42rem;color:#fff;font-weight:800;display:flex;align-items:center;justify-content:center;}
.osb-step.done .osb-dot{background:#157347;}
.osb-step.active .osb-dot{background:var(--wb);box-shadow:0 0 0 4px rgba(187,22,48,.15);}
.osb-label{font-size:.54rem;color:var(--sub);text-align:center;max-width:44px;line-height:1.3;}
.osb-step.active .osb-label{color:var(--wb);font-weight:700;}

/* ── FEATURE CARDS ── */
.wb-feat-card{background:#fff;border-radius:18px;padding:18px 16px;text-align:center;border:1px solid var(--border);box-shadow:var(--shadow);}
.wb-feat-icon{font-size:1.8rem;margin-bottom:8px;}
.wb-feat-title{font-size:.84rem;font-weight:750;color:var(--text);margin-bottom:4px;}
.wb-feat-sub{font-size:.76rem;color:var(--sub);line-height:1.4;}

/* ── REVIEWS ── */
.wb-reviews-scroll{display:flex;gap:12px;overflow-x:auto;padding:0 16px 12px;-webkit-overflow-scrolling:touch;scrollbar-width:none;}
.wb-reviews-scroll::-webkit-scrollbar{display:none;}
.wb-review-card{flex-shrink:0;width:240px;background:#fff;border-radius:18px;padding:16px;border:1px solid var(--border);box-shadow:var(--shadow);}
.wb-rev-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;}
.wb-rev-name{font-size:.8rem;font-weight:700;}
.wb-rev-stars{font-size:.74rem;color:var(--wb);}
.wb-rev-text{font-size:.78rem;color:var(--text);line-height:1.5;margin-bottom:6px;}
.wb-rev-date{font-size:.68rem;color:var(--sub);}

/* ── CONTACTS ── */
.wb-contact-card{display:flex;align-items:center;gap:12px;background:#fff;border-radius:18px;padding:16px 18px;border:1px solid var(--border);color:var(--text);box-shadow:var(--shadow);}
.wb-contact-icon{font-size:1.4rem;flex-shrink:0;}
.wb-contact-label{font-size:.72rem;color:var(--sub);margin-bottom:2px;}
.wb-contact-val{font-size:.86rem;font-weight:700;}

/* ── SOCIAL ── */
.wb-social-card{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border-radius:18px;padding:20px 10px;color:#fff;text-decoration:none;}
.wb-social-name{font-size:.84rem;font-weight:750;}
.wb-social-sub{font-size:.7rem;opacity:.85;}

/* ── MISC ── */
.cart-fly-dot{position:fixed;width:10px;height:10px;border-radius:50%;background:var(--wb);pointer-events:none;z-index:9999;}
.delivery-info-box{background:#f2fbf6;border:1px solid rgba(21,115,71,.16);border-radius:14px;padding:10px 14px;font-size:.8rem;margin-bottom:10px;color:#157347;}
.admin-header{background:var(--wb);color:#fff;padding:16px 20px;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:10;}
.admin-header h1{font-size:.92rem;font-weight:800;}
.wb-act-btn.auth-logged{border-color:var(--wb);color:var(--wb);background:#fff5f7;}
.delivery-opt{min-width:100px;}

/* ── BOTTOM NAV — плавающая пилюля ── */
.wb-bottom-nav{position:fixed;left:10px;right:10px;bottom:max(8px,env(safe-area-inset-bottom));z-index:1000;background:rgba(255,255,255,.86);border:1px solid rgba(255,255,255,.72);border-radius:26px;display:flex;height:auto;min-height:74px;padding:8px 5px calc(8px + env(safe-area-inset-bottom));box-shadow:0 20px 50px rgba(29,29,31,.16);backdrop-filter:blur(22px) saturate(170%);-webkit-backdrop-filter:blur(22px) saturate(170%);max-width:520px;margin:0 auto;}
@media(min-width:768px){.wb-bottom-nav{display:none;}}
.wb-bnav-item{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;border:none;background:none;font-size:.58rem;font-weight:650;color:var(--sub);padding:5px 2px;font-family:var(--font);border-radius:17px;transition:transform .2s cubic-bezier(.34,1.56,.64,1),color .15s;}
.wb-bnav-item:active{transform:translateY(-6px);}
.wb-bnav-item svg{width:22px;height:22px;}
.wb-bnav-cart{color:var(--wb);}
.wb-bnav-cart-inner{position:relative;}
.wb-bnav-item.wb-bnav-cart{position:relative;}

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .wb-bottom-nav{background:rgba(255,255,255,.98);}
}
@media(prefers-reduced-motion:reduce){
  .wb-bnav-item,.wb-cat-chip,.wb-card,.wb-card-add,.pl-fill,.pl-line{transition:none!important;animation:none!important;}
}

/* ── HERO v2 — старая тёмная секция с телефоном, НЕ используется на живых
   страницах (подтверждено 28.07.2026: везде уже показан светлый hero без
   телефона через отдельный перекрывающий блок). Оставлена только с новыми
   токенами на случай, если где-то всплывёт как fallback — активной роли не
   играет. Секцию с явным ID показа телефона можно физически удалить отдельной
   задачей, здесь только замена цвета на новый без изменения структуры. ── */
.mkh-sbar{background:var(--wb);}
.mkh-app-head{background:linear-gradient(to bottom,var(--wb),var(--wb2));}
.mkh-status-label{color:#157347;}
.mkh-order-btn{background:linear-gradient(to bottom,var(--wb),#7f0d1d);box-shadow:0 4px 16px rgba(187,22,48,.3);}
.mkh-cta-btn{color:var(--wb);}
.mkh-glow1{background:rgba(217,29,61,.16);}
.mkh-glow2{background:rgba(187,22,48,.24);}

/* hide Tilda badge */
#tildacоpy,.t-tildalаbеl{display:none!important;}

/* Гостевой сплэш выключен на живом сайте — оставляем выключенным, не включать
   без отдельного решения (см. FUNCTION_MAP.md, авторизация/личный кабинет). */
#authSplash{display:none!important;}

/* ─── Category Photo Cards ─── */
.wb-cats-scroll{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:8px!important;padding:10px 16px 18px!important;}
.wb-cat-chip{flex-direction:row!important;padding:0 16px!important;overflow:hidden!important;border-radius:99px!important;height:44px!important;min-width:0!important;flex:0 0 auto!important;max-width:none!important;white-space:nowrap!important;text-align:center!important;}
/* убрано: старое правило скрывало иконку категории, 2026-07-31 */
.wb-cat-chip span{padding:0!important;font-size:.84rem!important;font-weight:680!important;display:block!important;line-height:44px!important;}
.wb-cat-chip.active{background:var(--wb)!important;color:#fff!important;}

/* ─── Мобильные панели — снизу листом (в текущем custom.css такого правила
   не было вообще, добавляем по мастер-спеке Apple Red) ─── */
@media(max-width:600px){
  .drawer,.profile-drawer{
    top:auto!important;left:0!important;right:0!important;bottom:0!important;
    width:100%!important;height:min(92dvh,900px)!important;
    max-height:calc(100dvh - env(safe-area-inset-top))!important;
    border-radius:28px 28px 0 0!important;
    transform:translateY(104%)!important;
    box-shadow:0 -24px 80px rgba(29,29,31,.2)!important;
  }
  .drawer.open,.profile-drawer.open{transform:translateY(0)!important;}
}


.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}



.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}



.favorite-button {
  position: absolute;
  z-index: 5;
  top: 15px;
  right: 15px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 15px;
  color: var(--ink-soft);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  cursor: pointer;
}



.favorite-button[aria-pressed="true"] {
  color: var(--red-700);
  background: var(--red-50);
}



.favorite-button[aria-pressed="true"] svg {
  fill: currentColor;
}



.product-card h3 {
  margin: 14px 0 3px;
  font-size: 1.24rem;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.15;
}



.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}



.panel--product {
  grid-template-rows: auto 1fr;
}



.empty-state {
  padding: 68px 16px;
  text-align: center;
}



.empty-state > span {
  width: 72px;
  height: 72px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--red-700);
  background: var(--red-50);
}



.empty-state > span svg {
  width: 30px;
  height: 30px;
}



.empty-state h3 {
  margin: 18px 0 5px;
  font-size: 1.2rem;
}



.empty-state p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .8rem;
}



.order-card {
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}



.info-state {
  min-height: 260px;
  padding: 46px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(187,22,48,.2);
  border-radius: 24px;
  background: var(--red-50);
  text-align: center;
}



.info-state > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: var(--red-700);
}



.info-state h3 {
  margin: 17px 0 5px;
  font-size: 1.08rem;
}



.info-state p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: .77rem;
}



.category-chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 680;
  cursor: pointer;
  transition: background 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}


.category-chip.active {
  border-color: transparent;
  background: var(--red-700);
  color: #fff;
}



.catalog-toolbar {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}



.sort-control {
  min-height: 44px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c4c50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 16px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 650;
  appearance: none;
  cursor: pointer;
}



.wb-empty {
  grid-column: 1 / -1;
  padding: 64px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
}



/* ===== Степпер количества в карточке / модалке товара ===== */
.quantity-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 48px;
  padding: 0 4px;
  border-radius: 15px;
  background: var(--red-50);
}


.quantity-stepper button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--red-700);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}


.quantity-stepper button:active { transform: scale(0.92); }


.quantity-stepper span {
  min-width: 52px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 720;
  color: var(--ink);
}



/* ===== Профиль: избранное / адреса / бонусы / уведомления ===== */
.favorite-row,
.address-card,
.notification-row {
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}



.field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}


.field label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
}


.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}


.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red-700);
  background: #fff;
}



.bonus-hero {
  padding: 28px 20px;
  margin-bottom: 18px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--red-900), var(--red-600));
  color: #fff;
}


.bonus-rule {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}



.bonus-history-title {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}



/* ===== Модалка товара (панель снизу/справа, как cart/profile) =====
   Реальный openProductModal() оборачивает содержимое в .pm-wrap/.pm-box/
   /.pm-handle/.pm-close (генерируются каждый раз заново) — стилизуем их
   напрямую под уже открытый #_prodModal.panel.panel--product. */
.panel--product {
  grid-template-rows: 1fr;
}


.panel--product .pm-wrap {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}


.panel--product .pm-box {
  position: relative;
  min-height: 100%;
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
}


.panel--product .pm-handle {
  display: none;
}


.panel--product .pm-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 0;
  cursor: pointer;
}


.panel--product .pm-close::before {
  content: "";
  width: 19px;
  height: 19px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 6.5 11 11m0-11-11 11' stroke='%23000' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 6.5 11 11m0-11-11 11' stroke='%23000' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}


.panel--product .product-modal__art {
  margin-top: 44px;
}


.panel--product .pm-body {
  padding-top: 4px;
}



/* ===== Заказ — детальная карточка (нижний лист) ===== */
.order-detail-sheet {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(18,18,20,.4);
}


.os-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }


.os-total { display: flex; justify-content: space-between; padding-top: 12px; font-weight: 780; }


.product-card__art {
  position: relative;
  height: 250px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-soft);
}



.product-card__art::before,
.product-card__art::after {
  content: "";
  position: absolute;
}



.product-card__art span {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
}



.product-card__art--meat::before {
  width: 176px;
  height: 128px;
  border-radius: 53% 47% 41% 59% / 62% 39% 61% 38%;
  background:
    radial-gradient(circle at 31% 30%, rgba(255,255,255,.28), transparent 19%),
    linear-gradient(145deg, #e55b66, #8b0b1d);
  box-shadow: inset -22px -18px 40px rgba(77, 0, 13, 0.23), 0 26px 32px rgba(93, 7, 19, 0.18);
  transform: rotate(-10deg);
}



.product-card__art--meat::after {
  width: 132px;
  height: 11px;
  bottom: 51px;
  border-radius: 50%;
  background: rgba(59, 14, 23, 0.13);
  filter: blur(9px);
}



.product-card__art--sausage::before {
  width: 72px;
  height: 170px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.3), transparent 20%),
    linear-gradient(145deg, #b82837, #6f0716);
  box-shadow: 62px 8px 0 #991426, 31px 18px 32px rgba(93,7,19,.24);
  transform: rotate(21deg) translateX(-28px);
}



.product-card__art--dumplings::before {
  width: 185px;
  height: 126px;
  border-radius: 44% 56% 48% 52%;
  background:
    radial-gradient(circle at 32% 30%, #fff 0 9%, transparent 10%),
    radial-gradient(circle at 58% 28%, #fff 0 10%, transparent 11%),
    radial-gradient(circle at 45% 59%, #fff 0 11%, transparent 12%),
    radial-gradient(circle at 70% 62%, #fff 0 9%, transparent 10%),
    linear-gradient(145deg, #d91d3d, #7f0d1d);
  box-shadow: 0 26px 34px rgba(93,7,19,.2);
  transform: rotate(-5deg);
}



.product-card__body {
  padding: 20px;
}



.product-card__tag {
  display: inline-flex;
  min-height: 27px;
  padding: 5px 10px;
  align-items: center;
  border-radius: 99px;
  color: var(--red-700);
  background: var(--red-50);
  font-size: 0.67rem;
  font-weight: 720;
}



.product-card__footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}



.product-card__footer > div {
  display: flex;
  align-items: baseline;
  gap: 4px;
}



.product-card__footer strong {
  font-size: 1.23rem;
  letter-spacing: -0.025em;
}



.product-card__footer span {
  color: var(--muted);
  font-size: 0.72rem;
}



.cart-item__art {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--red-600), var(--red-950));
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: .06em;
}



.cart-item__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}



.cart-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}



.cart-item__title {
  display: flex;
  flex-direction: column;
}



.cart-item__title strong {
  font-size: 0.91rem;
  letter-spacing: -.018em;
}



.cart-item__title span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}



.cart-item__remove {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  color: var(--red-700);
  background: var(--red-50);
  cursor: pointer;
}



.cart-item__remove svg {
  width: 18px;
  height: 18px;
}



.cart-item__bottom {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}



.cart-item__price {
  font-size: 1rem;
  font-weight: 790;
  letter-spacing: -.025em;
}



.order-card__top,
.order-card__meta,
.order-card__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}



.order-card__number {
  color: var(--red-700);
  font-size: .76rem;
  font-weight: 780;
  letter-spacing: .055em;
}



.order-card__status {
  padding: 5px 10px;
  border-radius: 99px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: .61rem;
  font-weight: 690;
}



.order-card__items {
  margin: 16px 0;
  color: var(--ink-soft);
  font-size: .83rem;
}



.order-card__meta {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .68rem;
}



.order-card__total {
  margin-top: 5px;
}



.order-card__total strong {
  font-size: 1.25rem;
  letter-spacing: -.025em;
}


.quantity-stepper--compact {
  height: 40px;
}


.quantity-stepper--compact button {
  width: 32px;
  height: 32px;
}



/* Бейдж "Новинка" поверх изображения карточки */
.product-card__new-badge {
  position: absolute;
  z-index: 5;
  top: 15px;
  left: 15px;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.02em;
}



/* Нейтральный fallback вместо фото товара (без эмодзи) */
.product-card__art--fallback {
  color: rgba(29, 29, 31, 0.22);
}


.product-card__art--fallback svg {
  width: 64px;
  height: 64px;
}


.product-card__art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}



.product-card__rating {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}


.product-card__rating svg {
  width: 13px;
  height: 13px;
  color: var(--red-700);
  fill: var(--red-700);
}



.product-card__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}


.product-card__old-price {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: line-through;
}



.favorite-row__body strong,
.address-card__body strong { display: block; font-size: 0.94rem; letter-spacing: -0.015em; }


.favorite-row__body span,
.address-card__body span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.78rem; }



.favorite-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}


.favorite-row__actions button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 0.76rem;
  font-weight: 680;
  cursor: pointer;
}


.favorite-row__actions button.is-primary {
  border-color: transparent;
  background: var(--red-700);
  color: #fff;
}



.address-card__badge {
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--red-50);
  color: var(--red-700);
  font-size: 0.62rem;
  font-weight: 720;
}


.bonus-hero__amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}


.bonus-hero__label {
  margin-top: 4px;
  opacity: 0.8;
  font-size: 0.82rem;
}


.product-modal__art img { width: 100%; height: 100%; object-fit: cover; }


.product-modal__art svg { width: 72px; height: 72px; color: rgba(29,29,31,.22); }


.product-modal__brand { color: var(--red-700); font-size: 0.72rem; font-weight: 720; text-transform: uppercase; letter-spacing: 0.04em; }


.product-modal__name { margin: 6px 0 4px; font-size: 1.5rem; font-weight: 780; letter-spacing: -0.03em; }


.product-modal__rating { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.8rem; margin-bottom: 10px; }


.product-modal__price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }


.product-modal__price { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }


.product-modal__unit { color: var(--muted); font-size: 0.85rem; }


.product-modal__desc { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; margin-bottom: 12px; }


.product-modal__tip {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--red-50);
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}


.product-modal__tip svg { flex: none; width: 18px; height: 18px; color: var(--red-700); }


.product-modal__actions { padding: 0 0 4px; }


.product-modal__badge-new {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 5px 10px; border-radius: 99px; background: var(--ink); color: #fff;
  font-size: 0.62rem; font-weight: 760;
}


.order-detail-sheet__card {
  width: 100%; max-width: 560px; max-height: 88vh;
  overflow-y: auto;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: #fff;
  box-shadow: var(--shadow-panel);
}


.order-detail-sheet__top {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px;
}


.order-detail-sheet__close {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--surface-soft); color: var(--ink-soft); cursor: pointer; flex: none;
}


.order-detail-sheet__items { margin: 14px 0; }


.order-detail-sheet__meta { margin-top: 10px; color: var(--muted); font-size: 0.82rem; line-height: 1.6; }

/* --- Заплатки Apple Red: недостающие стили кнопок и избранного, добавлено 2026-07-29 --- */
.favorite-button svg{fill:currentColor}
.add-button{min-width:104px;min-height:44px;padding:0 16px;border:0;border-radius:var(--radius);color:#fff;background:var(--wb);font-size:.8rem;font-weight:700;font-family:var(--font);cursor:pointer;transition:transform .11s ease-out}
.add-button:active{transform:scale(.965)}
@media(max-width:600px){.add-button{width:100%;min-width:0;min-height:46px}}


/* --- Заплатка: недостающие CSS-переменные (использовались, но не были объявлены), 2026-07-29 --- */
:root{
  --ink:#1d1d1f;
  --ink-soft:#737378;
  --muted:#737378;
  --surface:#fff;
  --surface-soft:#fafafa;
  --line:rgba(29,29,31,.09);
  --radius-lg:20px;
  --radius-md:14px;
  --red-50:#fff5f7;
  --red-600:#d91d3d;
  --red-700:#bb1630;
  --red-900:#7f0d1d;
  --red-950:#590a14;
  --shadow-sm:0 1px 2px rgba(29,29,31,.04);
  --shadow-md:0 8px 24px rgba(29,29,31,.08);
  --shadow-panel:0 24px 64px rgba(29,29,31,.14);
  --ease-out:cubic-bezier(.16,1,.3,1);
}


/* --- Заплатка: кнопка оформления заказа в шторке корзины была без стилей, 2026-07-29 --- */
.checkout-button{display:block;width:100%;min-height:52px;border:0;border-radius:var(--radius);background:var(--wb);color:#fff;font-size:.95rem;font-weight:720;font-family:var(--font);cursor:pointer;margin-top:12px;transition:transform .11s ease-out}
.checkout-button:active{transform:scale(.98)}


/* --- Заплатка: категории каталога переносятся на несколько строк вместо горизонтальной прокрутки, 2026-07-29 --- */
.wb-cats-scroll{flex-wrap:wrap!important;overflow-x:visible!important;overflow:visible!important;padding:10px 16px 14px!important;}
.wb-cat-chip{white-space:normal!important;}


/* --- Заплатка: кнопка корзины в нижней навигации приподнята и красная, как в эталонном превью, 2026-07-30 --- */
.wb-bnav-item.wb-bnav-cart::before{display:none!important;}
.wb-bnav-cart{transform:translateY(-10px);position:relative;}
.wb-bnav-cart .wb-bnav-cart-inner{position:relative;width:54px;height:54px;display:grid;place-items:center;border-radius:18px;background:var(--wb);color:#fff;box-shadow:0 14px 30px rgba(187,22,48,.28);border:5px solid #fff;}
.wb-bnav-cart .wb-bnav-cart-inner svg{width:23px;height:23px;color:#fff;stroke:#fff;}
.wb-bnav-cart .wb-badge{position:absolute!important;top:-7px!important;right:-7px!important;left:auto!important;min-width:21px;height:21px;padding:0 5px;border:2px solid #fff;border-radius:99px;background:var(--text);color:#fff;font-size:.58rem;font-weight:800;line-height:1;text-align:center;box-shadow:none;}
.wb-bnav-cart > span:last-child{margin-top:29px;display:block;}


/* --- откачено по просьбе: карточки каталога на мобильном обратно в 2 колонки, 2026-07-30 --- */

/* --- Заплатка: личный кабинет (вкладки, заказы, избранное, адреса, бонусы) не имел стилей вообще, 2026-07-30 --- */
.profile-hero{margin:5px 0 18px;padding:18px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:14px;border-radius:22px;background:var(--bg);}
.profile-hero__avatar{width:64px;height:64px;display:grid;place-items:center;border-radius:21px;color:#fff;background:var(--wb);flex-shrink:0;}
.profile-hero__avatar svg{width:30px;height:30px;}
.profile-hero__copy{min-width:0;display:flex;flex-direction:column;}
.profile-hero__copy small{color:var(--wb);font-size:.64rem;font-weight:720;}
.profile-hero__copy strong{margin-top:1px;font-size:1.08rem;letter-spacing:-.02em;}
.profile-hero__copy span{color:var(--sub);font-size:.72rem;}
.edit-link{min-height:44px;padding-inline:12px;border:0;border-radius:14px;color:var(--wb);background:#fff5f7;font-size:.7rem;font-weight:690;cursor:pointer;}
.profile-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin-bottom:8px;}
.profile-tab{min-width:0;min-height:93px;padding:10px 6px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;border:1px solid var(--border);border-radius:18px;color:var(--sub);background:#fff;font-size:.62rem;font-weight:690;font-family:var(--font);cursor:pointer;transition:transform 110ms ease-out,color 160ms ease-out,background 160ms ease-out,border-color 160ms ease-out;}
.profile-tab .lk-qb-icon{position:relative;width:38px;height:38px;display:grid;place-items:center;border-radius:13px;color:var(--sub);background:var(--bg);}
.profile-tab svg{width:20px;height:20px;}
.profile-tab.is-active{border-color:rgba(187,22,48,.2);color:var(--wb);background:#fff5f7;}
.profile-tab.is-active .lk-qb-icon{color:#fff;background:var(--wb);}
.profile-body{padding:0 20px 24px;}
.profile-section-title{margin:0 0 12px;font-size:.73rem;font-weight:760;letter-spacing:.06em;text-transform:uppercase;color:var(--sub);}
.order-card{margin-bottom:12px;padding:18px;border:1px solid var(--border);border-radius:22px;background:#fff;box-shadow:var(--shadow);cursor:pointer;}
.order-card__top,.order-card__meta,.order-card__total{display:flex;align-items:center;justify-content:space-between;gap:12px;}
.order-card__number{color:var(--wb);font-size:.76rem;font-weight:780;letter-spacing:.055em;}
.order-card__items{margin:16px 0;color:var(--sub);font-size:.83rem;}
.order-card__meta{padding-top:14px;border-top:1px solid var(--border);color:var(--sub);font-size:.68rem;}
.order-card__total{margin-top:5px;}
.order-card__total strong{font-size:1.25rem;letter-spacing:-.025em;}
.repeat-button{width:100%;min-height:50px;margin-top:14px;display:flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--border);border-radius:15px;background:#fff;color:var(--text);font-size:.82rem;font-weight:690;font-family:var(--font);cursor:pointer;}
.empty-state{padding:48px 16px;display:flex;flex-direction:column;align-items:center;text-align:center;gap:10px;color:var(--sub);}
.empty-state span{width:56px;height:56px;display:grid;place-items:center;border-radius:18px;background:var(--bg);color:var(--sub);}
.empty-state h3{margin:0;font-size:.92rem;font-weight:720;color:var(--text);}
.empty-state p{margin:0;font-size:.78rem;max-width:260px;}
.bonus-hero{padding:26px 18px;border-radius:22px;background:linear-gradient(145deg,var(--wb),var(--wb2));color:#fff;text-align:center;}
.bonus-hero__amount{font-size:2.4rem;font-weight:800;letter-spacing:-.03em;}
.bonus-hero__label{font-size:.78rem;opacity:.9;margin-top:2px;}
.bonus-rule{margin:14px 0;padding:12px 14px;border-radius:14px;background:var(--bg);color:var(--sub);font-size:.76rem;text-align:center;}
.bonus-history-title{margin:18px 0 10px;font-size:.73rem;font-weight:760;letter-spacing:.06em;text-transform:uppercase;color:var(--sub);}
.lk-status-badge{border-radius:99px;padding:3px 9px;font-size:.65rem;font-weight:700;}


/* --- Заплатка: вернули маленькую иконку категории в чипе (была скрыта и не вставлялась в шаблон), 2026-07-31 --- */
.wb-cat-chip{gap:6px;}
body .wb-cat-chip img{display:inline-block!important;width:36px!important;height:36px!important;border-radius:11px!important;object-fit:cover!important;flex-shrink:0;padding:0!important;background:transparent!important;}


/* --- Заплатка: иконки в плашках преимуществ hero (Свежее мясо/Доставка/Без посредников) были серыми вместо красных — переменная вне области видимости, 2026-07-31 --- */
.mkh-chip-icon{color:var(--wb)!important;}
.mkh-chip{border-color:rgba(29,29,31,.09)!important;}

/* ── CART FOOTER FIX 2026-07-31 — доставка/итого/прогресс-бар были без стилей ── */
.cart-delivery{margin:14px 0 4px;padding:12px 14px;border-radius:16px;background:var(--red-50);}
.cart-delivery.is-free{background:#f1faf3;}
.cart-delivery__top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.82rem;}
.cart-delivery__top span{display:flex;align-items:center;gap:6px;color:var(--muted);}
.cart-delivery__top svg{flex:0 0 auto;color:var(--red-700);}
.cart-delivery__top strong{color:var(--red-700);font-weight:800;}
.cart-delivery.is-free .cart-delivery__top strong{color:#1aa340;}
.progress-track{margin-top:10px;height:6px;border-radius:999px;background:rgba(29,29,31,.08);overflow:hidden;}
.progress-track span{display:block;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--red-600),var(--red-700));transition:width .25s ease;}
.total-row{display:flex;align-items:center;justify-content:space-between;padding:8px 2px;font-size:.86rem;color:var(--muted);}
.total-row:last-of-type{padding-top:10px;margin-top:2px;border-top:1px solid var(--border);font-size:1.02rem;font-weight:800;color:var(--text);}

/* выравниваем кнопку удаления товара по центру строки названия, а не по верхнему краю */
.cart-item__top{align-items:center;}


/* --- Заплатка: синий системный focus-outline при тапе заменён на фирменный красный, 2026-08-01 --- */
:focus-visible{outline:3px solid rgba(187,22,48,.35)!important;outline-offset:2px;}
/* --- Заплатка: чёрные иконки (назад/очистить) в шапке чекаута — теперь в цвет сайта, 2026-08-01 --- */
.mdc-ibtn{color:var(--sub)!important;}
.mdc-ibtn:active{color:var(--wb)!important;}


/* ============================================================
   ПОЛНЫЙ ДИЗАЙН APPLE RED — вставлено целиком из готового пакета
   APPLE_RED_FULL_REDESIGN_2026-07-27/styles/, 2026-08-01
   ============================================================ */

/* --- apple-red-system.css (базовая система) --- */
:root {
  --red-950: #5d0713;
  --red-900: #7f0d1d;
  --red-800: #9d1025;
  --red-700: #bb1630;
  --red-600: #d91d3d;
  --red-100: #ffe8ed;
  --red-50: #fff5f7;
  --ink: #1d1d1f;
  --ink-soft: #4c4c50;
  --muted: #737378;
  --line: rgba(29, 29, 31, 0.09);
  --surface: #ffffff;
  --surface-soft: #f6f6f8;
  --surface-raised: rgba(255, 255, 255, 0.86);
  --success: #157347;
  --shadow-sm: 0 1px 2px rgba(29, 29, 31, 0.04), 0 8px 24px rgba(29, 29, 31, 0.05);
  --shadow-md: 0 18px 50px rgba(61, 13, 23, 0.11);
  --shadow-panel: -24px 0 80px rgba(29, 29, 31, 0.17);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --radius-xl: 40px;
  --shell: min(1160px, calc(100vw - 40px));
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  background: var(--surface);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(217, 29, 61, 0.045), transparent 28rem),
    linear-gradient(#fff 0%, #fff 72%, #fafafa 100%);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.is-panel-open {
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

a {
  color: inherit;
}

svg {
  display: block;
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  transform: translateY(-140%);
  padding: 12px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--red-800);
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(217, 29, 61, 0.36);
  outline-offset: 3px;
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--red-700);
  font-size: 0.75rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  padding-top: env(safe-area-inset-top);
  border-bottom: 1px solid rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}

.topbar__inner {
  width: var(--shell);
  min-height: 72px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand__mark {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background:
    radial-gradient(circle at 25% 18%, rgba(255, 255, 255, 0.28), transparent 34%),
    linear-gradient(145deg, var(--red-600), var(--red-900));
  box-shadow: 0 8px 20px rgba(187, 22, 48, 0.2);
  overflow: hidden;
}

.brand__mark::after {
  content: "";
  position: absolute;
  right: -7px;
  bottom: -7px;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
}

.brand__mark span {
  position: relative;
  z-index: 1;
  font-size: 0.66rem;
  font-weight: 820;
  letter-spacing: -0.04em;
}

.brand__wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand__wordmark strong {
  font-size: 1.08rem;
  font-weight: 810;
  letter-spacing: -0.045em;
}

.brand__wordmark > span {
  margin-top: 4px;
  color: var(--red-700);
  font-size: 0.48rem;
  font-weight: 760;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

.topbar__status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #24a267;
  box-shadow: 0 0 0 5px rgba(36, 162, 103, 0.1);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-button,
.profile-button {
  min-height: 48px;
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform 110ms ease-out, border-color 160ms ease-out, background 160ms ease-out;
}

.icon-button:active,
.profile-button:active,
.button:active,
.add-button:active,
.panel__close:active,
.profile-tab:active,
.contact-card:active,
.social-list a:active,
.mobile-nav__item:active {
  transform: scale(0.965);
}

.icon-button {
  position: relative;
  width: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
}

.count-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  min-width: 21px;
  height: 21px;
  padding-inline: 5px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 99px;
  color: #fff;
  background: var(--red-700);
  font-size: 0.67rem;
  font-weight: 800;
}

.profile-button {
  padding: 5px 13px 5px 6px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 15px;
}

.profile-button__avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--red-700);
  font-size: 0.82rem;
  font-weight: 780;
}

.profile-button__label {
  font-size: 0.82rem;
  font-weight: 690;
}

.hero {
  position: relative;
  min-height: 545px;
  padding-block: 60px 44px;
  display: grid;
  grid-template-columns: minmax(0, 850px);
  align-items: center;
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
}

.hero::before {
  top: 44px;
  right: -9%;
  width: min(480px, 42vw);
  aspect-ratio: 1;
  opacity: .72;
  background:
    radial-gradient(circle at 38% 34%, rgba(255, 255, 255, .98), rgba(255, 232, 237, .74) 48%, rgba(217, 29, 61, .13) 100%);
  box-shadow: inset 0 0 0 1px rgba(217, 29, 61, .08), 0 38px 80px rgba(127, 13, 29, .09);
  animation: hero-ambient 3.6s ease-in-out infinite;
}

.hero::after {
  top: 94px;
  right: -1%;
  width: min(360px, 31vw);
  aspect-ratio: 1;
  opacity: .52;
  background-image: radial-gradient(circle, rgba(187, 22, 48, .22) 1.4px, transparent 1.6px);
  background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,.8) 48%, transparent 72%);
  mask-image: radial-gradient(circle, #000 0%, rgba(0,0,0,.8) 48%, transparent 72%);
  animation: hero-ring 4.2s ease-in-out infinite;
}

@keyframes hero-ambient {
  0%,
  100% {
    opacity: .64;
    transform: translate3d(0, 0, 0) scale(.985);
  }

  50% {
    opacity: .82;
    transform: translate3d(-7px, -4px, 0) scale(1.015);
  }
}

@keyframes hero-ring {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(5px, 3px, 0) scale(1.025);
  }
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.4rem, 6.5vw, 6.2rem);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.94;
}

.hero__line {
  display: block;
  animation: hero-line-in 620ms cubic-bezier(.18, .86, .26, 1) both;
}

.hero__line--dark {
  color: var(--ink);
}

.hero__line--red {
  color: var(--red-700);
  animation-delay: 90ms;
}

@keyframes hero-line-in {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero__typed {
  min-height: 30px;
  margin: 19px 0 0;
  display: flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 720;
  letter-spacing: -0.01em;
}

.hero__typed::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--red-600);
  box-shadow: 0 0 0 5px rgba(217, 29, 61, 0.09);
}

.hero__typed i {
  width: 2px;
  height: 1.05em;
  margin-left: 3px;
  border-radius: 2px;
  background: var(--red-700);
  animation: type-caret 760ms steps(1, end) infinite;
}

@keyframes type-caret {
  50% {
    opacity: 0;
  }
}

.hero__typed.is-complete i {
  opacity: 0;
  animation: none;
  transition: opacity 180ms ease-out;
}

.hero__copy {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  letter-spacing: -0.015em;
  line-height: 1.48;
}

.hero__actions {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__facts {
  max-width: 720px;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  list-style: none;
}

.hero__facts li {
  min-width: 0;
  min-height: 72px;
  padding: 11px 13px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(29, 29, 31, .07);
  border-radius: 19px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 10px 28px rgba(29, 29, 31, .045);
  backdrop-filter: blur(14px);
  animation: hero-fact-in 460ms 420ms var(--ease-out) both;
}

.hero__facts li:nth-child(2) {
  animation-delay: 490ms;
}

.hero__facts li:nth-child(3) {
  animation-delay: 560ms;
}

@keyframes hero-fact-in {
  from {
    opacity: 0;
    transform: translate3d(0, 12px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.hero__facts li > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--red-700);
  background: var(--red-50);
}

.hero__facts svg {
  width: 19px;
  height: 19px;
}

.hero__facts div {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.hero__facts strong {
  overflow: hidden;
  font-size: .76rem;
  font-weight: 760;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero__facts small {
  margin-top: 3px;
  overflow: hidden;
  color: var(--muted);
  font-size: .6rem;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.button {
  min-height: 54px;
  padding: 0 21px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 17px;
  font-size: 0.94rem;
  font-weight: 720;
  text-decoration: none;
  cursor: pointer;
  transition: transform 110ms ease-out, box-shadow 160ms ease-out, background 160ms ease-out;
}

.button--primary {
  color: #fff;
  background: var(--red-700);
  box-shadow: 0 14px 30px rgba(187, 22, 48, 0.22);
}

.button--primary:hover {
  background: var(--red-800);
  box-shadow: 0 18px 36px rgba(187, 22, 48, 0.27);
}

.button--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: #fff;
}

.delivery-bar {
  min-height: 88px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(187, 22, 48, 0.09);
  border-radius: var(--radius-md);
  background: var(--red-50);
}

.delivery-bar__icon {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  color: var(--red-700);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.delivery-bar__icon svg {
  width: 24px;
  height: 24px;
}

.delivery-bar__copy {
  display: flex;
  flex-direction: column;
}

.delivery-bar__copy strong {
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.delivery-bar__copy span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.circle-link {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(187, 22, 48, 0.1);
  border-radius: 14px;
  color: var(--red-700);
  background: #fff;
  text-decoration: none;
}

.catalog-section,
.contacts-section {
  padding-block: 88px 34px;
}

.section-heading {
  margin-bottom: 30px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2,
.review-card h2,
.social-card h2,
.delivery-info h2 {
  margin: 0;
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  font-weight: 790;
  letter-spacing: -0.048em;
  line-height: 1.02;
}

.text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--red-700);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.product-card__art {
  position: relative;
  height: 250px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface-soft);
}

.product-card__art::before,
.product-card__art::after {
  content: "";
  position: absolute;
}

.product-card__art span {
  position: relative;
  z-index: 2;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-align: center;
}

.product-card__art--meat::before {
  width: 176px;
  height: 128px;
  border-radius: 53% 47% 41% 59% / 62% 39% 61% 38%;
  background:
    radial-gradient(circle at 31% 30%, rgba(255,255,255,.28), transparent 19%),
    linear-gradient(145deg, #e55b66, #8b0b1d);
  box-shadow: inset -22px -18px 40px rgba(77, 0, 13, 0.23), 0 26px 32px rgba(93, 7, 19, 0.18);
  transform: rotate(-10deg);
}

.product-card__art--meat::after {
  width: 132px;
  height: 11px;
  bottom: 51px;
  border-radius: 50%;
  background: rgba(59, 14, 23, 0.13);
  filter: blur(9px);
}

.product-card__art--sausage::before {
  width: 72px;
  height: 170px;
  border-radius: 38px;
  background:
    radial-gradient(circle at 30% 20%, rgba(255,255,255,.3), transparent 20%),
    linear-gradient(145deg, #b82837, #6f0716);
  box-shadow: 62px 8px 0 #991426, 31px 18px 32px rgba(93,7,19,.24);
  transform: rotate(21deg) translateX(-28px);
}

.product-card__art--dumplings::before {
  width: 185px;
  height: 126px;
  border-radius: 44% 56% 48% 52%;
  background:
    radial-gradient(circle at 32% 30%, #fff 0 9%, transparent 10%),
    radial-gradient(circle at 58% 28%, #fff 0 10%, transparent 11%),
    radial-gradient(circle at 45% 59%, #fff 0 11%, transparent 12%),
    radial-gradient(circle at 70% 62%, #fff 0 9%, transparent 10%),
    linear-gradient(145deg, #d91d3d, #7f0d1d);
  box-shadow: 0 26px 34px rgba(93,7,19,.2);
  transform: rotate(-5deg);
}

.favorite-button {
  position: absolute;
  z-index: 5;
  top: 15px;
  right: 15px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 15px;
  color: var(--ink-soft);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(12px);
  cursor: pointer;
}

.favorite-button[aria-pressed="true"] {
  color: var(--red-700);
  background: var(--red-50);
}

.favorite-button[aria-pressed="true"] svg {
  fill: currentColor;
}

.product-card__body {
  padding: 20px;
}

.product-card__tag {
  display: inline-flex;
  min-height: 27px;
  padding: 5px 10px;
  align-items: center;
  border-radius: 99px;
  color: var(--red-700);
  background: var(--red-50);
  font-size: 0.67rem;
  font-weight: 720;
}

.product-card h3 {
  margin: 14px 0 3px;
  font-size: 1.24rem;
  font-weight: 760;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.product-card__footer {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-card__footer > div {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.product-card__footer strong {
  font-size: 1.23rem;
  letter-spacing: -0.025em;
}

.product-card__footer span {
  color: var(--muted);
  font-size: 0.72rem;
}

.add-button {
  min-width: 104px;
  min-height: 48px;
  padding-inline: 15px;
  border: 0;
  border-radius: 15px;
  color: #fff;
  background: var(--red-700);
  font-size: 0.8rem;
  font-weight: 720;
  cursor: pointer;
}

.trust-layout {
  padding-block: 88px 28px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
}

.review-card,
.social-card {
  min-height: 470px;
  border-radius: var(--radius-xl);
}

.review-card {
  position: relative;
  overflow: hidden;
  padding: 44px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 13%, rgba(255,255,255,.16) 0 12%, transparent 13%),
    radial-gradient(circle at 90% 18%, rgba(255,255,255,.07) 0 25%, transparent 26%),
    linear-gradient(145deg, var(--red-900), var(--red-600));
  box-shadow: 0 28px 60px rgba(127, 13, 29, 0.22);
}

.review-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.review-card__icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.12);
}

.review-card__icon svg {
  fill: currentColor;
}

.review-card__rating {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.review-card h2 {
  max-width: 470px;
  margin-top: 60px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.review-card > p {
  max-width: 510px;
  margin: 18px 0 28px;
  color: rgba(255,255,255,.75);
  font-size: 1rem;
}

.review-card__button {
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: rgba(255,255,255,.12);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 720;
  backdrop-filter: blur(10px);
}

.review-card__meta {
  margin-top: 24px;
  display: flex;
  gap: 18px;
  color: rgba(255,255,255,.64);
  font-size: 0.72rem;
}

.social-card {
  padding: 38px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.section-heading--compact {
  margin-bottom: 24px;
}

.social-card h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.social-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-list a {
  min-height: 82px;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface-soft);
  text-decoration: none;
  transition: transform 110ms ease-out, background 160ms ease-out;
}

.social-list a:hover {
  background: var(--red-50);
}

.social-list a > span:nth-child(2) {
  display: flex;
  flex-direction: column;
}

.social-list strong {
  font-size: 0.9rem;
}

.social-list small {
  color: var(--muted);
  font-size: 0.72rem;
}

.social-list a > svg {
  width: 18px;
  height: 18px;
  color: var(--red-700);
}

.social-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #fff;
  font-size: 0.73rem;
  font-weight: 800;
}

.social-logo--max { background: #25283a; }
.social-logo--vk { background: #2787f5; }
.social-logo--ok { background: #ee8208; }

.section-heading__note {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  text-align: right;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.contact-card {
  min-height: 190px;
  padding: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: start;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transition: transform 110ms ease-out, border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.contact-card:hover {
  border-color: rgba(187,22,48,.24);
  box-shadow: var(--shadow-md);
}

.contact-card__avatar {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: var(--red-700);
  font-size: 0.84rem;
  font-weight: 780;
  box-shadow: 0 12px 25px rgba(187,22,48,.18);
}

.contact-card__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.contact-card__body small {
  color: var(--muted);
  font-size: 0.68rem;
}

.contact-card__body strong {
  margin-top: 4px;
  font-size: 1rem;
  letter-spacing: -0.018em;
  line-height: 1.25;
}

.chip-row {
  margin-top: 34px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.chip-row i {
  padding: 5px 9px;
  border-radius: 99px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: 0.65rem;
  font-style: normal;
  font-weight: 650;
}

.contact-card__arrow {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: var(--red-700);
  background: var(--red-50);
}

.delivery-info {
  margin-block: 84px 150px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
  border-radius: var(--radius-lg);
  background: var(--surface-soft);
}

.delivery-info h2 {
  font-size: 2.4rem;
}

.delivery-info p:last-child {
  max-width: 520px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.delivery-info__steps {
  display: flex;
  align-items: center;
  gap: 8px;
}

.delivery-info__steps span {
  min-height: 46px;
  padding: 10px 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  color: var(--ink-soft);
  background: #fff;
  font-size: 0.72rem;
  font-weight: 650;
}

.delivery-info__steps b {
  color: var(--red-700);
}

.mobile-nav {
  display: none;
}

.scrim {
  position: fixed;
  z-index: 100;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  background: rgba(18, 18, 20, 0.34);
  backdrop-filter: blur(3px);
  transition: opacity 260ms var(--ease-out), visibility 0s linear 260ms;
}

.scrim.is-visible,
.scrim.open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}

.panel {
  position: fixed;
  z-index: 110;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(560px, 100vw);
  display: grid;
  grid-template-rows: auto 1fr auto;
  color: var(--ink);
  background: rgba(255,255,255,.96);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(28px) saturate(150%);
  transform: translate3d(104%, 0, 0);
  visibility: hidden;
  transition: transform 360ms var(--ease-out), visibility 0s linear 360ms;
}

.panel--profile {
  grid-template-rows: auto 1fr;
}

.panel.is-open,
.panel.open {
  transform: translate3d(0, 0, 0);
  visibility: visible;
  transition-delay: 0s;
}

.panel--product {
  grid-template-rows: auto 1fr;
}

.panel__header {
  min-height: 102px;
  padding: calc(20px + env(safe-area-inset-top)) 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: rgba(255,255,255,.8);
}

.panel__eyebrow {
  margin: 0 0 3px;
  color: var(--red-700);
  font-size: 0.67rem;
  font-weight: 760;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.panel__header h2 {
  margin: 0;
  font-size: 1.8rem;
  font-weight: 790;
  letter-spacing: -.04em;
  line-height: 1;
}

.panel__close {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  cursor: pointer;
}

.panel__close svg {
  width: 21px;
  height: 21px;
}

.panel__scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0 24px 24px;
}

.cart-delivery {
  margin: 6px 0 20px;
  padding: 15px;
  border: 1px solid rgba(187,22,48,.1);
  border-radius: 18px;
  background: var(--red-50);
}

.cart-delivery.is-free {
  border-color: rgba(21,115,71,.12);
  background: #f2fbf6;
}

.cart-delivery__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.73rem;
}

.cart-delivery__top span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--ink-soft);
}

.cart-delivery__top svg {
  width: 17px;
  height: 17px;
  color: var(--red-700);
}

.cart-delivery.is-free svg,
.cart-delivery.is-free strong {
  color: var(--success);
}

.cart-delivery__top strong {
  color: var(--red-700);
}

.progress-track {
  height: 6px;
  margin-top: 11px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(29,29,31,.08);
}

.progress-track span {
  display: block;
  width: 65%;
  height: 100%;
  border-radius: inherit;
  background: var(--red-700);
  transition: width 260ms var(--ease-out), background 260ms ease;
}

.cart-list {
  display: flex;
  flex-direction: column;
}

.cart-item {
  padding: 20px 0;
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 15px;
  border-bottom: 1px solid var(--line);
}

.cart-item__art {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 20px;
  color: #fff;
  background: linear-gradient(145deg, var(--red-600), var(--red-950));
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: .06em;
}

.cart-item__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.cart-item__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.cart-item__title {
  display: flex;
  flex-direction: column;
}

.cart-item__title strong {
  font-size: 0.91rem;
  letter-spacing: -.018em;
}

.cart-item__title span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.68rem;
}

.cart-item__remove {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 0;
  border-radius: 14px;
  color: var(--red-700);
  background: var(--red-50);
  cursor: pointer;
}

.cart-item__remove svg {
  width: 18px;
  height: 18px;
}

.cart-item__bottom {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.stepper {
  height: 52px;
  padding: 4px;
  display: inline-grid;
  grid-template-columns: 44px minmax(52px, auto) 44px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-soft);
}

.stepper button {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  color: var(--red-700);
  background: #fff;
  font-size: 1.3rem;
  font-weight: 520;
  cursor: pointer;
}

.stepper output {
  min-width: 52px;
  padding-inline: 6px;
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 740;
  text-align: center;
}

.cart-item__price {
  font-size: 1rem;
  font-weight: 790;
  letter-spacing: -.025em;
}

.panel__footer {
  padding: 18px 24px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(20px);
}

.total-row {
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.total-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.total-row strong {
  font-size: 1.7rem;
  letter-spacing: -.045em;
}

.checkout-button {
  width: 100%;
  min-height: 58px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 18px;
  color: #fff;
  background: var(--red-700);
  box-shadow: 0 14px 30px rgba(187,22,48,.2);
  font-size: 0.92rem;
  font-weight: 740;
  cursor: pointer;
}

.panel__footer > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: .62rem;
  text-align: center;
}

.empty-state {
  padding: 68px 16px;
  text-align: center;
}

.empty-state > span {
  width: 72px;
  height: 72px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 22px;
  color: var(--red-700);
  background: var(--red-50);
}

.empty-state > span svg {
  width: 30px;
  height: 30px;
}

.empty-state h3 {
  margin: 18px 0 5px;
  font-size: 1.2rem;
}

.empty-state p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: .8rem;
}

.profile-hero {
  margin: 5px 0 18px;
  padding: 18px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  border-radius: 22px;
  background: var(--surface-soft);
}

.profile-hero__avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 21px;
  color: #fff;
  background: var(--red-700);
}

.profile-hero__avatar svg {
  width: 30px;
  height: 30px;
}

.profile-hero__copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.profile-hero__copy small {
  color: var(--red-700);
  font-size: .64rem;
  font-weight: 720;
}

.profile-hero__copy strong {
  margin-top: 1px;
  font-size: 1.08rem;
  letter-spacing: -.02em;
}

.profile-hero__copy span {
  color: var(--muted);
  font-size: .72rem;
}

.edit-link {
  min-height: 44px;
  padding-inline: 12px;
  border: 0;
  border-radius: 14px;
  color: var(--red-700);
  background: var(--red-50);
  font-size: .7rem;
  font-weight: 690;
  cursor: pointer;
}

.profile-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.profile-tab {
  min-width: 0;
  min-height: 93px;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--ink-soft);
  background: #fff;
  font-size: .62rem;
  font-weight: 690;
  cursor: pointer;
  transition: transform 110ms ease-out, color 160ms ease-out, background 160ms ease-out, border-color 160ms ease-out;
}

.profile-tab > span {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--ink-soft);
  background: var(--surface-soft);
}

.profile-tab svg {
  width: 20px;
  height: 20px;
}

.profile-tab i {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 99px;
  color: #fff;
  background: var(--red-700);
  font-size: .58rem;
  font-style: normal;
}

.profile-tab.is-active {
  border-color: rgba(187,22,48,.2);
  color: var(--red-700);
  background: var(--red-50);
}

.profile-tab.is-active > span {
  color: #fff;
  background: var(--red-700);
}

.profile-content {
  padding: 22px 0 32px;
}

.profile-section-title {
  margin: 0 0 12px;
  font-size: .73rem;
  font-weight: 760;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.order-card {
  margin-bottom: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.order-card__top,
.order-card__meta,
.order-card__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.order-card__number {
  color: var(--red-700);
  font-size: .76rem;
  font-weight: 780;
  letter-spacing: .055em;
}

.order-card__status {
  padding: 5px 10px;
  border-radius: 99px;
  color: var(--ink-soft);
  background: var(--surface-soft);
  font-size: .61rem;
  font-weight: 690;
}

.order-card__items {
  margin: 16px 0;
  color: var(--ink-soft);
  font-size: .83rem;
}

.order-card__meta {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .68rem;
}

.order-card__total {
  margin-top: 5px;
}

.order-card__total strong {
  font-size: 1.25rem;
  letter-spacing: -.025em;
}

.repeat-button {
  width: 100%;
  min-height: 50px;
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 16px;
  color: var(--red-700);
  background: var(--red-50);
  font-size: .79rem;
  font-weight: 720;
  cursor: pointer;
}

.repeat-button svg {
  width: 18px;
  height: 18px;
}

.info-state {
  min-height: 260px;
  padding: 46px 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(187,22,48,.2);
  border-radius: 24px;
  background: var(--red-50);
  text-align: center;
}

.info-state > span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: var(--red-700);
}

.info-state h3 {
  margin: 17px 0 5px;
  font-size: 1.08rem;
}

.info-state p {
  max-width: 310px;
  margin: 0;
  color: var(--muted);
  font-size: .77rem;
}

.toast {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: calc(28px + env(safe-area-inset-bottom));
  min-width: min(340px, calc(100vw - 30px));
  min-height: 58px;
  padding: 10px 16px 10px 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 18px;
  color: #fff;
  background: rgba(29,29,31,.9);
  box-shadow: 0 18px 50px rgba(0,0,0,.2);
  backdrop-filter: blur(18px);
  font-size: .78rem;
  font-weight: 690;
  opacity: 0;
  transform: translate(-50%, 28px);
  pointer-events: none;
  transition: opacity 220ms var(--ease-out), transform 300ms var(--ease-out);
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast__icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: var(--red-600);
}

.toast__icon svg {
  width: 19px;
  height: 19px;
}

@media (max-width: 900px) {
  :root {
    --shell: min(100% - 30px, 760px);
  }

  .topbar__status {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-block: 54px 40px;
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .hero::before {
    top: 118px;
    right: -20%;
    width: min(420px, 58vw);
  }

  .hero::after {
    top: 170px;
    right: -8%;
    width: min(250px, 34vw);
  }

  .hero__content {
    text-align: center;
  }

  .hero h1,
  .hero__copy {
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__facts {
    margin-inline: auto;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card:last-child {
    grid-column: 1 / -1;
  }

  .trust-layout {
    grid-template-columns: 1fr;
  }

  .review-card,
  .social-card {
    min-height: auto;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: 150px;
  }

  .delivery-info {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (min-width: 601px) and (max-width: 900px) and (max-height: 500px) and (orientation: landscape) {
  .topbar__inner {
    min-height: 60px;
  }

  .hero {
    padding-block: 26px 30px;
    grid-template-columns: minmax(0, 650px);
  }

  .hero__content {
    text-align: left;
  }

  .hero h1 {
    margin-inline: 0;
    font-size: clamp(2.45rem, 6.7vw, 3.35rem);
  }

  .hero__typed {
    margin-top: 13px;
  }

  .hero__copy {
    margin: 9px 0 0;
    font-size: .88rem;
  }

  .hero__actions {
    margin-top: 18px;
    justify-content: flex-start;
  }

  .hero::before {
    top: 18px;
    right: -8%;
    width: 270px;
  }

  .hero::after {
    top: 62px;
    right: 2%;
    width: 170px;
  }
}

@media (max-width: 600px) {
  :root {
    --shell: calc(100% - 28px);
    --radius-lg: 24px;
    --radius-xl: 28px;
  }

  body {
    padding-bottom: calc(100px + env(safe-area-inset-bottom));
  }

  .topbar__inner {
    min-height: 64px;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
  }

  .profile-button__label {
    display: none;
  }

  .brand__wordmark strong {
    font-size: 0.98rem;
  }

  .brand__wordmark > span {
    font-size: 0.41rem;
  }

  .profile-button {
    width: 48px;
    padding: 5px;
    justify-content: center;
  }

  .hero {
    padding-block: 42px 28px;
    gap: 10px;
  }

  .hero::before {
    top: 112px;
    right: -53%;
    width: 310px;
    opacity: .4;
  }

  .hero::after {
    display: none;
  }

  .hero__content {
    text-align: left;
  }

  .hero h1 {
    margin: 0;
    font-size: clamp(2.65rem, 13.5vw, 4.2rem);
    letter-spacing: -.058em;
    line-height: .96;
  }

  .hero__typed {
    min-height: 26px;
    margin-top: 16px;
    font-size: .79rem;
  }

  .hero__copy {
    margin: 11px 0 0;
    font-size: .96rem;
  }

  .hero__actions {
    margin-top: 25px;
    justify-content: flex-start;
  }

  .hero__facts {
    margin: 22px 0 0;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .hero__facts li {
    min-height: 88px;
    padding: 9px 8px;
    grid-template-columns: 1fr;
    align-content: center;
    justify-items: start;
    gap: 7px;
    border-radius: 16px;
  }

  .hero__facts li > span {
    width: 31px;
    height: 31px;
    border-radius: 10px;
  }

  .hero__facts svg {
    width: 16px;
    height: 16px;
  }

  .hero__facts strong {
    font-size: .66rem;
  }

  .hero__facts small {
    margin-top: 2px;
    font-size: .5rem;
    white-space: normal;
  }

  .button {
    min-height: 52px;
    padding-inline: 17px;
    border-radius: 16px;
    font-size: .82rem;
  }

  .button--ghost {
    display: none;
  }

  .delivery-bar {
    min-height: 78px;
    padding: 13px;
    gap: 11px;
    border-radius: 20px;
  }

  .delivery-bar__icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .delivery-bar__copy strong {
    font-size: .86rem;
  }

  .delivery-bar__copy span {
    font-size: .65rem;
    line-height: 1.3;
  }

  .catalog-section,
  .contacts-section {
    padding-block: 62px 20px;
  }

  .section-heading {
    margin-bottom: 22px;
    align-items: flex-end;
    gap: 16px;
  }

  .section-heading h2,
  .delivery-info h2 {
    font-size: 2rem;
  }

  .text-link {
    font-size: .72rem;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .product-card:last-child {
    grid-column: auto;
  }

  .product-card {
    display: grid;
    grid-template-columns: 42% 58%;
    border-radius: 24px;
  }

  .product-card__art {
    height: 100%;
    min-height: 230px;
  }

  .product-card__art--meat::before {
    width: 120px;
    height: 92px;
  }

  .product-card__art--sausage::before {
    width: 48px;
    height: 118px;
    box-shadow: 42px 6px 0 #991426, 20px 18px 26px rgba(93,7,19,.24);
    transform: rotate(21deg) translateX(-20px);
  }

  .product-card__art--dumplings::before {
    width: 126px;
    height: 96px;
  }

  .favorite-button {
    top: 12px;
    right: 12px;
    width: 44px;
    height: 44px;
  }

  .product-card__body {
    padding: 58px 14px 16px;
  }

  .product-card h3 {
    font-size: 1.02rem;
  }

  .product-card p {
    font-size: .7rem;
  }

  .product-card__footer {
    margin-top: 18px;
    align-items: flex-end;
    flex-direction: column;
  }

  .product-card__footer > div {
    align-self: flex-start;
  }

  .add-button {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }

  .trust-layout {
    padding-block: 66px 12px;
    gap: 12px;
  }

  .review-card,
  .social-card {
    padding: 25px;
    border-radius: 28px;
  }

  .review-card h2 {
    margin-top: 48px;
    font-size: 2.3rem;
  }

  .review-card__meta {
    flex-direction: column;
    gap: 3px;
  }

  .social-card {
    padding-bottom: 20px;
  }

  .social-card h2 {
    font-size: 1.8rem;
  }

  .social-list a {
    min-height: 76px;
  }

  .section-heading__note {
    display: none;
  }

  .contact-grid {
    gap: 10px;
  }

  .contact-card {
    min-height: 130px;
    padding: 16px;
    gap: 12px;
    border-radius: 22px;
  }

  .contact-card__avatar {
    width: 50px;
    height: 50px;
    border-radius: 16px;
  }

  .chip-row {
    margin-top: 18px;
  }

  .contact-card__arrow {
    width: 44px;
    height: 44px;
  }

  .delivery-info {
    margin-block: 64px 16px;
    padding: 24px;
    gap: 24px;
  }

  .delivery-info__steps {
    align-items: stretch;
    flex-direction: column;
  }

  .delivery-info__steps span {
    width: 100%;
  }

  .mobile-nav {
    position: fixed;
    z-index: 70;
    left: 10px;
    right: 10px;
    bottom: max(8px, env(safe-area-inset-bottom));
    min-height: 78px;
    padding: 8px 5px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    border: 1px solid rgba(255,255,255,.72);
    border-radius: 26px;
    background: rgba(255,255,255,.86);
    box-shadow: 0 20px 50px rgba(29,29,31,.16);
    backdrop-filter: blur(22px) saturate(170%);
    -webkit-backdrop-filter: blur(22px) saturate(170%);
  }

  .mobile-nav__item {
    min-width: 0;
    min-height: 58px;
    padding: 5px 2px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    border: 0;
    border-radius: 17px;
    color: var(--muted);
    background: transparent;
    font-size: .57rem;
    font-weight: 650;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-nav__item > svg {
    width: 22px;
    height: 22px;
  }

  .mobile-nav__item.is-active {
    color: var(--red-700);
  }

  .mobile-nav__cart {
    position: relative;
    overflow: visible;
  }

  .mobile-nav__cart-icon {
    position: absolute;
    top: -24px;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border: 5px solid rgba(255,255,255,.95);
    border-radius: 18px;
    color: #fff;
    background: var(--red-700);
    box-shadow: 0 14px 30px rgba(187,22,48,.28);
  }

  .mobile-nav__cart-icon svg {
    width: 23px;
    height: 23px;
  }

  .mobile-nav__cart-icon i {
    position: absolute;
    top: -7px;
    right: -7px;
    min-width: 21px;
    height: 21px;
    padding-inline: 5px;
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 99px;
    color: #fff;
    background: var(--ink);
    font-size: .58rem;
    font-style: normal;
  }

  .mobile-nav__cart > span:last-child {
    margin-top: 29px;
  }

  .panel {
    top: auto;
    width: 100%;
    height: min(92dvh, 900px);
    max-height: calc(100dvh - env(safe-area-inset-top));
    border-radius: 28px 28px 0 0;
    box-shadow: 0 -24px 80px rgba(29,29,31,.2);
    transform: translate3d(0, 104%, 0);
  }

  .panel__header {
    min-height: 92px;
    padding: 18px 18px 15px;
  }

  .panel__header::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 38px;
    height: 5px;
    border-radius: 99px;
    background: rgba(29,29,31,.14);
    transform: translateX(-50%);
  }

  .panel__header h2 {
    font-size: 1.55rem;
  }

  .panel__close {
    width: 48px;
    height: 48px;
  }

  .panel__scroll {
    padding-inline: 18px;
  }

  .panel__footer {
    padding: 15px 18px calc(15px + env(safe-area-inset-bottom));
  }

  .profile-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-tab {
    min-height: 82px;
  }

  .profile-hero {
    padding: 15px;
  }

  .profile-hero__avatar {
    width: 58px;
    height: 58px;
  }

  .cart-item {
    grid-template-columns: 64px 1fr;
  }

  .cart-item__art {
    width: 64px;
    height: 64px;
  }

  .stepper {
    grid-template-columns: 44px minmax(44px, auto) 44px;
  }

  .toast {
    bottom: calc(100px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 430px) {
  :root {
    --shell: calc(100% - 24px);
  }

  .topbar__inner {
    gap: 8px;
  }

  .brand {
    gap: 7px;
  }

  .topbar__actions {
    gap: 6px;
  }

  .hero {
    padding-block: 34px 22px;
  }

  .hero h1 {
    font-size: clamp(2.42rem, 12.6vw, 3.38rem);
  }

  .hero__copy {
    max-width: 35rem;
    line-height: 1.42;
  }

  .hero__actions {
    margin-top: 21px;
  }

  .hero__actions .button--primary {
    width: 100%;
  }

  .delivery-bar {
    padding-inline: 12px;
  }

  .product-card {
    grid-template-columns: 39% 61%;
  }

  .product-card__body {
    padding-inline: 12px;
  }

  .mobile-nav {
    right: 8px;
    left: 8px;
    border-radius: 24px;
  }
}

@media (max-width: 370px) {
  .hero h1 {
    font-size: 2.32rem;
  }

  .brand__wordmark > span {
    display: none;
  }

  .hero__typed {
    font-size: .73rem;
  }

  .delivery-bar .circle-link {
    display: none;
  }

  .product-card {
    grid-template-columns: 37% 63%;
  }

  .profile-hero {
    grid-template-columns: auto 1fr;
  }

  .edit-link {
    display: none;
  }

  .cart-item__bottom {
    align-items: flex-end;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (prefers-reduced-transparency: reduce) {
  .topbar,
  .mobile-nav,
  .panel,
  .panel__footer,
  .scrim,
  .toast {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .topbar,
  .mobile-nav,
  .panel {
    background: #fff;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(29,29,31,.26);
  }

  .eyebrow,
  .text-link,
  .product-card__tag {
    color: var(--red-900);
  }
}


/* --- site-extensions.css (реальные компоненты сайта) --- */
/* Apple Red — расширения дизайн-системы для реальных компонентов сайта МК Долина,
   которых нет в APPLE_RED_APP_PREVIEW_2026-07-26 (каталог с категориями/сортировкой,
   степпер в карточке, избранное/адреса/бонусы в кабинете, модалка товара, чекаут,
   реальный сплэш/авторизация). Использует токены из apple-red-system.css. */

/* ===== Шапка: элементы, которых нет в прототипе (реальные из block-0.html) ===== */
button.brand {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.wb-search-wrap {
  width: var(--shell);
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0 12px;
  display: none;
}
.wb-search-wrap.open { display: block; }
.wb-search {
  width: 100%;
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  font: inherit;
  font-size: 0.9rem;
  color: var(--ink);
}
.wb-search:focus {
  outline: none;
  border-color: var(--red-700);
  background: #fff;
}

.wb-search-status {
  min-height: 18px;
  margin: 8px 4px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.wb-delivery-strip {
  width: var(--shell);
  max-width: 600px;
  margin: 0 auto;
  padding: 0 0 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  white-space: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.wb-delivery-strip::-webkit-scrollbar { display: none; }
.wb-delivery-strip a {
  color: var(--red-700);
  font-weight: 700;
  text-decoration: none;
}
.wb-ds-sep { opacity: 0.5; }

/* ===== Алиасы под реальные классы/атрибуты переключения состояния =====
   Реальный JS переключает не .is-active/.is-visible (как в демо-прототипе),
   а свои классы — .active / .show / [hidden]. Правим здесь, не трогая JS. */
.mobile-nav__item.active { color: var(--red-700); }
.count-badge.wb-badge { display: none; }
.count-badge.wb-badge.show { display: grid; }
.mobile-nav__cart-icon i.show { display: grid; }
.mobile-nav__cart-icon i:not(.show) { display: none; }

.test-mode-banner {
  position: relative;
  z-index: 500;
  padding: 6px 12px calc(6px + env(safe-area-inset-top));
  text-align: center;
  background: #1d1d1f;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

/* ===== Реальный SEO-заголовок каталога (_injectCatalogH2, инлайн-стили в
   коде — перебиваем !important, текст не трогаем) ===== */
#catalog-heading {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif !important;
  font-size: clamp(2rem, 3.8vw, 3.3rem) !important;
  font-weight: 790 !important;
  letter-spacing: -0.048em !important;
  line-height: 1.02 !important;
  color: var(--ink) !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
}

/* ===== Категории (лента вкладок над каталогом) ===== */
.category-tabs {
  margin: 0 0 18px;
  padding-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-tabs::-webkit-scrollbar { display: none; }

.category-chip {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 680;
  cursor: pointer;
  transition: background 160ms ease-out, color 160ms ease-out, border-color 160ms ease-out;
}
.category-chip.active {
  border-color: transparent;
  background: var(--red-700);
  color: #fff;
}

.catalog-toolbar {
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.sort-control {
  min-height: 44px;
  padding: 0 36px 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234c4c50' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center;
  background-size: 16px;
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 650;
  appearance: none;
  cursor: pointer;
}

.wb-empty {
  grid-column: 1 / -1;
  padding: 64px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ===== Степпер количества в карточке / модалке товара ===== */
.quantity-stepper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 48px;
  padding: 0 4px;
  border-radius: 15px;
  background: var(--red-50);
}
.quantity-stepper button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--red-700);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
}
.quantity-stepper button:active { transform: scale(0.92); }
.quantity-stepper span {
  min-width: 52px;
  text-align: center;
  font-size: 0.86rem;
  font-weight: 720;
  color: var(--ink);
}
.quantity-stepper--compact {
  height: 40px;
}
.quantity-stepper--compact button {
  width: 32px;
  height: 32px;
}

/* Бейдж "Новинка" поверх изображения карточки */
.product-card__new-badge {
  position: absolute;
  z-index: 5;
  top: 15px;
  left: 15px;
  padding: 5px 10px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 760;
  letter-spacing: 0.02em;
}

/* Нейтральный fallback вместо фото товара (без эмодзи) */
.product-card__art--fallback {
  color: rgba(29, 29, 31, 0.22);
}
.product-card__art--fallback svg {
  width: 64px;
  height: 64px;
}
.product-card__art img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__rating {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.72rem;
}
.product-card__rating svg {
  width: 13px;
  height: 13px;
  color: var(--red-700);
  fill: var(--red-700);
}

.product-card__price-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.product-card__old-price {
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: line-through;
}

/* ===== Профиль: избранное / адреса / бонусы / уведомления ===== */
.favorite-row,
.address-card,
.notification-row {
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.favorite-row__body strong,
.address-card__body strong { display: block; font-size: 0.94rem; letter-spacing: -0.015em; }
.favorite-row__body span,
.address-card__body span { display: block; margin-top: 3px; color: var(--muted); font-size: 0.78rem; }

.favorite-row__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.favorite-row__actions button {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  font-size: 0.76rem;
  font-weight: 680;
  cursor: pointer;
}
.favorite-row__actions button.is-primary {
  border-color: transparent;
  background: var(--red-700);
  color: #fff;
}

.address-card__badge {
  padding: 3px 9px;
  border-radius: 99px;
  background: var(--red-50);
  color: var(--red-700);
  font-size: 0.62rem;
  font-weight: 720;
}

.field {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 650;
}
.field input,
.field select,
.field textarea {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--red-700);
  background: #fff;
}

.bonus-hero {
  padding: 28px 20px;
  margin-bottom: 18px;
  text-align: center;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, var(--red-900), var(--red-600));
  color: #fff;
}
.bonus-hero__amount {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.bonus-hero__label {
  margin-top: 4px;
  opacity: 0.8;
  font-size: 0.82rem;
}
.bonus-rule {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
}
.lk-footer-link {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.lk-footer-link button {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--red-700);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}
.lk-footer-link button svg { width: 18px; height: 18px; }

.bonus-history-title {
  margin-bottom: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ===== Модалка товара (панель снизу/справа, как cart/profile) =====
   Реальный openProductModal() оборачивает содержимое в .pm-wrap/.pm-box/
   /.pm-handle/.pm-close (генерируются каждый раз заново) — стилизуем их
   напрямую под уже открытый #_prodModal.panel.panel--product. */
.panel--product {
  grid-template-rows: 1fr;
}
.panel--product .pm-wrap {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.panel--product .pm-box {
  position: relative;
  min-height: 100%;
  padding: 20px 24px calc(24px + env(safe-area-inset-bottom));
}
.panel--product .pm-handle {
  display: none;
}
.panel--product .pm-close {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-soft);
  color: var(--ink-soft);
  font-size: 0;
  cursor: pointer;
}
.panel--product .pm-close::before {
  content: "";
  width: 19px;
  height: 19px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 6.5 11 11m0-11-11 11' stroke='%23000' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6.5 6.5 11 11m0-11-11 11' stroke='%23000' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") center/contain no-repeat;
}
.panel--product .product-modal__art {
  margin-top: 44px;
}
.panel--product .pm-body {
  padding-top: 4px;
}
.product-modal__art {
  position: relative;
  height: 260px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-soft);
  margin: 0 24px 18px;
  width: calc(100% - 48px);
}
.product-modal__art img { width: 100%; height: 100%; object-fit: cover; }
.product-modal__art svg { width: 72px; height: 72px; color: rgba(29,29,31,.22); }
.product-modal__brand { color: var(--red-700); font-size: 0.72rem; font-weight: 720; text-transform: uppercase; letter-spacing: 0.04em; }
.product-modal__name { margin: 6px 0 4px; font-size: 1.5rem; font-weight: 780; letter-spacing: -0.03em; }
.product-modal__rating { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 0.8rem; margin-bottom: 10px; }
.product-modal__price-row { display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.product-modal__price { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em; }
.product-modal__unit { color: var(--muted); font-size: 0.85rem; }
.product-modal__desc { color: var(--ink-soft); font-size: 0.9rem; line-height: 1.5; margin-bottom: 12px; }
.product-modal__tip {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: 14px;
  background: var(--red-50);
  color: var(--ink-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}
.product-modal__tip svg { flex: none; width: 18px; height: 18px; color: var(--red-700); }
.product-modal__actions { padding: 0 0 4px; }
.product-modal__badge-new {
  position: absolute; top: 16px; left: 16px; z-index: 2;
  padding: 5px 10px; border-radius: 99px; background: var(--ink); color: #fff;
  font-size: 0.62rem; font-weight: 760;
}

/* ===== Заказ — детальная карточка (нижний лист) ===== */
.order-detail-sheet {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(18,18,20,.4);
}
.order-detail-sheet__card {
  width: 100%; max-width: 560px; max-height: 88vh;
  overflow-y: auto;
  padding: 24px 24px calc(24px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0;
  background: #fff;
  box-shadow: var(--shadow-panel);
}
.order-detail-sheet__top {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px;
}
.order-detail-sheet__close {
  width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: var(--surface-soft); color: var(--ink-soft); cursor: pointer; flex: none;
}
.order-detail-sheet__items { margin: 14px 0; }
.os-item { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.86rem; }
.os-total { display: flex; justify-content: space-between; padding-top: 12px; font-weight: 780; }
.order-detail-sheet__meta { margin-top: 10px; color: var(--muted); font-size: 0.82rem; line-height: 1.6; }

/* ===== Чекаут (#md-checkout-modal, реальные классы из checkout-logic.js — mdc-*) =====
   Контейнер переключается атрибутом [hidden], не классом — стилизуем по факту атрибута. */
#md-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  background: var(--surface);
}
#md-checkout-modal[hidden] { display: none; }
#md-checkout-root {
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.mdc-shell {
  min-height: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 0 20px calc(28px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
}
.mdc-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: calc(16px + env(safe-area-inset-top)) 0 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
}
.mdc-ibtn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  flex: none;
}
.mdc-ibtn svg { width: 19px; height: 19px; }
.mdc-istub { width: 44px; height: 44px; flex: none; }
.mdc-logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.mdc-logo small { color: var(--muted); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.1em; }
.mdc-logo span { color: var(--red-700); font-size: 0.95rem; font-weight: 820; letter-spacing: -0.02em; }
.mdc-head { margin: 10px 0 22px; }
.mdc-step { color: var(--red-700); font-size: 0.72rem; font-weight: 760; letter-spacing: 0.08em; }
.mdc-title { margin: 4px 0 0; font-size: 2rem; font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.mdc-sub { margin: 8px 0 0; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.mdc-h2 { margin: 0 0 4px; font-size: 1.4rem; font-weight: 780; letter-spacing: -0.02em; }
.mdc-note { margin: 0 0 16px; color: var(--muted); font-size: 0.82rem; }
.mdc-list { display: flex; flex-direction: column; gap: 12px; margin-bottom: 16px; }
.mdc-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.mdc-prod { display: flex; gap: 12px; }
.mdc-img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; background: var(--surface-soft); flex: none; }
.mdc-pmain { flex: 1; min-width: 0; }
.mdc-ptitle { margin: 0; font-size: 0.94rem; font-weight: 700; letter-spacing: -0.01em; }
.mdc-muted { color: var(--muted); font-size: 0.78rem; }
.mdc-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mdc-row + .mdc-row { margin-top: 8px; }
.mdc-prow { margin-top: 10px; }
.mdc-price { font-size: 0.98rem; font-weight: 760; }
.mdc-qty {
  display: inline-flex; align-items: center; gap: 2px;
  height: 40px; padding: 0 4px; border-radius: 13px; background: var(--red-50);
}
.mdc-qty button {
  width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent;
  color: var(--red-700); font-size: 1rem; font-weight: 700; cursor: pointer;
}
.mdc-qty span { min-width: 22px; text-align: center; font-size: 0.86rem; font-weight: 700; }
.mdc-summary { margin-bottom: 16px; }
.mdc-free { color: #157347; font-weight: 700; }
.mdc-btnwrap { margin-top: auto; padding-top: 12px; }
.mdc-btn {
  width: 100%; min-height: 56px; border: 0; border-radius: 17px;
  background: var(--red-700); color: #fff; font-size: 0.96rem; font-weight: 720; cursor: pointer;
}
.mdc-btn:active { transform: scale(0.98); }
.mdc-btn[disabled] { opacity: 0.6; cursor: default; }
.mdc-foot { margin: 12px 0 0; color: var(--muted); font-size: 0.74rem; text-align: center; }

.mdc-field { margin-bottom: 20px; }
.mdc-label { display: block; margin-bottom: 10px; color: var(--muted); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.mdc-method {
  width: 100%; min-height: 64px; margin-bottom: 8px; padding: 0 14px;
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
  cursor: pointer; text-align: left;
}
.mdc-method.mdc-active { border-color: var(--red-700); background: var(--red-50); }
.mdc-icon { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--red-50); color: var(--red-700); }
.mdc-method.mdc-active .mdc-icon { background: #fff; }
.mdc-mtitle { display: block; font-size: 0.92rem; font-weight: 700; }
.mdc-method .mdc-muted, .mdc-city .mdc-muted { display: block; margin-top: 2px; }
.mdc-radio { width: 20px; height: 20px; margin-left: auto; border: 2px solid var(--line); border-radius: 50%; flex: none; }
.mdc-method.mdc-active .mdc-radio, .mdc-city.mdc-active .mdc-radio { border-color: var(--red-700); background: radial-gradient(circle, var(--red-700) 40%, transparent 44%); }
.mdc-dates { display: flex; gap: 8px; margin-bottom: 8px; overflow-x: auto; }
.mdc-date {
  flex: 0 0 auto; min-width: 76px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer;
}
.mdc-date b { font-size: 0.84rem; }
.mdc-date span { color: var(--muted); font-size: 0.7rem; }
.mdc-date.mdc-active { border-color: transparent; background: var(--red-700); color: #fff; }
.mdc-date.mdc-active span { color: rgba(255,255,255,.8); }
.mdc-times { display: flex; gap: 8px; flex-wrap: wrap; }
.mdc-time {
  min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--surface); color: var(--ink-soft); font-size: 0.82rem; font-weight: 650; cursor: pointer;
}
.mdc-time.mdc-active { border-color: transparent; background: var(--red-700); color: #fff; }
.mdc-textarea {
  width: 100%; min-height: 84px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px;
  background: var(--surface-soft); font: inherit; font-size: 0.88rem; resize: vertical;
}
.mdc-stack { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.mdc-inputcard {
  display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface);
}
.mdc-inputcard .mdc-icon { margin-top: 2px; }
.mdc-ilabel { display: block; margin-bottom: 4px; color: var(--muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.mdc-input {
  width: 100%; border: 0; background: transparent; padding: 0; font: inherit; font-size: 0.92rem; color: var(--ink);
}
.mdc-input:focus { outline: none; }
.mdc-inputcard:focus-within { border-color: var(--red-700); }
.mdc-error { display: block; margin-top: 4px; color: var(--red-700); font-size: 0.74rem; }
.mdc-cities { display: flex; gap: 8px; margin-bottom: 8px; }
.mdc-city {
  flex: 1; min-height: 52px; padding: 0 12px; display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface); cursor: pointer;
}
.mdc-city svg { width: 16px; height: 16px; color: var(--red-700); }
.mdc-city.mdc-active { border-color: var(--red-700); background: var(--red-50); }
.mdc-extra { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.mdc-extra .mdc-input {
  padding: 12px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-soft);
}

.mdc-success { padding: 24px 0 0; text-align: center; }
.mdc-check { width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%; background: var(--red-50); color: var(--red-700); display: grid; place-items: center; }
.mdc-check svg { width: 32px; height: 32px; }
.mdc-stitle { margin: 0; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.025em; }
.mdc-stext { margin: 8px 0 22px; color: var(--muted); font-size: 0.9rem; line-height: 1.4; }
.mdc-contact { display: flex; align-items: center; gap: 12px; text-align: left; margin-bottom: 14px; }
.mdc-contact a { color: var(--red-700); font-weight: 720; text-decoration: none; }
.mdc-bhead { margin-bottom: 10px; font-weight: 720; }
.mdc-ord { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); text-align: left; }
.mdc-thumb { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; }
.mdc-ometa { flex: 1; min-width: 0; }
.mdc-otitle { font-size: 0.86rem; font-weight: 650; }
.mdc-oprice { font-size: 0.86rem; font-weight: 700; }
.mdc-div { height: 1px; margin: 10px 0; background: var(--line); }

/* ===== Сплэш / прелоадер (реальный #preloader, восстилизован) ===== */
#preloader {
  position: fixed; inset: 0; z-index: 99999;
  display: grid; grid-template-rows: auto 1fr auto;
  padding: calc(18px + env(safe-area-inset-top)) 22px calc(20px + env(safe-area-inset-bottom));
  background: var(--surface);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  transition: opacity 420ms var(--ease-out), visibility 420ms;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-domainrow { display: grid; justify-items: center; gap: 10px; }
.pl-domain { font-size: 0.9rem; font-weight: 700; color: var(--muted); }
.pl-progress { width: 140px; height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.pl-progress span { display: block; width: 40%; height: 100%; background: var(--red-700); animation: pl-bar 1.1s ease-in-out infinite alternate; }
@keyframes pl-bar { from { transform: translateX(-30%);} to { transform: translateX(130%);} }
.pl-main { display: grid; justify-items: center; gap: 22px; }
.pl-brandrow { display: flex; align-items: baseline; gap: 10px; }
.pl-mk { font-size: 1.7rem; font-weight: 820; color: var(--ink); }
.pl-dolina { font-size: 1.9rem; font-weight: 860; color: var(--red-700); }
.pl-sub { color: var(--muted); font-size: 0.72rem; font-weight: 650; letter-spacing: 0.3em; }
.pl-photo { display: none; }
.pl-loader { display: grid; justify-items: center; gap: 10px; }
.pl-spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--red-100); border-top-color: var(--red-700); animation: pl-spin .8s linear infinite; }
@keyframes pl-spin { to { transform: rotate(360deg);} }
.pl-title { margin: 0; font-size: 0.94rem; font-weight: 650; }
.pl-subtitle { margin: -2px 0 0; color: var(--muted); font-size: 0.82rem; }
.pl-benefits { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.pl-benefit { display: grid; justify-items: center; gap: 8px; text-align: center; }
.pl-benefit-icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--red-50); color: var(--red-700); }
.pl-benefit strong { font-size: 0.78rem; }
.pl-benefit span { margin-top: 2px; color: var(--muted); font-size: 0.7rem; }

@media (prefers-reduced-motion: reduce) {
  #preloader, .pl-progress span, .pl-spinner { animation: none !important; transition-duration: 1ms !important; }
}

/* ===== Гостевой сплэш авторизации (реальный #authSplash) ===== */
#authSplash {
  position: fixed; inset: 0; z-index: 99998;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 24px 22px calc(28px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 20% 15%, rgba(217,29,61,.08), transparent 40%),
    var(--surface);
}
#authSplash:not(.hidden) { display: flex; }
.as-bg-orb { display: none; }
.as-scene { flex: 1; display: grid; place-items: center; text-align: center; }
.as-3d-wrap, .as-3d-inner, .as-ring1, .as-ring2, .as-orbit-icon, .as-platform { display: none; }
.as-emoji-main { display: none; }
.as-brand-name { font-size: 1.6rem; font-weight: 820; letter-spacing: -0.02em; }
.as-brand-name span { color: var(--red-700); }
.as-brand-sub { margin-top: 6px; color: var(--muted); font-size: 0.85rem; }
.as-card { width: 100%; max-width: 420px; }
.as-card-title { font-size: 1.3rem; font-weight: 780; letter-spacing: -0.02em; text-align: center; }
.as-card-sub { margin: 8px 0 20px; color: var(--muted); font-size: 0.86rem; text-align: center; line-height: 1.4; }
.as-btn-google, .as-btn-guest {
  width: 100%; min-height: 54px; margin-bottom: 10px; border-radius: 17px; font-size: 0.9rem; font-weight: 700; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
}
.as-btn-google { border: 0; background: var(--ink); color: #fff; }
.as-btn-guest { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

/* ===== Карта (реальный Яндекс iframe) + 2ГИС-заглушка ===== */
.map-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: var(--surface-soft);
}
.map-card iframe {
  display: block;
  width: 100%;
  height: 340px;
  border: 0;
}
.map-card__soon {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 99px;
  background: rgba(18,18,20,.55);
  color: rgba(255,255,255,.85);
  font-size: 0.7rem;
  font-weight: 650;
  backdrop-filter: blur(6px);
  cursor: default;
}

/* ===== Частицы прелоадера (реально генерируются _spawnParticles()) ===== */
.pl-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.pl-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(217, 29, 61, .18);
  animation: pl-float var(--dur, 4s) ease-in-out var(--delay, 0s) infinite;
}
@keyframes pl-float {
  0%, 100% { transform: translate(0, 0); opacity: .35; }
  50% { transform: translate(var(--tx), var(--ty)); opacity: .85; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-particle { animation: none !important; }
}

/* ===== Тост (реально создаётся showToast() как #lkToast.lk-toast) ===== */
.lk-toast {
  position: fixed;
  z-index: 9500;
  left: 50%;
  bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 12px);
  padding: 13px 20px;
  border-radius: 99px;
  background: var(--ink);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 650;
  opacity: 0;
  box-shadow: 0 18px 40px rgba(0,0,0,.22);
  transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out);
  pointer-events: none;
}
.lk-toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ===== Комплаенс-бейджи состава/КБЖУ — только токены, текст/логика не меняются ===== */
.mkd-compliance-panel {
  --mkd-compliance-accent: var(--red-700);
  --mkd-compliance-accent-soft: var(--red-50);
  border-radius: var(--radius-md) !important;
}
.mkd-compliance-badge {
  border-radius: 99px !important;
}


/* --- accessibility.css (доступность) --- */
/* Apple Red — дополнительная доступность поверх apple-red-system.css.
   Реальный сайт переключает панели классом .open, а не aria-hidden — адаптер
   (scripts/site-adapter.js) синхронизирует aria-hidden/aria-modal/focus, эти
   правила используют оба состояния на случай рассинхронизации. */

.panel[aria-hidden="true"] {
  visibility: hidden;
}

.panel.open,
.panel.is-open {
  visibility: visible;
}

/* Явная видимая рамка фокуса для карточек/степперов на устройствах без hover */
.product-card:focus-within {
  box-shadow: 0 0 0 3px rgba(217, 29, 61, 0.22);
}

.category-chip:focus-visible,
.sort-control:focus-visible,
.quantity-stepper button:focus-visible {
  outline: 3px solid rgba(217, 29, 61, 0.36);
  outline-offset: 2px;
}

/* aria-live регион для тостов/счётчика корзины должен быть виден скринридеру,
   даже когда визуально скрыт до появления */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  .checkout-screen,
  .checkout-steps span,
  .pl-progress span,
  .quantity-stepper button {
    transition: none !important;
  }
}


/* --- Заплатка: убраны подписи под иконками вкладок личного кабинета, 2026-08-01 --- */
.profile-tab .lk-qb-label{display:none!important;}
.profile-tab{justify-content:center!important;}


/* --- Заплатка: сетка каталога на мобильном возвращена в 1 колонку — карточка товара из эталона расположена горизонтально (фото слева) и требует полной ширины, иначе фото обрезается, 2026-08-01 --- */
@media(max-width:600px){
  .wb-grid{grid-template-columns:1fr!important;}
}


/* --- Заплатка: подпись «Корзина» в нижней навигации выровнена по высоте с остальными, сердечко избранного компактнее, 2026-08-01 --- */
.wb-bnav-cart > span:last-child{margin-top:8px!important;}
.wb-bnav-item{padding-top:9px!important;}
.wb-bnav-cart{padding-top:0!important;}
.favorite-button{width:36px!important;height:36px!important;top:10px!important;right:10px!important;}
.favorite-button svg{width:16px!important;height:16px!important;}


/* --- Заплатка: забыл стиль для надписи о минимальной сумме заказа в корзине, 2026-08-01 --- */
.cart-minorder{margin:6px 0 20px;padding:15px;display:flex;align-items:center;justify-content:space-between;gap:12px;border:1px solid rgba(187,22,48,.15);border-radius:18px;background:var(--red-50, #fff5f7);}
.cart-minorder svg{display:none;}
.cart-minorder span{display:inline-flex;align-items:center;color:var(--red-700, var(--wb));font-size:.73rem;font-weight:650;}
.cart-minorder strong{color:var(--red-700, var(--wb));white-space:nowrap;}


/* --- Заплатка: раздел соцсетей приведён к общему чистому стилю сайта вместо ярких градиентов, 2026-08-01 --- */
body .wb-social-max,body .wb-social-vk,body .wb-social-ok{background:#fff!important;border:1px solid var(--border)!important;box-shadow:var(--shadow)!important;min-height:auto!important;padding:18px!important;}
body .wb-social-glow,body .wb-social-pulse{display:none!important;}
body .wb-social-icon{width:44px;height:44px;border-radius:14px;display:flex!important;align-items:center;justify-content:center;margin-bottom:8px!important;overflow:hidden;}
body .wb-social-max .wb-social-icon{background:#25283a!important;}
body .wb-social-vk .wb-social-icon{background:#2787f5!important;}
body .wb-social-ok .wb-social-icon{background:#ee8208!important;}
body .wb-social-icon svg rect{fill:transparent!important;}
body .wb-social-title{color:var(--text)!important;font-size:.92rem!important;font-weight:760!important;}
body .wb-social-desc{color:var(--sub)!important;font-size:.78rem!important;line-height:1.5!important;}
body .wb-social-arrow{color:var(--wb)!important;font-weight:700!important;font-size:.82rem!important;}

/* --- Заплатка: скрыть счётчик на вкладке Избранное, карточка избранного с фото товара, 2026-08-01 --- */
.profile-tab .lk-qb-badge { display: none !important; }

.favorite-row {
  align-items: center !important;
}
.favorite-row__art {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, var(--red-600), var(--red-950));
}
.favorite-row__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.favorite-row .favorite-row__body {
  flex: 1 1 auto;
  min-width: 0;
}
.favorite-row .favorite-row__body strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.favorite-row__remove {
  width: 40px !important;
  height: 40px !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center;
  flex: 0 0 auto;
  border: 0 !important;
  border-radius: 12px !important;
  color: var(--red-700) !important;
  background: var(--red-50) !important;
  cursor: pointer;
}
.favorite-row__remove svg {
  width: 18px;
  height: 18px;
}

/* --- Каталог: переключатель "крупные / мелкие" карточки (мобильный вид), 2026-08-01 --- */
.wb-grid-toggle {
  display: none;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: 12px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
}
.wb-grid-toggle__btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.wb-grid-toggle__btn.active {
  background: var(--surface);
  color: var(--red-700);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 600px) {
  .wb-grid-toggle { display: inline-flex; }
  body.wb-compact .wb-grid { grid-template-columns: repeat(2,1fr) !important; gap: 10px !important; }
  body.wb-compact .product-card { display: block !important; border-radius: var(--radius-md) !important; }
  body.wb-compact .product-card__art { height: 120px !important; min-height: 0 !important; }
  body.wb-compact .product-card__art--meat::before,
  body.wb-compact .product-card__art--sausage::before,
  body.wb-compact .product-card__art--dumplings::before { transform: scale(.62); }
  body.wb-compact .favorite-button { width: 32px !important; height: 32px !important; top: 8px !important; right: 8px !important; border-radius: 10px !important; }
  body.wb-compact .favorite-button svg { width: 15px; height: 15px; }
  body.wb-compact .product-card__body { padding: 10px 10px 12px !important; }
  body.wb-compact .product-card__tag { display: none !important; }
  body.wb-compact .product-card h3 {
    font-size: .8rem !important;
    margin: 6px 0 4px !important;
    line-height: 1.2 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  body.wb-compact .product-card__rating { display: none !important; }
  body.wb-compact .product-card__footer { margin-top: 6px !important; flex-direction: column !important; align-items: flex-start !important; gap: 6px !important; }
  body.wb-compact .product-card__price-wrap { gap: 1px !important; }
  body.wb-compact .product-card__price-wrap strong { font-size: .84rem !important; }
  body.wb-compact .product-card__old-price { display: none !important; }
  body.wb-compact .add-button { width: 100% !important; min-height: 34px !important; padding: 0 10px !important; font-size: .72rem !important; }
  body.wb-compact .quantity-stepper { width: 100% !important; }
}
