/* ─────────────────────────────────────────────
   site.css — 모든 페이지가 같이 쓰는 틀: 상단 메뉴 · 버튼 · 표 · 질문 접기 · 문의 폼 · 푸터 · 따라다니는 문의 버튼
   (2026-11-04 재설계. 첫 페이지 섹션은 home.css, 하위 페이지 본문은 page.css)
   ───────────────────────────────────────────── */

/* ── 상단 메뉴 ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__in {
  display: flex; align-items: center; gap: 28px;
  height: var(--nav-h);
}
.brand {
  display: inline-flex; align-items: baseline; gap: 8px;
  font-size: 20px; font-weight: 800; letter-spacing: -.03em;
  white-space: nowrap;
}
.brand small {
  font-size: 13px; font-weight: 500; letter-spacing: 0;
  color: var(--text-3);
}
.nav__links {
  display: flex; gap: 22px; margin-left: 8px;
  font-size: 15px; font-weight: 500; color: var(--text-2);
}
.nav__links a { padding: 6px 0; border-bottom: 2px solid transparent; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); border-bottom-color: var(--ink); }
.nav__cta { margin-left: auto; }
.nav__burger {
  display: none;
  width: 44px; height: 44px; margin-left: auto; margin-right: -8px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__burger span { width: 20px; height: 2px; background: var(--ink); transition: transform .2s var(--ease), opacity .2s; }

.menu {
  display: none;
  position: fixed; left: 0; right: 0; top: var(--nav-h); z-index: 99;
  padding: 8px var(--pad-x) 20px;
  background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px -24px rgba(17, 20, 24, .3);
}
.menu.is-open { display: block; }
.menu nav { display: flex; flex-direction: column; }
.menu a { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; }
.menu a.is-active { color: var(--accent); }
.menu__foot { padding-top: 14px; font-size: 13px; color: var(--text-3); }

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__in { gap: 12px; }
  .nav__cta { margin-left: auto; }
  .nav__burger { display: flex; margin-left: 0; }
  .nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger[aria-expanded="true"] span:nth-child(2) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 480px) {   /* 좁은 휴대폰: 워드마크 꼬리말을 숨겨 카톡 버튼·메뉴 단추가 다 보이게 */
  .brand small { display: none; }
  .nav__cta { padding: 0 12px; }
}

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px;
  border-radius: 10px;
  font-size: 15px; font-weight: 700; letter-spacing: -.01em;
  white-space: nowrap;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--lg { height: 54px; padding: 0 24px; font-size: 16px; }
.btn--sm { height: 40px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn--kakao { background: var(--kakao); color: var(--kakao-ink); }
.btn--kakao:hover { background: #F5DC00; }
.btn--tg { background: var(--tg); color: #fff; }
.btn--tg:hover { background: #1E8EC4; }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: #2A2F36; }
.btn--line { background: #fff; color: var(--text); border: 1px solid var(--line-2); }
.btn--line:hover { border-color: var(--ink); }

/* ── 섹션 공통 ── */
.section { padding: var(--sec-y) 0; }
.section + .section { padding-top: 0; }
.section__head { max-width: 720px; margin-bottom: 32px; }
.section__head .h2 + p { margin-top: 12px; font-size: 17px; color: var(--text-2); }
.section__foot { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; }

/* ── 표 ── */
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl table {
  width: 100%; border-collapse: collapse;
  font-size: 15px; line-height: 1.55;
}
.tbl th, .tbl td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.tbl thead th { background: var(--surface); font-weight: 600; font-size: 13.5px; color: var(--text-2); white-space: nowrap; }
.tbl td b { font-weight: 600; }
.tbl td small { display: block; font-size: 13.5px; color: var(--text-3); }
.tbl .num { white-space: nowrap; font-weight: 700; }
.tbl .grp td { padding: 20px 14px 8px; border-bottom: 2px solid var(--ink); font-size: 14px; font-weight: 700; color: var(--text); }
.tbl tr:first-child .grp td, .tbl .grp:first-child td { padding-top: 0; }
.tbl tbody tr:hover td { background: #FAFBFC; }
.tbl a { color: var(--accent); font-weight: 600; }
.tbl a:hover { text-decoration: underline; }

/* ── 질문 접기 ── */
.q { border-bottom: 1px solid var(--line); }
.q summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0; cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 600;
}
.q summary::-webkit-details-marker { display: none; }
.q summary::after {
  content: "+"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-2); color: var(--text-2); font-weight: 500; font-size: 16px;
}
.q[open] summary::after { content: "–"; }
.q p { padding: 0 0 18px; color: var(--text-2); font-size: 15.5px; }

/* ── 문의 폼 ── */
.form { display: grid; gap: 16px; }
.form legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips legend { width: 100%; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span {
  display: inline-flex; align-items: center; height: 36px; padding: 0 13px;
  border: 1px solid var(--line-2); border-radius: 999px;
  font-size: 14px; font-weight: 500; color: var(--text-2); cursor: pointer;
  transition: background-color .12s, color .12s, border-color .12s;
}
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; color: var(--text-2); }
.field input, .field textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--line-2); border-radius: 8px;
  background: #fff; color: var(--text);
  font: inherit; font-size: 15.5px; line-height: 1.5;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.field input.is-invalid, .field textarea.is-invalid { border-color: var(--warn); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text-2); }
.agree input { margin: 4px 0 0; flex: none; width: 16px; height: 16px; accent-color: var(--ink); }
.agree a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.form__status { min-height: 1.4em; font-size: 14px; color: var(--text-2); }
.form__status.is-error { color: var(--warn); }
.agree.is-invalid span { color: var(--warn); }
.form__fallback { display: none; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.form__fallback.is-on { display: block; }
.form__fallback-title { font-size: 13.5px; color: var(--text-2); margin-bottom: 10px; }
.form__fallback pre { max-height: 190px; overflow: auto; margin: 0; padding: 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-family: var(--f-sans); font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; }
.form__fallback-act { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.form__fallback-act button { height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line-2); background: #fff; font-size: 13.5px; font-weight: 600; }
.form__fallback-act button:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.form__fallback-act span { font-size: 13.5px; color: var(--text-2); }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

/* ── 푸터 ── */
.footer { margin-top: var(--sec-y); border-top: 1px solid var(--line); background: var(--surface); }
.footer__cols {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px;
  padding: 44px 0 36px;
}
.footer__h { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.footer__cols a { display: block; padding: 3px 0; font-size: 14px; color: var(--text-2); }
.footer__cols a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
.footer__legal {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px;
  padding: 18px 0 28px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-3);
}
.footer__legal a { color: inherit; }
.footer__legal a:hover { color: var(--text); text-decoration: underline; }
@media (max-width: 767px) {
  .footer__cols { grid-template-columns: 1fr 1fr; gap: 28px 20px; padding: 36px 0 28px; }
}

/* ── 휴대폰에서 따라다니는 문의 버튼(config.js 에 링크가 있을 때만 보인다) ── */
.kakao-float, .tg-float {
  display: none;
  position: fixed; right: 16px; z-index: 90;
  width: 54px; height: 54px; border-radius: 50%;
  align-items: center; justify-content: center;
  box-shadow: 0 8px 24px -8px rgba(17, 20, 24, .45);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .2s, transform .2s var(--ease);
}
.kakao-float.is-on, .tg-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
.kakao-float { bottom: 16px; background: var(--kakao); color: var(--kakao-ink); }
.tg-float { bottom: 80px; background: var(--tg); color: #fff; }
.kakao-float svg, .tg-float svg { width: 26px; height: 26px; }
@media (max-width: 900px) {
  .kakao-float, .tg-float { display: flex; }
}

/* ── 안내 상자 ── */
.note {
  padding: 16px 18px; border-radius: var(--radius);
  background: var(--surface); font-size: 15px; color: var(--text-2);
}
.note b { color: var(--text); }
