/* GINZA — prototype design system (màu tạm, chờ bộ nhận diện duyệt) */
:root {
  --ivory: #FAF8F5;
  --paper: #FFFFFF;
  --stone-soft: #F3EEE8;
  --stone: #E7DFD6;
  --blue: #4F7EA7;
  --blue-deep: #2E5878;
  --blue-ink: #1F3D57;
  --blue-mist: #B7D0E6;
  --blue-wash: #EDF3F9;
  --sakura: #F6CDD1;
  --sakura-soft: #FBEEF0;
  --sakura-deep: #B8697A;
  --champagne: #D9C4A0;
  --ink: #27313C;
  --muted: #5F6B78;
  --line: #E4DED6;

  --serif: "Noto Serif Display", "Noto Serif", Georgia, serif;
  --sans: "Be Vietnam Pro", "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1180px;
  --gutter: 20px;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 24px 48px -32px rgba(31, 61, 87, .45);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.75;
  padding-bottom: 68px; /* chỗ cho thanh CTA mobile */
}
[hidden] { display: none !important; }
img { max-width: 100%; display: block; }
a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-ink); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
strong, b { font-weight: 500; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--blue-ink);
  line-height: 1.28; /* đủ chỗ cho dấu tiếng Việt chồng (ẩ, ỹ, ệ) */
  margin: 0 0 .5em;
  letter-spacing: -.005em;
}
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.4vw, 1.5rem); }
h4 { font-family: var(--sans); font-size: 1rem; font-weight: 500; color: var(--ink); line-height: 1.5; }
p { margin: 0 0 1em; }
em.serif { font-family: var(--serif); font-style: italic; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Ghi chú thiết kế (chỉ có trong bản mẫu) ---------- */
.proto-banner {
  background: var(--blue-ink); color: #fff; font-size: .78rem; text-align: center;
  padding: 6px var(--gutter); letter-spacing: .02em; line-height: 1.5;
}
.proto-note {
  display: inline-flex; align-items: flex-start; gap: 6px;
  font: 400 .75rem/1.45 var(--sans); letter-spacing: 0; text-transform: none;
  background: #FFF7DB; color: #6B5000; border: 1px dashed #DDBA55;
  border-radius: 8px; padding: 5px 10px; margin: 6px 0;
}
.proto-note::before { content: "✎"; }
.notes-toggle {
  position: fixed; left: 12px; bottom: 80px; z-index: 60;
  font: 500 .75rem var(--sans); background: #FFF7DB; color: #6B5000;
  border: 1px dashed #DDBA55; border-radius: 999px; padding: 8px 14px; cursor: pointer;
  box-shadow: var(--shadow);
}
/* Chế độ demo (mặc định): ẩn mọi ghi chú nội bộ. Chế độ duyệt: thêm ?review=1 vào URL. */
body:not(.review) .proto-banner,
body:not(.review) .proto-note,
body:not(.review) .notes-toggle,
body:not(.review) [data-review-only],
body:not(.review) .ph > span { display: none !important; }
.ph-text { color: var(--muted); font-style: italic; }
body.review .ph-text { background: #FFF7DB; color: #6B5000; border-radius: 4px; padding: 0 4px; font-style: normal; }
body.review .ph-text::after { content: " " attr(data-note); font-size: .85em; }
body.review [data-review-only] { outline: 2px dashed #DDBA55; outline-offset: 6px; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px;
  font: 500 .95rem/1.2 var(--sans); letter-spacing: .01em;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .25s, color .25s, border-color .25s, transform .25s;
}
.btn-primary { background: var(--blue-deep); color: #fff; }
.btn-primary:hover { background: var(--blue-ink); color: #fff; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--blue-deep); border-color: var(--blue-mist); }
.btn-ghost:hover { border-color: var(--blue-deep); color: var(--blue-ink); background: var(--paper); }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: .88rem; }
.btn-block { width: 100%; }
.link-arrow { font-weight: 500; text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .25s; }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- Nhãn khu vực ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  font: 500 .72rem/1.4 var(--sans); letter-spacing: .28em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 18px;
}
.eyebrow .num { font-family: var(--serif); font-size: .95rem; letter-spacing: .05em; color: var(--champagne); }
.eyebrow::after { content: ""; flex: 0 0 48px; height: 1px; background: var(--champagne); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { content: ""; flex: 0 0 48px; height: 1px; background: var(--champagne); }
.lead { font-size: 1.05rem; color: var(--muted); max-width: 46ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  /* nền mờ đặt ở ::before — backdrop-filter trên header sẽ biến header thành khung chứa của menu position:fixed */
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(250, 248, 245, .94); backdrop-filter: saturate(1.2) blur(10px);
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 8px 24px -20px rgba(31,61,87,.4); }
.header-inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: block; flex: none; line-height: 0; transition: opacity .35s, visibility .35s; }
.brand img { width: 64px; height: 64px; mix-blend-mode: multiply; }
.site-header.logo-hidden .brand { opacity: 0; visibility: hidden; }
body.nav-open .site-header .brand { opacity: 1; visibility: visible; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--paper); display: grid; place-items: center; cursor: pointer; color: var(--blue-ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative; content: ""; transition: transform .3s, background .3s;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* Nav — mobile mặc định là panel trượt */
.main-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--ivory); padding: 12px var(--gutter) 120px; overflow-y: auto;
  opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .3s, transform .3s ease, visibility .3s;
}
/* khóa cuộn ở html: overflow trên body làm header sticky trôi theo trang khi đang ở giữa trang */
html.nav-lock { overflow: hidden; }
body.nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
.main-nav > ul { list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { border-bottom: 1px solid var(--line); }
.main-nav a, .sub-toggle {
  display: flex; justify-content: space-between; align-items: center; width: 100%;
  padding: 16px 2px; font: 400 1.05rem var(--sans); color: var(--blue-ink); text-decoration: none;
  background: none; border: 0; cursor: pointer; text-align: left;
}
.sub-toggle::after { content: "+"; font-size: 1.3rem; font-weight: 300; color: var(--blue); }
.sub-toggle[aria-expanded="true"]::after { content: "–"; }
.submenu { display: none; padding: 0 0 16px; }
.sub-toggle[aria-expanded="true"] + .submenu { display: grid; gap: 14px; }
.submenu .group-title { font: 500 .72rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--blue); margin: 6px 0 4px; }
.submenu ul { list-style: none; margin: 0; padding: 0; }
.submenu a { padding: 6px 0 6px 12px; font-size: .95rem; color: var(--ink); }
.submenu .soon { font-size: .72rem; color: var(--muted); margin-left: 6px; }
.nav-cta-mobile { margin-top: 24px; }
.header-cta { display: none; }

/* ---------- Thanh CTA mobile ---------- */
.mbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97); border-top: 1px solid var(--line);
  box-shadow: 0 -10px 30px -24px rgba(31,61,87,.5);
}
.mbar a {
  display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 48px;
  border-radius: 999px; text-decoration: none; font: 500 .88rem var(--sans); color: var(--blue-deep);
  border: 1px solid var(--blue-mist);
}
.mbar a.primary { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.mbar svg { width: 18px; height: 18px; }

/* ---------- Khung ảnh giữ chỗ ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background:
    radial-gradient(120% 80% at 85% 10%, rgba(246,205,209,.55), transparent 55%),
    radial-gradient(90% 70% at 10% 95%, rgba(183,208,230,.7), transparent 60%),
    linear-gradient(160deg, var(--blue-wash), var(--stone-soft));
  display: grid; place-items: center; text-align: center;
  color: var(--muted); font-size: .78rem; line-height: 1.5; padding: 24px;
}
.ph span { position: relative; z-index: 1; max-width: 26ch; background: rgba(255,248,219,.92); color: #6B5000; border-radius: 999px; padding: 6px 14px; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph:has(img) { align-items: end; }
.ph-43 { aspect-ratio: 4 / 3; }
.ph-34 { aspect-ratio: 3 / 4; }
.ph-11 { aspect-ratio: 1; }
.ph-169 { aspect-ratio: 16 / 9; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--stone-soft); }
.section-wash { background: linear-gradient(180deg, var(--ivory), var(--blue-wash)); }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-foot { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Hero */
.hero { padding: 28px 0 64px; position: relative; overflow: hidden; }
.hero-grid { display: grid; gap: 36px; align-items: center; }
.hero-logo { width: min(280px, 72vw); mix-blend-mode: multiply; margin: 0 auto 8px; }
.hero-copy { text-align: center; }
.hero-copy .eyebrow { justify-content: center; }
.hero-copy .eyebrow::before { content: ""; flex: 0 0 32px; height: 1px; background: var(--champagne); }
.hero-copy .eyebrow::after { flex-basis: 32px; }
.hero-copy h1 em { font-style: italic; color: var(--blue); }
.hero-copy .lead { margin-inline: auto; }
.hero-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero-visual { position: relative; max-width: 460px; margin: 0 auto; width: 100%; }
.maru {
  border-radius: 50%; aspect-ratio: 1; width: 100%;
  box-shadow: 0 0 0 10px var(--ivory), 0 0 0 11px var(--champagne), var(--shadow);
}
.hero-badge {
  position: absolute; left: -4px; bottom: 6%;
  background: var(--paper); border-radius: 16px; padding: 14px 18px; box-shadow: var(--shadow);
  display: flex; gap: 12px; align-items: center; max-width: 250px; font-size: .84rem; line-height: 1.45;
}
.hero-badge .dot { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--sakura-soft); display: grid; place-items: center; color: var(--sakura-deep); }
.hero-badge strong { display: block; color: var(--blue-ink); font-weight: 500; }

/* Giá trị */
.about-grid { display: grid; gap: 40px; }
.about-copy p { color: var(--muted); }
.values { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.value {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 22px 18px;
}
.value .icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--champagne); display: grid; place-items: center; color: var(--blue); margin-bottom: 14px; }
.value .icon svg { width: 20px; height: 20px; }
.value h3 { font-size: 1.08rem; margin-bottom: .35em; }
.value p { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.6; }

/* Dịch vụ */
.services-featured { display: grid; gap: 22px; }
.service-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); display: flex; flex-direction: column;
  transition: box-shadow .3s, transform .3s;
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-card .ph { border-radius: 0; }
.service-card .body { padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.service-card .tag { font: 500 .7rem var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--sakura-deep); }
.service-card h3 { margin: 0; }
.service-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.service-list { list-style: none; padding: 0; margin: 6px 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.service-list a, .service-list span {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .85rem;
  border: 1px solid var(--blue-mist); text-decoration: none; color: var(--blue-deep); background: var(--blue-wash);
}
.service-list span { background: transparent; color: var(--muted); border-style: dashed; }
.service-card .link-arrow { margin-top: auto; }
.services-more { display: grid; gap: 16px; margin-top: 22px; }
.service-mini {
  display: grid; grid-template-columns: 84px 1fr; gap: 18px; align-items: center;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px; text-decoration: none; color: inherit; transition: border-color .3s;
}
.service-mini:hover { border-color: var(--blue-mist); }
.service-mini .ph { border-radius: 50%; padding: 0; }
.service-mini h3 { font-size: 1.15rem; margin: 0 0 2px; }
.service-mini p { margin: 0; font-size: .86rem; color: var(--muted); line-height: 1.55; }

/* Bác sĩ */
.doctors { display: grid; gap: 22px; grid-template-columns: 1fr; }
.doctor { text-align: center; }
.doctor .ph { border-radius: 999px 999px var(--radius) var(--radius); margin-bottom: 18px; }
.doctor h3 { margin-bottom: 2px; }
.doctor .role { color: var(--blue); font-size: .9rem; font-weight: 400; margin-bottom: 4px; }
.doctor .cred { color: var(--muted); font-size: .82rem; }

/* Quy trình */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; position: relative; }
.step { position: relative; padding: 0 0 32px 64px; counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; background: var(--paper); border: 1px solid var(--champagne);
  font: 400 1rem var(--serif); color: var(--blue-deep); z-index: 1;
}
.step::after { content: ""; position: absolute; left: 22px; top: 46px; bottom: 0; width: 1px; background: var(--line); }
.step:last-child::after { display: none; }
.step h3 { font-size: 1.15rem; margin: 8px 0 4px; }
.step p { font-size: .92rem; color: var(--muted); margin: 0; }

/* Kết quả — trạng thái chờ */
.empty-state {
  border: 1px dashed var(--blue-mist); border-radius: var(--radius); padding: 44px 24px; text-align: center;
  background: var(--paper);
}
.enso { width: 72px; height: 72px; margin: 0 auto 18px; color: var(--blue-mist); }
.empty-state p { color: var(--muted); max-width: 52ch; margin-inline: auto; }

/* Không gian */
.gallery { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.gallery figure { margin: 0; }
.gallery figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; letter-spacing: .04em; }
.gallery .ph { aspect-ratio: 4/5; }

/* FAQ */
.faq-book { display: grid; gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 36px 20px 0; position: relative;
  font: 400 1.08rem/1.5 var(--serif); color: var(--blue-ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 300 1.5rem var(--sans); color: var(--blue); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: .95rem; padding-right: 24px; }

/* Form */
.book-card {
  background: var(--paper); border-radius: var(--radius); padding: 28px 22px; box-shadow: var(--shadow);
  border-top: 3px solid var(--blue-mist);
}
.book-card h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.form-grid { display: grid; gap: 16px; }
.field label, .field .label { display: block; font-size: .85rem; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.field .opt { font-weight: 300; color: var(--muted); }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--stone); background: var(--ivory); font: 400 1rem var(--sans); color: var(--ink);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); background: var(--paper); box-shadow: 0 0 0 4px var(--blue-wash); }
.field.invalid input, .field.invalid select { border-color: #B4505A; }
.field .err { display: none; color: #A0434C; font-size: .8rem; margin-top: 4px; }
.field.invalid .err { display: block; }
.row-2 { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .82rem; color: var(--muted); line-height: 1.55; }
.consent input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--blue-deep); }
.field.invalid.consent { color: #A0434C; }
.form-hint { font-size: .78rem; color: var(--muted); background: var(--blue-wash); border-radius: 10px; padding: 10px 14px; margin: 0; line-height: 1.55; }
.form-success { text-align: center; padding: 20px 0; }
.form-success .enso { color: var(--blue); }
.alt-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }

.contact-box { margin-top: 36px; display: grid; gap: 18px; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; font-size: .94rem; }
.contact-list li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.contact-list svg { width: 18px; height: 18px; color: var(--blue); margin-top: 4px; }

/* Footer */
.site-footer { background: var(--stone-soft); padding: 64px 0 28px; position: relative; overflow: hidden; font-size: .9rem; }
.footer-mountain { position: absolute; right: -40px; bottom: 0; width: 520px; max-width: 90%; color: var(--blue-mist); opacity: .35; pointer-events: none; }
.footer-grid { display: grid; gap: 32px; position: relative; }
.footer-logo { width: 120px; mix-blend-mode: multiply; margin-bottom: 8px; }
.site-footer h4 { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--blue-deep); text-decoration: underline; }
.footer-legal { border-top: 1px solid var(--stone); margin-top: 40px; padding-top: 20px; font-size: .78rem; color: var(--muted); display: grid; gap: 6px; position: relative; }

/* ---------- Trang dịch vụ ---------- */
.breadcrumb { font-size: .8rem; color: var(--muted); margin: 0 0 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--stone); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-deep); }
.svc-hero { padding: 24px 0 56px; background: linear-gradient(180deg, var(--ivory) 0%, var(--blue-wash) 100%); }
.svc-hero-grid { display: grid; gap: 32px; align-items: center; }
.svc-hero .hero-ctas { margin-top: 24px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.fact { background: var(--paper); border-radius: 14px; padding: 12px 14px; border: 1px solid var(--line); }
.fact .k { display: block; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); }
.fact .v { font-size: .88rem; color: var(--ink); line-height: 1.4; }
.toc {
  position: sticky; top: var(--header-h); z-index: 20; background: rgba(250,248,245,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.toc ul { list-style: none; margin: 0; padding: 12px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.toc ul::-webkit-scrollbar { display: none; }
.toc a { white-space: nowrap; display: block; padding: 6px 14px; border-radius: 999px; font-size: .84rem; text-decoration: none; color: var(--muted); border: 1px solid var(--line); background: var(--paper); }
.toc a.active, .toc a:hover { color: var(--blue-deep); border-color: var(--blue-mist); background: var(--blue-wash); }
.svc-layout { display: grid; gap: 48px; padding: 56px var(--gutter) 24px; }
.svc-section { padding-bottom: 44px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.svc-section:last-child { border-bottom: 0; }
.svc-section h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
.svc-section p, .svc-section li { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 9px; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--blue); background: radial-gradient(circle, var(--blue) 30%, transparent 34%); }
.card-grid { display: grid; gap: 14px; }
.info-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 20px; }
.info-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.info-card p { font-size: .92rem; margin: 0; }
.risk-grid { display: grid; gap: 14px; }
.risk-grid .info-card { border-left: 3px solid var(--sakura); }
.doctor-inline { display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.doctor-inline .ph { border-radius: 50%; padding: 0; }
.doctor-inline h3 { margin: 0; font-size: 1.15rem; }
.doctor-inline p { margin: 0; font-size: .88rem; }
.reviewer { font-size: .82rem; color: var(--muted); background: var(--stone-soft); border-radius: 12px; padding: 14px 18px; }
.aside-card { display: none; }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
  .hero-ctas { flex-direction: row; justify-content: center; }
  .doctors { grid-template-columns: repeat(3, 1fr); }
  .services-more { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .card-grid, .risk-grid { grid-template-columns: 1fr 1fr; }
  .book-card { padding: 36px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 960px) {
  :root { --gutter: 32px; --header-h: 84px; }
  body { font-size: 17px; padding-bottom: 0; }
  .mbar { display: none; }
  .notes-toggle { bottom: 20px; left: 20px; }
  .brand img { width: 72px; height: 72px; }

  .nav-toggle, .main-nav .nav-cta-mobile, .main-nav .nav-mobile-only { display: none; }
  .header-cta { display: inline-flex; }
  .main-nav {
    position: static; transform: none; opacity: 1; visibility: visible; background: none; padding: 0; overflow: visible;
    margin-left: auto;
  }
  .header-actions { margin-left: 8px; }
  .main-nav > ul { display: flex; gap: 4px; align-items: center; }
  .main-nav > ul > li { border: 0; position: relative; }
  .main-nav a, .sub-toggle { white-space: nowrap; padding: 10px 14px; font-size: .92rem; color: var(--ink); width: auto; border-radius: 999px; }
  .main-nav > ul > li > a:hover, .sub-toggle:hover { color: var(--blue-deep); background: var(--blue-wash); }
  .main-nav a[aria-current="page"] { color: var(--blue-deep); }
  .sub-toggle::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-3px); margin-left: 8px; }
  .sub-toggle[aria-expanded="true"]::after { content: ""; }
  .submenu, .sub-toggle[aria-expanded="true"] + .submenu {
    display: grid; grid-template-columns: repeat(4, minmax(150px, 1fr)); gap: 28px;
    position: absolute; top: calc(100% + 14px); left: 50%; transform: translate(-50%, 6px);
    width: 760px; background: var(--paper); border-radius: var(--radius); padding: 28px 30px;
    box-shadow: 0 30px 60px -30px rgba(31,61,87,.45); border: 1px solid var(--line);
    opacity: 0; visibility: hidden; transition: opacity .25s, transform .25s, visibility .25s;
  }
  .submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
  .has-sub:hover .submenu, .has-sub:focus-within .submenu, .sub-toggle[aria-expanded="true"] + .submenu {
    opacity: 1; visibility: visible; transform: translate(-50%, 0);
  }
  .submenu a { padding: 5px 0; font-size: .9rem; border-radius: 0; }
  .submenu a:hover { color: var(--blue-deep); background: none; text-decoration: underline; }

  .section { padding: 120px 0; }
  .section-head { margin-bottom: 56px; }
  .hero { padding: 40px 0 110px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; gap: 64px; }
  .hero-copy { text-align: left; }
  .hero-copy .eyebrow { justify-content: flex-start; }
  .hero-copy .eyebrow::before { display: none; }
  .hero-copy .lead { margin-inline: 0; }
  .hero-logo { width: 300px; margin: 0 0 12px -18px; }
  .hero-ctas { justify-content: flex-start; }
  .hero-badge { left: -48px; bottom: -3%; }

  .about-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: center; }
  .services-featured { grid-template-columns: 1fr 1fr; gap: 28px; }
  .services-more { gap: 28px; }
  .doctors { gap: 32px; }
  .steps { grid-template-columns: repeat(5, 1fr); gap: 24px; }
  .step { padding: 70px 0 0; }
  .step::after { left: 46px; right: -24px; top: 22px; bottom: auto; width: auto; height: 1px; }
  .gallery { grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto; gap: 20px; }
  .gallery figure:first-child { grid-row: span 2; }
  .gallery figure:first-child .ph { aspect-ratio: auto; height: calc(100% - 30px); min-height: 420px; }
  .gallery .ph { aspect-ratio: 4/3; }
  .gallery figure:nth-child(4) { grid-column: span 2; }
  .gallery figure:nth-child(4) .ph { aspect-ratio: 21/8; }
  .faq-book { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
  .book-card { position: sticky; top: calc(var(--header-h) + 24px); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 48px; }

  .svc-hero { padding: 32px 0 80px; }
  .svc-hero-grid { grid-template-columns: 1.15fr .85fr; gap: 72px; }
  .svc-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; padding-top: 72px; }
  .aside-card {
    display: block; position: sticky; top: calc(var(--header-h) + 80px); align-self: start;
    background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); border-top: 3px solid var(--sakura);
  }
  .aside-card h3 { font-size: 1.3rem; }
  .aside-card p { font-size: .88rem; color: var(--muted); }
  .aside-card .btn { margin-top: 10px; }
}

/* 960–1199px: menu 7 mục cần gọn hơn để không tràn hàng */
@media (min-width: 960px) and (max-width: 1199px) {
  :root { --gutter: 22px; }
  .main-nav > ul { gap: 0; }
  .main-nav a, .sub-toggle { padding: 10px 7px; font-size: .86rem; }
  .sub-toggle::after { margin-left: 6px; }
  .header-actions { margin-left: 4px; }
  .header-cta { padding-left: 14px; padding-right: 14px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Quy trình dạng dọc (trang dịch vụ) — giữ dọc cả trên desktop */
@media (min-width: 960px) {
  .steps.steps-vertical { grid-template-columns: 1fr; gap: 0; }
  .steps-vertical .step { padding: 0 0 28px 64px; }
  .steps-vertical .step::after { left: 22px; top: 46px; bottom: 0; right: auto; width: 1px; height: auto; }
}

/* Dịch vụ cùng nhóm, thẻ nhóm nhỏ */
.related { margin-top: 32px; }
.related .eyebrow { margin-bottom: 10px; }
.service-mini .service-list { margin: 8px 0 0; }

/* ---------- Liên hệ nhanh dính — trang chủ, desktop ---------- */
.float-contact { display: none; }
@media (min-width: 960px) {
  .float-contact {
    position: fixed; right: 24px; bottom: 24px; z-index: 45;
    display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
    opacity: 0; visibility: hidden; transform: translateY(12px);
    transition: opacity .3s, transform .3s, visibility .3s;
  }
  .float-contact.is-visible { opacity: 1; visibility: visible; transform: none; }
  .fc-item {
    display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px;
    border-radius: 999px; background: var(--paper); color: var(--blue-deep); text-decoration: none;
    border: 1px solid var(--line); box-shadow: var(--shadow); font: 500 .9rem var(--sans);
    transition: background .25s, color .25s, border-color .25s;
  }
  .fc-item svg { width: 20px; height: 20px; flex: none; }
  .fc-item span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s; }
  .fc-item:hover span, .fc-item:focus-visible span { max-width: 160px; }
  .fc-item:hover { border-color: var(--blue-mist); color: var(--blue-ink); }
  .fc-item.primary { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; padding: 0 22px; }
  .fc-item.primary span { max-width: 160px; }
  .fc-item.primary:hover { background: var(--blue-ink); color: #fff; }
}

/* Bản đồ */
.map { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); background: var(--stone); }

/* Hình ảnh trước – sau: vuốt ngang trên điện thoại, xếp cột trên màn hình lớn */
.ba-grid { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scrollbar-width: thin; }
.ba-item { flex: 0 0 84%; scroll-snap-align: center; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.ba-open { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.ba-open img { width: 100%; height: auto; }
.ba-item figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 12px; padding: 12px 16px; font-size: .9rem; color: var(--blue-ink); }
.ba-item figcaption span { font-family: var(--serif); font-size: 1.05rem; }
.ba-item figcaption .link-arrow { font-size: .84rem; }
.svc-section .ba-grid { margin-top: 18px; }
.ba-dialog { border: 0; padding: 0; background: none; max-width: min(92vw, 900px); max-height: 92vh; }
.ba-dialog::backdrop { background: rgba(31, 61, 87, .82); }
.ba-dialog img { max-width: 100%; max-height: 92vh; border-radius: 12px; }
.ba-close { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--blue-ink); font-size: 1.4rem; cursor: pointer; }
@media (min-width: 640px) {
  .ba-grid { display: block; columns: 2; column-gap: 18px; overflow: visible; margin-inline: 0; padding: 0; }
  .ba-item { break-inside: avoid; margin-bottom: 18px; }
}
@media (min-width: 960px) {
  #ket-qua.section .ba-grid { columns: 3; column-gap: 22px; }
  #ket-qua.section .ba-item { margin-bottom: 22px; }
}

.svc-layout > div { min-width: 0; }
@media (max-width: 639px) { .ba-grid { align-items: flex-start; } }

/* Trang chính sách */
.legal-page { padding: 24px 0 64px; }
.legal-doc { max-width: 800px; }
.legal-doc h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); margin-bottom: 8px; }
.legal-doc h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); margin: 40px 0 12px; }
.legal-doc ul { padding-left: 1.2em; }
.legal-doc li + li { margin-top: 6px; }
.legal-meta { color: var(--muted); font-size: .85rem; margin-bottom: 20px; }
.legal-table { overflow-x: auto; margin: 16px 0; }
.legal-table table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.legal-table th, .legal-table td { padding: 10px 12px; border: 1px solid var(--stone); text-align: left; vertical-align: top; }
.legal-table th { background: var(--stone-soft); font-weight: 500; }

/* Đội ngũ, bảng giá, giấy tờ pháp lý */
.monogram { width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-wash); color: var(--blue-deep); font-family: "Noto Serif Display", serif; font-size: 2rem; letter-spacing: .04em; border: 1px solid var(--stone); }
.profile { padding: 28px 0; border-top: 1px solid var(--stone); scroll-margin-top: 96px; }
.profile:first-of-type { border-top: 0; }
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 12px; }
.profile-head .monogram { width: 76px; height: 76px; margin: 0; font-size: 1.4rem; flex: none; }
.profile-head h2 { margin: 0; }
.profile .role { color: var(--blue); margin: 4px 0 0; }
.profile h3 { font-size: 1.05rem; margin: 22px 0 8px; }
.price-links { font-size: .9rem; color: var(--muted); margin: -4px 0 8px; }
.price-table td:first-child, .price-table th:first-child { width: 56px; color: var(--muted); }
.price-table td.price { white-space: nowrap; }
.legal-table th[scope="row"] { width: 34%; }
.doc-figure { margin: 20px 0; }
.doc-figure img { width: 100%; height: auto; border: 1px solid var(--stone); border-radius: var(--radius); background: #fff; }
.doc-figure figcaption { font-size: .82rem; color: var(--muted); margin-top: 6px; }
.doc-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-top: 12px; }
.doc-grid .doc-figure { margin: 0; display: flex; flex-direction: column; }
.doc-grid .doc-figure a { display: block; aspect-ratio: 3 / 4; padding: 8px; background: var(--paper); border: 1px solid var(--stone); border-radius: var(--radius); cursor: zoom-in; transition: border-color .2s, box-shadow .2s; }
.doc-grid .doc-figure a:hover, .doc-grid .doc-figure a:focus-visible { border-color: var(--blue); box-shadow: 0 6px 18px rgba(31, 61, 87, .12); }
.doc-grid .doc-figure img { width: 100%; height: 100%; object-fit: contain; border: 0; border-radius: 4px; background: none; }
.doc-grid .doc-figure figcaption { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.4; }
.doc-figure > a { cursor: zoom-in; }
.doc-dialog { border: 0; padding: 0; background: none; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; display: none; align-items: center; justify-content: center; }
.doc-dialog[open] { display: flex; }
.doc-dialog::backdrop { background: rgba(20, 38, 54, .9); }
.doc-dialog figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 10px; max-width: calc(100vw - 32px); }
.doc-dialog img { max-width: min(100%, 1000px); max-height: calc(100vh - 110px); border-radius: 8px; background: #fff; }
.doc-dialog figcaption { color: #fff; font-size: .9rem; text-align: center; padding: 0 56px; }
.doc-dialog .ba-close { position: fixed; top: 14px; right: 14px; z-index: 2; }
.doc-nav { position: fixed; top: 50%; transform: translateY(-50%); z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--blue-ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.doc-nav.prev { left: 14px; }
.doc-nav.next { right: 14px; }
.doc-dialog.single .doc-nav { display: none; }
@media (max-width: 600px) { .doc-nav { top: auto; bottom: 18px; transform: none; } .doc-dialog img { max-height: calc(100vh - 150px); } }

.doctor-inline .monogram { width: 96px; height: 96px; margin: 0; font-size: 1.6rem; }
@media (max-width: 600px) {
  .legal-table th, .legal-table td { padding: 8px 9px; }
  .price-table td:first-child, .price-table th:first-child { display: none; }
  .price-table td.price { white-space: normal; }
}
.legal-table td.group-row { background: var(--blue-wash); color: var(--blue-deep); font-weight: 500; }
.tech-table td:first-child, .tech-table th:first-child { width: 56px; color: var(--muted); }
.tech-table td.group-row { color: var(--blue-deep); }

/* Menu con nhỏ (Kiến thức), file đính kèm, mục lục quy trình */
@media (min-width: 960px) {
  .submenu.submenu-sm, .sub-toggle[aria-expanded="true"] + .submenu.submenu-sm { grid-template-columns: 1fr; width: 250px; padding: 18px 22px; }
}
.page-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 8px; }
.page-toc a { padding: 8px 16px; border: 1px solid var(--stone); border-radius: 999px; font-size: .9rem; text-decoration: none; color: var(--blue-deep); background: var(--paper); }
.legal-doc h2[id] { scroll-margin-top: 96px; }
.file-card { display: flex; gap: 14px; align-items: center; padding: 16px 18px; margin: 14px 0 22px; border: 1px solid var(--stone); border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.file-card:hover { border-color: var(--blue); box-shadow: 0 6px 18px rgba(31, 61, 87, .12); }
.file-icon { flex: none; width: 46px; height: 54px; border-radius: 6px; display: grid; place-items: center; background: #A0434C; color: #fff; font: 600 .75rem var(--sans); letter-spacing: .05em; }
.file-meta { display: block; font-size: .85rem; color: var(--muted); margin-top: 2px; }
.qt-list { list-style: none; padding: 0; margin: 16px 0 24px; border-top: 1px solid var(--stone); }
.qt-list li { display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--stone); }
.qt-list li > a:first-child { flex: 1; display: grid; grid-template-columns: 64px 1fr; gap: 2px 12px; padding: 12px 4px; text-decoration: none; color: var(--ink); }
.qt-list li > a:first-child:hover .qt-name { color: var(--blue-deep); text-decoration: underline; }
.qt-code { color: var(--muted); font-size: .88rem; grid-row: span 2; padding-top: 2px; }
.qt-meta { font-size: .78rem; color: var(--muted); }
.qt-dl { flex: none; font-size: .85rem; padding: 6px 12px; border: 1px solid var(--stone); border-radius: 999px; text-decoration: none; color: var(--blue-deep); }
@media (max-width: 600px) { .qt-list li > a:first-child { grid-template-columns: 52px 1fr; } .qt-dl { padding: 6px 10px; } }
.tech-table td.qt-cell { white-space: nowrap; width: 1%; }
.qt-btn { display: inline-block; padding: 4px 10px; margin: 1px 2px; border: 1px solid var(--stone); border-radius: 999px; font-size: .82rem; text-decoration: none; color: var(--blue-deep); background: var(--paper); }
.qt-btn:hover { border-color: var(--blue); }
.qt-soon { font-size: .78rem; color: var(--muted); }
@media (max-width: 600px) { .tech-table td.qt-cell { white-space: normal; } .qt-btn { display: block; text-align: center; margin: 2px 0; } }

/* Form ý kiến khách hàng */
.feedback-card { margin: 24px 0 8px; }
.field textarea { width: 100%; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--stone); background: var(--ivory); font: 400 1rem var(--sans); color: var(--ink); resize: vertical; }
.field textarea:focus { outline: none; border-color: var(--blue); background: var(--paper); box-shadow: 0 0 0 4px var(--blue-wash); }
.field.invalid textarea { border-color: #B4505A; }
.form-2col { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-2col { grid-template-columns: 1fr 1fr; } }
fieldset.rating { border: 0; margin: 0; padding: 0; }
.stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.stars label { font-size: 2rem; line-height: 1; color: var(--stone); cursor: pointer; transition: color .15s; margin: 0; }
.stars label:hover, .stars label:hover ~ label, .stars input:checked ~ label { color: #C9A24D; }
.stars input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

