@import url('./assets/fonts.css');

/* Sophia English Academy */
:root {
  --paper: #F5F9FE;
  --paper-2: #EAF2FC;
  --white: #FFFFFF;
  --ink: #172744;
  --ink-soft: #475971;
  --ink-blue: #284D7B;
  --navy: #142D51;
  --navy-light: #DCEAFF;
  --red: #AB263D;
  --red-deep: #851831;
  --coral: #EE727C;
  --rose: #FFF0F2;
  --gold: #D7A842;
  --gold-soft: #F1E3BE;
  --rule: #DCE6F2;
  --rule-strong: #B6C9DF;
  --field: #778CA9;
  /* Chỉ dùng cho ?bia=do-tram */
  --oxblood: #410B17;
  --cream: #F6EEDC;
  --cream-soft: #EADBC8;

  --shadow: 0 5px 14px #142d5110;
  --shadow-lift: 0 18px 34px -20px #142d5160;
  --radius: 10px;
  --radius-lg: 18px;
  --serif: 'Source Serif 4', 'Noto Serif', Georgia, 'Times New Roman', serif;
  --sans: 'Be Vietnam Pro', system-ui, 'Segoe UI', Roboto, Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --max: 1180px;
  --header-h: 64px;
  --contact-h: 44px;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--sans); font-size: 1rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; line-height: 1.22; margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--serif); letter-spacing: -.012em; }
h2 { font-size: clamp(1.7rem, 2vw + 1.05rem, 2.5rem); line-height: 1.16; margin-bottom: 1rem; }
p { margin: 0 0 1rem; text-wrap: pretty; }
a { color: var(--ink-blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--red); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ink-blue); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--white); padding: .75rem 1rem; border-radius: 6px; }
.skip:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

.eyebrow {
  display: flex; align-items: center; gap: .6rem; margin: 0 0 .7rem;
  color: var(--ink-soft); font-size: .95rem; font-weight: 600; letter-spacing: .01em;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--red); }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 48px; padding: .7rem 1.4rem;
  background: var(--red); color: var(--white);
  border: 1px solid var(--red); border-radius: 999px;
  font: 600 1rem/1.3 var(--sans); text-decoration: none; text-align: center; cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .2s ease, translate .2s var(--ease-out);
}
.btn:hover { background: var(--red-deep); border-color: var(--red-deep); color: var(--white); text-decoration: none; }
.btn-small { min-height: 44px; padding: .5rem 1.1rem; font-size: .95rem; }
.btn-line, .btn-cream { background: var(--white); color: var(--ink); border-color: var(--ink); }
.btn-line:hover, .btn-cream:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- Đầu trang ---------- */
.site-header { position: sticky; top: calc(-1 * var(--contact-h)); z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--rule); }
.contact-bar { height: var(--contact-h); background: var(--navy); color: var(--white); }
.contact-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.contact-addr {
  display: inline-flex; align-items: center; gap: .5rem; min-height: 40px;
  color: var(--white); font-size: .88rem; text-decoration: none; white-space: nowrap;
}
.contact-addr:hover { color: var(--white); text-decoration: underline; }
.contact-addr .pin { width: 11px; height: 11px; background: #FF99A1; }
.contact-addr .pin::after { inset: 3px; background: var(--navy); }
.contact-bar :focus-visible { outline-color: var(--white); }
.contact-phones { display: flex; align-items: center; list-style: none; margin: 0; padding: 0; }
.contact-phones li + li { border-left: 1px solid #ffffff26; }
.contact-phones a {
  display: flex; align-items: center; gap: .5rem; min-height: 40px; padding: 0 .9rem;
  color: var(--white); font-size: .88rem; line-height: 1.15; text-decoration: none; white-space: nowrap;
}
.contact-phones li:last-child a { padding-right: 0; }
.contact-phones a:hover { color: var(--white); }
.contact-phones a:hover .c-num { text-decoration: underline; text-underline-offset: 3px; }
.contact-phones a:focus-visible { outline-offset: -2px; }
.c-label { color: var(--navy-light); }
.c-num { font-weight: 600; font-variant-numeric: tabular-nums; }
.contact-phones li:first-child .c-num { color: #FFBDCA; }

@media (max-width: 899px) {
  .contact-inner { gap: .6rem; }
  .contact-addr, .contact-phones a { min-height: var(--contact-h); gap: .35rem; font-size: .78rem; }
  .contact-phones a { padding-inline: 0; }
  .contact-phones li + li { display: none; }
  .contact-phones .c-label { font-size: .72rem; }
}
@media (max-width: 399px) {
  .contact-city { display: none; }
}

.header-bar {
  width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand { display: inline-flex; align-items: center; gap: .65rem; min-height: 44px; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand img { height: 44px; width: auto; }
.brand-name { font: 600 1.08rem/1.05 var(--serif); }
.brand-name span { font: 600 .72rem/1 var(--sans); letter-spacing: .015em; color: var(--ink-soft); }

.menu-btn {
  display: none; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .9rem;
  background: var(--white); color: var(--ink); border: 1px solid var(--rule-strong); border-radius: 6px;
  font: 600 .95rem var(--sans); cursor: pointer;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  display: block; width: 18px; height: 2px; background: currentColor; content: ""; position: relative;
  transition: transform .2s ease, top .2s ease;
}
.menu-icon::before { position: absolute; top: -6px; }
.menu-icon::after { position: absolute; top: 6px; }
.menu-btn[aria-expanded="true"] .menu-icon { background: transparent; }
.menu-btn[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav ul { display: flex; gap: clamp(.85rem, 1.6vw, 1.4rem); list-style: none; margin: 0; padding: 0; }
.site-nav ul a {
  display: inline-flex; align-items: center; min-height: 44px; color: var(--ink);
  text-decoration: none; font-size: .97rem; font-weight: 500;
  background: linear-gradient(var(--red), var(--red)) 0 calc(100% - 8px) / 0 2px no-repeat;
  transition: background-size .2s ease;
}
.site-nav ul a:is(:hover,[aria-current="page"]) { color: var(--ink); background-size: 100% 2px; }
.menu-contacts { display: none; }

@media (max-width: 1120px) {
  .header-bar { gap: .5rem; }
  .js .menu-btn { display: inline-flex; }
  .site-nav { width: 100%; flex-direction: column; align-items: stretch; gap: .5rem; padding-bottom: 1rem; }
  .js .site-nav[hidden] { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul li { border-top: 1px solid var(--rule); }
  .site-nav ul a { width: 100%; min-height: 48px; font-size: 1rem; background: none; }
  .site-nav ul a:is(:hover,[aria-current="page"]) { color: var(--red); }
  .site-nav .btn { width: 100%; }
}
@media (max-width: 420px) {
  .brand { min-width: 0; max-width: calc(100% - 54px); gap: .5rem; }
  .menu-btn { flex: none; justify-content: center; width: 44px; padding: 0; }
  .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
@media (max-width: 899px) {
  .menu-contacts { display: flex; flex-wrap: wrap; gap: .25rem .5rem; margin-top: .2rem; }
  .menu-contacts a {
    flex: 1 1 8rem; display: grid; align-content: center; gap: .15rem; min-height: 44px;
    padding: .45rem .6rem; border: 1px solid var(--rule); border-radius: 6px;
    color: var(--ink); font-size: .82rem; line-height: 1.2; text-decoration: none;
  }
  .menu-contacts a:hover { background: var(--paper); }
  .menu-contacts .c-label { color: var(--ink-soft); font-size: .73rem; }
}

/* Thanh so bìa: chỉ hiện khi có ?bia= */
.cover-compare { display: none; }
html[data-cover] .cover-compare { display: block; border-bottom: 1px solid var(--rule); background: var(--white); }
.cover-compare-inner { display: flex; align-items: center; gap: .5rem; min-height: 52px; }
.cover-compare-inner > span { margin-right: .25rem; color: var(--ink-soft); font-size: .94rem; }
.cover-compare a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: .85rem;
  border-bottom: 2px solid transparent; color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 600;
}
.cover-compare a:hover { color: var(--red); }
html[data-cover="do-tram"] [data-cover-option="do-tram"],
html[data-cover="mat-tien"] [data-cover-option="mat-tien"] { color: var(--red); border-color: currentColor; }

/* ---------- Màn đầu và ảnh mặt tiền ---------- */
.hero-stage { background: var(--paper); overflow: clip; }
.hero {
  display: grid; gap: 1.75rem;
  max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.5rem) var(--gutter) clamp(2.25rem, 5vw, 3rem);
}
.hero-art { display: none; }
.hero-text, .hero-visual { animation: rise .48s var(--ease-out) both; }
.hero-visual { animation-delay: .1s; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.hero h1 {
  max-width: 20ch; margin: 0 0 1rem;
  font-size: clamp(2rem, 5.2vw + .65rem, 2.6rem); line-height: 1.1; letter-spacing: -.02em; color: var(--ink); text-wrap: balance;
}
.h1-lead, .h1-accent { display: block; }
.h1-accent { width: fit-content; max-width: 100%; color: var(--red); margin-top: .08em; }
.lede { max-width: 33rem; font-size: 1.08rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem 1.5rem; margin: 1.4rem 0 0; }
.hero-film { gap: .6rem; color: var(--ink); }
.hero-film .play-ico { border-left-color: var(--red); }
.hero-visual { position: relative; isolation: isolate; padding: .5rem .45rem 0 0; }
.hero-visual::before {
  content: ""; position: absolute; z-index: -1; inset: 0 0 22% 18%; border-radius: 24px 24px 24px 44%;
  background: var(--navy); translate: var(--layer-x, 0px) var(--layer-y, 0px);
}
.frontage-cover { position: relative; margin: 0; }
.frontage-cover img {
  position: relative; z-index: 1;
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 36%;
  border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: 0 16px 32px -24px #142d5170;
}
.hero-address {
  position: relative; z-index: 3; display: flex; align-items: center; flex-wrap: wrap; gap: .25rem .75rem;
  margin: -1.9rem .75rem 0; padding: .45rem .45rem .45rem .9rem;
  color: var(--white); background: var(--navy); border: 1px solid #ffffff3d; border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-address strong { flex: 1 1 10rem; display: flex; align-items: center; gap: .55rem; font-weight: 600; line-height: 1.3; }
.pin { flex: none; position: relative; width: 14px; height: 14px; background: var(--red); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.pin::after { content: ""; position: absolute; inset: 4px; background: var(--white); border-radius: 50%; }
.hero-address .pin { background: #FF99A1; }
.hero-address .pin::after { background: var(--navy); }
.hero-address :focus-visible { outline-color: var(--white); }
.hero-address a {
  display: inline-flex; align-items: center; min-height: 44px; padding-inline: .9rem; margin-left: auto;
  background: var(--white); color: var(--navy); border: 1px solid var(--white); border-radius: 7px; font-weight: 600; text-decoration: none;
}
.hero-address a:hover { background: var(--navy-light); border-color: var(--navy-light); }
.hero-moments {
  position: relative; z-index: 2; width: min(96%, 22rem);
  height: clamp(7.5rem, 33vw, 9.5rem); margin: .8rem auto 0;
}
.hero-moment {
  position: absolute; bottom: .35rem; width: 41%; margin: 0; padding: 4px 4px .3rem;
  background: var(--white); border: 1px solid var(--rule); border-radius: 11px; box-shadow: var(--shadow-lift);
}
.hero-moment img { width: 100%; aspect-ratio: 1.2; object-fit: cover; border-radius: 6px; }
.hero-moment figcaption { padding: .3rem .2rem 0; font-size: .67rem; font-weight: 600; line-height: 1.3; }
.hero-moment--weather { left: 7%; rotate: -11deg; }
.hero-moment--weather img { object-position: 32% 52%; }
.hero-moment--group { right: 7%; rotate: 10deg; }
.hero-moment--group img { object-position: center 44%; }
.hero-moment--culture { left: 29.5%; bottom: 0; rotate: -4deg; }

@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center;
    column-gap: clamp(2.5rem, 5vw, 4.5rem); padding-block: clamp(2.75rem, 5vw, 4.5rem);
  }
  .hero-text { grid-area: 1 / 1; }
  .hero-visual { grid-area: 1 / 2; padding: 1.2rem 1.15rem 2.9rem 0; }
  .hero-visual::before {
    inset: 0 0 12% 28%; border-radius: 36px 36px 36px 50%;
    box-shadow: 10px -8px 0 0 #F8CCD4;
  }
  .hero-visual::after {
    content: ""; position: absolute; z-index: -1; inset: 13% 72% 46% -2%;
    border-radius: 50%; border: 1px solid #7FA9D9;
    box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px #B0CBEA, 0 0 0 17px var(--paper), 0 0 0 18px #D1E3F9;
    translate: var(--layer-x, 0px) var(--layer-y, 0px);
  }
  .frontage-cover { margin-left: 11%; }
  .frontage-cover img { aspect-ratio: 10 / 9; object-position: 50% 39%; }
  .hero-address { position: absolute; right: 1rem; bottom: 1rem; margin: 0; max-width: min(21rem, 66%); }
  .hero-moments {
    position: absolute; inset: auto auto 0 0; width: 38%; height: auto; aspect-ratio: .92;
    margin: 0;
  }
  .hero-moment { padding: 6px 6px .45rem; border-radius: var(--radius-lg); }
  .hero-moment img { aspect-ratio: 1; border-radius: 7px; }
  .hero-moment figcaption { padding: .4rem .3rem 0; font-size: clamp(.65rem, .45vw + .32rem, .95rem); }
  .hero-moment--weather {
    left: -12%; bottom: 45%; width: 78%; rotate: -14deg;
    translate: var(--layer-x, 0px) var(--layer-y, 0px);
  }
  .hero-moment--group {
    right: auto; left: 48%; bottom: 20%; width: 78%; rotate: 11deg;
    translate: calc(var(--photo-x, 0px) * .45) calc(var(--photo-y, 0px) * .45);
  }
  .hero-moment--culture {
    left: 0; bottom: 0; width: 100%;
    translate: var(--photo-x, 0px) var(--photo-y, 0px);
  }
  .hero h1 { font-size: clamp(2.8rem, 3.6vw + .5rem, 3.9rem); }
  .lede { font-size: 1.15rem; }
}

/* ---------- Màn đầu, phương án ?bia=do-tram (giữ để so sánh) ---------- */
html[data-cover="do-tram"] .hero-stage { background: var(--oxblood); }
html[data-cover="do-tram"] .hero-visual { display: none; }
html[data-cover="do-tram"] .hero {
  max-width: none; gap: 1.5rem; overflow: hidden;
  background: var(--oxblood); color: var(--cream);
  padding: clamp(1.5rem, 5vw, 2.5rem) var(--gutter) 0;
}
html[data-cover="do-tram"] .hero-text { padding: 0; max-width: 36rem; }
html[data-cover="do-tram"] .hero h1 { color: var(--cream); }
html[data-cover="do-tram"] .h1-accent { color: var(--gold); background: none; }
html[data-cover="do-tram"] .hero .lede { color: var(--cream); }
html[data-cover="do-tram"] .hero .btn { background: var(--cream); color: var(--oxblood); border-color: var(--cream); }
html[data-cover="do-tram"] .hero .btn:hover { background: var(--gold); border-color: var(--gold); }
html[data-cover="do-tram"] .hero .text-link { color: var(--cream); }
html[data-cover="do-tram"] .hero .play-ico { border-left-color: currentColor; }
html[data-cover="do-tram"] .hero :focus-visible { outline-color: var(--cream); }
html[data-cover="do-tram"] .hero-art { display: block; position: relative; margin: .5rem calc(-1 * var(--gutter)) 0; }
.hero-art-frame { position: relative; overflow: hidden; aspect-ratio: 5 / 4; border-top-left-radius: clamp(3rem, 12vw, 8rem); background: #2D0710; }
.hero-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-mark { position: absolute; left: 50%; top: 50%; width: 46%; height: auto; transform: translate(-50%, -50%); }
@media (min-width: 1000px) {
  html[data-cover="do-tram"] .hero {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; column-gap: clamp(2rem, 4vw, 4rem);
    padding: clamp(2.5rem, 4vw, 3.5rem) 0 clamp(2.5rem, 4vw, 3.5rem) max(var(--gutter), calc((100vw - var(--max)) / 2));
  }
  html[data-cover="do-tram"] .hero-text { grid-area: 1 / 1; }
  html[data-cover="do-tram"] .hero-art { grid-area: 1 / 2; margin: 0; }
  html[data-cover="do-tram"] .hero h1 { font-size: clamp(2.9rem, 3.7vw + .5rem, 4rem); margin-bottom: 1.5rem; }
  html[data-cover="do-tram"] .hero-art-frame { aspect-ratio: 1 / 1; }
}

/* ---------- Lộ trình năm mốc: bậc thang phẳng ---------- */
.road-sec { background: var(--white); padding-block: clamp(2.75rem, 6vw, 4.5rem); }
.road-head { max-width: 44rem; }
.road-head h2 { margin-bottom: .5rem; }
.road-head p:last-child { margin: 0; color: var(--ink-soft); }

.road { list-style: none; margin: 1.65rem 0 0; padding: 0; display: grid; gap: .65rem; }
.road li { --track-ink: var(--ink-blue); --track-bg: #ECF4FF; --track-line: #C9DDF4; }
.road li:nth-child(1) { --track-ink: #9A2F45; --track-bg: #FFF0F2; --track-line: #F3C7D0; }
.road li:nth-child(3) { --track-ink: #214F89; --track-bg: #E6EFFB; --track-line: #BBD3EF; }
.road li:nth-child(4) { --track-ink: #92273D; --track-bg: #FDE4E9; --track-line: #EBBBC7; }
.road li:nth-child(5) { --track-ink: #DCEAFF; --track-bg: var(--navy); --track-line: var(--navy); }
.road a {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 2rem; align-content: start; gap: .18rem .65rem;
  min-height: 100%; padding: .95rem 1rem; color: var(--ink); background: var(--track-bg);
  border: 1px solid var(--track-line); border-radius: var(--radius-lg); text-decoration: none;
  transition: box-shadow .24s ease, translate .24s var(--ease-out), border-color .24s ease;
}
.road a::after {
  content: "→"; display: grid; place-items: center; align-self: center; grid-area: 1 / 2 / 4 / 3;
  width: 2rem; height: 2rem; border-radius: 50%; color: var(--track-ink); border: 1px solid currentColor;
  font: 600 1rem/1 var(--sans); transition: translate .24s var(--ease-out);
}
.road a:is(:focus-visible, [aria-current="location"]) { outline: 2px solid var(--red); outline-offset: 3px; }
.road li:nth-child(5) a { color: var(--white); }
.road-age { grid-column: 1; color: var(--track-ink); font: 600 1.33rem/1.22 var(--serif); }
.road-name { grid-column: 1; font-weight: 600; line-height: 1.35; }
.road-focus { grid-column: 1; color: var(--ink-soft); font-size: .94rem; line-height: 1.5; }
.road li:nth-child(5) .road-focus { color: var(--navy-light); }
.road-more { display: none; }

.road-notes { display: grid; gap: .6rem; margin-top: 1.15rem; }
.road-notes p { margin: 0; padding: .8rem 1rem; background: var(--paper); border-radius: var(--radius); line-height: 1.55; }
.road-notes strong { margin-right: .25rem; }
.road-notes .road-chuyen { border-left: 3px solid var(--red); }
.road-notes .road-base { border-left: 3px solid #6899D0; }
@media (min-width: 640px) {
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .road-notes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .road { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .85rem; }
  .road a { grid-template-columns: 1fr; grid-template-rows: auto auto 1fr auto; gap: .45rem; padding: 1.05rem .95rem 1.15rem; }
  .road a::after { display: none; }
  .road-age { font-size: clamp(1.45rem, 1.15vw + .8rem, 1.85rem); }
  .road-more { display: block; margin-top: .4rem; color: var(--track-ink); font-size: .85rem; font-weight: 600; }
  .road-more::after { content: " →"; }
}

/* ---------- Về Sophia ---------- */
.about { background: var(--paper); border-block: 1px solid var(--rule); }
.about-intro { display: grid; gap: 1.75rem; }
.about-lede { font-size: 1.12rem; line-height: 1.6; max-width: 36rem; }
.about-story { max-width: 36rem; margin: 0; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--ink-soft); }
.about-photo { margin: 0; }
.about-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); background: var(--paper-2); box-shadow: var(--shadow-lift); }
.about-photo figcaption { padding-top: .5rem; color: var(--ink-soft); font-size: .95rem; }
@media (min-width: 900px) {
  .about-intro { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: end; }
}

.care { margin-top: clamp(2.25rem, 5vw, 3.25rem); padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.care h3 { font: 600 1.4rem/1.25 var(--serif); margin-bottom: 1rem; }
.care-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.care-list li { display: grid; gap: .2rem; padding-top: 1rem; border-top: 1px solid var(--rule); }
.care-list li:first-child { padding-top: 0; border-top: 0; }
.care-list strong { font-weight: 600; }
.care-list strong::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .55rem; border-radius: 50%; background: var(--red); vertical-align: .15em; }
.care-list span { color: var(--ink-soft); }
@media (min-width: 860px) {
  .care-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
  .care-list li, .care-list li:first-child { padding: 0 1.5rem; border-top: 0; border-left: 1px solid var(--rule); }
  .care-list li:first-child { padding-left: 0; border-left: 0; }
  .care-list li:last-child { padding-right: 0; }
}

/* ---------- Một vòng quanh Sophia ---------- */
.reel { --card-w: min(78vw, 340px); background: var(--navy); color: var(--white); padding-block: clamp(2.75rem, 6vw, 4.5rem) 2.6rem; overflow: hidden; }
.reel :focus-visible { outline-color: #FEA8B4; }
@media (min-width: 900px) { .reel { --card-w: 360px; } }
.reel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: .5rem; }
.reel-head h2 { margin: 0; }
.reel-hint { margin: .35rem 0 0; font-size: .95rem; color: var(--navy-light); }
.reel-nav { display: flex; align-items: center; gap: .6rem; flex: none; }
.reel-count { color: var(--navy-light); min-width: 2.8rem; text-align: center; font-size: .95rem; font-variant-numeric: tabular-nums; }
html:not(.js) .reel-nav { display: none; }
@media (max-width: 520px) {
  .reel-head { flex-wrap: wrap; gap: .75rem; align-items: center; }
  .reel-head > div:first-child { flex: 1 0 100%; }
}
.reel-btn {
  display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  background: var(--white); color: var(--ink); border: 1px solid var(--ink); border-radius: 50%; cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.reel-btn:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.reel-btn[disabled], .reel-btn[aria-disabled="true"] { opacity: .35; cursor: default; background: var(--white); color: var(--ink); }
.reel-btn span { display: block; width: 11px; height: 11px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
.reel-next span { transform: rotate(45deg) translate(-2px, 2px); }
.reel-prev span { transform: rotate(-135deg) translate(-2px, 2px); }

.reel-track {
  --track-gutter: max(var(--gutter), calc((100% - var(--max)) / 2));
  display: flex; gap: clamp(1rem, 2.5vw, 2rem); list-style: none; margin: 0;
  padding: 2rem var(--track-gutter) 1rem;
  scroll-padding-inline: var(--track-gutter);
  overflow-x: auto; overscroll-behavior-x: contain; scroll-behavior: smooth;
  scroll-snap-type: x mandatory; scrollbar-width: none;
}
.reel-track::-webkit-scrollbar { display: none; }
.reel-track:focus-visible { outline-offset: -6px; }
.js .reel-track { cursor: grab; }
.reel-track.is-dragging { scroll-snap-type: none; scroll-behavior: auto; user-select: none; -webkit-user-select: none; }
.js .reel-track.is-dragging { cursor: grabbing; }
.reel-track.is-dragging a, .reel-track.is-dragging img { pointer-events: none; }

.media-item { flex: 0 0 var(--card-w); scroll-snap-align: start; }
.media-item:last-child { scroll-snap-align: end; }
.media-frame {
  position: relative; display: block; aspect-ratio: 5 / 4; overflow: hidden; padding: 5px;
  border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--white);
  transform: translateY(10px) scale(.96); transform-origin: 50% 100%;
  transition: transform .24s var(--ease-out), box-shadow .24s ease, border-color .24s ease;
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 7px; -webkit-user-drag: none; transition: scale .32s var(--ease-out); }
.activity-frame img { object-position: center 45%; }
.media-video img { object-position: center 43%; }
@media (hover: hover) and (pointer: fine) { .media-frame:hover img { scale: 1.03; } }
.media-item[data-side="before"] .media-frame { transform: translateY(12px) rotate(-2deg) scale(.95); }
.media-item[data-side="after"] .media-frame { transform: translateY(12px) rotate(2deg) scale(.95); }
.media-item.is-current .media-frame { transform: translateY(-6px) scale(1.02); border-color: #FFA4B1; box-shadow: 0 0 0 2px #FFA4B1, 0 16px 32px -16px #08162e; }
.media-caption { margin: 1.1rem 0 0; display: flex; flex-direction: column; gap: .1rem; }
.media-caption strong { font-weight: 600; font-size: 1.08rem; line-height: 1.3; }
.media-caption span { color: var(--navy-light); }
.media-caption a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); font-weight: 600; }

.media-play {
  display: grid; place-items: center; position: absolute; inset: auto auto .8rem .8rem;
  width: 44px; height: 44px; border-radius: 50%; color: var(--white); background: var(--red); border: 2px solid var(--white);
}

/* ---------- Video giới thiệu ---------- */
.promo { padding-block: clamp(3rem, 7vw, 5rem); background: var(--white); border-block: 1px solid var(--rule); }
.promo-in { display: grid; gap: 2rem; align-items: center; }
.promo-poster { position: relative; display: block; }
.promo-poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--paper-2); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.promo-poster-play {
  position: absolute; left: 1rem; bottom: 1rem; display: grid; place-items: center; width: 3.5rem; height: 3.5rem;
  color: var(--white); background: var(--red); border: 3px solid var(--white); border-radius: 50%;
  transition: transform .2s var(--ease-out), background-color .2s ease;
}
.promo-poster:hover .promo-poster-play, .promo-poster:focus-visible .promo-poster-play { transform: scale(1.06); background: var(--red-deep); }
.promo-text h2 { margin-bottom: 1rem; }
.promo-text p { max-width: 30rem; color: var(--ink-soft); }
.btn-play { margin-top: .5rem; }
.play-ico { width: 0; height: 0; border-block: 6px solid transparent; border-left: 10px solid currentColor; }
.promo-nojs { display: none; margin-top: .75rem; }
html:not(.js) .promo-nojs { display: block; }
html:not(.js) .btn-play { display: none; }
@media (min-width: 900px) { .promo-in { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 6vw, 5rem); } }

.promo-dialog {
  width: min(100% - 2rem, 1040px); max-height: calc(100dvh - 2rem); padding: 0;
  border: 0; border-radius: var(--radius-lg); background: #1E1B19; color: var(--white); overflow: auto;
}
.promo-dialog::backdrop { background: rgba(20, 18, 16, .82); }
.promo-dialog[open] { animation: dialog-in .22s var(--ease-out) both; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.promo-dialog-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem .6rem .6rem 1.25rem; }
.promo-dialog-bar h2 { margin: 0; font: 600 1.15rem/1.3 var(--sans); letter-spacing: 0; color: var(--white); }
.promo-close {
  position: relative; flex: none; width: 44px; height: 44px; padding: 0;
  background: transparent; border: 2px solid var(--white); border-radius: 50%; color: var(--white); cursor: pointer;
}
.promo-close:hover { background: var(--white); color: var(--ink); }
.promo-close span::before, .promo-close span::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 2px; background: currentColor; }
.promo-close span::before { transform: translate(-50%, -50%) rotate(45deg); }
.promo-close span::after { transform: translate(-50%, -50%) rotate(-45deg); }
.promo-dialog :focus-visible { outline-color: var(--white); }
.promo-dialog video { display: block; width: 100%; max-height: calc(100dvh - 10rem); background: #000; }
.promo-fallback { margin: 0; padding: .75rem 1.25rem 1rem; font-size: .95rem; color: #E6DFD4; }
.promo-fallback a, .promo-dialog video a { color: var(--gold-soft); }

/* ---------- Thành tích: phiếu sáng, viền mảnh ---------- */
.achievements { background: var(--rose); padding-block: clamp(3.25rem, 7vw, 5rem); }
.ach-head h2 { margin-bottom: .6rem; }
.ach-intro { max-width: 40rem; color: var(--ink-soft); margin-bottom: 0; }
.ach-records { display: grid; gap: 1.25rem; margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.record { min-width: 0; padding: .6rem; background: var(--white); border: 1px solid #F1D3DB; border-radius: var(--radius-lg); box-shadow: var(--shadow); transition: translate .24s var(--ease-out), box-shadow .24s ease; }
.record-photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 7px; background: var(--paper-2); }
.record-copy { padding: .9rem .75rem .65rem; }
.record-title { font: 600 clamp(1.2rem, 1.4vw + .6rem, 1.42rem)/1.3 var(--serif); text-wrap: initial; }
.record-title::before { content: ""; display: block; width: 22px; height: 3px; margin-bottom: .65rem; background: var(--coral); }
.record-copy p { margin: .4rem 0; color: var(--ink-soft); }
.record-copy a { display: flex; align-items: center; min-height: 44px; font-size: .92rem; }
@media (min-width: 800px) { .ach-records { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; } }
[data-reveal].in { animation: rise .5s var(--ease-out) both; }

/* ---------- Phần đọc ---------- */
.section { padding-block: clamp(3.25rem, 8vw, 5.5rem); }
.section-white, .section.tint { background: var(--white); border-block: 1px solid var(--rule); }
.split { display: grid; gap: 2rem; }
.split-head p { max-width: 38rem; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
  .split-head { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* Lộ trình chi tiết */
.axis { padding-left: 1rem; border-left: 3px solid #6899D0; font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.5; }
.stages { list-style: none; margin: 0; padding: 0; counter-reset: chang; }
.stage {
  position: relative; counter-increment: chang; scroll-margin-top: calc(var(--header-h) + 20px);
  padding: 1.25rem 1.25rem 1.5rem 4rem; border-radius: var(--radius);
  transition: background-color .24s ease, box-shadow .24s ease;
}
.stage::before {
  content: counter(chang); position: absolute; left: .75rem; top: 1.25rem; z-index: 1;
  display: grid; place-items: center; width: 2.25rem; height: 2.25rem;
  background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: 50%; font: 600 1.05rem var(--serif);
}
.stage:not(:last-child)::after { content: ""; position: absolute; left: calc(.75rem + 1.125rem - 1px); top: 3.5rem; bottom: -1.25rem; width: 2px; background: var(--rule-strong); }
.stage h3 { font: 600 1.55rem/1.2 var(--serif); margin-bottom: .6rem; }
.stage h3 span { display: block; margin-top: .15rem; font: 400 1.02rem/1.4 var(--sans); color: var(--ink-soft); }
.stage dl { margin: 0; }
.stage dt { font-weight: 600; color: var(--ink); margin-top: .75rem; font-size: .95rem; }
.stage dd { margin: 0; max-width: 38rem; }
.stage:target { background: var(--white); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.stage:target::before { background: var(--red); border-color: var(--red); color: var(--white); }
@media (max-width: 520px) {
  .stage { padding: 1rem .75rem 1.25rem 3.25rem; }
  .stage::before { left: .25rem; top: 1rem; }
  .stage:not(:last-child)::after { left: calc(.25rem + 1.125rem - 1px); top: 3.25rem; }
  .stage h3 { font-size: 1.4rem; }
}

.cambridge { margin-top: clamp(3rem, 6vw, 4.5rem); padding: clamp(1.5rem, 4vw, 2.25rem); background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); max-width: 48rem; }
.cambridge h3 { font: 600 1.5rem/1.25 var(--serif); margin-bottom: .5rem; }
.ladder { list-style: none; margin: .75rem 0 1.25rem; padding: 0; display: grid; gap: .4rem; }
.ladder li { display: flex; gap: .85rem; align-items: center; min-height: 44px; padding: .35rem .75rem; background: var(--paper); border: 1px solid var(--rule); border-radius: 6px; }
.ladder span { flex: 0 0 3.9rem; padding: .1rem 0; text-align: center; font-weight: 600; color: var(--ink-blue); background: var(--white); border: 1px solid var(--rule); border-radius: 4px; }
@media (min-width: 640px) {
  .ladder li:nth-child(2) { margin-left: .9rem; }
  .ladder li:nth-child(3) { margin-left: 1.8rem; }
  .ladder li:nth-child(4) { margin-left: 2.7rem; }
  .ladder li:nth-child(5) { margin-left: 3.6rem; }
  .ladder li:nth-child(6) { margin-left: 4.5rem; }
}
.after-cta { margin: 2.5rem 0 0; }

/* Cơ sở */
.location { display: grid; background: var(--paper-2); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: clamp(2rem, 5vw, 3rem); }
.location-photo { margin: 0; }
.location-photo img { width: 100%; height: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 32%; }
.location-text { padding: clamp(1.5rem, 4vw, 2.75rem); align-self: center; }
.location h3 { font: 600 clamp(1.45rem, 1.5vw + 1rem, 2rem)/1.2 var(--serif); margin-bottom: .6rem; }
.address { display: flex; align-items: center; gap: .6rem; font-weight: 600; font-size: clamp(1.1rem, 1vw + .9rem, 1.35rem); line-height: 1.3; margin-bottom: .6rem; }
.location-note { color: var(--ink-soft); margin-bottom: 1.4rem; }
@media (min-width: 800px) {
  .location { grid-template-columns: 7fr 5fr; }
  .location-photo img { aspect-ratio: auto; min-height: 380px; }
}
.gallery { display: grid; gap: 1.25rem; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; object-fit: cover; background: var(--paper-2); border-radius: var(--radius-lg); }
.gallery figcaption { padding-top: .55rem; color: var(--ink-soft); font-size: .95rem; }
.g-main img { aspect-ratio: 4 / 3; }
.g-a img, .g-b img { aspect-ratio: 3 / 2; }
@media (min-width: 800px) {
  .gallery { grid-template-columns: 7fr 5fr; grid-template-rows: auto auto; gap: 1.5rem; }
  .g-main { grid-row: 1 / span 2; }
  .g-main img { aspect-ratio: auto; height: calc(100% - 2.2rem); min-height: 420px; }
}

/* Hẹn kiểm tra */
.booking { padding-block: clamp(3.25rem, 8vw, 5.5rem); background: var(--navy); color: var(--white); }
.booking :focus-visible { outline-color: #FEA8B4; }
.booking-grid { display: grid; gap: 2.5rem; margin-top: 1.5rem; }
@media (min-width: 900px) { .booking-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 6vw, 5rem); align-items: start; } }
.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; padding: 0 0 1.75rem 3.25rem; max-width: 30rem; }
.step-number {
  position: absolute; left: 0; top: -.15rem; width: 2.25rem; height: 2.25rem; display: grid; place-items: center;
  background: #254673; color: var(--white); border: 1px solid #ADC9F2; font: 600 1.05rem var(--serif); border-radius: 50%;
}
.steps li:first-child .step-number { background: var(--red); border-color: #FEA8B4; color: var(--white); }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: calc(1.125rem - 1px); top: 2.4rem; bottom: .3rem; width: 2px; background: #7398CA; }

.intake-card {
  padding: clamp(1.3rem, 3vw, 2rem); background: var(--white); color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius-lg); box-shadow: 0 12px 30px #3224180a;
}
.intake-card > p:first-of-type {
  padding-left: 1rem; border-left: 3px solid var(--coral); color: var(--ink-soft); max-width: 36ch;
}
.intake-alternatives { margin: 1rem 0 0; font-size: .9rem; color: var(--ink-soft); }
.intake-dialog {
  width: min(43rem, calc(100% - 1rem)); max-height: calc(100dvh - 1rem); padding: clamp(.65rem, 2vw, 1rem);
  border: 1px solid var(--rule); border-radius: var(--radius-lg); background: var(--white); color: var(--ink);
}
.intake-dialog::backdrop { background: #171922a6; }
.intake-dialog[open] { animation: dialog-in .22s var(--ease-out) both; }
.intake-heading { display: flex; align-items: center; gap: .6rem; justify-content: space-between; margin-bottom: .5rem; }
.intake-heading h2 { margin: 0; font-size: clamp(1.15rem, 4vw, 1.55rem); }
.intake-close {
  flex: 0 0 44px; height: 44px; border: 1px solid var(--rule);
  border-radius: 6px; color: var(--ink); background: var(--paper); font: 400 1.55rem/1 var(--sans); cursor: pointer;
}
.intake-frame {
  display: block; width: 100%; height: clamp(15rem, 100dvh - 9.5rem, 37rem);
  border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper);
}
.intake-dialog .intake-alternatives { margin: .25rem 0 0; }
.intake-dialog .intake-alternatives a { display: inline-flex; align-items: center; min-height: 44px; }
.intake-card :focus-visible, .intake-dialog :focus-visible { outline-color: var(--ink-blue); }

.ach-more {
  margin-top: 1.7rem; padding-top: 1.25rem; border-top: 1px solid var(--rule);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem 1.25rem;
}
.ach-more p { margin: 0; color: var(--ink-soft); }
.news { background: var(--paper); border-top: 1px solid var(--rule); }
.news-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: 1.25rem; }
.news-heading h2 { margin: 0; }
.news-heading .text-link { gap: .4rem; }
.news-grid { display: grid; gap: .9rem; }
.news-card {
  display: flex; flex-direction: column; gap: .55rem; padding: clamp(1.15rem, 3vw, 1.6rem);
  background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg);
}
.news-card-feature { background: var(--rose); border-color: #F1D3DB; }
.news-meta {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .7rem; margin: 0; color: var(--ink-soft);
  font-size: .88rem; font-variant-numeric: tabular-nums;
}
.news-meta span { color: var(--red-deep); font-weight: 600; }
.news-card h3 { font: 600 clamp(1.25rem, 1.35vw + .6rem, 1.6rem)/1.25 var(--serif); }
.news-card > p:not(.news-meta) { max-width: 56ch; margin: 0; }
.news-link {
  display: inline-flex; align-items: center; align-self: flex-start; gap: .4rem; min-height: 44px;
  margin-top: auto; font-size: .9rem; font-weight: 600;
}
@media (min-width: 730px) { .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.study-preview { background: var(--paper-2); }
.study-preview-inner { display: grid; align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.study-preview img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg); }
.study-preview-links { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.study-preview-links a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
@media (min-width: 740px) { .study-preview-inner { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 56px; padding: .85rem 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.05rem;
}
.faq summary:hover { color: var(--red); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--red); border-bottom: 2px solid var(--red);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .22s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq details p { margin: 0 0 1.25rem; max-width: 38rem; color: var(--ink-soft); }
@supports (selector(::details-content)) {
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .22s ease, content-visibility .22s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
}
.info { margin-top: 1.75rem; padding: 1.25rem 1.4rem; background: var(--white); border: 1px solid var(--rule); border-radius: var(--radius-lg); }
.info h3 { font: 600 1.25rem/1.3 var(--serif); margin-bottom: .6rem; }
.info p:last-child { margin-bottom: 0; }
.info-phones { list-style: none; margin: 0 0 .75rem; padding: 0; }
.info-phones li { display: flex; align-items: center; gap: .75rem; border-top: 1px solid var(--rule); }
.info-phones li:last-child { border-bottom: 1px solid var(--rule); }
.info-phones span { flex: 0 0 4.5rem; color: var(--ink-soft); }
.info-phones a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Chân trang */
.site-footer { background: var(--white); border-top: 1px solid var(--rule); padding-block: 1.75rem; }
.footer-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .5rem 1.5rem; }
.footer-in p { margin: 0; }
.footer-brand { display: inline-flex; align-items: center; gap: .65rem; font-family: var(--serif); font-weight: 600; font-size: 1.15rem; }
.footer-brand img { height: 40px; width: auto; }
.footer-where { display: flex; flex-wrap: wrap; align-items: center; column-gap: .75rem; color: var(--ink-soft); }
.footer-links { display: flex; flex-wrap: wrap; column-gap: 1.25rem; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* Liên hệ nhanh */
.quick-contact {
  position: fixed; z-index: 40; display: grid; gap: .45rem;
  inset-inline-end: max(.75rem, env(safe-area-inset-right));
  inset-block-end: calc(1rem + env(safe-area-inset-bottom));
}
.quick-contact a {
  display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: .45rem;
  min-height: 44px; padding: .3rem .75rem .3rem .55rem; border: 1px solid #fff;
  border-radius: 999px; background: var(--contact-color); color: var(--white);
  box-shadow: var(--shadow); text-decoration: none; font-size: .77rem; font-weight: 600; line-height: 1;
  transition: translate .2s var(--ease-out), box-shadow .2s ease;
}
.quick-contact a:hover { translate: -3px 0; box-shadow: var(--shadow-lift); }
.quick-contact svg { display: block; width: 24px; height: 24px; }
.quick-contact-messenger { --contact-color: #3652b0; }
.quick-contact-zalo { --contact-color: #0759c5; }
.quick-contact-phone { --contact-color: var(--red); }
.quick-contact-zalo-icon {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  background: var(--white); color: var(--contact-color); font-size: .56rem; font-weight: 700;
}
@media (max-width: 1100px) {
  .quick-contact { gap: .35rem; inset-inline-end: max(.45rem, env(safe-area-inset-right)); }
  .quick-contact a { grid-template-columns: 1fr; place-items: center; width: 44px; padding: 0; }
  .quick-contact a > span:last-child {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
  body:has(.quick-contact) :is(.site-footer, .sub-footer) {
    padding-block-end: calc(4.5rem + env(safe-area-inset-bottom));
  }
}

.reading-progress { display: none; }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .reading-progress {
      display: block; position: absolute; inset: auto 0 0; height: 2px; background: var(--red);
      transform-origin: left; animation: reading-progress linear both; animation-timeline: scroll(root block);
    }
  }
}
@keyframes reading-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .btn:hover { translate: 0 -2px; box-shadow: 0 8px 20px -10px #86182c90; }
  .road a:hover, .record:hover, .record:focus-within { translate: 0 -5px; box-shadow: var(--shadow-lift); }
  .road a:hover::after { translate: 3px 0; }
  .hero-visual::before, .hero-visual::after, .hero-moment { transition: translate .3s var(--ease-out); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reel-track { scroll-behavior: auto; }
}
