@import url('https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/variable/woff2/SUIT-Variable.css');

:root {
  --primary: #3E5C6B;
  --accent: #B8C9D1;
  --accent-dark: #6B8A9A;
  --bg-alt: #F3F6F7;
  --text: #2A3940;
  --border: #DCE4E7;
}

* { box-sizing: border-box; }
body {
  margin: 0; padding-bottom: 56px;
  font-family: 'SUIT', 'Pretendard', sans-serif;
  color: var(--text); font-size: 16px; line-height: 1.75; background: #fff;
}
@media (min-width: 900px) { body { padding-bottom: 0; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--primary); line-height: 1.35; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* header: 로고 중앙 정렬형 */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .container {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding-top: 14px; padding-bottom: 12px; gap: 8px; position: relative;
}
.logo { color: var(--primary); font-weight: 800; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.02em; }
.main-nav ul { list-style: none; display: flex; gap: 20px; margin: 0; padding: 0; }
.main-nav a { color: #5b6f78; text-decoration: none; font-size: 0.88rem; }
.main-nav a:hover { color: var(--primary); }
.header-cta {
  position: absolute; right: 20px; top: 16px;
  background: var(--accent-dark); color: #fff; padding: 8px 16px; border-radius: 6px;
  font-weight: 700; font-size: 0.82rem; text-decoration: none; min-height: 40px;
  display: none; align-items: center;
}
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

/* hero: 좁은 박스형 */
.hero { background: var(--bg-alt); padding: 44px 0; }
.hero-box {
  max-width: 640px; margin: 0 auto; text-align: center; padding: 0 20px;
}
.hero .eyebrow {
  display: inline-block; background: var(--accent-dark); color: #fff;
  font-size: 0.78rem; font-weight: 700; padding: 5px 12px; border-radius: 4px; margin-bottom: 14px;
}
.hero h1 { font-size: 1.75rem; margin: 0 0 12px; }
.hero p.lead { color: #4c5f68; margin: 0 0 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 22px; font-weight: 700; font-size: 0.94rem;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; border-radius: 2px; }
.btn-square { border-radius: 2px; }

/* layout: 좌 고정 사이드 인덱스 + 우 스크롤 */
.page-body { padding: 48px 0; }
.index-layout { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 960px) { .index-layout { grid-template-columns: 220px 1fr; align-items: start; gap: 48px; } }

.side-index { display: none; }
@media (min-width: 960px) {
  .side-index { display: block; position: sticky; top: 24px; }
  .side-index h2 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: #7f8f96; margin: 0 0 12px; border: none; padding: 0; }
  .side-index ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--border); }
  .side-index a {
    display: block; padding: 8px 0 8px 16px; font-size: 0.9rem; color: #5b6f78; text-decoration: none;
    border-left: 2px solid transparent; margin-left: -2px;
  }
  .side-index a:hover { color: var(--primary); border-left-color: var(--accent-dark); }
}
.mobile-index { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 8px; }
.mobile-index a {
  flex: none; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 14px; font-size: 0.84rem; text-decoration: none; color: var(--primary); min-height: 36px; display: inline-flex; align-items: center;
}
@media (min-width: 960px) { .mobile-index { display: none; } }

article section { padding: 26px 0; border-left: 4px solid var(--accent); padding-left: 20px; margin-bottom: 20px; }
h2 { font-size: 1.3rem; margin-top: 0; }
.summary-box { background: var(--bg-alt); border-radius: 8px; padding: 16px 18px; font-size: 0.97rem; border-left: 4px solid var(--accent-dark); }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin: 16px 0; }
caption { text-align: left; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
th, td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
th { background: var(--primary); color: #fff; }
tbody tr:nth-child(even) { background: var(--bg-alt); }
.table-scroll { overflow-x: auto; }

.checklist { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.checklist li { display: flex; gap: 10px; background: var(--bg-alt); border-radius: 6px; padding: 10px 12px; font-size: 0.93rem; }
.checklist svg { flex: none; width: 18px; height: 18px; color: var(--accent-dark); margin-top: 2px; }

.gallery { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 16px 0; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
.gallery figure { margin: 0; }
.gallery img { border-radius: 6px; }
.gallery figcaption { font-size: 0.8rem; color: #6b7c83; margin-top: 6px; }

.notice { background: #fbf3ea; border: 1px solid #e6cba9; border-radius: 8px; padding: 16px 18px; }
.notice h3 { margin-top: 0; color: #8a5a26; }

.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { cursor: pointer; font-weight: 700; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; min-height: 44px; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; color: var(--accent-dark); font-size: 1.3rem; }
.faq-item[open] summary::after { content: '\2212'; }
.faq-item p { margin: 0 0 14px; color: #4c5f68; }

.related-links { display: grid; gap: 10px; }
.related-links a { display: block; padding: 12px 14px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; font-weight: 700; color: var(--primary); }
.related-links span { display: block; font-weight: 400; font-size: 0.84rem; color: #6b7c83; margin-top: 3px; }

/* CTA: 섹션 사이 인라인 삽입 */
.cta-inline {
  background: var(--primary); color: #fff; border-radius: 10px;
  padding: 26px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin: 34px 0;
}
.cta-inline h3 { color: #fff; margin: 0 0 4px; font-size: 1.1rem; }
.cta-inline p { margin: 0; color: #cfdce1; font-size: 0.9rem; }
.cta-inline .btn { background: var(--accent); color: var(--primary); }

/* footer: 중앙 정렬 단일 컬럼 */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 40px 0 100px; text-align: center; }
.footer-grid nav ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 22px; margin: 0 0 22px; padding: 0; }
.footer-grid a { color: #5b6f78; text-decoration: none; font-size: 0.88rem; }
address { font-style: normal; font-size: 0.85rem; line-height: 1.9; color: #7f8f96; }
address a { color: #7f8f96; }
.copyright { margin-top: 20px; font-size: 0.8rem; color: #94a2a8; }

.mobile-cta-bar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 200; display: grid; grid-template-columns: 1fr 1fr; background: #fff; box-shadow: 0 -4px 16px rgba(0,0,0,0.12); }
.mobile-cta-bar a { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 700; }
.mobile-cta-bar .call { background: var(--accent-dark); color: #fff; }
.mobile-cta-bar .top { background: var(--primary); color: #fff; }
@media (min-width: 900px) { .mobile-cta-bar { display: none; } }
