:root {
  --text-color: #4a4a4a;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", Arial, sans-serif;
  color: var(--text-color);
  background-color: #edf0ec;
}

img {
  display: block;
  max-width: 100%;
}

.stub {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  overflow: hidden;
  background-color: #edf0ec;
  background-image: url("../img/bg-desktop-1440.jpg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.stub__overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.stub__content {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 40px 80px 110px;
  max-width: 620px;
}

.stub__logo {
  width: 247px;
  height: auto;
  margin-bottom: 62px;
}

.stub__title {
  margin: 0;
  font-weight: 500;
  font-size: 32px;
  line-height: 1.2;
  letter-spacing: 0;
  color: #525252;
}

/* 1280 */
@media (max-width: 1366px) {
  .stub {
    background-image: url("../img/bg-desktop-1280.jpg");
    background-position: center top;
  }

  .stub__content {
    max-width: 560px;
    padding: 70px 32px 70px 108px;
  }

  .stub__logo {
    width: 215px;
    margin-bottom: 52px;
  }

  .stub__title {
    font-size: 28px;
  }
}

/* tablet fallback */
@media (max-width: 1024px) {
  .stub {
    background-position: 68% top;
  }

  .stub__content {
    padding: 56px 24px 56px 56px;
    max-width: 460px;
  }

  .stub__logo {
    width: 190px;
    margin-bottom: 40px;
  }

  .stub__title {
    font-size: 24px;
  }
}

/* mobile */
@media (max-width: 767px) {
  .stub {
    background-image: url("../img/bg-mobile-393.jpg");
    background-position: center top;
    background-size: cover;
  }

  .stub__content {
    min-height: 100svh;
    min-height: 100vh;
    max-width: none;
    align-items: center;
    justify-content: flex-start;
    text-align: center;
    padding: 430px 24px 48px;
  }

  .stub__logo {
    width: min(270px, 72vw);
    margin-bottom: 58px;
	margin-top: 160px;
  }

  .stub__title {
    max-width: 320px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 500;
  }
}

/* very small screens */
@media (max-width: 420px) {
  .stub__content {
    padding-top: 46vh;
  }

  .stub__logo {
    width: min(258px, 74vw);
    margin-bottom: 44px;
  }

  .stub__title {
    font-size: 30px;
  }
}

/* short screens */
@media (max-height: 740px) and (max-width: 767px) {
  .stub__content {
    padding-top: 380px;
  }

  .stub__logo {
    margin-bottom: 40px;
  }

  .stub__title {
    font-size: 28px;
  }
}
