.mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
  z-index: 100;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  gap: 5px;
}

.line {
  display: block;
  width: 24px;
  height: 3px;
  background: #7A9BCF;
  border-radius: 2px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 80vw);
  height: 100vh;
  background: white;
  padding: 80px 24px 24px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 101;
  overflow-y: auto;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list li {
  margin-bottom: 4px;
}

.nav-list a {
  display: block;
  padding: 14px 16px;
  color: #333;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-list a:hover,
.nav-list a:focus {
  background: #f3f4f6;
  color: #3b82f6;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
}

/* Open state */
body.nav-open {
  overflow: hidden;
}

body.nav-open .mobile-nav {
  transform: translateX(0);
}

body.nav-open .overlay {
  opacity: 1;
  visibility: visible;
}

body.nav-open .hamburger .line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

body.nav-open .hamburger .line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

body.nav-open .hamburger .line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

@media screen and (min-width: 60em) {
  .hamburger, .mobile-header,
  .overlay,.mobine-nav,.nav-list {
    display: none;
  }
}

@media screen and (max-width: 60em) {
  .links {
    display: none;
  }
}