/* ============================================================
   리인 상속연구소 (가칭) — v2
   실제 서비스 사이트 문법: 흰 배경, 굵은 고딕, 정보 밀도, 장식 최소화
   ============================================================ */

:root {
  --ink: #191f28;
  --ink-2: #4e5968;
  --ink-3: #8b95a1;
  --navy: #0e2841;
  --navy-hover: #1a3a58;
  --navy-2: #1e4a6d;
  --navy-3: #eaf0f6;
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --line: #e5e8eb;
  --kakao: #fee500;
  --sans: "Pretendard Variable", Pretendard, "Noto Sans KR", -apple-system, sans-serif;
  --w: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 76px; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-in {
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: baseline; gap: 8px; }
.brand-name { font-weight: 800; font-size: 1.1rem; color: var(--navy); letter-spacing: -0.02em; }
.brand-sub { font-size: 0.75rem; color: var(--ink-3); }
.header-nav { display: flex; align-items: center; gap: 6px; }
.header-nav > a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 8px 12px;
  border-radius: 8px;
}
.header-nav > a:hover { background: var(--bg-soft); color: var(--ink); }
.header-cta {
  background: var(--navy);
  color: #fff !important;
  font-weight: 700;
  margin-left: 8px;
}
.header-cta:hover { background: var(--navy-hover) !important; }
.header-tel {
  font-weight: 700;
  color: var(--navy) !important;
}
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--ink); cursor: pointer; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 24px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-hover); }
.btn-kakao { background: var(--kakao); color: #191600; }
.btn-kakao:hover { background: #f5dc00; }
.btn-line { border-color: var(--line); color: var(--ink-2); background: #fff; }
.btn-line:hover { border-color: var(--ink-3); color: var(--ink); }

/* ---------- 히어로 ---------- */
.hero {
  padding: 72px 0 80px;
  background: linear-gradient(180deg, #fbfcfd 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  background: #eef2f6;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.hero-lead {
  font-size: 1.08rem;
  color: var(--ink-2);
  margin-bottom: 30px;
  max-width: 480px;
}
.hero-lead strong { color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.hero-tel {
  font-size: 0.92rem;
  color: var(--ink-3);
}
.hero-tel a { font-weight: 700; color: var(--navy); }

/* 간편 계산기 카드 */
.calc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(25, 31, 40, 0.07);
  padding: 28px;
}
.calc-card h2 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-bottom: 4px;
}
.calc-card .calc-sub {
  font-size: 0.84rem;
  color: var(--ink-3);
  margin-bottom: 20px;
}
.calc-field { margin-bottom: 14px; }
.calc-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.calc-field .input-unit {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  background: #fff;
}
.calc-field .input-unit:focus-within { border-color: var(--navy); }
.calc-field input[type="text"] {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: var(--sans);
  padding: 12px 0;
  text-align: right;
  color: var(--ink);
  min-width: 0;
}
.calc-field .unit { color: var(--ink-3); font-size: 0.9rem; margin-left: 8px; }
.calc-check {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 18px;
}
.calc-check label { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.calc-card .btn { width: 100%; }
.calc-result {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  display: none;
}
.calc-result.show { display: block; }
.calc-result .cr-label { font-size: 0.83rem; color: var(--ink-3); }
.calc-result .cr-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--navy);
  margin: 2px 0 8px;
}
.calc-result .cr-note { font-size: 0.78rem; color: var(--ink-3); line-height: 1.55; }
.calc-result .cr-cta {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 신뢰 스트립 ---------- */
.trust {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.trust-in {
  max-width: var(--w);
  margin: 0 auto;
  padding: 22px 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
}
.trust-item .t-dot {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: #eef2f6;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
}
.trust-item strong { display: block; font-weight: 700; }
.trust-item small { color: var(--ink-3); font-size: 0.82rem; }

/* ---------- 공통 섹션 ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--bg-soft); }
.sec-head { margin-bottom: 40px; }
.sec-head .sec-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.sec-head h2 {
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.4;
}
.sec-head p.sec-desc { margin-top: 12px; color: var(--ink-2); max-width: 560px; }

/* ---------- 기한 안내 ---------- */
.deadline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.dl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
}
.dl-when {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.dl-card.hot .dl-when { color: #c0392b; }
.dl-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; }
.dl-card p { font-size: 0.9rem; color: var(--ink-2); }

/* ---------- 서비스 ---------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.svc-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
}
.svc-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.svc-card > p { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 16px; }
.svc-card ul { border-top: 1px solid var(--line); padding-top: 14px; }
.svc-card li {
  font-size: 0.88rem;
  color: var(--ink-2);
  padding: 4px 0 4px 16px;
  position: relative;
}
.svc-card li::before {
  content: "";
  position: absolute;
  left: 2px; top: 13px;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.5;
}

/* ---------- 수수료 ---------- */
.fee-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.fee-table th, .fee-table td {
  padding: 15px 22px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.fee-table thead th {
  background: var(--bg-soft);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-2);
}
.fee-table tbody tr:last-child td { border-bottom: none; }
.fee-table td:last-child { text-align: right; font-weight: 700; }
.fee-pending { color: var(--ink-3); font-weight: 500 !important; font-size: 0.88rem; }
.fee-note { margin-top: 14px; font-size: 0.85rem; color: var(--ink-3); }

/* ---------- 프로필 ---------- */
.profile-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: start;
}
.profile-photo {
  border-radius: 14px;
  background: #e9ecef;
  border: 1px solid var(--line);
  display: block;
  width: 100%;
  height: auto;
}
.profile-name { font-size: 1.5rem; font-weight: 800; }
.profile-role { font-size: 0.92rem; color: var(--ink-3); margin-bottom: 18px; }
.profile-msg {
  font-size: 1rem;
  color: var(--ink-2);
  background: var(--bg-soft);
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 26px;
}
.career-list li {
  display: flex;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
}
.career-list li:last-child { border-bottom: none; }
.career-when { flex: 0 0 92px; font-weight: 700; color: var(--ink-3); font-size: 0.86rem; padding-top: 2px; }
.career-what strong { display: block; font-weight: 700; }
.career-what small { color: var(--ink-3); font-size: 0.84rem; }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 20px 4px;
  cursor: pointer;
  font-size: 1.02rem;
  font-weight: 700;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: "Q"; color: var(--ink-3); font-weight: 800; }
.faq-item[open] summary::before { color: var(--navy); }
.faq-answer {
  padding: 0 4px 22px 34px;
  font-size: 0.94rem;
  color: var(--ink-2);
}
.faq-more { margin-top: 22px; font-size: 0.92rem; }
.faq-more a { font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 상담 신청 ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.contact-info h2 {
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 14px;
}
.contact-info > p { color: var(--ink-2); margin-bottom: 28px; }
.contact-ways li {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}
.contact-ways .w-label { flex: 0 0 84px; font-weight: 700; color: var(--ink-2); font-size: 0.86rem; }
.contact-ways a { font-weight: 700; color: var(--navy); }
.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
  display: grid;
  gap: 16px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.97rem;
  font-family: var(--sans);
  color: var(--ink);
  background: #fff;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none;
  border-color: var(--navy);
}
.contact-form textarea { min-height: 110px; resize: vertical; }
.form-agree {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 0.82rem;
  color: var(--ink-3);
}
.form-agree input { width: auto; margin-top: 3px; }

/* ---------- 푸터 ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0 48px;
  font-size: 0.85rem;
}
.footer-brand { font-weight: 800; color: #fff; font-size: 1rem; margin-bottom: 12px; }
.site-footer p { margin-bottom: 4px; }
.footer-small { margin-top: 14px; font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); }

/* ---------- 플로팅 퀵버튼 ---------- */
.quick-float {
  position: fixed;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 128px;
}
.qf-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 10px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 6px 20px rgba(25, 31, 40, 0.16);
  border: 1px solid transparent;
  transition: transform 0.15s ease;
}
.qf-btn:hover { transform: translateY(-2px); }
.qf-btn .qf-icon { font-size: 1.3rem; line-height: 1; }
.qf-calc { background: #fff; color: var(--navy); border-color: var(--line); }
.qf-consult { background: var(--navy); color: #fff; }
.qf-kakao { background: var(--kakao); color: #191600; }

@media (max-width: 900px) {
  .quick-float {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    transform: none;
    width: auto;
    flex-direction: row;
    gap: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 0;
  }
  .qf-btn {
    flex: 1;
    flex-direction: row;
    justify-content: center;
    border-radius: 0;
    box-shadow: none;
    padding: 15px 8px;
    border: none;
  }
  body { padding-bottom: 54px; }
}

/* ---------- 모바일 ---------- */
@media (max-width: 900px) {
  .header-nav { display: none; }
  .nav-toggle { display: block; }
  .hero { padding: 48px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .trust-in { grid-template-columns: 1fr; gap: 12px; padding: 18px 20px; }
  .section { padding: 64px 0; }
  .deadline-grid, .svc-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; gap: 28px; }
  .profile-photo { max-width: 260px; }
  .contact-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .fee-table th, .fee-table td { padding: 13px 14px; font-size: 0.88rem; }
}

/* ---------- 영상 히어로 (variant) ---------- */
.hero-v {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0a1d30;
  border-bottom: 1px solid var(--line);
}
.hero-v > video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-v .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(10,29,48,0.90) 0%,
    rgba(10,29,48,0.78) 38%,
    rgba(10,29,48,0.35) 66%,
    rgba(10,29,48,0.20) 100%);
}
.hero-v .wrap { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 64px; }
.hero-v .hero-badge { background: rgba(255,255,255,0.14); color: #fff; }
.hero-v h1 { color: #fff; max-width: 620px; }
.hero-v .hero-lead { color: rgba(255,255,255,0.82); max-width: 470px; }
.hero-v .hero-lead strong { color: #fff; }
.hero-v .hero-tel { color: rgba(255,255,255,0.6); }
.hero-v .hero-tel a { color: #fff; }
.hero-v .btn-primary { background: #fff; color: var(--navy); }
.hero-v .btn-primary:hover { background: #e9edf2; }

/* 영상 아래로 내려온 계산기 섹션 */
.calc-band { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.calc-band .wrap { padding-top: 44px; padding-bottom: 44px; display: grid; grid-template-columns: 1fr 420px; gap: 48px; align-items: center; }
.calc-band .cb-copy h2 { font-size: 1.45rem; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.02em; }
.calc-band .cb-copy p { color: var(--ink-2); }
@media (max-width: 900px) {
  .hero-v { min-height: 480px; }
  .hero-v .veil { background: linear-gradient(180deg, rgba(10,29,48,0.72) 0%, rgba(10,29,48,0.90) 100%); }
  .calc-band .wrap { grid-template-columns: 1fr; gap: 24px; }
}

/* ---------- 프로필 이력 블록 ---------- */
.cv-block { margin-bottom: 26px; }
.cv-block:last-child { margin-bottom: 0; }
.cv-title {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink-3);
  letter-spacing: 0.02em;
  padding-bottom: 8px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.cv-list li {
  position: relative;
  padding: 5px 0 5px 14px;
  font-size: 0.95rem;
  color: var(--ink);
}
.cv-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.45;
}
.cv-list li strong { color: var(--navy); font-weight: 700; margin-right: 2px; }

/* ---------- 서브페이지 헤드 ---------- */
.page-head {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 56px 0 48px;
}
.page-head h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 6px 0 14px;
}
.page-lead { color: var(--ink-2); max-width: 620px; }

/* ---------- 보수표 ---------- */
.fee-block { margin-bottom: 56px; }
.fee-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.fee-head h2 { font-size: 1.2rem; font-weight: 800; letter-spacing: -0.02em; }
.fee-unit { font-size: 0.82rem; color: var(--ink-3); }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rate-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.rate-table th, .rate-table td {
  padding: 13px 18px;
  font-size: 0.94rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.rate-table th:first-child, .rate-table td:first-child { text-align: left; }
.rate-table thead th {
  background: var(--navy);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  border-bottom: none;
}
.rate-table tbody tr:last-child td { border-bottom: none; }
.rate-table tbody tr:nth-child(even) { background: #fbfcfd; }
.rate-table td:nth-child(2) { font-weight: 700; color: var(--navy); }
.rate-table .dash { color: var(--ink-3); font-weight: 400; }

.fee-foot { margin-top: 10px; font-size: 0.85rem; color: var(--ink-3); }

/* 업무 범위 */
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.scope-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.scope-label {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--navy);
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.scope-card li {
  position: relative;
  padding: 5px 0 5px 14px;
  font-size: 0.93rem;
  color: var(--ink-2);
}
.scope-card li::before {
  content: "";
  position: absolute;
  left: 0; top: 15px;
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--navy);
  opacity: 0.45;
}

/* 상한 안내 */
.fee-cap {
  background: #eef2f6;
  border-radius: 14px;
  padding: 26px 28px;
  margin-bottom: 20px;
}
.fee-cap .cap-title { font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.fee-cap p { font-size: 0.95rem; color: var(--ink-2); }
.fee-cap strong { color: var(--ink); font-weight: 700; }
.fee-asof { text-align: right; font-size: 0.82rem; color: var(--ink-3); }
.fee-cta { margin-top: 36px; display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 900px) {
  .scope-grid { grid-template-columns: 1fr; }
  .page-head { padding: 40px 0 36px; }
}

/* ---------- 히어로 CTA 절제 ---------- */
.hero-actions { gap: 8px; }
.hero-actions .btn {
  padding: 13px 26px;
  font-size: 0.97rem;
}
/* 카카오톡: 노란 배경 대신 테두리 + 작은 노란 표식 */
.btn-kakao-soft {
  background: #fff;
  border-color: var(--line);
  color: var(--ink-2);
  font-weight: 600;
}
.btn-kakao-soft::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--kakao);
  flex-shrink: 0;
}
.btn-kakao-soft:hover { border-color: var(--ink-3); color: var(--ink); }

/* 히어로: 버튼 제거 후 연락 라인 */
.hero-tel { margin-top: 4px; }
.hero-kakao {
  font-weight: 700;
  color: var(--navy);
  border-bottom: 1px solid rgba(14,40,65,0.25);
  padding-bottom: 1px;
}
.hero-kakao:hover { border-bottom-color: var(--navy); }

/* 플로팅 상담 버튼 강화 (주 CTA 역할) */
.quick-float { width: 136px; }
.qf-consult { box-shadow: 0 8px 24px rgba(14, 40, 65, 0.28); }

/* ---------- 플로팅 축소 (S펜 피드백) ---------- */
.quick-float { width: 92px; right: 16px; gap: 8px; }
.qf-btn { padding: 11px 6px; font-size: 0.76rem; border-radius: 12px; gap: 4px; }
.qf-btn .qf-icon { font-size: 1.05rem; }
.qf-kakao { background: var(--kakao); color: #191600; }

/* ---------- 오시는 길 ---------- */
.loc-list { max-width: 640px; }
.loc-list li {
  display: flex; gap: 16px; padding: 12px 0;
  border-bottom: 1px solid var(--line); font-size: 0.95rem;
}
.loc-list li:last-child { border-bottom: none; }
.loc-list .w-label { flex: 0 0 84px; font-weight: 700; color: var(--ink-2); font-size: 0.86rem; }

/* 플로팅 버튼 크기 통일 */
.qf-btn { height: 64px; justify-content: center; line-height: 1.25; }
/* ---------- 헤더 네이비 반전 ---------- */
.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: none;
}
.site-header .brand-name { color: #fff; }
.header-nav > a { color: rgba(255, 255, 255, 0.82); font-weight: 600; }
.header-nav > a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav-toggle { color: #fff; }

/* ---------- 한 화면 한 주제 (풀스크린 섹션) ---------- */
.screen {
  min-height: calc(100svh - 64px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  padding-top: 64px;
  padding-bottom: 64px;
}
section { scroll-snap-align: start; }
html { scroll-snap-type: y proximity; }

.hero.screen { padding-top: 0; padding-bottom: 0; }
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.1rem); }
.hero-lead { max-width: 560px; font-size: 1.12rem; }
.scroll-hint {
  margin-top: 56px;
  font-size: 0.85rem;
  color: var(--ink-3);
  letter-spacing: 0.04em;
  animation: hintFloat 2.2s ease-in-out infinite;
}
@keyframes hintFloat {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(6px); opacity: 1; }
}

/* 화면 2: 신뢰 카드 확대형 */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.trust-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 32px;
}
.trust-card .t-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  background: #eef2f6;
  color: var(--navy);
  font-weight: 800;
  margin-bottom: 18px;
}
.trust-card h3 { font-size: 1.15rem; font-weight: 800; margin-bottom: 8px; }
.trust-card p { font-size: 0.93rem; color: var(--ink-2); }
.trust-screen { background: var(--bg-soft); }

/* 화면 3: 계산기 중앙 배치 */
.calc-screen { display: flex; flex-direction: column; align-items: center; }
.calc-screen .calc-card { width: 100%; max-width: 520px; }

@media (max-width: 900px) {
  .screen { min-height: auto; padding-top: 64px; padding-bottom: 64px; }
  .hero.screen { min-height: calc(100svh - 64px); padding-top: 0; padding-bottom: 0; }
  .trust-grid { grid-template-columns: 1fr; }
  html { scroll-snap-type: none; }
}

/* 구 스트립 스타일 잔재 무효화 */
.trust { display: none; }

/* ---------- 스크롤 리빌 (절제형) ---------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.rv.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .scroll-hint { animation: none; }
}

/* ---------- 오시는 길: 지도 2단 ---------- */
.loc-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.loc-nav { display: flex; gap: 10px; margin-top: 24px; flex-wrap: wrap; }
.loc-nav .btn { padding: 11px 22px; font-size: 0.92rem; }
.loc-note { margin-top: 12px; font-size: 0.8rem; color: var(--ink-3); }
.loc-map iframe {
  width: 100%;
  height: 380px;
  border: 1px solid var(--line);
  border-radius: 16px;
}
@media (max-width: 900px) {
  .loc-grid { grid-template-columns: 1fr; gap: 28px; }
  .loc-map iframe { height: 280px; }
}

/* 푸터 가운데 정렬 */
.site-footer { text-align: center; }
.site-footer p { margin-bottom: 5px; }
.site-footer .footer-brand { margin-bottom: 12px; }

/* 카카오 정적지도 */
.kmap { position: relative; display: block; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.kmap img { width: 100%; height: auto; display: block; }
.kmap-pin {
  position: absolute; left: 50%; top: 50%;
  width: 16px; height: 16px;
  transform: translate(-50%, -100%);
  background: #e5493d;
  border: 2.5px solid #fff;
  border-radius: 50% 50% 50% 0;
  rotate: -45deg;
  box-shadow: 0 2px 6px rgba(0,0,0,0.35);
}
.kmap-open {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(14, 40, 65, 0.85);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 8px;
}
.kmap:hover .kmap-open { background: var(--navy); }

/* 네이버 동적지도 컨테이너 */
#naverMap { width: 100%; height: 380px; border: 1px solid var(--line); border-radius: 16px; }
@media (max-width: 900px) { #naverMap { height: 280px; } }

/* 내비 아이콘 버튼 */
.nav-ico {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 13px 16px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.nav-ico:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.nav-ico img { width: 30px; height: 30px; border-radius: 7px; }
.nav-ico span { font-size: 0.74rem; font-weight: 600; color: var(--ink-2); }

.nav-ico img { width: 42px; height: 42px; border-radius: 10px; box-shadow: 0 1px 4px rgba(0,0,0,0.12); }

/* ---------- 상담폼 칩·완료 ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 15px;
  font-size: 0.88rem;
  color: var(--ink-2);
  cursor: pointer;
  user-select: none;
  background: #fff;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-note { font-size: 0.8rem; color: var(--ink-3); text-align: center; }
.form-done {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 44px 32px;
  text-align: center;
}
.form-done .fd-title { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.form-done p { color: var(--ink-2); font-size: 0.95rem; }
.form-done a { font-weight: 700; color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 헤더: 로고 이미지 + 좌측 정렬 ---------- */
.header-in { max-width: none; padding: 0 28px; }
.brand { align-items: center; }
.brand-logo { height: 34px; display: block; }

/* ---------- 브랜드 2단 락업 (회사 로고 소형 + 브랜드명 대형) ---------- */
.header-in { height: 74px; }
.brand { flex-direction: column; align-items: flex-start; gap: 3px; }
.brand-top { display: flex; align-items: center; gap: 6px; }
.brand-top img { height: 13px; display: block; }
.brand-top span { font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.72); letter-spacing: 0.01em; }
.brand-main { font-size: 1.18rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.15; }
.screen { min-height: calc(100svh - 74px); padding-top: 74px; }

/* ---------- 프로필: leekimtax 참고 구성 ---------- */
.profile-role { margin-bottom: 10px; }
.profile-tags {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  background: #eef2f7;
  border-radius: 8px;
  padding: 7px 12px;
  margin-bottom: 16px;
}
.profile-msg {
  border-left: 3px solid var(--navy);
  padding-left: 14px;
}
.profile-mail { font-size: 0.88rem; color: var(--ink-3); margin: 14px 0 22px; }
.profile-mail a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 푸터: 이김 양식 (좌측 정렬, 구분선, 메뉴 행) ---------- */
.site-footer { text-align: left; padding: 52px 0 44px; }
.footer-logo { height: 30px; display: block; margin-bottom: 24px; }
.footer-line { font-size: 0.86rem; color: rgba(255,255,255,0.78); margin-bottom: 8px; }
.footer-line strong { color: rgba(255,255,255,0.92); font-weight: 700; }
.footer-line a { color: rgba(255,255,255,0.78); text-decoration: underline; text-underline-offset: 3px; }
.fdiv { color: rgba(255,255,255,0.25); margin: 0 6px; }
.footer-hr { border: none; border-top: 1px solid rgba(255,255,255,0.14); margin: 26px 0 22px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; margin-bottom: 22px; }
.footer-nav a { font-size: 0.86rem; font-weight: 600; color: rgba(255,255,255,0.85); }
.footer-nav a:hover { color: #fff; }
.footer-privacy { border: 1px solid rgba(255,255,255,0.85); border-radius: 4px; padding: 5px 10px; }
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.45); line-height: 1.7; }

/* ---------- 플로팅 버튼: 아이콘 정사각형 ---------- */
.quick-float { width: auto; right: 18px; gap: 8px; }
.qf-btn {
  width: 48px; height: 48px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(14,40,65,0.18);
  line-height: 1;
}
.qf-btn .qf-label { display: none; }
.qf-navy { background: var(--navy); color: #fff; border: 1px solid var(--navy); }
.qf-white { background: #fff; color: var(--navy); border: 1px solid var(--line); }
@media (max-width: 900px) {
  .qf-btn { width: auto; height: auto; border-radius: 0; flex-direction: row; gap: 7px; padding: 14px 8px; }
  .qf-btn .qf-label { display: inline; font-size: 0.85rem; font-weight: 700; }
  .qf-top { display: none; }
  .qf-white { border: none; }
}

/* ---------- 지하철 노선 배지 ---------- */
.sub-badge {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px; border-radius: 11px;
  color: #fff; font-size: 0.72rem; font-weight: 800; font-style: normal;
  padding: 0 5px; margin-right: 4px; vertical-align: -5px; letter-spacing: -0.02em;
}
.sub-wide { padding: 0 9px; }

/* ---------- 헤더 메뉴 확대 + 드롭다운 ---------- */
.header-nav > a, .nav-drop > a { font-size: 1rem; }
.nav-drop { position: relative; display: flex; align-items: center; }
.nav-drop > a {
  font-weight: 600; color: rgba(255,255,255,0.82);
  padding: 8px 12px; border-radius: 8px; display: block;
}
.nav-drop > a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nd-caret { font-size: 0.7em; opacity: 0.7; }
.nav-drop-menu {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  padding-top: 8px; display: none; min-width: 160px; z-index: 120;
}
.nav-drop:hover .nav-drop-menu { display: block; }
.nav-drop-menu > a {
  display: block; background: #fff; color: var(--ink);
  font-size: 0.95rem; font-weight: 600; padding: 12px 18px;
}
.nav-drop-menu > a:first-child { border-radius: 10px 10px 0 0; }
.nav-drop-menu > a:last-child { border-radius: 0 0 10px 10px; }
.nav-drop-menu > a + a { border-top: 1px solid var(--line); }
.nav-drop-menu > a:hover { background: var(--bg-soft); }
.nav-drop-menu { filter: drop-shadow(0 6px 18px rgba(14,40,65,0.18)); }
@media (max-width: 900px) { .nav-drop { display: none; } }

/* ---------- 계산기 탭 (상속세/증여세) ---------- */
.calc-tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 22px; }
.ct-btn {
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 0.95rem; font-weight: 700; padding: 10px 22px; border-radius: 999px; cursor: pointer;
}
.ct-btn.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.calc-select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line);
  border-radius: 10px; font-size: 1rem; font-family: inherit; color: var(--ink);
  background: #fff;
}
.footer-line a { text-decoration: none; }

/* ---------- 세액계산 구조 표시 ---------- */
.calc-flow {
  font-size: 0.8rem; color: var(--ink-3);
  background: var(--bg-soft); border-radius: 8px;
  padding: 10px 12px; margin-bottom: 20px; line-height: 1.7;
}
.calc-flow b { color: var(--navy); font-weight: 700; padding: 0 2px; }
.calc-steps {
  list-style: none; text-align: left;
  border-top: 1px dashed var(--line);
  margin-top: 14px; padding-top: 12px;
}
.calc-steps li {
  display: flex; justify-content: space-between; gap: 12px;
  font-size: 0.86rem; color: var(--ink-2); padding: 4px 0;
}
.calc-steps li span:last-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.subway-cell { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px; }
.subway-cell .sub-badge { margin-right: 0; vertical-align: baseline; }
.loc-list .w-label { flex-basis: 68px; }
@media (min-width: 901px) { .loc-list li > span:nth-child(2) { white-space: nowrap; } }
@media (max-width: 900px) { .loc-list li > span:nth-child(2) { white-space: normal; } }

/* ---------- 전문가 칼럼 ---------- */
.col-list { display: flex; flex-direction: column; gap: 16px; }
.col-item {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 26px 28px; color: inherit;
}
a.col-item:hover { border-color: var(--navy); box-shadow: 0 4px 16px rgba(14,40,65,0.08); }
.col-cat {
  display: inline-block; font-size: 0.75rem; font-weight: 700; color: var(--navy);
  background: #eef2f7; border-radius: 6px; padding: 4px 9px; margin-bottom: 10px;
}
.col-item h3 { font-size: 1.12rem; font-weight: 800; line-height: 1.45; margin-bottom: 8px; }
.col-sum { font-size: 0.92rem; color: var(--ink-2); margin-bottom: 10px; line-height: 1.65; }
.col-date { font-size: 0.8rem; color: var(--ink-3); }
.col-soon { opacity: 0.55; }
.col-article h1 { font-size: 1.7rem; font-weight: 800; line-height: 1.4; margin: 8px 0 10px; letter-spacing: -0.02em; }
.col-meta { font-size: 0.85rem; color: var(--ink-3); padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.col-article p { font-size: 1rem; line-height: 1.85; color: var(--ink-2); margin-bottom: 20px; }
.col-article h3 { font-size: 1.15rem; font-weight: 800; margin: 34px 0 12px; color: var(--ink); }
.col-article strong { color: var(--ink); }
.col-cta {
  background: var(--bg-soft); border-radius: 14px; padding: 28px;
  text-align: center; margin: 36px 0 18px;
}
.col-cta p { margin-bottom: 16px; font-weight: 600; color: var(--ink); }
.col-disclaim { font-size: 0.8rem; color: var(--ink-3); }

/* ---------- 길안내 버튼 축소 (가로 알약형) ---------- */
.nav-ico { flex-direction: row; gap: 8px; padding: 9px 14px; border-radius: 10px; }
.nav-ico img { width: 20px; height: 20px; border-radius: 5px; box-shadow: 0 1px 3px rgba(0,0,0,0.12); }
.nav-ico span { font-size: 0.85rem; }

/* ---------- 칼럼 썸네일 카드 ---------- */
.col-grid2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.col-grid2 .col-item { padding: 0; overflow: hidden; }
.col-thumb { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; border-bottom: 1px solid var(--line); }
.col-body { padding: 20px 24px 22px; }
.col-grid2 h3 { font-size: 1.02rem; }
.col-hero { width: 100%; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 28px; }
@media (max-width: 900px) { .col-grid2 { grid-template-columns: 1fr; } }

/* ---------- 칼럼 카드 컴팩트화 (jiintax 칼럼 탭 참고) ---------- */
.col-grid2 { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.col-grid2 .col-item { border-radius: 10px; }
.col-thumb { aspect-ratio: 16/10; }
.col-body { padding: 14px 18px 18px; }
.col-grid2 .col-date { display: block; margin-bottom: 6px; font-size: 0.78rem; }
.col-grid2 h3 { font-size: 0.98rem; line-height: 1.45; margin-bottom: 8px; }
.col-grid2 .col-sum { font-size: 0.84rem; color: var(--ink-3); line-height: 1.6; margin-bottom: 0; }
@media (max-width: 900px) { .col-grid2 { grid-template-columns: 1fr; } }

/* ---------- 칼럼 공유 버튼 ---------- */
.share-row { display: flex; gap: 8px; margin: -10px 0 26px; }
.share-btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); background: #fff; color: var(--ink-2);
  font-size: 0.84rem; font-weight: 600; font-family: inherit;
  padding: 8px 15px; border-radius: 999px; cursor: pointer;
}
.share-btn:hover { border-color: var(--ink-3); }
.share-fill { background: var(--navy); border-color: var(--navy); color: #fff; }
.share-fill:hover { opacity: 0.9; }

/* ---------- 플로팅 버튼: 호버 시 라벨 슬라이드 ---------- */
@media (min-width: 901px) {
  .quick-float { align-items: flex-end; }
  .qf-btn {
    width: auto; min-width: 48px;
    flex-direction: row-reverse; justify-content: flex-start;
    padding: 0 13px;
  }
  .qf-btn svg { flex-shrink: 0; }
  .qf-btn .qf-label {
    display: inline-block; max-width: 0; opacity: 0; overflow: hidden;
    white-space: nowrap; font-size: 0.85rem; font-weight: 700; margin-right: 0;
    transition: max-width 0.28s ease, opacity 0.2s ease, margin-right 0.28s ease;
  }
  .qf-btn:hover .qf-label { max-width: 110px; opacity: 1; margin-right: 8px; }
  .qf-btn:hover { transform: none; }
}

/* ---------- 플로팅 버튼: 정제 (평상시 흰색 통일, 호버 시 네이비) ---------- */
@media (min-width: 901px) {
  .quick-float { gap: 8px; }
  .qf-btn, .qf-navy, .qf-white {
    background: #fff; color: var(--navy); border: 1px solid var(--line);
    border-radius: 12px; box-shadow: 0 2px 8px rgba(14, 40, 65, 0.1);
    transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
  }
  .qf-btn:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
  .qf-btn .qf-label { transition: max-width 0.3s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, margin-right 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
}

/* ---------- 헤더 메뉴 간격·정렬 정리 ---------- */
.header-nav { gap: 2px; }
.header-nav > a, .nav-drop > a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; line-height: 1.4; white-space: nowrap;
}
.nav-drop > a { padding: 9px 14px; }
.nd-caret { opacity: 0.65; margin-top: 1px; flex-shrink: 0; }
.nav-drop:hover .nd-caret { opacity: 1; }

/* 개인정보처리방침: 테두리 대신 볼드+밝은색으로 구분표시 (개인정보보호법 시행령 §31) */
.footer-privacy { border: none; border-radius: 0; padding: 0; font-weight: 800; color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 모바일 메뉴 (페이지 분리 구조) ---------- */
@media (max-width: 900px) {
  .header-nav {
    display: none;
    position: absolute; top: 74px; left: 0; right: 0;
    background: var(--navy); border-top: 1px solid rgba(255,255,255,0.12);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 0 14px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.25);
  }
  .header-nav.open { display: flex; }
  .header-nav > a { padding: 14px 24px; border-radius: 0; font-size: 1rem; }
  .nav-drop { display: block; }
  .nav-drop > a { padding: 14px 24px; border-radius: 0; }
  .nav-drop .nd-caret { display: none; }
  .nav-drop-menu {
    position: static; transform: none; display: block; padding-top: 0;
    min-width: 0; filter: none; background: rgba(255,255,255,0.06);
  }
  .nav-drop-menu > a {
    background: transparent; color: rgba(255,255,255,0.8);
    padding: 12px 24px 12px 40px; border-radius: 0; font-size: 0.94rem;
  }
  .nav-drop-menu > a + a { border-top: none; }
  .nav-drop-menu > a:hover { background: rgba(255,255,255,0.08); }
  .nav-toggle { display: block; font-size: 1.5rem; background: none; border: none; cursor: pointer; }
}
/* 캐럿 폭만큼 우측 패딩을 줄여 다른 메뉴와 시각적 간격 일치 */
.nav-drop > a { padding-right: 8px; gap: 3px; }
.nd-caret { margin-right: -6px; }

/* ---------- 전문가 소개 상세 (이김 양식 참고) ---------- */
.crumb { font-size: 0.82rem; color: var(--ink-3); margin-bottom: 26px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--ink-2); text-decoration: underline; }
.ex-head { display: grid; grid-template-columns: 260px 1fr; gap: 36px; align-items: center; padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.ex-photo { width: 100%; aspect-ratio: 1/1; object-fit: cover; object-position: top center; border-radius: 14px; background: #eef1f5; }
.ex-role { font-size: 0.88rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.ex-name { font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.ex-name span { font-size: 1.2rem; font-weight: 700; color: var(--ink-2); }
.ex-org { font-size: 0.98rem; color: var(--ink-2); margin-bottom: 12px; }
.ex-mail { font-size: 0.88rem; color: var(--ink-3); }
.ex-mail a { color: var(--ink-2); }
.ex-quote { border-left: 3px solid var(--navy); padding: 4px 0 4px 18px; margin: 34px 0; font-size: 1.05rem; font-weight: 600; line-height: 1.8; color: var(--ink); }
.ex-block { margin-bottom: 40px; }
.ex-para { font-size: 1rem; line-height: 1.9; color: var(--ink-2); margin-bottom: 16px; }
.ex-h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--navy); }
.ex-list { list-style: none; }
.ex-list li { font-size: 0.98rem; color: var(--ink-2); padding: 9px 0 9px 15px; position: relative; border-bottom: 1px solid var(--line); }
.ex-list li:last-child { border-bottom: none; }
.ex-list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.ex-career li strong { display: inline-block; min-width: 26px; color: var(--navy); font-weight: 800; }
.ex-work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.ex-workcat { background: var(--bg-soft); border-radius: 12px; padding: 20px 22px; }
.ex-workcat h3 { font-size: 0.95rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.ex-workcat ul { list-style: none; }
.ex-workcat li { font-size: 0.9rem; color: var(--ink-2); line-height: 1.65; padding-left: 12px; position: relative; margin-bottom: 7px; }
.ex-workcat li::before { content: "·"; position: absolute; left: 2px; color: var(--ink-3); }
.ex-note { font-size: 0.82rem; color: var(--ink-3); margin-top: 16px; }

/* 기타 세무자문 고객사 카테고리 요약 */
.cat-list { list-style: none; }
.cat-list li {
  display: grid; grid-template-columns: 190px 1fr; gap: 20px;
  padding: 10px 0; font-size: 0.95rem; color: var(--ink-2); line-height: 1.6;
}
.cat-list li strong { color: var(--navy); font-weight: 700; }
.cat-list li:not(:last-child) { border-bottom: 1px dashed var(--line); }
@media (max-width: 780px) {
  .cat-list li { grid-template-columns: 1fr; gap: 4px; }
}
.ex-cta { background: var(--bg-soft); border-radius: 16px; padding: 40px 32px; text-align: center; margin-top: 12px; }
.ex-cta h2 { font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.ex-cta p { color: var(--ink-2); margin-bottom: 22px; }
.ex-ctabtns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 780px) {
  .ex-head { grid-template-columns: 1fr; gap: 22px; }
  .ex-photo { max-width: 220px; }
  .ex-work { grid-template-columns: 1fr; }
}

/* 학력·경력 2열 (이김 양식) */
.ex-two { display: grid; grid-template-columns: 1fr 1.15fr; gap: 44px; margin-bottom: 40px; }
.ex-two .ex-block { margin-bottom: 0; }
.ex-two .ex-list li { border-bottom: none; padding: 7px 0 7px 0; }
.ex-two .ex-list li::before { display: none; }
.ex-career li { display: flex; gap: 18px; align-items: baseline; }
.ex-career li strong { min-width: 22px; color: var(--navy); font-weight: 800; flex-shrink: 0; }
@media (max-width: 780px) { .ex-two { grid-template-columns: 1fr; gap: 28px; } }
.ex-two .ex-etc li { padding-left: 13px; }
.ex-two .ex-etc li::before { display: block; content: ""; position: absolute; left: 0; top: 16px; width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }

/* 프로필 이메일: 마우스 오버 시 밑줄 */
.ex-mail a { text-decoration: none; transition: color 0.15s ease; }
.ex-mail a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 페이지 타이틀 바: 배경 이미지 지원 ---------- */
.page-head { position: relative; overflow: hidden; }
.page-head .wrap { position: relative; z-index: 2; }
/* 이미지가 들어간 버전: <section class="page-head has-img" style="--head-img:url('assets/img/xxx.jpg')"> */
.page-head.has-img {
  background-image: linear-gradient(rgba(24,32,44,0.52), rgba(24,32,44,0.38)), var(--head-img);
  background-size: cover;
  background-position: center 40%;
  border-bottom: none;
  padding: 118px 0 108px;
}
.page-head.has-img .sec-tag { color: rgba(255,255,255,0.78); }
.page-head.has-img h1 { color: #fff; }
.page-head.has-img .page-lead { color: rgba(255,255,255,0.86); }
@media (max-width: 900px) { .page-head.has-img { padding: 56px 0 50px; } }

/* ---------- 문제 제기 ---------- */
.prob-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 900px; }
.prob-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 28px; font-size: 1rem; line-height: 1.7; color: var(--ink-2);
  position: relative;
}
.prob-card::after {
  content: ""; position: absolute; left: 34px; bottom: -9px;
  width: 16px; height: 16px; background: #fff;
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.prob-foot { margin-top: 34px; font-size: 1.02rem; font-weight: 700; color: var(--ink); }

/* ---------- 왜 전문가인가 ---------- */
.why-list { display: flex; flex-direction: column; gap: 26px; max-width: 900px; }
.why-item { display: grid; grid-template-columns: 60px 1fr; gap: 20px; align-items: start; }
.why-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 0.92rem;
}
.why-item h3 { font-size: 1.12rem; font-weight: 800; margin-bottom: 8px; line-height: 1.45; }
.why-item p { font-size: 0.97rem; color: var(--ink-2); line-height: 1.8; }

/* ---------- 최종 CTA ---------- */
.final-cta { background: var(--navy); text-align: center; padding: 76px 0 80px; }
.final-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; line-height: 1.45; margin-bottom: 16px; letter-spacing: -0.02em; }
.final-cta p { color: rgba(255,255,255,0.78); line-height: 1.8; margin-bottom: 28px; }
.fc-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.final-cta .btn-line { border-color: rgba(255,255,255,0.5); color: #fff; background: transparent; }
.final-cta .btn-line:hover { background: rgba(255,255,255,0.1); }
.final-cta .btn-primary { background: #fff; color: var(--navy); border-color: #fff; }
@media (max-width: 780px) { .prob-grid { grid-template-columns: 1fr; } .why-item { grid-template-columns: 44px 1fr; gap: 14px; } }

/* 스크롤 스냅을 메인의 풀스크린 섹션에만 적용 (하위 페이지에서 드래그 시 튕김 방지) */
section { scroll-snap-align: none; }
section.screen { scroll-snap-align: start; }
/* 전문가 소개 인용문: 좌측 세로 막대 제거 */
.ex-quote { border-left: none; padding-left: 0; }

/* 주요 업무수행이력: 제목(볼드) 아랫줄에 내용 */
.work-table > div {
  padding: 18px 0; border-bottom: 1px solid var(--line);
}
.work-table > div:first-child { border-top: 1px solid var(--line); }
.work-table dt { font-size: 0.98rem; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.work-table dd { font-size: 0.95rem; color: var(--ink-2); line-height: 1.9; }
/* 약력 문단 양쪽 맞춤 */
.ex-para { text-align: justify; text-justify: inter-character; word-break: keep-all; }
/* KTX·ITX 로고 마크 (지하철 배지와 같은 줄) */
/* 로고형 배지: 지하철 배지와 동일한 알약 테두리 안에 공식 로고 배치 */
.badge-logo { background: #fff; border: 1.5px solid #d8dee6; padding: 0 10px; }
.badge-logo { padding: 0 8px; }
.badge-logo img { height: 13px; width: auto; display: block; }
.exit-hi { font-weight: 800; color: var(--ink); }

/* 타이틀 바 높이 고정 — 설명 줄 수와 무관하게 전 페이지 동일 */
.page-head { min-height: 354px; display: flex; align-items: center; padding-top: 0; padding-bottom: 0; }
.page-head.has-img { padding: 0; }
.page-head > .wrap { width: 100%; }
@media (max-width: 900px) { .page-head { min-height: 240px; } }
/* 푸터 주소·연락처 링크 */
.footer-line a { color: rgba(255,255,255,0.78); text-decoration: none; transition: color 0.15s ease; }
.footer-line a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
/* 카카오톡 상담 플로팅 버튼 (비대면 경로) */
.qf-kakao { background: var(--kakao) !important; color: #191600 !important; border-color: #f0d800 !important; }
.qf-kakao:hover { background: #ffe94d !important; color: #191600 !important; border-color: #f0d800 !important; }

/* ---------- 상담 경로 이원화 (비대면/방문) ---------- */
.route-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 40px; }
.route-card { border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; background: #fff; }
.route-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 800; border-radius: 6px;
  padding: 4px 10px; margin-bottom: 12px;
}
.route-kakao .route-tag { background: var(--kakao); color: #191600; }
.route-visit .route-tag { background: var(--navy); color: #fff; }
.route-card h3 { font-size: 1.08rem; font-weight: 800; margin-bottom: 8px; }
.route-card p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.7; margin-bottom: 16px; }
.route-visit { background: var(--bg-soft); }
.route-hint { display: inline-block; font-size: 0.9rem; font-weight: 700; color: var(--navy); }
@media (max-width: 780px) { .route-pick { grid-template-columns: 1fr; } }




/* ---------- 히어로: 서울 항공뷰 배경 영상 ---------- */
.hero.hero-video { position: relative; overflow: hidden; background: var(--navy); }
.hero-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center 40%; z-index: 0;
}
.hero-shade {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to right, rgba(10,20,34,0.78) 0%, rgba(10,20,34,0.55) 45%, rgba(10,20,34,0.25) 100%);
}
.hero.hero-video .wrap { position: relative; z-index: 2; }
.hero.hero-video h1 { color: #fff; }
.hero.hero-video .hero-lead { color: rgba(255,255,255,0.88); }
@media (max-width: 900px) {
  .hero-bg { display: none; }
  .hero.hero-video {
    background: linear-gradient(rgba(10,20,34,0.8), rgba(10,20,34,0.6)), url('../assets/img/hero_seoul_poster.jpg') center/cover;
  }
}
@media (prefers-reduced-motion: reduce) { .hero-bg { display: none; } }

/* 메인 풀스크린 섹션: 내용을 화면 중앙에 맞춰 위아래 여백 균등하게 */
.screen { justify-content: center; padding-top: 74px; padding-bottom: 74px; }
.hero.screen { padding-top: 74px; padding-bottom: 74px; }
/* 푸터 로고 링크 */
.footer-logo-link { display: inline-block; }
.footer-logo-link:hover { opacity: 0.85; }

/* 보수표: 전체 가운데 정렬, 금액만 우측 정렬 */
.rate-table th, .rate-table td { text-align: center; vertical-align: middle; }
.rate-table th:first-child, .rate-table td:first-child { text-align: center; }
.rate-table td.num { text-align: right; padding-right: 22px; font-variant-numeric: tabular-nums; }
.rate-table th small {
  display: block; font-size: 0.72rem; font-weight: 600;
  opacity: 0.72; margin-top: 3px;
}

/* ---------- 모바일 가로 스크롤 차단 ---------- */
html, body { max-width: 100%; overflow-x: hidden; }
@media (max-width: 900px) {
  /* 1) 표는 자기 컨테이너 안에서만 가로 스크롤 */
  .table-scroll { max-width: 100%; overflow-x: auto; }
  .rate-table { min-width: 560px; }
  /* 2) 지도 이미지가 컨테이너를 밀지 않도록 */
  .kmap img, .loc-map img, #naverMap { max-width: 100%; height: auto; }
  .loc-map { max-width: 100%; overflow: hidden; }
}

/* ---------- PC 최적화: 콘텐츠 폭 통일 + 밀도 개선 ---------- */
@media (min-width: 1024px) {
  /* 1) 모든 섹션 콘텐츠 폭을 1000px로 통일 */
  .screen .wrap,
  .section .wrap { max-width: 1040px; }
  .trust-grid, .why-list, .prob-grid,
  #fee .table-scroll, #fee .rate-table { max-width: 1000px; width: 100%; }
  .prob-grid { max-width: 1000px; }

  /* 2) 신뢰 카드 — 빈 공간이 69%였음. 카드를 키워 화면을 채움 */
  .trust-card { padding: 46px 40px; }
  .trust-card h3 { font-size: 1.32rem; margin-bottom: 12px; }
  .trust-card p { font-size: 1rem; line-height: 1.75; }
  .trust-grid { gap: 22px; }

  /* 3) 문제 제기 말풍선 키우기 */
  .prob-card { padding: 34px 34px; font-size: 1.08rem; }
  .prob-foot { font-size: 1.1rem; }

  /* 4) 왜 전문가인가 — 본문 가독성 */
  .why-item h3 { font-size: 1.22rem; }
  .why-item p { font-size: 1.02rem; }
  .why-list { gap: 34px; }

  /* 5) 수수료 표 — 좁던 폭 확대 */
  #fee .rate-table th, #fee .rate-table td { padding-top: 17px; padding-bottom: 17px; font-size: 1rem; }

  /* 6) 섹션 제목 크기 상향 */
  .screen .sec-head h2 { font-size: clamp(1.7rem, 2.5vw, 2.15rem); }
}
/* flex 안에서 margin:auto 가 stretch 를 막아 섹션마다 폭이 달라지던 문제 해결 */
.screen > .wrap { width: 100%; }


/* 업무이력: 부연 설명(고객사 등)도 본문과 동일한 글씨 크기·색상, 다음 줄에 표기 */
.work-sub { display: block; margin-top: 6px; font-size: inherit; font-weight: inherit; color: inherit; }
/* 전체 보수표 보기: 링크 → 버튼, 가운데 정렬 */
.fee-more-btn { margin-top: 26px; text-align: center; }
/* 약속 카드 3개 구성 */
.trust-grid-3c { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .trust-grid-3c { grid-template-columns: 1fr; } }
/* 프로필 연락처: 아이콘 + 상담 버튼 */
.ex-mail { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.ex-ico { display: inline-flex; color: var(--ink-3); }
.ex-headbtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.ex-hbtn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 18px; font-size: 0.9rem; }
/* 보수표: 금액 열 가운데 정렬 */
.rate-table td.num { text-align: center; padding-right: 0; }
/* 칼럼 하단 작성자 프로필 */
.col-author { display: grid; grid-template-columns: 96px 1fr; gap: 20px; align-items: start;
  margin: 40px 0 26px; padding: 24px; background: var(--bg-soft); border-radius: 14px; }
.ca-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; }
.ca-role { font-size: 0.8rem; font-weight: 700; color: var(--ink-3); margin-bottom: 4px; }
.ca-name { font-size: 1.1rem; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.ca-name span { font-size: 0.9rem; font-weight: 700; }
.ca-desc { font-size: 0.9rem; color: var(--ink-2); line-height: 1.75; }
.ca-links { margin-top: 10px; font-size: 0.88rem; }
.ca-links a { font-weight: 700; color: var(--navy); }
.ca-links a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) { .col-author { grid-template-columns: 1fr; } }
/* 방문 상담 신청: 폼 단독 가운데 배치 */
.contact-solo { max-width: 640px; margin-left: auto; margin-right: auto; }
/* 히어로 부제: 각 줄이 한 줄씩 떨어지도록 폭 확보 */
@media (min-width: 901px) {
  .hero.hero-video .hero-lead { max-width: none; white-space: nowrap; }
}
/* 부동산 관련 세율: 소제목·설명·주석 */
.rate-sub { font-size: 0.95rem; color: var(--ink-2); line-height: 1.85; margin-bottom: 30px; }
.rate-cap { font-size: 1.02rem; font-weight: 800; color: var(--navy); margin: 34px 0 12px; }
.rate-note { font-size: 0.82rem; color: var(--ink-3); line-height: 1.75; margin: 10px 0 0; }
.rate-note strong { color: var(--ink-2); }
.rt-sub { display: block; font-size: 0.85em; color: var(--ink-3); font-weight: 500; }
.rt-badge { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px;
  background: #fdecec; color: #c0392b; font-size: 0.72rem; font-weight: 800; vertical-align: middle; }
.rate-pending { margin-top: 34px; padding: 20px 24px; border: 1px dashed var(--line);
  border-radius: 12px; color: var(--ink-3); font-size: 0.9rem; }
.rate-pending strong { color: var(--ink-2); }
/* 부동산 세율표: rowspan 때문에 nth-child(2) 강조가 행마다 어긋나므로 해제 */
.rt-prop td:nth-child(2) { font-weight: 400; color: var(--ink-2); }
.rt-prop td:last-child { font-weight: 700; color: var(--navy); }
.rt-prop td.dash { color: var(--ink-3); font-weight: 400; }

/* ---------- 상속세 간편 계산기 (예상세액 계산 페이지) ---------- */
.cal-intro { font-size: 0.95rem; color: var(--ink-2); line-height: 1.8; margin-bottom: 26px; }
.cal-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 16px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px; background: var(--navy); color: #fff; border-radius: 13px 13px 0 0; }
.cal-head h2 { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.cal-sum { font-size: 0.95rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.cal-body { padding: 6px 22px 16px; }
.cal-row { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: center;
  padding: 13px 0; border-bottom: 1px solid var(--line); }
.cal-row:last-child { border-bottom: none; }
.cal-row > label { position: relative; font-size: 0.93rem; color: var(--ink-2); line-height: 1.5; }
.cal-tip { margin-left: 6px; width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--ink-3); font-size: 0.7rem; font-weight: 800; cursor: pointer;
  line-height: 1; vertical-align: middle; }
.cal-tip:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.cal-tipbox { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: min(420px, 78vw);
  padding: 12px 14px; background: var(--ink); color: #fff; border-radius: 10px;
  font-size: 0.83rem; font-weight: 500; line-height: 1.7; box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.cal-inwrap { position: relative; display: flex; align-items: center; gap: 8px; }
.cal-in { flex: 1; min-width: 0; padding: 11px 13px; border: 1px solid var(--line); border-radius: 9px;
  font-size: 0.98rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums;
  background: #fff; color: var(--ink); }
.cal-in:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(14,40,65,0.08); }
.cal-in-sm { max-width: 90px; }
.cal-unit { font-size: 0.88rem; color: var(--ink-3); flex-shrink: 0; }
.cal-hint { position: absolute; right: 34px; bottom: -16px; font-size: 0.76rem; color: var(--navy); font-weight: 700; }
.cal-choice { gap: 8px; }
.cal-opt { padding: 10px 20px; border: 1px solid var(--line); border-radius: 999px; background: #fff;
  font-size: 0.9rem; font-weight: 700; color: var(--ink-2); cursor: pointer; }
.cal-opt.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cal-run { display: block; margin: 30px auto 0; min-width: 280px; }

.cal-result { margin-top: 34px; padding: 32px; background: var(--bg-soft); border-radius: 16px; }
.cal-rlabel { font-size: 0.9rem; font-weight: 700; color: var(--ink-3); text-align: center; }
.cal-rvalue { margin-top: 8px; font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800; color: var(--navy);
  text-align: center; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.cal-rhint { margin-top: 4px; font-size: 0.95rem; color: var(--ink-3); text-align: center; font-weight: 700; }
.cal-steps-title { margin: 30px 0 12px; font-size: 0.95rem; font-weight: 800; color: var(--ink);
  padding-bottom: 9px; border-bottom: 2px solid var(--navy); }
.cal-steps { list-style: none; }
.cal-steps li { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: baseline;
  padding: 9px 0; font-size: 0.92rem; color: var(--ink-2); border-bottom: 1px dashed var(--line); }
.cal-steps li:last-child { border-bottom: none; }
.cs-op { color: var(--ink-3); font-weight: 800; text-align: center; }
.cs-val { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.cal-steps li.is-sum { background: rgba(14,40,65,0.04); margin: 4px -10px; padding: 11px 10px; border-radius: 6px; }
.cal-steps li.is-sum .cs-label, .cal-steps li.is-sum .cs-val { font-weight: 800; color: var(--navy); }
.cal-steps li.is-final { margin-top: 8px; background: var(--navy); color: #fff; padding: 15px 12px; border-radius: 10px; }
.cal-steps li.is-final .cs-op, .cal-steps li.is-final .cs-label, .cal-steps li.is-final .cs-val { color: #fff; font-weight: 800; }
.cal-steps li.is-final .cs-val { font-size: 1.08rem; }
.cal-disclaim { margin-top: 22px; font-size: 0.82rem; color: var(--ink-3); line-height: 1.8; }
.cal-disclaim strong { color: var(--ink-2); }
.cal-cta { display: block; margin-top: 20px; text-align: center; }
@media (max-width: 700px) {
  .cal-row { grid-template-columns: 1fr; gap: 8px; }
  .cal-body { padding: 4px 16px 14px; }
  .cal-result { padding: 22px 18px; }
  .cal-hint { position: static; margin-top: 0; }
}
/* 문제제기 3개 카드 + 통계 인용 */
.prob-grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .prob-grid-3 { grid-template-columns: 1fr; } }
/* 통계 밴드: 두 수치 대비 */
.stat-band { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 26px;
  background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.stat-cell { background: #fff; padding: 26px 30px; }
.stat-num { font-size: clamp(1.9rem, 3.4vw, 2.5rem); font-weight: 800; color: var(--navy);
  letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-num span { margin-left: 3px; font-size: 0.42em; font-weight: 700; letter-spacing: 0; }
.stat-cap { margin-top: 10px; font-size: 0.95rem; font-weight: 700; color: var(--ink); }
.stat-sub { margin-top: 5px; font-size: 0.86rem; color: var(--ink-3); line-height: 1.6; }
.stat-sub strong { color: var(--navy); font-weight: 800; }
.stat-src { margin-top: 9px; font-size: 0.78rem; color: var(--ink-3); text-align: right; }
@media (max-width: 700px) { .stat-band { grid-template-columns: 1fr; } .stat-cell { padding: 22px 24px; } }
/* 툴팁이 카드·행 밖으로 나올 수 있게 */
.cal-body, .cal-row { overflow: visible; }
.cal-row > label { z-index: 1; }
.cal-row:has(.cal-tipbox) { z-index: 30; position: relative; }
/* 칼럼 작성자 블록: 사진 확대, 역할 라벨 제거에 맞춰 정렬 조정 */
.col-author { grid-template-columns: 150px 1fr; gap: 26px; align-items: start; padding: 28px; }
.ca-photo { width: 150px; height: 150px; }
.ca-name { margin-bottom: 12px; }
@media (max-width: 640px) { .col-author { grid-template-columns: 1fr; } .ca-photo { width: 130px; height: 130px; } }
/* 칼럼 면책문구: 더 작게 + 양쪽 맞춤 */
.col-article .col-disclaim { font-size: 0.7rem; line-height: 1.85; color: var(--ink-3); text-align: justify; text-justify: inter-character; word-break: keep-all; }
/* 칼럼 작성자 소개글: 양쪽 맞춤 */
.ca-desc { text-align: justify; text-justify: inter-character; word-break: keep-all; }
/* 왜 전문가인가: 1×3 블록 카드 */
.why-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: none; }
.why-grid3 .why-item { display: block; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 30px 26px; }
.why-grid3 .why-num { margin-bottom: 16px; }
.why-grid3 .why-item h3 { font-size: 1.05rem; margin-bottom: 10px; }
.why-grid3 .why-item p { font-size: 0.93rem; line-height: 1.8; }
@media (max-width: 1000px) { .why-grid3 { grid-template-columns: 1fr; } }
/* 약속 4개 카드: 내용 가운데 정렬 */
.trust-grid-3c .trust-card { text-align: center; }
/* 칼럼 본문 전체 양쪽 맞춤 */
.col-article p, .col-article li { text-align: justify; text-justify: inter-character; word-break: keep-all; }
/* 칼럼 카드: 행마다 높이 통일 */
.col-grid2 .col-item { display: flex; flex-direction: column; height: 100%; }
.col-grid2 .col-body { flex: 1; }
/* 문제제기 카드: 핵심어 + 인용문 (jiintax 구성) */
.prob-grid-3 .prob-card { padding: 32px 30px; text-align: left; }
.pc-key { font-size: clamp(1.15rem, 1.9vw, 1.4rem); font-weight: 800; color: var(--navy);
  letter-spacing: -0.02em; line-height: 1.35; margin-bottom: 12px; }
.pc-quote { font-size: 0.93rem; color: var(--ink-3); line-height: 1.75; }
/* 과세 대상 추이 차트 */
.stat-chart { margin-top: 18px; padding: 26px 24px 18px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; }
.sc-title { font-size: 0.92rem; font-weight: 800; color: var(--ink); margin-bottom: 14px; }
.sc-title span { font-weight: 600; color: var(--ink-3); }
.stat-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.ch-axis { stroke: var(--line); stroke-width: 1.5; }
.ch-bar { fill: #c9d3de; }
.ch-bar-on { fill: var(--navy); }
.ch-val { font-size: 15px; font-weight: 700; fill: var(--ink-3); }
.ch-val-on { fill: var(--navy); font-weight: 800; font-size: 17px; }
.ch-yr { font-size: 14px; font-weight: 600; fill: var(--ink-3); }
.ch-yr-on { fill: var(--ink); font-weight: 800; }
.ch-ref { stroke: #c0392b; stroke-width: 1.4; stroke-dasharray: 6 5; opacity: 0.75; }
.ch-reflab { font-size: 13px; font-weight: 700; fill: #c0392b; }
/* 세무사 수 추이 표시 */
.ch-dot { fill: #c0392b; }
.ch-reflab-r { font-size: 13px; }
/* 차트 범례 */
.sc-title { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 14px; }
.sc-legend { display: inline-flex; align-items: center; gap: 7px; font-size: 0.78rem;
  font-weight: 600; color: #c0392b; }
.sc-legend i { display: inline-block; width: 20px; height: 0;
  border-top: 1.6px dashed #c0392b; opacity: 0.8; }

/* ================= 네이비 3단계 팔레트 적용 (강조색 없음) ================= */

/* 보조 버튼: 흰 배경 + 회색 테두리 -> 페일 네이비 면 */
.btn-line { background: var(--navy-3); border-color: var(--navy-3); color: var(--navy); }
.btn-line:hover { background: #dde7f1; border-color: #dde7f1; }
.final-cta .btn-line { background: transparent; border-color: rgba(255,255,255,0.5); color: #fff; }
.final-cta .btn-line:hover { background: rgba(255,255,255,0.1); }

/* 통계 밴드: 대비되는 쪽을 페일 네이비 면 + 미드 네이비 숫자 */
.stat-cell:last-child { background: var(--navy-3); }
.stat-cell:last-child .stat-num { color: var(--navy-2); }

/* 차트: 세무사 추세선을 미드 네이비로 (붉은 강조색 제거) */
.ch-ref { stroke: var(--navy-2); opacity: 0.85; }
.ch-dot { fill: var(--navy-2); }
.ch-reflab { fill: var(--navy-2); }
.sc-legend { color: var(--navy-2); }
.sc-legend i { border-top-color: var(--navy-2); opacity: 1; }

/* 세율표 중과 뱃지: 붉은색 -> 미드 네이비 */
.rt-badge { background: var(--navy-3); color: var(--navy-2); }

/* 인용 블록: 페일 네이비 면 */
.ex-quote { background: var(--navy-3); padding: 22px 26px; border-radius: 12px; }

/* 표 헤더 하단에 미드 네이비 라인으로 깊이 부여 */
.rate-table thead th { border-bottom: 3px solid var(--navy-2); }

/* 통계 밴드 3분할 */
.stat-band-3 { grid-template-columns: repeat(3, 1fr); }
.stat-band-3 .stat-cell:last-child { background: var(--navy-3); }
.stat-band-3 .stat-cell:last-child .stat-num { color: var(--navy-2); }
@media (max-width: 900px) { .stat-band-3 { grid-template-columns: 1fr; } }

/* 차트 막대: 왼쪽부터 순서대로 솟아오르는 등장 애니메이션 */
.ch-anim { transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(0); }
.ch-anim-t { opacity: 0; }
.stat-chart.is-in .ch-anim {
  animation: chGrow .7s cubic-bezier(.22,.9,.3,1) forwards;
  animation-delay: var(--d, 0s);
}
.stat-chart.is-in .ch-anim-t {
  animation: chFade .45s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes chGrow { to { transform: scaleY(1); } }
@keyframes chFade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .ch-anim { transform: scaleY(1); }
  .ch-anim-t { opacity: 1; }
  .stat-chart.is-in .ch-anim, .stat-chart.is-in .ch-anim-t { animation: none; }
}

/* 왜 전문가인가 카드: 가운데 정렬 */
.why-grid3 .why-item { text-align: center; }
.why-grid3 .why-num { margin: 0 auto 16px; }

/* 방문 상담 신청 제출 버튼: 계산기 버튼과 동일 규격 */
.contact-form button[type="submit"] {
  display: block;
  width: auto;
  min-width: 280px;
  margin: 26px auto 0;
  align-self: center;
}

/* 문제제기 말풍선: 안쪽 가운데 정렬 */
.prob-grid-3 .prob-card { text-align: center; }

/* 약속 카드 아이콘 (네이비 원형) */
.trust-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--navy); color: #fff; margin: 0 auto 16px;
}
.trust-grid-3c .trust-card { display: flex; flex-direction: column; align-items: center; }

/* 말풍선 아이콘 (연한 네이비 원형) */
.pc-ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--navy-3); color: var(--navy); margin: 0 auto 14px;
}
.prob-grid-3 .prob-card { display: flex; flex-direction: column; align-items: center; }

/* 2026 추정 막대 (점선 윤곽) */
.ch-bar-est { fill: rgba(30,74,109,0.06); stroke: var(--navy-2); stroke-width: 1.6; stroke-dasharray: 6 4; }
.ch-val-est { fill: var(--navy-2); font-weight: 700; }
.ch-yr-est { fill: var(--navy-2); font-weight: 700; font-size: 13px; }
.chart-note { margin-top: 12px; font-size: 0.8rem; color: var(--ink-3); line-height: 1.7; }

/* 통계 밴드 부연설명 강조 숫자 키우기 */
.stat-sub strong { font-size: 1.3em; letter-spacing: -0.02em; }

/* 보수표 보조 요소 */
.fee-lead { font-size: 0.92rem; color: var(--ink-2); line-height: 1.8; margin-bottom: 18px; }
.fee-lead strong { color: var(--navy); font-weight: 800; }
.fee-sub { display: block; margin-top: 4px; font-size: 0.82rem; color: var(--ink-3); font-weight: 500; }
.fee-notes > div { display: grid; grid-template-columns: 190px 1fr; gap: 22px;
  padding: 16px 0; border-bottom: 1px solid var(--line); align-items: start; }
.fee-notes > div:first-child { border-top: 1px solid var(--line); }
.fee-notes dt { font-size: 0.93rem; font-weight: 800; color: var(--navy); }
.fee-notes dd { font-size: 0.93rem; color: var(--ink-2); line-height: 1.8;
  text-align: justify; text-justify: inter-character; word-break: keep-all; }
.fee-notes dd strong { color: var(--ink); font-weight: 700; }
@media (max-width: 780px) { .fee-notes > div { grid-template-columns: 1fr; gap: 6px; } }

/* 보수표: 두 표의 첫 열 폭을 맞춰 세로선 정렬 */
.fee-block .rate-table th:first-child { width: 40%; }


/* 기타 안내사항: 항목 아이콘 + 제목 가운데 정렬 */
.fee-notes > div { grid-template-columns: 230px 1fr; }
.fee-notes dt { display: flex; flex-direction: row; align-items: center; gap: 11px; text-align: left; }
.fee-notes dt .ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-3); color: var(--navy);
  display: flex; align-items: center; justify-content: center; }
.fee-notes dt b { font-weight: 800; }
@media (max-width: 780px) {
  .fee-notes dt { flex-direction: row; text-align: left; }
}

/* 기타 안내사항: 제목줄과 본문 첫 줄 베이스라인 맞춤 */
.fee-notes > div { align-items: center; }
.fee-notes dd { margin: 0; }
/* 업무이력: 항목 간 여백 확대 */
.work-table > div { padding: 26px 0; }
.work-table dt { margin-bottom: 12px; }
.ex-block .cat-list { margin-top: 8px; }
.cat-list li { padding: 14px 0; }

/* 수수료 섹션 부제: PC에서 한 줄 유지 */
@media (min-width: 901px) {
  #fee .sec-desc { max-width: none; white-space: nowrap; }
}

/* 업종별 카테고리: 아이콘 + 라벨 가로 배치 */
.cat-list li { grid-template-columns: 230px 1fr; align-items: center; }
.cat-list li strong { display: flex; align-items: center; gap: 11px; }
.cat-list li strong .ic { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy-3); color: var(--navy);
  display: flex; align-items: center; justify-content: center; }
@media (max-width: 780px) { .cat-list li { grid-template-columns: 1fr; } }

/* 부동산 세율표: rowspan 병합 셀이 있어 교차 배경 해제 */
.rt-prop tbody tr:nth-child(even) { background: #fff; }
.rt-prop tbody tr:nth-child(even) td { background: #fff; }

/* ===== 세율표: 제목 통일 + 블록 간 여백 확대 ===== */
.cv-title,
.rate-cap {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--navy);
}
.cv-block { margin-bottom: 56px; }
.cv-block:last-child { margin-bottom: 0; }
.rate-cap { margin-top: 52px; }
.rate-sub { margin-bottom: 10px; }
.rate-note { margin-top: 14px; }
.rt-prop { margin-bottom: 4px; }

/* 세율표: 제목마다 위쪽 여백 (같은 블록 안 제목들 분리) */
.cv-block .cv-title { margin-top: 60px; }
.cv-block > .cv-title:first-child { margin-top: 0; }

/* 계산기 한글 보조표기: 입력칸 아래 오른쪽 정렬, 크기 확대 */
.cal-inwrap { flex-wrap: wrap; }
.cal-hint {
  position: static;
  width: 100%;
  min-height: 20px;
  margin-top: 6px;
  padding-right: 28px;
  text-align: right;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--navy-2);
  letter-spacing: -0.01em;
}
.cal-hint:not(:empty)::before { content: "= "; color: var(--ink-3); font-weight: 600; }
.cal-row { padding: 15px 0; }
@media (max-width: 700px) { .cal-hint { padding-right: 26px; } }

/* 메인 수수료 표: 단위 표기 우측 정렬 */
.fee-unit-line { text-align: right; margin-bottom: 10px; }

/* ===== FAQ: Q/A 글자 -> 아이콘 배지 ===== */
.faq-item summary { align-items: center; gap: 12px; }
.faq-item summary::before {
  content: "";
  flex-shrink: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy) center / 17px 17px no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M8.6 9a3.5 3.5 0 1 1 4.8 3.25c-.85.35-1.3 1.1-1.3 1.95v.7'/><line x1='12' y1='18.6' x2='12' y2='18.62'/></svg>");
}
.faq-item[open] summary::before { background-color: var(--navy); }

.faq-answer { position: relative; padding-left: 42px; }
.faq-answer::before {
  content: "";
  position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy-3) center / 17px 17px no-repeat;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230e2841' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='4.5 12.6 9.4 17.5 19.5 7'/></svg>");
}

/* 차트 출처: 각주와 좌측 정렬 맞춤 */
.stat-src { text-align: left; margin-top: 6px; }

/* 메인 섹션 제목: 브랜드 네이비 적용 (히어로·최종CTA 등 어두운 배경은 제외) */
.section:not(.final-cta):not(.hero) .sec-head h2 { color: var(--navy); }

/* ===== FAQ: 원형 Q · A 배지 (아이콘 대신 글자) ===== */
.faq-item summary::before {
  content: "Q";
  background-image: none;
  background-color: var(--navy);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 30px;
  text-align: center;
}
.faq-answer { padding-left: 46px; }
.faq-answer::before {
  content: "A";
  left: 4px;
  background-image: none;
  background-color: var(--navy-3);
  color: var(--navy);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 30px;
  text-align: center;
}

/* FAQ 펼침 상태에서도 Q 글자 유지 */
.faq-item[open] summary::before {
  content: "Q";
  background-color: var(--navy);
  background-image: none;
  color: #fff;
}

/* 카드 마우스오버: 미드 네이비 */
a.col-item:hover { border-color: var(--navy-2); box-shadow: 0 4px 16px rgba(30,74,109,0.14); }

/* 계산기: 공제 종합한도 안내문 */
.cal-capnote { margin-top: 12px; padding: 12px 16px; background: var(--navy-3);
  border-radius: 10px; font-size: 0.84rem; color: var(--navy); line-height: 1.7; font-weight: 600; }

/* 계산 결과 하단 CTA: 다른 버튼과 동일 규격 */
.cal-cta { display: block; width: fit-content; min-width: 280px; margin: 24px auto 0; }
.cal-cta { line-height: normal; }

/* 계산기 행: 라벨과 입력칸 텍스트 높이 맞춤 (보조표기가 wrap 높이를 늘려 중앙정렬이 어긋나던 문제) */
.cal-row { align-items: start; }
.cal-row > label { padding-top: 10px; }
.cal-row .cal-choice { padding-top: 0; }

/* 계산기 1번 카드: 선택 버튼·짧은 입력칸도 다른 행 입력칸의 오른쪽 라인에 맞춘다
   (일반 행은 .cal-in이 flex:1로 꽉 차므로 flex-end의 영향을 받지 않는다) */
.cal-inwrap { justify-content: flex-end; }
.cal-choice { justify-content: flex-end; padding-right: 20px; } /* 단위 글자(12px) + gap(8px) */
