/* Trang chủ Bảo vệ Bình Yên — giao diện B «Ca trực 24 giờ».
   Lớp giao diện: <html data-giao-dien="A|B|C">. Màu và phông nằm ở khối biến của từng giao diện;
   các khối nội dung bên dưới chỉ dùng biến, nên đổi giao diện chỉ cần đổi khối biến + màn đầu. */

@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/be-vietnam-pro-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/be-vietnam-pro-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/be-vietnam-pro-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Be Vietnam Pro"; src: url("../fonts/be-vietnam-pro-900.woff2") format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }
@font-face{font-family:"Space Grotesk";src:url("../fonts/space-grotesk-var-latin.woff2") format("woff2");font-style:normal;font-weight:500 600;font-display:swap;unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Space Grotesk";src:url("../fonts/space-grotesk-var-latin-ext.woff2") format("woff2");font-style:normal;font-weight:500 600;font-display:swap;unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}
@font-face{font-family:"Space Grotesk";src:url("../fonts/space-grotesk-var-vietnamese.woff2") format("woff2");font-style:normal;font-weight:500 600;font-display:swap;unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
/* Phông theo web GCT: tiêu đề và số giờ Space Grotesk 500–600; thân bài Be Vietnam Pro 400–500. Be Vietnam Pro 900 chỉ cho chữ mặt nạ giao diện C. */

/* ---------- Biến giao diện B ---------- */
:root {
  --nen-sang: #F3EFE6;      /* sáng: ngà */
  --nen-sang2: #ECE5D6;     /* giữa buổi sáng */
  --nen-chieu: #D9E8F1;     /* chiều: xanh nhạt */
  --nen-toi: #0A1A33;       /* tối: xanh than */
  --nen-toi2: #081428;
  --nen-dem: #050B16;       /* đêm */
  --xanh: #017AB5;          /* xanh logo */
  --xanh-dam: #015E8C;
  --vang: #CF9B2B;          /* vàng logo: màu «đèn» */
  --vang-sang: #DDAA3C;
  --muc: #0B1A2E;           /* chữ trên nền sáng */
  --muc-phu: #3B4759;
  --trang: #F6F3EC;         /* chữ trên nền tối */
  --trang-phu: #C3CCD8;
  --moc-sang: var(--xanh);  /* số giờ trên nền sáng */
  --moc-toi: var(--vang);   /* số giờ trên nền tối */

  --f-chu: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --f-so: "Space Grotesk", "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif; /* số giờ, nhãn, tiêu đề ngắn */
  --f-tieu: var(--f-so);     /* tiêu đề khối */

  --le: clamp(20px, 3.2vw, 56px);
  --ray: 0px;
  --dau-cao: 72px;
  --day-cao: 0px;
  --khe: clamp(16px, 2vw, 32px);
  --khoang: clamp(88px, 10vw, 176px);

  --t-dongho: clamp(80px, min(14vw, 21vh), 220px);
  --t-moc: clamp(64px, 8vw, 140px);
  --t-h: clamp(36px, min(4.2vw, 7vh), 68px);
  --t-h2: clamp(30px, 3.6vw, 52px);
  --t-h3: clamp(20px, 1.6vw, 22px);
  --t-dan: clamp(18px, 1.35vw, 22px);
  --t-lon: clamp(20px, 1.7vw, 28px);
  --t-than: 17px;
  --t-nho: 15px;
}
@media (min-width: 1100px) { :root { --ray: 148px; } }
@media (max-width: 760px) { :root { --dau-cao: 56px; --day-cao: 60px; --t-than: 16px; } }

/* ---------- Nền móng ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (max-width: 1099px) { html { scroll-padding-top: 52px; } }
@media (max-width: 760px) { html { scroll-padding-bottom: calc(var(--day-cao) + env(safe-area-inset-bottom, 0px) + 16px); } }
body { margin: 0; background: var(--nen-sang); color: var(--muc); font: 400 var(--t-than)/1.55 var(--f-chu); -webkit-font-smoothing: antialiased; padding-bottom: calc(var(--day-cao) + env(safe-area-inset-bottom, 0px)); }
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }
a, button, input, select, textarea, label { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0 0 0.9em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--vang); outline-offset: 3px; }
[data-nen="vang"] :focus-visible { outline-color: var(--muc); }
::selection { background: var(--vang); color: var(--muc); }
.an-chu { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.bo-qua { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--vang); color: var(--muc); padding: 12px 16px; font-weight: 700; }
.bo-qua:focus { top: 12px; }

[data-nen="sang"]  { background: var(--nen-sang);  color: var(--muc); }
[data-nen="sang2"] { background: var(--nen-sang2); color: var(--muc); }
[data-nen="chieu"] { background: var(--nen-chieu); color: var(--muc); }
[data-nen="toi"]   { background: var(--nen-toi);   color: var(--trang); }
[data-nen="toi2"]  { background: var(--nen-toi2);  color: var(--trang); }
[data-nen="dem"]   { background: var(--nen-dem);   color: var(--trang); }
[data-nen="vang"]  { background: var(--vang);      color: var(--muc); }
[data-nen="xanh"]  { background: var(--xanh);      color: #fff; }

/* ---------- Thanh trên ---------- */
.thanh-tren { position: relative; z-index: 20; height: var(--dau-cao); display: flex; align-items: center; gap: 28px; padding: 0 var(--le); background: var(--nen-toi); color: var(--trang); }
.thuong-hieu { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.thuong-hieu img { width: 44px; height: 44px; object-fit: contain; }
/* Thanh trên: A (nền ngà, mặc định) dùng khiên không viền; B, C (thanh trên nền tối) dùng bản viền trắng kiểu catalog. */
:root[data-giao-dien="B"] .thuong-hieu img, :root[data-giao-dien="C"] .thuong-hieu img { content: url("../logo/khien-vien-trang.png"); }
.thuong-hieu span { font: 700 30px/1 var(--f-chu); letter-spacing: 0.02em; text-transform: uppercase; }
.thanh-tren__nav { display: flex; gap: 28px; }
.thanh-tren__nav a, .thanh-tren__goi { font-weight: 500; font-size: 16px; text-decoration: none; padding: 10px 0; }
.thanh-tren__nav a:hover { text-decoration: underline; }
.thanh-tren__goi { font-weight: 700; font-variant-numeric: tabular-nums; }
.thanh-tren__goi:hover { text-decoration: underline; }
.thanh-tren__nut { background: var(--vang); color: var(--muc); padding: 12px 18px; font-weight: 700; font-size: 16px; text-decoration: none; transition: background-color .2s ease, transform .12s ease; }
.thanh-tren__nut:hover { background: var(--vang-sang); }
.thanh-tren__nut:active { transform: scale(.97); }

/* ---------- Ray mốc giờ ---------- */
.ray { position: fixed; z-index: 15; left: 0; top: 50%; width: var(--ray); padding-left: var(--le); transform: translateY(-50%); color: var(--trang); transition: color .35s ease, opacity .35s ease, visibility 0s; }
.ray[data-ton="sang"] { color: var(--muc); }
.ray[data-an="1"] { opacity: 0; visibility: hidden; pointer-events: none; transition: color .35s ease, opacity .35s ease, visibility 0s .35s; }
.ray__gio { font: 600 44px/1 var(--f-so); font-variant-numeric: tabular-nums; color: var(--moc-toi); margin: 0 0 14px; transition: opacity .3s ease, color .35s ease; }
.ray[data-ton="sang"] .ray__gio { color: var(--moc-sang); }
.ray[data-o-dau="1"] .ray__gio { opacity: 0; }
.ray__moc { list-style: none; display: grid; gap: 4px; }
.ray__moc a { display: grid; padding: 6px 0 6px 12px; text-decoration: none; position: relative; opacity: .66; transition: opacity .2s ease; }
.ray__moc a::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px; background: currentColor; opacity: 0; transition: opacity .2s ease; }
.ray__moc a:hover { opacity: 1; }
.ray__moc a[aria-current="true"] { opacity: 1; }
.ray__moc a[aria-current="true"]::before { opacity: 1; background: var(--vang); }
.ray__so { font: 600 20px/1.05 var(--f-so); font-variant-numeric: tabular-nums; }
.ray__ten { font-size: 13px; line-height: 1.3; }
@media (min-width: 1100px) and (max-height: 780px) {
  .ray__ten { display: none; }
  .ray__moc a { padding: 4px 0 4px 12px; }
  .ray__gio { font-size: 36px; margin-bottom: 8px; }
}
@media (max-width: 1099px) {
  .ray { position: sticky; top: 0; transform: none; width: auto; padding: 0; background: var(--nen-toi); color: var(--trang); z-index: 25; transition: background-color .35s ease, color .35s ease; }
  .ray[data-ton="sang"] { background: var(--nen-sang2); color: var(--muc); }
  .ray[data-an="1"] { opacity: 1; visibility: visible; pointer-events: auto; }
  .ray__gio { display: none; }
  .ray__moc { display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; padding: 0 calc(var(--le) - 10px); overscroll-behavior-x: contain; }
  .ray__moc::-webkit-scrollbar { display: none; }
  .ray__moc a { display: flex; gap: 6px; padding: 10px 10px 9px; white-space: nowrap; min-height: 44px; align-items: center; }
  .ray__moc a::before { left: 10px; right: 10px; top: auto; bottom: 0; width: auto; height: 3px; }
  .ray__so { font-size: 18px; }
  .ray__ten { font-size: 14px; }
  .ray__moc li:not(.dang) .ray__ten { display: none; }   /* máy tính bảng: đủ 7 giờ trên một hàng, tên chỉ hiện ở mốc đang xem */
  .ray__moc { overflow: visible; justify-content: flex-start; }
}
@media (max-width: 760px) {
  /* điện thoại: thanh nổi trên cùng, chỉ hiện giờ và tên ngắn của mốc đang xem; ẩn ở màn đầu và từ phần Tuyển dụng trở xuống */
  .ray { position: fixed; left: 0; right: 0; top: 0; transform: translateY(-100%); transition: transform .3s ease, background-color .35s ease, color .35s ease; }
  .ray[data-o-dau="0"][data-an="0"] { transform: none; }
  .ray:not([data-o-dau="0"][data-an="0"]) { visibility: hidden; transition: transform .3s ease, visibility 0s .3s; }
  .ray__moc li:not(.dang) { display: none; }
  .ray__moc a { opacity: 1; }
  .ray__moc a::before { display: none; }
  .ray__so { color: var(--moc-toi); font-size: 20px; }
  .ray[data-ton="sang"] .ray__so { color: var(--moc-sang); }
  .ray__ten { font-size: 15px; font-weight: 500; }
}

/* ---------- Màn đầu ---------- */
.man-dau { display: grid; grid-template-columns: var(--ray) minmax(0, 52fr) minmax(0, 48fr); grid-template-rows: minmax(0, 1fr) auto; min-height: calc(100svh - var(--dau-cao)); }
.man-dau__chu { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; justify-content: center; padding: clamp(18px, 3.4vh, 52px) var(--le); min-width: 0; }
.dong-ho { font: 600 var(--t-dongho)/0.8 var(--f-so); letter-spacing: -0.01em; color: var(--vang); margin: 0 0 clamp(8px, 1.4vh, 16px); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dong-ho .hai-cham { display: inline-block; animation: nhap 2s steps(1, end) infinite; }
@keyframes nhap { 50% { opacity: .25; } }
.dong-ho__nhan { font-size: 17px; font-weight: 500; color: var(--trang-phu); margin: 0 0 clamp(14px, 3vh, 36px); }
.man-dau h1 { font: 600 var(--t-h)/1.02 var(--f-so); letter-spacing: -0.035em; margin: 0 0 clamp(12px, 2vh, 20px); }
.h1__dong, .h1__phu { display: block; }
.h1__phu { color: var(--trang); font-weight: 700; font-size: 0.62em; line-height: 1.12; margin-top: 0.12em; }
.man-dau__phu { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.5; color: var(--trang); max-width: 36em; margin: 0 0 clamp(10px, 1.6vh, 18px); }
.can-cu { font-size: 15px; color: var(--trang-phu); margin: 0; font-variant-numeric: tabular-nums; }
.man-dau__anh { grid-column: 3; grid-row: 1; position: relative; margin: 0; overflow: hidden; min-height: 200px; background: var(--nen-toi2); }
.man-dau__anh img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--vt-anh, 50% 42%); }
:root[data-man-dau-that] .nhan-mh--man-dau { display: none; }
.hai-cua { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: subgrid; }
.cua--thue { grid-column: 1 / span 2; }
.cua--lam { grid-column: 3; }
.cua { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: clamp(120px, 20vh, 204px); padding: clamp(14px, 2.2vh, 28px) var(--le); text-decoration: none; transition: background-color .2s ease; }
.cua--thue { background: var(--xanh); color: #fff; padding-left: calc(var(--ray) + var(--le)); }
.cua--lam { background: var(--vang); color: var(--muc); }
.cua--thue:hover { background: var(--xanh-dam); }
.cua--lam:hover { background: var(--vang-sang); }
.cua__tieu { font: 600 clamp(30px, min(3.2vw, 5.8vh), 54px)/1 var(--f-so); text-wrap: balance; }
.cua__mo { font-size: clamp(14px, 1.05vw, 17px); font-weight: 500; line-height: 1.35; }
.cua__phu { font-weight: 700; font-size: clamp(16px, 1.2vw, 19px); }
.cua__phu span { display: inline-block; transition: transform .2s ease; }
.cua:hover .cua__phu span { transform: translateX(6px); }
.cua:active { filter: brightness(.95); }

/* nhãn hình minh hoạ: chữ in thẳng trên hình */
.nhan-mh { position: absolute; right: 8px; bottom: 8px; z-index: 2; padding: 2px 6px; background: rgba(5, 11, 22, .55); color: rgba(255, 255, 255, .92); font: italic 400 11px/1.4 var(--f-chu); pointer-events: none; }

/* ---------- Chương (mốc giờ) ---------- */
.chuong { padding: var(--khoang) var(--le) var(--khoang) calc(var(--ray) + var(--le)); position: relative; }
.moi-cuon { font-size: var(--t-nho); font-weight: 500; color: var(--muc-phu); margin: calc(-0.6 * var(--khoang)) 0 calc(0.45 * var(--khoang)); }
.chuong__dau { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); column-gap: clamp(24px, 3.4vw, 64px); align-items: end; margin-bottom: clamp(40px, 5vw, 88px); }
.chuong__dau--khong-dan { align-items: end; }
.moc { margin: 0; display: grid; }
.moc__gio { font: 600 var(--t-moc)/0.8 var(--f-so); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--moc-sang); white-space: nowrap; }
.moc__nhan { font: 600 clamp(19px, 1.5vw, 24px)/1.1 var(--f-so); margin-top: 0.5em; }
[data-nen="toi"] .moc__gio, [data-nen="toi2"] .moc__gio, [data-nen="dem"] .moc__gio { color: var(--moc-toi); }
.nhan-khoi { font: 600 clamp(19px, 1.5vw, 24px)/1.1 var(--f-so); margin: 0 0 0.6em; }
.chuong h2, .tuyen-dung h2, .lien-he h2 { font: 600 var(--t-h2)/1.06 var(--f-tieu); letter-spacing: -0.03em; margin: 0 0 0.32em; max-width: 22em; }
.dan { font-size: var(--t-dan); line-height: 1.5; max-width: 40em; margin: 0; }
h3 { letter-spacing: -0.01em; font: 600 var(--t-h3)/1.3 var(--f-tieu); margin: 0 0 14px; }
.chuong p, .tuyen-dung p, .lien-he p { max-width: 40em; }
.cau-lon { font: 500 var(--t-lon)/1.4 var(--f-chu); margin: 0 0 18px; }

.ds-gach { list-style: none; display: grid; gap: 12px; margin: 0 0 18px; }
.ds-gach li { padding-left: 22px; position: relative; }
.ds-gach li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 4px; background: currentColor; }
[data-nen="sang"] .ds-gach li::before, [data-nen="sang2"] .ds-gach li::before, [data-nen="chieu"] .ds-gach li::before { background: var(--xanh); }
[data-nen="toi"] .ds-gach li::before, [data-nen="toi2"] .ds-gach li::before, [data-nen="dem"] .ds-gach li::before { background: var(--vang); }

.anh { position: relative; margin: 0; overflow: hidden; background: rgba(11, 26, 46, .08); }
.anh img { width: 100%; height: 100%; object-fit: cover; }

.lien-ket-mui { display: inline-flex; gap: 8px; font-weight: 700; text-decoration: none; padding: 12px 0; color: var(--xanh-dam); }
.lien-ket-mui:hover { text-decoration: underline; }
.cung-loai { margin: 0 0 18px; }
.cung-loai__nhan { display: block; font-size: var(--t-nho); font-weight: 500; color: var(--muc-phu); margin-bottom: 4px; }
.cung-loai__ten { font: 600 clamp(20px, 1.6vw, 26px)/1.3 var(--f-so); }
.cung-loai__muc { white-space: nowrap; }
@media (max-width: 600px) { .cung-loai__muc { white-space: normal; } }
[data-nen="toi2"] .cung-loai__nhan { color: var(--trang-phu); }

/* 06:00 giao ca */
.giao-ca__than { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--khe); align-items: end; }
.phim { grid-column: 1 / span 8; position: relative; aspect-ratio: 16 / 9; background: var(--nen-toi); overflow: hidden; }
.phim__nut { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.phim__bia { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.phim__nut:hover .phim__bia { transform: scale(1.02); }
.phim__chu { position: absolute; left: 0; bottom: 0; display: inline-flex; align-items: center; gap: 14px; background: var(--vang); color: var(--muc); font: 600 clamp(20px, 1.8vw, 30px)/1 var(--f-so); padding: 18px 24px; text-align: left; transition: background-color .2s ease; }
.phim__nut:hover .phim__chu { background: var(--vang-sang); }
.phim__nut:active .phim__chu { transform: scale(.98); }
.phim__tam-giac { flex: none; width: 0; height: 0; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent currentColor; }
.phim video { width: 100%; height: 100%; background: #000; }
/* Nhãn AI của khung phim đặt ở góc TRÊN: thanh nút vàng nằm ở đáy khung, nhãn không bao giờ chồng chữ nút (bản cuối 24/11). */
.phim > .nhan-mh { top: 8px; bottom: auto; }
.giao-ca__anh { grid-column: 9 / span 4; aspect-ratio: 4 / 5; }
.giao-ca__anh img { object-position: 50% 50%; }

/* 07:30 tòa nhà */
.toa-nha__than { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 56px); row-gap: var(--khe); align-items: center; }
.toa-nha__anh { grid-column: 1 / span 7; aspect-ratio: 16 / 11; }
.toa-nha__chu { grid-column: 8 / span 5; }
.toa-nha__nut { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin: 8px 0 0; }

/* 10:00 hộ tống, áp tải */
.ap-tai__than { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 56px); row-gap: 20px; align-items: start; }
.ap-tai__anh { grid-column: 1 / span 7; grid-row: 1; aspect-ratio: 16 / 10; }
.ap-tai__chu { grid-column: 1 / span 6; grid-row: 2; }
.ho-tong__anh { grid-column: 8 / span 5; grid-row: 1; aspect-ratio: 4 / 3; margin-top: clamp(48px, 8vw, 140px); }
.ho-tong__chu { grid-column: 8 / span 5; grid-row: 2; }

/* 14:00 sự kiện */
.su-kien__rong { aspect-ratio: 2.38 / 1; margin-bottom: var(--khe); }
.su-kien__rong img { object-position: 50% 40%; }
.su-kien__duoi { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 56px); row-gap: var(--khe); align-items: start; }
.su-kien__golf { grid-column: 1 / span 6; aspect-ratio: 16 / 9; }
.su-kien__ds { grid-column: 7 / span 6; padding-top: 6px; }
.ds-su-kien { list-style: none; display: grid; gap: 0; }
.ds-su-kien li { font: 600 clamp(20px, 1.6vw, 26px)/1.2 var(--f-so); padding: 10px 0 12px; border-top: 2px solid rgba(11, 26, 46, .14); }
.ds-su-kien li:first-child { border-top: 0; padding-top: 0; }

/* 18:00 phản ứng nhanh, tư vấn */
.phan-ung__than { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto; column-gap: clamp(24px, 3vw, 56px); row-gap: var(--khe); }
.phan-ung__lon { grid-column: 1 / span 7; grid-row: 1 / span 2; aspect-ratio: 4 / 3.3; }
.phan-ung__chu { grid-column: 8 / span 5; grid-row: 1; align-self: start; color: var(--trang); }
.phan-ung__nho { grid-column: 8 / span 5; grid-row: 2; align-self: end; aspect-ratio: 16 / 10; }

/* 22:00 tuần tra đêm */
.tuan-tra__toan { aspect-ratio: 21 / 9; margin-bottom: clamp(28px, 3vw, 48px); }
.cung-loai--rong { max-width: none !important; }

/* 02:00 đêm yên */
.dem-yen__than { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 56px); row-gap: var(--khe); align-items: center; margin-bottom: clamp(64px, 7vw, 120px); }
.dem-yen__anh { grid-column: 1 / span 6; aspect-ratio: 4 / 3; }
.dem-yen__ds { grid-column: 7 / span 6; gap: 16px; margin: 0; }
.dem-yen__ds li { font-size: clamp(17px, 1.2vw, 20px); }
.phuong-cham { margin: 0 0 clamp(40px, 5vw, 72px); padding-top: clamp(28px, 3vw, 44px); border-top: 2px solid rgba(207, 155, 43, .5); }
.phuong-cham__ba { font: 600 clamp(34px, 4.6vw, 78px)/1 var(--f-so); color: var(--vang); margin: 0 0 18px; letter-spacing: 0.01em; max-width: none !important; }
.phuong-cham__cau { font: 500 clamp(19px, 1.6vw, 26px)/1.45 var(--f-chu); color: var(--trang); margin: 0; max-width: 46em !important; }
.giay-to { margin: 0 0 clamp(56px, 6vw, 104px); color: var(--trang-phu); font-size: 16px; }
.giay-to p { margin: 0 0 6px; }
.bang-gio { background: #0B1628; padding: clamp(24px, 3vw, 48px); }
.bang-gio__tieu { font: 600 clamp(30px, 3vw, 48px)/1 var(--f-so); color: var(--vang); margin: 0 0 24px; }
.bang-gio__bang { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.bang-gio__bang th { text-align: left; font: 500 15px/1.3 var(--f-chu); color: var(--trang-phu); padding: 0 16px 12px 0; }
.bang-gio__bang td { padding: 12px 16px 12px 0; vertical-align: baseline; }
.bang-gio__bang tbody tr:nth-child(odd) { background: rgba(255, 255, 255, .035); }
.bang-gio__bang td:first-child { font: 600 clamp(20px, 1.7vw, 28px)/1.15 var(--f-so); color: var(--vang); padding-left: 12px; }
.bang-gio__bang th:first-child { padding-left: 12px; }
.bang-gio__bang td:nth-child(2), .bang-gio__bang td:nth-child(3) { font: 500 16px/1.3 var(--f-chu); color: var(--trang); white-space: nowrap; }
.khach-tb { margin-top: clamp(40px, 4vw, 64px); }
.khach-tb p { color: var(--trang); }

/* ---------- Tuyển dụng ---------- */
.tuyen-dung { padding: var(--khoang) var(--le); }
.tuyen-dung__dau { max-width: 1100px; margin-bottom: clamp(40px, 5vw, 80px); }
.tuyen-dung h2 { font-size: clamp(40px, 5.6vw, 92px); }
.tuyen-dung__than { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 56px); row-gap: 40px; align-items: start; margin-bottom: clamp(48px, 5vw, 88px); }
.tieu-chuan { grid-column: 1 / span 5; }
.tieu-chuan h3 + .tc-chung { margin-top: -4px; }
.tc-chung { font: 600 clamp(22px, 1.9vw, 30px)/1.25 var(--f-so); margin: 0 0 18px; }
.tc-so { list-style: none; display: grid; gap: 8px; margin: 0 0 24px; font-weight: 500; }
.tieu-chuan > div { margin-top: 28px; }
.dao-tao { grid-column: 7 / span 6; }
.dao-tao > p { margin-bottom: 20px; }
.dao-tao__buoc { list-style: none; counter-reset: buoc; display: grid; gap: 0; }
.dao-tao__buoc li { counter-increment: buoc; display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 4px; padding: 14px 0; border-top: 2px solid rgba(11, 26, 46, .18); }
.dao-tao__buoc li::before { content: counter(buoc); font: 600 30px/0.95 var(--f-so); font-variant-numeric: tabular-nums; }
.dao-tao__anh { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--khe); align-items: end; margin-bottom: clamp(48px, 5vw, 88px); }
.dao-tao__vo { grid-column: 1 / span 7; aspect-ratio: 16 / 10; }
.dao-tao__pccc { grid-column: 8 / span 5; aspect-ratio: 4 / 3; }
/* Vị trí đang tuyển: mỗi khu vực một cột có gạch đầu đậm (cùng kiểu danh sách đào tạo), mức lương nổi bằng số cỡ lớn */
.vi-tri-tuyen { margin: 0 0 clamp(48px, 5vw, 88px); }
.ds-vi-tri { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px var(--khe); margin: 0; padding: 0; }
.vt { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding-top: 18px; border-top: 4px solid var(--muc); }
.vt__khu { font: 600 clamp(34px, 3vw, 48px)/1 var(--f-so); color: var(--muc); margin: 0; }
.vt__noi { margin: -2px 0 0; font-size: 16px; line-height: 1.45; overflow-wrap: anywhere; }
.vt__vi-tri { margin: 0; font-weight: 500; line-height: 1.4; }
.vt__nhan { display: block; font-size: var(--t-nho); font-weight: 700; margin: 0 0 2px; }
.vt__luong { margin: auto 0 0; padding-top: 14px; border-top: 2px solid rgba(11, 26, 46, .22); }
.vt__so { display: block; font: 600 clamp(56px, 5vw, 84px)/0.92 var(--f-so); color: var(--muc); font-variant-numeric: tabular-nums; white-space: nowrap; }
.vt__don-vi { display: block; margin-top: 6px; font-weight: 500; }
.vt .nut { align-self: flex-start; margin-top: 6px; }
@media (max-width: 1099px) { .ds-vi-tri { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
@media (max-width: 760px) { .vt .nut { align-self: stretch; } }

.tu-kiem { max-width: 760px; background: var(--nen-toi); color: var(--trang); padding: clamp(24px, 3vw, 44px); margin: 0 0 clamp(40px, 4vw, 64px); }
.tu-kiem h3 { font: 600 clamp(30px, 2.6vw, 42px)/1 var(--f-so); color: var(--vang); }
.tu-kiem__ghi { font-size: var(--t-nho); color: var(--trang-phu); margin: 14px 0 0; }
.tu-kiem__gioi { border: 0; padding: 0; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tu-kiem__gioi legend { float: left; font-size: var(--t-nho); color: var(--trang-phu); margin: 0 6px 0 0; padding: 0; line-height: 48px; }
.tu-kiem__gioi label { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 20px; background: rgba(255,255,255,.08); cursor: pointer; font-weight: 700; }
.tu-kiem__gioi label:has(input:checked) { background: var(--vang); color: var(--muc); }
.tu-kiem__gioi input { accent-color: var(--muc); width: 18px; height: 18px; margin: 0; }
.tu-kiem__o { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.tu-kiem__o label { display: grid; gap: 6px; font-size: var(--t-nho); color: var(--trang-phu); }
.tu-kiem input[type="number"] { width: 100%; min-height: 52px; padding: 10px 12px; border: 2px solid rgba(255,255,255,.28); background: var(--nen-toi2); color: var(--trang); font: 600 22px/1 var(--f-so); font-variant-numeric: tabular-nums; border-radius: 0; -moz-appearance: textfield; appearance: textfield; }
.tu-kiem input::-webkit-outer-spin-button, .tu-kiem input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.tu-kiem input[type="number"]:focus { border-color: var(--vang); outline: none; }
.tu-kiem__kq:empty { display: none; }
.tu-kiem__kq { margin-top: 16px; }
.tu-kiem__kl { font-weight: 700; font-size: 18px; color: var(--trang); margin: 0; }
.tu-kiem__kl a { color: var(--vang); }

.ung-tuyen { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; max-width: none !important; }

/* nút */
.nut { display: inline-flex; align-items: center; justify-content: center; gap: .35em; min-height: 52px; padding: 0 24px; font-weight: 700; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .12s ease; }
.nut:active { transform: scale(.97); }
.nut[disabled] { cursor: progress; opacity: .8; }
.nut--vang { background: var(--vang); color: var(--muc); }
.nut--vang:hover { background: var(--vang-sang); }
.nut--xanh { background: var(--xanh); color: #fff; }
.nut--xanh:hover { background: var(--xanh-dam); }
.nut--muc { background: var(--muc); color: var(--trang); }
.nut--muc:hover { background: #1B2D47; }
.nut--vien-muc { background: transparent; color: var(--muc); border: 2px solid currentColor; }
.nut--vien-muc:hover { background: rgba(11, 26, 46, .08); }

/* ---------- Liên hệ ---------- */
.lien-he { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 56px); row-gap: 40px; padding: var(--khoang) var(--le); align-items: start; }
.lien-he__chu { grid-column: 1 / span 6; }
.lien-he .dan { margin-bottom: 32px; }
.ba-buoc { list-style: none; counter-reset: b; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 0 0 36px; }
.ba-buoc li { counter-increment: b; padding: 16px 16px 0 0; border-top: 3px solid rgba(255, 255, 255, .55); font: 600 clamp(19px, 1.5vw, 24px)/1.15 var(--f-so); }
.ba-buoc li::before { content: counter(b); display: block; font: 600 clamp(40px, 3.4vw, 56px)/0.9 var(--f-so); color: var(--vang-sang); margin-bottom: 8px; }
.kenh { list-style: none; display: grid; gap: 4px; margin: 0; }
.kenh li { font-weight: 700; font-size: 19px; }
.kenh a { display: inline-block; padding: 8px 0; }
.phuong-an { grid-column: 8 / span 5; background: var(--nen-sang); color: var(--muc); padding: clamp(24px, 3vw, 40px); display: grid; gap: 8px; }
.loai-yc { border: 0; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.loai-yc label { position: relative; display: flex; align-items: center; justify-content: center; text-align: center; min-height: 52px; padding: 8px 10px; background: #E3DCCD; font-weight: 700; font-size: 15px; line-height: 1.25; cursor: pointer; }
.loai-yc input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.loai-yc label:hover { background: #D8CFBC; }
.loai-yc label:has(input:checked) { background: var(--muc); color: var(--trang); }
.loai-yc label:has(input:focus-visible) { outline: 3px solid var(--vang); outline-offset: 2px; }
.phuong-an > label:not(.dong-y) { font-size: var(--t-nho); font-weight: 500; color: var(--muc-phu); margin-top: 8px; }
.phuong-an input:not([type]), .phuong-an input[type="tel"], .phuong-an select, .phuong-an textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid #C9C1B0; border-radius: 0; background: #fff; color: var(--muc); font: 400 16px/1.4 var(--f-chu); }
.phuong-an textarea { resize: vertical; min-height: 96px; }
.phuong-an input:focus, .phuong-an select:focus, .phuong-an textarea:focus { border-color: var(--xanh); outline: none; }
.phuong-an [aria-invalid="true"] { border-color: #B3261E; }
.phuong-an ::placeholder { color: #6B7280; }
.dong-y { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; line-height: 1.45; color: var(--muc-phu); margin-top: 12px; cursor: pointer; }
.dong-y input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--xanh); }
.dong-y input[aria-invalid="true"] { outline: 2px solid #B3261E; outline-offset: 2px; }
.loi { color: #B3261E; font-weight: 700; font-size: 14px; margin: 2px 0 0; }
.phuong-an .nut { width: 100%; min-height: 56px; font-size: 18px; margin-top: 12px; }
.phuong-an__kq:empty { display: none; }
.phuong-an__kq { font-size: 16px; }
.phuong-an__kq p { margin: 4px 0 0; }
.phuong-an__kq a { color: var(--xanh-dam); font-weight: 700; }
.phuong-an__loi { color: #B3261E; font-weight: 700; }
.phuong-an__xong { color: #1B6B3A; font-weight: 700; }

/* ---------- Chân trang ---------- */
.chan-trang { padding: clamp(56px, 7vw, 112px) var(--le) clamp(28px, 3vw, 44px); }
.chan-trang__luoi { display: grid; grid-template-columns: 1.3fr 1.5fr 0.8fr; gap: 40px; align-items: start; margin-bottom: 40px; }
.chan-trang__luoi p { margin: 0 0 10px; color: var(--trang-phu); font-size: 16px; }
.chan-trang__luoi a { color: var(--trang); }
.chan-trang__logo { width: 96px; height: auto; margin-bottom: 18px; }
.chan-trang__ten-cty { font: 600 22px/1.15 var(--f-so) !important; color: var(--trang) !important; letter-spacing: 0.01em; }
.chan-trang__khau-hieu { font-size: 17px !important; color: var(--trang) !important; }
.chan-trang__pc { font: 600 18px/1.2 var(--f-so) !important; color: var(--vang) !important; letter-spacing: 0.02em; }
.chan-trang nav { display: grid; gap: 4px; }
.chan-trang nav a { text-decoration: none; padding: 6px 0; font-weight: 500; }
.chan-trang nav a:hover { text-decoration: underline; }
.chan-trang__ai { font-size: 14px; color: var(--trang-phu); margin: 0 0 8px; padding-top: 8px; }
.chan-trang__cuoi { font-size: 14px; color: var(--trang-phu); margin: 0; }

/* ---------- Thanh đáy (điện thoại) ---------- */
.thanh-day { display: none; }

/* ---------- Xuất hiện khi cuộn ---------- */
.js [data-vao] { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--tre, 0ms); }
.js [data-vao].da-vao { opacity: 1; transform: none; }

/* ---------- Máy tính nhỏ / máy tính bảng ---------- */
@media (max-width: 1099px) {
  .man-dau { grid-template-columns: 0 minmax(0, 52fr) minmax(0, 48fr); }
  .cua--thue { padding-left: var(--le); }
  .thanh-tren__nav { gap: 20px; }
  .thanh-tren { gap: 20px; }
  .giao-ca__than > .phim { grid-column: 1 / span 8; }
}
@media (max-width: 960px) {
  .thanh-tren__nav { display: none; }
}

/* ---------- Điện thoại ---------- */
@media (max-width: 760px) {
  :root { --khoang: 72px; }
  .thanh-tren { gap: 12px; }
  .thanh-tren__nut, .thanh-tren__goi { display: none; }
  .thuong-hieu img { width: 36px; height: 36px; }
  .thuong-hieu span { font-size: 26px; }

  .man-dau { display: flex; flex-direction: column; min-height: calc(100svh - var(--dau-cao) - var(--day-cao) - env(safe-area-inset-bottom, 0px)); }
  .man-dau__chu { padding: 12px var(--le) 14px; justify-content: flex-start; flex: 0 0 auto; }
  .dong-ho { font-size: clamp(64px, 19vw, 88px); margin-bottom: 4px; }
  .dong-ho__nhan { font-size: 14px; margin-bottom: 10px; }
  .man-dau h1 { font-size: clamp(32px, 9vw, 40px); margin-bottom: 8px; }
  .h1__phu { font-size: 0.64em; line-height: 1.15; margin-top: 4px; }
  .man-dau__phu { font-size: 15px; line-height: 1.45; margin-bottom: 8px; }
  .can-cu { font-size: 13px; }
  .man-dau__anh { flex: 1 1 120px; min-height: 120px; }
  .hai-cua { grid-template-columns: 1fr 1fr; }
  .cua--thue, .cua--lam { grid-column: auto; }
  .cua { min-height: 0; justify-content: flex-start; padding: 12px 16px 14px; gap: 6px; }
  .cua--thue { padding-left: 16px; }
  .cua__tieu { font-size: clamp(24px, 6.8vw, 28px); line-height: 0.98; }
  .cua__mo { font-size: 13px; line-height: 1.3; }
  .cua__phu { font-size: 14px; line-height: 1.25; margin-top: auto; }

  .chuong { padding: var(--khoang) var(--le); }
  .moi-cuon { margin: calc(-0.55 * var(--khoang)) 0 36px; }
  .chuong__dau { grid-template-columns: 1fr; row-gap: 14px; margin-bottom: 32px; }
  .moc { grid-template-columns: auto 1fr; align-items: baseline; column-gap: 14px; }
  .moc__gio { font-size: clamp(60px, 18vw, 80px); }
  .moc__nhan { margin-top: 0; }
  .giao-ca__than, .toa-nha__than, .ap-tai__than, .su-kien__duoi, .phan-ung__than, .dem-yen__than, .tuyen-dung__than, .dao-tao__anh, .lien-he { grid-template-columns: 1fr; }
  .giao-ca__than > *, .toa-nha__than > *, .ap-tai__than > *, .su-kien__duoi > *, .phan-ung__than > *, .dem-yen__than > *, .tuyen-dung__than > *, .dao-tao__anh > *, .lien-he > * { grid-column: 1 / -1 !important; grid-row: auto !important; }
  .giao-ca__than > .phim { grid-column: 1 / -1 !important; }
  .giao-ca__anh { aspect-ratio: 16 / 10; }
  .toa-nha__anh, .ap-tai__anh, .phan-ung__lon, .dem-yen__anh { aspect-ratio: 4 / 3; }
  .ho-tong__anh { margin-top: 20px; }
  .ap-tai__chu, .ho-tong__chu { margin-bottom: 0; }
  .su-kien__rong { aspect-ratio: 16 / 9; }
  .tuan-tra__toan { aspect-ratio: 4 / 3; }
  .phim__chu { padding: 14px 16px; font-size: 19px; gap: 10px; }
  .phuong-cham__ba { font-size: clamp(30px, 9vw, 40px); }
  .bang-gio { margin-left: calc(-1 * var(--le)); margin-right: calc(-1 * var(--le)); padding: 24px var(--le); }
  .bang-gio__bang td:first-child, .bang-gio__bang th:first-child { padding-left: 0; }
  .bang-gio__bang td:nth-child(2), .bang-gio__bang td:nth-child(3) { white-space: normal; font-size: 14px; }
  .bang-gio__bang td, .bang-gio__bang th { padding-right: 10px; }
  .bang-gio__bang tbody tr:nth-child(odd) { background: none; }
  .bang-gio__bang tbody tr + tr td { border-top: 1px solid rgba(255, 255, 255, .08); }
  .tu-kiem__o { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .tu-kiem__o label { font-size: 13px; }
  .dao-tao__anh { row-gap: var(--khe); }
  .dao-tao__vo, .dao-tao__pccc { aspect-ratio: 16 / 10; }
  .ung-tuyen .nut { flex: 1 1 100%; }
  .ba-buoc li { padding-right: 10px; font-size: 17px; }
  .so-goi { font-size: clamp(44px, 13vw, 60px); }
  .chan-trang__luoi { grid-template-columns: 1fr; gap: 24px; }

  .thanh-day { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; height: calc(var(--day-cao) + env(safe-area-inset-bottom, 0px)); padding-bottom: env(safe-area-inset-bottom, 0px); background: var(--nen-toi); }
  .thanh-day a { display: flex; align-items: center; justify-content: center; text-align: center; font-weight: 700; font-size: 15px; line-height: 1.15; text-decoration: none; padding: 0 6px; }
  /* Chữ mỗi nút giữ một dòng; cột 1fr tự nới theo chữ dài nhất («Nhận phương án»), hai cột kia chia phần còn lại. */
  .thanh-day a { white-space: nowrap; }
  .thanh-day__goi { background: var(--nen-dem); color: var(--trang); }
  .thanh-day__pa { background: var(--xanh); color: #fff; }
  .thanh-day__ut { background: var(--vang); color: var(--muc); }
  .thanh-day a:active { filter: brightness(.92); }
}

@media (max-width: 380px) {
  .tu-kiem__o { grid-template-columns: 1fr; }
  .cua__tieu { font-size: 23px; }
}

/* ==========================================================================
   GIAO DIỆN A và C — chỉ khối biến + màn đầu riêng; các khối bên dưới dùng chung với B.
   Bật bằng giao_dien trong du-lieu.js (bản xem trước: ?giao-dien=A | C).
   ========================================================================== */

/* ---------- Biến giao diện A «Hồ sơ năng lực mở»: ngà, xanh than ---------- */
:root[data-giao-dien="A"] {
  --nen-sang: #F4F1EA;
  --nen-sang2: #ECE7DC;
  --muc: #0B1F3A;
  --muc-phu: #3A4A60;
  --t-h2: clamp(32px, 3.1vw, 52px);
}
:root[data-giao-dien="A"] .chuong h2, :root[data-giao-dien="A"] .tuyen-dung h2, :root[data-giao-dien="A"] .lien-he h2 { font-weight: 600; line-height: 1.14; letter-spacing: -0.03em; }
:root[data-giao-dien="A"] .tuyen-dung h2 { font-size: clamp(36px, 4.4vw, 72px); }
@media (max-width: 760px) { :root[data-giao-dien="A"] { --t-h2: 26px; } :root[data-giao-dien="A"] .tuyen-dung h2 { font-size: 30px; } }
:root[data-giao-dien="A"] .thanh-tren { background: var(--nen-sang); color: var(--muc); }
:root[data-giao-dien="A"] .cua__tieu { font-family: var(--f-tieu); font-weight: 600; line-height: 1.12; letter-spacing: -0.02em; }
:root[data-giao-dien="A"] .chuong h2, :root[data-giao-dien="A"] .tuyen-dung h2, :root[data-giao-dien="A"] .lien-he h2, :root[data-giao-dien="A"] .cua__tieu, .man-dau--a h1, .van-ban h1 { word-spacing: 0.08em; }
.nhan-mh { text-wrap: balance; }
.ba-buoc li, .mda__can-cu dd { word-spacing: 0.04em; }
@media (max-width: 480px) { :root[data-giao-dien="A"] .cua__tieu { font-size: clamp(20px, 5.8vw, 24px); } }

/* ---------- Biến giao diện C «BÌNH YÊN»: xanh than đêm như bìa phim ---------- */
:root[data-giao-dien="C"] {
  --nen-toi: #071326;
  --nen-toi2: #050F1F;
  --nen-dem: #040A15;
}

/* ---------- A, C: ray mốc giờ ẩn ở màn đầu, hiện từ mốc 06:00 ---------- */
@media (min-width: 1100px) {
  :root:not([data-giao-dien="B"]) .ray[data-o-dau="1"] { opacity: 0; visibility: hidden; pointer-events: none; transition: color .35s ease, opacity .35s ease, visibility 0s .35s; }
}
@media (min-width: 761px) and (max-width: 1099px) {
  :root:not([data-giao-dien="B"]) .ray { position: fixed; left: 0; right: 0; top: 0; transform: translateY(-100%); transition: transform .3s ease, background-color .35s ease, color .35s ease; }
  :root:not([data-giao-dien="B"]) .ray[data-o-dau="0"][data-an="0"] { transform: none; }
  :root:not([data-giao-dien="B"]) .ray:not([data-o-dau="0"][data-an="0"]) { visibility: hidden; transition: transform .3s ease, visibility 0s .3s; }
}

/* ---------- A, C: hai cửa chia đôi bề ngang ---------- */
.man-dau--a .hai-cua, .man-dau--c .hai-cua { grid-template-columns: 1fr 1fr; }
.man-dau--a .cua, .man-dau--c .cua { grid-column: auto; }
.man-dau--a .cua--thue, .man-dau--c .cua--thue { padding-left: var(--le); }

/* ---------- Màn đầu A ---------- */
.man-dau.man-dau--a { display: flex; flex-direction: column; }
.mda__dai { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; height: clamp(180px, 33svh, 400px); padding: 0 8px; }
.mda__o { position: relative; margin: 0; overflow: hidden; background: rgba(11, 31, 58, .08); }
.mda__o img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--vt, 50% 45%); }
.mda__o .nhan-mh { right: 6px; bottom: 6px; font-size: 11px; padding: 2px 6px; white-space: nowrap; text-wrap: nowrap; }
.mda__than { flex: 1 0 auto; display: grid; grid-template-columns: minmax(0, 23fr) minmax(0, 77fr); column-gap: clamp(24px, 4vw, 80px); align-items: center; padding: clamp(20px, 4.2vh, 60px) var(--le); }
.mda__can-cu { margin: 0; align-self: start; padding-top: 14px; border-top: 4px solid var(--vang); max-width: 22em; }
.mda__can-cu dt { font-size: 15px; font-weight: 500; color: var(--muc-phu); margin: 14px 0 0; }
.mda__can-cu dt:first-child { margin-top: 0; }
.mda__can-cu dd { margin: 2px 0 0; font: 600 clamp(22px, 1.9vw, 30px)/1.15 var(--f-tieu); font-variant-numeric: lining-nums tabular-nums; letter-spacing: 0.01em; }
.mda__can-cu dd.mda__tru-so { font: 500 16px/1.45 var(--f-chu); letter-spacing: 0; max-width: 20em; text-wrap: pretty; }
@media (max-width: 1099px) { .mda__can-cu .mda__tru-so { display: none; } }   /* màn hẹp: địa chỉ ở khối Liên hệ và chân trang, giữ hai cửa trong màn đầu */
@media (min-width: 761px) and (max-width: 1099px) { .mda__can-cu .mda__gcn { display: none; } }   /* máy tính bảng: số giấy ANTT ở khối Năng lực, Liên hệ và chân trang, giữ hai cửa trong màn đầu */
@media (min-width: 1100px) and (max-height: 700px) { .mda__can-cu .mda__tru-so { display: none; } }   /* màn thấp: ưu tiên số giấy ANTT, địa chỉ ở khối Liên hệ và chân trang */
.man-dau--a h1 { font: 600 clamp(32px, min(3.9vw, 7vh), 64px)/1.1 var(--f-tieu); letter-spacing: -0.035em; color: var(--muc); margin: 0 0 clamp(12px, 2.2vh, 24px); }
.mda__dong { display: block; }
.mda__phu { font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; color: var(--muc-phu); max-width: 38em; margin: 0 0 clamp(14px, 2.4vh, 24px); }
.mda__nut { margin: 0; }
.js .man-dau--a .mda__dong { animation: troi-len .8s cubic-bezier(.2, .7, .2, 1) both; }
.js .man-dau--a .mda__dong--2 { animation-delay: .12s; }
.js .man-dau--a .mda__o { animation: hien-dan .9s ease both; }
.js .man-dau--a .mda__o:nth-child(2) { animation-delay: .08s; }
.js .man-dau--a .mda__o:nth-child(3) { animation-delay: .16s; }
.js .man-dau--a .mda__o:nth-child(4) { animation-delay: .24s; }
@keyframes troi-len { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
@keyframes hien-dan { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Màn đầu C ---------- */
.man-dau.man-dau--c { display: flex; flex-direction: column; --rong-chu: min(100%, calc((100svh - var(--dau-cao)) * 0.37 * var(--ty-chu, 4.73))); }
.mdc__tren { flex: 1 0 auto; display: flex; flex-direction: column; justify-content: center; gap: clamp(30px, 4.4vh, 52px); padding: clamp(24px, 5vh, 72px) var(--le) clamp(24px, 4.4vh, 56px); }
.mdc__khung { position: relative; width: var(--rong-chu); margin: 0 auto; }
.mdc__man { display: block; width: 100%; height: auto; position: relative; }
.mdc__anh, .mdc__phim { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.mdc__phim { opacity: 0; transition: opacity 1s ease; pointer-events: none; }
.mdc__phim.dang-chay { opacity: 1; }
.mdc__nen { fill: var(--nen-toi); }
.mdc__chu { font-family: var(--f-chu); font-weight: 900; font-size: 100px; }
.mdc__nhan { position: absolute; right: 0; top: 100%; margin-top: 6px; font: italic 400 11px/1.4 var(--f-chu); color: var(--trang-phu); }
.mdc__duoi { width: var(--rong-chu); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 20px 48px; }
.man-dau--c h1 { font: 600 clamp(26px, min(2.6vw, 5vh), 44px)/1.15 var(--f-tieu); color: var(--trang); margin: 0 0 6px; letter-spacing: -0.03em; }
.mdc__khau-hieu { font: 600 clamp(20px, min(1.9vw, 3.8vh), 32px)/1.25 var(--f-tieu); color: var(--vang); margin: 0 0 10px; }
.mdc__viec { font-size: clamp(16px, 1.15vw, 19px); line-height: 1.5; color: var(--trang-phu); margin: 0; max-width: 40em; }
.mdc__xem { display: grid; justify-items: start; gap: 10px; background: none; border: 0; padding: 6px 0; color: var(--trang); cursor: pointer; text-align: left; }
.mdc__bia { display: none; }
.mdc__xem-chu { display: inline-flex; align-items: center; gap: 16px; font: 600 clamp(17px, 1.3vw, 20px)/1.2 var(--f-tieu); }
.mdc__tron { flex: none; position: relative; width: 60px; height: 60px; border-radius: 50%; border: 2px solid currentColor; transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.mdc__tron::before { content: ""; position: absolute; left: 50%; top: 50%; margin: -9px 0 0 -5px; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent currentColor; }
.mdc__xem:hover .mdc__tron { background: var(--vang); border-color: var(--vang); color: var(--muc); }
.mdc__xem:active .mdc__tron { transform: scale(.96); }

@media (min-width: 761px) and (max-height: 780px) {
  .mda__dai { height: clamp(150px, 26svh, 400px); }
  .mda__than { padding-block: clamp(14px, 2.8vh, 28px); }
  .mda__phu { line-height: 1.45; margin-bottom: 0; }
}
@media (min-width: 761px) and (max-width: 1099px) {
  .mda__than { grid-template-columns: 1fr; row-gap: 18px; align-items: start; }
  .mda__can-cu { order: 2; max-width: none; }
  .man-dau--c h1 { font-size: clamp(34px, 4.6vw, 48px); }
  .mdc__duoi { grid-template-columns: 1fr; }
  .mdc__xem { order: 1; }
}
@media (max-width: 760px) {
  .mda__dai { grid-template-columns: 1fr 1fr; gap: 4px; height: auto; padding: 0; }
  .mda__o { aspect-ratio: 16 / 10; }
  .mda__o .nhan-mh { font-size: 10px; right: 4px; bottom: 4px; padding: 2px 5px; }
  .mda__than { grid-template-columns: 1fr; row-gap: 10px; align-items: start; padding: 16px var(--le) 16px; }
  .mda__can-cu { order: 2; border-top: 0; padding-top: 0; display: flex; flex-wrap: wrap; column-gap: .35em; }
  .mda__can-cu dt, .mda__can-cu dd { margin: 0; font: 400 13px/1.45 var(--f-chu); color: var(--muc-phu); }
  .mda__can-cu dd + dt::before { content: "· "; }
  .man-dau--a h1 { font-size: clamp(32px, 9.4vw, 40px); line-height: 1.06; margin-bottom: 10px; }
  .mda__dong--2 { font-size: .58em; line-height: 1.2; margin-top: 4px; }
  .mda__phu { font-size: 15px; line-height: 1.45; margin-bottom: 0; }
  .mda__nut .nut { width: 100%; }

  .man-dau.man-dau--c { --rong-chu: 100%; }
  .mdc__tren { justify-content: flex-start; gap: 14px; padding: 18px var(--le) 18px; }
  .mdc__nhan { position: static; display: block; text-align: right; margin-top: 4px; font-size: 11px; }
  .mdc__duoi { grid-template-columns: 1fr; gap: 14px; }
  .mdc__xem { order: -1; width: 100%; gap: 8px; padding: 0; }
  .mdc__bia { display: block; position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; background: var(--nen-toi2); }
  .mdc__bia img { width: 100%; height: 100%; object-fit: cover; }
  .mdc__bia .nhan-mh { font-size: 10.5px; right: 6px; bottom: 6px; padding: 2px 5px; }
  .mdc__xem-chu { gap: 12px; font-size: 16px; }
  .mdc__tron { width: 44px; height: 44px; }
  .mdc__tron::before { margin: -7px 0 0 -4px; border-width: 7px 0 7px 12px; }
  .man-dau--c h1 { font-size: 21px; margin-bottom: 4px; }
  .mdc__khau-hieu { font-size: 18px; margin-bottom: 6px; }
  .mdc__viec { font-size: 15px; line-height: 1.45; }
}

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-vao] { transform: none; }
  .dong-ho .hai-cham { animation: none; }
  .js .man-dau--a .mda__dong, .js .man-dau--a .mda__o { animation: none; }
}

/* ---------- Biểu mẫu: ô năm sinh, thư điện tử, hai ô đồng ý, liên kết chính sách (24/11) ---------- */
.phuong-an input[type="text"], .phuong-an input[type="email"] { width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid #C9C1B0; border-radius: 0; background: #fff; color: var(--muc); font: 400 16px/1.4 var(--f-chu); }
.phuong-an [hidden] { display: none !important; }
.dong-y__muc { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muc); margin-bottom: 2px; }
.chinh-sach-lk { margin: 10px 0 0; font-size: 15px; }
.chinh-sach-lk a { color: var(--xanh-dam); font-weight: 700; text-underline-offset: 3px; }
.nhac-thu { margin: 6px 0 0; font-size: 14px; line-height: 1.5; color: var(--muc-phu); }
.phuong-an__phu { font-size: 15px; color: var(--muc-phu); }

/* ---------- Trang «Chính sách bảo vệ dữ liệu cá nhân» ---------- */
.trang-van-ban { padding-bottom: 0; }
.van-ban { max-width: 48rem; margin: 0 auto; padding: clamp(40px, 6vw, 96px) var(--le) clamp(64px, 8vw, 120px); }
.van-ban__ve { display: inline-block; font-size: var(--t-nho); font-weight: 500; color: var(--muc-phu); margin-bottom: 24px; }
.van-ban h1 { font: 600 clamp(30px, 3.4vw, 48px)/1.15 var(--f-tieu); letter-spacing: -0.03em; margin: 0 0 14px; text-wrap: balance; }
.van-ban__cap-nhat { font-size: var(--t-nho); color: var(--muc-phu); margin: 0 0 8px; }
.van-ban h2 { font: 600 clamp(20px, 1.7vw, 25px)/1.25 var(--f-tieu); margin: 44px 0 12px; text-wrap: balance; }
.van-ban p, .van-ban li { font-size: 18px; line-height: 1.6; max-width: 42em; }
.van-ban p { margin: 0 0 12px; }
.van-ban ul { margin: 0 0 12px; padding-left: 1.2em; }
.van-ban li { margin-bottom: 6px; }
.van-ban a { color: var(--xanh-dam); font-weight: 700; text-underline-offset: 3px; }
.van-ban__dau-moi { list-style: none; padding: 16px 0 0 !important; border-top: 4px solid var(--muc); }
.van-ban__dau-moi li { margin-bottom: 8px; }
.van-ban__dau-moi b { display: inline-block; min-width: 9.5em; font-weight: 700; }
.trang-van-ban .chan-trang__luoi { grid-template-columns: 1.3fr 1.5fr; }
@media (max-width: 760px) {
  .van-ban p, .van-ban li { font-size: 17px; }
  .van-ban__dau-moi b { display: block; min-width: 0; }
}
.thanh-tren__ve { font-weight: 700; font-size: 16px; text-decoration: none; padding: 10px 0; }
.thanh-tren__ve:hover { text-decoration: underline; }
