/* ===== 1. Màu và cỡ chung. Đổi "Màu chủ đạo" trong trang quản trị = đổi data-mau trên thẻ <html> ===== */
:root {
  --mau: #0a7f72; --mau-dam: #075e55; --mau-nhat: #e0f4f0; --mau-rat-nhat: #f2faf8;
  --nhan: #ffb224; --nhan-dam: #f09c00; --nhan-chu: #3a2500;
  --chu: #12302c; --chu-nhat: #55706b; --nen-2: #f4f9f8; --vien: #d9e8e5;
  --bo: 18px; --bo-nho: 12px; --rong: 1180px;
  --bong: 0 14px 34px rgb(18 48 44 / .10); --bong-nho: 0 2px 10px rgb(18 48 44 / .06);
  --phong: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-mau="duong"] { --mau: #1763d6; --mau-dam: #0e47a1; --mau-nhat: #e3edfc; --mau-rat-nhat: #f4f8fe; --chu: #13243d; --chu-nhat: #586982; --nen-2: #f5f8fc; --vien: #dbe5f2; }
[data-mau="bien"] { --mau: #0b74b8; --mau-dam: #0a4f8f; --mau-nhat: #deeffb; --mau-rat-nhat: #f2f9fe; --chu: #10283d; --chu-nhat: #557086; --nen-2: #f4f9fd; --vien: #d6e6f2; }
[data-mau="la"] { --mau: #23803a; --mau-dam: #17602a; --mau-nhat: #e2f4e6; --mau-rat-nhat: #f3faf4; --chu: #17301c; --chu-nhat: #58705d; --nen-2: #f5faf5; --vien: #d9e9dc; }
[data-mau="cam"] { --mau: #c2410c; --mau-dam: #96320a; --mau-nhat: #fde8d9; --mau-rat-nhat: #fff7f1; --nhan: #1f3d38; --nhan-dam: #12302c; --nhan-chu: #fff; --chu: #33200f; --chu-nhat: #77634f; --nen-2: #fdf8f4; --vien: #efe0d3; }

/* ===== 2. Nền tảng ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.65 var(--phong); color: var(--chu); background: #fff; overflow-wrap: break-word; }
img, svg.tranh, iframe { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.22; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: clamp(1.85rem, 1.15rem + 3.4vw, 3.3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.7vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--mau-dam); text-decoration: none; }
a:hover { text-decoration: underline; }
small { font-size: .85rem; }
:focus-visible { outline: 3px solid var(--nhan); outline-offset: 2px; border-radius: 6px; }
.ic { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -.24em; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.khung { width: min(100% - 32px, var(--rong)); margin-inline: auto; }
.khung-hep { max-width: 820px; }
.giua { text-align: center; justify-content: center; }
.mo { color: var(--chu-nhat); font-weight: 400; }
.dan { font-size: clamp(1rem, .95rem + .35vw, 1.18rem); color: var(--chu-nhat); }
.bo-qua { position: absolute; left: 8px; top: -60px; z-index: 100; background: #fff; padding: 10px 16px; border-radius: 8px; box-shadow: var(--bong); }
.bo-qua:focus { top: 8px; }
/* Hình vẽ sẵn đổi màu theo màu chủ đạo */
.t1 { fill: var(--mau); } .t2 { fill: var(--mau-dam); } .t3 { fill: var(--mau-nhat); } .t4 { fill: var(--nhan); } .tw { fill: #fff; }
.n2 { stroke: var(--mau-dam); }
.tranh { width: 100%; height: auto; }

/* ===== 3. Nút bấm ===== */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 99px; font: 600 1rem/1.2 var(--phong); white-space: nowrap; cursor: pointer;
  text-decoration: none !important; transition: transform .15s, background-color .15s, box-shadow .15s; }
.nut:hover { transform: translateY(-1px); }
.nut:active { transform: none; }
.nut-chinh { background: var(--nhan); color: var(--nhan-chu); box-shadow: 0 6px 16px color-mix(in srgb, var(--nhan) 38%, transparent); }
.nut-chinh:hover { background: var(--nhan-dam); }
.nut-vien { background: #fff; border-color: var(--mau); color: var(--mau-dam); }
.nut-vien:hover { background: var(--mau-rat-nhat); }
.nut-mo { background: var(--mau-nhat); color: var(--mau-dam); }
.nut-nho { min-height: 42px; padding: 8px 14px; font-size: .9rem; }
.nut-day { width: 100%; }
.nut[disabled] { opacity: .6; cursor: progress; transform: none; }
.hang-nut { display: flex; flex-wrap: wrap; gap: 12px; }

/* ===== 4. Đầu trang ===== */
.thanh-tren { display: none; background: var(--mau-dam); color: #fff; font-size: .85rem; }
.thanh-tren .khung { display: flex; align-items: center; gap: 24px; min-height: 38px; }
.thanh-tren .day-phai { margin-left: auto; }
.dau { position: sticky; top: 0; z-index: 50; background: rgb(255 255 255 / .94); border-bottom: 1px solid var(--vien);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.dau > .khung { display: flex; align-items: center; gap: 12px; min-height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; min-width: 0; color: var(--chu); text-decoration: none !important; }
/* Logo ảnh thường là file nền trắng: multiply để nền trắng hoà vào nền đầu trang */
.logo img { height: 50px; width: auto; max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }
.logo-dau { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--mau); color: #fff; }
.logo-dau .ic { width: 24px; height: 24px; }
.logo-chu { min-width: 0; line-height: 1.2; }
.logo-chu b { display: block; font-size: 1.1rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-chu small { display: block; font-size: .74rem; color: var(--chu-nhat); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .logo-chu b { font-size: 1rem; } .logo-dau { width: 38px; height: 38px; } }
.nut-menu { display: grid; place-items: center; flex: none; width: 46px; height: 46px; margin-left: auto; padding: 0;
  border: 1px solid var(--vien); border-radius: 13px; background: #fff; color: var(--chu); cursor: pointer; }
.nut-menu .ic { width: 24px; height: 24px; }
.nut-menu[aria-expanded="true"] { background: var(--mau); border-color: var(--mau); color: #fff; }
.dau-goi { display: none; }
.nut-menu .ic-dong, .nut-menu[aria-expanded="true"] .ic-mo { display: none; }
.nut-menu[aria-expanded="true"] .ic-dong { display: block; }
.menu { display: none; position: absolute; inset: 100% 0 auto; max-height: calc(100dvh - 65px); overflow-y: auto; overscroll-behavior: contain;
  padding: 12px 16px 16px; background: #fff; box-shadow: var(--bong); }
.menu a { display: flex; align-items: center; gap: 6px; min-height: 46px; padding: 8px 10px; border-radius: 10px; color: var(--chu); font-weight: 600; }
.menu a:hover { background: var(--mau-rat-nhat); text-decoration: none; }
.menu-con { display: grid; }
.menu-con a { gap: 10px; font-weight: 500; font-size: .95rem; }
/* Điện thoại / máy tính bảng: menu là bảng thả xuống dưới đầu trang, sau lưng là nền mờ.
   Trên cùng là lưới dịch vụ (mỗi ô một biểu tượng), dưới là các mục còn lại xếp 2 cột — cả menu vừa một màn hình, khỏi cuộn. */
@media (max-width: 999.98px) {
  .dau.menu-mo::before { content: ""; position: absolute; inset: 100% 0 auto; height: calc(100dvh - 100%); background: rgb(12 22 40 / .45);
    animation: hien-dan .2s ease-out; }
  .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border-radius: 0 0 20px 20px; }
  .menu.mo { display: grid; animation: menu-mo .2s ease-out; }
  .menu > a { justify-content: space-between; padding: 8px 12px 8px 14px; border-radius: 12px; background: var(--mau-rat-nhat); font-size: .95rem; }
  .menu > a:hover { background: var(--mau-nhat); }
  .menu > a::after { content: ""; flex: none; width: 7px; height: 7px; border: solid var(--chu-nhat); border-width: 2px 2px 0 0;
    transform: rotate(45deg); opacity: .6; }
  .menu > a:last-child:nth-child(even) { grid-column: 1 / -1; }   /* số mục lẻ: mục cuối giãn hết hàng */
  .menu-nhom { grid-column: 1 / -1; order: -1; margin-bottom: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--vien); }
  .menu-nhom > a { min-height: 30px; margin-bottom: 6px; padding: 0 4px; font-size: .76rem; font-weight: 700; letter-spacing: .07em;
    text-transform: uppercase; color: var(--chu-nhat); }
  .menu-nhom > a:hover { background: none; color: var(--mau-dam); }
  .menu-nhom > a .ic { display: none; }
  .menu-con { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .menu-con a { gap: 8px; min-height: 54px; padding: 8px; border: 1px solid var(--vien); border-radius: 13px; font-size: .85rem; font-weight: 600;
    line-height: 1.3; }
  .menu-con a:hover { border-color: var(--mau); }
  .menu-con .mc-icon { width: 32px; height: 32px; }
  .menu-con a:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
/* Dưới 800 px có bệ 3 nút nổi sát đáy: menu dừng ngay trên bệ, chừa thêm đáy cho nút Gọi tròn nhô lên */
@media (max-width: 799.98px) { .menu { max-height: calc(100dvh - 145px - env(safe-area-inset-bottom)); padding-bottom: 28px; } }
@media (max-width: 350px) {
  .menu-con a { font-size: .82rem; }
  .menu-con .mc-icon { width: 30px; height: 30px; }
}
@media (min-width: 700px) and (max-width: 999.98px) {
  .menu { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .menu > a:last-child:nth-child(even) { grid-column: auto; }
  .menu-con { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .menu-con a:last-child:nth-child(odd) { grid-column: auto; }
}
@keyframes menu-mo { from { opacity: 0; transform: translateY(-8px); } }
@keyframes hien-dan { from { opacity: 0; } }
/* Biểu tượng nhỏ trước tên từng dịch vụ */
.mc-icon { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--mau-nhat);
  color: var(--mau-dam); transition: background .15s, color .15s; }
.mc-icon .ic { width: 19px; height: 19px; }
.menu-con a:hover .mc-icon { background: var(--mau); color: #fff; }
@media (min-width: 1000px) {
  .thanh-tren { display: block; }
  .dau > .khung { min-height: 72px; }
  .nut-menu { display: none; }
  .logo { flex: none; max-width: 300px; }
  .logo img { height: 58px; }
  .menu { display: flex; position: static; flex-direction: row; align-items: center; gap: 2px; max-height: none; overflow: visible;
    margin-left: auto; padding: 0; border: 0; box-shadow: none; background: none; }
  .menu a { padding: 8px 13px; white-space: nowrap; }
  .menu > a[href="/"] { display: none; }   /* logo đã dẫn về trang chủ, bỏ mục này cho menu vừa một hàng */
  .menu-nhom { order: 0; position: relative; margin: 0; padding: 0; border: 0; }
  .menu-nhom > a .ic { display: inline-block; width: 1em; height: 1em; }
  .menu-con { position: absolute; top: 100%; left: 0; width: 310px; margin: 0; padding: 8px; background: #fff; border: 1px solid var(--vien);
    border-radius: var(--bo-nho); box-shadow: var(--bong); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .15s; }
  .menu-con a { min-height: 46px; padding: 6px 10px; white-space: normal; }   /* tên dịch vụ dài thì xuống dòng trong khung, không tràn ra ngoài */
  .menu-nhom:hover .menu-con, .menu-nhom:focus-within .menu-con { opacity: 1; visibility: visible; transform: none; }
}
@media (min-width: 1160px) { .dau-goi { display: inline-flex; } }

/* ===== 5. Banner ===== */
.hero { padding: clamp(24px, 5vw, 64px) 0 clamp(32px, 5vw, 64px); background: linear-gradient(180deg, var(--mau-rat-nhat), #fff); overflow: hidden; }
.hero-luoi { display: grid; gap: 24px; align-items: center; }
.hero .dan { max-width: 56ch; }
.nhan { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; padding: 6px 14px; border-radius: 99px;
  background: var(--mau-nhat); color: var(--mau-dam); font-weight: 600; font-size: .86rem; }
.tich-ds { display: grid; gap: 9px; margin: 0 0 24px; padding: 0; list-style: none; }
.tich-ds li { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.tich-ds .ic { margin-top: .22em; padding: 2px; border-radius: 50%; background: var(--mau-nhat); color: var(--mau-dam); stroke-width: 2.6; }
.hero-anh { max-width: 560px; margin-inline: auto; width: 100%; }
.hero-anh img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 28px; box-shadow: var(--bong); }
.so-lieu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: clamp(24px, 4vw, 44px) 0 0; }
.so-lieu div { padding: 16px 10px; text-align: center; background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); box-shadow: var(--bong-nho); }
.so-lieu dt { font-size: clamp(1.3rem, 1.05rem + 1.3vw, 1.9rem); font-weight: 800; line-height: 1.15; color: var(--mau-dam); }
.so-lieu dd { margin: 4px 0 0; font-size: .9rem; color: var(--chu-nhat); }
@media (max-width: 520px) { .hero .hang-nut .nut { flex: 1 1 100%; } }
@media (min-width: 860px) {
  .hero-luoi { grid-template-columns: 1.08fr .92fr; gap: 48px; }
  .so-lieu { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

/* ===== 6. Khung mục + lưới dịch vụ ===== */
.phan { padding: clamp(48px, 7vw, 92px) 0; }
.phan-hep { padding: clamp(32px, 5vw, 56px) 0; }
.phan-nen { background: var(--nen-2); }
.dau-phan { max-width: 700px; margin: 0 auto clamp(26px, 4vw, 46px); text-align: center; }
.dau-phan h2::after { content: ""; display: block; width: 56px; height: 4px; margin: 14px auto 0; border-radius: 4px; background: var(--nhan); }
.dau-phan p { margin: 14px 0 0; color: var(--chu-nhat); }
.luoi-dv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.the-dv { display: flex; flex-direction: column; overflow: hidden; background: #fff; border: 1px solid var(--vien); border-radius: var(--bo);
  box-shadow: var(--bong-nho); transition: transform .2s, box-shadow .2s; }
.the-dv:hover { transform: translateY(-4px); box-shadow: var(--bong); }
.the-dv-anh, .dv-anh { position: relative; display: grid; place-items: center; overflow: hidden; color: #fff; }
.the-dv-anh { aspect-ratio: 16 / 11; }
.the-dv-anh img, .dv-anh img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.the-dv:hover .the-dv-anh img { transform: scale(1.05); }
.ic.to { position: relative; z-index: 1; width: 38%; height: auto; aspect-ratio: 1; stroke-width: 1.25; }
.the-dv-anh::before, .the-dv-anh::after, .dv-anh::before, .dv-anh::after { content: ""; position: absolute; aspect-ratio: 1; border-radius: 50%; background: rgb(255 255 255 / .15); }
.the-dv-anh::before, .dv-anh::before { width: 48%; right: -12%; top: -24%; }
.the-dv-anh::after, .dv-anh::after { width: 30%; left: -8%; bottom: -18%; }
.co-anh::before, .co-anh::after { display: none; }
.mau0 { background: linear-gradient(135deg, #0a7f72, #3cc7ab); }
.mau1 { background: linear-gradient(135deg, #1763d6, #5aa9ff); }
.mau2 { background: linear-gradient(135deg, #6741d9, #a78bfa); }
.mau3 { background: linear-gradient(135deg, #0b7285, #3bc9db); }
.mau4 { background: linear-gradient(135deg, #d9480f, #ffa94d); }
.mau5 { background: linear-gradient(135deg, #2b8a3e, #7bd88f); }
.the-dv-than { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 12px; }
.the-dv h3 { margin: 0; font-size: .98rem; }
.the-dv h3 a { color: var(--chu); }
.gia { margin: 0; font-weight: 700; font-size: .95rem; color: #b93a08; }
.the-dv .mo-ta { display: none; margin: 0; font-size: .9rem; color: var(--chu-nhat); }
.the-dv-nut { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; padding-top: 6px; }
.the-dv-nut .nut { padding-inline: 6px; }
@media (max-width: 379px) { .the-dv-nut { grid-template-columns: 1fr; } }
@media (min-width: 700px) {
  .luoi-dv { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .the-dv-than { gap: 8px; padding: 18px; }
  .the-dv h3 { font-size: 1.08rem; }
  .the-dv .mo-ta { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
}
@media (min-width: 1040px) { .luoi-dv { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

/* ===== 6b. Bảng (bảng giá ở trang chủ + bảng trong bài dịch vụ) ===== */
.bang { overflow-x: auto; margin-bottom: 1em; background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); box-shadow: var(--bong-nho); }
.bang table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.bang th, .bang td { padding: 12px 14px; text-align: left; vertical-align: top; }
.bang thead th { background: var(--mau); color: #fff; font-weight: 700; }
.bang tbody td { border-top: 1px solid var(--vien); }
.bang tbody tr:nth-child(even) { background: var(--mau-rat-nhat); }
.bang tbody tr.nhom td { background: var(--mau-nhat); color: var(--mau-dam); font-size: .86rem; font-weight: 700; }
.bang-gia thead th { white-space: nowrap; }
.bang-gia td.so { font-weight: 700; color: #b93a08; white-space: nowrap; }
.dv-nho { display: none; font-weight: 500; color: var(--chu-nhat); }
.luu-y { margin: 14px 0 22px; font-size: .9rem; color: var(--chu-nhat); text-align: center; }
@media (max-width: 560px) {
  .bang th, .bang td { padding: 10px; }
  .bang-gia .cot-dv { display: none; }
  .dv-nho { display: block; }
  .bang-gia td.so { text-align: right; }
}

/* ===== 7. Cam kết + quy trình ===== */
.the { padding: 20px; background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); box-shadow: var(--bong-nho); }
.the p { margin: 0; font-size: .95rem; color: var(--chu-nhat); }
.o-icon { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border-radius: 15px; background: var(--mau-nhat); color: var(--mau-dam); }
.o-icon .ic { width: 26px; height: 26px; }
.luoi-4 { display: grid; gap: 14px; }
.cam-ket { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; }
.cam-ket h3 { margin-bottom: 4px; }
@media (min-width: 640px) { .luoi-4 { grid-template-columns: repeat(2, 1fr); gap: 20px; } }
@media (min-width: 1040px) {
  .luoi-4 { grid-template-columns: repeat(4, 1fr); }
  .cam-ket { display: block; padding: 26px 22px; }
  .cam-ket .o-icon { margin-bottom: 16px; }
}
.buoc-ds { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: buoc; }
.buoc { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: start; padding: 18px; background: #fff;
  border: 1px solid var(--vien); border-radius: var(--bo); counter-increment: buoc; }
.buoc::before { content: counter(buoc, decimal-leading-zero); display: grid; place-items: center; width: 52px; height: 52px;
  border-radius: 50%; background: var(--mau); color: #fff; font-weight: 800; font-size: 1.1rem; }
.buoc h3 { margin: 2px 0 4px; }
.buoc p { margin: 0; font-size: .95rem; color: var(--chu-nhat); }
@media (min-width: 1040px) {
  .buoc-ds:not(.buoc-doc) { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; }
  .buoc-ds:not(.buoc-doc) .buoc { display: block; padding: 26px 16px; text-align: center; box-shadow: var(--bong-nho); }
  .buoc-ds:not(.buoc-doc) .buoc::before { margin: 0 auto 14px; }
}

/* ===== 8. Khung đăng ký tư vấn + form ===== */
.tu-van { background: linear-gradient(135deg, var(--mau-dam), var(--mau)); color: #fff; }
.tu-van-luoi { display: grid; gap: 28px; align-items: center; }
.tu-van h2 { color: #fff; }
.tu-van .dan { color: rgb(255 255 255 / .9); }
.tu-van-lh { display: flex; flex-wrap: wrap; gap: 10px 14px; margin-top: 20px; }
.tu-van-lh a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 18px; border-radius: 99px;
  background: rgb(255 255 255 / .14); color: #fff; font-weight: 700; font-size: 1.05rem; }
.tu-van-lh a:hover { background: rgb(255 255 255 / .24); text-decoration: none; }
@media (min-width: 900px) { .tu-van-luoi { grid-template-columns: 1fr 460px; gap: 56px; } }
.bieu-mau { position: relative; display: grid; gap: 14px; padding: clamp(18px, 3vw, 28px); background: #fff; color: var(--chu);
  border-radius: 22px; box-shadow: var(--bong); }
.o { display: grid; gap: 6px; }
.o label { font-weight: 600; font-size: .92rem; }
.o input, .o select, .o textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--vien); border-radius: 12px;
  background: #fff; color: inherit; font: inherit; }
.o textarea { min-height: 96px; resize: vertical; }
.o input:focus, .o select:focus, .o textarea:focus { outline: none; border-color: var(--mau); box-shadow: 0 0 0 4px var(--mau-nhat); }
.o [aria-invalid="true"] { border-color: #c92a2a; }
.bay { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.bm-bao { margin: 0; font-weight: 600; scroll-margin: 110px; }
.bm-bao:empty { display: none; }
.bm-bao.ok { padding: 12px 14px; border-radius: 12px; background: #e6f6e9; color: #17602a; }
.bm-bao.loi { color: #c92a2a; }

/* ===== 9. Vì sao chọn + hỏi đáp (khối bấm mở) ===== */
.ly-do-luoi { display: grid; gap: 24px; align-items: start; }
.ly-do-anh { max-width: 520px; margin-inline: auto; width: 100%; }
.ly-do-anh img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 24px; box-shadow: var(--bong); }
@media (min-width: 900px) { .ly-do-luoi { grid-template-columns: 1fr 1fr; gap: 56px; } .ly-do-anh { position: sticky; top: 100px; } }
.xep { margin-bottom: 10px; overflow: hidden; background: #fff; border: 1px solid var(--vien); border-radius: 14px; }
.xep summary { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 14px 18px; font-weight: 700; cursor: pointer; list-style: none; }
.xep summary::-webkit-details-marker { display: none; }
.xep summary::after { content: ""; flex: none; width: 10px; height: 10px; margin: -4px 4px 0 auto; border-right: 2.5px solid var(--mau);
  border-bottom: 2.5px solid var(--mau); transform: rotate(45deg); transition: transform .2s; }
.xep[open] { border-color: var(--mau); box-shadow: var(--bong-nho); }
.xep[open] summary::after { margin-top: 4px; transform: rotate(-135deg); }
.xep-than { padding: 0 18px 16px; color: var(--chu-nhat); }
.xep-than p { margin: 0 0 .5em; }
.xep-than ul { margin: 0 0 .6em; padding-left: 1.2em; }
.xep-than > :last-child { margin-bottom: 0; }

/* ===== 10. Đánh giá + đối tác ===== */
.truot { display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px; margin-inline: -16px; padding: 4px 16px 16px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.truot > * { scroll-snap-align: center; }
.nhan-xet { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 22px; background: #fff; border: 1px solid var(--vien);
  border-radius: var(--bo); box-shadow: var(--bong-nho); }
.nhan-xet blockquote { margin: 0; }
.nhan-xet figcaption { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.nhan-xet small { display: block; color: var(--chu-nhat); }
.avatar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--mau); color: #fff; font-weight: 700; }
img.avatar { width: 48px; height: 48px; object-fit: cover; background: var(--nen-nhat, #eef3ef); }
@media (min-width: 700px) { .truot { grid-auto-columns: calc((100% - 28px) / 2.2); } }
@media (min-width: 1040px) { .truot { grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; margin: 0; padding: 4px 0 16px; } }
.doi-tac { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 28px; margin: 0; padding: 0; list-style: none; }
.doi-tac li { font-weight: 700; color: var(--chu-nhat); }
.doi-tac img { width: auto; height: 48px; filter: grayscale(1); opacity: .75; transition: .2s; }
.doi-tac img:hover { filter: none; opacity: 1; }

/* ===== 11. Liên hệ + chi nhánh ===== */
.lh-luoi { display: grid; gap: 20px; }
.lh-luoi > *, .lh-cot > * { min-width: 0; }
.lh-cot { display: grid; gap: 20px; align-content: start; }
.lh-ds { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.lh-ds li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; align-items: center; padding: 14px; background: #fff;
  border: 1px solid var(--vien); border-radius: var(--bo); }
.lh-ds li > div { min-width: 0; overflow-wrap: anywhere; }
.lh-ds small { display: block; color: var(--chu-nhat); }
.lh-ds a, .lh-ds span { font-weight: 700; color: var(--chu); }
/* Màn rất hẹp: thu ô biểu tượng để email nằm trọn một dòng */
@media (max-width: 380px) {
  .lh-ds li { grid-template-columns: 44px 1fr; gap: 12px; padding: 12px; }
  .lh-ds .o-icon { width: 44px; height: 44px; border-radius: 13px; }
  .lh-ds .o-icon .ic { width: 22px; height: 22px; }
}
.ban-do { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: var(--bo); }
/* Bảng văn phòng đứng cạnh các ô liên hệ (khi chỉ có 1–2 văn phòng) */
.vp-bang { padding: 18px 20px; background: #fff; border: 1px solid var(--vien); border-radius: var(--bo); }
.vp-bang h3 { margin: 0 0 12px; font-size: 1.05rem; }
.vp-bang p { margin: 0; font-size: .95rem; color: var(--chu-nhat); }
.vp-bang .cn + .cn { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--vien); }
@media (min-width: 700px) {
  .lh-ds { grid-template-columns: repeat(2, 1fr); }
  .lh-ds li:last-child:nth-child(odd) { grid-column: 1 / -1; }   /* ô lẻ cuối giãn hết hàng, không để trống nửa hàng */
}
@media (min-width: 1040px) {
  /* Không bản đồ, không bảng văn phòng: 3 ô một hàng, ô cuối giãn cho kín hàng */
  .lh-luoi:not(.co-ban-do, .co-ben) .lh-ds { grid-template-columns: repeat(3, 1fr); }
  .lh-luoi:not(.co-ban-do, .co-ben) .lh-ds li:last-child { grid-column: auto; }
  .lh-luoi:not(.co-ban-do, .co-ben) .lh-ds li:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .lh-luoi:not(.co-ban-do, .co-ben) .lh-ds li:nth-last-child(2):nth-child(3n+1) { grid-column: span 2; }
  /* Có bảng văn phòng: các ô liên hệ 2 × 2 bên trái, bảng bên phải cao bằng nhau */
  .lh-luoi.co-ben { grid-template-columns: minmax(0, 1fr) 360px; }
  .lh-luoi.co-ben .lh-ds { grid-auto-rows: 1fr; }
  .lh-luoi.co-ban-do { grid-template-columns: 420px 1fr; }
  .lh-luoi.co-ban-do .lh-ds { grid-template-columns: 1fr; }
}
.cn-tieu-de { margin: 36px 0 14px; font-size: 1.15rem; }
.chi-nhanh { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px; }
.cn h4 { display: flex; gap: 8px; align-items: center; color: var(--mau-dam); }
.cn p { margin-bottom: 8px; }
.cn-lk { display: flex; flex-wrap: wrap; gap: 0 22px; }
.cn a { display: inline-flex; gap: 8px; align-items: center; min-height: 40px; font-weight: 700; }

/* ===== 12. Trang chi tiết dịch vụ + trang 404 ===== */
.dv-dau { padding: 0 0 clamp(36px, 6vw, 72px); background: linear-gradient(180deg, var(--mau-rat-nhat), #fff 320px); }
.duong-dan { padding: 16px 0 18px; font-size: .88rem; color: var(--chu-nhat); }
.dv-luoi { display: grid; gap: 28px; align-items: start; }
.dv-luoi > * { min-width: 0; }
.bai h1 { font-size: clamp(1.7rem, 1.2rem + 2.4vw, 2.6rem); margin-bottom: .3em; }
.bai h2 { margin-top: 1.5em; font-size: clamp(1.25rem, 1.1rem + .8vw, 1.6rem); }
.bai h3 { margin-top: 1.4em; font-size: 1.12rem; }
.bai ul:not(.tich-ds) { margin: 0 0 1em; padding-left: 1.25em; }
.bai h4 { margin-top: 1.2em; font-size: 1rem; font-weight: 700; color: var(--mau-dam); }
.bai li { margin-bottom: 6px; }
.bai-anh { margin: 1.2em 0; }
.bai-anh img { width: 100%; border-radius: var(--bo); box-shadow: var(--bong-nho); }
.bai-anh figcaption { margin-top: 6px; font-size: .88rem; color: var(--chu-nhat); text-align: center; }
.gia-to { margin-bottom: 18px; font-size: 1.15rem; }
.dv-anh { aspect-ratio: 16 / 9; margin-bottom: 22px; border-radius: 22px; box-shadow: var(--bong); }
.dv-anh .ic.to { width: 22%; }
.dv-ben { display: grid; gap: 12px; padding: 20px; background: var(--mau-rat-nhat); border: 1px solid var(--vien); border-radius: 24px; }
.dv-ben h2 { margin: 0; font-size: 1.3rem; }
.dv-ben > p { margin: 0; color: var(--chu-nhat); font-size: .95rem; }
.dv-ben .bieu-mau { padding: 18px; box-shadow: var(--bong-nho); border: 1px solid var(--vien); }
@media (min-width: 960px) {
  .dv-luoi { grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; }
  .dv-ben { position: sticky; top: 96px; }
}
.so-404 { margin: 0; font-size: clamp(4rem, 2rem + 12vw, 8rem); font-weight: 800; line-height: 1; color: var(--mau-nhat); }

/* ===== 13. Chân trang ===== */
.chan { padding-top: 48px; background: color-mix(in srgb, var(--chu) 94%, #000); color: #c7d6d3; font-size: .95rem; }
.chan a { color: #fff; }
.chan-luoi { display: grid; gap: 28px; }
.chan-ten { margin-bottom: 8px; font-size: 1.25rem; font-weight: 800; color: #fff; }
.chan h3 { margin-bottom: 12px; font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; color: #fff; }
.chan ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.chan li .ic { margin-right: 6px; color: var(--nhan); }
@media (min-width: 520px) { .chan-dv { grid-template-columns: 1fr 1fr; column-gap: 20px; } }
@media (min-width: 900px) { .chan-luoi { grid-template-columns: 1.1fr 1.5fr 1fr; gap: 48px; } }
.ban-quyen { margin-top: 36px; padding: 16px 0 calc(112px + env(safe-area-inset-bottom)); border-top: 1px solid rgb(255 255 255 / .12);
  font-size: .85rem; text-align: center; }

/* ===== 14. Nút liên hệ nổi. Điện thoại: thanh 3 nút dính đáy. Máy tính: nút tròn góc phải ===== */
/* Điện thoại: một "bệ" bo tròn nổi cách mép màn hình. Nút Gọi ngay hình tròn nhô lên ở giữa, có vòng sóng lan ra
   và ống nghe rung như chuông đổ; hai bên là Zalo (xanh Zalo) và Nhận báo giá (màu nhấn). */
.thanh-day { position: fixed; inset: auto 10px calc(10px + env(safe-area-inset-bottom)); z-index: 60; display: grid;
  grid-template: 60px / 1fr 88px 1fr; max-width: 480px; height: 62px; margin-inline: auto; background: rgb(255 255 255 / .96); border: 1px solid var(--vien); border-radius: 22px;
  box-shadow: 0 12px 32px rgb(12 22 40 / .20), 0 2px 6px rgb(12 22 40 / .08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.thanh-day a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--chu);
  font-weight: 700; font-size: .74rem; line-height: 1.2; text-decoration: none; -webkit-tap-highlight-color: transparent; }
.td-ic { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 10px; transition: transform .12s; }
.td-ic .ic { width: 18px; height: 18px; }
.thanh-day a:active .td-ic { transform: scale(.92); }
.td-zalo .td-ic { background: #0068ff; color: #fff; }
.td-gia .td-ic { background: var(--nhan); color: var(--nhan-chu); }
/* Nút giữa: xếp sát đáy bệ nên vòng tròn tự nhô lên khỏi mép trên */
.thanh-day .td-goi { justify-content: flex-end; padding-bottom: 7px; color: var(--mau-dam); }
.td-goi .td-ic { position: relative; width: 60px; height: 60px; border: 4px solid #fff; border-radius: 50%;
  background: linear-gradient(145deg, var(--mau), var(--mau-dam)); color: #fff; box-shadow: 0 8px 18px color-mix(in srgb, var(--mau) 45%, transparent); }
.td-goi .td-ic::before { content: ""; position: absolute; inset: -4px; border: 2px solid var(--mau); border-radius: 50%; animation: song-lan 2.4s ease-out infinite; }
.td-goi .td-ic .ic { width: 26px; height: 26px; transform-origin: 50% 55%; animation: rung-chuong 3.2s ease-in-out infinite; }
@keyframes song-lan { 0% { transform: scale(1); opacity: .65; } 70%, 100% { transform: scale(1.5); opacity: 0; } }
@keyframes rung-chuong {
  0%, 58%, 100% { transform: rotate(0); }
  63% { transform: rotate(-16deg); } 68% { transform: rotate(14deg); } 73% { transform: rotate(-12deg); }
  78% { transform: rotate(10deg); } 83% { transform: rotate(-6deg); } 88% { transform: rotate(3deg); }
}
.noi-goc { display: none; }
@media (min-width: 800px) {
  .thanh-day { display: none; }
  .ban-quyen { padding-bottom: 16px; }
  .noi-goc { display: grid; gap: 12px; position: fixed; right: 20px; bottom: 20px; z-index: 60; }
  .noi-goc > * { display: grid; place-items: center; width: 54px; height: 54px; padding: 0; border: 0; border-radius: 50%; color: #fff;
    font: 800 .82rem var(--phong); box-shadow: var(--bong); cursor: pointer; text-decoration: none; transition: transform .15s; }
  .noi-goc > *:hover { transform: scale(1.08); text-decoration: none; }
  .noi-goc .ic { width: 24px; height: 24px; }
  .noi-zalo { background: #0068ff; }
  .noi-goi { background: var(--mau); animation: nhip 2.4s infinite; }
  .noi-len { background: #fff; color: var(--chu) !important; border: 1px solid var(--vien) !important; }
  .noi-len[hidden] { display: none; }
}
@keyframes nhip {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--mau) 55%, transparent); }
  70%, 100% { box-shadow: 0 0 0 16px transparent; }
}

/* ===== 15. Hiện dần khi cuộn tới. site.js chỉ gắn lớp "cho" (ẩn tạm) cho mục nằm ngoài màn hình,
   nên JS lỗi hay trình duyệt cũ thì mọi thứ vẫn hiện bình thường ===== */
.hien { transition: opacity .45s ease, transform .45s ease, box-shadow .2s; }
.hien.cho { opacity: 0; transform: translateY(16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hien.cho { opacity: 1; transform: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print { .dau, .thanh-tren, .thanh-day, .noi-goc { display: none !important; } .hien.cho { opacity: 1; transform: none; } }
