/* ==========================================================
   여기지금헤어 교육 — 공통 스타일
   색은 아래 :root 변수만 바꾸면 사이트 전체에 적용됩니다.
   ========================================================== */

@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

@font-face {
  font-family: "GmarketSans";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansBold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "GmarketSans";
  src: url("https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

:root {
  --cream: #fbf7ee;
  --cream-deep: #f4ecdb;
  --paper: #ffffff;
  --ink: #1b1a17;
  --ink-soft: #3d3a33;
  --muted: #6b665c;
  --line: #e8dfcb;
  --yellow: #fef013;        /* 로고 미소 곡선 색 */
  --yellow-soft: #fff8b8;
  --kakao: #fee500;

  --radius-lg: 32px;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 0 rgba(27, 26, 23, .04), 0 18px 40px -24px rgba(27, 26, 23, .28);

  --font-body: "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-display: "GmarketSans", var(--font-body);

  --wrap: 1120px;
  --gutter: 20px;
  --bar-h: 76px; /* 모바일 하단 문의 바 높이 */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h);
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; margin: 0; word-break: keep-all; }
p { margin: 0; }
.kr-block { display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--wrap), 100% - var(--gutter) * 2); margin-inline: auto; }

/* ---------- 노란 형광펜 & 미소 곡선 ---------- */
.mark {
  background: linear-gradient(transparent 58%, var(--yellow) 58%, var(--yellow) 92%, transparent 92%);
  padding: 0 .08em;
}
.smile { display: block; width: 72px; height: 22px; color: var(--yellow); }
.smile path { stroke: currentColor; stroke-width: 5; fill: none; stroke-linecap: round; }

/* ---------- 헤더 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 238, .88);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo img { height: 34px; width: auto; }
.nav { display: none; gap: 6px; align-items: center; }
.nav a {
  text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { background: var(--cream-deep); }
.nav a[aria-current="page"] { background: var(--ink); color: var(--paper); }
.nav .btn { margin-left: 8px; }
.menu-btn {
  width: 44px; height: 44px; border: 0; border-radius: 12px; background: transparent; cursor: pointer;
  display: grid; place-items: center;
}
.menu-btn span, .menu-btn span::before, .menu-btn span::after {
  display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s, opacity .2s;
}
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }
.drawer {
  display: none; position: fixed; inset: 64px 0 auto 0; z-index: 49;
  background: var(--cream); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
}
.drawer.is-open { display: block; }
.drawer a { display: block; padding: 14px 4px; font-size: 18px; font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--line); }
.drawer a:last-child { border-bottom: 0; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--ink);
  font-family: var(--font-body); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s;
  white-space: nowrap;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn-kakao { background: var(--kakao); color: #191600; }
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 14px; }
.btn-sm:hover { box-shadow: 0 4px 0 var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 모바일 하단 고정 문의 바 ---------- */
.contact-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(251, 247, 238, .94); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.contact-bar .btn { min-height: 52px; padding: 0 10px; font-size: 15px; }
.contact-bar .btn:hover { box-shadow: none; transform: none; }

/* ---------- 섹션 공통 ---------- */
section { position: relative; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; letter-spacing: .02em; color: var(--ink-soft);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 2px var(--ink); }
.sec-head { max-width: 680px; margin-bottom: 40px; }
.sec-head h2 { font-size: clamp(28px, 5.6vw, 44px); margin-top: 14px; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .smile { margin: 0 auto; }

/* ---------- 히어로 ---------- */
.hero { padding: 36px 0 72px; overflow: hidden; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 8.6vw, 64px); margin-top: 18px; letter-spacing: -0.03em; }
.hero .lead { margin-top: 20px; font-size: 18px; color: var(--ink-soft); max-width: 520px; }
.hero .btn-row { margin-top: 28px; }
.proof-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; padding: 0; list-style: none; }
.proof-chips li {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px;
}
.proof-chips svg { width: 16px; height: 16px; color: var(--ink); }

.collage { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 10px 0 30px; }
.collage::before {
  content: ""; position: absolute; inset: 18% -12% -2% -12%; z-index: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 100'%3E%3Cpath d='M6 8 C 20 110, 180 110, 194 8' fill='none' stroke='%23fef013' stroke-width='9' stroke-linecap='round'/%3E%3C/svg%3E") center bottom / 100% auto no-repeat;
}
.collage figure { position: relative; z-index: 1; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--cream-deep); box-shadow: var(--shadow); aspect-ratio: 3 / 4; }
.collage figure:nth-child(2n) { transform: translateY(34px); }
.collage img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.collage figcaption {
  position: absolute; left: 10px; bottom: 10px; right: 10px;
  background: rgba(255, 255, 255, .92); border-radius: 12px; padding: 6px 10px; font-size: 13px; line-height: 1.35;
}
.collage figcaption b { display: block; font-size: 14px; }

/* ---------- 숫자 띠 ---------- */
.stats { background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: 34px 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 26px 18px; }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(30px, 7vw, 44px); line-height: 1.1; color: var(--yellow); }
.stat span { display: block; margin-top: 8px; font-size: 14px; color: #d9d4c7; line-height: 1.5; }

/* ---------- 공감 카드 ---------- */
.pain-list { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; }
.pain-list li {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 22px 20px 58px; position: relative; font-weight: 600; font-size: 17px;
}
.pain-list li::before {
  content: "?"; position: absolute; left: 18px; top: 18px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--yellow); font-family: var(--font-display); font-size: 15px; line-height: 1;
}
.pain-answer { margin-top: 28px; font-family: var(--font-display); font-size: clamp(22px, 4.6vw, 30px); line-height: 1.45; }

/* ---------- 강사 카드 ---------- */
.team { display: grid; gap: 18px; }
.coach {
  background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line);
  display: grid; grid-template-rows: auto 1fr;
}
.coach-photo { position: relative; aspect-ratio: 4 / 4.2; background: var(--cream-deep); overflow: hidden; }
.coach-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.coach-photo .tag {
  position: absolute; left: 14px; top: 14px; background: var(--yellow); border: 2px solid var(--ink);
  font-weight: 800; font-size: 13px; padding: 4px 10px; border-radius: 999px;
}
.coach-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.coach-role { font-size: 14px; color: var(--muted); font-weight: 600; }
.coach-body h3 { font-size: 24px; }
.coach-class { font-weight: 700; }
.coach-quote {
  margin: 4px 0 0; padding: 14px 16px; background: var(--cream); border-radius: var(--radius-sm);
  font-size: 15px; line-height: 1.6; color: var(--ink-soft); position: relative;
}
.coach-quote cite { display: block; margin-top: 6px; font-style: normal; font-size: 13px; color: var(--muted); }
.coach-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.chip-link {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; text-decoration: none;
  padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper);
}
.chip-link:hover { border-color: var(--ink); }
.chip-link svg { width: 16px; height: 16px; }

/* ---------- 두 갈래 선택 ---------- */
.tracks { display: grid; gap: 16px; }
.track {
  display: flex; flex-direction: column; gap: 14px; text-decoration: none;
  border-radius: var(--radius-lg); padding: 30px 26px; border: 2px solid var(--ink); min-height: 300px;
  transition: transform .18s ease, box-shadow .18s ease;
}
.track:hover { transform: translateY(-4px); box-shadow: 0 8px 0 var(--ink); }
.track-edu { background: var(--yellow); }
.track-ops { background: var(--paper); }
.track .for { font-weight: 700; font-size: 14px; }
.track h3 { font-size: clamp(28px, 6vw, 38px); }
.track ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.track li { display: flex; gap: 8px; font-weight: 600; }
.track li::before { content: ""; width: 8px; height: 8px; margin-top: 10px; border-radius: 50%; background: var(--ink); flex: none; }
.track .go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }
.track .go svg { width: 22px; height: 22px; transition: transform .18s; }
.track:hover .go svg { transform: translateX(4px); }

/* ---------- 후기 ---------- */
.reviews { columns: 1; column-gap: 16px; }
.review {
  break-inside: avoid; margin: 0 0 16px; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
}
.review img { width: 100%; height: auto; background: var(--cream-deep); }
.review-body { padding: 18px 20px 20px; }
.stars { display: flex; gap: 2px; color: #f5a400; }
.stars svg { width: 16px; height: 16px; }
.review blockquote { margin: 10px 0 0; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }
.review .meta { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; }
.review .meta span { background: var(--cream); border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.review .meta .who { background: var(--yellow-soft); }
.review-note { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }

/* ---------- 강의 맛보기 ---------- */
.sample {
  background: var(--paper); border: 2px dashed var(--line); border-radius: var(--radius-lg);
  aspect-ratio: 16 / 9; display: grid; place-items: center; text-align: center; padding: 24px;
}
.sample .play {
  width: 72px; height: 72px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink);
  display: grid; place-items: center; margin: 0 auto 14px;
}
.sample .play svg { width: 28px; height: 28px; margin-left: 4px; }
.sample p { color: var(--muted); font-size: 15px; }
.sample strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.video { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.video iframe { width: 100%; height: 100%; border: 0; }

/* ---------- 진행 순서 ---------- */
.steps { display: grid; gap: 12px; padding: 0; margin: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 22px 22px 76px; position: relative;
}
.steps li::before {
  content: counter(step); position: absolute; left: 20px; top: 20px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--yellow); font-family: var(--font-display); font-size: 18px;
}
.steps b { display: block; font-size: 18px; }
.steps span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 32px 20px 0; font-weight: 700; font-size: 17px; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 20px; color: var(--ink-soft); }

/* ---------- 마지막 문의 ---------- */
.final {
  background: var(--yellow); border: 2px solid var(--ink); border-radius: var(--radius-lg);
  padding: 44px 26px; text-align: center; overflow: hidden; position: relative;
}
.final h2 { font-size: clamp(28px, 6vw, 44px); }
.final p { margin: 16px auto 0; max-width: 560px; font-size: 17px; }
.final .btn-row { justify-content: center; margin-top: 26px; }
.final .btn-kakao { background: var(--paper); }
.final .fine { margin-top: 16px; font-size: 14px; }

/* ---------- 강의 상세 (교육/매장운영 페이지) ---------- */
.page-hero { padding: 40px 0 56px; }
.page-hero h1 { font-size: clamp(32px, 8vw, 58px); margin-top: 18px; letter-spacing: -0.03em; }
.page-hero .lead { margin-top: 18px; font-size: 18px; color: var(--ink-soft); max-width: 640px; }
.class-tabs { display: flex; gap: 8px; margin-top: 26px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.class-tabs::-webkit-scrollbar { display: none; }
.class-tabs a {
  flex: none; text-decoration: none; font-weight: 700; font-size: 15px; padding: 10px 16px;
  border-radius: 999px; background: var(--paper); border: 1px solid var(--line);
}
.class-tabs a:hover { border-color: var(--ink); }

.course { padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.course-grid { display: grid; gap: 28px; }
.course-card { background: var(--paper); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); align-self: start; }
.course-card .coach-photo { aspect-ratio: 4 / 4.4; }
.course-card .coach-body h3 { font-size: 22px; }
.course-num { font-family: var(--font-display); font-size: 15px; color: var(--muted); }
.course h2 { font-size: clamp(30px, 6.4vw, 46px); margin-top: 8px; }
.course .hook { margin-top: 14px; font-size: 19px; font-weight: 600; }
.course h4 { font-size: 18px; margin: 30px 0 12px; display: flex; align-items: center; gap: 8px; }
.course h4::before { content: ""; width: 14px; height: 14px; border-radius: 4px; background: var(--yellow); border: 2px solid var(--ink); }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li svg { width: 22px; height: 22px; flex: none; margin-top: 3px; }
.modules { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; counter-reset: mod; }
.modules li {
  counter-increment: mod; background: var(--cream); border-radius: var(--radius-sm); padding: 16px 18px 16px 58px; position: relative;
}
.modules li::before {
  content: counter(mod, decimal-leading-zero); position: absolute; left: 18px; top: 16px;
  font-family: var(--font-display); font-size: 15px; color: var(--ink);
}
.modules b { display: block; }
.modules span { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); }
.mini-reviews { display: grid; gap: 12px; }
.mini-review { background: var(--cream); border-radius: var(--radius-sm); display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 12px; align-items: center; }
.mini-review img { width: 88px; height: 104px; object-fit: cover; border-radius: 10px; }
.mini-review p { font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.mini-review small { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; }
.course .btn-row { margin-top: 30px; }

.placeholder {
  border: 2px dashed #c9bfa8; background: repeating-linear-gradient(-45deg, transparent 0 10px, rgba(0,0,0,.025) 10px 20px);
  border-radius: var(--radius-sm); padding: 16px 18px; color: var(--muted); font-size: 15px;
}
.placeholder b { color: var(--ink); }

/* ---------- 푸터 ---------- */
.site-footer { margin-top: 40px; padding: 48px 0 40px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; gap: 26px; }
.footer-logo img { height: 40px; width: auto; }
.footer-desc { margin-top: 12px; color: var(--muted); font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-info { font-size: 13px; color: var(--muted); line-height: 1.8; }
.footer-info .todo { color: #9b8f75; }

/* ---------- 스크롤 등장 효과 ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.hero .reveal:nth-child(2) { transition-delay: .06s; }
.hero .reveal:nth-child(3) { transition-delay: .12s; }
.hero .reveal:nth-child(4) { transition-delay: .18s; }

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

/* ==========================================================
   태블릿 이상
   ========================================================== */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .stats { grid-template-columns: repeat(4, 1fr); padding: 40px 36px; }
  .team { grid-template-columns: 1fr 1fr; }
  .tracks { grid-template-columns: 1fr 1fr; }
  .reviews { columns: 2; }
  .pain-list { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .final { padding: 64px 40px; }
  .footer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; }
  .footer-info { grid-column: 1 / -1; }
}

/* ==========================================================
   데스크톱
   ========================================================== */
@media (min-width: 1024px) {
  body { padding-bottom: 0; }
  .contact-bar { display: none; }
  .menu-btn, .drawer, .drawer.is-open { display: none; }
  .nav { display: flex; }
  .section { padding: 120px 0; }
  .hero { padding: 56px 0 110px; }
  .hero-grid { grid-template-columns: 1.05fr 1fr; gap: 64px; }
  .team { grid-template-columns: repeat(4, 1fr); }
  .reviews { columns: 3; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 76px 22px 24px; }
  .steps li::before { top: 22px; }
  .course { padding: 96px 0; }
  .course-grid { grid-template-columns: 340px 1fr; gap: 56px; }
  .course-card { position: sticky; top: 88px; }
  .mini-reviews { grid-template-columns: 1fr 1fr; }
}

/* PC에서만 보이는 줄바꿈 */
br.pc { display: none; }
@media (min-width: 1024px) { br.pc { display: inline; } }

/* ---------- 휴대폰 전용: 강사 카드 가로형, 후기 옆으로 넘기기 ---------- */
.swipe-hint { display: none; }
@media (max-width: 719px) {
  .coach { grid-template-rows: none; grid-template-columns: 124px 1fr; }
  .coach-photo { aspect-ratio: auto; height: 100%; min-height: 220px; }
  .coach-photo .tag { left: 8px; top: 8px; font-size: 12px; padding: 2px 8px; }
  .coach-body { padding: 16px 16px 18px; gap: 8px; }
  .coach-body h3 { font-size: 21px; }
  .coach-class { font-size: 15px; line-height: 1.5; }
  .coach-quote { font-size: 14px; padding: 10px 12px; }
  .chip-link { font-size: 13px; padding: 6px 10px; }

  .reviews {
    columns: auto; display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px; scrollbar-width: none;
  }
  .reviews::-webkit-scrollbar { display: none; }
  .review { flex: 0 0 78%; margin: 0; scroll-snap-align: center; display: flex; flex-direction: column; }
  .review img { height: 260px; object-fit: cover; object-position: center 30%; }
  .swipe-hint { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink-soft); margin: -20px 0 14px; }
  .swipe-hint svg { width: 18px; height: 18px; }
}

/* 데스크톱: 강사 사진 묶음이 한 화면에 들어오게 */
@media (min-width: 1024px) {
  .collage { width: 100%; max-width: 430px; justify-self: end; }
  .collage figure { aspect-ratio: 4 / 5; }
}

/* 휴대폰: 강의 페이지 강사 카드도 가로형 */
@media (max-width: 719px) {
  .course-card { display: grid; grid-template-columns: 124px 1fr; }
  .course-card .coach-photo { aspect-ratio: auto; min-height: 190px; }
  .course-card .coach-body { padding: 16px; gap: 8px; }
  .course { padding: 48px 0; }
  .course-grid { gap: 22px; }
}

/* ==========================================================
   교육자료 페이지
   ========================================================== */
.filetag {
  display: inline-flex; align-items: center; font-size: 12px; font-weight: 800; letter-spacing: .02em;
  padding: 3px 8px; border-radius: 6px; line-height: 1.4; color: #fff;
}
.filetag.xlsx { background: #1f7a45; }
.filetag.pdf  { background: #c8372d; }
.filetag.hwp  { background: #2a64c5; }
.filetag.ppt  { background: #c4581f; }
.filetags { display: flex; flex-wrap: wrap; gap: 6px; }

.free-box {
  background: var(--ink); color: var(--paper); border-radius: var(--radius-lg); padding: 30px 24px;
  display: grid; gap: 20px;
}
.free-box .eyebrow { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.free-box h2 { font-size: clamp(26px, 5.4vw, 38px); margin-top: 12px; }
.free-box > div > p { margin-top: 10px; color: #d9d4c7; }
.free-list { display: grid; gap: 12px; }
.free-item {
  background: #2a2824; border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 10px;
}
.free-item h3 { font-size: 19px; font-family: var(--font-body); font-weight: 800; }
.free-item p { color: #cfc9ba; font-size: 15px; }
.btn-yellow { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

.mat-section { padding: 56px 0; border-top: 1px solid var(--line); scroll-margin-top: 72px; }
.mat-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.mat-head h2 { font-size: clamp(26px, 5.4vw, 36px); margin-top: 6px; }
.mat-head p { color: var(--muted); margin-top: 8px; max-width: 560px; }
.mat-for { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.mat-grid { display: grid; gap: 14px; }
.mat {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: flex; flex-direction: column; gap: 12px; position: relative;
}
.mat-icon {
  width: 46px; height: 46px; border-radius: 14px; background: var(--yellow-soft); border: 2px solid var(--ink);
  display: grid; place-items: center;
}
.mat-icon svg { width: 24px; height: 24px; }
.mat h3 { font-size: 19px; font-family: var(--font-body); font-weight: 800; letter-spacing: -0.01em; }
.mat p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }
.mat .foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mat .free-badge {
  position: absolute; right: 16px; top: 16px; background: var(--yellow); border: 2px solid var(--ink);
  font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px;
}
.sample-note { font-size: 13px; color: #9b8f75; }

@media (min-width: 720px) {
  .mat-grid { grid-template-columns: 1fr 1fr; }
  .free-list { grid-template-columns: 1fr 1fr; }
  .free-box { padding: 40px 36px; }
}
@media (min-width: 1024px) {
  .mat-grid { grid-template-columns: repeat(3, 1fr); }
  .mat-section { padding: 80px 0; }
  .tracks.three { grid-template-columns: repeat(3, 1fr); }
}
.track-mat { background: var(--cream-deep); }

/* ---------- 교육 현장 사진 모음 ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gallery figure { margin: 0; border-radius: var(--radius-sm); overflow: hidden; background: var(--cream-deep); position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g-main { grid-column: 1 / -1; aspect-ratio: 950 / 985; border-radius: var(--radius); }
.gallery .g-sub { aspect-ratio: 4 / 5; }
.gallery figcaption {
  position: absolute; left: 8px; bottom: 8px; background: rgba(255,255,255,.92); border-radius: 8px;
  padding: 3px 8px; font-size: 12px; font-weight: 700; line-height: 1.4;
}
.gallery .g-sub figcaption { display: none; }
.gallery-note { margin-top: 10px; font-size: 13px; color: var(--muted); }
/* 넓은 화면: 큰 사진 왼쪽 + 작은 사진 3장 오른쪽 한 줄 (.stack 은 좁은 칸용으로 위아래 배치 유지) */
@media (min-width: 720px) {
  .gallery { gap: 12px; }
  .gallery:not(.stack) { grid-template-columns: 1.6fr 1fr 1fr 1fr; align-items: stretch; }
  .gallery:not(.stack) .g-main { grid-column: auto; }
  .gallery:not(.stack) .g-sub { aspect-ratio: auto; }
  .gallery.stack .g-main { aspect-ratio: 4 / 3; }
  .gallery.stack .g-main img { object-position: center 35%; }
  .gallery .g-sub figcaption { display: block; }
}

/* ---------- 수업 장면 (사진 + 설명) ---------- */
.scene { display: grid; gap: 24px; align-items: center; }
.scene figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 950 / 985; background: var(--cream-deep); }
.scene figure img { width: 100%; height: 100%; object-fit: cover; }
.scene figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.92); border-radius: 10px; padding: 4px 10px; font-size: 13px; font-weight: 700; }
@media (min-width: 1024px) { .scene { grid-template-columns: 1fr 1fr; gap: 56px; } }

.footer-info a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
