/* 2Tech Việt Nam - giao diện website
   Thứ tự: nền tảng > header > banner > danh mục sản phẩm > liên hệ > footer > trang sản phẩm > trang văn bản > responsive */

/* ===== Nền tảng ===== */
:root {
  --navy: #0b1f33;
  --blue: #1268d5;
  --cyan: #16a5d8;
  --red: #d92d3f;
  --bg: #f5f8fb;
  --text: #1b2b3a;
  --muted: #5d6e80;
  --line: #dce5ed;
  --radius: 16px;
  --shadow: 0 14px 40px rgba(15,43,70,.10);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 2px;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.container { width: min(1200px, 92%); margin: auto; }
.eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--blue); text-transform: uppercase; margin-bottom: 8px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
}
.btn.primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; }
.btn.ghost { background: #fff; color: var(--blue); border-color: #bcd2ee; }
.btn.call { background: #17804a; color: #fff; }
.btn.zalo { background: #0068ff; color: #fff; }
.btn:disabled { opacity: .6; cursor: wait; }

/* ===== Thanh hotline + header ===== */
.topbar { background: var(--navy); color: #cfe0ee; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar-links { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: #7fd3f2; }
.topbar svg { width: 16px; height: 16px; }
.topbar-phone svg { color: #ffd166; filter: drop-shadow(0 0 3px rgba(255,209,102,.35)); }
.topbar-email svg { color: #54d8ee; filter: drop-shadow(0 0 3px rgba(84,216,238,.35)); }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex: none; text-decoration: none; }
.brand img { display: block; width: 200px; height: auto; }

#main-nav { display: flex; align-items: center; gap: 4px; }
#main-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
#main-nav > a, .has-sub > a { display: block; padding: 10px 14px; border-radius: 10px; }
#main-nav > a:hover, .has-sub > a:hover { background: #eef4fb; }
#main-nav .nav-cta { margin-left: 8px; padding: 11px 22px; background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; border-radius: 999px; }
#main-nav .nav-cta:hover { background: linear-gradient(135deg, var(--blue), var(--cyan)); filter: brightness(1.05); }
#main-nav .nav-tel { display: none; }
.has-sub { position: relative; }
.sub {
  list-style: none; margin: 0; padding: 8px; display: none;
  position: absolute; top: 100%; left: 0; min-width: 270px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow);
}
.has-sub:hover .sub, .has-sub:focus-within .sub { display: block; }
.sub a { display: block; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; }
.sub a:hover { background: #eef4fb; color: var(--blue); }
.menu { display: none; width: 44px; height: 44px; border: 0; border-radius: 10px; background: none; color: var(--navy); font-size: 25px; cursor: pointer; }

/* ===== Banner trượt ===== */
.hero { position: relative; background: #e9f2fb; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.slide.s1 { background: linear-gradient(120deg, #eaf3ff, #d6e9fa); }
.slide.s2 { background: linear-gradient(120deg, #edf5fb, #d9e8f5); }
.slide.s3 { background: linear-gradient(120deg, #f0f6fc, #dde9f6); }
.slide-in {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px;
  min-height: 480px; padding: 44px 0 88px; text-align: center;
}
.slide .eyebrow { margin: 0 0 12px; font-size: 13px; letter-spacing: 2.5px; }
.slide h2 {
  max-width: 980px; margin: 0; font-size: clamp(30px, 5vw, 60px); font-weight: 800;
  line-height: 1.1; letter-spacing: -1.8px; color: var(--navy);
}
.slide h2 .accent { display: block; color: var(--blue); }
.slide-imgs { display: flex; justify-content: center; align-items: center; gap: 28px; width: 100%; max-width: 880px; }
.slide-imgs img { flex: 0 1 30%; min-width: 0; max-height: 220px; object-fit: contain; mix-blend-mode: multiply; }
/* thanh điều khiển nằm dưới banner nên không đè lên chữ mô tả */
.hero-bar { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; display: flex; justify-content: center; align-items: center; gap: 12px; }
.hero-arrow, .hero-pause {
  width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: 50%;
  background: rgba(255,255,255,.95); color: var(--navy); font-size: 22px; line-height: 1; cursor: pointer;
}
.hero-arrow:hover, .hero-pause:hover { background: #fff; border-color: #bcd2ee; }
.hero-pause { font-size: 11px; }
.dots { display: flex; gap: 10px; }
.dots button { position: relative; width: 12px; height: 12px; padding: 0; border: 0; border-radius: 50%; background: #a9bfd6; cursor: pointer; }
.dots button::after { content: ''; position: absolute; inset: -10px; }
.dots button[aria-current="true"] { background: var(--blue); width: 30px; border-radius: 6px; }

/* ===== Cam kết (chỉ hiện khi site.json có nội dung) ===== */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust-in { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; padding: 18px 0; }
.trust b { display: block; color: var(--navy); font-size: 15px; }
.trust span { font-size: 14px; color: var(--muted); }

/* ===== Danh mục sản phẩm ===== */
.section { padding: 44px 0; }
.catalog-layout { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.catalog-main { min-width: 0; }
.customer-map-panel { padding: 16px 12px; border-top: 1px solid var(--line); background: #fff; }
.customer-map-link { display: block; width: 100%; margin: 0 auto; color: inherit; text-decoration: none; border-radius: var(--radius); }
.customer-map-link:focus-visible { outline: 3px solid var(--cyan); outline-offset: 4px; }
.customer-map-head { margin-bottom: 10px; text-align: center; }
.customer-map-head h2 { margin: 0 0 6px; color: var(--navy); font-size: 16px; line-height: 1.3; transition: color .2s; }
.customer-map-link:hover .customer-map-head h2 { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.customer-map-head .eyebrow { color: var(--muted); font-size: 10px; letter-spacing: .35px; }
.customer-map-card { max-width: 620px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: #f7f9f8; }
.customer-map-img { display: block; width: 100%; height: auto; }
.customer-map-card figcaption { padding: 8px 7px; color: var(--muted); font-size: 11px; line-height: 1.35; text-align: center; }
.projects-side {
  position: static; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
}
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 10px; background: var(--navy); }
.side-title { margin: 0; padding: 14px 18px; color: #fff; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; }
.v-pause {
  flex: none; width: 28px; height: 28px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%;
  background: transparent; color: #fff; font-size: 10px; cursor: pointer;
}
.v-pause[hidden] { display: none; }

/* công trình: tĩnh khi chưa có JS, chạy dọc khi có class .vanim */
.vslider { height: 420px; overflow-y: auto; }
.vslider.vanim {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}
.vtrack { list-style: none; margin: 0; padding: 0 14px; }
.vslider.vanim .vtrack { animation: vscroll var(--dur, 40s) linear infinite; will-change: transform; }
.vslider.vanim:hover .vtrack, .vslider.vanim:focus-within .vtrack, .vslider.vanim.paused .vtrack { animation-play-state: paused; }
@keyframes vscroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.proj { padding-top: 12px; }
.proj figure { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.proj figure img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #eef3f8; }
.proj figcaption { padding: 10px 12px; }
.proj b { display: block; font-size: 14px; line-height: 1.35; color: var(--navy); }
.proj span { display: block; font-size: 12px; color: var(--muted); }
/* thẻ lọc nhóm sản phẩm */
.cat-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.cat-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px;
  border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer;
}
.cat-btn span { font-size: 12px; color: var(--muted); background: #eef3f9; border-radius: 999px; padding: 1px 8px; }
.cat-btn:hover { border-color: #bcd2ee; }
.cat-btn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.cat-btn[aria-pressed="true"] span { background: rgba(255,255,255,.22); color: #fff; }
.catalog-head h2 { margin: 0 0 18px; font-size: 26px; letter-spacing: -.5px; color: var(--navy); }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 18px; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.p-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.p-card[hidden] { display: none; }
.p-link { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: inherit; }
.p-img { aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; padding: 14px; background: #f5f7fa; }
.p-img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.p-img.img-failed img { display: none; }
.p-img.img-failed::before { content: 'Ảnh đang cập nhật'; color: #8a98a5; font-size: 14px; font-weight: 600; }
.p-card h3 {
  margin: 0; padding: 14px 16px 6px; font-size: 15px; line-height: 1.4; font-weight: 700; color: var(--navy);
  display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.p-cta { margin-top: auto; padding: 4px 16px 16px; font-size: 13px; font-weight: 700; color: var(--blue); }
.more-wrap { text-align: center; margin-top: 24px; }
.more-wrap[hidden] { display: none; }

/* ===== Liên hệ + form ===== */
.contact { background: var(--navy); color: #fff; padding: 54px 0; }
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: start; }
.contact h2 { margin: 0 0 12px; font-size: 34px; line-height: 1.15; letter-spacing: -.8px; }
.contact p { margin: 0 0 20px; color: #b9cadb; }
.contact-quick { display: flex; gap: 10px; flex-wrap: wrap; }
.lead-form { display: grid; gap: 12px; background: #fff; color: var(--text); border-radius: var(--radius); padding: 24px; }
.lead-form input[type="text"], .lead-form input[type="tel"], .lead-form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: #fbfdff; font-family: inherit; font-size: 16px; color: var(--text);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.form-note { margin: 0; font-size: 14px; }
.form-note:empty { display: none; }
.form-note.ok { color: #23824f; }
.form-note.error { color: #c62839; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* danh sách liên hệ: biểu tượng + nhãn nhỏ + nội dung */
.contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; }
.contact-list svg { flex: none; width: 38px; height: 38px; padding: 9px; border-radius: 10px; background: #dbe8f8; color: var(--blue); }
.contact-list .cl-text { display: block; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text); }
.contact-list small { display: block; font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--muted); }
.contact-list a { color: inherit; text-decoration: none; }
.contact-list a:hover { color: var(--blue); }
.contact-list.on-dark svg { background: rgba(255,255,255,.1); color: #7fd3f2; }
.contact-list.on-dark .cl-text { color: #fff; }
.contact-list.on-dark small { color: #9fb3c6; }
.contact-list.on-dark a:hover { color: #7fd3f2; }

/* ===== Footer ===== */
footer { background: #e8f0f8; border-top: 1px solid var(--line); padding: 48px 0 0; color: var(--text); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .9fr 1.4fr; gap: 40px; }
.brand-footer img { width: 264px; max-width: 100%; }
.footer-brand p { margin: 14px 0 0; max-width: 340px; font-size: 15px; line-height: 1.6; }
.footer-grid b.ft { display: block; margin-bottom: 14px; color: var(--navy); font-size: 14px; letter-spacing: .5px; text-transform: uppercase; }
.footer-links .ft2 { margin-top: 22px; }
.footer-links a { display: block; padding: 5px 0; font-size: 15px; color: var(--text); text-decoration: none; }
.footer-links a:hover { color: var(--blue); }
.copyright { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding: 16px 0; border-top: 1px solid #cddbe8; font-size: 13px; color: var(--muted); }
.copyright a { color: var(--muted); }
.copyright a:hover { color: var(--blue); }

/* ===== Nút gọi / Zalo nổi ===== */
.float-contact { position: fixed; left: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex; flex-direction: column; gap: 12px; }
.float-btn {
  position: relative; display: grid; place-items: center; width: 60px; height: 60px;
  border-radius: 50%; color: #fff; text-decoration: none; box-shadow: 0 10px 28px rgba(11,31,51,.32);
}
.float-btn svg { width: 28px; height: 28px; }
.float-btn.call { background: #17804a; }
.float-btn.zalo { background: #0068ff; }
.float-btn .lbl {
  position: absolute; left: 72px; top: 50%; transform: translateY(-50%);
  padding: 8px 14px; border-radius: 999px; background: var(--navy); color: #fff;
  font-size: 14px; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s;
}
.float-btn:hover .lbl, .float-btn:focus-visible .lbl { opacity: 1; }

/* ===== Trang sản phẩm ===== */
.page-product { padding: 28px 0 64px; }
.breadcrumb { margin-bottom: 18px; font-size: 14px; color: var(--muted); }
.breadcrumb a { color: var(--blue); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; padding: 30px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.gallery-main { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; padding: 18px; background: #f5f7fa; border-radius: 18px; }
.gallery-main img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumb { width: 72px; height: 72px; padding: 4px; border: 2px solid var(--line); border-radius: 12px; background: #f5f7fa; cursor: pointer; }
.thumb.active { border-color: var(--blue); }
.thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.model { display: inline-block; margin-bottom: 6px; padding: 3px 10px; border-radius: 8px; background: #eef4fb; color: var(--blue); font-size: 13px; font-weight: 800; }
.info h1 { margin: 4px 0 12px; font-size: 30px; line-height: 1.2; letter-spacing: -.6px; color: var(--navy); }
.info > p { margin: 0 0 18px; color: #3d5268; }
.info h2 { margin: 0 0 8px; font-size: 16px; color: var(--navy); }
.spec-list { margin: 0 0 20px; padding: 0; list-style: none; }
.spec-list li { position: relative; padding: 8px 0 8px 22px; border-bottom: 1px solid #edf2f7; font-size: 15px; }
.spec-list li::before { content: '✓'; position: absolute; left: 0; color: var(--blue); font-weight: 800; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.extra-info { margin: 16px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.extra-info li { padding: 3px 0; }
.lead-box { margin-top: 22px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #f8fbfe; }
.lead-box h2 { margin-bottom: 12px; }
.lead-box .lead-form { padding: 0; background: none; }
.related { margin-top: 44px; }
.related h2 { margin: 0 0 18px; font-size: 24px; letter-spacing: -.4px; color: var(--navy); }

/* ===== Trang văn bản (chính sách bảo mật) ===== */
.doc { max-width: 860px; margin: auto; padding: 34px; background: #fff; border: 1px solid var(--line); border-radius: 24px; }
.doc h1 { margin: 0 0 6px; font-size: 30px; color: var(--navy); }
.doc h2 { margin: 26px 0 8px; font-size: 19px; color: var(--navy); }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.doc ul { padding-left: 22px; }

/* ===== Khối kiến thức (trang chủ) + bài viết ===== */
.learn, .form-wrap { min-width: 0; }
.learn h2, .form-wrap h2 { margin: 0 0 16px; }
.article-card {
  display: grid; grid-template-columns: 190px 1fr; gap: 16px; margin-bottom: 14px;
  overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--text); text-decoration: none; transition: box-shadow .2s, transform .2s;
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.article-card img { display: block; width: 100%; height: 100%; min-height: 150px; object-fit: cover; }
.article-card > div { padding: 14px 16px 14px 0; }
.article-card h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.35; color: var(--navy); }
.article-card p { margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card span { font-size: 14px; font-weight: 700; color: var(--blue); }
.article-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 16px; }
.article-list .article-card { margin-bottom: 0; }
.article-index h1 { margin: 6px 0 12px; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; letter-spacing: -.8px; color: var(--navy); }
.article-index .lead { max-width: 720px; margin: 0 0 26px; font-size: 18px; color: #3d5268; }

.article { max-width: 860px; margin: 0 auto; }
.article-head h1 { margin: 6px 0 14px; font-size: clamp(28px, 4vw, 40px); line-height: 1.2; letter-spacing: -.8px; color: var(--navy); }
.article .lead { margin: 0 0 12px; font-size: 18px; line-height: 1.7; color: #3d5268; }
.article-meta { margin: 0 0 22px; font-size: 14px; color: var(--muted); }
.article-cover, .prose figure { margin: 0 0 26px; }
.article-cover img, .prose figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.article-cover figcaption, .prose figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; }
.toc { margin: 0 0 30px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.toc b { display: block; margin-bottom: 8px; font-size: 14px; letter-spacing: .5px; text-transform: uppercase; color: var(--navy); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { padding: 3px 0; font-size: 15px; }
.toc a { color: var(--blue); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose h2 { margin: 40px 0 12px; font-size: 26px; line-height: 1.25; letter-spacing: -.5px; color: var(--navy); scroll-margin-top: 110px; }
.prose h3 { margin: 22px 0 6px; font-size: 19px; color: var(--navy); }
.prose p, .prose li { font-size: 17px; line-height: 1.75; color: #26384a; }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin: 8px 0; }
.note { margin: 20px 0; padding: 14px 18px; background: #eef6ff; border-left: 4px solid var(--blue); border-radius: 10px; font-size: 16px; line-height: 1.65; color: #26384a; }
.figs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 26px; }
.figs figure { margin: 0; }
.fig-scroll { overflow-x: auto; }
.prose .product-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin: 18px 0 8px; }
.faq-item { margin: 10px 0; padding: 0 18px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.faq-item summary { padding: 14px 0; font-size: 16px; font-weight: 700; color: var(--navy); cursor: pointer; }
.faq-item p { margin: 0 0 14px; font-size: 16px; }
.article-cta { margin-top: 40px; padding: 22px; }
.article-cta p { margin: 0 0 14px; color: var(--muted); }
.article .related { margin-top: 44px; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .topbar-in > span:first-child { display: none; }
  .topbar-in { justify-content: center; }
  .topbar-links { gap: 16px; justify-content: center; }
  .topbar-links a:nth-child(3) { display: none; }
  .nav { height: 72px; }
  .brand img { width: 158px; }
  .menu { display: block; }
  #main-nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 6px 4% 18px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(15,43,70,.12);
  }
  #main-nav.open { display: flex; }
  #main-nav > a, .has-sub > a { padding: 14px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .sub { display: block; position: static; min-width: 0; padding: 0 0 0 14px; border: 0; box-shadow: none; }
  .sub a { padding: 12px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-weight: 500; }
  .slide-in { gap: 18px; min-height: 0; padding: 32px 0 74px; }
  .slide h2 { letter-spacing: -1px; }
  .slide-imgs { gap: 14px; }
  .slide-imgs img { max-height: 110px; }
  .catalog-layout { grid-template-columns: 1fr; gap: 24px; }
  .catalog-main { order: 1; }
  .projects-side { order: 2; position: static; }
  .vslider { height: 340px; }
  .cat-tabs { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
  .cat-tabs::-webkit-scrollbar { display: none; }
  .cat-btn { flex: none; white-space: nowrap; }
  .contact-grid, .product-detail { grid-template-columns: 1fr; }
  .product-detail { padding: 20px; gap: 22px; }
  .contact h2 { font-size: 28px; }
}
@media (max-width: 700px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .article-card { grid-template-columns: 1fr; }
  .article-card img { height: 180px; }
  .article-card > div { padding: 0 16px 16px; }
  .article-list { grid-template-columns: 1fr; }
  .figs { grid-template-columns: 1fr; }
  .fig-scroll img { min-width: 620px; }
  .prose h2 { font-size: 23px; }
  .prose p, .prose li { font-size: 16px; }
  .p-card h3 { font-size: 14px; padding: 10px 12px 4px; }
  .p-cta { padding: 2px 12px 12px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .brand-footer img { width: 240px; }
  .doc { padding: 22px; }
  .info h1 { font-size: 25px; }
  /* điện thoại: thanh Gọi / Zalo cố định dưới đáy trang */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
  .float-contact { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; padding-bottom: env(safe-area-inset-bottom, 0px); background: #17804a; box-shadow: 0 -6px 20px rgba(11,31,51,.2); }
  .float-btn { flex: 1; width: auto; height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 0; box-shadow: none; }
  .float-btn svg { width: 24px; height: 24px; }
  .float-btn .lbl { position: static; transform: none; padding: 0; background: none; font-size: 16px; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .p-card { transition: none; }
  .vslider.vanim .vtrack { animation: none; }
}

