.top-menu {
    display: flex;
    justify-content: center;
    padding: 0px 20px;
    background-color: rgba(216, 160, 126, 0.1);
    margin-top: 0;
    backdrop-filter: blur(10px);
    margin: 0 auto;
    width: 100%;
}

.top-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    width: 1113px;
    max-width: 100%;
    gap: 10px;
    padding-right: 40px;
}

.top-menu li {
    flex: 1;
    text-align: center;
}

.top-menu a {
    text-decoration: none;
    color: #d8a07e;
    font-weight: 600;
    font-size: 15px;
    padding: 15px 15px;
    border-radius: 12px 12px 0px 0px;
    transition: all 0.3s ease;
    display: block;
    letter-spacing: 0.7px;
    font-family: system-ui, -apple-system, sans-serif;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0px 4px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(216, 160, 126, 0.1);
    border-bottom: none;
}

.top-menu a:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    background-color: rgba(216, 160, 126, 0.1);
    color: #b58968;
    border-color: rgba(216, 160, 126, 0.3);
}

.menu-icon {
  transition: transform 0.3s ease;
  margin-right: 5px;
  display: inline-block;
  vertical-align: middle;
  width: 20px;
  height: 20px;
}

.menu-icon-img {
  display: none;
  vertical-align: middle;
  margin-right: 12px;
}

.catalog-link.active .menu-icon {
  transform: rotate(90deg);
}

.menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

@media (max-width: 768px) {
  .top-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: #f8f9fa;
    z-index: 1000;
    transition: left 0.3s ease;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  body.menu-open .top-menu {
    left: 0;
    display: flex;
  }

  body.menu-open .menu-overlay {
    display: block;
  }

  .top-menu ul {
    flex-direction: column;
    gap: 50px;
    width: 80%;
    max-width: 300px;
  }

  .top-menu li {
    flex: none;
    width: 100%;
  }

  .top-menu a {
    padding: 15px;
    text-align: center;
    width: 100%;
  }

  .top-menu .catalog-link {
    padding: 35px 15px;
    font-size: 22px;
    pointer-events: none;
  }

  .top-menu .catalog-link .menu-icon {
    display: none !important;
  }

  .top-menu .catalog-link .menu-icon-img {
    display: inline-block !important;
    width: 32px;
    height: auto;
  }
}

@media (min-width: 769px) and (max-width: 1085px) {
  .top-menu a {
    font-size: 15px !important;
    padding: 7px 12px !important;
    white-space: nowrap !important;
  }

  .top-menu li {
    white-space: nowrap !important;
    flex: none !important;
  }

  .top-menu ul {
    gap: 2px !important;
    width: 100% !important;
    max-width: 735px !important;
    justify-content: space-around !important;
  }
}