header {
  position: fixed;
  top: 0;
  left: 0;

  width: 100%;
  box-sizing: border-box;

  background-color: white;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 20px 40px;

  z-index: 1000;

  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.logo {
  font-size: 24px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  z-index: 1002;
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  position: relative;
  text-decoration: none;
  color: #333;
}

nav a::after {
  content: "";

  position: absolute;
  left: 0;
  bottom: -5px;

  width: 100%;
  height: 3px;

  background-color: #60ac4f;

  transform: scaleX(0);
  transition: transform 0.3s ease;
}

nav a:hover::after {
  transform: scaleX(1);
}

.hamburger {
  display: none;

  position: relative;
  width: 35px;
  height: 30px;

  background: none;
  border: none;

  cursor: pointer;
  z-index: 1002;
}

.hamburger span {
  position: absolute;
  left: 0;

  display: block;

  width: 100%;
  height: 3px;

  background-color: #333;

  transition: 0.3s;
}

.hamburger span:nth-child(1) {
  top: 3px;
}

.hamburger span:nth-child(2) {
  top: 13px;
}

.hamburger span:nth-child(3) {
  top: 23px;
}

.hamburger.active span:nth-child(1) {
  top: 13px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 13px;
  transform: rotate(-45deg);
}

.overlay {
  display: none;
}

@media screen and (max-width: 768px) {
  header {
    height: 68px;
    padding: 0 20px;
  }

  .logo {
    font-size: 20px;
  }

  .hamburger {
    display: block;
  }

  nav {
    position: fixed;
    top: 68px;
    right: -280px;

    width: 280px;
    height: calc(100vh - 68px);

    display: flex;
    flex-direction: column;
    gap: 0;

    padding-top: 0;

    background-color: white;

    transition: right 0.3s ease;

    z-index: 1001;
  }

  nav.active {
    right: 0;
  }

  nav a {
    padding: 18px 25px;
    border-bottom: 1px solid #eee;
    font-size: 16px;
  }

  nav a::after {
    display: none;
  }

  .overlay {
    position: fixed;
    top: 68px;
    left: 0;

    display: block;

    width: 100%;
    height: calc(100vh - 68px);

    background-color: rgba(0, 0, 0, 0.4);

    opacity: 0;
    visibility: hidden;

    transition: 0.3s;

    z-index: 1000;
  }

  .overlay.active {
    opacity: 1;
    visibility: visible;
  }
}