.site-header {
  min-height: 86px;
  padding: 12px 4vw;
}

.mega-nav {
  position: static;
  align-items: center;
  gap: 6px;
}

.mega-item {
  position: static;
}

.mega-trigger,
.mega-link {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.mega-trigger::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: .55;
}

.mega-trigger:hover,
.mega-link:hover,
.mega-item:focus-within .mega-trigger,
.mega-item:hover .mega-trigger {
  background: rgba(21, 79, 154, .08);
  color: var(--blue);
}

.mega-panel {
  position: absolute;
  top: calc(100% - 8px);
  left: 50%;
  width: min(1060px, calc(100vw - 48px));
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 50;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}

.mega-item:hover .mega-panel,
.mega-item:focus-within .mega-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.mega-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 280px;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(223, 231, 239, .9);
  border-radius: 8px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 24px 70px rgba(8, 22, 38, .18);
  backdrop-filter: blur(18px);
}

.mega-inner.compact {
  grid-template-columns: 1fr 1fr;
}

.mega-column {
  display: grid;
  gap: 8px;
}

.mega-label {
  margin: 0 0 4px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mega-column a {
  display: grid;
  gap: 3px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(244, 248, 251, .72);
}

.mega-column a:hover {
  border-color: rgba(21, 79, 154, .18);
  background: #fff;
  box-shadow: 0 12px 30px rgba(19, 32, 51, .08);
}

.mega-column strong {
  font-size: 15px;
}

.mega-column span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.mega-cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--navy), var(--blue));
}

.mega-cta p {
  margin: 0;
  color: rgba(255,255,255,.78);
}

.mega-cta strong {
  font-size: 19px;
  line-height: 1.25;
}

@media (max-width: 980px) {
  .mega-nav {
    position: relative;
    gap: 2px;
  }

  .mega-trigger,
  .mega-link {
    padding: 8px 10px;
  }

  .mega-panel {
    left: 4vw;
    right: 4vw;
    width: auto;
    transform: translateY(8px);
  }

  .mega-item:hover .mega-panel,
  .mega-item:focus-within .mega-panel {
    transform: translateY(0);
  }

  .mega-inner,
  .mega-inner.compact {
    grid-template-columns: 1fr;
    max-height: 70vh;
    overflow: auto;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: auto;
  }

  .mega-panel {
    display: none;
  }

  .mega-trigger::after {
    display: none;
  }
}
