.header {
  border-bottom: 1px solid rgba(255, 215, 0, 0.3);
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 20px;
}

.logo {
  font-size: 22px;
  font-weight: bold;
  display: flex;
  gap: 20px;
  align-items: center;
  cursor: pointer;
}

.nav a {
  margin-left: 25px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s all;
  position: relative;
  padding-bottom: 5px;
}

.nav a:hover {
  color: #f1cb4e;
}

.nav a::before {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: #f1cb4e;
  bottom: 0px;
  left: 0;
  transition: all 0.3s ease;
}

.nav a:hover {
  color: #f1cb4e;
}

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

/* button */
.burger {
  display: none;

  width: 30px;
  height: 22px;

  flex-direction: column;
  justify-content: space-between;

  cursor: pointer;
}

.burger span {
  display: block;

  height: 3px;
  background: gold;

  transition: 0.3s;
}

.burger.active span:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

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

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

@media (max-width: 768px) {
  body.menu-open {
    overflow: hidden;
  }
  .header-inner {
    padding: 15px 15px;
  }

  .logo img {
    width: 50px;
    height: auto;
  }
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: calc(100% - 100px);
    height: 100dvh;
    background: rgba(14, 70, 24, 0.95);
    backdrop-filter: blur(8px);

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

    z-index: 900;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
  }

  .nav.active {
    opacity: 1;
    visibility: visible;
    right: 0;
  }

  .nav a {
    font-size: 28px;
    margin: 20px 0;

    opacity: 0;
    transform: translateY(20px);

    transition: 0.4s;

    padding: 15px 0;
    margin: 0;
  }

  .nav.active a {
    opacity: 1;
    transform: translateY(0);
  }

  .nav.active a:nth-child(1) {
    transition-delay: 0.3s;
  }

  .nav.active a:nth-child(2) {
    transition-delay: 0.4s;
  }

  .nav.active a:nth-child(3) {
    transition-delay: 0.6s;
  }

  .nav.active a:nth-child(4) {
    transition-delay: 0.8s;
  }

  .burger {
    display: flex;
    z-index: 1000;
  }
}

.menu-overlay {
  position: fixed;
  inset: 0;

  backdrop-filter: blur(6px);
  background: rgba(0, 0, 0, 0.4);

  opacity: 0;
  visibility: hidden;
  transition: 0.3s;

  z-index: 800;
}

.menu-overlay.active {
  opacity: 1;
  visibility: visible;
}
