body {
  margin: 0;
  font-family: sans-serif;
}

/* HEADER */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: #fff;
  border-bottom: 1px solid #eee;
}
/* === ДОБАВЬ В CSS === */
.menu-dropdown {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 0;
  font-size: 18px;
  font-weight: 500;
  color: #222;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.menu-arrow {
  transition: 0.25s ease;
  opacity: 0.7;
}

.menu-sublist {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding-left: 14px;
  margin-top: -6px;
}

.menu-sublist.open {
  display: flex;
}

.menu-sublist a {
  font-size: 16px;
  color: #444;
  text-decoration: none;
}

.menu-sublist a:hover {
  text-decoration: underline;
}

/* BURGER */
.burger {
  position: absolute;
  right: 25px; /* отступ слева */
  top: 35%;
  transform: translateY(-50%);

  width: 44px;
  height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;

  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
}

.burger span {
  width: 24px;
  height: 3px;
  background: #222;
  border-radius: 10px;
  transition: 0.3s;
}

/* крестик */
.burger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.burger.active span:nth-child(2) {
  opacity: 0;
}
.burger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* MOBILE MENU */
.mobile-menu {
  position: fixed;
  top: 0;
  left: -100%;
  bottom: 0;
  width: 100%;
  z-index: 800;
}

/* затемнение */
.mobile-menu-background {
  height: 100%;
  background: rgba(0, 0, 0, 0);
  transition: background 0.3s;
}

/* панель */
.mobile-menu-content {
  height: 100%;
  width: 80%;
  background: #fff;
  overflow: auto;
  box-shadow: 0 0 25px #000000a8;
  transform: translateX(-100%);
  transition: 0.3s;
}

/* тело меню */
.mobile-menu-body {
  padding: 40px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-menu-body a {
  text-decoration: none;
  color: #222;
  font-size: 18px;
  font-weight: 500;
}

/* OPEN STATE */
.mobile-menu.open {
  left: 0;
}
/* по умолчанию скрыт (десктоп) */
.burger {
  display: none;
}

/* показываем на мобилке */
@media (max-width: 768px) {
  .burger {
    display: flex;
  }
}

.mobile-menu.open .mobile-menu-background {
  background: rgba(0, 0, 0, 0.6);
}

.mobile-menu.open .mobile-menu-content {
  transform: translateX(0%);
}

/* CLOSE animation */
.mobile-menu.close .mobile-menu-content {
  transform: translateX(-100%);
}
