/* ===== QueenHome – giao diện theo mẫu visionrealty.vn, màu trắng – đỏ QueenHome ===== */
:root {
  --primary: #C8102E; --dark: #5C0A14; --accent: #FF8A95; --light: #FFF5F5; --text: #4A3639;
  --bg: #FFFFFF; --cream: #FFF7F7; --muted: #7D6A6C; --line: #F0DFE1; --white: #fff; --radius: 14px;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Prata', Georgia, serif;
  --shadow: 0 18px 50px rgba(120, 10, 25, .12);
  --wrap: 1220px; --topbar-h: 80px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--text); background: var(--cream); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; color: var(--dark); line-height: 1.2; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.loading { padding: 140px 20px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.center { text-align: center; }
.acc { color: var(--primary); }
.serif { font-family: var(--font-head); font-weight: 400; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(34px); transition: opacity .9s ease, transform .9s ease; }
.rv.in { opacity: 1; transform: none; }
.edit-on .rv { opacity: 1; transform: none; }

/* Buttons – pill */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; font: inherit; font-weight: 600;
  padding: 12px 26px; border-radius: 999px; background: var(--primary); color: #fff; transition: transform .2s, box-shadow .2s, background .2s; font-size: 15px; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(200, 16, 46, .28); }
.btn.white { background: #fff; color: var(--primary); text-transform: uppercase; font-weight: 700; letter-spacing: .3px; }
.btn.yellow { background: var(--accent); color: var(--dark); }
.btn.ghost { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.btn.sm { padding: 7px 14px; font-size: 13px; }
.btn.danger { background: #D93B3B; color: #fff; }
.btn.plain { background: var(--light); color: var(--dark); }
.btn.blue { background: var(--primary); color: #fff; }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.link-arrow { color: var(--primary); font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: '⟶'; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* Header */
#topbar { position: sticky; top: 0; z-index: 50; background: rgba(255, 247, 247, .96); backdrop-filter: blur(8px); box-shadow: 0 2px 14px rgba(90, 8, 20, .06); }
#topbar .wrap { display: flex; align-items: center; gap: 18px; height: var(--topbar-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--primary); white-space: nowrap; }
.brand img { height: 40px; width: auto; }
.brand .logo-mark { display: flex; align-items: center; gap: 10px; font-family: 'Oswald', 'Inter', sans-serif; font-weight: 700; letter-spacing: 1px; font-size: 17px; text-transform: uppercase; }
.brand .logo-mark svg { height: 30px; width: auto; }
.nav { display: flex; gap: 34px; margin-left: auto; align-items: center; }
.nav a { color: var(--primary); font-weight: 500; font-size: 16px; position: relative; padding: 6px 0; }
.nav a.active { color: var(--dark); }
.nav a::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--accent); transition: width .25s; }
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav a.off { opacity: .45; text-decoration: line-through; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.burger { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--primary); }
.acct { position: relative; }
.acct-menu { position: absolute; right: 0; top: 46px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); min-width: 210px; padding: 6px; }
.acct-menu a, .acct-menu button { display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--text); background: none; border: 0; font: inherit; cursor: pointer; }
.acct-menu a:hover, .acct-menu button:hover { background: var(--light); }
#editbar { position: sticky; top: 0; z-index: 60; background: var(--dark); color: #fff; font-size: 14px; }
#editbar .wrap { display: flex; gap: 10px; align-items: center; min-height: 40px; flex-wrap: wrap; }
#editbar label { display: flex; gap: 6px; align-items: center; cursor: pointer; }
#editbar a { color: var(--accent); font-weight: 600; }
body.has-editbar #topbar { top: 40px; }

/* Section base */
.sec { position: relative; padding: 100px 0; overflow: hidden; }
.sec.bg-white { background: #fff; }
.sec.bg-light, .sec.bg-cream { background: var(--cream); }
.sec.bg-blue { background: var(--primary); color: #fff; }
.sec.bg-dark { background: var(--dark); color: #fff; }
.sec.bg-image { background-size: cover; background-position: center; }
.sec.pad-sm { padding: 60px 0; } .sec.pad-lg { padding: 130px 0; }
.h2 { font-family: var(--font-head); font-size: clamp(30px, 3.6vw, 48px); font-weight: 400; color: var(--dark); line-height: 1.25; margin: 0 0 18px; }
.h2 em { font-style: normal; color: var(--primary); }
.h2 i { font-family: 'Dancing Script', var(--font-head); font-style: normal; color: var(--primary); font-weight: 700; font-size: 1.12em; }
.h2.center { text-align: center; }
.sec.bg-blue .h2, .sec.bg-dark .h2, .sec.bg-image .h2 { color: #fff; }
.sec.bg-blue .h2 em, .sec.bg-dark .h2 em { color: var(--accent); }
.desc { font-size: 15px; color: var(--text); max-width: 760px; }
.desc b, .desc strong { color: var(--primary); font-weight: 600; }
.center .desc, .desc.center { margin-left: auto; margin-right: auto; text-align: center; }
.stripes { position: absolute; top: 0; bottom: 0; width: 22%; pointer-events: none;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(200, 16, 46, .07) 22px 23px); mask-image: linear-gradient(90deg, transparent, #000 60%, transparent); }
.stripes.r { right: 0; } .stripes.l { left: 0; }
.glow { position: absolute; border-radius: 50%; filter: blur(70px); background: radial-gradient(circle, rgba(230, 60, 80, .22), transparent 70%); pointer-events: none; }
.ph { background: linear-gradient(135deg, #E0485D, var(--primary) 45%, var(--dark)); display: grid; place-items: center; color: rgba(255,255,255,.6); overflow: hidden; width: 100%; height: 100%; min-height: 220px; }
.ph svg { width: 62%; max-width: 360px; opacity: .85; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.md-body h3 { font-family: var(--font-head); font-weight: 400; margin-top: 1.2em; }
.md-body ul { padding-left: 1.2em; }

/* HERO (slider + partners) */
.v-hero { position: relative; height: min(810px, calc(100vh - var(--topbar-h))); min-height: 560px; color: #fff; overflow: hidden; background: var(--dark); display: flex; align-items: flex-end; }
.v-hero .slide { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.4s ease, transform 7s ease; transform: scale(1.06); }
.v-hero .slide.on { opacity: 1; transform: scale(1); }
.v-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(55, 6, 14, .15) 0%, rgba(55, 6, 14, .35) 50%, rgba(55, 6, 14, .72) 100%); }
.v-hero .wrap { position: relative; z-index: 2; width: 100%; padding-bottom: 70px; }
.v-hero h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(46px, 6.4vw, 90px); color: #fff; margin: 0 0 14px; line-height: 1.05; }
.v-hero h1 em { font-style: italic; color: var(--accent); }
.v-hero p { max-width: 560px; font-size: 15px; color: rgba(255,255,255,.92); margin: 0; }
.v-hero .partners { display: flex; gap: 56px; margin-top: 64px; flex-wrap: wrap; }
.v-hero .partners span { font-weight: 800; text-transform: uppercase; letter-spacing: .5px; font-size: 18px; opacity: .95; }
.v-hero .dots { position: absolute; right: 24px; bottom: 34px; z-index: 3; display: flex; gap: 8px; }
.v-hero .dots button { width: 9px; height: 9px; border-radius: 99px; border: 0; background: rgba(255,255,255,.5); cursor: pointer; padding: 0; transition: width .3s; }
.v-hero .dots button.on { background: var(--accent); width: 26px; }
.v-hero .ph-bg { position: absolute; inset: 0; }

/* PAGE INTRO (sub pages) */
.v-intro { padding: 80px 0 30px; text-align: center; }
.v-intro h1 { font-family: var(--font-head); font-weight: 400; font-size: clamp(32px, 4vw, 52px); }
.v-intro p { max-width: 640px; margin: 0 auto 26px; }
.v-search { display: flex; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 999px; box-shadow: var(--shadow); padding: 6px; }
.v-search input { flex: 1; border: 0; padding: 12px 18px; font: inherit; font-size: 16px; background: transparent; outline: none; }
.v-search button { width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; font-size: 18px; cursor: pointer; }

/* ABOUT (centered) */
.v-about { text-align: center; }
.v-about .h2 { max-width: 820px; margin-left: auto; margin-right: auto; }
.v-about .desc { margin: 0 auto 14px; text-align: center; }
.v-about .btn { margin-top: 16px; }
.v-about .photo { position: relative; max-width: 940px; margin: 70px auto 0; aspect-ratio: 16 / 9; box-shadow: 0 40px 120px rgba(200, 16, 46, .22); }
.v-about .photo .ph, .v-about .photo img { height: 100%; }

/* FEATURED – card stack */
.v-feat { display: grid; grid-template-columns: 1fr 1.25fr; gap: 50px; align-items: center; min-height: 640px; }
.v-feat .info .desc { max-width: 380px; }
.v-feat .pname { font-family: 'Oswald', 'Inter', sans-serif; font-weight: 700; color: var(--primary); font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; text-transform: uppercase; margin: 60px 0 6px; max-width: 420px; transition: opacity .4s; }
.v-feat .ploc { font-size: 14px; color: var(--text); transition: opacity .4s; }
.v-feat .fade { opacity: 0; }
.deck { position: relative; width: min(450px, 100%); aspect-ratio: 3 / 4; margin: 0 auto; touch-action: pan-y; }
.deck::before { content: ''; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(circle, rgba(230, 60, 80, .25), transparent 65%); filter: blur(30px); z-index: 0; }
.deck .dcard { position: absolute; inset: 0; transition: transform .7s cubic-bezier(.2,.8,.2,1), opacity .7s; box-shadow: 0 20px 50px rgba(70, 6, 16, .25); cursor: pointer; background: #ccd; overflow: hidden; display: block; }
.deck .dcard img, .deck .dcard .ph { width: 100%; height: 100%; object-fit: cover; }
.deck .dcard[data-pos="0"] { z-index: 5; transform: none; }
.deck .dcard[data-pos="1"] { z-index: 4; transform: translateX(7%) rotate(4deg) scale(.96); }
.deck .dcard[data-pos="2"] { z-index: 3; transform: translateX(13%) rotate(8deg) scale(.92); opacity: .85; }
.deck .dcard[data-pos="hide"] { z-index: 1; transform: translateX(16%) rotate(10deg) scale(.9); opacity: 0; }
.deck .dcard[data-pos="out"] { z-index: 6; transform: translateX(-120%) rotate(-14deg); opacity: 0; }

/* PORTFOLIO – tabs + marquee */
.v-port .tabs { display: flex; gap: 28px; margin: 10px 0 34px; flex-wrap: wrap; }
.v-port .tabs button { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 15px; color: var(--text); cursor: pointer; border-bottom: 2px solid transparent; }
.v-port .tabs button.on { color: var(--primary); border-color: var(--primary); font-weight: 600; }
.marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: mq 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pcard { position: relative; width: 300px; aspect-ratio: 3 / 3.6; flex: 0 0 auto; overflow: hidden; color: #fff; display: block; }
.pcard img, .pcard .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.pcard:hover img, .pcard:hover .ph { transform: scale(1.06); }
.pcard::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(80, 7, 18, .78)); }
.pcard .t { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 2; font-weight: 600; font-size: 16px; line-height: 1.3; }
.pcard .t small { display: block; font-weight: 400; font-size: 13px; opacity: .85; }
.v-port .more { text-align: center; margin-top: 38px; }
.pgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.pgrid .pcard { width: auto; }

/* ACHIEVEMENTS – star carousel */
.v-ach .h2 { text-align: center; }
.v-ach .h2 em { color: var(--primary); }
.stars-wrap { position: relative; height: 300px; margin-top: 40px; overflow: hidden; }
.stars-track { position: absolute; left: 50%; top: 0; height: 100%; display: flex; align-items: center; transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.star-item { width: 250px; flex: 0 0 250px; height: 250px; position: relative; display: grid; place-items: center; transition: transform .8s, opacity .8s; opacity: .35; transform: scale(.72); }
.star-item.on { opacity: 1; transform: scale(1.12); }
.star-item svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.star-item .lb { position: relative; z-index: 2; text-align: center; margin-top: 30px; }
.star-item .lb b { display: block; font-family: var(--font-head); font-size: 38px; color: var(--primary); line-height: 1; letter-spacing: 1px; }
.star-item .lb small { display: block; font-size: 12px; color: var(--text); max-width: 130px; margin: 8px auto 0; line-height: 1.35; }
.star-item .lb img { height: 34px; width: auto; margin: 6px auto 0; }

/* CTA banner */
.v-cta { position: relative; min-height: 660px; display: flex; align-items: center; overflow: hidden; background: linear-gradient(110deg, #FDECEE 0%, #F6D5D9 45%, #F0BCC3 100%); }
.v-cta .bgimg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.v-cta::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(255, 247, 247, .92) 0%, rgba(255, 247, 247, .55) 40%, rgba(255, 247, 247, 0) 70%); }
.v-cta .wrap { position: relative; z-index: 2; width: 100%; }
.v-cta .h2 { max-width: 520px; color: var(--primary); }
.v-cta .bld { position: absolute; right: 6%; bottom: 0; height: 92%; width: 46%; z-index: 1; display: flex; align-items: flex-end; justify-content: center; }
.v-cta .bld svg { height: 100%; width: auto; }

/* VALUES – wave timeline */
.v-values .h2 { text-align: center; }
.v-values .h2 span { display: block; }
.v-values .h2 span:first-child { color: var(--primary); }
.wave-box { position: relative; margin-top: 50px; }
.wave-box svg.wave { position: absolute; left: -5%; width: 110%; top: 50%; height: 200px; transform: translateY(-50%); overflow: visible; }
.wave-grid { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto 250px auto; }
.wave-item { padding: 0 10px; position: relative; }
.wave-item.top { grid-row: 1; align-self: end; padding-bottom: 14px; }
.wave-item.bot { grid-row: 3; align-self: start; padding-top: 14px; }
.wave-item .no { position: absolute; right: 8px; top: -26px; font-family: var(--font-head); font-size: 76px; line-height: 1; background: linear-gradient(180deg, var(--primary), rgba(200, 16, 46, .12)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wave-item.bot .no { top: -6px; }
.wave-item h3 { font-family: var(--font-body); font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .3px; margin: 0 0 8px; position: relative; }
.wave-item p { font-size: 13.5px; margin: 0; max-width: 180px; position: relative; }
.wave-node { grid-row: 2; align-self: center; justify-self: center; width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 6px 22px rgba(200, 16, 46, .25); display: grid; place-items: center; font-size: 22px; color: var(--primary); position: relative; z-index: 2; }

/* REASONS – image bg */
.v-reasons { position: relative; min-height: 660px; display: flex; align-items: center; color: #fff; background: var(--dark); background-size: cover; background-position: center; }
.v-reasons::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(55, 6, 14, .78), rgba(55, 6, 14, .55)); }
.v-reasons .wrap { position: relative; z-index: 2; width: 100%; }
.v-reasons .h2 { color: #fff; text-align: center; max-width: 900px; margin: 0 auto 90px; }
.v-reasons .h2 em { color: var(--accent); }
.v-reasons .cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; max-width: 1000px; margin: 0 auto; }
.v-reasons .col { display: flex; gap: 16px; align-items: flex-start; }
.v-reasons .ic { font-size: 30px; color: var(--accent); flex: 0 0 auto; line-height: 1; }
.v-reasons h3 { color: #fff; font-family: var(--font-body); font-size: 15px; font-weight: 700; margin: 0 0 8px; }
.v-reasons p { font-size: 14px; color: rgba(255,255,255,.88); margin: 0; }

/* TESTIMONIALS – bubbles */
.v-testi .h2 span { display: block; } .v-testi .h2 span:first-child { color: var(--primary); }
.v-testi .row { display: grid; grid-template-columns: 300px 1fr; gap: 40px; margin-top: 40px; align-items: start; }
.v-testi .quote { font-family: Georgia, serif; font-size: 200px; line-height: .7; color: #D4C3C5; height: 120px; }
.v-testi .who-lbl { font-family: var(--font-head); font-size: 28px; color: var(--primary); line-height: 1.3; margin-top: 30px; }
.v-testi .bubbles { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.v-testi .bubbles::-webkit-scrollbar { display: none; }
.bubble-item { scroll-snap-align: start; }
.bubble { background: #F6D5D9; padding: 24px 22px; font-size: 13.5px; line-height: 1.65; text-align: justify; min-height: 290px; position: relative; color: var(--dark); }
.bubble::after { content: ''; position: absolute; left: 0; bottom: -26px; border-top: 26px solid #F6D5D9; border-right: 34px solid transparent; }
.bubble-who { display: flex; align-items: center; gap: 12px; margin-top: 38px; }
.bubble-who .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 14px; background: var(--primary); }
.bubble-who b { display: block; font-weight: 500; font-size: 14px; color: var(--dark); }
.bubble-who .st { color: var(--accent); font-size: 12px; letter-spacing: 1px; }
.testi-nav { display: flex; gap: 10px; margin-top: 24px; }
.testi-nav button { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--primary); background: #fff; color: var(--primary); cursor: pointer; font-size: 16px; }

/* FAQ – 2 col */
.v-faq { display: grid; grid-template-columns: 1fr 1.45fr; gap: 60px; }
.v-faq .lbl { font-size: 14px; color: var(--muted); letter-spacing: 1px; margin-bottom: 10px; }
.v-faq .h2 { font-size: clamp(30px, 3.4vw, 46px); }
.v-faq .mail { color: var(--primary); font-size: 14px; }
.v-faq details { border-bottom: 1px solid #D4C3C5; }
.v-faq summary { list-style: none; cursor: pointer; padding: 22px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 16px; color: var(--dark); }
.v-faq summary::-webkit-details-marker { display: none; }
.v-faq summary::after { content: '+'; font-size: 26px; font-weight: 300; line-height: .8; color: var(--dark); transition: transform .3s; }
.v-faq details[open] summary::after { transform: rotate(45deg); }
.v-faq details > div { padding: 0 0 22px; font-size: 14.5px; color: var(--text); }

/* CONTACT – striped blue */
.v-contact { position: relative; padding: 90px 0; color: #fff; background-color: #8E0E1F;
  background-image: linear-gradient(rgba(0,0,0,.12), rgba(0,0,0,.12)), repeating-linear-gradient(90deg, rgba(255,255,255,0) 0 38px, rgba(255,255,255,.045) 38px 76px); }
.v-contact .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.v-contact .h2 { color: #fff; }
.v-contact .it { margin-top: 30px; font-size: 14px; opacity: .9; }
.v-contact .it b { display: block; font-size: 16px; font-weight: 700; opacity: 1; margin-top: 6px; color: #fff; }
.v-contact .it a { color: #fff; }
.v-contact .card { background: rgba(45, 5, 12, .28); border-radius: 18px; padding: 34px 32px; }
.v-contact .card h3 { color: #fff; font-family: var(--font-body); font-size: 17px; font-weight: 600; text-align: center; margin-bottom: 8px; }
.v-contact .card > p { text-align: center; font-size: 14px; opacity: .85; }
.uline .field { margin-bottom: 8px; }
.uline .field label { display: none; }
.uline .field input, .uline .field textarea, .uline .field select { background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.55); border-radius: 0; color: #fff; padding: 14px 0; font-size: 15px; }
.uline .field input::placeholder, .uline .field textarea::placeholder { color: rgba(255,255,255,.8); }
.uline .field select option { color: #000; }
.uline .field input:focus, .uline .field textarea:focus { box-shadow: none; border-color: var(--accent); }
.uline .field.check label { display: block; color: rgba(255,255,255,.85); font-size: 13px; }
.uline .field.check a { color: var(--accent); }
.uline .actions { text-align: right; margin-top: 16px; }

/* forms (generic) */
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; color: var(--dark); }
.field input, .field textarea, .field select { width: 100%; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 16px; background: #fff; color: var(--text); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200, 16, 46,.12); }
.field textarea { min-height: 90px; resize: vertical; }
.field input[type=color] { padding: 4px; height: 44px; }
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.field.check label { display: block; font-weight: 500; }
.field.check input { width: auto; margin: 0 6px 0 0; vertical-align: -2px; }
.img-field { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.img-field img { height: 64px; width: auto; max-width: 140px; border-radius: 8px; border: 1px solid var(--line); object-fit: cover; }
.img-field input[type=text] { flex: 1; min-width: 160px; }
.list-field { border: 1px dashed var(--line); border-radius: 12px; padding: 10px; }
.list-item { border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 10px; background: var(--light); }
.list-item .li-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-weight: 700; font-size: 13px; color: var(--muted); }
.list-item .li-head button { margin-left: 4px; }
.popup-form .field label { display: none; }
.popup-form .field input, .popup-form .field textarea, .popup-form .field select { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 12px 0; }
.popup-form .field input:focus, .popup-form .field textarea:focus { box-shadow: none; border-color: var(--primary); }
.popup-form .actions { margin-top: 14px; }
.form-card { background: #fff; color: var(--text); border-radius: 18px; padding: 30px; box-shadow: var(--shadow); }
.form-card h3 { font-family: var(--font-head); font-weight: 400; }

/* PROJECT SEARCH bar */
.v-psearch { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr auto; align-items: center; background: #fff; border-radius: 999px; box-shadow: 0 10px 40px rgba(200, 16, 46, .18); border: 1px solid rgba(200, 16, 46, .25); padding: 10px 10px 10px 26px; max-width: 900px; margin: -46px auto 0; position: relative; z-index: 5; }
.v-psearch label { display: block; padding: 0 16px; border-right: 1px solid var(--line); font-size: 12.5px; color: var(--dark); }
.v-psearch label:first-child { padding-left: 0; }
.v-psearch label:nth-child(4) { border: 0; }
.v-psearch input, .v-psearch select { display: block; width: 100%; border: 0; padding: 4px 0 0; font: inherit; font-size: 14px; background: transparent; color: var(--text); outline: none; }
.v-psearch button { width: 54px; height: 54px; border-radius: 50%; border: 0; background: var(--primary); color: #fff; font-size: 20px; cursor: pointer; }
.v-presults { margin-top: 80px; }
.v-presults .h2 { text-align: center; text-transform: uppercase; }

/* NEWS */
.news-hero { position: relative; aspect-ratio: 21 / 8; overflow: hidden; color: #fff; margin-bottom: 40px; background: var(--dark); }
.news-hero .nh { position: absolute; inset: 0; opacity: 0; transition: opacity 1s; display: block; color: #fff; }
.news-hero .nh.on { opacity: 1; z-index: 1; }
.news-hero .nh img, .news-hero .nh .ph { width: 100%; height: 100%; object-fit: cover; }
.news-hero .nh::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(60, 6, 14, .85)); }
.news-hero .cap { position: absolute; left: 34px; right: 34px; bottom: 30px; z-index: 2; }
.news-hero .cap h2 { color: #fff; font-family: var(--font-head); font-weight: 400; font-size: clamp(22px, 2.6vw, 34px); max-width: 760px; margin: 6px 0 0; }
.news-hero .nav2 { position: absolute; right: 24px; bottom: 30px; z-index: 3; display: flex; gap: 8px; }
.news-hero .nav2 button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid #fff; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.ndate { font-size: 13px; color: var(--primary); }
.news-hero .ndate { color: var(--accent); }
.ngrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ncard { display: block; color: var(--text); }
.ncard .m { aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 14px; }
.ncard .m img, .ncard .m .ph { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ncard:hover .m img, .ncard:hover .m .ph { transform: scale(1.05); }
.ncard h3 { font-family: var(--font-head); font-weight: 400; font-size: 20px; margin: 4px 0 8px; color: var(--dark); }
.ncard p { font-size: 14px; color: var(--text); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* JOBS */
.td-banner { aspect-ratio: 21 / 7; overflow: hidden; margin: 30px 0 50px; }
.td-banner img, .td-banner .ph { width: 100%; height: 100%; object-fit: cover; }
.jobs { display: grid; gap: 14px; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; background: #fff; padding: 22px 26px; border-left: 4px solid var(--primary); box-shadow: 0 4px 18px rgba(120, 10, 25, .06); color: var(--text); }
.job h3 { font-family: var(--font-head); font-weight: 400; font-size: 22px; margin: 0 0 6px; }
.job .meta { font-size: 14px; display: flex; gap: 20px; flex-wrap: wrap; }
.td-empty { text-align: center; padding: 30px 0 10px; }
.td-empty .h2 { font-size: 30px; }

/* ABOUT PAGE */
.v-story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.v-story .eyebrow, .eyebrow { display: block; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--primary); margin-bottom: 12px; font-weight: 600; }
.v-story .big { font-family: var(--font-head); font-size: clamp(28px, 3.2vw, 42px); color: var(--dark); line-height: 1.25; margin-bottom: 18px; white-space: pre-line; }
.v-story .pic { aspect-ratio: 4 / 5; overflow: hidden; }
.v-mission { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.v-mission .mc { background: #fff; padding: 34px 28px; box-shadow: 0 10px 36px rgba(120, 10, 25, .08); border-top: 3px solid var(--primary); }
.v-mission .mc h3 { font-family: var(--font-head); font-weight: 400; font-size: 24px; color: var(--primary); }
.v-mission .mc p { font-size: 14.5px; margin: 0; }

/* PROJECT DETAIL (landing) */
.pd-hero { position: relative; height: min(720px, calc(100vh - var(--topbar-h))); min-height: 520px; display: flex; align-items: flex-end; justify-content: center; text-align: center; color: #fff; overflow: hidden; background: var(--dark); }
.pd-hero .bg { position: absolute; inset: 0; } .pd-hero .bg img, .pd-hero .bg .ph { width: 100%; height: 100%; object-fit: cover; }
.pd-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(55, 6, 14, .2), rgba(55, 6, 14, .78)); }
.pd-hero .pd-in { position: relative; z-index: 2; padding: 0 24px 80px; max-width: 980px; }
.pd-hero .ey { font-size: 12.5px; letter-spacing: 3px; text-transform: uppercase; color: var(--accent); }
.pd-hero h1 { font-family: var(--font-head); font-weight: 400; color: #fff; font-size: clamp(42px, 6vw, 84px); margin: 10px 0 12px; line-height: 1.05; }
.pd-hero h1 em { font-style: italic; color: var(--accent); }
.pd-hero p { max-width: 560px; margin: 0 auto 26px; font-size: 15px; opacity: .92; }
.pd-sec .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.pd-sec .grid2.rev > :first-child { order: 2; }
.pd-sec .pic { aspect-ratio: 4 / 3; overflow: hidden; } .pd-sec .pic img, .pd-sec .pic .ph { width: 100%; height: 100%; object-fit: cover; }
.pd-sec .t2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 3.2vw, 44px); color: var(--dark); line-height: 1.2; }
.pd-values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: var(--line); margin-top: 40px; }
.pd-values > div { background: #fff; padding: 30px 24px; }
.pd-values .n { font-family: var(--font-head); font-size: 44px; color: var(--primary); line-height: 1; }
.pd-values h3 { font-family: var(--font-body); font-size: 16px; font-weight: 700; margin: 14px 0 8px; }
.pd-values p { font-size: 14px; margin: 0; }
.pd-tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 24px 0 30px; }
.pd-tabs button { border: 1.5px solid var(--primary); background: #fff; color: var(--primary); padding: 9px 20px; border-radius: 999px; font: inherit; cursor: pointer; font-weight: 600; font-size: 14px; }
.pd-tabs button.on { background: var(--primary); color: #fff; }
.pd-plan { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.pd-plan .pic { aspect-ratio: 4 / 3; background: #fff; } .pd-plan .pic img { object-fit: contain; }
.pd-amen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.pd-amen .a { position: relative; aspect-ratio: 1; overflow: hidden; color: #fff; }
.pd-amen .a img, .pd-amen .a .ph { width: 100%; height: 100%; object-fit: cover; min-height: 0; }
.pd-amen .a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(70, 6, 16,.8)); }
.pd-amen .a span { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 2; font-weight: 600; font-size: 14px; }
.pd-quote { font-family: var(--font-head); font-size: 22px; color: var(--primary); font-style: italic; border-left: 3px solid var(--accent); padding-left: 18px; margin: 16px 0; }
.pd-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; margin-top: 36px; }
.pd-gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.pd-gallery img:nth-child(5n+1) { grid-column: span 2; grid-row: span 2; }
.pd-book { background: var(--dark); color: #fff; }
.pd-book .t2 { color: #fff; }
.pd-book .card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.15); padding: 30px; border-radius: 18px; }
.embed { position: relative; padding-top: 56.25%; overflow: hidden; background: #000; }
.embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.spec { width: 100%; border-collapse: collapse; margin: 10px 0 20px; }
.spec td { padding: 10px 12px; border-bottom: 1px solid var(--line); }
.spec td:first-child { color: var(--muted); width: 40%; }
.detail { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
.sticky { position: sticky; top: calc(var(--topbar-h) + 20px); }
.page-hero { background: linear-gradient(120deg, var(--primary), var(--dark)); color: #fff; padding: 70px 0 60px; }
.page-hero h1 { color: #fff; font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 4vw, 46px); }
.crumb { font-size: 14px; opacity: .85; } .crumb a { color: var(--accent); }

/* FOOTER */
#footer { background: var(--cream); color: var(--text); padding: 40px 0 26px; font-size: 14.5px; }
#footer .fline { border-top: 1px solid var(--line); padding-top: 34px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 40px; }
.foot-brand { display: flex; gap: 26px; align-items: flex-start; }
.foot-brand .mk svg { width: 86px; height: auto; }
.foot-brand .mk img { width: 86px; height: auto; }
.foot-brand b { color: var(--primary); font-size: 15px; display: block; }
.foot-brand p { margin: 2px 0 14px; color: var(--dark); }
#footer h4 { font-family: var(--font-body); font-size: 14.5px; font-weight: 700; text-transform: uppercase; color: var(--dark); margin-bottom: 12px; }
#footer .col a { display: block; color: var(--text); padding: 4px 0; }
#footer .col a:hover { color: var(--primary); }
.socials { display: flex; gap: 8px; }
.socials a { width: 30px; height: 30px; border-radius: 6px; background: #FAE3E6; color: var(--primary); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.foot-bottom { border-top: 1px solid var(--line); margin-top: 30px; padding-top: 16px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--primary); }
.foot-bottom a { color: var(--primary); margin-left: 18px; }
.foot-disc { font-size: 12px; color: var(--muted); margin-top: 10px; }
/* Floating buttons */
.fab-stack { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 70; display: flex; flex-direction: column; gap: 12px; align-items: flex-end; }
.fab { width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.2); color: #fff; font-size: 24px; position: relative; }
.fab.zalo { background: #0068FF; font-weight: 800; font-size: 13px; }
.fab.call { background: #1BA94C; }
.fab.chat { background: var(--primary); }
.fab .dot { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; border-radius: 99px; background: #E53935; color: #fff; font-size: 11px; display: grid; place-items: center; padding: 0 4px; }
.fab.pulse::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: pulse 2s infinite; z-index: -1; }
@keyframes pulse { 0% { transform: scale(1); opacity: .6; } 100% { transform: scale(1.6); opacity: 0; } }
.zalo-box { text-align: center; }
.zalo-box img { width: 220px; height: 220px; object-fit: contain; margin: 10px auto; border: 1px solid var(--line); border-radius: 12px; }
.zalo-box .num { font-size: 26px; font-weight: 800; color: #0068FF; letter-spacing: 1px; }

/* Chat widget */
.chatbox { position: fixed; right: 18px; bottom: calc(88px + env(safe-area-inset-bottom)); width: 370px; max-width: calc(100vw - 24px); height: min(580px, calc(100vh - 120px)); background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(70, 6, 16,.3); z-index: 80; display: flex; flex-direction: column; overflow: hidden; }
.chat-head { background: linear-gradient(120deg, var(--primary), var(--dark)); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.chat-head .av { width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--dark); display: grid; place-items: center; font-weight: 800; }
.chat-head b { display: block; }
.chat-head small { opacity: .85; }
.chat-head button { margin-left: auto; background: none; border: 0; color: #fff; font-size: 24px; cursor: pointer; }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; background: var(--light); display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.msg.guest { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 4px; }
.msg.bot, .msg.admin { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.msg.admin { border-color: var(--accent); }
.msg .who { display: block; font-size: 11px; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.msg.guest .who { color: rgba(255,255,255,.75); }
.msg time { display: block; font-size: 10.5px; opacity: .6; margin-top: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; background: var(--light); }
.chips button { border: 1px solid var(--primary); background: #fff; color: var(--primary); border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input, .chat-form textarea { flex: 1; border: 1.5px solid var(--line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 16px; resize: none; }
.chat-form button { border: 0; background: var(--accent); color: var(--dark); border-radius: 12px; padding: 0 16px; font-weight: 800; cursor: pointer; }
.chat-intro { padding: 16px; display: flex; flex-direction: column; gap: 10px; }

/* Modal & toast */
.modal-bg { position: fixed; inset: 0; background: rgba(45, 5, 12,.55); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: #fff; border-radius: 18px; width: 100%; max-width: 620px; max-height: calc(100vh - 40px); display: flex; flex-direction: column; overflow: hidden; }
.modal.wide { max-width: 920px; }
.modal-head { display: flex; align-items: center; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { margin: 0; flex: 1; font-size: 18px; }
.modal-head .x { background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 10px; justify-content: flex-end; }
body.noscroll { overflow: hidden; }
#toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 24px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--dark); color: #fff; padding: 11px 18px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14.5px; }
.toast.err { background: #C62828; }

/* Section edit toolbar (admin in-place edit) */
.edit-on [data-sec] { outline: 2px dashed transparent; outline-offset: -6px; transition: outline-color .15s; }
.edit-on [data-sec]:hover { outline-color: var(--accent); }
.edit-on [data-sec].sec-off { opacity: .4; }
.sec-tools { position: absolute; top: 12px; right: 12px; z-index: 20; display: flex; gap: 4px; background: var(--dark); padding: 5px; border-radius: 10px; box-shadow: var(--shadow); }
.sec-tools button { background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 7px; padding: 6px 9px; cursor: pointer; font-size: 13px; font-family: inherit; }
.sec-tools button:hover { background: var(--accent); color: var(--dark); }
.sec-tools .lbl { color: var(--accent); font-size: 12px; font-weight: 700; padding: 6px 8px; }
.add-sec { text-align: center; padding: 18px; background: repeating-linear-gradient(45deg, #fff, #fff 10px, var(--light) 10px, var(--light) 20px); }
.type-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.type-grid button { border: 1.5px solid var(--line); background: #fff; border-radius: 12px; padding: 14px 10px; cursor: pointer; font: inherit; text-align: left; }
.type-grid button:hover { border-color: var(--primary); background: var(--light); }
.type-grid b { display: block; color: var(--dark); }
.type-grid small { color: var(--muted); }

/* Admin */
.adm { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - var(--topbar-h)); }
.admin-side { background: var(--dark); color: #fff; padding: 18px 12px; }
.admin-side a { display: flex; justify-content: space-between; color: rgba(255,255,255,.82); padding: 10px 12px; border-radius: 9px; font-weight: 500; font-size: 15px; }
.admin-side a.on, .admin-side a:hover { background: rgba(255,255,255,.1); color: var(--accent); }
.admin-side .grp { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; opacity: .5; padding: 14px 12px 4px; }
.admin-side .badge { background: #E53935; color: #fff; border-radius: 99px; font-size: 11px; padding: 1px 7px; }
.admin-main { padding: 26px; background: var(--light); min-width: 0; }
.admin-main h2 { font-size: 24px; }
.panel { background: #fff; border-radius: 14px; padding: 20px; box-shadow: 0 2px 10px rgba(90, 8, 20,.06); margin-bottom: 20px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .sp { flex: 1; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th, .tbl td { text-align: left; padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--light); color: var(--dark); }
.pill.new, .pill.open { background: #FFF3CD; color: #8A6100; }
.pill.ok, .pill.done, .pill.on { background: #DDF5E4; color: #13703A; }
.pill.off, .pill.closed { background: #EEE; color: #666; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi { background: #fff; border-radius: 14px; padding: 18px; border-left: 5px solid var(--accent); }
.kpi b { font-size: 30px; color: var(--primary); display: block; }
.inbox { display: grid; grid-template-columns: 320px 1fr; gap: 0; background: #fff; border-radius: 14px; overflow: hidden; height: calc(100vh - var(--topbar-h) - 120px); min-height: 480px; }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox-item { padding: 12px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.inbox-item:hover, .inbox-item.on { background: var(--light); }
.inbox-item b { display: flex; justify-content: space-between; gap: 6px; }
.inbox-item small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inbox-item.unread b::after { content: '●'; color: #E53935; }
.inbox-conv { display: flex; flex-direction: column; min-width: 0; }
.inbox-conv .conv-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.drag-list .drag-item { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.drag-item .grow { flex: 1; min-width: 0; }
.drag-item .grow small { color: var(--muted); display: block; }

/* Responsive */
@media (max-width: 1024px) {
  .g4, .g5 { grid-template-columns: repeat(2, 1fr); }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .feat-grid > :first-child { grid-column: span 2; grid-row: auto; }
  .portfolio { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .burger { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; top: var(--topbar-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 10px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
  .top-actions .btn.cta { display: none; }
  .split, .contact-grid, .calc { grid-template-columns: 1fr; gap: 30px; }
  .split.rev > :first-child { order: 0; }
  .g2, .g3 { grid-template-columns: 1fr; }
  .sec { padding: 56px 0; }
  .cta-banner { flex-direction: column; align-items: flex-start; padding: 34px 24px; }
  .adm { grid-template-columns: 1fr; }
  .admin-side { display: flex; overflow-x: auto; gap: 4px; padding: 8px; position: sticky; top: var(--topbar-h); z-index: 30; }
  .admin-side .grp { display: none; }
  .admin-side a { white-space: nowrap; flex: 0 0 auto; }
  .admin-main { padding: 14px; }
  .inbox { grid-template-columns: 1fr; height: auto; }
  .inbox.has-conv .inbox-list { display: none; }
  .inbox:not(.has-conv) .inbox-conv { display: none; }
  .inbox-conv { height: calc(100vh - var(--topbar-h) - 140px); }
  .tbl.cards thead { display: none; }
  .tbl.cards tr { display: block; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 8px; }
  .tbl.cards td { display: block; border: 0; padding: 4px 6px; }
  .tbl.cards td[data-l]::before { content: attr(data-l) ': '; color: var(--muted); font-size: 12.5px; }
  .type-grid { grid-template-columns: 1fr 1fr; }
  .modal-bg { padding: 0; }
  .modal { max-height: 100vh; height: 100%; border-radius: 0; max-width: none !important; }
  .chatbox { right: 0; bottom: 0; width: 100vw; max-width: 100vw; height: 100%; border-radius: 0; height: 100dvh; }
}
@media (max-width: 560px) {
  .hero { min-height: 560px; }
  .fab { width: 50px; height: 50px; font-size: 21px; }
  .fab-stack { right: 12px; gap: 10px; }
  .g4, .g5, .feat-grid, .portfolio, .foot-grid, .gallery { grid-template-columns: 1fr; }
  .feat-grid > :first-child { grid-column: auto; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .brand small { display: none; }
  .form-card { padding: 22px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .sec-tools { top: 6px; right: 6px; flex-wrap: wrap; max-width: 220px; }
}

/* fixes */
.inbox { grid-template-rows: 100%; }
.inbox-list, .inbox-conv { min-height: 0; }
.inbox-conv { overflow: hidden; }
.inbox-conv .chat-msgs { min-height: 0; }
body.in-admin .fab-stack, body.in-admin .chatbox { display: none !important; }
@media (max-width: 860px) {
  .drag-item { flex-wrap: wrap; }
  .drag-item .grow { flex: 1 1 100%; }
  .acct .nm { display: none; }
  #editbar .wrap { font-size: 13px; gap: 8px; }
  #editbar span { display: none; }
  .inbox-conv .conv-head .btn { padding: 6px 10px; }
}

.field.check label { display: block; font-weight: 500; }
.field.check input { width: auto; margin: 0 6px 0 0; vertical-align: -2px; }

/* ===== Responsive (theo mẫu) ===== */
@media (max-width: 1024px) {
  .v-feat { grid-template-columns: 1fr; min-height: 0; gap: 30px; }
  .v-feat .pname { margin-top: 24px; }
  .pgrid, .pd-amen, .pd-gallery { grid-template-columns: repeat(3, 1fr); }
  .v-testi .row { grid-template-columns: 1fr; }
  .v-testi .bubbles { grid-auto-columns: calc((100% - 20px) / 2); }
  .ngrid { grid-template-columns: repeat(2, 1fr); }
  .pd-values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  :root { --topbar-h: 66px; }
  .burger { display: block; margin-left: auto; }
  .nav { display: none; position: absolute; top: var(--topbar-h); left: 0; right: 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 16px; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a::after { display: none; }
  .acct .nm { display: none; }
  .sec { padding: 64px 0; }
  .v-hero .partners { gap: 24px; margin-top: 34px; } .v-hero .partners span { font-size: 14px; }
  .v-hero .wrap { padding-bottom: 50px; }
  .wave-box svg.wave { display: none; }
  .wave-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 26px; }
  .wave-item.top, .wave-item.bot { grid-row: auto; padding: 0 0 0 70px; min-height: 60px; }
  .wave-node { display: none; }
  .wave-item .no, .wave-item.bot .no { left: 0; right: auto; top: -8px; font-size: 56px; }
  .wave-item p { max-width: none; }
  .v-reasons .cols, .v-mission { grid-template-columns: 1fr; gap: 26px; }
  .v-reasons .h2 { margin-bottom: 40px; }
  .v-faq, .v-contact .grid2, .v-story, .pd-sec .grid2, .pd-plan, .detail { grid-template-columns: 1fr; gap: 30px; }
  .pd-sec .grid2.rev > :first-child { order: 0; }
  .v-cta { min-height: 520px; align-items: flex-start; padding-top: 70px; }
  .v-cta .bld { width: 90%; height: 60%; right: 5%; opacity: .9; }
  .v-psearch { grid-template-columns: 1fr 1fr; border-radius: 22px; padding: 16px; gap: 12px; margin-top: -30px; }
  .v-psearch label { border: 0 !important; padding: 0; }
  .v-psearch button { grid-column: span 2; width: 100%; border-radius: 12px; height: 46px; }
  .pgrid, .pd-amen { grid-template-columns: repeat(2, 1fr); }
  .pd-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: span 2; }
  .news-hero { aspect-ratio: 4 / 3; }
  .stars-wrap { height: 240px; }
  .star-item { width: 200px; flex-basis: 200px; height: 200px; }
}
@media (max-width: 560px) {
  .pcard { width: 230px; }
  .v-testi .bubbles { grid-auto-columns: 86%; }
  .ngrid { grid-template-columns: 1fr; }
  .pd-values { grid-template-columns: 1fr; }
  .foot-brand { flex-direction: column; gap: 12px; }
  .brand .logo-mark span { font-size: 14px; }
  .fab { width: 50px; height: 50px; font-size: 21px; }
  .fab-stack { right: 12px; gap: 10px; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .sec-tools { top: 6px; right: 6px; flex-wrap: wrap; max-width: 220px; }
}
.pd-book .t2 { font-family: var(--font-head); font-weight: 400; font-size: clamp(28px, 3.2vw, 44px); color: #fff; line-height: 1.2; margin-bottom: 14px; }
.pd-book .t2 em, .pd-sec .t2 em { color: var(--accent); font-style: italic; }
.pd-sec .t2 em { color: var(--primary); }
.v-hero .ph-bg svg { width: 34%; max-width: 420px; margin-left: 52%; opacity: .35; }
@media (max-width: 860px) { .pd-book .grid2 { grid-template-columns: 1fr !important; } }
@media (max-width: 860px) {
  .wave-grid { grid-template-columns: 1fr !important; }
  .wave-item { grid-column: auto !important; }
}
