/* Светлая фотография остаётся видимой; контраст нужен только под текстом. */
.redesign-promo{background-image:linear-gradient(90deg,#131820b0 0%,#13182070 37%,#1318200d 72%,transparent 100%),url('/site-real-delivery.webp')}
.redesign-promo:before{content:"";position:absolute;inset:0;z-index:0;background:inherit;filter:brightness(1.28) saturate(1.04);pointer-events:none}
.redesign-promo:after{z-index:1;background:linear-gradient(0deg,#11182055,transparent 18%)}
.redesign-promo-copy{text-shadow:0 2px 14px #0008}
.redesign-promo h1 em{background:none;color:#ff5268;text-shadow:0 2px 12px #22020b88}
.redesign-promo p{color:#fff}
.category-mobile-toggle{display:none}
.category-tree-roots{max-height:min(72vh,800px)!important;overflow-y:auto!important}
.redesign-category-sidebar .category-branch{min-width:0;flex:initial}
.redesign-category-sidebar .category-branch-row{display:flex;align-items:stretch;min-width:0}
.redesign-category-sidebar .category-branch-row>a{flex:1;min-width:0;min-height:44px;white-space:normal;border:0;border-radius:0}
.redesign-category-sidebar .category-branch-row>a:hover{padding-left:15px}
.category-branch-toggle{width:44px;min-width:44px;min-height:44px;cursor:pointer;border:0;border-left:1px solid #ffffff14;background:transparent;color:#ff6c80;display:grid;place-items:center}
.category-branch-toggle:hover{background:#ffffff12}
.category-branch-toggle span{transition:transform .24s ease;font-size:20px;line-height:1}
.category-branch-toggle[aria-expanded=true] span{transform:rotate(180deg)}
.category-branch-children{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .26s ease,visibility .26s}
.category-branch-children.expanded{grid-template-rows:1fr;visibility:visible}
.category-branch-children>div{min-height:0;overflow:hidden}
.redesign-category-sidebar .category-branch-children ul{display:block;max-height:none;overflow:visible;padding:0 0 0 12px;margin:0 0 0 14px;border-left:1px solid #8884}
.redesign-category-sidebar .category-branch-children a{font-size:11px;padding-right:5px}
.redesign-category-sidebar .category-branch-row>a .redesign-sidebar-label{opacity:1;white-space:normal;overflow-wrap:normal}
:root[data-theme=light] .category-branch-toggle{color:#b31129;border-color:#dfe3e7}
:root[data-theme=light] .category-branch-toggle:hover{background:#f4f4f6}
.topbar{letter-spacing:.025em;font-size:12px}
@media(max-width:850px){
    .redesign-category-sidebar .redesign-sidebar-title{display:none}
    .category-mobile-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:12px 16px;border:0;background:linear-gradient(110deg,#df1932,#8d0c1f);color:#fff;font-weight:800;cursor:pointer}
    .category-tree{display:none}
    .category-tree.mobile-open{display:block;animation:category-tree-appear .22s ease-out}
    .redesign-category-sidebar .category-tree-roots{display:block;overflow-x:hidden!important;max-height:60vh!important;padding:6px 0}
    .redesign-category-sidebar .category-branch-row>a{font-size:13px}
    .redesign-category-sidebar .category-branch-children a{font-size:12px}
    .redesign-category-sidebar .redesign-sidebar-all{display:flex}
}
html[data-view=mobile] .redesign-category-sidebar .redesign-sidebar-title{display:none}
html[data-view=mobile] .category-mobile-toggle{display:flex;align-items:center;justify-content:space-between;width:100%;min-height:48px;padding:12px 16px;border:0;background:linear-gradient(110deg,#df1932,#8d0c1f);color:#fff;font-weight:800;cursor:pointer}
html[data-view=mobile] .category-tree{display:none}
html[data-view=mobile] .category-tree.mobile-open{display:block;animation:category-tree-appear .22s ease-out}
html[data-view=mobile] .redesign-category-sidebar .category-tree-roots{display:block;overflow-x:hidden!important;max-height:60vh!important;padding:6px 0}
html[data-view=mobile] .redesign-category-sidebar .category-branch-row>a{font-size:13px;white-space:normal;border:0;border-radius:0}
html[data-view=mobile] .redesign-category-sidebar .category-branch-children ul{display:block;overflow:visible;padding:0 0 0 12px}
html[data-view=mobile] .redesign-category-sidebar .redesign-sidebar-all{display:flex}
@media(max-width:600px){.redesign-promo{background-image:linear-gradient(90deg,#131820b0 0%,#13182070 55%,#13182015 100%),url('/site-real-delivery.webp')}.topbar{font-size:11px}}
html[data-view=mobile] .redesign-promo{background-image:linear-gradient(90deg,#131820b0 0%,#13182070 55%,#13182015 100%),url('/site-real-delivery.webp')}
@keyframes category-tree-appear{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}
.delivery-estimator{margin:0 0 45px;padding:28px;border:1px solid var(--line);border-radius:16px;background:var(--panel);display:grid;grid-template-columns:1fr 1fr;gap:26px}
.delivery-estimator>div:first-child{grid-column:1/-1}.delivery-estimator h2{margin:8px 0;font-size:32px;line-height:1.2}
.delivery-estimator p{color:var(--muted);line-height:1.6}.delivery-estimator form,.delivery-estimator label{display:flex;flex-direction:column;gap:8px;min-width:0}
.delivery-estimator form{gap:18px}.delivery-estimator label{font-size:13px;font-weight:700}
.delivery-estimator fieldset{display:contents;border:0;margin:0;padding:0;min-width:0}
.delivery-estimator fieldset:disabled :is(input,select,button),.category-mobile-toggle:disabled,.category-branch-toggle:disabled{opacity:.6;cursor:wait}
.delivery-estimator :is(input,select){width:100%;min-width:0;min-height:46px;border:1px solid var(--line);border-radius:8px;padding:10px;background:var(--bg);color:var(--ink);font:inherit}
.delivery-input-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.delivery-estimator .delivery-check{flex-direction:row;align-items:center;min-height:44px}
.delivery-estimator .delivery-check input{width:22px;min-height:22px;accent-color:var(--red)}.delivery-estimator small{color:var(--muted)}
.delivery-estimate-result{align-self:start;padding:25px;background:var(--bg);border:1px solid var(--line);border-radius:12px;overflow-wrap:anywhere}
.delivery-estimate-result>strong{display:block;font-size:30px;line-height:1.3;margin-block:10px;color:var(--ink)}.delivery-estimate-result>a{color:var(--red);font-weight:800}
@media(max-width:700px){.delivery-estimator{grid-template-columns:1fr;padding:18px;gap:18px}.delivery-estimator h2{font-size:27px}.delivery-estimate-result{padding:18px}}
html[data-view=mobile] .delivery-estimator{grid-template-columns:1fr;padding:18px;gap:18px}
@media(prefers-reduced-motion:reduce){.category-branch-children,.category-branch-toggle span{transition:none}.category-tree.mobile-open,html[data-view=mobile] .category-tree.mobile-open{animation:none}}
