.not-found-page {
  display: flex;
  min-height: clamp(500px, 62vh, 720px);
  align-items: center;
  justify-content: center;
  padding: clamp(72px, 10vw, 140px) 24px 96px;
  overflow: hidden;
  background: #fff;
  text-align: center;
}

.not-found-content {
  width: 100%;
  max-width: 1000px;
}

.not-found-content h1 {
  margin: 0;
  color: #102b61;
  font-size: clamp(2.65rem, 5vw, 4.5rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.not-found-face {
  white-space: nowrap;
}

@media (min-width: 641px) {
  .not-found-content h1 {
    white-space: nowrap;
  }
}

.not-found-content p {
  max-width: 620px;
  margin: clamp(32px, 4vw, 48px) auto 36px;
  color: #3d4c68;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  line-height: 1.3;
}

.not-found-home-link {
  display: inline-flex;
  min-width: min(100%, 360px);
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 15px 28px;
  border-radius: 14px;
  background: #102b61;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(16, 43, 97, 0.16);
  transition: background-color 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.not-found-home-link:hover {
  background: #1d4189;
  box-shadow: 0 16px 34px rgba(16, 43, 97, 0.22);
  transform: translateY(-2px);
}

.not-found-home-link:focus-visible {
  outline: 3px solid rgba(45, 129, 224, 0.45);
  outline-offset: 4px;
}

.not-found-home-icon {
  font-size: 1.55rem;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 640px) {
  .not-found-page {
    min-height: calc(100svh - 64px);
    padding: 72px 20px 88px;
  }

  .not-found-content h1 {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .not-found-content p {
    margin-top: 28px;
    font-size: 1.08rem;
  }

  .not-found-home-link {
    width: 100%;
    min-width: 0;
  }
}
