/* ===== Мега-меню «Решения» ===== */

/* не обрезаем выпадашку */
.nav-header-wrap,
.nav-header-wrap nav,
.b-header_menu {
  overflow: visible !important;
}
.nav-header-wrap {
  transition: transform 0.3s ease-in-out;
  z-index: 1000;
  position: sticky;
  top: 0px;
}
/* пока открыто мега-меню, шапка выше липкого сабменю страницы (.horisontal-menu, z-index: 1500) */
.nav-header-wrap:has(li.has-mega:hover),
.nav-header-wrap:has(li.has-mega:focus-within) {
  z-index: 2000;
}
.nav-header-wrap.is-hidden {
  transform: translateY(-100%);
}

.b-header_menu {
  position: relative;
}

.b-header_menu ul.deep-1 > li.has-mega {
  position: static !important;
}

.b-header_menu li.has-mega > .mega-menu {
  display: block !important;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  padding: 32px 40px 36px;
  background: #fff;
  border-radius: 0 0 8px 8px;
  box-shadow: 0px 4px 30px rgba(0, 0, 0, 0.1);
  text-align: left;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease .15s, transform .2s ease .15s, visibility 0s linear .35s;
}

/* мостик, чтобы hover не терялся в зазоре */
.b-header_menu li.has-mega > .mega-menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -16px;
  height: 16px;
}

.b-header_menu li.has-mega:hover > .mega-menu,
.b-header_menu li.has-mega:focus-within > .mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.b-header_menu .mega-menu__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 48px;
}

.b-header_menu .mega-menu__title {
  margin-bottom: 14px;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.15;
  color: black;
  text-transform: none;
}

.b-header_menu .mega-menu__list {
  display: block !important;
  position: static !important;
  margin: 0;
  padding: 0;
  list-style: none;
  background: none;
}

.b-header_menu .mega-menu__list li {
  display: block !important;
  float: none !important;
  width: auto !important;
  margin: 0;
  padding: 0;
  background: none;
}

.b-header_menu .mega-menu__list li + li {
  margin-top: 10px;
}

.b-header_menu .mega-menu__link {
  display: inline !important;
  padding: 0 !important;
  font-size: 20px !important;
  line-height: 1.15;
  font-weight: 400;
  color: #228499 !important;
  text-transform: none !important;
  text-decoration: none;
  background: none !important;
}

.b-header_menu ul.deep-1 li.deep-1 .mega-menu__link:hover {
  color: #228399 !important;
  font-weight: 400;
  opacity: 0.9;
  text-decoration: none;
}
.b-header_menu .mega-menu,
.b-header_menu .mega-menu * {
  white-space: normal !important;
}

.b-header_menu .mega-menu__col {
  min-width: 0;
}

.b-header_menu .mega-menu__link {
  display: block !important;
  max-width: 100%;
  overflow-wrap: break-word;
}