/* ========== 404 PAGE (LIGHT) ========== */

/* HERO */
.page_404-hero {
  background: #f3f4f6; /* светлый фон */
  color: #111827;
  padding: 90px 24px 70px;
}

.page_404-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.page_404-hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #ff2c7a;
  margin-bottom: 10px;
}

.page_404-hero-title {
  font-size: 2.1rem;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #0f172a;
}

.page_404-hero-subtitle {
  max-width: 620px;
  margin: 0 auto;
  font-size: 0.96rem;
  color: #4b5563;
}

.page_404-hero-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* BUTTONS */

.page_404-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.15s ease,
    border-color 0.2s ease;
}

.page_404-btn--primary {
  background: #ff2c7a;
  color: #ffffff;
  box-shadow: 0 10px 25px rgba(248, 113, 180, 0.4);
  border: 1px solid transparent;
}

.page_404-btn--primary:hover {
  background: #ff4a96;
  transform: translateY(-1px);
  box-shadow: 0 16px 35px rgba(244, 63, 94, 0.5);
}

.page_404-btn--ghost {
  background: #ffffff;
  color: #111827;
  border: 1px solid #e5e7eb;
}

.page_404-btn--ghost:hover {
  border-color: #ff2c7a;
  color: #111827;
  background: #fdf2f8;
}

/* LINKS SECTION */

.page_404-links {
  background: #ffffff; /* светлый блок снизу */
  padding: 40px 24px 90px;
}

.page_404-links-inner {
  max-width: 1100px;
  margin: 0 auto;
  color: #111827;
}

.page_404-links-title {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 6px;
  color: #0f172a;
}

.page_404-links-subtitle {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 26px;
  font-size: 0.95rem;
  color: #6b7280;
}

.page_404-links-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.page_404-link-card {
  display: block;
  padding: 18px 18px 20px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease,
    background 0.18s ease;
}

.page_404-link-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
  border-color: rgba(255, 44, 122, 0.6);
  background: #fdf2f8;
}

.page_404-link-heading {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #0f172a;
}

.page_404-link-text {
  font-size: 0.9rem;
  color: #4b5563;
}

/* ADAPTIVE */

@media (max-width: 900px) {
  .page_404-links-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page_404-hero {
    padding: 80px 16px 55px;
  }

  .page_404-links {
    padding: 32px 16px 70px;
  }

  .page_404-links-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .page_404-hero-title {
    font-size: 1.8rem;
  }
}
