.category-dropdown {
  position: relative;
  display: inline-block;
  margin-top: 8px;
  margin-left: 0; /* убран отступ! */
  z-index: 10;
}

#categoryDropdownBtn {
  background: #f3f7fa;
  color: #2d3a4a;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  padding: 10px 28px;
  font-size: 1.08em;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  outline: none;
  box-shadow: 0 2px 8px rgba(79,140,255,0.04);
  min-width: 150px;
  text-align: left;
  margin-left: 0; /* убран отступ! */
}

#categoryDropdownBtn:hover {
  background: #e9eef6;
  color: #4f8cff;
}

.dropdown-menu {
  display: none;
  position: absolute;
  left: 0;
  top: 110%;
  min-width: 180px;
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(79,140,255,0.10);
  padding: 8px 0;
  z-index: 100;
}

.dropdown-menu button {
  width: 100%;
  background: none;
  border: none;
  padding: 12px 24px;
  text-align: left;
  font-size: 1em;
  color: #2d3a4a;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  border-radius: 0;
}

.dropdown-menu button.active,
.dropdown-menu button:hover {
  background: #e9eef6;
  color: #4f8cff;
}

/* --- Адаптация под мобильные устройства --- */
@media (max-width: 700px) {
  .category-dropdown {
    display: block;
    width: 100vw;
    margin-left: 0 !important; /* убран отступ! */
    margin-top: 12px;
    padding: 0 !important;
    box-sizing: border-box;
  }

  #categoryDropdownBtn {
    width: 100vw;
    min-width: 0;
    font-size: 1.1em;
    padding: 16px 12px;
    border-radius: 10px;
    text-align: left;
    box-sizing: border-box;
    margin-left: 0 !important; /* убран отступ! */
  }

  .dropdown-menu {
    min-width: 100vw;
    left: 0;
    right: 0;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 16px rgba(79,140,255,0.10);
    padding: 4px 0;
    box-sizing: border-box;
  }

  .dropdown-menu button {
    padding: 16px 18px;
    font-size: 1.08em;
    border-radius: 0;
  }
}