/* 학원 원페이지 · 칠판 초록 + 연필 주황 */
:root { --g: #0e6b47; --gd: #0a4f34; --gl: #e9f5ee; --o: #e45f12; --od: #c24f0c; --ink: #17211c; --mut: #4d5b53; --line: #d5e3da; --paper: #fffdf6; --en: #d7efe2; --en-ink: #0a4f34; --ma: #ffe3d1; --ma-ink: #8a3300; }
* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.6 "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; overflow-x: clip; }
h1, h2, h3, .disp { font-family: "IBM Plex Sans KR", "Noto Sans KR", sans-serif; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; margin: 0; }
h2 { font-size: clamp(28px, 3vw, 34px); }
h3 { font-size: 20px; }
p { margin: 0; }
a { color: var(--g); }
a:hover { color: var(--gd); }
a:focus-visible, button:focus-visible, input:focus-visible, .chip input:focus-visible + span { outline: 3px solid var(--o); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1240px; margin: 0 auto; padding-left: max(5vw, 16px); padding-right: max(5vw, 16px); }
.band { padding-top: 64px; padding-bottom: 64px; }
.band-gray { background: #f6f8f7; }
.band-green { background: var(--g); color: #fff; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.stack-sm { display: flex; flex-direction: column; gap: 12px; }
.stack-xs { display: flex; flex-direction: column; gap: 4px; }
.muted { color: var(--mut); }
.small { font-size: 14px; }
.scroll { overflow-x: auto; }

/* 버튼 */
.btn, .btn2 { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 10px; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn { border: 0; background: var(--o); color: #fff; }
.btn:hover { background: var(--od); color: #fff; }
.btn2 { border: 2px solid var(--g); background: #fff; color: var(--g); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* 머리 */
.site-header { border-bottom: 1px solid var(--line); background: #fff; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; }
.brand-mark { width: 38px; height: 38px; border-radius: 10px; background: var(--g); display: grid; place-items: center; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; padding: 10px 2px; }
.nav a:not(.btn):hover { color: var(--g); }

/* 첫 화면 */
.hero { background: var(--gl); }
.hero-row { display: flex; flex-wrap: wrap; gap: 40px 56px; align-items: center; padding-top: clamp(36px, 5vw, 72px); padding-bottom: clamp(36px, 5vw, 72px); }
.hero-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 22px; }
.hero-text h1 { font-size: clamp(32px, 4.4vw, 52px); }
.hero-pic { flex: 1 1 520px; }
.eyebrow { font-weight: 700; color: var(--g); }
.eyebrow-light { color: #bfe8d2; }
.lead { font-size: 17px; color: var(--mut); max-width: 34em; }
.lead-light { color: #e3f4ea; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; color: var(--mut); }
.facts a { color: var(--mut); }

/* 공책 시간표 */
.notebook { position: relative; padding: 26px 24px 22px 58px; border-radius: 6px 14px 14px 6px; background-color: var(--paper); background-image: repeating-linear-gradient(180deg, transparent 0 33px, #d8e6f3 33px 34px); box-shadow: 0 1px 0 #e4dcc6, 0 18px 40px -18px rgba(10, 60, 40, .45); display: flex; flex-direction: column; gap: 12px; }
.notebook::before { content: ""; position: absolute; left: 40px; top: 0; bottom: 0; width: 2px; background: #f3a3a3; }
.holes { position: absolute; left: 12px; top: 30px; bottom: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.holes i { display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 2px 3px rgba(0, 0, 0, .25); }
.nb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13px; }
.nb-head .disp { font-size: 22px; }
.tt { width: 100%; border-collapse: separate; border-spacing: 6px; table-layout: fixed; font-size: 13px; margin: -6px; width: calc(100% + 12px); }
.tt th { font-weight: 700; color: var(--mut); text-align: center; }
.tt thead th:first-child { width: 52px; }
.tt-t { font-variant-numeric: tabular-nums; vertical-align: top; padding-top: 6px; white-space: nowrap; }
.tt td { padding: 0; }
.cls { border-radius: 8px; padding: 6px 7px; font-weight: 700; line-height: 1.3; min-height: 54px; }
.cls small { display: block; font-weight: 500; font-size: 12px; }
.cls.en { background: var(--en); color: var(--en-ink); }
.cls.ma { background: var(--ma); color: var(--ma-ink); }
.cls.dim { opacity: .7; }

/* 수업 안내 */
.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; }
.tabs { display: flex; gap: 8px; }
.tabs[hidden] { display: none; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.tab.on { background: var(--g); border-color: var(--g); color: #fff; }
.grade-panel { display: flex; flex-direction: column; gap: 14px; }
.grade-panel + .grade-panel { margin-top: 12px; }
.js .grade-title { display: none; }
.grade-title { font-size: 18px; color: var(--mut); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.card-pad { padding: 26px; }
.card-row { flex-direction: row; align-items: center; gap: 16px; }
.pill { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.pill-en { background: var(--en); color: var(--en-ink); }
.pill-ma { background: var(--ma); color: var(--ma-ink); }
.when { font-size: 14px; font-weight: 700; margin-top: auto; }
.avatar { flex: none; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 24px; }

/* 좌우 나눔 */
.split { display: flex; flex-wrap: wrap; gap: 32px 56px; align-items: flex-start; }
.split-center { align-items: center; }
.split-side { flex: 1 1 280px; }
.split-main { flex: 2 1 520px; }

/* 교습비 표 */
table.fee { width: 100%; border-collapse: collapse; font-size: 15px; }
.fee th { text-align: left; font-size: 13px; color: var(--mut); font-weight: 700; padding: 10px 12px; border-bottom: 2px solid var(--ink); }
.fee td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.fee .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee td.n { font-weight: 700; }

/* 안심 등하원 */
.band-green h2 { font-size: clamp(28px, 3.6vw, 42px); }
.light-list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; color: #e3f4ea; }
.phone-wrap { flex: 0 1 300px; display: flex; justify-content: center; margin: 0 auto; }
.ph { width: 280px; max-width: 100%; border-radius: 36px; background: #10161a; padding: 14px; box-shadow: 0 24px 50px -20px rgba(0, 0, 0, .5); }
.ph-in { border-radius: 26px; background: linear-gradient(#2a4b5e, #18303d); padding: 44px 12px 26px; display: flex; flex-direction: column; gap: 10px; min-height: 340px; }
.ph-clock { text-align: center; color: #fff; font-family: "IBM Plex Sans KR", sans-serif; font-size: 46px; font-weight: 500; line-height: 1; }
.ph-date { text-align: center; color: #cfe2ea; font-size: 13px; margin-bottom: 12px; }
.noti { background: rgba(255, 255, 255, .92); border-radius: 16px; padding: 11px 13px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #111; }
.noti b { font-size: 14px; }
.noti span { color: #555; font-size: 12px; }

/* 예약 폼 */
fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
legend, .field label { font-size: 14px; font-weight: 700; color: var(--mut); padding: 0; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; display: inline-flex; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 2px solid var(--line); background: #fff; font-variant-numeric: tabular-nums; }
.chip input:checked + span { border-color: var(--g); background: var(--gl); color: var(--gd); font-weight: 700; }
.chip.is-full { cursor: not-allowed; }
.chip.is-full span { color: #8a958f; background: #f4f6f5; text-decoration: line-through; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 12px; }
.slot-day { display: flex; flex-direction: column; gap: 6px; }
.slot-label { font-weight: 700; font-size: 14px; }
.chip-slot span { width: 100%; justify-content: center; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.field { display: flex; flex-direction: column; }
.field input { font: inherit; font-size: 16px; min-height: 48px; padding: 0 14px; border: 2px solid var(--line); border-radius: 10px; width: 100%; background: #fff; color: var(--ink); }
.hp { position: absolute; left: -9999px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding-top: 16px; }
.form-error { background: #fdecea; color: #8c1d18; border-radius: 10px; padding: 12px 14px; font-weight: 700; }
.done { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.check { width: 52px; height: 52px; border-radius: 50%; background: var(--g); display: grid; place-items: center; }

/* 바닥 */
.site-footer { background: #10241a; color: #c9d8cf; font-size: 14px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; padding-top: 36px; padding-bottom: 36px; }
.footer-name { color: #fff; font-size: 18px; }
.made { color: #8fb3a0; }

/* 관리자 */
.admin-title { font-size: 32px; }
.admin-login { max-width: 360px; }
.is-cancelled td { color: #8a958f; text-decoration: line-through; }

@media (max-width: 600px) {
  .band { padding-top: 44px; padding-bottom: 44px; }
  .notebook { padding-left: 46px; padding-right: 14px; }
  .notebook::before { left: 32px; }
  .holes { left: 8px; }
  .tt { font-size: 11px; border-spacing: 3px; margin: -3px; width: calc(100% + 6px); }
  .tt thead th:first-child { width: 38px; }
  .cls { padding: 4px; min-height: 48px; }
  .cls small { font-size: 11px; }
  table.fee { font-size: 13px; }
  .fee th, .fee td { padding: 8px 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
