body:has(> .not-found-page) {
  margin: 0;
}

.not-found-page {
  box-sizing: border-box;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 32px clamp(24px, 5vw, 72px);
  background: #f7f8fa;
  color: #17263b;
  font-family: var(--font-sans, Arial, sans-serif);
  -webkit-font-smoothing: antialiased;
}

.not-found-header a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #123b77;
  font-size: 26px;
  font-weight: 720;
  letter-spacing: -0.9px;
  text-decoration: none;
}

.not-found-content {
  width: 100%;
  max-width: 520px;
  margin: auto;
  padding: 48px 0 80px;
  text-align: center;
}

.not-found-code {
  margin: 0 0 24px;
  color: #123b77;
  font-size: clamp(100px, 22vw, 180px);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.045em;
}

.not-found-content h1 {
  margin: 0;
  font-size: clamp(26px, 5vw, 34px);
  font-weight: 620;
  line-height: 1.2;
  letter-spacing: -1px;
}

.not-found-description {
  max-width: 380px;
  margin: 16px auto 28px;
  color: #647083;
  font-size: 15px;
  line-height: 1.7;
}

.not-found-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 28px;
  border: 1px solid #c92133;
  border-radius: 7px;
  background: #dc2739;
  color: white;
  font-size: 14px;
  font-weight: 570;
  text-decoration: none;
  touch-action: manipulation;
}

.not-found-home:hover {
  background: #bf1b2c;
}

.not-found-page a:focus-visible {
  outline: 3px solid #3777ca;
  outline-offset: 4px;
}
