.l-header {
  width: 100%;
  height: 10rem;

  display: flex;
  align-items: center;
  justify-content: center;

  background-color: var(--dark);
  color: var(--light);

  transition: height 0.3s ease;
}

.l-header.fixed {
  top: 0;
  width: 100%;
  height: 4rem;
  
  position: fixed;
  z-index: 1000;

  opacity: 0.9;
  backdrop-filter: blur(40px);
}

.l-header__back {
  width: 100%;
  height: 10rem;
  top: 0;
  left: 0;
  right: 0;
  z-index: -10;
  
  background-color: var(--dark);
  position: fixed;
  transition: height 0.3s ease;
}

.l-header__back.fixed__back {
  height: 4rem;
}

.l-header__nav {
  max-width: var(--w-max);
  width: 100%;

  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.l-header__logo {
  width: 12rem;
  transition: width 0.3s ease;
}

.l-header__logo.fixed__logo {
  width: 6rem;
}


.menu__icon {
  font-size: 2.8rem;
  color: #fff;
  cursor: pointer;
  display: none;
  
  position: absolute;
  right: 2rem;
}

#menu__toggle__id {
  display: none;
}


@media (max-width: 768px) {
  .l-header{
    top: 0;
    width: 100%;
    height: 4rem;
    
    position: fixed;
    z-index: 1000;
  }

  .l-header.fixed {
    opacity: initial;
    backdrop-filter: initial;
  }

  .l-header__logo {
    width: 6rem;
  }

  .l-header__nav {
    padding: 0 2rem;
  }
  .menu__icon {
    display: inline-flex;
  }

  .menu__icon #menu__close__id {
    display: none;
  }
  
  #menu__toggle__id:checked~.menu__icon #menu__open__id {
    display: none;
  }

  #menu__toggle__id:checked~.menu__icon #menu__close__id {
    display: block;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .l-header__nav {
    padding: 0 4%;
  }
}

@media (min-width: 1025px) and (max-width: 1280px) {
  .l-header__nav {
    padding: 0 6%;
  }
}
