/* =====================================================================
   TRANG CON — phong cách D "Nền trắng, hạt bay" (áp 27/11/2026, xem tai-lieu/nhan-dien/NHAN-DIEN.md)
   Nạp SAU css/style.css ở mọi trang trừ trang chủ (trang chủ dùng css/home.css).
   Chỉ đổi giao diện các lớp sẵn có — không đổi nội dung / id:
   - đầu trang con: nền trắng + hạt bay (js/hero-nen.js), chữ canh trái, tiêu đề lớn Manrope 800;
   - bo góc lớn (24px khối / 16px thẻ), bóng xanh nhẹ, không nhấc thẻ khi rê chuột;
   - nút bo tròn hai đầu; không dùng nhãn mục nhỏ / vạch trang trí phía trên tiêu đề;
   - lời mời cuối trang: khối xanh đậm bo góc nằm trong lề.
   ===================================================================== */
:root { --r-lg: 24px; --r-md: 16px; --soft: #F5F8FD; --rule: #DCE5F3; --glow: 0 24px 50px -24px rgba(13,27,61,.28); }

/* ===== Nút bo tròn hai đầu, không nhấc khi rê chuột ===== */
.btn, .btn:focus-visible, .mobile-cta, .mobile-cta:focus-visible { border-radius: 999px; }
.btn { padding: 13px 26px; }
.btn-sm { padding: 9px 18px; }
.btn-primary { box-shadow: 0 12px 30px -12px rgba(10,102,255,.6); }
.btn-primary:hover { background: var(--brand-navy); transform: none; box-shadow: 0 12px 30px -12px rgba(13,27,61,.5); }
.btn-outline { border-width: 1px; border-color: rgba(13,27,61,.22); color: var(--brand-navy); }
.btn-outline:hover { background: transparent; border-color: var(--brand-blue); color: var(--brand-blue); }
.btn-light:hover { transform: none; background: var(--brand-sky); color: var(--brand-navy); box-shadow: none; }

/* ===== Đầu trang con: nền trắng, hạt bay, chữ canh trái ===== */
.hero-nen { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.page-hero { position: relative; overflow: hidden; background: #fff; text-align: left; padding: 84px 0 72px; border-bottom: 1px solid var(--line); }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(ellipse 60% 85% at 20% 50%, rgba(255,255,255,.94), rgba(255,255,255,.6) 55%, transparent 82%); }
.page-hero > .container { position: relative; z-index: 1; }
.page-hero h1 { color: var(--brand-navy); font-size: clamp(2.2rem, 5vw, 4.4rem); font-weight: 800; line-height: 1.06; letter-spacing: -.035em; max-width: 18ch; margin-bottom: 22px; }
.page-hero p { margin: 0; max-width: 40rem; font-size: clamp(1.02rem, 1.15vw, 1.15rem); line-height: 1.7; }
/* Cụm thẻ nổi ở nửa phải đầu trang (thành phần .hn trong style.css) — từ khổ 1101.
   Trang có cụm thẻ gắn lớp .co-noi: chữ chừa chỗ bên phải để không chạy dưới thẻ. */
@media (min-width: 1101px) {
  .page-hero > .hn { top: 40px; bottom: 34px; right: var(--gutter); width: clamp(320px, 30vw, 500px); }
  .page-hero.co-noi > .container { padding-right: calc(var(--gutter) + clamp(320px, 30vw, 500px) + 40px); }
}
/* Đường dẫn: chữ xám thường, không vạch xanh (không giống nhãn mục đã bỏ) */
.crumb { color: var(--muted); font-weight: 500; font-size: .9rem; margin-bottom: 22px; }
.crumb a { color: var(--muted); font-weight: 500; }
.crumb a:hover { color: var(--brand-blue); }
.chips { justify-content: flex-start; margin-top: 32px; }
.chip { background: rgba(255,255,255,.85); }
.page-hero .notice { margin-left: 0; }
/* Trang đọc bài: khung hẹp, tiêu đề nhỏ hơn */
.article-wrap h1 { font-size: clamp(1.9rem, 3.6vw, 3rem); max-width: none; }
.article-meta { justify-content: flex-start; }
.page-hero .tag { display: inline-block; margin-bottom: 12px; text-transform: none; letter-spacing: 0; font-size: .8rem; background: var(--primary-soft); border-radius: 999px; padding: 4px 12px; }

/* ===== Khung mục ===== */
.section { padding: 96px 0; }
.section-alt { background: var(--soft); }
/* Đầu mục canh trái, không nhãn / vạch phía trên tiêu đề */
.section-head { text-align: left; max-width: 760px; margin: 0 0 48px; }
.section-head h2, .group-head h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; }
.section-more { text-align: left; }

/* ===== Thẻ: bo góc lớn, viền nhạt, không nhấc ===== */
.card, .svc, .vm, .product, .pain, .post, .info-table, .form-box, .info-card, .screen, .value { border-radius: var(--r-md); border-color: var(--rule); }
.card:hover, .svc:hover, .post:hover, .pain:hover { transform: none; border-color: rgba(10,102,255,.45); box-shadow: var(--glow); }
.card-icon { border-radius: 14px; }
.value { background: #fff; }
.value-num { opacity: 1; font-size: 2.2rem; letter-spacing: -.03em; background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.member { border-radius: var(--r-md); }
.badge { border-radius: 999px; }

/* Giải pháp: khối xen kẽ chữ / hình */
.feature { padding: 72px 0; gap: 72px; }
.feature-text h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 16px 0 14px; }
.feature-visual { background: var(--soft); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 44px 36px 48px; }
.fv-icon { border-radius: 24px; background: var(--brand-blue); box-shadow: 0 18px 36px -12px rgba(10,102,255,.55); }
.fv-tiles span { border-color: var(--rule); border-radius: 12px; }
/* Danh sách: gạch xanh trời thay dấu tích xanh lá */
.checks li { padding-left: 26px; }
.checks li::before { content: ''; font-family: inherit; top: 50%; width: 14px; height: 2px; background: var(--brand-sky); }

/* Quy trình (trang Dịch vụ): số trong vòng tròn, đường nối mảnh */
.steps::before { background: var(--rule); }
.steps span { font-weight: 700; box-shadow: 0 0 0 6px rgba(10,102,255,.12); }
.section-alt .steps span { outline: 6px solid var(--soft); }

/* Dự án / Demo */
.demo { padding: 80px 0; }
.demo > h2 { font-size: clamp(1.6rem, 2.8vw, 2.4rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.15; margin: 8px 0 12px; }
.flow li { border-color: var(--rule); border-radius: var(--r-md); }
.result-note { border-radius: 12px; }
.screen { border-radius: var(--r-lg); box-shadow: var(--glow); }
.tagline span { background: #fff; border: 1px solid var(--rule); color: var(--brand-navy); font-weight: 500; }

/* Bài viết */
.post-thumb { height: 160px; }
.tag { text-transform: none; letter-spacing: 0; font-size: .8rem; }
.outline { border-radius: var(--r-md); background: var(--soft); border-color: var(--rule); }
.article-cta { border-radius: var(--r-lg); padding: 36px 40px;
  background: radial-gradient(circle at 92% 0%, rgba(0,198,255,.35), transparent 45%), var(--brand-navy); }

/* Liên hệ */
.form-box { border-radius: var(--r-lg); box-shadow: var(--glow); padding: 36px; }
.field input, .field select, .field textarea { border-color: var(--rule); border-radius: 12px; }
.info-card { background: var(--soft); }
.info-item > i { border-radius: 12px; }

/* Chính sách / điều khoản */
.legal-toc nav { border-left-color: var(--rule); }
.legal-toc b { text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--brand-blue); }
.legal-body h2 { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }

/* 404 */
.err-code { background: linear-gradient(90deg, var(--brand-blue), var(--brand-sky)); -webkit-background-clip: text; background-clip: text; letter-spacing: -.04em; }
.err-page h1 { font-weight: 800; letter-spacing: -.02em; }
.err-page .chip { background: #fff; }

/* Nút liên hệ nhanh */
.quick-panel { border-radius: var(--r-md); border-color: var(--rule); }
.quick-btn:hover { background: var(--brand-navy); transform: none; }

/* ===== Lời mời cuối trang: khối xanh đậm bo góc nằm trong lề ===== */
.cta { background: #fff; padding: 0 var(--gutter) 96px; text-align: left; }
.section + .cta, .section-alt + .cta { padding-top: 0; }
.cta-inner { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 32px; padding: 64px; border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(circle at 92% 0%, rgba(0,198,255,.35), transparent 40%), radial-gradient(circle at 0% 100%, rgba(10,102,255,.35), transparent 45%), var(--brand-navy); }
.cta-inner > :not(.btn) { grid-column: 1; }
.cta-inner > .btn { grid-column: 2; grid-row: 1 / span 3; justify-self: end; }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.6rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.cta p { margin-bottom: 0; }
/* Khối ngay trước lời mời có nền xám nhạt ⇒ chừa khoảng trắng phía trên */
.section-alt + .cta { padding-top: 96px; }

/* ===== Thẻ có ảnh đầu thẻ (Dịch vụ, Tầm nhìn / Sứ mệnh) — cùng mẫu .d-card trang chủ ===== */
.the-anh { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.the-anh-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-gray); }
.the-anh-img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.the-anh:hover .the-anh-img img { transform: scale(1.05); }
.the-anh-body { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 22px 24px 26px; }
.the-anh-body .link { margin-top: auto !important; padding-top: 12px; }

@media (prefers-reduced-motion: reduce) {
  .card, .svc, .post, .pain { transition: none; }
  .the-anh-img img { transition: none; }
  .the-anh:hover .the-anh-img img { transform: none; }
}

/* ===== Máy tính bảng ===== */
@media (max-width: 1000px) {
  .section { padding: 80px 0; }
  .cta-inner { grid-template-columns: 1fr; padding: 48px 40px; }
  .cta-inner > .btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 24px; }
}

/* ===== Điện thoại ===== */
@media (max-width: 820px) {
  /* Thẻ ảnh xếp một cột ⇒ ảnh thấp lại để trang đỡ dài */
  .the-anh-img { aspect-ratio: 16 / 7; }
  .page-hero { padding: 56px 0 48px; }
  .page-hero::after { background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,255,255,.45) 70%, rgba(255,255,255,.2)); }
  .section { padding: 64px 0; }
  .feature { padding: 48px 0; gap: 32px; }
  .feature-visual { padding: 32px 22px 34px; }
  .demo { padding: 52px 0; }
  .form-box { padding: 26px 18px; }
  .section-alt .steps span { outline: 0; }
}
@media (max-width: 640px) {
  .cta { padding-bottom: 60px; }
  .section-alt + .cta { padding-top: 60px; }
  .cta-inner { padding: 36px 24px; border-radius: var(--r-md); }
  .cta-inner > .btn { width: 100%; justify-content: center; }
  .article-cta { padding: 26px 22px; border-radius: var(--r-md); }
}

/* Trang Sản phẩm: chú thích trạng thái canh trái theo đầu trang, dấu tích xanh HAVA, khối tuỳ chỉnh không đệm thừa */
.page-hero .legend { justify-content: flex-start; }
.product li i { color: var(--brand-blue); }
.product-shot { border-radius: 12px; }
/* Thẻ sản phẩm có ảnh màn hình mẫu (01/12/2026): 16:10, ≤ 820px còn 16:7 giữ phần đầu màn hình */
.product-shot.co-anh { display: block; height: auto; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-gray); border: 1px solid var(--rule); }
.product-shot.co-anh img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
@media (max-width: 820px) { .product-shot.co-anh { aspect-ratio: 16 / 7; } }
.feature.custom-box { padding-block: 0; }

/* Trang Về HAVA: đoạn giới thiệu và bảng thông tin canh trái theo đầu mục */
.page-hero .about-intro { text-align: left; margin: 0; max-width: 40rem; font-size: clamp(1.02rem, 1.15vw, 1.15rem); }
.info-table { margin: 0; }

/* ===== Trang đích giai-phap/*.html + mục Theo ngành ở giai-phap.html (28/11/2026, xem NHAN-DIEN.md "Trang đích & SEO") =====
   Lớp tiền tố ld- (không dùng .card / .post… vì main.js gắn hiệu ứng hiện dần cho các lớp đó). */
.ld-hanh-dong { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero .ld-hanh-dong { margin-top: 30px; }
.feature-text .ld-hanh-dong { margin-top: 4px; }
.ld-cach .feature:first-child { padding-top: 0; }
.ld-cach .feature:last-child { padding-bottom: 0; }
.ld-cach .feature { scroll-margin-top: 90px; }
/* Tính năng: ô chữ, không biểu tượng */
.ld-tn { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ld-tn li { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 26px 24px; }
.ld-tn h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.ld-tn p { color: var(--muted); font-size: .95rem; }
/* Hỏi đáp: mở / đóng bằng details, câu hỏi là h3 */
.ld-hoi-ds { max-width: 900px; border-top: 1px solid var(--rule); }
.ld-hoi { border-bottom: 1px solid var(--rule); }
.ld-hoi summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; }
.ld-hoi summary::-webkit-details-marker { display: none; }
.ld-hoi summary::after { content: '+'; flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--rule); color: var(--brand-blue); font-size: 1.2rem; line-height: 1; transition: transform .2s; }
.ld-hoi[open] summary::after { transform: rotate(45deg); }
.ld-hoi summary h3 { font-size: 1.1rem; font-weight: 700; }
.ld-hoi summary:hover h3 { color: var(--brand-blue); }
.ld-hoi summary:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 4px; border-radius: 6px; }
.ld-hoi p { color: var(--text); padding: 0 52px 24px 0; }
/* Liên kết nội bộ: hai cột */
.ld-lien-quan { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.ld-lien-quan .related { margin-top: 0; }
/* Theo ngành (giai-phap.html) */
.ld-nganh { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.ld-nganh-the { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 28px 24px; transition: border-color .2s, box-shadow .2s; }
.ld-nganh-the:hover { border-color: rgba(10,102,255,.45); box-shadow: var(--glow); }
.ld-nganh-the i { font-size: 1.4rem; color: var(--brand-blue); margin-bottom: 18px; }
.ld-nganh-the h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 8px; }
.ld-nganh-the p { color: var(--muted); font-size: .95rem; margin-bottom: 18px; }
.ld-nganh-the .d-link { margin-top: auto; color: var(--brand-blue); font-weight: 600; font-size: .95rem; text-decoration: underline; text-decoration-color: rgba(10,102,255,.35); text-underline-offset: 4px; }
@media (max-width: 1100px) { .ld-nganh { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1000px) { .ld-tn { grid-template-columns: repeat(2, 1fr); } .ld-lien-quan { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 640px) {
  .ld-tn, .ld-nganh { grid-template-columns: 1fr; }
  .ld-hoi p { padding-right: 0; }
  .ld-hanh-dong .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ld-hoi summary::after, .ld-nganh-the { transition: none; } }

/* ===== Trang đích san-pham/*.html + dich-vu/*.html (30/11/2026, xem NHAN-DIEN.md "Trang đích & SEO") ===== */
/* Dòng trạng thái + đối tượng dưới đoạn mở đầu (không đặt nhãn phía trên tiêu đề) */
.page-hero .ld-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 22px; font-size: .95rem; color: var(--muted); }
.ld-meta .badge { font-size: .78rem; }
/* Nút trên thẻ ở trang Sản phẩm / Dịch vụ */
.product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.the-anh-body > .link { margin-top: 12px; }

/* ===== Ảnh màn hình mẫu trên trang chi tiết san-pham/*.html (01/12/2026, xem NHAN-DIEN.md "Thẻ sản phẩm dùng ảnh màn hình mẫu") ===== */
/* Đầu trang: ảnh thay cụm thẻ nổi. Dưới 1101px ảnh nằm dưới nút; từ 1101px ảnh ở nửa phải, chữ chừa chỗ */
.hero-anh { position: relative; z-index: 1; display: block; max-width: 720px; margin: 40px var(--gutter) 0; aspect-ratio: 16 / 10; overflow: hidden;
  border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--brand-gray); box-shadow: 0 30px 60px -30px rgba(13,27,61,.35); }
.hero-anh img { display: block; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 1101px) {
  .page-hero.co-anh-dau > .hero-anh { position: absolute; top: 50%; right: var(--gutter); width: clamp(360px, 38vw, 720px); max-width: none; margin: 0; transform: translateY(-50%); }
  .page-hero.co-anh-dau > .container { padding-right: calc(var(--gutter) + clamp(360px, 38vw, 720px) + 48px); }
}
/* Khối "Cách HAVA làm": ảnh 16:10 thay biểu tượng + ô chữ */
.feature-visual.co-anh { display: block; padding: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-gray); }
.feature-visual.co-anh img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ===== Điều chỉnh theo quy trình — ý chính của mọi sản phẩm (01/12/2026, xem NHAN-DIEN.md "Khối điều chỉnh theo quy trình trên trang sản phẩm") ===== */
/* Trang chi tiết: liên kết trong dòng .ld-meta tới khối #dieu-chinh */
.ld-meta-dc { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(10,102,255,.08);
  color: var(--brand-blue); font-weight: 600; font-size: .88rem; text-decoration: none; }
.ld-meta-dc:hover { background: rgba(10,102,255,.14); }
.ld-meta-dc:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
/* Khối #dieu-chinh: 4 ô chữ một hàng (≥1101), 2 cột, 1 cột ≤640 */
#dieu-chinh { scroll-margin-top: 80px; }
.ld-tn.ld-tn-4 { grid-template-columns: repeat(4, 1fr); }
.ld-dc-them { margin-top: 26px; color: var(--muted); font-size: .95rem; }
.ld-dc-them a, .sp-dc a { color: var(--brand-blue); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(10,102,255,.35); text-underline-offset: 4px; }
.ld-dc-them a:hover, .sp-dc a:hover { text-decoration-color: var(--brand-blue); }
@media (max-width: 1100px) { .ld-tn.ld-tn-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ld-tn.ld-tn-4 { grid-template-columns: 1fr; } }
/* san-pham.html: dòng trên từng thẻ + dải chung dưới lưới thẻ */
.product .product-dc { display: flex; align-items: center; gap: 8px; margin: 10px 0 2px; font-size: .88rem; font-weight: 600; color: var(--brand-blue); }
.product .product-dc i { font-size: .85rem; }
.sp-dc { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px 48px; align-items: center;
  background: var(--soft); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 32px 36px; }
.sp-dc h2 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); font-weight: 700; margin-bottom: 8px; text-wrap: balance; }
.sp-dc > div > p { color: var(--muted); font-size: .95rem; }
.sp-dc ul { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sp-dc li { background: #fff; border: 1px solid var(--rule); border-radius: var(--r-md); padding: 18px 18px; }
.sp-dc li b { display: block; font-size: 1rem; margin-bottom: 4px; color: var(--brand-navy); }
.sp-dc li span { color: var(--muted); font-size: .9rem; }
@media (max-width: 1100px) { .sp-dc { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .sp-dc { padding: 24px 20px; } .sp-dc ul { grid-template-columns: 1fr; } }

/* Thẻ "Giải pháp theo ngành" ở giai-phap.html dùng ảnh màn hình mẫu 16:10 thay biểu tượng (01/12/2026) */
.ld-nganh-the.co-anh { padding: 0; overflow: hidden; }
.ld-nganh-anh { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-gray); border-bottom: 1px solid var(--rule); }
.ld-nganh-anh img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.ld-nganh-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 26px; }
