:root {
  color-scheme: light;
  --blue: #3442a8;
  --blue-dark: #253179;
  --sky: #eaf7ff;
  --sky-strong: #d7ecfb;
  --green: #4fb35c;
  --ink: #141720;
  --muted: #565b70;
  --paper: #ffffff;
  --line: #d8e5f1;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", "Montserrat", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(100deg, rgba(218, 237, 253, 0.86) 0%, rgba(255, 255, 255, 0.95) 48%, rgba(232, 244, 255, 0.9) 100%),
    var(--sky);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1160px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 12px 16px;
  border: 1px solid rgba(52, 66, 168, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 18px 50px rgba(52, 66, 168, 0.1);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

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

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
  color: var(--blue-dark);
  font-size: 0.95rem;
  font-weight: 800;
}

.nav a {
  padding: 8px 0;
}

.section {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.hero {
  min-height: calc(100vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) 360px;
  align-items: center;
  gap: 56px;
  padding: 74px 0 64px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--blue);
  font-family: "Montserrat", Arial, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(3.1rem, 8vw, 6.7rem);
  line-height: 0.95;
  font-weight: 900;
  overflow-wrap: anywhere;
}

h2 {
  max-width: 760px;
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  line-height: 1.02;
  font-weight: 900;
}

h3 {
  font-size: 1.45rem;
  line-height: 1.12;
  font-weight: 900;
}

.lead {
  max-width: 690px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1.55;
  font-weight: 700;
}

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

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 2px solid var(--blue);
  border-radius: 8px;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
}

.button.primary {
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 34px rgba(52, 66, 168, 0.22);
}

.button.ghost {
  color: var(--blue);
  background: rgba(255, 255, 255, 0.6);
}

.hero-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(52, 66, 168, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 22px 64px rgba(52, 66, 168, 0.12);
}

.portrait,
.avatar {
  display: grid;
  place-items: center;
  border: 2px solid rgba(52, 66, 168, 0.2);
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), #6672df);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
}

.portrait {
  width: 128px;
  height: 128px;
  margin: 0 0 28px auto;
  font-size: 2.1rem;
}

.hero-card-title {
  margin: 0;
  color: var(--blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.5rem;
  line-height: 1.2;
  font-weight: 900;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 800;
}

.check-list li {
  position: relative;
  padding-left: 32px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -3px;
  color: var(--green);
  font-size: 1.55rem;
  font-weight: 900;
}

.section-head {
  margin-bottom: 28px;
}

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

.course-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid rgba(52, 66, 168, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.tag {
  width: fit-content;
  margin: 0 0 18px;
  padding: 7px 12px;
  border-radius: 8px;
  color: var(--blue);
  background: var(--sky-strong);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.84rem;
  font-weight: 900;
}

.course-card p:not(.tag) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.5;
  font-weight: 700;
}

.course-card a {
  margin-top: auto;
  color: var(--blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
}

.team-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 36px;
  align-items: center;
  margin-top: 92px;
  padding: 48px;
  border-radius: 8px;
  background: linear-gradient(110deg, rgba(216, 237, 252, 0.82), rgba(255, 255, 255, 0.92));
}

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

.teacher-card-link {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border: 1px solid rgba(52, 66, 168, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.teacher-card-link span,
.teacher-photo span {
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, var(--blue), #6974dd);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
}

.teacher-card-link span {
  width: 74px;
  height: 74px;
  font-size: 2rem;
}

.teacher-card-link strong {
  display: block;
  margin-top: auto;
  color: var(--blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
}

.teacher-card-link small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
}

.teacher-hero {
  min-height: calc(78vh - 82px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  gap: 48px;
  padding: 74px 0 54px;
}

.teacher-photo {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(215, 236, 251, 0.9), rgba(255, 255, 255, 0.92));
  box-shadow: 0 22px 64px rgba(52, 66, 168, 0.12);
}

.teacher-photo span {
  width: 150px;
  height: 150px;
  font-size: 4.2rem;
}

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

.teacher-stats div,
.teacher-panel,
.materials-section {
  border: 1px solid rgba(52, 66, 168, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.teacher-stats div {
  min-height: 150px;
  padding: 24px;
}

.teacher-stats strong {
  display: block;
  color: var(--blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  line-height: 1.05;
  font-weight: 900;
}

.teacher-stats span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
}

.teacher-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 72px;
}

.teacher-panel {
  padding: 30px;
}

.teacher-panel.soft-panel {
  background: linear-gradient(110deg, rgba(216, 237, 252, 0.82), rgba(255, 255, 255, 0.92));
}

.teacher-panel h2,
.materials-section h2 {
  font-size: clamp(1.9rem, 3vw, 3.1rem);
}

.teacher-list {
  display: grid;
  gap: 14px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-size: 1.08rem;
  line-height: 1.48;
  font-weight: 800;
}

.teacher-list li {
  position: relative;
  padding-left: 34px;
}

.teacher-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: -4px;
  color: var(--green);
  font-size: 1.55rem;
  font-weight: 900;
}

.materials-section {
  margin-top: 72px;
  padding: 40px;
}

.section-note {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 700;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.media-pill {
  min-height: 76px;
  padding: 14px;
  border-radius: 8px;
  color: var(--blue-dark);
  background: var(--sky-strong);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.media-pill span {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.media-split {
  display: grid;
  gap: 34px;
}

.media-split h3 {
  margin: 34px 0 16px;
  color: var(--blue);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(1.45rem, 2.6vw, 2.15rem);
  line-height: 1.1;
}

.dynamic-media-grid {
  display: grid;
  gap: 18px;
}

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

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

.media-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(52, 66, 168, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 44px rgba(52, 66, 168, 0.09);
}

.media-card video,
.media-card img {
  display: block;
  width: 100%;
  background: var(--sky);
}

.media-card video {
  height: auto;
}

.media-card img {
  height: auto;
}

.media-loading,
.media-error {
  margin: 0;
  padding: 18px;
  border-radius: 8px;
  background: var(--sky-strong);
  color: var(--muted);
  font-weight: 800;
}

.media-error {
  color: #8f3142;
  background: rgba(255, 230, 235, 0.88);
}

.team-copy p:not(.eyebrow),
.contact-section p {
  max-width: 660px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.55;
  font-weight: 700;
}

.teacher-note {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 18px;
  align-items: start;
  padding: 24px;
  border: 1px solid rgba(52, 66, 168, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.avatar {
  width: 82px;
  height: 82px;
  font-size: 1.7rem;
}

.teacher-note p {
  margin: 10px 0 0;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.45;
  font-weight: 700;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 92px;
}

.results-section .stats {
  margin-top: 0;
}

.stats div {
  min-height: 170px;
  padding: 28px;
  border-radius: 8px;
  color: #fff;
  background: var(--blue);
}

.stats strong {
  display: block;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  line-height: 1;
  font-weight: 900;
}

.stats span {
  display: block;
  margin-top: 16px;
  font-size: 1.04rem;
  line-height: 1.35;
  font-weight: 800;
}

.results-featured {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 18px;
}

.results-gallery {
  column-count: 3;
  column-gap: 18px;
  margin-top: 18px;
}

.results-featured a,
.results-gallery a {
  display: block;
  margin-bottom: 18px;
  break-inside: avoid;
}

.results-featured img,
.results-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid rgba(52, 66, 168, 0.14);
  border-radius: 8px;
  background: #fff;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 36px;
  align-items: center;
  margin-top: 92px;
  margin-bottom: 52px;
  padding: 48px;
  border: 1px solid rgba(52, 66, 168, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.contact-links {
  display: grid;
  gap: 12px;
}

.contact-links a {
  min-height: 52px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  border: 2px solid rgba(52, 66, 168, 0.16);
  border-radius: 8px;
  color: var(--blue);
  background: var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 900;
  overflow-wrap: anywhere;
}

@media (max-width: 880px) {
  .site-header,
  .hero,
  .team-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
  }

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

  .hero-card {
    max-width: 520px;
  }

  .course-grid,
  .stats,
  .teacher-grid,
  .teacher-stats,
  .teacher-content,
  .media-grid,
  .video-grid,
  .image-grid {
    grid-template-columns: 1fr;
  }

  .teacher-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 54px;
  }

  .teacher-photo {
    max-width: 360px;
  }

  .results-gallery {
    column-count: 2;
  }

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

@media (max-width: 560px) {
  .site-header,
  .section {
    width: min(100% - 24px, 1160px);
  }

  .nav {
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.75rem, 16vw, 4.2rem);
  }

  .teacher-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.25rem);
  }

  .lead {
    font-size: 1.12rem;
  }

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

  .hero-card,
  .course-card,
  .team-band,
  .contact-section {
    padding: 24px;
  }

  .teacher-note {
    grid-template-columns: 1fr;
  }

  .results-gallery {
    column-count: 1;
  }

  .results-featured {
    grid-template-columns: 1fr;
  }
}
