/* ============================================================
   NHA KHOA AN BÌNH — Tận tâm • Chuẩn y khoa
   Tông teal y khoa + điểm nhấn vàng, nền sáng.
   ============================================================ */
:root {
  --teal: #1f9ea3;
  --teal-2: #178d93;
  --teal-deep: #0c6371;
  --teal-ink: #0a5866;
  --teal-btn: #0f7584;
  --teal-soft: #dff3f5;
  --teal-mist: #eaf7f8;
  --gold: #d49b2f;
  --gold-2: #e8b64b;
  --gold-ink: #cf8f22;
  --ink: #33474b;
  --muted: #5d7074;
  --line: #d6e8eb;
  --bg: #ffffff;

  --f-head: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-script: "Dancing Script", cursive;

  --wrap: 1200px;
  --gut: 24px;
  --head-h: 136px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { display: block; flex: none; }

.ab-wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.ab-sr {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}
.ab-skip {
  position: absolute; left: -9999px; top: 0; z-index: 300;
  background: var(--teal-btn); color: #fff; padding: 10px 18px; border-radius: 8px;
}
.ab-skip:focus { left: 12px; top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
section[id] { scroll-margin-top: var(--head-h); }

/* Tiêu đề section: chữ teal đậm + gạch vàng ngắn */
.ab-title {
  font: 700 34px/1.15 var(--f-head);
  color: var(--teal-deep);
  text-transform: uppercase;
  text-align: center;
  letter-spacing: .005em;
}
.ab-title::after {
  content: "";
  display: block;
  width: 58px; height: 4px;
  margin: 13px auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, #f3cb62, #d59c32);
}
.ab-title--light { color: #fff; text-shadow: 0 1px 8px rgba(8, 90, 100, .25); }

/* ============================================================
   HEADER
   ============================================================ */
.ab-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  transition: box-shadow .25s;
}
.ab-header.is-stuck { box-shadow: 0 6px 20px rgba(9, 80, 92, .12); }

.ab-header__inner {
  display: flex; align-items: center; gap: 28px;
  height: 84px;
}
.ab-brand { flex: none; }
.ab-brand img { width: 204px; height: auto; }

.ab-search {
  position: relative;
  flex: 0 1 356px;
  margin-left: auto;
}
.ab-search input {
  width: 100%; height: 44px;
  padding: 0 52px 0 22px;
  border: 1px solid #dfe8ea;
  border-radius: 999px;
  background: #fff;
  font-size: 14px;
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(12, 90, 100, .04) inset;
  transition: border-color .2s, box-shadow .2s;
}
.ab-search input::placeholder { color: #8d9ca0; }
.ab-search input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 158, 163, .14); }
.ab-search button {
  position: absolute; right: 6px; top: 50%; translate: 0 -50%;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent;
  color: var(--teal-btn);
}
.ab-search button svg { width: 20px; height: 20px; }

.ab-contact {
  display: flex; align-items: center; gap: 14px;
  margin-left: auto;
  padding: 5px 6px 5px 6px;
  border: 1.5px solid #ecc978;
  border-radius: 999px;
  background: linear-gradient(180deg, #fffdf8, #fff);
  box-shadow: 0 2px 10px rgba(212, 155, 47, .12);
}
.ab-hotline { display: flex; align-items: center; gap: 10px; padding-right: 4px; }
.ab-hotline__icon {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #edbd55, #cf9228);
  color: #fff;
  box-shadow: 0 3px 8px rgba(207, 146, 40, .35);
}
.ab-hotline__icon svg { width: 20px; height: 20px; }
.ab-hotline__text { display: flex; flex-direction: column; line-height: 1.05; }
.ab-hotline__text small {
  font: 600 11px/1.2 var(--f-head); letter-spacing: .02em;
  text-transform: uppercase; color: var(--teal-deep);
}
.ab-hotline__text strong {
  font: 700 21px/1.1 var(--f-head); color: var(--gold-ink); letter-spacing: .01em;
}
.ab-btn-book {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 26px 0 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #147f8e, #0b6878);
  color: #fff;
  font: 700 16px/1 var(--f-head); text-transform: uppercase; letter-spacing: .02em;
  box-shadow: 0 4px 12px rgba(11, 104, 120, .3), inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: filter .2s, transform .2s;
}
.ab-btn-book svg { width: 21px; height: 21px; }
.ab-btn-book:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* nút chuyển ngôn ngữ (dựng bởi /mau/_shared/i18n.js) */
.ab-lang { flex: none; display: flex; }
.ab-lang:empty { display: none; }
.ab-header .dn-lang {
  --dn-lang-fg: var(--teal-deep);
  --dn-lang-bg: #fff;
  --dn-lang-border: #cfe3e6;
  --dn-lang-menu-bg: #fff;
  --dn-lang-font: var(--f-head);
}
.ab-header .dn-lang__btn {
  height: 44px; padding: 0 14px 0 12px;
  font-size: 14px; font-weight: 700; letter-spacing: .05em;
  transition: border-color .2s, background .2s;
}
.ab-header .dn-lang__btn:hover,
.ab-header .dn-lang.is-open .dn-lang__btn { border-color: var(--teal); background: var(--teal-mist); }
.ab-header .dn-lang__ico { width: 18px; height: 18px; color: var(--teal); }
.ab-header .dn-lang__list { z-index: 120; }
.ab-header .dn-lang__opt { font-family: var(--f-body); font-size: 15px; color: var(--ink); }
.ab-header .dn-lang__opt:hover { background: var(--teal-mist); }
.ab-header .dn-lang__opt[aria-current="true"] { color: var(--teal-2); }

.ab-burger {
  display: none;
  width: 44px; height: 44px; margin-left: auto;
  border: 0; border-radius: 10px; background: var(--teal-mist);
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.ab-burger span { width: 22px; height: 2px; border-radius: 2px; background: var(--teal-deep); transition: transform .25s, opacity .25s; }
.ab-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ab-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ab-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Thanh menu teal */
.ab-nav {
  background: linear-gradient(180deg, #25a5aa, #1b979d);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset;
}
.ab-nav__list {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 1040px;
  height: 50px;
}
.ab-nav__list > li { position: relative; height: 100%; }
.ab-nav__list > li > a {
  display: flex; align-items: center; gap: 6px; height: 100%;
  padding: 0 4px;
  color: #fff;
  font: 600 15px/1 var(--f-head); text-transform: uppercase; letter-spacing: .015em;
  transition: color .2s;
}
.ab-nav__list > li > a svg { width: 13px; height: 13px; }
.ab-nav__list > li > a::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 9px; height: 2px;
  background: #f3cb62; border-radius: 2px;
  transform: scaleX(0); transition: transform .25s;
}
.ab-nav__list > li > a:hover::after { transform: scaleX(1); }

.ab-nav__sub {
  position: absolute; top: 100%; left: -16px; min-width: 210px;
  padding: 8px 0;
  background: #fff; border-radius: 0 0 12px 12px;
  box-shadow: 0 14px 30px rgba(9, 80, 92, .16);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.ab-nav__has-sub:hover .ab-nav__sub,
.ab-nav__has-sub:focus-within .ab-nav__sub { opacity: 1; visibility: visible; transform: none; }
.ab-nav__sub a {
  display: block; padding: 9px 20px;
  font: 500 15px/1.3 var(--f-body); color: var(--ink);
}
.ab-nav__sub a:hover { background: var(--teal-mist); color: var(--teal-deep); }

/* ============================================================
   HERO
   ============================================================ */
.ab-hero {
  --hero-h: clamp(520px, 37.5vw, 600px);
  position: relative;
  height: var(--hero-h);
  overflow: hidden;
  background: #e8f5f7;
  isolation: isolate;
}
.ab-hero__bg { position: absolute; inset: 0; z-index: -2; }
/* khung 3:1 — neo nhóm bác sĩ ngay sau cột chữ, bản đồ luôn nằm trong khung.
   Ảnh gốc 2.5:1 nên neo mép trên, phần sàn phía dưới bị cắt bớt. */
.ab-hero__bg img {
  position: absolute; top: 0;
  height: 100%;
  width: calc(var(--hero-h) * 3);
  max-width: none;
  left: min(calc(50% - 130px - var(--hero-h) * 1.09), calc(100% - var(--hero-h) * 2.72));
  object-fit: cover; object-position: 50% 0;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 94%, transparent);
}
.ab-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(236, 248, 250, .82) 0%, rgba(236, 248, 250, .55) 30%, rgba(236, 248, 250, 0) 46%);
  pointer-events: none;
}
.ab-hero__inner { height: 100%; }
.ab-hero__content {
  position: relative;
  width: 520px;
  padding-top: 62px;
}
.ab-hero__title {
  font: 800 70px/1 var(--f-head);
  color: var(--teal-deep);
  text-transform: uppercase;
  letter-spacing: -.005em;
  white-space: nowrap;
  text-shadow: 0 2px 14px rgba(255, 255, 255, .7);
}
.ab-hero__tagline {
  margin-top: 10px;
  font: italic 600 41px/1.1 var(--f-head);
  color: var(--teal-ink);
  white-space: nowrap;
}
.ab-hero__tagline span { color: var(--teal); padding: 0 .08em; }

.ab-hero__features {
  display: flex; gap: 30px;
  margin-top: 24px;
}
.ab-hero__features li {
  display: flex; align-items: center; gap: 11px;
  font: 600 13.5px/1.3 var(--f-head);
  text-transform: uppercase; letter-spacing: .01em;
  color: var(--teal-ink);
}
.ab-hero__ficon {
  width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background: rgba(255, 255, 255, .85);
  border: 1.5px solid #3aaab0;
  color: var(--teal);
  box-shadow: 0 3px 10px rgba(20, 130, 140, .14);
}
.ab-hero__ficon svg { width: 25px; height: 25px; }

/* 4 ảnh xếp so le kiểu polaroid */
.ab-hero__photos {
  position: relative;
  width: 510px; height: 236px;
  margin-top: 24px;
  perspective: 900px;
}
.ab-hero__photo {
  position: absolute;
  border: 4px solid #fff;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(10, 70, 82, .22), 0 1px 3px rgba(10, 70, 82, .12);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s;
}
.ab-hero__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.ab-hero__photo--1 { left: 0; top: 4px; width: 168px; height: 124px; transform: rotateY(14deg) rotate(-3deg); }
.ab-hero__photo--2 { left: 184px; top: 20px; width: 162px; height: 112px; transform: rotateY(-6deg) rotate(2deg); }
.ab-hero__photo--3 { left: 358px; top: 0; width: 148px; height: 98px; transform: rotateY(-14deg) rotate(3deg); }
.ab-hero__photo--4 { left: 276px; top: 104px; width: 226px; height: 128px; transform: rotateY(-10deg) rotate(-1.5deg); z-index: 2; }
.ab-hero__photo:hover { transform: rotate(0) scale(1.06); z-index: 3; box-shadow: 0 16px 34px rgba(10, 70, 82, .3); }

.ab-hero__script {
  font-family: var(--f-script);
  color: #12808a;
  text-align: center;
  pointer-events: none;
}
.ab-hero__script--left {
  position: absolute; left: 36px; top: 428px;
  font-size: 29px; font-weight: 600; line-height: 1.15;
  transform: rotate(-9deg);
}
.ab-hero__script--right {
  position: absolute; right: max(26px, calc(50% - 660px)); bottom: 34px;
  font-size: 25px; font-weight: 500; line-height: 1.25;
  color: #1a8a92;
  transform: rotate(-9deg);
}

/* ============================================================
   ĐĂNG KÝ TƯ VẤN
   ============================================================ */
.ab-register { margin-top: 14px; }
.ab-register__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 158px 164px 196px 150px;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 20px 40px;
  border-radius: 18px;
  background: linear-gradient(180deg, #e3f5f7, #dcf1f4);
  box-shadow: 0 6px 22px rgba(20, 120, 130, .08);
}
.ab-register__head h2 {
  font: 700 26px/1.1 var(--f-head); color: var(--teal-deep);
  text-transform: uppercase; letter-spacing: .005em;
}
.ab-register__head p { margin-top: 4px; font-size: 13.5px; line-height: 1.4; color: #4f666b; }

.ab-field { position: relative; }
.ab-field > svg:first-child {
  position: absolute; left: 16px; top: 50%; translate: 0 -50%;
  width: 19px; height: 19px; color: #6f8e93; pointer-events: none;
}
.ab-field input, .ab-field select {
  width: 100%; height: 52px;
  padding: 0 14px 0 44px;
  border: 1px solid #d3e7ea; border-radius: 9px;
  background: #fff;
  font-size: 15px; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.ab-field input::placeholder { color: #8b9ea2; }
.ab-field select { appearance: none; -webkit-appearance: none; padding-right: 34px; cursor: pointer; }
.ab-field select:invalid { color: #8b9ea2; }
.ab-field select option { color: var(--ink); }
.ab-field__caret {
  position: absolute; right: 13px; top: 50%; translate: 0 -50%;
  width: 15px; height: 15px; color: #4d6c71; pointer-events: none;
}
.ab-field input:focus, .ab-field select:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(31, 158, 163, .15); }
.ab-field.is-error input, .ab-field.is-error select { border-color: #d9534f; box-shadow: 0 0 0 3px rgba(217, 83, 79, .12); }

.ab-btn-gold {
  height: 54px; padding: 0 18px;
  border: 0; border-radius: 10px;
  background: linear-gradient(180deg, #e3b24c, #cc9125);
  color: #fff;
  font: 700 18px/1 var(--f-head); text-transform: uppercase; letter-spacing: .02em;
  box-shadow: 0 5px 14px rgba(204, 145, 37, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: filter .2s, transform .2s;
}
.ab-btn-gold:hover { filter: brightness(1.06); transform: translateY(-1px); }
.ab-register__msg {
  grid-column: 2 / -1;
  min-height: 0; margin-top: -4px;
  font-size: 14px; color: var(--teal-deep);
}
.ab-register__msg:empty { display: none; }
.ab-register__msg.is-error { color: #c0392b; }

/* ============================================================
   DỊCH VỤ
   ============================================================ */
.ab-services { padding: 54px 0 20px; }
.ab-services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px 26px;
  margin-top: 34px;
}
.ab-svc {
  position: relative; display: block;
  aspect-ratio: 381 / 236;
  border-radius: 12px; overflow: hidden;
  background: var(--teal);
  box-shadow: 0 8px 20px rgba(10, 90, 100, .13);
  transition: transform .35s, box-shadow .35s;
}
.ab-svc__img { position: absolute; inset: 0 0 26% 0; }
.ab-svc__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ab-svc__band {
  position: absolute; left: 0; right: 0; bottom: 0; height: 35%;
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px 0 14px;
  background: linear-gradient(90deg, rgba(34, 160, 163, .96), rgba(23, 143, 148, .96));
  border-top: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
}
.ab-svc__icon {
  width: 62px; height: 62px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .28), rgba(255, 255, 255, .08));
  border: 1px solid rgba(255, 255, 255, .35);
  box-shadow: inset 0 0 12px rgba(255, 255, 255, .12);
}
.ab-svc__icon img { width: 38px; height: 38px; object-fit: contain; filter: drop-shadow(0 2px 3px rgba(0, 60, 70, .25)); }
.ab-svc__text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ab-svc__text strong {
  font: 700 22px/1.1 var(--f-head); text-transform: uppercase; letter-spacing: .01em;
}
.ab-svc__text span { font: 500 15px/1.3 var(--f-body); opacity: .95; }
.ab-svc__go {
  width: 34px; height: 34px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  border: 1.6px solid rgba(255, 255, 255, .9);
  transition: background .25s, color .25s;
}
.ab-svc__go svg { width: 17px; height: 17px; }
.ab-svc:hover { transform: translateY(-4px); box-shadow: 0 16px 30px rgba(10, 90, 100, .2); }
.ab-svc:hover .ab-svc__img img { transform: scale(1.06); }
.ab-svc:hover .ab-svc__go { background: #fff; color: var(--teal-2); }

/* ============================================================
   ĐỘI NGŨ CHUYÊN GIA
   ============================================================ */
.ab-team { padding: 40px 0 16px; }
.ab-team__panel {
  margin-top: 30px;
  padding: 8px 10px 14px;
  border-radius: 24px;
  background: linear-gradient(180deg, #dcf2f4 0%, #e6f6f7 60%, #e1f3f5 100%);
  border: 1px solid #cdeaed;
  box-shadow: 0 10px 30px rgba(15, 110, 120, .08);
}
.ab-team__feature {
  display: grid;
  grid-template-columns: 43.5% 1fr;
  min-height: 446px;
}
.ab-team__photo {
  position: relative;
  margin: -8px 0 0 -10px;
  border-radius: 24px 0 0 0;
  overflow: hidden;
}
.ab-team__photo picture {
  position: absolute; left: -2%; top: 3%; width: 112%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 80%, transparent 97%);
          mask-image: linear-gradient(180deg, transparent 0, #000 8%, #000 80%, transparent 97%);
}
.ab-team__photo img { width: 100%; }
/* ảnh chân dung dọc (BS. 1–4): thu nhỏ, mờ cả 4 cạnh để khớp ảnh ngang của BS. Thu Hà */
.ab-team__photo.is-portrait picture {
  left: 9%; top: 2%; width: 84%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 80%, transparent 97%), linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(180deg, transparent 0, #000 6%, #000 80%, transparent 97%), linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent);
          mask-composite: intersect;
}
/* đổi bác sĩ: mờ ra rồi hiện lại */
.ab-team__photo picture, .ab-team__profile { transition: opacity .28s ease, transform .28s ease; }
.ab-team__feature.is-swapping .ab-team__photo picture { opacity: 0; transform: translateY(10px); }
.ab-team__feature.is-swapping .ab-team__profile { opacity: 0; transform: translateX(10px); }
/* trái tim nền: chỉ lộ ở hai bên thân người, giữa để trong suốt */
.ab-team__heart {
  position: absolute; left: 12%; top: 22%;
  width: 78%; height: 88%;
  fill: #a9dde1;
  mix-blend-mode: multiply;
  opacity: .8;
  -webkit-mask-image: linear-gradient(90deg, #000 0, #000 20%, transparent 32%, transparent 82%, #000 92%);
          mask-image: linear-gradient(90deg, #000 0, #000 20%, transparent 32%, transparent 82%, #000 92%);
  pointer-events: none;
}

.ab-team__card {
  position: relative;
  margin: 6px 0 0 -4px;
  padding: 30px 38px 30px 42px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(15, 100, 110, .08);
}
.ab-team__card h3 {
  font: 700 29px/1.1 var(--f-head); color: var(--teal-deep); text-transform: uppercase;
}
.ab-team__role { margin-top: 5px; font: 500 19px/1.2 var(--f-head); color: #1a939a; }
.ab-team__bio { margin-top: 16px; font-size: 16px; line-height: 1.6; color: #4b5f63; }
.ab-team__checks { margin-top: 16px; display: grid; gap: 8px; }
.ab-team__checks li { display: flex; align-items: flex-start; gap: 11px; font-size: 16px; line-height: 1.4; color: #3e5256; }
.ab-team__checks svg { width: 19px; height: 19px; margin-top: 1px; color: var(--teal); }
.ab-team__certs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
  margin-top: 26px;
}
.ab-cert {
  display: block; width: 100%; padding: 0;
  border: 0; background: #fff; border-radius: 3px;
  box-shadow: 0 4px 14px rgba(40, 40, 20, .16);
  transition: transform .3s, box-shadow .3s;
  cursor: zoom-in;
}
.ab-cert img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.ab-cert:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 10px 22px rgba(40, 40, 20, .2); }

/* dải bác sĩ */
.ab-doctors {
  position: relative;
  margin-top: 10px;
  padding: 10px 62px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(15, 100, 110, .06);
}
.ab-doctors__track {
  --gap: 18px;
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - var(--gap) * 3) / 4);
  gap: var(--gap);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 5px 8px;
}
.ab-doctors__track::-webkit-scrollbar { display: none; }
.ab-doc { scroll-snap-align: start; position: relative; }
.ab-doc__btn {
  position: relative; display: block; width: 100%;
  padding: 0; border: 0; background: none;
  text-align: left; cursor: pointer;
}
/* viền xanh cho bác sĩ đang xem */
.ab-doc__btn::after {
  content: ""; position: absolute; inset: -4px; z-index: 2;
  border: 2.5px solid var(--teal); border-radius: 15px;
  opacity: 0; transition: opacity .25s;
  pointer-events: none;
}
.ab-doc__btn:hover::after { opacity: .35; }
.ab-doc.is-active .ab-doc__btn::after { opacity: 1; }
.ab-doc.is-active .ab-doc__info { border-color: #bfe3e6; }
.ab-doc.is-active .ab-doc__name { color: var(--teal-2); }
.ab-doc__photo {
  border-radius: 12px 12px 0 0; overflow: hidden;
  background: #eef6f7;
}
.ab-doc__photo img { width: 100%; aspect-ratio: 1.72; object-fit: cover; object-position: 50% 12%; transition: transform .5s; }
.ab-doc:hover .ab-doc__photo img { transform: scale(1.05); }
.ab-doc__info {
  position: relative;
  display: flex; align-items: center; gap: 10px;
  margin-top: -14px;
  padding: 11px 10px 12px;
  border: 1px solid #d8ecee; border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 100, 110, .07);
}
.ab-doc__badge {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: radial-gradient(circle at 40% 35%, #e9f8f9, #b6e3e6);
  box-shadow: inset 0 0 0 2px #fff, 0 2px 6px rgba(15, 110, 120, .15);
}
.ab-doc__badge img { width: 27px; height: 27px; object-fit: contain; filter: drop-shadow(0 1px 2px rgba(0, 70, 80, .25)); }
.ab-doc__name {
  display: block;
  font: 700 16.5px/1.15 var(--f-head); color: var(--teal-deep); text-transform: uppercase;
  white-space: nowrap;
  transition: color .25s;
}
.ab-doc__text { min-width: 0; }
.ab-doc__role { display: block; margin-top: 3px; font-size: 13.5px; line-height: 1.3; color: #62757a; }
.ab-doctors__nav {
  position: absolute; top: 50%; translate: 0 -50%;
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0;
  background: linear-gradient(180deg, #34a9ae, #1f959b);
  color: #fff;
  box-shadow: 0 4px 12px rgba(20, 130, 140, .3);
  transition: filter .2s, transform .2s;
}
.ab-doctors__nav svg { width: 19px; height: 19px; }
.ab-doctors__nav:hover { filter: brightness(1.08); }
.ab-doctors__nav:active { transform: scale(.94); }
.ab-doctors__nav--prev { left: 14px; }
.ab-doctors__nav--next { right: 14px; }

/* ============================================================
   CON SỐ
   ============================================================ */
.ab-stats {
  position: relative;
  margin-top: 16px;
  padding: 34px 0 40px;
  background: #3fa9ad url("./images/stats-bg.webp") center / cover no-repeat;
  isolation: isolate;
}
@supports (background-image: image-set(url("x.avif") type("image/avif"))) {
  .ab-stats { background-image: image-set(url("./images/stats-bg.avif") type("image/avif"), url("./images/stats-bg.webp") type("image/webp")); }
}
.ab-stats::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(46, 168, 172, .82), rgba(38, 158, 163, .78));
}
.ab-stats .ab-title { font-size: 32px; }
.ab-stats__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
  max-width: 1120px; margin: 24px auto 0;
}
.ab-stat {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 18px 14px 20px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(8, 80, 90, .16);
  transition: transform .3s;
}
.ab-stat:hover { transform: translateY(-4px); }
.ab-stat__icon { width: 38px; height: 40px; color: #2a9ca2; }
.ab-stat__icon--wide { width: 58px; }
.ab-stat strong {
  margin-top: 6px;
  font: 700 46px/1 var(--f-head); color: var(--teal-ink); letter-spacing: .005em;
}
.ab-stat p { margin-top: 8px; font-size: 16px; line-height: 1.4; color: #55686c; }

/* ============================================================
   NÚT DÙNG CHUNG
   ============================================================ */
/* nút viền teal bo tròn — "Xem thêm →" */
.ab-btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: 44px; padding: 0 28px 0 32px;
  border: 1.5px solid #3aaab0; border-radius: 999px;
  background: #fff;
  color: #137e8a;
  font: 500 16px/1 var(--f-body);
  white-space: nowrap;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.ab-btn-line svg { width: 16px; height: 16px; transition: transform .25s; }
.ab-btn-line:hover { background: var(--teal); border-color: var(--teal); color: #fff; }
.ab-btn-line:hover svg { transform: translateX(3px); }
.ab-btn-line--sm { height: 34px; padding: 0 14px 0 16px; gap: 8px; font-size: 13.5px; font-weight: 600; }
.ab-btn-line--sm svg { width: 13px; height: 13px; }
.ab-btn-line--block { display: flex; width: 100%; height: 50px; font-size: 17px; font-weight: 600; color: #0f6475; border-color: #2c9aa3; }
.ab-btn-line__pin { width: 22px !important; height: 22px !important; color: var(--teal-2); margin-right: 8px; }
.ab-btn-line--block:hover .ab-btn-line__pin { color: #fff; transform: none; }

/* nút vàng bo tròn */
.ab-btn-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 50px; padding: 0 34px;
  border: 0; border-radius: 999px;
  background: linear-gradient(180deg, #e8b852, #cd9126);
  color: #fff;
  font: 700 18px/1 var(--f-head); text-transform: uppercase; letter-spacing: .025em;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(204, 145, 37, .35), inset 0 1px 0 rgba(255, 255, 255, .28);
  transition: filter .2s, transform .2s;
}
.ab-btn-pill svg { width: 20px; height: 20px; }
.ab-btn-pill:hover { filter: brightness(1.06); transform: translateY(-2px); }
.ab-btn-pill--block { display: flex; width: 100%; }

.ab-pill {
  display: inline-flex; align-items: center; align-self: flex-start;
  height: 32px; padding: 0 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2ba7ac, #1a9197);
  color: #fff;
  font: 600 15px/1 var(--f-head); text-transform: uppercase; letter-spacing: .03em;
}
.ab-pill--sm { height: 26px; padding: 0 12px; font-size: 13px; }

/* ============================================================
   CÂU CHUYỆN KHÁCH HÀNG
   ============================================================ */
.ab-stories { padding: 58px 0 22px; }
.ab-stories__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 30px;
}
.ab-story {
  position: relative;
  display: flex; flex-direction: column;
  border: 1px solid #dcedf0; border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 100, 110, .07);
  transition: translate .35s, box-shadow .35s;
}
.ab-story:hover { translate: 0 -4px; box-shadow: 0 16px 34px rgba(15, 100, 110, .13); }
.ab-story__media { position: relative; aspect-ratio: 1.9; }
.ab-story__photo { position: absolute; inset: 0; overflow: hidden; border-radius: 16px 16px 0 0; }
.ab-story__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ab-story:hover .ab-story__photo img { transform: scale(1.05); }
/* ảnh răng "sau điều trị" kiểu polaroid nghiêng */
.ab-story__snap {
  position: absolute; right: 14px; bottom: -4px; z-index: 2;
  width: 38%; margin: 0;
  padding: 5px 5px 15px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(10, 60, 70, .22);
  transform: rotate(-7deg);
  transition: transform .4s;
}
.ab-story:hover .ab-story__snap { transform: rotate(-3deg) scale(1.04); }
.ab-story__snap img { width: 100%; aspect-ratio: 1.64; object-fit: cover; border-radius: 2px; }
.ab-story__snap figcaption {
  position: absolute; left: 0; right: 0; bottom: 1px;
  font: 500 11.5px/1 var(--f-script); color: #5f7478; text-align: center;
}
.ab-story__body {
  position: relative; z-index: 1;
  flex: 1; display: flex; flex-direction: column;
  margin-top: -14px;
  padding: 24px 26px 26px;
  border-radius: 16px 16px 16px 16px;
  background: #fff;
}
.ab-story__body h3 {
  position: relative;
  padding-left: 44px;
  font: 700 21px/1.3 var(--f-head); color: var(--teal-deep);
}
.ab-story__quote { position: absolute; left: 0; top: 4px; width: 31px; height: 23px; color: #1c9ba2; }
.ab-story__text { margin-top: 12px; font-size: 15.5px; line-height: 1.6; color: #5d7074; }
.ab-story__who { margin-top: 12px; font-size: 15px; color: #6b7d81; }
.ab-story__who strong { font-weight: 600; color: #3a5156; }
.ab-story .ab-btn-line { align-self: flex-start; margin-top: auto; }
.ab-story__who { margin-bottom: 22px; }

/* ============================================================
   ĐỐI TÁC CHIẾN LƯỢC
   ============================================================ */
.ab-partners { padding: 40px 0 8px; }
.ab-partners__panel {
  margin: 0 -16px;
  padding: 30px 24px 30px;
  border: 1px solid #cfebee; border-radius: 22px;
  background: linear-gradient(180deg, #dcf3f6, #e6f7f9);
}
.ab-partners__grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
  margin-top: 26px;
}
.ab-partner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 92px; padding: 0 10px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 100, 110, .06);
  transition: translate .3s, box-shadow .3s;
}
.ab-partner:hover { translate: 0 -3px; box-shadow: 0 10px 22px rgba(15, 100, 110, .12); }
.ab-partner__mark { width: 38px; height: 38px; }
.ab-partner__mark--wide { width: 48px; }
.ab-partner__name { display: flex; flex-direction: column; min-width: 0; color: var(--c); }
.ab-partner__name strong { font: 700 20px/1 var(--f-head); text-transform: uppercase; letter-spacing: .01em; }
.ab-partner__name small {
  margin-top: 4px;
  font: 500 9.5px/1.2 var(--f-body); text-transform: uppercase; letter-spacing: .02em;
  opacity: .85; white-space: nowrap;
}
.ab-partner:first-child small { text-transform: none; font-size: 10.5px; letter-spacing: 0; }

/* ============================================================
   BÁO CHÍ
   ============================================================ */
.ab-press { padding: 44px 0 26px; }
/* 6 bài xếp 2 hàng × 3 cột */
.ab-press__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 30px; padding-bottom: 18px;
}
.ab-news {
  display: flex; flex-direction: column;
  border: 1px solid #dcedf0; border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(15, 100, 110, .07);
  transition: box-shadow .3s;
}
.ab-news:hover { box-shadow: 0 12px 28px rgba(15, 100, 110, .13); }
.ab-news__img { overflow: hidden; }
.ab-news__img img { width: 100%; object-fit: cover; object-position: 50% 4%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ab-news:hover .ab-news__img img { transform: scale(1.04); }
.ab-news__body { flex: 1; display: flex; flex-direction: column; padding: 18px 20px 20px; }
.ab-news__body h3 { font: 700 19.5px/1.32 var(--f-head); color: var(--teal-deep); }
.ab-news__body p { margin-top: 10px; font-size: 15px; line-height: 1.55; color: #5d7074; }
.ab-news__meta, .ab-post__meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto; padding-top: 18px;
  font-size: 13.5px; color: #6b7d81; white-space: nowrap;
}
.ab-news__meta > span, .ab-post__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ab-news__meta > span + span::before {
  content: ""; width: 1px; height: 14px; margin-right: 6px; background: #cfe0e3;
}
.ab-news__meta svg, .ab-post__meta svg { width: 16px; height: 16px; color: #3b9aa2; }
.ab-news__meta .ab-btn-line, .ab-post__meta .ab-btn-line { margin-left: auto; }
.ab-news__meta .ab-btn-line svg { color: currentColor; }
.ab-post__meta .ab-btn-line svg { color: currentColor; }

/* ============================================================
   VIDEO NỔI BẬT
   ============================================================ */
.ab-video {
  position: relative;
  display: grid; grid-template-columns: 67fr 33fr;
  min-height: clamp(300px, 24vw, 390px);
  margin-top: 14px;
  background: linear-gradient(90deg, #e2f4f7, #f2fafb);
  overflow: hidden;
}
.ab-video__media { position: relative; }
.ab-video__media picture { position: absolute; inset: 0; }
.ab-video__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%;
  -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
          mask-image: linear-gradient(90deg, #000 90%, transparent);
}
.ab-video__play {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 78px; height: 78px; border-radius: 50%;
  display: grid; place-items: center;
  border: 4px solid #fff;
  background: linear-gradient(180deg, #1a8594, #0c6070);
  color: #fff;
  box-shadow: 0 10px 28px rgba(6, 60, 72, .38);
  transition: transform .25s, filter .25s;
}
.ab-video__play svg { width: 32px; height: 32px; margin-left: 5px; }
.ab-video__play::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .8);
  animation: ab-pulse 2.2s ease-out infinite;
}
.ab-video__play:hover { transform: scale(1.08); filter: brightness(1.1); }
@keyframes ab-pulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(1.55); opacity: 0; } }
.ab-video__info {
  position: relative;
  display: flex; flex-direction: column; justify-content: center;
  padding: 26px 36px 26px 36px;
}
.ab-video__info::before {
  content: ""; position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 1px; background: rgba(31, 158, 163, .35);
}
.ab-video__info h2 {
  margin-top: 16px;
  font: 700 clamp(28px, 2.45vw, 36px)/1.12 var(--f-head); color: #0f5f70;
  text-transform: uppercase; letter-spacing: .005em;
}
.ab-video__info > p { margin-top: 12px; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.4; color: #3f6d75; }
.ab-video__meta { display: flex; gap: 30px; margin-top: 24px; font-size: 14.5px; color: #4f6c73; }
.ab-video__meta li { display: flex; align-items: center; gap: 8px; }
.ab-video__meta svg { width: 20px; height: 20px; color: #1c6f7d; }

/* ============================================================
   NIỀNG RĂNG THẨM MỸ
   ============================================================ */
.ab-braces {
  position: relative;
  height: clamp(390px, 28.5vw, 420px);
  margin-top: 12px;
  overflow: hidden;
  background: #cdeef2;
  isolation: isolate;
}
.ab-braces__bg { position: absolute; inset: 0; z-index: -2; }
.ab-braces__bg img { width: 100%; height: 100%; object-fit: cover; }
.ab-braces::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 34% 70% at 18% 55%, rgba(236, 250, 252, .78), rgba(236, 250, 252, 0)),
    linear-gradient(90deg, rgba(178, 230, 237, .7), rgba(158, 222, 231, .55) 50%, rgba(170, 226, 234, .66));
}
.ab-braces__inner {
  position: relative;
  display: grid; grid-template-columns: 490px 1fr 340px;
  height: 100%;
}
.ab-braces__copy {
  align-self: center;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding-bottom: 4px;
}
.ab-braces__title {
  font: 800 clamp(52px, 5vw, 72px)/.98 var(--f-head);
  color: #0e6a7b;
  text-transform: uppercase; letter-spacing: -.005em;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .55), 0 6px 18px rgba(255, 255, 255, .5);
}
.ab-braces__title span { display: block; }
.ab-braces__script {
  margin-top: -2px;
  font: 500 clamp(32px, 2.9vw, 42px)/1.1 var(--f-script); color: #0d5a68;
  transform: rotate(-3deg);
}
.ab-braces__perks {
  display: flex; align-items: center;
  margin-top: 14px;
  padding: 9px 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 6px 18px rgba(10, 90, 100, .12);
  text-align: left;
}
.ab-braces__perks li {
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  font: 500 12.5px/1.28 var(--f-body); color: #2b5961;
}
.ab-braces__perks li + li { border-left: 1px solid #d3e7ea; }
.ab-braces__perks img { width: 30px; height: 30px; flex: none; }
.ab-braces .ab-btn-pill { margin-top: 18px; }

.ab-braces__model { position: relative; }
.ab-braces__model::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: 18%; width: 310px; aspect-ratio: 1; translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .6), rgba(214, 245, 248, .5) 60%, rgba(214, 245, 248, .15));
}
.ab-braces__model picture {
  position: absolute; left: 50%; top: 14px; translate: -50% 0;
  width: clamp(380px, 33vw, 480px);
}
.ab-braces__model img { width: 100%; filter: drop-shadow(0 10px 24px rgba(10, 80, 90, .18)); }

.ab-braces__compare {
  position: relative;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; align-content: center;
  column-gap: 6px;
  padding-bottom: 20px;
}
.ab-braces__compare::before {
  content: ""; position: absolute; z-index: -1; inset: 4% -10% 8% -6%;
  background: radial-gradient(ellipse at 50% 40%, rgba(232, 249, 251, .78), rgba(232, 249, 251, 0) 70%);
}
.ab-braces__note {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 0 0 22px 36px;
  font: 500 27px/1.22 var(--f-script); color: #0e6573;
  text-align: center;
  transform: rotate(-11deg);
}
.ab-braces__note svg { display: inline-block; width: 20px; height: 20px; color: #1c9aa2; vertical-align: -2px; }
.ab-polaroid {
  position: relative; margin: 0;
  padding: 6px 6px 30px;
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(8, 70, 82, .22);
  transition: transform .4s;
}
.ab-polaroid img { width: 100%; aspect-ratio: 1.36; object-fit: cover; border-radius: 2px; }
.ab-polaroid figcaption {
  position: absolute; left: 0; right: 0; bottom: 7px;
  font: 600 15px/1 var(--f-head); color: #33575e; text-align: center;
}
.ab-polaroid--before { transform: rotate(-8deg) translateY(10px); }
.ab-polaroid--after { transform: rotate(7deg); }
.ab-polaroid:hover { transform: rotate(0) scale(1.06); z-index: 2; }
.ab-braces__arrow { width: 26px; height: 26px; color: #1a8791; }

/* ============================================================
   KIẾN THỨC NHA KHOA
   ============================================================ */
.ab-blog { padding: 52px 0 64px; }
.ab-blog__grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px;
  margin-top: 30px;
}
.ab-post {
  display: grid; grid-template-columns: 45% 1fr; gap: 26px;
  padding: 8px;
  border: 1px solid #dcedf0; border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 100, 110, .07);
}
.ab-post__img { overflow: hidden; border-radius: 11px; }
.ab-post__img img { width: 100%; height: 100%; min-height: 290px; object-fit: cover; object-position: 50% 30%; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.ab-post:hover .ab-post__img img { transform: scale(1.04); }
.ab-post__body { display: flex; flex-direction: column; padding: 20px 18px 14px 0; }
.ab-post__body h3 { margin-top: 16px; font: 700 25px/1.3 var(--f-head); color: var(--teal-deep); }
.ab-post__body > p { margin-top: 16px; font-size: 15.5px; line-height: 1.6; color: #5d7074; }
.ab-post__meta { gap: 18px; padding-top: 24px; }

.ab-blog__list { display: grid; grid-template-rows: repeat(3, 1fr); gap: 12px; }
.ab-mini {
  display: grid; grid-template-columns: 38% 1fr; gap: 16px;
  height: 100%;
  padding: 6px;
  border: 1px solid #dcedf0; border-radius: 13px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 100, 110, .06);
  transition: transform .3s, box-shadow .3s;
}
.ab-mini:hover { transform: translateX(3px); box-shadow: 0 10px 24px rgba(15, 100, 110, .12); }
.ab-mini__img { overflow: hidden; border-radius: 9px; }
.ab-mini__img img { width: 100%; height: 100%; min-height: 96px; object-fit: cover; }
.ab-mini__body { display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 6px 12px 6px 0; min-width: 0; }
.ab-tag {
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 5px;
  background: #d6f0f2;
  color: #127d88;
  font: 700 12px/1.2 var(--f-head); text-transform: uppercase; letter-spacing: .03em;
}
.ab-mini__body strong { font: 700 16px/1.3 var(--f-head); color: #0d586a; }
.ab-mini__meta { display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #6b7d81; }
.ab-mini__meta > span { display: inline-flex; align-items: center; gap: 6px; }
.ab-mini__meta svg { width: 16px; height: 16px; color: #3b9aa2; }
.ab-mini__meta .ab-mini__go { color: #147f8b; transition: transform .25s; }
.ab-mini:hover .ab-mini__go { transform: translateX(3px); }

/* ============================================================
   ĐĂNG KÝ TƯ VẤN CUỐI TRANG
   ============================================================ */
.ab-consult {
  position: relative;
  background: #e3f4f7;
  isolation: isolate;
}
.ab-consult__bg { position: absolute; inset: 0; z-index: -2; }
/* kéo ảnh sang trái để bảng hiệu An Bình không bị form che */
.ab-consult__bg { overflow: hidden; }
.ab-consult__bg img {
  position: absolute; top: 0; left: max(-160px, calc(50% - 860px));
  width: calc(100% - max(-160px, calc(50% - 860px))); max-width: none; height: 100%;
  object-fit: cover; object-position: 0 20%;
}
.ab-consult::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 30% 36% at 12% 16%, rgba(240, 251, 252, .7), rgba(240, 251, 252, 0)),
    linear-gradient(90deg, rgba(234, 248, 250, 0) 50%, rgba(234, 248, 250, .5) 75%, rgba(234, 248, 250, .7));
}
.ab-consult__inner {
  position: relative;
  display: flex; justify-content: space-between; align-items: flex-start;
  padding-top: 40px; padding-bottom: 34px;
}
.ab-consult__script {
  position: relative;
  margin: 58px 0 0 8px;
  font: 500 clamp(32px, 2.9vw, 42px)/1.12 var(--f-script); color: #0f5d6d;
  transform: rotate(-12deg);
  text-shadow: 0 2px 12px rgba(255, 255, 255, .7);
}
.ab-consult__script span { display: block; }
.ab-consult__script span:nth-child(2) { padding-left: .5em; }
.ab-consult__script span:nth-child(3) { padding-left: .55em; }
.ab-consult__heart { display: inline-block; width: .74em; height: .74em; margin-left: .1em; vertical-align: .35em; color: #1f98a1; transform: rotate(12deg); }
.ab-consult__swash {
  display: block; width: 7.2em; height: .6em; margin: .12em 0 0 .6em;
  fill: none; stroke: #1f98a1; stroke-width: 2.4; stroke-linecap: round;
  overflow: visible;
}
.ab-consult__card {
  flex: none;
  width: 470px; margin-right: -12px;
  padding: 40px 36px 30px;
  border-radius: 22px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 22px 54px rgba(10, 80, 92, .16);
}
.ab-consult__card h2 {
  font: 800 44px/1.08 var(--f-head); color: #0c5f70;
  text-transform: uppercase; text-align: center;
}
.ab-consult__card h2::after {
  content: ""; display: block;
  width: 62px; height: 4px; margin: 16px auto 0; border-radius: 2px;
  background: linear-gradient(90deg, #f3cb62, #d59c32);
}
.ab-consult__lead { margin-top: 16px; font-size: 15px; line-height: 1.55; color: #4b6166; text-align: center; }
.ab-consult__card .ab-field { margin-top: 12px; }
.ab-consult__lead + .ab-field { margin-top: 24px; }
.ab-field--lg > svg:first-child { left: 18px; width: 22px; height: 22px; color: #1f8d95; }
.ab-field--lg input, .ab-field--lg select { height: 58px; padding-left: 54px; border-radius: 10px; font-size: 16px; border-color: #d2e5e8; }
.ab-field--lg .ab-field__caret { right: 18px; }
.ab-consult__card .ab-btn-pill { height: 56px; margin-top: 18px; font-size: 20px; }
.ab-consult__msg { margin-top: 10px; font-size: 14px; color: var(--teal-deep); text-align: center; }
.ab-consult__msg:empty { display: none; }
.ab-consult__msg.is-error { color: #c0392b; }

.ab-hours { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.ab-hours::before, .ab-hours::after { content: ""; flex: 1; height: 1px; background: #cfe5e8; }
.ab-hours__icon { width: 50px; height: 50px; color: #13707e; }
.ab-hours p { padding-left: 18px; border-left: 1.5px solid #cfe5e8; }
.ab-hours small { display: block; font: 600 13px/1.2 var(--f-head); color: #1a7f8a; text-transform: uppercase; letter-spacing: .02em; }
.ab-hours strong { display: block; margin-top: 2px; font: 700 31px/1.1 var(--f-head); color: #0c5f70; }
.ab-hours span { display: block; margin-top: 2px; font: 500 14px/1.2 var(--f-head); color: #3b5a60; text-transform: uppercase; }

/* dải cam kết teal */
.ab-trust {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 28px max(var(--gut), calc(50% - 624px)) 56px;
  background: linear-gradient(180deg, #2aa0a8, #1c8d97);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25);
  color: #fff;
}
.ab-trust li {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  padding: 4px 12px;
  font: 600 16px/1.35 var(--f-head); text-transform: uppercase; letter-spacing: .02em;
}
.ab-trust li + li { border-left: 1px solid rgba(255, 255, 255, .3); }
.ab-trust svg { width: 48px; height: 48px; }
.ab-trust svg.ab-trust__wide { width: 62px; }

/* ============================================================
   FOOTER
   ============================================================ */
.ab-footer { position: relative; z-index: 1; margin-top: -28px; }
.ab-footer__main {
  padding: 58px 0 44px;
  border-radius: 28px 28px 0 0;
  background: linear-gradient(180deg, #f1f9fa, #f6fbfc);
}
.ab-footer__grid {
  display: grid; grid-template-columns: 1.85fr 1fr 1.22fr 1.64fr; gap: 40px 44px;
}
.ab-footer__logo { display: block; width: 300px; max-width: 100%; }
.ab-footer__logo img { width: 100%; }
.ab-footer__slogan { margin-top: 8px; font: 500 17px/1.3 var(--f-body); color: #137e8a; letter-spacing: .01em; }
.ab-footer__about { margin-top: 22px; font-size: 16.5px; line-height: 1.65; color: #5d7074; }
.ab-footer__contact {
  display: grid; gap: 16px;
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid #cde5e8;
}
.ab-footer__contact li { display: flex; align-items: center; gap: 14px; font-size: 16.5px; color: #2f4a50; }
.ab-footer__contact address { font-style: normal; line-height: 1.45; }
.ab-footer__contact address span { color: #5d7074; }
.ab-footer__contact a:hover { color: var(--teal); }
.ab-footer__ico {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #187f8e, #0c5f70);
  color: #fff;
  box-shadow: 0 4px 10px rgba(12, 95, 112, .22);
}
.ab-footer__ico svg { width: 20px; height: 20px; }
.ab-footer__phone { font: 700 19px/1 var(--f-head); color: #0c5f70; letter-spacing: .01em; }

.ab-footer__h {
  font: 700 22px/1.2 var(--f-head); color: var(--teal-deep);
  text-transform: uppercase; letter-spacing: .005em;
}
.ab-footer__h::after {
  content: ""; display: block;
  width: 36px; height: 4px; margin-top: 12px; border-radius: 2px;
  background: linear-gradient(90deg, #f3cb62, #d59c32);
}
.ab-footer__h--gap { margin-top: 40px; }
.ab-footer__links { display: grid; gap: 18px; margin-top: 24px; }
.ab-footer__links a { font-size: 17px; color: #3e5256; transition: color .2s, padding .2s; }
.ab-footer__links a:hover { color: var(--teal); padding-left: 4px; }

.ab-social { display: flex; gap: 12px; margin-top: 24px; }
.ab-social a {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
  transition: transform .25s;
}
.ab-social a:hover { transform: translateY(-3px); }
.ab-social svg { width: 26px; height: 26px; }
.ab-social__fb { background: #1877f2; }
.ab-social__yt { background: #e62117; }
.ab-social__tt { background: #121212; }
.ab-social__zalo { background: #0a8cf0; font: 700 13px/1 var(--f-body); letter-spacing: -.01em; }

.ab-footer__support { display: grid; gap: 18px; margin-top: 24px; }
.ab-footer__support a { display: flex; align-items: center; gap: 14px; font-size: 16.5px; color: #2f4a50; transition: color .2s; }
.ab-footer__support a:hover { color: var(--teal); }
.ab-footer__support svg { width: 28px; height: 28px; color: #0f6475; }

.ab-map {
  position: relative;
  margin-top: 24px;
  aspect-ratio: .64;
  border: 1px solid #d6e6e9; border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 100, 110, .08);
}
.ab-map__art { display: block; width: 100%; height: 100%; }
.ab-map__hit { position: absolute; inset: 0; z-index: 1; }
.ab-map__card { z-index: 2; pointer-events: none; }
.ab-map__card {
  position: absolute; left: 17%; right: 4%; top: 25%;
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .14);
}
.ab-map__card::after {
  content: ""; position: absolute; left: 50%; bottom: -7px; translate: -50% 0;
  border: 7px solid transparent; border-bottom: 0; border-top-color: #fff;
}
.ab-map__card svg { width: 26px; height: 26px; color: #e53935; margin-top: 1px; }
.ab-map__card p { font-size: 11.5px; line-height: 1.35; color: #5a6b70; }
.ab-map__card strong { display: block; margin-bottom: 2px; font: 700 14.5px/1.2 var(--f-head); color: #1f2f33; }
.ab-footer__col--map .ab-btn-line { margin-top: 16px; }

/* chứng nhận */
.ab-certs { padding: 40px 0 34px; background: #fff; }
.ab-wrap--wide { max-width: calc(1320px + var(--gut) * 2); }
.ab-certs .ab-title { font-size: 30px; }
.ab-certs__grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin-top: 26px;
}
/* 4 ảnh thẻ gốc lệch tỉ lệ nhau chút ít — cắt về cùng một khung, bo góc bằng CSS */
.ab-certs__grid li { aspect-ratio: 2.95; border-radius: 12px; overflow: hidden; transition: translate .3s, box-shadow .3s; }
.ab-certs__grid picture { height: 100%; }
.ab-certs__grid img { width: 100%; height: 100%; object-fit: cover; }
.ab-certs__grid li:hover { translate: 0 -3px; box-shadow: 0 10px 22px rgba(15, 100, 110, .12); }

/* dải "Vì nụ cười của bạn" */
.ab-promise {
  position: relative;
  padding: 46px 0;
  background: #2b8f9b url("./images/cam-ket-bg.webp") center / cover no-repeat;
  isolation: isolate;
  color: #fff;
}
@supports (background-image: image-set(url("x.avif") type("image/avif"))) {
  .ab-promise { background-image: image-set(url("./images/cam-ket-bg.avif") type("image/avif"), url("./images/cam-ket-bg.webp") type("image/webp")); }
}
.ab-promise::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(20, 118, 133, .82), rgba(34, 138, 151, .7) 60%, rgba(30, 130, 144, .75));
}
.ab-promise__inner { display: grid; grid-template-columns: 420px 1fr; align-items: center; gap: 30px; }
.ab-promise__script {
  position: relative; justify-self: start;
  margin-left: 6px;
  font: 500 clamp(32px, 2.8vw, 40px)/1.2 var(--f-script);
  transform: rotate(-8deg);
  text-shadow: 0 2px 10px rgba(0, 50, 60, .25);
}
.ab-promise__script span { display: block; }
.ab-promise__script span + span { padding-left: 1.1em; }
.ab-promise__heart { display: inline-block; width: .9em; height: .9em; margin-left: .05em; vertical-align: 0; transform: rotate(10deg); }
.ab-promise__swash {
  display: block; width: 6.4em; height: .5em; margin: .15em 0 0 2.4em;
  fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; overflow: visible;
}
.ab-promise__list { display: grid; grid-template-columns: repeat(3, 1fr); }
.ab-promise__list li {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 0 12px;
  font: 600 17px/1.35 var(--f-head); text-transform: uppercase; letter-spacing: .02em;
  text-align: center;
}
.ab-promise__list li + li { border-left: 1px solid rgba(255, 255, 255, .4); }
.ab-promise__list svg { width: 50px; height: 50px; }
.ab-promise__list svg.ab-promise__wide { width: 64px; }

.ab-copy { padding: 26px 0; background: #0e6377; color: rgba(255, 255, 255, .9); font-size: 15px; }
.ab-copy__inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.ab-copy ul { display: flex; flex-wrap: wrap; }
.ab-copy li + li::before { content: "|"; margin: 0 18px; opacity: .55; }
.ab-copy a:hover { color: #f3cb62; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.ab-lightbox {
  position: fixed; inset: 0; z-index: 400;
  display: grid; place-items: center;
  padding: 24px;
  background: rgba(4, 36, 42, .82);
  backdrop-filter: blur(4px);
}
.ab-lightbox[hidden] { display: none; }
.ab-lightbox img { max-width: min(960px, 100%); max-height: 86vh; border-radius: 6px; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.ab-lightbox__close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  border: 0; background: rgba(255, 255, 255, .14); color: #fff;
}
.ab-lightbox__close svg { width: 22px; height: 22px; }

/* hiện dần khi cuộn tới */
.ab-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.ab-reveal.is-in { opacity: 1; transform: none; }
.ab-story.ab-reveal, .ab-partner.ab-reveal { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1), translate .35s, box-shadow .35s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1239px) {
  .ab-header__inner { gap: 18px; }
  .ab-search { flex-basis: 260px; }
  .ab-register__card { grid-template-columns: 1fr 1fr 1fr; padding: 22px 26px; }
  .ab-register__head { grid-column: 1 / -1; text-align: center; }
  .ab-btn-gold { grid-column: 1 / -1; justify-self: center; width: min(320px, 100%); }
  .ab-register__msg { grid-column: 1 / -1; text-align: center; }
  .ab-team__card { padding: 26px 26px 26px 30px; }
}

/* tablet: hero xếp chồng — chữ trên, ảnh bác sĩ dưới */
@media (max-width: 1099px) {
  .ab-hero { height: auto; --hero-h: auto; background: linear-gradient(180deg, #eef9fa, #e2f3f6); }
  .ab-hero::before { display: none; }
  .ab-hero__bg { position: relative; inset: auto; z-index: 0; order: 2; }
  .ab-hero__bg img {
    position: static; width: 100%; height: auto; left: auto;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 12%);
            mask-image: linear-gradient(180deg, transparent 0, #000 12%);
  }
  .ab-hero { display: flex; flex-direction: column; }
  .ab-hero__inner { order: 1; }
  .ab-hero__content { width: auto; padding: 44px 0 10px; display: grid; justify-items: center; text-align: center; }
  .ab-hero__features { justify-content: center; text-align: left; }
  .ab-hero__photos { margin-top: 26px; }
  .ab-hero__script--left { display: none; }
  .ab-hero__script--right { z-index: 1; right: 24px; bottom: 18px; font-size: 22px; }

  .ab-services__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }


  .ab-doctors__track { grid-auto-columns: calc((100% - var(--gap) * 2) / 3); }
  .ab-stats__grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}

/* đội ngũ: ảnh trên, hồ sơ dưới */
@media (max-width: 899px) {
  .ab-team__feature { grid-template-columns: 1fr; }
  .ab-team__photo { margin: -8px -10px 0; border-radius: 24px 24px 0 0; aspect-ratio: 1.45; }
  .ab-team__photo picture { left: 0; top: 0; width: 100%; }
  .ab-team__photo.is-portrait picture { left: 21%; top: 2%; width: 58%; }
  .ab-team__card { margin: -36px 0 0; }
  .ab-doctors__track { grid-auto-columns: calc((100% - var(--gap)) / 2); }
}

/* menu thu gọn */
@media (max-width: 991px) {
  :root { --head-h: 72px; }
  .ab-header__inner { height: 72px; }
  .ab-brand img { width: 170px; }
  .ab-search { display: none; }
  .ab-contact { margin-left: auto; border: 0; padding: 0; background: none; box-shadow: none; }
  .ab-hotline__text { display: none; }
  .ab-btn-book { height: 42px; padding: 0 16px; font-size: 15px; }
  .ab-burger { display: flex; margin-left: 0; }

  .ab-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    max-height: 0; overflow: hidden;
    transition: max-height .35s ease;
    box-shadow: 0 12px 24px rgba(9, 80, 92, .18);
  }
  .ab-nav.is-open { max-height: 80vh; overflow-y: auto; }
  .ab-nav__list { flex-direction: column; align-items: stretch; height: auto; padding: 8px var(--gut) 14px; }
  .ab-nav__list > li { height: auto; }
  .ab-nav__list > li > a { height: 46px; border-bottom: 1px solid rgba(255, 255, 255, .15); }
  .ab-nav__list > li > a::after { display: none; }
  .ab-nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; background: rgba(255, 255, 255, .1); box-shadow: none; border-radius: 8px; margin: 6px 0;
  }
  .ab-nav__has-sub.is-open .ab-nav__sub { display: block; }
  .ab-nav__sub a { color: #fff; }
  .ab-nav__sub a:hover { background: rgba(255, 255, 255, .12); color: #fff; }
}

@media (max-width: 767px) {
  :root { --gut: 16px; }
  .ab-title { font-size: 26px; }
  .ab-stats .ab-title { font-size: 24px; }

  .ab-hero__content { padding-top: 32px; }
  .ab-hero__title { font-size: clamp(38px, 11vw, 54px); white-space: normal; }
  .ab-hero__tagline { font-size: clamp(25px, 7.4vw, 34px); }
  .ab-hero__features { gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
  .ab-hero__features li { flex-direction: column; text-align: center; font-size: 12px; gap: 7px; width: calc(33.33% - 8px); }
  .ab-hero__ficon { width: 44px; height: 44px; }
  .ab-hero__photos {
    width: 100%; height: auto; perspective: none;
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  }
  .ab-hero__photo { position: static; width: auto !important; height: auto !important; transform: none !important; border-width: 3px; }
  .ab-hero__photo { border-radius: 8px; }
  .ab-hero__photo img { aspect-ratio: 1; border-radius: 5px; }
  .ab-hero__script--right { display: none; }

  .ab-register { margin-top: 0; padding-top: 18px; }
  .ab-register__card { grid-template-columns: 1fr; padding: 22px 18px; gap: 10px; }
  .ab-register__head h2 { font-size: 22px; }
  .ab-btn-gold { width: 100%; }

  .ab-services { padding-top: 44px; }
  .ab-services__grid { grid-template-columns: 1fr; margin-top: 26px; }
  .ab-svc__text strong { font-size: 20px; }

  .ab-team__card { padding: 24px 18px; }
  .ab-team__card h3 { font-size: 24px; }
  .ab-team__role { font-size: 17px; }
  .ab-team__bio, .ab-team__checks li { font-size: 15px; }
  .ab-team__certs { gap: 10px; }
  .ab-doctors { padding: 10px 10px 64px; }
  .ab-doctors__track { grid-auto-columns: 78%; }
  .ab-doctors__nav { top: auto; bottom: 10px; translate: none; width: 42px; height: 42px; }
  .ab-doctors__nav--prev { left: calc(50% - 50px); }
  .ab-doctors__nav--next { right: calc(50% - 50px); }

  .ab-stats__grid { gap: 12px; }
  .ab-stat { padding: 16px 8px 18px; }
  .ab-stat strong { font-size: 34px; }
  .ab-stat p { font-size: 14px; }
}

@media (max-width: 480px) {
  .ab-hotline { display: none; }
}

/* màn hẹp: nút đặt lịch chỉ còn icon để chừa chỗ cho nút ngôn ngữ */
@media (max-width: 560px) {
  .ab-header__inner { gap: 10px; }
  .ab-btn-book { width: 42px; height: 42px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .ab-btn-book svg { width: 20px; height: 20px; }
  .ab-header .dn-lang__btn { height: 42px; padding: 0 10px; }
}

@media (max-width: 420px) {
  .ab-brand img { width: 148px; }
}

/* ---------- các section cuối trang ---------- */
@media (max-width: 1239px) {
  .ab-partners__panel { margin: 0; }
  .ab-partners__grid { grid-template-columns: repeat(3, 1fr); }
  .ab-braces__inner { grid-template-columns: 430px 1fr 290px; }
  .ab-braces__title { font-size: 58px; }
  .ab-braces__perks li { padding: 0 8px; font-size: 12px; }
  .ab-braces__note { font-size: 24px; margin-left: 20px; }
  .ab-consult__card { width: 440px; margin-right: 0; padding: 36px 30px 28px; }
  .ab-consult__card h2 { font-size: 40px; }
  .ab-footer__grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; gap: 36px 28px; }
  .ab-trust li { font-size: 14.5px; gap: 12px; }
  .ab-trust svg { width: 42px; height: 42px; }
  .ab-mini__body strong { font-size: 15.5px; }
}

@media (max-width: 1099px) {
  .ab-stories__grid { gap: 18px; }
  .ab-story__body { padding: 22px 20px 22px; }
  .ab-story__body h3 { font-size: 19px; padding-left: 38px; }
  .ab-story__quote { width: 27px; height: 20px; }
  .ab-story__body h3 br { display: none; }
  .ab-press__grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .ab-video { grid-template-columns: 1fr; }
  .ab-video__media { aspect-ratio: 2.3; }
  .ab-video__media img { -webkit-mask-image: none; mask-image: none; }
  .ab-video__info { padding: 28px var(--gut) 34px; align-items: center; text-align: center; }
  .ab-video__info::before { display: none; }
  .ab-video__info .ab-pill { align-self: center; }

  /* niềng răng: chữ trên, người mẫu + so sánh dưới */
  .ab-braces { height: auto; }
  .ab-braces__inner {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "copy copy" "model compare";
    padding-top: 40px;
  }
  .ab-braces__copy { grid-area: copy; }
  .ab-braces__model { grid-area: model; min-height: 380px; }
  .ab-braces__model picture { top: 20px; width: min(400px, 100%); }
  .ab-braces__compare { grid-area: compare; padding: 30px 0 40px; }

  .ab-blog__grid { grid-template-columns: 1fr; }
  .ab-blog__list { grid-template-columns: repeat(3, 1fr); grid-template-rows: none; }
  .ab-mini { grid-template-columns: 1fr; gap: 10px; }
  .ab-mini__img img { aspect-ratio: 1.8; height: auto; }
  .ab-mini__body { padding: 0 8px 8px; }

  .ab-footer__grid { grid-template-columns: 1.3fr 1fr; }
  .ab-footer__col--map { grid-column: 2; grid-row: 1 / span 2; }
  .ab-map { aspect-ratio: .78; }
  .ab-trust { grid-template-columns: repeat(2, 1fr); row-gap: 20px; }
  .ab-trust li:nth-child(3) { border-left: 0; }
  .ab-trust li { justify-content: flex-start; padding-left: 10%; }
  .ab-certs__grid { grid-template-columns: repeat(2, 1fr); }
  .ab-promise__inner { grid-template-columns: 1fr; justify-items: center; gap: 34px; }
  .ab-promise__script { justify-self: center; }
  .ab-promise__list { width: 100%; }
}

@media (max-width: 991px) {
  /* câu chuyện khách hàng: vuốt ngang */
  .ab-stories__grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 26px calc(var(--gut) * -1) 0; padding: 4px var(--gut) 18px;
    scroll-padding-left: var(--gut);
    scrollbar-width: none;
  }
  .ab-stories__grid::-webkit-scrollbar { display: none; }
  .ab-story { scroll-snap-align: start; }
  .ab-story:hover { translate: none; }

  .ab-consult__bg { bottom: auto; height: 62vw; }
  .ab-consult__bg img { left: 0; width: 100%; object-position: 30% 20%; }
  .ab-consult::before { background: linear-gradient(180deg, rgba(227, 244, 247, 0) 30vw, #e3f4f7 62vw); }
  .ab-consult__inner { flex-direction: column; align-items: center; padding-top: 38vw; }
  .ab-consult__script { position: absolute; left: var(--gut); top: 18px; margin: 0; font-size: clamp(24px, 4.4vw, 34px); }
  .ab-consult__card { width: min(560px, 100%); }
}

@media (max-width: 767px) {
  .ab-stories { padding-top: 44px; }
  .ab-stories__grid { grid-auto-columns: 86%; }
  .ab-partners { padding-top: 30px; }
  .ab-partners__panel { padding: 26px 14px; }
  .ab-partners__grid { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
  .ab-partner { height: 78px; gap: 8px; }
  .ab-partner__mark { width: 32px; height: 32px; }
  .ab-partner__mark--wide { width: 40px; }
  .ab-partner__name strong { font-size: 17px; }
  .ab-partner__name small { font-size: 8.5px; white-space: normal; }

  .ab-press__grid { grid-template-columns: 1fr; gap: 16px; }
  .ab-news__body h3 br { display: none; }
  .ab-news__meta { flex-wrap: wrap; row-gap: 12px; }
  .ab-news__meta .ab-btn-line { margin-left: 0; }

  .ab-video__media { aspect-ratio: 1.7; }
  .ab-video__play { width: 64px; height: 64px; }
  .ab-video__play svg { width: 26px; height: 26px; }

  .ab-braces__inner { grid-template-columns: 1fr; grid-template-areas: "copy" "model" "compare"; padding-top: 34px; }
  .ab-braces__title { font-size: clamp(40px, 12vw, 54px); }
  .ab-braces__perks { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 14px; }
  .ab-braces__perks li { padding: 0; }
  .ab-braces__perks li + li { border-left: 0; padding-top: 8px; border-top: 1px solid #d3e7ea; }
  .ab-braces__perks br { display: none; }
  .ab-braces__model { min-height: 0; height: 104vw; max-height: 440px; margin-top: 10px; }
  .ab-braces__model picture { width: min(92vw, 420px); }
  .ab-braces__compare { padding: 20px 8px 36px; max-width: 420px; justify-self: center; width: 100%; }
  .ab-braces__note { margin-left: 0; }
  .ab-btn-pill { padding: 0 24px; font-size: 16px; }

  .ab-blog { padding-top: 44px; }
  .ab-post { grid-template-columns: 1fr; gap: 0; }
  .ab-post__img img { min-height: 0; aspect-ratio: 1.4; height: auto; }
  .ab-post__body { padding: 18px 12px 12px; }
  .ab-post__body h3 { font-size: 22px; }
  .ab-post__body h3 br { display: none; }
  .ab-post__meta { flex-wrap: wrap; gap: 12px 16px; }
  .ab-blog__list { grid-template-columns: 1fr; }
  .ab-mini { grid-template-columns: 38% 1fr; gap: 12px; }
  .ab-mini__img img { aspect-ratio: auto; height: 100%; }
  .ab-mini__body { padding: 4px 8px 4px 0; }
  .ab-mini__body strong { font-size: 15px; }
  .ab-mini__body strong br { display: none; }

  .ab-consult__script { display: none; }
  .ab-consult__inner { padding-top: 48vw; }
  .ab-consult__card { padding: 30px 18px 24px; border-radius: 18px; }
  .ab-consult__card h2 { font-size: 32px; }
  .ab-consult__lead br { display: none; }
  .ab-hours { gap: 12px; }
  .ab-hours__icon { width: 40px; height: 40px; }
  .ab-hours strong { font-size: 26px; }
  .ab-trust { grid-template-columns: 1fr 1fr; padding-top: 24px; column-gap: 8px; }
  .ab-trust li { flex-direction: column; text-align: center; justify-content: flex-start; padding: 0 4px; gap: 10px; font-size: 13px; border-left: 0 !important; }
  .ab-trust li br { display: none; }

  .ab-footer__main { padding-top: 44px; border-radius: 22px 22px 0 0; }
  .ab-footer__grid { grid-template-columns: 1fr 1fr; gap: 36px 20px; }
  .ab-footer__brand { grid-column: 1 / -1; }
  .ab-footer__col--map { grid-column: 1 / -1; grid-row: auto; }
  .ab-map { aspect-ratio: 1.1; }
  .ab-map__card { left: 22%; right: 16%; top: 22%; }
  .ab-footer__links { gap: 14px; }
  .ab-footer__links a, .ab-footer__support a { font-size: 15.5px; }
  .ab-certs .ab-title { font-size: 24px; }
  .ab-certs__grid { grid-template-columns: 1fr; gap: 10px; max-width: 440px; margin-left: auto; margin-right: auto; }
  .ab-promise { padding: 40px 0; }
  .ab-promise__list li { font-size: 13px; gap: 10px; padding: 0 6px; }
  .ab-promise__list svg { width: 40px; height: 40px; }
  .ab-promise__list svg.ab-promise__wide { width: 50px; }
  .ab-copy__inner { flex-direction: column; text-align: center; }
  .ab-copy ul { justify-content: center; gap: 6px 18px; }
  .ab-copy li + li::before { display: none; }
}

@media (max-width: 420px) {
  .ab-footer__grid { grid-template-columns: 1fr; }
  .ab-social a { width: 42px; height: 42px; }
}

/* xem video */
.ab-vmodal__frame { width: min(1000px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .4); }
.ab-vmodal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }

@media (prefers-reduced-motion: reduce) {
  .ab-video__play::after { animation: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .ab-reveal { opacity: 1; transform: none; }
}
