/* ============================================================
   denhattuong.com — Đệ Nhất Tượng (màu thương hiệu Đệ Nhất Đỉnh)
   Ngôn ngữ thị giác: xưởng điêu khắc. Nền thạch cao, khối tối
   như bệ trưng bày, điểm nhấn màu gỉ đồng thay cho vàng kim.
   ============================================================ */

:root {
  color-scheme: light;

  /* Bảng màu thương hiệu Đệ Nhất Đỉnh (lấy theo denhatdinh.com):
     vàng đồng #9e8039, vàng sáng #fbc93a, nền trắng, chữ đen. */
  --plaster:      #ffffff;
  --plaster-deep: #f7f4ee;
  --plaster-edge: #e4dccb;
  --soot:         #2a2113;
  --soot-soft:    #382c19;
  --soot-edge:    #4d3e24;
  --patina:       #7d6427;
  --patina-lift:  #fbc93a;
  --bronze:       #9e8039;
  --bronze-lift:  #d4b15a;
  --ink:          #1a1712;
  --mist:         #5f594f;
  --mist-dark:    #b9ae98;
  --gold-grad:    linear-gradient(100deg, #7f6427 0%, #a8873c 45%, #c5a44f 60%, #8d702e 100%);

  --serif: "Spectral", "Iowan Old Style", Georgia, serif;
  --display: var(--serif);
  --sans: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gut: clamp(1.25rem, 4vw, 3.5rem);
  --rule: 1px solid var(--plaster-edge);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--plaster);
  color: var(--ink);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  font-weight: 400;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

::selection { background: var(--patina); color: #fff; }

:focus-visible {
  outline: 2px solid var(--patina);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - (var(--gut) * 2), 76rem);
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--soot);
  color: #fff;
  padding: 0.75rem 1.25rem;
  z-index: 50;
}
.skip:focus { left: 0; }

/* ---------- Chữ ---------- */

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.9rem); font-weight: 300; }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.6vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); }

p { margin: 0 0 1.1em; }

/* ---------- Đầu trang ---------- */

.masthead {
  background: var(--plaster);
  border-bottom: var(--rule);
  position: sticky;
  top: 0;
  z-index: 40;
}

.masthead-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.5rem;
  flex-wrap: wrap;
}

.mark {
  text-decoration: none;
  display: grid;
  margin-right: auto;
  line-height: 1.1;
}
.mark-name {
  font-family: var(--serif);
  font-size: 1.45rem;
  letter-spacing: 0.01em;
}
.mark-sub {
  font-size: 0.78rem;
  color: var(--mist);
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
}

.nav ul {
  display: flex;
  gap: 1.65rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  font-size: 0.925rem;
  color: var(--mist);
  padding-block: 0.4rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--bronze);
}

.call {
  font-family: var(--serif);
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--patina);
  white-space: nowrap;
}
.call:hover { color: var(--ink); }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  background: none;
  border: var(--rule);
  border-radius: 2px;
  padding: 0.5rem 0.85rem;
  font: inherit;
  font-size: 0.875rem;
  color: var(--ink);
  cursor: pointer;
}
.menu-bars {
  width: 16px;
  height: 9px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
}

/* ---------- Mẩu đường dẫn ---------- */

.crumb {
  width: min(100% - (var(--gut) * 2), 76rem);
  margin: 1.5rem auto -0.5rem;
  font-size: 0.82rem;
  color: var(--mist);
}
.crumb a { text-decoration: none; border-bottom: 1px solid var(--plaster-edge); }
.crumb a:hover { border-bottom-color: var(--bronze); }
.crumb span::before { content: " / "; }

/* ---------- Khối mở đầu ---------- */

.opening {
  background: var(--soot);
  color: var(--plaster);
  padding-block: clamp(3.5rem, 8vw, 7rem);
  position: relative;
}

.opening-grid {
  display: grid;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .opening-grid { grid-template-columns: 1.15fr 0.85fr; }
}

.opening h1 { color: #faf7f1; max-width: 15ch; }

.opening-lede {
  margin-top: 1.75rem;
  max-width: 44ch;
  color: #cdc7bd;
  font-size: 1.08rem;
  line-height: 1.7;
}

.opening-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}

.btn {
  display: inline-block;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.85rem 1.6rem;
  border-radius: 2px;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-solid { background: var(--patina); color: #fff; }
.btn-solid:hover { background: var(--patina-lift); color: var(--soot); }
.btn-ghost { border-color: var(--soot-edge); color: #e4dccb; }
.btn-ghost:hover { border-color: var(--bronze-lift); color: #fff; }

/* dãy bốn công đoạn, đặt mỏng dưới phần mở đầu */
.stages {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: clamp(3rem, 7vw, 5rem);
  border-top: 1px solid var(--soot-edge);
}
.stages div {
  flex: 1 1 8rem;
  padding: 1.15rem 1.15rem 0 0;
  font-size: 0.9rem;
  color: var(--mist-dark);
  border-top: 2px solid transparent;
  margin-top: -1px;
}
.stages div:first-child {
  border-top-color: var(--bronze);
  color: #e8e0cf;
}

/* ---------- Bệ ảnh ---------- */

.plinth {
  background: linear-gradient(170deg, #302c27 0%, #1f1c19 100%);
  border: 1px solid var(--soot-edge);
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
  position: relative;
}
.plinth::after {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border: 1px solid rgba(192, 154, 102, 0.22);
  pointer-events: none;
}
.plinth p {
  margin: 0;
  color: var(--mist-dark);
  font-size: 0.82rem;
  line-height: 1.6;
  max-width: 24ch;
}
.plinth code {
  display: block;
  margin-top: 0.6rem;
  color: var(--bronze-lift);
  font-size: 0.78rem;
  word-break: break-all;
}

.plinth-wide { aspect-ratio: 3 / 2; }

/* ---------- Khối nội dung chung ---------- */

.band { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band-line { border-top: var(--rule); }
.band-dark { background: var(--soot); color: #e6dcc6; }
.band-dark h2 { color: #faf7f1; }

.band-head { max-width: 52ch; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.band-head p { margin-top: 1.1rem; color: var(--mist); }
.band-dark .band-head p { color: var(--mist-dark); }

/* ---------- Bốn công đoạn, dạng mốc dọc ---------- */

.craft { display: grid; gap: 0; }

.craft-step {
  display: grid;
  gap: 0.35rem 2rem;
  padding: 2rem 0 2.25rem;
  border-left: 1px solid var(--plaster-edge);
  padding-left: clamp(1.5rem, 4vw, 3rem);
  position: relative;
}
.craft-step::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 2.65rem;
  width: 7px;
  height: 7px;
  background: var(--bronze);
  border-radius: 50%;
}
.craft-step:last-child { border-left-color: transparent; }

@media (min-width: 48rem) {
  .craft-step { grid-template-columns: 7rem 1fr; }
}

.craft-num {
  font-family: var(--serif);
  font-size: clamp(2.5rem, 2rem + 2vw, 3.4rem);
  font-weight: 300;
  color: var(--bronze);
  line-height: 0.85;
}
.craft-body h3 { margin-bottom: 0.5rem; }
.craft-body p { color: var(--mist); max-width: 56ch; margin-bottom: 0; }

/* ---------- Danh mục tượng ---------- */

.kinds {
  display: grid;
  gap: 1px;
  background: var(--soot-edge);
  border: 1px solid var(--soot-edge);
}
@media (min-width: 40rem) { .kinds { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .kinds { grid-template-columns: repeat(3, 1fr); } }

.kind {
  background: var(--soot);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  display: grid;
  gap: 0.6rem;
  align-content: start;
}
.kind h3 { color: #f7f4ee; font-size: 1.3rem; }
.kind p { color: var(--mist-dark); font-size: 0.93rem; margin: 0; }
.kind-note { color: var(--bronze-lift); font-size: 0.85rem; }

/* ---------- Lời cam kết ---------- */

.pledge {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
}
@media (min-width: 52rem) { .pledge { grid-template-columns: repeat(3, 1fr); } }

.pledge-item { border-top: 2px solid var(--bronze); padding-top: 1.15rem; }
.pledge-item h3 { margin-bottom: 0.45rem; }
.pledge-item p { color: var(--mist); margin: 0; font-size: 0.96rem; }

/* ---------- Khối gọi hành động ---------- */

.invite {
  background: var(--patina);
  color: #fbf7ec;
  padding-block: clamp(3rem, 7vw, 5rem);
}
.invite h2 { color: #fff; max-width: 20ch; }
.invite p { margin-top: 1.1rem; max-width: 46ch; color: #efe3c4; }
.invite .btn-solid { background: #fff; color: var(--patina); }
.invite .btn-solid:hover { background: var(--soot); color: #fff; }
.invite .btn-ghost { border-color: rgba(255,255,255,0.45); color: #fff; }
.invite .btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,0.1); }

/* ---------- Bài viết ---------- */

.prose {
  width: min(100% - (var(--gut) * 2), 44rem);
  margin: clamp(2.5rem, 6vw, 4.5rem) auto;
}
.prose h1 { margin-bottom: 1.75rem; }
.prose h2 { margin: 2.5rem 0 0.9rem; }
.prose h3 { margin: 2rem 0 0.6rem; }
.prose p, .prose li { max-width: 68ch; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--patina); text-underline-offset: 3px; }
.prose img { margin: 2rem 0; }
.prose blockquote {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 2px solid var(--bronze);
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--mist);
}
.dateline { color: var(--mist); font-size: 0.85rem; margin-bottom: 0.75rem; }

.post-list { list-style: none; margin: 0; padding: 0; }
.post-item { border-top: var(--rule); }
.post-item:last-child { border-bottom: var(--rule); }
.post-item a {
  display: grid;
  gap: 0.3rem;
  padding: 1.75rem 0;
  text-decoration: none;
}
.post-item a:hover .post-title { color: var(--patina); }
.post-date { font-size: 0.8rem; color: var(--mist); }
.post-title { font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.post-excerpt { color: var(--mist); font-size: 0.95rem; max-width: 64ch; }

/* ---------- Bảng thông tin liên hệ ---------- */

.reach { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
@media (min-width: 48rem) { .reach { grid-template-columns: 1fr 1fr; } }
.reach h3 { margin-bottom: 0.5rem; }
.reach p { color: var(--mist); margin-bottom: 0.4rem; }
.reach a { color: var(--patina); text-underline-offset: 3px; }

/* ---------- Chân trang ---------- */

.foot {
  background: var(--soot);
  color: var(--mist-dark);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  font-size: 0.92rem;
  margin-top: 0;
}
.foot-grid { display: grid; gap: 2.25rem; }
@media (min-width: 46rem) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

.foot h2 {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: #e4dccb;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}
.foot p { margin-bottom: 0.4rem; }
.foot a { color: var(--patina-lift); text-decoration: none; }
.foot a:hover { color: #fff; text-decoration: underline; }

.foot-name { font-family: var(--serif); font-size: 1.25rem; color: #f7f4ee; }
.foot-line { color: var(--mist-dark); }

.foot-base {
  margin-top: 3rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--soot-edge);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  justify-content: space-between;
  font-size: 0.82rem;
}
.foot-base p { margin: 0; }

/* ---------- Nút gọi nổi trên điện thoại ---------- */


/* ---------- Thu nhỏ màn hình ---------- */

@media (max-width: 56rem) {
  .menu-toggle { display: inline-flex; }
  .nav {
    flex-basis: 100%;
    display: none;
    padding-bottom: 1rem;
  }
  .nav.is-open { display: block; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav a { display: block; padding: 0.7rem 0; border-bottom: var(--rule); }
  .nav a[aria-current="page"] { border-bottom-color: var(--bronze); }
  .call { font-size: 1.05rem; }
}

@media (max-width: 36rem) {
  .call { display: none; }
  .foot { padding-bottom: 5.5rem; }
}

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

@media print {
  .masthead, .foot, .fab, .fab-quote, .mbar, .quote, .trust, .invite { display: none; }
  body { background: #fff; }
}

/* ---------- Video ---------- */

.film {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--soot);
  border: 1px solid var(--soot-edge);
}
.film iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.film-cap {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--mist);
  max-width: 60ch;
}
.band-dark .film-cap { color: var(--mist-dark); }

.film-row {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 52rem) { .film-row { grid-template-columns: repeat(3, 1fr); } }
.film-wrap { margin: 0; }

/* ---------- Ảnh sản phẩm ---------- */

.shots {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 40rem) { .shots { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 64rem) { .shots { grid-template-columns: repeat(4, 1fr); } }

.shots a {
  display: block;
  background: var(--soot);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.2s ease;
}
.shots a:hover img { opacity: 0.88; }

.shot-lead {
  background: var(--soot);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.shot-lead img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Trang sản phẩm: ảnh + chữ ---------- */

.piece {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  padding-block: clamp(2.5rem, 6vw, 4rem);
  border-top: var(--rule);
  align-items: start;
}
@media (min-width: 56rem) { .piece { grid-template-columns: 0.9fr 1.1fr; } }
.piece:first-of-type { border-top: 0; }
.piece-body h2 { margin-bottom: 0.6rem; }
.piece-body p { color: var(--mist); max-width: 56ch; }
.piece-spec {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.35rem 1.25rem;
  font-size: 0.93rem;
  margin: 1.25rem 0;
}
.piece-spec dt { color: var(--mist); }
.piece-spec dd { margin: 0; }
.piece-shots {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(3, 1fr);
}
.piece-shots a { background: var(--soot); aspect-ratio: 1; overflow: hidden; display: block; }
.piece-shots img { width: 100%; height: 100%; object-fit: cover; }
.piece-shots a:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }

/* ---------- Danh mục sản phẩm ---------- */

.range {
  display: grid;
  gap: 1px;
  background: var(--plaster-edge);
  border: 1px solid var(--plaster-edge);
}
@media (min-width: 40rem) { .range { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .range { grid-template-columns: repeat(3, 1fr); } }

.range a {
  display: grid;
  background: var(--plaster);
  text-decoration: none;
  grid-template-rows: auto 1fr;
}
.range a:hover { background: var(--plaster-deep); }
.range-img {
  aspect-ratio: 4 / 3;
  background: var(--soot);
  overflow: hidden;
}
.range-img img { width: 100%; height: 100%; object-fit: cover; }
.range-text { padding: 1.25rem 1.4rem 1.5rem; }
.range-text h3 { margin-bottom: 0.4rem; }
.range-text p { color: var(--mist); font-size: 0.93rem; margin: 0; }

/* ---------- Ảnh chính ở phần mở đầu ---------- */

.plinth-photo {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid var(--soot-edge);
  position: relative;
  background: var(--soot);
}
.plinth-photo img { width: 100%; height: 100%; object-fit: cover; }
.plinth-photo::after {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border: 1px solid rgba(192, 154, 102, 0.28);
  pointer-events: none;
}

/* ---------- Lưới ảnh kiểu masonry: ảnh ngang chiếm 2 ô ---------- */

.shots { grid-auto-flow: dense; }
.shots .tile { aspect-ratio: 4 / 5; }
.shots .tile-wide { grid-column: span 2; aspect-ratio: auto; }
.shots .tile-wide img { height: 100%; }

.plinth-photo img, .shot-lead img, .range-img img { object-position: center 30%; }

.range-img:empty {
  background: linear-gradient(135deg, #2b2724 0%, #1b1916 100%);
  position: relative;
}
.range-img:empty::after {
  content: "";
  position: absolute;
  inset: 0.6rem;
  border: 1px solid rgba(192, 154, 102, 0.18);
}

/* ---------- Lightbox ---------- */

.lb-box {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(27, 25, 22, 0.95);
  display: grid;
  grid-template-columns: 3.5rem 1fr 3.5rem;
  grid-template-rows: 1fr auto;
  align-items: center;
  justify-items: center;
}
.lb-box[hidden] { display: none; }
.lb-fig {
  grid-column: 2;
  grid-row: 1;
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 0.6rem;
  max-width: 100%;
}
.lb-fig img {
  max-width: min(92vw, 1400px);
  max-height: 82vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lb-cap { color: var(--mist-dark); font-size: 0.9rem; text-align: center; max-width: 60ch; }
.lb-count {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0;
  padding: 0.75rem;
  color: var(--mist-dark);
  font-size: 0.82rem;
}
.lb-btn {
  background: none;
  border: 0;
  color: #ece5d6;
  font-size: 2.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.5rem 0.75rem;
  opacity: 0.75;
}
.lb-btn:hover, .lb-btn:focus-visible { opacity: 1; outline-color: var(--bronze-lift); }
.lb-x { position: fixed; top: 0.6rem; right: 0.9rem; font-size: 2.2rem; }
.lb-prev { grid-column: 1; grid-row: 1; }
.lb-next { grid-column: 3; grid-row: 1; }

@media (max-width: 40rem) {
  .lb-box { grid-template-columns: 2.4rem 1fr 2.4rem; }
  .lb-btn { font-size: 2rem; padding: 0.4rem; }
  .lb-fig img { max-width: 94vw; max-height: 72vh; }
}

/* ---------- Câu hỏi thường gặp ---------- */

.faq-list { display: grid; gap: 0; border-top: var(--rule); max-width: 68ch; }
.faq { border-bottom: var(--rule); }
.faq summary {
  cursor: pointer;
  padding: 1.1rem 2.2rem 1.1rem 0;
  font-family: var(--serif);
  font-size: 1.2rem;
  line-height: 1.3;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 1rem;
  color: var(--bronze);
  font-family: var(--sans);
  font-size: 1.4rem;
  transition: transform 0.2s ease;
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--patina); }
.faq-body { padding: 0 0 1.25rem; color: var(--mist); max-width: 62ch; }
.faq-body p { margin-bottom: 0.6rem; }

/* ---------- Bản đồ ---------- */

.map {
  aspect-ratio: 16 / 9;
  background: var(--plaster-deep);
  border: var(--rule);
}
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (min-width: 48rem) { .map { aspect-ratio: 21 / 9; } }

/* ---- stats strip ---- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem 1rem; }
@media (min-width: 52rem) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat b { display: block; font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; color: var(--soot); letter-spacing: -0.02em; }
.stat b span { font-size: 0.5em; color: var(--bronze); margin-left: 0.15em; }
.stat p { margin: 0.45rem 0 0; color: var(--mist); font-size: 0.95rem; }

/* ---- four kinds ---- */
.kinds4 { display: grid; gap: 1.25rem; }
@media (min-width: 52rem) { .kinds4 { grid-template-columns: repeat(2, 1fr); } }
.kind4 { position: relative; background: #fff; border: 1px solid rgba(27,25,22,0.1); padding: 1.6rem 1.5rem 1.4rem; }
.kind4-num { font-family: var(--display); color: var(--bronze); font-size: 0.95rem; letter-spacing: 0.12em; }
.kind4 h3 { margin: 0.35rem 0 0.6rem; font-size: 1.3rem; }
.kind4 p { color: var(--mist); font-size: 0.96rem; }
.kind4 dl { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 0.9rem; margin: 1rem 0 0; padding-top: 0.9rem; border-top: 1px solid rgba(27,25,22,0.1); font-size: 0.9rem; }
.kind4 dt { color: var(--bronze); font-weight: 600; }
.kind4 dd { margin: 0; color: var(--soot); }
.note { color: var(--mist); font-size: 0.95rem; margin-top: 1.4rem; max-width: 60ch; }

/* ---- five pledges ---- */
@media (min-width: 52rem) { .pledge-5 { grid-template-columns: repeat(5, 1fr); gap: 1.4rem; } .pledge-5 h3 { font-size: 1.05rem; } .pledge-5 p { font-size: 0.9rem; } }

/* ---- bảo chứng ---- */
.certs { display: grid; gap: 2rem; }
@media (min-width: 52rem) { .certs { grid-template-columns: 1fr 1fr; gap: 2.5rem; } }
.cert { margin: 0; background: #fff; border: 1px solid rgba(27,25,22,0.1); padding: 1rem; }
.cert img { width: 100%; height: auto; display: block; }
.cert figcaption { padding: 1.1rem 0.4rem 0.3rem; }
.cert h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.cert dl { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 0.9rem; font-size: 0.9rem; margin: 0; }
.cert dt { color: var(--bronze); font-weight: 600; } .cert dd { margin: 0; }
.reviews { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .reviews { grid-template-columns: repeat(3, 1fr); } }
.review { margin: 0; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); padding: 1.2rem 1.3rem; }
.review p { color: #f7f4ee; font-family: var(--display); font-size: 1.08rem; margin: 0 0 0.7rem; }
.review cite { font-style: normal; color: var(--bronze-lift, #c9a46a); font-size: 0.85rem; }
.press { display: grid; gap: 1rem; }
@media (min-width: 52rem) { .press { grid-template-columns: 1fr 1fr; } }
.press-item { display: block; border: 1px solid rgba(27,25,22,0.12); padding: 1.3rem 1.4rem; text-decoration: none; color: inherit; background: #fff; }
.press-item:hover { border-color: var(--bronze); }
.press-src, .press-date { display: block; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bronze); }
.press-item h3 { margin: 0.4rem 0; font-size: 1.15rem; }
.cert-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.cert-strip img { width: 100%; height: auto; display: block; border: 1px solid rgba(27,25,22,0.12); background: #fff; padding: 0.4rem; }
.cert-row { display: grid; gap: 1.6rem; margin-top: 2.4rem; padding-top: 2.2rem; border-top: 1px solid rgba(27,25,22,0.12); align-items: center; }
@media (min-width: 52rem) { .cert-row { grid-template-columns: 1fr 1.2fr; gap: 3rem; } }
.cert-text p { color: var(--mist); margin: 0.6rem 0 1.2rem; }
.band .btn-ghost { color: var(--soot); border-color: rgba(27,25,22,0.35); }
.band .btn-ghost:hover { border-color: var(--bronze); color: var(--soot); }

/* ---------- Chân trang: thêm ---------- */
.foot-legal { font-size: 0.82rem; color: var(--mist-dark); }
.foot-h2-gap { margin-top: 1.4rem; }
.mark-sub { white-space: nowrap; }
@media (max-width: 40rem) { .mark-sub { white-space: normal; font-size: 0.68rem; } }

/* ---------- Dải cam kết (như denhatdinh.com) ---------- */
.trust { background: #fff; border-top: 1px solid rgba(27,25,22,0.1); padding: 1.8rem 0; }
.trust-grid { display: grid; gap: 1.2rem; grid-template-columns: 1fr 1fr; }
@media (min-width: 52rem) { .trust-grid { grid-template-columns: repeat(4, 1fr); gap: 2rem; } }
.trust-item { padding-left: 1rem; border-left: 2px solid var(--bronze); }
.trust-item b { display: block; font-family: var(--display); font-weight: 500; font-size: 1.08rem; color: var(--soot); margin-bottom: 0.25rem; }
.trust-item span { font-size: 0.86rem; color: var(--mist); line-height: 1.45; }

/* ---------- Nút nổi: Gọi ngay / Tư vấn ngay (phải), Nhận báo giá (trái) ---------- */
.fab { position: fixed; right: 1rem; bottom: 1.4rem; z-index: 60; display: flex; flex-direction: column; gap: 0.7rem; align-items: flex-end; }
.fab-btn { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--soot); }
.fab-ic { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,0.25); position: relative; }
.fab-ic svg { width: 28px; height: 28px; }
.fab-call .fab-ic { background: #e8c23a; color: #1b1916; animation: fab-ring 2.4s ease-out infinite; }
.fab-zalo .fab-ic { background: #0068ff; color: #fff; animation: fab-ring 2.4s ease-out 1.2s infinite; }
.fab-txt { background: #fff; padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600; box-shadow: 0 3px 10px rgba(0,0,0,0.18); order: -1; }
@keyframes fab-ring { 0% { box-shadow: 0 0 0 0 rgba(232,194,58,0.55), 0 6px 18px rgba(0,0,0,0.25); } 70% { box-shadow: 0 0 0 16px rgba(232,194,58,0), 0 6px 18px rgba(0,0,0,0.25); } 100% { box-shadow: 0 0 0 0 rgba(232,194,58,0), 0 6px 18px rgba(0,0,0,0.25); } }
.fab-quote { position: fixed; left: 1rem; bottom: 1.6rem; z-index: 60; background: #ff6600; color: #fff; border: 0; font: 600 0.9rem/1 var(--sans); letter-spacing: 0.04em; text-transform: uppercase; padding: 0.95rem 1.3rem; border-radius: 999px; box-shadow: 0 6px 18px rgba(0,0,0,0.25); cursor: pointer; animation: fab-pulse 1.8s ease-in-out infinite; }
@keyframes fab-pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.fab-quote:hover { background: #e55c00; }

/* thanh dưới trên điện thoại */
.mbar { display: none; }
@media (max-width: 56rem) {
  .fab { bottom: 4.6rem; }
  .fab-txt { display: none; }
  .fab-quote { bottom: 4.8rem; padding: 0.8rem 1rem; font-size: 0.8rem; }
  .mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--soot); border-top: 1px solid var(--soot-edge); }
  .mbar a { color: #f7f4ee; text-decoration: none; font-size: 0.72rem; text-align: center; padding: 0.75rem 0.2rem; }
  .mbar .mbar-call { background: var(--patina); font-weight: 600; }
  body { padding-bottom: 3.2rem; }
}

/* ---------- Hộp đăng ký tư vấn ---------- */
.quote { position: fixed; inset: 0; z-index: 90; background: rgba(27,25,22,0.72); display: grid; place-items: center; padding: 1rem; }
.quote[hidden] { display: none; }
.quote-box { position: relative; background: var(--plaster); max-width: 30rem; width: 100%; max-height: 92vh; overflow: auto; padding: 1.8rem 1.6rem 1.4rem; border-top: 4px solid var(--bronze); }
.quote-box h2 { font-size: 1.45rem; margin: 0 0 0.6rem; padding-right: 2rem; }
.quote-box > p { color: var(--mist); font-size: 0.95rem; margin-bottom: 1rem; }
.quote-x { position: absolute; top: 0.5rem; right: 0.6rem; background: none; border: 0; font-size: 1.8rem; line-height: 1; cursor: pointer; color: var(--mist); }
.quote-form { display: grid; gap: 0.65rem; }
.quote-form input[type=text], .quote-form input[type=tel], .quote-form select, .quote-form textarea { width: 100%; padding: 0.75rem 0.85rem; border: 1px solid rgba(27,25,22,0.25); background: #fff; font: inherit; font-size: 0.95rem; color: var(--soot); }
.quote-form textarea { resize: vertical; }
.quote-file { display: block; font-size: 0.86rem; color: var(--mist); }
.quote-file input { display: block; margin-top: 0.3rem; font-size: 0.85rem; }
.quote-hp { position: absolute; left: -9999px; }
.quote-form .btn { width: 100%; text-align: center; }
.quote-note, .quote-alt { font-size: 0.82rem; color: var(--mist); margin: 0; text-align: center; }
.quote-alt a { color: var(--patina); }
.quote-msg { margin: 0; text-align: center; font-weight: 600; color: var(--patina); min-height: 1.2em; }
.quote-msg.is-err { color: #b3261e; }

/* ---------- Cỡ tượng, bảng, mốc thời gian ---------- */
.sizefig { margin: 0 0 1.5rem; background: #fff; border: 1px solid rgba(27,25,22,0.1); padding: 1rem; }
.sizefig svg { width: 100%; height: auto; display: block; }
.table-wrap { overflow-x: auto; }
.sizes { width: 100%; border-collapse: collapse; font-size: 0.93rem; background: #fff; }
.sizes th, .sizes td { text-align: left; padding: 0.7rem 0.8rem; border-bottom: 1px solid rgba(27,25,22,0.12); vertical-align: top; }
.sizes th { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bronze); }
.sizes a { color: var(--patina); }
.stepbar { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.6rem; counter-reset: st; }
@media (min-width: 52rem) { .stepbar { grid-template-columns: repeat(5, 1fr); } }
.stepbar li { counter-increment: st; background: #fff; border-top: 3px solid var(--bronze); padding: 0.8rem 0.9rem; font-size: 0.88rem; }
.stepbar li::before { content: counter(st); display: block; font-family: var(--display); color: var(--bronze); font-size: 1.2rem; }
.stepbar b { display: block; color: var(--soot); }
.stepbar span { color: var(--mist); }
.reviews-light .review { background: #fff; border-color: rgba(27,25,22,0.12); }
.reviews-light .review p { color: var(--soot); }
.reviews-light .review cite { color: var(--bronze); }
/* bảng trong bài viết */
.prose table { width: 100%; border-collapse: collapse; margin: 1.2rem 0 1.6rem; font-size: 0.93rem; background: #fff; }
.prose th, .prose td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid rgba(27,25,22,0.12); vertical-align: top; }
.prose th { font-family: var(--sans); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bronze); }
.prose .film-wrap { margin: 1.4rem 0; }

/* ---------- Mục Video (kiểu baolongbrass.com/video) ---------- */
.vtabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.2rem; }
.vtabs a { padding: 0.55rem 1rem; border: 1px solid rgba(27,25,22,0.18); background: #fff; color: var(--soot); text-decoration: none; font-size: 0.9rem; }
.vtabs a span { color: var(--bronze); font-size: 0.8rem; margin-left: 0.2rem; }
.vtabs a[aria-current="page"], .vtabs a:hover { background: var(--soot); color: #fff; border-color: var(--soot); }
.vtabs a[aria-current="page"] span { color: var(--bronze-lift); }
.vchips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1.2rem 0 0.4rem; }
.vchips button { border: 1px solid rgba(27,25,22,0.2); background: transparent; padding: 0.4rem 0.8rem; font: inherit; font-size: 0.82rem; cursor: pointer; border-radius: 999px; color: var(--soot); }
.vchips button.is-on { background: var(--patina); color: #fff; border-color: var(--patina); }
.vgrid { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 1.4rem 1.1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 52rem) { .vgrid { grid-template-columns: repeat(4, 1fr); } }
.vc a { display: block; text-decoration: none; color: var(--soot); }
.vc-thumb { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; background: var(--soot); }
.vc-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.vc-thumb.is-short img { object-position: center 35%; }
.vc a:hover .vc-thumb img { transform: scale(1.05); }
.vc-play { position: absolute; left: 50%; top: 50%; width: 48px; height: 48px; margin: -24px 0 0 -24px; border-radius: 50%; background: rgba(27,25,22,0.72); }
.vc-play::after { content: ""; position: absolute; left: 19px; top: 14px; border-left: 15px solid #fff; border-top: 10px solid transparent; border-bottom: 10px solid transparent; }
.vc a:hover .vc-play { background: #c4302b; }
.vc-meta { display: flex; justify-content: space-between; gap: 0.5rem; margin-top: 0.55rem; font-size: 0.74rem; }
.vc-tag { color: var(--bronze); letter-spacing: 0.03em; }
.vc-views { color: var(--mist); white-space: nowrap; }
.vc-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 0.25rem; font-family: var(--display); font-size: 1.02rem; line-height: 1.3; }
.vc[hidden] { display: none; }
.vmore-wrap { text-align: center; margin-top: 1.6rem; }
.vhead { position: relative; }
.vall { display: inline-block; margin-top: 0.4rem; color: var(--patina); font-size: 0.9rem; }
.vpage { display: grid; gap: 1.6rem; }
@media (min-width: 52rem) { .vpage { grid-template-columns: 1.5fr 1fr; align-items: start; gap: 2.4rem; } }
.vpage-side h1 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 0.4rem 0 0.9rem; }
.vpage-side p { color: var(--mist); }
.film-wrap-short { max-width: 360px; margin-inline: auto; }
.film.film-short { aspect-ratio: 9 / 16; }
.crumb a + a::before { content: " / "; color: var(--mist); display: inline-block; margin-right: 0.25em; }
@media (min-width: 56.01rem) and (max-width: 88rem) {
  .nav ul { gap: 1.1rem; }
  .nav a { font-size: 0.86rem; }
  .masthead .call { display: none; }
}

/* ---------- Chủ đề (tag) và bài liên quan ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 2rem 0 0; font-size: 0.9rem; }
.tags span { color: var(--mist); }
.tag { display: inline-block; padding: 0.3rem 0.75rem; border: 1px solid currentColor; border-radius: 999px; color: var(--patina); text-decoration: none; line-height: 1.3; }
.tag:hover { background: var(--patina); color: #fff; }
.tag small { opacity: 0.7; }
.tag-cloud { margin: 0 0 1.5rem; }
.related { margin-top: 3rem; }
.related h2 { margin-bottom: 0.5rem; }
.related .post-item a { padding: 1.1rem 0; }
.related .post-title { font-size: 1.2rem; }


/* ---------- Màu thương hiệu: thanh đầu trang vàng đồng như denhatdinh.com ---------- */
.masthead { background: var(--gold-grad); border-bottom: 2px solid var(--patina-lift); color: #fff; }
.masthead .mark-name { color: #fff; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; font-size: 1.3rem; }
.masthead .mark-sub { color: rgba(255,255,255,0.85); }
.masthead .nav a { color: rgba(255,255,255,0.88); }
.masthead .nav a:hover, .masthead .nav a[aria-current="page"] { color: #fff; border-bottom-color: var(--patina-lift); }
.masthead .call { color: #fff; font-weight: 600; }
.masthead .call:hover { color: var(--patina-lift); }
.masthead .menu-toggle { color: #fff; border-color: rgba(255,255,255,0.6); }
@media (max-width: 56rem) {
  .masthead .nav a { border-bottom-color: rgba(255,255,255,0.25); }
}
.btn-solid { background: var(--bronze); border-color: var(--bronze); color: #fff; }
.btn-solid:hover { background: var(--patina-lift); border-color: var(--patina-lift); color: var(--soot); }
h1, h2, h3 { font-weight: 500; }
.prose h2 { color: var(--patina); }
::selection { background: var(--patina-lift); color: var(--soot); }

/* ---------- Khung bài viết ---------- */
.byline { font-size: 0.88rem; color: var(--mist); margin: 0.9rem 0 1.4rem; line-height: 1.5; }
.byline a { color: var(--patina); }
.cover { margin: 0 0 1.8rem; }
.cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; background: var(--plaster-deep); }
.cover figcaption, .prose figure figcaption { font-size: 0.8rem; color: var(--mist); margin-top: 0.4rem; font-style: italic; }
.takeaways { background: #fbf6e8; border-left: 4px solid var(--bronze); padding: 1.1rem 1.3rem 0.6rem; margin: 0 0 1.6rem; border-radius: 0 4px 4px 0; }
.takeaways-head { font-weight: 600; color: var(--patina); margin: 0 0 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.85rem; }
.takeaways ul { margin: 0 0 0.6rem; padding-left: 1.2rem; }
.takeaways li { margin-bottom: 0.35rem; }
.toc { border: 1px solid var(--plaster-edge); border-radius: 4px; padding: 0.8rem 1.2rem; margin: 0 0 2rem; background: #fff; }
.toc summary { cursor: pointer; font-weight: 600; color: var(--ink); }
.toc ol { margin: 0.6rem 0 0.2rem; padding-left: 1.3rem; }
.toc li { margin: 0.25rem 0; }
.toc a { color: var(--patina); text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.prose h2 { scroll-margin-top: 6rem; }
.prose figure.ai { margin: 1.6rem 0; }
.prose figure.ai img { width: 100%; border-radius: 4px; }
.prose details.faq { border-top: 1px solid var(--plaster-edge); padding: 0.9rem 0; }
.prose details.faq:last-of-type { border-bottom: 1px solid var(--plaster-edge); }
.prose details.faq summary { cursor: pointer; font-weight: 600; }
.prose details.faq p { margin: 0.6rem 0 0; color: var(--mist); }
.post-item.has-thumb a { grid-template-columns: 1fr; }
.post-thumb { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 4px; margin-bottom: 0.4rem; }
@media (min-width: 40rem) {
  .post-item.has-thumb a { grid-template-columns: 220px 1fr; column-gap: 1.4rem; align-items: start; }
  .post-item.has-thumb .post-thumb { grid-row: 1 / span 3; margin: 0; }
}
.cover img { margin: 0; }
