/* Giao diện hatiendung.com. Một thế giới tối duy nhất: đêm Tây Bắc, vàng cam thương hiệu, xanh rừng làm ánh phụ.
   Bố cục: một canvas hạt cố định phía sau, các chương nội dung trôi qua phía trước. */
:root {
  color-scheme: dark;
  --dem: #040806;
  --dem-2: #0a120d;
  --mat: rgba(6, 12, 9, .78);
  --kem: #f5efe2;
  --mo: #b5b8a8;
  --vang: #FFA500;
  --vang-nhat: #ffd48a;
  --xanh: #1E7814;
  --xanh-sang: #58d07a;
  --vien: rgba(245, 239, 226, .16);
  --chu-lon: 'Noto Serif Display', 'Times New Roman', serif;
  --chu: 'Be Vietnam Pro', system-ui, sans-serif;
  --may: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --le: max(20px, env(safe-area-inset-left, 0px));
  --le-p: max(20px, env(safe-area-inset-right, 0px));
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--dem); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--dem); color: var(--kem); font: 400 17px/1.75 var(--chu); overflow-x: clip; -webkit-font-smoothing: antialiased; }
body.khoa-cuon { overflow: hidden; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--vang); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--vang); color: var(--dem); }

#anh-that { position: fixed; left: 50%; transform: translateX(-50%); z-index: 1; width: auto; max-width: none; opacity: 0; pointer-events: none; -webkit-mask-composite: source-in; mask-composite: intersect; }
html.khong-gl #anh-that { display: none; }
#vu-tru { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
html.khong-gl body { background: radial-gradient(1200px 700px at 70% 10%, #10301b 0, transparent 60%), radial-gradient(900px 600px at 10% 80%, #2a1c05 0, transparent 60%), var(--dem); }
html.khong-gl #vu-tru { display: none; }

.lop { position: relative; z-index: 2; }
.khung { max-width: 1240px; margin-inline: auto; padding-left: var(--le); padding-right: var(--le-p); }
.may { font: 500 12.5px/1.5 var(--may); letter-spacing: .08em; text-transform: uppercase; color: var(--vang-nhat); }
.tua { font: 400 clamp(38px, 6vw, 84px)/1.08 var(--chu-lon); letter-spacing: -.015em; text-wrap: balance; }
.tua em { color: var(--vang); font-style: italic; }
.chuong-mo { padding-block: clamp(90px, 13vw, 170px); }
.dan { max-width: 58ch; color: var(--mo); }

.nut { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .25s, background .25s, box-shadow .25s, border-color .25s; }
.nut:hover { transform: translateY(-2px); }
.nut-vang { background: var(--vang); color: #1a0f00; box-shadow: 0 0 0 0 rgba(255, 165, 0, .5); }
.nut-vang:hover { background: var(--vang-nhat); box-shadow: 0 10px 44px -6px rgba(255, 165, 0, .6); }
.nut-vien { border: 1px solid var(--vien); background: rgba(4, 8, 6, .4); }
.nut-vien:hover { border-color: var(--vang); }

/* Thanh trên */
.dau-trang { position: fixed; top: 0; left: 0; right: 0; z-index: 20; padding-top: env(safe-area-inset-top, 0px); transition: background .3s; }
.dau-trang.da-cuon { background: rgba(4, 8, 6, .97); }
.dau-trong { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 72px; max-width: 1400px; margin-inline: auto; padding-left: var(--le); padding-right: var(--le-p); }
.dau-ten { font: 500 19px/1 var(--chu-lon); text-decoration: none; letter-spacing: .01em; white-space: nowrap; }
.dau-ten b { color: var(--vang); font-weight: 500; }
#menu { display: flex; gap: clamp(16px, 2.2vw, 32px); font-size: 14.5px; }
#menu a { text-decoration: none; color: var(--kem); opacity: .82; transition: opacity .2s, color .2s; white-space: nowrap; }
#menu a:hover { opacity: 1; color: var(--vang); }
.dau-phai { display: flex; align-items: center; gap: 10px; }
.dau-phai .nut { min-height: 42px; padding: 8px 18px; font-size: 14.5px; }
#nut-menu { display: none; width: 44px; height: 44px; border: 1px solid var(--vien); border-radius: 50%; position: relative; }
#nut-menu::before, #nut-menu::after { content: ''; position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--kem); transition: transform .25s, top .25s; }
#nut-menu::before { top: 17px; } #nut-menu::after { top: 25px; }
#nut-menu[aria-expanded="true"]::before { top: 21px; transform: rotate(45deg); }
#nut-menu[aria-expanded="true"]::after { top: 21px; transform: rotate(-45deg); }
#tien-do { position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--vang); transform: scaleX(0); transform-origin: 0 50%; }

/* Mở màn */
.mo-man { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; overflow: clip; padding-top: 84px; }
.mo-man h1 { position: relative; z-index: 0; text-align: center; font: 400 clamp(60px, 13.4vw, 232px)/.98 var(--chu-lon); letter-spacing: -.03em; white-space: nowrap; background: linear-gradient(180deg, #fff6e4 20%, var(--vang) 120%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-block: .06em .14em; }
.mo-anh { display: none; }
html.khong-gl .mo-anh { display: block; position: absolute; left: 50%; bottom: 0; width: min(92vw, 1000px); transform: translateX(-50%); }
.mo-duoi { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding: 0 max(28px, env(safe-area-inset-right, 0px)) 34px max(28px, env(safe-area-inset-left, 0px)); }
.mo-trai { max-width: 370px; }
.mo-chuc { white-space: nowrap; font: 400 clamp(20px, 1.9vw, 26px)/1.25 var(--chu-lon); color: var(--vang-nhat); }
.mo-trai p + p { margin-top: 12px; font-size: 15px; line-height: 1.65; color: #d3d2c4; text-shadow: 0 1px 12px var(--dem); }
.mo-phai { display: flex; flex-direction: column; gap: 12px; align-items: flex-end; max-width: 400px; }
.mo-nut { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.mo-so { text-align: right; color: var(--mo); font-size: 11.5px; }
html.js .mo-man h1 { animation: noi-ten 2.4s cubic-bezier(.16, 1, .3, 1) both; }
html.js .mo-duoi { animation: noi-duoi 1.5s 1.5s ease both; }
@keyframes noi-ten { from { letter-spacing: .08em; opacity: .25; filter: blur(14px); } to { letter-spacing: -.03em; opacity: 1; filter: blur(0); } }
@keyframes noi-duoi { from { opacity: .35; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* Hiện dần: luôn bắt đầu từ trạng thái nhìn thấy được */
html.js .hien { opacity: .32; transform: translateY(26px); transition: opacity 1s ease, transform 1.1s cubic-bezier(.16, 1, .3, 1); }
html.js .hien.da-hien { opacity: 1; transform: none; }

/* Hành trình */
.hanh-trinh { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.truc { position: sticky; top: 16vh; }
.truc .tua { font-size: clamp(34px, 3.6vw, 52px); margin-top: 12px; }
#truc-nam { display: flex; height: 1em; overflow: hidden; margin-top: 26px; font: 400 clamp(84px, 11vw, 168px)/1 var(--chu-lon); letter-spacing: -.02em; color: var(--vang); font-variant-numeric: lining-nums tabular-nums; }
#truc-nam .o { display: block; height: 1em; overflow: hidden; }
#truc-nam .cot { display: block; transition: transform .9s cubic-bezier(.16, 1, .3, 1); }
#truc-nam .cot span { display: block; height: 1em; }
#noi-nam { display: block; margin-top: 12px; }
.chuong { min-height: 74vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding-block: 34px; transition: opacity .6s; }
html.js .chuong:not(.dang-doc) { opacity: .42; }
.chuong h3 { font: 400 clamp(30px, 3.6vw, 50px)/1.12 var(--chu-lon); letter-spacing: -.01em; text-wrap: balance; }
.chuong .nam-nho { display: none; }
.chuong p.loi { max-width: 56ch; background: var(--mat); padding: 18px 22px; border-radius: 4px 18px 18px 18px; }
.chuong figure { max-width: 620px; }
.chuong img { width: 100%; border-radius: 6px; }
.chuong figcaption, .chu-nho { font-size: 13.5px; color: var(--mo); margin-top: 8px; }
.chu-nho a { color: var(--vang-nhat); }

/* Ngân hà */
.ngan-ha { min-height: 150vh; display: flex; align-items: center; text-align: center; }
.ngan-ha .khung { width: 100%; }
.so-lon { font: 300 clamp(110px, 25vw, 380px)/.92 var(--chu-lon); letter-spacing: -.04em; color: #fff7e8; text-shadow: 0 0 80px rgba(255, 165, 0, .55); font-variant-numeric: lining-nums; }
.so-lon small { display: block; font-size: .27em; letter-spacing: -.01em; line-height: 1.1; color: var(--vang); text-shadow: none; }
.ngan-ha h2 { font: 400 clamp(22px, 2.6vw, 34px)/1.3 var(--chu); margin-top: 22px; text-wrap: balance; }
.ngan-ha .chu-giai { display: inline-block; margin-top: 18px; padding: 8px 16px; background: var(--mat); border-radius: 8px; }
.bo-so { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 880px; margin: 64px auto 0; border-top: 1px solid var(--vien); padding-top: 26px; }
.bo-so b { display: block; font: 400 clamp(30px, 3.6vw, 46px)/1.1 var(--chu-lon); color: var(--vang-nhat); }
.bo-so span { font-size: 14.5px; color: #d3d2c4; line-height: 1.45; display: block; margin-top: 6px; }

/* Chòm sao */
.chom { position: relative; height: clamp(300px, 27vw, 400px); margin-top: 30px; }
#duong-sao { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
#duong-sao path { fill: none; stroke: var(--vang); stroke-opacity: .55; stroke-width: 1; stroke-dasharray: var(--dai, 3000); stroke-dashoffset: 0; }
html.js .chom:not(.ve) #duong-sao path { stroke-dashoffset: var(--dai, 3000); }
html.js .chom.ve #duong-sao path { animation: ve-duong 3s ease-out both; }
@keyframes ve-duong { from { stroke-dashoffset: var(--dai, 3000); } to { stroke-dashoffset: 0; } }
.sao { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px; min-width: 66px; }
.sao.duoi { flex-direction: column-reverse; }
.sao .diem { width: 12px; height: 12px; border-radius: 50%; background: var(--vang-nhat); box-shadow: 0 0 14px 3px rgba(255, 165, 0, .75); transition: transform .3s, box-shadow .3s; }
.sao .gia-tri { font: 400 clamp(20px, 2.1vw, 30px)/1 var(--chu-lon); white-space: nowrap; transition: color .25s; }
.sao:hover .gia-tri, .sao.chon .gia-tri { color: var(--vang); }
.sao.chon .diem { transform: scale(1.6); box-shadow: 0 0 26px 9px rgba(255, 165, 0, .9); background: #fff; }
.bang-sao { background: var(--mat); border: 1px solid var(--vien); border-radius: 14px; margin-top: 26px; min-height: 212px; }
.chi-tiet { display: grid; grid-template-columns: 1fr auto; gap: 28px; padding: 28px clamp(22px, 3vw, 38px); align-items: center; }
.chi-tiet h3 { font: 400 clamp(26px, 3vw, 40px)/1.15 var(--chu-lon); text-wrap: balance; }
.chi-tiet p { color: #d3d2c4; margin-top: 8px; }
.chi-tiet .anh-giay { display: block; width: 190px; height: 150px; padding: 0; border-radius: 6px; overflow: hidden; border: 1px solid var(--vien); }
.chi-tiet .anh-giay img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.chi-tiet .anh-giay:hover img { transform: scale(1.06); }
.chi-tiet .xem { display: inline-block; margin-top: 12px; color: var(--vang); font-weight: 600; font-size: 15px; padding: 0; text-decoration: underline; text-underline-offset: 4px; }
html:not(.js) .chi-tiet[hidden] { display: grid !important; }
.dan { text-shadow: 0 1px 14px var(--dem); }
.hang-nut { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Nguyên tắc */
.tuyen-ngon { padding-block: 16vh; }
#nguyen-tac { font: 400 clamp(38px, 7.2vw, 112px)/1.14 var(--chu-lon); letter-spacing: -.02em; max-width: 1240px; }
#nguyen-tac .dong { display: block; }
#nguyen-tac .dong + .dong { margin-top: .22em; }
#nguyen-tac .tu { transition: opacity .3s; }
#nguyen-tac .dam { color: var(--vang); font-style: italic; }

/* Lĩnh vực */
.ba-cot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 52px; border-top: 1px solid var(--vien); }
.linh-vuc { min-height: 340px; padding: 34px clamp(18px, 2.4vw, 34px) 30px; border-right: 1px solid var(--vien); background: rgba(4, 8, 6, .45); transition: background .35s; display: flex; flex-direction: column; gap: 12px; text-decoration: none; }
.linh-vuc:first-child { padding-left: 0; background: none; }
.linh-vuc:last-child { border-right: 0; }
.linh-vuc h3 { font: 400 clamp(30px, 3.5vw, 50px)/1.1 var(--chu-lon); text-wrap: balance; transition: color .25s; }
.linh-vuc:hover h3 { color: var(--vang); }
.linh-vuc .may { margin-top: auto; }
.linh-vuc p { color: #d3d2c4; }

/* Phim ảnh */
#phim { position: relative; }
.phim-trong { padding-block: 40px; }
#phim.ghim .phim-trong { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-block: 72px 18px; }
.phim-dau { padding-left: var(--le); padding-right: var(--le-p); max-width: 1240px; margin-inline: auto; width: 100%; }
.phim-dau .tua { font-size: clamp(34px, 4.6vw, 62px); }
#dai-phim { display: flex; gap: 18px; margin-top: 26px; padding-inline: max(var(--le), calc((100vw - 1240px) / 2 + 20px)); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; will-change: transform; }
#phim.ghim #dai-phim { overflow: visible; width: max-content; }
#dai-phim::-webkit-scrollbar { display: none; }
.khung-phim { flex: none; scroll-snap-align: center; padding: 0; text-align: left; position: relative; width: min(78vw, calc(58vh * 1.5)); }
.khung-phim img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; transition: filter .4s; }
.khung-phim:hover img { filter: brightness(1.1); }
.khung-phim span.chu { display: block; font-size: 14px; color: #d3d2c4; margin-top: 8px; line-height: 1.45; }
.khung-phim .the-ai { position: absolute; top: 10px; left: 10px; background: var(--dem); color: var(--vang-nhat); padding: 3px 9px; border-radius: 5px; }
.khung-chu { flex: none; width: min(78vw, 380px); align-self: center; padding: 0 12px; }
.khung-chu h3 { font: 400 clamp(26px, 3vw, 40px)/1.15 var(--chu-lon); }
.khung-chu p { color: var(--mo); margin-top: 10px; font-size: 15.5px; }

/* Tấm lòng */
.tam-long-hang { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: clamp(18px, 3vw, 44px); margin-top: 50px; align-items: end; }
.tam-long-hang > a { display: block; text-decoration: none; background: var(--mat); padding: 22px 24px; border-radius: 10px; transition: transform .3s; height: 100%; }
.tam-long-hang > a:hover { transform: translateY(-4px); }
.tam-long-hang b { display: block; font: 400 clamp(32px, 3.3vw, 46px)/1.08 var(--chu-lon); color: var(--vang); letter-spacing: -.02em; }
.tam-long-hang > a:first-child b { font-size: clamp(42px, 4.7vw, 66px); }
.tam-long-hang span { display: block; margin-top: 12px; color: #e0ddcf; font-size: 15.5px; line-height: 1.55; }
.tam-long-hang i { display: block; margin-top: 10px; font-style: normal; }
.trich { margin-top: 56px; font: italic 400 clamp(26px, 3.4vw, 46px)/1.25 var(--chu-lon); max-width: 26em; }
.trich cite { display: block; margin-top: 10px; font-style: normal; }

/* Báo chí */
.bang-tin { overflow: hidden; margin-top: 44px; border-block: 1px solid var(--vien); padding-block: 16px; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.chay { display: flex; gap: 46px; width: max-content; animation: chay 52s linear infinite; font: 400 clamp(21px, 2.4vw, 31px)/1.2 var(--chu-lon); white-space: nowrap; color: var(--kem); }
.chay span::after { content: '✦'; color: var(--vang); font-size: .6em; margin-left: 46px; vertical-align: middle; }
@keyframes chay { to { transform: translateX(-50%); } }
.tin-lon { display: grid; margin-top: 18px; }
.tin-lon a { display: grid; grid-template-columns: 210px 1fr 24px; gap: 22px; padding: 18px 0; border-bottom: 1px solid var(--vien); text-decoration: none; align-items: baseline; transition: color .25s, padding .25s; }
.tin-lon a:hover { color: var(--vang); padding-left: 10px; }
.tin-lon strong { font: 400 clamp(20px, 2.1vw, 28px)/1.25 var(--chu-lon); }

/* Hỏi AI */
.hoi-ai .hai-cot { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.may-chat { background: var(--mat); border: 1px solid var(--vien); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
#khung-ai { height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 6px; scrollbar-width: thin; }
.bong { max-width: 90%; padding: 10px 15px; border-radius: 14px; font-size: 15.5px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.bong.ai { background: rgba(245, 239, 226, .08); border-bottom-left-radius: 3px; align-self: flex-start; }
.bong.nguoi { background: var(--vang); color: #1a0f00; border-bottom-right-radius: 3px; align-self: flex-end; }
.bong.dang-nghi::after { content: '…'; animation: nhay 1s infinite; }
@keyframes nhay { 50% { opacity: .2; } }
.goi-y { display: flex; flex-wrap: wrap; gap: 8px; }
.goi-y button { border: 1px solid var(--vien); padding: 7px 13px; border-radius: 999px; font-size: 14px; text-align: left; transition: border-color .2s, color .2s; }
.goi-y button:hover { border-color: var(--vang); color: var(--vang-nhat); }
#form-ai { display: flex; gap: 8px; }
#cau-hoi { flex: 1; min-width: 0; min-height: 50px; background: rgba(245, 239, 226, .06); border: 1px solid var(--vien); border-radius: 999px; padding: 0 20px; color: var(--kem); font: inherit; font-size: 16px; }
#cau-hoi::placeholder { color: var(--mo); }
#gui-ai { min-height: 50px; padding: 0 22px; }
#gui-ai:disabled { opacity: .5; }

/* Liên hệ */
.lien-he { min-height: 118vh; display: flex; align-items: flex-end; text-align: center; padding-bottom: 72px; }
.lien-he .tua { text-shadow: 0 2px 30px var(--dem); }
.lien-he .dan { margin: 18px auto 0; color: #e0ddcf; }
.lien-he .hang-nut { justify-content: center; }
.lien-he .khung { width: 100%; }

.an-chu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.chan { position: relative; z-index: 2; border-top: 1px solid var(--vien); background: var(--dem); padding: 24px var(--le-p) 24px var(--le); font-size: 14px; color: var(--mo); }
.chan .khung-chan { max-width: 1240px; margin-inline: auto; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
.chan a { color: var(--kem); }

/* Hộp xem ảnh */
#hop-anh { border: 0; padding: 0; background: none; max-width: 94vw; max-height: 94vh; color: var(--kem); overflow: hidden; }
#hop-anh::backdrop { background: rgba(2, 4, 3, .92); }
#hop-anh img { max-width: 94vw; max-height: 86vh; width: auto; margin-inline: auto; border-radius: 6px; }
.dong-anh { position: fixed; top: max(14px, env(safe-area-inset-top, 0px)); right: max(14px, env(safe-area-inset-right, 0px)); width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 28px; line-height: 1; }
#hop-anh figcaption { text-align: center; font-size: 15px; padding-top: 10px; }

/* Trang con */
.trang-con { padding-top: 130px; padding-bottom: 90px; min-height: 80vh; }
.trang-con h1 { font: 400 clamp(44px, 7.4vw, 104px)/1.05 var(--chu-lon); letter-spacing: -.02em; text-wrap: balance; }
.cong-cu { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 34px; position: sticky; top: 72px; z-index: 5; padding-block: 10px; background: linear-gradient(var(--dem) 70%, transparent); }
.cong-cu button { border: 1px solid var(--vien); border-radius: 999px; padding: 7px 15px; font-size: 14.5px; }
.cong-cu button[aria-pressed="true"] { background: var(--vang); color: #1a0f00; border-color: var(--vang); }
#tim-bao { flex: 1 1 220px; min-width: 0; min-height: 42px; background: var(--dem-2); border: 1px solid var(--vien); color: var(--kem); border-radius: 999px; padding: 0 18px; font: inherit; font-size: 15.5px; }
#dem-bao { color: var(--vang-nhat); }
.nam-bao { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding-block: 26px; border-bottom: 1px solid var(--vien); }
.nam-bao > h2 { font: 400 40px/1 var(--chu-lon); color: var(--vang); position: sticky; top: 150px; align-self: start; font-variant-numeric: lining-nums; }
.bai { display: block; padding: 12px 0; text-decoration: none; }
.bai strong { display: block; font: 400 clamp(20px, 2vw, 26px)/1.3 var(--chu-lon); transition: color .2s; }
.bai:hover strong { color: var(--vang); }
.bai span { font-size: 13px; color: var(--mo); }
.luoi-giay { columns: 3 280px; column-gap: 20px; margin-top: 44px; }
.giay { break-inside: avoid; margin-bottom: 20px; background: var(--dem-2); border: 1px solid var(--vien); border-radius: 10px; overflow: hidden; scroll-margin-top: 90px; }
.giay button { padding: 0; display: block; width: 100%; }
.giay img { width: 100%; transition: transform .5s; }
.giay button:hover img { transform: scale(1.03); }
.giay figcaption { padding: 13px 16px 15px; }
.giay figcaption b { display: block; font: 400 20px/1.25 var(--chu-lon); }
.giay figcaption span { font-size: 14px; color: var(--mo); }

/* Danh thiếp */
.danh-thiep { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; padding: 96px var(--le-p) 40px var(--le); position: relative; z-index: 2; }
.the-so { width: min(100%, 420px); background: rgba(8, 15, 11, .86); border: 1px solid rgba(255, 165, 0, .4); border-radius: 22px; padding: 30px 26px; text-align: center; box-shadow: 0 30px 110px -30px rgba(255, 165, 0, .5); }
.the-so h1 { font: 400 44px/1.1 var(--chu-lon); letter-spacing: -.02em; }
.the-so .chuc { color: var(--vang-nhat); margin-top: 6px; font-size: 15.5px; }
.ma-qr { width: min(100%, 250px); margin: 22px auto; background: #fff; padding: 12px; border-radius: 14px; }
.ma-qr svg { display: block; width: 100%; height: auto; }
.the-so .nut { width: 100%; }
.the-so .hang-nut { flex-direction: column; margin-top: 8px; gap: 10px; }
.the-so #chia-se { overflow-wrap: anywhere; }

@media (max-width: 1040px) {
  #menu { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; align-items: center; gap: 20px; background: rgba(4, 8, 6, .97); font: 400 34px/1.2 var(--chu-lon); opacity: 0; pointer-events: none; transition: opacity .25s; }
  #menu.mo { opacity: 1; pointer-events: auto; }
  #nut-menu { display: block; }
}
@media (max-width: 820px) {
  body { font-size: 16px; }
  .mo-man { padding-top: 78px; }
  .mo-man h1 { font-size: 19.5vw; white-space: normal; line-height: .92; padding-inline: 16px; text-align: left; }
  .mo-duoi { flex-direction: column; align-items: stretch; gap: 16px; padding: 0 var(--le-p) 22px var(--le); background: linear-gradient(transparent, rgba(4, 8, 6, .92) 30%); padding-top: 44px; }
  .mo-trai, .mo-phai { max-width: none; }
  .mo-chuc { white-space: normal; }
  .mo-trai p + p { display: none; }
  .mo-phai { align-items: stretch; }
  .mo-nut { justify-content: stretch; } .mo-nut .nut { flex: 1; padding-inline: 14px; }
  .mo-so { text-align: left; }
  .hanh-trinh { display: block; }
  .truc { position: static; }
  #truc-nam, #noi-nam { display: none; }
  .chuong { min-height: 0; padding-block: 28px; }
  html.js .chuong:not(.dang-doc) { opacity: 1; }
  .chuong .nam-nho { display: block; font: 400 62px/1 var(--chu-lon); color: var(--vang); font-variant-numeric: lining-nums; }
  .ngan-ha { min-height: 120vh; }
  .bo-so { grid-template-columns: 1fr; gap: 16px; text-align: left; }
  .chom { height: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  #duong-sao { display: none; }
  .sao, .sao.duoi { position: static; transform: none; flex-direction: column; min-width: 0; }
  .chi-tiet { grid-template-columns: 1fr; gap: 16px; }
  .chi-tiet .anh-giay { width: 100%; height: 190px; }
  .bang-sao { min-height: 340px; }
  .ba-cot { grid-template-columns: 1fr; }
  .linh-vuc { min-height: 0; }
  .linh-vuc, .linh-vuc:first-child { border-right: 0; border-bottom: 1px solid var(--vien); padding-inline: 0; background: none; }
  .tam-long-hang { grid-template-columns: 1fr; }
  .hoi-ai .hai-cot { grid-template-columns: minmax(0, 1fr); }
  #khung-ai { height: 230px; }
  .tin-lon a { grid-template-columns: 1fr 22px; gap: 4px 12px; }
  .tin-lon .may { grid-column: 1 / -1; }
  .nam-bao { grid-template-columns: 1fr; gap: 6px; }
  .nam-bao > h2 { position: static; }
  .cong-cu { position: static; }
  .lien-he { min-height: 108vh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .hien { opacity: 1; transform: none; }
}
