/* NavX — верхняя шапка карты (по макету: бренд + навигация) */
body { --nx-hdr-h: 58px; }

.nx-hdr {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nx-hdr-h); z-index: 1350;
  display: flex; align-items: center; gap: 26px; padding: 0 16px;
  background: #0B1423; border-bottom: 1px solid rgba(148,178,215,.14);
  font-family: var(--nx-font); box-sizing: border-box;
}
.nx-hdr .nx-brand { color: #E6F1FF; text-decoration: none; display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; padding: 0; height: auto; }
.nx-hdr .nx-brand svg { width: 28px; height: 25px; }
.nx-hdr .nx-brand .sep { width: 1px; height: 20px; background: rgba(148,178,215,.2); margin: 0 4px; }
.nx-hdr .nx-brand .sub { font-size: 14px; font-weight: 600; color: #9DB0C8; }
.nx-hdr nav { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.nx-hdr nav a { color: #E6F1FF; opacity: .86; text-decoration: none; font-size: 14.5px; font-weight: 600; padding: 6px 0; position: relative; }
.nx-hdr nav a:hover { opacity: 1; color: #55C9FF; }
.nx-hdr nav a.on { color: #55C9FF; opacity: 1; }
.nx-hdr nav a.on::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: #55C9FF; border-radius: 2px; }

/* карта начинается ниже шапки */
#map { top: var(--nx-hdr-h) !important; }
#map3d-map { top: var(--nx-hdr-h) !important; }

/* верхняя карточка и её меню — тоже ниже */
.tc { top: calc(var(--nx-hdr-h) + 10px + var(--c-sat)) !important; }

@media (max-width: 700px) {
  .nx-hdr { gap: 10px; padding: 0 10px; }
  .nx-hdr nav { display: none; }
  .nx-hdr .nx-brand .sub, .nx-hdr .nx-brand .sep { display: none; }
}

.nx-hdr .nx-theme {
  width: 34px; height: 34px; border-radius: 10px; margin-left: 10px;
  border: 1px solid rgba(148,178,215,.28); background: transparent; color: #E6F1FF;
  font-size: 15px; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.nx-hdr .nx-theme:hover { border-color: #55C9FF; color: #55C9FF; }
