:root {
  --white: #ffffff;
  --bg-soft: #f8fafc;
  --sky-300: #7dd3fc;
  --sky-400: #38bdf8;
  --sky-500: #0ea5e9;
  --sky-600: #0284c7;
  --sky-50: #f0f9ff;
  --sky-100: #e0f2fe;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --font: "Pretendard", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: break-word;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--sky-600); }
h1, h2, h3 { color: var(--ink); line-height: 1.35; margin: 0 0 .6em; }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); letter-spacing: -.015em; margin-bottom: .9em; }
h3 { font-size: 1.08rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; justify-content: center; }
.small { font-size: .9rem; color: var(--ink-3); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: auto; height: 40px; }
.brand-name { padding-left: 12px; border-left: 1px solid var(--line); font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.brand-name b { color: var(--sky-600); font-weight: 800; }
.quick-menu { display: grid; grid-template-columns: repeat(3, auto); gap: 8px; }
.qm {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border-radius: 999px;
  font-size: .9rem; font-weight: 600; text-decoration: none;
  color: var(--ink-2); background: var(--bg-soft); border: 1px solid var(--line);
  transition: background .15s, color .15s, border-color .15s;
}
.qm svg { width: 18px; height: 18px; fill: currentColor; flex-shrink: 0; }
.qm span { white-space: nowrap; }
.lbl-s { display: none; }
.qm:hover { background: var(--sky-50); border-color: var(--sky-300); color: var(--sky-600); }
.qm-kakao { background: #fee500; border-color: #fee500; color: #191600; }
.qm-kakao:hover { background: #fadc00; border-color: #fadc00; color: #191600; }

/* breadcrumb */
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 14px 0 0; margin: 0; font-size: .85rem; color: var(--ink-3); }
.breadcrumb li + li::before { content: "›"; margin: 0 6px; color: var(--line); }
.breadcrumb a { color: var(--ink-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--sky-600); }

/* hero */
.hero { padding: 40px 0 56px; background: linear-gradient(180deg, var(--sky-50) 0%, var(--white) 100%); }
.home-hero { padding: 72px 0 80px; }
.hero-inner { max-width: 880px; }
.eyebrow { display: inline-block; font-size: .85rem; font-weight: 700; color: var(--sky-600); background: var(--sky-100); padding: 4px 12px; border-radius: 999px; margin-bottom: 16px; }
.lead { font-size: 1.08rem; color: var(--ink-2); }
.not-offered { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; border-radius: 12px; padding: 12px 16px; font-size: .95rem; }
.not-offered strong { display: block; color: #7c2d12; }
.site-guide { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; }
.site-guide li { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: .95rem; color: var(--ink-2); }
.site-guide strong { display: block; color: var(--sky-600); font-size: .9rem; margin-bottom: 2px; }
.info-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 24px 0; }
.info-grid div { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.info-grid dt { font-size: .8rem; font-weight: 700; color: var(--sky-600); }
.info-grid dd { margin: 2px 0 0; font-size: .92rem; color: var(--ink); line-height: 1.5; }

.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border-radius: 12px;
  font: inherit; font-weight: 700; font-size: .98rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--sky-600); color: var(--white); }
.btn-primary:hover { background: #0369a1; }
.btn-ghost { background: var(--white); color: var(--sky-600); border-color: var(--sky-300); }
.btn-ghost:hover { background: var(--sky-50); }

/* sections */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-soft); }
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.split.reverse { grid-template-columns: 1fr 1.1fr; }
.media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.points-title { margin-top: 48px; }
h2 + .points { margin-top: 0; }
.points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.point { background: var(--white); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--sky-400); box-shadow: var(--shadow); }
.point p { margin: 0; font-size: .95rem; }
.points.two { grid-template-columns: repeat(2, 1fr); }
.more { margin: 20px 0 0; }
.step-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: 10px; counter-reset: none; }
.step-flow li { display: flex; align-items: center; gap: 16px; background: var(--white); border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); text-align: left; }
.step-flow .step-no { display: block; flex-shrink: 0; min-width: 32px; margin: 0; }
.step-flow h3 { font-size: .95rem; margin: 0; }

.checklist { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding: 12px 16px 12px 46px; background: var(--sky-50); border-radius: 12px; color: var(--ink); }
.checklist li::before {
  content: ""; position: absolute; left: 16px; top: 50%; width: 18px; height: 18px; margin-top: -9px;
  border-radius: 50%; background: var(--sky-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L21 7.5l-1.4-1.4z'/%3E%3C/svg%3E") center/12px no-repeat;
}
.plan-box { border: 1px solid var(--sky-300); border-radius: var(--radius); padding: 22px 24px; background: var(--white); }
.plan-box p { margin: 0; }
.tip { background: var(--sky-50); border-left: 4px solid var(--sky-400); border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 0; }
.tip strong { display: block; color: var(--sky-600); font-size: .9rem; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 18px; background: var(--white); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.step-no { flex-shrink: 0; font-weight: 800; font-size: 1.1rem; color: var(--sky-500); min-width: 32px; }
.steps h3 { margin-bottom: .3em; }
.steps p { margin: 0; font-size: .95rem; }

.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { font-size: .95rem; }
.card ul { padding-left: 1.1em; margin: 0; font-size: .95rem; }
.card li + li { margin-top: 6px; }
.link-card { display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
.link-card:hover { border-color: var(--sky-300); box-shadow: var(--shadow); transform: translateY(-2px); }
.link-card p { flex: 1; }
.tag { align-self: flex-start; font-size: .75rem; font-weight: 700; color: var(--sky-600); background: var(--sky-50); padding: 2px 10px; border-radius: 999px; margin-bottom: 10px; }
.text-link { font-weight: 700; font-size: .92rem; color: var(--sky-600); text-decoration: none; }
.text-link::after { content: " →"; }
.caution-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 28px; }

.ba-box { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.ba-thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ba-thumbs span {
  display: flex; align-items: flex-end; justify-content: center; aspect-ratio: 3 / 4; padding-bottom: 8px;
  border-radius: 10px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; color: var(--white);
  background: linear-gradient(160deg, #cbd5e1, #94a3b8); filter: blur(.3px);
}
.ba-thumbs span + span { background: linear-gradient(160deg, var(--sky-300), var(--sky-600)); }

/* FAQ (펼쳐진 Q&A 목록) */
.faq { display: grid; gap: 12px; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.faq-item h3 { font-size: 1rem; margin: 0 0 10px; }
.faq-item h3::before { content: "Q. "; color: var(--sky-500); }
.faq-item p { margin: 0; }

/* 가까운 지역 드롭다운 */
.region-dropdown { margin-top: 28px; background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.region-dropdown[open] { border-color: var(--sky-300); }
.region-dropdown summary {
  list-style: none; cursor: pointer; position: relative; padding: 18px 52px 18px 20px;
  font-weight: 700; color: var(--ink); font-size: 1.02rem;
}
.region-dropdown summary::-webkit-details-marker { display: none; }
.region-dropdown summary::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--sky-600); border-bottom: 2px solid var(--sky-600); transform: rotate(45deg); transition: transform .2s;
}
.region-dropdown[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.region-dropdown .count { margin-left: 6px; font-size: .8rem; font-weight: 600; color: var(--sky-600); background: var(--sky-50); padding: 2px 8px; border-radius: 999px; }
.dropdown-body { padding: 0 20px 20px; border-top: 1px dashed var(--line); }
.dropdown-group { padding-top: 16px; }
.dropdown-gu { margin: 0 0 8px; font-size: .85rem; font-weight: 700; color: var(--ink-3); }
.link-list a.hub, .chip-list a.hub { color: var(--ink-3); background: var(--bg-soft); }
.hub-dropdown summary h2 { display: inline; font-size: clamp(1.2rem, 2.6vw, 1.5rem); margin: 0; }
.hub-dropdown summary { padding-top: 20px; padding-bottom: 20px; }
.related-sub { margin-top: 28px; font-size: 1rem; color: var(--ink-2); }

/* related & lists */
.link-list { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.link-list a, .chip-list a {
  display: inline-block; padding: 6px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line);
  color: var(--ink-2); text-decoration: none; font-size: .92rem;
}
.link-list a:hover, .chip-list a:hover { border-color: var(--sky-400); color: var(--sky-600); }
.chip-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.region-group + .region-group { margin-top: 24px; }
.region-group h3 { font-size: .95rem; color: var(--ink-3); }

.med-notice { margin-top: 0; margin-bottom: 0; }
.med-notice p { font-size: .85rem; color: var(--ink-3); background: var(--bg-soft); border-radius: 12px; padding: 16px 18px; margin: 32px 0; }
.cta-final { background: linear-gradient(180deg, var(--white), var(--sky-50)); }

/* footer */
.site-footer { background: #0f172a; color: #94a3b8; padding: 40px 0 48px; font-size: .88rem; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid #1e293b; }
.footer-logo img { width: auto; height: 36px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-links a:hover { color: var(--white); }
.biz { display: flex; flex-wrap: wrap; gap: 4px 0; line-height: 1.7; }
.biz em { font-style: normal; color: #cbd5e1; margin-right: 4px; }
.biz span:not(:last-child)::after { content: "|"; margin: 0 10px; color: #475569; }
.copy { margin: 16px 0 0; color: #64748b; }

/* modal */
.ba-modal { border: 0; border-radius: 18px; padding: 28px; max-width: 480px; width: calc(100% - 32px); box-shadow: 0 20px 60px rgba(15, 23, 42, .25); color: var(--ink-2); }
.ba-modal::backdrop { background: rgba(15, 23, 42, .5); }
.ba-modal h2 { font-size: 1.25rem; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

:focus-visible { outline: 3px solid var(--sky-400); outline-offset: 2px; }

/* responsive */
@media (max-width: 900px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .points, .points.two { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 24px; }
  .split.reverse .media { order: 2; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 16px; }
  .header-inner { min-height: 60px; gap: 8px; }
  .brand img { height: 30px; }
  .brand { gap: 8px; }
  .brand-name { padding-left: 8px; font-size: .82rem; line-height: 1.25; }
  .brand-name b { display: block; }
  .quick-menu { gap: 6px; }
  .qm { flex-direction: column; gap: 2px; padding: 6px 8px; border-radius: 10px; font-size: .68rem; min-width: 54px; }
  .qm svg { width: 18px; height: 18px; }
  .lbl-l { display: none; }
  .lbl-s { display: inline; }
  .hero { padding: 28px 0 40px; }
  .home-hero { padding: 48px 0 56px; }
  .section { padding: 48px 0; }
  .card-grid, .card-grid.two, .caution-grid { grid-template-columns: 1fr; }
  .ba-box { grid-template-columns: 1fr; }
  .ba-thumbs { max-width: 220px; }
  .cta-row .btn { flex: 1 1 100%; }
  .biz { display: block; }
  .biz span { display: block; }
  .biz span::after { content: none !important; }
}
@media (max-width: 360px) {
  .brand img { height: 26px; }
  .qm { min-width: 48px; padding: 6px 6px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* h2 바로 아래 h3 대신 쓰는 제목: <p><strong class="item-title">제목</strong>설명</p> */
.item-title { display: block; color: var(--ink); font-size: 1.08rem; font-weight: 700; line-height: 1.35; margin-bottom: .45em; }
p.item-heading { margin: 0 0 .6em; }
.step-flow .item-title { font-size: 1rem; margin: 0; }
.step-flow p.item-heading { margin: 0; }
.steps .item-title { margin-bottom: .3em; }
.faq-item .item-title { font-size: 1rem; padding-bottom: 10px; margin-bottom: 10px; border-bottom: 1px dashed var(--line); }
.faq-item .item-title::before { content: "Q. "; color: var(--sky-500); }
.region-group .item-title { font-size: .95rem; color: var(--ink-3); }
.item-title.related-sub { margin-top: 28px; font-size: 1rem; color: var(--ink-2); }

/* 정품 장비 사진 */
figure.media { margin: 0; }
figure.media img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; height: auto; }

/* 시술 전후 사진 */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin: 20px 0; }
.ba-pair { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; }
.ba-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ba-imgs > div { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--bg-soft); }
.ba-imgs img { width: 100%; height: 100%; object-fit: cover; }
.ba-imgs span { position: absolute; left: 8px; top: 8px; font-size: .75rem; font-weight: 700; color: var(--white); background: rgba(15, 23, 42, .6); padding: 2px 8px; border-radius: 999px; }
.ba-pair.empty .ba-imgs > div { border: 2px dashed var(--line); }
.ba-pair.empty .ba-imgs span { color: var(--ink-3); background: var(--white); }
.ba-pair figcaption { margin-top: 8px; font-size: .85rem; color: var(--ink-3); text-align: center; }
.ba-notice { margin: 0; padding-left: 1.1em; font-size: .85rem; color: var(--ink-3); }
.ba-notice li + li { margin-top: 4px; }
@media (max-width: 680px) { .ba-grid { grid-template-columns: 1fr; } }

/* 상세 페이지 h1 아래 원내 사진 */
.clinic-photo { margin: 0 auto 28px; text-align: center; }
.clinic-photo img { display: block; margin: 0 auto; width: 100%; max-width: 820px; height: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.narrow-text { max-width: 820px; }

/* 실제 전후 사진: 사진 안의 Before/After·촬영일 표기가 잘리지 않게 원본 비율 유지 */
.ba-pair.photo .ba-imgs > div { aspect-ratio: auto; background: none; }
.ba-pair.photo .ba-imgs img { height: auto; object-fit: contain; }

/* 공식 홈페이지에 전후 사진이 1쌍뿐인 시술: 1쌍만 가운데 정렬 */
.ba-grid.single { grid-template-columns: minmax(0, 560px); justify-content: center; }

/* 원내 사진 구역: 위아래 여백을 일반 섹션의 절반으로 */
/* 위: 시술 정보 표 아래 24px + h1 구역 아래 48px ≈ 72px (기존 144px의 절반)
   아래: 이 구역 16px + 다음 섹션 위 64px ≈ 80px (기존 156px의 절반) */
.section.clinic-intro { padding: 0 0 16px; }
.section.clinic-intro .clinic-photo { margin-bottom: 0; }
.hero:has(+ .clinic-intro) { padding-bottom: 48px; }
@media (max-width: 680px) {
  .section.clinic-intro { padding: 0 0 12px; }
  .hero:has(+ .clinic-intro) { padding-bottom: 28px; }
}
