/* 전직금지 전문변호사 — 레이아웃/그리드: lawl-divorce.co.kr 구조 기준 (내용·이미지 제외) */
@font-face { font-family: 'Pretendard'; src: url('/assets/fonts/PretendardVariable.woff2') format('woff2-variations'); font-weight: 45 920; font-display: swap; }

:root {
  --brand: #b2554a; --brand-d: #9a463c;
  --pink: #fdf9fa; --pink2: #eddce1; --beige: #f3f1ec;
  --ink: #222; --text: #444; --muted: #888; --line: #e8e8e8;
  --dark: #26282c; --foot: #1a1a1a;
  --pad-x: clamp(20px, 2.9vw, 41px);
  --wrap: 1296px; --read: 840px;
  --head-h: 88px; --bar-h: 62px; --dock-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Pretendard', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif; color: var(--ink); background: #fff; line-height: 1.75; font-size: clamp(15.5px, .3vw + 14.6px, 17px); letter-spacing: -.03em; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { color: var(--ink); font-weight: 700; line-height: 1.35; letter-spacing: -.035em; }
p { margin-bottom: 1.1em; color: var(--text); }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad-x); }
.read { max-width: var(--read); margin: 0 auto; }
.section { padding: clamp(100px, 9.7vw, 140px) 0; }
.section.beige { background: var(--beige); }
.section.pink { background: linear-gradient(180deg, #fff, var(--pink) 60%); }
.sec-tit { text-align: center; margin-bottom: clamp(36px, 4vw, 56px); }
.sec-tit .eyebrow { margin-bottom: 14px; }
.sec-tit h2 { font-size: clamp(1.7rem, 1.6vw + 1.2rem, 2.34rem); letter-spacing: -.03em; padding-bottom: 16px; }
.sec-tit p { font-size: clamp(1rem, .4vw + .9rem, 1.25rem); color: var(--ink); max-width: 720px; margin: 0 auto; }
.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.h2 { font-size: clamp(1.45rem, 1.1vw + 1.15rem, 2rem); margin-bottom: 22px; padding-bottom: 6px; }
.h3 { font-size: clamp(1.1rem, .5vw + 1rem, 1.3rem); margin: 34px 0 12px; }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 30px; font-weight: 700; font-size: 1rem; border: 1px solid transparent; border-radius: 40px; cursor: pointer; transition: transform .3s, background .3s, box-shadow .3s; line-height: 1.2; text-align: center; letter-spacing: -.02em; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--brand); color: #fff; }
.btn-gold:hover { background: var(--brand-d); box-shadow: 0 10px 24px rgba(178,85,74,.3); }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: #000; box-shadow: 0 10px 24px rgba(0,0,0,.2); }
.btn-ghost { border-color: #222; color: #222; }
.btn-ghost:hover { background: #222; color: #fff; }
.btn-sm { padding: 10px 22px; font-size: .92rem; }
.on-dark.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.on-dark.btn-ghost:hover { background: #fff; color: #222; }

/* ── 헤더: 로고 좌 · 메뉴 중앙 · 아이콘 우 (양끝 꽉 채움) ── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 60; height: var(--head-h); transition: background .35s, box-shadow .35s; }
.site-header.scrolled, .site-header.solid { background: rgba(255,255,255,.96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line); }
.header-in { height: 100%; width: 100%; padding: 0 var(--pad-x); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.08rem; white-space: nowrap; justify-self: start; }
.brand small { font-weight: 500; color: var(--muted); font-size: .82rem; }
.brand svg { flex-shrink: 0; }
.gnb { display: flex; align-items: center; justify-content: center; }
.gnb > a, .gnb > details > summary { display: flex; align-items: center; height: var(--head-h); width: 112px; justify-content: center; font-weight: 500; font-size: 1rem; cursor: pointer; list-style: none; transition: color .25s; }
.gnb > details > summary::-webkit-details-marker { display: none; }
.gnb > a:hover, .gnb > details > summary:hover { color: var(--brand); }
.dd { position: relative; }
.dd-panel { position: absolute; left: 50%; top: calc(100% - 8px); transform: translateX(-50%); min-width: 270px; background: #fff; border-radius: 20px; box-shadow: 0 18px 50px rgba(0,0,0,.14); padding: 10px; }
.dd-panel a { display: block; padding: 12px 18px; border-radius: 12px; font-size: .96rem; font-weight: 500; }
.dd-panel a:hover { background: var(--pink); color: var(--brand); }
.head-tools { justify-self: end; display: flex; align-items: center; gap: 6px; }
.menu-btn { width: 44px; height: 44px; background: none; border: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.menu-btn span { width: 24px; height: 2px; background: var(--ink); transition: transform .3s, opacity .3s; }
.menu-btn.on span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn.on span:nth-child(2) { opacity: 0; }
.menu-btn.on span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.sitemap { position: fixed; inset: var(--head-h) 0 0 0; z-index: 55; background: #fff; padding: 36px var(--pad-x) 60px; overflow-y: auto; display: none; }
.sitemap.open { display: block; }
.sitemap-in { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 36px; }
.sitemap h3 { font-size: .85rem; color: var(--brand); letter-spacing: .14em; margin-bottom: 14px; }
.sitemap a { display: block; padding: 9px 0; font-size: 1.12rem; font-weight: 600; border-bottom: 1px solid var(--line); }
.sitemap a:hover { color: var(--brand); }

/* ── 히어로: 핑크 그라데이션 + 하단 브랜드 리본 ─────── */
.hero { background: linear-gradient(180deg, #fff 0%, var(--pink) 35%, var(--pink2) 100%); overflow: hidden; position: relative; }
.hero-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: end; padding-top: calc(var(--head-h) + clamp(40px, 5vw, 72px)); }
.hero-copy { align-self: center; padding-bottom: clamp(48px, 6vw, 96px); }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.1rem, 2.8vw + 1.2rem, 3.5rem); line-height: 1.22; letter-spacing: -.04em; margin-bottom: 24px; }
.hero.sub h1 { font-size: clamp(1.9rem, 2.3vw + 1.1rem, 3rem); }
.hero .sum { color: var(--text); font-size: clamp(1rem, .35vw + .95rem, 1.12rem); line-height: 1.85; margin-bottom: 30px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-photo { justify-self: center; width: 100%; max-width: 440px; }
.hero-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 12%; border-radius: 20px 20px 0 0; }
.hero-ribbon { background: var(--brand); color: #fff; }
.hero-ribbon .wrap { display: flex; justify-content: center; gap: clamp(20px, 5vw, 64px); padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; text-align: center; }
.hero-ribbon b { display: block; font-size: 1.15rem; line-height: 1.3; }
.hero-ribbon span { display: block; font-size: .8rem; opacity: .85; }
.crumb { font-size: .86rem; color: var(--muted); margin-bottom: 16px; }
.crumb a:hover { color: var(--brand); text-decoration: underline; }

/* ── 탭 필 + 가로 슬라이더 ─────────────────────────── */
.tabs { display: flex; justify-content: center; margin-bottom: 40px; }
.tabs-in { display: flex; gap: 4px; padding: 8px; background: #fff; border-radius: 33px; box-shadow: 0 4px 30px rgba(0,0,0,.1); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs-in::-webkit-scrollbar { display: none; }
.tabs button { flex: 0 0 auto; padding: 12px 22px; border: 0; background: none; border-radius: 30px; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .3s, color .3s; }
.tabs button.on { background: var(--brand); color: #fff; }
.slider { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--pad-x) 26px; margin: 0 calc(var(--pad-x) * -1); scrollbar-width: thin; scrollbar-color: var(--pink2) transparent; -webkit-overflow-scrolling: touch; }
.slide { flex: 0 0 min(340px, 82vw); scroll-snap-align: start; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 56px 28px 28px; box-shadow: 0 6px 24px rgba(0,0,0,.04); transition: transform .35s, box-shadow .35s; display: flex; flex-direction: column; }
.slide:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.1); }
.ribbon-tag { position: absolute; top: 0; right: 28px; background: var(--brand); color: #fff; font-size: .82rem; font-weight: 600; padding: 8px 16px; border-radius: 0 0 12px 12px; }
.slide h3 { font-size: 1.28rem; margin-bottom: 14px; }
.slide dl { flex: 1; }
.slide dt { font-size: .76rem; font-weight: 700; letter-spacing: .08em; color: var(--brand); margin-top: 14px; }
.slide dd { font-size: .95rem; color: var(--text); line-height: 1.7; margin-top: 3px; }
.slide .more { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); font-weight: 700; font-size: .94rem; display: flex; justify-content: space-between; align-items: center; }
.slide .more i { width: 34px; height: 34px; border-radius: 50%; background: var(--pink2); color: var(--brand); display: flex; align-items: center; justify-content: center; font-style: normal; }

/* ── 인물(프로필) 4열 카드 ─────────────────────────── */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.person .ph { border-radius: 20px; overflow: hidden; aspect-ratio: 15 / 14; background: var(--beige); }
.person .ph img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; }
.person .ph.num { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--pink), var(--pink2)); font-size: 4rem; font-weight: 800; color: var(--brand); }
.person .txt { padding-top: 16px; }
.person h3 { font-size: 1.2rem; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.person h3 small { font-size: .82rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.person li { font-size: .95rem; font-weight: 500; line-height: 1.7; color: var(--ink); }
.person li + li { margin-top: 3px; }

/* ── 프로세스 ──────────────────────────────────────── */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.step-card { background: #f7f7f7; border-radius: 16px; padding: 30px 22px 28px; min-height: 250px; display: flex; flex-direction: column; justify-content: flex-end; transition: background .4s, color .4s, transform .4s; }
.step-card b { font-size: 1.5rem; color: #bbb; margin-bottom: auto; padding-bottom: 36px; transition: color .4s; }
.step-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step-card p { font-size: .9rem; margin: 0; color: var(--muted); line-height: 1.65; }
.step-card:hover, .step-card.on { background: var(--dark); transform: translateY(-6px); }
.step-card:hover h3, .step-card.on h3, .step-card:hover b, .step-card.on b { color: #fff; }
.step-card:hover p, .step-card.on p { color: rgba(255,255,255,.75); }
.timeline { margin-top: 28px; height: 1px; border-top: 1px dashed #bbb; display: grid; grid-template-columns: repeat(5, 1fr); }
.timeline span { text-align: center; position: relative; padding-top: 18px; font-size: .86rem; color: var(--muted); }
.timeline span::before { content: ''; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: var(--brand); }

/* ── 다크 섹션 ─────────────────────────────────────── */
.dark-sec { background: #151517; color: #fff; }
.dark-sec h2, .dark-sec h3 { color: #fff; }
.dark-sec p { color: rgba(255,255,255,.8); }
.dark-sec .sec-tit p { color: rgba(255,255,255,.85); }
.dark-sec .eyebrow { color: #e09a8f; }
.dark-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.dark-card { background: var(--dark); border-radius: 20px; padding: 32px 28px; border: 1px solid rgba(255,255,255,.08); }
.dark-card .tag { display: inline-block; font-size: .78rem; font-weight: 600; color: var(--brand); background: rgba(178,85,74,.18); border-radius: 20px; padding: 5px 12px; margin-bottom: 16px; color: #f0b3a9; }
.dark-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.dark-card p { font-size: .95rem; margin: 0; line-height: 1.75; }
.dark-cta { text-align: center; margin-top: 44px; }

/* ── Q&A ───────────────────────────────────────────── */
.qa-wrap { display: grid; grid-template-columns: 1fr 360px; gap: clamp(28px, 4vw, 56px); align-items: start; }
.faq { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 44px 24px 44px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: 'Q'; position: absolute; left: 6px; top: 22px; font-weight: 700; font-size: 1.1rem; color: var(--brand); }
.faq summary h3 { font-size: 1.04rem; margin: 0; line-height: 1.55; font-weight: 600; }
.faq summary::after { content: ''; position: absolute; right: 10px; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: translateY(-70%) rotate(45deg); transition: transform .3s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details[open] summary { background: var(--pink); }
.faq .a { padding: 4px 44px 26px; background: var(--pink); }
.faq .a p { margin: 0; color: var(--text); }
.ask-card { background: var(--dark); color: #fff; border-radius: 20px; padding: 36px 30px; position: sticky; top: calc(var(--head-h) + 20px); }
.ask-card h3 { color: #fff; font-size: 1.4rem; margin-bottom: 12px; }
.ask-card p { color: rgba(255,255,255,.78); font-size: .95rem; margin-bottom: 26px; }

/* ── 아치형 카드 (위촉 이력) ───────────────────────── */
.arch-row { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px var(--pad-x) 26px; margin: 0 calc(var(--pad-x) * -1); scrollbar-width: thin; }
.arch { flex: 0 0 min(250px, 68vw); scroll-snap-align: start; background: #fff; border-radius: 125px 125px 24px 24px; padding: 18px 18px 26px; text-align: center; }
.arch button { display: block; width: 100%; border: 0; background: var(--beige); border-radius: 110px 110px 12px 12px; padding: 14px; aspect-ratio: 3 / 4; cursor: zoom-in; overflow: hidden; }
.arch img { width: 100%; height: 100%; object-fit: contain; }
.arch b { display: block; margin-top: 16px; font-size: .96rem; line-height: 1.45; color: var(--ink); }
.arch span { font-size: .84rem; color: var(--muted); }
dialog#lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
dialog#lightbox::backdrop { background: rgba(10,10,12,.82); }
dialog#lightbox img { max-width: 94vw; max-height: 92vh; object-fit: contain; background: #fff; border-radius: 12px; }

/* ── 본문(칼럼) ────────────────────────────────────── */
.article p { margin-bottom: 1.25em; }
.article > section + section, .article > .reveal + section { margin-top: 56px; }
.bullets li, .checklist li { position: relative; padding-left: 28px; margin-bottom: 11px; }
.checklist li::before { content: ''; position: absolute; left: 3px; top: .5em; width: 8px; height: 14px; border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: rotate(40deg); }
.bullets li::before { content: ''; position: absolute; left: 6px; top: .78em; width: 7px; height: 7px; background: var(--brand); border-radius: 50%; }
.block-gap { height: 14px; }
.list-box { background: var(--pink); border-radius: 20px; padding: 26px 28px 16px; margin: 8px 0 28px; }
.list-title { font-weight: 700; color: var(--ink); margin-bottom: 14px; font-size: 1.04em; }
.steps { counter-reset: s; margin: 8px 0 30px; }
.steps li { counter-increment: s; position: relative; padding: 0 0 24px 64px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.steps li::after { content: ''; position: absolute; left: 20px; top: 48px; bottom: 6px; border-left: 1px dashed #bbb; }
.steps li:last-child::after { display: none; }
.steps strong { display: block; color: var(--ink); font-size: 1.05em; margin-bottom: 3px; }
.table-wrap { overflow-x: auto; margin: 8px 0 30px; border-radius: 16px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: .95em; }
th, td { padding: 15px 18px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.65; }
th { background: var(--pink); color: var(--ink); font-weight: 700; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td a { color: var(--brand); }
.fig { margin: 40px 0; display: grid; grid-template-columns: 200px 1fr; align-items: center; background: var(--beige); border-radius: 20px; overflow: hidden; }
.fig button { border: 0; background: none; padding: 16px; cursor: zoom-in; }
.fig img { width: 100%; max-height: 270px; object-fit: contain; }
.fig figcaption { padding: 22px 28px; font-size: .95rem; color: var(--text); }
.fig figcaption strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 1.04rem; }
.tips { display: grid; gap: 16px; }
.tip { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 26px 28px 12px; position: relative; overflow: hidden; }
.tip::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.tip .tag { font-size: .76rem; font-weight: 700; letter-spacing: .14em; color: var(--brand); display: block; margin-bottom: 6px; }
.tip h3 { font-size: 1.12rem; margin-bottom: 10px; }
.conclusion { background: var(--dark); color: #fff; border-radius: 20px; padding: clamp(30px, 4vw, 48px); margin-top: 56px; }
.conclusion h2 { color: #fff; font-size: clamp(1.3rem, 1vw + 1.1rem, 1.7rem); margin-bottom: 14px; }
.conclusion p { color: rgba(255,255,255,.85); }
.updated { margin-top: 28px; font-size: .88rem; color: var(--muted); }

/* ── 카드 / 사진 배너 / CTA ────────────────────────── */
.grid-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; transition: transform .35s, box-shadow .35s; }
a.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(0,0,0,.1); }
.card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .94rem; margin-bottom: 0; flex: 1; }
.card .more { margin-top: 18px; font-weight: 700; font-size: .92rem; color: var(--brand); }
.card .more::after { content: ' \2192'; }
.photo-banner { position: relative; display: block; overflow: hidden; border-radius: 20px; min-height: 280px; color: #fff; background: var(--dark); }
.photo-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; opacity: .42; transition: transform .9s, opacity .4s; }
.photo-banner:hover img { transform: scale(1.04); opacity: .52; }
.photo-banner .in { position: relative; z-index: 1; padding: clamp(32px, 5vw, 60px) clamp(24px, 4vw, 56px); max-width: 640px; }
.photo-banner .eyebrow { color: #f0b3a9; }
.photo-banner h3 { color: #fff; font-size: clamp(1.35rem, 1vw + 1.1rem, 1.9rem); margin-bottom: 10px; }
.photo-banner p { color: rgba(255,255,255,.88); font-size: .96rem; margin-bottom: 20px; }
.photo-banner .btn { pointer-events: none; }
.cta { background: linear-gradient(135deg, #2b2d33, #1a1a1a); color: #fff; text-align: center; padding: clamp(64px, 8vw, 100px) 0; }
.cta h2 { color: #fff; font-size: clamp(1.5rem, 1.3vw + 1.1rem, 2.2rem); margin-bottom: 14px; }
.cta p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 28px; }
.loc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.loc-card { background: var(--beige); border-radius: 20px; padding: clamp(28px, 4vw, 48px); }
.loc-card h3 { font-size: 1.3rem; margin-bottom: 16px; }
.loc-card li { padding: 10px 0; border-bottom: 1px solid #ddd8cd; display: flex; gap: 16px; }
.loc-card li:last-child { border: 0; }
.loc-card li b { flex: 0 0 82px; color: var(--ink); }

/* ── 푸터 ──────────────────────────────────────────── */
.site-footer { background: var(--foot); color: #9a9a9a; padding: 64px 0 40px; font-size: .92rem; }
.foot-in { display: flex; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; font-size: 1.15rem; margin-bottom: 12px; }
.site-footer p { margin: 0; color: #9a9a9a; line-height: 1.85; }
.site-footer ul li { margin-bottom: 4px; }
.biz-title { color: #fff !important; font-weight: 700; margin-bottom: 12px !important; }
.copy { border-top: 1px solid rgba(255,255,255,.12); margin-top: 38px !important; padding-top: 22px; font-size: .82rem; color: #777 !important; }

/* ── 고정 요소: 우측 퀵메뉴 · 하단 상담 바 · 홈 플로팅 ─── */
.side-quick { position: fixed; right: 16px; top: 50%; transform: translateY(-50%); z-index: 45; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.side-quick .pill { background: var(--dark); border-radius: 32px; padding: 14px 8px; display: flex; flex-direction: column; gap: 14px; }
.side-quick a.q { width: 52px; display: flex; flex-direction: column; align-items: center; gap: 5px; color: #fff; font-size: .68rem; font-weight: 500; }
.side-quick a.q i { width: 36px; height: 36px; border-radius: 50%; background: #f1f1f1; display: flex; align-items: center; justify-content: center; transition: background .3s; }
.side-quick a.q:hover i { background: var(--pink2); }
.side-quick svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.side-quick .top { width: 52px; height: 52px; border-radius: 50%; background: #7c85b8; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.side-quick .top svg { stroke: #fff; }
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 44; height: var(--dock-h); display: flex; background: var(--dark); }
.dock .l { background: var(--brand); color: #fff; padding: 0 clamp(24px, 4vw, 60px); display: flex; align-items: center; gap: 22px; clip-path: polygon(0 0, 100% 0, calc(100% - 38px) 100%, 0 100%); padding-right: 64px; }
.dock .l small { font-size: .74rem; opacity: .9; display: block; line-height: 1.2; }
.dock .l b { font-size: 1.45rem; letter-spacing: -.02em; line-height: 1.2; }
.dock .r { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 22px; padding: 0 clamp(20px, 4vw, 60px); color: #fff; font-size: .94rem; }
.dock .r a { background: var(--brand); color: #fff; border-radius: 8px; padding: 12px 28px; font-weight: 700; transition: background .3s; }
.dock .r a:hover { background: var(--brand-d); }
.float-home { position: fixed; left: 20px; bottom: calc(var(--dock-h) + 20px); z-index: 46; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 30px; box-shadow: 0 10px 28px rgba(0,0,0,.16); padding: 12px 20px; font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; transition: transform .3s; }
.float-home:hover { transform: translateY(-3px); }
.float-home i { width: 9px; height: 9px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); display: block; }
.m-bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; height: calc(var(--bar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); grid-template-columns: 1fr 1fr; }
.m-bar a { display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; }
.m-bar a:first-child { background: var(--dark); }
.m-bar a:last-child { background: var(--brand); }
body { padding-bottom: var(--dock-h); }

/* 상담 페이지 */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 28px 0 8px; }
.contact-card { display: block; border-radius: 20px; padding: 28px; background: var(--pink); transition: transform .3s, box-shadow .3s; }
.contact-card:hover { transform: translateY(-5px); box-shadow: 0 16px 36px rgba(0,0,0,.1); }
.contact-card .eyebrow { margin-bottom: 8px; }
.contact-card b { display: block; font-size: 1.5rem; letter-spacing: -.02em; margin-bottom: 4px; word-break: break-all; }
.contact-card.mail b { font-size: 1.1rem; }
.contact-card span { color: var(--muted); font-size: .92rem; }

/* 스크롤 등장 */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s ease; }
.reveal.show { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } * { animation: none !important; } }

/* ── 반응형 ────────────────────────────────────────── */
@media (max-width: 1100px) {
  .gnb > a, .gnb > details > summary { width: 88px; font-size: .94rem; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(3, 1fr); }
  .timeline { display: none; }
  .qa-wrap { grid-template-columns: 1fr; }
  .ask-card { position: static; }
  .side-quick { display: none; }
  .sitemap-in { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) { .gnb { display: none; } .header-in { grid-template-columns: 1fr auto; } }
@media (max-width: 768px) {
  :root { --head-h: 64px; }
  body { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }
  .dock { display: none; }
  .m-bar { display: grid; }
  .section { padding: 100px 0 100px; padding-top: 80px; padding-bottom: 80px; }
  .hero-in { grid-template-columns: 1fr; padding-top: calc(var(--head-h) + 28px); gap: 0; }
  .hero-copy { padding-bottom: 32px; text-align: center; }
  .hero .sum { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-photo { max-width: 340px; }
  .grid-cards, .dark-grid, .contact-grid, .loc { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr; }
  .person .ph { aspect-ratio: 4 / 3; }
  .process { grid-template-columns: 1fr 1fr; }
  .step-card { min-height: 190px; padding: 22px 18px; }
  .step-card b { padding-bottom: 20px; }
  .sitemap-in { grid-template-columns: 1fr; gap: 24px; }
  .fig { grid-template-columns: 1fr; }
  .fig img { max-height: 240px; }
  .steps li { padding-left: 54px; }
  .steps li::before { width: 38px; height: 38px; }
  .steps li::after { left: 18px; top: 44px; }
  .faq summary { padding: 20px 34px 20px 34px; }
  .faq .a { padding: 4px 22px 22px 34px; }
  .float-home { left: 14px; bottom: calc(var(--bar-h) + 14px + env(safe-area-inset-bottom)); padding: 10px 16px; font-size: .84rem; }
  .conclusion .btn, .cta .btn { width: 100%; }
  .site-footer { padding-top: 48px; }
  .tabs-in { justify-content: flex-start; }
}
.sec-tit.left { text-align: left; }
.sec-tit.left p { margin-left: 0; }

/* ═══ 모바일 최적화 (≤768px) ═══════════════════════════ */
a, button, summary { -webkit-tap-highlight-color: transparent; }
.brand { min-height: 44px; }
.slider, .arch-row, .tabs-in { overscroll-behavior-x: contain; }
body.lock { overflow: hidden; }
.float-home { transition: transform .3s, opacity .3s; }
.float-home.away { transform: translateY(24px); opacity: 0; pointer-events: none; }

@media (max-width: 768px) {
  body { font-size: 16px; line-height: 1.8; }
  .eyebrow { font-size: .84rem; }
  .slide dt { font-size: .84rem; }
  .slide dd { font-size: 1rem; }
  .copy { font-size: .86rem; }
  .hero-ribbon span { font-size: .84rem; }
  .brand small { display: none; }
  .brand { font-size: 1.02rem; }

  /* 히어로: 좌측정렬로 읽기 편하게, 사진은 낮춰서 CTA가 첫 화면에 보이게 */
  .hero-copy { text-align: left; padding-bottom: 28px; }
  .hero .sum { margin-left: 0; }
  .hero-actions { justify-content: flex-start; gap: 10px; }
  .hero-actions .btn { flex: 1 1 100%; padding: 16px 20px; }
  .hero-photo { max-width: none; width: calc(100% - 0px); }
  .hero-photo img { aspect-ratio: 4 / 4.2; object-position: center 8%; border-radius: 20px 20px 0 0; }
  .hero-ribbon .wrap { padding-top: 14px; padding-bottom: 14px; gap: 18px; justify-content: space-around; }
  .hero-ribbon b { font-size: 1.02rem; }

  .section { padding: 72px 0; }
  .sec-tit { margin-bottom: 30px; }
  .sec-tit p { font-size: 1rem; }
  .sec-tit.left { text-align: left; }

  /* 사이트맵: 큰 터치 영역 */
  .sitemap { padding-top: 12px; }
  .sitemap a { padding: 15px 0; font-size: 1.1rem; }
  .sitemap h3 { margin-top: 10px; }

  /* 슬라이더/탭 */
  .tabs { margin-bottom: 26px; }
  .tabs-in { width: 100%; border-radius: 28px; }
  .tabs button { padding: 12px 18px; min-height: 44px; }
  .slide { flex-basis: 84vw; padding: 52px 22px 22px; }
  .slide .more { min-height: 44px; }

  /* 카드 */
  .card { padding: 24px 22px; }
  .person .txt { padding-top: 14px; }
  .dark-card { padding: 26px 22px; }
  .ask-card { padding: 28px 22px; }

  /* 프로세스: 1열 가로형 카드 */
  .process { grid-template-columns: 1fr; gap: 10px; }
  .step-card { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 18px 20px; }
  .step-card b { padding: 0; margin: 0; font-size: 1.3rem; flex: 0 0 auto; }
  .step-card h3 { margin: 0; flex: 1; font-size: 1.08rem; }
  .step-card p { flex: 1 0 100%; margin-top: 4px; }
  .step-card:hover { transform: none; }

  /* 표: 가로 스크롤 대신 카드형으로 */
  .table-wrap { border: 0; overflow: visible; margin-bottom: 24px; }
  table, thead, tbody, tr, th, td { display: block; min-width: 0; width: 100%; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  tr { border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; padding: 6px 0; background: #fff; overflow: hidden; }
  td { border: 0; padding: 8px 18px; }
  td::before { content: attr(data-label); display: block; font-size: .8rem; font-weight: 700; color: var(--brand); margin-bottom: 1px; }
  td:first-child { font-weight: 700; color: var(--ink); background: var(--pink); padding-top: 12px; padding-bottom: 12px; margin-top: -6px; margin-bottom: 4px; }
  td:first-child::before { display: none; }

  /* 본문 요소 */
  .list-box { padding: 22px 20px 10px; border-radius: 16px; }
  .tip { padding: 22px 20px 8px; }
  .fig figcaption { padding: 18px 20px 22px; }
  .conclusion { padding: 28px 22px; border-radius: 16px; }
  .photo-banner { min-height: 260px; border-radius: 16px; }
  .photo-banner .in { padding: 30px 22px; }
  .photo-banner .btn { width: 100%; }
  .contact-card { padding: 22px; }
  .contact-card b { font-size: 1.35rem; }
  .loc-card { padding: 26px 22px; }
  .loc-card li { flex-direction: column; gap: 2px; }
  .loc-card li b { flex: none; }
  .arch { flex-basis: 66vw; }
  .site-footer { padding-bottom: 28px; }
  .foot-in { gap: 28px; }
}
@media (max-width: 380px) {
  :root { --pad-x: 18px; }
  .hero h1 { font-size: 1.95rem; }
  .m-bar a { font-size: .95rem; }
}
@media (max-width: 768px) { .tip .tag, .ribbon-tag, .dark-card .tag, .person h3 small { font-size: .86rem; } }

/* 모바일/태블릿 사진 크롭·크기 보정 */
@media (max-width: 768px) {
  .hero-photo { max-width: 440px; margin: 0 auto; }
  .people { grid-template-columns: repeat(2, 1fr); gap: 22px 14px; }
  .person .ph { aspect-ratio: 1 / 1; }
  .person .ph img { object-position: center 18%; }
  .person .ph.num { aspect-ratio: auto; height: 84px; font-size: 2.2rem; justify-content: flex-start; padding-left: 22px; }
  .person:first-child { grid-column: 1 / -1; }
  .person:first-child .ph { aspect-ratio: 4 / 3.4; }
  .person:first-child .ph img { object-position: center 10%; }
  .person h3 { font-size: 1.08rem; }
  .person li { font-size: .98rem; }
  .fig img { max-height: 220px; object-fit: contain; }
  .photo-banner img { object-position: center 12%; }
}
@media (max-width: 520px) {
  .people { grid-template-columns: 1fr; }
  .person:first-child .ph { aspect-ratio: 1 / 1; }
}
