/* ==========================================================================
   미들코칭 (Middle Coaching) — style.css
   - 모바일 우선(Mobile-first): 기본 = 휴대폰, min-width 미디어쿼리로 확장
   - 명명 규칙: BEM (block__element--modifier)
   - 외부 라이브러리·웹폰트 없음 (시스템 한글 폰트)
   - 디자인 원칙(MASTER_SPEC 18번): 가독성 > 정보 위계 > 여백 > CTA 접근성 > 모바일 가독성

   목차
   1. 토큰          2. 기본          3. 레이아웃       4. 버튼·칩
   5. 헤더·브레드크럼 6. 히어로        7. 섹션 공통      8. 아코디언
   9. 탭·비교표     10. 콘텐츠 카드   11. 지점 정보     12. 상담 CTA·폼
   13. 푸터·모바일 CTA 14. 확장 (태블릿·PC)
   ========================================================================== */

/* ---------- 1. 토큰 ---------- */
:root {
  --navy-900: #14203B;   /* 헤더·히어로·CTA 배경 */
  --navy-700: #2B3A63;   /* 강조 본문 */
  --navy-100: #E9EDF6;   /* 연한 남색 면 */
  --ink: #1E2742;        /* 본문 */
  --muted: #5B6483;      /* 보조 텍스트 */
  --on-dark: #C9D0E4;    /* 어두운 배경 위 본문 */
  --on-dark-soft: #9AA5C6;
  --line: #E3E7F0;
  --line-dark: #34426B;
  --bg: #F5F7FB;         /* 페이지 배경 */
  --surface: #FFFFFF;    /* 카드 */
  --accent: #C98A2E;     /* CTA 전용 */
  --accent-hover: #A8711F;
  --accent-ink: #1B1204;
  --accent-tint: #FBF1E2;
  --green: #2F6B57;      /* 라벨·학년·체크 */
  --green-tint: #E6F1EC;
  --ok: #6FB08F;
  --error: #E0795F;

  --font: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(20, 32, 59, .06);
  --shadow: 0 1px 2px rgba(20, 32, 59, .05), 0 10px 28px rgba(20, 32, 59, .08);
  --shadow-lg: 0 2px 4px rgba(20, 32, 59, .08), 0 24px 48px rgba(10, 16, 32, .28);
  --gutter: 20px;
  --width: 1120px;
}

/* ---------- 2. 기본 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  word-break: keep-all;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { margin: 0; color: var(--navy-900); line-height: 1.35; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
ul, ol, dl, dd { margin: 0; padding: 0; }
table { border-collapse: collapse; width: 100%; }
svg { flex: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.icon { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- 3. 레이아웃 ---------- */
.container { width: 100%; max-width: var(--width); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- 4. 버튼·칩 ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.3;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 16px rgba(201, 138, 46, .28); }
.button--primary:hover { background: var(--accent-hover); color: #fff; }
.button--outline { background: transparent; border-color: rgba(255, 255, 255, .35); color: #fff; }
.button--outline:hover { background: rgba(255, 255, 255, .08); }
.button--dark { background: var(--navy-900); color: #fff; }
.button:disabled { cursor: not-allowed; transform: none; opacity: .6; }

.chip-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px;
  background: var(--navy-100); color: var(--navy-700); font-size: 14px; font-weight: 700; line-height: 1.4;
}
.chip--accent { background: var(--accent-tint); color: #7A5214; }
.chip--green { background: var(--green-tint); color: var(--green); }

/* ---------- 5. 헤더·브레드크럼 ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(20, 32, 59, .96); backdrop-filter: saturate(140%) blur(8px); }
.site-header__inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.site-header__logo { color: #fff; text-decoration: none; font-size: 20px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.site-header__logo-en { display: block; font-size: 11px; font-weight: 500; color: var(--on-dark-soft); letter-spacing: .02em; }
.site-header__nav { display: none; gap: 24px; margin-left: auto; }
.site-header__nav-link { color: var(--on-dark); text-decoration: none; font-size: 15px; }
.site-header__nav-link:hover { color: #fff; }
.site-header__phone {
  margin-left: auto; padding: 8px 14px; border: 1px solid var(--line-dark); border-radius: 999px;
  color: #fff; font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap;
}

.breadcrumb { background: var(--navy-900); color: var(--on-dark-soft); font-size: 13px; }
.breadcrumb__list { list-style: none; display: flex; flex-wrap: wrap; padding-block: 4px 0; }
.breadcrumb__item + .breadcrumb__item::before { content: "›"; margin: 0 8px; }
.breadcrumb__link { color: var(--on-dark-soft); text-decoration: none; }
.breadcrumb__link:hover { color: #fff; }

/* ---------- 6. 히어로 (모바일 1열 → PC 2분할) ---------- */
.hero { background: var(--navy-900); color: #fff; padding-block: 36px 48px; overflow: hidden; }
.hero__grid { display: grid; gap: 32px; align-items: center; }
.hero__content { min-width: 0; }
.hero__eyebrow {
  display: inline-block; margin-bottom: 16px; padding: 6px 12px; border-radius: 999px;
  background: rgba(201, 138, 46, .16); color: #F0C27E; font-size: 14px; font-weight: 700;
}
.hero__title { color: #fff; font-size: 30px; letter-spacing: -.02em; margin-bottom: 16px; }
.hero__lead { color: var(--on-dark); font-size: 17px; max-width: 34em; }
.hero__actions { display: grid; gap: 10px; margin-top: 28px; }
.hero__visual { min-width: 0; }

/* 히어로 우측: 지점 요약 카드 */
.summary-card { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-lg); }
.summary-card__title { font-size: 18px; margin-bottom: 16px; }
.summary-card__list { display: grid; gap: 14px; }
.summary-card__row { display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; }
.summary-card__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--navy-100); color: var(--navy-700); }
.summary-card__label { font-size: 13px; color: var(--muted); font-weight: 700; }
.summary-card__value { font-size: 15px; font-weight: 700; color: var(--navy-900); }
.summary-card__value .chip-list { margin-top: 4px; }

/* 히어로 우측: 학년 로드맵 카드 (메인) */
.roadmap { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-lg); }
.roadmap__title { font-size: 18px; margin-bottom: 18px; }
.roadmap__list { list-style: none; display: grid; gap: 0; }
.roadmap__step { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding-bottom: 18px; }
.roadmap__step:last-child { padding-bottom: 0; }
.roadmap__step:not(:last-child)::after { content: ""; position: absolute; left: 25px; top: 44px; bottom: 4px; width: 2px; background: var(--line); }
.roadmap__badge {
  display: grid; place-items: center; width: 52px; height: 40px; border-radius: 999px;
  background: var(--green-tint); color: var(--green); font-size: 14px; font-weight: 800;
}
.roadmap__task { font-weight: 700; color: var(--navy-900); }
.roadmap__focus { font-size: 14px; color: var(--muted); }

/* ---------- 7. 섹션 공통 ---------- */
.section { padding-block: 48px; }
[id] { scroll-margin-top: 84px; }
.section--alt { background: var(--surface); }
.section__head { margin-bottom: 24px; }
.section__label { margin-bottom: 8px; color: var(--green); font-size: 14px; font-weight: 800; letter-spacing: .02em; }
.section__title { font-size: 24px; letter-spacing: -.02em; }
.section__desc { margin-top: 10px; color: var(--muted); }
.section__subtitle { font-size: 19px; margin: 32px 0 14px; }
.section__note { margin-top: 18px; color: var(--muted); font-size: 14px; }
.prose { display: grid; gap: 14px; }
.prose p { color: var(--ink); }

/* 핵심 답변 박스 (AEO: 질문 바로 아래 2~4문장 답변) */
.answer-box { padding: 20px 22px; border-radius: var(--radius); background: var(--navy-100); }
.section--alt .answer-box { background: var(--bg); }
.answer-box__label { display: block; margin-bottom: 6px; color: var(--navy-700); font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.answer-box__text { color: var(--navy-900); font-size: 17px; font-weight: 600; }

/* 카드 공통 */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.section--alt .card { box-shadow: var(--shadow-sm); }

/* ---------- 8. 아코디언 (details/summary — 학부모 고민·FAQ) ---------- */
.accordion { display: grid; gap: 12px; }
.accordion__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.section--alt .accordion__item { background: var(--bg); box-shadow: none; }
.accordion__item[open] { border-color: #C9D2E6; box-shadow: var(--shadow); }
.accordion__question {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  color: var(--navy-900); font-size: 17px; font-weight: 700; line-height: 1.5;
}
.accordion__question::-webkit-details-marker { display: none; }
.accordion__question:hover { background: rgba(233, 237, 246, .5); }
.accordion__icon {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy-100); color: var(--navy-700); transition: transform .25s ease, background-color .25s ease;
}
.accordion__item[open] .accordion__icon { transform: rotate(180deg); background: var(--accent); color: var(--accent-ink); }
.accordion__answer { padding: 0 20px 20px; color: var(--ink); }
.accordion__item[open] .accordion__answer { animation: accordion-slide .28s ease-out; }
@keyframes accordion-slide { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- 9. 탭 (학년별) · 비교표 ---------- */
.tabs__list {
  display: flex; gap: 6px; padding: 6px; margin-bottom: 18px;
  background: var(--navy-100); border-radius: 999px; overflow-x: auto; scrollbar-width: none;
}
.tabs__list::-webkit-scrollbar { display: none; }
.tabs__tab {
  flex: 1 0 auto; min-height: 44px; padding: 8px 18px; border: 0; border-radius: 999px;
  background: transparent; color: var(--navy-700); font: inherit; font-size: 16px; font-weight: 700; cursor: pointer;
  transition: background-color .15s ease, color .15s ease;
}
.tabs__tab[aria-selected="true"] { background: var(--navy-900); color: #fff; box-shadow: var(--shadow-sm); }
.tabs__panels { display: grid; gap: 16px; }          /* JS 없을 때: 네 학년 모두 표시 */
.tabs--enhanced .tabs__panel[hidden] { display: none; }
.tabs__panel { animation: tab-in .22s ease-out; }
@keyframes tab-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.grade-panel { display: grid; gap: 16px; }
.grade-panel__tag { display: inline-flex; width: fit-content; padding: 4px 12px; border-radius: 999px; background: var(--green); color: #fff; font-size: 13px; font-weight: 800; }
.grade-panel__title { font-size: 20px; }
.grade-panel__facts { display: grid; gap: 12px; }
.grade-panel__fact { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--bg); }
.grade-panel__fact-label { display: block; font-size: 13px; font-weight: 800; color: var(--green); }
.grade-panel__fact-value { font-weight: 700; color: var(--navy-900); }

/* 비교표 — 휴대폰: 학년별 카드 / 640px 이상: 표 */
.compare-table__wrap { border-radius: var(--radius); }
.compare-table { font-size: 15px; }
.compare-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.compare-table tbody { display: grid; gap: 12px; }
.compare-table tr { display: grid; gap: 10px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.compare-table tbody th {
  display: inline-flex; width: fit-content; padding: 4px 12px; border-radius: 999px;
  background: var(--green); color: #fff; font-size: 13px; font-weight: 800; text-align: left;
}
.compare-table td { display: grid; gap: 2px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); color: var(--navy-900); font-weight: 700; }
.compare-table td::before { content: attr(data-label); color: var(--green); font-size: 13px; font-weight: 800; }

/* ---------- 10. 콘텐츠 카드 ---------- */
.subject-grid { list-style: none; display: grid; gap: 16px; }
.subject-card { display: grid; gap: 10px; }
.subject-card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: #8A5C17; }
.subject-card__title { font-size: 19px; }
.subject-extra { margin-top: 16px; display: grid; gap: 10px; }

.timeline { list-style: none; display: grid; gap: 12px; }
.timeline__step { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; }
.timeline__when { display: grid; place-items: center; min-height: 44px; border-radius: 999px; background: var(--navy-900); color: #fff; font-size: 14px; font-weight: 800; }
.timeline__what { font-weight: 700; color: var(--navy-900); }

.school-list { list-style: none; display: grid; gap: 12px; }
.school-list__item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.school-list__icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--green-tint); color: var(--green); }
.school-list__name { font-weight: 800; color: var(--navy-900); }

.process { list-style: none; display: grid; gap: 12px; counter-reset: step; }
.process__step { display: grid; grid-template-columns: 40px 1fr; gap: 14px; counter-increment: step; }
.process__step::before {
  content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy-900); color: #fff; font-weight: 800;
}
.process__title { font-size: 17px; margin-bottom: 2px; }
.process__text { color: var(--muted); font-size: 15px; }

/* 브랜드·지점 목록 (메인) */
.brand-list { list-style: none; display: grid; gap: 14px; }
.brand-list__item { display: grid; gap: 10px; }
.brand-list__name { font-size: 17px; }
.branch-list { list-style: none; display: grid; gap: 14px; }
.branch-list__link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 100%;
  text-decoration: none; transition: transform .15s ease, box-shadow .15s ease;
}
.branch-list__link:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(20, 32, 59, .06), 0 16px 32px rgba(20, 32, 59, .12); }
.branch-list__region { display: block; color: var(--navy-900); font-size: 17px; font-weight: 800; }
.branch-list__meta { display: block; margin-top: 2px; color: var(--muted); font-size: 14px; }
.branch-list__arrow { color: var(--accent); }
.region-group__count { margin-left: 8px; margin-right: auto; color: var(--muted); font-size: 14px; font-weight: 600; }
.region-group__list { padding: 0 16px 16px; }

/* ---------- 11. 지점 정보 (아이콘 그리드 카드) ---------- */
.info-grid { list-style: none; display: grid; gap: 12px; }
.info-grid__item { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; padding: 18px; }
.info-grid__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--navy-100); color: var(--navy-700); }
.info-grid__label { font-size: 13px; font-weight: 800; color: var(--muted); }
.info-grid__value { font-size: 16px; font-weight: 700; color: var(--navy-900); overflow-wrap: anywhere; }
.info-grid__value a { color: var(--navy-900); }

.strength-list { list-style: none; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.strength-list__item { display: flex; align-items: center; gap: 12px; padding: 16px 18px; font-weight: 700; color: var(--navy-900); }
.strength-list__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--green); color: #fff; }

.legal-note { color: var(--muted); font-size: 14px; }
.map-card__address { display: flex; gap: 10px; align-items: flex-start; font-style: normal; font-weight: 700; color: var(--navy-900); }
.kakao-map { margin-bottom: 14px; }
.kakao-map[hidden], .kakao-map__canvas[hidden], .kakao-map__fallback[hidden] { display: none; }
.kakao-map__canvas { width: 100%; height: 220px; border-radius: 12px; overflow: hidden; background: #eef1f5; }
.kakao-map__fallback { margin: 0; padding: 12px 14px; border-radius: 12px; background: #eef1f5; color: var(--muted); font-size: 14px; }

/* 카드형 소형 섹션 묶음 (11·12번, 15·16·17번) */
.practical-grid { display: grid; gap: 16px; }
.practical { display: grid; gap: 14px; align-content: start; }
.practical .section__label { margin-bottom: 0; }
.practical__title { font-size: 21px; letter-spacing: -.01em; }
.practical__button { justify-self: start; }
.mini-list { display: grid; gap: 10px; }
.mini-list__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg); }
.mini-list__row dt { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; font-weight: 700; }
.mini-list__row dd { font-weight: 800; color: var(--navy-900); }
.section__body { margin-top: 20px; }
.prose { max-width: 46em; }

/* ---------- 12. 상담 CTA·폼 ---------- */
.cta { background: var(--navy-900); color: var(--on-dark); padding-block: 48px; }
.cta__grid { display: grid; gap: 28px; align-items: start; }
.cta__title { color: #fff; font-size: 26px; letter-spacing: -.02em; margin-bottom: 12px; }
.cta__actions { display: grid; gap: 10px; margin-top: 24px; }
.consult-alt { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.consult-alt__text { color: var(--on-dark); font-size: 15px; }
.consult-alt__actions { display: grid; gap: 10px; margin-top: 14px; }

.consult-form { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-lg); }
.consult-form__fieldset { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.consult-form__fieldset:disabled { opacity: .6; }
.consult-form__field { display: grid; gap: 6px; color: var(--navy-900); font-size: 15px; font-weight: 700; }
.consult-form__input {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid #CDD4E3; border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font: inherit; font-size: 16px; font-weight: 400;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.consult-form__input:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(43, 58, 99, .15); outline: none; }
.consult-form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; }
.consult-form__status { margin-top: 16px; padding: 16px 18px; border-radius: var(--radius); background: #24315A; color: #fff; font-weight: 700; }
.consult-form__status--pending { border: 1px solid var(--accent); }
.consult-form__status--ok { background: var(--surface); color: var(--navy-900); box-shadow: var(--shadow-lg); font-size: 17px; }
.consult-form__status--error { border: 1px solid var(--error); }

/* ---------- 13. 푸터·모바일 하단 CTA ---------- */
.site-footer { background: #0F182E; color: var(--on-dark-soft); font-size: 13px; padding-block: 32px; }
.site-footer__link { color: var(--on-dark); text-decoration: none; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer__link:hover { text-decoration: underline; }
.privacy-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.privacy-table th, .privacy-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.privacy-table tr:last-child th, .privacy-table tr:last-child td { border-bottom: 0; }
.privacy-table th { width: 32%; background: var(--navy-100); color: var(--navy-900); font-weight: 700; }
@media (max-width: 480px) { .privacy-table th, .privacy-table td { display: block; width: auto; } .privacy-table th { border-bottom: 0; padding-bottom: 6px; } }
.site-footer__note { margin-top: 12px; line-height: 1.8; }

.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(20, 32, 59, .08);
}
.mobile-cta .button { min-height: 46px; padding: 10px 12px; font-size: 15px; }
.has-mobile-cta { padding-bottom: 76px; }

/* ---------- 14. 확장 (태블릿·PC) ---------- */
@media (min-width: 640px) {
  :root { --gutter: 28px; }
  body { font-size: 17px; }
  .hero__title { font-size: 36px; }
  .hero__actions, .cta__actions, .consult-alt__actions { display: flex; flex-wrap: wrap; }
  .compare-table__wrap { overflow-x: auto; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-sm); }
  .compare-table thead { position: static; width: auto; height: auto; overflow: visible; clip: auto; display: table-header-group; }
  .compare-table tbody { display: table-row-group; }
  .compare-table tr { display: table-row; padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .compare-table th, .compare-table td { display: table-cell; padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); border-radius: 0; background: none; font-weight: 400; color: var(--ink); }
  .compare-table td::before { content: none; }
  .compare-table thead th { background: var(--navy-100); color: var(--navy-700); font-size: 14px; font-weight: 700; }
  .compare-table tbody th { display: table-cell; width: auto; padding: 14px 16px; border-radius: 0; background: none; color: var(--navy-900); font-size: 15px; font-weight: 800; white-space: nowrap; }
  .compare-table tbody tr:last-child > * { border-bottom: 0; }
  .section { padding-block: 64px; }
  .section__title { font-size: 28px; }
  .cta__title { font-size: 28px; }
  .subject-grid, .brand-list, .branch-list, .school-list, .info-grid { grid-template-columns: repeat(2, 1fr); }
  .grade-panel__facts { grid-template-columns: 1fr 1fr; }
  .practical-grid--2 { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .timeline__step { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .card, .summary-card, .roadmap, .consult-form { padding: 28px; }
}
@media (min-width: 960px) {
  .site-header__nav { display: flex; }
  .site-header__nav + .site-header__phone { margin-left: 8px; }
  .hero { padding-block: 64px 72px; }
  .hero__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 56px; }
  .hero__title { font-size: 44px; }
  .hero__lead { font-size: 18px; }
  .section { padding-block: 80px; }
  .section__title { font-size: 32px; }
  .brand-list { grid-template-columns: repeat(4, 1fr); }
  .branch-list, .info-grid { grid-template-columns: repeat(3, 1fr); }
  .info-grid__item--wide { grid-column: span 2; }
  .cta__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; }
  .cta__grid--single { grid-template-columns: 1fr; }
  .practical-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .mobile-cta { display: none; }
  .has-mobile-cta { padding-bottom: 0; }
}
