:root {
  --rose: #e8467c;
  --rose-dark: #d13869;
  --purple: #5d2e5f;
  --coral: #f47b7b;
  --ink: #1a1a1a;
  --muted: #6b7280;
  --line: #f3d5df;
  --soft: #fcf0f4;
  --soft-2: #f9e5ed;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(93, 46, 95, 0.14);
}

body.course-yle {
  --rose: #159a9c;
  --rose-dark: #0f7778;
  --purple: #255b67;
  --coral: #f5b76b;
  --line: #bfe8e4;
  --soft: #eefbf9;
  --soft-2: #dff6f2;
  --shadow: 0 24px 70px rgba(37, 91, 103, 0.14);
  --accent-rgb: 21, 154, 156;
  --deep-rgb: 37, 91, 103;
  --warm-rgb: 245, 183, 107;
  --hero-edge: #f7fffd;
}

body.course-gept {
  --rose: #6f57d8;
  --rose-dark: #5940bd;
  --purple: #3b2a72;
  --coral: #d9a441;
  --line: #d8cffc;
  --soft: #f3f0ff;
  --soft-2: #e8e2ff;
  --shadow: 0 24px 70px rgba(59, 42, 114, 0.14);
  --accent-rgb: 111, 87, 216;
  --deep-rgb: 59, 42, 114;
  --warm-rgb: 217, 164, 65;
  --hero-edge: #fffaf0;
}

body.course-toeic {
  --rose: #2368c4;
  --rose-dark: #1c55a3;
  --purple: #17365f;
  --coral: #c59b3b;
  --line: #c8ddf8;
  --soft: #edf5ff;
  --soft-2: #dfeeff;
  --shadow: 0 24px 70px rgba(23, 54, 95, 0.14);
  --accent-rgb: 35, 104, 196;
  --deep-rgb: 23, 54, 95;
  --warm-rgb: 197, 155, 59;
  --hero-edge: #fffaf0;
}

body.course-math {
  --rose: #159a9c;
  --rose-dark: #0f7778;
  --purple: #17365f;
  --coral: #d9a441;
  --line: #c8e6e3;
  --soft: #eefbf9;
  --soft-2: #dff6f2;
  --shadow: 0 24px 70px rgba(23, 54, 95, 0.14);
  --accent-rgb: 21, 154, 156;
  --deep-rgb: 23, 54, 95;
  --warm-rgb: 217, 164, 65;
  --hero-edge: #fffaf0;
}

.course-page .site-header {
  border-bottom-color: rgba(var(--accent-rgb), 0.14);
}

.course-page .button.primary {
  box-shadow: 0 14px 34px rgba(var(--accent-rgb), 0.24);
}

.course-page .button.secondary {
  border-color: rgba(var(--deep-rgb), 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, "Noto Sans TC", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(232, 70, 124, 0.12);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--purple);
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: #463548;
  font-size: 15px;
  font-weight: 650;
}

.nav-links a:hover {
  color: var(--rose);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
}

.button.primary {
  color: var(--white);
  background: var(--rose);
  box-shadow: 0 14px 34px rgba(232, 70, 124, 0.26);
}

.button.primary:hover {
  background: var(--rose-dark);
}

.button.secondary {
  color: var(--purple);
  background: var(--white);
  border-color: rgba(93, 46, 95, 0.2);
}

.page-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(244, 123, 123, 0.24), transparent 26%),
    linear-gradient(135deg, var(--soft-2), var(--white) 54%, #fff8fa);
}

.course-page .page-hero {
  background:
    radial-gradient(circle at 16% 0%, rgba(var(--warm-rgb), 0.2), transparent 28%),
    radial-gradient(circle at 86% 14%, rgba(var(--accent-rgb), 0.13), transparent 30%),
    linear-gradient(135deg, var(--soft-2), var(--white) 56%, var(--hero-edge));
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.78fr);
  gap: 56px;
  align-items: center;
  max-width: 1180px;
  min-height: 620px;
  margin: 0 auto;
  padding: 92px 24px 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--rose);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0;
}

.exam-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  min-height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--purple);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(232, 70, 124, 0.14);
  font-size: 13px;
  font-weight: 950;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--purple);
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  font-family: Georgia, "Noto Serif TC", serif;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.1;
}

.hero-copy {
  max-width: 740px;
  margin: 24px 0 0;
  color: #514456;
  font-size: 19px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.proof-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 680px;
  margin-top: 38px;
}

.proof-row.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  max-width: 900px;
}

.proof {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(232, 70, 124, 0.12);
}

.proof strong {
  display: block;
  color: var(--purple);
  font-size: 24px;
}

.proof span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.visual-card {
  position: relative;
  min-height: 460px;
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(93, 46, 95, 0.95), rgba(232, 70, 124, 0.9) 58%, rgba(244, 123, 123, 0.9));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.course-page .visual-card {
  background: linear-gradient(160deg, rgba(var(--deep-rgb), 0.96), rgba(var(--accent-rgb), 0.9) 58%, rgba(var(--warm-rgb), 0.82));
}

.visual-card::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 24px;
}

.visual-card img {
  position: absolute;
  inset: 20px 20px auto;
  width: calc(100% - 40px);
  height: 62%;
  object-fit: cover;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(33, 19, 35, 0.18);
}

.visual-card-image-only {
  display: grid;
  min-height: 460px;
  padding: 28px;
}

.visual-card-image-only::before {
  display: none;
}

.visual-card-image-only img {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 404px;
  padding: 0;
  object-fit: cover;
  border-radius: 24px;
}

.course-page .visual-card-image-only img {
  object-fit: contain;
  background: var(--hero-edge);
}

.course-math .visual-card-image-only img.math-hero-photo {
  height: 100%;
  min-height: 404px;
  object-fit: cover;
  padding: 0;
}

.visual-content {
  position: absolute;
  inset: auto 26px 26px;
  color: var(--white);
}

.visual-content h2 {
  color: var(--white);
  font-size: 30px;
  line-height: 1.18;
}

.visual-content p {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.7;
}

.course-math .visual-card img {
  height: 50%;
  object-fit: contain;
  padding: 18px;
}

.course-math .visual-card img.math-hero-photo {
  height: 54%;
  object-fit: cover;
  padding: 0;
}

.course-math .visual-content h2 {
  font-size: 28px;
}

.section {
  padding: 82px 24px;
}

.section.soft {
  background: linear-gradient(135deg, var(--soft), #fff);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-heading h2 {
  font-size: clamp(30px, 4vw, 46px);
}

.section-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.lead {
  max-width: 880px;
  color: #3f3543;
  font-size: 18px;
  line-height: 2;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-height: 100%;
  padding: 28px;
  border: 1px solid rgba(232, 70, 124, 0.14);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 16px 45px rgba(93, 46, 95, 0.08);
}

.card h3 {
  font-size: 23px;
  line-height: 1.3;
}

.card p,
.card li {
  color: #514456;
  line-height: 1.75;
}

.card ul {
  padding-left: 20px;
}

.course-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-color: var(--course-border, rgba(232, 70, 124, 0.14));
  box-shadow: 0 16px 45px var(--course-card-glow, rgba(93, 46, 95, 0.08));
}

.course-card p {
  flex: 1;
}

.course-card .button {
  margin-top: auto;
  border-color: transparent;
  background: var(--course-tone, var(--rose));
  box-shadow: 0 14px 34px var(--course-glow, rgba(232, 70, 124, 0.2));
}

.course-card .button:hover {
  background: var(--course-tone-dark, var(--rose-dark));
}

.course-card .tag {
  color: var(--course-tone, var(--rose));
  background: var(--course-tag-bg, var(--soft));
}

.course-card.tone-yle {
  --course-tone: #159a9c;
  --course-tone-dark: #0f7778;
  --course-glow: rgba(21, 154, 156, 0.22);
  --course-card-glow: rgba(21, 154, 156, 0.08);
  --course-border: rgba(21, 154, 156, 0.18);
  --course-thumb-border: rgba(21, 154, 156, 0.2);
  --course-tag-bg: #eefbf9;
}

.course-card.tone-gept {
  --course-tone: #6f57d8;
  --course-tone-dark: #5940bd;
  --course-glow: rgba(111, 87, 216, 0.22);
  --course-card-glow: rgba(111, 87, 216, 0.08);
  --course-border: rgba(111, 87, 216, 0.18);
  --course-thumb-border: rgba(111, 87, 216, 0.2);
  --course-tag-bg: #f3f0ff;
}

.course-card.tone-toeic {
  --course-tone: #2368c4;
  --course-tone-dark: #1c55a3;
  --course-glow: rgba(35, 104, 196, 0.22);
  --course-card-glow: rgba(35, 104, 196, 0.08);
  --course-border: rgba(35, 104, 196, 0.18);
  --course-thumb-border: rgba(35, 104, 196, 0.2);
  --course-tag-bg: #edf5ff;
}

.course-card.tone-math {
  --course-tone: #159a9c;
  --course-tone-dark: #0f7778;
  --course-glow: rgba(21, 154, 156, 0.22);
  --course-card-glow: rgba(21, 154, 156, 0.08);
  --course-border: rgba(21, 154, 156, 0.18);
  --course-thumb-border: rgba(21, 154, 156, 0.2);
  --course-tag-bg: #eefbf9;
}

.course-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
  background: var(--soft);
  border: 1px solid var(--course-thumb-border, rgba(232, 70, 124, 0.14));
}

.course-card .tag {
  align-self: flex-start;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  color: var(--rose);
  background: var(--soft);
  font-size: 13px;
  font-weight: 900;
}

.level-table {
  overflow: hidden;
  border: 1px solid rgba(232, 70, 124, 0.16);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 16px 45px rgba(93, 46, 95, 0.08);
}

.level-row {
  display: grid;
  grid-template-columns: 190px 1fr 1.1fr;
  gap: 0;
  border-top: 1px solid rgba(232, 70, 124, 0.12);
}

.level-row:first-child {
  border-top: 0;
}

.level-cell {
  padding: 22px;
  line-height: 1.7;
}

.level-cell:first-child {
  color: var(--purple);
  background: #fff8fa;
  font-weight: 950;
}

.course-page .level-cell:first-child {
  background: var(--soft);
}

.media-band {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 32px;
  align-items: center;
}

.photo-visual {
  display: block;
  width: 100%;
  min-height: 340px;
  object-fit: cover;
  border-radius: 28px;
  background: var(--soft);
  border: 1px solid rgba(232, 70, 124, 0.16);
  box-shadow: var(--shadow);
}

.photo-visual.contain-visual {
  object-fit: contain;
  padding: 26px;
  background: var(--white);
}

.method-list {
  display: grid;
  gap: 14px;
}

.method-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  background: #fff8fa;
}

.course-page .method-item {
  background: var(--soft);
}

.method-item strong {
  display: block;
  color: var(--purple);
  margin-bottom: 4px;
}

.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: var(--white);
  background: var(--rose);
  font-weight: 950;
}

.cta {
  color: var(--white);
  background: linear-gradient(135deg, var(--purple), var(--rose) 68%, var(--coral));
}

.cta h2,
.cta p {
  color: var(--white);
}

.cta p {
  opacity: 0.86;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer {
  padding: 34px 24px;
  color: rgba(255, 255, 255, 0.72);
  background: #211323;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  max-width: 1180px;
  margin: 0 auto;
}

.home-hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(252, 240, 244, 0.52), rgba(255, 255, 255, 0.98) 68%),
    radial-gradient(circle at 88% 12%, rgba(232, 70, 124, 0.14), transparent 28%);
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(93, 46, 95, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(93, 46, 95, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.72), transparent 74%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  display: block;
  max-width: 1180px;
  min-height: 620px;
  margin: 0 auto;
  padding: 118px 24px 96px;
}

.home-hero-copy h1 {
  max-width: 860px;
  font-size: clamp(48px, 6.2vw, 88px);
  line-height: 1.02;
}

.home-hero-copy h1 span {
  display: inline;
}

.home-hero-copy p {
  max-width: 780px;
  margin: 28px 0 0;
  color: #514456;
  font-size: 20px;
  line-height: 1.9;
}

.home-hero-copy .hero-copy-mobile {
  display: none;
}

.home-trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 720px;
  margin-top: 32px;
}

.home-trust-line span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid rgba(93, 46, 95, 0.13);
  border-radius: 999px;
  color: #514456;
  background: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 800;
}

.home-hero-panel {
  min-height: 486px;
  padding: 30px;
  border: 1px solid rgba(93, 46, 95, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 32px 80px rgba(93, 46, 95, 0.1);
  backdrop-filter: blur(18px);
}

.home-panel-top {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(232, 70, 124, 0.14);
}

.home-panel-top span {
  color: var(--muted);
  font-weight: 800;
}

.home-panel-top strong {
  color: var(--purple);
}

.home-path {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.home-path::before {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 26px;
  left: 25px;
  width: 1px;
  background: linear-gradient(180deg, rgba(232, 70, 124, 0.5), rgba(93, 46, 95, 0.16));
}

.home-path div {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-radius: 0;
  background: transparent;
}

.home-path span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(232, 70, 124, 0.25);
  border-radius: 50%;
  color: var(--rose);
  background: #fff8fa;
  font-weight: 950;
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.86);
}

.home-path strong,
.home-path small {
  grid-column: 2;
}

.home-path strong {
  color: var(--purple);
  font-size: 19px;
}

.home-path small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.home-metrics {
  padding: 0 24px 44px;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(93, 46, 95, 0.14);
  border-bottom: 1px solid rgba(93, 46, 95, 0.14);
}

.metric-strip div {
  padding: 32px 22px;
  border-left: 1px solid rgba(93, 46, 95, 0.12);
}

.metric-strip div:first-child {
  border-left: 0;
}

.metric-strip strong {
  display: block;
  color: var(--purple);
  font-size: 30px;
  line-height: 1;
}

.metric-strip span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-weight: 750;
}

.home-section {
  background: var(--white);
}

.home-editorial {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: 64px;
  align-items: start;
}

.home-editorial h2,
.home-split h2 {
  margin-top: 18px;
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.08;
}

.home-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(232, 70, 124, 0.16);
}

.home-feature-list article {
  padding: 28px 0;
  border-bottom: 1px solid rgba(232, 70, 124, 0.16);
}

.home-feature-list article:nth-child(odd) {
  padding-right: 28px;
}

.home-feature-list article:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid rgba(232, 70, 124, 0.16);
}

.home-feature-list strong {
  display: block;
  color: var(--purple);
  font-size: 22px;
}

.home-feature-list p {
  margin: 12px 0 0;
  color: #514456;
  line-height: 1.8;
}

.home-feature-list.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-feature-list.compact article {
  padding: 26px 22px;
  border-left: 1px solid rgba(232, 70, 124, 0.16);
}

.home-feature-list.compact article:first-child {
  border-left: 0;
}

.home-course-list {
  display: grid;
  gap: 14px;
}

.home-course-row {
  display: grid;
  grid-template-columns: 110px minmax(180px, 0.44fr) 1fr;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(232, 70, 124, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1px 0 rgba(93, 46, 95, 0.04);
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.home-course-row:hover {
  border-color: rgba(232, 70, 124, 0.36);
  background: #ffffff;
  transform: translateY(-2px);
}

.home-course-row span {
  color: var(--rose);
  font-weight: 950;
}

.home-course-row strong {
  color: var(--purple);
  font-size: 24px;
}

.home-course-row p {
  margin: 0;
  color: #514456;
  line-height: 1.7;
}

.home-course-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(93, 46, 95, 0.12);
  color: #514456;
  font-weight: 750;
}

.home-course-footer a {
  color: var(--rose);
  font-weight: 950;
}

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

.original-course-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 26px;
  border: 1px solid rgba(232, 70, 124, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(93, 46, 95, 0.08);
}

.original-course-card.math {
  border-color: rgba(93, 46, 95, 0.18);
}

.course-code,
.course-mini-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin-bottom: 18px;
  border-radius: 18px;
  color: var(--white);
  background: linear-gradient(135deg, var(--rose), var(--purple));
  font-weight: 950;
}

.course-mini-logo {
  padding: 8px;
  object-fit: contain;
  background: var(--white);
  border: 1px solid rgba(93, 46, 95, 0.14);
}

.original-course-card h3 {
  color: var(--purple);
  font-size: 23px;
  line-height: 1.25;
}

.course-age {
  margin: 8px 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.original-course-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  color: #514456;
  list-style: none;
  line-height: 1.55;
}

.original-course-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--rose);
  font-weight: 950;
}

.original-course-card .button {
  margin-top: auto;
}

.home-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  gap: 64px;
  align-items: center;
}

.home-teacher-card,
.home-news {
  padding: 34px;
  border: 1px solid rgba(232, 70, 124, 0.14);
  border-radius: 16px;
  background: #fff8fa;
}

.home-teacher-list {
  display: grid;
  gap: 18px;
}

.home-teacher-card strong {
  display: block;
  color: var(--purple);
  font-size: 28px;
}

.math-teacher-card {
  border-color: rgba(21, 154, 156, 0.22);
  background:
    linear-gradient(135deg, rgba(238, 251, 249, 0.92), rgba(255, 250, 240, 0.9)),
    radial-gradient(circle at 92% 14%, rgba(217, 164, 65, 0.18), transparent 28%);
  box-shadow: 0 18px 50px rgba(23, 54, 95, 0.08);
}

.math-teacher-card strong {
  color: #17365f;
}

.home-teacher-card p,
.home-news p {
  color: #514456;
  line-height: 1.8;
}

.home-results {
  border-top: 1px solid rgba(232, 70, 124, 0.12);
  border-bottom: 1px solid rgba(232, 70, 124, 0.12);
}

.result-block {
  margin-top: 42px;
  padding-top: 34px;
  border-top: 1px solid rgba(232, 70, 124, 0.14);
}

.result-block:first-of-type {
  margin-top: 0;
}

.result-block h3 {
  margin-bottom: 18px;
  font-size: clamp(24px, 3vw, 34px);
}

.certificate-grid {
  display: grid;
  gap: 20px;
  max-width: 920px;
}

.certificate-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.certificate-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.certificate-grid figure {
  margin: 0;
  padding: 14px;
  border: 1px solid rgba(232, 70, 124, 0.14);
  border-radius: 18px;
  background: #fff8fa;
  box-shadow: 0 18px 45px rgba(93, 46, 95, 0.08);
}

.certificate-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 12px;
  background: var(--white);
}

.certificate-grid.landscape img {
  aspect-ratio: 16 / 11;
  object-fit: contain;
}

.certificate-grid figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.home-news {
  display: grid;
  gap: 22px;
}

.home-news article + article {
  padding-top: 22px;
  border-top: 1px solid rgba(232, 70, 124, 0.16);
}

.home-news time {
  display: block;
  color: var(--rose);
  font-size: 13px;
  font-weight: 950;
}

.home-news strong {
  display: block;
  margin-top: 8px;
  color: var(--purple);
  font-size: 21px;
}

.facebook-news .button {
  margin-top: 12px;
}

.contact-section {
  background:
    radial-gradient(circle at 18% 10%, rgba(232, 70, 124, 0.1), transparent 28%),
    linear-gradient(180deg, #fff, #fff8fa);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 24px;
  align-items: stretch;
}

.map-card,
.contact-card,
.contact-form,
.contact-action-panel {
  border: 1px solid rgba(232, 70, 124, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 50px rgba(93, 46, 95, 0.08);
  overflow: hidden;
}

.map-card iframe {
  display: block;
  width: 100%;
  min-height: 390px;
  border: 0;
}

.map-fallback {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-top: 1px solid rgba(232, 70, 124, 0.14);
  color: #514456;
  font-size: 14px;
  font-weight: 750;
}

.map-fallback a {
  color: var(--rose);
  font-weight: 950;
}

.contact-card {
  padding: 30px;
}

.contact-card h3 {
  margin-bottom: 22px;
  font-size: 28px;
}

.contact-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.contact-card dt {
  color: var(--purple);
  font-weight: 950;
}

.contact-card dd {
  margin: 0 0 12px;
  color: #514456;
  line-height: 1.7;
}

.contact-card a {
  color: var(--rose);
  font-weight: 900;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
  padding: 28px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--purple);
  font-size: 14px;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(93, 46, 95, 0.16);
  border-radius: 12px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form .full {
  grid-column: 1 / -1;
}

.contact-form button {
  justify-self: start;
}

.contact-action-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: 26px;
  margin-top: 24px;
  padding: 30px;
}

.contact-action-panel .eyebrow {
  margin-bottom: 12px;
}

.contact-action-panel h3 {
  font-size: 30px;
}

.contact-action-panel p {
  max-width: 720px;
  margin: 14px 0 0;
  color: #514456;
  font-size: 16px;
  line-height: 1.8;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-content: start;
  justify-content: flex-end;
}

.site-footer-rich {
  padding-bottom: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.15fr 0.8fr 1fr;
  gap: 34px;
  align-items: start;
}

.footer-grid > div {
  display: grid;
  gap: 10px;
}

.footer-grid h3 {
  color: var(--white);
  font-size: 17px;
}

.footer-grid p,
.footer-grid a,
.footer-bottom {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.footer-grid a:hover {
  color: var(--white);
}

.footer-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 12px;
  background: var(--white);
}

.social-circle-grid {
  display: flex;
  gap: 16px;
  align-items: center;
}

.social-circle-link {
  display: inline-flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--white);
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
  transition: transform 0.18s ease, filter 0.18s ease;
}

.social-circle-link:hover {
  color: var(--white);
  filter: brightness(1.05);
  transform: translateY(-2px);
}

.social-circle-link.line {
  background:
    radial-gradient(circle at 50% 50%, #ffffff 0 39%, transparent 40%),
    #06c755;
}

.social-circle-link.facebook {
  background: #4267b2;
}

.social-circle-link span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 950;
  line-height: 1;
}

.social-circle-link.line span {
  color: #06c755;
  font-size: 15px;
  letter-spacing: 0;
}

.social-circle-link.facebook span {
  color: var(--white);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 54px;
  transform: translateY(8px);
}

.footer-bottom {
  max-width: 1180px;
  margin: 28px auto 0;
  padding: 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.course-thumb-math {
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--purple);
  background:
    linear-gradient(135deg, rgba(252, 240, 244, 0.96), rgba(255, 255, 255, 0.82)),
    radial-gradient(circle at 22% 18%, rgba(232, 70, 124, 0.22), transparent 26%),
    radial-gradient(circle at 76% 78%, rgba(93, 46, 95, 0.16), transparent 24%);
}

.course-thumb-math span {
  color: var(--rose);
  font-size: 15px;
  font-weight: 950;
  text-transform: uppercase;
}

.course-thumb-math strong {
  margin-top: 8px;
  font-size: 28px;
  line-height: 1.2;
}

.course-card.tone-math .course-thumb-math {
  color: #17365f;
  background:
    linear-gradient(135deg, rgba(238, 251, 249, 0.96), rgba(255, 250, 240, 0.86)),
    radial-gradient(circle at 22% 18%, rgba(21, 154, 156, 0.2), transparent 26%),
    radial-gradient(circle at 78% 76%, rgba(217, 164, 65, 0.18), transparent 25%);
}

.course-card.tone-math .course-thumb-math span {
  color: #159a9c;
}

.mobile-sticky-cta {
  display: none;
}

@media (max-width: 900px) {
  .nav {
    min-height: 76px;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand span {
    font-size: 18px;
    white-space: nowrap;
  }

  .nav-links {
    width: auto;
    flex: 0 0 auto;
    gap: 0;
    overflow: visible;
    padding: 0;
  }

  .nav-links a:not(.button) {
    display: none;
  }

  .nav-links .button {
    min-height: 44px;
    padding: 0 18px;
    font-size: 15px;
    white-space: nowrap;
  }

  .hero-inner,
  .media-band,
  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
    padding-top: 52px;
  }

  .visual-card-image-only {
    min-height: 360px;
    padding: 20px;
  }

  .visual-card-image-only img {
    position: static;
    width: 100%;
    height: 100%;
    min-height: 318px;
    object-fit: contain;
    padding: 0;
  }

  .course-math .visual-card-image-only img.math-hero-photo {
    object-fit: cover;
  }

  .proof-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .proof-row.four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .proof {
    padding: 16px 14px;
  }

  .proof strong {
    font-size: 22px;
  }

  .proof span {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.45;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 14px;
  }

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

  .level-cell {
    padding: 18px;
  }

  .home-hero-inner,
  .home-editorial,
  .home-split,
  .home-course-row {
    grid-template-columns: 1fr;
  }

  .home-hero-inner {
    min-height: auto;
    padding-top: 58px;
  }

  .home-hero-copy h1 span {
    display: block;
  }

  .metric-strip,
  .home-feature-list,
  .home-feature-list.compact,
  .original-course-grid,
  .certificate-grid.three,
  .certificate-grid.two,
  .contact-grid,
  .contact-form,
  .contact-action-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-actions {
    justify-content: flex-start;
  }

  .cta-actions {
    justify-content: flex-start;
  }

  .metric-strip div,
  .home-feature-list article,
  .home-feature-list article:nth-child(odd),
  .home-feature-list article:nth-child(even),
  .home-feature-list.compact article {
    padding-left: 0;
    padding-right: 0;
    border-left: 0;
  }
}

@media (max-width: 700px) {
  body {
    padding-bottom: 74px;
  }

  .site-header {
    position: sticky;
  }

  .nav {
    min-height: 76px;
    align-items: center;
    flex-direction: row;
    gap: 12px;
    padding: 12px 18px;
  }

  .brand {
    min-width: 0;
    gap: 10px;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand span {
    font-size: 18px;
    white-space: nowrap;
  }

  .nav-links {
    width: auto;
    flex: 0 0 auto;
    gap: 0;
    overflow: visible;
    padding: 0;
  }

  .nav-links a:not(.button) {
    display: none;
  }

  .nav-links .button {
    min-height: 44px;
    padding: 0 18px;
    font-size: 15px;
    white-space: nowrap;
  }

  .home-hero-inner {
    padding: 72px 22px 36px;
  }

  .home-hero-copy .eyebrow {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .home-hero-copy h1 {
    max-width: 360px;
    font-size: clamp(48px, 13.2vw, 58px);
    line-height: 1.08;
  }

  .home-hero-copy h1 span {
    display: block;
  }

  .home-hero-copy .hero-copy-full {
    display: none;
  }

  .home-hero-copy .hero-copy-mobile {
    display: block;
  }

  .home-hero-copy p {
    margin-top: 22px;
    font-size: 19px;
    line-height: 1.75;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-actions .button {
    min-width: 142px;
  }

  .visual-card {
    min-height: 390px;
    border-radius: 24px;
  }

  .visual-card::before {
    inset: 14px;
    border-radius: 20px;
  }

  .visual-card img {
    inset: 18px 18px auto;
    width: calc(100% - 36px);
    height: 44%;
    border-radius: 18px;
    object-fit: contain;
    padding: 12px;
  }

  .visual-content {
    inset: auto 22px 24px;
  }

  .visual-content h2 {
    font-size: 25px;
    line-height: 1.22;
  }

  .visual-content p {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.65;
  }

  .visual-card-image-only {
    min-height: 318px;
    padding: 18px;
  }

  .visual-card-image-only img {
    position: static;
    width: 100%;
    height: 100%;
    min-height: 282px;
    object-fit: contain;
    padding: 0;
  }

  .course-math .visual-card-image-only img.math-hero-photo {
    object-fit: cover;
  }

  .home-trust-line {
    margin-top: 26px;
    gap: 8px;
  }

  .home-trust-line span {
    min-height: 32px;
    padding: 0 12px;
    font-size: 12px;
  }

  .mobile-sticky-cta {
    position: fixed;
    right: 14px;
    bottom: 14px;
    left: 14px;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 10px;
    border: 1px solid rgba(93, 46, 95, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 50px rgba(93, 46, 95, 0.2);
    backdrop-filter: blur(18px);
  }

  .mobile-sticky-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border-radius: 999px;
    color: var(--purple);
    font-weight: 900;
    background: var(--soft);
  }

  .mobile-sticky-cta a:first-child {
    color: var(--white);
    background: var(--rose);
    box-shadow: 0 10px 24px rgba(232, 70, 124, 0.22);
  }
}
