/* AIVERSE 입시학원 (PREPARATORY ACADEMY) — 2026-11-23 대표 결정:
   머리글·첫 화면은 원래대로 남색 바탕에 흰 글씨(오른쪽 사진만 구문·어법·영작 세 원으로),
   그 아래는 E안 — 아이보리·흰 면을 번갈아 쓰고 둥근 카드와 알약 버튼. 금색은 작은 강조에만.
   세리프(Cormorant)는 로고와 첫 화면 영문 한 줄에만, 나머지는 Pretendard */
:root {
  --navy: #141a2c;
  --navy-deep: #0d121e;
  --navy-2: #1f2740;
  --gold: #c8ad7f;
  --gold-deep: #8c6d3c;
  --gold-ink: #6b5226;
  --gold-soft: #eee3cf;
  --logo-ink: #dccfae;
  --navy-soft: #dde1ea;
  --stone: #e6e1d6;
  --white: #ffffff;
  --ivory: #f7f6f2;
  --text: #141a2c;
  --muted: #5a5f6b;
  --hair: #e6e3dc;
  --on-dark: #f5f3ee;
  --on-dark-muted: rgba(245, 243, 238, .7);
  --hair-dark: rgba(245, 243, 238, .12);
  --shadow: 0 1px 0 rgba(20, 26, 44, .04), 0 12px 32px rgba(20, 26, 44, .06);
  --shadow-up: 0 1px 0 rgba(20, 26, 44, .04), 0 18px 40px rgba(20, 26, 44, .11);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --wrap: 1200px;
  --gut: clamp(20px, 4.4vw, 60px);
  --top-h: 72px;
  --r: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ivory); color: var(--text); font: 400 17px/1.75 var(--sans); letter-spacing: -.02em; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; }
i { font-style: normal; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
.dark :focus-visible, .foot :focus-visible { outline-color: var(--gold); }

.draft-bar { padding: 8px var(--gut); background: var(--navy-deep); color: var(--gold); font-size: 12.5px; font-weight: 500; letter-spacing: .02em; text-align: center; }

/* 머리글 — 원래대로 남색, 세리프 로고 */
.top { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 40px; padding: 0 max(var(--gut), calc((100% - var(--wrap)) / 2)); background: var(--navy); border-bottom: 1px solid var(--hair-dark); }
.logo { display: inline-flex; flex-direction: column; align-items: center; line-height: 1; text-decoration: none; white-space: nowrap; color: var(--on-dark); }
.logo b { margin-right: -.34em; font: 300 24px/1 var(--sans); letter-spacing: .34em; color: var(--logo-ink); }
.logo span { margin: 8px -.12em 0 0; font-size: 9px; font-weight: 500; letter-spacing: .12em; color: var(--logo-ink); }
.logo i { margin-top: 10px; font-style: normal; font-size: 15px; font-weight: 500; letter-spacing: .04em; color: var(--on-dark); }
.top .logo { margin-right: auto; }
.top .btn { flex: none; border-radius: 0; }
.m { display: none; }
/* 메뉴 세 묶음(가르치는 방식 · 수업 · 안내). PC는 한 줄에 묶음 사이 가는 세로줄, 휴대폰은 영문 묶음 이름을 위에 */
.menu { display: flex; align-items: center; }
.menu-grp { display: flex; align-items: center; gap: 30px; }
.menu-grp + .menu-grp { margin-left: 30px; padding-left: 30px; border-left: 1px solid var(--hair-dark); }
.menu-cap, .menu small { display: none; }
/* PC: 묶음 위에 휴대폰과 같은 금색 영문 이름을 작게 */
@media (min-width: 1001px) {
  .menu { padding-top: 16px; }
  .menu-grp { position: relative; }
  .menu-cap { display: block; position: absolute; bottom: 100%; margin-bottom: 7px; font-size: 9.5px; font-weight: 600; line-height: 1; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: var(--gold); }
}
.menu a { font-size: 14.5px; font-weight: 500; text-decoration: none; white-space: nowrap; color: var(--on-dark-muted); transition: color .2s; }
.menu a:hover { color: var(--on-dark); }
.menu a.on { color: var(--on-dark); text-decoration-line: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 10px; }
.menu-btn { display: none; flex: none; position: relative; width: 44px; height: 44px; margin-right: -10px; background: none; border: 0; cursor: pointer; }
.menu-btn span { position: absolute; left: 11px; right: 11px; height: 1px; background: var(--on-dark); }
.menu-btn span:first-child { top: 18px; }
.menu-btn span:last-child { top: 26px; }

/* 버튼 — 알약 모양 */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 28px; border-radius: 999px; font-size: 16px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s; }
.btn.small { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn.navy { background: var(--navy); color: var(--white); }
.btn.navy:hover { background: #2a3352; }
.btn.outline { box-shadow: inset 0 0 0 2px var(--navy); color: var(--navy); }
.btn.outline:hover { background: var(--navy); color: var(--white); }
.btn.solid { background: var(--gold); color: var(--navy); }
@media (hover: hover) { .btn.solid:hover { background: var(--on-dark); } } /* 휴대폰은 누른 뒤 흰색으로 남지 않게 */
.btn.line { box-shadow: inset 0 0 0 1.5px rgba(245, 243, 238, .4); color: var(--on-dark); }
.btn.line:hover { box-shadow: inset 0 0 0 1.5px var(--gold); color: var(--gold); }

/* 면 — 흰 면 위 카드는 아이보리, 아이보리 면 위 카드는 흰색 */
.band { padding: clamp(80px, 10vw, 136px) 0; }
.light { --fg-soft: var(--muted); --rule: rgba(20, 26, 44, .09); --card: var(--ivory); --card-shadow: none; background: var(--white); color: var(--text); }
.light.alt, .light.classes { --rule: var(--hair); --card: var(--white); --card-shadow: var(--shadow); background: var(--ivory); }
.dark { --fg-soft: var(--on-dark-muted); --rule: var(--hair-dark); --card: var(--navy-2); --card-shadow: none; background: var(--navy); color: var(--on-dark); }
.wrap { max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }
.cards > * { border-radius: var(--r); background: var(--card); box-shadow: var(--card-shadow); }

.tag { display: inline-flex; align-items: center; margin-bottom: 22px; padding: 6px 14px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 13.5px; font-weight: 700; line-height: 1.5; letter-spacing: -.01em; }
.dark .tag { background: rgba(200, 173, 127, .16); color: var(--gold); }
h1 { font-weight: 800; font-size: clamp(40px, 5.4vw, 80px); line-height: 1.16; letter-spacing: -.06em; }
h1 em { font-style: normal; color: var(--gold-deep); }
h2 { font-weight: 800; font-size: clamp(30px, 3.4vw, 48px); line-height: 1.3; letter-spacing: -.05em; }
h3 { letter-spacing: -.03em; }
.head { max-width: 760px; margin-bottom: clamp(44px, 5.4vw, 72px); }
.head .body-lg { margin-top: 20px; }
.body-lg { font-size: clamp(17px, 1.35vw, 18.5px); line-height: 1.85; color: var(--fg-soft); }
.body-lg.gap { margin-top: 24px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
#method .split { align-items: end; }
.fine { margin-top: 14px; font-size: 13.5px; color: var(--fg-soft); }

/* 첫 화면 — 원래대로 남색 바탕·흰 글씨, 오른쪽만 사진 대신 구문·어법·영작 세 원 */
.hero { position: relative; display: flex; align-items: center; min-height: min(860px, calc(100svh - var(--top-h))); padding: clamp(72px, 8vw, 120px) 0; overflow: hidden; }
.hero .wrap { position: relative; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .92fr); align-items: center; gap: clamp(32px, 5vw, 80px); }
.hero .eyebrow { margin-bottom: 26px; font-size: 11.5px; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; color: var(--on-dark); }
.display { font: 600 clamp(40px, 5.2vw, 78px)/1.22 var(--sans); letter-spacing: -.05em; }
.hero-sub { margin-top: clamp(30px, 3vw, 40px); padding-top: clamp(24px, 2.4vw, 30px); max-width: 520px; border-top: 1px solid rgba(245, 243, 238, .28); font: italic 400 clamp(21px, 1.9vw, 28px)/1.3 var(--serif); }
.lead { max-width: 520px; margin-top: 12px; font-size: clamp(16px, 1.3vw, 17.5px); line-height: 1.8; color: var(--on-dark-muted); }
.lead-more { display: block; margin-top: 10px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: clamp(36px, 3.6vw, 48px); }
.hero .btn.line { min-height: 56px; padding: 0 34px; border-radius: 0; font-size: 15px; font-weight: 600; letter-spacing: .01em; box-shadow: inset 0 0 0 1px rgba(245, 243, 238, .32); }
.hero .btn.line:hover { box-shadow: inset 0 0 0 1px var(--gold); }
.btn.arrow::after, .link::after { content: "\2192"; margin-left: 14px; font-weight: 300; transition: transform .25s; }
.btn.arrow:hover::after, .link:hover::after { transform: translateX(4px); }
.link { display: inline-flex; padding-bottom: 6px; border-bottom: 1px solid rgba(245, 243, 238, .4); font-size: 14.5px; font-weight: 600; text-decoration: none; color: var(--on-dark); }

/* 세 원 — 밝은 금색·회청·아이보리로 꽉 채우고, 겹친 곳은 서로 곱해져 진해짐(2026-11-23 대표 '원 색깔 채우자').
   isolation 으로 남색 바탕과는 섞이지 않게. 처음 열릴 때 바깥에서 모여듦 */
.venn { position: relative; width: 100%; max-width: 500px; aspect-ratio: 1; justify-self: center; isolation: isolate; }
.venn span { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; mix-blend-mode: multiply; animation: 1.4s var(--ease) both; }
.venn b { font-weight: 800; font-size: clamp(18px, 1.7vw, 24px); letter-spacing: -.03em; color: var(--navy); }
.venn .v1 { left: 0; top: 4%; background: #e3d3b4; animation-name: v1; }
.venn .v2 { right: 0; top: 4%; background: #c9cfdc; animation-name: v2; }
.venn .v3 { left: 19%; bottom: 0; background: var(--stone); animation-name: v3; }
.venn .v1 b { transform: translate(-30%, -24%); }
.venn .v2 b { transform: translate(30%, -24%); }
.venn .v3 b { transform: translateY(32%); }
.venn em { position: absolute; left: 50%; top: 50%; z-index: 2; transform: translate(-50%, -38%); padding: 9px 16px; background: var(--navy); color: var(--on-dark); font-style: normal; font-size: clamp(13px, 1.1vw, 15px); font-weight: 700; letter-spacing: -.01em; white-space: nowrap; animation: pop .6s var(--ease) .7s both; }
@keyframes v1 { from { transform: translate(-9%, -6%); opacity: 0; } }
@keyframes v2 { from { transform: translate(9%, -6%); opacity: 0; } }
@keyframes v3 { from { transform: translateY(10%); opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -38%) scale(.9); } }

/* 반 안내 — 중등·고등·시그니처·입시 특별반 네 묶음(2026-11-23 대표 구성). 시그니처는 연금색, 입시 특별반은 남색 */
.band.classes { padding: clamp(48px, 5.5vw, 72px) 0 clamp(80px, 9vw, 120px); }
.lineup { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grp { display: flex; flex-direction: column; padding: 26px 26px 18px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.grp small { font-size: 11.5px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.grp h3 { margin-top: 4px; font-size: clamp(21px, 1.9vw, 25px); font-weight: 800; line-height: 1.35; letter-spacing: -.04em; }
.grp ul { margin-top: 14px; }
.grp li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 13px 0; border-top: 1px solid var(--hair); font-size: 16.5px; font-weight: 700; line-height: 1.4; letter-spacing: -.02em; }
.grp li span { padding: 2px 9px; border-radius: 999px; background: var(--gold-soft); color: var(--gold-ink); font-size: 12.5px; font-weight: 700; letter-spacing: 0; }
.grp-note { margin-top: auto; padding: 12px 0 4px; border-top: 1px solid var(--hair); font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.grp.sig { background: var(--gold-soft); box-shadow: none; }
.grp.sig li { border-top-color: rgba(107, 82, 38, .16); }
.grp.special { background: var(--navy); color: var(--on-dark); box-shadow: none; }
.grp.special small { color: var(--gold); }
/* 입시 특별반 이름 — 금색 명패(이전 남색 카드의 '입시 특별반' 알약이 좋다는 대표 의견) */
.plate { display: inline-block; margin-top: 4px; padding: 5px 16px; border-radius: 999px; background: var(--gold); color: var(--navy); font-size: clamp(18px, 1.55vw, 21px); line-height: 1.4; }
.grp.special li { border-top-color: var(--hair-dark); }
.grp-more { display: inline-flex; align-self: flex-start; margin-top: auto; padding: 14px 0 4px; font-size: 14px; font-weight: 700; text-decoration: none; color: var(--gold); }
.grp-more::after { content: "\2192"; margin-left: 8px; transition: transform .25s; }
.grp-more:hover::after { transform: translateX(4px); }

/* 수업 철학 */
.philo-text { display: grid; gap: 16px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(52px, 6vw, 88px); }
.pillars li { padding: 30px 28px 32px; }
.pillars b { display: block; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.pillars h3 { margin-top: 12px; font-size: clamp(19px, 1.6vw, 22px); font-weight: 800; line-height: 1.4; }
.pillars p { margin-top: 8px; font-size: 15.5px; line-height: 1.7; color: var(--fg-soft); }

/* 수업의 기준 — 네 칸이 화살표로 이어지고, 마지막 '안정적인 등급'만 남색 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-top: clamp(52px, 6vw, 88px); }
.flow li { position: relative; padding: 26px 24px 28px; border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.flow li:not(:last-child)::after { content: "\2192"; position: absolute; top: 50%; right: -24px; width: 18px; transform: translateY(-50%); font-weight: 700; text-align: center; color: var(--gold-deep); }
.flow i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-soft); color: var(--navy); font-size: 14px; font-weight: 800; }
.flow h3 { margin-top: 18px; font-size: clamp(18px, 1.5vw, 20px); font-weight: 800; line-height: 1.4; }
.flow p { margin-top: 6px; font-size: 15px; line-height: 1.65; color: var(--muted); }
.flow li:last-child { background: var(--navy); color: var(--on-dark); box-shadow: none; }
.flow li:last-child i { background: var(--gold); }
.flow li:last-child p { color: var(--on-dark-muted); }

/* 실력이 쌓이니 내신 + 수능 — 흐름 아래 넓은 카드, 오른쪽 두 칸 사이에 + */
.both { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(28px, 4vw, 56px); margin-top: 30px; padding: clamp(28px, 3.4vw, 44px); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
.both h3 { font-size: clamp(21px, 2vw, 28px); font-weight: 800; line-height: 1.38; letter-spacing: -.045em; }
.both > div p { margin-top: 12px; max-width: 34em; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.both ul { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.both li { display: grid; gap: 8px; align-content: start; padding: 22px 22px 24px; border-radius: 18px; background: var(--ivory); }
.both li:first-child::after { content: "+"; position: absolute; top: 50%; left: 50%; z-index: 1; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--gold); color: var(--navy); font-size: 20px; font-weight: 700; line-height: 34px; text-align: center; }
.both b { font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; line-height: 1.1; letter-spacing: -.04em; color: var(--navy); }
.both span { font-size: 14.5px; line-height: 1.6; color: var(--muted); }

/* 두 가지 수업 — 남색 면 위 카드 두 장 */
.tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tracks article { padding: clamp(30px, 3.6vw, 48px); border-radius: var(--r); background: var(--navy-2); }
.tracks .sub { font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.tracks h3 { margin-top: 14px; font-size: clamp(24px, 2.2vw, 32px); font-weight: 800; line-height: 1.3; letter-spacing: -.045em; }
.tracks article p:not(.sub) { max-width: 520px; margin-top: 12px; color: var(--on-dark-muted); }
/* 원어 수업 — 회화 수업은 아니지만 함께 쌓이는 실력 */
.tracks article p.gain { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--hair-dark); font-weight: 600; color: var(--on-dark); }
.gain-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.gain-tags li { padding: 5px 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(200, 173, 127, .55); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; color: var(--gold); }

/* 고민 목록 — 둥근 칸, 열면 + 가 × 로 */
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--card); box-shadow: var(--card-shadow); }
.faq summary { position: relative; display: block; padding: 22px 66px 22px 26px; font-size: clamp(16.5px, 1.35vw, 18.5px); font-weight: 700; line-height: 1.5; letter-spacing: -.03em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; background: var(--white); color: var(--navy); font-size: 20px; font-weight: 500; line-height: 30px; text-align: center; transition: transform .25s, background .25s, color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--navy); color: var(--white); }
.faq details > div { padding: 0 66px 24px 26px; color: var(--muted); line-height: 1.8; }

/* 내신 — 흰 판 위 번호 목록 */
/* 내신 — 왼쪽 한 줄 소개, 오른쪽 세 묶음(수업·교재 퀄리티 / 선생님 전문성 / 학교별 맞춤 관리, 대표 구성 2026-11-23) */
.naesin-schools { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 32px; }
.naesin-schools li { padding: 22px 22px 24px; border-radius: 22px; background: var(--white); box-shadow: var(--shadow); }
.naesin-schools small { display: block; font-size: 12px; font-weight: 700; letter-spacing: .08em; color: var(--gold-deep); }
.naesin-schools b { display: block; margin-top: 6px; font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; letter-spacing: -.03em; }
.naesin-schools span { display: block; margin-top: 10px; font-size: 14.5px; line-height: 1.65; color: var(--muted); }
.naesin-lead { margin-top: 22px; font-size: clamp(19px, 1.7vw, 23px); font-weight: 800; line-height: 1.5; letter-spacing: -.035em; color: var(--text); }
.np-panel { padding-top: clamp(20px, 2.6vw, 30px); }
.np + .np { margin-top: 18px; padding-top: 20px; border-top: 1px solid var(--rule); }
.np h3 { display: flex; align-items: center; gap: 12px; font-size: clamp(19px, 1.65vw, 22px); font-weight: 800; letter-spacing: -.035em; }
.np h3 i { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 14px; font-weight: 800; }
.np h3 em { margin-left: -6px; font-style: normal; color: var(--gold-deep); }
.np ul { display: grid; gap: 10px; margin-top: 12px; padding-left: 44px; }
.np li { position: relative; font-size: 15px; line-height: 1.65; color: var(--muted); }
.np li::before { content: ""; position: absolute; left: -16px; top: .72em; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.np li b { display: block; font-size: 15.5px; font-weight: 800; color: var(--text); }
.panel { padding: 8px clamp(24px, 3vw, 36px) clamp(24px, 3vw, 32px); border-radius: var(--r); background: var(--card); box-shadow: var(--card-shadow); }

/* 수업과 관리 — 주기별 카드 세 장 */
.cycles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cycle { padding: 26px 28px 8px; }
.cycle .cycle-label { display: inline-block; padding: 5px 14px; border-radius: 999px; background: var(--navy); color: var(--white); font-size: 13px; font-weight: 700; }
.cycle li { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.cycle li:last-child { border-bottom: 0; }
.cycle h3 { font-size: clamp(17.5px, 1.45vw, 19.5px); font-weight: 800; line-height: 1.45; }
.cycle h3 small { margin-left: 8px; font-size: 12px; font-weight: 700; color: var(--gold-deep); }
.cycle p { margin-top: 4px; font-size: 15px; line-height: 1.7; color: var(--muted); }

/* 연세대 언더우드 입시 특별반 — 따로 한 섹션(남색 면), 영문 학교명은 첫 화면처럼 세리프 기울임 */
.band.uic { padding: clamp(80px, 9vw, 128px) 0; }
.uic .split { align-items: end; }
.uic-body { display: grid; justify-items: start; gap: 28px; }
.uic-list { margin-top: clamp(44px, 5vw, 64px); }
.uic-list h3 { margin-top: 12px; }
.uic-list article p.uic-en { margin-top: 6px; font: italic 400 clamp(18px, 1.6vw, 22px)/1.3 var(--serif); color: var(--gold); }

/* 수강 안내 — 중등·고등 수업 횟수 두 칸, 그 아래 요일·시각별 시간표(_src/make_timetable.py 가 만든 표, 휴대폰은 옆으로 밀기) */
.freq { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.freq-item { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 20px; padding: clamp(22px, 2.6vw, 30px) clamp(24px, 3vw, 36px); }
.freq-item h3 { flex: none; font-size: clamp(19px, 1.6vw, 22px); font-weight: 800; }
.freq-item p { font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; letter-spacing: -.02em; }

.timetable { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.tt-hint { display: none; font-size: 13px; color: var(--muted); }
.tt-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: clamp(22px, 2.6vw, 32px); border-radius: var(--r); background: var(--white); box-shadow: var(--shadow); }
/* 메뉴 '특강'으로 올 때, 아직 떠오르기 전(16px 아래)이라 머리글에 가리지 않게 여유 */
#tt-special { grid-column: 1 / -1; scroll-margin-top: 16px; }
.tt-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; }
.tt-head h3 { font-size: clamp(19px, 1.7vw, 23px); font-weight: 800; }
.tt-head p { font-size: 14px; font-weight: 600; color: var(--gold-deep); font-variant-numeric: tabular-nums; }
.tt-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tt { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; border-top: 1px solid var(--navy); border-left: 1px solid var(--hair); table-layout: fixed; font-size: 12.5px; line-height: 1.4; text-align: center; }
.tt th, .tt td { height: 40px; padding: 6px; border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.tt thead th { height: 34px; background: var(--navy); color: var(--on-dark); font-size: 13px; font-weight: 700; border-right-color: rgba(245, 243, 238, .18); border-bottom-color: var(--navy); }
.tt thead th:first-child, .tt tbody th { width: 92px; }
.tt tbody th { font-weight: 600; color: var(--muted); background: var(--ivory); font-variant-numeric: tabular-nums; white-space: nowrap; }
/* 옆으로 밀어도 시간 칸은 왼쪽에 붙어 있게 */
.tt thead th:first-child, .tt tbody th { position: sticky; left: 0; z-index: 1; }
.tt td { font-weight: 700; color: var(--text); }
.tt td b { display: block; font-weight: 800; }
.tt td b + b { display: inline-block; margin-top: 6px; padding: 3px 11px; border-radius: 999px; background: var(--navy); color: var(--gold); font-size: 12.5px; font-weight: 800; letter-spacing: -.01em; } /* '원어 100%' 눈에 띄게(대표 요청) */
.tt td.test { font-size: 12px; font-weight: 500; color: var(--muted); }
.tt td.fnd { background: #d6deec; }
.tt td.adv { background: #e7ecf5; }
.tt td.essay { background: #f3e5c3; }
.tt td.voc { background: #dcebd9; }
.tt td.sm { background: #f0dbe6; }
/* 한 수업(수업 칸 + 그 수업의 테스트·작성 칸)을 그 수업 색 테두리로 한 번 두름 */
.tt td.g-fnd { --g: #7d90b6; }
.tt td.g-adv { --g: #9eaecb; }
.tt td.g-essay { --g: #c9a75c; }
.tt td.g-voc { --g: #86b282; }
.tt td.g-sm { --g: #c886a8; }
.tt td.g-top { box-shadow: inset 2px 0 0 var(--g), inset -2px 0 0 var(--g), inset 0 2px 0 var(--g); border-bottom-color: transparent; }
.tt td.g-bot { box-shadow: inset 2px 0 0 var(--g), inset -2px 0 0 var(--g), inset 0 -2px 0 var(--g); }
.tt.tt-sat { min-width: 0; max-width: 460px; }
.tt.tt-am { min-width: 640px; }

.fee { display: grid; grid-template-columns: 160px 1fr; gap: 6px 24px; align-items: baseline; margin-top: 18px; padding: clamp(24px, 2.6vw, 30px) clamp(26px, 3vw, 40px); border-radius: var(--r); background: var(--card); box-shadow: var(--card-shadow); }
.fee > :not(.fee-title) { grid-column: 2; }
.fee-title { font-size: clamp(19px, 1.6vw, 22px); font-weight: 800; }
#feesEmpty { color: var(--muted); }
.report { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.6; }
.report th, .report td { padding: 14px 20px 14px 0; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--hair); }
.report thead th { padding-block: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.report tbody th { font-weight: 700; white-space: nowrap; }
.report td { color: var(--muted); }

/* 상담 — 남색 면 */
.band.consult { padding: clamp(72px, 8vw, 112px) 0; }
.consult .split { align-items: start; }
.consult-lead { margin: 18px 0 36px; }
.contact { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 30px; }

/* 상담 문의 양식 — 남색 면 위. 학년·관심 수업은 알약 체크(복수 선택) */
.inq { display: grid; gap: 22px; }
.inq .f { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.inq .lab { padding: 0; font-size: 14.5px; font-weight: 700; color: var(--on-dark); }
.inq .lab small { margin-left: 6px; font-size: 13px; font-weight: 600; color: var(--gold); }
.inq legend.lab { margin-bottom: 8px; }
.inq input[type=tel], .inq input[type=text], .inq textarea { width: 100%; padding: 14px 16px; border: 1px solid rgba(245, 243, 238, .22); border-radius: 14px; background: var(--navy-2); color: var(--on-dark); font: 500 16px/1.5 var(--sans); letter-spacing: -.01em; }
.inq textarea { min-height: 120px; resize: vertical; }
.inq ::placeholder { color: rgba(245, 243, 238, .42); }
.inq input[type=tel]:focus, .inq input[type=text]:focus, .inq textarea:focus { outline: 0; border-color: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-block; padding: 9px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(245, 243, 238, .28); font-size: 14.5px; font-weight: 600; color: var(--on-dark); transition: background .2s, color .2s; }
.chip input:checked + span { background: var(--gold); color: var(--navy); box-shadow: none; }
.chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.65; color: var(--on-dark-muted); cursor: pointer; }
.agree input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--gold); }
.agree a { color: var(--gold); }
.inq .bad input[type=tel], .inq input[type=tel].bad, .inq textarea.bad { border-color: #e58c86; }
.inq .bad .chip span { box-shadow: inset 0 0 0 1px #e58c86; }
.agree.bad span { color: #f0b3ae; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.inq .btn { justify-self: start; min-width: 220px; border: 0; font-family: var(--sans); cursor: pointer; }
.inq .btn:disabled { opacity: .6; cursor: default; }
.inq-out { min-height: 1.4em; font-size: 15px; font-weight: 700; color: #ffb3a7; }
.inq-out:empty { min-height: 0; }
.inq-done { padding: 28px; border-radius: var(--r); background: var(--navy-2); color: var(--on-dark-muted); }
.inq-done-title { margin-bottom: 6px; font-size: 20px; font-weight: 800; color: var(--on-dark); }
.ig-alt { margin-top: 18px; font-size: 14px; color: var(--on-dark-muted); }
.ig-alt a { font-weight: 600; color: var(--gold); text-decoration: none; }
.foot-links { margin-top: 18px; font-size: 13px; }
.foot-links a { color: var(--on-dark-muted); }
.contact p { color: var(--on-dark-muted); }
.visit { display: flex; gap: 20px; padding-top: 22px; border-top: 1px solid var(--hair-dark); font-size: clamp(16px, 1.3vw, 17.5px); }
.visit dt { flex: none; font-weight: 700; color: var(--gold); }
.visit dd { color: var(--on-dark-muted); }

/* 바닥글 — 학원법상 표시 항목 */
.foot { padding: 56px 0 64px; background: var(--navy-deep); color: var(--on-dark); }
.foot .logo { margin-bottom: 28px; color: var(--on-dark); }
.foot .logo span { color: var(--logo-ink); }
.foot dl { display: flex; flex-wrap: wrap; gap: 10px 40px; padding-top: 26px; border-top: 1px solid var(--hair-dark); font-size: 13.5px; }
.foot dl > div { display: flex; gap: 12px; }
.foot dt { font-weight: 600; }
.foot dd { color: var(--on-dark-muted); }

/* 스크롤하면 천천히 올라오기 — main.js 가 .reveal 을 붙일 때만 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* 메뉴가 여덟 개라 중간 폭에서 간격만 줄임 */
/* 교재 (DNA SERIES): 세 줄의 머리글자 D·N·A 가 세로로 이어져 읽힌다 */
.dna-eq { margin-top: 22px; font-family: var(--serif); font-size: clamp(19px, 1.7vw, 24px); line-height: 1.5; color: var(--muted); }
.dna-eq b { font-weight: 700; color: var(--gold-deep); }
.dna-eq i { font-style: normal; margin: 0 .35em; color: var(--gold-deep); }
.dna-eq strong { font-weight: 700; letter-spacing: .06em; color: var(--text); white-space: nowrap; }
.book-row { display: grid; grid-template-columns: clamp(96px, 11vw, 150px) minmax(0, 1fr) auto; align-items: center; gap: clamp(20px, 3.4vw, 56px); padding: clamp(30px, 3.6vw, 48px) 0; border-top: 1px solid var(--hair); }
.book-init { font-family: var(--serif); font-size: clamp(120px, 13vw, 190px); font-weight: 600; line-height: .8; text-align: center; color: var(--gold-deep); }
.book-text h3 { font-family: var(--serif); font-size: clamp(32px, 3.2vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: .02em; }
.book-text h3 b { color: var(--gold-deep); font-weight: 600; }
.book-text .what { margin-top: 8px; font-size: 16px; font-weight: 700; color: var(--gold-ink); }
.book-vols { margin-top: 20px; display: grid; gap: 14px; }
.book-vols li { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 2px 14px; }
.book-vols b { grid-row: 1 / span 2; font-family: var(--serif); font-size: 24px; line-height: 1.2; color: var(--gold-deep); }
.book-vols strong { font-size: 16.5px; letter-spacing: .04em; }
.book-vols span { font-size: 15.5px; line-height: 1.6; color: var(--muted); }
.book-soon { display: inline-block; margin-top: 18px; padding: 3px 12px; border: 1px solid var(--hair); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted); }
.book-covers { display: flex; gap: clamp(12px, 1.8vw, 24px); }
.book-covers .bk { width: clamp(112px, 13vw, 176px); }
.book-covers.three .bk { width: clamp(100px, 11.4vw, 156px); }
/* D·N·A 를 세로 금색 선으로 잇는다(.link). 글자가 선을 가려 글자 사이에만 보인다. .navy = 머리글자 남색 */
.books.dna-line .book-row { position: relative; }
.books.dna-line .book-row::before { content: ""; position: absolute; left: calc(clamp(96px, 11vw, 150px) / 2); top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--gold); }
.books.dna-line .book-row:first-child::before { top: 50%; }
.books.dna-line .book-row:last-child::before { bottom: 50%; }
.books.dna-line .book-init { position: relative; z-index: 1; padding: 18px 0; background: var(--white); }
.books.dna-line .book-covers { position: relative; z-index: 1; }
.books.dna-navy .book-init { color: var(--navy); }
.bk img { display: block; width: 100%; height: auto; border-radius: 3px; background: #fff; box-shadow: 0 1px 0 rgba(20, 26, 44, .06), 0 14px 30px rgba(20, 26, 44, .16); }

/* 리얼 후기: 받은 메시지·후기 캡처를 벽처럼 쌓는다. 묶음은 탭으로 바꾸고, 많은 것은 '더 보기'로 연다(main.js) */
.rv-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.rv-tabs button { min-height: 44px; padding: 0 18px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--hair); font-size: 15px; font-weight: 700; color: var(--muted); background: var(--white); }
.rv-tabs button b { margin-left: 4px; font-weight: 600; color: var(--gold-deep); }
.rv-tabs button.on { background: var(--navy); color: var(--white); box-shadow: none; }
.rv-tabs button.on b { color: var(--gold); }
.rv-js .rv-group:not(.on) { display: none; }
.rv-wall { columns: 3; column-gap: 18px; }
.rv-wall.two { columns: 2; }
.rv-wall li { break-inside: avoid; margin-bottom: 18px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); background: var(--ivory); }
.rv-wall li[hidden] { display: none; }
.rv-wall a { display: block; cursor: zoom-in; }
.rv-wall img { display: block; width: 100%; height: auto; }
.rv-more { margin-top: 8px; text-align: center; }
.rv-note { margin-top: 6px; font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.rv-zoom { position: fixed; inset: 0; z-index: 200; display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px 24px; overflow: auto; background: rgba(13, 18, 30, .88); }
.rv-zoom img { max-width: min(100%, 1100px); height: auto; border-radius: 8px; background: #fff; }
.rv-zoom button { position: fixed; top: 14px; right: 16px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--white); color: var(--navy); font-size: 14px; font-weight: 700; }

@media (max-width: 1320px) {
  .top { gap: 28px; }
  .menu-grp { gap: 22px; }
  .menu-grp + .menu-grp { margin-left: 22px; padding-left: 22px; }
}

/* 휴대폰·태블릿 메뉴: 묶음 이름(금색 영문) 아래로 큰 글씨, 같은 묶음 안에서만 가는 줄 */
@media (max-width: 1160px) { .top { gap: 16px; } .menu-grp { gap: 14px; } .menu-grp + .menu-grp { margin-left: 14px; padding-left: 14px; } }
@media (min-width: 1001px) and (max-width: 1080px) { .top { gap: 12px; } .menu-grp { gap: 11px; } .menu-grp + .menu-grp { margin-left: 11px; padding-left: 11px; } .menu a { font-size: 14px; } .top .btn.small { padding: 0 14px; } }
@media (max-width: 1000px) {
  .rv-wall, .rv-wall.two { columns: 1; }
  .rv-wall li { margin-bottom: 12px; }
  .rv-tabs { margin-bottom: 20px; }
  .rv-tabs button { padding: 0 14px; font-size: 14px; }
  .book-row { grid-template-columns: 64px minmax(0, 1fr); align-items: start; gap: 18px 16px; }
  .book-init { font-size: 84px; line-height: .86; }
  .books.dna-line .book-row::before { left: 32px; }
  .books.dna-line .book-row:first-child::before { top: 60px; }
  .books.dna-line .book-row:last-child::before { bottom: auto; height: 60px; }
  .books.dna-line .book-init { padding: 10px 0; }
  .book-covers { grid-column: 2; gap: 10px; }
  .book-covers .bk { width: 44%; }
  /* 세 권은 다른 줄과 같은 크기로 두고 겹쳐서 같은 폭에 맞춘다 */
  .book-covers.three { gap: 0; }
  .book-covers.three .bk { width: 44%; flex: none; }
  .book-covers.three .bk + .bk { margin-left: calc(-22% + 5px); }
  .book-covers.three .bk + .bk img { box-shadow: -8px 0 16px rgba(0, 0, 0, .5), 0 14px 30px rgba(20, 26, 44, .16); }
  .top { gap: 12px; }
  .menu-btn { display: block; }
  .menu { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; height: calc(100vh - var(--top-h)); height: calc(100dvh - var(--top-h)); overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--gut) 28px; background: var(--navy); border-bottom: 1px solid var(--hair-dark); }
  .menu.open { display: flex; }
  .menu-grp { flex-direction: column; align-items: stretch; gap: 0; }
  .menu-grp + .menu-grp { margin: 14px 0 0; padding: 0; border: 0; }
  .menu-cap { display: block; padding: 20px 0 4px; font-size: 12px; font-weight: 600; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
  .menu a { padding: 16px 0; font-size: 20px; font-weight: 700; line-height: 1.4; color: var(--on-dark); border-top: 1px solid var(--hair-dark); }
  .menu-cap + a { border-top: 0; }
  .menu small { display: block; margin-top: 4px; font-size: 14px; font-weight: 500; letter-spacing: -.01em; color: var(--on-dark-muted); }
  .menu a.on { color: var(--gold); text-decoration: none; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(2)::after { display: none; }
  .lineup { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .split, .tracks, .freq, .cycles, .pillars, .lineup, .hero .wrap, .both { grid-template-columns: 1fr; }
  .split, #method .split, .consult .split { align-items: start; }
  /* 휴대폰: 원래 사진 자리(제목 위)에 세 원 */
  .hero { display: block; min-height: 0; padding: 36px 0 64px; }
  .hero .venn { order: -1; max-width: 280px; margin-bottom: 4px; }
  .display { font-size: clamp(30px, 8.8vw, 46px); }
  .m { display: inline; }
  .lineup { gap: 12px; }
  .grp { padding: 22px 22px 14px; }
  .pillars, .cycles, .tracks, .freq { gap: 12px; }
  .tt-hint { display: block; }
  .tt thead th:first-child, .tt tbody th { width: 80px; font-size: 11.5px; }
  .tt-block { padding: 20px 16px; }
  .pillars li { padding: 24px 24px 26px; }
  .flow { grid-template-columns: 1fr; gap: 30px; }
  .flow li:nth-child(2)::after { display: block; }
  .flow li:not(:last-child)::after { content: "\2193"; top: auto; right: auto; bottom: -27px; left: 50%; transform: translateX(-50%); }
  .fee { grid-template-columns: 1fr; }
  .fee > :not(.fee-title) { grid-column: auto; }
  .pc { display: none; }
  .report tbody th { white-space: normal; }
}

@media (max-width: 560px) {
      body { font-size: 16.5px; }
  .inq .btn { justify-self: stretch; }
  .chip span { padding: 8px 13px; font-size: 14px; }
  .top { gap: 10px; }
  .logo b { font-size: 20px; }
  .logo span { font-size: 8px; letter-spacing: .2em; margin-right: -.2em; }
  .hero .eyebrow { font-size: 10.5px; letter-spacing: .2em; }
  .actions .btn { flex: 1 1 100%; }
  .both ul { grid-template-columns: 1fr; }
  .contact .btn { width: 100%; }
  .faq summary { padding: 18px 58px 18px 20px; }
  .faq summary::after { right: 16px; }
  .faq details > div { padding: 0 20px 20px; }
  .visit { flex-direction: column; gap: 4px; }
}

@media (max-width: 380px) {
  .logo b { font-size: 18px; letter-spacing: .26em; margin-right: -.26em; }
  .logo span { font-size: 7.5px; letter-spacing: .14em; margin-right: -.14em; }
  .btn.small { min-height: 36px; padding: 0 12px; font-size: 13px; }
  .menu-btn { width: 38px; margin-right: -6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .venn span, .venn em { animation: none; }
  .reveal { opacity: 1; transform: none; }
}
