/* ================================================================
   비지팅엔젤스 지점 홈페이지 — 새 디자인(v2) 골격
   원칙(레퍼런스 alliahealth.co 에서 가져온 것): 가는 큰 제목, 사진이 주인공,
   옅은 바탕색으로 구역 구분, 카드 테두리·그림자 대신 가는 선, 강조색은 행동 버튼에만.
   색은 비둘기 로고(청록 #58c0c0 · 파랑 #0078c0)에서 출발. 글자 대비는 모두 4.5:1 이상.
   ※ 확정 디자인이 아니라 골격이다 — Claude Design 시안이 오면 토큰부터 바꾼다.
   ================================================================ */

:root {
    --ink:        #0d2436;  /* 본문·제목, 어두운 구역 바탕 (흰 바탕 15.9:1) */
    --ink-2:      #3a4f61;  /* 설명 글 (흰 8.5:1, 옅은 바탕 7.6:1 이상) */
    --ink-3:      #56697a;  /* 날짜·보조 (흰 5.7:1, 옅은 바탕 5.1:1 이상) */
    --paper:      #ffffff;
    --paper-warm: #f8f6f0;  /* 구역 바탕 1 */
    --mist:       #ecf5f5;  /* 구역 바탕 2 — 로고 청록을 아주 옅게 */
    --teal:       #58c0c0;  /* 로고 청록 — 장식·아이콘, 위에 올리는 글자는 ink */
    --teal-deep:  #1b6f71;  /* 링크·작은 제목 (모든 바탕 5.3:1 이상) */
    --teal-light: #8fd9d9;  /* 어두운 바탕 위 작은 제목 (ink 위 9.9:1) */
    --cta:        #54c9c9;  /* 행동 버튼 — 로고 청록(#58c0c0)과 같은 색상, 채도만 조금 올림. 글자는 ink (8.0:1) */
    --cta-hover:  #3bbaba;  /* ink 6.7:1 */
    --cta-mint-soft: #e3f5f4; /* 비교표 「비지팅엔젤스」 열 — 버튼과 같은 계열 */
    --cta-soft:   #fff0e0;  /* 안내·주의 상자 (따뜻한 바탕) */
    --line:       rgba(13, 36, 54, 0.14);   /* 가는 구분선 (장식) */
    --line-strong:#8a96a0;                  /* 입력칸 테두리 (흰 3:1) */
    --error:      #b42318;
    --focus:      #0078c0;

    --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Noto Sans KR', sans-serif;
    --r-pill: 999px;
    --r-lg:   24px;
    --r-md:   16px;
    --r-sm:   12px;
    --wrap:   1200px;
}

/* ── 기본 ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body.v2 {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--paper);
    word-break: keep-all;
    overflow-wrap: anywhere;
    -webkit-font-smoothing: antialiased;
}
:where(.v2) img { max-width: 100%; display: block; }
:where(.v2) a { color: inherit; }
/* :where() 로 감싸 우선순위 0 — 아래 컴포넌트 규칙의 여백이 항상 이긴다 */
:where(.v2) :where(h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote) { margin: 0; }
:where(.v2) :where(ul, ol) { padding: 0; list-style: none; }
.v2 :focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.v2 .section-ink :focus-visible, .v2 .site-header :focus-visible, .v2 .site-footer :focus-visible, .v2 .hero :focus-visible { outline-color: var(--teal-light); }
.ic { flex-shrink: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r-sm); }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow, .narrow { max-width: 860px; }

/* ── 버튼 ───────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 48px; padding: 0 24px;
    border: 1px solid transparent; border-radius: var(--r-pill);
    font: inherit; font-size: 16px; font-weight: 600; line-height: 1.2;
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s;
}
.btn-cta { background: var(--cta); color: var(--ink); }
.btn-cta:hover { background: var(--cta-hover); }
.btn-line, .v2 .btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover, .v2 .btn-outline:hover { background: rgba(13, 36, 54, .06); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-row.center { justify-content: center; margin-top: 48px; }
.text-link {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--teal-deep); font-weight: 600; text-decoration: none;
    border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.text-link .ic { width: 16px; height: 16px; }

/* ── 헤더: 맨 위에서는 화면 전체 너비 바, 스크롤하면 떠 있는 알약 ─────────
   v2/site.js 가 스크롤 24px 넘으면 .is-scrolled 를 붙인다. 자바스크립트가 없으면 전체 너비 바 그대로. */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 50;
    display: flex; justify-content: center; pointer-events: none;
    padding: 0;
    transition: padding .35s ease;
}
.site-header::before {        /* 전체 너비 바탕 — 알약이 되면 사라진다 */
    content: ""; position: absolute; inset: 0;
    background: rgba(13, 36, 54, .92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, .06);
    transition: opacity .3s ease;
}
.nav-pill {
    position: relative; pointer-events: auto;
    width: 100%; max-width: 1480px;          /* 맨 위 바는 화면 전체 너비라 내용 폭도 조금 넓게 */
    display: flex; align-items: center; gap: 24px;
    padding: 24px 40px;
    background: transparent; color: #fff; border-radius: 0;
    transition: padding .35s ease, background-color .3s ease, border-radius .35s ease, max-width .35s ease, gap .35s ease;
}
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; min-width: 0; }
.brand img { width: 58px; height: 58px; background: #fff; border-radius: 50%; padding: 5px; transition: width .35s ease, height .35s ease, padding .35s ease; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.brand-text strong { font-size: 21px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: font-size .35s ease; }
.brand-text small { font-size: 14px; color: rgba(255, 255, 255, .72); white-space: nowrap; transition: font-size .35s ease; }
.nav-main { margin-left: auto; flex-shrink: 0; }
.nav-actions { flex-shrink: 0; }
.nav-main > ul { display: flex; align-items: center; gap: 4px; }
.nav-main a, .nav-main summary {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 12px 12px; border-radius: var(--r-pill);
    font-size: 17.5px; font-weight: 500; color: rgba(255, 255, 255, .9); text-decoration: none; cursor: pointer;
    white-space: nowrap;
    transition: padding .35s ease, font-size .35s ease, background-color .2s ease;
}
.nav-main a:hover, .nav-main summary:hover, .nav-main [aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-main .nav-ext .ic { width: 13px; height: 13px; opacity: .7; }
.nav-main summary { list-style: none; }
.nav-main summary::-webkit-details-marker { display: none; }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: 17.5px; white-space: nowrap; transition: font-size .35s ease; }
.nav-actions .btn-sm { padding: 15px 26px; font-size: 17px; white-space: nowrap; transition: padding .35s ease, font-size .35s ease, background-color .2s ease; }

/* 스크롤한 뒤 — 지금까지의 떠 있는 알약 */
.site-header.is-scrolled { padding: 12px 16px 0; }
.site-header.is-scrolled::before { opacity: 0; }
.site-header.is-scrolled .nav-pill {
    max-width: 1280px; gap: 20px; padding: 8px 8px 8px 16px;
    background: rgba(13, 36, 54, .9);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-radius: var(--r-pill);
}
.site-header.is-scrolled .brand img { width: 34px; height: 34px; padding: 3px; }
.site-header.is-scrolled .brand-text strong { font-size: 16px; }
.site-header.is-scrolled .brand-text small { font-size: 12px; }
.site-header.is-scrolled .nav-main a, .site-header.is-scrolled .nav-main summary { padding: 8px 12px; font-size: 15px; }
.site-header.is-scrolled .nav-phone { font-size: 15px; }
.site-header.is-scrolled .nav-actions .btn-sm { padding: 10px 18px; font-size: 15px; }
/* 좁은 데스크톱 — 전화는 아이콘만 */
@media (max-width: 1290px) {
    .nav-phone span { display: none; }
    .nav-phone { padding: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .site-header, .site-header::before, .nav-pill, .brand img, .brand-text strong, .brand-text small,
    .nav-main a, .nav-main summary, .nav-phone, .nav-actions .btn-sm { transition: none; }
}
.nav-drop { position: relative; }
.nav-drop details[open] summary .ic { transform: rotate(180deg); }
.nav-drop-list {
    position: absolute; top: calc(100% + 14px); left: 0; min-width: 200px;
    padding: 8px; background: #fff; color: var(--ink); border-radius: var(--r-md);
    box-shadow: 0 18px 40px rgba(13, 36, 54, .18);
}
.nav-drop-list a { display: block; color: var(--ink); padding: 10px 14px; border-radius: var(--r-sm); }
.nav-drop-list a:hover { background: var(--mist); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-phone { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; color: #fff; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-mobile { display: none; }

/* ── 히어로 ─────────────────────────────────────────────────── */
.hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--ink); }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 30%; }
/* 사진 위 글자를 읽히게 하는 그늘 — 장식용 그라데이션이 아니다 */
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13, 36, 54, .86) 0%, rgba(13, 36, 54, .62) 42%, rgba(13, 36, 54, .08) 78%); }
.hero-inner { position: relative; width: 100%; padding-top: 160px; padding-bottom: 72px; }
.hero-title { max-width: 720px; font-size: clamp(38px, 5.6vw, 68px); font-weight: 300; line-height: 1.16; letter-spacing: -0.03em; margin-bottom: 24px; }
.hero-title span { display: block; }
.hero-sub { max-width: 560px; font-size: 18px; color: rgba(255, 255, 255, .88); margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .25); font-size: 15px; color: rgba(255, 255, 255, .9); }
.hero-trust li { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .ic { color: var(--teal-light); }

/* ── 구역 공통 ──────────────────────────────────────────────── */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-paper { background: var(--paper-warm); }
.section-mist { background: var(--mist); }
.section-ink { background: var(--ink); color: #fff; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--teal-deep); margin-bottom: 14px; }
.eyebrow-light { color: var(--teal-light); }
.v2 h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 300; line-height: 1.25; letter-spacing: -0.025em; }
.v2 h3 { font-size: 20px; font-weight: 600; line-height: 1.45; }
.sec-head { max-width: 760px; margin-bottom: 56px; }
.sec-head h2 + .sec-lead { margin-top: 16px; }
.sec-lead { font-size: 18px; color: var(--ink-2); }
.section-ink .sec-lead { color: rgba(255, 255, 255, .82); }
.sec-head-row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* ── ① 비용 계산기 ──────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.calc-intro h2 { margin-bottom: 16px; }
.calc-intro .text-link { margin-top: 28px; }
.calc-form { background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); }
.calc-form fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.calc-form legend small { font-weight: 400; font-size: 14px; color: var(--ink-3); margin-left: 6px; }
.calc-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; margin-bottom: 28px; background: var(--mist); border-radius: var(--r-md); }
.calc-tabs-2 { grid-template-columns: repeat(2, 1fr); }
.calc-tabs-3 { grid-template-columns: repeat(3, 1fr); }
.calc-tab { position: relative; }
.calc-tab input { position: absolute; opacity: 0; inset: 0; }
.calc-tab span {
    display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 6px;
    border-radius: var(--r-sm); font-size: 16px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap;
}
.calc-tab input:checked + span { background: var(--paper); color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(13, 36, 54, .16); }
.calc-tab input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.calc-panel .check { display: flex; gap: 10px; align-items: flex-start; margin-top: 16px; font-size: 16px; cursor: pointer; }
.calc-panel .check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--ink); }
.calc-panel .check small { color: var(--ink-3); }
/* 드롭다운 바로 아래 안내 (차량목욕을 하지 않는 지점) */
.field-warn { display: block; margin-top: 8px; padding: 10px 12px; background: var(--cta-soft); border-radius: var(--r-sm); font-size: 14px; font-weight: 500; line-height: 1.55; color: var(--ink); }
.field-warn[hidden] { display: none; }
.calc-extra { margin: 14px 0 0; padding: 12px 14px; background: var(--mist); border-radius: var(--r-sm); font-size: 15px; line-height: 1.6; color: var(--ink); }
.calc-form legend, .field > span { display: block; font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.field > span em { color: var(--error); font-style: normal; }
.field > span small { font-weight: 400; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; }
.chip span {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px;
    border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: 16px; cursor: pointer;
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.calc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: block; }
.v2 input:not([type="radio"]):not([type="checkbox"]), .v2 select, .v2 textarea {
    width: 100%; min-height: 52px; padding: 0 14px;
    font: inherit; font-size: 17px; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
}
.v2 textarea { padding: 14px; line-height: 1.6; resize: vertical; }
.v2 select { appearance: none; -webkit-appearance: none; padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%230d2436' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; }
.v2 input[aria-invalid="true"] { border-color: var(--error); }
.calc-result { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.calc-label { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.calc-label small { font-weight: 400; }
.calc-amount { font-size: 22px; margin: 4px 0 16px; }
.calc-amount strong { font-size: clamp(44px, 6vw, 60px); font-weight: 300; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-right: 4px; }
.calc-detail div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.calc-detail dt { color: var(--ink-2); }
.calc-detail dt small { color: var(--ink-3); }
.calc-detail dd { font-variant-numeric: tabular-nums; font-weight: 500; }
.calc-note { margin: 16px 0 24px; font-size: 15px; color: var(--ink-3); line-height: 1.65; }

/* ── 고객 질문 ──────────────────────────────────────────────── */
.qa-list { border-top: 1px solid var(--ink); }
.qa-list li { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px 64px; padding: 36px 0; border-bottom: 1px solid var(--line); }
.qa-q { font-size: clamp(22px, 2.6vw, 28px); font-weight: 300; line-height: 1.45; letter-spacing: -0.02em; }
.qa-a strong { display: block; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.qa-a p { color: var(--ink-2); }
.qa-a .text-link { margin-top: 12px; }
.qa-more { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.qa-more p { font-weight: 500; }

/* ── 서비스 목록 (가는 선) ──────────────────────────────────── */
.svc-list { border-top: 1px solid var(--ink); }
.svc-list li { border-bottom: 1px solid var(--line); }
.svc-list a { display: grid; grid-template-columns: 220px 1fr 220px 40px; gap: 24px; align-items: center; padding: 32px 8px; text-decoration: none; transition: background-color .2s; }
.svc-list a:hover { background: rgba(255, 255, 255, .6); }
.svc-name { font-size: clamp(24px, 2.6vw, 32px); font-weight: 300; letter-spacing: -0.02em; }
.svc-desc { color: var(--ink-2); }
.svc-meta { font-size: 15px; color: var(--ink-3); }
.svc-go { color: var(--teal-deep); transition: transform .2s; }
/* 이 지점이 직접 하지 않는 서비스 — 연계 안내 */
.svc-list li.svc-sub { border-bottom: 0; }
.svc-sub p { padding: 40px 8px 14px; font-size: 15px; color: var(--ink-2); }
.svc-sub strong { display: inline-block; margin-right: 10px; color: var(--teal-deep); font-weight: 600; }
.is-referral .svc-name { color: var(--ink-2); }
.is-referral .svc-meta { color: var(--teal-deep); font-weight: 600; }
.nav-drop-label { padding: 12px 14px 4px; margin-top: 6px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-3); }
.referral { background: var(--paper-warm); padding-bottom: 40px; }
.referral-box { display: flex; align-items: center; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; padding: 24px 28px; background: var(--cta-soft); border-radius: var(--r-md); }
.referral-box > div { flex: 1 1 420px; min-width: 0; }
.referral-title { font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.referral-box p:not(.referral-title) { color: var(--ink-2); }

/* ── 재방문 맞춤 블록 (lib/pref.js · views/v2/landing.js) — 맞춤군 재방문자에게만 한 개 ── */
.focus, .job-band { padding: clamp(52px, 6vw, 80px) 0; }
.focus-inner { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
.focus-text h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.focus-text h2 small { font-size: .5em; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: 6px; }
.focus-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 24px; border-top: 1px solid var(--ink); }
.focus-facts div { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
.focus-facts dt { font-size: 14px; color: var(--ink-3); }
.focus-facts dd { font-size: 16px; font-weight: 600; line-height: 1.5; }
.focus-note { margin-top: 20px; padding: 12px 16px; border-radius: var(--r-sm); background: var(--cta-soft); font-size: 16px; font-weight: 600; }
.focus.is-referral .focus-note { background: var(--paper); font-weight: 500; color: var(--ink-2); }
.focus-actions { display: grid; gap: 12px; }
.focus-actions .btn { width: 100%; justify-content: center; }
.focus-why { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.focus-why a { color: var(--teal-deep); }
.job-band { border-bottom: 1px solid var(--line); }
.job-band-list { margin-top: 20px; border-top: 1px solid var(--line); }
.job-band-list li { border-bottom: 1px solid var(--line); }
.job-band-list a { display: block; padding: 12px 0; font-weight: 600; text-decoration: none; }
.job-band-list a:hover { color: var(--teal-deep); text-decoration: underline; }
.calc-restored { display: inline-block; margin-bottom: 10px; padding: 2px 12px; border-radius: var(--r-pill); background: var(--mist); color: var(--teal-deep); font-size: 14px; font-weight: 600; }
.svc-list a:hover .svc-go { transform: translateX(4px); }

/* ── ② 비교표 ───────────────────────────────────────────────── */
.compare-scroll { overflow-x: auto; }
.compare { width: 100%; min-width: 620px; border-collapse: separate; border-spacing: 0; }
.compare th, .compare td { padding: 22px 20px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.compare thead th { font-size: 20px; font-weight: 500; border-bottom: 1px solid var(--ink); }
.compare tbody th { width: 22%; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.compare .is-us { width: 46%; background: var(--cta-mint-soft); }
.compare thead .is-us { border-radius: var(--r-md) var(--r-md) 0 0; }
.compare tbody tr:last-child .is-us { border-radius: 0 0 var(--r-md) var(--r-md); border-bottom-color: transparent; }
.compare td.is-us { font-weight: 500; }
.compare-cell { display: flex; gap: 10px; }
.compare-cell .ic { color: var(--teal-deep); margin-top: 5px; }
.compare td.is-other { color: var(--ink-3); }

/* ── 등급 신청 4단계 ────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

/* ── 등급 예측 테스트 (등급 신청 대행 구역 안) ──────────────── */
.gt { background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); margin-bottom: 64px; scroll-margin-top: 96px; }
.gt [hidden] { display: none !important; }
.gt-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: center; }
.gt-kicker { font-size: 15px; font-weight: 600; color: var(--teal-deep); margin-bottom: 10px; }
.gt h3 { font-size: clamp(23px, 2.4vw, 30px); font-weight: 400; letter-spacing: -0.02em; line-height: 1.35; }
.gt h3:focus { outline: none; }
.gt-lead { color: var(--ink-2); margin-top: 10px; }
.gt-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.gt-facts li { display: inline-flex; align-items: center; gap: 8px; }
.gt-facts li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.gt-top { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.gt-count { min-width: 48px; font-size: 15px; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.gt-bar { flex: 1; height: 6px; background: var(--mist); border-radius: var(--r-pill); overflow: hidden; }
.gt-bar i { display: block; width: 0; height: 100%; background: var(--teal-deep); border-radius: inherit; transition: width .25s ease; }
.gt-q h3 { margin-bottom: 20px; }
.gt-opts { display: grid; gap: 10px; }
.gt-opt {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 14px 18px;
    font: inherit; font-size: 17px; line-height: 1.45; text-align: left; color: var(--ink);
    background: var(--paper); border: 1px solid var(--line-strong); border-radius: var(--r-md); cursor: pointer;
    transition: border-color .15s, background-color .15s, color .15s;
}
.gt-opt::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-strong); }
@media (hover: hover) { .gt-opt:hover { border-color: var(--ink); } }   /* 휴대폰에서 누른 자리에 테두리가 남지 않게 */
.gt-opt[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gt-opt[aria-pressed="true"]::before { border-color: #fff; background: radial-gradient(circle, #fff 0 4px, transparent 5px); }
.gt.is-moving .gt-opt { pointer-events: none; }
.gt-nav { margin-top: 18px; }
.gt-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.gt-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.gt-wait { display: grid; justify-items: center; gap: 4px; padding: 36px 0; text-align: center; }
.gt-wait-title { font-size: 18px; font-weight: 600; margin-top: 14px; }
.gt-wait-title:focus { outline: none; }
.gt-spin { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--mist); border-top-color: var(--teal-deep); animation: gt-spin .9s linear infinite; }
@keyframes gt-spin { to { transform: rotate(360deg); } }
.gt-result { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px 56px; align-items: start; }
.gt-label { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.gt-label:focus, .gt-error-msg:focus { outline: none; }
.gt-grade { font-size: clamp(52px, 7vw, 76px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; margin: 8px 0 14px; }
.gt-grade small { display: block; font-size: 18px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); margin-top: 8px; }
.gt-conf { display: inline-flex; padding: 5px 14px; border-radius: var(--r-pill); background: var(--mist); font-size: 14px; font-weight: 600; color: var(--teal-deep); }
.gt-summary { font-size: 17px; line-height: 1.75; }
.gt-disclaimer { margin-top: 14px; font-size: 14px; line-height: 1.6; color: var(--ink-3); }
.gt-actions { margin: 24px 0 8px; }
.gt-error-msg { font-size: 17px; font-weight: 600; margin-bottom: 18px; }
@media (prefers-reduced-motion: reduce) {
    .gt-spin { animation-duration: 2.4s; }
    .gt-bar i, .gt-opt { transition: none; }
}
.steps li { border-top: 1px solid var(--ink); padding-top: 24px; }
.step-no { display: block; font-size: 44px; font-weight: 200; line-height: 1; color: var(--teal-deep); margin-bottom: 20px; font-variant-numeric: tabular-nums; }
.steps h3 { margin-bottom: 8px; }
.steps p { color: var(--ink-2); font-size: 16px; }

/* ── 사진 + 글 ──────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.split-top { align-items: start; }
.split-photo img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); }
/* 가로로 넓은 단체 사진 — 세로로 자르면 가장자리 사람이 잘린다 */
.split-photo-wide { align-self: center; }
.split-photo-wide img { aspect-ratio: 16 / 9; }
.split-text h2 { margin-bottom: 20px; }
.split-text > p + p { margin-top: 12px; }
.split-text .sec-lead { margin-bottom: 8px; }
.check-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 28px 0; }
.check-list li { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.check-list .ic { color: var(--teal-deep); }
.partner { font-size: 15px; color: var(--ink-3); margin-bottom: 24px; }
.partner strong { color: var(--ink); font-weight: 600; }

/* ── 블로그 ─────────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.post-item { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.post-thumb { display: block; aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: var(--paper); margin-bottom: 8px; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-item:hover .post-thumb img { transform: scale(1.03); }
.post-date { font-size: 14px; color: var(--ink-3); }
.post-title { font-size: 19px; font-weight: 600; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post-excerpt { font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ── 공지사항 · 구인 (제목 목록) ────────────────────────────── */
.section-news { padding: clamp(48px, 7vw, 88px) 0; }
.news { display: grid; gap: clamp(32px, 6vw, 96px); }
.news-2 { grid-template-columns: 1fr 1fr; }
.news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.news-head h3 { font-size: 22px; font-weight: 500; }
.news-head .text-link { font-size: 15px; border-bottom: 0; }
.news-list a { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; }
.news-list a:hover .news-title { color: var(--teal-deep); }
.news-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-date { flex: none; font-size: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

/* ── 후기 ───────────────────────────────────────────────────── */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.quotes li { border-top: 1px solid var(--ink); padding-top: 28px; display: flex; flex-direction: column; }
.quotes blockquote p { font-size: 19px; font-weight: 300; line-height: 1.75; margin-bottom: 24px; }
.quote-by { margin-top: auto; font-size: 15px; color: var(--ink-2); }
.quote-by strong { color: var(--ink); font-weight: 600; }
.quote-meta { font-size: 14px; color: var(--ink-3); }

/* ── 인사말 · 오시는 길 ─────────────────────────────────────── */
.prose p + p { margin-top: 16px; }
.prose { color: var(--ink-2); }
.sign { margin-top: 24px; font-weight: 600; }
.visit-card { background: var(--paper); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); }
.visit-card h3 { margin-bottom: 16px; }
.visit-card dl { margin-bottom: 24px; }
.visit-card dl div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.visit-card dt { color: var(--ink-3); font-size: 15px; }
.visit-card dd a { font-weight: 600; text-decoration: none; }
.visit-map { height: 240px; margin-bottom: 20px; border-radius: var(--r-md); overflow: hidden; background: var(--mist); }
.visit-map[hidden] { display: none; }

/* ── 상담 신청 (어두운 구역) ────────────────────────────────── */
.consult-contact { margin-top: 32px; display: grid; gap: 12px; }
.consult-contact li, .consult-contact a { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.consult-contact a { font-size: 26px; font-weight: 300; }
.consult-contact .ic { color: var(--teal-light); }
.consult-form { background: var(--paper); color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.form-msg { min-height: 1.5em; font-size: 15px; font-weight: 500; }
.form-msg.is-error { color: var(--error); }
.form-msg.is-ok { color: var(--teal-deep); }
.form-note { font-size: 14px; color: var(--ink-3); text-align: center; }
.form-note a { color: var(--teal-deep); text-underline-offset: 3px; white-space: nowrap; }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { border-top: 1px solid var(--ink); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; font-size: 18px; font-weight: 500; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--teal-deep); transition: transform .2s; }
.faq[open] summary .ic { transform: rotate(45deg); }
.faq p { padding: 0 48px 28px 0; color: var(--ink-2); }

/* ── 서브페이지 ─────────────────────────────────────────────── */
.page-head { background: var(--paper-warm); padding: 152px 0 56px; }
.page-head h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 300; line-height: 1.2; letter-spacing: -0.03em; }
.page-lead { max-width: 720px; margin-top: 20px; font-size: 19px; color: var(--ink-2); }
.page-facts { background: var(--paper-warm); padding-bottom: 32px; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.facts div { padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-size: 14px; color: var(--ink-3); }
.facts dd { font-weight: 600; }
.page-tabs { display: flex; gap: 8px; margin-top: 24px; }
.page-tabs a { padding: 8px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); text-decoration: none; font-size: 15px; font-weight: 500; }
.page-tabs a:hover { background: var(--paper); }
.doc { padding-top: 24px; padding-bottom: 72px; }
.doc-section { padding-top: 40px; }
.doc h2 { font-size: clamp(26px, 3vw, 34px); margin: 32px 0 20px; }
.doc h3 { margin: 40px 0 14px; }
.doc p + p { margin-top: 12px; }
.def-list { border-top: 1px solid var(--ink); }
.def-list div { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.def-list dt { font-weight: 600; }
.def-list dd { color: var(--ink-2); }
.dot-list li { position: relative; padding-left: 20px; margin: 8px 0; color: var(--ink-2); }
.dot-list li::before { content: ''; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal); }
.dot-list strong, .note strong, .callout strong { color: var(--ink); }
.note { margin-top: 20px; padding: 16px 20px; background: var(--mist); border-radius: var(--r-sm); font-size: 15px; color: var(--ink-2); }
.callout { padding: 18px 22px; background: var(--cta-soft); border-radius: var(--r-sm); margin-bottom: 8px; }
/* 넓은 표는 옆으로 민다 — 넘치는 쪽 가장자리에 옅은 그늘이 생겨 더 있다는 걸 알린다 */
.table-scroll {
    overflow-x: auto; margin: 24px 0;
    background:
        linear-gradient(to right, var(--paper) 30%, rgba(255, 255, 255, 0)) left center / 32px 100% no-repeat local,
        linear-gradient(to left, var(--paper) 30%, rgba(255, 255, 255, 0)) right center / 32px 100% no-repeat local,
        linear-gradient(to right, rgba(13, 36, 54, .14), rgba(13, 36, 54, 0)) left center / 12px 100% no-repeat scroll,
        linear-gradient(to left, rgba(13, 36, 54, .14), rgba(13, 36, 54, 0)) right center / 12px 100% no-repeat scroll;
}
.table-hint { margin: 20px 0 -14px; font-size: 13px; color: var(--ink-3); }
.data-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.data-table caption { text-align: left; font-size: 17px; font-weight: 600; padding-bottom: 12px; }
.data-table caption span { font-size: 14px; font-weight: 400; color: var(--ink-3); margin-left: 6px; }
.data-table th, .data-table td { padding: 13px 12px; border-bottom: 1px solid var(--line); text-align: right; }
.data-table th:first-child { text-align: left; }
.data-table td { white-space: nowrap; }   /* 금액이 줄 바뀌어 쪼개지지 않게 */
.data-table thead th { font-size: 14px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--ink); white-space: nowrap; }
.data-table tbody th { font-weight: 500; }
.mini-steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mini-steps li { counter-increment: s; border-top: 1px solid var(--ink); padding-top: 16px; display: flex; flex-direction: column; gap: 6px; }
.mini-steps li::before { content: '0' counter(s); font-size: 28px; font-weight: 200; color: var(--teal-deep); }
.mini-steps span { color: var(--ink-2); font-size: 16px; }
.sibling-nav { padding-bottom: 72px; }
.sibling-nav p { font-size: 15px; color: var(--ink-3); margin-bottom: 8px; }
.sibling-nav ul { display: flex; flex-wrap: wrap; gap: 8px; }
.sibling-nav a { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); text-decoration: none; font-weight: 500; }
.sibling-nav .ic { width: 16px; height: 16px; }
.terms h3 { font-size: 18px; }
/* 개인정보 처리방침 */
.policy { font-size: 17px; }
.policy-date { font-size: 15px; color: var(--ink-3); }
.policy-notice { margin: 16px 0 8px; padding: 16px 20px; border-radius: var(--r-md); background: var(--cta-soft); display: grid; gap: 6px; }
.policy-notice p { color: var(--ink); }
.policy-notice strong { margin-right: 6px; }
.policy-notice a { color: var(--teal-deep); }
.policy h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin: 52px 0 14px; scroll-margin-top: 96px; }
.policy p, .policy li, .policy td, .policy dd { color: var(--ink-2); }
.policy ul { list-style: disc; padding-left: 1.25em; margin-top: 12px; display: grid; gap: 6px; }
.policy a { color: var(--teal-deep); text-underline-offset: 3px; }
.policy strong { color: var(--ink); font-weight: 600; }
.policy-points { background: var(--mist); border-radius: var(--r-sm); padding: 18px 22px 18px 2.4em !important; margin-top: 20px !important; }
.policy-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--ink); margin: 6px 0 14px; font-size: 16px; }
.policy-table th, .policy-table td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); line-height: 1.6; }
.policy-table thead th { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.policy-table tbody th { font-weight: 600; color: var(--ink); width: 24%; }
.policy-kv tbody th { width: 8.5em; white-space: nowrap; }
.policy-contact dt { font-weight: 600; }
.policy-sub { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.policy-history { list-style: none !important; padding-left: 0 !important; font-size: 15px; }
.terms p { color: var(--ink-2); font-size: 16px; }
.cta-band { background: var(--mist); padding: 64px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 8px; }
.cta-band p { color: var(--ink-2); }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.notice { padding: 18px 22px; border-radius: var(--r-sm); margin: 24px 0; }
.notice-ok { background: var(--mist); }
.notice-ok strong { display: block; font-size: 18px; margin-bottom: 4px; }
.notice-error { background: #fdecea; color: var(--error); font-weight: 500; }
.stack-form { display: grid; gap: 20px; margin-top: 24px; }
.stack-form .btn { justify-self: start; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-2); }
.consent input { width: 20px; height: 20px; margin-top: 3px; flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; }

/* ── 블로그 · Q&A (기존 게시판 마크업을 새 디자인으로) ──────── */
.v2.board-page main { padding-top: 106px; min-height: 60vh; }   /* 맨 위 바 높이와 같게 — 제목 띠가 바로 아래에 붙는다 */
@media (max-width: 1200px) { .v2.board-page main { padding-top: 80px; } }
@media (max-width: 760px) { .v2.board-page main { padding-top: 68px; } }
.v2 .container { max-width: var(--wrap); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.v2 .board-hero { background: var(--paper-warm); padding: 72px 0 48px; }
.v2 .board-hero h1 { font-size: clamp(34px, 4.6vw, 52px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.2; margin: 6px 0 12px; }
.v2 .board-hero p { color: var(--ink-2); font-size: 18px; }
.v2 .section-label { font-size: 15px; font-weight: 600; color: var(--teal-deep); }
.v2 .board-section { padding-top: 48px; padding-bottom: 96px; }
.v2 .board-narrow { max-width: 860px; }
.v2 .blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.v2 .blog-card { display: flex; flex-direction: column; gap: 8px; text-decoration: none; }
.v2 .blog-card-thumb { aspect-ratio: 16 / 10; border-radius: var(--r-md); overflow: hidden; background: var(--mist); display: flex; align-items: center; justify-content: center; color: var(--teal-deep); font-size: 28px; margin-bottom: 8px; }
.v2 .blog-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.v2 .blog-card-body { display: flex; flex-direction: column; gap: 6px; }
.v2 .blog-card-body h3 { font-size: 19px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2 .blog-card-body p { font-size: 15px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.v2 .blog-card-date { font-size: 14px; color: var(--ink-3); }
.v2 .board-empty { text-align: center; padding: 80px 0; color: var(--ink-3); display: grid; gap: 16px; justify-items: center; }
.v2 .board-empty i { font-size: 32px; color: var(--teal); }
.v2 .board-pagination { display: flex; justify-content: center; gap: 6px; margin-top: 56px; flex-wrap: wrap; }
.v2 .page-num { min-width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-pill); text-decoration: none; }
.v2 .page-num:hover { background: var(--mist); }
.v2 .page-num.current { background: var(--ink); color: #fff; }
.v2 .board-breadcrumb { font-size: 15px; color: var(--ink-3); margin-bottom: 16px; }
.v2 .board-breadcrumb a { color: var(--teal-deep); text-decoration: none; font-weight: 600; }
.v2 .board-breadcrumb i { font-size: 11px; margin-left: 4px; }
.v2 .post-title { font-size: clamp(28px, 4vw, 42px); font-weight: 300; letter-spacing: -0.025em; line-height: 1.3; margin-bottom: 16px; }
.v2 .post-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; color: var(--ink-3); padding-bottom: 20px; border-bottom: 1px solid var(--line); margin-bottom: 32px; }
.v2 .post-meta i { margin-right: 4px; }
.v2 .post-content { font-size: 17px; line-height: 1.85; }
.v2 .post-content img { height: auto; }
.v2 .post-content p, .v2 .post-content ul, .v2 .post-content ol, .v2 .post-content blockquote, .v2 .post-content table { margin: 0 0 1em; }
.v2 .post-content ul { list-style: disc; padding-left: 1.5em; }
.v2 .post-content ol { list-style: decimal; padding-left: 1.5em; }
.v2 .post-content h1, .v2 .post-content h2, .v2 .post-content h3 { margin: 1.4em 0 .6em; font-weight: 600; font-size: 1.25em; letter-spacing: 0; }
.v2 .post-cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; background: var(--mist); border-radius: var(--r-lg); padding: 28px 32px; margin: 56px 0 32px; }
.v2 .post-cta strong { display: block; font-size: 20px; font-weight: 600; }
.v2 .post-cta p { color: var(--ink-2); }
.v2 .board-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }
.v2 .board-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.v2 .board-flash { background: var(--mist); border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 20px; font-weight: 500; }
.v2 .qna-list { border-top: 1px solid var(--ink); }
.v2 .qna-row { display: grid; grid-template-columns: 64px 1fr 96px 110px 92px; gap: 12px; align-items: center; padding: 18px 8px; border-bottom: 1px solid var(--line); text-decoration: none; }
.v2 a.qna-row:hover { background: var(--paper-warm); }
.v2 .qna-head { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.v2 .qna-no, .v2 .qna-date, .v2 .qna-author { font-size: 15px; color: var(--ink-3); }
.v2 .qna-title { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2 .qna-status { font-size: 14px; font-weight: 600; }
.v2 .qna-status.done { color: var(--teal-deep); }
.v2 .qna-status.wait { color: var(--ink-3); }
.v2 .board-error { background: #fdecea; color: var(--error); border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 20px; font-weight: 500; }
.v2 .board-form .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.v2 .board-form .form-group { margin-bottom: 20px; }
.v2 .form-label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.v2 .required { color: var(--error); }
.v2 .board-radio { display: flex; gap: 24px; flex-wrap: wrap; }
.v2 .board-radio label, .v2 .board-consent { display: inline-flex; gap: 8px; align-items: center; font-size: 16px; }
.v2 .board-consent { color: var(--ink-2); font-size: 15px; margin: 8px 0 16px; }
.v2 .board-hp { position: absolute; left: -9999px; }
.v2 .qna-locked { text-align: center; padding: 48px 0; display: grid; gap: 16px; justify-items: center; }
.v2 .qna-locked > i { font-size: 28px; color: var(--teal-deep); }
.v2 .qna-unlock { display: flex; gap: 8px; width: 100%; max-width: 400px; }
.v2 .qna-question { white-space: pre-wrap; padding: 8px 0 32px; border-bottom: 1px solid var(--line); }
.v2 .qna-answer { background: var(--mist); border-radius: var(--r-lg); padding: 28px; margin-top: 32px; }
.v2 .qna-answer-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.v2 .qna-answer-head i { color: var(--teal-deep); }
.v2 .qna-answer-head span { margin-left: auto; color: var(--ink-3); font-size: 14px; }
.v2 .qna-answer-body { white-space: pre-wrap; margin-top: 14px; color: var(--ink-2); }
.v2 .qna-waiting { background: var(--paper-warm); border-radius: var(--r-sm); padding: 16px 20px; margin-top: 32px; color: var(--ink-2); }

/* 게시판 묶음 탭 · 공지/구인 목록 · 안내 문구 */
.v2 .board-tabs { display: flex; gap: 8px; margin-bottom: 32px; overflow-x: auto; scrollbar-width: none; }
.v2 .board-tabs::-webkit-scrollbar { display: none; }
.v2 .board-tabs a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-size: 16px; font-weight: 500; text-decoration: none; white-space: nowrap; }
.v2 .board-tabs a:hover { background: var(--paper-warm); }
.v2 .board-tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.v2 .post-rows { border-top: 1px solid var(--ink); }
.v2 .post-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 20px 8px; border-bottom: 1px solid var(--line); text-decoration: none; }
.v2 a.post-row:hover { background: var(--paper-warm); }
.v2 .post-row-title { font-size: 18px; font-weight: 500; }
.v2 .post-row-date { flex: none; font-size: 15px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.v2 .board-note { background: var(--paper-warm); border-radius: var(--r-sm); padding: 14px 18px; margin-bottom: 20px; font-size: 15px; color: var(--ink-2); }
.v2 .board-note i { margin-right: 6px; color: var(--teal-deep); }
/* 고충처리 접수 — 「본사에만 전달」 선택, 접수번호 */
.v2 .board-hq { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 16px 18px; margin-bottom: 16px; cursor: pointer; }
.v2 .board-hq:has(input:checked) { border-color: var(--teal-deep); background: var(--mist); }
.v2 .board-hq input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--teal-deep); }
.v2 .board-hq strong { display: block; font-size: 16px; font-weight: 600; }
.v2 .board-hq small { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-top: 2px; }
.v2 .board-receipt { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.v2 .board-receipt label { font-size: 15px; font-weight: 600; margin-right: 4px; }
.v2 .board-receipt label i { color: var(--teal-deep); margin-right: 4px; }
.v2 .board-receipt .form-input { flex: 1 1 220px; max-width: 320px; }
.v2 .board-receipt .board-error { flex: 1 1 100%; margin: 4px 0 0; }
.v2 .board-receipt-box { background: var(--mist); border-radius: var(--r-lg); padding: 24px 28px; margin-bottom: 24px; display: grid; gap: 10px; }
.v2 .board-receipt-box.is-new > p:first-child { font-weight: 600; }
.v2 .board-receipt-box.is-new > p:first-child i { color: var(--teal-deep); margin-right: 6px; }
.v2 .board-receipt-no { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.v2 .board-receipt-no span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.v2 .board-receipt-no strong { font-size: clamp(24px, 6vw, 32px); font-weight: 600; letter-spacing: .06em; font-variant-numeric: tabular-nums; user-select: all; }
.v2 .board-receipt-hint { font-size: 14px; color: var(--ink-2); }
.v2 .form-label small { font-weight: 400; color: var(--ink-3); }

/* ── 푸터 ───────────────────────────────────────────────────── */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); padding-top: 72px; overflow: hidden; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand img { width: 40px; height: 40px; background: #fff; border-radius: 50%; padding: 4px; margin-bottom: 14px; }
.footer-name { color: #fff; font-size: 18px; font-weight: 600; margin-bottom: 12px; }
.footer-contact { display: grid; gap: 8px; font-size: 15px; }
.footer-contact li, .footer-contact a { display: flex; gap: 8px; align-items: center; text-decoration: none; }
.footer-contact .ic { width: 16px; height: 16px; color: var(--teal-light); }
.footer-links p { color: #fff; font-weight: 600; margin-bottom: 12px; font-size: 15px; }
.footer-links li { margin: 6px 0; font-size: 15px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; text-decoration: underline; }
.footer-bottom { margin-top: 56px; padding-top: 20px; padding-bottom: 20px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: 14px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a { text-decoration: none; }
.footer-legal a:hover { color: #fff; text-decoration: underline; }
.footer-legal strong { color: #fff; font-weight: 600; }
.footer-legal-note { margin-left: 6px; font-size: 12px; color: var(--teal-light); }
.footer-wordmark { font-size: clamp(64px, 15vw, 220px); font-weight: 200; line-height: .8; letter-spacing: -0.04em; color: rgba(88, 192, 192, .22); white-space: nowrap; padding: 8px 24px 0; margin-bottom: -0.12em; user-select: none; }

/* ── 모바일 하단 고정 바 ────────────────────────────────────── */
.mobile-bar { display: none; }

/* ── 반응형 ─────────────────────────────────────────────────── */
/* 헤더 — 메뉴가 한 줄에 들어가지 않는 폭부터 휴대폰식 메뉴 */
@media (max-width: 1200px) {
    .nav-main, .nav-phone span { display: none; }
    .nav-actions { margin-left: auto; }
    .nav-mobile { display: block; }
    .nav-mobile summary { list-style: none; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; cursor: pointer; color: #fff; }
    .nav-mobile summary::-webkit-details-marker { display: none; }
    .nav-mobile[open] summary { background: rgba(255, 255, 255, .12); }
    .nav-mobile-panel { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; color: var(--ink); border-radius: var(--r-lg); padding: 16px; box-shadow: 0 18px 40px rgba(13, 36, 54, .2); max-height: calc(100vh - 120px); overflow-y: auto; }
    .nav-mobile-title { font-size: 14px; color: var(--ink-3); padding: 4px 12px; }
    .nav-mobile-list + .nav-mobile-title { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
    .nav-mobile-list + .nav-mobile-list { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; }
    .nav-mobile-list a { display: block; padding: 11px 12px; font-size: 17px; text-decoration: none; border-radius: var(--r-sm); }
    .nav-mobile-list a:hover { background: var(--mist); }
    .site-header .nav-pill { position: relative; }
    .nav-pill { padding: 14px 24px; gap: 16px; }
    .brand img { width: 42px; height: 42px; }
    .brand-text strong { font-size: 18px; }
    .nav-mobile-list .ic { width: 14px; height: 14px; vertical-align: -1px; opacity: .6; }
}

@media (max-width: 1080px) {
    .svc-list a { grid-template-columns: 1fr 40px; gap: 6px 16px; }
    .svc-name { grid-column: 1; }
    .svc-desc, .svc-meta { grid-column: 1; }
    .svc-go { grid-column: 2; grid-row: 1 / span 3; }
    .steps { grid-template-columns: 1fr 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
    /* 등급 예측 테스트 */
    .gt { padding: 24px 18px; margin-bottom: 44px; border-radius: var(--r-md); }
    .gt-intro, .gt-result { grid-template-columns: minmax(0, 1fr); }
    .gt-intro .btn { width: 100%; }
    .gt-opt { font-size: 16px; min-height: 56px; padding: 12px 14px; gap: 12px; }
    .gt-grade { font-size: 56px; }
    .gt-actions .btn { flex: 1 1 100%; }
    .svc-sub p { padding-top: 32px; }
    .referral-box { padding: 20px; }
    .referral-box .btn { width: 100%; }
    .focus-inner { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .focus-facts { grid-template-columns: minmax(0, 1fr); }
    .focus-facts div { display: flex; gap: 16px; padding: 10px 0; }
    .focus-facts dt { flex: 0 0 72px; padding-top: 2px; }
    .focus-note { font-size: 15px; }
    .nav-mobile-title small { font-weight: 400; }

    /* 처리방침 표 — 휴대폰에서는 항목별로 쌓는다 */
    .policy { font-size: 16px; }
    .policy h2 { font-size: 20px; margin-top: 44px; }
    .policy-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .policy-table, .policy-table tbody, .policy-table tr, .policy-table th, .policy-table td { display: block; width: auto; }
    .policy-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
    .policy-table th, .policy-table td { border: 0; padding: 0; }
    .policy-table tbody th { width: auto; font-size: 17px; margin-bottom: 4px; }
    .policy-table td::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); margin-top: 10px; }
    .policy-kv td::before { content: none; }
    .footer-bottom { flex-direction: column; }

    body.v2 { font-size: 16px; }
    .wrap, .v2 .container { padding-left: 20px; padding-right: 20px; }
    .nav-pill { padding: 12px 12px 12px 16px; gap: 8px; }
    .brand { gap: 10px; }
    .brand img { width: 44px; height: 44px; padding: 4px; }
    .brand-text strong { font-size: 16px; letter-spacing: -0.01em; }   /* 긴 지점명(강남압구정지점)도 390px 에서 한 줄에 */
    .site-header.is-scrolled { padding: 8px 8px 0; }
    .site-header.is-scrolled .nav-pill { padding: 6px 6px 6px 12px; gap: 8px; }
    .site-header.is-scrolled .brand-text strong { font-size: 16px; }
    .nav-actions .btn { display: none; }
    .brand-text small { display: none; }

    /* 첫 화면 — 사진은 위에 온전히(두 사람 얼굴이 다 보이게), 글과 버튼은 그 아래 어두운 바탕에.
       사진 위에 글을 얹으면 좁은 화면에서는 얼굴을 가린다. */
    .hero { display: block; min-height: 0; padding-top: 70px; }
    .hero-photo { position: static; width: 100%; height: auto; aspect-ratio: 4 / 3; object-position: 50% 30%; }
    .hero-shade { top: 70px; bottom: auto; height: 75vw; background: linear-gradient(180deg, rgba(13, 36, 54, 0) 48%, rgba(13, 36, 54, .72) 84%, var(--ink) 100%); }
    .hero-inner { margin-top: -52px; padding-top: 0; padding-bottom: 36px; }
    .hero .eyebrow { margin-bottom: 10px; }
    .hero-title { font-size: clamp(28px, 7.9vw, 36px); line-height: 1.22; margin-bottom: 14px; }
    .hero-sub { font-size: 16px; line-height: 1.65; margin-bottom: 24px; }
    /* 버튼은 두 칸 격자 — 화면 폭을 다 쓰는 큰 알약 여러 개 대신 */
    .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; }
    .hero-actions .btn { min-height: 50px; padding: 4px 10px; font-size: 16px; white-space: normal; text-align: center; line-height: 1.25; }
    .hero-actions .btn .ic { width: 18px; height: 18px; }
    /* 버튼이 홀수 개면 마지막(전화)은 한 줄 글자 링크로 */
    .hero-actions .btn-glass:nth-child(odd) { grid-column: 1 / -1; justify-content: flex-start; min-height: 40px; padding: 0 2px; background: none; border-color: transparent; font-weight: 500; }
    .hero-actions .btn-cta:only-child { grid-column: 1 / -1; }
    .hero-trust { gap: 6px 16px; padding-top: 18px; font-size: 14px; }

    .section { padding: 60px 0; }
    .v2 h2 { font-size: clamp(25px, 7vw, 30px); }
    .sec-head { margin-bottom: 32px; }
    .sec-lead { font-size: 16px; }
    .calc, .split, .qa-list li, .quotes, .post-grid, .v2 .blog-grid, .news-2 { grid-template-columns: 1fr; }
    .calc-row, .v2 .board-form .form-row { grid-template-columns: 1fr; }
    .calc-tab span { font-size: 15px; padding: 0 2px; letter-spacing: -0.02em; }
    .calc-form legend small:not([hidden]) { display: block; margin: 4px 0 0; }
    .calc-amount strong { font-size: 42px; }
    .qa-list li { gap: 12px; padding: 28px 0; }
    .qa-more { flex-direction: column; align-items: flex-start; }
    .svc-list a { padding: 24px 4px; }
    .steps { grid-template-columns: 1fr; gap: 24px; }
    .step-no { font-size: 34px; margin-bottom: 12px; }
    .check-list { grid-template-columns: 1fr; }
    .split-photo img { aspect-ratio: 4 / 3; }
    .split-photo-wide img { aspect-ratio: 16 / 9; }
    .quotes { gap: 28px; }
    .quotes blockquote p { font-size: 17px; margin-bottom: 16px; }
    .visit-card dl div { grid-template-columns: 76px 1fr; }
    .visit-map { height: 200px; }
    .consult-contact a { font-size: 22px; }
    .faq summary { font-size: 17px; padding: 20px 0; }
    .facts { grid-template-columns: 1fr; }
    .def-list div { grid-template-columns: 1fr; gap: 4px; }
    .mini-steps { grid-template-columns: 1fr; }
    .page-head { padding: 112px 0 36px; }
    .page-head h1 { font-size: clamp(30px, 8.6vw, 36px); }
    .page-lead { font-size: 17px; margin-top: 14px; }
    .page-tabs { flex-wrap: wrap; }
    .faq p { padding-right: 0; }
    .btn-row .btn { flex: 1 1 auto; }
    .cta-band { padding: 48px 0; }
    .cta-band-actions { width: 100%; }
    .cta-band-actions .btn { flex: 1 1 auto; }

    /* 비교표 — 가로로 넘치는 표 대신 항목마다 한 묶음 */
    .compare-scroll { overflow: visible; }
    .compare, .compare tbody, .compare tr, .compare tbody th, .compare td { display: block; width: auto; }
    .compare { min-width: 0; border-top: 1px solid var(--ink); }
    .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .compare tbody tr { padding: 22px 0; border-bottom: 1px solid var(--line); }
    .compare tbody th, .compare td { padding: 0; border: 0; }
    .compare tbody th { width: auto; font-size: 14px; color: var(--teal-deep); margin-bottom: 10px; }
    .compare .is-us { width: auto; padding: 14px 16px; border-radius: var(--r-sm); }
    .compare tbody tr:last-child .is-us { border-radius: var(--r-sm); }
    .compare td.is-other { margin-top: 10px; padding: 0 2px; font-size: 15px; }
    .compare td.is-other::before { content: '일반적인 방문요양 · '; color: var(--ink-2); font-weight: 500; }

    /* 숫자 표 — 좁은 화면에 맞게 줄이고, 그래도 넘치는 표(주야간보호)는 옆으로 민다 */
    .data-table { font-size: 14px; }
    .data-table th, .data-table td { padding: 11px 7px; }
    .data-table tbody th { min-width: 84px; }
    .data-table thead th { font-size: 12.5px; white-space: normal; }
    .data-table caption { font-size: 16px; }
    .data-table caption span { display: block; margin: 2px 0 0; }

    .news-head h3 { font-size: 20px; }
    .v2 .post-row { padding: 16px 4px; gap: 12px; }
    .v2 .post-row-title { font-size: 16px; }
    .v2 .post-row-date { font-size: 13px; }
    .v2 .board-tabs { margin: 0 -20px 24px; padding: 0 20px; }
    .v2 .board-tabs a { min-height: 40px; padding: 0 16px; font-size: 15px; }
    .v2 .board-toolbar .btn { min-height: 44px; padding: 0 18px; font-size: 15px; }
    .v2 .board-section { padding-top: 32px; padding-bottom: 64px; }
    .v2 .post-cta { padding: 22px; }
    .v2 .post-cta .btn { width: 100%; }
    .v2 .qna-row { grid-template-columns: 1fr auto; padding: 16px 4px; }
    .v2 .qna-no, .v2 .qna-head { display: none; }
    .v2 .qna-author { grid-row: 2; grid-column: 1; font-size: 14px; }
    .v2 .qna-date { grid-row: 2; grid-column: 2; font-size: 14px; text-align: right; }
    .v2 .qna-status { grid-row: 1; grid-column: 2; text-align: right; }
    .v2 .board-hero { padding: 40px 0 28px; }
    .v2 .board-hero p { font-size: 16px; }

    /* 푸터 — 링크 묶음은 두 칸 */
    .site-footer { padding-top: 56px; padding-bottom: 84px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { margin-top: 40px; }
    /* 휴대폰 푸터 — 가운데 정렬. 세 번째 링크 묶음(고객 지원)은 혼자 왼쪽에 남지 않게 한 줄 전체로 */
    .site-footer { text-align: center; }
    .footer-brand img { margin-left: auto; margin-right: auto; }
    .footer-contact { justify-items: center; }
    .footer-contact li, .footer-contact a { justify-content: center; text-align: left; }
    .footer-links:last-child { grid-column: 1 / -1; }
    .footer-bottom { align-items: center; text-align: center; }
    .footer-legal { justify-content: center; }
    .footer-wordmark { text-align: center; padding-left: 0; padding-right: 0; }

    /* 하단 고정 버튼 — 화면 폭을 다 쓰는 띠 대신, 위쪽 메뉴와 같은 떠 있는 알약 */
    .mobile-bar {
        display: flex; gap: 6px; position: fixed; left: 12px; right: 12px; z-index: 40;
        bottom: calc(10px + env(safe-area-inset-bottom));
        padding: 6px; border-radius: var(--r-pill);
        background: rgba(13, 36, 54, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 12px 32px rgba(13, 36, 54, .28);
        transition: transform .3s ease, opacity .3s ease;
    }
    .mobile-bar a { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; border-radius: var(--r-pill); font-size: 15px; font-weight: 600; text-decoration: none; }
    .mobile-bar .ic { width: 18px; height: 18px; }
    .mobile-bar-phone { flex: 0 0 40%; color: #fff; }
    .mobile-bar-cta { flex: 1; background: var(--cta); color: var(--ink); }
    /* 첫 화면 버튼이나 상담 신청서가 보이는 동안에는 숨긴다 (같은 버튼이 겹치지 않게) */
    .mobile-bar.is-hidden { transform: translateY(160%); opacity: 0; pointer-events: none; }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
    .mobile-bar { transition: none; }
}

/* 아주 좁은 휴대폰 (380px 이하) — 계산기 서비스 탭 4개가 한 줄에 들어가게 */
@media (max-width: 380px) {
    .calc-tabs { gap: 2px; padding: 3px; }
    .calc-tab span { font-size: 14px; padding: 0; }
    .hero-actions { gap: 8px; }
    .hero-actions .btn { font-size: 15px; gap: 6px; padding: 4px 8px; }
}
