/* ===== 디자인 토큰 ===== */
/* 로고 PNG 실측: 네이비 #22305E(심볼 C·워드마크), 블루 #1371B9(체크 표시).
   발주 메모에는 그린+골드가 제안돼 있었지만 로고에 그린이 전혀 없어 로고 톤을 따른다.
   골드는 사무실 사인(브론즈 'CHOWON' 레터링)에서 가져온 포인트색이다.

   색상 조합 원칙
   - 네이비: 구조(다크 섹션·푸터·제목)
   - 골드(--gold-500): 주행동 CTA 배경, 다크 섹션의 장식선·아이브로우
     ⚠ 골드 위 흰 글씨는 3:1 미만이라 쓰지 않는다. 골드 버튼 글씨는 --navy-900(5.3:1).
   - 골드 텍스트가 흰 배경에 올 때는 --gold-700(#7D5F2E, 5.6:1)만 쓴다.
   - 블루(--blue-600, 흰 배경 4.9:1): 링크·포커스·카드 태그 등 보조 강조. */
:root {
  --navy-900:#16213F;
  --navy-800:#1C2A50;
  --navy-700:#22305E;
  --blue-600:#1371B9;
  --gold-300:#D9BF8C;
  --gold-500:#B08D57;
  --gold-600:#9C7A45;
  --gold-700:#7D5F2E;
  --ink:#1A1F2B;
  --ink-600:#3D4558;
  --gray-50:#F4F5F8;
  --gray-200:#E2E5EC;
  --gray-500:#8B93A5; /* 비텍스트 경계선 전용(흰 배경 3.2:1) */
  --white:#FFFFFF;
  --hero-top:#DCE0E1;
  --hero-bottom:#C4C8C9;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
          "Malgun Gothic", "맑은 고딕", sans-serif;
  --maxw: 1200px;
  --pad: 20px;
  --radius: 10px;
  --shadow: 0 6px 24px rgba(22,33,63,.10);
  --topbar-h: 60px; /* ≤900px 고정 헤더 높이(테두리 제외) */
  --bar-h: 60px;    /* ≤900px 하단 고정 바 높이 */
}

/* ===== 리셋 ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--white);
  word-break: keep-all;
  overflow-wrap: break-word;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 4.2vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.375rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.3125rem); }
p { margin: 0 0 1em; }
.num { font-variant-numeric: tabular-nums; }
.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;
}
.skip { position: absolute; left: 8px; top: -60px; z-index: 1000; padding: 10px 16px; background: var(--navy-900); color: var(--white); border-radius: 6px; }
.skip:focus { top: 8px; }

/* ===== 레이아웃 유틸 ===== */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.section { padding-block: clamp(64px, 8vw, 112px); }
.section--dark { background: var(--navy-900); color: var(--white); }
.section--muted { background: var(--gray-50); }
.section__eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold-700); margin-bottom: .75rem;
}
.section__eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.section--dark .section__eyebrow { color: var(--gold-300); }
.lead { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); max-width: 62ch; color: var(--ink-600); }
.section--dark .lead { color: rgba(255,255,255,.84); }
/* 강조 한 줄(변호사 소개·상담 섹션). 흰 배경은 gold-700, 어두운 배경은 gold-300. */
.promise { font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); font-weight: 800; color: var(--gold-700); margin: .75rem 0 0; }
.section--dark .promise, .consult .promise { color: var(--gold-300); }
.consult .promise { margin: 0 0 .75rem; }

.intro { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.intro__body > :last-child { margin-bottom: 0; }
.intro__figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* ===== 버튼 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 54px; padding: 0 26px; border: 0; border-radius: var(--radius);
  font-family: inherit; font-size: 1.0625rem; font-weight: 700;
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, transform .18s ease;
}
.btn--primary { background: var(--gold-500); color: var(--navy-900); }
.btn--primary:hover { background: var(--gold-300); }
.btn--ghost { background: var(--white); color: var(--navy-900); box-shadow: inset 0 0 0 2px var(--navy-900); }
.btn--ghost:hover { background: var(--gray-50); }
.btn[hidden] { display: none; }
.btn:focus-visible,
.accordion__trigger:focus-visible,
.casefilter__btn:focus-visible,
.case__thumb:focus-visible,
.certs__btn:focus-visible,
.topbar a:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; }
.section--dark .btn:focus-visible { outline-color: var(--gold-300); }

/* ===== 접근성 ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: .001ms !important;
  }
}

/* ===== 상단 바 ===== */
.topbar { background: var(--white); border-bottom: 1px solid var(--gray-200); }
.topbar__inner { display: flex; align-items: center; gap: 24px; min-height: 64px; }
.topbar__brand img { width: 162px; height: auto; }
.topbar__nav { display: flex; gap: 22px; margin-left: auto; font-size: .9375rem; font-weight: 600; }
.topbar__nav a { text-decoration: none; color: var(--ink-600); }
.topbar__nav a:hover { color: var(--navy-900); }
/* 전화번호 자리(2026-10-23까지 .topbar__tel)를 상담 신청 폼 이동 버튼으로 바꿨다. */
.topbar__cta {
  font-weight: 800; text-decoration: none; color: var(--navy-900); white-space: nowrap;
  padding: 8px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--navy-900);
}
@media (max-width: 900px) {
  .topbar__nav { display: none; }
  .topbar__cta { margin-left: auto; }
}
@media (max-width: 400px) {
  .topbar__brand img { width: 136px; }
  .topbar__cta { font-size: .875rem; padding: 6px 10px; }
}

/* ===== (1) HERO ===== */
/* 사진 배경(스튜디오 회색)과 같은 톤의 세로 그라디언트를 깔고, 사진 좌측 경계를
   그 색으로 흘려 이어붙인 티를 없앤다. 글자는 네이비 계열(배경 대비 10:1 이상). */
.hero {
  position: relative; overflow: hidden; color: var(--navy-900);
  background: linear-gradient(180deg, var(--hero-top) 0%, var(--hero-bottom) 100%);
  min-height: min(86vh, 760px); display: flex; align-items: center;
}
.hero__media { position: absolute; inset: 0 0 0 54%; z-index: 0; margin: 0; display: block; }
/* 원본 2:3 입식. 얼굴 중심은 가로 50%·세로 17% 지점이라 상단 기준으로 맞춘다. */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 8%; }
/* 색 오버레이 대신 마스크로 사진 자체를 투명하게 흘린다. 히어로 배경이 세로 그라디언트라
   한 가지 색으로 덮으면 높이에 따라 경계가 보인다(1440px 실측). */
.hero__media { -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 24%); mask-image: linear-gradient(90deg, transparent 0%, #000 24%); }
.hero__inner { position: relative; z-index: 2; padding-block: clamp(56px, 8vw, 120px); }
.hero__copy { max-width: 52%; }
.hero__eyebrow { font-size: .9375rem; font-weight: 700; letter-spacing: .06em; color: var(--gold-700); margin-bottom: 1rem; }
.hero__title { margin-bottom: 1.25rem; text-wrap: balance; }
.nb { white-space: nowrap; }
.hero__sub { font-size: clamp(1.0625rem, 1.7vw, 1.25rem); max-width: 40ch; color: var(--ink-600); }
/* 광고주 10/16 "이거 좀 더 강조": 핵심 문장은 줄을 바꿔 굵게, 금색 형광펜 밑줄 */
.hero__key { display: block; margin-top: .55em; }
.hero__key strong {
  font-weight: 800; color: var(--navy-900);
  background: linear-gradient(transparent 60%, rgba(217,191,140,.6) 60%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.hero__badges { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.hero__badges li {
  padding: 7px 14px; border-radius: 999px; font-size: .9375rem; font-weight: 700;
  background: var(--navy-900); color: var(--white);
}
.hero__badges li:first-child { background: var(--white); color: var(--navy-900); box-shadow: inset 0 0 0 1.5px var(--gold-500); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }

@media (max-width: 900px) {
  .hero { align-items: flex-start; min-height: 0; }
  .hero__media { inset: 0 0 0 40%; }
  /* 가로값이 작을수록 얼굴(원본 가로 50%)이 칼럼 오른쪽으로 간다. 헤드라인과 겹치지 않게 25%. */
  .hero__media img { object-position: 25% 0; }
  .hero__media { -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 30%, #000 62%); mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.45) 30%, #000 62%); }
  .hero__copy { max-width: 100%; }
  .hero__eyebrow, .hero__title, .hero__sub { max-width: 66%; }
  .hero__inner { padding-block: 40px 44px; }
}
@media (max-width: 560px) {
  :root { --pad: 16px; }
  .hero__title { font-size: 1.625rem; max-width: 64%; }
  .hero__sub { font-size: 1rem; max-width: 64%; }
  .hero__badges li { font-size: .8125rem; padding: 6px 12px; }
  .hero__cta .btn { flex: 1 1 100%; }
}

/* ===== (2) 자가진단 ===== */
.check h2 { max-width: 24ch; }
.checklist { border: 0; margin: 2.25rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.checklist__item {
  display: flex; align-items: flex-start; gap: 14px; cursor: pointer;
  padding: 18px 20px; border-radius: var(--radius);
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.16);
  transition: background-color .18s ease, box-shadow .18s ease;
}
.checklist__item:hover { background: rgba(255,255,255,.09); }
.checklist__item input {
  flex: none; width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--gold-500); cursor: pointer;
}
.checklist__item strong { color: var(--gold-300); }
.checklist__item:has(input:checked) { background: rgba(176,141,87,.18); box-shadow: inset 0 0 0 1.5px var(--gold-500); }
.checklist__item:focus-within { outline: 3px solid var(--gold-300); outline-offset: 2px; }
.check__result {
  margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px;
  padding: 22px 24px; border-radius: var(--radius); background: var(--navy-800);
  box-shadow: inset 0 0 0 1px rgba(217,191,140,.35);
}
.check__msg { flex: 1 1 320px; margin: 0; font-weight: 600; color: var(--white); }
.check__msg strong { color: var(--gold-300); }
@media (max-width: 700px) { .checklist { grid-template-columns: 1fr; } .check__result .btn { width: 100%; } }

/* ===== (3) 상황별 대응 ===== */
.cards { display: grid; gap: 20px; margin: 2.75rem 0; }
.cards--4 { grid-template-columns: repeat(2, 1fr); }
.card {
  padding: 30px 28px; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--gray-200);
  border-top: 4px solid var(--navy-700);
}
.card__tag { display: inline-block; font-size: .8125rem; font-weight: 700; color: var(--blue-600); margin-bottom: .5rem; }
.card h3 { color: var(--navy-900); }
.card > p:not(.card__tag) { color: var(--ink-600); }
.card__points { list-style: none; padding: 0; margin: 0; }
.card__points li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--gray-200); color: var(--ink-600); font-size: .9688rem; }
.card__points li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 9px; height: 5px; border-left: 2px solid var(--gold-600); border-bottom: 2px solid var(--gold-600);
  transform: rotate(-45deg);
}

.law { padding: clamp(22px, 3vw, 32px); border-radius: var(--radius); background: var(--gray-50); }
/* 표는 360px에서 가로 스크롤 대신 행을 카드처럼 쌓는다(아래 미디어쿼리). */
.lawtable { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.lawtable caption { text-align: left; font-weight: 800; font-size: 1.0625rem; padding-bottom: .75rem; color: var(--navy-900); }
.lawtable th, .lawtable td { border: 1px solid var(--gray-200); padding: 10px 12px; text-align: left; vertical-align: top; background: var(--white); }
.lawtable thead th { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
.lawtable tbody th { font-weight: 700; color: var(--navy-900); white-space: nowrap; }
.lawtable__src { margin: .75rem 0 0; font-size: .8125rem; color: var(--ink-600); }
@media (max-width: 700px) {
  .lawtable, .lawtable tbody, .lawtable tr, .lawtable th, .lawtable td { display: block; width: 100%; }
  .lawtable thead { display: none; }
  .lawtable caption { display: block; width: 100%; }
  .lawtable tr { margin-bottom: 12px; }
  .lawtable tbody th { background: var(--navy-900); color: var(--white); border-color: var(--navy-900); }
  .lawtable td::before { display: block; font-size: .8125rem; font-weight: 700; color: var(--gold-700); }
  .lawtable td:nth-of-type(1)::before { content: "처음 적발"; }
  .lawtable td:nth-of-type(2)::before { content: "10년 내 재범"; }
  /* rowspan 셀은 첫 행에만 있어 둘째 행의 첫 td가 '처음 적발'로 정확히 붙는다.
     첫 행의 rowspan td는 '10년 내 재범'(0.03~0.2% 공통) 값이다. */
  .lawtable td[rowspan]::before { content: "10년 내 재범 (0.03% 이상 0.2% 미만 공통)"; }
}

@media (max-width: 900px) {
  .intro { grid-template-columns: 1fr; }
  .cards--4 { grid-template-columns: 1fr; }
}

/* ===== (4) 대표변호사 ===== */
.lawyer__grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.lawyer__figure { margin: 0; position: sticky; top: 24px; border-radius: var(--radius); overflow: hidden; background: #D5D9DB; box-shadow: var(--shadow); }
.lawyer__figure figcaption {
  padding: 14px 20px; background: var(--navy-900); color: var(--white); font-size: 1.25rem; font-weight: 800;
}
.lawyer__figure figcaption span { font-size: .9375rem; font-weight: 600; color: var(--gold-300); margin-left: 6px; }
.profile { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 32px; margin: 2rem 0; }
.profile h3 { font-size: 1rem; color: var(--gold-700); margin: 1rem 0 .4rem; letter-spacing: .02em; }
.profile__col > h3:first-child { margin-top: 0; }
.profile ul { list-style: none; padding: 0; margin: 0; }
.profile li { padding: 5px 0 5px 14px; position: relative; font-size: .9688rem; color: var(--ink-600); }
.profile li::before { content: ""; position: absolute; left: 0; top: 16px; width: 5px; height: 5px; border-radius: 50%; background: var(--navy-700); }
.profile__col:first-child li:first-child { color: var(--navy-900); font-weight: 700; }
.certs__title { font-size: 1.0625rem; margin-top: 2.5rem; }
.certs__title span { font-size: .875rem; font-weight: 500; color: var(--ink-600); }
.certs { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.certs__btn {
  width: 100%; padding: 8px; border: 0; border-radius: 8px; cursor: zoom-in;
  background: var(--white); box-shadow: inset 0 0 0 1px var(--gray-200);
  font: inherit; font-size: .8125rem; font-weight: 600; color: var(--ink-600); line-height: 1.4;
  display: flex; flex-direction: column; gap: 8px; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease;
}
.certs__btn:hover { transform: translateY(-2px); box-shadow: var(--shadow), inset 0 0 0 1px var(--gold-500); }
.certs__btn img { width: 100%; aspect-ratio: 320 / 453; object-fit: cover; object-position: top; border-radius: 4px; }
.certs li:first-child .certs__btn { box-shadow: inset 0 0 0 2px var(--gold-500); color: var(--navy-900); }
@media (max-width: 900px) {
  .lawyer__grid { grid-template-columns: 1fr; }
  .lawyer__figure { position: static; max-width: 380px; margin-inline: auto; } /* 1열일 때 사진 가운데(10/16) */
  .certs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .profile { grid-template-columns: 1fr; }
  .certs { grid-template-columns: repeat(2, 1fr); }
}

/* ===== (5) 전담팀 ===== */
.team { list-style: none; padding: 0; margin: 2.75rem 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.team__member {
  border-radius: var(--radius); overflow: hidden; background: var(--white);
  box-shadow: var(--shadow), inset 0 0 0 1px var(--gray-200);
  display: flex; flex-direction: column;
}
.team__member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; background: #DADDE0; }
.team__body { padding: 20px 20px 22px; }
.team__role { font-size: .8125rem; font-weight: 700; color: var(--blue-600); margin-bottom: .25rem; }
.team__body h3 { font-size: 1.25rem; margin-bottom: .6rem; }
.team__body h3 span { font-size: .875rem; font-weight: 600; color: var(--ink-600); margin-left: 4px; }
.team__body ul { list-style: none; padding: 0; margin: 0; font-size: .875rem; color: var(--ink-600); }
.team__body li { padding: 4px 0; border-top: 1px solid var(--gray-200); }
@media (max-width: 1024px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .team { grid-template-columns: 1fr; }
  .team__member { flex-direction: row; }
  .team__member picture { flex: 0 0 38%; }
  .team__member img { height: 100%; aspect-ratio: auto; }
  .team__body { padding: 16px; }
}

/* ===== (6) 성공사례 ===== */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 2.25rem 0 0; }
.stat {
  padding: 24px 20px; border-radius: var(--radius); text-align: center;
  background: var(--navy-900); color: var(--white);
}
.stat__num { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; line-height: 1; color: var(--gold-300); }
.stat__unit { font-size: clamp(1.125rem, 2vw, 1.5rem); font-weight: 800; margin-left: 2px; color: var(--gold-300); }
.stat__label { display: block; margin-top: 10px; font-size: .9375rem; line-height: 1.5; color: rgba(255,255,255,.84); }

.casefilter { display: flex; flex-wrap: wrap; gap: 8px; margin: 2rem 0 1.5rem; }
.casefilter__btn {
  padding: 9px 18px; border: 0; border-radius: 999px; cursor: pointer;
  font: inherit; font-size: .9375rem; font-weight: 600;
  background: var(--white); color: var(--ink-600); box-shadow: inset 0 0 0 1px var(--gray-500);
  transition: background-color .18s ease, color .18s ease;
}
.casefilter__btn .num { font-size: .8125rem; opacity: .75; margin-left: 2px; }
.casefilter__btn.is-active { background: var(--navy-900); color: var(--white); box-shadow: none; }

.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.case {
  display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--white); box-shadow: var(--shadow), inset 0 0 0 1px var(--gray-200);
}
.case--hidden { display: none; }
.case__thumb {
  display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in; background: var(--gray-50);
  aspect-ratio: 4 / 3; overflow: hidden; position: relative;
}
/* 문서 상단(법원명·사건명·주문)이 보이도록 위쪽을 기준으로 자른다 */
.case__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .3s ease; }
.case__thumb:hover img { transform: scale(1.03); }
.case__thumb::after {
  content: "크게 보기"; position: absolute; right: 10px; bottom: 10px;
  padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  background: rgba(22,33,63,.86); color: var(--white);
}
.case__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.case__badge {
  align-self: flex-start; padding: 4px 11px; border-radius: 6px;
  background: var(--navy-900); color: var(--gold-300);
  font-size: .8125rem; font-weight: 800;
}
.case__title { font-size: 1.0625rem; margin: 4px 0 0; color: var(--navy-900); }
.case__detail { margin: 0; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.case__doc { margin: auto 0 0; font-size: .8125rem; color: var(--ink-600); }
.cases__more { display: flex; justify-content: center; margin-top: 2rem; }
.disclaimer { margin: 1.75rem 0 0; font-size: .875rem; color: var(--ink-600); }
@media (max-width: 1024px) { .cases { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .stats { grid-template-columns: 1fr; }
  .stat { display: grid; grid-template-columns: auto auto 1fr; align-items: baseline; text-align: left; gap: 0 4px; padding: 16px 18px; }
  .stat__label { margin: 0 0 0 12px; }
  .cases { grid-template-columns: 1fr; }
}

/* ===== (7) 진행 절차 ===== */
.process { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: none; }
.process__step {
  position: relative; padding: 24px 20px; border-radius: var(--radius);
  background: var(--white); box-shadow: inset 0 0 0 1px var(--gray-200);
}
.process__no { display: block; font-size: .875rem; font-weight: 800; color: var(--gold-700); margin-bottom: 8px; }
.process__step h3 { font-size: 1.0625rem; color: var(--navy-900); }
.process__step p { margin: 0; font-size: .9375rem; color: var(--ink-600); }
@media (max-width: 1024px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .process { grid-template-columns: 1fr; } }

/* ===== (8) FAQ ===== */
.faq__grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq__intro { position: sticky; top: 24px; }
.accordion { border-top: 1px solid var(--gray-200); }
.accordion__item { border-bottom: 1px solid var(--gray-200); }
.accordion__head { margin: 0; font-size: 1.0625rem; }
.accordion__trigger {
  width: 100%; display: flex; align-items: flex-start; gap: 14px;
  padding: 20px 4px; background: none; border: 0; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--navy-900); text-align: left; line-height: 1.5;
}
.accordion__no { color: var(--gold-700); flex: none; }
.accordion__title { flex: 1; }
.accordion__icon { flex: none; width: 14px; height: 14px; position: relative; margin-top: 6px; }
.accordion__icon::before, .accordion__icon::after {
  content: ""; position: absolute; background: var(--navy-900); transition: transform .2s ease;
}
.accordion__icon::before { inset: 6px 0; height: 2px; }
.accordion__icon::after { inset: 0 6px; width: 2px; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: scaleY(0); }
.accordion__panel { padding: 0 4px 22px 42px; color: var(--ink-600); }
.accordion__panel p { margin: 0; }
.accordion__panel[hidden] { display: none; }
@media (max-width: 900px) {
  .faq__grid { grid-template-columns: 1fr; }
  .faq__intro { position: static; }
  .accordion__panel { padding-left: 4px; }
}

/* ===== (9) 상담 폼 ===== */
.consult { position: relative; overflow: hidden; background: var(--navy-900); color: var(--white); }
.consult__bg { position: absolute; inset: 0; z-index: 0; }
.consult__bg img { width: 100%; height: 100%; object-fit: cover; }
/* 장식 배경. 오버레이를 .92 이상으로 둬 흰 글씨 대비를 사진 밝기와 무관하게 확보한다. */
.consult::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(22,33,63,.93); }
.consult__inner { position: relative; z-index: 2; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.consult .section__eyebrow { color: var(--gold-300); }
.consult .lead { color: rgba(255,255,255,.84); }
.consult__info { margin: 1.75rem 0 0; font-size: .9375rem; color: rgba(255,255,255,.78); }
.consult__info div { display: grid; grid-template-columns: 80px 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.14); }
.consult__info dt { font-weight: 700; color: var(--white); }
.consult__info dd { margin: 0; }

.cform { background: var(--white); color: var(--ink); padding: clamp(22px, 4vw, 34px); border-radius: var(--radius); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.cform__row { margin: 0 0 18px; }
.cform label, .cform legend { display: block; font-weight: 700; font-size: .9375rem; margin-bottom: 8px; }
.cform label > span[aria-hidden], .cform legend > span[aria-hidden] { color: #B3261E; }
.cform small { font-weight: 500; color: var(--ink-600); font-size: .8125rem; }
.cform input[type="text"], .cform input[type="tel"], .cform select, .cform textarea {
  width: 100%; min-height: 50px; padding: 0 14px;
  border: 1px solid var(--gray-500); border-radius: 8px;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
}
.cform textarea { padding: 12px 14px; min-height: 88px; resize: vertical; line-height: 1.6; }
.cform input:focus-visible, .cform select:focus-visible, .cform textarea:focus-visible {
  outline: 3px solid var(--blue-600); outline-offset: 1px; border-color: var(--blue-600);
}
.cform__row--half { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cform__group { border: 0; padding: 0; min-width: 0; }
.cform__group:focus { outline: none; }
.cform__group.is-invalid .cform__chips { outline: 2px solid #B3261E; outline-offset: 4px; border-radius: 8px; }
.cform__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex !important; margin: 0 !important; cursor: pointer; font-weight: 600 !important; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-block; padding: 8px 13px; border-radius: 999px; font-size: .875rem;
  box-shadow: inset 0 0 0 1px var(--gray-500); color: var(--ink-600); transition: background-color .15s ease;
}
.chip input:checked + span { background: var(--navy-900); color: var(--white); box-shadow: none; }
.chip input:focus-visible + span { outline: 3px solid var(--blue-600); outline-offset: 2px; }
.cform .is-invalid:not(fieldset) { border-color: #B3261E; background: #FFF6F5; }
.cform__error { display: block; margin-top: 6px; font-size: .875rem; color: #B3261E; font-weight: 600; }

.cform__consent { margin: 20px 0; padding: 16px; background: var(--gray-50); border-radius: 8px; }
.cform__consent input { width: 20px; height: 20px; vertical-align: -4px; margin: 0 8px 0 0; accent-color: var(--navy-900); }
.cform__consent label { display: inline; font-size: .9375rem; }
.cform__policy { margin-top: 10px; font-size: .8125rem; color: var(--ink-600); }
.cform__policy summary { cursor: pointer; font-weight: 600; }
.cform__policy p { margin: .6em 0 0; }
.cform__hp {
  position: absolute !important;
  width: 1px !important; height: 1px !important; min-height: 0 !important;
  padding: 0 !important; border: 0 !important;
  margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.cform__submit { width: 100%; }
.cform__submit[disabled] { opacity: .6; cursor: progress; }
.cform__status { margin-top: 14px; font-size: .9375rem; min-height: 1.5em; }
.cform__status.is-ok { color: #1B6E3A; font-weight: 700; }
.cform__status.is-error { color: #B3261E; font-weight: 700; }
.cform__status a { color: inherit; }
@media (max-width: 900px) { .consult__inner { grid-template-columns: 1fr; } }
@media (max-width: 400px) { .cform__row--half { grid-template-columns: 1fr; } }

/* ===== FOOTER ===== */
.footer { background: #0F172E; color: rgba(255,255,255,.76); padding-block: clamp(48px, 6vw, 72px) 32px; font-size: .9375rem; }
.footer a { color: rgba(255,255,255,.92); }
.footer__grid { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 32px; }
.footer__brand img { width: 216px; height: auto; margin-bottom: 12px; }
.footer__lead { margin: 0; }
.footer__head { font-size: .875rem; font-weight: 700; letter-spacing: .1em; color: var(--gold-300); margin-bottom: .75em; }
.footer__col p { margin: 0 0 .4em; }
.footer__legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.16); font-size: .8125rem; color: rgba(255,255,255,.62); }
.footer__legal strong { color: rgba(255,255,255,.9); }
.footer__links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer__copy { margin: 0; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr; } }

/* ===== 플로팅 ===== */
.floating { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: flex; flex-direction: column; gap: 10px; }
.floating__btn {
  width: 58px; height: 58px; border: 0; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font: inherit; font-size: .8125rem; font-weight: 800; text-decoration: none;
  box-shadow: 0 4px 16px rgba(22,33,63,.28);
  transition: transform .18s ease;
}
.floating__btn:hover { transform: translateY(-2px); }
.floating__btn:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 3px; }
.floating__btn--top { background: var(--white); color: var(--navy-900); box-shadow: 0 4px 16px rgba(22,33,63,.24), inset 0 0 0 1px var(--gray-500); }
.floating__btn--top[hidden] { display: none; }
/* PC 원형 버튼에서는 '상담 신청'이 두 줄로 접힌다. */
.floating__btn--consult { background: var(--gold-500); color: var(--navy-900); text-align: center; line-height: 1.25; padding: 0 8px; }

.floating__more { display: none; }

/* ≤900px: 하단 상담 신청 바(한 칸 꽉 차게, 2026-10-23 전화·카톡 칸 삭제). 맨 위로 버튼은 바 위에 띄운다.
   (이전에는 ≤560px만 바였고 561~900px은 원형 버튼이 본문 오른쪽 끝을 가렸다.)
   푸터 하단 여백 = 바 높이 + 홈 인디케이터 영역이라 푸터 마지막 줄이 바에 가리지 않는다.
   상담 폼이 화면에 보이거나 폼 입력 중이면 main.js가 .is-off를 붙여 바를 내린다. */
@media (max-width: 900px) {
  .floating {
    left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0;
    padding-bottom: env(safe-area-inset-bottom); background: var(--navy-900);
    box-shadow: 0 -4px 16px rgba(22,33,63,.18);
    transition: transform .25s ease, visibility .25s ease;
  }
  .floating.is-off { transform: translateY(calc(100% + 72px)); visibility: hidden; }
  .floating__btn {
    flex: 1; width: auto; height: var(--bar-h); border-radius: 0; font-size: 1rem; gap: 6px;
    box-shadow: none;
  }
  .floating__more { display: inline; }
  .floating__btn:hover { transform: none; }
  .floating__btn--top {
    position: absolute; right: 12px; bottom: calc(100% + 12px); flex: none; width: 44px; height: 44px; border-radius: 50%;
    box-shadow: 0 4px 16px rgba(22,33,63,.24), inset 0 0 0 1px var(--gray-500);
  }
  /* 바 높이만큼의 여백은 body가 아니라 푸터 안쪽에 둔다. 바가 숨었을 때 흰 띠가 보이지 않게. */
  .footer { padding-bottom: calc(32px + var(--bar-h) + env(safe-area-inset-bottom)); }
}

/* ===== 라이트박스 ===== */
.lightbox { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 56px 12px 24px; }
.lightbox[hidden] { display: none; }
.lightbox__backdrop { position: absolute; inset: 0; background: rgba(10,15,30,.9); }
.lightbox__frame { position: relative; margin: 0; max-width: min(966px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 120px); width: auto; height: auto; background: var(--white); border-radius: 4px; }
.lightbox__cap { margin-top: 10px; color: rgba(255,255,255,.88); font-size: .9375rem; text-align: center; }
.lightbox__btn {
  position: absolute; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.14); color: var(--white); font-size: 1.75rem; line-height: 1;
}
.lightbox__btn:hover { background: rgba(255,255,255,.26); }
.lightbox__btn:focus-visible { outline: 3px solid var(--gold-300); outline-offset: 2px; }
.lightbox__close { top: 8px; right: 8px; font-size: 1.25rem; }
.lightbox__prev { left: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__next { right: 8px; top: 50%; transform: translateY(-50%); }
.lightbox__btn[hidden] { display: none; }
body.is-locked { overflow: hidden; }

/* ===== 등장 애니메이션 ===== */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* =====================================================================
   모바일 UX (광고주 요청: 모바일 레이아웃·메뉴·아코디언·CTA)
   원칙: ≥901px(PC)은 기존 화면 그대로. 아래 규칙은 전부 ≤900px / ≤768px / ≤560px 안에 있고,
   기본 상태(미디어쿼리 밖)에서는 새 요소를 숨기기만 한다.
   접기 버튼·메뉴 버튼은 HTML에 hidden으로 들어 있고 main.js가 모바일에서만 꺼낸다.
   JS가 없으면 버튼은 계속 숨고 내용은 전부 펼쳐진 채로 보인다.
   ===================================================================== */
.topbar__menu, .mnav, .midcta { display: none; }
.fold__btn[hidden], .process__toggle[hidden], .topbar__menu[hidden], .mnav[hidden] { display: none !important; }

/* 접기 아이콘(+/−) */
.fold__icon { flex: none; position: relative; width: 14px; height: 14px; }
.fold__icon::before, .fold__icon::after {
  content: ""; position: absolute; background: currentColor; transition: transform .2s ease;
}
.fold__icon::before { left: 0; right: 0; top: 6px; height: 2px; }
.fold__icon::after { top: 0; bottom: 0; left: 6px; width: 2px; }
[aria-expanded="true"] > .fold__icon::after { transform: scaleY(0); }

/* ---------- ≤900px: 고정 헤더 + 메뉴, 본문 중간 CTA ---------- */
@media (max-width: 900px) {
  /* 고정 헤더 높이만큼 앵커 이동 위치를 보정한다 */
  html { scroll-padding-top: calc(var(--topbar-h) + 12px); }
  .topbar { position: sticky; top: 0; z-index: 800; }
  .topbar__inner { min-height: var(--topbar-h); gap: 10px; }
  .topbar__brand img { width: 148px; }
  .topbar__menu {
    display: inline-flex; align-items: center; justify-content: center; flex: none;
    width: 44px; height: 44px; margin-right: -6px; padding: 0; border: 0; border-radius: 8px;
    background: none; color: var(--navy-900); cursor: pointer;
  }
  .topbar__menu:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 0; }
  .topbar__menu-icon, .topbar__menu-icon::before, .topbar__menu-icon::after {
    display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor;
    transition: transform .2s ease, background-color .2s ease;
  }
  .topbar__menu-icon { position: relative; }
  .topbar__menu-icon::before, .topbar__menu-icon::after { content: ""; position: absolute; left: 0; }
  .topbar__menu-icon::before { top: -7px; }
  .topbar__menu-icon::after { top: 7px; }
  .topbar__menu[aria-expanded="true"] .topbar__menu-icon { background: transparent; }
  .topbar__menu[aria-expanded="true"] .topbar__menu-icon::before { transform: translateY(7px) rotate(45deg); }
  .topbar__menu[aria-expanded="true"] .topbar__menu-icon::after { transform: translateY(-7px) rotate(-45deg); }

  .mnav {
    display: block; position: absolute; left: 0; right: 0; top: 100%;
    max-height: calc(100vh - var(--topbar-h)); overflow-y: auto;
    background: var(--white); border-top: 1px solid var(--gray-200);
    box-shadow: 0 16px 32px rgba(22,33,63,.18);
  }
  .mnav ul { list-style: none; margin: 0 auto; padding-block: 6px 14px; }
  .mnav li + li { border-top: 1px solid var(--gray-200); }
  .mnav a {
    display: flex; align-items: center; min-height: 52px;
    font-size: 1.0625rem; font-weight: 700; color: var(--navy-900); text-decoration: none;
  }
  .mnav a:focus-visible { outline: 3px solid var(--blue-600); outline-offset: -3px; }
  .mnav li:last-child { border-top: 0; padding-top: 10px; }
  .mnav .mnav__cta {
    justify-content: center; min-height: 54px; border-radius: var(--radius);
    background: var(--gold-500); color: var(--navy-900); font-weight: 800;
  }

  /* 본문 중간 상담 유도 블록 */
  .midcta {
    display: block; margin-top: 48px; padding: 30px 22px 24px; border-radius: var(--radius);
    background: var(--navy-900); color: var(--white);
    box-shadow: inset 0 0 0 1px rgba(217,191,140,.35);
  }
  .midcta__title { margin: 0 0 .5rem; font-size: 1.25rem; font-weight: 800; line-height: 1.45; }
  .midcta__text { margin: 0 0 1.25rem; color: rgba(255,255,255,.84); }
  .midcta__btns { display: grid; grid-template-columns: 1fr; gap: 10px; }
  .midcta .btn { padding-inline: 12px; }
  .midcta .btn:focus-visible { outline-color: var(--gold-300); }
}
@media (max-width: 400px) {
  .topbar__brand img { width: 128px; }
}

/* ---------- ≤768px: 타이포·여백·아코디언 ---------- */
@media (max-width: 768px) {
  body { line-height: 1.8; }
  /* 섹션 상하 여백, 제목-본문 간격 확대 */
  .section { padding-block: 88px; }
  .section__eyebrow { margin-bottom: 1rem; }
  h2 { font-size: 1.625rem; line-height: 1.4; margin-bottom: 1rem; }
  h3 { line-height: 1.45; }
  .lead { font-size: 1.0625rem; line-height: 1.8; }
  .intro { gap: 32px; }

  /* 버튼: 터치 높이 확보, 글자 굵게 */
  .btn { min-height: 54px; font-weight: 800; }

  /* 자가진단 */
  .checklist { margin-top: 2rem; gap: 12px; }
  .checklist__item { padding: 18px 18px; line-height: 1.65; }
  .check__result { margin-top: 2rem; padding: 22px 20px; }

  /* 상황별 대응 카드: 제목+요약 노출, 체크리스트는 접기 */
  .cards { gap: 24px; margin: 2.5rem 0 2.75rem; }
  .card { padding: 28px 22px 22px; }
  .card h3 { font-size: 1.25rem; margin-bottom: .75rem; }
  .card > p:not(.card__tag) { font-size: 1.0625rem; line-height: 1.8; }
  .card__points li { font-size: 1rem; line-height: 1.7; padding: 11px 0 11px 24px; }
  .card__points li::before { top: 21px; }

  .fold__btn {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    min-height: 48px; margin-top: 4px; padding: 0 16px; border: 0; border-radius: 8px;
    background: var(--gray-50); color: var(--navy-900); box-shadow: inset 0 0 0 1px var(--gray-200);
    font: inherit; font-size: 1rem; font-weight: 700; cursor: pointer;
  }
  .fold__btn:focus-visible, .process__toggle:focus-visible { outline: 3px solid var(--blue-600); outline-offset: 2px; }
  .fold__btn[aria-expanded="true"] { margin-top: 14px; }

  /* 처벌 기준표: 제목 행 하나로 접는다 */
  .law { padding: 0; background: none; }
  .fold__btn--box {
    justify-content: space-between; min-height: 60px; margin: 0; padding: 0 20px;
    background: var(--gray-50); font-size: 1.0625rem; font-weight: 800;
  }
  .fold__btn--box[aria-expanded="true"] { margin: 0 0 16px; }
  .lawtable { font-size: 1rem; line-height: 1.7; }
  .lawtable__src { font-size: .875rem; line-height: 1.7; }

  /* 대표변호사: 사진·이름·전문 등록·핵심 경력 노출 */
  .lawyer__grid { gap: 40px; }
  .profile { gap: 8px 32px; margin: 2rem 0 0; }
  .profile h3 { font-size: 1.0625rem; margin: 1.5rem 0 .5rem; }
  .profile li { font-size: 1rem; line-height: 1.7; padding: 6px 0 6px 16px; }
  .profile li::before { top: 18px; }
  .profile .fold__btn { margin-top: 16px; }
  .certs__title { margin-top: 2.5rem; line-height: 1.6; }
  .certs__title span { display: block; }

  /* 전담팀 */
  .team { gap: 20px; margin-top: 2.5rem; }
  .team__body h3 { font-size: 1.25rem; }
  .team__body ul { font-size: .9375rem; line-height: 1.65; }
  .team__body li { padding: 6px 0; }
  .team__body .fold__btn { min-height: 44px; font-size: .9375rem; }
  .team__body .fold__btn[aria-expanded="true"] { margin-top: 10px; }

  /* 성공사례 */
  .stats { margin-top: 2rem; gap: 12px; }
  .casefilter { margin: 2rem 0 1.5rem; }
  .casefilter__btn { min-height: 44px; }
  .case__detail { font-size: 1rem; }
  .disclaimer { line-height: 1.7; }

  /* 진행 절차: 단계 제목 행이 토글, 설명은 접기 */
  .process { gap: 12px; margin-top: 2.25rem; }
  .process__step { padding: 0; }
  .process__head {
    position: relative; display: flex; align-items: center; gap: 14px;
    min-height: 64px; padding: 16px 56px 16px 20px;
  }
  .process__no { margin: 0; font-size: .9375rem; }
  .process__step h3 { margin: 0; font-size: 1.125rem; }
  .process__step p { padding: 0 20px 20px 20px; font-size: 1rem; line-height: 1.8; }
  .process__toggle {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end;
    width: 100%; padding: 0 22px; border: 0; border-radius: var(--radius); background: none;
    color: var(--navy-900); cursor: pointer;
  }

  /* FAQ */
  .faq__grid { gap: 36px; }
  .faq__intro .btn { width: 100%; }
  .accordion__head { font-size: 1.0625rem; }
  .accordion__trigger { min-height: 64px; padding: 20px 2px; line-height: 1.55; }
  .accordion__panel { padding: 0 2px 26px; line-height: 1.85; }

  /* 상담 폼 */
  .consult__inner { gap: 40px; }
  .cform__row { margin-bottom: 20px; }
  .chip span { padding: 10px 14px; font-size: .9375rem; }

  /* 푸터 */
  .footer { line-height: 1.75; }
  .footer__legal p { margin-bottom: .8em; }
}

/* ---------- ≤560px: 휴대폰 ---------- */
@media (max-width: 560px) {
  .hero__sub { font-size: 1.0625rem; line-height: 1.75; }
  .hero__cta .btn { padding-inline: 12px; }
  .lawyer__figure { max-width: 320px; }
  .certs { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .certs__btn { padding: 6px; font-size: .75rem; }

  /* 전담팀: 사진 비율 고정(접힌 상태에서도 사진이 찌그러지지 않게) */
  .team__member { align-items: flex-start; }
  .team__member picture { flex: 0 0 38%; }
  .team__member img { height: auto; aspect-ratio: 4 / 5; }
  .team__body { padding: 16px 16px 16px 18px; flex: 1; min-width: 0; }

  /* 성공사례 카드: 썸네일 왼쪽, 결과 오른쪽 — 카드 내용은 그대로, 세로 길이만 줄인다 */
  .cases { gap: 16px; }
  .case { flex-direction: row; align-items: stretch; }
  .case__thumb { flex: 0 0 36%; aspect-ratio: 3 / 4; align-self: flex-start; }
  .case__thumb::after { right: 6px; bottom: 6px; padding: 3px 8px; font-size: .6875rem; }
  .case__body { padding: 16px; min-width: 0; }
  .case__title { font-size: 1.0625rem; line-height: 1.45; }
}
@media (min-width: 901px) {
  .mnav, .topbar__menu, .midcta { display: none !important; }
}
