.header {
  padding: 1.6rem 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  transition: background 0.3s ease;
}

.header--scrolled {
  background-color: #fff;
}

.header__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  list-style: none;
  list-style-position: outside;
}

@media screen and (max-width: 768px) {
  .logo {
    width: 10rem;
    height: auto;
  }

  .logo svg {
    height: auto;
  }
}

/* Burger button styles */
.burger {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  display: none;
}

.burger__line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #000;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Active state */
.burger--active .burger__line:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.burger--active .burger__line:nth-child(2) {
  opacity: 0;
}

.burger--active .burger__line:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

.nav__inner {
  transition: all 0.5s ease, transform 0.3s ease;
}

@media screen and (max-width: 1024px) {
  .burger {
    display: flex;
  }

  .nav__inner {
    top: -50rem;
    /* opacity: 0; */
    position: absolute;
    left: 2rem;
    right: 2rem;
    background-color: #fff;
    border-radius: 2rem;
    padding: 3rem;
    box-shadow: 0 0 1rem #0000001a;
  }

  .nav--visible .nav__inner {
    top: 7rem;
    opacity: 1;
  }

  .nav ul {
    display: block;
  }

  .nav ul li {
    display: flex;
  }

  .nav li+li {
    margin-top: 2rem;
  }
}
