/* Trang giới thiệu tĩnh (SEO): /gioi-thieu/, /di-chua-online/, /nha-tho-online/, /tra-da-online/, /lop-hoc-online/, /viec-lam/, /en/about/.
   Không framework, không JS. Bảng màu theo docs/BRANDING.md (đêm gỗ, sơn mài, vàng đèn, giấy dó). Trang pháp lý dùng legal.css riêng. */
:root {
  color-scheme: dark;
  --night: #1a110b; --wood: #2c1c10; --wood-2: #3a2515; --dusk: #5a2a17; --line: #4a2f1c;
  --lacquer: #b8442f; --lacquer-dark: #7a1712; --gold: #f2c14e; --brass: #c98f22;
  --cream: #fff1cf; --mute: #d4bf9c; --jade: #7fb79a;
  --f-display: "Baloo 2", "Be Vietnam Pro", system-ui, sans-serif;
  --f-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1080px;
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background:
    radial-gradient(900px 420px at 85% -80px, rgba(255, 170, 80, .16), transparent 70%),
    radial-gradient(700px 360px at -10% 30%, rgba(184, 68, 47, .12), transparent 70%),
    var(--night);
  color: var(--cream);
  font: 400 16.5px/1.72 var(--f-body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffd77a; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut-r); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { left: 12px; }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 5;
  background: rgba(26, 17, 11, .92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.top-in { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 9px; flex: none; text-decoration: none; color: var(--cream); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand b { font: 800 22px/1 var(--f-display); letter-spacing: .2px; }
.brand b span { color: var(--gold); }
.menu { display: flex; gap: 2px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.menu::-webkit-scrollbar { display: none; }
.menu a {
  flex: none; color: var(--mute); text-decoration: none; white-space: nowrap;
  font-size: 14.5px; font-weight: 600; padding: 7px 11px; border-radius: 99px;
}
.menu a:hover { color: var(--cream); background: var(--wood); }
.menu a[aria-current="page"] { color: var(--night); background: var(--gold); }
.top .btn { flex: none; padding: 8px 16px; font-size: 15px; }
/* Điện thoại: menu xuống hàng thứ hai, cuộn ngang */
@media (max-width: 899px) {
  .top-in { flex-wrap: wrap; gap: 0 10px; padding-top: 8px; }
  .top-in .brand { flex: 1; }
  .menu { order: 3; flex-basis: 100%; margin: 6px calc(-1 * var(--gut-r)) 0 calc(-1 * var(--gut)); padding: 0 var(--gut-r) 8px var(--gut); }
  .menu a { font-size: 14px; padding: 6px 11px; }
}

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 24px; border-radius: 14px;
  font: 800 17px/1.1 var(--f-display); letter-spacing: .2px; text-decoration: none;
  color: var(--cream); background: linear-gradient(180deg, #d05a3f, var(--lacquer) 55%, #9c3524);
  box-shadow: inset 0 -3px 0 var(--lacquer-dark), 0 8px 22px rgba(184, 68, 47, .35);
  border: 1px solid #d86b4f;
}
.btn:hover { color: #fff; filter: brightness(1.07); }
.btn.big { min-height: 56px; padding: 15px 30px; font-size: 20px; border-radius: 16px; }
.btn.ghost { background: transparent; box-shadow: none; border-color: var(--brass); color: var(--gold); }
.btn.ghost:hover { background: rgba(242, 193, 78, .08); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 28px; }
.hero-in { display: grid; gap: 28px; align-items: center; }
.crumbs { margin: 0 0 12px; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 4px; font-size: 13.5px; color: var(--mute); }
.crumbs li + li::before { content: "›"; margin: 0 6px 0 2px; color: var(--brass); }
.crumbs a { color: var(--mute); }
.eyebrow { margin: 0 0 6px; font: 700 13px/1.3 var(--f-body); letter-spacing: 2.4px; text-transform: uppercase; color: var(--jade); }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.18; text-wrap: balance; }
h1 { margin: 0 0 14px; font-size: clamp(34px, 8.4vw, 56px); font-weight: 800; color: var(--cream); }
h1 em { font-style: normal; color: var(--gold); }
.lead { margin: 0 0 22px; font-size: clamp(17px, 2.6vw, 19.5px); color: #f6e3bd; max-width: 60ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cta small { color: var(--mute); font-size: 14px; }
.shot { margin: 0; justify-self: center; width: min(300px, 74vw); }
.shot img {
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 0 6px rgba(44, 28, 16, .7), 0 0 80px rgba(255, 170, 80, .14);
}
.shot figcaption { margin-top: 12px; text-align: center; font-size: 13.5px; color: var(--mute); }
@media (min-width: 900px) {
  .hero { padding: 64px 0 40px; }
  .hero-in { grid-template-columns: 1fr 320px; gap: 56px; }
  .shot { width: 320px; }
}

/* ---------- Nội dung ---------- */
main { padding-bottom: 24px; }
.sec { padding: 26px 0; }
.sec + .sec { border-top: 1px solid rgba(74, 47, 28, .6); }
h2 { margin: 0 0 12px; font-size: clamp(26px, 5vw, 34px); font-weight: 800; color: var(--gold); }
h3 { margin: 22px 0 6px; font-size: 20px; font-weight: 700; color: var(--cream); }
p, li { max-width: 70ch; }
p { margin: 8px 0 12px; }
ul, ol { padding-left: 22px; margin: 8px 0 14px; }
li { margin: 4px 0; }
li::marker { color: var(--brass); }
strong, b { color: #fff6de; font-weight: 700; }
.note {
  margin: 18px 0; padding: 14px 18px; border-radius: 14px;
  background: rgba(127, 183, 154, .08); border: 1px solid rgba(127, 183, 154, .35);
  color: #e7f1e9; font-size: 15.5px;
}
.note b { color: #d9f0e2; }
.health { background: rgba(242, 193, 78, .07); border-color: rgba(242, 193, 78, .35); color: #fbefd2; }

/* Lưới thẻ các khu */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); margin: 18px 0 8px; padding: 0; list-style: none; }
.card {
  max-width: none; margin: 0; padding: 18px 18px 16px; border-radius: 18px;
  background: linear-gradient(180deg, var(--wood-2), var(--wood));
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28);
}
.card h3 { margin: 0 0 4px; font-size: 21px; }
.card h3 span { margin-right: 6px; }
.card p { margin: 4px 0 10px; font-size: 15.5px; color: #f1ddb6; }
.card .pts { display: inline-block; margin: 0 0 10px; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--night); background: var(--gold); }
.card a.more { font-weight: 700; font-size: 15px; }

/* Bảng tên điểm */
.table { overflow-x: auto; margin: 14px 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 700; color: var(--gold); background: var(--wood); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td:first-child { white-space: nowrap; font-weight: 600; }

/* Dải ảnh chụp màn hình: cuộn ngang, không cần JS */
.strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(200px, 46vw); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  margin: 16px calc(-1 * var(--gut-r)) 6px calc(-1 * var(--gut)); padding: 4px var(--gut-r) 14px var(--gut);
  scrollbar-width: thin; scrollbar-color: var(--brass) transparent;
}
.strip figure { margin: 0; scroll-snap-align: start; }
.strip img { border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 12px 28px rgba(0, 0, 0, .4); }
.strip figcaption { margin-top: 8px; font-size: 13.5px; color: var(--mute); line-height: 1.4; }

/* Hai cột chữ + ảnh trong một mục */
.split { display: grid; gap: 22px; align-items: start; }
.split .shot { width: min(240px, 64vw); }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 260px; gap: 48px; }
  .split .shot { width: 260px; }
}

/* Hỏi đáp */
.faq { margin: 14px 0; }
.faq details {
  margin: 0 0 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(44, 28, 16, .65);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 14px 44px 14px 18px; position: relative;
  font: 700 17px/1.35 var(--f-display); color: var(--cream);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 24px; color: var(--gold); }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 18px 12px; color: #f1ddb6; }
.faq details > div p { margin-top: 0; }

/* Khối kêu gọi cuối trang */
.end {
  margin: 30px 0 10px; padding: 30px 22px; border-radius: 22px; text-align: center;
  background:
    radial-gradient(420px 200px at 50% 0, rgba(255, 170, 80, .22), transparent 75%),
    linear-gradient(180deg, var(--wood-2), #24160d);
  border: 1px solid var(--line);
}
.end h2 { color: var(--cream); margin-bottom: 6px; }
.end p { margin: 0 auto 18px; color: #f1ddb6; }
.end .cta { justify-content: center; }
.more-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.more-links a {
  display: inline-block; padding: 7px 14px; border-radius: 99px; text-decoration: none; font-size: 14.5px; font-weight: 600;
  color: var(--cream); background: var(--wood); border: 1px solid var(--line);
}
.more-links a:hover { border-color: var(--brass); color: var(--gold); }

/* ---------- Footer ---------- */
.foot { margin-top: 28px; border-top: 1px solid var(--line); background: rgba(20, 12, 7, .7); padding: 26px 0 calc(26px + env(safe-area-inset-bottom, 0px)); font-size: 14.5px; color: var(--mute); }
.foot-in { display: grid; gap: 18px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot a { color: var(--mute); }
.foot a:hover { color: var(--gold); }
.foot p { margin: 0; max-width: none; }
.foot .brand b { font-size: 19px; }
@media (min-width: 900px) { .foot-in { grid-template-columns: 1fr auto; align-items: start; } }
.foot .tag { margin-top: 8px; }
