/* 공통 레이아웃 – 테마별 룩은 flat.css / material.css / fluent.css 에서 정의 */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font, "Pretendard Variable", Pretendard, system-ui, sans-serif);
  color: var(--text); background: var(--bg); line-height: 1.6; word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }

/* 공지 */
.notice { background: var(--notice-bg, var(--primary)); color: var(--notice-fg, #fff); font-size: 14px; text-align: center; padding: 8px 0; font-weight: 600; }

/* 네비게이션 */
.nav { position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; text-decoration: none; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 6px; font-weight: 800; font-size: 16px; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) { padding: 8px 14px; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: currentColor; margin: 5px 0; transition: .2s; }

@media (max-width: 820px) {
  .nav-toggle { display: block; color: inherit; }
  .nav-links {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    padding: 12px 20px 20px; gap: 4px; display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a:not(.btn) { padding: 12px 8px; }
}

/* 버튼 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; font: inherit; font-weight: 700; font-size: 15px;
  text-decoration: none; cursor: pointer; border: 2px solid transparent;
  position: relative; overflow: hidden; transition: background .18s, color .18s, box-shadow .18s, transform .18s, border-color .18s;
}
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus, var(--primary)); outline-offset: 2px;
}

/* 히어로 */
.hero { padding: 72px 0 80px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-weight: 700; font-size: 14px; margin-bottom: 16px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; letter-spacing: -0.02em; }
.lead { font-size: 18px; max-width: 560px; opacity: .92; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; aspect-ratio: 1; max-width: 380px; width: 100%; justify-self: center; }
.art-shape { position: absolute; }
.art-symbol { position: absolute; inset: 0; display: grid; place-items: center; font-size: clamp(64px, 10vw, 120px); font-weight: 800; }
@media (max-width: 820px) {
  .hero { padding: 48px 0 56px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { max-width: 240px; order: -1; }
}

/* 섹션 */
.section { padding: 80px 0; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); text-align: center; margin-bottom: 40px; font-weight: 800; letter-spacing: -0.01em; }
.section-title.left { text-align: left; margin-bottom: 12px; }
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } .section { padding: 56px 0; } }

.card { padding: 28px; position: relative; }
.card h3 { font-size: 19px; }
.card p { margin: 0; opacity: .85; }

.feature-icon { font-size: 30px; width: 56px; height: 56px; display: grid; place-items: center; margin-bottom: 16px; }

.course { display: flex; flex-direction: column; gap: 10px; }
.course p { flex: 1; }
.course .price { font-weight: 800; font-size: 18px; margin: 6px 0 8px; }
.chip { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 4px 12px; }

.tutor { display: flex; gap: 20px; align-items: flex-start; }
.tutor small { font-size: 13px; font-weight: 600; opacity: .7; margin-left: 6px; }
.avatar { flex: none; width: 64px; height: 64px; display: grid; place-items: center; font-size: 24px; font-weight: 800; }

.faq-list { display: grid; gap: 12px; }
.faq { padding: 0; }
.faq summary { padding: 20px 24px; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 24px 20px; }

/* 상담 폼 */
.apply { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 860px) { .apply { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 16px; }
.contact-list b { width: 80px; flex: none; }
.apply-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; font-size: 14px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 480px) { .field-row { grid-template-columns: 1fr; } }
input, select, textarea { font: inherit; font-size: 16px; padding: 12px 14px; width: 100%; color: inherit; background: var(--input-bg, #fff); }
textarea { resize: vertical; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.agree input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: var(--primary); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-weight: 600; min-height: 1.4em; }
.form-msg.err { color: #c62828; }
.form-msg.ok { color: #2e7d32; }

/* 푸터 */
.footer { padding: 40px 0; font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.footer small { flex-basis: 100%; opacity: .7; }

/* FAB / 토스트 */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: grid; place-items: center; width: 60px; height: 60px; font-weight: 800; font-size: 14px; text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; z-index: 70; padding: 14px 22px; font-weight: 600; transition: .25s; max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* 점검 페이지 */
body.maintenance { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.maint { max-width: 480px; text-align: center; padding: 48px 32px; }
.brand-mark.big { min-width: 80px; height: 80px; font-size: 32px; margin-bottom: 20px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
