/*
  메인 화면 시안 (로컬 확인용)
  레퍼런스: dr-woo.kr 의 화면 배치(어두운 첫 화면, 영문 소제목, 금색 버튼, 크림색 배경, 오시는 길과 진료시간)
  색: 어두운 면은 미르 사이트 아이콘의 초록, 포인트는 금색. 아래 변수만 바꾸면 갈색 톤으로 바뀐다.
  '자료 필요' 표시는 병원 자료를 받으면 실제 내용으로 바꾼다.
*/
:root {
  --dark: #16352e;
  --dark-2: #0f2621;
  --gold: #c9a876;
  --gold-deep: #8a6a3a;
  --cream: #fbf9f5;
  --cream-2: #f5f0e7;
  --ink: #1f1a14;
  --muted: #6b6258;
  --line: #e5ded0;
  --white: #ffffff;
  --radius: 18px;
  --wrap: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* 자료 필요 표시 */
.need {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .2em .65em; border: 1.5px dashed #d29a2b; border-radius: 8px;
  background: #fff7e6; color: #8a5a00; font-size: .85em; font-weight: 600; line-height: 1.5;
}
.need::before { content: "자료 필요"; white-space: nowrap; background: #d29a2b; color: #fff; border-radius: 4px; padding: 0 .4em; font-size: .8em; }
.need.check::before { content: "병원 확인"; }
.need.block { display: flex; justify-content: center; padding: .9em 1em; text-align: center; }
.on-dark .need { background: rgba(255,247,230,.1); color: #f3d9a4; border-color: #d2a24a; }

/* 시안 안내 띠 */
.draft-bar {
  background: #2b2b2b; color: #eee; font-size: 13px; text-align: center; padding: 8px 16px;
}
.draft-bar b { color: var(--gold); }

/* 헤더 */
.hd {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15,38,33,.96); color: var(--white);
  backdrop-filter: blur(6px); border-bottom: 1px solid rgba(255,255,255,.08);
}
.hd .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.02em; font-size: 19px; }
.logo small { display: block; font-size: 11px; font-weight: 500; letter-spacing: .08em; color: var(--gold); line-height: 1.2; }
.gnb { display: flex; gap: 30px; font-size: 15.5px; font-weight: 500; }
.gnb a { opacity: .9; }
.gnb a:hover { color: var(--gold); opacity: 1; }
.hd-cta { display: flex; gap: 8px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  min-height: 48px; padding: 0 22px; border-radius: 10px; font-weight: 700; font-size: 16px;
  border: 1.5px solid transparent; cursor: pointer; transition: background .2s, color .2s;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #d8bb8c; }
.btn-line { border-color: rgba(255,255,255,.7); color: var(--white); }
.btn-line:hover { background: rgba(255,255,255,.08); }
.btn-ink { background: var(--dark); color: var(--white); }
.btn-ink:hover { background: var(--dark-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14.5px; }
.menu-btn { display: none; background: none; border: 0; color: #fff; width: 44px; height: 44px; font-size: 24px; cursor: pointer; }

/* 첫 화면 */
.hero {
  position: relative; overflow: hidden; color: var(--white); text-align: center;
  background:
    radial-gradient(ellipse at 20% 10%, rgba(201,168,118,.18), transparent 55%),
    radial-gradient(ellipse at 85% 90%, rgba(201,168,118,.10), transparent 50%),
    linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%);
  padding: 110px 0 100px;
}
.eyebrow { font-size: 14px; letter-spacing: .3em; color: var(--gold); font-weight: 600; text-transform: uppercase; }
.hero h1 { margin: 18px 0 8px; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.25; letter-spacing: -.03em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .sub { font-size: clamp(19px, 2.4vw, 26px); font-weight: 500; opacity: .95; margin: 0 0 26px; }
.hero .lead { max-width: 640px; margin: 0 auto 36px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .actions .btn { min-width: 220px; min-height: 58px; font-size: 17px; }
.hero hr { width: 80px; border: 0; border-top: 2px solid rgba(255,255,255,.25); margin: 44px auto 26px; }
.hero .notes { font-size: 15px; opacity: .9; line-height: 2; }

/* 공통 섹션 */
.sec { padding: 110px 0; }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head h2 { margin: 10px 0 0; font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -.03em; line-height: 1.35; }
.sec-head h2 em { font-style: normal; color: var(--gold-deep); }
.sec-head .bar { width: 48px; height: 2px; background: var(--gold); margin: 22px auto; border: 0; }
.sec-head p { color: var(--muted); margin: 0; }
.more { display: flex; justify-content: center; margin-top: 44px; }

/* 진료 안내 카드 */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 22px; text-align: center; transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(31,26,20,.07); }
.card .en { color: var(--gold); font-size: 13px; letter-spacing: .14em; font-weight: 600; }
.card h3 { margin: 8px 0 6px; font-size: 21px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.cards { grid-template-columns: repeat(4, 1fr); }
.card .en { font-size: 12px; }
.logo-img { height: 30px; width: auto; }
.hero {
  background:
    linear-gradient(180deg, rgba(15,38,33,.78) 0%, rgba(15,38,33,.86) 60%, rgba(15,38,33,.95) 100%),
    url(../img/hero.jpg) center / cover no-repeat;
}
.about-photo { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.arch:has(img) { padding: 0; border: 0; }
.gallery figure { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(15,38,33,.85); color: #fff; font-size: 14px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.notice { margin-top: 22px; font-size: 14.5px; color: rgba(255,255,255,.85); line-height: 1.7; }
.clinic-meta { max-width: none; margin: 30px 0 0; display: grid; gap: 10px; }
.clinic-meta div { display: flex; gap: 18px; padding: 16px 22px; background: var(--cream-2); border-radius: 12px; }
.clinic-meta dt { flex: 0 0 76px; color: var(--gold-deep); font-weight: 700; }
.clinic-meta dd { margin: 0; }
.hours .sm { color: var(--muted); font-size: 14px; }

/* 병원 소개 (어두운 띠) */
.about { background: linear-gradient(160deg, var(--dark) 0%, var(--dark-2) 100%); color: #fff; }
.about .sec-head h2 em { color: var(--gold); }
.about .sec-head p { color: rgba(255,255,255,.8); }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: center; }
.photo-ph {
  border-radius: var(--radius); aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: repeating-linear-gradient(45deg, rgba(255,255,255,.04) 0 12px, rgba(255,255,255,.08) 12px 24px);
  border: 1.5px dashed rgba(201,168,118,.6); color: #f3d9a4; font-weight: 600; text-align: center; padding: 20px;
}
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); }
.facts .k { flex: 0 0 74px; color: var(--gold); font-weight: 700; font-size: 15px; padding-top: 2px; }

/* 의료진 */
.doctor { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; max-width: 960px; margin: 0 auto; }
.arch {
  aspect-ratio: 3 / 4; border-radius: 190px 190px 28px 28px; overflow: hidden;
  background: var(--cream-2); border: 1.5px dashed #d2b98f;
  display: grid; place-items: center; color: var(--gold-deep); font-weight: 600; text-align: center; padding: 30px;
}
.doctor .label { color: var(--gold-deep); font-weight: 600; }
.doctor h2 { font-size: clamp(26px, 3vw, 34px); margin: 6px 0 18px; letter-spacing: -.03em; }
.doctor .name { font-size: 30px; font-weight: 800; margin: 26px 0 0; }
.doctor .role { color: var(--gold-deep); font-weight: 600; margin-bottom: 18px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 14px; font-size: 14px; color: var(--muted); }

/* 둘러보기 */
.facility { background: var(--cream-2); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery .photo-ph { background: repeating-linear-gradient(45deg, #efe8db 0 12px, #f6f1e8 12px 24px); color: var(--gold-deep); border-color: #d2b98f; }

/* 건강정보 */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(31,26,20,.07); }
.post img { aspect-ratio: 16 / 10; object-fit: cover; width: 100%; }
.post .body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tag { align-self: flex-start; background: #f1e7d6; color: #6e5428; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 3px 12px; }
.post h3 { margin: 0; font-size: 19px; line-height: 1.45; letter-spacing: -.02em; }
.post p { margin: 0; color: var(--muted); font-size: 15px; }
.post time { margin-top: auto; color: #9a9084; font-size: 14px; }

/* 오시는 길 */
.visit { background: #fff; }
.visit-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--cream-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.map-btns .btn { border-color: var(--line); background: var(--cream); color: var(--ink); }
.map-btns .btn:hover { border-color: var(--gold); }
.info h3 { font-size: 18px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.info h3::before { content: ""; width: 6px; height: 18px; border-radius: 3px; background: var(--gold); }
.info .blk { padding: 22px 0; border-bottom: 1px solid var(--line); }
.info .blk:first-child { padding-top: 0; }
.info p { margin: 0; }
.info .sm { color: var(--muted); font-size: 15px; }
.tel-big { display: inline-block; font-size: 30px; font-weight: 800; letter-spacing: -.01em; color: var(--dark); margin: 4px 0 6px; }
.hours { width: 100%; border-collapse: collapse; margin-top: 6px; }
.hours th, .hours td { padding: 10px 0; border-bottom: 1px dashed var(--line); text-align: left; font-size: 16px; }
.hours th { width: 110px; color: var(--muted); font-weight: 600; }

/* 푸터 */
.ft { background: var(--dark-2); color: rgba(255,255,255,.75); font-size: 14.5px; padding: 54px 0 120px; }
.ft .top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 26px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 26px; }
.ft .logo { color: #fff; }
.ft-links { display: flex; gap: 22px; flex-wrap: wrap; }
.ft-links a:hover { color: var(--gold); }
.ft dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.ft dt { color: rgba(255,255,255,.5); }
.ft dd { margin: 0; }
.ft .copy { margin-top: 26px; color: rgba(255,255,255,.45); font-size: 13px; }
.ft .on-dark .need, .ft .need { background: rgba(255,247,230,.08); color: #f3d9a4; }

/* 모바일 하단 고정 버튼 */
.quick { display: none; }

/* 반응형 */
@media (max-width: 1080px) {
  .gnb { gap: 20px; font-size: 15px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .gnb, .hd-cta { display: none; }
  .menu-btn { display: block; }
  .about-grid, .visit-grid { grid-template-columns: 1fr; }
  .doctor { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .doctor .arch { max-width: 300px; margin: 0 auto; width: 100%; }
  .doctor .chips { justify-content: center; }
  .posts { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .hd .wrap { height: 62px; }
  .logo { font-size: 17px; }
  .hero { padding: 72px 0 64px; }
  .hero .actions { flex-direction: column; align-items: stretch; }
  .hero .actions .btn { min-width: 0; width: 100%; }
  .sec { padding: 76px 0; }
  .sec-head { margin-bottom: 38px; }
  .cards { grid-template-columns: 1fr 1fr; gap: 12px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero .notes { font-size: 14px; line-height: 1.8; }
  .logo-img { height: 24px; }
  .clinic-meta div { flex-direction: column; gap: 2px; padding: 14px 18px; }
  .clinic-meta dt { flex-basis: auto; }
  .card { padding: 26px 14px; }
  .card h3 { font-size: 18px; }
  .posts { grid-template-columns: 1fr; }
  .map { aspect-ratio: 1 / 1; }
  .ft dl { grid-template-columns: 1fr; gap: 0; }
  .ft dt { margin-top: 8px; }
  .quick {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--dark-2); box-shadow: 0 -4px 18px rgba(0,0,0,.18); padding-bottom: env(safe-area-inset-bottom);
  }
  .quick a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 64px; color: #fff; font-size: 14.5px; font-weight: 700; }
  .quick a + a { border-left: 1px solid rgba(255,255,255,.1); }
  .quick a.main { background: var(--gold); color: var(--ink); }
  .quick svg { width: 22px; height: 22px; }
}

/* ---------- 하위 페이지 ---------- */
.gnb a.on { color: var(--gold); opacity: 1; font-weight: 700; }
.page-hero {
  color: #fff; text-align: center; padding: 96px 0 84px;
  background:
    linear-gradient(180deg, rgba(15,38,33,.80), rgba(15,38,33,.92)),
    var(--bg, url(../img/hero.jpg)) center / cover no-repeat;
}
.page-hero h1 { margin: 12px 0 10px; font-size: clamp(30px, 4.4vw, 46px); letter-spacing: -.03em; line-height: 1.3; }
.page-hero p { margin: 0; opacity: .88; }
.crumb { font-size: 14px; opacity: .75; margin-top: 18px !important; }
.crumb a:hover { color: var(--gold); }
.sub-tabs { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 72px; z-index: 40; }
.sub-tabs .wrap { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.sub-tabs a { flex: 0 0 auto; padding: 16px 18px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; }
.sub-tabs a.on { color: var(--dark); border-color: var(--gold); }
.prose { max-width: 760px; margin: 0 auto; text-align: center; }
.prose p { margin: 0 0 14px; }
.quote { font-size: clamp(22px, 2.8vw, 30px); font-weight: 700; letter-spacing: -.02em; line-height: 1.55; margin: 0 0 26px; }
.quote em { font-style: normal; color: var(--gold-deep); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; }
.feature .en { color: var(--gold); font-size: 12px; letter-spacing: .14em; font-weight: 600; }
.feature h3 { margin: 8px 0 8px; font-size: 20px; }
.feature p { margin: 0; color: var(--muted); font-size: 15.5px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.split img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.split h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; margin: 8px 0 16px; line-height: 1.4; }
.split p { margin: 0 0 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tags span { background: var(--cream-2); border-radius: 999px; padding: 4px 14px; font-size: 14.5px; color: #6e5428; font-weight: 600; }
.disease { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 26px; }
.disease span { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 10px; text-align: center; font-weight: 700; }
.gallery.g4 { grid-template-columns: repeat(3, 1fr); }
.profile { max-width: 960px; margin: 0 auto; }
.profile table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.profile th, .profile td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.profile th { width: 120px; color: var(--gold-deep); }
.cta-band { background: linear-gradient(160deg, var(--dark), var(--dark-2)); color: #fff; text-align: center; padding: 70px 0; }
.cta-band h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; }
.cta-band p { margin: 0 0 26px; opacity: .85; }
.cta-band .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn { min-width: 210px; min-height: 54px; }
@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 26px; }
  .split.rev > img { order: -1; }
}
@media (max-width: 640px) {
  .page-hero { padding: 64px 0 56px; }
  .sub-tabs { top: 62px; }
  .feature-grid { grid-template-columns: 1fr; }
  .disease { grid-template-columns: 1fr 1fr; }
  .gallery.g4 { grid-template-columns: 1fr 1fr; }
  .profile th { width: 90px; }
  .cta-band .actions { flex-direction: column; align-items: stretch; }
}
/* ---------- 메가 메뉴, 상세 페이지 ---------- */
.gnb { gap: 4px; align-self: stretch; }
.gnb-item { position: relative; display: flex; align-items: center; }
.gnb-top { display: flex; align-items: center; height: 72px; padding: 0 13px; font-size: 15.5px; font-weight: 600; white-space: nowrap; }
.gnb-item.on > .gnb-top, .gnb-item:hover > .gnb-top { color: var(--gold); }
.gnb-sub {
  display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  min-width: 200px; background: #fff; color: var(--ink); border-radius: 0 0 14px 14px;
  box-shadow: 0 18px 40px rgba(15,38,33,.18); padding: 10px 0; border-top: 3px solid var(--gold);
}
.gnb-item:hover > .gnb-sub, .gnb-item:focus-within > .gnb-sub { display: block; }
.gnb-sub a { display: block; padding: 10px 22px; font-size: 15px; white-space: nowrap; opacity: 1; }
.gnb-sub a:hover, .gnb-sub a.on { background: var(--cream-2); color: var(--gold-deep); }
.hd .wrap { max-width: 1320px; }
.feature.link { display: block; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature.link:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 12px 30px rgba(31,26,20,.07); }
.feature.link p { color: var(--gold-deep); font-weight: 600; }
a.card { display: block; }
.checklist { list-style: none; max-width: 760px; margin: 0 auto; padding: 0; display: grid; gap: 12px; }
.checklist li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px 16px 54px; position: relative; font-weight: 500; }
.checklist li::before { content: "✓"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border-radius: 50%; background: var(--dark); color: var(--gold); display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.care-note, .care-lead { text-align: center; margin: 26px auto 0; color: var(--muted); max-width: 760px; }
.care-lead { margin: 0 auto 28px; color: var(--ink); }
.care-lead.warn { background: #fff4f2; border: 1px solid #f1c9c1; color: #8a2b1a; border-radius: 12px; padding: 14px 18px; font-size: 15.5px; }
.post-lines { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.post-line { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; }
.post-line:hover { border-color: var(--gold); }
.post-line b { flex: 1; font-weight: 600; }
.post-line .go { color: var(--gold-deep); font-weight: 800; }
.muted-c { text-align: center; color: var(--muted); }
.muted-c a { color: var(--gold-deep); font-weight: 600; }
.prose-h { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; margin: 10px 0 20px; }
.steps { list-style: none; padding: 0; margin: 26px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; text-align: center; }
.steps li { background: var(--cream-2); border-radius: 12px; padding: 18px 10px; display: grid; gap: 6px; }
.steps b { width: 30px; height: 30px; margin: 0 auto; border-radius: 50%; background: var(--dark); color: var(--gold); display: grid; place-items: center; }
.disease span.hl { background: var(--dark); color: #fff; border-color: var(--dark); }
.care-grid { grid-template-columns: repeat(var(--n, 3), 1fr); }
.hd.open { backdrop-filter: none; }
.side-notice { font-size: 14px; color: var(--muted); text-align: center; padding-top: 34px; padding-bottom: 34px; }
.split .tags { display: flex; }
@media (max-width: 1240px) {
  .gnb-top { padding: 0 9px; font-size: 14.5px; }
  .hd-cta { display: none; }
}
@media (max-width: 1080px) {
  .gnb, .hd-cta { display: none; }
  .menu-btn { display: block; }
  .hd.open .gnb {
    display: block; position: absolute; top: 100%; left: 0; right: 0; height: calc(100dvh - 72px); overflow-y: auto;
    background: var(--dark-2); padding: 6px 20px 120px;
  }
  .hd.open .gnb-item { display: block; border-bottom: 1px solid rgba(255,255,255,.1); padding: 14px 0; }
  .hd.open .gnb-top { height: auto; padding: 0 0 8px; font-size: 17px; color: var(--gold); }
  .hd.open .gnb-sub { display: grid; grid-template-columns: 1fr 1fr; position: static; transform: none; background: none; box-shadow: none; border: 0; padding: 0; min-width: 0; color: #fff; }
  .hd.open .gnb-sub a { padding: 8px 0; font-size: 15px; white-space: normal; }
  .hd.open .gnb-sub a:hover, .hd.open .gnb-sub a.on { background: none; color: var(--gold); }
  body.menu-open { overflow: hidden; }
}
@media (max-width: 900px) { .care-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .hd.open .gnb { height: calc(100dvh - 62px); }
  .steps { grid-template-columns: 1fr 1fr; }
  .post-line { flex-wrap: wrap; gap: 6px 10px; }
  .post-line .go { display: none; }
}

/* ---------- 우측 플로팅 배너 (PC) ---------- */
.float-bn {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 70;
  width: 96px; background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 12px 34px rgba(15,38,33,.22); text-align: center;
}
.float-bn__title { margin: 0; padding: 14px 0 12px; background: var(--dark); color: #fff; font-size: 14px; font-weight: 700; line-height: 1.35; }
.float-bn a {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 12px 6px; font-size: 13px; font-weight: 600; color: var(--ink); line-height: 1.3;
  border-top: 1px solid var(--line); transition: background .15s, color .15s;
}
.float-bn a svg { width: 22px; height: 22px; color: var(--dark); }
.float-bn a small { font-size: 10.5px; font-weight: 500; color: var(--muted); letter-spacing: -.02em; }
.float-bn a:hover { background: var(--cream-2); color: var(--gold-deep); }
.float-bn a.float-bn__book { background: var(--gold); border-top: 0; }
.float-bn a.float-bn__book svg { color: var(--ink); }
.float-bn a.float-bn__book:hover { background: #d8bb8c; color: var(--ink); }
.float-bn a.float-bn__top { background: var(--dark-2); color: #fff; font-size: 12.5px; padding: 11px 6px; }
.float-bn a.float-bn__top:hover { background: var(--dark); color: var(--gold); }
@media (max-width: 1279px) { .float-bn { display: none; } }
@media (max-height: 640px) { .float-bn { display: none; } }
/* ---------- 건강정보 목록, 글 ---------- */
.chip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 44px; }
.chip-btn { font: inherit; font-size: 15.5px; font-weight: 600; color: var(--ink); background: #fff; border: 1.5px solid #d8c9b0; border-radius: 999px; padding: 10px 22px; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.chip-btn span { color: var(--gold-deep); font-weight: 700; margin-left: 2px; }
.chip-btn:hover { border-color: var(--gold); }
.chip-btn.on { background: var(--dark); color: #fff; border-color: var(--dark); }
.chip-btn.on span { color: var(--gold); }
.post[hidden] { display: none; }
.article { padding: 56px 0 30px; }
.article-head { max-width: 820px; }
.crumb-d { font-size: 14px; color: var(--muted); margin: 0 0 22px; }
.crumb-d a:hover { color: var(--gold-deep); }
.article-head .tag { display: inline-block; }
.article-head h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.35; letter-spacing: -.03em; margin: 14px 0 12px; }
.article-head .meta { color: var(--muted); font-size: 15px; margin: 0 0 30px; }
.article-hero { max-width: 980px; margin: 0 auto 50px; }
.article-hero img { width: 100%; border-radius: var(--radius); aspect-ratio: 16 / 9; object-fit: cover; }
.article-body { max-width: 760px; margin: 0 auto; padding: 0 20px; font-size: 17.5px; line-height: 1.9; }
.article-body h2 { font-size: clamp(22px, 2.6vw, 27px); line-height: 1.45; letter-spacing: -.02em; margin: 56px 0 16px; padding-left: 14px; border-left: 4px solid var(--gold); scroll-margin-top: 90px; }
.article-body h3 { font-size: 20px; margin: 34px 0 10px; color: var(--dark); }
.article-body p { margin: 0 0 18px; }
.article-body ul { margin: 0 0 22px; padding-left: 1.2em; }
.article-body li { margin-bottom: 8px; }
.lead-box { background: var(--cream-2); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 30px; }
.lead-box p { margin: 0; }
.lead-box .lead-q { font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.toc { border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin: 0 0 30px; background: #fff; }
.toc b { color: var(--gold-deep); }
.toc ol { margin: 10px 0 0; padding-left: 1.3em; font-size: 16px; }
.toc a:hover { color: var(--gold-deep); }
.tbl { overflow-x: auto; margin: 0 0 24px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.6; min-width: 480px; }
.tbl th { background: var(--dark); color: #fff; text-align: left; padding: 12px 14px; }
.tbl td { border-bottom: 1px solid var(--line); padding: 12px 14px; vertical-align: top; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 16px 20px; list-style: none; }
.faq summary::before { content: "Q. "; color: var(--gold-deep); }
.faq details p { padding: 0 20px 16px; margin: 0; color: #3d3730; }
.article-note { font-size: 14.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; margin-top: 40px; }
.back { text-align: center; margin-top: 30px; }
@media (max-width: 640px) {
  .chip-row { justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 30px; padding: 0 20px; scrollbar-width: none; }
  .chip-btn { flex: 0 0 auto; padding: 9px 16px; font-size: 15px; }
  .article { padding-top: 36px; }
  .article-hero { margin-bottom: 34px; }
  .article-body { font-size: 17px; }
  .lead-box { padding: 20px; }
}

.float-bn a svg.ic-nblog { width: 26px; height: 26px; }

/* 하위 탭 가운데 정렬 (넘치면 왼쪽부터 밀어서 보기) */
.sub-tabs a:first-child { margin-left: auto; }
.sub-tabs a:last-child { margin-right: auto; }

.tags-c { justify-content: center; max-width: 760px; margin: 0 auto; }
.tags-c span { font-size: 16px; padding: 8px 20px; background: #fff; border: 1px solid var(--line); }
/* ---------- 진료 카드(#7), 아이콘 카드(#8), 애니메이션 ---------- */
.sub-head { text-align: center; margin: 80px 0 30px; }
.sub-head h3 { margin: 8px 0 0; font-size: clamp(22px, 2.6vw, 28px); letter-spacing: -.02em; }
.icards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.icard { background: var(--cream); border: 1px solid #e3d9c6; border-radius: 18px; padding: 34px 18px 30px; text-align: center; transition: transform .3s, box-shadow .3s, border-color .3s; }
.icard i { font-size: 38px; color: #b8935a; transition: transform .35s; }
.icard:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 14px 30px rgba(31,26,20,.08); }
.icard:hover i { transform: scale(1.12); }
.icard h3 { margin: 18px 0 6px; font-size: 20px; }
.icard p { margin: 0; color: var(--muted); font-size: 15px; }
.section-white .icard, .facility .icard { background: #fff; }
.feature__ic { display: block; font-size: 30px; color: #b8935a; margin-bottom: 14px; }
.hd { transition: box-shadow .3s, background .3s; }
.hd.scrolled { box-shadow: 0 6px 24px rgba(0,0,0,.18); }
/* 첫 화면 등장 */
.hero .wrap > *, .page-hero .wrap > * { animation: hero-up .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .wrap > :nth-child(2), .page-hero .wrap > :nth-child(2) { animation-delay: .08s; }
.hero .wrap > :nth-child(3), .page-hero .wrap > :nth-child(3) { animation-delay: .16s; }
.hero .wrap > :nth-child(4), .page-hero .wrap > :nth-child(4) { animation-delay: .24s; }
.hero .wrap > :nth-child(5) { animation-delay: .32s; }
.hero .wrap > :nth-child(n+6) { animation-delay: .4s; }
@keyframes hero-up { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
/* 스크롤 등장 */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
}
@media (max-width: 1080px) { .icards { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
@media (max-width: 640px) {
  .ccards { gap: 16px; }
  .icards { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .icard { padding: 24px 10px 22px; }
  .icard i { font-size: 30px; }
  .icard h3 { font-size: 17px; margin-top: 12px; }
  .icard p { font-size: 13.5px; }
  .sub-head { margin-top: 56px; }
}


/* 지도 아래 바로가기 */
.map-links { display: grid; gap: 12px; margin-top: 14px; }
.map-apps { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--cream-2); border: 1px solid var(--line); border-radius: 14px; padding: 6px 0; }
.map-apps a { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px 6px; font-weight: 700; font-size: 15px; color: var(--ink); transition: color .2s, transform .2s; }
.map-apps a + a { border-left: 1px solid #ddd2bf; }
.map-apps a:hover { color: var(--gold-deep); transform: translateY(-2px); }
.map-apps svg { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.map-talk { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; background: #FEE500; color: #191919; border-radius: 14px; padding: 16px 16px; font-size: 18px; font-weight: 600; transition: filter .2s; }
.map-talk:hover { filter: brightness(.97); }
.map-talk svg { width: 44px; height: 36px; }
.map-talk .need { font-size: 13px; }
.map-tel { display: flex; align-items: center; justify-content: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 16px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; color: #3d2f24; letter-spacing: -.01em; transition: border-color .2s, box-shadow .2s; }
.map-tel i { font-size: .8em; color: #3d2f24; }
.map-tel:hover { border-color: var(--gold); box-shadow: 0 10px 24px rgba(31,26,20,.08); }
@media (max-width: 640px) {
  .map-apps { grid-template-columns: repeat(2, 1fr); }
  .map-apps a:nth-child(3) { border-left: 0; }
  .map-apps a:nth-child(n+3) { border-top: 1px solid #ddd2bf; }
  .map-apps a { font-size: 14.5px; }
}

/* 푸터 여백 줄임 (휴대폰은 하단 고정 버튼 높이만큼만 남김) */
.ft { padding: 40px 0 30px; }
.ft .top { padding-bottom: 20px; margin-bottom: 20px; }
.ft .notice { margin-top: 16px; }
.ft .copy { margin-top: 12px; }
@media (max-width: 640px) { .ft { padding: 34px 0 calc(84px + env(safe-area-inset-bottom)); } }

/* 메인 진료 카드: 사진 전체 + 아래 그라데이션 + 왼쪽 정렬 */
.ccards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ccard { position: relative; height: 430px; border-radius: 22px; overflow: hidden; isolation: isolate; color: #fff; background: var(--dark); }
.ccard__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.ccard::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(15,38,33,0) 25%, rgba(15,38,33,.55) 52%, rgba(15,38,33,.94) 100%); transition: background .4s; }
.ccard:hover .ccard__bg { transform: scale(1.07); }
.ccard:hover::before { background: linear-gradient(180deg, rgba(15,38,33,.15) 0%, rgba(15,38,33,.65) 45%, rgba(15,38,33,.96) 100%); }
.ccard__go { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(15,38,33,.45); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.4); font-size: 15px; transition: background .3s, transform .35s, color .3s; }
.ccard:hover .ccard__go { background: var(--gold); color: var(--ink); transform: rotate(-45deg); border-color: var(--gold); }
.ccard__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 26px 28px; }
.ccard__meta { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ccard__meta b { font-size: 13px; color: #fff; letter-spacing: .04em; padding-right: 10px; border-right: 1px solid rgba(255,255,255,.35); }
.ccard__meta i { font-size: 14px; }
.ccard h3 { margin: 0 0 14px; font-size: 26px; letter-spacing: -.02em; line-height: 1.3; }
.ccard__link { color: #fff; }
.ccard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.ccard__chips { display: flex; flex-wrap: wrap; gap: 6px; position: relative; z-index: 2; }
.ccard__chips span, .ccard__chips a { font-size: 13.5px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.95); backdrop-filter: blur(4px); }
.ccard__chips a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.ccard:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.ccard.rv.in:hover { transform: translateY(-5px); }
.ccard { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
.ccard:hover { box-shadow: 0 22px 46px rgba(15,38,33,.25); }
@media (max-width: 1080px) { .ccards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .ccards { grid-template-columns: 1fr; gap: 14px; } .ccard { height: 360px; } .ccard h3 { font-size: 23px; } }

/* 날씬예약 (다이어트 한약) */
.nalsin { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; }
.nalsin__logo { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 56px 44px; display: grid; place-items: center; }
.nalsin__logo img { width: 100%; max-width: 380px; height: auto; }
.nalsin__text h2 { font-size: clamp(25px, 3vw, 34px); line-height: 1.4; letter-spacing: -.03em; margin: 10px 0 18px; }
.nalsin__text h2 em { font-style: normal; color: var(--gold-deep); }
.nalsin__text p { margin: 0 0 12px; color: #3d3730; }
.steps-wide { max-width: 900px; margin: 0 auto; }
@media (max-width: 900px) { .nalsin { grid-template-columns: 1fr; gap: 30px; } .nalsin__logo { padding: 40px 28px; } }
@media (max-width: 640px) { .nalsin__btns { flex-direction: column; } .nalsin__btns .btn { width: 100%; } }
/* ---------- 진료 상세 페이지 ---------- */
.info-strip { background: var(--dark); color: #fff; }
.info-strip .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.info-strip .wrap > div { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 18px 8px; font-size: 15px; flex-wrap: wrap; text-align: center; }
.info-strip .wrap > div + div { border-left: 1px solid rgba(255,255,255,.12); }
.info-strip i { color: var(--gold); font-size: 18px; }
.info-strip span { color: rgba(255,255,255,.7); font-size: 14px; }
.d-intro h2, .d-diag h2 { font-size: clamp(26px, 3.2vw, 36px); }
.d-intro p, .d-diag p { color: #3d3730; }
.d-points { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
.d-points li { position: relative; padding-left: 22px; font-weight: 600; font-size: 15.5px; }
.d-points li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.d-note { max-width: 860px; margin: 34px auto 0; background: #fff; border-left: 4px solid var(--gold); border-radius: 0 14px 14px 0; padding: 22px 26px; }
.d-note h3 { margin: 0 0 6px; font-size: 18px; }
.d-note p { margin: 0; color: #3d3730; }
.d-warn { max-width: 960px; margin: 0 auto; background: #fff6f4; border: 1px solid #f1cfc7; border-radius: 20px; padding: 30px 34px; }
.d-warn h3 { margin: 0 0 16px; font-size: 21px; color: #8a2b1a; }
.d-warn ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.d-warn li { background: #fff; border-radius: 14px; padding: 18px; border: 1px solid #f5ddd7; }
.d-warn li b { display: block; margin-bottom: 6px; }
.d-warn li span { color: var(--muted); font-size: 15px; }
.d-steps { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.d-steps li { display: flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.d-steps b { flex: 0 0 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--dark); color: var(--gold); font-size: 14px; }
.tcards { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); gap: 20px; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .3s, box-shadow .3s; }
.tcard:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(31,26,20,.08); }
.tcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tcard > div { padding: 20px 22px 24px; }
.tcard h3 { margin: 0 0 8px; font-size: 19px; }
.tcard p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.d-care { list-style: none; padding: 0; margin: 0 auto; max-width: 960px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.d-care li { display: flex; gap: 16px; background: var(--cream-2); border-radius: 16px; padding: 22px; }
.d-care b { font-size: 26px; font-weight: 800; color: var(--gold); line-height: 1; }
.d-care h3 { margin: 0 0 6px; font-size: 17.5px; }
.d-care p { margin: 0; color: #3d3730; font-size: 15px; }
.d-faq { max-width: 860px; margin: 0 auto; }
.d-faq details { margin-bottom: 12px; }
.d-faq summary { font-size: 17px; position: relative; padding-right: 48px; }
.d-faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--gold-deep); transition: transform .25s; }
.d-faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.d-faq details p { line-height: 1.8; }
.d-related { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.d-related a { background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 24px; font-weight: 600; transition: border-color .2s, color .2s, background .2s; }
.d-related a:hover { border-color: var(--gold); color: var(--gold-deep); background: var(--cream-2); }
@media (max-width: 900px) {
  .info-strip .wrap { grid-template-columns: 1fr 1fr; }
  .info-strip .wrap > div:nth-child(3) { border-left: 0; }
  .info-strip .wrap > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.12); }
  .d-warn ul { grid-template-columns: 1fr; }
  .tcards { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .info-strip .wrap > div { flex-direction: column; gap: 2px; padding: 14px 4px; font-size: 14px; }
  .d-points { grid-template-columns: 1fr; }
  .d-warn { padding: 22px 18px; }
  .tcards { grid-template-columns: 1fr; }
  .d-care { grid-template-columns: 1fr; }
}

.nalsin__poster { border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgba(31,26,20,.12); max-width: 460px; justify-self: center; width: 100%; }
.nalsin__poster img { display: block; width: 100%; height: auto; }

.nalsin__badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 7px 14px; border-radius: 999px; background: var(--cream-2); color: var(--gold-deep); font-size: 14px; font-weight: 700; }
.prog { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 960px; margin: 0 auto; }
.prog__card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 40px 34px 34px; transition: transform .3s, box-shadow .3s; }
.prog__card:hover { transform: translateY(-5px); box-shadow: 0 16px 34px rgba(31,26,20,.08); }
.prog__card i { font-size: 40px; color: #b8935a; }
.prog__card h3 { margin: 18px 0 8px; font-size: 22px; }
.prog__card p { margin: 0; color: #3d3730; }
.prog__tag { position: absolute; top: 22px; right: 24px; font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--gold-deep); }
@media (max-width: 640px) { .prog { grid-template-columns: 1fr; } }
.facility .d-care li { background: #fff; border: 1px solid var(--line); }

.btn-line-dark { border-color: var(--dark); color: var(--dark); background: #fff; }
.btn-line-dark:hover { background: var(--cream-2); }
.nalsin .d-points { margin-top: 18px; }
.dtypes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.dtype { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; position: relative; transition: transform .3s, box-shadow .3s; }
.dtype:hover { transform: translateY(-5px); box-shadow: 0 14px 30px rgba(31,26,20,.08); }
.dtype__no { font-size: 12px; letter-spacing: .16em; font-weight: 700; color: var(--gold); }
.dtype i { display: block; font-size: 34px; color: var(--dark); margin: 14px 0 4px; }
.dtype h3 { margin: 10px 0 8px; font-size: 21px; }
.dtype p { margin: 0; color: #3d3730; font-size: 15.5px; }
.react { background: var(--cream-2); border-radius: 20px; padding: 30px 30px 24px; }
.react h3 { margin: 0 0 10px; font-size: 18px; color: var(--dark); display: flex; align-items: center; gap: 8px; }
.react h3 i { color: var(--gold-deep); }
.react .react__warn { margin-top: 22px; color: #8a2b1a; }
.react .react__warn i { color: #b5482f; }
.react ul { margin: 0 0 8px; padding-left: 1.2em; }
.react li { margin-bottom: 4px; font-weight: 600; }
.react p { margin: 0; color: var(--muted); font-size: 15px; }
.goal { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 960px; margin: 0 auto; }
.goal > div { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 30px; }
.goal i { font-size: 30px; color: #b8935a; }
.goal h3 { margin: 14px 0 8px; font-size: 21px; }
.goal p { margin: 0; color: #3d3730; }
@media (max-width: 900px) { .dtypes { grid-template-columns: 1fr; } .goal { grid-template-columns: 1fr; } }
/* ---------- 다이어트(날씬예약) 페이지: 레퍼런스 분위기 ---------- */
.dz-why { background: #fff; }
.dz-q { text-align: center; margin-bottom: 40px; }
.dz-q h2 { font-size: clamp(28px, 3.6vw, 42px); margin: 0 0 18px; font-weight: 700; letter-spacing: -.03em; }
.dz-q p { font-size: 18px; color: #3d3730; margin: 0; line-height: 1.8; }
.dz-box { position: relative; border: 2px dashed #c9c2b2; border-radius: 26px; padding: 64px 30px 44px; margin-top: 30px; }
.dz-box__pill { position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%); background: var(--dark); color: #fff; border-radius: 999px; padding: 10px 26px; font-size: 16px; white-space: nowrap; }
.dz-box__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.dz-box__row--5 { grid-template-columns: repeat(5, 1fr); }
.dz-box--check { padding-top: 44px; background: #fff; }
.dz-circle { width: 112px; height: 112px; margin: 0 auto 18px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-size: 40px; color: var(--dark); transition: transform .35s, background .35s, color .35s; }
.dz-box__row > div:hover .dz-circle { transform: translateY(-4px); background: var(--dark); color: var(--gold); }
.dz-box__row h3 { margin: 0 0 8px; font-size: 19px; }
.dz-box__row p { margin: 0 auto; max-width: 260px; color: var(--muted); font-size: 15px; }
.dz-info { margin: 26px 0 0; color: #3d3730; font-size: 15.5px; }
.dz-info i { color: var(--dark); }
.dz-reset { background: var(--cream); }
.dz-gold { text-align: center; color: #a8854d; font-size: clamp(30px, 3.8vw, 46px); margin: 0 0 12px; font-weight: 800; letter-spacing: -.03em; }
.dz-sub { text-align: center; color: var(--muted); margin: 0 0 54px; }
.dz-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.dz-cols > div { border-top: 2px solid var(--dark); padding-top: 22px; }
.dz-no { display: block; font-size: 16px; color: var(--dark); margin-bottom: 12px; }
.dz-cols h3 { font-size: 22px; margin: 0 0 12px; }
.dz-cols h3 small { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.dz-cols ul { margin: 0; padding-left: 1.1em; color: #3d3730; font-size: 15px; }
.dz-cols li { margin-bottom: 4px; }
.dz-kicker { text-align: center; color: var(--muted); margin: 0 0 6px; }
.dz-title { text-align: center; font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 14px; font-weight: 700; letter-spacing: -.03em; }
.dz-title em { font-style: normal; color: var(--dark); font-weight: 700; }
.dz-sub2 { text-align: center; color: var(--muted); margin: 0 0 44px; }
.dz-sub2 b { color: var(--ink); }
.dz-prog { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 36px; }
.dz-prog figure { margin: 0; }
.dz-prog img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; object-position: center top; border-radius: 6px; background: #fff; transition: transform .6s; }
.dz-prog figure:hover img { transform: scale(1.02); }
.dz-prog figcaption { padding-top: 16px; }
.dz-prog figcaption b { display: block; font-size: 19px; margin-bottom: 4px; }
.dz-prog figcaption span { color: var(--muted); font-size: 15px; }
.dz-rows { display: grid; gap: 18px; }
.dz-row { display: grid; grid-template-columns: 96px 1fr 1.25fr; align-items: center; gap: 26px; background: #e9ebe2; border-radius: 6px; padding: 30px 34px; }
.dz-num { width: 72px; height: 72px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 26px; }
.dz-row__t h3 { margin: 0 0 6px; font-size: 20px; }
.dz-row__t p { margin: 0; color: #4d5048; font-size: 15px; }
.dz-icons { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; }
.dz-icons li { padding: 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.dz-icons li + li { border-left: 1px solid #cdd1c3; }
.dz-icons i { font-size: 30px; color: #6b5a3c; margin-bottom: 6px; }
.dz-icons b { font-size: 15.5px; }
.dz-icons span { font-size: 13px; color: var(--muted); }
.dz-std { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.dz-std > div { grid-column: span 2; background: #fff; border-radius: 10px; box-shadow: 0 6px 22px rgba(31,26,20,.07); padding: 26px 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; transition: transform .3s; }
.dz-std > div:nth-child(4) { grid-column: 2 / span 2; }
.dz-std > div:hover { transform: translateY(-4px); }
.dz-std span { width: 34px; height: 34px; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
.dz-std b { font-size: 16.5px; }
.dz-end { background: #fff; text-align: center; }
.dz-line { display: block; width: 1px; height: 60px; background: #c9c2b2; margin: 0 auto 30px; }
.dz-goal { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 960px; margin: 40px auto 0; text-align: left; }
.dz-goal > div { background: #8f8f88; color: #fff; border-radius: 14px; padding: 30px 32px; }
.dz-goal b { display: block; font-size: 21px; margin-bottom: 10px; }
.dz-goal p { margin: 0; opacity: .92; font-size: 15.5px; }
@media (max-width: 1080px) { .dz-row { grid-template-columns: 80px 1fr; } .dz-icons { grid-column: 1 / -1; margin-top: 10px; } .dz-box__row--5 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .dz-cols { grid-template-columns: 1fr; gap: 26px; } .dz-prog { grid-template-columns: 1fr; } .dz-std { grid-template-columns: 1fr 1fr; } .dz-std > div, .dz-std > div:nth-child(4) { grid-column: auto; } .dz-goal { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .dz-box { padding: 54px 16px 30px; }
  .dz-box__pill { font-size: 14px; padding: 8px 18px; }
  .dz-box__row { grid-template-columns: 1fr; gap: 26px; }
  .dz-box__row--5 { grid-template-columns: 1fr 1fr; gap: 18px; }
  .dz-circle { width: 88px; height: 88px; font-size: 32px; }
  .dz-row { grid-template-columns: 1fr; padding: 24px 18px; text-align: center; }
  .dz-num { margin: 0 auto; width: 58px; height: 58px; font-size: 21px; }
  .dz-icons i { font-size: 24px; }
  .dz-std { grid-template-columns: 1fr; }
}

/* ---------- 워드프레스 적용 (2.0.0) ---------- */
body.mir-home { background: var(--cream); }
.mir-home .wp-site-blocks { padding: 0; }
.mir-home .wp-site-blocks > * + * { margin-block-start: 0; }
.mir-home main.mir-page { margin: 0; }
.mir-home .entry-content > * { max-width: none; margin: 0; }
.mir-home .entry-content > .wp-block-html, .mir-home .mir-page .wp-block-post-content { margin: 0; }
a.chip-btn { display: inline-flex; align-items: center; gap: 2px; }
.mir-pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 44px; }
.mir-pages .page-numbers { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 600; }
.mir-pages .page-numbers.current { background: var(--dark); color: #fff; border-color: var(--dark); }
.article-head .meta .hc-byline { margin: 0; color: var(--muted); font-size: 15px; }
.article-body .wp-block-image { margin: 0 0 30px; }
.article-body .wp-block-image img { border-radius: var(--radius); width: 100%; height: auto; }
.article-body .hc-toc { border: 1px solid var(--line); border-radius: 14px; padding: 20px 24px; margin: 0 0 30px; background: #fff; }
.article-body .hc-toc__title { font-weight: 700; color: var(--gold-deep); margin: 0 0 6px; }
.article-body .hc-toc ul { margin: 0; padding-left: 1.2em; font-size: 16px; }
.article-body .hc-toc a:hover { color: var(--gold-deep); }
.article-body h2.wp-block-heading { scroll-margin-top: 90px; }
.article-body .wp-block-table { overflow-x: auto; margin: 0 0 24px; }
.article-body .wp-block-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.6; min-width: 480px; }
.article-body .wp-block-table th { background: var(--dark); color: #fff; text-align: left; padding: 12px 14px; }
.article-body .wp-block-table td { border-bottom: 1px solid var(--line); padding: 12px 14px; vertical-align: top; }
.article-body .wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: var(--cream-2); }
.article-body .wp-block-separator { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.article-body .rank-math-faq-item { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 16px 20px; margin-bottom: 10px; }
.article-body .rank-math-question { font-size: 17px; margin: 0 0 6px; }
.article-body .rank-math-question::before { content: "Q. "; color: var(--gold-deep); }
.article-body .rank-math-answer p { margin: 0; color: #3d3730; }
.article-body a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.article-body .hc-toc a, .article-body .btn { text-decoration: none; }
.article-body .btn-ink { color: #fff; }
.hc-related, .hc-cta { display: none; }
.posts .post img, .tcard img, .gallery img, .about-photo, .split img { height: auto; }

/* 미르 로고 (2026-10-20 원본 로고, 가로형) */
.logo-img { height: 46px; width: auto; }
.ft .logo-img { height: 40px; }
@media (max-width: 640px) { .logo-img { height: 36px; } }

/* 테마 기본 제목 색(theme.json)이 상속을 막지 않게 */
.mir-home :where(h1, h2, h3, h4) { color: inherit; }

/* 진료 페이지 보강 (2026-10-20): 증상별 자세히, 절차, 준비물, 치료 카드 '이럴 때', 진료시간과 오시는 길 */
.d-detail { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.d-detail__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 26px 22px; }
.d-detail__item h3 { margin: 0 0 10px; font-size: 19px; color: var(--dark); }
.d-detail__item p { margin: 0 0 14px; color: #3d3730; line-height: 1.75; }
.d-detail__item ul { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 7px; }
.d-detail__item li { position: relative; padding-left: 22px; color: var(--ink); font-size: 15px; }
.d-detail__item li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: 1px; color: var(--gold-deep); font-size: 13px; }
.d-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: none; }
.d-flow li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; position: relative; }
.d-flow li b { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--dark); color: var(--gold); font-size: 15px; margin-bottom: 12px; }
.d-flow li h3 { margin: 0 0 8px; font-size: 18px; }
.d-flow li p { margin: 0; color: #3d3730; font-size: 15px; line-height: 1.7; }
.d-bring { max-width: 860px; margin: 30px auto 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 26px; }
.d-bring h3 { margin: 0 0 12px; font-size: 18px; color: var(--dark); }
.d-bring h3 i { color: var(--gold-deep); margin-right: 4px; }
.d-bring ul { margin: 0; padding-left: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; color: #3d3730; }
.tc-pts { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 8px; font-size: 14px; color: #3d3730; line-height: 1.65; }
.tc-pts b { display: block; color: var(--gold-deep); font-size: 13px; margin-bottom: 2px; }
.d-visit { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.d-visit > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.d-visit h3 { margin: 0 0 14px; font-size: 19px; color: var(--dark); }
.d-visit h3 i { color: var(--gold-deep); margin-right: 4px; }
.d-visit dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; }
.d-visit dt { font-weight: 700; }
.d-visit dd { margin: 0; color: #3d3730; }
.d-visit p { margin: 0 0 14px; color: #3d3730; line-height: 1.75; }
@media (max-width: 900px) { .d-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .d-detail, .d-visit, .d-flow, .d-bring ul { grid-template-columns: 1fr; } }

/* 진료 특징 (2026-10-20) */
.d-feat__lead { max-width: 820px; margin: 0 auto 30px; text-align: center; }
.d-feat__lead p { margin: 0 0 6px; color: #3d3730; font-size: 17px; line-height: 1.75; }
.d-feat__lead p:last-child { margin-top: 12px; color: var(--ink); font-weight: 600; }
.d-feat { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.d-feat li { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.d-feat li > b { flex: 0 0 auto; font-size: 28px; line-height: 1; color: var(--gold); font-weight: 800; }
.d-feat h3 { margin: 2px 0 8px; font-size: 18px; color: var(--dark); }
.d-feat p { margin: 0; color: #3d3730; font-size: 15px; line-height: 1.7; }
@media (max-width: 900px) { .d-feat { grid-template-columns: 1fr; } }

/* 응급 안내는 작게 (2026-10-20 사용자 지시) */
.sec:has(> .wrap > .d-warn) { padding: 8px 0 28px; }
.d-warn { max-width: 960px; padding: 16px 22px; border-radius: 14px; }
.d-warn h3 { margin: 0 0 8px; font-size: 16px; }
.d-warn ul { grid-template-columns: 1fr; gap: 4px; }
.d-warn li { background: none; border: 0; padding: 0; font-size: 14.5px; line-height: 1.6; }
.d-warn li b { display: inline; margin: 0 6px 0 0; }
.d-warn li b::before { content: "\00B7\00A0"; }
.d-warn li span { font-size: 14.5px; }

/* 증상 선택 + 상세 (2026-10-20, 구성 참고 bonyul.co.kr) */
.d-pick { background: var(--cream-2); color: var(--ink); }
.d-pick .sec-head h2 { color: var(--ink); }
.d-pick .sec-head p { color: var(--muted); line-height: 1.8; }
.d-pick .sec-head p b { color: var(--ink); }
.d-pick__cards { display: grid; grid-template-columns: repeat(var(--n, 3), 1fr); gap: 16px; max-width: 1080px; margin: 0 auto; }
.d-pick__card { appearance: none; border: 1px solid var(--line); cursor: pointer; background: #fff; color: var(--ink); border-radius: 14px; padding: 26px 18px; text-align: center; font: inherit; transition: background .25s, color .25s, transform .25s; }
.d-pick__card span { display: block; font-size: 15px; color: var(--muted); margin-bottom: 8px; line-height: 1.5; }
.d-pick__card b { display: block; font-size: 19px; line-height: 1.4; }
.d-pick__card:hover { transform: translateY(-3px); }
.d-pick__card.is-on { background: #fff; color: var(--gold-deep); border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold) inset; }
.d-pick__card.is-on span { color: var(--muted); }
.d-pick__note { text-align: center; margin: 26px 0 0; font-size: 14px; color: var(--muted); }
.d-panel:not(.is-on) { display: none; }
.d-panel__name { text-align: center; margin: 0 0 34px; font-size: 32px; }
.d-panel__body { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.d-panel__body img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; }
.d-panel__q { margin: 0 0 18px; font-size: 30px; line-height: 1.35; }
.d-panel__e { margin: 0 0 6px; color: #3d3730; }
.d-panel__def { margin: 26px 0 8px; font-size: 18px; color: var(--gold-deep); }
.d-panel__body p { line-height: 1.8; }
.d-panel__body ul { margin: 14px 0 0; padding-left: 18px; color: #3d3730; display: grid; gap: 6px; }
.d-panel__body ul li::marker { color: var(--gold-deep); }
@media (max-width: 900px) {
  .d-pick__cards { grid-template-columns: 1fr 1fr; }
  .d-panel__body { grid-template-columns: 1fr; gap: 24px; }
  .d-panel__q { font-size: 24px; }
  .d-panel__name { font-size: 26px; }
}
.d-panel { scroll-margin-top: 120px; }
