.footer {
  position: relative;
  overflow: hidden;
  padding: 0 0 26px;
  border-radius: 46px 46px 0 0;
  background: radial-gradient(circle at 12% 0%, #563777 0, transparent 31%), radial-gradient(circle at 88% 38%, #342451 0, transparent 35%), #1d1431;
  color: #f7f1fc;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #f2b85b, #f6d98e 34%, #b897e9 70%, #8dcf87);
}
.footer .shell { position: relative; }
.footer-invite {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 34px;
  padding: 74px 0 62px;
  border-bottom: 1px solid #ffffff2c;
}
.footer-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #f7cf86;
  font: 800 .78rem/1.4 var(--friendly, Manrope, Arial, sans-serif);
  letter-spacing: .17em;
}
.footer-kicker span { color: #eab0da; font-size: 1.1rem; }
.footer-invite h2 {
  margin: 17px 0 0;
  color: #fff;
  font: 600 clamp(2.8rem, 5.6vw, 5.3rem)/1.02 var(--play, Manrope, Arial, sans-serif);
  letter-spacing: -.055em;
}
.footer-invite h2 em { color: #f6d480; font-style: normal; }
.footer .footer-visit {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  min-width: 212px;
  min-height: 62px;
  padding: 14px 20px 14px 24px;
  border: 2px solid #f4d38b;
  border-radius: 999px;
  background: #f5d58c;
  box-shadow: 0 7px 0 #110b21;
  color: #2c1b4a;
  font: 800 1rem/1.2 var(--friendly, Manrope, Arial, sans-serif);
  text-decoration: none;
  white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.footer-visit span { font-size: 1.4rem; line-height: 1; }
.footer .footer-visit:hover { transform: translateY(3px); box-shadow: 0 4px 0 #110b21; background: #ffe5ab; color: #2c1b4a; }
.footer-main {
  display: grid;
  grid-template-columns: minmax(230px, 1.45fr) minmax(120px, .65fr) minmax(230px, 1.12fr) minmax(210px, 1fr);
  gap: clamp(24px, 4vw, 66px);
  padding: 54px 0 62px;
}
.footer-mark {
  display: flex;
  align-items: center;
  width: min(100%, 253px);
  min-height: 145px;
  padding: 12px 17px;
  border-radius: 23px;
  background: #fff;
  box-shadow: 0 10px 25px #0d081d56;
}
.footer-mark img { display: block; width: 100%; height: auto; object-fit: contain; }
.footer-identity p { margin: 22px 0 4px; color: #fff; font: 600 1.27rem/1.3 var(--play, Manrope, Arial, sans-serif); }
.footer-identity > span { color: #d1c1df; font-size: .9rem; }
.footer-column { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.footer-column h3 {
  margin: 5px 0 11px;
  color: #f8d68e;
  font: 800 .8rem/1.3 var(--friendly, Manrope, Arial, sans-serif);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-column a, .footer-column address { color: #e5ddeb; font: 500 .95rem/1.65 var(--friendly, Manrope, Arial, sans-serif); }
.footer-column address { font-style: normal; }
.footer-column a { text-decoration: none; text-underline-offset: 4px; }
.footer-column a:hover { color: #fff0bf; text-decoration: underline; }
.footer-column .footer-text-link { margin-top: 8px; color: #f7d58e; font-weight: 800; }
.footer-column .footer-phone { color: #fff; font-size: 1.08rem; font-weight: 800; white-space: nowrap; }
.footer-column .footer-social {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 11px 14px;
  border: 1px solid #a584c4;
  border-radius: 14px;
  color: #fff;
  background: #ffffff12;
  font-weight: 700;
  line-height: 1.2;
  transition: background .2s ease, transform .2s ease;
}
.footer-column .footer-social:hover { background: #ffffff25; transform: translateY(-2px); text-decoration: none; }
.footer-social svg { width: 21px; height: 21px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; }
.footer-social .insta-dot { fill: currentColor; stroke: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px 25px;
  flex-wrap: wrap;
  padding-top: 23px;
  border-top: 1px solid #ffffff2c;
  color: #c7b9d4;
  font: 600 .79rem/1.5 var(--friendly, Manrope, Arial, sans-serif);
}
.footer a:focus-visible { outline: 3px solid #f8d68e; outline-offset: 4px; }
@media (max-width: 1050px) {
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 45px 40px; }
}
@media (max-width: 650px) {
  .footer { border-radius: 30px 30px 0 0; }
  .footer-invite { display: block; padding: 58px 0 49px; }
  .footer-invite h2 { font-size: clamp(2.65rem, 11vw, 4rem); }
  .footer-visit { margin-top: 31px; min-width: 0; width: min(100%, 290px); }
  .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 38px 24px; padding: 44px 0 47px; }
  .footer-identity { grid-column: 1 / -1; }
  .footer-location, .footer-contact { grid-column: 1 / -1; }
  .footer-mark { width: 225px; min-height: 129px; }
  .footer-bottom { display: grid; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .footer-visit, .footer-column .footer-social { transition: none; }
}

/* Preserve the full proportions of the official school logo in every header. */
.top, .admission-page .top { min-height: 170px; }
.brand .logo { display: block; width: 170px; height: auto; max-height: none; object-fit: contain; }
@media (max-width: 1060px) {
  .top, .admission-page .top { min-height: 155px; }
  .brand .logo { width: 155px; }
}
@media (max-width: 700px) {
  .top, .admission-page .top { min-height: 125px; }
  .brand .logo { width: 115px; }
}
@media (max-width: 390px) {
  .brand .logo { width: 108px; }
}

/* Shared footer icons and screen-reader labels must work on every page. */
.footer .diagonal-arrow { display: inline-block; width: 1.15em; height: 1.15em; vertical-align: -.18em; flex: none; }
.footer .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
