:root {
  --bg: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #e6ebf2;
  --soft: #f6f9fd;
  --chip: #eff7ff;
  --blue: #1747d4;
  --blue-dark: #08206f;
  --blue-ink: #071a52;
  --blue-light: #dce9ff;
  --lime: #dffe94;
  --lime-soft: #f2ffd0;
  --sky: #f1f7ff;
  --section-bg: #f1f7ff;
  --section-title-size: clamp(38px, 4vw, 56px);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--sky);
  color: var(--text);
  font-family: Manrope, Inter, "Segoe UI", Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.55;
}

a {
  color: var(--blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 18px 0 8px;
  background: rgba(241, 247, 255, 0.9);
  border-bottom: 0;
  backdrop-filter: blur(18px);
}

.header-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 0 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 55px rgba(7, 26, 82, 0.09);
}

.brand {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  display: block;
  width: auto;
  height: 32px;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  color: #59657b;
  font-size: 14px;
  font-weight: 650;
}

.mobile-actions,
.mobile-menu {
  display: none;
}

.top-nav a {
  color: inherit;
  text-decoration: none;
}

.top-nav a:hover {
  color: var(--blue);
}

.school-hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 72px;
  background:
    radial-gradient(circle at 9% 24%, rgba(86, 211, 197, 0.22), transparent 24%),
    radial-gradient(circle at 87% 20%, rgba(223, 254, 148, 0.38), transparent 25%),
    var(--section-bg);
}

.school-hero-grid {
  position: relative;
  min-height: 500px;
}

.school-hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: 48px;
}

.school-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 9px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue-ink);
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 18px 45px rgba(7, 26, 82, 0.08);
}

.school-badge span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9dea45;
}

.school-hero-title {
  max-width: 860px;
  color: var(--blue-ink);
  font-size: clamp(42px, 4.2vw, 64px);
  line-height: 1.14;
}

.school-hero-title span {
  display: block;
  color: #9aa4b7;
}

.school-hero-copy p {
  max-width: 760px;
  margin: 22px 0 0;
  color: #647089;
  font-size: clamp(18px, 1.45vw, 21px);
  line-height: 1.55;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-top: 28px;
  padding: 0 34px;
  border-radius: 999px;
  background: #3f7df3;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 18px 45px rgba(63, 125, 243, 0.25);
}

.principles-section {
  padding: 88px 0 96px;
  background: var(--section-bg);
}

.principles-head {
  max-width: 760px;
  margin-bottom: 54px;
}

.principles-head h2 {
  margin: 0;
  color: var(--blue-ink);
  font-size: var(--section-title-size);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 900;
}

.principles-head h2 span {
  color: #9aa4b7;
}

.principles-head p {
  margin: 24px 0 0;
  color: #647089;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.65;
}

.principles-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}

.principles-stack {
  display: grid;
  gap: 22px;
}

.principle-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(7, 26, 82, 0.08);
}

.principle-card-large {
  min-height: 390px;
  padding: 42px;
}

.principle-card-small {
  min-height: 184px;
  padding: 34px;
}

.principle-card-accent {
  min-height: 250px;
  background:
    linear-gradient(rgba(151, 184, 88, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(151, 184, 88, 0.08) 1px, transparent 1px),
    var(--lime-soft);
  background-size: 24px 24px;
}

.principle-card h3 {
  margin: 0;
  color: var(--blue-ink);
  font-size: clamp(24px, 2.1vw, 34px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 900;
}

.principle-card p {
  margin: 20px 0 0;
  color: #647089;
  font-size: 18px;
  line-height: 1.65;
}

.principle-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 0 28px;
  border-radius: 999px;
  background: #fff;
  color: #5f8b21;
  text-decoration: none;
  font-weight: 900;
}

.program-section {
  padding: 88px 0 96px;
  background: var(--section-bg);
}

.program-head {
  margin-bottom: 54px;
}

.program-head h2 {
  margin: 0;
  color: var(--blue-ink);
  font-size: var(--section-title-size);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 900;
}

.program-head h2 span {
  color: #9aa4b7;
}

.program-card {
  min-height: 360px;
  display: grid;
  align-items: center;
  border-radius: 42px;
  background:
    radial-gradient(circle at 88% 24%, rgba(223, 254, 148, 0.36), transparent 24%),
    linear-gradient(135deg, #eaf3ff 0%, #dce9ff 100%);
  box-shadow: 0 24px 70px rgba(7, 26, 82, 0.08);
}

.program-card-content {
  max-width: 760px;
  padding: 56px 64px;
}

.program-label {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.program-card h3 {
  max-width: 780px;
  margin: 0;
  color: var(--blue-ink);
  font-size: clamp(30px, 3.3vw, 48px);
  line-height: 1.12;
  letter-spacing: 0;
  font-weight: 900;
}

.program-card-content > p:not(.program-label) {
  max-width: 680px;
  margin: 24px 0 0;
  color: #647089;
  font-size: 19px;
  line-height: 1.7;
}

.program-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 32px;
  color: var(--blue-ink);
  font-weight: 800;
}

.program-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.program-meta span::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--blue);
}

.program-button {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 36px;
  padding: 0 34px;
  border-radius: 999px;
  background: #3f7df3;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 18px 45px rgba(63, 125, 243, 0.22);
}

.teaching-section {
  padding: 88px 0 96px;
  background: var(--section-bg);
}

.teaching-head {
  max-width: 720px;
  margin-bottom: 54px;
}

.teaching-head h2 {
  margin: 0;
  color: var(--blue-ink);
  font-size: var(--section-title-size);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 900;
}

.teaching-head p {
  margin: 24px 0 0;
  color: #647089;
  font-size: clamp(18px, 1.6vw, 24px);
  line-height: 1.65;
}

.teaching-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.45fr);
  gap: 28px;
  align-items: stretch;
}

.live-card,
.teaching-card {
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 24px 70px rgba(7, 26, 82, 0.08);
}

.live-card {
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 18%, rgba(86, 211, 197, 0.22), transparent 28%),
    radial-gradient(circle at 90% 85%, rgba(223, 254, 148, 0.58), transparent 28%),
    #fff;
}

.live-status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(7, 26, 82, 0.08);
  color: var(--blue-ink);
  font-weight: 800;
}

.live-status span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ff5a52;
}

.live-card-text h3,
.teaching-card h3 {
  margin: 0;
  color: var(--blue-ink);
  font-size: clamp(26px, 2.3vw, 38px);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 900;
}

.live-card-text p,
.teaching-card p {
  margin: 20px 0 0;
  color: #647089;
  font-size: 18px;
  line-height: 1.65;
}

.teaching-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.teaching-card {
  position: relative;
  min-height: 246px;
  padding: 34px;
}

.card-icon {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  font-size: 24px;
  font-weight: 900;
}

.card-icon-lime {
  background: #eaffbc;
  color: #5f8b21;
}

.card-icon-blue {
  background: #e6f0ff;
  color: var(--blue);
}

.card-icon-peach {
  background: #fff0df;
  color: #d97831;
}

.teaching-card h3 {
  max-width: 360px;
  padding-right: 70px;
}

.page-head {
  padding: 76px 0 70px;
  background: var(--section-bg);
  border-top: 1px solid rgba(7, 26, 82, 0.08);
  color: var(--blue-ink);
}

.page-head-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
  gap: 72px;
  align-items: start;
}

h1 {
  max-width: 620px;
  margin: 0;
  color: var(--blue-ink);
  font-size: var(--section-title-size);
  line-height: 1.1;
  letter-spacing: 0;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.page-head h1 {
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.18;
}

.hero-details {
  gap: 15px;
}

.hero-details div {
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(7, 26, 82, 0.1);
}

.hero-details div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hero-details dt {
  color: #647089;
}

.hero-details dd {
  color: var(--text);
}

.hero-details a {
  color: var(--blue);
}

.info-section {
  border-top: 1px solid rgba(7, 26, 82, 0.08);
  padding: 48px 0;
  background: var(--section-bg);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(230px, 340px) minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.section-title h2 {
  position: sticky;
  top: 88px;
  margin: 0;
  color: var(--blue-ink);
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 760;
  line-height: 1.16;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section-content {
  max-width: 720px;
}

.section-content h3 {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: 0;
}

.section-content p {
  margin: 0 0 14px;
  color: var(--text);
}

.details-list,
.compact-list {
  display: grid;
  gap: 16px;
  margin: 0;
}

.details-list div,
.compact-list div {
  display: grid;
  gap: 3px;
}

.details-list dt,
.compact-list dt {
  color: var(--muted);
  font-size: 14px;
}

.details-list dd,
.compact-list dd {
  margin: 0;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.compact-list {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.doc-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.doc-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.doc-list li:first-child {
  border-top: 1px solid var(--line);
}

.doc-list a {
  overflow-wrap: anywhere;
}

.doc-list span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--lime-soft);
  color: var(--blue-ink);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.doc-list.simple {
  margin-top: 0;
}

.pending {
  color: var(--blue);
}

.site-footer {
  border-top: 1px solid rgba(223, 254, 148, 0.18);
  background: var(--blue-ink);
  padding: 30px 0;
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--lime);
}

.back-to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 15;
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--blue-ink);
  color: var(--lime);
  box-shadow: 0 14px 35px rgba(7, 26, 82, 0.28);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  text-decoration: none;
  transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--lime);
  color: var(--blue-ink);
}

@media (max-width: 900px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    padding: 0;
    background: var(--blue-ink);
  }

  .header-inner {
    min-height: 72px;
    align-items: center;
    flex-direction: row;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .top-nav {
    display: none;
  }

  .mobile-actions {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .mobile-actions a,
  .menu-toggle,
  .menu-close {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(223, 254, 148, 0.2);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    box-shadow: none;
    text-decoration: none;
  }

  .menu-toggle {
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: #fff;
  }

  .mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: block;
    background: rgba(7, 26, 82, 0.24);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
  }

  .mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-menu-panel {
    width: min(100%, 430px);
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 22px 24px 28px;
    background:
      radial-gradient(circle at 18% 92%, rgba(223, 254, 148, 0.18), transparent 26%),
      var(--blue-ink);
    color: #fff;
    transform: translateX(-16px);
    transition: transform 0.18s ease;
  }

  .mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
  }

  .mobile-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 0;
  }

  .menu-close {
    border: 0;
    box-shadow: none;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
  }

  .mobile-menu-nav {
    flex: 1;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 18px;
    padding-bottom: 150px;
    text-align: center;
    font-size: 18px;
    line-height: 1.24;
  }

  .mobile-menu-nav a {
    color: #fff;
    text-decoration: none;
  }

  .mobile-menu-nav a:hover {
    color: var(--lime);
  }

  .section-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .school-hero {
    padding: 46px 0 58px;
  }

  .school-hero-grid {
    min-height: auto;
  }

  .school-hero-copy {
    padding-top: 0;
  }

  .school-hero-title {
    font-size: clamp(38px, 10vw, 60px);
  }

  .school-hero-copy p {
    font-size: 18px;
  }

  .principles-section {
    padding: 58px 0 64px;
  }

  .principles-head {
    margin-bottom: 32px;
  }

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

  .principle-card-large,
  .principle-card-small {
    min-height: 240px;
  }

  .program-section {
    padding: 58px 0 64px;
  }

  .program-head {
    margin-bottom: 32px;
  }

  .program-card-content {
    padding: 42px;
  }

  .teaching-section {
    padding: 58px 0 64px;
  }

  .teaching-head {
    margin-bottom: 32px;
  }

  .teaching-grid,
  .teaching-cards {
    grid-template-columns: 1fr;
  }

  .live-card {
    min-height: auto;
  }

  .teaching-card {
    min-height: 220px;
  }

  .page-head-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  h1 {
    max-width: 620px;
  }

  .section-title h2 {
    position: static;
  }

  .section-content {
    max-width: none;
  }
}

@media (max-width: 540px) {
  .container {
    width: min(100% - 28px, 1180px);
  }

  .page-head {
    padding-top: 34px;
  }

  .school-hero {
    padding: 34px 0 48px;
  }

  .school-badge {
    margin-bottom: 20px;
    padding: 9px 14px;
    font-size: 13px;
  }

  .school-hero-title {
    font-size: 36px;
  }

  .hero-button {
    width: 100%;
    min-height: 52px;
  }

  .principles-section {
    padding: 46px 0 50px;
  }

  .principles-head h2 {
    font-size: 34px;
  }

  .principles-head p {
    font-size: 17px;
  }

  .principles-grid,
  .principles-stack {
    gap: 16px;
  }

  .principle-card {
    border-radius: 24px;
  }

  .principle-card-large,
  .principle-card-small {
    min-height: auto;
    padding: 24px;
  }

  .principle-card h3 {
    font-size: 26px;
  }

  .principle-card p {
    font-size: 16px;
  }

  .principle-button {
    width: 100%;
  }

  .program-section {
    padding: 46px 0 50px;
  }

  .program-head h2 {
    font-size: 34px;
  }

  .program-card {
    min-height: auto;
    border-radius: 24px;
  }

  .program-card-content {
    padding: 26px;
  }

  .program-label {
    font-size: 12px;
  }

  .program-card h3 {
    font-size: 28px;
  }

  .program-card-content > p:not(.program-label) {
    font-size: 16px;
  }

  .program-meta {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    font-size: 15px;
  }

  .program-button {
    width: 100%;
    min-height: 52px;
    margin-top: 28px;
    padding: 0 20px;
  }

  .teaching-section {
    padding: 46px 0 50px;
  }

  .teaching-head h2 {
    font-size: 34px;
  }

  .teaching-head p {
    font-size: 17px;
  }

  .live-card,
  .teaching-card {
    border-radius: 24px;
  }

  .live-card {
    padding: 24px;
  }

  .live-card-text h3,
  .teaching-card h3 {
    font-size: 26px;
  }

  .live-card-text p,
  .teaching-card p {
    font-size: 16px;
  }

  .teaching-cards {
    gap: 16px;
  }

  .teaching-card {
    min-height: auto;
    padding: 24px;
  }

  .teaching-card h3 {
    padding-right: 58px;
  }

  .card-icon {
    top: 22px;
    right: 22px;
    width: 46px;
    height: 46px;
    border-radius: 15px;
    font-size: 20px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.1;
  }

  .page-head h1 {
    font-size: 30px;
    line-height: 1.16;
  }

  .info-section {
    padding: 34px 0;
  }

  .doc-list li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .doc-list span {
    width: fit-content;
    justify-self: start;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--lime-soft);
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
    gap: 12px;
  }
}
