/* ============================================================
   일타과외 — Design System v2
   Simple · Direct · Premium  (Black/White + strong accent)
   ============================================================ */

:root {
  --ink: #0f2745;
  --ink-2: #14324f;
  --ink-3: #1b3d5f;
  --paper: #ffffff;
  --paper-2: #f5f8fc;
  --paper-3: #e8eef7;
  --muted: #5c7089;
  --muted-d: #93a6bd;
  --line: rgba(15, 39, 69, 0.12);
  --line-2: rgba(15, 39, 69, 0.06);
  --line-d: rgba(255, 255, 255, 0.18);
  --accent: #1f5fd0;
  --accent-2: #3f83ea;
  --accent-soft: rgba(31, 95, 208, 0.1);
  --kakao: #fee500;
  --kakao-ink: #3c1e1e;

  /* 직선적 느낌을 위한 작은 라운드 */
  --r: 4px;
  --r-sm: 3px;
  --r-lg: 6px;
  --shadow: 0 24px 60px -30px rgba(11, 27, 51, 0.5);
  --shadow-soft: 0 14px 40px -26px rgba(11, 27, 51, 0.4);
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --header-h: 68px;

  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.62;
  letter-spacing: -0.011em;
  /* 한글 줄바꿈 — 단어 중간에서 끊기지 않도록 (keep-all) */
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }

/* ============================================================
   INTRO SPLASH — 일 / 타 / 과 / 외 둥둥둥둥
   ============================================================ */
.splash { display: none; }

.splash-on .splash {
  display: grid;
  position: fixed;
  inset: 0;
  z-index: 9999;
  place-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f2f7fd 100%);
  color: var(--ink);
  animation: splashOut 0.55s ease 2.05s forwards;
}
.splash-on body { overflow: hidden; }

.splash__inner { text-align: center; }
.splash__chars {
  display: flex;
  justify-content: center;
  gap: clamp(4px, 1.6vw, 16px);
  margin-bottom: 22px;
}
.splash__char {
  display: block;
  font-size: clamp(2.9rem, 13vw, 7.2rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.06em;
  opacity: 0;
  transform: translateY(48px) scale(0.6);
  animation: charBounce 0.92s cubic-bezier(0.22, 1.5, 0.36, 1) forwards;
  will-change: transform, opacity;
}
.splash__char:nth-child(1) { animation-delay: 0.12s; }
.splash__char:nth-child(2) { animation-delay: 0.40s; }
.splash__char:nth-child(3) { animation-delay: 0.68s; }
.splash__char:nth-child(4) { animation-delay: 0.96s; }
.splash__char--accent { color: var(--accent); }

.splash__line {
  width: 0;
  height: 2px;
  margin: 0 auto;
  background: var(--accent);
  animation: splashLine 0.6s ease 1.35s forwards;
}
.splash__sub {
  margin-top: 18px;
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
  animation: fadeUp 0.6s ease 1.5s forwards;
}

@keyframes charBounce {
  0%   { opacity: 0; transform: translateY(48px) scale(0.6); }
  55%  { opacity: 1; transform: translateY(-18px) scale(1.07); }
  75%  { transform: translateY(7px) scale(0.97); }
  88%  { transform: translateY(-3px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes splashLine { to { width: clamp(120px, 30vw, 260px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes splashOut { to { opacity: 0; visibility: hidden; } }

/* ============================================================
   LAYOUT
   ============================================================ */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 8.5vw, 120px); position: relative; }
.section--tight { padding-block: clamp(46px, 5.5vw, 80px); }
.section--dark { background: var(--paper-2); color: var(--ink); }
.section--ink-2 { background: var(--paper-2); color: var(--ink); }
.section--paper { background: var(--paper); }
.section--paper2 { background: var(--paper-2); }
.section--accent { background: var(--accent); color: #fff; }
.section--soft { background: var(--paper-2); }

.grid { display: grid; gap: clamp(18px, 2.6vw, 30px); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.74rem; font-weight: 800; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); display: block; }

.display { font-size: clamp(2rem, 5.2vw, 3.9rem); font-weight: 850; line-height: 1.07; letter-spacing: -0.038em; }
.display--xl { font-size: clamp(2.4rem, 7.6vw, 5.6rem); line-height: 1.03; letter-spacing: -0.045em; }
.h2 { font-size: clamp(1.65rem, 3.4vw, 2.7rem); font-weight: 850; line-height: 1.12; letter-spacing: -0.032em; }
.h3 { font-size: clamp(1.15rem, 1.9vw, 1.42rem); font-weight: 800; letter-spacing: -0.022em; line-height: 1.26; }
.lead { font-size: clamp(1rem, 1.4vw, 1.16rem); color: var(--muted); line-height: 1.72; }
.section--dark .lead, .section--ink-2 .lead { color: var(--muted); }
.section--accent .lead { color: rgba(255, 255, 255, 0.9); }
.muted { color: var(--muted); }
.section--dark .muted, .section--ink-2 .muted { color: var(--muted); }
.accent-text { color: var(--accent); }
.section--dark .accent-text, .section--ink-2 .accent-text { color: var(--accent); }
.strong-line { font-weight: 800; color: var(--ink); }
.section--dark .strong-line, .section--ink-2 .strong-line { color: var(--ink); }

.sec-head { max-width: 760px; margin-bottom: clamp(30px, 3.6vw, 52px); }
.sec-head .eyebrow { margin-bottom: 16px; }
.sec-head .h2 { margin-bottom: 16px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head--center .eyebrow { justify-content: center; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 750; font-size: 0.97rem; letter-spacing: -0.01em;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
  white-space: nowrap;
}
.btn i { font-size: 1.02em; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 14px 30px -16px rgba(31, 95, 208, 0.85); }
.btn--accent:hover { background: var(--accent-2); transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { background: var(--ink-3); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; opacity: .9; }
.btn--light { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: var(--line-d); backdrop-filter: blur(6px); }
.btn--light:hover { background: rgba(255, 255, 255, 0.2); }
.btn--outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--outline:hover { background: var(--paper-2); border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--kakao { background: var(--kakao); color: var(--kakao-ink); box-shadow: 0 14px 30px -18px rgba(254, 229, 0, 0.95); }
.btn--kakao:hover { filter: brightness(0.96); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { transform: translateY(-2px); }
.btn--lg { padding: 17px 32px; font-size: 1.04rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 900;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 255, 255, 0); color: var(--ink);
  transition: background .3s ease, box-shadow .3s ease, color .3s ease, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(14px); border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(15, 39, 69, .5); }
.site-header.is-light { color: var(--ink); }
.site-header.is-light.is-solid { background: rgba(255, 255, 255, 0.95); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; width: 100%; }

.brand { display: inline-flex; align-items: baseline; gap: 7px; font-weight: 900; font-size: 1.3rem; letter-spacing: -0.05em; }
.brand b { font-weight: 900; }
.brand .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; transform: translateY(-2px); }
.brand small { font-size: 0.6rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; opacity: .55; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav__link {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 13px; border-radius: var(--r-sm); font-size: 0.93rem; font-weight: 700;
  color: inherit; opacity: .9; transition: opacity .2s, background .2s;
}
.nav__link:hover { opacity: 1; background: rgba(11, 27, 51, 0.05); }
.site-header.is-light .nav__link:hover { background: rgba(11, 27, 51, 0.05); }
.nav__link.is-active { opacity: 1; color: var(--accent); }
.nav__link .chev { font-size: .6rem; opacity: .6; }
.nav__actions { display: flex; align-items: center; gap: 9px; margin-left: 12px; }
.nav__actions .btn { padding: 10px 18px; font-size: .89rem; }

/* Mega menu */
.mega-wrap { position: absolute; top: var(--header-h); left: 0; right: 0; }
.mega {
  background: rgba(255, 255, 255, 0.99); color: var(--ink);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 60px -30px rgba(11, 27, 51, 0.35);
  opacity: 0; transform: translateY(-8px); pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.site-header.is-light .mega { background: rgba(255, 255, 255, 0.99); color: var(--ink); border-color: var(--line); }
.mega-wrap.is-open .mega { opacity: 1; transform: none; pointer-events: auto; }
.mega__inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding-block: 30px; }
.mega__col h4 { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; font-weight: 800; }
.site-header.is-light .mega__col h4 { color: var(--accent); }
.mega__col ul { display: grid; gap: 2px; }
.mega__col a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border-radius: var(--r-sm); font-size: .94rem; font-weight: 700; opacity: .88; transition: background .2s, opacity .2s; }
.mega__col a:hover { background: rgba(11, 27, 51, 0.05); opacity: 1; }
.site-header.is-light .mega__col a:hover { background: rgba(11, 27, 51, 0.05); }
.mega__col a .soon { font-size: .6rem; font-weight: 800; letter-spacing: .06em; padding: 3px 7px; border-radius: 999px; background: rgba(11, 27, 51, 0.08); opacity: .85; }
.site-header.is-light .mega__col a .soon { background: rgba(11, 27, 51, 0.08); }

/* Hamburger */
.burger { display: none; width: 42px; height: 42px; border-radius: var(--r-sm); background: rgba(11, 27, 51, 0.04); border: 1px solid var(--line); align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.site-header.is-light .burger { background: rgba(11, 27, 51, 0.04); border-color: var(--line); }
.burger span { width: 19px; height: 2px; background: currentColor; display: block; transition: transform .3s, opacity .3s; }
body.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .burger span:nth-child(2) { opacity: 0; }
body.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 890; background: #fff; color: var(--ink);
  padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
  overflow-y: auto; transform: translateX(100%); transition: transform .34s cubic-bezier(.2, .7, .2, 1);
}
body.nav-open .drawer { transform: none; }
.drawer__group { border-bottom: 1px solid var(--line); padding: 15px 0; }
.drawer__group > a, .drawer__group > summary { display: flex; align-items: center; justify-content: space-between; font-size: 1.12rem; font-weight: 800; padding: 4px 0; cursor: pointer; list-style: none; }
.drawer__group > summary::-webkit-details-marker { display: none; }
.drawer__group ul { margin-top: 12px; display: grid; gap: 2px; padding-left: 4px; }
.drawer__group ul a { display: block; padding: 10px 0; font-size: .96rem; opacity: .82; }
.drawer__cta { margin-top: 24px; display: grid; gap: 10px; }
.drawer__meta { margin-top: 20px; font-size: .82rem; color: var(--muted); }

/* ============================================================
   HERO — 심플 & 직선적
   ============================================================ */
.hero {
  position: relative; display: flex; align-items: center; overflow: hidden;
  color: var(--ink); background: linear-gradient(180deg, #f4f8fe 0%, #ffffff 78%);
}
.hero__inner { position: relative; z-index: 1; width: 100%; padding-block: calc(var(--header-h) + clamp(28px, 4.2vw, 54px)) clamp(44px, 5.6vw, 80px); }
.hero__grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(26px, 4.2vw, 56px); align-items: center; }
.hero__copy { min-width: 0; }
/* 히어로 브랜드 — 배경 패널 없이 캘리그라피 워드마크만 크게 놓는다.
   벡터(SVG)라 확대해도 깨지지 않고, 어떤 화면에서도 동일하게 보인다. */
.hero__brand {
  display: flex; align-items: center; justify-content: center;
  min-width: 0;
  /* 워드마크를 조금 위로 — 좌측 카피와 시선 높이를 맞춘다.
     (1단으로 쌓이는 좁은 화면에서는 아래 미디어쿼리에서 0으로 되돌린다) */
  margin-top: clamp(-48px, -3.2vw, -18px);
}
/* 워드마크 + 낙관을 겹쳐 놓기 위한 기준 상자.
   낙관을 이 상자 대비 %로 잡아두면 화면이 커져도 워드마크와의 비율이 그대로 유지된다. */
.hero__brand-mark {
  position: relative; display: block; width: 100%; max-width: 660px;
}
.hero__brand-mark > img:first-child {
  display: block; width: 100%; height: auto;
  /* 붓글씨가 카드 위가 아니라 배경에 바로 얹힌 것처럼 보이도록 */
  filter: drop-shadow(0 18px 34px rgba(15, 39, 69, .16));
}
/* 낙관(도장) — 워드마크 오른쪽 아래에 인주 묻혀 '꽝' 찍은 자리.
   워드마크 글자 끝('외')에만 살짝 걸치도록 크기·위치를 실측해 잡았다.
   살짝 기울여 손으로 찍은 느낌을 준다. */
.hero__seal {
  position: absolute;
  right: -9%; bottom: -5%;
  width: 17.8%; height: auto;      /* 워드마크 폭의 약 6분의 1 */
  transform: rotate(-7deg);
  transform-origin: center;
  filter: drop-shadow(0 6px 14px rgba(15, 39, 69, .16));
  pointer-events: none;
}
.hero__tag {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px;
  border: 1px solid rgba(31, 95, 208, .24); border-radius: 999px;
  background: rgba(31, 95, 208, .07); color: var(--accent);
  font-size: .78rem; font-weight: 800; letter-spacing: .01em; margin-bottom: 20px;
}
.hero__tag .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(31, 95, 208, .7); animation: pulse 2.2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 95, 208, .6); } 70% { box-shadow: 0 0 0 12px rgba(31, 95, 208, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 95, 208, 0); } }

/* 히어로 훅: "합격은 디테일이 생명입니다." */
.hero__hook { margin-bottom: 18px; }
.hero__hook h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.35rem); font-weight: 900; line-height: 1.13;
  letter-spacing: -0.042em; color: var(--ink);
}
.hero__hook h1 em { font-style: normal; color: var(--accent); }

/* 히어로 펀치라인: "현장에서의 1타 경험을 사세요."
   ─ 형광펜을 살짝 눌러 그은 듯한 블루 하이라이트로 한 줄만 강조 */
.hero__punch {
  display: inline-block; margin: 0 0 20px;
  font-size: clamp(1.02rem, 1.75vw, 1.28rem); font-weight: 850;
  letter-spacing: -0.032em; color: var(--ink); line-height: 1.5;
  background-image: linear-gradient(90deg, rgba(31, 95, 208, .22), rgba(31, 95, 208, .05));
  background-repeat: no-repeat;
  background-size: 100% .68em;
  background-position: 0 84%;
}
.hero__sub { font-size: clamp(.98rem, 1.3vw, 1.12rem); font-weight: 600; color: var(--muted); max-width: 560px; margin: 0 0 14px; line-height: 1.62; }
.hero__sub b { color: var(--ink); font-weight: 800; }
.hero__scope { font-size: clamp(.82rem, 1vw, .9rem); color: var(--muted); margin-bottom: 26px; line-height: 1.7; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__foot { font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero__foot::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--accent); opacity: .5; }

/* ============================================================
   LECTURE BAND — 히어로와 시험 선택 사이의 가로 띠

   · 히어로(흰색) → 시험 선택(연회색) 사이가 비어 보인다는 피드백 반영
   · 정사각형·카드형이 아니라 화면 폭을 그대로 쓰는 2.55:1 띠
   · 아주 넓은 화면에서 세로로 과하게 커지지 않도록 max-height로 제한하고,
     그때는 object-fit: cover 로 위아래를 잘라 쓴다
   ============================================================ */
.lecture-band { position: relative; background: var(--paper-3); overflow: hidden; }
.lecture-band img {
  display: block; width: 100%; height: auto;
  max-height: clamp(200px, 26vw, 440px);
  object-fit: cover; object-position: center 42%;
}

/* ============================================================
   EXAM BOXES — 히어로 바로 아래 "무슨 시험을 준비하시나요?"
   ============================================================ */
.exam-pick { padding-block: clamp(52px, 6.4vw, 88px); background: var(--paper-2); color: var(--ink); }
.exam-pick__head { text-align: center; margin-bottom: clamp(30px, 4vw, 50px); }
.exam-pick__head h2 { font-size: clamp(1.6rem, 3.6vw, 2.6rem); font-weight: 900; letter-spacing: -0.035em; margin-bottom: 14px; }
.exam-pick__head p { color: var(--muted); font-size: clamp(.94rem, 1.2vw, 1.04rem); }
.exam-boxes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.exam-box {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 22px 20px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); color: var(--ink); overflow: hidden;
  box-shadow: 0 12px 30px -28px rgba(15, 39, 69, .5);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.exam-box::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .25s ease; }
.exam-box:hover { transform: translateY(-4px); border-color: rgba(31, 95, 208, .45); box-shadow: 0 22px 44px -28px rgba(31, 95, 208, .55); }
.exam-box:hover::before { transform: scaleY(1); }
.exam-box__cat { font-size: .68rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.exam-box__name { font-size: clamp(1.05rem, 1.7vw, 1.24rem); font-weight: 850; letter-spacing: -0.025em; }
.exam-box__tag { font-size: .83rem; color: var(--muted); line-height: 1.55; }
.exam-box__go { margin-top: auto; padding-top: 12px; display: inline-flex; align-items: center; gap: 7px; font-size: .82rem; font-weight: 800; color: var(--accent); }
.exam-box__go i { transition: transform .25s; }
.exam-box:hover .exam-box__go i { transform: translateX(4px); }
.exam-box--soon { opacity: .72; }
.exam-box--soon .exam-box__go { color: var(--muted); }

/* ============================================================
   PAGE HERO (sub pages)
   ============================================================ */
.phero { position: relative; background: linear-gradient(135deg, #164a9e 0%, #1f5fd0 58%, #3f83ea 100%); color: #fff; padding-block: calc(var(--header-h) + clamp(40px, 6vw, 74px)) clamp(38px, 5.5vw, 68px); overflow: hidden; }
.phero__bg { position: absolute; inset: 0; opacity: .16; }
.phero__bg img { width: 100%; height: 100%; object-fit: cover; }
.phero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(15, 39, 69, .5), rgba(15, 39, 69, .12)); }
.phero__inner { position: relative; z-index: 1; }
.phero h1 { font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 900; line-height: 1.06; letter-spacing: -0.038em; margin: 16px 0; }
.phero .lead { max-width: 660px; color: rgba(255, 255, 255, .9); }
.phero .eyebrow { color: #fff; }
.phero .eyebrow::before { background: #fff; }
.crumbs { font-size: .8rem; color: rgba(255, 255, 255, .58); display: flex; gap: 8px; align-items: center; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { opacity: .5; }

/* ============================================================
   CLASS FORMAT — 일타과외는 1:1 과외 / 그룹과외가 있습니다
   ============================================================ */
.fmt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2.2vw, 22px); }
.fmt-card {
  border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff;
  padding: clamp(22px, 2.8vw, 32px); display: flex; flex-direction: column; gap: 12px;
}
.fmt-card--group { border-color: rgba(31, 95, 208, .3); background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%); }
.fmt-card__k {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; color: var(--accent);
}
.fmt-card__k .n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--r-sm); background: var(--accent); color: #fff; font-size: .72rem; letter-spacing: 0; }
.fmt-card__t { font-size: clamp(1.16rem, 2vw, 1.42rem); font-weight: 850; letter-spacing: -0.025em; }
.fmt-card__d { font-size: .95rem; color: var(--muted); line-height: 1.72; }
.fmt-card__d b { color: var(--ink); font-weight: 800; }
.fmt-card__ratio {
  margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: .84rem; font-weight: 800; color: var(--accent); letter-spacing: -0.01em;
}
.fmt-note { margin-top: 14px; }

/* ============================================================
   GROUP CLASS — 현재 인원 모집중인 과외
   ============================================================ */
.gc-list { display: grid; gap: 10px; }

/* ── 세로 자동 흐름(오르막) ────────────────────────────────────
   "나열만 하면 별로" → 위로 한 칸씩 올라가며 위에서 사라지고 아래에서
   다시 이어지는 띠. 상담하면 어떤 반이 모집 중인지 계속 보이게 한다.

   구현 원칙
   · 목록을 두 벌 복제해 트랙을 만들고 -50%만큼 이동 → 끝과 시작이 같아
     이음새 없이 무한 반복된다.
   · 각 항목이 margin-bottom(gap)을 직접 가지므로 한 벌의 높이가 정확히
     트랙 높이의 절반이 된다(간격 누적 오차 없음).
   · 위·아래 끝은 mask로 흐리게 — 딱 잘린 느낌을 없앤다.
   · hover/focus 시 정지, prefers-reduced-motion에서는 애니메이션 없이
     스크롤 가능한 정적 목록으로 대체한다.
   ─────────────────────────────────────────────────────────── */
.gc-marquee {
  --gc-gap: 10px;
  position: relative;
  height: clamp(330px, 33vw, 430px);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0, #000 9%, #000 91%, transparent 100%);
}
.gc-marquee__track {
  display: flex; flex-direction: column;
  animation: gcRise 34s linear infinite;
  will-change: transform;
}
.gc-marquee:hover .gc-marquee__track,
.gc-marquee:focus-within .gc-marquee__track { animation-play-state: paused; }
.gc-marquee__item { padding-bottom: var(--gc-gap); }
.gc-marquee__item .gc-row { will-change: auto; }
/* 복제본은 화면 낭독기에서 제외한다 */
.gc-marquee__item[aria-hidden="true"] { pointer-events: none; }

@keyframes gcRise {
  from { transform: translateY(0); }
  to   { transform: translateY(-50%); }
}
.gc-row {
  display: grid; grid-template-columns: 1.45fr 1fr 1.05fr 1.25fr auto; gap: 16px; align-items: center;
  padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: 0 12px 30px -28px rgba(15, 39, 69, .38);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.gc-row:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: rgba(31, 95, 208, .3); }
.gc-row__exam { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 5px; }
.gc-row__subject { font-size: clamp(1.02rem, 1.5vw, 1.2rem); font-weight: 850; letter-spacing: -0.02em; }
.gc-cell__k { font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.gc-cell__v { font-size: .94rem; font-weight: 700; }
.gc-seats { display: flex; flex-direction: column; gap: 9px; }

/* ── 사람 모형 좌석표 ─────────────────────────────────────────
   채워진 자리 = 블루로 채워진 사람 모형 (신청 완료)
   남은 자리   = 점선 원 안의 사람 모형 (은은하게 호흡)
   · 바둑알 도트 대신 사람 실루엣 + 원형 좌석으로 교체
   · 정원이 많아도(최대 8인) 한 줄에 정렬되도록 폭을 압축
   ─────────────────────────────────────────────────────────── */
.gc-seat-row { display: flex; flex-wrap: nowrap; align-items: center; gap: 5px; }
.gc-seat {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 23px; height: 23px; flex: 0 0 auto;
  border-radius: 50%;
  transition: transform .24s cubic-bezier(.4, 0, .2, 1), box-shadow .24s ease, border-color .24s ease;
}
.gc-seat svg { width: 12px; height: 12px; display: block; }

/* 신청 완료 — 블루로 채워진 좌석 */
.gc-seat--on {
  background: linear-gradient(160deg, var(--accent-2) 0%, var(--accent) 100%);
  border: 0;
  box-shadow: 0 3px 10px -4px rgba(31, 95, 208, .65), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.gc-seat--on svg { fill: rgba(255, 255, 255, .95); }

/* 남은 자리 — 점선 링 안의 사람 모형 (호흡) */
.gc-seat--open {
  background: transparent;
  border: 1px dashed rgba(31, 95, 208, .42);
}
.gc-seat--open svg { fill: rgba(31, 95, 208, .26); }
.gc-seat--open::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid rgba(31, 95, 208, .34);
  opacity: 0; pointer-events: none;
  animation: seatBreath 2.9s cubic-bezier(.4, 0, .2, 1) infinite;
}
.gc-seat--open:nth-child(2n)::after { animation-delay: .38s; }
.gc-seat--open:nth-child(3n)::after { animation-delay: .76s; }
.gc-seat--open:nth-child(5n)::after { animation-delay: 1.14s; }
@keyframes seatBreath {
  0%, 100% { opacity: 0; transform: scale(.94); }
  50% { opacity: .5; transform: scale(1.12); }
}
.gc-seat-row:hover .gc-seat { transform: translateY(-2px); }
.gc-seat-row:hover .gc-seat--open { border-color: rgba(31, 95, 208, .72); }

.gc-seats__txt { font-size: .84rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.gc-seats__txt b { color: var(--accent); font-weight: 850; }
.gc-row__cta { justify-self: end; }
.gc-row__cta .btn { padding: 12px 20px; font-size: .9rem; }
.gc-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-size: .72rem; font-weight: 850; letter-spacing: .04em;
}
.gc-badge .blink {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent);
  animation: blink 2.4s cubic-bezier(.4, 0, .2, 1) infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(31, 95, 208, .45); }
  70% { opacity: .72; box-shadow: 0 0 0 5px rgba(31, 95, 208, 0); }
}

/* ============================================================
   SPACES — 일타과외 어디서 들을 수 있나요?

   ※ 아직 오픈 전(협력업체 모집 중)이라 섹션이 과하게 커 보인다는 피드백에
      따라 전체 부피를 약 3분의 2로 줄였다. 카드·간격·글자 크기와 섹션
      상하 여백을 함께 줄여 '작은 안내 블록'으로 읽히게 한다.
   ============================================================ */
.section--compact { padding-block: clamp(36px, 4.4vw, 60px); }
.space-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 18px); }
.space-card { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.space-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.space-card__img { position: relative; aspect-ratio: 2.1/1; overflow: hidden; background: var(--paper-3); }
.space-card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.space-card:hover .space-card__img img { transform: scale(1.06); }
.space-card__region { position: absolute; top: 10px; left: 10px; z-index: 2; padding: 4px 9px; background: rgba(15, 39, 69, .82); backdrop-filter: blur(6px); color: #fff; font-size: .68rem; font-weight: 850; border-radius: var(--r-sm); }
.space-card__body { padding: 12px 14px 13px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.space-card__type { font-size: .62rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--accent); }
.space-card__name { font-size: .94rem; font-weight: 850; letter-spacing: -0.025em; }
.space-card__meta { font-size: .74rem; color: var(--muted); display: grid; gap: 3px; }
.space-card__meta .r { display: flex; gap: 5px; align-items: flex-start; }
.space-card__meta i { color: var(--accent); margin-top: 3px; font-size: .69rem; }
.space-card__feats { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); display: flex; flex-wrap: wrap; gap: 4px; }
.space-feat { font-size: .64rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--paper-2); color: var(--muted); }
/* 아직 오픈 전인 섹션이라 제목 블록도 한 단계 줄인다 */
#spaces .sec-head { margin-bottom: clamp(18px, 2.2vw, 28px); }
#spaces .sec-head h2 { font-size: clamp(1.32rem, 2.5vw, 1.86rem); }
#spaces .sec-head .lead { font-size: clamp(.86rem, 1vw, .94rem); }
#spaces .mt-4 { margin-top: 16px; }

/* ============================================================
   CARDS
   ============================================================ */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 2.8vw, 32px); box-shadow: 0 12px 30px -26px rgba(15, 39, 69, .4); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.section--dark .card, .section--ink-2 .card { background: #fff; border-color: var(--line); color: var(--ink); }
.card__num { font-size: 2.4rem; font-weight: 900; letter-spacing: -0.05em; color: var(--accent); line-height: 1; margin-bottom: 14px; }
.section--dark .card__num, .section--ink-2 .card__num { color: var(--accent); }
.card__title { font-size: 1.18rem; font-weight: 800; margin-bottom: 9px; letter-spacing: -0.022em; }
.card__desc { font-size: .95rem; color: var(--muted); line-height: 1.68; }
.section--dark .card__desc, .section--ink-2 .card__desc { color: var(--muted); }

/* image card */
.icard { position: relative; display: block; border-radius: var(--r-lg); overflow: hidden; color: #fff; background: var(--ink-3); min-height: 260px; isolation: isolate; }
.icard__img { position: absolute; inset: 0; z-index: 0; }
.icard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.icard::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(15, 39, 69, .12) 22%, rgba(15, 39, 69, .55) 62%, rgba(15, 39, 69, .92) 100%); transition: background .4s; }
.icard__body { position: relative; z-index: 2; padding: clamp(20px, 2.8vw, 30px); height: 100%; display: flex; flex-direction: column; justify-content: flex-end; min-height: inherit; }
.icard__kicker { font-size: .7rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 9px; }
.icard__title { font-size: clamp(1.2rem, 2.2vw, 1.6rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1.16; }
.icard__desc { font-size: .9rem; color: rgba(255, 255, 255, .82); margin-top: 9px; }
.icard__go { margin-top: 16px; display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 800; }
.icard__go i { transition: transform .3s; }
.icard:hover .icard__img img { transform: scale(1.07); }
.icard:hover .icard__go i { transform: translateX(5px); }

/* ============================================================
   MEDIA / FEATURE
   ============================================================ */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(26px, 4.6vw, 64px); align-items: center; }
.media-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--zoom img { transition: transform 1.2s cubic-bezier(.2, .7, .2, 1); }
.media-frame--zoom:hover img { transform: scale(1.05); }
.media-frame__tag { position: absolute; left: 16px; bottom: 16px; z-index: 2; padding: 9px 15px; border-radius: var(--r-sm); background: rgba(15, 39, 69, .74); backdrop-filter: blur(8px); color: #fff; font-size: .8rem; font-weight: 800; }
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-4-3 { aspect-ratio: 4/3; }
.ratio-3-4 { aspect-ratio: 3/4; }
.ratio-1-1 { aspect-ratio: 1/1; }

/* 강사·공간주 모집 — 사진을 빼고 카피만 남긴 블록.
   2단 그리드를 해제했으므로 읽기 좋은 폭으로만 묶고 왼쪽 정렬한다. */
.recruit { max-width: 760px; }

/* ============================================================
   COMPARE
   ============================================================ */
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.6vw, 28px); }
.compare__col { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; }
.compare__col--dark { background: var(--ink); color: #fff; border-color: transparent; }
.compare__img { aspect-ratio: 16/10; overflow: hidden; }
.compare__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s; }
.compare__col:hover .compare__img img { transform: scale(1.05); }
.compare__body { padding: clamp(22px, 2.8vw, 34px); flex: 1; display: flex; flex-direction: column; }
.compare__kicker { font-size: .72rem; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.compare__col--dark .compare__kicker { color: var(--accent-2); }
.compare__title { font-size: clamp(1.3rem, 2.4vw, 1.85rem); font-weight: 900; letter-spacing: -0.032em; line-height: 1.12; margin-bottom: 13px; }
.compare__desc { font-size: .96rem; color: var(--muted); margin-bottom: 20px; }
.compare__col--dark .compare__desc { color: var(--muted-d); }
.ticks { display: grid; gap: 11px; margin-bottom: 24px; }
.ticks li { display: flex; gap: 11px; align-items: flex-start; font-size: .95rem; font-weight: 650; }
.ticks li i { color: var(--accent); margin-top: 4px; font-size: .8rem; }
.compare__col--dark .ticks li i { color: var(--accent-2); }
.compare__foot { margin-top: auto; }

/* ============================================================
   PROCESS
   ============================================================ */
.steps { display: grid; gap: 0; }
.step { display: grid; grid-template-columns: 84px 1fr; gap: clamp(16px, 2.8vw, 30px); padding: clamp(20px, 2.8vw, 30px) 0; border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step__no { font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 900; letter-spacing: -0.04em; color: var(--accent); line-height: 1; }
.step__title { font-size: clamp(1.08rem, 1.9vw, 1.36rem); font-weight: 850; margin-bottom: 7px; }
.step__desc { color: var(--muted); font-size: .96rem; }

/* ============================================================
   NEED LIST
   ============================================================ */
.need-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 26px; }
.need-list li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: .99rem; font-weight: 650; }
.section--dark .need-list li, .section--ink-2 .need-list li { border-bottom-color: var(--line); }
.need-list li i { color: var(--accent); margin-top: 4px; }
.section--dark .need-list li i { color: var(--accent); }

/* ============================================================
   INTERVIEW
   ============================================================ */
.sample-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; font-weight: 850; letter-spacing: .1em; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(31, 95, 208, .25); }
.sample-badge--light { background: var(--accent-soft); color: var(--accent); border-color: rgba(31, 95, 208, .25); }

/* ============================================================
   REVIEW CARDS
   ============================================================ */
.review { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: clamp(20px, 2.8vw, 28px); display: flex; flex-direction: column; height: 100%; box-shadow: 0 12px 30px -28px rgba(15, 39, 69, .38); }
.review__top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 15px; }
.chip { font-size: .7rem; font-weight: 800; padding: 5px 11px; border-radius: 999px; background: var(--paper-2); color: var(--ink); border: 1px solid var(--line); }
.chip--accent { background: var(--accent-soft); color: var(--accent); border-color: rgba(31, 95, 208, .2); }
.review__body { font-size: .96rem; line-height: 1.72; color: var(--ink); flex: 1; }
.review__meta { margin-top: 16px; padding-top: 15px; border-top: 1px dashed var(--line); display: grid; gap: 4px; font-size: .8rem; color: var(--muted); }
.review__meta span b { color: var(--ink); font-weight: 800; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 21px 0; font-size: clamp(.99rem, 1.5vw, 1.12rem); font-weight: 800; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { flex: none; width: 25px; height: 25px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: .76rem; transition: transform .3s, background .3s, color .3s; opacity: .7; }
.faq details[open] summary .ico { transform: rotate(45deg); background: var(--accent); border-color: var(--accent); color: #fff; opacity: 1; }
.faq__a { padding: 0 0 22px; color: var(--muted); font-size: .96rem; line-height: 1.72; max-width: 82ch; }
.section--dark .faq__a, .section--ink-2 .faq__a { color: var(--muted); }

/* ============================================================
   INSTRUCTORS
   ============================================================ */
.inst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.6vw, 26px); }
.inst { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; display: flex; flex-direction: column; box-shadow: 0 12px 30px -28px rgba(15, 39, 69, .38); transition: transform .25s, box-shadow .25s; }
.inst:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.inst__photo { aspect-ratio: 4/3; background: var(--paper-3); position: relative; display: grid; place-items: center; color: var(--muted); }
.inst__photo i { font-size: 2rem; opacity: .5; }
.inst__photo .ph-tag { position: absolute; top: 12px; left: 12px; font-size: .64rem; font-weight: 850; letter-spacing: .08em; padding: 5px 10px; border-radius: 999px; background: var(--ink); color: #fff; }
.inst__body { padding: clamp(18px, 2.2vw, 24px); display: flex; flex-direction: column; gap: 13px; flex: 1; }
.inst__name { font-size: 1.16rem; font-weight: 850; letter-spacing: -0.022em; display: flex; align-items: center; gap: 10px; }
.inst__name .ph { font-size: .7rem; font-weight: 750; color: var(--muted); border: 1px dashed var(--line); padding: 2px 8px; border-radius: 999px; }
.inst__rows { display: grid; gap: 8px; font-size: .88rem; }
.inst__rows .row { display: grid; grid-template-columns: 84px 1fr; gap: 12px; }
.inst__rows .k { color: var(--muted); font-weight: 650; }
.inst__rows .v { color: var(--ink); font-weight: 650; }
.inst__rows .v.ph { color: var(--muted); font-weight: 500; font-style: italic; }
.inst__foot { margin-top: auto; }

/* 안내 바 — 흰색/연회색 섹션 어디에 놓여도 동일하게 보이도록
   배경을 종이색이 아닌 은은한 블루 틴트로 처리 */
.notice-bar { display: flex; gap: 14px; align-items: flex-start; padding: 17px 19px; border-radius: var(--r-sm); background: rgba(31, 95, 208, .055); border: 1px dashed rgba(31, 95, 208, .26); font-size: .87rem; color: var(--muted); }
.notice-bar i { color: var(--accent); margin-top: 3px; }

/* ============================================================
   KAKAO / CONSULT
   ============================================================ */
.kakao-card { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 3.6vw, 50px); align-items: center; background: linear-gradient(150deg, #ffffff 0%, #e9f2fe 100%); color: var(--ink); border-radius: var(--r-lg); padding: clamp(24px, 4.2vw, 52px); border: 1px solid #cfe2f8; box-shadow: 0 26px 60px -34px rgba(15, 39, 69, .45); }
.kakao-card__list { display: grid; gap: 11px; margin: 20px 0 24px; }
.kakao-card__list li { display: flex; gap: 12px; align-items: flex-start; font-size: .94rem; color: var(--muted); }
.kakao-card__list li b { flex: none; width: 22px; height: 22px; border-radius: var(--r-sm); background: var(--kakao); color: var(--kakao-ink); font-size: .7rem; font-weight: 900; display: grid; place-items: center; margin-top: 2px; }
.kakao-mock { background: var(--kakao); color: var(--kakao-ink); border-radius: var(--r-lg); padding: 22px; box-shadow: 0 20px 44px -26px rgba(15, 39, 69, .35); }
.kakao-mock__head { display: flex; align-items: center; gap: 10px; font-weight: 900; margin-bottom: 14px; }
.kakao-mock__bubble { background: #fff; border-radius: var(--r-sm); padding: 13px 15px; font-size: .89rem; line-height: 1.6; box-shadow: 0 6px 18px -12px rgba(11, 27, 51, .4); }
.kakao-mock__bubble + .kakao-mock__bubble { margin-top: 10px; }
.kakao-mock__bubble .lbl { font-weight: 900; color: var(--accent); display: block; margin-bottom: 2px; font-size: .76rem; letter-spacing: .04em; }

/* 연락처 카드 (전화 + 카카오) */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.contact-card { display: flex; align-items: center; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; transition: transform .2s, box-shadow .2s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.contact-card__ico { flex: none; width: 48px; height: 48px; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 1.2rem; background: var(--accent-soft); color: var(--accent); }
.contact-card--kakao .contact-card__ico { background: rgba(254, 229, 0, .18); color: #b59b00; }
.contact-card__k { font-size: .72rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.contact-card__v { font-size: clamp(1.05rem, 1.7vw, 1.24rem); font-weight: 900; letter-spacing: -0.02em; }

/* ============================================================
   FLOATING CTA
   ============================================================ */
.float-cta { position: fixed; right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px); z-index: 880; display: grid; gap: 11px; justify-items: end; }
.float-cta__group { display: grid; gap: 10px; }
.float-cta__btn { display: inline-flex; align-items: center; gap: 10px; font-weight: 850; font-size: .93rem; padding: 14px 20px; border-radius: var(--r); box-shadow: 0 18px 40px -18px rgba(11, 27, 51, .55); transition: transform .22s, filter .22s; }
.float-cta__btn:hover { transform: translateY(-3px); }
.float-cta__kakao { background: var(--kakao); color: var(--kakao-ink); }
.float-cta__tel { background: var(--accent); color: #fff; }
.float-cta__btn i { font-size: 1.1rem; }
.float-cta__top { width: 46px; height: 46px; margin-left: auto; border-radius: var(--r-sm); background: rgba(15, 39, 69, .84); color: #fff; border: 1px solid var(--line-d); display: grid; place-items: center; backdrop-filter: blur(8px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s; }
.float-cta__top.is-on { opacity: 1; pointer-events: auto; }
.float-cta__top:hover { transform: translateY(-3px); }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 885; display: none; grid-template-columns: 1fr 1fr 1.15fr; gap: 7px; padding: 9px 11px calc(9px + env(safe-area-inset-bottom)); background: rgba(15, 39, 69, .97); backdrop-filter: blur(12px); border-top: 1px solid rgba(255, 255, 255, .12); }
.mobile-bar .btn { padding: 12px 8px; font-size: .88rem; }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band { position: relative; color: #fff; overflow: hidden; background: linear-gradient(135deg, #164a9e 0%, #1f5fd0 60%, #3f83ea 100%); }
.cta-band__bg { position: absolute; inset: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 39, 69, .55), rgba(15, 39, 69, .72)); }
.cta-band__inner { position: relative; z-index: 1; padding-block: clamp(60px, 8.5vw, 124px); text-align: center; }
.cta-band h2 { font-size: clamp(1.8rem, 4.6vw, 3.4rem); font-weight: 900; line-height: 1.08; letter-spacing: -0.038em; margin-bottom: 20px; }
.cta-band .lead { max-width: 620px; margin: 0 auto 28px; }
.cta-band .btn-row { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--paper-2); color: var(--muted); padding-block: clamp(44px, 5.5vw, 76px) 32px; border-top: 1px solid var(--line); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: clamp(24px, 3.6vw, 46px); padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.footer-brand .brand { color: var(--ink); font-size: 1.32rem; margin-bottom: 14px; }
.footer-brand p { font-size: .89rem; max-width: 36ch; line-height: 1.68; }
.footer-col h4 { color: var(--ink); font-size: .76rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; font-weight: 800; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { font-size: .88rem; color: var(--muted); }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { padding-top: 24px; display: flex; flex-wrap: wrap; gap: 14px 30px; justify-content: space-between; font-size: .79rem; }
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-disclaimer { margin-top: 18px; font-size: .74rem; line-height: 1.68; color: var(--muted); max-width: 92ch; }

/* ============================================================
   ANCHOR NAV
   ============================================================ */
.anchor-nav { position: sticky; top: var(--header-h); z-index: 500; background: rgba(255, 255, 255, .95); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.anchor-nav ul { display: flex; gap: 5px; overflow-x: auto; padding-block: 11px; scrollbar-width: none; }
.anchor-nav ul::-webkit-scrollbar { display: none; }
.anchor-nav a { white-space: nowrap; font-size: .86rem; font-weight: 750; padding: 8px 14px; border-radius: var(--r-sm); color: var(--muted); }
.anchor-nav a:hover { background: var(--paper-2); color: var(--ink); }

/* ============================================================
   FORM
   ============================================================ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 800; }
.field .req { color: var(--accent); }
.field input, .field select, .field textarea { width: 100%; padding: 13px 15px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font-family: inherit; font-size: .95rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .81rem; color: var(--muted); }
.form-status { padding: 15px 17px; border-radius: var(--r-sm); font-size: .91rem; font-weight: 700; display: none; }
.form-status.is-ok { display: block; background: #e8f7ee; color: #106b3a; border: 1px solid #b6e6c9; }
.form-status.is-err { display: block; background: #fdecec; color: #a01b1b; border: 1px solid #f3c3c3; }

/* ============================================================
   SUBJECT SELECTOR
   ============================================================ */
.subj-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.subj-pill { padding: 11px 18px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; font-size: .91rem; font-weight: 700; transition: all .2s; }
.subj-pill:hover { border-color: var(--ink); }
.subj-pill.is-active { background: var(--accent); color: #fff; border-color: var(--accent); }
.subj-result { margin-top: 20px; padding: 20px 22px; border-radius: var(--r); background: var(--paper-2); border: 1px dashed var(--line); font-size: .94rem; }
.subj-result b { color: var(--accent); }
.section--dark .subj-pill { background: #fff; border-color: var(--line); color: var(--ink); }
.section--dark .subj-pill:hover { border-color: var(--accent); }
.section--dark .subj-pill.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s cubic-bezier(.2, .7, .2, 1), transform .75s cubic-bezier(.2, .7, .2, 1); will-change: opacity, transform; }
.reveal.is-in { opacity: 1; transform: none; }
.reveal--d1 { transition-delay: .07s; }
.reveal--d2 { transition-delay: .14s; }
.reveal--d3 { transition-delay: .21s; }
.reveal--d4 { transition-delay: .28s; }

/* ============================================================
   UTILITIES
   ============================================================ */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; } .mt-2 { margin-top: 18px; } .mt-3 { margin-top: 28px; } .mt-4 { margin-top: 40px; }
.mb-2 { margin-bottom: 18px; } .mb-3 { margin-bottom: 28px; }
.center { text-align: center; }
.flex { display: flex; } .wrap-flex { flex-wrap: wrap; } .items-center { align-items: center; } .gap-2 { gap: 12px; } .gap-3 { gap: 20px; }
.justify-between { justify-content: space-between; }
.mx-auto { margin-inline: auto; }
.maxw-720 { max-width: 720px; } .maxw-620 { max-width: 620px; }
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: flex; }
  .site-header .nav__actions .btn--kakao { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .mega__inner { grid-template-columns: 1fr 1fr; }
  .inst-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .exam-boxes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .space-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gc-row { grid-template-columns: 1.4fr 1fr 1fr auto; }
  .gc-row .gc-cell--region { display: none; }
}
@media (max-width: 860px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero__grid { grid-template-columns: 1fr; }
  /* 1단으로 쌓이면 워드마크가 화면 밖으로 넘치지 않도록 폭을 살짝 줄이고,
     낙관은 안쪽으로 당겨 잘리지 않게 한다 (320~860px 전 구간 실측 확인) */
  .hero__brand-mark { max-width: min(660px, 92%); }
  .hero__seal { right: -3%; bottom: -2%; width: 17%; }
  .split { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .kakao-card { grid-template-columns: 1fr; }
  .need-list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .float-cta { display: none; }
  .mobile-bar { display: grid; }
  /* 하단 고정 바 높이 + 아이폰 홈 인디케이터(safe-area)만큼 본문 여백 확보 */
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .exam-boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gc-row { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .gc-row__cta { justify-self: stretch; }
  .gc-row__cta .btn { width: 100%; }
  /* 1단으로 쌓이면 행 높이가 커지므로 마퀴 창을 조절한다 */
  .gc-marquee { height: clamp(430px, 90vw, 540px); }
  /* 가로 띠 — 좁은 화면에서도 '가로로 긴' 인상을 유지한다(2:1).
     세로로 잘리는 부분은 강사 쪽(오른쪽)으로 당겨 인물이 남게 한다. */
  .lecture-band img { max-height: none; aspect-ratio: 2 / 1; object-position: 70% 40%; }
  .fmt-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .inst-grid { grid-template-columns: 1fr; }
  .space-grid { grid-template-columns: 1fr; }
  .step { grid-template-columns: 52px 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
  .hero__cta .btn, .cta-band .btn-row .btn { width: 100%; }
  .btn-row .btn { flex: 1 1 100%; }
  .exam-boxes { grid-template-columns: 1fr 1fr; gap: 9px; }
  .exam-box { padding: 18px 16px; }
  .mega { display: none; }

  /* ── 모바일 정비 ─────────────────────────────────────────────
     · 입력 필드 16px : iOS 사파리가 입력 시 화면을 자동 확대하는 문제 방지
     · 섹션 여백 축소  : 좁은 화면에서 빈 공간이 과하게 남지 않도록
     · 터치 타깃 확대  : 앵커 내비 44px 이상 확보
     · 히어로 캡션 축소
     ─────────────────────────────────────────────────────────── */
  .field input, .field select, .field textarea { font-size: 16px; }
  .section { padding-block: clamp(52px, 11vw, 74px); }
  .section--tight { padding-block: clamp(40px, 9vw, 58px); }
  .sec-head { margin-bottom: 26px; }
  .anchor-nav a { padding: 11px 15px; }
  /* 워드마크가 좁은 화면에서 잘리지 않도록 폭 기준으로 축소 */
  .hero__brand-mark { max-width: min(660px, 92%); }
  /* 1단으로 쌓이면 위로 올릴 이유가 없다 — 원래 흐름으로 되돌린다 */
  .hero__brand { margin-top: 0; }
  /* 낙관 — 좁은 화면에서는 잘림·하단 고정 바 겹침을 막기 위해 안쪽으로 당긴다 */
  .hero__seal { right: -2%; bottom: 2%; width: 15.5%; }
  .float-cta { bottom: calc(clamp(16px, 3vw, 30px) + env(safe-area-inset-bottom)); }
}

@media (max-width: 400px) {
  /* 하단 고정 바 — 좁은 기기에서 버튼 라벨이 줄바꿈되지 않도록 압축 */
  .mobile-bar { gap: 5px; padding-inline: 8px; }
  .mobile-bar .btn { padding: 11px 4px; font-size: .8rem; gap: 5px; }
  .hero__cta .btn, .btn-row .btn, .cta-band .btn-row .btn { font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  /* 모션 최소화 — 남은 자리는 정지한 점선 링으로 대체 */
  .gc-seat--open::after { animation: none; opacity: 1; transform: none;
    border-style: dashed; border-color: rgba(31, 95, 208, .45); }
  .gc-badge .blink { animation: none; box-shadow: none; }
  /* 세로 자동 흐름 — 움직임을 멈추고 스크롤 가능한 정적 목록으로 대체.
     복제해 둔 두 번째 벌은 숨겨 중복 노출을 막는다. */
  .gc-marquee {
    height: auto; overflow-y: auto;
    -webkit-mask-image: none; mask-image: none;
  }
  .gc-marquee__track { animation: none; transform: none; }
  .gc-marquee__item[aria-hidden="true"] { display: none; }
  html { scroll-behavior: auto; }
  .splash-on .splash { display: none !important; }
}

