header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: 0.35s var(--ease);

  * {transition: 0.35s;}
  #logo {width: 142px; height: 36px; position: relative; z-index: 999;}
  .nav-logo_i1, .nav-logo_i2 {fill: #fff;}
  .navbar {padding-top: 12px; padding-bottom: 12px;}
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 22px;
}
.navlinks a.nl {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.86);
  position: relative;
  padding: 6px 0;
  transition: 0.3s;
}
.navlinks a.nl::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--cyan);
  transition: width 0.4s var(--ease);
}
.navlinks a.nl:hover,
.navlinks a.nl.active {color: #fff;}
.navlinks a.nl:hover::after,
.navlinks a.nl.active::after {
  width: 100%;
}
.nav-cta {
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  color: #00469b;
  background: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  transition: 0.4s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover {
  background: var(--cyan);
  transform: translateY(-2px);
}

.burger {
  display: flex;
  width: 42px;
  height: 42px;
  border: none;
  background: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  align-items: center;
  position: relative;
  z-index: 999;

  &:before, &:after {
    content: "";
    width: 24px;
    height: 2px;
    background: #fff;
    transition: 0.35s var(--ease);
    position: absolute;
    top: 50%;
    left: 50%;
  }
  &:before {transform: translate(-50%, -50%) rotate(45deg) scale(0);}
  &:after {transform: translate(-50%, -50%) rotate(-45deg) scale(0);}

  &:focus, &:focus-visible {outline: none !important; box-shadow: none !important;}

  span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: 0.35s var(--ease);
  }

  &[aria-expanded="true"] {
    &:before {transform: translate(-50%, -50%) rotate(405deg) scale(1);}
    &:after {transform: translate(-50%, -50%) rotate(315deg) scale(1);}
    span {opacity: 0; pointer-events: none;}
  }
}

header.active {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(11, 27, 63, .4);

  .nav-logo_i1 {fill: #54c2f0;}
  .nav-logo_i2 {fill: #00469b;}
  .nav-logo_i1, .nav-logo_i2 {stroke-width: 0px;}
  .navbar {padding-top: 12px; padding-bottom: 12px;}

  .navlinks a.nl:hover, .navlinks a.nl.active {color: var(--navy);}
  .nav-cta {background: var(--navy); color: #fff;}
  .nav-cta:hover {background: var(--cyan-d);}
  .burger span {background: var(--ink);}
}

@media only screen and (min-width: 992.999px) {
  header {
    #logo {width: 196px; height: 50px;}
    .navbar {padding-top: 32px; padding-bottom: 32px;}
  }
  header.active {
    .navlinks a.nl {color: var(--slate-d);}
  }
  .burger {display: none;}
}
@media only screen and (max-width: 992px) {
  body:has(.collapse.show) {overflow: hidden;}
  header:has(.collapse.show) {
    .nav-logo_i1, .nav-logo_i2 {fill: #fff;}
  }
  header .container-lg {padding-left: 24px; padding-right: 24px;}
  .navbar-collapse {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100dvh;
    background: var(--ink);
    display: flex;
    flex-direction: column;
    padding: 80px 24px 40px;
    transform: translateX(100%);
    transition: 0.25s;
    visibility: hidden;
    z-index: 99;
  }
  .navbar-collapse .navlinks {width: 100%; height: 100%; overflow: auto; gap: 0;}
  .navbar-collapse .navlinks .nav-item {width: 100%;}
  .collapse:not(.show) {display: flex;}
  .navbar-collapse.show {
    transform: none;
    visibility: visible;
  }
  .navbar-collapse a.nl {
    display: block;
    color: #fff;
    font-size: 1.4rem;
    padding: 13px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
  .navbar-collapse a.nl:after {content: none;}
}

@media only screen and (min-width: 992.999px) and (max-width: 1290px) {
  header .navbar .container-lg {display: block; text-align: center;}
  header .navbar .container-lg .navbar-nav {margin-left: 0 !important; margin-right: 30px !important;}
  #navbar {justify-content: center; margin-top: 12px;}
}