@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=Jua&display=swap");

/* =========================================================
   다이노수학 · 스픽영어 학원 — 공통 스타일
   ========================================================= */

:root {
  /* 배너 팔레트: 딥그린 #386958 · 옐로 #f5c642 · 민트 #a3d2c4 */
  --cream: #f7f4ec;
  --cream-deep: #efe9dd;
  --paper: #ffffff;

  --ink: #17332b;
  --ink-soft: #4a5f57;
  --muted: #7d8f88;

  --green-900: #1e4036;
  --green-800: #2b5548;
  --green-700: #386958;
  --green-600: #45796a;
  --green-500: #5a8778;
  --green-100: #dbeae3;
  --green-050: #eef5f1;

  --amber: #f5c642;
  --amber-dark: #a87c0c;
  --amber-100: #fdf2cf;

  --mint: #a3d2c4;
  --mint-deep: #7fb3a3;
  --blue: #386958;
  --blue-100: #dbeae3;

  --rose: #d9534f;

  --line: #e8e2d4;
  --line-strong: #d9d1bf;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 2px 8px rgba(16, 36, 31, 0.06);
  --shadow: 0 10px 28px rgba(16, 36, 31, 0.08);
  --shadow-lg: 0 24px 60px rgba(16, 36, 31, 0.14);

  --accent: var(--green-600);
  --accent-soft: var(--green-100);
  --wrap: 1160px;
}

body.theme-math {
  --accent: var(--green-700);
  --accent-soft: var(--green-100);
}

body.theme-english {
  --accent: var(--amber-dark);
  --accent-soft: var(--amber-100);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.28;
  letter-spacing: -0.025em;
  font-weight: 800;
}

p {
  margin: 0;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: 3px solid var(--green-500);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--green-900);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------------- Header ---------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--green-700);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 74px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

/* 원본 실제 크기 1024×246. 픽셀 측정 기준 공룡은 x620~719.
   바깥 타일과 이미지 창을 분리해 둥근 모서리가 얼굴을 깎지 않게 합니다. */
.brand-mark {
  position: relative;
  display: block;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 13px;
  background-color: #3c6b60;
  line-height: 0;
  font-size: 0;
  color: transparent;
}
.brand-mark::before {
  content: "";
  position: absolute;
  inset: 3px;
  background-image: url("../images/academy-banner.png");
  background-repeat: no-repeat;
  /* 116px 창(x612~728, y20~136): 얼굴 왼쪽에도 원본 여백 확보.
     왼쪽 아래의 배너 글자만 제외 (공룡의 목·몸 영역과 겹치지 않음). */
  background-size: 317.793px 76.345px;
  background-position: -189.931px -6.207px;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 17.25% 100%, 17.25% 60.34%, 0 60.34%);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: "Jua", "Pretendard Variable", sans-serif;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.005em;
  color: #eef5f1;
  line-height: 1.25;
}

.brand-text strong em {
  font-style: normal;
  color: var(--amber);
}

.brand-text span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #a8c8bb;
  text-transform: uppercase;
}

.primary-nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  display: block;
  padding: 10px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  color: #dcece5;
  transition: background 0.18s ease, color 0.18s ease;
  white-space: nowrap;
}

.primary-nav a:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.primary-nav a[aria-current="page"] {
  color: var(--green-900);
  background: var(--mint);
  font-weight: 700;
}

.primary-nav a.nav-cta {
  margin-left: 6px;
  background: var(--amber);
  color: #3a2c05;
  font-weight: 800;
  padding: 10px 20px;
}

.primary-nav a.nav-cta:hover {
  background: #ffd85c;
  color: #3a2c05;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
  padding: 0;
  place-items: center;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

/* ---------------- Buttons & bits ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-align: center;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--green-800);
  color: #fff;
  box-shadow: 0 10px 20px rgba(13, 75, 56, 0.22);
}

.btn-primary:hover {
  background: var(--green-900);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 20px rgba(16, 36, 31, 0.16);
}

.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--green-900);
}

.btn-ghost:hover {
  background: var(--paper);
  border-color: var(--green-600);
}

.btn-light {
  background: #fff;
  color: var(--green-900);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 13.5px;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-600);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--green-900);
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
}

.chip-math {
  background: var(--blue-100);
  color: #1e4ca8;
}

.chip-english {
  background: var(--amber-100);
  color: #a75712;
}

.chip-all {
  background: var(--green-100);
  color: var(--green-800);
}

.chip-muted {
  background: var(--cream-deep);
  color: var(--muted);
}

/* ---------------- Layout sections ---------------- */

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-head {
  max-width: 660px;
  margin-bottom: 40px;
}

.section-head h1,
.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin-top: 14px;
}

.section-head p {
  margin-top: 14px;
  color: var(--ink-soft);
  font-size: 16.5px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head.center .eyebrow {
  justify-content: center;
}

.bg-paper {
  background: var(--paper);
}

.bg-cream-deep {
  background: var(--cream-deep);
}

.bg-dark {
  background: var(--green-900);
  color: #f2f7f4;
}

.bg-dark .section-head p {
  color: #bad2c8;
}

.bg-dark .eyebrow {
  color: #6ddbaa;
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 76px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto auto;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle at 50% 50%, rgba(163, 210, 196, 0.34), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px 7px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 700;
  color: var(--green-800);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(245, 198, 66, 0.24);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(32px, 4.5vw, 54px);
  letter-spacing: -0.035em;
}

.hero h1 .hl {
  position: relative;
  color: var(--green-800);
  white-space: nowrap;
}

.hero h1 .hl::after {
  content: "";
  position: absolute;
  left: 0;
  right: -2px;
  bottom: 8px;
  height: 13px;
  background: rgba(245, 198, 66, 0.5);
  border-radius: 6px;
  z-index: -1;
}

.hero-lead {
  margin-top: 20px;
  max-width: 520px;
  color: var(--ink-soft);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 40px;
  padding-top: 26px;
  border-top: 1px dashed var(--line-strong);
}

.hero-facts div strong {
  display: block;
  font-family: "Jua", sans-serif;
  font-weight: 400;
  font-size: 24px;
  color: var(--green-800);
  line-height: 1.2;
}

.hero-facts div span {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

.hero-visual {
  position: relative;
}

.hero-photo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 4.4;
  box-shadow: var(--shadow-lg);
  background: var(--green-100);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-card {
  position: absolute;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--green-900);
}

.hero-card .icon-round {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--green-100);
  font-size: 17px;
}

.hero-card small {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
}

.hero-card-top {
  top: 26px;
  left: -26px;
}

.hero-card-bottom {
  bottom: 30px;
  right: -18px;
}

/* ---------------- Quick links ---------------- */

.quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  overflow: hidden;
}

.quick-card::after {
  content: "";
  position: absolute;
  right: -38px;
  top: -38px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--quick-tint, var(--green-100));
  opacity: 0.7;
}

.quick-card > * {
  position: relative;
  z-index: 1;
}

.quick-card:hover,
.quick-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--green-500);
}

.quick-card .q-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 22px;
  background: var(--quick-tint, var(--green-100));
}

.quick-card h3 {
  font-size: 20px;
}

.quick-card p {
  color: var(--ink-soft);
  font-size: 14.5px;
}

.quick-more {
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--green-700);
}

/* ---------------- Feature cards ---------------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature {
  padding: 26px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.feature .f-num {
  font-family: "Jua", sans-serif;
  font-size: 14px;
  color: var(--amber);
  letter-spacing: 0.08em;
}

.feature h3 {
  margin-top: 10px;
  font-size: 17.5px;
}

.feature p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 48px;
  align-items: center;
}

.about-photo {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3.2;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------------- 교육 철학 (index) ---------------- */

.philosophy-body {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.philosophy-body p {
  font-size: 17.5px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.philosophy-body p + p {
  margin-top: 18px;
}

.philosophy-body strong {
  color: var(--green-800);
  font-weight: 800;
}

.philosophy-photo {
  max-width: 760px;
  margin: 40px auto 0;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--green-100);
}

.philosophy-photo img {
  display: block;
  width: 100%;
  height: auto;
}

.about-list {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.about-list li {
  display: flex;
  gap: 13px;
  font-size: 15px;
  color: var(--ink-soft);
}

.about-list .tick {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green-100);
  color: var(--green-700);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  margin-top: 3px;
}

.about-list strong {
  color: var(--ink);
}

/* ---------------- Tabs & timetable ---------------- */

.tabbar {
  display: inline-flex;
  padding: 5px;
  gap: 4px;
  background: var(--cream-deep);
  border-radius: 999px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.tabbar button {
  border: 0;
  background: transparent;
  padding: 9px 20px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}

.tabbar button[aria-selected="true"] {
  background: var(--paper);
  color: var(--green-900);
  box-shadow: var(--shadow-sm);
}

.table-shell {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 10px;
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

table.schedule {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 14px;
}

table.schedule th,
table.schedule td {
  padding: 13px 12px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

table.schedule thead th {
  font-size: 13px;
  font-weight: 800;
  color: var(--green-800);
  background: var(--green-050);
}

table.schedule thead th:first-child {
  border-radius: 10px 0 0 10px;
}

table.schedule thead th:last-child {
  border-radius: 0 10px 10px 0;
}

table.schedule tbody th {
  text-align: left;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  font-size: 13px;
}

table.schedule tbody tr:last-child th,
table.schedule tbody tr:last-child td {
  border-bottom: 0;
}

.slot {
  display: block;
  padding: 7px 6px;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.4;
}

.slot-math {
  background: var(--blue-100);
  color: #1e4ca8;
}

.slot-english {
  background: var(--amber-100);
  color: #a75712;
}

.slot-both {
  background: var(--green-100);
  color: var(--green-800);
}

.slot-off {
  color: var(--muted);
  font-weight: 500;
  font-size: 12px;
}

.table-note {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------- Pricing ---------------- */

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 30px 26px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.price-card.featured {
  border: 2px solid var(--green-600);
  box-shadow: var(--shadow);
}

.price-card .p-tag {
  position: absolute;
  top: -13px;
  left: 26px;
  background: var(--green-600);
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
}

.price-card h3 {
  font-size: 18px;
}

.price-card .p-sub {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
}

.price-amount {
  margin: 18px 0 4px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-amount strong {
  font-family: "Jua", sans-serif;
  font-weight: 400;
  font-size: 34px;
  color: var(--green-800);
  line-height: 1;
}

.price-amount span {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.price-card ul {
  display: grid;
  gap: 9px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-strong);
  font-size: 14px;
  color: var(--ink-soft);
}

.price-card li {
  display: flex;
  gap: 8px;
}

.price-card li::before {
  content: "·";
  color: var(--green-600);
  font-weight: 900;
}

.price-card .btn {
  margin-top: auto;
  padding-top: 13px;
  margin-top: 22px;
}

.fee-note {
  margin-top: 22px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

/* ---------------- Teachers ---------------- */

.teacher-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.teacher-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.avatar {
  width: 74px;
  height: 74px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  font-family: "Jua", sans-serif;
  font-size: 26px;
  color: #fff;
  background: linear-gradient(150deg, var(--green-500), var(--green-700));
}

.avatar.amber {
  background: linear-gradient(150deg, #f7d778, var(--amber));
  color: #4a3607;
}

.avatar.blue {
  background: linear-gradient(150deg, var(--mint), var(--mint-deep));
  color: var(--green-900);
}

/* 강사 사진: 파일이 있으면 사진, 없으면 이니셜 아바타 */
.teacher-photo {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 26px;
  overflow: hidden;
  background: var(--green-100);
  display: grid;
  place-items: center;
  font-family: "Jua", sans-serif;
  font-size: 30px;
  color: var(--green-800);
  flex-shrink: 0;
  box-shadow: 0 6px 16px rgba(23, 51, 43, 0.12);
}

.teacher-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
}

.teacher-photo.sm {
  width: 78px;
  height: 78px;
  border-radius: 22px;
  font-size: 25px;
}

/* ---------- 브랜드 배너 (원본 이미지 사용) ---------- */

.banner-strip {
  display: block;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--green-700);
  box-shadow: var(--shadow);
}

.banner-strip img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-banner {
  margin-top: 26px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--green-700);
  box-shadow: 0 12px 28px rgba(23, 51, 43, 0.16);
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-banner {
  display: inline-block;
  max-width: 330px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 16px;
}

.footer-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.teacher-card h3 {
  font-size: 20px;
}

.teacher-role {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--green-600);
  text-transform: uppercase;
}

.teacher-card ul {
  display: grid;
  gap: 7px;
  font-size: 14px;
  color: var(--ink-soft);
}

.teacher-card ul li {
  display: flex;
  gap: 8px;
}

.teacher-card ul li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green-500);
  flex-shrink: 0;
  margin-top: 10px;
}

.teacher-quote {
  margin-top: auto;
  padding: 16px;
  border-radius: 14px;
  background: var(--cream);
  font-size: 14px;
  color: var(--green-800);
  font-weight: 600;
  line-height: 1.65;
}

.teacher-hero-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 26px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.teacher-hero-card .avatar {
  width: 96px;
  height: 96px;
  font-size: 34px;
  border-radius: 30px;
}

.teacher-hero-card .teacher-photo {
  width: 150px;
  height: 150px;
  border-radius: 32px;
  font-size: 46px;
}

/* ---------------- Page hero (sub pages) ---------------- */

.page-hero {
  position: relative;
  padding: 56px 0 52px;
  overflow: hidden;
  border-bottom: 1px solid rgba(217, 209, 191, 0.6);
}

.page-hero::before {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: var(--accent-soft);
  opacity: 0.75;
}

.page-hero::after {
  content: "";
  position: absolute;
  left: 8%;
  bottom: -90px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(26, 160, 111, 0.1);
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  margin-top: 12px;
}

.page-hero p {
  margin-top: 14px;
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 16.5px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 600;
}

.breadcrumb a:hover {
  color: var(--green-700);
}

/* ---------------- Panels: notice / material / audio ---------------- */

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.panel-head h2,
.panel-head h3 {
  font-size: 19px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-head .count {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  background: var(--cream-deep);
  padding: 3px 10px;
  border-radius: 999px;
}

.panel-body {
  padding: 8px 24px 18px;
}

.filter-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.filter-chip {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink-soft);
  padding: 7px 14px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}

.filter-chip:hover {
  border-color: var(--green-500);
  color: var(--green-800);
}

.filter-chip[aria-pressed="true"] {
  background: var(--green-800);
  border-color: var(--green-800);
  color: #fff;
}

.notice-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}

.notice-item:last-child {
  border-bottom: 0;
}

.notice-pin {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--cream-deep);
  font-size: 15px;
  flex-shrink: 0;
}

.notice-pin.on {
  background: var(--amber-100);
}

.notice-item h3 {
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.notice-body {
  margin-top: 6px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.72;
  white-space: pre-wrap;
}

.notice-meta {
  margin-top: 9px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.notice-date {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  padding-top: 4px;
}

.material-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 20px 0 6px;
}

.material-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #fffdf8;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.material-card:hover {
  border-color: var(--green-500);
  box-shadow: var(--shadow-sm);
}

.material-card .m-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.material-card h3 {
  font-size: 15.5px;
  line-height: 1.45;
}

.material-card p {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  white-space: pre-wrap;
}

.material-card .m-foot {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.m-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 800;
  color: var(--green-700);
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 1px;
}

.empty-state {
  padding: 44px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.empty-state .e-icon {
  font-size: 26px;
  display: block;
  margin-bottom: 8px;
  opacity: 0.7;
}

.skeleton {
  height: 66px;
  border-radius: 12px;
  background: linear-gradient(90deg, #f2ede1, #faf7f0, #f2ede1);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite linear;
  margin: 10px 0;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

/* ---------------- Audio practice ---------------- */

.audio-section {
  background: linear-gradient(180deg, var(--cream) 0%, #fdf6e8 100%);
}

.audio-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 26px;
}

.audio-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.audio-card.playing {
  border-color: var(--amber);
  box-shadow: 0 12px 30px rgba(209, 113, 26, 0.14);
}

.audio-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.audio-top h3 {
  font-size: 17px;
  line-height: 1.45;
}

.audio-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}

.audio-desc {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.65;
  white-space: pre-wrap;
}

.audio-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 16px 8px 8px;
}

.play-btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--amber);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(239, 138, 43, 0.35);
  transition: transform 0.15s ease;
}

.play-btn:hover {
  transform: scale(1.05);
}

.play-btn svg {
  width: 18px;
  height: 18px;
}

.audio-main {
  flex: 1;
  min-width: 0;
}

.progress {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--line-strong);
  cursor: pointer;
  margin: 0;
}

.progress::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--amber-dark);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.progress::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--amber-dark);
}

.audio-times {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  margin-top: 5px;
}

.audio-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.tool-btn {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink-soft);
  border-radius: 999px;
  padding: 6px 12px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.tool-btn:hover {
  border-color: var(--amber);
  color: var(--amber-dark);
}

.tool-btn.active {
  background: var(--amber-100);
  border-color: var(--amber);
  color: #a75712;
}

.tool-btn.rec-on {
  background: #fdeaea;
  border-color: var(--rose);
  color: #b03b38;
}

.practice-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.meter-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--cream-deep);
  overflow: hidden;
}

.meter-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #f9b969, var(--amber));
  width: 0;
  transition: width 0.3s ease;
}

.transcript {
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 0 16px;
  background: #fffdf8;
}

.transcript summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  color: var(--green-800);
  padding: 12px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 7px;
}

.transcript summary::-webkit-details-marker {
  display: none;
}

.transcript summary::after {
  content: "▾";
  margin-left: auto;
  color: var(--muted);
  transition: transform 0.2s ease;
}

.transcript[open] summary::after {
  transform: rotate(180deg);
}

.transcript-body {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.85;
  padding: 0 0 16px;
  white-space: pre-wrap;
}

.rec-status {
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-dark);
  min-height: 18px;
}

.audio-unavailable {
  font-size: 12.5px;
  color: var(--muted);
  background: var(--cream-deep);
  border-radius: 10px;
  padding: 12px 14px;
  line-height: 1.6;
}

/* ---------------- Level cards / curriculum ---------------- */

.level-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.level-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.level-card .l-badge {
  align-self: flex-start;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
}

.level-card h3 {
  font-size: 17px;
}

.level-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.level-card ul {
  display: grid;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.level-card ul li::before {
  content: "✓ ";
  color: var(--accent);
  font-weight: 900;
}

.flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
}

.flow-step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  position: relative;
}

.flow-step span.n {
  font-family: "Jua", sans-serif;
  font-size: 13px;
  color: var(--accent);
}

.flow-step h3 {
  font-size: 16px;
  margin-top: 6px;
}

.flow-step p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-top: 6px;
  line-height: 1.65;
}

/* ---------------- Contact / form ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.contact-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.contact-row .c-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--green-100);
  display: grid;
  place-items: center;
  font-size: 17px;
  flex-shrink: 0;
}

.contact-row dt {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

.contact-row dd {
  margin: 3px 0 0;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.map-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.form-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  font-size: 13px;
  font-weight: 800;
  color: var(--green-900);
}

.field label .req {
  color: var(--rose);
}

.field input,
.field select,
.field textarea {
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  background: #fffdf9;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--green-500);
  box-shadow: 0 0 0 3px rgba(26, 160, 111, 0.14);
}

.field textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.65;
}

.field .hint {
  font-size: 12px;
  color: var(--muted);
}

.check-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 4px 0 16px;
}

.check-row input {
  width: 17px;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--green-600);
  flex-shrink: 0;
}

.form-status {
  margin-top: 14px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 11px;
  padding: 0;
  min-height: 0;
}

.form-status.ok,
.form-status.err {
  padding: 12px 14px;
}

.form-status.ok {
  background: var(--green-050);
  color: var(--green-800);
  border: 1px solid #bde8d4;
}

.form-status.err {
  background: #fdf0ef;
  color: #9c3733;
  border: 1px solid #f2cdcb;
}

/* ---------------- CTA band ---------------- */

.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--green-800), var(--green-900));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
}

.cta-band::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: rgba(26, 160, 111, 0.28);
}

.cta-band h2 {
  font-size: clamp(22px, 2.8vw, 30px);
}

.cta-band p {
  margin-top: 8px;
  color: #bcd8cd;
  font-size: 15px;
}

.cta-band .btn {
  position: relative;
  z-index: 1;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: var(--green-700);
  color: #d6e7df;
  padding: 52px 0 28px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 14px;
}

.footer-brand .brand-mark {
  box-shadow: none;
}

.footer-brand strong {
  font-family: "Jua", sans-serif;
  font-weight: 400;
  font-size: 19px;
  color: #fff;
}

.site-footer p {
  color: #adc9bd;
  line-height: 1.85;
  font-size: 13.5px;
}

.site-footer h3 {
  color: var(--amber);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.site-footer ul {
  display: grid;
  gap: 8px;
  font-size: 13.5px;
}

.site-footer a:hover {
  color: #fff;
  text-decoration: underline;
}

/* 학원법 필수 표시: 학원명 · 등록번호 · 교습과목 (푸터 최하단)
   .site-footer p (0,1,1) 를 이기도록 명시도를 맞춥니다. */
.site-footer .footer-legal {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  font-size: 12px;
  line-height: 1.7;
  color: #9dbbaf;
}

.site-footer .footer-legal strong {
  color: #cfe3da;
  font-weight: 700;
}

.site-footer .footer-legal .legal-sep {
  color: rgba(255, 255, 255, 0.26);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 12.5px;
  color: #93b3a6;
}

/* ---------------- Admin ---------------- */

.admin-shell {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 26px;
  align-items: start;
}

.admin-nav {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  position: sticky;
  top: 92px;
  display: grid;
  gap: 4px;
}

.admin-nav button {
  border: 0;
  background: transparent;
  text-align: left;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
}

.admin-nav button:hover {
  background: var(--cream);
}

.admin-nav button[aria-current="true"] {
  background: var(--green-100);
  color: var(--green-800);
}

.admin-panel {
  display: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.admin-panel.active {
  display: block;
}

.admin-panel h2 {
  font-size: 21px;
}

.admin-panel > p.lead {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.admin-form {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-strong);
}

.admin-list {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.admin-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  background: #fffdf8;
}

.admin-item h4 {
  font-size: 14.5px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.admin-item p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 4px;
}

.icon-btn {
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink-soft);
  border-radius: 9px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 14px;
}

.icon-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.notice-box {
  display: flex;
  gap: 12px;
  background: var(--amber-100);
  border: 1px solid #f3d6ae;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  color: #7d4a12;
  line-height: 1.65;
  margin-top: 18px;
}

.notice-box.info {
  background: var(--green-050);
  border-color: #c6e9d8;
  color: var(--green-800);
}

.notice-box strong {
  display: block;
  margin-bottom: 2px;
}

.dropzone {
  border: 1.5px dashed var(--line-strong);
  border-radius: 14px;
  padding: 20px;
  text-align: center;
  background: #fffdf8;
  cursor: pointer;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--green-500);
  background: var(--green-050);
}

.dropzone .dz-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 6px;
}

.dropzone strong {
  display: block;
  font-size: 14px;
}

.dropzone span {
  font-size: 12px;
  color: var(--muted);
}

.file-chosen {
  margin-top: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--green-700);
}

.status-line {
  font-size: 12.5px;
  margin-top: 10px;
  font-weight: 600;
  color: var(--muted);
}

.status-line.ok {
  color: var(--green-700);
}

.status-line.err {
  color: #b03b38;
}

/* ---------------- Utilities ---------------- */

.mt-0 {
  margin-top: 0;
}

.mt-8 {
  margin-top: 8px;
}

.mt-16 {
  margin-top: 16px;
}

.mt-24 {
  margin-top: 24px;
}

.mt-32 {
  margin-top: 32px;
}

.center {
  text-align: center;
}

.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.split-head .section-head {
  margin-bottom: 0;
}

.text-link {
  font-size: 14px;
  font-weight: 800;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1.5px solid currentColor;
  padding-bottom: 2px;
}

.text-link:hover {
  color: var(--green-900);
}

/* ---------------- Responsive ---------------- */

@media (max-width: 1020px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 460px;
  }

  .hero-photo {
    aspect-ratio: 4 / 3.4;
  }

  .feature-grid,
  .level-grid,
  .flow {
    grid-template-columns: repeat(2, 1fr);
  }

  .teacher-grid,
  .price-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-nav {
    position: static;
    display: flex;
    flex-wrap: wrap;
  }
}

@media (max-width: 860px) {
  .header-inner {
    min-height: 66px;
    flex-wrap: wrap;
  }

  .nav-toggle {
    display: grid;
  }

  .primary-nav {
    display: none;
    width: 100%;
    padding: 6px 0 16px;
  }

  .primary-nav.open {
    display: block;
  }

  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .primary-nav a {
    border-radius: 10px;
    padding: 12px 14px;
  }

  .primary-nav a.nav-cta {
    margin: 8px 0 0;
    text-align: center;
  }

  .hero {
    padding: 44px 0 56px;
  }

  .hero-card-top {
    left: -8px;
  }

  .hero-card-bottom {
    right: -6px;
    bottom: 12px;
  }

  .section {
    padding: 64px 0;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .cta-band {
    padding: 32px 26px;
    text-align: center;
    justify-content: center;
  }

  .cta-band .btn {
    width: 100%;
  }

  .material-grid,
  .audio-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .teacher-hero-card {
    grid-template-columns: 1fr;
    padding: 26px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 18px;
  }

  .section {
    padding: 52px 0;
  }

  .feature-grid,
  .level-grid,
  .flow,
  .price-grid,
  .teacher-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    font-size: 31px;
  }

  .hero-lead {
    font-size: 15.5px;
  }

  .hero-facts {
    gap: 18px 26px;
  }

  .hero-facts div strong {
    font-size: 21px;
  }

  .hero-card {
    font-size: 12px;
    padding: 10px 13px;
    gap: 9px;
  }

  .hero-card .icon-round {
    width: 30px;
    height: 30px;
    font-size: 14px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-card,
  .admin-panel {
    padding: 22px 18px;
  }

  .panel-body {
    padding: 6px 16px 16px;
  }

  .panel-head {
    padding: 18px 16px;
  }

  .notice-item {
    grid-template-columns: auto 1fr;
    gap: 12px;
  }

  .notice-date {
    grid-column: 2;
    padding-top: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .page-hero {
    padding: 36px 0 40px;
  }

  .audio-card {
    padding: 18px;
  }

  .tabbar {
    width: 100%;
    justify-content: space-between;
  }

  .tabbar button {
    flex: 1;
    padding: 9px 10px;
    font-size: 13px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 14.5px;
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
