/* =========================================================
   TTA Workspace – main.css (mockup)
   Ý tưởng: "Đi một vòng tòa nhà" – trắng sáng, navy logo + xanh da trời,
   chữ tiêu đề Archivo giãn rộng như chữ WORKSPACE trên logo.
   Khoảnh khắc chính: tòa nhà 3D mở từng tầng theo cuộn (tower3d.js).
   Đổi màu/font ở :root.
   ========================================================= */
:root {
  --navy: #161E4B;            /* màu chữ TTA trên logo */
  --navy-2: #232D66;
  --navy-deep: #0D1335;
  --sky: #56C9E7;             /* vạch xanh trên logo – nhấn, KHÔNG dùng làm nền cho chữ trắng */
  --sky-2: #9BE0F2;
  --sky-tint: #E6F6FB;
  --blue: #1F6FC5;            /* xanh dương đậm cho link/nút phụ (chữ trắng 5.1:1) */
  --ink: #161E4B;
  --ink-2: #2F3863;
  --muted: #4B5478;
  --line: #DEE5EF;
  --bg: #FFFFFF;
  --bg-alt: #F3F7FB;
  --on-dark: #EEF2FA;
  --on-dark-2: #C9D0E8;
  --ok: #18794E; --ok-bg: #E3F5EC;
  --soon: #8A5A00; --soon-bg: #FFF2D6;
  --off: #6B7280; --off-bg: #EEF0F3;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 1px 2px rgba(22,30,75,.06), 0 24px 48px -24px rgba(22,30,75,.35);
  --shadow-sm: 0 1px 2px rgba(22,30,75,.06), 0 10px 24px -14px rgba(22,30,75,.3);
  --container: 1280px;
  --header-h: 78px;
  --ease: cubic-bezier(.2,.7,.2,1);
  --f-display: "Archivo", "Be Vietnam Pro", system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; font: 400 16.5px/1.65 var(--f-body); color: var(--ink); background: var(--bg); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg, video, iframe { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 112%; line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.6vw, 4.8rem); font-weight: 800; }
h2 { font-size: clamp(1.85rem, 3.5vw, 3rem); font-weight: 800; }
h3 { font-size: 1.22rem; font-weight: 700; font-stretch: 105%; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { top: 12px; }
main { overflow-x: clip; }

/* ---------- Section & heading ---------- */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; }
.section.alt { background: var(--bg-alt); }
.section.dark { background: var(--navy); color: var(--on-dark); }
/* eyebrow = hai vạch xanh như logo */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 700 .76rem/1 var(--f-body); letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 30px; height: 8px; flex: none; border-block: 2px solid var(--sky); }
.dark .eyebrow, .on-dark .eyebrow { color: var(--sky); }
.lead { font-size: 1.12rem; color: var(--ink-2); max-width: 62ch; }
.dark .lead, .on-dark .lead { color: var(--on-dark-2); }
.sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.sec-head > div { max-width: 780px; }
.sec-head .lead { margin: 0; }
.ph { display: inline-block; padding: 0 .4em; border: 1.5px dashed currentColor; border-radius: 6px; opacity: .85; font-size: .9em; }
.ph-img { background: repeating-linear-gradient(45deg, #E8EEF6 0 12px, #F3F7FB 12px 24px); display: grid; place-items: center; color: var(--muted); font-size: .85rem; text-align: center; padding: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 600; font-size: .97rem; text-decoration: none; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--blue); }
.btn-sky { background: var(--sky); color: var(--navy); }
.btn-sky:hover { background: #fff; }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-line-inv { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-line-inv:hover { border-color: #fff; background: rgba(255,255,255,.12); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .9rem; }
.btn .arr { transition: transform .25s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.link-more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); text-decoration: none; }
.link-more svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.link-more:hover svg { transform: translateX(4px); }

/* ---------- Demo ribbon ---------- */
.demo-ribbon { background: var(--sky-tint); color: var(--navy); font-size: .82rem; font-weight: 600; text-align: center; padding: 7px 44px 7px 16px; position: relative; z-index: 61; border-bottom: 1px solid #C9EAF4; }
.demo-ribbon button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: 0; width: 30px; height: 30px; font-size: 1.1rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 60; height: var(--header-h); margin-bottom: calc(-1 * var(--header-h)); color: #fff; transition: background-color .3s, box-shadow .3s, color .3s; }
.site-header.is-solid, .solid-header .site-header { background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 1px 0 var(--line), 0 12px 30px -24px rgba(22,30,75,.5); backdrop-filter: saturate(1.4) blur(14px); }
.solid-header .site-header { margin-bottom: 0; }
.header-row { display: flex; align-items: center; gap: 18px; height: 100%; }
.brand { display: flex; align-items: center; text-decoration: none; flex: none; }
.brand img { height: 46px; width: auto; }
.brand .logo-dark { display: none; }
.is-solid .brand .logo-light, .solid-header .brand .logo-light { display: none; }
.is-solid .brand .logo-dark, .solid-header .brand .logo-dark { display: block; }
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav a { position: relative; display: inline-flex; padding: 10px 13px; font-weight: 600; font-size: .86rem; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; opacity: .9; }
.nav a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; background: var(--sky); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { opacity: 1; }
.header-tel { display: none; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1.5px solid currentColor; font-weight: 700; font-size: .9rem; text-decoration: none; opacity: .95; }
.header-tel svg { width: 16px; height: 16px; }
.header-tel:hover { background: rgba(127,127,127,.12); }
.header-cta { display: none; }
.is-solid .header-cta, .solid-header .header-cta { background: var(--navy); color: #fff; }
.menu-toggle { margin-left: auto; width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(127,127,127,.45); background: transparent; display: grid; place-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: currentColor; }
@media (min-width: 1100px) { .nav { display: block; } .menu-toggle { display: none; } .header-tel { display: inline-flex; } }
@media (min-width: 1240px) { .header-cta { display: inline-flex; } }
.drawer { position: fixed; inset: 0; z-index: 90; background: rgba(13,19,53,.6); }
.drawer-panel { position: absolute; inset: 0 0 0 auto; width: min(380px, 92vw); background: #fff; color: var(--ink); padding: 20px; overflow: auto; display: grid; align-content: start; gap: 4px; animation: drawerIn .35s var(--ease); }
@keyframes drawerIn { from { transform: translateX(40px); opacity: 0; } }
.drawer-panel > a:not(.btn) { padding: 14px 8px; border-bottom: 1px solid var(--line); font-weight: 600; text-decoration: none; }
.drawer-close { justify-self: end; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: 50%; font-size: 1.3rem; }
.drawer-panel .btn { margin-top: 12px; }

/* ---------- Hero trang chủ: ảnh thu lại thành thẻ bo góc khi cuộn ---------- */
.hero { position: relative; height: max(640px, 100svh); padding: calc(var(--p, 0) * 18px); }
.hero-frame { position: relative; height: 100%; overflow: hidden; isolation: isolate; color: #fff; background: var(--navy-deep); border-radius: calc(var(--p, 0) * 40px); }
.hero-bg { position: absolute; inset: 0; z-index: -1; transform: translate3d(var(--mx, 0), var(--my, 0), 0) scale(calc(1.08 - var(--p, 0) * .06)); transition: transform .7s var(--ease); }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; animation: heroIn 2.2s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.12); filter: saturate(.6) brightness(.8); } }
.hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,19,53,.9) 0%, rgba(13,19,53,.62) 42%, rgba(13,19,53,.08) 78%), linear-gradient(0deg, rgba(13,19,53,.7), transparent 45%); }
.hero-inner { height: 100%; display: flex; flex-direction: column; justify-content: center; padding-block: calc(var(--header-h) + 32px) 150px; transform: translate3d(0, calc(var(--p, 0) * -70px), 0); opacity: calc(1 - var(--p, 0) * 1.3); }
.hero .eyebrow { color: var(--sky); }
.hero h1 { max-width: 17ch; font-size: clamp(2.3rem, 5vw, 4.4rem); margin-bottom: 20px; line-height: 1.1; }
.hero h1 .l { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .l > span { display: inline-block; animation: lineUp 1.1s var(--ease) both; }
.hero h1 .l:nth-child(2) > span { animation-delay: .12s; color: var(--sky); }
@keyframes lineUp { from { transform: translateY(105%); } }
.hero p { max-width: 52ch; color: #EEF2FA; font-size: 1.1rem; animation: rise .9s .3s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; animation: rise .9s .42s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }
/* thanh tìm nhanh (kiểu kính) */
.finder { position: absolute; z-index: 3; left: 50%; bottom: 28px; width: min(1180px, calc(100% - 32px)); transform: translateX(-50%); display: grid; gap: 8px; padding: 10px; border-radius: 22px; background: #fff; box-shadow: 0 30px 60px -30px rgba(13,19,53,.7); animation: rise 1s .55s var(--ease) both; }
.finder label { display: grid; gap: 4px; padding: 10px 16px; border-radius: 14px; background: var(--bg-alt); color: var(--navy); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; transition: background-color .2s, box-shadow .2s; }
.finder label:focus-within { background: #fff; box-shadow: inset 0 0 0 2px var(--blue); }
.finder select, .finder input { width: 100%; border: 0; padding: 2px 0; font: 600 1.02rem var(--f-body); color: var(--ink); background: transparent; letter-spacing: 0; text-transform: none; }
.finder input::placeholder { color: #6B7395; font-weight: 500; }
.finder select:focus, .finder input:focus { outline: none; }
.finder .btn { min-height: 62px; border-radius: 14px; font-size: 1rem; }
@media (min-width: 560px) { .finder { grid-template-columns: 1fr 1fr; } .finder label:first-child, .finder .btn { grid-column: 1 / -1; } }
@media (min-width: 1000px) { .finder { grid-template-columns: 1.4fr 1fr 1fr 1fr auto; } .finder label:first-child, .finder .btn { grid-column: auto; } }
@media (max-width: 999px) { .hero { height: auto; min-height: 100svh; } .hero-inner { padding-bottom: 420px; } }
@media (min-width: 1000px) { .hero-inner { padding-bottom: 170px; } }
.scroll-hint { position: absolute; z-index: 3; right: 30px; top: 50%; display: none; align-items: center; gap: 10px; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255,255,255,.7); writing-mode: vertical-rl; }
.scroll-hint::after { content: ""; width: 1px; height: 56px; background: linear-gradient(#fff, transparent); animation: hint 2s ease-in-out infinite; }
@keyframes hint { 0%, 100% { transform: scaleY(.3); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } }
@media (min-width: 1000px) { .scroll-hint { display: flex; } }

/* ---------- Dải thông tin nhanh ---------- */
.facts { border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.fact { padding: 26px 18px; border-right: 1px solid var(--line); border-top: 1px solid var(--line); }
.fact b { display: block; font: 800 clamp(1.3rem, 2.2vw, 1.8rem)/1.15 var(--f-display); font-stretch: 115%; color: var(--navy); }
.fact span { color: var(--ink-2); font-size: .95rem; font-weight: 500; }
@media (min-width: 900px) { .facts-grid { grid-template-columns: repeat(4, 1fr); } .fact { border-top: 0; padding: 34px 28px; } .fact:last-child { border-right: 0; } }

/* ---------- Dịch vụ: ảnh chỉ có nhãn + tên, thông tin ở phần trắng bên dưới ---------- */
.svc-grid { display: grid; gap: 22px; }
@media (min-width: 680px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .4s var(--ease), box-shadow .4s, border-color .3s; }
.svc:hover { box-shadow: var(--shadow); border-color: #BFD6EA; }
.svc-media { position: relative; aspect-ratio: 4/3.4; overflow: hidden; color: #fff; isolation: isolate; }
.svc-media img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.svc:hover .svc-media img { transform: scale(1.07); }
.svc-media::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(13,19,53,.35) 0%, rgba(13,19,53,0) 30%, rgba(13,19,53,0) 50%, rgba(13,19,53,.88) 100%); }
.svc .for { position: absolute; left: 16px; top: 16px; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: #fff; color: var(--navy); }
.svc .no { position: absolute; right: 18px; top: 18px; font: 800 1rem var(--f-display); letter-spacing: .08em; color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.svc-media h3 { position: absolute; left: 18px; right: 18px; bottom: 16px; margin: 0; font-size: clamp(1.25rem, 1.6vw, 1.45rem); line-height: 1.2; color: #fff; text-shadow: 0 2px 14px rgba(0,0,0,.35); }
.svc-body { display: flex; flex-direction: column; gap: 16px; padding: 18px 20px 20px; flex: 1; }
.svc-body p { margin: 0; font-size: .95rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: calc(1.65em * 3); }
.svc-specs { display: grid; gap: 0; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.svc-specs li { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 8px; min-height: 42px; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink-2); }
.svc-specs li b { font-weight: 700; color: var(--navy); text-align: right; }
.svc-specs li b.na { font-weight: 600; color: var(--ink-2); }
.svc-specs svg { width: 17px; height: 17px; color: var(--blue); }
.svc .price { margin-top: auto; display: flex; justify-content: space-between; align-items: center; color: var(--ink); }
.svc .price b { color: var(--navy); }
.svc .go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; transition: transform .3s var(--ease), background-color .3s; }
.svc .go svg { width: 17px; height: 17px; }
.svc:hover .go { transform: translateX(4px); background: var(--blue); }

/* ---------- Tòa nhà 3D (pin, tower3d.js) ---------- */
.tower { position: relative; background: linear-gradient(180deg, #F3F7FB 0%, #E3EEF8 100%); }
.tower-stage { position: relative; height: 100svh; min-height: 560px; overflow: hidden; }
.tower-steps li { pointer-events: auto; cursor: pointer; }
.tower-canvas { position: absolute; inset: 0; }
.tower-canvas::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, #0D1335 0%, #232D66 60%, #3B5C9A 100%); opacity: var(--dusk, 0); }
.tower-canvas canvas { position: relative; width: 100% !important; height: 100% !important; }
.tower-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.tower-fallback img { width: 100%; height: 100%; object-fit: cover; opacity: .25; }
.tower-ui { position: relative; z-index: 2; height: 100%; display: grid; align-content: space-between; padding-block: calc(var(--header-h) + 20px) 28px; pointer-events: none; transition: color .5s; }
.tower-ui a { pointer-events: auto; }
.tower.is-dusk .tower-ui { color: #fff; }
.tower.is-dusk .tower-ui .lead { color: var(--on-dark-2); }
.tower-head { max-width: 520px; }
.tower-head h2 { margin-bottom: 8px; }
.tower-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-width: 400px; }
.tower-steps li { position: relative; padding: 12px 18px; border-radius: var(--radius); opacity: .5; transition: background-color .4s, opacity .4s, box-shadow .4s; }
.tower-steps li.is-active { opacity: 1; background: rgba(255,255,255,.86); box-shadow: var(--shadow-sm); backdrop-filter: blur(10px); color: var(--ink); }
.tower-steps .fl { display: inline-block; margin: 0 10px 2px 0; padding: 3px 8px; border-radius: 8px; border: 1.5px solid currentColor; font: 800 .74rem var(--f-display); text-align: center; letter-spacing: .04em; }
.tower-steps li.is-active .fl { background: var(--navy); border-color: var(--navy); color: #fff; }
.tower-steps b { display: inline; font: 700 1.05rem var(--f-display); font-stretch: 108%; }
.tower-steps span.t { display: block; font-size: .9rem; color: var(--ink-2); max-height: 0; overflow: hidden; transition: max-height .5s var(--ease); }
.tower-steps li.is-active span.t { max-height: 110px; margin-top: 4px; }
/* bảng chỉ tầng kiểu thang máy */
.lift { position: absolute; right: 96px; top: 50%; transform: translateY(-50%); z-index: 2; display: none; flex-direction: column; align-items: center; gap: 12px; padding: 16px 12px; border-radius: 20px; background: rgba(255,255,255,.8); backdrop-filter: blur(10px); box-shadow: var(--shadow-sm); }
.lift .screen { width: 64px; height: 54px; border-radius: 10px; background: var(--navy-deep); color: var(--sky); display: grid; place-items: center; font: 800 1.5rem var(--f-display); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.lift ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.lift li { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font: 700 .85rem var(--f-display); color: var(--muted); transition: all .35s var(--ease); }
.lift li.on { background: var(--sky); border-color: var(--sky); color: var(--navy); box-shadow: 0 0 0 4px rgba(86,201,231,.25); }
@media (min-width: 900px) { .lift { display: flex; } }
.tower-final { position: absolute; z-index: 3; left: 50%; bottom: 40px; width: min(560px, calc(100% - 32px)); transform: translate(-50%, 30px); opacity: 0; visibility: hidden; transition: opacity .5s, transform .5s var(--ease), visibility 0s .5s; text-align: center; padding: 26px; border-radius: var(--radius-lg); background: rgba(255,255,255,.95); box-shadow: var(--shadow); color: var(--ink); }
.tower-final.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.tower-final h3 { font-size: 1.5rem; } .tower-final p { color: var(--muted); }
.tower-final .row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (max-width: 899px) {
  .tower-steps li:not(.is-active) { display: none; }
  .tower-head .lead { display: none; }
}
.reduce .tower, .no-webgl .tower { height: auto; }
.reduce .tower-stage, .no-webgl .tower-stage { position: relative; height: auto; }
.reduce .tower-canvas, .no-webgl .tower-canvas { display: none; }
.reduce .tower-steps li, .no-webgl .tower-steps li { display: block; opacity: 1; background: #fff; }
.reduce .tower-steps span.t, .no-webgl .tower-steps span.t { max-height: none; }
.reduce .tower-final, .no-webgl .tower-final { position: static; transform: none; opacity: 1; visibility: visible; margin: 32px auto 0; }
.reduce .lift, .no-webgl .lift { display: none; }

/* ---------- Thẻ không gian ---------- */
.space-grid { display: grid; gap: 22px; }
@media (min-width: 640px) { .space-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .space-grid { grid-template-columns: repeat(3, 1fr); } }
.space-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; transition: border-color .25s, box-shadow .35s, transform .35s var(--ease); }
.space-card:hover { border-color: #BFD6EA; box-shadow: var(--shadow); transform: translateY(-4px); }
.space-card .media { position: relative; aspect-ratio: 16/10.5; overflow: hidden; background: var(--bg-alt); }
.space-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.space-card:hover .media img { transform: scale(1.06); }
.space-card .media .floor { position: absolute; left: 14px; bottom: 14px; padding: 6px 12px; border-radius: 10px; background: var(--navy); color: #fff; font: 800 .78rem var(--f-display); letter-spacing: .06em; }
.status { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: .76rem; font-weight: 700; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.available { background: var(--ok-bg); color: var(--ok); }
.status.available::before { animation: pulse 1.8s ease-in-out infinite; }
.status.soon { background: var(--soon-bg); color: var(--soon); }
.status.rented { background: var(--off-bg); color: var(--off); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(24,121,78,.2); } }
.space-card .body { padding: 20px 20px 22px; display: grid; gap: 10px; flex: 1; align-content: start; }
.space-card .type { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.space-card h3 { margin: 0; font-size: 1.2rem; }
.space-card h3 small { font: 600 .82rem var(--f-body); color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.specs { display: flex; flex-wrap: wrap; gap: 8px 16px; list-style: none; margin: 0; padding: 0; font-size: .9rem; color: var(--ink-2); }
.specs li { display: inline-flex; align-items: center; gap: 6px; }
.specs svg { width: 17px; height: 17px; color: var(--blue); }
.space-card .foot { margin-top: 6px; padding-top: 14px; border-top: 1px dashed var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.price-tag b { font: 800 1.05rem var(--f-display); color: var(--navy); }
.price-tag small { display: block; color: var(--muted); font-size: .76rem; }
.space-card .go { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-tint); color: var(--navy); transition: background-color .25s, color .25s; }
.space-card .go svg { width: 18px; height: 18px; }
.space-card:hover .go { background: var(--navy); color: #fff; }
.space-card.is-rented .media img { filter: grayscale(.7); opacity: .8; }

/* ---------- Tiện ích ---------- */
.amen-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .amen-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .amen-grid { grid-template-columns: repeat(4, 1fr); } }
.amen { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; transition: border-color .25s, transform .3s var(--ease); }
.amen:hover { border-color: var(--sky); transform: translateY(-3px); }
.amen .ico { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--sky-tint); color: var(--navy); }
.amen .ico svg { width: 22px; height: 22px; }
.marquee { overflow: hidden; display: flex; margin-top: clamp(40px, 6vw, 64px); border-block: 1px solid var(--line); padding-block: 18px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; flex: none; gap: 48px; padding-right: 48px; animation: marquee 38s linear infinite; font: 800 clamp(1.4rem, 3vw, 2.4rem) var(--f-display); font-stretch: 120%; color: var(--navy); white-space: nowrap; }
.marquee-track span::after { content: ""; display: inline-block; width: 26px; height: 10px; margin-left: 48px; border-block: 3px solid var(--sky); vertical-align: middle; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- Vì sao chọn TTA ---------- */
.statement { font: 700 clamp(1.6rem, 3.6vw, 3rem)/1.3 var(--f-display); font-stretch: 108%; letter-spacing: -0.02em; max-width: 24ch; margin-bottom: clamp(40px, 6vw, 72px); color: #fff; }
.statement .w { opacity: .2; transition: opacity .35s; }
.statement .w.on { opacity: 1; }
.why-grid { display: grid; gap: 18px; perspective: 1200px; }
@media (min-width: 900px) { .why-grid { grid-template-columns: repeat(3, 1fr); } }
.why-item { padding: 28px; border-radius: var(--radius-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.why-item .n { font: 800 2.6rem/1 var(--f-display); font-stretch: 120%; color: transparent; -webkit-text-stroke: 1.5px var(--sky); display: block; margin-bottom: 22px; }
.why-item h3 { color: #fff; }
.why-item p { color: var(--on-dark-2); margin: 0; font-size: .96rem; }
.dark .why-glow { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dark .why-glow::before { content: ""; position: absolute; width: 60vw; height: 60vw; right: -20vw; top: -25vw; border-radius: 50%; background: radial-gradient(circle, rgba(86,201,231,.22), transparent 60%); }

/* ---------- Thư viện ảnh cuộn ngang (pin) ---------- */
.hgal { position: relative; height: 320vh; }
.hgal-stage { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.hgal-track { display: flex; gap: 24px; padding-inline: max(16px, calc((100vw - var(--container)) / 2 + 32px)); width: max-content; transform: translate3d(var(--x, 0px), 0, 0); perspective: 1400px; }
.hgal-item { width: clamp(280px, 38vw, 560px); flex: none; margin: 0; transform: rotateY(var(--r, 0deg)) scale(var(--s, 1)); transform-origin: center; transition: transform .2s linear; }
.hgal-item .ph-img, .hgal-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.hgal-item figcaption { margin-top: 12px; font-weight: 600; display: flex; gap: 10px; align-items: baseline; }
.hgal-item figcaption span { font: 800 .8rem var(--f-display); color: var(--blue); }
.hgal-bar { margin: 34px auto 0; width: min(420px, 60vw); height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hgal-bar i { display: block; height: 100%; background: var(--navy); transform-origin: left; transform: scaleX(var(--p, 0)); }
.reduce .hgal { height: auto; } .reduce .hgal-stage { position: relative; height: auto; padding-block: 40px; }
.reduce .hgal-track { width: auto; overflow-x: auto; transform: none; scroll-snap-type: x mandatory; } .reduce .hgal-item { scroll-snap-align: start; transform: none; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 32px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 64px; } }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 22px 0; font: 700 1.08rem var(--f-display); font-stretch: 104%; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-tint); font: 600 1.3rem/1 var(--f-body); transition: transform .3s var(--ease), background-color .3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--sky); }
.faq details p { margin: 0 0 22px; color: var(--ink-2); max-width: 64ch; }

/* ---------- Liên hệ / form ---------- */
.contact-box { display: grid; gap: 28px; align-items: start; }
@media (min-width: 1000px) { .contact-box { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.contact-list { list-style: none; margin: 26px 0; padding: 0; display: grid; gap: 14px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .ico { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--sky-tint); color: var(--navy); }
.contact-list svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: .78rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.contact-list a { font-weight: 700; text-decoration: none; }
.map { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/10; background: var(--bg-alt); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; border: 0; }
.form { display: grid; gap: 14px; }
.form .row2 { display: grid; gap: 14px; }
@media (min-width: 560px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-weight: 600; font-size: .88rem; }
.field input, .field select, .field textarea { font: inherit; font-weight: 400; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(31,111,197,.14); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #C62828; }
.field .err { color: #C62828; font-weight: 500; font-size: .82rem; }
.form-card { background: #fff; color: var(--ink); padding: clamp(20px, 3vw, 34px); border-radius: var(--radius-lg); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card h3 { margin-bottom: 4px; }
.form-msg { padding: 14px 16px; border-radius: 12px; font-weight: 600; margin: 0; }
.form-msg.ok { background: var(--ok-bg); color: var(--ok); }
.form-msg.bad { background: #FDECEA; color: #A42020; }
.mock-note { font-size: .8rem; color: var(--muted); margin: 0; }

/* ---------- Banner trang con ---------- */
.page-hero { position: relative; color: #fff; overflow: hidden; isolation: isolate; min-height: clamp(420px, 60vh, 560px); display: flex; align-items: flex-end; background: var(--navy-deep); }
.page-hero .bg { position: absolute; inset: 0; z-index: -1; transform: scale(calc(1.04 + var(--p, 0) * .12)); }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 35%; }
.page-hero .bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(13,19,53,.95) 0%, rgba(13,19,53,.6) 55%, rgba(13,19,53,.35) 100%); }
.page-hero .container { padding-block: calc(var(--header-h) + 56px) clamp(40px, 6vw, 72px); transform: translate3d(0, calc(var(--p, 0) * 40px), 0); opacity: calc(1 - var(--p, 0) * 1.2); }
.page-hero h1 { max-width: 16ch; margin-bottom: 14px; }
.page-hero .lead { color: #D5DBEE; margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 20px; font-size: .88rem; color: #C3CBE6; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; } .crumbs a:hover { color: #fff; }
.crumbs.dark { color: var(--muted); } .crumbs.dark a:hover { color: var(--navy); }

/* ---------- Trang danh sách: tòa nhà chọn tầng (CSS 3D) + bộ lọc ---------- */
.finder-page { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1040px) { .finder-page { grid-template-columns: 400px 1fr; gap: 40px; } .stack-wrap { position: sticky; top: calc(var(--header-h) + 20px); } }
.stack-wrap { background: linear-gradient(180deg, #fff, var(--bg-alt)); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 18px 18px; }
.stack-wrap h2 { font-size: 1.1rem; margin-bottom: 2px; }
.stack-wrap > p { color: var(--ink-2); font-size: .9rem; margin-bottom: 8px; }
.stack-wrap { --sw: 230px; --sh: 160px; --gap: 44px; }
.stack { position: relative; overflow: hidden; margin-inline: -18px; perspective: 1500px; display: flex; align-items: flex-end; justify-content: center;
  height: calc(var(--n, 8) * var(--gap) * .86 + var(--sh) * 1.25 + 40px); padding-bottom: calc(var(--sh) * .5); }
.stack-inner { position: relative; width: var(--sw); height: var(--sh); transform-style: preserve-3d; transform: rotateX(58deg) rotateZ(-40deg); }
.slab { position: absolute; inset: 0; border: 0; padding: 0; background: none; transform-style: preserve-3d; transform: translateZ(calc(var(--i) * var(--gap))); transition: transform .45s var(--ease); cursor: pointer; }
.slab:hover { transform: translateZ(calc(var(--i) * var(--gap) + 10px)); }
.slab[aria-pressed="true"] { transform: translateZ(calc(var(--i) * var(--gap) + 12px)) translate(34px, 34px); }
.stack-roof { position: absolute; inset: 0; transform: translateZ(calc(var(--i) * var(--gap) + 2px)); border-radius: 6px; background: var(--navy); display: grid; place-items: center; pointer-events: none; }
.stack-roof img { width: 52%; transform: rotateZ(40deg); }
@media (max-width: 1039px) { .stack-wrap { --sw: 260px; --sh: 180px; --gap: 46px; } }
@media (max-width: 520px) { .stack-wrap { --sw: 180px; --sh: 125px; --gap: 32px; } }
.slab .top { position: absolute; inset: 0; border-radius: 6px; background: linear-gradient(135deg, #fff, #E4ECF6); border: 1.5px solid #C9D6E6; transform: translateZ(24px); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.slab .top::before { content: ""; position: absolute; inset: 14px; border: 1px dashed rgba(22,30,75,.18); border-radius: 3px; }
.slab .side-a, .slab .side-b { position: absolute; transition: background .3s; }
.slab .side-a { left: 0; right: 0; bottom: 0; height: 24px; transform-origin: bottom; transform: rotateX(-90deg); background: repeating-linear-gradient(90deg, #8FB0D1 0 10px, #CFE0F0 10px 12px); }
.slab .side-b { top: 0; bottom: 0; right: 0; width: 24px; transform-origin: right; transform: rotateY(90deg); background: #9DB9D8; }
.slab[aria-pressed="true"] .top { background: linear-gradient(135deg, var(--sky-2), var(--sky)); border-color: var(--navy); }
.slab[aria-pressed="true"] .side-a { background: repeating-linear-gradient(90deg, #2B8DB0 0 10px, #56C9E7 10px 12px); }
.slab[aria-pressed="true"] .side-b { background: #3AA9CB; }
.slab:focus-visible { outline: none; } .slab:focus-visible .top { outline: 3px solid var(--blue); outline-offset: 3px; }
.floor-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.floor-chips .chip { min-height: 34px; padding: 0 12px; font-size: .82rem; }
.stack-legend { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: .82rem; color: var(--muted); }
.stack-legend button { border: 0; background: none; color: var(--blue); font-weight: 700; padding: 6px 0; }
.filters { display: grid; gap: 14px; margin-bottom: 22px; padding: 18px; border-radius: var(--radius-lg); background: var(--bg-alt); border: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .9rem; color: var(--ink); transition: all .2s; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.filter-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .filter-grid { grid-template-columns: repeat(3, 1fr); } }
.fbox { display: grid; gap: 4px; padding: 8px 12px; border-radius: 12px; background: #fff; border: 1.5px solid var(--line); font-size: .74rem; font-weight: 700; color: var(--navy); letter-spacing: .02em; transition: border-color .2s, box-shadow .2s; }
.fbox:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(31,111,197,.14); }
.fbox input, .fbox select { border: 0; padding: 2px 0; min-height: 28px; font: 600 1rem var(--f-body); color: var(--ink); background: transparent; width: 100%; }
.fbox input::placeholder { color: #6B7395; font-weight: 500; }
.fbox input:focus, .fbox select:focus { outline: none; }
.filter-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.filter-row .sort { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: .88rem; }
.filter-row select { min-height: 42px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); font: 600 .9rem var(--f-body); color: var(--ink); background: #fff; }
.filter-note { margin: 0; font-size: .82rem; color: var(--ink-2); }
.result-count { margin-left: auto; color: var(--navy); font-weight: 700; font-size: .95rem; }
.empty-state { padding: 48px 24px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.space-grid.list { grid-template-columns: 1fr; }
@media (min-width: 680px) { .space-grid.two { grid-template-columns: repeat(2, 1fr); } }
.flip-in { animation: flipIn .55s var(--ease) both; }
@keyframes flipIn { from { opacity: 0; transform: perspective(900px) rotateX(-14deg) translateY(24px); } }

/* ---------- Chi tiết không gian ---------- */
.detail { padding-top: 28px; }
.detail-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.detail-head h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); margin: 6px 0 0; }
.detail-head .status { position: static; }
.gallery { display: grid; gap: 10px; border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 800px) { .gallery { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 230px); } .gallery .g0 { grid-row: span 2; } }
.gallery button { padding: 0; border: 0; background: var(--bg-alt); overflow: hidden; position: relative; min-height: 200px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery button:hover img { transform: scale(1.05); }
.gallery .more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(13,19,53,.55); color: #fff; font-weight: 700; }
.detail-grid { display: grid; gap: 36px; margin-top: 36px; align-items: start; }
@media (min-width: 1000px) { .detail-grid { grid-template-columns: 1fr 400px; gap: 56px; } .book-card { position: sticky; top: calc(var(--header-h) + 20px); } }
.spec-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 0 0 32px; }
@media (min-width: 640px) { .spec-grid { grid-template-columns: repeat(4, 1fr); } }
.spec { padding: 18px; border-radius: var(--radius); background: var(--bg-alt); }
.spec svg { width: 22px; height: 22px; color: var(--blue); margin-bottom: 10px; }
.spec small { display: block; color: var(--muted); font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.spec b { font: 800 1.15rem var(--f-display); }
.hl { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }
.hl li { padding: 8px 14px; border-radius: 999px; background: var(--sky-tint); font-weight: 600; font-size: .9rem; }
.incl { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0 0 18px; }
@media (min-width: 640px) { .incl { grid-template-columns: 1fr 1fr; } }
.incl li { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.incl svg { width: 20px; height: 20px; color: var(--ok); flex: none; }
.note { padding: 16px 18px; border-left: 3px solid var(--sky); background: var(--bg-alt); border-radius: 0 12px 12px 0; color: var(--ink-2); font-size: .93rem; }
.book-card .price-tag { display: block; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); }
.book-card .price-tag b { font-size: 1.5rem; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 92vh; }
.lightbox::backdrop { background: rgba(13,19,53,.9); }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 12px; }
.lightbox .lb-bar { display: flex; justify-content: center; gap: 10px; margin-top: 10px; }
.lightbox button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.1); color: #fff; font-size: 1.2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-dark-2); padding-block: 72px 28px; font-size: .95rem; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-block: 2px solid var(--sky); opacity: .7; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1.3fr; gap: 56px; } }
.site-footer img.flogo { height: 64px; width: auto; margin-bottom: 18px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; } .site-footer a:hover { color: #fff; }
.f-contact li { display: flex; gap: 10px; align-items: flex-start; }
.f-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--sky); }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a { width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); display: grid; place-items: center; color: #fff; }
.socials a:hover { background: var(--sky); border-color: var(--sky); color: var(--navy); }
.socials svg { width: 20px; height: 20px; }
.footer-word { font: 800 clamp(3rem, 13vw, 11rem)/.9 var(--f-display); font-stretch: 125%; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(86,201,231,.25); margin: 56px 0 0; white-space: nowrap; user-select: none; }
.copyright { margin-top: 24px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- Nút liên hệ nổi + thanh mobile ---------- */
.float-contact { position: fixed; right: 18px; bottom: 28px; z-index: 70; display: none; flex-direction: column; gap: 10px; }
@media (min-width: 900px) { .float-contact { display: flex; } }
.float-contact a { width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px -10px rgba(13,19,53,.6); text-decoration: none; font: 800 .7rem var(--f-body); transition: transform .25s var(--ease); }
.float-contact a:hover { transform: scale(1.08); }
.float-contact svg { width: 22px; height: 22px; }
.fc-zalo { background: #0068FF; } .fc-wa { background: #1FA855; } .fc-fb { background: #1877F2; } .fc-tel { background: var(--navy); }
.fc-tel::after { content: ""; position: absolute; width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--navy); animation: ring 2s ease-out infinite; }
@keyframes ring { to { transform: scale(1.6); opacity: 0; } }
.mobile-bar { position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0); }
.mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 58px; font-weight: 700; font-size: .78rem; text-decoration: none; color: var(--navy); }
.mobile-bar svg { width: 20px; height: 20px; }
.mobile-bar a:last-child { background: var(--navy); color: #fff; }
@media (min-width: 900px) { .mobile-bar { display: none; } }
@media (max-width: 899px) { body { padding-bottom: 58px; } }

/* ---------- Motion (chỉ ẩn khi JS chạy) ---------- */
.js [data-reveal] { opacity: 0; transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal="up"] { transform: translateY(36px); }
.js [data-reveal="rise3d"] { transform: perspective(1000px) translateY(50px) rotateX(10deg); transform-origin: 50% 100%; }
.js [data-reveal="flip"] { transform: perspective(900px) rotateY(-16deg) translateX(-24px); transform-origin: left center; }
.js [data-reveal="zoom"] { transform: scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.reduce [data-reveal] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
}
.loading-shell { min-height: 100svh; display: grid; place-items: center; background: var(--navy-deep); color: var(--on-dark-2); padding: 24px; text-align: center; }
.slab .side-a { display: flex; align-items: center; gap: 8px; padding-left: 10px; font: 800 .7rem/1 var(--f-display); color: var(--navy); letter-spacing: .04em; }
.slab .side-a i { font-style: normal; padding: 1px 5px; border-radius: 4px; background: var(--ok); color: #fff; }
.slab .side-a i.zero { background: #8E97A8; }
.slab .side-a { background: #D3E2F1; border-top: 1px solid #fff; }
.slab[aria-pressed="true"] .side-a { background: var(--sky); }
@media (max-width: 600px) { .eyebrow { letter-spacing: .12em; } }
@media (max-width: 899px) {
  .tower-head { position: relative; z-index: 1; margin-inline: -16px; padding: 4px 16px 28px; background: linear-gradient(180deg, rgba(243,247,251,.96) 65%, rgba(243,247,251,0)); }
  .tower.is-dusk .tower-head { background: linear-gradient(180deg, rgba(13,19,53,.92) 65%, rgba(13,19,53,0)); }
}
/* khối ghim (pin) tự chừa chỗ cho header: cuộn tới đúng mép trên */
#toa-nha, #hinh-anh, #top { scroll-margin-top: calc(-1 * (var(--header-h) + 16px)); }

/* ---------- Đặt theo giờ + thanh toán VietQR ---------- */
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 6px; margin-top: 6px; }
.slots button { display: grid; gap: 1px; padding: 8px 4px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); font: 700 .92rem var(--f-display); cursor: pointer; transition: border-color .2s, background-color .2s; }
.slots button small { font: 500 .72rem var(--f-body, inherit); color: var(--muted); }
.slots button:hover:not(:disabled) { border-color: var(--navy); }
.slots button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.slots button[aria-pressed="true"] small { color: #cfe8f5; }
.slots button:disabled { cursor: not-allowed; opacity: .45; text-decoration: line-through; }
.slots-msg { grid-column: 1 / -1; margin: 0; padding: 10px; border-radius: 10px; background: #F3F7FB; color: var(--muted); font-size: .9rem; }
.bk-sum { margin: 0; min-height: 1.4em; font-size: .95rem; }
.paybox h3 { margin-bottom: 10px; }
.pay-rows { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 0 0 12px; font-size: .92rem; }
.pay-rows dt { color: var(--muted); }
.pay-rows dd { margin: 0; overflow-wrap: anywhere; }
.paybox .copy { margin-left: 6px; padding: 2px 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; font-size: .75rem; cursor: pointer; }
.paybox .qr { display: block; width: min(100%, 300px); height: auto; margin: 4px auto 10px; border-radius: 12px; border: 1px solid var(--line); }
.pay-st { margin: 10px 0; padding: 10px 12px; border-radius: 10px; background: #F3F7FB; font-weight: 600; font-size: .92rem; }
.pay-st.ok { background: #E6F6EC; color: #145C32; }
.pay-st.bad { background: #FDECEC; color: #8A1C1C; }
