.nx-header {
  --nx-side-space: 10px;
  --nx-max-width: calc(100vw - (var(--nx-side-space) * 2));
  --nx-panel-width: min(1240px, calc(100vw - (var(--nx-side-space) * 2)));
  --nx-transition-fast: 0.14s cubic-bezier(0.22, 0.61, 0.36, 1);
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 120000;
  pointer-events: none;
}

.nx-header *,
.nx-header *::before,
.nx-header *::after {
  box-sizing: border-box;
}

.nx-header__bar {
  margin: 0 var(--nx-side-space) 0;
  pointer-events: auto;
  transition: margin-top var(--nx-transition-fast);
}

.nx-header.is-sticky .nx-header__bar {
  margin-top: 0;
}

@media (min-width: 1200px) {
  .nx-header__bar {
    margin-top: 0;
  }


/* Home page only: nudge header down slightly */
.page-home .nx-header__bar {
  margin-top: 12px;
}
@media (min-width: 1200px) {
  .page-home .nx-header__bar {
    margin-top: 28px;
  }
}

  .nx-header__container {
    grid-template-columns: auto 1fr auto auto !important;
    padding-left: 40px;
    padding-right: 40px;
  }

  .nx-header__actions {
    order: 0 !important;
    justify-self: end !important;
    margin-right: 72px;
  }

  .nx-nav {
    order: 0 !important;
    justify-self: center !important;
  }

  .nx-header__brand {
    order: 0 !important;
    justify-self: start !important;
    margin-left: 72px;
  }
}

.nx-header__container {
  width: 100%;
  max-width: var(--nx-max-width);
  margin: 0 auto;
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  transition: background-color var(--nx-transition-fast), border-color var(--nx-transition-fast), box-shadow var(--nx-transition-fast);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
}

.nx-header.is-sticky .nx-header__container {
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 32%, #0f3460 70%, #533483 100%);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  border-radius: 0 0 10px 10px;
}

.nx-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.nx-header__brand img {
  width: auto;
  height: 34px;
  flex-shrink: 0;
}

.nx-header__brand span {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
}

.nx-nav {
  justify-self: center;
  min-width: 0;
}

.nx-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nx-nav__item {
  position: relative;
}

.nx-nav__link,
.nx-nav__trigger {
  appearance: none;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 9px;
  cursor: pointer;
  transition: color var(--nx-transition-fast), background-color var(--nx-transition-fast);
}

.nx-nav__link,
.nx-nav__link:visited,
.nx-nav__trigger {
  color: #ffffff !important;
}

.nx-nav__link:hover,
.nx-nav__trigger:hover,
.nx-nav__item.is-active > .nx-nav__link,
.nx-nav__item.is-active > .nx-nav__trigger,
.nx-nav__item.is-open > .nx-nav__trigger {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.14);
}

.nx-header__actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.nx-header__contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 170px;
  padding: 0 16px;
  border-radius: 5px;
  background: #2563eb;
  border: 1px solid #2563eb;
  color: #ffffff !important;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: background-color var(--nx-transition-fast), border-color var(--nx-transition-fast), color var(--nx-transition-fast);
}

.nx-header__contact:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff !important;
}

.nx-header__contact:visited,
.nx-header__contact:focus-visible,
.nx-header__contact:active {
  color: #ffffff !important;
}

.nx-header__contact-label {
  position: relative;
  z-index: 1;
  line-height: 1;
}

@keyframes headerCtaRipple {
  0% {
    box-shadow:
      0 0 0 0 rgba(255, 255, 255, 0.1),
      0 0 0 20px rgba(255, 255, 255, 0.1),
      0 0 0 40px rgba(255, 255, 255, 0.1),
      0 0 0 60px rgba(255, 255, 255, 0.1);
  }
  100% {
    box-shadow:
      0 0 0 20px rgba(255, 255, 255, 0.1),
      0 0 0 40px rgba(255, 255, 255, 0.1),
      0 0 0 60px rgba(255, 255, 255, 0.1),
      0 0 0 80px rgba(255, 255, 255, 0);
  }
}

.nx-header__contact .nx-header__contact-ripple {
  width: 0;
  height: 0;
  border-radius: 100%;
  animation: headerCtaRipple 0.6s linear infinite;
  flex-shrink: 0;
  position: relative;
  z-index: 0;
}

.nx-header__icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff !important;
  text-decoration: none;
  transition: background-color var(--nx-transition-fast), border-color var(--nx-transition-fast), color var(--nx-transition-fast);
}

.nx-header__icon:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.34);
  color: #ffffff !important;
}

.nx-header__icon:visited,
.nx-header__icon:focus-visible,
.nx-header__icon:active {
  color: #ffffff !important;
}

.nx-header__icon i {
  color: inherit !important;
}

.nx-mobile-toggle {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: opacity var(--nx-transition-fast), transform var(--nx-transition-fast), color var(--nx-transition-fast);
}

.nx-mobile-toggle:hover {
  opacity: 0.88;
}

.nx-mobile-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.nx-mobile-toggle i {
  font-size: 18px;
}

.nx-mega {
  position: fixed;
  top: var(--nx-mega-top, 88px);
  left: 50%;
  width: var(--nx-panel-width);
  max-height: calc(100vh - var(--nx-mega-top, 88px) - 18px);
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition: opacity var(--nx-transition-fast), transform var(--nx-transition-fast), visibility var(--nx-transition-fast);
  z-index: 120001;
  pointer-events: none;
}

.nx-mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nx-mega__container {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 0 14px 14px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.nx-mega__layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
}

.nx-mega__intro {
  padding: 22px 20px;
  background: linear-gradient(160deg, #0f0f23 0%, #1a1a2e 30%, #0f3460 70%, #533483 100%);
  color: #ffffff;
}

.nx-mega__intro-title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff !important;
}

.nx-mega__intro-text {
  margin: 0 0 14px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

.nx-mega__intro-badges {
  display: grid;
  gap: 7px;
}

.nx-mega__intro-badges span {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.88);
}

.nx-mega__intro-badges span::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #7eb8ff;
  margin-right: 8px;
  flex-shrink: 0;
}

.nx-mega__intro-cta {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  color: #ffffff !important;
  font-size: 0.84rem;
  font-weight: 700;
  text-decoration: none;
}

.nx-mega__intro-cta:visited,
.nx-mega__intro-cta:hover,
.nx-mega__intro-cta:focus-visible {
  color: #ffffff !important;
}

.nx-mega__cards {
  padding: 16px 18px 18px;
  display: grid;
  row-gap: 8px;
  column-gap: 12px;
  align-content: start;
}

.nx-mega__cards--cols-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nx-mega__cards--cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nx-mega-card {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 10px;
  min-height: 72px;
  border-radius: 8px;
  text-decoration: none;
  color: inherit;
  transition: background-color var(--nx-transition-fast);
}

.nx-mega-card:hover {
  background: rgba(37, 99, 235, 0.08);
}

.nx-mega-card__icon {
  width: 30px;
  height: 30px;
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.nx-mega-card__content {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.nx-mega-card__title {
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.3;
}

.nx-mega-card__desc {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.nx-mobile {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(332px, 88vw);
  background: #ffffff;
  color: #2c3550;
  display: flex;
  flex-direction: column;
  max-height: 100vh;
  overflow: hidden;
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 120005;
  border-right: 1px solid #ebeff4;
  box-shadow: 8px 0 40px rgba(15, 20, 40, 0.14);
  font-family: 'Poppins', sans-serif;
}

.nx-mobile.is-open {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.nx-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 20, 35, 0.45);
  border: 0;
  touch-action: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 120004;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.nx-mobile-overlay.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.nx-mobile__header {
  padding: calc(18px + env(safe-area-inset-top, 0px)) 18px 14px;
  border-bottom: 1px solid #f0f2f5;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nx-mobile__brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #1a2340;
  text-decoration: none;
}

.nx-mobile__brand img {
  height: 32px;
  width: auto;
}

.nx-mobile__brand span {
  font-size: 0.93rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nx-mobile__close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid #e7ebf1;
  background: #f4f5f8;
  color: #4a5268;
  cursor: pointer;
  transition: background-color var(--nx-transition-fast), border-color var(--nx-transition-fast), color var(--nx-transition-fast), transform var(--nx-transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nx-mobile__close:hover,
.nx-mobile__close:focus-visible {
  background: #e8eaf0;
  border-color: #d8deea;
  color: #2f3952;
  transform: translateY(-1px);
}

.nx-mobile__nav {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nx-mobile__label {
  margin: 0;
  padding: 8px 8px 4px;
  font-size: 10px;
  font-weight: 600;
  color: #a0a9bc;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nx-mobile__list,
.nx-mobile__submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nx-mobile__list {
  display: grid;
  gap: 4px;
}

.nx-mobile__item {
  display: grid;
  gap: 4px;
}

.nx-mobile__link,
.nx-mobile__section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 11px;
  color: #2c3550;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background-color var(--nx-transition-fast), color var(--nx-transition-fast);
}

.nx-mobile [data-nx-mobile-nav-item] {
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.35s ease, transform 0.35s ease, background-color var(--nx-transition-fast), color var(--nx-transition-fast);
  transition-delay: var(--nx-mobile-item-delay, 0ms);
}

.nx-mobile.is-open [data-nx-mobile-nav-item] {
  opacity: 1;
  transform: translateX(0);
}

.nx-mobile__item-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: #f4f6f9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #5a6580;
  flex-shrink: 0;
  transition: background-color var(--nx-transition-fast), color var(--nx-transition-fast);
}

.nx-mobile__item-title {
  flex: 1;
  min-width: 0;
}

.nx-mobile__item-arrow {
  color: #c4c9d8;
  flex-shrink: 0;
  transition: transform var(--nx-transition-fast), color var(--nx-transition-fast);
}

.nx-mobile__link:hover,
.nx-mobile__link:focus-visible,
.nx-mobile__section-toggle:hover,
.nx-mobile__section-toggle:focus-visible {
  background: #f4f6fb;
  color: #1f2b45;
}

.nx-mobile__link:hover .nx-mobile__item-icon,
.nx-mobile__link:focus-visible .nx-mobile__item-icon,
.nx-mobile__section-toggle:hover .nx-mobile__item-icon,
.nx-mobile__section-toggle:focus-visible .nx-mobile__item-icon {
  background: #e8ecf7;
  color: #3e4b69;
}

.nx-mobile__link.is-active,
.nx-mobile__section-toggle.is-active,
.nx-mobile__section-toggle[aria-expanded="true"] {
  background: #eef2fd;
  color: #3563e9;
  font-weight: 600;
}

.nx-mobile__link.is-active .nx-mobile__item-icon,
.nx-mobile__section-toggle.is-active .nx-mobile__item-icon,
.nx-mobile__section-toggle[aria-expanded="true"] .nx-mobile__item-icon {
  background: #dce6fd;
  color: #3563e9;
}

.nx-mobile__link.is-active .nx-mobile__item-arrow,
.nx-mobile__section-toggle.is-active .nx-mobile__item-arrow,
.nx-mobile__section-toggle[aria-expanded="true"] .nx-mobile__item-arrow {
  color: #3563e9;
}

.nx-mobile__section-toggle[aria-expanded="true"] .nx-mobile__item-arrow {
  transform: rotate(90deg);
}

.nx-mobile__submenu {
  margin: 0 0 2px;
  padding: 2px 0 2px 52px;
  display: grid;
  gap: 2px;
}

.nx-mobile__submenu-link {
  display: block;
  padding: 9px 10px;
  color: #4a5268;
  text-decoration: none;
  border-radius: 9px;
  font-size: 0.81rem;
  font-weight: 500;
  transition: background-color var(--nx-transition-fast), color var(--nx-transition-fast), transform var(--nx-transition-fast);
}

.nx-mobile__submenu-link:hover,
.nx-mobile__submenu-link:focus-visible {
  background: #f4f6fb;
  color: #1f2b45;
  transform: translateX(2px);
}

.nx-mobile__submenu-link.is-active,
.nx-mobile__submenu-link--all {
  color: #3563e9;
  font-weight: 600;
  background: #eef2fd;
}

.nx-mobile__footer {
  padding: 14px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f0f2f5;
  background: #fafbfd;
  display: grid;
  gap: 12px;
}

.nx-mobile__contacts {
  display: grid;
  gap: 6px;
}

.nx-mobile__contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  color: inherit;
  text-decoration: none;
}

.nx-mobile__contact-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f0f3fb;
  color: #3563e9;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nx-mobile__contact-text {
  font-size: 0.78rem;
  font-weight: 500;
  color: #4a5268;
  line-height: 1.35;
}

.nx-mobile__social-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.nx-mobile__social-btn {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: #f0f3fb;
  color: #5a6a8e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: background-color var(--nx-transition-fast), color var(--nx-transition-fast);
}

.nx-mobile__social-btn:hover,
.nx-mobile__social-btn:focus-visible {
  background: #dce6fd;
  color: #3563e9;
}

body.nx-mobile-open {
  overflow: hidden !important;
}

@media (max-width: 991px) {
  .nx-mobile {
    width: min(326px, 90vw);
  }
}

@media (max-width: 1199px) {
  .nx-header {
    --nx-side-space: 10px;
  }

  .nx-header__container {
    grid-template-columns: auto auto;
    gap: 10px;
    padding: 8px 16px;
  }

  .nx-nav,
  .nx-header__actions {
    display: none;
  }

  .nx-mobile-toggle {
    display: inline-flex;
    justify-self: end;
    margin-right: 24px;
  }

  .nx-header__brand {
    margin-left: 24px;
  }

  .nx-header__brand img {
    height: 30px;
  }

  .nx-header__brand span {
    font-size: 0.92rem;
  }
}

@media (max-width: 767px) {
  .nx-mobile {
    width: min(320px, 90vw);
  }

  .nx-mobile__header {
    padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 12px;
  }

  .nx-mobile__nav {
    padding: 10px 12px 12px;
  }

  .nx-mobile__link,
  .nx-mobile__section-toggle {
    padding: 9px;
    font-size: 0.84rem;
  }

  .nx-mobile__item-icon {
    width: 36px;
    height: 36px;
  }

  .nx-mobile__submenu {
    padding-left: 48px;
  }

  .nx-mobile__footer {
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .nx-mobile__social-btn {
    width: 34px;
    height: 34px;
  }

  .nx-header__container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nx-header__brand {
    margin-left: 16px;
  }

  .nx-mobile-toggle {
    margin-right: 16px;
  }
}

@media (max-width: 575px) {
  .nx-header {
    --nx-side-space: 8px;
  }

  .nx-mobile {
    width: min(312px, 92vw);
  }

  .nx-mobile__header {
    padding: calc(12px + env(safe-area-inset-top, 0px)) 14px 10px;
  }

  .nx-mobile__nav {
    padding: 8px 10px 10px;
  }

  .nx-mobile__link,
  .nx-mobile__section-toggle {
    padding: 8px;
    border-radius: 10px;
  }

  .nx-mobile__item-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .nx-mobile__item-arrow {
    width: 12px;
    height: 12px;
  }

  .nx-mobile__submenu {
    padding-left: 44px;
  }

  .nx-mobile__submenu-link {
    font-size: 0.78rem;
    padding: 8px 9px;
  }

  .nx-mobile__footer {
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom, 0px));
  }

  .nx-mobile__contact-text {
    font-size: 0.74rem;
  }

  .nx-mobile__social-row {
    gap: 8px;
  }

  .nx-header__container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .nx-header__brand {
    margin-left: 12px;
  }

  .nx-mobile-toggle {
    margin-right: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nx-header *,
  .nx-header *::before,
  .nx-header *::after {
    transition: none !important;
  }
}

body:not(.page-home) .nx-header__bar {
  margin-top: 0 !important;
}
