/*
 * #НОКТИ system/error page, not plugin 404/empty-state layouts.
 * e107 supplies localized ERROR_* strings and the two native action links.
 */
.htn-error-page {
  min-height: 55vh;
  padding-block: clamp(2.75rem, 6vw, 5.5rem) clamp(4rem, 8vw, 7rem);
  background: #fafbf7;
  color: #142a0d;
}

.htn-error-page__inner {
  max-width: 880px;
  margin-inline: auto;
}

.htn-error-page__header {
  margin-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.htn-error-page__code {
  display: block;
  color: #ddc762;
  font-size: clamp(5.5rem, 15vw, 10rem);
  font-weight: 700;
  letter-spacing: -.075em;
  line-height: .9;
  margin: 0 0 .85rem;
  user-select: none;
}

.htn-error-page__eyebrow {
  margin: 0 0 .65rem;
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
  line-height: 1.5;
  text-transform: uppercase;
  color: #557341;
}

.htn-error-page__title {
  max-width: 770px;
  margin: 0 auto;
  font-size: clamp(1.65rem, 3.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.22;
  text-wrap: balance;
  overflow-wrap: anywhere;
  color: #142a0d;
}

.htn-error-page__details {
  padding: clamp(1.4rem, 4vw, 3rem);
  border: 1px solid #e0e4d9;
  border-radius: var(--htn-card-radius, .75rem);
  background: #fff;
  text-align: center;
}

.htn-error-page__caption {
  margin: 0 auto 1rem;
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.4;
  color: #142a0d;
}

.htn-error-page__content {
  max-width: 650px;
  margin-inline: auto;
  color: #404b3b;
  font-size: 1rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.htn-error-page__content :last-child {
  margin-bottom: 0;
}

.htn-error-page__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
}

.htn-error-page__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: .7rem 1.25rem;
  border-radius: .5rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: normal;
  text-align: center;
  text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.htn-error-page__actions .btn-primary {
  color: #fff;
  background: #12320c;
  border-color: #12320c;
}

.htn-error-page__actions .btn-primary:hover {
  color: #fff;
  background: #23511b;
  border-color: #23511b;
}

.htn-error-page__actions .btn-secondary {
  color: #142a0d;
  background: #e5d272;
  border-color: #e5d272;
}

.htn-error-page__actions .btn-secondary:hover {
  color: #142a0d;
  background: #d4bf60;
  border-color: #d4bf60;
}

.htn-error-page__actions .btn:focus-visible {
  outline: 3px solid #a78d30;
  outline-offset: 3px;
}

@media (hover: hover) {
  .htn-error-page__actions .btn:hover {
    transform: translateY(-2px);
  }
}

@media (max-width: 575.98px) {
  .htn-error-page {
    padding-block: 2.5rem 4.5rem;
  }

  .htn-error-page__details {
    padding: 1.5rem 1.1rem;
  }

  .htn-error-page__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .htn-error-page__actions .btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .htn-error-page__actions .btn {
    transition: none;
  }

  .htn-error-page__actions .btn:hover {
    transform: none;
  }
}
