/* Roboto */
@import url("https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,400;0,500;0,700;0,900;1,400&display=swap");
/* Open Sans */
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

html,
body {
  height: 100%;
  font-family: "Roboto", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #000;
  background-color: #fff;
  margin: 0;
  padding: 0;
}

*,
*:after,
*:before {
  box-sizing: border-box;
}

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

.container {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */

.logo {
  width: 250px;
  max-width: 80%;
  display: block;
}

/* Main */

.main {
  background-color: rgb(243, 244, 244);
  padding: 30px 0 20px;
}
.title {
  display: block;
  color: #212529;
  text-decoration: none;
  text-align: center;
  font-size: 60px;
  font-weight: 400;
}
.main__image-wrapper {
  display: block;
  width: 546px;
  max-width: 100%;
  margin: 20px auto 0;
}
.main__image {
  width: 100%;
  max-width: 100%;
  display: block;
}
.box {
  width: 546px;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 auto;
  padding: 10px 0 0;
}
.box-item {
  text-align: center;
  font-weight: 700;
}

.select {
  background-color: #ffffff;
  padding: 20px 0;
  margin-bottom: 300px;
}
.select__title {
  display: block;
  text-decoration: none;
  text-align: center;
  color: #212529;
  font-size: 45px;
  margin-bottom: 15px;
}
.select__subtitle {
  display: block;
  text-decoration: none;
  text-align: center;
  color: #212529;
  font-size: 45px;
  font-weight: 700;
}
.select__box {
  display: block;
  width: 100%;
  max-width: 500px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
  margin: 20px auto;
}
.button {
  text-decoration: none;
  text-align: center;
  background-color: rgb(47, 158, 233);
  box-shadow: 0px 3px 0px 0px rgb(0 120 158);
  border-radius: 5px;
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
  padding: 40px 20px;
}
.button:hover {
  background-color: rgb(10, 121, 196);
}
/* Footer */

.footer {
  width: 100%;
  background: rgba(40, 97, 154, 1);
}
.footer__inner {
  font-family: "Roboto", sans-serif;
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}
.footer__main {
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.footer__text {
  font-size: 8px;
  line-height: 1.05;
  color: #fff;
  margin-top: 10px;
}
.footer__links {
  display: flex;
  flex-direction: column;
}
.footer__links-item {
  text-decoration: none;
  font-size: 18px;
  color: #fff;
  text-align: end;
  margin-bottom: 5px;
}
.footer__links-item:last-child {
  margin-bottom: 0;
}

@media (max-width: 780px) {
  .title {
    font-size: 44px;
  }
  .select__title {
    font-size: 34px;
  }
  .select__subtitle {
    font-size: 36px;
  }
  .select__box {
    grid-gap: 10px;
  }
}
@media (max-width: 550px) {
  .title {
    font-size: 28px;
  }
  .select__title {
    font-size: 23px;
  }
  .select__subtitle {
    font-size: 23px;
  }
  .select__box {
    grid-template-columns: repeat(2, 1fr);
  }
  .button {
    padding: 20px;
  }
}
