/* =========================================================
   Tấn Nghĩa · Góc Nhìn Bất Động Sản
   Xanh rừng đậm + vàng đồng (theme ở cuối file ghi đè bảng màu)
   ========================================================= */
:root {
  --green: #2D6A4F;
  --green-dark: #1B4332;
  --green-tint: #EEF5F1;
  --ink: #111827;
  --ink-2: #4B5563;
  --ink-3: #6B7280;
  --line: #E5E7EB;
  --bg: #FFFFFF;
  --bg-2: #F8FAF9;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.section { padding: clamp(80px, 11vw, 144px) 0; }
.section--tint { background: var(--bg-2); }
.section--green { background: var(--green); color: #fff; }

.kicker {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green);
}
.kicker::before { content: ""; display: inline-block; width: 24px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 10px; transform: translateY(-2px); }
.section--green .kicker { color: #B7E4C7; }

.h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
.h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
.h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-2); max-width: 56ch; }
.section--green .lead { color: rgba(255,255,255,.82); }
.muted { color: var(--ink-3); }
.note { font-size: 13px; color: var(--ink-3); margin-top: 20px; max-width: 80ch; }
.stack > * + * { margin-top: 20px; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.9); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand .brand-mark { width: 36px; height: 36px; border-radius: 8px; background: var(--green); color: #fff; display: grid; place-items: center; font-family: var(--serif); font-weight: 600; font-size: 15px; }
.brand b { display: block; font-weight: 600; font-size: 15px; line-height: 1.2; }
.brand span { display: block; font-size: 12px; color: var(--ink-3); line-height: 1.2; }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 15px; color: var(--ink-2); white-space: nowrap; transition: color .3s var(--ease); position: relative; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--green); }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -25px; height: 2px; background: var(--green); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 10px; background: #fff; position: relative; cursor: pointer; }
.burger i { position: absolute; left: 12px; width: 18px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease), top .4s var(--ease); }
.burger i:nth-child(1) { top: 17px; } .burger i:nth-child(2) { top: 25px; }
.menu-open .burger i:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger i:nth-child(2) { top: 21px; transform: rotate(-45deg); }
.overlay {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 39; background: #fff;
  display: flex; flex-direction: column; padding: 24px 20px;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.menu-open .overlay { opacity: 1; pointer-events: auto; }
.overlay a { font-family: var(--serif); font-size: 1.6rem; padding: 14px 0; border-bottom: 1px solid var(--line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border-radius: 10px; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  background: var(--green); color: #fff;
  transition: background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn:hover { background: var(--green-dark); box-shadow: 0 10px 24px -12px rgba(45,106,79,.7); }
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--line:hover { background: var(--ink); color: #fff; box-shadow: none; }
.btn--white { background: #fff; color: var(--green-dark); }
.btn--white:hover { background: var(--green-tint); }
.btn--sm { min-height: 42px; padding: 0 18px; font-size: 15px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green); }
.link svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ---------- FULL-BLEED "slide" ---------- */
.bleed {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end;
  padding: calc(var(--nav-h) + 40px) 0 clamp(32px, 6vw, 72px); overflow: hidden; isolation: isolate;
}
.bleed--center { align-items: center; }
.bleed--top { align-items: flex-start; }
.bleed--top::before { background: linear-gradient(180deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,0) 40%); }
.bleed > img.bg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2;
  object-fit: cover; /* phủ kín khung, giữ nguyên tỉ lệ ảnh — không kéo giãn */
  object-position: var(--pos, center);
}
.bleed::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0,0,0,0) 45%, rgba(0,0,0,.28) 100%); }
.bleed .wrap { display: flex; }
.bleed--right .wrap { justify-content: flex-end; }
.glass {
  width: min(560px, 100%); padding: clamp(28px, 4vw, 44px); border-radius: 16px;
  background: rgba(255,255,255,.84);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.6);
}
.glass--wide { width: min(680px, 100%); }
.glass--narrow { width: min(440px, 100%); }
.glass .h1, .glass .h2 { margin: 14px 0 16px; }
.glass .lead { font-size: 1.05rem; }
.glass .actions { margin-top: 28px; }
.glass .ticks { margin-top: 22px; }
.caption { position: absolute; right: 16px; bottom: 12px; font-size: 11px; color: rgba(255,255,255,.85); text-shadow: 0 1px 2px rgba(0,0,0,.5); }

/* ---------- ticks ---------- */
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.ticks li b { color: var(--ink); font-weight: 600; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.stats--4 { grid-template-columns: repeat(4, 1fr); }
.stat { padding: 36px 32px 0 0; }
.stat + .stat { padding-left: 32px; border-left: 1px solid var(--line); }
.stat b { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1; color: var(--green); }
.stat span { display: block; margin-top: 12px; color: var(--ink-2); max-width: 26ch; }
.section--green .stats { border-color: rgba(255,255,255,.2); }
.section--green .stat + .stat { border-color: rgba(255,255,255,.2); }
.section--green .stat b { color: #fff; }
.section--green .stat span { color: rgba(255,255,255,.8); }

/* ---------- head ---------- */
.head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.head h2 { margin-top: 14px; }

/* ---------- cards ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .4s var(--ease), transform .4s var(--ease); }
a.card:hover { box-shadow: 0 24px 48px -28px rgba(17,24,39,.35); transform: translateY(-3px); }
.card .media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-2); }
.card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
a.card:hover .media img { transform: scale(1.04); }
.card .body { padding: 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.card .tag { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.card p { color: var(--ink-2); }
.card .link { margin-top: auto; padding-top: 8px; }

.card .media--wide { aspect-ratio: 16 / 9; background: #111; }
.card .media--tall { aspect-ratio: 4 / 5; }

/* lợi ích nổi bật */
.benefits { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.benefit { background: #fff; color: var(--ink); border-radius: 16px; padding: 28px 24px; box-shadow: 0 24px 48px -28px rgba(0,0,0,.5); transition: transform .4s var(--ease); }
.benefit:hover { transform: translateY(-4px); }
.benefit .bi { width: 48px; height: 48px; border-radius: 12px; background: var(--green-tint); color: var(--green); display: grid; place-items: center; }
.benefit .bi svg { width: 24px; height: 24px; }
.benefit b { display: block; margin-top: 20px; font-family: var(--serif); font-size: clamp(2.4rem, 3.6vw, 3.2rem); line-height: 1; color: var(--green); }
.benefit h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin: 12px 0 8px; }
.benefit p { font-size: 15px; color: var(--ink-2); }

/* thẻ có ảnh (tiện ích, kết nối) */
.icards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.icards--2 { grid-template-columns: repeat(2, 1fr); }
.icard { border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.icard .media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-2); }
.icard .media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.icard:hover .media img { transform: scale(1.04); }
.icard .body { padding: 22px 24px 26px; }
.icard .n { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; color: var(--green); line-height: 1.1; }
.icard h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; letter-spacing: 0; margin: 8px 0 6px; }
.icard p { font-size: 15px; color: var(--ink-2); }

/* ảnh đôi rừng – biển */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.duo figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; }
.duo img { width: 100%; height: 100%; object-fit: cover; }
.duo figcaption { position: absolute; left: 16px; bottom: 16px; right: 16px; padding: 14px 18px; border-radius: 12px; background: rgba(255,255,255,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.duo figcaption b { display: block; font-family: var(--serif); font-size: 1.3rem; color: var(--green-dark); }
.duo figcaption span { font-size: 14px; color: var(--ink-2); }

.step { padding-top: 28px; border-top: 2px solid var(--green); }
.step .n { font-family: var(--serif); font-size: 15px; font-weight: 600; color: var(--green); }
.step h3 { margin: 10px 0 10px; }
.step p { color: var(--ink-2); }
.section--green .step { border-color: #B7E4C7; }
.section--green .step .n { color: #B7E4C7; }
.section--green .step p { color: rgba(255,255,255,.8); }

/* ---------- about ---------- */
.about { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.portrait { border-radius: 14px; overflow: hidden; background: var(--bg-2); }
.portrait img { width: 100%; height: auto; } /* hiển thị đúng tỉ lệ gốc */
.badges { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.badge { padding: 18px 20px; border-radius: 12px; background: var(--green-tint); }
.badge small { display: block; font-size: 12px; color: var(--green); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.badge b { display: block; margin-top: 4px; font-weight: 600; line-height: 1.35; }
.certs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; max-width: 760px; }
.certs figure { margin: 0; }
.certs img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.certs figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

/* ---------- gallery lướt ngang ---------- */
.gallery-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.gallery-head h2 { margin-top: 14px; }
.gnav { display: flex; gap: 10px; flex: none; }
.gbtn { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease); }
.gbtn:hover { background: var(--green); color: #fff; border-color: var(--green); }
.gbtn svg { width: 20px; height: 20px; }
.gallery {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 4px max(16px, calc((100vw - 1180px) / 2)) 20px; scroll-padding-inline: max(16px, calc((100vw - 1180px) / 2));
  scrollbar-width: thin; scrollbar-color: var(--green) transparent; -webkit-overflow-scrolling: touch;
}
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-thumb { background: var(--green); border-radius: 3px; }
.gallery figure { flex: none; margin: 0; scroll-snap-align: start; }
.gallery img {
  height: clamp(240px, 38vw, 440px); width: auto; /* chiều cao cố định, chiều rộng theo tỉ lệ gốc — không méo, không cắt */
  border-radius: 12px; background: var(--bg-2); cursor: zoom-in; transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.gallery img:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(17,24,39,.45); }
.gallery figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-2); max-width: 46ch; }
.gallery-hint { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 60; background: rgba(10,14,12,.94); display: none; align-items: center; justify-content: center; flex-direction: column; padding: 56px 16px 24px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 8px; }
.lightbox p { color: rgba(255,255,255,.85); font-size: 14px; margin-top: 14px; text-align: center; }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 14px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 14px; top: 50%; transform: translateY(-50%); }

/* ---------- video ---------- */
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.video-card video { width: 100%; aspect-ratio: 16 / 9; background: #0b0f0d; border-radius: 12px; display: block; object-fit: contain; }
.video-card h3 { margin-top: 16px; font-size: 1.15rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0; }
.video-card p { color: var(--ink-2); font-size: 15px; margin-top: 4px; }
.video-card.is-missing { display: none; }
.video-feature { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.video-feature--vertical { grid-template-columns: minmax(260px, 380px) 1fr; }
.video-feature--vertical .video-card video { aspect-ratio: 9 / 16; max-height: 78vh; }
.video-pair { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.video-pair__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.video-pair__grid video { aspect-ratio: 9 / 16; max-height: 76vh; }
@media (max-width: 1023px) {
  .video-pair { grid-template-columns: 1fr; }
  .video-feature, .video-feature--vertical { grid-template-columns: 1fr; }
  .video-feature--vertical .video-card { max-width: 380px; }
}

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
.table th, .table td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; background: var(--bg-2); }
.table td:first-child { font-weight: 600; color: var(--green-dark); white-space: nowrap; }

/* ---------- form ---------- */
.lead-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.form-card { background: #fff; color: var(--ink); border-radius: 16px; padding: clamp(28px, 4vw, 40px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.35); }
.form { display: grid; gap: 16px; margin-top: 8px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.field input, .field select {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; color: var(--ink); transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(45,106,79,.15); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-3); }
.consent input { margin-top: 3px; accent-color: var(--green); width: 16px; height: 16px; flex: none; }
.form-msg { font-size: 14px; color: var(--green); min-height: 1.2em; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 44px 22px 0; position: relative; font-weight: 600; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 1.6rem; font-weight: 300; color: var(--green); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 24px; color: var(--ink-2); max-width: 70ch; }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 64px 0 110px; font-size: 15px; color: var(--ink-2); }
.footer .cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 14px; color: var(--ink); margin: 0 0 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--green); }
.disclaimer { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-3); }

/* ---------- floating contact ---------- */
.float-cta { position: fixed; right: 20px; bottom: 20px; z-index: 30; display: flex; flex-direction: column; gap: 10px; }
.float-cta a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 13px; box-shadow: 0 12px 28px -10px rgba(0,0,0,.4); transition: transform .3s var(--ease); }
.float-cta a:hover { transform: translateY(-3px); }
.float-cta .zalo { background: #0068FF; }
.float-cta .call { background: var(--green); }
.float-cta svg { width: 22px; height: 22px; }
.mobile-bar { display: none; }

/* =========================================================
   THEME: XANH RỪNG ĐẬM + VÀNG ĐỒNG
   ========================================================= */
:root {
  --green: #C9A46A;          /* vàng đồng – màu nhấn */
  --green-dark: #DDBE86;
  --green-tint: rgba(201,164,106,.12);
  --ink: #F2EDE3;
  --ink-2: rgba(242,237,227,.74);
  --ink-3: rgba(242,237,227,.52);
  --line: rgba(201,164,106,.18);
  --bg: #0E1F18;             /* xanh rừng đậm */
  --bg-2: #132A21;
  --panel: #17332A;
  --deep: #091610;
}
body { background: var(--bg); }
::selection { background: var(--green); color: var(--deep); }
.section--tint { background: var(--bg-2); }
.section--green { background: var(--deep); color: var(--ink); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--green .kicker, .section--green .step .n { color: var(--green); }
.section--green .lead, .section--green .step p { color: var(--ink-2); }
.section--green .stat b { color: var(--green); }
.section--green .step { border-color: var(--green); }
.h1, .h2 { letter-spacing: -0.01em; }
.h2 em, .h1 em { font-style: italic; color: var(--green); font-weight: 500; }

.nav { background: rgba(14,31,24,.86); }
.brand .brand-mark { color: var(--deep); }
.burger { background: transparent; }
.overlay { background: var(--bg); }

.btn { color: var(--deep); }
.btn:hover { background: var(--green-dark); box-shadow: 0 12px 28px -14px rgba(201,164,106,.8); }
.btn--line { color: var(--ink); box-shadow: inset 0 0 0 1.5px rgba(242,237,227,.5); }
.btn--line:hover { background: var(--ink); color: var(--deep); }
.btn--white { background: var(--ink); color: var(--deep); }
.btn--white:hover { background: #fff; }

.glass { background: rgba(10,24,18,.78); color: var(--ink); box-shadow: 0 30px 60px -30px rgba(0,0,0,.6), inset 0 0 0 1px rgba(201,164,106,.28); }
.bleed::before { background: linear-gradient(180deg, rgba(9,22,16,.15) 0%, rgba(9,22,16,0) 35%, rgba(9,22,16,.55) 100%); }
.ticks li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23091610' stroke-width='3'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E"); }

.card, .icard, .gbtn { background: var(--bg-2); }
.section--tint .card, .section--tint .icard { background: var(--panel); }
a.card:hover { box-shadow: 0 24px 48px -24px rgba(0,0,0,.7); }
.benefit { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -28px rgba(0,0,0,.6); }
.form-card { background: var(--panel); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0,0,0,.6); }
.field input, .field select { background: var(--deep); color: var(--ink); }
.field input::placeholder { color: var(--ink-3); }
.gbtn:hover { color: var(--deep); }
.table th { background: var(--panel); }
.table td:first-child { color: var(--green); }
.duo figcaption { background: rgba(10,24,18,.82); }
.duo figcaption b { color: var(--green); }
.portrait, .certs img { box-shadow: 0 0 0 1px var(--line); }
.float-cta .call { color: var(--deep); }
.footer { background: var(--deep); }

/* ---------- thẻ dự án xòe (bộ bài) ---------- */
.fan { position: relative; height: clamp(360px, 42vw, 520px); margin-top: 48px; }
.fan a {
  position: absolute; bottom: 0; left: 50%; width: clamp(220px, 24vw, 320px); aspect-ratio: 3 / 4;
  border-radius: 16px; overflow: hidden; background: var(--panel); box-shadow: 0 30px 60px -20px rgba(0,0,0,.7), inset 0 0 0 1px var(--line);
  transform-origin: 50% 120%; transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.fan a img { width: 100%; height: 100%; object-fit: cover; }
.fan a::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(9,22,16,0) 40%, rgba(9,22,16,.92) 100%); }
.fan .fc { position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 1; }
.fan .fc small { display: block; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--green); font-weight: 600; }
.fan .fc b { display: block; margin-top: 6px; font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; color: #fff; }
.fan .fc span { display: block; margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.fan a:nth-child(1) { transform: translateX(-160%) rotate(-12deg); }
.fan a:nth-child(2) { transform: translateX(-90%) rotate(-4deg) translateY(-14px); z-index: 2; }
.fan a:nth-child(3) { transform: translateX(-10%) rotate(4deg) translateY(-14px); z-index: 2; }
.fan a:nth-child(4) { transform: translateX(60%) rotate(12deg); }
.fan a:hover { z-index: 5; box-shadow: 0 40px 80px -20px rgba(0,0,0,.8), inset 0 0 0 1.5px var(--green); }
.fan a:nth-child(1):hover { transform: translateX(-160%) rotate(-12deg) translateY(-36px); }
.fan a:nth-child(2):hover { transform: translateX(-90%) rotate(-4deg) translateY(-50px); }
.fan a:nth-child(3):hover { transform: translateX(-10%) rotate(4deg) translateY(-50px); }
.fan a:nth-child(4):hover { transform: translateX(60%) rotate(12deg) translateY(-36px); }
.fan-hint { text-align: center; font-size: 13px; color: var(--ink-3); margin-top: 20px; }

/* ---------- những điều không làm ---------- */
.nots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.not { padding: 26px 24px; border-radius: 14px; background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line); }
.not .x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: rgba(201,90,70,.14); color: #E58C78; font-weight: 700; }
.not h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin: 14px 0 6px; }
.not p { font-size: 15px; color: var(--ink-2); }
.promise { margin-top: 32px; padding: 22px 26px; border-radius: 14px; background: var(--green-tint); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--serif); font-size: clamp(1.1rem, 1.8vw, 1.35rem); font-style: italic; }
.promise b { color: var(--green); font-style: normal; }

/* ---------- bảng tính dòng tiền ---------- */
.calc { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: start; }
.calc-in, .calc-out { background: var(--panel); border-radius: 16px; padding: clamp(22px, 3vw, 32px); box-shadow: inset 0 0 0 1px var(--line); }
.calc-in { display: grid; gap: 18px; align-self: start; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 9px 14px; border-radius: 999px; font-size: 14px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); transition: background .25s, color .25s; }
.seg input:checked + span { background: var(--green); color: var(--deep); font-weight: 600; box-shadow: none; }
.seg input:focus-visible + span { outline: 2px solid var(--green); outline-offset: 2px; }
.calc-total { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; }
.calc-total div { background: var(--deep); padding: 18px 16px; }
.calc-total small { display: block; font-size: 12px; color: var(--ink-3); letter-spacing: .04em; }
.calc-total b { display: block; margin-top: 6px; font-family: var(--serif); font-size: clamp(1.3rem, 2.2vw, 1.75rem); color: var(--green); line-height: 1.1; }
.calc-out .table-wrap { margin-top: 20px; }
.calc-out .table { min-width: 0; font-size: 14px; }
.calc-out .table td:last-child, .calc-out .table th:last-child { text-align: right; white-space: nowrap; }
.calc-out .table tr.grp td, .calc-out .table tr.sub td { text-align: left; white-space: normal; }
.calc-out .table tr.sub td { color: var(--ink-3); font-size: 13px; padding-top: 6px; padding-bottom: 6px; }
.calc-out .table tr.grp td { background: rgba(201,164,106,.08); color: var(--green); font-weight: 600; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.calc-note { font-size: 13px; color: var(--ink-3); margin-top: 16px; }

/* ---------- giao dịch thành công ---------- */
.deal-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 36px; }
.deal-stats div { background: var(--panel); padding: 24px 22px; }
.deal-stats b { display: block; font-family: var(--serif); font-size: clamp(2rem, 3.6vw, 2.8rem); color: var(--green); line-height: 1; }
.deal-stats span { display: block; margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.deals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.deals figure { margin: 0; }
.deals img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -30px rgba(0,0,0,.7); cursor: zoom-in; }
.deals figcaption { margin-top: 12px; }
.deals figcaption b { display: block; color: var(--ink); font-weight: 600; }
.deals figcaption span { color: var(--green); font-size: 15px; }
@media (max-width: 767px) {
  .deal-stats { grid-template-columns: 1fr; }
  .deals { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 14px; margin-inline: -16px; padding: 0 16px 8px; }
  .deals figure { flex: none; width: 72%; scroll-snap-align: start; }
}

/* ---------- móc câu dưới bảng tính ---------- */
.hook { grid-column: 1 / -1; position: relative; z-index: 1; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  margin-top: 8px; padding: clamp(24px, 3.5vw, 40px); border-radius: 18px;
  background: linear-gradient(135deg, rgba(201,164,106,.18), rgba(201,164,106,.05)); box-shadow: inset 0 0 0 1px rgba(201,164,106,.45); }
.hook h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 12px 0 10px; }
.hook h3 em { color: var(--green); }
.hook p { color: var(--ink-2); }
.form-done { padding: 22px; border-radius: 14px; background: var(--deep); box-shadow: inset 0 0 0 1px var(--green); }
.form-done b { color: var(--green); }
.form-done p { margin: 8px 0 16px; color: var(--ink-2); }
form.is-done { display: none; }
.print-only { display: none; }

/* ---------- in / lưu PDF bảng tính ---------- */
@media print {
  @page { margin: 14mm; }
  body { background: #fff !important; color: #111 !important; }
  body::after, .nav, .overlay, .float-cta, .mobile-bar, footer, .lightbox { display: none !important; }
  main > *:not(#tinh-tien) { display: none !important; }
  #tinh-tien { padding: 0 !important; }
  #tinh-tien .kicker, #tinh-tien .h2, #tinh-tien .lead, .calc-in, .hook { display: none !important; }
  .calc { display: block !important; }
  .calc-out { background: #fff !important; box-shadow: none !important; padding: 0 !important; opacity: 1 !important; transform: none !important; }
  .print-only { display: block !important; }
  .print-head { margin-bottom: 16px; border-bottom: 2px solid #C9A46A; padding-bottom: 10px; }
  .print-head b { display: block; font-size: 20px; letter-spacing: .08em; }
  .print-head span { font-size: 13px; color: #444; }
  .calc-total, .calc-total div { background: #fff !important; }
  .calc-total { border: 1px solid #ccc; }
  .calc-total small, .calc-note, .print-foot { color: #555 !important; }
  .calc-total b, .table td:first-child, .calc-out .table tr.grp td { color: #8A6A32 !important; }
  .table-wrap { border-color: #ccc !important; }
  .table th { background: #f3efe6 !important; color: #333 !important; }
  .table td, .table th { border-color: #ddd !important; color: #111 !important; }
  .print-foot { margin-top: 14px; font-size: 12px; border-top: 1px solid #ddd; padding-top: 8px; }
}

/* ---------- chips ngân sách / nhu cầu trong form ---------- */
.chips { display: grid; gap: 8px; }
.chips > span { font-size: 14px; font-weight: 500; color: var(--ink-2); }

@media (max-width: 1023px) {
  .calc { grid-template-columns: 1fr; }
  .hook { grid-template-columns: 1fr; }
  .calc-in { position: static; }
  .nots { grid-template-columns: 1fr 1fr; }
  .fan { height: auto; display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 16px 24px; margin-inline: -16px; }
  .fan a, .fan a:nth-child(n), .fan a:nth-child(n):hover { position: relative; left: auto; flex: none; width: 240px; transform: none; scroll-snap-align: start; }
}
@media (max-width: 767px) {
  .mobile-bar { background: rgba(9,22,16,.96); }
  .mobile-bar .call { color: var(--deep); }
  .nots { grid-template-columns: 1fr; }
  .calc-total { grid-template-columns: 1fr; }
  .calc-in, .calc-out { padding: 18px 14px; }
  .calc-out .table th, .calc-out .table td { padding: 12px 10px; }
  .calc-out .table th:first-child, .calc-out .table td:first-child { width: 1%; }
  .calc-out .table td:nth-child(2) { min-width: 120px; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
main > .bleed:first-child .reveal { opacity: 1; transform: none; } /* slide đầu hiện ngay */
.d1 { transition-delay: .08s } .d2 { transition-delay: .16s } .d3 { transition-delay: .24s }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
  .nav-links, .nav .btn { display: none; }
  .burger { display: block; }
  .head, .about, .lead-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; }
  .icards { grid-template-columns: 1fr 1fr; }
  .stats--4 { grid-template-columns: 1fr 1fr; }
  .stats--4 .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  :root { --nav-h: 64px; }
  .bleed { min-height: 92svh; padding-bottom: 16px; }
  .bleed--right .wrap { justify-content: flex-start; }
  .glass { padding: 24px; }
  .grid-2, .grid-3, .form .row, .badges { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat, .stat + .stat { padding: 28px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .stats--4 { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .stats--4 .stat b { font-size: 2.1rem; }
  .caption { display: none; }
  .certs { grid-template-columns: 1fr 1fr; gap: 14px; }
  .footer .cols { grid-template-columns: 1fr; }
  .float-cta { display: none; }
  .video-grid { grid-template-columns: 1fr; }
  .benefits { grid-template-columns: 1fr 1fr; gap: 12px; }
  .benefit { padding: 20px 16px; }
  .benefit b { font-size: 2rem; }
  .benefit p { font-size: 14px; }
  .icards, .icards--2, .duo { grid-template-columns: 1fr; }
  .video-pair__grid { gap: 12px; }
  .video-pair__grid h3 { font-size: 1rem; }
  .video-pair__grid p { font-size: 13px; }
  .gnav { display: none; }
  .gallery img { height: 210px; } /* ảnh kế tiếp ló ra ở mép để khách biết lướt được */
  .gallery figcaption { max-width: 30ch; font-size: 13px; }
  .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); border-top: 1px solid var(--line);
  }
  .mobile-bar a { text-align: center; padding: 13px; border-radius: 10px; font-weight: 600; font-size: 15px; color: #fff; }
  .mobile-bar .call { background: var(--green); }
  .mobile-bar .zalo { background: #0068FF; }
}
