@charset "utf-8";

/* ==========================================================================
   아나플란트치과 · 디자인 시스템
   로고에서 추출한 브랜드 색상(남색 #001860 / 녹색 #189030) 기반
   ========================================================================== */

:root {
  /* 브랜드 */
  --navy-900: #061437;
  --navy-800: #0b2050;
  --navy-700: #12306b;
  --navy-600: #1b4491;
  --navy-100: #e8eefb;
  --navy-50:  #f4f7fd;

  --green-700: #12742a;
  --green-600: #189030;
  --green-500: #21a83c;
  --green-100: #e4f6e8;

  /* 중립 */
  --ink:      #16202e;
  --ink-soft: #46536a;
  --ink-mute: #74809a;
  --line:     #e3e8f1;
  --surface:  #ffffff;
  --surface-2:#f7f9fd;

  /* 타이포 — 시스템 폰트로 즉시 렌더(외부 다운로드 없음 = 빠름) */
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
          "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;

  /* 레이아웃 */
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --radius: 16px;
  --radius-sm: 10px;

  /* 그림자 */
  --shadow-sm: 0 1px 3px rgba(11, 32, 80, .07), 0 1px 2px rgba(11, 32, 80, .04);
  --shadow:    0 6px 20px rgba(11, 32, 80, .09);
  --shadow-lg: 0 18px 48px rgba(11, 32, 80, .14);

  --header-h: 76px;
}

/* --------------------------------------------------------------- 기본 리셋 */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.7;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;      /* 한글 단어 중간 줄바꿈 방지 */
  overflow-wrap: break-word;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* 화면에는 안 보이지만 스크린리더는 읽는 텍스트 */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* 건너뛰기 링크 (접근성) */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy-700); color: #fff;
  padding: 12px 20px; border-radius: 0 0 8px 8px;
  transition: top .2s;
}
.skip:focus { top: 0; }

/* --------------------------------------------------------------- 레이아웃 */
.wrap {
  width: min(var(--wrap), 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(64px, 9vw, 120px); }
.section--tint { background: var(--surface-2); }
.section--navy { background: var(--navy-800); color: #fff; }

/* --------------------------------------------------------------- 타이포 */
.eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--green-600);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section--navy .eyebrow { color: #7fd894; }

h1, h2, h3, h4 { line-height: 1.3; font-weight: 700; letter-spacing: -.03em; }

.h-display { font-size: clamp(2rem, 5.2vw, 3.5rem); font-weight: 800; line-height: 1.22; }
.h-section  { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
.h-card     { font-size: clamp(1.125rem, 1.6vw, 1.375rem); }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: var(--ink-soft);
  max-width: 62ch;
}
.section--navy .lead { color: rgba(255,255,255,.82); }

.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-head--center { text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* --------------------------------------------------------------- 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9688rem;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--green-600); color: #fff; box-shadow: 0 6px 18px rgba(24,144,48,.32); }
.btn--primary:hover { background: var(--green-500); }

.btn--navy { background: var(--navy-700); color: #fff; box-shadow: 0 6px 18px rgba(18,48,107,.28); }
.btn--navy:hover { background: var(--navy-600); }

.btn--ghost { border: 1.5px solid rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.14); }

.btn--outline { border: 1.5px solid var(--line); color: var(--navy-700); background: #fff; }
.btn--outline:hover { border-color: var(--navy-600); }

/* 카카오톡 — 환자분들이 가장 많이 쓰는 문의 창구라 눈에 띄게 */
.btn--kakao { background: #FEE500; color: #191600; box-shadow: 0 6px 18px rgba(254,229,0,.35); }
.btn--kakao:hover { background: #FFEB33; }

/* --------------------------------------------------------------- 헤더 */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .25s, border-color .25s, box-shadow .25s;
}
.header.is-stuck {
  background: rgba(255,255,255,.97);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.header__inner {
  width: min(var(--wrap), 100%);
  margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
/* flex 안에서 로고가 찌그러지지 않도록 (메뉴가 길어져도 원래 비율 유지) */
.header__logo { flex: 0 0 auto; }
.header__logo img { height: 34px; width: auto; flex: none; }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 2vw, 32px); }
.nav__link {
  position: relative;
  font-weight: 600; font-size: .9688rem;
  color: var(--ink); padding-block: 6px;
  white-space: nowrap;          /* 메뉴 항목이 두 줄로 접히지 않도록 */
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--green-600);
  transform: scaleX(0); transform-origin: left;
  transition: transform .24s ease;
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.header__cta { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }

/* 모바일 메뉴 안쪽 버튼 — 데스크톱에서는 숨김 */
.nav__mobile-cta { display: none; }
.header__tel {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 800; font-size: 1.0625rem; color: var(--navy-700);
  letter-spacing: -.02em;
  white-space: nowrap;          /* 전화번호가 줄바꿈되지 않도록 */
}

.hamburger {
  display: none;
  width: 44px; height: 44px;
  margin-left: auto;
  align-items: center; justify-content: center;
}
.hamburger span {
  display: block; position: relative;
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: background-color .2s;
}
.hamburger span::before, .hamburger span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 2px; background: var(--ink); border-radius: 2px;
  transition: transform .25s ease, top .2s ease;
}
.hamburger span::before { top: -7px; }
.hamburger span::after  { top: 7px; }
.hamburger[aria-expanded="true"] span { background: transparent; }
.hamburger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }


/* --------------------------------------------------------------- 명칭 변경 안내 */
.rename {
  margin-top: var(--header-h);
  background: linear-gradient(100deg, var(--navy-800), var(--navy-600));
  color: #fff;
}
.rename__inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 10px 16px;
  padding-block: 14px;
}
.rename__badge {
  flex: none;
  font-size: .75rem; font-weight: 800; letter-spacing: .02em;
  background: rgba(255,255,255,.16);
  padding: 5px 12px; border-radius: 999px;
  white-space: nowrap;
}
.rename__text {
  font-size: .9375rem; line-height: 1.6;
  color: rgba(255,255,255,.92);
}
.rename__text strong { color: #fff; font-weight: 700; }
.rename__new { color: #7fd894; }
.rename__sub { color: rgba(255,255,255,.72); }

/* 안내 띠가 생기면 히어로는 위 여백을 갖지 않는다 */
.rename + .hero { margin-top: 0; }

@media (max-width: 560px) {
  .rename__inner { padding-block: 12px; }
  .rename__text { font-size: .875rem; }
}

/* --------------------------------------------------------------- 히어로 */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  margin-top: var(--header-h);
  display: grid; align-items: center;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
}
.hero__media {
  position: absolute; inset: 0;
  z-index: 0;
}
.hero__media video, .hero__media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero__media::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, rgba(6,20,55,.92) 0%, rgba(6,20,55,.72) 45%, rgba(6,20,55,.35) 100%),
    linear-gradient(to top, rgba(6,20,55,.6), transparent 45%);
}
.hero__inner {
  position: relative; z-index: 1;
  width: min(var(--wrap), 100%);
  margin-inline: auto; padding-inline: var(--gutter);
  padding-block: clamp(70px, 12vw, 120px);
}
.hero__content { max-width: 42rem; }
.hero__title { color: #fff; margin-bottom: 22px; }
.hero__title em { font-style: normal; color: #7fd894; }
.hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: rgba(255,255,255,.86);
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__facts {
  position: relative; z-index: 1;
  border-top: 1px solid rgba(255,255,255,.16);
  background: rgba(6,20,55,.5);
  backdrop-filter: blur(6px);
}
.hero__facts-inner {
  width: min(var(--wrap), 100%);
  margin-inline: auto; padding: 22px var(--gutter);
  display: grid; gap: 8px 34px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.fact { display: flex; align-items: baseline; gap: 10px; font-size: .9375rem; }
.fact__k { color: #7fd894; font-weight: 700; flex: none; }
.fact__v { color: rgba(255,255,255,.9); }

/* --------------------------------------------------------------- 카드 그리드 */
.grid { display: grid; gap: clamp(16px, 2.2vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); }
/* 치료 전후 사진은 가로로 길어서 2열로 크게 보여준다 */
.grid--cases { grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); }
/* 임플란트 브랜드 4개는 2×2로 균형있게 */
.grid--brands { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
@media (max-width: 520px) {
  .grid--cases, .grid--brands { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 62px; height: 62px; margin-bottom: 18px;
  object-fit: contain;
}
.card__title { margin-bottom: 10px; }
.card__desc { color: var(--ink-soft); font-size: .9688rem; }

/* --------------------------------------------------------------- 의료진 */
.doctor {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.doctor + .doctor { margin-top: clamp(48px, 6vw, 84px); padding-top: clamp(48px, 6vw, 84px); border-top: 1px solid var(--line); }
.doctor__photo {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--navy-50);
}
.doctor__photo img { width: 100%; }
.doctor__name {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 6px;
}
.doctor__role { color: var(--green-600); font-weight: 700; margin-bottom: 22px; }
.doctor__cols { display: grid; gap: 28px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.doctor__subtitle {
  font-size: .8125rem; font-weight: 700; letter-spacing: .1em;
  color: var(--ink-mute); text-transform: uppercase;
  padding-bottom: 10px; margin-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.doctor__list li {
  position: relative;
  padding-left: 15px;
  font-size: .9375rem;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
.doctor__list li::before {
  content: ""; position: absolute; left: 0; top: .72em;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--green-500);
}
.doctor__list li strong { color: var(--ink); font-weight: 700; }
.doctor__list--papers li { font-size: .875rem; line-height: 1.6; }

/* --------------------------------------------------------------- 외래교수 강의 */
.teach {
  display: grid; gap: clamp(28px, 4vw, 60px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: center;
}
.teach__figure { margin: 0; }
.teach__figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: var(--surface-2);
}
.teach__figure figcaption {
  margin-top: 12px; text-align: center;
  font-size: .8125rem; color: var(--ink-mute);
}
.teach__facts { margin-bottom: 28px; }
.teach__facts li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: .9375rem;
}
.teach__facts li:last-child { border-bottom: 1px solid var(--line); }
.teach__k { font-weight: 700; color: var(--green-600); }
.teach__v { color: var(--ink-soft); }
.teach__body .lead strong { color: var(--ink); font-weight: 700; }

@media (max-width: 900px) {
  .teach { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- 치료사례 */
.case {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .22s ease, box-shadow .22s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
/* 치료 전/후 비교 사진은 가로로 긴 원본(1208×405)이라
   비율을 그대로 맞춰 BEFORE·AFTER 표시가 잘리지 않게 한다 */
.case__img { aspect-ratio: 1208 / 405; background: var(--surface-2); }
.case__img img { width: 100%; height: 100%; object-fit: cover; }
.case__body { padding: 20px 22px 24px; }
.case__title { font-size: 1rem; font-weight: 700; margin-bottom: 8px; line-height: 1.5; }
.case__meta {
  display: inline-block;
  font-size: .8125rem; font-weight: 700;
  color: var(--green-700); background: var(--green-100);
  padding: 3px 11px; border-radius: 999px;
}

.notice-box {
  margin-top: 28px;
  display: flex; gap: 12px; align-items: flex-start;
  padding: 18px 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: .875rem;
  color: var(--ink-soft);
}
.notice-box svg { flex: none; margin-top: 2px; color: var(--ink-mute); }

/* --------------------------------------------------------------- 임플란트 브랜드 */
.brand {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  height: 100%;
}
.brand__logo {
  width: 108px; height: 72px;
  object-fit: contain;
  object-position: left center;
}
.brand__tag { font-size: .8125rem; color: var(--green-600); font-weight: 700; margin-bottom: 4px; }
.brand__name { font-size: 1.1875rem; margin-bottom: 14px; }
.brand__list li {
  position: relative; padding-left: 20px;
  font-size: .9375rem; color: var(--ink-soft); margin-bottom: 6px;
}
.brand__list li::before {
  content: ""; position: absolute; left: 2px; top: .62em;
  width: 9px; height: 5px;
  border-left: 2px solid var(--green-500);
  border-bottom: 2px solid var(--green-500);
  transform: rotate(-45deg);
}
.brand__list li strong { color: var(--ink); font-weight: 700; }

/* 강조 카드 (소개환자 · 보증서) */
.brand--accent {
  background: linear-gradient(150deg, var(--navy-50), #fff 65%);
  border-color: var(--navy-100);
}
.brand--accent .brand__name { color: var(--navy-700); }

/* --------------------------------------------------------------- 안전 원칙 */
.safety {
  display: grid; gap: clamp(14px, 1.8vw, 20px);
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  counter-reset: safety;
}
.safety__item {
  display: grid; grid-template-columns: 54px minmax(0, 1fr);
  gap: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-500);
  border-radius: var(--radius-sm);
  padding: clamp(22px, 2.6vw, 30px);
  transition: box-shadow .22s ease, transform .22s ease;
}
.safety__item:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
/* 항목이 홀수라 마지막 하나가 남으면 한 줄을 다 쓰게 한다 */
.safety__item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.safety__num {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 14px;
  background: var(--navy-800); color: #fff;
  font-weight: 800; font-size: 1.0625rem; letter-spacing: -.02em;
}
.safety__title {
  font-size: 1.0625rem; color: var(--ink);
  margin-bottom: 10px; line-height: 1.45;
}
.safety__desc { font-size: .9375rem; color: var(--ink-soft); }
.safety__desc strong { color: var(--navy-700); font-weight: 700; }

@media (max-width: 560px) {
  .safety { grid-template-columns: 1fr; }
  .safety__item { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
  .safety__num { width: 44px; height: 44px; font-size: .9375rem; border-radius: 12px; }
}

/* --------------------------------------------------------------- 수술 실적 */
.stats {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.4vw, 40px);
  margin-bottom: clamp(20px, 2.6vw, 32px);
}
.stats__lead {
  font-size: 1.0625rem; color: var(--ink-soft);
  margin-bottom: 24px;
}
.stats__lead strong { color: var(--navy-700); font-weight: 700; }

.stats__list {
  display: grid; gap: 18px 34px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.stats__list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: baseline; }
.stats__label { font-weight: 700; font-size: .9375rem; color: var(--ink); }
.stats__value {
  font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800;
  color: var(--green-600); line-height: 1; letter-spacing: -.03em;
}
.stats__unit { font-size: .55em; font-weight: 700; margin-left: 1px; }
.stats__bar {
  grid-column: 1 / -1;
  display: block; height: 6px; border-radius: 99px;
  background: var(--navy-100); overflow: hidden;
}
.stats__bar i {
  display: block; height: 100%; width: var(--w, 100%);
  border-radius: 99px;
  background: linear-gradient(90deg, var(--green-500), var(--green-600));
}

.stats__note {
  margin-top: 20px;
  font-size: .9063rem; color: var(--ink-soft); line-height: 1.75;
}
.stats__caution {
  display: block; margin-top: 12px;
  font-size: .8125rem; color: var(--ink-mute); line-height: 1.65;
}

/* --------------------------------------------------------------- 시스템 */
.system {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.13);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 32px);
  transition: background-color .22s, border-color .22s;
}
.system:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.24); }
.system__num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; margin-bottom: 16px;
  border-radius: 10px;
  background: rgba(127,216,148,.16);
  color: #7fd894; font-weight: 800; font-size: .9375rem;
}
.system__title { font-size: 1.0625rem; margin-bottom: 8px; color: #fff; }
.system__desc { font-size: .9375rem; color: rgba(255,255,255,.72); }

/* --------------------------------------------------------------- 오시는길 */
.visit { display: grid; gap: clamp(28px, 4vw, 48px); grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }

.info-list { border-top: 2px solid var(--navy-700); }
.info-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}
.info-row dt { font-weight: 700; color: var(--navy-700); font-size: .9375rem; }
.info-row dd { color: var(--ink-soft); font-size: .9375rem; }

.hours { display: grid; gap: 0; }
.hours__row {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line);
  font-size: .9375rem;
}
.hours__row:last-child { border-bottom: 0; }
.hours__day { font-weight: 700; color: var(--ink); }
.hours__time { color: var(--ink-soft); }
.hours__row--accent .hours__time { color: var(--green-700); font-weight: 700; }
.hours__row--lunch { color: var(--ink-mute); }

.map-embed {
  position: relative;
  /* width 를 명시하지 않으면 min-height 와 aspect-ratio 가 맞물려
     폭이 화면보다 넓게 계산된다(모바일 가로 넘침의 원인) */
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  aspect-ratio: 16 / 10;
  min-height: 320px;
}
.map-canvas { position: absolute; inset: 0; }

/* 지도가 안 뜰 때 대신 보이는 안내 (지도가 뜨면 감춰진다) */
.map-fallback {
  position: absolute; inset: 0;
  display: grid; align-content: center; justify-items: center;
  gap: 14px; padding: 28px; text-align: center;
  background: var(--navy-50);
}
.map-fallback[hidden] { display: none; }
.map-fallback__title { font-size: 1.125rem; font-weight: 700; color: var(--navy-700); }
.map-fallback__addr { font-size: .9375rem; color: var(--ink-soft); }

/* --------------------------------------------------------------- CTA 배너 */
.cta-band {
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(32px, 5vw, 56px);
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}
.cta-band__title { font-size: clamp(1.375rem, 2.6vw, 1.875rem); margin-bottom: 8px; }
.cta-band__desc { color: rgba(255,255,255,.8); font-size: .9688rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* --------------------------------------------------------------- 자주 묻는 질문 */
.faq {
  max-width: 62rem; margin-inline: auto;
  border-top: 1px solid var(--line);
}
.faq__item {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.faq__q {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 24px;
  font-size: 1.0313rem; font-weight: 700; color: var(--ink);
  cursor: pointer;
  list-style: none;
  transition: color .18s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::before {
  content: "Q";
  flex: none;
  display: grid; place-items: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--navy-100); color: var(--navy-700);
  font-size: .8125rem; font-weight: 800;
}
.faq__q::after {
  content: ""; flex: none; margin-left: auto;
  width: 10px; height: 10px;
  border-right: 2px solid var(--ink-mute);
  border-bottom: 2px solid var(--ink-mute);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform .25s ease;
}
.faq__item[open] .faq__q { color: var(--navy-700); }
.faq__item[open] .faq__q::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__q:hover { color: var(--navy-600); }

.faq__a {
  padding: 0 24px 24px 66px;
  font-size: .9688rem; color: var(--ink-soft);
}
.faq__a strong { color: var(--ink); font-weight: 700; }
.faq__a a { color: var(--navy-600); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 520px) {
  .faq__q { padding: 18px 16px; font-size: .9688rem; gap: 10px; }
  .faq__a { padding: 0 16px 20px 16px; }
}

/* --------------------------------------------------------------- 환자 후기 안내 */
.review-band {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
}
.review-band__points { display: grid; gap: 14px; }
.review-band__points li {
  display: grid; grid-template-columns: 42px minmax(0, 1fr);
  gap: 16px; align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.review-band__num {
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--green-100); color: var(--green-700);
  font-weight: 800; font-size: .875rem;
}
.review-band__points strong { display: block; color: var(--ink); margin-bottom: 4px; }
.review-band__points span { font-size: .9063rem; color: var(--ink-soft); }

@media (max-width: 900px) {
  .review-band { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------- 블로그 */
.blog-band {
  display: grid; gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
}
.blog-band img {
  width: 100%; border-radius: var(--radius);
  box-shadow: var(--shadow);
}
@media (max-width: 860px) {
  .blog-band { grid-template-columns: 1fr; }
  .blog-band img { display: none; }
}

/* --------------------------------------------------------------- 푸터 */
.footer {
  background: var(--navy-900);
  color: rgba(255,255,255,.66);
  padding-block: clamp(48px, 6vw, 72px) 32px;
  font-size: .875rem;
}
.footer__top {
  display: grid; gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.footer__logo { height: 30px; width: auto; margin-bottom: 18px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { color: rgba(255,255,255,.82); font-weight: 600; }
.footer__links a:hover { color: #7fd894; }
.footer__info { display: grid; gap: 5px; margin-top: 26px; }
.footer__info span { display: inline-block; margin-right: 18px; }
.footer__copy { padding-top: 26px; color: rgba(255,255,255,.45); font-size: .8125rem; }
.footer__sns { display: flex; gap: 10px; margin-top: 18px; }
.footer__sns a {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  transition: background-color .2s;
}
.footer__sns a:hover { background: var(--green-600); }
.footer__sns img { width: 20px; height: 20px; }

/* --------------------------------------------------------------- 퀵바 (모바일 하단 고정) */
.quickbar {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  display: none;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -2px 16px rgba(11,32,80,.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.quickbar__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.quickbar__item {
  display: grid; place-items: center; gap: 3px;
  padding: 9px 4px 8px;
  font-size: .6875rem; font-weight: 700; color: var(--ink-soft);
}
.quickbar__item svg { width: 21px; height: 21px; }
.quickbar__item--accent { color: var(--green-700); }

/* 데스크톱 우측 플로팅 */
.floating {
  position: fixed; right: 20px; bottom: 24px; z-index: 90;
  display: grid; gap: 9px;
}
.floating__btn {
  display: grid; place-items: center; gap: 2px;
  width: 62px; height: 62px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: .625rem; font-weight: 800; color: var(--navy-700);
  transition: transform .2s, box-shadow .2s;
}
.floating__btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.floating__btn svg { width: 20px; height: 20px; }
.floating__btn--kakao { background: #FEE500; border-color: #FEE500; color: #3C1E1E; }
.floating__btn--naver { background: var(--green-600); border-color: var(--green-600); color: #fff; }
.floating__top {
  width: 62px; height: 44px; border-radius: 22px;
  background: var(--navy-800); color: #fff; border: 0;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s, transform .2s;
}
.floating__top.is-on { opacity: 1; visibility: visible; }
.floating__top:hover { transform: translateY(-3px); }

/* --------------------------------------------------------------- 수가표 */
.page-head {
  margin-top: var(--header-h);
  background: linear-gradient(120deg, var(--navy-800), var(--navy-600));
  color: #fff;
  padding-block: clamp(48px, 8vw, 88px);
}
.page-head h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 12px; }
.page-head p { color: rgba(255,255,255,.8); }

.breadcrumb { font-size: .8125rem; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span { margin-inline: 7px; }

.price-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.price-table { min-width: 620px; font-size: .9375rem; }
.price-table thead th {
  background: var(--navy-700); color: #fff;
  padding: 15px 18px; text-align: left; font-weight: 700;
  white-space: nowrap;
}
.price-table thead th:last-child { text-align: right; }
.price-table th[scope="rowgroup"] {
  background: var(--navy-50);
  color: var(--navy-700);
  font-weight: 700; text-align: left;
  padding: 15px 18px;
  vertical-align: top;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.price-table td { padding: 15px 18px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.price-table td:last-child { text-align: right; font-weight: 700; color: var(--ink); white-space: nowrap; }
.price-table tbody tr:hover td { background: var(--surface-2); }
.price-table .row-note td {
  background: var(--green-100); color: var(--green-700);
  font-size: .875rem; font-weight: 600;
}
.price-table .row-note td:last-child { text-align: left; }

/* --------------------------------------------------------------- 약관 문서 */
.wrap--narrow { width: min(860px, 100%); }

.doc { font-size: .9688rem; color: var(--ink-soft); line-height: 1.85; }
.doc__intro {
  padding: 22px 26px; margin-bottom: 40px;
  background: var(--navy-50); border-radius: var(--radius-sm);
  color: var(--ink);
}
.doc h2 {
  font-size: 1.125rem; color: var(--ink);
  margin: 44px 0 14px; padding-bottom: 12px;
  border-bottom: 2px solid var(--navy-700);
}
.doc h2:first-of-type { margin-top: 0; }
.doc p { margin-bottom: 14px; }

.doc__list { counter-reset: doc; margin: 0 0 18px; }
.doc__list li {
  counter-increment: doc;
  position: relative; padding-left: 30px; margin-bottom: 9px;
}
.doc__list li::before {
  content: counter(doc);
  position: absolute; left: 0; top: .34em;
  width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy-100); color: var(--navy-700);
  font-size: .75rem; font-weight: 700;
}
.doc__list li strong { color: var(--ink); }

.doc__table-wrap { overflow-x: auto; margin-bottom: 18px; }
.doc__table { min-width: 460px; font-size: .9063rem; border-top: 2px solid var(--navy-700); }
.doc__table th, .doc__table td {
  padding: 12px 15px; border-bottom: 1px solid var(--line);
  text-align: left; vertical-align: top;
}
.doc__table thead th { background: var(--navy-50); color: var(--navy-700); font-weight: 700; white-space: nowrap; }
.doc__table th[scope="row"] { background: var(--surface-2); color: var(--ink); font-weight: 700; white-space: nowrap; }

.doc__note {
  padding: 16px 20px; border-left: 3px solid var(--green-500);
  background: var(--green-100); border-radius: 0 8px 8px 0;
  font-size: .9063rem; color: var(--green-700);
}
.doc__date {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid var(--line); color: var(--ink);
}

/* --------------------------------------------------------------- 스크롤 등장 애니메이션
   중요: 숨김 상태는 .js 가 붙었을 때(=자바스크립트가 살아있을 때)만 적용한다.
   스크립트가 실패하거나 차단돼도 내용은 항상 보여야 한다. */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* --------------------------------------------------------------- 반응형 */
@media (max-width: 1024px) {
  .doctor { grid-template-columns: 1fr; }
  .doctor__photo { max-width: 320px; }
  .cta-band__actions { justify-content: flex-start; }
}

@media (max-width: 860px) {
  :root { --header-h: 64px; }

  .hamburger { display: flex; }
  .header__cta { display: none; }

  .nav {
    position: fixed; inset: var(--header-h) 0 0 0;
    background: #fff;
    padding: 28px var(--gutter) 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    margin-left: 0;
  }
  .nav.is-open { transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block;
    padding: 17px 4px;
    font-size: 1.0625rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__mobile-cta { margin-top: 26px; display: grid; gap: 10px; }
  .nav__mobile-cta .btn { width: 100%; }

  .floating { display: none; }
  .quickbar { display: block; }
  body { padding-bottom: 62px; }

  .hero { min-height: auto; }
  .info-row { grid-template-columns: 88px minmax(0, 1fr); }
}

@media (max-width: 520px) {
  .brand { grid-template-columns: 1fr; }
  .brand__logo { width: 96px; }
  .hero__actions .btn { flex: 1 1 100%; }
}

/* 움직임 최소화를 선호하는 사용자 존중 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}

/* 인쇄 */
@media print {
  .header, .quickbar, .floating, .hero__media, .cta-band { display: none !important; }
  body { padding: 0; }
  .section { padding-block: 16px; }
}
