/* 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;
}

.show {
  display: flex !important;
}

/* 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: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-gap: 20px;
  margin: 20px auto;
}
.button {
  cursor: pointer;
  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);
}

.popup__wrapper {
  display: none;
  justify-content: center;
  align-items: center;
  position: fixed;
  background-color: #171616bb;
  width: 100%;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
}
.popup {
  position: relative;
  width: 100%;
  max-width: 740px;
  background-color: #ffffff;
  padding: 40px 45px;
  border-radius: 6px;
  margin: 0 20px;
}
.popup__close {
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  position: absolute;
  right: -15px;
  top: -15px;
}
.popup__title {
  text-align: center;
  font-size: 40px;
  font-weight: 900;
  margin-bottom: 16px;
}
.popup__subtitle {
  text-align: center;
  font-size: 22px;
  margin-bottom: 20px;
}
.popup__text {
  text-align: center;
  font-size: 22px;
  margin-bottom: 25px;
  font-weight: 700;
}
.red__text {
  color: rgb(228, 59, 44);
  font-weight: 700;
}
.popup__button {
  text-decoration: none;
  text-align: center;
  display: block;
  font-weight: 600;
  font-size: 24px;
  color: #ffffff;
  padding: 12px 25px;
  background-color: rgb(4, 161, 24);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 20%);
  border-radius: 3px;
  margin-bottom: 20px;
}
.popup__button:hover {
  background-color: rgb(2, 125, 19);
}

.popup__counter__text {
  font-size: 20px;
  text-align: center;
  margin-bottom: 10px;
}

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 15px 0;
}
.countdown-number {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 15px;
}
.countdown-time {
  font-size: 24px;
  font-weight: 700;
  color: #2f2f2f;
  padding-bottom: 10px;
}
.countdown-text {
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 700;
  color: rgba(0, 0, 0, 0.4);
}
/* 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;
  }

  .popup {
    padding: 30px 25px;
  }
  .popup__text {
    font-size: 18px;
  }
  .popup__subtitle {
    font-size: 18px;
  }
}
@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;
  }
}
