@font-face {
  font-family: "RotondaC";
  src:
    url("./fonts/RotondaC.woff2") format("woff2"),
    url("./fonts/RotondaC.woff") format("woff");
  font-weight: normal;
  font-style: normal;
  font-display: block;
}

@font-face {
  font-family: "RotondaC";
  src:
    url("./fonts/RotondaC-Bold.woff2") format("woff2"),
    url("./fonts/RotondaC-Bold.woff") format("woff");
  font-weight: bold;
  font-style: normal;
  font-display: block;
}

* {
  outline: none;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #fff;
  background-color: #da291c;
  font-family: "RotondaC", sans-serif;
  font-style: normal;
  font-weight: normal;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
  font-family: inherit;
}

.container {
  position: relative;
  overflow: hidden;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/*FIRST*/
.first {
  position: relative;
  display: flex;
  flex-direction: column;
  z-index: 2;
  flex: 1 0 auto;
}
.first::before {
  content: "";
  z-index: 0;
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 151px;
  background: linear-gradient(
    180deg,
    rgba(5, 36, 129, 0) 0%,
    rgba(5, 36, 129, 0.9) 70.67%,
    rgba(5, 36, 129, 0.9) 100%
  );
}

.first .content {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  position: relative;
  flex: 1 0 auto;
  max-width: 375px;
  margin: 0 auto;
  padding: 16px 20px 74px;
  min-height: 433px;
}

.logo {
  margin: 0 auto 11px;
}
.title {
  font-weight: 700;
  font-size: 30px;
  margin-bottom: 11px;
}
.subtitle {
  font-weight: 400;
  font-size: 16px;
  line-height: 113%;
}
.back {
  position: absolute;
  bottom: -68px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  display: flex;
  justify-content: center;
}
.back img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -44%);
  width: 490px;
  height: auto;
  object-fit: contain;
}
.first .link {
  margin: auto auto 0;
  z-index: 2;
  width: 244px;
}

.link {
  border-radius: 30px;
  padding: 12px 24px;
  height: 44px;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.4);
  background: #ffdc4d;
  font-family: inherit;
  font-weight: 700;
  font-size: 18px;
  line-height: 111%;
  color: #0a1f8f;
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

/*FIRST END*/

/*SECOND*/

.second {
  margin-top: -57px;
  z-index: 3;
  position: relative;
}
.back-space {
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 100%;
}
.back-space img {
  width: 100%;
  height: 100%;
}

.second .content {
  position: relative;
  padding: 49px 11px 36px;
  min-height: 352px;
  max-width: 375px;
  margin: 0 auto;
}
.rocket {
  position: absolute;
  width: 215px;
  height: auto;
  top: 31px;
  left: -38px;
}
.sputnik {
  top: 17px;
  right: 6px;
  position: absolute;
  width: 52px;
  height: auto;
}
.title-2 {
  font-weight: 700;
  font-size: 30px;
  margin-bottom: 10px;
  margin-left: 42%;
}
.subtitle-2 {
  font-weight: 400;
  font-size: 16px;
  line-height: 113%;
  margin-bottom: 73px;
  margin-left: 42%;
}
.second .link {
  width: 178px;
  margin: 0 auto;
}

/*SECOND END*/

@media (min-width: 768px) {
  .first::before {
    height: 212px;
  }

  .first .content {
    padding: 25px 56px 109px;
    min-height: 609px;
    max-width: 768px;
  }

  .logo {
    width: 240px;
    margin: 0 auto 29px;
  }
  .title {
    font-size: 40px;
    margin-bottom: 14px;
  }
  .subtitle {
    font-size: 25px;
    line-height: 99%;
  }
  .back {
    bottom: 0;
  }
  .back img {
    width: 764px;
    transform: translate(-51%, -40%);
  }
  .first .link {
    width: 282px;
  }

  .link {
    border-radius: 40px;
    padding: 11px 31px;
    height: 47px;
    box-shadow: 0 5px 26px 0 rgba(0, 0, 0, 0.4);
    font-size: 19px;
    line-height: 120%;
  }

  /*  SECOND */

  .second {
    margin-top: -85px;
  }
  .second .content {
    padding: 94px 100px 120px;
    min-height: 499px;
    max-width: 768px;
  }
  .rocket {
    width: 383px;
    top: 52px;
    left: 18px;
  }
  .sputnik {
    top: 207px;
    right: -7px;
    width: 78px;
  }
  .title-2 {
    font-size: 40px;
    margin-bottom: 11px;
    margin-left: 57%;
  }
  .subtitle-2 {
    font-size: 24px;
    line-height: 99%;
    margin-bottom: 36px;
    margin-left: 57%;
  }
  .second .link {
    width: 192px;
    margin: 0;
    margin-left: 55%;
  }
}

@media (min-width: 1024px) {
  .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
  }
  .first::before {
    height: 310px;
    bottom: -42px;
  }

  .first .content {
    max-width: 558px;
    padding: 18px 24px 34px 24px;
    margin: 0 0 0 auto;
    min-height: 100vh;
  }

  .logo {
    margin: 0 auto 43px;
  }
  .title {
    margin-bottom: 16px;
  }
  .subtitle {
    font-size: 24px;
    margin-bottom: 28px;
  }
  .back img {
    width: 663px;
    transform: none;
    top: unset;
    left: unset;
    bottom: -93px;
    right: -62px;
  }
  .first .link {
    margin: 0;
  }

  /*  SECOND */

  .second {
    margin-top: 0;
    margin-left: -45px;
  }
  .second .content {
    padding: 60px 40px;
    min-height: 100vh;
    max-width: 510px;
  }
  .rocket {
    width: 323px;
    top: 10px;
    left: -50px;
  }
  .sputnik {
    top: 345px;
    right: -10px;
    width: 77px;
  }
  .title-2 {
    margin-bottom: 16px;
    margin-left: 41%;
  }
  .subtitle-2 {
    margin-bottom: 28px;
    margin-left: 41%;
  }
  .second .link {
    margin-left: 40%;
  }
}

@media (min-width: 1440px) {
  .first .content {
    padding: 34px 79px 34px 62px;
    max-width: 768px;
  }
  .back img {
    width: 112vh;
    min-width: 852px;
    right: -1vh;
    max-width: 1085px;
  }

  .second {
    margin-left: -81px;
  }
  .second .content {
    padding: 64px 110px;
    max-width: 735px;
  }

  .title-2 {
    margin-left: 52%;
  }
  .subtitle-2 {
    margin-left: 52%;
  }
  .second .link {
    margin-left: 50%;
  }
  .rocket {
    width: 371px;
    top: 79px;
    left: 2px;
  }
  .sputnik {
    top: 122px;
  }
}
