/*
  올바른에듀 홍보 사이트 — 스타일 한 장.

  🚨 빌드 단계가 없다(Tailwind·PostCSS 없음). 앱(frontend/)과 달리 여기는 순수 정적이며,
     그게 이 사이트를 고른 이유다 — 검색 크롤러가 JS 실행 없이 본문을 그대로 읽고,
     첫 화면이 즉시 뜬다. 🚫 CDN 스크립트를 들이지 말 것(앱에서 걷어낸 전례가 있다).

  🚨 웹폰트를 불러오지 않는다. 시스템 한글 글꼴을 그대로 쓴다 —
     맥·아이폰은 Apple SD Gothic Neo, 윈도우는 맑은 고딕이 잡힌다.
     학부모가 모바일 데이터로 열어 보는 페이지라 폰트 한 벌(수백 KB)이 첫인상을 좌우한다.
     🅰 브랜드 로고는 글자가 아니라 **구운 PNG**다(앱과 같은 판단 — CLAUDE.md 「브랜드 로고」).

  색: 앱과 같은 브랜드 파랑(#2563EB)과 짙은 남색(#172554)을 쓴다. 통일하지 말고 유지할 것 —
     앱에서 theme-color 와 background_color 를 일부러 다르게 둔 것과 같은 이유다.
*/

:root {
  --blue:        #2563EB;
  --blue-dark:   #1D4ED8;
  --navy:        #172554;
  --navy-soft:   #1E3A8A;

  --ink:         #0F172A;
  --ink-mid:     #334155;
  --ink-soft:    #64748B;

  --line:        #E2E8F0;
  --bg:          #FFFFFF;
  --bg-alt:      #F8FAFC;

  --radius:      14px;
  --radius-lg:   22px;
  --shadow:      0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg:   0 2px 4px rgba(15, 23, 42, .04), 0 18px 48px rgba(15, 23, 42, .10);

  --wrap:        1120px;
  --nav-h:       68px;
}

/* ── 기본 ───────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* 앵커로 이동할 때 고정 헤더에 제목이 가리지 않게 */
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard",
               "Malgun Gothic", "맑은 고딕", "Noto Sans KR", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.8;
  word-break: keep-all;      /* 한글이 낱말 중간에서 안 끊기게 */
  overflow-wrap: break-word;
  letter-spacing: -.01em;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { line-height: 1.3; letter-spacing: -.028em; margin: 0; }
p, ul, ol, dl  { margin: 0; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: .1em .4em;
}

.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;
}

/*
  🚨 `hidden` 속성이 항상 이기게 못 박는다. 브라우저 기본값은 `[hidden]{display:none}` 인데
     **뒤에 오는 어떤 display 선언에도 밀린다.** 실제로 `.form-box.is-ready .cform{display:block}`
     이 이겨서, 전송 뒤 `form.hidden = true` 를 해도 **폼이 그대로 남고 감사 화면과 겹쳐 보였다.**
     JS 로 감추는 자리가 여럿이라 개별로 대응하지 말고 여기서 한 번에 정한다.
*/
[hidden] { display: none !important; }

/* 키보드 사용자용 — Tab 을 처음 누르면 나타난다 */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 0 0 var(--radius) 0;
}
.skip:focus { left: 0; }

:where(a, button, summary, input):focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}
.wrap--narrow { max-width: 760px; }

/* ── 버튼 ───────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background-color .18s, color .18s, border-color .18s, transform .12s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn--solid  { background: var(--blue); color: #fff; }
.btn--solid:hover  { background: var(--blue-dark); }

.btn--outline { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }

.btn--ghost  { color: var(--ink-mid); }
.btn--ghost:hover { color: var(--blue); background: var(--bg-alt); }

.btn--lg { padding: 15px 30px; font-size: 17px; }

/* ── 헤더 ───────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 12px rgba(15,23,42,.05); }

.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
}

/*
  🚨 브랜드 글자를 더 키울 때는 **헤더 문턱(1080px)을 다시 재야 한다** —
     로고가 넓어진 만큼 가운데 메뉴 6개가 쓸 자리가 줄어, 어느 순간 겹친다.
     18px → 22px 로 올린 지금 1090px 에서 좌우 여유가 각각 60px 남는다(실측).
*/
.nav__brand {
  display: flex; align-items: center; gap: 11px;
  color: var(--ink); font-weight: 800; font-size: 22px;
  letter-spacing: -.035em;
  flex-shrink: 0;
}
.nav__brand:hover { text-decoration: none; }
/* 글자를 키운 만큼 로고도 함께 키운다 — 한쪽만 키우면 균형이 깨진다 */
.nav__brand img { width: 40px; height: 40px; border-radius: 10px; }

/* 메뉴 + 버튼을 함께 담는 칸. 모바일에서는 이 상자째로 드롭다운이 된다. */
.nav__menu {
  flex: 1;
  display: flex; align-items: center; gap: 20px;
}

.nav__links {
  display: flex; align-items: center; gap: 4px;
  margin-inline: auto;      /* 브랜드와 버튼 사이 가운데로 */
}
.nav__links a {
  color: var(--ink-mid); font-size: 15px; font-weight: 600;
  padding: 8px 13px; border-radius: 999px;
}
.nav__links a:hover { color: var(--blue); background: var(--bg-alt); text-decoration: none; }
.nav__links a.is-active { color: var(--blue); background: #EFF6FF; }

.nav__cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 0;
}
.nav__toggle span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform .22s, opacity .18s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── 히어로 ─────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: clamp(64px, 10vw, 120px) 0 clamp(56px, 8vw, 96px);
  background:
    radial-gradient(1100px 460px at 12% -10%, #DBEAFE 0%, transparent 62%),
    radial-gradient(900px 420px at 92% 8%, #EFF6FF 0%, transparent 58%),
    var(--bg);
  overflow: hidden;
}

.eyebrow {
  display: inline-block;
  font-size: 13.5px; font-weight: 800; letter-spacing: .06em;
  color: var(--blue);
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 5px 13px; border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow--light {
  color: #BFDBFE; background: rgba(255,255,255,.10); border-color: rgba(191,219,254,.35);
}

.hero__title {
  font-size: clamp(36px, 6.2vw, 62px);
  font-weight: 800;
  letter-spacing: -.04em;
  margin-bottom: 24px;
}

.hero__lead {
  font-size: clamp(18px, 2.2vw, 21px);
  color: var(--ink-mid);
  max-width: 640px;
  margin-bottom: 36px;
}
.hero__lead strong { color: var(--ink); font-weight: 700; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 60px; }

.stats {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 720px;
}
.stats li {
  background: rgba(255,255,255,.72);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}
.stats strong {
  display: block;
  font-size: clamp(20px, 3vw, 27px); font-weight: 800; color: var(--navy);
  letter-spacing: -.035em; line-height: 1.2;
}
.stats span { font-size: 14px; color: var(--ink-soft); font-weight: 600; }

/* ── 섹션 ───────────────────────────────────────────────── */

.section { padding: clamp(64px, 9vw, 110px) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

.section--cta {
  background:
    radial-gradient(800px 400px at 80% 0%, var(--navy-soft) 0%, transparent 60%),
    var(--navy);
  color: #fff;
}

.section__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -.035em;
  margin-bottom: 18px;
}
.section__title--light { color: #fff; }

.section__lead {
  font-size: clamp(17px, 2vw, 19px);
  color: var(--ink-mid);
  max-width: 680px;
  margin-bottom: 40px;
}
.section__lead--light { color: #C7D2FE; }
.section__lead strong { color: var(--ink); }

/*
  🚨 어두운 배경(.section--cta) 위에서는 `strong` 색을 **반드시 되돌린다.**
     위 줄이 `var(--ink)`(거의 검정)라, 안 되돌리면 남색 바탕에 검은 글씨가 되어
     **강조하려던 낱말이 오히려 제일 안 보인다** — 실제로 「신청 양식」·「1일 이내에 연락」이
     그 상태였다(2026-08-03 원장쌤 지적).
  🎨 스카이블루를 쓴다. 주변 본문(#C7D2FE 연보라)과 확실히 갈리면서 브랜드 파랑 계열을
     벗어나지 않는다. ⚠️ 주황(#FB923C)도 후보였는데, 그러면 **사이트 전체에서 유일한 주황**이
     되어 강조가 아니라 실수처럼 보인다.
*/
.section__lead--light strong { color: #7DD3FC; }

.sub-title {
  font-size: clamp(22px, 2.8vw, 28px); font-weight: 800;
  margin: 64px 0 24px;
}

.note {
  margin-top: 24px;
  font-size: 16px;
  color: var(--ink-soft);
}
.note--light { color: #A5B4FC; }
.note--light a { color: #DBEAFE; text-decoration: underline; }

/* ── 카드 ───────────────────────────────────────────────── */

.cards { display: grid; gap: 20px; margin-top: 8px; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card--outline { box-shadow: none; }
.card--tight { padding: 24px 22px; }

.card__tag {
  font-size: 13px; font-weight: 800; letter-spacing: .05em;
  color: var(--blue); margin-bottom: 12px;
}
.card__title { font-size: 19px; font-weight: 800; margin-bottom: 14px; }
.card__body  { font-size: 16.5px; color: var(--ink-mid); }
.card__body strong { color: var(--ink); font-weight: 700; }

.seat {
  font-size: 13px; font-weight: 700; color: var(--blue);
  background: #EFF6FF; border-radius: 999px; padding: 3px 10px;
  margin-left: 6px; vertical-align: 2px;
}

.list { list-style: none; padding: 0; font-size: 16.5px; color: var(--ink-mid); }
.list li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 12px;
}
.list li::before {
  content: "";
  position: absolute; left: 3px; top: .68em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
}
.list strong { color: var(--ink); font-weight: 700; }

/* ── 가격 안내 ──────────────────────────────────────────── */

.plans {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  align-items: start;
}

.plan {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}

/*
  🚨 강조 카드는 **테두리와 배경만** 다르다. `transform: scale()` 로 키우지 말 것 —
     3칸 그리드에서 가운데만 커지면 양옆 카드와 위아래 선이 어긋나 보이고,
     모바일에서 1열이 되는 순간 그 카드만 화면 밖으로 삐져나온다.
*/
.plan--feature {
  border-color: var(--blue);
  background: linear-gradient(180deg, #F5F9FF 0%, #fff 42%);
  /*
    🚨 테두리를 2px 로 굵히지 말 것 — 그러면 이 카드만 안쪽 내용이 1px 내려앉아
       **금액 줄이 옆 카드와 어긋난다**(위 .plan__name 의 min-height 로 맞춰 놓은 것이 깨진다).
       box-shadow 링은 레이아웃을 전혀 건드리지 않으면서 같은 두께로 보인다.
  */
  box-shadow: 0 0 0 1px var(--blue), var(--shadow-lg);
}

.plan__badge {
  position: absolute; top: -13px; left: 26px;
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 800; letter-spacing: .02em;
  padding: 4px 14px; border-radius: 999px;
  white-space: nowrap;
}

/*
  🚨 `min-height` 를 빼지 말 것 — 세 번째 카드 이름만 두 줄이라(「학습관 + 입시컨설팅 · 탐구활동」)
     그게 없으면 **금액 줄이 카드마다 다른 높이에** 놓인다. 가격표는 옆으로 훑으며 비교하는
     표라서, 숫자가 어긋나면 비교 자체가 어려워진다. 두 줄 기준(1.3 × 2)으로 잡았다.
*/
.plan__name  { font-size: 19px; font-weight: 800; margin-bottom: 6px; min-height: 2.6em; }
.plan__desc  { font-size: 14.5px; color: var(--ink-soft); margin-bottom: 20px; }

.plan__price {
  font-size: 17px; font-weight: 700; color: var(--ink);
  letter-spacing: -.02em; line-height: 1.2;
}
.plan__num {
  font-size: clamp(34px, 4.2vw, 42px); font-weight: 800;
  color: var(--navy); letter-spacing: -.045em;
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
}
.plan__unit { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }

/* 기간별 표 — 카드 안에 들어가므로 시간표(.timetable)와 별개 스타일이다 */
.tier {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 4px;
  font-size: 15px;
}
.tier th, .tier td { padding: 9px 10px; text-align: left; border-bottom: 1px solid var(--line); }
.tier thead th {
  font-size: 12px; font-weight: 700; color: var(--ink-soft);
  letter-spacing: .02em; border-bottom-color: var(--ink-soft);
}
.tier tbody th { font-weight: 600; color: var(--ink-mid); }
/*
  금액은 오른쪽 정렬 + tabular-nums — 세 줄의 자릿수가 세로로 맞아야 한 눈에 비교된다.
  ⚠️ 예전엔 여기에 `color: var(--blue)` 가 있었는데 그건 **컨설팅 횟수 열**을 위한 것이었다.
     그 열을 뺀 지금 금액에 파란색을 주면 `.is-best` 의 강조(navy)를 덮는다.
*/
.tier thead th:last-child,
.tier tbody td:last-child { text-align: right; }
.tier tr:last-child th, .tier tr:last-child td { border-bottom: 0; }
.tier .is-best th, .tier .is-best td { color: var(--navy); }
.tier .is-best { background: #EFF6FF; }

/* ── 가격 매트릭스 표 ───────────────────────────────────── */

/*
  🚨 기간을 **열**로 세우는 것이 이 표의 전부다(2026-08-03 원장쌤 요청).
     과정마다 따로 기간표를 두면 「1년 쓰면 얼마나 싸지나」를 세로로 비교할 수 없다.
  ⚠️ `.table-scroll` 로 감싸 좁은 화면에서 **표만** 가로로 밀리게 한다 —
     안 감싸면 페이지 전체가 밀린다.
*/
.pricing {
  width: 100%; min-width: 660px;   /* 글자를 키운 만큼(15.5→16.5px) 올렸다 */
  border-collapse: collapse;
  margin-top: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 16.5px;
}
.pricing th, .pricing td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.pricing thead th {
  background: var(--navy); color: #fff;
  font-size: 14px; font-weight: 700;
  vertical-align: bottom;
}
/* 기간 열 머리글의 「매달 5만원 ↓」 — 할인 폭을 표 안에서 바로 읽게 한다 */
.pricing thead th em {
  display: block;
  font-style: normal;
  font-size: 12.5px; font-weight: 600;
  color: #A5B4FC;
  margin-top: 3px;
}
.pricing thead th:first-child,
.pricing tbody th { text-align: left; }

.pricing tbody th { font-weight: 400; width: 42%; }
.pricing tbody th b {
  display: block;
  font-size: 16px; font-weight: 800; color: var(--ink);
  letter-spacing: -.025em;
}
.pricing tbody th span { font-size: 13px; color: var(--ink-soft); }

.pricing tbody td {
  font-weight: 700; color: var(--ink-mid);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* 가장 낮은 금액(1년 이상)만 강조 — 「오래 다닐수록」이 눈으로 읽히게 */
.pricing td.is-best {
  background: #EFF6FF;
  color: var(--navy);
  font-weight: 800;
}

/*
  금액을 적지 않는 줄(탐구활동). 세 칸을 합쳐 가운데에 두면 **비어 있는 게 아니라
  「따로 안내한다」로 읽힌다.** 🚨 색을 진하게 하지 말 것 — 금액이 아닌데 금액처럼 보인다.
*/
.pricing td.is-ask {
  text-align: center;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--bg-alt);
}
.pricing tr:last-child th,
.pricing tr:last-child td { border-bottom: 0; }

.tier-note--wide { margin-top: 14px; font-size: 15px; }

/* ── 가격 안내 상자 ─────────────────────────────────────── */

/*
  🚨 「멘토링은 정규만 포함」처럼 **조건이 갈리는 안내**는 표 아래 이 상자에 모은다.
     표 안에 각주로 흩으면 어느 줄에 걸리는 조건인지 헷갈린다.
*/
.price-note {
  margin-top: 30px;
  padding: 24px 26px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 15.5px;
  color: var(--ink-mid);
}
.price-note p { margin-bottom: 10px; }
.price-note p:last-child { margin-bottom: 0; }
.price-note b {
  display: inline-block;
  min-width: 76px;
  font-weight: 800; color: var(--ink);
}
.price-note strong { color: var(--ink); font-weight: 700; }

/*
  주말반·주중3일반 — 위 세 카드와 **다른 축**이라 가로로 눕힌 한 줄로 둔다.
  🚨 `.plans` 그리드 안에 4번째 카드로 넣지 말 것(HTML 주석에 이유가 있다).
*/
.plan-lite {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  margin-top: 24px;
  padding: 26px 30px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}
.plan-lite__text { flex: 1 1 320px; }
.plan-lite__name { font-size: 18px; font-weight: 800; margin-bottom: 6px; }
.plan-lite__desc { font-size: 15.5px; color: var(--ink-soft); }
.plan-lite__desc strong { color: var(--ink-mid); font-weight: 700; }
.plan-lite { margin-top: 16px; }
.plan-lite__price {
  font-size: 16px; font-weight: 700; color: var(--ink);
  white-space: nowrap;
  text-align: right;
}
/* 「월」·「방학 기간」 — 두 단기 과정은 **기간 단위가 달라** 금액만 두면 비교가 어긋난다 */
.plan-lite__price em {
  display: block;
  font-style: normal;
  font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
  margin-top: 2px;
}
.plan-lite .btn { flex-shrink: 0; }

/* 기간별 표 바로 아래 붙는 한 줄 — 표의 「컨설팅 n회」가 무엇인지 설명한다 */
.tier-note {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.tier-note strong { color: var(--ink-mid); font-weight: 700; }

.plan__list {
  list-style: none; padding: 0;
  margin-top: 22px; padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 15.5px; color: var(--ink-mid);
}
.plan__list li { position: relative; padding-left: 24px; margin-bottom: 10px; }
.plan__list li:last-child { margin-bottom: 0; }
/* 체크 표시 — 아이콘 파일 없이 테두리 두 변으로 그린다(요청 0개) */
.plan__list li::before {
  content: "";
  position: absolute; left: 4px; top: .42em;
  width: 6px; height: 11px;
  border-right: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(42deg);
}
.plan__list strong { color: var(--ink); font-weight: 700; }

/* ── 앱 소개 ────────────────────────────────────────────── */

.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 28px;
  margin-top: 40px;
}
.feature-grid h4 {
  font-size: 16px; font-weight: 800; margin-bottom: 6px;
  padding-top: 14px;
  border-top: 2px solid var(--navy);
}
.feature-grid p { font-size: 15.5px; color: var(--ink-soft); }

/* ── 앱 화면 쇼케이스 ───────────────────────────────────── */

/*
  🚨 여섯 장을 균등한 3열로 늘어놓지 말 것 — 1120px 안에서 장당 350px 이 되어 **무슨 화면인지
     알아볼 수 없는 썸네일**만 여섯 개가 된다(실제로 그렇게 만들었다가 되돌렸다).
     **큰 것 둘 + 작은 것 넷**으로 나눠 「핵심 둘은 읽히고, 나머지는 더 있다는 신호」가 되게 한다.
     ⚠️ 둘 다 짝수라 마지막 줄에 혼자 남는 카드가 없다 — 장수를 바꿀 땐 그 점을 함께 볼 것.
*/
.shots { display: grid; gap: 26px; }
.shots--lead   { grid-template-columns: 1fr 1fr; margin-top: 52px; }
.shots--thumbs { grid-template-columns: repeat(4, 1fr); margin-top: 26px; gap: 20px; }

.shot { margin: 0; }

.shot__frame {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform .2s, box-shadow .2s;
}
.shot:hover .shot__frame { transform: translateY(-4px); }

/* 가짜 브라우저 창 머리 — 이미지가 「앱 화면」임을 한눈에 알린다 */
.shot__bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 12px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
}
.shot__bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #CBD5E1; flex-shrink: 0;
}
.shot__bar em {
  margin-left: 8px;
  font-style: normal; font-size: 12.5px; font-weight: 600;
  color: var(--ink-soft);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 12px;
  white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}

/*
  🚨 스크린샷은 세로로 아주 길다(원본 2208×2878 등). `aspect-ratio` + `object-fit: cover` +
     **`object-position: top`** 으로 위쪽만 보여준다 — 가운데를 자르면 화면 제목이 잘려서
     무슨 화면인지 알 수 없어진다. 높이를 늘려 전부 보여주려 하지도 말 것(카드가 화면을 넘긴다).
*/
/*
  🚨 `object-position: top` 을 빼지 말 것 — 원본이 세로로 아주 긴 화면이라(2208×2878 등)
     가운데를 자르면 **화면 제목이 잘려** 무슨 화면인지 알 수 없어진다.

  🚫 `pointer-events: none` 도 빼지 말 것(2026-08-03 원장쌤: 「확대 못하도록」).
     눌러도 아무 일이 없고 끌어다 놓을 수도 없다. 링크(<a>)로 감싸거나 라이트박스를
     붙이지 말 것 — 앱 화면을 크게 펼쳐 보게 만드는 것이 이 요청의 반대다.
     ⚠️ 이건 **보호가 아니라 억제**다. 브라우저 확대·개발자도구·이미지 저장은 못 막는다
     (막을 수도 없고 막으려 해서도 안 된다) — 그래서 애초에 **실명이 없는 표본 화면만** 쓴다.
*/
.shot__frame img {
  display: block; width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* 작은 넷은 브라우저 창 머리를 생략한다 — 그 폭에서는 주소 글자가 뭉갠다 */
.shots--thumbs .shot__bar { display: none; }
.shots--thumbs .shot__frame { border-radius: 12px; box-shadow: var(--shadow); }
.shots--thumbs .shot figcaption { margin-top: 12px; font-size: 14px; }
.shots--thumbs .shot figcaption strong { font-size: 15.5px; }

.shot figcaption {
  margin-top: 16px;
  font-size: 15px; color: var(--ink-soft); line-height: 1.65;
}
.shot figcaption strong {
  display: block;
  font-size: 17px; font-weight: 800; color: var(--ink);
  margin-bottom: 3px;
}

/* ── 입시결과 데이터 상자 ───────────────────────────────── */

.databox {
  margin-top: 46px;
  padding: 32px 34px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(700px 300px at 88% 0%, var(--navy-soft) 0%, transparent 62%),
    var(--navy);
  color: #E2E8F0;
  display: grid; grid-template-columns: 1fr auto; gap: 26px 40px;
  align-items: center;
}
.databox__title {
  font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; color: #fff;
  letter-spacing: -.03em; margin-bottom: 10px;
}
.databox__lead { font-size: 16px; color: #C7D2FE; line-height: 1.75; }
.databox__lead strong { color: #fff; font-weight: 700; }

.databox__stats {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 12px;
}
.databox__stats li {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(199, 210, 254, .22);
  border-radius: var(--radius);
  padding: 14px 18px;
  text-align: center;
  min-width: 104px;
}
.databox__stats strong {
  display: block;
  font-size: 22px; font-weight: 800; color: #fff;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
}
.databox__stats span { font-size: 13.5px; color: #A5B4FC; font-weight: 600; }

/*
  🚨 이 한 줄을 지우지 말 것 — 위 숫자가 「우리 학원 합격 실적」으로 읽히는 것을 막는
     유일한 장치다(HTML 주석에 법적 근거가 있다). 작아 보여도 없으면 안 된다.
*/
.databox__disc {
  grid-column: 1 / -1;
  margin: 0; padding-top: 18px;
  border-top: 1px solid rgba(199, 210, 254, .2);
  font-size: 13.5px; color: #94A3B8; line-height: 1.75;
}
.databox__disc strong { color: #CBD5E1; font-weight: 700; }

/* ── 시간표 ─────────────────────────────────────────────── */

/* 🚨 표는 반드시 이 컨테이너 안에서만 가로 스크롤된다 — body 가 가로로 밀리면 안 된다 */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.timetable {
  width: 100%; min-width: 320px;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  font-size: 17px;
}
.timetable th, .timetable td {
  padding: 13px 20px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.timetable thead th {
  background: var(--navy); color: #fff;
  font-size: 14px; font-weight: 700; letter-spacing: .02em;
}
.timetable tbody th { font-weight: 700; width: 42%; }
.timetable tbody td { color: var(--ink-mid); font-variant-numeric: tabular-nums; }
.timetable tr:last-child th, .timetable tr:last-child td { border-bottom: 0; }
.timetable .is-break { background: var(--bg-alt); }
.timetable .is-break th, .timetable .is-break td { color: var(--ink-soft); }

.badge {
  font-size: 12px; font-weight: 700; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 1px 8px; margin-left: 6px; vertical-align: 2px;
}

/* ── 학습관 소개 슬라이드 ───────────────────────────────── */

/*
  발표 슬라이드 2장(몰입관·바른관). 자체 제목과 배경이 있어서 아래 사진 모자이크(.gallery)와
  🚨 **한 덩어리로 합치지 말 것** — 배경색이 들쭉날쭉해 보인다.
  ⚠️ 원본이 16:9 라 비율을 건드리지 않는다(자르면 슬라이드 제목이 날아간다).
*/
.slides {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-top: 28px;
}
.slide { margin: 0; }
.slide img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── 학습관 사진 ────────────────────────────────────────── */

/*
  🚨 「너무 크게 말고 적당한 사이즈로」가 요청이었다(2026-08-03 원장쌤).
     큰 것 하나 + 작은 것 넷의 모자이크이며, **화면을 가득 채우는 배경 사진으로 키우지 말 것.**
     라이트박스·클릭 확대도 붙이지 않는다(앱 화면과 같은 판단 — `.shot__frame img` 주석).
*/
/*
  🚨 이 넷은 위 슬라이드(.slides)를 **거드는 작은 사진**이다 — 크게 키우지 말 것
     (2026-08-03 원장쌤: 「위에 2개와 비슷하게 줄여줘」). 슬라이드가 각 공간을 제목과 함께
     보여주고, 여기는 분위기를 덧붙이는 자리다.

  ⚠️ 사진이 **세로·가로 섞여** 있어서 정사각 칸에 `cover` 로 채운다. 한때 CSS 다단으로
     원본 비율 그대로 흘려 쌓았는데, 그러면 세로 사진이 가로의 두 배 높이가 되어
     **위 슬라이드보다 훨씬 커진다.** 정사각은 양쪽 방향 모두 손실이 12.5%뿐이라
     다이닝룸의 펜던트 조명도 테이블도 살아남는다(4:3·16:9 로 자르면 하나는 날아간다).
*/
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 14px;
}
.gallery__item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.gallery__item img {
  display: block; width: 100%; height: 100%;
  aspect-ratio: 1 / 1;        /* 🚨 정사각 — 이유는 위 주석 */
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

/* ── 미팅 3단계 ─────────────────────────────────────────── */

.steps {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  counter-reset: step;
}

/*
  🚨 단계 사이를 잇는 가로선은 **가운데 칸에만** 그린다(::before 로 좌우로 뻗는다).
     칸마다 그리면 첫 칸 왼쪽과 끝 칸 오른쪽으로 선이 삐져나간다.
     ⚠️ 1열이 되는 좁은 화면에서는 선을 지운다 — 세로로 쌓이면 뜻이 반대가 된다.
*/
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px 26px 26px;
}
.step:nth-child(2)::before {
  content: "";
  position: absolute; top: 46px; left: -20px; right: -20px;
  height: 1px; background: var(--line);
  z-index: -1;
}

.step__no {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 15px; font-weight: 800;
  font-variant-numeric: tabular-nums;
  margin-bottom: 16px;
}
.step__name { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.step__body { font-size: 16px; color: var(--ink-mid); }
.step__body strong { color: var(--ink); font-weight: 700; }

/* ── 기록 3종 ───────────────────────────────────────────── */

.records {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 28px;
}
.record {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
}
.record__name { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.record__body { font-size: 16px; color: var(--ink-mid); }
.record__body strong { color: var(--ink); font-weight: 700; }
.record__who {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px; font-weight: 700; color: var(--ink-soft);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 11px;
}

/* ── 법정 게시 사항 (교습비등 · 반환 기준) ──────────────── */

/*
  🚨 접어 두는 블록이다(원장쌤: 「너무 크게 넣지 말고 가볍게」). 홍보 가격이 주인공이고
     이건 **법정 게시 사항**이라, 펼쳐 두면 15행짜리 표가 가격 절을 통째로 덮는다.
  ⚠️ 그렇다고 지우지는 말 것 — 공개해 두는 데 의미가 있다.
*/
.legal {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.legal summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 46px 16px 20px;
  font-size: 15.5px; font-weight: 700; color: var(--ink-mid);
  position: relative;
}
.legal summary::-webkit-details-marker { display: none; }
.legal summary em {
  font-style: normal; font-weight: 600; color: var(--ink-soft); font-size: 14px;
}
.legal summary::after {
  content: "";
  position: absolute; right: 20px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2.5px solid var(--ink-soft);
  border-bottom: 2.5px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.legal[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.legal[open] summary { color: var(--blue); border-bottom: 1px solid var(--line); }

.legal__body { padding: 22px 20px 24px; }
.legal__meta { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 12px; }
.legal__sub  { font-size: 17px; font-weight: 800; margin: 30px 0 4px; }

.legal__table {
  width: 100%; min-width: 560px;
  border-collapse: collapse;
  font-size: 14.5px;
  border: 1px solid var(--line);
}
.legal__table th, .legal__table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
.legal__table thead th {
  background: var(--bg-alt);
  font-size: 13px; font-weight: 700; color: var(--ink-mid);
  vertical-align: bottom;
}
.legal__table thead th span {
  display: block;
  font-size: 11.5px; font-weight: 600; color: var(--ink-soft);
}
.legal__table thead th:first-child,
.legal__table tbody th { text-align: left; }
.legal__table tbody th { font-weight: 700; color: var(--ink); white-space: normal; }
.legal__table tbody td { color: var(--ink-mid); font-variant-numeric: tabular-nums; }
/* 반환 기준 표는 문장이 길어 줄바꿈을 허용한다 */
.legal__sub ~ .table-scroll .legal__table td { white-space: normal; text-align: left; }
.legal__table tr:last-child th,
.legal__table tr:last-child td { border-bottom: 0; }

.legal__note {
  margin-top: 14px;
  font-size: 13.5px; line-height: 1.75; color: var(--ink-soft);
}
.legal__note strong { color: var(--ink-mid); font-weight: 700; }

/* ── FAQ ────────────────────────────────────────────────── */

.faq {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 21px 44px 21px 0;
  font-size: 18px; font-weight: 700;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute; right: 8px; top: 50%;
  width: 10px; height: 10px;
  border-right: 2.5px solid var(--ink-soft);
  border-bottom: 2.5px solid var(--ink-soft);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .2s;
}
.faq[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq[open] summary { color: var(--blue); }
.faq p { padding: 0 8px 24px 0; color: var(--ink-mid); font-size: 17px; }

/* ── 상담 신청 ──────────────────────────────────────────── */

/*
  「전화로는 즉시 상담이 어렵습니다」 안내 — 폼 **바로 위**에 둔다.
  🚨 아래(폼 뒤)로 내리지 말 것: 기다림에 대한 안내는 **신청하기 전에** 읽어야 뜻이 있다.
*/
.apply-notice {
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(191, 219, 254, .28);
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 22px;
  font-size: 15.5px;
  line-height: 1.8;
  color: #C7D2FE;
}
.apply-notice strong { color: #fff; font-weight: 700; }

/*
  🚨 `color` 를 반드시 되돌릴 것 — 이 상자는 `.section--cta`(남색 배경 + 흰 글씨) 안에 있는데
     **안쪽은 흰 상자**라, 색을 안 되돌리면 글자가 흰색을 물려받아 **흰 바탕에 흰 글씨**가 된다.
     실제로 감사 화면 제목이 그렇게 보이지 않았다. 칸마다 색을 지정하지 말고 여기서 한 번에.
*/
.form-box {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;          /* 옛 iframe 시절엔 8px 이었다 — 이제 안에 우리 폼이 들어간다 */
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
/*
  🚨 폼은 **설정이 끝났을 때만** 보인다(`is-ready`). 기본은 「준비 중」 안내다 —
     구글 폼 entry 번호가 없는 채로 받으면 응답이 조용히 유실된다(main.js 주석이 정본).
*/
.cform { display: none; }
.form-box.is-ready .cform { display: block; }
.form-box.is-ready .form-box__fallback { display: none; }

.cform__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.cform__field { display: flex; flex-direction: column; gap: 7px; }
.cform__field--wide { grid-column: 1 / -1; }

.cform__label { font-size: 14.5px; font-weight: 700; color: var(--ink-mid); }
.cform__label b { color: var(--blue); font-weight: 800; }

.cform input,
.cform select,
.cform textarea {
  width: 100%;
  font: inherit;
  font-size: 16.5px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color .15s, box-shadow .15s;
}
.cform textarea { resize: vertical; min-height: 96px; line-height: 1.65; }
.cform input::placeholder,
.cform textarea::placeholder { color: #94A3B8; }
.cform input:focus,
.cform select:focus,
.cform textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}

/* 동의 문항 — 글이 길어 체크박스와 본문을 2열로 붙인다 */
.cform__consent {
  display: grid; grid-template-columns: auto 1fr; gap: 11px;
  align-items: start;
  margin-top: 20px;
  padding: 15px 17px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink-soft);
  cursor: pointer;
}
/*
  🚨 체크박스 크기를 키우고 `margin-top` 으로 첫 줄에 맞춘다 —
     기본 크기(13px)는 폰에서 누르기 어렵고, 정렬을 안 맞추면 문단 맨 위에서 떠 보인다.
*/
.cform__consent input {
  width: 19px; height: 19px;
  margin: 2px 0 0;
  padding: 0;
  accent-color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
}
.cform__consent b { color: var(--ink); font-weight: 800; }
.cform__consent strong { color: var(--ink-mid); font-weight: 700; }

.cform__error {
  margin-top: 16px;
  padding: 11px 15px;
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-radius: 10px;
  color: #B91C1C;
  font-size: 15px;
  font-weight: 600;
}

.cform__submit { width: 100%; margin-top: 20px; }
.cform__submit:disabled { opacity: .6; cursor: default; }

.cform__foot {
  margin-top: 12px;
  text-align: center;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.cform__foot strong { color: var(--ink-mid); font-weight: 700; }

/* 전송 완료 화면 */
.form-done { padding: 52px 24px; text-align: center; }
.form-done__mark {
  width: 56px; height: 56px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: #DCFCE7; color: #15803D;
  font-size: 28px; font-weight: 800; line-height: 1;
}
.form-done__title { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.form-done__body { font-size: 16px; color: var(--ink-mid); }
.form-done__body strong { color: var(--ink); font-weight: 700; }

/* 스크립트 없는 환경의 안전망 — 보이면 안 된다 */
#applySink { display: none; }

.form-box__fallback { padding: 48px 24px; text-align: center; color: var(--ink-mid); }
.form-box__fallback p { margin-bottom: 16px; }
.form-box__fallback p:last-child { margin-bottom: 0; }

/* ── 오시는 길 ──────────────────────────────────────────── */

.contact {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: var(--line);
  margin-bottom: 8px;
}
.contact > div { background: #fff; padding: 22px 24px; }
.contact dt { font-size: 14px; font-weight: 700; color: var(--ink-soft); margin-bottom: 4px; }
.contact dd { margin: 0; font-size: 18px; font-weight: 600; }

/* ── 푸터 ───────────────────────────────────────────────── */

.footer {
  background: var(--navy);
  color: #CBD5E1;
  padding: 60px 0 48px;
  font-size: 15.5px;
}
.footer__inner { display: grid; grid-template-columns: 260px 1fr; gap: 40px; }
.footer__brand img { border-radius: 12px; margin-bottom: 14px; }
.footer__brand p { color: #94A3B8; font-size: 16px; }
.footer__biz p { color: #94A3B8; line-height: 1.9; }

.footer__links {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  margin: 22px 0 18px;
}
.footer__links a { color: #E2E8F0; font-weight: 600; }
.footer__links a:hover { color: #fff; }

.footer__copy { color: #64748B !important; font-size: 14px; }

/* ── 모바일 고정 버튼 ───────────────────────────────────── */

.fab {
  display: none;
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90;
  background: var(--blue); color: #fff;
  text-align: center; font-weight: 800; font-size: 16px;
  padding: 15px; border-radius: 999px;
  box-shadow: 0 8px 28px rgba(37, 99, 235, .38);
}
.fab:hover { text-decoration: none; background: var(--blue-dark); }
/* 신청 섹션에 도달하면 숨긴다 — 폼 위에 버튼이 겹쳐 앉지 않게 */
.fab.is-hidden { opacity: 0; pointer-events: none; transform: translateY(120%); }

/* ── 반응형 ─────────────────────────────────────────────── */

/*
  🚨 문턱이 1080px 인 이유: 헤더가 로고 + 메뉴 **6개** + 버튼 2개라 그보다 좁으면 겹친다.
     🔁 메뉴를 늘리거나 줄이면 이 숫자를 **다시 재야 한다** — 「가격 안내」를 넣으며 960 →
     1080 으로 올렸다(5개 시절엔 960 에서 좌우 여유가 54px 였는데 한 항목이 그걸 다 먹는다).
     앱(frontend/)의 lg=1024 문턱과는 별개 축이다 — 거기는 사이드바가 본문에서 256px 를
     가져가느냐의 문제이고, 여기는 사이드바가 없다. 두 숫자를 맞추려 하지 말 것.
*/
@media (max-width: 1080px) {
  /*
    🚨 `margin-left: auto` 를 빼지 말 것 — 햄버거가 오른쪽 끝으로 가는 유일한 장치다.
       가운데 메뉴(.nav__links)의 `margin-inline: auto` 가 밀어 주는 구조인데 드롭다운이
       되면서 그게 흐름에서 빠지므로, 아무도 안 밀면 **버튼이 로고 바로 옆에 붙는다.**
  */
  .nav__toggle { display: flex; margin-left: auto; }

  .nav__menu {
    position: absolute; left: 0; right: 0; top: var(--nav-h);
    flex: none;
    flex-direction: column; align-items: stretch; gap: 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 8px 12px 18px;
    display: none;
  }
  .nav__menu.is-open { display: flex; }

  .nav__links { flex-direction: column; align-items: stretch; gap: 0; margin: 0; }
  .nav__links a { padding: 14px 12px; border-radius: 10px; font-size: 16px; }

  /* 버튼은 메뉴 맨 아래에 가로로 꽉 차게 — 폰에서 누르기 쉬운 크기로 */
  .nav__cta {
    flex-direction: column; align-items: stretch; gap: 8px;
    padding-top: 12px; border-top: 1px solid var(--line);
  }
  .nav__cta .btn { padding: 13px 20px; font-size: 16px; }

  .cards--3,
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr; gap: 28px; }

  /* 작은 넷은 2×2 로 — 4열이면 장당 200px 이 안 돼 아무것도 안 보인다 */
  .shots--thumbs { grid-template-columns: repeat(2, 1fr); }
  .databox { grid-template-columns: 1fr; }
  .records { grid-template-columns: 1fr; }

  /*
    🚨 `.steps` 를 빠뜨리지 말 것 — 3열로 남으면 390px 폰에서 칸이 130px 이 되어
       **본문이 카드 밖으로 삐져나가고 페이지 전체가 가로로 밀린다.**
       실제로 이 규칙이 없어서 그 상태였고, 폰 폭 검사로 잡았다.
    ⚠️ 세로로 쌓이면 단계를 잇는 가로선은 뜻이 반대가 되므로 함께 지운다.
  */
  .steps { grid-template-columns: 1fr; }
  .step:nth-child(2)::before { display: none; }

}

/*
  🚨 요금제는 2열로 만들지 말 것 — 카드가 셋이라 **하나만 아래 줄에 혼자 남는다.**
     3열이 안 되면 바로 1열이다(위 .cards--3 과 규칙이 다른 이유).
     ⚠️ 강조 배지(.plan__badge)가 카드 위로 13px 튀어나오므로 1열일 때 간격을 넉넉히 준다.
*/
@media (max-width: 960px) {
  .plans { grid-template-columns: 1fr; gap: 28px; }

  /*
    1열에서는 카드끼리 나란히 놓이지 않으므로 **높이를 맞출 이유가 없다.**
    그대로 두면 이름이 한 줄인 카드에 빈 줄이 하나씩 생긴다(폰에서 특히 눈에 띈다).
  */
  .plan__name { min-height: 0; }
}

@media (max-width: 640px) {
  /*
    🚨 폰에서 **더 작게 만들지 말 것.** 학부모가 대부분 폰으로 본다 —
       데스크탑(18px)보다 1px 낮은 17px 이 하한이다. 예전에 16px 이었는데
       그 상태로 잔글씨(11~12px)까지 섞여 있어 읽기 힘들었다(2026-08-03 원장쌤 지적).
  */
  body { font-size: 17px; }

  .stats { grid-template-columns: repeat(2, 1fr); }
  .cards--3,
  .feature-grid,
  .contact { grid-template-columns: 1fr; }

  /* 폰: 큰 것은 한 장씩, 작은 넷은 2열로 남긴다(넷을 다 세우면 스크롤이 너무 길어진다) */
  .shots--lead   { grid-template-columns: 1fr; gap: 30px; margin-top: 36px; }
  .shots--thumbs { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .shots--lead img { aspect-ratio: 3 / 4; }

  .databox { grid-template-columns: 1fr; padding: 26px 22px; gap: 22px; }
  .databox__stats { justify-content: space-between; gap: 8px; }
  .databox__stats li { min-width: 0; flex: 1; padding: 12px 6px; }

  .plan-lite { padding: 24px 22px; gap: 18px; }
  .plan-lite .btn { width: 100%; }

  /* 폰: 폼은 한 칸씩 — 2열이면 「010-0000-0000」 자리가 모자라 글자가 잘린다 */
  .cform__grid { grid-template-columns: 1fr; gap: 14px; }
  .form-box { padding: 6px; }
  .form-done { padding: 40px 18px; }

  /* 폰: 사진은 2열 유지(1열로 세우면 스크롤만 길어지고 공간감이 오히려 안 산다) */
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  /* 🚨 슬라이드는 반대로 1열이다 — 16:9 를 반으로 나누면 슬라이드 안 글자가 뭉갠다 */
  .slides { grid-template-columns: 1fr; gap: 12px; }

  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .hero { padding-bottom: 72px; }

  .card { padding: 26px 22px; }
  .plan { padding: 28px 22px; }
  .timetable th, .timetable td { padding: 12px 14px; }
  .tier th, .tier td { padding: 9px 6px; }

  /* 모바일에서만 하단 고정 CTA — 스크롤 중 언제든 신청으로 갈 수 있게 */
  .fab { display: block; transition: opacity .2s, transform .2s; }
  .footer { padding-bottom: 96px; }  /* 고정 버튼에 가리지 않게 */
}

/* ── 접근성: 모션 최소화 ────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── 인쇄 ───────────────────────────────────────────────── */

@media print {
  .nav, .fab, .form-box, .skip { display: none !important; }
  .section, .hero { padding: 24px 0; }
  body { font-size: 12pt; }
  .faq[open] p, .faq p { display: block; }
}
