/* =========================
   HEADER PREMIUM
========================= */

#header{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:9999;
}

main{
  padding-top:95px;
}

.site-header{
  position:relative;
  z-index:9999;
  margin:0 12px;
  border-radius:0 0 22px 22px;
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(22px);
  -webkit-backdrop-filter:blur(22px);
  border:1px solid rgba(255,255,255,.65);
  border-top:none;
  transition:background .28s ease, box-shadow .28s ease, border-radius .28s ease;
}

.site-header.is-scrolled{
  background:rgba(255,255,255,.95);
  box-shadow:
    0 14px 35px rgba(30,74,140,.10),
    0 1px 0 rgba(255,255,255,.8) inset;
}

.header-inner{
  min-height:82px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:0 20px;
  transition:min-height .28s ease;
}

.site-header.is-scrolled .header-inner{
  min-height:72px;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
  flex-shrink:0;
}

.brand-mark{
  width:56px;
  height:56px;
  border-radius:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(135deg,#eaf6ff,#fff);
  border:1px solid rgba(231,238,248,.95);
  box-shadow:
    0 12px 28px rgba(30,136,245,.13),
    inset 0 2px 5px rgba(255,255,255,.9);
  transition:.28s ease;
}

.site-header.is-scrolled .brand-mark{
  width:48px;
  height:48px;
  border-radius:16px;
}

.brand-mark img{
  width:32px;
  height:32px;
  object-fit:contain;
}

.site-header.is-scrolled .brand-mark img{
  width:28px;
  height:28px;
}

.brand-text strong{
  display:block;
  color:var(--blue);
  font-size:1.3rem;
  line-height:1;
  text-transform:uppercase;
  letter-spacing:.02em;
}

.brand-text em{
  display:block;
  font-style:normal;
  color:#3aa1ff;
  font-weight:900;
  text-transform:uppercase;
  font-size:.82rem;
  letter-spacing:.16em;
  margin-top:5px;
}

.nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:34px;
  margin:0 auto;
}

.nav a{
  font-weight:900;
  color:#22254f;
  position:relative;
  padding:10px 4px;
  transition:.25s ease;
  white-space:nowrap;
}

.nav a::after{
  content:"";
  position:absolute;
  left:4px;
  right:4px;
  bottom:0;
  height:3px;
  border-radius:999px;
  background:var(--blue);
  transform:scaleX(0);
  transform-origin:left;
  transition:.25s ease;
}

.nav a.active,
.nav a:hover{
  color:var(--blue);
}

.nav a.active::after,
.nav a:hover::after{
  transform:scaleX(1);
}

.btn-header{
  margin-left:14px;
  flex-shrink:0;
}
.menu-toggle{
  display:none;
  width:52px;
  height:52px;
  border:1px solid rgba(16,25,95,.14);
  border-radius:18px;
  background:rgba(255,255,255,.92);
  box-shadow:
    0 14px 34px rgba(28,47,95,.14),
    inset 0 1px 0 rgba(255,255,255,.9);
  cursor:pointer;
  position:relative;
  flex-shrink:0;
}

.menu-toggle span{
  position:absolute;
  left:50%;
  width:22px;
  height:2px;
  border-radius:99px;
  background:#10195f;
  transform:translateX(-50%);
}

.menu-toggle span:nth-child(1){
  top:18px;
}

.menu-toggle span:nth-child(2){
  top:25px;
}

.menu-toggle span:nth-child(3){
  top:32px;
}

@media(max-width:1080px){

  .menu-toggle{
    display:block !important;
    position:fixed !important;
    top:18px !important;
    right:18px !important;

    width:48px !important;
    height:48px !important;

    border-radius:16px !important;
    border:1px solid rgba(16,25,95,.16) !important;
    background:#fff !important;

    box-shadow:0 14px 34px rgba(28,47,95,.18) !important;
    z-index:99999 !important;
  }

  .menu-toggle span{
    display:none !important;
  }

  .menu-toggle::before{
    content:"";
    position:absolute;
    left:50%;
    top:50%;

    width:22px;
    height:14px;

    transform:translate(-50%,-50%);

    background:
      linear-gradient(#10195f,#10195f) 0 0 / 22px 2px no-repeat,
      linear-gradient(#10195f,#10195f) 0 6px / 22px 2px no-repeat,
      linear-gradient(#10195f,#10195f) 0 12px / 22px 2px no-repeat;
  }
}
@media(max-width:520px){

  .brand-text{
    min-width:0;
  }

  .brand-text strong{
    font-size:.88rem;
    max-width:210px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .brand-text em{
    font-size:.62rem;
    letter-spacing:.14em;
  }

  .brand-mark{
    width:48px;
    height:48px;
    border-radius:16px;
  }

  .brand-mark img{
    width:28px;
    height:28px;
  }

  .header-inner{
    min-height:78px;
  }
}