/* 이태영수학학원 — 네이비 × 골드, 카드형 상담 홈페이지 */
:root {
  --navy: #0d3567;
  --navy-2: #0a2a54;
  --navy-3: #164a8a;
  --gold: #f2b230;
  --gold-2: #d99a12;
  --ink: #17202c;
  --ink-2: #4a5666;
  --soft: #f3f6fb;
  --line: #dce3ee;
  --white: #fff;
  --radius: 16px;
  --max: 1080px;
  --gut: 20px;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.7 var(--sans); color: var(--ink); background: var(--white); word-break: keep-all; overflow-wrap: break-word; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.02em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
.pc { display: none; }

/* header */
.top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.top__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 34px; height: 34px; border-radius: 9px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font: 600 20px/1 var(--sans); }
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__ko { font: 600 17px/1.15 var(--sans); color: var(--navy); }
.brand__en { display: none; font: 500 9.5px/1.5 var(--sans); letter-spacing: .12em; color: var(--ink-2); white-space: nowrap; }
@media (min-width: 420px) { .brand__en { display: block; } }
.nav { display: none; gap: 26px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav a { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--navy); border-color: var(--gold); }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--navy); color: #fff; font: 500 14px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.pill:hover { background: var(--navy-3); }

/* hero */
.hero { background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 55%, var(--navy-3) 100%); color: #fff; padding: 56px 0 120px; }
.hero__tag { display: inline-block; font: 500 14px/1 var(--sans); color: var(--gold); letter-spacing: .02em; }
.hero h1 { margin-top: 18px; font-size: clamp(30px, 7.4vw, 52px); font-weight: 600; }
.hero__lead { margin-top: 20px; max-width: 36em; font-size: 16.5px; color: #d6e2f5; }
.hero__tel { margin-top: 24px; font-size: 15px; color: #b9cbe8; }
.hero__tel a { color: #fff; font-weight: 500; text-decoration: none; border-bottom: 2px solid var(--gold); }

/* photo strip */
.strip { margin-top: -84px; display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); position: relative; z-index: 2; }
.strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); border: 4px solid #fff; box-shadow: 0 10px 28px rgba(10, 42, 84, .22); background: var(--line); }

/* sections */
.sec { padding: 64px 0; }
.sec--soft { background: var(--soft); }
.sec--navy { background: var(--navy); color: #fff; }
.kicker { font: 500 13px/1 var(--sans); letter-spacing: .1em; color: var(--navy-3); margin-bottom: 14px; text-transform: uppercase; }
.kicker--light { color: var(--gold); }
.sec h2, .cta h2 { font-size: clamp(24px, 5.4vw, 36px); font-weight: 600; }
.light { color: #fff; }
.sub { margin-top: 14px; max-width: 40em; color: var(--ink-2); }
.sub strong { color: var(--navy); }
.inline { font-weight: 500; color: var(--navy-3); text-decoration: none; border-bottom: 2px solid var(--gold); }

/* cards */
.cards3 { margin-top: 32px; display: grid; gap: 16px; }
.card { padding: 26px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.card--main { background: var(--navy); border-color: var(--navy); color: #fff; }
.card__badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--navy); font: 500 13px/1.5 var(--sans); }
.card--main .card__badge { background: var(--gold); color: #231a05; }
.card h3 { margin-top: 14px; font-size: 19px; font-weight: 500; }
.card p { margin-top: 10px; font-size: 15px; color: var(--ink-2); }
.card--main p { color: #d6e2f5; }
.card .card__meta { margin-top: 16px; font: 500 14px/1.5 var(--sans); color: var(--navy-3); }
.card--main .card__meta { color: var(--gold); }

/* results */
.uni { margin-top: 20px; font: 500 clamp(17px, 3.8vw, 22px)/1.9 var(--sans); }
.results__box { margin-top: 28px; padding: 24px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); }
.results__label { font: 500 14px/1.5 var(--sans); color: var(--gold); }
.results__schools { margin-top: 8px; line-height: 1.9; color: #e3ecfa; }

/* worries */
.worries { margin-top: 28px; display: grid; gap: 12px; }
.worries li { padding: 18px 20px 18px 56px; border-radius: 14px; background: var(--soft); position: relative; font-weight: 500; }
.worries li::before { content: "?"; position: absolute; left: 18px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font: 600 15px/1 var(--sans); }
.worry__end { margin-top: 28px; padding: 18px 22px; border-left: 5px solid var(--gold); background: #fffaf0; font-weight: 500; color: var(--navy); }

/* flow */
.flow { margin-top: 32px; display: grid; gap: 14px; counter-reset: s; }
.flow li { display: flex; gap: 18px; padding: 22px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.flow b { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font: 600 18px/1 var(--sans); }
.flow h3 { font-size: 18px; font-weight: 500; }
.flow p { margin-top: 6px; font-size: 15px; color: var(--ink-2); }

/* tables */
.tablewrap { margin-top: 28px; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
thead th { background: var(--soft); font-weight: 500; color: var(--navy); white-space: nowrap; }
tbody th { font-weight: 500; white-space: nowrap; }
.cmp { min-width: 560px; }
.cmp .us { background: #eef4fd; color: var(--navy); font-weight: 500; }
.cmp thead .us { background: var(--navy); color: #fff; }
.fee { min-width: 600px; }
.fee td:last-child { font-weight: 500; color: var(--navy); white-space: nowrap; text-align: right; }
.fee thead th:last-child { text-align: right; }
.fee .sep th, .fee .sep td { border-top: 3px solid var(--navy); }
.fine { margin-top: 16px; font-size: 13.5px; color: var(--ink-2); }

/* director */
.director { display: grid; gap: 32px; }
.career { margin-top: 24px; }
.career li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink-2); }
.career li:last-child { border-bottom: 1px solid var(--line); }
.career span { flex: none; width: 1.6em; font-weight: 600; color: var(--gold-2); }
.career .now { color: var(--ink); font-weight: 500; }
.stats { display: grid; gap: 12px; align-content: start; }
.stats div { padding: 22px 24px; border-radius: var(--radius); background: var(--navy); color: #fff; }
.stats b { display: block; font: 600 44px/1.1 var(--sans); color: var(--gold); }
.stats small { font-size: 20px; margin-left: 2px; }
.stats span { display: block; margin-top: 6px; font-size: 14.5px; color: #d6e2f5; }

/* gallery */
.gallery { margin-top: 28px; display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.gallery figure { overflow: hidden; border-radius: var(--radius); background: var(--line); }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.gallery .tall img { aspect-ratio: 3 / 4; }

/* review */
.quote { margin-top: 8px; max-width: 42em; }
.quote blockquote { padding: 6px 0 6px 22px; border-left: 5px solid var(--gold); font: 500 clamp(18px, 4vw, 23px)/1.7 var(--sans); color: var(--navy); }
.quote blockquote p + p { margin-top: 12px; font-size: .84em; font-weight: 400; color: var(--ink-2); }
.quote figcaption { margin-top: 16px; padding-left: 27px; font-size: 14px; color: var(--ink-2); }

/* checks */
.checks { margin-top: 28px; display: grid; gap: 10px; }
.checks li { padding: 16px 18px 16px 52px; border-radius: 12px; background: #fff; border: 1px solid var(--line); position: relative; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 500 14px/1 var(--sans); }

/* faq */
.faq { display: grid; gap: 28px; }
.faq__list details { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq__list details + details { margin-top: 10px; }
.faq__list summary { cursor: pointer; list-style: none; padding: 20px 52px 20px 22px; font: 500 17px/1.5 var(--sans); position: relative; min-height: 56px; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 28px/1 var(--sans); color: var(--navy-3); transition: transform .2s; }
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { padding: 0 22px 22px; color: var(--ink-2); }

/* cta */
.cta { background: linear-gradient(160deg, var(--navy-2), var(--navy-3)); color: #fff; padding: 64px 0; }
.cta__tel { margin-top: 22px; }
.cta__tel a { font: 600 clamp(32px, 8vw, 48px)/1.1 var(--sans); color: var(--gold); text-decoration: none; }
.cta__btns { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 999px; font: 500 16px/1 var(--sans); text-decoration: none; transition: transform .15s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); color: #231a05; }
.btn--gold:hover { background: #ffc447; }
.btn--ghost { border: 2px solid rgba(255,255,255,.5); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.12); }

/* visit */
.visit { display: grid; gap: 28px; }
.visit dl { margin-top: 24px; display: grid; grid-template-columns: 5em 1fr; gap: 10px 16px; }
.visit dt { font-weight: 500; color: var(--navy-3); font-size: 14px; padding-top: 2px; }
.tel { font: 600 22px/1.3 var(--sans); color: var(--navy); text-decoration: none; }
.links { margin-top: 22px; display: flex; gap: 22px; flex-wrap: wrap; }
.map iframe { width: 100%; height: 320px; border: 0; border-radius: var(--radius); background: var(--line); }

/* footer */
.foot { background: var(--navy-2); color: #b9cbe8; padding: 36px 0 110px; font-size: 13.5px; line-height: 1.8; }
.foot a { text-decoration: none; }
.foot strong { color: #fff; }
.foot__small { margin-top: 8px; color: #8aa3c8; }

/* floating buttons */
.fab { position: fixed; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 60; display: grid; gap: 8px; }
.fab a { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 999px; font: 500 14.5px/1 var(--sans); text-decoration: none; box-shadow: 0 8px 20px rgba(10, 42, 84, .3); }
.fab__tel { background: var(--navy); color: #fff; }
.fab__map { background: var(--gold); color: #231a05; }

@media (min-width: 760px) {
  :root { --gut: 32px; }
  .pc { display: inline; }
  .hero { padding: 88px 0 150px; }
  .strip { margin-top: -110px; gap: 20px; }
  .strip img { aspect-ratio: 4 / 3; border-width: 6px; }
  .sec { padding: 96px 0; }
  .cards3 { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .worries { grid-template-columns: repeat(2, 1fr); }
  .flow li { padding: 24px 28px; }
  .director { grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .checks { grid-template-columns: repeat(2, 1fr); }
  .faq { grid-template-columns: 1fr 2fr; gap: 64px; }
  .cta { padding: 96px 0; }
  .visit { grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: center; }
  .map iframe { height: 380px; }
  .foot { padding-bottom: 48px; }
}
@media (min-width: 1000px) {
  .nav { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ===================== v3: 멀티페이지 확장 ===================== */
.logo { width: 38px; height: 38px; flex: none; }
.brand__mark { display: none; }
.top { transition: box-shadow .2s; }
.top.is-scrolled { box-shadow: 0 6px 24px rgba(10, 42, 84, .10); }
.nav a[aria-current="page"] { color: var(--navy); border-color: var(--gold); font-weight: 500; }
.nav .ext { font-size: .8em; color: var(--ink-2); }

/* 모바일 메뉴 */
.menu { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 10px; border: 0; border-radius: 10px; background: var(--soft); cursor: pointer; }
.menu span { display: block; height: 2px; border-radius: 2px; background: var(--navy); transition: transform .2s, opacity .2s; }
.menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px var(--gut) 18px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px rgba(10, 42, 84, .12); }
.nav.is-open { display: flex; }
.nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
.pill { margin-left: auto; }
@media (max-width: 519px) { .pill { display: none; } .menu { margin-left: auto; } }
@media (min-width: 1180px) {
  .nav { display: flex; position: static; flex-direction: row; gap: 20px; padding: 0; background: none; border: 0; box-shadow: none; margin-left: auto; margin-right: 8px; }
  .nav a { padding: 6px 0; border-bottom: 2px solid transparent; font-size: 14.5px; }
  .pill { margin-left: 0; }
  .menu { display: none; }
}

/* 히어로 버튼 */
.hero__btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__lead { margin-bottom: 0; }

/* 서브 페이지 제목 띠 */
.subhero { background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy) 60%, var(--navy-3) 100%); color: #fff; padding: 44px 0 68px; position: relative; overflow: hidden; }
.subhero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; border: 48px solid rgba(242, 178, 48, .08); pointer-events: none; }
.crumb { display: flex; gap: 8px; font-size: 13px; color: #9fb7da; }
.crumb a { text-decoration: none; }
.crumb a:hover { color: #fff; }
.subhero__kicker { margin-top: 22px; font: 500 13px/1 var(--sans); letter-spacing: .14em; color: var(--gold); }
.subhero h1 { margin-top: 12px; font-size: clamp(30px, 6.4vw, 46px); font-weight: 600; }
.subhero__lead { margin-top: 14px; max-width: 36em; color: #cfdcf2; }

/* 페이지 내 이동 버튼 */
.pills { position: relative; z-index: 3; margin-top: -26px; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pills a { flex: none; padding: 11px 20px; border-radius: 999px; background: var(--navy); color: #fff; font: 500 14px/1 var(--sans); text-decoration: none; box-shadow: 0 6px 16px rgba(10, 42, 84, .22); transition: background .15s; }
.pills a:hover { background: var(--navy-3); }

/* 카드 링크 */
a.card { display: block; text-decoration: none; transition: transform .2s, box-shadow .2s; }
a.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10, 42, 84, .14); }
.card__meta { display: block; }

/* 특징 카드 */
.features { margin-top: 32px; display: grid; gap: 16px; }
.fcard { padding: 28px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.fcard__ico { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: var(--navy); color: var(--gold); flex: none; }
.fcard__ico svg { width: 26px; height: 26px; }
.fcard h3 { margin-top: 18px; font-size: 19px; font-weight: 500; }
.fcard p { margin-top: 8px; font-size: 15px; color: var(--ink-2); }

/* 더 보기 링크 */
.more { margin-top: 28px; }
.more__link { display: inline-block; font-weight: 500; color: #fff; text-decoration: none; padding-bottom: 3px; border-bottom: 2px solid var(--gold); }
.more__link--dark { color: var(--navy); }
.more__link:hover { color: var(--gold-2); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-3); }

/* 교습비 카드 */
.cards3--fee { margin-top: 28px; }
.feecard { display: block; padding: 28px 26px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; }
.feecard span { font: 500 13px/1 var(--sans); color: var(--navy-3); letter-spacing: .06em; }
.feecard b { display: block; margin-top: 14px; font: 600 28px/1.2 var(--sans); color: var(--navy); }
.feecard small { font: 500 14px/1 var(--sans); margin-left: 4px; color: var(--ink-2); }
.feecard p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.feecard--main { background: var(--navy); border-color: var(--navy); }
.feecard--main span { color: var(--gold); }
.feecard--main b { color: #fff; }
.feecard--main small, .feecard--main p { color: #cfdcf2; }
.feecard--link { transition: transform .2s, box-shadow .2s; }
.feecard--link:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(10, 42, 84, .14); }

/* 원장 페이지 */
.teacher { display: grid; gap: 32px; align-items: start; }
.teacher__photo img { width: 100%; max-width: 420px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius); box-shadow: 10px 10px 0 var(--gold); }
.name { font-size: clamp(40px, 9vw, 64px) !important; }
.pull { margin-top: 18px; font: 600 clamp(22px, 5vw, 34px)/1.5 var(--sans); max-width: 22em; }
.pull__sub { margin-top: 22px; max-width: 40em; color: #cfdcf2; }
.stats--row { margin-top: 28px; }
.schools { margin-top: 18px; font: 500 clamp(16px, 3.4vw, 20px)/2 var(--sans); color: var(--navy); max-width: 40em; }

/* 입학 */
.steps4 { margin-top: 32px; display: grid; gap: 14px; counter-reset: none; }
.steps4 li { padding: 24px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.steps4 b { font: 600 34px/1 var(--sans); color: var(--gold-2); }
.steps4 h3 { margin-top: 12px; font-size: 18px; }
.steps4 p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }
.infobox { margin-top: 28px; display: grid; grid-template-columns: 7.5em 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.infobox dt, .infobox dd { padding: 15px 18px; border-bottom: 1px solid var(--line); margin: 0; }
.infobox dt { background: var(--soft); font-weight: 500; color: var(--navy); }
.infobox dt:last-of-type, .infobox dd:last-of-type { border-bottom: 0; }

/* 갤러리(큰) */
.gallery--big { margin-top: 0; }
.gallery--big figure { position: relative; }
.gallery--big figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 16px 12px; background: linear-gradient(transparent, rgba(10, 42, 84, .78)); color: #fff; font: 500 14px/1.4 var(--sans); }

/* 오시는 길 */
.infocards { display: grid; gap: 14px; }
.icard { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--soft); }
.icard h3 { font-size: 17px; }
.icard p { margin-top: 4px; font-size: 15px; color: var(--ink-2); }
.icard b { color: var(--navy); margin-right: 6px; }
.visit .links { margin-top: 22px; }

/* 하단 상담 패널 */
.sec--tight { padding: 28px 0 72px; }
.ctapanel { display: grid; gap: 24px; padding: 36px 28px; border-radius: 24px; background: linear-gradient(150deg, var(--navy-2), var(--navy-3)); color: #fff; }
.ctapanel h2 { color: #fff; font-size: clamp(22px, 4.8vw, 32px); max-width: 16em; }
.ctapanel__sub { margin-top: 10px; color: #cfdcf2; }
.ctapanel__tel { display: block; font: 600 clamp(30px, 7vw, 42px)/1.1 var(--sans); color: var(--gold); text-decoration: none; }
.ctapanel__btns { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }

/* 푸터 */
.foot { padding: 56px 0 96px; font-size: 14px; }
.foot__grid { display: grid; gap: 32px; }
.foot__h { font: 500 13px/1 var(--sans); letter-spacing: .1em; color: var(--gold); margin-bottom: 14px; }
.foot ul { display: grid; gap: 8px; }
.foot a:hover { color: #fff; }
.foot__desc { margin-top: 14px; color: #9fb7da; }
.brand--foot .brand__ko { color: #fff; }
.brand--foot .brand__en { color: #8aa3c8; }
.foot__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 6px; color: #8aa3c8; font-size: 13px; }
.more .btn { margin-top: 0; }

/* 스크롤 등장 (JS 켜졌을 때만) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (min-width: 760px) {
  .subhero { padding: 64px 0 88px; }
  .features { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .teacher { grid-template-columns: 380px 1fr; gap: 64px; }
  .stats--row { grid-template-columns: repeat(3, 1fr); }
  .steps4 { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .gallery--big { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .gallery--big .tall { grid-row: span 2; }
  .gallery--big .tall img { aspect-ratio: auto; height: 100%; }
  .ctapanel { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 52px 48px; gap: 40px; }
  .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
  .foot__bottom { grid-template-columns: 1fr auto; }
  .cards3--fee { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================== v3.1: 수업 과정 · 학습관리 · 시간표 ===================== */
.proc { margin-top: 32px; display: grid; gap: 14px; }
.proc li { padding: 24px 22px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); position: relative; }
.proc b { display: inline-block; font: 600 30px/1 var(--sans); color: var(--gold-2); }
.proc h3 { margin-top: 10px; font-size: 18px; }
.proc p { margin-top: 6px; font-size: 14.5px; color: var(--ink-2); }

.weekly { margin-top: 24px; padding: 16px 20px; border-left: 5px solid var(--gold); background: #fffaf0; color: var(--navy); }
.mgmt { margin-top: 20px; display: grid; gap: 14px; }
.mcard { padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.mcard__no { font: 500 12px/1 var(--sans); letter-spacing: .14em; color: var(--navy-3); }
.mcard h3 { margin-top: 12px; font-size: 19px; }
.mcard ul { margin-top: 14px; display: grid; gap: 10px; }
.mcard li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); }
.mcard li::before { content: ""; position: absolute; left: 0; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--gold); }

.cycle { margin-top: 32px; display: grid; gap: 12px; }
.cycle li { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: var(--radius); background: var(--navy); color: #fff; font-weight: 500; }
.cycle b { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #231a05; display: grid; place-items: center; font: 600 17px/1 var(--sans); }
.cycle__note { margin-top: 18px; padding: 16px 20px; border-radius: 12px; background: var(--soft); color: var(--navy); font-weight: 500; }

.tt { min-width: 520px; text-align: center; }
.tt caption { padding: 14px 16px; text-align: left; font-weight: 500; color: var(--navy); background: var(--soft); border-bottom: 1px solid var(--line); }
.tt th, .tt td { text-align: center; }
.tt tbody th { background: #fff; }
.ab { display: inline-block; min-width: 34px; padding: 5px 0; border-radius: 8px; font: 600 14px/1 var(--sans); }
.ab--a { background: var(--navy); color: #fff; }
.ab--b { background: var(--gold); color: #231a05; }
.legend { margin-top: 18px; display: grid; gap: 10px; }
.legend li { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-2); }

.vcards { margin-top: 28px; display: grid; gap: 12px; }
.vcard { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.vcard:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(10, 42, 84, .12); }
.vcard__play { grid-row: span 2; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 14px; padding-left: 3px; }
.vcard span:nth-child(2) { font-weight: 500; color: var(--navy); }
.vcard small { color: var(--ink-2); font-size: 13px; }

@media (min-width: 760px) {
  .proc { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .mgmt { grid-template-columns: 1fr 1.4fr 1fr; gap: 16px; align-items: start; }
  .cycle { grid-template-columns: repeat(5, 1fr); gap: 0; }
  .cycle li { flex-direction: column; align-items: flex-start; justify-content: flex-start; min-height: 148px; border-radius: 0; position: relative; }
  .cycle li:first-child { border-radius: var(--radius) 0 0 var(--radius); }
  .cycle li:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
  .cycle li + li { border-left: 1px solid rgba(255, 255, 255, .18); }
  .vcards { grid-template-columns: repeat(2, 1fr); }
}

/* 글자 로고 (학교안심 산뜻돋움 윤곽) */
.wordmark { display: block; width: 154px; height: 40px; }
.brand--foot .wordmark { width: 170px; height: 44px; }
@media (max-width: 400px) { .wordmark { width: 138px; height: 36px; } }

/* ===================== v3.2: 리뷰 반영 ===================== */
/* 첫 화면 사진: 모바일은 큰 사진 1장 + 작은 2장 */
.strip { grid-template-columns: 1fr 1fr; }
.strip img:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
.strip img:not(:first-child) { aspect-ratio: 1 / 1; }
@media (min-width: 760px) {
  .strip { grid-template-columns: repeat(3, 1fr); }
  .strip img:first-child { grid-column: auto; aspect-ratio: 4 / 3; }
  .strip img:not(:first-child) { aspect-ratio: 4 / 3; }
}

/* 수업 흐름 한 줄 */
.flowline { margin-top: 32px; display: grid; }
.flowline li { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 0; font-weight: 500; color: var(--navy); }
.flowline li::before { content: ""; position: absolute; left: 20px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.flowline li:first-child::before { top: 50%; }
.flowline li:last-child::before { bottom: 50%; }
.flowline b { position: relative; z-index: 1; flex: none; width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 2px solid var(--navy); display: grid; place-items: center; font: 600 14px/1 var(--sans); color: var(--navy); }
.flowline .is-key b { background: var(--gold); border-color: var(--gold); color: #231a05; }
.flowline .is-key span { color: var(--navy); }
@media (min-width: 760px) {
  .flowline { grid-template-columns: repeat(6, 1fr); }
  .flowline li { flex-direction: column; text-align: center; gap: 12px; padding: 0 6px; }
  .flowline li::before { left: 0; right: 0; top: 21px; bottom: auto; width: auto; height: 2px; }
  .flowline li:first-child::before { left: 50%; top: 21px; }
  .flowline li:last-child::before { right: 50%; bottom: auto; top: 21px; }
}

/* 모바일: 고정 버튼 1개 */
@media (max-width: 759px) {
  .fab a.fab__map { display: none; }
  .fab a { min-height: 44px; padding: 0 18px; font-size: 14px; }
  .foot { padding-bottom: 88px; }
}

/* 모바일: 교습비표·비교표를 카드형으로 */
@media (max-width: 640px) {
  .tablewrap:has(.fee), .tablewrap:has(.cmp) { overflow: visible; border: 0; background: none; border-radius: 0; }
  .fee, .cmp { min-width: 0 !important; display: block; }
  .fee thead, .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fee tbody, .cmp tbody { display: grid; gap: 10px; }
  .fee tr, .cmp tr { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
  .fee th, .fee td, .cmp th, .cmp td { border: 0; padding: 0; text-align: left; }
  .fee tbody th { grid-column: 1; grid-row: 1; font-size: 17px; color: var(--navy); }
  .fee td:nth-child(5) { grid-column: 2; grid-row: 1; text-align: right; font-size: 18px; }
  .fee td:nth-child(2), .fee td:nth-child(3), .fee td:nth-child(4) { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 14px; font-weight: 400; color: var(--ink-2); }
  .fee td:nth-child(2):first-of-type { margin-top: 10px; }
  .fee td::before { content: attr(data-label); }
  .fee td:nth-child(5)::before { content: none; }
  .fee .sep th, .fee .sep td { border-top: 0; }
  .fee tr.sep { margin-top: 14px; border-top: 3px solid var(--navy); }
  .cmp tr { grid-template-columns: 1fr; }
  .cmp tbody th { margin-bottom: 8px; font-size: 16px; color: var(--navy); }
  .cmp td { display: flex; gap: 10px; padding: 6px 0; font-size: 14.5px; }
  .cmp td::before { content: attr(data-label); flex: none; width: 7em; font-size: 13px; font-weight: 500; color: var(--ink-2); }
  .cmp td.us { margin-top: 4px; padding: 9px 12px; border-radius: 8px; background: #eef4fd; }
  .cmp td.us::before { color: var(--navy); }

  /* 시간표: 모바일 폭에 맞춰 줄이기 */
  .tt { min-width: 0; font-size: 14px; }
  .tt th, .tt td { padding: 10px 2px; }
  .tt .ab { min-width: 28px; padding: 5px 0; font-size: 13px; }
}

/* ===================== v3.3: 정규 수업 교습비 (조용하게) ===================== */
.pricecards { margin-top: 28px; display: grid; gap: 14px; }
.pcard { padding: 26px 24px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.pcard__tag { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--soft); color: var(--navy); font: 500 13px/1.5 var(--sans); }
.pcard h3 { margin-top: 14px; font-size: 20px; }
.pcard ul { margin-top: 16px; }
.pcard li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.pcard li b { color: var(--navy); font-weight: 500; }
.pcard li:last-child b { font-size: 17px; }
.pcard--main { background: var(--navy); border-color: var(--navy); }
.pcard--main .pcard__tag { background: var(--gold); color: #231a05; }
.pcard--main h3 { color: #fff; }
.pcard--main li { border-color: rgba(255, 255, 255, .18); color: #cfdcf2; }
.pcard--main li b { color: #fff; }

.allfees { margin-top: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.allfees summary { cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 500; color: var(--navy); position: relative; min-height: 56px; }
.allfees summary::-webkit-details-marker { display: none; }
.allfees summary small { font-weight: 400; color: var(--ink-2); }
.allfees summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 400 26px/1 var(--sans); color: var(--navy-3); transition: transform .2s; }
.allfees[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.allfees .sub { margin: 0 22px; font-size: 14px; }
.allfees .tablewrap { margin: 16px 22px 22px; }
.fee tr.main th, .fee tr.main td { background: #eef4fd; }
@media (max-width: 640px) {
  .allfees .tablewrap { margin: 14px 12px 14px; }
  .fee tr.main { background: #eef4fd; border-color: var(--navy-3); }
}
@media (min-width: 760px) { .pricecards { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

/* ===================== v3.4: 원장 프로필 · 수업 사진 ===================== */
.director__avatar { display: block; width: 96px; height: 96px; margin-bottom: 18px; border-radius: 50%; object-fit: cover; object-position: center 16%; border: 3px solid #fff; box-shadow: 0 8px 22px rgba(10, 42, 84, .2); background: var(--soft); }
.teacher__photo img { object-position: center 12%; background: #eef1f6; }
.wide { margin: 28px 0 0; }
.wide img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 14px 34px rgba(10, 42, 84, .16); }
.wide figcaption { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
@media (min-width: 760px) {
  .wide img { aspect-ratio: 16 / 9; object-position: center 40%; }
  .director__avatar { width: 112px; height: 112px; }
}

/* 수업 사진: 칠판·학생이 함께 보이도록 세로 위치 조정 */
.strip img:first-child { object-position: center 58%; }
.wide img[src*="class-lesson"] { object-position: center 56%; }

.strip__note { margin-top: 10px; font-size: 12.5px; color: var(--ink-2); text-align: right; }

/* ===================== v3.5: 글씨 굵기 낮춤 (눈 피로 완화) ===================== */
body { font-weight: 400; }
h1, h2 { font-weight: 600; }
h3, h4 { font-weight: 500; }
strong, b, th, summary, dt { font-weight: 500; }

.results__note { margin-top: 18px; max-width: 42em; font-size: 13.5px; line-height: 1.7; color: #cfdcf2; }
