.men1-nav {
  background: white;
  color: black;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  box-shadow: 0 2px 5px rgb(0 0 0 / 0.1);
  user-select: none;
  z-index: 1000;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.men1-logo {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
  text-decoration: none;
}

.men1-logo img {
  height: 40px;
  width: auto;
  display: block;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.men1-logo:hover img,
.men1-logo:focus img {
  transform: scale(1.1);
  outline: none;
}

.men1-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.men1-menu li a {
  text-decoration: none;
  color: black;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.4rem 0;
  display: block;
  border-bottom: 3px solid transparent;
  transition: border-color 0.3s ease, color 0.3s ease;
}

.men1-menu li a:hover,
.men1-menu li a:focus {
  color: #1e40af;
  border-bottom-color: #1e40af;
}

.men1-hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
  width: 25px;
  height: 20px;
  justify-content: space-between;
  background: transparent;
  border: none;
  padding: 0;
  outline-offset: 2px;
}

.men1-hamburger:focus {
  outline: 2px solid #1e40af;
  outline-offset: 2px;
}

.men1-hamburger span {
  height: 3px;
  background: black;
  border-radius: 2px;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  .men1-menu {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    border-bottom: 2px solid #1e40af;
  }

  .men1-menu.open {
    max-height: 300px;
  }

  .men1-menu li {
    border-top: 1px solid #e5e7eb;
  }

  .men1-menu li a {
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
  }

  .men1-hamburger {
    display: flex;
  }
}

.men1-hamburger.active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.men1-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.men1-hamburger.active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}
