/* 토프러스어학원 홈페이지 — 상담 자료의 보라·주황·노랑을 그대로 */
:root {
  --purple: #5b2786;
  --purple-d: #3e165f;
  --purple-l: #f3eef9;
  --orange: #f25d1e;
  --orange-l: #fff1e8;
  --yellow: #ffc93c;
  --yellow-l: #fff8e3;
  --pink: #d63a78;
  --ink: #1d1a2b;
  --muted: #625d75;
  --line: #e6e1ee;
  --bg: #ffffff;
  --navy: #141a2e;
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 92vw); margin: 0 auto; }
.wrap.narrow { width: min(760px, 92vw); }
.skip { position: absolute; left: -999px; top: 0; background: var(--purple); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
em { font-style: normal; color: var(--orange); }

/* 머리말 */
.top { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, 0.95); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 22px; height: 70px; }
.logo { display: flex; flex: none; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 99px; color: var(--muted); white-space: nowrap; }
.nav a:hover { background: var(--purple-l); color: var(--purple); }
.auth { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.auth .who { font-size: 14px; color: var(--muted); max-width: 210px; overflow: hidden; text-overflow: ellipsis; }
/* 로그인하면 머리말이 길어진다: 메뉴 글씨를 조금 줄이고, 더 좁으면 이름 칸을 숨긴다 */
@media (max-width: 1360px) { body.signed-in .nav a { font-size: 14px; padding: 8px 9px; } body.signed-in .nav { gap: 0; } }
@media (max-width: 1240px) { body.signed-in .auth .who { display: none; } }
.auth .who b { color: var(--ink); }
.btn-line, .btn-solid, .btn-soft { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 99px; font: inherit; font-weight: 700; font-size: 14px; padding: 9px 18px; text-decoration: none; cursor: pointer; border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.btn-line:hover { border-color: var(--purple); color: var(--purple); }
.btn-solid { background: var(--purple); border-color: var(--purple); color: #fff; font-size: 16px; padding: 13px 26px; }
.btn-solid:hover { background: var(--purple-d); }
.btn-soft { background: var(--purple-l); border-color: transparent; color: var(--purple); }
.btn-soft:hover { background: #e7ddf3; }

/* 첫 화면 */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, var(--purple-l) 100%); padding: 72px 0 78px; text-align: center; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(2px); opacity: 0.55; }
.hero::before { width: 420px; height: 420px; right: -120px; top: -140px; background: radial-gradient(circle, var(--yellow) 0, transparent 70%); }
.hero::after { width: 380px; height: 380px; left: -140px; bottom: -160px; background: radial-gradient(circle, #ffb08a 0, transparent 70%); }
.hero-in { position: relative; z-index: 1; }
.hero-kicker { display: inline-block; margin: 0 0 18px; color: var(--orange); font-weight: 800; font-size: 16px; letter-spacing: -0.01em; }
.hero h1 { margin: 0; font-size: clamp(34px, 6vw, 64px); line-height: 1.18; letter-spacing: -0.04em; font-weight: 900; color: var(--purple-d); }
.hero-sub { margin: 18px 0 0; font-size: clamp(17px, 2.2vw, 22px); font-weight: 700; color: var(--ink); }
.hero-hand { display: inline-block; margin: 26px 0 0; font-size: clamp(20px, 3vw, 30px); font-weight: 900; color: var(--purple); transform: rotate(-2deg); background: linear-gradient(transparent 62%, rgba(242, 93, 30, 0.5) 62%); padding: 0 6px; }
/* 네 버튼은 Instagram 버튼 크기(191px)에 맞춰 모두 같은 크기, 글자는 가운데 */
.pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin: 40px auto 0; }
.pill { display: inline-flex; align-items: center; width: 191px; box-sizing: border-box; gap: 8px; padding: 11px 12px 11px 26px; border-radius: 99px; color: #fff; font-weight: 800; font-size: 18px; text-decoration: none; box-shadow: 0 8px 22px rgba(30, 10, 60, 0.15); transition: transform 0.15s; }
.pill:hover { transform: translateY(-2px); }
.pill b { flex: 1; text-align: center; font-weight: inherit; white-space: nowrap; }
.pill span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #fff; font-size: 13px; font-weight: 900; }
.p-purple { background: #9b3ad6; } .p-purple span { color: #9b3ad6; }
.p-green { background: #3dbb55; } .p-green span { color: #3dbb55; }
.p-red { background: #ee3b3b; } .p-red span { color: #ee3b3b; }
.p-pink { background: #cf3c74; } .p-pink span { color: #cf3c74; }

/* 공통 구역 */
.sec { padding: 92px 0; }
.sec.alt { background: #faf8fd; }
.sec.dark { background: var(--purple-d); color: #fff; }
.sec.dark .lead, .sec.dark .eyebrow { color: #d9c9ee; }
.eyebrow { margin: 0 0 10px; font-weight: 800; color: var(--purple); letter-spacing: 0.08em; text-transform: uppercase; font-size: 13px; }
.sec h2 { margin: 0 0 16px; font-size: clamp(28px, 4vw, 44px); line-height: 1.25; letter-spacing: -0.035em; font-weight: 900; }
.lead { margin: 0 0 38px; color: var(--muted); font-size: 18px; max-width: 760px; }
.sub { margin: 56px 0 20px; font-size: 26px; letter-spacing: -0.03em; }
.band { margin: 28px 0 0; background: var(--purple); color: #fff; border-radius: 16px; padding: 18px 24px; font-weight: 800; font-size: 19px; text-align: center; }
.small { color: var(--muted); font-size: 14px; }
.ticks { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--orange); font-weight: 900; }

/* 변화하는 대입 */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; counter-reset: f; }
.flow-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 0 18px; box-shadow: 0 8px 26px rgba(40, 20, 80, 0.06); }
.flow-card h3 { margin: 0 0 14px; border-radius: var(--radius) var(--radius) 0 0; background: var(--purple); color: #fff; font-size: 18px; text-align: center; padding: 13px 10px; }
.flow-card p { margin: 0 18px 10px; text-align: center; font-size: 15px; }
.flow-card .hl { border-top: 2px dashed var(--line); padding-top: 12px; color: var(--orange); font-weight: 800; }
.flow-card:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 46%; color: var(--purple); font-weight: 900; font-size: 20px; z-index: 2; }
.grade { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; margin-top: 54px; align-items: center; }
.grade h3 { margin: 0 0 14px; font-size: 24px; letter-spacing: -0.03em; }
.grade table { width: 100%; border-collapse: collapse; border-radius: 14px; overflow: hidden; font-size: 19px; text-align: center; font-weight: 700; }
.grade th { background: var(--purple); color: #fff; padding: 12px; }
.grade td { padding: 11px; border-bottom: 1px solid var(--line); background: #fff; }
.grade tr:nth-child(even) td { background: #faf8fd; }
.grade tr:first-child td { color: var(--orange); }
.grade-notes { list-style: none; counter-reset: n; padding: 0; margin: 0; display: grid; gap: 14px; }
.grade-notes li { counter-increment: n; position: relative; background: #faf8fd; border-radius: 16px; padding: 18px 18px 18px 58px; font-size: 16px; }
.grade-notes li::before { content: counter(n); position: absolute; left: 18px; top: 18px; width: 28px; height: 28px; border-radius: 50%; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.grade-notes b { color: var(--orange); }

/* 교육 */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.panel h3 { margin: 0 0 10px; font-size: 24px; letter-spacing: -0.03em; }
.panel p { margin: 0; color: var(--muted); }
.talent-row { display: flex; align-items: baseline; gap: 14px; background: var(--purple); color: #fff; border-radius: 14px; padding: 14px 18px; margin-top: 10px; }
.talent-row b { font-size: 24px; font-weight: 900; min-width: 92px; letter-spacing: 0.02em; }
.method { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; }
.method-side { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; padding-bottom: 34px; }
.chips { display: grid; gap: 8px; }
.chips span { background: linear-gradient(90deg, #fff4d6, var(--yellow)); border-radius: 0 99px 99px 0; padding: 7px 26px 7px 16px; font-weight: 800; font-size: 14px; color: var(--purple-d); }
.chips.purple span { background: linear-gradient(90deg, #cdb5e6, var(--purple)); color: #fff; border-radius: 99px 0 0 99px; padding: 7px 16px 7px 26px; text-align: right; }
.disc { width: 132px; height: 132px; border-radius: 50%; display: grid; place-content: center; text-align: center; color: #fff; background: var(--orange); box-shadow: 0 10px 24px rgba(242, 93, 30, 0.3); }
.disc b { font-size: 30px; line-height: 1; color: var(--purple-d); }
.disc small { font-size: 11px; font-weight: 700; padding: 4px 12px 0; line-height: 1.3; }
.plus { font-size: 48px; font-weight: 900; color: var(--purple); }
.cap { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; text-align: center; font-weight: 800; color: var(--purple); font-size: 18px; }
.method-note { grid-column: 1 / -1; margin: 6px 0 0; text-align: center; color: var(--muted); }
.curri { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 26px; }
.curri article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.curri h3 { margin: 0 0 12px; font-size: 26px; letter-spacing: -0.02em; }
.curri h3 small { display: block; font-size: 14px; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.curri ul { margin: 0 0 16px; padding-left: 20px; font-weight: 600; }
.curri .arrow { font-size: 34px; color: #9a96a8; }
.tag { margin: 0; text-align: center; border-radius: 12px; padding: 10px; font-weight: 800; font-size: 17px; }
.tag.fl { background: var(--purple-l); color: var(--purple); }
.tag.ac { background: #e6f4fb; color: #18638a; }

/* 실력향상 프로젝트 */
.prog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: 0 8px 26px rgba(40, 20, 80, 0.05); }
.card.wide { grid-column: span 2; }
.card.write { grid-column: 1 / -1; }
.card-tag { display: inline-block; margin: 0 0 10px; background: var(--orange-l); color: var(--orange); font-weight: 900; font-size: 13px; border-radius: 99px; padding: 4px 12px; }
.card h3 { margin: 0 0 12px; font-size: 21px; letter-spacing: -0.03em; line-height: 1.35; }
.card p { margin: 0 0 10px; }
.pairs { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.pairs li { display: grid; gap: 4px; }
.pairs span { font-size: 13px; color: var(--muted); }
.pairs b { background: var(--purple); color: #fff; border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.steps4 { list-style: none; padding: 0; margin: 6px 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; counter-reset: s; }
.steps4 li { counter-increment: s; background: var(--yellow-l); border-radius: 16px 16px 60px 60px; padding: 14px 10px 22px; text-align: center; }
.steps4 li:nth-child(even) { background: #ffa646; color: #fff; }
.steps4 li:nth-child(4) { background: var(--orange); }
.steps4 li::before { content: "Step " counter(s); display: block; font-size: 12px; font-weight: 700; opacity: 0.8; }
.steps4 b { display: block; font-size: 17px; margin: 4px 0; }
.steps4 span { font-size: 12.5px; }
.ladder { display: flex; align-items: flex-end; gap: 6px; height: 170px; margin: 8px 0 18px; }
.ladder div { --c: #e53935; flex: 1; height: var(--h); border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.2)), var(--c); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding: 8px 4px; text-align: center; }
/* 왼쪽부터 빨·주·노·초·파·남·보 */
.ladder div:nth-child(1) { --c: #e53935; }
.ladder div:nth-child(2) { --c: #f57c00; }
.ladder div:nth-child(3) { --c: #fbc02d; color: #3d2c00; }
.ladder div:nth-child(4) { --c: #2e9e4f; }
.ladder div:nth-child(5) { --c: #1e6fd9; }
.ladder div:nth-child(6) { --c: #283593; }
.ladder div:nth-child(7) { --c: #7b3fbf; }
.ladder b { font-size: 17px; }
.ladder span { font-size: 11px; opacity: 0.9; line-height: 1.25; }
.nums { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0 0 14px; }
.nums div { background: #faf8fd; border-radius: 14px; padding: 12px; text-align: center; }
.nums b { display: block; font-size: 22px; color: var(--purple); letter-spacing: -0.02em; }
.nums div:first-child b { color: var(--orange); }
.nums span { font-size: 12.5px; color: var(--muted); }
.stairs { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; align-items: end; }
.stairs li { border-radius: 12px; color: #fff; padding: 12px 6px; text-align: center; background: var(--purple); }
/* 칸마다 높이가 확실히 다르게: 글자 양과 상관없이 고정 높이, 30px씩 올라감 */
.stairs li { box-sizing: border-box; overflow: hidden; }
/* 왼쪽부터 빨·주·노·초·파·남·보 */
.stairs li:nth-child(1) { height: 118px; background: #e53935; }
.stairs li:nth-child(2) { height: 148px; background: #f57c00; }
.stairs li:nth-child(3) { height: 178px; background: #fbc02d; color: #3d2c00; }
.stairs li:nth-child(4) { height: 208px; background: #2e9e4f; }
.stairs li:nth-child(5) { height: 238px; background: #1e6fd9; }
.stairs li:nth-child(6) { height: 268px; background: #283593; }
.stairs li:nth-child(7) { height: 298px; background: #7b3fbf; }
.stairs b { display: block; font-size: 14px; line-height: 1.3; }
.stairs span { display: block; font-size: 11px; opacity: 0.9; margin-top: 4px; }
.small-band { font-size: 16px; padding: 14px 18px; }
.arrows { list-style: none; padding: 0; margin: 10px 0 18px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; counter-reset: a; }
.arrows li { counter-increment: a; background: var(--purple); color: #fff; font-weight: 800; font-size: 14px; padding: 12px 6px 12px 14px; text-align: center; clip-path: polygon(0 0, 88% 0, 100% 50%, 88% 100%, 0 100%, 10% 50%); }
/* 단계별 색: 빨 · 주 · 노 · 초 · 파 · 남 */
.arrows li:nth-child(1) { background: #e23b3b; }
.arrows li:nth-child(2) { background: #f27a1a; }
.arrows li:nth-child(3) { background: #f7c21b; color: #3d2c00; }
.arrows li:nth-child(4) { background: #2a9d57; }
.arrows li:nth-child(5) { background: #1f6fd8; }
.arrows li:nth-child(6) { background: #2e2f8f; }
.arrows li::before { content: counter(a) ". "; opacity: 0.8; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.three div { background: #eefaf4; border-radius: 14px; padding: 14px; }
.three b { display: block; color: #127a59; font-size: 17px; margin-bottom: 4px; }
.three span { font-size: 13.5px; }

/* 1년 */
.months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.months div { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.months b { display: block; background: var(--orange); color: #fff; padding: 7px 14px; font-size: 16px; }
.months div:nth-child(4n+2) b, .months div:nth-child(4n+4) b { background: var(--purple); }
.months ul { list-style: none; margin: 0; padding: 10px 14px 14px; font-size: 14px; color: var(--muted); }
/* 행사마다 한 줄씩 */
.months li { position: relative; padding-left: 12px; line-height: 1.55; }
.months li + li { margin-top: 3px; }
.months li::before { content: ''; position: absolute; left: 0; top: 0.68em; width: 5px; height: 5px; border-radius: 50%; background: var(--orange); }
.months div:nth-child(4n+2) li::before, .months div:nth-child(4n+4) li::before { background: var(--purple); }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.gallery figure { margin: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { padding: 14px 18px 18px; color: var(--muted); font-size: 14px; }
.gallery figcaption b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }

/* 1등급 반 */
.sec.dark .sub { color: #fff; }
.sec.dark em { color: var(--yellow); }
.missions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.missions div { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); border-radius: 18px; padding: 20px; }
.missions b { display: block; font-size: 20px; margin-bottom: 6px; color: #ffd8c4; }
.missions span { font-size: 14px; color: #ece4f6; }
.missions .goal { background: var(--orange); border-color: var(--orange); }
.missions .goal b { color: #fff; font-size: 26px; }
.missions .goal span { color: #fff; font-weight: 700; }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.why div { background: #fff; color: var(--ink); border-radius: 18px; padding: 22px; }
.why b { display: block; font-size: 22px; color: var(--purple); margin-bottom: 6px; }
.why span { font-size: 14.5px; }
.road { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; position: relative; }
.road::before { content: ""; position: absolute; left: 4%; right: 4%; top: 13px; height: 3px; background: rgba(255, 255, 255, 0.25); }
.road li { position: relative; padding-top: 40px; }
.road li::before { content: ""; position: absolute; top: 3px; left: 50%; translate: -50% 0; width: 22px; height: 22px; border-radius: 50%; background: var(--dot, #ff5252); box-shadow: 0 0 0 5px rgba(255, 255, 255, 0.18); }
/* 왼쪽부터 빨·주·노·초·파·남·보 (어두운 배경이라 조금 밝게) */
.road li:nth-child(1) { --dot: #ff5252; }
.road li:nth-child(2) { --dot: #ff9800; }
.road li:nth-child(3) { --dot: #ffd23f; }
.road li:nth-child(4) { --dot: #4cd07d; }
.road li:nth-child(5) { --dot: #42a5f5; }
.road li:nth-child(6) { --dot: #6f7fe0; }
.road li:nth-child(7) { --dot: #b57cf2; }
.road i { display: block; text-align: center; font-style: normal; font-size: 13px; color: #d9c9ee; }
.road b { display: block; text-align: center; font-size: 16px; margin: 2px 0 8px; color: #ffd8c4; }
.road span { display: block; background: rgba(255, 255, 255, 0.08); border-radius: 14px; padding: 12px 10px; font-size: 13px; text-align: center; color: #f0e9f8; min-height: 120px; }

/* 수업 영상 */
.videos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.video { position: relative; display: block; text-decoration: none; background: var(--navy); color: #fff; border-radius: 18px; padding: 70px 18px 18px; overflow: hidden; transition: transform 0.15s; }
.video:hover { transform: translateY(-3px); }
.video.promo { background: linear-gradient(135deg, #ee3b3b, var(--orange)); }
.play { position: absolute; top: 18px; left: 18px; width: 42px; height: 42px; border-radius: 50%; background: #fff; }
.play::after { content: ""; position: absolute; left: 16px; top: 12px; border-left: 14px solid #ee3b3b; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.video b { display: block; font-size: 17px; }
.video small { opacity: 0.75; }
.wide-photo { margin: 26px 0 0; border-radius: var(--radius); overflow: hidden; }
.wide-photo img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; }

/* 우리학원 찾기 */
.search input { width: 100%; font: inherit; font-size: 17px; padding: 15px 20px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; outline: none; }
.search input:focus { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(91, 39, 134, 0.12); }
.branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.branch { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.branch b { display: block; font-size: 16px; }
.branch.hq b { color: var(--purple); }
.branch p { margin: 4px 0 8px; font-size: 13.5px; color: var(--muted); }
.branch .acts { display: flex; gap: 8px; flex-wrap: wrap; }
.branch .acts a { font-size: 13px; font-weight: 700; text-decoration: none; padding: 5px 12px; border-radius: 99px; background: var(--purple-l); color: var(--purple); }
.branch .acts a.tel { background: var(--orange-l); color: var(--orange); }
.empty { color: var(--muted); grid-column: 1 / -1; text-align: center; padding: 20px; }

/* 가맹 문의 */
.inq { display: grid; gap: 14px; background: #faf8fd; border-radius: var(--radius); padding: 28px; }
.inq label { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.inq i { color: var(--orange); font-style: normal; }
.inq input, .inq textarea { font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; outline: none; }
.inq input:focus, .inq textarea:focus { border-color: var(--purple); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.inq .agree { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; font-size: 14px; color: var(--muted); }
.inq .agree input { margin-top: 4px; width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.inq-msg { margin: 0; font-weight: 700; min-height: 1.4em; }
.inq-msg.ok { color: #157a4d; }
.inq-msg.err { color: #c0392b; }

/* 바닥글 */
.foot { background: #191527; color: #b8b2c8; padding: 46px 0 60px; font-size: 13.5px; }
.foot p { margin: 4px 0; }
.foot-logo { filter: grayscale(1) brightness(2.2); opacity: 0.8; margin-bottom: 16px; height: 36px; width: auto; }
.foot-links a { color: #e1dcef; }

/* 로그인하면 보이는 동그라미 메뉴 */
/* 화면이 낮아도 머리말(로그아웃 버튼)을 가리지 않게: 머리말 아래 공간에 맞춰 동그라미 크기를 줄인다 */
.circles { --hh: 72px; --n: 8; --cs: clamp(48px, calc((100vh - var(--hh) - 24px - (var(--n) - 1) * 10px) / var(--n)), 84px); position: fixed; right: 18px; top: calc(50% + var(--hh) / 2); translate: 0 -50%; z-index: 50; display: flex; flex-direction: column; gap: 10px; }
.circles[hidden] { display: none; }
/* 동그라미: 위에서부터 빨·주·노·초·파·남·보 (8번째 학원관리는 동색, TOPLUSAI는 금색). 반투명 없이 선명한 색 */
.circle { --c: #e53935; --t: #fff; position: relative; width: var(--cs, 84px); height: var(--cs, 84px); border-radius: 50%; border: 4px solid #fff; padding: 0; background: var(--c); cursor: pointer; font: inherit; box-shadow: 0 8px 20px rgba(10, 10, 30, 0.25), 0 0 0 1px rgba(10, 10, 30, 0.08); transition: transform 0.15s; text-decoration: none; }
.circle .in { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 58%), var(--c); color: var(--t); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22); font-weight: 800; font-size: clamp(11px, calc(var(--cs, 84px) * 0.16), 13.5px); letter-spacing: -0.03em; text-align: center; line-height: 1.15; padding: 4px; }
.circle:hover { transform: scale(1.06); }
/* 아이디가 저장되지 않은 사이트도 모양은 같게 (마우스를 올리면 '계정 없음'만 보임) */
.circle[data-c="1"] { --c: #e53935; }
.circle[data-c="2"] { --c: #f57c00; }
.circle[data-c="3"] { --c: #fbc02d; --t: #3d2c00; }
.circle[data-c="3"] .in { text-shadow: none; }
.circle[data-c="4"] { --c: #2e9e4f; }
.circle[data-c="5"] { --c: #1e6fd9; }
.circle[data-c="6"] { --c: #283593; }
.circle[data-c="7"] { --c: #7b3fbf; }
.circle[data-c="8"] { --c: #a0622d; }   /* 학원관리: 동색 */
/* TOPLUSAI: 금색 */
.circle[data-c="ai"] { --c: #d4a62a; --t: #3a2600; }
.circle[data-c="ai"] .in { background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 58%), linear-gradient(150deg, #f6dc7a, #d4a62a 55%, #b0821a); text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35); }
.circle .tip { position: absolute; right: calc(var(--cs, 84px) + 12px); top: 50%; translate: 0 -50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.12s; }
.circle:hover .tip, .circle:focus-visible .tip { opacity: 1; }
.to-top { position: fixed; right: 30px; bottom: 22px; z-index: 49; width: 54px; height: 54px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; text-decoration: none; font-size: 18px; box-shadow: 0 8px 20px rgba(10, 10, 30, 0.25); }
body.has-circles .to-top { right: 33px; }
#toast { position: fixed; left: 50%; bottom: 28px; translate: -50% 20px; background: var(--navy); color: #fff; padding: 12px 18px; border-radius: 14px; font-size: 15px; opacity: 0; pointer-events: none; transition: 0.2s; z-index: 80; max-width: 90vw; text-align: center; }
#toast.show { opacity: 1; translate: -50% 0; }
#toast.warn { background: #b45309; }
#toast.act { pointer-events: auto; }
/* 자동입력 즐겨찾기 설치 안내 */
.bm-modal { position: fixed; inset: 0; z-index: 90; background: rgba(20, 12, 40, 0.45); display: grid; place-items: center; padding: 18px; }
.bm-card { position: relative; width: min(560px, 100%); max-height: calc(100vh - 36px); overflow: auto; background: #fff; border-radius: 22px; padding: 26px 26px 20px; box-shadow: 0 24px 60px rgba(20, 10, 50, 0.3); }
.bm-card h3 { margin: 0 0 8px; font-size: 21px; color: var(--purple-d); }
.bm-lead { margin: 0 0 14px; color: var(--ink); line-height: 1.6; font-size: 15px; }
.bm-x { position: absolute; top: 12px; right: 14px; border: 0; background: none; font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer; }
.bm-steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 12px; font-size: 15px; line-height: 1.55; }
.bm-steps small { display: block; color: var(--muted); font-size: 13px; margin-top: 4px; }
.bm-drag { display: inline-block; margin-top: 8px; background: #ffd84d; color: #3a2b00; font-weight: 800; padding: 8px 16px; border-radius: 99px; text-decoration: none; border: 2px dashed #c9a400; cursor: grab; }
.bm-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.bm-manual { margin-top: 14px; font-size: 14px; color: var(--muted); }
.bm-manual summary { cursor: pointer; }
.bm-row { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 8px; margin-top: 8px; }
.bm-row code { background: #f4f2f8; padding: 4px 8px; border-radius: 8px; color: var(--ink); }
.bm-row .btn-line { padding: 5px 12px; font-size: 13px; }
#toast button { margin-left: 8px; border: 0; border-radius: 99px; padding: 6px 12px; background: #fff; color: var(--navy); font: inherit; font-weight: 800; cursor: pointer; }
.pc-note { background: var(--yellow-l); border-bottom: 1px solid #f4dfa3; padding: 10px 0; font-size: 14px; text-align: center; }
.pc-note button { margin-left: 8px; }

/* 화면이 좁을 때 */
@media (max-width: 1100px) {
  .nav { display: none; }
  .auth { margin-left: auto; }
  .prog { grid-template-columns: 1fr 1fr; }
  .card.wide { grid-column: 1 / -1; }
  .videos { grid-template-columns: repeat(3, 1fr); }
  .road { grid-template-columns: repeat(4, 1fr); row-gap: 20px; }
  .road::before { display: none; }
}
@media (max-width: 820px) {
  .pills { max-width: 420px; }
  .sec { padding: 70px 0; }
  .flow, .missions, .why { grid-template-columns: 1fr 1fr; }
  .flow-card::after { display: none; }
  .grade, .two-col, .curri { grid-template-columns: 1fr; }
  .curri .arrow { display: none; }
  .method { grid-template-columns: 1fr; padding: 24px; }
  .plus { text-align: center; }
  .prog { grid-template-columns: 1fr; }
  .steps4, .nums { grid-template-columns: 1fr 1fr; }
  .stairs { grid-template-columns: repeat(4, 1fr); }
  .arrows { grid-template-columns: repeat(3, 1fr); }
  .three { grid-template-columns: 1fr; }
  .months, .gallery, .branches { grid-template-columns: 1fr 1fr; }
  .videos { grid-template-columns: 1fr 1fr; }
  .road { grid-template-columns: 1fr 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .logo img { height: 34px; }
  .auth .who { display: none; }
  /* 휴대폰: 동그라미 메뉴를 화면 아래 한 줄로 */
  .circles { top: auto; bottom: 0; right: 0; left: 0; translate: none; flex-direction: row; overflow-x: auto; gap: 8px; padding: 10px 12px; background: rgba(20, 26, 46, 0.92); }
  .circle { flex: 0 0 auto; width: 66px; height: 66px; padding: 0; border-width: 3px; }
  .circle .in { font-size: 11.5px; }
  .circle .tip { display: none; }
  body.has-circles { padding-bottom: 88px; }
  body.has-circles .to-top { bottom: 100px; right: 16px; }
}
@media (max-width: 520px) {
  .flow, .missions, .why, .months, .gallery, .branches, .videos, .road, .nums { grid-template-columns: 1fr; }
  .stairs { grid-template-columns: 1fr 1fr; }
  .stairs li { height: auto !important; min-height: 0 !important; }
  .pills { max-width: 340px; gap: 12px; }
  .pill { width: 160px; font-size: 15px; gap: 6px; padding: 9px 9px 9px 14px; }
  .pill span { width: 34px; height: 34px; font-size: 12px; }
  .hero { padding: 54px 0 60px; }
}
