/* Modern IТехно header — replaces legacy header layout safely */
.it-site-header{
  position:sticky;
  top:0;
  z-index:1000;
  background:rgba(255,255,255,.9);
  backdrop-filter:blur(18px);
  border-bottom:1px solid rgba(17,42,120,.08);
  box-shadow:0 14px 38px rgba(17,42,120,.08);
}
.it-header-shell{
  width:min(1180px,calc(100% - 32px));
  min-height:74px;
  margin:0 auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.it-logo{
  flex:0 0 auto;
  color:#112a78!important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:30px;
  line-height:1;
  font-weight:950;
  letter-spacing:-.06em;
  text-decoration:none!important;
}
.it-main-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  flex:1 1 auto;
}
.it-main-nav a{
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:8px 12px;
  border-radius:999px;
  color:#263861!important;
  font-size:14px;
  font-weight:850;
  text-decoration:none!important;
  white-space:nowrap;
  transition:background .18s ease,color .18s ease,transform .18s ease;
}
.it-main-nav a:hover{
  background:#f1f4ff;
  color:#112a78!important;
  transform:translateY(-1px);
}
.it-header-actions{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  white-space:nowrap;
}
.it-header-link,
.it-header-login,
.it-header-question{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:42px!important;
  width:auto!important;
  min-width:0!important;
  max-width:none!important;
  padding:10px 15px!important;
  border:0!important;
  border-radius:999px!important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  font-size:14px!important;
  line-height:1!important;
  font-weight:900!important;
  text-decoration:none!important;
  cursor:pointer;
  white-space:nowrap!important;
  box-sizing:border-box!important;
}
.it-header-link{background:#eef3ff!important;color:#112a78!important;}
.it-header-login{background:#112a78!important;color:#fff!important;box-shadow:0 12px 26px rgba(17,42,120,.18)!important;}
.it-header-question{background:#ef3340!important;color:#fff!important;box-shadow:0 12px 26px rgba(239,51,64,.2)!important;}
.it-cabinet-dropdown{position:relative;}
.it-cabinet-dropdown .dropdown-content{right:0;left:auto;top:48px;border-radius:18px;overflow:hidden;box-shadow:0 18px 44px rgba(17,42,120,.18);border:1px solid rgba(17,42,120,.08);}

@media (max-width:980px){
  .it-header-shell{min-height:auto;padding:12px 0;align-items:flex-start;flex-wrap:wrap;}
  .it-logo{font-size:27px;}
  .it-main-nav{order:3;width:100%;justify-content:flex-start;overflow-x:auto;padding-bottom:2px;}
  .it-main-nav a{background:#f6f8ff;}
  .it-header-actions{margin-left:auto;gap:6px;}
}
@media (max-width:640px){
  .it-header-shell{width:min(100% - 20px,1180px);gap:10px;}
  .it-main-nav{display:none;}
  .it-header-link{display:none!important;}
  .it-logo{font-size:24px;}
  .it-header-login,.it-header-question{min-height:38px!important;padding:9px 11px!important;font-size:13px!important;}
}
