:root {
  --nm-green: #0f7a58;
  --nm-green-soft: rgba(15, 122, 88, 0.075);
  --nm-pine: #12342c;
  --nm-ink: #17372e;
  --nm-muted: rgba(23, 55, 46, 0.66);
  --nm-line: rgba(18, 52, 44, 0.11);
  --nm-surface: rgba(250, 253, 249, 0.94);
  --nm-white: #ffffff;
  --nm-amber: #d58a1a;
  --nm-amber-top: #e9ad45;
  --nm-amber-text: #241300;
  --nm-shadow: 0 18px 42px rgba(18, 52, 44, 0.12);
  --nm-radius-sm: 12px;
  --nm-radius-md: 18px;
  --nm-font: "Be Vietnam Pro", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f7faf5;
  color: var(--nm-ink);
  font-family: var(--nm-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}

.nm-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background: var(--nm-surface);
  border-bottom: 1px solid var(--nm-line);
  color: var(--nm-ink);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.nm-header.is-scrolled {
  background: rgba(255, 255, 255, 0.985);
  border-bottom-color: rgba(18, 52, 44, 0.14);
  box-shadow: var(--nm-shadow);
}

.nm-header__inner {
  width: min(1180px, calc(100% - 34px));
  min-height: 80px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
}

.nm-header__brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
}

.nm-header__logo {
  display: block;
  width: clamp(212px, 23vw, 286px);
  height: auto;
}

.nm-header__nav {
  width: fit-content;
  min-width: 0;
  margin-inline: auto;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid rgba(15, 122, 88, 0.10);
  border-radius: 999px;
  background: var(--nm-green-soft);
}

.nm-header__nav a {
  position: relative;
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--nm-muted);
  font-size: 13.5px;
  font-weight: 520;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.nm-header__nav a:hover,
.nm-header__nav a:focus-visible {
  background: var(--nm-white);
  color: var(--nm-green);
  box-shadow: 0 8px 18px rgba(18, 52, 44, 0.08);
  outline: none;
}

.nm-header__actions {
  min-width: 0;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  border: 1px solid rgba(18, 52, 44, 0.10);
  border-radius: var(--nm-radius-md);
  background: rgba(255, 255, 255, 0.76);
}

.nm-header__hotline {
  min-height: 42px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  color: var(--nm-pine);
  white-space: nowrap;
  transition: background-color 160ms ease;
}

.nm-header__hotline:hover,
.nm-header__hotline:focus-visible {
  background: rgba(15, 122, 88, 0.06);
  outline: none;
}

.nm-header__phone-icon {
  display: inline-grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(15, 122, 88, 0.10);
  color: var(--nm-green);
}

.nm-header__phone-icon svg,
.nm-mobile-call svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.nm-header__hotline-text {
  display: grid;
  gap: 1px;
  line-height: 1.05;
}

.nm-header__hotline-label {
  color: rgba(23, 55, 46, 0.54);
  font-size: 10.5px;
  font-weight: 560;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.nm-header__hotline-number {
  font-size: 13.5px;
  font-weight: 560;
  letter-spacing: 0.01em;
}

.nm-btn {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: var(--nm-radius-sm);
  font-size: 13.5px;
  font-weight: 620;
  letter-spacing: 0.012em;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.nm-btn:hover,
.nm-btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.nm-btn--primary {
  background: linear-gradient(180deg, var(--nm-amber-top), var(--nm-amber));
  color: var(--nm-amber-text);
  box-shadow: 0 11px 24px rgba(213, 138, 26, 0.20);
}

.nm-btn--primary:hover,
.nm-btn--primary:focus-visible {
  box-shadow: 0 14px 28px rgba(213, 138, 26, 0.26);
}

.nm-btn--secondary {
  border-color: rgba(15, 122, 88, 0.16);
  background: var(--nm-white);
  color: var(--nm-green);
}

.nm-btn--secondary:hover,
.nm-btn--secondary:focus-visible {
  border-color: rgba(15, 122, 88, 0.26);
  background: rgba(15, 122, 88, 0.075);
}

.nm-btn--wide {
  width: 100%;
  min-height: 46px;
}

.nm-header__mobile-actions {
  display: none;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.nm-mobile-call {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--nm-amber-top), var(--nm-amber));
  color: var(--nm-amber-text);
  font-size: 13.5px;
  font-weight: 620;
  letter-spacing: 0.012em;
  box-shadow: 0 10px 22px rgba(213, 138, 26, 0.20);
}

.nm-menu-toggle {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(18, 52, 44, 0.13);
  border-radius: 999px;
  background: var(--nm-white);
  color: var(--nm-pine);
  cursor: pointer;
}

.nm-menu-toggle span {
  display: block;
  width: 17px;
  height: 1.5px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nm-menu-toggle span + span {
  margin-top: -11px;
}

.nm-menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

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

.nm-menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nm-mobile-menu {
  width: min(100% - 24px, 430px);
  margin: 0 auto 12px;
  padding: 10px;
  border: 1px solid rgba(18, 52, 44, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.985);
  box-shadow: var(--nm-shadow);
}

.nm-mobile-menu[hidden] {
  display: none;
}

.nm-mobile-menu__nav {
  display: grid;
  gap: 3px;
}

.nm-mobile-menu__nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  padding: 0 13px;
  border-radius: 13px;
  color: rgba(23, 55, 46, 0.74);
  font-size: 14px;
  font-weight: 540;
}

.nm-mobile-menu__nav a:hover,
.nm-mobile-menu__nav a:focus-visible {
  background: rgba(15, 122, 88, 0.07);
  color: var(--nm-pine);
  outline: none;
}

.nm-mobile-menu__cta {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(18, 52, 44, 0.10);
}

@media (max-width: 1120px) {
  .nm-header__inner {
    width: calc(100% - 24px);
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
  }

  .nm-header__logo {
    width: clamp(186px, 48vw, 226px);
  }

  .nm-header__nav,
  .nm-header__actions {
    display: none;
  }

  .nm-header__mobile-actions {
    display: flex;
  }
}

@media (max-width: 420px) {
  .nm-header__inner {
    width: calc(100% - 20px);
  }

  .nm-header__logo {
    width: clamp(172px, 50vw, 206px);
  }

  .nm-mobile-call {
    min-height: 40px;
    padding: 0 11px;
  }

  .nm-mobile-call span {
    font-size: 13px;
  }

  .nm-menu-toggle {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
