.burger-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 15px;
  transition: background 0.2s;
  z-index: 1001;
  position: relative;
}
.burger-btn:hover {
  background: #f0f4f0;
}
.burger-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background: #2f865c;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
  margin: 2.5px 0;
}

.burger-btn.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.burger-btn.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.burger-btn.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Оверлей и меню */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

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

.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 82%;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  box-shadow: 8px 0 30px rgba(0, 0, 0, 0.08);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  flex-direction: column;
  padding: 24px 20px 30px;
  border-top-right-radius: 28px;
  border-bottom-right-radius: 28px;
}

.mobile-menu.active {
  transform: translateX(0);
}

.menu-logo {
  font-size: 1.6rem;
  font-weight: 650;
  color: #2f865c;
  letter-spacing: -0.5px;
  margin-bottom: 36px;
  padding-left: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.menu-list li a {
  display: block;
  padding: 10px 15px;
  font-size: 15px;
  color: #1e2b39;
  text-decoration: none;
  border-radius: 15px;
  transition: all 0.2s ease;
  background: transparent;
  line-height: 1.4;
}

.menu-list li a:hover,
.menu-list li a:focus-visible {
  background: #f0f7f2;
  color: #2f865c;
  outline: none;
}

.menu-footer {
  margin-top: auto;
  padding: 16px 12px 8px;
  font-size: 0.8rem;
  color: #6b7b8b;
  border-top: 1px solid #edf2ef;
  text-align: left;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .desktop-nav {
    display: none;
  }
  .burger-btn {
    display: flex;
  }
}
@media (max-width: 800px) {
  .burger-btn {
    position:absolute;
    top:40px;right:20px;
  }
}

@media (min-width: 1024px) {
  .mobile-menu, .menu-overlay {
    display: none !important;
  }
}

.main-content {
  padding: 32px 24px;
  color: #2d3a4a;
}