:root {
  --ink: #161827;
  --muted: #5c6070;
  --paper: #f7f5ee;
  --line: #ded8c8;
  --teal: #008c96;
  --teal-soft: #d9f0ed;
  --coral: #b90726;
  --gold: #d99720;
  --green: #0e3a36;
  --plum: #4a2038;
  --cream: #fffaf0;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(22, 24, 39, 0.16);
  --shadow-soft: 0 14px 38px rgba(22, 24, 39, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(22, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(22, 24, 39, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #fffdf7 0%, var(--paper) 420px, #f3efe4 100%);
  background-size: 44px 44px, 44px 44px, auto;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 54px);
  background: rgba(255, 253, 247, 0.92);
  border-bottom: 1px solid rgba(222, 216, 200, 0.9);
  box-shadow: 0 10px 30px rgba(22, 24, 39, 0.06);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: 56px;
  height: 56px;
  border: 2px solid var(--white);
  border-radius: 8px;
  object-fit: cover;
  object-position: 18% 52%;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(22, 24, 39, 0.16);
}

.brand strong,
h1,
h2,
h3 {
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
}

.brand strong {
  display: block;
  font-size: 1rem;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.main-nav a:hover {
  color: var(--coral);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 9px;
  border: 1px solid rgba(185, 7, 38, 0.28);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 3px 0;
  background: var(--coral);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  min-height: calc(100vh - 83px);
  padding: clamp(56px, 8vw, 108px) clamp(18px, 5vw, 72px) 64px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0 0 auto auto;
  width: min(44vw, 560px);
  height: min(44vw, 560px);
  background:
    linear-gradient(135deg, transparent 32%, rgba(0, 140, 150, 0.18) 32% 40%, transparent 40%),
    linear-gradient(45deg, transparent 42%, rgba(185, 7, 38, 0.14) 42% 49%, transparent 49%),
    linear-gradient(90deg, rgba(217, 151, 32, 0.12), transparent 70%);
  content: "";
  pointer-events: none;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 12px;
  background: linear-gradient(90deg, var(--coral), var(--gold), var(--teal));
  content: "";
}

.hero-copy {
  position: relative;
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2.8rem, 6.4vw, 5.9rem);
  line-height: 0.98;
  overflow-wrap: break-word;
}

.hero-text {
  max-width: 630px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
}

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

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

.button.primary {
  background: linear-gradient(135deg, var(--coral), #8f1029);
  color: var(--white);
  box-shadow: 0 14px 30px rgba(185, 7, 38, 0.22);
}

.button.primary:hover {
  background: linear-gradient(135deg, #9e061f, #711027);
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.78);
  color: var(--green);
}

.hero-panel {
  position: relative;
  align-self: center;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.math-card {
  min-height: 430px;
  padding: clamp(24px, 4vw, 38px);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 58, 54, 0.96), rgba(74, 32, 56, 0.88)),
    repeating-linear-gradient(0deg, transparent 0 35px, rgba(255, 255, 255, 0.07) 36px 37px),
    repeating-linear-gradient(90deg, transparent 0 35px, rgba(255, 255, 255, 0.045) 36px 37px),
    var(--green);
  color: var(--white);
  box-shadow: var(--shadow);
}

.card-label {
  display: inline-flex;
  margin-bottom: 62px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.math-card h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4vw, 3.7rem);
  line-height: 1;
}

.math-card p {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.75);
}

.formula-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.formula-line span {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.9);
  font-weight: 700;
}

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

.metric-grid div {
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--cream);
  box-shadow: var(--shadow-soft);
}

.metric-grid strong {
  display: block;
  color: var(--coral);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.9rem;
  line-height: 1;
}

.metric-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.section {
  padding: clamp(58px, 8vw, 108px) clamp(18px, 5vw, 72px);
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding-top: 0;
  background: var(--line);
}

.service {
  min-height: 240px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--white);
  border-top: 5px solid transparent;
}

.service:nth-child(1) {
  border-top-color: var(--coral);
}

.service:nth-child(2) {
  border-top-color: var(--gold);
}

.service:nth-child(3) {
  border-top-color: var(--teal);
}

.service span {
  color: var(--teal);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 800;
}

.service h2,
.course-list h3,
.method-grid h3 {
  margin: 18px 0 8px;
  font-size: 1.45rem;
}

.service p,
.course-list p,
.catalog-grid p,
.method-grid p,
.team-grid p,
.about p,
.contact p {
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.split > *,
.about > *,
.contact > * {
  min-width: 0;
}

.split h2,
.section-heading h2,
.about h2,
.contact h2,
.feature-copy h2,
.personalized h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.2vw, 4.2rem);
  line-height: 1.02;
}

.section-note {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.05rem;
}

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

.course-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--coral);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.course-list h3,
.course-list p {
  margin-top: 0;
}

.catalog {
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0.92), rgba(255, 255, 255, 0.96)),
    var(--white);
}

.personalized {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
  background: var(--green);
  color: var(--white);
}

.personalized .eyebrow,
.personalized p {
  color: rgba(255, 255, 255, 0.74);
}

.personalized-button {
  margin-top: 28px;
  border-color: rgba(255, 255, 255, 0.88);
  background: var(--white);
  color: var(--green);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

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

.personalized-grid {
  display: grid;
  gap: 14px;
}

.personalized-grid article {
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.personalized-grid h3 {
  margin: 0 0 8px;
  font-size: 1.28rem;
}

.personalized-grid p {
  margin: 0;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.catalog-grid article {
  min-height: 230px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.catalog-grid article:nth-child(3n + 1) {
  border-top: 5px solid var(--coral);
}

.catalog-grid article:nth-child(3n + 2) {
  border-top: 5px solid var(--teal);
}

.catalog-grid article:nth-child(3n) {
  border-top: 5px solid var(--gold);
}

.catalog-grid span {
  color: var(--plum);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-grid h3 {
  margin: 18px 0 10px;
  font-size: 1.25rem;
}

.catalog-grid p {
  margin: 0;
}

.course-feature {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: var(--white);
}

.feature-media {
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(185, 7, 38, 0.1), transparent 44%),
    linear-gradient(45deg, transparent 0 48%, rgba(0, 140, 150, 0.12) 48% 52%, transparent 52%),
    var(--paper);
  box-shadow: var(--shadow);
}

.subject-board {
  display: grid;
  align-content: center;
  gap: 18px;
  min-height: 430px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--line);
}

.subject-board span {
  display: block;
  padding: 16px 18px;
  border-radius: 8px;
  background: var(--white);
  color: var(--green);
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  font-weight: 800;
  box-shadow: 0 10px 28px rgba(18, 59, 51, 0.08);
}

.feature-copy p {
  max-width: 680px;
  color: var(--muted);
}

.topic-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 680px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.topic-list li {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--green);
  font-weight: 800;
}

.method {
  background:
    linear-gradient(135deg, rgba(0, 140, 150, 0.16), rgba(217, 151, 32, 0.11)),
    var(--teal-soft);
}

.section-heading {
  max-width: 760px;
}

.catalog-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: 100%;
}

.catalog-heading .button {
  flex: 0 0 auto;
  border-color: #071636;
  background: var(--white);
  color: #071636;
}

.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 42px;
}

.method-grid article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(0, 140, 150, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--plum);
  color: var(--gold);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.check-list span {
  padding: 9px 12px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--green);
  font-weight: 800;
}

.team {
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.team-grid article {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  column-gap: 16px;
  align-items: start;
  padding: 16px;
  border: 1px solid rgba(14, 58, 54, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--green), var(--plum));
  color: var(--white);
  box-shadow: var(--shadow-soft);
}

.team-grid img {
  grid-row: span 3;
  width: 88px;
  height: 88px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  object-fit: contain;
  object-position: center;
  background: var(--white);
}

.team-grid h3 {
  margin: 0 0 2px;
  font-size: 1.2rem;
}

.team-grid p {
  margin: 0;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 700;
}

.team-grid ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.92rem;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--green);
  color: var(--white);
}

.contact .eyebrow,
.contact p {
  color: rgba(255, 255, 255, 0.72);
}

.contact h2 {
  max-width: 820px;
}

.contact p {
  max-width: 680px;
  margin-bottom: 0;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.social-links a,
.footer-social a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 12px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 800;
}

.social-links a {
  color: var(--white);
  opacity: 0.9;
}

.social-links a:hover {
  opacity: 1;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-social a {
  min-height: 36px;
  color: var(--ink);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    padding: 0 0 2px;
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    padding: 8px 10px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--cream);
    font-size: 0.84rem;
    white-space: nowrap;
  }

  .hero,
  .split,
  .about,
  .contact,
  .personalized,
  .course-feature {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .intro-band,
  .method-grid,
  .catalog-grid,
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-media {
    max-width: 520px;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-top: 44px;
  }

  .hero-copy,
  .hero-panel,
  .hero-actions,
  .math-card,
  .metric-grid,
  .section > *,
  .site-footer > * {
    width: 100%;
    max-width: 342px;
  }

  h1 {
    font-size: 2.35rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .intro-band,
  .method-grid,
  .catalog-grid,
  .team-grid,
  .metric-grid,
  .topic-list {
    grid-template-columns: 1fr;
  }

  .catalog-heading {
    align-items: start;
    flex-direction: column;
  }

  .catalog-heading .button {
    width: 100%;
  }

  .team-grid article {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .team-grid img {
    width: 72px;
    height: 72px;
  }

  .math-card {
    min-height: 360px;
  }

  .card-label {
    margin-bottom: 36px;
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .hero-copy,
  .hero-panel,
  .hero-actions,
  .math-card,
  .metric-grid,
  .section > *,
  .site-footer > * {
    max-width: 288px;
  }
}

/* New homepage direction */
body {
  background: #fbfcff;
}

.site-header {
  padding: 18px clamp(22px, 4vw, 58px);
  background: rgba(255, 255, 255, 0.96);
}

.brand-logo {
  width: 64px;
  height: 64px;
  border: 0;
  box-shadow: none;
}

.brand strong {
  color: #071636;
  font-size: 1.42rem;
}

.brand small {
  color: #071636;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.main-nav {
  margin-left: auto;
  color: #071636;
}

.main-nav a {
  position: relative;
}

.main-nav a:first-child {
  color: #e92929;
}

.main-nav a:first-child::after {
  position: absolute;
  right: 8px;
  bottom: -18px;
  left: 8px;
  height: 2px;
  background: #e92929;
  content: "";
}

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef3030, #d51f24);
  color: var(--white);
  font-weight: 800;
  box-shadow: 0 18px 34px rgba(229, 41, 41, 0.24);
}

.hero {
  grid-template-columns: minmax(420px, 0.86fr) minmax(460px, 1.1fr);
  gap: clamp(28px, 3vw, 54px);
  min-height: 640px;
  padding: clamp(58px, 7vw, 96px) clamp(22px, 4vw, 64px) 30px;
  background:
    linear-gradient(135deg, transparent 0 72%, rgba(7, 22, 54, 0.54) 72% 82%, transparent 82%),
    linear-gradient(45deg, transparent 0 78%, rgba(233, 41, 41, 0.7) 78% 88%, transparent 88%),
    #fbfcff;
}

.hero::before {
  inset: 22% auto auto 49%;
  width: 170px;
  height: 116px;
  background-image: radial-gradient(rgba(7, 22, 54, 0.18) 2px, transparent 2px);
  background-size: 18px 18px;
}

.hero::after {
  display: none;
}

.hero-copy {
  align-self: center;
  max-width: 650px;
}

.hero .eyebrow {
  position: relative;
  margin-bottom: 28px;
  color: #e92929;
  font-size: 0.86rem;
  letter-spacing: 0.12em;
}

.hero .eyebrow::after {
  display: block;
  width: 36px;
  height: 2px;
  margin-top: 12px;
  background: #e92929;
  content: "";
}

.hero h1 {
  max-width: 640px;
  color: #071636;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4rem, 6.4vw, 6.3rem);
  font-weight: 800;
  line-height: 0.88;
}

.hero h1 span {
  color: #e92929;
}

.hero-text {
  max-width: 600px;
  margin-top: 28px;
  color: #4b5568;
  font-size: 1.12rem;
}

.button.primary {
  background: linear-gradient(135deg, #ef3030, #d51f24);
  box-shadow: 0 18px 34px rgba(229, 41, 41, 0.24);
}

.button.secondary {
  border-color: #071636;
  background: var(--white);
  color: #071636;
}

.hero-art {
  position: relative;
  align-self: center;
  min-width: 0;
}

.hero-art img {
  width: min(58vw, 820px);
  max-width: none;
  margin-left: clamp(-32px, -2vw, 0px);
  filter: drop-shadow(0 34px 32px rgba(7, 22, 54, 0.2));
}

.course-showcase {
  padding-top: 24px;
  background: var(--white);
}

.showcase-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: 100%;
}

.showcase-heading h2 {
  position: relative;
  margin: 0;
  color: #071636;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
}

.showcase-heading h2::after {
  display: block;
  width: 34px;
  height: 2px;
  margin-top: 8px;
  background: #e92929;
  content: "";
}

.showcase-heading a {
  color: #e92929;
  font-weight: 800;
}

.course-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.course-cards article {
  min-height: 166px;
  padding: 20px;
  border: 1px solid #e7eaf0;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 34px rgba(7, 22, 54, 0.08);
}

.course-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #f1f3f7;
  color: #071636;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-weight: 800;
}

.course-cards article:nth-child(1) {
  border-bottom: 3px solid var(--teal);
}

.course-cards article:nth-child(2) {
  border-bottom: 3px solid #071636;
}

.course-cards article:nth-child(3) {
  border-bottom: 3px solid var(--gold);
}

.course-cards article:nth-child(4) {
  border-bottom: 3px solid #f27620;
}

.course-cards article:nth-child(5) {
  border-bottom: 3px solid #7c3fa3;
}

.course-cards article:nth-child(6) {
  border-bottom: 3px solid #e92929;
}

.course-cards h3 {
  margin: 0 0 6px;
  color: #071636;
  font-size: 1.05rem;
  line-height: 1.12;
}

.course-cards p {
  margin: 0;
  color: #4b5568;
  font-size: 0.9rem;
}

.benefit-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 40px;
  background: #d9dee8;
}

.benefit-row div {
  padding: 8px 26px;
  background: var(--white);
}

.benefit-row strong {
  color: #071636;
  font-size: 1rem;
}

.benefit-row p {
  margin: 4px 0 0;
  color: #4b5568;
  font-size: 0.9rem;
}

@media (max-width: 1080px) {
  .header-cta {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-art img {
    width: min(100%, 720px);
    margin: 0 auto;
  }

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

@media (max-width: 620px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand-logo {
    width: 56px;
    height: 56px;
  }

  .brand strong {
    font-size: 1.12rem;
  }

  .main-nav a:first-child::after {
    display: none;
  }

  .hero {
    padding: 44px 24px 22px;
    overflow: hidden;
  }

  .hero-copy,
  .hero-actions,
  .hero-art,
  .course-showcase > * {
    max-width: 100%;
  }

  .hero-actions {
    max-width: 342px;
  }

  .hero h1 {
    max-width: 340px;
    font-size: 3.05rem;
    line-height: 0.92;
  }

  .hero-text {
    max-width: 330px;
  }

  .hero-art img {
    width: 112%;
    margin-left: -6%;
  }

  .showcase-heading {
    align-items: start;
    flex-direction: column;
  }

  .course-cards,
  .benefit-row {
    grid-template-columns: 1fr;
  }
}

.courses-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  padding: clamp(58px, 8vw, 108px) clamp(22px, 5vw, 72px) 52px;
  background:
    linear-gradient(135deg, transparent 0 70%, rgba(7, 22, 54, 0.1) 70% 82%, transparent 82%),
    #fbfcff;
}

.courses-hero h1 {
  max-width: 860px;
  margin: 0;
  color: #071636;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: 0.94;
}

.courses-hero p {
  max-width: 720px;
  color: #4b5568;
  font-size: 1.12rem;
}

.courses-hero aside {
  display: grid;
  gap: 8px;
  padding: 22px;
  border: 1px solid #e7eaf0;
  border-top: 5px solid #e92929;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 34px rgba(7, 22, 54, 0.08);
}

.courses-hero aside strong {
  color: #071636;
  font-size: 0.86rem;
  text-transform: uppercase;
}

.courses-hero aside span {
  margin-bottom: 8px;
  color: #4b5568;
}

.course-catalog-page {
  display: grid;
  gap: 28px;
  padding: 34px clamp(22px, 5vw, 72px) clamp(64px, 8vw, 110px);
  background: var(--white);
}

.course-detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 44px);
  align-items: center;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid #e7eaf0;
  border-radius: 8px;
  background: #fbfcff;
  box-shadow: 0 18px 34px rgba(7, 22, 54, 0.07);
}

.course-detail img {
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 34px rgba(7, 22, 54, 0.12);
}

.course-detail span {
  color: #e92929;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.course-detail h2 {
  margin: 10px 0 10px;
  color: #071636;
  font-size: clamp(1.8rem, 3vw, 3rem);
  line-height: 1;
}

.course-detail p {
  max-width: 720px;
  color: #4b5568;
  font-size: 1rem;
}

.course-detail ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 22px 0 24px;
  padding: 0;
  list-style: none;
}

.course-detail li {
  position: relative;
  padding-left: 18px;
  color: #071636;
  font-weight: 700;
}

.course-detail li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e92929;
  content: "";
}

.courses-contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(48px, 7vw, 82px) clamp(22px, 5vw, 72px);
  background: #071636;
  color: var(--white);
}

.courses-contact h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.courses-contact p {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
}

@media (max-width: 860px) {
  .courses-hero,
  .course-detail,
  .courses-contact {
    grid-template-columns: 1fr;
  }

  .courses-hero aside {
    max-width: 420px;
  }

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

@media (max-width: 620px) {
  .courses-hero {
    padding: 42px 24px 34px;
    overflow: hidden;
    max-width: 100vw;
  }

  .courses-hero h1 {
    max-width: 342px;
    font-size: 2.72rem;
    line-height: 0.98;
  }

  .courses-hero p {
    max-width: 330px;
  }

  .course-catalog-page {
    display: block;
    padding: 24px 18px 64px;
    overflow: hidden;
    max-width: 100vw;
  }

  .course-detail {
    width: calc(100vw - 36px);
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 14px;
  }

  .course-detail + .course-detail {
    margin-top: 24px;
  }

  .course-detail > * {
    min-width: 0;
  }

  .course-detail img {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: contain;
  }

  .course-detail h2 {
    font-size: 1.72rem;
    overflow-wrap: anywhere;
  }

  .course-detail p {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .course-detail ul {
    grid-template-columns: 1fr;
  }

  .courses-contact {
    padding: 44px 24px;
  }
}
