/* 더채움 수학학원 — 밝은 민트 · 옐로, 둥글고 친근한 콘셉트 */
:root {
  --brand: #14a37f; --brand-ink: #fff;
  --bg: #ffffff; --tint: #f2faf7; --card: #fff; --line: #dfe9e5; --soft: #e5f6f0;
  --ink: #17262b; --sub: #5f7178; --radius: 16px; --yellow: #ffd43b; --field: #fff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: 'Pretendard Variable', system-ui, sans-serif; line-height: 1.65; word-break: keep-all; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--brand); color: #fff; padding: 8px 12px; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--sub); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 20px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 15px; text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn--brand { background: var(--brand); color: #fff; box-shadow: 0 8px 18px rgba(20,163,127,.28); }
.btn--soft { background: var(--soft); color: #0e7a5f; }
.btn--lg { padding: 16px 28px; font-size: 16.5px; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.ribbon { background: var(--yellow); font-size: 14px; }
.ribbon__in { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.ribbon b { background: var(--ink); color: var(--yellow); font-size: 11px; padding: 2px 8px; border-radius: 99px; }
.ribbon span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 600; }
.ribbon a { text-decoration: none; font-weight: 700; white-space: nowrap; }
.head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.95); backdrop-filter: blur(8px); transition: box-shadow .2s; }
.head.is-scrolled { box-shadow: 0 4px 20px rgba(23,38,43,.07); }
.head__in { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; margin: 0; }
.logo__blob { width: 42px; height: 42px; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; font-size: 19px; border-radius: 46% 54% 42% 58% / 55% 45% 55% 45%; }
.logo > span:last-child { font-weight: 800; font-size: 21px; line-height: 1.05; letter-spacing: -.03em; }
.logo small { display: block; font-size: 12px; font-weight: 600; color: var(--sub); letter-spacing: .02em; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 14px; border-radius: 99px; text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover { background: var(--soft); color: #0e7a5f; }
.burger { display: none; width: 44px; height: 44px; background: var(--soft); border: 0; border-radius: 12px; padding: 12px 11px; cursor: pointer; }
.burger i { display: block; height: 2px; background: var(--ink); margin: 4px 0; border-radius: 2px; }

/* hero */
.hero { background: radial-gradient(circle at 80% 20%, #fff6cf 0, transparent 40%), linear-gradient(180deg, #eaf8f3, #fff); padding: 50px 0 60px; overflow: hidden; }
.hero__in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero__tag { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 99px; background: #fff; border: 1.5px solid var(--line); font-weight: 600; font-size: 14px; color: #0e7a5f; }
.hero h1 { margin: 0; font-size: clamp(38px, 5.2vw, 64px); line-height: 1.2; letter-spacing: -.04em; font-weight: 800; }
.hero mark { background: linear-gradient(transparent 58%, var(--yellow) 58%); color: inherit; padding: 0 4px; }
.hero__lead { margin: 22px 0 30px; font-size: 17.5px; color: #3c5058; max-width: 500px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__today { margin: 18px 0 0; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; background: #fff; border-radius: 12px; font-weight: 600; font-size: 14px; box-shadow: 0 4px 14px rgba(0,0,0,.05); }
.hero__today::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #ff7a45; }
.hero__art { position: relative; }
.blob { border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%; overflow: hidden; aspect-ratio: 1.05; box-shadow: 0 30px 60px rgba(20,163,127,.2); border: 8px solid #fff; }
.blob img { width: 100%; height: 100%; object-fit: cover; }
.float { position: absolute; display: flex; align-items: center; gap: 10px; background: #fff; padding: 12px 16px; border-radius: 16px; box-shadow: 0 14px 30px rgba(23,38,43,.12); animation: bob 4s ease-in-out infinite; }
.float span { font-size: 24px; }
.float small { display: block; color: var(--sub); font-size: 12px; }
.float b { font-size: 17px; }
.float--a { left: -20px; bottom: 60px; }
.float--b { right: -10px; top: 30px; animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }
.doodle { position: absolute; right: 10px; bottom: -20px; width: 140px; color: #c6e8dd; }
.highlights { list-style: none; padding: 0; margin: 50px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.highlights li { background: #fff; border-radius: 20px; padding: 20px 22px; box-shadow: 0 6px 20px rgba(23,38,43,.06); }
.highlights b { font-size: 34px; font-weight: 800; color: var(--brand); letter-spacing: -.03em; }
.highlights small { font-size: 16px; margin-left: 2px; }
.highlights span { display: block; color: var(--sub); font-size: 14px; }

/* sections */
.sec { padding: clamp(70px, 9vw, 110px) 0; }
.sec--tint { background: var(--tint); }
.sec__head { margin-bottom: 34px; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.sec h2 { margin: 12px 0 8px; font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -.035em; line-height: 1.25; }
.sec__head p { margin: 0; color: var(--sub); font-size: 16px; }
.sec__head a { color: var(--brand); font-weight: 700; }
[data-reveal] { opacity: 0; transform: translateY(20px) scale(.98); transition: opacity .6s, transform .6s; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* timetable */
.ltabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.ltabs button { padding: 12px 22px; border-radius: 16px; border: 2px solid var(--line); background: #fff; font: inherit; cursor: pointer; text-align: left; }
.ltabs b { display: block; font-size: 16px; }
.ltabs small { color: var(--sub); font-size: 12.5px; }
.ltabs [aria-selected=true] { border-color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.tt-wrap { overflow-x: auto; border-radius: 20px; border: 1.5px solid var(--line); background: #fff; }
.tt { display: grid; grid-template-columns: 64px repeat(6, minmax(110px, 1fr)); min-width: 760px; position: relative; }
.tt__corner, .tt__day { grid-row: 1; padding: 12px 8px; text-align: center; font-weight: 700; background: #f7fbfa; border-bottom: 1.5px solid var(--line); }
.tt__corner { grid-column: 1; }
.tt__time { grid-column: 1; font-size: 12px; color: var(--sub); text-align: right; padding: 0 8px; transform: translateY(-8px); }
.tt__cell { border-top: 1px solid #eef3f1; border-left: 1px solid #eef3f1; }

.tt__cls { margin: 2px 3px; border: 0; border-radius: 12px; padding: 6px 9px; text-align: left; background: color-mix(in srgb, var(--c) 16%, #fff); border-left: 4px solid var(--c); font: inherit; cursor: pointer; overflow: hidden; z-index: 1; transition: transform .15s; }
.tt__cls:hover { transform: scale(1.02); }
.tt__cls b { display: block; font-size: 13px; line-height: 1.3; }
.tt__cls small { font-size: 11.5px; color: var(--sub); }
.tt__cls[aria-pressed=true] { background: var(--c); color: #fff; }
.tt__cls[aria-pressed=true] small { color: rgba(255,255,255,.85); }
.classes { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin-top: 18px; }
.cls { border: 1.5px solid var(--line); border-radius: 18px; padding: 18px; background: #fff; }
.cls__top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.cls__top b { font-size: 16.5px; }
.cls p { margin: 6px 0 12px; color: var(--sub); font-size: 13.5px; }
.badge { flex: none; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: #0e7a5f; font-size: 12px; font-weight: 700; }
.badge--hot { background: #fff1e8; color: #e0561c; }
.badge--full { background: #f1f2f4; color: #6b7280; }
.seat { height: 8px; border-radius: 99px; background: #eef3f1; overflow: hidden; }
.seat i { display: block; height: 100%; background: var(--c); border-radius: 99px; }
.cls__bot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-weight: 700; }
.cls__bot button { border: 0; border-radius: 99px; padding: 7px 13px; background: var(--soft); color: #0e7a5f; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cls__bot button[aria-pressed=true] { background: var(--brand); color: #fff; }

/* fee */
.fee { display: grid; grid-template-columns: 1.6fr 1fr; gap: 26px; align-items: start; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: 20px; border: 1.5px solid var(--line); }
.fee__table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.fee__table th { text-align: left; padding: 12px 14px; color: var(--sub); font-size: 13px; font-weight: 600; border-bottom: 1.5px solid var(--line); }
.fee__table td { padding: 11px 14px; border-bottom: 1px solid #eef3f1; }
.fee__table .r { text-align: right; }
.fee__table small { color: var(--sub); }
.fee__table input { width: 18px; height: 18px; accent-color: var(--brand); }
.fee__table .grp td { background: #f7fbfa; font-weight: 800; border-left: 4px solid var(--c); }
.fee__table .etc td { color: var(--sub); }
.calc { position: sticky; top: 90px; background: var(--ink); color: #fff; border-radius: 24px; padding: 24px; }
.calc__t { margin: 0 0 14px; font-weight: 800; font-size: 18px; }
.calc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; }
.calc li { display: flex; justify-content: space-between; gap: 10px; }
.calc .muted { color: #9fb1b7; }
.calc .disc { color: var(--yellow); }
.calc__opt { display: flex; gap: 8px; align-items: center; margin: 16px 0; font-size: 14px; color: #cfdcdf; }
.calc__opt input { width: 18px; height: 18px; accent-color: var(--brand); }
.calc__sum { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed #3b4d53; padding-top: 14px; margin-bottom: 16px; }
.calc__sum span { color: #9fb1b7; font-size: 14px; }
.calc__sum b { font-size: 26px; color: var(--yellow); }

/* system */
.system { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.cycle { list-style: none; margin: 0; padding: 0; counter-reset: c; display: grid; gap: 10px; }
.cycle li { counter-increment: c; display: grid; grid-template-columns: 46px 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--tint); }
.cycle li::before { content: counter(c); grid-row: span 2; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; font-size: 18px; }
.cycle li:nth-child(3)::before { background: #ff7a45; }
.cycle li:nth-child(5)::before { background: #3d6bff; }
.cycle b { font-size: 16.5px; }
.cycle span { color: var(--sub); font-size: 14px; }
.report { background: #fff; border-radius: 24px; padding: 24px; box-shadow: 0 24px 50px rgba(23,38,43,.12); border: 1.5px solid var(--line); transform: rotate(1.2deg); }
.report__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.report__head small { display: block; color: var(--sub); font-size: 12.5px; }
.report__head b { font-size: 18px; }
.report__badge { background: var(--soft); color: #0e7a5f; font-weight: 700; font-size: 12.5px; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.report__chart svg { width: 100%; }
.report__chart .g { stroke: #eef3f1; }
.report__chart text { font-size: 9px; fill: var(--sub); }
.report__chart .v { text-anchor: middle; font-weight: 700; fill: var(--ink); font-size: 10px; }
.report__chart polyline { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linejoin: round; }
.report__chart circle { fill: #fff; stroke: var(--brand); stroke-width: 2.5; }
.report__wk { display: flex; justify-content: space-around; padding-left: 20px; font-size: 11.5px; color: var(--sub); margin-bottom: 12px; }
.report__row { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px dashed var(--line); font-size: 14.5px; }
.report__row em { color: var(--brand); font-style: normal; font-size: 12.5px; }
.report__memo { margin: 12px 0 0; padding: 12px 14px; border-radius: 14px; background: #fff9db; font-size: 13.5px; }

/* teachers */
.teachers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.tch { background: #fff; border-radius: 22px; padding: 24px 22px; text-align: center; border: 1.5px solid var(--line); }
.tch__av { width: 84px; height: 84px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, #fff); color: var(--c); font-size: 34px; font-weight: 800; border: 3px solid #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 30%, #fff); }
.tch__role { margin: 0; color: var(--brand); font-weight: 700; font-size: 13px; }
.tch h3 { margin: 2px 0 6px; font-size: 21px; }
.tch h3 small { font-size: 14px; color: var(--sub); font-weight: 500; }
.tch__career { margin: 0 0 14px; color: var(--sub); font-size: 13.5px; }
.tch blockquote { margin: 0; padding: 12px; border-radius: 14px; background: var(--tint); font-size: 14px; font-weight: 600; }

/* results */
.results { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.bars { display: grid; gap: 16px; }
.bar { display: grid; grid-template-columns: 120px 1fr 48px; gap: 12px; align-items: center; }
.bar__s { font-weight: 700; font-size: 14.5px; }
.bar__track { display: grid; gap: 4px; }
.bar__b, .bar__a { display: block; height: 20px; border-radius: 0 10px 10px 0; position: relative; }
.bar__b { background: #d9e3e0; }
.bar__a { background: var(--brand); }
.bar em { position: absolute; right: 8px; top: 0; font-style: normal; font-size: 12px; line-height: 20px; font-weight: 700; color: #fff; }
.bar__b em { color: var(--sub); }
.bar > b { color: #ff7a45; font-size: 17px; }
.bars__lg { display: flex; gap: 8px; align-items: center; color: var(--sub); font-size: 13px; }
.bars__lg i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.admit { background: var(--ink); color: #fff; border-radius: 24px; padding: 26px; overflow: hidden; }
.admit h3 { margin: 0 0 14px; font-size: 20px; }
.admit ul { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.admit li { background: rgba(255,255,255,.1); padding: 7px 12px; border-radius: 99px; font-size: 14px; font-weight: 600; }
.admit figure { margin: 0 -26px -26px; }
.admit img { aspect-ratio: 16 / 8; object-fit: cover; width: 100%; }

/* notice + faq */
.nf { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.nf__t { font-size: 24px !important; margin: 0 0 16px !important; }
.notices { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 20px; border: 1.5px solid var(--line); }
.notices li { display: flex; gap: 10px; align-items: center; padding: 16px 18px; border-bottom: 1px solid #eef3f1; }
.notices li:last-child { border: 0; }
.notices .tag { flex: none; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: var(--soft); color: #0e7a5f; }
.notices b { flex: 1; font-size: 15px; font-weight: 600; }
.notices time { color: var(--sub); font-size: 13px; white-space: nowrap; }
.faq details { background: #fff; border-radius: 16px; border: 1.5px solid var(--line); margin-bottom: 8px; padding: 0 18px; }
.faq summary { padding: 15px 0; cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; color: var(--brand); font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 16px; color: var(--sub); }

/* apply + visit */
.apply { max-width: 860px; }
#lead-form .lead__form, #lead-form .lead__done { border-radius: 24px; border-width: 1.5px; }
#lead-form .lead__kinds button { border-radius: 18px; }
#lead-form .lead__submit { border-radius: 999px; }
.visit { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; }
.visit__addr { font-size: 19px; font-weight: 700; margin: 0 0 4px; }
.visit__btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hours-card { background: #fff; border-radius: 22px; padding: 22px 24px; border: 1.5px solid var(--line); }
.hours-card h3 { margin: 0 0 10px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 18px; }
.open { font-size: 12.5px; padding: 3px 10px; border-radius: 99px; background: #f1f2f4; color: var(--sub); font-weight: 600; }
.open.is-open { background: var(--soft); color: #0e7a5f; }
.hours-card ul { list-style: none; margin: 0; padding: 0; }
.hours-card li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.hours-card li.is-today { color: var(--brand); font-weight: 700; }
.hours-card li.note { display: block; border: 0; color: var(--sub); font-size: 13px; }

.foot { background: var(--ink); color: #9fb1b7; padding: 50px 0 100px; font-size: 13.5px; }
.foot .logo > span:last-child { color: #fff; }
.foot a { color: #dbe6e9; }
.foot__notice { border: 1px dashed #3b4d53; border-radius: 12px; padding: 12px 14px; }
.foot__links, .foot__samples { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot__samples span { display: contents; }
.foot__samples a { color: #6ee0bf; }
.mbar { display: none; }

@media (max-width: 1040px) {
  .nav { position: fixed; inset: 106px 12px auto; flex-direction: column; background: #fff; padding: 10px; border-radius: 20px; box-shadow: 0 20px 40px rgba(0,0,0,.12); display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px 14px; font-size: 16px; }
  .burger { display: block; }
  .head__cta { margin-left: auto; }
  .hero__in, .fee, .system, .results, .nf, .visit { grid-template-columns: 1fr; }
  .hero__art { max-width: 520px; margin: 0 auto; }
  .calc { position: static; }
  .teachers { grid-template-columns: repeat(2, 1fr); }
  .report { transform: none; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .head__cta { display: none; }
  .burger { margin-left: auto; }
  .highlights { grid-template-columns: 1fr 1fr; gap: 10px; }
  .highlights b { font-size: 28px; }
  .float--a { left: 0; bottom: 20px; }
  .float--b { right: 0; top: 0; }
  .teachers { grid-template-columns: 1fr; }
  .bar { grid-template-columns: 90px 1fr 40px; }
  .bar__s { font-size: 13px; }
  .notices li { flex-wrap: wrap; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 6px; position: fixed; inset: auto 10px 10px; z-index: 40; background: #fff; padding: 6px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.18); margin-bottom: env(safe-area-inset-bottom); }
  .mbar a { padding: 12px 4px; text-align: center; text-decoration: none; font-weight: 700; font-size: 14px; border-radius: 999px; }
  .mbar__go { background: var(--brand); color: #fff; }
}
