/* =========================================================
   아이스피치 앤 디베이트 학원 - 스타일시트
   색·폰트는 아래 :root 변수만 바꾸면 전체에 반영됩니다.
   ========================================================= */

:root {
  /* 브랜드 색상 (로고의 골드 + 다크 톤) */
  --navy: #2a241c;         /* 따뜻한 다크 (제목 / 다크 영역) */
  --navy-deep: #181818;    /* 로고 배경과 동일 (히어로 / 푸터) */
  --blue: #a8865a;         /* 메인 포인트 = 앤티크 골드 (버튼·강조) */
  --blue-light: #c0a06b;   /* 밝은 골드 (호버) */
  --accent: #cba56a;       /* 하이라이트 골드 */
  --kakao: #fee500;
  --kakao-text: #191600;

  /* 중립 색 (따뜻한 크림 톤) */
  --bg: #ffffff;
  --bg-alt: #f8f3ea;
  --text: #2b2620;
  --text-soft: #5c5448;
  --text-mute: #8a8174;
  --line: #ece4d6;
  --white: #ffffff;

  /* 기타 */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(80, 60, 30, 0.10);
  --shadow-lg: 0 20px 50px rgba(80, 60, 30, 0.16);
  --maxw: 1140px;
  --header-h: 84px;
  --logo-bg: #181818;
  --font: "Pretendard", "Pretendard Variable", system-ui, -apple-system,
    "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

/* ------------------ 리셋 / 기본 ------------------ */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* 줄바꿈 품질 (한국어 단어 보존 + 균형 잡힌 줄나눔) */
h1, h2, h3, h4, .hero-title, .section-title, .special-title, .form-title, .subhead { text-wrap: balance; }
p, li, .section-lead, .hero-desc, .about-statement { text-wrap: pretty; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

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

.pc-only { display: inline; }
.mo-only { display: none; }

/* 본문 바로가기 (접근성) */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 1000;
  background: var(--navy-deep); color: #fff; padding: 10px 18px; border-radius: 8px;
  font-weight: 700; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* 키보드 포커스 표시 */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ------------------ 버튼 ------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .9rem;
  cursor: pointer; border: 2px solid transparent; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 11px 22px; font-size: .96rem; }
.btn-block { display: flex; width: 100%; }

.btn-primary { background: var(--blue); color: #1c1813; box-shadow: 0 8px 20px rgba(168, 134, 90, .4); }
.btn-primary:hover { background: var(--blue-light); }

.btn-kakao { background: var(--kakao); color: var(--kakao-text); }
.btn-kakao:hover { background: #ffec3d; }

.btn-blog { background: #03c75a; color: #fff; box-shadow: 0 8px 20px rgba(3,199,90,.35); }
.btn-blog:hover { background: #02b350; }

.naver-ico { width: 16px; height: 16px; flex-shrink: 0; fill: #03c75a; }
.btn-blog .naver-ico { fill: #fff; }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ------------------ 헤더 / 내비 ------------------ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  background: var(--logo-bg);
  border-bottom: 1px solid rgba(255,255,255,.06); z-index: 1000; transition: box-shadow .2s, border-color .2s;
}
.site-header.scrolled { box-shadow: 0 6px 22px rgba(0,0,0,.35); border-color: rgba(255,255,255,.1); }

.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; }

.logo { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.logo-img { height: 60px; width: auto; display: block; }
.logo-mark {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  background: var(--navy); color: #fff; border-radius: 10px; font-weight: 800; font-size: 1rem; letter-spacing: -.5px;
}
.logo-text { color: var(--navy); font-weight: 600; }
.logo-text strong { color: var(--blue); font-weight: 800; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav-link {
  padding: 8px 14px; font-weight: 600; color: rgba(255,255,255,.82); border-radius: 8px; transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--accent); background: rgba(255,255,255,.08); }
.nav-link.active { color: var(--accent); }
.nav-link.active::after {
  content: ""; display: block; height: 2px; border-radius: 2px;
  background: var(--accent); margin: 3px 14px 0;
}
.nav-cta { margin-left: 10px; padding: 10px 20px; }

.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.hamburger span { width: 26px; height: 3px; background: #fff; border-radius: 3px; transition: transform .3s, opacity .3s; }
.hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ------------------ 히어로 ------------------ */
.hero {
  position: relative; padding: calc(var(--header-h) + 70px) 0 90px;
  color: #fff; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(1000px 520px at 80% -10%, rgba(200,165,110,.30), transparent 60%),
    linear-gradient(135deg, #161616 0%, #241f17 55%, #322813 100%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .6;
}
.hero-eyebrow {
  display: inline-block; padding: 6px 14px; border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px; font-size: .85rem; font-weight: 600; margin-bottom: 22px; letter-spacing: .5px;
}
.hero-title { font-size: clamp(2rem, 5.5vw, 3.4rem); font-weight: 800; line-height: 1.25; letter-spacing: -1px; }
.hero-title .accent { color: var(--accent); }
.hero-desc { margin-top: 22px; font-size: clamp(1rem, 2.4vw, 1.18rem); color: rgba(255,255,255,.85); }
.hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-actions .btn { flex: 0 0 170px; }
.hero-badges { margin-top: 40px; display: flex; gap: 22px; flex-wrap: wrap; font-size: .95rem; color: rgba(255,255,255,.9); }

/* ------------------ 섹션 공통 ------------------ */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 54px; }
.section-eyebrow { color: var(--blue); font-weight: 800; letter-spacing: 2px; font-size: .85rem; margin-bottom: 12px; }
.section-title { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 800; color: var(--navy); letter-spacing: -.5px; }
.section-lead { margin-top: 16px; color: var(--text-soft); font-size: 1.05rem; }

/* ------------------ 카드 그리드 ------------------ */
.cards { display: grid; gap: 24px; }
.cards-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* 가치 카드 */
.value-card { text-align: center; display: flex; flex-direction: column; justify-content: center; }
.value-card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 12px; position: relative; padding-top: 16px; }
.value-card h3::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 32px; height: 3px; border-radius: 3px; background: var(--accent);
}
.value-card p { color: var(--text-soft); font-size: .96rem; line-height: 1.65; }

.about-cta { text-align: center; margin-top: 40px; }
#about .section-head { margin-bottom: 40px; }
.about-statement {
  margin: 0 auto 40px; text-align: center; max-width: 760px;
  font-size: clamp(1.02rem, 2.2vw, 1.25rem); color: var(--text-soft); line-height: 1.85;
}
.about-statement strong { color: var(--navy); font-weight: 700; }

/* 프로그램 카드 (모두 강조 스타일) */
.program-card { position: relative; border-color: var(--blue); box-shadow: 0 16px 40px rgba(168,134,90,.25); }
.program-tag {
  display: inline-block; background: var(--navy); color: #fff; font-weight: 700;
  font-size: .82rem; padding: 5px 14px; border-radius: 999px; margin-bottom: 14px;
}
/* STEP 태그 색 골드 ↔ 블랙 번갈아 */
#programs .program-card:nth-child(odd) .program-tag { background: var(--blue); color: #fff; }
#programs .program-card:nth-child(even) .program-tag { background: var(--navy); color: #fff; }
.program-card h3 { color: var(--navy); font-size: 1.35rem; }
.program-target { color: var(--text-mute); font-size: .9rem; margin: 4px 0 16px; font-weight: 600; }
.program-list li { padding: 8px 0 8px 26px; position: relative; color: var(--text-soft); border-top: 1px dashed var(--line); }
.program-list li:first-child { border-top: 0; }
.program-list li::before { content: "✓"; position: absolute; left: 0; color: var(--blue); font-weight: 800; }

/* 커리큘럼 표 */
.table-wrap { margin-top: 40px; overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow); }
.curriculum-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 560px; }
.curriculum-table th, .curriculum-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.curriculum-table thead th { background: var(--navy); color: #fff; font-weight: 700; }
.curriculum-table tbody th { color: var(--navy); font-weight: 700; }
.curriculum-table tbody tr:last-child th, .curriculum-table tbody tr:last-child td { border-bottom: 0; }
.curriculum-table tbody tr:nth-child(even) { background: var(--bg-alt); }

/* 6대 역량 균형 차트 */
.balance-block {
  margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
}
.balance-chart svg { width: 100%; height: auto; display: block; }
.balance-text h3 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); color: var(--navy); font-weight: 800; line-height: 1.4; margin-bottom: 16px; }
.balance-text h3 .accent { color: var(--blue); }
.balance-text p { color: var(--text-soft); font-size: .98rem; line-height: 1.75; margin-bottom: 12px; }
.balance-text strong { color: var(--navy); font-weight: 700; }

@media (max-width: 820px) {
  .balance-block { grid-template-columns: 1fr; gap: 8px; padding: 28px 22px; }
  .balance-chart { max-width: 420px; margin: 0 auto; }
}

/* 정규 수업 외 특별 과정 (진한 갈색 패널 + 골드/화이트) */
.special-courses {
  margin-top: 44px; text-align: center; color: #fff;
  background: linear-gradient(135deg, #4a3826 0%, #2e2317 80%); border-radius: var(--radius);
  padding: 44px 32px; box-shadow: 0 16px 40px rgba(46,35,23,.4);
}
.special-title { font-size: clamp(1.4rem, 3.2vw, 1.8rem); font-weight: 800; color: #fff; margin-bottom: 8px; }
.special-title .accent { color: var(--accent); }
.special-lead { color: rgba(255,255,255,.8); font-size: .98rem; margin-bottom: 28px; }
.special-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 22px; }
.special-card { background: rgba(203,165,106,.1); border: 1px solid rgba(203,165,106,.35); border-radius: 14px; padding: 26px 20px; transition: transform .15s ease, border-color .2s ease, background .2s ease; }
.special-card:hover { transform: translateY(-3px); border-color: var(--accent); background: rgba(203,165,106,.18); }
.special-name { display: block; font-size: 1.2rem; font-weight: 800; color: var(--accent); margin-bottom: 10px; }
.special-card p { color: rgba(255,255,255,.9); font-size: .9rem; line-height: 1.6; }
.special-desc { color: rgba(203,165,106,.85); font-size: .88rem; }

@media (max-width: 760px) { .special-grid { grid-template-columns: 1fr; } }

/* 정기 진단 프로그램 안내 */
.diagnosis-note {
  margin-top: 28px; display: flex; align-items: center; gap: 20px;
  background: var(--bg-alt); border: 1px solid var(--line);
  border-left: 5px solid var(--accent); border-radius: var(--radius);
  padding: 24px 28px;
}
.diagnosis-ico {
  flex: none; width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--blue));
}
.diagnosis-ico svg { width: 28px; height: 28px; }
.diagnosis-text h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 6px; }
.diagnosis-text p { color: var(--text-soft); font-size: .95rem; line-height: 1.6; }
.diagnosis-text strong { color: var(--blue); font-weight: 800; }
@media (max-width: 560px) {
  .diagnosis-note { flex-direction: column; text-align: center; gap: 14px; padding: 22px 18px; }
}

/* i:체크 구성 안내 */
.icheck-detail {
  margin-top: 24px; background: var(--bg-alt); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 28px; text-align: center;
}
.icheck-tag {
  display: inline-block; font-weight: 800; color: var(--blue);
  font-size: 1.05rem; margin-bottom: 20px;
}
.icheck-items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; text-align: left; }
.icheck-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px;
}
.icheck-num {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: .92rem; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--blue));
}
.icheck-item h4 { color: var(--navy); font-size: 1.08rem; margin-bottom: 6px; }
.icheck-item p { color: var(--text-soft); font-size: .92rem; line-height: 1.6; }
@media (max-width: 640px) {
  .icheck-detail { padding: 24px 18px; }
  .icheck-items { grid-template-columns: 1fr; gap: 14px; }
  .icheck-item { padding: 18px 18px; }
}

/* 특장점 카드 */
.feature-card { text-align: center; }
.feature-ico {
  width: 66px; height: 66px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; color: var(--blue);
  background: var(--bg-alt); border: 1px solid var(--line);
}
.feature-ico svg { width: 30px; height: 30px; }
.feature-card h3 { color: var(--navy); font-size: 1.2rem; margin-bottom: 10px; }
.feature-card p { color: var(--text-soft); font-size: .95rem; line-height: 1.65; }
.feature-card strong { color: var(--blue); font-weight: 800; }

/* 강사 카드 */
.teacher-cards { grid-template-columns: repeat(3, minmax(0, 340px)); justify-content: center; }
.teacher-cards-top { grid-template-columns: repeat(2, minmax(0, 340px)); margin-bottom: 24px; }
.teacher-card { text-align: left; display: flex; flex-direction: column; }
.teacher-photo {
  width: 100%; aspect-ratio: 4 / 5; margin: 0 0 16px; border-radius: 14px; overflow: hidden;
  background: linear-gradient(135deg, #f3e9d6, #faf5ea); box-shadow: var(--shadow);
}
.teacher-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }
.teacher-card h3 { color: var(--navy); font-size: 1.25rem; }
.teacher-title { font-size: .9rem; color: var(--blue); font-weight: 700; margin-left: 4px; }
.teacher-role { color: var(--blue); font-weight: 700; font-size: .9rem; margin: 4px 0 12px; }
.teacher-quote {
  color: var(--text); font-size: .92rem; line-height: 1.6; font-style: italic;
  padding-left: 12px; border-left: 3px solid var(--accent); margin: 0 0 14px;
}
.teacher-profile { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.teacher-profile li { position: relative; padding-left: 14px; font-size: .85rem; color: var(--text-soft); line-height: 1.45; }
.teacher-profile li::before { content: "·"; position: absolute; left: 3px; color: var(--blue); font-weight: 700; }

@media (max-width: 900px) {
  .teacher-cards, .teacher-cards-top { grid-template-columns: repeat(2, minmax(0, 340px)); }
}
@media (max-width: 560px) {
  .teacher-cards, .teacher-cards-top { grid-template-columns: minmax(0, 340px); }
}

/* 성과 통계 */
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px;
  margin-bottom: 54px;
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 16px; text-align: center; box-shadow: var(--shadow);
}
.stat-num, .stat-suffix { font-size: clamp(2rem, 5vw, 2.8rem); font-weight: 800; color: var(--blue); line-height: 1; }
.stat-label { margin-top: 10px; color: var(--text-soft); font-weight: 600; font-size: .95rem; }

/* 후기 카드 */
.review-card { display: flex; flex-direction: column; }
.review-stars { color: var(--accent); font-size: 1.1rem; letter-spacing: 2px; margin-bottom: 12px; }
.review-text { color: var(--text); font-size: 1rem; flex: 1; }
.review-author { margin-top: 16px; color: var(--text-mute); font-weight: 600; font-size: .9rem; }

.reviews-cta { text-align: center; margin-top: 44px; }
.reviews-cta p { color: var(--text-soft); margin-bottom: 16px; }

/* ------------------ 연락처 ------------------ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: stretch; }

.info-list { margin-bottom: 28px; }
.info-list li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-label { font-weight: 700; color: var(--navy); }
.info-value { color: var(--text-soft); }
.info-value a { color: var(--blue); font-weight: 700; }

.contact-buttons { display: flex; flex-direction: column; gap: 12px; }

.contact-map { min-height: 320px; }
.map-placeholder {
  height: 100%; min-height: 320px; border-radius: var(--radius); border: 2px dashed var(--line);
  background: var(--bg-alt); display: grid; place-content: center; justify-items: center; gap: 8px;
  color: var(--text-mute); text-align: center;
}
.map-placeholder span { font-size: 2.4rem; }
.map-placeholder small { font-size: .85rem; }
.contact-map iframe { width: 100%; height: 100%; min-height: 320px; border: 0; border-radius: var(--radius); }

/* ------------------ 푸터 ------------------ */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 50px 0 36px; }
.footer-inner { display: grid; gap: 18px; }
.footer-brand { display: flex; align-items: center; gap: 14px; color: #fff; font-weight: 700; font-size: 1.05rem; }
.footer-logo { height: 52px; width: auto; display: block; }
.footer-since { color: rgba(255,255,255,.55); font-weight: 600; font-size: .85rem; }
.footer-info p { font-size: .9rem; margin: 2px 0; }
.footer-info a { color: var(--blue-light); font-weight: 600; }
.footer-copy { font-size: .82rem; color: rgba(255,255,255,.5); margin-top: 8px; }

/* ------------------ 시작 팝업 ------------------ */
.popup-layer[hidden], .lightbox[hidden] { display: none !important; }
.popup-layer { position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.popup-dim { position: fixed; inset: 0; background: rgba(20,15,8,.6); }
.popup-box {
  position: relative; background: #fff; border-radius: var(--radius);
  width: 100%; max-width: 700px; box-shadow: var(--shadow-lg); overflow: hidden;
  padding: 22px 18px 0;
}
.popup-x {
  position: absolute; top: 6px; right: 10px; z-index: 2; background: none; border: 0; cursor: pointer;
  font-size: 1.7rem; line-height: 1; color: var(--text-mute); width: 34px; height: 34px;
}
.popup-x:hover { color: var(--navy); }
.popup-posters { display: flex; gap: 12px; }
.poster-thumb {
  flex: 1; min-width: 0; padding: 0; border: 1px solid var(--line); background: none; cursor: pointer;
  border-radius: 10px; overflow: hidden; transition: transform .15s ease, box-shadow .2s ease;
}
.poster-thumb:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.poster-thumb img { width: 100%; height: auto; display: block; }
.popup-hint { text-align: center; font-size: .85rem; color: var(--text-mute); margin: 12px 0; }
.popup-foot { display: flex; border-top: 1px solid var(--line); margin: 0 -18px; }
.popup-foot button { flex: 1; background: none; border: 0; cursor: pointer; padding: 14px 8px; font-size: .92rem; font-weight: 600; font-family: inherit; }
.popup-today { color: var(--text-mute); border-right: 1px solid var(--line); }
.popup-today:hover { color: var(--text); }
.popup-close-btn { color: var(--blue); }
.popup-close-btn:hover { background: var(--bg-alt); }

/* 포스터 확대 라이트박스 */
.lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox img { max-width: 100%; max-height: 92vh; width: auto; height: auto; border-radius: 8px; box-shadow: var(--shadow-lg); }
.lightbox-x { position: fixed; top: 14px; right: 16px; z-index: 3001; background: none; border: 0; cursor: pointer; font-size: 2.4rem; line-height: 1; color: #fff; width: 44px; height: 44px; }

/* ------------------ 플로팅 버튼 (모바일) ------------------ */
.float-buttons { position: fixed; right: 16px; bottom: 16px; display: none; flex-direction: column; gap: 12px; z-index: 900; }
.float-btn {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.5rem; box-shadow: var(--shadow-lg); transition: transform .15s;
}
.float-btn:hover { transform: scale(1.08); }
.float-call { background: var(--blue); }
.float-kakao { background: var(--kakao); }

/* ------------------ 스크롤 등장 애니메이션 ------------------ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   반응형
   ============================================================ */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .pc-only { display: none; }
  .mo-only { display: inline; }

  /* 모바일 내비 */
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--logo-bg); border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 12px 20px 20px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
    transform: translateY(-130%); transition: transform .3s ease; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.open { transform: translateY(0); }
  .nav-link { padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.1); border-radius: 0; }
  .nav-cta { margin: 14px 0 0; text-align: center; }

  .hamburger { display: flex; order: 1; }
  .header-inner .logo { order: 2; }
  .logo-img { height: 46px; }

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 32px; }

  .hero { padding: calc(var(--header-h) + 50px) 0 70px; }
  .hero-actions { display: none; }  /* 모바일은 하단 플로팅 버튼으로 대체 */
  .hero-badges { flex-direction: column; align-items: flex-start; gap: 12px; }

  .float-buttons { display: flex; }

  /* 박스 여백 축소 */
  .card { padding: 22px 20px; }
  .special-courses { padding: 32px 22px; }
  .special-card { padding: 20px 18px; }
  .stat { padding: 24px 14px; }
  .curriculum-table th, .curriculum-table td { padding: 13px 14px; }
}

@media (max-width: 560px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { flex: none; width: 100%; max-width: 220px; }

  .section { padding: 46px 0; }
  .section-head { margin-bottom: 26px; }
  .card { padding: 18px 16px; }
  .special-courses { padding: 24px 16px; }
  .special-title { font-size: 1.25rem; margin-bottom: 6px; }
  .special-lead { font-size: .88rem; margin-bottom: 16px; }
  .special-grid { gap: 10px; margin-bottom: 14px; }
  .special-card { padding: 13px 14px; }
  .special-name { font-size: 1.05rem; margin-bottom: 5px; }
  .special-card p { font-size: .85rem; line-height: 1.5; }
  .special-desc { font-size: .82rem; }
  .balance-block { padding: 0; gap: 4px; }
  .stat { padding: 20px 10px; }
  .info-list li { padding: 13px 0; }

  /* 강사 사진 축소 (절반 정도, 가운데) */
  .teacher-photo { max-width: 180px; margin: 0 auto 16px; }
  .teacher-card h3, .teacher-role { text-align: center; }

  /* STEP 박스 컴팩트 (값 카드 크기에 맞춤) */
  .program-card h3 { font-size: 1.12rem; }
  .program-target { margin: 2px 0 10px; font-size: .85rem; }
  .program-list li { padding: 5px 0 5px 24px; font-size: .9rem; }
  .program-tag { font-size: .74rem; padding: 4px 12px; margin-bottom: 8px; }

  /* 연령별 단계 표 → 가로 스크롤 없이 간결한 표 (대표 과정 열 숨김) */
  .table-wrap { overflow-x: visible; }
  .curriculum-table { min-width: 0; width: 100%; table-layout: fixed; }
  .curriculum-table th, .curriculum-table td { padding: 10px 7px; font-size: .76rem; vertical-align: top; word-break: keep-all; line-height: 1.45; }
  .curriculum-table thead th { font-size: .76rem; padding: 11px 7px; }
  .curriculum-table th:first-child { width: 27%; }
  .curriculum-table thead th:nth-child(3), .curriculum-table td:nth-of-type(2) { display: none; }
}

@media (max-width: 420px) {
  .hero-badges { gap: 10px; font-size: .85rem; }
  .about-statement { padding: 0; }
}
