:root {
  --nm-hero-bg: #fbfdf7;
  --nm-hero-paper: #ffffff;
  --nm-hero-mist: #eef8f1;
  --nm-hero-pine: #12342c;
  --nm-hero-ink: #17372e;
  --nm-hero-green: #0f7a58;
  --nm-hero-teal: #0f8f83;
  --nm-hero-muted: rgba(23, 55, 46, 0.68);
  --nm-hero-line: rgba(18, 52, 44, 0.10);
  --nm-hero-amber: #d88b18;
  --nm-hero-amber-top: #efbd5a;
  --nm-hero-amber-text: #231300;
  --nm-hero-shadow-soft: 0 18px 45px rgba(18, 52, 44, 0.10);
  --nm-hero-shadow-card: 0 22px 54px rgba(18, 52, 44, 0.14);
}

main {
  background: var(--nm-hero-bg);
}

.nm-hero {
  position: relative;
  padding: clamp(34px, 4.4vw, 52px) 0 clamp(30px, 4vw, 46px);
  overflow: hidden;
  isolation: isolate;
  color: var(--nm-hero-ink);
}

.nm-hero--brand-depth {
  background:
    radial-gradient(circle at 77% 24%, rgba(15, 143, 131, 0.13), transparent 27%),
    radial-gradient(circle at 86% 76%, rgba(216, 139, 24, 0.08), transparent 22%),
    linear-gradient(127deg, #fbfdf7 0%, #f6fbf5 47%, #edf7f1 100%);
}

.nm-hero::before {
  content: "";
  position: absolute;
  inset: 18px -8% 24px 57%;
  z-index: -3;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 34px 0 0 34px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24)),
    radial-gradient(circle at 28% 34%, rgba(15, 122, 88, 0.08), transparent 42%);
  transform: skewX(-4deg);
}

.nm-hero__route {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("../assets/images/hero-bg-route.svg");
  background-position: 52% 12%;
  background-size: cover;
  opacity: 0.105;
  pointer-events: none;
}

.nm-hero__inner {
  width: min(1160px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(370px, 0.96fr) minmax(420px, 1.04fr);
  align-items: center;
  gap: clamp(28px, 3.4vw, 44px);
}

.nm-hero__copy {
  max-width: 555px;
}

.nm-hero__eyebrow {
  position: relative;
  width: fit-content;
  margin: 0 0 10px;
  padding-left: 17px;
  color: var(--nm-hero-green);
  font-size: 10.8px;
  font-weight: 600;
  letter-spacing: 0.075em;
  line-height: 1.2;
  text-transform: uppercase;
}

.nm-hero__eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--nm-hero-green);
  box-shadow: 0 0 0 5px rgba(15, 122, 88, 0.10);
  transform: translateY(-50%);
}

.nm-hero h1 {
  max-width: 25ch;
  margin: 0;
  color: var(--nm-hero-pine);
  font-size: clamp(30px, 2.55vw, 41px);
  font-weight: 620;
  letter-spacing: -0.018em;
  line-height: 1.12;
  text-wrap: balance;
}

.nm-hero h1 span {
  color: var(--nm-hero-green);
  font-weight: 650;
  white-space: nowrap;
}

.nm-hero__lead {
  max-width: 55ch;
  margin: 11px 0 0;
  color: var(--nm-hero-muted);
  font-size: clamp(14.2px, 0.96vw, 15.4px);
  font-weight: 420;
  line-height: 1.48;
  text-wrap: pretty;
}

.nm-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.nm-hero__btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 13.6px;
  font-weight: 620;
  letter-spacing: 0.006em;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

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

.nm-hero__btn img {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.nm-hero__btn--call {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(180deg, var(--nm-hero-amber-top), var(--nm-hero-amber));
  color: var(--nm-hero-amber-text);
  box-shadow: 0 13px 27px rgba(216, 139, 24, 0.22);
}

.nm-hero__btn--call:hover,
.nm-hero__btn--call:focus-visible {
  box-shadow: 0 17px 32px rgba(216, 139, 24, 0.28);
}

.nm-hero__btn--zalo {
  border-color: rgba(15, 122, 88, 0.20);
  background: rgba(255, 255, 255, 0.84);
  color: var(--nm-hero-green);
  box-shadow: 0 10px 24px rgba(18, 52, 44, 0.06);
}

.nm-hero__btn--zalo:hover,
.nm-hero__btn--zalo:focus-visible {
  border-color: rgba(15, 122, 88, 0.34);
  background: #ffffff;
  box-shadow: 0 12px 28px rgba(18, 52, 44, 0.09);
}

.nm-hero__trust-strip {
  width: min(548px, 100%);
  margin: 16px 0 0;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.66);
  box-shadow: 0 13px 32px rgba(18, 52, 44, 0.065);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  list-style: none;
}

.nm-hero__trust-strip li {
  position: relative;
  min-width: 0;
  padding: 6px 8px;
  display: grid;
  gap: 2px;
  text-align: center;
}

.nm-hero__trust-strip li + li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  bottom: 9px;
  width: 1px;
  background: rgba(18, 52, 44, 0.09);
}

.nm-hero__trust-strip strong {
  color: var(--nm-hero-pine);
  font-size: 12.4px;
  font-weight: 620;
  letter-spacing: -0.006em;
  line-height: 1.1;
  white-space: nowrap;
}

.nm-hero__trust-strip span {
  color: rgba(23, 55, 46, 0.57);
  font-size: 10.8px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
}

.nm-hero__visual {
  position: relative;
  min-width: 0;
  min-height: 350px;
  display: grid;
  align-items: center;
}

.nm-hero__visual::before {
  content: "";
  position: absolute;
  right: 8%;
  bottom: 12%;
  z-index: -1;
  width: 66%;
  height: 12%;
  border-radius: 999px;
  background: rgba(18, 52, 44, 0.17);
  filter: blur(24px);
  opacity: 0.33;
}

.nm-hero__visual-card {
  position: absolute;
  inset: 22px 7px 22px 44px;
  z-index: -1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 30px 30px 54px 30px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.76), rgba(234, 247, 240, 0.58)),
    radial-gradient(circle at 72% 22%, rgba(15, 143, 131, 0.15), transparent 35%),
    radial-gradient(circle at 20% 84%, rgba(216, 139, 24, 0.075), transparent 28%);
  box-shadow: var(--nm-hero-shadow-soft);
  transform: rotate(-1.4deg) skewX(-2deg);
}

.nm-hero__visual-card::before {
  content: "";
  position: absolute;
  inset: -14% -8%;
  background-image: url("../assets/images/hero-bg-route.svg");
  background-position: center;
  background-size: cover;
  opacity: 0.18;
  transform: rotate(1.8deg);
}

.nm-hero__visual-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(15, 122, 88, 0.08);
  border-radius: 24px 24px 46px 24px;
}

.nm-hero__route-line {
  position: absolute;
  left: 20%;
  top: 28%;
  width: 58%;
  height: 38%;
  border-top: 1.5px solid rgba(15, 122, 88, 0.22);
  border-right: 1.5px solid rgba(15, 122, 88, 0.22);
  border-radius: 0 120px 0 0;
  transform: rotate(-10deg);
}

.nm-hero__pin {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: var(--nm-hero-green);
  box-shadow: 0 0 0 6px rgba(15, 122, 88, 0.11);
}

.nm-hero__pin--start {
  left: 18%;
  top: 56%;
}

.nm-hero__pin--end {
  right: 20%;
  top: 29%;
  background: var(--nm-hero-amber);
  box-shadow: 0 0 0 6px rgba(216, 139, 24, 0.12);
}

.nm-hero__image-shell {
  position: relative;
  z-index: 2;
  width: min(520px, 100%);
  margin: 28px 0 0 auto;
  overflow: visible;
}

.nm-hero__image-shell::after {
  content: "";
  position: absolute;
  left: 16%;
  right: 8%;
  bottom: 8%;
  z-index: -1;
  height: 8%;
  border-radius: 999px;
  background: rgba(18, 52, 44, 0.16);
  filter: blur(16px);
  opacity: 0.58;
  pointer-events: none;
}

.nm-hero__image-shell img {
  display: block;
  width: 100%;
  max-height: 308px;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 18px 26px rgba(18, 52, 44, 0.15));
}

.nm-hero__quote-card {
  position: absolute;
  left: clamp(6px, 1.4vw, 18px);
  bottom: clamp(0px, 1.7vw, 18px);
  z-index: 3;
  width: min(258px, calc(100% - 26px));
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--nm-hero-pine);
  box-shadow: var(--nm-hero-shadow-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nm-hero__quote-card::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--nm-hero-green);
  box-shadow: 0 0 0 5px rgba(15, 122, 88, 0.10);
}

.nm-hero__quote-card span {
  display: block;
  margin: 0 0 4px 16px;
  color: var(--nm-hero-green);
  font-size: 9.7px;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.1;
  text-transform: uppercase;
}

.nm-hero__quote-card strong {
  display: block;
  font-size: 12.2px;
  font-weight: 520;
  line-height: 1.36;
}

@media (min-width: 1500px) {
  .nm-hero__inner {
    width: min(1180px, calc(100% - 72px));
  }

  .nm-hero__image-shell {
    width: min(545px, 100%);
  }
}

@media (max-width: 1180px) {
  .nm-hero {
    padding: 32px 0 38px;
  }

  .nm-hero__inner {
    width: calc(100% - 34px);
    grid-template-columns: minmax(342px, 0.98fr) minmax(390px, 1.02fr);
    gap: 26px;
  }

  .nm-hero h1 {
    font-size: clamp(29px, 3vw, 37px);
  }

  .nm-hero__visual {
    min-height: 320px;
  }

  .nm-hero__image-shell {
    width: min(492px, 100%);
  }

  .nm-hero__image-shell img {
    max-height: 286px;
  }
}

@media (max-width: 960px) {
  .nm-hero {
    padding: 24px 0 28px;
  }

  .nm-hero::before {
    inset: 42% -24% 7% 12%;
    border-radius: 28px;
    transform: skewX(-3deg);
  }

  .nm-hero__inner {
    width: calc(100% - 26px);
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .nm-hero__copy {
    max-width: 720px;
  }

  .nm-hero h1 {
    max-width: 24ch;
    font-size: clamp(27px, 5.4vw, 35px);
    line-height: 1.1;
  }

  .nm-hero__lead {
    max-width: 62ch;
    margin-top: 8px;
    font-size: 14.2px;
    line-height: 1.44;
  }

  .nm-hero__actions {
    margin-top: 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
  }

  .nm-hero__btn {
    width: 100%;
    min-height: 43px;
    padding: 0 12px;
    font-size: 13.1px;
  }

  .nm-hero__trust-strip {
    width: 100%;
    margin-top: 12px;
  }

  .nm-hero__visual {
    min-height: 230px;
  }

  .nm-hero__visual-card {
    inset: 15px 5% 10px 6%;
    border-radius: 24px 24px 38px 24px;
  }

  .nm-hero__image-shell {
    width: min(430px, 100%);
    margin: 12px auto 0;
  }

  .nm-hero__image-shell img {
    max-height: 205px;
  }

  .nm-hero__quote-card {
    right: 8px;
    left: auto;
    bottom: 5px;
    width: min(260px, calc(100% - 18px));
    padding: 10px 11px;
  }
}

@media (max-width: 640px) {
  .nm-hero {
    padding: 12px 0 14px;
  }

  .nm-hero__inner {
    width: calc(100% - 22px);
    gap: 8px;
  }

  .nm-hero__eyebrow {
    margin-bottom: 7px;
    padding-left: 14px;
    font-size: 9.4px;
    letter-spacing: 0.062em;
  }

  .nm-hero__eyebrow::before {
    width: 7px;
    height: 7px;
    box-shadow: 0 0 0 4px rgba(15, 122, 88, 0.10);
  }

  .nm-hero h1 {
    max-width: 22ch;
    font-size: clamp(24px, 6.6vw, 29px);
    letter-spacing: -0.016em;
    line-height: 1.12;
  }

  .nm-hero__lead {
    margin-top: 7px;
    font-size: 13.35px;
    line-height: 1.4;
  }

  .nm-hero__actions {
    margin-top: 10px;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .nm-hero__btn {
    min-height: 42px;
    gap: 6px;
    padding: 0 12px;
    border-radius: 11px;
    font-size: 12.8px;
  }

  .nm-hero__trust-strip {
    margin-top: 9px;
    padding: 5px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    overflow: visible;
    border-radius: 15px;
  }

  .nm-hero__trust-strip li {
    min-width: 0;
    padding: 6px 8px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.58);
  }

  .nm-hero__trust-strip li + li::before {
    display: none;
  }

  .nm-hero__trust-strip strong {
    font-size: 11.8px;
  }

  .nm-hero__trust-strip span {
    font-size: 10.2px;
  }

  .nm-hero__visual {
    min-height: 238px;
    margin-inline: -6px;
  }

  .nm-hero__visual-card {
    inset: 16px 0 5px 0;
    border-radius: 22px 22px 34px 22px;
    transform: rotate(-1deg) skewX(-1.5deg);
  }

  .nm-hero__route-line,
  .nm-hero__pin {
    display: none;
  }

  .nm-hero__image-shell {
    width: min(405px, 112vw);
    margin-top: 0;
  }

  .nm-hero__image-shell img {
    height: auto;
    max-height: none;
    aspect-ratio: auto;
  }

  .nm-hero__quote-card {
    display: none;
  }
}

@media (max-width: 390px) {
  .nm-hero__inner {
    width: calc(100% - 18px);
  }

  .nm-hero h1 {
    font-size: 23px;
  }

  .nm-hero__lead {
    font-size: 12.9px;
  }

  .nm-hero__btn {
    font-size: 12.2px;
  }

  .nm-hero__image-shell {
    width: min(374px, 112vw);
  }
}

@media (max-width: 340px) {
  .nm-hero__trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nm-hero__image-shell {
    width: min(330px, 112vw);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .nm-hero__copy,
  .nm-hero__visual {
    animation: nmHeroReveal 500ms ease both;
  }

  .nm-hero__visual {
    animation-delay: 70ms;
  }

  @keyframes nmHeroReveal {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .nm-hero__btn {
    transition: none;
  }

  .nm-hero__btn:hover,
  .nm-hero__btn:focus-visible {
    transform: none;
  }
}
