:root {
  --bg: #F5F6F6;
  --bg-deep: #1F1C18;
  --surface: #ffffff;
  --ink: #1A1A1A;
  --ink-2: #5F5F5F;
  --muted: #8a7d6c;
  --line: rgba(26, 26, 26, 0.12);
  --line-strong: rgba(26, 26, 26, 0.22);
  --accent-deep: #292524;
  --accent-soft: #E0FF98;
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: 0; background: 0; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.display {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 0.92;
}

.lead {
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 11px 18px; font-size: 14px; }

.page-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.not-found-main {
  flex: 1;
  background: var(--bg);
}

.not-found-hero {
  background: var(--bg);
  padding: clamp(20px, 3vw, 32px) 0 clamp(72px, 10vw, 136px);
  min-height: calc(100svh - 97px);
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(28px, 4vw, 40px);
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--muted);
  transition: color 0.18s ease;
}

.breadcrumbs a:hover {
  color: var(--ink);
}

.breadcrumbs-sep {
  opacity: 0.4;
}

.not-found-center {
  min-height: calc(100svh - 97px - clamp(20px, 3vw, 32px) - clamp(72px, 10vw, 136px) - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.not-found-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.not-found-code {
  margin: 0;
  font-size: clamp(120px, 24vw, 280px);
  line-height: 0.82;
  letter-spacing: -0.08em;
  color: var(--ink);
}

.not-found-title {
  margin: clamp(20px, 3vw, 28px) 0 0;
  font-size: clamp(24px, 3.2vw, 40px);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.not-found-actions {
  margin-top: clamp(28px, 4vw, 36px);
}

.fab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 14px;
  background: var(--ink);
  color: #F0ECE4;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  box-shadow: none;
  transition: transform 0.2s ease, background 0.2s ease;
}

.fab:hover {
  transform: translateY(-2px);
  background: var(--accent-deep);
}

.fab-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .not-found-hero {
    padding-bottom: 72px;
  }

  .not-found-center {
    min-height: calc(100svh - 85px - clamp(20px, 3vw, 32px) - 72px - 44px);
  }

  .not-found-actions {
    width: 100%;
  }

  .fab {
    width: 100%;
    justify-content: center;
  }
}
