/* ==========================================================================
   home.css — trang chủ mới NANOEN (app/home/view.php)
   ========================================================================== */
:root {
  --g: #138a3e;          /* xanh lá chủ đạo */
  --g-dark: #0b5e2b;
  --g-deep: #0a4a24;
  --g-tint: #f2f8f3;
  --g-soft: #e3f1e6;
  --o: #f26a1f;          /* cam CTA */
  --o-dark: #d9560f;
  --ink: #1b2a22;
  --muted: #5d6b63;
  --line: #e2e9e4;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(16, 60, 34, .08);
  --fx-primary: var(--g); --fx-primary-2: #22b35a;   /* màu cho effects.css */
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 120px; }
body.nano-home {
  margin: 0; font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: #fff; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
body.nh-lock { overflow: hidden; }
.nano-home img { max-width: 100%; display: block; }
.nano-home a { color: inherit; text-decoration: none; }
.nano-home h1, .nano-home h2, .nano-home h3 { margin: 0; line-height: 1.25; }
.nano-home p { margin: 0; }
.nh-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }
.is-green { color: var(--g); }

/* ---------- Nút ---------- */
.nh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 22px; border-radius: 10px; border: 2px solid transparent;
  font-family: inherit; font-weight: 700; font-size: 14px; line-height: 1.2; letter-spacing: .2px; cursor: pointer; position: relative; overflow: hidden;
  transition: transform .25s, box-shadow .25s, background-color .25s, color .25s;
}
.nh-btn:hover { transform: translateY(-2px); }
.nh-btn--orange { background: linear-gradient(180deg, #ff7a2e, var(--o)); color: #fff !important; box-shadow: 0 8px 20px rgba(242, 106, 31, .35); }
.nh-btn--orange:hover { box-shadow: 0 12px 26px rgba(242, 106, 31, .45); }
.nh-btn--outline { background: #fff; color: var(--g-dark) !important; border-color: var(--g); }
.nh-btn--outline:hover { background: var(--g-tint); }
.nh-btn--ghost { color: var(--g-dark) !important; border-color: var(--g); padding: 8px 18px; border-radius: 999px; font-size: 13px; }
.nh-btn--ghost:hover { background: var(--g); color: #fff !important; }
.nh-btn--lg { padding: 14px 26px; font-size: 15px; }
.nh-btn--block { width: 100%; }
.nh-btn__stack { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.nh-btn__stack small { font-size: 11px; font-weight: 600; letter-spacing: .5px; }
.nh-btn__stack b { font-size: 18px; }
/* vệt sáng quét qua nút (keyframe fx-shine trong effects.css) */
.nh-btn::before {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-20deg);
}
.nh-btn:hover::before { animation: fx-shine .8s ease; }
.nh-link { display: inline-flex; align-items: center; gap: 6px; color: var(--g) !important; font-weight: 600; font-size: 13.5px; }
.nh-link .ico { transition: transform .25s; }
.nh-link:hover .ico { transform: translateX(4px); }

/* ---------- Header ---------- */
.nh-header { position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); transition: box-shadow .3s; }
.nh-header.is-scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.08); }
.nh-header__inner { display: flex; align-items: center; gap: 28px; height: 74px; }
.nh-logo img { height: 52px; width: auto; }
.nh-nav { margin-right: auto; }
.nh-nav > ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nh-nav li { position: relative; }
.nh-nav > ul > li > a {
  display: flex; align-items: center; gap: 3px; padding: 26px 12px; font-size: 14px; font-weight: 500; color: var(--ink);
  position: relative; transition: color .2s;
}
.nh-nav > ul > li > a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 18px; height: 2px; background: var(--g);
  transform: scaleX(0); transition: transform .3s;
}
.nh-nav > ul > li:hover > a, .nh-nav > ul > li.is-active > a { color: var(--g); }
.nh-nav > ul > li:hover > a::after, .nh-nav > ul > li.is-active > a::after { transform: scaleX(1); }
.ico-chev { width: 14px; height: 14px; transition: transform .25s; }
.nh-sub {
  position: absolute; top: 100%; left: 0; min-width: 250px; list-style: none; margin: 0; padding: 8px;
  background: #fff; border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: .25s;
}
.nh-sub a { display: block; padding: 9px 12px; border-radius: 7px; font-size: 14px; }
.nh-sub a:hover { background: var(--g-tint); color: var(--g); }
.has-sub:hover .nh-sub { opacity: 1; visibility: visible; transform: none; }
.has-sub:hover .ico-chev { transform: rotate(180deg); }
.nh-header__call { padding: 10px 18px; border-radius: 999px; font-size: 15px; }
.nh-burger { display: none; background: none; border: 0; padding: 8px; color: var(--ink); cursor: pointer; }
.nh-burger .ico { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.nh-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f6faf7, #fff); }
.nh-hero__img {
  position: absolute; top: 0; right: 0; bottom: 0; width: 58%;
  background-size: cover; background-position: 60% 45%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%); mask-image: linear-gradient(90deg, transparent 0, #000 22%);
  animation: nh-kenburns 18s ease-in-out infinite alternate;
}
@keyframes nh-kenburns { from { transform: scale(1); } to { transform: scale(1.07); } }
.nh-hero__inner { position: relative; min-height: 520px; display: flex; align-items: center; padding-top: 40px; padding-bottom: 60px; }
.nh-hero__content { max-width: 560px; }
.nh-hero__kicker { font-size: 13px; font-weight: 600; letter-spacing: .6px; color: var(--g-dark); margin-bottom: 12px; }
.nh-hero__title { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; line-height: 1.08; letter-spacing: -.5px; color: #0f1f16; }
.nh-hero__title span { display: block; }
@media (min-width: 1024px) { .nh-hero__content { max-width: 600px; } .nh-hero__title span { white-space: nowrap; } }
.nh-hero__sub { margin: 16px 0 22px; font-size: 16px; color: #33443a; }
.nh-hero__checks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 14px 18px; }
.nh-hero__checks li { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; line-height: 1.3; max-width: 130px; }
.nh-check { width: 26px; height: 26px; border-radius: 50%; background: var(--g); color: #fff; display: grid; place-items: center; flex: none; }
.nh-check .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.nh-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }
.nh-hero__ribbon {
  position: absolute; right: 40px; bottom: 6px; padding: 12px 34px;
  background: linear-gradient(90deg, var(--g-dark), var(--g)); color: #fff; font-weight: 700; font-size: 14px;
  text-align: center; line-height: 1.5; transform: rotate(-4deg); border-radius: 4px;
  clip-path: polygon(3% 0, 100% 6%, 97% 100%, 0 92%);
  box-shadow: 0 10px 24px rgba(11, 94, 43, .35);
}
.nh-hero__ribbon span { display: block; }

/* ---------- Section chung ---------- */
.nh-section { padding: 64px 0; }
.nh-section--tint { background: var(--g-tint); }
.nh-section--pt0 { padding-top: 0; }
.nh-head { text-align: center; margin-bottom: 34px; }
.nh-head h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: #12241a; }
.nh-head p { margin-top: 8px; color: var(--muted); }
.nh-head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; text-align: left; }
.nh-title-left { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; color: var(--g-dark); }
.nh-grid { display: grid; gap: 24px; }
.nh-grid--3 { grid-template-columns: repeat(3, 1fr); }
.nh-grid--4 { grid-template-columns: repeat(4, 1fr); }
.nh-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .35s, box-shadow .35s, border-color .35s; }
.nh-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }

/* ---------- Dịch vụ ---------- */
.nh-service__img { position: relative; height: 140px; background: var(--g-soft); }
.nh-service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.nh-service:hover .nh-service__img img { transform: scale(1.06); }
.nh-service__icon {
  position: absolute; left: 22px; bottom: -30px; width: 64px; height: 64px; border-radius: 50%;
  background: #fff; color: var(--g); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.12);
  border: 3px solid var(--g-soft); transition: transform .4s;
}
.nh-service:hover .nh-service__icon { transform: rotate(-8deg) scale(1.06); }
.nh-service__icon .ico { width: 30px; height: 30px; }
.nh-service__body { padding: 42px 22px 22px; }
.nh-service__body h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.nh-service__body p { color: var(--muted); font-size: 14px; margin-bottom: 14px; min-height: 66px; }

/* ---------- Quy trình ---------- */
.nh-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.nh-step { position: relative; padding: 0 6px; }
.nh-step__top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.nh-step__no {
  width: 44px; height: 44px; border-radius: 50%; background: var(--g); color: #fff; font-weight: 800;
  display: grid; place-items: center; box-shadow: 0 0 0 6px var(--g-soft); flex: none;
}
.nh-step__icon { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--g); display: grid; place-items: center; box-shadow: var(--shadow); flex: none; }
.nh-step__icon .ico { width: 28px; height: 28px; }
/* mũi tên nối các bước */
.nh-step:not(:last-child)::after {
  content: ""; position: absolute; top: 28px; left: 132px; right: -18px; height: 0;
  border-top: 2px dashed #b9d6c0;
}
.nh-step:not(:last-child)::before {
  content: "›"; position: absolute; top: 12px; right: -16px; color: var(--g); font-size: 26px; font-weight: 700; line-height: 1;
}
.nh-step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; padding-left: 14px; border-left: 3px solid var(--g); }
.nh-step p { color: var(--muted); font-size: 13.5px; padding-left: 17px; }

/* ---------- Giới thiệu ---------- */
.nh-about { display: grid; grid-template-columns: 1.15fr 1fr .85fr; gap: 28px; align-items: center; }
.nh-about__text p { color: #3a4a40; margin: 12px 0; font-size: 14.5px; }
.nh-about__text b { color: var(--ink); }
.nh-about__text .nh-btn { margin-top: 8px; border-radius: 999px; }
.nh-about__img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / 1; }
.nh-about__img img { width: 100%; height: 100%; object-fit: cover; }
.nh-about__facts {
  list-style: none; margin: 0; padding: 6px 22px; display: grid;
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.nh-about__facts::before {               /* vạch xanh trang trí bên trái */
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #22b35a, var(--g-dark));
}
.nh-about__facts li { display: flex; align-items: flex-start; gap: 14px; padding: 16px 0; transition: transform .25s; }
.nh-about__facts li + li { border-top: 1px dashed #dbe7df; }
.nh-about__facts li:hover { transform: translateX(4px); }
.nh-about__facts li > div > b { display: block; font-size: 14.5px; font-weight: 700; color: var(--g-dark); margin-bottom: 2px; }
.nh-about__facts li > div > span { display: block; color: var(--muted); font-size: 13px; line-height: 1.5; }
.nh-fact__icon {
  width: 42px; height: 42px; border-radius: 12px; flex: none;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #22b35a, var(--g-dark)); box-shadow: 0 6px 14px rgba(19, 138, 62, .25);
}
.nh-fact__icon .ico { width: 21px; height: 21px; }

/* ---------- Dự án ---------- */
.nh-project { position: relative; display: block; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: #ccc; box-shadow: var(--shadow); }
.nh-project img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s; }
.nh-project:hover img { transform: scale(1.08); }
.nh-project__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px; color: #fff; font-weight: 600; font-size: 14px; line-height: 1.35;
  background: linear-gradient(180deg, transparent, rgba(6, 30, 16, .55) 40%, rgba(6, 30, 16, .85));
  transition: padding-bottom .35s;
}
.nh-project:hover .nh-project__cap { padding-bottom: 20px; }

/* ---------- Vì sao chọn ---------- */
.nh-why { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); transition: background-color .3s, transform .3s; }
.nh-why:hover { background: var(--g-tint); transform: translateY(-4px); }
.nh-why__icon { width: 58px; height: 58px; border-radius: 50%; background: var(--g-soft); color: var(--g); display: grid; place-items: center; flex: none; transition: background-color .3s, color .3s; }
.nh-why:hover .nh-why__icon { background: var(--g); color: #fff; }
.nh-why__icon .ico { width: 28px; height: 28px; }
.nh-why h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.nh-why p { color: var(--muted); font-size: 13.5px; }

/* ---------- Lĩnh vực ---------- */
.nh-fields { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.nh-field {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; text-align: center; padding: 22px 8px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.nh-field:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.nh-field__icon {
  width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #22b35a, var(--g-dark)); box-shadow: 0 8px 18px rgba(19, 138, 62, .28);
  transition: transform .35s;
}
.nh-field:hover .nh-field__icon { transform: rotate(-6deg) scale(1.06); }
.nh-field__icon .ico { width: 32px; height: 32px; }
.nh-field__label { font-size: 13px; font-weight: 600; line-height: 1.3; }

/* ---------- Liên hệ ---------- */
.nh-contact {
  position: relative; color: #fff; padding: 56px 0;
  background:
    radial-gradient(circle at 12% 110%, rgba(120, 200, 90, .35), transparent 40%),
    radial-gradient(circle at 60% -20%, rgba(255, 255, 255, .08), transparent 45%),
    linear-gradient(135deg, var(--g-deep), var(--g-dark) 55%, #0e6b33);
}
.nh-contact__inner { display: grid; grid-template-columns: 1.05fr .95fr 1.1fr; gap: 36px; align-items: start; }
.nh-contact h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; }
.nh-contact__sub { opacity: .85; margin: 8px 0 26px; }
.nh-contact__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; font-size: 17px; font-weight: 600; }
.nh-contact__list li { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.nh-contact__list li > span { width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--g-dark); display: grid; place-items: center; flex: none; }
.nh-contact__list a:hover { text-decoration: underline; }
.nh-contact__offices h3 { font-size: 14px; letter-spacing: .5px; margin-bottom: 18px; opacity: .9; }
.nh-contact__offices ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.nh-contact__offices li { display: flex; gap: 12px; font-size: 13.5px; line-height: 1.5; }
.nh-contact__offices li > span { color: #9be3a9; padding-top: 2px; }
.nh-contact__offices b { display: block; font-size: 14.5px; }
.nh-form { background: #fff; color: var(--ink); border-radius: 14px; padding: 24px; box-shadow: 0 20px 50px rgba(0,0,0,.25); display: grid; gap: 12px; }
.nh-form h3 { color: var(--g-dark); font-size: 17px; font-weight: 800; }
.nh-form > p { color: var(--muted); font-size: 13px; margin-top: -6px; }
.nh-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nh-form input, .nh-form select, .nh-form textarea {
  width: 100%; font: inherit; font-size: 14px; color: var(--ink); background: #fff;
  border: 1px solid #d6dfd9; border-radius: 8px; padding: 11px 12px; transition: border-color .2s, box-shadow .2s;
}
.nh-form textarea { resize: vertical; }
.nh-form input:focus, .nh-form select:focus, .nh-form textarea:focus { outline: 0; border-color: var(--g); box-shadow: 0 0 0 3px rgba(19, 138, 62, .15); }
.nh-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0; }
.nh-form .php-field-err { border-color: #d33 !important; }

/* ---------- Footer ---------- */
.nh-footer { background: #fff; border-top: 1px solid var(--line); }
.nh-footer__inner { display: flex; align-items: center; gap: 30px; padding-top: 22px; padding-bottom: 18px; flex-wrap: wrap; }
.nh-footer .nh-logo img { height: 46px; }
.nh-footer__about { display: flex; flex-direction: column; font-size: 13px; margin-right: auto; }
.nh-footer__about span { color: var(--muted); }
.nh-footer__links { display: flex; gap: 18px; font-size: 13px; color: var(--muted); }
.nh-footer__links a:hover { color: var(--g); }
.nh-social { display: flex; gap: 10px; }
.nh-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff !important; font-size: 11px; font-weight: 800; transition: transform .25s; }
.nh-social a:hover { transform: translateY(-3px) scale(1.06); }
.nh-social svg { width: 18px; height: 18px; }
.nh-social .is-fb { background: #1877f2; } .nh-social .is-yt { background: #e62117; } .nh-social .is-zalo { background: #0068ff; }
.nh-footer__copy { text-align: center; font-size: 12px; color: var(--muted); padding: 10px 0 16px; margin: 0; border-top: 1px solid var(--line); }

/* ---------- Thanh liên hệ nổi bên phải ---------- */
.nh-float {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%); z-index: 990;
  display: flex; flex-direction: column; width: 58px;
  background: #fff; border-radius: 14px 0 0 14px; box-shadow: -4px 6px 24px rgba(0, 0, 0, .12);
  animation: nh-float-in .6s cubic-bezier(.22,.9,.3,1) .8s both;
}
@keyframes nh-float-in { from { transform: translate(100%, -50%); } to { transform: translateY(-50%); } }
.nh-float__item {
  position: relative; display: grid; place-items: center; height: 60px; width: 100%;
  background: none; border: 0; padding: 0; cursor: pointer; color: inherit;
}
.nh-float__item + .nh-float__item { border-top: 1px solid #edf0ee; }
.nh-float__item:hover { background: #f7faf8; }
.nh-float__item:first-child:hover { border-top-left-radius: 14px; }
.nh-float__item:last-child:hover { border-bottom-left-radius: 14px; }
/* gọi điện: vòng đỏ + sóng lan */
.nh-float__ring {
  position: relative; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  color: #e53935; border: 2px solid #f3b3b1; background: #fff;
}
.nh-float__ring .ico { width: 18px; height: 18px; animation: fx-shake 1.6s ease-in-out infinite; }
.nh-float__ring::after {
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid #e53935; opacity: 0;
  animation: fx-wave 2s ease-out infinite;
}
/* zalo */
.nh-float__zbadge {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: #fff; color: #0068ff; font-weight: 800; font-size: 12px; letter-spacing: -.2px;
  border: 2px solid #0068ff; box-shadow: 0 3px 8px rgba(0, 104, 255, .2);
}
/* lên đầu trang */
.nh-float__top .ico { width: 24px; height: 24px; color: #9aa79f; transform: rotate(180deg); transition: color .25s, transform .25s; }
.nh-float__top.is-active .ico { color: var(--g); }
.nh-float__top:hover .ico { transform: rotate(180deg) translateY(3px); }
/* nhãn hiện khi rê chuột */
.nh-float__tip {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translate(8px, -50%);
  white-space: nowrap; background: var(--g-dark); color: #fff; font-size: 13px; font-weight: 600;
  padding: 7px 12px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
}
.nh-float__tip::after { content: ""; position: absolute; left: 100%; top: 50%; margin-top: -5px; border: 5px solid transparent; border-left-color: var(--g-dark); }
.nh-float__item:hover .nh-float__tip { opacity: 1; transform: translate(0, -50%); }
/* thanh nổi đã có nút lên đầu -> ẩn nút tròn của effects.css trên trang này */
.nano-home #fx-top { display: none !important; }

/* ---------- Trang 404 ---------- */
.nh-404 { text-align: center; padding: 90px 0 110px; }
.nh-404__code { font-size: 120px; font-weight: 800; line-height: 1;
  background: linear-gradient(90deg, #22b35a, var(--g-dark)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nh-404 h1 { font-size: 26px; margin: 10px 0 8px; }
.nh-404 p { color: var(--muted); }
.nh-404__cta { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* thanh gọi nhanh: chỉ trên điện thoại */
.nh-mobilebar { display: none; }

/* nút lên đầu trang của effects.css: đặt lại màu */
#fx-top .fg { stroke: var(--g); } #fx-top span { color: var(--g); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nh-hero__checks { grid-template-columns: repeat(2, auto); }
  .nh-about { grid-template-columns: 1fr 1fr; }
  .nh-about__facts { grid-column: 1 / -1; grid-template-columns: repeat(2, 1fr); }
  .nh-fields { grid-template-columns: repeat(4, 1fr); }
  .nh-contact__inner { grid-template-columns: 1fr 1fr; }
  .nh-form { grid-column: 1 / -1; }
}
@media (max-width: 1023px) {
  /* backdrop-filter biến header thành khung chứa của phần tử fixed -> menu bị kẹt; tắt trên mobile */
  .nh-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: #fff; }
  .nh-burger { display: block; margin-left: auto; }
  .nh-header__call { display: none; }
  .nh-nav {
    position: fixed; inset: 74px 0 0 0; background: #fff; padding: 12px 20px 30px; overflow-y: auto;
    transform: translateX(100%); transition: transform .35s cubic-bezier(.22,.9,.3,1); margin: 0;
  }
  .nh-nav.is-open { transform: none; }
  .nh-nav > ul { flex-direction: column; gap: 0; }
  .nh-nav > ul > li > a { padding: 14px 4px; border-bottom: 1px solid var(--line); justify-content: space-between; font-size: 16px; }
  .nh-nav > ul > li > a::after { display: none; }
  .nh-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; padding: 4px 0 8px 12px; }
  .has-sub.is-open .nh-sub { display: block; }
  .has-sub.is-open .ico-chev { transform: rotate(180deg); }
  .has-sub:hover .nh-sub { opacity: 1; }
  .nh-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .nh-steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .nh-step::after, .nh-step::before { display: none; }
}
@media (max-width: 767px) {
  body.nano-home { padding-bottom: 60px; }       /* chừa chỗ cho thanh gọi nhanh */
  .nh-header__inner { height: 64px; }
  .nh-logo img { height: 44px; }
  .nh-nav { inset: 64px 0 0 0; }
  .nh-hero__img {
    position: relative; width: 100%; height: 230px; display: block;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent);
  }
  .nh-hero { display: flex; flex-direction: column; }
  .nh-hero__inner { min-height: 0; padding-top: 6px; padding-bottom: 36px; flex-direction: column; align-items: stretch; }
  .nh-hero__ribbon { display: none; }      /* điện thoại: ẩn để không che tên công ty trên bìa */
  .nh-hero__img { background-position: 58% 78%; }
  .nh-hero__checks { grid-template-columns: 1fr 1fr; }
  .nh-hero__cta .nh-btn { flex: 1 1 100%; }
  .nh-section { padding: 46px 0; }
  .nh-grid--3, .nh-grid--4, .nh-steps { grid-template-columns: 1fr; }
  .nh-service__body p { min-height: 0; }
  .nh-head--row { flex-direction: column; align-items: flex-start; }
  .nh-about { grid-template-columns: 1fr; }
  .nh-about__facts { grid-template-columns: 1fr; }
  .nh-fields { grid-template-columns: repeat(2, 1fr); }
  .nh-contact__inner { grid-template-columns: 1fr; gap: 30px; }
  .nh-contact__list { font-size: 15px; }
  .nh-form__row { grid-template-columns: 1fr; }
  .nh-footer__inner { flex-direction: column; text-align: center; }
  .nh-footer__about { margin: 0; }
  .nh-float { display: none; }        /* điện thoại đã có thanh gọi nhanh dưới đáy */
  .nh-mobilebar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    background: #fff; box-shadow: 0 -6px 20px rgba(0,0,0,.1);
  }
  .nh-mobilebar a { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 14px 4px; font-weight: 700; font-size: 14px; }
  .nh-mobilebar .is-call { background: var(--o); color: #fff !important; }
  .nh-mobilebar .is-zalo { color: #0068ff !important; }
  .nh-mobilebar .is-form { background: var(--g); color: #fff !important; }
  #fx-top { bottom: 76px; }
}

/* Tiêu đề viết thường trong HTML (tốt cho SEO, đọc màn hình), hiển thị in hoa bằng CSS */
.nh-hero__kicker, .nh-hero__title, .nh-hero__ribbon, .nh-head h2, .nh-title-left,
.nh-contact h2, .nh-contact__offices h3, .nh-form h3 { text-transform: uppercase; }
.nh-pic { display: contents; }

/* ==========================================================================
   Header 2 tầng (theo mẫu trong tài liệu): logo | thông tin liên hệ nhanh / menu
   ========================================================================== */
@media (min-width: 1024px) {
  .nh-header__inner {
    display: grid; grid-template-columns: auto 1fr; grid-template-areas: "logo info" "logo nav";
    column-gap: 36px; height: auto;
  }
  .nh-logo { grid-area: logo; align-self: center; }
  .nh-logo img { height: 60px; }
  .nh-header__info {
    grid-area: info; display: flex; justify-content: flex-end; list-style: none; margin: 0; padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }
  .nh-header__info li { display: flex; align-items: center; gap: 10px; padding: 0 20px; }
  .nh-header__info li + li { border-left: 1px solid var(--line); }
  .nh-header__info li:last-child { padding-right: 0; }
  .nh-header__ico {
    width: 36px; height: 36px; border-radius: 50%; flex: none; display: grid; place-items: center;
    background: var(--g-tint); color: var(--g);
  }
  .nh-header__ico .ico { width: 17px; height: 17px; }
  .nh-header__info small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.2; }
  .nh-header__info a, .nh-header__info b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; }
  .nh-header__info li:first-child a { color: var(--o); font-size: 15px; }
  .nh-header__info a:hover { color: var(--g); }
  /* header rộng hơn nội dung để 9 mục menu nằm trên 1 dòng, rải đều hết chiều ngang */
  .nh-header > .nh-header__inner { max-width: 1240px; }
  .nh-nav { grid-area: nav; margin: 0; justify-self: stretch; }
  .nh-nav > ul { justify-content: space-between; gap: 0; }
  .nh-nav > ul > li > a { padding: 15px 10px; white-space: nowrap; font-size: 14.5px; }
  .nh-nav > ul > li:first-child > a { padding-left: 0; }
  .nh-nav > ul > li:nth-last-child(3) > a { padding-right: 0; }   /* "Liên hệ" (sau nó là 2 mục chỉ có trên mobile) */
  .nh-nav > ul > li > a::after { bottom: 8px; left: 10px; right: 10px; }
  .nh-nav > ul > li:first-child > a::after { left: 0; }
  .nh-nav > ul > li:nth-last-child(3) > a::after { right: 0; }
  .nh-sub a.is-current { background: var(--g-tint); color: var(--g); font-weight: 600; }
}
@media (min-width: 1024px) and (max-width: 1365px) {
  .nh-header__inner { column-gap: 28px; }
  .nh-logo img { height: 52px; }
  .nh-nav > ul > li > a { padding-left: 7px; padding-right: 7px; font-size: 14px; }
  .nh-nav > ul > li > a::after { left: 7px; right: 7px; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .nh-header__info li:nth-child(3) { display: none; }      /* màn nhỏ: ẩn địa chỉ cho đủ chỗ */
  .nh-nav > ul > li:first-child { display: none; }          /* ẩn "Trang chủ": bấm logo để về trang chủ */
  .nh-nav > ul > li > a { padding-left: 5px; padding-right: 5px; font-size: 13.5px; }
  .nh-nav > ul > li:nth-child(2) > a { padding-left: 0; }
}
@media (max-width: 1023px) {
  .nh-header__info { display: none; }
}

/* ==========================================================================
   Landing page dịch vụ (app/services/view.php)
   ========================================================================== */
.nh-lp-hero { background: linear-gradient(180deg, #f3f9f5, #fff); padding: 18px 0 60px; }
.nh-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); margin-bottom: 26px; }
.nh-crumb a:hover { color: var(--g); }
.nh-crumb [aria-current] { color: var(--g-dark); font-weight: 600; }
.ico-crumb { width: 14px; height: 14px; transform: rotate(-90deg); opacity: .6; }
.nh-lp-hero__grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 52px; align-items: center; }
.nh-lp-hero h1 { font-size: clamp(28px, 3.3vw, 42px); font-weight: 800; line-height: 1.15; letter-spacing: -.4px; color: #0f1f16; }
.nh-lp-hero__lead { margin: 16px 0 22px !important; font-size: 16.5px; color: #33443a; }
.nh-lp-checks { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.nh-lp-checks li { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; line-height: 1.35; }
.nh-lp-hero__img { position: relative; }
.nh-lp-hero__img img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 22px; box-shadow: 0 24px 50px rgba(16, 60, 34, .18); }
.nh-lp-hero__badge {
  position: absolute; left: -26px; bottom: 26px; display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 12px 18px 12px 12px; border-radius: 14px; box-shadow: 0 14px 34px rgba(16, 60, 34, .16);
  font-size: 13px; color: var(--muted); line-height: 1.35;
}
.nh-lp-hero__badge > .ico {
  width: 44px; height: 44px; padding: 11px; border-radius: 12px; color: #fff; flex: none;
  background: linear-gradient(135deg, #22b35a, var(--g-dark));
}
.nh-lp-hero__badge b { display: block; color: var(--ink); font-size: 14.5px; }

.nh-problem {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.nh-problem:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #f8c9ad; }
.nh-problem__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #fff1e8; color: var(--o); }
.nh-problem__icon .ico { width: 23px; height: 23px; }
.nh-problem h3 { font-size: 15.5px; font-weight: 700; margin: 14px 0 6px; }
.nh-problem p { color: var(--muted); font-size: 13.5px; }

.nh-lp-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.nh-lp-box--white { background: #fff; border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.nh-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 13px; }
.nh-list--dot li { position: relative; padding-left: 26px; font-weight: 500; }
.nh-list--dot li::before {
  content: ""; position: absolute; left: 4px; top: 9px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--g); box-shadow: 0 0 0 4px var(--g-soft);
}
.nh-list--check li { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; }
.nh-list--check .nh-check { margin-top: 1px; }
.nh-lp-areas {
  margin-top: 26px !important; display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px;
  background: #fff; border: 1px dashed #b9d8c3; border-radius: 12px; font-size: 14px;
}
.nh-lp-areas .ico { color: var(--g); flex: none; width: 20px; height: 20px; margin-top: 1px; }

.nh-steps--5 { grid-template-columns: repeat(5, 1fr); gap: 20px; }

.nh-proof { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nh-proof li { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.nh-proof li > div > b { display: block; color: var(--g-dark); font-size: 15px; line-height: 1.3; }
.nh-proof li > div > span { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; }

.nh-wrap--narrow { max-width: 880px; }
.nh-faq { display: grid; gap: 12px; }
.nh-faq__item { background: #fff; border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s, box-shadow .25s; }
.nh-faq__item[open] { border-color: #bfe0c9; box-shadow: var(--shadow); }
.nh-faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px;
}
.nh-faq__item summary::-webkit-details-marker { display: none; }
.nh-faq__item summary h3 { font-size: 15.5px; font-weight: 700; }
.nh-faq__item[open] summary h3 { color: var(--g-dark); }
.nh-faq__plus { position: relative; width: 30px; height: 30px; border-radius: 50%; background: var(--g-tint); flex: none; }
.nh-faq__plus::before, .nh-faq__plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--g);
  transform: translate(-50%, -50%); transition: transform .25s;
}
.nh-faq__plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.nh-faq__item[open] .nh-faq__plus::after { transform: translate(-50%, -50%) rotate(0); }
.nh-faq__item > p { padding: 0 22px 20px; color: #3d4d44; line-height: 1.75; }

.nh-related {
  display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.nh-related:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--g); }
.nh-related__icon {
  width: 48px; height: 48px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, #22b35a, var(--g-dark));
}
.nh-related__body { flex: 1; }
.nh-related__body small { display: block; font-size: 12px; color: var(--muted); }
.nh-related__body b { display: block; font-size: 15px; line-height: 1.35; }
.nh-related > .ico { color: var(--g); transition: transform .25s; }
.nh-related:hover > .ico { transform: translateX(4px); }

@media (max-width: 1100px) {
  .nh-steps--5 { grid-template-columns: repeat(3, 1fr); gap: 32px 20px; }
  .nh-steps--5 .nh-step::after, .nh-steps--5 .nh-step::before { display: none; }
}
@media (max-width: 1023px) {
  .nh-lp-hero__grid, .nh-lp-scope { grid-template-columns: 1fr; gap: 32px; }
  .nh-lp-hero__img { max-width: 620px; }
  .nh-proof { grid-template-columns: repeat(2, 1fr); }
  .nh-steps--5 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .nh-lp-hero { padding-bottom: 44px; }
  .nh-lp-checks { grid-template-columns: 1fr; }
  .nh-lp-hero__badge { left: 12px; bottom: 12px; }
  .nh-lp-box--white { padding: 22px; }
  .nh-proof, .nh-steps--5 { grid-template-columns: 1fr; }
  .nh-faq__item summary { padding: 16px; }
  .nh-faq__item > p { padding: 0 16px 18px; }
}
.nh-sub a.is-current { color: var(--g); font-weight: 600; }

/* Hero dùng ảnh dọc (cuốn hồ sơ năng lực): khung ảnh cố định ~470px, bám theo mép phải nội dung
   để luôn thấy trọn cuốn sách; ẩn ribbon vì bìa đã có logo + tên công ty */
.nh-hero--portrait .nh-hero__img {
  width: 470px; right: max(0px, calc((100% - 1240px) / 2)); background-position: 50% 52%;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent 0, #000 18%, #000 88%, transparent);
}
.nh-hero--portrait .nh-hero__ribbon { display: none; }
@media (max-width: 1100px) { .nh-hero--portrait .nh-hero__img { width: 400px; } }
@media (max-width: 767px) {
  .nh-hero--portrait .nh-hero__img {
    width: 100%; right: auto; height: 420px; background-size: 100% auto; background-position: 50% 50%; animation: none;
    -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent); mask-image: linear-gradient(180deg, #000 80%, transparent);
  }
}

/* ==========================================================================
   Trang Giới thiệu (app/about/view.php)
   ========================================================================== */
.nh-company { margin: 0 0 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.nh-company > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.nh-company dt { font-size: 12px; color: var(--muted); }
.nh-company dd { margin: 2px 0 0; font-weight: 700; color: var(--g-dark); font-size: 14.5px; }

.nh-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.nh-stats a {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 24px 14px;
  background: linear-gradient(135deg, var(--g), var(--g-dark)); color: #fff !important; border-radius: 16px;
  box-shadow: 0 14px 30px rgba(11, 94, 43, .22); transition: transform .3s;
}
.nh-stats a:hover { transform: translateY(-4px); }
.nh-stats b { font-size: 40px; font-weight: 800; line-height: 1; }
.nh-stats b::after { content: "+"; font-size: 24px; vertical-align: top; margin-left: 2px; opacity: .8; }
.nh-stats span { font-size: 14px; opacity: .92; }
.nh-stats__note { margin-top: 12px !important; text-align: center; font-size: 12.5px; color: var(--muted); }

.nh-letter { background: #fff; border-radius: 18px; padding: 36px 40px; box-shadow: var(--shadow); position: relative; }
.nh-letter::before {
  content: "“"; position: absolute; right: 30px; top: 6px; font-size: 120px; line-height: 1; color: var(--g-soft); font-family: Georgia, serif;
}
.nh-letter h2 { margin-bottom: 16px; }
.nh-letter p { margin-top: 12px !important; color: #33443a; line-height: 1.8; }
.nh-letter__sign { text-align: right; font-weight: 700; color: var(--g-dark) !important; font-style: italic; }

.nh-vm { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.nh-vm__box { border: 1px solid var(--line); border-radius: 16px; padding: 28px; background: linear-gradient(180deg, #fff, var(--g-tint)); }
.nh-vm__box h2 { font-size: 22px; font-weight: 800; color: var(--g-dark); margin: 14px 0 8px; text-transform: uppercase; }
.nh-vm__box p { color: #33443a; line-height: 1.75; }
.nh-why--card { border: 1px solid var(--line); background: #fff; }

.nh-fieldcol h3 { font-size: 17px; font-weight: 800; color: var(--g-dark); margin-top: 14px; }
.nh-fieldcol .nh-list { margin-top: 14px; }
.nh-fieldcol a { color: var(--g-dark); text-decoration: underline; text-decoration-color: #b9d8c3; text-underline-offset: 3px; }
.nh-fieldcol a:hover { color: var(--g); }

.nh-plist { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.nh-plist__group { border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; background: #fff; }
.nh-plist__group h3 { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.nh-plist__group h3 a { color: var(--g-dark); display: inline-flex; align-items: center; gap: 6px; }
.nh-plist__group h3 a:hover { color: var(--g); }
.nh-plist__group h3 .ico { width: 16px; height: 16px; }
.nh-plist__group ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; color: #33443a; font-size: 14px; }
.nh-plist__group li::marker { color: var(--g); }

.nh-office { background: #fff; border-radius: 16px; padding: 24px; box-shadow: var(--shadow); }
.nh-office h3 { font-size: 16.5px; font-weight: 800; margin: 14px 0 6px; }
.nh-office p { color: var(--muted); font-size: 14px; }
.nh-office a { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 700; color: var(--o); }
.nh-office a .ico { width: 16px; height: 16px; }

@media (max-width: 1023px) {
  .nh-stats { grid-template-columns: repeat(2, 1fr); }
  .nh-vm, .nh-plist { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .nh-company { grid-template-columns: 1fr; }
  .nh-letter { padding: 26px 22px; }
  .nh-stats b { font-size: 32px; }
}

/* ---------- Chọn ngôn ngữ ---------- */
.nh-lang { position: relative; cursor: pointer; }
.nh-lang__cur { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 700; color: var(--g-dark); }
.nh-lang__menu {
  position: absolute; right: 0; top: 100%; z-index: 1100; min-width: 150px; padding: 6px; display: grid;
  background: #fff; border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.12);
  opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.nh-lang:hover .nh-lang__menu, .nh-lang:focus-within .nh-lang__menu { opacity: 1; visibility: visible; transform: none; }
.nh-lang__menu a { padding: 8px 12px; border-radius: 7px; font-size: 14px; font-weight: 500; }
.nh-lang__menu a:hover, .nh-lang__menu a.is-current { background: var(--g-tint); color: var(--g); }
.nh-nav__lang { display: none; }
@media (min-width: 1024px) and (max-width: 1459px) {
  .nh-header__info li:nth-child(3) { display: none; }   /* ẩn địa chỉ cho đủ chỗ nút ngôn ngữ */
}
@media (max-width: 1023px) {
  .nh-nav > ul > li.nh-nav__lang { display: flex; gap: 8px; padding: 16px 0; }
  .nh-nav__lang a { flex: 1; text-align: center; padding: 10px 6px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
  .nh-nav__lang a.is-current { background: var(--g); border-color: var(--g); color: #fff; }
}
/* Chữ Hán: không in hoa, giãn dòng thoáng hơn */
html[lang^="zh"] body.nano-home { font-family: "Be Vietnam Pro", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif; }
html[lang^="zh"] .nh-hero__title { letter-spacing: 0; line-height: 1.2; }
/* dải thông tin header: không xuống dòng */
@media (min-width: 1024px) {
  .nh-header__info a, .nh-header__info b, .nh-header__info small, .nh-lang__cur { white-space: nowrap; }
  .nh-header__info li { padding: 0 16px; }
}
@media (max-width: 1023px) { .nh-nav__lang a { justify-content: center; border-bottom: 1px solid var(--line) !important; } }

/* ---------- Header cố định, thu gọn khi cuộn (chỉ còn logo nhỏ + menu) ---------- */
.nh-header { position: fixed; top: 0; left: 0; right: 0; }
body.nano-home { padding-top: 64px; }
@media (min-width: 768px) { body.nano-home { padding-top: 74px; } }
@media (min-width: 1024px) {
  body.nano-home { padding-top: 139px; }
  .nh-header__info { max-height: 80px; overflow: visible; transition: max-height .3s ease, padding .3s ease, opacity .25s ease, border-color .3s; }
  .nh-logo img { transition: height .3s ease; }
  .nh-header.is-compact .nh-header__info { overflow: hidden; max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; border-color: transparent; }
  .nh-header.is-compact .nh-logo img { height: 42px; }
  .nh-header.is-compact .nh-nav > ul > li > a { padding-top: 13px; padding-bottom: 13px; }
  .nh-header.is-compact .nh-nav > ul > li > a::after { bottom: 6px; }
  /* thanh nổi bên phải dùng header thấp hơn khi thu gọn: không cần chỉnh */
}
@media (min-width: 1024px) {
  .nh-header.is-compact .nh-header__inner { grid-template-rows: 0 auto; row-gap: 0; min-height: 66px; align-content: center; }
  .nh-header.is-compact .nh-header__info { border-bottom-width: 0; }
}

/* ---------- Menu điện thoại (panel trượt) ---------- */
.nh-nav__contact, .nh-nav__langwrap { display: none; }
@media (max-width: 1023px) {
  .nh-nav { padding: 8px 20px 40px; background: linear-gradient(180deg, #fff 70%, var(--g-tint)); }
  .nh-nav > ul > li > a {
    padding: 15px 8px; font-size: 15.5px; font-weight: 600; border-bottom: 1px solid #eef2ef;
  }
  .nh-nav > ul > li.is-active > a { color: var(--g); background: var(--g-tint); border-radius: 10px; border-bottom-color: transparent; padding-left: 14px; }
  .nh-nav > ul > li.is-active > a::before {
    content: ""; display: block; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; background: var(--g);
  }
  .has-sub > a .ico-chev {
    width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: var(--g-tint); color: var(--g-dark); flex: none;
  }
  .nh-sub { margin: 4px 0 8px 10px !important; padding: 4px 0 4px 12px !important; border-left: 2px solid var(--g-soft); }
  .nh-sub a { padding: 10px 12px; font-size: 14.5px; color: #3d4d44; }
  .nh-sub a.is-current { color: var(--g); font-weight: 700; background: var(--g-tint); }

  /* liên hệ nhanh */
  .nh-nav > ul > li.nh-nav__contact { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 22px 0 6px; }
  .nh-nav__contact .nh-btn { justify-content: center; padding: 13px 16px; font-size: 15px; border-radius: 12px; }
  .nh-btn--zalo { background: #0068ff; color: #fff !important; box-shadow: 0 8px 18px rgba(0, 104, 255, .28); padding-left: 22px !important; padding-right: 22px !important; }
  .nh-nav__mail { grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 0 0; font-size: 14px; color: var(--muted); }
  .nh-nav__mail .ico { width: 16px; height: 16px; color: var(--g); }

  /* chọn ngôn ngữ: dạng nút gạt */
  .nh-nav > ul > li.nh-nav__langwrap { display: block; padding: 18px 0 0; }
  .nh-nav__langwrap small { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); margin-bottom: 8px; text-transform: uppercase; letter-spacing: .5px; }
  .nh-nav__langwrap small .ico { width: 15px; height: 15px; }
  .nh-nav__langwrap .nh-nav__lang { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: #e9f1eb; border-radius: 12px; }
  .nh-nav__langwrap .nh-nav__lang a {
    display: flex; align-items: center; justify-content: center; padding: 10px 4px; border: 0 !important; border-radius: 9px;
    font-size: 14px; font-weight: 600; color: #3d4d44; background: transparent;
  }
  .nh-nav__langwrap .nh-nav__lang a.is-current { background: #fff; color: var(--g); box-shadow: 0 2px 8px rgba(16, 60, 34, .12); }
}
@media (max-width: 1023px) {
  .nh-nav > ul > li.nh-nav__contact > a { border-bottom: 0; }
  .nh-nav > ul > li.nh-nav__contact > a.nh-btn { justify-content: center; padding: 13px 16px; font-size: 15px; font-weight: 700; }
  .nh-nav > ul > li.nh-nav__contact > a.nh-nav__mail { justify-content: center; gap: 8px; padding: 6px 0 0; font-size: 14px; font-weight: 500; color: var(--muted); }
}

/* Dòng thông tin header: không bao giờ tràn khung (thanh cuộn dọc làm màn hẹp đi ~17px) */
@media (min-width: 1024px) {
  .nh-header__inner { grid-template-columns: auto minmax(0, 1fr); }
  .nh-header__info { min-width: 0; }
  .nh-header__info li:nth-child(3) { min-width: 0; flex: 0 1 auto; }
  .nh-header__info li:nth-child(3) > span:last-child { min-width: 0; }
  .nh-header__info li:nth-child(3) b { overflow: hidden; text-overflow: ellipsis; }
  .nh-header__info li.nh-lang { flex: none; }
}
@media (min-width: 1024px) { .nh-header__info li.nh-lang { padding-right: 8px; } }

/* Tiêu đề nhóm trong menu con (Dịch vụ: Tư vấn môi trường / Xử lý nước thải / Xử lý khí thải) */
.nh-sub__head { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--muted); }
.nh-sub__head:not(:first-child) { margin-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
@media (max-width: 1023px) { .nh-sub__head { padding: 10px 0 2px; } .nh-sub__head:not(:first-child) { border-top: 0; padding-top: 10px; } }

/* Menu 6 mục: dồn về bên phải, khoảng cách đều; menu con đủ rộng để tên dịch vụ nằm 1 dòng */
@media (min-width: 1024px) {
  .nh-nav > ul { justify-content: flex-start; gap: 6px; }
  .nh-nav > ul > li:first-child > a { padding-left: 0 !important; }
  .nh-nav > ul > li:first-child > a::after { left: 0 !important; }
  .nh-nav > ul > li > a { padding-left: 16px !important; padding-right: 16px !important; font-size: 15px; font-weight: 600; }
  .nh-nav > ul > li > a::after { left: 16px !important; right: 16px !important; }
  .nh-nav > ul > li:nth-last-child(3) > a { padding-right: 0 !important; }
  .nh-nav > ul > li:nth-last-child(3) > a::after { right: 0 !important; }
  .nh-nav > ul > li:first-child { display: list-item !important; }
  .nh-sub { min-width: 290px; }
  .nh-sub a { white-space: nowrap; }
}

/* Header cân đối: logo | (thông tin liên hệ) / (menu ... nút Đăng ký tư vấn) */
.nh-header__cta { display: none; }
@media (min-width: 1024px) {
  .nh-header__inner { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "logo info info" "logo nav cta"; }
  .nh-header__cta { display: inline-flex; grid-area: cta; align-self: center; padding: 10px 20px; border-radius: 999px; font-size: 14px; white-space: nowrap; margin-left: 16px; }
  .nh-header__cta .ico { width: 16px; height: 16px; }
  .nh-header.is-compact .nh-header__cta { padding: 9px 18px; }
}

/* Hero thương hiệu: 4 mảng dịch vụ xếp 2x2, chữ 1 dòng */
.nano-home .nh-hero__sub { margin: 16px 0 22px; max-width: 600px; line-height: 1.6; }
.nh-hero__checks { grid-template-columns: repeat(2, max-content); gap: 12px 32px; }
.nh-hero__checks li { max-width: none; font-size: 14.5px; font-weight: 600; color: var(--ink); }
@media (max-width: 640px) { .nh-hero__checks { grid-template-columns: 1fr; gap: 10px; } .nh-hero__checks li { font-size: 14px; } }

/* Trang chủ: thẻ dịch vụ theo mảng + danh sách dịch vụ con */
.nh-service { display: flex; flex-direction: column; }
.nh-service__img { display: block; }
.nh-service__body { display: flex; flex-direction: column; flex: 1; }
.nh-service__body h3 a:hover { color: var(--g); }
.nh-service__body p { min-height: 0; }
.nh-service__list { list-style: none; margin: auto 0 0; padding: 0; border-top: 1px solid var(--line); }
.nh-service__list a { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; font-weight: 600; color: var(--ink); transition: color .2s, padding .2s; }
.nh-service__list li:last-child a { border-bottom: 0; padding-bottom: 0; }
.nh-service__list a > .ico:first-child { color: var(--g); width: 16px; height: 16px; }
.nh-service__list a > span { flex: 1; }
.nh-service__list a > .ico:last-child { color: var(--g); opacity: 0; transform: translateX(-6px); transition: .2s; width: 16px; height: 16px; }
.nh-service__list a:hover { color: var(--g); }
.nh-service__list a:hover > .ico:last-child { opacity: 1; transform: none; }
@media (hover: none) { .nh-service__list a > .ico:last-child { opacity: 1; transform: none; } }
.nh-fields { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 767px) { .nh-fields { grid-template-columns: repeat(2, 1fr); } }

/* Trang chủ: 4 nhóm dịch vụ */
@media (min-width: 1024px) and (max-width: 1199px) { .nh-services4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) and (max-width: 1023px) { .nh-services4 { grid-template-columns: repeat(2, 1fr); } }
.nh-services4 .nh-service__body { padding-left: 20px; padding-right: 20px; }
.nh-services4 .nh-service__list a { font-size: 14px; }

/* ==========================================================================
   Mega menu "Dịch vụ": 4 cột (Hồ sơ môi trường · Xử lý nước thải · Xử lý khí thải · Xử lý nước cấp)
   ========================================================================== */
.nh-mega__inner { display: grid; }
.nh-mega__title { display: block; font-weight: 800; color: var(--g-dark); text-transform: uppercase; letter-spacing: .4px; }
.nh-mega ul { list-style: none; margin: 0; padding: 0; }
@media (min-width: 1024px) {
  .nh-nav > ul > li.has-mega { position: static; }
  .nh-mega {
    left: 0; right: 0; top: 100%; min-width: 0; padding: 0; border-radius: 0 0 14px 14px;
    border-top: 1px solid var(--line); box-shadow: 0 22px 40px rgba(16, 60, 34, .12);
  }
  /* cầu nối vô hình để rê chuột từ "Dịch vụ" xuống panel không bị tắt */
  .nh-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }
  .nh-mega__inner {
    max-width: 1240px; margin: 0 auto; padding: 26px 20px 30px;
    grid-template-columns: 1.25fr 1fr 1fr 1fr; gap: 28px;
  }
  .nh-mega__title { font-size: 15px; margin-bottom: 12px; }
  .nh-mega ul { border-left: 2px solid var(--g-soft); padding-left: 4px; }
  .nh-mega__col:hover ul { border-left-color: var(--g); }
  .nh-mega ul a { display: block; padding: 6px 12px; font-size: 14.5px; color: var(--ink); white-space: normal; border-radius: 6px; line-height: 1.45; }
  .nh-mega ul a:hover, .nh-mega ul a.is-current { background: var(--g-tint); color: var(--g); }
  .nh-mega ul a.is-current { font-weight: 600; }
}
@media (max-width: 1023px) {
  .nh-mega__inner { gap: 4px; padding: 0 0 6px; }
  .nh-mega__title { font-size: 12px; color: var(--muted); padding: 12px 0 4px; }
  .nh-mega ul a { display: block; padding: 9px 0 9px 12px; font-size: 15px; border-left: 2px solid var(--g-soft); }
  .nh-mega ul a.is-current { color: var(--g); border-left-color: var(--g); font-weight: 600; }
}
@media (max-width: 1023px) { .nh-nav .nh-sub.nh-mega { border-left: 0 !important; padding-left: 4px !important; margin-left: 0 !important; } }
.nh-form__consent { font-size: 12.5px; color: var(--muted); text-align: center; margin-top: 10px !important; }
.nh-form__consent a, .nh-adform__safe a { color: var(--g); text-decoration: underline; }

/* ==========================================================================
   Trang chủ: Dịch vụ tách theo nhóm, mỗi dịch vụ một thẻ (thay khối 3 cột cũ)
   ========================================================================== */
.nh-svc-group + .nh-svc-group { margin-top: 56px; }
.nh-svc-group__head { text-align: center; max-width: 760px; margin: 0 auto 24px; }
.nh-svc-group__head h3 { display: flex; align-items: center; justify-content: center; gap: 14px; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; color: var(--g-dark); text-transform: uppercase; letter-spacing: .3px; }
.nh-svc-group__head h3::before, .nh-svc-group__head h3::after { content: ""; flex: 0 1 70px; height: 2px; background: linear-gradient(90deg, transparent, var(--g)); }
.nh-svc-group__head h3::after { background: linear-gradient(90deg, var(--g), transparent); }
.nh-svc-group__ico { width: 40px; height: 40px; border-radius: 12px; background: var(--g); color: #fff; display: grid; place-items: center; flex: none; }
.nh-svc-group__ico .ico { width: 20px; height: 20px; }
.nh-svc-group__head p { margin-top: 8px !important; color: var(--muted); font-size: 15px; }
.nh-svc-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.nh-svc-card2 { flex: 0 0 calc((100% - 60px) / 4); display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; color: var(--ink); transition: transform .25s, box-shadow .25s, border-color .25s; }
.nh-svc-card2:hover { transform: translateY(-5px); box-shadow: 0 18px 40px rgba(16, 60, 34, .12); border-color: #cfe3d5; }
.nh-svc-card2__img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--g-soft); position: relative; }
.nh-svc-card2__img::after { content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--g); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.nh-svc-card2:hover .nh-svc-card2__img::after { transform: scaleX(1); }
.nh-svc-card2__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.nh-svc-card2:hover .nh-svc-card2__img img { transform: scale(1.06); }
.nh-svc-card2__body { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.nh-svc-card2__body b { font-size: 16px; line-height: 1.4; color: var(--g-deep); }
.nh-svc-card2:hover .nh-svc-card2__body b { color: var(--g); }
.nh-svc-card2__desc { font-size: 13.5px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.nh-svc-card2__more { margin-top: auto; padding-top: 4px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--g); }
.nh-svc-card2__more .ico { width: 15px; height: 15px; transition: transform .2s; }
.nh-svc-card2:hover .nh-svc-card2__more .ico { transform: translateX(4px); }
.nh-svc-group__all { text-align: center; margin-top: 22px !important; }
@media (max-width: 1023px) {
  .nh-svc-card2 { flex-basis: calc((100% - 20px) / 2); }
}
@media (max-width: 640px) {
  /* điện thoại: vuốt ngang từng thẻ */
  .nh-svc-row { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin: 0 -20px; padding: 4px 20px 12px; scrollbar-width: none; }
  .nh-svc-row::-webkit-scrollbar { display: none; }
  .nh-svc-card2 { flex: 0 0 78%; scroll-snap-align: start; }
  .nh-svc-group__head h3::before, .nh-svc-group__head h3::after { display: none; }
  .nh-svc-group + .nh-svc-group { margin-top: 40px; }
}
@media (max-width: 640px) { .nh-svc-row { scroll-padding-left: 20px; } .nh-svc-row::after { content: ""; flex: 0 0 6px; } }

/* ---------- Bản đồ 3 văn phòng trong khối Liên hệ ---------- */
.nh-maps { margin-top: 40px; }
.nh-maps__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.nh-maps__head h3 { font-size: 18px; text-transform: uppercase; letter-spacing: .5px; color: #fff; }
.nh-maps__tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.nh-maps__tabs button { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 14px; font-weight: 600; padding: 8px 16px; border-radius: 999px; cursor: pointer; border: 1px solid rgba(255,255,255,.35); background: transparent; color: #fff; }
.nh-maps__tabs button .ico { width: 15px; height: 15px; }
.nh-maps__tabs button.is-current { background: #fff; color: var(--g-deep); border-color: #fff; }
.nh-maps__panel { display: grid; grid-template-columns: minmax(0, 1fr) 320px; background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.18); }
.nh-maps__panel[hidden] { display: none; }
.nh-maps__frame { min-height: 340px; background: #e8efe9; }
.nh-maps__frame iframe { width: 100%; height: 100%; min-height: 340px; border: 0; display: block; }
.nh-maps__info { padding: 24px; display: flex; flex-direction: column; gap: 12px; color: var(--ink); }
.nh-maps__info b { font-size: 17px; color: var(--g-deep); }
.nh-maps__info p { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.55; margin: 0; }
.nh-maps__info p .ico { flex: none; color: var(--g); margin-top: 3px; width: 16px; height: 16px; }
.nh-maps__info p a { font-weight: 700; color: var(--g-dark); }
.nh-maps__info .nh-btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 900px) {
  .nh-maps__panel { grid-template-columns: 1fr; }
  .nh-maps__frame, .nh-maps__frame iframe { min-height: 260px; }
  .nh-maps__info { padding: 18px; }
}
