:root {
  --navy: #171773;
  --navy-soft: #242879;
  --blue: #7a9cf4;
  --orange: #ffa12d;
  --purple: #8661e9;
  --green: #43b861;
  --gray-bg: #f3f3f3;
  --card-gray: #ededed;
  --footer-gray: #e7e7e7;
  --white: #fff;
  --black: #151515;
  --page-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 18px; }
body {
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--black);
  background: #fff;
}
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
.container { width: min(var(--page-width), calc(100% - 64px)); margin-inline: auto; }

.site-header { background: #fff; }
.header__inner { padding: 20px 0 0; }
.header__logos {
  min-height: 125px;
  display: flex;
  align-items: center;
  gap: 34px;
}
.school-logo { width: 215px; flex: 0 0 auto; }
.school-logo img { width: 100%; height: auto; }
.header__divider { width: 2px; height: 118px; background: #333; flex: 0 0 auto; }
.admission-logo { width: 360px; height: auto; }
.header__stripe { width: 100%; height: 11px; object-fit: fill; margin-top: 8px; }

.visit { padding: 76px 0 70px; background: #fff; }
.visit__grid {
  display: grid;
  grid-template-columns: minmax(320px, .92fr) minmax(570px, 1.08fr);
  align-items: start;
  gap: 75px;
}
.section-copy { padding-top: 8px; color: var(--navy); }
.section-copy h1,
.sae h2,
.levels h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(21px, 2.05vw, 28px);
  line-height: 1.2;
  font-weight: 700;
}
.section-copy p {
  max-width: 440px;
  margin: 21px 0 0;
  font-size: 14px;
  line-height: 1.35;
}
.visit-form { position: relative; display: grid; gap: 14px; }
.honeypot { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-group { min-width: 0; margin: 0; padding: 0; border: 0; }
.form-group legend {
  width: calc(100% - 165px);
  margin: 0 0 7px 165px;
  padding: 0;
  color: #3d3d3d;
  font-size: 14px;
  font-weight: 500;
}
.form-row {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.form-row label,
.select-field label {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}
.form-row input,
.select-field select {
  width: 100%;
  height: 34px;
  border: 1px solid #bdbdbd;
  border-radius: 5px;
  outline: none;
  color: #333;
  background: #f3f3f3;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form-row input { padding: 5px 10px; }
.select-field select { padding: 4px 30px 4px 8px; cursor: pointer; }
.form-row input:focus,
.select-field select:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgb(23 23 115 / 12%);
}
.student-options {
  display: grid;
  grid-template-columns: 257px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
}
.select-field {
  display: grid;
  grid-template-columns: 152px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.select-field--course { grid-template-columns: 180px minmax(116px, 1fr); }
.student-group--extra { padding-top: 4px; border-top: 1px solid rgb(23 23 115 / 14%); }
.form-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 20px;
  padding-left: 165px;
}
.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #333;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
}
.checkbox-row input { width: 17px; height: 17px; margin: 0; accent-color: var(--navy); }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.form-actions button {
  min-width: 100px;
  min-height: 39px;
  padding: 8px 18px;
  border: 0;
  border-radius: 6px;
  color: #fff;
  background: var(--navy);
  cursor: pointer;
  transition: transform .2s ease, filter .2s ease;
}
.form-actions button:hover,
.form-actions button:focus-visible { transform: translateY(-1px); filter: brightness(1.12); }
.form-actions button:disabled { cursor: wait; opacity: .7; transform: none; }
.form-message { max-width: 260px; margin: 0; font-size: 12px; text-align: right; }
.form-message.is-success { color: #218744; }
.form-message.is-error { color: #bb2d3b; }

.sae { background: #fff; }
.sae__heading-wrap { background: var(--gray-bg); }
.sae__heading { padding: 31px 0 29px; }
.sae__band {
  position: relative;
  padding: 18px 0 58px;
  background: linear-gradient(to bottom, var(--blue) 0 55%, #fff 55% 100%);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}
.step-card {
  position: relative;
  min-height: 360px;
  padding: 35px 23px 29px;
  border-radius: 45px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--navy-soft);
  background: #fff;
  text-align: center;
  box-shadow: 0 20px 30px rgb(0 0 0 / 12%);
}
.step-card:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 46px;
  right: -18px;
  width: 1px;
  height: calc(100% - 92px);
  background: rgb(36 40 121 / 45%);
}
.step-card img { width: 88px; height: 88px; margin: 0 0 28px; border-radius: 50%; object-fit: contain; }
.step-card p { margin: 0; font-size: clamp(14px, 1.35vw, 18px); line-height: 1.43; }

.levels { padding: 34px 0 70px; }
.levels h2 { margin-bottom: 50px; }
.levels__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 410px));
  justify-content: center;
  gap: 30px;
}
.level-card {
  position: relative;
  min-height: 520px;
  padding: 30px 34px 26px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card-gray);
}
.level-card__stripe { position: absolute; left: 0; width: 100%; height: 10px; object-fit: cover; }
.level-card__stripe--top { top: 0; }
.level-card__stripe--bottom { bottom: 0; }
.level-card__photo { width: 100%; height: 165px; object-fit: cover; }
.level-card__body { flex: 1; padding-top: 22px; display: flex; flex-direction: column; }
.level-card h3 { margin: 0; color: var(--navy); font-size: 22px; line-height: 1.05; }
.level-card__subtitle { margin: 5px 0 0; font-size: 14px; line-height: 1.15; font-style: italic; font-weight: 600; }
.level-card__text { margin: 28px 0 24px; font-size: 14px; line-height: 1.28; }
.level-card__button {
  align-self: flex-end;
  margin-top: auto;
  padding: 8px 19px;
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  line-height: 1;
  font-weight: 800;
}
.level-card__button--purple { background: var(--purple); }
.level-card__button--green { background: var(--green); }

.footer { position: relative; min-height: 190px; padding: 35px 0 42px; color: var(--navy); background: var(--footer-gray); }
.footer__stripe { position: absolute; top: 0; right: 0; width: 47%; height: 10px; object-fit: cover; object-position: right; }
.footer__grid {
  display: grid;
  grid-template-columns: 220px 1.1fr 1fr .7fr;
  align-items: center;
  gap: 40px;
}
.footer__brand img { width: 210px; height: auto; }
.footer-block { display: flex; flex-direction: column; margin: 0; color: var(--navy); font-size: 13px; line-height: 1.35; font-style: normal; }
.footer-block strong { font-size: 13px; }
.footer-block a { color: inherit; text-decoration: none; }

[hidden] { display: none !important; }

@media (max-width: 1050px) {
  .container { width: min(var(--page-width), calc(100% - 42px)); }
  .visit__grid { grid-template-columns: 1fr; gap: 38px; }
  .section-copy p { max-width: 650px; }
  .visit-form { width: min(760px, 100%); margin-left: auto; }
  .steps { gap: 21px; }
  .step-card { min-height: 345px; padding-inline: 18px; }
  .step-card:not(:last-child)::after { right: -11px; }
  .footer__grid { grid-template-columns: 210px 1fr 1fr; align-items: start; }
  .footer__grid > :last-child { grid-column: 3; }
}

@media (max-width: 780px) {
  .header__logos { justify-content: center; gap: 22px; }
  .school-logo { width: 185px; }
  .header__divider { height: 100px; }
  .admission-logo { width: 310px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step-card:not(:last-child)::after { display: none; }
  .sae__band { background: linear-gradient(to bottom, var(--blue) 0 30%, #fff 30% 100%); }
  .levels__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 205px 1fr; }
  .footer__grid > :last-child { grid-column: 2; }
}

@media (max-width: 620px) {
  .container { width: min(100% - 30px, var(--page-width)); }
  .header__inner { padding-top: 16px; }
  .header__logos { min-height: 0; flex-direction: column; gap: 15px; padding-bottom: 16px; }
  .school-logo { width: min(220px, 72vw); }
  .header__divider { width: min(320px, 80vw); height: 1px; }
  .admission-logo { width: min(340px, 88vw); }
  .header__stripe { margin-top: 0; }
  .visit { padding: 48px 0 52px; }
  .visit__grid { gap: 34px; }
  .section-copy h1 { font-size: 24px; }
  .visit-form { width: 100%; max-width: none; margin: 0; }
  .form-group legend { width: 100%; margin-left: 0; margin-bottom: 10px; font-size: 15px; }
  .form-row,
  .select-field,
  .select-field--course { grid-template-columns: 1fr; gap: 5px; }
  .form-row label,
  .select-field label { text-align: left; }
  .student-options { grid-template-columns: 1fr; gap: 10px; }
  .form-row input,
  .select-field select { height: 42px; }
  .form-footer { grid-template-columns: 1fr; align-items: start; padding-left: 0; }
  .form-actions { width: 100%; justify-content: space-between; align-items: flex-end; }
  .form-message { max-width: calc(100% - 112px); text-align: left; }
  .sae__heading { padding: 27px 0 24px; }
  .sae__heading h2,
  .levels h2 { font-size: 22px; }
  .steps,
  .levels__grid { grid-template-columns: 1fr; }
  .sae__band { padding: 22px 0 34px; background: var(--blue); }
  .step-card { min-height: 0; padding: 31px 24px 32px; }
  .step-card p { font-size: 16px; }
  .levels { padding: 42px 0 55px; }
  .levels h2 { margin-bottom: 30px; }
  .level-card { min-height: 510px; }
  .footer { padding-top: 42px; }
  .footer__stripe { width: 100%; }
  .footer__grid { grid-template-columns: 1fr; gap: 25px; }
  .footer__brand img { width: 205px; }
  .footer__grid > :last-child { grid-column: 1; }
}
