.page-404 .hero-404 {
  padding: 100px 0 140px;
  background: linear-gradient(180deg, #ffffff 0%, #f0f4f8 100%);
  border-bottom-left-radius: 80px;
  border-bottom-right-radius: 80px;
}

.page-404 .hero-404-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.page-404 .hero-404-code {
  display: inline-block;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.page-404 .hero-404-content h1 {
  font-size: 3.25rem;
  line-height: 1.1;
  margin-bottom: 20px;
  color: var(--color-dark);
}

.page-404 .hero-404-content p {
  font-size: 1.15rem;
  color: var(--color-text-light);
  margin-bottom: 36px;
  max-width: 520px;
}

.page-404 .hero-404-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.page-404 .hero-404-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 40px;
  border-top-left-radius: 120px;
  box-shadow: var(--shadow-float);
  overflow: hidden;
  background: linear-gradient(145deg, #f8fafc 0%, #eef2f7 45%, rgba(188, 15, 24, 0.06) 100%);
}

.page-404 .hero-404-number {
  position: relative;
  z-index: 2;
  font-size: clamp(6rem, 14vw, 9rem);
  font-weight: 800;
  line-height: 1;
  color: var(--color-secondary);
  opacity: 0.92;
  letter-spacing: -0.04em;
}

.page-404 .hero-404-symbol {
  position: absolute;
  width: 88%;
  max-width: 380px;
  height: auto;
  opacity: 0.22;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 991px) {
  .page-404 .hero-404 {
    padding: 48px 0 100px;
    border-bottom-left-radius: 48px;
    border-bottom-right-radius: 48px;
  }

  .page-404 .hero-404-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .page-404 .hero-404-content h1 {
    font-size: 2.25rem;
  }

  .page-404 .hero-404-visual {
    min-height: 280px;
    order: -1;
  }
}

@media (max-width: 767px) {
  .page-404 .hero-404-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .page-404 .hero-404-actions .btn-primary {
    justify-content: center;
    text-align: center;
  }
}
