@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;700;800&display=swap');

html,
body {
  height: 100%;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #181818;
  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: 840px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.header {
  width: 100%;
  background: #28619a;
}
.header__inner {
  display: flex;
  justify-content: center;
  padding: 20px 0;
}
.logo {
  width: 250px;
  max-width: 80%;
  display: block;
}

/* Main */

.main {
  background-color: #f0f0f0;
  padding: 30px 0;
}
.main__title {
  text-transform: capitalize;
  text-align: center;
  font-family: 'Helvetica', sans-serif;
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 10px;
}
.main__subtitle {
  width: 100%;
  max-width: 500px;
  background-color: #28619a;
  text-transform: capitalize;
  text-align: center;
  font-weight: 700;
  font-family: 'Helvetica', sans-serif;
  color: #ffffff;
  padding: 9px;

  margin: 0 auto;
}
.main__image {
  width: 100%;
  max-width: 500px;
  display: block;
  margin: 0 auto;
}
.main__text {
  text-align: center;
  font-weight: 500;
  margin: 20px 0 0 0;
}
.text-title {
  margin: 25px 0;
}
.main__box-item {
  width: 100%;
  max-width: 500px;
  display: block;
  background-color: #fff;
  box-shadow: 1px 4px 26px #e9eefd;
  border-radius: 6px;
  padding: 25px 30px 30px;
  margin: 0 auto 35px;

  position: relative;
}

.main__box-item--first {
  background-color: #28619a;
}
.main__box-item:after {
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  content: '#2';
  color: #ffffff;
  font-weight: 700;
  width: 34px;
  height: 87.5px;
  background: url(images/blue.png) center no-repeat;
  background-size: cover;
  position: absolute;
  top: 0;
  right: 20px;
}
.main__box-item--first:after {
  content: '#1';
  color: #28619a;
  background: url(images/gold.png) center no-repeat;
  background-size: cover;
}
.main__box-item--second:after {
  content: '#2';
}
.main__box-item--third:after {
  content: '#3';
}
.main__box-item--fourth:after {
  content: '#4';
  color: #28619a;
  background: url(images/transparent.png) center no-repeat;
  background-size: cover;
}
.main__box-item--fifth:after {
  content: '#5';
  color: #28619a;
  background: url(images/transparent.png) center no-repeat;
  background-size: cover;
}
.main__box-item__logo {
  width: 166px;
  margin-bottom: 16px;
}
.main__box-item__text {
  font-size: 16px;
  color: #3a3b41;
  font-weight: 500;
  margin: 3px 0;
}

.main__box-item__text--first {
  color: #ffffff;
}

.main__button {
  text-align: center;
  text-decoration: none;
  display: block;
  max-width: 500px;
  background: #28619a;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  border-radius: 8px;
  margin: 30px auto 0;
  padding: 17px;
}
.main__button:hover {
  background: #0e3255;
}
.main__button--first {
  background: #ffffff;
  color: #28619a;
}
.main__button--first:hover {
  text-decoration: underline;
  background: #ffffff;
}
/* Footer */

.footer {
  width: 100%;
  background: #28619a;
}
.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: 550px) {
  .logo {
    width: 170px;
  }
  .header__inner {
    padding: 12px 0;
  }
  .main__title {
    text-align: start;
    font-size: 25px;
  }
  .main__subtitle {
    font-size: 15px;
  }
  .main__text {
    text-align: start;
    line-height: 1.2;
  }
  .footer__links-item {
    font-size: 14px;
  }
  .footer__text {
    margin-top: 14px;
  }
}
