.system-page,
.not-found {
  min-height: 60vh;
  padding-block: var(--section-padding);
}

.system-page__list {
  display: grid;
  gap: 2rem;
}

.system-page__article,
.system-page__empty,
.not-found__card {
  border-radius: var(--borr-sm);
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  background-color: var(--color-white);
  box-shadow: var(--shadow-card);
}

.system-page h1,
.not-found h1 {
  margin-bottom: 1.25rem;
  font-weight: 700;
  font-size: var(--text-2xl);
  line-height: 1.2;
  color: var(--color-primary);
}

.system-page__content {
  font-size: var(--text-md);
  line-height: 1.5;
  color: var(--color-primary);
}

.system-page__content > * + * {
  margin-top: 1rem;
}

.system-page__empty,
.not-found__card {
  text-align: center;
}

.system-page__empty p,
.not-found__card p {
  max-width: 520px;
  margin-inline: auto;
  font-size: var(--text-sm);
  line-height: 1.5;
  color: var(--color-muted);
}

.system-page__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: var(--borr-sm);
  margin-top: 1.5rem;
  padding: 0.75rem 1.4rem;
  background-color: var(--color-accent);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--color-white);
}

.system-page__button--light {
  border: 1px solid var(--border-soft);
  background-color: var(--color-white);
  color: var(--color-black);
}

.not-found {
  display: grid;
  place-items: center;
}

.not-found__card {
  width: min(100%, 720px);
}

.not-found__code {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
  font-size: clamp(5rem, 18vw, 10rem);
  line-height: 0.9;
  color: var(--color-accent);
}

.not-found__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (hover: hover) {
  .system-page__button:hover {
    background-color: var(--color-primary);
  }

  .system-page__button--light:hover {
    border-color: var(--color-primary);
    background-color: var(--color-primary);
    color: var(--color-white);
  }
}
