﻿.nf-404 {
  position: relative;
  padding: 72px 0;
  background:
    radial-gradient(circle at 12% 20%, rgba(194, 1, 22, 0.12), transparent 38%),
    radial-gradient(circle at 90% 85%, rgba(246, 192, 95, 0.28), transparent 44%),
    #f9f2e6;
}

.nf-404__card {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid rgba(194, 1, 22, 0.14);
  border-radius: 22px;
  padding: 56px 32px;
  box-shadow: 0 20px 60px rgba(72, 30, 10, 0.1);
}

.nf-404__code {
  font-size: clamp(72px, 14vw, 136px);
  line-height: 1;
  letter-spacing: 3px;
  margin-bottom: 16px;
  background: var(--text-gradient-red);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.nf-404__title {
  margin: 0;
  font-family: var(--font-malik-bold);
  font-size: clamp(28px, 4vw, 44px);
  color: #1e1e1e;
}

.nf-404__desc {
  max-width: 640px;
  margin: 18px auto 0;
  font-size: 17px;
  line-height: 1.75;
  color: #555;
}

.nf-404__actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.nf-404__btn {
  min-width: 170px;
  border-radius: 30px;
  padding: 11px 22px;
  font-weight: 700;
}

.nf-404__btn--ghost {
  border: 1px solid var(--bs-primary);
  color: var(--bs-primary);
  background: #fff;
}

.nf-404__btn--ghost:hover {
  color: #fff;
  background: var(--bg-gradient-red2);
}

@media (max-width: 767.98px) {
  .nf-404 {
    padding: 40px 0;
  }

  .nf-404__card {
    border-radius: 16px;
    padding: 34px 18px;
  }

  .nf-404__desc {
    font-size: 15px;
    line-height: 1.65;
  }

  .nf-404__btn {
    width: 100%;
  }
}
