body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}
.error-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px 5%;
  border-bottom: 1px solid var(--border-light);
}
.error-nav > a:last-child {
  font-size: 0.8125rem;
  color: var(--text-2);
}
.error-container {
  width: 90%;
  max-width: 640px;
  margin: auto;
  padding: 80px 0;
  text-align: center;
}
.error-code {
  font-size: clamp(7rem, 18vw, 12rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.09em;
  color: var(--accent);
  margin: 32px 0;
}
.error-title {
  font-size: 2.2rem;
  font-weight: 500;
  line-height: 1.15;
}
.error-message {
  color: var(--text-2);
  font-size: 1rem;
  margin: 24px auto 32px;
  max-width: 470px;
}
.error-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.error-footer {
  border-top: 1px solid var(--border-light);
  padding: 24px 5%;
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
}
@media (max-width: 480px) {
  .error-container {
    padding-block: 50px;
  }
  .error-title {
    font-size: 1.9rem;
  }
  .error-actions {
    flex-direction: column;
  }
  .error-actions .btn {
    width: 100%;
  }
}

.server-error .error-code {
  color: var(--danger);
}
.rate-error .error-code {
  color: var(--warn);
}
