/* =========================================================
   하나법무사사무소 — 한정승인·상속포기 안내 페이지 (/limited)
   메인 페이지(/)와 같은 디자인 시스템(색·글자 크기·여백·모서리)을
   쓰도록 맞춘 스타일. 구성 요소만 이 페이지 전용입니다.
   ========================================================= */

:root{
  /* 브랜드 — 메인 페이지와 동일 토큰 */
  --navy:#0f1f3d;
  --navy-700:#16305e;
  --navy-600:#1e3a8a;
  --blue:#1d4ed8;
  --blue-600:#2563eb;
  --blue-050:#eef4ff;
  --orange:#ea580c;
  --amber:#f59e0b;
  --cream:#faf9ea;
  --cream-2:#f4f1e2;
  --sky:#6fc3e8;
  --blue-step:#0b3fcb;
  --fee-cream:#fdfcf1;
  --fee-blue:#f4f8fd;
  --gray:#f7f9fc;

  /* 중성 */
  --ink:#1b2437;
  --ink-2:#3c4658;
  --muted:#6b7486;
  --line:#e4e8f0;
  --bg:#ffffff;
  --bg-soft:#f7f9fc;

  /* 형태 */
  --r-sm:10px;
  --r-md:16px;
  --r-lg:22px;
  --r-xl:28px;
  --shadow-sm:0 2px 8px rgba(15,31,61,.06);
  --shadow:0 10px 30px rgba(15,31,61,.08);
  --shadow-lg:0 24px 60px rgba(15,31,61,.14);
  --wrap:1200px;
  --header-h:74px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%; scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Pretendard Variable","Pretendard",-apple-system,BlinkMacSystemFont,"Apple SD Gothic Neo","Malgun Gothic","맑은 고딕",sans-serif;
  color:var(--ink);
  background:var(--bg);
  line-height:1.7;
  font-size:16px;
  word-break:keep-all;
  overflow-x:hidden;
}
img{max-width:100%; height:auto; display:block}
a{color:inherit; text-decoration:none}
ul,ol,dl,dd{margin:0; padding:0; list-style:none}
h1,h2,h3,h4,p,figure,address{margin:0; font-style:normal}
button{font:inherit; color:inherit; cursor:pointer}
:focus-visible{outline:3px solid var(--blue-600); outline-offset:3px; border-radius:6px}

.wrap{width:100%; max-width:var(--wrap); margin-inline:auto; padding-inline:24px}
section{scroll-margin-top:calc(var(--header-h) + 14px)}
.br-m{display:none}

/* ---------- 공통 타이포 (메인과 동일) ---------- */
.section-tag{
  display:inline-block;
  font-size:13px; font-weight:700; letter-spacing:.12em;
  color:var(--blue);
  background:var(--blue-050);
  border-radius:999px;
  padding:6px 14px;
  margin-bottom:16px;
}
.section-tag--light{color:#cfe0ff; background:rgba(255,255,255,.1)}
.section-title,
.h2-blue,
.h2-line,
.h2-underline{
  display:flex; flex-wrap:wrap; align-items:baseline;
  gap:.24em;
  font-size:clamp(26px,3.4vw,40px);
  line-height:1.35;
  font-weight:800;
  letter-spacing:-.02em;
  color:var(--navy);
  text-align:left;
  margin:0 0 14px;
}
.section-title--light,
.h2-blue--light{color:#fff}
.h2-line span,.h2-underline span{border:0; padding:0}
.section-lead{color:var(--muted); font-size:15px; margin-bottom:8px}

/* ---------- 버튼 (메인과 동일) ---------- */
.btn,
.btn-call,
.btn-line{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:14px 22px;
  border-radius:999px;
  border:1.5px solid transparent;
  font-weight:700; font-size:16px; line-height:1.2;
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space:nowrap;
}
.btn:hover,.btn-call:hover,.btn-line:hover{transform:translateY(-2px)}
.btn-call{
  background:linear-gradient(170deg,#f5fafe 0%, #e8f2ff 34%, #d9e9ff 70%, #cadfff 100%);
  color:#16357a;
  border:1px solid #a8c5ec;
  text-shadow:0 1px 0 rgba(255,255,255,.86);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 18px 24px -18px rgba(255,255,255,.98),
    inset 0 -14px 20px -16px rgba(96,132,198,.18),
    0 1px 0 #c6d8f2,
    0 3px 5px rgba(30,55,110,.09),
    0 10px 18px -6px rgba(96,132,198,.30),
    0 22px 36px -20px rgba(15,31,61,.22);
}
.btn-call:hover{
  background:linear-gradient(170deg,#f9fcff 0%, #eef6ff 34%, #e0edff 70%, #d2e4ff 100%);
  border-color:#93b8e8;
  color:#16357a;
  transform:translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 18px 24px -18px #fff,
    inset 0 -14px 20px -16px rgba(96,132,198,.20),
    0 2px 0 #c6d8f2,
    0 6px 10px rgba(30,55,110,.10),
    0 18px 28px -8px rgba(96,132,198,.34),
    0 34px 54px -24px rgba(15,31,61,.24);
}
.btn-call:active{
  transform:translateY(0);
  box-shadow:
    inset 0 2px 6px rgba(96,132,198,.22),
    inset 0 1px 0 rgba(255,255,255,.72),
    0 1px 0 #c6d8f2,
    0 2px 4px rgba(30,55,110,.10),
    0 6px 12px -6px rgba(96,132,198,.24);
}
.btn-call:focus-visible{outline:3px solid #16357a; outline-offset:3px}
.btn-call--shadow{
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 18px 24px -18px rgba(255,255,255,.98),
    inset 0 -14px 20px -16px rgba(96,132,198,.18),
    0 1px 0 #c6d8f2,
    0 3px 5px rgba(30,55,110,.09),
    0 12px 22px -6px rgba(96,132,198,.34),
    0 26px 42px -20px rgba(15,31,61,.24);
}
.btn--primary{
  background:linear-gradient(170deg,#f5fafe 0%, #e8f2ff 34%, #d9e9ff 70%, #cadfff 100%);
  color:#16357a;
  border:1px solid #a8c5ec;
  text-shadow:0 1px 0 rgba(255,255,255,.86);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 18px 24px -18px rgba(255,255,255,.98),
    inset 0 -14px 20px -16px rgba(96,132,198,.18),
    0 1px 0 #c6d8f2,
    0 3px 5px rgba(30,55,110,.09),
    0 10px 18px -6px rgba(96,132,198,.30),
    0 22px 36px -20px rgba(15,31,61,.22);
}
.btn--primary:hover{
  background:linear-gradient(170deg,#f9fcff 0%, #eef6ff 34%, #e0edff 70%, #d2e4ff 100%);
  border-color:#93b8e8;
  transform:translateY(-3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.98),
    inset 0 18px 24px -18px #fff,
    inset 0 -14px 20px -16px rgba(96,132,198,.20),
    0 2px 0 #c6d8f2,
    0 6px 10px rgba(30,55,110,.10),
    0 18px 28px -8px rgba(96,132,198,.34),
    0 34px 54px -24px rgba(15,31,61,.24);
}
.btn--primary:active{
  transform:translateY(0);
  box-shadow:
    inset 0 2px 6px rgba(96,132,198,.22),
    inset 0 1px 0 rgba(255,255,255,.72),
    0 1px 0 #c6d8f2,
    0 2px 4px rgba(30,55,110,.10),
    0 6px 12px -6px rgba(96,132,198,.24);
}
.btn--primary:focus-visible{outline:3px solid #16357a; outline-offset:3px}
.btn--ghost,.btn-line{
  background:linear-gradient(170deg,#ffffff 0%, #fafcff 40%, #f1f6ff 78%, #e8f1ff 100%);
  color:#16357a;
  border:1px solid #cfdff4;
  text-shadow:0 1px 0 #fff;
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 16px 22px -18px #fff,
    inset 0 -12px 18px -16px rgba(120,150,200,.14),
    0 1px 0 #e1e9f6,
    0 3px 5px rgba(30,55,110,.07),
    0 10px 18px -8px rgba(96,132,198,.24),
    0 20px 32px -20px rgba(15,31,61,.18);
}
.btn--ghost:hover,.btn-line:hover{
  background:linear-gradient(170deg,#ffffff 0%, #ffffff 40%, #f6faff 78%, #edf5ff 100%);
  color:#12295c; border-color:#a9c6ee;
  transform:translateY(-3px);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 16px 22px -18px #fff,
    inset 0 -12px 18px -16px rgba(120,150,200,.16),
    0 2px 0 #e1e9f6,
    0 6px 10px rgba(30,55,110,.08),
    0 16px 26px -10px rgba(96,132,198,.28),
    0 30px 48px -24px rgba(15,31,61,.20);
}
.btn--ghost:active,.btn-line:active{
  transform:translateY(0);
  box-shadow:
    inset 0 2px 5px rgba(120,150,200,.22),
    inset 0 1px 0 rgba(255,255,255,.9),
    0 1px 0 #e1e9f6,
    0 2px 4px rgba(30,55,110,.08);
}
.btn--ghost:focus-visible,.btn-line:focus-visible{outline:3px solid #16357a; outline-offset:3px}
.btn--block{width:100%}

/* =========================================================
   헤더 (메인과 동일)
   ========================================================= */
.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(180%) blur(10px);
  border-bottom:1px solid rgba(15,31,61,.07);
}
.header-inner{
  max-width:1360px; margin-inline:auto;
  height:var(--header-h);
  padding-inline:24px;
  display:flex; align-items:center; justify-content:space-between; gap:16px;
}
.brand img{height:32px; width:auto}
.nav{display:flex; align-items:center; gap:6px}
.nav-link{
  padding:10px 12px; border-radius:8px;
  font-size:15px; font-weight:600; color:var(--navy);
  transition:background .15s, color .15s;
  white-space:nowrap;
}
.nav-link:hover{background:var(--blue-050); color:var(--blue)}
.nav-link--soft{color:var(--ink-2); font-weight:500}
.nav-link.is-active{color:var(--blue); background:var(--blue-050); font-weight:700}
.nav-link.is-active::after{content:none}
.nav-call{
  display:inline-flex; align-items:center; gap:8px;
  margin-left:8px; padding:11px 18px;
  background:linear-gradient(170deg,#f6faff 0%, #eaf3ff 38%, #dcebff 74%, #cfe2ff 100%);
  color:#16357a;
  border:1px solid #aec9ee;
  border-radius:999px;
  font-weight:800; font-size:15px; white-space:nowrap;
  text-shadow:0 1px 0 rgba(255,255,255,.85);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.95),
    inset 0 12px 18px -16px rgba(255,255,255,.98),
    inset 0 -10px 16px -14px rgba(96,132,198,.16),
    0 1px 0 #c9daf3,
    0 2px 4px rgba(30,55,110,.08),
    0 8px 14px -6px rgba(96,132,198,.28);
  transition:transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.nav-call:hover{
  background:linear-gradient(170deg,#fafcff 0%, #f0f7ff 38%, #e3efff 74%, #d6e7ff 100%);
  color:#12295c; border-color:#95b9e8; transform:translateY(-2px);
  box-shadow:
    inset 0 1px 0 #fff,
    inset 0 12px 18px -16px #fff,
    inset 0 -10px 16px -14px rgba(96,132,198,.18),
    0 2px 0 #c9daf3,
    0 4px 7px rgba(30,55,110,.09),
    0 14px 22px -8px rgba(96,132,198,.32);
}
.nav-call:active{
  transform:translateY(0);
  box-shadow:
    inset 0 2px 5px rgba(96,132,198,.22),
    inset 0 1px 0 rgba(255,255,255,.8),
    0 1px 0 #c9daf3,
    0 2px 3px rgba(30,55,110,.08);
}
.nav-call:focus-visible{outline:3px solid #16357a; outline-offset:3px}
.nav-call__ico{font-size:14px}
.nav-call__num{font-variant-numeric:tabular-nums}
.nav-toggle{
  display:none; width:44px; height:44px;
  background:transparent; border:1px solid var(--line); border-radius:10px;
  padding:12px 10px;
}
.nav-toggle span{display:block; height:2px; background:var(--navy); border-radius:2px; margin:4px 0; transition:.2s}
.nav-toggle[aria-expanded="true"] span:nth-child(1){transform:translateY(6px) rotate(45deg)}
.nav-toggle[aria-expanded="true"] span:nth-child(2){opacity:0}
.nav-toggle[aria-expanded="true"] span:nth-child(3){transform:translateY(-6px) rotate(-45deg)}

/* =========================================================
   히어로 (메인과 같은 흰 베일 + 파란 제목)
   ========================================================= */
.hero{
  position:relative;
  min-height:min(64vh,560px);
  display:flex; align-items:center;
  padding:clamp(40px,5.5vw,80px) 0;
  isolation:isolate;
  overflow:hidden;
  background:#fff;
}
.hero__media{position:absolute; inset:0; z-index:-2}
.hero__media img{width:100%; height:100%; object-fit:cover; object-position:65% center}
.hero__veil{
  position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(90deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.92) 36%, rgba(255,255,255,.55) 60%, rgba(255,255,255,.12) 80%, rgba(255,255,255,0) 100%),
    radial-gradient(120% 80% at 0% 50%, rgba(255,255,255,.6), transparent 60%);
}
.hero__inner{
  position:relative;
  display:flex; flex-direction:column; justify-content:center;
  padding-block:clamp(8px,2vw,24px);
}
.hero__eyebrow{
  font-size:14px; font-weight:600; letter-spacing:.02em;
  color:var(--ink-2);
  margin-bottom:18px;
}
.hero__title{
  font-size:clamp(27px,3.4vw,50px);
  line-height:1.4;
  font-weight:900;
  letter-spacing:-.025em;
  color:var(--blue);
  -webkit-text-stroke:7px #fff;
  paint-order:stroke fill;
  text-shadow:0 6px 24px rgba(15,31,61,.10);
  max-width:19em;
}
.hero__cta{display:flex; flex-wrap:wrap; gap:12px; margin-top:clamp(24px,3vw,32px)}

/* =========================================================
   한정승인 · 상속포기 안내
   ========================================================= */
.intro{padding:clamp(40px,3.6vw,60px) 0}
.intro__grid{
  display:grid;
  grid-template-columns:minmax(0,1.15fr) minmax(260px,.85fr);
  gap:clamp(24px,3vw,52px);
  align-items:center;
}
.intro__body{min-width:0}
.intro__title{
  display:flex; flex-wrap:wrap; align-items:baseline;
  gap:clamp(14px,2vw,28px);
  margin-bottom:clamp(18px,2.4vw,28px);
}
.intro__word{
  font-size:clamp(26px,3.4vw,40px);
  font-weight:800; color:var(--navy);
  line-height:1.35; letter-spacing:-.02em;
  padding-bottom:6px;
  border-bottom:3px solid var(--blue);
}
.intro__lead{
  font-size:clamp(16px,1.5vw,19px);
  font-weight:700; color:var(--ink-2);
  margin-bottom:clamp(14px,2vw,22px);
}
.intro__accent{
  font-size:clamp(18px,2vw,24px);
  line-height:1.75;
  color:var(--orange);
  font-weight:700;
  margin-bottom:clamp(24px,3vw,34px);
}
.intro__fig img{
  width:100%; max-width:340px; margin-inline:auto;
  aspect-ratio:4/5; object-fit:cover; object-position:center 45%;
  border-radius:var(--r-lg); box-shadow:var(--shadow);
}

/* =========================================================
   업무분야 (메인 전문분야 섹션과 같은 다크 톤)
   ========================================================= */
.specialty{
  background:linear-gradient(180deg,#22262d 0%,#1b1f25 100%);
  padding:clamp(56px,7vw,100px) 0;
}
.specialty__grid{display:block}
.specialty__title{
  font-size:clamp(26px,3.4vw,40px);
  font-weight:800; color:#fff;
  letter-spacing:-.02em; line-height:1.35;
  margin:0 0 clamp(24px,3.4vw,34px);
}
.specialty__cards{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:18px;
}
.fcard{
  padding:clamp(24px,3vw,32px);
  border-radius:var(--r-lg);
  box-shadow:var(--shadow-sm);
}
.fcard__name{
  font-size:clamp(22px,2.4vw,28px);
  font-weight:800; margin-bottom:14px; letter-spacing:-.01em;
}
.fcard__text{font-size:15.5px; line-height:1.8}
.fcard--blue{background:var(--navy-700); color:#fff}
.fcard--blue .fcard__text{color:#dbe4f3}
.fcard--cream{background:var(--cream); color:var(--ink-2)}
.fcard--white{background:#fff; color:var(--ink-2)}
.fcard--photo{padding:0; overflow:hidden; background:#2b2b2b; border-radius:var(--r-lg)}
.fcard--photo img{width:100%; height:100%; min-height:240px; object-fit:cover}

/* =========================================================
   심판절차
   ========================================================= */
.process{padding:clamp(56px,7vw,100px) 0}
.process--waiver{background:var(--bg-soft)}
.point{
  position:relative;
  margin-top:6px;
  padding:14px 18px 14px 20px;
  background:var(--blue-050);
  border-radius:var(--r-md);
  font-size:15.5px; color:var(--navy-600); font-weight:600;
  line-height:1.7;
}
.point::before{content:none}
.point strong{font-weight:800; color:var(--navy)}
.point-list{margin-top:6px; display:grid; gap:8px}
.point-list li{
  position:relative; padding-left:18px;
  font-size:15.5px; color:var(--ink-2); line-height:1.7;
}
.point-list li::before{
  content:""; position:absolute; left:2px; top:.7em;
  width:6px; height:6px; border-radius:50%; background:#9aa6bd;
}

/* 단계 카드 — 메인 10단계 박스와 같은 톤, 아이콘은 그대로 살립니다 */
.steps{
  position:relative;
  display:grid; grid-template-columns:repeat(5,1fr);
  column-gap:clamp(18px,2vw,26px); row-gap:clamp(36px,4.2vw,50px);
  margin-top:clamp(26px,3.4vw,38px);
  padding:0; list-style:none;
}
.steps--square{grid-template-columns:repeat(4,1fr)}
.step{
  position:relative; z-index:1;
  display:flex; flex-direction:column; align-items:center; justify-content:flex-start;
  gap:7px; padding:clamp(14px,1.7vw,20px) 8px clamp(12px,1.5vw,17px);
  background:#fff; border:1px solid var(--line); border-radius:16px;
  box-shadow:0 2px 8px rgba(15,31,61,.05);
  text-align:center;
  transition:transform .2s ease, box-shadow .2s ease;
}
.step:hover{transform:translateY(-2px); box-shadow:0 12px 24px -14px rgba(15,31,61,.34)}
.step__ring{
  position:relative; flex:none;
  width:clamp(80px,8.7vw,112px);
  aspect-ratio:1;
  border-radius:50%;
  border:5px solid var(--sky);
  background:#fff;
  display:grid; place-items:center;
}
.step__ring img{width:54%; height:54%; object-fit:contain}
.steps--square .step__ring{border-radius:26%; border-color:var(--blue-step); border-width:6px}
.step__no{
  font-size:11px; font-weight:800; letter-spacing:.1em;
  color:var(--blue-step); line-height:1;
}
.steps--square .step__no{color:var(--blue-step)}
.step__label{
  font-size:clamp(12.5px,1.25vw,14px);
  font-weight:700; color:var(--navy);
  text-align:center; line-height:1.4; word-break:keep-all;
}

.flow__arrows{
  position:absolute; inset:0; width:100%; height:100%;
  overflow:visible; pointer-events:none; z-index:0;
}
.flow__arrows path{fill:none; stroke:#a9b8d2; stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round}
.flow__arrows polygon{fill:#a9b8d2}

/* 태블릿·휴대폰 가로: 2열 */
@media (max-width:960px){
  .steps,.steps--square{grid-template-columns:repeat(2,1fr); column-gap:20px; row-gap:34px}
  .step{flex-direction:row; justify-content:center; gap:10px; text-align:center; padding:12px 14px}
  .step__ring{width:clamp(64px,9.8vw,82px)}
  .step__label{text-align:center}
}

.process__photo{margin-top:clamp(26px,3.4vw,40px)}
.process__photo img{width:100%; max-height:420px; object-fit:cover; border-radius:var(--r-lg); box-shadow:var(--shadow)}

/* =========================================================
   비용 안내 (메인 비용 카드와 동일)
   ========================================================= */
.fees{padding:clamp(56px,7vw,100px) 0; background:#fff}
#feeFollowGroup{margin-top:clamp(30px,3.6vw,44px)}
.fee-group{font-size:17px; font-weight:800; color:var(--navy); line-height:1.4}

.fee-grid{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:clamp(24px,2.8vw,36px);
  margin:clamp(22px,3vw,32px) 0 0;
}
/* 카드 안쪽을 세로 flex로 세워, 카드마다 내용 길이가 달라도
   하단 총비용 줄이 같은 높이에 나란히 오게 한다. */
.fee{
  display:flex; flex-direction:column; height:100%;
  background:linear-gradient(180deg,#fdfcf1,var(--cream));
  border:1px solid #eee9cf;
  border-radius:var(--r-lg);
  padding:clamp(16px,1.8vw,22px) clamp(16px,1.9vw,22px);
  box-shadow:0 10px 26px rgba(60,55,20,.08);
}
.fee--cream{background:linear-gradient(180deg,#fdfcf1,var(--cream))}
.fee--blue{background:linear-gradient(180deg,#f7fbff,#eef4fb); border-color:#d9e4f2; box-shadow:0 10px 26px rgba(20,50,100,.08)}
.fee__title{
  font-size:19px; font-weight:800; color:var(--navy); line-height:1.3;
  text-align:center; margin-bottom:10px;
}
.fee__title span{display:inline-block; padding-bottom:0; border:0}
.fee__sub{text-align:center; font-size:12.5px; color:var(--blue); font-weight:700; margin-top:-6px; margin-bottom:8px}
.fee__k{font-size:12.5px; color:var(--ink-2); text-align:left; margin-top:10px; line-height:1.5}
.fee__v{font-size:14px; color:var(--ink); font-variant-numeric:tabular-nums; margin-top:1px}
.fee__v--small{font-size:12px; line-height:1.65; margin-top:8px; color:var(--muted)}
.fee__note{font-size:12.5px; color:var(--ink-2); margin-top:11px; line-height:1.5}
.fee__list{margin-bottom:11px}
.fee__total{
  display:flex; flex-wrap:wrap; align-items:baseline; gap:5px;
  margin-top:auto; padding-top:9px;
  border-top:1px solid #e3ddc4;
  font-size:12.5px; color:var(--ink-2);
}
.fee__total strong{font-size:clamp(19px,2vw,23px); font-weight:900; color:var(--blue)}

/* =========================================================
   후속절차
   ========================================================= */
.follow{padding:clamp(56px,7vw,100px) 0; background:var(--bg-soft)}
.icon-row{
  display:grid; grid-template-columns:repeat(5,1fr);
  gap:18px;
  margin-top:clamp(26px,3.4vw,38px);
  text-align:center;
}
.icon-row img{
  width:clamp(56px,6vw,88px); height:auto;
  margin:0 auto 10px;
  object-fit:contain;
}
.icon-row span{display:block; font-size:15px; font-weight:700; color:var(--navy-600)}

/* =========================================================
   주의사항 카드 (메인 사례 카드와 동일 톤)
   ========================================================= */
.notes{padding:clamp(56px,7vw,100px) 0; background:#fff}
.notes--cream{background:var(--cream)}
.quote-grid{
  display:grid; grid-template-columns:repeat(3,1fr);
  gap:18px;
  margin-top:clamp(22px,3vw,32px);
}
.quote{
  position:relative;
  background:#fff; border-radius:var(--r-md);
  padding:22px 24px 20px;
  box-shadow:0 8px 20px rgba(60,55,20,.08);
  border:1px solid #efeada;
}
.quote::before{content:"❞"; display:block; color:#9aa6bd; font-size:22px; line-height:1; margin-bottom:8px}
.quote p{font-size:14.5px; line-height:1.85; color:var(--ink-2)}
.quote--gray{background:#fff; box-shadow:0 8px 20px rgba(60,55,20,.08)}

/* =========================================================
   안내·면책 문구
   ========================================================= */
.disclaimer{
  margin-top:22px;
  font-size:12.5px; line-height:1.75; color:var(--muted);
  background:var(--bg-soft); border:1px solid var(--line);
  border-radius:12px; padding:12px 16px;
}
.text-link{color:var(--blue); font-weight:700; text-decoration:underline; text-underline-offset:3px}

/* =========================================================
   상담 폼 (메인과 동일)
   ========================================================= */
.consult{
  padding:clamp(56px,7vw,100px) 0;
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(37,99,235,.34), transparent 55%),
    linear-gradient(160deg,#101d38,#0b1526);
  color:#fff;
}
.consult__grid{display:grid; grid-template-columns:1fr 1.05fr; gap:clamp(28px,4vw,56px); align-items:center}
.consult .section-tag{background:rgba(255,255,255,.12); color:#cfe0ff}
.consult .section-title{display:block; color:#fff}
.consult__lead{color:#c3cee2; font-size:15px; margin-top:6px}
.consult__info{display:grid; gap:10px; margin-top:22px; font-size:14.5px; color:#dbe4f3}
.consult__info li{display:flex; gap:12px}
.consult__info strong{flex:0 0 74px; color:#93b2ea; font-weight:700}
.consult__info a{text-decoration:underline; text-underline-offset:3px}
.consult__privacy{margin-top:18px; font-size:12.5px; color:#8fa0bf}
.consult__privacy-link{color:#cfe0ff; font-weight:700; text-decoration:underline; text-underline-offset:3px}
.consult__disc{margin-top:10px; font-size:12px; line-height:1.7; color:#8fa0bf; border-left:2px solid rgba(207,224,255,.4); padding-left:10px}
.consult__card{
  background:#fff; color:var(--ink);
  border-radius:var(--r-xl);
  padding:clamp(22px,3vw,34px);
  box-shadow:var(--shadow-lg);
}

/* =========================================================
   오시는 길 (메인과 동일)
   ========================================================= */
.location{padding:clamp(56px,7vw,100px) 0; background:#fff}
.location .section-title{display:block}
.location__grid{display:grid; grid-template-columns:1.15fr 1fr; gap:clamp(20px,3vw,36px); align-items:stretch; margin-top:clamp(22px,3vw,34px)}
.location__map{
  border-radius:var(--r-lg); overflow:hidden;
  border:1px solid var(--line); box-shadow:var(--shadow);
  min-height:340px; background:var(--bg-soft);
}
.location__map iframe{width:100%; height:100%; min-height:340px; border:0; display:block}
.location__info{
  background:var(--bg-soft);
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  padding:clamp(22px,3vw,32px);
}
.location__addr{font-size:clamp(18px,2vw,21px); font-weight:800; color:var(--navy); line-height:1.5}
.info-list{margin:18px 0 22px; display:grid; gap:12px}
.info-list div{display:flex; gap:14px; font-size:14.5px}
.info-list dt{flex:0 0 70px; color:var(--muted); font-weight:700}
.info-list dd{color:var(--ink-2); line-height:1.6}
.info-list a{color:var(--blue); font-weight:700; text-decoration:underline; text-underline-offset:3px}
.location__btns{display:flex; gap:10px; flex-wrap:wrap}

/* =========================================================
   푸터 (메인과 동일)
   ========================================================= */
.footer{background:var(--navy); color:#c6d1e3; padding:clamp(40px,5vw,64px) 0 clamp(30px,4vw,40px); scroll-margin-top:calc(var(--header-h) + 14px)}
.footer__top{
  display:flex; justify-content:space-between; gap:28px; flex-wrap:wrap;
  padding-bottom:26px; border-bottom:1px solid rgba(255,255,255,.12);
}
.footer__brand{min-width:0}
.footer__logo{height:30px; width:auto; filter:brightness(0) invert(1); opacity:.92; margin-bottom:14px}
.footer__addr{font-size:13px; line-height:1.8; color:#9fb0cc}
.footer__name{font-size:15px; color:#fff; font-weight:800; letter-spacing:.01em}
.footer__addr a{color:#dbe4f3}
.footer__addr a:hover{color:#fff; text-decoration:underline}
.footer__mail{margin-top:10px; font-size:13px; color:#9fb0cc}
.footer__mail a{color:#dbe4f3}
.footer__mail a:hover{color:#fff; text-decoration:underline}
.footer__sns{display:flex; align-items:center; gap:14px; margin-top:16px}
.footer__sns img{height:26px; width:auto; object-fit:contain}
.footer__sns li:nth-child(2) img{height:30px}
.footer__sns li:nth-child(3) img{height:24px; border-radius:4px}
.footer__hours{padding-top:2px; font-size:13px; color:#9fb0cc; line-height:1.9}
.footer__label{font-size:13px; color:#93b2ea; font-weight:700; margin-top:14px}
.footer__label:first-child{margin-top:0}
.footer__strong{font-size:15px; color:#e6edf9; font-weight:700; margin-top:2px}
.footer__text{font-size:13px; color:#9fb0cc}
.footer__links{
  display:flex; flex-wrap:wrap; gap:8px 20px;
  padding:18px 0;
  font-size:14px;
}
.footer__links a{color:#dbe4f3}
.footer__links a:hover{color:#fff; text-decoration:underline}
.footer__legal{margin-top:6px; padding-top:14px; border-top:1px solid rgba(255,255,255,.12); font-size:12px; line-height:1.8; color:#8fa0bf}
.footer__copy{margin-top:12px; font-size:12.5px; color:#7e8ea9}

/* =========================================================
   모바일 전화 버튼 · 모달 · 폼 · 토스트 (메인과 동일)
   ========================================================= */
.callbar{
  position:fixed; z-index:55;
  left:50%; transform:translateX(-50%);
  bottom:calc(14px + env(safe-area-inset-bottom));
  display:none; align-items:center; gap:8px;
  padding:13px 26px;
  background:linear-gradient(170deg,#f6faff 0%, #eaf3ff 36%, #dbeaff 72%, #cde1ff 100%);
  color:#16357a;
  border:1px solid #a8c5ec;
  border-radius:999px;
  font-weight:800; font-size:16px;
  text-shadow:0 1px 0 rgba(255,255,255,.86);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.96),
    inset 0 16px 22px -18px rgba(255,255,255,.98),
    inset 0 -12px 18px -16px rgba(96,132,198,.18),
    0 1px 0 #c6d8f2,
    0 4px 6px rgba(30,55,110,.10),
    0 12px 22px -6px rgba(96,132,198,.34),
    0 24px 38px -18px rgba(15,31,61,.26);
}
.callbar:active{
  transform:translateX(-50%) translateY(1px);
  box-shadow:
    inset 0 2px 6px rgba(96,132,198,.22),
    inset 0 1px 0 rgba(255,255,255,.75),
    0 1px 0 #c6d8f2,
    0 3px 6px rgba(30,55,110,.10);
}
.modal{position:fixed; inset:0; z-index:80; display:grid; place-items:center; padding:18px}
.modal[hidden]{display:none}
.modal__backdrop{position:absolute; inset:0; background:rgba(9,17,33,.62); backdrop-filter:blur(3px)}
.modal__panel{
  position:relative; width:min(560px,100%);
  max-height:calc(100vh - 36px); overflow:auto;
  background:#fff; border-radius:var(--r-xl);
  box-shadow:var(--shadow-lg);
  color:var(--ink);
}
.modal__head{
  position:sticky; top:0; z-index:2;
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 22px; background:#fff; border-bottom:1px solid var(--line);
  border-radius:var(--r-xl) var(--r-xl) 0 0;
}
.modal__title{font-size:18px; font-weight:800; color:var(--navy)}
.modal__close{width:36px; height:36px; border:0; border-radius:50%; background:var(--bg-soft); color:var(--ink-2); font-size:15px}
.modal__body{padding:22px}
body.is-locked{overflow:hidden}

.form{display:grid; gap:16px}
.form__row{display:grid; grid-template-columns:1fr 1fr; gap:14px}
.field{display:grid; gap:7px}
.field__label{font-size:14px; font-weight:700; color:var(--navy)}
.field__label em{color:var(--orange); font-style:normal}
.field input,.field select,.field textarea{
  width:100%; padding:13px 14px;
  border:1.5px solid var(--line); border-radius:12px;
  font:inherit; font-size:15px; color:var(--ink);
  background:#fff;
  transition:border-color .18s, box-shadow .18s;
}
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none; border-color:var(--blue-600); box-shadow:0 0 0 4px rgba(37,99,235,.12);
}
.field textarea{resize:vertical; min-height:110px; line-height:1.6}
.check{display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color:var(--ink-2); line-height:1.55}
.check input{margin-top:3px; width:18px; height:18px; flex:none; accent-color:var(--blue)}
.check em{font-style:normal; color:var(--muted); font-size:12.5px}
.check__link{color:var(--blue); font-weight:700; text-decoration:underline; text-underline-offset:2px; white-space:nowrap}

/* ---------- 상속 정보 : 상담분야 아래 한 줄(상속개시일·사망신고·안심상속) ---------- */
.inherit{display:block}
.inherit__label{display:block; font-size:14px; font-weight:700; color:var(--navy); margin-bottom:7px}
.inherit__row{
  display:flex; flex-wrap:wrap; align-items:center;
  gap:10px 12px;
  padding:12px 14px;
  background:var(--bg-soft);
  border:1.5px solid var(--line);
  border-radius:12px;
}
.inherit__group{display:inline-flex; align-items:center; gap:9px; min-width:0}
.inherit__item{
  display:inline-flex; align-items:center; gap:7px;
  font-size:13.5px; font-weight:700; color:var(--navy);
  line-height:1.4; cursor:pointer; white-space:nowrap;
}
.inherit__item input{
  width:18px; height:18px; margin:0; flex:none;
  accent-color:var(--blue); cursor:pointer;
}
.inherit__date{
  width:auto; min-width:140px; flex:0 1 auto;
  padding:9px 11px;
  border:1.5px solid #d9e0ec; border-radius:10px;
  font:inherit; font-size:14px; line-height:1.3; color:var(--ink);
  background:#fff;
  transition:border-color .18s, box-shadow .18s;
}
.inherit__date:focus{
  outline:none; border-color:var(--blue-600); box-shadow:0 0 0 4px rgba(37,99,235,.12);
}
.inherit__date::-webkit-calendar-picker-indicator{cursor:pointer; opacity:.65}
.inherit__date:hover::-webkit-calendar-picker-indicator{opacity:1}
.form__err{margin:0; color:#b91c1c; font-size:13.5px; font-weight:600; background:#fef2f2; border:1px solid #fecaca; border-radius:10px; padding:10px 12px}
.form__note{margin:0; font-size:12.5px; color:var(--muted); text-align:center}
.form__note a{color:var(--blue); font-weight:700; text-decoration:underline}
.form__disc{margin:0; font-size:12px; line-height:1.7; color:var(--muted); border-top:1px dashed var(--line); padding-top:10px}
.form__disc a{color:var(--blue); font-weight:700}
.form-done{text-align:center; padding:8px 0}
.form-done__ico{
  width:56px; height:56px; margin:0 auto 14px;
  display:grid; place-items:center;
  background:#ecfdf5; color:#059669; border-radius:50%;
  font-size:26px; font-weight:900;
}
.form-done__title{font-size:20px; font-weight:800; color:var(--navy); margin-bottom:8px}
.form-done__text{font-size:14.5px; color:var(--ink-2)}
.form-done__meta{
  margin:10px 0 0; padding:9px 12px;
  background:var(--bg-soft); border:1px solid var(--line); border-radius:10px;
  font-size:12.5px; line-height:1.6; color:var(--ink-2);
  word-break:keep-all;
}
.form-done__demo{
  margin:18px 0; padding:12px 14px; text-align:left;
  background:#fff8e6; border:1px solid #f5e0a8; border-radius:12px;
  font-size:12.5px; color:#7c5a12; line-height:1.65;
}
.form-done__btns{display:flex; gap:10px; flex-wrap:wrap; justify-content:center}
.linkbtn{margin-top:16px; background:none; border:0; font-size:13.5px; color:var(--muted); text-decoration:underline}

.toast{
  position:fixed; z-index:120;
  left:50%; bottom:calc(100px + env(safe-area-inset-bottom));
  transform:translate(-50%,20px);
  background:var(--navy); color:#fff;
  padding:12px 20px; border-radius:999px;
  font-size:14px; font-weight:600;
  box-shadow:var(--shadow-lg);
  opacity:0; pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
  max-width:calc(100vw - 32px); text-align:center;
}
.toast.is-on{opacity:1; transform:translate(-50%,0)}

/* ---------- 편집 모드 ---------- */
.editor{position:fixed; z-index:100; right:18px; bottom:calc(18px + env(safe-area-inset-bottom))}
.editor__actions{display:flex; flex-direction:column; align-items:flex-end; gap:8px}
.ebtn{
  display:inline-flex; align-items:center; gap:7px;
  padding:11px 15px; border-radius:12px;
  border:1px solid rgba(255,255,255,.16);
  background:rgba(15,31,61,.92); color:#fff;
  font-size:13.5px; font-weight:700;
  box-shadow:0 8px 20px rgba(9,17,33,.28);
  backdrop-filter:blur(6px);
  transition:transform .15s, background .2s;
}
.ebtn:hover{transform:translateY(-2px); background:#16294f}
.ebtn--toggle{padding:14px 18px; font-size:14.5px; background:linear-gradient(135deg,#1d4ed8,#16305e)}
.ebtn--toggle[aria-pressed="true"]{background:linear-gradient(135deg,#ea580c,#b6420a)}
.ebtn--danger{background:rgba(120,20,30,.94)}
.ebtn--danger:hover{background:#8f1a28}
.ebtn__ico{font-size:15px; line-height:1}
.ebtn__label{white-space:nowrap}
.editor__panel{display:flex; flex-direction:column; align-items:flex-end; gap:8px}
.editor__panel[hidden]{display:none}
body.edit-mode [data-edit]{
  outline:1.5px dashed rgba(29,78,216,.55);
  outline-offset:3px;
  border-radius:4px;
  cursor:text;
  transition:background .15s, outline-color .15s;
}
body.edit-mode [data-edit]:hover{background:rgba(29,78,216,.07); outline-color:var(--blue)}
body.edit-mode [data-edit]:focus{outline:2px solid var(--blue); background:#fff; box-shadow:0 0 0 5px rgba(29,78,216,.12)}
body.edit-mode a[href]{cursor:text}

/* =========================================================
   반응형 — 노트북/태블릿 가로 (960~1024px)
   ========================================================= */
@media (max-width:1024px){
  :root{--header-h:68px}
  .header-inner{padding-inline:18px}
  .nav{gap:2px}
  .nav-link{padding:9px 9px; font-size:14px}
  .nav-call{padding:10px 14px; font-size:14px}
  .nav-link--soft{display:none}
  .hero__title{-webkit-text-stroke:5px #fff}

  .intro__grid{grid-template-columns:1fr; gap:26px}
  .intro__fig img{max-width:340px}
  .specialty__cards{grid-template-columns:repeat(2,1fr)}
  .fee-grid{grid-template-columns:repeat(2,1fr); gap:clamp(20px,3vw,28px)}
  .quote-grid{grid-template-columns:repeat(2,1fr)}
  .quote-grid--5 .quote:last-child{grid-column:span 1}
  .consult__grid{grid-template-columns:1fr}
  .location__grid{grid-template-columns:1fr}
}

@media (max-width:860px){
  .nav{
    position:fixed; inset:var(--header-h) 0 auto 0;
    display:none; flex-direction:column; align-items:stretch;
    gap:2px; padding:12px 16px 20px;
    background:#fff; border-bottom:1px solid var(--line);
    box-shadow:0 20px 30px rgba(15,31,61,.12);
    max-height:calc(100vh - var(--header-h)); overflow:auto;
  }
  .nav.is-open{display:flex}
  .nav-link{padding:14px 12px; font-size:16px; border-radius:10px}
  .nav-link--soft{display:block}
  .nav-call{justify-content:center; margin:8px 0 0; padding:14px}
  .nav-toggle{display:block}
  .header-inner{justify-content:space-between}
  .brand img{height:28px}
}

/* =========================================================
   반응형 — 모바일 가로/태블릿 세로 (541~720px)
   카드가 1열로 길게 늘어나지 않도록 2열 유지
   ========================================================= */
@media (max-width:720px){
  .wrap{padding-inline:18px}
  .hero{min-height:auto; padding:30px 0 38px}
  .hero__media img{object-position:72% center}
  .hero__veil{background:linear-gradient(180deg, rgba(255,255,255,.97) 0%, rgba(255,255,255,.94) 45%, rgba(255,255,255,.7) 70%, rgba(255,255,255,.25) 100%)}
  .hero__cta .btn-call,.hero__cta .btn-line{flex:1 1 auto}

  .intro,.specialty,.process,.fees,.follow,.notes,.location{padding:44px 0}
  .consult{padding:44px 0 56px}

  .fee-grid{grid-template-columns:repeat(2,1fr); gap:22px}
  .quote-grid{grid-template-columns:repeat(2,1fr); gap:12px}
  .fee{padding:15px 15px}
  .fee__v{font-size:14px}
  .quote{padding:16px 16px 14px}
  .quote p{font-size:14px}
  .icon-row{gap:8px}
  .icon-row span{font-size:13px}
  .steps,.steps--square{column-gap:18px; row-gap:30px}
  .step__label{font-size:12px}
}

/* =========================================================
   반응형 — 모바일 세로 (540px 이하): 1열
   ========================================================= */
@media (max-width:640px){
  body{font-size:15px; line-height:1.65}
  .br-m{display:block}
  .hero__eyebrow{font-size:12.5px; margin-bottom:12px}
  .hero__title{font-size:clamp(23px,6.4vw,30px); -webkit-text-stroke:4px #fff; line-height:1.46}
  .hero__cta{gap:10px}
  .hero__cta > .btn-call,
  .hero__cta > .btn-line{flex:1 1 100%; min-height:52px}

  .intro__title{gap:12px}
  .intro__word{font-size:clamp(24px,6.4vw,30px)}
  .intro__accent{line-height:1.7}
  .intro__fig img{max-width:300px}

  .fcard--photo img{min-height:190px; max-height:240px}

  .steps,.steps--square{grid-template-columns:repeat(2,1fr); column-gap:20px; row-gap:34px}
  .step{flex-direction:column; justify-content:center; gap:5px; padding:12px 8px 11px; text-align:center}
  .step__ring{width:clamp(70px,20vw,88px); border-width:4px}
  .steps--square .step__ring{border-width:5px}
  .step__no{font-size:10px}
  .step__label{font-size:12.5px; letter-spacing:-.01em; text-align:center}

  .icon-row{grid-template-columns:repeat(3,1fr); gap:14px 8px}
  .icon-row img{width:52px}
  .icon-row span{font-size:12.5px}

  .footer{padding-bottom:96px}
  .footer__top{flex-direction:column; gap:22px}
  .footer__links{gap:8px 16px}

  .callbar{display:inline-flex}
  .editor{right:12px; bottom:calc(78px + env(safe-area-inset-bottom))}
  .ebtn{padding:10px 12px; font-size:12.5px}
  .ebtn--toggle{padding:12px 14px; font-size:13.5px}

  .modal{padding:0; align-items:end}
  .modal__panel{width:100%; max-height:92vh; border-radius:22px 22px 0 0}
  .modal__head{border-radius:22px 22px 0 0}
  .consult__card{padding:20px 18px; border-radius:20px}
  .form__row{grid-template-columns:1fr}
  .inherit__row{gap:9px 14px; padding:11px 12px}
  .inherit__group{flex:1 1 100%; gap:8px}
  .inherit__date{flex:1 1 auto; width:100%; min-width:0}
  .form-done__btns .btn{flex:1 1 100%}

  .location__map,.location__map iframe{min-height:260px}
  .info-list div{flex-direction:column; gap:2px}
  .info-list dt{flex:none}
  .location__btns .btn{flex:1 1 100%}

  .toast{bottom:calc(140px + env(safe-area-inset-bottom))}
}

/* 모바일 세로 좁은 화면(540px 이하)에서만 1열 */
@media (max-width:520px){
  .specialty__cards,
  .quote-grid{grid-template-columns:1fr; gap:12px}
  .fee-grid{grid-template-columns:1fr; gap:18px}
  .fcard--photo img{min-height:190px; max-height:240px}
}

@media (max-width:380px){
  .steps,.steps--square{grid-template-columns:repeat(2,1fr); row-gap:24px}
  .intro__word{font-size:22px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *{transition:none !important; animation:none !important}
}

@media print{
  .site-header,.editor,.callbar,.toast,.hero__cta,.nav-toggle{display:none !important}
  body{color:#000}
  .field,.footer{background:#fff !important; color:#000 !important}
}
