/* Шапка: светлая, чёрный и красный акцент */
.hd{--ink:#111113;--mute:#6b6b72;--line:#e6e6e9;--soft:#f3f3f5;--red:#e30613;--red-d:#c20510;position:relative;z-index:60;background:#fff;color:var(--ink);font-family:inherit;border-bottom:1px solid var(--line)}
.hd *{box-sizing:border-box}
.hd a{color:inherit;text-decoration:none}
.hd svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
/* верхняя полоса */
.hd-top{background:var(--soft);font-size:13px;border-bottom:1px solid var(--line)}
.hd-top__in{display:flex;align-items:center;gap:28px;min-height:38px}
.hd-city{display:inline-flex;align-items:center;gap:6px;font-weight:600;white-space:nowrap}
.hd-city svg{width:15px;height:15px;stroke:var(--red)}
.hd-links{display:flex;gap:22px;flex-wrap:wrap}
.hd-links a{color:#44444a}.hd-links a:hover{color:var(--red)}
.hd-phone-wrap{margin-left:auto;display:flex;align-items:center;gap:18px;white-space:nowrap}
.hd-hours{color:var(--mute)}
.hd-phone{display:inline-flex;align-items:center;gap:7px;font-weight:700;font-size:15px}
.hd-phone svg{width:15px;height:15px;stroke:var(--red)}
.hd-phone:hover{color:var(--red)}
/* основная строка */
.hd-main__in{display:flex;align-items:center;gap:16px;padding-top:14px;padding-bottom:14px}
.hd-logo{flex:none;display:block;line-height:0;margin-right:6px}
.hd-logo img{height:44px;width:auto;display:block}
.hd-burger{display:none}
.hd-catalog{position:relative;flex:none}
.hd .hd-catalog__btn{display:inline-flex;align-items:center;gap:10px;height:48px;padding:0 22px;background:var(--ink);color:#fff;font-weight:600;font-size:15px;border-radius:4px;transition:background .15s}
.hd .hd-catalog__btn:hover,.hd-catalog:hover .hd-catalog__btn{background:var(--red)}
.hd-catalog__menu{display:none;position:absolute;left:0;top:100%;min-width:240px;padding:8px 0;background:#fff;border:1px solid var(--line);border-radius:6px;box-shadow:0 16px 36px rgba(0,0,0,.14);z-index:80}
.hd-catalog:hover .hd-catalog__menu,.hd-catalog:focus-within .hd-catalog__menu,.hd-catalog.is-open .hd-catalog__menu{display:block}
.hd-catalog__menu a{display:block;padding:10px 20px;font-size:15px}
.hd-catalog__menu a:hover{background:var(--soft);color:var(--red)}
/* поиск */
.hd-search{flex:1;min-width:0;display:flex;align-items:center;height:48px;margin:0;padding:0;background:var(--soft);border:2px solid transparent;border-radius:4px;overflow:hidden;transition:border-color .15s,background .15s}
.hd-search:focus-within{background:#fff;border-color:var(--ink)}
.hd .hd-search input{flex:1;min-width:0;height:44px!important;min-height:0!important;padding:0 16px!important;margin:0!important;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;font:inherit;font-size:15px!important;line-height:44px!important;color:var(--ink)!important;-webkit-appearance:none;appearance:none}
.hd .hd-search input::placeholder{color:#85858c;opacity:1}
.hd .hd-search input::-webkit-search-cancel-button{display:none}
.hd .hd-search__example{flex:none;height:44px!important;min-height:0!important;padding:0 14px!important;margin:0!important;border:0!important;background:transparent!important;color:var(--mute);font:inherit;font-size:13px;line-height:44px;cursor:pointer;white-space:nowrap;box-shadow:none!important}
.hd .hd-search__example:hover{color:var(--red)}
.hd .hd-search__go{flex:none;width:56px;height:44px!important;min-height:0!important;margin:0!important;padding:0!important;border:0!important;border-radius:2px!important;background:var(--red)!important;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;box-shadow:none!important}
.hd .hd-search__go:hover{background:var(--red-d)!important}
/* действия */
.hd-actions{display:flex;gap:4px;flex:none}
.hd-act{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;min-width:68px;padding:2px 10px;font-size:12.500px;color:var(--ink);transition:color .15s}
.hd-act:hover{color:var(--red)}
.hd .hd-act b.cart-count{position:absolute!important;top:-6px!important;right:8px!important;left:auto!important;bottom:auto!important;width:auto!important;height:18px!important;min-width:18px!important;padding:0 5px!important;margin:0!important;background:var(--red)!important;color:#fff!important;font:700 11px/18px Arial,sans-serif!important;border-radius:9px!important;transform:none!important;box-shadow:none!important;display:block}
.hd .hd-act b.cart-count[hidden]{display:none!important}
/* разделы */
.hd-nav{background:#fff;border-top:1px solid var(--line)}
.hd-nav__in{display:flex;gap:4px 28px;align-items:center;min-height:44px;overflow-x:auto;scrollbar-width:none}
.hd-nav__in::-webkit-scrollbar{display:none}
.hd-nav a{flex:none;font-size:14.500px;font-weight:500;padding:12px 0 10px;color:#2a2a2e;white-space:nowrap;border-bottom:2px solid transparent}
.hd-nav a:hover{color:var(--red);border-bottom-color:var(--red)}
.hd .mobile-menu-close{display:none}
/* липкая шапка: верхняя полоса уезжает, остальное остаётся */
@media (min-width:901px){.hd{position:sticky;top:-39px}}
@media (max-width:1100px){.hd-hours{display:none}.hd-links{gap:16px}.hd-act{min-width:58px}}
@media (max-width:900px){
  .hd{z-index:auto;position:relative}
  .hd-main__in{flex-wrap:wrap;gap:10px 10px;padding-top:10px;padding-bottom:10px}
  .hd-burger{order:1;display:flex;flex-direction:column;justify-content:center;gap:5px;width:44px;height:44px;padding:0 11px;background:#fff;border:1px solid var(--line);border-radius:4px;cursor:pointer}
  .hd-burger span{display:block;height:2px;background:var(--ink)}
  .hd-logo{order:2;margin-right:auto}
  .hd-logo img{height:40px}
  .hd-actions{order:3}
  .hd-act span{display:none}
  .hd-act{min-width:44px;height:44px;justify-content:center;border:1px solid var(--line);border-radius:4px;padding:0}
  .hd .hd-act b.cart-count{top:-7px!important;right:-6px!important}
  .hd-catalog{display:none}
  .hd-search{order:4;flex:0 0 100%}
  .hd-search__example{display:none!important}
  .hd-nav__in{gap:22px}
  .hd-top{display:none;position:fixed;inset:0 auto 0 0;width:min(86vw,340px);z-index:200;background:#fff;padding:56px 22px 24px;overflow:auto;box-shadow:12px 0 40px rgba(0,0,0,.3);border:0}
  .hd-top__in{flex-direction:column;align-items:flex-start;gap:20px;padding:0}
  .hd-links{flex-direction:column;gap:0;width:100%}
  .hd-links a{padding:14px 0;font-size:16px;border-bottom:1px solid var(--line);color:var(--ink)}
  .hd-phone-wrap{margin:0;flex-direction:column;align-items:flex-start;gap:6px}
  .hd-phone{font-size:18px}
  .hd-hours{display:block}
  body.mobile-menu-open .hd-top{display:block}
  body.mobile-menu-open::after{content:"";position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:150}
  .hd .mobile-menu-close{display:block;position:absolute;top:10px;right:14px;width:40px;height:40px;border:0;background:transparent;color:var(--ink);font-size:30px;line-height:1;cursor:pointer}
}
.mobile-menu-overlay{display:none}
@media (max-width:900px){
  body.mobile-menu-open::after{display:none!important}
  body.mobile-menu-open .mobile-menu-overlay{display:block;position:fixed;inset:0;background:rgba(17,17,19,.5);z-index:150}
  .hd .mobile-menu-close,.hd-top .mobile-menu-close{display:flex!important;align-items:center;justify-content:center;position:absolute;top:8px;right:12px;width:44px;height:44px;border-radius:10px;background:#f3f3f5!important;color:#111113;z-index:2}
}
body.mobile-menu-open #chat777{display:none!important}
.hd .mobile-menu-close,.hd-top .mobile-menu-close{color:#111113!important;font-size:28px!important}
@media (min-width:901px){.hd-nav__in{gap:4px 20px!important}}
