/* =========================================================
   서브 페이지 공통 (메인과 동일한 톤: 흰 배경 · 네이비/파랑 포인트 · 라운드 20px)
   ========================================================= */

/* ---------- 서브 비주얼 : 메뉴별 사진 배경 + 흰 제목 (탭은 바로 아래) ---------- */
.sub-visual {
  position: relative; overflow: hidden; display: flex; align-items: center; text-align: center; color: var(--white);
  min-height: clamp(360px, 40vw, 580px); padding: calc(var(--header-h) + 32px) 0 48px; background: var(--navy);
}
.sub-visual__bg { position: absolute; inset: 0; }
.sub-visual__bg img { position: absolute; left: 0; top: -15%; width: 100%; height: 130%; object-fit: cover; animation: heroIn 2.4s var(--ease) both; }
.sub-visual__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,18,40,.55) 0%, rgba(6,18,40,.35) 45%, rgba(6,18,40,.6) 100%); }
@keyframes heroIn { from { opacity: 0; scale: 1.12; } to { opacity: 1; scale: 1; } }
.sub-visual > .container { position: relative; }
.sub-visual__en { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); }
.sub-visual__en::before { content: ""; width: 24px; height: 1px; background: currentColor; }
.sub-visual__title { margin-top: 16px; font-size: clamp(38px, 4.6vw, 72px); font-weight: 800; line-height: 1.1; letter-spacing: -0.05em; }
.sub-visual__desc { margin-top: 16px; font-size: clamp(15px, 1.3vw, 19px); color: rgba(255,255,255,.85); }
.breadcrumb { margin-top: 28px; display: inline-flex; justify-content: center; gap: 10px; padding: 9px 20px; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(255,255,255,.2) inset; font-size: 13px; color: rgba(255,255,255,.7); }
.breadcrumb > * + *::before { content: "/"; margin-right: 10px; opacity: .5; }
.breadcrumb span:last-child { color: var(--white); font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .sub-visual__bg img { animation: none; } }

/* ---------- LNB ---------- */
.sub-main { padding-bottom: clamp(80px, 9vw, 140px); overflow-x: clip; }
.lnb { position: sticky; top: var(--header-h); z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); transition: top .4s; }
/* 스크롤 시 헤더가 72px(모바일 64px)로 줄어들면 LNB도 같이 올라붙음 */
body.is-scrolled .lnb { top: 72px; }
@media (max-width: 1100px) { body.is-scrolled .lnb { top: 64px; } }
.lnb ul { display: flex; justify-content: center; gap: 40px; overflow-x: auto; scrollbar-width: none; }
.lnb a { display: block; padding: 20px 0; font-size: 16px; font-weight: 600; color: var(--gray-500); white-space: nowrap; border-bottom: 2px solid transparent; transition: color .2s; }
.lnb a:hover { color: var(--black); }
.lnb .is-active a { color: var(--navy); border-color: var(--navy); }

/* ---------- 콘텐츠 블록 : 메인 섹션 제목과 동일 (가운데 정렬) ---------- */
/* 섹션 헤더 한 줄: 번호 + 소제목 / 제목(왼쪽) · 설명(오른쪽), 내용은 아래 전체 폭 */
.sub-main > .container { counter-reset: sec; }
.block { padding: clamp(72px, 8vw, 120px) 0; }
.block + .block { border-top: 1px solid var(--line); }
.block:has(> .block__head) { counter-increment: sec; }
.block__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); column-gap: clamp(32px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 4vw, 56px); }
.block__head > div { display: contents; }
.block__head .eyebrow { grid-column: 1; grid-row: 1; }
.block__head .eyebrow::before { content: counter(sec, decimal-leading-zero); width: auto; height: auto; background: none; margin-right: 2px; padding-right: 12px; border-right: 1px solid currentColor; font-weight: 800; opacity: .9; }
.block__head .h-section { grid-column: 1; grid-row: 2; margin-top: 14px; font-size: clamp(28px, 2.8vw, 44px); line-height: 1.2; }
.block__head .lead { grid-column: 2; grid-row: 2; justify-self: end; margin: 0 !important; padding: 0 clamp(0px, 3.5vw, 64px) 6px 0; text-align: right; font-size: 16px; line-height: 1.75; word-break: keep-all; }
.todo {
  border: 1.5px dashed var(--sky-line); border-radius: var(--radius); padding: 48px 32px; text-align: center;
  color: var(--gray-500); font-size: 15px; background: var(--sky);
}
.todo strong { display: block; color: var(--navy); font-size: 18px; margin-bottom: 6px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ratio-43 { aspect-ratio: 4/3; border-radius: var(--radius); }
.ratio-wide { aspect-ratio: 21/9; border-radius: var(--radius); }
.ph--light { background: #e6eef9; background-image: none; }

/* ---------- 의료진 (메인 의료진과 같은 카드 톤) ---------- */
/* 양방(west) · 한방(east) 좌우 대칭 패널 */
.doc-list { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius); overflow: hidden; }
.doc { --bg: #e9f0fa; --word: #d6e3f5; --accent: var(--navy); position: relative; padding: clamp(48px, 6vw, 96px) clamp(24px, 4vw, 72px) clamp(40px, 5vw, 80px); background: var(--bg); overflow: hidden; }
.doc--east { --bg: #f2efe6; --word: #e6e0cf; --accent: #6e5a36; }
.doc__word { position: absolute; top: clamp(16px, 2vw, 32px); left: 0; right: 0; font-size: clamp(56px, 8.4vw, 136px); font-weight: 900; line-height: 1; letter-spacing: -0.05em; text-align: center; text-transform: uppercase; color: var(--word); white-space: nowrap; pointer-events: none; }
.doc__photo { position: relative; width: min(78%, 380px); margin: clamp(28px, 3vw, 48px) auto 0; aspect-ratio: 3/4; --fade: linear-gradient(to bottom, #000 72%, transparent); -webkit-mask-image: var(--fade); mask-image: var(--fade); }
.doc__photo > * { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; }
.doc__info { position: relative; margin-top: clamp(-56px, -4vw, -32px); text-align: center; }
.doc__part { display: inline-block; padding: 6px 16px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.doc__name { margin-top: 14px; font-size: clamp(30px, 3vw, 44px); font-weight: 800; letter-spacing: -0.04em; color: var(--accent); }
.doc__name span { font-size: .5em; font-weight: 700; margin-left: 6px; }
.doc__career { display: inline-block; margin-top: 24px; padding-top: 24px; border-top: 1px solid color-mix(in srgb, var(--accent) 20%, transparent); text-align: left; font-size: clamp(15px, 1.2vw, 17px); color: var(--gray-700); }
.doc__career li { position: relative; padding-left: 14px; line-height: 1.95; }
.doc__career li::before { content: ""; position: absolute; left: 0; top: .85em; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.doc-list__badge { position: absolute; left: 50%; top: clamp(200px, 22vw, 340px); transform: translate(-50%, 0); display: grid; place-items: center; width: clamp(88px, 8vw, 116px); aspect-ratio: 1; border-radius: 50%; background: var(--white); box-shadow: 0 12px 32px rgba(11, 42, 94, .14); font-size: clamp(14px, 1.1vw, 16px); font-weight: 800; line-height: 1.35; text-align: center; color: var(--navy); }

/* ---------- 게시판 (공지사항 · EAC 소식) ---------- */
/* 상단 : 건수 + 아이콘 검색창 */
.board-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; font-size: 15px; color: var(--gray-500); }
.board-top strong { color: var(--navy); }
.board-search { position: relative; display: flex; align-items: center; width: 340px; height: 50px; padding: 4px 4px 4px 46px; border: 1px solid var(--gray-300); border-radius: 999px; background: var(--white); transition: border-color .2s, box-shadow .2s; }
.board-search:focus-within { border-color: var(--point); box-shadow: 0 0 0 4px rgba(17,103,201,.1); }
.board-search > svg { position: absolute; left: 18px; width: 18px; height: 18px; fill: none; stroke: var(--gray-500); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.board-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; font: inherit; font-size: 15px; color: inherit; }
.board-search input:focus { outline: none; }
.board-search button { flex: none; height: 100%; padding: 0 20px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 14px; font-weight: 700; transition: background .2s; }
.board-search button:hover { background: var(--point); }

/* 목록 : 번호 · 제목(+작성자·조회) · 날짜, hover 시 연파랑 + 화살표 */
.board-list { list-style: none; border-top: 2px solid var(--navy); }
.board-list li { border-bottom: 1px solid var(--line); }
.board-list a { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 22px 64px 22px 8px; transition: background .25s; }
.board-list a::after { content: ""; position: absolute; right: 24px; top: 50%; width: 10px; height: 10px; border-top: 2px solid var(--point); border-right: 2px solid var(--point); transform: translate(-8px, -50%) rotate(45deg); opacity: 0; transition: opacity .25s, transform .3s var(--ease); }
.board-list a:hover { background: var(--sky); }
.board-list a:hover::after { opacity: 1; transform: translate(0, -50%) rotate(45deg); }
.board-list__no { text-align: center; font-size: 15px; font-weight: 600; color: var(--gray-500); font-variant-numeric: tabular-nums; }
.board-list__main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.board-list__tit { display: block; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; font-weight: 600; letter-spacing: -0.03em; color: var(--black); transition: color .2s; }
.board-list a:hover .board-list__tit { color: var(--point); }
.board-list__new { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 8px; border-radius: 50%; background: #e5484d; color: var(--white); font-size: 10px; font-style: normal; font-weight: 800; vertical-align: 2px; }
.board-list__meta { font-size: 13px; color: var(--gray-500); }
.board-list__meta span::before { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 10px; background: var(--gray-300); vertical-align: -1px; }
.board-list__date { font-size: 15px; color: var(--gray-500); font-variant-numeric: tabular-nums; }
/* 고정 공지 : 연파랑 바탕 + 네이비 배지 */
.board-list li.is-pin a { background: #f6f9fe; }
.board-list li.is-pin a:hover { background: var(--sky); }
.board-list li.is-pin .board-list__no { justify-self: center; padding: 4px 12px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700; }
.board-list li.is-pin .board-list__tit { font-weight: 700; }

/* 페이지 번호 + 이전/다음 */
.paging { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 48px; }
.paging a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; font-size: 15px; font-weight: 600; color: var(--gray-500); transition: background .2s, color .2s; }
.paging a:hover { background: var(--sky); color: var(--navy); }
.paging a.is-active { background: var(--navy); color: var(--white); }
.paging__arrow { border: 1px solid var(--line); }
.paging__arrow:first-child { margin-right: 8px; }
.paging__arrow:last-child { margin-left: 8px; }
.paging__arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* EAC 소식 카드 : 메인 소식 카드(common.css)를 게시판용으로 살짝 조정 */
.board-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 28px); padding-top: clamp(24px, 2.4vw, 32px); border-top: 2px solid var(--navy); }
.board-cards .news-card { box-shadow: 0 0 0 1px var(--line); }
.board-cards .news-card.is-in { transition: opacity 1s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.board-cards .news-card:hover { transform: translateY(-8px); box-shadow: 0 24px 44px -20px rgba(11,42,94,.3), 0 0 0 1px var(--sky-line); }
.board-cards .news-card__thumb { aspect-ratio: 4/3; border-radius: var(--radius) var(--radius) 0 0; }
.board-cards .news-card__title { font-size: 17px; }
.board-cards .news-card__date { display: flex; align-items: center; gap: 6px; margin-top: 24px; font-size: 14px; }
.board-cards .news-card__date::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2'%3E%3Crect x='3.5' y='5' width='17' height='15' rx='2'/%3E%3Cpath d='M3.5 10h17M8 3v4M16 3v4'/%3E%3C/svg%3E") center / contain no-repeat; }
.paging a[aria-disabled] { opacity: .35; pointer-events: none; }
/* 게시물 없음 / 불러오는 중 */
.board-empty { grid-column: 1 / -1; padding: 72px 16px; text-align: center; font-size: 16px; color: var(--gray-500); }
.board-list li.board-empty { border-bottom: 1px solid var(--line); }

/* 게시글 상세 : 머리(구분·제목·날짜) → 본문 → 첨부 → 이전/다음 글 → 목록 버튼 */
.board-view { border-top: 2px solid var(--navy); }
.board-view__empty { padding: 96px 16px; text-align: center; font-size: 16px; color: var(--gray-500); border-bottom: 1px solid var(--line); }
.board-view__head { padding: clamp(32px, 4vw, 48px) 8px clamp(24px, 3vw, 32px); border-bottom: 1px solid var(--line); }
.board-view__cat { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--point); }
.board-view__cat b { padding: 3px 10px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 12px; }
.board-view__title { margin-top: 14px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 700; line-height: 1.4; letter-spacing: -0.03em; word-break: keep-all; overflow-wrap: anywhere; }
.board-view__meta { margin-top: 18px; font-size: 14px; color: var(--gray-500); font-variant-numeric: tabular-nums; }
.board-view__meta time::before { content: ""; display: inline-block; width: 1px; height: 10px; margin: 0 12px; background: var(--gray-300); vertical-align: -1px; }
.board-view__body { padding: clamp(36px, 4vw, 56px) 8px clamp(48px, 5vw, 72px); border-bottom: 1px solid var(--line); }
.board-view__cover { max-width: 860px; margin: 0 auto 40px; }
.board-view__cover img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.board-view__content { max-width: 860px; margin: 0 auto; font-size: 17px; line-height: 1.9; color: var(--gray-700); word-break: keep-all; overflow-wrap: anywhere; }
.board-view__content > * + * { margin-top: 16px; }
.board-view__content h2, .board-view__content h3 { margin-top: 36px; font-size: 21px; line-height: 1.5; color: var(--black); }
.board-view__content strong, .board-view__content b { color: var(--black); }
.board-view__content ul, .board-view__content ol { padding-left: 1.4em; }
.board-view__content ul { list-style: disc; }
.board-view__content ol { list-style: decimal; }
.board-view__content blockquote { padding: 16px 22px; border-left: 3px solid var(--point); background: var(--sky); border-radius: 0 12px 12px 0; }
.board-view__content a { color: var(--point); text-decoration: underline; text-underline-offset: 3px; }
.board-view__content img { display: block; max-width: 100%; height: auto; margin: 28px auto; border-radius: 14px; }
.board-view__files { display: flex; gap: 24px; padding: 24px 8px; border-bottom: 1px solid var(--line); background: #f8fafd; }
.board-view__files > p { flex: none; width: 96px; padding-left: 12px; font-size: 15px; font-weight: 700; }
.board-view__files > p b { color: var(--point); }
.board-view__files ul { list-style: none; display: grid; gap: 10px; min-width: 0; }
.board-view__files a { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--gray-700); overflow-wrap: anywhere; }
.board-view__files a:hover { color: var(--point); text-decoration: underline; }
.board-view__files svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.board-view__nav { margin-top: 48px; border-top: 1px solid var(--navy); }
.board-view__nav > * { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 20px 12px; border-bottom: 1px solid var(--line); font-size: 15px; transition: background .25s; }
.board-view__nav span { font-weight: 700; color: var(--navy); }
.board-view__nav b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.board-view__nav p b { color: var(--gray-500); }
.board-view__nav time { color: var(--gray-500); font-variant-numeric: tabular-nums; }
.board-view__nav a:hover { background: var(--sky); }
.board-view__nav a:hover b { color: var(--point); }
.board-view__btns { display: flex; justify-content: center; margin-top: 48px; }
.board-view__back { display: inline-flex; align-items: center; justify-content: center; min-width: 180px; height: 56px; padding: 0 32px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 16px; font-weight: 700; transition: background .2s; }
.board-view__back:hover { background: var(--point); }
@media (max-width: 768px) {
  .board-view__content { font-size: 16px; }
  .board-view__files { flex-direction: column; gap: 12px; }
  .board-view__files > p { padding-left: 0; }
  .board-view__nav > * { grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 16px 4px; font-size: 14px; }
  .board-view__nav time { display: none; }
}


/* ---------- 정보 표 / 오시는 길 ---------- */
.info-table { border-top: 2px solid var(--navy); }
.info-table dl { display: grid; grid-template-columns: 180px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
.info-table dt { font-weight: 700; }
.info-table dd { color: var(--gray-700); }
.loc-map { position: relative; aspect-ratio: 21/9; border-radius: var(--radius); background: #e6eef9; }
.loc-map .visit__pin {
  position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); padding: 12px 24px; border-radius: 999px;
  background: var(--navy); color: var(--white); font-weight: 700; font-size: 16px; box-shadow: 0 8px 24px rgba(11,42,94,.25);
}
.loc-map .visit__pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; transform: translateX(-50%); border: 8px solid transparent; border-top-color: var(--navy); border-bottom: 0; }
.loc-btns { display: flex; justify-content: center; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.dot { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.dot--naver { background: #03c75a; }
.dot--kakao { background: #fee500; box-shadow: inset 0 0 0 3px #3b82f6; }
.dot--tmap { background: linear-gradient(135deg, #ff3b5c, #3d5afe); }

/* =========================================================
   콘텐츠 컴포넌트 (기존 사이트 내용 이관)
   ========================================================= */
.sub-title { font-size: clamp(22px, 2vw, 30px); font-weight: 800; letter-spacing: -0.04em; margin-bottom: clamp(20px, 2.4vw, 32px); }
.sub-title small { display: block; margin-top: 10px; font-size: 16px; font-weight: 500; letter-spacing: -0.02em; color: var(--gray-700); line-height: 1.7; }
.sub-title + .sub-title, * + .sub-title { margin-top: clamp(48px, 5vw, 72px); }
.note { margin-top: 20px; font-size: 15px; color: var(--gray-500); }
.note a { color: var(--point); font-weight: 700; }

/* EAC란? : 왼쪽 단어 채움 문장 + 오른쪽 머리글자 펼침 */
.eac-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.eac-intro__txt { font-size: clamp(21px, 2vw, 30px); font-weight: 700; line-height: 1.65; letter-spacing: -0.04em; word-break: keep-all; }
.eac-intro__txt .fill-word { color: var(--gray-300); transition: color .45s var(--ease); }
.eac-intro__txt .fill-word.is-on { color: var(--black); }
.eac-intro__txt .fill-word.is-key.is-on { color: var(--point); }
/* 머리글자 E·A·C 뒤로 나머지 철자가 차례로 펼쳐지고(.15s 간격), 이후 6초 주기로 한 줄씩 빛남 */
.eac-word { display: grid; gap: clamp(4px, .6vw, 10px); }
.eac-word__row { --d: calc(var(--i) * .18s); display: flex; align-items: baseline; font-size: clamp(56px, 6.6vw, 112px); font-weight: 900; line-height: 1; letter-spacing: -0.05em; }
.eac-word__row b { color: var(--navy); }
.eac-word__row span { color: var(--sky-line); clip-path: inset(-20% 100% -35% 0); transition: clip-path 1.1s var(--ease) calc(var(--d) + .5s); }
.eac-word__row em { align-self: center; margin-left: clamp(14px, 1.6vw, 24px); padding: 8px 16px; border-radius: 999px; background: var(--sky); color: var(--navy); font-style: normal; font-size: clamp(14px, 1.1vw, 16px); font-weight: 800; letter-spacing: -0.02em; opacity: 0; transform: translateX(-12px); transition: opacity .6s var(--ease) calc(var(--d) + 1.1s), transform .6s var(--ease) calc(var(--d) + 1.1s); }
.eac-word.is-in .eac-word__row span { clip-path: inset(-20% -4% -35% 0); }   /* 위·아래 여유 : g·y 꼬리가 잘리지 않게 */
.eac-word.is-in .eac-word__row em { opacity: 1; transform: none; }
.eac-word.is-in .eac-word__row span { animation: eacLitTxt 6s var(--ease) calc(var(--i) * 2s + 2s) infinite; }
.eac-word.is-in .eac-word__row em { animation: eacLitTag 6s var(--ease) calc(var(--i) * 2s + 2s) infinite; }
@keyframes eacLitTxt { 0%, 30% { color: var(--point); } 40%, 100% { color: var(--sky-line); } }
@keyframes eacLitTag { 0%, 30% { background: var(--navy); color: var(--white); } 40%, 100% { background: var(--sky); color: var(--navy); } }

/* 핵심가치 E·A·C : 카드 사이 화살표 원 위로 신호 점이 E → A → C 순서로 흐름 */
.values { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
.value { position: relative; align-self: stretch; padding: clamp(28px, 3vw, 44px); border-radius: var(--radius); background: linear-gradient(120deg, #edf2fa, #dce8f8, #f3eefa, #e3f1f6, #edf2fa) 0 50% / 300% 300%; animation: valueFlow 14s ease-in-out infinite alternate; overflow: hidden; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.value:nth-child(3) { animation-delay: -5s; }
.value:nth-child(5) { animation-delay: -10s; }
@keyframes valueFlow { to { background-position: 100% 50%; } }
/* hover : 네이비 판이 아래에서 차오름 */
.value::before { content: ""; position: absolute; inset: 0; background: var(--navy); clip-path: inset(100% 0 0 0); transition: clip-path .6s var(--ease); }
.value:hover::before { clip-path: inset(0); }
.value.is-in { transition: opacity 1s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease); }
.value:hover { transform: translateY(-8px); box-shadow: 0 28px 48px -24px rgba(11,42,94,.5); }
.value__letter { position: absolute; right: -6px; top: -28px; font-size: clamp(140px, 13vw, 200px); font-weight: 900; line-height: 1; color: var(--sky-line); letter-spacing: -0.06em; transform: translateY(-30px); transition: transform 1.4s var(--ease), color .5s var(--ease); }
.value.is-in .value__letter { transform: none; }
.value:hover .value__letter { color: rgba(255,255,255,.08); transform: translateY(12px); }
.value__no { position: absolute; left: clamp(28px, 3vw, 44px); top: clamp(26px, 2.8vw, 40px); font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--navy); transition: color .4s; }
.value__en { position: relative; font-size: 15px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--point); transition: color .4s; }
.value__ko { position: relative; margin-top: 6px; font-size: clamp(26px, 2.4vw, 36px); font-weight: 800; letter-spacing: -0.04em; transition: color .4s; }
.value:hover .value__no, .value:hover .value__ko { color: var(--white); }
.value:hover .value__en { color: var(--point-light); }
.values__arrow { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--white); box-shadow: 0 0 0 1px var(--sky-line); color: var(--navy); overflow: hidden; }
.values__arrow::before { content: "→"; font-size: 17px; font-weight: 700; }
.values__arrow::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--navy); transform: scale(0); }
.values__arrow::before { position: relative; z-index: 1; }
/* 3초 주기 : 앞 화살표(0s) → 뒤 화살표(1.5s) 순서로 네이비가 차오르며 → 가 밀려남 */
.values__arrow.is-in::after { animation: valueSig 3s var(--ease) infinite; }
.values__arrow.is-in::before { animation: valueArrow 3s var(--ease) infinite; }
.values__arrow:nth-child(4)::after, .values__arrow:nth-child(4)::before { animation-delay: 1.5s; }
@keyframes valueSig { 0% { transform: scale(0); opacity: 1; } 30% { transform: scale(1); opacity: 1; } 55%, 100% { transform: scale(1); opacity: 0; } }
@keyframes valueArrow { 0%, 55%, 100% { transform: none; color: var(--navy); } 25%, 35% { transform: translateX(4px); color: var(--white); } }
@media (prefers-reduced-motion: reduce) { .value, .values__arrow::before, .values__arrow::after, .eac-word.is-in .eac-word__row span, .eac-word.is-in .eac-word__row em { animation: none !important; } .eac-word__row span { clip-path: none; } .eac-word__row em { opacity: 1; transform: none; } }

/* 미션 · 비전 : 사진 패럴랙스 + 흰 글자 채움 + 큰 영문 */
.mv { display: grid; grid-template-columns: 1fr; gap: 20px; }
.mv__item { display: flex; flex-direction: column; justify-content: center; min-height: clamp(320px, 30vw, 460px); padding: clamp(32px, 5vw, 80px); background: var(--navy); color: var(--white); }
.mv__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,18,40,.55), rgba(6,18,40,.15) 70%); pointer-events: none; }
.mv__item > img { transition: none; }   /* 패럴랙스 이동이 줌 transition 때문에 늦게 따라오지 않게 */
.mv__body, .mv__word { position: relative; z-index: 1; }
.mv__body b { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); color: var(--white); font-size: 14px; letter-spacing: .06em; }
.mv__body p { margin-top: 24px; font-size: clamp(22px, 2.4vw, 40px); font-weight: 700; line-height: 1.5; letter-spacing: -0.04em; word-break: keep-all; }
.mv__body .fill-word { color: rgba(255,255,255,.3); transition: color .45s var(--ease); }
.mv__body .fill-word.is-on { color: var(--white); }
.mv__body .fill-word.is-key.is-on { color: var(--point-light); }
.mv__word { position: absolute; right: clamp(20px, 3vw, 48px); bottom: -.16em; font-size: clamp(64px, 10vw, 168px); font-weight: 900; line-height: 1; letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.35); transform: translateX(8%); opacity: 0; transition: transform 1.6s var(--ease) .3s, opacity 1.2s var(--ease) .3s; pointer-events: none; }
.mv__item.is-in .mv__word { transform: none; opacity: 1; }

/* ---------- 암센터 센터소개 ---------- */
/* 소개 : 왼쪽 단어 채움 문장 + 오른쪽 세로 사진(패럴랙스) */
.cc-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.cc-intro__txt { font-size: clamp(21px, 2vw, 30px); font-weight: 700; line-height: 1.65; letter-spacing: -0.04em; word-break: keep-all; }
.cc-intro__txt .fill-word { color: var(--gray-300); transition: color .45s var(--ease); }
.cc-intro__txt .fill-word.is-on { color: var(--black); }
.cc-intro__txt .fill-word.is-key.is-on { color: var(--point); }
.cc-intro__img { aspect-ratio: 4/5; max-height: 620px; width: 100%; background: var(--navy); }
.cc-intro__img > img { transition: none; }   /* 패럴랙스가 줌 transition 에 끌려가지 않게 */

/* 치료 프로그램 : 가로 아코디언 — 마우스를 올린(포커스) 카드가 넓어지며 네이비 반전 + 설명 등장, 아무것도 없으면 첫 카드가 펼쳐짐 */
.cc-prog { display: flex; gap: 12px; height: clamp(400px, 34vw, 480px); list-style: none; }
.cc-prog li { flex: 1 1 0; min-width: 0; transition: flex .7s var(--ease); }
.cc-prog li.is-in { transition: opacity 1s var(--ease), transform 1s var(--ease), flex .7s var(--ease); }
.cc-prog li > * { position: relative; display: flex; flex-direction: column; height: 100%; padding: clamp(24px, 2.4vw, 34px); border-radius: var(--radius); background: var(--sky); overflow: hidden; transition: background .5s var(--ease); }
.cc-prog li > *::before { content: ""; position: absolute; inset: 0; background: var(--navy); clip-path: inset(100% 0 0 0); transition: clip-path .6s var(--ease); }
.cc-prog li > * > * { position: relative; }
.cc-prog__no { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--navy); transition: color .4s; }
.cc-prog__ico { position: absolute; right: clamp(20px, 2vw, 30px); top: clamp(20px, 2vw, 30px); width: 48px; height: 48px; fill: none; stroke: var(--navy); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s; }
.cc-prog__en { margin-top: auto; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--point); white-space: nowrap; transition: color .4s; }
.cc-prog__tit { margin-top: 8px; font-size: clamp(20px, 1.7vw, 26px); font-weight: 800; line-height: 1.3; letter-spacing: -0.045em; color: var(--navy); word-break: keep-all; transition: color .4s; }
/* 설명은 펼친 폭 기준으로 고정 → 펼쳐지는 동안 줄바꿈이 흔들리지 않음 */
.cc-prog__txt { width: clamp(220px, 22vw, 340px); max-height: 0; margin-top: 0; font-size: 15px; line-height: 1.7; color: rgba(255,255,255,.78); word-break: keep-all; opacity: 0; transform: translateY(10px); transition: max-height .6s var(--ease), margin .6s var(--ease), opacity .4s, transform .6s var(--ease); }
.cc-prog__go { display: grid; place-items: center; width: 44px; height: 44px; margin-top: 22px; border-radius: 50%; border: 1px solid var(--sky-line); color: var(--navy); font-size: 17px; transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease); }
/* 펼친 상태 */
.cc-prog li:hover, .cc-prog li:focus-within, .cc-prog:not(:hover):not(:focus-within) li:first-child { flex-grow: 2.6; }
.cc-prog li:hover > *::before, .cc-prog li:focus-within > *::before, .cc-prog:not(:hover):not(:focus-within) li:first-child > *::before { clip-path: inset(0); }
.cc-prog li:hover .cc-prog__no, .cc-prog li:focus-within .cc-prog__no, .cc-prog:not(:hover):not(:focus-within) li:first-child .cc-prog__no,
.cc-prog li:hover .cc-prog__tit, .cc-prog li:focus-within .cc-prog__tit, .cc-prog:not(:hover):not(:focus-within) li:first-child .cc-prog__tit { color: var(--white); }
.cc-prog li:hover .cc-prog__en, .cc-prog li:focus-within .cc-prog__en, .cc-prog:not(:hover):not(:focus-within) li:first-child .cc-prog__en { color: var(--point-light); }
.cc-prog li:hover .cc-prog__ico, .cc-prog li:focus-within .cc-prog__ico, .cc-prog:not(:hover):not(:focus-within) li:first-child .cc-prog__ico { stroke: var(--point-light); }
.cc-prog li:hover .cc-prog__txt, .cc-prog li:focus-within .cc-prog__txt, .cc-prog:not(:hover):not(:focus-within) li:first-child .cc-prog__txt { max-height: 140px; margin-top: 14px; opacity: 1; transform: none; transition-delay: 0s, 0s, .25s, .25s; }
.cc-prog li:hover .cc-prog__go, .cc-prog li:focus-within .cc-prog__go, .cc-prog:not(:hover):not(:focus-within) li:first-child .cc-prog__go { background: var(--white); border-color: var(--white); color: var(--navy); }
.cc-prog li:hover .cc-prog__go { transform: translateX(6px); }
.cc-prog li > *:focus-visible { outline: 3px solid var(--point); outline-offset: 3px; }

/* 탭 (센터소개 · 치료 · 비급여) */
.tabs { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; margin-bottom: clamp(40px, 4vw, 56px); }
.tabs button { height: 50px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--gray-300); font-weight: 600; font-size: 16px; transition: background .25s, color .25s, border-color .25s; }
.tabs button:hover { border-color: var(--navy); color: var(--navy); }
.tabs button.is-active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.tab-panel[hidden] { display: none; }
.tab-panel.is-anim { animation: panelIn .7s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.tab-lead { margin-bottom: clamp(36px, 4vw, 52px); padding-left: 18px; border-left: 3px solid var(--navy); }
.tab-lead h4 { font-size: clamp(24px, 2.4vw, 36px); font-weight: 800; letter-spacing: -0.04em; }
.tab-lead p { margin-top: 12px; font-size: clamp(15px, 1.2vw, 18px); color: var(--gray-700); line-height: 1.7; word-break: keep-all; }

/* 사진 갤러리 */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.gallery__item figure { aspect-ratio: 10/7; background: #e6eef9; }
.gallery__item figcaption { margin-top: 14px; font-size: 17px; font-weight: 700; letter-spacing: -0.03em; }
.gallery__item figure { cursor: zoom-in; }
.gallery__item figure:hover > img { transform: scale(1.05); }
.gallery__item figure:focus-visible { outline: 3px solid var(--point); outline-offset: 3px; }

/* 시설안내 : 분류 필터 + 번호·분류 태그 사진 카드 */
.fac-filter { margin-bottom: clamp(28px, 3vw, 40px); }

.gallery--fac { counter-reset: fac; }
.gallery--fac .gallery__item { counter-increment: fac; }   /* 숨겨진(필터) 항목은 번호에서 빠짐 */
.gallery--fac .gallery__item.is-pop { animation: facPop .7s var(--ease) both; animation-delay: calc(min(var(--n), 8) * 60ms); }
@keyframes facPop { from { opacity: 0; transform: translateY(24px) scale(.97); } }
.gallery--fac figure { position: relative; }
.gallery--fac figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(11,42,94,.55)); opacity: 0; transition: opacity .5s var(--ease); pointer-events: none; }
/* 가운데 돋보기(+) 원 */
.gallery--fac figure::before { content: "+"; position: absolute; left: 50%; top: 50%; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; translate: -50% -50%; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--navy); font-size: 30px; font-weight: 300; transform: scale(.4) rotate(-90deg); opacity: 0; transition: transform .5s var(--ease), opacity .4s; pointer-events: none; }
.gallery--fac figure:hover::after { opacity: 1; }
.gallery--fac figure:hover::before { transform: none; opacity: 1; }
.gallery--fac figcaption { position: relative; display: flex; align-items: baseline; gap: 10px; padding-bottom: 12px; }
.gallery--fac figcaption::before { content: counter(fac, decimal-leading-zero); font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--gray-300); font-variant-numeric: tabular-nums; transition: color .3s; }
.gallery--fac figcaption::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--navy); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.gallery--fac figcaption em { order: 2; margin-left: auto; padding: 4px 10px; border-radius: 999px; background: var(--sky); color: var(--point); font-style: normal; font-size: 12px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; }
.gallery--fac figcaption b { font-weight: 700; transition: color .3s; }
.gallery--fac .gallery__item:hover figcaption::after { transform: none; }
.gallery--fac .gallery__item:hover figcaption::before, .gallery--fac .gallery__item:hover figcaption b { color: var(--navy); }
@media (prefers-reduced-motion: reduce) { .gallery--fac .gallery__item.is-pop { animation: none; } }

/* 식단 갤러리 (메뉴판형) : 6개 단위로 큰 칸이 왼쪽 → 오른쪽 번갈아 배치, 사진 위에 번호·메뉴명 */
.gallery--menu { counter-reset: menu; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; }
.gallery--menu .gallery__item { position: relative; counter-increment: menu; border-radius: var(--radius); overflow: hidden; }
.gallery--menu .gallery__item:nth-child(6n+1) { grid-column: span 2; grid-row: span 2; }
.gallery--menu .gallery__item:nth-child(6n+5) { grid-column: 1; }
.gallery--menu .gallery__item:nth-child(6n) { grid-column: 2 / span 2; grid-row: span 2; }
.gallery--menu .gallery__item figure { position: relative; height: 100%; border-radius: 0; }
.gallery--menu .gallery__item:nth-child(6n+1) figure, .gallery--menu .gallery__item:nth-child(6n) figure { aspect-ratio: auto; min-height: 100%; }
.gallery--menu .gallery__item:nth-child(6n+1) figure > img, .gallery--menu .gallery__item:nth-child(6n) figure > img { position: absolute; inset: 0; }  /* 큰 칸 높이는 옆 작은 칸 2개가 정함 */
.gallery--menu .gallery__item figure::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(11,42,94,.7)); pointer-events: none; }
.gallery--menu .gallery__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; margin: 0; padding: clamp(18px, 2vw, 28px); color: var(--white); font-size: clamp(18px, 1.6vw, 22px); font-weight: 800; pointer-events: none; }
.gallery--menu .gallery__item figcaption::before { content: "MENU " counter(menu, decimal-leading-zero); display: block; margin-bottom: 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; color: rgba(255,255,255,.75); }
.gallery--menu .gallery__item:nth-child(6n+1) figcaption, .gallery--menu .gallery__item:nth-child(6n) figcaption { padding: clamp(24px, 3vw, 44px); font-size: clamp(26px, 2.6vw, 40px); letter-spacing: -0.045em; }

/* 갤러리 확대 보기 */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; gap: 16px; padding: 64px 24px; background: rgba(8,14,28,.92); opacity: 0; transition: opacity .3s; }
.lightbox.is-open { opacity: 1; }
.lightbox[hidden] { display: none; }
.lightbox__fig { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; height: 100%; }
.lightbox__fig img { max-width: 100%; max-height: calc(100% - 48px); object-fit: contain; border-radius: 10px; opacity: 0; transform: scale(.98); transition: opacity .35s, transform .35s var(--ease); }
.lightbox__fig img.is-loaded { opacity: 1; transform: none; }
.lightbox__fig figcaption { display: flex; gap: 14px; align-items: baseline; margin-top: 18px; color: #fff; }
.lightbox__cap { font-size: 18px; font-weight: 700; letter-spacing: -0.03em; }
.lightbox__count { font-size: 14px; color: rgba(255,255,255,.6); }
.lightbox button { flex: none; width: 54px; height: 54px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 18px; transition: background .3s, border-color .3s; }
.lightbox button:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.lightbox__close { position: absolute; top: 20px; right: 20px; }

/* 가로 슬라이더 (센터소개) */
.slider__track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__item { flex: 0 0 min(72%, 860px); scroll-snap-align: center; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: #e6eef9; }
.slider__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.slider__item:hover img { transform: scale(1.04); }
.slider__ctrl { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 28px; }
.slider__ctrl button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gray-300); font-size: 18px; transition: background .3s, color .3s, border-color .3s; }
.slider__ctrl button:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.slider__count { font-size: 15px; color: var(--gray-500); min-width: 64px; text-align: center; }
.slider__count b { color: var(--navy); }

/* 효과 칩 */
.chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: clamp(48px, 5vw, 72px); }
.chips > div { padding: 22px 16px; border-radius: 14px; background: var(--sky); color: var(--navy); font-weight: 700; font-size: 17px; text-align: center; letter-spacing: -0.03em; }
.chips__ico { display: block; width: 44px; height: 44px; margin: 0 auto 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.chips--3 { grid-template-columns: repeat(3, 1fr); }

/* 점 목록 */
.dots li { position: relative; padding-left: 14px; font-size: 15px; line-height: 1.9; color: var(--gray-700); }
.dots li::before { content: ""; position: absolute; left: 0; top: .85em; width: 5px; height: 5px; border-radius: 50%; background: var(--point); }

/* 장비 쇼케이스 (온열 치료장비) : 지그재그 배치 + 주파수 배지 + 스펙 표 */
.devices__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: clamp(72px, 10vw, 150px);  /* 위로 튀어나온 01 숫자가 선에 닿지 않게 */ border-bottom: 2px solid var(--navy); }
.devices__eyebrow { font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--navy); }
.devices__sum { font-size: 16px; color: var(--gray-700); letter-spacing: -0.03em; }
.devices__sum b { color: var(--navy); }

.device { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 88px); align-items: center; }
.device + .device { margin-top: clamp(64px, 8vw, 128px); }
.device:nth-child(odd) .device__visual { order: 2; }  /* 첫 자식이 .devices__head 라서 1·3번째 장비=짝수(사진 왼쪽), 2번째=홀수(사진 오른쪽) */

.device__visual { position: relative; padding: 0 0 28px 28px; }
.device:nth-child(odd) .device__visual { padding: 0 28px 28px 0; }
/* 사진 뒤에 비스듬히 깔리는 연파랑 판 */
.device__visual::before { content: ""; position: absolute; inset: 28px 28px 0 0; border-radius: var(--radius); background: radial-gradient(120% 90% at 15% 100%, rgba(106,169,240,.28), transparent 55%), linear-gradient(160deg, var(--sky), #dfe8f6); }
.device:nth-child(odd) .device__visual::before { inset: 28px 0 0 28px; background: radial-gradient(120% 90% at 85% 100%, rgba(106,169,240,.28), transparent 55%), linear-gradient(200deg, var(--sky), #dfe8f6); }
.device__img { position: relative; aspect-ratio: 3/2; background: #f3f6fb; box-shadow: 0 30px 60px -30px rgba(11,42,94,.45); }
.device__no { position: absolute; top: -.55em; left: -.06em; z-index: 2; font-size: clamp(72px, 9vw, 140px); font-weight: 900; line-height: 1; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px var(--navy); pointer-events: none; }
.device:nth-child(odd) .device__no { left: auto; right: -.06em; }
.device:nth-child(even) .device__no { left: -.06em; }
.device__freq { position: absolute; z-index: 2; right: 16px; bottom: 44px; display: inline-flex; align-items: baseline; gap: 2px; padding: 12px 20px 12px 16px; border-radius: 999px; background: rgba(11,42,94,.82); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--white); font-size: clamp(22px, 2vw, 30px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.device:nth-child(odd) .device__freq { right: 44px; }
.device__freq--txt { font-size: clamp(17px, 1.4vw, 20px); letter-spacing: -0.03em; }  /* 숫자 대신 글자 배지 */
.device__freq small { margin-left: 2px; font-size: .5em; font-weight: 700; opacity: .75; }
.device__wave { position: relative; align-self: center; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--point-light); }
.device__wave::before, .device__wave::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--point-light); animation: devicePulse 2.2s var(--ease) infinite; }
.device__wave::after { animation-delay: 1.1s; }
@keyframes devicePulse { from { transform: scale(1); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }

.device__type { font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--point); }
.device__tit { margin-top: 10px; font-size: clamp(26px, 2.6vw, 40px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.15; color: var(--navy); }
.device__spec { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.device__spec > div { padding: 16px 12px 16px 0; }
.device__spec > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.device__spec dt { font-size: 12px; font-weight: 600; color: var(--gray-500); }
.device__spec dd { margin-top: 4px; font-size: 16px; font-weight: 800; color: var(--black); letter-spacing: -0.03em; word-break: keep-all; }

.device__txt { margin-top: 22px; font-size: 16px; line-height: 1.85; color: var(--gray-700); word-break: keep-all; }
.device__pt { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; counter-reset: pt; }
.device__pt li { counter-increment: pt; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px 9px 10px; border-radius: 999px; background: var(--sky); color: var(--navy); font-size: 14px; font-weight: 600; letter-spacing: -0.03em; }
.device__pt li::before { content: counter(pt, decimal-leading-zero); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 10px; font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
  .device__wave::before, .device__wave::after { animation: none; }
}

/* 이미지 카드 (면역 · 비타민 · 장비) */
/* 면역치료 작용 흐름 : 아이콘 원 3개를 점선으로 잇고, 신호 점이 흘러감 */
.flow { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin-bottom: clamp(64px, 7vw, 104px); }
.flow__step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.flow__step:not(:last-child)::after { content: ""; position: absolute; top: 44px; left: calc(50% + 60px); right: calc(-50% + 60px); height: 2px; background: repeating-linear-gradient(90deg, var(--sky-line) 0 6px, transparent 6px 12px); }
.flow__step:not(:last-child)::before { content: ""; position: absolute; z-index: 1; top: 40px; left: calc(50% + 60px); width: 10px; height: 10px; border-radius: 50%; background: var(--point-light); box-shadow: 0 0 0 4px rgba(106,169,240,.2); animation: flowDot 2.6s var(--ease) infinite; }
.flow__step:nth-child(2)::before { animation-delay: 1.3s; }
@keyframes flowDot { 0% { left: calc(50% + 60px); opacity: 0; } 15%, 85% { opacity: 1; } 100% { left: calc(150% - 60px); opacity: 0; } }
.flow__ico { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: var(--sky); color: var(--navy); }
.flow__step:last-child .flow__ico { background: var(--navy); color: var(--white); box-shadow: 0 16px 32px -12px rgba(11,42,94,.5); }
.flow__ico svg { width: 42px; height: 42px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.flow__no { margin-top: 20px; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--point); }
.flow__tit { margin-top: 6px; font-size: clamp(19px, 1.6vw, 22px); font-weight: 800; letter-spacing: -0.04em; color: var(--navy); }
.flow__txt { margin-top: 8px; font-size: 15px; line-height: 1.65; color: var(--gray-700); word-break: keep-all; }

/* 치료제 벤토 그리드 : 번호 사진 카드 (면역·비타민·림프부종 공용) */
.bento-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: clamp(28px, 3vw, 40px); border-bottom: 2px solid var(--navy); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(16px, 1.6vw, 24px); }
.bento__item { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--sky); overflow: hidden; }
.bento__item.is-in { transition: transform .5s var(--ease), box-shadow .5s var(--ease), opacity 1s var(--ease); }
.bento__item:hover { transform: translateY(-6px); box-shadow: 0 24px 48px -20px rgba(11,42,94,.35); }
.bento__img { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--white); }
.bento__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.bento__item:hover .bento__img img { transform: scale(1.06); }
.bento__img::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(11,42,94,.45)); pointer-events: none; }
.bento__no { position: absolute; z-index: 1; left: 20px; bottom: 14px; font-size: 44px; font-weight: 800; line-height: 1; letter-spacing: -0.05em; color: var(--white); }
.bento__body { flex: 1; padding: clamp(22px, 2vw, 30px); }
.bento__tag { display: inline-block; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--white); color: var(--point); font-size: 13px; font-weight: 700; letter-spacing: -0.02em; }
.bento__tit { margin-top: 14px; font-size: clamp(20px, 1.7vw, 25px); font-weight: 800; letter-spacing: -0.045em; color: var(--navy); }
.bento__txt { margin-top: 10px; font-size: 15px; line-height: 1.75; color: var(--gray-700); word-break: keep-all; }
.bento__item { grid-column: span 2; }                    /* 6열 그리드: 윗줄 3개 */
.bento__item:nth-child(n+4) { grid-column: span 3; }   /* 아랫줄 2개는 반반 */
.bento__item:nth-child(n+4) .bento__img { aspect-ratio: 21/9; }
/* 림프부종 소개 : 일러스트는 원본 비율 그대로(잘림 없음) + 발생률 숫자 강조 */
.lymph { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 80px); align-items: center; margin-bottom: clamp(64px, 7vw, 104px); }
.lymph__fig { padding: clamp(16px, 2vw, 28px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--sky-line); box-shadow: 0 30px 60px -36px rgba(11,42,94,.35); }
.lymph__fig img { display: block; width: 100%; max-width: 456px;  /* 원본 폭 이상 늘리지 않음 */ height: auto; margin: 0 auto; }
.lymph__stat { display: flex; align-items: center; gap: 20px; padding-bottom: 24px; border-bottom: 1px solid var(--line); font-size: 16px; font-weight: 600; line-height: 1.55; color: var(--navy); letter-spacing: -0.03em; }
.lymph__stat b { flex: none; font-size: clamp(52px, 5.6vw, 84px); font-weight: 800; line-height: 1; letter-spacing: -0.06em; color: var(--navy); }
.lymph__stat b span { margin: 0 .04em; color: var(--point-light); }
.lymph__stat b small { margin-left: 2px; font-size: .45em; letter-spacing: 0; }
.lymph__stat em { font-style: normal; font-weight: 500; font-size: 14px; color: var(--gray-500); }
.lymph__txt { margin-top: 24px; font-size: 16px; line-height: 1.85; color: var(--gray-700); word-break: keep-all; }
.lymph__cause { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 20px; list-style: none; }
.lymph__cause li { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 12px; background: var(--sky); color: var(--navy); font-size: 15px; font-weight: 700; letter-spacing: -0.03em; }
.lymph__cause li::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--point); }

/* 림프부종 병기 트랙 : 화살표 블록이 이어지며 0기→3기로 진해지고, 빛이 왼쪽→오른쪽으로 계속 흐름 */
.stage-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; list-style: none; margin-bottom: clamp(64px, 7vw, 104px); }
.stage-track li { --c: var(--sky); --fg: var(--navy); --sub: var(--gray-700); position: relative; overflow: hidden; padding: clamp(24px, 2.4vw, 34px) 40px clamp(24px, 2.4vw, 34px) 48px; background: var(--c); color: var(--fg); clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%, 24px 50%); }
.stage-track li:first-child { padding-left: 28px; border-radius: 16px 0 0 16px; clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%); }
.stage-track li:nth-child(2) { --c: #d3e3f8; }
.stage-track li:nth-child(3) { --c: var(--point); --fg: var(--white); --sub: rgba(255,255,255,.8); }
.stage-track li:nth-child(4) { --c: var(--navy); --fg: var(--white); --sub: rgba(255,255,255,.72); }
.stage-track li::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%); transform: translateX(-100%); animation: stageFlow 3.2s var(--ease) infinite; pointer-events: none; }
.stage-track li:nth-child(2)::after { animation-delay: .4s; }
.stage-track li:nth-child(3)::after { animation-delay: .8s; }
.stage-track li:nth-child(4)::after { animation-delay: 1.2s; }
@keyframes stageFlow { 0% { transform: translateX(-100%); } 45%, 100% { transform: translateX(100%); } }
.stage-track b { display: block; font-size: clamp(28px, 2.6vw, 38px); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--fg); }
.stage-track p { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--sub); word-break: keep-all; }
@media (prefers-reduced-motion: reduce) { .stage-track li::after { animation: none; opacity: 0; } }

.bento__src { display: block; margin-top: 10px; font-size: 13px; color: var(--gray-500); }
/* 2열 변형 (비타민·미네랄) : 모든 카드 동일 크기 */
.bento--2 .bento__item, .bento--2 .bento__item:nth-child(n+4) { grid-column: span 3; }
.bento--2 .bento__item .bento__img { aspect-ratio: 21/9; }
@media (prefers-reduced-motion: reduce) { .flow__step::before { animation: none; opacity: 0; } }


/* ---------- 입·퇴원 안내 ---------- */
/* 입원 여정 : 점선 위를 점이 8초 주기로 1→4단계 이동(0~75%), 2초 간격으로 도착하는 단계 아이콘이 켜짐 */
.io-journey { --ico: 96px; position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; margin-bottom: clamp(80px, 9vw, 140px); }
.io-journey::before { content: ""; position: absolute; top: calc(var(--ico) / 2 - 1px); left: 12.5%; right: 12.5%; height: 2px; background: repeating-linear-gradient(90deg, var(--sky-line) 0 8px, transparent 8px 14px); }
.io-journey::after { content: ""; position: absolute; top: calc(var(--ico) / 2 - 7px); left: 12.5%; width: 14px; height: 14px; translate: -50% 0; border-radius: 50%; background: var(--point); box-shadow: 0 0 0 6px rgba(17,103,201,.18); opacity: 0; }
.io-journey.is-in::after { animation: ioTravel 8s linear infinite; }
@keyframes ioTravel { 0% { left: 12.5%; opacity: 0; } 4% { opacity: 1; } 75% { left: 87.5%; opacity: 1; } 85%, 100% { left: 87.5%; opacity: 0; } }
.io-journey__step { --d: 0s; display: flex; flex-direction: column; align-items: center; text-align: center; }
.io-journey__step:nth-child(2) { --d: 2s; }
.io-journey__step:nth-child(3) { --d: 4s; }
.io-journey__step:nth-child(4) { --d: 6s; }
.io-journey__ico { position: relative; z-index: 1; display: grid; place-items: center; width: var(--ico); height: var(--ico); border-radius: 50%; background: var(--white); border: 1px solid var(--sky-line); color: var(--navy); }
.io-journey.is-in .io-journey__ico { animation: ioLit 8s var(--ease) var(--d) infinite; }
@keyframes ioLit { 0%, 16% { background: var(--navy); border-color: var(--navy); color: var(--white); transform: scale(1.06); box-shadow: 0 0 0 10px rgba(17,103,201,.1); } 30%, 100% { background: var(--white); border-color: var(--sky-line); color: var(--navy); transform: none; box-shadow: none; } }
.io-journey__ico svg { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.io-journey__step em { margin-top: 22px; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--point); }
.io-journey__step b { margin-top: 6px; font-size: clamp(20px, 1.7vw, 24px); font-weight: 800; letter-spacing: -0.04em; color: var(--navy); }
.io-journey__step p { max-width: 260px; margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--gray-700); word-break: keep-all; }

/* 준비물 체크리스트 : 항목이 0.12초 간격으로 차례로 체크됨 */
.io-pack { padding: clamp(20px, 2.4vw, 36px); border-radius: var(--radius); background: var(--sky); margin-bottom: clamp(64px, 7vw, 104px); }
.io-pack__list { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; list-style: none; }
.io-pack__list li { --dl: calc(var(--i) * .12s + .4s); display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 14px; background: var(--white); font-size: clamp(15px, 1.2vw, 17px); font-weight: 700; letter-spacing: -0.03em; color: var(--gray-500); transition: color .4s var(--dl); }
.io-pack__list li:not(.io-pack__etc)::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--gray-300); background: var(--white) no-repeat center / 12px; transition: background-color .3s var(--dl), border-color .3s var(--dl); }
.io-pack.is-in .io-pack__list li { color: var(--navy); }
.io-pack.is-in .io-pack__list li:not(.io-pack__etc)::before { border-color: var(--point); background-color: var(--point); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.io-pack__list .io-pack__etc { background: transparent; font-weight: 600; }
.io-pack.is-in .io-pack__list .io-pack__etc { color: var(--gray-700); }
.io-pack__note { margin-top: 20px; padding-left: 4px; font-size: 16px; line-height: 1.7; color: var(--gray-700); word-break: keep-all; }
.io-pack__note b { color: var(--navy); }

/* 식사시간 : 사진 아래쪽에 유리 질감 시간 카드 */
.io-meal { position: relative; }
.io-meal__img { aspect-ratio: 1400/493; }
.io-meal__img::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(6,18,40,.7)); pointer-events: none; }
.io-meal__times { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: clamp(16px, 2vw, 28px); list-style: none; }
.io-meal__times li { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px; padding: 18px 22px; border-radius: 16px; background: rgba(255,255,255,.14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 0 0 1px rgba(255,255,255,.25) inset; color: var(--white); }
.io-meal__times svg { grid-row: span 2; width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: rgba(255,255,255,.16); fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.io-meal__times b { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: rgba(255,255,255,.75); }
.io-meal__times span { font-size: clamp(20px, 1.9vw, 28px); font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* 식사 종류 카드 + 유의사항 */
.io-diet__types { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; list-style: none; }
.io-diet__types li { padding: clamp(24px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.io-diet__types li.is-in { transition: opacity 1s var(--ease), transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease); }
.io-diet__types li:hover { transform: translateY(-6px); border-color: var(--sky-line); box-shadow: 0 24px 44px -24px rgba(11,42,94,.3); }
.io-diet__types em { font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--point); }
.io-diet__types b { display: block; margin-top: 8px; font-size: clamp(20px, 1.7vw, 24px); font-weight: 800; letter-spacing: -0.04em; color: var(--navy); }
.io-diet__types p { margin-top: 10px; font-size: 15px; line-height: 1.7; color: var(--gray-700); word-break: keep-all; }
.io-diet__rules { display: grid; grid-template-columns: 180px 1fr; gap: 16px 32px; margin-top: 16px; padding: clamp(24px, 2.4vw, 32px); border-radius: var(--radius); background: var(--gray-50); }
.io-diet__label { display: flex; align-items: center; gap: 10px; align-self: start; font-size: 17px; font-weight: 800; letter-spacing: -0.03em; color: var(--black); }
.io-diet__label::before { content: "!"; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--black); color: var(--white); font-size: 13px; font-weight: 900; }
.io-diet__rules ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 32px; list-style: none; }
.io-diet__rules li { position: relative; padding-left: 14px; font-size: 15px; line-height: 1.7; color: var(--gray-700); word-break: keep-all; }
.io-diet__rules li::before { content: ""; position: absolute; left: 0; top: .75em; width: 5px; height: 5px; border-radius: 50%; background: var(--gray-500); }

/* 퇴원 타임라인 : 스크롤 진행(--p)만큼 세로선이 채워지고, 선이 닿은 단계는 .is-on (common.js data-progress) */
.io-out { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 120px); }
.io-out__side { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
.io-out__en { font-size: 13px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--point); }
.io-out__count { display: flex; align-items: baseline; gap: 12px; margin-top: 8px; }
.io-out__count b { font-size: clamp(88px, 10vw, 160px); font-weight: 900; line-height: 1; letter-spacing: -0.06em; color: var(--navy); font-variant-numeric: tabular-nums; }
.io-out__count span { font-size: clamp(22px, 2vw, 30px); font-weight: 800; color: var(--gray-300); }
.io-out__info { display: inline-flex; flex-direction: column; gap: 4px; margin-top: 28px; padding: 18px 22px; border-radius: 16px; background: var(--sky); font-size: 17px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.io-out__info span { font-size: 13px; font-weight: 600; color: var(--gray-500); }
.io-out__list { position: relative; list-style: none; }
.io-out__list::before { content: ""; position: absolute; left: 35px; top: 36px; bottom: 0; width: 2px; background: linear-gradient(var(--navy), var(--navy)) no-repeat 0 0 / 100% calc(var(--p, 0) * 100%), var(--sky-line); }
.io-out__list li { position: relative; display: grid; grid-template-columns: 72px 1fr; column-gap: clamp(20px, 2.4vw, 36px); padding-bottom: clamp(48px, 5vw, 72px); }
.io-out__list li:last-child { padding-bottom: 0; }
.io-out__list li:last-child::before { content: ""; position: absolute; left: 0; top: 36px; bottom: 0; width: 72px; background: var(--white); }  /* 마지막 아이콘 아래로 선이 삐져나오지 않게 가림 */
.io-out__ico { position: relative; z-index: 1; grid-row: span 3; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--sky-line); background: var(--white); color: var(--gray-300); transition: background .4s, border-color .4s, color .4s, box-shadow .4s; }
.io-out__ico svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.io-out__list li.is-on .io-out__ico { border-color: var(--navy); background: var(--navy); color: var(--white); box-shadow: 0 0 0 8px rgba(11,42,94,.08); }
.io-out__list em { padding-top: 8px; font-style: normal; font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--gray-300); transition: color .4s; }
.io-out__list b { margin-top: 6px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; letter-spacing: -0.045em; color: var(--gray-300); transition: color .4s; }
.io-out__list p { margin-top: 10px; font-size: 16px; line-height: 1.75; color: var(--gray-500); word-break: keep-all; transition: color .4s; }
.io-out__list li.is-on em { color: var(--point); }
.io-out__list li.is-on b { color: var(--navy); }
.io-out__list li.is-on p { color: var(--gray-700); }
@media (prefers-reduced-motion: reduce) {
  .io-journey.is-in::after, .io-journey.is-in .io-journey__ico { animation: none; }
  .io-pack__list li, .io-pack__list li::before { transition: none; }
}

/* 표 */
.data-table { width: 100%; border-collapse: collapse; border-top: 2px solid var(--navy); font-size: 16px; }
.data-table th, .data-table td { padding: 18px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.data-table thead th { background: var(--sky); font-weight: 700; font-size: 15px; }
.data-table tbody tr { transition: background .2s; }
.data-table tbody tr:hover { background: #f7f9fd; }
.table-scroll { overflow-x: auto; }

/* ---------- 제증명 수수료 ---------- */
/* 분류 칩 + 검색 */
.fee-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.fee-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.fee-cats button { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--gray-300); font-size: 15px; font-weight: 600; transition: background .25s, color .25s, border-color .25s; }
.fee-cats button span { min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--gray-50); color: var(--gray-500); font-size: 12px; font-weight: 700; transition: background .25s, color .25s; }
.fee-cats button:hover { border-color: var(--navy); color: var(--navy); }
.fee-cats button[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.fee-cats button[aria-pressed="true"] span { background: rgba(255,255,255,.18); color: var(--white); }
.fee-search { position: relative; display: flex; align-items: center; }
.fee-search svg { position: absolute; left: 18px; width: 18px; height: 18px; fill: none; stroke: var(--gray-500); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.fee-search input { width: 280px; height: 46px; padding: 0 20px 0 46px; border: 1px solid var(--gray-300); border-radius: 999px; background: var(--white); font: inherit; font-size: 15px; color: inherit; transition: border-color .2s, box-shadow .2s; }
.fee-search input:focus { outline: none; border-color: var(--point); box-shadow: 0 0 0 4px rgba(17,103,201,.12); }

/* 3단 요금표 : 세로로 먼저 채움(--rows), 이름은 왼쪽 · 금액은 오른쪽 */
.fee-list { --cols: 3; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 7), auto); grid-auto-flow: column; column-gap: clamp(28px, 3.6vw, 56px); list-style: none; border-top: 2px solid var(--navy); }
.fee-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 8px; border-bottom: 1px solid var(--line); transition: background .2s; }
.fee-list--2 { --cols: 2; column-gap: clamp(32px, 5vw, 80px); }
.fee-list--2 li { padding: 14px 8px; }   /* 항목이 많아(비급여 216개) 줄 간격을 조금 좁힘 */
.fee-list.is-in li { animation: feeIn .5s var(--ease) both; animation-delay: calc(min(var(--i), 24) * 25ms); }   /* 항목이 많아도 0.6초 안에 다 등장 */
@keyframes feeIn { from { opacity: 0; transform: translateY(10px); } }
.fee-list li:hover { background: var(--sky); }
.fee-list__name { font-size: 16px; font-weight: 600; letter-spacing: -0.03em; color: var(--black); word-break: keep-all; }
.fee-list__name mark { padding: 0 2px; border-radius: 4px; background: #fff1b8; color: inherit; }
.fee-list__price { flex: none; font-size: 18px; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); font-variant-numeric: tabular-nums; }
.fee-list__price small { margin-left: 2px; font-size: 13px; font-weight: 600; color: var(--gray-500); }
.fee-empty { padding: 48px 0; border-bottom: 1px solid var(--line); text-align: center; color: var(--gray-500); }
@media (prefers-reduced-motion: reduce) { .fee-list.is-in li { animation: none; } }

/* 비급여 : 분류별 묶음 제목 */
.bill-count { margin-bottom: 8px; font-size: 15px; color: var(--gray-500); }
.bill-count b { color: var(--navy); }
.bill-group + .bill-group { margin-top: clamp(48px, 5vw, 72px); }
.bill-group__tit { display: flex; align-items: center; gap: 10px; padding: 24px 0 16px; font-size: clamp(20px, 1.8vw, 24px); font-weight: 800; letter-spacing: -0.04em; color: var(--navy); }
.bill-group__tit span { padding: 2px 10px; border-radius: 999px; background: var(--sky); font-size: 13px; font-weight: 700; color: var(--point); }

/* ---------- 외래진료 안내 ---------- */
/* 상단 : 현재 진료 상태 + 범례 */
.op-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.op-status { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 999px; background: var(--gray-50); font-size: 15px; font-weight: 700; letter-spacing: -0.03em; color: var(--gray-700); }
.op-status i { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--gray-300); }
.op-status.is-on { background: #e7f6ec; color: #17803d; }
.op-status.is-on i { background: #22a04b; }
.op-status.is-on i::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #22a04b; animation: devicePulse 2s var(--ease) infinite; }
.op-legend { display: flex; gap: 20px; list-style: none; font-size: 14px; font-weight: 600; color: var(--gray-500); }
.op-legend li { display: flex; align-items: center; gap: 8px; }
.op-legend .op-mark { --c: var(--navy); width: 12px; height: 12px; transform: none; opacity: 1; }

/* 진료 표시 : 동그라미(진료) · 짧은 선(휴진) */
.op-mark { --c: var(--accent, var(--navy)); display: inline-block; width: 18px; height: 18px; border-radius: 50%; background: var(--c); vertical-align: middle; }
.op-mark--off { width: 14px; height: 2px; border-radius: 2px; background: var(--gray-300); }

/* 양방 · 한방 카드 (의료진 소개 패널과 같은 색) */
.op-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.op-card { --bg: #e9f0fa; --word: #dbe6f6; --accent: var(--navy); --line-c: rgba(11,42,94,.1); position: relative; overflow: hidden; padding: clamp(24px, 3vw, 44px); border-radius: var(--radius); background: var(--bg); }
.op-card--east { --bg: #f2efe6; --word: #e8e2d2; --accent: #6e5a36; --line-c: rgba(110,90,54,.14); }
.op-card__word { position: absolute; right: -.04em; top: -.12em; font-size: clamp(64px, 7vw, 120px); font-weight: 900; line-height: 1; letter-spacing: -0.05em; text-transform: uppercase; color: var(--word); pointer-events: none; }
.op-card__head { position: relative; display: flex; align-items: center; gap: 16px; }
.op-card__photo { flex: none; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--white); box-shadow: 0 0 0 3px var(--white); }
.op-card__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; scale: 1.5; translate: 0 18%; }
.op-card__part { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--white); font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.op-card__name { margin-top: 8px; font-size: clamp(22px, 2vw, 28px); font-weight: 800; letter-spacing: -0.04em; color: var(--accent); }
.op-card__name small { margin-left: 4px; font-size: .6em; font-weight: 700; }

.op-table { position: relative; width: 100%; margin-top: clamp(24px, 3vw, 40px); border-collapse: separate; border-spacing: 0; table-layout: fixed; text-align: center; }
.op-table th, .op-table td { padding: 16px 0; border-bottom: 1px solid var(--line-c); }
.op-table thead th { padding-top: 22px; font-size: 15px; font-weight: 700; color: var(--gray-700); }
.op-table tbody th { width: 64px; text-align: left; font-size: 14px; font-weight: 700; color: var(--gray-500); }
.op-table tbody tr:last-child > * { border-bottom: 0; }
/* 오늘 요일 칸 : 흰 기둥 + TODAY */
.op-table .is-today { position: relative; background: rgba(255,255,255,.75); }
.op-table thead .is-today { border-radius: 14px 14px 0 0; color: var(--accent); }
.op-table tbody tr:last-child .is-today { border-radius: 0 0 14px 14px; }
.op-table thead em { position: absolute; left: 50%; top: 4px; translate: -50% 0; font-style: normal; font-size: 9px; font-weight: 800; letter-spacing: .12em; color: var(--point); }
.op-card--east .op-table thead em { color: var(--accent); }
/* 동그라미가 순서대로 톡톡 등장 */
.op-table .op-mark:not(.op-mark--off) { transform: scale(0); opacity: 0; transition: transform .5s cubic-bezier(.34,1.56,.64,1), opacity .3s; transition-delay: calc(var(--n) * 50ms + .4s); }
.op-card.is-in .op-table .op-mark { transform: none; opacity: 1; }

/* 진료시간 바 : 08~19시 눈금 위에 진료·점심 구간, 오늘 줄에 현재 시각 바늘 */
.op-hours { --label: 160px; }
.op-hours__axis { padding-left: var(--label); }
.op-hours__ticks { position: relative; height: 22px; }
.op-hours__ticks span { position: absolute; top: 0; translate: -50% 0; font-size: 12px; font-weight: 600; color: var(--gray-500); font-variant-numeric: tabular-nums; }
.op-hours__row { display: grid; grid-template-columns: var(--label) 1fr; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.op-hours__row:last-child { border-bottom: 1px solid var(--line); }
.op-hours__label b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -0.04em; }
.op-hours__label span { font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--gray-500); }
.op-hours__row.is-today .op-hours__label b { color: var(--point); }
.op-hours__row.is-today .op-hours__label b::after { content: "오늘"; margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--point); color: var(--white); font-size: 11px; vertical-align: 2px; }
.op-hours__track { position: relative; height: 64px; border-radius: 14px; background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 11)) var(--gray-50); }
.op-seg { position: absolute; top: 6px; bottom: 6px; display: flex; flex-direction: column; justify-content: center; padding: 0 14px; overflow: hidden; border-radius: 10px; background: var(--navy); color: var(--white); white-space: nowrap; transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease); }
.op-seg + .op-seg { transition-delay: .25s; }
.op-seg + .op-seg + .op-seg { transition-delay: .5s; }
.op-hours.is-in .op-seg { transform: none; }
.op-seg b { font-size: 14px; font-weight: 700; }
.op-seg small { font-size: 12px; opacity: .7; font-variant-numeric: tabular-nums; }
.op-seg--lunch { background: repeating-linear-gradient(135deg, #d6e1f2 0 6px, #e6edf8 6px 12px); color: var(--navy); padding: 0; align-items: center; }
.op-seg--lunch small { display: none; }
.op-hours__closed { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; font-weight: 700; color: var(--gray-500); }
.op-needle { position: absolute; z-index: 1; top: -8px; bottom: -8px; width: 2px; translate: -50% 0; background: #e5484d; }
.op-needle::before { content: attr(data-time); position: absolute; left: 50%; bottom: 100%; translate: -50% -4px; padding: 3px 8px; border-radius: 999px; background: #e5484d; color: var(--white); font-size: 11px; font-weight: 700; white-space: nowrap; }
.op-needle::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; translate: -50% 0; border-radius: 50%; background: #e5484d; animation: devicePulse 2s var(--ease) infinite; }
@media (prefers-reduced-motion: reduce) {
  .op-table .op-mark:not(.op-mark--off), .op-seg { transform: none; opacity: 1; transition: none; }
  .op-status.is-on i::after, .op-needle::after { animation: none; }
}

/* ---------- 치매센터 (인지재활치료) ---------- */
/* 정의 문장 : 스크롤에 따라 단어가 채워지고(data-fill) 인지기능 키워드는 파랑 */
.dm-intro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.dm-intro__txt { font-size: clamp(21px, 2vw, 30px); font-weight: 700; line-height: 1.65; letter-spacing: -0.04em; word-break: keep-all; }
.dm-intro__txt .fill-word { color: var(--gray-300); transition: color .45s var(--ease); }
.dm-intro__txt .fill-word.is-on { color: var(--black); }
.dm-intro__txt .fill-word.is-key.is-on { color: var(--point); }

/* 인지기능 궤도 : 4개 키워드가 뇌기능 주위를 천천히 돌고, 글자는 항상 똑바로 */
.dm-orbit { --spin: 48s; position: relative; width: min(100%, 460px); aspect-ratio: 1; margin: 0 auto; container-type: inline-size; }
.dm-orbit::before, .dm-orbit::after { content: ""; position: absolute; border-radius: 50%; border: 1.5px dashed var(--sky-line); }
.dm-orbit::before { inset: 9cqw; }
.dm-orbit::after { inset: 24cqw; border-style: solid; border-color: var(--sky); }
.dm-orbit__core { position: absolute; inset: 31cqw; z-index: 1; display: grid; place-content: center; text-align: center; border-radius: 50%; background: var(--navy); color: var(--white); font-size: clamp(18px, 5.4cqw, 26px); font-weight: 800; letter-spacing: -0.04em; box-shadow: 0 24px 48px -16px rgba(11,42,94,.55); }
.dm-orbit__core span { display: block; margin-bottom: 2px; font-size: clamp(10px, 2.6cqw, 12px); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--point-light); }
.dm-orbit__core::before, .dm-orbit__core::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; border: 2px solid var(--point-light); animation: dmPulse 3s var(--ease) infinite; }
.dm-orbit__core::after { animation-delay: 1.5s; }
@keyframes dmPulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.75); opacity: 0; } }
.dm-orbit__ring { position: absolute; inset: 0; animation: dmSpin var(--spin) linear infinite; }
.dm-orbit__ring span { position: absolute; left: 50%; top: 50%; transform: rotate(calc(var(--i) * 90deg - 45deg)) translateX(41cqw); }
.dm-orbit__ring b {
  position: absolute; left: 0; top: 0; translate: -50% -50%; transform: rotate(calc(var(--i) * -90deg + 45deg)); animation: dmSpin var(--spin) linear infinite reverse;
  display: grid; place-items: center; width: clamp(76px, 23cqw, 104px); aspect-ratio: 1; border-radius: 50%; background: var(--white); color: var(--navy);
  box-shadow: 0 0 0 1px var(--sky-line), 0 14px 30px -12px rgba(11,42,94,.3); font-size: clamp(13px, 3.6cqw, 17px); font-weight: 800; letter-spacing: -0.04em; white-space: nowrap;
}
@keyframes dmSpin { to { rotate: 360deg; } }

/* 종류 : 영문 약어 외곽선 + hover 시 네이비 반전 */
.dm-types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; }
.dm-types li { position: relative; display: flex; flex-direction: column; min-height: clamp(320px, 28vw, 400px); padding: clamp(24px, 2.4vw, 34px); border-radius: var(--radius); background: var(--sky); overflow: hidden; }
.dm-types li.is-in { transition: opacity 1s var(--ease), transform 1s var(--ease), background .45s var(--ease); }
/* 외곽선(text-stroke)은 폰트 내부 윤곽이 겹쳐 보여서 면 채움으로 표현 */
.dm-types__abbr { font-style: normal; font-size: clamp(60px, 6.2vw, 104px); font-weight: 900; line-height: .9; letter-spacing: -0.05em; color: #d3e1f5; transition: color .45s var(--ease); }
.dm-types__en { margin-top: auto; padding-top: 24px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--point); transition: color .45s; }
.dm-types b { margin-top: 8px; font-size: clamp(21px, 1.8vw, 26px); font-weight: 800; letter-spacing: -0.045em; color: var(--navy); transition: color .45s; }
.dm-types p { margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--sky-line); font-size: 15px; line-height: 1.7; color: var(--gray-700); word-break: keep-all; transition: color .45s, border-color .45s; }
.dm-types li:hover { background: var(--navy); }
.dm-types li:hover .dm-types__abbr { color: var(--point); }
.dm-types li:hover .dm-types__en { color: var(--point-light); }
.dm-types li:hover b { color: var(--white); }
.dm-types li:hover p { color: rgba(255,255,255,.75); border-color: rgba(255,255,255,.18); }

/* 증상 : 왼쪽 라벨 + 오른쪽 내용 */
.dm-sym { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 24px clamp(24px, 4vw, 64px); align-items: center; }
.dm-sym + .dm-sym { margin-top: clamp(40px, 4vw, 56px); padding-top: clamp(40px, 4vw, 56px); border-top: 1px dashed var(--line); }
.dm-sym__label b { display: block; font-size: clamp(20px, 1.8vw, 24px); font-weight: 800; letter-spacing: -0.04em; color: var(--black); }
.dm-sym__label span { display: block; margin-top: 6px; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gray-500); }
/* 인지저하 : 무채색 아이콘 카드 (영역명 + 감퇴/저하 표시) */
.dm-cog { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; list-style: none; }
.dm-cog li { display: flex; flex-direction: column; padding: clamp(20px, 2vw, 28px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.dm-cog li.is-in { transition: opacity 1s var(--ease), transform .5s var(--ease), border-color .4s, box-shadow .5s var(--ease); }
.dm-cog li:hover { transform: translateY(-6px); border-color: var(--sky-line); box-shadow: 0 24px 44px -24px rgba(11,42,94,.3); }
.dm-cog svg { width: 48px; height: 48px; padding: 11px; border-radius: 14px; background: var(--sky); fill: none; stroke: var(--point); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: background .4s, stroke .4s; }
.dm-cog li:hover svg { background: var(--point); stroke: var(--white); }
.dm-cog b { margin-top: clamp(28px, 3vw, 44px); font-size: clamp(18px, 1.5vw, 21px); font-weight: 800; letter-spacing: -0.04em; color: var(--black); word-break: keep-all; }
.dm-cog span { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--gray-500); }
.dm-cog span::after { content: "↓"; font-size: 13px; }
/* 행동심리 : 번호 + 가는 구분선 목록 (4열) */
.dm-bpsd { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(16px, 2.4vw, 36px); list-style: none; counter-reset: bpsd; border-top: 1px solid var(--black); }
.dm-bpsd li { counter-increment: bpsd; display: flex; align-items: baseline; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: clamp(15px, 1.2vw, 17px); font-weight: 600; letter-spacing: -0.03em; color: var(--black); word-break: keep-all; }
.dm-bpsd li::before { content: counter(bpsd, decimal-leading-zero); flex: none; font-size: 12px; font-weight: 700; color: var(--gray-500); font-variant-numeric: tabular-nums; }

/* 4주 프로그램 : 주차 눈금 위에 단계별 기간만큼 카드가 걸쳐짐
   막대가 2.4초 동안 일정한 속도로 채워지며(.3s 시작) 각 주차 점이 차례로 켜짐 → 이후 빛이 4초 주기로 계속 흐르고, 지나가는 점마다 물결
   주차 시작점 = 막대의 0 / 25 / 50 / 75% 지점 → 켜지는 시각 .3 / .9 / 1.5 / 2.1s, 물결 시각 2.8 / 3.8 / 4.8 / 5.8s */
.dm-plan__weeks, .dm-plan__phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; }
.dm-plan__weeks li { --t: .3s; --w: 2.8s; position: relative; padding: 0 0 16px 2px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--gray-300); transition: color .5s var(--t); }
.dm-plan__weeks li:nth-child(2) { --t: .9s; --w: 3.8s; }
.dm-plan__weeks li:nth-child(3) { --t: 1.5s; --w: 4.8s; }
.dm-plan__weeks li:nth-child(4) { --t: 2.1s; --w: 5.8s; }
.dm-plan__weeks li::before, .dm-plan__weeks li::after { content: ""; position: absolute; left: 0; bottom: -10px; z-index: 1; width: 16px; height: 16px; border-radius: 50%; }
.dm-plan__weeks li::after { background: var(--white); box-shadow: 0 0 0 3px var(--sky-line); transition: box-shadow .5s var(--t), background .5s var(--t); }
.dm-plan__weeks li::before { background: var(--point-light); opacity: 0; }
.dm-plan__track.is-in li { color: var(--navy); }
.dm-plan__track.is-in li::after { background: var(--white); box-shadow: 0 0 0 4px var(--point); }
.dm-plan__track.is-in li:last-child::after { box-shadow: 0 0 0 4px var(--navy); }
.dm-plan__track.is-in li::before { animation: dmRipple 4s linear var(--w) infinite; }
@keyframes dmRipple { 0% { transform: scale(1); opacity: .7; } 25%, 100% { transform: scale(2.8); opacity: 0; } }
.dm-plan__bar { position: relative; height: 4px; border-radius: 4px; background: var(--sky); overflow: hidden; }
.dm-plan__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--point-light), var(--point) 50%, var(--navy)); transition: width 2.4s linear .3s; }
.dm-plan__bar s { position: absolute; top: 0; left: 0; width: 140px; height: 100%; translate: -50% 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), transparent); opacity: 0; }
.dm-plan__track.is-in .dm-plan__bar i { width: 100%; }
.dm-plan__track.is-in .dm-plan__bar s { animation: dmGlint 4s linear 2.8s infinite; }
@keyframes dmGlint { 0% { left: 0; opacity: 1; } 100% { left: 100%; opacity: 1; } }
.dm-plan__phases { margin-top: 28px; }
.dm-phase { --c: var(--sky); --fg: var(--navy); --sub: var(--gray-700); position: relative; display: flex; flex-direction: column; padding: clamp(24px, 2.4vw, 36px); border-radius: var(--radius); background: var(--c); color: var(--fg); }
.dm-phase.reveal { transition-delay: .3s; }   /* 막대가 해당 주차에 닿을 때 등장 */
.dm-phase--2.reveal { transition-delay: .9s; }
.dm-phase--3.reveal { transition-delay: 2.1s; }
.dm-phase--2 { grid-column: span 2; --c: #d3e3f8; overflow: hidden; }
.dm-phase--2::after { content: "2 WEEKS"; position: absolute; right: -.04em; bottom: -.18em; font-size: clamp(56px, 6.4vw, 108px); font-weight: 900; line-height: 1; letter-spacing: -0.05em; color: rgba(11,42,94,.07); pointer-events: none; }
.dm-phase--3 { --c: var(--navy); --fg: var(--white); --sub: rgba(255,255,255,.75); }
.dm-phase em { font-style: normal; font-size: 13px; font-weight: 800; letter-spacing: .06em; color: var(--point); }
.dm-phase--3 em { color: var(--point-light); }
.dm-phase b { margin-top: 10px; font-size: clamp(22px, 2vw, 30px); font-weight: 800; letter-spacing: -0.045em; line-height: 1.25; word-break: keep-all; }
.dm-phase p { margin-top: 14px; font-size: 15px; line-height: 1.75; color: var(--sub); word-break: keep-all; }
.dm-phase__tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 8px 14px; border-radius: 999px; background: var(--white); color: var(--point); font-size: 13px; font-weight: 700; }
.dm-phase__tag::before { content: "+"; font-weight: 900; }
/* 사진 2장 : 오른쪽 사진을 아래로 내려 엇갈리게 */
.dm-photos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; margin-top: clamp(56px, 6vw, 88px); }
.dm-photos figure { aspect-ratio: 1320/742; }
.dm-photos figure:last-child { margin-top: clamp(48px, 7vw, 120px); }
@media (prefers-reduced-motion: reduce) {
  .dm-orbit__ring, .dm-orbit__ring b, .dm-orbit__core::before, .dm-orbit__core::after { animation: none; }
  .dm-plan__track.is-in li::before, .dm-plan__track.is-in .dm-plan__bar s { animation: none; }
}

/* 오시는 길 */
.loc-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius); }
.loc-copy { text-align: center; font-size: clamp(22px, 2.2vw, 34px); font-weight: 500; line-height: 1.5; letter-spacing: -0.04em; margin-bottom: clamp(32px, 3.5vw, 48px); }
.loc-copy b { color: var(--point); font-weight: 800; }
.loc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.loc-grid .loc-map { aspect-ratio: auto; min-height: 480px; }

/* 병원 배치도 */
.site-plan { padding: clamp(24px, 2.6vw, 36px); border-radius: var(--radius); background: var(--sky); }
.site-plan__eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .04em; color: var(--gray-700); }
.site-plan__tit { margin-top: 6px; font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; letter-spacing: -0.04em; }
.site-plan__map { position: relative; aspect-ratio: 5/3; margin-top: clamp(20px, 2vw, 32px); container-type: inline-size; }
.sp {
  position: absolute; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2cqw;
  border: 2px solid var(--navy); border-radius: 8px; background: var(--white); color: var(--navy); text-align: center;
}
.sp b { font-size: clamp(12px, 3cqw, 18px); font-weight: 800; }
.sp--eac { background: #dce8fa; border-color: var(--point); }
.sp--eac b { color: var(--point); }
.sp--col { justify-content: space-between; padding: 9cqw 1.4cqw 1.4cqw; }
.sp__tags { display: flex; flex-direction: column; gap: 1.6cqw; width: 100%; }
.sp__tags em { display: block; padding: 1.6cqw 0; border-radius: 6px; background: var(--navy); color: var(--white); font-style: normal; font-size: clamp(10px, 2.1cqw, 14px); font-weight: 700; }
.sp--eac .sp__tags em { background: var(--point); }
.sp--court { border: 1.5px dashed #a9cf7a; background: #e4efd9; }
.sp--court span { font-size: clamp(11px, 2.4cqw, 15px); font-weight: 700; color: #5e8a2a; }
.sp--park { background: repeating-linear-gradient(45deg, transparent 0 8px, rgba(11,42,94,.08) 8px 9px), var(--white); }
.sp--park span { font-size: clamp(11px, 2.5cqw, 16px); font-weight: 700; line-height: 1.4; color: var(--black); }
.sp--park i { display: grid; place-items: center; width: clamp(20px, 5.6cqw, 34px); aspect-ratio: 1; border-radius: 50%; color: var(--white); font-style: normal; font-size: clamp(11px, 2.6cqw, 16px); font-weight: 800; }
.sp--park-patient { border-color: #8cbf26; }
.sp--park-patient i { background: #8cbf26; }
.sp--park-out { border-color: #3aa8d8; }
.sp--park-out i { background: #3aa8d8; }
.sp-in { position: absolute; display: flex; align-items: center; justify-content: space-between; color: var(--navy); }
.sp-in__arrow { position: relative; width: 3px; height: 100%; margin-left: 18%; background: var(--navy); border-radius: 2px; }
.sp-in__arrow::before { content: ""; position: absolute; top: 0; left: 50%; width: 3.6cqw; height: 3.6cqw; border-top: 3px solid var(--navy); border-left: 3px solid var(--navy); transform: translate(-50%, 1px) rotate(45deg); transform-origin: center; }
.sp-in__txt { display: flex; flex-direction: column; align-items: center; margin-right: 10%; font-size: clamp(10px, 1.9cqw, 13px); line-height: 1.3; }
.sp-in__txt b { font-size: clamp(14px, 3.2cqw, 20px); font-weight: 800; }
.site-plan__legend { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: clamp(20px, 2vw, 28px); font-size: 14px; color: var(--gray-700); }
.site-plan__legend li { display: flex; align-items: center; gap: 6px; }
.site-plan__legend b { margin-right: 2px; color: var(--black); font-weight: 700; }
.lg { width: 12px; height: 12px; border-radius: 3px; }
.lg--eac { border: 2px solid var(--point); background: #dce8fa; }
.lg--patient { background: #8cbf26; }
.lg--out { background: #3aa8d8; }
/* 배치도 움직임 : 건물이 순서대로(--n) 톡 놓이고 → EAC 건물(B·C·E동)은 은은하게 숨쉬듯 빛남, 입구 화살표는 위로 까딱 */
.site-plan .sp, .site-plan .sp-in { opacity: 0; transform: translateY(14px) scale(.94); transition: opacity .5s var(--ease), transform .6s cubic-bezier(.34,1.56,.64,1), filter .35s; transition-delay: calc(var(--n) * 70ms + .3s); }
.site-plan.is-in .sp, .site-plan.is-in .sp-in { opacity: 1; transform: none; }
.site-plan.is-in .sp--eac { animation: spGlow 2.8s var(--ease) 1.4s infinite; }
.site-plan.is-in .sp--eac:nth-of-type(3) { animation-delay: 1.6s; }
.site-plan.is-in .sp--eac:nth-of-type(7) { animation-delay: 1.8s; }
@keyframes spGlow { 0%, 100% { box-shadow: 0 0 0 0 rgba(17,103,201,.35); } 50% { box-shadow: 0 0 0 6px rgba(17,103,201,0); } }
.site-plan.is-in .sp-in__arrow { animation: spBob 1.8s var(--ease) 1.2s infinite; }
@keyframes spBob { 0%, 100% { transform: none; } 50% { transform: translateY(-8%); } }
@media (prefers-reduced-motion: reduce) { .site-plan .sp, .site-plan .sp-in { opacity: 1; transform: none; transition: none; } .site-plan.is-in .sp--eac, .site-plan.is-in .sp-in__arrow { animation: none; } }
/* 범례에 마우스를 올리면(또는 탭) 해당 구역만 남기고 나머지는 흐리게 (common.js 10번) */
.site-plan__legend li { padding: 6px 12px 6px 8px; margin-left: -8px; border-radius: 999px; cursor: pointer; transition: background .25s; }
.site-plan__legend li:hover, .site-plan__legend li.is-on { background: var(--white); }
.site-plan__legend li:focus-visible { outline: 2px solid var(--point); outline-offset: 2px; }
.site-plan__map[data-focus] .sp, .site-plan__map[data-focus] .sp-in { filter: grayscale(1); opacity: .25; transition-delay: 0s; }
.site-plan__map[data-focus="eac"] [data-group="eac"], .site-plan__map[data-focus="patient"] [data-group="patient"], .site-plan__map[data-focus="out"] [data-group="out"] { filter: none; opacity: 1; transform: scale(1.04); z-index: 1; }

/* 주소 · 연락처 띠 */
.loc-info {
  display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap;
  margin-top: 20px; padding: clamp(28px, 3vw, 40px) clamp(24px, 3vw, 44px); border-radius: var(--radius); background: var(--navy); color: var(--white);
}
.loc-info__addr { font-size: clamp(20px, 1.9vw, 27px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.4; }
.loc-info__addr span { font-weight: 500; color: rgba(255,255,255,.6); }
.loc-info__contact { display: flex; flex-wrap: wrap; gap: 6px 28px; margin-top: 12px; font-size: 15px; }
.loc-info { position: relative; overflow: hidden; }
.loc-info::before { content: ""; position: absolute; right: -10%; top: -60%; width: 50%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(106,169,240,.28), transparent); pointer-events: none; }   /* 오른쪽 위 은은한 빛 */
.loc-info > * { position: relative; }
.loc-info__contact li { display: flex; align-items: center; gap: 10px; }
.loc-info__contact svg { width: 16px; height: 16px; fill: none; stroke: var(--point-light); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
/* 주소 복사 */
.loc-copy-btn { display: inline-flex; align-items: center; gap: 6px; margin-left: 12px; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--white); font-size: 13px; font-weight: 600; letter-spacing: -0.02em; vertical-align: 4px; transition: background .25s, color .25s; }
.loc-copy-btn span { color: inherit; }   /* 주소줄의 '(덕동동)' span 색이 버튼 글자에도 먹지 않게 */
.loc-copy-btn svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.loc-copy-btn:hover { background: var(--white); color: var(--navy); }
.loc-copy-btn.is-done { background: var(--point-light); color: var(--navy); }
.loc-info__contact span { color: rgba(255,255,255,.55); }
.loc-info__contact a { font-weight: 700; transition: color .2s; }
.loc-info__contact a:hover { color: var(--point-light); }
.loc-info__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.loc-info__btns a {
  display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  font-size: 15px; font-weight: 700; transition: background .25s, color .25s, border-color .25s;
}
.loc-info__btns a:hover { background: var(--white); border-color: var(--white); color: var(--navy); }
.loc-info__btns .dot { width: 10px; height: 10px; }
.loc-info__btns .dot--kakao { box-shadow: none; }

/* 주차 안내 */
.loc-notice { margin-top: 20px; padding: 20px 26px; border-left: 4px solid #f08a24; border-radius: 12px; background: #fff4e8; font-size: 16px; color: var(--gray-700); }
.loc-notice b { margin-right: 12px; color: #e0741a; font-weight: 800; }
@media (max-width: 1100px) {
  .loc-grid { grid-template-columns: 1fr; }
  .loc-grid .loc-map { min-height: 0; aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
  .loc-grid .loc-map { aspect-ratio: 4/3; }
  .sp { border-width: 1.5px; border-radius: 6px; }
  .sp__tags em { border-radius: 4px; }
  .site-plan__legend { flex-direction: column; font-size: 13px; }
  .loc-info__contact { flex-direction: column; }
  .loc-copy-btn { display: flex; width: max-content; margin: 12px 0 0; vertical-align: 0; }
  .loc-info__btns { width: 100%; }
  .loc-info__btns a { flex: 1; justify-content: center; height: 44px; padding: 0 12px; font-size: 14px; }
  .loc-notice { padding: 16px 18px; font-size: 15px; }
  .loc-notice b { display: block; margin: 0 0 4px; }
}

@media (max-width: 1100px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery--menu .gallery__item:nth-child(n) { grid-column: auto; grid-row: auto; }
  .gallery--menu .gallery__item:nth-child(3n+1) { grid-column: span 2; }  /* 태블릿·모바일: 큰 칸 1 + 작은 칸 2 반복 */
  .gallery--menu .gallery__item:nth-child(n) figure { aspect-ratio: 10/7; min-height: 0; }
  .gallery--menu .gallery__item:nth-child(n) figure > img { position: static; }

  .fee-list { --cols: 2; }
  .io-journey { --ico: 80px; }
  .io-pack__list { grid-template-columns: repeat(4, 1fr); }
  .io-meal__img { aspect-ratio: 16/8; }
  .io-diet__rules { grid-template-columns: 1fr; }
  .dm-intro, .eac-intro, .cc-intro { grid-template-columns: 1fr; }
  .cc-intro__img { aspect-ratio: 16/10; }
  /* 태블릿·모바일 : 세로 목록, 모든 카드에 설명 표시 (펼침 효과 없음) */
  .cc-prog { flex-direction: column; height: auto; }
  .cc-prog li, .cc-prog li:hover, .cc-prog li:focus-within, .cc-prog:not(:hover):not(:focus-within) li:first-child { flex: none; }
  .cc-prog li > * { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; padding: 26px 24px; }
  .cc-prog li > *::before { display: none; }
  .cc-prog__no { grid-column: 1; }
  .cc-prog__ico { display: none; }
  .cc-prog__en { grid-column: 1; margin-top: 14px; }
  .cc-prog__tit, .cc-prog li:hover .cc-prog__tit, .cc-prog li:focus-within .cc-prog__tit, .cc-prog:not(:hover):not(:focus-within) li:first-child .cc-prog__tit { grid-column: 1; color: var(--navy); }
  .cc-prog__txt, .cc-prog li:hover .cc-prog__txt, .cc-prog li:focus-within .cc-prog__txt, .cc-prog:not(:hover):not(:focus-within) li:first-child .cc-prog__txt { grid-column: 1; width: auto; max-height: none; margin-top: 10px; opacity: 1; transform: none; color: var(--gray-700); }
  .cc-prog__go, .cc-prog li:hover .cc-prog__go, .cc-prog li:focus-within .cc-prog__go, .cc-prog:not(:hover):not(:focus-within) li:first-child .cc-prog__go { grid-column: 2; grid-row: 1 / span 4; align-self: center; margin-top: 0; background: var(--white); border-color: var(--sky-line); color: var(--navy); transform: none; }
  .cc-prog li .cc-prog__no, .cc-prog:not(:hover):not(:focus-within) li:first-child .cc-prog__no { color: var(--navy); }
  .cc-prog li .cc-prog__en, .cc-prog:not(:hover):not(:focus-within) li:first-child .cc-prog__en { color: var(--point); }
  .dm-types { grid-template-columns: repeat(2, 1fr); }
  .dm-sym { grid-template-columns: 1fr; }
  .chips { grid-template-columns: repeat(2, 1fr); }
  .chips--3 { grid-template-columns: repeat(3, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__item, .bento__item:nth-child(n+4) { grid-column: span 1; }
  .bento__item:last-child { grid-column: span 2; }
  .bento__item:nth-child(4) .bento__img { aspect-ratio: 16/10; }
  .bento--2 .bento__item, .bento--2 .bento__item:last-child { grid-column: span 1; }
  .bento--2 .bento__item .bento__img { aspect-ratio: 16/10; }
}
@media (max-width: 768px) {
  .block__head { grid-template-columns: minmax(0, 1fr); }
  .block__head .lead { grid-column: 1; grid-row: 3; justify-self: start; text-align: left; margin-top: 14px !important; padding-right: 0; }
  .values, .mv { grid-template-columns: 1fr; }
  .values { gap: 10px; }
  .value { min-height: 200px; }
  .values__arrow { justify-self: center; width: 38px; height: 38px; rotate: 90deg; }
  .mv__item { min-height: 300px; }
  .mv__item::after { background: linear-gradient(180deg, rgba(6,18,40,.2), rgba(6,18,40,.6)); }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery--menu .gallery__item:nth-child(n) figcaption { padding: 14px; font-size: 15px; }
  .gallery--menu .gallery__item:nth-child(3n+1) figcaption { padding: 20px; font-size: 22px; }
  .gallery__item figcaption { font-size: 15px; margin-top: 10px; }
  .gallery--fac figcaption { flex-wrap: wrap; gap: 4px 8px; padding-bottom: 10px; }
  .gallery--fac figcaption em { order: 0; margin-left: 0; padding: 2px 8px; font-size: 11px; }
  .gallery--fac figcaption b { flex-basis: 100%; }
  .gallery--fac figure::before { width: 48px; height: 48px; font-size: 24px; }
  .lightbox { padding: 72px 12px; }
  .lightbox__nav { position: absolute; bottom: 20px; }
  .lightbox__prev { left: calc(50% - 64px); }
  .lightbox__next { right: calc(50% - 64px); }
  .lightbox__fig img { max-height: calc(100% - 100px); }
  .flow { grid-template-columns: 1fr; gap: 28px; }
  .flow__step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; align-items: start; text-align: left; }
  .flow__ico { grid-row: span 3; width: 64px; height: 64px; }
  .flow__ico svg { width: 30px; height: 30px; }
  .flow__no { margin-top: 4px; }
  .flow__txt br { display: none; }
  .flow__step:not(:last-child)::after { top: 72px; bottom: -24px; left: 31px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--sky-line) 0 6px, transparent 6px 12px); }
  .flow__step:not(:last-child)::before { display: none; }
  .lymph { grid-template-columns: 1fr; }
  .lymph__stat { flex-direction: column; align-items: flex-start; gap: 12px; }
  .stage-track { grid-template-columns: 1fr; gap: 4px; }
  .stage-track li, .stage-track li:first-child { padding: 30px 24px 34px; border-radius: 0; clip-path: polygon(0 0, 50% 18px, 100% 0, 100% calc(100% - 18px), 50% 100%, 0 calc(100% - 18px)); }
  .stage-track li:first-child { padding-top: 22px; border-radius: 16px 16px 0 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), 50% 100%, 0 calc(100% - 18px)); }
  .stage-track li::after { background: linear-gradient(180deg, transparent 30%, rgba(255,255,255,.38) 50%, transparent 70%); animation-name: stageFlowY; }
  @keyframes stageFlowY { 0% { transform: translateY(-100%); } 45%, 100% { transform: translateY(100%); } }
  .stage-track li:last-child { padding-bottom: 24px; border-radius: 0 0 16px 16px; clip-path: polygon(0 0, 50% 18px, 100% 0, 100% 100%, 0 100%); }
  .stage-track b { font-size: 26px; }
  .stage-track p { margin-top: 8px; }
  .bento { grid-template-columns: 1fr; }
  .bento__item, .bento__item:nth-child(n+4), .bento__item:last-child { grid-column: auto; }
  .bento__item:nth-child(n+4) .bento__img { aspect-ratio: 16/10; }
  .device { grid-template-columns: 1fr; }
  .device:nth-child(odd) .device__visual { order: 0; padding: 0 0 20px 20px; }
  .device__visual { padding: 0 0 20px 20px; }
  .device .device__visual::before, .device:nth-child(odd) .device__visual::before { inset: 20px 20px 0 0; }
  .device .device__no, .device:nth-child(odd) .device__no { left: -.04em; right: auto; font-size: 64px; }
  .device .device__freq, .device:nth-child(odd) .device__freq { right: 12px; bottom: 32px; padding: 10px 16px 10px 12px; font-size: 20px; }
  .device__spec dd { font-size: 14px; }
  .fee-bar { flex-direction: column; align-items: stretch; }
  .fee-cats { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); }
  .fee-cats button { flex: none; height: 42px; padding: 0 16px; font-size: 14px; }
  .fac-filter { margin-bottom: 24px; }   /* 위 .fee-cats margin 축약형이 아래 여백을 0으로 덮어써서 다시 지정 */
  .fee-search, .fee-search input { width: 100%; }
  .fee-list { --cols: 1; grid-template-rows: none; grid-auto-flow: row; }
  .fee-list li { padding: 16px 4px; }
  .fee-list__name { font-size: 15px; }
  .fee-list__price { font-size: 16px; }
  .op-cards { grid-template-columns: 1fr; }
  .op-card__word { font-size: 56px; }
  .op-table tbody th { width: 44px; }
  .op-hours { --label: 0px; }
  .op-hours__row { grid-template-columns: 1fr; gap: 8px; }
  .op-hours__label b { display: inline; margin-right: 8px; font-size: 16px; }
  .op-seg { padding: 0 8px; }
  .op-seg b { font-size: 12px; }
  .op-seg small { font-size: 10px; }
  .op-hours__ticks span:nth-child(even) { display: none; }
  .op-hours__row.is-today { padding-bottom: 36px; }   /* 바늘 시각 표시를 바 아래로 내려 '오늘' 배지와 겹치지 않게 */
  .op-needle { top: 0; }
  .op-needle::before { bottom: auto; top: 100%; translate: -50% 10px; }
  /* 입원 여정 : 세로 배치, 이동 점은 숨기고 아이콘 순차 점등만 유지 */
  .io-journey { --ico: 64px; grid-template-columns: 1fr; gap: 28px; }
  .io-journey::before { top: 32px; bottom: 32px; left: 31px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--sky-line) 0 6px, transparent 6px 12px); }
  .io-journey::after { display: none; }
  .io-journey__step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; align-items: start; text-align: left; }
  .io-journey__ico { grid-row: span 3; }
  .io-journey__ico svg { width: 28px; height: 28px; }
  .io-journey__step em { margin-top: 4px; }
  .io-journey__step p { max-width: none; }
  .io-pack__list { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .io-pack__list li { padding: 14px 16px; }
  .io-pack__list .io-pack__etc { grid-column: span 2; padding-top: 4px; }
  .io-meal__img { aspect-ratio: 4/3; }
  .io-meal__times { position: static; grid-template-columns: 1fr; gap: 8px; padding: 12px 0 0; }
  .io-meal__times li { background: var(--navy); box-shadow: none; padding: 16px 20px; }
  .io-diet__types { grid-template-columns: 1fr; }
  .io-diet__rules ul { grid-template-columns: 1fr; }
  .io-out { grid-template-columns: 1fr; }
  .io-out__side { position: static; }
  .io-out__en, .io-out__count { display: none; }
  .io-out__info { margin-top: 0; }
  .io-out__list::before { left: 27px; top: 28px; }
  .io-out__list li { grid-template-columns: 56px 1fr; column-gap: 18px; padding-bottom: 40px; }
  .io-out__list li:last-child::before { top: 28px; width: 56px; }
  .io-out__ico { width: 56px; height: 56px; }
  .io-out__ico svg { width: 24px; height: 24px; }
  .io-out__list em { padding-top: 4px; }
  .dm-orbit { width: min(100%, 340px); }
  .dm-types { grid-template-columns: 1fr; }
  .dm-types li { min-height: 0; }
  .dm-types__en { margin-top: 0; }
  .dm-cog { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .dm-cog li:last-child { grid-column: span 2; }
  .dm-cog b { margin-top: 20px; }
  .dm-bpsd { grid-template-columns: 1fr 1fr; }
  .dm-bpsd li { padding: 16px 0; }
  .dm-plan__track { display: none; }
  .dm-plan__phases { grid-template-columns: 1fr; margin-top: 0; }
  .dm-phase--2 { grid-column: auto; }
  .dm-phase.reveal { transition-delay: 0s; }
  .dm-photos { grid-template-columns: 1fr; }
  .dm-photos figure:last-child { margin-top: 0; }
  .slider__item { flex-basis: 88%; }
  .tabs button { height: 44px; padding: 0 18px; font-size: 15px; }
  .data-table { font-size: 14px; }
  .data-table th, .data-table td { padding: 14px 8px; }
}


/* ---------- 약관 · 방침 ---------- */
.policy { max-width: 1000px; margin: 0 auto; }
.policy__tit { margin: clamp(48px, 5vw, 72px) 0 20px; padding-bottom: 16px; border-bottom: 2px solid var(--navy); font-size: clamp(20px, 1.8vw, 26px); font-weight: 800; letter-spacing: -0.04em; }
.policy__tit:first-child { margin-top: 0; }
.policy__txt { margin-bottom: 32px; font-size: 16px; line-height: 1.9; color: var(--gray-700); word-break: keep-all; }
.policy__txt strong { display: block; margin: 20px 0 6px; font-size: 17px; color: var(--black); }
.policy__txt strong:first-child { margin-top: 0; }
.policy__table { margin: 16px 0; font-size: 15px; }
.policy__table th { background: var(--sky); font-weight: 700; }
.policy__table td { text-align: left; line-height: 1.7; }

/* ---------- 반응형 ---------- */
@media (max-width: 1100px) {
  .board-cards { grid-template-columns: repeat(2, 1fr); }
  .lnb ul { justify-content: flex-start; }
}
@media (max-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .doc-list { grid-template-columns: 1fr; }
  .doc-list__badge { display: none; }
  .doc__career { font-size: 14px; }
  .board-top { flex-direction: column; align-items: stretch; gap: 12px; }
  .board-search { width: 100%; }
  .board-list a { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 18px 40px 18px 4px; }
  .board-list a::after { right: 12px; opacity: 1; transform: translate(0, -50%) rotate(45deg); width: 8px; height: 8px; border-color: var(--gray-300); }
  .board-list__no { display: none; }
  .board-list li.is-pin .board-list__no { display: inline-block; justify-self: start; padding: 2px 10px; font-size: 12px; }
  .board-list__tit { font-size: 16px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .board-list__date { font-size: 13px; }
  .board-cards { grid-template-columns: 1fr 1fr; gap: 14px; }
  .board-cards .news-card:hover { transform: none; }
  .board-cards .news-card__body { padding: 18px 16px 20px; }
  .board-cards .news-card__title { font-size: 15px; }
  .board-cards .news-card__date { margin-top: 16px; font-size: 13px; }
  .info-table dl { grid-template-columns: 1fr; }
  .info-table dl { gap: 6px; }
  .lnb ul { gap: 24px; }
  .loc-map { aspect-ratio: 4/3; }
}


/* ---------- 온라인 문의 ---------- */
/* 왼쪽 진행표 + 전화 카드(따라옴) / 오른쪽 번호 단계 폼 */
.iq { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.iq-side { position: sticky; top: calc(var(--header-h) + 80px); display: grid; gap: 16px; }
body.is-scrolled .iq-side { top: 150px; }  /* 줄어든 헤더(72) + LNB 아래 */
.iq-prog { padding: 26px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); }
.iq-prog__tit { display: flex; justify-content: space-between; align-items: baseline; font-size: 15px; font-weight: 800; letter-spacing: -0.03em; }
.iq-prog__tit b { font-size: 14px; color: var(--gray-500); }
.iq-prog__tit b span { color: var(--point); font-size: 18px; }
.iq-prog__bar { height: 6px; margin-top: 14px; border-radius: 6px; background: var(--sky); overflow: hidden; }
.iq-prog__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--point-light), var(--point)); transition: width .6s var(--ease); }
.iq-prog__list { margin-top: 18px; list-style: none; counter-reset: iq; }
.iq-prog__list li { counter-increment: iq; }
.iq-prog__list a { display: flex; align-items: center; gap: 12px; padding: 10px 0; font-size: 15px; font-weight: 600; color: var(--gray-500); transition: color .3s; }
.iq-prog__list a:hover { color: var(--navy); }
.iq-prog__list a::before { content: counter(iq); flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gray-300); background: var(--white) no-repeat center / 12px; font-size: 12px; font-weight: 800; color: var(--gray-500); transition: background-color .3s, border-color .3s, color .3s; }
.iq-prog__list li.is-done a { color: var(--navy); }
.iq-prog__list li.is-done a::before { content: ""; border-color: var(--point); background-color: var(--point); background-image: var(--iq-check); }

.iq-call { padding: 26px; border-radius: var(--radius); background: var(--navy); color: var(--white); }
.iq-call__tit { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: rgba(255,255,255,.75); }
.iq-call__tit svg { width: 18px; height: 18px; fill: none; stroke: var(--point-light); stroke-width: 1.8; stroke-linejoin: round; }
.iq-call__num { display: block; margin-top: 10px; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; transition: color .2s; }
.iq-call__num:hover { color: var(--point-light); }
.iq-call__sub { margin-top: 4px; font-size: 14px; color: rgba(255,255,255,.6); }
.iq-call__sub a { margin-left: 4px; font-weight: 700; color: var(--white); }
.iq-call__hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.16); font-size: 13px; }
.iq-call__hours dt { color: rgba(255,255,255,.55); }
.iq-call__hours dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* 폼 공통 */
.iq { --iq-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.iq-sec { min-width: 0; margin: 0; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: border-color .4s, box-shadow .4s; }
.iq-sec + .iq-sec { margin-top: 16px; }
.iq-sec:focus-within { border-color: var(--sky-line); box-shadow: 0 24px 48px -32px rgba(11,42,94,.3); }
.iq-sec legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; margin-bottom: 24px; padding: 0; font-size: clamp(19px, 1.6vw, 22px); font-weight: 800; letter-spacing: -0.04em; }
.iq-sec legend + * { clear: both; }
.iq-sec__no { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sky) no-repeat center / 13px; color: var(--point); font-size: 14px; font-weight: 800; transition: background-color .3s, color .3s; }
.iq-sec.is-done .iq-sec__no { color: transparent; background-color: var(--point); background-image: var(--iq-check); }
.iq-sub { margin: 28px 0 12px; font-size: 15px; font-weight: 700; color: var(--gray-700); }

/* 1. 문의 유형 : 아이콘 카드 선택 */
.iq-type { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.iq-type__item { position: relative; display: flex; flex-direction: column; align-items: flex-start; padding: 22px; border-radius: 16px; border: 1.5px solid var(--line); cursor: pointer; transition: border-color .25s, background .25s, transform .25s var(--ease); }
.iq-type__item:hover { border-color: var(--sky-line); transform: translateY(-2px); }
.iq-type__item input { position: absolute; opacity: 0; pointer-events: none; }
.iq-type__item::after { content: ""; position: absolute; top: 18px; right: 18px; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--gray-300); background: var(--white) no-repeat center / 11px; transition: background-color .25s, border-color .25s; }
.iq-type__ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--sky); color: var(--point); transition: background .25s, color .25s; }
.iq-type__ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.iq-type__item b { margin-top: 18px; font-size: 17px; font-weight: 800; letter-spacing: -0.04em; color: var(--black); }
.iq-type__item small { margin-top: 4px; font-size: 14px; color: var(--gray-500); }
.iq-type__item:has(input:checked) { border-color: var(--point); background: #f5f9ff; }
.iq-type__item:has(input:checked) .iq-type__ico { background: var(--point); color: var(--white); }
.iq-type__item:has(input:checked)::after { border-color: var(--point); background-color: var(--point); background-image: var(--iq-check); }
.iq-type__item:has(input:focus-visible), .iq-seg label:has(input:focus-visible) { outline: 3px solid rgba(17,103,201,.35); outline-offset: 2px; }

/* 방문 이력 : 두 칸 토글 */
.iq-seg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 999px; background: var(--gray-50); }
.iq-seg label { position: relative; cursor: pointer; border-radius: 999px; }
.iq-seg input { position: absolute; opacity: 0; pointer-events: none; }
.iq-seg span { display: block; padding: 12px 24px; border-radius: 999px; font-size: 14px; color: var(--gray-500); white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s; }
.iq-seg b { margin-right: 6px; font-size: 15px; color: var(--gray-700); }
.iq-seg input:checked + span { background: var(--white); color: var(--gray-700); box-shadow: 0 4px 12px rgba(11,42,94,.1); }
.iq-seg input:checked + span b { color: var(--point); }

/* 입력칸 : 앞쪽 아이콘 + 힌트 */
.iq-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.iq-field + .iq-field { margin-top: 20px; }
.iq-grid .iq-field + .iq-field { margin-top: 0; }
.iq-field > label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; color: var(--gray-700); }
.iq-input { position: relative; display: flex; align-items: center; }
.iq-input > svg { position: absolute; left: 18px; width: 20px; height: 20px; fill: none; stroke: var(--gray-500); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; transition: stroke .2s; }
.iq-input input, .iq-input textarea { width: 100%; height: 54px; padding: 0 18px 0 50px; border: 1.5px solid var(--gray-100); border-radius: 14px; background: var(--gray-50); font: inherit; font-size: 16px; color: var(--black); transition: border-color .2s, background .2s, box-shadow .2s; }
.iq-input input::placeholder, .iq-input textarea::placeholder { color: var(--gray-300); }
.iq-input input:focus, .iq-input textarea:focus { outline: none; border-color: var(--point); background: var(--white); box-shadow: 0 0 0 4px rgba(17,103,201,.1); }
.iq-input:focus-within > svg { stroke: var(--point); }
.iq-input input:user-invalid, .iq-input textarea:user-invalid { border-color: #e5484d; background: #fff6f6; }
.iq-input--area textarea { height: 220px; padding: 16px 18px 40px; line-height: 1.7; resize: vertical; }
.iq-count { position: absolute; right: 16px; bottom: 12px; font-size: 13px; color: var(--gray-500); pointer-events: none; }
.iq-count b { color: var(--navy); }
.iq-hint { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 13px; color: var(--gray-500); }
.iq-hint::before { content: "i"; flex: none; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--gray-100); font-size: 10px; font-weight: 800; font-style: italic; color: var(--gray-700); }

/* 4. 동의 체크 */
.iq-agree { position: relative; display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 14px; background: var(--gray-50); font-size: 15px; font-weight: 600; color: var(--gray-700); cursor: pointer; transition: background .25s, color .25s; }
.iq-agree input { position: absolute; opacity: 0; pointer-events: none; }
.iq-agree__box { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--gray-300); background: var(--white) no-repeat center / 13px; transition: background-color .25s, border-color .25s; }
.iq-agree:has(input:checked) { background: #f5f9ff; color: var(--navy); }
.iq-agree input:checked + .iq-agree__box { border-color: var(--point); background-color: var(--point); background-image: var(--iq-check); }
.iq-agree input:focus-visible + .iq-agree__box { outline: 3px solid rgba(17,103,201,.35); outline-offset: 2px; }
.iq-agree__link { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--point); }
.iq-agree__link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.iq-agree__link:hover { text-decoration: underline; }

/* 접수 버튼 : 다 채우면 네이비 + 화살표 이동 */
.iq-submit { margin-top: 28px; }
.iq-submit button { display: flex; justify-content: center; align-items: center; gap: 10px; width: 100%; height: 64px; border-radius: 999px; background: var(--gray-100); color: var(--gray-500); font-size: 17px; font-weight: 700; transition: background .3s, color .3s, box-shadow .3s; }
.iq-submit button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.iq-submit button.is-ready { background: var(--navy); color: var(--white); box-shadow: 0 16px 32px -16px rgba(11,42,94,.6); }
.iq-submit button.is-ready:hover { background: var(--point); }
.iq-submit button.is-ready:hover svg { transform: translateX(4px); }
.iq-submit button:disabled { cursor: wait; opacity: .7; }
/* 접수 결과 안내 : 성공 연파랑 / 실패 빨강 */
.iq-msg { margin-top: 16px; padding: 16px 20px; border-radius: 14px; background: var(--sky); color: var(--navy); font-size: 15px; font-weight: 600; line-height: 1.6; text-align: center; }
.iq-msg:empty { display: none; }
.iq-msg.is-error { background: #fdf0f0; color: #c53030; }

@media (max-width: 1100px) {
  .iq { grid-template-columns: 1fr; }
  .iq-side { position: static; grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .iq-side { grid-template-columns: 1fr; }
  .iq-prog { display: none; }  /* 모바일은 섹션 번호 체크로 충분 */
  .iq-call { padding: 20px 22px; }
  .iq-call__num { margin-top: 6px; font-size: 24px; }
  .iq-call__hours { display: none; }
  .iq-sec { padding: 22px 18px; }
  .iq-type { grid-template-columns: 1fr; gap: 8px; }
  .iq-type__item { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; padding: 14px 16px; }
  .iq-type__ico { grid-row: span 2; width: 44px; height: 44px; }
  .iq-type__item b { margin-top: 0; font-size: 16px; }
  .iq-type__item small { margin-top: 0; }
  .iq-type__item::after { top: 50%; translate: 0 -50%; right: 16px; }
  .iq-seg { display: grid; }
  .iq-seg span { padding: 10px; text-align: center; font-size: 13px; }
  .iq-seg b { display: block; margin: 0 0 2px; }
  .iq-grid { grid-template-columns: 1fr; }
}
