/* 404 (.nfound) для infinitum-consult.
   Вид как при ширине до ~990px; на больших экранах тот же layout. */
@font-face {
  font-family: "Open Sans Condensed";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/local/templates/knowledge/assets/fonts/OpenSansCondensed/OpenSansCondensed-Bold.woff") format("woff");
}

/* Серый фон на всю высоту viewport (без белой полосы внизу после скрытия контактов) */
html:has(main.landing-public-mode .nfound),
body:has(main.landing-public-mode .nfound) {
  min-height: 100%;
  background-color: rgb(241, 241, 241);
}

body:has(main.landing-public-mode .nfound) {
  min-height: 100vh;
  margin: 0;
}

main.landing-public-mode:has(.nfound) {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  min-height: 100vh;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background-color: rgb(241, 241, 241);
}

.nfound {
  margin-right: 16px;
  margin-left: 16px;
  position: relative;
  min-height: 0;
  display: grid;
  -ms-flex-line-pack: start;
      align-content: start;
  justify-items: center;
  -webkit-box-flex: 1;
      -ms-flex-positive: 1;
          flex-grow: 1;
}

.nfound::before {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  margin: auto;
  width: 4px;
  height: 100%;
  content: "";
  background-color: #cb333b;
}

.nfound__header {
  padding: 0;
  margin: 0;
  font-family: "Open Sans Condensed", "Open Sans", sans-serif;
  font-size: 2.813rem;
  font-style: normal;
  font-weight: 700;
  line-height: 3.125rem;
  letter-spacing: 0.5px;
  -webkit-font-feature-settings: "clig" off, "liga" off;
          font-feature-settings: "clig" off, "liga" off;
  position: relative;
  margin-top: 18px;
  color: #111111;
  -webkit-box-ordinal-group: 0;
      -ms-flex-order: -1;
          order: -1;
  text-align: center;
  z-index: 1;
  background-color: rgb(241, 241, 241);
}

.nfound__pig {
  position: relative;
  z-index: 1;
  display: block;
  padding-top: 35px;
  padding-bottom: 15px;
  justify-self: center;
  background-color: rgb(241, 241, 241);
}

.nfound__plug {
  position: relative;
  z-index: 1;
  display: block;
  width: 56px;
  height: 102px;
  justify-self: center;
  background-color: rgb(241, 241, 241);
}
