html {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  padding: 0;
  min-width: 320px;
  font-family: "Roboto", sans-serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #000000;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  border: 0 none;
  clip-path: inset(100%);
}

.container {
  max-width: 1420px;
  margin: 0 auto;
  padding: 0 10px;
}

.section-title {
  font-size: 32px;
  text-align: center;
}


.main-header {
  background-image: url(../images/hero-bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 100vh;
}

.main-header__content {
  max-width: 1920px;
  height: 100%;
  margin: 0 auto;
  padding: 0 50px;
  position: relative;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@keyframes slideUpFromBottom {
  0% {
    transform: translateY(100px);
    opacity: 0;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.main-header__content::after {
  content: '';
  position: absolute;
  bottom: -3px;
  right: 0;
  width: 850px;
  height: 850px;
  background-image: url(../images/hero-girl.png);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: 1;


  animation: slideUpFromBottom 2s ease-out forwards;
  transform: translateY(100px);
  opacity: 0;
}

.main-header__title {
  display: flex;
  align-items: center;
  gap: 20px;
}

.main-header__text {
  font-size: 32px;
  max-width: 890px;
}

.main-header__title-text {
  font-size: 64px;
}

.main-header__contacts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.main-header__contacts-link {
  font-size: 36px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
}

@keyframes phoneShake {

  0%,
  100% {
    transform: rotate(0deg);
  }

  10%,
  30%,
  50%,
  70%,
  90% {
    transform: rotate(-5deg);
  }

  20%,
  40%,
  60%,
  80% {
    transform: rotate(5deg);
  }
}

.main-header__contacts-link::before {
  content: "";
  width: 23px;
  height: 30px;
  margin-right: 5px;
  background-image: url("../images/phone-header.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  animation: phoneShake 1.5s ease-in-out infinite;
}



.advantages__title {
  margin: 50px 0;
}

.advantages__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;

}

.advantages__item {
  width: 400px;
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  text-align: center;
}

.after {
  background-image: url(../images/pixel-bg.jpg);
  padding: 30px 0;
}

.steps {
  background-image: url(../images/road-bg.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #fff;
  padding: 50px 0;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.steps>* {
  position: relative;
  z-index: 2;
}

.after__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  margin-bottom: 100px;
}

.after__item {
  width: 400px;
  text-align: center;
}

.steps__title {
  font-size: 48px;
}

.steps__text {
  font-size: 24px;
  text-align: center;
  margin-bottom: 50px;
}

.steps__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
}

.steps__item {
  width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.steps__item-text {
  margin-bottom: 0;
}

.steps__item-tel {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
}

.comments {
  margin-bottom: 50px;
}

.comments__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.comments__item cite {
  color: #2A71BC;
}

.comments__item:nth-child(2n) {
  text-align: right
}

.main-footer {
  background-image: url(../images/pixel-bg.jpg);
  padding: 30px 0;
}

.contacts-list {
  display: flex;
  flex-wrap: wrap;
}

.contacts-item {
  margin-bottom: 35px;
  margin-right: 50px;
}

.contacts-term {
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
  margin-bottom: 15px;
}

.contacts-value {
  margin: 0;
  margin-bottom: 5px;
  font-weight: 500;
  font-size: 16px;
  line-height: 20px;
}

.contacts-value a {
  color: inherit;
  text-decoration: none;
}

.contacts-value-vk img {
  height: 30px;
}

.footer-phone {
  display: flex;
  align-items: center;
}

.footer-phone::before {
  content: "";
  width: 15px;
  height: 15px;
  margin-right: 5px;
  background-image: url("../images/phone.svg");
  background-repeat: no-repeat;
  background-position: center;
}

.main-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  font-size: 14px;
}

@media (max-width: 1600px) {
  .main-header__content::after {
    width: 750px;
    height: 750px;
  }
}

@media (max-width: 1500px) {
  .main-header__content::after {
    width: 600px;
    height: 600px;
  }
}

@media (max-width: 1400px) {

  .main-header__content {
    padding: 0 20px;
    align-items: center;
  }

  .main-header__content::after {
    display: none;
  }

  .main-header__text {
    text-align: center;
  }
}

@media (max-width: 900px) {
  .main-header__title-text {
    font-size: 48px;
  }

  .main-header__text {
    font-size: 28px;
  }

  .main-footer__bottom {
    flex-direction: column;
  }

  .advantages__list {
    flex-direction: column;
    align-content: center;
  }

  .advantages__item {
    width: 300px;
  }
}

@media (max-width: 620px) {
  .main-header__content::after {
    display: block;
  }

  .main-header__content {
    justify-content: flex-start;
  }

  .main-header__text {
    margin-bottom: 20px;
    font-size: 24px;
  }


  .main-header__contacts {
    padding-left: 10px;
    padding-top: 20px;
    align-self: flex-start;
  }

  .main-header__title {
    margin-bottom: 5px;
  }

  .main-header__title-text {
    font-size: 42px;
  }

  .main-header__contacts {
    gap: 5px;
  }

  .main-header__content::after {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 400px) {
  .main-header__content::after {
    width: 250px;
    height: 250px;
  }

  .main-header__contacts-link {
    font-size: 28px;
  }

  .main-header__text {
    font-size: 20px;
  }

  .main-header__title-text {
    font-size: 32px;
  }

  .after__list {
    flex-direction: column;
    gap: 15px;
  }

  .after__item,
  .steps__item {
    width: 300px;
  }

  .steps__list {
    flex-direction: column;
    gap: 25px;
  }
}