/* =============================================================
   삼육치과병원 — Landing Page Stylesheet
   Type scale: 12pt / 18pt / 32pt / 48pt (strict 4-tier)
   ============================================================= */

:root {
  /* Type scale */
  --t-xs: 12pt;   /* caption, button, eyebrow, nav, footer */
  --t-sm: 18pt;   /* body, descriptions */
  --t-md: 32pt;   /* big numbers, mid-emphasis statements */
  --t-lg: 48pt;   /* section titles, hero */

  /* Color */
  --bg: #ffffff;
  --bg-soft: #f5f5f7;
  --bg-dark: #1d1d1f;
  --bg-deep: #0a0a0a;

  --fg: #1d1d1f;
  --fg-mute: #6e6e73;
  --fg-soft: #86868b;
  --fg-on-dark: #f5f5f7;
  --fg-on-dark-mute: #a1a1a6;

  --line: #d2d2d7;
  --line-dark: #2a2a2e;

  --accent: #0066b3;        /* 메인 액센트 — 강조/제목/볼드/CTA */
  --accent-2: #0077cc;      /* 보조 액센트 (밝은 호버) */
  --accent-dark: #004d85;   /* 호버용 진한 액센트 */
  --accent-soft: #e6f0f9;
  --lime: #8cc63f;          /* 보조 컬러 — eyebrow 전용 라임 그린 */

  /* Layout */
  --container: 1200px;
  --pad-section: 140px;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  /* Easing */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =============================================================
   Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif;
  font-size: var(--t-sm);
  font-weight: 400;
  line-height: 1.7;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* =============================================================
   Header — 투명형 (스크롤 시 프로스트)
   ============================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.brand img {
  height: 45px;
  width: auto;
  opacity: 0.95;
  transition: opacity 0.2s var(--ease);
}
.brand:hover img { opacity: 1; }

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav > a {
  font-size: 15px;
  font-weight: 500;
  color: rgba(29, 29, 31, 0.85);
  letter-spacing: -0.01em;
  transition: color 0.2s var(--ease);
}
.nav > a:hover { color: #1d1d1f; }

/* 전화번호 링크 (아이콘 + 숫자) */
.nav .nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: rgba(29, 29, 31, 0.80);
  margin-left: 4px;
}
.nav .nav-phone svg {
  width: 15px;
  height: 15px;
  opacity: 0.6;
  transition: opacity 0.2s var(--ease), color 0.2s var(--ease);
}
.nav .nav-phone:hover { color: var(--accent); }
.nav .nav-phone:hover svg { opacity: 1; color: var(--accent); }

/* SNS 바로가기 (PC: 원형 아이콘 / 모바일: 풀너비 항목) */
.nav-sns {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-sns li { display: flex; }
.nav-sns-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(29, 29, 31, 0.65);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-sns-link:hover {
  color: var(--accent);
  background: rgba(0, 102, 179, 0.08);
}
.nav-sns-link svg { display: block; }
/* PC에서 라벨은 시각적으로 숨기고 스크린리더에만 노출 */
.nav-sns-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* 예약하기 — 액센트 컬러 필 (호버 시 진해짐) */
.nav .nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 22px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: background 0.2s var(--ease), transform 0.15s var(--ease);
}
.nav .nav-cta:hover {
  background: var(--accent-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* Hamburger */
.menu-toggle {
  display: none;
  width: 40px; height: 40px;
  border: none;
  background: transparent;
  padding: 0;
}
.menu-toggle span {
  display: block;
  width: 22px; height: 1.6px;
  background: #1d1d1f;
  margin: 5px auto;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.menu-toggle.open span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 880px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    padding: 8px 24px 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
  .nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav > a {
    width: 100%;
    padding: 16px 0;
    font-size: 16px;
    color: rgba(29, 29, 31, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .nav > a:last-child { border-bottom: none; }
  .nav .nav-phone {
    margin-left: 0;
    padding: 16px 0;
    justify-content: flex-start;
  }
  .nav .nav-phone svg { width: 16px; height: 16px; }

  /* SNS — 풀너비 항목으로 변환 */
  .nav-sns {
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .nav-sns li { width: 100%; }
  .nav-sns-link {
    width: 100%;
    height: auto;
    padding: 16px 0;
    border-radius: 0;
    justify-content: flex-start;
    gap: 12px;
    font-size: 16px;
    font-weight: 500;
    color: rgba(29, 29, 31, 0.85);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    letter-spacing: -0.01em;
  }
  .nav-sns li:last-child .nav-sns-link { border-bottom: none; }
  .nav-sns-link:hover { background: transparent; color: var(--accent); }
  .nav-sns-link svg { width: 20px; height: 20px; flex-shrink: 0; }
  /* 모바일에서는 라벨 노출 */
  .nav-sns-label {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
  }

  .nav .nav-cta {
    margin-top: 16px;
    width: 100%;
    justify-content: center;
    padding: 15px 20px;
    font-size: 16px;
    border-radius: var(--radius);
  }
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 60px;
  background:
    radial-gradient(ellipse at 50% 0%, #eef5fb 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, #eaf3eb 0%, transparent 55%),
    #ffffff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 70%, #ffffff 100%);
  pointer-events: none;
  z-index: 2;
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}
.hero .eyebrow {
  display: inline-block;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--lime);
  text-transform: uppercase;
  margin-bottom: 28px;
  animation: rise 0.9s var(--ease) both;
}
.hero h1 {
  margin: 0 0 28px;
  font-size: var(--t-lg);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.05em;
  color: var(--accent);
  animation: rise 1s var(--ease) 0.1s both;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, var(--accent-dark) 0%, #5fa856 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  max-width: 640px;
  margin: 0 auto 44px;
  font-size: var(--t-sm);
  font-weight: 500;
  line-height: 1.7;
  color: var(--fg-mute);
  letter-spacing: -0.02em;
  animation: rise 1s var(--ease) 0.22s both;
}
.hero-cta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  animation: rise 1s var(--ease) 0.34s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
  border: 1.5px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}
.btn-secondary {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.btn-secondary:hover {
  border-color: var(--fg);
  transform: translateY(-2px);
}
.btn .arrow {
  display: inline-block;
  transition: transform 0.25s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

.scroll-indicator {
  position: absolute;
  z-index: 1;
  left: 50%;
  bottom: 36px;
  transform: translateX(-50%);
  font-size: var(--t-xs);
  letter-spacing: 0.2em;
  color: var(--fg-soft);
  animation: bob 2.4s ease-in-out infinite;
}
.scroll-indicator span { display: block; }
.scroll-indicator .line {
  width: 1px; height: 28px;
  background: var(--fg-soft);
  margin: 8px auto 0;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bob {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.7; }
  50%      { transform: translate(-50%, 6px); opacity: 1; }
}

/* =============================================================
   Section primitives
   ============================================================= */
.section {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 80px 24px;
  overflow: hidden;
}
.section-soft { background: var(--bg-soft); }
.section-white { background: var(--bg); }
.section-dark {
  background: var(--bg-dark);
  color: var(--fg-on-dark);
}

/* 배경 이미지 레이어 위로 콘텐츠를 띄우기 위한 z-index */
.split,
.specialty-head,
.sunday-inner,
.info-head, .info-grid,
.cta-inner {
  position: relative;
  z-index: 1;
}

.split {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split.reverse .text-col { order: 2; }
.split.reverse .image-col { order: 1; }

.eyebrow {
  display: block;
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--lime);
  text-transform: uppercase;
  margin-bottom: 22px;
}
.section-title {
  margin: 0 0 28px;
  font-size: var(--t-lg);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.05em;
  color: var(--accent);
}
.section-dark .section-title { color: var(--fg-on-dark); }

.desc {
  margin: 0 0 18px;
  font-size: var(--t-sm);
  font-weight: 400;
  line-height: 1.85;
  color: var(--fg-mute);
  letter-spacing: -0.02em;
}
.section-dark .desc { color: var(--fg-on-dark-mute); }
.desc strong {
  color: var(--accent);
  font-weight: 700;
}
.section-dark .desc strong { color: var(--fg-on-dark); }

.image-col .frame {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #eaf3fb 0%, #f7faf8 60%, #eef5e9 100%);
}
.image-col .frame::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  border-radius: inherit;
  pointer-events: none;
}
.image-col .frame .placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 10px;
  color: var(--accent);
  opacity: 0.55;
}
.image-col .frame .placeholder svg { width: 72px; height: 72px; }
.image-col .frame .placeholder span {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* If user replaces with real <img>, this rule covers it */
.image-col .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 880px) {
  .section {
    height: auto;
    min-height: 100vh;
    padding: 80px 24px;
  }
  .hero {
    height: auto;
    min-height: 100vh;
  }
  .cta-section {
    height: auto;
    min-height: 100vh;
  }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .text-col { order: 2; }
  .split.reverse .image-col { order: 1; }
  .section-title { font-size: var(--t-md); }
  .image-col .frame { aspect-ratio: 16 / 10; }
}

/* =============================================================
   Hero overrides (mobile)
   ============================================================= */
@media (max-width: 880px) {
  .hero h1 { font-size: var(--t-md); }
}

/* =============================================================
   Section 3 — Specialty grid
   ============================================================= */
.specialty-head {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

/* =============================================================
   Section 5 — Sunday (dark dramatic)
   ============================================================= */
.sunday-inner {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
}
.sunday-inner .eyebrow { color: var(--lime); }
.sunday-inner .section-title { color: #fff; }
.sunday-inner .desc { color: var(--fg-on-dark-mute); margin-top: 28px; }

.sunday-meta {
  display: inline-flex;
  gap: 28px;
  margin-top: 44px;
  padding: 18px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line-dark);
  background: rgba(255,255,255,0.03);
  font-size: var(--t-xs);
  letter-spacing: 0.04em;
  color: var(--fg-on-dark);
}
.sunday-meta strong { color: #fff; font-weight: 700; }
.sunday-meta .div { color: var(--line-dark); }

@media (max-width: 640px) {
  .sunday-meta { flex-direction: column; gap: 6px; padding: 18px 24px; border-radius: 16px; text-align: left; }
  .sunday-meta .div { display: none; }
}

/* =============================================================
   Section 7 — Schedule + Location
   ============================================================= */
.info-head {
  max-width: 720px;
  margin: 0 auto 48px;
  text-align: center;
}
.info-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
}
.info-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 44px;
  border: 1px solid var(--line);
}
.info-card h3 {
  margin: 0 0 28px;
  font-size: var(--t-sm);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 10px;
}
.info-card h3 .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.schedule-list {
  list-style: none;
  margin: 0; padding: 0;
}
.schedule-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--t-xs);
  letter-spacing: -0.01em;
}
.schedule-list li:last-child { border-bottom: none; }
.schedule-list .day { font-weight: 700; color: var(--accent); }
.schedule-list .time { color: var(--fg-mute); }
.schedule-list .closed .time { color: #c0392b; }
.schedule-note {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: var(--t-xs);
  color: var(--fg-mute);
  line-height: 1.6;
}

.location-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.location-row:last-of-type { border-bottom: none; }
.location-row .label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 700;
  color: var(--fg-soft);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.location-row .value {
  font-size: var(--t-xs);
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.6;
}
.location-row .value a { color: var(--accent); font-weight: 600; }

@media (max-width: 880px) {
  .info-grid { grid-template-columns: 1fr; }
  .info-card { padding: 32px 24px; }
}

/* =============================================================
   Section 8 — Booking CTA
   ============================================================= */
.cta-section {
  position: relative;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  padding: 64px 24px;
  background:
    radial-gradient(ellipse at 50% 50%, #eaf3fb 0%, transparent 70%),
    #ffffff;
  overflow: hidden;
}
.cta-inner {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}
.cta-inner .section-title { margin-bottom: 22px; }
.cta-inner .desc { max-width: 540px; margin: 0 auto 40px; }
.cta-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: stretch;
}

/* 네이버 플레이스 예약 */
.btn.btn-naver {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 64px;
  padding: 0 26px;
  border-radius: var(--radius-pill);
  background: #03c75a;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  border: none;
  box-shadow: 0 8px 22px rgba(3, 199, 90, 0.25);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn.btn-naver:hover {
  background: #02b350;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(3, 199, 90, 0.35);
}
.btn.btn-naver .naver-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #fff;
  color: #03c75a;
  flex-shrink: 0;
}
.btn.btn-naver .naver-logo svg { width: 18px; height: 18px; }
.btn.btn-naver .arrow { margin-left: 4px; }

/* 전화 + 영업시간 안내 — 액센트 파란 박스 */
.btn.btn-phone {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: #fff;
  border: none;
  text-align: left;
  box-shadow: 0 8px 22px rgba(0, 102, 179, 0.25);
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn.btn-phone:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 102, 179, 0.35);
  color: #fff;
}
.btn.btn-phone .phone-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}
.btn.btn-phone .phone-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}
.btn.btn-phone .phone-num {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.btn.btn-phone .phone-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.85;
  letter-spacing: -0.005em;
  margin-top: 2px;
}

/* 삼육치과병원 공식 홈페이지로 이동 — 화이트 아웃라인 (보조 액션) */
.btn.btn-home {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  text-align: left;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.06);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.btn.btn-home:hover {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 102, 179, 0.30);
}
.btn.btn-home .home-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.btn.btn-home:hover .home-icon {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}
.btn.btn-home .home-text {
  display: inline-flex;
  flex-direction: column;
  line-height: 1.15;
}
.btn.btn-home .home-num {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.btn.btn-home .home-sub {
  font-size: 11px;
  font-weight: 500;
  opacity: 0.75;
  letter-spacing: -0.005em;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 540px) {
  .cta-actions { flex-direction: column; width: 100%; max-width: 320px; gap: 10px; }
  .btn.btn-naver,
  .btn.btn-phone,
  .btn.btn-home { width: 100%; justify-content: center; height: 60px; }
  .btn.btn-phone .phone-num,
  .btn.btn-home .home-num { font-size: 14px; }
  .btn.btn-phone .phone-sub,
  .btn.btn-home .home-sub { font-size: 10.5px; }
}

/* =============================================================
   Footer
   ============================================================= */
.site-footer {
  background: var(--bg-deep);
  color: var(--fg-on-dark-mute);
  padding: 72px 24px 80px;
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 48px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand img { height: 50px; width: auto; opacity: 0.95; }
.footer-brand p {
  margin-top: 18px;
  font-size: var(--t-xs);
  line-height: 1.7;
  color: var(--fg-on-dark-mute);
}

.footer-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.footer-info dl {
  margin: 0;
  font-size: var(--t-xs);
  line-height: 1.8;
}
.footer-info dt {
  color: #f5f5f7;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.footer-info dd {
  margin: 0 0 4px;
  color: var(--fg-on-dark-mute);
  letter-spacing: -0.01em;
}
.footer-info dd a { color: var(--fg-on-dark-mute); }
.footer-info dd a:hover { color: #fff; }

.footer-bottom {
  max-width: var(--container);
  margin: 28px auto 0;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: var(--t-xs);
  color: var(--fg-soft);
}
.footer-bottom a:hover { color: #fff; }

@media (max-width: 880px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 28px; }
  .footer-info { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { justify-content: flex-start; }
}

/* =============================================================
   Side floating banner (좌측, hover-expand)
   ============================================================= */
.side-floating-banner {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(-12px);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  /* 2번째 섹션부터 표시 — JS에서 .visible 클래스 추가 */
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.side-floating-banner.visible {
  transform: translateY(-50%) translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.side-floating-btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  width: 52px;
  padding: 0 14px;
  gap: 10px;
  border-radius: 26px;
  background: rgba(29, 29, 31, 0.92);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: width 0.32s var(--ease), background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.side-floating-btn:hover,
.side-floating-btn:focus-visible {
  width: 158px;
  background: var(--accent);
  box-shadow: 0 10px 28px rgba(0, 102, 179, 0.30);
}
.side-floating-btn .sfb-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.side-floating-btn .sfb-label {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.side-floating-btn:hover .sfb-label,
.side-floating-btn:focus-visible .sfb-label {
  opacity: 1;
  transform: translateX(0);
}

.side-floating-btn-primary {
  background: var(--accent);
  box-shadow: 0 8px 22px rgba(0, 102, 179, 0.30);
}
.side-floating-btn-primary:hover,
.side-floating-btn-primary:focus-visible {
  background: var(--accent-dark);
  box-shadow: 0 10px 28px rgba(0, 77, 133, 0.40);
}

@media (max-width: 880px) {
  .side-floating-banner {
    left: 14px;
    gap: 8px;
  }
  .side-floating-btn {
    height: 46px;
    width: 46px;
    padding: 0 12px;
    border-radius: 23px;
  }
  .side-floating-btn:hover,
  .side-floating-btn:focus-visible { width: 140px; }
  .side-floating-btn .sfb-icon { width: 22px; height: 22px; }
}

@media (max-width: 540px) {
  .side-floating-banner { display: none; }
}

/* =============================================================
   Specialty — 가로 슬라이더 (scroll-snap, 진료과목·진료메뉴 통합)
   ============================================================= */
#specialty {
  height: 100vh;
  padding: 80px 0 60px;
}

.slider-wrap {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.slider-viewport {
  flex: 1;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.slider-viewport::-webkit-scrollbar { display: none; }
/* 마우스 드래그 슬라이드 커서 (JS로 drag 활성화된 슬라이더) */
#doctorsViewport { cursor: grab; }
#doctorsViewport.dragging { cursor: grabbing; }
#doctorsViewport.dragging .doctor-slide { user-select: none; }
@media (max-width: 880px) { #doctorsViewport { cursor: default; } }
.slider-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 32px) / 3);  /* 3 visible, 16px gap x2 */
  gap: 16px;
}

.slide {
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}
.slide:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px -20px rgba(0,0,0,0.14);
  border-color: transparent;
}
.slide-img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-soft);
}
.slide-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease);
}
.slide:hover .slide-img img { transform: scale(1.04); }
.slide-num {
  display: inline-block;
  margin: 18px 24px 0;
  font-size: 11pt;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.slide h3 {
  margin: 8px 24px 8px;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}
.slide p {
  margin: 0 24px 24px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-mute);
  letter-spacing: -0.01em;
}

.slider-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  align-self: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--fg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), opacity 0.2s var(--ease);
}
.slider-arrow:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.slider-arrow:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 28px auto 0;
}
.slider-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--line);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.slider-dots button.active {
  background: var(--accent);
  transform: scale(1.5);
}

@media (max-width: 880px) {
  .slider-track { grid-auto-columns: calc((100% - 16px) / 2); }
}
@media (max-width: 540px) {
  .slider-track { grid-auto-columns: 100%; }
  .slider-wrap { padding: 0 16px; gap: 8px; }
  .slider-arrow { width: 38px; height: 38px; }
}

/* =============================================================
   Doctors — 의료진 디테일 슬라이드 (1슬라이드 = 1의료진)
   ============================================================= */
#doctors {
  height: auto;
  min-height: 100vh;
  padding: 100px 0 88px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.doctors-head {
  max-width: 720px;
  margin: 0 auto 40px;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* 트랙: 한 슬라이드 = 100% 너비 */
.doctors-track {
  grid-auto-columns: 100%;
  gap: 0;
}

/* 디테일 슬라이드 레이아웃 — 좌측 인물사진 / 우측 정보 */
.doctor-slide {
  scroll-snap-align: start;
  list-style: none;
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 56px;
  align-items: start;
  padding: 8px 4px;
}
.doctor-photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
}
.doctor-photo img {
  width: 100%;
  height: auto;            /* 구형 iOS Safari(aspect-ratio 미지원) 대응 — 이미지 자체 비율로 높이 확보 */
  aspect-ratio: 4 / 5;     /* 지원 브라우저는 img 자체에도 비율 고정 */
  object-fit: cover;
  object-position: center top;
  display: block;
}
.doctor-detail {
  padding-top: 6px;
}
.doctor-clinic {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg-mute);
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.doctor-name {
  margin: 0 0 22px;
  font-size: 36pt;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1.1;
}
.doctor-name em {
  font-style: normal;
  font-weight: 600;
  font-size: 20pt;
  letter-spacing: -0.02em;
  margin-left: 8px;
  color: var(--fg);
  vertical-align: 2px;
}
.doctor-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}
.doctor-badge {
  display: inline-block;
  padding: 7px 14px;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.005em;
  border-radius: 4px;
  white-space: nowrap;
}
/* 전문분야 뱃지는 최대 3개까지만 노출 */
.doctor-badges .doctor-badge:nth-child(n + 4) { display: none; }
.doctor-cv {
  list-style: none;
  margin: 0;
  padding: 0;
}
.doctor-cv li {
  position: relative;
  padding-left: 12px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--fg-mute);
  letter-spacing: -0.01em;
}
.doctor-cv li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--fg-mute);
}

/* 진료 일정표 */
.doctor-schedule {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.schedule-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.schedule-legend {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-mute);
  letter-spacing: -0.005em;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}
.schedule-legend .ld-on { color: var(--accent); margin-right: 1px; }
.schedule-legend .ld-night { color: #d97706; margin-right: 1px; }
.schedule-legend .ld-off { color: var(--fg-soft); margin-right: 1px; }

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.schedule-table th,
.schedule-table td {
  padding: 7px 2px;
  border: 1px solid var(--line);
}
.schedule-table thead th {
  background: var(--bg-soft);
  font-weight: 700;
  font-size: 11px;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.schedule-table thead th.weekend { color: #c0392b; }
.schedule-table tbody th {
  background: var(--bg-soft);
  font-weight: 600;
  font-size: 10px;
  color: var(--fg-mute);
  width: 44px;
}
.schedule-table td.on { color: var(--accent); font-weight: 700; }
.schedule-table td.night { color: #d97706; font-weight: 700; }
.schedule-table td.off { color: var(--line); }

@media (max-width: 880px) {
  #doctors { height: auto; min-height: 100vh; padding: 80px 0 40px; }
  .doctor-slide {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 8px;
  }
  .doctor-photo {
    max-width: 280px;
    margin: 0 auto;
  }
  .doctor-name { font-size: 28pt; }
  .doctor-name em { font-size: 16pt; }
  .doctor-detail { padding-top: 0; text-align: center; }
  .doctor-badges { justify-content: center; }
  .doctor-cv li { text-align: left; }
  .doctor-cv { max-width: 380px; margin: 0 auto; }
  .doctor-schedule { max-width: 380px; margin-left: auto; margin-right: auto; }
  .schedule-title { justify-content: center; }
}
@media (max-width: 540px) {
  .doctor-name { font-size: 24pt; }
  .doctor-badge { font-size: 12px; padding: 6px 12px; }
}

/* =============================================================
   Footer SNS + 개인정보처리방침 링크
   ============================================================= */
.footer-sns {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  gap: 10px;
}
.footer-sns a {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--fg-on-dark-mute);
  border: 1px solid rgba(255, 255, 255, 0.10);
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.15s var(--ease);
}
.footer-sns a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.footer-links .sep {
  color: rgba(255, 255, 255, 0.18);
}
.privacy-link {
  cursor: pointer;
  font-weight: 600;
}
.privacy-link:hover { color: #fff; }

/* =============================================================
   Modal — 개인정보처리방침
   ============================================================= */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
}
.modal.open {
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  animation: modal-fade 0.2s var(--ease);
}
.modal-panel {
  position: relative;
  width: min(820px, 92vw);
  max-height: 88vh;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  display: flex;
  flex-direction: column;
  animation: modal-slide 0.28s var(--ease);
  overflow: hidden;
}
.modal-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.modal-close {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--fg-mute);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.modal-close:hover { background: var(--bg-soft); color: var(--fg); }

.modal-body {
  overflow-y: auto;
  padding: 22px 28px 32px;
  font-size: 13px;
  line-height: 1.75;
  color: var(--fg);
  letter-spacing: -0.01em;
}
/* 주요 개인정보 처리 표시 (라벨링) — 6개 카드 그리드 */
.modal-body .privacy-labels {
  list-style: none;
  margin: 12px 0 28px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.modal-body .privacy-label {
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.modal-body .privacy-label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin-bottom: 8px;
}
.modal-body .privacy-label-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.modal-body .privacy-label-title {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.modal-body .privacy-label-desc {
  margin: 0;
  font-size: 11.5px;
  color: var(--fg-mute);
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* 목차 */
.modal-body .privacy-toc {
  margin: 8px 0 24px;
  padding: 14px 18px 14px 32px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.85;
  color: var(--fg);
}
.modal-body .privacy-toc li {
  margin-bottom: 2px;
  color: var(--fg);
}

/* 조항 안 소제목 (가. 나. 다.) */
.modal-body .privacy-subhead {
  margin: 14px 0 8px !important;
  font-size: 13px !important;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
  padding-left: 4px;
  border-left: 3px solid var(--accent);
}

/* 개인정보 처리 항목 표 */
.modal-body .privacy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 18px;
  font-size: 12px;
  text-align: center;
}
.modal-body .privacy-table thead th {
  background: var(--bg-soft);
  padding: 9px 6px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--fg);
  border: 1px solid var(--line);
  letter-spacing: -0.01em;
  vertical-align: middle;
}
.modal-body .privacy-table tbody td {
  padding: 9px 8px;
  border: 1px solid var(--line);
  color: var(--fg);
  letter-spacing: -0.01em;
  vertical-align: middle;
  word-break: keep-all;
}

@media (max-width: 880px) {
  .modal-body .privacy-labels { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .modal-body .privacy-label { padding: 14px 12px; }
  .modal-body .privacy-table { font-size: 11px; }
  .modal-body .privacy-table thead th,
  .modal-body .privacy-table tbody td { padding: 7px 5px; }
}
@media (max-width: 540px) {
  .modal-body .privacy-labels { grid-template-columns: 1fr; }
  .modal-body .privacy-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
  .modal-body .privacy-table thead,
  .modal-body .privacy-table tbody { display: table; width: 600px; }
}

.modal-body .privacy-intro {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--bg-soft);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--fg-mute);
  line-height: 1.7;
}
.modal-body h3 {
  margin: 24px 0 10px;
  font-size: 15px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.modal-body p { margin: 0 0 10px; }
.modal-body ul, .modal-body ol {
  margin: 8px 0 12px;
  padding-left: 20px;
}
.modal-body li {
  margin-bottom: 4px;
  color: var(--fg-mute);
}
.modal-body strong { color: var(--accent); font-weight: 700; }

/* 비급여 항목 모달 전용 */
.modal-body .noncovered-intro {
  margin: 0 0 20px;
  padding: 16px 18px;
  background: var(--accent-soft);
  border-radius: 10px;
  font-size: 12.5px;
  color: var(--fg);
  line-height: 1.7;
}
/* 중분류 소제목 */
.modal-body .noncovered-subhead {
  font-size: 13px !important;
  font-weight: 700;
  color: var(--fg);
  margin: 14px 0 8px !important;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  letter-spacing: -0.01em;
}

.modal-body .noncovered-table {
  width: 100%;
  border-collapse: collapse;
  margin: 6px 0 18px;
  font-size: 12px;
  table-layout: fixed;
}
.modal-body .noncovered-table thead th {
  background: var(--bg-soft);
  padding: 8px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--fg);
  text-align: left;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.modal-body .noncovered-table thead th.amount { text-align: right; width: 130px; }
.modal-body .noncovered-table thead th.note { width: 28%; }
.modal-body .noncovered-table tbody td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
  letter-spacing: -0.01em;
  vertical-align: top;
  word-break: keep-all;
  word-wrap: break-word;
}
.modal-body .noncovered-table tbody td.amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}
.modal-body .noncovered-table tbody td.note {
  font-size: 11px;
  color: var(--fg-mute);
  line-height: 1.55;
}
.modal-body .noncovered-table .muted { color: var(--fg-soft); }
.modal-body .noncovered-table tbody tr:last-child td {
  border-bottom: none;
}

/* 모달 안 비급여 표 — 모바일 가로 스크롤 허용 */
@media (max-width: 880px) {
  .modal-body .noncovered-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    font-size: 12px;
    -webkit-overflow-scrolling: touch;
  }
  .modal-body .noncovered-table thead,
  .modal-body .noncovered-table tbody { display: table; width: 720px; }
  .modal-body .noncovered-table td.note,
  .modal-body .noncovered-table td:not(.amount) { white-space: normal; }
  .modal-body .noncovered-table thead th { font-size: 11px; padding: 7px 6px; }
  .modal-body .noncovered-table tbody td { padding: 8px 6px; font-size: 12px; }
}
.modal-body .noncovered-note {
  margin: 24px 0 0;
  padding: 14px 16px;
  background: var(--bg-soft);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--fg-mute);
}

@media (max-width: 540px) {
  .modal-panel { max-height: 92vh; width: 96vw; }
  .modal-header { padding: 16px 18px; }
  .modal-body { padding: 18px 20px 24px; font-size: 12.5px; }
  .modal-body .noncovered-table { font-size: 12px; }
  .modal-body .noncovered-table thead th,
  .modal-body .noncovered-table tbody td { padding: 9px 10px; }
}

@keyframes modal-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-slide {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* =============================================================
   Reveal-on-scroll
   ============================================================= */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal-stagger.in > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.in > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.in > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.in > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.in > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.in > * { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================
   Side Navigation (floating right)
   ============================================================= */
.side-nav {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
}

.side-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-radius: 28px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.snav-dot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  cursor: pointer;
  border-radius: 50%;
  transition: background 0.2s var(--ease);
  padding: 0;
}

.snav-dot:hover {
  background: rgba(0, 102, 179, 0.08);
}

.snav-dot .dot {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  transition: background 0.4s var(--ease), transform 0.4s var(--ease);
}

.snav-dot.active .dot {
  background: var(--accent);
  transform: scale(1.57);
}

/* Tooltip label */
.snav-dot .lbl {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(8px);
  font-size: 11px;
  font-weight: 700;
  color: var(--fg);
  background: #fff;
  padding: 5px 11px;
  border-radius: 8px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.13);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}

.snav-dot:hover .lbl {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Progress bar inside dot when active */
.snav-dot.active::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 102, 179, 0.25);
  animation: ring-pulse 2s var(--ease) infinite;
}

@keyframes ring-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  60%  { transform: scale(1.6); opacity: 0; }
  100% { transform: scale(1.6); opacity: 0; }
}

@media (max-width: 880px) {
  .side-nav { display: none; }
}

/* =============================================================
   섹션 배경 이미지 가이드
   -----------------------------------------------------------
   권장 해상도 : 1920×1080px (Full HD) 이상
                레티나/HiDPI 대응 시 2560×1440px (2K) 권장
   파일 형식   : JPG (품질 80~85%) — 파일 크기 500KB 이하 목표
                WebP 지원 시 WebP + JPG 폴백 조합 권장
   색상 톤     : 라이트 섹션(soft/white)은 밝고 채도 낮은 사진
                다크 섹션(sunday)은 약간 어두운 텍스처/사진
   opacity     : 라이트 섹션 0.06~0.10 / 다크 섹션 0.10~0.15
   -----------------------------------------------------------
   사용법: 원하는 섹션 주석 블록을 해제하고 실제 이미지 경로 입력
   ============================================================= */

/* ── 1. HERO — 역사 모자이크 5x3 (정방형 타일) | ::after 사용 ── */
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: url('../img/bg-01-hero.jpg') center / auto 100% repeat-x;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

/* ── 2. HERITAGE / ABOUT ── */
#about::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../img/bg-02-about.jpg') center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* ── 3. SPECIALTY ── */
#specialty::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../img/bg-03-specialty.jpg') center / cover no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

/* ── 4. IN-HOUSE LAB ── */
#lab::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../img/bg-04-lab.jpg') center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* ── 5. SUNDAY (다크 섹션 — opacity 조금 높여도 OK) ── */
#sunday::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../img/bg-05-sunday.jpg') center / cover no-repeat;
  opacity: 0.18;
  pointer-events: none;
  z-index: 0;
}

/* ── 6. NIGHT CARE ── */
#night::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../img/bg-06-night.jpg') center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* ── 7. SCHEDULE / LOCATION ── */
#schedule::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../img/bg-07-schedule.jpg') center / cover no-repeat;
  opacity: 0.07;
  pointer-events: none;
  z-index: 0;
}

/* ── 8. BOOKING CTA ── */
#booking::before {
  content: "";
  position: absolute; inset: 0;
  background: url('../img/bg-08-booking.jpg') center / cover no-repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

/* =============================================================
   Mobile Optimization — 다운스케일 + 중앙정렬 + 폰트 +4pt 보정
   (가장 마지막에 정의 → 위 모바일 미디어쿼리들을 일괄 오버라이드)
   ============================================================= */
@media (max-width: 880px) {
  /* ── 섹션 padding 축소 + height auto (콘텐츠 잘림 방지) ── */
  .section { padding: 56px 18px; min-height: auto; height: auto; }
  .hero { padding: 60px 18px 40px; min-height: 100vh; height: auto; }
  .cta-section { padding: 60px 18px; min-height: auto; height: auto; }

  /* ── 헤더 컴팩트 ── */
  .header-inner { height: 60px; padding: 0 18px; }
  .brand img { height: 32px; }
  .menu-toggle { width: 36px; height: 36px; }
  .nav { top: 60px !important; }

  /* ── 타이틀 +4pt 적용 ── */
  .section-title { font-size: 24pt; margin-bottom: 18px; }
  .hero h1 { font-size: 26pt; margin-bottom: 18px; line-height: 1.2; }
  .hero h1 em { display: inline; }

  /* ── eyebrow +4pt ── */
  .eyebrow {
    font-size: 15px;
    letter-spacing: 0.14em;
    margin-bottom: 12px;
  }
  .hero .eyebrow {
    font-size: 15px;
    letter-spacing: 0.12em;
    margin-bottom: 16px;
  }

  /* ── 본문 desc +4pt ── */
  .desc {
    font-size: 18px;
    line-height: 1.7;
    margin-bottom: 12px;
  }
  .hero p.lead {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 460px;
  }

  /* ── 버튼 +4pt ── */
  .btn {
    height: 48px;
    padding: 0 22px;
    font-size: 16px;
  }
  .hero-cta { gap: 8px; }

  /* ── split: 텍스트 중앙정렬 ── */
  .split { gap: 28px; }
  .text-col {
    text-align: center;
    max-width: 520px;
    margin: 0 auto;
  }
  .text-col .desc { text-align: left; }
  .image-col .frame { aspect-ratio: 16 / 10; }

  /* ── 모바일: 좌우 자유 스크롤 슬라이드 (버튼형 → 스크롤형) ── */
  .slider-arrow { display: none; }
  .slider-dots { display: none; }
  .slider-wrap { padding: 0 18px; gap: 0; }
  .slider-viewport {
    scroll-snap-type: x proximity;
    padding-right: 24px;  /* 마지막 슬라이드 끝에 여백 */
  }

  /* ── 진료과목 슬라이더 +4pt ── */
  .specialty-head { margin-bottom: 24px; padding: 0 18px; }
  #specialty { padding: 60px 0 40px; min-height: auto; height: auto; }
  .slide h3 { font-size: 20px; margin: 6px 18px 6px; }
  .slide p { font-size: 16px; margin: 0 18px 20px; line-height: 1.55; }
  .slide-num { font-size: 14pt; margin: 14px 18px 0; }

  /* ── 의료진 디테일 +4pt + 노출 안전장치 ── */
  #doctors {
    height: auto !important;
    min-height: 0 !important;
    padding: 70px 18px 50px;
    display: block;
  }
  .doctors-head { margin: 0 auto 24px; padding: 0; }
  .doctor-slide { gap: 18px; padding: 0; }
  .doctor-photo { max-width: 240px; }
  .doctor-clinic { font-size: 16px; margin-bottom: 4px; }
  .doctor-name { font-size: 26pt; margin-bottom: 14px; }
  .doctor-name em { font-size: 17pt; margin-left: 6px; }
  .doctor-badge { font-size: 15px; padding: 6px 12px; }
  .doctor-badges { gap: 6px; margin-bottom: 16px; justify-content: center; }
  .doctor-cv li { font-size: 16px; line-height: 1.7; }
  .doctor-cv { max-width: 360px; }

  /* ── 진료 일정표 +4pt ── */
  .doctor-schedule { margin-top: 16px; padding-top: 14px; max-width: 380px; }
  .schedule-title {
    font-size: 15px;
    margin-bottom: 10px;
    flex-direction: column;
    gap: 4px;
    align-items: center;
  }
  .schedule-legend { font-size: 13px; gap: 8px; }
  .schedule-table { font-size: 14px; }
  .schedule-table thead th,
  .schedule-table tbody td { padding: 7px 2px; font-size: 13px; }
  .schedule-table tbody th { font-size: 12px; width: 38px; }

  /* ── 일요일(다크) 섹션 +4pt ── */
  .sunday-meta {
    font-size: 15px;
    padding: 16px 20px;
    margin-top: 26px;
  }

  /* ── 진료시간 + 오시는 길 +4pt ── */
  .info-head { margin-bottom: 24px; }
  .info-grid { gap: 14px; padding: 0; }
  .info-card { padding: 24px 20px; }
  .info-card h3 { font-size: 18px; margin-bottom: 18px; }
  .schedule-list li { padding: 10px 0; font-size: 15px; }
  .schedule-note { font-size: 14px; padding: 12px 14px; margin-top: 14px; }
  .location-row { padding: 12px 0; }
  .location-row .label { font-size: 14px; margin-bottom: 4px; }
  .location-row .value { font-size: 15px; }

  /* ── 예약 CTA ── */
  .cta-inner .desc { max-width: 420px; }

  /* ── 푸터 +4pt ── */
  .site-footer { padding: 50px 18px 60px; }
  .footer-brand img { height: 38px; }
  .footer-brand p { font-size: 15px; margin-top: 14px; }
  .footer-info dl { font-size: 15px; }
  .footer-info dt { font-size: 16px; }
  .footer-bottom { font-size: 14px; }
  .footer-sns a { width: 36px; height: 36px; }

  /* ── 모달 +4pt ── */
  .modal-body h3 { font-size: 18px; margin-top: 18px; }
  .modal-body p, .modal-body li { font-size: 15px; }
  .modal-body .noncovered-table { font-size: 15px; }
  .modal-body .noncovered-intro { font-size: 15px; padding: 14px 16px; }
}

@media (max-width: 540px) {
  /* 더 작은 화면 — 추가 미세 조정 */
  .section, .hero, .cta-section { padding: 50px 16px; }
  .section-title { font-size: 22pt; }
  .hero h1 { font-size: 24pt; }
  .doctor-name { font-size: 22pt; }
  .doctor-name em { font-size: 15pt; }
  .doctor-photo { max-width: 200px; }
  .desc, .hero p.lead { font-size: 17px; }
  .slide h3 { font-size: 19px; }
  .info-card h3 { font-size: 17px; }
}

/* =============================================================
   모바일 전용 헬퍼 클래스 (mobile-br, hide-mobile, frame-video)
   ============================================================= */
.mobile-br { display: none; }
.hide-mobile { display: inline; }

/* 섹션 2 — 루프 비디오 (PC + 모바일 공통) */
.image-col .frame .frame-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 880px) {
  .mobile-br { display: inline; }
  .hide-mobile { display: none; }

  /* split 안 desc도 중앙정렬 (#about, #lab, #night 공통) */
  .text-col .desc { text-align: center; }

  /* 의료진 섹션 — 모바일에서 연혁(CV) · 진료일정 숨김 */
  .doctor-cv,
  .doctor-schedule { display: none !important; }

  /* sunday 메타 — 3칸 가로 그리드 정렬 (모바일 전용) */
  .sunday-meta {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 14px 12px;
    font-size: 13px;
    text-align: center;
    border-radius: 14px;
  }
  .sunday-meta > span:not(.div) {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    line-height: 1.4;
  }
  .sunday-meta strong { display: block; }
  .sunday-meta .div { display: none; }
}

@media (max-width: 540px) {
  .sunday-meta { font-size: 11px; gap: 4px; padding: 12px 8px; }
}


/* 모바일에서 타임라인 섹션만 숨김 (의료진은 복구) */
@media (max-width: 880px) {
  #timeline { display: none !important; }

  /* 의료진 슬라이더 — 모바일 스와이프 힌트용 점(dot) 노출 (13명) */
  #doctorsDots {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    max-width: 260px;
    margin: 20px auto 0;
  }
  #doctorsDots button { width: 7px; height: 7px; }
  #doctorsDots button.active { transform: scale(1.55); }
}

/* =============================================================
   디자인 폴리싱 패키지 (2026-05-08)
   ============================================================= */

/* ── 1) 섹션 간 그라디언트 마스킹 ── */
.section-soft {
  box-shadow: inset 0 80px 80px -80px var(--bg);
}
.section-white {
  box-shadow: inset 0 80px 80px -80px var(--bg-soft);
}
/* 첫 섹션(#about)은 hero 다음이라 위쪽 fade 불필요 */
.hero + .section-soft { box-shadow: none; }

/* ── 2) 사진 톤 통일 (모든 사진에 듀오톤 보정) ── */
.image-col .frame img,
.image-col .frame video,
.slide-img img,
.doctor-photo img {
  filter: saturate(0.95) brightness(1.02) contrast(1.02);
  transition: filter 0.4s var(--ease), transform 0.6s var(--ease);
}
.slide:hover .slide-img img,
.doctor-card:hover .doctor-photo img {
  filter: saturate(1.05) brightness(1.04) contrast(1.04);
}

/* ── 3) 카드 호버 시 살짝 기울기 (3D) ── */
.slide,
.spec-card,
.doctor-card,
.info-card {
  transform-style: preserve-3d;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease), border-color 0.45s var(--ease);
}
.slide:hover {
  transform: translateY(-6px) perspective(900px) rotateX(2deg);
  box-shadow: 0 30px 60px -28px rgba(0, 0, 0, 0.18);
}
.spec-card:hover {
  transform: translateY(-6px) perspective(900px) rotateX(2.5deg);
}
.info-card:hover {
  transform: translateY(-3px) perspective(1000px) rotateX(1.5deg);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.12);
}

/* ── 4) 버튼 호버 시 광택 스윕 ── */
.btn,
.nav .nav-cta,
.side-floating-btn {
  position: relative;
  overflow: hidden;
}
.btn::before,
.nav .nav-cta::before,
.side-floating-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 80%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: left 0.7s var(--ease);
  pointer-events: none;
  z-index: 1;
}
.btn:hover::before,
.nav .nav-cta:hover::before,
.side-floating-btn:hover::before {
  left: 150%;
}
/* 버튼 안 콘텐츠는 광택 위에 */
.btn > *,
.nav .nav-cta > *,
.side-floating-btn > * { position: relative; z-index: 2; }

/* ── 5) 링크 underline 애니메이션 (푸터·모달 텍스트 링크) ── */
.footer-info dd a,
.footer-bottom a:not(.footer-sns a),
.privacy-link,
.modal-body a {
  position: relative;
  display: inline;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease);
}
.footer-info dd a:hover,
.footer-bottom a:not(.footer-sns a):hover,
.privacy-link:hover,
.modal-body a:hover {
  background-size: 100% 1px;
}

/* ── 6) 숫자 카운터 — 등장 애니메이션 ── */
.counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  font-weight: 800;
}

/* =============================================================
   7) 타임라인 섹션 — 79년의 기록 (가로 스크롤)
   ============================================================= */
#timeline {
  height: auto;
  min-height: 100vh;
  padding: 100px 0 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.timeline-head {
  max-width: 720px;
  margin: 0 auto 56px;
  padding: 0 24px;
  text-align: center;
  position: relative;
  z-index: 1;
}

/* =============================================================
   Timeline — 자기완결형 카드 디자인 (정렬 의존성 0)
   ============================================================= */
.timeline-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 96px;
  box-sizing: border-box;
}

.timeline-track {
  list-style: none;
  margin: 0;
  padding: 16px 32px 24px; /* 좌우 32px: 카드가 마스크 페이드존에 안 닿게 */
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  scrollbar-width: none;
  position: relative;
  /* 페이드존을 픽셀 단위로 좁게 → 카드는 절대 페이드 안 됨 (트랙 padding 32px 내에서만 페이드) */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 20px, #000 calc(100% - 20px), transparent 100%);
}
.timeline-track::-webkit-scrollbar { display: none; }

/* 각 항목 = 독립 카드 */
.timeline-item {
  flex: 0 0 220px;
  min-height: 230px;
  scroll-snap-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-align: center;
  list-style: none;
  position: relative;
  transition: transform 0.4s var(--ease),
              box-shadow 0.4s var(--ease),
              border-color 0.4s var(--ease);
}
.timeline-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 102, 179, 0.14);
  border-color: rgba(0, 102, 179, 0.22);
}

/* 연도 배지 — 고정 높이로 카드 정렬 균일화 */
.timeline-year {
  display: grid;
  place-items: center;
  height: 88px;
  background-color: var(--accent-soft);
  background-size: cover;
  background-position: center;
  color: var(--accent);
  font-size: 28pt;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  position: relative;
  overflow: hidden;
  transition: filter 0.3s var(--ease);
}

/* 사진이 있는 카드 — 흰 글씨 + 그림자 + 호버 줌 */
.timeline-year[data-year] {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.timeline-item:hover .timeline-year[data-year] {
  filter: brightness(1.08);
}

/* 사진별 배경 — 가독성용 어두운 그라데이션 + 사진 */
.timeline-year[data-year="1947"] {
  background-image: linear-gradient(180deg, rgba(0,40,80,0.35) 0%, rgba(0,40,80,0.7) 100%), url('../img/history-1947.jpg');
}
.timeline-year[data-year="1969"] {
  background-image: linear-gradient(180deg, rgba(0,40,80,0.35) 0%, rgba(0,40,80,0.7) 100%), url('../img/history-1969.jpg');
}
.timeline-year[data-year="1992"] {
  background-image: linear-gradient(180deg, rgba(0,40,80,0.35) 0%, rgba(0,40,80,0.7) 100%), url('../img/history-1992.jpg');
}
.timeline-year[data-year="1999"] {
  background-image: linear-gradient(180deg, rgba(0,40,80,0.35) 0%, rgba(0,40,80,0.7) 100%), url('../img/history-1999.jpg');
}
.timeline-year[data-year="2010"] {
  background-image: linear-gradient(180deg, rgba(0,40,80,0.35) 0%, rgba(0,40,80,0.7) 100%), url('../img/history-2010.jpg');
}
.timeline-year[data-year="2011"] {
  background-image: linear-gradient(180deg, rgba(0,40,80,0.35) 0%, rgba(0,40,80,0.7) 100%), url('../img/history-2011.jpg');
}
.timeline-year[data-year="2023"] {
  background-image: linear-gradient(180deg, rgba(0,40,80,0.35) 0%, rgba(0,40,80,0.7) 100%), url('../img/history-2023.jpg');
}

/* 현재 항목 — 카드 전체 배경에 사진 + 컬러 오버레이 */
.timeline-item.current {
  border-color: rgba(0, 102, 179, 0.30);
  box-shadow: 0 10px 32px rgba(0, 102, 179, 0.18);
  background-image:
    linear-gradient(160deg, rgba(0,102,179,0.78) 0%, rgba(0,77,133,0.72) 50%, rgba(140,198,63,0.62) 100%),
    url('../img/history-2026.jpg');
  background-size: cover;
  background-position: center;
}
/* 카드 전체가 사진이라 배지는 투명하게 */
.timeline-item.current .timeline-year {
  background: transparent;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
}
.timeline-item.current .timeline-title {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.timeline-item.current .timeline-desc {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
}

.timeline-title {
  margin: 22px 14px 8px;
  font-size: 14pt;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.timeline-desc {
  margin: 0 14px 22px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg-mute);
  letter-spacing: -0.01em;
}

/* 이전/다음 네비 버튼 — 카드 세로 중앙 */
.timeline-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: grid;
  place-items: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
              color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              opacity 0.2s var(--ease);
}
.timeline-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 102, 179, 0.28);
}
.timeline-nav:disabled {
  opacity: 0.28;
  cursor: default;
  pointer-events: none;
}
.timeline-prev { left: 18px; }
.timeline-next { right: 18px; }

@media (max-width: 880px) {
  #timeline { padding: 70px 0 60px; }
  .timeline-head { margin-bottom: 36px; }
  .timeline-wrap { padding: 0 16px; }
  .timeline-track { padding: 12px 6px 20px; gap: 14px; }
  .timeline-item { flex: 0 0 190px; min-height: 210px; border-radius: 14px; }
  .timeline-year { height: 76px; font-size: 24pt; }
  .timeline-title { font-size: 13pt; margin: 18px 12px 6px; }
  .timeline-desc { font-size: 12px; margin: 0 12px 18px; }
  .timeline-nav { display: none; }
}

/* =============================================================
   하단 빠른 접수 플로팅 배너 (Quick Contact)
   ============================================================= */
.quick-contact {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 150;
  background: rgba(20, 22, 28, 0.97);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.30);
  transition: transform 0.4s var(--ease);
}

.qc-toggle-bar {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}
.qc-toggle-bar strong {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: #fff;
}
.qc-toggle-bar .qc-sub {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.62);
  flex: 1;
  letter-spacing: -0.01em;
}
.qc-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(140, 198, 63, 0.5);
  animation: qc-pulse 1.8s ease-out infinite;
  flex-shrink: 0;
}
@keyframes qc-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(140, 198, 63, 0.5); }
  70%  { box-shadow: 0 0 0 10px rgba(140, 198, 63, 0); }
  100% { box-shadow: 0 0 0 0 rgba(140, 198, 63, 0); }
}
.qc-toggle {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 4px;
  transition: transform 0.4s var(--ease), color 0.2s var(--ease);
}
.qc-toggle:hover { color: #fff; }
.quick-contact.collapsed .qc-toggle { transform: rotate(180deg); }

.qc-form {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px 18px;
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.1fr 1.5fr auto;
  gap: 10px;
  align-items: center;
  transition: max-height 0.4s var(--ease), opacity 0.3s var(--ease), padding 0.4s var(--ease);
  max-height: 200px;
  overflow: hidden;
}
.quick-contact.collapsed .qc-form {
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  opacity: 0;
}

.qc-form input,
.qc-form select {
  height: 44px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
  width: 100%;
}
.qc-form input::placeholder { color: rgba(255, 255, 255, 0.42); }
.qc-form input:focus,
.qc-form select:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.10);
}
.qc-form select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  padding-right: 34px;
  cursor: pointer;
}
.qc-form select option { color: #1d1d1f; }
.qc-extra {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* 개인정보 동의 체크박스 */
.qc-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 2px 4px;
  cursor: pointer;
  user-select: none;
}
.qc-consent input[type="checkbox"] {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.qc-consent-text {
  font-size: 12px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}
.qc-consent-text strong {
  color: var(--lime);
  font-weight: 800;
  margin-right: 2px;
}
.qc-consent-link {
  background: none;
  border: none;
  padding: 0 0 0 4px;
  color: var(--lime);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}
.qc-consent-link:hover { color: #fff; }
@media (max-width: 540px) {
  .qc-consent-text { font-size: 13px; }
  .qc-consent-link { font-size: 13px; }
}

.qc-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  padding: 0 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  box-shadow: 0 6px 18px rgba(0, 102, 179, 0.30);
}
.qc-submit:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 102, 179, 0.40);
}
.qc-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

@media (max-width: 880px) {
  .quick-contact { box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.25); }
  .qc-toggle-bar { padding: 12px 16px; gap: 10px; }
  .qc-toggle-bar .qc-sub { display: none; }
  .qc-toggle-bar strong { font-size: 13px; flex: 1; }
  .qc-form {
    grid-template-columns: 1fr 1fr;
    padding: 0 16px 16px;
    gap: 8px;
  }
  .qc-form select { grid-column: 1 / -1; }
  .qc-form input[name="symptom"] { grid-column: 1 / -1; }
  .qc-submit { grid-column: 1 / -1; height: 46px; font-size: 14px; }
}
@media (max-width: 540px) {
  .qc-form { grid-template-columns: 1fr; }
  .qc-form input,
  .qc-form select { height: 42px; font-size: 14px; }
}

/* 좌측 사이드 플로팅 — 빠른 접수 펼친 상태일 때 살짝 위로 (충돌 방지) */
.quick-contact:not(.collapsed) ~ .side-floating-banner {
  transform: translateY(calc(-50% - 60px));
}

/* =============================================================
   빠른 접수 성공 모달
   ============================================================= */
.modal-panel.qc-success-panel {
  max-width: 420px;
  width: 92vw;
  text-align: center;
  padding: 0;
}
.qc-success-body {
  padding: 44px 36px 32px;
}
.qc-success-check {
  display: inline-block;
  margin-bottom: 18px;
  animation: qc-pop 0.5s var(--ease);
}
@keyframes qc-pop {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: scale(1); }
}
.qc-success-panel h2 {
  margin: 0 0 12px;
  font-size: 19pt;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.03em;
}
.qc-success-panel p {
  margin: 0 0 26px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-mute);
  letter-spacing: -0.01em;
}
.qc-success-actions {
  display: flex;
  gap: 8px;
  width: 100%;
}
.qc-success-info,
.qc-success-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  height: 48px;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.qc-success-info {
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.qc-success-info:hover {
  background: var(--accent-soft);
}
.qc-success-confirm {
  background: var(--accent);
  color: #fff;
}
.qc-success-confirm:hover {
  background: var(--accent-dark);
}

/* 회신 안내 / 동의서 모달 — 공통 폴리시 */
.modal-panel-sm { max-width: 460px; }
.modal-panel-md { max-width: 600px; }
.modal-panel-sm .modal-body,
.modal-panel-md .modal-body {
  padding: 36px 32px 28px;
}
.modal-panel-sm h2,
.modal-panel-md h2 {
  margin: 0 0 16px;
  font-size: 20pt;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--accent);
}
.callback-lead {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.callback-lead strong { color: var(--accent); font-weight: 800; }
.callback-note {
  margin: 0 0 22px;
  padding: 14px 16px;
  background: var(--accent-soft);
  border-radius: 10px;
  border-left: 3px solid var(--accent);
}
.callback-note p {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.65;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.callback-note p:last-child { margin: 0; }
.callback-note p strong { color: var(--accent); }

.consent-lead {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--fg-mute);
}
.modal-panel-md h3 {
  margin: 20px 0 10px;
  font-size: 14pt;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.02em;
}
.consent-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 13px;
}
.consent-table th,
.consent-table td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.consent-table thead th {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}
.consent-table tbody td:first-child {
  font-weight: 700;
  background: rgba(0,0,0,0.02);
  white-space: nowrap;
  width: 110px;
}

.modal-confirm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  margin-top: 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.modal-confirm:hover { background: var(--accent-dark); }

@media (max-width: 540px) {
  .modal-panel-sm .modal-body,
  .modal-panel-md .modal-body { padding: 28px 22px 22px; }
  .modal-panel-sm h2,
  .modal-panel-md h2 { font-size: 17pt; }
  .qc-success-actions { flex-direction: column; }
  .consent-table { font-size: 12px; }
  .consent-table th,
  .consent-table td { padding: 8px 10px; }
  .consent-table tbody td:first-child { width: 80px; }
}
