/* TRIPHONE — Trang dịch vụ (dich-vu/) & trang bài viết (tin-tuc/), tạo bởi scripts/build-seo.mjs */

body { background: #f8fafc; color: #334155; font-family: 'Manrope', system-ui, sans-serif; margin: 0; }
.pg-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid #e2e8f0; }
.pg-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.pg-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.pg-logo .logo-mark { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; }
.pg-wordmark { font-family: 'Space Grotesk', sans-serif; font-weight: 800; font-size: 1.25rem; color: #0f172a; letter-spacing: 0.3px; }
.pg-links { display: flex; gap: 4px; }
.pg-links a { padding: 8px 14px; border-radius: 100px; color: #334155; font-weight: 600; font-size: 0.92rem; text-decoration: none; white-space: nowrap; }
.pg-links a:hover { background: #ecfdf5; color: #047857; }
.pg-cta { white-space: nowrap; }

.pg-main { padding-block: 24px 64px; }
.pg-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 0.88rem; color: #64748b; margin-bottom: 20px; }
.pg-crumbs a { color: #047857; text-decoration: none; font-weight: 600; }

.pg-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 28px; padding: 40px; box-shadow: 0 12px 40px rgba(15, 23, 42, 0.05); }
.pg-hero h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; color: #0f172a; margin: 0 0 16px; }
.pg-hero p { font-size: 1.05rem; line-height: 1.7; margin: 0 0 20px; }
.pg-hero img { width: 100%; height: auto; border-radius: 20px; }
.pg-facts { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.pg-facts li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: 0.95rem; }
.pg-facts strong { color: #0f172a; }
.pg-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-cta-actions .btn { min-height: 48px; justify-content: center; }

.pg-section { margin-top: 48px; }
.pg-section h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.4rem, 3vw, 1.9rem); color: #0f172a; margin: 0 0 18px; }
.pg-table-wrap { overflow-x: auto; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; }
.pg-table { width: 100%; border-collapse: collapse; min-width: 520px; font-size: 0.95rem; }
.pg-table th, .pg-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
.pg-table thead th { background: #ecfdf5; color: #065f46; font-weight: 800; position: sticky; top: 0; }
.pg-table tbody th { color: #0f172a; font-weight: 700; white-space: normal; }
.pg-table td { color: #047857; font-weight: 700; }
.pg-table tbody tr:hover { background: #f8fafc; }
.pg-note { font-size: 0.86rem; color: #64748b; margin: 10px 4px 0; }

.pg-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.pg-steps li { counter-increment: step; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 20px; display: grid; gap: 6px; font-size: 0.92rem; line-height: 1.6; }
.pg-steps li::before { content: counter(step, decimal-leading-zero); font-family: 'Space Grotesk'; font-weight: 800; color: #10b981; font-size: 1.4rem; }
.pg-steps strong { color: #0f172a; font-size: 1rem; }

.pg-main .faq-item { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px 20px; margin-bottom: 10px; }
.pg-main .faq-item summary { cursor: pointer; font-weight: 700; color: #0f172a; }
.pg-main .faq-item p { margin: 10px 0 0; line-height: 1.7; }

.pg-related { display: flex; flex-wrap: wrap; gap: 10px; }
.pg-related a { padding: 10px 16px; background: #fff; border: 1px solid #d1fae5; border-radius: 100px; color: #047857; font-weight: 700; text-decoration: none; }
.pg-related a:hover { background: #ecfdf5; }

.pg-cta-box { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 24px; align-items: center; background: linear-gradient(135deg, #064e3b, #047857); color: #d1fae5; border-radius: 28px; padding: 36px; }
.pg-cta-box h2 { color: #fff; margin: 0 0 8px; font-family: 'Space Grotesk', sans-serif; }
.pg-cta-box p { margin: 0; line-height: 1.6; }
.pg-cta-box .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.pg-cta-box .btn-primary { background: #fff; color: #047857; }

/* Bài viết */
.pg-article-main { max-width: 900px; }
.pg-article { background: #fff; border: 1px solid #e2e8f0; border-radius: 28px; padding: 32px; overflow: hidden; }
.pg-article .pg-article-cover { display: block; width: calc(100% + 64px); max-width: none; height: auto; margin: -32px -32px 24px; }
.pg-article img { max-width: 100%; height: auto; }
.pg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.pg-card { display: grid; gap: 8px; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; text-decoration: none; padding-bottom: 16px; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.pg-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px rgba(15, 23, 42, 0.08); }
.pg-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.pg-card span { padding: 0 16px; font-size: 0.8rem; color: #047857; font-weight: 700; }
.pg-card strong { padding: 0 16px; color: #0f172a; line-height: 1.4; }

.pg-footer { margin-top: 32px; background: #0f172a; color: #64748b; padding: 48px 0 24px; }
.pg-footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 32px; }
.pg-footer .pg-wordmark { color: #fff; }
.pg-footer .pg-footer-h { color: #fff; margin: 0 0 12px; font-size: 1rem; font-family: inherit; }
.pg-footer a { display: block; color: #cbd5e1; text-decoration: none; padding: 4px 0; }
.pg-footer p a { display: inline; }
.pg-footer p { line-height: 1.8; margin: 12px 0 0; color: #cbd5e1; }
.pg-copy { margin-top: 32px !important; font-size: 0.85rem; color: #94a3b8 !important; border-top: 1px solid #1e293b; padding-top: 16px; }

@media (max-width: 1100px) {
  /* Điện thoại / máy nhỏ: menu thành một hàng vuốt ngang dưới logo */
  .pg-nav { flex-wrap: wrap; row-gap: 0; }
  .pg-links { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding: 0 0 10px; margin: -4px 0 0; }
  .pg-links::-webkit-scrollbar { display: none; }
  .pg-links a { background: #f1f5f9; padding: 8px 14px; font-size: 0.88rem; }
}
@media (max-width: 760px) {
  .pg-hero { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; gap: 24px; }
  .pg-hero img { order: -1; }
  .pg-facts li { grid-template-columns: 90px minmax(0, 1fr); }
  .pg-cta-box { grid-template-columns: minmax(0, 1fr); padding: 24px 18px; }
  .pg-article { padding: 20px 16px; border-radius: 20px; }
  .pg-article .pg-article-cover { width: calc(100% + 32px); margin: -20px -16px 20px; }
  .pg-footer-grid { grid-template-columns: minmax(0, 1fr); }
  .pg-cta { display: none; }
}
.pg-areas { line-height: 1.9; }
.pg-footer .pg-areas a { display: inline; white-space: nowrap; }
@media (min-width: 761px) { .pg-footer-grid { grid-template-columns: 1.2fr 1fr 1.2fr 1.2fr; } }

/* Trang tổng hợp dịch vụ */
.pg-hub-head { max-width: 760px; margin: 8px 0 28px; }
.pg-hub-head h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; color: #0f172a; margin: 8px 0 12px; }
.pg-hub-head p { font-size: 1.05rem; line-height: 1.7; margin: 0; }
.pg-svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pg-svc-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; overflow: hidden; text-decoration: none; color: inherit; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.pg-svc-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1); border-color: #a7f3d0; }
.pg-svc-card img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: #f1f5f9; }
.pg-svc-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.pg-svc-body strong { font-family: 'Space Grotesk', sans-serif; font-size: 1.2rem; color: #0f172a; }
.pg-svc-body > span { font-size: 0.92rem; line-height: 1.6; color: #475569; }
.pg-svc-body .pg-svc-meta { font-size: 0.85rem; color: #64748b; }
.pg-svc-body .pg-svc-meta b { color: #0f172a; }
.pg-svc-body .pg-svc-go { margin-top: auto; padding-top: 4px; color: #047857; font-weight: 700; }
@media (max-width: 900px) { .pg-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .pg-svc-grid { grid-template-columns: 1fr; gap: 14px; }
  .pg-svc-card { flex-direction: row; }
  .pg-svc-card img { width: 112px; aspect-ratio: 1; flex-shrink: 0; object-position: 82% center; }
  .pg-svc-body { padding: 12px 14px; gap: 4px; }
  .pg-svc-body strong { font-size: 1.02rem; }
  .pg-svc-body > span:nth-of-type(1) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 0.85rem; }
}

/* Bảng giá dài: 10 dòng đầu + nút xem thêm; điện thoại giữ cột tên máy khi vuốt ngang */
.pg-more-cb:not(:checked) + .pg-table-wrap tr.pg-more { display: none; }
.pg-more-btn { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px auto 0; width: fit-content; padding: 10px 20px; border-radius: 100px; border: 1.5px solid #a7f3d0; background: #ecfdf5; color: #047857; font-weight: 800; font-size: .9rem; cursor: pointer; transition: all .2s; }
.pg-more-btn:hover { background: #d1fae5; }
.pg-more-btn::before { content: attr(data-more); }
.pg-more-btn::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.pg-more-cb:checked ~ .pg-more-btn::before { content: attr(data-less); }
.pg-more-cb:checked ~ .pg-more-btn::after { transform: rotate(-135deg); }
@media (max-width: 640px) {
  .pg-table th, .pg-table td { padding: 10px 12px; font-size: .86rem; }
  .pg-table tbody th, .pg-table thead th:first-child { position: sticky; left: 0; z-index: 1; background: #fff; box-shadow: 1px 0 0 #f1f5f9; min-width: 110px; }
  .pg-table thead th:first-child { background: #ecfdf5; z-index: 2; }
  .pg-hero img { max-height: 220px; object-fit: contain; }
}

/* ===================== Trang "Sửa tại nhà" (dich-vu/index.html) - thiết kế mới =====================
   Khối tràn hết chiều ngang (nền, quầng sáng ra 2 mép), nội dung giữ ở giữa. Ảnh chụp thật + thẻ kính nổi 3D. */
.hb { overflow: visible; }
.hb-hero, .hb-block { position: relative; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding-left: max(20px, calc(50vw - 620px)); padding-right: max(20px, calc(50vw - 620px)); }
.hb-pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 18px; border-radius: 999px; background: rgba(236, 253, 245, .92); color: #047857; font-weight: 800; font-size: .82rem; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 10px 26px -10px rgba(16, 185, 129, .45), inset 0 0 0 1px #d1fae5; }
.hb-head { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.hb-head h2, .hb-faq-side h2, .hb-areas-copy h2 { margin: 18px 0 10px; font: 800 clamp(1.7rem, 3.2vw, 2.6rem)/1.15 'Space Grotesk', sans-serif; letter-spacing: -.02em; color: #0f172a; }
.hb-head h2 span, .hb-faq-side h2 span, .hb-areas-copy h2 span, .hb-hero h1 span { background: linear-gradient(90deg, #047857, #10b981 55%, #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-head h2::after, .hb-faq-side h2::after, .hb-areas-copy h2::after { display: none !important; }
.hb-head p { margin: 0; color: #64748b; font-size: 1.02rem; }
.hb-block { padding-top: 70px; padding-bottom: 70px; }

/* --- Đầu trang --- */
.hb-hero { margin-top: -8px; padding-top: 34px; padding-bottom: 70px; overflow: hidden; isolation: isolate;
  background: radial-gradient(45% 70% at 80% 40%, rgba(167, 243, 208, .55), transparent 70%), radial-gradient(35% 60% at 0% 100%, rgba(186, 230, 253, .5), transparent 70%), url(../public/images/hero-bg.webp) center / cover no-repeat, #f4fbf8; }
.hb-hero::after { content: ''; position: absolute; inset: auto 0 0; height: 120px; z-index: -1; background: linear-gradient(transparent, #fff); }
.hb-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.hb-hero .pg-crumbs { margin-bottom: 18px; }
.hb-hero h1 { margin: 20px 0 16px; font: 800 clamp(2.2rem, 4.6vw, 3.8rem)/1.08 'Space Grotesk', sans-serif; letter-spacing: -.025em; color: #0f172a; }
.hb-hero h1 span { display: block; margin-top: 8px; font-size: .55em; line-height: 1.2; }
.hb-hero-copy > p { margin: 0 0 26px; max-width: 540px; color: #475569; font-size: 1.06rem; line-height: 1.7; }
.hb-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hb-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 58px; padding: 0 26px; border: 0; border-radius: 999px; font: 800 1.02rem 'Manrope', sans-serif; color: #fff; text-decoration: none; cursor: pointer; background: linear-gradient(135deg, #059669, #047857 60%, #065f46); box-shadow: 0 18px 36px -14px rgba(4, 120, 87, .75), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .25s cubic-bezier(.22, 1, .36, 1), box-shadow .25s; }
.hb-btn:hover { transform: translateY(-3px); }
.hb-btn svg:last-child { transition: transform .25s; }
.hb-btn:hover svg:last-child { transform: translateX(4px); }
.hb-btn-ghost { color: #047857; background: rgba(255, 255, 255, .85); box-shadow: 0 14px 30px -18px rgba(15, 23, 42, .35), inset 0 0 0 1.5px #a7f3d0; }
.hb-trust { list-style: none; margin: 30px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hb-trust li { display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .78); border: 1px solid #fff; box-shadow: 0 12px 26px -20px rgba(15, 23, 42, .4); }
.hb-trust li > svg { width: 38px; height: 38px; padding: 9px; border-radius: 12px; color: #059669; background: #ecfdf5; }
.hb-trust b { display: block; font: 800 1rem 'Space Grotesk', sans-serif; color: #0f172a; }
.hb-trust span { font-size: .8rem; color: #64748b; line-height: 1.3; }

.hb-hero-art { position: relative; height: 520px; perspective: 1400px; }
.hb-ring { position: absolute; left: 50%; top: 56%; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; border: 2px solid rgba(16, 185, 129, .3); transform: rotateX(76deg); animation: ti-ring 12s linear infinite; }
.hb-ring.r2 { width: 640px; height: 640px; margin: -320px 0 0 -320px; border-style: dashed; border-color: rgba(14, 165, 233, .25); animation-duration: 18s; animation-direction: reverse; }
.hb-photo { position: absolute; margin: 0; overflow: hidden; border-radius: 26px; border: 5px solid #fff; background: #e2e8f0; box-shadow: 0 40px 70px -30px rgba(15, 23, 42, .5); transform-style: preserve-3d; }
.hb-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hb-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .45) 48%, transparent 60%); background-size: 260% 100%; animation: pd3-glare 7s ease-in-out infinite; }
.hb-photo.p1 { left: 8%; top: 14%; width: 78%; aspect-ratio: 16 / 10; z-index: 2; transform: rotateY(-14deg) rotateX(6deg); animation: hb-f1 9s ease-in-out infinite; }
.hb-photo.p2 { right: -2%; top: 0; width: 46%; aspect-ratio: 4 / 3; z-index: 1; transform: rotateY(-20deg) rotateZ(4deg); opacity: .95; animation: hb-f2 11s ease-in-out infinite; }
.hb-photo.p3 { left: 0; bottom: 4%; width: 42%; aspect-ratio: 4 / 3; z-index: 3; transform: rotateY(10deg) rotateZ(-5deg); animation: hb-f3 10s ease-in-out infinite; }
@keyframes hb-f1 { 50% { transform: rotateY(-8deg) rotateX(3deg) translateY(-12px); } }
@keyframes hb-f2 { 50% { transform: rotateY(-26deg) rotateZ(6deg) translateY(10px); } }
@keyframes hb-f3 { 50% { transform: rotateY(16deg) rotateZ(-3deg) translateY(-10px); } }
.hb-chip { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px; background: rgba(255, 255, 255, .9); border: 1px solid #fff; box-shadow: 0 24px 40px -18px rgba(15, 23, 42, .35); animation: cmp-float3d 7s ease-in-out infinite; }
.hb-chip > span { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #34d399, #047857); flex-shrink: 0; }
.hb-chip b { display: block; font-size: .95rem; color: #0f172a; }
.hb-chip small { color: #64748b; font-size: .78rem; }
.hb-chip.c1 { right: 0; top: 46%; --rz: -4deg; }
.hb-chip.c2 { left: 34%; bottom: 0; --rz: 4deg; animation-delay: -2.5s; }
.hb-chip.c3 { left: 4%; top: 2%; --rz: -6deg; animation-delay: -5s; }
.hb-chip > .hb-live { position: relative; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; }
.hb-live::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #22c55e; animation: ar-ring 1.8s ease-out infinite; }

/* --- Lưới dịch vụ --- */
.hb-svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.hb-svc { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; background: #fff; border: 1px solid #e6efeb; color: inherit; text-decoration: none; box-shadow: 0 24px 48px -36px rgba(15, 23, 42, .45); transition: transform .4s cubic-bezier(.22, 1, .36, 1), box-shadow .4s, border-color .3s; }
.hb-svc:hover { transform: translateY(-8px); border-color: #6ee7b7; box-shadow: 0 34px 60px -30px rgba(4, 120, 87, .45); }
.hb-svc-img { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #f1f5f9; }
.hb-svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.hb-svc:hover .hb-svc-img img { transform: scale(1.08); }
.hb-svc-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(2, 44, 34, .35)); }
.hb-svc-time { position: absolute; left: 14px; bottom: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #047857; font-weight: 800; font-size: .8rem; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.hb-svc-body { display: flex; flex-direction: column; gap: 8px; padding: 20px 22px 22px; flex: 1; }
.hb-svc-body strong { font: 800 1.18rem 'Space Grotesk', sans-serif; color: #0f172a; }
.hb-svc-desc { color: #64748b; font-size: .92rem; line-height: 1.6; flex: 1; }
.hb-svc-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px dashed #e2e8f0; }
.hb-svc-war { display: inline-flex; align-items: center; gap: 6px; color: #475569; font-size: .82rem; }
.hb-svc-war svg { color: #10b981; }
.hb-svc-go { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #ecfdf5; color: #047857; font-weight: 800; font-size: .85rem; transition: background .25s, color .25s; }
.hb-svc:hover .hb-svc-go { background: #10b981; color: #fff; }

/* --- Quy trình --- */
.hb-steps-wrap { background: linear-gradient(180deg, #fff, #f2fbf7 30%, #f2fbf7 70%, #fff); }
.hb-steps { position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.hb-steps::before { content: ''; position: absolute; left: 12%; right: 12%; top: 98px; height: 3px; border-radius: 3px; background: repeating-linear-gradient(90deg, #6ee7b7 0 10px, transparent 10px 18px); background-size: 36px 3px; animation: hb-march 1.2s linear infinite; }
@keyframes hb-march { to { background-position: 36px 0; } }
.hb-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 24px 18px 26px; border-radius: 26px; background: #fff; border: 1px solid #e6efeb; box-shadow: 0 24px 48px -36px rgba(15, 23, 42, .4); transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.hb-steps li:hover { transform: translateY(-6px); }
.hb-steps img { width: 140px; height: 140px; object-fit: contain; mix-blend-mode: multiply; border-radius: 24px; filter: drop-shadow(0 18px 18px rgba(4, 120, 87, .22)); animation: ti-float 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.5s); }
.hb-step-num { position: absolute; top: 14px; left: 16px; font: 800 .95rem 'Space Grotesk', sans-serif; color: #10b981; }
.hb-step-ic { width: 46px; height: 46px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 35% 30%, #34d399, #047857); border: 4px solid #fff; box-shadow: 0 10px 20px -8px rgba(4, 120, 87, .6); }
.hb-steps strong { font: 800 1.08rem 'Space Grotesk', sans-serif; color: #0f172a; }
.hb-steps p { margin: 0; color: #64748b; font-size: .9rem; line-height: 1.6; }

/* --- Câu hỏi --- */
.hb-faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.hb-faq-side { position: sticky; top: 100px; }
.hb-faq-side p { color: #64748b; line-height: 1.7; }
.hb-ask { display: grid; gap: 12px; margin-top: 22px; }
.hb-ask a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid #e6efeb; text-decoration: none; color: inherit; box-shadow: 0 16px 32px -26px rgba(15, 23, 42, .45); transition: transform .3s, border-color .3s; }
.hb-ask a:hover { transform: translateX(6px); border-color: #6ee7b7; }
.hb-ask span { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #34d399, #047857); font-weight: 800; font-size: .8rem; }
.hb-ask span.z { background: linear-gradient(135deg, #3b82f6, #0068ff); }
.hb-ask small { display: block; color: #64748b; font-size: .8rem; }
.hb-ask b { font: 800 1.08rem 'Space Grotesk', sans-serif; color: #0f172a; }
.hb-faq-list { display: grid; gap: 12px; }
.hb-faq-list .faq-item { margin: 0; border-radius: 18px; background: #fff; border: 1px solid #e6efeb; box-shadow: 0 16px 32px -28px rgba(15, 23, 42, .45); transition: border-color .3s, box-shadow .3s; }
.hb-faq-list .faq-item[open] { border-color: #6ee7b7; box-shadow: 0 24px 40px -28px rgba(4, 120, 87, .45); }

/* --- Khu vực --- */
.hb-areas-card { position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; align-items: center; padding: 44px; border-radius: 32px; background: linear-gradient(135deg, #064e3b, #047857 55%, #0e7490); color: #fff; box-shadow: 0 40px 80px -40px rgba(4, 120, 87, .7); }
.hb-areas-card::before { content: ''; position: absolute; inset: 0; opacity: .25; background-image: linear-gradient(rgba(255, 255, 255, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .15) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(circle at 80% 50%, #000, transparent 70%); mask-image: radial-gradient(circle at 80% 50%, #000, transparent 70%); }
.hb-areas-card::after { content: ''; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(110, 231, 183, .45), transparent 70%); animation: pd3-breathe 6s ease-in-out infinite; }
.hb-areas-copy, .hb-areas-list { position: relative; z-index: 1; }
.hb-areas .hb-pill { background: rgba(255, 255, 255, .14); color: #d1fae5; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.hb-areas-copy h2 { color: #fff; }
.hb-areas-copy h2 span { background: linear-gradient(90deg, #a7f3d0, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hb-areas-copy p { color: #d1fae5; margin: 0; line-height: 1.7; }
.hb-areas-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hb-areas-list a { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-weight: 700; font-size: .92rem; text-decoration: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: background .25s, transform .25s; }
.hb-areas-list a svg { color: #6ee7b7; flex-shrink: 0; }
.hb-areas-list a:hover { background: #fff; color: #047857; transform: translateY(-3px); }

.hb:not(.fx-on) .hb-steps-wrap:not(.is-live) * { animation-play-state: running; }

@media (max-width: 1100px) {
  .hb-hero-in { grid-template-columns: minmax(0, 1fr); }
  .hb-hero-art { height: 440px; }
  .hb-svc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hb-steps::before { display: none; }
  .hb-faq { grid-template-columns: minmax(0, 1fr); }
  .hb-faq-side { position: static; }
  .hb-areas-card { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .hb-hero { padding-top: 16px; padding-bottom: 40px; }
  .hb-hero-art { height: 300px; }
  .hb-ring { display: none; }
  .hb-chip { padding: 8px 12px 8px 8px; gap: 8px; }
  .hb-chip > span { width: 32px; height: 32px; border-radius: 10px; }
  .hb-chip > span svg { width: 16px; height: 16px; }
  .hb-chip b { font-size: .78rem; }
  .hb-chip small { display: none; }
  .hb-chip.c2 { left: 30%; }
  .hb-btn { flex: 1 1 100%; justify-content: center; }
  .hb-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .hb-trust li { flex-direction: column; text-align: center; gap: 6px; padding: 10px 6px; }
  .hb-trust li > svg { width: 32px; height: 32px; padding: 7px; }
  .hb-trust span { font-size: .7rem; }
  .hb-block { padding-top: 44px; padding-bottom: 44px; }
  .hb-svc-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hb-svc { flex-direction: row; }
  .hb-svc-img { width: 118px; aspect-ratio: auto; flex-shrink: 0; }
  .hb-svc-time { display: none; }
  .hb-svc-body { padding: 14px; gap: 4px; }
  .hb-svc-body strong { font-size: 1rem; }
  .hb-svc-desc { font-size: .82rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .hb-svc-war { display: none; }
  .hb-svc-foot { padding-top: 8px; margin-top: 4px; justify-content: flex-end; }
  .hb-steps { grid-template-columns: minmax(0, 1fr); }
  .hb-steps li { flex-direction: row; text-align: left; flex-wrap: wrap; padding: 16px; }
  .hb-steps img { width: 72px; height: 72px; }
  .hb-step-ic { display: none; }
  .hb-areas-card { padding: 26px 18px; border-radius: 24px; }
  .hb-areas-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) { .hb *, .hb *::after, .hb *::before { animation-duration: 30s !important; } }

/* ===== Thang kích thước chung (gọn) — trang Sửa tại nhà, dịch vụ, khu vực ===== */
.hb-block { padding-top: 52px !important; padding-bottom: 52px !important; }
.hb-hero { padding-bottom: 48px !important; }
.hb-trust { margin-top: 22px !important; }
.hb-trust li > svg { width: 34px !important; height: 34px !important; padding: 8px !important; }
.hb-svc-body { padding: 16px 18px 18px !important; }
.hb-svc-body strong { font-size: 1.06rem !important; }
.hb-steps img { width: 112px !important; height: 112px !important; }
.hb-steps::before { top: 82px !important; }
.hb-areas-card { padding: 32px !important; }
.hb-ask span { width: 40px !important; height: 40px !important; }
.pg-hub-head h1, .pg-hero h1 { font-size: clamp(1.7rem, 3.2vw, 2.3rem) !important; }
@media (min-width: 1101px) { .hb-hero-art { height: 420px !important; } }
@media (min-width: 641px) { .hb-svc-img { aspect-ratio: 16 / 8.5 !important; } }

/* Điện thoại: hàng menu vuốt ngang không đè lên logo */
@media (max-width: 1100px) {
  .pg-nav { min-height: 0; padding-top: 8px; row-gap: 8px; }
  .pg-links { margin: 0 !important; padding: 0 0 10px !important; gap: 8px; }
  .pg-links a { white-space: nowrap; padding: 7px 13px !important; font-size: .84rem !important; }
}

/* ===== Thanh đầu trang các trang con: đồng bộ với trang chủ ===== */
.pg-nav { min-height: 72px !important; padding-top: 0 !important; row-gap: 0 !important; flex-wrap: nowrap !important; }
.pg-brand { display: grid; line-height: 1.1; }
.pg-brand .logo-subtitle { font-size: .7rem; font-weight: 500; color: #64748b; letter-spacing: 0; }
.pg-links { align-items: center; gap: 2px !important; }
.pg-links a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px !important; font-size: .95rem !important; font-weight: 500 !important; color: #334155; background: none !important; border-radius: 999px; transition: background .2s, color .2s; }
.pg-links a:hover { background: #f0fdf7 !important; color: #047857; }
.pg-links a[aria-current="page"] { background: #d1fae5 !important; color: #047857; font-weight: 700 !important; }
.pg-links-call { display: none !important; }
.pg-hotline { display: inline-flex; align-items: center; gap: 10px; color: #0f172a; text-decoration: none; white-space: nowrap; }
.pg-hotline svg { color: #0f172a; }
.pg-hotline small { display: block; font-size: .7rem; color: #64748b; line-height: 1.1; }
.pg-hotline b { display: block; font-size: 1.02rem; color: #047857; line-height: 1.2; }
.pg-cta { display: none !important; }
.pg-menu-btn { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; color: #0f172a; cursor: pointer; }
@media (max-width: 1180px) and (min-width: 1025px) { .pg-hotline small { display: none; } .pg-links a { padding: 8px 10px !important; } }
@media (max-width: 1024px) {
  .pg-nav { min-height: 64px !important; position: relative; }
  .pg-hotline { display: none; }
  .pg-menu-btn { display: grid; margin-left: auto; }
  .pg-links { order: 0; position: absolute; left: 12px; right: 12px; top: calc(100% + 6px); width: auto !important; margin: 0 !important; padding: 8px !important;
    display: grid !important; gap: 2px !important; border-radius: 18px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .35);
    opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .2s, transform .25s, visibility .2s; overflow: visible !important; }
  .pg-header.is-open .pg-links { opacity: 1; visibility: visible; transform: none; }
  .pg-links a { padding: 12px 14px !important; border-radius: 12px; font-size: 1rem !important; }
  .pg-links-call { display: inline-flex !important; margin-top: 4px; justify-content: center; color: #fff !important; background: linear-gradient(135deg, #10b981, #047857) !important; font-weight: 700 !important; }
}
.pg-links { order: 1 !important; } .pg-hotline { order: 2; } .pg-menu-btn { order: 3; }

/* Tài khoản trên đầu trang con */
.pg-acct { position: relative; order: 2; display: flex; align-items: center; margin-left: 14px; }
.pg-login, .pg-user { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid #d1fae5; background: #fff; color: #047857; font: 700 .9rem 'Manrope', sans-serif; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s, box-shadow .2s; }
.pg-login:hover, .pg-user:hover, .pg-acct.is-open .pg-user { background: #ecfdf5; box-shadow: 0 8px 20px -12px rgba(4, 120, 87, .5); }
.pg-user { color: #0f172a; padding: 0 12px 0 6px; }
.pg-user i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #10b981, #047857); color: #fff; font: 800 .85rem 'Manrope', sans-serif; font-style: normal; }
.pg-user span { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.pg-user svg { color: #64748b; transition: transform .2s; }
.pg-acct.is-open .pg-user svg { transform: rotate(180deg); }
.pg-user-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 210px; padding: 8px; border-radius: 16px; background: #fff; border: 1px solid #e2e8f0; box-shadow: 0 24px 48px -20px rgba(15, 23, 42, .35);
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .2s, visibility .18s; }
.pg-acct.is-open .pg-user-menu { opacity: 1; visibility: visible; transform: none; }
.pg-user-menu a, .pg-user-menu button { display: block; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: #0f172a; font: 600 .9rem 'Manrope', sans-serif; text-align: left; text-decoration: none; cursor: pointer; }
.pg-user-menu a:hover, .pg-user-menu button:hover { background: #f1f5f9; }
.pg-user-menu .is-strong { color: #047857; font-weight: 800; }
.pg-user-menu .pg-logout { color: #dc2626; margin-top: 4px; border-top: 1px solid #f1f5f9; border-radius: 0 0 10px 10px; }
@media (max-width: 1024px) {
  .pg-acct { margin-left: auto; margin-right: 8px; }
  .pg-acct + .pg-menu-btn, .pg-menu-btn { margin-left: 0; }
  .pg-login span, .pg-user span, .pg-user svg { display: none; }
  .pg-login { width: 44px; padding: 0; justify-content: center; }
  .pg-user { padding: 0 6px; height: 44px; }
}

/* Chân trang tối: logo thẳng hàng (a của chân trang là block), PHONE sáng trên nền tối, dòng bản quyền thẳng lề */
.pg-footer .pg-logo { display: inline-flex; align-items: center; gap: 10px; padding: 0; }
.pg-footer .pg-wordmark .logo-accent { color: #6ee7b7; }
.pg-footer p.pg-copy { margin: 32px auto 0 !important; }

/* Chính sách bảo mật / Điều khoản sử dụng (scripts/legal-content.mjs): mục lục dính bên trái, nội dung dạng văn bản dễ đọc */
.lg-head { max-width: 820px; margin-bottom: 28px; }
.lg-head h1 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; color: #0f172a; margin: 0 0 8px; }
.lg-updated { font-size: 0.88rem; color: #64748b; margin: 0 0 16px; }
.lg-intro { font-size: 1.05rem; line-height: 1.75; color: #334155; margin: 0; }
.lg-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.lg-toc { position: sticky; top: 96px; background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 20px 20px 16px; font-size: 0.9rem; }
.lg-toc strong { display: block; color: #0f172a; margin-bottom: 10px; }
.lg-toc ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; color: #64748b; list-style: decimal; }
.lg-toc a { color: #334155; text-decoration: none; }
.lg-toc a:hover { color: #047857; text-decoration: underline; }
.lg-doc { background: #fff; border: 1px solid #e2e8f0; border-radius: 28px; padding: 36px 40px; box-shadow: 0 12px 40px rgba(15, 23, 42, 0.05); color: #334155; line-height: 1.75; }
.lg-sec { scroll-margin-top: 96px; }
.lg-sec + .lg-sec { margin-top: 28px; padding-top: 28px; border-top: 1px solid #f1f5f9; }
.lg-sec h2 { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.15rem, 2.4vw, 1.4rem); color: #0f172a; margin: 0 0 12px; }
.lg-sec p { margin: 0 0 12px; }
.lg-sec ul { margin: 0 0 12px; padding-left: 22px; display: grid; gap: 8px; list-style: disc; }
.lg-sec li::marker { color: #047857; }
.lg-sec a, .lg-other a { color: #047857; font-weight: 600; }
.lg-sec strong { color: #0f172a; }
.lg-other { margin: 28px 0 0; padding-top: 20px; border-top: 1px solid #f1f5f9; font-size: 0.95rem; }
@media (max-width: 900px) {
  .lg-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .lg-toc { position: static; }
  .lg-doc { padding: 24px 20px; border-radius: 20px; }
}

/* ===== Header nền tối giống trang chủ (mẫu 2026-10, css/style.css "Trang chủ mẫu 2026-10") ===== */
.pg-header { background: rgba(11, 18, 32, 0.96); border-bottom-color: rgba(255, 255, 255, 0.06); }
.pg-header .pg-wordmark { color: #fff; }
.pg-header .logo-accent { color: #22c55e; }
.pg-header .pg-brand .logo-subtitle { color: #cbd5e1; }
.pg-header .logo-mark { width: 44px; height: 44px; border-radius: 12px; background: #fff !important; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 6px 18px rgba(0, 0, 0, 0.35); }
.pg-header .pg-hotline, .pg-header .pg-hotline svg { color: #fff; }
.pg-header .pg-hotline svg { color: #22c55e; }
.pg-header .pg-hotline small { color: #94a3b8; }
.pg-header .pg-hotline b { color: #fff; }
.pg-header .pg-login, .pg-header .pg-user { background: transparent; border-color: rgba(255, 255, 255, 0.2); color: #e2e8f0; }
.pg-header .pg-login:hover, .pg-header .pg-user:hover, .pg-header .pg-acct.is-open .pg-user { background: rgba(34, 197, 94, 0.1); border-color: #22c55e; color: #fff; }
.pg-header .pg-user svg { color: #94a3b8; }
.pg-header .pg-menu-btn { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
@media (min-width: 1025px) {
  .pg-header .pg-links a { color: #e2e8f0; }
  .pg-header .pg-links a:hover { background: rgba(255, 255, 255, 0.08) !important; color: #fff; }
  .pg-header .pg-links a[aria-current="page"] { background: #15803d !important; color: #fff; }
}
