.uh-error-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 12%, rgba(0, 212, 255, 0.18), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(40, 108, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #071322 0%, #091b2c 48%, #05101d 100%);
  color: #f8fbff;
  padding: 76px 0 64px;
  border-bottom: 1px solid rgba(0, 212, 255, 0.18);
}

.uh-error-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.05) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.92), transparent);
}

.uh-error-page__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.uh-error-page__inner::before,
.uh-error-page__inner::after,
.uh-error-page__links::before,
.uh-error-page__links::after {
  content: none;
  display: none;
}

.uh-error-page__copy {
  min-width: 0;
}

.uh-error-page__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border: 1px solid rgba(0, 212, 255, 0.34);
  border-radius: 999px;
  background: rgba(10, 31, 52, 0.8);
  color: #7ee7ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.uh-error-page h1 {
  margin: 24px 0 16px;
  color: #ffffff;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  font-weight: 900;
}

.uh-error-page__lead {
  max-width: 620px;
  color: rgba(232, 240, 251, 0.9);
  font-size: 18px;
  line-height: 1.6;
  margin: 0 0 16px;
}

.uh-error-page__note {
  max-width: 620px;
  color: rgba(203, 213, 225, 0.76);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.uh-error-page__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.uh-error-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.uh-error-btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.uh-error-btn--primary {
  background: linear-gradient(135deg, #00d4ff, #22c55e);
  color: #00111d;
  box-shadow: 0 18px 48px rgba(0, 212, 255, 0.24);
}

.uh-error-btn--ghost {
  color: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: rgba(15, 32, 50, 0.66);
}

.uh-error-btn--ghost:hover {
  border-color: rgba(0, 212, 255, 0.54);
  color: #ffffff;
}

.uh-error-btn--soft {
  color: rgba(232, 240, 251, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 32, 50, 0.38);
}

.uh-error-btn--soft:hover {
  color: #ffffff;
  border-color: rgba(148, 163, 184, 0.38);
}

.uh-error-page__visual {
  position: relative;
}

.uh-error-page__art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 350px;
  padding: 26px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(18, 43, 67, 0.88), rgba(7, 19, 34, 0.92)),
    radial-gradient(circle at 50% 18%, rgba(0, 212, 255, 0.18), transparent 42%);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.uh-error-page__art::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 22px;
  border: 1px dashed rgba(0, 212, 255, 0.18);
  pointer-events: none;
}

.uh-error-page__art img {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  max-height: 300px;
  object-fit: contain;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.32));
}

.uh-error-page__status {
  position: absolute;
  right: 22px;
  bottom: -22px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100% - 44px));
  padding: 14px 18px;
  border: 1px solid rgba(0, 212, 255, 0.28);
  border-radius: 16px;
  background: rgba(5, 16, 29, 0.94);
  color: rgba(232, 240, 251, 0.88);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.uh-error-page__pulse {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 7px rgba(34, 197, 94, 0.16);
}

.uh-error-page__links {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 46px;
}

.uh-error-page__links a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  background: rgba(18, 43, 67, 0.62);
  color: #e8f0fb;
  font-weight: 800;
  text-decoration: none;
}

.uh-error-page__links a:hover {
  color: #ffffff;
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.1);
  text-decoration: none;
}

.uh-error-page__links i {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #00d4ff;
  background: rgba(0, 212, 255, 0.12);
}

body.uh-error-document .partners-section {
  padding-top: 52px;
  padding-bottom: 46px;
  background: linear-gradient(135deg, #071322 0%, #0a1f34 48%, #071322 100%);
}

body.uh-error-document .partners-section::before,
body.uh-error-document .partners-section::after {
  opacity: 0.45;
}

body.uh-error-document .partner-item-inner {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

body.uh-error-document .uh-chat-fab {
  bottom: 104px;
}

body.uh-error-document .uh-chat-widget {
  bottom: 174px;
}

@media (max-width: 991px) {
  .uh-error-page {
    padding: 74px 0 58px;
  }

  .uh-error-page__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .uh-error-page__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .uh-error-page h1 {
    font-size: 44px;
  }

  .uh-error-page__lead {
    font-size: 17px;
  }

  .uh-error-page__actions,
  .uh-error-page__links {
    grid-template-columns: 1fr;
  }

  .uh-error-btn,
  .uh-error-page__links a {
    width: 100%;
  }

  .uh-error-page__art {
    min-height: 300px;
    border-radius: 22px;
  }

  .uh-error-page__status {
    position: relative;
    right: auto;
    bottom: auto;
    margin: -4px auto 0;
    max-width: 100%;
  }
}
