.not-found {
  position: relative;
  display: grid;
  min-height: calc(100svh - 96px);
  overflow: hidden;
  place-items: center;
  padding: 80px 0;
  background:
    radial-gradient(circle at 78% 28%, rgba(167, 38, 44, 0.14), transparent 32%),
    #17191c;
}

.not-found__container {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, 1440px);
  margin-inline: auto;
}

.not-found__code {
  position: absolute;
  z-index: -1;
  top: 50%;
  right: 0;
  color: rgba(255, 255, 255, 0.035);
  font-size: clamp(13rem, 28vw, 32rem);
  font-weight: 700;
  line-height: 0.75;
  letter-spacing: -0.09em;
  transform: translateY(-50%);
  user-select: none;
}

.not-found__eyebrow {
  margin-bottom: 18px;
  color: #e0555d;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.not-found h1 {
  font-size: clamp(3.6rem, 7vw, 8rem);
  font-weight: 600;
  line-height: 0.9;
  letter-spacing: -0.06em;
}

.not-found h1 span {
  color: #989ca1;
}

.not-found__text {
  max-width: 520px;
  margin-top: 30px;
  color: #aeb2b7;
  font-size: 1rem;
  line-height: 1.7;
}

.not-found__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

.not-found__actions a {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 0.76rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.not-found__actions .button--primary {
  border-color: #f3f1ec;
  background-color: #f3f1ec;
  color: #17191c;
}

.not-found__actions a:hover {
  transform: translateY(-2px);
}

.not-found__actions .button--secondary:hover {
  background-color: rgba(255, 255, 255, 0.07);
}

@media (max-width: 720px) {
  .not-found {
    min-height: calc(100svh - 78px);
  }

  .not-found__container {
    width: min(100% - 32px, 620px);
  }

  .not-found__code {
    top: 15%;
    right: -10%;
    transform: none;
  }
}

@media (max-width: 420px) {
  .not-found__container {
    width: calc(100% - 24px);
  }
}
