.header {
  display: flex;
  padding: 10px 20px;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.6);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  position: fixed;
  width: 100vw;
  z-index: 9999;
  height: var(--menu-height);
  transition: 0.5s;
}

.header.scrolled, .header.open {
  background-color: var(--white);
}

.header .wrapper {
  max-width: 1200px;
  width: 100%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header .wrapper .logo {
  width: 70px;
  height: 70px;
}

.header .wrapper .logo a {
  display: flex;
}

.header .wrapper .logo a img {
  width: 100%;
  height: auto;
}

@media screen and (max-width: 1024px) {
  .header .wrapper .main-menu {
    position: fixed;
    top: var(--menu-height);
    z-index: 9999999;
    left: 0;
    width: 100vw;
    background-color: white;
    height: calc(100vh - var(--menu-height));
    opacity: 0;
    transition: 0.5s;
    pointer-events: none;
  }
  .header .wrapper .main-menu.open {
    opacity: 1;
    pointer-events: all;
  }
}

.header .wrapper .main-menu > li {
  list-style: none;
}

.header .wrapper .main-menu > li .menu {
  display: flex;
  justify-content: flex-end;
  width: 700px;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media screen and (max-width: 1024px) {
  .header .wrapper .main-menu > li .menu {
    flex-direction: column;
    padding: 25px;
    width: auto;
  }
}

.header .wrapper .main-menu > li .menu li {
  margin-left: 40px;
  text-transform: uppercase;
}

@media screen and (max-width: 1024px) {
  .header .wrapper .main-menu > li .menu li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    margin: 0;
  }
}

.header .wrapper .btn-menu {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 20px;
  width: 30px;
}

@media screen and (max-width: 1024px) {
  .header .wrapper .btn-menu {
    display: flex;
  }
}

.header .wrapper .btn-menu > div {
  width: 100%;
  height: 2px;
  background-color: var(--black);
  transition: 0.5s;
  transform-origin: 10%;
}

.header .wrapper .btn-menu.open > div:first-child {
  transform: rotate(45deg);
}

.header .wrapper .btn-menu.open > div:nth-child(2) {
  opacity: 0;
}

.header .wrapper .btn-menu.open > div:last-child {
  transform: rotate(-45deg);
}
