:root {
  /* Màu: nền sáng, chữ gần đen, một màu nhấn */
  --ink: #1f2421;
  --soft: #5c635e;
  --paper: #fafaf7;
  --surface: #f0efe9;
  --line: #e3e2da;
  --line-strong: #cfcec5;
  --green: #2f5a4a;
  --green-deep: #24463a;
  /* Chữ: một font, hai độ đậm, năm cỡ */
  --sans: "Be Vietnam Pro", system-ui, sans-serif;
  --t-s: 14px;
  --t-h3: 18px;
  --t-h2: clamp(26px, 3vw, 36px);
  --t-h1: clamp(38px, 5.4vw, 64px);
  --gutter: clamp(20px, 7vw, 150px);
  --r: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
:focus-visible { outline: 2.5px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

.art { width: 100%; height: 100%; overflow: visible; filter: saturate(.5); }

/* Khung website */
html.locked { overflow: hidden; }
.wrap { padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 90; padding: 8px 14px; background: var(--ink); color: #fff; border-radius: 8px; }
.skip:focus { top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px; background: var(--green); color: #fff; border-radius: 12px; font-weight: 700; text-align: center; transition: background .2s, color .2s; }
.btn:hover { background: var(--green-deep); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: #f1eadd; }
.btn.ghost { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.wide, .wide { width: 100%; }

.site-header { position: sticky; top: 0; z-index: 30; background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--line); transition: background .25s, color .25s; }
[data-page="home"] .site-header { position: fixed; inset: 0 0 auto; background: linear-gradient(rgb(0 0 0 / .62), rgb(0 0 0 / .36) 60%, transparent) no-repeat; color: #fff; border-color: transparent; }
[data-page="home"] .site-header.solid { background: var(--paper); color: var(--ink); border-color: var(--line); }
.head-in { display: flex; align-items: center; gap: 24px; min-height: 76px; padding-inline: var(--gutter); }
.brand { font-size: clamp(18px, 1.6vw, 22px); font-weight: 800; letter-spacing: -.02em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); margin-left: auto; font-size: 15px; font-weight: 600; }
.nav a { display: inline-flex; align-items: center; gap: 3px; padding-block: 6px; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover, .nav a[aria-current] { border-color: currentColor; }
.nav svg { width: 16px; height: 16px; }
.drop { position: relative; }
.drop-menu { position: absolute; top: 100%; left: -14px; min-width: 240px; margin-top: 8px; padding: 8px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 34px rgb(0 0 0 / .14); opacity: 0; visibility: hidden; transition: opacity .15s, visibility .15s; }
.drop-menu::before { content: ""; position: absolute; inset: -12px 0 auto; height: 12px; }
.drop:hover .drop-menu, .drop:focus-within .drop-menu { opacity: 1; visibility: visible; }
.drop-menu a { display: block; padding: 9px 12px; border: 0; border-radius: 9px; }
.drop-menu a:hover { background: var(--sand); }
.head-cta { min-height: 42px; padding-inline: 18px; font-size: 14px; white-space: nowrap; }
.burger { display: none; place-items: center; width: 44px; height: 44px; margin-left: auto; }
.burger svg { width: 26px; height: 26px; }
.m-menu { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; gap: 16px; padding: 12px 20px 24px; overflow-y: auto; background: var(--paper); color: var(--ink); }
.m-menu[hidden] { display: none; }
.m-top { display: flex; align-items: center; justify-content: space-between; }
.m-top .burger { display: grid; margin: 0; }
.m-menu nav { display: grid; flex: 1; align-content: start; }
.m-menu nav a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; }

.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.sec-head p { margin-top: 8px; color: var(--soft); }
.more { flex: none; padding-block: 6px; font-weight: 700; color: var(--green-deep); text-decoration: underline; text-underline-offset: 4px; }
.band { background: var(--sand); }
.grid { display: grid; gap: 22px; margin: 0; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
#home-steps, #home-projects, .sec > #models { margin-top: 32px; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.steps span { font-size: 15px; font-weight: 800; color: var(--green-deep); }
.steps h3 { margin: 6px 0; font-size: 18px; font-weight: 700; }
.steps p { color: var(--soft); font-size: 15px; }
.card-title { margin-top: 12px; font-size: 18px; font-weight: 700; }
.ph { display: grid; place-items: center; padding: 20px; background: var(--sand); border: 1.5px dashed #c9bda8; border-radius: 16px; color: var(--soft); font-size: 14px; font-weight: 600; text-align: center; }
.ph.tall { aspect-ratio: 4 / 3; }
.tag-todo { display: inline-block; padding: 2px 10px; background: #f3e9d2; color: #5f4b23; border-radius: 99px; font-size: 13px; font-weight: 600; }

.cta { background: var(--green-deep); color: #fff; }
.cta-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding-block: clamp(44px, 6vw, 72px); }
.cta h2 { font-size: clamp(25px, 3vw, 36px); line-height: 1.18; font-weight: 800; letter-spacing: -.02em; }
.cta p { margin-top: 8px; color: #e6f0ea; max-width: 52ch; }
.cta .btn { flex: none; }

.page-head { padding-block: clamp(26px, 4vw, 44px); background: var(--sand); }
.page-head h1, .detail h1 { font-size: clamp(32px, 4.6vw, 52px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.page-head p { margin-top: 10px; max-width: 60ch; color: var(--soft); font-size: 17px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; font-size: 14px; color: var(--soft); }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.body { padding-block: clamp(36px, 5vw, 64px); }
.narrow { max-width: 820px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.rich > * + * { margin-top: 14px; }
.rich h2, .sec-title, .detail h2 { font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.rich h2:not(:first-child) { margin-top: 28px; }
.sec-title { margin-bottom: 20px; }
.ticks a { display: inline-block; padding-block: 5px; text-decoration: underline; text-underline-offset: 3px; }

.p-card { display: flex; flex-direction: column; height: 100%; }
.p-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 16px; background: var(--sand); }
.p-media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: scale .35s; }
.p-card:hover img { scale: 1.04; }
.media-art { display: grid; place-items: center; width: 100%; height: 100%; padding: 14px; background: var(--c); }
.media-art .art { width: auto; }
.p-name { margin-top: 14px; font-size: 20px; font-weight: 700; }
.p-desc { flex: 1; margin-top: 4px; font-size: 15px; color: var(--soft); }
.p-price { margin-top: 8px; font-weight: 700; color: var(--green-deep); }

.detail-top { padding-top: 22px; }
.detail { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; padding-bottom: 20px; }
.detail-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: 20px; background: var(--sand); }
.detail-media video, .detail-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lead { margin-top: 12px; font-size: 18px; }
.d-price { margin: 16px 0; font-size: 22px; font-weight: 800; color: var(--green-deep); }
.detail h2 { margin-top: 30px; }
.specs { margin: 10px 0 0; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.specs dt { font-weight: 600; }
.specs dd { margin: 0; }

.faq { border-bottom: 1px solid var(--line); }
.faq summary { padding: 16px 0; font-size: 18px; font-weight: 700; cursor: pointer; }
.faq > div { padding-bottom: 16px; color: var(--soft); }
.policy { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.policy nav { position: sticky; top: 100px; }
.policy nav a { display: block; padding: 7px 0; font-weight: 600; }
.policy section { padding-bottom: 28px; scroll-margin-top: 100px; }
.policy h2 { margin-bottom: 8px; font-size: 24px; font-weight: 800; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.form input, .form select, .form textarea { width: 100%; min-height: 46px; padding: 10px 12px; background: #fff; border: 1.5px solid #cdc2ae; border-radius: 10px; font: inherit; font-weight: 400; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2.5px solid var(--green); outline-offset: 1px; }
.full { grid-column: 1 / -1; }
.notice { display: grid; gap: 10px; padding: 14px; background: var(--sand); border-radius: 12px; }
.notice[hidden] { display: none; }
.notice pre { margin: 0; white-space: pre-wrap; font: inherit; }
.notice .btn { justify-self: start; }

.site-footer { background: var(--ink); color: #dfe0da; }
.foot { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; padding: clamp(40px, 5vw, 60px) var(--gutter) 28px; }
.foot h2 { margin-bottom: 10px; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #cfc6b8; }
.foot li a { display: inline-block; padding-block: 4px; font-size: 15px; }
.foot li a:hover { text-decoration: underline; text-underline-offset: 3px; }
.reach { display: grid; gap: 8px; margin-top: 12px; font-size: 15px; }
.reach a { display: inline-flex; align-items: center; gap: 10px; min-height: 36px; }
.reach svg { width: 20px; height: 20px; flex: none; }
.reach-row { display: flex; align-items: center; gap: 10px; min-height: 36px; margin: 0; }
.reach a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.map { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 16px; background: var(--sand); }
.notice-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.todo { color: #cfc6b8; }
.reach.light .todo { color: var(--soft); }
.foot-end { padding: 14px 16px 20px; border-top: 1px solid rgb(255 255 255 / .12); color: #cfc6b8; font-size: 13px; text-align: center; }

@media (max-width: 1120px) {
  .nav, .head-cta { display: none; }
  .burger { display: grid; }
  .head-in { min-height: 68px; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .foot { grid-template-columns: repeat(3, 1fr); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .grid.three, .split, .detail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .detail, .policy { grid-template-columns: minmax(0, 1fr); }
  .policy nav { position: static; }
  .cta-in { flex-direction: column; align-items: flex-start; }
  .detail-media { aspect-ratio: 4 / 3.6; }
}
@media (max-width: 620px) {
  .grid.three, .steps, .form { grid-template-columns: minmax(0, 1fr); }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 6px; }
  .foot { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Quy tắc chung: giữ ở cuối để áp lên toàn site */
b, strong, h1, h2, h3, dt, summary { font-weight: 600; }
.sec { padding: clamp(48px, 7vw, 80px) var(--gutter); }
.btn { min-height: 44px; padding: 10px 20px; border-radius: 10px; font-size: 15px; font-weight: 600; }
.btn:hover { background: var(--green-deep); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--surface); }
.btn.ghost { box-shadow: inset 0 0 0 1px var(--line-strong); }
.brand { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.nav { font-size: var(--t-s); font-weight: 400; }
.nav a[aria-current] { font-weight: 600; }
.head-cta { min-height: 40px; }
.page-head { background: var(--surface); }
.page-head h1, .detail h1 { font-size: var(--t-h2); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.page-head p { font-size: 16px; }
.sec-title, .rich h2, .detail h2, .policy h2, .cta h2 { font-size: var(--t-h3); font-weight: 600; letter-spacing: 0; }
.rich h2:not(:first-child), .detail h2 { margin-top: 24px; }
.cta { background: var(--surface); color: var(--ink); }
.cta h2 { font-size: var(--t-h2); line-height: 1.2; }
.cta p { color: var(--soft); }
.cta .btn.light { background: var(--green); color: #fff; }
.cta .btn.light:hover { background: var(--green-deep); }
.lead { font-size: 16px; color: var(--soft); }
.d-price { font-size: var(--t-h3); font-weight: 600; color: var(--ink); }
.p-media, .ph, .detail-media, .map { border-radius: var(--r); }
.p-media { aspect-ratio: 4 / 3; }
.p-name, .card-title { font-size: var(--t-h3); font-weight: 600; }
.p-desc { font-size: var(--t-s); }
.media-art { background: var(--surface); }
.steps span { font-size: var(--t-s); font-weight: 400; color: var(--soft); }
.steps h3 { font-size: var(--t-h3); font-weight: 600; }
.steps p { font-size: var(--t-s); }
.tag-todo { padding: 0; background: none; color: var(--soft); font-size: var(--t-s); font-weight: 400; }
.ph { background: var(--surface); border: 1px dashed var(--line-strong); font-weight: 400; }
.faq summary { font-size: 16px; font-weight: 600; }
.form label { font-size: var(--t-s); font-weight: 400; color: var(--soft); }
.form input, .form select, .form textarea { border: 1px solid var(--line-strong); color: var(--ink); }
.notice { background: var(--surface); }
.foot h2 { font-size: var(--t-s); font-weight: 600; letter-spacing: 0; text-transform: none; color: #fff; }
.foot li a, .reach { font-size: var(--t-s); }
.foot-end { font-size: var(--t-s); }
.site-footer { color: #dfe0da; }
.foot-end, .todo { color: #b9bbb4; }
.group { scroll-margin-top: 96px; }
.group + .group { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.group-note { color: var(--soft); }
.group-note a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.drop-menu { min-width: 260px; }
.drop-menu li + li { margin-top: 4px; }
.drop-menu .drop-group { font-weight: 600; }
.drop-menu li > a:not(.drop-group) { padding-block: 5px; padding-left: 22px; color: var(--soft); }
.d-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.d-thumbs button { position: relative; }
.d-thumbs .is-video::after { content: ""; position: absolute; left: 50%; top: 50%; translate: -35% -50%; border: 9px solid transparent; border-left: 14px solid #fff; border-right: 0; filter: drop-shadow(0 1px 3px rgb(0 0 0 / .6)); }
.d-thumbs button { width: 88px; aspect-ratio: 16 / 10; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 8px; opacity: .8; }
.d-thumbs button:hover { opacity: 1; }
.d-thumbs button[aria-pressed=true] { border-color: var(--ink); opacity: 1; }
.d-thumbs img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pair { margin-top: 12px; color: var(--soft); font-size: var(--t-s); }
.pair a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.specs dd { text-align: right; }
.c-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* Giới thiệu: câu chuyện theo chương */
.story { display: grid; gap: clamp(40px, 6vw, 72px); }
.chapter { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ch-side { display: grid; gap: 16px; }
.ch-tag { justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--green); color: #fff; font-size: 14px; font-weight: 600; }
.chapter .rich p { line-height: 1.75; }
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.pillars li { padding: 24px; border-radius: var(--r); background: var(--surface); }
.pillars span { font-size: 14px; font-weight: 700; color: var(--green-deep); }
.pillars h3 { margin-top: 8px; font-size: var(--t-h3); font-weight: 600; }
.pillars p { margin-top: 8px; color: var(--soft); line-height: 1.65; }
.slogan { margin: 24px 0 0; padding: 16px 20px; border-left: 3px solid var(--green); border-radius: 0 12px 12px 0; font-size: 18px; font-style: italic; background: var(--surface); }
.slogan b { font-style: normal; color: var(--green-deep); }
@media (max-width: 899px) { .chapter, .pillars { grid-template-columns: minmax(0, 1fr); } }
.ch-img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r); }

/* Trang Công trình: dùng chung thẻ .p-card và khung .detail của trang sản phẩm */
.pj-media { display: block; width: 100%; padding: 0; aspect-ratio: 4 / 3; cursor: zoom-in; }
.d-thumbs.pj button { width: 76px; aspect-ratio: 1; }
.lb { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(15 18 16 / .94); color: #fff; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: transparent; }
.lb img { max-width: min(92vw, 1400px); max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lb-cap { position: absolute; left: 0; right: 0; bottom: 18px; text-align: center; font-size: var(--t-s); color: #dfe0da; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgb(255 255 255 / .12); color: #fff; font-size: 28px; line-height: 1; }
.lb-btn:hover { background: rgb(255 255 255 / .24); }
.lb-close { top: 16px; right: 16px; font-size: 20px; }
.lb-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lb-next { right: 16px; top: 50%; translate: 0 -50%; }
@media (max-width: 620px) {
  .lb-prev, .lb-next { top: auto; bottom: 52px; translate: none; }
  .lb-cap { bottom: 66px; }
}

/* Tin tức: thẻ bài dùng .p-card; trang bài viết đọc dễ ở khổ hẹp */
.post-tag { display: block; margin-top: 14px; font-size: 13px; font-weight: 600; color: var(--green); }
.p-card .post-tag + .p-name { margin-top: 4px; }
.post { box-sizing: content-box; max-width: 780px; margin-inline: auto; padding-block: 22px clamp(28px, 4vw, 48px); }
.post-meta { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: var(--t-s); color: var(--soft); }
.post-meta .post-tag { margin: 0; }
.post h1 { margin-top: 8px; font-size: var(--t-h2); line-height: 1.2; font-weight: 600; letter-spacing: -.01em; }
.post-lead { margin-top: 12px; font-size: 17px; color: var(--soft); }
.post-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-top: 24px; border-radius: var(--r); background: var(--surface); }
.post-body { margin-top: 28px; font-size: 17px; line-height: 1.75; }
.post-body h2 { margin-top: 36px; font-size: 22px; }
.post-body h3 { margin-top: 22px; font-size: var(--t-h3); font-weight: 600; }
.post-body ul { padding-left: 1.2em; list-style: disc; }
.post-body li + li { margin-top: 6px; }
.post-body a { color: var(--green-deep); text-decoration: underline; text-underline-offset: 3px; }
.table-wrap { overflow-x: auto; }
.post-body table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.post-body th, .post-body td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-body thead th { background: var(--surface); }
.post-body tbody th { font-weight: 600; white-space: nowrap; }

/* Chính sách */
.policy h3 { margin-top: 18px; font-size: 16px; font-weight: 600; }
.policy-list { padding-left: 1.2em; list-style: disc; color: var(--ink); }
.policy-list li + li { margin-top: 6px; }
.policy-list b { font-weight: 600; }
.policy section + section { padding-top: 28px; border-top: 1px solid var(--line); }
