/* ============================================================
   Шапка и меню BELHOME (новая, 23.09.2026).
   Все классы с префиксом bh- — чтобы не пересекаться со старыми стилями сайта.
   Цвета, ширина и высоты строк — переменные --bh-* в блоке :root ниже.
   Подключается в header.php после media.css.
   ============================================================ */
:root{--bh-brand:#0169b5;          
    --bh-brand-dark:#014f88;
    --bh-brand-soft:#eaf3fb;
    --bh-logo-icon:#49a0d5;      
    --bh-logo-text:#454553;      
    --bh-accent:#f46e14;         
    --bh-green:#12925a;          
    --bh-ink:#1c2733;            
    --bh-ink-2:#3b4756;
    --bh-muted:#6f7b8a;
    --bh-line:#e4e8ed;
    --bh-soft:#f3f5f8;
    
    --bh-nav-bg:var(--bh-brand);
    --bh-nav-ink:#fff;
    --bh-nav-hover:rgba(255,255,255,.14);
    --bh-nav-line:#fff;
    --bh-util-bg:#eaf3fb;        
    
    --bh-container:1200px;       
    --bh-gutter:20px;
    --bh-h-util:36px;            
    --bh-h-main:72px;            
    --bh-h-nav:48px;             
    --bh-font:Roboto,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;}

/* ---------- сброс и шрифт — только внутри шапки, на остальной сайт не влияет (через :where — не перебивает стили ниже) ---------- */
:where(.bh-util,.bh-sticky,.bh-drawer,.bh-overlay){font-family:var(--bh-font);font-size:15px;line-height:1.4;color:var(--bh-ink);-webkit-font-smoothing:antialiased;text-align:left}
:where(.bh-util,.bh-sticky,.bh-drawer) :where(*,*::before,*::after){box-sizing:border-box}
:where(.bh-util,.bh-sticky,.bh-drawer) a{color:inherit;text-decoration:none;background:none}
:where(.bh-util,.bh-sticky,.bh-drawer) ul{list-style:none;margin:0;padding:0}
:where(.bh-util,.bh-sticky,.bh-drawer) li{list-style:none;margin:0;padding:0;float:none;background:none}
:where(.bh-util,.bh-sticky,.bh-drawer) :where(p,h4){margin:0}
:where(.bh-sticky,.bh-drawer) button{font:inherit;color:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;border-radius:0}
:where(.bh-sticky,.bh-drawer) img{display:block;max-width:none;border:0}
:where(.bh-sticky) :where(input,form){margin:0;padding:0;box-shadow:none}
:where(.bh-sticky,.bh-drawer,.bh-util) :focus-visible{outline:2px solid var(--bh-brand);outline-offset:2px;border-radius:4px}
/* общий сайтовый a:hover подчёркивает и красит ссылки — в шапке не нужно */
html body :is(.bh-util,.bh-sticky,.bh-drawer) a:hover{text-decoration:none}
.bh-i{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.bh-container{max-width:var(--bh-container);margin:0 auto;padding:0 var(--bh-gutter)}
html body .bh-util{background:var(--bh-util-bg);font-size:13.5px;color:var(--bh-ink-2)}
html body .bh-util__in{display:flex;align-items:center;justify-content:space-between;gap:24px;height:var(--bh-h-util)}
html body .bh-util__promo{display:flex;align-items:center;gap:8px;font-weight:500;color:var(--bh-ink);white-space:nowrap}
html body .bh-util__promo .bh-i{width:16px;height:16px;color:var(--bh-accent)}
html body .bh-util__links{display:flex;align-items:center;gap:20px;white-space:nowrap}
html body .bh-util__links a:hover{color:var(--bh-brand)}
html body .bh-util__links .bh-is-sale{color:var(--bh-accent);font-weight:500}
html body .bh-util__links .bh-is-calc{display:inline-flex;align-items:center;gap:6px;color:var(--bh-green);font-weight:500}
html body .bh-util__links .bh-is-calc .bh-i{width:15px;height:15px}
html body .bh-util__links .bh-sep{width:1px;height:14px;background:#c3d6e8}
html body .bh-sticky{position:sticky;top:0;z-index:100;background:#fff;box-shadow:0 1px 0 var(--bh-line);transition:box-shadow .2s}
html body .bh-sticky.bh-is-stuck{box-shadow:0 1px 0 var(--bh-line),0 8px 24px rgba(20,30,50,.08)}
html body .bh-main{position:relative;z-index:2;background:#fff}
html body .bh-main__in{display:flex;align-items:center;gap:20px;height:var(--bh-h-main)}
html body .bh-burger{display:none;width:40px;height:40px;place-items:center;border-radius:10px;margin-left:-8px}
html body .bh-burger:hover{background:var(--bh-soft)}
html body .bh-logo{display:flex;flex-direction:column;gap:3px;flex:none}
html body .bh-logo img{display:block;height:30px;width:auto}
html body .bh-logo__tag{font-size:12.5px;line-height:1;color:#566171;white-space:nowrap}
html body .bh-search{position:relative;flex:1;min-width:0}
html body .bh-search__box{display:flex;align-items:center;gap:8px;height:46px;padding:0 5px 0 18px;border-radius:23px;background:var(--bh-soft);border:1.5px solid transparent;transition:background .15s,border-color .15s,box-shadow .15s}
html body .bh-search__box:hover{border-color:var(--bh-line)}
html body .bh-search__box:focus-within{background:#fff;border-color:var(--bh-brand);box-shadow:0 0 0 4px rgba(1,105,181,.12)}
html body .bh-search input{flex:1;min-width:0;border:0;background:none;outline:none;font:inherit;font-size:16px;color:var(--bh-ink)}
html body .bh-search input::placeholder{color:#8a95a3}
html body .bh-search__btn{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--bh-brand);color:#fff;transition:background .15s}
html body .bh-search__btn:hover{background:var(--bh-brand-dark)}
html body .bh-search__btn .bh-i{width:18px;height:18px}
html body .bh-search__drop{position:absolute;left:0;right:0;top:calc(100% + 8px);background:#fff;border-radius:14px;box-shadow:0 16px 40px rgba(20,30,50,.16);padding:16px 18px 18px;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .15s,transform .15s,visibility 0s .15s;z-index:5}
html body .bh-search:focus-within .bh-search__drop{opacity:1;visibility:visible;transform:none;transition-delay:0s}
html body .bh-search__drop h4{margin:0 0 10px;font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--bh-muted)}
html body .bh-search__chips{display:flex;flex-wrap:wrap;gap:8px}
html body .bh-search__chips a{padding:7px 14px;border-radius:18px;background:var(--bh-soft);font-size:14px;color:var(--bh-ink-2);transition:.15s}
html body .bh-search__chips a:hover{background:var(--bh-brand-soft);color:var(--bh-brand)}
html body .bh-contact{display:flex;align-items:center;gap:12px;flex:none}
html body .bh-phone{position:relative;padding:6px 0}
html body .bh-phone::after{content:"";position:absolute;left:-10px;right:-10px;top:100%;height:14px}
html body .bh-phone__num{display:block;font-size:17px;font-weight:700;line-height:1.25;letter-spacing:.2px;white-space:nowrap;font-variant-numeric:tabular-nums}
html body .bh-phone__num:hover{color:var(--bh-brand)}
html body .bh-phone__pop{position:absolute;right:-8px;top:calc(100% + 12px);width:330px;background:#fff;border-radius:14px;box-shadow:0 16px 40px rgba(20,30,50,.18);padding:14px;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .16s,transform .16s,visibility 0s .16s;z-index:6}
html body .bh-phone:hover .bh-phone__pop, html body .bh-phone:focus-within .bh-phone__pop{opacity:1;visibility:visible;transform:none;transition-delay:0s}
html body .bh-prow{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:9px 10px;border-radius:9px}
html body .bh-prow:hover{background:var(--bh-soft)}
html body .bh-prow b{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}
html body .bh-prow span{font-size:12.5px;color:var(--bh-muted)}
html body .bh-phone__hours{display:flex;align-items:center;gap:8px;margin:6px 10px 12px;padding-top:12px;border-top:1px solid var(--bh-line);font-size:13px;color:var(--bh-ink-2)}
html body .bh-phone__hours .bh-i{width:16px;height:16px;color:var(--bh-muted)}
html body .bh-phone__msgs{display:flex;gap:8px;margin-bottom:10px}
html body .bh-msgbtn{flex:1;display:flex;align-items:center;justify-content:center;gap:8px;height:40px;border-radius:10px;background:var(--bh-soft);font-size:14px;font-weight:500;transition:.15s}
html body .bh-msgbtn:hover{background:var(--bh-brand-soft);color:var(--bh-brand)}
html body .bh-msgbtn img{width:22px;height:22px;border-radius:6px}
html body .bh-btn{display:flex;align-items:center;justify-content:center;height:44px;padding:0 20px;border-radius:10px;background:var(--bh-brand);color:#fff;font-size:15px;font-weight:500;transition:background .15s}
html body .bh-btn:hover{background:var(--bh-brand-dark)}
html body .bh-btn--cb{height:40px;padding:0 16px;font-size:14px;white-space:nowrap;flex:none}
html body .bh-msgs{display:flex;gap:8px}
html body .bh-msgs a{display:block;transition:transform .15s}
html body .bh-msgs a:hover{transform:translateY(-2px)}
html body .bh-msgs img{width:32px;height:32px;border-radius:9px;object-fit:contain}
html body .bh-actions{display:flex;align-items:center;gap:2px;flex:none}
html body .bh-act{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:58px;padding:6px 6px;border-radius:10px;font-size:13px;line-height:1;color:var(--bh-ink-2);transition:.15s}
html body .bh-act:hover{background:var(--bh-soft);color:var(--bh-brand)}
html body .bh-act .bh-i{width:24px;height:24px}
html body .bh-badge{position:absolute;top:0;left:calc(50% + 2px);min-width:18px;height:18px;padding:0 5px;border-radius:9px;background:var(--bh-accent);color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center;box-shadow:0 0 0 2px #fff}
html body .bh-act--m{display:none}
html body .bh-nav{position:relative;z-index:1;background:var(--bh-nav-bg)}
html body .bh-nav__in{display:flex;height:var(--bh-h-nav)}
html body .bh-nav__list{display:flex;align-items:stretch}
html body .bh-nav__list:first-child{margin-left:-8px}
html body .bh-nav__list--r{margin-left:auto;margin-right:-8px}
html body .bh-nav__item{display:flex}
html body .bh-nav__item.bh-is-narrow{position:relative}
html body .bh-nav__link{position:relative;display:flex;align-items:center;gap:6px;padding:0 8px;font-size:14px;font-weight:500;color:var(--bh-nav-ink);white-space:nowrap;transition:background .15s}
html body .bh-nav__link::after{content:"";position:absolute;left:8px;right:8px;bottom:-1px;height:3px;background:var(--bh-nav-line);transform:scaleX(0);transform-origin:left;transition:transform .2s}
html body .bh-nav__item:hover>.bh-nav__link, html body .bh-nav__item:focus-within>.bh-nav__link{background:var(--bh-nav-hover)}
html body .bh-nav__item:hover>.bh-nav__link::after, html body .bh-nav__item:focus-within>.bh-nav__link::after{transform:scaleX(1)}
html body .bh-nav__link--sale{align-self:center;height:34px;margin-right:8px;padding:0 13px;border-radius:16px;background:var(--bh-accent);color:#fff;font-weight:700}
html body .bh-nav__link--sale::after{display:none}
html body .bh-nav__item:hover>.bh-nav__link--sale, html body .bh-nav__item:focus-within>.bh-nav__link--sale{background:#e0600c}
html body .bh-nav__link .bh-i{width:17px;height:17px}
html body .bh-mega{position:absolute;top:100%;left:0;right:0;max-height:calc(100vh - 190px);overflow:auto;background:#fff;box-shadow:0 28px 48px rgba(20,30,50,.14);opacity:0;visibility:hidden;transform:translateY(8px);pointer-events:none;transition:opacity .16s .1s,transform .16s .1s,visibility 0s .3s}
html body .bh-nav__item:hover>.bh-mega, html body .bh-nav__item:focus-within>.bh-mega{opacity:1;visibility:visible;transform:none;pointer-events:auto;transition-delay:.05s,.05s,0s}
html body .bh-mega__in{padding-top:26px;padding-bottom:16px}
html body .bh-mega--narrow{left:0;right:auto;min-width:270px;max-width:380px;border-radius:0 0 14px 14px;border:1px solid var(--bh-line);border-top:0}
html body .bh-mega--narrow .bh-mega__in{padding:10px 8px}
html body .bh-mega--narrow a{display:block;padding:9px 14px;border-radius:8px;font-size:15px;color:var(--bh-ink-2)}
html body .bh-mega--narrow a:hover{background:var(--bh-brand-soft);color:var(--bh-brand)}
html body .bh-mega__cols{columns:4;column-gap:40px}
html body .bh-mega__cols--3{columns:3}
html body .bh-mega__grp{break-inside:avoid;margin:0 0 22px}
html body .bh-mega__title{display:block;margin-bottom:5px;font-size:15.5px;font-weight:700;line-height:1.3;color:var(--bh-ink)}
html body .bh-mega__title:hover{color:var(--bh-brand)}
html body .bh-mega__sub{margin:10px 0 2px;font-size:11.5px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--bh-muted)}
html body .bh-mega__grp li a, html body .bh-mega__flat li a{display:block;padding:3px 0;font-size:15px;line-height:1.35;color:var(--bh-ink-2)}
html body .bh-mega__grp li a:hover, html body .bh-mega__flat li a:hover{color:var(--bh-brand)}
html body .bh-mega__grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 56px}
html body .bh-mega__grid2 ul{columns:2;column-gap:32px}
html body .bh-mega__grid2 li{break-inside:avoid}
html body .bh-mega__flat{columns:3;column-gap:40px}
html body .bh-mega__flat li{break-inside:avoid}
html body .bh-mega details{margin-top:2px}
html body .bh-mega summary{list-style:none;cursor:pointer;padding:3px 0;font-size:14.5px;font-weight:500;color:var(--bh-brand)}
html body .bh-mega summary::-webkit-details-marker{display:none}
html body .bh-mega summary::after{content:" ›"}
html body .bh-mega details[open] summary{display:none}
html body .bh-mega__foot{display:flex;align-items:center;gap:24px;margin-top:6px;padding:14px 0 12px;border-top:1px solid var(--bh-line)}
html body .bh-mega__extra a{font-size:14.5px;color:var(--bh-muted)}
html body .bh-mega__extra a:hover{color:var(--bh-brand)}
html body .bh-mega__all{margin-left:auto;display:inline-flex;align-items:center;gap:6px;font-size:14px;font-weight:500;color:var(--bh-brand)}
html body .bh-mega__all .bh-i{width:16px;height:16px;transition:transform .15s}
html body .bh-mega__all:hover .bh-i{transform:translateX(3px)}
html body .bh-mega__split{display:grid;grid-template-columns:3fr 1fr;gap:48px}
html body .bh-mega__split .bh-mega__flat{columns:3}
html body .bh-mega__split .bh-mega__flat--1{columns:1}
html body .bh-mega__h{margin:0 0 8px;font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--bh-muted)}
html body .bh-backdrop{position:fixed;inset:0;z-index:90;background:rgba(15,25,40,.35);opacity:0;pointer-events:none;transition:opacity .2s}
html body:has(.bh-nav__item:hover>.bh-mega) .bh-backdrop{opacity:1}
html body .bh-drawer, html body .bh-overlay{display:none}
html body .bh-drawer{position:fixed;z-index:300;top:0;bottom:0;left:0;width:min(88vw,390px);flex-direction:column;background:#fff;transform:translateX(-102%);transition:transform .28s cubic-bezier(.3,.7,.2,1)}
html body .bh-overlay{position:fixed;z-index:299;inset:0;background:rgba(15,25,40,.5);opacity:0;pointer-events:none;transition:opacity .25s}
html body .bh-drawer__head{display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-bottom:1px solid var(--bh-line)}
html body .bh-drawer__head .bh-logo img{height:22px}
html body .bh-drawer__close{display:grid;place-items:center;width:40px;height:40px;border-radius:10px}
html body .bh-drawer__close:hover{background:var(--bh-soft)}
html body .bh-drawer__body{flex:1;overflow-y:auto;padding:8px 0 24px;-webkit-overflow-scrolling:touch}
html body .bh-drawer__label{padding:18px 16px 6px;font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:var(--bh-muted)}
html body .bh-drawer__hl{display:flex;align-items:center;gap:10px;margin:8px 12px 0;padding:13px 14px;border-radius:12px;font-weight:700;background:var(--bh-accent);color:#fff}
html body .bh-drawer__hl .bh-i{width:18px;height:18px}
html body .bh-acc>summary{position:relative;list-style:none;cursor:pointer;padding:14px 44px 14px 16px;font-size:16px;font-weight:500}
html body .bh-acc>summary::-webkit-details-marker{display:none}
html body .bh-acc>summary::after{content:"";position:absolute;right:18px;top:50%;width:8px;height:8px;margin-top:-6px;border:solid var(--bh-muted);border-width:0 2px 2px 0;transform:rotate(45deg);transition:transform .2s}
html body .bh-acc[open]>summary::after{transform:rotate(-135deg);margin-top:-2px}
html body .bh-acc[open]>summary{color:var(--bh-brand)}
html body .bh-acc__body{padding:0 0 10px;background:var(--bh-soft)}
html body .bh-acc__body a{display:block;padding:11px 16px 11px 28px;font-size:15px;color:var(--bh-ink-2)}
html body .bh-acc__body a.bh-all{font-weight:500;color:var(--bh-brand)}
html body .bh-acc__body .bh-acc>summary{padding:11px 44px 11px 28px;font-size:15px;font-weight:500}
html body .bh-acc__body .bh-acc .bh-acc__body{background:#e9edf2}
html body .bh-acc__body .bh-acc .bh-acc__body a{padding-left:42px;font-size:14.5px}
html body .bh-drawer__flat a{display:block;padding:12px 16px;font-size:15px;color:var(--bh-ink-2)}
html body .bh-drawer__contacts{margin:18px 16px 0;padding:16px;border-radius:14px;background:var(--bh-soft)}
html body .bh-drawer__contacts .bh-prow{padding:8px 0;border-radius:0}
html body .bh-drawer__contacts .bh-prow:hover{background:none}
html body .bh-drawer__contacts .bh-phone__hours{margin:6px 0 12px;padding-top:10px}
html body.bh-drawer-open{overflow:hidden}
html body.bh-drawer-open .bh-drawer{transform:none;box-shadow:0 0 40px rgba(0,0,0,.25)}
html body.bh-drawer-open .bh-overlay{opacity:1;pointer-events:auto}
@media (max-width:1199px){
  html body .bh-util, html body .bh-nav, html body .bh-backdrop, html body .bh-phone, html body .bh-msgs, html body .bh-act--d{display:none}
  html body .bh-drawer, html body .bh-overlay{display:flex}
  html body .bh-overlay{display:block}
  html body .bh-burger{display:grid}
  html body .bh-act--m{display:flex}
  :root{--bh-h-main:56px}
  html body .bh-main__in{gap:8px}
  html body .bh-logo__tag{display:none}
  html body .bh-logo img{height:22px}
  html body .bh-contact{display:none}
  html body .bh-actions{margin-left:auto;gap:0}
  html body .bh-act{min-width:44px;padding:8px 6px}
  html body .bh-act .bh-lbl{display:none}
  html body .bh-badge{left:calc(50% + 0px);top:2px}
  html body .bh-search{position:absolute;left:0;right:0;top:100%;padding:8px var(--bh-gutter) 12px;background:#fff;box-shadow:0 12px 24px rgba(20,30,50,.1);display:none}
  html body.bh-search-open .bh-search{display:block}
  html body .bh-search__drop{display:none}
}
@media (max-width:389px){
  html body .bh-logo img{height:19px}
  html body .bh-act{min-width:38px}
}
html body .bh-util__links a{color:var(--bh-ink-2)}
html body .bh-util__links a.bh-is-sale{color:var(--bh-accent)}
html body .bh-util__links a.bh-is-calc{color:var(--bh-green)}
html body .bh-phone__num, html body .bh-prow, html body .bh-msgbtn{color:var(--bh-ink)}
html body .bh-btn:hover{color:#fff}
html body .bh-nav__link:hover{color:var(--bh-nav-ink)}
html body .bh-nav__link.bh-nav__link--sale:hover{color:#fff}
html body .bh-search__box #title-search-input{flex:1;min-width:0;height:auto;border:0;background:none;outline:none;box-shadow:none;font:inherit;font-size:16px;color:var(--bh-ink);padding:0;margin:0;z-index:auto}
html body .bh-search:has(#title-search-input:not(:placeholder-shown)) .bh-search__drop{display:none}
html body .bh-account{position:relative;display:flex}
html body .bh-account::after{content:"";position:absolute;left:0;right:0;top:100%;height:10px}
html body .bh-account__pop{position:absolute;right:-4px;top:calc(100% + 8px);min-width:190px;background:#fff;border-radius:12px;box-shadow:0 16px 40px rgba(20,30,50,.18);padding:8px;opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .16s,transform .16s,visibility 0s .16s;z-index:6}
html body .bh-account:hover .bh-account__pop, html body .bh-account:focus-within .bh-account__pop{opacity:1;visibility:visible;transform:none;transition-delay:0s}
html body .bh-account__pop a{display:block;padding:9px 12px;border-radius:8px;font-size:14.5px;color:var(--bh-ink-2);white-space:nowrap}
html body .bh-account__pop a:hover{background:var(--bh-brand-soft);color:var(--bh-brand)}
html body .bh-act__lbl--name{max-width:84px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body .bh-cart .basket_block_one, html body .bh-cart .basket_block_two{display:none!important}
html body .bh-cart .count_basket{position:absolute!important;top:0!important;left:calc(50% + 2px)!important;right:auto!important;bottom:auto!important;width:auto!important;height:18px!important;min-width:18px;margin:0!important;padding:0 5px!important;border-radius:9px;background:var(--bh-accent)!important;color:#fff!important;font-size:11px!important;font-weight:700;line-height:18px!important;text-align:center;box-shadow:0 0 0 2px #fff}
html body .bh-cart .count_basket span{display:block;position:static;top:auto;width:auto;height:18px;margin:0;padding:0;border-radius:0;background:none;color:#fff;font-size:11px;font-weight:700;line-height:18px;text-align:center}
html body .bh-cart.bh-cart--empty .count_basket{display:none!important}
html body .bh-cart{display:contents}
html body .bh-badge.favorites-counter{display:none}
html body .bh-nav__link.bh-is-current::after{transform:scaleX(1)}
html body .bh-util__cur{font-weight:700;color:var(--bh-ink)}
@media (max-width:1199px){
  html body .bh-account, html body .bh-account__pop{display:none}
}
@media (prefers-reduced-motion:reduce){
  html body .bh-util *, html body .bh-sticky *, html body .bh-drawer *, html body .bh-overlay{transition:none!important}
}
