:root {
  --ink: #0e1a33;
  --ink-2: #1b2a4a;
  --red: #c8102e;
  --red-d: #a10d25;
  --blue: #0047a0;
  --gold: #d4a63a;
  --paper: #f7f5f0;
  --line: #e4e0d6;
  --text: #1c2233;
  --muted: #5f6676;
  --radius: 14px;
  --display: 'Black Han Sans', 'Noto Sans KR', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: 'Noto Sans KR', system-ui, sans-serif; color: var(--text); background: #fff; line-height: 1.65; word-break: keep-all; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { width: min(1120px, 100% - 32px); margin: 0 auto; }
.muted { color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ink); color: #fff; font-family: var(--display); font-size: 20px; letter-spacing: -1px; flex: none; box-shadow: inset 0 -4px 0 var(--red); }
.logo-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.logo-text b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-text small { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--red); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 12px; font: 600 13px inherit; font-family: inherit; cursor: pointer; }
.menu { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; flex-direction: column; justify-content: center; gap: 6px; padding: 8px; }
.menu span { display: block; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 13px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit; transition: background .15s, transform .15s; }
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-d); }
.btn-red:disabled { opacity: .6; cursor: wait; }
.btn-ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn-line { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--ink); color: #fff; padding: 96px 0 84px; }
.hero-art { position: absolute; inset: 0; pointer-events: none; }
.ring { position: absolute; border-radius: 50%; }
.r1 { width: 560px; height: 560px; right: -140px; top: -120px; background: conic-gradient(from 200deg, var(--red) 0 50%, var(--blue) 50% 100%); opacity: .22; }
.r2 { width: 300px; height: 300px; right: 0; top: 10px; border: 2px solid rgba(255,255,255,.14); }
.slash { position: absolute; left: -10%; bottom: -60px; width: 120%; height: 120px; background: var(--paper); transform: rotate(-3deg); }
.hero-in { position: relative; }
.eyebrow { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; background: rgba(212,166,58,.16); color: var(--gold); font-weight: 700; font-size: 14px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(40px, 7vw, 76px); line-height: 1.12; margin: 0 0 20px; letter-spacing: -1px; }
.lead { max-width: 560px; font-size: 18px; color: rgba(255,255,255,.82); margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 40px; }
.badges li { padding: 8px 14px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 14px; }

/* sections */
.section { padding: 88px 0; }
.section.tint { background: var(--paper); }
.about { background: var(--paper); padding-top: 40px; }
.section.dark { background: var(--ink); color: #fff; }
.two { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: start; }
.h2 { font-family: var(--display); font-weight: 400; font-size: clamp(30px, 4.2vw, 44px); line-height: 1.2; margin: 0 0 18px; color: var(--ink); letter-spacing: -.5px; }
.dark .h2 { color: #fff; }
.kicker { margin: 0 0 6px; color: var(--red); font-weight: 700; font-size: 14px; letter-spacing: .5px; }
.intro { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 36px; }
.prose p { margin: 0 0 14px; font-size: 17px; }

/* focus */
.focus-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.focus-card { position: relative; padding: 32px 28px; border-radius: var(--radius); background: var(--ink); color: #fff; overflow: hidden; }
.focus-card::after { content: ''; position: absolute; left: 0; bottom: 0; width: 100%; height: 5px; background: var(--red); }
.focus-card:nth-child(2)::after { background: var(--blue); }
.focus-card:nth-child(3)::after { background: var(--gold); }
.focus-card .num { font-family: var(--display); font-size: 15px; color: var(--gold); }
.focus-card h3 { font-family: var(--display); font-weight: 400; font-size: 34px; margin: 6px 0 12px; }
.focus-card p { margin: 0; color: rgba(255,255,255,.8); }

/* programs */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card h3 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); }

/* levels */
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.level { padding: 24px; border-radius: var(--radius); background: #fff; border-top: 4px solid var(--ink); }
.level h3 { margin: 0; font-size: 20px; }
.level .tag { margin: 2px 0 10px; color: var(--red); font-weight: 700; font-size: 14px; }
.level p:last-child { margin: 0; color: var(--muted); font-size: 15px; }

/* schedule */
.timetable { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.timetable li { display: grid; grid-template-columns: 64px 1fr 1fr; gap: 12px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.timetable li:last-child { border-bottom: 0; background: var(--paper); }
.timetable b { font-family: var(--display); font-weight: 400; font-size: 20px; color: var(--red); }
.timetable .time { font-weight: 700; font-variant-numeric: tabular-nums; }
.timetable .who { color: var(--muted); font-size: 15px; }

/* master */
.master { display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; }
.master-photo { width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--red); font-family: var(--display); font-size: 40px; margin-bottom: 20px; }
.master-role { color: var(--gold); font-weight: 700; margin: -8px 0 20px; }
blockquote { margin: 0; padding-left: 18px; border-left: 3px solid var(--red); color: rgba(255,255,255,.85); font-size: 17px; }
.master-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.master-lists h3 { margin: 0 0 12px; font-size: 16px; color: var(--gold); }
.master-lists ul { margin: 0; padding: 0; list-style: none; }
.master-lists li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.1); font-size: 15px; color: rgba(255,255,255,.88); }

/* exams */
.exam { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: center; }
.belt { display: grid; gap: 8px; }
.belt span { height: 18px; border-radius: 4px; }
.belt span:nth-child(1) { background: #f1efe9; border: 1px solid var(--line); }
.belt span:nth-child(2) { background: #f2c94c; }
.belt span:nth-child(3) { background: #3aa76d; }
.belt span:nth-child(4) { background: var(--blue); }
.belt span:nth-child(5) { background: linear-gradient(90deg, var(--red) 50%, #111 50%); }
.exam .intro { margin: 0; }

/* notices */
.notices { display: grid; gap: 10px; }
.notice { background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.notice summary { display: flex; align-items: center; gap: 10px; padding: 16px 20px; cursor: pointer; list-style: none; }
.notice summary::-webkit-details-marker { display: none; }
.notice summary b { flex: 1; }
.notice time { color: var(--muted); font-size: 14px; }
.pin { background: var(--red); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.notice-body { padding: 0 20px 18px; color: var(--muted); }

/* contact */
.info { display: grid; grid-template-columns: 90px 1fr; gap: 12px 16px; margin: 0 0 28px; }
.info dt { color: var(--muted); font-weight: 500; }
.info dd { margin: 0; font-weight: 500; }
.info a { color: var(--red); font-weight: 700; text-decoration: none; font-size: 20px; }
.links { display: flex; flex-wrap: wrap; gap: 10px; }
.form { display: grid; gap: 14px; padding: 30px; border-radius: var(--radius); background: var(--paper); }
.form h3 { margin: 0 0 4px; font-size: 22px; }
.form label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.form input, .form select, .form textarea { font: inherit; font-size: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--blue); outline-offset: 0; border-color: transparent; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; }
.form-msg { margin: 0; min-height: 1.4em; font-weight: 500; }
.form-msg.good { color: #1f7a4a; }
.form-msg.bad { color: var(--red); }

/* footer */
.foot { background: var(--ink); color: rgba(255,255,255,.7); padding: 32px 0; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot b { color: #fff; }
.foot a { color: rgba(255,255,255,.55); }

@media (max-width: 900px) {
  .nav { position: fixed; inset: 64px 0 auto 0; flex-direction: column; gap: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-open .nav { display: flex; }
  .menu { display: flex; }
  .menu-open .menu span:first-child { transform: translateY(4px) rotate(45deg); }
  .menu-open .menu span:last-child { transform: translateY(-4px) rotate(-45deg); }
  .top-actions { margin-left: auto; }
  .two, .master, .exam { grid-template-columns: 1fr; gap: 28px; }
  .focus-grid { grid-template-columns: 1fr; }
  .belt { max-width: 260px; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .hero { padding: 64px 0 72px; }
  .lead { font-size: 16px; }
  .section { padding: 64px 0; }
  .master-lists, .form .row { grid-template-columns: 1fr; }
  .timetable li { grid-template-columns: 52px 1fr; }
  .timetable .who { grid-column: 2; }
  .form { padding: 22px; }
  .info { grid-template-columns: 70px 1fr; }
}
