/* === ОБЩАЯ ШАПКА v9 — единый файл /css/mp-header.css === */
body .site-header{background:#0b1220 !important;border-bottom:1px solid #1e293b !important;position:sticky !important;top:0 !important;z-index:200 !important;padding:0 !important}
body .site-header .hwrap{box-sizing:border-box;max-width:1200px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;gap:8px;position:relative}

body .switcher-btn{width:34px;height:34px;border-radius:9px;background:#1e293b;border:1px solid #334155;display:flex;align-items:center;justify-content:center;flex-shrink:0;cursor:pointer}
body .switcher-btn:hover{border-color:#2dd4bf}

body .brand-logo{display:flex;align-items:baseline;gap:6px;text-decoration:none;flex-shrink:0;margin:0 20px 0 14px}
body .brand-logo .brand-eco{font-family:'Montserrat',Arial,sans-serif;font-weight:800;font-size:18px;color:#2dd4bf}
body .brand-logo .brand-svc{font-family:'Montserrat',Arial,sans-serif;font-weight:800;font-size:18px;color:#f8fafc}

body #main-nav{display:flex;align-items:center;gap:2px}
body #main-nav .nav-link{color:#eef2f6;padding:10px 14px;border-radius:8px;font-size:14px;font-weight:600;text-decoration:none;transition:.2s;white-space:nowrap;text-align:left !important;display:block}
body #main-nav .nav-link:hover{background:#1e293b;color:#fff}
body #main-nav .nav-link.active{background:none;color:#2dd4bf;font-weight:700}

body .nav-dropdown{position:relative}
body .dropdown-toggle{background:none;border:0;color:#eef2f6;padding:10px 14px;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;display:inline-flex;align-items:center;gap:5px;font-family:inherit;transition:.2s}
body .dropdown-toggle:hover{background:#1e293b;color:#fff}
body .dropdown-toggle .chevron{transition:transform .2s}
body .nav-dropdown.open .dropdown-toggle .chevron{transform:rotate(180deg)}
body .dropdown-menu{display:none;position:absolute;top:calc(100% + 10px);left:0;background:#111c30;border:1px solid #263449;border-radius:12px;padding:6px;min-width:230px;box-shadow:0 20px 44px rgba(0,0,0,.5);z-index:50}
body .nav-dropdown.open .dropdown-menu{display:block}
body .dropdown-menu a{display:block;padding:9px 12px;border-radius:8px;color:#cbd5e1;font-size:14px;text-decoration:none;font-weight:500;text-align:left !important}
body .dropdown-menu a:hover{background:#263449;color:#fff}
body .dropdown-menu a.active{background:none;color:#2dd4bf;font-weight:700}

body .switcher-panel{display:none;position:absolute;top:calc(100% + 10px);left:0;width:270px;background:#111c30;border:1px solid #263449;border-radius:14px;padding:10px;box-shadow:0 20px 44px rgba(0,0,0,.5);z-index:50}
body .nav-dropdown.open .switcher-panel{display:block}
body .switcher-panel .eyebrow{font-size:11px;font-weight:700;color:#475569;text-transform:uppercase;letter-spacing:.04em;padding:4px 10px 8px}
body .svc-item{display:flex;gap:10px;align-items:center;padding:9px 10px;border-radius:10px;text-decoration:none}
body .svc-item:hover{background:#1e293b}
body .svc-item.current{background:#1e293b}
body .svc-item .icon-badge{width:30px;height:30px;border-radius:9px;background:rgba(45,212,191,.14);display:flex;align-items:center;justify-content:center;flex-shrink:0}
body .svc-item .svc-name{font-size:14px;color:#f8fafc;font-weight:600}
body .svc-item.current .svc-name{color:#5eead4;font-weight:700}

body .header-right{display:flex;align-items:center;gap:10px;margin-left:auto;flex-shrink:0}
body .support-link{color:#cbd5e1;font-size:14px;font-weight:600;text-decoration:none;padding:10px 8px}
body .mobile-services{display:none}
body .support-link:hover{color:#fff}
body .btn-cta{background:#2dd4bf;color:#0b1220 !important;padding:10px 18px;border-radius:999px;font-size:14px;font-weight:700;text-decoration:none;white-space:nowrap;transition:.2s;box-shadow:0 2px 10px rgba(45,212,191,.25)}
body .btn-cta:hover{background:#22b8a5}
body .btn-cta.is-user{background:#1e293b;color:#fff !important;border:1px solid #334155;display:inline-flex;align-items:center;gap:8px;box-shadow:none;padding:7px 16px 7px 7px}
body .btn-cta.is-user:hover{border-color:#2dd4bf;background:#1e293b}
body .btn-cta .avatar{width:24px;height:24px;border-radius:50%;background:#2dd4bf;color:#0b1220;font-weight:800;font-size:11px;display:flex;align-items:center;justify-content:center}

body .burger{display:none;background:none;border:0;cursor:pointer;padding:8px}
body .burger span{display:block;width:22px;height:2px;background:#f8fafc;border-radius:2px;margin:5px 0;transition:.3s}

@media(max-width:960px){
  body .switcher-btn{display:none !important}
  body .hwrap{flex-wrap:wrap;row-gap:10px;justify-content:space-between}
  body .brand-logo{order:1;flex:0 0 100%;margin:0;padding:2px 8px;overflow:hidden;justify-content:center;text-align:center;gap:8px}
  body .brand-logo .brand-eco{font-size:20px;white-space:nowrap}
  body .brand-logo .brand-svc{font-size:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body .burger{order:2}
  body .header-right{order:3;margin-left:0}
  body #main-nav{display:none !important}
  body .nav-dropdown .dropdown-menu{display:none !important}
  body #main-nav.open{display:flex !important;flex-direction:column !important;align-items:stretch !important;justify-content:flex-start !important;position:absolute;top:100%;left:16px;right:16px;background:#111c30;border:1px solid #263449;border-radius:12px;padding:8px;box-shadow:0 8px 20px rgba(0,0,0,.4);z-index:100;margin:8px 0 0 0}
  body #main-nav.open .nav-dropdown{width:100%}
  body #main-nav.open .dropdown-toggle{display:none}
  body #main-nav.open .dropdown-menu{display:block !important;position:static;box-shadow:none;border:0;background:none;padding:0}
  body #main-nav .nav-link,body #main-nav .dropdown-menu a{font-size:16px;padding:12px 14px}
  body .mobile-services{display:none}
  body #main-nav.open .mobile-services{display:block;padding:4px 0 8px}
  body .mobile-services .mobile-eyebrow{font-size:11px;font-weight:700;color:#94a3b8;text-transform:uppercase;letter-spacing:.04em;padding:8px 14px 4px;text-align:left !important}
  body .mobile-services a{display:block;padding:10px 14px;border-radius:8px;color:#cbd5e1;font-size:15px;font-weight:600;text-decoration:none;text-align:left !important}
  body .mobile-services a:hover{background:#263449;color:#fff}
  body .mobile-services .mobile-sep{height:1px;background:#263449;margin:6px 4px 4px}
  body .support-link{display:none}
  body .burger{display:block}
  body .burger.open span:nth-child(1){transform:rotate(45deg) translate(6px,6px)}
  body .burger.open span:nth-child(2){opacity:0}
  body .burger.open span:nth-child(3){transform:rotate(-45deg) translate(6px,-6px)}
}
/* Кнопка ВВЕРХ */
#toTop{position:fixed;right:24px;bottom:24px;width:48px;height:48px;border-radius:50%;background:#2dd4bf;color:#0b1220;border:0;font-size:20px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.4);opacity:0;pointer-events:none;transition:opacity .3s;z-index:99}
#toTop:hover{background:#22b8a5}
/* === /ОБЩАЯ ШАПКА === */
body .logout-link{color:#94a3b8;font-size:13px;text-decoration:none;padding:8px 4px;margin-left:6px}
body .logout-link:hover{color:#fff}
body .header-right #auth-user,body .header-right #al-auth-user,body .header-right #ch-header-user{display:none}

/* nav-reset: страницы сервисов не должны перекрашивать меню шапки */
body header.site-header #main-nav{background:none !important;border:0 !important;box-shadow:none !important;border-radius:0 !important;padding:0 !important;margin:0 !important;width:auto !important;height:auto !important;min-height:0 !important;max-width:none !important}
body header.site-header .nav-dropdown{background:none !important;border:0 !important;box-shadow:none !important;padding:0 !important;margin:0 !important}
body header.site-header .hwrap,body header.site-header .header-right{background:none !important}
@media(max-width:960px){body header.site-header #main-nav.open{background:#111c30 !important;border:1px solid #263449 !important;border-radius:12px !important;padding:8px !important;margin:8px 0 0 0 !important}}

/* hdr-typo: шапка не наследует шрифт и интервал от страницы */
body header.site-header{font-family:'Montserrat','Segoe UI',system-ui,-apple-system,Arial,sans-serif !important;line-height:1.3 !important;-webkit-font-smoothing:antialiased}
body header.site-header *{font-family:inherit;line-height:inherit;letter-spacing:normal}
body header.site-header #main-nav a.nav-link,body header.site-header .support-link,body header.site-header .dropdown-toggle{font-size:14px !important;font-weight:600 !important}
body header.site-header .btn-cta{font-size:14px !important;font-weight:700 !important}

/* header-li-reset: общие правила li/ul страницы не должны менять высоту шапки */
body header.site-header li{margin:0 !important;padding:0}
body header.site-header ul.nav-auth{margin-top:0 !important;margin-bottom:0 !important}
body header.site-header p{margin:0}
