:root{
  --header-bg:rgba(255,255,255,.96);
  --header-navy:#12204d;
  --header-navy-2:#1a2f73;
  --header-text:#12204d;
  --header-line:#e8ecf5;
  --header-soft:#f4f7ff;
  --header-shadow:0 10px 35px rgba(17, 32, 77, .08);
  --header-shadow-strong:0 12px 40px rgba(17, 32, 77, .14);
  --header-radius:18px;
}

.site-header{
  position:sticky;
  top:0;
  z-index:9999;
  background:var(--header-bg);
  backdrop-filter:blur(12px) saturate(160%);
  border-bottom:1px solid rgba(232,236,245,.9);
  box-shadow:0 1px 0 rgba(255,255,255,.8), var(--header-shadow);
}

.site-header .container{
  width:min(1240px, calc(100% - 40px));
  margin:0 auto;
}

.nav-wrap{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:28px;
  min-height:104px;
}

.brand{
  display:flex;
  align-items:center;
  flex:0 0 auto;
  text-decoration:none;
}

.brand img{
  height:86px;
  width:auto;
  display:block;
  object-fit:contain;
  transition:transform .2s ease;
}

.brand:hover img{
  transform:translateY(-1px);
}

.site-nav{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
  flex-wrap:nowrap;
}

.site-nav a{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  padding:0 18px;
  border-radius:14px;
  color:var(--header-text);
  text-decoration:none;
  font-weight:800;
  font-size:15px;
  letter-spacing:-.01em;
  white-space:nowrap;
  transition:
    color .2s ease,
    background .2s ease,
    transform .2s ease,
    box-shadow .2s ease;
}

.site-nav a:hover{
  background:var(--header-soft);
  color:var(--header-navy-2);
  transform:translateY(-1px);
}

.site-nav a.active{
  background:linear-gradient(180deg, #f6f8ff 0%, #edf2ff 100%);
  color:var(--header-navy-2);
  box-shadow:inset 0 0 0 1px rgba(83,110,255,.08);
}

.site-nav a.active::after{
  content:"";
  position:absolute;
  left:16px;
  right:16px;
  bottom:8px;
  height:3px;
  border-radius:99px;
  background:linear-gradient(90deg, #4664e9 0%, #6e84f7 100%);
}

.nav-toggle{
  display:none;
  width:50px;
  height:50px;
  border:1px solid var(--header-line);
  border-radius:14px;
  background:#fff;
  box-shadow:0 4px 16px rgba(17,32,77,.06);
  cursor:pointer;
  padding:0;
  transition:transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.nav-toggle:hover{
  transform:translateY(-1px);
  box-shadow:0 8px 24px rgba(17,32,77,.10);
  border-color:#dbe3f3;
}

.nav-toggle span{
  display:block;
  width:22px;
  height:2px;
  margin:5px auto;
  background:var(--header-navy);
  border-radius:99px;
  transition:all .2s ease;
}

body{
  margin-top:0 !important;
}

@media (max-width: 1180px){
  .site-header .container{
    width:min(1240px, calc(100% - 28px));
  }

  .brand img{
    height:78px;
  }

  .site-nav a{
    padding:0 14px;
    font-size:14px;
  }
}

@media (max-width: 980px){
  .nav-wrap{
    min-height:auto;
    padding:14px 0;
    flex-wrap:wrap;
  }

  .brand img{
    height:72px;
  }

  .nav-toggle{
    display:block;
  }

  .site-nav{
    display:none;
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    padding:12px 0 10px;
  }

  .site-nav.open{
    display:flex;
  }

  .site-nav a{
    justify-content:flex-start;
    min-height:52px;
    padding:0 16px;
    background:#fff;
    border:1px solid var(--header-line);
    border-radius:14px;
    box-shadow:0 4px 14px rgba(17,32,77,.04);
  }

  .site-nav a.active::after{
    display:none;
  }

  .site-nav a.active{
    background:linear-gradient(180deg, #f6f8ff 0%, #edf2ff 100%);
    border-color:#dbe3ff;
  }
}
