/* ==========================================================================
   mau.css — Mẫu A · dịch vụ (xây dựng, nội thất, kiến trúc, luật, kế toán)
   Thương hiệu minh hoạ: "Nhà Mộc Studio" (tên minh hoạ). Hướng nghệ thuật A — tối giản kiến trúc:
   giấy ngà, mực than, nhấn đất nung · chữ có chân lớn (Newsreader) + Be Vietnam Pro · lưới mảnh, nét bản vẽ.
   Đổi màu cả web: sửa 12 dòng đầu ở :root. Đổi font: sửa --font-tieu-de / --font-than + thẻ <link> font trong <head>.
   Không sửa _loi/xuong.css, _loi/khoi.css — chỉ ghi đè ở đây.
   ========================================================================== */

:root {
  /* ---- Bảng màu riêng của mẫu A (đo tương phản 22/9: chữ phụ 6,1:1 · nhấn 4,7:1 · nhấn chữ nhỏ 6,8:1 trên nền) */
  --ma-nen: #F6F1E7;            /* giấy ngà */
  --ma-nen-2: #EDE6D8;          /* giấy đậm hơn một nấc: thẻ, khung ảnh */
  --ma-chu: #20211D;            /* mực than */
  --ma-chu-phu: #5E5A50;        /* chữ phụ — 6,1:1 trên nền, 5,5:1 trên nền-2 */
  --ma-nhan: #9C5B3C;           /* đất nung — số lớn, nét nhấn · 4,7:1 */
  --ma-nhan-dam: #7F4428;       /* đất nung đậm — chữ nhỏ, liên kết · 6,8:1 */
  --ma-toi: #1E1F1B;            /* mảng tối: form báo giá, chân trang */
  --ma-chu-sang: #F3EEE3;
  --ma-chu-sang-phu: #B9B2A4;   /* 7,9:1 trên mảng tối */
  --ma-nhan-sang: #D69A76;      /* 6,9:1 trên mảng tối */
  --ma-vien: rgba(32, 33, 29, .14);
  --ma-net: rgba(32, 33, 29, .08);      /* lưới mảnh */

  --mau-nen: var(--ma-nen);
  --mau-nen-2: var(--ma-nen-2);
  --mau-chu: var(--ma-chu);
  --mau-chu-phu: var(--ma-chu-phu);
  --mau-nhan: var(--ma-nhan);
  --mau-nhan-dam: var(--ma-nhan-dam);
  --mau-toi: var(--ma-toi);
  --mau-chu-sang: var(--ma-chu-sang);
  --mau-chu-sang-phu: var(--ma-chu-sang-phu);
  --mau-nhan-sang: var(--ma-nhan-sang);
  --mau-vien: var(--ma-vien);
  --mau-vien-sang: rgba(243, 238, 227, .16);

  /* ---- Chữ: Newsreader (có chân, cỡ quang học 72) cho tiêu đề · Be Vietnam Pro cho thân bài */
  --font-tieu-de: "Newsreader", Georgia, "Times New Roman", serif;
  --font-than: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --dam-tieu-de: 400;
  --co-sieu: clamp(2.45rem, 1rem + 5.4vw, 6.4rem);
  --co-1: clamp(2.2rem, 1.25rem + 3.6vw, 4.5rem);
  --co-2: clamp(1.95rem, 1.3rem + 2.3vw, 3.35rem);
  --co-3: clamp(1.32rem, 1.18rem + .5vw, 1.66rem);

  --bo-goc: 3px;
  --bo-goc-nho: 2px;
  --cao-dau: 64px;              /* chiều cao thanh trên */
}
@media (min-width: 1024px) { :root { --cao-dau: 72px; } }

html { scroll-padding-top: calc(var(--cao-dau) + 16px); }
body { font-feature-settings: "kern"; }
:where(h1, h2) { letter-spacing: -.015em; line-height: 1.08; }
:where(h2) { line-height: 1.12; }
:where(h3) { font-size: var(--co-3); line-height: 1.24; letter-spacing: -.005em; }
:where(h1, h2, h3) em { font-style: normal; }   /* không tải bộ chữ nghiêng: nhấn bằng màu đất nung */
.xw-nhan { letter-spacing: .18em; }
.xw-nut { border-radius: var(--bo-goc-nho); letter-spacing: .01em; }
a:where(:not([class])) { color: var(--mau-nhan-dam); }
.xw-toi a:where(:not([class])) { color: var(--mau-chu-sang); }

/* Liên kết phụ đứng riêng (không phải nút) — vẫn đủ vùng bấm 48px */
.ma-lien-ket {
  display: inline-flex; align-items: center; gap: .6em; min-height: 48px; padding-inline: .2em;
  color: var(--mau-chu); font-weight: 600; text-decoration: none;
}
.ma-lien-ket::after {
  content: ""; width: 1.6em; height: 1px; background: currentColor;
  transition: width .35s var(--duong-cong);
}
.ma-lien-ket:hover::after { width: 2.4em; }

/* ============================================================ thanh trên */
.ma-dau {
  position: fixed; z-index: var(--z-thanh); inset: 0 0 auto;
  background: var(--mau-nen); border-bottom: 1px solid var(--mau-vien);
}
.ma-dau__trong { display: flex; align-items: center; gap: var(--k-5); height: var(--cao-dau); }
.ma-thuong-hieu {
  display: inline-flex; align-items: center; gap: .6rem; min-height: 44px;
  color: var(--mau-chu); text-decoration: none;
}
.ma-thuong-hieu__dau { width: 28px; height: 28px; flex: none; }
.ma-thuong-hieu__ten { font-family: var(--font-tieu-de); font-size: 1.38rem; line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.ma-menu { display: none; margin-left: auto; gap: .2rem; }
.ma-menu a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .75rem;
  color: var(--mau-chu-phu); font-size: var(--co-nho); font-weight: 600; letter-spacing: .02em; text-decoration: none;
  transition: color .2s;
}
.ma-menu a:hover { color: var(--mau-chu); }
.ma-dau__goi {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin-left: auto; padding: 0 .9rem;
  border: 1px solid var(--mau-chu); border-radius: var(--bo-goc-nho);
  color: var(--mau-chu); font-size: var(--co-nho); font-weight: 600; text-decoration: none; white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.ma-dau__goi svg { width: 18px; height: 18px; flex: none; }
.ma-dau__goi:hover { background: var(--mau-chu); color: var(--mau-nen); }
.ma-dau__goi-so { display: none; }
@media (min-width: 420px) { .ma-dau__goi-so { display: inline; } .ma-dau__goi-chu { display: none; } }
@media (min-width: 1024px) {
  .ma-menu { display: flex; }
  .ma-dau__goi { margin-left: var(--k-3); }
}

/* ============================================================ lưới mảnh (nét dọc kiểu bản vẽ) */
.ma-luoi { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ma-luoi__trong {
  height: 100%; max-width: var(--rong-toi-da); margin-inline: auto; padding-inline: var(--le);
  background-image: linear-gradient(var(--ma-net), var(--ma-net)), linear-gradient(var(--ma-net), var(--ma-net));
  background-size: 1px 100%; background-repeat: no-repeat;
  background-position: 0 0, 100% 0; background-origin: content-box; background-clip: content-box;
}
@media (min-width: 761px) {
  .ma-luoi__trong {
    background-image: linear-gradient(var(--ma-net), var(--ma-net)), linear-gradient(var(--ma-net), var(--ma-net)),
      linear-gradient(var(--ma-net), var(--ma-net)), linear-gradient(var(--ma-net), var(--ma-net));
    background-position: 0 0, 33.333% 0, 66.667% 0, 100% 0;
  }
}

/* ============================================================ hero · mô hình khối (mặc định của mẫu) */
.ma-hero[data-hero="mo-hinh"] {
  background: var(--mau-nen); color: var(--mau-chu);
  --mau-chu-phu: var(--ma-chu-phu); --mau-nhan-dam: var(--ma-nhan-dam); --mau-vien: var(--ma-vien);
}
.ma-hero .hero-phong__khung picture { display: contents; }
.ma-hero .hero-phong__anh { will-change: transform; }
.ma-hero[data-hero="mo-hinh"] .hero-phong__anh { object-position: 100% 50%; }   /* khung hẹp: cắt phần giấy bên trái, giữ trọn mô hình */
.ma-hero[data-hero="mo-hinh"] .hero-phong__phu {
  background: linear-gradient(90deg, var(--mau-nen) 0%, color-mix(in srgb, var(--mau-nen) 86%, transparent) 30%, color-mix(in srgb, var(--mau-nen) 0%, transparent) 52%);
}
.ma-hero[data-hero="mo-hinh"] .hero-phong__chu { padding-top: calc(var(--cao-dau) + 3rem); padding-bottom: clamp(3.5rem, 11vh, 7.5rem); }
.ma-hero[data-hero="mo-hinh"] .hero-phong__chu h1 { color: var(--mau-chu); max-width: 12.5ch; font-size: var(--co-sieu); line-height: 1.04; }
.ma-hero .hero-phong__chu h1 em { display: block; color: var(--mau-nhan); }
.ma-hero .hero-phong__chu > .xw-nhan { margin-bottom: var(--k-5); }
.ma-hero[data-hero="mo-hinh"] .hero-phong__mo-ta { color: var(--mau-chu-phu); max-width: 36ch; }
.ma-hero .hero-phong__nut { align-items: center; gap: var(--k-4) var(--k-5); }
.ma-hero[data-hero="mo-hinh"] .hero-phong__chi-tiet {
  left: var(--le); right: auto; bottom: clamp(1.5rem, 6vh, 3.5rem); max-width: 26rem;
  padding: var(--k-4) var(--k-5); border-left: 2px solid var(--mau-nhan); background: var(--mau-nen);
  color: var(--mau-chu); font-family: var(--font-tieu-de); font-size: var(--co-3); line-height: 1.3;
}
/* 3D (L3): canvas hiện đè ảnh SVG cùng góc máy rồi ảnh mờ đi */
.ma-mo-hinh__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.1s var(--duong-cong); }
.ma-hero--3d .ma-mo-hinh__canvas { opacity: 1; }
.ma-hero--3d .hero-phong__anh { opacity: 0; transition: opacity .6s .9s; }

/* Lớp chú thích bản vẽ (nét đo, cao độ, ghi chú) */
.ma-chu-thich { position: absolute; inset: 0; pointer-events: none; }
.ma-chu-thich svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ma-chu-thich__doc { display: none; }
.ma-chu-thich .n { fill: none; stroke: var(--mau-chu); stroke-opacity: .5; stroke-width: 1.3; }
.ma-chu-thich .d { fill: var(--mau-nhan); }
.ma-chu-thich text { font-family: var(--font-than); font-size: 15px; font-weight: 600; letter-spacing: .14em; fill: var(--mau-chu); fill-opacity: .78; }
.ma-chu-thich .so { fill: var(--mau-nhan-dam); fill-opacity: 1; letter-spacing: .06em; font-variant-numeric: tabular-nums; }
:where(html.xuong-dong) .ma-hero:not([data-cap-chay="tinh"]) .ma-chu-thich .n { stroke-dasharray: 1; stroke-dashoffset: 1; animation: ma-ve-net 1.3s var(--duong-cong) .35s forwards; }
:where(html.xuong-dong) .ma-hero:not([data-cap-chay="tinh"]) .ma-chu-thich .n:nth-of-type(2n) { animation-delay: .55s; }
:where(html.xuong-dong) .ma-hero:not([data-cap-chay="tinh"]) .ma-chu-thich :is(text, .d) { opacity: 0; animation: ma-hien .8s ease 1.1s forwards; }
@keyframes ma-ve-net { to { stroke-dashoffset: 0; } }
@keyframes ma-hien { to { opacity: 1; } }

/* Nhãn nhỏ ở góc hero */
.ma-hero__goc {
  position: absolute; z-index: 2; right: var(--le); top: calc(var(--cao-dau) + 1.25rem);
  font-size: var(--co-ti); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mau-chu-phu);
}

@media (max-width: 760px) {
  .ma-hero[data-hero="mo-hinh"] .hero-phong__san { align-items: start; }
  .ma-hero[data-hero="mo-hinh"] .hero-phong__khung { top: 56%; }
  .ma-hero[data-hero="mo-hinh"] .hero-phong__anh { object-position: 50% 50%; }
  .ma-hero[data-hero="mo-hinh"] .hero-phong__phu { background: linear-gradient(180deg, var(--mau-nen) 0%, var(--mau-nen) 54%, color-mix(in srgb, var(--mau-nen) 0%, transparent) 64%); }
  .ma-hero[data-hero="mo-hinh"] .hero-phong__nut .ma-lien-ket { display: none; }   /* điện thoại: một nút chính, mô hình có chỗ đứng */
  .ma-hero[data-hero="mo-hinh"] .hero-phong__chu { padding-top: calc(var(--cao-dau) + 1.75rem); padding-bottom: 0; }
  .ma-hero[data-hero="mo-hinh"] .hero-phong__chu h1 { font-size: clamp(2.25rem, 9.4vw, 2.9rem); max-width: 13ch; }
  .ma-hero[data-hero="mo-hinh"] .hero-phong__mo-ta { margin-top: var(--k-4); font-size: 1rem; }
  .ma-hero .hero-phong__nut { margin-top: var(--k-5); }
  .ma-hero[data-hero="mo-hinh"] .hero-phong__chi-tiet { left: var(--le); right: var(--le); font-size: 1.15rem; }
  .ma-chu-thich__ngang { display: none; }
  .ma-chu-thich__doc { display: block; }
  .ma-chu-thich text { font-size: 30px; }
  .ma-chu-thich .n { stroke-width: 2.4; }
  .ma-hero__goc { display: none; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .ma-hero[data-hero="mo-hinh"] .hero-phong__khung { top: 57%; }
  .ma-hero[data-hero="mo-hinh"] .hero-phong__mo-ta { display: none; }
}

/* Hero chế độ ẢNH THẬT: chủ web thay ảnh hero bằng ảnh công trình → về kiểu hero ảnh tối của lõi */
.ma-hero[data-hero="anh"] .ma-chu-thich, .ma-hero[data-hero="anh"] .ma-hero__goc { display: none; }
.ma-hero[data-hero="anh"] .hero-phong__chu { padding-top: calc(var(--cao-dau) + 4rem); }
.ma-hero[data-hero="anh"] .hero-phong__chu h1 em { color: var(--mau-nhan-sang); }
.ma-hero[data-hero="anh"] .ma-lien-ket { color: var(--mau-chu-sang); }
.ma-hero[data-hero="anh"] .ma-luoi { display: none; }
.ma-hero[data-hero="anh"] .xw-nut:not(.xw-nut--vien) { --nut-nen: var(--mau-chu-sang); --nut-chu: var(--mau-toi); }

/* ============================================================ khung mục dùng chung */
.ma-muc { position: relative; padding-block: var(--dem-muc); }
.ma-muc--sat-tren { padding-top: 0; }
.ma-quay-lai { margin-top: var(--k-6); }
.ma-dau-muc {
  display: grid; gap: var(--k-4) var(--k-6); align-items: start;
  padding-top: var(--k-5); border-top: 1px solid var(--mau-vien); margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 5.5rem);
}
.ma-dau-muc h2 { max-width: 19ch; }
.ma-dau-muc > p:not(.xw-nhan):not(.ma-so-muc) { max-width: 44ch; color: var(--mau-chu-phu); }
.ma-dau-muc__nhan { display: flex; align-items: baseline; gap: var(--k-4); }
.ma-so-muc {
  font-family: var(--font-tieu-de); font-size: 1.5rem; line-height: 1; color: var(--mau-nhan);   /* ≥24px = chữ lớn: đất nung đạt 4,2:1 trên nền đậm */
  font-variant-numeric: lining-nums tabular-nums;
}
@media (min-width: 900px) {
  .ma-dau-muc { grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); }
  .ma-dau-muc > :not(.ma-dau-muc__nhan) { grid-column: 2; }
  .ma-dau-muc__nhan { grid-row: 1 / span 3; flex-direction: column; gap: var(--k-3); padding-top: .55rem; }
}
.xw-toi .ma-dau-muc { border-top-color: var(--mau-vien-sang); }
.xw-toi .ma-so-muc { color: var(--mau-nhan-sang); }

/* Khung ảnh: khung chờ ghi rõ "Ảnh công trình của anh chị" — tự ẩn nhãn khi đã có ảnh thật */
.ma-khung-anh { position: relative; overflow: hidden; background: var(--mau-nen-2); aspect-ratio: 4 / 5; }
.ma-khung-anh--16x9 { aspect-ratio: 16 / 9; }
.ma-khung-anh--4x3 { aspect-ratio: 4 / 3; }
.ma-khung-anh img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--duong-cong); }
.ma-khung-anh__nhan {
  position: absolute; left: var(--k-3); bottom: var(--k-3); display: none; align-items: center; gap: .5em;
  padding: .45em .75em; border: 1px dashed var(--mau-vien); background: var(--mau-nen);
  font-size: var(--co-ti); font-weight: 600; letter-spacing: .06em; color: var(--mau-chu-phu);
}
.ma-khung-anh__nhan::before {
  content: ""; width: 14px; height: 11px; flex: none; border: 1.4px solid currentColor; border-radius: 2px;
  box-shadow: inset 0 0 0 2.5px var(--mau-nen), inset 0 0 0 6px currentColor;
}
.ma-khung-anh:has(> img[src*="/ai-web-kit/demo/a/anh/cho-anh"]) .ma-khung-anh__nhan { display: inline-flex; }

/* ============================================================ chỉ dấu tin cậy */
.ma-tin { position: relative; padding-block: clamp(3rem, 2rem + 4vw, 5.5rem); border-bottom: 1px solid var(--mau-vien); }
.ma-tin__luoi { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--k-7) var(--k-5); }
.ma-tin__ghi {
  grid-column: 1 / -1; font-size: var(--co-ti); font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: var(--mau-chu-phu);
}
.ma-tin__muc { display: grid; gap: var(--k-2); align-content: start; padding-top: var(--k-4); border-top: 1px solid var(--mau-vien); }
.ma-tin__muc > p { max-width: 16ch; color: var(--mau-chu-phu); font-size: var(--co-nho); line-height: 1.5; }
.ma-tin .so-lon:not(.so-lon--chay) { font-size: clamp(2.9rem, 2.1rem + 3vw, 4.8rem); line-height: 1; font-variant-numeric: lining-nums tabular-nums; }
.ma-tin .so-lon__hang { font-size: clamp(2.9rem, 2.1rem + 3vw, 4.8rem); gap: 0; }
.ma-tin .so-lon__o { width: .58em; height: 1.16em; background: var(--mau-nen); color: var(--mau-chu); box-shadow: none; border-radius: 0; perspective: 5em; }
.ma-tin .so-lon__o::after { display: none; }
.ma-tin .so-lon__la--duoi { background: var(--mau-nen); }
.ma-tin .so-lon__nua > span, .ma-tin .so-lon__la > span { height: 1.16em; line-height: 1.16em; font-variant-numeric: lining-nums; }
@media (min-width: 900px) {
  .ma-tin__luoi { grid-template-columns: minmax(0, 3fr) repeat(4, minmax(0, 2.25fr)); align-items: start; }
  .ma-tin__ghi { grid-column: auto; align-self: start; padding-top: var(--k-4); max-width: 18ch; line-height: 1.8; }
}

/* ============================================================ dịch vụ */
.ma-dich-vu__luoi { display: grid; gap: var(--k-7); }
.ma-dich-vu__the { display: grid; gap: var(--k-4); align-content: start; padding-top: var(--k-5); border-top: 1px solid var(--mau-vien); }
.ma-dich-vu__bieu-tuong { width: 44px; height: 44px; color: var(--mau-nhan); }
.ma-dich-vu__the p { color: var(--mau-chu-phu); max-width: 34ch; }
.ma-dich-vu__gom { list-style: none; margin: var(--k-2) 0 0; padding: 0; display: grid; gap: .55rem; font-size: var(--co-nho); }
.ma-dich-vu__gom li { display: flex; gap: .7em; align-items: baseline; }
.ma-dich-vu__gom li::before { content: ""; flex: none; width: .9em; height: 1px; background: var(--mau-nhan); transform: translateY(-.3em); }
@media (min-width: 900px) {
  .ma-dich-vu__luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .ma-dich-vu__the { padding: var(--k-5) var(--k-6) 0; border-left: 1px solid var(--mau-vien); }
  .ma-dich-vu__the:first-child { padding-left: 0; border-left: 0; }
}

/* ============================================================ đi vào nhà (hoa-canh, bản sáng) */
.ma-vao-nha.hoa-canh {
  background: var(--mau-nen); color: var(--mau-chu);
  --mau-chu-phu: var(--ma-chu-phu); --mau-nhan-dam: var(--ma-nhan-dam); --mau-vien: var(--ma-vien);
}
.ma-vao-nha .hoa-canh__canh::after {
  background: linear-gradient(to top, var(--mau-nen) 0%, color-mix(in srgb, var(--mau-nen) 88%, transparent) 22%, color-mix(in srgb, var(--mau-nen) 0%, transparent) 50%);
}
.ma-vao-nha .hoa-canh__chu h2 { color: var(--mau-chu); font-size: var(--co-1); }
.ma-vao-nha .hoa-canh__chu p { color: var(--mau-chu-phu); }
.ma-vao-nha .hoa-canh__chu .xw-nhan { color: var(--mau-nhan-dam); }
.ma-vao-nha .hoa-canh__tien-do span { background: rgba(32, 33, 29, .22); }
.ma-vao-nha .hoa-canh__tien-do span.dang-hien { background: var(--mau-nhan); }
.ma-the-minh-hoa {
  position: absolute; z-index: 3; left: var(--le); top: calc(var(--cao-dau) + 1rem); display: none;
  max-width: calc(100% - 2 * var(--le)); padding: .4em .75em; border: 1px dashed var(--mau-vien); background: var(--mau-nen);
  font-size: var(--co-ti); font-weight: 600; letter-spacing: .04em; color: var(--mau-chu-phu);
}
.hoa-canh__canh:has(> img[src*="/ai-web-kit/demo/a/anh/vao-nha-"]) .ma-the-minh-hoa { display: block; }

/* ============================================================ dự án */
.ma-du-an__luoi { display: grid; gap: var(--k-8) var(--k-6); }
.ma-du-an__the { min-width: 0; }
.ma-du-an__lien-ket { display: grid; gap: var(--k-3); color: inherit; text-decoration: none; }
.ma-du-an__lien-ket:hover .ma-khung-anh img { transform: scale(1.035); }
.ma-du-an__dong { display: flex; justify-content: space-between; gap: var(--k-3); margin-top: var(--k-2); font-size: var(--co-nho); color: var(--mau-chu-phu); }
.ma-du-an__ten { font-size: var(--co-3); }
.ma-du-an__lien-ket:hover .ma-du-an__ten { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.ma-du-an__so { display: grid; grid-template-columns: repeat(3, minmax(0, auto)); justify-content: start; gap: var(--k-2) var(--k-5); margin: var(--k-2) 0 0; padding-top: var(--k-3); border-top: 1px solid var(--mau-vien); }
.ma-du-an__so dt { font-size: var(--co-ti); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mau-chu-phu); }
.ma-du-an__so dd { margin: .15rem 0 0; font-size: var(--co-nho); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ma-du-an__chan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--k-4); margin-top: var(--k-8); padding-top: var(--k-5); border-top: 1px solid var(--mau-vien); }
.ma-du-an__chan p { color: var(--mau-chu-phu); font-size: var(--co-nho); max-width: 52ch; }
@media (min-width: 640px) { .ma-du-an__luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ma-du-an__the:nth-child(2n) { margin-top: var(--k-8); } }
@media (min-width: 1024px) {
  .ma-du-an__luoi { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ma-du-an__the:nth-child(2n) { margin-top: 0; }
  .ma-du-an__the:nth-child(3n + 2) { margin-top: var(--k-9); }
}

/* ============================================================ quy trình (the-quy-trinh, bản nét mảnh) */
.ma-quy-trinh .the-quy-trinh__ds { gap: 0; }
.ma-quy-trinh .the-quy-trinh__the,
.ma-quy-trinh .the-quy-trinh__the:nth-child(even) {
  min-height: 0; padding: var(--k-5) 0 var(--k-6); border-radius: 0; background: transparent; color: var(--mau-chu);
  border-top: 1px solid var(--mau-vien);
}
.ma-quy-trinh .the-quy-trinh__so,
.ma-quy-trinh .the-quy-trinh__the:nth-child(even) .the-quy-trinh__so {
  margin-bottom: var(--k-5); font-size: clamp(2.4rem, 1.9rem + 1.6vw, 3.4rem); color: var(--mau-nhan); font-variant-numeric: lining-nums tabular-nums;
}
.ma-quy-trinh .the-quy-trinh__the p,
.ma-quy-trinh .the-quy-trinh__the:nth-child(even) p { color: var(--mau-chu-phu); font-size: .96rem; }
.ma-quy-trinh .ma-nhan-duoc { margin-top: var(--k-4); padding-top: var(--k-3); border-top: 1px dashed var(--mau-vien); font-size: var(--co-nho); color: var(--mau-chu); }
.ma-quy-trinh .ma-nhan-duoc::before { content: "Anh chị nhận: "; font-weight: 600; color: var(--mau-nhan-dam); }
.ma-quy-trinh.the-quy-trinh--duong .the-quy-trinh__ds { padding-top: 0; }
.ma-quy-trinh .the-quy-trinh__the h3 { margin-bottom: var(--k-3); }
@media (min-width: 900px) {
  .ma-quy-trinh .the-quy-trinh__ds { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ma-quy-trinh .the-quy-trinh__the,
  .ma-quy-trinh .the-quy-trinh__the:nth-child(even) { padding: var(--k-6) var(--k-5) var(--k-5); border-top: 0; border-left: 1px solid var(--mau-vien); }
  .ma-quy-trinh .the-quy-trinh__the:first-child { padding-left: 0; border-left: 0; }
  .ma-quy-trinh .the-quy-trinh__the h3 { min-height: 2.5em; }   /* tên bước dài 2 dòng vẫn thẳng hàng mô tả */
  .ma-quy-trinh:not(.the-quy-trinh--duong) .the-quy-trinh__ds { border-top: 1px solid var(--mau-vien); }
}
@media (max-width: 760px) {
  .ma-quy-trinh.the-quy-trinh--duong .the-quy-trinh__ds { padding-left: 22px; }
  .ma-quy-trinh .the-quy-trinh__the { border-top: 0; }
}

/* ============================================================ chi phí tham khảo */
.ma-chi-phi { background: var(--mau-nen-2); }
.ma-chi-phi .ma-dau-muc { border-top-color: rgba(32, 33, 29, .18); }
.ma-chi-phi__bang { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mau-chu); }
.ma-chi-phi__dong { display: grid; gap: var(--k-2) var(--k-6); padding: var(--k-5) 0; border-bottom: 1px solid rgba(32, 33, 29, .18); }
.ma-chi-phi__dong h3 { font-size: var(--co-3); }
.ma-chi-phi__dong p { color: var(--mau-chu-phu); font-size: var(--co-nho); max-width: 46ch; margin-top: .35rem; }
.ma-chi-phi__gia { font-family: var(--font-tieu-de); font-size: clamp(1.35rem, 1.2rem + .6vw, 1.8rem); line-height: 1.2; color: var(--mau-chu); font-variant-numeric: lining-nums tabular-nums; }
.ma-chi-phi__dong p.ma-chi-phi__gia { color: var(--mau-chu); font-size: clamp(1.35rem, 1.2rem + .6vw, 1.8rem); margin: 0; max-width: none; }
.ma-chi-phi__chan { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--k-5); margin-top: var(--k-6); }
.ma-chi-phi__luu-y { max-width: 60ch; font-size: var(--co-nho); color: var(--mau-chu-phu); }
@media (min-width: 900px) {
  .ma-chi-phi__dong { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: baseline; }
  .ma-chi-phi__dong p.ma-chi-phi__gia { text-align: right; }
}

/* ============================================================ cảm nhận khách — TỰ ẨN khi chưa có lời thật */
.ma-cam-nhan__luoi { display: grid; gap: var(--k-6); }
.ma-cam-nhan__the { margin: 0; padding-top: var(--k-5); border-top: 1px solid var(--mau-vien); }
.ma-cam-nhan__the blockquote { margin: 0; font-family: var(--font-tieu-de); font-size: var(--co-3); line-height: 1.4; }
.ma-cam-nhan__the figcaption { display: flex; flex-wrap: wrap; gap: .3em .8em; margin-top: var(--k-4); font-size: var(--co-nho); color: var(--mau-chu-phu); }
.ma-cam-nhan__the figcaption span:first-child { font-weight: 600; color: var(--mau-chu); }
@media (min-width: 900px) { .ma-cam-nhan__luoi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--k-7); } }
.ma-cam-nhan:not(:has(.ma-cam-nhan__the)) { display: none; }
@supports not selector(:has(*)) { .ma-cam-nhan { display: none; } }

/* ============================================================ hỏi đáp */
.ma-hoi-dap__ds { border-top: 1px solid var(--mau-chu); }
.ma-hoi-dap__muc { border-bottom: 1px solid var(--mau-vien); }
.ma-hoi-dap__muc summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--k-5); min-height: 64px; padding: var(--k-4) 0;
  font-family: var(--font-tieu-de); font-size: var(--co-3); line-height: 1.3; cursor: pointer; list-style: none;
}
.ma-hoi-dap__muc summary::-webkit-details-marker { display: none; }
.ma-hoi-dap__muc summary::after {
  content: ""; flex: none; width: 14px; height: 14px; margin-right: 4px;
  background: linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat, linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  color: var(--mau-nhan); transition: transform .3s var(--duong-cong);
}
.ma-hoi-dap__muc[open] summary::after { transform: rotate(45deg); }
.ma-hoi-dap__tra-loi { padding: 0 0 var(--k-5); max-width: 62ch; color: var(--mau-chu-phu); }
@media (min-width: 900px) {
  .ma-hoi-dap__luoi { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--k-8); align-items: start; }
  .ma-hoi-dap__luoi .ma-dau-muc { grid-template-columns: 1fr; margin-bottom: 0; }
  .ma-hoi-dap__luoi .ma-dau-muc > :not(.ma-dau-muc__nhan) { grid-column: auto; }
  .ma-hoi-dap__luoi .ma-dau-muc__nhan { grid-row: auto; flex-direction: row; }
}

/* ============================================================ báo giá (form trên mảng tối) */
.ma-bao-gia { overflow: hidden; }
.ma-bao-gia__luoi { display: grid; gap: var(--k-7); }
.ma-bao-gia__chu h2 { max-width: 15ch; margin-top: var(--k-4); }
.ma-bao-gia__chu > p:not(.xw-nhan):not(.ma-so-muc) { margin-top: var(--k-5); max-width: 40ch; color: var(--mau-chu-sang-phu); }
.ma-bao-gia__khac { display: flex; flex-wrap: wrap; gap: var(--k-3); margin-top: var(--k-6); }
.ma-bao-gia__khac .xw-nut { min-height: 48px; }
.ma-bao-gia [data-khoi="form-lien-he"] form, .ma-bao-gia form { max-width: none; }
.ma-form { padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border: 1px solid var(--mau-vien-sang); background: rgba(243, 238, 227, .03); }
.xw-toi .form-lien-he__chip span { background: transparent; border-color: rgba(243, 238, 227, .38); color: var(--mau-chu-sang); }
.xw-toi .form-lien-he__chip input:checked + span { background: var(--mau-nhan-sang); border-color: var(--mau-nhan-sang); color: var(--mau-toi); }
.xw-toi .form-lien-he__chip input:focus-visible + span { outline-color: var(--mau-nhan-sang); }
.ma-form .form-lien-he__chon { gap: .5rem; }
.ma-form .form-lien-he__o > legend { margin-bottom: var(--k-2); font-weight: 600; }
.ma-form .form-lien-he__dong-y { min-height: 44px; align-items: center; }
.ma-form .form-lien-he__dong-y input { margin-top: 0; }
.ma-form input:not([type="radio"]):not([type="checkbox"]) { border-radius: var(--bo-goc-nho); }
.ma-form .form-lien-he__goi-y { font-size: var(--co-nho); color: var(--mau-chu-sang-phu); }
@media (min-width: 900px) { .ma-bao-gia__luoi { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--k-8); align-items: start; } }

/* ============================================================ chân trang */
.ma-chan { padding-block: clamp(3.5rem, 2.5rem + 4vw, 6rem) 7.5rem; border-top: 1px solid var(--mau-vien-sang); }   /* chừa chỗ cho nút Zalo/Gọi nổi */
.ma-chan__luoi { display: grid; gap: var(--k-7); }
.ma-chan__ten { font-family: var(--font-tieu-de); font-size: clamp(1.9rem, 1.5rem + 1.5vw, 2.8rem); line-height: 1.05; }
.ma-chan__mo-ta { margin-top: var(--k-4); max-width: 34ch; color: var(--mau-chu-sang-phu); font-size: var(--co-nho); }
.ma-chan h2 { font-family: var(--font-than); font-size: var(--co-ti); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mau-chu-sang-phu); margin-bottom: var(--k-3); }
.ma-chan ul { list-style: none; margin: 0; padding: 0; display: grid; }
.ma-chan li a, .ma-chan__nut {
  display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0; border: 0; background: none;
  color: var(--mau-chu-sang); font: inherit; font-size: var(--co-nho); text-decoration: none; cursor: pointer;
}
.ma-chan li a:hover, .ma-chan__nut:hover { text-decoration: underline; text-underline-offset: .2em; }
.ma-chan__dong { display: flex; align-items: center; min-height: 44px; font-size: var(--co-nho); color: var(--mau-chu-sang-phu); }
.ma-chan__day { display: grid; gap: var(--k-2); margin-top: var(--k-8); padding-top: var(--k-5); border-top: 1px solid var(--mau-vien-sang); font-size: var(--co-ti); line-height: 1.7; color: var(--mau-chu-sang-phu); }
@media (min-width: 900px) {
  .ma-chan__luoi { grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2.5fr)); gap: var(--k-6); }
}

/* ============================================================ trang con: chi tiết dự án · liên hệ · chính sách */
.ma-trang-con main { padding-top: var(--cao-dau); }
.ma-duong-dan { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; font-size: var(--co-nho); color: var(--mau-chu-phu); }
.ma-duong-dan a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; color: var(--mau-chu-phu); text-decoration: none; }
.ma-duong-dan a:hover { color: var(--mau-chu); }
.ma-duong-dan span[aria-hidden] { opacity: .5; }

.ma-ct-dau { padding-block: clamp(2rem, 1.5rem + 3vw, 4.5rem) clamp(3rem, 2rem + 4vw, 6rem); }
.ma-ct-dau__luoi { display: grid; gap: var(--k-7); align-items: end; }
.ma-ct-dau h1 { font-size: var(--co-1); max-width: 14ch; margin-top: var(--k-4); }
.ma-ct-dau__mo-ta { margin-top: var(--k-5); max-width: 42ch; font-size: var(--co-lon); color: var(--mau-chu-phu); }
.ma-thong-so { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--mau-chu); }
.ma-thong-so > div { padding: var(--k-4) 0; border-bottom: 1px solid var(--mau-vien); }
.ma-thong-so > div:nth-child(odd) { padding-right: var(--k-4); }
.ma-thong-so dt { font-size: var(--co-ti); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mau-chu-phu); }
.ma-thong-so dd { margin: .3rem 0 0; font-family: var(--font-tieu-de); font-size: clamp(1.2rem, 1.1rem + .4vw, 1.45rem); line-height: 1.25; font-variant-numeric: lining-nums; }
@media (min-width: 900px) { .ma-ct-dau__luoi { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--k-8); } }

.ma-ct-bai { display: grid; gap: var(--k-7); }
.ma-ct-bai h2 { font-size: var(--co-2); }
.ma-ct-bai p { color: var(--mau-chu-phu); max-width: 60ch; }
.ma-ct-bai__khoi { display: grid; gap: var(--k-4); padding-top: var(--k-5); border-top: 1px solid var(--mau-vien); }
@media (min-width: 900px) {
  .ma-ct-bai__khoi { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--k-6); }
}
.ma-ct-anh { display: grid; gap: var(--k-5); }
.ma-ct-anh figure { margin: 0; }
.ma-ct-anh figcaption { margin-top: var(--k-3); font-size: var(--co-nho); color: var(--mau-chu-phu); }
.ma-ct-anh__doi { display: grid; gap: var(--k-5); }
@media (min-width: 760px) { .ma-ct-anh__doi { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ma-ct-moi { display: grid; gap: var(--k-5); align-items: center; padding: clamp(1.75rem, 1.2rem + 3vw, 3.5rem); background: var(--mau-nen-2); }
.ma-ct-moi h2 { font-size: var(--co-2); max-width: 18ch; }
.ma-ct-moi p { color: var(--mau-chu-phu); max-width: 44ch; margin-top: var(--k-3); }
.ma-ct-moi__nut { display: flex; flex-wrap: wrap; gap: var(--k-3); }
@media (min-width: 900px) { .ma-ct-moi { grid-template-columns: minmax(0, 1fr) auto; } }

.ma-lh { display: grid; gap: var(--k-8); }
.ma-lh__ds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--mau-chu); }
.ma-lh__ds li { display: grid; gap: .2rem; padding: var(--k-4) 0; border-bottom: 1px solid var(--mau-vien); }
.ma-lh__nhan { font-size: var(--co-ti); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--mau-chu-phu); }
.ma-lh__ds a, .ma-lh__ds strong { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--font-tieu-de); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.7rem); font-weight: 400; color: var(--mau-chu); text-decoration: none; }
.ma-lh__ds strong { min-height: 0; padding-block: .2rem; }
.ma-lh__ds a:hover { color: var(--mau-nhan-dam); }
@media (min-width: 900px) { .ma-lh { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--k-8); align-items: start; } }

.ma-chinh-sach { max-width: 46rem; }
.ma-chinh-sach h1 { font-size: var(--co-1); max-width: 16ch; margin-top: var(--k-4); }
.ma-chinh-sach h2 { font-size: var(--co-3); margin-top: var(--k-7); }
.ma-chinh-sach p, .ma-chinh-sach li { color: var(--mau-chu-phu); }
.ma-chinh-sach p + p, .ma-chinh-sach ul { margin-top: var(--k-4); }
.ma-chinh-sach ul { padding-left: 1.2em; display: grid; gap: .5rem; }
.ma-chinh-sach__ghi { margin-top: var(--k-5); padding: var(--k-4) var(--k-5); border-left: 2px solid var(--mau-nhan); background: var(--mau-nen-2); font-size: var(--co-nho); }
.ma-chinh-sach__ghi p { color: var(--mau-chu); }

/* ============================================================ in ấn */
@media print { .ma-dau, .ma-luoi, .ma-chu-thich { display: none !important; } .ma-trang-con main { padding-top: 0; } }

/* ============================================================ nút Zalo/Gọi nổi: thêm viền sáng để không chìm trên mảng tối */
[data-khoi="nut-noi"] > a { box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5), 0 0 0 1.5px rgba(246, 241, 231, .6); border-radius: var(--bo-goc-nho); }

/* ==== Lớp giao diện 2026-10 · tham chiếu GetLayers (màu/font/bố cục), mã tự viết ==== */
/* Mẫu A · bảng "Porcelain Cobalt" (nền sứ, mực than, nhấn cobalt) · Manrope 600 + Work Sans · đầu trang kiểu artist-hero.
   Tương phản đã đo 3/10: chữ 16,6:1 · chữ phụ 6,9:1 · nhấn chữ nhỏ 5,6:1 · nhấn số lớn 4,3:1 (chỉ dùng cỡ ≥ 24px) · chữ trắng trên nhấn 5,0:1. */
:root {
  --ma-nen: #EFECE3;
  --ma-nen-2: #E5E1D5;
  --ma-chu: #0B0B0E;
  --ma-chu-phu: #4B4F5B;
  --ma-nhan: #4970A9;
  --ma-nhan-dam: #3B5D92;
  --ma-toi: #0E1016;
  --ma-chu-sang: #EFECE3;
  --ma-chu-sang-phu: #A9B1C0;
  --ma-nhan-sang: #8FABD3;
  --ma-vien: rgba(11, 11, 14, .16);
  --ma-net: rgba(11, 11, 14, .08);

  --mau-nen: #EFECE3;
  --mau-nen-2: #E5E1D5;
  --mau-chu: #0B0B0E;
  --mau-chu-phu: #4B4F5B;
  --mau-nhan: #4970A9;
  --mau-nhan-dam: #3B5D92;
  --mau-toi: #0E1016;
  --mau-chu-sang: #EFECE3;
  --mau-chu-sang-phu: #A9B1C0;
  --mau-nhan-sang: #8FABD3;
  --mau-vien: rgba(11, 11, 14, .16);
  --mau-vien-sang: rgba(239, 236, 227, .18);

  --font-tieu-de: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-than: "Work Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --dam-tieu-de: 600;
}

/* 6 · chữ: tiêu đề giãn -0,02em, dòng ≥ 1,12 để dấu tiếng Việt có chỗ; thân chữ từ 16px */
body { font-size: max(16px, var(--co-than)); }
:where(h1, h2, h3, h4) { letter-spacing: -.02em; }
:where(h1, h2, h3) { line-height: 1.14; }
.ma-hero[data-hero="mo-hinh"] .hero-phong__chu h1,
.ma-chan__ten { line-height: 1.12; letter-spacing: -.02em; }

/* 2 · cụm tô màu trong tiêu đề → cùng màu chữ, không in nghiêng (vẫn xuống dòng riêng ở đầu trang) */
.ma-hero .hero-phong__chu h1 em,
.ma-hero[data-hero="anh"] .hero-phong__chu h1 em { color: inherit; font-style: normal; }

/* 3 · đồ trang trí rập khuôn: lưới bản vẽ, các nét chú thích cao độ trên mô hình, nhãn "tỉ lệ 1:100" → ẩn (không mang chữ của trang quản trị) */
.ma-luoi, .ma-chu-thich, .ma-hero__goc { display: none !important; }

/* 1 · nhãn nhỏ in hoa: giữ 1 nhãn trong 3 mục (đầu trang · Dự án · Khách nói gì), các nhãn còn lại ẩn; số thứ tự mục cũng ẩn */
.ma-so-muc { display: none !important; }
.ma-dich-vu .ma-dau-muc__nhan, .ma-quy-trinh .ma-dau-muc__nhan, .ma-chi-phi .ma-dau-muc__nhan,
.ma-hoi-dap .ma-dau-muc__nhan, .ma-bao-gia .ma-dau-muc__nhan,
.ma-vao-nha .hoa-canh__chu .xw-nhan { display: none !important; }

/* 4 · màu nhấn dùng tiết kiệm: nút mực đặc, liên kết cobalt đậm, vạch mảnh; không quầng sáng */
.xw-nut { letter-spacing: 0; }

/* Đầu trang kiểu artist-hero: cột chữ trái (nhãn → tiêu đề → đoạn dẫn → 2 nút → dòng ghi chú dưới vạch mảnh), hình nhà bên phải */
.ma-hero[data-hero="mo-hinh"] .hero-phong__chi-tiet {
  border-left: 0; border-top: 1px solid var(--mau-chu); background: transparent; padding: var(--k-4) 0 0;
  max-width: 24rem; font-family: var(--font-than); font-size: .95rem; line-height: 1.55; color: var(--mau-chu-phu);
}
@media (min-width: 761px) {
  .ma-hero[data-hero="mo-hinh"] .hero-phong__phu {
    background: linear-gradient(90deg, var(--mau-nen) 0%, var(--mau-nen) 40%, color-mix(in srgb, var(--mau-nen) 0%, transparent) 56%);
  }
  .ma-hero[data-hero="mo-hinh"] .hero-phong__chu h1 { font-size: clamp(2.3rem, 1rem + 3.6vw, 4.5rem); max-width: 14ch; }
  .ma-hero[data-hero="mo-hinh"] .hero-phong__mo-ta { max-width: 34ch; }
}
@media (max-width: 760px) {
  .ma-hero[data-hero="mo-hinh"] .hero-phong__chu h1 { font-size: clamp(2.05rem, 8.4vw, 2.6rem); }
}
/* dải số liệu ngay dưới đầu trang: một vạch mực mảnh phía trên, số Manrope */
.ma-tin { border-top: 1px solid var(--mau-chu); border-bottom: 1px solid var(--mau-vien); }
.ma-tin__muc { border-top: 0; }
.ma-tin .so-lon { font-weight: 600; }

/* 5 · khung ảnh giữ chỗ: nền giấy đậm, viền 1px, bo góc đồng bộ, chú thích nhỏ màu phụ */
.ma-khung-anh { border: 1px solid var(--mau-vien); border-radius: 6px; background: var(--mau-nen-2); }
.ma-khung-anh__nhan, .ma-the-minh-hoa {
  border: 1px solid var(--mau-vien); border-radius: 4px; background: var(--mau-nen);
  color: var(--mau-chu-phu); letter-spacing: .02em;
}
