/* ==========================================================
   메리성형외과 진료 가이드 — editorial / horizontal guide
   Type: Pretendard Variable (KR + Latin, 한 가족으로 통일)
   ========================================================== */

:root {
  --bg: #e5ddd6;
  --bg-2: #d9cfc5;
  --bg-3: #cfc3b7;
  --ink: #111;
  --ink-2: #3b3631;
  --muted: #6c645c;
  --line: rgba(17, 17, 17, .16);
  --green: #0f3a2a;
  --green-ink: #e9e2d8;

  --pad-x: clamp(20px, 3.2vw, 56px);
  --head-h: 64px;

  --f: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
       "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  letter-spacing: -0.012em;
  word-break: keep-all;          /* 한글 어절 단위 줄바꿈 */
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss06", "tnum" 0;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; font-size: 14px;
}
.skip:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

/* ---------- Type scale ---------- */

.label {                        /* 001, 01 / 10, 스크롤 … */
  font-size: 12px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.display {                      /* 큰 헤드라인 — 한글은 대문자가 없으므로 굵기 500 + 자간으로 밀도 */
  font-size: clamp(42px, 6.1vw, 104px);
  line-height: 1.1;
  font-weight: 500;
  letter-spacing: -0.052em;
  text-wrap: balance;
}
.display .q { margin-left: -.42em; }   /* 여는 따옴표를 왼쪽 여백에 걸어 정렬선 유지 */

.h-xl {
  font-size: clamp(34px, 3.9vw, 64px);
  line-height: 1.14;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: balance;
}

.h-l {
  font-size: clamp(24px, 1.9vw, 30px);
  line-height: 1.3;
  letter-spacing: -0.035em;
  font-weight: 500;
  text-wrap: balance;
}

.h-m {
  font-size: 19px;
  line-height: 1.45;
  letter-spacing: -0.025em;
  font-weight: 600;
}

.lede {
  font-size: clamp(17px, 1.15vw, 19px);
  line-height: 1.75;
  letter-spacing: -0.02em;
  color: var(--ink-2);
}

.small { font-size: 14px; line-height: 1.7; color: var(--muted); }
.muted { color: var(--muted); }

/* ---------- Header ---------- */

.site-head {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--head-h);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 0 var(--pad-x);
  color: #fff;
  mix-blend-mode: difference;    /* 베이지 위에선 검정, 사진 위에선 흰색 */
  transition: opacity .25s;
}
.site-head.is-hidden { opacity: 0; pointer-events: none; }

.site-head nav ul { display: flex; gap: 0; font-size: 13px; letter-spacing: -0.01em; }
.site-head nav li + li::before { content: "|"; margin: 0 .7em; opacity: .7; }
.site-head nav a:hover, .site-head nav a[aria-current] { text-decoration: underline; text-underline-offset: 4px; }

.logo {
  display: block; text-align: center;
  font-size: 12.5px; line-height: 1.05; font-weight: 500;
  letter-spacing: .02em; text-transform: uppercase;
}
.logo small { display: block; font-size: 10px; letter-spacing: .14em; margin-top: 3px; }

.head-right { justify-self: end; display: flex; align-items: center; gap: 22px; font-size: 13px; }
.head-right a { font-variant-numeric: tabular-nums; }

.burger { width: 26px; height: 14px; position: relative; display: none; }
.burger::before, .burger::after, .burger span {
  content: ""; position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor;
}
.burger::before { top: 0; } .burger span { top: 6px; } .burger::after { bottom: 0; }

.mobile-nav {
  position: fixed; inset: 0; z-index: 60; background: var(--bg);
  padding: 80px var(--pad-x) 40px; display: none; overflow-y: auto; overscroll-behavior: contain;
}
.mobile-nav.is-open { display: block; }
.mobile-nav a { display: block; font-size: 25px; letter-spacing: -0.04em; line-height: 1.5; font-weight: 500; }
.mobile-nav .close { position: absolute; top: 18px; right: var(--pad-x); font-size: 13px; }
.mobile-nav p { margin-top: 32px; }
.mobile-nav .mnav-group { margin: 26px 0 4px; font-size: 11.5px; opacity: .6; }

/* ---------- Horizontal guide (desktop) ---------- */
/* 콘텐츠는 문서 순서대로 HTML에 존재 → 검색엔진·AI 크롤러·스크린리더는 그대로 읽음.
   .js-h 클래스가 붙은 넓은 화면에서만 세로 스크롤을 가로 이동으로 변환. */

.hs { position: relative; }
.hs-sticky { position: relative; }
.hs-track { display: block; }

.js-h .hs-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
}
.js-h .hs-track {
  display: flex; height: 100%; align-items: stretch;
  will-change: transform;
}

.panel { position: relative; padding: calc(var(--head-h) + 40px) var(--pad-x) 56px; }

.js-h .panel {
  flex: 0 0 auto; height: 100%;
  padding: calc(var(--head-h) + 44px) clamp(28px, 2.8vw, 52px) 96px;
  display: flex; flex-direction: column;
}
.js-h .panel--hero { width: min(64vw, 1060px); padding-left: var(--pad-x); }
.js-h .panel--text { width: clamp(400px, 31vw, 520px); }
.js-h .panel--wide { width: clamp(560px, 46vw, 780px); }
.js-h .panel--statement { width: min(58vw, 940px); }
.js-h .panel--image { width: auto; padding: 0; }
.js-h .panel--image img { height: 100%; width: auto; object-fit: cover; }
/* 제품 컷(투명 배경 PNG/WebP) — 잘리지 않게 contain */
.panel--product { background: var(--bg-2); display: flex; align-items: center; justify-content: center; }
.panel--product img, .card-fig--product img {
  object-fit: contain;
  /* 원본 사진이 장비 아래쪽에서 잘려 있어 아래를 부드럽게 흐리게 처리 */
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 78%, transparent 100%);
}
.panel--product img { width: auto; max-width: 100%; max-height: 72svh; }
.js-h .panel--product { width: clamp(440px, 36vw, 600px); padding: calc(var(--head-h) + 24px) 48px 80px; justify-content: center; }
.js-h .panel--product img { max-height: 100%; }
.card-fig--product { display: grid; place-items: center; padding: 8% 10%; }
.card:hover .card-fig--product img { transform: scale(1.025); }
.js-h .panel--figure { width: clamp(420px, 34vw, 560px); justify-content: center; }
.js-h .panel--end { width: clamp(380px, 30vw, 480px); justify-content: flex-end; }

/* 성형 / 피부 파트 표지 */
.panel--part { background: var(--bg-2); display: flex; flex-direction: column; }
.panel--part-skin { background: var(--bg-3); }
.js-h .panel--part { width: clamp(380px, 30vw, 500px); justify-content: flex-end; }
.part-title { font-size: clamp(64px, 7.4vw, 128px); line-height: 1; letter-spacing: -0.06em; font-weight: 600; margin: 18px 0 26px; }
.part-intro { max-width: 30em; font-size: 16px; line-height: 1.75; }
.part-links { list-style: none; margin: 32px 0 0; padding: 0; border-top: 1px solid var(--line); }
.part-links li { border-bottom: 1px solid var(--line); }
.part-links a { display: flex; gap: 18px; align-items: baseline; padding: 13px 0; font-size: 19px; font-weight: 500; letter-spacing: -0.035em; }
.part-links a span { font-size: 12px; letter-spacing: .06em; opacity: .6; min-width: 2.4em; }
.part-links a:hover { color: var(--green); }

/* 모식도(SVG) 카드 */
.card-fig--svg { display: grid; place-items: center; padding: 8% 10%; }
.card-fig--svg img { object-fit: contain; }
.card:hover .card-fig--svg img { transform: scale(1.025); }
.js-h .panel + .panel--text,
.js-h .panel + .panel--wide { border-left: 1px solid var(--line); }

.panel-num { margin-bottom: 18px; }
.panel h2 + p, .panel h2 + ul, .panel h2 + ol { margin-top: 20px; }
.panel p { max-width: 36em; }

.js-h .panel--hero .display { margin-top: auto; margin-bottom: auto; }
.js-h .panel--statement .h-xl { margin-top: auto; }

/* 하단 고정 HUD: 스크롤 안내 + 카운터 + 화살표 */
.hs-hud { display: none; }
.js-h .hs-hud {
  display: flex; align-items: center; justify-content: space-between;
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5;
  padding: 0 var(--pad-x) 26px; pointer-events: none;
}
.hs-hud > * { pointer-events: auto; }
.hs-hud .arrows { display: flex; gap: 2px; }
.hs-hud .arrows button { width: 42px; height: 28px; display: grid; place-items: center; }
.hs-hud .arrows svg { width: 26px; height: 12px; }
.hs-hud .arrows button:disabled { opacity: .3; cursor: default; }
.hs-progress { position: absolute; left: var(--pad-x); right: var(--pad-x); bottom: 0; height: 2px; background: var(--line); }
.hs-progress i { display: block; height: 100%; width: 0; background: var(--ink); }

/* ---------- Guide cards (hub) ---------- */

.js-h .hub-cards { display: contents; }
.card { display: block; width: 100%; }
.js-h .panel--card { width: clamp(300px, 23vw, 380px); padding-top: calc(var(--head-h) + 20px); }
.js-h .panel--card.is-low { padding-top: calc(var(--head-h) + 120px); }
.js-h .panel--card .card-fig { height: 46vh; }
.js-h .panel--card.is-low .card-fig { height: 38vh; }

.card-num { margin-bottom: 10px; }
.card-fig { overflow: hidden; background: var(--bg-2); aspect-ratio: 4 / 5; }
.js-h .card-fig { aspect-ratio: auto; }
.card-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.card:hover .card-fig img { transform: scale(1.035); }
.card-title {
  margin-top: 18px;
  font-size: clamp(21px, 1.55vw, 26px); line-height: 1.28; letter-spacing: -0.04em; font-weight: 500;
}
.card-meta { margin-top: 10px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }
.card:hover .card-title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.typo-fig { height: 100%; padding: 26px; display: flex; flex-direction: column; justify-content: space-between; }
.typo-fig--green { background: var(--green); color: var(--green-ink); }
.typo-fig--sand { background: var(--bg-3); }
.typo-fig ol { font-size: clamp(17px, 1.3vw, 22px); line-height: 1.55; letter-spacing: -0.035em; font-weight: 500; }
.typo-fig ol li { display: flex; gap: 12px; border-top: 1px solid currentColor; padding: 7px 0 5px; border-color: rgba(233,226,216,.28); }
.typo-fig--sand ol li { border-color: var(--line); }
.typo-fig ol li span { font-size: 11px; letter-spacing: .04em; padding-top: 8px; opacity: .7; }

/* ---------- Article blocks ---------- */

.crumbs { font-size: 12.5px; display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; text-underline-offset: 3px; }
.crumbs .sep { opacity: .5; }

.byline {
  display: flex; gap: 14px; align-items: center; margin-top: 28px;
  font-size: 13.5px; line-height: 1.55; color: var(--ink-2);
}
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 18%; }
.byline b { font-weight: 600; color: var(--ink); }

.hero-lede { max-width: 31em; margin-top: 26px; }

.list-dash li { position: relative; padding-left: 18px; margin-bottom: .5em; }
.list-dash li::before { content: ""; position: absolute; left: 0; top: .88em; width: 8px; height: 1px; background: currentColor; }

.list-num { counter-reset: n; }
.list-num li { counter-increment: n; position: relative; padding: 12px 0 12px 44px; border-top: 1px solid var(--line); }
.list-num li:last-child { border-bottom: 1px solid var(--line); }
.list-num li::before {
  content: counter(n, decimal-leading-zero); position: absolute; left: 0; top: 15px;
  font-size: 12px; font-weight: 500; letter-spacing: .04em; color: var(--muted);
}
.list-num b { font-weight: 600; display: block; letter-spacing: -0.02em; }
.list-num span { display: block; font-size: 14.5px; line-height: 1.7; color: var(--ink-2); }

.dl-grid { display: grid; grid-template-columns: 7.5em 1fr; border-top: 1px solid var(--line); }
.dl-grid dt, .dl-grid dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); }
.dl-grid dt { font-weight: 600; letter-spacing: -0.02em; }
.dl-grid dd { font-size: 15px; color: var(--ink-2); }

.note {
  margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 13px; line-height: 1.7; color: var(--muted);
}

.figure-svg { width: 100%; max-width: 440px; margin: 0 auto; }
.figure-svg figcaption { margin-top: 14px; font-size: 13px; line-height: 1.65; color: var(--muted); }
.figure-svg .fig-box { background: var(--bg-2); padding: 18px; }

.timeline { border-left: 1px solid var(--ink); margin-left: 4px; }
.timeline li { position: relative; padding: 0 0 18px 22px; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.timeline b { display: block; font-weight: 600; letter-spacing: -0.02em; }
.timeline span { display: block; font-size: 14.5px; color: var(--ink-2); line-height: 1.7; }

/* ---------- Vertical editorial sections ---------- */

.section {
  padding: clamp(80px, 10vw, 150px) var(--pad-x);
  border-top: 1px solid var(--line);
}
.section-grid {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 120px);
  max-width: 1440px; margin: 0 auto;
}
.section-grid > header { position: sticky; top: calc(var(--head-h) + 24px); align-self: start; }
.section-grid > header .label { display: block; margin-bottom: 18px; }
.section-grid > header p { margin-top: 20px; max-width: 26em; }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 22px; gap: 20px;
  padding: 22px 0; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.5; letter-spacing: -0.03em; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 26px; line-height: 1.1; text-align: right; }
.faq details[open] summary::after { content: "–"; }
.faq .a { padding: 0 44px 26px 0; color: var(--ink-2); max-width: 46em; }
.faq .a p:last-child { margin-bottom: 0; }

/* Doctors */
.doctors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); }
.doctor img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 10%; background: var(--bg-2); }
.doctor .role { margin-top: 20px; font-size: 13.5px; color: var(--green); font-weight: 600; letter-spacing: -0.01em; }
.doctor h3 { margin-top: 4px; font-size: clamp(26px, 2.2vw, 34px); letter-spacing: -0.04em; line-height: 1.25; }
.doctor h3 small { font-size: 15px; font-weight: 500; letter-spacing: -0.02em; margin-left: 8px; color: var(--ink-2); }
.doctor .en { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.doctor ul { margin-top: 18px; font-size: 14.5px; line-height: 1.85; color: var(--ink-2); }
.doctor ul + ul { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.doctor details { margin-top: 14px; font-size: 13.5px; }
.doctor details summary { cursor: pointer; font-weight: 600; }
.doctor details p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.6; }
.doctor details p i { font-style: normal; color: var(--muted); }

/* Reviewer box (article) */
.reviewer { display: grid; grid-template-columns: 140px 1fr; gap: 28px; align-items: start; }
.reviewer img { width: 140px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 12%; }
.reviewer .h-l { margin-top: 6px; }
.reviewer ul { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); }

/* Clinic info */
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 64px); }
.info-grid h3 { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin-bottom: 12px; }
.hours { font-variant-numeric: tabular-nums; }
.hours div { display: grid; grid-template-columns: 4.5em 1fr; border-top: 1px solid var(--line); padding: 10px 0; font-size: 17px; letter-spacing: -0.02em; }
.hours div:last-child { border-bottom: 1px solid var(--line); }
.info-grid .big { font-size: clamp(24px, 2vw, 32px); letter-spacing: -0.04em; line-height: 1.3; font-weight: 500; font-variant-numeric: tabular-nums; }
.btn-line {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px;
  border: 1px solid var(--ink); padding: 11px 18px; font-size: 14px; font-weight: 500;
  transition: background .2s, color .2s;
}
.btn-line:hover { background: var(--ink); color: var(--bg); }

/* Related */
.related { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.related a { display: block; border-top: 1px solid var(--ink); padding-top: 14px; }
.related a:hover .h-l { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }

/* Disclaimer */
.disclaimer {
  max-width: 1440px; margin: 0 auto; padding: 28px 0 0;
  font-size: 12.5px; line-height: 1.75; color: var(--muted);
}


/* ---------- Photos ---------- */

/* 가로 트랙 안의 사진 패널 (레퍼런스의 풀하이트 이미지 칸) */
.panel--photo { margin: 0; padding: 0; position: relative; overflow: hidden; }
.panel--photo img { width: 100%; height: 100%; object-fit: cover; }
.panel--photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 34%;
  background: linear-gradient(0deg, rgba(20, 18, 15, .5), rgba(20, 18, 15, 0));
  pointer-events: none;
}
.panel--photo figcaption {
  position: absolute; left: 20px; bottom: 18px; color: #fff; z-index: 1;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .3);
}
.js-h .panel--photo { width: clamp(560px, 48vw, 880px); padding: 0; }
.js-h .panel--photo figcaption { left: 28px; bottom: 64px; }

/* 의료진 섹션 왼쪽 열의 작은 사진 */
.side-fig { margin: 36px 0 0; max-width: 380px; }
.side-fig img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% 50%; }
.side-fig figcaption { margin-top: 10px; font-size: 12.5px; color: var(--muted); }

/* 위치 안내 배경 이미지 띠 */
.place-band { position: relative; min-height: min(78vh, 760px); display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.place-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; }
.place-band::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(0deg, rgba(15, 58, 42, .88) 0%, rgba(15, 58, 42, .5) 30%, rgba(15, 58, 42, 0) 62%),
              linear-gradient(90deg, rgba(15, 58, 42, .35), rgba(15, 58, 42, 0) 50%);
}
.place-band__text { position: relative; z-index: 2; padding: 0 var(--pad-x) clamp(32px, 4vw, 56px); max-width: 900px; }
.place-band__addr { font-size: clamp(26px, 2.5vw, 40px); line-height: 1.25; letter-spacing: -0.04em; font-weight: 500; }
.place-band__text .label { opacity: .85; margin-bottom: 14px; }

/* ---------- Footer ---------- */

.site-foot { background: var(--green); color: var(--green-ink); padding: 64px var(--pad-x) 40px; }
.foot-inner { max-width: 1440px; margin: 0 auto; display: grid; grid-template-columns: 220px 1fr auto; gap: 48px; align-items: start; }
.foot-brand img { width: 58px; filter: brightness(0) invert(.92) sepia(.12); }
.foot-brand p { margin-top: 14px; font-size: 18px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.3; }
.foot-brand p small { display: block; font-size: 11px; letter-spacing: .1em; font-weight: 500; text-transform: uppercase; opacity: .75; margin-top: 4px; }
.site-foot address { font-style: normal; font-size: 14px; line-height: 1.95; opacity: .9; }
.site-foot address span + span::before { content: ""; display: inline-block; width: 1.4em; }
.foot-nav { font-size: 14px; line-height: 2; display: grid; grid-template-columns: repeat(3, auto); gap: 0 40px; }
.foot-h { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; opacity: .6; margin-bottom: 6px; }
.foot-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copy { max-width: 1440px; margin: 40px auto 0; font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; opacity: .65; }

/* ---------- Responsive ---------- */

@media (max-width: 1023px) {
  :root { --head-h: 56px; }
  .site-head nav { display: none; }
  .site-head {
    grid-template-columns: auto 1fr auto;
    mix-blend-mode: normal; color: var(--ink);
    background: rgba(229, 221, 214, .94);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
  }
  .logo { text-align: left; }
  .head-right .tel { display: none; }
  .burger { display: block; }

  .panel { border-top: 1px solid var(--line); }
  .panel:first-child { border-top: 0; }
  .panel--hero { padding-top: calc(var(--head-h) + 28px); min-height: 72svh; display: flex; flex-direction: column; }
  .panel--hero .display { margin: 40px 0; }
  .panel--image { padding: 0; }
  .panel--image img { width: 100%; max-height: 80svh; object-fit: cover; }
  .panel--card { border-top: 0; padding-top: 18px; padding-bottom: 32px; }
  .panel--photo { border-top: 0; }
  .panel--photo img { height: auto; aspect-ratio: 4 / 3; }
  .side-fig { max-width: none; }
  .place-band { min-height: 64svh; }
  .place-band::before { background: linear-gradient(0deg, rgba(15, 58, 42, .85) 0%, rgba(15, 58, 42, .35) 55%, rgba(15, 58, 42, .1) 100%); }
  .hub-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4px; }
  .panel--card.is-doctor { display: none; }   /* 세로 화면에선 바로 아래 의료진 소개와 겹치므로 숨김 */
  .note { margin-top: 24px; }

  .section-grid { grid-template-columns: 1fr; }
  .section-grid > header { position: static; }
  .doctors, .info-grid, .related { grid-template-columns: 1fr; }
  .foot-inner { grid-template-columns: 1fr; gap: 28px; }
  .foot-nav { justify-content: start; }
  .panel--part { padding-bottom: 48px; }
  .part-title { font-size: clamp(56px, 14vw, 96px); }
}

@media (max-width: 600px) {
  body { font-size: 15.5px; }
  .display { font-size: clamp(38px, 11vw, 54px); letter-spacing: -0.055em; line-height: 1.13; }
  .hub-cards { grid-template-columns: 1fr; }
  .reviewer { grid-template-columns: 96px 1fr; gap: 18px; }
  .reviewer img { width: 96px; }
  .faq .a { padding-right: 0; }
  .site-foot address span + span::before { content: none; }
  .site-foot address span { display: block; }
  .site-foot address br { display: none; }
  .foot-nav { grid-template-columns: 1fr 1fr; gap: 20px 32px; }
}

@media (prefers-reduced-motion: reduce) {
  .card-fig img { transition: none; }
}

@media print {
  .site-head, .hs-hud, .mobile-nav { display: none !important; }
  .js-h .hs-sticky { position: static; height: auto; }
  .js-h .hs-track { display: block; transform: none !important; }
}

/* 페이지 안 이동 시 고정 헤더에 제목이 가려지지 않게 */
[id] { scroll-margin-top: calc(var(--head-h) + 8px); }

/* 잘리지 않은 제품 컷(울쎄라 등) — 아래 흐림 없이 */
.panel--product.is-full img, .card-fig--product.is-full img { -webkit-mask-image: none; mask-image: none; }
.panel--product.is-full { padding-top: calc(var(--head-h) + 24px); padding-bottom: 40px; }
/* 제품 사진 카드 — 상자와 주사기가 함께 보이도록 */
.card-fig--photo img { object-position: 50% 100%; }
.card-fig--product, .card-fig--svg { grid-template-rows: 100%; grid-template-columns: 100%; }
.card-fig--product img, .card-fig--svg img { object-fit: contain; width: 100%; height: 100%; min-height: 0; }
/* 파트 제목 옆 보조 영문(beauty / anti-aging) */
.part-sub { font-size: clamp(15px, 1.25vw, 20px); font-weight: 400; letter-spacing: 0; opacity: .45; margin-left: .35em; vertical-align: .15em; white-space: nowrap; }

/* 메인 히어로 — 로비 사진을 옅은 배경으로 */
.panel--hero.has-bg { position: relative; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%;
  object-fit: cover; object-position: 40% 50%; opacity: .5; pointer-events: none;
}
/* 글자가 놓이는 왼쪽·아래를 배경색으로 살짝 덮어 가독성 확보 */
.panel--hero.has-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(229, 221, 214, .72) 0%, rgba(229, 221, 214, .3) 55%, rgba(229, 221, 214, 0) 100%);
}
@media (max-width: 1023px) {
  .panel--hero.has-bg::before { background: linear-gradient(180deg, rgba(229, 221, 214, .2) 0%, rgba(229, 221, 214, .65) 100%); }
}
