:root {
  --ink: #2A2521;
  --muted: #6E665E;
  --beige: #E3D4BE;          /* 연한 베이지 (보조) */
  --beige-hover: #D8C6AB;
  --accent: #7E6A55;         /* 예약 버튼 강조색: 진한 베이지 */
  --accent-hover: #6A5844;
  --beige-text: #8C7660;     /* 베이지 계열 글자 */
  --ivory: #F8F4EE;
  --sand: #F1EBE1;
  --ph: #EAE2D6;             /* 사진 들어갈 자리 */
  --line: #ECE5DB;
  --paper: #FFFFFF;
  --naver: #03C75A;
  --kakao: #FEE500;
  --kakao-ink: #191919;
  --focus: #2F6BFF;
  --header: 96px;
  --serif: "Noto Serif KR", "Nanum Myeongjo", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header); }
body {
  margin: 0; min-width: 1280px; /* 데스크톱 시안: 모바일 작업 전까지 데스크톱 레이아웃 고정 */
  background: var(--paper); color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 17px; line-height: 1.7; word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, dl { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1600px; margin: 0 auto; padding: 0 64px; }
/* 우측 빠른 메뉴와 콘텐츠가 겹치지 않도록 */
@media (max-width: 1760px) { main .wrap, footer .wrap { padding-right: 136px; } }

/* 헤더 */
header.site { position: sticky; top: 0; z-index: 50; background: var(--paper); border-bottom: 1px solid #CDBFAC; }
header.site .wrap { display: flex; align-items: center; height: var(--header); }
.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo img { height: 52px; width: auto; }
.logo span { font-size: 25px; font-weight: 600; letter-spacing: -0.04em; }

nav.gnb { margin-left: 64px; height: 100%; }
nav.gnb > ul { display: flex; height: 100%; }
nav.gnb > ul > li { position: relative; display: flex; align-items: center; }
nav.gnb > ul > li > a { display: flex; align-items: center; height: 100%; padding: 0 24px; font-size: 18px; font-weight: 500; white-space: nowrap; }
nav.gnb > ul > li > a::after {
  content: ""; position: absolute; left: 24px; right: 24px; bottom: -1px; height: 2px;
  background: var(--beige-text); transform: scaleX(0); transition: transform .25s ease;
}
nav.gnb > ul > li:hover > a::after,
nav.gnb > ul > li:focus-within > a::after { transform: scaleX(1); }

/* 하부목록: 커서를 올리면 아래로 펼쳐짐 */
.sub {
  position: absolute; top: 100%; left: 50%; min-width: 200px;
  transform: translateX(-50%); padding: 14px 0;
  background: var(--paper); border: 1px solid var(--line); border-top: 0;
  box-shadow: 0 16px 32px rgba(42,37,33,.08);
  clip-path: inset(0 -40px 100% -40px); visibility: hidden;
  transition: clip-path .35s ease, visibility 0s linear .35s;
}
.sub a { display: block; padding: 9px 26px; font-size: 16px; color: var(--muted); white-space: nowrap; opacity: 0; transform: translateY(-6px); transition: opacity .25s, transform .25s, color .2s; }
.sub a:hover { color: var(--ink); }
li:hover > .sub, li:focus-within > .sub { clip-path: inset(0 -40px -40px -40px); visibility: visible; transition: clip-path .35s ease; }
li:hover > .sub a, li:focus-within > .sub a { opacity: 1; transform: none; }
.sub li:nth-child(2) a { transition-delay: .05s; }
.sub li:nth-child(3) a { transition-delay: .1s; }
.sub li:nth-child(4) a { transition-delay: .15s; }

.head-cta { margin-left: auto; }

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 30px; border-radius: 999px; border: 1px solid transparent;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-sm { height: 48px; padding: 0 26px; }
.btn-main { background: var(--accent); color: #fff; }
.btn-main:hover { background: var(--accent-hover); }
.btn-line { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-line:hover { border-color: var(--beige-hover); }
.btn-text { display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; color: var(--muted); font-weight: 500; }
.btn-text:hover { color: var(--ink); }
.btn-text svg { width: 14px; height: 14px; }

.eyebrow { margin: 0 0 18px; font-size: 13px; font-weight: 600; letter-spacing: .32em; color: var(--beige-text); }

/* 메인 문구 */
.hero { padding: 48px 0 36px; text-align: center; }
.hero h1 { margin: 0; font-size: 60px; font-weight: 400; line-height: 1.25; letter-spacing: -0.045em; }
.hero .desc { margin: 22px 0 0; font-size: 18px; line-height: 1.75; color: var(--muted); }
.hero .cta { display: flex; justify-content: center; gap: 10px; margin-top: 24px; }

/* 진료 카드 (중점진료 · 일반진료 공통) */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.fc { display: flex; flex-direction: column; }
.fc .card { position: relative; display: flex; flex-direction: column; aspect-ratio: 3 / 4; overflow: hidden; background: var(--ivory); }
.cards.fit .fc .card { aspect-ratio: auto; height: clamp(300px, calc(100vh - 560px), 460px); }
.fc .head { padding: 32px 32px 20px; text-align: right; }
.fc .head small { display: block; font-size: 15px; color: var(--muted); }
.fc .head strong { display: block; margin-top: 2px; font-family: var(--serif); font-size: 34px; font-weight: 400; line-height: 1.25; letter-spacing: -0.03em; }
.fc .img { position: relative; flex: 1; overflow: hidden; background: var(--ph); }
.fc .img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
/* 사진별 톤 보정 */
.fc .img img { opacity: .9; }
.fc .img img.soft { opacity: .8; }
.fc .img img.top { object-position: center top; }
/* 중점진료 카드: 제목 칸 높이를 맞춰 사진 크기 통일 */
.focus .fc:not(.full) .head { min-height: 122px; }
@media (max-width: 640px) { .focus .fc:not(.full) .head { min-height: 100px; } }
.fc .img p { position: absolute; z-index: 1; top: 22px; right: 32px; margin: 0; font-size: 15px; font-weight: 600; line-height: 1.6; color: #1F1B17; text-align: right; }
.fc .head small { color: #3E3731; font-weight: 500; }
.fc:hover .img img { transform: scale(1.035); }
/* 밝은 사진 위 글씨가 잘 읽히도록 흰 번짐 */
.fc .img:has(img) p, .fc.full .card:has(img) .head { text-shadow: 0 0 14px rgba(255,255,255,.9), 0 0 4px rgba(255,255,255,.7); }
/* 사진 위에 제목 */
.fc.full .head { position: absolute; z-index: 2; top: 0; left: 0; right: 0; text-align: left; }
.fc.full .img p { top: auto; bottom: 26px; left: 32px; right: auto; text-align: left; }
/* 안쪽에 들어간 사진 */
.fc.inset .head { text-align: center; }
.fc.inset .img { margin: 0 48px 48px; }
.fc.inset .img p { left: 22px; right: 22px; text-align: left; }
.fc .more {
  align-self: flex-end; display: inline-flex; align-items: center; gap: 8px; margin-top: 14px;
  padding-bottom: 3px; border-bottom: 1px solid var(--beige); font-size: 16px; color: var(--muted);
  transition: color .2s, border-color .2s;
}
.fc .more svg { width: 15px; height: 15px; }
.fc:hover .more { color: var(--ink); border-color: var(--beige-text); }
.focus { padding-bottom: 24px; }
.sec-ivory .fc .card { background: var(--paper); }

/* 섹션 공통 */
.sec { padding: 140px 0; }
.sec-ivory { background: var(--ivory); }
.sec-sand { background: var(--sand); }
.sec-title { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 56px; }
.sec-title h2, .serif-title { margin: 0; font-family: var(--serif); font-size: 46px; font-weight: 400; line-height: 1.35; letter-spacing: -0.03em; }

/* 편평사마귀 & 잡티 제거 */
.wart { display: grid; grid-template-columns: 1fr 560px; gap: 96px; align-items: start; }
.wart .lead { margin: 36px 0 0; padding-left: 22px; border-left: 2px solid var(--beige); font-size: 20px; line-height: 1.75; }
.wart h3 { margin: 52px 0 16px; font-size: 15px; font-weight: 600; color: var(--beige-text); }
.targets { display: flex; flex-wrap: wrap; gap: 10px; }
.targets li { padding: 10px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; font-size: 17px; font-weight: 500; }
.targets.one-line { flex-wrap: nowrap; gap: 8px; }
.targets.one-line li { padding: 9px 16px; font-size: 16px; white-space: nowrap; }
.methods li { background: transparent; border-color: #D9CCB9; }
.wart .consult { margin: 40px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.wart h3 { margin-top: 44px; }
.price { background: var(--paper); border: 1px solid var(--line); padding: 44px 48px 48px; }
.price h3 { margin: 0 0 8px; color: var(--beige-text); }
.price table { width: 100%; border-collapse: collapse; }
.price th, .price td { padding: 22px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.price th { font-size: 18px; font-weight: 500; }
.price th small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.price td { text-align: right; font-family: var(--serif); font-size: 32px; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.price td small { font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 16px; margin-left: 3px; }
.price .vat { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: right; }
.price .btn { width: 100%; margin-top: 28px; }

/* 시술 사례 */
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.case { margin: 0; }
.case .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.case .pair div { position: relative; aspect-ratio: 3 / 4; background: #ECE6DD; }
.case .pair div + div { background: #E3DBCF; }
.case .pair span { position: absolute; top: 10px; left: 10px; font-size: 12px; color: var(--muted); background: rgba(255,255,255,.85); padding: 1px 8px; }
.case figcaption { padding-top: 14px; font-size: 17px; font-weight: 500; }
.case figcaption small { display: block; font-size: 14px; font-weight: 400; color: var(--muted); }
.note { margin: 20px 0 0; font-size: 14px; color: var(--muted); }

/* 진료 원칙 */
.standard .serif-title { margin-bottom: 72px; }
.principles { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.principles li { padding: 64px 48px 24px; border-left: 1px solid var(--line); }
.principles li:first-child { padding-left: 0; border-left: 0; }
.principles small { display: block; font-size: 14px; letter-spacing: .08em; color: var(--muted); }
.principles h3 { margin: 36px 0 20px; font-size: 26px; font-weight: 400; line-height: 1.5; letter-spacing: -0.03em; }
.principles p { margin: 0; color: var(--muted); line-height: 1.9; }

/* 의료진 소개 */
.doctor .serif-title { margin-bottom: 64px; }
.doctor-body { display: grid; grid-template-columns: 1fr 600px; gap: 120px; align-items: center; }
.portrait { margin: 0; aspect-ratio: 671 / 643; border-radius: 28px; overflow: hidden; background: var(--sand); }
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.doctor .name-line { display: flex; align-items: baseline; gap: 18px; margin: 0 0 28px; }
.doctor .role { font-size: 19px; color: var(--muted); }
.doctor .name { font-family: var(--serif); font-size: 46px; font-weight: 400; line-height: 1.2; }
.doctor .intro { margin: 0; max-width: 560px; font-size: 20px; line-height: 1.8; }
.career { margin-top: 36px; padding-top: 28px; border-top: 1px solid var(--line); }
.career li { padding: 5px 0; color: var(--muted); }

/* FAQ */
.sec.faq { padding: 96px 0; }
.faq-list { border-top: 1px solid #DDD3C5; }
.faq-list details { border-bottom: 1px solid #DDD3C5; }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 20px 0; font-size: 17px; cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 22px; font-weight: 300; line-height: 1; color: var(--beige-text); transition: transform .25s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: -4px 0 22px; max-width: 860px; font-size: 16px; color: var(--muted); }
.faq .cta { display: flex; align-items: center; gap: 10px; margin-top: 40px; }

/* 진료시간 · 오시는 길 */
.visit { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; }
.hours { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.hours th, .hours td { padding: 22px 4px; border-bottom: 1px solid var(--line); text-align: left; }
.hours th { font-weight: 500; }
.hours td { text-align: right; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.hours tr.off td { font-size: 17px; font-weight: 500; color: var(--muted); }
.info { margin-top: 40px; display: grid; grid-template-columns: 72px 1fr; gap: 14px 20px; }
.info dt { font-size: 15px; color: var(--beige-text); padding-top: 1px; }
.info dd { margin: 0; }
.map { height: 100%; min-height: 460px; border: 1px solid var(--line); background: var(--ivory); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 460px; border: 0; }
.visit-cta { display: flex; gap: 10px; margin-top: 36px; }

footer.site { padding: 48px 0 56px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer.site .wrap { display: flex; align-items: flex-start; gap: 20px; }
footer.site img { height: 44px; width: auto; }
footer.site strong { color: var(--ink); font-size: 16px; }
footer.site p { margin: 4px 0 0; }

/* 우측 빠른 메뉴 */
.quick {
  position: fixed; right: 28px; top: 50%; z-index: 40; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 20px 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 10px 30px rgba(42,37,33,.08);
}
.quick a { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 76px; font-size: 12px; color: var(--muted); white-space: nowrap; }
.quick i { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; font-style: normal; }
.quick i svg { width: 22px; height: 22px; }
.q-naver i { background: var(--naver); color: #fff; font-weight: 900; font-size: 19px; }
.q-kakao i { background: var(--kakao); color: var(--kakao-ink); }
.q-tel i { background: var(--beige); color: var(--ink); }
.q-blog i { background: #fff; border: 1px solid var(--line); color: var(--naver); font-weight: 800; font-size: 13px; letter-spacing: -0.02em; }
.q-insta i { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); color: #fff; }
.quick .q-top { padding-top: 10px; border-top: 1px solid var(--line); width: 56px; font-weight: 600; color: var(--ink); }
.quick .q-top svg { width: 18px; height: 18px; }

/* ───────── 세부 페이지 ───────── */
nav.gnb > ul > li.on > a::after { transform: scaleX(1); }

.page-hero { padding: 64px 0 88px; background: var(--ivory); }
.page-hero .wrap { display: grid; grid-template-columns: 1fr 480px; gap: 96px; align-items: center; }
.crumb { margin: 0 0 40px; font-size: 14px; color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.crumb span { margin: 0 8px; color: var(--beige-hover); }
.page-hero h1 { margin: 0; font-family: var(--serif); font-size: 56px; font-weight: 400; line-height: 1.25; letter-spacing: -0.03em; }
.page-hero .lead { margin: 24px 0 0; font-size: 21px; line-height: 1.7; color: var(--muted); }
.page-hero .cta { display: flex; gap: 10px; margin-top: 40px; }
.page-hero figure { margin: 0; aspect-ratio: 1 / 1; overflow: hidden; background: var(--ph); }
.page-hero figure img { width: 100%; height: 100%; object-fit: cover; }
.page-hero figure.empty { display: grid; place-items: center; color: var(--muted); font-size: 15px; }

/* 같은 분류 안의 다른 페이지로 이동하는 탭 */
.sub-tabs { border-bottom: 1px solid var(--line); background: var(--paper); }
.sub-tabs ul { display: flex; gap: 44px; }
.sub-tabs a { display: block; padding: 22px 0 20px; font-size: 17px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.sub-tabs a:hover { color: var(--ink); }
.sub-tabs a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }

/* 본문 구역: 왼쪽 제목, 오른쪽 내용 */
.detail { padding: 120px 0; }
.detail + .detail { border-top: 1px solid var(--line); }
.detail .wrap { display: grid; grid-template-columns: 340px 1fr; gap: 80px; align-items: start; }
.detail h2 { margin: 0; font-family: var(--serif); font-size: 38px; font-weight: 400; line-height: 1.35; letter-spacing: -0.03em; }
.detail .body { max-width: 820px; }
.detail .body > p { margin: 0; font-size: 19px; line-height: 1.9; }
.detail .body > p + p { margin-top: 18px; }
.qbox { margin-top: 48px; padding: 40px 48px; background: var(--ivory); }
.qbox h3 { margin: 0 0 14px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.qbox p { margin: 0; font-size: 18px; line-height: 1.85; color: #4A433C; }
.equip { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 44px; border-top: 1px solid var(--ink); }
.equip li { padding: 30px 24px 30px 0; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 26px; }
.equip li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.method { margin-top: 48px; }
.method h3 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 16px; font-size: 19px; font-weight: 600; }
.method h3 small { font-size: 13px; letter-spacing: .1em; color: var(--beige-text); }
.method .equip { margin-top: 0; }
.equip-extra { display: flex; align-items: baseline; gap: 32px; padding: 28px 32px; background: var(--ivory); border-top: 1px solid var(--ink); }
.equip-extra strong { flex: none; font-family: var(--serif); font-size: 26px; font-weight: 400; }
.equip-extra p { margin: 0; font-size: 17px; color: #4A433C; }
/* 프로그램 · 비용 안내 */
.programs { border-top: 1px solid var(--ink); }
.program { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: 30px 0; border-bottom: 1px solid var(--line); }
.program h3 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 400; letter-spacing: -0.02em; }
.program h3 small { margin-left: 8px; font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 16px; color: var(--muted); }
.program p { margin: 8px 0 0; font-size: 16px; color: var(--muted); }
.program .cost { text-align: right; font-family: var(--serif); font-size: 30px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.program .cost small { font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 16px; margin-left: 2px; }
.program .cost del { margin-right: 12px; font-size: 19px; color: var(--muted); }
.program .cost em { margin-right: 8px; font-style: normal; font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 15px; color: var(--muted); }
.program .cost .sep { margin: 0 14px; color: var(--beige-hover); font-weight: 300; }
.program p + p { margin-top: 2px; }
.program p.area { color: var(--beige-text); font-weight: 500; }
/* 촘촘한 비용 표: 항목이 많을 때 한 화면에 들어오도록 */
.detail.tight { padding: 48px 0 56px; }
.programs.compact .program { padding: 16px 0; gap: 32px; }
.programs.compact .program h3 { font-size: 22px; }
.programs.compact .program p { margin-top: 4px; font-size: 15px; }
.programs.compact .program p + p { margin-top: 0; }
.programs.compact .program .cost { font-size: 26px; }
.programs.compact .program .cost.stack { gap: 0; font-size: 21px; line-height: 1.4; }
.detail.tight .price-notes { margin-top: 14px; }
.detail.tight .body > .btn { margin-top: 20px; }

/* 이런 고민이 있다면: 체크 목록 */
.checks { border-top: 1px solid var(--ink); }
.checks li { display: flex; align-items: center; gap: 14px; padding: 20px 0; border-bottom: 1px solid var(--line); font-size: 19px; }
.checks svg { width: 20px; height: 20px; flex: none; color: var(--accent); }

/* 진단: 유형별 특징 표 */
.detail .body > p.lead-line { margin-bottom: 14px; font-family: var(--serif); font-size: 26px; line-height: 1.5; }
.type-table { width: 100%; margin-top: 40px; border-collapse: collapse; border-top: 1px solid var(--ink); }
.type-table th, .type-table td { padding: 22px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.type-table thead th { padding: 14px 0; font-size: 15px; font-weight: 600; color: var(--beige-text); }
.type-table tbody th { width: 240px; font-family: var(--serif); font-size: 22px; font-weight: 400; }
.type-table td { font-size: 17px; line-height: 1.8; color: #4A433C; }

/* 5단계 치료 과정 */
.steps.five { grid-template-columns: repeat(5, 1fr); margin-bottom: 0; }
.steps.five li { padding: 26px 14px 26px 0; font-size: 20px; line-height: 1.45; }
.steps.five li + li { padding-left: 22px; }
.steps.five li + li::before { top: 40px; transform: translate(-50%, 0) rotate(45deg); }
.steps .step-note { display: block; margin-top: 10px; font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* 치료 전후 주의사항 */
.cautions { padding: 36px 44px; background: var(--ivory); }
.cautions li { position: relative; padding-left: 18px; font-size: 18px; line-height: 1.85; color: #4A433C; }
.cautions li + li { margin-top: 16px; }
.cautions li::before { content: ""; position: absolute; left: 0; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* 구역 안의 소제목 */
.detail .body .block-title { margin: 56px 0 0; font-family: var(--serif); font-size: 24px; font-weight: 400; line-height: 1.5; }
.detail .body > .block-title:first-child { margin-top: 0; }
.block-title + .treat-list, .block-title + .price-table { margin-top: 16px; }

/* 기간별 가격 표 */
.price-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); }
.price-table th, .price-table td { padding: 18px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.price-table thead th { padding: 12px 0; font-size: 15px; font-weight: 600; color: var(--beige-text); }
.price-table tbody th { width: 110px; font-size: 18px; font-weight: 500; }
.price-table td { padding-right: 24px; font-size: 16px; line-height: 1.7; color: var(--muted); }
.price-table .amt { width: 130px; padding-right: 0; text-align: right; white-space: nowrap; }
.price-table td.amt { font-family: var(--serif); font-size: 28px; color: var(--ink); font-variant-numeric: tabular-nums; }
.price-table td.amt small { margin-left: 2px; font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 16px; }

/* 분류 구역: 소제목 + 설명 + 치료 항목 */
.detail .body > .block-title + p { margin-top: 10px; font-size: 18px; }
.detail .body > .targets { margin-top: 18px; }
.detail .body > .targets li { padding: 8px 18px; font-size: 16px; }
/* 단계 이름이 긴 치료 과정 */
.steps.long li { padding-right: 14px; font-size: 21px; line-height: 1.45; }

/* 제목 구역의 종류 표시 · 긴 소개 */
.page-hero .targets { margin-top: 24px; }
.page-hero .targets li { padding: 7px 16px; font-size: 15px; }
.page-hero .more-lead { margin: 16px 0 0; font-size: 17px; line-height: 1.8; color: var(--muted); }

/* 번호가 있는 구역 제목 */
.detail h2 .num { display: block; margin-bottom: 8px; font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 14px; letter-spacing: .1em; color: var(--beige-text); }

/* 본문 사이 짧은 강조 상자 */
.detail .body .qbox.slim { margin-top: 24px; padding: 20px 28px; }
.detail .body .qbox.slim p { font-size: 17px; }
.detail .body > .qbox + p { margin-top: 26px; }

/* 소제목 아래 보조 정보와 표 */
.detail .body > p.sub-info { margin-top: 6px; font-size: 16px; font-weight: 500; color: var(--beige-text); }
.detail .body > p + .price-table { margin-top: 20px; }
.price-table.sized tbody th { width: auto; }
.insure { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; margin-top: 22px; padding: 20px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.insure span { font-size: 17px; }
.insure strong { font-family: var(--serif); font-size: 28px; font-weight: 400; white-space: nowrap; }

/* 시술사례 · 이벤트 · 공지사항 */
.page-hero.plain { padding: 56px 0 64px; }
.page-hero.plain .wrap { display: block; }
.board-sec { padding: 64px 0 120px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filters button { min-height: 44px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.filters button:hover { border-color: var(--beige-hover); }
.filters button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
#case-grid, #cases .cases { grid-template-columns: repeat(2, 1fr); gap: 48px 32px; }
.case .pair img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.case .pair span { z-index: 1; }
.board-empty { padding: 96px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); text-align: center; color: var(--muted); }
.board-list.faq-list { border-top-color: var(--ink); }
.board-list summary span { flex: 1; }
.board-list summary time { flex: none; font-size: 15px; color: var(--muted); font-variant-numeric: tabular-nums; }
.board-list details p { white-space: pre-line; }

/* 가격표 여러 개를 세로로 쌓기 (편평사마귀 상세) */
.price-stack { display: grid; gap: 24px; }
.price .price-consult { margin: 18px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.price .price-consult + .vat { margin-top: 6px; }

/* 시술 부위 안내 (편평사마귀 상세) */
.wart.area-row { margin-top: 96px; }
.area-guide h3 { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--beige-text); }
.area-figure { margin: 0; padding: 20px 16px; background: var(--paper); border: 1px solid var(--line); }
.area-figure svg { display: block; width: 100%; height: auto; }
.area-list { margin-top: 20px; border-top: 1px solid var(--ink); }
.area-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.area-list dt { display: flex; align-items: center; gap: 12px; font-weight: 600; }
.area-list dt i { width: 6px; height: 18px; border-radius: 2px; flex: none; }
.area-list dd { margin: 0; color: #4A433C; }
@media (max-width: 1279px) { .wart.area-row { margin-top: 56px; } }

/* 긴 카드 제목(편평사마귀&잡티)을 한 줄로 */
.fc .head strong.long { white-space: nowrap; }
@media (min-width: 1280px) { .focus .fc .head strong.long { font-size: min(30px, 2vw); } }
@media (max-width: 640px) { .fc .head strong.long { font-size: 16px; } }

/* 전후 사진: 4:5 비율 + 사진 아래 날짜 */
.case .pair div { aspect-ratio: 4 / 5; overflow: hidden; }
.case .dates { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin: 10px 0 0; text-align: center; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.case .dates + figcaption { padding-top: 10px; }

/* 시술사례: 4장짜리 사례는 2장씩 두 줄 */
.case .rows { display: grid; gap: 14px; }
.case .row .dates { margin-top: 8px; }
.case .pair img { cursor: zoom-in; }
#case-grid .board-empty { grid-column: 1 / -1; }

/* 전후 사진 크게 보기 */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 48px 24px; background: rgba(30, 25, 20, .86); }
.lightbox[hidden] { display: none; }
.lightbox-stage { max-height: 100%; overflow: auto; }
.lightbox .case { width: min(92vw, calc((90vh - 150px) * 1.6)); padding: 24px 24px 20px; background: var(--paper); }
.lightbox .case.quad { width: min(94vw, calc((90vh - 150px) * 3.2)); }
.lightbox .case.quad .rows { grid-template-columns: 1fr 1fr; gap: 2px; }
.lightbox .case .pair img { cursor: default; }
.lightbox .case figcaption { font-size: 18px; }
.lightbox-close {
  position: fixed; top: 14px; right: 14px; width: 48px; height: 48px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; cursor: pointer;
}
.lightbox-close svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
@media (max-width: 640px) {
  .lightbox { padding: 72px 12px 24px; }
  .lightbox .case, .lightbox .case.quad { width: 100%; padding: 14px; }
  .lightbox .case.quad .rows { grid-template-columns: 1fr; gap: 14px; }
}

/* 전후사진 안내 문구 */
.case-notice { margin-top: 28px; padding: 18px 22px; background: var(--ivory); font-size: 14px; line-height: 1.8; color: var(--muted); }
.case-notice p { margin: 0; }
.board-sec .case-notice { margin: 0 0 32px; }

/* 하단 정보 */
footer.site .foot-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin: 0 0 8px; }
footer.site .foot-title a { color: var(--ink); font-weight: 600; }
footer.site .foot-info span + span::before { content: "|"; margin: 0 10px; color: var(--line); }
footer.site .foot-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
footer.site .foot-links a { color: var(--ink); font-weight: 600; }
footer.site .foot-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
footer.site .foot-copy { margin-top: 14px; font-size: 13px; letter-spacing: .02em; }
@media (max-width: 640px) {
  footer.site .foot-info span { display: block; }
  footer.site .foot-info span + span::before { display: none; }
}

/* 문서형 페이지 (개인정보취급방침 · 비급여 · 제증명) */
.doc { max-width: 880px; }
.doc h2 { margin: 52px 0 14px; font-family: var(--serif); font-size: 24px; font-weight: 400; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { margin: 28px 0 10px; font-size: 17px; font-weight: 600; }
.doc p, .doc li, .doc dd { font-size: 16px; line-height: 1.85; color: #4A433C; }
.doc p { margin: 0 0 12px; }
.doc ul, .doc ol { margin: 0 0 12px; padding-left: 20px; }
.doc ul { list-style: disc; }
.doc ol { list-style: decimal; }
.doc .doc-date { margin: 20px 0 0; padding: 14px 18px; background: var(--ivory); color: var(--ink); font-weight: 500; }
.doc-terms dt { margin-top: 16px; font-weight: 600; }
.doc-terms dd { margin: 4px 0 0; }
.doc-table { max-width: 640px; }
.doc-table td.amt { font-family: inherit; font-size: 17px; font-weight: 600; }
.doc .board-empty { margin: 0; }

/* 진료시간 아래 점심시간 */
.hours td small { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--muted); }

/* 전화 상담 팝업 */
.tel-pop { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 24px; background: rgba(30, 25, 20, .55); }
.tel-pop[hidden] { display: none; }
.tel-pop-box { width: min(380px, 100%); padding: 36px 32px 28px; background: var(--paper); text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.tel-pop-title { margin: 0; font-size: 16px; font-weight: 600; color: var(--beige-text); }
.tel-pop-num { margin: 10px 0 26px; font-family: var(--serif); font-size: 34px; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.tel-pop-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tel-pop-actions .btn { padding: 0 12px; }

/* 비급여항목 표 */
.fee-table { max-width: 760px; margin-bottom: 8px; }
.fee-table th, .fee-table td { padding: 14px 0; }
.fee-table tbody th { font-size: 16px; }
.fee-table tbody th small { display: inline; margin-left: 6px; font-size: 14px; color: var(--muted); }
.fee-table td.amt { width: auto; padding-left: 16px; font-size: 16px; }
.doc .fee-note { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.doc h2 + .doc-date { margin-top: 0; }

/* 실 종류 모식도 카드 */
.threads { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.thread { margin: 0; }
.thread svg { display: block; width: 100%; height: auto; background: var(--ivory); }
.thread figcaption { padding-top: 18px; }
.thread b { display: block; font-family: var(--serif); font-size: 21px; font-weight: 400; }
.thread span { display: block; margin-top: 6px; font-size: 16px; line-height: 1.75; color: #4A433C; }
/* 여러 가격을 세로로 쌓기 (줄당 가격 등) */
.program .cost.stack { display: grid; gap: 4px; font-size: 24px; }
.program .cost.stack span { display: flex; justify-content: flex-end; align-items: baseline; }
.program.featured { padding: 30px 24px; background: var(--ivory); }
.badge { display: inline-block; margin-left: 10px; padding: 2px 9px; border-radius: 3px; background: var(--accent); color: #fff; font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .08em; vertical-align: 4px; }
.price-notes { margin: 24px 0 0; font-size: 15px; line-height: 1.8; color: var(--muted); }
.price-notes p { margin: 0; }
.detail .body > .btn { margin-top: 32px; }

/* 치료 방법 목록: 이름 + 설명 */
.treat-list { margin: 44px 0 0; border-top: 1px solid var(--ink); }
.treat-list > div { display: grid; grid-template-columns: 240px 1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.treat-list dt { font-family: var(--serif); font-size: 22px; line-height: 1.5; }
.treat-list dd { margin: 0; font-size: 17px; line-height: 1.8; color: #4A433C; }
/* 치료 과정: 순서가 있는 단계 */
.steps { list-style: none; margin: 0 0 44px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); counter-reset: none; }
.steps li { position: relative; padding: 28px 0 28px 0; border-top: 1px solid var(--ink); font-family: var(--serif); font-size: 26px; }
.steps li + li { padding-left: 28px; }
.steps li + li::before { content: ""; position: absolute; left: 0; top: 50%; width: 9px; height: 9px; border-top: 1px solid var(--beige-text); border-right: 1px solid var(--beige-text); transform: translate(-50%, -2px) rotate(45deg); }
.steps small { display: block; margin-bottom: 6px; font-family: "Pretendard Variable", Pretendard, sans-serif; font-size: 13px; letter-spacing: .1em; color: var(--beige-text); }
.aside-note { margin: 28px 0 0; font-size: 16px; line-height: 1.8; color: var(--muted); }
.detail .faq-list details p { margin-bottom: 26px; }
.detail .faq-list summary { font-size: 18px; padding: 24px 0; }
.detail .note { margin-top: 24px; text-align: right; }

.page-cta { padding: 96px 0; background: var(--sand); text-align: center; }
.page-cta h2 { margin: 0; font-family: var(--serif); font-size: 36px; font-weight: 400; }
.page-cta p { margin: 14px 0 0; color: var(--muted); }
.page-cta .cta { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 36px; }

/* ───────── 모바일 · 태블릿 (1280px 미만) ───────── */
.menu-toggle, .dock { display: none; }

@media (max-width: 1279px) {
  body { min-width: 0; font-size: 16px; padding-bottom: 76px; }
  :root { --header: 64px; }
  .wrap { padding: 0 20px; }
  main .wrap, footer .wrap { padding-right: 20px; }
  .no-scroll, .no-scroll body { overflow: hidden; }

  /* 상단: 로고 + 메뉴 버튼 */
  header.site .wrap { height: var(--header); }
  .logo img { height: 40px; }
  .logo span { font-size: 20px; }
  .head-cta { margin-left: auto; }
  .head-cta .btn-sm { height: 40px; padding: 0 18px; font-size: 14px; }
  .menu-toggle {
    display: grid; place-items: center; width: 44px; height: 44px; margin: 0 -8px 0 8px;
    border: 0; background: none; color: var(--ink); cursor: pointer;
  }
  .menu-toggle svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
  .menu-toggle .close, .menu-open .menu-toggle .bars { display: none; }
  .menu-open .menu-toggle .close { display: inline; }

  /* 펼친 메뉴: 하부목록까지 모두 보이게 */
  nav.gnb { display: none; }
  .menu-open nav.gnb {
    display: block; position: fixed; top: var(--header); left: 0; right: 0; bottom: 0; z-index: 60;
    margin: 0; height: auto; padding: 8px 20px 40px; overflow-y: auto; background: var(--paper);
  }
  nav.gnb > ul { display: block; height: auto; }
  nav.gnb > ul > li { display: block; border-bottom: 1px solid var(--line); }
  nav.gnb > ul > li > a { height: auto; padding: 18px 0; font-size: 19px; font-weight: 600; }
  nav.gnb > ul > li > a::after { display: none; }
  nav.gnb .sub {
    position: static; transform: none; min-width: 0; padding: 0 0 14px; border: 0; box-shadow: none;
    clip-path: none; visibility: visible; display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px;
  }
  nav.gnb .sub a { padding: 8px 0; opacity: 1; transform: none; font-size: 16px; white-space: normal; }

  /* 우측 빠른 메뉴 대신 화면 아래 고정 예약 바 */
  .quick { display: none; }
  .dock {
    display: grid; grid-template-columns: 1fr 1.3fr; gap: 6px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--line);
  }
  .dock a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 52px; border-radius: 10px; font-size: 15px; font-weight: 600; }
  .dock svg { width: 18px; height: 18px; flex: none; }
  .dock .d-tel { background: var(--beige); color: var(--ink); }
  .dock .d-kakao { background: var(--kakao); color: var(--kakao-ink); }
  .dock .d-naver { background: var(--naver); color: #fff; }
  .dock b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 3px; background: #fff; color: var(--naver); font-size: 12px; font-weight: 900; }

  /* 공통 */
  .btn { height: 50px; padding: 0 24px; }
  .cta, .hero .cta, .page-cta .cta, .faq .cta { flex-wrap: wrap; }
  .sec { padding: 80px 0; }
  .sec.faq { padding: 72px 0; }
  .sec-title { flex-direction: column; align-items: flex-start; gap: 20px; margin-bottom: 36px; }
  .sec-title h2, .serif-title { font-size: 34px; }

  /* 메인 */
  .hero { padding: 40px 0 28px; }
  .hero h1 { font-size: clamp(30px, 6.4vw, 52px); }
  .hero .desc { font-size: 16px; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 20px 16px; }
  .cards.fit .fc .card { height: auto; aspect-ratio: 3 / 4; }
  .wart { grid-template-columns: 1fr; gap: 48px; }
  .wart .lead { font-size: 17px; }
  .wart .lead br { display: none; }
  .targets.one-line { flex-wrap: wrap; }
  .price { padding: 28px 24px 32px; }
  .price td { font-size: 28px; }
  .cases { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .standard .serif-title { margin-bottom: 40px; }
  .principles { grid-template-columns: 1fr; }
  .principles li, .principles li:first-child { padding: 32px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .principles h3 { margin: 16px 0 12px; font-size: 22px; }
  .principles h3 br, .principles p br { display: none; }
  .doctor .serif-title { margin-bottom: 36px; }
  .doctor-body { grid-template-columns: 1fr; gap: 40px; }
  .portrait { max-width: 520px; }
  .doctor .name-line { flex-wrap: wrap; gap: 4px 14px; }
  .doctor .intro { font-size: 17px; }
  .doctor .intro br { display: none; }
  .visit { grid-template-columns: 1fr; gap: 40px; }
  .map, .map iframe { min-height: 300px; }
  .visit-cta { flex-wrap: wrap; }
  footer.site { padding-bottom: 40px; }
  footer.site .wrap { flex-direction: column; gap: 12px; }

  /* 세부 페이지 */
  .page-hero { padding: 32px 0 48px; }
  .page-hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .page-hero h1 { font-size: clamp(32px, 7vw, 48px); }
  .page-hero .lead { font-size: 18px; }
  .page-hero .cta { margin-top: 28px; }
  .page-hero figure { aspect-ratio: 4 / 3; }
  .crumb { margin-bottom: 24px; }
  .sub-tabs ul { gap: 28px; overflow-x: auto; scrollbar-width: none; }
  .sub-tabs a { white-space: nowrap; padding: 18px 0 16px; font-size: 16px; }
  .detail, .detail.tight { padding: 64px 0; }
  .detail .wrap { grid-template-columns: 1fr; gap: 28px; }
  .detail h2 { font-size: 30px; }
  .detail .body > p { font-size: 17px; line-height: 1.85; }
  .qbox, .cautions { padding: 24px 22px; }
  .qbox p, .cautions li { font-size: 16px; }
  .qbox p br { display: none; }
  .equip { grid-template-columns: 1fr; }
  .equip li, .equip li + li { padding: 20px 0; border-left: 0; font-size: 22px; }
  .equip-extra { flex-direction: column; gap: 8px; padding: 22px; }
  .steps, .steps.five { grid-template-columns: 1fr; }
  .steps li, .steps li + li, .steps.five li, .steps.five li + li, .steps.long li {
    padding: 16px 0; font-size: 20px; border-top: 1px solid var(--line);
  }
  .steps li:first-child { border-top-color: var(--ink); }
  .steps li br { display: none; }
  .steps li + li::before { display: none; }
  .steps small { display: inline-block; margin: 0 12px 0 0; }
  .program { grid-template-columns: 1fr; gap: 10px; }
  .program .cost { text-align: left; white-space: normal; }
  .program.featured { padding: 24px 18px; }
  .treat-list > div { grid-template-columns: 1fr; gap: 6px; padding: 20px 0; }
  .treat-list dt br { display: none; }
  .type-table tbody th { width: 110px; font-size: 19px; }
  .price-table td.amt { font-size: 24px; }
  .price-table .amt { width: auto; padding-left: 12px; }
  .price-table.sized tbody th { font-size: 15px; }
  .threads { grid-template-columns: 1fr; gap: 28px; }
  .checks li { font-size: 17px; padding: 16px 0; align-items: flex-start; }
  .checks svg { margin-top: 3px; }
  .insure { flex-wrap: wrap; }
  .page-cta { padding: 64px 0; }
  .page-cta h2 { font-size: 28px; }

  /* 시술사례 · 공지 */
  .page-hero.plain { padding: 32px 0 40px; }
  .board-sec { padding: 40px 0 80px; }
  #case-grid { gap: 36px 16px; }
}

@media (max-width: 640px) {
  .head-cta { display: none; }
  .menu-toggle { margin-left: auto; }
  .cards { gap: 16px 12px; }
  .fc .head { padding: 18px 16px 12px; }
  .fc .head small { font-size: 12px; }
  .fc .head strong { font-size: 22px; }
  .fc .img p { top: 12px; right: 14px; font-size: 12px; }
  .fc.full .img p { bottom: 14px; left: 16px; }
  .fc.inset .img { margin: 0 16px 16px; }
  .fc .more { font-size: 14px; margin-top: 10px; }
  .cases { grid-template-columns: 1fr; }
  #case-grid, #cases .cases { grid-template-columns: 1fr; }
  .price th { font-size: 16px; }
  .price td { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, .sub a { transition: none !important; }
}
