/* 온결치과병원 — site.css (v6)
   Direction from a review of typical Korean clinic sites: one sans family (Pretendard),
   bold short Korean headings, flat full-width sections on white / light gray,
   thin rules instead of shadowed cards, a navy brand color, and Naver green only
   on Naver actions. Only transform/opacity/clip-path animate. */
:root {
  --navy-900: #0b1d38;
  --navy-800: #11284a;
  --navy-700: #1b3a66;
  --navy-500: #2f5a94;
  --navy-50: #eef3f9;
  --sand: #a8743a;
  --ink: #1a1d21;
  --ink-2: #454b54;
  --ink-3: #6b717a;
  --line: #e3e6ea;
  --line-2: #cdd2d8;
  --bg: #ffffff;
  --gray: #f6f7f9;
  --naver: #03c75a;
  --naver-ink: #ffffff;
  --naver-btn: #00843d;
  --kakao: #fee500;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 84px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 60px); }
body {
  margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.7; color: var(--ink); background: var(--bg);
  word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; letter-spacing: -0.01em;
}
body.is-locked { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.35; letter-spacing: -0.03em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--navy-500); outline-offset: 3px; }
.footer :focus-visible, .mnav :focus-visible, .cta-band :focus-visible, .band :focus-visible, .subvis :focus-visible { outline-color: #9cc0ff; }
.skip { position: fixed; left: 16px; top: 12px; z-index: 1000; padding: 12px 18px; background: var(--navy-800); color: #fff; font-weight: 700; transform: translateY(-160%); transition: transform 0.2s var(--ease); }
.skip:focus { transform: none; }
main:focus { outline: none; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px;
  border: 1px solid transparent; border-radius: 4px; font-weight: 700; font-size: 16.5px; line-height: 1.2; white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--lg { min-height: 58px; padding: 0 30px; font-size: 17.5px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--navy-800); color: #fff; }
.btn--primary:hover { background: var(--navy-700); }
.btn--naver { background: var(--naver-btn); color: var(--naver-ink); }
.btn--naver:hover { background: #006e33; }
.btn--naver svg { width: 15px; height: 15px; }
.btn--outline { border-color: var(--line-2); background: #fff; color: var(--ink); }
.btn--outline:hover { border-color: var(--navy-800); color: var(--navy-800); }
.btn--light { background: #fff; color: var(--navy-800); }
.more { margin-top: 44px; text-align: center; }
.more__link { display: inline-flex; align-items: center; gap: 8px; min-height: 50px; padding: 0 28px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 700; color: var(--ink); background: #fff; transition: border-color 0.2s, color 0.2s; }
.more__link svg { width: 17px; height: 17px; }
.more__link:hover { border-color: var(--navy-800); color: var(--navy-800); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--navy-800); flex: none; }
.logo__mark { width: 38px; height: 38px; }
.logo__tooth { fill: var(--navy-800); }
.logo__grain { fill: none; stroke: #cfe0f7; stroke-width: 2.4; stroke-linecap: round; }
.logo__text { display: flex; flex-direction: column; line-height: 1.1; }
.logo__ko { font-weight: 800; font-size: 22px; letter-spacing: -0.04em; }
.logo__en { font-size: 9.5px; font-weight: 600; letter-spacing: 0.14em; color: var(--ink-3); margin-top: 4px; }
.logo--light { color: #fff; }
.logo--light .logo__tooth { fill: #fff; }
.logo--light .logo__grain { stroke: var(--navy-500); }
.logo--light .logo__en { color: #a9b6c8; }

/* ---------- Top bar + header ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--gray); color: var(--ink-2); font-size: 13.5px; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.topbar__hours span { margin: 0 8px; color: var(--line-2); }
.topbar__links { display: flex; gap: 0; }
.topbar__links li + li::before { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 12px; background: var(--line-2); vertical-align: -1px; }
.topbar__links a:hover { color: var(--navy-800); text-decoration: underline; text-underline-offset: 3px; }
.header { position: sticky; top: 0; z-index: 60; background: #fff; border-bottom: 1px solid var(--line); transition: box-shadow 0.3s; }
.header.is-scrolled { box-shadow: 0 4px 16px -12px rgba(11, 29, 56, 0.5); }
.header__in { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.gnb { flex: 1; display: flex; justify-content: center; }
.gnb__list { display: flex; }
.gnb__item { position: relative; }
.gnb__link { position: relative; display: flex; align-items: center; height: var(--header-h); padding: 0 20px; font-weight: 700; font-size: 17.5px; color: var(--ink); }
.gnb__link::after { content: ""; position: absolute; left: 20px; right: 20px; bottom: -1px; height: 3px; background: var(--navy-800); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.gnb__link:hover, .gnb__link[aria-current="page"] { color: var(--navy-800); }
.gnb__link:hover::after, .gnb__link[aria-current="page"]::after, .gnb__item:focus-within > .gnb__link::after { transform: scaleX(1); }
.gnb__sub { position: absolute; left: 50%; top: 100%; min-width: 190px; padding: 10px 0; background: #fff; border: 1px solid var(--line); border-top: 0; box-shadow: 0 12px 24px -16px rgba(11, 29, 56, 0.35); opacity: 0; visibility: hidden; transform: translate(-50%, 6px); transition: opacity 0.2s, transform 0.25s var(--ease), visibility 0s linear 0.25s; }
.gnb__item:hover > .gnb__sub, .gnb__item:focus-within > .gnb__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
.gnb__sub a { display: block; padding: 9px 22px; font-size: 15.5px; color: var(--ink-2); white-space: nowrap; }
.gnb__sub a:hover, .gnb__sub a:focus-visible { color: var(--navy-800); background: var(--gray); }
.header__actions { display: flex; align-items: center; gap: 14px; }
.header__tel { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; color: var(--navy-800); }
.header__tel-label { font-size: 12.5px; font-weight: 600; color: var(--ink-3); }
.header__tel strong { font-size: 21px; font-weight: 800; letter-spacing: -0.01em; }
.menu-btn { display: none; width: 46px; height: 46px; border: 0; background: transparent; color: var(--ink); place-items: center; }
.menu-btn svg { width: 28px; height: 28px; }
.scroll-sentinel { position: absolute; top: 120px; height: 1px; width: 1px; }

/* ---------- Mobile nav ---------- */
.mnav { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain; padding: 16px var(--gutter) 28px; background: var(--navy-900); color: #fff; opacity: 0; transition: opacity 0.3s var(--ease); }
.mnav.is-open { opacity: 1; }
.mnav__top { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.mnav__close { width: 48px; height: 48px; border: 0; background: transparent; color: #fff; display: grid; place-items: center; }
.mnav__close svg { width: 28px; height: 28px; }
.mnav__list { margin-top: 18px; }
.mnav__list > li { border-bottom: 1px solid rgba(255, 255, 255, 0.12); padding: 6px 0 12px; opacity: 0; transform: translateY(12px); transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); transition-delay: calc(var(--i, 0) * 40ms + 60ms); }
.mnav.is-open .mnav__list > li { opacity: 1; transform: none; }
.mnav__link { display: block; padding: 10px 0 4px; font-size: 21px; font-weight: 700; }
.mnav__link[aria-current="page"] { color: #9cc0ff; }
.mnav__sub { display: flex; flex-wrap: wrap; gap: 2px 18px; }
.mnav__sub a { display: inline-block; padding: 6px 0; font-size: 15px; color: #c0cad8; }
.mnav__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 10px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 9vw, 120px) 0; }
.section--gray { background: var(--gray); }
.sec-head { margin-bottom: clamp(36px, 5vw, 56px); }
.sec-head--center { text-align: center; }
.sec-title { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; color: var(--ink); letter-spacing: -0.04em; }
.sec-desc { margin-top: 14px; font-size: clamp(16.5px, 1.3vw, 18.5px); color: var(--ink-3); }
.sub-title { margin: 56px 0 16px; font-size: 21px; font-weight: 800; }
.disclaimer { margin-top: 24px; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.disclaimer a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 3px; }
.disclaimer--page { margin: 0 auto; padding: 0 0 72px; }
.notice-box { margin-top: 48px; padding: 22px 24px; border-top: 2px solid var(--ink); background: var(--gray); font-size: 14.5px; color: var(--ink-2); }
.notice-box p + p { margin-top: 6px; }
.prose { font-size: 17.5px; line-height: 1.9; color: var(--ink-2); }
.prose p + p { margin-top: 14px; }
.ticks { display: grid; gap: 10px; margin-top: 24px; }
.ticks li { position: relative; padding-left: 26px; font-weight: 600; color: var(--ink); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 12px; height: 7px; border-left: 2.5px solid var(--navy-700); border-bottom: 2.5px solid var(--navy-700); transform: rotate(-45deg); }
/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: #efe9e2; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(246, 242, 237, 0.97) 0%, rgba(246, 242, 237, 0.92) 30%, rgba(246, 242, 237, 0.4) 46%, rgba(246, 242, 237, 0) 56%); }
.hero__in { display: flex; align-items: center; min-height: clamp(560px, 72vh, 740px); padding-top: 40px; padding-bottom: 40px; }
.hero__copy { max-width: 560px; }
.hero__kicker { font-size: 17px; font-weight: 700; color: var(--navy-700); }
.hero__title { margin-top: 16px; font-size: clamp(40px, 4.8vw, 62px); font-weight: 800; line-height: 1.25; color: var(--ink); letter-spacing: -0.045em; }
.hero__lead { margin-top: 20px; font-size: clamp(17px, 1.4vw, 19.5px); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

/* treatment icon row */
.txbar { border-bottom: 1px solid var(--line); background: #fff; }
.txbar__list { display: grid; grid-template-columns: repeat(8, 1fr); }
.txbar__list a { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 34px 6px 30px; font-weight: 700; font-size: 16px; color: var(--ink); transition: color 0.2s; }
.txbar__list li + li a { border-left: 1px solid var(--line); }
.tx-icon { width: 46px; height: 46px; color: var(--navy-700); transition: transform 0.3s var(--ease); }
.txbar__list a:hover { color: var(--navy-800); }
.txbar__list a:hover .tx-icon { transform: translateY(-3px); }

/* points: alternating photo / text rows */
.points { display: grid; gap: clamp(48px, 7vw, 96px); }
.point { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.point--rev .point__media { order: 2; }
.point__media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--gray); }
.point__media img { width: 100%; height: 100%; object-fit: cover; }
.point__num { font-size: 15px; font-weight: 800; color: var(--navy-500); letter-spacing: 0.02em; }
.point__title { margin-top: 10px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.04em; }
.point__text { margin-top: 16px; font-size: 18px; color: var(--ink-2); line-height: 1.75; }

/* doctors */
.doc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.doc a { display: block; }
.doc__photo { aspect-ratio: 1; overflow: hidden; background: #dfe4ea; }
.doc__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.doc a:hover .doc__photo img { transform: scale(1.04); }
.doc__spec { margin-top: 18px; font-size: 15px; font-weight: 600; color: var(--navy-700); }
.doc__name { margin-top: 2px; font-size: 22px; font-weight: 800; }
.doc__name span { margin-left: 4px; font-size: 16px; font-weight: 600; color: var(--ink-3); }

/* full-bleed slogan band */
.band { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; }
.band__media { position: absolute; inset: 0; z-index: -2; }
.band__media img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 29, 56, 0.72); }
.band__in { padding: clamp(80px, 10vw, 128px) var(--gutter); }
.band__title { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -0.04em; }
.band__text { margin-top: 14px; font-size: 18px; color: #dbe3ee; }

/* before / after */
.ba-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ba-grid--2 { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
.ba__cat { margin-top: 18px; font-size: 14.5px; font-weight: 700; color: var(--navy-700); }
.ba__title { margin-top: 2px; font-size: 20px; font-weight: 800; }
.ba__meta { margin-top: 4px; font-size: 15px; color: var(--ink-3); }
.ba__table { margin-top: 14px; border-top: 1px solid var(--ink); font-size: 15px; }
.ba__table th, .ba__table td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ba__table th { width: 96px; font-weight: 700; color: var(--ink); }
.ba__table td { color: var(--ink-2); }
.compare { position: relative; margin: 0; overflow: hidden; aspect-ratio: 16 / 10; background: #dfe3e8; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare__img { position: absolute; inset: 0; }
.compare__img img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare__img--after { clip-path: inset(0 0 0 var(--pos)); }
.compare__tag { position: absolute; top: 12px; padding: 3px 10px; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; }
.compare__tag--before { left: 12px; background: rgba(11, 29, 56, 0.9); color: #fff; }
.compare__tag--after { right: 12px; background: #fff; color: var(--navy-800); }
.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; }
.compare__handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6 3 12l6 6M15 6l6 6-6 6' fill='none' stroke='%2311284a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 2px 10px rgba(11, 29, 56, 0.3); }
.compare__range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.compare:has(.compare__range:focus-visible) { outline: 3px solid var(--navy-500); outline-offset: 3px; }

/* equipment preview */
.eq-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.eq__media { aspect-ratio: 4 / 3; overflow: hidden; background: #e3e7ec; }
.eq__media img { width: 100%; height: 100%; object-fit: cover; }
.eq__name { margin-top: 16px; font-size: 19px; font-weight: 800; }
.eq__text { margin-top: 4px; font-size: 15.5px; color: var(--ink-3); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 16px; }
.gallery__item--wide { grid-column: span 2; grid-row: span 2; }
.gallery__item--wide .gallery__btn { height: calc(100% - 34px); }
.gallery__btn { display: block; width: 100%; padding: 0; border: 0; overflow: hidden; background: #e3e7ec; cursor: zoom-in; }
.gallery__btn img { width: 100%; height: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 0.6s var(--ease); }
.gallery__btn:hover img { transform: scale(1.04); }
.gallery__cap { margin-top: 8px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: 64px 20px; background: rgba(8, 15, 26, 0.94); opacity: 0; transition: opacity 0.3s var(--ease); }
.lightbox.is-open { opacity: 1; }
.lightbox__fig { margin: 0; max-width: min(1200px, 100%); }
.lightbox__img { max-height: 76vh; width: auto; margin: 0 auto; }
.lightbox__cap { margin-top: 14px; text-align: center; color: #e2e8f0; font-weight: 600; }
.lightbox__btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 50%; background: transparent; color: #fff; }
.lightbox__btn svg { width: 24px; height: 24px; }
.lightbox__btn:hover { background: rgba(255, 255, 255, 0.12); }
.lightbox__close { top: 18px; right: 18px; }
.lightbox__prev { left: 18px; top: 50%; margin-top: -26px; }
.lightbox__prev svg { transform: rotate(180deg); }
.lightbox__next { right: 18px; top: 50%; margin-top: -26px; }

/* visit (home) */
.visit__grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.visit__tel { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 18px; font-size: clamp(28px, 2.8vw, 36px); font-weight: 800; color: var(--navy-800); letter-spacing: -0.02em; }
.visit__tel svg { width: 28px; height: 28px; }
.visit__addr { margin-top: 22px; border-top: 1px solid var(--line-2); }
.visit__addr > div { display: grid; grid-template-columns: 76px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; }
.visit__addr dt { font-weight: 700; }
.visit__addr dd { margin: 0; color: var(--ink-2); }
.hours { border-top: 2px solid var(--ink); }
.hours th, .hours td { padding: 13px 4px; border-bottom: 1px solid var(--line); text-align: left; font-size: 16.5px; }
.hours th { width: 36%; font-weight: 700; }
.hours td { color: var(--ink-2); font-variant-numeric: tabular-nums; }
.hours .is-night td { color: var(--ink); font-weight: 700; }
.hours .is-off th, .hours .is-off td { color: #b42318; }
.hours__note { margin-left: 8px; font-size: 14px; font-weight: 600; color: var(--navy-700); }
.hours .is-night .hours__note { color: var(--navy-700); }
.hours-wrap { max-width: calc(760px + var(--gutter) * 2); }

/* ---------- Naver map ---------- */
.nmap { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--line); background: #e9edf1; }
.nmap--tall { aspect-ratio: auto; height: clamp(360px, 52vh, 520px); }
.nmap__canvas { position: absolute; inset: 0; }
.nmap__fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; background: linear-gradient(0deg, rgba(233, 237, 241, 0.92), rgba(233, 237, 241, 0.92)), repeating-linear-gradient(0deg, transparent 0 46px, #d7dde4 46px 48px), repeating-linear-gradient(90deg, transparent 0 46px, #d7dde4 46px 48px); }
.nmap.is-ready .nmap__fallback { display: none; }
.nmap__pin { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--navy-800); color: #fff; }
.nmap__pin svg { width: 26px; height: 26px; }
.nmap__fallback-title { margin-top: 14px; font-size: 20px; font-weight: 800; }
.nmap__fallback-addr { margin-top: 4px; font-size: 15.5px; color: var(--ink-2); }
.nmap__fallback-sub { margin: 2px 0 18px; font-size: 14.5px; color: var(--ink-2); }
.nmap-marker { position: relative; transform: translate(-50%, -100%); padding: 8px 14px; border-radius: 4px; background: var(--navy-800); color: #fff; font: 700 14px/1.2 var(--font); white-space: nowrap; box-shadow: 0 4px 12px rgba(11, 29, 56, 0.3); }
.nmap-marker::after { content: ""; position: absolute; left: 50%; bottom: -7px; margin-left: -7px; border: 7px solid transparent; border-bottom: 0; border-top-color: var(--navy-800); }
.map-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.map-links a, .map-links button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; font-size: 15px; font-weight: 700; color: var(--ink); transition: border-color 0.2s; }
.map-links svg { width: 16px; height: 16px; }
.map-links li:first-child svg { color: var(--naver); }
.map-links a:hover, .map-links button:hover { border-color: var(--navy-800); }
.copy-status { margin-top: 8px; font-size: 14.5px; font-weight: 700; color: #1f6b43; }
.copy-status:empty { display: none; }

/* ---------- Sub pages ---------- */
.subvis { position: relative; isolation: isolate; overflow: hidden; color: #fff; text-align: center; }
.subvis__media { position: absolute; inset: 0; z-index: -2; }
.subvis__media img { width: 100%; height: 100%; object-fit: cover; }
.subvis::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 29, 56, 0.74); }
.subvis__in { padding: clamp(64px, 8vw, 104px) var(--gutter) clamp(56px, 7vw, 88px); }
.subvis__title { font-size: clamp(32px, 3.8vw, 46px); font-weight: 800; letter-spacing: -0.04em; }
.subvis__sub { margin-top: 12px; font-size: clamp(16px, 1.3vw, 18px); color: #edf1f6; }
.crumbs ol { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 22px; font-size: 13.5px; color: #e6ebf2; }
.crumbs li + li::before { content: "›"; margin-right: 6px; color: inherit; }
.crumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.crumbs a[aria-current="page"] { color: #fff; font-weight: 700; }
.lnb, .anchor-nav { position: sticky; top: var(--header-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
/* Only one sticky bar per page: when an anchor nav follows the section tabs, the tabs scroll away. */
.lnb:has(+ .anchor-nav) { position: relative; top: auto; }
.lnb__list, .anchor-nav ul { display: flex; justify-content: center; overflow-x: auto; scrollbar-width: none; }
.lnb__list::-webkit-scrollbar, .anchor-nav ul::-webkit-scrollbar { display: none; }
.lnb a, .anchor-nav a { position: relative; display: block; padding: 20px 26px; font-weight: 700; font-size: 16.5px; color: var(--ink-3); white-space: nowrap; }
.lnb a:hover, .anchor-nav a:hover { color: var(--ink); }
.lnb a[aria-current="page"], .anchor-nav a.is-current { color: var(--navy-800); }
.lnb a[aria-current="page"]::after, .anchor-nav a.is-current::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--navy-800); }

/* about */
.greet { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.greet__photo { aspect-ratio: 1; overflow: hidden; background: #dfe4ea; }
.greet__photo img { width: 100%; height: 100%; object-fit: cover; }
.greet__title { margin-bottom: 28px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; line-height: 1.45; letter-spacing: -0.04em; }
.greet__sign { margin-top: 32px; font-size: 16px; color: var(--ink-3); }
.greet__sign strong { margin-left: 6px; font-size: 22px; font-weight: 800; color: var(--ink); }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--ink); }
.principles li { padding: 28px 24px 30px; border-bottom: 1px solid var(--line-2); }
.principles li + li { border-left: 1px solid var(--line-2); }
.principles strong { display: block; font-size: 20px; font-weight: 800; }
.principles span { display: block; margin-top: 10px; font-size: 15.5px; color: var(--ink-2); }
.history { max-width: calc(860px + var(--gutter) * 2); }
.history__list { border-top: 2px solid var(--ink); }
.history__list li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 18px 4px; border-bottom: 1px solid var(--line); }
.history__year { font-size: 20px; font-weight: 800; color: var(--navy-700); }
.history__text { font-size: 17px; color: var(--ink-2); }
.floor { margin-top: 48px; border-top: 2px solid var(--ink); background: #fff; }
.floor th, .floor td { padding: 15px 20px; border-bottom: 1px solid var(--line); text-align: left; }
.floor th { width: 120px; font-size: 18px; font-weight: 800; color: var(--navy-800); }
.floor td { color: var(--ink-2); }

/* doctors */
.doc-list { display: grid; gap: clamp(56px, 8vw, 104px); }
.profile { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(32px, 6vw, 88px); align-items: start; scroll-margin-top: calc(var(--header-h) + 80px); }
.profile--rev .profile__photo { order: 2; }
.profile__photo { aspect-ratio: 1; overflow: hidden; background: #dfe4ea; }
.profile__photo img { width: 100%; height: 100%; object-fit: cover; }
.profile__spec { font-size: 16px; font-weight: 700; color: var(--navy-700); }
.profile__name { margin-top: 4px; font-size: clamp(32px, 3.2vw, 40px); font-weight: 800; }
.profile__name span { margin-left: 6px; font-size: 19px; font-weight: 600; color: var(--ink-3); }
.profile__field { margin-top: 10px; font-size: 17.5px; font-weight: 600; color: var(--ink-2); }
.profile__bio { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line-2); display: grid; gap: 8px; }
.profile__bio li { position: relative; padding-left: 14px; font-size: 16px; color: var(--ink-2); }
.profile__bio li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.sched { margin-top: 28px; text-align: center; font-size: 15px; border-top: 2px solid var(--ink); }
.sched__cap { caption-side: top; padding-bottom: 10px; text-align: left; font-weight: 800; font-size: 16px; }
.sched th { padding: 10px 4px; border-bottom: 1px solid var(--line-2); font-weight: 700; background: var(--gray); }
.sched td { padding: 12px 4px; border-bottom: 1px solid var(--line-2); font-weight: 700; color: var(--navy-800); }
.sched td.is-off { color: var(--ink-3); font-weight: 500; }
.sched td.is-night { color: var(--navy-500); font-size: 14px; }

/* equipment page */
.eq-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 40px; }
.eq-row__media { aspect-ratio: 16 / 10; overflow: hidden; background: #e3e7ec; }
.eq-row__media img { width: 100%; height: 100%; object-fit: cover; }
.eq-row__name { margin-top: 20px; font-size: 23px; font-weight: 800; }
.eq-row__text { margin-top: 8px; font-size: 16.5px; color: var(--ink-2); }

/* care pages */
.intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.intro--rev .intro__media { order: 2; }
.intro__media { aspect-ratio: 16 / 10; overflow: hidden; background: #e3e7ec; }
.intro__media img { width: 100%; height: 100%; object-fit: cover; }
.intro__title { font-size: clamp(26px, 2.8vw, 36px); font-weight: 800; line-height: 1.4; letter-spacing: -0.04em; }
.intro__text { margin-top: 18px; font-size: 17.5px; color: var(--ink-2); line-height: 1.8; }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); }
.step { padding: 28px 22px 32px; border-bottom: 1px solid var(--line-2); }
.step + .step { border-left: 1px solid var(--line-2); }
.step__num { font-size: 13.5px; font-weight: 800; color: var(--navy-500); letter-spacing: 0.04em; }
.step__title { margin-top: 10px; font-size: 19px; font-weight: 800; }
.step__text { margin-top: 8px; font-size: 15.5px; color: var(--ink-2); }
.tri { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.tri__media, .quad__media { aspect-ratio: 16 / 10; overflow: hidden; background: #e3e7ec; }
.tri__media img, .quad__media img { width: 100%; height: 100%; object-fit: cover; }
.tri__title, .quad__title { margin-top: 18px; font-size: 21px; font-weight: 800; }
.tri__text, .quad__text { margin-top: 6px; font-size: 16px; color: var(--ink-2); }
.quad { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.info-table { border-top: 2px solid var(--ink); background: #fff; }
.info-table th, .info-table td { padding: 16px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 16.5px; }
.info-table th { width: 160px; font-weight: 700; background: var(--gray); }
.info-table td { color: var(--ink-2); }
.info-table a { font-weight: 800; color: var(--navy-800); }
.info-table--loc { margin-top: 32px; }
.treat-list .section { scroll-margin-top: calc(var(--header-h) + 60px); }

/* filters (cases, fees) */
.filter { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.filter__tabs { display: flex; flex-wrap: wrap; border: 1px solid var(--line-2); border-radius: 4px; overflow: hidden; }
.filter__btn { min-height: 46px; padding: 0 20px; border: 0; background: #fff; font-weight: 700; font-size: 15.5px; color: var(--ink-2); transition: background-color 0.2s, color 0.2s; }
.filter__btn + .filter__btn { border-left: 1px solid var(--line-2); }
.filter__btn:hover { color: var(--ink); background: var(--gray); }
.filter__btn[aria-pressed="true"] { background: var(--navy-800); color: #fff; }
.filter__count, .fee-count { font-weight: 700; color: var(--ink-3); font-size: 15px; }

/* fees */
.fee-tools { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.fee-search input { width: min(320px, 100%); min-height: 46px; padding: 0 16px 0 44px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='11' cy='11' r='7' fill='none' stroke='%236b717a' stroke-width='2'/%3E%3Cpath d='m20 20-3.5-3.5' stroke='%236b717a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 14px center / 19px no-repeat; }
.fee-search input:focus { border-color: var(--navy-800); outline: none; }
.fee-search input:focus-visible { outline: 3px solid var(--navy-500); outline-offset: 2px; }
.fee-count { margin-bottom: 12px; }
.table-wrap { overflow-x: auto; border-top: 2px solid var(--ink); background: #fff; }
.table-wrap:focus-visible { outline-offset: 4px; }
.fee-table { min-width: 720px; font-size: 15.5px; }
.fee-table th, .fee-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.fee-table thead th { background: var(--gray); color: var(--ink); font-weight: 700; font-size: 15px; white-space: nowrap; border-bottom: 1px solid var(--line-2); }
.fee-table tbody th { font-weight: 700; color: var(--ink); }
.fee-table tbody td { color: var(--ink-2); }
.fee-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fee-table td.num { color: var(--ink); font-weight: 700; }
.fee-table--cert td.num:last-child { color: var(--ink-3); font-weight: 500; }
.fee-cat { white-space: nowrap; color: var(--ink-3) !important; font-size: 14.5px; }
.fee-empty td { text-align: center; padding: 36px; color: var(--ink-3); }
.fine { margin-top: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-3); }
.fine li { position: relative; padding-left: 12px; }
.fine li::before { content: "·"; position: absolute; left: 0; font-weight: 900; }

/* legal + 404 */
.legal__meta { font-weight: 700; color: var(--ink-3); margin-bottom: 18px; }
.legal__intro { color: var(--ink-2); margin-bottom: 28px; }
.legal__toc { padding: 24px 28px; background: var(--gray); margin-bottom: 40px; }
.legal__toc ol { columns: 2; column-gap: 32px; }
.legal__toc li { break-inside: avoid; padding: 4px 0; }
.legal__toc a { color: var(--navy-700); font-weight: 600; font-size: 15.5px; }
.legal__toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal__article { padding: 28px 0; border-top: 1px solid var(--line); }
.legal__article h2 { font-size: 20px; font-weight: 800; margin-bottom: 14px; }
.legal__article p, .legal__body, .legal__list { color: var(--ink-2); font-size: 16px; }
.legal__article p + p, .legal__article p + .table-wrap, .legal__article .table-wrap + p { margin-top: 14px; }
.legal__list { list-style: decimal; padding-left: 22px; display: grid; gap: 8px; }
.legal__list ol, .legal__body ol { list-style: decimal; padding-left: 22px; margin-top: 8px; display: grid; gap: 4px; }
.legal .fee-table { min-width: 560px; font-size: 15px; }
.legal__dl > div { display: grid; grid-template-columns: 170px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.legal__dl dt { font-weight: 800; }
.legal__dl dd { margin: 0; color: var(--ink-2); }
.legal__dl + p { margin-top: 16px; }
.notice--box { margin-top: 40px; padding: 20px 22px; background: var(--gray); font-size: 14.5px; color: var(--ink-3); }
.notfound { text-align: center; padding: clamp(80px, 12vw, 160px) 0; }
.notfound__code { font-size: clamp(88px, 14vw, 150px); font-weight: 800; line-height: 1; color: var(--navy-50); margin-bottom: 8px; }
.notfound .sec-desc { margin: 18px auto 32px; max-width: 520px; }
.notfound__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }

/* demo consult form (kept for reuse; not on the home page) */
.consult { padding: 32px; background: #fff; border: 1px solid var(--line); }
.consult__title { font-size: 22px; font-weight: 800; }
.consult__lead { margin: 6px 0 22px; font-size: 15px; color: var(--ink-3); }
.consult__grid { display: grid; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.req { color: #b42318; }
.field input[type="text"], .field input[type="tel"], .field select { width: 100%; min-height: 50px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 4px; background: #fff; }
.field input:focus, .field select:focus { border-color: var(--navy-800); outline: none; }
.field input:focus-visible, .field select:focus-visible { outline: 3px solid var(--navy-500); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: #b42318; }
.field__err { margin-top: 6px; font-size: 14px; font-weight: 700; color: #b42318; }
.field__err:empty { display: none; }
.field--check { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.field--check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--navy-800); }
.field--check label { margin: 0; font-weight: 500; font-size: 14.5px; color: var(--ink-2); }
.field--check label a { text-decoration: underline; text-underline-offset: 3px; }
.field--check .field__err { grid-column: 2; }
.form-status { margin-top: 14px; font-size: 15px; font-weight: 700; color: var(--ink-2); }
.form-status:empty { display: none; }
.form-status.is-demo { padding: 14px 16px; background: var(--gray); border-left: 3px solid var(--navy-800); }

/* ---------- CTA band + footer ---------- */
.cta-band { background: var(--navy-800); color: #fff; padding: clamp(48px, 6vw, 72px) 0; }
.cta-band__in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band__title { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; }
.cta-band p { margin-top: 8px; color: #c9d4e2; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; }
.cta-band__tel { display: inline-flex; align-items: center; gap: 10px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 800; letter-spacing: -0.02em; }
.cta-band__tel svg { width: 26px; height: 26px; }

.footer { background: #20242a; color: #a6adb7; font-size: 14.5px; padding-bottom: 40px; }
.footer__links-bar { border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer__links { display: flex; flex-wrap: wrap; gap: 0; padding: 16px 0; }
.footer__links li + li::before { content: ""; display: inline-block; width: 1px; height: 12px; margin: 0 14px; background: rgba(255, 255, 255, 0.22); vertical-align: -1px; }
.footer__links a { color: #d4d9df; font-weight: 600; }
.footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__links a.is-strong { color: #fff; font-weight: 800; }
.footer__body { display: grid; grid-template-columns: auto 1fr auto; gap: 48px; padding-top: 40px; padding-bottom: 36px; }
.footer__info p + p { margin-top: 6px; }
.footer__info span + span::before { content: ""; display: inline-block; width: 1px; height: 11px; margin: 0 12px; background: rgba(255, 255, 255, 0.2); vertical-align: -1px; }
.footer__info a { color: #d4d9df; }
.footer__info a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer__copy { margin-top: 16px !important; color: #868d97; }
.footer__call { min-width: 250px; }
.footer__call-label { font-weight: 700; color: #d4d9df; }
.footer__call-num { display: block; margin: 2px 0 12px; font-size: 30px; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.footer__hours > div { display: flex; justify-content: space-between; gap: 18px; padding: 3px 0; }
.footer__hours dt { color: #a6adb7; }
.footer__hours dd { margin: 0; color: #e2e6ea; font-variant-numeric: tabular-nums; }
.footer__note { margin-top: 8px; color: #868d97; font-size: 13.5px; }
.footer__demo { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); color: #868d97; font-size: 13.5px; }
.footer__demo > p { color: #c4a57f; font-weight: 600; }
.footer__credits { margin-top: 6px; }
.footer__credits summary { cursor: pointer; width: fit-content; color: #a6adb7; }
.footer__credits summary:hover { color: #fff; }
.footer__credits p { margin-top: 6px; max-width: 820px; }

/* ---------- Quick menu (right) ---------- */
.quick { position: fixed; right: 20px; top: 50%; z-index: 80; transform: translateY(-50%); }
.quick__list { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.quick__item { display: block; border-radius: 50%; }
.quick__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; box-shadow: 0 4px 12px -2px rgba(0, 0, 0, 0.24); transition: transform 0.25s var(--ease); }
.quick__icon svg { width: 25px; height: 25px; }
.quick__item:hover .quick__icon { transform: translateY(-2px); }
.quick__item--naver .quick__icon { background: var(--naver); color: #fff; }
.quick__item--naver .quick__icon svg { width: 20px; height: 20px; }
.quick__item--blog .quick__icon { background: #000; }
.quick__item--blog .quick__icon svg { width: 100%; height: 100%; }
.quick__item--kakao .quick__icon { background: var(--kakao); color: #3a1d1d; }
.quick__item--kakao .quick__icon svg { width: 28px; height: 28px; }
.quick__item--tel .quick__icon { background: var(--navy-800); color: #fff; }
.quick__top { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line-2); border-radius: 50%; background: #fff; color: var(--ink); box-shadow: 0 3px 10px -4px rgba(0, 0, 0, 0.25); opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.quick__top svg { width: 18px; height: 18px; }
.quick.is-scrolled .quick__top { opacity: 1; pointer-events: auto; }

/* ---------- Scroll reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--d, 0) * 80ms); }
.js [data-reveal].is-in, .reveal-fallback [data-reveal] { opacity: 1; transform: none; }
/* ---------- Responsive ---------- */
/* Desktop: keep content clear of the right quick menu. */
@media (min-width: 1181px) {
  main .container, .footer .container { max-width: min(calc(var(--container) + var(--gutter) * 2), calc(100vw - 210px)); }
}
@media (max-width: 1280px) {
  .gnb__link { padding: 0 14px; font-size: 16.5px; }
  .gnb__link::after { left: 14px; right: 14px; }
}
@media (max-width: 1180px) {
  .gnb, .header__tel, .topbar { display: none; }
  .header__in { justify-content: space-between; }
  :root { --header-h: 68px; }
  .menu-btn { display: grid; }
  /* quick menu becomes a bottom bar */
  .quick { top: auto; bottom: 0; left: 0; right: 0; transform: none; }
  .quick__list { flex-direction: row; align-items: stretch; gap: 0; padding: 0 0 env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 14px -10px rgba(0, 0, 0, 0.3); }
  .quick__list > li { flex: 1; }
  .quick__list > li + li { border-left: 1px solid var(--line); }
  .quick__item { display: grid; place-items: center; width: 100%; min-height: 58px; border-radius: 0; }
  .quick__icon { width: 40px; height: 40px; box-shadow: none; }
  .quick__icon svg { width: 19px; height: 19px; }
  .quick__item--naver .quick__icon svg { width: 15px; height: 15px; }
  .quick__item--kakao .quick__icon svg { width: 22px; height: 22px; }
  .quick__item--blog .quick__icon svg { width: 100%; height: 100%; }
  .quick__top-wrap { flex: 0 0 58px !important; display: grid; place-items: center; }
  .quick__top { opacity: 1; pointer-events: auto; border: 0; box-shadow: none; width: 58px; height: 58px; border-radius: 0; }
  .footer { padding-bottom: 100px; }
  .txbar__list { grid-template-columns: repeat(4, 1fr); }
  .txbar__list li:nth-child(5) a { border-left: 0; }
  .txbar__list li:nth-child(n + 5) a { border-top: 1px solid var(--line); }
}
@media (max-width: 1024px) {
  .doc-grid, .eq-grid, .quad { grid-template-columns: repeat(2, 1fr); }
  .ba-grid { grid-template-columns: repeat(2, 1fr); }
  .ba-grid > li:nth-child(3) { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step:nth-child(4) { border-left: 0; }
  .principles { grid-template-columns: repeat(2, 1fr); }
  .principles li:nth-child(3) { border-left: 0; }
  .footer__body { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .hero { background: #f3eee8; }
  .hero__media { position: relative; inset: auto; aspect-ratio: 16 / 10; }
  .hero__media img { object-position: 78% 30%; }
  .hero::before { display: none; }
  .hero__in { min-height: 0; padding-top: 32px; padding-bottom: 44px; }
  .hero__copy { max-width: none; }
  .point, .greet, .profile, .intro, .visit__grid { grid-template-columns: 1fr; }
  .point--rev .point__media, .profile--rev .profile__photo, .intro--rev .intro__media { order: 0; }
  .profile__photo, .greet__photo { max-width: 420px; }
  .tri, .eq-list, .ba-grid--2 { grid-template-columns: 1fr; }
  .ba-grid > li:nth-child(3) { display: block; }
  .ba-grid { grid-template-columns: 1fr; gap: 40px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 14px 10px; }
  .gallery__item--wide { grid-column: span 2; grid-row: auto; }
  .gallery__item--wide .gallery__btn { height: auto; }
  .steps { grid-template-columns: 1fr; }
  .step + .step { border-left: 0; }
  .principles { grid-template-columns: 1fr; }
  .principles li + li { border-left: 0; }
  .legal__toc ol { columns: 1; }
  .lnb__list, .anchor-nav ul { justify-content: flex-start; }
  .lnb a, .anchor-nav a { padding: 16px 16px; font-size: 15.5px; }
  .nmap { aspect-ratio: 4 / 3; }
  .nmap--tall { aspect-ratio: auto; height: 360px; }
}
@media (max-width: 560px) {
  .txbar__list a { padding: 22px 2px 18px; font-size: 14px; gap: 8px; }
  .tx-icon { width: 36px; height: 36px; }
  .doc-grid { gap: 20px 14px; }
  .doc__name { font-size: 19px; }
  .doc__name span { display: block; margin: 0; font-size: 14px; }
  .doc__spec { font-size: 13.5px; }
  .eq-grid, .quad { grid-template-columns: 1fr 1fr; gap: 20px 14px; }
  .eq__name, .quad__title { font-size: 17px; }
  .eq__text, .quad__text { font-size: 14.5px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .history__list li { grid-template-columns: 76px 1fr; }
  .info-table th { width: 92px; padding: 14px 12px; }
  .info-table td { padding: 14px 12px; font-size: 15.5px; }
  .floor th { width: 80px; padding: 13px 12px; }
  .footer__body { grid-template-columns: 1fr; gap: 28px; }
  .footer__info span { display: block; }
  .footer__info span + span::before { display: none; }
  .cta-band__actions { width: 100%; }
  .cta-band__actions .btn { flex: 1 1 100%; }
  .filter__tabs { width: 100%; }
  .filter__btn { flex: 1 1 auto; padding: 0 10px; font-size: 14.5px; }
  .legal__dl > div { grid-template-columns: 1fr; gap: 2px; }
  .ba__table th { width: 80px; }
}

/* Fee tables become stacked rows on phones; explicit ARIA roles in the markup keep table semantics. */
@media (max-width: 640px) {
  .table-wrap--cards { overflow: visible; background: transparent; }
  .fee-table--cards { min-width: 0; }
  .fee-table--cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fee-table--cards tbody tr { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .fee-table--cards tbody tr[hidden] { display: none; }
  .fee-table--cards tbody th, .fee-table--cards tbody td { display: block; padding: 0; border: 0 !important; }
  .fee-table--cards td[data-label]::before { content: attr(data-label); display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-3); }
  .fee-table--cards .num { text-align: left; }
  .fee-table--fees td:nth-child(1) { grid-column: 1 / -1; }
  .fee-table--fees th { grid-column: 1 / -1; font-size: 16.5px; }
  .fee-table--fees td:nth-child(3) { grid-column: 1; }
  .fee-table--fees td:nth-child(4) { grid-column: 2; text-align: right; }
  .fee-table--fees td:nth-child(5) { grid-column: 1 / -1; font-size: 14px; }
  .fee-table--fees td.is-blank { display: none; }
  .fee-table--cert th { grid-column: 1; font-size: 16.5px; }
  .fee-table--cert td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-size: 14.5px; }
  .fee-table--cert td:nth-child(3) { grid-column: 2; grid-row: 1; text-align: right; }
  .fee-table--cert td:nth-child(3)::before { display: none; }
  .fee-table--cert td:nth-child(4) { grid-column: 1 / -1; font-size: 13.5px; }
  .fee-table--cert td:nth-child(4)::before { display: inline; margin-right: 6px; font-size: inherit; }
  .fee-empty { display: block !important; }
  .fee-empty[hidden] { display: none !important; }
  .fee-empty td { padding: 24px 0 !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .mnav__list > li { opacity: 1; transform: none; }
  .doc a:hover .doc__photo img, .gallery__btn:hover img, .txbar__list a:hover .tx-icon, .quick__item:hover .quick__icon { transform: none; }
}
@media print {
  .topbar, .header, .quick, .mnav, .cta-band, .lnb, .anchor-nav, .band { display: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .section { padding: 24px 0; }
}
