/* Trang giới thiệu & nội dung (SEO) — nhẹ, tách khỏi CSS của app */
:root {
  --p: #1d4ed8; --p2: #2563eb; --ps: #eff6ff; --t: #0f172a; --t2: #334155; --m: #64748b; --l: #e2e8f0;
  --bg: #f8fafc; --g: #16a34a; --r: #dc2626; --rad: 16px; --sh: 0 1px 3px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; color: var(--t); background: #fff; line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--p); }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 48px); letter-spacing: -.5px; }
h2 { font-size: clamp(24px, 3.4vw, 34px); letter-spacing: -.3px; }
h3 { font-size: 20px; }
p { margin: 0 0 1em; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.muted { color: var(--m); }
.small { font-size: 14px; }
.center { text-align: center; }

/* nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 12px; font: inherit; font-weight: 700; font-size: 16px; text-decoration: none; border: 1px solid var(--l); background: #fff; color: var(--t); cursor: pointer; transition: transform .1s, box-shadow .15s; }
.btn:hover { box-shadow: 0 4px 14px rgba(15, 23, 42, .1); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--p); border-color: var(--p); color: #fff; }
.btn.light { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .35); color: #fff; }
.btn.big { padding: 15px 28px; font-size: 18px; }
.btn svg { width: 18px; height: 18px; }

/* đầu trang */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--l); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--t); text-decoration: none; white-space: nowrap; }
.logo i { width: 34px; height: 34px; border-radius: 9px; background: var(--p); display: grid; place-items: center; }
.logo i svg { width: 22px; height: 22px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 9px; color: var(--t2); text-decoration: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current] { background: var(--ps); color: var(--p); }
.nav .btn { padding: 9px 16px; font-size: 15px; }
@media (max-width: 860px) { .nav-links { display: none; } .nav .btn.ghost { display: none; } .nav .btn.primary { margin-left: auto; } }

/* hero */
.hero { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); color: #fff; position: relative; overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .06); }
.hero::before { width: 520px; height: 520px; right: -140px; top: -180px; }
.hero::after { width: 300px; height: 300px; left: -100px; bottom: -140px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; padding-top: 64px; padding-bottom: 64px; position: relative; z-index: 1; }
.hero p.lead { font-size: 20px; opacity: .92; max-width: 560px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero .note { font-size: 14px; opacity: .8; margin-top: 14px; }
.hero-shot { justify-self: center; width: min(320px, 100%); border-radius: 28px; overflow: hidden; border: 8px solid #0f172a; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); background: #0f172a; }
.page-hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 48px; }
.page-hero p.lead { max-width: 720px; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 40px; padding-bottom: 44px; } .hero-shot { width: min(280px, 80%); } }

/* khối */
section.block { padding: 64px 0; }
section.alt { background: var(--bg); }
.sec-h { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.sec-h p { color: var(--m); font-size: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: center; }
@media (max-width: 860px) { .grid3, .grid2 { grid-template-columns: minmax(0, 1fr); } }
.feat { background: #fff; border: 1px solid var(--l); border-radius: var(--rad); padding: 22px; box-shadow: var(--sh); }
.feat i { width: 46px; height: 46px; border-radius: 12px; background: var(--ps); color: var(--p); display: grid; place-items: center; margin-bottom: 12px; }
.feat i svg { width: 24px; height: 24px; }
.feat h3 { margin-bottom: 6px; }
.feat p { color: var(--t2); margin: 0; font-size: 16px; }
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { list-style: none; background: #fff; border-radius: var(--rad); padding: 22px; border: 1px solid var(--l); position: relative; }
.steps li::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--p); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 10px; }
.steps { padding: 0; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: minmax(0, 1fr); } }
.shot { border-radius: 14px; border: 1px solid var(--l); box-shadow: var(--sh); overflow: hidden; }
.checks { list-style: none; padding: 0; margin: 0 0 20px; }
.checks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a34a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; }
.price { max-width: 460px; margin: 0 auto; text-align: center; background: #fff; border: 2px solid var(--p); border-radius: 20px; padding: 30px; box-shadow: var(--sh); }
.price b.big { display: block; font-size: 46px; color: var(--p); line-height: 1.1; }

/* hỏi đáp */
.faq details { background: #fff; border: 1px solid var(--l); border-radius: 12px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 28px 16px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 24px; color: var(--p); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--t2); }

/* bài viết */
.article { padding: 40px 0 56px; }
.article h2 { margin-top: 1.6em; }
.article h3 { margin-top: 1.3em; }
.article ul, .article ol { padding-left: 22px; }
.article li { margin-bottom: 6px; }
.crumb { font-size: 14px; color: var(--m); margin-bottom: 10px; }
.crumb a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.page-hero .crumb { color: rgba(255, 255, 255, .7); }
.box { background: var(--ps); border: 1px solid #bfdbfe; border-radius: 14px; padding: 18px 20px; margin: 22px 0; }
.box.warn { background: #fffbeb; border-color: #fde68a; }
.cta-box { background: linear-gradient(135deg, #1d4ed8, #1e3a8a); color: #fff; border-radius: 20px; padding: 32px; text-align: center; margin: 40px 0 10px; }
.cta-box p { opacity: .9; }
table.tbl { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 16px; }
.tbl th, .tbl td { border: 1px solid var(--l); padding: 10px 12px; text-align: left; }
.tbl th { background: var(--bg); }
.tbl td.num, .tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl-wrap { overflow-x: auto; }

/* công cụ tính tiền */
.calc { background: #fff; border: 1px solid var(--l); border-radius: 20px; box-shadow: var(--sh); padding: 24px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 26px; }
@media (max-width: 860px) { .calc { grid-template-columns: minmax(0, 1fr); padding: 18px; } }
.calc fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.calc legend { font-weight: 800; font-size: 17px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.calc .row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.calc .row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 480px) { .calc .row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--m); }
.calc input, .calc select { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 10px; width: 100%; min-width: 0; background: #fff; color: var(--t); }
.calc input:focus, .calc select:focus { outline: none; border-color: var(--p); }
.seg { display: inline-flex; background: #f1f5f9; border-radius: 10px; padding: 3px; margin-bottom: 10px; flex-wrap: wrap; }
.seg label { flex-direction: row; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: 1px; }
.seg span { padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--m); }
.seg input:checked + span { background: #fff; color: var(--p); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.result { background: var(--bg); border-radius: 16px; padding: 18px; align-self: start; position: sticky; top: 80px; }
.result .line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--l); font-size: 15px; }
.result .line small { display: block; color: var(--m); font-size: 12px; }
.result .total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; font-weight: 800; }
.result .total b { font-size: 30px; color: var(--r); }
.result .btn { width: 100%; margin-top: 14px; }

/* hợp đồng mẫu */
.contract { background: #fff; border: 1px solid var(--l); border-radius: 12px; padding: 36px 40px; font-family: "Times New Roman", Times, serif; font-size: 17px; line-height: 1.5; box-shadow: var(--sh); }
.contract .nat { text-align: center; font-weight: 700; }
.contract .nat i { display: block; font-style: italic; }
.contract h2.ct { text-align: center; font-size: 22px; margin: 18px 0 4px; font-family: inherit; }
.contract h3 { font-family: inherit; font-size: 17px; margin: 14px 0 4px; }
.contract p { margin: 3px 0; text-align: left; }
.contract .sign { display: grid; grid-template-columns: 1fr 1fr; text-align: center; margin-top: 24px; font-weight: 700; }
.contract .sign span { display: block; font-weight: 400; font-style: italic; font-size: 15px; margin-bottom: 70px; }
@media (max-width: 600px) { .contract { padding: 20px 16px; font-size: 16px; } }
.tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 16px 0; }

/* chân trang */
footer.foot { background: #0b1220; color: #94a3b8; font-size: 15px; position: relative; }
footer.foot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #1d4ed8, #38bdf8, #1d4ed8); }
.foot-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 36px; padding: 52px 0 36px; }
.foot .logo { color: #fff; font-size: 20px; }
.foot-brand p { margin: 14px 0 16px; line-height: 1.65; max-width: 380px; }
.foot-badges { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.foot-badges li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #cbd5e1; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); padding: 5px 11px; border-radius: 99px; }
.foot-badges svg { width: 13px; height: 13px; color: #4ade80; }
.foot-brand .btn { padding: 10px 18px; font-size: 15px; }
.foot-col h4 { color: #fff; margin: 4px 0 14px; font-size: 13px; text-transform: uppercase; letter-spacing: .8px; }
.foot-col a { display: block; color: #cbd5e1; text-decoration: none; padding: 5px 0; transition: color .15s, transform .15s; }
.foot-col a:hover { color: #fff; transform: translateX(3px); }
.foot-bottom { display: flex; align-items: center; gap: 10px 18px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0 22px; font-size: 13px; }
.foot-note { color: #64748b; }
.foot-up { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #cbd5e1; text-decoration: none; font-weight: 600; padding: 6px 12px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .12); }
.foot-up:hover { color: #fff; border-color: rgba(255, 255, 255, .3); }
.foot-up svg { width: 14px; height: 14px; }
@media (max-width: 900px) { .foot-top { grid-template-columns: repeat(3, minmax(0, 1fr)); } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) {
  .foot-top { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 20px; padding-top: 40px; }
  .foot-col:last-child { grid-column: 1 / -1; }
  .foot-col:last-child a { display: inline-block; margin-right: 18px; }
  .foot-up { margin-left: 0; }
}

/* in: chỉ in phần hợp đồng / bảng */
@media print {
  .nav, footer.foot, .hero, .no-print, .cta-box, .faq, .box { display: none !important; }
  body { font-size: 13pt; }
  .contract { border: 0; box-shadow: none; padding: 0; font-size: 13pt; }
  .article { padding: 0; }
  @page { size: A4; margin: 16mm 16mm 14mm 20mm; }
}
[hidden] { display: none !important; }
/* ảnh dọc (hóa đơn) trong khối 2 cột: không cao lấn phần chữ */
.grid2 > img.shot, .grid2 > figure { max-width: 380px; justify-self: center; width: 100%; }
