/* 윤지환 국어 연구소
   원칙: 읽기 쉽고 찾기 쉽게.
   색: 무채색 바탕 + 파란색 하나(관리자 사이트와 같은 #3B82F6).
       파란색은 링크·"진행 중/오늘" 표시·카카오채널 문의 버튼에만 쓴다.
       글자가 올라가는 파란 바탕과 파란 글자는 더 잘 읽히게 한 단계 진한 #2563EB 를 쓴다. */

:root {
  --ink: #111827;     /* 제목 */
  --text: #1F2937;    /* 본문 */
  --sub: #4B5563;     /* 설명 글 */
  --muted: #6B7280;   /* 보조 정보 */
  --line: #E5E7EB;
  --line-2: #D1D5DB;
  --soft: #F7F8FA;    /* 번갈아 쓰는 옅은 바탕 */
  --tile: #EFF0F3;    /* 사진 칸 바탕 */
  --hero: #ECEEF1;
  --white: #FFFFFF;
  --blue: #3B82F6;
  --blue-600: #2563EB;
  --blue-50: #EFF6FF;
  --sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  --maxw: 1120px;
  --header-h: 68px;
  --r: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ── 바탕 ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: rgba(17, 24, 39, .06); scroll-padding-top: calc(var(--header-h) + 20px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -.01em;
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ink); line-height: 1.35; letter-spacing: -.03em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
time, .tel-list a { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--blue-600); color: #fff; }

.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: #fff; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }
.container { width: min(100% - 40px, var(--maxw)); margin-inline: auto; }
.container.narrow { max-width: 820px; }
.ico { width: 20px; height: 20px; flex: none; }
.dot { color: var(--blue); }

/* ── 버튼 · 링크 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px;
  border: 1px solid transparent; border-radius: 10px;
  font-size: 15.5px; font-weight: 700; line-height: 1; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn .ico { width: 18px; height: 18px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #374151; }
.btn-blue { background: var(--blue-600); color: #fff; }
.btn-blue:hover { background: #1D4ED8; }
.btn-line { background: var(--white); border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14.5px; }
.btn-lg { min-height: 52px; padding: 0 26px; font-size: 16.5px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; }

.more { display: inline-flex; align-items: center; gap: 4px; font-size: 15px; font-weight: 700; color: var(--blue-600); text-decoration: none; white-space: nowrap; }
.more .ico { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.more:hover { text-decoration: underline; }
.more:hover .ico { transform: translateX(2px); }

.badge-now, .badge-best { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 700; line-height: 1; white-space: nowrap; }
.badge-now { background: var(--blue-600); color: #fff; }
.badge-best { background: var(--ink); color: #fff; letter-spacing: .06em; }

.tel-list { display: flex; flex-direction: column; }
.tel-list li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.tel-list li:first-child { border-top: 0; }
.tel-list a { font-weight: 700; color: var(--ink); text-decoration: none; white-space: nowrap; }
.tel-list a:hover { color: var(--blue-600); }

/* ── 머리 ── */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { font-size: 22px; font-weight: 800; letter-spacing: -.045em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { position: relative; padding: 8px 12px; border-radius: 8px; font-size: 15.5px; font-weight: 600; color: var(--sub); text-decoration: none; white-space: nowrap; }
.nav a:hover { background: var(--soft); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--blue); }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0 -10px 0 auto; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.menu-btn .ico { width: 24px; height: 24px; }
.menu-btn .i-close { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-close { display: block; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--white); max-height: calc(100dvh - var(--header-h)); overflow: auto; }
.mobile-menu nav { display: flex; flex-direction: column; padding: 4px 0 24px; }
.mobile-menu nav > a:not(.btn) { padding: 15px 2px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 700; color: var(--ink); text-decoration: none; }
.mobile-menu nav > a[aria-current="page"] { color: var(--blue-600); }
.mobile-menu .btn { margin-top: 18px; }
@media (max-width: 1000px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ── 공통 구획 ── */
.section { padding: clamp(56px, 7vw, 88px) 0; }
.section-tight { padding: clamp(32px, 4vw, 48px) 0 clamp(56px, 7vw, 88px); }
.section-soft { background: var(--soft); }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 24px; margin-bottom: clamp(20px, 3vw, 30px); }
.sec-head h2 { font-size: clamp(24px, 2.7vw, 30px); font-weight: 800; letter-spacing: -.035em; }
.sec-head .lead { margin-top: 4px; }
.lead { font-size: clamp(15.5px, 1.3vw, 17px); color: var(--sub); }

/* ── 첫 화면 ── */
.hero { background: var(--hero); overflow: hidden; }
.hero-inner { position: relative; display: flex; align-items: center; height: 560px; }
.hero-text { position: relative; z-index: 2; max-width: 600px; }
.hero-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 700; color: var(--sub); }
.dday { display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--blue-600); color: #fff; font-size: 13px; font-weight: 700; }
.dday b { font-weight: 800; font-variant-numeric: tabular-nums; }
.hero-name { margin: 10px 0 16px; font-size: clamp(60px, 8.6vw, 104px); font-weight: 900; line-height: 1.04; letter-spacing: -.065em; white-space: nowrap; }
.hero-slogan { font-size: clamp(19px, 2vw, 24px); font-weight: 800; letter-spacing: -.035em; color: var(--ink); }
.hero-tagline { margin-top: 4px; font-size: 16.5px; color: var(--sub); }
.hero-career { display: flex; flex-direction: column; gap: 4px; margin-top: 18px; font-size: 15.5px; color: var(--sub); }
.hero-career li { display: flex; align-items: center; gap: 10px; }
.hero-career li::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: var(--blue); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
/* 강사 사진: 배너보다 크게 두고 허리 아래는 배너 밖으로 잘린다 */
.hero-photo { position: absolute; z-index: 1; top: 26px; right: 44px; width: auto; height: 760px; max-width: none; pointer-events: none; }
img.is-mono, .is-mono > img { filter: grayscale(1); }
@media (max-width: 1000px) {
  .hero-inner { height: 500px; }
  .hero-text { max-width: 54%; }
  .hero-photo { top: 22px; right: -8px; height: 680px; }
}
@media (max-width: 760px) {
  .hero-inner { display: block; height: auto; padding-top: 36px; }
  .hero-text { max-width: none; }
  .hero-name { font-size: clamp(52px, 16.5vw, 76px); }
  .hero-cta .btn { flex: 1 1 0; }
  .hero-photo { position: static; display: block; width: min(66%, 250px); height: 290px; margin: 26px auto 0; object-fit: cover; object-position: center top; }
}

/* ── 홈: 학원별 시간 ── */
.aca-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.aca-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.aca-card h3 { font-size: 18px; font-weight: 800; }
.aca-times { display: flex; flex-direction: column; gap: 8px; }
.aca-times li { display: flex; align-items: center; gap: 10px; font-size: 16px; color: var(--sub); }
.aca-times b { margin-left: auto; font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.aca-times li.is-today span:nth-child(2)::after { content: "오늘"; margin-left: 6px; padding: 1px 6px; border-radius: 5px; background: var(--blue-600); color: #fff; font-size: 11.5px; font-weight: 700; }
.code { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 24px; padding: 0 8px; border-radius: 6px; background: var(--tile); font-size: 13px; font-weight: 700; color: var(--sub); }
.aca-addr { font-size: 15px; line-height: 1.6; color: var(--sub); }
.sch-notice { margin: -4px 0 18px; padding: 13px 16px; border-radius: 10px; background: var(--soft); font-size: 15.5px; color: var(--text); }
.aca-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.aca-foot a:first-child { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--text); text-decoration: none; font-variant-numeric: tabular-nums; }
.aca-foot a:first-child:hover { color: var(--blue-600); }
.aca-foot a:first-child .ico { width: 16px; height: 16px; color: var(--muted); }
.aca-foot .more { font-size: 14.5px; }
@media (max-width: 900px) { .aca-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ── 홈: 1년 커리큘럼 ── */
.season-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.season-card { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); color: inherit; text-decoration: none; transition: border-color .15s; }
.season-card:hover { border-color: var(--ink); }
.season-card.is-now { border-color: var(--blue); }
.sc-label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.season-card strong { font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--ink); line-height: 1.4; }
.sc-title { font-size: 15px; color: var(--text); }
.sc-books { margin-top: auto; padding-top: 14px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 1000px) { .season-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .season-grid { grid-template-columns: 1fr; gap: 12px; } }

/* ── 교재 사진 ── */
/* 사진 칸: 그림은 칸 안쪽에 맞춰 줄어든다(가로로 긴 그림·세로로 긴 그림 모두) */
.photo-tile, .book-photo { position: relative; display: block; border-radius: var(--r); background: var(--tile); overflow: hidden; }
.photo-tile { aspect-ratio: 4 / 3; }
.book-img { position: absolute; left: 8%; top: 12%; width: 84%; height: 76%; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(17, 24, 39, .12)); }
.book-img.is-flat { left: 50%; top: 15%; width: auto; height: 70%; transform: translateX(-50%); border-radius: 3px; filter: none; box-shadow: 0 10px 18px -8px rgba(17, 24, 39, .45); }
.tile-text { position: absolute; inset: 0; display: grid; place-items: center; padding: 0 12px; font-size: 19px; font-weight: 800; letter-spacing: -.03em; color: var(--muted); text-align: center; }

.showcase { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 16px; }
.show-card { display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.show-card .photo-tile { margin-bottom: 12px; }
.show-card .book-img { transition: transform .3s var(--ease); }
.show-card:hover .book-img { transform: translateY(-4px); }
.show-card:hover .book-img.is-flat { transform: translate(-50%, -4px); }
.show-card strong { font-size: 17px; font-weight: 700; color: var(--ink); }
.show-card:hover strong { color: var(--blue-600); }
.show-card > span:last-child { font-size: 14.5px; color: var(--muted); }
.photo-band { aspect-ratio: 3.4 / 1; }
.photo-band .book-img { left: 5%; top: 14%; width: 90%; height: 72%; }
@media (max-width: 760px) {
  .showcase { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .photo-band { aspect-ratio: 2.4 / 1; }
}

/* ── 영상 ── */
.video-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.video-text h2 { font-size: clamp(24px, 2.7vw, 30px); font-weight: 800; letter-spacing: -.035em; }
.video-text .lead { margin-top: 4px; }
.video-title { margin: 18px 0; padding-left: 14px; border-left: 3px solid var(--blue); font-size: 17px; font-weight: 700; color: var(--ink); }
.yt-btn { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--r); overflow: hidden; background: #000; cursor: pointer; }
.yt-btn img { width: 100%; height: 100%; object-fit: cover; transition: filter .4s; }
.yt-btn:hover img { filter: none; }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt-play .ico { width: 68px; height: 68px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .35)); transition: transform .2s var(--ease); }
.yt-play .ico circle { fill: var(--blue-600); stroke: none; }
.yt-play .ico path { fill: #fff; }
.yt-btn:hover .yt-play .ico { transform: scale(1.06); }
.yt iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--r); background: #000; }
@media (max-width: 860px) { .video-grid { grid-template-columns: 1fr; } }

/* ── 후기 ── */
.rv-result { font-size: 16px; font-weight: 800; color: var(--blue-600); }
.rv-detail { font-size: 13.5px; color: var(--muted); }
.quote-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quote { display: flex; flex-direction: column; gap: 6px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.quote blockquote { margin-top: 6px; font-size: 16.5px; font-weight: 600; line-height: 1.7; color: var(--ink); }
.quote figcaption { margin-top: auto; padding-top: 14px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .quote-grid { grid-template-columns: 1fr; gap: 12px; } }

.review-grid { columns: 2 380px; column-gap: 16px; }
.review { display: flex; flex-direction: column; gap: 8px; margin: 0 0 16px; padding: 24px; break-inside: avoid; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.review header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review .rv-result { font-size: 17px; }
.review blockquote { margin-top: 4px; font-size: 16.5px; font-weight: 600; line-height: 1.7; color: var(--ink); }
.rv-body { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.8; color: var(--sub); }
.js .review:not(.is-open) .rv-body { display: none; }
.review footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 14px; color: var(--muted); }
.rv-toggle { display: inline-flex; align-items: center; gap: 2px; padding: 6px 0; border: 0; background: none; font-weight: 700; color: var(--blue-600); cursor: pointer; }
.rv-toggle .ico { width: 17px; height: 17px; transition: transform .2s var(--ease); }
.review.is-open .rv-toggle .ico { transform: rotate(180deg); }

/* ── 자주 묻는 질문 ── */
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; cursor: pointer; list-style: none; font-size: 16.5px; font-weight: 600; color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--blue-600); }
.faq-item summary .ico { color: var(--muted); transition: transform .2s var(--ease); }
.faq-item[open] summary .ico { transform: rotate(180deg); }
.faq-a { display: flex; flex-direction: column; gap: 8px; max-width: 720px; padding: 0 2px 22px; font-size: 15.5px; color: var(--sub); }
.faq-a a { font-weight: 600; color: var(--blue-600); }
.faq-a strong { color: var(--ink); }
.faq-a ul, .book-desc ul { display: flex; flex-direction: column; gap: 4px; }
.faq-a li, .book-desc li { position: relative; padding-left: 14px; }
.faq-a li::before, .book-desc li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.faq-empty { padding: 24px; border-radius: var(--r); background: var(--soft); text-align: center; color: var(--sub); }
.faq-empty a { font-weight: 700; color: var(--blue-600); }
.copy-box { margin-top: 6px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--soft); }
.copy-box pre { margin: 0 0 12px; font-family: var(--sans); font-size: 15px; line-height: 1.7; white-space: pre-wrap; color: var(--ink); }
.search { display: flex; align-items: center; gap: 10px; height: 50px; margin-bottom: 32px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--white); }
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.search .ico { color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }

/* ── 모든 쪽 아래: 문의 ── */
.inquiry { border-top: 1px solid var(--line); background: var(--white); padding: clamp(40px, 5vw, 56px) 0; }
.inquiry-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 24px 56px; align-items: start; }
.inquiry-text h2 { margin-bottom: 10px; font-size: clamp(22px, 2.4vw, 26px); font-weight: 800; }
.inquiry-text p { color: var(--sub); }
.inquiry-text b { color: var(--ink); }
.inquiry-side { display: flex; flex-direction: column; gap: 14px; }
@media (max-width: 860px) { .inquiry-inner { grid-template-columns: 1fr; } }

/* ── 바닥 ── */
.site-footer { padding: 40px 0 36px; border-top: 1px solid var(--line); background: var(--soft); font-size: 14.5px; color: var(--sub); }
.f-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding-bottom: 24px; }
.f-brand { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.f-brand .logo { font-size: 20px; }
.f-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.f-nav a { font-weight: 600; color: var(--text); text-decoration: none; }
.f-nav a:hover { color: var(--blue-600); }
.f-social { display: flex; gap: 8px; }
.f-social a { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--white); color: var(--ink); }
.f-social a:hover { border-color: var(--blue); color: var(--blue-600); }
.f-social .ico { width: 18px; height: 18px; }
.f-bottom { display: flex; flex-direction: column; gap: 8px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.f-company { display: flex; flex-wrap: wrap; gap: 2px 14px; }
.f-company a { color: inherit; }
.f-en { max-width: 900px; line-height: 1.6; }
.f-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; }
.f-legal a { font-weight: 700; color: var(--text); text-decoration: none; }
.f-legal a:hover { color: var(--blue-600); }

/* ── 하위 쪽 머리 ── */
.page-head { padding: clamp(36px, 5vw, 56px) 0 clamp(26px, 4vw, 38px); border-bottom: 1px solid var(--line); background: var(--soft); }
.page-head h1 { font-size: clamp(30px, 4vw, 40px); font-weight: 800; letter-spacing: -.04em; line-height: 1.25; }
.page-head .lead { margin-top: 8px; }
.page-head .btn-row { margin-top: 22px; }
.nf { min-height: 50vh; display: flex; align-items: center; border-bottom: 0; }

/* ── 강사 소개 ── */
.feature-list { counter-reset: feat; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--line-2); }
.feature-list li { position: relative; padding: 22px 0 22px 44px; border-bottom: 1px solid var(--line); counter-increment: feat; }
.feature-list li::before { content: counter(feat); position: absolute; left: 0; top: 23px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.feature-list h3 { font-size: 18px; font-weight: 700; }
.feature-list p { margin-top: 4px; font-size: 15.5px; color: var(--sub); }
@media (max-width: 860px) { .feature-list { grid-template-columns: 1fr; } }

/* ── 커리큘럼·교재 ── */
.season-tabs { position: sticky; top: var(--header-h); z-index: 30; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
.season-tabs .container { display: flex; gap: 4px; padding: 9px 0; overflow-x: auto; scrollbar-width: none; }
.season-tabs .container::-webkit-scrollbar { display: none; }
.season-tabs a { flex: none; display: inline-flex; align-items: baseline; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--sub); text-decoration: none; white-space: nowrap; }
.season-tabs a b { font-weight: 800; color: var(--ink); }
.season-tabs a:hover { background: var(--soft); }
.season-tabs a[aria-current="true"] { background: var(--ink); color: #fff; }
.season-tabs a[aria-current="true"] b { color: #fff; }
.season { padding: clamp(44px, 6vw, 68px) 0; scroll-margin-top: calc(var(--header-h) + 52px); }
.season + .season { border-top: 1px solid var(--line); }
.season-head { margin-bottom: 26px; }
.season-label { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 700; color: var(--muted); }
.season-head h2 { margin: 2px 0 6px; font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -.04em; }
.season-title { font-size: 18px; font-weight: 700; color: var(--ink); }
.season-summary { max-width: 720px; margin-top: 4px; color: var(--sub); }
.lesson { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin-top: 18px; padding: 13px 16px; border-radius: 10px; background: var(--soft); font-size: 15px; }
.lesson + .lesson { margin-top: 8px; }
.lesson-label { font-weight: 700; color: var(--ink); white-space: nowrap; }
.topics { display: flex; flex-wrap: wrap; gap: 4px 28px; color: var(--sub); }
.topics > div { display: flex; align-items: baseline; gap: 10px; }
.topics dt { font-weight: 700; color: var(--ink); white-space: nowrap; }
.topics dd { display: flex; flex-wrap: wrap; gap: 2px 0; }
.topics dd span { white-space: nowrap; }
.topics dd span + span::before { content: "→"; margin: 0 9px; color: var(--muted); }
.lesson-steps { display: flex; flex-wrap: wrap; gap: 2px 0; color: var(--sub); }
.lesson-steps li { white-space: nowrap; }
.lesson-steps li b { font-weight: 700; color: var(--ink); }
.lesson-steps li + li::before { content: "→"; margin: 0 9px; color: var(--muted); }
.book-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.book { display: grid; grid-template-columns: 184px minmax(0, 1fr); gap: 20px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); }
.book-photo { align-self: start; aspect-ratio: 1 / 1; border-radius: 10px; }
.book-photo .book-img { left: 7%; top: 10%; width: 86%; height: 80%; }
.book-photo .book-img.is-flat { left: 50%; top: 13%; width: auto; height: 74%; }
.book-body { min-width: 0; padding: 4px 4px 4px 0; }
.book-type { font-size: 13.5px; font-weight: 700; color: var(--muted); }
.book h3 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.book h3 span { margin-left: 4px; font-size: 14.5px; font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.book-desc { display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.65; color: var(--sub); }
.book-desc strong { color: var(--ink); }
.price-list { margin-top: 12px; border-top: 1px solid var(--line); }
.price-list div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.price-list dt { color: var(--sub); }
.price-list dd { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.price-free { margin-top: 12px; font-size: 15px; font-weight: 700; color: var(--ink); }
.season-note { margin-top: 16px; font-size: 15px; color: var(--muted); }
.note-box { padding: clamp(20px, 3vw, 28px); border: 1px solid var(--line); border-radius: var(--r); background: var(--soft); }
.note-box h2 { margin-bottom: 6px; font-size: 20px; font-weight: 800; }
.note-box p { color: var(--sub); }
.note-box p:last-child { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
@media (max-width: 940px) { .book-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) {
  .book { grid-template-columns: 1fr; gap: 14px; }
  .book-photo { aspect-ratio: 16 / 9; }
  .book-photo.is-empty { display: none; }
  .book-body { padding: 0 2px 2px; }
}

/* ── 시간표 ── */
.table-wrap { border: 1px solid var(--line); border-radius: var(--r); background: var(--white); overflow: hidden; }
.timetable, .plain-table { width: 100%; border-collapse: collapse; font-size: 16px; }
.timetable th { padding: 11px 18px; border-bottom: 1px solid var(--line); background: var(--soft); font-size: 13.5px; font-weight: 700; color: var(--muted); text-align: left; white-space: nowrap; }
.timetable td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.timetable tr:last-child td { border-bottom: 0; }
.timetable td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }
.tt-time { font-size: 17px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.timetable td a { font-weight: 600; color: var(--blue-600); text-decoration: none; }
.timetable td a:hover { text-decoration: underline; }
.timetable tr.is-today td { background: var(--blue-50); }
.today-tag { display: none; margin-left: 6px; padding: 2px 6px; border-radius: 5px; background: var(--blue-600); color: #fff; font-size: 11.5px; font-style: normal; font-weight: 700; vertical-align: 2px; }
tr.is-today .today-tag { display: inline-block; }
.d-short { display: none; }
.special { margin-top: 40px; }
.special h3 { margin-bottom: 4px; font-size: 20px; font-weight: 800; }
.special .lead { margin-bottom: 14px; }
@media (max-width: 640px) {
  .timetable { font-size: 15px; }
  .timetable th, .timetable td { padding: 13px 10px; }
  .timetable th:first-child, .timetable td:first-child { padding-left: 14px; }
  .tt-time { font-size: 15.5px; }
  .hide-sm, .d-full { display: none; }
  .d-short { display: inline; }
}

.academy-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.academy { display: flex; flex-direction: column; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--white); scroll-margin-top: calc(var(--header-h) + 20px); }
.academy:target { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-50); }
.academy h3 { font-size: 20px; font-weight: 800; }
.info { display: flex; flex-direction: column; }
.info > div { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 15px; }
.info dt { font-weight: 600; color: var(--muted); }
.info dd { color: var(--ink); font-variant-numeric: tabular-nums; }
.info dd span { color: var(--sub); }
.info dd a { font-weight: 700; color: var(--blue-600); text-decoration: none; }
.academy-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
@media (max-width: 980px) { .academy-grid { grid-template-columns: 1fr; } }

/* ── 긴 안내 쪽(수강 안내·자주 묻는 질문): 왼쪽 목차 + 오른쪽 내용 ── */
.doc-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 56px; align-items: start; padding-top: clamp(32px, 4vw, 48px); padding-bottom: clamp(56px, 7vw, 88px); }
.side-nav { position: sticky; top: calc(var(--header-h) + 24px); display: flex; flex-direction: column; gap: 2px; }
.side-nav a { padding: 9px 12px; border-radius: 8px; font-size: 15px; font-weight: 600; color: var(--sub); text-decoration: none; white-space: nowrap; }
.side-nav a:hover { background: var(--soft); color: var(--ink); }
.side-nav a.is-active { background: var(--blue-50); color: var(--blue-600); font-weight: 700; }
.doc-body { min-width: 0; }
.doc-body > section { scroll-margin-top: calc(var(--header-h) + 24px); }
.doc-body > section + section { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--line); }
.doc-body[data-faq-list] > section + section { margin-top: 40px; padding-top: 0; border-top: 0; }
.doc-body h2 { font-size: clamp(21px, 2.3vw, 24px); font-weight: 800; }
.doc-body[data-faq-list] h2 { margin-bottom: 10px; font-size: 18px; }
.h-note { margin-left: 6px; font-size: 14.5px; font-weight: 600; color: var(--muted); letter-spacing: -.01em; }
.sec-lead { margin: 4px 0 20px; color: var(--sub); }
.sub-h { margin: 28px 0 10px; font-size: 16.5px; font-weight: 700; }
@media (max-width: 900px) {
  .doc-layout { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
  .side-nav { top: var(--header-h); z-index: 20; flex-direction: row; gap: 6px; margin: 0 -20px 28px; padding: 10px 20px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .97); }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav a { flex: none; padding: 7px 13px; border: 1px solid var(--line); border-radius: 999px; font-size: 14.5px; }
  .side-nav a.is-active { border-color: var(--blue-600); background: var(--blue-600); color: #fff; }
  .doc-body > section { scroll-margin-top: calc(var(--header-h) + 68px); }
}

.step-list { counter-reset: step; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.step-list > li { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 18px 18px 18px 58px; border: 1px solid var(--line); border-radius: var(--r); counter-increment: step; }
.step-list > li::before { content: counter(step); position: absolute; left: 18px; top: 18px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 14px; font-weight: 700; }
.step-list h3 { font-size: 17px; font-weight: 700; }
.step-list p { font-size: 15px; color: var(--sub); }
.step-list .tel-list { align-self: stretch; margin-top: 8px; }
.step-list .more { margin-top: 8px; }
@media (max-width: 640px) { .step-list { grid-template-columns: 1fr; } }

.week-flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.week-flow li { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); }
.wf-when { display: inline-block; margin-bottom: 4px; padding: 2px 8px; border-radius: 6px; background: var(--tile); font-size: 13px; font-weight: 700; color: var(--sub); }
.week-flow h3 { font-size: 16.5px; font-weight: 700; }
.wf-note { margin-top: 12px; font-size: 15px; color: var(--sub); }
.week-flow p { margin-top: 2px; font-size: 14.5px; line-height: 1.65; color: var(--sub); }
@media (max-width: 1100px) { .week-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .week-flow { grid-template-columns: 1fr; } }

.plain-table th, .plain-table td { padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 15px; text-align: left; vertical-align: top; }
.plain-table tr:last-child th, .plain-table tr:last-child td { border-bottom: 0; }
.plain-table th { width: 190px; background: var(--soft); font-weight: 700; color: var(--ink); white-space: nowrap; }
.plain-table th span { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: normal; }
@media (max-width: 640px) {
  .plain-table th, .plain-table td { display: block; width: auto; padding: 12px 14px; }
  .plain-table th { border-bottom: 0; padding-bottom: 6px; }
  .plain-table th span { display: inline; margin-left: 6px; }
  .plain-table td { padding-top: 6px; }
  .plain-table .lesson-steps { flex-direction: column; }
  .plain-table .lesson-steps li + li::before { content: none; }
}

.points { border-top: 1px solid var(--line-2); }
.points > div { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 4px 24px; padding: 16px 2px; border-bottom: 1px solid var(--line); }
.points dt { font-weight: 700; color: var(--ink); }
.points dd { color: var(--sub); }
.points dd a { font-weight: 600; color: var(--blue-600); }
.points dd strong { color: var(--ink); }
@media (max-width: 700px) { .points > div { grid-template-columns: 1fr; } }

.notice { padding: clamp(18px, 3vw, 26px); border: 1px solid var(--line-2); border-radius: var(--r); background: var(--soft); }
.notice-intro { font-size: 15px; color: var(--sub); }
.notice ol { counter-reset: note; margin-top: 12px; }
.notice li { position: relative; display: flex; flex-direction: column; padding: 13px 0 13px 30px; border-top: 1px solid var(--line); counter-increment: note; }
.notice li::before { content: counter(note) "."; position: absolute; left: 4px; top: 13px; font-weight: 800; color: var(--blue-600); }
.notice li b { color: var(--ink); }
.notice li span { font-size: 15px; color: var(--sub); }

/* ── 문서(개인정보처리방침 등) ── */
.doc { max-width: 760px; font-size: 15.5px; color: var(--sub); }
.doc h2 { margin: 32px 0 8px; font-size: 18px; font-weight: 800; }
.doc p + p { margin-top: 10px; }
.doc ul { display: flex; flex-direction: column; gap: 6px; padding-left: 20px; list-style: disc; }
.doc ul + p { margin-top: 10px; }
.doc .doc-meta { margin-bottom: 14px; font-size: 14px; color: var(--muted); }
.doc a { font-weight: 600; color: var(--blue-600); }

/* ── 휴대폰 아래 메뉴 ── */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: none; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line); background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; height: 58px; font-size: 11.5px; font-weight: 600; color: var(--sub); text-decoration: none; }
.tabbar .ico { width: 22px; height: 22px; }
.tabbar a[aria-current="page"], .tabbar .is-kakao { color: var(--blue-600); }
.tabbar a[aria-current="page"] { font-weight: 700; }
.menu-open .tabbar { display: none; }

.toast { position: fixed; left: 50%; bottom: 32px; z-index: 80; padding: 12px 18px; border-radius: 10px; background: var(--ink); color: #fff; font-size: 14.5px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: opacity .2s, transform .2s; }
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 760px) {
  body { padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  .tabbar { display: grid; }
  .toast { bottom: calc(74px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
