nav {
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

nav .mobile__menu {
  color: var(--clr-primary);
  cursor: pointer;
  display: none;
}

nav .nav__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(1250px, 95%);
  margin: 0 auto;
}

nav .wrapper__logo {
  flex-basis: 33.333%;
}

nav .nav__mobile__check {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

nav .nav__content ul {
  display: flex;
  gap: 1rem;
  align-items: center;
}

nav .nav__content ul li a {
  text-decoration: none;
  color: black;
  position: relative;
  padding: 0 4px;
  transition: color 0.4s;
}

nav .nav__content ul li a.active {
  color: var(--clr-primary);
}

nav .nav__content ul li a.active::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--clr-primary);
  bottom: -4px;
  left: 0;
}

nav .nav__content ul li a:hover {
  color: var(--clr-primary);
}

nav .nav__content ul li a::before {
  content: "";
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  transition: width 0.4s ease-out;
  background-color: var(--clr-primary);
}

nav .nav__content ul li a:hover::before {
  width: 100%;
}

nav .nav__content .nav__lang {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--font-primary);
  cursor: pointer;
}

nav .nav__content .nav__lang svg {
  width: 1.2rem;
  height: 1.2rem;
}

.nav__background__mobile {
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  display: none;
}

@media (max-width: 726px) {
  nav .nav__content ul {
    display: flex;
    gap: 1rem;
    align-items: center;
  }

  nav .nav__content .nav__lang {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--font-primary);
    cursor: pointer;
  }

  nav .nav__mobile__check {
    position: fixed;
    height: 100%;
    width: 40%;
    right: -40%;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: center;
    background-color: white;
    gap: 2rem;
    padding-top: 2rem;
    z-index: 200;
    transition: 0.4s ease-out;
  }

  nav .nav__mobile__check ul {
    flex-direction: column;
    align-items: start;
    text-align: center;
  }

  nav .nav__mobile__check ul li a {
    text-align: center;
  }

  nav .mobile__menu {
    display: block;
    z-index: 220;
  }
}

@media (max-width: 490px) {
  nav .nav__mobile__check {
    width: 60%;
    right: -60%;
  }
}
