/* =========================================================
   Đại Nam – Công ty CP Đầu tư Xây dựng Hạ tầng
   ========================================================= */

:root {
  --ink: #0e1a2b;
  --navy: #13243b;
  --steel: #1e3655;
  --accent: #e8a33d;
  --accent-dark: #c9851f;
  --paper: #f5f3ee;
  --white: #ffffff;
  --text: #2a3443;
  --muted: #667085;
  --line: #e3e0d8;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(14, 26, 43, .18);
  --header-h: 76px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 600; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 40px); margin-inline: auto; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-dark); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); }
.eyebrow--light { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; font-family: inherit;
  transition: transform .2s, background .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--accent { background: var(--accent); color: var(--ink); box-shadow: 0 8px 20px -8px rgba(232, 163, 61, .7); }
.btn--accent:hover { background: #f0b456; }
.btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255, 255, 255, .06); }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .3s, box-shadow .3s, height .3s;
}
.header.is-scrolled {
  background: rgba(14, 26, 43, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .4);
  --header-h: 66px;
}
.header__inner { display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--steel); }
.brand__mark { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; color: var(--white); }
.brand__text strong { font-size: 1.15rem; letter-spacing: .08em; font-weight: 800; }
.brand__text small { font-size: .7rem; letter-spacing: .06em; opacity: .7; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  color: rgba(255, 255, 255, .82); font-size: .92rem; font-weight: 500;
  padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s;
}
.nav a:hover, .nav a.is-active { color: var(--white); background: rgba(255, 255, 255, .08); }
.nav .nav__cta { display: none; }

.header__phone {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; background: var(--accent); color: var(--ink);
  font-weight: 700; font-size: .92rem; transition: background .2s;
}
.header__phone:hover { background: #f0b456; }
.header__phone svg { width: 16px; height: 16px; }

.nav-toggle {
  display: none; width: 44px; height: 44px; margin-left: auto;
  background: transparent; border: 0; cursor: pointer; padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% 10%, #22406a 0%, transparent 60%), var(--ink);
  color: var(--white);
  padding: calc(var(--header-h) + 70px) 0 0;
}
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  mask-image: linear-gradient(to bottom, #000 40%, transparent 100%);
}
.hero__inner { position: relative; display: grid; grid-template-columns: 1.25fr .85fr; gap: 40px; align-items: center; }
.hero h1 {
  color: var(--white); font-size: clamp(2.2rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; margin-bottom: 22px;
}
.hero h1 span { color: var(--accent); font-weight: 700; }
@media (min-width: 1081px) { .hero h1 span { white-space: nowrap; } }
.hero__lead { font-size: 1.08rem; color: rgba(255, 255, 255, .78); max-width: 540px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__art svg { width: 100%; height: auto; }
.hero__art .draw { stroke-dasharray: 1200; stroke-dashoffset: 1200; animation: draw 2.6s ease forwards; }
.hero__art .draw:nth-of-type(2n) { animation-delay: .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.stats {
  position: relative; list-style: none; padding: 0; margin: 64px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
.stats li { padding: 28px 24px; border-right: 1px solid rgba(255, 255, 255, .12); }
.stats li:last-child { border-right: 0; }
.stats strong { display: block; font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; color: var(--white); line-height: 1; margin-bottom: 8px; }
.stats span { font-size: .88rem; color: rgba(255, 255, 255, .65); }

/* ---------- Sections ---------- */
.section { padding: 110px 0; }
.section--tint { background: var(--paper); }
.section__head { max-width: 680px; margin-bottom: 56px; }
.section__head p:last-child { color: var(--muted); font-size: 1.05rem; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 64px; align-items: start; }
.about__text > p { color: var(--muted); font-size: 1.04rem; }
.about__text strong { color: var(--ink); }
.values { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.values li { display: flex; gap: 18px; align-items: flex-start; }
.values span {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; font-weight: 700; font-size: .9rem;
  background: var(--paper); color: var(--accent-dark); border: 1px solid var(--line);
}
.values h3 { margin-bottom: 2px; }
.values p { margin: 0; color: var(--muted); font-size: .95rem; }

.legal {
  background: var(--navy); color: var(--white); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow);
  position: sticky; top: calc(var(--header-h) + 24px);
}
.legal__head { padding: 30px 30px 24px; background: linear-gradient(135deg, var(--steel), var(--navy)); border-bottom: 1px solid rgba(255, 255, 255, .1); }
.legal__head h3 { color: var(--white); font-size: 1.05rem; line-height: 1.4; margin: 0 0 8px; }
.legal__en { margin: 0; font-size: .72rem; letter-spacing: .04em; color: rgba(255, 255, 255, .55); }
.legal dl { margin: 0; padding: 10px 30px 26px; }
.legal dl > div { display: grid; grid-template-columns: 130px 1fr; gap: 12px; padding: 13px 0; border-bottom: 1px dashed rgba(255, 255, 255, .12); }
.legal dl > div:last-child { border-bottom: 0; }
.legal dt { font-size: .82rem; color: rgba(255, 255, 255, .55); }
.legal dd { margin: 0; font-size: .92rem; font-weight: 500; }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 3px 12px; border-radius: 999px; background: rgba(52, 199, 120, .15); color: #6ee2a2; font-size: .82rem;
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #34c778; box-shadow: 0 0 0 3px rgba(52, 199, 120, .25); }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.service {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service h3 { margin: 18px 0 10px; }
.service p { color: var(--muted); font-size: .93rem; margin: 0; }
.service__icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  background: var(--paper); color: var(--steel);
}
.service__icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.service--featured {
  grid-column: span 2; grid-row: span 2;
  background: var(--navy); color: var(--white); border-color: var(--navy);
  padding: 38px 36px; position: relative; overflow: hidden;
}
.service--featured::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%;
  border: 40px solid rgba(232, 163, 61, .09);
}
.service--featured h3 { color: var(--white); font-size: 1.6rem; margin-top: 22px; }
.service--featured p { color: rgba(255, 255, 255, .75); font-size: 1rem; }
.service--featured .service__icon { background: rgba(232, 163, 61, .15); color: var(--accent); width: 64px; height: 64px; }
.service--featured .service__icon svg { width: 34px; height: 34px; }
.service__tag {
  position: absolute; top: 38px; right: 36px;
  font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(232, 163, 61, .4); padding: 4px 12px; border-radius: 999px;
}
.service__list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; position: relative; z-index: 1; }
.service__list li { font-size: .9rem; display: flex; gap: 10px; color: rgba(255, 255, 255, .9); }
.service__list li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 4px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2 7 10.5l4.5-5' fill='none' stroke='%230e1a2b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat; }

/* ---------- Process ---------- */
.process { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.process li { position: relative; padding: 30px 26px 26px; border-top: 3px solid var(--line); transition: border-color .3s; }
.process li:hover { border-color: var(--accent); }
.process li::before {
  content: ""; position: absolute; top: -9px; left: 26px; width: 15px; height: 15px; border-radius: 50%;
  background: var(--white); border: 3px solid var(--accent);
}
.process__num { display: block; font-size: 3rem; font-weight: 800; color: var(--paper); -webkit-text-stroke: 1.5px var(--line); line-height: 1; margin-bottom: 14px; }
.process li:hover .process__num { -webkit-text-stroke-color: var(--accent); }
.process p { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- Business lines ---------- */
.lines { background: var(--white); border-radius: 20px; border: 1px solid var(--line); padding: 26px; box-shadow: var(--shadow); }
.lines__toolbar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: inherit; font-size: .88rem; font-weight: 500; cursor: pointer;
  padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--text);
  transition: all .2s;
}
.chip:hover { border-color: var(--steel); }
.chip.is-active { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chip .count { opacity: .55; margin-left: 4px; font-size: .8em; }
.search { position: relative; flex: 1 1 260px; max-width: 340px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; }
.search input {
  width: 100%; font-family: inherit; font-size: .92rem; padding: 10px 14px 10px 42px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper); outline: none; transition: border-color .2s, background .2s;
}
.search input:focus { border-color: var(--steel); background: var(--white); }

.lines__table { max-height: 560px; overflow: auto; border-top: 1px solid var(--line); }
.line {
  display: grid; grid-template-columns: 70px 1fr auto; gap: 18px; align-items: start;
  padding: 14px 6px; border-bottom: 1px solid var(--line);
}
.line__code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 600; color: var(--steel); background: var(--paper); border-radius: 8px; padding: 2px 0; text-align: center; font-size: .9rem; }
.line__name { font-weight: 500; color: var(--ink); font-size: .95rem; }
.line__detail { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.line__tag { font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.line__tag--xd { background: #e7eef8; color: var(--steel); }
.line__tag--tm { background: #fbf0dc; color: #9a6413; }
.line__tag--dv { background: #e6f4ec; color: #237049; }
.line--main { background: linear-gradient(90deg, rgba(232, 163, 61, .1), transparent); }
.line--main .line__name::after { content: "Ngành chính"; margin-left: 8px; font-size: .68rem; font-weight: 700; color: var(--accent-dark); text-transform: uppercase; letter-spacing: .06em; }
.lines__empty { text-align: center; color: var(--muted); padding: 30px 0 10px; margin: 0; }

/* ---------- Offices ---------- */
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.office {
  position: relative; padding: 34px; border-radius: 20px; border: 1px solid var(--line); background: var(--white);
  overflow: hidden;
}
.office::before {
  content: ""; position: absolute; inset: 0 0 auto auto; width: 180px; height: 180px;
  background-image: radial-gradient(var(--line) 1.5px, transparent 1.5px); background-size: 14px 14px;
  mask-image: radial-gradient(circle at top right, #000, transparent 70%);
}
.office__badge { display: inline-block; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--ink); margin-bottom: 18px; }
.office__badge--alt { background: var(--steel); color: var(--white); }
.office h3 { font-size: 1.5rem; }
.office__addr { color: var(--muted); }
.office dl { margin: 22px 0 0; display: grid; gap: 10px; }
.office dl > div { display: flex; gap: 12px; font-size: .93rem; }
.office dt { color: var(--muted); min-width: 100px; }
.office dd { margin: 0; font-weight: 600; color: var(--ink); }
.office dd a { color: var(--accent-dark); }

/* ---------- Contact ---------- */
.contact { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.contact::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.contact__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact h2 { color: var(--white); }
.contact__info > p { color: rgba(255, 255, 255, .72); font-size: 1.04rem; }
.contact__list { list-style: none; padding: 0; margin: 30px 0; display: grid; gap: 18px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__list svg { flex: none; width: 46px; height: 46px; padding: 12px; border-radius: 12px; background: rgba(232, 163, 61, .14); fill: none; stroke: var(--accent); stroke-width: 1.8; }
.contact__list small { display: block; font-size: .78rem; color: rgba(255, 255, 255, .5); text-transform: uppercase; letter-spacing: .08em; }
.contact__list a { font-size: 1.35rem; font-weight: 700; color: var(--accent); }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); aspect-ratio: 16 / 9; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.4) contrast(1.05); }

.form { background: var(--white); color: var(--text); border-radius: 20px; padding: 36px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); display: grid; gap: 16px; }
.form h3 { font-size: 1.4rem; margin-bottom: 6px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--ink); }
.form input, .form select, .form textarea {
  font-family: inherit; font-size: .95rem; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--paper); color: var(--text); outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s; resize: vertical;
}
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--steel); background: var(--white); box-shadow: 0 0 0 4px rgba(30, 54, 85, .1); }
.form .is-invalid { border-color: #d64545; background: #fff5f5; }
.form__note { margin: 0; font-size: .9rem; min-height: 1.4em; }
.form__note.is-ok { color: #237049; }
.form__note.is-err { color: #c03a3a; }

/* ---------- Footer ---------- */
.footer { background: #0a1320; color: rgba(255, 255, 255, .6); font-size: .9rem; padding: 54px 0 0; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer__brand strong { color: var(--white); display: block; margin-bottom: 10px; font-size: .95rem; }
.footer__brand p { margin: 0 0 4px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: flex-start; }
.footer__nav a:hover, .footer__bottom a:hover { color: var(--accent); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: .82rem; }

.call-fab {
  position: fixed; right: 20px; bottom: 20px; z-index: 40; display: none;
  width: 56px; height: 56px; border-radius: 50%; background: var(--accent); color: var(--ink);
  place-items: center; box-shadow: 0 10px 24px -6px rgba(232, 163, 61, .8);
  animation: pulse 2.4s infinite;
}
.call-fab svg { width: 24px; height: 24px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 163, 61, .55); } 50% { box-shadow: 0 0 0 14px rgba(232, 163, 61, 0); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header__phone span { display: none; }
  .header__phone { padding: 10px; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .service--featured { grid-row: auto; }
}

@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .header { background: rgba(14, 26, 43, .96); }
  .nav-toggle { display: block; }
  .header__phone { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ink); padding: 12px 20px 24px; border-top: 1px solid rgba(255, 255, 255, .08);
    transform: translateY(-120%); opacity: 0; visibility: hidden; transition: transform .35s, opacity .35s, visibility .35s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; }
  .nav a { padding: 14px 6px; border-radius: 0; border-bottom: 1px solid rgba(255, 255, 255, .06); font-size: 1rem; }
  .nav .nav__cta { display: block; margin-top: 14px; text-align: center; background: var(--accent); color: var(--ink); border-radius: 999px; border: 0; font-weight: 700; }
  .hero__inner, .about, .contact__inner, .offices { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(2) { border-right: 0; }
  .stats li:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .legal { position: static; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 80px 0; }
  .call-fab { display: grid; }
}

@media (max-width: 600px) {
  .services, .process { grid-template-columns: 1fr; }
  .service--featured { grid-column: auto; padding: 30px 24px; }
  .service__tag { position: static; display: inline-block; margin-top: 18px; }
  .service__list { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .form { padding: 26px 22px; }
  .legal dl > div { grid-template-columns: 1fr; gap: 2px; }
  .legal dl, .legal__head { padding-inline: 22px; }
  .line { grid-template-columns: 58px 1fr; }
  .line__tag { display: none; }
  .lines { padding: 18px; }
  .stats li { padding: 22px 14px; }
  .footer__bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .hero__art .draw { stroke-dashoffset: 0; }
}

/* =========================================================
   Trang phụ: chính sách, điều khoản, 404
   ========================================================= */
.header.is-solid { background: rgba(14, 26, 43, .96); }

.page-hero {
  position: relative; overflow: hidden; background: var(--ink); color: var(--white);
  padding: calc(var(--header-h) + 64px) 0 56px;
}
.page-hero .hero__grid { mask-image: none; opacity: .8; }
.page-hero .container { position: relative; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 14px; }
.page-hero p { color: rgba(255, 255, 255, .72); max-width: 720px; margin: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: rgba(255, 255, 255, .55); margin-bottom: 18px; }
.breadcrumb a:hover { color: var(--accent); }
.page-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; margin-top: 22px; font-size: .85rem; color: rgba(255, 255, 255, .6); }
.page-meta strong { color: var(--white); font-weight: 600; }

.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 56px; align-items: start; padding: 64px 0 100px; }
.toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: .88rem; }
.toc h2 { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--line); counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); transition: color .2s, border-color .2s; }
.toc a::before { content: counter(toc) ". "; }
.toc a:hover, .toc a.is-active { color: var(--ink); border-left-color: var(--accent); }

.prose { max-width: 780px; color: var(--text); }
.prose > section { padding-top: 8px; margin-bottom: 44px; scroll-margin-top: calc(var(--header-h) + 20px); }
.prose h2 { font-size: 1.45rem; display: flex; gap: 12px; align-items: baseline; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.prose h2 .n { color: var(--accent-dark); font-size: 1rem; font-weight: 700; min-width: 28px; }
.prose h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.prose p, .prose li { font-size: 1rem; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--accent-dark); }
.prose a { color: var(--steel); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--accent-dark); }
.prose strong { color: var(--ink); }
.prose table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: .92rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border: 1px solid var(--line); }
.prose th { background: var(--paper); color: var(--ink); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.callout { border-left: 4px solid var(--accent); background: var(--paper); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 0 0 1.2em; }
.callout p:last-child { margin: 0; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.info-card dl { margin: 0; display: grid; gap: 8px; }
.info-card dl > div { display: grid; grid-template-columns: 190px 1fr; gap: 12px; font-size: .94rem; }
.info-card dt { color: var(--muted); }
.info-card dd { margin: 0; font-weight: 500; color: var(--ink); }

/* 404 */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px 20px 60px; }
.page-hero .notfound__code { font-size: clamp(6rem, 20vw, 11rem); font-weight: 800; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--accent); margin: 0; }
.notfound h1 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 12px; }
.notfound p { color: rgba(255, 255, 255, .7); margin-bottom: 28px; }

/* Đồng ý xử lý dữ liệu trong biểu mẫu */
.consent { display: flex !important; grid-template-columns: none; gap: 10px !important; align-items: flex-start; font-weight: 400 !important; font-size: .85rem !important; color: var(--muted) !important; line-height: 1.5; cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--steel); cursor: pointer; }
.consent a { color: var(--steel); text-decoration: underline; text-underline-offset: 2px; }
.consent.is-invalid { color: #c03a3a !important; }

/* Bản đồ tải khi bấm */
.map__placeholder {
  width: 100%; height: 100%; border: 0; cursor: pointer; font-family: inherit; color: var(--white);
  display: grid; place-content: center; gap: 8px; text-align: center; padding: 20px;
  background: linear-gradient(rgba(14, 26, 43, .65), rgba(14, 26, 43, .85)),
    repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 1px, transparent 1px 32px), var(--steel);
}
.map__placeholder strong { font-size: 1rem; }
.map__placeholder span { font-size: .8rem; color: rgba(255, 255, 255, .6); max-width: 360px; }
.map__placeholder:hover strong { color: var(--accent); }

/* Footer đầy đủ */
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.footer h4 { color: var(--white); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 16px; }
.footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer__col a:hover { color: var(--accent); }
.footer__company { color: var(--white); font-weight: 700; font-size: .95rem; margin: 16px 0 4px; line-height: 1.4; }
.footer__en { font-size: .72rem; letter-spacing: .03em; margin: 0 0 16px; opacity: .7; }
.footer__legal li { font-size: .84rem; }
.footer__legal b { color: rgba(255, 255, 255, .85); font-weight: 500; }
.footer__contact li { display: grid; gap: 2px; }
.footer__contact small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .55; }
.footer__contact a { color: var(--accent); font-weight: 600; }
.footer .brand { color: var(--steel); }
.footer__bottom-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }

@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .legal-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .toc { position: static; background: var(--paper); border-radius: var(--radius); padding: 18px 20px; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr; gap: 30px; }
  .info-card dl > div { grid-template-columns: 1fr; gap: 0; }
  .prose th, .prose td { padding: 10px; }
}
