/* ==========================================================================
   Theme "Quảng cáo" — giao diện hiện đại cho công ty quảng cáo / in ấn / thi công biển bảng.
   Màu chủ đạo #ee1c25. Không phụ thuộc thư viện ngoài: CSS thuần + theme.js thuần.
   Bố cục: mobile-first, điểm ngắt 640 / 960 / 1200.
   ========================================================================== */

:root {
    --red: #ee1c25;
    --red-600: #d3121b;
    --red-700: #b50f17;
    --red-50: #fff1f1;
    --ink: #0f1115;
    --ink-2: #1a1d25;
    --ink-3: #2a2e39;
    --text: #1f2430;
    --muted: #6b7280;
    --line: #e8e9ee;
    --soft: #f5f5f8;
    --white: #fff;
    --radius: 18px;
    --radius-sm: 10px;
    --shadow: 0 10px 30px -12px rgba(15, 17, 21, .25);
    --shadow-lg: 0 30px 60px -20px rgba(15, 17, 21, .35);
    --ease: cubic-bezier(.22, .8, .24, 1);
    --header-h: 76px;
    --font: Tahoma, 'Segoe UI', Verdana, Geneva, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; color: var(--ink); font-weight: 800; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
svg.i { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; flex: none; }
svg.i.fill { fill: currentColor; stroke: none; }
::selection { background: var(--red); color: #fff; }

/* ── thanh tiến trình cuộn ───────────────────────────────────────────────── */
.progress { position: fixed; top: 0; left: 0; height: 3px; width: 100%; z-index: 200; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--red), #ff6a3d); }

/* ── nút ─────────────────────────────────────────────────────────────────── */
.btn { --b: var(--red); display: inline-flex; align-items: center; justify-content: center; gap: .6em; padding: .85em 1.6em; border: 2px solid var(--b); border-radius: 999px; background: var(--b); color: #fff; font-weight: 700; line-height: 1.2; position: relative; overflow: hidden; isolation: isolate; transition: transform .3s var(--ease), box-shadow .3s var(--ease), color .3s, background .3s; }
.btn::before { content: ''; position: absolute; inset: 0; background: var(--ink); transform: translateY(101%); transition: transform .4s var(--ease); z-index: -1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(238, 28, 37, .55); border-color: var(--ink); }
.btn:hover::before { transform: translateY(0); }
.btn svg { transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--ghost { --b: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn--ghost:hover { border-color: #fff; }
.btn--ghost::before { background: rgba(255, 255, 255, .14); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--line::before { background: var(--red); }
.btn--line:hover { color: #fff; border-color: var(--red); box-shadow: none; }
.btn--sm { padding: .6em 1.2em; font-size: .9rem; }
.btn--block { width: 100%; }

/* ── thanh trên cùng + header ────────────────────────────────────────────── */
.topbar { background: var(--ink); color: #c7cad3; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar a:hover { color: #fff; }
.topbar__info { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar__info span, .topbar__info a { display: inline-flex; align-items: center; gap: .5em; }
.topbar__info svg { color: var(--red); }
.topbar__social { display: flex; gap: 10px; }
.topbar__social a { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .3s, transform .3s; }
.topbar__social a:hover { background: var(--red); transform: translateY(-2px); }

.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: box-shadow .3s, border-color .3s, background .3s; }
.site-header.is-stuck { box-shadow: 0 8px 30px -14px rgba(15, 17, 21, .35); border-color: var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: var(--header-h); transition: height .3s; }
.site-header.is-stuck .container { height: 64px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo img { height: 48px; width: auto; transition: height .3s, transform .4s var(--ease); }
.site-header.is-stuck .logo img { height: 40px; }
.logo:hover img { transform: scale(1.04) rotate(-1deg); }
.logo b { font-size: 1.4rem; color: var(--red); }

.nav { display: none; align-items: center; gap: 2px; }
.nav > li { position: relative; }
.nav > li > a { white-space: nowrap; display: inline-flex; align-items: center; gap: .4em; padding: 10px 11px; font-weight: 700; font-size: .9rem; color: var(--ink); border-radius: 999px; position: relative; transition: color .25s; }
.nav > li > a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--red); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s var(--ease); }
.nav > li:hover > a, .nav > li.is-active > a { color: var(--red); }
.nav > li:hover > a::after, .nav > li.is-active > a::after { transform: scaleX(1); }
.nav .chev { transition: transform .3s; }
.nav > li:hover .chev { transform: rotate(180deg); }
.mega { position: absolute; top: 100%; left: 50%; width: 560px; margin-left: -280px; padding: 18px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity .3s, transform .35s var(--ease), visibility .3s; }
.mega::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.nav > li:hover > .mega, .nav > li:focus-within > .mega { opacity: 1; visibility: visible; transform: translateY(0); }
.mega a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 600; font-size: .92rem; color: var(--ink); transition: background .25s, color .25s, transform .25s var(--ease); }
.mega a:hover { background: var(--red-50); color: var(--red); transform: translateX(4px); }
.mega a svg { color: var(--red); opacity: 0; transform: translateX(-6px); transition: .3s var(--ease); }
.mega a:hover svg { opacity: 1; transform: none; }

.header-cta { display: none; }
.burger { width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: inline-grid; place-items: center; color: var(--ink); transition: background .25s, color .25s; }
.burger:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* ── ngăn kéo menu di động ───────────────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 300; pointer-events: none; }
.drawer__veil { position: absolute; inset: 0; background: rgba(15, 17, 21, .6); backdrop-filter: blur(3px); opacity: 0; transition: opacity .35s; }
.drawer__panel { position: absolute; top: 0; right: 0; width: min(380px, 88vw); height: 100%; background: var(--ink); color: #fff; padding: 22px 22px 30px; overflow-y: auto; transform: translateX(100%); transition: transform .45s var(--ease); display: flex; flex-direction: column; gap: 18px; }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__veil { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__head .logo img { height: 40px; }
.drawer__close { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .2); background: transparent; color: #fff; display: grid; place-items: center; }
.drawer__close:hover { background: var(--red); border-color: var(--red); }
.drawer__nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 4px; font-weight: 600; border-bottom: 1px solid rgba(255, 255, 255, .08); transition: color .25s, padding .25s; }
.drawer__nav a:hover { color: var(--red); padding-left: 10px; }
.drawer__sub { padding-left: 14px; }
.drawer__sub a { font-weight: 500; font-size: .93rem; color: #c7cad3; }
.drawer__contact { margin-top: auto; display: grid; gap: 10px; }

/* ── khối hero trang (đầu trang trong) ───────────────────────────────────── */
.page-hero { position: relative; background: var(--ink); color: #fff; padding: 56px 0 48px; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; width: 520px; height: 520px; right: -140px; top: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(238, 28, 37, .55), transparent 65%); z-index: -1; animation: drift 14s ease-in-out infinite alternate; }
.page-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(180deg, #000, transparent 90%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 90%); }
.page-hero h1 { color: #fff; font-size: clamp(1.7rem, 4.5vw, 2.8rem); margin: 10px 0 0; }
.page-hero p { color: #b9bdc9; max-width: 640px; margin: 12px 0 0; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: .88rem; color: #9aa0ae; }
.crumb a:hover { color: #fff; }
.crumb li + li::before { content: '/'; margin-right: 10px; color: #4b5060; }
.crumb li:last-child { color: #fff; }

/* ── tiêu đề mục ─────────────────────────────────────────────────────────── */
.section { padding: 72px 0; position: relative; }
.section--soft { background: var(--soft); }
.section--dark { background: var(--ink); color: #c7cad3; }
.section--dark h2, .section--dark h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: .6em; padding: .4em 1em; border-radius: 999px; background: var(--red-50); color: var(--red); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 2s infinite; }
.section--dark .eyebrow, .hero .eyebrow { background: rgba(238, 28, 37, .16); color: #ff8a8f; }
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 14px 0 0; }
.sec-head p { max-width: 560px; color: var(--muted); margin: 12px 0 0; }
.section--dark .sec-head p { color: #9aa0ae; }
.hl { background: linear-gradient(90deg, var(--red), #ff6a3d); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ── hero trang chủ ──────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; padding: 64px 0 90px; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.hero__bg i { position: absolute; border-radius: 50%; filter: blur(40px); opacity: .55; }
.hero__bg i:nth-child(1) { width: 520px; height: 520px; background: var(--red); left: -160px; top: -200px; animation: drift 12s ease-in-out infinite alternate; }
.hero__bg i:nth-child(2) { width: 420px; height: 420px; background: #ff6a3d; right: -120px; bottom: -160px; opacity: .35; animation: drift 16s ease-in-out infinite alternate-reverse; }
.hero__bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 75%); }
.hero .container { display: grid; gap: 48px; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 6.4vw, 3.9rem); line-height: 1.08; margin: 18px 0 18px; letter-spacing: -.025em; }
.hero__lead { color: #c7cad3; font-size: 1.08rem; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 34px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero__meta div { display: flex; align-items: center; gap: .6em; font-weight: 600; font-size: .95rem; }
.hero__meta svg { color: var(--red); }
.hero__art { position: relative; min-height: 360px; }
.hero__card { position: absolute; width: 58%; aspect-ratio: 4 / 3; border-radius: 22px; overflow: hidden; border: 4px solid #fff; box-shadow: var(--shadow-lg); background: #222; will-change: transform; }
.hero__card img { width: 100%; height: 100%; object-fit: cover; }
.hero__card:nth-child(1) { left: 0; top: 4%; transform: rotate(-6deg); animation: float 7s ease-in-out infinite; }
.hero__card:nth-child(2) { right: 0; top: 0; transform: rotate(5deg); animation: float 8s ease-in-out -2s infinite; z-index: 2; }
.hero__card:nth-child(3) { left: 22%; bottom: 0; transform: rotate(-2deg); animation: float 9s ease-in-out -4s infinite; z-index: 3; }
.hero__badge { position: absolute; z-index: 4; right: 6%; bottom: 6%; width: 112px; height: 112px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 16px 34px -10px rgba(238, 28, 37, .7); }
.hero__badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.hero__badge svg.ring text { font: 700 11.2px var(--font); letter-spacing: 2.6px; fill: #fff; text-transform: uppercase; }
.hero__badge .i { width: 34px; height: 34px; color: #fff; }

/* ── dải chữ chạy ────────────────────────────────────────────────────────── */
.marquee { background: var(--red); color: #fff; overflow: hidden; white-space: nowrap; padding: 16px 0; transform: rotate(-1deg) scale(1.02); margin: -26px 0 18px; position: relative; z-index: 5; box-shadow: 0 18px 40px -18px rgba(238, 28, 37, .8); }
.marquee__track { display: inline-flex; animation: marquee 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-weight: 800; font-size: 1.15rem; text-transform: uppercase; letter-spacing: .04em; }
.marquee span::after { content: '✦'; opacity: .7; }

/* ── lưới danh mục (lĩnh vực) ────────────────────────────────────────────── */
.cat-grid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.cat-tile { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1 / 1.05; background: var(--ink-2); display: block; isolation: isolate; box-shadow: var(--shadow); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .5s; }
.cat-tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 17, 21, 0) 35%, rgba(15, 17, 21, .88)); z-index: 1; transition: background .4s; }
.cat-tile:hover img { transform: scale(1.12) rotate(1deg); }
.cat-tile:hover::after { background: linear-gradient(180deg, rgba(238, 28, 37, .15) 0%, rgba(181, 15, 23, .92)); }
.cat-tile__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px; color: #fff; }
.cat-tile__body h3 { color: #fff; font-size: 1.02rem; margin: 0 0 4px; }
.cat-tile__body small { color: #d7dae2; font-size: .82rem; }
.cat-tile__go { position: absolute; z-index: 2; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--red); display: grid; place-items: center; transform: scale(.6) rotate(-45deg); opacity: 0; transition: .45s var(--ease); }
.cat-tile:hover .cat-tile__go { transform: none; opacity: 1; }
.cat-tile__num { position: absolute; z-index: 2; top: 12px; left: 16px; font-weight: 900; font-size: 1.5rem; color: rgba(255, 255, 255, .55); }

/* ── ba cam kết ──────────────────────────────────────────────────────────── */
.usp-grid { display: grid; gap: 18px; }
.usp { position: relative; padding: 30px 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.usp::before { content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%; background: linear-gradient(90deg, var(--red), #ff6a3d); transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease); }
.usp:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.usp:hover::before { transform: scaleX(1); }
.usp__num { position: absolute; right: 18px; top: 4px; font-size: 5rem; font-weight: 900; line-height: 1; color: var(--soft); transition: color .4s, transform .5s var(--ease); }
.usp:hover .usp__num { color: var(--red-50); transform: scale(1.1); }
.usp__ico { width: 56px; height: 56px; border-radius: 16px; background: var(--red-50); color: var(--red); display: grid; place-items: center; margin-bottom: 18px; position: relative; transition: background .3s, color .3s, transform .4s var(--ease); }
.usp:hover .usp__ico { background: var(--red); color: #fff; transform: rotate(-8deg) scale(1.08); }
.usp__ico .i { width: 26px; height: 26px; }
.usp h3 { font-size: 1.15rem; position: relative; }
.usp p { color: var(--muted); margin: 0; position: relative; }

/* ── lọc + lưới sản phẩm / công trình ────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.chip { padding: .55em 1.2em; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; color: var(--ink); transition: .3s var(--ease); }
.chip:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.chip.is-on { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 10px 22px -10px rgba(238, 28, 37, .7); }
.pgrid { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); }
.pcard { position: relative; border-radius: var(--radius); overflow: hidden; background: #fff; border: 1px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s, opacity .5s; will-change: transform; }
.pcard:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.pcard.is-hidden { display: none; }
.pcard__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--soft); }
.pcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pcard:hover .pcard__img img { transform: scale(1.1); }
.pcard__img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(15, 17, 21, .7)); opacity: 0; transition: opacity .4s; }
.pcard:hover .pcard__img::after { opacity: 1; }
.pcard__tools { position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; transform: translateY(20px); opacity: 0; transition: .45s var(--ease); }
.pcard:hover .pcard__tools, .pcard:focus-within .pcard__tools { transform: none; opacity: 1; }
.pcard__tools a, .pcard__tools button { flex: 1; display: inline-flex; justify-content: center; align-items: center; gap: .4em; padding: .55em .8em; border-radius: 999px; border: 0; background: #fff; color: var(--ink); font-weight: 700; font-size: .85rem; transition: background .25s, color .25s; }
.pcard__tools a:hover, .pcard__tools button:hover { background: var(--red); color: #fff; }
.pcard__tools button { flex: none; width: 40px; padding: 0; }
.pcard__body { padding: 14px 16px 18px; }
.pcard__cat { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--red); }
.pcard__body h3 { font-size: 1rem; margin: 4px 0 0; line-height: 1.35; }
.pcard__body h3 a:hover { color: var(--red); }
.more-wrap { text-align: center; margin-top: 36px; }

/* ── giới thiệu ──────────────────────────────────────────────────────────── */
.about { display: grid; gap: 44px; align-items: center; }
.about__media { position: relative; }
.about__media::before { content: ''; position: absolute; inset: 22px -18px -18px 22px; border-radius: var(--radius); background: var(--red); z-index: 0; transition: transform .6s var(--ease); }
.about__media:hover::before { transform: translate(6px, 6px); }
.about__media img { position: relative; z-index: 1; border-radius: var(--radius); width: 100%; box-shadow: var(--shadow-lg); }
.about__tag { position: absolute; z-index: 2; left: -10px; bottom: 28px; background: var(--ink); color: #fff; padding: 14px 20px; border-radius: 14px; font-weight: 700; display: flex; align-items: center; gap: 10px; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.about__tag svg { color: var(--red); }
.about h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 14px 0 16px; }
.about p { color: var(--muted); }
.checks { display: grid; gap: 12px; margin: 22px 0 30px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.checks .i { color: #fff; background: var(--red); border-radius: 50%; width: 24px; height: 24px; padding: 5px; margin-top: 2px; }

/* ── bài viết ────────────────────────────────────────────────────────────── */
.post-grid { display: grid; gap: 22px; }
.post { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; display: flex; flex-direction: column; transition: transform .45s var(--ease), box-shadow .45s; }
.post:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.post__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.post__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post:hover .post__img img { transform: scale(1.08); }
.post__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post__meta { display: flex; gap: 12px; align-items: center; font-size: .8rem; color: var(--muted); }
.post__meta b { color: var(--red); text-transform: uppercase; letter-spacing: .05em; }
.post h3 { font-size: 1.1rem; margin: 10px 0 8px; line-height: 1.35; }
.post h3 a:hover { color: var(--red); }
.post p { color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post__more { margin-top: auto; display: inline-flex; align-items: center; gap: .4em; font-weight: 700; color: var(--red); }
.post__more svg { transition: transform .3s var(--ease); }
.post:hover .post__more svg { transform: translateX(6px); }
.post--wide { flex-direction: row; }

/* ── CTA báo giá ─────────────────────────────────────────────────────────── */
.cta { position: relative; overflow: hidden; background: linear-gradient(120deg, var(--red-700), var(--red) 55%, #ff5a36); color: #fff; padding: 64px 0; isolation: isolate; }
.cta::before { content: ''; position: absolute; inset: -40%; z-index: -1; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .06) 0 10deg, transparent 10deg 20deg); animation: spin 90s linear infinite; }
.cta .container { display: grid; gap: 34px; align-items: center; }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 4.5vw, 2.7rem); }
.cta p { color: rgba(255, 255, 255, .9); max-width: 520px; }
.cta__phones { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.cta__phone { display: inline-flex; align-items: center; gap: .6em; background: #fff; color: var(--red); font-weight: 800; font-size: 1.2rem; padding: .7em 1.3em; border-radius: 999px; box-shadow: 0 14px 28px -12px rgba(0, 0, 0, .45); transition: transform .3s var(--ease); }
.cta__phone:hover { transform: translateY(-3px) scale(1.03); }
.cta__phone .i { animation: ring 2.4s ease-in-out infinite; transform-origin: 50% 50%; }
.qform { background: #fff; color: var(--text); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow-lg); display: grid; gap: 12px; }
.qform h3 { margin: 0 0 4px; font-size: 1.2rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: .85rem; color: var(--ink); }
.field input, .field textarea { width: 100%; padding: .85em 1.1em; border-radius: 12px; border: 1.5px solid var(--line); background: var(--soft); font: inherit; color: var(--ink); transition: border-color .25s, background .25s, box-shadow .25s; }
.field input:focus, .field textarea:focus { outline: 0; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(238, 28, 37, .12); }
.field textarea { resize: vertical; min-height: 110px; }

/* ── trang danh mục / sản phẩm ───────────────────────────────────────────── */
.listing { display: grid; gap: 34px; }
.side-card { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; padding: 22px; }
.side-card h3 { font-size: 1.05rem; padding-bottom: 12px; margin-bottom: 8px; border-bottom: 2px solid var(--red); display: inline-block; }
.side-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 4px; font-weight: 600; font-size: .94rem; border-bottom: 1px dashed var(--line); transition: color .25s, padding .3s var(--ease); }
.side-list a:hover, .side-list a.is-on { color: var(--red); padding-left: 10px; }
.side-list li:last-child a { border-bottom: 0; }
.side-cta { background: var(--ink); color: #fff; border: 0; text-align: center; position: relative; overflow: hidden; }
.side-cta::before { content: ''; position: absolute; width: 220px; height: 220px; right: -80px; top: -90px; border-radius: 50%; background: var(--red); filter: blur(30px); opacity: .6; }
.side-cta > * { position: relative; }
.side-cta h3 { color: #fff; border-color: var(--red); }
.side-cta p { color: #c7cad3; font-size: .92rem; }
.side-cta .big { display: block; font-size: 1.3rem; font-weight: 800; margin: 6px 0; color: #fff; }
.side-cta .big:hover { color: var(--red); }
.side-stack { display: grid; gap: 20px; align-content: start; }
.empty { padding: 60px 20px; text-align: center; color: var(--muted); border: 2px dashed var(--line); border-radius: var(--radius); }

.pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 40px; }
.pager a, .pager span { min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px; display: inline-grid; place-items: center; border: 1px solid var(--line); font-weight: 700; transition: .3s var(--ease); }
.pager a:hover { border-color: var(--red); color: var(--red); transform: translateY(-2px); }
.pager .is-cur { background: var(--red); color: #fff; border-color: var(--red); }
.pager .is-gap { border: 0; }

/* ── chi tiết sản phẩm ───────────────────────────────────────────────────── */
.pd { display: grid; gap: 34px; align-items: start; }
.gallery { position: relative; }
.gallery__main { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--soft); border: 1px solid var(--line); cursor: zoom-in; aspect-ratio: 4 / 3; }
.gallery__main img { width: 100%; height: 100%; object-fit: contain; transition: transform .25s ease-out; transform-origin: var(--zx, 50%) var(--zy, 50%); }
.gallery__main:hover img { transform: scale(1.7); }
.gallery__hint { position: absolute; right: 14px; bottom: 14px; z-index: 2; background: rgba(15, 17, 21, .75); color: #fff; padding: .4em .9em; border-radius: 999px; font-size: .8rem; display: inline-flex; gap: .4em; align-items: center; pointer-events: none; }
.thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.thumbs button { width: 78px; height: 62px; border-radius: 12px; overflow: hidden; border: 2px solid var(--line); padding: 0; background: var(--soft); transition: border-color .25s, transform .25s; }
.thumbs button.is-on, .thumbs button:hover { border-color: var(--red); transform: translateY(-3px); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd__info .pcard__cat { display: inline-block; margin-bottom: 8px; }
.pd__info h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.pd__lead { color: var(--muted); }
.pd__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0; }
.info-card { border-radius: var(--radius); background: var(--soft); padding: 22px 24px; display: grid; gap: 12px; }
.info-card h3 { font-size: 1rem; margin: 0; }
.info-row { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; }
.info-row .i { color: var(--red); margin-top: .25em; }
.info-row a:hover { color: var(--red); }
.pd__rte { margin-top: 44px; }
.related { margin-top: 64px; }

/* ── nội dung bài / trang (rte) ──────────────────────────────────────────── */
.rte { font-size: 1.04rem; line-height: 1.8; }
.rte h2, .rte h3 { margin: 1.6em 0 .6em; }
.rte h2 { font-size: 1.6rem; }
.rte h3 { font-size: 1.25rem; }
.rte img { border-radius: var(--radius-sm); margin: 1.2em auto; cursor: zoom-in; box-shadow: var(--shadow); }
.rte a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rte ul { list-style: disc; padding-left: 1.3em; margin-bottom: 1em; }
.rte table { width: 100%; border-collapse: collapse; margin: 1em 0; }
.rte td, .rte th { padding: .6em .8em; border: 1px solid var(--line); }
.rte iframe { max-width: 100%; }
.rte [style*="color"] { color: inherit !important; }
.rte strong { color: var(--ink); }
.nx-video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink); margin: 1.4em 0; box-shadow: var(--shadow-lg); }
.nx-video button { position: absolute; inset: 0; width: 100%; border: 0; background: radial-gradient(circle at 50% 50%, rgba(238, 28, 37, .35), rgba(15, 17, 21, .9)); color: #fff; display: grid; place-items: center; }
.nx-video button span { width: 84px; height: 84px; border-radius: 50%; background: var(--red); display: grid; place-items: center; box-shadow: 0 0 0 0 rgba(238, 28, 37, .6); animation: ripple 2s infinite; }
.nx-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.article { display: grid; gap: 34px; }
.article__cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; box-shadow: var(--shadow); }
.article__meta { display: flex; flex-wrap: wrap; gap: 14px; color: #9aa0ae; font-size: .9rem; margin-top: 14px; }
.share { display: flex; gap: 10px; align-items: center; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); font-weight: 700; }
.share a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: .3s var(--ease); }
.share a:hover { background: var(--red); border-color: var(--red); color: #fff; transform: translateY(-3px); }

/* ── trang liên hệ ───────────────────────────────────────────────────────── */
.contact-cards { display: grid; gap: 16px; margin-bottom: 40px; }
.ccard { border-radius: var(--radius); background: #fff; border: 1px solid var(--line); padding: 24px; display: flex; gap: 16px; transition: .4s var(--ease); }
.ccard:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.ccard__ico { width: 52px; height: 52px; border-radius: 16px; background: var(--red-50); color: var(--red); display: grid; place-items: center; flex: none; transition: .3s; }
.ccard:hover .ccard__ico { background: var(--red); color: #fff; }
.ccard h3 { font-size: 1rem; margin: 0 0 4px; }
.ccard p, .ccard a { margin: 0; color: var(--muted); font-size: .95rem; display: block; }
.ccard a:hover { color: var(--red); }
.contact-grid { display: grid; gap: 28px; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 320px; border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }
.branches { display: grid; gap: 14px; margin-top: 22px; }
.branch { padding: 18px 20px; border-left: 4px solid var(--red); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--soft); }
.branch b { display: block; color: var(--ink); }

/* ── bộ ảnh xưởng + lightbox ─────────────────────────────────────────────── */
.rte.is-gallery img { display: inline-block; width: calc(50% - 8px); margin: 4px; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .5s var(--ease), box-shadow .4s; }
.rte.is-gallery img:hover { transform: scale(1.04); box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.lb { position: fixed; inset: 0; z-index: 500; background: rgba(8, 9, 12, .94); display: none; align-items: center; justify-content: center; padding: 56px 16px; opacity: 0; transition: opacity .3s; }
.lb.is-open { display: flex; opacity: 1; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 40px 80px rgba(0, 0, 0, .6); animation: zoomin .4s var(--ease); }
.lb button { position: absolute; border: 0; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; transition: background .25s, transform .25s; }
.lb button:hover { background: var(--red); transform: scale(1.1); }
.lb__x { top: 14px; right: 14px; }
.lb__p { left: 14px; top: 50%; margin-top: -24px; }
.lb__n { right: 14px; top: 50%; margin-top: -24px; }
.lb__cap { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; color: #c7cad3; font-size: .9rem; padding: 0 70px; }

/* ── chân trang ──────────────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: #aeb3c0; position: relative; overflow: hidden; }
.site-footer::before { content: ''; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -280px; border-radius: 50%; background: var(--red); filter: blur(120px); opacity: .22; }
.footer-grid { display: grid; gap: 38px; padding: 64px 0 44px; position: relative; }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 18px; position: relative; padding-bottom: 12px; }
.site-footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--red); }
.site-footer li { margin-bottom: 10px; }
.site-footer a:hover { color: #fff; }
.flinks a { display: inline-flex; align-items: center; gap: .5em; transition: transform .3s var(--ease), color .25s; }
.flinks a:hover { transform: translateX(6px); color: var(--red); }
.fcontact li { display: flex; gap: 12px; }
.fcontact .i { color: var(--red); margin-top: .3em; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 20px 0; font-size: .88rem; position: relative; }
.footer-bottom .container { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-logo img { height: 52px; width: auto; margin-bottom: 16px; }
.footer-logo-plate { display: inline-block; background: #fff; border-radius: 14px; padding: 8px 14px; margin-bottom: 16px; }
.footer-logo-plate img { margin: 0; height: 44px; }

/* ── nút nổi + thanh dưới di động ────────────────────────────────────────── */
.fab { position: fixed; right: 18px; bottom: 90px; z-index: 150; display: grid; gap: 12px; }
.fab a, .fab button { width: 54px; height: 54px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; background: var(--red); box-shadow: 0 14px 28px -8px rgba(238, 28, 37, .7); position: relative; transition: transform .3s var(--ease); }
.fab a:hover, .fab button:hover { transform: scale(1.1); }
.fab a::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--red); z-index: -1; animation: ripple 2s infinite; }
.fab .fab-top { background: var(--ink); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(14px); }
.fab .fab-top.is-on { opacity: 1; visibility: visible; transform: none; }
.mbar { position: fixed; z-index: 140; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1fr 1fr; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -14px rgba(15, 17, 21, .4); padding-bottom: env(safe-area-inset-bottom); }
.mbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; font-size: .74rem; font-weight: 700; color: var(--ink); }
.mbar a .i { width: 22px; height: 22px; color: var(--red); }
.mbar a.is-main { background: var(--red); color: #fff; }
.mbar a.is-main .i { color: #fff; }
body { padding-bottom: 62px; }

/* ── hiệu ứng xuất hiện khi cuộn ─────────────────────────────────────────── */
.js .rv { opacity: 0; transform: translateY(34px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.js .rv.is-in { opacity: 1; transform: none; }
.js .rv--l { transform: translateX(-40px); }
.js .rv--r { transform: translateX(40px); }
.js .rv--z { transform: scale(.92); }
.nx-notice { margin: 16px 0; padding: 14px 18px; border-radius: 14px; background: #ecfdf3; color: #067647; border: 1px solid #abefc6; font-weight: 600; }
.nx-notice--loi { background: var(--red-50); color: var(--red-700); border-color: #ffc9cc; }
.err { text-align: center; padding: 90px 0; }
.err h1 { font-size: clamp(3rem, 10vw, 6rem); margin: 0; }

@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(238, 28, 37, .6); } 70%, 100% { box-shadow: 0 0 0 10px rgba(238, 28, 37, 0); } }
@keyframes ripple { 0% { box-shadow: 0 0 0 0 rgba(238, 28, 37, .55); } 80%, 100% { box-shadow: 0 0 0 22px rgba(238, 28, 37, 0); } }
@keyframes ring { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(-16deg); } 20%, 40% { transform: rotate(16deg); } 50% { transform: rotate(-8deg); } }
@keyframes zoomin { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── điểm ngắt ───────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .cat-tile { aspect-ratio: 4 / 3.7; }
    .pgrid { grid-template-columns: repeat(3, 1fr); }
    .post-grid { grid-template-columns: repeat(2, 1fr); }
    .usp-grid { grid-template-columns: repeat(3, 1fr); }
    .contact-cards { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.4fr 1fr 1.2fr; }
    .rte.is-gallery img { width: calc(33.333% - 8px); }
}
@media (min-width: 960px) {
    :root { --header-h: 84px; }
    .nav { display: flex; }
    .burger { display: none; }
    .header-cta { display: none; }
    .hero .container { grid-template-columns: 1.05fr .95fr; }
    .hero { padding: 90px 0 120px; }
    .hero__art { min-height: 480px; }
    .section { padding: 96px 0; }
    .about { grid-template-columns: 1fr 1fr; gap: 72px; }
    .cta .container { grid-template-columns: 1.1fr .9fr; }
    .listing { grid-template-columns: 290px 1fr; }
    .listing--right { grid-template-columns: 1fr 320px; }
    .side-sticky { position: sticky; top: calc(var(--header-h) + 20px); }
    .pd { grid-template-columns: 1.05fr .95fr; gap: 54px; }
    .article { grid-template-columns: 1fr 320px; gap: 44px; }
    .contact-grid { grid-template-columns: 1fr 1fr; }
    .mbar { display: none; }
    body { padding-bottom: 0; }
    .fab { bottom: 24px; }
    .page-hero { padding: 80px 0 64px; }
}
@media (min-width: 1200px) {
    .pgrid { grid-template-columns: repeat(4, 1fr); }
    .listing .pgrid { grid-template-columns: repeat(3, 1fr); }
    .post-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; }
}
@media (max-width: 959px) {
    .topbar__social, .topbar__info .hide-m { display: none; }
    .hero__card { width: 62%; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
    .js .rv { opacity: 1; transform: none; }
}

.header-cta { white-space: nowrap; }
@media (min-width: 1280px) { .nav > li > a { padding: 10px 14px; font-size: .95rem; } }
@media (min-width: 1200px) { .header-cta { display: inline-flex; } }
