/* ==========================================================
   Set B — 썸네일 갤러리 + 원장 설명형
   톤: 차분한 쿨 그레이, 포인트 #007aff
   ========================================================== */
:root{
  --bg:#F4F6F9;
  --surface:#FFFFFF;
  --ink:#1E2833;
  --muted:#5F6B78;
  --line:#DFE4EA;
  --point:#007aff;
  --point-soft:#EAF3FF;
  --img-bg:#E1E1E1;
  --radius-img:10px;
  --radius-ui:12px;
  --sans:"Pretendard Variable",Pretendard,-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic",sans-serif;
  --serif:"Noto Serif KR","Nanum Myeongjo",serif;
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font-family:var(--sans);
  font-size:16px;line-height:1.7;word-break:keep-all;overflow-wrap:anywhere}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
a:focus-visible,summary:focus-visible{outline:2px solid var(--point);outline-offset:3px;border-radius:6px}

/* ---------- 헤더 ---------- */
.site-header{background:var(--surface);border-bottom:1px solid var(--line)}
.site-header .inner{max-width:1120px;margin:0 auto;padding:18px 20px;display:flex;align-items:center}
.brand{display:flex;align-items:center;gap:10px;text-decoration:none;font-weight:700;font-size:17px;letter-spacing:-.01em}
.brand img{width:28px;height:28px}

/* ---------- 플로팅 CTA (반응형) ---------- */
.cta{position:fixed;z-index:100;display:grid;gap:6px;margin:0;padding:0;list-style:none}
.cta a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  min-height:64px;padding:8px 6px;background:var(--surface);border:1px solid var(--line);
  border-radius:var(--radius-ui);color:var(--ink);font-size:12.5px;font-weight:600;text-decoration:none;white-space:nowrap;
  transition:background-color .15s,color .15s,border-color .15s}
.cta svg{width:20px;height:20px;stroke:var(--point);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.cta a:hover,.cta a:focus-visible{background:var(--point);border-color:var(--point);color:#fff}
.cta a:hover svg,.cta a:focus-visible svg{stroke:#fff}
/* 공통: 오른쪽 하단 세로 1열 */
.cta{right:calc(20px + env(safe-area-inset-right, 0px));bottom:calc(20px + env(safe-area-inset-bottom, 0px));
  grid-template-columns:84px}
/* 태블릿 */
@media (max-width:1023px){
  .cta{right:14px;bottom:calc(14px + env(safe-area-inset-bottom, 0px));grid-template-columns:72px;gap:5px}
  .cta a{min-height:58px;font-size:11.5px}
  .cta svg{width:18px;height:18px}
}
/* 모바일: 아이콘 위주로 작게, 그림자로 본문과 구분 */
@media (max-width:640px){
  .cta{right:10px;bottom:calc(12px + env(safe-area-inset-bottom, 0px));grid-template-columns:56px;gap:6px}
  .cta a{min-height:56px;padding:6px 2px;font-size:10px;letter-spacing:-.03em;border-radius:14px;
    box-shadow:0 2px 8px rgba(30,40,51,.12)}
  .cta svg{width:19px;height:19px}
  main{padding-right:76px}
}

/* ---------- 본문 ---------- */
main{max-width:760px;margin:0 auto;padding:28px 20px 56px}
.breadcrumb{font-size:13px;color:var(--muted);margin:0 0 18px}
.breadcrumb ol{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.breadcrumb li+li::before{content:"/";margin-right:6px;color:var(--line)}
.breadcrumb a{text-decoration:none}
.breadcrumb a:hover{color:var(--point)}

h1{font-size:clamp(26px,4.2vw,34px);line-height:1.3;letter-spacing:-.025em;margin:0 0 12px;font-weight:800}
.lead{font-size:17px;color:var(--muted);margin:0 0 28px;max-width:40em}

/* 페이지 대표 이미지 */
.hero-fig{margin:0 0 28px;max-width:440px}
.hero-fig img{width:100%;aspect-ratio:16/10;object-fit:contain;border-radius:var(--radius-img);background:var(--img-bg)}
.hero-fig figcaption{font-size:12.5px;color:var(--muted);margin-top:8px}

/* ---------- 썸네일 갤러리 ---------- */
.cat{margin:0 0 36px}
.cat h2{font-size:21px;letter-spacing:-.02em;margin:0 0 4px}
.cat>p{color:var(--muted);margin:0 0 16px;font-size:15px}
.thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:18px 14px;margin:0;padding:0;list-style:none}
@media (max-width:560px){.thumbs{gap:14px 8px}.thumb h3{font-size:13.5px;margin-top:6px}.thumb.is-pending h3::after{display:block;font-size:11.5px}.cat{margin-bottom:28px}}
.thumb{display:block;text-decoration:none}
.thumb img{width:100%;aspect-ratio:4/3;object-fit:contain;border-radius:var(--radius-img);
  background:var(--img-bg);transition:outline-color .15s;outline:2px solid transparent;outline-offset:2px}
.thumb:hover img{outline-color:var(--point)}
.thumb h3{font-size:15.5px;margin:9px 0 0;font-weight:700;letter-spacing:-.01em}
.thumb:hover h3{color:var(--point)}
.thumb.is-pending{opacity:.55;pointer-events:none}
.thumb.is-pending h3::after{content:" (준비 중)";font-weight:400;color:var(--muted);font-size:13px}
.thumb-note{font-size:12.5px;color:var(--muted);margin:10px 0 0}

/* ---------- 아코디언 ---------- */
.acc{border-top:1px solid var(--line)}
.acc:last-of-type{border-bottom:1px solid var(--line)}
.acc>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;
  gap:16px;padding:18px 2px}
.acc>summary::-webkit-details-marker{display:none}
.acc>summary h2{font-size:19px;margin:0;letter-spacing:-.02em;font-weight:700}
.acc>summary::after{content:"";flex:none;width:22px;height:22px;border-radius:50%;
  background:var(--point-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M7 11h8M11 7v8' stroke='%23007aff' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/22px no-repeat;
  transition:transform .2s}
.acc[open]>summary::after{transform:rotate(45deg)}
.acc-body{padding:0 2px 24px}
.acc-body h3{font-size:16.5px;margin:20px 0 4px;letter-spacing:-.01em}
.acc-body h3:first-child{margin-top:0}
.acc-body p{margin:0 0 12px}
@media (prefers-reduced-motion:reduce){.acc>summary::after{transition:none}}

/* 원장 설명: 세트 B의 핵심 표현 */
.doctor-talk{border-left:2px solid var(--point);padding:2px 0 2px 20px;margin:0}
.doctor-talk p{font-family:var(--serif);font-size:17px;line-height:1.95;margin:0 0 16px}
.doctor-talk p:last-child{margin-bottom:0}
.doctor-talk h3{font-family:var(--sans);font-size:16.5px;margin:22px 0 6px}
.doctor-talk h3:first-child{margin-top:0}
.doctor-talk h3+p{margin-bottom:0}
.doctor-sign{display:flex;align-items:center;gap:10px;font-size:13.5px;color:var(--muted);margin:18px 0 0 22px}
.doctor-sign img{width:44px;height:44px;border-radius:50%;object-fit:cover;object-position:50% 20%;background:var(--line)}
.doctor-sign strong{color:var(--ink)}

/* 순서가 있는 과정 */
.steps{list-style:none;counter-reset:s;margin:0;padding:0}
.steps li{counter-increment:s;position:relative;padding:0 0 16px 40px}
.steps li::before{content:counter(s);position:absolute;left:0;top:2px;width:26px;height:26px;border-radius:50%;
  border:1.5px solid var(--point);color:var(--point);font-size:13px;font-weight:700;display:grid;place-items:center}
.steps h3{margin:0 0 2px}
.cautions{margin:0;padding-left:20px}
.cautions li{margin-bottom:8px}

/* FAQ: 시술 과정과 같은 번호 */
.faq li{padding-bottom:20px}

/* 오시는 길 */
.route p{color:var(--muted)}

/* 하단 이동 아코디언 */
.acc.nav>summary h2{font-size:16px;font-weight:600;color:var(--muted)}
.links{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px}
.links a{display:inline-block;padding:7px 13px;border:1px solid var(--line);border-radius:999px;
  background:var(--surface);font-size:14px;text-decoration:none}
.links a:hover{border-color:var(--point);color:var(--point)}

/* 홈: 동네 선택 */
.zone{margin:0 0 26px}
.zone h2{font-size:18px;margin:0 0 10px}

/* ---------- 푸터 ---------- */
.site-footer{background:var(--surface);border-top:1px solid var(--line);font-size:13.5px;color:var(--muted)}
.site-footer .inner{max-width:760px;margin:0 auto;padding:32px 20px 40px}
.site-footer strong{color:var(--ink);font-size:15px}
.site-footer dl{display:grid;grid-template-columns:auto 1fr;gap:4px 14px;margin:14px 0}
.site-footer dt{font-weight:600;color:var(--ink)}
.site-footer dd{margin:0}
.site-footer .notice{margin-top:14px;font-size:12.5px;line-height:1.6}

@media (max-width:640px){.site-footer .inner{padding-right:76px}}

/* 고정 섹션 (접히지 않음) */
.block{border-top:1px solid var(--line);padding:22px 2px 26px}
.block>h2{font-size:19px;margin:0 0 16px;letter-spacing:-.02em;font-weight:700}
.block+.acc{border-top:1px solid var(--line)}

/* 오시는 길 */
.route .addr{color:var(--ink);font-weight:600;margin-bottom:10px}
.map-btn{display:inline-block;padding:8px 14px;border-radius:10px;background:var(--point);color:#fff;font-size:14px;font-weight:600;text-decoration:none}
.map-btn:hover{filter:brightness(1.08)}
.route p strong{color:var(--ink)}
.bus{list-style:none;margin:6px 0 14px;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.bus li{padding:3px 9px;border-radius:6px;font-size:13px;font-weight:700;color:#fff}
.bus-v{background:#7CB342}.bus-g{background:#2E9E4F}.bus-r{background:#E5483F}.bus-b{background:#2F6FDE}
.interior{margin:18px 0 0}
.interior img{width:100%;border-radius:var(--radius-img);aspect-ratio:860/416;object-fit:cover}
.interior figcaption{font-size:12.5px;color:var(--muted);margin-top:6px}

/* 사용하는 장비 */
.dev-intro{margin:0 0 18px}
.dev-intro a{color:var(--point);font-weight:600}
.device{display:grid;grid-template-columns:200px 1fr;gap:18px;padding:16px 0;border-top:1px dashed var(--line)}
.device:first-of-type{border-top:0;padding-top:0}
.device img{width:100%;aspect-ratio:600/372;object-fit:cover;border-radius:var(--radius-img);background:var(--img-bg)}
.device h3{margin:0 0 6px;font-size:17px}
.device p{margin:0 0 8px}
.facts{display:grid;grid-template-columns:auto 1fr;gap:2px 12px;margin:8px 0 0;font-size:14px}
.facts dt{color:var(--muted)}
.facts dd{margin:0;font-weight:600}
@media (max-width:640px){.device{grid-template-columns:1fr;gap:10px}.device img{max-width:320px}}
.device.no-img{grid-template-columns:1fr}

/* 시술 전후 사진 */
.case-fig{margin:0 0 28px}
.case-fig img{width:100%;border-radius:var(--radius-img);background:var(--img-bg)}
.case-fig figcaption{font-size:12.5px;color:var(--muted);margin-top:8px;line-height:1.6}
.case-fig figcaption strong{color:var(--ink);font-size:14px}
.case-fig ul{margin:6px 0 0;padding-left:16px}

/* 모바일: 세로 CTA가 본문을 가리지 않도록 (main 기본 여백보다 뒤에 둬야 적용됨) */
@media (max-width:640px){main{padding-right:76px}}

.device h3 a{color:inherit;text-decoration:none;border-bottom:1px solid var(--point)}
.device h3 a:hover{color:var(--point)}
.dev-more{margin:8px 0 0;font-size:14px}
.dev-more a{color:var(--point);font-weight:600}
