/* Metric-matched fallbacks: text keeps its line breaks when the web font swaps in (no layout shift).
   size-adjust values measured in-browser against the real fonts: Android ships Roboto, desktop falls back to Arial. */
@font-face { font-family: "RC Fallback Roboto"; src: local("Roboto"); size-adjust: 89.3%; ascent-override: 92.8%; descent-override: 24.4%; line-gap-override: 0%; }
@font-face { font-family: "RC Fallback Arial"; src: local("Arial"), local("Helvetica"); size-adjust: 83.5%; ascent-override: 92.8%; descent-override: 24.4%; line-gap-override: 0%; }
@font-face { font-family: "Roboto Fallback Arial"; src: local("Arial"), local("Helvetica"); size-adjust: 98.4%; ascent-override: 92.8%; descent-override: 24.4%; line-gap-override: 0%; }
:root {
  --primary: #0f3d75;
  --primary-2: #1d5abd;
  --accent: #ff6900;
  --accent-2: #ff8a3d;
  --accent-ink: #c2410c; /* orange text on light bg, 5.2:1 */
  --on-accent: #0a2a52;  /* text on orange buttons, 4.9:1 */
  --ink: #14233a;
  --muted: #5b6b82;
  --line: #e2e9f3;
  --bg: #ffffff;
  --bg-soft: #f3f7fd;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 61, 117, .08);
  --max: 1200px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body { overflow-x: clip; }
body { font-family: Roboto, "Roboto Fallback Arial", sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }
h1, h2, h3, h4, .title, .logo, .nav a, .btn, .stat b, .price { font-family: "Roboto Condensed", "RC Fallback Roboto", "RC Fallback Arial", sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.section { padding: 80px 0; }
.section.soft { background: var(--bg-soft); }
.eyebrow { color: var(--accent-ink); font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.title { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; font-weight: 800; color: var(--primary); margin: 8px 0 14px; }
.lead { color: var(--muted); max-width: 640px; }
.center { text-align: center; } .center .lead { margin: 0 auto; }
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.img { background: linear-gradient(135deg, var(--primary-2), var(--primary)); overflow: hidden; }
.img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: .2s; }
.btn-accent { background: var(--accent); color: var(--on-accent); }
.btn-accent:hover { background: var(--accent-2); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-2); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--primary); }
.btn-outline { border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }

/* Topbar + header */
.topbar { background: var(--primary); color: #c9d9f0; font-size: 13px; }
.topbar .container { display: flex; justify-content: space-between; gap: 16px; padding: 8px 16px; flex-wrap: wrap; }
.topbar span { margin-right: 18px; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header .container { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--primary); font-size: 20px; }
.logo-mark { width: 40px; height: 40px; border-radius: 12px; background: radial-gradient(circle at 50% 50%, var(--accent) 35%, var(--primary) 36%); }
.logo small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .05em; }
.nav { display: flex; gap: 4px; align-items: center; }
.logo, .nav a, .btn { white-space: nowrap; }
.nav a { padding: 8px 12px; border-radius: 8px; font-weight: 600; color: var(--ink); }
.nav a:hover, .nav a.active { color: var(--primary-2); background: var(--bg-soft); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.cart-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; background: var(--bg-soft); display: grid; place-items: center; font-size: 20px; }
.cart-count { position: absolute; top: -2px; right: -2px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; }
.menu-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; }

/* Hero */
.hero { position: relative; color: #fff; min-height: 640px; display: flex; align-items: center; background: var(--primary); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10,42,82,.95) 0%, rgba(10,42,82,.4) 70%); }
.hero .container { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); line-height: 1.1; font-weight: 800; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p { color: #dbe6f5; font-size: 18px; max-width: 560px; }
.hero-actions { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.calc { background: #fff; color: var(--ink); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.calc h3 { color: var(--primary); margin-bottom: 4px; }
.hero .calc p { color: var(--muted); }
.calc .result { margin-top: 16px; padding: 16px; border-radius: 12px; background: var(--bg-soft); display: none; }
.calc .result b { color: var(--primary-2); font-size: 20px; }

/* Stats */
.stats { margin-top: -60px; position: relative; z-index: 2; }
.stats .grid { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 30px; }
.stat b { display: block; font-size: 36px; font-weight: 800; color: var(--primary); }
.stat span { color: var(--muted); }

/* Cards */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.card:hover .img img { transform: scale(1.06); }
.card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 18px; color: var(--primary); line-height: 1.35; }
.card p { color: var(--muted); font-size: 15px; }
.icon-box { width: 56px; height: 56px; border-radius: 14px; background: #eaf1fc; display: grid; place-items: center; font-size: 26px; }
.feature { padding: 28px; }

/* Product card */
.product .img { aspect-ratio: 4/3; background: var(--bg-soft); }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e6effc; color: var(--primary-2); width: fit-content; }
.price { font-weight: 800; color: #c0392b; font-size: 18px; }
.price del { color: var(--muted); font-weight: 400; font-size: 14px; margin-left: 6px; }
.product-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; }
.product-actions .btn { padding: 9px 14px; font-size: 14px; flex: 1; justify-content: center; }

/* Tabs / filters */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin: 28px 0; }
.tab { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 600; }
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* Shop layout */
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 30px; }
.sidebar .box { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 20px; }
.sidebar .box-h { color: var(--primary); margin-bottom: 12px; }
.sidebar label { display: flex; gap: 8px; align-items: center; padding: 4px 0; cursor: pointer; color: var(--muted); }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; gap: 12px; flex-wrap: wrap; }
.input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); border-color: transparent; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }

/* Page banner */
.page-banner { background: linear-gradient(120deg, var(--primary), var(--primary-2)); color: #fff; padding: 64px 0; }
.page-banner h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; }
.crumb { color: #b7cdee; font-size: 14px; }
.crumb a:hover { color: var(--accent); }

/* Product detail */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.pd-img { border-radius: 20px; background: var(--bg-soft); aspect-ratio: 4/3; }
.spec { width: 100%; border-collapse: collapse; margin-top: 16px; }
.spec td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.spec td:first-child { color: var(--muted); width: 40%; }
.qty { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty button { width: 40px; border: 0; background: var(--bg-soft); cursor: pointer; font-size: 18px; }
.qty input { width: 50px; text-align: center; border: 0; }

/* Cart */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th, .cart-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.cart-table img { width: 64px; height: 64px; object-fit: contain; background: var(--bg-soft); border-radius: 10px; }
.summary { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: sticky; top: 100px; }
.summary .row { display: flex; justify-content: space-between; padding: 8px 0; }
.summary .total { font-size: 20px; font-weight: 800; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.empty { text-align: center; padding: 60px 0; color: var(--muted); }

/* Projects / news */
.project .img { aspect-ratio: 4/3; position: relative; }
.project .tag { position: absolute; top: 14px; left: 14px; background: var(--accent); color: #fff; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 999px; }
.news .img { aspect-ratio: 16/10; }
.meta { font-size: 13px; color: var(--muted); display: flex; gap: 14px; }
.news-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; align-items: start; }
.news-aside { position: sticky; top: 90px; }
.article { min-width: 0; font-size: 17px; }
.article-title { font-size: clamp(26px, 3vw, 36px); line-height: 1.25; margin: 12px 0 14px !important; }
.article-lead { font-size: 19px; color: var(--ink) !important; font-weight: 500; }
.article ul, .article ol { padding-left: 22px; margin-bottom: 14px; color: #34445c; display: grid; gap: 6px; }
.article blockquote { margin: 24px 0; padding: 20px 26px; border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 0 12px 12px 0; font-size: 19px; font-style: italic; color: var(--primary); }
.toc { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin-bottom: 10px; }
.toc b { color: var(--primary); }
.toc ol { margin: 8px 0 0 !important; }
.toc a:hover { color: var(--accent); }
.article-foot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--line); }
.tags, .share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); }
.tags a { padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); font-size: 14px; color: var(--primary-2); }
.share a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-2); color: #fff; font-weight: 700; }
.share a:hover, .tags a:hover { background: var(--accent); color: #fff; }
.aside-link { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); color: var(--muted); }
.aside-link span { font-size: 13px; background: var(--bg-soft); border-radius: 999px; padding: 0 9px; }
.aside-link:hover, .aside-link.active { color: var(--primary-2); font-weight: 600; }
.aside-post { display: flex; gap: 12px; padding: 8px 0; align-items: center; font-size: 14px; line-height: 1.4; }
.aside-post img { width: 70px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.aside-post small, .aside-post b { display: block; margin-top: 4px; }
.aside-post small { color: var(--muted); }
.aside-post:hover { color: var(--primary-2); }
@media (max-width: 1024px) { .news-layout { grid-template-columns: minmax(0, 1fr); } .news-aside { position: static; } }
.article h2 { color: var(--primary); margin: 28px 0 10px; }
.article p { margin-bottom: 14px; color: #34445c; }
.article .img { border-radius: var(--radius); aspect-ratio: 16/9; margin: 20px 0; }

/* Process */
.steps { counter-reset: s; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); font-size: 40px; font-weight: 800; color: var(--accent); }

/* CTA + forms */
.cta { background: linear-gradient(120deg, var(--primary), #164e9e); color: #fff; border-radius: 24px; padding: 48px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.cta h2 { font-size: clamp(24px, 3vw, 34px); }
.cta p { color: #c9d9f0; }
.cta form { display: grid; gap: 10px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(100px); background: var(--primary); color: #fff; padding: 14px 24px; border-radius: 999px; transition: .3s; z-index: 100; box-shadow: var(--shadow); }
.toast.show { transform: translateX(-50%) translateY(0); }

/* Partners */
.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.partners span { padding: 14px 26px; border: 1px solid var(--line); border-radius: 12px; font-weight: 800; color: var(--muted); letter-spacing: .05em; }

/* Footer */
.footer { background: #0a2a52; color: #a9bcd8; padding: 70px 0 0; margin-top: 80px; }
.footer .grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
.footer .fh { color: #fff; margin-bottom: 16px; }
.footer li { list-style: none; padding: 4px 0; }
.footer a:hover { color: var(--accent); }
.footer .logo { color: #fff; margin-bottom: 14px; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding: 20px 0; font-size: 14px; text-align: center; }

/* Floating contact */
.float { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.float a { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; box-shadow: var(--shadow); font-size: 13px; }
.float .call { background: #e74c3c; animation: pulse 1.8s infinite; font-size: 22px; }
.float .zalo { background: #0068ff; }
.float .mess { background: #a033ff; font-size: 22px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(231,76,60,.6); } 70% { box-shadow: 0 0 0 16px rgba(231,76,60,0); } 100% { box-shadow: 0 0 0 0 rgba(231,76,60,0); } }

/* Responsive */
@media (max-width: 1024px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer .grid { grid-template-columns: 1fr 1fr; }
  .hero .container, .cta, .pd { grid-template-columns: 1fr; }
}
@media (max-width: 1200px) {
  .logo small { display: none; }
  .nav a { padding: 8px 8px; }
  .header .container { gap: 12px; }
  .header-actions .btn { padding: 10px 16px; }
}
@media (max-width: 1100px) {
  .nav { display: none; position: absolute; top: 74px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
}
@media (max-width: 860px) {
  .g3, .g2, .shop { grid-template-columns: 1fr; }
  .topbar .right { display: none; }
  .section { padding: 56px 0; }
  .cta { padding: 28px; }
  .cart-table thead { display: none; }
  .cart-table td { display: block; border: 0; padding: 4px 0; }
  .cart-table tr { display: block; border-bottom: 1px solid var(--line); padding: 12px 0; }
}
@media (max-width: 520px) {
  .g4, .footer .grid { grid-template-columns: 1fr; }
  .stats .grid { grid-template-columns: 1fr 1fr; }
}

/* Hero slider (homepage) */
.hero-slide-bg { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; }
.hero-slide-bg.active { opacity: 1; }
.hero-slide-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; transform: scale(1.08); transition: transform 6s linear; }
.hero-slide-bg.active img { transform: scale(1); }
.hero-text { display: none; animation: slideUp .7s ease both; }
.hero-text.active { display: block; }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.hero-dots { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); display: flex; gap: 10px; z-index: 2; }
.hero-dots button { width: 12px; height: 12px; box-sizing: content-box; padding: 6px; background-clip: content-box !important; border-radius: 12px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: .3s; }
.hero-dots button.active { width: 34px; background: var(--accent); }
.slide-arrow { position: absolute; top: 50%; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(0,0,0,.2); color: #fff; font-size: 22px; cursor: pointer; transform: translateY(-50%); }
.slide-arrow:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.slide-arrow.prev { left: 16px; } .slide-arrow.next { right: 16px; }

/* Card carousel (products, projects) */
.carousel { position: relative; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 72px) / 4); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 2px 16px; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
.carousel.cols-3 .carousel-track { grid-auto-columns: calc((100% - 48px) / 3); }
.carousel .slide-arrow { border-color: var(--line); background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.carousel .slide-arrow.prev { left: -22px; } .carousel .slide-arrow.next { right: -22px; }

/* Partner marquee */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .partners { flex-wrap: nowrap; width: max-content; animation: marquee 30s linear infinite; }
.marquee:hover .partners { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

@media (max-width: 1024px) {
  .carousel-track, .carousel.cols-3 .carousel-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .carousel .slide-arrow.prev { left: 0; } .carousel .slide-arrow.next { right: 0; }
}
@media (max-width: 600px) {
  .carousel-track, .carousel.cols-3 .carousel-track { grid-auto-columns: 82%; }
  .hero .slide-arrow { display: none; }
}

/* Brand logo + line icons */
.logo-img { width: 48px; height: 48px; object-fit: contain; }
.footer .logo-img { background: #fff; border-radius: 12px; padding: 4px; }
.ic { width: 1.15em; height: 1.15em; display: inline-block; vertical-align: -0.2em; flex-shrink: 0; }
.icon-box { color: var(--primary-2); }
.icon-box .ic { width: 28px; height: 28px; }
.cart-btn .ic { width: 22px; height: 22px; color: var(--primary); }
.float a .ic { width: 24px; height: 24px; }
.tl-step i { color: var(--primary-2); }
.tl-step i .ic { width: 26px; height: 26px; }
.topbar .ic, .footer .ic, .meta .ic { color: var(--accent); margin-right: 4px; }
.eyebrow .ic { margin-right: 4px; }

/* Product detail info tabs */
.pd-info { display: grid; grid-template-columns: 1fr 320px; gap: 30px; align-items: start; }
.pd-tabs-wrap { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.pd-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.pd-tab { flex: 0 0 auto; padding: 18px 22px; border: 0; background: none; cursor: pointer; font: 600 16px "Roboto Condensed", "RC Fallback Roboto", "RC Fallback Arial", sans-serif; color: var(--muted); border-bottom: 3px solid transparent; transition: .2s; }
.pd-tab:hover { color: var(--primary-2); }
.pd-tab.active { color: var(--primary); border-bottom-color: var(--accent); }
.pd-panel { display: none; padding: 30px; animation: slideUp .5s ease both; }
.pd-panel.active { display: block; }
.pd-intro { font-size: 17px; color: var(--ink); margin-bottom: 24px; }
.pd-hl { display: flex; gap: 14px; }
.pd-hl h3 { color: var(--primary); margin-bottom: 2px; }
.pd-hl p { color: var(--muted); font-size: 15px; }
.pd-banner { position: relative; margin-top: 28px; border-radius: 16px; aspect-ratio: 21/8; }
.pd-banner > div { position: absolute; inset: auto 0 0 0; padding: 22px 26px; color: #fff; background: linear-gradient(transparent, rgba(10,42,82,.85)); }
.pd-banner b { display: block; font: 700 22px "Roboto Condensed", "RC Fallback Roboto", "RC Fallback Arial", sans-serif; }
.spec-full tr:nth-child(odd) { background: var(--bg-soft); }
.spec-full td { padding: 13px 16px; }
.pd-use { display: flex; gap: 10px; padding: 16px; border-radius: 12px; background: var(--bg-soft); color: var(--ink); }
.pd-use .ic { color: var(--primary-2); margin-top: 3px; }
.pd-sub { color: var(--primary); margin: 26px 0 10px; }
.pd-list { padding-left: 20px; color: var(--muted); display: grid; gap: 4px; }
.pd-aside { position: sticky; top: 90px; }
.pd-trust { list-style: none; margin-top: 18px; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.pd-trust .ic { color: var(--primary-2); margin-right: 6px; }
@media (max-width: 1024px) { .pd-info { grid-template-columns: 1fr; } .pd-aside { position: static; } }
@media (max-width: 600px) { .pd-panel { padding: 20px; } .pd-tab { padding: 14px 16px; font-size: 15px; } }

/* Accessibility & stability */
.box-h, .fh { font-size: 18px; }
.pd-hl h3, .tl-step h3 { font-size: 17px; }
.pd-sub { font-size: 20px; }
.calc h2 { font-size: 20px; color: var(--primary); margin-bottom: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#site-header { min-height: 112px; } /* reserve injected topbar + header height to avoid layout shift */
#site-footer { min-height: 420px; }
/* Orange text on dark surfaces uses the lighter tint for contrast */
.hero .eyebrow, .impact .eyebrow, .cta .eyebrow, .page-banner .eyebrow, .mega-promo small { color: var(--accent-2); }
.impact .stat b { color: var(--accent-2) !important; }
.hero h1 em { color: var(--accent-2); }
.float-badge b { color: var(--accent-ink) !important; }
.price { color: #b42318; }
.cart-count, .project .tag { color: var(--on-accent) !important; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.spec th { text-align: left; padding: 13px 16px; background: var(--primary); color: #fff; font-family: "Roboto Condensed", "RC Fallback Roboto", "RC Fallback Arial", sans-serif; }
.footer .logo small { color: #a9bcd8; }
/* Reserve space for JS-rendered detail blocks so later sections don't jump */
#pd:empty { min-height: 640px; }
#art:empty { min-height: 1600px; }
@media (max-width: 1024px) { #pd:empty { min-height: 1100px; } }
/* Mobile: category tabs become one swipeable row instead of wrapping */
@media (max-width: 860px) {
  .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; margin: 24px -16px; padding: 4px 16px; -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: start; }
}
#plist:empty, #list:empty, #nlist:empty { min-height: 900px; }
.tabs:empty { min-height: 44px; }
/* Mobile hero: fixed text block height so a font swap or slide change never pushes the calculator down */
@media (max-width: 1024px) {
  .hero h1 { min-height: 3.3em; }
  .hero-text p { min-height: 4.8em; }
}
/* Mobile topbar: one line only, so the reserved header height (111px) is exact */
@media (max-width: 860px) {
  .topbar .container { flex-wrap: nowrap; }
  .topbar .container > div:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
  .topbar .container > div:first-child > span:nth-child(2) { display: none; }
}
/* Reserve space for JS-rendered blocks (cart, shop filters) so the footer and sidebar don't jump */
#cartWrap:empty { min-height: 520px; }
#catFilter:empty { min-height: 160px; }
#brandFilter:empty { min-height: 200px; }

/* Services page */
.svc-nav { position: sticky; top: 62px; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px rgba(15,61,117,.05); }
.svc-nav .container { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-top: 10px; padding-bottom: 10px; }
.svc-nav .container::-webkit-scrollbar { display: none; }
.svc-nav a { flex: 0 0 auto; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--primary); }
.svc-nav a:hover { background: var(--bg-soft); color: var(--primary-2); }
.svc-nav .ic { color: var(--primary-2); margin-right: 4px; }
section[id] { scroll-margin-top: 140px; }
.svc-block { align-items: center; gap: 50px; }
.svc-block.rev > :first-child { order: 2; }
.svc-img { border-radius: 24px; aspect-ratio: 4/3; }
.check-list { list-style: none; display: grid; gap: 10px; margin-top: 18px; color: var(--ink); }
.check-list .ic { color: #16a34a; margin-right: 8px; }
.pkg-grid { margin-top: 36px; align-items: stretch; }
.pkg { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; display: flex; flex-direction: column; gap: 6px; }
.pkg.featured { border: 2px solid var(--accent); box-shadow: var(--shadow); transform: translateY(-8px); }
.pkg .badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--on-accent); white-space: nowrap; }
.pkg h3 { font-size: 22px; color: var(--primary); }
.pkg-for, .pkg-unit { color: var(--muted); font-size: 15px; }
.pkg-price { font: 800 38px/1.1 "Roboto Condensed", "RC Fallback Roboto", "RC Fallback Arial", sans-serif; color: var(--primary); margin-top: 12px; }
.pkg-price small { font-size: 18px; font-weight: 600; color: var(--muted); }
.pkg .check-list { margin: 16px 0 24px; flex: 1; }
.pkg .btn { justify-content: center; }
.table-wrap { overflow-x: auto; margin-top: 24px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.om-table { margin: 0; min-width: 620px; }
.om-table td:not(:first-child), .om-table th:not(:first-child) { text-align: center; }
.om-table td:first-child { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) {
  .svc-block.rev > :first-child { order: 0; }
  .pkg.featured { transform: none; }
}

/* Modal kết quả máy tính điện mặt trời */
.calc-modal { position: fixed; inset: 0; margin: auto; height: fit-content; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 0; border-radius: 22px; padding: 28px 26px 24px; color: var(--ink); background: #fff; box-shadow: 0 30px 80px rgba(10, 25, 55, .35); }
.calc-modal::backdrop { background: rgba(10, 25, 55, .55); backdrop-filter: blur(3px); }
.calc-modal[open] { animation: calcPop .35s cubic-bezier(.2, .9, .3, 1.2); }
.calc-modal[open]::backdrop { animation: calcFade .3s ease; }
@keyframes calcPop { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes calcFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes calcRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.calc-modal h3 { color: var(--primary); font-size: 22px; margin: 0 40px 6px 0; }
.calc-modal .result { display: block; margin: 0; padding: 0; background: none; }
.calc-input { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.calc-input b { color: var(--ink); font-size: inherit; }
.calc-saving { position: relative; overflow: hidden; display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; column-gap: 6px; padding: 18px 20px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-2)); animation: calcRise .45s .05s both; }
.calc-saving::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .25) 50%, transparent 70%); transform: translateX(-100%); animation: calcShine 1.6s .5s ease-out; }
@keyframes calcShine { to { transform: translateX(100%); } }
.calc-saving span { grid-column: 1 / -1; font-size: 14px; opacity: .85; }
.calc-modal .result .calc-saving b { font-size: 34px; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; }
.calc-saving em { font-style: normal; font-size: 22px; font-weight: 700; }
.calc-saving small { grid-column: 1 / -1; font-size: 14px; opacity: .9; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.calc-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--bg-soft); border: 1px solid transparent; animation: calcRise .45s both; transition: transform .2s, border-color .2s, box-shadow .2s; }
.calc-stat:hover { transform: translateY(-3px); border-color: rgba(0, 0, 0, .06); box-shadow: 0 8px 20px rgba(10, 25, 55, .08); }
.calc-stat:nth-child(1) { animation-delay: .12s; } .calc-stat:nth-child(2) { animation-delay: .18s; } .calc-stat:nth-child(3) { animation-delay: .24s; }
.calc-stat:nth-child(4) { animation-delay: .30s; } .calc-stat:nth-child(5) { animation-delay: .36s; } .calc-stat:nth-child(6) { animation-delay: .42s; }
.calc-stat__icon { font-size: 18px; line-height: 1; }
.calc-stat__label { font-size: 13px; color: var(--muted); }
.calc-stat__value { font-size: 13px; color: var(--muted); }
.calc-stat__value b { font-size: 20px; color: var(--ink); font-variant-numeric: tabular-nums; }
.calc-stat--hl { background: #fff4ec; }
.calc-stat--hl b { color: var(--primary-2); }
.calc-cover { margin-top: 12px; padding: 14px; border-radius: 14px; background: var(--bg-soft); animation: calcRise .45s .48s both; }
.calc-cover__head { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; }
.calc-cover__head b { color: var(--primary-2); font-size: 16px; }
.calc-cover__bar { height: 10px; border-radius: 99px; background: #dfe6f1; overflow: hidden; }
.calc-cover__bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #f5a524, #ef7a2f); animation: calcBar 1s .6s both cubic-bezier(.2, .8, .2, 1); }
@keyframes calcBar { from { width: 0; } }
.calc-note { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.calc-modal__hint { font-size: 14px; color: var(--ink); font-weight: 600; margin: 18px 0 8px; }
.calc-modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--bg-soft); color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer; transition: transform .2s, background .2s; }
.calc-modal__close:hover { background: #e6ebf3; transform: rotate(90deg); }
@media (max-width: 560px) {
  .calc-modal { padding: 24px 16px 18px; }
  .calc-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-saving b { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .calc-modal[open], .calc-modal[open]::backdrop, .calc-saving, .calc-saving::after, .calc-stat, .calc-cover, .calc-cover__bar i { animation: none; }
}
