.not-found {
  --nf-charcoal: #414042;
  --nf-yellow: #febe33;
  --nf-paper: #f8f8f7;
  width: min(100%, 1512px);
  min-height: min(720px, 78svh);
  margin: 0 auto;
  padding: clamp(16px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-family: 'Onest', 'Segoe UI', Arial, sans-serif;
  color: var(--nf-charcoal);
}
.not-found__panel {
  min-height: clamp(430px, 54vw, 620px);
  padding: clamp(28px, 5.4vw, 78px);
  border-radius: 22px;
  background: var(--nf-paper);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr);
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  overflow: hidden;
}
.not-found__content { position: relative; z-index: 1; max-width: 560px; }
.not-found__label { display: block; margin-bottom: 30px; font-size: 14px; font-weight: 500; }
.not-found h1 { max-width: 11ch; font-family: inherit; font-size: clamp(42px, 5.5vw, 78px); font-weight: 500; line-height: 1.04; letter-spacing: -.055em; }
.not-found__content > p { max-width: 45ch; margin-top: 28px; color: #62666e; font-size: clamp(16px, 1.25vw, 18px); line-height: 1.55; }
.not-found__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 36px; }
.not-found__button { min-height: 54px; padding: 13px 18px 13px 22px; border-radius: 10px; background: var(--nf-yellow); display: inline-flex; align-items: center; justify-content: space-between; gap: 42px; color: #29282a; font-size: 15px; font-weight: 600; }
.not-found__button span { font-size: 22px; font-weight: 400; line-height: 1; }
.not-found__button:hover { background: #ffd26c; }
.not-found__link { font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 5px; }
.not-found__art { display: flex; align-items: center; justify-content: center; white-space: nowrap; font-size: clamp(130px, 19vw, 290px); font-weight: 600; line-height: 1; letter-spacing: -.12em; font-variant-numeric: tabular-nums; user-select: none; }
.not-found__art span:last-child { margin-right: .12em; }
.not-found__zero { color: var(--nf-yellow); }
.not-found__footer { margin: 18px 4px 0; color: #62666e; font-size: 12px; }
.not-found :focus-visible { outline: 3px solid var(--nf-yellow); outline-offset: 4px; }
@media (max-width: 800px) {
  .not-found { min-height: auto; }
  .not-found__panel { grid-template-columns: 1fr; min-height: 0; }
  .not-found__art { grid-row: 1; justify-content: flex-start; font-size: clamp(112px, 28vw, 210px); }
  .not-found__label { margin-bottom: 20px; }
}
@media (max-width: 480px) {
  .not-found { padding: 16px; }
  .not-found__panel { padding: 26px 24px 34px; border-radius: 16px; gap: 18px; }
  .not-found__art { font-size: clamp(98px, 28vw, 132px); }
  .not-found h1 { font-size: clamp(39px, 11vw, 52px); }
  .not-found__content > p { margin-top: 18px; }
  .not-found__actions { margin-top: 26px; }
  .not-found__button { width: 100%; }
}
