/* ==========================================================================
   TRUNG TÂM ĐÀO TẠO LÁI XE HƯNG THỊNH – STYLE
   Mobile-first. Đổi màu toàn site: sửa biến trong :root.
   ========================================================================== */

:root {
  /* Màu thương hiệu */
  --navy-900: #06214a;
  --navy-800: #082c62;
  --navy-700: #0a3a80;   /* xanh dương đậm chủ đạo */
  --navy-600: #124ea6;
  --navy-100: #e6eefb;
  --navy-50:  #f3f7fd;

  --accent:      #ffb400; /* vàng cam – nút CTA chính */
  --accent-dark: #e89f00;
  --call:        #e2381b; /* đỏ cam – nút gọi */
  --call-dark:   #c72d12;
  --zalo:        #0068ff; /* xanh Zalo */
  --zalo-dark:   #0055d4;

  --text:       #152033;
  --text-muted: #56627a;
  --line:       #dfe6f1;
  --white:      #fff;

  --radius:    14px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(8, 44, 98, .08);
  --shadow:    0 10px 30px rgba(8, 44, 98, .12);

  --header-h: 64px;
  --mbar-h:   64px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* ---------- Reset gọn ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  /* chừa chỗ cho thanh nút nổi mobile → không che footer */
  padding-bottom: calc(var(--mbar-h) + env(safe-area-inset-bottom, 0px));
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-600); }
h1, h2, h3 { line-height: 1.25; margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
section[id], [id="dang-ky"] { scroll-margin-top: calc(var(--header-h) + 8px); }

.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.ic--zalo { width: 1.5em; height: 1.5em; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 820px; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 200;
  background: var(--navy-700); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* ==========================================================================
   NÚT (BUTTONS)
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px;
  border: 2px solid transparent; border-radius: 12px;
  font-weight: 700; font-size: 15px; letter-spacing: .2px; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--sm { min-height: 42px; padding: 8px 16px; font-size: 14px; }
.btn--lg { min-height: 54px; padding: 14px 26px; font-size: 16px; }
.btn--block { display: flex; width: 100%; }

.btn--primary { background: var(--accent); color: var(--navy-900); box-shadow: 0 6px 16px rgba(255, 180, 0, .35); }
.btn--primary:hover { background: var(--accent-dark); }
.btn--call { background: var(--call); color: #fff; box-shadow: 0 6px 16px rgba(226, 56, 27, .3); }
.btn--call:hover { background: var(--call-dark); }
.btn--zalo { background: var(--zalo); color: #fff; box-shadow: 0 6px 16px rgba(0, 104, 255, .3); }
.btn--zalo:hover { background: var(--zalo-dark); }
.btn--outline { background: transparent; color: var(--navy-700); border-color: var(--navy-700); }
.btn--outline:hover { background: var(--navy-700); color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy-700); min-width: 0; }
.logo__mark {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 11px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy-600), var(--navy-800)); color: var(--accent);
}
.logo__mark svg { width: 26px; height: 26px; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.logo__small { font-size: 10.5px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; }
.logo__name { font-size: 19px; font-weight: 800; letter-spacing: .5px; white-space: nowrap; }
.logo--light { color: #fff; }
.logo--light .logo__small { color: rgba(255, 255, 255, .7); }

.header__actions { display: flex; align-items: center; gap: 8px; }
.header__hotline { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--navy-700); }
.header__hotline-icon {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--call); color: #fff;
}
.header__hotline-text { display: none; flex-direction: column; line-height: 1.15; }
.header__hotline-text small { font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: .5px; }
.header__hotline-text strong { font-size: 17px; color: var(--call); white-space: nowrap; }
.header__cta { display: none; }

/* Hamburger */
.burger {
  width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--navy-50);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; cursor: pointer;
}
.burger span { width: 22px; height: 2.5px; border-radius: 2px; background: var(--navy-700); transition: transform .2s ease, opacity .2s ease; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Menu – mobile dạng thả xuống */
.nav {
  position: fixed; left: 0; right: 0; top: var(--header-h);
  max-height: calc(100vh - var(--header-h)); max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  background: #fff; border-top: 1px solid var(--line); box-shadow: var(--shadow);
  padding: 8px 16px 20px;
  transform: translateY(-8px); opacity: 0; visibility: hidden;
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.nav.is-open { transform: none; opacity: 1; visibility: visible; }
.nav__list a {
  display: block; padding: 13px 4px; border-bottom: 1px solid var(--line);
  font-weight: 600; color: var(--text); text-decoration: none;
}
.nav__list a:hover { color: var(--navy-600); }
.nav__mobile-cta { display: grid; gap: 10px; margin-top: 16px; }
body.menu-open { overflow: hidden; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(18, 78, 166, .9), transparent 60%),
    linear-gradient(160deg, var(--navy-700) 0%, var(--navy-900) 100%);
}
.hero::after { /* vạch kẻ đường trang trí */
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 40px, transparent 40px 70px);
  opacity: .9;
}
.hero__inner { display: grid; gap: 28px; padding-top: 28px; padding-bottom: 36px; }
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
  font-size: 13px; font-weight: 600; margin-bottom: 14px;
}
.hero__title { font-size: 27px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; }
.hero__title span { color: var(--accent); display: block; }
.hero__headline { margin-top: 12px; font-size: 18px; font-weight: 700; color: #fff; }
.hero__desc { margin-top: 10px; font-size: 15.5px; color: rgba(255, 255, 255, .85); max-width: 560px; }

.hero__hotline {
  margin-top: 18px; display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 18px 10px 10px; border-radius: 14px;
  background: #fff; color: var(--navy-800); text-decoration: none; box-shadow: var(--shadow);
}
.hero__hotline-icon {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--call); color: #fff; font-size: 20px;
  animation: ring 2.6s ease-in-out infinite;
}
.hero__hotline small { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .6px; color: var(--text-muted); }
.hero__hotline strong { display: block; font-size: 24px; line-height: 1.15; color: var(--call); letter-spacing: .5px; }

.hero__ctas { margin-top: 20px; display: grid; gap: 10px; }
.hero__media img { width: 100%; max-width: 560px; margin: 0 auto; border-radius: 18px; }

/* ==========================================================================
   THANH UY TÍN
   ========================================================================== */
.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust__list {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 22px 0;
}
.trust__list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--navy-800);
}
.trust__list li:last-child { grid-column: 1 / -1; }
.trust__icon {
  width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px;
  display: grid; place-items: center; background: var(--navy-100); color: var(--navy-700);
}
.trust__icon svg { width: 22px; height: 22px; }

/* ==========================================================================
   SECTION CHUNG
   ========================================================================== */
.section { padding: 56px 0; }
.section--tint { background: var(--navy-50); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto 32px; }
.section__eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--navy-600); margin-bottom: 8px;
}
.section__eyebrow--light { color: var(--accent); }
.section__title { font-size: 25px; font-weight: 800; text-transform: uppercase; color: var(--navy-800); }
.section__title::after {
  content: ""; display: block; width: 56px; height: 4px; border-radius: 2px;
  background: var(--accent); margin: 12px auto 0;
}
.section__title--light { color: #fff; }
.section__desc { margin-top: 12px; color: var(--text-muted); }

/* ==========================================================================
   KHÓA HỌC – mobile: vuốt ngang; desktop: lưới card
   ========================================================================== */
.courses {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding: 4px 16px 16px; margin: 0 -16px; scroll-padding: 0 16px;
  scrollbar-width: none;
}
.courses::-webkit-scrollbar { display: none; }
.courses__hint { text-align: center; font-size: 13px; color: var(--text-muted); margin-top: 4px; }

.course {
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--navy-700);
}
.course--other { border-top-color: var(--accent); background: linear-gradient(180deg, #fffaf0, #fff 40%); }
.course__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 14px; }
.course__icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--navy-700); color: #fff;
}
.course__icon svg { width: 28px; height: 28px; }
.course__tag {
  font-size: 12px; font-weight: 700; color: var(--navy-700);
  background: var(--navy-100); padding: 5px 10px; border-radius: 999px; text-align: right;
}
.course__title { font-size: 19px; font-weight: 800; color: var(--navy-800); margin-bottom: 14px; }
.course__list { display: grid; gap: 9px; margin-bottom: 16px; }
.course__list li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.course__list .ic { color: #16a34a; margin-top: 3px; }
.course__text { color: var(--text-muted); margin-bottom: 16px; font-size: 15px; }
.course__note {
  margin-top: auto; margin-bottom: 14px; padding: 10px 12px; border-radius: var(--radius-sm);
  background: var(--navy-50); font-size: 13.5px; font-weight: 600; color: var(--navy-700);
}

/* ==========================================================================
   LÝ DO
   ========================================================================== */
.reasons { display: grid; gap: 14px; }
.reason {
  display: grid; grid-template-columns: 52px 1fr; column-gap: 14px; row-gap: 4px; align-items: start;
  background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.reason__icon {
  grid-row: span 2; width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, var(--navy-600), var(--navy-800)); color: var(--accent);
}
.reason__icon svg { width: 26px; height: 26px; }
.reason h3 { font-size: 17px; font-weight: 700; color: var(--navy-800); }
.reason p { font-size: 15px; color: var(--text-muted); }

/* ==========================================================================
   QUY TRÌNH – mobile: timeline dọc; desktop: ngang
   ========================================================================== */
.steps { position: relative; display: grid; gap: 22px; counter-reset: s; }
.step:not(:last-child)::before { /* đường nối dọc giữa các bước */
  content: ""; position: absolute; left: 25px; top: 52px; bottom: -22px; width: 3px;
  background: repeating-linear-gradient(180deg, var(--navy-600) 0 8px, transparent 8px 14px);
}
.step { position: relative; display: flex; gap: 16px; align-items: flex-start; }
.step__num {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800; color: var(--navy-900); background: var(--accent);
  box-shadow: 0 0 0 6px #fff, 0 6px 14px rgba(255, 180, 0, .4);
}
.step__body {
  flex: 1; background: var(--navy-50); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
}
.step__body h3 { font-size: 17px; font-weight: 700; color: var(--navy-800); margin-bottom: 4px; }
.step__body p { font-size: 15px; color: var(--text-muted); }
.steps__cta { text-align: center; margin-top: 30px; }
.steps__cta .btn { width: 100%; max-width: 420px; }

/* ==========================================================================
   FORM
   ========================================================================== */
.section--form {
  background:
    radial-gradient(700px 400px at 0% 0%, rgba(18, 78, 166, .8), transparent 60%),
    linear-gradient(160deg, var(--navy-700), var(--navy-900));
  color: #fff;
}
.form-wrap { display: grid; gap: 26px; }
.form-intro .section__title { text-align: left; }
.form-intro .section__title::after { margin-left: 0; }
.form-intro__desc { margin-top: 12px; font-size: 16px; color: rgba(255, 255, 255, .88); }
.form-intro__list { display: grid; gap: 8px; margin-top: 16px; }
.form-intro__list li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.form-intro__list .ic { color: var(--accent); }
.form-intro__alt { margin-top: 16px; color: rgba(255, 255, 255, .85); }
.form-intro__alt a { color: var(--accent); font-weight: 700; white-space: nowrap; }

.form-card {
  background: #fff; color: var(--text); border-radius: 18px;
  padding: 22px 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
}
.lead-form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field-row { display: grid; gap: 14px; }
.field label { font-size: 14.5px; font-weight: 600; color: var(--navy-800); }
.req { color: var(--call); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font-size: 16px; /* ≥16px để iPhone không tự zoom */
  background: #fff; border: 1.5px solid #c9d4e5; border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
  -webkit-appearance: none; appearance: none;
}
.field select {
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230a3a80' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy-600); box-shadow: 0 0 0 4px rgba(18, 78, 166, .15);
}
.field.has-error input { border-color: var(--call); box-shadow: 0 0 0 4px rgba(226, 56, 27, .12); }
.field__error { font-size: 13.5px; color: var(--call); font-weight: 500; min-height: 0; }
.field__error:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

#submitBtn { margin-top: 4px; }
.btn__spinner {
  display: none; width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid rgba(6, 33, 74, .25); border-top-color: var(--navy-900);
  animation: spin .8s linear infinite;
}
#submitBtn.is-loading .btn__spinner { display: inline-block; }
#submitBtn.is-loading { pointer-events: none; opacity: .85; }
.form-privacy { font-size: 13px; color: var(--text-muted); text-align: center; }
.form-status { font-size: 14px; text-align: center; color: var(--call); font-weight: 600; }
.form-status:empty { display: none; }

.form-success { text-align: center; padding: 24px 6px; }
.form-success:focus { outline: none; }
.form-success__icon {
  width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center; background: #dcfce7; color: #16a34a;
}
.form-success__icon svg { width: 38px; height: 38px; }
.form-success h3 { font-size: 22px; color: var(--navy-800); margin-bottom: 8px; }
.form-success p { color: var(--text-muted); font-size: 16px; }
.form-success__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }

/* ==========================================================================
   GALLERY
   ========================================================================== */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gallery__item {
  position: relative; margin: 0; border-radius: 12px; overflow: hidden;
  background: var(--navy-100); aspect-ratio: 4 / 3;
}
.gallery__item--wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.gallery__item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 18px 10px 8px; font-size: 13px; font-weight: 600; color: #fff;
  background: linear-gradient(transparent, rgba(6, 33, 74, .85));
}

/* ==========================================================================
   ĐÁNH GIÁ
   ========================================================================== */
.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 16px 16px; margin: 0 -16px; scroll-padding: 0 16px;
  scrollbar-width: none;
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  scroll-snap-align: start; margin: 0; position: relative;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
}
.review__quote { width: 34px; height: 34px; color: var(--accent); }
.review blockquote { margin: 0; font-size: 16px; color: var(--text); font-style: italic; flex: 1; }
.review figcaption { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 14px; }
.review__avatar {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-700); color: #fff; font-weight: 700; font-size: 14px; flex-shrink: 0;
}
.review figcaption strong { display: block; color: var(--navy-800); }
.review figcaption small { color: var(--text-muted); font-size: 13px; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: grid; gap: 12px; }
.faq__item {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; -webkit-tap-highlight-color: transparent;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary h3 { font-size: 16px; font-weight: 700; color: var(--navy-800); }
.faq__item summary::after {
  content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; font-weight: 600; line-height: 1;
  background: var(--navy-100); color: var(--navy-700); transition: transform .2s ease;
}
.faq__item[open] summary::after { content: "−"; background: var(--navy-700); color: #fff; }
.faq__item[open] summary { border-bottom: 1px solid var(--line); }
.faq__answer { padding: 14px 18px 18px; color: var(--text-muted); }
.faq__answer a { font-weight: 700; }

/* ==========================================================================
   CTA CUỐI
   ========================================================================== */
.final-cta {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  padding: 56px 0;
}
.final-cta::before {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(rgba(255, 180, 0, .25), transparent 70%);
}
.final-cta__inner { position: relative; }
.final-cta h2 { font-size: 26px; font-weight: 800; text-transform: uppercase; }
.final-cta p { margin-top: 10px; color: rgba(255, 255, 255, .85); font-size: 16px; }
.final-cta__hotline {
  display: inline-block; margin-top: 18px; color: #fff; text-decoration: none; font-size: 18px;
}
.final-cta__hotline strong { color: var(--accent); font-size: 28px; letter-spacing: .5px; white-space: nowrap; }
.final-cta__btns { display: grid; gap: 12px; margin: 22px auto 0; max-width: 520px; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .8); font-size: 15px; }
.footer__grid { display: grid; gap: 28px; padding-top: 44px; padding-bottom: 32px; }
.footer__name { margin-top: 14px; font-weight: 700; color: #fff; font-size: 14px; letter-spacing: .3px; }
.footer__title { font-size: 15px; font-weight: 700; color: #fff; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.footer__contact { display: grid; gap: 10px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.footer__contact .ic { margin-top: 3px; color: var(--accent); }
.footer__contact .ic--zalo-outline { width: 1.3em; height: 1.3em; margin-top: 1px; color: #fff; }
.footer__contact span { min-width: 0; overflow-wrap: anywhere; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--accent); }
.footer__links { display: grid; gap: 8px; }
.footer__bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0; font-size: 13.5px; text-align: center; color: rgba(255, 255, 255, .6); }

/* ==========================================================================
   NÚT NỔI MOBILE
   ========================================================================== */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97); box-shadow: 0 -4px 20px rgba(8, 44, 98, .15);
  transition: transform .25s ease;
}
.mbar.is-hidden { transform: translateY(110%); }
.mbar__btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 6px 8px; border-radius: 12px; min-width: 0;
  color: #fff; text-decoration: none; -webkit-tap-highlight-color: transparent;
}
.mbar__btn--call { background: var(--call); animation: pulse 2.4s ease-out infinite; }
.mbar__btn--zalo { background: var(--zalo); }
.mbar__icon { display: grid; place-items: center; flex-shrink: 0; }
.mbar__btn--call .mbar__icon { animation: ring 2.6s ease-in-out infinite; }
.mbar__btn--call .ic { width: 22px; height: 22px; }
.mbar__btn--zalo .ic { width: 30px; height: 30px; }
.mbar__text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.mbar__text strong { font-size: 15px; font-weight: 800; letter-spacing: .3px; white-space: nowrap; }
.mbar__text small { font-size: 12px; font-weight: 600; opacity: .92; white-space: nowrap; }

/* ==========================================================================
   NÚT NỔI DESKTOP (ẩn trên mobile)
   ========================================================================== */
.dfloat { display: none; }

/* ==========================================================================
   ANIMATION (nhẹ, chỉ transform/opacity/box-shadow)
   ========================================================================== */
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(226, 56, 27, .45); }
  70%  { box-shadow: 0 0 0 10px rgba(226, 56, 27, 0); }
  100% { box-shadow: 0 0 0 0 rgba(226, 56, 27, 0); }
}
@keyframes ring {
  0%, 70%, 100% { transform: rotate(0); }
  74% { transform: rotate(-14deg); }
  78% { transform: rotate(14deg); }
  82% { transform: rotate(-10deg); }
  86% { transform: rotate(8deg); }
  90% { transform: rotate(0); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   MÀN HÌNH NHỎ (≤ 360px) – co chữ để không tràn
   ========================================================================== */
@media (max-width: 360px) {
  .logo__small { font-size: 9.5px; }
  .logo__name { font-size: 17px; }
  .hero__title { font-size: 24px; }
  .hero__hotline strong { font-size: 21px; }
  .mbar__text strong { font-size: 14px; }
  .mbar__text small { font-size: 11px; }
}

/* ==========================================================================
   ≥ 600px (điện thoại lớn ngang / tablet nhỏ)
   ========================================================================== */
@media (min-width: 600px) {
  .container { padding: 0 24px; }
  .hero__ctas { grid-template-columns: 1fr 1fr; }
  .hero__ctas .btn:first-child { grid-column: 1 / -1; }
  .trust__list { grid-template-columns: repeat(3, 1fr); }
  .trust__list li:last-child { grid-column: auto; }
  .courses, .reviews { grid-auto-columns: 58%; margin: 0 -24px; padding-left: 24px; padding-right: 24px; }
  .reasons { grid-template-columns: 1fr 1fr; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: auto; }
  .final-cta__btns { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1.3fr 1fr 1fr; }
}

/* ==========================================================================
   ≥ 992px – DESKTOP
   ========================================================================== */
@media (min-width: 992px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .mbar { display: none; }

  .header__hotline-text { display: flex; }
  .header__cta { display: inline-flex; white-space: nowrap; }

  .hero__inner { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
  .hero__title { font-size: 42px; }
  .hero__headline { font-size: 23px; }
  .hero__desc { font-size: 17px; }
  .hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
  .hero__ctas .btn { white-space: nowrap; padding: 14px 22px; }
  .hero__media img { max-width: 100%; }

  .trust__list { grid-template-columns: repeat(5, 1fr); padding: 26px 0; }
  .trust__list li { flex-direction: column; text-align: center; font-size: 14.5px; }
  .trust__icon { width: 52px; height: 52px; }
  .trust__icon svg { width: 26px; height: 26px; }

  .section { padding: 84px 0; }
  .section__title { font-size: 32px; }
  .section__head { margin-bottom: 44px; }

  .courses {
    grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto;
    overflow: visible; margin: 0; padding: 0;
  }
  .courses__hint { display: none; }
  .course { padding: 28px 26px; transition: transform .2s ease, box-shadow .2s ease; }
  .course:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

  .reasons { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .reason { grid-template-columns: 1fr; padding: 26px; text-align: left; transition: transform .2s ease, box-shadow .2s ease; }
  .reason__icon { grid-row: auto; margin-bottom: 10px; width: 58px; height: 58px; }
  .reason:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

  /* Timeline ngang */
  .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; }
  .step:not(:last-child)::before { display: none; }
  .steps::before {
    content: ""; position: absolute;
    left: 12.5%; right: 12.5%; top: 29px; height: 3px;
    background: repeating-linear-gradient(90deg, var(--navy-600) 0 10px, transparent 10px 18px);
  }
  .step { flex-direction: column; align-items: center; text-align: center; }
  .step__num { width: 60px; height: 60px; font-size: 24px; }
  .step__body { width: 100%; padding: 20px 18px; }
  .steps__cta .btn { width: auto; }

  .form-wrap { grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
  .form-intro__desc { font-size: 18px; }
  .form-card { padding: 34px 32px; }

  .gallery { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .gallery__item { cursor: default; }
  .gallery__item:hover img { transform: scale(1.05); }

  .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 20px; }

  .final-cta { padding: 84px 0; }
  .final-cta h2 { font-size: 36px; }
  .final-cta__hotline strong { font-size: 34px; }

  /* Cụm nút nổi desktop */
  .dfloat {
    position: fixed; right: 18px; bottom: 24px; z-index: 90;
    display: flex; flex-direction: column; gap: 10px;
  }
  .dfloat__btn {
    position: relative; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
    display: grid; place-items: center; color: #fff; text-decoration: none;
    box-shadow: 0 6px 18px rgba(8, 44, 98, .25); transition: transform .15s ease;
  }
  .dfloat__btn:hover { transform: scale(1.08); }
  .dfloat__btn .ic { width: 22px; height: 22px; }
  .dfloat__btn .ic--zalo { width: 32px; height: 32px; }
  .dfloat__btn--call { background: var(--call); animation: pulse 2.4s ease-out infinite; }
  .dfloat__btn--zalo { background: var(--zalo); }
  .dfloat__btn--form { background: var(--accent); color: var(--navy-900); }
  .dfloat__btn--top { background: var(--navy-700); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s, transform .15s ease; }
  .dfloat__btn--top.is-visible { opacity: 1; visibility: visible; }
  .dfloat__tip {
    position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
    white-space: nowrap; background: var(--navy-900); color: #fff;
    font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 8px;
    opacity: 0; pointer-events: none; transition: opacity .15s ease;
  }
  .dfloat__btn:hover .dfloat__tip, .dfloat__btn:focus-visible .dfloat__tip { opacity: 1; }
}

/* ==========================================================================
   ≥ 1280px – menu ngang (dưới mức này dùng hamburger)
   ========================================================================== */
@media (min-width: 1280px) {
  .header .container { max-width: 1340px; }
  .logo__small { font-size: 10px; }
  .burger { display: none; }
  .nav {
    position: static; transform: none; opacity: 1; visibility: visible;
    background: none; border: 0; box-shadow: none; padding: 0; max-height: none; overflow: visible;
  }
  .nav__list { display: flex; gap: 2px; }
  .nav__list a { border: 0; padding: 8px 7px; font-size: 14px; border-radius: 8px; white-space: nowrap; }
  .nav__list a:hover { background: var(--navy-50); }
  .nav__list a.is-active { color: var(--navy-600); background: var(--navy-50); }
  .nav__mobile-cta { display: none; }
}

/* ==========================================================================
   BỔ SUNG: LOGO ẢNH, HỌC PHÍ, TRỌN GÓI, ĐỊA CHỈ
   ========================================================================== */
.logo__img { height: 44px; width: auto; flex-shrink: 0; }
.footer__logo { display: inline-block; background: #fff; border-radius: 14px; padding: 12px 16px; }
.footer__logo img { width: 220px; height: auto; }

.hero__price {
  margin-top: 14px; display: inline-block;
  padding: 8px 14px; border-radius: 10px;
  background: rgba(255, 180, 0, .14); border: 1px solid rgba(255, 180, 0, .45);
  font-size: 14.5px; color: #fff; line-height: 1.45;
}
.hero__price strong { color: var(--accent); }

.course__price {
  display: flex; flex-direction: column; margin: -4px 0 16px;
  padding: 12px 14px; border-radius: var(--radius-sm); background: var(--navy-50);
}
.course__price small { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); }
.course__price strong { font-size: 30px; font-weight: 800; line-height: 1.15; color: var(--call); letter-spacing: .3px; }
.course__price strong span { font-size: .6em; margin-left: 2px; vertical-align: .45em; }
.course .btn { margin-top: auto; }
.course--c1 { border-top-color: var(--accent); }

.section--package { background: var(--navy-50); }
.package {
  display: grid; gap: 10px; max-width: 980px; margin: 0 auto;
}
.package li {
  display: flex; gap: 12px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 15.5px; font-weight: 500;
}
.package .ic { color: #16a34a; margin-top: 3px; }
.package__gift { background: #fff8e6 !important; border-color: #ffd98a !important; }
.package__gift .ic { color: var(--call); }
.promise {
  display: flex; gap: 14px; align-items: center; max-width: 980px; margin: 20px auto 0;
  padding: 18px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); color: #fff;
}
.promise__icon {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px;
  display: grid; place-items: center; background: var(--accent); color: var(--navy-900);
}
.promise__icon svg { width: 28px; height: 28px; }
.promise p { font-size: 15.5px; }
.promise strong { color: var(--accent); }

.final-cta__addr {
  display: flex; gap: 8px; justify-content: center; align-items: flex-start;
  margin: 12px auto 0 !important; max-width: 520px; font-size: 14.5px !important;
}
.final-cta__addr .ic { margin-top: 3px; color: var(--accent); }

@media (max-width: 400px) {
  .logo__img { height: 40px; }
  .logo__small { display: none; }
  .logo__name { font-size: 17px; }
}
@media (min-width: 600px) {
  .package { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 992px) {
  .logo__img { height: 54px; }
  .package { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .promise { padding: 22px 28px; }
  .promise p { font-size: 18px; }
}
/* Menu ngang: ẩn dòng chữ nhỏ cạnh logo để không chạm menu */
@media (min-width: 1280px) and (max-width: 1499px) { .header .logo__small { display: none; } }
/* Hero mobile gọn hơn để thấy nút gọi/Zalo sớm */
@media (max-width: 599px) {
  .hero__inner { padding-top: 20px; }
  .hero__eyebrow { margin-bottom: 10px; }
  .hero__headline { margin-top: 8px; font-size: 17px; }
  .hero__desc { font-size: 15px; }
  .hero__price { margin-top: 12px; font-size: 14px; padding: 7px 12px; }
  .hero__hotline { margin-top: 14px; }
  .hero__ctas { margin-top: 14px; }
}
