:root {
  --nx-bg: #f7f9f8;
  --nx-panel: #ffffff;
  --nx-ink: #122018;
  --nx-muted: #5b6d61;
  --nx-accent: #2d8f50;
  --nx-accent-2: #236f3e;
  --nx-border: #d9e4dd;
  --nx-shadow: 0 22px 48px rgba(14, 31, 22, 0.13);
}

.nx-header {
  position: relative;
  z-index: 120;
  background: linear-gradient(180deg, #f7faf8 0%, #f2f7f4 100%);
  border-bottom: 1px solid var(--nx-border);
}

.nx-header-inner {
  max-width: 1060px;
  margin: 0 auto;
  padding: 0 22px;
}

.nx-topbar {
  border-bottom: 1px solid #e8efeb;
  background: #eef4f0;
}

.nx-topbar-inner {
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.nx-topbar-left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.nx-topbar-note {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #3a4f41;
  white-space: nowrap;
}

.nx-mobile-quick-actions {
  display: none;
  align-items: center;
  gap: 8px;
}

.nx-mobile-quick-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid #cddccf;
  background: #f7fbf8;
  color: #1c3b2b;
  padding: 0 10px;
}

.nx-mobile-quick-action:hover,
.nx-mobile-quick-action:focus-visible {
  background: #edf5ef;
  color: #173225;
}

.nx-mobile-quick-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
}

.nx-mobile-quick-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.nx-mobile-quick-phone {
  gap: 6px;
  padding-right: 11px;
}

.nx-mobile-quick-number {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.nx-topbar-nav ul,
.nx-lang-switcher {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nx-topbar-nav a {
  color: var(--nx-muted);
  font-size: 12px;
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 999px;
}

.nx-topbar-nav a:hover,
.nx-topbar-nav a:focus-visible {
  color: var(--nx-ink);
  background: #e1ebe5;
}

.nx-lang-item a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid #d4e1d9;
  background: #f8fcf9;
  font-size: 11px;
  font-weight: 700;
  color: #345343;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.nx-lang-item.is-active a,
.nx-lang-item a:hover,
.nx-lang-item a:focus-visible {
  background: #1f7c43;
  border-color: #1f7c43;
  color: #fff;
}

.nx-mainbar {
  position: relative;
  background:
    radial-gradient(120% 180% at 0% 0%, rgba(127, 163, 86, 0.2) 0%, rgba(127, 163, 86, 0) 48%),
    linear-gradient(180deg, #f7fbf8 0%, #eef5f0 100%);
  border-top: 1px solid #e6efe8;
  border-bottom: 1px solid #dbe7df;
}

.nx-mainbar-inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: minmax(160px, auto) 1fr auto;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.nx-header-logo a {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px 6px 2px;
  border-radius: 14px;
  transition: background 0.22s ease;
}

.nx-header-logo a:hover,
.nx-header-logo a:focus-visible {
  background: rgba(242, 248, 244, 0.9);
}

.nx-header-logo img,
.nx-header-logo .custom-logo {
  max-height: 58px;
  width: auto;
}

.nx-logo-text {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: #1f3a2b;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.65);
}

.nx-mainnav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid #dbe7df;
  border-radius: 999px;
  padding: 4px 6px;
  box-shadow: 0 10px 26px rgba(16, 35, 24, 0.08);
  backdrop-filter: blur(6px);
}

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

.nx-mainnav-item {
  position: relative;
}

.nx-mainnav-link {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 7px 12px;
  color: #254434;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.015em;
  border-radius: 999px;
  transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.nx-mainnav-link:hover,
.nx-mainnav-link:focus-visible,
.nx-mainnav-item:hover > .nx-mainnav-link {
  background: #e9f3ec;
  color: #132f22;
  box-shadow: inset 0 0 0 1px #d6e8dc;
}

.nx-submenu-shell {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  min-width: 220px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #d8e6de;
  box-shadow: 0 18px 36px rgba(9, 24, 16, 0.15);
  padding: 8px;
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.nx-mainnav-item:hover > .nx-submenu-shell,
.nx-mainnav-item:focus-within > .nx-submenu-shell {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nx-submenu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nx-submenu-list a {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  text-decoration: none;
  color: #2e4638;
  font-size: 12px;
  font-weight: 600;
}

.nx-submenu-list a:hover,
.nx-submenu-list a:focus-visible {
  background: #edf5ef;
  color: #132d20;
}

.nx-megamenu {
  position: absolute;
  left: 0;
  top: calc(100% + 12px);
  width: min(880px, 92vw);
  background: #fff;
  border: 1px solid #d9e7df;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 24px 48px rgba(12, 31, 21, 0.16);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.26s ease, transform 0.26s ease;
}

.nx-megamenu-col {
  border: 1px solid #e2ede6;
  border-radius: 10px;
  padding: 10px 10px 9px;
  background: linear-gradient(180deg, #fcfefd 0%, #f4f9f6 100%);
}

.nx-megamenu-col h3 {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.02em;
}

.nx-megamenu-col h3 a {
  color: #112d1f;
  text-decoration: none;
}

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

.nx-megamenu-col li + li {
  margin-top: 2px;
}

.nx-megamenu-col a {
  color: #41604f;
  font-size: 12px;
  text-decoration: none;
  line-height: 1.35;
}

.nx-megamenu-col a:hover,
.nx-megamenu-col a:focus-visible {
  color: #1f7b43;
}

.nx-megamenu-item:hover .nx-megamenu,
.nx-megamenu-item:focus-within .nx-megamenu,
.nx-megamenu-item.is-open .nx-megamenu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nx-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #d8e4dc;
  box-shadow: 0 8px 20px rgba(20, 45, 31, 0.09);
  backdrop-filter: blur(4px);
}

.nx-action-phone {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid #d5e3da;
  background: #ffffff;
  color: #173628;
  padding: 7px 14px 8px;
  min-width: 152px;
  line-height: 1.15;
}

.nx-action-kicker {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #5d7a69;
}

.nx-action-phone strong {
  font-size: 15px;
  letter-spacing: 0.01em;
}

.nx-action-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #6f8737 0%, #4d6b22 100%);
  color: #fff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid rgba(71, 98, 30, 0.55);
  box-shadow: 0 10px 18px rgba(47, 70, 20, 0.28);
}

.nx-action-cta:hover,
.nx-action-cta:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.nx-mobile-toggle {
  display: none;
  border: 1px solid #cadbcf;
  background: #fff;
  border-radius: 999px;
  min-height: 40px;
  padding: 0 12px 0 10px;
  align-items: center;
  gap: 8px;
}

.nx-mobile-toggle-anchor {
  display: none;
}

.nx-mobile-toggle-lines {
  width: 20px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
}

.nx-mobile-toggle-lines span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 999px;
  background: #244132;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

.nx-mobile-toggle[aria-expanded="true"] .nx-mobile-toggle-lines span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nx-mobile-toggle[aria-expanded="true"] .nx-mobile-toggle-lines span:nth-child(2) {
  opacity: 0;
}

.nx-mobile-toggle[aria-expanded="true"] .nx-mobile-toggle-lines span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.nx-mobile-toggle-fixed {
  position: fixed !important;
  z-index: 170;
}

.nx-mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(8, 20, 14, 0.56);
}

.nx-mobile-panel {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: min(92vw, 380px);
  z-index: 150;
  background: #f9fcfa;
  border-right: 1px solid #d4e3da;
  transform: translateX(-100%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.28s ease;
  display: flex;
  flex-direction: column;
}

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

.nx-mobile-panel-head {
  padding: 18px 18px 10px;
  border-bottom: 1px solid #dbe8e0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nx-mobile-panel-head p {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #173426;
}

.nx-mobile-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid #cfe0d5;
  border-radius: 999px;
  background: #f5faf7;
  color: #1b3a2b;
  font-size: 24px;
  line-height: 1;
  padding: 0;
}

.nx-mobile-close:hover,
.nx-mobile-close:focus-visible {
  background: #eaf4ee;
  color: #132d20;
}

.nx-mobile-panel-body {
  overflow-y: auto;
  padding: 12px 18px 20px;
}

.nx-mobile-group + .nx-mobile-group {
  margin-top: 16px;
}

.nx-mobile-group h3 {
  margin: 0 0 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #527162;
}

.nx-mobile-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nx-mobile-item {
  position: relative;
  border-top: 1px solid #e2ece6;
}

.nx-mobile-link {
  display: block;
  text-decoration: none;
  color: #163023;
  font-weight: 700;
  padding: 13px 40px 13px 0;
}

.nx-mobile-item > .nx-mobile-list {
  display: none;
  padding-left: 14px;
}

.nx-mobile-item.is-open > .nx-mobile-list {
  display: block;
}

.nx-mobile-item > .nx-mobile-list .nx-mobile-link {
  font-weight: 600;
  color: #395645;
  padding-top: 9px;
  padding-bottom: 9px;
}

.nx-mobile-subtoggle {
  position: absolute;
  right: 0;
  top: 8px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: #e8f1eb;
}

.nx-mobile-subtoggle::before,
.nx-mobile-subtoggle::after {
  content: "";
  position: absolute;
  background: #244a35;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  transform: translate(-50%, -50%);
}

.nx-mobile-subtoggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
  transition: transform 0.24s ease;
}

.nx-mobile-subtoggle[aria-expanded="true"]::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.nx-header-hero img {
  width: 100%;
  height: auto;
  display: block;
}

.nx-scroll-lock {
  overflow: hidden;
}

.nx-header :focus-visible {
  outline: 2px solid #1b7f43;
  outline-offset: 2px;
}

@media (max-width: 1279px) {
  .nx-mainbar-inner {
    grid-template-columns: minmax(140px, auto) 1fr auto;
    min-height: 88px;
  }

  .nx-mainnav {
    justify-content: flex-start;
    max-width: 100%;
    overflow: hidden;
  }

  .nx-header-actions {
    margin-left: auto;
  }

  .nx-action-phone {
    display: none;
  }
}

@media (max-width: 1024px) {
  .nx-topbar-note {
    display: none;
  }

  .nx-mainbar-inner {
    min-height: 78px;
    grid-template-columns: minmax(140px, 1fr) auto;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nx-mainnav,
  .nx-action-cta {
    display: none;
  }

  .nx-header-actions {
    border-radius: 999px;
    padding: 2px;
    box-shadow: none;
    border-color: #d6e3dc;
  }

  .nx-mobile-toggle {
    display: inline-flex;
  }

  .nx-topbar-left {
    position: relative;
    padding-left: 52px;
  }

  .nx-mobile-quick-actions {
    display: inline-flex;
  }

  .nx-topbar-left .nx-mobile-toggle-anchor {
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
  }

  .nx-topbar-left .nx-mobile-toggle {
    display: inline-flex;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid #cddccf;
    background: #f7fbf8;
    color: #1c3b2b;
    box-shadow: none;
  }

  .nx-topbar-left .nx-mobile-toggle:hover,
  .nx-topbar-left .nx-mobile-toggle:focus-visible {
    background: #edf5ef;
    color: #173225;
  }

  .nx-topbar-left .nx-mobile-toggle .nx-mobile-toggle-lines span {
    background: currentColor;
  }
}

@media (max-width: 768px) {
  .nx-header-inner {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nx-topbar-inner {
    min-height: 42px;
  }

  .nx-topbar-nav {
    display: none;
  }

  .nx-header-hero img {
    height: 160px;
    object-fit: cover;
    object-position: left center;
  }
}

@media (max-width: 414px) {
  .nx-mainbar-inner {
    gap: 10px;
  }

  .nx-mobile-toggle-text {
    display: none;
  }

  .nx-mobile-quick-number {
    display: none;
  }

  .nx-mobile-quick-phone,
  .nx-mobile-quick-email {
    width: 32px;
    min-height: 32px;
    padding: 0;
  }
}
