:root {
  --green: #51b968;
  --mint: #dcffdf;
  --orange: #ff5a38;
  --yellow: #f7c32c;
  --blue: #7d9df2;
  --navy: #253571;
  --purple-card: #b9addd;
  --purple-button: #8465ec;
  --green-card: #d8ffdc;
  --green-button: #45b65f;
  --black: #060606;
  --white: #ffffff;
  --page-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  color: #111;
  background: #fff;
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(var(--page-width), calc(100% - 64px));
  margin-inline: auto;
}

.hero {
  background: var(--green);
  color: #fff;
}

.hero__inner {
  min-height: 123px;
  display: grid;
  grid-template-columns: 98px 100px minmax(0, 1fr);
  align-items: center;
  gap: 25px;
  padding-block: 14px;
}

.brand {
  color: inherit;
  text-decoration: none;
  display: grid;
  justify-items: center;
  gap: 4px;
}

.brand__name {
  font-size: 12px;
  line-height: .86;
  font-weight: 500;
  text-align: center;
}

.brand__shield {
  width: 50px;
  height: 56px;
  object-fit: contain;
}

.admission-mark {
  height: 96px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.admission-mark img {
  width: 93px;
  height: 100px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.hero__copy h1 {
  margin: 0 0 4px;
  font-size: clamp(20px, 2.2vw, 27px);
  line-height: 1.1;
  font-weight: 800;
}

.hero__copy p {
  max-width: 970px;
  margin: 0;
  font-size: clamp(11px, 1.15vw, 14px);
  line-height: 1.35;
}

.visit {
  background: var(--mint);
  color: var(--orange);
  padding: 34px 0 55px;
}

.visit__grid {
  display: grid;
  grid-template-columns: minmax(300px, .95fr) minmax(500px, 1.1fr);
  gap: 80px;
  align-items: start;
}

.section-copy {
  padding-top: 28px;
}

.section-copy h2,
.sae h2,
.levels h2 {
  margin: 0;
  color: var(--orange);
  font-size: clamp(19px, 2vw, 25px);
  line-height: 1.2;
  font-weight: 700;
}

.section-copy p {
  max-width: 430px;
  margin: 19px 0 0;
  font-size: 14px;
  line-height: 1.35;
}

.visit-form {
  display: grid;
  gap: 12px;
}

.form-row--full {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.form-row label,
.field label {
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

.form-row input,
.field input {
  width: 100%;
  height: 34px;
  border: 1px solid #c9c9c9;
  border-radius: 6px;
  background: #f5f5f5;
  padding: 5px 10px;
  color: #222;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-row input:focus,
.field input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgb(81 185 104 / 14%);
}

.form-row--split {
  margin-left: 0;
  display: grid;
  grid-template-columns: 275px minmax(0, 1fr);
  gap: 10px;
}

.field {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.field--course {
  grid-template-columns: 180px minmax(0, 1fr);
}

.form-row--spaced {
  margin-top: 18px;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.form-actions button {
  min-width: 95px;
  height: 38px;
  border: 0;
  border-radius: 6px;
  color: var(--orange);
  background: var(--yellow);
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}

.form-actions button:hover {
  transform: translateY(-1px);
  filter: brightness(.97);
}

.form-message {
  margin: 0;
  font-size: 12px;
  color: #397f48;
}

.sae {
  padding-top: 0;
  background: var(--mint);
}

.sae > .container {
  padding-block: 28px 18px;
}

.sae__band {
  position: relative;
  background: linear-gradient(to bottom, var(--blue) 0 55%, #fff 55% 100%);
  padding: 18px 0 46px;
}

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

.step-card {
  min-height: 286px;
  margin: 0;
  padding: 28px 19px 24px;
  border-radius: 38px;
  background: #fff;
  box-shadow: 0 18px 30px rgb(0 0 0 / 11%);
  text-align: center;
  color: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
}

.step-card img {
  width: 92px;
  height: 92px;
  margin-bottom: 22px;
  border-radius: 50%;
  object-fit: contain;
  background: transparent;
}

.step-card p {
  margin: 0;
  font-size: clamp(14px, 1.45vw, 18px);
  line-height: 1.42;
}

.levels {
  padding: 18px 0 66px;
}

.levels h2 {
  margin-bottom: 44px;
}

.levels__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 395px));
  justify-content: center;
  gap: 30px;
}

.level-card {
  min-height: 510px;
  padding: 30px 34px 25px;
  display: flex;
  flex-direction: column;
}

.level-card--purple {
  background: var(--purple-card);
}

.level-card--green {
  background: var(--green-card);
}

.level-card > img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.level-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding-top: 23px;
}

.level-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1;
  color: #fff;
}

.level-card--green h3 {
  color: var(--green-button);
}

.level-card__subtitle {
  margin: 5px 0 0;
  font-size: 14px;
  line-height: 1.1;
}

.level-card__text {
  margin: 29px 0 24px;
  font-size: 14px;
  line-height: 1.25;
}

.level-card__button {
  align-self: flex-end;
  margin-top: auto;
  padding: 7px 17px;
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
}

.level-card--purple .level-card__button {
  background: var(--purple-button);
}

.level-card--green .level-card__button {
  background: var(--green-button);
}

.footer {
  min-height: 258px;
  padding: 27px 0 44px;
  color: #fff;
  background: var(--black);
}

.footer__grid {
  display: grid;
  grid-template-columns: 220px 315px minmax(250px, 1fr) 160px;
  gap: 30px;
  align-items: start;
}

.footer-brand {
  display: grid;
  grid-template-columns: 85px 100px;
  gap: 11px;
  align-items: center;
}

.footer-brand__school {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.footer-brand__school span {
  font-size: 12px;
  line-height: .85;
  text-align: center;
}

.footer-brand__school img {
  width: 48px;
  height: 58px;
  object-fit: contain;
}

.footer-brand__admission {
  height: 115px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.footer-brand__admission img {
  width: 90px;
  filter: brightness(0) invert(1);
}

.footer-block {
  display: flex;
  flex-direction: column;
  margin: 0;
  font-size: 13px;
  line-height: 1.25;
  font-style: normal;
}

.footer-block strong {
  font-size: 13px;
  margin-bottom: 2px;
}

.footer-block a {
  color: inherit;
  text-decoration: none;
}

.footer-block__spacer {
  margin-top: 22px;
}

.footer-seal {
  justify-self: end;
}

.footer-seal img {
  width: 138px;
  filter: grayscale(1) brightness(0) invert(1);
}

@media (max-width: 980px) {
  .container {
    width: min(var(--page-width), calc(100% - 40px));
  }

  .hero__inner {
    grid-template-columns: 82px 78px minmax(0, 1fr);
    gap: 16px;
  }

  .visit__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section-copy {
    padding-top: 0;
  }

  .section-copy p {
    max-width: none;
  }

  .steps {
    gap: 18px;
  }

  .step-card {
    padding-inline: 15px;
  }

  .footer__grid {
    grid-template-columns: 200px 1fr 1fr;
  }

  .footer-seal {
    grid-column: 3;
    grid-row: 1;
    align-self: end;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 30px, var(--page-width));
  }

  .hero__inner {
    grid-template-columns: 82px 86px 1fr;
    padding-block: 18px;
  }

  .hero__copy p {
    font-size: 11px;
  }

  .form-row--full,
  .field,
  .field--course {
    grid-template-columns: 125px minmax(0, 1fr);
  }

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

  .form-row--split .field {
    grid-template-columns: 1fr;
  }

  .form-row--split .field label {
    text-align: left;
  }

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

  .sae__band {
    background: linear-gradient(to bottom, var(--blue) 0 34%, #fff 34% 100%);
  }

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

  .level-card {
    padding: 24px 25px 22px;
  }

  .footer__grid {
    grid-template-columns: 180px 1fr;
  }

  .footer-seal {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .hero__inner {
    grid-template-columns: 84px 1fr;
    align-items: start;
  }

  .admission-mark {
    height: 88px;
  }

  .hero__copy {
    grid-column: 1 / -1;
  }

  .hero__copy h1 {
    font-size: 23px;
  }

  .hero__copy p {
    font-size: 12px;
    line-height: 1.45;
  }

  .visit {
    padding-top: 28px;
  }

  .form-row--full,
  .form-row--split,
  .field,
  .field--course {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .form-row label,
  .field label {
    text-align: left;
  }

  .form-row--spaced {
    margin-top: 8px;
  }

  .form-actions {
    justify-content: space-between;
    align-items: flex-end;
  }

  .steps,
  .levels__grid {
    grid-template-columns: 1fr;
  }

  .sae__band {
    background: var(--blue);
    padding-bottom: 28px;
  }

  .step-card {
    min-height: 0;
  }

  .levels {
    padding-top: 34px;
  }

  .levels h2 {
    margin-bottom: 26px;
  }

  .level-card {
    min-height: 500px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .footer-seal {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }
}
