@charset "utf-8";
/* ============================================================
   승리어학원 — 공통 스타일시트
   브랜드 토큰: 디자인시스템_가이드.md 기준 (레드 #FF3333 · Pretendard)
   정적 멀티페이지 · 모바일 퍼스트
   ============================================================ */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.css");

/* ---------- 토큰 ---------- */
:root {
  --font-base: Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto,
    "Helvetica Neue", "Segoe UI", sans-serif;

  /* Brand */
  --primary: #ff3333;
  --primary-hover: #e62222;
  --primary-active: #cc1f1f;
  --primary-subtle: #ffecec;

  /* Ink / surface */
  --ink: #111111;
  --ink-90: #1c1c1c;
  --text: #333333;
  --muted: #777777;
  --line: #e5e5e5;
  --line-strong: #cccccc;
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --bg-app: #f2f2f2;

  /* Status */
  --success: #1a9e5c;
  --success-subtle: #e8f7ef;
  --warning: #e8a317;
  --warning-subtle: #fef6e7;
  --info: #3b82c4;
  --info-subtle: #eaf3fa;

  /* Radius */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-full: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(17, 17, 17, 0.06);
  --sh-md: 0 8px 24px rgba(17, 17, 17, 0.08);
  --sh-lg: 0 20px 48px rgba(17, 17, 17, 0.14);

  /* Layout */
  --header-h: 68px;
  --max: 1160px;
}

/* ---------- 리셋 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  overflow-x: clip;
  position: relative;
  width: 100%;
  font-family: var(--font-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -0.01em;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.28; letter-spacing: -0.02em; }
strong { font-weight: 700; }

/* ---------- 유틸 ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink); color: #dcdcdc; }
.section--dark h2, .section--dark h3, .section--dark h4 { color: #fff; }
.center { text-align: center; }
.accent { color: var(--primary); }
.nowrap { white-space: nowrap; }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(24px, 4.4vw, 36px);
  font-weight: 800;
}
.section-lead {
  margin-top: 16px;
  font-size: clamp(15px, 2.2vw, 18px);
  color: var(--muted);
}
.section--dark .section-lead { color: #a8a8a8; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--r-full);
  font-size: 16px;
  font-weight: 700;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px rgba(255, 51, 51, 0.28); }
.btn--primary:hover { background: var(--primary-hover); }
.btn--ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); }
.btn--line-inverse { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.4); }
.btn--line-inverse:hover { border-color: #fff; }
.btn--sm { height: 44px; font-size: 14px; padding: 0 20px; }
.btn--block { width: 100%; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  max-width: var(--max); margin: 0 auto; height: 100%;
  display: flex; align-items: center; gap: 24px; padding: 0 20px;
}
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__logo { width: 38px; height: 38px; }
.brand__name { font-size: 20px; font-weight: 800; color: var(--ink); letter-spacing: -0.03em; }
.brand__name small { display: block; font-size: 10px; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; }

.gnb { display: flex; gap: 4px; margin-left: auto; }
.gnb a {
  padding: 8px 14px; border-radius: var(--r-full);
  font-size: 15.5px; font-weight: 600; color: var(--text);
  transition: background 0.15s, color 0.15s;
}
.gnb a:hover { background: var(--bg-soft); color: var(--ink); }
.gnb a.is-active { color: var(--primary); }

.header-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.header-cta .btn { height: 42px; padding: 0 18px; font-size: 14.5px; }

.nav-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; align-items: center; justify-content: center; }
.nav-toggle span { position: relative; width: 20px; height: 2px; background: var(--ink); transition: 0.2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: 0.2s; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { top: 0; transform: rotate(45deg); }
body.nav-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); }

/* ---------- 모바일 드로어 ---------- */
.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0; z-index: 99;
  background: #fff; padding: 12px 20px 32px;
  transform: translateX(100%); visibility: hidden;
  transition: transform 0.28s ease, visibility 0s linear 0.28s;
  overflow-y: auto; display: flex; flex-direction: column;
}
body.nav-open .mobile-nav { transform: translateX(0); visibility: visible; transition: transform 0.28s ease, visibility 0s; }
@media (min-width: 769px) { .mobile-nav { display: none; } }
.mobile-nav a.mnav-link {
  display: block; padding: 16px 6px; font-size: 18px; font-weight: 700;
  color: var(--ink); border-bottom: 1px solid var(--line);
}
.mobile-nav a.mnav-link.is-active { color: var(--primary); }
.mobile-nav__cta { margin-top: 24px; display: grid; gap: 10px; }

/* ---------- 플로팅 CTA ---------- */
.floating {
  position: fixed; right: 18px; bottom: 18px; z-index: 90;
  display: flex; flex-direction: column; gap: 10px;
}
.floating a {
  display: flex; align-items: center; gap: 8px;
  height: 52px; padding: 0 20px 0 16px; border-radius: var(--r-full);
  font-size: 15px; font-weight: 700; color: #fff;
  box-shadow: var(--sh-md);
}
.floating a svg { width: 22px; height: 22px; flex-shrink: 0; }
.floating .f-naver { background: #03c75a; }
.floating .f-tel { background: var(--ink); }
.floating .f-reserve { background: var(--primary); box-shadow: 0 8px 22px rgba(255, 51, 51, 0.32); }
.floating a span { transition: max-width 0.2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background-color: #0d0d0d;
  background-image:
    linear-gradient(90deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.38) 48%, rgba(0, 0, 0, 0.12) 100%),
    url("https://wxmhmwqntxcriprhruuq.supabase.co/storage/v1/object/public/victory-hp/hero-bg.jpg");
  background-size: cover;
  background-position: center, center, center 28%;
  background-repeat: no-repeat;
  color: #fff; padding: clamp(64px, 12vw, 120px) 0 clamp(72px, 12vw, 128px);
}
.hero::before {
  content: ""; position: absolute; right: -10%; top: -20%;
  width: 60vw; height: 60vw; max-width: 640px; max-height: 640px;
  background: radial-gradient(circle, rgba(255, 51, 51, 0.22) 0%, transparent 62%);
  pointer-events: none;
}
.hero__inner { position: relative; max-width: 860px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 13px; font-weight: 700; color: #ffd7d7; margin-bottom: 24px;
}
.hero__badge b { color: #fff; }
.hero h1 {
  color: #fff; font-size: clamp(29px, 6.2vw, 52px); font-weight: 800;
  line-height: 1.24; letter-spacing: -0.03em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.7), 0 1px 4px rgba(0, 0, 0, 0.6);
}
.hero h1 .accent { color: #ff6b6b; }
.hero__sub {
  margin-top: 22px; font-size: clamp(15px, 2.6vw, 20px);
  color: #f0f0f0; font-weight: 600;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.7);
}
.hero__sub b { color: #fff; font-weight: 700; }
.hero__evidence {
  margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px;
}
.hero__evidence li {
  padding: 8px 15px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 14px; font-weight: 600; color: #eee;
}
.hero__evidence li b { color: #ff8a8a; }
.hero__cta { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__slogan { margin-top: 28px; font-size: 14px; color: #8f8f8f; }

/* ---------- 공통 카드 ---------- */
.card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 28px; box-shadow: var(--sh-sm);
}
.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); }

/* 문제제기 */
.pain { display: grid; gap: 18px; }
.pain__item {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary);
  border-radius: var(--r-md); padding: 24px 26px;
}
.pain__q { font-size: 18px; font-weight: 800; color: var(--ink); }
.pain__q .quote { color: var(--primary); }
.pain__a { margin-top: 8px; font-size: 15px; color: var(--muted); }

/* 강점 카드 */
.feature { position: relative; }
.feature__num {
  font-size: 13px; font-weight: 800; color: var(--primary);
  letter-spacing: 0.05em; margin-bottom: 12px;
}
.feature__icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--primary-subtle); color: var(--primary);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { font-size: 19px; font-weight: 800; }
.feature p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.feature__punch { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 15px; font-weight: 800; color: var(--ink); }

/* 모바일 전용 줄바꿈 */
.br-m { display: none; }
@media (max-width: 640px) { .br-m { display: inline; } }

/* 타임라인 (관리 사이클) */
.timeline { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.tl-card {
  background: var(--ink-90); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-md); padding: 28px 26px; position: relative;
}
.tl-card__tag {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.08em;
  color: #ff8a8a; margin-bottom: 14px;
}
.tl-card h3 { color: #fff; font-size: 20px; font-weight: 800; }
.tl-card p { margin-top: 10px; font-size: 14.5px; color: #b0b0b0; }
.tl-card ul { margin-top: 16px; display: grid; gap: 8px; }
.tl-card li { position: relative; padding-left: 20px; font-size: 14px; color: #ddd; }
.tl-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

/* 프로세스 스텝 (숫자 단계) */
.steps { display: grid; gap: 20px; grid-template-columns: repeat(4, 1fr); counter-reset: st; }
.step { position: relative; padding-top: 8px; }
.step__no {
  width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800;
  margin-bottom: 16px;
}
.step h4 { font-size: 17px; font-weight: 800; }
.step p { margin-top: 8px; font-size: 14px; color: var(--muted); }

/* 레벨 카드 */
.levels { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.level {
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff;
}
.level__head { padding: 22px 24px; color: #fff; }
.level--master .level__head { background: linear-gradient(135deg, #cc1f1f, #ff3333); }
.level--ace .level__head { background: linear-gradient(135deg, #1c1c1c, #3a3a3a); }
.level--bright .level__head { background: linear-gradient(135deg, #e8a317, #f4b942); }
.level__name { font-size: 24px; font-weight: 900; letter-spacing: 0.02em; }
.level__pct { font-size: 13px; font-weight: 700; opacity: 0.9; margin-top: 2px; }
.level__body { padding: 22px 24px; }
.level__body dl { display: grid; gap: 12px; }
.level__body dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.level__body dd { font-size: 15px; font-weight: 700; color: var(--ink); margin-top: 2px; }

/* 사례(성적 향상) */
.case {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 24px; box-shadow: var(--sh-sm);
}
.case__tag { font-size: 13px; font-weight: 700; color: var(--muted); }
.case__score { display: flex; align-items: baseline; gap: 10px; margin: 14px 0 4px; }
.case__from { font-size: 22px; font-weight: 800; color: var(--line-strong); text-decoration: line-through; }
.case__arrow { color: var(--primary); font-weight: 800; }
.case__to { font-size: 40px; font-weight: 900; color: var(--primary); line-height: 1; }
.case__unit { font-size: 16px; color: var(--muted); font-weight: 700; }
.case__bar { height: 8px; background: var(--bg-app); border-radius: var(--r-full); overflow: hidden; margin: 14px 0; }
.case__bar i { display: block; height: 100%; background: linear-gradient(90deg, #ff8a8a, var(--primary)); border-radius: inherit; }
.case__note { font-size: 14px; color: var(--muted); }
.case__note b { color: var(--text); }

/* 후기 */
.review {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px;
}
.review__stars { color: var(--warning); font-size: 15px; letter-spacing: 2px; }
.review__body { margin-top: 12px; font-size: 15.5px; color: var(--text); line-height: 1.7; }
.review__who { margin-top: 16px; font-size: 13px; color: var(--muted); font-weight: 600; }

/* 비교표 */
.compare { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); }
.compare th, .compare td { padding: 16px 18px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--line); }
.compare thead th { background: var(--bg-soft); font-size: 14px; font-weight: 800; color: var(--ink); }
.compare thead th.col-us { background: var(--ink); color: #fff; }
.compare td.col-us { background: var(--primary-subtle); font-weight: 700; color: var(--ink); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare .th-row { font-weight: 700; color: var(--muted); font-size: 13px; }

/* 태그 리스트 (학교명 등) */
.taglist { display: flex; flex-wrap: wrap; gap: 10px; }
.taglist .tag {
  padding: 9px 16px; border-radius: var(--r-full);
  background: #fff; border: 1px solid var(--line); font-size: 14.5px; font-weight: 600; color: var(--text);
}
.taglist .tag b { color: var(--primary); }

/* 학년/과목 표 */
.subj-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.subj-table th, .subj-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; font-size: 14.5px; }
.subj-table thead th { background: var(--bg-soft); font-weight: 800; font-size: 13px; color: var(--ink); }
.subj-table td strong { color: var(--ink); }
.subj-table tbody tr:last-child th, .subj-table tbody tr:last-child td { border-bottom: none; }

/* 요금 카드 */
.price { display: grid; gap: 18px; grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
.price__card { border: 1px solid var(--line); border-radius: var(--r-md); padding: 28px; text-align: center; background: #fff; }
.price__label { font-size: 15px; font-weight: 700; color: var(--muted); }
.price__won { font-size: 34px; font-weight: 900; color: var(--ink); margin: 10px 0 2px; }
.price__won span { font-size: 16px; font-weight: 700; color: var(--muted); }
.price__unit { font-size: 13px; color: var(--muted); }

/* 소통 주기 리스트 (system.html · 다크 섹션에서 고대비) */
.comm-list { max-width: 900px; margin: 44px auto 0; display: grid; gap: 14px; }
.comm-item {
  display: grid; grid-template-columns: 130px 1fr 1.5fr; align-items: center; gap: 22px;
  background: #fff; border-radius: var(--r-md); padding: 24px 28px;
  border-left: 5px solid var(--primary); box-shadow: var(--sh-md);
}
.comm-cyc { font-size: 22px; font-weight: 900; color: var(--primary); letter-spacing: -0.02em; }
.comm-what { font-size: 16px; color: var(--text); }
.comm-recv { font-size: 16.5px; font-weight: 700; color: var(--ink); }
.comm-item .lbl { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 4px; }
@media (max-width: 640px) {
  .comm-item { grid-template-columns: 1fr; gap: 14px; padding: 20px 22px; }
  .comm-cyc { font-size: 19px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
}

/* 프로그램 페이지 — 탭 없이 중등/고등 모두 노출 */
.prog-panel + .prog-panel { margin-top: 60px; padding-top: 52px; border-top: 1px solid var(--line); }

/* 서브페이지 퀵내비 칩 + 스크롤 유도 */
.page-nav-chips { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px; }
.page-nav-chips a {
  padding: 9px 17px; border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; font-size: 14px; font-weight: 700; transition: background 0.15s, border-color 0.15s;
}
.page-nav-chips a:hover { background: var(--primary); border-color: var(--primary); }
.scroll-cue { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; color: #cdcdcd; font-size: 13.5px; font-weight: 600; }
.scroll-cue .chev { display: inline-block; font-size: 16px; color: #ff6b6b; animation: cueBounce 1.4s ease-in-out infinite; }
@keyframes cueBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) { .scroll-cue .chev { animation: none; } }

/* 메인 팝업 배너 (플로팅) */
.pbanner { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; padding: 20px; }
.pbanner[hidden] { display: none; }
.pbanner__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.pbanner__wrap { position: relative; width: 100%; max-width: 760px; max-height: 92vh; overflow-y: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }
.pbanner__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pbanner__item { position: relative; border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-md); background: #fff; }
.pbanner__item[hidden] { display: none; }
.pbanner__item > a { display: block; }
.pbanner__item img { width: 100%; height: auto; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.pbanner__x { position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; border-radius: var(--r-full); background: rgba(0, 0, 0, 0.5); color: #fff; font-size: 22px; line-height: 1; display: flex; align-items: center; justify-content: center; transition: background 0.15s; }
.pbanner__x:hover { background: rgba(0, 0, 0, 0.78); }
.pbanner__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 16px; background: #fff; border-radius: var(--r-md); box-shadow: var(--sh-md); }
.pbanner__hide { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--text); cursor: pointer; }
.pbanner__hide input { width: 17px; height: 17px; accent-color: var(--primary); cursor: pointer; }
.pbanner__close { font-size: 14px; font-weight: 800; color: var(--ink); padding: 8px 16px; border-radius: var(--r-full); background: var(--bg-soft); border: 1px solid var(--line); transition: background 0.15s; }
.pbanner__close:hover { background: var(--line); }
@media (max-width: 640px) { .pbanner__grid { grid-template-columns: 1fr; } .pbanner__wrap { max-width: 360px; } }

/* 소통 섹션 아코디언 (Weekly/Monthly 상세 펼침) */
.comm-toggle { cursor: pointer; transition: box-shadow 0.15s, transform 0.15s; }
.comm-toggle:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.comm-toggle:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
.comm-more { display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 5px 13px; border-radius: var(--r-full); background: var(--primary); color: #fff; font-weight: 800; font-size: 13px; white-space: nowrap; vertical-align: middle; box-shadow: 0 4px 12px rgba(255,51,51,0.3); }
.comm-chev { display: inline-block; font-size: 13px; animation: chevBounce 1.15s ease-in-out infinite; transition: transform 0.25s; }
@keyframes chevBounce { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }
.comm-toggle:hover { background: var(--primary-subtle); }
.comm-toggle[aria-expanded="true"] { background: var(--primary-subtle); }
.comm-toggle[aria-expanded="true"] .comm-chev { transform: rotate(180deg); animation: none; }
.comm-detail { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.comm-detail__inner { background: #fff; color: var(--text); border-radius: var(--r-md); padding: 22px; margin-top: 10px; box-shadow: var(--sh-md); }
.comm-detail__inner .sys-card__rows > div > span { color: var(--text); }

/* 관리 시스템 Weekly/Monthly — 넓은 범위까지 좌우 2열 유지 */
.grid-2.sys-cols { grid-template-columns: 1fr 1fr; }
@media (max-width: 768px) { .grid-2.sys-cols { grid-template-columns: 1fr 1fr; gap: 14px; } }
@media (max-width: 520px) { .grid-2.sys-cols { gap: 10px; } .sys-cols .sys-list li { padding: 12px 14px; } .sys-cols .sys-list li strong { font-size: 14px; } .sys-cols .sys-list li span { font-size: 12px; } .sys-cols .card { padding: 16px; } .sys-cols .sys-card__label { font-size: 12px; } }

/* 관리 시스템 Weekly/Monthly 공통 포맷 */
.sys-list { margin-top: 24px; display: grid; gap: 12px; }
.sys-list li { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary); border-radius: var(--r-md); padding: 16px 20px; }
.sys-list li strong { display: block; color: var(--ink); font-size: 15.5px; }
.sys-list li span { display: block; font-size: 14px; color: var(--muted); margin-top: 4px; }
.sys-card__label { font-size: 13px; color: var(--muted); font-weight: 700; }
.sys-card__rows { margin-top: 16px; display: grid; gap: 12px; }
.sys-card__rows > div { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.sys-card__rows > div:last-child { border-bottom: none; padding-bottom: 0; }
.sys-card__note { margin-top: 16px; font-size: 12px; color: var(--muted); }
.sys-check { margin-top: 16px; display: grid; gap: 12px; }
.sys-check li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.sys-check .chk { color: var(--primary); font-weight: 800; flex-shrink: 0; }
.sys-check strong { color: var(--ink); }

/* 학원소개 — 캠퍼스 사진 그리드 */
.campus-photos { margin-top: 40px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.campus-photos img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-md); border: 1px solid var(--line); box-shadow: var(--sh-sm); display: block; }
@media (max-width: 640px) { .campus-photos { grid-template-columns: 1fr; } }

/* 학원소개 — 시설 그리드 · 정보 목록 */
.facility-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.facility { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: var(--sh-sm); margin: 0; }
.facility__ph { aspect-ratio: 4 / 3; background: var(--bg-app); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.facility__cap { padding: 12px 16px; font-weight: 700; color: var(--ink); font-size: 14px; }
.campus-map-img { width: 100%; display: block; margin-top: 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: #fff; }
.info-dl { margin-top: 16px; display: grid; grid-template-columns: 64px 1fr; gap: 10px 12px; }
.info-dl dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.info-dl dd { font-size: 14.5px; color: var(--text); }
.info-dl dd a { color: var(--primary); font-weight: 700; }
@media (max-width: 768px) { .facility-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .facility-grid { grid-template-columns: 1fr; } }

/* 시설 안내 — PC 2×2 / 모바일 1열 */
.fac2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 980px; margin: 44px auto 0; }
.fac2 img { width: 100%; height: auto; display: block; border-radius: var(--r-md); box-shadow: var(--sh-md); }
@media (max-width: 768px) { .fac2 { grid-template-columns: 1fr; gap: 14px; } }

/* 예약·상담 캠퍼스 선택 모달 */
.rmodal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: 20px; }
.rmodal.is-open { display: flex; }
.rmodal__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.55); }
.rmodal__box {
  position: relative; z-index: 1; width: 100%; max-width: 440px;
  background: #fff; border-radius: var(--r-lg); padding: 30px 26px 24px;
  box-shadow: var(--sh-lg); animation: rmodalIn 0.2s ease;
}
@keyframes rmodalIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rmodal__x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: var(--r-full); font-size: 22px; color: var(--muted); background: var(--bg-soft); display: flex; align-items: center; justify-content: center; }
.rmodal__x:hover { background: var(--line); color: var(--ink); }
.rmodal__title { font-size: 19px; font-weight: 800; text-align: center; color: var(--ink); margin-bottom: 6px; }
.rmodal__sub { font-size: 13.5px; color: var(--muted); text-align: center; margin-bottom: 20px; }
.rmodal__campuses { display: grid; gap: 12px; }
.rcard { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; }
.rcard__name { font-size: 16px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.rcard__name span { font-size: 11px; font-weight: 700; color: #fff; background: var(--primary); padding: 2px 9px; border-radius: var(--r-full); margin-left: 6px; vertical-align: middle; }
.rcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rcard__actions .btn { height: 44px; padding: 0 10px; font-size: 14px; }
.rmodal__kakao { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px; height: 48px; border-radius: var(--r-full); background: #fee500; color: #3c1e1e; font-weight: 800; font-size: 15px; }
.rmodal__kakao:hover { background: #f5dc00; }

/* 학부모 후기 — 옆으로 흐르는 마퀴 */
.reviews-marquee {
  margin-top: 44px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.reviews-track { display: flex; gap: 18px; width: max-content; animation: rvflow 60s linear infinite; }
.reviews-marquee:hover .reviews-track { animation-play-state: paused; }
.rv {
  flex: 0 0 340px; max-width: 82vw; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 24px 24px; box-shadow: var(--sh-sm);
  display: flex; flex-direction: column;
}
.rv__badge { align-self: flex-start; font-size: 12px; font-weight: 800; color: #fff; background: var(--primary); padding: 3px 11px; border-radius: var(--r-full); margin-bottom: 14px; }
.rv__badge.byeol { background: var(--ink); }
.rv__text { font-size: 15px; color: var(--text); line-height: 1.75; margin: 0; }
@keyframes rvflow { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .reviews-track { animation: none; }
  .reviews-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
}

/* 강사진 그리드 */
.teachers-grid { margin-top: 44px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.teacher { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: var(--sh-sm); transition: transform 0.15s, box-shadow 0.15s; }
.teacher:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.teacher img { width: 100%; height: auto; display: block; aspect-ratio: 592 / 577; object-fit: cover; }
@media (max-width: 1024px) { .teachers-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .teachers-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

/* 합격 결과 캐러셀 */
.results-carousel { position: relative; }
.results-viewport { overflow: hidden; border-radius: var(--r-lg); }
.results-track { display: flex; }
.results-track.animate { transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1); }
.results-slide { flex: 0 0 100%; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.result-card { border-radius: var(--r-md); overflow: hidden; background: #0a0a0a; box-shadow: var(--sh-md); }
.result-card img { width: 100%; height: auto; display: block; aspect-ratio: 4 / 5; object-fit: cover; }
.rc-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: var(--r-full);
  background: #fff; color: var(--ink); border: 1px solid var(--line);
  box-shadow: var(--sh-md); font-size: 26px; line-height: 1;
  display: flex; align-items: center; justify-content: center; transition: background 0.15s, color 0.15s;
}
.rc-prev { left: -12px; }
.rc-next { right: -12px; }
.rc-arrow:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.results-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.results-dots button { width: 9px; height: 9px; border-radius: var(--r-full); background: var(--line-strong); transition: width 0.2s, background 0.2s; }
.results-dots button.is-active { background: var(--primary); width: 28px; }
@media (max-width: 768px) {
  .results-slide { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .rc-prev { left: 4px; }
  .rc-next { right: 4px; }
  .rc-arrow { width: 40px; height: 40px; font-size: 22px; background: rgba(255, 255, 255, 0.92); }
}

/* CTA 밴드 */
.cta-band { background: linear-gradient(135deg, #cc1f1f, #ff3333); color: #fff; border-radius: var(--r-lg); padding: clamp(40px, 6vw, 64px); text-align: center; }
.cta-band h2 { color: #fff; font-size: clamp(24px, 4vw, 36px); font-weight: 900; }
.cta-band p { margin-top: 14px; font-size: 17px; color: rgba(255,255,255,0.9); }
.cta-band__btns { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.cta-band .btn--primary { background: #fff; color: var(--primary); box-shadow: none; }
.cta-band .btn--primary:hover { background: #f2f2f2; }
.cta-band .btn--line-inverse { border-color: rgba(255,255,255,0.6); }

/* 캠퍼스 */
.campus { display: grid; gap: 20px; grid-template-columns: repeat(2, 1fr); }
.campus__card { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; background: #fff; }
.campus__map { aspect-ratio: 16/9; background: var(--bg-app) center/cover; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; position: relative; }
.campus__map img { width: 100%; height: 100%; object-fit: cover; }
.campus__body { padding: 24px 26px; }
.campus__name { font-size: 20px; font-weight: 800; }
.campus__name span { display: inline-block; font-size: 12px; font-weight: 800; color: #fff; background: var(--primary); padding: 3px 10px; border-radius: var(--r-full); margin-left: 8px; vertical-align: middle; }
.campus dl { margin-top: 16px; display: grid; grid-template-columns: 68px 1fr; gap: 10px 12px; }
.campus dt { font-size: 13px; font-weight: 700; color: var(--muted); }
.campus dd { font-size: 14.5px; color: var(--text); }
.campus dd a { color: var(--primary); font-weight: 700; }
.campus__actions { margin-top: 20px; display: flex; gap: 10px; }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 12px; }
.faq__item { border: 1px solid var(--line); border-radius: var(--r-md); background: #fff; overflow: hidden; }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 22px; font-size: 16px; font-weight: 700; color: var(--ink); text-align: left; }
.faq__q::after { content: "+"; font-size: 22px; font-weight: 400; color: var(--primary); transition: transform 0.2s; }
.faq__item.open .faq__q::after { transform: rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq__a p { padding: 0 22px 20px; font-size: 15px; color: var(--muted); }

/* 탭 */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.tab-btn { padding: 11px 20px; border-radius: var(--r-full); background: var(--bg-soft); font-size: 15px; font-weight: 700; color: var(--muted); border: 1px solid transparent; }
.tab-btn.is-active { background: var(--ink); color: #fff; }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 페이지 히어로 (서브페이지) */
.page-hero { background: var(--ink); color: #fff; padding: 56px 0; min-height: 300px; display: flex; align-items: center; position: relative; overflow: hidden; }
/* 서브페이지 퀵내비 바(밝은 스트립) */
.subnav { background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.subnav__inner { display: flex; flex-wrap: wrap; gap: 10px; max-width: var(--max); margin: 0 auto; padding: 16px 20px; }
.subnav a { padding: 9px 16px; border-radius: var(--r-full); background: #fff; border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 700; transition: border-color 0.15s, color 0.15s; }
.subnav a:hover { border-color: var(--ink); color: var(--ink); }
.page-hero::before { content: ""; position: absolute; right: -6%; top: -30%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(255,51,51,0.2), transparent 62%); }
.page-hero__inner { position: relative; }
.page-hero .crumb { font-size: 13px; color: #9a9a9a; font-weight: 600; margin-bottom: 14px; }
.page-hero .crumb .accent { color: #ff6b6b; }
.page-hero h1 { color: #fff; font-size: clamp(28px, 5vw, 42px); font-weight: 800; }
.page-hero p { margin-top: 16px; font-size: clamp(15px, 2.2vw, 18px); color: #bdbdbd; max-width: 640px; }

/* 앵커 오프셋 */
.section[id], [id].anchor { scroll-margin-top: calc(var(--header-h) + 16px); }

/* 스크롤 등장 */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- 푸터 ---------- */
.site-footer { background: #0d0d0d; color: #9a9a9a; padding: 56px 0 40px; font-size: 14px; }
.site-footer__top { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer .brand__name { color: #fff; }
.site-footer .brand__name small { color: #888; }
.foot-col h4 { color: #fff; font-size: 14px; font-weight: 800; margin-bottom: 14px; }
.foot-col p, .foot-col a { display: block; color: #9a9a9a; line-height: 1.9; }
.foot-col a:hover { color: #fff; }
.foot-desc { margin-top: 16px; line-height: 1.7; color: #888; max-width: 320px; }
.site-footer__bottom { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; color: #777; font-size: 13px; }
.foot-links { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- 반응형 ---------- */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .gnb, .header-cta { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .grid-2, .grid-3, .grid-4, .timeline, .levels, .campus, .price { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .floating a:not(.f-reserve) span { display: none; }
  .floating a:not(.f-reserve) { padding: 0; width: 52px; justify-content: center; }
  .site-footer__top { grid-template-columns: 1fr; gap: 28px; }
  /* 표는 가로 스크롤 대신 화면에 맞춰 줄바꿈 */
  .compare, .subj-table { min-width: 0 !important; font-size: 13px; }
  .compare th, .compare td, .subj-table th, .subj-table td { padding: 12px 11px; white-space: normal; word-break: keep-all; line-height: 1.45; }
}
@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; }
  .hero__cta .btn { width: 100%; }
}
