/* 과외나루 — 딥네이비 · 따뜻한 흰색 · 청록 포인트. 정보 우선순위와 가독성 중심, 장식 최소. Pretendard 단일 서체. */
:root {
  --navy: #10243a;
  --navy-2: #1b3550;
  --teal: #0f7c74;
  --teal-dark: #0a5f59;
  --teal-soft: #e4f2f0;
  --paper: #fbfaf7;
  --white: #ffffff;
  --ink: #16222b;
  --text: #2f3d47;
  --muted: #65727b;
  --line: #e2e5e3;
  --line-strong: #c9ceca;
  --focus: #ffb703;
  --error: #b42318;
  --error-soft: #fdecea;
  --ok-soft: #e7f5ec;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", sans-serif;
  --r: 10px;
  --max: 1120px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--white); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; word-break: keep-all; overflow-wrap: anywhere; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
fieldset { padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
button, select, input, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { color: var(--navy); letter-spacing: -.02em; line-height: 1.3; font-weight: 700; }
small { font-size: .85em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--navy); color: #fff; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 820px; }
.muted { color: var(--muted); }
.note { font-size: 15px; color: var(--muted); border-left: 3px solid var(--line-strong); padding-left: 14px; margin-top: 22px; }
.more { font-weight: 700; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 8px; font-weight: 700; font-size: 16px; line-height: 1.2; text-align: center; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; text-decoration: none; }
.btn:hover { text-decoration: none; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 17px; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14.5px; }
.btn--primary { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn--primary:hover { background: var(--teal-dark); border-color: var(--teal-dark); }
.btn--line { background: #fff; color: var(--navy); border-color: var(--line-strong); }
.btn--line:hover { border-color: var(--navy); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.1); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- header ---------- */
.site-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.site-head__in { display: flex; align-items: center; gap: 24px; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; color: var(--navy); letter-spacing: -.03em; flex-shrink: 0; }
.logo:hover { text-decoration: none; }
.logo__mark { width: 30px; height: 30px; }
.logo--light { color: #fff; }
.gnb { display: flex; gap: 2px; margin-left: auto; }
.gnb a { padding: 8px 11px; border-radius: 6px; font-size: 15px; font-weight: 600; color: var(--text); }
.gnb a:hover { background: var(--paper); color: var(--navy); text-decoration: none; }
.site-head__cta { display: flex; gap: 8px; }
.menu-btn { display: none; width: 44px; height: 44px; margin-left: auto; border: 0; background: none; cursor: pointer; padding: 11px 10px; flex-direction: column; justify-content: space-between; }
.menu-btn span { display: block; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 64px 0 60px; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { color: var(--teal-dark); font-weight: 700; font-size: 14px; letter-spacing: .04em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; line-height: 1.3; letter-spacing: -.035em; margin-bottom: 18px; }
.hero__sub { font-size: 18px; max-width: 540px; margin-bottom: 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { margin-top: 30px; display: grid; gap: 8px; font-size: 15px; color: var(--text); }
.hero__facts li { position: relative; padding-left: 20px; }
.hero__facts li::before { content: ""; position: absolute; left: 0; top: .65em; width: 9px; height: 9px; border-radius: 50%; background: var(--teal); }
.hero__figure img { border-radius: 14px; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero__figure figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; }

/* ---------- sections ---------- */
.sec { padding: 80px 0; border-bottom: 1px solid var(--line); }
.sec--tint { background: var(--paper); }
.h2 { font-size: clamp(25px, 2.8vw, 32px); font-weight: 800; letter-spacing: -.03em; margin-bottom: 14px; }
.sec__lead { color: var(--muted); max-width: 680px; margin-bottom: 36px; font-size: 16.5px; }
.h2 + .dl, .h2 + .steps, .h2 + .post-list, .h2 + .faq { margin-top: 32px; }

/* ② 찾기 표 */
.find-wrap, .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.find { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; border: 1px solid var(--line); }
.find th, .find td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.find thead th { background: var(--navy); color: #fff; font-weight: 700; font-size: 15px; }
.find thead th a { color: #fff; display: block; }
.find thead th small { display: block; font-weight: 500; color: rgba(255,255,255,.7); font-size: 12.5px; }
.find tbody th { font-weight: 800; color: var(--navy); width: 34%; font-size: 17px; background: var(--paper); }
.find tbody th small { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 2px; }
.find tbody td a { display: inline-block; padding: 9px 14px; border: 1.5px solid var(--line-strong); border-radius: 8px; font-weight: 700; color: var(--navy); background: #fff; }
.find tbody td a:hover { border-color: var(--teal); color: var(--teal-dark); text-decoration: none; }

/* ③ 고민 */
.concerns { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.concerns li { padding: 24px 0; border-top: 1px solid var(--line); }
.concerns h3 { font-size: 18px; margin-bottom: 8px; }
.concerns p { font-size: 15.5px; margin-bottom: 8px; }
.concerns a { font-weight: 700; font-size: 15px; }

/* ④⑤ 정의 목록 */
.dl { border-top: 1px solid var(--line); }
.dl__row { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.dl dt { font-weight: 800; color: var(--navy); font-size: 17px; line-height: 1.4; }
.dl dd { font-size: 16px; }

/* ⑥ 비교표 */
.compare { width: 100%; border-collapse: collapse; min-width: 600px; background: #fff; border: 1px solid var(--line); font-size: 15.5px; }
.compare th, .compare td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--navy); color: #fff; font-size: 16px; }
.compare tbody th { background: var(--paper); font-weight: 800; color: var(--navy); width: 18%; }
.compare a { font-weight: 700; }

/* ⑦ 단계 */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: s; }
.steps li { position: relative; padding-top: 14px; border-top: 3px solid var(--teal); }
.step__no { display: inline-block; font-weight: 800; color: var(--teal-dark); font-size: 14px; letter-spacing: .06em; margin-bottom: 8px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { font-size: 15.5px; }

/* 글 목록 */
.post-list li { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.post-list li a { font-weight: 700; color: var(--navy); font-size: 16.5px; }
.post-list li span { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.post-list li p { grid-column: 1 / -1; font-size: 14.5px; color: var(--muted); }
.post-list--full li { padding: 18px 0; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.qa { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; gap: 12px; padding: 18px 0; font-weight: 700; color: var(--navy); font-size: 17px; line-height: 1.45; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::before { content: "Q"; flex-shrink: 0; color: var(--teal-dark); font-weight: 800; }
.qa summary::after { content: "+"; margin-left: auto; color: var(--muted); font-size: 22px; line-height: 1; font-weight: 300; transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa__a { padding: 0 0 20px 26px; }
.qa__a p { font-size: 16px; }

/* ⑨ 신청 */
.apply-sec { border-bottom: 0; }
.apply-sec__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
.h2--left { text-align: left; }
.apply-sec__text p { margin-bottom: 14px; }
.apply { display: grid; gap: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.apply__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-wrap { display: grid; gap: 7px; }
.field-wrap label, .field-wrap legend { font-weight: 700; font-size: 15px; color: var(--navy); }
.field-wrap b { color: var(--error); font-weight: 700; }
.field-wrap small { font-weight: 500; color: var(--muted); }
.field { width: 100%; min-height: 50px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 16px; }
textarea.field { min-height: 92px; resize: vertical; }
.field:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-soft); }
.field[aria-invalid="true"] { border-color: var(--error); }
.chks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.chk { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border: 1.5px solid var(--line-strong); border-radius: 8px; background: #fff; font-size: 15.5px; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--teal); margin: 0; }
.chk:has(input:checked) { border-color: var(--teal); background: var(--teal-soft); }
.chk--agree { border: 0; padding: 0; background: none; align-items: flex-start; font-size: 15px; }
.chk--agree input { margin-top: 4px; }
.apply__privacy { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.apply__error { background: var(--error-soft); color: var(--error); padding: 12px 14px; border-radius: 8px; font-size: 15px; font-weight: 600; }
.apply__submit { width: 100%; }
.apply__alt { font-size: 14px; color: var(--muted); }
.apply__done { background: var(--ok-soft); border: 1px solid #b9dfc6; border-radius: 14px; padding: 28px; }
.apply__done h3 { font-size: 21px; margin-bottom: 8px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- CTA box (서브 페이지 하단) ---------- */
.cta-box { display: grid; grid-template-columns: 1.3fr 1fr; gap: 28px; align-items: center; background: var(--navy); color: #d9e2ea; border-radius: 14px; padding: 32px; margin-top: 48px; }
.cta-box h2 { color: #fff; font-size: 23px; margin: 0 0 8px; padding: 0; border: 0; }
.cta-box p { font-size: 15.5px; }
.cta-box__price { color: #9fb3c3; font-size: 14px; margin-top: 8px; }
.cta-box__actions { display: grid; gap: 10px; }
.cta-box .btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.cta-box .btn--line:hover { background: rgba(255,255,255,.08); }

/* ---------- footer ---------- */
.site-foot { background: var(--navy); color: #b4c2cf; font-size: 14.5px; padding: 56px 0 0; }
.site-foot a { color: inherit; }
.site-foot a:hover { color: #fff; }
.site-foot__in { display: flex; gap: 56px; justify-content: space-between; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.12); }
.site-foot__brand { max-width: 360px; }
.site-foot__brand p { margin-top: 14px; line-height: 1.7; }
.site-foot__tel a:first-child { color: #fff; font-size: 20px; font-weight: 800; }
.site-foot__cols { display: flex; gap: 56px; flex-shrink: 0; }
.site-foot h2 { color: #fff; font-size: 15px; margin-bottom: 12px; }
.site-foot li + li { margin-top: 8px; }
.site-foot__bottom { padding: 20px 20px 28px; font-size: 13px; color: #7f93a3; }

/* mobile quick bar */
.quickbar { display: none; }

/* ---------- sub pages ---------- */
.page { padding: 40px 20px 88px; }
.page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; }
.page__main { min-width: 0; }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { font-weight: 600; }
.page__main h1 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; margin-bottom: 16px; letter-spacing: -.035em; }
.page__main h1 .muted { font-size: .55em; font-weight: 600; margin-left: 6px; }
.page__main .lead { font-size: 18px; color: var(--text); margin-bottom: 8px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.page__main h2 { font-size: 23px; font-weight: 800; margin: 44px 0 14px; padding-top: 24px; border-top: 1px solid var(--line); }
.page__main h2:first-of-type { border-top: 0; padding-top: 0; }
.page__main > p { margin-bottom: 14px; }
.page__main p.example { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.plain { display: grid; gap: 8px; margin: 4px 0 8px; }
.plain li { position: relative; padding: 4px 0 4px 24px; font-size: 16.5px; }
.plain li::before { content: ""; position: absolute; left: 4px; top: .85em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.subject-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.subject-list li a { font-weight: 800; font-size: 18px; color: var(--navy); }
.subject-list li p { font-size: 15px; color: var(--muted); margin-top: 4px; }
.post-meta { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* blog post body */
.post { font-size: 17px; line-height: 1.85; }
.post h2 { font-size: 22px; }
.post h3 { font-size: 18.5px; margin: 28px 0 10px; }
.post p { margin-bottom: 16px; }
.post ul, .post ol { padding-left: 22px; margin-bottom: 16px; list-style: disc; }
.post ol { list-style: decimal; }
.post li { margin-bottom: 6px; }
.post strong { color: var(--navy); }
.post a { text-decoration: underline; text-underline-offset: .15em; }
.post table { width: 100%; border-collapse: collapse; margin: 20px 0; font-size: 15px; display: block; overflow-x: auto; }
.post th, .post td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.post th { background: var(--paper); color: var(--navy); }
.post blockquote { margin: 20px 0; padding: 14px 20px; background: var(--paper); border-left: 3px solid var(--teal); }

/* aside */
.page__aside { position: sticky; top: 88px; display: grid; gap: 16px; }
.aside-card { background: var(--navy); color: #d9e2ea; border-radius: 14px; padding: 26px 24px; display: grid; gap: 10px; }
.aside-card h2 { color: #fff; font-size: 20px; margin: 0; padding: 0; border: 0; }
.aside-card p { font-size: 15px; }
.aside-card .btn { width: 100%; }
.aside-card__note { font-size: 13px; color: #9fb3c3; }
.aside-links { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; }
.aside-links h2 { font-size: 15px; margin: 0 0 8px; padding: 0; border: 0; }
.aside-links li a { display: block; padding: 8px 0; font-size: 15px; border-bottom: 1px dashed var(--line); color: var(--text); }
.aside-links li:last-child a { border-bottom: 0; }
.aside-links li a:hover { color: var(--teal-dark); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .gnb a { padding: 8px 8px; font-size: 14px; }
  .site-head__cta .btn--line { display: none; }
}
@media (max-width: 900px) {
  .menu-btn { display: flex; }
  .site-head__cta { display: none; }
  .gnb { display: none; position: absolute; top: 66px; left: 0; right: 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(16,36,58,.12); padding: 6px 20px 14px; }
  .menu-open .gnb { display: flex; }
  .gnb a { padding: 14px 4px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .hero { padding: 40px 0 44px; }
  .hero__grid, .apply-sec__grid, .page__grid, .cta-box { grid-template-columns: 1fr; }
  .hero__grid { gap: 28px; }
  .concerns { grid-template-columns: 1fr; }
  .dl__row { grid-template-columns: 1fr; gap: 6px; padding: 18px 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .site-foot__in { flex-direction: column; gap: 32px; }
  .site-foot__cols { gap: 32px; flex-wrap: wrap; }
  .page__aside { position: static; }
  .sec { padding: 60px 0; }
}
@media (max-width: 640px) {
  body { font-size: 16.5px; padding-bottom: 64px; }
  .hero h1 { font-size: 28px; }
  .hero__sub { font-size: 16.5px; }
  .cta .btn { flex: 1 1 100%; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .apply { padding: 20px 16px; }
  .apply__grid { grid-template-columns: 1fr; }
  .cta-box { padding: 24px 20px; }
  .page { padding-top: 24px; }
  .page__main h2 { font-size: 21px; }
  .qa summary { font-size: 16px; }
  /* 표 → 세로 배치 (가로 스크롤 없이) */
  .find, .find tbody, .find tr, .find th, .find td { display: block; min-width: 0; }
  .find thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .find tr { padding: 14px 0 6px; border-bottom: 1px solid var(--line); }
  .find tbody th { width: auto; background: none; padding: 0 0 8px; border: 0; }
  .find td { display: inline-block; padding: 0 8px 8px 0; border: 0; }
  .find td a { padding: 8px 12px; font-size: 15px; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; min-width: 0; }
  .compare thead { display: none; }
  .compare tr { border-bottom: 1px solid var(--line); padding: 6px 0; }
  .compare tbody th { width: auto; background: none; padding: 10px 0 2px; border: 0; }
  .compare td { padding: 6px 0 6px 0; border: 0; }
  .compare td::before { content: attr(data-label) " · "; font-weight: 700; color: var(--teal-dark); }
  .quickbar { display: grid; grid-template-columns: 1fr 1.7fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 58px; border-top: 1px solid var(--line); background: #fff; transition: transform .2s; }
  .quickbar a { display: grid; place-items: center; font-weight: 800; font-size: 15.5px; color: var(--navy); }
  .quickbar .quickbar__main { background: var(--teal); color: #fff; }
  .quickbar.is-hidden { transform: translateY(100%); }
  .apply, .apply__done { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
@media print {
  .site-head, .quickbar, .site-foot, .page__aside, .cta-box { display: none; }
}
