.school-page {
  --school-ink: #0f172a;
  --school-muted: #64748b;
  --school-line: #d8e0ea;
  --school-paper: #f8fafc;
  overflow: hidden;
  color: var(--school-ink);
}

.school-hero {
  position: relative;
  padding: 80px 0 88px;
  background:
    repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 43px,
      rgba(203, 213, 225, 0.25) 44px
    ),
    var(--school-paper);
}

.school-hero::before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 7px;
  background: var(--color-primary);
  content: "";
}

.school-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(430px, 0.95fr);
  gap: 78px;
  align-items: center;
  margin-bottom: 64px;
}

.school-hero__copy {
  max-width: 700px;
}

.school-hero__visual {
  display: grid;
  gap: 18px;
}

.school-hero__image {
  display: block;
  width: 100%;
  height: 220px;
  border-radius: 14px;
  object-fit: cover;
  object-position: 61% center;
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.14);
}

.school-eyebrow {
  margin: 0 0 14px;
  color: var(--color-primary);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.school-hero h1 {
  margin: 0;
  font-size: clamp(3.2rem, 5vw, 4.65rem);
  font-weight: 760;
  line-height: 1.01;
  letter-spacing: -0.05em;
}

.school-hero__lead {
  max-width: 620px;
  margin: 24px 0 30px;
  color: #526074;
  font-size: 1.05rem;
  line-height: 1.65;
}

.school-hero .btn,
.school-final .btn {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 0.94rem;
  font-weight: 750;
}

.school-day {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.1);
}

.school-day__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--school-line);
}

.school-day__header div > span,
.school-day__header strong {
  display: block;
}

.school-day__header div > span {
  margin-bottom: 3px;
  color: var(--school-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.school-day__header strong {
  font-size: 1.2rem;
}

.school-day__header > span {
  color: var(--school-muted);
  font-size: 0.72rem;
  font-weight: 750;
}

.school-day__schedule {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.school-day__schedule::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 76px;
  width: 1px;
  background: #cbd5e1;
  content: "";
}

.school-day__schedule li {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  min-height: 68px;
  padding: 12px 22px;
  border-bottom: 1px solid var(--school-line);
}

.school-day__schedule li::before {
  position: absolute;
  top: calc(50% - 5px);
  left: 71px;
  width: 11px;
  height: 11px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 1px #a9b8cc;
  content: "";
}

.school-day__schedule time {
  color: var(--color-primary);
  font-size: 0.74rem;
  font-weight: 800;
}

.school-day__schedule strong,
.school-day__schedule span {
  display: block;
}

.school-day__schedule strong {
  margin-bottom: 3px;
  font-size: 0.86rem;
}

.school-day__schedule span {
  color: var(--school-muted);
  font-size: 0.73rem;
}

.school-day__footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 22px;
  color: #7b8798;
  font-size: 0.68rem;
  font-weight: 750;
  text-transform: uppercase;
}

.school-chart {
  max-width: 1160px;
  margin: 0 auto;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.12);
}

.school-chart__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 20px;
  border-bottom: 1px solid #e2e8f0;
  color: #29364a;
  font-size: 0.76rem;
}

.school-chart__bar strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.school-chart__bar img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.school-chart__bar span {
  color: #778296;
}

.school-chart__frame {
  display: block;
  width: 100%;
  height: 780px;
  border: 0;
  background: #f8fafc;
}

.school-chart__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 54px;
  padding: 12px 20px;
  border-top: 1px solid #e2e8f0;
  color: #778296;
  font-size: 0.78rem;
}

.school-chart__footer a {
  flex: 0 0 auto;
  color: var(--color-primary);
  font-weight: 750;
  text-decoration: none;
}

.school-chart__footer i {
  margin-left: 4px;
  font-size: 0.7rem;
}

.school-map {
  padding: 102px 0;
  background: #fff;
}

.school-map__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(560px, 1.18fr);
  gap: 98px;
  align-items: start;
}

.school-section-heading {
  max-width: 520px;
}

.school-section-heading h2,
.school-year h2,
.school-final h2 {
  margin: 0;
  font-size: clamp(2.5rem, 4vw, 3.55rem);
  font-weight: 760;
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.school-section-heading > p:last-child {
  max-width: 500px;
  margin: 20px 0 0;
  color: var(--school-muted);
  line-height: 1.65;
}

.school-map__bands {
  border-top: 1px solid #bcc8d7;
}

.school-map__bands article {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 92px;
  gap: 20px;
  align-items: center;
  min-height: 112px;
  padding: 20px 0;
  border-bottom: 1px solid var(--school-line);
}

.school-map__number {
  color: #9aa7b8;
  font-size: 0.7rem;
  font-weight: 800;
}

.school-map__bands h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 750;
}

.school-map__bands p {
  margin: 0;
  color: var(--school-muted);
  font-size: 0.87rem;
  line-height: 1.55;
}

.school-map__label {
  justify-self: end;
  width: 88px;
  padding: 7px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  color: var(--school-muted);
  font-size: 0.66rem;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.school-year {
  padding: 96px 0 100px;
  background: #172235;
  color: #fff;
}

.school-year .school-eyebrow {
  color: #94b7ff;
}

.school-year__heading {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  column-gap: 92px;
  align-items: end;
  margin-bottom: 60px;
}

.school-year__heading .school-eyebrow,
.school-year__heading h2 {
  grid-column: 1;
}

.school-year__heading > p:last-child {
  grid-column: 2;
  grid-row: 1 / span 2;
  max-width: 550px;
  margin: 0 0 7px;
  color: #c1cad8;
  line-height: 1.7;
}

.school-year__steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid #425069;
  list-style: none;
}

.school-year__steps li {
  min-height: 206px;
  padding: 32px 34px 20px 0;
  border-right: 1px solid #425069;
}

.school-year__steps li:not(:first-child) {
  padding-left: 34px;
}

.school-year__steps li:last-child {
  border-right: 0;
}

.school-year__steps li > span {
  display: block;
  min-height: 48px;
  margin-bottom: 24px;
  color: #94b7ff;
  font-size: 0.71rem;
  font-weight: 800;
  text-transform: uppercase;
}

.school-year__steps strong {
  display: block;
  margin-bottom: 10px;
  font-size: 1.04rem;
}

.school-year__steps p {
  max-width: 300px;
  margin: 0;
  color: #bec8d7;
  font-size: 0.86rem;
  line-height: 1.6;
}

.school-final {
  padding: 100px 0 104px;
  background: #fff;
}

.school-final__layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  gap: 100px;
  align-items: start;
}

.school-final__cta {
  max-width: 590px;
}

.school-final__cta > p:not(.school-eyebrow) {
  max-width: 540px;
  margin: 22px 0 28px;
  color: var(--school-muted);
  line-height: 1.65;
}

.school-faq {
  border-top: 1px solid #cbd5e1;
}

.school-faq details {
  border-bottom: 1px solid var(--school-line);
}

.school-faq summary {
  padding: 22px 0;
  color: var(--school-ink);
  font-size: 0.98rem;
  font-weight: 750;
  cursor: pointer;
}

.school-faq details p {
  margin: -2px 0 24px;
  color: var(--school-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

@media (max-width: 991px) {
  .school-hero {
    padding-top: 66px;
  }

  .school-hero__layout,
  .school-map__layout,
  .school-final__layout {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .school-hero__layout {
    margin-bottom: 50px;
  }

  .school-hero__visual {
    max-width: 620px;
  }

  .school-map__layout {
    gap: 48px;
  }

  .school-year__heading {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .school-year__heading .school-eyebrow,
  .school-year__heading h2,
  .school-year__heading > p:last-child {
    grid-column: 1;
    grid-row: auto;
  }

  .school-year__steps {
    grid-template-columns: 1fr;
  }

  .school-year__steps li,
  .school-year__steps li:not(:first-child) {
    display: grid;
    grid-template-columns: 120px 1fr;
    column-gap: 18px;
    min-height: 0;
    padding: 28px 0;
    border-right: 0;
    border-bottom: 1px solid #425069;
  }

  .school-year__steps li:last-child {
    border-bottom: 0;
  }

  .school-year__steps li > span {
    min-height: 0;
    margin: 3px 0 0;
  }

  .school-year__steps li strong,
  .school-year__steps li p {
    grid-column: 2;
  }
}

@media (max-width: 767px) {
  .school-hero {
    padding: 38px 0 58px;
    background: var(--school-paper);
  }

  .school-hero__layout {
    gap: 36px;
    margin-bottom: 40px;
  }

  .school-hero__visual {
    gap: 16px;
  }

  .school-hero__image {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    object-position: 65% 43%;
  }

  .school-hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.15rem);
    line-height: 1.02;
  }

  .school-hero__lead {
    margin: 20px 0 24px;
    font-size: 0.97rem;
  }

  .school-hero .btn,
  .school-final .btn {
    width: 100%;
  }

  .school-day__header,
  .school-day__schedule li,
  .school-day__footer {
    padding-right: 15px;
    padding-left: 15px;
  }

  .school-day {
    width: 100%;
    margin: 0;
  }

  .school-day__schedule::before {
    left: 65px;
  }

  .school-day__schedule li {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 18px;
  }

  .school-day__schedule li::before {
    left: 60px;
  }

  .school-chart {
    border-radius: 12px;
  }

  .school-chart__bar {
    padding: 0 13px;
  }

  .school-chart__bar span {
    font-size: 0.68rem;
  }

  .school-chart__frame {
    height: 680px;
  }

  .school-chart__footer {
    display: block;
    padding: 14px;
  }

  .school-chart__footer a {
    display: block;
    margin-top: 7px;
  }

  .school-map,
  .school-final {
    padding: 72px 0 76px;
  }

  .school-section-heading h2,
  .school-year h2,
  .school-final h2 {
    font-size: 2.35rem;
  }

  .school-map__bands article {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    min-height: 0;
    padding: 24px 0;
  }

  .school-map__label {
    grid-column: 2;
    justify-self: start;
    margin-top: 2px;
  }

  .school-year {
    padding: 72px 0;
  }

  .school-year__heading {
    margin-bottom: 42px;
  }

  .school-year__steps li,
  .school-year__steps li:not(:first-child) {
    grid-template-columns: 84px 1fr;
  }

  .school-final__layout {
    gap: 54px;
  }
}
