/* Стили для страницы 500 */

.server-error-page {
  width: 100%;
  min-height: 100vh;
  padding-top: var(--header-offset);
}

/* Server Error Hero Section */
.server-error-hero-section {
  position: relative;
  width: 100%;
  padding-top: 32px;
}

.server-error-hero-star {
  position: absolute;
  top: -80px;
  height: 799px;
  width: auto;
  pointer-events: none;
  z-index: 0;
}

.server-error-hero-star--left {
  left: 0;
}

.server-error-hero-star--right {
  right: 0;
  transform: scaleX(-1);
}

.server-error-hero-star--left.server-error-hero-star--mobile,
.server-error-hero-star--right.server-error-hero-star--mobile {
  display: none;
}

.server-error-hero-container {
  position: relative;
  max-width: 1080px;
  padding: 32px 24px 0px 24px;
  margin: 0 auto;
  z-index: 1;
  width: 100%;
}

.server-error-hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
  width: 100%;
}

.server-error-number {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 1000;
  font-style: normal;
  font-size: clamp(128px, 28vw, 384px);
  line-height: 100%;
  letter-spacing: -0.01em;
  text-align: center;
  color: #FFFFFF;
  margin: 0;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-text-stroke: clamp(6px, 0.018em, 6px) #108669;
  text-shadow: 0px 16px 25px 0px #10866929;
}

.server-error-title {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-style: normal;
  font-size: 64px;
  line-height: 100%;
  letter-spacing: -0.01em;
  text-align: center;
  text-transform: uppercase;
  color: #108669;
  margin: 0;
  text-shadow: 0px 16px 25px #10866929;
}

.server-error-description {
  font-family: 'SF Pro', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20px;
  line-height: 100%;
  letter-spacing: -0.01em;
  color: #2B2B2B;
  margin: 0;
}

.server-error-button {
  margin-top: 8px;
}

@media (max-width: 768px) {
  .server-error-hero-star--left.server-error-hero-star--desktop,
  .server-error-hero-star--right.server-error-hero-star--desktop {
    display: none !important;
  }

  .server-error-hero-star--left.server-error-hero-star--mobile,
  .server-error-hero-star--right.server-error-hero-star--mobile {
    display: block !important;
  }

  .server-error-hero-container {
    padding-inline: 20px !important;
  }

  .server-error-hero-content {
    gap: 20px !important;
  }

  .server-error-title {
    font-size: 32px !important;
  }

  .server-error-description {
    font-size: 14px !important;
  }
}

