/* T&A Corp – giao diện công khai. Thiết kế ưu tiên điện thoại (iPhone), mở rộng dần lên máy tính. */
:root {
  --brand: #1B5CAB;
  --brand-dark: #12407a;
  --brand-soft: #eef4fb;
  --brand-tint: #d3e1f2;
  --ink: #0f1b2d;
  --ink-2: #34445a;
  --muted: #64748b;
  --line: #e4eaf2;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(15, 27, 45, .05), 0 8px 24px rgba(15, 27, 45, .06);
  --shadow-lg: 0 12px 40px rgba(15, 27, 45, .14);
  --header-h: 80px;
  --mbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--mbar-h) + var(--safe-b));
  overflow-x: hidden;
}
body.lock { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; color: var(--ink); }
h1 { font-size: clamp(28px, 7vw, 48px); font-weight: 800; }
h2 { font-size: clamp(24px, 5.6vw, 36px); font-weight: 800; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.i { width: 20px; height: 20px; flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt-16 { margin-top: 16px; } .mt-32 { margin-top: 32px; } .mb-32 { margin-bottom: 32px; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 999; background: #fff; padding: 8px 12px; border-radius: 8px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding-left: max(var(--gutter), env(safe-area-inset-left)); padding-right: max(var(--gutter), env(safe-area-inset-right)); }
.container.narrow { max-width: 760px; }
.container.narrow-wide { max-width: 980px; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: background-color .25s, background-size .35s cubic-bezier(.2,.8,.2,1), color .25s, border-color .25s, box-shadow .3s, transform .25s cubic-bezier(.2,.8,.2,1);
}
.btn:active { transform: scale(.97); }
.btn .i { width: 18px; height: 18px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border-color: var(--brand-tint); color: var(--brand); background: #fff; }
.btn-outline:hover { border-color: var(--brand); }
.btn-white { background: #fff; color: var(--brand); }
.btn-ghost-white { border-color: rgba(255,255,255,.6); color: #fff; background: rgba(255,255,255,.08); }
.btn-ghost-white:hover { background: rgba(255,255,255,.18); }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--ink); flex: none; }
.icon-btn .i { width: 22px; height: 22px; }

/* ---------- Thanh thông báo trên cùng ---------- */
.topbar { position: relative; overflow: hidden; background: var(--brand-dark); color: #fff; font-size: 13px; padding-top: env(safe-area-inset-top); }
/* Vệt sáng lướt ngang thanh thông báo mỗi vài giây */
.topbar::before { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.14), transparent); transform: skewX(-20deg); animation: ta-sweep 6s ease-in-out 1.2s infinite; pointer-events: none; }
.topbar-in { position: relative; display: flex; align-items: center; gap: 10px; min-height: 38px; padding-top: 6px; padding-bottom: 6px; }
/* Biểu tượng loa: rung lắc + đổi màu, có vòng sóng lan ra */
.topbar-bell { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.12); }
.topbar-bell::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #ffd36b; opacity: 0; animation: ta-ripple 3s ease-out infinite; }
.topbar-ic { width: 15px; height: 15px; color: #fff; transform-origin: 50% 60%; animation: ta-shake 3s ease-in-out infinite, ta-glow 3s ease-in-out infinite; }
.topbar-text { color: #fff; flex: 1; min-width: 0; line-height: 1.4; }
.topbar-cta { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; white-space: nowrap; color: #ffd36b; }
.topbar-cta-label { text-decoration: underline; text-underline-offset: 3px; }
/* Mũi tên trượt nhẹ sang phải theo nhịp */
.topbar-arrow { display: inline-block; animation: ta-nudge 1.6s ease-in-out infinite; }
@keyframes ta-shake { 0%, 52%, 100% { transform: rotate(0); } 56% { transform: rotate(-18deg); } 62% { transform: rotate(16deg); } 68% { transform: rotate(-12deg); } 74% { transform: rotate(8deg); } 80% { transform: rotate(-4deg); } 86% { transform: rotate(0); } }
@keyframes ta-glow { 0%, 50%, 100% { color: #fff; } 60%, 85% { color: #ffd36b; } }
@keyframes ta-ripple { 0%, 50% { transform: scale(1); opacity: 0; } 55% { opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes ta-nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(5px); } }
@keyframes ta-sweep { 0% { left: -40%; } 45%, 100% { left: 120%; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s;
}
body:not(:has(.topbar)) .header { padding-top: env(safe-area-inset-top); }
.header.scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(15,27,45,.06); }
/* Điện thoại: menu bên trái – logo giữa – Zalo bên phải */
.header-in { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; height: var(--header-h); gap: 8px; }
.header-in > .logo { justify-self: center; }
.logo { display: flex; align-items: center; }
.logo img { height: 57px; width: auto; }
.logo strong { font-size: 22px; color: var(--brand); }
.nav { display: none; }
.header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; }
.header-zalo { width: 44px; height: 44px; margin-right: -4px; display: grid; place-items: center; color: #0068ff; }
.header-zalo .i { width: 34px; height: 34px; }
.header-call { display: none; }
.menu-btn { width: 44px; height: 44px; margin-left: -10px; border: 0; background: none; color: var(--ink); display: grid; place-items: center; }
.menu-btn .i { width: 28px; height: 28px; }

/* Menu trượt cho điện thoại */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(15,27,45,.45); opacity: 0; transition: opacity .25s; }
.drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px);
  background: #fff; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 8px) 20px calc(var(--safe-b) + 20px);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.8,.2,1);
  overflow-y: auto; overscroll-behavior: contain;
}
.drawer.open { visibility: visible; }
.drawer.open .drawer-backdrop { opacity: 1; }
.drawer.open .drawer-panel { transform: none; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; height: 80px; }
.drawer-head .logo img { height: 48px; }
.drawer-nav { display: flex; flex-direction: column; margin: 12px 0 24px; }
.drawer-nav a { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font-size: 18px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--line); }
.drawer-nav a.active { color: var(--brand); }
.drawer-nav .i { color: var(--muted); width: 18px; }
.drawer-foot { margin-top: auto; display: grid; gap: 10px; }
.social { display: flex; gap: 10px; margin-top: 8px; }
.social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
/* Zalo: icon lớn, không nền tròn, giữ màu xanh Zalo */
.social a.social-zalo { background: none; color: #0068ff; border-radius: 10px; }
.social a.social-zalo .i { width: 40px; height: 40px; }
.social .i { width: 20px; height: 20px; }

/* ---------- Banner trang chủ ---------- */
/* ============ Banner chính: 2 bố cục riêng cho điện thoại và máy tính ============ */
.hero { position: relative; background: #fff; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; min-width: 0; }
/* Khung banner khổ 6×4 (3:2) – ảnh chụp 6×4 hiện trọn vẹn; ảnh khác tỉ lệ thì lấp hai bên bằng chính ảnh làm mờ */
.hero-media { position: relative; overflow: hidden; background: var(--brand-dark); aspect-ratio: 3 / 2; width: 100%; }
.hero-media::before { content: ''; position: absolute; inset: -40px; background: var(--bg) center / cover no-repeat; filter: blur(30px) saturate(120%) brightness(.85); }
.hero-media picture, .hero-media img { position: relative; }
/* Canh ảnh theo cạnh dưới (mặc định) để không cắt người; phóng chậm cũng neo ở cạnh dưới */
.hero-media img { width: 100%; height: 100%; object-fit: contain; object-position: var(--fx, 50%) var(--fy, 100%); transform-origin: var(--fx, 50%) var(--fy, 100%); }
.hero-media::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(8,22,45,.35) 0%, rgba(8,22,45,0) 18%, rgba(8,22,45,0) 70%, rgba(8,22,45,.28) 100%); }
.hero-link { position: absolute; inset: 0; z-index: 2; }

/* Điện thoại: chữ gọn nằm dưới ảnh, không che ảnh */
.hero-content { position: relative; z-index: 2; }
.hero-content > .container { padding-top: 14px; padding-bottom: 6px; }
.hero-card { background: none; padding: 0; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 6px; color: var(--brand); font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; }
.hero-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.hero-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ta-dot 2s ease-out infinite; }
.hero-title { font-size: 20px; line-height: 1.3; margin: 0 0 4px; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hero-sub { font-size: 13.5px; line-height: 1.5; color: var(--muted); margin: 0 0 12px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; gap: 8px; align-items: center; margin-top: 20px; } /* thêm khoảng thở giữa chữ và nút */
.hero-actions .btn { min-height: 42px; font-size: 14px; }
.hero-btn { padding: 0 18px; background: var(--brand); color: #fff; }
.hero-call { width: 42px; padding: 0; border-color: var(--brand-tint); color: var(--brand); background: #fff; }
.hero-call span { display: none; }

/* Chấm chuyển banner kiểu kính mờ (glass) – cao bằng nút bấm */
.hero-pager { position: absolute; z-index: 4; left: 0; right: 0; pointer-events: none;
  top: calc(100vw * 2 / 3 - 54px); }
.hero-pager-in { display: flex; justify-content: center; }
.hero-dots { pointer-events: auto; display: inline-flex; align-items: center; gap: 2px; height: 42px; padding: 0 5px; border-radius: 99px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.03)); border: 0;
  -webkit-backdrop-filter: blur(6px) saturate(160%); backdrop-filter: blur(6px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(255,255,255,.08), 0 6px 18px rgba(8,22,45,.14); }
.hero-dot-btn { width: 34px; height: 34px; padding: 0; border: 0; background: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; transition: width .35s cubic-bezier(.2,.8,.2,1); }
.hero-dot-btn span { display: block; width: 14px; height: 14px; border-radius: 99px; background: rgba(255,255,255,.55); box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: width .35s cubic-bezier(.2,.8,.2,1), background-color .3s, transform .2s; }
.hero-dot-btn.active { width: 52px; }
.hero-dot-btn.active span { width: 36px; background: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,.25), 0 1px 4px rgba(0,0,0,.25); }
.hero-dot-btn:active span { transform: scale(.85); }
.hero-dot-btn:focus-visible { outline: 2px solid #fff; outline-offset: 0; }

/* Chữ xuất hiện lần lượt, ảnh phóng chậm khi chuyển banner */
.hero-slide.is-active .hero-card > * { animation: ta-rise .7s cubic-bezier(.2,.8,.2,1) both; }
.hero-slide.is-active .hero-card > :nth-child(2) { animation-delay: .08s; }
.hero-slide.is-active .hero-card > :nth-child(3) { animation-delay: .16s; }
.hero-slide.is-active .hero-card > :nth-child(4) { animation-delay: .24s; }
.hero-slide.is-active .hero-media img { animation: ta-kenburns 9s ease-out both; }
@keyframes ta-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ta-kenburns { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes ta-fill { from { width: 0; } to { width: 100%; } }
@keyframes ta-dot { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* Máy tính & máy tính bảng: ảnh ngang toàn màn hình, khung chữ kính mờ bên trái */
@media (min-width: 768px) {
  .hero { background: var(--brand-dark); }
  .hero-slide { aspect-ratio: 3 / 2; min-height: 420px; max-height: calc(100svh - 134px); }
  .hero-media { position: absolute; inset: 0; aspect-ratio: auto; max-height: none; }
  .hero-media img { object-position: 50% var(--fy, 100%); transform-origin: 50% var(--fy, 100%); }
  /* Chỉ tối nhẹ ở mép dưới ảnh để chữ dễ đọc, phần còn lại của ảnh giữ nguyên */
  .hero-media::after { background: linear-gradient(0deg, rgba(8,22,45,.86) 0%, rgba(8,22,45,.56) 28%, rgba(8,22,45,0) 56%), linear-gradient(90deg, rgba(8,22,45,.66) 0%, rgba(8,22,45,.36) 32%, rgba(8,22,45,0) 56%); }
  .hero-content { position: absolute; left: 0; right: 0; bottom: 0; top: auto; margin: 0; padding-bottom: 84px; }
  .hero-content > .container { padding-top: 0; padding-bottom: 0; }
  .hero-card { max-width: 540px; color: #fff; }
  .hero-eyebrow { color: #ffd36b; margin-bottom: 8px; text-shadow: 0 1px 8px rgba(0,0,0,.35); }
  .hero-title { color: #fff; font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 6px; text-shadow: 0 2px 18px rgba(0,0,0,.5); -webkit-line-clamp: 2; }
  .hero-sub { color: rgba(255,255,255,.88); font-size: 15px; margin-bottom: 16px; -webkit-line-clamp: 2; text-shadow: 0 1px 10px rgba(0,0,0,.35); }
  .hero-actions .btn { min-height: 44px; }
  .hero-btn { background: #fff; color: var(--brand); }
  .hero-call { width: auto; padding: 0 18px; background: rgba(8,22,45,.25); border-color: rgba(255,255,255,.6); color: #fff; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
  .hero-call span { display: inline; }

  /* Chấm chuyển banner cùng hàng với nút bấm (cạnh đáy nút cách mép dưới 56px) */
  .hero-content { padding-bottom: 56px; }
  .hero-pager { top: auto; bottom: 56px; }
  .hero-pager-in { justify-content: flex-end; } /* máy tính bảng: bên phải để không đè nút */
  .hero-dots { height: 44px; }
}
@media (min-width: 1024px) {
  .hero-pager-in { justify-content: center; } /* máy tính: canh giữa banner */
}
@media (hover: hover) and (pointer: fine) {
  .hero-dot-btn:hover:not(.active) span { background: rgba(255,255,255,.9); transform: scale(1.15); }
  .hero-call:hover { transform: translateY(-2px); }
  .hero-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(8,22,45,.22); }
}
@media (min-width: 768px) and (hover: hover) and (pointer: fine) {
  .hero-call:hover { background: #fff; color: var(--brand); border-color: #fff; }
}


/* ---------- Số liệu ---------- */
.stats-wrap { position: relative; z-index: 5; margin-top: 12px; }
@media (min-width: 768px) { .stats-wrap { margin-top: 28px; } }
.stats { display: grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 18px 16px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat:nth-child(2n) { border-right: 0; }
.stat:nth-last-child(-n+2) { border-bottom: 0; }
.stat b { font-size: 50px; font-weight: 800; color: var(--brand); line-height: 1.05; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); line-height: 1.35; }
.stats-flat { box-shadow: none; border: 1px solid var(--line); }

/* ---------- Khối nội dung ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-first { padding-top: 28px; }
.section-soft { background: var(--bg-soft); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sec-head h2 { margin-bottom: 6px; }
.sec-head.center { justify-content: center; text-align: center; }
.sec-head.center .sec-sub { margin-left: auto; margin-right: auto; }
.sec-sub { color: var(--muted); max-width: 640px; margin: 0; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.link-more { display: none; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.link-more .i { width: 18px; }
.mobile-only { display: flex; }

/* Dải cuộn ngang trên điện thoại */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px var(--gutter) 12px; margin: 0 calc(var(--gutter) * -1); scrollbar-width: none; scroll-padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }

/* Thẻ dự án */
.pcard { display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); color: var(--ink); transition: box-shadow .25s, transform .25s; }
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.pcard-media { position: relative; aspect-ratio: 4 / 3; background: var(--bg-soft); overflow: hidden; }
.pcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.pcard:hover .pcard-media img { transform: scale(1.04); }
.pcard-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard-title { font-size: 18px; margin: 0; }
.pcard-loc { display: flex; gap: 6px; font-size: 14px; color: var(--muted); margin: 0; line-height: 1.45; }
.pcard-loc .i { width: 16px; height: 16px; margin-top: 2px; color: var(--brand); }
.pcard-loc span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard-meta { display: flex; gap: 16px; margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; font-weight: 600; }
.pcard-meta span { display: flex; flex-direction: column; min-width: 0; }
.pcard-meta small { font-size: 12px; font-weight: 500; color: var(--muted); }
.pcard-meta b { color: var(--brand); }

.badge { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 99px; font-size: 12px; font-weight: 700; line-height: 1; }
.badge-brand { background: var(--brand); color: #fff; }
.badge-muted { background: rgba(255,255,255,.92); color: var(--ink-2); }
.badge-new { background: #fff; color: var(--brand); box-shadow: inset 0 0 0 1.5px var(--brand); }
.badge-outline { background: var(--brand-soft); color: var(--brand); }

/* Giới thiệu */
.about-split { display: grid; gap: 28px; align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 60%; }
.about-tag { position: absolute; left: 16px; bottom: -16px; right: 16px; background: var(--brand); color: #fff; font-weight: 700; padding: 14px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 15px; }
.about-text { padding-top: 8px; }
.prose { color: var(--ink-2); }
.prose p, .prose ul, .prose ol { margin: 0 0 1em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li { margin-bottom: .4em; }
.prose img { border-radius: 12px; margin: 1.2em 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose h2, .prose h3 { margin-top: 1.4em; }
.prose blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 12px 12px 0; }
.prose-lg { font-size: 17px; line-height: 1.75; }
.prose iframe { width: 100%; aspect-ratio: 16/9; border: 0; border-radius: 12px; }

/* Dịch vụ / quyền lợi */
.grid-3, .grid-2 { display: grid; gap: 14px; }
.feature, .vm { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.feature h3, .vm h3 { margin: 14px 0 6px; }
.feature p, .vm p { color: var(--muted); margin: 0; font-size: 15px; }
.feature-ic { width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.feature-ic .i { width: 24px; height: 24px; }
@media (max-width: 639px) {
  .feature { display: grid; grid-template-columns: 48px 1fr; gap: 2px 14px; padding: 18px; align-items: start; }
  .feature .feature-ic { grid-row: span 2; }
  .feature h3 { margin: 2px 0 2px; font-size: 17px; }
}

/* Kêu gọi tư vấn */
.cta { position: relative; background: var(--brand); color: #fff; overflow: hidden; isolation: isolate; }
.cta::before { content: ''; position: absolute; inset: 0; background-image: var(--cta-img); background-size: cover; background-position: center; opacity: .18; z-index: -1; }
.cta-in { padding-top: 48px; padding-bottom: 48px; display: grid; gap: 20px; }
.cta h2 { color: #fff; }
.cta p { opacity: .9; margin: 0; max-width: 560px; }
.cta-actions { display: grid; gap: 10px; }

/* Tin tức */
.news-layout { display: grid; gap: 16px; }
.news-list { display: grid; gap: 12px; }
.ncard { display: flex; gap: 14px; color: var(--ink); align-items: flex-start; }
.ncard-media { flex: 0 0 116px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--bg-soft); }
.ncard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.ncard:hover .ncard-media img { transform: scale(1.04); }
.ncard-body { min-width: 0; }
.ncard-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin: 0 0 6px; }
.ncard-meta .i { width: 15px; height: 15px; }
.ncard-cat { color: var(--brand); font-weight: 700; }
.ncard-cat::after { content: '•'; margin-left: 8px; color: var(--line); }
.ncard-title { font-size: 16px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ncard:hover .ncard-title { color: var(--brand); }
.ncard-big { flex-direction: column; gap: 12px; }
.ncard-big .ncard-media { flex: none; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); }
.ncard-big .ncard-title { font-size: 19px; }
.ncard-ex { color: var(--muted); font-size: 15px; margin: 8px 0 0; }
.grid-news { display: grid; gap: 28px; }

/* Cảm nhận */
.rail-quotes { grid-auto-columns: 86%; }
.quote { margin: 0; background: #fff; border-radius: var(--radius); padding: 24px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.quote-ic { width: 32px; height: 32px; color: var(--brand-tint); }
.quote blockquote { margin: 12px 0 20px; font-size: 17px; line-height: 1.6; color: var(--ink); flex: 1; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote figcaption img, .avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.avatar { display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 700; }
.quote figcaption span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.quote small { color: var(--muted); }

/* Giải thưởng & Chứng nhận */
.rail-awards { grid-auto-columns: 78%; }
.award { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.award-media { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; padding: 0; border: 0; background: var(--bg-soft); cursor: zoom-in; overflow: hidden; }
.award-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.award:hover .award-media img { transform: scale(1.04); }
.award-type { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 99px; background: #fff; color: var(--brand); font-size: 12px; font-weight: 700; box-shadow: 0 2px 8px rgba(15,27,45,.12); }
.award-type .i { width: 14px; height: 14px; }
.award-type.is-prize { background: var(--brand); color: #fff; }
.award-zoom { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,27,45,.45); color: #fff; }
.award-zoom .i { width: 16px; height: 16px; }
.award-body { padding: 14px 16px 18px; }
.award-body h3 { font-size: 16px; margin: 0 0 4px; line-height: 1.4; }
.award-meta { font-size: 13px; color: var(--brand); font-weight: 600; margin: 0; }
.award-text { font-size: 14px; color: var(--muted); margin: 8px 0 0; }

/* Xem ảnh phóng to */
.zoombox { position: fixed; inset: 0; z-index: 210; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: calc(env(safe-area-inset-top) + 56px) 12px calc(env(safe-area-inset-bottom) + 24px); }
.zoombox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.zoombox .lb-close { position: absolute; }

/* Đối tác */
.partners-h { font-size: 15px; text-align: center; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin-bottom: 20px; }
.partners { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.partner { background: #fff; border: 1px solid var(--line); border-radius: 12px; aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 12px; }
.partner img { max-height: 56px; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- Đầu trang con ---------- */
.phero { position: relative; background: var(--brand-dark); color: #fff; overflow: hidden; isolation: isolate; }
.phero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .32; z-index: -1; }
.phero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--brand-dark) 0%, color-mix(in srgb, var(--brand-dark) 40%, transparent) 100%); z-index: -1; }
.phero-in { padding-top: 32px; padding-bottom: 36px; }
.phero h1 { color: #fff; margin: 10px 0 8px; font-size: clamp(30px, 8vw, 48px); }
.phero p { opacity: .88; margin: 0; max-width: 620px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: rgba(255,255,255,.75); }
.crumbs a { color: rgba(255,255,255,.9); }
.crumbs-dark { color: var(--muted); margin-bottom: 12px; }
.crumbs-dark a { color: var(--muted); }

/* Bộ lọc */
.toolbar { display: grid; gap: 12px; margin-bottom: 12px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 2px var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chips.chips-scroll { margin-bottom: 30px; }
.chip { flex: none; display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 99px; background: var(--bg-soft); color: var(--ink-2); font-weight: 600; font-size: 14px; border: 1px solid var(--line); }
.chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.search { position: relative; display: block; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { padding-left: 44px !important; }
.result-count { font-size: 14px; color: var(--muted); margin: 0 0 16px; }
.grid-projects { display: grid; gap: 16px; }
.empty { text-align: center; padding: 48px 16px; background: var(--bg-soft); border-radius: var(--radius); color: var(--muted); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 32px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; padding: 0 8px; }
.pager span { border: 0; }
.pager a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- Chi tiết dự án ---------- */
.pd-gallery { position: relative; background: var(--ink); }
.pd-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.pd-track::-webkit-scrollbar { display: none; }
.pd-slide { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 4 / 3; max-height: 72vh; border: 0; padding: 0; background: none; }
.pd-slide img { width: 100%; height: 100%; object-fit: cover; }
.pd-count { position: absolute; right: 12px; bottom: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.pd-layout { display: grid; gap: 28px; padding-top: 20px; padding-bottom: 48px; }
.pd-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.pd-title { font-size: clamp(28px, 7vw, 42px); margin-bottom: 8px; }
.pd-loc { display: flex; gap: 8px; color: var(--muted); }
.pd-loc .i { color: var(--brand); margin-top: 3px; width: 18px; height: 18px; }
.pd-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 20px 0 28px; }
.pd-facts > div { background: #fff; padding: 14px 16px; box-shadow: 0 0 0 .5px var(--line); }
.pd-facts .wide { grid-column: 1 / -1; }
.pd-facts dt { font-size: 13px; color: var(--muted); margin-bottom: 2px; }
.pd-facts dd { margin: 0; font-weight: 600; line-height: 1.45; }
.pd-facts .price { color: var(--brand); font-size: 18px; }
.pd-h { font-size: 22px; margin: 32px 0 12px; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs button { border: 0; padding: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: var(--bg-soft); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pd-share { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.card-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.card-form h2 { font-size: 22px; margin-bottom: 6px; }
.side-call { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: var(--ink-2); font-size: 15px; }
.side-call b { color: var(--brand); }

/* Xem ảnh toàn màn hình */
.lightbox { position: fixed; inset: 0; z-index: 200; background: #000; display: none; }
.lightbox.open { display: block; }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; scroll-snap-align: center; display: grid; place-items: center; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
.lb-slide img { max-height: 100%; width: 100%; object-fit: contain; }
.lb-close { position: absolute; top: calc(env(safe-area-inset-top) + 12px); right: 12px; z-index: 2; background: rgba(255,255,255,.15); color: #fff; }

/* ---------- Bài viết ---------- */
.article { padding: 24px 0 56px; }
.article-title { font-size: clamp(26px, 6.6vw, 40px); margin: 6px 0 14px; text-wrap: balance; }
.article-lead { font-size: 18px; color: var(--ink-2); }
.article-cover { width: 100%; border-radius: var(--radius); margin: 12px 0 28px; aspect-ratio: 16 / 9; object-fit: cover; }

/* ---------- Tuyển dụng ---------- */
.path { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s; }
.path li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; position: relative; }
.path-n { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; flex: none; }
.careers-layout { display: grid; gap: 32px; align-items: start; }
.accordion { display: grid; gap: 10px; margin-top: 16px; }
.accordion details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.accordion summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; min-height: 56px; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary span { display: flex; flex-direction: column; }
.accordion summary small { color: var(--muted); font-size: 14px; margin-top: 2px; line-height: 1.45; }
.acc-ic { transition: transform .2s; color: var(--brand); }
.accordion details[open] .acc-ic { transform: rotate(90deg); }
.acc-body { padding: 0 18px 18px; border-top: 1px solid var(--line); }
.acc-body h4 { margin: 16px 0 8px; font-size: 15px; }

/* ---------- Liên hệ ---------- */
.quick-contact { display: grid; gap: 10px; }
.qc { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; color: var(--ink); min-width: 0; }
.qc span:last-child { display: flex; flex-direction: column; min-width: 0; }
.qc small { color: var(--muted); font-size: 13px; }
.qc b { font-size: 17px; overflow: hidden; text-overflow: ellipsis; }
.offices { margin: 16px 0 0; display: grid; gap: 10px; }
.office { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.office[open] { border-color: var(--brand-tint); box-shadow: var(--shadow); }
.office summary { list-style: none; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; cursor: pointer; min-height: 56px; }
.office summary::-webkit-details-marker { display: none; }
.office-pin { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.office[open] .office-pin { background: var(--brand); color: #fff; }
.office-head { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.office-head b { line-height: 1.35; }
.office-head small { color: var(--muted); font-size: 14px; line-height: 1.45; margin-top: 2px; }
.office-tag { align-self: flex-start; font-style: normal; font-size: 11px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 8px; border-radius: 99px; margin-top: 4px; }
.office-chev { width: 18px; height: 18px; color: var(--muted); margin-top: 11px; transition: transform .2s; flex: none; }
.office[open] .office-chev { transform: rotate(90deg); color: var(--brand); }
/* Ảnh văn phòng dạng thu nhỏ bên trái, nút bấm bên phải */
.office-body { padding: 0 16px 16px; display: flex; gap: 12px; align-items: stretch; }
.office-photo { position: relative; display: block; flex: 0 0 152px; aspect-ratio: 16 / 9; align-self: center; padding: 0; border: 0; border-radius: 10px; overflow: hidden; background: var(--bg-soft); cursor: zoom-in; }
.office-photo img { width: 100%; height: 100%; object-fit: cover; }
.office-photo::after { content: ''; position: absolute; right: 6px; bottom: 6px; width: 24px; height: 24px; border-radius: 50%; background: rgba(15,27,45,.55) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.office-actions { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; }
.office-actions .btn { width: 100%; padding: 0 10px; font-size: 13.5px; }
.office-body:not(:has(.office-photo)) .office-actions { flex-direction: row; flex-wrap: wrap; }
.office-body:not(:has(.office-photo)) .office-actions .btn { width: auto; }
@media (min-width: 1024px) { .office-photo { flex-basis: 240px; } .office-actions .btn { width: auto; align-self: flex-start; } }
/* Trang Liên hệ: khối Hotline/Zalo/Email sát khối văn phòng */
.contact-quick { padding-bottom: 0 !important; }
.contact-offices { padding-top: 28px !important; } /* bằng khoảng cách phía trên (section-first) */
@media (min-width: 1024px) { .contact-offices { padding-top: 48px !important; } }
.alert-ok { display: flex; gap: 8px; align-items: center; background: #e8f6ee; color: #146c3a; padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; }

/* ---------- Biểu mẫu ---------- */
.lead-form { display: grid; gap: 14px; margin-top: 16px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.req { color: #d14343; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 16px; /* 16px để iPhone không tự phóng to */
  color: var(--ink); background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; min-height: 50px; outline: none; transition: border-color .2s, background .2s;
  -webkit-appearance: none; appearance: none;
}
select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px; }
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--brand); background: #fff; }
input.invalid { border-color: #d14343; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-size: 14px; font-weight: 600; min-height: 1em; }
.form-msg.ok { color: #146c3a; }
.form-msg.err { color: #d14343; }
.lead-form.done .field, .lead-form.done button { display: none; }
.lead-form.done .form-msg { font-size: 16px; padding: 18px; background: #e8f6ee; border-radius: 12px; }

/* ---------- Chân trang ---------- */
.footer { background: var(--bg-soft); border-top: 1px solid var(--line); padding-top: 44px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 20px; }
.footer-brand { grid-column: 1 / -1; }
.footer-company { font-weight: 700; margin: 14px 0 6px; }
.footer-h { font-size: 15px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.footer-links a, .footer-contact a { color: var(--ink-2); display: inline-flex; align-items: center; min-height: 36px; }
.footer-contact li { display: flex; gap: 8px; align-items: center; min-width: 0; }
.footer-contact a { overflow-wrap: anywhere; }
.footer-contact .i { color: var(--brand); width: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 24px; margin-top: 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer-bottom a { color: var(--muted); }

/* ---------- Thanh liên hệ nhanh dưới cùng (điện thoại) ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px;
  padding: 8px max(12px, env(safe-area-inset-left)) calc(8px + var(--safe-b)) max(12px, env(safe-area-inset-right));
  background: rgba(255,255,255,.94); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
}
.mbar-item { white-space: nowrap; height: 48px; border-radius: 14px; border: 0; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 14px; }
.mbar-item .i { width: 20px; height: 20px; }
.mbar-main { background: var(--brand); color: #fff; grid-column: span 1; }
.to-top { position: fixed; right: 16px; bottom: calc(var(--mbar-h) + var(--safe-b) + 12px); z-index: 55; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transition: opacity .25s; }
.to-top .i { transform: rotate(90deg); }
.to-top.show { opacity: 1; pointer-events: auto; }

/* Bảng trượt đăng ký tư vấn */
.sheet { position: fixed; inset: 0; z-index: 120; visibility: hidden; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(15,27,45,.5); opacity: 0; transition: opacity .25s; }
.sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; overscroll-behavior: contain;
  background: #fff; border-radius: 22px 22px 0 0; padding: 8px 20px calc(var(--safe-b) + 20px);
  transform: translateY(100%); transition: transform .32s cubic-bezier(.2,.8,.2,1);
}
.sheet.open { visibility: visible; }
.sheet.open .sheet-backdrop { opacity: 1; }
.sheet.open .sheet-panel { transform: none; }
.sheet-grab { width: 40px; height: 5px; background: var(--line); border-radius: 99px; margin: 4px auto 8px; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sheet-head h2 { font-size: 22px; margin: 0; }
.sheet-sub { font-size: 14px; margin: 4px 0 0; }

.notfound { padding: 80px 0; }
.nf-code { font-size: 88px; font-weight: 800; color: var(--brand-tint); line-height: 1; margin: 0; }
.row-btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

/* ================= Máy tính bảng ================= */
@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .rail { grid-auto-columns: calc(50% - 8px); }
  .rail-quotes { grid-auto-columns: calc(50% - 8px); }
  .rail-awards { grid-auto-columns: calc(50% - 8px); }
  .grid-projects { grid-template-columns: 1fr 1fr; gap: 20px; }
  .grid-news { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { border-bottom: 0 !important; border-right: 1px solid var(--line) !important; padding: 22px; }
  .stat:last-child { border-right: 0 !important; }
  .partners { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .cta-actions { display: flex; flex-wrap: wrap; }
  .quick-contact { grid-template-columns: repeat(3, 1fr); }
  .thumbs { grid-template-columns: repeat(4, 1fr); }
  .toolbar { grid-template-columns: 1fr 320px; align-items: center; }
  .chips { margin: 0; padding: 2px 0; }
  .path { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

/* ================= Máy tính ================= */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  :root { --header-h: 96px; }
  .mbar { display: none; }
  .to-top { bottom: 24px; }
  .nav { display: flex; gap: 4px; }
  .nav a { padding: 10px 14px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 15px; }
  .nav a:hover { color: var(--brand); background: var(--brand-soft); }
  .nav a.active { color: var(--brand); }
  .header-call { display: inline-flex; }
  .menu-btn { display: none; }
  .header-in { display: flex; justify-content: space-between; gap: 16px; }
  .header-zalo { display: none; }
  .logo img { height: 65px; }
  .topbar-in { justify-content: center; }
  .topbar-text { flex: none; }


  .section { padding: 88px 0; }
  .section-tight { padding: 48px 0; }
  .section-first { padding-top: 48px; }
  .sec-head { margin-bottom: 36px; }
  .link-more { display: inline-flex; }
  .mobile-only { display: none; }

  .rail, .rail-quotes { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 0; gap: 20px; }
  .rail-quotes { grid-template-columns: repeat(3, 1fr); }
  .rail-projects > :nth-child(n+9) { display: none; }
  .rail-awards { grid-template-columns: repeat(3, 1fr); }
  .grid-projects { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .grid-news { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .feature { padding: 28px; }

  .about-split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .about-tag { right: auto; left: 24px; bottom: 24px; max-width: 80%; }
  .cta-in { grid-template-columns: 1.3fr 1fr; align-items: center; padding-top: 72px; padding-bottom: 72px; }
  .cta-actions { justify-content: flex-end; }

  .news-layout { grid-template-columns: 1.25fr 1fr; gap: 32px; }
  .news-list { gap: 20px; }
  .ncard-media { flex-basis: 168px; }
  .ncard-big .ncard-title { font-size: 22px; }

  .phero-in { padding-top: 56px; padding-bottom: 64px; }

  .pd-gallery { max-width: 1200px; margin: 24px auto 0; border-radius: var(--radius); overflow: hidden; }
  .pd-slide { aspect-ratio: 16 / 8; }
  .pd-layout { grid-template-columns: 1fr 380px; gap: 48px; padding-top: 28px; }
  .pd-side { position: sticky; top: calc(var(--header-h) + 20px); }
  .pd-facts { grid-template-columns: repeat(3, 1fr); }

  .careers-layout { grid-template-columns: 1fr 400px; gap: 56px; }
  .careers-layout .card-form { position: sticky; top: calc(var(--header-h) + 20px); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 48px; }
  .sheet-panel { left: 50%; right: auto; bottom: auto; top: 50%; width: 460px; border-radius: 22px; transform: translate(-50%, -45%); opacity: 0; transition: transform .25s, opacity .25s; padding-bottom: 24px; }
  .sheet.open .sheet-panel { transform: translate(-50%, -50%); opacity: 1; }
  .sheet-grab { display: none; }
}

/* =================== Hiệu ứng tương tác =================== */
/* Nhấn trên điện thoại: phản hồi lún nhẹ */
.mbar-item, .chip, .pcard, .ncard, .qc, .office summary, .drawer-nav a, .social a, .icon-btn, .menu-btn, .header-zalo, .pager a, .award-media, .partner { -webkit-tap-highlight-color: transparent; }
.mbar-item:active, .chip:active, .qc:active, .social a:active, .icon-btn:active, .menu-btn:active, .header-zalo:active, .pager a:active { transform: scale(.95); }
.mbar-item, .chip, .qc, .social a, .icon-btn, .menu-btn, .header-zalo, .pager a { transition: transform .15s, background-color .25s, color .25s, border-color .25s, box-shadow .3s; }
.pcard:active, .ncard:active, .award:active { transform: scale(.985); }
.drawer-nav a { transition: padding .25s, color .2s, background-color .2s; }
.drawer-nav a:active { padding-left: 12px; color: var(--brand); }
.drawer-nav a.active { box-shadow: inset 3px 0 0 var(--brand); padding-left: 12px; }

/* Gạch chân menu đang mở (cả khi không rê chuột) */
.nav a { position: relative; }
.nav a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--brand); transform: scaleX(0); transform-origin: center; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
.nav a.active::after { transform: scaleX(1); }

@media (hover: hover) and (pointer: fine) {
  /* Menu header: chữ đổi màu + gạch chân chạy từ giữa ra */
  .nav a { transition: color .25s; }
  .nav a:hover { background: none; color: var(--brand); }
  .nav a:hover::after { transform: scaleX(1); }

  /* Nút chính: nổi lên, đổ bóng màu thương hiệu, vệt sáng lướt qua */
  .btn-primary::after { content: ''; position: absolute; top: 0; bottom: 0; left: -75%; width: 50%; z-index: -1; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .6s ease; pointer-events: none; }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 35%, transparent); }
  .btn-primary:hover::after { left: 125%; }

  /* Nút viền: màu thương hiệu tràn từ trái sang */
  .btn-outline { background-image: linear-gradient(var(--brand), var(--brand)); background-repeat: no-repeat; background-size: 0% 100%; }
  .btn-outline:hover { background-size: 100% 100%; color: #fff; border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 25%, transparent); }

  /* Nút trắng / viền trắng trên nền ảnh */
  .btn-white:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.25); }
  .btn-ghost-white { background-image: linear-gradient(#fff, #fff); background-repeat: no-repeat; background-size: 0% 100%; }
  .btn-ghost-white:hover { background-size: 100% 100%; color: var(--brand); border-color: #fff; transform: translateY(-2px); }

  /* Mũi tên trong nút / liên kết trượt sang phải */
  .btn .i, .link-more .i { transition: transform .3s cubic-bezier(.2,.8,.2,1); }
  .btn:hover .i-arrow, .link-more:hover .i-arrow { transform: translateX(5px); }
  .link-more { position: relative; }
  .link-more::after { content: ''; position: absolute; left: 0; right: 24px; bottom: -3px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .link-more:hover::after { transform: scaleX(1); }
  .topbar-text:hover .topbar-arrow { animation: none; transform: translateX(7px); transition: transform .3s; }
  .topbar-text:hover .topbar-cta { color: #fff; }

  /* Nút gọi trên header: biểu tượng điện thoại rung */
  .header-call:hover .i { animation: ta-ring .6s ease-in-out; }
  @keyframes ta-ring { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-16deg); } 40% { transform: rotate(14deg); } 60% { transform: rotate(-10deg); } 80% { transform: rotate(6deg); } }

  /* Logo: phóng nhẹ */
  .header .logo img { transition: transform .35s cubic-bezier(.2,.8,.2,1); }
  .header .logo:hover img { transform: scale(1.04); }

  /* Thẻ dự án: viền màu, tiêu đề đổi màu, ảnh phóng chậm */
  .pcard { transition: box-shadow .35s, transform .35s cubic-bezier(.2,.8,.2,1), border-color .35s; }
  .pcard:hover { transform: translateY(-6px); border-color: var(--brand-tint); box-shadow: 0 18px 40px color-mix(in srgb, var(--brand) 16%, transparent); }
  .pcard-media img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
  .pcard:hover .pcard-media img { transform: scale(1.07); }
  .pcard-title { transition: color .25s; }
  .pcard:hover .pcard-title { color: var(--brand); }

  /* Thẻ tin tức: ảnh phóng, tiêu đề gạch chân chạy */
  .ncard-media img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
  .ncard:hover .ncard-media img { transform: scale(1.07); }
  .ncard-title { transition: color .25s; }

  /* Thẻ dịch vụ / quyền lợi / tầm nhìn: nổi lên, biểu tượng đổi màu */
  .feature, .vm { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
  .feature:hover, .vm:hover { transform: translateY(-6px); border-color: var(--brand-tint); box-shadow: 0 18px 40px color-mix(in srgb, var(--brand) 14%, transparent); }
  .feature-ic { transition: background-color .3s, color .3s, transform .45s cubic-bezier(.2,.8,.2,1); }
  .feature:hover .feature-ic, .vm:hover .feature-ic, .qc:hover .feature-ic { background: var(--brand); color: #fff; transform: rotate(-8deg) scale(1.08); }

  /* Giải thưởng, cảm nhận, đối tác */
  .award { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s, border-color .35s; }
  .award:hover { transform: translateY(-6px); border-color: var(--brand-tint); box-shadow: 0 18px 40px color-mix(in srgb, var(--brand) 14%, transparent); }
  .award-media img { transition: transform .8s cubic-bezier(.2,.8,.2,1); }
  .award:hover .award-media img { transform: scale(1.07); }
  .award-zoom { transition: transform .3s, background-color .3s; }
  .award:hover .award-zoom { transform: scale(1.12); background: var(--brand); }
  .quote { transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s; }
  .quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
  .partner { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
  .partner:hover { transform: translateY(-4px); border-color: var(--brand-tint); box-shadow: var(--shadow); }

  /* Ô liên hệ nhanh, văn phòng */
  .qc { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
  .qc:hover { transform: translateY(-4px); border-color: var(--brand-tint); box-shadow: var(--shadow-lg); }
  .office summary { transition: background-color .25s; }
  .office:not([open]) summary:hover { background: var(--bg-soft); }
  .office summary:hover .office-chev { transform: translateX(3px); color: var(--brand); }
  .office[open] summary:hover .office-chev { transform: rotate(90deg); }
  .office-photo img { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
  .office-photo:hover img { transform: scale(1.08); }

  /* Bộ lọc, phân trang, mạng xã hội, chân trang */
  .chip:hover:not(.active) { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); transform: translateY(-2px); }
  .pager a:hover:not(.active) { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }
  .social a:hover { background: var(--brand); color: #fff; transform: translateY(-3px); box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 30%, transparent); }
  .social a.social-zalo:hover { background: none; color: #0068ff; box-shadow: none; transform: translateY(-3px) scale(1.06); filter: drop-shadow(0 6px 10px rgba(0,104,255,.35)); }
  .footer-links a { transition: color .2s, transform .25s cubic-bezier(.2,.8,.2,1); }
  .footer-links a:hover { color: var(--brand); transform: translateX(4px); }
  .footer-contact a { transition: color .2s; }
  .footer-contact a:hover { color: var(--brand); }

  /* Nút tròn trên banner, lên đầu trang */
  .to-top { transition: opacity .25s, transform .3s cubic-bezier(.2,.8,.2,1), background-color .25s, color .25s; }
  .to-top:hover { background: var(--brand); color: #fff; transform: translateY(-3px); }
}

/* Nội dung trượt nhẹ từ dưới lên khi cuộn tới (lớp được gắn bằng JavaScript) */
.reveal, .reveal-group > * { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2,.8,.2,1), transform .8s cubic-bezier(.2,.8,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }
.reveal.is-in, .reveal-group.is-in > * { opacity: 1; transform: none; }

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