.services-nav {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.services-nav::after {
  position: absolute;
  top: 100%;
  left: -18px;
  width: calc(100% + 36px);
  height: 18px;
  content: '';
}

.services-mega {
  position: absolute;
  z-index: 125;
  top: calc(100% + 14px);
  left: 50%;
  width: min(900px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid #3a4553;
  border-radius: 10px;
  background: rgba(24, 29, 36, .99);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .52);
  opacity: 0;
  pointer-events: none;
  transform: translate(-28%, 8px);
  transition: opacity .16s ease, transform .16s ease;
}

.services-nav:hover .services-mega,
.services-nav:focus-within .services-mega {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-28%, 0);
}

.services-mega__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 18px;
  border-bottom: 1px solid #333c48;
}

.services-mega__top strong { color: #eef1f4; font-size: 16px; }
.services-mega__top > a { color: #f4431f !important; font-size: 13px; font-weight: 650; }

.services-mega__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.services-mega__grid section {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 18px;
}

.services-mega__grid section + section { border-left: 1px solid #333c48; }
.services-mega__label { margin-bottom: 7px; color: #737f8c; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.services-mega__grid section > a { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; padding: 9px 10px !important; border-radius: 6px; }
.services-mega__grid section > a > span { min-width: 0; display: grid; gap: 3px; }
.services-mega__grid section > a > img { width: 28px; height: 28px; object-fit: contain; opacity: .86; filter: grayscale(1) brightness(1.8); }
.services-mega__grid section > a:hover { background: rgba(255, 255, 255, .055); }
.services-mega__grid b { color: #dfe4e8; font-size: 13px; font-weight: 600; }
.services-mega__grid small { color: #818c98; font-size: 11px; line-height: 1.35; }

@media (max-width: 1399px) {
  .services-mega { display: none; }

  .mnav {
    max-height: calc(100vh - 64px);
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .mnav-services,
  .mnav-catalog {
    border-top: 1px solid rgba(255, 255, 255, .08);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .mnav-services summary,
  .mnav-catalog summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #e9ecef;
    cursor: pointer;
    list-style: none;
  }

  .mnav-services summary::-webkit-details-marker,
  .mnav-catalog summary::-webkit-details-marker {
    display: none;
  }

  .mnav-services summary::after,
  .mnav-catalog summary::after {
    content: "\203A";
    color: #a2acb8;
    font-size: 20px;
    transform: rotate(90deg);
    transition: transform .18s ease;
  }

  .mnav-services[open] summary::after,
  .mnav-catalog[open] summary::after {
    transform: rotate(-90deg);
  }

  .mnav-services__sections {
    display: grid;
    gap: 14px;
    padding: 2px 0 14px;
  }

  .mnav-services__all {
    color: #fff !important;
    font-weight: 650;
  }

  .mnav-services__section {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px 18px;
  }

  .mnav-services__label {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: #737f8c;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
  }

  .mnav .mnav-services__section a,
  .mnav .mnav-services__all {
    min-width: 0;
    padding: 8px 0;
    border-bottom: 0;
    color: #a2acb8;
    font-size: 13px;
    line-height: 1.3;
  }

  .mnav .mnav-services__section a:hover,
  .mnav .mnav-services__section a:focus-visible {
    color: #fff;
  }
}
