/* Шапка сайта — v1.0.1. Переменные: --shs-bg, --shs-accent (задаются из админки) */
.shs-header,.shs-header *{box-sizing:border-box}
.shs-header{background:var(--shs-bg,#06234a);color:#fff;width:100%;box-shadow:0 2px 12px rgba(6,35,74,.4);font-family:"Segoe UI",Arial,sans-serif;line-height:1.4;z-index:9990;position:relative}
.shs-header.shs-sticky{position:sticky;top:0}
body.admin-bar .shs-header.shs-sticky{top:32px}
.shs-header a{color:inherit;text-decoration:none}
.shs-header ul{list-style:none;margin:0;padding:0}

.shs-wrap{max-width:1180px;margin:0 auto;padding:0 20px;min-height:72px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.shs-logo{flex:0 0 auto;display:flex;align-items:center;max-width:220px}
.shs-logo-img{display:block;max-height:44px;width:auto;max-width:100%;height:auto}
.shs-logo-text{font-size:24px;font-weight:800;white-space:nowrap}

.shs-panel{flex:1 1 auto;min-width:0;display:flex;align-items:center;justify-content:flex-end;gap:22px}
.shs-nav{flex:1 1 auto;min-width:0}
.shs-menu{display:flex;flex-wrap:wrap;gap:6px 22px;justify-content:center;font-weight:500}
.shs-menu li{position:relative}
.shs-menu>li>a{display:block;padding:8px 0;white-space:nowrap}
.shs-menu a:hover,.shs-menu .current-menu-item>a{color:var(--shs-accent,#64b5f6)}

.shs-menu .sub-menu{position:absolute;left:0;top:100%;min-width:200px;background:var(--shs-bg,#06234a);box-shadow:0 8px 20px rgba(0,0,0,.3);border-radius:0 0 8px 8px;padding:6px 0;display:none;z-index:5}
.shs-menu li:hover>.sub-menu,.shs-menu li:focus-within>.sub-menu{display:block}
.shs-menu .sub-menu a{display:block;padding:8px 16px;white-space:normal}

.shs-contacts{flex:0 0 auto;text-align:right}
.shs-phone{display:block;font-weight:700;white-space:nowrap}
.shs-hours{display:flex;flex-direction:column;font-size:12px;color:#90caf9}
.shs-hours a.shs-hours-line:hover{color:#fff;text-decoration:underline}

.shs-btn{flex:0 0 auto;display:inline-block;background:#fff;color:#1565c0!important;padding:11px 22px;border-radius:8px;font-weight:600;white-space:nowrap;transition:background .2s}
.shs-btn:hover{background:#e3f0ff}

/* Бургер: защищён от стилей темы. Вне мобильного режима скрыт принудительно */
.shs-header .shs-burger{display:none!important;flex:0 0 auto;width:44px;height:44px;min-width:44px;margin:0;padding:10px!important;background:transparent!important;background-image:none!important;border:1px solid rgba(255,255,255,.35)!important;border-radius:8px!important;box-shadow:none!important;outline:0;cursor:pointer;flex-direction:column;justify-content:center;align-items:stretch;gap:5px;color:#fff!important;text-transform:none;font-size:0;line-height:0;-webkit-appearance:none;appearance:none}
.shs-header .shs-burger:focus-visible{outline:2px solid var(--shs-accent,#64b5f6);outline-offset:2px}
.shs-header .shs-burger span{display:block!important;flex:0 0 2px;height:2px!important;width:100%!important;margin:0!important;padding:0!important;background:#fff!important;border:0!important;border-radius:2px;transition:transform .25s,opacity .25s}
.shs-header .shs-burger[aria-expanded="true"] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.shs-header .shs-burger[aria-expanded="true"] span:nth-child(2){opacity:0}
.shs-header .shs-burger[aria-expanded="true"] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}

/* Планшеты и телефоны: бургер-меню */
@media (max-width:1200px){
  .shs-header .shs-burger{display:flex!important}
  .shs-wrap{min-height:64px}
  .shs-panel{display:none;position:absolute;left:0;right:0;top:100%;background:var(--shs-bg,#06234a);flex-direction:column;align-items:stretch;justify-content:flex-start;gap:16px;padding:16px 20px 22px;max-height:calc(100vh - 64px);max-height:calc(100dvh - 64px);overflow-y:auto;box-shadow:0 12px 24px rgba(0,0,0,.35);border-top:1px solid rgba(255,255,255,.15)}
  .shs-panel.is-open{display:flex}
  .shs-nav{flex:0 0 auto}
  .shs-menu{flex-direction:column;flex-wrap:nowrap;gap:0;justify-content:flex-start}
  .shs-menu>li>a{padding:12px 0;border-bottom:1px solid rgba(255,255,255,.12);white-space:normal}
  .shs-menu .sub-menu{position:static;display:block;box-shadow:none;background:transparent;padding:0 0 0 16px;min-width:0}
  .shs-menu .sub-menu a{padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08)}
  .shs-contacts{text-align:left}
  .shs-phone{font-size:18px}
  .shs-hours{font-size:13px;margin-top:4px}
  .shs-btn{display:block;text-align:center;width:100%;padding:14px}
}
@media (max-width:782px){body.admin-bar .shs-header.shs-sticky{top:46px}}
@media (max-width:480px){
  .shs-wrap{padding:0 14px;gap:12px}
  .shs-logo{max-width:60%}
  .shs-logo-text{font-size:20px;white-space:normal}
  .shs-panel{padding:14px 14px 20px}
}
