:root {
  --navy: #191842; --navy-2: #23225a; --royal: #13017b;
  --gold: #f6e068; --gold-deep: #c99c3a; --gold-soft: #fbf3cf;
  --ivory: #faf8f1; --ink: #14132f; --text: #3a3956; --muted: #6b6a85; --line: #e6e3d6; --bg: #faf8f1;
  --danger: #c62828; --ok: #15803d; --radius: 14px;
  --shadow: 0 10px 30px rgba(25, 24, 66, 0.10);
  --display: "Jua", "Noto Sans KR", sans-serif;
  --serif: "Cinzel", "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: var(--text); background: var(--bg); line-height: 1.65; -webkit-font-smoothing: antialiased; word-break: keep-all; }
img { max-width: 100%; height: auto; }
a { color: var(--royal); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* 헤더: 네이비 + 노란 테두리 */
.site-header { position: sticky; top: 0; z-index: 60; background: var(--navy); box-shadow: inset 0 0 0 3px var(--gold); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 25px; color: var(--gold); }
.brand:hover { text-decoration: none; }
.brand-text { display: inline-flex; align-items: baseline; line-height: 1; font-size: 1.22em; }
.brand-text small { font-size: .62em; margin-right: 2px; }
.nav { display: flex; gap: 6px; margin-inline: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--gold); font-weight: 500; font-size: 15px; }
.nav a:hover { background: rgba(246,224,104,.14); color: #fff3a8; text-decoration: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.tel-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: rgba(246,224,104,.14); color: var(--gold); font-weight: 700; font-size: 14px; }
.tel-pill:hover { text-decoration: none; background: rgba(246,224,104,.24); }
.menu-btn { display: none; width: 42px; height: 42px; border: 0; border-radius: 12px; background: rgba(246,224,104,.14); cursor: pointer; padding: 0; position: relative; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 2.5px; background: var(--gold); border-radius: 2px; transition: transform .2s, opacity .2s, top .2s; }
.menu-btn span:nth-child(1) { top: 14px; } .menu-btn span:nth-child(2) { top: 20px; } .menu-btn span:nth-child(3) { top: 26px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* 버튼 */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; transition: background .15s, color .15s, transform .05s, box-shadow .15s, border-color .15s; }
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: var(--gold); }
.btn-primary:hover { background: var(--navy-2); box-shadow: 0 4px 14px rgba(25,24,66,.3); }
.btn-primary:disabled { background: #8a89a8; color: #e8e8ef; cursor: not-allowed; box-shadow: none; }
.btn-gold { background: linear-gradient(135deg, var(--gold), #e3bf4c); color: var(--navy); }
.btn-gold:hover { box-shadow: 0 6px 20px rgba(246,224,104,.35); }
.btn-ghost { border-color: rgba(246,224,104,.6); color: var(--gold); background: transparent; }
.btn-ghost:hover { background: rgba(246,224,104,.12); }
.btn-sm { padding: 9px 18px; font-size: 14px; }
.btn-block { width: 100%; padding: 15px; font-size: 16px; }
.btn-outline { border-color: var(--line); color: var(--ink); background: #fff; font-weight: 500; font-size: 14px; }
.btn-outline:hover { border-color: var(--gold-deep); color: var(--royal); }
.btn[hidden] { display: none; }

/* 히어로 */
.hero { position: relative; overflow: hidden; padding: 52px 0 112px; text-align: center; color: #fff; --hero-fs: clamp(40px, 8vw, 76px);
  background: radial-gradient(900px 420px at 50% -10%, rgba(246,224,104,.14), transparent 60%), linear-gradient(180deg, var(--navy) 0%, #14133a 100%); }
.hero-mark { position: absolute; right: -110px; bottom: -150px; width: 520px; opacity: .06; pointer-events: none; user-select: none; }
.hero-inner { position: relative; }
.hero-badge { display: inline-block; margin-bottom: 22px; padding: 4px 20px; border: 1px solid rgba(246,224,104,.5); border-radius: 999px; font-size: 14px; letter-spacing: 3px; color: #fff; }
.hero-brand { display: grid; grid-template-columns: auto auto; justify-content: center; align-items: center; column-gap: calc(var(--hero-fs) * .28); }
.hero-brand-text { display: contents; }
.hero-logo { grid-column: 1; grid-row: 1; width: calc(var(--hero-fs) * 1.05); height: calc(var(--hero-fs) * 1.05); filter: drop-shadow(0 6px 18px rgba(0,0,0,.35)); }
.hero-title { margin: 0; white-space: nowrap; font-family: var(--display); font-weight: 400; font-size: var(--hero-fs); line-height: 1.1; grid-column: 2; grid-row: 1; text-align: left; color: var(--gold); letter-spacing: 2px; text-shadow: 0 3px 0 rgba(0,0,0,.25); }
.hero-title small { font-size: .62em; margin-right: 4px; }
.hero-en { margin: 8px 0 0; white-space: nowrap; grid-column: 2; grid-row: 2; justify-self: start; text-align: left; font-family: var(--serif); font-weight: 600; font-size: max(10px, calc(var(--hero-fs) * .27)); letter-spacing: calc(var(--hero-fs) * .15); color: var(--gold); }
.hero-lead { margin: 26px auto 0; max-width: 760px; font-size: clamp(16px, 2.2vw, 19px); color: #dedcf0; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* 특징 카드 (네이비 경계에 걸침) */
.features { position: relative; margin-top: -78px; z-index: 2; }
.feature-grid, .step-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; text-align: center; margin: 0; padding: 0; list-style: none; }
.feature-card, .reason-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 18px; border-top: 3px solid var(--gold-deep); }
.feature-card h3, .reason-card h3 { margin: 14px 0 6px; font-family: var(--display); font-weight: 400; font-size: 21px; color: var(--navy); }
.feature-card p, .reason-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.icon-circle { width: 58px; height: 58px; margin-inline: auto; border-radius: 50%; display: grid; place-items: center; font-size: 24px; background: linear-gradient(135deg, var(--navy-2), var(--navy)); box-shadow: 0 0 0 4px var(--gold-soft); }
.step-no { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto; border-radius: 50%; font-family: var(--serif); font-size: 22px; color: var(--gold); background: linear-gradient(135deg, var(--navy-2), var(--navy)); box-shadow: 0 0 0 4px var(--gold-soft); }

/* 소개 */
.partner { padding: 84px 0 64px; }
.partner-inner { display: grid; grid-template-columns: 1.3fr 1fr; gap: 44px; align-items: center; }
.partner-text h2 { margin: 10px 0 16px; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4.2vw, 38px); color: var(--navy); line-height: 1.35; }
.partner-text p { margin: 0 0 18px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 30px; color: var(--ink); font-weight: 500; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12.5 4 4 8-9' fill='none' stroke='%23f6e068' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/78% no-repeat; }
.eyebrow { display: inline-block; font-family: var(--serif); font-weight: 600; font-size: 13px; letter-spacing: 4px; color: var(--gold-deep); }

.office-card { position: relative; overflow: hidden; background: linear-gradient(145deg, var(--navy-2), var(--navy)); color: #fff; border-radius: 18px; padding: 30px; box-shadow: var(--shadow); border: 1px solid rgba(246,224,104,.35); }
.office-card::after { content: ""; position: absolute; right: -44px; bottom: -78px; width: 250px; aspect-ratio: 1; background: url("/logo-header.svg") center / contain no-repeat; opacity: .06; pointer-events: none; }
.office-card > * { position: relative; z-index: 1; }
.office-card-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid rgba(246,224,104,.25); }
.office-card-head strong { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; color: var(--gold); }
.office-card-head span { display: block; font-family: var(--serif); font-weight: 600; font-size: 11px; letter-spacing: 3px; color: var(--gold); }
.office-info { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.office-info a { color: #fff; }

/* 섹션 공통 */
.section { padding: 84px 0; }
.section-ivory { background: var(--ivory); }
.section-navy { background: linear-gradient(180deg, var(--navy) 0%, #14133a 100%); color: #fff; padding-bottom: 120px; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head h2 { margin: 10px 0 12px; font-family: var(--display); font-weight: 400; font-size: clamp(28px, 4.2vw, 38px); color: var(--navy); line-height: 1.3; }
.section-head p { margin: 0; color: var(--muted); }
.section-navy .section-head h2, .section-navy .eyebrow { color: var(--gold); }
.section-navy .section-head p { color: #cfcde8; }
.section-head .eyebrow::before, .section-head .eyebrow::after { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; vertical-align: middle; margin: 0 12px; opacity: .7; }
.reasons { background: linear-gradient(to bottom, transparent 78px, var(--ivory) 78px); }
.reasons + .section { padding-top: 84px; }

/* 과목 */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.service-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: relative; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.service-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--gold), var(--gold-deep)); }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: #e1d6a8; }
.service-card h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 400; font-size: 23px; color: var(--navy); }
.service-desc { margin: 0 0 14px; color: var(--muted); font-size: 14.5px; }
.service-card ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.service-card li { position: relative; padding-left: 18px; font-size: 15px; color: var(--ink); }
.service-card li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold-deep); }
.level-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.level { padding: 9px 24px; border-radius: 999px; background: var(--navy); border: 1px solid var(--gold-deep); color: var(--gold); font-weight: 700; font-size: 14.5px; }

/* 상담 */
.contact-layout { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
.apply-intro { padding: 36px 32px; }
.apply-intro h2 { margin: 10px 0 12px; font-family: var(--display); font-weight: 400; font-size: 30px; color: var(--gold); line-height: 1.3; }
.apply-intro .eyebrow { color: var(--gold); }
.apply-intro p { color: #dedcf0; margin: 0 0 20px; }
.big-tel { display: block; margin-bottom: 14px; padding: 18px 22px; border-radius: 14px; background: rgba(246,224,104,.1); border: 1px solid rgba(246,224,104,.45); color: #fff; }
.big-tel:hover { text-decoration: none; background: rgba(246,224,104,.18); }
.big-tel small { display: block; color: #cfcde8; font-weight: 500; font-size: 13px; }
.big-tel strong { font-family: var(--display); font-weight: 400; font-size: 34px; color: var(--gold); letter-spacing: 1px; }
.apply-intro .hours { margin: 18px 0 0; color: #fff; font-weight: 500; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 32px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 18px; font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--navy); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-row { margin-bottom: 16px; }
.form-row label, .form-row legend { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; color: var(--ink); padding: 0; }
.req { color: var(--danger); }
.form-row input, .form-row select, .form-row textarea { width: 100%; padding: 12px 14px; font: inherit; font-size: 15px; color: var(--ink); background: #fff; border: 1px solid #cfccdd; border-radius: 10px; }
.form-row textarea { resize: vertical; min-height: 100px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: 3px solid rgba(201,156,58,.35); border-color: var(--gold-deep); }
.form-row .invalid, .invalid { border-color: var(--danger) !important; }
.subjects-field { border: 0; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.subjects-field legend { width: 100%; }
.check { position: relative; cursor: pointer; margin: 0 !important; display: inline-block !important; }
.check input { position: absolute; opacity: 0; width: auto !important; }
.check span { display: inline-block; padding: 8px 18px; border-radius: 999px; border: 1px solid #cfccdd; background: #fff; font-weight: 700; color: var(--text); transition: all .15s; }
.check input:checked + span { background: var(--navy); border-color: var(--gold-deep); color: var(--gold); }
.check input:focus-visible + span { box-shadow: 0 0 0 4px rgba(201,156,58,.35); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 22px; margin: 14px 0 0; font-size: 14.5px; font-weight: 500; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--danger); }
.privacy-note { margin: 10px 0 0; font-size: 12.5px; color: var(--muted); }

.info-list { margin: 0; display: grid; gap: 14px; }
.info-list > div { display: grid; grid-template-columns: 84px 1fr; gap: 10px; }
.info-list dt { color: var(--gold-deep); font-size: 14px; font-weight: 700; }
.info-list dd { margin: 0; color: var(--ink); }
.info-list a { color: var(--royal); font-weight: 500; }
.map-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.location-card { max-width: 720px; margin-inline: auto; }

/* 푸터 */
.site-footer { background: var(--navy); color: #cfcde8; padding: 36px 0; font-size: 14px; border-top: 3px solid var(--gold-deep); }
.footer-inner { display: flex; align-items: center; gap: 18px; }
.footer-text { display: grid; gap: 4px; }
.footer-text strong { font-family: var(--display); font-weight: 400; color: var(--gold); font-size: 20px; }
.footer-text small { color: #9d9bbd; }

@media (max-width: 960px) {
  .feature-grid, .step-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid { grid-template-columns: 1fr; }
  .partner-inner, .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 72px; margin: 0; display: none; flex-direction: column; gap: 2px; padding: 12px 16px 16px; background: var(--navy); border-bottom: 3px solid var(--gold); box-shadow: 0 14px 24px rgba(25,24,66,.25); }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 16px; }
  .tel-pill span { display: none; }
  .tel-pill { padding: 10px; }
}
@media (max-width: 720px) {
  .header-inner { height: 64px; }
  .nav { top: 64px; }
  .hero { padding: 36px 0 96px; }
  .features { margin-top: -64px; }
  .section { padding: 56px 0; }
  .partner { padding: 56px 0 40px; }
  .section-navy { padding-bottom: 96px; }
  .reasons { background: linear-gradient(to bottom, transparent 64px, var(--ivory) 64px); }
  .reasons + .section { padding-top: 56px; }
  .card { padding: 22px; }
  .section-head .eyebrow::before, .section-head .eyebrow::after { width: 16px; margin: 0 8px; }
}
@media (max-width: 440px) {
  .header-actions .btn-sm { display: none; }
  .feature-grid, .step-grid, .form-grid { grid-template-columns: 1fr; }
  .info-list > div { grid-template-columns: 1fr; gap: 2px; }
  .hero-cta .btn { width: 100%; }
  .big-tel strong { font-size: 28px; }
  .brand { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

