* {
  box-sizing: border-box;
  font-family: "Open Sans", sans-serif;
}

body {
  padding-bottom: 50px;
  margin: 0 auto;
}

header {
  display: none;
}

.screen-mobile {
  display: none;
}

.screen {
  width: 100%;
  background-color: #def6fe;
}

.screen__container {
  position: relative;
  margin: 0 auto;
  width: 100%;
}

h1 {
  font-size: 30px;
}

.screen__img {
  margin: 0 auto;
  text-align: right;
  width: 100%;
}

.screen__img img {
  width: 100%;
  height: 100%;
}

.button_screen {
  position: absolute;
  bottom: 11%;
  left: 34%;
  transform: translateX(-50%);
  width: 360px;
}

.button_screen img {
  width: 100%;
}

.button-mobile {
  display: none;
}

main {
  padding: 0 20px 20px;
  background-color: #def6fe;
}

h1 {
  text-align: center;
  padding: 10px;
}

.main__container {
  max-width: 1140px;
  margin: 0 auto;
}

.main__description__text {
  margin: 15px;
  color: #4f4f4f;
  font-size: 16px;
  font-weight: 400;
  line-height: 25px;
}

.main__wrapper {
  margin-top: 30px;
  display: flex;
  justify-content: space-between;
  /* flex-wrap: wrap; */
}

.main__img {
  display: flex;
  justify-content: space-between;
  text-align: center;
  flex-wrap: wrap;
  z-index: 1;
}

.main__item {
  position: relative;
  display: flex;
  width: 30%;
  flex-direction: column;
  align-items: center;
  padding-bottom: 20px;
}

.main__img__item img {
  width: 100%;
}

.main__text__item {
  margin-top: -20px;
  padding: 30px;
  background: rgb(255, 255, 255);
  width: 303px;
  min-height: 230px;
  z-index: 2;
}

.main__text__item_title a {
  display: block;
  text-align: center;
  font-size: 30px;
  text-decoration: none;
  text-transform: uppercase;
  color: rgb(0, 0, 0);
}

.main__text__item_descr {
  text-align: center;
  margin-top: 10px;
  font-size: 16px;
  line-height: 28px;
}

.button_screen_2 {
  display: none;
}

.main__about__text {
  margin-top: 10px;
  color: #4f4f4f;
  font-size: 12px;
  font-weight: 400;
}

.main__item__button {
  display: none;
}

.main__item__button img {
  width: 100%;
}

h2 {
  margin-top: 40px;
  text-align: center;
  font-size: 45px;
  font-weight: 600;
  font-family: "Open Sans", sans-serif;
}

.footer__text {
  margin-top: 30px;
  font-size: 16px;
  text-align: center;
  line-height: 30px;
  color: #515151;
  font-family: "Open Sans", sans-serif;
  font-weight: 300;
}

.footer__button {
  margin-top: 40px;
  text-align: center;
}

.footer__button img {
  width: 418px;
  height: 118px;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 2;
  display: none;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal__dialog {
  max-width: 500px;
  margin: 40px auto;
}

.modal__content {
  position: relative;
  width: 100%;
  padding: 40px;
}

.modal__close {
  position: absolute;
  top: 40px;
  right: -40px;
  cursor: pointer;
}

.modal__close__btn {
  padding: 0;
  border: none;
  font: inherit;
  color: inherit;
  background-color: transparent;
  cursor: pointer;
}

.modal__button {
  position: absolute;
  top: 70%;
  left: 27%;
}

.footer__social {
  margin: 20px auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 60%;
}

.footer__social a {
  display: block;
  width: 30%;
}

.footer__social img {
  width: 100%;
  background-color: transparent;
  border-radius: 10px;
}

.show {
  display: block;
}

.hide {
  display: none;
}

@media (max-width: 1500px) {
  .button_screen {
    bottom: 11%;
    width: 300px;
  }
}

@media (max-width: 1200px) {
  .button_screen {
    width: 250px;
  }

  .main__wrapper {
    gap: 10px;
  }
}

@media (max-width: 1024px) {
  .button_screen_2 {
    display: block;
    margin-top: 200px;
    text-align: center;
  }

  .button_screen_2 img {
    width: 259px;
    height: 91px;
  }

  .main__about {
    padding: 20px;
    font-size: 18px;
    line-height: 20px;
  }

  h2,
  .footer__text,
  .footer__button {
    display: none;
  }

  .footer__text_bottom {
    display: block;
  }
}

@media (max-width: 992px) {
  .button_screen {
    width: 200px;
  }
  .main__text__item {
    width: 229px;
    top: 310px;
  }

  .main__text__item_title a {
    font-size: 20px;
  }

  .main__text__item_descr {
    font-size: 14px;
  }
}

@media (max-width: 767px) {
  body {
    padding-top: 60px;
  }

  header {
    display: block;
    position: fixed;
    top: 0;
    height: 60px;
    width: 100%;
    background: rgb(3, 28, 75);
    z-index: 5;
  }

  .header__wrapper {
    width: 1100px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 auto;
  }

  .screen {
    display: none;
  }

  .screen__img img {
    display: none;
  }

  .screen-mobile {
    display: block;
    background-color: #def6fe;
  }

  .screen-mobile img {
    width: 100%;
  }

  .button-mobile {
    margin-top: 30px;
    display: block;
    background-color: #def6fe;
  }

  .button-mobile img {
    width: 100%;
  }

  .screen__container {
    height: 715px;
    background: url("./img/mobile-main-bg.jpg") left top/contain no-repeat;
    background-size: 100%;
    background-color: #def6fe;
  }

  .button_screen {
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 350px;
  }

  .button_screen img {
    width: 350px;
    height: 100px;
  }

  .main__container {
    max-width: 720px;
  }

  .main__description {
    display: none;
  }

  .main__wrapper {
    margin: 20px auto 0px;
    width: 100%;
    display: block;
  }

  .main__item {
    width: 100%;
  }

  .main__item_3 {
    padding-bottom: 0px;
  }

  .main__img {
    gap: 200px;
  }

  .main__text {
    flex-direction: column;
    top: 430px;
    left: 38px;
    gap: 405px;
  }

  .main__about {
    margin-top: 0px;
  }

  .main__text__item {
    top: 410px;
    padding: 10px;
    width: 90%;
    min-height: 30%;
  }

  .main__item__button {
    display: block;
    margin-top: 20px;
    width: 50%;
  }

  .main__text__item_descr {
    font-size: 14px;
  }

  .main__text__item_title {
    text-align: center;
  }

  .main__text__item_title a {
    font-size: 18px;
  }

  h2,
  .footer__text,
  .footer__button {
    display: none;
  }

  .button_screen_2 {
    display: block;
    text-align: center;
  }

  .button_screen_2 img {
    width: 350px;
    height: 100px;
  }

  .footer__text_bottom {
    display: block;
  }

  .footer__social {
    margin: 20px auto;
    display: flex;
    width: 90%;
  }

  .footer__social a {
    width: 100%;
    margin-right: 10px;
  }

  a.microsoft {
    display: none;
  }
}

@media (max-width: 575px) {
  .button_screen {
    position: absolute;
    bottom: -20%;
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
  }

  .button_screen img {
    width: 280px;
    height: 100px;
  }

  .main__container {
    max-width: 540px;
  }

  .main__wrapper {
    margin: 0 auto;
    width: 100%;
    justify-content: center;
  }

  h1 {
    font-size: 20px;
    font-weight: 600;
  }

  .main__description {
    display: none;
  }

  .main__img {
    gap: 200px;
  }

  .main__text {
    flex-direction: column;
    top: 430px;
    left: 38px;
    gap: 405px;
  }

  .main__text__item {
    padding: 10px;
    width: 90%;
    min-height: 30%;
  }

  .main__text__item_descr {
    font-size: 14px;
  }

  .main__text__item_title {
    text-align: center;
  }

  .main__text__item_title a {
    font-size: 18px;
  }

  .button_screen_2 img {
    width: 245px;
    height: 85px;
  }

  .main__about {
    padding: 20px;
    font-size: 18px;
    line-height: 20px;
  }
}
