.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  margin-inline: auto;
  padding: 24px 42px 0;
  width: min(100%, var(--container-max) + (2 * var(--container-padding)));
  margin: auto;
}

.site-header.is-menu-open {
  z-index: 3000;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 12px 12px 12px 32px;
  border-radius: 16px;
  background: var(--color-surface);
}

.site-header__brand {
  text-decoration: none;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.site-header__cta {
  min-height: 46px;
  padding-inline: 24px;
  border-radius: 12px;
  font-size: 13px;
}

.site-header__menu-toggle {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 71px;
  min-height: 46px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--color-hero-notice);
  color: var(--color-text);
  cursor: pointer;
  opacity: 1;
}

.site-header__menu-toggle span {
  position: absolute;
  display: block;
  width: 23px;
  height: 1px;
  background: var(--color-text);
  transform-origin: center;
  transition:
    opacity 160ms ease,
    transform 180ms ease;
}

.site-header__menu-toggle span:nth-child(1) {
  transform: translateY(-7px);
}

.site-header__menu-toggle span:nth-child(3) {
  transform: translateY(7px);
}

.site-header.is-menu-open .site-header__menu-toggle span:nth-child(1) {
  transform: rotate(32deg);
}

.site-header.is-menu-open .site-header__menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .site-header__menu-toggle span:nth-child(3) {
  transform: rotate(-32deg);
}

.site-header__menu {
  width: 400px;
  margin: 8px auto 0;
  padding: 32px 32px 32px 0;
  border-radius: 16px;
  background: var(--color-surface);
  position: absolute;
  z-index: 1;
  right: 0;
  margin-right: 42px;
}

.site-header__menu[hidden] {
  display: none;
}

.site-header__nav {
  max-width: 680px;
}

.site-header__menu-list,
.site-header__footer-menu-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.site-header__menu-list a {
  color: var(--color-text);
  font-size: 24px;
  font-weight: var(--font-weight-regular);
  line-height: 130%;
  text-decoration: none;
  padding-left: 29px;
  border-left: solid 3px transparent;
}

.site-header__footer-menu-list a {
  color: var(--color-text);
  font-size: 14px;
  font-weight: var(--font-weight-medium);
  line-height: 130%;
  text-decoration: underline;
}

.site-header__menu-list a:hover,
.site-header__menu-list a:focus-visible {
  font-weight: var(--font-weight-semibold);
  border-left: solid 3px var(--color-primary);
}

.site-header__menu-bottom {
  margin-left: 32px;
  padding-top: 28px;
  border-top: solid 1px var(--color-brown-04);
  margin-top: 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.site-header__socials {
  display: inline-flex;
  gap: 8px;
}

.hero {
  position: relative;
  isolation: isolate;
  margin-inline: auto;
  background: var(--color-background);
}

.hero__panel {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  min-height: 680px;
  padding: 56px 72px 64px;
  overflow: hidden;
  border-radius: 0;
  background: var(--color-hero-background);
}

.hero__inner {
  width: min(100%, var(--container-max));
  margin: auto;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 64px;
  width: min(53vw, 759px);
}

.hero__copy {
  display: flex;
  flex-direction: column;
  gap: 42px;
}

.hero__title {
  margin: 0;
  font-size: 70px;
  font-weight: var(--font-weight-semibold);
  line-height: 120%;
}

.hero__title strong {
  color: var(--color-primary);
  font-weight: inherit;
}

.hero__description {
  max-width: 410px;
  margin: 0;
  font-size: 24px;
  font-weight: var(--font-weight-regular);
}

.hero__description p {
  margin: 0;
}

.hero__description strong {
  font-weight: var(--font-weight-bold);
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero__button {
  min-height: 50px;
  border-radius: 12px;
  font-size: 13px;
  white-space: nowrap;
}

.hero__button strong {
  color: var(--color-primary);
  font-weight: inherit;
}

.hero__media {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  width: 51%;
  height: 720px;
  overflow: hidden;
}

.hero__image {
  position: absolute;
  width: auto;
  max-width: none;
  height: 720px;
}

.hero__notice {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 144px;
  margin-top: -96px;
  padding: 120px 72px 24px;
  border-radius: 0;
  background: var(--color-hero-notice);
}

.hero__notice-text {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  font-size: 16px;
  font-weight: var(--font-weight-semibold);

  text-align: center;
}

.hero__notice-text::before {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin-right: 8px;
  background: currentColor;
  content: "";
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M12 2a7 7 0 0 0-7 7c0 5.25 7 13 7 13s7-7.75 7-13a7 7 0 0 0-7-7Zm0 9.5A2.5 2.5 0 1 1 12 6a2.5 2.5 0 0 1 0 5.5Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero__notice-text strong {
  color: var(--color-primary);
  font-weight: inherit;
}

@media (max-width: 1024px) {
  .site-header {
    padding: 16px 16px 0;
  }

  .site-header__inner {
    min-height: 56px;
    padding: 12px 12px 12px 16px;
  }

  .pupil-logo {
    width: 81px;
  }

  .site-header__cta {
    display: none;
  }

  .site-header__menu-toggle {
    width: 58px;
    min-height: 44px;
  }

  .site-header__menu-toggle span {
    width: 18px;
  }

  .hero__panel {
    display: grid;
    grid-template-areas:
      "copy"
      "media";
    grid-template-rows: auto auto;
    align-items: start;
    padding: 36px 20px 0;
    border-radius: 0 0 32px 32px;
    min-height: 0;
    height: auto;
    max-height: none;
  }

  .hero__content {
    display: contents;
  }

  .hero__copy {
    grid-area: copy;
    position: relative;
    z-index: 3;
    gap: 20px;
    align-items: center;
    width: 100%;
    text-align: center;
  }

  .hero__title {
    font-size: clamp(34px, 8vw, 39px);
  }

  .hero__description {
    max-width: 308px;
    font-size: 18px;
  }

  .hero__actions {
    grid-area: media;
    align-self: end;
    justify-self: center;
    position: relative;
    z-index: 3;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 clamp(44px, 12vw, 68px);
  }

  .hero__button {
    width: min(100%, 209px);
    min-height: 50px;
    min-width: 0;
  }

  .hero__media {
    grid-area: media;
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 335 / 398;
    margin-top: 0;
    overflow: hidden;
    align-self: end;
    width: calc(100% + 40px);
    margin-left: -20px;
  }

  .hero__media::after {
    position: absolute;
    z-index: 2;
    right: -38px;
    bottom: 0;
    left: -38px;
    height: 54%;
    background: linear-gradient(to bottom, rgb(253 247 243 / 0), var(--color-hero-fade));
    content: "";
    pointer-events: none;
  }

  .hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center bottom;
  }

  .hero__notice {
    min-height: 140px;
    margin-top: -72px;
    padding: 92px 20px 20px;
    border-radius: 0 0 32px 32px;
  }

  .hero__notice-text {
    display: block;
    max-width: 335px;
    font-size: 14px;
    line-height: 1.28;
  }

  .hero__notice-text span,
  .hero__notice-text strong {
    display: block;
  }

  .hero__notice-text strong {
    margin-top: 4px;
  }

  .hero__notice-text::before {
    display: none;
  }

  .site-header__menu {
    width: calc(100% - 40px);
    margin: 8px auto;
    padding: 28px 20px 20px 0;
    right: unset;
  }

  .site-header__menu-list a {
    color: var(--color-text);
    font-size: 18px;
    padding-left: 13px;
  }

  .site-header__menu-bottom {
    margin-left: 16px;
    padding-top: 24px;
    margin-top: 32px;
  }

  .hero__inner {
    display: contents;
  }
}

@media (max-width: 380px) {
  .hero__panel {
    padding-inline: 16px;
  }

  .hero__title {
    font-size: clamp(30px, 8.8vw, 34px);
  }

  .hero__description {
    max-width: 275px;
    font-size: 16px;
  }

  .hero__media {
    aspect-ratio: 320 / 370;
    margin-top: 0;
  }

  .hero__actions {
    margin-bottom: 40px;
  }
}