/* =============================================================
   aptremodeling.co.kr — 리모델링 매도청구 · 재건축 현금청산 상담 랜딩
   목적    : index.php / guide.php 공용 스타일. lawwhisper 계열과 다른 팔레트·레이아웃(복제 차별화)
   팔레트  : Navy #0F2A44 · Deep #0A1C2E · Copper #B8722F · Sand #F5F1EA · Ink #1B2330
   폰트    : Pretendard(본문) + Noto Serif KR(헤딩)
   연관    : index.php(클래스 소비), main.js(.scrolled/.open/.visible 토글)
   함정    : 한국어 줄바꿈은 body word-break:keep-all 전역, 표는 min-width + 가로스크롤(모바일 압착 방지)
   ============================================================= */

:root {
  --navy: #0F2A44;
  --navy-deep: #0A1C2E;
  --copper: #B8722F;
  --copper-dark: #9A5C22;
  --copper-light: #E7C79A;
  --sand: #F5F1EA;
  --sand-dark: #EAE3D6;
  --ink: #1B2330;
  --muted: #5C6675;
  --line: #E2DCD1;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 42, 68, 0.10);
  --shadow-lg: 0 24px 60px rgba(10, 28, 46, 0.22);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: 'Noto Serif KR', 'Pretendard', serif; line-height: 1.3; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
strong { font-weight: 700; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }

/* ---- 버튼 ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.5rem; border-radius: 8px; font-weight: 700; font-size: 0.95rem;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); }
.btn-accent { background: var(--copper); color: #fff; }
.btn-accent:hover { background: var(--copper-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }
.btn-full { width: 100%; }

/* ---- 공통 타이포 ---- */
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em;
  color: var(--copper); text-transform: uppercase; margin-bottom: .9rem;
}
.eyebrow::before { content: ''; display: inline-block; width: 22px; height: 2px; background: currentColor; vertical-align: middle; margin-right: .6rem; }
.eyebrow-light { color: var(--copper-light); }
.section { padding: 5.5rem 0; }
.section-sand { background: var(--sand); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section-head .eyebrow::before { display: none; }
.section-head-light .section-title { color: #fff; }
.section-head-light .section-desc { color: rgba(255,255,255,.78); }
.section-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 700; color: var(--navy); margin-bottom: .9rem; }
.section-navy .section-title { color: #fff; }
.section-desc { color: var(--muted); font-size: 1.02rem; }
.section-note { margin-top: 2rem; font-size: .85rem; color: var(--muted); text-align: center; }

/* ---- 헤더 ---- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 1.1rem 0; transition: all .3s ease; }
.site-header.scrolled { background: rgba(255,255,255,.96); backdrop-filter: blur(12px); box-shadow: 0 2px 20px rgba(0,0,0,.08); padding: .65rem 0; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.logo-img { height: 38px; width: auto; }
.site-header.scrolled .logo-img-white { display: none; }
.site-header:not(.scrolled) .logo-img-dark { display: none; }
.main-nav { display: flex; align-items: center; gap: 1.4rem; }
.main-nav a { font-size: .9rem; font-weight: 500; color: rgba(255,255,255,.88); transition: color .2s; }
.main-nav a:hover { color: var(--copper-light); }
.main-nav .nav-cta { padding: .45rem 1rem; border-radius: 6px; background: var(--copper); color: #fff; font-weight: 700; }
.site-header.scrolled .main-nav a { color: var(--ink); }
.site-header.scrolled .main-nav a:hover { color: var(--copper); }
.site-header.scrolled .main-nav .nav-cta { color: #fff; }
.header-cta {
  display: inline-flex; align-items: center; gap: .4rem; padding: .5rem 1.1rem; border-radius: 50px;
  font-size: .9rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.4);
}
.site-header.scrolled .header-cta { background: var(--navy); border-color: var(--navy); }
.mobile-menu-btn { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: .3rem; }
.mobile-menu-btn span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.site-header.scrolled .mobile-menu-btn span { background: var(--ink); }

/* ---- 히어로 ---- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 7.5rem 0 7rem; overflow: hidden; color: #fff; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg-img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10,28,46,.92) 0%, rgba(10,28,46,.78) 45%, rgba(10,28,46,.45) 100%); }
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.hero-title { font-size: clamp(2rem, 4.4vw, 3.3rem); font-weight: 700; margin: 0 0 1.4rem; }
.hero-title em { font-style: normal; color: var(--copper-light); }
.hero-desc { font-size: 1.08rem; line-height: 1.8; color: rgba(255,255,255,.88); max-width: 560px; margin-bottom: 1.5rem; }
.hero-desc strong { color: var(--copper-light); }
.hero-tags { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.8rem; }
.hero-tags li { font-size: .82rem; padding: .32rem .75rem; border-radius: 50px; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.08); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 1.2rem; }
.ad-notice { font-size: .78rem; color: rgba(255,255,255,.6); }

.hero-form-card { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 1.8rem 1.7rem; box-shadow: var(--shadow-lg); }
.hero-form-head { margin-bottom: 1.1rem; }
.hero-form-badge { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--copper); background: rgba(184,114,47,.12); padding: .25rem .6rem; border-radius: 4px; margin-bottom: .55rem; }
.hero-form-title { font-size: 1.3rem; color: var(--navy); margin-bottom: .3rem; }
.hero-form-sub { font-size: .85rem; color: var(--muted); }

/* ---- 폼 공통 ---- */
.form-group { display: flex; flex-direction: column; gap: .35rem; margin-bottom: .9rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.req { color: var(--copper); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: .95rem;
  background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(15,42,68,.12); }
.form-group textarea { resize: vertical; min-height: 96px; }
.form-privacy { display: flex; align-items: flex-start; gap: .5rem; font-size: .84rem; margin: .4rem 0 1rem; }
.form-privacy input { margin-top: .2rem; accent-color: var(--copper); }
.form-privacy a { text-decoration: underline; text-underline-offset: 2px; }
.form-error { background: #FDECEC; color: #B3261E; font-size: .85rem; padding: .6rem .8rem; border-radius: 6px; margin-bottom: .8rem; }
.form-notice { font-size: .78rem; color: var(--muted); text-align: center; margin-top: .7rem; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success, .form-success-card { text-align: center; padding: 1.5rem .5rem; }
.success-icon { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; background: var(--copper); color: #fff; font-size: 1.6rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.form-success p, .form-success-card p { color: var(--muted); margin-bottom: 1rem; }
.form-success-card h3 { color: var(--navy); margin-bottom: .5rem; }

/* ---- 강점 밴드 ---- */
.strength-band { position: relative; z-index: 2; margin-top: -4.5rem; padding-bottom: .5rem; }
.strength-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.strength-card { background: #fff; border-radius: var(--radius); padding: 1.7rem 1.5rem; box-shadow: var(--shadow); border-top: 4px solid var(--copper); }
.strength-ico { width: 44px; height: 44px; border-radius: 10px; background: var(--sand); color: var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: .9rem; }
.strength-ico svg { width: 24px; height: 24px; }
.strength-card h3 { font-size: 1.08rem; color: var(--navy); margin-bottom: .5rem; }
.strength-card p { font-size: .92rem; color: var(--muted); }

/* ---- 대응 분야 ---- */
.type-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.type-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.type-img-wrap { position: relative; aspect-ratio: 3 / 1.55; overflow: hidden; }
.type-img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.type-card:hover .type-img { transform: scale(1.04); }
.type-tag { position: absolute; left: 1rem; top: 1rem; background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; padding: .3rem .7rem; border-radius: 4px; }
.type-body { padding: 1.5rem 1.6rem 1.7rem; }
.type-title { font-size: 1.25rem; color: var(--navy); margin-bottom: .35rem; }
.type-law { font-size: .8rem; color: var(--copper); font-weight: 600; margin-bottom: .8rem; }
.type-desc { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; }
.type-points li { position: relative; padding-left: 1.1rem; font-size: .9rem; margin-bottom: .3rem; }
.type-points li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--copper); }

/* ---- 법정 기한 표 ---- */
.deadline-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12); }
.deadline-table { width: 100%; min-width: 860px; border-collapse: collapse; font-size: .92rem; }
.deadline-table th, .deadline-table td { padding: .95rem 1rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255,255,255,.12); }
.deadline-table th { background: rgba(255,255,255,.08); font-weight: 700; color: var(--copper-light); font-size: .82rem; letter-spacing: .05em; }
.deadline-table td strong { color: var(--copper-light); font-size: 1.02em; }
.deadline-table td:nth-child(3) { color: rgba(255,255,255,.72); font-size: .85rem; }
.deadline-table tbody tr:last-child td { border-bottom: 0; }
.table-hint { display: none; font-size: .78rem; color: rgba(255,255,255,.55); padding: .5rem 1rem .7rem; }
.deadline-cta { margin-top: 2.2rem; text-align: center; }
.deadline-cta p { margin-bottom: 1rem; color: rgba(255,255,255,.85); }
.deadline-cta .btn { margin: .3rem; }

/* ---- 문제 상황 ---- */
.pain-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.pain-card { position: relative; background: var(--sand); border-radius: var(--radius); padding: 1.8rem 1.5rem 1.6rem; border: 1px solid var(--line); }
.pain-num { font-family: 'Noto Serif KR', serif; font-size: 2rem; font-weight: 700; color: var(--copper-light); line-height: 1; display: block; margin-bottom: .8rem; }
.pain-title { font-size: 1.08rem; color: var(--navy); margin-bottom: .55rem; }
.pain-desc { font-size: .92rem; color: var(--muted); }
.pain-cta { margin-top: 2.5rem; text-align: center; }
.pain-cta p { margin-bottom: 1rem; color: var(--ink); font-weight: 500; }

/* ---- 대응 전략 ---- */
.strategy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.strategy-card { background: #fff; border-radius: var(--radius); padding: 1.8rem 1.5rem; box-shadow: var(--shadow); border-left: 4px solid var(--navy); }
.strategy-num { font-size: .78rem; font-weight: 700; letter-spacing: .15em; color: var(--copper); display: block; margin-bottom: .6rem; }
.strategy-title { font-size: 1.1rem; color: var(--navy); margin-bottom: .5rem; }
.strategy-desc { font-size: .92rem; color: var(--muted); }

/* ---- 공동 대응 ---- */
.group-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: center; }
.group-media img { border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.group-copy .section-title { text-align: left; }
.group-list { margin: 1.5rem 0 2rem; }
.group-list li { position: relative; padding-left: 1.3rem; margin-bottom: .8rem; font-size: .95rem; color: var(--muted); }
.group-list li strong { color: var(--navy); }
.group-list li::before { content: ''; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; border-radius: 2px; background: var(--copper); }

/* ---- 진행 절차 ---- */
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: step; }
.process-step { background: #fff; border-radius: var(--radius); padding: 1.7rem 1.4rem; box-shadow: var(--shadow); position: relative; }
.process-num { font-size: .75rem; font-weight: 700; letter-spacing: .15em; color: var(--copper); display: block; margin-bottom: .6rem; }
.process-title { font-size: 1.12rem; color: var(--navy); margin-bottom: .5rem; }
.process-desc { font-size: .9rem; color: var(--muted); }
.process-docs { margin-top: 2rem; background: #fff; border-radius: var(--radius); padding: 1.5rem 1.7rem; border: 1px dashed var(--copper); }
.process-docs h3 { font-size: 1.02rem; color: var(--navy); margin-bottom: .5rem; }
.process-docs p { font-size: .92rem; color: var(--muted); }
.process-docs strong { color: var(--navy); }

/* ---- 변호사 ---- */
.lawyers-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 460px)); justify-content: center; gap: 2rem; }
.lawyer-card { display: grid; grid-template-columns: 200px 1fr; background: var(--sand); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.lawyer-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.lawyer-body { padding: 1.5rem 1.4rem; }
.lawyer-name { font-size: 1.45rem; color: var(--navy); }
.lawyer-title { font-size: .85rem; color: var(--copper); font-weight: 700; margin: .2rem 0 1rem; }
.lawyer-meta { display: grid; grid-template-columns: auto 1fr; gap: .35rem .7rem; font-size: .88rem; }
.lawyer-meta dt { color: var(--muted); font-weight: 600; }
.lawyer-meta dd { color: var(--ink); }
.lawyers-more { text-align: center; margin-top: 2rem; font-size: .92rem; color: var(--muted); }
.lawyers-more a { color: var(--copper); font-weight: 700; }

/* ---- FAQ ---- */
.faq-list { max-width: 860px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: .7rem; overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.3rem; cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--navy); list-style: none; }
.faq-q::-webkit-details-marker { display: none; }
.faq-ico { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; background: var(--sand); color: var(--copper); display: flex; align-items: center; justify-content: center; font-weight: 700; transition: transform .2s; }
.faq-item[open] .faq-ico { transform: rotate(45deg); }
.faq-a { padding: 0 1.3rem 1.2rem; font-size: .93rem; color: var(--muted); line-height: 1.75; }

/* ---- 상담 섹션 ---- */
.section-consult { background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: #fff; }
.consult-inner { display: grid; grid-template-columns: 1fr 1.05fr; gap: 3.5rem; align-items: start; }
.consult-copy .section-title { color: #fff; }
.consult-desc { color: rgba(255,255,255,.82); margin-bottom: 1.8rem; }
.consult-phone { display: block; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2); border-radius: 12px; padding: 1.1rem 1.4rem; margin-bottom: 1.6rem; }
.consult-phone-label { display: block; font-size: .8rem; color: rgba(255,255,255,.7); }
.consult-phone-num { display: block; font-size: 2rem; font-weight: 800; color: var(--copper-light); letter-spacing: .02em; }
.consult-guarantees li { position: relative; padding-left: 1.4rem; margin-bottom: .55rem; font-size: .92rem; color: rgba(255,255,255,.85); }
.consult-guarantees li::before { content: '✓'; position: absolute; left: 0; color: var(--copper-light); font-weight: 700; }
.consult-form-wrap { background: #fff; color: var(--ink); border-radius: var(--radius); padding: 2rem 1.9rem; box-shadow: var(--shadow-lg); }
.consult-form-title { font-size: 1.35rem; color: var(--navy); margin-bottom: 1.2rem; }

/* ---- 푸터 ---- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.78); padding: 4rem 0 2rem; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-logo { height: 40px; width: auto; margin-bottom: 1rem; }
.footer-tagline { font-size: .9rem; margin-bottom: 1rem; }
.footer-sns { display: inline-block; padding: .35rem .8rem; border: 1px solid rgba(255,255,255,.3); border-radius: 50px; font-size: .8rem; }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: .9rem; }
.footer-col li { margin-bottom: .6rem; }
.footer-col strong { color: #fff; }
.footer-col a { color: var(--copper-light); }
.footer-bottom { padding-top: 1.8rem; font-size: .8rem; color: rgba(255,255,255,.6); }
.footer-bottom p { margin-bottom: .4rem; }
.footer-disclaimer { line-height: 1.7; margin: .8rem 0 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-bottom: 1rem; }
.footer-links a { color: rgba(255,255,255,.8); text-decoration: underline; text-underline-offset: 3px; }
.footer-copy { color: rgba(255,255,255,.4); }

/* ---- 모바일 하단 고정 CTA ---- */
.sticky-cta { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; padding: .6rem .8rem; background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 -4px 20px rgba(0,0,0,.12); gap: .6rem; }
.sticky-call, .sticky-form { flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .85rem; border-radius: 8px; font-weight: 700; font-size: .95rem; }
.sticky-call { background: var(--navy); color: #fff; }
.sticky-form { background: var(--copper); color: #fff; }

/* ---- 가이드 문서 페이지 (guide.php) ---- */
.doc-hero { background: var(--navy); color: #fff; padding: 8rem 0 3.5rem; }
.doc-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); margin-bottom: .8rem; }
.doc-hero p { color: rgba(255,255,255,.8); max-width: 720px; }
.doc-body { max-width: 820px; margin: 0 auto; padding: 3.5rem 1.5rem 5rem; }
.doc-body h2 { font-size: 1.5rem; color: var(--navy); margin: 2.6rem 0 1rem; padding-left: .8rem; border-left: 4px solid var(--copper); }
.doc-body h3 { font-size: 1.12rem; color: var(--navy); margin: 1.6rem 0 .6rem; }
.doc-body p, .doc-body li { color: #333A45; font-size: .98rem; line-height: 1.8; margin-bottom: .8rem; }
.doc-body ul, .doc-body ol { padding-left: 1.3rem; margin-bottom: 1rem; }
.doc-body ul li { list-style: disc; }
.doc-body ol li { list-style: decimal; }
.doc-table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }
.doc-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .9rem; }
.doc-table th, .doc-table td { border: 1px solid var(--line); padding: .7rem .9rem; text-align: left; vertical-align: top; }
.doc-table th { background: var(--sand); white-space: nowrap; }
.doc-callout { background: var(--sand); border-left: 4px solid var(--copper); padding: 1rem 1.2rem; border-radius: 6px; margin: 1.2rem 0; font-size: .93rem; }
.doc-cta { margin-top: 3rem; text-align: center; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2.2rem 1.5rem; }
.doc-cta p { color: rgba(255,255,255,.85); margin-bottom: 1rem; }
.doc-toc { background: var(--sand); border-radius: 10px; padding: 1.2rem 1.4rem 1rem; margin-bottom: 1.5rem; }
.doc-toc h2 { border: 0; padding: 0; margin: 0 0 .6rem; font-size: 1rem; }
.doc-toc ol { margin: 0; }
.doc-toc li { margin-bottom: .2rem; }
.doc-toc a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.doc-updated { font-size: .82rem; color: var(--muted); margin-bottom: 1.5rem; }

/* ---- 스크롤 페이드인 ---- */
.fade-in { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .fade-in { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---- 반응형 ---- */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero { padding-top: 6.5rem; min-height: 0; }
  .strength-band { margin-top: 2.5rem; }
  .pain-grid, .strategy-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .group-inner, .consult-inner { grid-template-columns: 1fr; gap: 2.2rem; }
  .lawyers-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .main-nav { position: fixed; top: 0; right: 0; bottom: 0; width: min(78vw, 320px); flex-direction: column; align-items: flex-start; gap: 0; padding: 5rem 1.6rem 2rem; background: var(--navy-deep); transform: translateX(100%); transition: transform .3s ease; z-index: 99; }
  .main-nav.open { transform: none; }
  .main-nav a, .site-header.scrolled .main-nav a { color: #fff !important; font-size: 1.05rem; padding: .8rem 0; width: 100%; border-bottom: 1px solid rgba(255,255,255,.1); }
  .main-nav .nav-cta { margin-top: 1rem; text-align: center; border: 0; }
  .header-cta { display: none; }
  .mobile-menu-btn { display: flex; position: relative; z-index: 100; }
  .site-header.menu-open .mobile-menu-btn span { background: #fff; }
  .site-header.menu-open .mobile-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.menu-open .mobile-menu-btn span:nth-child(2) { opacity: 0; }
  .site-header.menu-open .mobile-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .strength-grid { grid-template-columns: 1fr; }
  .type-grid { grid-template-columns: 1fr; }
  .table-hint { display: block; }
}
@media (max-width: 640px) {
  .section { padding: 3.8rem 0; }
  .hero { padding: 6rem 0 3rem; }
  .hero-actions .btn { width: 100%; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .pain-grid, .strategy-grid, .process-steps { grid-template-columns: 1fr; }
  .lawyer-card { grid-template-columns: 1fr; }
  .lawyer-portrait { aspect-ratio: 4 / 3; overflow: hidden; }
  .lawyer-portrait img { object-position: center 20%; }
  .lawyer-meta { grid-template-columns: 1fr; gap: .15rem; }
  .lawyer-meta dt { margin-top: .5rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .sticky-cta { display: flex; }
  body { padding-bottom: 68px; }
  .hero-form-card, .consult-form-wrap { padding: 1.5rem 1.2rem; }
  .deadline-cta .btn { width: 100%; margin: .3rem 0; }
}
