/* 김쌤영어수학 첫 화면 · C안 큰 이름 */
:root {
  --navy: #2E2A6B;
  --teal: #1D9E75;
  --green: #0F6E56;
  --gold: #FFD84D;
  --white: #FFFFFF;
  --navy-soft: #EFEEF6;
  --navy-soft-2: #E3E1EF;
  --green-soft: #E7F3EE;
  --ink: #1C1B24;
  --ink-sub: #4A4A55;
  --placeholder: #6E6E7A;
  --gray-card: #F1F1F3;
  --gray-card-2: #E4E4E8;
  --radius: 16px;
  --gutter: 20px;
  --max: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--white);
  color: var(--ink);
  font-family: "Noto Sans KR", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
  padding-bottom: 84px; /* 하단 고정 전화 버튼 자리 */
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; letter-spacing: -0.02em; line-height: 1.3; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.ph { color: var(--placeholder); font-size: 14px; }
.nw { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 버튼·링크 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 24px; border-radius: var(--radius);
  font-size: 17px; font-weight: 700; text-decoration: none; border: 0;
  transition: transform .15s ease, background-color .15s ease;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.98); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #24205A; }
/* 첫 화면 전화 버튼: 연한 모양 (원장님 지시 2026-11-20) */
.btn-call-soft { background: var(--navy-soft-2); color: var(--navy); }
.btn-call-soft:hover { background: #D6D3EA; }

.btn-soft { background: var(--navy-soft); color: var(--navy); }
.btn-soft:hover { background: var(--navy-soft-2); }
.link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 16px; font-weight: 700; color: var(--navy); text-decoration: none;
}
.link::after { content: "→"; font-weight: 500; transition: transform .15s ease; }
.link:hover::after { transform: translateX(3px); }

/* ---------- 맨 위 줄 ---------- */
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.topbar .home { display: flex; align-items: center; min-height: 44px; }
.topbar .home img { width: 44px; height: 44px; }
.topbar nav { display: none; }
.topbar nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  font-size: 15px; font-weight: 500; color: var(--ink-sub); text-decoration: none;
}
.topbar nav a:hover { color: var(--navy); }
.call-mini {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px;
  background: var(--navy); color: var(--white); text-decoration: none;
  font-size: 15px; font-weight: 700;
}
.call-mini svg { width: 18px; height: 18px; }
.call-mini:hover { background: #24205A; }

/* ---------- 큰 이름 ---------- */
.hero { padding-top: 12px; }
.hero .grid { display: grid; gap: 0; }
.wordmark {
  font-size: 64px; font-weight: 900; line-height: 1.02; letter-spacing: -0.045em;
}
.wordmark span { display: block; }
.wordmark .en { color: var(--navy); }
.wordmark .ma { color: var(--green); }
.hero .sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.latin { font-size: 15px; font-weight: 500; color: var(--ink-sub); letter-spacing: 0.01em; }
.affil { display: inline-flex; align-items: center; gap: 6px; }
.affil img { height: 22px; width: auto; }
.affil span { font-size: 15px; font-weight: 700; color: #444; }
.hero .sub .bar { width: 1px; height: 14px; background: #C9C8D3; }

.band { background: var(--gold); margin: 24px calc(-1 * var(--gutter)) 0; padding: 22px var(--gutter) 24px; }
.band .lead { font-size: 19px; font-weight: 700; line-height: 1.5; color: var(--navy); }
.band .btn { margin-top: 18px; width: 100%; }

/* ---------- 공통 구역 ---------- */
.section { padding: 56px 0; }
.section h2 { font-size: 24px; font-weight: 900; color: var(--navy); }
.section .intro { margin-top: 6px; color: var(--ink-sub); }

/* 개강 소식 */
.tabs { display: flex; gap: 8px; margin-top: 18px; }
.tabs button {
  flex: 1; min-height: 48px; border: 0; border-radius: 12px; cursor: pointer;
  font: 700 16px/1 "Noto Sans KR", sans-serif;
  background: var(--navy-soft); color: var(--navy);
  transition: background-color .15s ease;
}
.tabs button:hover { background: var(--navy-soft-2); }
.tabs button[aria-selected="true"] { background: var(--navy); color: var(--white); }
.class-info { margin-top: 18px; }
.class-info h3 { font-size: 20px; font-weight: 900; color: var(--green); }
.class-info dl { display: grid; grid-template-columns: 64px 1fr; gap: 6px 12px; margin-top: 10px; }
.class-info dt { color: var(--ink-sub); font-size: 15px; }
.class-info dd { font-weight: 700; }
.class-info .after { margin-top: 12px; }
.shot { margin-top: 20px; border-radius: var(--radius); overflow: hidden; background: var(--navy-soft); }
.news .ph { margin-top: 12px; }
.news .link { margin-top: 4px; }

/* 과목 입구 */
.subj { background: var(--white); padding-top: 8px; }
.subj .rows { display: grid; gap: 12px; }
.row {
  display: grid; grid-template-columns: 1fr; gap: 14px; align-content: start;
  padding: 24px 20px; border-radius: 20px;
}
.row.en { background: var(--navy-soft); }
.row.ma { background: var(--green-soft); }
.row .big { font-size: 44px; font-weight: 900; letter-spacing: -0.04em; line-height: 1; }
.row.en .big, .row.en h3 { color: var(--navy); }
.row.ma .big, .row.ma h3, .row.ma .link { color: var(--green); }
.row h3 { font-size: 20px; font-weight: 900; }
.row .motto { margin-top: 4px; font-weight: 700; }
.row .affil { margin-top: 10px; padding: 6px 12px 6px 10px; background: var(--white); border-radius: 999px; }
.row .affil img { height: 20px; }
.row .affil span { font-size: 15px; }
.row .desc { margin-top: 10px; }
.row .link { margin-top: 6px; }

/* 수업 시간과 수강료 */
.fees { background: var(--navy-soft); }
.tiers { margin-top: 20px; display: grid; gap: 10px; }
.tier {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  background: var(--white); border-radius: var(--radius); padding: 18px 20px;
}
.tier h3 { font-size: 18px; font-weight: 900; color: var(--navy); }
.tier p { font-size: 15px; color: var(--ink); margin-top: 2px; }
.won { font-size: 36px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; color: var(--navy); }
.won small { font-size: 16px; font-weight: 700; margin-left: 2px; }
.fees .after { margin-top: 16px; color: var(--ink-sub); }

/* 강의 영상 */
.videos {
  display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; margin-top: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px;
  margin-left: calc(-1 * var(--gutter)); margin-right: calc(-1 * var(--gutter));
  padding-left: var(--gutter); padding-right: var(--gutter); scroll-padding: 0 var(--gutter);
}
.video { scroll-snap-align: start; }
.video .thumb {
  aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--gray-card);
  display: grid; place-items: center; color: var(--placeholder);
}
.video .thumb svg { width: 44px; height: 44px; }
.video .thumb span { display: block; font-size: 14px; font-weight: 700; margin-top: 4px; text-align: center; }
.video .vtitle { font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--ink); margin-bottom: 8px; align-self: end; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video .vtitle.ph { font-size: 14px; font-weight: 400; line-height: 1.65; color: var(--placeholder); }
#videos .videos { margin-top: 18px; grid-template-rows: auto auto; row-gap: 0; }
#videos .video { display: grid; grid-row: span 2; grid-template-rows: subgrid; }
#videos .link { margin-top: 8px; }
.thumb.has { position: relative; overflow: hidden; display: block; background: #000; }
.thumb.has img { width: 100%; height: 100%; object-fit: cover; }
.thumb.has .play { position: absolute; inset: 0; display: grid; place-items: center; color: var(--white); background: rgba(0,0,0,.18); }
.thumb.has .play svg { width: 44px; height: 44px; }

/* ---------- 영상 페이지 ---------- */
.vpage { padding-top: 24px; min-height: 60vh; }
.vp-head h1 { font-size: 28px; font-weight: 900; color: var(--navy); }
.vp-head .intro { margin-top: 6px; color: var(--ink-sub); }
.vp-head .back {
  display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 4px;
  font-size: 15px; font-weight: 700; color: var(--navy); text-decoration: none;
}
.cats, .vlist { list-style: none; margin-top: 20px; display: grid; gap: 10px; }
.cats a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  min-height: 64px; padding: 14px 20px; border-radius: var(--radius);
  background: var(--navy-soft); text-decoration: none; transition: background-color .15s ease;
}
.cats a:hover { background: var(--navy-soft-2); }
.cats .name { font-size: 17px; font-weight: 700; color: var(--navy); }
.cats .name.ph { font-size: 15px; font-weight: 400; color: var(--placeholder); }
.cats .count { flex: none; font-size: 14px; font-weight: 500; color: var(--ink-sub); }
.cats .count::after { content: "  →"; white-space: pre; color: var(--navy); }
.vlist li {
  display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: center;
  padding: 12px; border: 1px solid var(--gray-card-2); border-radius: var(--radius);
}
.vlist li.empty { display: block; padding: 20px; color: var(--placeholder); text-align: center; }
.thumb { aspect-ratio: 16 / 9; border-radius: var(--radius); background: var(--gray-card); display: grid; place-items: center; color: var(--placeholder); }
.thumb.sm { border-radius: 10px; }
.thumb.sm svg { width: 28px; height: 28px; }
.thumb.sm span { display: block; font-size: 12px; font-weight: 700; text-align: center; }
.thumb.sm.has .play svg { width: 28px; height: 28px; }
.vlist .meta { min-width: 0; }
.vlist .no { font-size: 13px; font-weight: 700; color: var(--green); }
.vlist h2 { font-size: 16px; font-weight: 700; line-height: 1.45; color: var(--ink); }
.vlist .meta p { margin-top: 2px; font-size: 14px; color: var(--ink-sub); }
.home-link { margin-top: 20px; }

/* 한 줄 질문 */
.qna { background: var(--gray-card); }
.qna-form { margin-top: 18px; display: grid; gap: 8px; }
.qna-form .field { display: grid; gap: 8px; }
.qna-form input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px;
  border: 1px solid #C9C8D3; border-radius: 12px; background: var(--white);
  font: 400 16px "Noto Sans KR", sans-serif; color: var(--ink);
}
.qna-form input::placeholder { color: var(--placeholder); }
.qna-form button {
  min-height: 52px; padding: 0 20px; border: 0; border-radius: 12px;
  background: var(--gray-card-2); color: var(--placeholder);
  font: 700 16px "Noto Sans KR", sans-serif; cursor: not-allowed;
}
.qna-form .note { font-size: 14px; color: var(--ink-sub); }
.posts { margin-top: 20px; display: grid; gap: 8px; list-style: none; }
.posts li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  min-height: 56px; padding: 12px 16px; background: var(--white); border-radius: 12px;
}
.posts .q { color: var(--placeholder); }
.posts .state { flex: none; font-size: 13px; font-weight: 700; color: var(--placeholder); background: var(--gray-card); padding: 4px 10px; border-radius: 999px; }
.qna .link { margin-top: 8px; }

/* 자료실 */
.files .box {
  display: grid; gap: 16px; align-items: center;
  background: var(--green-soft); border-radius: 20px; padding: 28px 20px;
}
.files h2 { color: var(--green); }
.files .btn { background: var(--green); color: var(--white); width: 100%; }
.files .btn:hover { background: #0B5A46; }

/* 오시는 길 */
.visit .cols { display: grid; gap: 24px; margin-top: 18px; }
.visit .addr { font-size: 18px; font-weight: 700; }
.visit .addr span { display: block; font-weight: 400; color: var(--ink-sub); font-size: 16px; }
.visit .hours dt { font-size: 15px; color: var(--ink-sub); }
.visit .hours dd { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.visit .hours dd.ph { font-size: 14px; font-weight: 400; }
.visit .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.visit .actions .btn { padding: 0 12px; }

/* 맨 아래 */
.footer { background: var(--navy-soft); color: var(--ink); padding: 48px 0 40px; }
.footer .name { font-size: 44px; font-weight: 900; letter-spacing: -0.04em; line-height: 1.05; color: var(--navy); }
.footer .name .ma { color: var(--green); }
.footer dl { margin-top: 24px; display: grid; grid-template-columns: 76px 1fr; gap: 8px 12px; font-size: 15px; }
.footer dt { color: var(--ink-sub); }
.footer dd a { text-decoration: none; }
.footer .channels { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer .channels a { text-decoration: underline; text-underline-offset: 3px; color: var(--navy); }
/* 신고번호: 작고 희미한 회색 (원장님 지시 2026-11-20) */
.footer .faint { color: #a9a9b6; font-size: 12px; font-weight: 400; align-self: center; }
.footer small { display: block; margin-top: 28px; font-size: 13px; color: var(--ink-sub); }

/* 하단 고정 전화 버튼 (휴대폰) */
.callbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
}
.callbar a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; border-radius: var(--radius); text-decoration: none;
  background: var(--navy); color: var(--white);
}
.callbar svg { width: 20px; height: 20px; }
.callbar strong { font-size: 17px; font-weight: 900; }
.callbar small { font-size: 15px; font-weight: 700; color: var(--gold); }

/* ---------- 넓은 화면 ---------- */
/* ---------- 하위 페이지 (김쌤영어 · 김쌤수학 · 개강 소식) ---------- */
.subpage { --theme: var(--navy); --theme-soft: var(--navy-soft); }
.subpage.ma { --theme: var(--green); --theme-soft: var(--green-soft); }
.phero { padding-top: 12px; }
.phero .grid { display: grid; }
.pname { font-size: clamp(52px, 17vw, 72px); font-weight: 900; line-height: 1.02; letter-spacing: -0.045em; color: var(--theme); }
.phero .sub { display: flex; align-items: center; margin-top: 14px; }
.subpage.ma .band .lead { color: var(--green); }
.subpage .section h2 { color: var(--theme); }

.cards { display: grid; gap: 10px; margin-top: 20px; }
.card { background: var(--theme-soft); border-radius: var(--radius); padding: 20px; }
.card h3 { font-size: 18px; font-weight: 900; color: var(--theme); }
.card p { margin-top: 4px; }
.card p.ph { margin-top: 6px; }
.card .meta { margin-top: 10px; font-weight: 700; }

.section.tight { padding: 8px 0; }
.note-box { border: 1px solid var(--gray-card-2); border-radius: 20px; padding: 28px 20px; }
.note-box p { margin-top: 8px; font-size: 17px; }

.winter .after { margin-top: 16px; }
.winter .link { margin-top: 4px; color: var(--theme); }

.contact .cols { display: grid; gap: 16px; margin-top: 18px; }
.contact .tel { margin-top: 18px; font-size: 22px; font-weight: 900; color: var(--theme); letter-spacing: -0.01em; }
.contact .hours-1 { color: var(--ink-sub); }
.contact .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 20px; }
.contact .actions .btn { padding: 0 12px; }
.subpage.ma .contact .btn-soft { background: var(--green-soft); color: var(--green); }
.contact .walk { background: var(--theme-soft); border-radius: 20px; padding: 24px 20px; }
.contact .walk h3 { font-size: 20px; font-weight: 900; color: var(--theme); }
.contact .walk .addr { margin-top: 8px; font-size: 18px; font-weight: 700; }
.contact .walk .addr span { display: block; font-size: 16px; font-weight: 400; color: var(--ink-sub); }
.contact .home-link { margin-top: 24px; }
.subpage .home-link { color: var(--theme); }

/* 개강 소식 목록 */
.npage { padding-top: 24px; }
.posts-list { display: grid; gap: 16px; margin-top: 24px; }
.post { --theme: var(--green); --theme-soft: var(--green-soft); border: 1px solid var(--gray-card-2); border-radius: 20px; padding: 12px; }
.post.en { --theme: var(--navy); --theme-soft: var(--navy-soft); }
.post-shot { border-radius: 12px; overflow: hidden; background: var(--theme-soft); }
.post-body { padding: 18px 6px 6px; }
.post-subj { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--theme-soft); color: var(--theme); font-size: 13px; font-weight: 700; }
.post h2 { margin-top: 10px; font-size: 20px; font-weight: 900; color: var(--theme); }
.post-date { margin-top: 4px; font-size: 14px; color: var(--ink-sub); }
.post-date .ph, .post dd .ph { font-weight: 400; }
.post dl { display: grid; grid-template-columns: 76px 1fr; gap: 6px 10px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--gray-card-2); }
.post dt { font-size: 15px; color: var(--ink-sub); }
.post dd { font-weight: 700; }
.post-text { margin-top: 16px; color: var(--ink-sub); }
.post-call { margin-top: 16px; padding: 12px 16px; border-radius: 12px; background: var(--theme-soft); }
.post-call a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 900; color: var(--theme); text-decoration: none; font-size: 17px; }
.post-call p { font-size: 15px; margin-top: -4px; }
.post-empty { padding: 20px; color: var(--placeholder); text-align: center; }

/* 자료실 */
.pw-ask { margin-top: 20px; padding: 20px; border-radius: var(--radius); background: var(--navy-soft); }
.pw-ask p { font-size: 17px; font-weight: 700; color: var(--ink); }
.pw-ask p a { color: var(--navy); text-underline-offset: 3px; white-space: nowrap; }
.pw-ask-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.pw-ask-btns .btn { min-height: 48px; font-size: 16px; padding: 0 12px; }
.pw-ask-btns .btn-soft { background: var(--white); }
.res-list { list-style: none; display: grid; gap: 10px; margin-top: 20px; }
.res { border: 1px solid var(--gray-card-2); border-radius: var(--radius); overflow: hidden; }
.res-head {
  width: 100%; display: grid; grid-template-columns: 40px 1fr 24px; grid-template-areas: "icon meta lock" "icon fmt lock";
  align-items: center; gap: 4px 12px; padding: 14px 16px; min-height: 64px;
  background: var(--white); border: 0; cursor: pointer; text-align: left; font: inherit; color: inherit;
}
.res-head:hover { background: #FAFAFC; }
.res-icon { grid-area: icon; width: 40px; height: 40px; border-radius: 12px; background: var(--navy-soft); color: var(--navy); display: grid; place-items: center; }
.res-icon svg, .res-lock svg { width: 22px; height: 22px; }
.res-meta { grid-area: meta; display: grid; min-width: 0; }
.res-title { font-size: 16px; font-weight: 700; }
.res-subj { font-size: 14px; color: var(--ink-sub); }
.res-title.ph, .res-subj.ph, .res-fmt.ph { font-weight: 400; color: var(--placeholder); font-size: 14px; }
.res-fmt { grid-area: fmt; justify-self: start; font-size: 13px; font-weight: 700; color: var(--navy); background: var(--navy-soft); padding: 2px 10px; border-radius: 999px; }
.res-fmt.ph { background: var(--gray-card); font-size: 13px; }
.res-lock { grid-area: lock; color: var(--ink-sub); display: grid; place-items: center; }
.res-head[aria-expanded="true"] .res-lock { color: var(--navy); }
.res-panel { padding: 4px 16px 16px; border-top: 1px solid var(--gray-card-2); background: #FAFAFC; }
.res-form { display: grid; gap: 8px; padding-top: 12px; }
.res-form label { font-size: 15px; font-weight: 700; }
.res-form .field { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.res-form input { min-width: 0; min-height: 52px; padding: 0 16px; border: 1px solid #C9C8D3; border-radius: 12px; background: var(--white); font: 400 16px "Noto Sans KR", sans-serif; color: var(--ink); }
.res-form input:focus { border-color: var(--navy); }
.res-form button { min-height: 52px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--navy); color: var(--white); font: 700 16px "Noto Sans KR", sans-serif; cursor: pointer; }
.res-msg { font-size: 15px; color: var(--ink-sub); }
.res-msg:empty { display: none; }
.res-empty { padding: 20px; text-align: center; color: var(--placeholder); }
.res-note { margin-top: 12px; }

@media (max-width: 767px) {
  .wordmark { font-size: clamp(56px, 21vw, 96px); }
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
  body { padding-bottom: 0; }
  .callbar { display: none; }
  .topbar nav { display: flex; }
  .topbar .right { display: flex; align-items: center; gap: 8px; }

  .hero { padding-top: 32px; padding-bottom: 8px; }
  .hero .grid { grid-template-columns: 7fr 5fr; gap: 32px; align-items: end; }
  .wordmark { font-size: clamp(88px, 9vw, 120px); }
  .band { margin: 0; padding: 32px; border-radius: 24px; }
  .band .lead { font-size: 21px; }
  .band .btn { width: auto; }

  .section { padding: 88px 0; }
  .section h2 { font-size: 30px; }

  .news .grid { display: grid; grid-template-columns: 1fr minmax(0, 400px); gap: 48px; align-items: center; }
  .news .shot { margin-top: 0; }
  .tabs { max-width: 420px; }

  .subj .rows { grid-template-columns: 1fr 1fr; gap: 16px; }
  .row { grid-template-columns: 1fr; padding: 32px; }
  .row .big { font-size: 56px; }

  .tiers { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .tier { grid-template-columns: 1fr; align-items: start; padding: 24px; min-height: 180px; align-content: space-between; }
  .won { font-size: 48px; }

  .videos { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin-left: 0; margin-right: 0; padding: 0; gap: 16px; }

  #videos .videos { margin-top: 24px; }
  .video .vtitle { font-size: 17px; }

  .vpage { padding-top: 48px; }
  .vp-head h1 { font-size: 36px; }
  .vpage .wrap { max-width: 880px; }
  .cats, .vlist { gap: 12px; margin-top: 28px; }
  .cats a { padding: 18px 24px; }
  .vlist li { grid-template-columns: 240px 1fr; gap: 24px; padding: 16px; }
  .vlist h2 { font-size: 19px; }
  .vlist .no { font-size: 14px; }
  .thumb.sm svg { width: 36px; height: 36px; }
  .thumb.sm span { font-size: 13px; }

  .qna .grid { display: grid; grid-template-columns: 5fr 7fr; gap: 48px; align-items: start; }
  .posts { margin-top: 0; }
  .qna-form .field { grid-template-columns: 1fr auto; }

  .files .box { grid-template-columns: 1fr auto; padding: 40px; }
  .files .btn { width: auto; }

  .visit .cols { grid-template-columns: 1fr 1fr; gap: 48px; }
  .visit .actions { display: flex; grid-template-columns: none; }
  .visit .actions .btn { padding: 0 28px; }

  .footer { padding: 72px 0 48px; }
  .footer .name { font-size: clamp(56px, 7vw, 96px); }
  .footer .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; }
  .footer dl { margin-top: 0; }

  .phero { padding-top: 32px; padding-bottom: 8px; }
  .phero .grid { grid-template-columns: 7fr 5fr; gap: 32px; align-items: end; }
  .pname { font-size: clamp(80px, 8vw, 112px); }
  .cards { gap: 16px; margin-top: 28px; }
  .cards.c2, .cards.c4 { grid-template-columns: 1fr 1fr; }
  .cards.c3 { grid-template-columns: repeat(3, 1fr); }
  .card { padding: 28px; }
  .card h3 { font-size: 20px; }
  .section.tight { padding: 16px 0; }
  .note-box { padding: 40px; display: grid; grid-template-columns: 5fr 7fr; gap: 32px; align-items: center; }
  .note-box p { margin-top: 0; font-size: 19px; }
  .contact .cols { grid-template-columns: 1fr 1fr; gap: 48px; align-items: stretch; margin-top: 24px; }
  .contact .actions { display: flex; }
  .contact .actions .btn { padding: 0 28px; }
  .contact .walk { padding: 32px; display: flex; flex-direction: column; justify-content: center; }
  .npage { padding-top: 48px; }
  .npage .wrap { max-width: 960px; }
  .npage .vp-head h1 { font-size: 36px; }
  .posts-list { gap: 24px; margin-top: 32px; }
  .post { display: grid; grid-template-columns: 320px 1fr; gap: 32px; padding: 20px; align-items: start; }
  .post dl { grid-template-columns: 96px 1fr; gap: 8px 12px; }
  .pw-ask { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 24px 28px; }
  .pw-ask-btns { margin-top: 0; display: flex; }
  .pw-ask-btns .btn { padding: 0 24px; }
  .res-head { grid-template-columns: 44px 1fr auto 24px; grid-template-areas: "icon meta fmt lock"; padding: 16px 20px; gap: 16px; }
  .res-panel { padding: 4px 20px 20px 80px; }
  .res-form .field { max-width: 480px; }
  .post-body { padding: 8px 8px 8px 0; }
  .post h2 { font-size: 24px; }
}

@media (min-width: 1100px) {
  .hero .grid { gap: 48px; }
  .cards.c4 { grid-template-columns: repeat(4, 1fr); }
}


@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* 영어홀릭 가맹 표시: 누르면 영어홀릭 공식 사이트 (원장님 지시 2026-11-20) */
a.affil { color: inherit; text-decoration: none; padding: 10px 0; margin: -10px 0; } /* 누르는 영역만 넓힘, 배치는 그대로 */
a.affil:hover img, a.affil:focus-visible img { opacity: .8; }
a.affil:hover span { text-decoration: underline; text-underline-offset: 3px; }
