/* ==========================================================================
   법무법인 서앤율 랜딩페이지 - 스타일시트
   Design: Dark Prestige (Deep Charcoal + Brand Gold)
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  /* Core palette (oklch 기준, 지원 안되는 환경 대비 fallback hex 병기) */
  --gold:        oklch(0.70 0.14 78);
  --gold-strong: oklch(0.45 0.10 78);
  --gold-soft:   oklch(0.96 0.03 80);
  --charcoal:        oklch(0.12 0.005 250);
  --charcoal-mid:    oklch(0.18 0.005 250);
  --charcoal-light:  oklch(0.22 0.005 250);
  --charcoal-deep:   oklch(0.10 0.010 250);
  --text-body:   oklch(0.25 0.005 250);
  --text-muted:  oklch(0.50 0.005 250);
  --text-soft:   oklch(0.60 0.005 250);
  --bg-cream:    oklch(0.97 0.01 258);
  --bg-soft:     oklch(0.96 0.003 250);
  --bg-softer:   oklch(0.97 0.003 250);
  --border-soft: oklch(0.90 0.003 250);
  --border-mid:  oklch(0.85 0.003 250);
  --danger:      oklch(0.577 0.245 27.325);
  --success:     oklch(0.55 0.14 145);

  /* Typography — Pretendard (본문) + Noto Serif KR (헤드라인) */
  --font-serif: "Noto Serif KR", "Times New Roman", serif;
  --font-sans:  "Pretendard", "Pretendard Variable", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;

  /* Layout */
  --container-max: 1200px;
  --radius-sm: 4px;
  --radius:    8px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows — charcoal 계열로 tint (순흑보다 배경 hue 와 자연스럽게 블렌드) */
  --shadow-sm:  0 2px 8px rgba(18, 22, 38, 0.06);
  --shadow:     0 8px 32px rgba(18, 22, 38, 0.10);
  --shadow-lg:  0 20px 60px rgba(12, 16, 32, 0.16);
  --shadow-xl:  0 30px 80px rgba(12, 16, 32, 0.35);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-body);
  background: #fff;
  word-break: keep-all;       /* 한국어 단어 중간에서 끊기지 않도록 */
  overflow-wrap: break-word;  /* 긴 영문/URL 은 깨짐 허용 */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss05" on, "ss06" on, "ss07" on, "ss08" on; /* Pretendard 한국어 최적화 */
}
h1, h2, h3, h4, h5, h6 {
  margin: 0; font-weight: 700; font-family: var(--font-serif);
  line-height: 1.25; letter-spacing: -0.01em;
  word-break: keep-all;
  text-wrap: balance;         /* 줄바꿈 균형 — 마지막 줄에 외톨이 단어 방지 */
}
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font-family: inherit; cursor: pointer; border: none; background: none; padding: 0; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
input, select, textarea { font-family: inherit; font-size: inherit; }

/* ---------- Utilities ---------- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

.text-gold { color: var(--gold); }
.bold { font-weight: 700; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; font-size: 15px; font-weight: 700;
  border-radius: var(--radius-sm);
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s ease, opacity .2s ease, background-color .2s;
  cursor: pointer; border: 2px solid transparent; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(0.98); transition-duration: .1s; }
.btn--gold { background: var(--gold); color: var(--charcoal); }
.btn--gold:hover { opacity: .92; box-shadow: var(--shadow-lg); }
.btn--outline-white { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.btn--outline-white:hover { background: rgba(255,255,255,0.10); }
.btn--outline { background: #fff; border-color: var(--border-mid); color: var(--charcoal); }
.btn--block { width: 100%; }
.btn--lg { padding: 16px 32px; font-size: 17px; }
.btn--sm { padding: 8px 16px; font-size: 13px; }
.btn:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }

/* ---------- Eyebrow / Section Header ---------- */
.eyebrow {
  display: inline-block; padding: 6px 16px; border-radius: 9999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text-muted); background: var(--bg-soft); border: 1px solid var(--border-mid);
  margin-bottom: 16px;
}
.eyebrow--gold { color: var(--gold); background: color-mix(in oklch, var(--gold) 12%, transparent); border-color: color-mix(in oklch, var(--gold) 35%, transparent); }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 44px); margin-bottom: 16px; color: var(--charcoal); }
.section-head p { font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }
.section-head--light h2 { color: #fff; }
.section-head--light p { color: rgba(255,255,255,0.55); }
@media (min-width: 768px) { .section-head { margin-bottom: 64px; } }

/* ---------- Fade-up animation (관찰 기반 JS 트리거) ---------- */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }
.fade-up-delay-1.in-view { transition-delay: .05s; }
.fade-up-delay-2.in-view { transition-delay: .10s; }
.fade-up-delay-3.in-view { transition-delay: .18s; }
.fade-up-delay-4.in-view { transition-delay: .25s; }

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.navbar--home { background: transparent; }
.navbar--home.is-scrolled,
.navbar--sub {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.25);
}
.navbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.navbar__logo img { height: 40px; width: auto; }
.navbar__menu { display: none; gap: 32px; }
.navbar__right { display: flex; align-items: center; gap: 16px; }
.navbar__link {
  font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.80); position: relative;
  transition: color .2s;
}
.navbar__link:hover { color: #fff; }
.navbar__link::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0%;
  background: var(--gold); transition: width .3s;
}
.navbar__link:hover::after { width: 100%; }
.navbar__link--sub { display: none; }
.navbar__cta { display: none; }
.navbar__hamburger {
  width: 40px; height: 40px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
}
.navbar__hamburger span { display: block; width: 22px; height: 2px; background: #fff; transition: transform .2s, opacity .2s; }
.navbar__hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__hamburger.is-open span:nth-child(2) { opacity: 0; }
.navbar__hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.navbar__mobile {
  background: rgba(15,15,15,0.98);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.navbar__mobile-link {
  display: block; padding: 16px 24px; color: rgba(255,255,255,0.80);
  border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 14px; font-weight: 500;
}
.navbar__mobile-link:hover { color: #fff; }

@media (min-width: 768px) {
  .navbar__menu { display: flex; }
  .navbar__cta { display: inline-flex; }
  .navbar__hamburger { display: none; }
  .navbar__link--sub { display: inline; color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;  /* iOS Safari 주소창 대응 (dvh 미지원 브라우저는 100vh fallback) */
  display: flex; align-items: center; overflow: hidden;
  background-color: #0a0a0a;       /* 와이드 모니터에서 이미지 좌우 여백을 어둡게 채움 */
  background-image: url('/assets/images/hero-lawyer-mobile.webp');  /* 기본: 모바일 (~720x858, 42KB) */
  background-size: cover;
  background-position: 68% 22%;
  background-repeat: no-repeat;
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,8,8,0.85) 0%, rgba(8,8,8,0.65) 45%, rgba(8,8,8,0.20) 100%);
  pointer-events: none;
}
/* 모바일: 인물 얼굴이 상단에 오도록 텍스트 하단 정렬 + 수직 그라디언트 */
@media (max-width: 767px) {
  .hero {
    align-items: flex-end;           /* 텍스트 블록을 히어로 하단으로 */
  }
  .hero__overlay {
    background: linear-gradient(180deg,
      rgba(8,8,8,0.10) 0%,            /* 상단: 인물 얼굴 선명하게 */
      rgba(8,8,8,0.25) 35%,
      rgba(8,8,8,0.55) 65%,
      rgba(8,8,8,0.80) 100%);         /* 하단: 텍스트 가독성 확보 */
  }
  .hero__inner {
    padding-top: 40px;
    padding-bottom: 31px;   /* 56px - 25px: 텍스트를 25px 더 하단으로 */
    width: 100%;
  }
  /* 모바일 히어로 간소화:
     - eyebrow pill, subheadline, 두번째 CTA("서비스 알아보기") 숨김
     - 헤드라인 + "상담 신청" 1개 버튼 + 스탯만 노출 */
  .hero__content .eyebrow { display: none; }
  .hero__sub { display: none; }
  .hero__ctas > a:nth-of-type(2) { display: none; }
  .hero__ctas { margin-bottom: 24px; }
  .hero__headline { margin-bottom: 20px; }
}
/* 태블릿 (768~1199px): 1280x715 ver 사용, 인물 우측 배치 */
@media (min-width: 768px) {
  .hero {
    background-image: url('/assets/images/hero-lawyer-tablet.webp');
    background-position: center 15%;
  }
}
/* 데스크탑 (1200px+): 1920x1072 풀 해상도 */
@media (min-width: 1200px) {
  .hero {
    background-image: url('/assets/images/hero-lawyer.webp');
  }
}
/* 와이드/울트라와이드 모니터 (≥1920px):
   - 이미지가 무한 확대되지 않도록 native 사이즈에 cap (auto 100%)
   - 좌우 여백은 #0a0a0a 로 채워지며, 오버레이 그라디언트로 자연스럽게 페이드 */
@media (min-width: 1920px) {
  .hero {
    background-size: auto 100%;     /* 높이=100%, 폭은 비율 유지 → 좌우 잘림 없음 */
    background-position: center top;
  }
  .hero__overlay {
    /* 우측 끝부분도 어둡게 하여 이미지 잘림과 dark fill 의 경계를 가림 */
    background: linear-gradient(100deg,
      rgba(8,8,8,0.92) 0%,
      rgba(8,8,8,0.70) 25%,
      rgba(8,8,8,0.30) 55%,
      rgba(8,8,8,0.55) 85%,
      rgba(8,8,8,0.85) 100%);
  }
}
.hero__inner {
  position: relative; z-index: 1;
  width: 100%;            /* .hero 가 flex 컨테이너이므로 명시적 100% 필요 (안 그러면 content 만큼 shrink) */
  padding-top: 96px;
  padding-bottom: 64px;
  /* 다른 섹션과 동일한 .container 규칙 (max-width: 1200px, 중앙 정렬) 사용
     → 와이드 모니터에서도 navbar 로고 / Pain / Services 등과 좌측 정렬 일치 */
}
.hero__content { max-width: 640px; }
.hero__headline {
  font-size: clamp(36px, 6vw, 72px); font-weight: 900; color: #fff; line-height: 1.1;
  margin-bottom: 24px; letter-spacing: -0.02em;
}
.hero__headline em { font-style: normal; color: var(--gold); }
.hero__sub { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.72); margin-bottom: 40px; max-width: 500px; line-height: 1.6; }
.hero__ctas { display: flex; flex-direction: column; gap: 12px; margin-bottom: 56px; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.hero__stat strong {
  display: block; font-family: var(--font-serif); font-size: clamp(18px, 3vw, 28px);
  color: #fff; font-weight: 700;
}
.hero__stat span { font-size: 12px; color: rgba(255,255,255,0.5); }
.hero__divider { display: none; width: 1px; height: 40px; background: rgba(255,255,255,0.15); }
.hero__scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 2px; z-index: 1;
}
.hero__scroll-hint svg { width: 20px; height: 20px; color: rgba(255,255,255,0.4); animation: bounce 1.4s infinite; }
.hero__scroll-hint svg:last-child { color: rgba(255,255,255,0.2); animation-delay: .2s; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

@media (min-width: 640px) {
  .hero__ctas { flex-direction: row; }
}
@media (min-width: 768px) {
  .hero__stats { display: flex; flex-wrap: wrap; gap: 32px; }
  .hero__divider { display: block; }
}

/* ==========================================================================
   PAIN
   ========================================================================== */
.pain {
  padding: 64px 0; background: var(--bg-cream);
  position: relative; isolation: isolate;
}
.pain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 15% 0%,  color-mix(in oklch, var(--gold) 6%, transparent) 0%, transparent 55%),
    radial-gradient(900px 500px at 110% 100%, color-mix(in oklch, var(--charcoal) 5%, transparent) 0%, transparent 60%);
}
.pain__cards { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
.pain__card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  overflow: hidden; position: relative; transition: transform .3s, box-shadow .3s;
}
.pain__card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.pain__card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--charcoal-light));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
  z-index: 1;
}
.pain__card:hover::before { transform: scaleX(1); }
.pain__card-img {
  width: 100%; height: 200px; overflow: hidden; position: relative;
}
.pain__card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s; }
.pain__card:hover .pain__card-img img { transform: scale(1.05); }
.pain__card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(255,255,255,0.95) 100%);
}
.pain__card-body { padding: 24px; }
.pain__card-title { font-size: 18px; color: var(--charcoal); margin-bottom: 16px; white-space: pre-line; line-height: 1.4; }
.pain__card-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.pain__cta {
  display: flex; flex-direction: column; align-items: center; gap: 20px;
  padding: 24px; background: var(--charcoal); border-radius: var(--radius-lg);
}
.pain__cta p { color: #fff; font-size: 18px; font-weight: 600; text-align: center; flex: 1; line-height: 1.5; }

/* Pain 섹션 인라인 상담 폼 */
.pain__cta--form {
  display: block;
  padding: 32px 24px;
  background: linear-gradient(135deg, var(--charcoal) 0%, oklch(0.16 0.015 258) 100%);
  border: 1px solid rgba(255,255,255,0.06);
  position: relative; overflow: hidden;
}
.pain__cta--form::before {
  content: ""; position: absolute; inset: -1px;
  background: radial-gradient(600px 300px at 0% 0%, color-mix(in oklch, var(--gold) 12%, transparent) 0%, transparent 60%);
  pointer-events: none;
}
.pain__cta-text {
  position: relative; z-index: 1;
  text-align: center; margin-bottom: 20px;
}
.pain__cta-headline {
  color: #fff; font-family: var(--font-serif); font-size: clamp(20px, 3vw, 26px);
  font-weight: 700; line-height: 1.4; margin-bottom: 10px;
}
.pain__cta-sub {
  color: rgba(255,255,255,0.7); font-size: 14px; line-height: 1.6; margin: 0;
}
.pain__cta-sub strong { color: var(--gold); font-weight: 600; }

.pain__cta-form {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 14px;
}
.pain__cta-fields {
  display: grid; grid-template-columns: 1fr; gap: 10px;
}
.form-control-inverse {
  width: 100%; padding: 13px 16px;
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: var(--radius); color: #fff; font-size: 15px;
  outline: none; transition: background .2s, border-color .2s, box-shadow .2s;
  font-family: inherit;
  appearance: none; -webkit-appearance: none;
}
.form-control-inverse::placeholder { color: rgba(255,255,255,0.45); }
.form-control-inverse:focus {
  background: rgba(255,255,255,0.12); border-color: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--gold) 20%, transparent);
}
/* select 화살표 */
select.form-control-inverse {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffffffb3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 38px;
}
select.form-control-inverse option {
  background: var(--charcoal); color: #fff;
}

.pain__cta-form .form-submit {
  padding: 13px 24px;
  white-space: nowrap;
}

.pain__cta-privacy {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px;
  color: rgba(255,255,255,0.75); font-size: 13px; cursor: pointer;
  user-select: none;
}
.pain__cta-privacy input[type="checkbox"] {
  accent-color: var(--gold); width: 16px; height: 16px; cursor: pointer;
  margin: 0;
}
.pain__cta-privacy-link {
  background: none; border: none; color: var(--gold); cursor: pointer;
  text-decoration: underline; font-size: 13px; padding: 0;
  font-family: inherit;
}

.pain__cta-form .form-error {
  display: none;
  padding: 10px 14px; border-radius: var(--radius);
  background: rgba(217, 87, 87, 0.14); border: 1px solid rgba(217, 87, 87, 0.32);
  color: #ff9797; font-size: 13px; line-height: 1.4;
}
.pain__cta-form .form-error.is-shown { display: block; }

.pain__cta-success {
  display: none;
  position: relative; z-index: 1;
  text-align: center; padding: 32px 24px;
}
.pain__cta-success.is-shown { display: block; }
.pain__cta-success__icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in oklch, var(--gold) 15%, transparent);
  color: var(--gold); margin-bottom: 16px;
}
.pain__cta-success h4 {
  color: #fff; font-family: var(--font-serif); font-size: 22px; margin-bottom: 10px;
}
.pain__cta-success p { color: rgba(255,255,255,0.72); font-size: 14px; margin: 0; line-height: 1.6; }

/* 데스크탑: 폼을 한 줄(가로)로 */
@media (min-width: 768px) {
  .pain__cta--form { padding: 36px 40px; }
  .pain__cta-fields {
    grid-template-columns: 1.1fr 1.2fr 1.4fr auto;
    gap: 10px;
  }
  .pain__cta-form .form-submit { min-width: 140px; }
}
@media (min-width: 640px) { .pain__cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .pain { padding: 112px 0; }
  .pain__cards { grid-template-columns: repeat(4, 1fr); }
  .pain__cta:not(.pain__cta--form) { flex-direction: row; padding: 32px 40px; }
  .pain__cta:not(.pain__cta--form) p { text-align: left; font-size: 20px; }
}

/* ==========================================================================
   SERVICES
   ========================================================================== */
.services {
  padding: 64px 0; background: #fff;
  position: relative; isolation: isolate;
}
.services::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(700px 400px at 90% 10%, color-mix(in oklch, var(--gold) 4%, transparent) 0%, transparent 50%),
    radial-gradient(600px 400px at 5% 85%,  color-mix(in oklch, var(--charcoal) 3%, transparent) 0%, transparent 55%);
}
.services__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.svc-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 20px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s, box-shadow .3s; cursor: pointer;
}
.svc-card--featured { background: var(--bg-soft); border-color: var(--gold); }
.svc-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.svc-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--charcoal-mid) 0%, var(--charcoal-light) 100%);
  opacity: 0; transition: opacity .3s;
}
.svc-card:hover .svc-card__overlay { opacity: 1; }
.svc-card__inner { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 16px; height: 100%; }
.svc-badge {
  display: inline-block; width: fit-content; padding: 4px 12px; border-radius: 9999px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); background: var(--bg-soft); border: 1px solid var(--border-mid);
  transition: background .3s, color .3s, border-color .3s;
}
.svc-img { width: 100%; height: 160px; border-radius: var(--radius); overflow: hidden; }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.svc-card:hover .svc-img img { transform: scale(1.05); }
.svc-title { font-size: 22px; color: var(--charcoal); transition: color .3s; }
.svc-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; flex: 1; transition: color .3s; }
.svc-feats { display: flex; flex-direction: column; gap: 8px; }
.svc-feats li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--text-muted); transition: color .3s; }
.svc-feats svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.svc-link { font-size: 14px; font-weight: 600; color: var(--gold); margin-top: auto; }
.svc-card:hover .svc-title { color: rgba(255,255,255,0.95); }
.svc-card:hover .svc-desc,
.svc-card:hover .svc-feats li { color: rgba(255,255,255,0.75); }
.svc-card:hover .svc-badge {
  background: rgba(255,255,255,0.15); color: #fff; border-color: rgba(255,255,255,0.2);
}
.services__compare-banner { margin-top: 32px; display: flex; justify-content: center; }
.services__compare-banner a {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; background: var(--bg-soft); border: 1px solid var(--border-mid);
  border-radius: var(--radius-lg); color: var(--charcoal); font-size: 14px; font-weight: 600;
  transition: opacity .2s;
}
.services__compare-banner a:hover { opacity: .85; }
.services__compare-banner strong { color: var(--gold); font-weight: 700; }
@media (min-width: 640px) { .services__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .services { padding: 112px 0; }
  .services__grid { grid-template-columns: repeat(4, 1fr); }
  .svc-card { padding: 32px; }
}

/* ==========================================================================
   WHY
   ========================================================================== */
.why { padding: 64px 0; background: var(--charcoal); position: relative; overflow: hidden; }
.why::before, .why::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.why::before {
  top: -300px; left: -200px; width: 600px; height: 600px;
  background: radial-gradient(circle, color-mix(in oklch, oklch(0.32 0.09 258) 25%, transparent) 0%, transparent 70%);
}
.why::after {
  bottom: -200px; right: -100px; width: 500px; height: 500px;
  background: radial-gradient(circle, color-mix(in oklch, var(--gold) 8%, transparent) 0%, transparent 70%);
}
.why__grid { display: grid; grid-template-columns: 1fr; gap: 32px; position: relative; z-index: 1; margin-bottom: 64px; }
.why__card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg); padding: 32px; transition: transform .3s;
}
.why__card--center {
  background: color-mix(in oklch, oklch(0.32 0.09 258) 25%, transparent);
  border-color: color-mix(in oklch, oklch(0.55 0.10 258) 30%, transparent);
}
.why__card:hover { transform: translateY(-4px); }
.why__num {
  font-family: var(--font-serif); font-size: 60px; font-weight: 900;
  color: rgba(255,255,255,0.06); line-height: 1; margin-bottom: 16px; letter-spacing: -0.04em;
}
.why__icon-box {
  width: 56px; height: 56px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.08); color: var(--gold); margin-bottom: 24px;
}
.why__card-title { font-size: 22px; color: #fff; margin-bottom: 20px; line-height: 1.35; white-space: pre-line; }
.why__card-desc { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.6; margin-bottom: 24px; }
.why__feats li {
  display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.75); padding: 4px 0;
}
.why__feats li::before { content: "→"; color: var(--gold); font-size: 12px; }
.why__trust {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px;
  padding: 24px; border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08);
  position: relative; z-index: 1;
}
.why__trust-item { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.7); font-size: 14px; font-weight: 500; }
.why__trust-item svg { color: var(--gold); }
@media (min-width: 768px) {
  .why { padding: 112px 0; }
  .why__grid { grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .why__trust { padding: 32px 40px; }
  .why__trust-item:not(:last-child)::after {
    content: ""; display: inline-block; width: 1px; height: 32px; margin-left: 24px;
    background: rgba(255,255,255,0.12);
  }
}

/* ==========================================================================
   ATTORNEY
   ========================================================================== */
.attorney { padding: 64px 0; background: var(--charcoal-deep); position: relative; overflow: hidden; }
.attorney::before {
  content: ""; position: absolute; right: 0; top: 0; width: 50%; height: 100%; opacity: .05;
  background: radial-gradient(ellipse at right center, var(--gold) 0%, transparent 70%);
}
.attorney__grid { display: grid; grid-template-columns: 1fr; gap: 32px; position: relative; z-index: 1; align-items: start; }
.attorney__photo { max-width: 420px; margin: 0 auto; position: relative; }
.attorney__photo::before,
.attorney__photo::after {
  content: ""; position: absolute; width: 96px; height: 96px; border: 2px solid var(--gold);
}
.attorney__photo::before { top: -12px; left: -12px; border-right: none; border-bottom: none; border-top-left-radius: var(--radius-lg); }
.attorney__photo::after { bottom: -12px; right: -12px; border-left: none; border-top: none; border-bottom-right-radius: var(--radius-lg); }
.attorney__photo img { border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.attorney__name-card {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: rgba(15, 15, 24, 0.92); border: 1px solid color-mix(in oklch, var(--gold) 40%, transparent);
  backdrop-filter: blur(8px); border-radius: 12px; padding: 14px 32px; text-align: center; min-width: 180px;
}
.attorney__name-card strong { display: block; font-family: var(--font-serif); font-size: 22px; color: #fff; }
.attorney__name-card span { color: var(--gold); font-size: 14px; font-weight: 600; margin-top: 4px; display: block; }
.attorney__info h3 {
  font-size: 13px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--gold); display: flex; align-items: center; gap: 12px; margin-bottom: 16px;
}
.attorney__info h3::before {
  content: ""; display: inline-block; width: 32px; height: 1px; background: var(--gold);
}
.attorney__info section { margin-bottom: 32px; }
.attorney__info li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,0.85); line-height: 1.6; padding: 4px 0;
}
.attorney__info li::before {
  content: ""; margin-top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0;
}
.attorney__info section.attorney__past li::before,
.attorney__info section.attorney__current li::before { background: oklch(0.55 0.005 250); }
@media (min-width: 1024px) {
  .attorney { padding: 112px 0; }
  .attorney__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials { padding: 64px 0; background: linear-gradient(180deg, #fff 0%, var(--bg-cream) 100%); overflow: hidden; }
.testi__track { display: grid; grid-template-columns: 1fr; gap: 24px; margin-bottom: 32px; transition: opacity .3s, transform .3s; }
.testi__card {
  background: #fff; border-radius: var(--radius-lg); padding: 24px;
  border: 1px solid var(--border-soft); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
}
.testi__card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.testi__avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--bg-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 18px; font-weight: 700;
}
.testi__name { flex: 1; }
.testi__name strong { font-family: var(--font-serif); font-size: 16px; color: var(--charcoal); }
.testi__name span { display: block; font-size: 12px; color: oklch(0.65 0.04 258); margin-top: 2px; }
.testi__svc { padding: 4px 12px; border-radius: 9999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.testi__svc[data-svc="개인회생"] { background: var(--bg-soft); color: var(--gold); }
.testi__svc[data-svc="개인파산"] { background: oklch(0.96 0.03 80); color: oklch(0.52 0.14 80); }
.testi__svc[data-svc="법인회생"] { background: oklch(0.94 0.02 250); color: var(--charcoal); }
.testi__svc[data-svc="법인파산"] { background: oklch(0.96 0.01 30); color: oklch(0.45 0.12 30); }
.testi__stars { display: flex; gap: 2px; }
.testi__stars svg { color: var(--gold); }
.testi__text {
  font-size: 14px; color: oklch(0.42 0.08 258); line-height: 1.7; position: relative; padding-left: 16px; flex: 1;
}
.testi__text::before {
  content: "“"; position: absolute; top: -12px; left: -4px; font-family: var(--font-serif); font-size: 48px; color: var(--gold); opacity: .15;
}
.testi__result {
  border-top: 1px solid oklch(0.93 0.02 258); padding-top: 16px; display: flex; flex-direction: column; gap: 8px;
}
.testi__debt { font-size: 12px; }
.testi__debt span:first-child { font-weight: 600; color: oklch(0.65 0.04 258); margin-right: 8px; }
.testi__debt strong { color: var(--charcoal); }
.testi__hl {
  display: flex; align-items: flex-start; gap: 8px; padding: 12px 16px; background: var(--bg-soft);
  border-radius: 12px; font-size: 12px; font-weight: 600; color: var(--text-body); line-height: 1.4;
}
.testi__hl svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.testi__controls { display: flex; align-items: center; justify-content: center; gap: 24px; }
.testi__nav {
  width: 48px; height: 48px; border-radius: 50%;
  background: #fff; border: 1px solid var(--border-mid); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s, box-shadow .2s;
}
.testi__nav:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.testi__dots { display: flex; align-items: center; gap: 6px; }
.testi__dot {
  width: 8px; height: 8px; border-radius: 9999px; background: var(--border-mid); transition: width .3s, background .3s;
}
.testi__dot.is-active { width: 28px; background: var(--gold); }
.testi__progress {
  margin: 24px auto 0; width: 120px; height: 2px; background: var(--border-soft);
  border-radius: 9999px; overflow: hidden;
}
.testi__progress-bar { height: 100%; background: var(--gold); width: 0%; transition: width .1s linear; }
@media (min-width: 768px) {
  .testimonials { padding: 112px 0; }
  .testi__track { grid-template-columns: repeat(3, 1fr); }
}

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact { padding: 64px 0; background: var(--bg-softer); }
.contact__grid { display: grid; grid-template-columns: 1fr; gap: 40px; }
.contact__left h2 { font-size: clamp(28px, 4vw, 44px); color: var(--charcoal); margin-bottom: 24px; }
.contact__callout {
  background: var(--charcoal); border: 1px solid var(--charcoal-light); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 24px;
}
.contact__callout p:first-child { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 12px; line-height: 1.6; }
.contact__callout p:last-child { color: var(--gold); font-weight: 600; }
.contact__info { display: flex; flex-direction: column; gap: 20px; }
.contact__info-item { display: flex; gap: 16px; align-items: flex-start; }
.contact__info-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: color-mix(in oklch, var(--gold) 12%, transparent); color: var(--gold);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact__info-label { font-size: 12px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-soft); margin-bottom: 4px; }
.contact__info-tel { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--charcoal); }
.contact__info-tel:hover { opacity: .85; }
.contact__info-title { font-size: 14px; font-weight: 700; color: var(--charcoal); margin-bottom: 4px; }
.contact__info-desc { font-size: 12px; color: var(--text-soft); line-height: 1.6; }

.contact__form-wrap {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-lg);
}
.form-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--text-body); }
.form-field label .req { color: var(--danger); margin-left: 2px; }
.form-field label .opt { font-weight: 400; color: var(--text-muted); margin-left: 4px; }
.form-control {
  width: 100%; padding: 14px 18px;
  border: 1.5px solid var(--border-soft); border-radius: var(--radius); background: #fff;
  color: var(--charcoal); font-size: 16px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  border-color: var(--text-muted);
  box-shadow: 0 0 0 3px color-mix(in oklch, oklch(0.32 0.09 258) 8%, transparent);
}
textarea.form-control { resize: vertical; min-height: 100px; }
.form-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-choice label {
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 12px 16px; border: 2px solid var(--border-soft); border-radius: var(--radius);
  font-size: 14px; font-weight: 600; color: var(--text-body); transition: all .2s;
  user-select: none;
}
.form-choice input[type="radio"] { display: none; }
.form-choice input[type="radio"]:checked + span {
  color: var(--gold-strong);
}
.form-choice label:has(input:checked) {
  border-color: var(--gold);
  background: color-mix(in oklch, var(--gold) 8%, transparent);
}
.form-privacy { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.form-privacy input { margin-top: 2px; accent-color: var(--gold); width: 16px; height: 16px; flex-shrink: 0; }
.form-privacy label { font-size: 14px; color: var(--text-muted); line-height: 1.6; }
.form-privacy button {
  text-decoration: underline; font-weight: 500; color: var(--gold);
  background: none; border: none; padding: 0; font-size: inherit; cursor: pointer;
}
.form-submit {
  width: 100%; padding: 20px; background: var(--gold); color: var(--charcoal);
  border-radius: var(--radius-sm); font-size: 18px; font-weight: 700; cursor: pointer;
  transition: transform .2s, box-shadow .2s, opacity .2s;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.form-submit:disabled { opacity: .7; cursor: not-allowed; transform: none; }
.form-note { text-align: center; font-size: 12px; color: var(--text-soft); margin-top: 12px; }
.form-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; padding: 12px 16px; border-radius: var(--radius); font-size: 14px; margin-bottom: 16px; display: none; }
.form-error.is-shown { display: block; }
.form-success {
  text-align: center; padding: 48px 24px; display: none;
}
.form-success.is-shown { display: block; }
.form-success__icon {
  width: 80px; height: 80px; border-radius: 50%; background: var(--bg-soft); color: var(--gold);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 24px;
}
.form-success h3 { font-size: 24px; color: var(--charcoal); margin-bottom: 16px; }
.form-success p { color: var(--text-muted); line-height: 1.8; }

@media (min-width: 1024px) {
  .contact { padding: 112px 0; }
  .contact__grid { grid-template-columns: 1fr 1fr; gap: 64px; }
  .contact__form-wrap { padding: 40px; }
}

/* ==========================================================================
   LOCATION
   ========================================================================== */
.location { padding: 64px 0; background: var(--bg-softer); }
.location__wrap {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 8px 40px rgba(0,0,0,0.10);
}
.location__map-wrap { position: relative; }
.location__map-wrap iframe { width: 100%; height: 480px; display: block; border: 0; }
.location__map-label {
  position: absolute; top: 12px; left: 12px; background: #fff;
  padding: 8px 12px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex; align-items: center; gap: 8px; z-index: 1;
}
.location__map-label svg { color: #E53935; }
.location__map-label strong { font-size: 14px; color: #1a1a1a; display: block; }
.location__map-label span { font-size: 12px; color: #666; }
.location__info-overlay {
  display: none;
  position: absolute; top: 24px; right: 24px; width: 380px;
  background: rgba(255,255,255,0.97); border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,0.15); backdrop-filter: blur(8px);
  padding: 24px;
}
.location__info-card {
  margin-top: 24px; padding: 20px; background: #fff;
  border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  display: flex; flex-direction: column; gap: 16px;
}
.location__row { display: flex; align-items: flex-start; gap: 16px; }
.location__icon {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklch, var(--gold) 15%, transparent); color: oklch(0.60 0.12 78);
}
.location__icon--info { background: color-mix(in oklch, oklch(0.55 0.15 250) 12%, transparent); }
.location__icon--car  { background: color-mix(in oklch, oklch(0.55 0.15 145) 12%, transparent); }
.location__row-label { font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 4px; }
.location__row-val { font-size: 14px; font-weight: 600; color: oklch(0.15 0.005 250); line-height: 1.5; }
.location__row-val strong { color: oklch(0.60 0.12 78); }
.location__divider { border-top: 1px solid oklch(0.93 0.003 250); }
@media (min-width: 1024px) {
  .location { padding: 96px 0; }
  .location__info-overlay { display: block; }
  .location__info-card { display: none; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { background: var(--charcoal); border-top: 1px solid rgba(255,255,255,0.06); padding: 48px 0 32px; }
.footer__top {
  display: flex; flex-wrap: wrap; gap: 32px;
  padding-bottom: 40px; margin-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand { flex: 1; min-width: 200px; }
.footer__brand-name { font-family: var(--font-serif); font-size: 24px; color: #fff; margin-bottom: 12px; font-weight: 700; }
.footer__brand-desc { font-size: 14px; color: rgba(255,255,255,0.45); line-height: 1.6; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 32px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; min-width: 120px; }
.footer__col h4 { font-size: 14px; color: #fff; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 8px; }
.footer__col a,
.footer__col span { font-size: 14px; color: rgba(255,255,255,0.45); cursor: pointer; transition: color .2s; }
.footer__col a:hover { color: #fff; }
.footer__bottom p { font-size: 12px; color: rgba(255,255,255,0.3); margin: 2px 0; }
.footer__copy { color: rgba(255,255,255,0.25); }
.footer__copy a { color: rgba(255,255,255,0.35); text-decoration: underline; }
.footer__copy a:hover { color: #fff; }
@media (min-width: 768px) { .footer__top { gap: 64px; padding-bottom: 48px; margin-bottom: 32px; } .footer__cols { gap: 64px; } .footer { padding: 64px 0 32px; } }

/* ==========================================================================
   SIDE MENU / FLOATING CTA
   ========================================================================== */
.side-menu {
  position: fixed; right: 20px; top: 50%; transform: translateY(-50%);
  z-index: 40; display: none; flex-direction: column; align-items: flex-end; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .4s;
}
.side-menu.is-visible { opacity: 1; pointer-events: auto; }
.side-menu__item { display: flex; align-items: center; gap: 8px; }
.side-menu__label {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 9999px;
  background: rgba(10, 22, 40, 0.85); color: #fff; backdrop-filter: blur(8px);
  opacity: 0; transform: translateX(8px); transition: opacity .2s, transform .2s;
  pointer-events: none; white-space: nowrap;
}
.side-menu__item:hover .side-menu__label { opacity: 1; transform: translateX(0); }
.side-menu__item.is-active .side-menu__label { background: var(--gold); color: var(--charcoal); }
.side-menu__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(20, 20, 40, 0.35); transition: all .3s;
}
.side-menu__item.is-active .side-menu__dot {
  width: 12px; height: 12px; background: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--gold) 25%, transparent);
}
.side-menu__actions { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.side-menu__btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.side-menu__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.side-menu__btn--gold { background: var(--gold); color: var(--charcoal); }
.side-menu__btn--dark { background: rgba(20, 20, 40, 0.75); color: #fff; border: 1px solid rgba(255,255,255,0.12); backdrop-filter: blur(8px); }

@media (min-width: 1024px) { .side-menu { display: flex; } }

.floating-cta {
  position: fixed; bottom: 24px; right: 24px; z-index: 40;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; background: var(--gold); color: var(--charcoal);
  border-radius: 9999px; font-size: 14px; font-weight: 700;
  box-shadow: var(--shadow-xl); opacity: 0; transform: translateY(16px);
  pointer-events: none; transition: opacity .3s, transform .3s;
}
.floating-cta.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.floating-cta:hover { transform: translateY(-2px); }
.floating-cta span { display: none; }
@media (min-width: 640px) { .floating-cta span { display: inline; } }

/* ==========================================================================
   MODAL
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.6); cursor: pointer; }
.modal__panel {
  position: relative; background: #fff; width: 100%; max-width: 720px; max-height: 85vh; overflow-y: auto;
  border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-xl);
}
.modal__close { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; font-size: 20px; color: var(--text-body); }
.modal__close:hover { background: var(--bg-soft); }
.modal__title { font-family: var(--font-serif); font-size: 22px; color: var(--charcoal); margin-bottom: 24px; padding-right: 32px; }
.modal__body { font-size: 14px; color: var(--text-body); line-height: 1.8; }
.modal__body > * { margin-bottom: 16px; }
.modal__body .bold { font-weight: 700; margin-bottom: 8px; }
.modal__body ul { list-style: disc; padding-left: 20px; margin-top: 8px; }
.modal__body ul li { margin-bottom: 4px; }
.modal__note { font-size: 12px; color: var(--text-soft); padding-top: 8px; }

/* ==========================================================================
   SERVICE DETAIL / COMPARE (sub-pages)
   ========================================================================== */
.sub-hero {
  position: relative; height: 288px; margin-top: 64px; overflow: hidden;
}
.sub-hero img { width: 100%; height: 100%; object-fit: cover; }
.sub-hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to right, rgba(18,18,28,0.85) 40%, rgba(18,18,28,0.4) 100%);
}
.sub-hero__content {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding: 0 32px;
}
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,0.6); margin-bottom: 16px; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb [aria-current] { color: var(--gold); }
.sub-hero__badge {
  display: inline-flex; align-items: center; width: fit-content;
  padding: 4px 12px; border-radius: 9999px;
  background: var(--gold); color: var(--charcoal);
  font-size: 11px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 12px;
}
.sub-hero h1 { font-size: clamp(32px, 5vw, 52px); color: #fff; line-height: 1.2; margin-bottom: 12px; font-weight: 900; }
.sub-hero__sub { font-size: 17px; color: rgba(255,255,255,0.75); }

.sub-content { max-width: 960px; margin: 0 auto; padding: 64px 20px; }
.sub-section { margin-bottom: 64px; }
.sub-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 32px;
}
.sub-card--soft { background: var(--bg-soft); }
.sub-card h2 { font-size: 22px; color: var(--charcoal); margin-bottom: 16px; }
.sub-card p { font-size: 16px; color: var(--text-muted); line-height: 1.8; }
.sub-two-col { display: grid; grid-template-columns: 1fr; gap: 24px; }
.sub-item-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text-muted); line-height: 1.6; padding: 6px 0;
}
.sub-item-list svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }

.steps-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.step-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); padding: 24px;
}
.step-card__num {
  font-family: var(--font-serif); font-size: 36px; font-weight: 900;
  color: oklch(0.93 0.003 250); line-height: 1; margin-bottom: 12px; letter-spacing: -0.02em;
}
.step-card__bar { width: 24px; height: 2px; background: var(--gold); margin-bottom: 12px; }
.step-card h3 { font-size: 15px; color: var(--charcoal); margin-bottom: 4px; }
.step-card p { font-size: 12px; color: var(--text-muted); line-height: 1.6; }

.faq-card {
  background: #fff; border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 24px; margin-bottom: 16px;
}
.faq-card__inner { display: flex; align-items: flex-start; gap: 16px; }
.faq-card__q-mark {
  width: 28px; height: 28px; border-radius: 50%; background: var(--gold); color: var(--charcoal);
  display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 12px; flex-shrink: 0;
}
.faq-card__q { font-size: 15px; font-weight: 600; color: var(--charcoal); margin-bottom: 8px; }
.faq-card__a { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.caution-card {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--gold-soft); border: 1px solid oklch(0.88 0.02 80); border-radius: var(--radius-lg);
  padding: 24px;
}
.caution-card svg { color: oklch(0.60 0.12 78); flex-shrink: 0; margin-top: 2px; }
.caution-card h3 { font-size: 14px; color: oklch(0.35 0.08 78); margin-bottom: 8px; }
.caution-card p { font-size: 14px; color: oklch(0.45 0.06 78); line-height: 1.7; }

.sub-cta {
  background: var(--charcoal-mid); border-radius: var(--radius-lg); padding: 40px; text-align: center;
}
.sub-cta svg { color: var(--gold); margin: 0 auto 16px; }
.sub-cta h2 { font-size: clamp(22px, 3vw, 30px); color: #fff; margin-bottom: 12px; }
.sub-cta p { font-size: 14px; color: rgba(255,255,255,0.65); margin-bottom: 32px; line-height: 1.7; }
.sub-cta__btns { display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.sub-cta__note { margin-top: 16px; font-size: 12px; color: rgba(255,255,255,0.4); }

.sub-back { display: flex; justify-content: center; padding: 16px 0; }
.sub-back a { display: inline-flex; align-items: center; gap: 8px; color: var(--text-muted); font-size: 14px; font-weight: 500; }
.sub-back a:hover { opacity: .7; }

.sub-footer { background: var(--charcoal); padding: 32px 0; text-align: center; }
.sub-footer p { font-size: 12px; color: rgba(255,255,255,0.35); margin: 2px 0; }

@media (min-width: 768px) {
  .sub-hero { height: 384px; }
  .sub-two-col { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .sub-cta__btns { flex-direction: row; }
}

/* ---------- Compare Page Specific ---------- */
.law-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 9999px;
  background: color-mix(in oklch, var(--success) 15%, transparent);
  border: 1px solid color-mix(in oklch, var(--success) 35%, transparent);
  color: color-mix(in oklch, var(--success) 85%, white);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  margin-bottom: 20px;
}
.law-badge svg { color: inherit; }
.law-badge__sep { opacity: 0.5; margin: 0 2px; }

.compare-hero {
  padding: 64px 20px; background: var(--charcoal); text-align: center;
}
.compare-hero h1 { font-size: clamp(32px, 6vw, 56px); color: #fff; margin-bottom: 24px; }
.compare-hero h1 .gold { color: var(--gold); display: block; }
.compare-hero p { font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,0.65); line-height: 1.8; margin: 0 auto 40px; max-width: 640px; }
.compare-hero__btns { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.compare-summary { padding: 48px 20px; background: var(--bg-soft); }
.compare-summary__grid { max-width: 960px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 24px; }
.compare-summary__card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px; border: 2px solid var(--gold);
}
.compare-summary__card--blue { border-color: oklch(0.75 0.08 250); }
.compare-summary__card h2 { font-size: 22px; color: var(--charcoal); }
.compare-summary__desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin: 20px 0; }
.compare-summary__checks { display: flex; flex-direction: column; gap: 8px; }
.compare-summary__checks div { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--charcoal); }
.compare-summary__checks svg { flex-shrink: 0; margin-top: 2px; color: var(--gold); }
.compare-summary__card--blue .compare-summary__checks svg { color: oklch(0.55 0.08 250); }

.compare-table-wrap { padding: 64px 20px; background: #fff; max-width: 1040px; margin: 0 auto; }

/* 공통 서브섹션 헤더 — 비교 페이지 전 섹션(테이블/프로필/절차)에서 동일하게 사용 */
.sub-head { text-align: center; margin-bottom: 48px; max-width: 720px; margin-left: auto; margin-right: auto; }
.sub-head h2 { font-size: clamp(24px, 4vw, 36px); color: var(--charcoal); font-family: var(--font-serif); line-height: 1.3; margin: 0 0 12px; }
.sub-head p { font-size: 15px; color: var(--text-muted); line-height: 1.6; margin: 0; }
.compare-table { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-soft); }
.compare-table table { width: 100%; border-collapse: collapse; min-width: 700px; }
.compare-table thead tr { }
.compare-table th {
  padding: 16px 20px; font-size: 14px; font-weight: 700; text-align: center;
}
.compare-table th:nth-child(1) { background: var(--charcoal); color: rgba(255,255,255,0.5); text-align: left; }
.compare-table th:nth-child(2) { background: var(--gold); color: var(--charcoal); }
.compare-table th:nth-child(3) { background: oklch(0.35 0.08 250); color: #fff; }
.compare-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.compare-table td { padding: 20px; border-top: 1px solid var(--border-soft); font-size: 14px; color: var(--charcoal); vertical-align: top; }
.compare-table td:nth-child(1) { font-weight: 600; }
.compare-table td:nth-child(n+2) { border-left: 1px solid var(--border-soft); }
.compare-table td .cell { display: flex; align-items: flex-start; gap: 8px; }
.compare-table td .cell svg { flex-shrink: 0; margin-top: 2px; }
.compare-table .pos svg { color: var(--success); }
.compare-table .neg svg { color: oklch(0.60 0.12 25); }
.compare-table .cat-icon { color: var(--gold); margin-right: 8px; }

.compare-profiles { padding: 64px 20px; background: var(--bg-soft); }
.compare-profiles__grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 32px; }
.profile-card {
  background: #fff; border-radius: var(--radius-lg); padding: 32px;
  border: 2px solid var(--gold);
}
.profile-card--blue { border-color: oklch(0.75 0.08 250); }
.profile-card__head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.profile-card__icon {
  width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklch, var(--gold) 20%, transparent); color: var(--gold);
}
.profile-card--blue .profile-card__icon { background: color-mix(in oklch, oklch(0.75 0.08 250) 15%, transparent); color: oklch(0.35 0.08 250); }
.profile-card__head h3 { font-size: 18px; color: var(--charcoal); }
.profile-card ul { display: flex; flex-direction: column; gap: 12px; }
.profile-card li { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: var(--charcoal); }
.profile-card li::before {
  content: "✓"; flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; margin-top: 2px;
  background: var(--gold); color: var(--charcoal); display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}
.profile-card--blue li::before { background: oklch(0.45 0.08 250); color: #fff; }
.profile-card .btn { margin-top: 32px; width: 100%; }

.compare-steps { padding: 64px 20px; background: #fff; }
.compare-steps__grid { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr; gap: 32px; }
.compare-steps__col h3 {
  font-size: 18px; color: var(--charcoal); padding-bottom: 12px; margin-bottom: 24px;
  border-bottom: 2px solid var(--gold);
}
.compare-steps__col--blue h3 { border-color: oklch(0.55 0.08 250); }
.compare-step { display: flex; gap: 16px; margin-bottom: 16px; }
.compare-step__num-wrap { display: flex; flex-direction: column; align-items: center; }
.compare-step__num {
  width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: var(--charcoal);
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.compare-steps__col--blue .compare-step__num { background: oklch(0.45 0.08 250); color: #fff; }
.compare-step__line { width: 2px; flex: 1; margin-top: 4px; background: color-mix(in oklch, var(--gold) 40%, transparent); }
.compare-steps__col--blue .compare-step__line { background: color-mix(in oklch, oklch(0.75 0.08 250) 40%, transparent); }
.compare-step:last-child .compare-step__line { display: none; }
.compare-step__body p:first-child { font-size: 14px; font-weight: 600; color: var(--charcoal); }
.compare-step__body p:last-child { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

@media (min-width: 768px) {
  .compare-hero { padding: 96px 20px; }
  .compare-summary__grid { grid-template-columns: 1fr 1fr; }
  .compare-profiles__grid { grid-template-columns: 1fr 1fr; }
  .compare-steps__grid { grid-template-columns: 1fr 1fr; }
}

/* 모바일 (< 768px): 비교 테이블을 카드형으로 리플로우
   기존 3-column 그리드 → 행별로 "항목명 / 개인회생 / 개인파산" 수직 스택 */
@media (max-width: 767px) {
  .compare-table { border: none; border-radius: 0; }
  .compare-table table,
  .compare-table thead,
  .compare-table tbody,
  .compare-table tr,
  .compare-table td,
  .compare-table th { display: block; width: 100%; }
  .compare-table table { min-width: 0; }
  /* 테이블 헤더는 숨기고, 각 행이 하나의 카드 */
  .compare-table thead { display: none; }
  .compare-table tbody tr {
    background: #fff; border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg); margin-bottom: 12px; padding: 4px 0;
    box-shadow: var(--shadow-sm);
  }
  .compare-table tbody tr:nth-child(even) { background: #fff; }
  .compare-table td {
    border-top: none !important;
    border-left: none !important;
    padding: 14px 18px !important;
  }
  /* 첫번째 셀: 항목명 (헤더 역할) */
  .compare-table td:nth-child(1) {
    font-weight: 700; font-size: 15px; color: var(--charcoal);
    background: var(--bg-soft); border-bottom: 1px solid var(--border-soft);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  }
  /* 2, 3번째 셀: 전/후 라벨 */
  .compare-table td:nth-child(2)::before,
  .compare-table td:nth-child(3)::before {
    content: attr(data-label);
    display: inline-block;
    padding: 2px 10px;
    border-radius: 9999px;
    font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
    margin-right: 10px;
    vertical-align: middle;
  }
  .compare-table td:nth-child(2)::before {
    background: var(--gold); color: var(--charcoal);
  }
  .compare-table td:nth-child(3)::before {
    background: oklch(0.35 0.08 250); color: #fff;
  }
  .compare-table td:nth-child(2) { border-bottom: 1px dashed var(--border-soft) !important; }
  .compare-table td .cell { display: inline-flex; vertical-align: middle; }
}

/* ==========================================================================
   404
   ========================================================================== */
.notfound {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--charcoal); color: #fff; text-align: center; padding: 32px;
}
.notfound h1 { font-size: 96px; color: var(--gold); margin-bottom: 8px; }
.notfound h2 { font-size: 28px; color: #fff; margin-bottom: 16px; }
.notfound p { font-size: 16px; color: rgba(255,255,255,0.6); margin-bottom: 32px; }

/* ==========================================================================
   NAVER FRAUD CLICK GUARD (부정클릭 방지 UI)
   ========================================================================== */
/* 2회차 팝업 */
.fraud-popup { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fraud-popup[hidden] { display: none; }
.fraud-popup__backdrop { position: absolute; inset: 0; background: rgba(8,8,20,0.72); backdrop-filter: blur(4px); cursor: pointer; }
.fraud-popup__panel {
  position: relative; background: #fff; width: 100%; max-width: 480px;
  border-radius: var(--radius-lg); padding: 40px 32px 32px;
  box-shadow: var(--shadow-xl);
  text-align: center;
  animation: fraud-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes fraud-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fraud-popup__close {
  position: absolute; top: 12px; right: 12px; width: 36px; height: 36px;
  border-radius: 50%; font-size: 24px; color: var(--text-muted);
  transition: background .2s;
}
.fraud-popup__close:hover { background: var(--bg-soft); }
.fraud-popup__icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: color-mix(in oklch, var(--gold) 15%, transparent); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.fraud-popup__title {
  font-family: var(--font-serif); font-size: 22px; color: var(--charcoal); margin-bottom: 12px;
}
.fraud-popup__body {
  font-size: 15px; color: var(--text-body); line-height: 1.7; margin-bottom: 24px;
}
.fraud-popup__hotkey {
  display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: center;
  padding: 14px 20px; background: var(--bg-soft); border: 1px solid var(--border-soft);
  border-radius: var(--radius); margin-bottom: 24px; font-size: 14px; color: var(--text-body);
}
.fraud-popup__hotkey-label { font-weight: 600; margin-right: 4px; }
.fraud-popup__hotkey-sep { color: var(--text-muted); margin: 0 4px; }
.fraud-popup__hotkey kbd {
  display: inline-block; padding: 3px 8px; font-family: ui-monospace, monospace; font-size: 13px;
  font-weight: 700; color: var(--charcoal); background: #fff;
  border: 1px solid var(--border-mid); border-bottom-width: 2px;
  border-radius: 4px;
}

/* 3회차+ 전체화면 블록 */
.fraud-block {
  position: fixed; inset: 0; z-index: 10001; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--charcoal);
  color: #fff;
}
.fraud-block[hidden] { display: none; }
.fraud-block__inner {
  max-width: 560px; text-align: center;
}
.fraud-block__icon {
  width: 96px; height: 96px; margin: 0 auto 24px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: color-mix(in oklch, var(--gold) 10%, transparent);
  color: var(--gold);
}
.fraud-block__title {
  font-family: var(--font-serif); font-size: clamp(24px, 4vw, 36px);
  color: #fff; margin-bottom: 16px; line-height: 1.3;
}
.fraud-block__body {
  font-size: 16px; color: rgba(255,255,255,0.75); line-height: 1.8; margin-bottom: 32px;
}
.fraud-block__steps {
  list-style: decimal; text-align: left; padding-left: 24px; margin-bottom: 32px;
  color: rgba(255,255,255,0.85); font-size: 15px; line-height: 1.8;
}
.fraud-block__steps li { padding: 6px 0; }
.fraud-block__steps li + li { border-top: 1px solid rgba(255,255,255,0.08); }
.fraud-block__steps span { color: rgba(255,255,255,0.5); font-size: 13px; }
.fraud-block__steps kbd {
  display: inline-block; padding: 2px 7px; font-family: ui-monospace, monospace; font-size: 12px;
  font-weight: 700; color: #fff; background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18); border-radius: 3px;
}
.fraud-block__tel {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 18px 36px; border-radius: 9999px;
  background: var(--gold); color: var(--charcoal);
  font-family: var(--font-serif); font-size: 22px; font-weight: 700;
  transition: transform .25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow .25s;
}
.fraud-block__tel:hover { transform: translateY(-2px); box-shadow: var(--shadow-xl); }
.fraud-block__note {
  margin-top: 20px; font-size: 13px; color: rgba(255,255,255,0.45);
}

/* ---------- Print ---------- */
@media print {
  .navbar, .side-menu, .floating-cta, .modal, .fraud-popup, .fraud-block { display: none !important; }
}
