/* ═══════════════════════════════════════════
   global.css — 광피부과의원 청담 공통 스타일
   모든 페이지에서 <link rel="stylesheet" href="css/global.css"> 로 불러오세요.
═══════════════════════════════════════════ */

@import url('sub-hero-responsive.css');

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
ul { list-style: none; }

/* ── Variables ── */
:root {
  --w: #ffffff;
  --cream: #f4efe9;
  --soft: #f8f5f2;
  --warm: #f1ece6;
  --dark: #1c1b19;
  --mid: #6b6762;
  --light: #a5a09a;
  --line: #e3dcd5;
  --gold: #DD8F93;
  --content-inner: 1460px;
  --page-hero-height: 731px;
  --page-hero-title-size: clamp(42px, 3.65vw, 70px);
  --page-hero-text-size: clamp(18px, 1.15vw, 22px);
  --section-kicker-size: clamp(20px, 1.66vw, 32px);
  --section-kicker-color: #DD8F93;
  --section-title-size: clamp(32px, 3vw, 45px);
  --section-body-size: clamp(18px, 1.25vw, 24px);
  --section-body-line-height: clamp(30px, 1.88vw, 36px);
  --body-mobile-size: 17px;
  --body-mobile-line-height: 1.5em;
}

/* ── Base ── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--dark);
  background: var(--w);
  -webkit-font-smoothing: antialiased;
  line-height: 1;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.page-wrap { max-width: 1460px; margin: 0 auto; }
a { text-decoration: none; color: inherit; }

/* ── Scroll Reveal ── */
.fi,
.fi-left,
.fi-right {
  will-change: opacity, transform;
}
.fi-ready .fi,
.fi-ready .fi-left,
.fi-ready .fi-right {
  opacity: 0;
  transform: translateY(48px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.fi-ready .fi.on,
.fi-ready .fi-left.on,
.fi-ready .fi-right.on {
  opacity: 1;
  transform: translateY(0);
}
.swiper .fi,
.swiper .fi-left,
.swiper .fi-right {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .fi-ready .fi,
  .fi-ready .fi-left,
  .fi-ready .fi-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ── Header ── */
header {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  height: 78px; padding: 0 52px;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff;
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  border-bottom: 1px solid rgba(0,0,0,.04);
  transition: height .35s cubic-bezier(.16,1,.3,1), background .45s cubic-bezier(.16,1,.3,1), border-color .45s cubic-bezier(.16,1,.3,1), backdrop-filter .45s cubic-bezier(.16,1,.3,1), -webkit-backdrop-filter .45s cubic-bezier(.16,1,.3,1), box-shadow .45s cubic-bezier(.16,1,.3,1);
}
header.scrolled {
  height: 70px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-bottom-color: rgba(0,0,0,.06);
  box-shadow: 0 1px 10px rgba(0,0,0,.05);
}
.logo img { height: 54px; width: auto; display: block; transition: height .35s cubic-bezier(.16,1,.3,1); }
header.scrolled .logo img { height: 42px; }
header nav { display: flex; gap: 48px; align-items: center; height: 100%; }
header nav a { font-size: 17px; font-weight: 700; letter-spacing: -.01em; transition: color .2s, font-size .35s cubic-bezier(.16,1,.3,1); }
header.scrolled nav a { font-size: 17px; }
header nav a:hover, header nav a.active { color: var(--gold); }

.beautyple-sub-page .pg-hero,
.beautyple-sub-page .rd-hero {
  margin-top: 78px !important;
}
.beautyple-sub-page .pg-hero.pg-hero-full {
  margin-top: 0 !important;
}

/* ── Nav Dropdown ── */
.nav-item { position: relative; display: flex; align-items: center; height: 100%; padding: 0; }
.nav-item > a { display: flex; align-items: center; gap: 5px; }
.nav-item > a::after {
  content: '';
  display: none;
  width: 5px; height: 5px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform .22s ease;
  flex-shrink: 0;
}
.nav-item:hover > a::after { transform: rotate(225deg) translateY(2px); }
.nav-drop {
  position: absolute;
  top: 100%;
  left: 0;
  transform: translateY(-8px);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(227,220,213,.9);
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  padding: 10px 18px;
  min-width: 148px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  white-space: nowrap;
  z-index: 300;
  visibility: hidden;
}
.nav-drop::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
}
.nav-item:hover .nav-drop {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}
.nav-drop a {
  display: block;
  padding: 8px 0;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.45;
  letter-spacing: 0;
  color: var(--dark) !important;
  transition: background .15s, color .15s !important;
}
.nav-drop a:hover { background: transparent; color: var(--gold) !important; }
.h-right { display: flex; align-items: center; gap: 16px; }
.h-login { font-size: 18px; color: var(--mid); transition: font-size .35s cubic-bezier(.16,1,.3,1); }
header.scrolled .h-login { font-size: 18px; }
.h-book {
  font-size: 17px; font-weight: 700; letter-spacing: .02em;
  background: transparent; color: var(--dark);
  padding: 0; border-radius: 0; transition: color .25s, font-size .35s cubic-bezier(.16,1,.3,1), padding .35s cubic-bezier(.16,1,.3,1);
}
header.scrolled .h-book { font-size: 17px; padding: 0; }
.h-book:hover { color: var(--gold); }

/* ── Before & After pair images ── */
.ba-pair.ba-single-img {
  display: block;
  overflow: hidden;
}
.ba-sw .swiper-wrapper {
  transition-timing-function: linear !important;
}
.ba-pair.ba-single-img .ba-pair-img {
  position: relative;
  aspect-ratio: 1.63 / 1;
  border-radius: 12px;
  overflow: hidden;
}
.ba-pair.ba-single-img .ba-pair-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.ba-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 24px 24px 22px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.58) 100%);
  color: #fff;
  pointer-events: none;
}
.ba-caption-title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}
.ba-caption p {
  opacity: 1 !important;
  transform: none !important;
}
.ba-caption-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: clamp(13px, .9vw, 16px);
  line-height: 1.55;
  color: rgba(255,255,255,.86);
}

/* ── Page Intro (서브페이지 공통 상단) ── */
.intro { margin-top: 64px; padding: 88px 80px 80px;  }
.intro-label {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(18px, 1.39vw, 20px);
  font-weight: 700;
  color: var(--gold);
  display: block;
  margin-bottom: 20px;
  letter-spacing: .06em;
}
.intro h1 {
  font-family: 'Pretendard', sans-serif;
  font-size: clamp(30px, 4.51vw, 55px);
  font-weight: 600;
  line-height: 1.167;
  margin-bottom: 18px;
}
.intro p {
  font-size: 22px;
  color: var(--mid);
  font-weight: 400;
}
.mt150 {margin-top:150px}
/* ── Scroll Fade-up ── */
.fade-up { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.on { opacity: 1; transform: translateY(0); }
.fade-up:nth-child(2) { transition-delay: .12s; }
.fade-up:nth-child(3) { transition-delay: .22s; }

/* ── Hero Image Reveal ── */
.pg-hero .pg-img,
.pg-hero .pg-hero-bg,
.rd-hero-visual {
  overflow: hidden;
  background-color: #fff !important;
  clip-path: inset(5% 5% 5% 5%);
  animation: heroMaskReveal 1.8s cubic-bezier(.22, .61, .36, 1) forwards;
  will-change: clip-path;
}
.pg-hero .pg-img img,
.pg-hero .pg-hero-bg img,
.rd-hero-visual img {
  transform: scale(.965);
  animation: heroImageZoom 1.8s cubic-bezier(.22, .61, .36, 1) forwards;
  transform-origin: center center;
  will-change: transform;
}
.hero-sw .swiper-slide-active .hero-bg {
  overflow: hidden;
  background-color: transparent !important;
  clip-path: none;
  animation: none;
}
.hero-sw .swiper-slide-active .hero-bg img {
  transform: none;
  animation: none;
  transform-origin: center center;
}
@keyframes heroMaskReveal {
  to { clip-path: inset(0); }
}
@keyframes heroImageZoom {
  to { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .pg-hero .pg-img,
  .pg-hero .pg-hero-bg,
  .rd-hero-visual,
  .hero-sw .swiper-slide-active .hero-bg {
    clip-path: inset(0);
    animation: none;
  }
  .pg-hero .pg-img img,
  .pg-hero .pg-hero-bg img,
  .rd-hero-visual img,
  .hero-sw .swiper-slide-active .hero-bg img {
    transform: none;
    animation: none;
  }
}

/* ── Contact ── */
.contact { padding: 88px 80px; background: var(--w); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr 1.2fr; gap: 60px; align-items: start; }
.contact-left h3 { font-family: 'Pretendard', sans-serif; font-size: 36px; font-weight: 700; margin-bottom: 28px; }
.c-phone { font-family: 'Pretendard', sans-serif; font-size: 28px; font-weight: 400; letter-spacing: .02em; margin-bottom: 28px; color: var(--dark); }
.c-phone span { font-size: 18px; font-weight: 400; color: var(--light); display: block; margin-bottom: 6px; letter-spacing: .04em; }
.c-rows { border-top: 1px solid var(--line); }
.c-row { display: grid; grid-template-columns: 68px 1fr; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.c-lbl { font-size: 18px; color: var(--light); padding-top: 1px; }
.c-val { font-size: 18px; color: var(--mid); line-height: 1.9; }
.c-form { display: flex; flex-direction: column; gap: 10px; }
.c-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.c-field { display: flex; flex-direction: column; gap: 6px;  margin-top:20px}
.c-field label { font-size: 18px; color: var(--light); letter-spacing: .04em; }
.c-field label span { color: #c00; }
.c-field input, .c-field textarea {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--line); background: #fafafa;
  font-family: 'Pretendard', sans-serif; font-size: 18px; color: var(--dark);
  outline: none; transition: border .2s; resize: none; box-sizing: border-box;
}
.c-field input::placeholder, .c-field textarea::placeholder { color: #bbb; }
.c-field input:focus, .c-field textarea:focus { border-color: var(--dark); background: #fff; }
.c-field textarea { height: 110px; }
.c-agree { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 4px; }
.c-agree-left { display: flex; align-items: center; gap: 8px; }
.c-agree input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--dark); cursor: pointer; }
.c-agree-txt { font-size: 18px; color: var(--mid); }
.c-agree-more { font-size: 18px; color: var(--light); border-bottom: 1px solid var(--line); cursor: pointer; white-space: nowrap; }
.c-submit { width: 100%; padding: 15px; background: var(--dark); color: #fff; font-family: 'Pretendard', sans-serif; font-size: 18px; letter-spacing: .08em; border: none; cursor: pointer; transition: background .2s; margin-top: 4px; }
.c-submit:hover { background: var(--gold); }
.map-box { height: 100%; min-height: 320px; overflow: hidden; }

/* ── Footer Contact ── */
.ft-contact { background: var(--w); padding: 88px 80px; }
.ft-contact-inner { display: grid; grid-template-columns: 1fr 1.1fr 1.2fr; gap: 60px; align-items: start; max-width: 1460px; margin: 0 auto; }
.ft-c-left h3 { font-family: 'Pretendard', sans-serif; font-size: 44px; font-weight: 700; margin-bottom: 24px; color: #1c1b19; line-height: 1.1; letter-spacing: -.01em; }
.ft-contact .c-phone {
  display: grid; grid-template-columns: 68px 1fr; align-items: center;
  font-size: 39px; font-weight: 500; letter-spacing: -.01em;
  color: #1c1b19; margin-bottom: 24px;
}
.ft-contact .c-phone span {
  font-size: 18px; font-weight: 600; color: #1c1b19;
  margin: 0; letter-spacing: 0;
}
.ft-contact .c-lbl { font-size: 18px; color: #1c1b19; font-weight: 600; padding-top: 1px; }
.ft-contact .c-val { font-size: 18px; color: #3d3934; line-height: 1.75; }
.ft-contact .c-rows { border-top: none; }
.ft-contact .c-row {
  grid-template-columns: 88px 1fr;
  align-items: start;
  gap: 18px;
  border-bottom: none;
}
.ft-contact .c-note {
  display: block;
  margin-top: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #1c1b19;
}
.ft-contact .c-field label { font-size: 18px; color: #1c1b19; font-weight: 600; letter-spacing: .02em; }
.ft-contact .c-field input,
.ft-contact .c-field textarea {
  border-color: #e6ded5; background: #fff;
  font-size: 18px; color: #3f3a35;
  border-radius: 10px;
}
.ft-contact .c-field input::placeholder,
.ft-contact .c-field textarea::placeholder { color: #b2aba2; }
.ft-contact .c-agree-txt { font-size: 18px; color: #6f6a64; }
.ft-contact .c-agree-more { font-size: 18px; color: #8e8882; border-bottom-color: #d7d0c8; }
.ft-contact .c-submit {
  width: 140px; padding: 12px 0; margin-top: 8px; margin-left: auto;
  border-radius: 999px; font-size:18px; letter-spacing: .02em;
  background: #0f0f10;
}
.ft-contact .c-submit:hover { background: var(--gold); }
.ft-contact .map-box { border-radius: 8px; overflow: hidden; }

/* ── Footer ── */
footer { background: var(--dark); padding: 48px 80px 40px; }
.ft-wrap {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 48px 60px;
  align-items: start;
  max-width: var(--content-inner);
  margin: 0 auto;
}
.ft-logo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.ft-logo-nm {
  display: block;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255,255,255,.88);
  margin-bottom: 10px;
}
.ft-bottom-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 60px; align-items: start; }
.ft-logo-img { height: 56px; width: auto; display: block; }
.ft-info-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}
.ft-info { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ft-info-row { font-size: 18px; color: rgba(255,255,255,.56); line-height: 1.75; }
.ft-info-row span { color: inherit; }
.ft-copy { font-size: 18px; color: rgba(255,255,255,.42); margin: 0; line-height: 1.6; }
.ft-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}
.ft-right { display: flex; flex-direction: column; align-items: flex-end; gap: 16px; }
.ft-nav { display: flex; gap: 18px; flex-wrap: wrap; justify-content: flex-end; }
.ft-nav a { font-size: 18px; color: rgba(255,255,255,.56); transition: color .2s; }
.ft-nav a:hover { color: var(--gold); }
.ft-sns { display: flex; gap: 8px; }
.ft-sns-ic,
.ft-sns-icon {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: rgba(255,255,255,.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.62);
  transition: background .2s, color .2s;
}
.ft-sns-ic:hover,
.ft-sns-icon:hover { background: rgba(221,143,147,.18); color: var(--gold); }
.ft-sns-ic svg,
.ft-sns-icon svg { width: 14px; height: 14px; }

.black { color: #000!important }

/* ── Font-size utilities ── */
.txt16 { font-size: 20px !important; }
.txt17 { font-size: 18px !important; }
.txt18 { font-size: 18px !important; }
.txt19 { font-size: 19px !important; }
.txt20 { font-size: 20px !important; }
.txt21 { font-size: 21px !important; }
.txt22 { font-size: 22px !important; }
.txt23 { font-size: 23px !important; }
.txt24 { font-size: 24px !important; }
.txt25 { font-size: 25px !important; }
.txt26 { font-size: 26px !important; }
.txt27 { font-size: 27px !important; }
.txt28 { font-size: 28px !important; }
.txt29 { font-size: 29px !important; }
.txt30 { font-size: 30px !important; }
.txt32 { font-size: 32px !important; }
.txt34 { font-size: 34px !important; }
.txt36 { font-size: 36px !important; }
.txt38 { font-size: 38px !important; }
.txt40 { font-size: 40px !important; }
.txt42 { font-size: 42px !important; }
.txt44 { font-size: 44px !important; }
.txt46 { font-size: 46px !important; }
.txt48 { font-size: 48px !important; }
.txt50 { font-size: 50px !important; }
.txt55 { font-size: 55px !important; }
.txt60 { font-size: 60px !important; }
.txt65 { font-size: 55px !important; }

/* ── Margin-top utilities ── */
.mt20 { margin-top: 20px; }
.mt30 { margin-top: 30px; }

.mt100 { margin-top: 100px; }
.mt110 { margin-top: 110px; }
.mt120 { margin-top: 120px; }
.mt130 { margin-top: 130px; }
.mt140 { margin-top: 140px; }
.mt150 { margin-top: 150px; }
.mt160 { margin-top: 160px; }
.mt170 { margin-top: 170px; }
.mt180 { margin-top: 180px; }
.mt190 { margin-top: 190px; }
.mt200 { margin-top: 200px; }

@media (max-width: 1024px) {
  header nav { display: none; }
  .h-book { display: none; }
  .ft-contact { padding: 72px 48px; }
  .ft-contact-inner { grid-template-columns: 1fr 1.2fr; gap: 40px; }
  .ft-contact-inner .map-box { display: none; }
  footer { padding: 44px 48px 36px; }
  .ft-wrap,
  .ft-bottom-inner { grid-template-columns: 1fr; gap: 28px; align-items: start; }
  .ft-right-col,
  .ft-right { align-items: flex-start; }
  .ft-nav { justify-content: flex-start; }

  /* Split sections: stack as image → text (tablet) */
  .split2,
  .face-grid,
  .side-reason-grid,
  .asym-info-grid,
  .intro-split,
  .area-split,
  .effect-split,
  .concern-split,
  .type-split,
  .principle-split,
  .feat-split,
  .special-intro,
  .skull-wrap,
  .effect-wrap,
  .meta-wrap {
    grid-template-columns: 1fr !important;
    gap: clamp(32px, 4vw, 44px) !important;
  }
  .split2 > .img-box,
  .face-grid > .img-box,
  .side-reason-grid > .img-box,
  .asym-info-grid > .img-box,
  .intro-split > .img-box,
  .area-split > .img-box,
  .effect-split > .img-box,
  .concern-split > .img-box,
  .type-split > .img-box,
  .principle-split > .img-box,
  .feat-split > .img-box,
  .special-intro > .img-box,
  .skull-wrap > .skull-img,
  .effect-wrap > .effect-face {
    order: -1;
  }

  /* Overlay hero: image block then copy (tablet) */
  .pg-hero:has(.pg-img) {
    display: flex;
    flex-direction: column;
    height: auto !important;
    min-height: 0 !important;
    align-items: stretch;
  }
  .pg-hero:has(.pg-img) .pg-img {
    position: relative !important;
    inset: auto !important;
    order: -1;
    flex: none;
    width: 100%;
    min-height: clamp(260px, 40vw, 400px);
    max-height: 460px;
    justify-content: center;
    clip-path: inset(0) !important;
    animation: none !important;
  }
  .pg-hero:has(.pg-img) .pg-img img {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: clamp(260px, 40vw, 400px);
    max-height: 460px;
    object-fit: cover !important;
    object-position: center center !important;
    transform: none !important;
    animation: none !important;
  }
  .pg-hero:has(.pg-img) .pg-copy {
    position: relative !important;
    z-index: 2;
    order: 0;
    width: 100% !important;
    max-width: none !important;
    padding: clamp(40px, 5vw, 56px) clamp(32px, 4vw, 48px) !important;
  }
  .pg-hero:has(.pg-img) .pg-copy-inner {
    max-width: 100% !important;
    transform: none !important;
  }

  .num-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 28px !important; }
  .steps { grid-template-columns: repeat(2, 1fr) !important; gap: 32px !important; }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .beautyple-sub-page .pg-hero,
  .beautyple-sub-page .rd-hero {
    margin-top: 60px !important;
  }
  .beautyple-sub-page .pg-hero.pg-hero-full {
    margin-top: 0 !important;
  }
  .txt20 { font-size: 17px !important; }
  .txt26 { font-size: 17px !important; }
  header { padding: 0 20px; height: 60px; }
  header.scrolled { height: 56px; }
  .logo img { height: 44px; }
  header.scrolled .logo img { height: 38px; }
  .mt120 { margin-top: 60px; }
  .mt140 { margin-top: 70px; }
  .mt150 { margin-top: 70px; }
  .intro { padding: 56px 24px 48px; }

  .contact { padding: 56px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .c-form-row { grid-template-columns: 1fr; }
  .c-phone { font-size: 22px; }
  .map-box { height: 220px; }

  .ft-contact { padding: 56px 24px; }
  .ft-contact-inner { grid-template-columns: 1fr; gap: 36px; }
  .ft-c-left h3 { font-size: 34px; }
  .ft-contact .c-phone { grid-template-columns: 60px 1fr; font-size: 30px; }
  .ft-contact .c-phone span { font-size: 18px; }
  .ft-contact .c-lbl { font-size: 18px; }
  .ft-contact .c-val { font-size: 18px; }
  .ft-contact .c-row { grid-template-columns: 72px 1fr; gap: 14px; }
  .ft-contact .c-note { font-size: 18px; margin-top: 6px; }
  .ft-contact .c-submit { width: 100%; margin-left: 0; }
  .ft-c-left h3 { font-size: 28px; margin-bottom: 20px; }

  footer { padding: 48px 24px calc(88px + env(safe-area-inset-bottom, 0px)) !important; }
  .ct-agree { flex-direction: column; align-items: flex-start; gap: 8px; }
  .ct-agree a { white-space: normal; }
  .ct-submit { align-self: stretch; width: 100%; }
  .ft-wrap { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .ft-right-col,
  .ft-right { align-items: flex-start; }
  .ft-nav { justify-content: flex-start; gap: 14px; }
  .ft-top { flex-direction: column; gap: 24px; }
  .ft-bottom-inner { grid-template-columns: 1fr; gap: 24px; align-items: start; }

  .num-grid { grid-template-columns: 1fr !important; }
  .steps { grid-template-columns: 1fr !important; }
  .intro p,
  .intro-sub,
  .intro-lead,
  .intro-desc,
  .dm-intro p,
  .pm-intro p,
  .rsv-intro p,
  .md-section-desc {
    font-size: 17px !important;
    line-height: 1.5em !important;
  }
}

@media (max-width: 480px) {
  .c-agree {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .c-agree-more {
    white-space: normal;
  }
}


/* ── Common Contact Section ── */
.contact-sec { padding: 120px 52px; background: var(--w); }
.contact-grid3 { display: grid; grid-template-columns: .75fr 1.05fr 1.15fr; gap: clamp(48px, 5vw, 86px); max-width: 1520px; margin: 0 auto; align-items: start; }
.ct-left h2 { font-size: clamp(30px, 3vw, 45px); font-weight: 700; margin-bottom: 36px; letter-spacing: -.00em; }
.ct-rows { border-top: 0; }
.ct-row { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding: 18px 0; border-bottom: 0; align-items: start; }
.ct-row:first-child { align-items: center; padding-top: 0; }
.ct-row:first-child .ct-lbl { padding-top: 0; }
.ct-lbl { font-size: 18px; font-weight: 700; color: var(--dark); padding-top: 4px; line-height: 1.6; }
.ct-val { font-size: 18px; color: var(--mid); line-height: 1.9; }
.ct-phone-val { font-size: clamp(22px, 1.8vw, 26px); font-weight: 700; color: var(--dark); letter-spacing: .01em; line-height: 1; }
.ct-form { display: flex; flex-direction: column; gap: 18px; }
.ct-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ct-form-group { display: flex; flex-direction: column; gap: 7px; }
.ct-form-group label { font-size: 18px; font-weight: 700; color: var(--dark); letter-spacing: .02em; }
.ct-form-group .req { color: var(--gold); margin-left: 2px; }
.ct-form-group input, .ct-form-group textarea { border: 1px solid #e5e5e5; border-radius: 4px; padding: 12px 14px; font-size: 15px; color: var(--dark); background: #fff; outline: none; font-family: inherit; transition: border-color .2s; }
.ct-form-group input::placeholder, .ct-form-group textarea::placeholder { color: var(--light); }
.ct-form-group input:focus, .ct-form-group textarea:focus { border-color: var(--gold); }
.ct-form-group textarea { resize: none; height: 112px; }
.ct-agree { display: flex; align-items: center; justify-content: space-between; font-size: 14px !important; color: var(--mid); gap: 12px; }
.ct-agree-lbl { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ct-agree-lbl input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--gold); cursor: pointer; flex-shrink: 0; }
.ct-agree a { font-size: 14px !important; color: var(--light); white-space: nowrap; flex-shrink: 0; }
.ct-agree a:hover { color: var(--gold); }
.ct-submit { align-self: flex-end; min-width: 170px; padding: 13px 30px; border-radius: 999px; background: #111; color: #fff; font-size: 18px; font-weight: 600; letter-spacing: .06em; border: none; cursor: pointer; font-family: inherit; transition: background .2s; }
.ct-submit:hover { background: var(--gold); }
.map-box2 { height: 100%; min-height: 390px; overflow: hidden; background: #f4f1ed; }
.map-box2 iframe { width: 100%; height: 100%; min-height: 390px; border: 0; display: block; }
.privacy-modal { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px; background: rgba(0,0,0,.42); }
.privacy-modal.on { display: flex; }
.privacy-card { width: min(620px, 100%); max-height: 82vh; overflow: auto; background: #fff; border-radius: 18px; padding: 34px; box-shadow: 0 20px 60px rgba(0,0,0,.18); position: relative; }
.privacy-card h3 { font-size: 24px; margin-bottom: 18px; }
.privacy-card p, .privacy-card li { font-size: 15px; line-height: 1.8; color: var(--mid); }
.privacy-card ul { margin: 16px 0 0; padding-left: 18px; }
.privacy-close { position: absolute; right: 18px; top: 14px; border: 0; background: transparent; font-size: 28px; line-height: 1; cursor: pointer; }
@media (max-width: 1024px) { .contact-grid3 { grid-template-columns: 1fr 1fr; } .contact-grid3 .map-box2 { grid-column: 1 / -1; min-height: 320px; } }
@media (max-width: 768px) { .contact-sec { padding: 80px 24px; } .contact-grid3 { grid-template-columns: 1fr; gap: 36px; } .ct-form-row { grid-template-columns: 1fr; } .map-box2 { min-height: 260px; } }

/* ── Responsive Type System ── */
body { font-size: clamp(15px, .94vw, 18px); }
header nav a,
.h-book {
  font-size: clamp(14px, .89vw, 17px) !important;
}
.nav-drop a {
  font-size: 14px !important;
}
h1,
.pg-intro h1,
.doctor-hero h1,
.hero-copy h1 {
  font-size: clamp(42px, 4.4vw, 90px) !important;
}
h2,
.ttl,
.sec-ttl,
.doctor-info h2,
.media-hd h2,
.ba-hd h2,
.ct-left h2 {
  font-size: clamp(30px, 3vw, 55px) !important;
}
h3,
.prog-ttl,
.mc-body h3,
.event-card h3 {
  font-size: clamp(18px, 1.55vw, 30px) !important;
}
h4,
.treat-col h4,
.factor-body h3,
.treat-nm,
.step-ttl,
.mi-src,
.stat-box strong {
  font-size: clamp(17px, 1.25vw, 24px) !important;
}
p,
li,
.body-txt,
.sec-body,
.check-list li,
.factor-body p,
.treat-desc,
.prog-desc,
.dk-list li,
.rec-list li,
.mi-desc,
.ct-val,
.ct-lbl,
.ct-form-group label,
.ct-agree,
.ct-agree a,
.ct-submit,
.ft-info-row,
.ft-nav a,
.ft-copy {
  font-size: clamp(15px, .94vw, 18px) !important;
}
.pg-pretag,
.tag-line,
.doctor-kicker,
.ba-tag,
.ba-htag,
.media-sub {
  font-size: clamp(15px, 1.25vw, 24px) !important;
}
.hero-copy p,
.pg-intro > p,
.doctor-hero p,
.intro p {
  font-size: clamp(17px, 1.25vw, 24px) !important;
}
.num-n,
.cause-card .num-n {
  font-size: clamp(56px, 5vw, 96px) !important;
}
.metavue-marquee {
  font-size: clamp(72px, 7.3vw, 140px) !important;
}
.ct-phone-val,
.ct-tel,
.c-phone {
  font-size: clamp(22px, 1.8vw, 34px) !important;
}

.recommend-sec .check-list li,
.recommend-visual .check-list li,
.rd-recommend-sec .check-list li {
  font-weight: 400 !important;
}

@media (max-width: 768px) {
  :root {
    --section-body-size: 17px;
    --section-body-line-height: 1.5em;
  }
  body {
    font-size: 17px !important;
    line-height: 1.5em !important;
  }
  p,
  li,
  .sec :is(
    p, li, .body-txt, .sec-body, .check-list li, .factor-body p,
    .treat-desc, .prog-desc, .step-desc, .dk-list li, .rec-list li,
    .mi-desc, .num-item p, .pill-tag, .quote-box, .layer-footer,
    .info-band p, .care-list li, .benefit-box, .disease-body,
    .disease-note, .compare-card p, .compare-table, .circle-card
  ),
  .intro :is(p, .intro-sub, .intro-lead, .intro-desc),
  .dm-intro p,
  .pm-intro p,
  .rsv-intro p,
  .md-section-desc,
  .cause-card .sec-body,
  .ct-val,
  .ft-info-row,
  .ft-copy {
    font-size: 17px !important;
    line-height: 1.5em !important;
  }
  h1,
  .pg-intro h1,
  .doctor-hero h1,
  .hero-copy h1 {
    font-size: clamp(36px, 10vw, 52px) !important;
  }
  h2,
  .ttl,
  .sec-ttl,
  .doctor-info h2,
  .media-hd h2,
  .ba-hd h2,
  .ct-left h2 {
    font-size: 38px !important;
    line-height: 1.2 !important;
  }
  html:not(.beautyple-sub-page) .ba-caption-title,
  .beautyple-sub-page .beautyple-ba-index .ba-caption-title,
  html body .ba-caption-title {
    font-size: 20px !important;
    line-height: 1.35 !important;
    letter-spacing: 0 !important;
  }
  html body .ba-tag,
  html body .ba-htag,
  html.beautyple-sub-page body .beautyple-ba-index .ba-tag {
    font-size: 20px !important;
    letter-spacing: .2em !important;
  }
  .cause-sec,
  .sec:has(.cause-card) {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .cause-card {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
  }
}
