/* =========================================================================
   404 — сторінка «нічого не знайдено» (сесія 17)

   Сторінка лишається PL-ною: на UA це голий `.page-404` з текстом
   (`css/critical.css`), а тут намальована сторінка з фоновим фото, великим
   «404» у вигляді svg і темним тлом — рішення сесії 13. Тому правила
   перенесені зі старого `stylesheet/style.css` як є; без них лишався
   світлий фон, картинка ставала інлайновою, а падінги зникали зовсім.

   Клас `.return-btn` зі старого файлу сюди не переїхав — його знято
   з розмітки ще в сесії 13 (він домальовував зрізані кути старого дизайну).
   Кнопка тепер `.button-contained.inverse.page-btn` з нової верстки.
   ========================================================================= */

.not-found {
  position: relative;
  background: #15161a;
  /* субпіксельна щілина між темним блоком і футером на деяких масштабах */
  margin-bottom: -1px;
}

.not-found-bg {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100%;
  height: auto;
  max-width: 1920px;
  margin: 0 auto;
  object-fit: contain;
  transform: translateX(-50%);
}

.not-found__content {
  position: relative;
  max-width: fit-content;
  margin: 0 auto;
  padding-top: 120px;
  padding-bottom: 471px;
}

.not-found__main {
  display: flex;
  justify-content: center;
  margin-bottom: 80px;
}

.not-found__title {
  color: #fff;
  text-align: center;
  font-family: 'Tektur', sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 56px;
  margin-bottom: 40px;
}

.not-found__text {
  color: #fff;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 64px;
}

/* Кнопка «на головну». Було в блоці 28 `css/pl-transition.css` (сесія 13) —
   переїхало сюди разом із рештою сторінки. */
.not-found__content .page-btn {
  display: flex;
  max-width: fit-content;
  margin: 32px auto 0;
}

@media (max-width: 1200px) {
  .not-found {
    max-height: 930px;
  }

  .not-found__content {
    padding-top: 80px;
    padding-bottom: 346px;
  }

  .not-found__main svg {
    width: 490px;
    height: 210.71px;
  }

  .not-found__title {
    font-size: 24px;
    line-height: 32px;
  }
}

@media (max-width: 600px) {
  .not-found__content {
    padding: 48px 12px 191px;
  }

  .not-found__main svg {
    width: 390px;
    height: 167.708px;
  }

  .not-found__main,
  .not-found__text {
    margin-bottom: 40px;
  }

  .not-found__title {
    margin-bottom: 24px;
  }

  /* На вузькому екрані фото в `contain` лишає пів екрана порожнім — обрізаємо. */
  .not-found-bg {
    height: 42%;
    object-fit: cover;
  }
}
