/* Lalalay Residences – giao diện website đại lý Wonera
   Màu theo bộ nhận diện dự án: cam đất nung, kem, nâu đậm, xanh băng. */
:root {
  --terra: #CF6F59;
  --terra-deep: #A94A35;
  --ice: #C5E9FB;
  --cream: #F4EDE0;
  --paper: #FBF8F2;
  --brown: #48250F;
  --brown-deep: #33190A;
  --ink: #3A2114;
  --muted: #7A6557;
  --line: rgba(72, 37, 15, .16);
  --line-light: rgba(244, 237, 224, .22);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: min(100% - 40px, 1280px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--brown); color: var(--cream); padding: 10px 16px; z-index: 100; }
.skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--terra-deep); outline-offset: 3px; }

h1, h2 { font-family: var(--serif); font-weight: 500; color: var(--brown); letter-spacing: -.01em; line-height: 1.08; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.2vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); }
h1 em { font-style: italic; color: var(--terra-deep); }
h3 { font-family: var(--sans); font-size: .95rem; font-weight: 600; color: var(--brown); letter-spacing: .01em; }
p { max-width: 62ch; }
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--terra-deep); margin-bottom: 18px; }
.lead { font-size: 1.06rem; color: var(--muted); }
.note { margin-top: 22px; font-size: .82rem; color: var(--muted); max-width: 80ch; }
.note.on-dark { color: rgba(244, 237, 224, .7); }
.sub { font-size: .86rem; color: var(--muted); }

/* Nút */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 26px;
  font-size: .86rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--brown); color: var(--cream); }
.btn-solid:hover { background: var(--terra-deep); }
.btn-line { border-color: var(--brown); color: var(--brown); }
.btn-line:hover { background: var(--brown); color: var(--cream); }
.btn-block { width: 100%; }

/* Đầu trang */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 237, 224, .9);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--line); background: rgba(251, 248, 242, .94); }
.header-row { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand img { width: 132px; height: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { font-size: .84rem; font-weight: 500; text-decoration: none; color: var(--brown); padding: 8px 0; position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--terra-deep); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }
.nav-cta { min-height: 42px; padding: 0 20px; font-size: .76rem; }
.nav-toggle { display: none; width: 46px; height: 46px; background: none; border: 0; padding: 0; cursor: pointer; position: relative; }
.nav-toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--brown); transition: transform .3s var(--ease); }
.nav-toggle span:first-child { top: 19px; }
.nav-toggle span:last-child { top: 27px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* Mở đầu */
.hero {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  min-height: calc(100dvh - var(--header-h));
  background: var(--cream);
}
.hero-text { display: flex; flex-direction: column; justify-content: center; padding: 64px 56px 72px max(20px, calc((100vw - 1280px) / 2)); }
.hero-text .lead { margin-top: 26px; max-width: 46ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 38px; }
.hero-media { position: relative; overflow: hidden; border-top-left-radius: clamp(120px, 22vw, 340px); background: var(--terra); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-media figcaption { position: absolute; right: 18px; bottom: 14px; font-size: .7rem; letter-spacing: .04em; color: rgba(255, 255, 255, .82); text-shadow: 0 1px 6px rgba(40, 18, 6, .5); }

.load { opacity: 0; transform: translateY(18px); animation: rise .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 80ms); }
@keyframes rise { to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Số liệu chính */
.facts { background: var(--cream); border-top: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.facts-grid > div { padding: 34px 20px 36px 0; display: flex; flex-direction: column-reverse; gap: 6px; }
.facts-grid > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.facts dt { font-size: .76rem; font-weight: 500; letter-spacing: .04em; color: var(--muted); }
.facts dd { font-family: var(--serif); font-size: clamp(2rem, 3.1vw, 2.9rem); line-height: 1; color: var(--brown); white-space: nowrap; }
.facts dd small, .plan-facts dd small { font-family: var(--sans); font-size: .8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* Khối nội dung chung */
section { position: relative; }
.concept, .overview, .amenities, .plan, .samples, .handover, .register { padding: clamp(56px, 7vw, 104px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 + p, .location-head h2 + p, .handover-head h2 + p, .register-info h2 + p, .pricing h2 + p { margin-top: 20px; color: var(--muted); }

/* Cảm hứng */
.concept { background: var(--cream); }
.concept-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.concept-text h2 { margin-bottom: 26px; max-width: 16ch; }
.concept-text p:not(.eyebrow) { color: var(--muted); font-size: 1.06rem; }
.concept-media { width: 100%; max-width: 420px; justify-self: end; }
.concept-media video { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 4px; background: var(--terra); }
.concept-media figcaption { margin-top: 10px; font-size: .8rem; color: var(--muted); }

/* Dùng chung: chữ chỉ dành cho trình đọc màn hình, hàng kêu gọi cuối mỗi phần */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.cta-row p { color: var(--muted); }

/* Tổng quan */
.overview { background: var(--cream); }
.overview-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.overview-media { position: sticky; top: calc(var(--header-h) + 28px); border-radius: 0 0 clamp(80px, 12vw, 180px) 0; overflow: hidden; }
.overview-media img { aspect-ratio: 4 / 4.6; object-fit: cover; width: 100%; }
.overview-text h2 { margin-bottom: 30px; }
.spec > div { display: grid; grid-template-columns: minmax(0, 210px) minmax(0, 1fr); gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); }
.spec > div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { font-size: .84rem; color: var(--muted); }
.spec dd { font-weight: 500; color: var(--brown); }
.spec dd .sub { font-weight: 400; }

/* Vị trí */
.location { background: var(--brown); color: var(--cream); padding: clamp(56px, 7vw, 104px) 0; }
.location h2 { color: var(--cream); }
.location .eyebrow { color: #E9A592; }
.location-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.location-head h2 + p { color: rgba(244, 237, 224, .78); }
.location-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.location-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 4px; background: var(--brown-deep); }
.location-video figcaption { margin-top: 10px; font-size: .8rem; color: rgba(244, 237, 224, .7); }
.location-map { border-radius: 4px; overflow: hidden; margin-top: clamp(28px, 4vw, 56px); }
.location-map img { width: 100%; }
.reach > li { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 18px; padding: 24px 0; border-top: 1px solid var(--line-light); }
.reach > li:last-child { border-bottom: 1px solid var(--line-light); }
.reach-time { font-size: .84rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(244, 237, 224, .7); line-height: 1; }
.reach-time b { display: block; font-family: var(--serif); font-weight: 500; font-size: 3.4rem; color: #E9A592; letter-spacing: 0; margin-bottom: 6px; }
.reach ul li { font-size: .94rem; padding: 3px 0; color: rgba(244, 237, 224, .92); }

/* Tiện ích */
.towers { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 5vw, 72px); padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: clamp(36px, 5vw, 64px); }
.tower-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-content: start; }
.tower-tabs button, .sample-tabs button, .chip {
  min-height: 46px; padding: 0 18px; background: transparent; border: 1px solid var(--line); border-radius: 999px;
  font-size: .84rem; font-weight: 500; color: var(--brown); cursor: pointer;
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease);
}
.tower-tabs button:hover, .sample-tabs button:hover, .chip:hover { border-color: var(--brown); }
.tower-tabs button:active, .sample-tabs button:active, .chip:active { transform: scale(.98); }
.tower-tabs button[aria-selected="true"], .sample-tabs button[aria-selected="true"], .chip.is-on { background: var(--brown); border-color: var(--brown); color: var(--cream); }
.tower-count { font-family: var(--serif); font-size: 1.7rem; color: var(--brown); margin-bottom: 14px; line-height: 1.2; }
.tower-panels ul { columns: 2; column-gap: 40px; }
.tower-panels li { break-inside: avoid; padding: 9px 0 9px 20px; position: relative; color: var(--ink); }
.tower-panels li::before { content: ""; position: absolute; left: 0; top: 1.15em; width: 8px; height: 1px; background: var(--terra-deep); }
[role="tabpanel"]:not([hidden]) { animation: fade .6s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Ảnh giữ nguyên tỉ lệ gốc, xếp so le theo cột */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.gallery img { width: 100%; border-radius: 4px; background: var(--cream); }
.gallery figcaption { margin-top: 10px; font-size: .82rem; font-weight: 500; color: var(--brown); }

.outdoor { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(20px, 5vw, 72px); margin-top: clamp(40px, 6vw, 72px); padding-top: 30px; border-top: 1px solid var(--line); }
.outdoor h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: 0; }
.outdoor ul { columns: 3; column-gap: 36px; }
.outdoor li { break-inside: avoid; padding: 8px 0; font-size: .94rem; border-bottom: 1px solid var(--line); }

/* Mặt bằng */
.plan { background: var(--cream); }
.plan-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.plan-facts > div { padding: 22px 16px 22px 0; display: flex; flex-direction: column-reverse; gap: 4px; }
.plan-facts > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.plan-facts dt { font-size: .76rem; color: var(--muted); }
.plan-facts dd { font-family: var(--serif); font-size: 2rem; line-height: 1.1; color: var(--brown); }
.plan-figure a { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #F1E9DF; cursor: zoom-in; }
.plan-figure img { width: 100%; }
.plan-figure figcaption { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.units { margin-top: clamp(40px, 6vw, 72px); }
.units-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.units-head h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 0 16px; font-size: .8rem; }
.table-scroll { overflow-x: auto; }
.unit-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.unit-table th { text-align: left; vertical-align: bottom; font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px 12px 0; border-bottom: 1px solid var(--brown); }
.unit-table td { padding: 13px 14px 13px 0; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.unit-table td:first-child { font-family: var(--serif); font-size: 1.3rem; color: var(--terra-deep); width: 110px; }
.unit-table td:nth-child(3) { font-weight: 600; color: var(--brown); }
.unit-table tbody tr { transition: background-color .25s var(--ease); }
.unit-table tbody tr:hover { background: rgba(207, 111, 89, .08); }
.units-empty { padding: 24px 0; color: var(--muted); }
.unit-table th:last-child, .unit-table td:last-child { text-align: right; padding-right: 0; width: 1%; }
.pick { min-height: 40px; padding: 0 16px; background: transparent; border: 1px solid var(--brown); border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--brown); white-space: nowrap; cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), transform .2s var(--ease); }
.pick:hover { background: var(--brown); color: var(--cream); }
.pick:active { transform: scale(.98); }

/* Chọn căn: sơ đồ tầng bên trái, layout 3D và giá dự kiến bên phải */
.chon { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 72px); align-items: start; margin-top: clamp(36px, 5vw, 60px); }
.chon-trai { position: sticky; top: calc(var(--header-h) + 24px); }
.chon-trai h3 { font-family: var(--serif); font-size: 1.7rem; font-weight: 500; letter-spacing: 0; margin-bottom: 18px; }
.chon-toa { margin: 26px 0 10px; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--terra-deep); }
#so-do { display: block; width: 100%; height: auto; }
#so-do polygon.loi { fill: #D9D2C8; }
#so-do .can { cursor: pointer; outline: none; }
#so-do .can polygon { fill: #FBF8F2; stroke: #6B4A36; stroke-width: 6; stroke-linejoin: round; transition: fill .25s var(--ease); }
#so-do .can text { font-family: var(--sans); font-size: 62px; font-weight: 600; fill: #6B4A36; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
#so-do .can:hover polygon, #so-do .can:focus-visible polygon { fill: #F3D9D0; }
#so-do .can.mo { opacity: .32; }
#so-do .can.chon polygon { fill: #C4482F; stroke: #7A1E0E; stroke-width: 9; }
#so-do .can.chon text { fill: #fff; font-size: 74px; }
.chon-goi-y { margin-top: 12px; font-size: .86rem; color: var(--muted); }
.chon-goi-y a { color: var(--terra-deep); font-weight: 600; }
.chon-phai { background: var(--paper); border: 1px solid var(--line); border-radius: 4px; padding: clamp(18px, 2.6vw, 34px); scroll-margin-top: calc(var(--header-h) + 8px); }
.chon-dau { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; align-items: center; gap: 12px; text-align: center; }
.chon-loai { max-width: none; font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--terra-deep); }
.chon-ma { max-width: none; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: 1.1; color: var(--brown); }
.chon-mui { width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; background: transparent; font-size: 1.7rem; line-height: 1; color: var(--brown); cursor: pointer; transition: background-color .3s var(--ease), color .3s var(--ease), transform .2s var(--ease); }
.chon-mui:hover { background: var(--brown); color: var(--cream); }
.chon-mui:active { transform: scale(.96); }
.chon-hinh { margin: 14px 0 6px; display: flex; justify-content: center; }
.chon-hinh img { width: auto; max-width: 100%; max-height: 520px; object-fit: contain; mix-blend-mode: multiply; } /* nền trắng của hình hòa vào nền khung */
.chon-so { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.chon-so > div { padding: 14px 0; display: flex; flex-direction: column-reverse; gap: 2px; }
.chon-so > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.chon-so dt { font-size: .76rem; color: var(--muted); }
.chon-so dd { font-family: var(--serif); font-size: 1.8rem; line-height: 1.1; color: var(--brown); }
#can-dt { color: var(--terra-deep); }
.gia-td { margin: 22px 0 10px; font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--brown); }
.gia-khoi { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.quy { border: 1.5px solid var(--brown); background: #F6EFE3; }
.quy h4 { margin: 0; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 12px; background: var(--brown); color: #fff; font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.quy h4 span { font-size: .72rem; font-weight: 500; letter-spacing: .02em; text-transform: none; white-space: nowrap; }
.quy dl { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 10px; padding: 2px 12px 4px; }
.quy dt, .quy dd { padding: 9px 0; border-bottom: 1px solid var(--line); }
.quy dt:last-of-type, .quy dd:last-of-type { border-bottom: 0; }
.quy dt { font-size: .8rem; color: var(--muted); }
.quy dd { text-align: right; font-size: 1.02rem; font-weight: 600; color: var(--brown); white-space: nowrap; font-variant-numeric: tabular-nums; }
.quy-2 { border-color: var(--terra-deep); background: #FBEDE8; }
.quy-2 h4 { background: var(--terra-deep); }
.quy-2 dd { color: var(--terra-deep); }
.chon-nut { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.chon-nut .btn { flex: 1 1 220px; }
.chon-phai .note { margin-top: 16px; font-size: .76rem; }
@media (max-width: 860px) {
  .chon { grid-template-columns: minmax(0, 1fr); }
  .chon-trai { position: static; }
  .gia-khoi { grid-template-columns: minmax(0, 1fr); }
  .chon-hinh img { max-height: 380px; }
  .chon-phai { margin-inline: -8px; }
}

/* Căn hộ mẫu */
.sample-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.sample-panel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 16px; }
.sample-panel figure { border-radius: 4px; overflow: hidden; background: var(--cream); }
.sample-panel img { width: 100%; }
.sample-panel.is-single { max-width: 980px; }

/* Bàn giao */
.handover { background: var(--cream); }
.handover-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.handover-head { position: sticky; top: calc(var(--header-h) + 28px); }
.handover-list { counter-reset: hg; }
.handover-list li { counter-increment: hg; display: grid; grid-template-columns: 64px minmax(0, 220px) minmax(0, 1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); align-items: baseline; }
.handover-list li:last-child { border-bottom: 1px solid var(--line); }
.handover-list li::before { content: counter(hg, decimal-leading-zero); font-family: var(--serif); font-size: 1.5rem; color: var(--terra-deep); }
.handover-list h3 { font-size: 1rem; }
.handover-list p { color: var(--muted); font-size: .94rem; }

/* Câu hỏi thường gặp */
.faq { background: var(--cream); padding: clamp(56px, 7vw, 104px) 0; }
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 6vw, 96px); align-items: start; }
.faq-head { position: sticky; top: calc(var(--header-h) + 28px); }
.faq-head h2 + p { margin-top: 20px; color: var(--muted); }
.faq-head a { color: var(--terra-deep); font-weight: 600; white-space: nowrap; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 48px; padding: 20px 0; font-weight: 600; color: var(--brown); cursor: pointer; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex: none; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; line-height: 1; color: var(--terra-deep); transition: transform .3s var(--ease); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { padding: 0 44px 22px 0; color: var(--muted); }
.faq-list details p:has(+ ul) { padding-bottom: 8px; }
.faq-list details ul { padding: 0 44px 22px 0; }
.faq-list details li { position: relative; padding: 5px 0 5px 20px; color: var(--muted); }
.faq-list details li::before { content: ""; position: absolute; left: 0; top: 1.05em; width: 8px; height: 1px; background: var(--terra-deep); }
.towers { margin-bottom: clamp(28px, 4vw, 48px); }

/* Giá và chính sách */
.pricing { background: var(--terra-deep); color: var(--cream); padding: clamp(56px, 7vw, 96px) 0; }
.pricing h2 { color: var(--cream); font-size: clamp(1.8rem, 3vw, 2.6rem); max-width: 22ch; }
.pricing .eyebrow { color: var(--ice); }
.pricing h2 + p { color: rgba(244, 237, 224, .88); }
.pricing-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.pricing .btn-solid { background: var(--cream); color: var(--brown); flex: none; }
.pricing .btn-solid:hover { background: #fff; }

/* Đăng ký */
.register-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.advisor { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 28px; align-items: center; }
.advisor-photo { width: 184px; aspect-ratio: 5 / 7; object-fit: cover; object-position: center top; border-radius: 92px 92px 4px 4px; }
@media (max-width: 480px) { .advisor { grid-template-columns: 136px minmax(0, 1fr); gap: 20px; } .advisor-photo { width: 136px; border-radius: 68px 68px 4px 4px; } }
.advisor-logo { width: 124px; margin-top: 12px; }
.advisor-zalo { display: inline-flex; align-items: center; min-height: 44px; margin-top: 6px; padding: 0 22px; border: 1px solid var(--brown); border-radius: 999px; font-size: .8rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--brown); }
.advisor-zalo:hover { background: var(--brown); color: var(--cream); }
.footer-wonera { width: 136px; margin-bottom: 18px; }
.advisor-name { font-family: var(--serif); font-size: clamp(1.45rem, 5.6vw, 1.9rem); color: var(--brown); line-height: 1.2; }
.advisor p { color: var(--muted); }
.advisor-phone { margin-top: 10px; }
.advisor-phone a { font-family: var(--serif); font-size: 1.7rem; color: var(--terra-deep); text-decoration: none; }
.form { background: var(--cream); padding: clamp(24px, 4vw, 48px); border-radius: 4px; display: grid; gap: 20px; }
.field { display: grid; gap: 8px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--brown); }
.field label span { color: var(--terra-deep); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 16px; background: var(--paper);
  border: 1px solid var(--line); border-radius: 4px; font-size: 1rem;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brown); box-shadow: 0 0 0 3px rgba(207, 111, 89, .22); }
.field.has-error input { border-color: #A32A1A; }
.hint { font-size: .78rem; color: var(--muted); }
.error { font-size: .8rem; color: #A32A1A; min-height: 0; }
.error:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { font-size: .9rem; font-weight: 500; }
.form-status:empty { display: none; }
.form-status.is-ok { color: #2E5E3A; }
.form-status.is-bad { color: #A32A1A; }
.consent { font-size: .78rem; color: var(--muted); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* Cuối trang */
.site-footer { background: var(--brown-deep); color: rgba(244, 237, 224, .82); padding: 72px 0 110px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 40px; }
.footer-logo { width: 170px; margin-bottom: 22px; }
.footer-title { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #E9A592; margin-bottom: 16px; }
.site-footer p { margin-bottom: 6px; }
.site-footer nav a { display: block; padding: 5px 0; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-light); }
.footer-legal p { max-width: 96ch; font-size: .78rem; color: rgba(244, 237, 224, .6); }

/* Thanh liên hệ trên điện thoại */
.mobile-bar { display: none; }

/* Màn hình vừa */
@media (max-width: 1080px) {
  .nav { gap: 20px; }
  .nav a:not(.btn) { font-size: .8rem; }
  .facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .facts-grid > div:nth-child(4) { padding-left: 0; border-left: 0; }
  .facts-grid > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .outdoor ul { columns: 2; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .handover-list li { grid-template-columns: 52px minmax(0, 1fr); }
  .handover-list li p { grid-column: 2; }
}

/* Điện thoại và máy tính bảng dọc */
@media (max-width: 860px) {
  :root { --header-h: 64px; }
  .brand img { width: 112px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; flex-direction: column; align-items: stretch; gap: 0;
    padding: 12px 20px 32px; background: var(--paper); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { font-family: var(--serif); font-size: 1.7rem; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav-cta { margin-top: 24px; min-height: 52px; font-size: .86rem; }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  /* Điện thoại: ảnh tòa nhà lên trước, chỉ giữ một nút vì thanh dưới màn hình đã có nút nhận bảng giá */
  .hero-text { padding: 28px 20px 36px; }
  .hero-text .lead { margin-top: 18px; }
  .hero-media { order: -1; border-radius: 0 0 96px 0; aspect-ratio: 8 / 5; }
  .hero-media figcaption { right: auto; left: 12px; bottom: 12px; padding: 3px 9px; border-radius: 3px; background: rgba(40, 18, 6, .5); text-shadow: none; color: #fff; }
  .hero-actions { margin-top: 26px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-cta-2 { display: none; }

  .facts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts-grid > div { padding: 22px 12px 24px 0; }
  .facts-grid > div + div { padding-left: 0; border-left: 0; }
  .facts-grid > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .facts-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }

  .concept-grid, .overview-grid, .location-grid, .towers, .outdoor, .handover-grid, .faq-grid, .register-grid, .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .concept-media { max-width: none; justify-self: stretch; }
  .overview-media, .handover-head, .faq-head { position: static; }
  .cta-row .btn { width: 100%; }
  .pick { min-height: 44px; padding: 0 12px; }
  .pick span { display: none; }
  .unit-table td { padding-right: 8px; }
  .faq-list details p { padding-right: 0; }
  .overview-media img { aspect-ratio: 4 / 3; }
  .spec > div { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 13px 0; }
  .reach > li { grid-template-columns: 84px minmax(0, 1fr); }
  .reach-time b { font-size: 2.6rem; }
  .tower-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .tower-tabs button { padding: 0 6px; }
  .tower-panels ul { columns: 1; }
  /* Điện thoại: vuốt ngang để xem ảnh tiện ích */
  .gallery { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery figure { scroll-snap-align: start; }
  .outdoor ul { columns: 1; }
  .plan-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan-facts > div + div { padding-left: 0; border-left: 0; }
  .plan-facts > div:nth-child(even) { padding-left: 18px; border-left: 1px solid var(--line); }
  .plan-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .plan-facts > div:last-child { grid-column: 1 / -1; }
  /* Điện thoại: vuốt ngang để xem từng ảnh */
  .sample-panel { grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; scrollbar-width: none; }
  .sample-panel::-webkit-scrollbar { display: none; }
  .sample-panel figure { scroll-snap-align: start; }
  .sample-panel.is-single { grid-auto-columns: 100%; }
  .sample-tabs { flex-wrap: nowrap; gap: 6px; }
  .sample-tabs button { flex: 1 1 0; padding: 0 6px; font-size: .78rem; }
  .unit-table { min-width: 0; }
  .unit-table td { white-space: nowrap; }
  .unit-table th:nth-child(4), .unit-table td:nth-child(4) { display: none; }
  .unit-table td:first-child { width: 72px; }
  .pricing-row { flex-direction: column; align-items: flex-start; gap: 26px; }
  .pricing .btn { width: 100%; }
  .site-footer { padding-bottom: 120px; }

  .mobile-bar {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr); gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(251, 248, 242, .96); border-top: 1px solid var(--line);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  }
  .mobile-bar a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 999px; border: 1px solid var(--brown); font-size: .78rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--brown); text-align: center; }
  .mobile-bar a.is-main { background: var(--brown); color: var(--cream); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .load, .reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .gallery img { transition: none; }
}

/* Đợt 24/11: giá trên màn hình đầu, thông tin dự án thu gọn, trang chính sách */
.hero-gia { margin-top: 22px; font-size: .95rem; color: var(--brown); }
.hero-gia b { font-family: var(--serif); font-weight: 500; font-size: 2.1rem; line-height: 1; color: var(--terra-deep); margin-left: 6px; }
.hero-gia span { display: block; margin-top: 4px; font-size: .78rem; color: var(--muted); }
.hero-gia + .hero-actions { margin-top: 24px; }
.overview { background: var(--paper); }
.spec-them { margin-top: 6px; }
.spec-them summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-size: .86rem; font-weight: 600; color: var(--terra-deep); cursor: pointer; }
.spec-them summary::-webkit-details-marker { display: none; }
.spec-them summary::after { content: "+"; font-family: var(--serif); font-size: 1.5rem; line-height: 1; transition: transform .3s var(--ease); }
.spec-them[open] summary::after { transform: rotate(45deg); }
.spec-them .spec > div:last-child { border-bottom: 1px solid var(--line); }
.chon-co-cau { margin-top: 26px; }
.consent a { color: var(--terra-deep); }
.trang-chu-de { padding: clamp(56px, 7vw, 96px) 0; }
.trang-chu-de .wrap { max-width: 820px; }
.trang-chu-de h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 12px; }
.trang-chu-de h2 { font-size: 1.5rem; margin: 36px 0 10px; }
.trang-chu-de p, .trang-chu-de li { max-width: none; color: var(--ink); }
.trang-chu-de ul { list-style: disc; padding-left: 22px; }
.trang-chu-de li { padding: 3px 0; }
.trang-chu-de .ve-trang-chinh { display: inline-block; margin-top: 40px; }
@media (max-width: 860px) { .hero-gia { margin-top: 16px; } }

/* Màn hình đầu trên điện thoại: thu gọn để nút chính nằm trong màn hình đầu */
@media (max-width: 860px) {
  .hero-media { aspect-ratio: 2 / 1; }
  .hero-text { padding-top: 22px; }
  .hero-text .eyebrow { margin-bottom: 12px; }
  .hero-text .lead { margin-top: 12px; font-size: 1rem; }
  .hero-gia { margin-top: 12px; }
  .hero-gia + .hero-actions { margin-top: 16px; }
  h1 { font-size: clamp(2.1rem, 9.4vw, 2.5rem); }
}
