.not-found-page {
  display: grid;
  padding: clamp(2rem, 6vw, 5rem) 20px;
  place-items: center;
}

.not-found-page__panel {
  width: min(100%, 48rem);
  padding: clamp(2rem, 6vw, 4rem) clamp(1rem, 4vw, 3rem);
  color: var(--color-text);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  text-align: center;
}

.not-found-page__status {
  margin: 0 0 0.5rem;
  color: var(--color-navy);
  font-size: 1rem;
  font-weight: 700;
}

.not-found-page h1 {
  margin: 0;
  color: var(--color-navy);
  font-size: clamp(1.5rem, var(--font-fluid-vw-2-4, 2.4vw), 2.375rem);
  line-height: 1.4;
}

.not-found-page h1 span {
  display: inline-block;
  max-width: 100%;
}

.not-found-page__message {
  margin: 1rem auto 1.75rem;
  line-height: 1.8;
}

.not-found-page__home {
  display: inline-flex;
  min-height: 48px;
  padding: 0.65rem 1.5rem;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--color-navy);
  border: 2px solid var(--color-navy);
  border-radius: 2rem;
  font-weight: 700;
  text-decoration: none;
}

.not-found-page__home:hover {
  color: var(--color-navy);
  background: var(--color-bg);
  text-decoration: underline;
}

@media (max-width: 767px) {
  .not-found-page {
    padding-inline: 15px;
  }
}
