/* =========================================================
   참가정의원 — "우리 동네의 안심 진료실"
   warm · calm · precise
   ========================================================= */

:root {
  /* 색 */
  --bg:        #F7F3EE;
  --bg-2:      #EFE7DC;
  --card:      #FFFDFA;
  --ink:       #2F3A3D;
  --ink-soft:  #5C6A6D;
  --navy:      #1F3B4D;   /* 신뢰 강조 */
  --sage:      #6E8B78;   /* 서브 강조 / 진료중 */
  --line:      #D8CEC2;
  --terra:     #B46A4D;   /* 포인트 — 아주 제한적으로 */

  /* 타입 스케일 */
  --h1: 44px;  --h1-lh: 52px;
  --h2: 30px;  --h2-lh: 40px;
  --h3: 22px;  --h3-lh: 32px;
  --body: 18px; --body-lh: 30px;
  --small: 15px; --small-lh: 24px;

  /* 간격 (12 기반) */
  --s1: 12px; --s2: 24px; --s3: 36px; --s4: 48px;
  --s5: 72px; --s6: 96px; --s7: 128px;

  --maxw: 1160px;
  --radius: 14px;
  --radius-md: 18px;
  --radius-lg: 22px;
  --radius-xl: 26px;

  /* 토스식 부드러운 다층 그림자 (낮은 투명도) */
  --shadow-sm: 0 1px 2px rgba(31,59,77,.04), 0 4px 10px -6px rgba(31,59,77,.10);
  --shadow-md: 0 2px 4px rgba(31,59,77,.04), 0 10px 24px -14px rgba(31,59,77,.18);
  --shadow-lg: 0 1px 0 rgba(255,255,255,.7) inset, 0 6px 16px -10px rgba(31,59,77,.14), 0 24px 48px -28px rgba(31,59,77,.30);

  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-soft: cubic-bezier(.16,1,.3,1);

  font-family: "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
}

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: var(--bg);
  /* 아주 미세한 종이 하이라이트 — 강도 매우 약하게 */
  background-image:
    radial-gradient(1200px 600px at 78% -8%, rgba(255,255,255,.55), transparent 60%),
    radial-gradient(900px 500px at -5% 105%, rgba(110,139,120,.06), transparent 60%);
  color: var(--ink);
  font-size: var(--body);
  line-height: var(--body-lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-break: keep-all;
}
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; cursor: pointer; }

/* 종이 노이즈 — 전역 오버레이, 매우 약함 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
main, .site-header { position: relative; z-index: 1; }

/* ---------- 공통 레이아웃 ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: var(--s6) 0; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: 10px; left: 10px; z-index: 100;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px;
}

.hairline { border: 0; border-top: 1px solid var(--line); margin: var(--s2) 0; }

/* ---------- 타이포 헬퍼 ---------- */
.eyebrow {
  font-size: var(--small); line-height: var(--small-lh);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--sage); font-weight: 600;
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--sage); display: inline-block; }
.eyebrow--center { justify-content: center; text-align: center; }

.section__title {
  font-size: var(--h2); line-height: var(--h2-lh); font-weight: 800;
  color: var(--navy); margin-top: 16px; letter-spacing: -.025em;
}
.section__title--center { text-align: center; }
.section__lead {
  margin-top: 18px; color: var(--ink-soft); max-width: 46ch;
}

.accent-underline {
  background-image: linear-gradient(transparent 62%, rgba(180,106,77,.28) 62%);
  padding: 0 .05em;
}

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 24px; border-radius: 999px; min-height: 52px;
  font-weight: 700; font-size: var(--body); letter-spacing: -.01em;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: 0 8px 20px -10px rgba(31,59,77,.5); }
.btn--primary:hover { background: #18303f; box-shadow: 0 12px 26px -10px rgba(31,59,77,.55); }
.btn--ghost { border-color: var(--line); color: var(--navy); background: transparent; }
.btn--ghost:hover { border-color: var(--navy); background: rgba(31,59,77,.04); }
.btn--text {
  background: transparent; border: 0; color: var(--ink-soft);
  text-decoration: underline; text-underline-offset: 4px; padding: 14px 6px;
}
.btn--text:hover { color: var(--navy); }
.btn__hint { font-size: 12px; font-weight: 500; opacity: .7; letter-spacing: .04em; }
.btn--invert.btn--primary { background: #fff; color: var(--navy); }
.btn--invert.btn--ghost { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--invert.btn--ghost:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- 진료중/마감 배지 ---------- */
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-size: var(--small); font-weight: 600; line-height: 1;
  border: 1px solid var(--line); background: var(--card); color: var(--ink-soft);
  white-space: nowrap;
}
.status-badge--lg { padding: 9px 16px; font-size: 16px; }
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ink-soft); flex: none;
}
/* 진료중 = 세이지 (살아있는 점) */
.status-badge[data-state="open"] { color: var(--sage); border-color: rgba(110,139,120,.45); background: rgba(110,139,120,.08); }
.status-badge[data-state="open"] .status-dot { background: var(--sage); box-shadow: 0 0 0 0 rgba(110,139,120,.5); animation: pulse 2.4s var(--ease) infinite; }
/* 점심 = 테라코타 살짝 */
.status-badge[data-state="lunch"] { color: var(--terra); border-color: rgba(180,106,77,.4); background: rgba(180,106,77,.07); }
.status-badge[data-state="lunch"] .status-dot { background: var(--terra); }
/* 마감/휴진 = 흐린톤 */
.status-badge[data-state="closed"],
.status-badge[data-state="off"] { color: var(--ink-soft); }
.status-badge[data-state="closed"] .status-dot,
.status-badge[data-state="off"] .status-dot { background: var(--line); }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(110,139,120,.45); }
  70% { box-shadow: 0 0 0 7px rgba(110,139,120,0); }
  100% { box-shadow: 0 0 0 0 rgba(110,139,120,0); }
}

/* =========================================================
   헤더
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,243,238,.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: padding .3s var(--ease), border-color .3s var(--ease), background-color .3s var(--ease);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding: 18px 28px;
  transition: padding .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(247,243,238,.94); }
.site-header.is-scrolled .header-inner { padding-top: 11px; padding-bottom: 11px; }

.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  background: var(--navy); color: #fff; font-weight: 700; font-size: 20px;
  transition: width .3s var(--ease), height .3s var(--ease);
}
.site-header.is-scrolled .brand__mark { width: 34px; height: 34px; font-size: 17px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__ko { font-weight: 700; font-size: 19px; color: var(--navy); }
.brand__en { font-size: 11px; letter-spacing: .14em; color: var(--ink-soft); text-transform: uppercase; }

.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 16px; color: var(--ink-soft); font-weight: 500;
  position: relative; padding: 4px 0;
}
.nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--navy); transition: width .25s var(--ease);
}
.nav a:hover { color: var(--navy); }
.nav a:hover::after { width: 100%; }

/* =========================================================
   히어로
   ========================================================= */
.hero { position: relative; overflow: hidden; padding: var(--s6) 0 var(--s5); }
.hero__bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  will-change: transform;
}
.ecg { position: absolute; left: 0; right: 0; top: 38%; width: 100%; height: 200px; opacity: .5; }
.ecg__line {
  fill: none; stroke: var(--sage); stroke-width: 1.4;
  stroke-linejoin: round; stroke-linecap: round;
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: ecg-draw 3.2s var(--ease) .3s forwards;
  opacity: .55;
}
@keyframes ecg-draw { to { stroke-dashoffset: 0; } }

.hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.35fr .85fr;
  gap: var(--s5); align-items: center;
}
.hero__title {
  font-size: var(--h1); line-height: var(--h1-lh); font-weight: 800;
  color: var(--navy); margin-top: 22px; letter-spacing: -.03em;
}
.hero__sub { margin-top: 22px; color: var(--ink-soft); max-width: 38ch; }
.hero__cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
.hero__note { margin-top: 20px; font-size: var(--small); color: var(--ink-soft); }

/* 히어로 정보 카드 */
.hero__card { position: relative; }
.info-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-lg);
}
.info-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.info-card__klabel { font-size: var(--small); color: var(--ink-soft); font-weight: 600; letter-spacing: .04em; }
.info-card__status-line { margin-top: 16px; font-size: 19px; font-weight: 600; color: var(--navy); line-height: 1.45; }
.info-card__status-sub { margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--ink-soft); line-height: 1.4; }
.info-card__status-sub:empty { display: none; }
.info-card__today { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.info-card__day { font-weight: 700; color: var(--ink); }
.info-card__time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.badge-cert { display: flex; align-items: center; gap: 14px; }
.badge-cert__seal {
  flex: none; width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  color: var(--terra); border: 1.5px dashed var(--terra);
  background: rgba(180,106,77,.06);
}
.badge-cert__text { display: flex; flex-direction: column; font-size: var(--small); color: var(--ink-soft); line-height: 1.4; }
.badge-cert__text strong { color: var(--navy); font-size: 16px; }

.info-card__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.info-card__chips li {
  font-size: 13px; color: var(--ink-soft); font-weight: 500;
  padding: 5px 11px; border-radius: 999px; background: var(--bg-2);
}

/* =========================================================
   원장 소개
   ========================================================= */
.section--doctor { background: var(--bg-2); border-block: 1px solid var(--line); }
.doctor__grid {
  display: grid; grid-template-columns: .8fr 1.2fr; gap: var(--s5); align-items: start;
}
.doctor__aside { position: sticky; top: 110px; }
.monogram {
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: 40px 32px; aspect-ratio: 4 / 3;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.monogram::after {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 180px; height: 180px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
}
.monogram::before {
  content: ""; position: absolute; right: -70px; bottom: -70px;
  width: 240px; height: 240px; border-radius: 50%;
  border: 1px solid rgba(110,139,120,.4);
}
.monogram__chars { font-size: 88px; font-weight: 700; line-height: .9; letter-spacing: -.04em; }
.monogram__chars span { font-size: 40px; opacity: .75; margin-left: 4px; }
.monogram__sub { font-size: 12px; letter-spacing: .22em; color: rgba(255,255,255,.7); }
.doctor__name-block { margin-top: 22px; display: flex; flex-direction: column; gap: 4px; }
.doctor__name { font-size: var(--h3); font-weight: 700; color: var(--navy); }
.doctor__role { font-size: var(--small); color: var(--ink-soft); }

/* 타임라인 */
.timeline { margin-top: 36px; border-left: 1.5px solid var(--line); }
.timeline__item {
  position: relative; padding: 0 0 28px 28px; outline: none;
}
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: -7.5px; top: 4px;
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg-2); border: 2px solid var(--sage);
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.timeline__item--now .timeline__dot { background: var(--terra); border-color: var(--terra); }
.timeline__head { font-weight: 600; font-size: 18px; color: var(--ink); }
.timeline__item--now .timeline__head { color: var(--navy); }
.timeline__detail {
  font-size: var(--small); color: var(--ink-soft); margin-top: 4px;
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .35s var(--ease), opacity .3s var(--ease), margin-top .3s var(--ease);
}
.timeline__item:hover .timeline__detail,
.timeline__item:focus .timeline__detail,
.timeline__item:focus-within .timeline__detail {
  max-height: 80px; opacity: 1; margin-top: 8px;
}
.timeline__item:hover .timeline__dot,
.timeline__item:focus .timeline__dot { background: var(--sage); transform: scale(1.12); }
.timeline__item--now:hover .timeline__dot,
.timeline__item--now:focus .timeline__dot { background: var(--terra); }

/* =========================================================
   진료 범위
   ========================================================= */
.scope__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s5); align-items: start; }
.scope__intro { position: sticky; top: 110px; }
.scope__list { display: grid; gap: 4px; }
.scope__feature {
  border-top: 1px solid var(--line);
  padding: 28px 0 28px 64px; position: relative;
  transition: padding-left .3s var(--ease);
}
.scope__feature:hover { padding-left: 72px; }
.scope__feature-no {
  position: absolute; left: 0; top: 28px;
  font-size: 16px; font-weight: 700; color: var(--terra);
  font-variant-numeric: tabular-nums; letter-spacing: .05em;
}
.scope__feature h3 { font-size: var(--h3); line-height: var(--h3-lh); font-weight: 600; color: var(--navy); }
.scope__feature p { margin-top: 8px; color: var(--ink-soft); max-width: 44ch; }

.scope__chips { border-top: 1px solid var(--line); padding-top: 28px; margin-top: 8px; }
.scope__chips-label { font-size: var(--small); color: var(--ink-soft); font-weight: 600; margin-bottom: 14px; }
.scope__chips ul { display: flex; flex-wrap: wrap; gap: 10px; }
.scope__chips li {
  padding: 9px 16px; border: 1px solid var(--line); border-radius: 999px;
  font-size: 16px; color: var(--ink); background: var(--card);
  transition: border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.scope__chips li:hover { border-color: var(--sage); color: var(--sage); transform: translateY(-2px); }

/* =========================================================
   신뢰 근거
   ========================================================= */
.section--trust { background: var(--bg-2); border-block: 1px solid var(--line); }
.trust__grid {
  margin-top: var(--s3);
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; grid-auto-rows: 1fr;
  gap: var(--s2);
}
.trust__hero-card {
  grid-column: 1;
  background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: 40px; display: flex; flex-direction: column; gap: 28px; justify-content: center;
  box-shadow: 0 18px 44px -22px rgba(31,59,77,.55);
}
.trust__seal {
  width: 96px; height: 96px; border-radius: 50%;
  display: grid; place-items: center; text-align: center; flex: none;
  border: 1.5px solid rgba(110,139,120,.6); color: #fff;
  position: relative;
}
.trust__seal-top { font-size: 15px; font-weight: 700; letter-spacing: .04em; }
.trust__seal-x3 { position: absolute; bottom: 16px; font-size: 22px; font-weight: 700; color: var(--sage); }
.trust__hero-text h3 { font-size: 26px; line-height: 1.35; font-weight: 700; }
.trust__hero-text p { margin-top: 14px; color: rgba(255,255,255,.78); font-size: 16px; line-height: 1.7; }

.trust__card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.trust__card-title { font-size: var(--h3); font-weight: 600; color: var(--navy); }
.trust__card p { margin-top: 10px; color: var(--ink-soft); font-size: 16px; }
.trust__equip { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.trust__equip li {
  font-weight: 600; color: var(--ink); position: relative; padding-left: 18px; font-size: 16px;
}
.trust__equip li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: var(--terra); }
.trust__equip-note { font-size: 14px !important; margin-top: 10px !important; }
.trust__card--quote { grid-column: 2 / span 2; background: transparent; border-style: dashed; }
.trust__card--quote blockquote { margin: 0; }
.trust__card--quote p { font-size: 19px; line-height: 1.7; color: var(--ink); font-weight: 500; }
.trust__card--quote cite { display: block; margin-top: 14px; font-style: normal; font-size: var(--small); color: var(--ink-soft); }

/* ---------- 임팩트 지표 (토스식 큰 숫자) ---------- */
.trust__stats {
  margin-top: var(--s4);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2);
}
.stat {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-md); padding: 30px 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 10px;
}
.stat__num {
  font-size: 48px; line-height: 1; font-weight: 800; color: var(--navy);
  letter-spacing: -.04em; display: inline-flex; align-items: baseline; gap: 4px;
  font-variant-numeric: tabular-nums;
}
.stat__num--word { letter-spacing: -.03em; }
.stat__unit { font-size: 19px; font-weight: 700; color: var(--sage); letter-spacing: -.01em; }
.stat__label { font-size: var(--small); line-height: 1.5; color: var(--ink-soft); font-weight: 500; }

/* =========================================================
   환자 후기 (네이버 지도 실제 리뷰)
   ========================================================= */
.section--reviews { background: var(--bg); }
.reviews__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.reviews__head-text { max-width: 52ch; }
.reviews__more {
  flex: none; align-self: flex-end;
}
.reviews__scroller {
  margin-top: var(--s4);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s2);
}
.review-card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.review-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.review-card__quote { font-size: 30px; line-height: 1; color: var(--sage); font-weight: 800; }
.review-card p {
  font-size: 17px; line-height: 1.65; color: var(--ink); font-weight: 500;
  flex: 1 1 auto; letter-spacing: -.01em;
}
.review-card__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: 13px; color: var(--ink-soft); padding-top: 14px; border-top: 1px solid var(--line);
}
.review-card__who { font-weight: 600; color: var(--ink-soft); }
.review-card__date { font-variant-numeric: tabular-nums; }
.reviews__source {
  margin-top: 18px; font-size: 13px; color: var(--ink-soft);
}

/* =========================================================
   진료시간
   ========================================================= */
.hours__grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--s5); align-items: start; }
.hours__now {
  margin-top: 28px; padding: 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
}
.hours__now[data-state="open"] { border-color: rgba(110,139,120,.45); background: rgba(110,139,120,.06); }
.hours__now-line { font-size: 20px; font-weight: 600; color: var(--navy); line-height: 1.45; }
.hours__now-sub { margin-top: 6px; font-size: 15px; font-weight: 500; color: var(--ink-soft); line-height: 1.4; }
.hours__now-sub:empty { display: none; }
.hours__memo { margin-top: 26px; display: flex; flex-direction: column; gap: 10px; }
.hours__memo li { font-size: var(--small); color: var(--ink-soft); padding-left: 18px; position: relative; }
.hours__memo li::before { content: ""; position: absolute; left: 0; top: 11px; width: 8px; height: 1px; background: var(--sage); }
.hours__memo strong { color: var(--terra); }

.hours__table-wrap {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 12px 28px; overflow: hidden;
}
.hours__table { width: 100%; border-collapse: collapse; }
.hours__table tr { border-bottom: 1px solid var(--line); transition: background .3s var(--ease); }
.hours__table tr:last-child { border-bottom: 0; }
.hours__table th, .hours__table td {
  text-align: left; padding: 18px 8px; font-size: 17px; vertical-align: middle;
}
.hours__table th { font-weight: 600; color: var(--ink); width: 28%; }
.hours__table td:nth-child(2) { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 500; }
.hours__lunch { color: var(--ink-soft); font-size: 14px !important; text-align: right; }
.hours__short th, .hours__short td:nth-child(2) { color: var(--terra); }
.hours__off th, .hours__off td { color: var(--ink-soft); }
.hours__holiday th, .hours__holiday td { color: var(--ink-soft); }

/* 오늘 행 하이라이트 */
.hours__table tr.is-today {
  background: rgba(31,59,77,.05);
  position: relative;
}
.hours__table tr.is-today th { color: var(--navy); }
.hours__table tr.is-today th::before {
  content: "오늘"; display: inline-block; margin-right: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .05em;
  color: #fff; background: var(--navy); padding: 2px 7px; border-radius: 5px;
  vertical-align: middle;
}

/* =========================================================
   위치
   ========================================================= */
.section--location { background: var(--bg-2); border-block: 1px solid var(--line); }
.location__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s5); align-items: stretch; }
.location__info { display: flex; flex-direction: column; }
.location__addr { margin-top: 28px; font-size: 20px; font-weight: 600; color: var(--ink); display: flex; flex-direction: column; gap: 6px; }
.location__addr-label { font-size: 13px; letter-spacing: .1em; color: var(--sage); font-weight: 600; text-transform: uppercase; }
.location__actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 32px; }
.location__travel {
  margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px;
  animation: fade-in .35s var(--ease);
}
.location__travel dl { display: flex; flex-direction: column; gap: 16px; }
.location__travel dt { font-weight: 600; color: var(--navy); font-size: 16px; }
.location__travel dd { margin: 4px 0 0; color: var(--ink-soft); font-size: var(--small); }
@keyframes fade-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

.location__map {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); min-height: 380px;
  box-shadow: 0 18px 40px -30px rgba(31,59,77,.4);
}
.location__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; filter: grayscale(.18) contrast(1.02); }

/* =========================================================
   푸터
   ========================================================= */
.footer { background: var(--navy); color: #fff; padding: var(--s6) 0 36px; margin-top: var(--s5); position: relative; z-index: 1; }
.footer__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s5); align-items: start; }
.footer__title { font-size: var(--h2); line-height: var(--h2-lh); font-weight: 700; margin-top: 14px; }
.footer .eyebrow { color: #A7C3B0; }
.footer .eyebrow::before { background: #A7C3B0; }
.footer__actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.footer__meta { font-size: var(--small); }
.footer__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.footer__mark {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: #fff; color: var(--navy); font-weight: 700; font-size: 20px; flex: none;
}
.footer__brand small { color: rgba(255,255,255,.6); letter-spacing: .1em; font-size: 11px; }
.footer__dl { display: flex; flex-direction: column; gap: 16px; }
.footer__dl dt { color: #A7C3B0; font-weight: 600; margin-bottom: 4px; }
.footer__dl dd { margin: 0; color: rgba(255,255,255,.82); line-height: 1.6; }

.footer__fine {
  margin-top: var(--s5); padding-top: 24px; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.55);
}

/* =========================================================
   모바일 하단 고정 CTA (전화)
   ========================================================= */
.callbar {
  display: none;
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
  align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 20px;
  background: var(--navy); color: #fff; border-radius: 16px;
  font-weight: 700; font-size: 17px; letter-spacing: -.01em;
  box-shadow: 0 10px 30px -8px rgba(31,59,77,.5);
  transform: translateY(140%); opacity: 0;
  transition: transform .4s var(--ease-soft), opacity .4s var(--ease-soft);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.callbar.is-visible { transform: translateY(0); opacity: 1; }
.callbar:active { transform: translateY(2px); }
.callbar__icon { display: inline-flex; }
.callbar__icon svg { width: 19px; height: 19px; }
.callbar__num { font-variant-numeric: tabular-nums; opacity: .85; font-weight: 600; font-size: 15px; }

/* =========================================================
   스크롤 reveal
   ========================================================= */
[data-reveal] {
  opacity: 0; transform: translateY(18px);
  transition: opacity .62s var(--ease-soft), transform .62s var(--ease-soft);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }

/* 포커스 가시성 */
:focus-visible { outline: 2.5px solid var(--terra); outline-offset: 3px; border-radius: 4px; }

/* =========================================================
   반응형
   ========================================================= */
@media (max-width: 980px) {
  :root {
    --h1: 38px; --h1-lh: 46px;
    --h2: 27px; --h2-lh: 36px;
    --h3: 20px; --h3-lh: 28px;
  }
  .nav { display: none; }
  .hero__grid,
  .doctor__grid,
  .scope__grid,
  .hours__grid,
  .location__grid,
  .footer__grid { grid-template-columns: 1fr; gap: var(--s4); }
  .doctor__aside, .scope__intro { position: static; }
  .monogram { aspect-ratio: auto; max-width: 320px; }
  .trust__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .trust__hero-card { grid-column: 1 / -1; grid-row: auto; }
  .trust__card--quote { grid-column: 1 / -1; }
  .reviews__scroller { grid-template-columns: repeat(2, 1fr); }
  .trust__stats { gap: var(--s1); }
  .stat { padding: 24px 20px; }
  .stat__num { font-size: 38px; }
  .stat__unit { font-size: 16px; }
  .section { padding: var(--s5) 0; }
  .hero { padding: var(--s5) 0 var(--s4); }
  .hero__card { order: -1; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  :root {
    --body: 17px; --body-lh: 28px;
    --h1: 34px; --h1-lh: 43px;
    --h2: 25px; --h2-lh: 33px;
  }

  /* 섹션 여백 타이트하게 (답답하지 않은 선에서) */
  .section { padding: 52px 0; }
  .hero { padding: 28px 0 40px; }
  .footer { padding: 52px 0 28px; margin-top: 40px; }

  .header-status { display: none; }
  .header-inner { padding: 13px 20px; }

  /* 타이포 임팩트 — 한 화면에 한 메시지 */
  .hero__title { margin-top: 16px; }
  .hero__sub { margin-top: 16px; }
  .hero__cta { margin-top: 24px; gap: 10px; }
  .section__title { margin-top: 12px; }
  .section__lead { margin-top: 14px; }

  /* 풀폭 라운드 CTA (히어로/푸터) */
  .hero__cta, .footer__actions { flex-direction: column; align-items: stretch; }
  .hero__cta .btn, .footer__actions .btn { width: 100%; border-radius: 15px; }
  .hero__cta .btn__hint { font-size: 12px; }

  /* 정보카드·모노그램 풀폭 */
  .info-card, .monogram { padding: 22px; }
  .monogram { max-width: none; }

  /* 임팩트 지표 — 컴팩트 2×2 */
  .trust__stats { margin-top: var(--s3); grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat { padding: 18px 16px; gap: 6px; border-radius: 14px; }
  .stat__num { font-size: 32px; }
  .stat__unit { font-size: 14px; }
  .stat__label { font-size: 13px; line-height: 1.4; }

  .trust__grid { grid-template-columns: 1fr; gap: var(--s2); grid-auto-rows: auto; }
  .trust__hero-card { padding: 30px 26px; }

  /* 후기 — 가로 스와이프(스크롤 스냅), 자동재생 없음 */
  .reviews__head { gap: 12px; }
  .reviews__more { align-self: stretch; }
  .reviews__more .btn { width: 100%; border-radius: 15px; }
  .reviews__scroller {
    margin: var(--s3) -20px 0;
    padding: 4px 20px 8px;
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
  }
  .reviews__scroller::-webkit-scrollbar { display: none; }
  .review-card { scroll-snap-align: center; }

  /* 진료시간 표 풀폭 활용 */
  .hours__table-wrap { padding: 6px 18px; }
  .hours__table th, .hours__table td { padding: 15px 6px; font-size: 16px; }
  .hours__table th { width: 38%; }
  .hours__lunch { display: none; }
  .hours__now { margin-top: 22px; padding: 20px; }
  .hours__memo { margin-top: 20px; }

  /* 위치 — 빈 여백 제거 */
  .location__grid { gap: var(--s3); }
  .location__addr { margin-top: 20px; }
  .location__actions { margin-top: 22px; gap: 10px; }
  .location__actions .btn--primary, .location__actions .btn--ghost { width: 100%; border-radius: 15px; }
  .location__map, .location__map iframe { min-height: 260px; }

  .footer__fine { flex-direction: column; gap: 8px; }

  /* 하단 고정 전화 CTA 노출 */
  .callbar { display: flex; }
}

/* 모션 최소화 존중 */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
      transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .ecg__line { stroke-dashoffset: 0; }
}
