/* ===== Stavex Vertex – giao diện website ===== */
:root {
  --red: #E3262E; --blue: #1D6FE0; --dark: #0F1F3D;
  --grad: linear-gradient(90deg, var(--red), var(--blue));
  --text: #1c2536; --muted: #667085; --line: #e6e9f0; --bg-alt: #f5f7fb;
  --radius: 10px; --shadow: 0 6px 24px rgba(15, 31, 61, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Arial, sans-serif; color: var(--text); background: #fff; font-size: 15px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; color: var(--dark); }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 22px; border-radius: 8px; font-weight: 700; font-size: 14px; border: 2px solid transparent; cursor: pointer; transition: .2s; font-family: inherit; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { filter: brightness(.92); box-shadow: 0 6px 16px color-mix(in srgb, var(--red) 35%, transparent); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { filter: brightness(.92); }
.btn-outline { border-color: var(--blue); color: var(--blue); background: #fff; }
.btn-outline:hover { background: var(--blue); color: #fff; }
.btn-block { display: flex; width: 100%; }

/* Admin bar */
.adminbar { background: #111827; color: #e5e7eb; font-size: 13px; padding: 6px 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adminbar b { color: #fbbf24; }
.adminbar a { color: #93c5fd; font-weight: 600; }

/* Topbar */
.topbar { background: var(--dark); color: #cfd6e4; font-size: 13px; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; min-height: 36px; gap: 16px; }
.topbar-text { font-weight: 600; letter-spacing: .3px; color: #fff; }
.topbar-links { display: flex; gap: 20px; }
.topbar-links a:hover { color: #fff; }

/* Header */
.header { background: #fff; }
.header-in { display: flex; align-items: center; gap: 28px; padding: 12px 16px; }
.logo img { height: 76px; width: auto; }
.search { flex: 1; display: flex; max-width: 560px; margin-left: auto; border: 2px solid var(--blue); border-radius: 40px; overflow: hidden; }
.search input { flex: 1; border: 0; padding: 11px 18px; font: inherit; outline: none; min-width: 0; }
.search button { border: 0; background: var(--blue); color: #fff; padding: 0 20px; cursor: pointer; }
.hotline-box { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.hotline-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; animation: ring 2.2s infinite; }
.hotline-box small { display: block; color: var(--muted); font-size: 12px; }
.hotline-box b { color: var(--red); font-size: 19px; }
@keyframes ring { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--red) 45%, transparent); } 50% { box-shadow: 0 0 0 10px transparent; } }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--dark); }

/* Nav */
.nav { background: var(--dark); position: sticky; top: 0; z-index: 50; }
.nav::after { content: ""; display: block; height: 3px; background: var(--grad); }
.nav-in { display: flex; align-items: stretch; }
.nav-cats { position: relative; width: 250px; flex-shrink: 0; }
.nav-cats-btn { display: flex; align-items: center; height: 100%; padding: 14px 20px; background: var(--red); color: #fff; font-weight: 700; text-transform: uppercase; font-size: 14px; }
.mega { display: none; position: absolute; top: 100%; left: 0; width: 270px; background: #fff; list-style: none; margin: 0; padding: 6px 0; box-shadow: var(--shadow); border: 1px solid var(--line); border-top: 0; }
.nav-cats:hover .mega { display: block; }
.mega > li > a { display: flex; justify-content: space-between; padding: 10px 18px; font-weight: 500; }
.mega > li:hover > a { color: var(--red); background: var(--bg-alt); }
.mega-sub { display: none; position: absolute; left: 100%; top: 0; min-height: 100%; width: 640px; background: #fff; padding: 20px 24px; box-shadow: var(--shadow); border: 1px solid var(--line); grid-template-columns: repeat(3, 1fr); gap: 8px 24px; align-content: start; }
.mega > li:hover .mega-sub { display: grid; }
.mega-col a { display: block; padding: 3px 0; color: var(--muted); font-size: 14px; }
.mega-col a.mega-h { color: var(--dark); font-weight: 700; }
.mega-col a:hover { color: var(--red); }
.menu { display: flex; list-style: none; margin: 0; padding: 0 0 0 8px; flex-wrap: wrap; }
.menu > li { position: relative; }
.menu > li > a { display: block; padding: 14px 13px; white-space: nowrap; color: #e6ebf5; font-weight: 600; font-size: 14px; text-transform: uppercase; }
.menu > li > a:hover, .menu > li > a.active { color: #fff; background: rgba(255,255,255,.08); box-shadow: inset 0 -3px 0 var(--red); }
.menu .sub { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; background: #fff; list-style: none; margin: 0; padding: 6px 0; box-shadow: var(--shadow); }
.menu .has-sub:hover .sub { display: block; }
.menu .sub a { display: block; padding: 9px 18px; }
.menu .sub a:hover { color: var(--red); background: var(--bg-alt); }
.nav-backdrop { display: none; }

/* Hero slider */
.hero { position: relative; min-height: 440px; overflow: hidden; background: var(--dark); }
.slide { position: absolute; inset: 0; display: flex; align-items: center; opacity: 0; transition: opacity .8s; background: radial-gradient(circle at 85% 30%, color-mix(in srgb, var(--blue) 70%, transparent), transparent 45%), radial-gradient(circle at 70% 90%, color-mix(in srgb, var(--red) 60%, transparent), transparent 40%), var(--dark); background-size: cover; background-position: center; }
.slide.has-img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 20, 40, .82), rgba(10, 20, 40, .2)); }
.slide.active { opacity: 1; z-index: 1; }
.slide-in { position: relative; color: #fff; max-width: 1240px; }
.slide h1 { color: #fff; font-size: clamp(28px, 4.4vw, 50px); font-weight: 800; max-width: 720px; margin-bottom: 14px; }
.slide p { font-size: 18px; max-width: 600px; color: #dbe3f2; margin: 0 0 26px; }
.dots { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 2; }
.dots button { width: 12px; height: 12px; border-radius: 12px; border: 0; background: rgba(255,255,255,.45); cursor: pointer; transition: .3s; }
.dots button.active { width: 34px; background: #fff; }

/* Stats */
.stats { background: #fff; position: relative; z-index: 3; }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; box-shadow: var(--shadow); border-radius: var(--radius); margin-top: -46px; overflow: hidden; }
.stat { padding: 22px 16px; text-align: center; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 32px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-weight: 500; font-size: 14px; }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: var(--bg-alt); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 26px; gap: 16px; }
.sec-head h2 { font-size: 26px; font-weight: 800; text-transform: uppercase; margin: 0; position: relative; padding-bottom: 10px; }
.sec-head h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 70px; height: 4px; border-radius: 4px; background: var(--grad); }
.sec-head.center { justify-content: center; text-align: center; }
.sec-head.center h2::after { left: 50%; transform: translateX(-50%); }
.sec-head a { color: var(--blue); font-weight: 600; white-space: nowrap; }
.sec-head a:hover { color: var(--red); }
.eyebrow { color: var(--red); font-weight: 700; text-transform: uppercase; font-size: 13px; letter-spacing: 1px; }

/* Category tiles */
.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.cat-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 12px; text-align: center; transition: .25s; }
.cat-tile:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-img { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 10px; border-radius: 50%; background: var(--bg-alt); overflow: hidden; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; }
.cat-img i { font-style: normal; font-size: 34px; font-weight: 800; color: #fff; width: 100%; height: 100%; display: grid; place-items: center; background: var(--grad); }
.cat-name { font-weight: 600; font-size: 14px; color: var(--dark); }

/* About */
.about-in { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.about-logo { background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 40px; display: grid; place-items: center; }
.about-logo img { max-width: 340px; box-shadow: none; }
.about-text h2 { font-size: 30px; font-weight: 800; }
.rich { overflow-wrap: break-word; }
.rich img { border-radius: 8px; margin: 12px 0; height: auto; }
.rich h2 { font-size: 22px; margin-top: 1.2em; }
.rich h3 { font-size: 18px; margin-top: 1em; }
.rich table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.rich td, .rich th { border: 1px solid var(--line); padding: 8px 10px; }
.rich a { color: var(--blue); text-decoration: underline; }
.rich blockquote { border-left: 4px solid var(--red); margin: 12px 0; padding: 6px 16px; background: var(--bg-alt); }
.rich iframe { max-width: 100%; }
.rich .ql-align-center { text-align: center; } .rich .ql-align-right { text-align: right; } .rich .ql-align-justify { text-align: justify; }
.rich .ql-align-center img { margin-left: auto; margin-right: auto; }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: .25s; position: relative; }
.card:hover { box-shadow: var(--shadow); border-color: transparent; transform: translateY(-3px); }
.card-img { position: relative; aspect-ratio: 1; background: #fff; display: block; overflow: hidden; border-bottom: 1px solid var(--line); }
.card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card-img img[src$=".svg"] { object-fit: contain; padding: 12px; }
.card:hover .card-img img { transform: scale(1.05); }
.badge-sale { position: absolute; top: 10px; left: 10px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.badge-draft { position: absolute; top: 10px; right: 10px; background: #f59e0b; color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.card-body { padding: 14px 14px 6px; flex: 1; }
.card-cat { display: inline-block; font-size: 11px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.card-title { font-size: 15px; font-weight: 600; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.card-title a:hover { color: var(--red); }
.card-price b { color: var(--red); font-size: 17px; }
.card-price del { color: var(--muted); font-size: 13px; margin-left: 4px; }
.card-price small { color: var(--muted); }
.card-btn { margin: 8px 14px 14px; text-align: center; padding: 8px; border-radius: 6px; border: 1px solid var(--line); font-weight: 600; font-size: 13px; color: var(--dark); transition: .2s; }
.card:hover .card-btn { background: var(--red); color: #fff; border-color: var(--red); }

/* Why */
.why { background: var(--dark); color: #fff; position: relative; overflow: hidden; }
.why::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 10% 20%, color-mix(in srgb, var(--red) 35%, transparent), transparent 40%), radial-gradient(circle at 90% 80%, color-mix(in srgb, var(--blue) 45%, transparent), transparent 40%); }
.why .container { position: relative; }
.why .sec-head h2 { color: #fff; }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 32px 26px; text-align: center; backdrop-filter: blur(4px); transition: .25s; }
.why-card:hover { transform: translateY(-4px); background: rgba(255,255,255,.1); }
.why-ico { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad); font-size: 32px; }
.why-card h3 { color: #fff; text-transform: uppercase; font-size: 18px; }
.why-card p { color: #c9d2e3; margin: 0; }

/* Projects */
.proj-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.proj { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; background: var(--bg-alt); }
.proj img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.proj:hover img { transform: scale(1.07); }
.proj figcaption { position: absolute; inset: auto 0 0 0; padding: 30px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(10, 20, 40, .85)); }
.proj figcaption b, .proj figcaption span, .proj figcaption em { display: block; }
.proj figcaption span { font-size: 13px; color: #cfd8ea; }
.proj figcaption em { font-size: 13px; font-style: normal; color: #e5eaf3; }

/* Testimonials */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.testi { margin: 0; background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border-top: 4px solid; border-image: var(--grad) 1; }
.stars { color: #f5a623; letter-spacing: 2px; }
.testi p { font-style: italic; color: #3b4558; }
.testi footer { display: flex; align-items: center; gap: 12px; }
.testi footer img, .avatar { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 700; }
.testi footer small { display: block; color: var(--muted); }

/* Posts */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: .25s; display: flex; flex-direction: column; }
.post-card:hover { box-shadow: var(--shadow); }
.post-img { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.post-card:hover .post-img img { transform: scale(1.05); }
.post-ph { display: block; width: 100%; height: 100%; background: var(--grad); opacity: .85; }
.post-ph.sm { width: 72px; height: 54px; border-radius: 6px; flex-shrink: 0; }
.post-body { padding: 16px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.post-body time { color: var(--muted); font-size: 13px; }
.post-body h3 { font-size: 17px; margin: 4px 0 8px; }
.post-body h3 a:hover { color: var(--red); }
.post-body p { color: var(--muted); margin: 0 0 12px; flex: 1; }
.more { color: var(--blue); font-weight: 600; }

/* Partners */
.partner-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.partner-row a { width: 160px; height: 90px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; place-items: center; padding: 12px; background: #fff; filter: grayscale(1); opacity: .75; transition: .25s; }
.partner-row a:hover { filter: none; opacity: 1; }
.partner-row img { max-height: 100%; object-fit: contain; }

/* CTA / contact */
.cta { background: var(--grad); color: #fff; }
.cta-in { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.cta-text h2 { color: #fff; font-size: 32px; font-weight: 800; }
.cta-text p { color: rgba(255,255,255,.9); font-size: 17px; }
.cta-phone { display: inline-block; margin-top: 10px; background: #fff; color: var(--red); font-weight: 800; font-size: 22px; padding: 10px 24px; border-radius: 40px; }
.cta-form { background: #fff; color: var(--text); padding: 26px; border-radius: var(--radius); box-shadow: 0 20px 40px rgba(0,0,0,.18); }
.contact-form label { display: block; font-weight: 600; font-size: 13px; margin-bottom: 12px; color: var(--dark); }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; border: 1px solid #d0d5dd; border-radius: 8px; font: inherit; font-weight: 400; }
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid color-mix(in srgb, var(--blue) 35%, transparent); border-color: var(--blue); }
.cf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute !important; left: -9999px !important; }
.alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-weight: 500; }
.alert.ok { background: #e7f8ee; color: #136c3a; border: 1px solid #b6e7c9; }
.alert.err { background: #fdecec; color: #a11b1b; border: 1px solid #f5c2c2; }
.alert.warn { background: #fff6e0; color: #8a5a00; border: 1px solid #f9dc9b; }
.contact-page { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-box { background: var(--bg-alt); padding: 28px; border-radius: var(--radius); }

/* Page head / breadcrumbs */
.page-head { background: linear-gradient(90deg, color-mix(in srgb, var(--red) 8%, #fff), color-mix(in srgb, var(--blue) 10%, #fff)); padding: 26px 0; border-bottom: 1px solid var(--line); }
.page-head.slim { padding: 12px 0; }
.page-head h1 { margin: 4px 0 0; font-size: 28px; font-weight: 800; }
.crumbs { font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--red); }

/* Shop */
.shop { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding-top: 32px; padding-bottom: 56px; }
.sidebar h3 { font-size: 16px; text-transform: uppercase; padding: 12px 16px; margin: 0; background: var(--dark); color: #fff; border-radius: 8px 8px 0 0; }
.side-cats { list-style: none; margin: 0 0 20px; padding: 6px 0; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; }
.side-cats a { display: block; padding: 8px 16px; font-weight: 500; }
.side-cats ul { list-style: none; padding: 0 0 4px 14px; margin: 0; }
.side-cats ul a { font-size: 14px; font-weight: 400; color: var(--muted); padding: 4px 16px; }
.side-cats li.active > a, .side-cats a:hover { color: var(--red); }
.side-box { background: var(--bg-alt); border-radius: 8px; padding: 16px; text-align: center; }
.side-box b { display: block; margin-bottom: 10px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 14px; }
.toolbar select { padding: 8px 12px; border: 1px solid #d0d5dd; border-radius: 8px; font: inherit; }
.cat-desc { color: var(--muted); }
.empty { padding: 40px; text-align: center; background: var(--bg-alt); border-radius: var(--radius); color: var(--muted); }
.empty a { color: var(--blue); font-weight: 600; }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 30px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; padding: 0 8px; }
.pager a.active, .pager a:hover { background: var(--red); color: #fff; border-color: var(--red); }

/* Product detail */
.pd { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 28px 0; }
.pd-main { border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; background: #fff; overflow: hidden; position: relative; }
.pd-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pd-thumbs button { width: 76px; height: 76px; padding: 4px; border: 2px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.pd-thumbs button.active { border-color: var(--red); }
.pd-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.pd-info h1 { font-size: 28px; font-weight: 800; }
.pd-meta { list-style: none; padding: 0; margin: 0 0 14px; color: var(--muted); }
.pd-meta b { color: var(--dark); }
.pd-price { background: var(--bg-alt); padding: 14px 18px; border-radius: 8px; margin-bottom: 14px; }
.pd-price b { color: var(--red); font-size: 28px; font-weight: 800; }
.pd-price del { color: var(--muted); margin-left: 6px; }
.pd-short { color: #3b4558; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.pd-commit { list-style: none; padding: 16px 18px; margin: 0; border: 1px dashed var(--blue); border-radius: 8px; color: #2a3a55; }
.pd-commit li { padding: 2px 0; }
.pd-content { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 24px 24px; }
.tab-title { display: inline-block; font-size: 16px; text-transform: uppercase; padding: 12px 0; margin: 0 0 12px; border-bottom: 3px solid var(--red); }

/* Article */
.article-wrap { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding-top: 28px; padding-bottom: 56px; }
.article h1 { font-size: 32px; font-weight: 800; }
.article.full { max-width: 900px; margin: 0 auto; }
.article-meta { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.article-cover { border-radius: var(--radius); margin-bottom: 18px; width: 100%; }
.lead { font-size: 17px; font-weight: 500; color: #3b4558; }
.side-posts { list-style: none; padding: 8px 0; margin: 0 0 20px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 8px 8px; }
.side-posts a { display: flex; gap: 10px; padding: 8px 12px; font-size: 14px; font-weight: 500; }
.side-posts a:hover { color: var(--red); }
.side-posts img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; flex-shrink: 0; }
.side-posts small { display: block; color: var(--muted); font-weight: 400; }
.empty-page { text-align: center; padding: 80px 16px; }
.empty-page h1 { font-size: 90px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin: 0; }

/* Footer */
.footer { background: #0b1730; color: #b9c3d6; font-size: 14px; }
.footer-strip { height: 4px; background: var(--grad); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr 1fr; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.f-logo { background: #fff; padding: 10px 14px; border-radius: 8px; height: 86px; width: auto; margin-bottom: 14px; }
.footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; margin-bottom: 14px; position: relative; padding-bottom: 8px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; background: var(--red); }
.f-info, .f-links { list-style: none; padding: 0; margin: 0; }
.f-info li { margin-bottom: 8px; }
.f-info b { color: #fff; }
.f-info.dark b { color: var(--dark); }
.f-info a:hover, .f-links a:hover { color: #fff; }
.f-info.dark a { color: var(--blue); }
.f-links li { margin-bottom: 7px; }
.f-links a::before { content: "› "; color: var(--red); }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; font-weight: 800; }
.socials a:hover { background: var(--red); }
.f-map { width: 100%; height: 280px; border: 0; border-radius: var(--radius); margin-bottom: 24px; }
.copyright { border-top: 1px solid rgba(255,255,255,.08); padding: 16px 0; font-size: 13px; text-align: center; }

/* Floating contact */
.float-contact { position: fixed; left: 18px; bottom: 22px; z-index: 60; display: flex; flex-direction: column; gap: 10px; }
.fc { width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.2); font-weight: 800; font-size: 13px; position: relative; }
.fc-zalo { background: #0068ff; }
.fc-mess { background: linear-gradient(45deg, #0099ff, #a033ff); }
.fc-phone { background: var(--red); animation: ring 2s infinite; }
.fc-label { position: absolute; left: 60px; background: var(--red); color: #fff; padding: 6px 14px; border-radius: 30px; white-space: nowrap; font-size: 15px; }
.to-top { position: fixed; right: 18px; bottom: 22px; z-index: 60; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font-size: 20px; cursor: pointer; opacity: 0; pointer-events: none; transition: .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .proj-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .topbar-links { display: none; }
  .nav-toggle { display: block; }
  .header-in { flex-wrap: wrap; gap: 12px; }
  .logo img { height: 56px; }
  .search { order: 3; flex-basis: 100%; max-width: none; }
  .hotline-box { margin-left: auto; }
  .hotline-box small { display: none; }
  .hotline-box b { font-size: 16px; }
  .hotline-icon { width: 38px; height: 38px; }
  .nav { position: fixed; top: 0; left: 0; bottom: 0; width: 290px; transform: translateX(-100%); transition: transform .3s; overflow-y: auto; z-index: 100; }
  .nav.open { transform: none; }
  .nav::after { display: none; }
  .nav-in { flex-direction: column; padding: 0; }
  .nav-cats { width: 100%; order: 2; }
  .nav-cats-btn { padding: 14px 18px; }
  .mega { display: block; position: static; width: 100%; box-shadow: none; border: 0; background: transparent; }
  .mega > li > a { color: #dbe3f2; }
  .mega > li:hover > a { background: rgba(255,255,255,.05); }
  .mega-sub { display: none !important; }
  .menu { flex-direction: column; padding: 0; order: 1; }
  .menu > li > a { padding: 13px 18px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .menu .sub { display: block; position: static; background: transparent; box-shadow: none; padding: 0 0 6px 12px; }
  .menu .sub a { color: #b9c3d6; padding: 6px 18px; }
  .nav-backdrop.open { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; }
  .hero { min-height: 360px; }
  .stats-in { grid-template-columns: repeat(2, 1fr); margin-top: -30px; }
  .stat:nth-child(2) { border-right: 0; }
  .stat { border-bottom: 1px solid var(--line); }
  .about-in, .cta-in, .contact-page, .pd, .article-wrap { grid-template-columns: 1fr; gap: 28px; }
  .shop { grid-template-columns: 1fr; }
  .shop .sidebar { order: 2; }
  .grid, .grid-3 { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid { grid-template-columns: 1fr; }
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 40px 0; }
  .fc-label { display: none; }
}
@media (max-width: 560px) {
  .post-grid, .footer-grid { grid-template-columns: 1fr; }
  .cf-row { grid-template-columns: 1fr; gap: 0; }
  .sec-head h2 { font-size: 20px; }
  .cat-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .cat-img { width: 64px; height: 64px; }
  .cat-img i { font-size: 24px; }
  .cat-tile { padding: 12px 6px; }
  .cat-name { font-size: 12px; }
  .card-body { padding: 10px 10px 4px; }
  .card-title { font-size: 14px; }
  .card-btn { margin: 6px 10px 10px; }
  .stat b { font-size: 24px; }
  .slide p { font-size: 15px; }
  .pd-info h1, .article h1 { font-size: 22px; }
  .pd-actions .btn { flex: 1 1 100%; }
}

/* ===== Bổ sung: hồ sơ chất lượng, lĩnh vực, quy trình, công trình, sơ đồ tổ chức ===== */
.badge-docs { position: absolute; left: 10px; bottom: 10px; background: color-mix(in srgb, var(--blue) 92%, #000); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 4px; letter-spacing: .3px; }
.card-price b { font-size: 15px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 8px 14px 14px; }
.card-actions .card-btn { margin: 0; }
.card-btn.quote { background: var(--red); color: #fff; border-color: var(--red); }
.card:hover .card-btn { background: #fff; color: var(--dark); border-color: var(--line); }
.card:hover .card-btn.quote, .card-btn.quote:hover { background: var(--red); color: #fff; border-color: var(--red); filter: brightness(.95); }
.card-btn:hover { border-color: var(--blue); color: var(--blue); }
.pd-price span { color: var(--muted); }
.pd-price small { display: block; color: var(--muted); margin-top: 2px; }
.pd-price b { font-size: 24px; }
.pd-docs { border: 2px solid var(--blue); border-radius: 10px; padding: 14px 18px; margin: 0 0 14px; background: color-mix(in srgb, var(--blue) 5%, #fff); }
.pd-docs ul { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px 10px; }
.pd-docs li { background: #fff; border: 1px solid color-mix(in srgb, var(--blue) 30%, #fff); color: var(--blue); font-weight: 700; padding: 3px 10px; border-radius: 20px; font-size: 13px; }
.pd-docs small { color: var(--muted); }
.pd-docs a { color: var(--blue); font-weight: 600; }

.quality { background: linear-gradient(180deg, #fff, var(--bg-alt)); padding-top: 72px; }
.quality-head { text-align: center; max-width: 820px; margin: 0 auto 30px; }
.quality-head h2 { font-size: 28px; font-weight: 800; }
.quality-head p { color: var(--muted); }
.quality-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.q-card { background: #fff; border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.q-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--grad); }
.q-badge { display: inline-block; font-size: 20px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 6px; }
.q-card p { margin: 0; color: #3b4558; font-size: 14px; }
.center-cta { text-align: center; margin-top: 26px; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field-card { background: #fff; border-radius: var(--radius); padding: 28px; border-top: 5px solid var(--red); box-shadow: var(--shadow); }
.field-card.blue { border-top-color: var(--blue); }
.field-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.field-ico { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: color-mix(in srgb, var(--red) 10%, #fff); }
.field-card.blue .field-ico { background: color-mix(in srgb, var(--blue) 10%, #fff); }
.field-top small { color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: 1px; font-size: 11px; }
.field-top h3 { margin: 0; font-size: 20px; }
.field-card ul { padding-left: 0; list-style: none; margin: 0 0 14px; }
.field-card li { padding: 6px 0 6px 24px; position: relative; border-bottom: 1px dashed var(--line); }
.field-card li::before { content: "▪"; position: absolute; left: 6px; color: var(--red); }
.field-card.blue li::before { color: var(--blue); }

.why-grid { grid-template-columns: repeat(4, 1fr); }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.steps li { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); position: relative; }
.step-no { font-size: 34px; font-weight: 800; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.steps h3 { font-size: 16px; margin: 8px 0 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 14px; }

a.proj { display: block; }
.proj-grid.three { grid-template-columns: repeat(3, 1fr); }
.pj-status { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.pj-list { display: grid; gap: 28px; }
.pj-card { display: grid; grid-template-columns: 1.1fr 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.pj-card:nth-child(even) .pj-card-img { order: 2; }
.pj-card-img { position: relative; display: block; min-height: 300px; }
.pj-card-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pj-card-body { padding: 28px; }
.pj-card-body h3 { font-size: 22px; }
.pj-card-body h3 a:hover { color: var(--red); }
.pj-facts { list-style: none; padding: 0; margin: 0 0 14px; color: #3b4558; }
.pj-facts li { padding: 3px 0; }
.muted-line { color: var(--muted); margin: 4px 0 8px; }
.pj { display: grid; grid-template-columns: 1fr 340px; gap: 36px; align-items: start; }
.pj-cover { width: 100%; border-radius: var(--radius); margin-bottom: 20px; max-height: 620px; object-fit: cover; }
.pj-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pj-gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; transition: .3s; }
.pj-gallery a:hover img { filter: brightness(1.08); transform: scale(1.01); }
.pj-info { position: sticky; top: 70px; background: var(--bg-alt); border-radius: var(--radius); padding: 22px; border-top: 4px solid var(--red); }
.pj-info h3 { text-transform: uppercase; font-size: 16px; }
.pj-info dl { margin: 0 0 18px; }
.pj-info dt { font-size: 12px; text-transform: uppercase; color: var(--muted); font-weight: 700; letter-spacing: .5px; margin-top: 10px; }
.pj-info dd { margin: 2px 0 0; font-weight: 500; }

.org-title { margin-top: 40px; }
.org { display: flex; flex-direction: column; align-items: center; margin: 20px 0 10px; }
.org-node { padding: 14px 28px; border-radius: 10px; color: #fff; font-weight: 800; text-transform: uppercase; text-align: center; min-width: 260px; }
.org-node.top { background: var(--dark); }
.org-node.mid { background: var(--grad); }
.org-line { width: 3px; height: 26px; background: var(--line); }
.org-units { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; width: 100%; padding-top: 18px; border-top: 3px solid var(--line); }
.org-unit { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue); border-radius: 8px; padding: 14px; text-align: center; }
.org-unit:nth-child(odd) { border-top-color: var(--red); }
.org-unit b { display: block; color: var(--dark); margin-bottom: 4px; }
.org-unit span { color: var(--muted); font-size: 13px; }

@media (max-width: 1100px) {
  .quality-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .org-units { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .fields, .pj, .pj-card { grid-template-columns: 1fr; }
  .pj-card:nth-child(even) .pj-card-img { order: 0; }
  .pj-card-img { min-height: 220px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .proj-grid.three { grid-template-columns: repeat(2, 1fr); }
  .pj-info { position: static; }
}
@media (max-width: 560px) {
  .quality-grid, .why-grid, .steps, .org-units, .pj-gallery { grid-template-columns: 1fr; }
  .quality-head h2 { font-size: 22px; }
  .org-node { min-width: 0; width: 100%; }
  .card-actions { margin: 6px 10px 10px; grid-template-columns: 1fr; }
}
/* ===== Hồ sơ năng lực ===== */
.hs-intro { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; margin-bottom: 36px; align-items: start; }
.hs-note { background: var(--bg-alt); border-radius: var(--radius); padding: 22px; border-left: 4px solid var(--red); }
.hs-note p { color: var(--muted); }
.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.doc-img { display: block; aspect-ratio: 3/4; background: var(--bg-alt); overflow: hidden; border-bottom: 1px solid var(--line); }
.doc-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .4s; }
.doc:hover .doc-img img { transform: scale(1.03); }
.doc-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.doc-body h3 { font-size: 17px; margin: 4px 0 8px; }
.doc-body p { color: var(--muted); font-size: 14px; flex: 1; }
.doc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.doc-actions .btn { padding: 8px 14px; }
.menu .sub a.sub-main { font-weight: 600; }
@media (max-width: 900px) { .hs-intro { grid-template-columns: 1fr; } .doc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .doc-grid { grid-template-columns: 1fr; } }