/* ============================================================
   NHÂN KIỆT — Dịch vụ tính lương thuê ngoài & hợp thức hóa lao động
   Design system: biển sáng · sổ cái chính xác
   ============================================================ */

:root {
  /* Màu — dải xanh nước biển */
  --ink: #07253e;        /* mực biển sâu — chữ chính */
  --ink-2: #3d5a72;      /* chữ phụ */
  --sea-900: #053a5f;
  --sea-700: #075985;
  --sea-600: #0369a1;
  --sea-500: #0284c7;    /* chủ đạo */
  --azure: #0ea5e9;
  --cyan: #38bdf8;
  --foam: #edf5fc;       /* nền section nhạt */
  --tint: #dcecfa;
  --line: #c6e0f2;
  --white: #ffffff;
  --brand-red: #c40f39;  /* đỏ logo Nhân Kiệt — hotline / điểm nhấn thương hiệu */
  --brand-red-deep: #9c0c2e;
  --ok: #15803d;         /* xanh lá đậm — đạt contrast AA trên nền trắng */
  /* Sắc phụ có kiểm soát — tạo sinh động mà không phá tông biển */
  --teal: #0f766e; --teal-tint: #d7f2ee; --teal-line: #b2e2da;
  --rose-tint: #fde9ee; --rose-line: #f6c9d4;

  /* Chữ */
  --f-display: "Archivo", "Be Vietnam Pro", sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --maxw: 1120px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(7, 37, 62, .06), 0 8px 28px rgba(7, 89, 133, .10);
  --shadow-lg: 0 2px 6px rgba(7, 37, 62, .07), 0 20px 50px rgba(7, 89, 133, .16);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

/* bấm liên kết neo: chừa chỗ cho thanh đầu trang dính, không để nó che tiêu đề */
[id] { scroll-margin-top: 84px; }
@media (max-width: 1099px) { [id] { scroll-margin-top: 124px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--sea-600); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--sea-700); }

:focus-visible { outline: 3px solid var(--azure); outline-offset: 2px; border-radius: 4px; }

/* --pad = lề ngang của khung; các dải tràn mép (menu chip, băng chuyền) bám theo biến này
   để không bị lệch khi lề thu lại ở màn hình hẹp */
.wrap { --pad: 22px; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ---------- Kiểu chữ ---------- */
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; letter-spacing: -.015em; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 750; }
h3 { font-size: 1.16rem; font-weight: 700; line-height: 1.3; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sea-600); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--azure); border-radius: 2px; }

.lead { font-size: 1.13rem; color: var(--ink-2); max-width: 46em; }

.num { font-family: var(--f-mono); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(7, 89, 133, .06);
}
.site-head .wrap { display: flex; align-items: center; gap: 18px; height: 66px; }

.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-mark { height: 40px; width: auto; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 800; font-size: 1.06rem; color: var(--ink); letter-spacing: .01em; line-height: 1.1; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--f-mono); font-weight: 500; font-size: .6rem; letter-spacing: .12em; color: var(--sea-600); text-transform: uppercase; white-space: nowrap; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  text-decoration: none; color: var(--ink); font-weight: 550; font-size: .89rem;
  padding: 9px 9px; border-radius: 9px; white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
/* Màn hình vừa: thu gọn thêm để menu 7 mục vẫn nằm một dòng */
@media (max-width: 1320px) and (min-width: 1100px) {
  .nav a { font-size: .84rem; padding: 8px 7px; }
  .btn-hotline { font-size: .86rem; padding: 9px 13px; }
  .brand-name { font-size: 1rem; }
}
@media (max-width: 1120px) and (min-width: 1100px) {
  .brand-name small { display: none; }
  .nav a { font-size: .8rem; padding: 8px 6px; }
}
.nav a:hover { background: var(--foam); color: var(--sea-700); }
.nav a[aria-current="page"] { color: var(--sea-700); font-weight: 650; background: var(--tint); }

.btn-hotline {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--brand-red); color: #fff !important;
  font-weight: 700; font-size: .93rem; text-decoration: none;
  padding: 10px 16px; border-radius: 999px;
  box-shadow: 0 4px 14px rgba(196, 15, 57, .30);
  white-space: nowrap;
}
.btn-hotline:hover { background: var(--brand-red-deep); }

.nav-toggle { display: none; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-body); font-weight: 650; font-size: 1rem;
  padding: 13px 24px; border-radius: 12px; text-decoration: none;
  border: none; cursor: pointer;
  transition: background .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.btn:active, .btn-hotline:active { transform: translateY(1px); }
.btn-hotline { transition: background .18s ease, transform .12s ease; }
.btn-primary { background: var(--sea-600); color: #fff; box-shadow: 0 6px 18px rgba(3, 105, 161, .30); }
.btn-primary:hover { background: var(--sea-700); color: #fff; }
.btn-ghost { background: var(--white); color: var(--sea-700); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--azure); background: var(--foam); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(56, 189, 248, .18), transparent 60%),
    radial-gradient(700px 380px at -10% 20%, rgba(2, 132, 199, .10), transparent 55%),
    linear-gradient(180deg, var(--foam), var(--white) 78%);
  padding: 64px 0 0;
  overflow: hidden;
}
/* Ánh nước trôi chậm — hero "thở" nhẹ, tôn trọng reduced-motion */
.hero::before {
  content: ""; position: absolute; inset: -25% -12%; pointer-events: none; z-index: 0;
  background:
    radial-gradient(620px 320px at 18% 32%, rgba(56, 189, 248, .17), transparent 62%),
    radial-gradient(720px 400px at 82% 16%, rgba(34, 211, 238, .13), transparent 60%),
    radial-gradient(540px 320px at 62% 85%, rgba(15, 118, 110, .09), transparent 60%);
  animation: hero-drift 18s ease-in-out infinite alternate;
}
.hero > * { position: relative; z-index: 1; }
@keyframes hero-drift {
  to { transform: translate3d(3%, -2.5%, 0) scale(1.07); }
}
@media (prefers-reduced-motion: reduce) { .hero::before { animation: none; } }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 48px; align-items: center; padding-bottom: 74px; }
.hero h1 { margin: 10px 0 18px; }
.hero h1 em { font-style: normal; color: var(--sea-600); }
.hero .lead { margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 13px; margin-bottom: 30px; }

.hero-facts { display: flex; flex-wrap: wrap; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); }
.hero-facts li { display: flex; align-items: baseline; gap: 8px; font-size: .92rem; color: var(--ink-2); padding: 4px 22px; border-left: 1px solid var(--line); }
.hero-facts li:first-child { padding-left: 0; border-left: none; }
.hero-facts .num { font-size: 1.22rem; color: var(--sea-700); }

/* Sóng biển ngăn section */
.wave { display: block; width: 100%; height: 54px; color: var(--foam); }
.wave.flip { transform: scaleY(-1); }
.wave svg { width: 100%; height: 100%; display: block; }

/* ---------- Phiếu lương / thẻ sổ cái (chữ ký thiết kế) ---------- */
.ledger-stage { position: relative; min-height: 420px; }
.ledger {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 22px 24px 18px; max-width: 400px;
  position: relative;
}
.ledger-head { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 10px; margin-bottom: 6px; }
.ledger-head strong { font-family: var(--f-display); font-size: .9rem; letter-spacing: .06em; }
.ledger-head span { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-2); }
.ledger-row { display: flex; align-items: baseline; gap: 8px; padding: 8.5px 0; font-size: .88rem; color: var(--ink-2); }
.ledger-row + .ledger-row { border-top: 1px dashed var(--line); }
.ledger-row .fill { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.ledger-row .num { color: var(--ink); font-size: .9rem; }
.ledger-row.total { border-top: 2px solid var(--ink); margin-top: 4px; padding-top: 12px; color: var(--ink); font-weight: 650; }
.ledger-row.total .num { font-size: 1.14rem; color: var(--sea-700); font-weight: 700; }
.ledger-row .tag-ok { font-family: var(--f-mono); font-size: .68rem; color: var(--ok); font-weight: 600; }

.ledger-stamp {
  position: absolute; right: -14px; top: -18px; rotate: 7deg;
  border: 2.5px solid var(--ok); color: var(--ok); border-radius: 10px;
  font-family: var(--f-mono); font-weight: 700; font-size: .78rem; letter-spacing: .1em;
  padding: 7px 12px; background: rgba(255, 255, 255, .93);
  box-shadow: var(--shadow);
}
.chip-float {
  position: absolute; display: inline-flex; align-items: center; gap: 7px;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: var(--shadow); padding: 8px 14px;
  font-size: .84rem; font-weight: 600; color: var(--ink);
}
.chip-float .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }

/* ---------- Section chung ---------- */
.section { padding: 74px 0; }
.section.tint { background: var(--foam); }
.sec-head { max-width: 640px; margin-bottom: 40px; }
.sec-head p { margin-top: 12px; color: var(--ink-2); }

/* ---------- Thẻ dịch vụ ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.svc-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.svc-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.svc-card::before {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 5px;
  background: linear-gradient(180deg, var(--azure), var(--sea-600));
}
.svc-card h3 { font-size: 1.4rem; }
.svc-card .who { font-size: .88rem; color: var(--sea-700); background: var(--tint); border-radius: 8px; padding: 8px 12px; }
.svc-card ul { list-style: none; display: grid; gap: 8px; }
.svc-card ul li { padding-left: 26px; position: relative; color: var(--ink-2); font-size: .95rem; }
.svc-card ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--azure); font-weight: 700; }
.svc-card .btn { align-self: flex-start; margin-top: 6px; }

/* ---------- 3 thẻ dịch vụ ---------- */
.svc-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 960px) { .svc-grid.three { grid-template-columns: 1fr; } }

/* ---------- Về Nhân Kiệt ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: start; }
.about-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.about-photos img {
  width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}
.about-photos .ph-wide { grid-column: 1 / -1; aspect-ratio: 16 / 8.6; }
.about-photos .ph-sq { aspect-ratio: 4 / 3.4; }
.about-caption { font-size: .8rem; color: var(--ink-2); margin-top: 8px; }
.about-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.about-badges span {
  font-size: .8rem; font-weight: 600; color: var(--sea-700);
  background: var(--tint); border-radius: 999px; padding: 6px 13px;
}
/* Chứng nhận ISO — hàng riêng, nổi bật hơn badge thường */
.iso-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.iso-row span {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 600; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--teal-line); border-radius: 10px;
  padding: 8px 13px; box-shadow: var(--shadow);
}
.iso-row span::before { content: "◆"; color: var(--teal); font-size: .7rem; }
@media (max-width: 960px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Tường logo khách hàng ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.logo-wall .lw {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow); padding: 10px 14px; display: grid; place-items: center;
  aspect-ratio: 5 / 2; transition: transform .18s ease, box-shadow .18s ease;
}
.logo-wall .lw:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.logo-wall img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-wall .lw-text { font-family: var(--f-display); font-weight: 800; letter-spacing: .02em; font-size: 1.15rem; }
.logo-wall .lw-lego { color: #d01012; }
.logo-wall .lw-pandora { font-family: Georgia, 'Times New Roman', serif; letter-spacing: .28em; font-weight: 600; font-size: .98rem; color: #2b2b2b; }
@media (max-width: 960px) { .logo-wall { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .logo-wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; } .logo-wall .lw { padding: 7px 9px; } }

/* ---------- Thanh cờ ngôn ngữ (hiển thị thẳng, trên header) ---------- */
.lang-switch { display: none; }
.lang-bar { background: var(--ink); }
.lang-bar .wrap {
  display: flex; align-items: center; justify-content: flex-end; gap: 5px;
  min-height: 36px; padding-top: 4px; padding-bottom: 4px; flex-wrap: wrap;
}
.lang-bar .lb-label {
  display: inline-flex; align-items: center; gap: 6px; margin-right: auto;
  font-family: var(--f-mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: #9fbdd2;
}
.lang-bar a {
  display: grid; place-items: center; padding: 4px; border-radius: 6px;
  opacity: .78; transition: opacity .15s ease, background .15s ease, transform .12s ease;
  line-height: 0;
}
.lang-bar a svg { border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); display: block; }
.lang-bar a:hover { opacity: 1; background: rgba(255, 255, 255, .14); transform: translateY(-1px); }
.lang-bar a.cur { opacity: 1; background: rgba(255, 255, 255, .18); }
.lang-bar a.cur svg { box-shadow: 0 0 0 2px var(--cyan); }
@media (max-width: 720px) {
  /* Cờ to hơn cho dễ bấm bằng ngón tay (chuẩn tối thiểu 36px) */
  .lang-bar .wrap { gap: 3px; padding-top: 6px; padding-bottom: 6px; }
  .lang-bar a { padding: 10px 6px; }
  .lang-bar a svg { width: 24px; height: 17px; }
}
@media (max-width: 520px) {
  .lang-bar .lb-label span { display: none; }
  .lang-bar .lb-label { margin-right: 6px; }
}

/* ---------- Case study cung ứng ---------- */
.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.case {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.case:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.case .case-num { font-family: var(--f-mono); font-weight: 600; font-size: 1.5rem; color: var(--sea-700); }
.case h3 { font-size: 1.02rem; margin: 4px 0 6px; }
.case p { font-size: .88rem; color: var(--ink-2); }
@media (max-width: 960px) { .case-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .case-grid { grid-template-columns: 1fr; } }

/* ---------- Lưới điểm mạnh ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat-grid.grid-3 { grid-template-columns: repeat(3, 1fr); }
.feat {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feat .ico {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(150deg, var(--tint), var(--white));
  box-shadow: inset 0 0 0 1px var(--line), 0 4px 12px rgba(3, 105, 161, .10);
  display: grid; place-items: center; margin-bottom: 14px; color: var(--sea-600);
}
/* Xoay vòng 3 sắc độ cho ô icon — sinh động có hệ thống */
.feat:nth-child(3n+2) .ico {
  background: linear-gradient(150deg, var(--teal-tint), var(--white));
  box-shadow: inset 0 0 0 1px var(--teal-line), 0 4px 12px rgba(15, 118, 110, .10);
  color: var(--teal);
}
.feat:nth-child(3n) .ico {
  background: linear-gradient(150deg, var(--rose-tint), var(--white));
  box-shadow: inset 0 0 0 1px var(--rose-line), 0 4px 12px rgba(196, 15, 57, .10);
  color: var(--brand-red);
}
.feat h3 { font-size: 1.02rem; margin-bottom: 7px; }
.feat p { font-size: .9rem; color: var(--ink-2); }

/* ---------- Dòng số liệu kiểu sổ cái ---------- */
.tally { display: grid; gap: 0; border-top: 2px solid var(--ink); }
.tally-row {
  display: flex; align-items: baseline; gap: 12px; padding: 15px 4px;
  border-bottom: 1px dashed var(--line);
}
.tally-row dt { font-weight: 600; }
.tally-row .fill { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-5px); }
.tally-row dd { font-family: var(--f-mono); font-weight: 600; color: var(--sea-700); text-align: right; }
.tally-row dd small { display: block; font-family: var(--f-body); font-weight: 400; color: var(--ink-2); font-size: .8rem; }

/* ---------- Bảng ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 560px; }
.tbl th {
  text-align: left; font-family: var(--f-mono); font-size: .74rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--sea-700); background: var(--foam);
  padding: 12px 16px; border-bottom: 2px solid var(--line);
}
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--tint); vertical-align: top; color: var(--ink-2); }
.tbl tr:last-child td { border-bottom: none; }
.tbl td:first-child { color: var(--ink); font-weight: 600; }
.tbl .num { color: var(--sea-700); white-space: nowrap; }

/* ---------- Quy trình ---------- */
.steps { display: grid; gap: 0; counter-reset: step; }
.step {
  display: grid; grid-template-columns: 58px 1fr; gap: 18px; padding: 20px 0;
  border-bottom: 1px dashed var(--line);
}
.step:last-child { border-bottom: none; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--f-mono); font-weight: 600; font-size: 1.3rem; color: var(--azure);
  border-right: 2px solid var(--tint); padding-right: 16px; line-height: 1.2;
}
.step h3 { font-size: 1.05rem; margin-bottom: 5px; }
.step p { color: var(--ink-2); font-size: .95rem; }

/* ---------- Chips khách hàng ---------- */
.client-strip { display: flex; flex-wrap: wrap; gap: 10px; }
.client-strip span {
  font-family: var(--f-mono); font-size: .82rem; font-weight: 500; color: var(--sea-700);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 15px;
}

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; max-width: 780px; margin: 0 auto; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 22px; box-shadow: var(--shadow);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.faq details:hover { box-shadow: var(--shadow-lg); border-color: var(--azure); }
.faq summary {
  cursor: pointer; font-weight: 650; padding: 18px 0; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq summary:hover { color: var(--sea-700); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.25rem; color: var(--azure); flex: none; transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details[open] summary { border-bottom: 1px dashed var(--line); }
.faq .faq-a { padding: 15px 0 20px; color: var(--ink-2); font-size: .96rem; }
.faq .faq-a p + p { margin-top: 9px; }

/* ---------- CTA cuối ---------- */
.cta-final {
  background: linear-gradient(140deg, var(--sea-900), var(--sea-600) 70%, var(--azure));
  color: #fff; border-radius: var(--radius-lg);
  padding: 52px 48px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: start;
  box-shadow: var(--shadow-lg);
}
.cta-final h2 { color: #fff; margin-bottom: 12px; }
.cta-final p { color: #d3ecfb; }
.cta-final .contact-card {
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--radius); padding: 24px;
  align-self: stretch; display: flex; flex-direction: column; justify-content: center; gap: 15px;
}
.cta-final .contact-card a { color: #fff; text-decoration: none; font-weight: 650; }
.cta-final .contact-card .row { display: flex; gap: 11px; align-items: center; font-size: .97rem; }
.cta-final .contact-card .row svg { flex: none; opacity: .85; }
.cta-final .btn-hotline { font-size: 1.05rem; padding: 12px 22px; justify-content: center; white-space: normal; text-align: center; line-height: 1.25; }
/* Nút hotline 2 dòng: số điện thoại nổi, tên người phụ trách nhỏ bên dưới */
.ph-lines { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.ph-lines b { font-size: 1.08rem; font-weight: 750; letter-spacing: .01em; }
.ph-lines i { font-style: normal; font-size: .76rem; font-weight: 500; opacity: .92; margin-top: 2px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--ink); color: #b9cfdf; margin-top: 84px; }
.site-foot .wrap { padding: 46px 22px 30px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 34px; padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.site-foot h4 { color: #fff; font-family: var(--f-display); font-size: .95rem; margin-bottom: 13px; letter-spacing: .03em; }
.site-foot a { color: #b9cfdf; text-decoration: none; }
.site-foot a:hover { color: #fff; text-decoration: underline; }
.site-foot ul { list-style: none; display: grid; gap: 9px; font-size: .92rem; }
.site-foot p { font-size: .92rem; }
.foot-note { padding-top: 20px; font-size: .82rem; color: #7d9cb3; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ---------- Hero phụ (trang dịch vụ) ---------- */
.page-hero { padding: 58px 0 0; }
.page-hero .crumbs { font-size: .84rem; color: var(--ink-2); margin-bottom: 16px; }
.page-hero .crumbs a { color: var(--sea-600); text-decoration: none; }
.page-hero .crumbs a:hover { text-decoration: underline; }

/* ---------- Hộp chú thích pháp lý ---------- */
.legal-note {
  border-left: 4px solid var(--azure); background: var(--foam);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 18px 22px;
  font-size: .93rem; color: var(--ink-2);
}
.legal-note strong { color: var(--ink); }

/* ---------- Hai cột ---------- */
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
/* Grid item mặc định min-width:auto — không co được dưới bề rộng bảng bên trong */
.cols-2 > *, .svc-grid > *, .feat-grid > *, .hero-grid > *,
.cta-final > *, .lf-grid > *, .about-grid > *, .promo-grid > *, .case-grid > * { min-width: 0; }

/* ---------- Máy tính ước chi phí BHXH ---------- */
.calc {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 28px; margin-top: 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start;
}
.calc h3 { margin-bottom: 6px; }
.calc .calc-note { font-size: .85rem; color: var(--ink-2); margin-bottom: 18px; }
.calc .field { margin-bottom: 15px; }
.calc label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.calc input, .calc select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--line); border-radius: 10px;
  font-family: var(--f-mono); font-size: 1rem; color: var(--ink); background: var(--white);
}
.calc input:focus, .calc select:focus { outline: 3px solid var(--azure); outline-offset: 1px; border-color: var(--azure); }
.calc .calc-out .ledger { max-width: none; }
.calc .calc-dis { font-size: .8rem; color: var(--ink-2); margin-top: 12px; }
@media (max-width: 720px) { .calc { grid-template-columns: 1fr; padding: 20px; } }

/* ---------- Form nhận thông tin khách hàng (trong cta-final) ---------- */
.lead-form { margin-top: 22px; }
.lf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.lf-field label { display: block; font-size: .84rem; font-weight: 600; color: #d3ecfb; margin-bottom: 5px; }
.lf-field input, .lf-field select, .lead-form textarea {
  width: 100%; padding: 11px 13px; border: 1.5px solid rgba(255, 255, 255, .35); border-radius: 10px;
  background: rgba(255, 255, 255, .96); color: var(--ink); font-family: var(--f-body); font-size: .95rem;
}
.lf-field input:focus, .lf-field select:focus, .lead-form textarea:focus { outline: 3px solid var(--cyan); outline-offset: 1px; }
.lead-form textarea { margin-top: 12px; min-height: 64px; resize: vertical; }
.lf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lf-submit {
  margin-top: 14px; width: 100%; padding: 14px 20px; border: none; border-radius: 12px; cursor: pointer;
  background: var(--brand-red); color: #fff; font-family: var(--f-body); font-weight: 750; font-size: 1.02rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
  transition: background .18s ease, transform .12s ease;
}
.lf-submit:hover { background: var(--brand-red-deep); }
.lf-submit:active { transform: translateY(1px); }
.lf-status { margin-top: 10px; font-size: .9rem; color: #d3ecfb; min-height: 1.3em; }
.lf-status.ok { color: #a7f3c9; font-weight: 650; }
.lf-status.err { color: #ffd7d7; }
@media (max-width: 560px) { .lf-grid { grid-template-columns: 1fr; } }

/* ---------- Ưu đãi khởi động ---------- */
#uu-dai .eyebrow { color: var(--brand-red); }
#uu-dai .eyebrow::before { background: var(--brand-red); }
.promo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.promo {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px 24px; box-shadow: var(--shadow); position: relative;
  border-top: 3px solid var(--sea-500);
  transition: transform .2s ease, box-shadow .2s ease;
}
.promo:nth-child(2) { border-top-color: var(--teal); }
.promo:nth-child(3) { border-top-color: var(--brand-red); }
.promo:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.promo .free-tag {
  display: inline-block; font-family: var(--f-mono); font-size: .72rem; font-weight: 700;
  letter-spacing: .1em; color: #fff; background: var(--brand-red);
  border-radius: 999px; padding: 5px 13px; margin-bottom: 14px;
}
@media (max-width: 720px) { .promo .free-tag { font-size: .78rem; padding: 6px 14px; } }
.promo h3 { font-size: 1.08rem; margin-bottom: 9px; }
.promo p { font-size: .93rem; color: var(--ink-2); }
@media (max-width: 860px) { .promo-grid { grid-template-columns: 1fr; } }

/* ---------- Dải ưu đãi rút gọn (trang dịch vụ) ---------- */
.promo-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  background: linear-gradient(120deg, var(--tint), var(--foam));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 15px 20px; font-size: .93rem; color: var(--ink);
}
.promo-strip strong { color: var(--sea-700); }

/* ---------- Bài viết mới nhất (trang chủ) ---------- */
.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.post-tile {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 24px 26px; display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--azure); color: inherit; }
.post-tile .pt-date { font-family: var(--f-mono); font-size: .74rem; color: var(--sea-600); letter-spacing: .06em; }
.post-tile h3 { font-size: 1.06rem; line-height: 1.35; }
.post-tile p { font-size: .9rem; color: var(--ink-2); flex: 1; }
.post-tile .pt-more { font-weight: 650; color: var(--sea-600); font-size: .9rem; }
@media (max-width: 960px) { .posts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .posts-grid { grid-template-columns: 1fr; } }

/* ---------- Copy số điện thoại + toast ---------- */
.copy-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; flex: none;
  border: 1px solid rgba(255, 255, 255, .4); border-radius: 8px; background: transparent;
  color: inherit; cursor: pointer; transition: background .18s ease;
}
.copy-btn:hover { background: rgba(255, 255, 255, .15); }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(16px);
  background: var(--ink); color: #fff; font-weight: 600; font-size: .92rem;
  padding: 11px 20px; border-radius: 999px; box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease; z-index: 90;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 720px) { .toast { bottom: 88px; } }

/* ---------- Thanh gọi dính đáy (mobile) ---------- */
.callbar { display: none; }
@media (max-width: 720px) {
  .callbar {
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--line);
  }
  .callbar a {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    height: 44px; padding: 0 10px; border-radius: 11px; text-decoration: none;
    font-weight: 700; font-size: .86rem; line-height: 1; white-space: nowrap;
  }
  .callbar a svg { width: 15px; height: 15px; flex: none; }
  .callbar .cb-call { background: var(--brand-red); color: #fff; }
  .callbar .cb-zalo { background: var(--sea-600); color: #fff; }
  body { padding-bottom: 62px; }
}
@media (max-width: 380px) {
  .callbar a { font-size: .8rem; gap: 5px; padding: 0 6px; }
  .wrap { --pad: 16px; }
  .cta-final { padding: 30px 18px; }
  .svc-card, .promo, .faq details { padding-left: 18px; padding-right: 18px; }
  .seg-list details { padding: 0 14px; }
}

/* ---------- Khối mảng khách hàng (accordion chi tiết) ---------- */
.seg-list { display: grid; gap: 14px; }
.seg-list details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 0 26px; overflow: hidden;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.seg-list details:hover { box-shadow: var(--shadow-lg); border-color: var(--azure); }
.seg-list summary {
  cursor: pointer; list-style: none; padding: 20px 0;
  display: flex; align-items: center; gap: 14px;
}
.seg-list summary::-webkit-details-marker { display: none; }
.seg-list summary .ico {
  width: 44px; height: 44px; border-radius: 12px; background: var(--tint); flex: none;
  display: grid; place-items: center; color: var(--sea-600);
}
.seg-list summary h3 { font-size: 1.12rem; flex: 1; }
.seg-list summary .seg-toggle { font-family: var(--f-mono); font-size: 1.3rem; color: var(--azure); flex: none; }
.seg-list details[open] summary { border-bottom: 1px dashed var(--line); }
.seg-list details[open] .seg-toggle::before { content: "−"; }
.seg-list details:not([open]) .seg-toggle::before { content: "+"; }
.seg-body { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; padding: 20px 0 24px; }
.seg-col h4 {
  font-family: var(--f-mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--sea-700); margin-bottom: 10px;
}
.seg-col ul { list-style: none; display: grid; gap: 7px; }
.seg-col li { padding-left: 22px; position: relative; font-size: .93rem; color: var(--ink-2); }
.seg-col.dt li::before { content: "•"; position: absolute; left: 4px; color: var(--sea-500); font-weight: 700; }
.seg-col.xl li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.seg-col ul.rr li::before { content: "!"; position: absolute; left: 5px; color: var(--brand-red); font-weight: 800; }
.seg-col h4 + ul + h4 { margin-top: 16px; }
.seg-list summary .ico {
  background: linear-gradient(150deg, var(--tint), var(--white));
  box-shadow: inset 0 0 0 1px var(--line), 0 4px 12px rgba(3, 105, 161, .10);
}
.seg-list details:nth-of-type(3n+2) summary .ico {
  background: linear-gradient(150deg, var(--teal-tint), var(--white));
  box-shadow: inset 0 0 0 1px var(--teal-line), 0 4px 12px rgba(15, 118, 110, .10);
  color: var(--teal);
}
.seg-list details:nth-of-type(3n) summary .ico {
  background: linear-gradient(150deg, var(--rose-tint), var(--white));
  box-shadow: inset 0 0 0 1px var(--rose-line), 0 4px 12px rgba(196, 15, 57, .10);
  color: var(--brand-red);
}
.seg-anchor {
  grid-column: 1 / -1; background: var(--foam); border-left: 4px solid var(--azure);
  border-radius: 0 var(--radius) var(--radius) 0; padding: 13px 18px;
  font-size: .92rem; color: var(--ink);
}
@media (max-width: 720px) { .seg-body { grid-template-columns: 1fr; } .seg-list details { padding: 0 18px; } }

/* ============================================================
   Hiệu ứng động — dàn dựng quanh "phiếu lương tự ghi"
   ============================================================ */

/* Thanh tiến trình đọc trang */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 120;
  background: linear-gradient(90deg, var(--azure), var(--sea-600) 60%, var(--brand-red));
  pointer-events: none;
}

/* Phiếu lương tự ghi từng dòng khi tải trang */
html.js .ledger-stage .ledger-head,
html.js .ledger-stage .ledger-row { opacity: 0; }
html.js .ledger-stage.play .ledger-head,
html.js .ledger-stage.play .ledger-row { animation: row-in .5s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes row-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }

/* Tem đóng RẦM xuống như dấu mộc */
html.js .ledger-stage .ledger-stamp { opacity: 0; }
html.js .ledger-stage.play .ledger-stamp { animation: stamp-in .5s cubic-bezier(.2, 1.5, .4, 1) forwards; }
@keyframes stamp-in {
  0% { opacity: 0; transform: scale(2.6); }
  70% { opacity: 1; transform: scale(.94); }
  100% { opacity: 1; transform: scale(1); }
}
.ledger.thud { animation: thud .35s ease; }
@keyframes thud {
  0% { transform: translateY(0); }
  30% { transform: translateY(3px) rotate(.4deg); }
  100% { transform: none; }
}

/* Chip nổi bật lên sau tem */
html.js .ledger-stage .chip-float { opacity: 0; }
html.js .ledger-stage.play .chip-float { animation: chip-in .45s cubic-bezier(.2, .9, .3, 1.2) forwards; }
@keyframes chip-in { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }

/* Thẻ phiếu lương nghiêng 3D theo chuột (JS đặt transform) */
.ledger-stage .ledger { transition: transform .3s cubic-bezier(.2, .7, .2, 1); will-change: transform; }

/* Ánh sáng quét trên nút hành động */
.btn-primary, .btn-hotline, .lf-submit { position: relative; overflow: hidden; }
.btn-primary::after, .btn-hotline::after, .lf-submit::after {
  content: ""; position: absolute; top: 0; height: 100%; width: 45%; left: -70%;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-20deg); pointer-events: none;
}
.btn-primary:hover::after, .btn-hotline:hover::after, .lf-submit:hover::after { animation: sheen .65s ease; }
@keyframes sheen { to { left: 135%; } }

/* Số vừa cập nhật trong máy tính nhấp nhẹ */
.num-tick { animation: num-tick .35s ease; }
@keyframes num-tick { 40% { transform: scale(1.12); color: var(--azure); } }

@media (prefers-reduced-motion: reduce) {
  html.js .ledger-stage .ledger-head, html.js .ledger-stage .ledger-row,
  html.js .ledger-stage .ledger-stamp, html.js .ledger-stage .chip-float {
    opacity: 1 !important; animation: none !important;
  }
  .scroll-progress { display: none; }
  .btn-primary::after, .btn-hotline::after, .lf-submit::after { display: none; }
}

/* ---------- Reveal (chỉ ẩn khi chắc chắn có JS — html.js do inline script gắn) ---------- */
html.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html.js .reveal { opacity: 1; transform: none; } }

/* ---------- Skip link ---------- */
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  background: var(--white); color: var(--sea-700); font-weight: 650;
  padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow-lg);
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .ledger-stage { min-height: 0; }
  .ledger { margin: 0 auto; }
  .feat-grid, .feat-grid.grid-3 { grid-template-columns: 1fr 1fr; }
  .cta-final { grid-template-columns: 1fr; padding: 38px 28px; }
  .cols-2 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Băng chuyền dịch vụ (chỉ trên mobile) ---------- */
.svc-dots { display: none; }

@media (max-width: 720px) {
  /* Thẻ dịch vụ trượt ngang, tự chạy qua lại — gọn màn hình và bắt mắt */
  .svc-grid, .svc-grid.three {
    display: grid; grid-auto-flow: column; grid-auto-columns: 84%;
    grid-template-columns: none; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth; scrollbar-width: none;
    margin: 0 calc(var(--pad, 22px) * -1);
    padding: 6px var(--pad, 22px) 12px;
  }
  .svc-grid::-webkit-scrollbar { display: none; }
  .svc-grid > * { scroll-snap-align: center; }

  .svc-dots {
    display: flex; justify-content: center; align-items: center; gap: 7px; margin-top: 2px;
  }
  .svc-dots i {
    width: 7px; height: 7px; border-radius: 50%; background: var(--line);
    transition: width .25s ease, background .25s ease;
  }
  .svc-dots i.on { width: 22px; border-radius: 99px; background: var(--sea-600); }
}
@media (prefers-reduced-motion: reduce) {
  .svc-grid { scroll-behavior: auto; }
}

@media (max-width: 1099px) {

  /* Mobile + tablet: hiện thẳng toàn bộ menu thành dải chip cuộn ngang — trực quan hơn nút ba gạch.
     Dưới 1024px thanh menu ngang không đủ chỗ cho 7 mục nên phải xuống hàng thành chip. */
  .nav-toggle { display: none; }
  .site-head .wrap {
    flex-wrap: wrap; height: auto; gap: 8px;
    padding-top: 10px; padding-bottom: 0;
  }
  .brand { margin-right: auto; }
  .site-head .btn-hotline {
    display: inline-flex; order: 2; font-size: .82rem; padding: 8px 13px; gap: 6px;
  }
  .site-head .btn-hotline svg { width: 13px; height: 13px; }
  .nav {
    order: 3; display: flex; flex-direction: row; align-items: center;
    gap: 6px; padding: 4px var(--pad, 22px) 9px;
    margin: 0 calc(var(--pad, 22px) * -1);
    width: calc(100% + var(--pad, 22px) * 2);
    overflow-x: auto; overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    background: transparent; border: 0; box-shadow: none; position: static;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    flex: none; font-size: .82rem; font-weight: 600; padding: 8px 13px;
    background: var(--foam); border: 1px solid var(--line); border-radius: 999px;
  }
  .nav a[aria-current="page"] { background: var(--sea-600); border-color: var(--sea-600); color: #fff; }
  .nav .btn-hotline { display: none; }   /* đã có thanh gọi dính đáy màn hình */
}

/* Tablet: không có thanh gọi dính đáy (chỉ chạy dưới 720px) nên giữ nút gọi trong dải chip */
@media (min-width: 721px) and (max-width: 1099px) {
  /* .nav a đặt nền chip nhạt — phải thắng nó để nút gọi giữ đúng màu đỏ thương hiệu */
  .nav a.btn-hotline {
    display: inline-flex; order: -1; margin-right: 4px;
    font-size: .84rem; padding: 8px 15px;
    background: var(--brand-red); border-color: var(--brand-red); color: #fff;
  }
  .nav a.btn-hotline:hover {
    background: var(--brand-red-deep); border-color: var(--brand-red-deep); color: #fff;
  }
}

@media (max-width: 520px) {
  body { font-size: 15.5px; }
  .feat-grid, .feat-grid.grid-3 { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .section { padding: 56px 0; }
  .ledger { padding: 18px 16px 14px; }
  .ledger-stamp { right: -6px; }
  .chip-float { position: static; margin-top: 12px; }
  .ledger-stage { display: grid; justify-items: center; }
  .step { grid-template-columns: 46px 1fr; gap: 13px; }
}
