/* 송도키즈 소아청소년과의원
   강조색은 병원 로고(분홍 #FA2B9B, 민트 #3EC9AF)에서 가져왔다.
   배경은 짙은 청록 남색(첫 화면·마지막 안내)과 아이보리 바탕,
   모래 베이지·세이지 그린 구역으로 차분하게 정리했다.
   글자로 쓰는 색은 모두 바탕과 4.5:1 이상이 되도록 골랐다.
   분홍 #FA2B9B와 민트 #3EC9AF는 글자가 아닌 꾸밈에만 쓴다. */

@font-face {
  font-family: "Cafe24 Ssurround";
  src: url("https://cdn.jsdelivr.net/gh/projectnoonnu/noonfonts_2105_2@1.0/Cafe24Ssurround.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --pink: #fa2b9b;
  --pink-deep: #cf0f79;
  --pink-ink: #a80b62;
  --mint: #3ec9af;
  --mint-deep: #0a7263;
  --mint-ink: #075a4e;
  --caramel: #d4a574;
  --caramel-deep: #7a5026;
  --caramel-soft: #ffd9a8;
  --deep: #0f2633;
  --deep-2: #1b3a4b;
  --deep-3: #2a5a6b;
  --ink: #1b3a4b;
  --ink-2: #4a5c64;
  --paper: #fefcf9;
  --sand: #f3e8d6;
  --sand-soft: #f8f1e6;
  --sage: #edf2ee;
  --sage-deep: #dde8e1;
  --line: #e7dfd2;
  --line-2: #d2c7b5;
  --field: #6f8188;
  --error: #b3261e;
  --on-dark: rgba(255, 255, 255, 0.86);
  --on-dark-2: rgba(255, 255, 255, 0.74);

  --focus: var(--mint-deep);

  --font-body: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  --font-display: "Cafe24 Ssurround", "Pretendard Variable", Pretendard,
    "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;

  --wrap: 1120px;
  --gutter: clamp(20px, 5vw, 40px);
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 10px;
  --topbar-h: 40px;
  --header-h: 68px;
  --dock-h: 0px;
  --shadow-1: 0 1px 2px rgba(15, 38, 51, 0.06), 0 8px 24px -12px rgba(15, 38, 51, 0.18);
  --shadow-2: 0 2px 4px rgba(15, 38, 51, 0.08), 0 20px 40px -18px rgba(15, 38, 51, 0.32);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-padding-top: calc(var(--header-h) + 20px);
  scroll-padding-bottom: calc(var(--dock-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3,
h4 {
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

main:focus {
  outline: none;
}

.wrap {
  width: min(100% - var(--gutter) * 2, var(--wrap));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

html:not(.js) .js-only {
  display: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-sm);
  font-weight: 700;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  outline-color: var(--caramel-soft);
}

/* 짙은 바탕에서는 초점 테두리를 밝은 색으로 바꾼다 */
.topbar,
.hero,
.band,
.sim-form,
.closing,
.site-footer,
.page-sim .page-head,
.teaser {
  --focus: var(--caramel-soft);
}

/* 본문 속 링크 */
.prose p a:not(.btn):not(.text-link),
.fine a,
.note a,
.facts a,
.notfound p a {
  color: var(--mint-ink);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--mint-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  transition: text-decoration-color 160ms ease;
}

.text-link svg {
  flex: none;
  width: 18px;
  height: 18px;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) {
  .text-link:hover {
    text-decoration-color: currentColor;
  }
  .text-link:hover svg {
    transform: translateX(3px);
  }
}

/* ───── 버튼 ───── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, border-color 160ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.btn-lg {
  min-height: 56px;
  padding: 0 28px;
  font-size: 1.125rem;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background: var(--pink-deep);
  color: #fff;
}

.btn-mint {
  background: var(--mint-deep);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  border-color: var(--ink);
  color: var(--ink);
}

.btn-line {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.72);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--ink);
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--pink-ink);
  }
  .btn-mint:hover {
    background: var(--mint-ink);
  }
  .btn-ghost:hover {
    background: var(--sage);
  }
  .btn-line:hover {
    background: rgba(255, 255, 255, 0.12);
  }
  .btn-light:hover {
    background: var(--sand-soft);
  }
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ───── 진료 상태 ───── */

.status {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  line-height: 1.4;
}

.status-dot {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #8fa3a0;
}

[data-state="open"] .status-dot {
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(62, 201, 175, 0.28);
}

[data-state="lunch"] .status-dot {
  background: #e0a400;
  box-shadow: 0 0 0 4px rgba(224, 164, 0, 0.28);
}

[data-state="closed"] .status-dot {
  background: var(--pink);
}

.hours > div {
  display: grid;
  grid-template-columns: 5.2em 1fr;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.hours > div:last-child {
  border-bottom: 0;
}

.hours dt {
  font-weight: 700;
}

.hours dd {
  font-variant-numeric: tabular-nums;
}

.hours-note {
  display: block;
  font-size: 0.9375em;
}

/* ───── 맨 위 띠와 머리글 ───── */

.topbar {
  background: var(--deep);
  color: var(--on-dark);
  font-size: 0.9375rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: var(--topbar-h);
}

.topbar-status {
  font-weight: 600;
}

.topbar-out {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: var(--topbar-h);
  color: var(--caramel-soft);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.topbar-out svg,
.nav-extra svg,
.footer-base svg {
  flex: none;
  width: 15px;
  height: 15px;
}

@media (hover: hover) {
  .topbar-out:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(254, 252, 249, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  flex: none;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
}

.brand-name {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  line-height: 1.15;
}

.brand-name strong {
  font-size: 1.1875rem;
  font-weight: 400;
}

.brand-name span {
  font-size: 0.875rem;
  color: var(--ink-2);
}

.site-nav ul {
  display: flex;
  gap: 2px;
}

.site-nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 160ms ease;
}

.site-nav a[aria-current] {
  font-weight: 800;
}

.site-nav a[aria-current]::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 3px;
  border-radius: 2px;
  background: var(--mint-deep);
}

@media (hover: hover) {
  .site-nav a:hover {
    background: var(--sage);
  }
}

.nav-extra {
  display: none;
}

.header-call {
  min-height: 44px;
  padding: 0 18px;
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 961px) and (max-width: 1100px) {
  .header-inner {
    gap: 10px;
  }
  .site-nav a {
    padding: 0 9px;
    font-size: 0.9375rem;
  }
  .site-nav a[aria-current]::after {
    left: 9px;
    right: 9px;
  }
  .header-call {
    padding: 0 14px;
  }
  .header-call svg {
    display: none;
  }
}

@media (max-width: 960px) {
  :root {
    --header-h: 62px;
    --dock-h: 72px;
  }
  .topbar-out {
    display: none;
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 0 12px;
  }
  .header-call {
    display: none;
  }
  .js .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    flex: 1 1 100%;
    order: 3;
    padding-bottom: 14px;
  }
  .js .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    max-height: calc(100vh - var(--header-h) - var(--dock-h));
    overflow-y: auto;
    padding: 6px var(--gutter) 18px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(15, 38, 51, 0.4);
  }
  .js .site-nav.is-open {
    display: block;
  }
  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }
  .site-nav a {
    min-height: 54px;
    padding: 0 6px;
    border-radius: 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.125rem;
  }
  .site-nav a[aria-current]::after {
    left: -8px;
    right: auto;
    top: 14px;
    bottom: 14px;
    width: 4px;
    height: auto;
  }
  .site-nav a[aria-current] {
    padding-left: 10px;
  }
  .nav-extra {
    display: block;
  }
  .nav-extra a {
    color: var(--caramel-deep);
    border-bottom: 0;
  }
}

/* ───── 첫 화면 ───── */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(60% 70% at 88% 18%, rgba(62, 201, 175, 0.16), transparent 70%),
    linear-gradient(170deg, var(--deep) 0%, var(--deep-2) 48%, var(--deep-3) 100%);
  color: #fff;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: 40px;
  padding-block: clamp(40px, 6vw, 80px) clamp(112px, 12vw, 152px);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--caramel-soft);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.hero-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.hero h1 {
  font-size: clamp(2.125rem, 5.4vw, 3.75rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.hero h1 .line {
  display: block;
}

.hero .lead {
  max-width: 29em;
  margin-top: 22px;
  color: var(--on-dark);
  font-size: clamp(1.0625rem, 1.5vw, 1.1875rem);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  color: #fff;
  font-weight: 600;
}

.hero-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-facts li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230f2633' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.hero-art {
  position: relative;
  min-height: 560px;
}

/* 열기구 풍선 모양을 닮은 아치 사진틀 */
.hero-photo {
  position: absolute;
  right: 0;
  top: 0;
  z-index: 1;
  width: min(72%, 350px);
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 6px solid rgba(255, 255, 255, 0.92);
  border-radius: 999px 999px 32px 32px;
  background: var(--sage-deep);
  box-shadow: 0 28px 60px -24px rgba(0, 0, 0, 0.6);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 60%;
}

/* 병원 로고(글자는 흰색). 짙은 바탕 위에 바로 놓는다 */
.hero-logo {
  position: absolute;
  left: 0;
  top: 56px;
  z-index: 2;
  width: min(25%, 122px);
  height: auto;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.today {
  --focus: var(--mint-deep);
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: min(100%, 340px);
  padding: 20px 24px 12px;
  background: #fff;
  border-radius: var(--r-lg);
  color: var(--ink);
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.55);
}

.today-status {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3125rem;
  line-height: 1.35;
}

.today-status .status-dot {
  width: 13px;
  height: 13px;
}

.today-detail {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
}

.today .hours {
  margin-top: 12px;
  border-top: 1px dashed var(--line-2);
  font-size: 1rem;
}

.today .hours > div {
  padding: 8px 0;
  border-bottom: 0;
}

.today .hours > div:first-child {
  padding-top: 12px;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-block: 32px 96px;
  }
  /* 전화·길찾기는 화면 아래 고정 바에 있으므로 첫 화면에서는 진료 상태를 먼저 보여 준다 */
  .hero-cta {
    display: none;
  }
  .hero-kicker {
    margin-bottom: 12px;
  }
  /* 첫 줄 "세 아이 아빠의 마음으로"가 한 줄에 들어가는 크기 */
  .hero h1 {
    font-size: clamp(1.5rem, 7.6vw, 2.75rem);
  }
  .hero .lead {
    margin-top: 16px;
  }
  .hero-facts {
    gap: 6px 18px;
    margin-top: 18px;
  }
  .hero-art {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
  }
  .hero-photo {
    position: relative;
    order: 2;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-width: 5px;
    border-radius: var(--r-lg);
  }
  /* 좁은 화면에서는 사진 아래쪽을 어둡게 깔고 그 위에 로고를 올린다 */
  .hero-photo::after {
    content: "";
    position: absolute;
    inset: 35% 0 0;
    background: linear-gradient(to bottom, rgba(15, 38, 51, 0), rgba(15, 38, 51, 0.88));
  }
  .hero-logo {
    left: auto;
    right: 18px;
    top: auto;
    bottom: 16px;
    width: 112px;
  }
  .today {
    position: relative;
    width: 100%;
  }
}

/* ───── 자주 찾는 안내 ───── */

.quick {
  position: relative;
  z-index: 3;
  margin-top: -64px;
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.quick a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 14px;
  align-items: center;
  height: 100%;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease, border-color 200ms ease;
}

.quick-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--sage);
  color: var(--mint-ink);
}

.quick-icon svg {
  width: 24px;
  height: 24px;
}

.quick strong {
  align-self: end;
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.quick a > span:last-child {
  align-self: start;
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.45;
}

@media (hover: hover) {
  .quick a:hover {
    border-color: var(--mint-deep);
    box-shadow: var(--shadow-2);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .quick a:hover,
  .clinic-card:hover {
    transform: translateY(-3px);
  }
}

@media (max-width: 1020px) {
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .quick {
    margin-top: -72px;
  }
  .quick-grid {
    gap: 10px;
  }
  .quick a {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 16px;
  }
  .quick-icon {
    grid-row: auto;
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
  }
  .quick strong {
    font-size: 1rem;
  }
  .quick a > span:last-child {
    font-size: 0.9375rem;
  }
}

/* ───── 공통 구역 ───── */

.section {
  padding-block: clamp(60px, 8vw, 104px);
}

.section-tight {
  padding-block: clamp(44px, 6vw, 72px);
}

.section-sage {
  background: var(--sage);
}

.section-sand {
  background: var(--sand-soft);
}

.section-head {
  max-width: 40em;
  margin-bottom: clamp(26px, 3.6vw, 44px);
}

.section-head h2,
.comfort-copy h2,
.greeting-band h2,
.greeting-grid h2,
.hours-grid h2 {
  font-size: clamp(1.625rem, 3.4vw, 2.375rem);
}

.section-head p {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 1.125rem;
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: none;
}

.section-head-row > div {
  max-width: 40em;
}

.section-head-row .text-link {
  flex: none;
}

@media (max-width: 720px) {
  .section-head-row {
    flex-direction: column;
    align-items: start;
  }
}

.fine {
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.note {
  max-width: 46em;
  padding: 16px 20px;
  background: var(--sand);
  border-radius: var(--r-md);
  font-size: 1rem;
}

.duo {
  flex: none;
  width: 48px;
  height: 48px;
}

/* ───── 클리닉 카드 (첫 화면) ───── */

.clinic-cards {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}

.clinic-cards li {
  grid-column: span 3;
}

.clinic-cards li:nth-child(n + 5) {
  grid-column: span 4;
}

.clinic-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 24px 20px 16px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: transform 200ms var(--ease-out), box-shadow 200ms ease, border-color 200ms ease;
}

.clinic-card h3 {
  margin-top: 18px;
  font-size: 1.1875rem;
}

.clinic-card p {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-top: auto;
  padding-top: 10px;
  color: var(--mint-ink);
  font-weight: 700;
  font-size: 0.9375rem;
}

.more svg {
  width: 17px;
  height: 17px;
  transition: transform 200ms var(--ease-out);
}

@media (hover: hover) {
  .clinic-card:hover {
    border-color: var(--mint-deep);
    box-shadow: var(--shadow-2);
  }
  .clinic-card:hover .more svg {
    transform: translateX(3px);
  }
}

@media (max-width: 1080px) {
  .clinic-cards {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .clinic-cards li {
    grid-column: span 2;
  }
  .clinic-cards li:nth-child(n + 4) {
    grid-column: span 3;
  }
}

@media (max-width: 680px) {
  .clinic-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .clinic-cards li,
  .clinic-cards li:nth-child(n + 4) {
    grid-column: auto;
  }
  .clinic-card {
    display: grid;
    grid-template-columns: 48px 1fr;
    column-gap: 16px;
    padding: 18px 18px 8px;
    border-radius: var(--r-md);
  }
  .clinic-card .duo {
    grid-row: span 3;
  }
  .clinic-card h3 {
    margin-top: 0;
  }
  .clinic-card p {
    margin-top: 4px;
  }
  .more {
    padding-top: 2px;
  }
}

/* ───── 덜 힘든 검사 ───── */

.comfort-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.comfort-copy p {
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 1.125rem;
}

.comfort-copy .text-link {
  margin-top: 14px;
}

.comforts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.comforts li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: #fff;
  border-radius: var(--r-md);
}

.comforts h3,
.comforts h4 {
  font-size: 1.0625rem;
}

.comforts p {
  margin-top: 3px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.55;
}

@media (max-width: 860px) {
  .comfort-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .comforts {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .comforts li {
    padding: 16px 18px;
  }
}

/* ───── 둘러보기 ───── */

.tour {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  aspect-ratio: 1120 / 640;
}

.tour figure,
.gallery figure {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sage-deep);
}

.tour img,
.gallery img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tour figcaption,
.gallery figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 6px 14px;
  background: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9375rem;
  line-height: 1.4;
  box-shadow: 0 6px 16px -8px rgba(15, 38, 51, 0.5);
}

.tour-desk {
  grid-row: 1 / 3;
}

.tour-outside {
  grid-column: 2 / 4;
}

.tour-outside img {
  object-position: 50% 40%;
}

.tour-entrance img {
  object-position: 50% 28%;
}

.tour-sofa img {
  object-position: 50% 62%;
}

@media (max-width: 900px) {
  .tour {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
    gap: 10px;
    aspect-ratio: auto;
  }
  .tour-outside {
    order: -1;
    grid-column: 1 / 3;
    aspect-ratio: 16 / 10;
  }
  .tour-desk {
    grid-row: auto;
    grid-column: 1 / 3;
    aspect-ratio: 5 / 5;
  }
  .tour-entrance,
  .tour-sofa {
    aspect-ratio: 3 / 4;
  }
  .tour figcaption,
  .gallery figcaption {
    left: 10px;
    bottom: 10px;
    padding: 5px 12px;
    font-size: 0.9375rem;
  }
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gallery figure {
  aspect-ratio: 3 / 4;
}

.gallery .g-wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

.gallery .g-wide img {
  object-position: 50% 42%;
}

@media (max-width: 820px) {
  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .gallery .g-wide {
    aspect-ratio: 16 / 10;
  }
}

/* ───── 인사말 ───── */

.greeting-band {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.quote {
  margin-top: 22px;
  padding-left: clamp(18px, 3vw, 28px);
  border-left: 4px solid var(--pink-deep);
}

.quote-big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  line-height: 1.35;
}

.quote p + p {
  max-width: 30em;
  margin-top: 14px;
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
}

.quote footer,
.letter footer {
  margin-top: 18px;
  color: var(--ink-2);
  font-weight: 700;
}

.doctor-brief {
  padding: 26px 28px 18px;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.doctor-brief h3 {
  font-size: 1.5rem;
}

.doctor-brief h3 small,
.doctor h3 small {
  color: var(--mint-ink);
  font-size: 1rem;
  font-weight: 700;
}

.doctor-brief ul {
  margin-top: 12px;
}

.doctor-brief li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.doctor-brief .text-link {
  margin-top: 6px;
}

.greeting-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.letter {
  position: relative;
  margin-top: 26px;
  padding: clamp(26px, 4.5vw, 48px);
  background: #fff;
  border: 1px solid var(--line-2);
  border-top: 5px solid var(--pink-deep);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.letter p {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  line-height: 1.8;
}

.letter p + p {
  margin-top: 1em;
}

.letter .big {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  line-height: 1.35;
}

.letter footer {
  text-align: right;
}

.doctor {
  padding: 28px 30px 12px;
  background: var(--sand-soft);
  border-radius: var(--r-lg);
}

@media (min-width: 821px) {
  .doctor {
    position: sticky;
    top: calc(var(--header-h) + 24px);
    margin-top: 76px;
  }
}

.doctor h3 {
  font-size: 1.75rem;
  font-family: var(--font-display);
  font-weight: 400;
}

.doctor h3 small {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-body);
}

.doctor ul {
  margin-top: 16px;
  border-top: 2px solid var(--ink);
}

.doctor li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-2);
}

.doctor li:last-child {
  border-bottom: 0;
}

@media (max-width: 820px) {
  .greeting-band,
  .greeting-grid {
    grid-template-columns: 1fr;
  }
}

/* ───── 진료 원칙 세 가지 ───── */

.promises {
  counter-reset: promise;
  display: grid;
  gap: 16px;
}

.promises > li {
  counter-increment: promise;
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  padding-left: clamp(72px, 9vw, 112px);
  background: #fff;
  border-radius: var(--r-lg);
}

.promises > li::before {
  content: counter(promise);
  position: absolute;
  left: clamp(20px, 3.4vw, 40px);
  top: clamp(20px, 3.6vw, 36px);
  display: grid;
  place-items: center;
  width: clamp(38px, 4.4vw, 48px);
  height: clamp(38px, 4.4vw, 48px);
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.promise-text h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
}

.promise-text p {
  max-width: 42em;
  margin-top: 10px;
  color: var(--ink-2);
}

.promises .comforts {
  margin-top: 22px;
}

.promises .comforts li {
  background: var(--sage);
}

.promises .text-link {
  margin-top: 10px;
}

@media (max-width: 560px) {
  .promises > li {
    padding: 72px 20px 22px;
  }
}

/* ───── 키 예측 안내 띠 ───── */

.band {
  background: linear-gradient(135deg, var(--deep) 0%, var(--deep-3) 100%);
  color: #fff;
}

.band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 48px;
  padding-block: clamp(40px, 5.5vw, 64px);
}

.band h2 {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
}

.band p {
  max-width: 34em;
  margin-top: 10px;
  color: var(--on-dark);
}

.band .btn {
  flex: none;
}

@media (max-width: 820px) {
  .band-inner {
    flex-direction: column;
    align-items: start;
  }
}

/* ───── 오시기 전에 ───── */

.visit-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: stretch;
}

.visit-hours,
.visit-place {
  padding: clamp(24px, 3.4vw, 36px);
  border-radius: var(--r-lg);
}

.visit-hours {
  background: var(--sand-soft);
}

.visit-place {
  border: 1px solid var(--line-2);
  background: #fff;
}

.visit-grid h3 {
  margin-bottom: 14px;
  color: var(--ink-2);
  font-size: 1rem;
}

.visit-hours .hours {
  margin-top: 10px;
}

.visit-hours .hours > div {
  border-bottom-color: var(--line-2);
}

.visit-hours .fine {
  margin-top: 12px;
}

.visit-hours .status {
  font-size: 1.25rem;
  font-weight: 800;
}

.addr {
  font-weight: 800;
  font-size: clamp(1.1875rem, 2.2vw, 1.4375rem);
  line-height: 1.5;
}

.visit-place .btn-row,
.loc-info .btn-row {
  margin-top: 18px;
}

.facts {
  margin-top: 22px;
  border-top: 1px solid var(--line);
}

.facts li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.facts li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.facts svg {
  flex: none;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  color: var(--mint-ink);
}

.facts strong {
  display: block;
  line-height: 1.4;
}

.facts span {
  color: var(--ink-2);
}

@media (max-width: 820px) {
  .visit-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .btn-row .btn {
    flex: 1 1 100%;
  }
  .visit-hours .status,
  .hours-grid .status {
    align-items: flex-start;
    font-size: 1.125rem;
  }
  .visit-hours .status-dot,
  .hours-grid .status-dot {
    margin-top: 0.45em;
  }
}

/* ───── 하위 페이지 머리 ───── */

.page-head {
  padding-block: clamp(28px, 4vw, 44px) clamp(32px, 5vw, 56px);
  background: var(--sand-soft);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(1.875rem, 4.4vw, 3rem);
}

.page-lead {
  max-width: 38em;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: clamp(1.0625rem, 1.6vw, 1.1875rem);
}

.crumbs {
  margin-bottom: 14px;
  font-size: 0.9375rem;
}

.crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}

.crumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
}

.crumbs li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  text-underline-offset: 3px;
}

.crumbs [aria-current] {
  color: var(--ink);
  font-weight: 700;
}

.page-sim .page-head {
  background: linear-gradient(170deg, var(--deep) 0%, var(--deep-2) 100%);
  border-bottom: 0;
  color: #fff;
}

.page-sim .page-lead,
.page-sim .crumbs li {
  color: var(--on-dark);
}

.page-sim .crumbs [aria-current] {
  color: #fff;
}

/* 페이지 안 이동 */
.jump {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-block: 14px;
}

.jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--field);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease;
}

@media (hover: hover) {
  .jump a:hover {
    background: var(--sage);
    border-color: var(--mint-deep);
  }
}

/* ───── 진료 안내: 목록 ───── */

.clinic-rows {
  display: grid;
  gap: 14px;
}

.clinic-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: center;
  padding: clamp(20px, 3vw, 30px) clamp(20px, 3.2vw, 34px);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.clinic-row .duo {
  width: 56px;
  height: 56px;
}

.clinic-row h3 {
  font-size: clamp(1.1875rem, 2.2vw, 1.4375rem);
}

.row-sub {
  display: inline-block;
  margin-left: 6px;
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 600;
}

.clinic-row p {
  max-width: 44em;
  margin-top: 6px;
  color: var(--ink-2);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.tags li {
  padding: 3px 12px;
  background: var(--sage);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.row-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--mint-ink);
  transition: background-color 200ms ease, color 200ms ease, transform 200ms var(--ease-out);
}

.row-arrow svg {
  width: 20px;
  height: 20px;
}

@media (hover: hover) {
  .clinic-row:hover {
    border-color: var(--mint-deep);
    box-shadow: var(--shadow-2);
  }
  .clinic-row:hover .row-arrow {
    background: var(--mint-deep);
    color: #fff;
  }
}

@media (max-width: 620px) {
  .clinic-row {
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: start;
  }
  .clinic-row .duo {
    width: 44px;
    height: 44px;
  }
  .row-arrow {
    display: none;
  }
}

.also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 28px;
  padding: clamp(20px, 3vw, 28px) clamp(20px, 3.2vw, 34px);
  background: var(--sand-soft);
  border-radius: var(--r-lg);
}

.also-item {
  display: flex;
  flex: 1 1 380px;
  gap: 16px;
  align-items: flex-start;
}

.also-item svg {
  flex: none;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  color: var(--mint-ink);
}

.also-item h3 {
  font-size: 1.125rem;
}

.also-item p {
  margin-top: 4px;
  color: var(--ink-2);
}

.also-links {
  display: grid;
}

/* ───── 진료 안내: 상세 ───── */

.with-side {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  padding-block: clamp(36px, 5vw, 64px) clamp(56px, 8vw, 96px);
}

.prose > * + * {
  margin-top: 16px;
}

.prose > h2 {
  margin-top: clamp(40px, 5vw, 56px);
  font-size: clamp(1.4375rem, 2.8vw, 1.75rem);
}

.prose > h2 + * {
  margin-top: 16px;
}

.intro {
  font-size: clamp(1.0625rem, 1.7vw, 1.1875rem);
}

.side {
  display: grid;
  gap: 16px;
}

@media (min-width: 961px) {
  .side {
    position: sticky;
    top: calc(var(--header-h) + 24px);
  }
}

.side-card,
.side-nav {
  padding: 24px;
  border-radius: var(--r-lg);
}

.side-card {
  display: grid;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: var(--shadow-1);
}

.side h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.side-card .status {
  margin-bottom: 6px;
  color: var(--ink-2);
  font-size: 1rem;
  font-weight: 600;
}

.side-card .btn {
  padding-inline: 12px;
  font-size: 1rem;
}

.hours-side {
  margin-top: 6px;
  font-size: 0.9375rem;
}

.hours-side > div {
  grid-template-columns: 4.6em 1fr;
  padding: 8px 0;
}

.side-nav {
  background: var(--sage);
}

.side-nav ul {
  margin-top: 8px;
}

.side-nav a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  margin-inline: -12px;
  border-radius: var(--r-sm);
  font-weight: 600;
  text-decoration: none;
}

.side-nav a[aria-current] {
  background: #fff;
  font-weight: 800;
  box-shadow: inset 4px 0 0 var(--mint-deep);
}

@media (hover: hover) {
  .side-nav a:not([aria-current]):hover {
    background: var(--sage-deep);
  }
}

@media (max-width: 960px) {
  .with-side {
    grid-template-columns: 1fr;
  }
  .side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 640px) {
  .side {
    grid-template-columns: 1fr;
  }
}

.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.box {
  padding: 22px 24px;
  background: var(--sand-soft);
  border-radius: var(--r-md);
}

.box-sage {
  background: var(--sage);
}

.box h3 {
  font-size: 1.1875rem;
}

.box p {
  margin-top: 8px;
}

.box .dots {
  margin-top: 14px;
}

.dots li {
  position: relative;
  padding-left: 18px;
}

.dots li + li {
  margin-top: 6px;
}

.dots li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.66em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mint-deep);
}

.callout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 20px 22px;
  background: #fff6e8;
  border: 1px solid #e9cfa6;
  border-radius: var(--r-md);
}

.callout svg {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: 2px;
  color: var(--caramel-deep);
}

.callout-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.125rem;
  letter-spacing: -0.01em;
}

.callout p {
  margin-top: 4px;
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.mini-cards a {
  display: block;
  height: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: #fff;
  text-decoration: none;
  transition: border-color 160ms ease;
}

.mini-cards strong {
  display: block;
}

.mini-cards span {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

@media (hover: hover) {
  .mini-cards a:hover {
    border-color: var(--mint-deep);
  }
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.quick-facts-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.quick-facts li {
  padding: 18px 20px;
  background: var(--sage);
  border-radius: var(--r-md);
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.5;
}

.quick-facts strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.4375rem;
}

.steps {
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 58px;
}

.steps > li:last-child {
  padding-bottom: 0;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 2px solid var(--mint-deep);
  border-radius: 50%;
  background: #fff;
  font-weight: 800;
}

.steps > li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 40px;
  bottom: 4px;
  width: 2px;
  background: var(--line-2);
}

.steps h3 {
  font-size: 1.125rem;
}

.steps p {
  margin-top: 2px;
  color: var(--ink-2);
}

.timeline {
  counter-reset: tl;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.timeline > li {
  counter-increment: tl;
  padding: 22px 24px;
  background: var(--sand-soft);
  border-radius: var(--r-md);
}

.timeline > li:nth-child(2),
.timeline > li:nth-child(3) {
  background: var(--sage);
}

.timeline h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 1.1875rem;
}

.timeline h3::before {
  content: counter(tl);
  display: grid;
  place-items: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
}

.teaser {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
  padding: 22px 26px;
  background: linear-gradient(135deg, var(--deep-2), var(--deep-3));
  border-radius: var(--r-md);
  color: #fff;
  text-decoration: none;
}

.teaser-text > span {
  display: block;
  color: var(--on-dark);
}

.teaser strong {
  display: block;
  font-size: 1.1875rem;
  font-weight: 800;
}

.teaser > svg {
  flex: none;
  width: 26px;
  height: 26px;
  transition: transform 200ms var(--ease-out);
}

.teaser-light {
  --focus: var(--mint-deep);
  background: var(--sage);
  color: var(--ink);
}

.teaser-light .teaser-text > span {
  color: var(--ink-2);
}

@media (hover: hover) {
  .teaser:hover > svg {
    transform: translateX(4px);
  }
}

.device-figure {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 24px;
  padding: 20px 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: #fff;
}

.device-figure figcaption {
  color: var(--ink-2);
}

.device-figure strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 1.125rem;
}

@media (max-width: 720px) {
  .cols-2,
  .timeline,
  .mini-cards,
  .quick-facts,
  .quick-facts-3 {
    grid-template-columns: 1fr;
  }
  .device-figure {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    padding: 16px;
  }
}

/* ───── 표 ───── */

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1rem;
}

th,
td {
  padding: 13px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

thead th {
  background: var(--sage);
  font-weight: 700;
  white-space: nowrap;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

tbody th {
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .table-checkup thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .table-checkup tr {
    display: grid;
    grid-template-columns: 4.6em 1fr;
    gap: 2px 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  .table-checkup tbody tr:last-child {
    border-bottom: 0;
  }
  .table-checkup th,
  .table-checkup td {
    padding: 0;
    border: 0;
  }
  .table-checkup td:nth-child(2) {
    font-weight: 700;
  }
  .table-checkup td:nth-child(3) {
    grid-column: 2;
    color: var(--ink-2);
  }
}

/* ───── 검진 시기 계산기 ───── */

.calc {
  padding: clamp(20px, 3.5vw, 32px);
  background: #fff;
  border: 2px solid var(--mint-deep);
  border-radius: var(--r-lg);
}

.calc h2 {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.3125rem;
  letter-spacing: -0.01em;
}

.calc > p {
  margin-top: 4px;
  color: var(--ink-2);
  font-size: 1rem;
}

.calc > .fine {
  margin-top: 16px;
  font-size: 0.9375rem;
}

.calc-form {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 12px;
  margin-top: 18px;
}

.calc-form .btn {
  min-height: 52px;
  margin-top: calc(1.7em + 6px);
}

.field {
  display: grid;
  gap: 6px;
  flex: 1 1 200px;
}

.field label {
  font-weight: 700;
  font-size: 1rem;
}

.field input {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 2px solid var(--field);
  border-radius: var(--r-sm);
  background: #fff;
  font-size: 1.0625rem;
}

.field input[aria-invalid="true"] {
  border-color: var(--error);
  border-width: 3px;
}

.hint {
  color: var(--ink-2);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.error {
  display: flex;
  gap: 6px;
  color: var(--error);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
}

.error::before {
  content: "!";
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--error);
  color: #fff;
  font-size: 0.8125rem;
}

.error[hidden] {
  display: none;
}

.calc-out {
  margin-top: 20px;
}

.calc-out:empty {
  display: none;
}

.calc-msg {
  padding: 16px 20px;
  background: var(--sand);
  border-radius: var(--r-md);
  font-weight: 700;
}

.rounds {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.rounds li {
  display: grid;
  grid-template-columns: 5.2em 1fr auto;
  gap: 4px 14px;
  align-items: center;
  padding: 12px 16px;
  border-radius: var(--r-sm);
  background: var(--sage);
  font-size: 1rem;
}

.rounds .r-name {
  font-weight: 700;
}

.rounds .r-date {
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

.rounds .r-tag {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--ink-2);
}

.rounds li.is-now {
  background: var(--mint-deep);
  color: #fff;
}

.rounds li.is-now .r-date,
.rounds li.is-now .r-tag {
  color: #fff;
}

.rounds li.is-past {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}

@media (max-width: 520px) {
  .calc {
    padding: 20px 16px;
  }
  .calc-form .btn {
    flex: 1 1 100%;
    margin-top: 0;
  }
  .rounds li {
    grid-template-columns: 1fr auto;
    row-gap: 0;
    padding: 10px 14px;
  }
  .rounds .r-date {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

/* ───── 검사 장비 ───── */

.devices {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.device {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.device figure {
  display: grid;
  place-items: center;
  padding: 16px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.device figure img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
}

.device-icon {
  background: var(--sand-soft) !important;
}

.device-icon .duo {
  width: 72px;
  height: 72px;
}

.device-body {
  padding: 22px 24px 18px;
}

.device .use {
  color: var(--mint-ink);
  font-weight: 700;
  font-size: 0.9375rem;
}

.device h3 {
  margin-top: 2px;
  font-size: 1.25rem;
}

.device-body > p:not(.use) {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

.device .text-link {
  margin-top: 4px;
  font-size: 1rem;
}

.after-list {
  margin-top: 18px;
}

@media (max-width: 900px) {
  .devices {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .device {
    grid-template-columns: 104px minmax(0, 1fr);
  }
  .device figure {
    padding: 10px;
  }
  .device-icon .duo {
    width: 52px;
    height: 52px;
  }
  .device-body {
    padding: 16px 16px 12px;
  }
}

/* ───── 비급여 ───── */

/* 페이지 안 이동: 이 페이지에서는 밑줄 글자 링크로 쓴다 */
.jump-text ul {
  gap: 0 24px;
  padding-block: 8px;
}

.jump-text a {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

@media (hover: hover) {
  .jump-text a:hover {
    background: none;
    color: var(--mint-deep);
  }
}

.fees-intro {
  max-width: 46em;
  margin: 0 0 clamp(28px, 4vw, 40px);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

@media (min-width: 900px) {
  .fees-list {
    columns: 2;
    column-gap: 40px;
  }
}

.fees {
  break-inside: avoid;
  margin: 0 0 clamp(36px, 5vw, 52px);
}

.fees h3 {
  margin: 0 0 6px;
  font-size: 1.25rem;
}

.fees table {
  font-size: 0.9375rem;
}

.fees th,
.fees td {
  padding: 9px 14px;
  vertical-align: middle;
  border-bottom: 1px solid var(--line);
}

.fees tbody tr:last-child th,
.fees tbody tr:last-child td {
  border-bottom: 1px solid var(--line);
}

.fees thead th {
  background: none;
  border-bottom: 1px solid var(--ink);
  color: var(--ink-2);
  font-size: 0.875rem;
  font-weight: 500;
}

.fees thead th:last-child,
.fees td {
  text-align: right;
  white-space: nowrap;
}

.fees tbody th {
  font-weight: 500;
  white-space: normal;
}

.fees td {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.fees .fees-group th {
  padding: 20px 14px 6px;
  border-bottom: 1px solid var(--line-2);
  color: var(--mint-deep);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.fees thead + tbody .fees-group th {
  padding-top: 14px;
}

.fees-desc {
  display: block;
  margin-top: 2px;
  color: var(--ink-2);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1.5;
}

.fees-more {
  margin: 12px 0 0;
  padding: 0 14px;
  font-size: 0.875rem;
  line-height: 1.6;
}

.fees-more summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mint-deep);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.fees-more ul {
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
}

.fees-more li + li {
  margin-top: 6px;
}

.fees-more strong {
  margin-right: 6px;
  color: var(--ink);
  font-weight: 600;
}

.fees-notes {
  margin: 12px 0 0;
  padding: 0 14px;
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.6;
}

.fees-notes h4 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 0.875rem;
}

.fees-notes ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fees-notes li {
  position: relative;
  padding-left: 1.1em;
}

.fees-notes li + li {
  margin-top: 2px;
}

.fees-notes li::before {
  content: "※";
  position: absolute;
  left: 0;
}

.fees-end {
  margin: 0;
  padding: 18px 22px;
  background: var(--sand-soft);
  border-radius: var(--r-md);
  font-size: 0.9375rem;
}

.fees-end a {
  white-space: nowrap;
}

@media (max-width: 560px) {
  .fees th,
  .fees td {
    padding-inline: 4px;
  }
  .fees th + td {
    padding-left: 12px;
  }
  .fees .fees-group th {
    padding-inline: 4px;
  }
  .fees-notes,
  .fees-more {
    padding-inline: 4px;
  }
}

/* ───── 오시는 길 ───── */

.loc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.map {
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #ebf0ec;
}

.map svg {
  width: 100%;
  height: auto;
}

.map text {
  font-family: var(--font-body);
}

.loc-info h2 {
  margin-bottom: 8px;
  color: var(--ink-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
}

.copy-done {
  min-height: 1.6em;
  margin-top: 8px;
  color: var(--mint-ink);
  font-weight: 700;
  font-size: 0.9375rem;
}

.loc-info .facts {
  margin-top: 6px;
}

.hours-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}

.hours-grid .status {
  margin-top: 16px;
  font-size: 1.25rem;
  font-weight: 800;
}

.hours-grid .fine {
  margin-top: 8px;
}

.hours-grid .hours {
  padding: 8px clamp(18px, 3vw, 30px);
  background: #fff;
  border-radius: var(--r-lg);
  font-size: 1.125rem;
}

.hours-grid .hours > div {
  padding: 15px 0;
}

.hours-grid .hours-note {
  display: inline;
}

.car-steps {
  counter-reset: car;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.car-steps li {
  counter-increment: car;
}

.car-steps figure {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--sage-deep);
}

.car-steps img {
  width: 100%;
  aspect-ratio: 12 / 7;
  object-fit: cover;
}

.car-steps h3 {
  position: relative;
  min-height: 34px;
  margin-top: 16px;
  padding-left: 44px;
  font-size: 1.0625rem;
  line-height: 1.45;
}

.car-steps h3::before {
  content: counter(car);
  position: absolute;
  left: 0;
  top: -3px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--pink-deep);
  color: #fff;
}

.car-steps p {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .loc-grid,
  .hours-grid {
    grid-template-columns: 1fr;
  }
  .car-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .car-steps {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ───── 키 예측 시뮬레이터 ───── */

.sim {
  padding-block: clamp(28px, 4vw, 44px) clamp(64px, 9vw, 104px);
  background: linear-gradient(180deg, var(--deep-2) 0%, var(--deep-3) 100%);
  color: #fff;
}

.sim-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.sim-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(22px, 3vw, 32px);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--r-lg);
}

.sim-title {
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.seg,
.sim-child {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.seg legend,
.sim-child legend,
.sim-field label {
  padding: 0;
  font-weight: 700;
  font-size: 1.0625rem;
}

.seg-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-top: 10px;
  padding: 5px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
}

.seg-row label {
  position: relative;
  cursor: pointer;
}

.seg-row input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.seg-row span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 46px;
  border-radius: 999px;
  color: var(--on-dark);
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.seg-row input:checked + span {
  background: #fff;
  color: var(--ink);
}

/* 선택된 쪽은 색과 함께 체크 표시로도 알린다 */
.seg-row input:checked + span::before {
  content: "";
  width: 9px;
  height: 14px;
  margin-top: -4px;
  border-right: 3px solid var(--mint-deep);
  border-bottom: 3px solid var(--mint-deep);
  transform: rotate(45deg);
}

.seg-row input:focus-visible + span {
  outline: 3px solid var(--caramel-soft);
  outline-offset: 3px;
}

.sim-field-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sim-num {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  color: var(--on-dark);
}

.sim-num input {
  width: 4.2em;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  text-align: right;
  -moz-appearance: textfield;
  appearance: textfield;
}

.sim-num input::-webkit-outer-spin-button,
.sim-num input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.sim-num > span {
  flex: none;
  white-space: nowrap;
}

.sim-num:focus-within {
  outline: 3px solid var(--caramel-soft);
  outline-offset: 2px;
}

.sim-num input:focus-visible {
  outline: none;
}

.sim-range {
  width: 100%;
  height: 44px;
  margin: 4px 0 0;
  accent-color: var(--caramel);
  cursor: pointer;
}

.sim-msg {
  color: var(--caramel-soft);
  font-weight: 700;
}

.sim-msg:empty {
  display: none;
}

.sim-how {
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--on-dark-2);
  font-size: 0.9375rem;
}

.sim-child {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.sim-child legend {
  float: left;
  width: 100%;
}

.sim-child legend small {
  display: block;
  margin-top: 2px;
  color: var(--on-dark-2);
  font-weight: 400;
  font-size: 0.9375rem;
}

.sim-child-row {
  clear: both;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
}

.sim-mini label {
  display: block;
  margin-bottom: 6px;
  color: var(--on-dark);
  font-weight: 600;
  font-size: 0.9375rem;
}

.sim-mini .sim-num {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 50px;
}

.sim-mini .sim-num input {
  width: 100%;
  min-width: 0;
  font-size: 1.25rem;
}

.sim-mini .sim-num input::placeholder {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 400;
  font-size: 0.9375rem;
}

#sim-birth {
  width: 100%;
  min-height: 50px;
  padding: 6px 12px;
  background: rgba(0, 0, 0, 0.26);
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  color: #fff;
  color-scheme: dark;
}

.sim-child .sim-msg {
  margin-top: 10px;
}

.sim-result {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 8px 28px;
  align-items: center;
  padding: clamp(22px, 3vw, 34px);
  background: var(--paper);
  border-radius: var(--r-lg);
  color: var(--ink);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.6);
}

.sim-chart {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  align-items: end;
  height: 280px;
  margin-bottom: 36px;
  padding: 0 4px;
  border-bottom: 2px solid var(--line-2);
}

/* 막대가 자라는 칸: 값 라벨과 막대를 아래에서부터 쌓는다 */
.sim-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

.sim-val {
  margin-bottom: 6px;
  font-weight: 800;
  font-size: 1.0625rem;
  font-variant-numeric: tabular-nums;
}

.sim-bar {
  position: relative;
  width: min(100%, 64px);
  height: 50%;
  border-radius: 16px 16px 0 0;
  background: #9c7a4c;
}

@media (prefers-reduced-motion: no-preference) {
  .sim-bar {
    transition: height 420ms var(--ease-out);
  }
  .sim-col.is-child .sim-val {
    transition: bottom 420ms var(--ease-out);
  }
  .sim-band {
    transition: height 420ms var(--ease-out), bottom 420ms var(--ease-out);
  }
}

/* 통상 범위 띠는 아이 칸 전체 높이를 기준으로 놓는다 */
.sim-col.is-child .sim-bar {
  position: static;
  background: var(--pink-deep);
}

.sim-col.is-child .sim-val {
  position: absolute;
  left: 50%;
  margin: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  color: var(--pink-ink);
  font-size: 1.25rem;
}

.sim-who {
  position: absolute;
  bottom: -32px;
  font-weight: 700;
  font-size: 0.9375rem;
  white-space: nowrap;
}

.sim-band {
  position: absolute;
  left: 50%;
  width: min(100%, 84px);
  transform: translateX(-50%);
  border: 2px dashed var(--pink-deep);
  border-radius: 14px;
  background: rgba(207, 15, 121, 0.08);
  pointer-events: none;
}

.sim-label {
  color: var(--mint-ink);
  font-weight: 700;
}

.sim-big {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 2px;
  font-family: var(--font-display);
  line-height: 1.1;
}

.sim-big strong {
  font-size: clamp(3rem, 6vw, 4.25rem);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.sim-big span {
  color: var(--ink-2);
  font-size: 1.375rem;
}

.sim-rangeline {
  margin-top: 12px;
}

.sim-formula {
  display: inline-block;
  margin-top: 12px;
  padding: 5px 12px;
  background: var(--sage);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.sim-note,
.sim-cta,
.sim-growth {
  grid-column: 1 / -1;
}

.sim-note {
  margin-top: 14px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.sim-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.sim-growth {
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.sim-growth-empty {
  padding: 18px 20px;
  background: var(--sage);
  border-radius: var(--r-md);
  color: var(--ink-2);
}

.sim-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.sim-stats > div {
  padding: 16px 18px;
  background: var(--sand-soft);
  border-radius: var(--r-md);
}

.sim-stats > div:first-child {
  background: var(--sage);
}

.sim-stats dt {
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.9375rem;
}

.sim-stats dd {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
}

.sim-stats dd strong {
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.sim-stats dd.sub {
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 0.9375rem;
}

.sim-flag {
  margin-top: 12px;
  padding: 12px 16px;
  background: #fff6e8;
  border-left: 4px solid var(--caramel-deep);
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
}

.sim-curve {
  margin-top: 16px;
}

.sim-curve svg {
  width: 100%;
  height: auto;
}

.g-grid {
  stroke: var(--line);
  stroke-width: 1;
}

.g-tick {
  fill: var(--ink-2);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.g-band {
  fill: var(--sage-deep);
  stroke: #6f9483;
  stroke-width: 1.5;
}

.g-mid {
  fill: none;
  stroke: #5f8474;
  stroke-width: 2;
  stroke-dasharray: 2 6;
  stroke-linecap: round;
}

.g-child {
  fill: none;
  stroke: var(--pink-deep);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 9 7;
}

.g-dot {
  fill: var(--pink-deep);
  stroke: #fff;
  stroke-width: 3;
}

.g-end {
  fill: #fff;
  stroke: var(--pink-deep);
  stroke-width: 3;
}

.g-label {
  fill: var(--pink-ink);
  font-weight: 800;
  font-size: 15px;
}

.g-gene {
  fill: var(--caramel-deep);
}

.g-gene-range {
  stroke: var(--caramel-deep);
  stroke-width: 4;
  stroke-linecap: round;
  opacity: 0.6;
}

.sim-curve figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

.sim-curve .k {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.sim-curve .k::before {
  content: "";
  width: 18px;
  height: 10px;
  border: 1.5px solid #6f9483;
  border-radius: 3px;
  background: var(--sage-deep);
}

.sim-curve .k-mid::before {
  height: 0;
  border: 0;
  border-top: 2px dotted #5f8474;
  background: none;
}

.sim-curve .k-child::before {
  width: 10px;
  border: 0;
  border-radius: 50%;
  background: var(--pink-deep);
}

.sim-curve .k-gene::before {
  width: 9px;
  height: 9px;
  border: 0;
  border-radius: 2px;
  background: var(--caramel-deep);
  transform: rotate(45deg);
}

.sim-source {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 0.9375rem;
}

@media (max-width: 980px) {
  .sim-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 981px) {
  /* 결과가 길어져도 입력 칸이 따라 내려오게 한다 */
  .sim-form {
    position: sticky;
    top: calc(var(--header-h) + 20px);
  }
}

@media (max-width: 600px) {
  .sim-result {
    grid-template-columns: 1fr;
  }
  .sim-chart {
    height: 220px;
  }
  .sim-text {
    margin-top: 4px;
  }
  .sim-cta .btn {
    flex: 1 1 100%;
    white-space: normal;
    text-align: center;
  }
  .sim-stats {
    grid-template-columns: 1fr;
  }
  .g-tick {
    font-size: 24px;
  }
  .g-label {
    font-size: 26px;
  }
}

.sim-result.is-stale .sim-chart,
.sim-result.is-stale .sim-text,
.sim-result.is-stale .sim-growth {
  opacity: 0.4;
}

.req {
  color: var(--ink-2);
  font-weight: 600;
}

@media (max-width: 420px) {
  .sim-child-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .map text {
    font-size: 19px;
  }
}

/* ───── 마지막 안내와 바닥글 ───── */

.closing {
  padding-block: clamp(52px, 7vw, 88px);
  background: linear-gradient(135deg, var(--deep-2) 0%, var(--deep-3) 50%, var(--deep-2) 100%);
  color: #fff;
  text-align: center;
}

.closing h2 {
  font-size: clamp(1.5rem, 3.4vw, 2.375rem);
}

.closing p {
  margin-top: 10px;
  color: var(--on-dark);
}

.closing-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 26px;
}

.closing-cta .btn-light {
  font-size: 1.3125rem;
  font-variant-numeric: tabular-nums;
}

.closing-status {
  justify-content: center;
  margin-top: 20px;
  font-weight: 600;
}

.page-sim .closing {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.site-footer {
  padding-block: 44px calc(40px + var(--dock-h));
  background: var(--deep);
  color: var(--on-dark-2);
  font-size: 0.9375rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 32px;
}

.footer-name {
  margin-bottom: 10px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.125rem;
}

.footer-about p + p {
  margin-top: 4px;
}

.footer-about a {
  display: inline-block;
  padding-block: 10px;
}

.site-footer h2 {
  margin-bottom: 6px;
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0;
}

.site-footer a {
  color: #fff;
  text-underline-offset: 3px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--on-dark);
  text-decoration: none;
}

@media (hover: hover) {
  .site-footer nav a:hover {
    color: #fff;
    text-decoration: underline;
  }
}

.hours-footer > div {
  grid-template-columns: 4.6em 1fr;
  padding: 6px 0;
  border-bottom: 0;
}

.hours-footer dt {
  color: #fff;
  font-weight: 600;
}

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-base a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 32px;
  color: var(--caramel-soft);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-about {
    grid-column: 1 / -1;
  }
}

@media (max-width: 520px) {
  .site-footer nav a {
    min-height: 44px;
  }
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }
}

/* ───── 404 ───── */

.notfound h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.notfound p {
  margin-top: 14px;
  color: var(--ink-2);
}

.nf-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.nf-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 20px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
}

/* ───── 모바일 하단 바 ───── */

.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: none;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-2);
}

.dock a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 50px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  white-space: nowrap;
}

.dock a.dock-call {
  background: var(--pink-deep);
  border-color: var(--pink-deep);
  color: #fff;
}

.dock svg {
  flex: none;
  width: 18px;
  height: 18px;
}

@media (max-width: 960px) {
  .dock {
    display: grid;
  }
}

@media (max-width: 380px) {
  .dock a:not(.dock-call) svg {
    display: none;
  }
}

/* ───── 고대비 모드 ───── */

/* ── 자주 묻는 질문 ── */
/* 첫 화면 h1 안에 들어간 병원 이름 줄: 제목 글꼴 대신 본문 글꼴 */
.hero h1 .hero-kicker {
  display: flex;
  font-family: var(--font-body);
  line-height: 1.5;
}

.faq-jump ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.faq-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1.5px solid var(--field);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  text-decoration: none;
}

@media (hover: hover) {
  .faq-jump a:hover {
    border-color: var(--mint-deep);
    background: var(--sage);
  }
}

.faq-q {
  position: relative;
  padding-left: 1.7em;
  font-size: 1.125rem;
  line-height: 1.45;
}

.faq-q::before {
  content: "Q";
  position: absolute;
  left: 0;
  color: var(--pink-deep);
  font-weight: 800;
}

.prose > .faq-q {
  margin-top: 30px;
}

.prose > h2 + .faq-q {
  margin-top: 18px;
}

.prose > .faq-a {
  margin-top: 8px;
  padding-left: 1.9125em;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.faq-card {
  padding: 22px 24px;
  border: 1px solid var(--sage-deep);
  border-radius: var(--r-md);
  background: #fff;
}

.faq-card p {
  margin-top: 8px;
  padding-left: 1.9125em;
}

@media (max-width: 720px) {
  .faq-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .faq-card {
    padding: 18px 18px;
  }
}

@media (forced-colors: active) {
  .seg-row input:checked + span,
  .side-nav a[aria-current],
  .site-nav a[aria-current] {
    outline: 2px solid Highlight;
    outline-offset: -2px;
  }
  .btn,
  .jump a,
  .dock a {
    border-color: ButtonText;
  }
}

/* ───── 움직임 줄이기 ───── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

/* ───── 인쇄 ───── */

@media print {
  .topbar,
  .site-nav,
  .nav-toggle,
  .header-call,
  .dock,
  .jump,
  .closing-cta .btn-line {
    display: none !important;
  }
  .site-header {
    position: static;
  }
  body {
    font-size: 11pt;
  }
}

/* ───── 한눈에 보기 (페이지 머리의 요약) ───── */

.keyfacts {
  max-width: 46em;
  margin-top: 22px;
  padding: 18px 22px 16px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-left: 4px solid var(--mint-deep);
  border-radius: var(--r-md);
}

.keyfacts-title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--mint-ink);
}

.keyfacts ul {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.keyfacts li {
  position: relative;
  padding-left: 16px;
  line-height: 1.6;
}

.keyfacts li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint-deep);
}

.updated {
  color: var(--ink-2);
  font-size: 0.875rem;
}

.keyfacts .updated {
  margin-top: 12px;
}

.page-sim .keyfacts {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
  border-left-color: var(--mint);
  color: var(--on-dark);
}

.page-sim .keyfacts-title {
  color: #fff;
}

.page-sim .keyfacts li::before {
  background: var(--mint);
}

.page-sim .keyfacts .updated,
.site-footer .updated {
  color: inherit;
}

/* 병원 개요 표 */
.table-facts tbody th {
  width: 8.5em;
  background: var(--sand-soft);
}

.table-facts td {
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .keyfacts {
    padding: 16px 16px 14px;
  }

  .table-facts tbody th {
    width: 6em;
    white-space: normal;
  }
}

/* ───── 예방접종·영유아검진 일정 계산기 ───── */

.sched-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.sched-form .btn {
  justify-self: start;
  min-height: 52px;
  min-width: 9em;
}

.sched-opts {
  display: grid;
  gap: 16px;
}

.opt {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.opt legend {
  padding: 0;
  font-weight: 700;
  font-size: 1rem;
}

.opt-sub {
  color: var(--ink-2);
  font-weight: 500;
  font-size: 0.9375rem;
}

.opt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.opt-row label {
  position: relative;
  cursor: pointer;
}

.opt-row input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.opt-row span {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 2px solid var(--field);
  border-radius: 999px;
  background: #fff;
  font-weight: 600;
  font-size: 0.9375rem;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.opt-row input:checked + span {
  border-color: var(--mint-deep);
  background: var(--mint-deep);
  color: #fff;
}

.opt-row input:focus-visible + span {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.sched-msg {
  margin-top: 20px;
}

.sched-msg:empty,
.sched-out:empty {
  display: none;
}

.sched-group {
  margin-top: 22px;
}

.sched-group h3 {
  font-size: 1.0625rem;
  font-weight: 800;
}

.sched-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.sched-item {
  display: grid;
  grid-template-columns: 11em minmax(0, 1fr);
  gap: 6px 16px;
  align-items: start;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--sage);
}

.sched-item.is-now {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--mint-deep);
}

.sched-item.is-past {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line);
}

.sched-when strong {
  display: block;
  font-weight: 800;
}

.sched-when span {
  display: block;
  white-space: nowrap;
  color: var(--ink-2);
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.sched-what {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sched-what li {
  padding: 4px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: #fff;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.sched-what li.is-checkup {
  border-color: var(--caramel);
  background: var(--sand);
  font-weight: 700;
}

.sched-yearly {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--caramel);
  background: var(--sand-soft);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}

.sched-past {
  margin-top: 18px;
}

.sched-past summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--mint-ink);
  font-weight: 700;
  cursor: pointer;
}

.sched-past .hint {
  margin-top: 4px;
}

.sched-past .sched-group {
  margin-top: 10px;
}

.sched-print {
  margin-top: 20px;
}

.table-sched tbody th {
  width: 9.5em;
  background: var(--sand-soft);
}

@media (max-width: 640px) {
  .sched-form .btn {
    justify-self: stretch;
  }
  .sched-item {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }
  .table-sched tbody th {
    width: 6.5em;
    white-space: normal;
  }
}

@media print {
  .side,
  .sched-form,
  .sched-print,
  .closing {
    display: none !important;
  }
}
