/* 법무법인 태광 회생파산센터 RESET — 2026 개편 */
:root {
  --ink: #142b50;          /* 로고 네이비 */
  --ink-2: #1d3a68;
  --night: #0c1a33;        /* 메인 하늘 */
  --paper: #f4f6f9;
  --white: #fff;
  --line: #dce2eb;
  --text: #1e2a40;
  --muted: #5b677c;
  --dawn: #f0a93b;         /* 새벽빛: 버튼·포인트 전용 */
  --dawn-soft: #fdf1dc;
  --err: #c0392b;
  --serif: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  --sans: 'Pretendard Variable', Pretendard, -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --wrap: 1160px;
  --head-h: 72px;
  --radius-s: 6px;
  --radius-m: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--text); background: var(--white); word-break: keep-all; overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.35; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--dawn); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 16px; background: var(--ink); color: #fff; border-radius: var(--radius-s); text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.br-pc { display: none; }
@media (min-width: 900px) { .br-pc { display: inline; } }

/* ---------- 버튼 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.btn-dawn { background: var(--dawn); color: var(--night); }
.btn-dawn:hover { background: #f5b955; }
.btn-line { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.1); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; font-weight: 600; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: inherit; }
.text-link { display: inline-block; margin-top: 18px; font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--dawn); padding-bottom: 2px; }

/* ---------- 헤더 ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h); color: #fff; transition: background-color .25s, color .25s, box-shadow .25s; }
.site-header.is-solid { background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { flex: none; display: block; }
.brand img { width: 170px; height: auto; }
.brand-dark { display: none; }
.site-header.is-solid .brand-light { display: none; }
.site-header.is-solid .brand-dark { display: block; }
.gnb { margin-left: auto; }
.gnb ul { list-style: none; display: flex; gap: 4px; }
.gnb a { display: block; padding: 8px 12px; text-decoration: none; font-size: 15.5px; font-weight: 600; border-radius: var(--radius-s); }
.gnb ul a:hover { background: rgba(127,140,160,.14); }
.gnb .gnb-call { display: none; }
.header-call { flex: none; padding: 8px 16px; border-radius: 999px; background: var(--dawn); color: var(--night); font-weight: 800; text-decoration: none; font-size: 15px; letter-spacing: .01em; }
.menu-btn { display: none; }

@media (max-width: 1100px) {
  .gnb a { padding: 8px 8px; font-size: 14.5px; }
}
@media (max-width: 960px) {
  :root { --head-h: 60px; }
  .brand img { width: 150px; }
  .header-call { margin-left: auto; padding: 7px 13px; font-size: 14px; }
  .menu-btn { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; padding: 0 10px; background: none; border: 0; cursor: pointer; color: inherit; }
  .menu-btn span:not(.sr-only) { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .gnb { position: fixed; inset: var(--head-h) 0 0; background: #fff; color: var(--ink); padding: 12px 20px 32px; transform: translateX(100%); visibility: hidden; transition: transform .25s, visibility 0s .25s; overflow-y: auto; }
  .gnb.is-open { transform: none; visibility: visible; transition: transform .25s; }
  .gnb ul { flex-direction: column; gap: 0; }
  .gnb ul a { padding: 16px 4px; font-size: 18px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .gnb .gnb-call { display: flex; justify-content: center; margin-top: 24px; padding: 16px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 700; }
  body.menu-open { overflow: hidden; }
  body.menu-open .site-header { background: #fff; color: var(--ink); }
  body.menu-open .brand-light { display: none; }
  body.menu-open .brand-dark { display: block; }
}

/* ---------- 메인 (새벽 지평선) ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; color: #fff; overflow: hidden; background: var(--night); isolation: isolate; }
.hero-sky { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, #08142a 0%, #0c1a33 45%, #1a2f55 78%, #2b3f66 100%); }
.hero-sun { position: absolute; left: 50%; bottom: -46vmax; width: 92vmax; height: 92vmax; transform: translateX(-50%) translateY(8vmax); border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(255,214,140,.95) 0%, rgba(240,169,59,.55) 18%, rgba(240,169,59,.18) 34%, rgba(240,169,59,0) 52%); opacity: .35; animation: dawn 3.2s cubic-bezier(.22,.7,.2,1) .2s forwards; }
.hero-horizon { position: absolute; left: 0; right: 0; bottom: 18%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,214,140,.7) 30%, rgba(255,214,140,.9) 50%, rgba(255,214,140,.7) 70%, transparent); opacity: 0; animation: horizon 2.4s ease-out 1s forwards; }
@keyframes dawn { to { transform: translateX(-50%) translateY(0); opacity: 1; } }
@keyframes horizon { to { opacity: 1; } }
.hero-video { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; }
.hero.has-video .hero-sky::after { content: ''; position: absolute; inset: 0; z-index: 2; background: rgba(8,20,42,.45); }
.hero-inner { padding: calc(var(--head-h) + 40px) 0 120px; }
.hero-brand { font-size: 16px; font-weight: 600; color: rgba(255,255,255,.75); margin-bottom: 18px; }
.hero h1 { font-family: var(--serif); font-weight: 700; font-size: clamp(36px, 6.4vw, 72px); line-height: 1.22; letter-spacing: -.02em; }
.hero-lead { margin-top: 24px; max-width: 40em; font-size: clamp(17px, 1.6vw, 20px); color: rgba(255,255,255,.86); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 44px; font-size: 15px; color: rgba(255,255,255,.72); }
.hero-facts li { position: relative; padding-left: 16px; }
.hero-facts li::before { content: ''; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; border-radius: 50%; background: var(--dawn); }
.video-toggle { position: absolute; right: 20px; bottom: 96px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.5); background: rgba(8,20,42,.5); color: #fff; font-size: 14px; cursor: pointer; }

/* ---------- 공통 섹션 ---------- */
.sec { padding: 112px 0; }
.sec-head { max-width: 46em; margin-bottom: 52px; }
.sec-head h2, .calc-copy h2, .about-copy h2, .consult-head h2 { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -.02em; color: var(--ink); }
.sec-head p { margin-top: 16px; font-size: 18px; color: var(--muted); }
@media (max-width: 720px) {
  body { font-size: 16px; }
  .sec { padding: 76px 0; }
  .sec-head { margin-bottom: 36px; }
  .sec-head p { font-size: 16.5px; }
}

/* ---------- ② 상황 공감 ---------- */
.situation { background: var(--paper); }
.sit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: start; }
.sit-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.sit-list [role=tab] { text-align: left; padding: 20px 44px 20px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); font-size: 18px; font-weight: 600; color: var(--muted); cursor: pointer; position: relative; line-height: 1.5; }
.sit-list [role=tab]::after { content: ''; position: absolute; right: 10px; top: 50%; width: 9px; height: 9px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: translateY(-50%) rotate(45deg); opacity: .4; }
.sit-list [role=tab]:hover { color: var(--ink); }
.sit-list [role=tab][aria-selected=true] { color: var(--ink); font-weight: 800; }
.sit-list [role=tab][aria-selected=true]::after { opacity: 1; color: var(--dawn); }
.sit-panels { position: sticky; top: calc(var(--head-h) + 24px); }
.sit-panel { background: #fff; border-radius: var(--radius-m); padding: 44px 44px 40px; border: 1px solid var(--line); border-top: 4px solid var(--ink); }
.sit-q { font-family: var(--serif); font-size: clamp(22px, 2.3vw, 28px); font-weight: 700; color: var(--ink); line-height: 1.45; margin-bottom: 18px; }
.sit-panel > p:not(.sit-q) { color: #3a4659; }
@media (max-width: 860px) {
  .sit { grid-template-columns: 1fr; gap: 20px; }
  .sit-list { flex-direction: row; overflow-x: auto; border: 0; gap: 8px; padding-bottom: 6px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
  .sit-list [role=tab] { flex: none; width: auto; max-width: 70vw; padding: 12px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; font-size: 15px; scroll-snap-align: start; white-space: nowrap; }
  .sit-list [role=tab]::after { display: none; }
  .sit-list [role=tab][aria-selected=true] { background: var(--ink); color: #fff; border-color: var(--ink); }
  .sit-panels { position: static; }
  .sit-panel { padding: 28px 24px; }
}

/* ---------- ③ 강점 ---------- */
.str-list { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; border-top: 2px solid var(--ink); }
.str-list li { grid-column: span 2; padding: 36px 32px 40px 0; border-bottom: 1px solid var(--line); }
.str-list li:nth-child(n+4) { grid-column: span 3; }
.str-list li + li { padding-left: 32px; border-left: 1px solid var(--line); }
.str-list li:nth-child(4) { padding-left: 0; border-left: 0; }
.str-fig { font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 4.6vw, 60px); line-height: 1; color: var(--ink); letter-spacing: -.03em; margin-bottom: 22px; }
.str-list h3 { font-size: 20px; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.str-list li > p:last-child { color: var(--muted); font-size: 16.5px; }
@media (max-width: 860px) {
  .str-list { grid-template-columns: 1fr; }
  .str-list li, .str-list li:nth-child(n+4) { grid-column: auto; padding: 28px 0; border-left: 0 !important; padding-left: 0 !important; display: grid; grid-template-columns: 100px 1fr; column-gap: 18px; }
  .str-fig { font-size: 30px; margin: 4px 0 0; grid-row: span 2; word-break: keep-all; }
  .str-list h3 { font-size: 18px; margin-bottom: 6px; }
}

/* ---------- 계산기 ---------- */
.calc { background: var(--ink); color: #fff; }
.calc-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.calc-copy h2 { color: #fff; }
.calc-copy p { margin-top: 18px; color: rgba(255,255,255,.8); font-size: 18px; }
.calc-box { background: #fff; color: var(--text); border-radius: var(--radius-m); padding: 36px; }
.calc-field { border: 0; margin: 0 0 26px; padding: 0; display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 6px 12px; }
.calc-field label, .calc-field legend { font-weight: 700; color: var(--ink); padding: 0; }
.calc-field output { font-weight: 800; color: var(--ink); font-size: 20px; }
.calc-field input[type=range] { grid-column: 1 / -1; width: 100%; accent-color: var(--ink); height: 28px; }
.calc-scale { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
fieldset.calc-field { display: block; }
fieldset.calc-field legend { margin-bottom: 10px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 4px; background: var(--paper); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 8px 22px; border-radius: 999px; font-weight: 700; color: var(--muted); }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--dawn); }
.calc-result { border-top: 1px solid var(--line); padding-top: 24px; }
.calc-total { display: block; font-family: var(--serif); font-weight: 700; font-size: clamp(44px, 6vw, 68px); line-height: 1.1; color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-desc { display: block; margin-top: 10px; font-weight: 600; }
.calc-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 860px) {
  .calc-inner { grid-template-columns: 1fr; gap: 36px; }
  .calc-copy p { font-size: 16.5px; }
  .calc-box { padding: 26px 22px; }
}

/* ---------- 절차 ---------- */
.process { background: var(--paper); }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 18px 0 0; }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #fff; border: 2px solid var(--ink); color: var(--ink); font-weight: 800; margin-bottom: 18px; position: relative; z-index: 1; }
.steps li::after { content: ''; position: absolute; top: 22px; left: 44px; right: 0; height: 2px; background: var(--line); }
.steps li:last-child::after { display: none; }
.steps li:last-child::before { background: var(--ink); color: #fff; }
.steps h3 { font-size: 18px; color: var(--ink); margin-bottom: 8px; }
.steps p { font-size: 15.5px; color: var(--muted); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps li { display: grid; grid-template-columns: 44px 1fr; column-gap: 18px; padding: 0 0 26px; }
  .steps li::before { grid-row: span 2; margin: 0; }
  .steps li::after { top: 44px; bottom: 0; left: 21px; right: auto; width: 2px; height: auto; }
  .steps h3 { margin: 8px 0 4px; }
}

/* ---------- ④ 소개 · 구성원 ---------- */
.about-inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 64px; align-items: center; margin-bottom: 112px; }
.about-copy p { margin-top: 18px; color: #3a4659; font-size: 17.5px; }
.greeting { margin: 0; padding: 40px; background: var(--paper); border-radius: var(--radius-m); border-left: 4px solid var(--dawn); }
.greeting blockquote { margin: 0; }
.greeting blockquote p { font-family: var(--serif); font-size: 20px; line-height: 1.75; color: var(--ink); }
.greeting figcaption { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 24px; font-size: 15px; color: var(--muted); }
.people-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.lawyer picture img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-m); background: #e8eef6; }
.lawyer-body { padding-top: 22px; }
.lawyer h3 { font-family: var(--serif); font-size: 24px; color: var(--ink); }
.lawyer-role { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--muted); }
.lawyer-key { list-style: none; margin-top: 16px; display: grid; gap: 6px; }
.lawyer-key li { position: relative; padding-left: 16px; font-size: 15.5px; }
.lawyer-key li::before { content: ''; position: absolute; left: 0; top: .7em; width: 6px; height: 6px; background: var(--dawn); border-radius: 50%; }
.lawyer details { margin-top: 16px; border-top: 1px solid var(--line); }
.lawyer summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: 15px; color: var(--ink); list-style: none; display: flex; justify-content: space-between; }
.lawyer summary::-webkit-details-marker { display: none; }
.lawyer summary::after { content: '+'; font-size: 20px; line-height: 1; }
.lawyer details[open] summary::after { content: '−'; }
.lawyer details ul { list-style: none; display: grid; gap: 4px; padding-bottom: 8px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 960px) {
  .about-inner { grid-template-columns: 1fr; gap: 36px; margin-bottom: 80px; }
  .greeting { padding: 28px 24px; }
  .greeting blockquote p { font-size: 18px; }
  .people-grid { grid-template-columns: 1fr; gap: 44px; max-width: 460px; }
}

/* ---------- ⑤ 사례 ---------- */
.cases { background: var(--paper); }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.case { background: #fff; border-radius: var(--radius-m); padding: 30px 28px; border: 1px solid var(--line); display: flex; flex-direction: column; }
.case-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.case-tags span { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--dawn-soft); color: #7a4a06; }
.case h3 { font-size: 19px; font-weight: 800; color: var(--ink); line-height: 1.45; }
.case-nums { display: grid; grid-template-columns: 1fr auto; gap: 12px; margin: 20px 0; padding: 16px 0; border-block: 1px solid var(--line); }
.case-nums dt { font-size: 13px; color: var(--muted); font-weight: 600; }
.case-nums dd { margin: 2px 0 0; font-weight: 800; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }
.case-nums div:last-child { text-align: right; }
.case-nums div:last-child dd { font-family: var(--serif); font-size: 30px; line-height: 1.1; }
.case-body { display: grid; grid-template-columns: 44px 1fr; gap: 10px 10px; font-size: 15px; }
.case-body dt { font-weight: 800; color: var(--ink); }
.case-body dd { margin: 0; color: #3a4659; }
.cases-note { margin-top: 24px; font-size: 14px; color: var(--muted); }
@media (max-width: 1000px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) {
  .case-grid { grid-template-columns: 1fr; }
  .case { padding: 26px 22px; }
}

/* ---------- ⑥ 상담 ---------- */
.consult-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-areas: 'head form' 'extra form'; grid-template-rows: auto 1fr; gap: 0 64px; align-items: start; }
.consult-head { grid-area: head; }
.consult-head > p { margin-top: 16px; font-size: 18px; color: var(--muted); }
.consult-extra { grid-area: extra; }
.consult-form { grid-area: form; }
.inflow { margin-top: 36px; padding: 26px 26px 20px; border-radius: var(--radius-m); background: var(--night); color: #fff; overflow: hidden; }
.inflow-title { font-weight: 700; margin-bottom: 16px; }
.inflow-list { list-style: none; display: grid; gap: 10px; }
.inflow-list li { display: grid; grid-template-columns: 30px 1fr auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; background: rgba(255,255,255,.07); }
.inflow-list .dot { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, var(--dawn), #f6c97a); }
.inflow-list .bar { height: 9px; border-radius: 9px; background: rgba(255,255,255,.28); }
.inflow-list .w45 { width: 45%; } .inflow-list .w55 { width: 55%; } .inflow-list .w65 { width: 65%; } .inflow-list .w70 { width: 70%; } .inflow-list .w80 { width: 80%; }
.inflow-list em { font-style: normal; font-size: 13px; color: rgba(255,255,255,.7); }
.channels { list-style: none; display: grid; gap: 10px; margin-top: 24px; }
.channels a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none; }
.channels a:hover { border-color: var(--ink); }
.channels strong { color: var(--ink); }
.channels span { color: var(--muted); font-size: 15px; }

.consult-form { background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--radius-m); padding: 36px; box-shadow: 0 24px 48px -32px rgba(20,43,80,.35); }
.form-title { font-size: 22px; font-weight: 800; color: var(--ink); }
.form-hint { margin: 6px 0 22px; font-size: 14px; color: var(--muted); }
.req { color: var(--err); font-weight: 800; }
.opt { color: var(--muted); font-weight: 500; font-size: 14px; }
.field { margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.field label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 8px; background: #fff; font-size: 16px; }
.field textarea { min-height: 112px; resize: vertical; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ink); outline: none; box-shadow: 0 0 0 3px rgba(20,43,80,.12); }
.field.has-err input, .field.has-err select { border-color: var(--err); }
.err { min-height: 0; font-size: 14px; color: var(--err); margin-top: 4px; }
.err:empty { display: none; }
.agree { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 6px 0 6px; }
.agree .err { flex-basis: 100%; }
.check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.agree .link-btn { font-size: 14px; color: var(--muted); }
.agree-summary { font-size: 13px; color: var(--muted); margin-bottom: 20px; line-height: 1.6; }
.form-status { margin-top: 12px; font-size: 15px; font-weight: 600; color: var(--err); }
.form-status:empty { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 960px) {
  .consult-inner { grid-template-columns: 1fr; grid-template-areas: 'head' 'form' 'extra'; gap: 28px; }
  .consult-form { padding: 26px 20px; }
  .consult-head > p { font-size: 16.5px; }
  .inflow { margin-top: 12px; }
}
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* ---------- 업무분야 ---------- */
.practice { background: var(--paper); }
.prac-tabs, .loc-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.prac-tabs [role=tab], .loc-tabs [role=tab] { padding: 12px 22px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; color: var(--muted); cursor: pointer; }
.prac-tabs [role=tab][aria-selected=true], .loc-tabs [role=tab][aria-selected=true] { background: var(--ink); border-color: var(--ink); color: #fff; }
.prac-panel { background: #fff; border-radius: var(--radius-m); border: 1px solid var(--line); padding: 44px; }
.prac-lead { font-family: var(--serif); font-size: clamp(19px, 2vw, 23px); color: var(--ink); line-height: 1.6; max-width: 40em; }
.prac-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 36px; }
.prac-cols h3, .flow-title { font-size: 18px; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.ticks { list-style: none; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; font-size: 16px; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg); }
.ticks.warn li::before { width: 8px; height: 8px; top: .6em; left: 4px; border: 0; background: var(--dawn); border-radius: 50%; transform: none; }
.defs { display: grid; grid-template-columns: 92px 1fr; gap: 10px 16px; font-size: 16px; margin: 0; }
.defs dt { font-weight: 800; color: var(--ink); }
.defs dd { margin: 0; color: #3a4659; }
.flow-title { margin-top: 40px; }
.flow { list-style: none; counter-reset: flow; display: flex; flex-wrap: wrap; gap: 8px; }
.flow li { counter-increment: flow; padding: 8px 14px 8px 8px; border-radius: 999px; background: var(--paper); font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.flow li::before { content: counter(flow); display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; }
@media (max-width: 860px) {
  .prac-panel { padding: 28px 22px; }
  .prac-cols { grid-template-columns: 1fr; gap: 32px; }
  .defs { grid-template-columns: 84px 1fr; font-size: 15.5px; }
}

/* ---------- 유튜브 · 블로그 ---------- */
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.media-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 18px; align-items: center; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-m); text-decoration: none; }
.media-card:hover { border-color: var(--ink); }
.media-ico { grid-row: span 2; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; color: #fff; }
.media-yt .media-ico { background: #c4302b; }
.media-blog .media-ico { background: #03a94d; }
.media-card strong { font-size: 19px; color: var(--ink); }
.media-card span:last-child { color: var(--muted); font-size: 15px; }
.media-yt[aria-disabled=true] { cursor: default; }
.media-yt[aria-disabled=true]:hover { border-color: var(--line); }
@media (max-width: 680px) { .media-grid { grid-template-columns: 1fr; } .media-card { padding: 22px; } }

/* ---------- 오시는 길 ---------- */
.location { background: var(--paper); }
.loc-panel { background: #fff; }
.loc-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.loc-panel[hidden] { display: none; }
.loc-info { padding: 40px; }
.loc-addr { font-family: var(--serif); font-size: 21px; font-weight: 700; color: var(--ink); line-height: 1.55; }
.loc-meta { display: grid; grid-template-columns: 56px 1fr; gap: 4px 12px; margin: 16px 0 24px; font-size: 15.5px; }
.loc-meta dt { font-weight: 700; color: var(--muted); }
.loc-meta dd { margin: 0; }
.loc-meta a { font-weight: 700; text-decoration: none; color: var(--ink); }
.loc-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.loc-map { min-height: 340px; background: var(--paper) linear-gradient(135deg, #eef2f7 25%, transparent 25%, transparent 50%, #eef2f7 50%, #eef2f7 75%, transparent 75%) 0 0 / 24px 24px; display: grid; place-items: center; color: var(--muted); font-size: 15px; }
.loc-map:empty::after { content: '지도를 불러오는 중입니다.'; padding: 20px; text-align: center; }
.loc-map iframe { width: 100%; height: 100%; min-height: inherit; border: 0; display: block; }
.loc-map { position: relative; }
.loc-map > div { width: 100%; height: 100%; min-height: inherit; }
@media (max-width: 860px) {
  .loc-panel { grid-template-columns: 1fr; }
  .loc-info { padding: 26px 22px; }
  .loc-addr { font-size: 18px; }
  .loc-map { min-height: 240px; }
}

/* ---------- 푸터 ---------- */
.site-footer { background: var(--night); color: rgba(255,255,255,.7); padding: 56px 0 140px; font-size: 14.5px; }
.footer-inner { display: grid; grid-template-columns: 220px 1fr; gap: 40px; }
.footer-info p + p { margin-top: 12px; }
.footer-info strong { color: #fff; margin-right: 6px; }
.footer-links { display: flex; gap: 20px; }
.footer-links .link-btn { color: #fff; font-weight: 600; text-decoration: none; }
.copy { color: rgba(255,255,255,.45); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; gap: 24px; } .site-footer { padding-bottom: 120px; } }

/* ---------- 빠른 메뉴 (데스크톱) ---------- */
.quick { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 30px -18px rgba(12,26,51,.45); overflow: hidden; opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s .25s; }
.quick.is-on { opacity: 1; visibility: visible; transition: opacity .25s; }
.quick a, .quick button { display: grid; justify-items: center; gap: 2px; width: 68px; padding: 12px 4px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 12px; font-weight: 700; cursor: pointer; }
.quick > :last-child { border-bottom: 0; }
.quick svg { width: 22px; height: 22px; }
.quick a:hover, .quick button:hover { background: var(--paper); }
@media (max-width: 960px) { .quick { display: none; } }

/* ---------- 하단 상담바 ---------- */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; transform: translateY(0); transition: transform .3s ease; }
.dock.is-hidden { transform: translateY(110%); }
.dock-form { display: flex; align-items: center; gap: 8px; padding: 12px 16px; margin-bottom: 14px; background: rgba(12,26,51,.96); color: #fff; border-radius: 16px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); position: relative; }
.dock-title { font-weight: 800; white-space: nowrap; margin-right: 6px; }
.dock-form select, .dock-form input[type=tel] { min-width: 0; flex: 1 1 0; height: 44px; padding: 0 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,.2); background: #fff; color: var(--text); font-size: 15px; }
.dock-form input[type=tel] { flex: 1.2 1 0; }
.dock-form .is-err { border-color: var(--err); box-shadow: 0 0 0 2px var(--err); }
.dock-agree { font-size: 13.5px; white-space: nowrap; font-weight: 500; gap: 6px; }
.dock-agree input { width: 18px; height: 18px; accent-color: var(--dawn); }
.dock-agree.is-err span { color: #ffb4a8; }
.dock-privacy { font-size: 13px; color: rgba(255,255,255,.7); }
.dock-form .btn { min-height: 44px; padding: 0 20px; white-space: nowrap; }
.dock-status { position: absolute; left: 16px; bottom: calc(100% + 8px); padding: 8px 14px; border-radius: 8px; background: var(--err); color: #fff; font-size: 14px; font-weight: 600; }
.dock-status:empty { display: none; }
.dock-m { display: none; }
@media (max-width: 1100px) { .dock-title { display: none; } }
@media (max-width: 960px) {
  .dock-form { display: none; }
  .dock-m { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); border-top: 1px solid var(--line); box-shadow: 0 -10px 24px -18px rgba(12,26,51,.5); }
  .dock-m a { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 10px; font-weight: 800; text-decoration: none; font-size: 15.5px; }
  .dock-m-call { background: var(--paper); color: var(--ink); }
  .dock-m-kakao { background: #fee500; color: #191600; }
  .dock-m-form { background: var(--ink); color: #fff; }
}

/* ---------- 토스트 · 모달 ---------- */
.toast { position: fixed; left: 50%; bottom: 110px; transform: translate(-50%, 20px); z-index: 60; padding: 12px 20px; border-radius: 999px; background: var(--night); color: #fff; font-weight: 600; font-size: 15px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.modal { width: min(100% - 32px, 720px); max-height: min(86vh, 900px); padding: 0; border: 0; border-radius: var(--radius-m); color: var(--text); box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.modal::backdrop { background: rgba(8,20,42,.6); }
.modal-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--line); }
.modal-head h2 { font-size: 19px; color: var(--ink); }
.modal-close { width: 40px; height: 40px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-body { padding: 22px 24px 28px; font-size: 15.5px; }
.modal-body h2 { font-size: 17px; margin: 22px 0 8px; color: var(--ink); }
.modal-body h1 { display: none; }
.modal-body p + p { margin-top: 8px; }
.modal-body ul { padding-left: 20px; margin: 6px 0; }
.modal-body .policy-back { display: none; }
.modal-done { width: min(100% - 32px, 460px); }
.modal-done .modal-body p { margin-bottom: 20px; }

/* ---------- 개인정보처리방침 페이지 ---------- */
.policy-page { background: var(--paper); }
.policy { max-width: 820px; padding: 64px 0 96px; }
.policy h1 { font-family: var(--serif); font-size: 32px; color: var(--ink); margin-bottom: 24px; }
.policy h2 { font-size: 19px; color: var(--ink); margin: 32px 0 10px; }
.policy p + p { margin-top: 10px; }
.policy ul { padding-left: 22px; margin: 8px 0; }
.policy-back { margin-top: 40px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}
