/* ==========================================================================
   menu.css — горизонтальное меню (без привязки к id)
   ========================================================================== */

/* Бургер скрыт на десктопе */
.main-burger-checkbox,
.main-burger-label,
.main-menu-overlay {
  display: none;
}

.nav-horizontal {
  position: relative;
  margin-bottom: 20px;
  background-color: #fff9e6;
  z-index: 990;
}

.nav-horizontal--burger-breadcrumbs-zone {
  margin-bottom: 0px;
}

.nav-horizontal::before,
.nav-horizontal::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 95%;
  height: 1px;
  background-color: rgba(59, 10, 96, 0.15);
  pointer-events: none;
  z-index: 10;
}
.nav-horizontal::before { top: 0; }
.nav-horizontal::after  { bottom: 0; }

.menu-root,
.menu-sub {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ==========================================================================
   Первый уровень
   ========================================================================== */

.menu-root {
  display: flex;
  width: 100%;
  justify-content: space-between;
  position: relative;
}

.menu-root > .menu-item {
  flex: 1;
  text-align: center;
  position: relative;
  white-space: nowrap;
}

.menu-root > .menu-item > .menu-link {
  display: block;
  color: #3b0a60;
  padding: 14px 10px;
  text-decoration: none;
  font-size: 15px;
  font-weight: bold;
  background-color: #fff9e6;
  transition: background-color 0.2s, color 0.2s;
}

.menu-root > .menu-item.menu-item--active > .menu-link {
  background-color: #ebdcb2;
  color: #3b0a60;
}

.menu-root > .menu-item:hover > .menu-link {
  background-color: #dfcd9d;
  color: #3b0a60;
}

.menu-root > .menu-item > .menu-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0;
  padding: 0;
}

/* ==========================================================================
   Подменю (уровни 2+)
   ========================================================================== */

.menu-sub {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background-color: #fff9e6;
  border: 1px solid #c9bca2;
  box-shadow: 0 4px 15px rgba(59, 10, 96, 0.1);
  text-align: left;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}

.menu-item--has-children:hover > .menu-sub,
.menu-item--has-children.is-open > .menu-sub {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.menu-sub .menu-sub {
  top: -1px;
  left: 100%;
  transform: translateX(10px);
}
.menu-sub .menu-item--has-children:hover > .menu-sub,
.menu-sub .menu-item--has-children.is-open > .menu-sub {
  transform: translateX(0);
}

.menu-item--drop-left .menu-sub .menu-sub {
  left: auto;
  right: 100%;
  transform: translateX(-10px);
}
.menu-item--drop-left .menu-sub .menu-item--has-children:hover > .menu-sub,
.menu-item--drop-left .menu-sub .menu-item--has-children.is-open > .menu-sub {
  transform: translateX(0);
}

.menu-sub > .menu-item {
  position: relative;
  display: block;
  width: 100%;
  border-bottom: 1px solid #ebdcb2;
}
.menu-sub > .menu-item:last-child {
  border-bottom: none;
}

.menu-sub .menu-link {
  display: block;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: normal;
  text-decoration: none;
  color: #1a1a1a;
  background-color: #fff9e6;
  box-sizing: border-box;
}

.menu-sub .menu-link:hover {
  background-color: #ebdcb2;
  color: #3b0a60;
}

.menu-sub .menu-toggle {
  position: absolute;
  top: 0;
  right: 0;
  width: 36px;
  height: 100%;
  background: transparent;
  border: none;
  cursor: pointer;
  opacity: 0;
  padding: 0;
}

.menu-sub .menu-item--has-children > .menu-link {
  padding-right: 40px;
}