 .mobile-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 14px 16px;
  border-radius: 0 0 18px 18px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}

.site-logo {
  color: #fff;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
}

.burger-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: rgba(255,255,255,.12);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  cursor: pointer;
}
.burger-btn-close{
    position: relative;
    bottom: 50px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 14px;
    background: rgba(255,255,255,.12);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    cursor: pointer;
}
.burger-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 10px;
  transition: .25s ease;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 260px;
  height: 100vh;
  padding: 80px 18px 20px;
  background: linear-gradient(180deg, #2c2d33, #100d12);
  box-shadow: -10px 0 30px rgba(0,0,0,.35);
  transition: .3s ease;
  z-index: 999;
}

.mobile-menu .theme-switcher {
  margin-top: 20px;
}

.mobile-menu a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 14px 16px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}

.mobile-menu a:hover,
.mobile-menu a.active {
  background: linear-gradient(135deg, #ff4d8d, #8b5cf6);
}

.menu-open .mobile-menu {
  right: 0;
}

body.menu-open {
  overflow: hidden;
}

.menu-open .burger-btn span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}

.menu-open .burger-btn span:nth-child(2) {
  opacity: 0;
}

.menu-open .burger-btn span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (min-width: 769px) {
  .mobile-header,
  .mobile-menu {
    display: none;
  }
}
  .top-menu {
    display: block;
    justify-content: center;
    gap: 5px;
    position: sticky;
    top: 0;
    height: auto;
    z-index: 20;
}

.top-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  transition: .25s ease;
}

.top-menu a:hover,
.top-menu a.active {
  background: linear-gradient(135deg, #ff4d8d, #8b5cf6);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255,77,141,.35);
}


.mobile-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

.mobile-menu {
  width: min(280px, calc(100vw - 24px));
  padding: 70px 14px 18px;
}

  .mobile-menu a {
    font-size: 14px;
    padding: 12px 14px;
    margin-bottom: 8px;
  }

  .top-menu {
    gap: 6px;
    padding: 8px;
  }

  .top-menu a {
    font-size: 13px;
    padding: 8px 11px;
  }

  @media (max-width: 1026px) {
  .top-menu a {
    padding: 8px 3px;
  }
 
}

@media (max-width: 768px) {
  .topbar {
    display: none;
  }

  .top-menu {
    display: none;
  }
}

