/* ══════════════════════════════════════════════════════════════════
   법무법인 유담 — 랜딩페이지 스타일 한 벌

   디자인 어휘는 이전 멀티페이지 버전(multipage-v1)을 그대로 따릅니다.
     · 모서리를 굴리지 않습니다 (버튼·입력칸만 2px)
     · 제목은 700 까지. 800 은 쓰지 않습니다
     · 숫자와 영문은 var(--en) 에 자간을 넓혀 씁니다
     · 섹션 머리는 짧은 선 + 영문 키커 + 제목
   ══════════════════════════════════════════════════════════════════ */

/* ── 나눔스퀘어 ────────────────────────────────────────────────────
   글꼴 파일을 저장소에 같이 두었습니다. 바깥 CDN 을 타지 않으므로
   인터넷 없이도 같은 화면이 나옵니다. 있는 두께는 300 · 400 · 700 · 800
   넷뿐이라, 500 · 600 이 엉뚱하게 떨어지지 않도록 묶어 둡니다.
   ────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: "NanumSquare";
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/NanumSquareL.woff2") format("woff2");
}
@font-face {
  font-family: "NanumSquare";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/NanumSquareR.woff2") format("woff2");
}
@font-face {
  font-family: "NanumSquare";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("/assets/fonts/NanumSquareB.woff2") format("woff2");
}
@font-face {
  font-family: "NanumSquare";
  font-style: normal;
  font-weight: 800 900;
  font-display: swap;
  src: url("/assets/fonts/NanumSquareEB.woff2") format("woff2");
}

/* ── 토큰 ───────────────────────────────────────────────────────── */
:root {
  --wine: #7d1330;
  --wine-dark: #5a0b22;
  --wine-soft: #f6eef1;
  --gold: #b08d57;
  --ink: #1c1c1e;
  --ink-2: #232323;
  --body: #444;
  --mute: #686868;
  --mute-2: #949494;
  --line: #e1e1e1;
  --line-2: #efefef;
  --bg: #fff;
  --bg-soft: #f7f6f4;
  --bg-dark: #17171a;

  --wrap: 1280px;
  --wrap-narrow: 1080px;
  --gutter: 24px;
  --header-h: 92px;
  --header-h-sticky: 68px;

  --sans: "NanumSquare", "Malgun Gothic", "맑은 고딕", system-ui, sans-serif;
  --serif: "Nanum Myeongjo", "Batang", serif;
  --en: "NanumSquare", system-ui, sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .06);
  --shadow: 0 12px 36px rgba(0, 0, 0, .1);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, .16);
}

/* ── 리셋 ───────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h-sticky); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
}
body.is-locked { overflow: hidden; }
h1, h2, h3, h4, h5, p, figure, blockquote, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 2px solid var(--wine); outline-offset: 3px; }
.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;
}

/* ── 레이아웃 유틸 ──────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: var(--wrap-narrow); }
.section { padding: 110px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--bg-dark); color: #ddd; }

/* ── 섹션 머리 ──────────────────────────────────────────────────── */
.sec-head { margin-bottom: 48px; }
.sec-head--row {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.sec-head--center { text-align: center; }
.sec-head--center .sec-kicker { justify-content: center; }
.sec-head--center .sec-desc { max-width: 680px; margin-left: auto; margin-right: auto; }
.sec-kicker {
  font-family: var(--en); font-size: 13px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--wine);
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.sec-kicker::before { content: ""; width: 28px; height: 1px; background: var(--wine); }
.section--dark .sec-kicker { color: var(--gold); }
.section--dark .sec-kicker::before { background: var(--gold); }
.sec-title {
  font-size: clamp(26px, 3.2vw, 40px); line-height: 1.35; letter-spacing: -.02em;
  font-weight: 700; color: var(--ink);
}
.sec-title em { font-style: normal; color: var(--wine); }
.section--dark .sec-title { color: #fff; }
.section--dark .sec-title em { color: var(--gold); }
.sec-desc { margin-top: 16px; font-size: 17px; color: var(--mute); line-height: 1.8; }
.section--dark .sec-desc { color: #a9a9ad; }

/* ── 버튼 ───────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 30px; border-radius: 2px;
  font-size: 15px; font-weight: 600; letter-spacing: -.01em;
  border: 1px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn--primary { background: var(--wine); color: #fff; }
.btn--primary:hover { background: var(--wine-dark); }
/* 테두리 버튼은 글자색을 바탕에서 물려받습니다. 어두운 자리마다
   색을 따로 적다 보면 새 섹션에서 글자가 배경에 묻혀 사라집니다. */
.btn--ghost { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.hero .btn--ghost,
.strip .btn--ghost,
.section--dark .btn--ghost { color: #fff; }
.hero .btn--ghost:hover,
.strip .btn--ghost:hover,
.section--dark .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #98753f; }
.btn--sm { height: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.link-more {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap;
}
.link-more::after {
  content: ""; width: 22px; height: 1px; background: currentColor;
  transition: width .25s var(--ease);
}
.link-more:hover::after { width: 38px; }
.section--dark .link-more { color: #fff; }

/* ── 슬라이더 공통 ──────────────────────────────────────────────── */
.slider { position: relative; }
.slider__track {
  display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
  scroll-behavior: smooth; padding-bottom: 8px;
  scrollbar-width: none; -ms-overflow-style: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { scroll-snap-align: start; flex: 0 0 auto; }
.slider__nav { display: flex; align-items: center; gap: 8px; }
.slider__btn {
  width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%;
  display: grid; place-items: center; color: var(--ink); background: #fff;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.slider__btn:hover { background: var(--wine); border-color: var(--wine); color: #fff; }
.slider__btn[disabled] { opacity: .3; }
.slider__count { font-family: var(--en); font-size: 13px; color: var(--mute); min-width: 56px; text-align: center; }
.section--dark .slider__btn { background: transparent; border-color: #3a3a40; color: #fff; }

/* ── 폼 ─────────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 8px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field__label .req { color: var(--wine); margin-left: 2px; }
.input, .select, .textarea {
  height: 52px; padding: 0 16px; border: 1px solid var(--line);
  border-radius: 2px; background: #fff; font-size: 15px; width: 100%;
  transition: border-color .2s var(--ease);
}
.textarea { height: auto; padding: 14px 16px; resize: vertical; min-height: 120px; line-height: 1.7; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23686868' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--wine); outline: none; }
.input::placeholder, .textarea::placeholder { color: #b4b4b8; }
.check { display: inline-flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--mute); cursor: pointer; line-height: 1.55; }
.check input { width: 17px; height: 17px; accent-color: var(--wine); cursor: pointer; flex: 0 0 auto; margin: 2px 0 0; }
.check button {
  color: var(--wine); font-weight: 600; text-decoration: underline;
  text-underline-offset: 2px;
}
.form-msg { font-size: 14px; min-height: 22px; }
.form-msg.is-ok { color: #1f7a4d; }
.form-msg.is-err { color: #c0392b; }

/* ── 등장 효과 ──────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ══ 헤더 ═══════════════════════════════════════════════════════════
   히어로 위에 투명하게 얹히고, 스크롤하면 흰 배경으로 굳습니다.
   판단은 body.is-solid 한 곳에서만 합니다.
   ════════════════════════════════════════════════════════════════ */
.hd {
  position: fixed; inset: 0 0 auto 0; z-index: 200;
  color: #fff;
  transition: background .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease);
}
.hd::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: rgba(255, 255, 255, .18);
}
.hd__inner {
  height: var(--header-h); display: flex; align-items: center; gap: 26px; flex-wrap: nowrap;
  transition: height .3s var(--ease);
}

/* 굳은 상태 */
body.is-solid .hd { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
body.is-solid .hd::after { background: var(--line); }
body.is-solid .hd__inner { height: var(--header-h-sticky); }
body.is-solid .hd__tel { color: var(--wine); }

/* 로고 */
.logo { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.logo__mark { width: 38px; height: 38px; flex: 0 0 auto; }
.logo__text { line-height: 1.15; }
.logo__ko { display: block; font-size: 19px; font-weight: 700; letter-spacing: -.02em; }
.logo__en {
  display: block; font-family: var(--en); font-size: 9.5px; font-weight: 500;
  letter-spacing: .3em; opacity: .7;
}

/* 주메뉴 — 랜딩이라 전부 페이지 안 앵커입니다. */
.gnb { flex: 1 1 auto; }
.gnb__list { display: flex; align-items: center; gap: 0; flex-wrap: nowrap; }
.gnb__link {
  display: block; padding: 0 14px; height: var(--header-h); line-height: var(--header-h);
  font-size: 16px; white-space: nowrap; font-weight: 600; letter-spacing: -.02em; position: relative;
  transition: height .3s var(--ease), line-height .3s var(--ease), color .2s var(--ease);
}
body.is-solid .gnb__link { height: var(--header-h-sticky); line-height: var(--header-h-sticky); }
.gnb__link::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 22px; height: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.gnb__item:hover .gnb__link::after,
.gnb__item.is-active .gnb__link::after { transform: scaleX(1); }
.gnb__item.is-active .gnb__link { color: var(--wine); }
body:not(.is-solid) .gnb__item.is-active .gnb__link { color: var(--gold); }

/* 헤더 오른쪽 — 대표번호만 둡니다. */
.hd__util { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.hd__tel {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--en); font-size: 21px; font-weight: 700; letter-spacing: .02em;
}
.hd__tel svg { width: 17px; height: 17px; }
.hd__burger {
  width: 44px; height: 44px; display: none; place-items: center;
  border: 1px solid currentColor; border-radius: 2px; opacity: .85;
}
.hd__burger:hover { opacity: 1; }

/* ── 모바일 서랍 ───────────────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 300; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__dim {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .55);
  opacity: 0; transition: opacity .3s var(--ease);
}
.drawer.is-open .drawer__dim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 360px);
  background: #fff; color: var(--ink); overflow-y: auto;
  transform: translateX(100%); transition: transform .34s var(--ease);
  display: flex; flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); border-bottom: 1px solid var(--line);
}
.drawer__logo { font-size: 18px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.drawer__close { width: 40px; height: 40px; display: grid; place-items: center; color: var(--mute); }
.drawer__body { padding: 8px var(--gutter) 24px; flex: 1 1 auto; }
.drawer__body a {
  display: block; padding: 16px 0; font-size: 16px; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.drawer__body a:active { color: var(--wine); }
.drawer__foot { padding: 20px var(--gutter) 28px; background: var(--bg-soft); }
.drawer__tel {
  display: block; font-family: var(--en); font-size: 26px; font-weight: 700;
  color: var(--wine); text-align: center; margin-bottom: 12px;
}

/* ══ 우측 고정 퀵바 ════════════════════════════════════════════════ */
.quick {
  position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 150;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  box-shadow: var(--shadow); overflow: hidden; width: 76px;
}
.quick__item {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 6px; padding: 14px 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  border-bottom: 1px solid var(--line-2); line-height: 1.35; text-align: center;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.quick__item:hover { background: var(--wine-soft); color: var(--wine); }
.quick__item svg { width: 22px; height: 22px; }
.quick__tel {
  background: var(--wine); color: #fff; border-bottom: 0; padding: 14px 4px;
  display: block; text-align: center;
}
.quick__tel small { display: block; font-size: 10px; opacity: .8; letter-spacing: .06em; }
/* 76px 폭에 "1600-0000" 이 딱 1px 모자라 하이픈에서 잘립니다.
   자간을 조금 좁히고 줄바꿈을 막아 한 줄로 세웁니다. */
.quick__tel b {
  font-family: var(--en); font-size: 12.5px; letter-spacing: -.04em;
  white-space: nowrap;
}
.quick__top {
  width: 100%; padding: 12px 4px; font-family: var(--en); font-size: 11px;
  font-weight: 700; letter-spacing: .1em; color: var(--mute); background: var(--bg-soft);
}
.quick__top:hover { color: var(--wine); }

/* ══ 하단 고정 상담바 ══════════════════════════════════════════════ */
.botbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 160;
  background: rgba(23, 23, 26, .95); color: #fff;
  transform: translateY(100%); transition: transform .4s var(--ease);
}
.botbar.is-in { transform: none; }
.botbar__inner { display: flex; align-items: center; gap: 16px; height: 78px; }
.botbar__tel { display: flex; align-items: baseline; gap: 10px; flex: 0 0 auto; }
.botbar__tel small { font-size: 11px; letter-spacing: .18em; color: var(--gold); font-family: var(--en); }
.botbar__tel b { font-family: var(--en); font-size: 25px; font-weight: 700; }
.botbar__form { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.botbar__form .input, .botbar__form .select {
  height: 44px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16);
  color: #fff; font-size: 14px; min-width: 0;
}
.botbar__form .input::placeholder { color: rgba(255, 255, 255, .45); }
.botbar__form .select option { color: #222; }
.botbar__form .check { color: rgba(255, 255, 255, .7); font-size: 12.5px; white-space: nowrap; align-items: center; }
.botbar__form .check input { margin: 0; }
.botbar__form .form-msg { min-height: 0; white-space: nowrap; }
.botbar__hide { flex: 0 0 auto; font-size: 12px; color: rgba(255, 255, 255, .55); }

/* ══ 모바일 하단 탭 ════════════════════════════════════════════════ */
.mobar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 160; display: none;
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobar__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.mobar__item {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 2px; font-size: 11px; font-weight: 600; color: var(--ink-2);
}
.mobar__item svg { width: 20px; height: 20px; }
.mobar__item--call { background: var(--wine); color: #fff; }

/* ══════════════════════════════════════════════════════════════════
   1. 히어로
   ══════════════════════════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; color: #fff; overflow: hidden;
  background: #0e0e11;
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
/* 사진 왼쪽은 원래 비어 있습니다. 글자가 앉는 그 자리만 눌러 주고
   오른쪽 인물은 살립니다 — 전체를 고르게 어둡게 하면 사진이 죽습니다.
   위아래 띠는 머리말 글자와 아래쪽 지표가 밝은 창에 묻히지 않게 합니다. */
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(8, 8, 10, .92) 0%,
      rgba(8, 8, 10, .8) 28%,
      rgba(8, 8, 10, .4) 52%,
      rgba(8, 8, 10, .12) 78%,
      rgba(8, 8, 10, .3) 100%),
    linear-gradient(to bottom, rgba(8, 8, 10, .6) 0%, transparent 20%),
    linear-gradient(to top, rgba(8, 8, 10, .75) 0%, transparent 32%);
}
/* .wrap 과 같은 요소라 좌우 여백을 0 으로 덮지 않도록 --gutter 를 그대로 씁니다. */
.hero__inner {
  position: relative; z-index: 2; width: 100%;
  padding: calc(var(--header-h) + 40px) var(--gutter) 120px;
}
.hero__since {
  font-family: var(--en); font-size: 12px; font-weight: 600; letter-spacing: .4em;
  color: var(--gold); margin-bottom: 22px;
}
.hero__title {
  font-size: clamp(34px, 5.2vw, 66px); line-height: 1.22; font-weight: 700;
  letter-spacing: -.03em; margin-bottom: 26px;
}
.hero__title em { font-style: normal; color: var(--gold); }
.hero__title .thin { font-weight: 300; }
.hero__desc { font-size: clamp(15px, 1.4vw, 19px); line-height: 1.9; color: rgba(255, 255, 255, .78); max-width: 560px; }
.hero__cta { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }
.hero__points {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 38px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .16);
}
.hero__point {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: rgba(255, 255, 255, .84);
}
.hero__point svg { width: 16px; height: 16px; color: var(--gold); flex: 0 0 auto; }

/* 히어로 오른쪽 아래 지표 */
.hero__stats {
  position: absolute; right: var(--gutter); bottom: 108px; z-index: 2;
  display: flex; gap: 0; background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(6px);
}
.hero__stat { padding: 22px 30px; border-left: 1px solid rgba(255, 255, 255, .14); text-align: center; }
.hero__stat:first-child { border-left: 0; }
.hero__stat b { display: block; font-family: var(--en); font-size: 30px; font-weight: 700; color: #fff; line-height: 1.2; }
.hero__stat span { font-size: 12.5px; color: rgba(255, 255, 255, .65); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--en); font-size: 10px; letter-spacing: .3em; color: rgba(255, 255, 255, .6);
}
.hero__scroll i { display: block; width: 1px; height: 46px; background: rgba(255, 255, 255, .35); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ""; position: absolute; inset: 0; background: var(--gold);
  animation: scrollCue 2s var(--ease) infinite;
}
@keyframes scrollCue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ══════════════════════════════════════════════════════════════════
   2. 전문팀 띠
   ══════════════════════════════════════════════════════════════════ */
.strip { background: var(--bg-dark); color: #fff; padding: 54px 0; }
.strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.strip__txt h2 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; letter-spacing: -.02em; line-height: 1.45; }
.strip__txt h2 em { font-style: normal; color: var(--gold); }
.strip__txt p { margin-top: 10px; color: #a0a0a8; font-size: 15px; }
.strip__cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ══════════════════════════════════════════════════════════════════
   3. 이런 고민
   ══════════════════════════════════════════════════════════════════ */
.worry__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.worry__item {
  position: relative; background: #fff; border: 1px solid var(--line);
  padding: 28px 26px 28px 56px;
  font-size: 16px; font-weight: 600; color: var(--ink-2); line-height: 1.65;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.worry__item::before {
  content: "“"; position: absolute; left: 24px; top: 20px;
  font-family: var(--en); font-size: 34px; font-weight: 700; line-height: 1;
  color: var(--wine); opacity: .25;
}
.worry__item:hover { border-color: var(--wine); transform: translateY(-4px); box-shadow: var(--shadow); }
.worry__foot {
  margin-top: 44px; text-align: center;
  font-size: clamp(18px, 2.2vw, 24px); font-weight: 700; color: var(--ink); letter-spacing: -.02em;
}
.worry__foot em { font-style: normal; color: var(--wine); }

/* ══════════════════════════════════════════════════════════════════
   4. 업무분야
   ══════════════════════════════════════════════════════════════════ */
.practice__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.practice-card {
  background: #fff; border: 1px solid var(--line); padding: 34px 28px 30px;
  display: flex; flex-direction: column;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.practice-card:hover { border-color: var(--wine); transform: translateY(-4px); box-shadow: var(--shadow); }
.practice-card__icon {
  width: 42px; height: 42px; display: grid; place-items: center;
  background: var(--wine-soft); color: var(--wine); border-radius: 50%; margin-bottom: 20px;
}
.practice-card__icon svg { width: 22px; height: 22px; }
.practice-card__title { font-size: 19px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.practice-card__desc { margin-top: 10px; font-size: 14.5px; color: var(--mute); line-height: 1.8; }
.practice-card__list { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); }
.practice-card__list li { position: relative; padding-left: 14px; font-size: 14.5px; color: var(--body); line-height: 1.95; }
.practice-card__list li::before {
  content: ""; position: absolute; left: 0; top: 12px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}

/* ══════════════════════════════════════════════════════════════════
   5. 강점 4단 (탭)
   ══════════════════════════════════════════════════════════════════ */
.why { background: var(--bg-soft); }
.why__tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.why__tab {
  padding: 28px 24px; text-align: left; border-bottom: 3px solid transparent;
  border-right: 1px solid var(--line); transition: background .25s var(--ease), border-color .25s var(--ease);
}
.why__tab:last-child { border-right: 0; }
.why__tab b { display: block; font-family: var(--en); font-size: 13px; color: var(--mute-2); margin-bottom: 10px; letter-spacing: .1em; }
.why__tab span { font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.5; }
.why__tab:hover { background: #fff; }
.why__tab.is-on { background: #fff; border-bottom-color: var(--wine); }
.why__tab.is-on b { color: var(--wine); }

.why__panels { background: #fff; border-top: 0; }
.why__panel { display: none; padding: 56px; }
.why__panel.is-on { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.why__panel h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; color: var(--ink); line-height: 1.45; letter-spacing: -.02em; }
.why__panel p { margin-top: 18px; font-size: 16px; line-height: 1.95; color: var(--mute); }
.why__points { margin-top: 26px; display: grid; gap: 12px; }
.why__points li { position: relative; padding-left: 22px; font-size: 15px; color: var(--body); }
.why__points li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px;
  border-radius: 50%; background: var(--wine);
}
.why__figure { background: var(--bg-soft); aspect-ratio: 4 / 3; overflow: hidden; }
.why__figure img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ══════════════════════════════════════════════════════════════════
   6. 승소사례
   ══════════════════════════════════════════════════════════════════ */
.case-card {
  width: 386px; background: #fff; border: 1px solid var(--line);
  padding: 34px 30px 30px; display: flex; flex-direction: column; min-height: 300px;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.case-card:hover { border-color: var(--wine); transform: translateY(-4px); box-shadow: var(--shadow); }
.case-card__tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--wine); background: var(--wine-soft); padding: 5px 12px; border-radius: 999px;
}
.case-card__title {
  margin: 18px 0 14px; font-size: 19px; line-height: 1.55; font-weight: 700;
  color: var(--ink); letter-spacing: -.02em;
}
.case-card__desc { font-size: 14.5px; color: var(--mute); line-height: 1.8; flex: 1 1 auto; }
.case-card__foot {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-2);
  display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: var(--mute-2);
}
.case-card__result { font-family: var(--en); font-weight: 700; color: var(--wine); font-size: 15px; }
.cases__note { margin-top: 30px; font-size: 13.5px; color: var(--mute-2); line-height: 1.8; }

/* ══════════════════════════════════════════════════════════════════
   7. 변호사
   ══════════════════════════════════════════════════════════════════ */
.lawyers { background: var(--bg-dark); }
.lawyer-card { width: 264px; }
.lawyer-card__photo { aspect-ratio: 3 / 4; background: #232329; overflow: hidden; position: relative; }
.lawyer-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.lawyer-card:hover .lawyer-card__photo img { transform: scale(1.05); }
.lawyer-card__photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent 45%);
}
.lawyer-card__body { padding: 18px 4px 0; }
.lawyer-card__role { font-size: 12.5px; color: var(--gold); letter-spacing: .02em; }
.lawyer-card__name { margin-top: 6px; font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.lawyer-card__name span { font-size: 13px; font-weight: 400; color: #8d8d95; margin-left: 6px; }
.lawyer-card__tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.lawyer-card__tags li {
  font-size: 11.5px; color: #b9b9c2; border: 1px solid #34343c; padding: 3px 9px; border-radius: 999px;
}

/* ══════════════════════════════════════════════════════════════════
   8. 의뢰인 후기
   ══════════════════════════════════════════════════════════════════ */
.review-card {
  width: 360px; background: #fff; border: 1px solid var(--line); padding: 30px;
  display: flex; flex-direction: column; min-height: 268px;
}
.review-card__quote { font-family: var(--en); font-size: 40px; line-height: 1; color: var(--wine); opacity: .25; }
.review-card__text {
  margin-top: 12px; font-size: 15px; line-height: 1.85; color: var(--body); flex: 1 1 auto;
}
.review-card__by { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 13px; color: var(--mute-2); }
.review-card__by b { display: block; color: var(--ink); font-size: 14px; margin-bottom: 3px; }

/* ══════════════════════════════════════════════════════════════════
   9. 상담 절차
   ══════════════════════════════════════════════════════════════════ */
/* 위쪽 선만 긋고 끝내면 상자가 열린 채로 보입니다.
   바깥은 네 변을 다 두르고, 칸 사이만 세로선으로 나눕니다. */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); }
.step { padding: 36px 30px 34px; border-right: 1px solid var(--line); }
.step:last-child { border-right: 0; }
.step__no {
  font-family: var(--en); font-size: 13px; font-weight: 700; letter-spacing: .1em;
  color: var(--wine); margin-bottom: 14px;
}
.step__title { font-size: 18px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.step__desc { margin-top: 10px; font-size: 14.5px; color: var(--mute); line-height: 1.8; }

/* ══════════════════════════════════════════════════════════════════
   10. 자주 묻는 질문
   ══════════════════════════════════════════════════════════════════ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q {
  width: 100%; display: flex; align-items: center; gap: 16px; padding: 26px 4px;
  text-align: left; font-size: 17px; font-weight: 700; color: var(--ink);
  line-height: 1.55; letter-spacing: -.02em; transition: color .2s var(--ease);
}
.faq__q:hover { color: var(--wine); }
.faq__q i { font-style: normal; font-family: var(--en); font-weight: 700; color: var(--wine); font-size: 16px; flex: 0 0 auto; }
.faq__q svg {
  width: 14px; height: 9px; margin-left: auto; flex: 0 0 auto; color: var(--mute-2);
  transition: transform .3s var(--ease), color .3s var(--ease);
}
.faq__item.is-open .faq__q svg { transform: rotate(180deg); color: var(--wine); }
/* 높이를 JS 로 재지 않으려고 grid 로 접었다 폅니다. */
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 4px 28px 34px; font-size: 15.5px; color: var(--body); line-height: 1.95; }

/* ══════════════════════════════════════════════════════════════════
   11. 상담 신청
   ══════════════════════════════════════════════════════════════════ */
.inq { background: var(--bg-dark); color: #fff; }
.inq__inner { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.inq__copy h2 { font-size: clamp(26px, 3vw, 40px); font-weight: 700; line-height: 1.42; letter-spacing: -.02em; }
.inq__copy h2 em { font-style: normal; color: var(--gold); }
.inq__copy p { margin-top: 20px; color: #a0a0a8; font-size: 16px; line-height: 1.9; }
.inq__tel { display: inline-flex; align-items: baseline; gap: 12px; margin-top: 30px; }
.inq__tel small { font-family: var(--en); font-size: 12px; letter-spacing: .18em; color: var(--gold); }
.inq__tel b { font-family: var(--en); font-size: clamp(28px, 3.2vw, 38px); font-weight: 700; color: #fff; }
.inq__hours {
  margin-top: 22px; padding-top: 22px; border-top: 1px solid #34343c;
  display: grid; gap: 6px; font-size: 14.5px; color: #a0a0a8;
}
.inq__hours b { color: #fff; font-weight: 600; margin-right: 10px; }
/* 어두운 섹션 위에 흰 패널이 얹히면 그 자리만 도려낸 것처럼 보입니다.
   패널도 어둡게 두고, 입력칸은 하단 상담바와 같은 방식으로
   바탕을 아주 살짝 띄워 구분합니다. */
.inq__form {
  background: #1f1f24; color: #c9c9d0;
  border: 1px solid #2e2e36; padding: 40px;
}
.inq__form h3 { font-size: 21px; font-weight: 700; color: #fff; letter-spacing: -.02em; }
.inq__form > p { margin: 8px 0 24px; font-size: 14.5px; color: #8d8d95; }
.inq__form .field__label { color: #d5d5dc; }
.inq__form .field__label .req { color: var(--gold); }
.inq__form .input,
.inq__form .select,
.inq__form .textarea {
  background-color: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .16);
  color: #fff;
}
.inq__form .input::placeholder,
.inq__form .textarea::placeholder { color: rgba(255, 255, 255, .4); }
.inq__form .input:focus,
.inq__form .select:focus,
.inq__form .textarea:focus {
  border-color: var(--gold);
  background-color: rgba(255, 255, 255, .1);
}
/* 기본 화살표는 짙은 회색이라 어두운 바탕에서 보이지 않습니다. */
.inq__form .select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8b8c0' stroke-width='1.6'/%3E%3C/svg%3E");
}
/* 펼친 목록은 OS 가 그리므로 글자색을 되돌려 둡니다. */
.inq__form .select option { color: #222; }
.inq__form .check { color: #a0a0a8; }
.inq__form .check button { color: var(--gold); }
/* 어두운 바탕에서는 기본 초록·빨강이 너무 가라앉습니다. */
.inq__form .form-msg.is-ok { color: #5fc38d; }
.inq__form .form-msg.is-err { color: #ff8f7d; }
.inq__rows { display: grid; gap: 14px; }
.inq__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inq__foot { margin-top: 22px; display: grid; gap: 14px; }

/* ══════════════════════════════════════════════════════════════════
   푸터
   ══════════════════════════════════════════════════════════════════ */
.ft { background: #131316; color: #8d8d95; padding: 70px 0 40px; font-size: 13.5px; }
.ft__top {
  display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap;
  padding-bottom: 34px; border-bottom: 1px solid #26262c;
}
.ft__logo { display: flex; align-items: center; gap: 12px; color: #fff; }
.ft__nav { display: flex; gap: 26px; flex-wrap: wrap; align-items: center; }
.ft__nav a, .ft__nav button { font-size: 14px; color: #c9c9d0; }
.ft__nav a:hover, .ft__nav button:hover { color: #fff; }
.ft__nav .is-strong { color: #fff; font-weight: 700; }
.ft__body { padding-top: 34px; display: grid; grid-template-columns: 1.1fr 2fr; gap: 40px; }
.ft__corp { line-height: 2; }
.ft__corp strong { color: #d8d8de; font-weight: 600; }
.ft__branches { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.ft__branch dt { color: #fff; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.ft__branch dd { margin: 0; line-height: 1.9; }
.ft__note {
  margin-top: 36px; padding: 14px 18px; border: 1px dashed #33333c; border-radius: 3px;
  font-size: 12.5px; color: #6f6f78; line-height: 1.8;
}
.ft__note strong { color: #b9b9c0; }
.ft__copy {
  margin-top: 24px; font-family: var(--en); font-size: 11.5px; letter-spacing: .1em;
  color: #55555e; text-transform: uppercase;
}

/* ══ 개인정보 안내 모달 ════════════════════════════════════════════ */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; padding: 20px; z-index: 400; }
.modal.is-open { display: flex; }
.modal__dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); }
.modal__panel {
  position: relative; width: 100%; max-width: 560px; max-height: 80vh;
  background: #fff; display: flex; flex-direction: column; box-shadow: var(--shadow-lg);
}
.modal__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.modal__title { font-size: 18px; font-weight: 700; color: var(--ink); }
.modal__close { color: var(--mute); padding: 4px; }
.modal__body { padding: 22px 24px 26px; overflow-y: auto; font-size: 14.5px; line-height: 1.85; color: var(--body); }
.modal__body h4 { margin: 20px 0 6px; font-size: 15px; color: var(--ink); font-weight: 700; }
.modal__body h4:first-child { margin-top: 0; }
.modal__body li { position: relative; padding-left: 14px; }
.modal__body li::before {
  content: ""; position: absolute; left: 0; top: 13px;
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}

/* ══════════════════════════════════════════════════════════════════
   반응형
   ══════════════════════════════════════════════════════════════════ */
@media (max-width: 1200px) {
  .hd__tel { font-size: 18px; }
  .gnb__link { padding: 0 13px; font-size: 15.5px; }
  .quick { display: none; }
  .hero__stats { display: none; }
  .practice__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .section { padding: 80px 0; }
  .gnb { display: none; }
  .hd__burger { display: grid; }
  .hd__inner { justify-content: space-between; gap: 16px; }
  .botbar { display: none; }
  .mobar { display: block; }
  body { padding-bottom: 62px; }
  .ft { padding-bottom: 90px; }

  .hero { min-height: 640px; }
  .why__panel.is-on, .inq__inner { grid-template-columns: 1fr; gap: 36px; }
  .why__panel { padding: 36px 28px; }
  .why__tabs { grid-template-columns: repeat(2, 1fr); }
  .why__tab { border-bottom: 1px solid var(--line); }
  .case-card, .review-card { width: 320px; }
  .lawyer-card { width: 240px; }
  .worry__grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  /* 두 줄이 되므로 오른쪽 칸의 세로선을 지우고, 첫 줄 아래만 그어 나눕니다. */
  .step:nth-child(even) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .ft__body { grid-template-columns: 1fr; gap: 28px; }
  .ft__branches { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  :root { --gutter: 18px; --header-h: 64px; }
  body { font-size: 15px; }
  .section { padding: 60px 0; }
  .sec-head { margin-bottom: 32px; }
  .hd__tel { display: none; }
  .logo__mark { width: 32px; height: 32px; }
  .logo__ko { font-size: 17px; }

  /* 세로로 길게 잘리면 사진의 26% 남짓만 보입니다. 그 자리를 인물에
     맞추고, 글자가 얼굴 위에 와도 읽히도록 덮개를 고르게 올립니다. */
  .hero__bg img { object-position: 56% center; }
  .hero__bg::after {
    background:
      linear-gradient(90deg, rgba(8, 8, 10, .86) 0%, rgba(8, 8, 10, .7) 55%, rgba(8, 8, 10, .62) 100%),
      linear-gradient(to top, rgba(8, 8, 10, .82) 0%, transparent 42%);
  }
  .hero__inner { padding-bottom: 96px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__scroll { display: none; }

  .strip__inner { flex-direction: column; align-items: flex-start; }
  .worry__grid { grid-template-columns: 1fr; gap: 12px; }
  .practice__grid { grid-template-columns: 1fr; }
  .case-card, .review-card { width: min(82vw, 320px); }
  .lawyer-card { width: min(60vw, 220px); }
  .steps { grid-template-columns: 1fr; }
  .step { border-right: 0; padding: 26px 20px; }
  .step:not(:last-child) { border-bottom: 1px solid var(--line); }
  .faq__q { padding: 22px 2px; font-size: 15.5px; gap: 12px; }
  .faq__a p { padding: 0 2px 24px 28px; font-size: 14.5px; }
  .inq__form { padding: 26px 20px; }
  .inq__row2 { grid-template-columns: 1fr; }
  .ft__branches { grid-template-columns: 1fr; }
  .ft__nav { gap: 16px; }
}
