@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  color-scheme: light;
  --ink: #163033;
  --muted: #5d6f72;
  --line: #d8e4e1;
  --paper: #f4faf8;
  --panel: #ffffff;
  --teal: #0e5c64;
  --teal-2: #287d7a;
  --teal-light: rgba(14, 92, 100, 0.08);
  --gold: #b89332;
  --blue: #2f6f9f;
  --rose: #9d4e5b;
  --leaf: #6d8f70;
  --shadow: 0 20px 48px rgba(17, 50, 55, 0.08);
  --shadow-hover: 0 30px 60px rgba(17, 50, 55, 0.15);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
  --transition-smooth: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html {
  font-family: 'Plus Jakarta Sans', 'Noto Sans KR', sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  /* 전역 break-word 금지: keep-all 로 끊을 곳이 없는 좁은 폭에서 어절이 중간에서
     쪼개진다(한국어 타이포 최상위 원칙 위반). 긴 URL 등 예외만 국소 적용할 것. */
  overflow-wrap: normal;
}
body { margin: 0; min-width: 320px; }
button, input, select, textarea { font: inherit; }
button {
  border: 0;
  background: var(--teal);
  color: #fff;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
  transition: var(--transition-smooth);
}
button:hover {
  background: #0a4d55;
  transform: translateY(-1px);
}
button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
button:disabled {
  background: #b9c8c7;
  cursor: not-allowed;
  transform: none;
}
a {
  color: inherit;
  transition: var(--transition-smooth);
}
a:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}
.hidden, .is-hidden { display: none !important; }
.ghost {
  background: rgba(14, 92, 100, 0.06);
  color: var(--teal);
  border: 1px solid rgba(14, 92, 100, 0.15);
}
.ghost:hover {
  background: rgba(14, 92, 100, 0.12);
}
.primary {
  background: var(--gold);
  color: #17252a;
}
.primary:hover {
  background: #a38128;
}
.wide { width: 100%; }

/* Glassmorphic Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2vw, 20px);
  padding: 0 clamp(12px, 3vw, 56px);
  border-bottom: 1px solid rgba(216, 228, 225, 0.4);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: var(--transition-smooth);
  flex-wrap: nowrap;
}
.brand-logo-link,
.brand-text-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.02em;
}
.brand-logo-link img {
  display: block;
  width: 44px;
  height: 40px;
  object-fit: contain;
  transition: var(--transition-smooth);
}
.brand-logo-link:hover img {
  transform: scale(1.05);
}
.brand-text-link {
  color: inherit;
}
.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hospital-home-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(14, 92, 100, 0.2);
  background: rgba(14, 92, 100, 0.04);
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.hospital-home-link:hover {
  background: rgba(14, 92, 100, 0.08);
  border-color: var(--teal);
  transform: translateY(-1px);
}
.site-nav nav {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  flex-shrink: 1;
  min-width: 0;
}
.site-nav nav a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  border-radius: 8px;
  color: #2e4b4f;
  text-decoration: none;
  font-weight: 700;
  font-size: .92rem;
  transition: var(--transition-smooth);
}
.site-nav nav a:hover {
  background: rgba(14, 92, 100, 0.05);
  color: var(--teal);
}
.site-nav .nav-button {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 4px 12px rgba(14, 92, 100, 0.15);
}
.site-nav .nav-button:hover {
  background: #0a4d55;
  color: #fff;
  transform: translateY(-1px);
}

.app-shell { width: 100%; margin: 0 auto; }
.gateway-page {
  min-height: 100vh;
  height: auto;
  overflow-y: auto;
}
.gateway-page .app-shell {
  min-height: calc(100vh - 68px);
  height: auto;
}

.section-wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0; }
.section-heading { max-width: 820px; margin-bottom: 22px; }
.section-heading.compact { margin-top: 42px; }
/* SEO: 페이지 대표 제목(h1)이 섹션 헤딩 자리에 올 때 h2와 같은 시각 크기를 유지 */
.section-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.25;
  max-width: none;
  text-wrap: balance;
}

/* 로컬 SEO 공통 푸터(NAP: 상호·주소·전화) — 모든 공개 페이지 하단 */
.site-footer { margin-top: 56px; padding: 30px 20px 38px; background: #0b3f45; color: #d7e6e4; }
.site-footer .footer-inner { max-width: 1080px; margin: 0 auto; display: grid; gap: 7px; }
.site-footer .footer-keywords { margin: 0; font-weight: 800; color: #f0d9a8; font-size: .92rem; letter-spacing: .01em; }
.site-footer .footer-name { margin: 0; font-weight: 800; font-size: 1.05rem; color: #fff; }
.site-footer .footer-nap { margin: 0; font-size: .93rem; word-break: keep-all; }
.site-footer .footer-nap a { color: #ffe9b8; font-weight: 800; text-decoration: none; }
.site-footer .footer-links { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; }
.site-footer .footer-links a { color: #cfe3e1; font-size: .88rem; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.25); padding-bottom: 2px; }
.site-footer .footer-links a:hover { color: #fff; border-color: #fff; }

/* 채용검진/공단검진 랜딩 하단 종합검진 CTA */
.landing-cta { margin: 30px 0 8px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; word-break: keep-all; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-weight: 900; letter-spacing: 0.05em; text-transform: uppercase; }

h1, h2, h3, p { letter-spacing: -0.01em; }
h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4.5vw, 4.2rem);
  line-height: 1.12;
  max-width: 900px;
  text-wrap: balance;
}
h2 {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 2.4vw, 2.35rem);
  line-height: 1.25;
  text-wrap: balance;
}
h3 {
  margin: 20px 0 10px;
  font-size: 1.1rem;
  text-wrap: balance;
}
p {
  line-height: 1.75;
  text-wrap: pretty;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes float {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-12px); }
}

/* Premium Gateway Hero — solid deep teal (baseline-ui: no gradient/glow, single gold accent) */
.premium-hero {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 5vw, 56px) clamp(16px, 4vw, 48px);
  overflow: hidden;
  color: #ffffff;
  background: var(--teal);
}
.home-gateway {
  border-bottom: 0;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: fadeInUp 0.7s ease-out both;
}
.hero-logo-card {
  background: #ffffff;
  border-radius: 22px;
  padding: clamp(16px, 2.5vw, 22px) clamp(22px, 3.5vw, 30px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
  margin: 0 0 clamp(22px, 4vw, 34px);
}
.hero-logo-card img {
  display: block;
  width: clamp(116px, 16vw, 156px);
  height: auto;
}
.hero-inner h1 {
  color: #ffffff;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-kicker {
  display: inline-block;
  background: rgba(184, 147, 50, 0.16);
  border: 1px solid rgba(184, 147, 50, 0.45);
  color: #e7d29a;
  padding: 7px 18px;
  border-radius: 99px;
  font-size: 0.86rem;
  font-weight: 800;
  margin: 0 0 22px 0;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-statement {
  max-width: 600px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  line-height: 1.62;
  font-weight: 700;
  text-wrap: balance;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-lead {
  max-width: 540px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 16px 0 0;
  text-wrap: pretty;
  word-break: keep-all;
  overflow-wrap: normal;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.gateway-actions {
  gap: 16px;
  margin-top: 36px;
  width: 100%;
}
.gateway-cta {
  flex: 1;
  min-width: 200px;
  min-height: 56px;
  font-size: 1.02rem;
}
.button-link {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 800;
  transition: var(--transition-smooth);
}
.button-link.primary {
  background: var(--gold);
  color: #111827;
  box-shadow: 0 10px 30px rgba(184, 147, 50, 0.3);
}
.button-link.primary:hover {
  transform: translateY(-2px);
  background: #d8af4c;
  box-shadow: 0 15px 35px rgba(184, 147, 50, 0.45);
}
.button-link.ghost {
  background: rgba(14, 92, 100, 0.06);
  color: var(--teal);
  border: 1px solid rgba(14, 92, 100, 0.2);
  backdrop-filter: blur(8px);
}
.button-link.ghost:hover {
  transform: translateY(-2px);
  background: rgba(14, 92, 100, 0.12);
  border-color: var(--teal);
}
.button-link.ghost.on-light {
  background: #edf4f2;
  color: var(--teal);
  border-color: var(--line);
}
.button-link.ghost.on-light:hover {
  background: #e1edea;
}
.button-link.ghost.on-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}
.button-link.ghost.on-dark:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: #ffffff;
}
.button-link.text { color: var(--teal); text-decoration: underline; text-underline-offset: 5px; }

.hero-trust-strip {
  width: min(760px, 100%);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 34px;
  overflow: hidden;
  border: 1px solid rgba(14, 92, 100, .14);
  border-radius: 8px;
  background: rgba(255,255,255,.84);
  box-shadow: 0 18px 46px rgba(20, 50, 54, .08);
}
.hero-trust-strip div {
  min-height: 92px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  background: rgba(255,255,255,.72);
}
.hero-trust-strip strong {
  color: var(--teal);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1;
}
.hero-trust-strip span {
  color: #35565b;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.42;
}

/* legacy hero clinician/media photo styles removed — homepage hero is now a solid teal stage */

.story-section { padding-top: 80px; }
.story-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.story-grid article, .doctor-grid article, .library-card, .package-card, .flow-start-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: var(--transition-smooth);
}
.story-grid article:hover, .doctor-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(14, 92, 100, 0.3);
}
.story-grid article {
  min-height: 190px;
  padding: 26px 24px;
}
.story-card { display: flex; flex-direction: column; align-items: flex-start; }
.story-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.story-icon svg { width: 30px; height: 30px; }
.story-icon-img { width: 38px; height: auto; display: block; }
.story-num { color: var(--gold); font-weight: 800; font-size: 0.92rem; letter-spacing: 0.04em; margin-bottom: 8px; }
.story-grid strong { display: block; font-size: 1.32rem; color: var(--ink); margin-bottom: 12px; font-weight: 800; line-height: 1.34; word-break: keep-all; text-wrap: balance; }
.story-grid p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 1.05rem; word-break: keep-all; text-wrap: pretty; }

.doctor-section { padding-top: 56px; }
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.doctor-card {
  min-height: 230px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  transition: var(--transition-smooth);
}
.doctor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(14, 92, 100, 0.3);
}
.doctor-card:first-child {
  border-color: rgba(184, 147, 50, 0.5);
  background: linear-gradient(180deg, #ffffff 0%, #fffdf6 100%);
  box-shadow: 0 15px 35px rgba(184, 147, 50, 0.08);
}
.doctor-card:first-child:hover {
  border-color: rgba(184, 147, 50, 0.8);
  box-shadow: 0 20px 45px rgba(184, 147, 50, 0.15);
}
.doctor-header {
  display: flex;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.doctor-profile-photo {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--line);
  flex-shrink: 0;
  background: var(--panel);
}
.doctor-profile-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.doctor-header-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.doctor-name {
  font-size: 1.25rem;
  color: var(--ink);
  font-weight: 700;
}
.doctor-title {
  color: var(--teal);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}
.doctor-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-grow: 1;
}
.doctor-meta {
  font-size: 0.88rem;
  line-height: 1.45;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 8px;
  align-items: start;
}
.meta-label {
  color: var(--teal);
  font-weight: 700;
  font-size: 0.82rem;
}
.meta-value {
  color: var(--ink);
  font-weight: 500;
}
.doctor-role {
  margin: 6px 0 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
  word-break: keep-all;
}

.library-section { padding-top: 56px; }
.library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
/* Premium Text-Only Cards */
.library-card, .package-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 240px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}
.package-card {
  background: linear-gradient(180deg, #ffffff 0%, #fffdf6 100%);
  border-color: rgba(184, 147, 50, 0.25);
}
.library-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--teal-2);
}
.package-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--gold);
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--teal-light);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.card-icon svg { width: 24px; height: 24px; }
.card-badge {
  align-self: flex-start;
  margin-bottom: 12px;
  font-size: 0.8rem;
  background: var(--teal-light);
  color: var(--teal);
  border-radius: 6px;
  padding: 4px 10px;
  font-weight: 800;
  display: inline-block;
}
.card-badge.gold {
  background: rgba(184, 147, 50, 0.1);
  color: var(--gold);
  border: 1px solid rgba(184, 147, 50, 0.15);
}

.card-title {
  display: block;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.3;
}

.card-snippet {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
  word-break: keep-all;
}

.card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  margin-bottom: auto; /* Push footer down */
}
.chip-item {
  font-size: 0.76rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(184, 147, 50, 0.06);
  border: 1px solid rgba(184, 147, 50, 0.15);
  color: #92701e;
  font-weight: 700;
}
.chip-more {
  font-size: 0.76rem;
  color: var(--muted);
  padding: 3px;
  font-weight: 800;
}

.card-footer {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
}
.package-card .card-footer {
  border-top-color: rgba(184, 147, 50, 0.2);
}

.card-price {
  color: var(--teal-2);
  font-size: 1.1rem;
  font-weight: 800;
}
.card-price.gold {
  color: var(--gold);
  font-size: 1.15rem;
  font-weight: 900;
}

.card-more {
  color: var(--teal);
  font-size: 0.88rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.package-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.reservation-section {
  border-top: 1px solid var(--line);
  padding-top: 72px;
}
.reservation-copy { max-width: 820px; }
.reservation-copy p { color: var(--muted); }
.flow-start-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 24px;
}
.flow-start-card {
  min-height: 118px;
  display: grid;
  gap: 8px;
  justify-items: start;
  align-content: center;
  padding: 18px;
  text-align: left;
  background: var(--teal);
  color: #fff;
}
.flow-start-card.secondary { background: #2f6f9f; }
.flow-start-card strong { font-size: 1.12rem; }
.flow-start-card span { color: rgba(255,255,255,.88); font-weight: 700; line-height: 1.45; }

.patient-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(360px, 1.08fr);
  gap: 18px;
  align-items: start;
}
.reservation-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 72px;
}
.reservation-head {
  max-width: 880px;
}
.reservation-head h1 {
  font-size: clamp(2rem, 4vw, 4rem);
}
.reservation-head p {
  color: var(--muted);
}
.patient-grid.wide-flow {
  grid-template-columns: 1fr;
}
.patient-grid.wide-flow .form-panel {
  position: static;
}
.patient-grid.wide-flow .result-panel {
  display: none;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.form-panel { padding: 18px; position: sticky; top: 84px; }
.result-panel { padding: 18px; min-height: 360px; }
.steps {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.steps button {
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 10px;
  background: #eef5f3;
  color: var(--muted);
  font-size: .86rem;
}
.steps button.active { background: var(--teal); color: #fff; }
.question-card h2 { margin-top: 8px; }
.contact-first-card {
  padding: 6px 0 2px;
}
.contact-first-card .field-grid {
  margin-top: 16px;
}
.decision-card {
  display: grid;
  gap: 14px;
  max-width: 820px;
}
.decision-card h2 {
  margin-bottom: 0;
}
.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.calendar-step {
  display: grid;
  gap: 14px;
}
.calendar-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin: 10px 0;
  padding: 8px 0;
  border-bottom: 1px dashed var(--line);
}
.calendar-current-month {
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--teal);
}
.calendar-nav-btn {
  background: transparent;
  color: var(--teal);
  border: 1px solid rgba(14, 92, 100, 0.2);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(14, 92, 100, 0.05);
  transition: var(--transition-smooth);
}
.calendar-nav-btn:hover {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
  transform: translateY(-1px);
}
.calendar-weekdays,
.large-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}
.calendar-weekdays span {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 900;
  text-align: center;
}
.calendar-day {
  min-height: 84px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdfd;
  color: var(--ink);
  box-shadow: 0 10px 24px rgba(20, 50, 54, .05);
  transition: var(--transition-smooth);
}
.calendar-pad {
  min-height: 84px;
}
.calendar-day:hover,
.calendar-day.selected {
  border-color: var(--teal);
  background: #e7f4f2;
  color: #073d43;
}
.calendar-day strong {
  font-size: 1.25rem;
}
.calendar-day:disabled {
  background: #f1f5f4;
  color: #b9c8c7;
  border-color: #e2edea;
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}
.calendar-day:disabled strong {
  color: #b9c8c7;
}
.calendar-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}
.calendar-actions button {
  flex: 1;
  max-width: 200px;
}
.selected-date-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  margin: 12px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfa;
}
.selected-date-card span {
  color: var(--muted);
  font-weight: 800;
}
.selected-date-card strong {
  font-size: 1.35rem;
}
.selected-date-card button {
  grid-row: span 2;
}
.question-count {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef5f3;
  color: var(--teal);
  font-weight: 900;
  font-size: .84rem;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
label { display: grid; gap: 7px; font-weight: 800; color: #244347; }
input, select, textarea {
  width: 100%;
  border: 1px solid #cddbd8;
  border-radius: 7px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; }
.check-row, .pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 4px;
}
.choice {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #fbfdfd;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  min-height: 44px;
}
.choice input { width: auto; }
.choice:has(input:checked) {
  border-color: var(--teal);
  background: #e9f5f3;
  color: #073d43;
}
.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}
.choice-card {
  align-items: flex-start;
  width: 100%;
  min-height: 86px;
}
.choice-card span {
  display: grid;
  gap: 4px;
  line-height: 1.35;
}
.choice-card strong {
  color: #17383d;
}
.choice-card small {
  color: var(--muted);
  font-weight: 700;
}
.profile-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.question-card h3 {
  margin: 18px 0 6px;
  color: #17383d;
  font-size: 1rem;
}
.step-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
}
.recommend-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 12px;
  background: #fbfdfc;
}
.recommend-card.top {
  border-color: var(--teal);
  background: #eef8f6;
}
.recommend-card.active {
  border-color: var(--teal) !important;
  background: #edf7f6 !important;
}
.recommend-card h3 { margin: 0 0 6px; font-size: 1.04rem; }
.recommend-card p { margin: 0 0 10px; color: var(--muted); }
.recommend-card button { margin-top: 12px; }
.price-line { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e7eef3;
  color: #244d64;
  font-size: .86rem;
  font-weight: 900;
}
.total-price-badge {
  background: #dff2ef;
  color: #073d43;
  font-size: .94rem;
}
.selected-preset-page {
  display: grid;
  gap: 22px;
}
.inline-back {
  justify-self: start;
}
.selected-preset-hero {
  display: grid;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.selected-preset-hero h2 {
  margin: 4px 0 0;
  font-size: clamp(1.8rem, 3.4vw, 3rem);
}
.selected-preset-hero h3 {
  margin: 0;
  color: #17383d;
  font-size: 1.22rem;
}
.selected-preset-hero p {
  max-width: 920px;
  color: var(--muted);
  line-height: 1.7;
}
.selected-preset-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 10px;
}
.selected-preset-meta div {
  display: grid;
  gap: 4px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f5fbfa;
}
.selected-preset-meta span {
  color: var(--muted);
  font-size: .84rem;
  font-weight: 900;
}
.selected-preset-meta strong {
  color: #073d43;
  font-size: 1.35rem;
}
.category-line {
  margin-top: 2px;
}
.composition-section {
  display: grid;
  grid-template-columns: minmax(210px, .42fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.composition-section h3 {
  margin: 0 0 6px;
  color: #17383d;
}
.selected-option-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.selected-option-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.selected-option-summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.selected-option-summary strong {
  color: #17383d;
}
.selected-option-summary small {
  color: var(--muted);
  font-weight: 800;
}
.selected-option-summary a {
  color: var(--teal);
  font-weight: 900;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.basic-tests-section {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.basic-test-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.basic-test-chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f7fbfa;
  color: #244347;
  font-size: .84rem;
  font-weight: 800;
}
.basic-tests-more {
  margin-top: 10px;
}
.basic-tests-more summary {
  color: var(--teal);
  cursor: pointer;
  font-weight: 900;
}
.basic-tests-more .basic-test-chip-grid {
  margin-top: 10px;
}
.option-toolbar {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 8px;
  margin: 12px 0;
}
.option-list {
  display: grid;
  gap: 8px;
  max-height: 440px;
  overflow: auto;
  padding-right: 4px;
}
.option-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}
.option-row.summary { grid-template-columns: 1fr; }
.option-row input { width: 18px; height: 18px; }
.option-row span { color: var(--muted); font-size: .88rem; min-width: 0; }
.option-row strong { text-align: right; }
.selection-total {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 14px;
  display: grid;
  gap: 8px;
}
.total-row { display: flex; justify-content: space-between; gap: 12px; }
.total-row strong { font-size: 1.2rem; }
.total-row.only-total strong {
  color: var(--teal);
  font-size: 1.42rem;
}
.error-box {
  border-left: 4px solid var(--rose);
  padding: 10px 12px;
  background: #fff4f5;
  color: #692a33;
  margin: 12px 0;
}
.success-box {
  border-left: 4px solid var(--teal);
  padding: 14px;
  background: #ecf8f5;
  color: #0d484c;
}
.small-note { color: var(--muted); font-size: .92rem; }
.warning-notice-box {
  border-left: 4px solid var(--gold);
  padding: 12px 16px;
  background: rgba(184, 147, 50, 0.08);
  color: var(--ink);
  margin: 14px 0 20px;
  font-size: 0.94rem;
  line-height: 1.6;
  border-radius: 0 6px 6px 0;
  word-break: keep-all;
}
.warning-notice-box strong {
  color: #92701e;
  font-weight: 800;
}

.content-page {
  max-width: 940px;
  margin: 0 auto;
  padding: 28px 18px 64px;
}
.back-link {
  color: var(--teal);
  font-weight: 900;
  text-decoration: none;
}
/* Detailed Content Grid Redesign */
.detail-cards-container {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}
.detail-item-card {
  padding: 20px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}
.detail-item-card dt {
  font-weight: 800;
  color: var(--teal);
  font-size: 1rem;
  margin-bottom: 8px;
}
.detail-item-card dd {
  margin: 0;
  line-height: 1.7;
  font-size: 1rem;
  color: var(--ink);
  word-break: keep-all;
}
.detail-item-card dd a {
  color: var(--teal);
  font-weight: 900;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

/* Highlighted Price Card styling */
.detail-item-card.highlight-price {
  padding: 22px;
  border: 1px solid var(--teal);
  background: var(--teal-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.detail-item-card.highlight-price dt {
  font-size: 1.1rem;
  margin: 0;
}
.detail-item-card.highlight-price dd {
  font-size: 1.42rem;
  font-weight: 900;
  color: var(--teal);
}

/* Caution Card warning style */
.detail-item-card.warning-caution {
  border-color: var(--rose);
  background: #fff4f5;
}
.detail-item-card.warning-caution dt {
  color: var(--rose);
}
.detail-item-card.warning-caution dd {
  font-size: 0.95rem;
  color: #692a33;
}

/* Recommend target card */
.detail-item-card.recommend-target {
  border-color: rgba(184, 147, 50, 0.3);
  background: #fffdf8;
}
.detail-item-card.recommend-target dt {
  color: var(--gold);
}

@media (max-width: 1120px) {
  .gateway-page {
    height: auto;
    overflow: auto;
  }
  .gateway-page .app-shell {
    height: auto;
  }
  .premium-hero {
    min-height: 100dvh;
    padding: 40px 20px;
  }
  .story-grid, .doctor-grid, .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .patient-grid { grid-template-columns: 1fr; }
  .form-panel { position: static; }
  .result-panel { min-height: 0; }
  .package-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { overflow-x: hidden; }
  .gateway-page {
    height: auto;
    overflow: auto;
  }
  .gateway-page .app-shell {
    height: auto;
  }
  .site-nav { position: static; min-height: 62px; padding: 0 12px; gap: 8px; }
  .brand-wrap { gap: 6px; }
  .hospital-home-link { font-size: 0.7rem; padding: 2px 6px; min-height: 22px; }
  .brand-text-link strong { display: none; }
  .brand-logo-link img { width: 36px; height: 34px; }
  .site-nav nav { gap: 4px; }
  .site-nav nav a { padding: 0 8px; font-size: .82rem; min-height: 34px; }
  .premium-hero { min-height: 100dvh; padding: 28px 16px; }
  .home-gateway { padding: 12px 10px; }
  .hero-logo-card { padding: 14px 20px; margin-bottom: 18px; }
  .hero-logo-card img { width: 118px; }
  h1 { font-size: 1.85rem; }
  .home-gateway h1 { font-size: 1.85rem; line-height: 1.35; text-align: center; }
  .hero-statement { font-size: 0.94rem; }
  .home-gateway .hero-statement { font-size: 0.94rem; line-height: 1.5; margin-top: 12px; text-align: center; }
  .hero-lead { font-size: .88rem; line-height: 1.5; }
  .home-gateway .hero-lead { font-size: .86rem; line-height: 1.45; margin-top: 10px; text-align: center; }
  .hero-actions { margin-top: 18px; }
  .gateway-actions { margin-top: 18px; gap: 10px; width: 100%; }
  .gateway-cta { min-height: 46px; font-size: 0.92rem; }
  .hero-trust-strip { margin-top: 24px; }
  .hero-trust-strip div { min-height: 72px; padding: 10px 12px; }
  .hero-trust-strip strong { font-size: 1.45rem; }
  .hero-trust-strip span { font-size: .84rem; }
  .hero-trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-wrap { width: min(100% - 24px, 1180px); padding: 48px 0; }
  .reservation-shell { width: min(100% - 28px, 1180px); padding-top: 30px; }
  .reservation-head h1 { font-size: 2rem; line-height: 1.08; }
  .patient-grid { width: 100%; }
  .form-panel, .result-panel { min-width: 0; padding: 16px; }
  .story-grid, .doctor-grid, .library-grid, .package-row, .flow-start-grid { grid-template-columns: 1fr; }
  .calendar-weekdays, .large-calendar { gap: 5px; }
  .calendar-day { min-height: 72px; padding: 7px 4px; }
  .calendar-pad { min-height: 72px; }
  .calendar-day strong { font-size: 1rem; }
  .calendar-day span { font-size: .72rem; }
  .selected-date-card { grid-template-columns: 1fr; }
  .selected-date-card button { grid-row: auto; }
  .field-grid, .option-toolbar, .option-grid, .profile-split { grid-template-columns: 1fr; }
  .composition-section, .selected-option-list, .selected-preset-meta { grid-template-columns: 1fr; }
  .step-actions { position: static; background: transparent; padding: 10px 0 0; }
  .detail-list div { grid-template-columns: 1fr; gap: 4px; }
}

/* ── 푸터 법적 고지 ────────────────────────────────────────────── */
.footer-legal {
  margin: 14px 0 0;
  font-size: 0.86rem;
}
.footer-legal a {
  color: inherit;
  opacity: 0.85;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-legal a:hover { opacity: 1; }

/* ── 개인정보처리방침 ──────────────────────────────────────────── */
.policy-page { max-width: 820px; }
.policy-section {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.policy-section h2 {
  font-size: 1.24rem;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 14px;
  word-break: keep-all;
  text-wrap: balance;
}
.policy-section p {
  margin: 0 0 12px;
  line-height: 1.85;
  color: var(--muted);
  word-break: keep-all;
  text-wrap: pretty;
}
.policy-section ul {
  margin: 0 0 12px;
  padding-left: 20px;
  line-height: 1.85;
  color: var(--muted);
}
.policy-section li {
  margin-bottom: 8px;
  word-break: keep-all;
  text-wrap: pretty;
}
.policy-section strong { color: var(--ink); font-weight: 700; }
.policy-section a { color: var(--brand, #0e5c64); text-underline-offset: 3px; }

/* ── 404 ───────────────────────────────────────────────────────── */
.error-page {
  max-width: 640px;
  text-align: center;
  padding-top: 64px;
  padding-bottom: 80px;
}
.error-page .eyebrow {
  font-size: 3rem;
  font-weight: 900;
  color: var(--gold, #c89332);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 32px 0 28px;
}
.landing-cta.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.error-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.error-nav a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}
.error-nav a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
