.notFoundPage {
  display: flex;
  height: auto;
  min-height: 100%;
  min-height: 100vh;
  flex-direction: column;
  background-color: #f8f8f8;
}

.notFoundMain {
  display: grid;
  flex: 1 0 auto;
  min-height: 0;
  place-items: center;
  padding: clamp(120px, 11vw, 180px) 5.8vw clamp(80px, 8vw, 130px);
}

.notFoundPage .siteFooter {
  flex-shrink: 0;
  margin-top: auto;
}

.notFoundContent {
  width: min(100%, 560px);
  text-align: center;
}

.notFoundContent h1 {
  margin: 0 0 22px;
  padding: 0;
  color: #000;
  font-family: 'ABC MonumentGrotesk Regular', sans-serif;
  font-size: clamp(104px, 7vw, 150px);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: 0;
}

.notFoundContent p {
  margin: 0;
  color: #656565;
  font-family: 'ABC MonumentGrotesk Regular', sans-serif;
  font-size: clamp(22px, 1.65vw, 34px);
  line-height: 1.2;
}

.notFoundText span {
  display: inline-block;
  width: 0;
  max-width: 100%;
  overflow: hidden;
  border-right: 2px solid currentColor;
  white-space: nowrap;
  animation:
    not-found-type 2.2s steps(29, end) 0.25s forwards,
    not-found-caret 0.55s step-end 0s 5 forwards;
}

.notFoundButton {
  width: min(100%, 288px);
  min-height: 58px;
  margin-top: 74px;
  padding: 0 28px;
  font-size: clamp(15px, 0.95vw, 18px);
}

@keyframes not-found-type {
  from {
    width: 0;
  }

  to {
    width: 29ch;
  }
}

@keyframes not-found-caret {
  0%,
  100% {
    border-color: transparent;
  }

  50% {
    border-color: currentColor;
  }
}

@media screen and (min-width: 1001px) and (max-width: 1500px) and (min-height: 960px) and (max-height: 1100px) {
  .notFoundMain {
    padding-top: 150px;
  }
}

@media screen and (max-width: 1000px) {
  .notFoundMain {
    padding: 124px 32px 84px;
  }

  .notFoundButton {
    min-height: 54px;
    margin-top: 52px;
    font-size: 14px;
  }
}

@media screen and (max-width: 600px) {
  .notFoundMain {
    padding: 112px 18px 68px;
  }

  .notFoundContent h1 {
    margin-bottom: 18px;
    font-size: 96px;
  }

  .notFoundContent p {
    font-size: 20px;
  }

  .notFoundButton {
    width: 100%;
    min-height: 50px;
    margin-top: 42px;
    font-size: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .notFoundText span {
    width: auto;
    border-right: 0;
    animation: none;
  }
}
