/* ============ 신뢰형 디자인 토큰 ============ */
:root {
  --bg-main: #FAFBFD;
  --bg-soft: #F4F6FA;
  --bg-cool: #EDF1F7;
  --card: #FFFFFF;
  --navy-50: #F0F3F8;
  --navy-100: #D9E0EC;
  --navy-200: #B3C2D8;
  --navy-300: #8097B8;
  --navy-400: #4D6B95;
  --navy-500: #2B4671;
  --navy-600: #1A2D4F;
  --navy-700: #132340;
  --navy-800: #0D1A2E;
  --navy-900: #08111F;
  --gold-50: #FDF8ED;
  --gold-100: #F8EBC7;
  --gold-300: #D4AF5F;
  --gold-400: #B8953E;
  --gold-500: #9A7A2B;
  --gold-600: #7D6220;
  --blue-50: #EBF2FA;
  --blue-500: #2B6CB0;
  --blue-600: #1E4E82;
  --green-50: #E8F5EF;
  --green-500: #2F855A;
  --green-600: #22543D;
  --red-50: #FEE8E8;
  --red-500: #C53030;
  --text-primary: #1A2D4F;
  --text-secondary: #4A5A75;
  --text-tertiary: #6B7A93;
  --text-muted: #9AA5B8;
  --border-light: #E5E9F0;
  --border-medium: #CFD5E0;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Pretendard Variable', Pretendard, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-main);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  font-size: 15.5px;
  letter-spacing: -0.3px;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 28px; }

/* ============ TOP BAR ============ */
.top-bar {
  background: var(--navy-700);
  color: var(--navy-100);
  padding: 8px 0;
  font-size: 12.5px;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.top-bar-left {
  display: flex;
  gap: 18px;
  align-items: center;
}

.top-bar-left span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--navy-100);
}

.top-bar-left .cert {
  color: var(--gold-300);
  font-weight: 600;
}

.top-bar-right {
  display: flex;
  gap: 14px;
  align-items: center;
}

.top-bar-right a {
  color: var(--navy-100);
  transition: color 0.2s;
}
.top-bar-right a:hover { color: var(--gold-300); }

/* ============ HEADER ============ */
header {
  background: var(--card);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 3px rgba(26, 45, 79, 0.04);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--navy-700);
  flex-shrink: 0;
}

.brand-mark {
  width: 44px;
  height: 44px;
  background: var(--navy-600);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: var(--gold-300);
  position: relative;
  letter-spacing: 1px;
  box-shadow: 0 4px 12px rgba(26, 45, 79, 0.2);
}

.brand-mark::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 1px solid var(--gold-400);
  border-radius: 7px;
  opacity: 0.3;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  color: var(--navy-700);
  letter-spacing: -0.4px;
}

.brand-tag {
  font-size: 10.5px;
  color: var(--gold-500);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 700;
}

/* 메인 메뉴 3개 */
.main-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  flex: 1;
  justify-content: center;
}

.main-menu > li {
  position: relative;
}

.main-menu > li > a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  color: var(--navy-700);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.3px;
  transition: color 0.2s;
  position: relative;
}

.main-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gold-400);
  transition: width 0.3s;
  border-radius: 2px;
}

.main-menu > li:hover > a::after,
.main-menu > li > a.active::after { width: 60%; }

.main-menu > li:hover > a,
.main-menu > li > a.active { color: var(--navy-600); }

.main-menu .chevron {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.main-menu li:hover .chevron { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: 12px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  list-style: none;
  box-shadow: 0 10px 30px rgba(26, 45, 79, 0.12);
  z-index: 10;
}

.main-menu > li:hover .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.submenu li a {
  display: block;
  padding: 11px 14px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.15s;
}

.submenu li a:hover,
.submenu li a.active {
  background: var(--navy-50);
  color: var(--navy-600);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.nav-tel {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
}

.nav-tel .tel-num {
  color: var(--navy-700);
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.nav-cta {
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  color: white;
  background: var(--navy-600);
  transition: all 0.2s;
  letter-spacing: -0.2px;
  box-shadow: 0 2px 8px rgba(26, 45, 79, 0.2);
}

.nav-cta:hover {
  background: var(--navy-500);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(26, 45, 79, 0.25);
}

.hamburger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: transparent;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy-700);
  border-radius: 2px;
  transition: 0.25s;
}

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ PAGE HEADER (서브페이지 공통) ============ */
.page-header {
  background: linear-gradient(180deg, var(--bg-cool) 0%, var(--bg-main) 100%);
  padding: 56px 0 48px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(43, 70, 113, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.page-header-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-tertiary);
  margin-bottom: 18px;
  font-weight: 500;
}

.breadcrumb a { color: var(--text-tertiary); }
.breadcrumb a:hover { color: var(--navy-600); }
.breadcrumb .sep { color: var(--text-muted); }
.breadcrumb .current { color: var(--navy-700); font-weight: 700; }

.page-tag {
  display: inline-block;
  background: var(--gold-50);
  color: var(--gold-500);
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  border: 1px solid var(--gold-100);
}

.page-header h1 {
  font-size: clamp(1.8rem, 3.8vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
  color: var(--navy-700);
  margin-bottom: 14px;
  word-break: keep-all;
}

.page-header h1 .accent {
  color: var(--navy-600);
  position: relative;
}

.page-header h1 .accent::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 8px;
  background: var(--gold-100);
  z-index: -1;
  border-radius: 2px;
}

.page-lead {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 500;
  word-break: keep-all;
}

.page-meta {
  display: flex;
  gap: 16px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-light);
  font-size: 12.5px;
  color: var(--text-tertiary);
  font-weight: 500;
  flex-wrap: wrap;
}

.page-meta span { display: flex; align-items: center; gap: 6px; }
.page-meta strong { color: var(--navy-600); font-weight: 700; }

/* ============ CONTENT ============ */
.content {
  padding: 64px 0 80px;
}

.content-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 28px;
}

.content-inner h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--navy-700);
  margin: 48px 0 18px;
  letter-spacing: -0.5px;
  line-height: 1.35;
  word-break: keep-all;
  padding-left: 20px;
  border-left: 4px solid var(--gold-400);
}

.content-inner h2:first-child { margin-top: 0; }

.content-inner h3 {
  font-size: 19px;
  font-weight: 700;
  color: var(--navy-700);
  margin: 32px 0 12px;
  letter-spacing: -0.3px;
  word-break: keep-all;
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-inner h3::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold-400);
  border-radius: 50%;
  flex-shrink: 0;
}

.content-inner p {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 18px;
  word-break: keep-all;
  font-weight: 500;
}

.content-inner strong {
  color: var(--navy-700);
  font-weight: 700;
  background: var(--gold-50);
  padding: 1px 4px;
  border-radius: 3px;
}

.content-inner ul, .content-inner ol {
  margin-bottom: 22px;
  padding-left: 0;
  list-style: none;
}

.content-inner li {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.85;
  margin-bottom: 10px;
  word-break: keep-all;
  font-weight: 500;
  padding-left: 28px;
  position: relative;
}

.content-inner li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--navy-600);
  font-weight: 800;
  width: 20px;
  height: 20px;
  background: var(--navy-50);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.content-inner ol {
  counter-reset: ol-counter;
}

.content-inner ol li {
  counter-increment: ol-counter;
  padding-left: 34px;
}

.content-inner ol li::before {
  content: counter(ol-counter);
  background: var(--navy-600);
  color: white;
  font-size: 11px;
  width: 22px;
  height: 22px;
}

.info-box {
  background: var(--navy-50);
  border: 1px solid var(--navy-100);
  border-left: 4px solid var(--navy-600);
  border-radius: 10px;
  padding: 26px 32px;
  margin: 32px 0;
}

.info-box .info-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--navy-600);
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.info-box .info-label::before {
  content: '★';
  color: var(--gold-400);
}

.info-box p {
  font-size: 15.5px;
  color: var(--navy-700);
  margin-bottom: 8px;
  line-height: 1.8;
}

.info-box p:last-child { margin-bottom: 0; }
.info-box strong { color: var(--navy-700); background: var(--card); font-weight: 700; }

.warning-box {
  background: var(--red-50);
  border: 1px solid #FEB2B2;
  border-left: 4px solid var(--red-500);
  border-radius: 10px;
  padding: 22px 28px;
  margin: 28px 0;
}

.warning-box .warning-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--red-500);
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.warning-box .warning-label::before { content: '⚠'; }

.warning-box p {
  font-size: 14.5px;
  color: #742A2A;
  margin-bottom: 6px;
  line-height: 1.75;
}

.warning-box p:last-child { margin-bottom: 0; }
.warning-box strong { color: #742A2A; background: white; font-weight: 700; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  font-size: 14.5px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 8px rgba(26, 45, 79, 0.04);
  margin: 28px 0;
}

.data-table-wrap {
  overflow-x: auto;
  margin: 28px 0;
}

.data-table-wrap .data-table { margin: 0; min-width: 540px; }

.data-table thead { background: var(--navy-600); }

.data-table th {
  padding: 14px 16px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  letter-spacing: -0.2px;
}

.data-table th.center { text-align: center; }

.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-weight: 500;
}

.data-table td.center { text-align: center; }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.data-table tbody tr:hover { background: var(--navy-50); }
.data-table td:first-child { font-weight: 700; color: var(--navy-700); }

/* 페이지 CTA */
.page-cta {
  background: linear-gradient(135deg, var(--navy-700) 0%, var(--navy-800) 100%);
  color: white;
  text-align: center;
  padding: 48px 32px;
  border-radius: 14px;
  margin-top: 56px;
  position: relative;
  overflow: hidden;
}

.page-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(212, 175, 95, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.page-cta h3 {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
  position: relative;
}

.page-cta p {
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 24px;
  line-height: 1.7;
  position: relative;
}

.page-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--gold-300);
  color: var(--navy-700);
  font-size: 14px;
  font-weight: 800;
  border-radius: 10px;
  letter-spacing: -0.3px;
  transition: all 0.2s;
  position: relative;
  box-shadow: 0 6px 18px rgba(212, 175, 95, 0.3);
}

.page-cta-btn:hover {
  background: var(--gold-400);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(212, 175, 95, 0.4);
}

/* 관련 페이지 */
.related {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border-light);
}

.related-label {
  font-size: 12px;
  color: var(--gold-500);
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.related-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border-light);
  padding: 18px 22px;
  border-radius: 10px;
  transition: all 0.2s;
}

.related-card:hover {
  border-color: var(--navy-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 45, 79, 0.08);
}

.related-card-tag {
  display: inline-block;
  font-size: 11px;
  color: var(--navy-600);
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: 0.5px;
}

.related-card h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
  word-break: keep-all;
}

.related-card p {
  font-size: 13px;
  color: var(--text-tertiary);
  line-height: 1.55;
  word-break: keep-all;
}

/* ============ FOOTER ============ */
footer {
  background: var(--navy-800);
  color: var(--navy-200);
  padding: 56px 28px 28px;
  font-size: 13px;
  line-height: 1.8;
}

.footer-wrap { max-width: 1200px; margin: 0 auto; }

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--navy-600);
  margin-bottom: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo {
  width: 38px;
  height: 38px;
  background: var(--navy-600);
  border: 1px solid var(--gold-400);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: var(--gold-300);
}

.footer-brand-name {
  font-size: 18px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.3px;
  display: block;
}

.footer-brand-tag {
  font-size: 10px;
  color: var(--gold-300);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 700;
}

.footer-desc {
  color: var(--navy-200);
  font-size: 13px;
  line-height: 1.8;
  max-width: 340px;
  font-weight: 500;
}

.footer-col h5 {
  font-size: 12px;
  font-weight: 700;
  color: var(--gold-300);
  margin-bottom: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-col ul { list-style: none; }
.footer-col li { padding: 4px 0; }

.footer-col a {
  color: var(--navy-200);
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--gold-300); }

.footer-notice {
  padding: 18px 22px;
  background: var(--navy-700);
  border-left: 3px solid var(--gold-400);
  border-radius: 8px;
  font-size: 12px;
  color: var(--navy-200);
  line-height: 1.75;
  margin-bottom: 22px;
  font-weight: 500;
}

.footer-notice strong {
  color: var(--gold-300);
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.footer-copy {
  text-align: center;
  font-size: 12px;
  color: var(--navy-300);
  padding-top: 18px;
  border-top: 1px solid var(--navy-600);
  line-height: 1.75;
  font-weight: 500;
}

/* ============ FLOATING CTA ============ */
.float-cta {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--navy-600);
  color: white;
  padding: 14px 24px;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.2px;
  box-shadow: 0 10px 28px rgba(26, 45, 79, 0.3);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s;
  cursor: pointer;
  border: 2px solid var(--gold-400);
}

.float-cta:hover {
  background: var(--navy-500);
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(26, 45, 79, 0.4);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 1060px) {
  .main-menu > li > a { padding: 10px 14px; font-size: 14px; }
}

@media (max-width: 960px) {
  .top-bar-left span:not(.cert) { display: none; }
  .main-menu {
    position: fixed;
    top: 74px;
    right: -100%;
    width: 300px;
    height: calc(100vh - 74px);
    background: var(--card);
    flex-direction: column;
    align-items: stretch;
    padding: 20px;
    gap: 0;
    transition: right 0.3s;
    box-shadow: -10px 0 30px rgba(26, 45, 79, 0.1);
    overflow-y: auto;
    border-left: 1px solid var(--border-light);
    z-index: 99;
  }
  .main-menu.active { right: 0; }
  .main-menu > li { border-bottom: 1px solid var(--border-light); }
  .main-menu > li > a { padding: 16px 12px; font-size: 16px; justify-content: space-between; }
  .main-menu > li > a::after { display: none; }
  .submenu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: 0 0 10px 16px;
    margin: 0;
    background: transparent;
    min-width: 0;
  }
  .submenu li a { font-size: 14px; padding: 9px 12px; }
  .nav-tel { display: none; }
  .hamburger { display: flex; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand-box { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .container { padding: 0 20px; }
  .top-bar-inner { padding: 0 20px; font-size: 11.5px; }
  .top-bar-right a span { display: none; }
  .nav { padding: 14px 20px; }

  .page-header { padding: 40px 0 36px; }
  .page-header-inner { padding: 0 20px; }
  .page-header h1 { font-size: 1.75rem; }

  .content { padding: 48px 0 64px; }
  .content-inner { padding: 0 20px; }
  .content-inner h2 { font-size: 21px; margin: 36px 0 14px; padding-left: 14px; }
  .content-inner h3 { font-size: 17px; margin: 26px 0 10px; }
  .content-inner p, .content-inner li { font-size: 15px; }
  .info-box, .warning-box { padding: 20px 22px; }

  .page-cta { padding: 36px 22px; }
  .page-cta h3 { font-size: 19px; }
  .related-grid { grid-template-columns: 1fr; }

  .data-table th, .data-table td { padding: 11px 12px; font-size: 13px; }

  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .float-cta { bottom: 16px; right: 16px; padding: 12px 20px; font-size: 12.5px; }
}
