/* 형인재 한의원 — 螢 Night & Hanji
   밤(먹색 남색) 위의 반딧불이 빛, 한지 위의 먹 글씨. 진사(朱砂) 낙관은 아주 조금만. */
:root {
  --night: #0c1423;
  --night-2: #13203a;
  --night-3: #1b2b4b;
  --ink: #1b2231;
  --ink-2: #444c5c;
  --muted: #6b7180;
  --hanji: #f4efe5;
  --hanji-2: #ebe3d3;
  --paper: #fbf9f4;
  --rule: #d9cfbd;
  --rule-d: rgba(255, 255, 255, .14);
  --oak: #9c7243;
  --gold: #c7a25a;
  --glow: #efe39a;
  --glow-2: #d8e27a;
  --seal: #a43c2c;
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --en: 'Cormorant Garamond', 'Noto Serif KR', serif;
  --wrap: 1240px;
  --gut: clamp(20px, 4vw, 48px);
  --head-h: 76px;
  --r: 4px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body { margin: 0; background: var(--hanji); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.75; letter-spacing: -.01em; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-weight: 700; line-height: 1.32; letter-spacing: -.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
::selection { background: var(--glow); color: var(--night); }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; background: var(--glow); color: var(--night); padding: 10px 16px; border-radius: var(--r); font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - var(--gut) * 2, var(--wrap)); margin-inline: auto; }
.wrap-n { width: min(100% - var(--gut) * 2, 860px); margin-inline: auto; }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 50px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; font-size: 16px; letter-spacing: -.01em; transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s; white-space: nowrap; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 58px; padding: 0 30px; font-size: 17px; }
.btn-block { display: flex; width: 100%; }
.btn-glow { background: var(--glow); color: var(--night); box-shadow: 0 0 0 0 rgba(239, 227, 154, .5), 0 8px 30px -8px rgba(239, 227, 154, .7); }
.btn-glow:hover { box-shadow: 0 0 0 6px rgba(239, 227, 154, .16), 0 10px 36px -6px rgba(239, 227, 154, .85); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .38); background: rgba(12, 20, 35, .25); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--glow); color: var(--glow); }
.btn-ink { background: var(--night); color: var(--hanji); }
.btn-ink:hover { background: var(--night-3); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--hanji); }

/* ---------- 낙관(seal) ---------- */
.seal { display: inline-grid; place-items: center; width: 52px; height: 52px; background: var(--seal); color: #fbeee6; font-family: var(--serif); font-weight: 900; font-size: 28px; line-height: 1; border-radius: 6px; box-shadow: inset 0 0 0 3px var(--seal), inset 0 0 0 4px rgba(255, 240, 230, .55); transform: rotate(-3deg); flex: none; }
.seal-s { width: 34px; height: 34px; font-size: 18px; border-radius: 4px; box-shadow: inset 0 0 0 2px var(--seal), inset 0 0 0 3px rgba(255, 240, 230, .5); }
.seal-l { width: 62px; height: 62px; font-size: 34px; }

/* ---------- 헤더 ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 50; color: #fff; transition: background .35s, color .35s, box-shadow .35s, transform .35s var(--ease); }
.head-in { height: var(--head-h); display: flex; align-items: center; gap: 28px; width: min(100% - var(--gut) * 2, 1400px); margin-inline: auto; }
.site-head.is-solid, body:not(.is-home) .site-head { background: rgba(12, 20, 35, .92); backdrop-filter: blur(14px); box-shadow: 0 1px 0 rgba(255, 255, 255, .06); }
.site-head.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo-ring { width: 34px; height: 34px; border-radius: 50%; border: 7px solid currentColor; box-shadow: 0 0 18px rgba(239, 227, 154, .45), inset 0 0 10px rgba(239, 227, 154, .3); position: relative; }
.logo-t { display: flex; flex-direction: column; line-height: 1.1; }
.logo-t b { font-family: var(--serif); font-size: 21px; font-weight: 700; letter-spacing: -.03em; }
.logo-t small { font-size: 9.5px; letter-spacing: .16em; opacity: .7; margin-top: 3px; }
.nav { margin-left: auto; }
.nav > ul { display: flex; gap: 2px; }
.nav-i { position: relative; }
.nav-i > a { display: block; padding: 10px 13px; font-size: 15.5px; font-weight: 600; opacity: .88; transition: opacity .2s, color .2s; }
.nav-i > a:hover, .nav-i > a[aria-current] { opacity: 1; color: var(--glow); }
.nav-sub { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px); min-width: 230px; padding: 10px; background: var(--paper); color: var(--ink); border-radius: 10px; box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transition: .25s var(--ease); }
.nav-i:hover .nav-sub, .nav-i:focus-within .nav-sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.nav-sub a { display: block; padding: 8px 12px; font-size: 14.5px; border-radius: 6px; }
.nav-sub a:hover { background: var(--hanji-2); color: var(--seal); }
.head-cta { display: flex; align-items: center; gap: 14px; }
.head-tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; position: relative; }
.burger span { position: absolute; left: 10px; right: 10px; height: 2px; background: currentColor; transition: .3s var(--ease); }
.burger span:first-child { top: 17px; } .burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }
.mnav { position: fixed; inset: var(--head-h) 0 0; background: var(--night); color: #fff; overflow: auto; padding: 12px var(--gut) 120px; }
.mnav > ul > li { border-bottom: 1px solid var(--rule-d); }
.mnav summary, .mnav-top { display: flex; justify-content: space-between; padding: 18px 0; font-family: var(--serif); font-size: 21px; font-weight: 700; list-style: none; cursor: pointer; }
.mnav summary::-webkit-details-marker { display: none; }
.mnav summary::after { content: '+'; color: var(--glow); font-family: var(--sans); font-weight: 400; }
.mnav details[open] summary::after { content: '–'; }
.mnav details ul { padding: 0 0 16px 4px; display: grid; gap: 2px; }
.mnav details a { display: block; padding: 8px 0; color: rgba(255, 255, 255, .78); font-size: 16px; }
.mnav-foot { display: grid; gap: 10px; margin-top: 24px; }
.mnav-foot .btn-line { color: #fff; border-color: rgba(255, 255, 255, .4); }
@media (max-width: 1180px) { .nav, .head-tel { display: none; } .burger { display: block; } .head-cta { margin-left: auto; } .burger { margin-left: 0; } }
@media (max-width: 560px) { :root { --head-h: 64px; } .head-cta .btn { display: none; } .logo-t b { font-size: 19px; } .logo-ring { width: 30px; height: 30px; border-width: 6px; } }

/* ---------- 홈 히어로 (스크롤 스크럽) ---------- */
.hero { position: relative; height: 260vh; background: var(--night); }
.hero-pin { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; color: #fff; }
.hero-poster, .hero-poster img, .hero-cv { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-cv { opacity: 0; transition: opacity .4s; }
.hero-cv.is-ready { opacity: 1; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 20, 35, .55) 0%, rgba(12, 20, 35, 0) 26%, rgba(12, 20, 35, 0) 42%, rgba(12, 20, 35, .72) 72%, rgba(12, 20, 35, .94) 100%), linear-gradient(90deg, rgba(12, 20, 35, .6), rgba(12, 20, 35, 0) 58%); }
.hero-han { position: absolute; right: clamp(16px, 6vw, 96px); top: calc(var(--head-h) + 5vh); display: flex; flex-direction: column; align-items: center; gap: .1em; font-family: var(--serif); font-weight: 900; font-size: clamp(56px, 9vh, 112px); line-height: 1.04; color: var(--glow); text-shadow: 0 0 28px rgba(239, 227, 154, .55), 0 0 80px rgba(239, 227, 154, .25); will-change: opacity, transform; }
.hero-copy { position: absolute; left: 0; right: 0; bottom: clamp(28px, 7vh, 72px); }
.hero-k { position: relative; height: 1.6em; font-family: var(--serif); font-size: clamp(14px, 1.3vw, 17px); color: var(--glow); letter-spacing: .02em; margin-bottom: 14px; }
.hero-k span { position: absolute; left: 0; top: 0; white-space: nowrap; transition: opacity .5s, transform .5s var(--ease); }
.hero-k [data-hero-k2] { font-family: var(--en); font-style: italic; font-size: 1.25em; opacity: 0; transform: translateY(10px); }
.hero.is-lit .hero-k [data-hero-k1] { opacity: 0; transform: translateY(-10px); }
.hero.is-lit .hero-k [data-hero-k2] { opacity: 1; transform: none; }
.hero-t { font-size: clamp(40px, 6.4vw, 92px); font-weight: 700; line-height: 1.12; letter-spacing: -.045em; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero-t em { font-style: normal; color: var(--glow); text-shadow: 0 0 34px rgba(239, 227, 154, .45); }
.hero-s { max-width: 640px; margin-top: 20px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.7; color: rgba(255, 255, 255, .88); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-facts { display: flex; gap: clamp(18px, 3vw, 48px); margin-top: 34px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .18); max-width: 760px; }
.hero-facts li { display: flex; flex-direction: column; font-size: 13.5px; color: rgba(255, 255, 255, .7); line-height: 1.4; }
.hero-facts b { font-family: var(--serif); font-size: clamp(17px, 1.6vw, 22px); color: #fff; font-weight: 700; margin-bottom: 4px; }
.hero-hint { position: absolute; right: var(--gut); bottom: 28px; display: flex; align-items: center; gap: 10px; font-size: 12.5px; letter-spacing: .08em; color: rgba(255, 255, 255, .7); transition: opacity .4s; }
.hero-hint span { width: 1px; height: 42px; background: linear-gradient(var(--glow), transparent); animation: hint 1.8s infinite var(--ease); transform-origin: top; }
.hero.is-lit .hero-hint { opacity: 0; }
@keyframes hint { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-width: 760px) {
  .hero { height: 230vh; }
  .hero-han { font-size: 54px; top: calc(var(--head-h) + 22px); right: 18px; }
  .hero-shade { background: linear-gradient(180deg, rgba(12, 20, 35, .5) 0%, rgba(12, 20, 35, 0) 22%, rgba(12, 20, 35, .15) 40%, rgba(12, 20, 35, .82) 62%, rgba(12, 20, 35, .97) 100%); }
  .hero-copy { bottom: 22px; }
  .hero-s { font-size: 15.5px; margin-top: 14px; }
  .hero-cta { margin-top: 20px; } .hero-cta .btn { flex: 1; min-height: 52px; padding: 0 14px; font-size: 15.5px; }
  .hero-facts { margin-top: 20px; padding-top: 16px; gap: 14px; justify-content: space-between; }
  .hero-facts li { font-size: 11.5px; } .hero-facts b { font-size: 15px; }
  .hero-hint { display: none; }
}
@media (max-width: 380px) { .hero-facts li:last-child { display: none; } }

/* ---------- 섹션 공통 ---------- */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto clamp(36px, 5vw, 60px); }
.sec-head-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; text-align: left; max-width: none; }
.sec-head-row .sec-s { max-width: 420px; text-align: right; }
.sec-en { font-family: var(--en); font-style: italic; font-size: clamp(19px, 1.8vw, 24px); color: var(--oak); line-height: 1.2; margin-bottom: 10px; }
.sec-en-l { text-align: left; }
.sec-h { font-size: clamp(30px, 3.6vw, 50px); letter-spacing: -.04em; }
.sec-h-l { text-align: left; }
.sec-s { margin-top: 14px; color: var(--ink-2); font-size: clamp(16px, 1.25vw, 18px); }
.sec-t { display: flex; align-items: center; gap: 14px; font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 28px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border-bottom: 1px solid currentColor; padding-bottom: 4px; white-space: nowrap; }
.more-light { color: var(--glow); }
@media (max-width: 760px) { .sec-head-row { flex-direction: column; align-items: start; } .sec-head-row .sec-s { text-align: left; } }

/* ---------- 시그니처 ---------- */
.sig { padding: clamp(80px, 10vw, 140px) 0 clamp(70px, 8vw, 110px); background: var(--hanji); }
.sig-list { display: flex; gap: 12px; height: clamp(460px, 62vh, 620px); }
.sig-i { position: relative; flex: 1; min-width: 0; border-radius: 14px; overflow: hidden; background: var(--night); transition: flex .7s var(--ease); }
.sig-i.is-on { flex: 3.2; }
.sig-i a { position: absolute; inset: 0; display: block; color: #fff; }
.sig-i img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.85) brightness(.8); }
.sig-i.is-on img { transform: scale(1); filter: none; }
.sig-i a::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 20, 35, .1) 30%, rgba(12, 20, 35, .88)); }
.sig-n { position: absolute; z-index: 2; left: 22px; top: 20px; font-family: var(--serif); font-weight: 900; font-size: 34px; color: var(--glow); text-shadow: 0 0 20px rgba(239, 227, 154, .5); }
.sig-body { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 26px; display: flex; flex-direction: column; gap: 8px; }
.sig-sub { font-size: 13.5px; color: var(--glow); font-weight: 600; letter-spacing: .01em; }
.sig-name { font-family: var(--serif); font-size: clamp(24px, 2.4vw, 36px); font-weight: 700; line-height: 1.2; letter-spacing: -.03em; }
.sig-text, .sig-go { max-width: 420px; font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, .86); opacity: 0; transform: translateY(12px); transition: .5s var(--ease); }
.sig-go { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--glow); }
.sig-i.is-on .sig-text, .sig-i.is-on .sig-go { opacity: 1; transform: none; transition-delay: .25s; }
.sig-i:not(.is-on) .sig-name { writing-mode: vertical-rl; font-size: 26px; position: absolute; bottom: 0; left: 0; }
.sig-i:not(.is-on) .sig-sub { display: none; }
.sig-dots { display: none; }
@media (max-width: 860px) {
  .sig-list { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); scrollbar-width: none; }
  .sig-list::-webkit-scrollbar { display: none; }
  .sig-i, .sig-i.is-on { flex: 0 0 82%; height: 470px; scroll-snap-align: center; }
  .sig-i img { transform: none; filter: none; }
  .sig-i .sig-text, .sig-i .sig-go { opacity: 1; transform: none; }
  .sig-i:not(.is-on) .sig-name { writing-mode: horizontal-tb; position: static; font-size: 28px; }
  .sig-i:not(.is-on) .sig-sub { display: block; }
  .sig-dots { display: flex; justify-content: center; gap: 8px; margin-top: 18px; }
  .sig-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--rule); transition: .3s; }
  .sig-dots button.is-on { width: 26px; background: var(--seal); }
}

/* ---------- 진료안내 (증상 찾기) ---------- */
.finder { padding: clamp(80px, 9vw, 130px) 0; background: var(--paper); border-top: 1px solid var(--rule); }
.fd-tabs { display: flex; justify-content: center; gap: 0; border-bottom: 1px solid var(--rule); margin-bottom: clamp(30px, 4vw, 50px); }
.fd-tabs button { display: inline-flex; align-items: center; gap: 10px; padding: 16px clamp(14px, 2.4vw, 34px) 18px; border: 0; background: none; font-family: var(--serif); font-size: clamp(16px, 1.5vw, 20px); font-weight: 700; color: var(--muted); position: relative; }
.fd-tabs button .seal { filter: grayscale(1) opacity(.45); transition: .3s; }
.fd-tabs button[aria-selected="true"] { color: var(--ink); }
.fd-tabs button[aria-selected="true"] .seal { filter: none; }
.fd-tabs button::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: -1px; height: 3px; background: var(--seal); transform: scaleX(0); transition: transform .4s var(--ease); }
.fd-tabs button[aria-selected="true"]::after { transform: scaleX(1); }
.fd-panel { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.fd-fig { position: sticky; top: calc(var(--head-h) + 24px); margin: 0; border-radius: 14px; overflow: hidden; background: var(--night); }
.fd-fig img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.fd-fig figcaption { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 16px; padding: 70px 24px 24px; color: #fff; background: linear-gradient(transparent, rgba(12, 20, 35, .92)); }
.fd-fig figcaption b { display: block; font-family: var(--serif); font-size: 26px; }
.fd-fig figcaption span:last-child { font-size: 14px; color: rgba(255, 255, 255, .78); }
.fd-t { font-size: clamp(26px, 2.6vw, 36px); }
.fd-t a:hover { color: var(--seal); }
.fd-d { margin-top: 12px; color: var(--ink-2); }
.fd-k { margin-top: 28px; font-weight: 700; font-size: 15px; color: var(--oak); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { padding: 9px 16px; border: 1px solid var(--rule); background: #fff; border-radius: 999px; font-size: 15px; font-weight: 600; transition: .2s; }
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: var(--glow); }
.rx { margin: 26px 0 28px; border-top: 2px solid var(--ink); counter-reset: rx; }
.rx li { border-bottom: 1px solid var(--rule); transition: opacity .3s, background .3s; }
.rx a { display: grid; grid-template-columns: 44px 1fr 22px; gap: 14px; align-items: center; padding: 16px 6px; }
.rx-n { font-family: var(--serif); font-size: 15px; color: var(--oak); font-weight: 700; }
.rx-t b { display: block; font-family: var(--serif); font-size: 18.5px; font-weight: 700; }
.rx-t small { display: block; margin-top: 2px; color: var(--muted); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rx svg { color: var(--oak); transition: transform .25s; }
.rx a:hover svg { transform: translateX(4px); color: var(--seal); }
.rx a:hover b { color: var(--seal); }
.rx.is-filtered li { opacity: .32; }
.rx.is-filtered li.is-match { opacity: 1; background: linear-gradient(90deg, rgba(239, 227, 154, .38), transparent 70%); }
@media (max-width: 860px) {
  .fd-tabs { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gut) * -1); padding-inline: var(--gut); }
  .fd-tabs::-webkit-scrollbar { display: none; }
  .fd-tabs button { flex: none; padding-inline: 14px; }
  .fd-panel { grid-template-columns: 1fr; }
  .fd-fig { position: relative; top: 0; }
  .fd-fig img { aspect-ratio: 16 / 11; }
  .rx a { grid-template-columns: 34px 1fr 18px; gap: 10px; }
}

/* ---------- 이름의 뜻 (밤) ---------- */
.name, .videos, .band, .phero { position: relative; background: radial-gradient(120% 90% at 80% 0%, var(--night-3) 0%, var(--night) 55%); color: #fff; overflow: hidden; isolation: isolate; }
.ff { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.name { padding: clamp(90px, 11vw, 160px) 0; }
.name-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 100px); align-items: center; }
.name-han { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.name-han div { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 34px 0 26px; border: 1px solid rgba(239, 227, 154, .22); border-radius: 999px 999px 14px 14px; background: linear-gradient(180deg, rgba(239, 227, 154, .07), transparent); }
.name-han b { font-family: var(--serif); font-weight: 900; font-size: clamp(64px, 8vw, 118px); line-height: 1; color: var(--glow); text-shadow: 0 0 30px rgba(239, 227, 154, .5), 0 0 90px rgba(239, 227, 154, .2); }
.name-han span { writing-mode: vertical-rl; font-size: 15px; letter-spacing: .3em; color: rgba(255, 255, 255, .72); }
.name-t { font-size: clamp(28px, 3.2vw, 44px); margin-bottom: 26px; }
.name-copy p { color: rgba(255, 255, 255, .84); margin-bottom: 16px; }
.name-copy strong { color: var(--glow); font-weight: 700; }
.name-moto { font-family: var(--en); font-style: italic; font-size: 26px; color: var(--glow) !important; margin: 26px 0 30px !important; }
.name .sec-en { color: var(--gold); }
@media (max-width: 860px) { .name-in { grid-template-columns: 1fr; } .name-han div { padding: 24px 0 18px; } }

/* ---------- 의료진 ---------- */
.doc-sec { padding: clamp(80px, 10vw, 140px) 0; background: var(--hanji); }
.dr { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(36px, 6vw, 96px); align-items: center; }
.dr-fig { margin: 0; position: relative; }
.dr-fig::before { content: ''; position: absolute; left: 8%; right: 8%; top: 6%; aspect-ratio: 1; border-radius: 50%; border: 22px solid var(--hanji-2); z-index: 0; }
.dr-fig img { position: relative; z-index: 1; mix-blend-mode: multiply; width: 100%; }
.dr-fig figcaption { position: relative; z-index: 2; margin-top: -40px; display: inline-flex; align-items: baseline; gap: 10px; padding: 14px 22px; background: var(--night); color: #fff; border-radius: 6px; font-size: 14px; }
.dr-fig figcaption b { font-family: var(--serif); font-size: 22px; }
.dr-fig figcaption span { font-family: var(--en); font-style: italic; color: var(--glow); font-size: 17px; }
.dr-q { margin: 26px 0 34px; padding-left: 20px; border-left: 3px solid var(--seal); font-family: var(--serif); font-size: clamp(18px, 1.7vw, 23px); line-height: 1.6; color: var(--ink); }
.dr-cv { display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; }
.dr-cv h3 { font-size: 16px; color: var(--oak); padding-bottom: 10px; border-bottom: 2px solid var(--ink); margin-bottom: 6px; font-family: var(--sans); font-weight: 800; letter-spacing: 0; }
.dr-cv li { padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: 15.5px; }
.dr-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; font-weight: 700; color: var(--seal); }
@media (max-width: 860px) { .dr { grid-template-columns: 1fr; } .dr-cv { grid-template-columns: 1fr; gap: 24px; } .dr-fig { max-width: 440px; } }

/* ---------- 시설 (드래그) ---------- */
.facility { padding: clamp(80px, 9vw, 130px) 0; background: var(--paper); border-top: 1px solid var(--rule); overflow: hidden; }
.fac-track { display: flex; gap: 16px; overflow-x: auto; padding: 0 var(--gut) 6px max(var(--gut), calc((100vw - var(--wrap)) / 2)); scroll-snap-type: x proximity; scrollbar-width: none; cursor: grab; }
.fac-track::-webkit-scrollbar { display: none; }
.fac-track.is-drag { cursor: grabbing; scroll-snap-type: none; }
.fac-i { flex: 0 0 clamp(280px, 42vw, 620px); margin: 0; scroll-snap-align: start; }
.fac-i:nth-child(even) { margin-top: 48px; }
.fac-i img { width: 100%; aspect-ratio: 1600 / 1132; object-fit: cover; border-radius: 12px; pointer-events: none; user-select: none; }
.fac-i figcaption { margin-top: 12px; font-family: var(--serif); font-size: 17px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.fac-i figcaption::before { content: ''; width: 22px; height: 1px; background: var(--oak); }
@media (max-width: 760px) { .fac-i { flex-basis: 82vw; } .fac-i:nth-child(even) { margin-top: 0; } }

/* ---------- 칼럼 목록 ---------- */
.column { padding: clamp(80px, 9vw, 130px) 0; background: var(--hanji); }
.plist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px 28px; }
.pitem a { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.pitem-img { display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 16 / 10; background: var(--hanji-2); }
.pitem-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pitem a:hover img { transform: scale(1.05); }
.pitem-t { display: flex; flex-direction: column; gap: 8px; }
.pitem-meta { display: flex; gap: 12px; font-size: 13px; color: var(--muted); }
.pitem-meta span { color: var(--seal); font-weight: 700; }
.pitem-t b { font-family: var(--serif); font-size: 20px; line-height: 1.45; font-weight: 700; letter-spacing: -.03em; }
.pitem a:hover b { color: var(--seal); }
.pitem-t small { font-size: 15px; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pitem-lead { grid-column: span 2; grid-row: span 2; }
.pitem-lead .pitem-img { aspect-ratio: 16 / 11; }
.pitem-lead b { font-size: clamp(22px, 2.3vw, 30px); }
.pitem-lead small { -webkit-line-clamp: 3; font-size: 16px; }
.plist-home .pitem:not(.pitem-lead) .pitem-img { display: none; }
.plist-home .pitem:not(.pitem-lead) a { padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.plist-home { grid-template-columns: 1.4fr 1fr; grid-auto-flow: dense; }
.plist-home .pitem-lead { grid-column: 1; grid-row: span 5; }
@media (max-width: 960px) { .plist-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plist-grid, .plist-home { grid-template-columns: 1fr; gap: 26px; } .pitem-lead { grid-column: auto; grid-row: auto; } .plist-home .pitem-lead { grid-row: auto; } .plist-blog .pitem:not(.pitem-lead) a { flex-direction: row; gap: 14px; } .plist-blog .pitem:not(.pitem-lead) .pitem-img { flex: 0 0 112px; aspect-ratio: 1; } .plist-blog .pitem:not(.pitem-lead) b { font-size: 17px; } .plist-blog .pitem:not(.pitem-lead) small { display: none; } }

/* ---------- 영상 ---------- */
.videos { padding: clamp(80px, 9vw, 120px) 0; }
.videos .sec-en { color: var(--gold); }
.vid-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.yt { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .82; transition: .4s; }
.yt:hover img { opacity: 1; transform: scale(1.03); }
.yt-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px; border-radius: 50%; background: rgba(239, 227, 154, .92); box-shadow: 0 0 30px rgba(239, 227, 154, .6); }
.yt-play::after { content: ''; position: absolute; left: 23px; top: 18px; border-left: 17px solid var(--night); border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 860px) { .vid-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- FAQ ---------- */
.faq { padding: clamp(70px, 8vw, 110px) 0; }
.faq-list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { display: flex; gap: 16px; align-items: baseline; padding: 22px 44px 22px 4px; font-family: var(--serif); font-size: clamp(17px, 1.5vw, 20px); font-weight: 700; cursor: pointer; list-style: none; position: relative; line-height: 1.5; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ''; position: absolute; right: 8px; top: 30px; width: 12px; height: 12px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 36px; }
.faq-q { font-family: var(--en); font-style: italic; font-size: 1.35em; color: var(--seal); flex: none; }
.faq-a { padding: 0 8px 26px 42px; color: var(--ink-2); font-size: 16.5px; }

/* ---------- 오시는 길 ---------- */
.visit { padding: clamp(80px, 9vw, 130px) 0; background: var(--paper); border-top: 1px solid var(--rule); }
.visit-in { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 5vw, 80px); }
.visit-note { margin-top: 12px; color: var(--seal); font-weight: 700; }
.visit-addr { display: flex; gap: 10px; margin: 26px 0 24px; font-family: var(--serif); font-size: 20px; font-weight: 700; line-height: 1.5; }
.visit-addr svg { color: var(--seal); margin-top: 5px; }
.visit-addr small { display: block; font-family: var(--sans); font-size: 14.5px; font-weight: 500; color: var(--muted); }
.hours { display: grid; }
.hours div { display: grid; grid-template-columns: 110px 1fr; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.hours dt { font-weight: 700; color: var(--oak); font-size: 15px; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; font-weight: 600; }
.hours dd small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.hours-lg { border-top: 2px solid var(--ink); }
.hours-lg dd { font-family: var(--serif); font-size: 19px; }
.dir { margin-top: 26px; }
.dir a { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px dashed var(--rule); transition: .2s; }
.dir a:hover { padding-left: 12px; color: var(--seal); }
.dir span { font-size: 14px; color: var(--muted); }
.dir b { font-family: var(--serif); font-size: 20px; font-weight: 700; }
.dir b.mail { font-family: var(--sans); font-size: 16px; }
.visit-map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 12px; filter: grayscale(.25) sepia(.12); background: var(--hanji-2); }
.visit-ways { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 28px; margin-top: 26px; }
.visit-ways h3 { font-family: var(--sans); font-size: 15px; font-weight: 800; color: var(--oak); letter-spacing: 0; margin-bottom: 4px; }
.visit-ways p { font-size: 15px; color: var(--ink-2); line-height: 1.65; }
.visit-links { display: flex; gap: 20px; margin-top: 22px; }
.visit-links a { font-weight: 700; border-bottom: 1px solid currentColor; }
@media (max-width: 860px) { .visit-in { grid-template-columns: 1fr; } .visit-ways { grid-template-columns: 1fr; } }

/* ---------- 상담 띠 ---------- */
.band { padding: clamp(70px, 8vw, 110px) 0; }
.band-in { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(24px, 4vw, 56px); align-items: center; }
.band-ring { width: clamp(70px, 8vw, 110px); aspect-ratio: 1; border-radius: 50%; border: clamp(14px, 1.6vw, 22px) solid var(--glow); box-shadow: 0 0 40px rgba(239, 227, 154, .5), inset 0 0 26px rgba(239, 227, 154, .35); }
.band-k { font-size: 14px; color: var(--glow); font-weight: 700; }
.band-t { font-size: clamp(24px, 2.8vw, 38px); margin: 8px 0 10px; }
.band-s { color: rgba(255, 255, 255, .72); font-size: 15.5px; }
.band-cta { display: flex; flex-direction: column; gap: 10px; }
@media (max-width: 960px) { .band-in { grid-template-columns: 1fr; } .band-cta { flex-direction: row; flex-wrap: wrap; } .band-ring { width: 64px; border-width: 12px; } }

/* ---------- 하위 페이지 히어로 ---------- */
.phero { padding: calc(var(--head-h) + clamp(28px, 4vw, 56px)) 0 clamp(54px, 6vw, 90px); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: rgba(255, 255, 255, .62); margin-bottom: clamp(24px, 3vw, 40px); }
.crumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; opacity: .5; }
.crumbs a:hover { color: var(--glow); }
.crumbs [aria-current] { color: rgba(255, 255, 255, .9); }
.phero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.phero-solo { grid-template-columns: 1fr; max-width: 860px; }
.phero-text .seal { margin-bottom: 22px; }
.phero-t { font-size: clamp(32px, 4.4vw, 60px); letter-spacing: -.045em; line-height: 1.2; }
.phero-lead { margin-top: 20px; max-width: 640px; color: rgba(255, 255, 255, .82); font-size: clamp(16px, 1.3vw, 18.5px); }
.phero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.phero-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--rule-d); font-size: 14px; color: rgba(255, 255, 255, .7); }
.phero-meta li::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); vertical-align: middle; }
.phero-meta a { color: var(--glow); }
.phero-fig { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(239, 227, 154, .14); }
.phero-fig img { width: 100%; max-height: 520px; object-fit: cover; }
.phero-post .crumbs ol { margin-bottom: 26px; }
.post-cat a { display: inline-block; margin-bottom: 14px; color: var(--glow); font-weight: 700; font-size: 15px; border-bottom: 1px solid currentColor; }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 28px; font-size: 14px; color: rgba(255, 255, 255, .72); line-height: 1.5; }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: var(--hanji); }
.byline b { color: #fff; }
@media (max-width: 860px) { .phero-grid { grid-template-columns: 1fr; } .phero-fig { order: -1; } .phero-fig img { max-height: 300px; } .phero-cta .btn { flex: 1; } }

/* ---------- 본문 ---------- */
.doc { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); padding: clamp(56px, 7vw, 96px) 0; align-items: start; }
.doc-side { position: sticky; top: calc(var(--head-h) + 24px); display: grid; gap: 22px; }
.doc-solo { display: block; }
.side-k { font-size: 13px; font-weight: 800; color: var(--oak); letter-spacing: .04em; margin-bottom: 10px; }
.toc ol { border-left: 1px solid var(--rule); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.toc a:hover, .toc a.is-on { color: var(--seal); border-left-color: var(--seal); }
.side-card { padding: 22px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; display: grid; gap: 10px; }
.side-card .hours { margin-bottom: 8px; }
.side-card .hours div { grid-template-columns: 1fr; padding: 8px 0; }
.side-card .hours dd { font-size: 15px; }
.prose { max-width: 760px; min-width: 0; }
.prose > * + * { margin-top: 18px; }
.prose h2 { font-size: clamp(25px, 2.5vw, 34px); margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--head-h) + 20px); }
.prose h2:first-child, .prose .kick:first-child + h2 { margin-top: 0; border-top: 0; padding-top: 0; }
.prose .kick + h2 { margin-top: 6px; border-top: 0; padding-top: 0; }
.prose h3 { font-size: clamp(20px, 1.9vw, 24px); margin-top: 40px; }
.prose h4 { font-size: 18px; margin-top: 28px; }
.prose p { font-size: 17px; line-height: 1.85; color: #2a3140; }
.prose .kick { margin-top: 56px; font-family: var(--en); font-style: italic; font-size: 21px; color: var(--oak); line-height: 1.35; }
.prose .kick:first-child { margin-top: 0; }
.prose .step { display: inline-block; font-family: var(--serif); font-weight: 900; color: var(--seal); letter-spacing: .06em; font-size: 15px; margin-top: 26px; }
.prose .term { font-family: var(--serif); font-weight: 700; font-size: 18px; color: var(--ink); margin-top: 22px; }
.prose .term::before { content: ''; display: inline-block; width: 18px; height: 1px; background: var(--seal); vertical-align: middle; margin-right: 10px; }
.prose strong { font-weight: 700; }
.plist { display: grid; gap: 0; border-top: 1px solid var(--rule); }
.plist li { position: relative; padding: 12px 6px 12px 32px; border-bottom: 1px solid var(--rule); font-size: 16.5px; line-height: 1.65; }
ul.plist li::before { content: ''; position: absolute; left: 8px; top: 21px; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--seal); }
ol.plist { counter-reset: n; }
ol.plist li { counter-increment: n; }
ol.plist li::before { content: counter(n, decimal-leading-zero); position: absolute; left: 2px; top: 13px; font-family: var(--serif); font-weight: 700; font-size: 14px; color: var(--seal); }
.prose blockquote { margin: 28px 0; padding: 22px 26px; background: var(--paper); border-left: 3px solid var(--seal); font-family: var(--serif); font-size: 19px; line-height: 1.7; }
.pfig { margin: 30px 0; }
.pfig img, .pgal img { border-radius: 10px; width: 100%; }
.pgal { display: grid; gap: 12px; margin: 30px 0; }
.pgal figure { margin: 0; }
.pgal-2 { grid-template-columns: 1fr 1fr; }
.pgal-3 { grid-template-columns: repeat(3, 1fr); }
.pgal-4 { grid-template-columns: repeat(2, 1fr); }
.ptable { overflow-x: auto; margin: 26px 0; }
.ptable table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.ptable th { background: var(--night); color: #fff; padding: 12px; text-align: left; font-weight: 700; }
.ptable td { padding: 12px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.disclaimer { margin-top: 48px !important; padding: 16px 18px; background: var(--hanji-2); border-radius: 8px; font-size: 14px !important; color: var(--muted) !important; line-height: 1.6 !important; }
.empty { padding: 40px 0; color: var(--muted); }
.prose-intro { margin-bottom: 44px; }
.author { display: flex; gap: 20px; margin-top: 56px !important; padding: 26px; background: var(--paper); border: 1px solid var(--rule); border-radius: 12px; }
.author img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: var(--hanji-2); flex: none; }
.author-k { font-size: 13px; font-weight: 800; color: var(--oak); }
.author-n { font-family: var(--serif); font-size: 20px !important; font-weight: 700; margin: 2px 0 8px !important; color: var(--ink) !important; }
.author-n small { font-family: var(--sans); font-size: 13.5px; font-weight: 500; color: var(--muted); margin-left: 6px; }
.author p:not(.author-k):not(.author-n) { font-size: 15px !important; line-height: 1.7 !important; color: var(--ink-2) !important; }
.author a { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-weight: 700; color: var(--seal); font-size: 15px; }
.post-cover { margin: clamp(-40px, -4vw, -20px) auto 0; position: relative; z-index: 2; }
.post-cover img { width: 100%; border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .4); }
.doc-post { padding-top: clamp(40px, 5vw, 70px); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 10px 0 60px; }
.post-nav a { display: block; padding: 20px 22px; border: 1px solid var(--rule); border-radius: 10px; font-family: var(--serif); font-weight: 700; font-size: 16.5px; line-height: 1.5; background: var(--paper); }
.post-nav a[rel="next"] { text-align: right; }
.post-nav a:hover { border-color: var(--seal); color: var(--seal); }
.post-nav small { display: block; font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: 4px; }
@media (max-width: 1000px) { .doc { grid-template-columns: 1fr; } .doc-side { position: static; order: 2; } .toc { display: none; } }
@media (max-width: 620px) { .pgal-3 { grid-template-columns: 1fr 1fr; } .author { flex-direction: column; } .post-nav { grid-template-columns: 1fr; } .post-nav a[rel="next"] { text-align: left; } }

/* ---------- 관련 카드 ---------- */
.related, .kids { padding: clamp(56px, 7vw, 90px) 0; }
.related + .related { padding-top: 0; }
.kids { padding-top: clamp(60px, 7vw, 100px); }
.rgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rcard a { position: relative; display: grid; grid-template-rows: auto 1fr; height: 100%; background: var(--paper); border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.rcard a:hover { transform: translateY(-4px); box-shadow: 0 24px 50px -28px rgba(12, 20, 35, .45); border-color: var(--oak); }
.rcard-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--night); }
.rcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.rcard a:hover img { transform: scale(1.05); }
.rcard-t { display: block; padding: 20px 56px 22px 22px; }
.rcard-t b { display: block; font-family: var(--serif); font-size: 19.5px; font-weight: 700; margin-bottom: 6px; }
.rcard-t small { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rcard-go { position: absolute; right: 18px; bottom: 22px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--rule); color: var(--oak); transition: .3s; }
.rcard a:hover .rcard-go { background: var(--night); color: var(--glow); border-color: var(--night); }
.related-more { margin-top: 26px; }
.related-more a { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--seal); border-bottom: 1px solid currentColor; padding-bottom: 3px; }
@media (max-width: 960px) { .rgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .rgrid { grid-template-columns: 1fr; } .rcard a { grid-template-rows: none; grid-template-columns: 112px 1fr; } .rcard-img { aspect-ratio: auto; height: 100%; } .rcard-t { padding: 14px 40px 14px 14px; } .rcard-t b { font-size: 17px; } .rcard-t small { -webkit-line-clamp: 2; font-size: 13.5px; } .rcard-go { right: 10px; bottom: 50%; transform: translateY(50%); width: 26px; height: 26px; border: 0; } }

/* ---------- 블로그 ---------- */
.blog { padding: clamp(50px, 6vw, 80px) 0 clamp(70px, 8vw, 110px); }
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.blog-filter a { display: inline-block; padding: 8px 16px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14.5px; font-weight: 600; background: var(--paper); }
.blog-filter a:hover { border-color: var(--seal); color: var(--seal); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 60px; }
.pager a, .pager span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-weight: 700; font-variant-numeric: tabular-nums; }
.pager a:hover { background: var(--hanji-2); }
.pager span { background: var(--night); color: var(--glow); }

/* ---------- 소개 ---------- */
.about-name { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 90px); align-items: center; padding: clamp(70px, 8vw, 120px) 0; }
.about-sym { margin: 0; }
.about-sym img { border-radius: 50%; box-shadow: 0 30px 70px -30px rgba(12, 20, 35, .35); }
@media (max-width: 860px) { .about-name { grid-template-columns: 1fr; } .about-sym { max-width: 360px; } }

/* ---------- 상담 폼 ---------- */
.ask { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(30px, 5vw, 80px); padding: clamp(60px, 7vw, 100px) 0; }
.ask-form { background: var(--paper); border: 1px solid var(--rule); border-radius: 14px; padding: clamp(24px, 3.5vw, 44px); display: grid; gap: 22px; align-content: start; }
.form-t { font-size: 26px; }
.form-s { color: var(--muted); margin-top: -12px; font-size: 15px; }
.line { display: grid; gap: 4px; }
.line > span, .qf-l { font-size: 14px; font-weight: 700; color: var(--oak); }
.line input, .line textarea, .qf-etc input { width: 100%; border: 0; border-bottom: 1.5px solid var(--rule); background: transparent; padding: 10px 0; font: inherit; font-size: 17px; color: var(--ink); border-radius: 0; transition: border-color .2s; }
.line input:focus, .line textarea:focus, .qf-etc input:focus { outline: 0; border-bottom-color: var(--ink); }
.line textarea { resize: vertical; min-height: 90px; }
.tabs-f, .qf { border: 0; padding: 0; margin: 0; min-width: 0; }
.tabs-f legend, .qf legend { font-size: 14px; font-weight: 700; color: var(--oak); margin-bottom: 10px; padding: 0; }
.tabs-f { display: flex; flex-wrap: wrap; gap: 8px; }
.tabs-f label, .qf-ch label:not(.qf-etc) { position: relative; }
.tabs-f input, .qf-ch input[type=radio], .qf-ch input[type=checkbox] { position: absolute; opacity: 0; pointer-events: none; }
.tabs-f span, .qf-ch label:not(.qf-etc) span { display: inline-block; padding: 9px 15px; border: 1px solid var(--rule); border-radius: 999px; font-size: 15px; font-weight: 600; cursor: pointer; background: #fff; transition: .2s; }
.tabs-f input:checked + span, .qf-ch input:checked + span { background: var(--night); color: var(--glow); border-color: var(--night); }
.tabs-f input:focus-visible + span, .qf-ch input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.agree input { margin-top: 5px; accent-color: var(--seal); width: 18px; height: 18px; flex: none; }
.agree a { text-decoration: underline; }
.form-note { font-size: 13.5px; color: var(--muted); text-align: center; }
.form-note.is-err { color: var(--seal); font-weight: 700; }
.dir-light { margin-top: 20px; }
@media (max-width: 860px) { .ask { grid-template-columns: 1fr; } }

/* 비대면 설문 */
.qwrap { padding: clamp(50px, 6vw, 80px) 0 clamp(70px, 8vw, 110px); }
.qform { margin-top: 36px; }
.qsteps { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.qsteps::-webkit-scrollbar { display: none; }
.qsteps li { flex: none; display: flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px; font-size: 13.5px; font-weight: 600; color: var(--muted); background: var(--hanji-2); }
.qsteps li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #fff; font-weight: 800; font-size: 12px; }
.qsteps li[aria-current] { background: var(--night); color: #fff; }
.qsteps li[aria-current] span { background: var(--glow); color: var(--night); }
.qsteps li.is-done span { background: var(--seal); color: #fff; }
.qs { display: grid; gap: 28px; }
.qs-t { display: flex; align-items: center; gap: 12px; font-size: 24px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.qs-t span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--seal); color: #fff; font-size: 17px; }
.qf-l { display: block; color: var(--ink); font-size: 16px; line-height: 1.55; }
.qf-l i { color: var(--seal); font-style: normal; margin-left: 4px; }
.qf-ch { display: flex; flex-wrap: wrap; gap: 8px; }
.qf-etc { display: flex; align-items: center; gap: 8px; flex: 1 1 200px; font-size: 14px; color: var(--muted); }
.qf.is-err legend .qf-l, .qf.is-err .qf-l { color: var(--seal); }
.qnav { display: flex; justify-content: space-between; gap: 10px; }
.qnav .btn { flex: 1; }
.qnav .btn:disabled { opacity: .35; pointer-events: none; }

/* ---------- 푸터 ---------- */
.site-foot { background: #090f1b; color: rgba(255, 255, 255, .72); padding: clamp(60px, 7vw, 90px) 0 calc(40px + env(safe-area-inset-bottom)); font-size: 14.5px; }
.foot-top { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 9fr); gap: clamp(30px, 5vw, 70px); padding-bottom: 44px; border-bottom: 1px solid var(--rule-d); }
.logo-light { color: #fff; }
.foot-moto { margin: 20px 0 22px; font-family: var(--serif); color: rgba(255, 255, 255, .86); font-size: 16px; line-height: 1.7; }
.foot-sns { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-sns a { display: inline-block; padding: 6px 12px; border: 1px solid var(--rule-d); border-radius: 999px; font-size: 13px; }
.foot-sns a:hover { border-color: var(--glow); color: var(--glow); }
.foot-cols { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
.fh { font-family: var(--sans); font-size: 15px; font-weight: 800; color: #fff; margin-bottom: 12px; letter-spacing: 0; }
.fh a:hover { color: var(--glow); }
.fcol li { padding: 3px 0; }
.fcol a { font-size: 13.5px; color: rgba(255, 255, 255, .6); }
.fcol a:hover { color: var(--glow); }
.foot-info { padding-top: 30px; display: grid; gap: 6px; font-size: 13.5px; }
.foot-info b { color: #fff; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; }
.foot-legal a { color: #fff; font-weight: 700; }
@media (max-width: 1000px) { .foot-top { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 620px) { .foot-cols { grid-template-columns: 1fr 1fr; } .fcol:nth-child(n+3) li:nth-child(n+6) { display: none; } }

/* ---------- 모바일 하단 독 ---------- */
.dock { display: none; }
@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .dock { position: fixed; z-index: 45; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 6px; padding: 6px; background: rgba(12, 20, 35, .94); backdrop-filter: blur(12px); border-radius: 18px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5); transition: transform .4s var(--ease); }
  .dock.is-away { transform: translateY(140%); }
  .dock a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; border-radius: 13px; color: #fff; font-size: 12px; font-weight: 700; }
  .dock svg { font-size: 19px; }
  .dock-main { background: var(--glow); color: var(--night) !important; flex-direction: row !important; gap: 8px !important; font-size: 15px !important; }
}

/* ---------- 등장 (transform만 — 내용은 항상 보임) ---------- */
.rv { transform: translateY(28px); transition: transform 1s var(--ease); }
.rv.is-in { transform: none; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .rv { transform: none; } }
.pfig img { max-height: 640px; width: auto; margin-inline: auto; }
.pgal img { aspect-ratio: 4 / 3; object-fit: cover; }
.pgal-2 img { aspect-ratio: auto; }
@media (max-width: 620px) { .pfig img { max-height: 460px; } }

/* =========================================================
   상세 페이지 — 의미 기반 컴포넌트 (x-)
   규칙: 제목 묶음 = 가운데 · 본문 = 읽기 폭 왼쪽 정렬 · 항목 = 같은 크기 카드
   ========================================================= */
.secnav { position: sticky; top: 0; z-index: 30; background: rgba(251, 249, 244, .94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); transition: top .35s var(--ease); }
.secnav.is-pushed { top: var(--head-h); }
.secnav ol { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; }
.secnav ol::-webkit-scrollbar { display: none; }
.secnav a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: .25s; }
.secnav a:hover { color: var(--ink); background: var(--hanji-2); }
.secnav a.is-on { background: var(--night); color: var(--glow); }

/* 섹션 */
.xs { position: relative; padding: clamp(72px, 8vw, 116px) 0; overflow: hidden; isolation: isolate; }
.xs-paper { background: var(--paper); }
.xs-hanji { background: var(--hanji); }
.xs-tint { background: var(--hanji-2); }
.xs-night, .xs-img { background: var(--night); color: #fff; }
.xs-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.08); transition: transform 1.8s var(--ease); }
.xs-img::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12, 20, 35, .88), rgba(12, 20, 35, .76) 50%, rgba(12, 20, 35, .92)); }
.xs.is-in .xs-bg { transform: scale(1); }
.xs-in { display: flex; flex-direction: column; align-items: stretch; gap: clamp(28px, 3.4vw, 48px); }
.xs-in > * { margin: 0; }

/* 제목 묶음 */
.x-head { max-width: 820px; margin-inline: auto !important; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.x-head > * { margin: 0; }
.x-head .x-eb { font-family: var(--en); font-style: italic; font-size: clamp(17px, 1.5vw, 21px); color: var(--oak); line-height: 1.3; }
.x-head .x-h2 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.32; letter-spacing: -.04em; scroll-margin-top: 150px; }
.x-head .x-h2 strong { color: var(--seal); font-weight: 700; }
.x-head .x-h2::after { content: ""; display: block; width: 36px; height: 3px; margin: 20px auto 0; background: var(--seal); border-radius: 2px; }
.x-head p:not(.x-eb) { font-size: 17px; line-height: 1.8; color: var(--ink-2); max-width: 680px; }
.x-head p strong { color: var(--ink); font-weight: 700; }
.x-head .x-lead { font-family: var(--serif); font-size: clamp(18px, 1.7vw, 22px); color: var(--ink); font-weight: 600; }
.xs-night .x-head .x-eb, .xs-img .x-head .x-eb { color: var(--gold); }
.xs-night .x-head .x-h2 strong, .xs-img .x-head .x-h2 strong { color: var(--glow); }
.xs-night .x-head .x-h2::after, .xs-img .x-head .x-h2::after { background: var(--glow); }
.xs-night .x-head p:not(.x-eb), .xs-img .x-head p:not(.x-eb) { color: rgba(255, 255, 255, .8); }
.xs-night .x-head p strong, .xs-img .x-head p strong, .xs-night .x-head .x-lead, .xs-img .x-head .x-lead { color: #fff; }

/* 본문 */
.x-text { max-width: 820px; width: 100%; margin-inline: auto !important; display: flex; flex-direction: column; gap: 14px; }
.x-text > * { margin: 0; }
.x-text p { font-size: 17px; line-height: 1.85; color: #2c3342; }
.x-text p strong, .x-c p strong, .x-checks strong, .x-split-txt p strong { color: var(--ink); font-weight: 700; box-shadow: inset 0 -.42em 0 rgba(239, 227, 154, .65); }
.x-text h3, .x-split-txt h3 { font-size: clamp(21px, 2vw, 26px); line-height: 1.4; margin-top: 12px; }
.x-text h4 { font-size: 18px; }
.x-text .x-lead { font-family: var(--serif); font-size: clamp(19px, 1.8vw, 23px); line-height: 1.6; font-weight: 600; color: var(--ink); }
.x-text .x-lead strong { box-shadow: none; color: var(--seal); }
.x-text .x-eb, .x-split-txt .x-eb { font-family: var(--en); font-style: italic; font-size: 19px; color: var(--oak); line-height: 1.3; }
.x-note { font-size: 13.5px !important; color: var(--muted) !important; line-height: 1.6 !important; }
.x-step, .x-h-step { font-family: var(--serif); color: var(--seal) !important; font-weight: 700; }
.x-text blockquote { margin: 0; padding: 22px 26px; border-left: 3px solid var(--seal); background: rgba(255, 255, 255, .6); font-family: var(--serif); font-size: 19px; line-height: 1.7; border-radius: 0 12px 12px 0; }
.xs-night .x-text p, .xs-img .x-text p, .xs-night .x-split-txt p, .xs-img .x-split-txt p { color: rgba(255, 255, 255, .84); }
.xs-night .x-text p strong, .xs-img .x-text p strong, .xs-night .x-c p strong, .xs-img .x-c p strong, .xs-night .x-checks strong, .xs-img .x-checks strong { color: #fff; box-shadow: inset 0 -.42em 0 rgba(239, 227, 154, .28); }
.xs-night .x-text .x-lead, .xs-img .x-text .x-lead, .xs-night h3, .xs-img h3 { color: #fff; }
.xs-night .x-text .x-lead strong, .xs-img .x-text .x-lead strong { color: var(--glow); }
.x-vline { display: block; width: 1px; height: 56px; margin-inline: auto !important; background: linear-gradient(var(--oak), transparent); transform-origin: top; transform: scaleY(0); transition: transform 1.2s var(--ease); }
.x-vline.is-in { transform: scaleY(1); }
.xs-night .x-vline, .xs-img .x-vline { background: linear-gradient(var(--glow), transparent); }

/* 숫자 */
.x-stat { display: flex; align-items: baseline; gap: 4px; margin: 0; }
.x-head .x-stat, .x-c-icon .x-stat { justify-content: center; }
.x-num { font-family: var(--serif); font-weight: 900; font-size: clamp(32px, 3.6vw, 48px); line-height: 1.05; color: var(--seal); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.x-stat small { font-family: var(--serif); font-weight: 700; font-size: 19px; color: var(--seal); }
.xs-night .x-num, .xs-img .x-num, .xs-night .x-stat small, .xs-img .x-stat small { color: var(--glow); }

/* 칩 */
.x-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 900px; margin-inline: auto !important; }
.x-chip { display: inline-flex; align-items: center; padding: 9px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--rule); font-size: 15px; font-weight: 700; color: var(--ink); box-shadow: 0 6px 18px -12px rgba(12, 20, 35, .4); }
.x-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--seal); margin-right: 8px; }
.xs-night .x-chip, .xs-img .x-chip { background: rgba(255, 255, 255, .07); border-color: rgba(239, 227, 154, .4); color: var(--glow); box-shadow: none; }
.xs-night .x-chip::before, .xs-img .x-chip::before { background: var(--glow); }
.x-c .x-chips { justify-content: flex-start; margin: 0 !important; }
.x-c .x-chip { padding: 6px 12px; font-size: 13.5px; box-shadow: none; background: var(--hanji); }

/* 이미지 */
.x-img { margin: 0; border-radius: 14px; overflow: hidden; background: var(--hanji-2); }
.x-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.x-img-wide { max-width: 1000px; width: 100%; margin-inline: auto !important; box-shadow: 0 30px 70px -44px rgba(12, 20, 35, .5); }
.x-img-wide img { max-height: 620px; }
.x-img-s { background: none; width: 72px; margin-inline: auto !important; }
.x-ico { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: rgba(164, 60, 44, .08); color: var(--seal); }
.x-ico svg, .x-ico img { width: 34px; height: 34px; object-fit: contain; }
.xs-night .x-ico, .xs-img .x-ico { background: rgba(239, 227, 154, .1); }

/* 항목 카드 */
.x-cards { display: grid; grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr)); gap: clamp(14px, 1.8vw, 24px); width: 100%; }
.x-cards.c2 { --c: 2; } .x-cards.c3 { --c: 3; } .x-cards.c4 { --c: 4; }
.x-cards.is-pair { max-width: 980px; margin-inline: auto !important; }
.x-c { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; color: inherit; box-shadow: 0 18px 40px -36px rgba(12, 20, 35, .55); transition: transform .45s var(--ease), box-shadow .45s, border-color .45s; }
.x-c:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -36px rgba(12, 20, 35, .6); border-color: var(--oak); }
.x-c > .x-img { border-radius: 0; aspect-ratio: 4 / 3; }
.x-c:hover > .x-img img { transform: scale(1.05); }
.x-c-b { display: flex; flex-direction: column; gap: 10px; padding: clamp(20px, 2.2vw, 28px); flex: 1; }
.x-c-b > * { margin: 0; }
.x-c-t { font-family: var(--serif); font-size: clamp(18px, 1.6vw, 21px); font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.x-c-eb { font-size: 13px; font-weight: 700; color: var(--oak); letter-spacing: .02em; }
.x-c p { font-size: 15.5px; line-height: 1.75; color: var(--ink-2); }
.x-c h4 { font-size: 16px; }
.x-c .x-checks { margin: 4px 0 0; }
.x-c-n { font-family: var(--serif); font-weight: 900; font-size: 15px; color: var(--seal); letter-spacing: .04em; display: flex; align-items: center; gap: 10px; }
.x-c-n::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
.x-c-icon .x-c-b { align-items: center; text-align: center; }
.x-c-icon .x-ico { margin-bottom: 6px; }
.x-c-info { border-top: 3px solid var(--night); }
.x-c.is-link .x-c-b { padding-bottom: 64px; }
.x-go { position: absolute; right: 18px; bottom: 18px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--night); color: var(--glow); transition: transform .3s; }
.x-c.is-link:hover .x-go { transform: translateX(4px); }
.x-c-solo { max-width: 820px; width: 100%; margin-inline: auto !important; }
.x-c-solo > * { padding-inline: clamp(20px, 2.4vw, 32px); }
.xs-night .x-c, .xs-img .x-c { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); box-shadow: none; }
.xs-night .x-c-t, .xs-img .x-c-t { color: #fff; }
.xs-night .x-c p, .xs-img .x-c p { color: rgba(255, 255, 255, .78); }
.xs-night .x-c-info, .xs-img .x-c-info { border-top-color: var(--glow); }
.xs-night .x-c-n::after, .xs-img .x-c-n::after { background: rgba(255, 255, 255, .14); }

/* 체크리스트 */
.x-checks { list-style: none; margin: 0 auto !important; padding: 0; max-width: 820px; width: 100%; display: grid; gap: 10px; }
.x-checks li { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 20px 16px 58px; background: #fff; border: 1px solid var(--rule); border-radius: 14px; font-size: 16.5px; line-height: 1.7; color: var(--ink); }
.x-checks li::before { content: ""; position: absolute; left: 18px; top: 17px; width: 26px; height: 26px; border-radius: 50%; background: var(--night) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23efe39a' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4 18.7 7z'/%3E%3C/svg%3E") center / 16px no-repeat; }
.x-checks li > * { margin: 0; }
.x-checks li p { font-size: 16.5px; line-height: 1.7; color: var(--ink); }
.x-checks li h3, .x-checks li h4 { font-family: var(--serif); font-size: 17.5px; }
.x-cards .x-checks li, .x-c .x-checks li { padding: 8px 0 8px 32px; background: none; border: 0; border-radius: 0; border-bottom: 1px dashed var(--rule); font-size: 15px; }
.x-c .x-checks li::before { left: 0; top: 11px; width: 20px; height: 20px; background-size: 12px; }
.xs-night .x-checks li, .xs-img .x-checks li { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .88); }
.xs-night .x-checks li p, .xs-img .x-checks li p { color: rgba(255, 255, 255, .88); }
.xs-night .x-checks li::before, .xs-img .x-checks li::before { background-color: rgba(239, 227, 154, .16); }

/* 이미지 + 글 */
.x-split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; width: 100%; }
.x-split.img-r .x-split-img { order: 2; }
.x-split-img .x-img { aspect-ratio: 4 / 3; box-shadow: 0 30px 70px -44px rgba(12, 20, 35, .5); }
.x-split-txt { display: flex; flex-direction: column; gap: 16px; }
.x-split-txt > * { margin: 0; }
.x-split-txt .x-head, .x-split-txt .x-text { margin: 0 !important; text-align: left; align-items: flex-start; max-width: none; }
.x-split-txt .x-head .x-h2::after { margin-left: 0; }
.x-split-txt .x-checks { margin: 0 !important; }
.x-split-txt .x-c-solo, .x-split-txt .x-panel { margin: 0 !important; }
.x-split:hover .x-img img { transform: scale(1.04); }
.x-split-link { display: block; color: inherit; }
.xs-in > .x-split + .x-split { margin-top: clamp(16px, 3vw, 40px); }

/* 패널(단독 상자) */
.x-panel { max-width: 920px; width: 100%; margin-inline: auto !important; display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3vw, 40px); background: #fff; border: 1px solid var(--rule); border-radius: 20px; box-shadow: 0 24px 50px -40px rgba(12, 20, 35, .5); }
.x-panel > * { margin: 0 !important; }
.x-panel .x-text, .x-panel .x-head { max-width: none; }
.x-panel.is-dark { background: var(--night); color: #fff; border: 0; }
.xs-night .x-panel, .xs-img .x-panel { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .14); box-shadow: none; }

/* 만족도 그래프 */
.x-stat-card { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2.4fr); gap: clamp(20px, 3vw, 44px); align-items: center; width: 100%; max-width: 1080px; margin-inline: auto !important; padding: clamp(22px, 2.6vw, 36px); background: #fff; border: 1px solid var(--rule); border-radius: 20px; box-shadow: 0 24px 50px -40px rgba(12, 20, 35, .5); }
.x-stat-card + .x-stat-card { margin-top: calc(clamp(28px, 3.4vw, 48px) * -1 + 14px) !important; }
.x-stat-card-h { display: flex; flex-direction: column; gap: 6px; }
.x-stat-card-h > * { margin: 0; }
.x-stat-card-h h3 { font-size: clamp(20px, 1.8vw, 24px); }
.x-stat-card-h p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.x-stat-card-b { display: flex; flex-direction: column; gap: 14px; }
.x-barrow { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.x-bar-l { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.x-bar { position: relative; height: 42px; border-radius: 999px; background: var(--hanji-2); overflow: hidden; }
.x-bar-fill { position: absolute; inset: 0 auto 0 0; width: var(--p); display: flex; align-items: center; justify-content: flex-end; padding-right: 16px; border-radius: inherit; background: #cfc8ba; transform-origin: left; transform: scaleX(0); transition: transform 1.6s var(--ease); }
.x-bar.is-ours .x-bar-fill { background: linear-gradient(90deg, var(--night-3), var(--night)); }
.x-bar.is-in .x-bar-fill { transform: scaleX(1); }
.x-bar .x-num { font-size: 18px; color: var(--glow); font-weight: 800; font-family: var(--sans); }

/* 배경 이미지 띠 */
.x-bgbox { position: relative; width: 100%; border-radius: 22px; overflow: hidden; padding: clamp(44px, 6vw, 88px) clamp(24px, 4vw, 64px); color: #fff; isolation: isolate; }
.x-bgbox-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.x-bgbox::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(12, 20, 35, .86), rgba(12, 20, 35, .64)); }
.x-bgbox-in { display: flex; flex-direction: column; gap: 22px; }
.x-bgbox .x-head .x-h2, .x-bgbox h3 { color: #fff; }
.x-bgbox .x-head .x-h2 strong { color: var(--glow); }
.x-bgbox p { color: rgba(255, 255, 255, .86) !important; }
.x-bgbox .x-head .x-h2::after { background: var(--glow); }

.x-video { max-width: 860px; margin-inline: auto !important; width: 100%; }

@media (max-width: 1000px) {
  .x-cards.c4 { --c: 2; }
  .x-cards.c3.k-info, .x-cards.c3.k-icon { --c: 2; }
}
@media (max-width: 760px) {
  .xs { padding: 60px 0; }
  .xs-in { gap: 28px; }
  .x-cards.c3, .x-cards.c2 { --c: 1; }
  .x-cards.k-img.c3, .x-cards.k-img.c4, .x-cards.k-icon.c4, .x-cards.k-icon.c3 { --c: 2; }
  .x-cards.k-img.c2 { --c: 2; }
  .x-cards.k-icon .x-c-b, .x-cards.k-img .x-c-b { padding: 16px; }
  .x-cards.k-img .x-c-t, .x-cards.k-icon .x-c-t { font-size: 16.5px; }
  .x-cards.k-img .x-c p, .x-cards.k-icon .x-c p { font-size: 14px; }
  .x-split { grid-template-columns: 1fr; gap: 20px; }
  .x-split.img-r .x-split-img { order: 0; }
  .x-stat-card { grid-template-columns: 1fr; }
  .x-barrow { grid-template-columns: 74px 1fr; gap: 10px; }
  .x-bar { height: 34px; }
  .x-text p, .x-head p:not(.x-eb) { font-size: 16px; }
  .x-text p br, .x-c p br, .x-checks br { display: none; }
  .x-checks li { padding: 14px 16px 14px 52px; font-size: 15.5px; }
  .x-checks li::before { left: 15px; top: 15px; }
}
.x-c-solo > .x-go { padding: 0; }
.x-c-solo > *:not(.x-go) { padding-inline: clamp(20px, 2.4vw, 32px); }
.x-c-row { flex-direction: row; max-width: 1000px; width: 100%; margin-inline: auto !important; }
.x-c-row > .x-img { flex: 0 0 42%; border-radius: 0; aspect-ratio: auto; min-height: 240px; }
.x-c-row .x-c-b { justify-content: center; }
.x-text p, .x-c p, .x-checks li, .ptable td { overflow-wrap: anywhere; word-break: keep-all; }
@media (max-width: 760px) { .x-c-row { flex-direction: column; } .x-c-row > .x-img { aspect-ratio: 16 / 10; min-height: 0; } .x-head .x-h2 { font-size: 26px; } }
@media (max-width: 760px) {
  .x-head .x-h2 br { display: none; }
  .xs .x-cards.k-icon.c3, .xs .x-cards.k-icon.c4, .xs .x-cards.k-info, .xs .x-cards.is-long { --c: 1; }
  .x-cards.k-icon .x-c-b { flex-direction: row; flex-wrap: wrap; align-items: flex-start; text-align: left; gap: 6px 14px; }
  .x-cards.k-icon .x-ico { width: 48px; height: 48px; border-radius: 14px; margin: 0; flex: none; }
  .x-cards.k-icon .x-ico svg, .x-cards.k-icon .x-ico img { width: 26px; height: 26px; }
  .x-cards.k-icon .x-c-b > :not(.x-ico) { flex: 1 1 calc(100% - 70px); }
  .x-cards.k-icon .x-c-t { align-self: center; }
  .xs .x-cards.k-img.c3, .xs .x-cards.k-img.c4 { --c: 1; }
  .x-cards.k-img.c3 .x-c, .x-cards.k-img.c4 .x-c { flex-direction: row; }
  .x-cards.k-img.c3 .x-c > .x-img, .x-cards.k-img.c4 .x-c > .x-img { flex: 0 0 36%; aspect-ratio: auto; min-height: 120px; }
  .x-cards.k-img.c3 .x-c.is-link .x-c-b, .x-cards.k-img.c4 .x-c.is-link .x-c-b { padding-bottom: 54px; }
}
@media (max-width: 760px) {
  .xs .x-cards.k-img.is-long .x-c { flex-direction: column; }
  .xs .x-cards.k-img.is-long .x-c > .x-img { flex: none; aspect-ratio: 16 / 10; min-height: 0; }
}
.x-head-s { gap: 10px; }
.x-head-s h3, .x-head-s h4 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.4; }
.x-head-s h3::after { content: ""; display: block; width: 24px; height: 2px; margin: 14px auto 0; background: var(--oak); }
.x-head-s p { font-size: 16px !important; }
.x-h2, .x-c-t, .xs h3, .phero-t, .sec-h { text-wrap: balance; }
.x-head p, .x-text p { text-wrap: pretty; }
.x-text.is-short { text-align: center; } .x-text.is-short p { color: var(--muted); font-size: 15px; }
.x-ck-d { font-size: 14.5px !important; color: var(--muted) !important; font-weight: 400; line-height: 1.6 !important; } .xs-night .x-ck-d, .xs-img .x-ck-d { color: rgba(255,255,255,.66) !important; }
/* 타임라인 */
.x-steps { list-style: none; margin: 0 auto !important; padding: 0; max-width: 820px; width: 100%; display: grid; gap: 0; counter-reset: none; }
.x-steps li { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding-bottom: 26px; }
.x-steps li:not(:last-child)::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: 0; width: 2px; background: linear-gradient(var(--seal), rgba(164, 60, 44, .12)); }
.x-steps-n { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--night); color: var(--glow); font-family: var(--serif); font-weight: 900; font-size: 22px; box-shadow: 0 0 0 6px rgba(12, 20, 35, .06); }
.x-steps-b { display: flex; flex-direction: column; gap: 6px; padding: 20px 24px; background: #fff; border: 1px solid var(--rule); border-radius: 16px; }
.x-steps-b > * { margin: 0; }
.x-steps-b .x-c-eb { color: var(--seal); }
.x-steps-b p { font-size: 15.5px; color: var(--ink-2); line-height: 1.7; }
.xs-night .x-steps-b, .xs-img .x-steps-b { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); }
.xs-night .x-steps-n, .xs-img .x-steps-n { background: var(--glow); color: var(--night); }
@media (max-width: 760px) { .x-steps li { grid-template-columns: 48px 1fr; gap: 14px; } .x-steps-n { width: 48px; height: 48px; font-size: 17px; } .x-steps li:not(:last-child)::before { left: 23px; top: 48px; } .x-steps-b { padding: 16px 18px; } }

/* 홈 보강: 추천 시술 · 원문 문구 */
.sig-orig { font-size: 15px; color: #fff; font-weight: 600; line-height: 1.55; max-width: 440px; }
.sig-i:not(.is-on) .sig-orig { display: none; }
@media (max-width: 860px) { .sig-i:not(.is-on) .sig-orig { display: block; } }
.rec { padding: clamp(80px, 9vw, 130px) 0; background: var(--hanji); }
.rec-list { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 20px; }
.rec-i a { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--paper); border: 1px solid var(--rule); border-radius: 18px; overflow: hidden; transition: transform .5s var(--ease), box-shadow .5s, border-color .5s; }
.rec-i a:hover { transform: translateY(-8px); box-shadow: 0 34px 70px -40px rgba(12, 20, 35, .6); border-color: var(--oak); }
.rec-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--night); }
.rec-i:first-child .rec-img { aspect-ratio: 5 / 4; }
.rec-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.rec-i a:hover img { transform: scale(1.06); }
.rec-n { position: absolute; top: 16px; left: 18px; font-family: var(--serif); font-weight: 900; font-size: 30px; color: var(--glow); text-shadow: 0 2px 14px rgba(0, 0, 0, .4); }
.rec-t { display: flex; flex-direction: column; gap: 8px; padding: 24px 24px 26px; flex: 1; }
.rec-t b { font-family: var(--serif); font-size: clamp(21px, 2vw, 26px); font-weight: 700; }
.rec-t span { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; }
.rec-t em { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-style: normal; font-weight: 700; color: var(--seal); font-size: 15px; }
@media (max-width: 900px) { .rec-list { grid-template-columns: 1fr; } .rec-i a { flex-direction: row; } .rec-img, .rec-i:first-child .rec-img { flex: 0 0 38%; aspect-ratio: auto; } .rec-t { padding: 18px; } .rec-t span { font-size: 14px; } }
.name-care { margin: 6px 0 30px; padding: 20px 22px; border: 1px solid rgba(239, 227, 154, .25); border-radius: 12px; background: rgba(255, 255, 255, .03); }
.name-care-k { font-family: var(--en); font-style: italic; font-size: 19px; color: var(--gold) !important; margin-bottom: 6px !important; }
.name-care p:last-child { margin: 0; }
.dr-lead { margin-top: 10px; font-family: var(--serif); font-size: clamp(18px, 1.6vw, 22px); color: var(--ink-2); }
.sec-s-l { text-align: left; margin-top: 8px; }
/* 칼럼 본문 UI */
.post-sum { padding: 24px 26px; background: var(--night); color: #fff; border-radius: 16px; margin-bottom: 40px; position: relative; overflow: hidden; }
.post-sum::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 22px solid rgba(239, 227, 154, .14); }
.post-sum-k { font-size: 13px !important; font-weight: 800; color: var(--glow) !important; letter-spacing: .06em; margin-bottom: 8px !important; }
.post-sum p { color: rgba(255, 255, 255, .9) !important; font-size: 16.5px !important; margin: 0; }
.post-sum-toc { margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 6px; counter-reset: st; }
.post-sum-toc li { counter-increment: st; font-size: 15px; }
.post-sum-toc li::before { content: counter(st, decimal-leading-zero); font-family: var(--serif); font-weight: 700; color: var(--glow); margin-right: 10px; }
.post-sum-toc a:hover { color: var(--glow); }
.is-post .prose { counter-reset: h2n; }
.is-post .prose h2 { counter-increment: h2n; display: flex; gap: 14px; align-items: baseline; }
.is-post .prose h2::before { content: counter(h2n, decimal-leading-zero); flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--seal); color: #fff; font-size: 15px; font-family: var(--sans); font-weight: 800; transform: translateY(-4px); }
.is-post .prose p strong { background: linear-gradient(transparent 62%, rgba(239, 227, 154, .7) 62%); }

/* 전후 사진 비교 슬라이더 */
.xs-ba { background: var(--night) !important; color: #fff; }
.xs-ba .x-h2, .xs-ba h2 { color: #fff; }
.xs-ba .x-eb { color: var(--gold) !important; }
.xs-ba p { color: rgba(255, 255, 255, .8); }
.x-cmps { display: grid; grid-template-columns: repeat(var(--c, 3), minmax(0, 1fr)); gap: clamp(16px, 2vw, 26px); width: 100%; }
.x-cmps.c1 { --c: 1; max-width: 760px; margin-inline: auto; }
.x-cmps.c2 { --c: 2; }
.x-cmps.c3 { --c: 3; }
.x-cmp-wrap { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.x-cmp { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: #000; touch-action: pan-y; user-select: none; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(239, 227, 154, .18); }
.x-cmps.c1 .x-cmp, .x-cmps.c2 .x-cmp { aspect-ratio: 4 / 3; }
.x-cmp img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.x-cmp-b { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.x-cmp-b img { filter: saturate(.92); }
.x-cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: var(--glow); box-shadow: 0 0 18px rgba(239, 227, 154, .8); pointer-events: none; }
.x-cmp-handle::after { content: "‹ ›"; position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; display: grid; place-items: center; border-radius: 50%; background: var(--glow); color: var(--night); font-weight: 800; font-size: 18px; letter-spacing: 4px; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.x-cmp input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.x-cmp-tag { position: absolute; top: 14px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; pointer-events: none; }
.x-cmp-tag.is-b { left: 14px; background: rgba(12, 20, 35, .72); color: #fff; }
.x-cmp-tag.is-a { right: 14px; background: var(--glow); color: var(--night); }
.x-cmp-wrap figcaption { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; font-size: 13.5px; line-height: 1.5; color: rgba(255, 255, 255, .72); }
.x-cmp-ca { text-align: right; }
.x-cmp-ca :first-child, .x-cmp-ca { color: var(--glow); }
.x-cmp-cb br + *, .x-cmp-ca br + * { display: block; }
.x-cmp-wrap figcaption .x-num, .x-cmp-wrap figcaption .x-stat { font-size: 22px; }
.x-cmp.is-hint .x-cmp-b, .x-cmp.is-hint .x-cmp-handle { transition: clip-path 1.2s var(--ease), left 1.2s var(--ease); }
.xs-ba .x-grid.is-imgcards .x-img, .xs-ba .x-img { box-shadow: 0 0 0 1px rgba(239, 227, 154, .18); }
@media (max-width: 960px) { .x-cmps.c3 { --c: 2; } }
@media (max-width: 620px) { .x-cmps.c3, .x-cmps.c2 { --c: 1; } .x-cmp, .x-cmps.c2 .x-cmp { aspect-ratio: 4 / 3; } }
.x-cmp.is-split img { object-fit: cover; }
.x-cmp.is-split .x-cmp-a { object-position: 100% 50%; }
.x-cmp.is-split .x-cmp-b img { object-position: 0% 50%; }
.x-cmp.is-split img { width: 100%; height: 100%; }
.x-cmps .x-cmp.is-split { aspect-ratio: auto; }
.x-cmp-wrap figcaption b { color: #fff; font-weight: 700; font-size: 15px; }
.x-cmp.is-split .x-cmp-tag { display: none; }
/* 키워드 핵심 요약 */
.kw-intro { background: var(--paper); padding: clamp(40px, 5vw, 64px) 0 0; }
.kw-intro-in { position: relative; padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 38px); background: #fff; border: 1px solid var(--rule); border-left: 4px solid var(--seal); border-radius: 0 18px 18px 0; box-shadow: 0 24px 50px -40px rgba(12,20,35,.5); }
.kw-intro-k { font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--seal); margin-bottom: 10px; }
.kw-intro-p { font-size: clamp(16.5px, 1.4vw, 18px); line-height: 1.85; color: var(--ink); }
.kw-intro-p strong { box-shadow: inset 0 -.42em 0 rgba(239,227,154,.7); }
.kw-intro + .xpage > .xs:first-child { padding-top: clamp(56px, 6vw, 88px); }
