/* =========================================================
   MOBILE MENU
   ========================================================= */

.nx-nav--desktop{
  display: inline-flex;
}

.nx-burger{
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(11,18,32,.08), 0 1px 0 rgba(255,255,255,.18) inset;
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
}

.nx-burger__line{
  display: block;
  width: 18px;
  height: 2px;
  background: rgba(11,18,32,.82);
  border-radius: 999px;
  transition: transform .18s ease, opacity .18s ease;
}

.nx-burger.is-open .nx-burger__line:nth-child(1){
  transform: translateY(6px) rotate(45deg);
}

.nx-burger.is-open .nx-burger__line:nth-child(2){
  opacity: 0;
}

.nx-burger.is-open .nx-burger__line:nth-child(3){
  transform: translateY(-6px) rotate(-45deg);
}

.nx-mobileMenu{
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: none;
}

.nx-mobileMenu.is-open{
  display: block;
}

.nx-mobileMenu__backdrop{
  position: absolute;
  inset: 0;
  background: rgba(11,18,32,.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nx-mobileMenu__panel{
  position: absolute;
  top: 12px;
  right: 12px;
  left: 12px;
  max-width: 520px;
  margin-left: auto;
  padding: 14px;
  opacity: 0;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(11,18,32,.08);
  border-radius: 26px;
  box-shadow: 0 30px 90px rgba(0,0,0,.22);
  transform: translateY(-10px);
  transition: transform .22s ease, opacity .22s ease;
  backdrop-filter: blur(18px) saturate(170%);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
}

.nx-mobileMenu.is-open .nx-mobileMenu__panel{
  opacity: 1;
  transform: translateY(0);
}

.nx-mobileMenu__top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.nx-mobileMenu__title{
  color: rgba(11,18,32,.92);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: -.02em;
}

.nx-mobileMenu__close{
  width: 40px;
  height: 40px;
  color: rgba(11,18,32,.86);
  cursor: pointer;
  background: rgba(11,18,32,.04);
  border: 1px solid rgba(11,18,32,.10);
  border-radius: 999px;
  font-weight: 950;
}

.nx-mobileMenu__links{
  display: grid;
  gap: 10px;
}

.nx-mobileMenu__link{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  color: rgba(11,18,32,.88);
  background: rgba(255,255,255,.75);
  border: 1px solid rgba(11,18,32,.06);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(11,18,32,.06);
  font-weight: 900;
}

.nx-mobileMenu__link:active{
  transform: translateY(1px);
}

.nx-mobileMenu__arrow{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: rgba(20,90,220,.08);
  border: 1px solid rgba(20,90,220,.12);
  border-radius: 999px;
  font-weight: 950;
}

@media (max-width: 820px){
  .nx-nav--desktop{
    display: none;
  }

  .nx-burger{
    display: inline-flex;
  }
}
