.ax-megamenu {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  z-index: 30;
}

.ax-megamenu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ax-megamenu__toggle,
.ax-megamenu__backdrop,
.ax-megamenu__mobile-head {
  display: none;
}

.ax-megamenu__root {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.ax-megamenu__item {
  position: static;
}

.ax-megamenu__link {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 16px;
  color: #232323;
  font-weight: 600;
  text-decoration: none;
}

.ax-megamenu__link:hover,
.ax-megamenu__item:focus-within > .ax-megamenu__link {
  color: #0b7285;
  background: #f8fafc;
}

.ax-megamenu__panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: none;
  background: #fff;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #d1d5db;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .12);
}

.ax-megamenu__item:hover > .ax-megamenu__panel,
.ax-megamenu__item:focus-within > .ax-megamenu__panel,
.ax-megamenu__item.is-open > .ax-megamenu__panel {
  display: block;
}

.ax-megamenu__columns {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px 28px;
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 16px;
  align-items: flex-start;
  overflow-x: visible;
}

.ax-megamenu__column {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}

.ax-megamenu__category {
  break-inside: avoid;
  min-width: 0;
}

.ax-megamenu__category-title {
  display: inline-flex;
  margin-bottom: 8px;
  color: #111827;
  font-weight: 700;
  text-decoration: none;
}

.ax-megamenu__category-title:hover {
  color: #0b7285;
}

.ax-megamenu__links {
  display: grid;
  gap: 5px;
}

.ax-megamenu__links a {
  display: inline-flex;
  color: #4b5563;
  line-height: 1.35;
  text-decoration: none;
}

.ax-megamenu__links a:hover {
  color: #0b7285;
}

@media (max-width: 767px) {
  body.ax-megamenu-lock {
    overflow: hidden;
  }

  #header #menu-icon {
    display: none;
  }

  .ax-megamenu {
    display: block;
    min-height: 48px;
  }

  .ax-megamenu__toggle {
    display: inline-flex;
    width: 48px;
    height: 48px;
    margin-left: 8px;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }

  .ax-megamenu__toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #232323;
  }

  .ax-megamenu__backdrop {
    position: fixed;
    inset: 0;
    display: block;
    visibility: hidden;
    background: rgba(15, 23, 42, .45);
    opacity: 0;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 998;
  }

  .ax-megamenu__root {
    position: fixed;
    top: 0;
    left: 0;
    display: block;
    width: min(86vw, 340px);
    height: 100vh;
    max-width: none;
    margin: 0;
    padding-bottom: 24px;
    overflow-y: auto;
    background: #fff;
    box-shadow: 16px 0 32px rgba(15, 23, 42, .18);
    transform: translateX(-105%);
    transition: transform .24s ease;
    z-index: 999;
  }

  .ax-megamenu.is-mobile-open .ax-megamenu__root {
    transform: translateX(0);
  }

  .ax-megamenu.is-mobile-open .ax-megamenu__backdrop {
    visibility: visible;
    opacity: 1;
  }

  .ax-megamenu__mobile-head {
    display: flex;
    min-height: 54px;
    padding: 0 16px;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
    font-weight: 700;
  }

  .ax-megamenu__close {
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: 0;
    color: #111827;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  .ax-megamenu__item {
    border-bottom: 1px solid #e5e7eb;
  }

  .ax-megamenu__link {
    min-height: 50px;
    justify-content: space-between;
  }

  .ax-megamenu__item.has-children > .ax-megamenu__link::after {
    content: "+";
    color: #6b7280;
    font-size: 18px;
    font-weight: 700;
  }

  .ax-megamenu__item.has-children.is-open > .ax-megamenu__link::after {
    content: "-";
  }

  .ax-megamenu__panel {
    position: static;
    display: none;
    box-shadow: none;
    border-top: 0;
    border-bottom: 0;
  }

  .ax-megamenu__item:hover > .ax-megamenu__panel,
  .ax-megamenu__item:focus-within > .ax-megamenu__panel {
    display: none;
  }

  .ax-megamenu__item.is-open > .ax-megamenu__panel {
    display: block;
  }

  .ax-megamenu__columns {
    display: block;
    max-width: none;
    padding: 12px 16px 18px;
  }

  .ax-megamenu__column {
    display: block;
  }

  .ax-megamenu__column + .ax-megamenu__column {
    margin-top: 16px;
  }

  .ax-megamenu__category + .ax-megamenu__category {
    margin-top: 16px;
  }
}
