/* =========================================================================
   IMPERIA SENSA PARK — Design System
   Palette trích từ file concept PPTX của chủ đầu tư MIK Group
   ========================================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  /* Olive — màu thương hiệu chủ đạo */
  --olive-950: #12160e;
  --olive-900: #1c2116;
  --olive-800: #2a3120;
  --olive-700: #3b432c;
  --olive-600: #4d5438; /* ★ primary */
  --olive-500: #626b49;

  /* Sage — xanh non */
  --sage-600: #75855120;
  --sage-500: #8c9c63;
  --sage-400: #a7b578; /* ★ secondary */
  --sage-300: #c2cb9f;
  --sage-200: #dce2c6;
  --sage-100: #eef1e3;

  /* Gold — accent sang trọng */
  --gold-800: #6f5029;
  --gold-700: #8e6836; /* dùng cho chữ nhỏ trên nền sáng (AA) */
  --gold-600: #a87c46;
  --gold-500: #c0935c; /* ★ accent */
  --gold-400: #dfac6e;
  --gold-200: #ecd4b1;

  /* Trung tính */
  --sand: #dbd4af;
  --cream: #f7f5ef;
  --cream-2: #efebe0;
  --white: #ffffff;
  --ink: #171a12;
  --ink-2: #41473a;
  --muted: #6b7261;
  --line: #ddd9c9;
  --navy: #001a72; /* MIK Group corporate */

  /* Semantic */
  --bg: var(--cream);
  --bg-alt: var(--cream-2);
  --bg-dark: var(--olive-900);
  --bg-tech: var(--olive-950); /* nền bản vẽ kỹ thuật */
  --text: var(--ink);
  --text-soft: var(--ink-2);
  --text-on-dark: #eceadf;
  --text-on-dark-soft: #b9bfa8;
  --accent: var(--gold-500);
  --accent-text: var(--gold-700);
  --danger: #b3261e;
  --success: #2e6b3e;

  /* Typography */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Be Vietnam Pro", -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Spacing 4pt scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 20px;
  --s-6: 24px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --s-20: 80px; --s-24: 96px; --s-32: 128px;

  /* Layout */
  --container: 1170px;
  --container-narrow: 920px;
  --header-h: 76px;
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 16px;

  /* Elevation */
  --sh-1: 0 1px 2px rgba(23, 26, 18, .06), 0 1px 3px rgba(23, 26, 18, .08);
  --sh-2: 0 4px 12px rgba(23, 26, 18, .08), 0 2px 4px rgba(23, 26, 18, .06);
  --sh-3: 0 12px 32px rgba(23, 26, 18, .12), 0 4px 8px rgba(23, 26, 18, .06);
  --sh-4: 0 24px 64px rgba(23, 26, 18, .18);

  /* Motion */
  --e-out: cubic-bezier(.22, .61, .36, 1);
  --e-in-out: cubic-bezier(.65, .05, .36, 1);
  --t-fast: 160ms;
  --t-base: 280ms;
  --t-slow: 520ms;

  /* Z-index scale */
  --z-base: 1; --z-sticky: 40; --z-header: 100; --z-drawer: 200; --z-modal: 1000;
}

/* ---------- 2. RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; height: auto; }
dl, dd, figure, blockquote { margin: 0; }
ol, ul { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.005em;
  margin: 0 0 var(--s-4);  
}
h1 { font-size: clamp(2.25rem, 1.4rem + 3.6vw, 4.25rem); }
h2 { font-size: clamp(1.85rem, 1.2rem + 2.4vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.85rem); }
h4 { font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); font-family: var(--font-body); font-weight: 600; }
p  { margin: 0 0 var(--s-4);}

::selection { background: var(--sage-400); color: var(--olive-950); }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px;
  z-index: var(--z-modal);
  background: var(--olive-600); color: var(--white);
  padding: var(--s-3) var(--s-5); border-radius: var(--radius);
  transition: top var(--t-fast) var(--e-out);
}
.skip-link:focus { top: var(--s-4); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 3. LAYOUT ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.container--narrow { max-width: var(--container-narrow); }
@media (min-width: 768px) { .container { padding-inline: var(--s-8); } }

.section { padding-block: clamp(56px, 7vw, 112px); }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section--tech { background: var(--bg-tech); color: var(--text-on-dark); }
.section--dark h1, .section--dark h2, .section--dark h3,
.section--tech h1, .section--tech h2, .section--tech h3 { color: var(--white); }

.grid { display: grid; gap: var(--s-6); }
@media (min-width: 700px)  { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 700px)  { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 640px)  { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }

/* ---------- 4. SECTION HEADINGS ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s-3);
  font-family: var(--font-body);
  font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: var(--s-4);
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold-500); }
.section--dark .eyebrow, .section--tech .eyebrow { color: var(--gold-400); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow::before { display: none; }
.section-head p { color: var(--text-soft); font-size: 1.05rem; }
.section--dark .section-head p, .section--tech .section-head p { color: var(--text-on-dark-soft); }

.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.25rem); color: var(--text-soft); }

/* ---------- 5. BUTTONS ---------- */
.btn {
  --btn-bg: var(--olive-600);
  --btn-fg: var(--white);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 48px; padding: var(--s-3) var(--s-6);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; border-radius: var(--radius);
  font-size: .95rem; font-weight: 600; letter-spacing: .02em;
  text-align: center;
  touch-action: manipulation;
  transition: background var(--t-fast) var(--e-out), transform var(--t-fast) var(--e-out),
              box-shadow var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out);
}
.btn:hover  { --btn-bg: var(--olive-700); box-shadow: var(--sh-2); }
.btn:active { transform: scale(.975); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; }

.btn--gold  { --btn-bg: var(--gold-600); --btn-fg: #1e1608; }
.btn--gold:hover { --btn-bg: var(--gold-500); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--olive-600); border-color: var(--olive-600); }
.btn--ghost:hover { --btn-bg: var(--olive-600); --btn-fg: var(--white); }
.btn--light { --btn-bg: transparent; --btn-fg: var(--white); border-color: rgba(255,255,255,.5); }
.btn--light:hover { --btn-bg: var(--white); --btn-fg: var(--olive-800); border-color: var(--white); }
.btn--lg { min-height: 56px; padding-inline: var(--s-8); font-size: 1rem; }
.btn--block { width: 100%; }

/* ---------- 6. HEADER ---------- */
/* Header luôn nền xanh đậm — chữ trắng trên nền tối đọc rõ ở mọi trang,
   không phải đổi màu theo vị trí cuộn như bản trước. */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-header);
  background: var(--olive-900);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: box-shadow var(--t-base) var(--e-out);
}
.header.is-solid { box-shadow: 0 2px 20px rgba(0, 0, 0, .28); }
.header__inner {
  display: flex; align-items: center; gap: clamp(12px, 2vw, 28px);
  height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: var(--s-3); flex-shrink: 0; margin-right: auto; }
.brand__mark { width: 30px; height: 39px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--font-display); font-size: 1.24rem; font-weight: 600;
  letter-spacing: .19em; color: var(--white);
}
.brand__sub {
  font-size: .55rem; font-weight: 600; letter-spacing: .3em;
  color: var(--sage-400); margin-top: 5px;
}
.brand__mark path { fill: var(--gold-400); }

.nav { display: none; }
@media (min-width: 1180px) {
  .nav { display: flex; align-items: center; gap: clamp(13px, 1.4vw, 24px); }
  .nav__link {
    position: relative;
    font-size: .93rem; font-weight: 500; letter-spacing: .005em;
    color: rgba(255, 255, 255, .88);
    padding: var(--s-2) 0;
    transition: color var(--t-fast) var(--e-out);
    white-space: nowrap;
  }
  .nav__link::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0;
    height: 2px; background: var(--gold-400);
    transform: scaleX(0); transform-origin: left;
    transition: transform var(--t-base) var(--e-out);
  }
  .nav__link:hover { color: var(--white); }
  .nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
  .nav__link[aria-current="page"] { color: var(--gold-400); }
}

/* Nút hotline viền vàng ở góc phải */
.hotline-pill {
  display: none; align-items: center; gap: var(--s-2);
  min-height: 42px; padding: 0 var(--s-5);
  border: 1px solid var(--gold-500); border-radius: 999px;
  color: var(--gold-400); font-size: .92rem; font-weight: 600;
  white-space: nowrap; flex-shrink: 0;
  transition: background var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out);
}
.hotline-pill svg { width: 16px; height: 16px; }
.hotline-pill:hover { background: var(--gold-500); color: var(--olive-950); }
@media (min-width: 1180px) { .hotline-pill { display: inline-flex; } }

/* Bản rút gọn chỉ còn biểu tượng, dùng khi chưa đủ chỗ cho nút đầy đủ */
.hotline-mini {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; flex-shrink: 0;
  border: 1px solid rgba(223, 172, 110, .5); border-radius: 50%;
  color: var(--gold-400);
}
.hotline-mini svg { width: 18px; height: 18px; }
@media (min-width: 1180px) { .hotline-mini { display: none; } }

/* Hamburger */
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 0 12px; flex-shrink: 0;
  background: none; border: 0;
}
@media (min-width: 1180px) { .burger { display: none; } }
.burger span {
  display: block; height: 2px; width: 100%; background: var(--white); border-radius: 2px;
  transition: transform var(--t-base) var(--e-out), opacity var(--t-fast) var(--e-out);
}
.header.is-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.header.is-open .burger span:nth-child(2) { opacity: 0; }
.header.is-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Drawer */
.drawer {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: var(--z-drawer);
  background: var(--cream);
  padding: var(--s-6) var(--s-5) var(--s-16);
  overflow-y: auto;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--t-base) var(--e-in-out), visibility var(--t-base);
}
.drawer.is-open { transform: translateX(0); visibility: visible; }
@media (min-width: 1180px) { .drawer { display: none; } }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-2);
  border-bottom: 1px solid var(--line);
  font-size: .95rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--olive-700);
  min-height: 56px;
}
.drawer__link[aria-current="page"] { color: var(--gold-700); }
.drawer__link svg { width: 16px; height: 16px; opacity: .5; }
.drawer__foot { margin-top: var(--s-8); display: grid; gap: var(--s-3); }

/* ---------- 7. HERO ---------- */
.hero {
  position: relative;
  min-height: min(94svh, 860px);
  display: flex; align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(18, 22, 14, .82) 0%, rgba(18, 22, 14, .5) 42%, rgba(18, 22, 14, 0) 78%),
    linear-gradient(to top, rgba(18, 22, 14, .92) 0%, rgba(18, 22, 14, .58) 34%, rgba(18, 22, 14, .16) 62%, rgba(18, 22, 14, .42) 100%);
}
.hero__inner {
  position: relative; z-index: 2; width: 100%;
  padding-top: calc(var(--header-h) + clamp(24px, 5vw, 64px));
  padding-bottom: clamp(40px, 7vw, 92px);
}
.hero__title { color: var(--white); margin-bottom: var(--s-5); }
.hero__title em {
  display: block; font-style: normal;
  font-size: clamp(.72rem, .62rem + .4vw, .95rem);
  font-family: var(--font-body); font-weight: 600;
  letter-spacing: clamp(.14em, .1em + .5vw, .3em); text-transform: uppercase;
  color: var(--gold-400); margin-bottom: var(--s-4);
}
.hero__tagline {
  font-family: var(--font-display); font-size: clamp(1.2rem, 1rem + 1vw, 1.75rem);
  color: var(--sage-200); max-width: 32ch; margin-bottom: var(--s-8);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-bottom: var(--s-10); }

.hero__facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-4);
  padding-top: var(--s-6);
  border-top: 1px solid rgba(255, 255, 255, .2);
}
@media (min-width: 760px) { .hero__facts { grid-template-columns: repeat(4, 1fr); } }
.hero__fact dt {
  font-size: .68rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62); margin-bottom: var(--s-1);
}
.hero__fact dd {
  margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 1.1rem + 1.1vw, 2.05rem);
  font-weight: 600; color: var(--white); font-variant-numeric: tabular-nums;
}
.hero__fact dd small { font-size: .5em; font-family: var(--font-body); font-weight: 500; color: var(--sage-300); }

.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  z-index: 3; display: none;
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.45); border-radius: 14px;
}
@media (min-width: 900px) { .scroll-cue { display: block; } }
.scroll-cue::after {
  content: ""; position: absolute; left: 50%; top: 8px; width: 3px; height: 7px;
  background: var(--gold-400); border-radius: 2px; transform: translateX(-50%);
  animation: cue 1.9s var(--e-in-out) infinite;
}
@keyframes cue { 0%,100% { opacity: 0; transform: translate(-50%, 0); } 45% { opacity: 1; transform: translate(-50%, 14px); } }

/* Page banner (trang trong) */
.pagehead {
  position: relative; margin-top: var(--header-h);
  min-height: clamp(260px, 34vw, 400px);
  display: flex; align-items: center; color: var(--white); overflow: hidden;
}
.pagehead__media { position: absolute; inset: 0; }
.pagehead__media img { width: 100%; height: 100%; object-fit: cover; }
.pagehead__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(18,22,14,.9) 8%, rgba(18,22,14,.62) 52%, rgba(18,22,14,.35) 100%);
}
.pagehead__inner { position: relative; z-index: 2; width: 100%; padding-block: var(--s-10); }
.pagehead h1 { color: var(--white); margin-bottom: var(--s-3); }
.pagehead p { color: var(--sage-200); max-width: 56ch; margin: 0; }

.crumbs { display: flex; flex-wrap: wrap; gap: var(--s-2); font-size: .8rem; color: rgba(255,255,255,.7); margin-bottom: var(--s-4); }
.crumbs a:hover { color: var(--gold-400); }
.crumbs span[aria-hidden] { opacity: .5; }

/* ---------- 8. SLIDESHOW ---------- */
.slideshow { position: relative; }
.slideshow__frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--olive-900);
  box-shadow: var(--sh-3);
}
.slideshow__slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t-slow) var(--e-out), visibility var(--t-slow);
}
.slideshow__slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.slideshow__slide img { width: 100%; height: 100%; object-fit: cover; }
.slideshow--contain .slideshow__frame { background: var(--olive-950); }
.slideshow--contain .slideshow__slide img { object-fit: contain; }

.slideshow__cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 3;
  padding: var(--s-10) var(--s-5) var(--s-5);
  background: linear-gradient(to top, rgba(18,22,14,.88), rgba(18,22,14,0));
  color: var(--white);
  pointer-events: none;
}
@media (min-width: 768px) { .slideshow__cap { padding: var(--s-12) var(--s-8) var(--s-6); } }
.slideshow__cap strong {
  display: block; font-family: var(--font-display);
  font-size: clamp(1.1rem, .95rem + .8vw, 1.6rem); font-weight: 600; margin-bottom: 2px;
}
.slideshow__cap span { font-size: .88rem; color: var(--sage-200); }

/* Arrows */
.slideshow__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 4;
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: rgba(247, 245, 239, .9);
  color: var(--olive-800);
  border: 0; border-radius: 50%;
  box-shadow: var(--sh-2);
  transition: background var(--t-fast) var(--e-out), transform var(--t-fast) var(--e-out);
}
@media (min-width: 768px) { .slideshow__nav { width: 56px; height: 56px; } }
.slideshow__nav:hover { background: var(--white); }
.slideshow__nav:active { transform: translateY(-50%) scale(.92); }
.slideshow__nav--prev { left: 10px; }
.slideshow__nav--next { right: 10px; }
@media (min-width: 768px) { .slideshow__nav--prev { left: 18px; } .slideshow__nav--next { right: 18px; } }
.slideshow__nav svg { width: 22px; height: 22px; }

/* Dots + control bar */
.slideshow__bar {
  display: flex; align-items: center; justify-content: center; gap: var(--s-4);
  margin-top: var(--s-4);
}
.slideshow__dots { display: flex; align-items: center; gap: var(--s-2); }
.slideshow__dot {
  width: 28px; height: 24px; padding: 10px 0; background: none; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
}
.slideshow__dot::after {
  content: ""; display: block; width: 100%; height: 3px; border-radius: 2px;
  background: var(--line);
  transition: background var(--t-fast) var(--e-out);
}
.slideshow__dot[aria-selected="true"]::after { background: var(--gold-600); }
.section--dark .slideshow__dot::after, .section--tech .slideshow__dot::after { background: rgba(255,255,255,.25); }
.section--dark .slideshow__dot[aria-selected="true"]::after,
.section--tech .slideshow__dot[aria-selected="true"]::after { background: var(--gold-400); }

.slideshow__count {
  font-size: .85rem; font-weight: 600; color: var(--muted);
  font-variant-numeric: tabular-nums; min-width: 52px; text-align: center;
}
.section--dark .slideshow__count, .section--tech .slideshow__count { color: var(--text-on-dark-soft); }

.slideshow__play {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: none; border: 1px solid var(--line); color: var(--muted);
  transition: border-color var(--t-fast) var(--e-out), color var(--t-fast) var(--e-out);
}
.slideshow__play:hover { border-color: var(--gold-600); color: var(--gold-700); }
.slideshow__play svg { width: 15px; height: 15px; }
.section--dark .slideshow__play, .section--tech .slideshow__play {
  border-color: rgba(255,255,255,.28); color: var(--text-on-dark-soft);
}

/* Aspect helpers */
.ar-16-9  { aspect-ratio: 16 / 9; }
.ar-4-3   { aspect-ratio: 4 / 3; }
.ar-3-2   { aspect-ratio: 3 / 2; }
.ar-21-9  { aspect-ratio: 21 / 9; }
@media (max-width: 600px) { .ar-21-9 { aspect-ratio: 16 / 10; } }

/* ---------- 9. CARDS ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--t-base) var(--e-out), box-shadow var(--t-base) var(--e-out),
              border-color var(--t-base) var(--e-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-3); border-color: var(--sand); }
.card__media { position: relative; overflow: hidden; background: var(--cream-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--e-out); }
.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: var(--s-6); }
.card__body h3 { margin-bottom: var(--s-2); }
.card__body p { font-size: .95rem; color: var(--text-soft); margin-bottom: 0; }

.card--dark { background: var(--olive-800); border-color: rgba(255,255,255,.1); }
.card--dark .card__body p { color: var(--text-on-dark-soft); }
.card--dark:hover { border-color: var(--gold-700); }

/* Feature tile với icon */
.tile { padding: var(--s-6); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); height: 100%; }
.tile__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: var(--s-4);
  border-radius: 50%; background: var(--sage-100); color: var(--olive-600);
}
.tile__icon svg { width: 24px; height: 24px; }
.tile h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin-bottom: var(--s-2); }
.tile p { font-size: .93rem; color: var(--text-soft); margin: 0; }
.section--dark .tile, .section--tech .tile { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.section--dark .tile__icon, .section--tech .tile__icon { background: rgba(167,181,120,.14); color: var(--sage-400); }
.section--dark .tile p, .section--tech .tile p { color: var(--text-on-dark-soft); }

/* ---------- 10. STATS ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-6); }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { text-align: center; padding: var(--s-5) var(--s-3); }
.stat__num {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.4rem);
  color: var(--olive-600); line-height: 1; font-variant-numeric: tabular-nums;
}
.section--dark .stat__num, .section--tech .stat__num { color: var(--gold-400); }
.stat__label { margin-top: var(--s-2); font-size: .85rem; color: var(--muted); }
.section--dark .stat__label, .section--tech .stat__label { color: var(--text-on-dark-soft); }

/* ---------- 11. SPEC LIST ---------- */
.spec { border-top: 1px solid var(--line); }
.spec__row {
  display: grid; grid-template-columns: 1fr; gap: 2px;
  padding: var(--s-4) 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 560px) { .spec__row { grid-template-columns: 200px 1fr; gap: var(--s-5); align-items: baseline; } }
.spec__k { font-size: .82rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.spec__v { font-weight: 500; color: var(--text); }
.section--dark .spec, .section--dark .spec__row { border-color: rgba(255,255,255,.13); }
.section--dark .spec__k { color: var(--text-on-dark-soft); }
.section--dark .spec__v { color: var(--white); }

/* ---------- 12. TABLE ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
table { width: 100%; border-collapse: collapse; min-width: 620px; font-size: .93rem; }
caption { text-align: left; padding: var(--s-4) var(--s-5); font-size: .85rem; color: var(--muted); }
th, td { padding: var(--s-3) var(--s-4); text-align: left; border-bottom: 1px solid var(--line); }
thead th {
  background: var(--olive-600); color: var(--white);
  font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  position: sticky; top: 0;
}
tbody tr:nth-child(even) { background: var(--cream); }
tbody tr:hover { background: var(--sage-100); }
td.num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
tfoot td { font-weight: 600; background: var(--cream-2); }

/* ---------- 13. ACCORDION ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__btn {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  width: 100%; min-height: 64px; padding: var(--s-4) 0;
  background: none; border: 0; text-align: left;
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; color: var(--olive-700);
}
.acc__btn:hover { color: var(--gold-700); }
.acc__btn svg { flex-shrink: 0; width: 20px; height: 20px; transition: transform var(--t-base) var(--e-out); }
.acc__btn[aria-expanded="true"] svg { transform: rotate(45deg); }
.acc__panel { display: none; padding-bottom: var(--s-5); }
.acc__panel.is-open { display: block; }
.acc__panel p:last-child { margin-bottom: 0; }

/* ---------- 14. TIMELINE ---------- */
.tl { position: relative; padding-left: var(--s-8); }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl__item { position: relative; padding-bottom: var(--s-8); }
.tl__item:last-child { padding-bottom: 0; }
.tl__item::before {
  content: ""; position: absolute; left: calc(var(--s-8) * -1); top: 6px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cream); border: 3px solid var(--sand);
}
.tl__item.is-done::before { background: var(--olive-600); border-color: var(--olive-600); }
.tl__item.is-now::before { background: var(--gold-500); border-color: var(--gold-200); box-shadow: 0 0 0 4px rgba(192,147,92,.22); }
.tl__date { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.tl__item h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; margin: var(--s-1) 0 var(--s-2); }
.tl__item p { font-size: .93rem; color: var(--text-soft); margin: 0; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px; border-radius: 999px;
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.badge--done { background: var(--sage-200); color: var(--olive-700); }
.badge--now  { background: var(--gold-200); color: var(--gold-800); }
.badge--next { background: var(--cream-2); color: var(--muted); }

/* ---------- 15. TABS ---------- */
.tabs__list {
  display: flex; gap: var(--s-2); overflow-x: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: var(--s-2); margin-bottom: var(--s-6);
  border-bottom: 1px solid var(--line);
  scrollbar-width: thin;
}
.tabs__tab {
  flex-shrink: 0; min-height: 48px; padding: var(--s-3) var(--s-5);
  background: none; border: 0; border-bottom: 3px solid transparent;
  font-size: .9rem; font-weight: 600; color: var(--muted); white-space: nowrap;
  transition: color var(--t-fast) var(--e-out), border-color var(--t-fast) var(--e-out);
}
.tabs__tab:hover { color: var(--olive-600); }
.tabs__tab[aria-selected="true"] { color: var(--olive-700); border-bottom-color: var(--gold-600); }
.section--tech .tabs__list { border-bottom-color: rgba(255,255,255,.14); }
.section--tech .tabs__tab { color: var(--text-on-dark-soft); }
.section--tech .tabs__tab[aria-selected="true"] { color: var(--white); border-bottom-color: var(--gold-400); }
.tabs__panel[hidden] { display: none; }

/* ---------- 16. PLAN VIEWER (bản vẽ trên nền tối) ---------- */
.plan {
  position: relative; background: var(--olive-950);
  border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg);
  overflow: hidden;
}
.plan img { width: 100%; height: 100%; object-fit: contain; }
.plan__zoom {
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 0 14px;
  background: rgba(247,245,239,.92); color: var(--olive-800);
  border: 0; border-radius: 999px; font-size: .8rem; font-weight: 600;
}
.plan__zoom:hover { background: var(--white); }
.plan__zoom svg { width: 15px; height: 15px; }

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: none; align-items: center; justify-content: center;
  padding: var(--s-4);
  background: rgba(10, 13, 8, .95);
  backdrop-filter: blur(4px);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 80svh; object-fit: contain; }
.lightbox__close {
  position: absolute; top: var(--s-4); right: var(--s-4);
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.12); color: var(--white); border: 0;
}
.lightbox__close:hover { background: rgba(255,255,255,.24); }
.lightbox__cap { position: absolute; left: 0; right: 0; bottom: var(--s-5); text-align: center; color: var(--sage-200); font-size: .9rem; }

/* ---------- 17. FORM ---------- */
.form { display: grid; gap: var(--s-5); }
.field { display: grid; gap: var(--s-2); }
.field label { font-size: .88rem; font-weight: 600; color: var(--text); }
.field .req { color: var(--danger); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: var(--s-3) var(--s-4);
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--e-out), box-shadow var(--t-fast) var(--e-out);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sand); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--olive-600);
  box-shadow: 0 0 0 3px rgba(77, 84, 56, .16);
}
.field__help { font-size: .82rem; color: var(--muted); }
.field__err { display: none; font-size: .84rem; font-weight: 500; color: var(--danger); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .field__err { display: flex; align-items: center; gap: 6px; }
.field.has-error .field__err::before { content: "!"; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; flex-shrink: 0; }

.form-summary {
  display: none; padding: var(--s-4) var(--s-5);
  background: #fdecea; border: 1px solid #f3b9b4; border-left: 4px solid var(--danger);
  border-radius: var(--radius); color: #7f1d1a;
}
.form-summary.is-shown { display: block; }
.form-summary h3 { font-family: var(--font-body); font-size: .98rem; margin-bottom: var(--s-2); color: #7f1d1a; }
.form-summary ul { margin: 0; padding-left: var(--s-5); font-size: .9rem; }
.form-summary a { text-decoration: underline; }

.form-ok {
  display: none; padding: var(--s-5);
  background: #e9f3ec; border: 1px solid #b6d7c1; border-left: 4px solid var(--success);
  border-radius: var(--radius); color: #1f4b2c;
}
.form-ok.is-shown { display: block; }

.form-note { font-size: .82rem; color: var(--muted); }
.form-note a { color: var(--accent-text); text-decoration: underline; }

/* ---------- 19. FOOTER ---------- */
.footer { background: var(--olive-950); color: var(--text-on-dark-soft); font-size: .92rem; }
.footer__top { padding-block: clamp(48px, 6vw, 80px); }
.footer__grid { display: grid; gap: var(--s-10); }
@media (min-width: 780px)  { .footer__grid { grid-template-columns: 1.5fr 1fr 1.2fr; } }
@media (min-width: 1100px) { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.3fr; } }
.footer__h {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: var(--gold-400);
  margin-bottom: var(--s-5);
}
.footer a:hover { color: var(--gold-400); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.footer__list a { display: inline-block; padding: 2px 0; }
.footer .brand__name { color: var(--white); }
.footer .brand__sub { color: var(--gold-400); }
.footer__about { max-width: 40ch; margin-top: var(--s-5); }
.footer__contact { display: grid; gap: var(--s-4); }
.footer__contact-item { display: flex; gap: var(--s-3); align-items: flex-start; }
.footer__contact-item svg { flex-shrink: 0; width: 18px; height: 18px; color: var(--gold-500); margin-top: 3px; }
.footer__contact-item strong { display: block; color: var(--white); font-size: 1.02rem; }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-block: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: space-between; align-items: center;
  font-size: .84rem;
}
.footer__legal { max-width: 100%; }
.disclaimer {
  padding: var(--s-5) 0 var(--s-8);
  font-size: .78rem; line-height: 1.65; color: rgba(185,191,168,.72);
  border-top: 1px solid rgba(255,255,255,.07);
}

/* ---------- 20. MOBILE STICKY CTA ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--olive-800);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 16px rgba(0,0,0,.18);
}
@media (min-width: 1180px) { .mobile-bar { display: none; } }
.mobile-bar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: 60px; padding: var(--s-2);
  color: var(--sage-200); font-size: .72rem; font-weight: 600;
}
.mobile-bar a + a { border-left: 1px solid rgba(255,255,255,.12); }
.mobile-bar a svg { width: 20px; height: 20px; }
.mobile-bar a.is-primary { background: var(--gold-600); color: #1e1608; }
.mobile-bar a:active { filter: brightness(1.15); }
@media (max-width: 1179.98px) { body { padding-bottom: 60px; } }

/* ---------- 21. REVEAL ---------- */
.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 700ms var(--e-out), transform 700ms var(--e-out); }
.reveal[data-delay="1"].is-in { transition-delay: 80ms; }
.reveal[data-delay="2"].is-in { transition-delay: 160ms; }
.reveal[data-delay="3"].is-in { transition-delay: 240ms; }
.reveal[data-delay="4"].is-in { transition-delay: 320ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .scroll-cue::after { animation: none; opacity: .8; }
}

/* ---------- 22. UTILITIES ---------- */
.u-center { text-align: center; }
.u-mt-0 { margin-top: 0; }
.u-mb-0 { margin-bottom: 0; }
.u-mt-6 { margin-top: var(--s-6); }
.u-mt-8 { margin-top: var(--s-8); }
.u-mt-10 { margin-top: var(--s-10); }
.media-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--sh-3); background: var(--cream-2); }
.figure-note { margin-top: var(--s-3); font-size: .82rem; color: var(--muted); font-style: italic; }
.section--dark .figure-note, .section--tech .figure-note { color: var(--text-on-dark-soft); }
.split { display: grid; gap: clamp(28px, 4vw, 56px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-l { grid-template-columns: 1.25fr 1fr; } .split--wide-r { grid-template-columns: 1fr 1.25fr; } }
.list-check { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-3); }
.list-check li { position: relative; padding-left: var(--s-8); }
.list-check li::before {
  content: ""; position: absolute; left: 0; top: 8px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--sage-200) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234d5438' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.section--dark .list-check li::before, .section--tech .list-check li::before { background-color: rgba(167,181,120,.25); }
.pill-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.pill {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 var(--s-4);
  background: var(--sage-100); color: var(--olive-700);
  border-radius: 999px; font-size: .82rem; font-weight: 600;
}
.section--dark .pill, .section--tech .pill { background: rgba(167,181,120,.14); color: var(--sage-300); }
.price-big {
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4rem); color: var(--olive-600);
}
.price-big small { font-size: .3em; font-family: var(--font-body); font-weight: 600; color: var(--muted); letter-spacing: .04em; }
.section--dark .price-big { color: var(--gold-400); }
.section--dark .price-big small { color: var(--text-on-dark-soft); }

/* ---------- 23. EMBED SLOT (chỗ chờ nhúng nội dung) ---------- */
.embed-slot {
  border: 2px dashed var(--sand);
  border-radius: var(--radius-lg);
  background: var(--bg-alt);
}
.embed-slot__inner { padding: clamp(32px, 5vw, 64px) var(--s-6); text-align: center; }
.embed-slot__inner > svg { width: 48px; height: 48px; margin: 0 auto var(--s-5); color: var(--gold-600); }
.embed-slot__inner h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.85rem); margin-bottom: var(--s-3); }
.embed-slot__inner p { margin-inline: auto; color: var(--text-soft); }
.embed-slot__hint { font-size: .86rem; color: var(--muted); }
.embed-slot__hint code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .88em;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 2px 6px;
}
.embed-slot__hint a { color: var(--accent-text); text-decoration: underline; }
#tour-360:not([hidden]) + .embed-slot__inner { display: none; }
#tour-360 iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; border-radius: var(--radius-lg); }

/* ---------- 24. TRANG TIN TỨC ---------- */
.news-layout { display: grid; gap: clamp(40px, 5vw, 64px); }
@media (min-width: 1000px) { .news-layout { grid-template-columns: minmax(0, 1fr) 340px; } }

.news-item { padding-bottom: var(--s-10); margin-bottom: var(--s-10); border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.news-item h2 { font-size: clamp(1.45rem, 1.15rem + 1.4vw, 2.15rem); margin-bottom: var(--s-4); }
.news-item p { color: var(--text-soft); }
.news-item--lead h2 { font-size: clamp(1.7rem, 1.25rem + 2vw, 2.6rem); }
.news-item .media-frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.news-side { display: grid; gap: var(--s-6); align-content: start; }
@media (min-width: 1000px) { .news-side { position: sticky; top: calc(var(--header-h) + 24px); } }

.side-card {
  padding: var(--s-6);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.side-card h3 {
  font-family: var(--font-body); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
  margin-bottom: var(--s-4);
}
.side-card .spec__row:last-child { border-bottom: 0; padding-bottom: 0; }
.side-card .footer__list a { color: var(--text); }
.side-card .footer__list a:hover { color: var(--gold-700); }
.side-card .list-check li { font-size: .92rem; color: var(--text-soft); }

/* ---------- 25. TRANG LIÊN HỆ ---------- */
.form-card {
  padding: clamp(24px, 3.5vw, 40px);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--sh-2);
}
.form-card h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.1rem); }

.contact-list { display: grid; gap: var(--s-3); }
.contact-row {
  display: flex; align-items: flex-start; gap: var(--s-4);
  padding: var(--s-5);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color var(--t-fast) var(--e-out), box-shadow var(--t-fast) var(--e-out);
}
a.contact-row:hover { border-color: var(--gold-500); box-shadow: var(--sh-2); }
.contact-row__icon {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--sage-100); color: var(--olive-600);
}
.contact-row__icon svg { width: 20px; height: 20px; }
.contact-row small { display: block; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-row strong { font-size: 1.05rem; font-weight: 600; color: var(--text); }

/* ---------- 26. TINH CHỈNH ---------- */
/* Neo #anchor không bị header cố định che */
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

/* Thanh cuộn mảnh cho dải tab và bảng */
.tabs__list::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar { height: 6px; }
.tabs__list::-webkit-scrollbar-track,
.table-wrap::-webkit-scrollbar-track { background: transparent; }
.tabs__list::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb { background: var(--sand); border-radius: 3px; }
.section--tech .tabs__list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); }
.tabs__list, .table-wrap { scrollbar-width: thin; scrollbar-color: var(--sand) transparent; }
.section--tech .tabs__list { scrollbar-color: rgba(255,255,255,.28) transparent; }

/* Gợi ý còn nội dung khi dải tab tràn ngang */
.tabs { position: relative; }

/* ---------- 27. BẢNG CÓ CHÚ THÍCH NGOÀI VÙNG CUỘN ---------- */
.table-block { margin: 0; }
.table-cap {
  margin: 0 0 var(--s-3);
  font-size: .86rem; line-height: 1.6; color: var(--muted);
  max-width: 80ch;
}
.section--dark .table-cap { color: var(--text-on-dark-soft); }
.table-wrap table caption { display: none; }
.table-hint {
  display: none; align-items: center; gap: 6px;
  margin-top: var(--s-3); font-size: .8rem; color: var(--muted);
}
@media (max-width: 767.98px) { .table-hint { display: flex; } }
.table-hint svg { width: 14px; height: 14px; }

/* ---------- 28. BẢNG GỌN (trang chủ, 3 cột — vừa màn hình điện thoại) ---------- */
.table-wrap--compact table { min-width: 0; font-size: .9rem; }
.table-wrap--compact th, .table-wrap--compact td { padding: var(--s-3); }
.table-wrap--compact thead th { font-size: .68rem; letter-spacing: .06em; }
@media (max-width: 420px) {
  .table-wrap--compact table { font-size: .84rem; }
  .table-wrap--compact th, .table-wrap--compact td { padding: 10px 8px; }
}

/* ---------- 29. TRANG 404 ---------- */
.err {
  min-height: 62svh; display: flex; align-items: center;
  padding-block: clamp(64px, 9vw, 128px);
}
.err__code {
  font-family: var(--font-display); font-weight: 600; line-height: 1;
  font-size: clamp(5rem, 3rem + 12vw, 11rem); color: var(--sage-300);
}
.err__links { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-8); }

/* =========================================================================
   30. KHỐI ĐĂNG KÝ Ở FOOTER
   Mẫu dùng lại: mỗi trường là một .ffield chứa [ô nhập] + [label] + [lỗi].
   Label nằm SAU ô nhập trong DOM để CSS đẩy nó lên khi ô có nội dung.
   Nhân bản thêm trường: copy một khối .ffield, đổi id và for là xong.
   ========================================================================= */
.signup { position: relative; background: var(--olive-900); color: var(--text-on-dark); overflow: hidden; }
.signup__bg { position: absolute; inset: 0; }
.signup__bg img { width: 100%; height: 100%; object-fit: cover; }
.signup__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(18, 22, 14, .94) 0%, rgba(18, 22, 14, .82) 46%, rgba(18, 22, 14, .68) 100%);
}
.signup__grid {
  position: relative; z-index: 2;
  display: grid; gap: clamp(32px, 5vw, 64px); align-items: center;
  padding-block: clamp(48px, 6vw, 88px);
}
@media (min-width: 940px) { .signup__grid { grid-template-columns: 1fr minmax(400px, 460px); } }

.signup__intro h2 { color: var(--white); }
.signup__intro > p { color: var(--text-on-dark-soft); }

.signup__contact { display: grid; gap: var(--s-4); margin-top: var(--s-8); }
.signup__contact a { display: flex; align-items: center; gap: var(--s-4); }
.signup__contact svg { width: 20px; height: 20px; color: var(--gold-500); flex-shrink: 0; }
.signup__contact small {
  display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-on-dark-soft);
}
.signup__contact strong { font-size: 1.08rem; color: var(--white); font-weight: 600; }
.signup__contact a:hover strong { color: var(--gold-400); }

/* ---- Thẻ form ---- */
.signup__card {
  background: var(--cream);
  color: var(--text);
  border-radius: var(--radius-lg);
  padding: clamp(22px, 3vw, 34px);
  box-shadow: var(--sh-4);
}
.signup__card h3 {
  font-family: var(--font-display); font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  font-weight: 600; color: var(--olive-700); margin-bottom: var(--s-2);
}
.signup__sub { font-size: .93rem; color: var(--muted); margin-bottom: var(--s-6); }

.fform { display: grid; gap: var(--s-4); }

/* ---- Trường có nhãn nổi ---- */
.ffield { position: relative; display: grid; }
.ffield input,
.ffield select,
.ffield textarea {
  width: 100%;
  padding: 24px var(--s-4) 9px;
  font: inherit; font-size: 16px; color: var(--text);
  background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--e-out), box-shadow var(--t-fast) var(--e-out);
}
.ffield input, .ffield select { height: 60px; }
.ffield textarea { min-height: 96px; resize: vertical; line-height: 1.55; }

.ffield select {
  appearance: none; cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7261' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--s-4) center;
  background-size: 18px;
}

.ffield label {
  position: absolute; left: calc(var(--s-4) + 1px); top: 50%;
  transform: translateY(-50%);
  font-size: 1rem; color: var(--muted);
  pointer-events: none;
  transition: top var(--t-fast) var(--e-out), font-size var(--t-fast) var(--e-out),
              color var(--t-fast) var(--e-out), transform var(--t-fast) var(--e-out);
}
/* Textarea cao hơn nên nhãn neo theo dòng đầu, không theo tâm ô */
.ffield:has(textarea) label { top: 26px; }

.ffield:focus-within label,
.ffield.is-filled label {
  top: 11px; transform: none;
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  color: var(--accent-text);
}

.ffield input:hover, .ffield select:hover, .ffield textarea:hover { border-color: var(--sand); }
.ffield input:focus, .ffield select:focus, .ffield textarea:focus {
  outline: none; border-color: var(--olive-600);
  box-shadow: 0 0 0 3px rgba(77, 84, 56, .16);
}

.ffield__help { font-size: .8rem; color: var(--muted); margin: 6px 0 0; }
.ffield__err { display: none; font-size: .82rem; font-weight: 500; color: var(--danger); margin: 6px 0 0; }
.ffield.has-error input, .ffield.has-error select, .ffield.has-error textarea { border-color: var(--danger); }
.ffield.has-error .ffield__err { display: block; }

/* ---- Ô đồng ý ---- */
.fcheck { display: grid; grid-template-columns: auto 1fr; gap: var(--s-3) var(--s-3); align-items: start; }
.fcheck input {
  width: 24px; height: 24px; margin: 0;
  accent-color: var(--olive-600);
  flex-shrink: 0; cursor: pointer;
}
.fcheck label { font-size: .92rem; color: var(--text-soft); cursor: pointer; }
.fcheck .ffield__err { grid-column: 1 / -1; margin-top: 0; }
.fcheck.has-error .ffield__err { display: block; }
.fcheck.has-error input { outline: 2px solid var(--danger); outline-offset: 2px; }

/* ---- Thông báo trong thẻ form ---- */
.signup__card .form-summary { margin-bottom: 0; }
.signup__card .form-summary h4 {
  font-family: var(--font-body); font-size: .95rem; font-weight: 600;
  color: #7f1d1a; margin: 0 0 var(--s-2);
}
.signup__card .form-ok strong { display: block; margin-bottom: 4px; }
.signup__card .form-ok span { font-size: .93rem; }
.signup__card .form-ok.is-shown + .fform { display: none; }

/* ---------- 31. CHÂN TRANG: LINK PHÁP LÝ ---------- */
.footer__legal { display: flex; flex-wrap: wrap; gap: var(--s-5); }
.footer__legal a { color: var(--text-on-dark-soft); }
.footer__legal a:hover { color: var(--gold-400); }

/* ---------- 32. TRANG VĂN BẢN (chính sách, điều khoản) ---------- */
.pagehead--slim { min-height: clamp(200px, 24vw, 280px); }

.prose { max-width: 72ch; }
.prose > * + * { margin-top: var(--s-5); }
.prose h2 {
  font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem);
  color: var(--olive-700);
  margin-top: var(--s-12);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type { margin-top: var(--s-8); }
.prose h3 {
  font-family: var(--font-body); font-size: 1.02rem; font-weight: 600;
  color: var(--text); margin-top: var(--s-8);
}
.prose p { color: var(--text-soft); max-width: none; margin-bottom: 0; }
.prose .lead { color: var(--text); }
.prose .list-check li { color: var(--text-soft); }

/* =========================================================================
   33. NÚT LIÊN HỆ NỔI
   Chỉ hiện từ 1180px. Dưới ngưỡng đó .mobile-bar đã đảm nhiệm vai trò này.
   ========================================================================= */
.floatbar { display: none; }
@media (min-width: 1180px) {
  .floatbar {
    position: fixed; left: 5px; bottom: 24px; z-index: var(--z-sticky);
    display: flex; flex-direction: column; gap: var(--s-3);
  }
}
/* Mặc định thu về hình tròn 52px để không đè lên nội dung; rê chuột hoặc
   nhận tiêu điểm bàn phím thì nở ra hiện chữ. Chữ vẫn nằm trong DOM nên
   trình đọc màn hình luôn đọc được tên nút. */
.floatbar__btn {
  display: inline-flex; align-items: center; gap: 0;
  height: 45px; padding: 0; width: 45px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-400) 100%);
  color: #23190a;
  font-size: .95rem; font-weight: 600; letter-spacing: .01em;
  white-space: nowrap; overflow: hidden;
  box-shadow: 0 6px 18px rgba(23, 26, 18, .3);
  transition: width var(--t-base) var(--e-out), gap var(--t-base) var(--e-out),
              padding var(--t-base) var(--e-out), box-shadow var(--t-fast) var(--e-out),
              filter var(--t-fast) var(--e-out);
}
.floatbar__btn svg { width: 22px; height: 22px; flex-shrink: 0; margin-inline: 12px; }
.floatbar__btn span { max-width: 0; opacity: 0; transition: max-width var(--t-base) var(--e-out), opacity var(--t-fast) var(--e-out); }

.floatbar__btn:hover,
.floatbar__btn:focus-visible {
  width: auto; padding-right: var(--s-5);
  box-shadow: 0 10px 26px rgba(23, 26, 18, .38);
  filter: brightness(1.05);
}
.floatbar__btn:hover span,
.floatbar__btn:focus-visible span { max-width: 160px; opacity: 1; }
.floatbar__btn:hover svg,
.floatbar__btn:focus-visible svg { margin-right: var(--s-3); }
.floatbar__btn:active { filter: brightness(.96); }

@media (prefers-reduced-motion: reduce) {
  .floatbar__btn, .floatbar__btn span { transition: none; }
}

/* =========================================================================
   34. SỬA TƯƠNG PHẢN BẢNG TRÊN NỀN TỐI
   Kẻ sọc mặc định dùng nền kem sáng — đặt trong .section--dark thì chữ sáng
   nằm trên nền sáng, gần như không đọc được. Đổi sang sọc tối.
   ========================================================================= */
.section--dark .table-wrap,
.section--tech .table-wrap {
  background: rgba(255, 255, 255, .04);
  border-color: rgba(255, 255, 255, .14);
}
.section--dark tbody tr:nth-child(even),
.section--tech tbody tr:nth-child(even) { background: rgba(255, 255, 255, .05); }
.section--dark tbody tr:hover,
.section--tech tbody tr:hover { background: rgba(167, 181, 120, .14); }
.section--dark th, .section--dark td,
.section--tech th, .section--tech td { border-bottom-color: rgba(255, 255, 255, .1); }
.section--dark thead th,
.section--tech thead th { background: var(--olive-700); color: var(--white); }
.section--dark tfoot td,
.section--tech tfoot td { background: rgba(255, 255, 255, .07); color: var(--white); }

/* =========================================================================
   35. GIÁ LỚN
   .section-head p đặt cỡ chữ 1.05rem và có đặc hiệu cao hơn .price-big,
   khiến con số bị co lại còn cỡ chữ thường. Nâng đặc hiệu để tránh lặp lỗi.
   ========================================================================= */
.section-head .price-big,
.section-head p.price-big {
  font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4rem);
  line-height: 1;
}

/* =========================================================================
   36. BỘ TRA CỨU MẶT BẰNG
   Màu loại căn lấy đúng theo chú giải in trên bản vẽ của chủ đầu tư,
   để người xem đối chiếu được giữa bảng và sơ đồ.
   ========================================================================= */
:root {
  --loai-studio: #7fc4de;
  --loai-pn1:    #e5a853;
  --loai-pn2:    #c9c0ae;
  --loai-pn3:    #a9bc7b;
  --loai-duplex: #6fbfb2;
}

.fp { display: flex; flex-direction: column; gap: var(--s-6); }

/* --- Chọn tòa --- */
.fp__towers { display: grid; gap: var(--s-3); grid-template-columns: repeat(2, 1fr); max-width: 520px; }
.fp__tower {
  display: flex; flex-direction: column; gap: 2px; align-items: flex-start;
  padding: var(--s-4) var(--s-5); min-height: 64px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  text-align: left;
  transition: border-color var(--t-fast) var(--e-out), background var(--t-fast) var(--e-out),
              box-shadow var(--t-fast) var(--e-out);
}
.fp__tower:hover { border-color: var(--sand); }
.fp__tower[aria-pressed="true"] {
  background: var(--olive-600); border-color: var(--olive-600); box-shadow: var(--sh-2);
}
.fp__tower-name { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; color: var(--olive-700); }
.fp__tower-meta { font-size: .8rem; color: var(--muted); }
.fp__tower[aria-pressed="true"] .fp__tower-name { color: var(--white); }
.fp__tower[aria-pressed="true"] .fp__tower-meta { color: var(--sage-300); }

/* --- Chọn tầng --- */
.fp__floors {
  display: flex; gap: var(--s-2); overflow-x: auto; padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line); scrollbar-width: thin;
}
.fp__floor {
  flex-shrink: 0; min-height: 44px; padding: var(--s-2) var(--s-5);
  background: none; border: 1px solid var(--line); border-radius: 999px;
  font-size: .88rem; font-weight: 600; color: var(--text-soft); white-space: nowrap;
  transition: all var(--t-fast) var(--e-out);
}
.fp__floor:hover { border-color: var(--gold-500); color: var(--accent-text); }
.fp__floor[aria-selected="true"] {
  background: var(--gold-600); border-color: var(--gold-600); color: #1e1608;
}

/* --- Bố cục bản vẽ + bảng --- */
.fp__layout { display: grid; gap: var(--s-6); }
@media (min-width: 1060px) { .fp__layout { grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr); align-items: start; } }

.fp__plate {
  position: relative; margin: 0;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden;
}
.fp__plate img { width: 100%; height: auto; display: block; }

.fp__side { display: flex; flex-direction: column; gap: var(--s-4); min-width: 0; }
.fp__side h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); margin: 0; }
.fp__note { font-size: .9rem; color: var(--accent-text); margin: 0; font-weight: 500; }

.fp__chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.fp__chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 12px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line);
  font-size: .8rem; font-weight: 600; color: var(--text-soft);
}
.fp__chip::before { content: ""; width: 10px; height: 10px; border-radius: 3px; }
.fp__chip--studio::before { background: var(--loai-studio); }
.fp__chip--pn1::before    { background: var(--loai-pn1); }
.fp__chip--pn2::before    { background: var(--loai-pn2); }
.fp__chip--pn3::before    { background: var(--loai-pn3); }
.fp__chip--duplex::before { background: var(--loai-duplex); }

.fp__filters { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.fp__filter {
  min-height: 44px; padding: 0 var(--s-4);
  background: var(--white); border: 1px solid var(--line); border-radius: 999px;
  font-size: .82rem; font-weight: 600; color: var(--muted);
  transition: all var(--t-fast) var(--e-out);
}
.fp__filter:hover { border-color: var(--sand); color: var(--text); }
.fp__filter[aria-pressed="true"] { background: var(--olive-600); border-color: var(--olive-600); color: var(--white); }

.fp__table table { min-width: 0; }
.fp__table th[scope="row"] { display: flex; align-items: center; gap: 8px; font-weight: 600; white-space: nowrap; }
.fp__dot { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; }
.fp__dot--studio { background: var(--loai-studio); }
.fp__dot--pn1    { background: var(--loai-pn1); }
.fp__dot--pn2    { background: var(--loai-pn2); }
.fp__dot--pn3    { background: var(--loai-pn3); }
.fp__dot--duplex { background: var(--loai-duplex); }
@media (min-width: 1060px) { .fp__table { max-height: 560px; overflow-y: auto; } }

.fp__empty { font-size: .9rem; color: var(--muted); font-style: italic; margin: 0; }
.fp__legend-note { font-size: .84rem; color: var(--muted); max-width: 90ch; margin: 0; }

/* Ảnh mặt bằng mới nền trắng nên lightbox cần nền sáng để không chói ngược */
.lightbox img { background: var(--white); }

/* ---------- 37. KHỐI GỢI MỞ MẶT BẰNG Ở TRANG CHỦ ---------- */
.fp-teaser {
  display: grid; gap: var(--s-6);
  padding: clamp(24px, 3.5vw, 40px);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius-lg);
}
@media (min-width: 900px) { .fp-teaser { grid-template-columns: 1.5fr auto; align-items: center; } }
.fp-teaser h3 { color: var(--white); margin-bottom: var(--s-2); }
.fp-teaser p { color: var(--text-on-dark-soft); margin: 0; }

.fp-teaser__stats {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5) var(--s-4);
  margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
}
@media (min-width: 620px) { .fp-teaser__stats { grid-template-columns: repeat(4, 1fr); } }
.fp-teaser__stats dt {
  font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-on-dark-soft); margin-bottom: 2px;
}
.fp-teaser__stats dd {
  margin: 0; font-family: var(--font-display); font-size: 1.7rem; font-weight: 600;
  color: var(--gold-400); line-height: 1; font-variant-numeric: tabular-nums;
}
.fp-teaser__stats dd small { font-size: .5em; font-family: var(--font-body); color: var(--text-on-dark-soft); }
.fp-teaser__actions { display: flex; flex-direction: column; gap: var(--s-3); }
