/* 공개 화면(소개·요금 · 서비스 신청 · 약관). 관리자 화면(admin.css)과 완전히 분리되어 있다.
   문서처럼 읽히는 화면을 목표로 한다: 왼쪽 정렬, 1px 선, 표와 번호 목록, 색은 먹색 + 남청 하나. */
:root {
  --ink: #1f2937;
  --ink-2: #384250;
  --muted: #6b7280;
  --line: #ccd3da;
  --line-2: #e5e9ed;
  --tint: #f4f6f8;
  --point: #14507d;
  --point-dark: #0e3b5c;
  --point-soft: #eef4f9;
  --bad: #b42318;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: #fff;
  color: var(--ink);
  font-family: 'Pretendard', 'Noto Sans KR', system-ui, sans-serif;
  font-size: 16.5px;
  line-height: 1.75;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.4; letter-spacing: -0.015em; }
h1 { font-size: 34px; font-weight: 700; }
h2 { font-size: 24px; font-weight: 700; margin-bottom: 14px; }
h3 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; }
a { color: var(--point); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--point-dark); }
img { max-width: 100%; }

:focus-visible { outline: 3px solid var(--point); outline-offset: 2px; }

.wrap { max-width: 1060px; margin: 0 auto; padding: 0 16px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; z-index: 5; background: #fff; padding: 10px 14px; border: 2px solid var(--point); }

/* ── 머리·바닥 ─────────────────────────────────────── */
.site-head { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #e4e7ee; background: #fff; }
.head-in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px 24px; flex-wrap: wrap; padding-top: 12px; padding-bottom: 12px; max-width: 1180px;
}
.head-name { display: inline-flex; align-items: center; gap: 9px; color: #2E3BB0; text-decoration: none; }
.head-word { font-family: 'Outfit', 'Pretendard', system-ui, sans-serif; font-size: 25px; font-weight: 600; letter-spacing: -0.011em; line-height: 1; padding-bottom: 3px; }
.plenary-symbol { display: block; flex: none; }
.head-name:hover { color: #2E3BB0; }
.head-nav { display: flex; align-items: center; gap: 4px 22px; flex-wrap: wrap; }
.head-nav a { color: #384250; text-decoration: none; font-size: 15.5px; font-weight: 500; }
.head-nav a:hover { color: #0b1220; }
.head-nav .head-cta { padding: 9px 16px; border-radius: 8px; background: #2E3BB0; color: #fff; font-weight: 700; }
.head-nav .head-cta:hover { background: #242F91; color: #fff; }
@media (max-width: 760px) {
  .head-nav a:not(.head-cta):not([href$="/login"]) { display: none; }
}

.site-foot {
  border-top: 1px solid var(--line); background: #fff;
  padding: 22px 0 44px; font-size: 15.5px; color: var(--muted);
}
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 12px; }
.foot-links a { color: var(--ink-2); }
.foot-biz { margin-bottom: 8px; color: var(--ink-2); }
.foot-biz b { color: var(--ink); }
.foot-biz span { display: inline-block; margin-left: 14px; }
.foot-note { font-size: 15px; }

/* ── 버튼 ──────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 13px 24px; border: 1px solid transparent; border-radius: 3px;
  font: inherit; font-size: 17px; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn + .btn { margin-left: 10px; }
.btn-point { background: var(--point); color: #fff; }
.btn-point:hover { background: var(--point-dark); color: #fff; }
.btn-line { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--point); color: var(--point); }
.btn-big { padding: 15px 30px; font-size: 18px; }
.btn-block { display: block; width: 100%; margin: 0; }

/* ── 소개·요금 ─────────────────────────────────────── */
.lead { padding: 46px 0 40px; }
.lead h1 { max-width: 20em; }
.lead-text { max-width: 54em; margin-top: 18px; font-size: 17.5px; color: var(--ink-2); }
.lead-facts { list-style: none; padding: 0; margin: 24px 0 0; max-width: 54em; border-top: 1px solid var(--line-2); }
.lead-facts li { position: relative; padding: 9px 0 9px 18px; border-bottom: 1px solid var(--line-2); color: var(--ink-2); }
.lead-facts li::before { content: ""; position: absolute; left: 0; top: 1.45em; width: 8px; height: 1px; background: var(--muted); }
.lead-btns { margin-top: 26px; }

.block { padding: 40px 0; border-top: 1px solid var(--line-2); }
.block-tint { background: var(--tint); border-top: 1px solid var(--line); }
.block-end { background: var(--tint); border-top: 1px solid var(--line); padding-bottom: 46px; }
.block-end .lead-btns + .block-text { margin-top: 20px; }
.block-text { max-width: 58em; margin-bottom: 18px; color: var(--ink-2); }

.theme-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 20px; margin-top: 20px;
}
.theme img { display: block; width: 100%; height: auto; border: 1px solid var(--line); background: #fff; }
.theme figcaption { margin-top: 7px; font-size: 15px; line-height: 1.55; }
.theme figcaption b { display: block; font-size: 16px; color: var(--ink); }
.theme figcaption span { display: block; color: var(--muted); }

.tbl { width: 100%; border-collapse: collapse; background: #fff; margin: 4px 0 20px; }
.tbl caption { text-align: left; }
.tbl th, .tbl td { border: 1px solid var(--line); padding: 11px 14px; text-align: left; vertical-align: top; font-size: 16px; }
.tbl thead th { background: #e9edf1; font-weight: 700; }
.tbl tbody th { background: #f7f9fa; font-weight: 600; width: 28%; }
.tbl .num { white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl-price tbody th { width: 22%; }
.tbl-price td.num { width: 18%; font-weight: 600; }

.note { max-width: 58em; margin-top: 12px; padding: 18px 20px; border: 1px solid var(--line); background: var(--tint); }
.note h3 { margin: 0 0 8px; }
.note p { margin-bottom: 8px; color: var(--ink-2); }
.note p:last-child { margin-bottom: 0; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 10px 0 0 15px; max-width: 58em; }
.steps li { counter-increment: step; position: relative; padding: 0 0 22px 44px; border-left: 1px solid var(--line); }
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: -15px; top: 0;
  width: 30px; height: 30px; border-radius: 50%; background: var(--point); color: #fff;
  font-size: 15px; font-weight: 700; line-height: 30px; text-align: center;
}
.steps li b { display: block; font-size: 17.5px; margin-bottom: 3px; }
.steps li p { color: var(--ink-2); }
.steps + p { margin-top: 18px; }

.faq { max-width: 58em; }
.faq dt { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line-2); font-size: 17.5px; font-weight: 700; }
.faq dt:first-of-type { margin-top: 4px; padding-top: 0; border-top: 0; }
.faq dd { margin-top: 6px; color: var(--ink-2); }

/* ── 서비스 신청 ───────────────────────────────────── */
.apply-head { padding: 40px 0 6px; max-width: 58em; }
.apply-head p { margin-top: 14px; color: var(--ink-2); }
.form-notice {
  max-width: 58em; margin: 18px 0 0; padding: 12px 16px;
  border: 1px solid var(--bad); background: #fdf2f1; color: var(--bad); font-weight: 600;
}
.apply-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px;
  gap: 40px; align-items: start; padding: 10px 0 60px;
}
.apply-main { min-width: 0; }
.apply-side { position: sticky; top: 16px; }

.fs { border: 0; border-top: 1px solid var(--line-2); margin: 0; padding: 24px 0 4px; }
.fs legend { padding: 0; font-size: 19px; font-weight: 700; }
.fs:first-of-type { border-top: 0; padding-top: 14px; }

.field { margin: 16px 0; }
.field > label { display: block; margin-bottom: 5px; font-weight: 600; }
.hint { margin: 0 0 8px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.input {
  width: 100%; max-width: 560px; padding: 11px 12px; border: 1px solid #aeb7c0; border-radius: 3px;
  font: inherit; font-size: 16.5px; color: var(--ink); background: #fff;
}
textarea.input { max-width: none; }
input[type="date"].input { max-width: 240px; }
.input:focus { border-color: var(--point); outline: 2px solid var(--point); outline-offset: 0; }
textarea.input { line-height: 1.7; resize: vertical; }
.input-short { max-width: 260px; }
.req { margin-left: 4px; font-size: 13px; font-weight: 700; color: var(--bad); vertical-align: 1px; }
.err { margin-top: 6px; color: var(--bad); font-size: 15.5px; font-weight: 600; }
.has-error .input { border-color: var(--bad); }

.pick { border: 1px solid var(--line); background: #fff; }
.pick-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-top: 1px solid var(--line-2); cursor: pointer; }
.pick-row:first-child { border-top: 0; }
.pick-row.on { background: var(--point-soft); }
.pick-row:focus-within { outline: 2px solid var(--point); outline-offset: -2px; }
.pick-row input { flex: none; width: 18px; height: 18px; margin: 5px 0 0; accent-color: var(--point); }
.pick-body b { display: block; font-size: 17px; }
.pick-body span { display: block; margin-top: 2px; color: var(--muted); font-size: 15.5px; line-height: 1.6; }

.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 5px 0 0; accent-color: var(--point); }

.tax-box { margin-top: 12px; padding-left: 16px; border-left: 3px solid var(--line); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.submit-row { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.submit-row .hint { margin: 12px 0 0; }
.cf-turnstile { margin-top: 24px; }

.quote-box { border: 1px solid var(--line); background: var(--tint); padding: 18px 18px 20px; }
.quote-box h2 { margin: 0 0 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 18px; }
.quote-tbl { width: 100%; border-collapse: collapse; font-size: 16px; }
.quote-tbl th { padding: 6px 0; text-align: left; font-weight: 400; color: var(--ink-2); vertical-align: top; }
.quote-tbl td { padding: 6px 0 6px 10px; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote-tbl tfoot tr:first-child th, .quote-tbl tfoot tr:first-child td { border-top: 1px solid var(--line); padding-top: 10px; }
.quote-tbl .q-discount td { color: var(--bad); }
.quote-tbl .q-total th, .quote-tbl .q-total td { font-size: 18px; font-weight: 700; color: var(--ink); }
.quote-empty { color: var(--muted); }
.q-only { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }
.quote-note { margin: 14px 0; font-size: 14.5px; color: var(--muted); line-height: 1.6; }

/* ── 접수 완료 ─────────────────────────────────────── */
.done-wrap { max-width: 780px; padding-top: 44px; padding-bottom: 60px; }
.done-wrap h2 { margin-top: 34px; font-size: 20px; }
.done-lead { margin-top: 16px; font-size: 17.5px; }
.done-no { font-size: 19px; letter-spacing: 0.02em; }
.tbl-quote tbody th { width: 60%; background: #fff; font-weight: 400; color: var(--ink-2); }
.tbl-quote .num { text-align: right; }
.tbl-quote .row-total th, .tbl-quote .row-total td { background: #e9edf1; font-weight: 700; font-size: 17.5px; }
.bank { margin-bottom: 8px; padding: 14px 16px; border: 1px solid var(--line); background: var(--tint); font-size: 19px; font-weight: 700; }
.done-contact { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-2); color: var(--ink-2); }
.done-back { margin-top: 10px; }

/* ── 약관 ──────────────────────────────────────────── */
.legal { max-width: 840px; padding-top: 40px; padding-bottom: 64px; }
.legal h1 { font-size: 28px; }
.legal-meta { margin: 10px 0 28px; padding-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 15.5px; }
.legal h2 { margin: 32px 0 8px; font-size: 20px; }
.legal p { margin-bottom: 10px; color: var(--ink-2); }
.legal ol, .legal ul { margin: 8px 0 14px; padding-left: 24px; color: var(--ink-2); }
.legal li { margin: 5px 0; }
.legal .tbl { margin-top: 10px; }

/* ── 좁은 화면 ─────────────────────────────────────── */
@media (max-width: 900px) {
  .apply-grid { grid-template-columns: 1fr; gap: 26px; }
  .apply-side { position: static; }
  /* 견적 상자가 폼 아래로 내려오므로, 금액을 확인하고 누르는 그 상자의 버튼 하나만 남긴다 */
  .submit-row .btn { display: none; }
  .submit-row { margin-top: 22px; padding-top: 18px; }
  .submit-row .hint { margin-top: 0; }
}
@media (max-width: 640px) {
  h1 { font-size: 26px; }
  h2 { font-size: 21px; }
  .lead { padding: 32px 0 30px; }
  .lead-text { font-size: 17px; }
  .block { padding: 32px 0; }
  .head-in { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 0; }
  .head-nav { gap: 18px; }
  .tbl th, .tbl td { padding: 9px 12px; font-size: 16px; }
  /* 좁은 화면에서는 표를 한 칸씩 쌓아 보여 준다(글자가 세로로 쪼개지지 않게). 견적표는 두 칸뿐이라 그대로 둔다. */
  .tbl:not(.tbl-quote) thead { display: none; }
  .tbl:not(.tbl-quote) tr { display: block; border: 1px solid var(--line); margin-bottom: -1px; }
  .tbl:not(.tbl-quote) th, .tbl:not(.tbl-quote) td {
    display: block; width: auto; border: 0; border-bottom: 1px solid var(--line-2);
  }
  .tbl:not(.tbl-quote) td:last-child { border-bottom: 0; }
  .tbl-price tbody th { font-size: 17px; }
  .tbl-price td.num { background: #fff; font-size: 17px; }
  .tbl-quote tbody th { width: 55%; }
  .theme-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
  .theme figcaption { font-size: 14px; }
  .theme figcaption b { font-size: 15px; }
  .btn { display: block; text-align: center; }
  .btn + .btn { margin: 10px 0 0; }
  .apply-head { padding-top: 30px; }
  .done-wrap { padding-top: 32px; }
}

/* ── 인쇄(견적서처럼 뽑아 볼 수 있게) ───────────────── */
@media print {
  body { font-size: 11pt; line-height: 1.6; }
  .site-head, .head-nav, .skip-link, .apply-side, .btn, .lead-btns, .form-notice { display: none; }
  .block, .lead { padding: 10px 0; border-top: 0; break-inside: avoid; }
  .block-tint, .block-end, .site-foot { background: transparent; }
  .site-foot { border-top: 1px solid #999; padding: 10px 0 0; }
  a { color: inherit; text-decoration: none; }
  .theme-grid { grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .tbl th, .tbl td { padding: 6px 8px; }
}
