.what-page {
  min-width: 320px;
  overflow: hidden;
  background: var(--color-white);
}

.what-main {
  background: var(--color-white);
}

.what-hero {
  display: flex;
  min-height: 100vh;
  min-height: 100svh;
  align-items: flex-end;
  justify-content: center;
  padding: 400px 260px 240px;
  text-align: center;
}

.what-hero h1 {
  width: min(920px, 100%);
  margin: 0;
  font-size: clamp(40px, 3.35vw, 48px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.what-areas {
  padding: 0 120px;
}

.what-area {
  display: flex;
  min-height: 1040px;
  scroll-margin-top: 184px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 80px;
  padding: 96px 0 345px;
  border-top: 1px solid var(--color-yellow);
}

.what-areas:not(.has-more) .what-area.is-visible-last {
  min-height: 0;
  padding-bottom: 200px;
  border-bottom: 0;
}

.what-area__content {
  width: min(660px, 100%);
}

.what-area__heading {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.what-area__label {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.what-area__heading h2 {
  margin: 0;
  font-size: 64px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.22;
}

.what-area__text {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 64px;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.what-area__text p,
.what-area__text ul,
.what-area__text ol {
  margin: 0;
}

.what-area__text a {
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.what-area__media {
  display: block;
  flex: 0 0 422px;
  width: 422px;
  height: 541px;
  margin-top: 44px;
  overflow: hidden;
  background: var(--color-neutral);
}

.what-area__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.what-more {
  display: flex;
  height: 339px;
  align-items: center;
  justify-content: center;
}

.what-more[hidden],
.what-area[hidden] {
  display: none;
}

.what-more__button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-black);
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.what-more__icon {
  --what-more-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M33.704 12.803C34.0946 13.1935 34.0946 13.8265 33.704 14.217L20.7187 27.2024C20.499 27.4219 20.2027 27.5179 19.9159 27.4905C19.6866 27.4727 19.4625 27.3758 19.287 27.2004L6.30267 14.217C5.91221 13.8266 5.91234 13.1935 6.30267 12.803C6.69319 12.4124 7.3262 12.4124 7.71673 12.803L20.0038 25.0891L32.29 12.803C32.6805 12.4124 33.3135 12.4124 33.704 12.803Z' fill='black'/%3E%3C/svg%3E");
  display: block;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  background: currentColor;
  -webkit-mask: var(--what-more-arrow) center / contain no-repeat;
  mask: var(--what-more-arrow) center / contain no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  .what-more__icon {
    transition: transform 200ms ease;
  }

  .what-more__button:hover .what-more__icon,
  .what-more__button:focus-visible .what-more__icon {
    transform: translateY(4px);
  }
}

@media (max-width: 1100px) {
  .what-hero {
    padding-right: 120px;
    padding-left: 120px;
  }

  .what-areas {
    padding: 0 64px;
  }

  .what-area {
    gap: 48px;
  }

  .what-area__heading h2 {
    font-size: 54px;
  }

  .what-area__text {
    font-size: 28px;
  }

  .what-area__media {
    flex-basis: 360px;
    width: 360px;
    height: 461px;
  }
}

@media (max-width: 767px) {
  .what-hero {
    min-height: 610px;
    align-items: flex-start;
    padding: 224px 24px 64px;
  }

  .what-hero h1 {
    width: 100%;
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .what-areas {
    padding: 0 24px;
  }

  .what-area {
    min-height: 0;
    scroll-margin-top: 80px;
    flex-direction: column;
    gap: 32px;
    padding: 64px 0;
    border-top: 1px solid var(--color-yellow);
  }

  .what-areas:not(.has-more) .what-area.is-visible-last {
    padding-bottom: 64px;
  }

  .what-area.has-media .what-area__content {
    order: 2;
  }

  .what-area__content {
    width: 100%;
  }

  .what-area__heading {
    gap: 24px;
  }

  .what-area__label {
    font-size: 18px;
    letter-spacing: 0.03em;
  }

  .what-area__heading h2 {
    font-size: 40px;
    line-height: 1.22;
  }

  .what-area__text {
    gap: 24px;
    margin-top: 32px;
    font-size: 24px;
    line-height: 1.2;
    letter-spacing: -0.01em;
  }

  .what-area__media {
    order: 1;
    flex: none;
    width: 100%;
    height: 345px;
    margin-top: 0;
  }

  .what-more {
    height: auto;
  }

  .what-more__button {
    gap: 4px;
    height: auto;
    padding: 64px 0;
    font-size: 14px;
    letter-spacing: 0.09em;
  }

  .what-more__icon {
    width: 24px;
    height: 24px;
  }
}
