/* ==========================================================================
   TIẾNG TRUNG HOA THƯ — hệ thống giao diện (bản 2, 09/2026)
   Tông đỏ – trắng kiểu web giáo dục. Phông: Be Vietnam Pro (chữ Việt),
   chữ Hán dùng phông có sẵn trên máy người xem (không tải phông về, cho nhẹ).
   ========================================================================== */

:root {
  --red:        #C8102E;   /* đỏ thương hiệu */
  --red-dark:   #9E0B22;
  --red-deep:   #6E0716;
  --red-soft:   #FDECEE;   /* nền hồng rất nhạt cho khối nhấn */
  --red-line:   #F6C9CF;

  --gold:       #F5B400;
  --gold-soft:  #FFF4D1;

  --white:      #FFFFFF;
  --bg:         #FFFFFF;
  --bg-alt:     #FAF7F7;   /* nền xám ấm cho section xen kẽ */

  --ink:        #1D1D1F;
  --ink-2:      #3D3D42;
  --ink-soft:   #6B6B73;
  --ink-faint:  #9A9AA2;
  --line:       #ECE6E6;

  --ok:         #1B9A4A;
  --ok-soft:    #E7F6EC;
  --bad:        #D93025;
  --bad-soft:   #FDECEA;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 3px rgba(20, 10, 10, .06), 0 1px 2px rgba(20, 10, 10, .04);
  --shadow:    0 6px 22px rgba(110, 7, 22, .08);
  --shadow-lg: 0 18px 50px rgba(110, 7, 22, .14);

  --wrap: 1200px;
  --font: 'Be Vietnam Pro', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-head: 'Roboto', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;   /* tiêu đề: kiểu chữ tối giản */
  --font-zh: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei UI', 'Microsoft YaHei', 'Noto Sans CJK SC', 'Source Han Sans SC', 'Noto Sans SC', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
button, input, select { font: inherit; color: inherit; }
ul { list-style: none; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; font-weight: 700; letter-spacing: 0; color: var(--ink); }
/* Các dòng đóng vai trò tiêu đề nhưng không phải thẻ h1–h4 */
.eyebrow, .brand-text b, .plan-name, .stats b, .promo .kicker, .course-top .lv, .hero .tag, .crumb + h1 { font-family: var(--font-head); }
.eyebrow, .promo .kicker, .course-top .lv, .hero .tag { font-weight: 500; }
.brand-text b, .plan-name, .stats b { font-weight: 700; }
.section-title, .hero h1, .lp-hero h1, .page-head h1 { letter-spacing: .02em; }
/* Tiêu đề viết bằng chữ Hán vẫn dùng phông chữ Hán */
h1.zh, h2.zh, h3.zh, h4.zh { font-family: var(--font-zh); }
.zh { font-family: var(--font-zh); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 900px; }

/* ── Thanh trên cùng ───────────────────────────────────────── */
.topbar { background: var(--red-deep); color: #fff; font-size: 13px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar a { color: #fff; font-weight: 600; }
.topbar a:hover { color: var(--gold-soft); }
.topbar .tb-left { display: flex; gap: 22px; align-items: center; }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }
.topbar .tb-note { opacity: .85; }

/* ── Header ────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 14px rgba(0,0,0,.04);
}
.header-in { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; height: 74px; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand-mark {
  width: 46px; height: 46px; border-radius: 12px; background: var(--red); color: #fff;
  display: grid; place-items: center; font-family: var(--font); font-weight: 800; font-size: 18px; letter-spacing: .02em;
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.14);
}
.brand-text b { display: block; font-size: 17px; font-weight: 800; color: var(--red); letter-spacing: .02em; line-height: 1.15; }
.brand-text span { display: block; font-size: 12px; color: var(--ink-soft); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav > a, .nav .dd > button {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 700; color: var(--ink-2); background: none; border: 0; cursor: pointer;
  text-transform: uppercase; letter-spacing: .01em; white-space: nowrap;
}
.nav > a:hover, .nav .dd > button:hover, .nav .dd:hover > button { color: var(--red); background: var(--red-soft); }
.nav a.active, .nav .dd.active > button { color: var(--red); }
.nav .caret { font-size: 10px; transition: transform .2s; }

.dd { position: relative; }
.dd-menu {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 300px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg);
  padding: 8px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .18s;
}
.dd-menu::before { content: ''; position: absolute; top: -8px; left: 0; right: 0; height: 8px; }
.dd:hover .dd-menu, .dd:focus-within .dd-menu, .dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; }
.dd:hover .caret, .dd.open .caret { transform: rotate(180deg); }
.dd-menu a { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; color: var(--ink); }
.dd-menu a:hover { background: var(--red-soft); color: var(--red-dark); }
.dd-menu .di { width: 34px; height: 34px; border-radius: 9px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex-shrink: 0; font-size: 16px; }
.dd-menu b { display: block; font-size: 14px; font-weight: 700; }
.dd-menu small { display: block; font-size: 12.5px; color: var(--ink-soft); line-height: 1.4; }

.nav .nav-tel { color: var(--red); }
.btn-auth {
  display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--red); color: #fff; font-weight: 700; font-size: 14px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(200,16,46,.28);
}
.btn-auth:hover { background: var(--red-dark); color: #fff; }

.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 20px; cursor: pointer; }

/* ── Nút ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-pill); font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(200,16,46,.28); }
.btn-primary:hover { background: var(--red-dark); color: #fff; }
.btn-ghost { background: #fff; color: var(--red); border-color: var(--red); }
.btn-ghost:hover { background: var(--red-soft); color: var(--red-dark); }
.btn-white { background: #fff; color: var(--red); }
.btn-white:hover { background: var(--gold-soft); color: var(--red-dark); }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-gold { background: var(--gold); color: var(--red-deep); box-shadow: 0 6px 18px rgba(245,180,0,.35); }
.btn-gold:hover { background: #FFC62E; color: var(--red-deep); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ── Section chung ─────────────────────────────────────────── */
.section { padding: 80px 0; }
.section.alt { background: var(--bg-alt); }
.section.tight { padding: 48px 0; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--red); margin-bottom: 10px;
}
.section-title { font-size: clamp(26px, 3.4vw, 36px); text-transform: uppercase; color: var(--red); letter-spacing: .01em; }
.section-title + .bar, .bar { display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--red); margin: 16px auto 0; }
.lead { font-size: 17px; color: var(--ink-soft); margin-top: 14px; }

.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 30px; box-shadow: var(--shadow-sm);
}

/* ── Hero trang chủ ────────────────────────────────────────── */
.hero {
  position: relative; min-height: clamp(520px, 78vh, 760px); display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--red-deep);
}
.hero picture { display: contents; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; }
@media (min-width: 961px) {
  .hero-img { left: 36%; width: 64%; object-position: 78% center; }
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--red-deep) 0%, var(--red-dark) 36%, rgba(158,11,34,.55) 42%, rgba(158,11,34,0) 54%);
}
.hero .wrap { position: relative; z-index: 1; width: 100%; }
.hero-copy { max-width: 520px; padding: 60px 0; }
.hero .tag {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3);
  padding: 6px 14px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.hero h1 { text-transform: uppercase; color: #fff; font-size: clamp(34px, 5vw, 56px); font-weight: 800; margin: 18px 0 16px; line-height: 1.12; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero p.lead { color: rgba(255,255,255,.9); font-size: 18px; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

/* Hero dạng ảnh lật: banner 16:9 hiện trọn vẹn, hai bên lấp bằng chính ảnh đó làm mờ */
.hero.hero-slider { display: block; min-height: 0; background: var(--red-deep); }
.hero.hero-slider::after { display: none; }
.hs-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.hs-track::-webkit-scrollbar { display: none; }
/* Mỗi ảnh lật: ảnh chiếm 64% bên phải (như thiết kế gốc), chữ nằm trên nền đỏ bên trái.
   --hs-w: bề ngang ảnh; --hs-in: đoạn đỏ còn loang vào mép trái ảnh */
.hero-slider { --hs-w: min(64vw, calc(clamp(520px, 78vh, 760px) * 1672 / 941)); --hs-in: 3.5vw; --hs-mask: 3.2%; --hs-edge: .3; --hs-mid: .7; --hs-pad: max(76px, 4.5vw); }
.hs-slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; display: flex; justify-content: flex-end; overflow: hidden; background: var(--red-dark); }
.hs-pic { position: relative; display: block; flex: 0 0 auto; width: var(--hs-w); }
.hs-pic img {
  position: relative; display: block; width: 100%; height: auto; aspect-ratio: 1672 / 941;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--hs-mask));
          mask-image: linear-gradient(90deg, transparent 0, #000 var(--hs-mask));
}
/* Dưới mép trái (đã làm trong dần) của ảnh là bản nhoè của chính nó → nét chuyển dần sang nhoè, không lộ viền */
.hs-pic::before { content: ''; position: absolute; inset: 0; background: inherit; background-size: 100% 100%; transform: scaleX(-1); }
/* Bản lật ngược, làm nhoè của chính ảnh đó nối tiếp sang trái — màu ảnh chảy vào nền đỏ, không còn mép cắt */
.hs-bg { position: absolute; top: 0; bottom: 0; right: var(--hs-w); width: var(--hs-w); background: right center / 100% 100% no-repeat; }
.hs-slide::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; --g: calc(100% - var(--hs-w));
  background: linear-gradient(90deg, var(--red-deep) 0, var(--red-dark) calc(var(--g) * .3), rgba(158,11,34,.92) calc(var(--g) * .55),
    rgba(158,11,34,var(--hs-mid)) calc(var(--g) * .8), rgba(158,11,34,var(--hs-edge)) var(--g), rgba(158,11,34,0) calc(var(--g) + var(--hs-in)));
}
/* Banner có mảng đỏ và chữ sát mép trái: cho đỏ loang sâu hơn vào ảnh */
.hs-deep { --hs-in: 9vw; --hs-mask: 4.5%; --hs-edge: .55; --hs-mid: .86; }
.hs-copy {
  position: absolute; z-index: 1; left: var(--hs-pad); top: 50%; transform: translateY(-50%);
  width: calc(100% - var(--hs-w) - var(--hs-pad) - 12px); max-width: 560px; color: #fff; text-shadow: 0 1px 16px rgba(110,7,22,.6);
}
.hero .hs-title { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .02em; color: #fff; font-size: clamp(23px, 2.2vw, 40px); font-weight: 700; margin: 18px 0 0; line-height: 1.2; }
.hero .hs-title::after { content: ''; display: block; width: 64px; height: 4px; border-radius: 4px; background: var(--gold); margin-top: 18px; }
.hs-copy .lead { margin-top: 16px !important; }
.hero .hs-title em { font-style: normal; color: var(--gold); }
.hero-slider .hs-copy .lead { font-size: clamp(14.5px, 1.05vw, 17.5px); color: rgba(255,255,255,.93); margin: 0; }
.hs-copy .hero-cta { margin-top: 26px; gap: 12px; }
.hs-copy .btn { text-shadow: none; }
@media (max-width: 1500px) { .hs-copy .btn { padding: 11px 18px; font-size: 14px; } .hs-copy .hero-cta { margin-top: 18px; } }
@media (min-width: 1101px) and (max-width: 1400px) { .hs-copy .lead { display: none; } }
/* Màn hình hẹp: ảnh ở trên, chữ ở dưới trên nền đỏ */
@media (max-width: 1100px) {
  .hero.hero-slider { background: var(--red-deep); }
  .hero-slider { --hs-w: 100%; }
  .hs-slide { flex-direction: column; justify-content: flex-start; background: linear-gradient(160deg, var(--red-deep), var(--red-dark)); }
  .hs-bg, .hs-slide::after { display: none; }
  .hs-copy { position: static; transform: none; width: auto; max-width: none; padding: 26px 20px 10px; }
  .hero .hs-title { font-size: clamp(26px, 6.4vw, 38px); }
  .hs-nav { top: calc(100vw * 941 / 3344); width: 36px; height: 36px; font-size: 24px; }
  .hs-prev { left: 8px; } .hs-next { right: 8px; }
}
.hs-nav {
  position: absolute; top: calc(50% - 20px); transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.88); color: var(--red); font-size: 30px; line-height: 1; padding: 0 0 4px; cursor: pointer;
  box-shadow: var(--shadow); transition: background .2s, transform .2s;
}
.hs-nav:hover { background: #fff; transform: translateY(-50%) scale(1.08); }
.hs-prev { left: 18px; } .hs-next { right: 18px; }
.hs-dots { display: flex; justify-content: center; gap: 10px; padding: 14px 0; }
.hs-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: var(--r-pill); background: rgba(255,255,255,.4); cursor: pointer; transition: width .25s, background .25s; }
.hs-dots button[aria-selected="true"] { width: 30px; background: var(--gold); }
.hero-slider + .stats-strip { margin-top: 0; padding-top: 28px; background: linear-gradient(var(--red-deep) 0 82px, transparent 82px); }

/* ── Dải số liệu ───────────────────────────────────────────── */
.stats-strip { position: relative; z-index: 2; margin-top: -54px; }
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line);
}
.stats > div { padding: 26px 20px; text-align: center; border-right: 1px solid var(--line); }
.stats > div:last-child { border-right: 0; }
.stats b { display: block; font-size: 32px; font-weight: 800; color: var(--red); line-height: 1.1; }
.stats span { font-size: 14px; color: var(--ink-soft); font-weight: 500; }

/* ── Vì sao chọn ───────────────────────────────────────────── */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.why-item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 26px;
  transition: border-color .2s, box-shadow .2s, transform .2s; position: relative; overflow: hidden;
}
.why-item::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); transform: scaleY(0); transition: transform .25s; transform-origin: top; }
.why-item:hover { border-color: var(--red-line); box-shadow: var(--shadow); transform: translateY(-3px); }
.why-item:hover::before { transform: none; }
.why-ico { width: 56px; height: 56px; border-radius: 16px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; }
.why-item h3 { font-size: 19px; margin-bottom: 8px; }
.why-item p { color: var(--ink-soft); font-size: 15px; }

/* ── Về chúng tôi (trang chủ) ──────────────────────────────── */
.about {
  display: grid; grid-template-columns: .82fr 1.18fr; background: #fff; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg);
}
.about-lead {
  position: relative; overflow: hidden; color: #fff; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(155deg, var(--red-deep) 0%, var(--red-dark) 55%, var(--red) 100%);
}
.about-lead::after {
  content: '华'; position: absolute; right: -34px; bottom: -70px; font-family: var(--font-zh); font-weight: 700;
  font-size: 300px; line-height: 1; color: rgba(255,255,255,.07); pointer-events: none;
}
.about-lead > * { position: relative; z-index: 1; }
.about-kicker { font-family: var(--font-head); font-weight: 500; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.about-lead h2 { color: #fff; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.12; text-transform: uppercase; letter-spacing: .03em; margin: 14px 0 0; }
.about-rule { display: block; width: 56px; height: 3px; background: var(--gold); border-radius: 3px; margin: 22px 0; }
.about-lead p { font-size: 16.5px; line-height: 1.75; color: rgba(255,255,255,.9); max-width: 380px; }
.about-sign { margin-top: 28px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.2); font-family: var(--font-head); font-weight: 500; letter-spacing: .08em; font-size: 14px; color: rgba(255,255,255,.85); }

.about-list { padding: 22px 48px; display: flex; flex-direction: column; justify-content: center; }
.about-row { display: grid; grid-template-columns: 44px 56px 1fr; gap: 20px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--line); }
.about-row:last-child { border-bottom: 0; }
.about-no { font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .08em; color: var(--red-line); padding-top: 16px; transition: color .25s; }
.about-ico {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; color: var(--red);
  border: 1.5px solid var(--red-line); background: #fff; transition: background .25s, color .25s, border-color .25s;
}
.about-ico svg { width: 26px; height: 26px; }
.about-txt h3 { font-size: 20px; letter-spacing: .01em; margin-bottom: 6px; }
.about-txt p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }
.about-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; font-size: 14.5px; color: var(--red); border-bottom: 1.5px solid var(--red-line); padding-bottom: 2px; transition: gap .2s, border-color .2s; }
.about-link:hover { gap: 11px; border-color: var(--red); }
.about-row:hover .about-ico { background: var(--red); color: #fff; border-color: var(--red); }
.about-row:hover .about-no { color: var(--red); }

@media (max-width: 960px) {
  .about { grid-template-columns: 1fr; }
  .about-lead { padding: 44px 32px; }
  .about-lead p { max-width: none; }
  .about-list { padding: 10px 32px; }
}
@media (max-width: 640px) {
  .about { border-radius: 22px; }
  .about-lead { padding: 36px 24px; }
  .about-lead::after { font-size: 220px; }
  .about-list { padding: 4px 22px; }
  .about-row { grid-template-columns: 48px 1fr; gap: 16px; padding: 24px 0; }
  .about-no { display: none; }
  .about-ico { width: 48px; height: 48px; }
  .about-ico svg { width: 22px; height: 22px; }
  .about-txt h3 { font-size: 18px; }
}

/* ── Khối ưu đãi HSK 3.0 ───────────────────────────────────── */
.promo {
  position: relative; overflow: hidden; border-radius: 28px; color: #fff; padding: 52px 48px;
  background:
    radial-gradient(circle at 92% 8%, rgba(245,180,0,.28), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(255,255,255,.1), transparent 45%),
    linear-gradient(135deg, var(--red) 0%, var(--red-dark) 60%, var(--red-deep) 100%);
  box-shadow: var(--shadow-lg);
}
.promo::after {
  content: '学'; position: absolute; right: -20px; bottom: -80px; font-family: var(--font-zh); font-weight: 700;
  font-size: 360px; line-height: 1; color: rgba(255,255,255,.06); pointer-events: none;
}
.promo > * { position: relative; z-index: 1; }
.promo-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: center; }
.promo .kicker { font-size: 14px; font-weight: 700; letter-spacing: .14em; color: var(--gold); text-transform: uppercase; }
.promo h2 { color: #fff; font-size: clamp(30px, 4vw, 46px); margin: 8px 0 6px; }
.promo h2 small { display: block; font-size: .5em; font-weight: 700; opacity: .92; margin-top: 6px; letter-spacing: .02em; }
.perks { display: grid; gap: 12px; margin-top: 22px; }
.perk { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 15px; }
.perk .tick { width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--red-deep); display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.plan { background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 24px 18px; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.18); }
.plan-name { display: block; font-size: 24px; font-weight: 800; color: var(--red); margin-bottom: 12px; }
.plan-row { font-size: 14.5px; padding: 7px 0; border-top: 1px dashed var(--line); font-weight: 600; color: var(--ink-2); }
.plan-note { margin-top: 10px; font-size: 13px; font-weight: 700; color: #fff; background: var(--red); border-radius: var(--r-pill); padding: 5px 10px; display: inline-block; }
.promo-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 32px; }
.tel-big { display: inline-flex; align-items: center; gap: 10px; color: #fff; font-size: 26px; font-weight: 800; letter-spacing: .02em; }
.tel-big:hover { color: var(--gold-soft); }
.tel-big .ring { width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; font-size: 20px; animation: ring 2.2s infinite; }
@keyframes ring { 0%,100% { box-shadow: 0 0 0 0 rgba(255,255,255,.35); } 50% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } }

/* ── Thẻ học liệu ──────────────────────────────────────────── */
.res {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 28px 24px; color: var(--ink); transition: all .2s; position: relative;
}
.res:hover { border-color: var(--red); box-shadow: var(--shadow); transform: translateY(-4px); color: var(--ink); }
.res .ico { width: 54px; height: 54px; border-radius: 15px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 25px; margin-bottom: 18px; }
.res h3 { font-size: 18.5px; margin-bottom: 6px; }
.res .count { display: inline-block; align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 3px 10px; border-radius: var(--r-pill); margin-bottom: 12px; }
.res p { font-size: 14.5px; color: var(--ink-soft); flex: 1; }
.res .more { margin-top: 18px; font-weight: 700; font-size: 14.5px; color: var(--red); }

/* ── Dải khai giảng ────────────────────────────────────────── */
.cta-band {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: var(--red-soft); border: 1px solid var(--red-line); border-radius: var(--r-lg); padding: 34px 38px;
}
.cta-band h3 { font-size: 24px; color: var(--red-dark); }
.cta-band p { color: var(--ink-2); margin-top: 6px; }

/* ── Đầu trang con ─────────────────────────────────────────── */
.page-head {
  position: relative; overflow: hidden; color: #fff; padding: 54px 0 58px;
  background: linear-gradient(120deg, var(--red-deep) 0%, var(--red-dark) 45%, var(--red) 100%);
}
.page-head::after {
  content: attr(data-zh); position: absolute; right: 3%; top: 50%; transform: translateY(-50%);
  font-family: var(--font-zh); font-weight: 700; font-size: 170px; line-height: 1; color: rgba(255,255,255,.08); pointer-events: none;
}
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.page-head .lead { color: rgba(255,255,255,.88); max-width: 720px; }
.crumb { font-size: 13.5px; margin-bottom: 12px; color: rgba(255,255,255,.75); }
.crumb a { color: #fff; font-weight: 600; }
.crumb a:hover { color: var(--gold-soft); }

/* ── Khóa học ──────────────────────────────────────────────── */
.course { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.course:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.course-top { background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; padding: 22px 24px; }
.course-top .lv { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.course-top h3 { color: #fff; font-size: 23px; margin-top: 4px; }
.course-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.course-body .btn { margin-top: auto; align-self: flex-start; }
.course-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.course-facts .k { color: var(--ink-soft); }
.course-facts .v { font-weight: 700; text-align: right; }
.tag-todo { font-size: 13.5px; background: var(--gold-soft); border: 1px dashed #E0B640; color: #7A5A00; padding: 10px 12px; border-radius: var(--r-sm); }

/* ── Liên hệ ───────────────────────────────────────────────── */
.contact {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; border-radius: 28px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff;
}
.contact-l { padding: 46px 44px; }
.contact-l h2 { font-size: 30px; color: var(--red); text-transform: uppercase; }
.contact-r { background: linear-gradient(145deg, var(--red), var(--red-deep)); color: #fff; padding: 46px 40px; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.contact-r .big-tel { font-size: 34px; font-weight: 800; color: #fff; letter-spacing: .02em; }
.contact-r .big-tel:hover { color: var(--gold-soft); }
.contact-r p { opacity: .9; }
.contact-list { margin-top: 22px; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.contact-list .ci { width: 30px; height: 30px; border-radius: 8px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; flex-shrink: 0; font-size: 14px; }

/* ── Footer ────────────────────────────────────────────────── */
.site-footer { background: #1A0B0E; color: rgba(255,255,255,.72); font-size: 14.5px; border-top: 4px solid var(--red); }
.footer-top { display: flex; align-items: center; gap: 28px; padding: 34px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-top p { flex: 1; max-width: 560px; margin: 0; }
.footer-brand { display: flex; gap: 12px; align-items: center; flex-shrink: 0; }
.footer-brand .brand-text b { color: #fff; }
.footer-brand .brand-text span { color: rgba(255,255,255,.6); }
.footer-grid { display: grid; grid-template-columns: 1.9fr 1fr 1fr 1fr; gap: 40px; padding: 40px 0 44px; }
.site-footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 16px; padding-bottom: 10px; position: relative; }
.site-footer h4::after { content: ''; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; border-radius: 3px; background: var(--red); }
.company-info { display: grid; gap: 9px; }
.company-info > div { display: grid; grid-template-columns: 108px 1fr; gap: 12px; }
.company-info dt { color: rgba(255,255,255,.5); font-size: 13.5px; }
.company-info dd { color: rgba(255,255,255,.9); }
.company-info a { color: #fff; font-weight: 700; }
.footer-links li { margin-bottom: 9px; }
.footer-links a { color: rgba(255,255,255,.72); }
.footer-links a:hover, .company-info a:hover { color: var(--gold); }
.footer-bottom { background: #100608; padding: 18px 0; font-size: 13px; }
.footer-bottom .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding-right: 190px; }
.footer-bottom b { color: #fff; font-weight: 700; }

/* Nút liên hệ nổi: bấm để mở Zalo / Facebook */
.float-contact { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.fc-toggle {
  width: 56px; height: 56px; border-radius: 50%; border: 0; padding: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--red); color: #fff; box-shadow: 0 8px 26px rgba(200,16,46,.4); animation: fc-pulse 2.4s infinite; transition: background .2s, transform .2s;
}
@keyframes fc-pulse { 0%,100% { box-shadow: 0 8px 26px rgba(200,16,46,.4), 0 0 0 0 rgba(200,16,46,.35); } 50% { box-shadow: 0 8px 26px rgba(200,16,46,.4), 0 0 0 12px rgba(200,16,46,0); } }
.fc-toggle:hover { background: var(--red-dark); transform: scale(1.06); }
.fc-toggle > * { grid-area: 1 / 1; transition: opacity .2s, transform .2s; }
.fc-close { font-size: 20px; font-weight: 700; opacity: 0; transform: rotate(-90deg); }
.float-contact.open .fc-toggle { animation: none; background: var(--red-dark); }
.float-contact.open .fc-open { opacity: 0; transform: rotate(90deg); }
.float-contact.open .fc-close { opacity: 1; transform: none; }
.fc-menu { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-right: 4px; visibility: hidden; opacity: 0; transform: translateY(12px); transition: opacity .2s, transform .2s, visibility .2s; }
.float-contact.open .fc-menu { visibility: visible; opacity: 1; transform: none; }
.fc-item { display: flex; align-items: center; gap: 10px; }
.fc-lbl { background: #fff; color: var(--ink); font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: var(--r-pill); box-shadow: var(--shadow); white-space: nowrap; }
.fc-ico { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); transition: transform .2s; }
.fc-item:hover .fc-ico { transform: scale(1.08); }
.fc-zalo .fc-ico { background: #0068FF; font-size: 13px; font-weight: 800; letter-spacing: -.01em; }
.fc-fb .fc-ico { background: #1877F2; }
.fc-tt .fc-ico { background: #111; }

/* ==========================================================================
   TRA TỪ ĐIỂN / LUYỆN TỪ (kiểu bảng từ điển: Hán tự · Pinyin · Nghĩa · Nhập lại)
   ========================================================================== */
.dict { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.dict-tabs { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px 18px 0; }
.tab {
  border: 1px solid var(--line); background: #fff; padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ink-2); transition: all .15s;
}
.tab:hover { border-color: var(--red); color: var(--red); }
.tab.on { background: var(--red); border-color: var(--red); color: #fff; }
.tab b { font-weight: 800; opacity: .75; margin-left: 3px; }

.lesson-bar { margin: 14px 18px 0; padding: 14px 18px; border-radius: var(--r); background: var(--red-soft); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.lesson-bar .no { font-weight: 800; color: #fff; background: var(--red); border-radius: 8px; padding: 3px 10px; font-size: 13px; }
.lesson-bar .t { font-family: var(--font-zh); font-weight: 700; font-size: 18px; color: var(--red-dark); }
.lesson-bar .s { color: var(--ink-soft); font-size: 14px; }

.dict-tools { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-box { position: relative; flex: 1 1 280px; }
.search-box input {
  width: 100%; padding: 11px 14px 11px 40px; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--bg-alt); outline: none; font-size: 14.5px; transition: border-color .15s, background .15s;
}
.search-box input:focus { border-color: var(--red); background: #fff; }
.search-box::before { content: '⌕'; position: absolute; left: 15px; top: 50%; transform: translateY(-52%); font-size: 19px; color: var(--ink-faint); }
.tool {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--ink-2);
}
.tool:hover { border-color: var(--red); color: var(--red); }
.tool.on { background: var(--red-soft); border-color: var(--red-line); color: var(--red-dark); }

.dict-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 18px; font-size: 13.5px; color: var(--ink-soft); }
.score { font-weight: 700; color: var(--ink-2); }
.score .okc { color: var(--ok); } .score .badc { color: var(--bad); }
.pager { display: flex; align-items: center; gap: 6px; }
.pager button { width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: #fff; cursor: pointer; font-weight: 700; }
.pager button:hover:not(:disabled) { border-color: var(--red); color: var(--red); }
.pager button:disabled { opacity: .4; cursor: default; }
.pager select { border: 1px solid var(--line); border-radius: 8px; padding: 5px 6px; background: #fff; }

.dict-scroll { overflow-x: auto; }
table.dt { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 760px; }
.dt th {
  text-align: left; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--red-dark);
  background: #FFF8F8; padding: 12px 12px; border-bottom: 1px solid var(--red-line); white-space: nowrap;
}
.dt th .eye { margin-left: 6px; border: 0; background: none; cursor: pointer; font-size: 15px; vertical-align: -1px; opacity: .75; }
.dt th .eye:hover { opacity: 1; }
.dt td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.dt tr:hover td { background: #FFFBFB; }
.dt .c-no { width: 50px; color: var(--ink-faint); font-size: 13px; text-align: center; }
.dt .c-sp { width: 44px; }
.dt .c-hz { width: 20%; }
.dt .c-py { width: 20%; }
.dt .c-in { width: 26%; }
.cell {
  border-radius: 10px; background: var(--bg-alt); padding: 8px 12px; min-height: 42px; display: flex; align-items: center;
  transition: filter .2s, background .2s;
}
.c-hz .cell { font-family: var(--font-zh); font-size: 22px; font-weight: 500; color: var(--ink); justify-content: center; text-align: center; line-height: 1.35; }
.c-py .cell { color: var(--red-dark); font-weight: 600; font-size: 15px; justify-content: center; text-align: center; }
.c-vi .cell { font-size: 14.5px; color: var(--ink-2); flex-direction: column; align-items: flex-start; justify-content: center; }
.c-vi .cell small { color: var(--ink-faint); font-size: 12.5px; }
.dt.sentences .c-hz .cell { font-size: 18px; justify-content: flex-start; text-align: left; }
.dt.sentences .c-py .cell { justify-content: flex-start; text-align: left; font-size: 14px; }
/* Ẩn cột: làm mờ, bấm vào ô để xem nhanh */
.dt.hide-hz .c-hz .cell, .dt.hide-py .c-py .cell, .dt.hide-vi .c-vi .cell { filter: blur(7px); cursor: pointer; user-select: none; }
.dt .cell.peek { filter: none !important; }

.speak {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--red-line); background: #fff; color: var(--red);
  cursor: pointer; display: grid; place-items: center; font-size: 13px; transition: all .15s;
}
.speak:hover, .speak.playing { background: var(--red); color: #fff; border-color: var(--red); }

.type-in { position: relative; }
.type-in input {
  width: 100%; padding: 10px 38px 10px 12px; border: 1.5px dashed var(--red-line); border-radius: 10px;
  font-family: var(--font-zh); font-size: 18px; outline: none; background: #fff; transition: all .15s;
}
.type-in input::placeholder { font-family: var(--font); font-size: 13px; color: var(--ink-faint); }
.type-in input:focus { border-style: solid; border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.1); }
.type-in.ok input { border: 1.5px solid var(--ok); background: var(--ok-soft); }
.type-in.bad input { border: 1.5px solid var(--bad); background: var(--bad-soft); }
.type-in .mark { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-weight: 800; font-size: 16px; }
.type-in.ok .mark { color: var(--ok); } .type-in.bad .mark { color: var(--bad); }
.type-in .ans { display: none; font-size: 12.5px; color: var(--bad); margin-top: 4px; }
.type-in.bad .ans { display: block; }
.type-in .ans b { font-family: var(--font-zh); font-size: 15px; }

.dt tr.ex-row td { padding: 0 12px 12px; border-bottom: 1px solid var(--line); }
.dt tr.ex-row:hover td { background: none; }
.dt tr:has(+ tr.ex-row) td { border-bottom: 0; }
.ex-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.ex-item { display: flex; gap: 10px; align-items: flex-start; background: var(--gold-soft); border-radius: 10px; padding: 9px 12px; }
.ex-item .speak { width: 28px; height: 28px; font-size: 11px; flex-shrink: 0; }
.ex-zh { font-size: 17px; line-height: 1.4; }
.ex-py { font-size: 13px; color: var(--red-dark); font-weight: 600; }
.ex-vi { font-size: 13.5px; color: var(--ink-soft); }
.empty-state { text-align: center; padding: 50px 20px; color: var(--ink-soft); }
.dict-foot { display: flex; justify-content: center; padding: 16px; }
.hint { font-size: 13.5px; color: var(--ink-soft); background: var(--gold-soft); border-radius: var(--r); padding: 12px 16px; margin-bottom: 18px; display: flex; gap: 10px; }

/* ==========================================================================
   PINYIN
   ========================================================================== */
.studycli {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  background: linear-gradient(135deg, var(--red), var(--red-dark)); color: #fff; padding: 28px 32px; border-radius: var(--r-lg);
  box-shadow: var(--shadow);
}
.studycli .big { font-size: 44px; }
.studycli h3 { color: #fff; font-size: 21px; }
.studycli p { opacity: .9; font-size: 15px; margin-top: 4px; }

.py-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.py { border-collapse: collapse; font-size: 13px; min-width: 1400px; }
.py th, .py td { border: 1px solid var(--line); padding: 0; text-align: center; }
.py thead th { background: var(--red); color: #fff; padding: 8px 6px; position: sticky; top: 0; font-weight: 700; }
.py tbody th { background: #FFF1F2; color: var(--red-dark); font-weight: 800; padding: 6px 10px; position: sticky; left: 0; }
.py a.syl { display: block; padding: 7px 5px; color: var(--ink); font-weight: 500; }
.py a.syl:hover { background: var(--red); color: #fff; }
.py td.empty { background: repeating-linear-gradient(45deg, #fafafa, #fafafa 4px, #f1f1f1 4px, #f1f1f1 8px); }

.tips { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.tip { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.tip h4 { font-size: 17px; margin-bottom: 12px; color: var(--red-dark); display: flex; gap: 10px; align-items: center; }
.tip h4 .n { width: 28px; height: 28px; border-radius: 8px; background: var(--red); color: #fff; display: grid; place-items: center; font-size: 14px; flex-shrink: 0; }
.tip ul { display: grid; gap: 9px; }
.tip li { display: grid; grid-template-columns: 88px 1fr; gap: 12px; font-size: 14.5px; align-items: baseline; }
.tip li .k { font-weight: 800; color: var(--red); font-size: 15.5px; }
.tip li .eg { display: block; font-size: 13px; color: var(--ink-faint); }
.tip.wide { grid-column: 1 / -1; }
.memo { background: var(--gold-soft); border-left: 4px solid var(--gold); padding: 12px 16px; border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 14.5px; margin-top: 14px; }
.tones { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.tone { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px 16px; text-align: center; }
.tone .mk { font-size: 34px; font-weight: 800; color: var(--red); line-height: 1.1; }
.tone .nm { font-weight: 700; margin: 6px 0 8px; }
.tone svg { width: 100%; height: 46px; margin: 4px 0 10px; }
.tone p { font-size: 13.5px; color: var(--ink-soft); }
.tone .eg { margin-top: 10px; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.refs { font-size: 14px; color: var(--ink-soft); }
.refs li { padding: 6px 0; border-bottom: 1px dashed var(--line); }

/* ==========================================================================
   LANDING KHAI GIẢNG
   ========================================================================== */
.lp-hero { position: relative; color: #fff; overflow: hidden; background: linear-gradient(125deg, var(--red-deep), var(--red) 70%); padding: 70px 0 90px; }
.lp-hero::after { content: '开课'; position: absolute; right: 2%; bottom: -40px; font-family: var(--font-zh); font-weight: 700; font-size: 240px; color: rgba(255,255,255,.07); line-height: 1; }
.lp-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.lp-hero h1 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); margin: 16px 0; }
.lp-hero h1 em { font-style: normal; color: var(--gold); }
.lp-hero .lead { color: rgba(255,255,255,.9); }
.countdown { display: flex; gap: 12px; margin-top: 26px; }
.countdown div { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: 14px; padding: 12px 8px; min-width: 76px; text-align: center; }
.countdown b { display: block; font-size: 30px; font-weight: 800; line-height: 1.1; }
.countdown span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .85; }
.lp-form { background: #fff; color: var(--ink); border-radius: 24px; padding: 30px; box-shadow: 0 24px 60px rgba(0,0,0,.25); }
.lp-form h3 { font-size: 22px; color: var(--red); text-align: center; }
.lp-form .sub { text-align: center; font-size: 14px; color: var(--ink-soft); margin: 4px 0 18px; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 5px; color: var(--ink-2); }
.field input, .field select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-alt); outline: none; font-size: 15px; }
.field input:focus, .field select:focus { border-color: var(--red); background: #fff; }
.lp-form .btn { width: 100%; margin-top: 6px; }
.form-done { display: none; text-align: center; }
.form-done.show { display: block; }
.form-done .big { font-size: 46px; }
.sched { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.sched th { background: var(--red); color: #fff; text-align: left; padding: 14px 16px; font-size: 14px; }
.sched td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.sched tr:last-child td { border-bottom: 0; }
.sched .badge { display: inline-block; background: var(--gold-soft); color: #7A5A00; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: st; }
.step { text-align: center; padding: 10px; }
.step::before { counter-increment: st; content: counter(st); width: 54px; height: 54px; margin: 0 auto 14px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 22px; box-shadow: 0 0 0 8px var(--red-soft); }
.step h4 { font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14px; color: var(--ink-soft); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px 20px; margin-bottom: 12px; }
.faq summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: '+'; color: var(--red); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin-top: 10px; color: var(--ink-soft); font-size: 15px; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .nav > a, .nav .dd > button { padding: 10px 10px; font-size: 13.5px; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-company { grid-column: 1 / -1; }
  .tones { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .burger { display: block; }
  .site-header { backdrop-filter: none; background: #fff; }
  .nav {
    position: fixed; top: 74px; left: 0; right: 0; bottom: 0; background: #fff; flex-direction: column; align-items: stretch;
    padding: 14px 20px 30px; gap: 4px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; margin: 0;
  }
  .nav.open { transform: none; }
  .nav > a, .nav .dd > button { width: 100%; justify-content: space-between; padding: 14px 12px; font-size: 15px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .dd-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 8px; display: none; min-width: 0; }
  .dd.open .dd-menu { display: block; }
  .dd:hover .dd-menu { opacity: 1; }
  .header-in .btn-auth { display: none; }
  .nav .btn-auth-m { display: flex !important; justify-content: center; margin-top: 12px; }
  .g3, .why { grid-template-columns: 1fr 1fr; }
  .promo-grid, .lp-grid, .contact { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:nth-child(2) { border-right: 0; }
  .stats > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr 1fr; }
  .tips { grid-template-columns: 1fr; }
  .studycli { grid-template-columns: 1fr; text-align: center; }
  .cta-band { grid-template-columns: 1fr; text-align: center; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; background: linear-gradient(160deg, var(--red-deep), var(--red-dark)); }
  .hero-img { position: relative; height: clamp(230px, 48vw, 420px); object-position: 72% center; }
  .hero::after { display: none; }
  .hero-copy { max-width: none; padding: 34px 0 86px; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .topbar .tb-note, .topbar .tb-hide { display: none; }
  .header-in { height: 64px; }
  .nav { top: 64px; }
  .brand-mark { width: 40px; height: 40px; font-size: 16px; }
  .brand-text b { font-size: 15px; }
  .section { padding: 56px 0; }
  .g2, .g3, .g4, .why, .plans, .steps { grid-template-columns: 1fr; }
  .promo { padding: 36px 22px; border-radius: 22px; }
  .contact-l, .contact-r { padding: 32px 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .footer-bottom .wrap { padding-right: 20px; padding-bottom: 60px; }
  .company-info > div { grid-template-columns: 96px 1fr; }
  .tones { grid-template-columns: 1fr 1fr; }
  .tip li { grid-template-columns: 70px 1fr; }
  .countdown div { min-width: 64px; }
  .lp-form { padding: 22px; }
  .page-head::after { font-size: 110px; }
}
.nav .btn-auth-m { display: none; }

/* ── Chuyển trang mượt (Chrome, Edge, Safari 18+): trang mới hiện dần, thanh menu đứng yên ── */
@view-transition { navigation: auto; }
.topbar { view-transition-name: thanh-tren; }
.site-header { view-transition-name: thanh-menu; }
::view-transition-old(root) { animation: vt-ra .16s ease-in both; }
::view-transition-new(root) { animation: vt-vao .24s ease-out both; }
@keyframes vt-ra { to { opacity: 0; } }
@keyframes vt-vao { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}

/* Màn hình máy tính hẹp (961–1240px): thu gọn thanh menu để không tràn ngang */
@media (min-width: 961px) and (max-width: 1240px) {
  .header-in { gap: 12px; }
  .brand-text span { display: none; }
  .nav .nav-tel { display: none; }
  .btn-auth { padding: 9px 14px; }
}
@media (min-width: 961px) and (max-width: 1040px) {
  .nav > a, .nav .dd > button { padding: 9px 7px; font-size: 13px; }
  .brand-text b { font-size: 15px; }
}
