/* =========================================================
   평촌EPL학원 — 사이트 공통 스타일
   색·폰트·간격은 :root 토큰만 바꾸면 전체에 반영됩니다.
   ========================================================= */
:root {
  --red: #c3083e;
  --red-dark: #9b0631;
  --red-soft: #fdecef;
  --red-on-dark: #ff6b88;
  --ink: #141b2d;
  --ink-2: #3a4256;
  --muted: #697185;
  --line: #e4e7ee;
  --bg: #ffffff;
  --bg-2: #f5f6f9;
  --navy: #111a33;
  --navy-2: #1b2547;
  --gold: #b9925a;
  --radius: 18px;
  --radius-sm: 12px;
  --max: 1200px;
  --hd-h: 76px;
  --shadow: 0 24px 60px -28px rgba(17, 26, 51, .35);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--hd-h) + 16px); -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.65; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
table { border-collapse: collapse; width: 100%; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 880px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 700; font-size: 16px; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn .ic { width: 18px; height: 18px; }
.btn--red { background: var(--red); color: #fff; }
.btn--red:hover { background: var(--red-dark); }
.btn--white { background: #fff; color: var(--red); }
.btn--white:hover { background: #ffe9ee; }
.btn--ghost { border: 1.5px solid rgba(255, 255, 255, .4); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.btn--line { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn--line:hover { border-color: var(--ink); }
.btn--sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--ink); }
.more .ic { width: 16px; height: 16px; transition: transform .2s; }
.more:hover { color: var(--red); }
.more:hover .ic { transform: translateX(3px); }

/* ---------- Logo ---------- */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img { width: 36px; height: auto; }
.logo__text { display: grid; grid-template-columns: auto auto; column-gap: 6px; align-items: baseline; line-height: 1.1; }
.logo__text b { font-size: 22px; font-weight: 800; letter-spacing: .14em; color: var(--red); }
.logo__text i { font-style: normal; font-size: 15px; color: var(--red); letter-spacing: .04em; }
.logo__text small { grid-column: 1 / -1; font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 3px; letter-spacing: 0; }
.logo--light .logo__text b, .logo--light .logo__text i { color: #fff; }
.logo--light .logo__text small { color: #8b93a7; }

/* ---------- Header ---------- */
.hd { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid var(--line); }
.hd__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--hd-h); }
.gnb__list { display: flex; gap: 2px; }
.gnb__item { position: relative; }
.gnb__link { display: block; padding: 10px 13px; font-weight: 650; font-size: 15.5px; color: var(--ink-2); border-radius: 10px; transition: color .15s, background .15s; }
.gnb__item:hover .gnb__link, .gnb__item:focus-within .gnb__link { color: var(--red); background: var(--red-soft); }
.gnb__item.is-active .gnb__link { color: var(--red); }
.gnb__sub { position: absolute; top: calc(100% + 10px); left: 50%; min-width: 196px; transform: translate(-50%, 6px); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.gnb__sub::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.gnb__item:hover .gnb__sub, .gnb__item:focus-within .gnb__sub { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.gnb__sub a { display: block; padding: 9px 14px; border-radius: 9px; font-size: 14.5px; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.gnb__sub a:hover, .gnb__sub a[aria-current] { background: var(--bg-2); color: var(--red); }
.hd__cta { display: flex; align-items: center; gap: 14px; }
.hd__tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 15px; color: var(--ink-2); }
.hd__tel .ic { width: 16px; height: 16px; color: var(--red); }
.hd__menu { display: none; width: 44px; height: 44px; border-radius: 12px; align-items: center; justify-content: center; }
.hd__menu .ic { width: 24px; height: 24px; }

/* Mobile drawer */
.mnav { position: fixed; inset: 0; z-index: 80; background: rgba(10, 14, 28, .5); }
.mnav[hidden] { display: none; }
.mnav__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 100%); background: #fff; display: flex; flex-direction: column; overflow-y: auto; animation: slide-in .22s ease-out; }
@keyframes slide-in { from { transform: translateX(30px); opacity: .4; } }
.mnav__hd { display: flex; align-items: center; justify-content: space-between; padding: 0 16px 0 20px; height: var(--hd-h); border-bottom: 1px solid var(--line); flex-shrink: 0; }
.mnav__close { width: 44px; height: 44px; display: grid; place-items: center; }
.mnav__close .ic { width: 24px; height: 24px; }
.mnav__list { padding: 8px 0; flex: 1; }
.mnav__toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 15px 22px; font-size: 17px; font-weight: 700; text-align: left; }
.mnav__toggle .ic { transition: transform .2s; color: var(--muted); }
.mnav__toggle[aria-expanded="true"] { color: var(--red); }
.mnav__toggle[aria-expanded="true"] .ic { transform: rotate(180deg); color: var(--red); }
.mnav__sub { background: var(--bg-2); padding: 6px 0; }
.mnav__sub a { display: block; padding: 11px 34px; font-size: 15.5px; color: var(--ink-2); }
.mnav__sub a[aria-current] { color: var(--red); font-weight: 700; }
.mnav__ft { display: grid; gap: 10px; padding: 20px; border-top: 1px solid var(--line); }
body.is-locked { overflow: hidden; }

/* ---------- Page hero (subpages) ---------- */
.phero { position: relative; overflow: hidden; color: #fff; padding: 64px 0 60px; background: radial-gradient(900px 420px at 88% -20%, rgba(200, 25, 60, .35), transparent 60%), linear-gradient(160deg, #0f1730 0%, #141b2d 62%, #1c1426 100%); }
.phero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 48px 48px; mask-image: linear-gradient(90deg, transparent, #000 70%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); pointer-events: none; }
.phero .wrap { position: relative; z-index: 1; }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: #9aa2b6; margin-bottom: 22px; }
.crumb li + li::before { content: "›"; margin-right: 6px; color: #5d6680; }
.crumb a:hover { color: #fff; }
.phero__eyebrow { font-size: 14px; font-weight: 700; color: var(--red-on-dark); letter-spacing: .04em; margin-bottom: 10px; }
.phero__title { font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; line-height: 1.2; letter-spacing: -.025em; }
.phero__lead { margin-top: 16px; max-width: 680px; color: #c3c8d6; font-size: 17.5px; }
.subnav { position: sticky; top: var(--hd-h); z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.subnav__list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a { display: block; padding: 16px 16px 14px; font-weight: 600; font-size: 15px; color: var(--muted); border-bottom: 2.5px solid transparent; white-space: nowrap; }
.subnav__list a:hover { color: var(--ink); }
.subnav__list a[aria-current] { color: var(--red); border-bottom-color: var(--red); }

/* ---------- Sections ---------- */
.sec { padding: 96px 0; }
.sec--alt { background: var(--bg-2); }
.sec--dark { background: var(--navy); color: #fff; }
.sec--tight { padding: 72px 0; }
.sec:not(.sec--alt):not(.sec--dark) + .sec:not(.sec--alt):not(.sec--dark) { padding-top: 0; }
.sec--alt + .sec--alt { padding-top: 0; }
.sec__head { margin-bottom: 48px; max-width: 760px; }
.sec__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .1em; color: var(--red); text-transform: uppercase; margin-bottom: 12px; }
.sec--dark .eyebrow { color: var(--red-on-dark); }
.sec__title { font-size: clamp(25px, 3.2vw, 38px); line-height: 1.32; font-weight: 800; letter-spacing: -.022em; }
.sec__title em { font-style: normal; color: var(--red); }
.sec--dark .sec__title em { color: var(--red-on-dark); }
.sec__lead { color: var(--muted); font-size: 17px; margin-top: 14px; }
.sec--dark .sec__lead { color: #b8bfd0; }
.sub-title { font-size: 21px; font-weight: 800; letter-spacing: -.01em; margin: 56px 0 20px; display: flex; align-items: center; gap: 10px; }
.sub-title::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--red); }
.sub-title:first-child { margin-top: 0; }

/* ---------- Grid / cards ---------- */
.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); }
.feat { padding: 30px 26px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: box-shadow .25s, transform .25s, border-color .25s; }
.feat:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-3px); }
.feat__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); margin-bottom: 20px; }
.feat__ic .ic { width: 25px; height: 25px; }
.feat__title { font-size: 18.5px; font-weight: 750; line-height: 1.4; letter-spacing: -.01em; }
.feat__text { margin-top: 8px; color: var(--muted); font-size: 15px; }
.sec--dark .feat { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.sec--dark .feat__ic { background: rgba(255, 107, 136, .14); color: var(--red-on-dark); }
.sec--dark .feat__text { color: #aab1c3; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split--top { align-items: start; margin-top: 40px; }
.split--wide { grid-template-columns: 1.1fr .9fr; }

/* Checklist */
.check { display: grid; gap: 12px; }
.check li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; }
.check .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--red-soft); color: var(--red); margin-top: 1px; stroke-width: 3; }
.check--lg li { font-size: 17px; font-weight: 550; }
.sec--dark .check .ic { background: rgba(255, 107, 136, .15); color: var(--red-on-dark); }

/* Pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: var(--bg-2); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pill .ic { width: 15px; height: 15px; }
.pill--red { background: var(--red-soft); color: var(--red); }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 7px; background: var(--navy); color: #fff; }
.tag--red { background: var(--red); }

/* ---------- Tables ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; -webkit-overflow-scrolling: touch; }
.tbl { font-size: 15px; min-width: 560px; }
.tbl caption { caption-side: top; text-align: left; padding: 16px 20px; font-weight: 750; font-size: 16px; border-bottom: 1px solid var(--line); }
.tbl th, .tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; vertical-align: middle; line-height: 1.55; }
.tbl tr > *:last-child { border-right: 0; }
.tbl tbody tr:last-child > * { border-bottom: 0; }
.tbl thead th { background: var(--navy); color: #fff; font-weight: 700; border-color: rgba(255, 255, 255, .12); font-size: 14.5px; }
.tbl tbody th { background: var(--bg-2); font-weight: 700; color: var(--ink); white-space: nowrap; }
.nw { white-space: nowrap; }
.tbl tr.is-muted td, .tbl tr.is-muted th { background: #fafbfc; color: var(--muted); }
.tbl .hl { background: var(--red-soft); color: var(--red); font-weight: 700; }
/* 윈터스쿨 개인 시간표: 세 표의 요일 칸 너비를 같게 맞춘다 */
.tbl--plan { table-layout: fixed; min-width: 760px; }
.tbl--plan thead th:nth-child(1) { width: 13%; }
.tbl--plan thead th:nth-child(2) { width: 11%; }
.tbl--curri td { font-size: 14.5px; }
.tbl--left td { text-align: left; }
.tbl-note { margin-top: 10px; font-size: 13.5px; color: var(--muted); }
/* 휴대폰에서 표 보기: 열 수에 따라 table() 가 붙이는 클래스 (.tbl.tbl--x 로 써서 테마 CSS 보다 우선한다) */
.tbl-hint { display: none; }
@media (max-width: 720px) {
  /* 4열 이하: 최소 폭을 풀어 화면에 맞추고 글은 줄바꿈 */
  .tbl.tbl--fit { min-width: 0; }
  .tbl.tbl--fit th, .tbl.tbl--fit td { padding: 12px 7px; overflow-wrap: anywhere; }
  .tbl.tbl--fit tbody th { white-space: normal; word-break: keep-all; overflow-wrap: normal; }
  /* 5~6열: 글자와 칸 여백을 줄여 스크롤 없이 한 화면에 */
  .tbl.tbl--compact { min-width: 0; font-size: 12.5px; }
  .tbl.tbl--compact th, .tbl.tbl--compact td { padding: 9px 3px; line-height: 1.4; word-break: keep-all; }
  .tbl.tbl--compact thead th { font-size: 12px; padding: 9px 2px; }
  .tbl.tbl--compact tbody th { white-space: normal; }
  .tbl.tbl--compact caption { font-size: 15px; padding: 14px 12px; }
  /* 7열 이상: 좌우로 밀어서 보게 하되, 안내 문구를 붙이고 첫 열(구분)은 고정한다 */
  .tbl-hint { display: flex; align-items: center; justify-content: flex-end; gap: 6px; margin: 0 2px 6px; font-size: 13px; font-weight: 700; color: var(--red); }
  .tbl.tbl--scroll { font-size: 13.5px; min-width: 560px; }
  .tbl.tbl--scroll.tbl--plan { min-width: 640px; }
  .tbl.tbl--scroll th, .tbl.tbl--scroll td { padding: 10px 8px; }
  .tbl.tbl--scroll th:first-child { position: sticky; left: 0; z-index: 1; box-shadow: 1px 0 0 var(--line); }
  /* 성적학습관리의 예시 화면(.mock-ui) 표도 아주 작은 폭에서 넘치지 않게 */
  .mock-ui .tbl th, .mock-ui .tbl td { padding: 10px 4px; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; counter-reset: s; }
.step { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.step__n { flex-shrink: 0; font-size: 13px; font-weight: 800; color: var(--red); background: var(--red-soft); border-radius: 8px; padding: 4px 8px; }
.step__title { font-size: 17px; font-weight: 750; }
.step__text { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.steps--inline .step { align-items: center; }
.steps--grid { grid-template-columns: repeat(var(--cols, 3), 1fr); }
.sec--alt .step { background: #fff; }
.sec--dark .step { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); }
.sec--dark .step__text { color: #aab1c3; }
.sec--dark .step__n { background: rgba(255, 107, 136, .15); color: var(--red-on-dark); }

/* Timeline (vertical) */
.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px; background: linear-gradient(var(--red), #f3b3c0); }
.tl { position: relative; padding-bottom: 30px; }
.tl:last-child { padding-bottom: 0; }
.tl::before { content: ""; position: absolute; left: -31px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.tl small { font-size: 13px; font-weight: 750; color: var(--red); }
.tl h3, .tl h4 { font-size: 18px; font-weight: 750; margin: 2px 0 4px; }
.tl p { color: var(--muted); font-size: 15px; }

/* Horizontal roadmap */
.road { display: grid; grid-template-columns: repeat(var(--n, 5), 1fr); gap: 0; position: relative; }
.road::before { content: ""; position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: repeating-linear-gradient(90deg, var(--red) 0 8px, transparent 8px 14px); }
.road__item { position: relative; text-align: center; padding: 0 8px; }
.road__dot { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: #fff; border: 2px solid var(--red); display: grid; place-items: center; font-weight: 800; color: var(--red); font-size: 14px; position: relative; z-index: 1; }
.road__item:last-child .road__dot { background: var(--red); color: #fff; }
.road__item h3 { font-size: 16.5px; font-weight: 750; }
.road__item p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.road__item dl { margin-top: 10px; font-size: 13.5px; text-align: left; background: var(--bg-2); border-radius: 10px; padding: 10px 12px; }
.road__item dt { font-weight: 700; color: var(--ink-2); }
.road__item dd { color: var(--muted); margin-bottom: 6px; }
.road__item dd:last-child { margin-bottom: 0; }

/* ---------- Recruit / prices ---------- */
.recruit { border-top: 2px solid var(--ink); }
.recruit__row { display: grid; grid-template-columns: 200px 1fr; border-bottom: 1px solid var(--line); }
.recruit dt { padding: 20px 22px; background: var(--bg-2); font-weight: 750; }
.recruit dd { padding: 20px 24px; }
.recruit dd .check { gap: 8px; }
.recruit dd .check li { font-size: 15.5px; }
.recruit__tel { font-weight: 700; color: var(--red); }
.recruit__tel a { text-decoration: underline; text-underline-offset: 3px; }
.recruit dd p + p { margin-top: 4px; }
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; }
.price { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: #fff; display: flex; flex-direction: column; }
.price__name { font-weight: 750; font-size: 16.5px; }
.price__desc { font-size: 14px; color: var(--muted); margin-top: 2px; }
.price__amount { margin-top: auto; padding-top: 16px; font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.price--hot { background: var(--navy); color: #fff; border-color: var(--navy); }
.price--hot .price__desc { color: #aab1c3; }
.price--hot .price__amount { color: #fff; }

/* ---------- Teachers ---------- */
.teachers { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 22px; }
.teacher { display: grid; grid-template-columns: 150px 1fr; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.teacher__photo { background: linear-gradient(180deg, #eef0f5, #dfe3ec); }
.teacher__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; aspect-ratio: 3 / 4; }
.teacher__body { padding: 22px 22px 20px; display: flex; flex-direction: column; }
.teacher__subject { font-size: 13px; font-weight: 800; color: var(--red); letter-spacing: .04em; }
.teacher__name { font-size: 23px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 10px; }
.teacher__career { font-size: 13.8px; color: var(--muted); display: grid; gap: 3px; margin-bottom: 14px; }
.teacher__career li { padding-left: 10px; position: relative; }
.teacher__career li::before { content: ""; position: absolute; left: 0; top: .72em; width: 4px; height: 4px; border-radius: 50%; background: #c2c7d3; }
.teacher .more { margin-top: auto; font-size: 14px; }
.teacher--wide { grid-template-columns: minmax(260px, 360px) 1fr; }
.teacher--wide .teacher__body { padding: 36px 40px; justify-content: center; }
.teacher--wide .teacher__name { font-size: 32px; }
.teacher--wide .teacher__career { font-size: 15.5px; gap: 6px; }

/* ---------- Solutions ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sol { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px 26px; }
.sol__ic { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: rgba(255, 107, 136, .14); color: var(--red-on-dark); margin-bottom: 16px; }
.sol__ic .ic { width: 23px; height: 23px; }
.sol__title { font-size: 18px; font-weight: 750; }
.sol__text { margin-top: 6px; color: #aab1c3; font-size: 14.5px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; gap: 16px; }
.gallery--2 { grid-template-columns: repeat(2, 1fr); }
.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery--4 { grid-template-columns: repeat(4, 1fr); }
.gallery__item { border-radius: var(--radius-sm); overflow: hidden; background: #fff; border: 1px solid var(--line); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s; }
.gallery__item:hover img { transform: scale(1.03); }
.gallery__item figcaption { padding: 12px 16px; font-weight: 650; font-size: 15px; }

/* ---------- Quote / statement / formula ---------- */
.quote { text-align: center; }
.quote blockquote { font-size: clamp(24px, 3.4vw, 40px); font-weight: 800; line-height: 1.4; letter-spacing: -.02em; }
.quote blockquote em { font-style: normal; color: var(--red-on-dark); }
.quote figcaption { margin-top: 20px; font-weight: 700; color: #b8bfd0; }
.statement { text-align: center; padding: 48px 24px; border-radius: 24px; background: var(--bg-2); }
.sec--alt .statement { background: #fff; }
.statement__small { color: var(--muted); font-size: 18px; font-weight: 600; }
.statement__big { margin-top: 6px; font-size: clamp(24px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.35; }
.statement__big em { font-style: normal; color: var(--red); }
.formula { border-radius: 24px; padding: 44px 32px; text-align: center; background: linear-gradient(150deg, var(--navy) 0%, #23153a 100%); color: #fff; position: relative; overflow: hidden; }
.formula__q { font-size: clamp(24px, 3.4vw, 32px); color: #fff; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; margin-bottom: 24px; }
.formula__items { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.formula__items span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-weight: 650; }
.formula__sub { margin-top: 24px; font-size: 20px; font-weight: 700; }
.formula__sub b { color: var(--red-on-dark); }

/* ---------- Cycle ---------- */
.cycle { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; padding-bottom: 54px; }
.cycle__item { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); position: relative; }
.cycle__item:not(:nth-child(4))::after { content: "→"; position: absolute; right: -16px; top: 30%; z-index: 2; width: 30px; height: 30px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 15px; box-shadow: 0 6px 14px -4px rgba(200, 25, 60, .5); }
.cycle__photo { position: relative; border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0; overflow: hidden; }
.cycle__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.cycle__n { position: absolute; left: 12px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--red); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
.cycle__label { padding: 16px 18px 0; font-size: 17px; font-weight: 750; }
.cycle__text { padding: 4px 18px 20px; color: var(--muted); font-size: 14.5px; }
.cycle__loop { position: absolute; left: 12%; right: 12%; bottom: 0; height: 40px; border: 2px dashed #f0b4c1; border-top: 0; border-radius: 0 0 24px 24px; display: flex; align-items: flex-end; justify-content: center; gap: 6px; font-size: 13.5px; font-weight: 700; color: var(--red); transform: translateY(-6px); }
.cycle__loop .ic { width: 15px; height: 15px; background: #fff; }

/* Management rows */
.mgmt { display: grid; gap: 18px; }
.mgmt__row { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: center; padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.mgmt__head { display: flex; gap: 14px; align-items: flex-start; }
.mgmt__head h3 { font-size: 17px; font-weight: 700; line-height: 1.5; }
.mgmt__n { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--red); color: #fff; font-weight: 800; display: grid; place-items: center; }
.mgmt__photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mgmt__photos figure { border-radius: 10px; overflow: hidden; background: var(--bg-2); }
.mgmt__photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mgmt__photos figcaption { font-size: 13px; color: var(--muted); padding: 7px 10px; }

/* Callout */
.callout { display: flex; gap: 14px; padding: 18px 22px; border-radius: var(--radius-sm); background: #f2f5fb; color: var(--ink-2); font-size: 15px; border: 1px solid #dfe5f1; }
.callout .ic { width: 22px; height: 22px; color: #3f63b5; margin-top: 2px; }
.callout--warn { background: #fff7ec; border-color: #f6dfbd; }
.callout--warn .ic { color: #c27a16; }

/* Points (논술) */
.points { display: grid; gap: 14px; }
.point { padding: 22px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.point span { font-size: 12.5px; font-weight: 800; color: var(--gold); letter-spacing: .06em; font-style: italic; }
.point h3 { font-size: 18px; font-weight: 750; margin: 2px 0 8px; }
.point ul { display: flex; flex-wrap: wrap; gap: 6px; }
.point li { font-size: 13.5px; padding: 5px 11px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); }

/* Image figure with caption */
.figure { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #fff; }
.figure img { width: 100%; }
.figure figcaption { padding: 12px 16px; font-size: 14px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta { background: linear-gradient(140deg, var(--red) 0%, #8d0f2b 100%); color: #fff; padding: 72px 0; }
.cta__in { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta__title { font-size: clamp(24px, 3vw, 34px); font-weight: 800; line-height: 1.35; letter-spacing: -.02em; }
.cta__text { margin-top: 10px; color: #ffd9e0; }
.cta__btns { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Board ---------- */
.board { border-top: 2px solid var(--ink); }
.board__item a { display: grid; grid-template-columns: 70px 1fr 120px; gap: 16px; align-items: center; padding: 20px 8px; border-bottom: 1px solid var(--line); transition: background .15s; }
.board__item a:hover { background: var(--bg-2); }
.board__item a:hover .board__title { color: var(--red); }
.board__no { color: var(--muted); font-size: 14px; text-align: center; }
.board__title { font-weight: 600; font-size: 16px; }
.board__title .tag { margin-left: 8px; vertical-align: 2px; font-size: 11px; padding: 3px 7px; background: var(--bg-2); color: var(--muted); }
.board__date { color: var(--muted); font-size: 14px; text-align: right; }
.post__head { padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 36px; }
.post__title { font-size: clamp(22px, 3vw, 32px); font-weight: 800; line-height: 1.38; letter-spacing: -.02em; }
.post__meta { margin-top: 12px; color: var(--muted); font-size: 14.5px; display: flex; gap: 14px; flex-wrap: wrap; }
.post__body { font-size: 16.5px; line-height: 1.85; color: var(--ink-2); }
.post__body p { margin-bottom: 4px; }
.post__body img { margin: 18px auto; border-radius: 10px; }
.post__body b, .post__body strong { color: var(--ink); }
.post__body table { margin: 18px 0; font-size: 14.5px; }
.post__body td, .post__body th { border: 1px solid var(--line); padding: 8px 10px; }
.post__nav { margin-top: 56px; border-top: 2px solid var(--ink); }
.post__nav a { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 16px 8px; border-bottom: 1px solid var(--line); font-size: 15px; }
.post__nav a span { color: var(--muted); }
.post__nav a:hover b { color: var(--red); }
.post__list { margin-top: 28px; text-align: center; }
.archive-note { margin-bottom: 28px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .field legend { display: block; font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.field label i, .field legend i { color: var(--red); font-style: normal; margin-left: 2px; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 16px; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .15s; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); }
.field fieldset { border: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 600; font-size: 14.5px; }
.chips input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chips span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); cursor: pointer; transition: .15s; }
.chips input:checked + span { background: var(--red); border-color: var(--red); color: #fff; }
.chips input:focus-visible + span { outline: 3px solid var(--red); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2); }
.agree input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); }
.agree a { text-decoration: underline; }
.form__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form__result { padding: 18px 20px; border-radius: 12px; background: #f0f7f2; border: 1px solid #cfe6d6; font-size: 15px; }
.form__result[hidden] { display: none; }
.form__result pre { white-space: pre-wrap; font-family: inherit; background: #fff; border-radius: 8px; padding: 12px; margin-top: 10px; border: 1px solid var(--line); }

/* ---------- Map ---------- */
.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--bg-2); min-height: 380px; }
/* 네이버 지도 스크립트가 컨테이너에 position: relative 를 직접 지정하므로 !important 로 영역을 고정한다 */
.map__canvas { position: absolute !important; inset: 0; width: 100%; height: 100%; }
.map__canvas img { max-width: none; }
.map__static { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.map.is-live .map__static, .map.is-live .map__pin { display: none; }
.map__pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -100%); display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.map__pin b { background: var(--red); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 14px; white-space: nowrap; box-shadow: 0 10px 20px -6px rgba(200, 25, 60, .6); }
.map__pin::after { content: ""; border: 8px solid transparent; border-top-color: var(--red); }
.map__btns { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; flex-wrap: wrap; z-index: 2; }
.map__btns a, .map__btns button { display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 10px; padding: 9px 14px; font-size: 14px; font-weight: 700; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .3); }
.map__btns a.naver { background: #03c75a; color: #fff; }
.map__btns .ic { width: 15px; height: 15px; }
.map__btns button { cursor: pointer; }
.info-dl { display: grid; grid-template-columns: 88px 1fr; row-gap: 14px; font-size: 16px; }
.info-dl dt { color: var(--muted); font-weight: 650; }
.info-dl a { text-decoration: underline; text-underline-offset: 3px; }

.route { display: grid; gap: 14px; }
.route__group { display: grid; grid-template-columns: 130px 1fr; gap: 24px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.route__label { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; font-weight: 750; border-radius: var(--radius-sm); background: var(--bg-2); padding: 18px; }
.route__label .ic { width: 30px; height: 30px; color: var(--red); }
.route ul { display: grid; gap: 14px; }
.route li b { display: block; font-size: 16px; }
.route li span { color: var(--muted); font-size: 15px; }

/* ---------- Footer ---------- */
.ft { background: #0c1224; color: #8b93a7; font-size: 14px; padding: 56px 0 40px; }
.ft__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; padding-bottom: 26px; border-bottom: 1px solid #1e2740; margin-bottom: 26px; }
.ft__nav { display: flex; gap: 22px; flex-wrap: wrap; color: #c3c8d6; font-weight: 600; }
.ft__nav a:hover { color: #fff; }
.ft__nav b { color: #fff; }
.ft__grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px; line-height: 1.8; }
.ft__label { color: #c3c8d6; font-weight: 700; margin-bottom: 4px; }
.ft__tel { display: flex; gap: 16px; flex-wrap: wrap; font-size: 20px; font-weight: 800; color: #fff; }
.ft__copy { margin-top: 28px; font-size: 13px; }
.mbar { display: none; }

/* ---------- Home ---------- */
.hero { position: relative; overflow: hidden; color: #fff; padding: 92px 0 0; background: radial-gradient(1200px 600px at 85% -10%, #2a1530 0%, transparent 60%), linear-gradient(160deg, #0f1730 0%, #141b2d 60%, #1c1426 100%); }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr .9fr; gap: 56px; align-items: center; }
.hero__tag { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(200, 25, 60, .18); color: #ff8fa5; border: 1px solid rgba(255, 143, 165, .25); }
.hero__tag i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a7a; box-shadow: 0 0 0 4px rgba(255, 90, 122, .2); }
.hero h1 { font-size: clamp(36px, 5.2vw, 62px); line-height: 1.18; font-weight: 800; letter-spacing: -.03em; margin: 22px 0; }
.hero h1 em { font-style: normal; color: #ff5a7a; }
.hero__sub { font-size: 18px; color: #c3c8d6; max-width: 540px; }
.hero__btns { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.dday { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 24px; padding: 34px; backdrop-filter: blur(8px); }
.dday small { color: #aab1c3; font-weight: 600; font-size: 14px; }
.dday__num { font-size: 88px; font-weight: 800; line-height: 1; letter-spacing: -.04em; margin: 10px 0 4px; }
.dday__num span { color: #ff5a7a; }
.dday__date { color: #aab1c3; font-size: 14px; }
.dday hr { border: 0; border-top: 1px solid rgba(255, 255, 255, .12); margin: 24px 0; }
.dday__row { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; padding: 6px 0; color: #d9dce6; }
.dday__row b { color: #fff; text-align: right; }
.stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid rgba(255, 255, 255, .12); }
.stat { padding: 30px 24px; border-right: 1px solid rgba(255, 255, 255, .12); }
.stat:last-child { border-right: 0; }
.stat b { display: block; font-size: 34px; font-weight: 800; letter-spacing: -.02em; }
.stat span { color: #aab1c3; font-size: 14.5px; }

.prog-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.prog { background: #fff; border-radius: 22px; padding: 34px; display: flex; flex-direction: column; position: relative; border: 1px solid var(--line); transition: box-shadow .25s; }
.prog:hover { box-shadow: var(--shadow); }
.prog__kicker { font-size: 13px; font-weight: 750; color: var(--red); letter-spacing: .04em; }
.prog h3 { font-size: 25px; font-weight: 800; margin: 6px 0 10px; letter-spacing: -.02em; padding-right: 100px; }
.prog p { color: var(--muted); font-size: 15.5px; }
.prog ul { margin: 22px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.prog li a { display: inline-block; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); transition: .15s; }
.prog li a:hover { background: var(--red); color: #fff; }
.prog .more { margin-top: auto; }
.prog .tag { position: absolute; top: 30px; right: 30px; }
.prog--feature { background: var(--navy); color: #fff; border: 0; }
.prog--feature p { color: #b8bfd0; }
.prog--feature li a { background: rgba(255, 255, 255, .08); color: #e3e6ee; }
.prog--feature .prog__kicker { color: var(--red-on-dark); }
.prog--feature .more { color: #fff; }

.photo-stack { position: relative; }
.photo-stack img { border-radius: 24px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-stack__note { position: absolute; left: 22px; right: 22px; bottom: 22px; background: #fff; border-radius: 16px; padding: 18px 20px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .35); }
.photo-stack__note b { display: block; font-size: 17px; }
.photo-stack__note span { color: var(--muted); font-size: 14px; }

.news-mini { border: 1px solid var(--line); border-radius: 22px; padding: 32px; background: #fff; }
.news-mini__hd { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.news-mini__hd h3 { font-size: 21px; font-weight: 800; }
.news-mini__hd a { font-size: 14px; color: var(--muted); font-weight: 600; }
.news-mini li { border-top: 1px solid var(--line); }
.news-mini li a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-size: 15.5px; font-weight: 500; }
.news-mini li a:hover { color: var(--red); }
.news-mini li a span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.news-mini li a i { font-style: normal; color: var(--muted); font-size: 13.5px; flex-shrink: 0; }
.contact-card { border-radius: 22px; padding: 38px; background: linear-gradient(150deg, var(--red) 0%, #8f0f2c 100%); color: #fff; display: flex; flex-direction: column; }
.contact-card h3 { font-size: 27px; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.contact-card p { color: #ffd9e0; margin-top: 10px; }
.tels { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 26px 0; }
.tels a { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px; padding: 15px 18px; transition: background .2s; }
.tels a:hover { background: rgba(255, 255, 255, .2); }
.tels small { display: block; font-size: 13px; color: #ffd0d9; }
.tels b { font-size: 20px; white-space: nowrap; }

/* Photo mosaic — 작은 원본 사진을 크게 늘리지 않도록 여러 장을 묶어 보여줌 */
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mosaic figure { border-radius: 16px; overflow: hidden; background: var(--bg-2); }
.mosaic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.mosaic .photo-stack__note { position: static; grid-column: 1 / -1; box-shadow: none; border: 1px solid var(--line); background: #fff; border-radius: 16px; padding: 18px 20px; }
.hours { margin-top: auto; display: flex; gap: 28px; flex-wrap: wrap; font-size: 14.5px; color: #ffe3e8; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 18px; }
.hours b { color: #fff; margin-right: 6px; }

/* ---------- Misc content ---------- */
.lead-text { font-size: 18px; line-height: 1.9; color: var(--ink-2); }
.lead-text p + p { margin-top: 18px; }
.sign { margin-top: 36px; font-size: 17px; }
.sign b { font-size: 22px; margin-left: 8px; }
.rules { display: grid; gap: 16px; }
.rule { padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.rule h3 { font-size: 18px; font-weight: 750; display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.rule h3 span { width: 30px; height: 30px; border-radius: 9px; background: var(--navy); color: #fff; display: grid; place-items: center; font-size: 14px; }
.rule ol { display: grid; gap: 6px; color: var(--ink-2); counter-reset: r; }
.rule ol li { counter-increment: r; padding-left: 26px; position: relative; font-size: 15.5px; }
.rule ol li::before { content: counter(r); position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #c2c7d3; font-size: 11px; display: grid; place-items: center; color: var(--muted); }
.rule .penalty { margin-top: 10px; font-size: 14px; color: var(--red); font-weight: 600; }
.mock-ui { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.mock-ui__bar { display: flex; gap: 6px; padding: 12px 16px; background: var(--bg-2); border-bottom: 1px solid var(--line); }
.mock-ui__bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d8e1; }
.mock-ui__body { padding: 20px; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 82px 1fr 46px; gap: 10px; align-items: center; font-size: 13.5px; }
.bar__track { height: 10px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.bar__fill { height: 100%; border-radius: 6px; background: linear-gradient(90deg, #f3a1b3, var(--red)); }
.bar b { text-align: right; }
.legal h2 { font-size: 20px; font-weight: 800; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); font-size: 15.5px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 4px; }
.legal .tbl { min-width: 0; }
.notfound { text-align: center; padding: 140px 0; }
.notfound b { display: block; font-size: 96px; font-weight: 800; color: var(--red); line-height: 1; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1240px) {
  .gnb__link { padding: 10px 9px; font-size: 15px; }
  .hd__tel { display: none; }
}
@media (max-width: 1080px) {
  :root { --hd-h: 66px; }
  .gnb { display: none; }
  .hd__menu { display: inline-flex; }
  .hero__grid, .split, .split--wide { grid-template-columns: 1fr; gap: 40px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid rgba(255, 255, 255, .12); }
  .cycle { grid-template-columns: repeat(2, 1fr); padding-bottom: 0; }
  .cycle__item::after { display: none; }
  .cycle__loop { display: none; }
  .mgmt__row { grid-template-columns: 1fr; }
  .solutions { grid-template-columns: repeat(2, 1fr); }
  .road { grid-template-columns: 1fr; gap: 16px; }
  .road::before { display: none; }
  .road__item { display: grid; grid-template-columns: 56px 1fr; gap: 16px; text-align: left; padding: 0; }
  .road__dot { margin: 0; }
  .teacher--wide { grid-template-columns: 1fr; }
  .teacher--wide .teacher__photo img { aspect-ratio: 4 / 3; }
  .photo-stack img { aspect-ratio: 16 / 10; }
  .steps--grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 68px 0; }
  .sec--tight { padding: 52px 0; }
  .sec__head { margin-bottom: 32px; }
  .sec__lead { font-size: 16px; }
  .hd__cta .btn { display: none; }
  .logo__text small { display: none; }
  .phero { padding: 44px 0 40px; }
  .phero__lead { font-size: 16px; }
  .grid--2, .grid--3, .grid--4, .prog-grid, .gallery--3, .gallery--4, .solutions, .form__row { grid-template-columns: 1fr; }
  .gallery--2 { grid-template-columns: 1fr 1fr; }
  .gallery--3.gallery--keep { grid-template-columns: 1fr 1fr; }
  .feat { padding: 24px 22px; }
  .hero { padding-top: 56px; }
  .hero__sub { font-size: 16px; }
  .hero__btns .btn { flex: 1; padding: 0 14px; }
  .dday { padding: 26px; }
  .dday__num { font-size: 66px; }
  .stats { margin-top: 52px; }
  .stat { padding: 22px 16px; }
  .stat b { font-size: 25px; }
  .prog { padding: 26px; }
  .prog h3 { padding-right: 0; }
  .prog .tag { position: static; align-self: flex-start; margin-bottom: 12px; order: -1; }
  .tels { grid-template-columns: 1fr; }
  .contact-card, .news-mini { padding: 26px; }
  .cycle { grid-template-columns: 1fr; }
  .mgmt__row { padding: 18px; }
  .mgmt__photos { gap: 8px; }
  .mgmt__photos figcaption { font-size: 12px; padding: 5px 7px; }
  .recruit__row { grid-template-columns: 1fr; }
  .recruit dt { padding: 12px 16px; }
  .recruit dd { padding: 16px; }
  .teachers { grid-template-columns: 1fr; }
  .teacher { grid-template-columns: 120px 1fr; }
  .teacher__body { padding: 18px; }
  .teacher__name { font-size: 20px; }
  .teacher--wide { grid-template-columns: 1fr; }
  .teacher--wide .teacher__body { padding: 24px; }
  .steps--grid { grid-template-columns: 1fr; }
  .board__item a { grid-template-columns: 1fr; gap: 4px; padding: 16px 4px; }
  .board__no { display: none; }
  .board__date { text-align: left; }
  .route__group { grid-template-columns: 1fr; gap: 16px; padding: 20px; }
  .route__label { flex-direction: row; justify-content: flex-start; padding: 12px 16px; }
  .route__label .ic { width: 22px; height: 22px; }
  .map { min-height: 300px; }
  .ft { padding-bottom: 110px; }
  .ft__grid { grid-template-columns: 1fr; gap: 20px; }
  .cta { padding: 56px 0; }
  .cta__btns { width: 100%; }
  .cta__btns .btn { flex: 1; }
  .statement { padding: 36px 20px; }
  .formula { padding: 34px 20px; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .mbar a { height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 15.5px; background: var(--bg-2); }
  .mbar a:last-child { background: var(--red); color: #fff; }
  .mbar .ic { width: 18px; height: 18px; }
  .lead-text { font-size: 16.5px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .hd, .mnav, .subnav, .mbar, .cta, .ft { display: none !important; }
  .phero { background: none; color: var(--ink); padding: 0 0 20px; }
  .phero__lead, .crumb { color: var(--muted); }
}
.grid--compact { grid-template-columns: repeat(6, 1fr); gap: 12px; }
.grid--compact .feat { padding: 20px 12px; text-align: center; }
.grid--compact .feat__ic { margin: 0 auto 10px; }
.grid--compact .feat__title { font-size: 15.5px; }
@media (max-width: 1080px) { .grid--compact { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px) { .grid--compact { grid-template-columns: repeat(2, 1fr); } }
.mock-ui .tbl { min-width: 0; font-size: 14px; }
.mock-ui .tbl th, .mock-ui .tbl td { padding: 10px 8px; }
fieldset.field { border: 0; min-width: 0; }
/* 그리드 칸이 긴 한 줄 텍스트 때문에 화면 밖으로 늘어나지 않도록 */
.grid > *, .split > *, .prog-grid > *, .hero__grid > *, .gallery > * { min-width: 0; }
@media (max-width: 720px) { .gallery--4 { grid-template-columns: 1fr 1fr; } .gallery--4 figcaption { font-size: 14px; padding: 10px 12px; } }
@media (max-width: 1080px) { .cycle__item:not(:nth-child(4))::after { display: none; } }
@media (max-width: 720px) {
  .prices { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
  .price { padding: 18px; }
  .price__amount { font-size: 22px; }
  .cycle__photo img { aspect-ratio: 16 / 9; }
}
a[href^="tel:"] { white-space: nowrap; }
@media (max-width: 720px) {
  .grid--steps { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .grid--steps .feat { padding: 16px 10px; text-align: center; }
  .grid--steps .feat__ic { margin: 0 auto 10px; width: 40px; height: 40px; }
  .grid--steps .feat__title { font-size: 15px; }
  .grid--steps .feat__text { font-size: 12.5px; }
}

/* 벡터 일러스트: 사진처럼 잘리지 않고 4:3 그대로 */
img[src*="/illust/"] { aspect-ratio: 4 / 3 !important; object-fit: contain !important; background: var(--bg-2); }

/* 설명이 있는 갤러리: 제목 + 설명 */
.gallery__item figcaption b { display: block; font-size: 17px; margin-bottom: 4px; }
.gallery__item figcaption span { display: block; font-weight: 400; font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.gallery--2 .gallery__item figcaption { padding: 16px 20px 20px; }

.gallery__item--wide { grid-column: 1 / -1; }
.gallery__item--wide img { aspect-ratio: auto; height: auto; }
.gallery__item--wide figcaption { padding: 16px 20px 20px; }

@media (max-width: 720px) { .gallery--desc { grid-template-columns: 1fr; } }

/* ---------- 자주 묻는 질문 ---------- */
.faq { display: grid; gap: 14px; max-width: 880px; }
.faq__item { padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq__q { display: flex; gap: 10px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; line-height: 1.45; margin-bottom: 8px; }
.faq__q::before { content: "Q"; color: var(--red); }
.faq__a { color: var(--ink-2); font-size: 16px; line-height: 1.8; padding-left: 24px; }
.faq__a a { color: var(--red); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .faq__item { padding: 18px 16px; } .faq__q { font-size: 17px; } .faq__a { padding-left: 0; font-size: 15.5px; } }

/* 첫 화면 아래의 구간은 스크롤해서 가까워질 때 그린다 — 표가 많은 긴 페이지(윈터스쿨 등)의 첫 렌더링 부담을 줄인다 */
main > .sec ~ .sec, main > .sec ~ .cta { content-visibility: auto; contain-intrinsic-size: auto 700px; }

/* 입시뉴스 글 안의 소제목·목록·출처 */
.post__body h2, .post__body h3 { margin: 30px 0 10px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.post__body ul { margin: 8px 0 14px; padding-left: 22px; list-style: disc; }
.post__body li { margin-bottom: 6px; }
.post__body hr { border: 0; border-top: 1px solid var(--line); margin: 30px 0 16px; }
.post__body a { color: var(--red); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.post__body th { background: var(--bg-2); font-weight: 700; color: var(--ink); white-space: nowrap; text-align: left; }

/* ---------- 메인 팝업 (윈터스쿨 · 겨울 포스터형) — src/lib/popup.mjs, site.js 가 기간 안에만 띄운다 ---------- */
.wpop { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; }
.wpop[hidden] { display: none; }
html.is-popup { overflow: hidden; }   /* 사라지는 스크롤바 폭만큼은 site.js 가 오른쪽 여백으로 채운다 */
.wpop__dim { position: absolute; inset: 0; background: rgba(10, 14, 28, .55); }
.wpop__card { position: relative; width: min(100%, 400px); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: hidden auto; overscroll-behavior: contain; border-radius: 14px; color: #fff; outline: none;
  background: radial-gradient(120% 80% at 85% 0%, #2a4aa0 0%, rgba(42, 74, 160, 0) 60%), linear-gradient(180deg, #13204a 0%, #0b1330 100%);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .5); animation: wpopIn .3s ease both; }
@keyframes wpopIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.wpop :focus-visible { outline-color: #fff; }
.wpop__flake { position: absolute; color: rgba(255, 255, 255, .16); pointer-events: none; }
.wpop__flake .ic { width: 100%; height: 100%; stroke-width: 1.5; }
.wpop__flake--1 { width: 120px; height: 120px; top: -18px; right: -14px; }
.wpop__flake--2 { width: 50px; height: 50px; top: 186px; right: 36px; color: rgba(255, 255, 255, .11); }
.wpop__x { position: absolute; top: 10px; right: 10px; z-index: 2; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: rgba(255, 255, 255, .8); }
.wpop__x:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.wpop__x .ic { width: 22px; height: 22px; }
.wpop__in { position: relative; padding: 34px 30px 0; }
.wpop__eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .22em; color: #e4c48e; }
.wpop__title { margin-top: 10px; font-size: 34px; line-height: 1.15; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.wpop__sub { margin-top: 8px; font-size: 14.5px; color: rgba(255, 255, 255, .72); }
.wpop__date { margin-top: 26px; }
.wpop__date p:first-child { display: flex; align-items: baseline; gap: 8px; }
.wpop__date strong { font-size: 54px; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.wpop__date span { font-size: 19px; font-weight: 700; }
.wpop__full { margin-top: 8px; font-size: 14px; color: rgba(255, 255, 255, .68); }
.wpop__line { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 26px; text-align: center; }
.wpop__line::before { content: ""; position: absolute; top: 6px; left: 16.6%; right: 16.6%; height: 2px; background: rgba(255, 255, 255, .22); }
.wpop__line li { position: relative; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .7); }
.wpop__line li::before { content: ""; display: block; width: 14px; height: 14px; margin: 0 auto 8px; border-radius: 50%; background: #0b1330; border: 2px solid rgba(255, 255, 255, .5); }
.wpop__line li.is-key::before { background: var(--red-on-dark); border-color: var(--red-on-dark); box-shadow: 0 0 0 5px rgba(255, 107, 136, .2); }
.wpop__line b { display: block; font-size: 15px; font-weight: 800; color: #fff; }
.wpop__who { margin-top: 26px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .16); }
.wpop__who dt { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; color: #e4c48e; }
.wpop__who dd { margin-top: 6px; font-size: 15.5px; line-height: 1.5; }
.wpop__who b { font-weight: 800; }
.wpop__btn { display: flex; align-items: center; justify-content: center; gap: 8px; height: 52px; margin: 22px 0 6px; border-radius: 10px; background: var(--red); color: #fff; font-size: 16.5px; font-weight: 700; }
.wpop__btn:hover { background: var(--red-dark); }
.wpop__btn .ic { width: 18px; height: 18px; }
.wpop__foot { position: relative; display: flex; justify-content: space-between; }
.wpop__foot button { padding: 14px 20px; font-size: 13.5px; color: rgba(255, 255, 255, .62); }
.wpop__foot button:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .wpop__card { animation: none; } }
