* {
  box-sizing: border-box;
}

body {
  background-color: #20202d;
  margin: 0;
  color: #fff;
  font-family: "Roboto", sans-serif;
}

img {
  max-width: 100%;
}

.container {
  width: 90%;
  max-width: 945px;
  margin: 0 auto;
}

.section {
  padding: 64px 0 92px 0;
}

.section__title {
  margin: 0 0 84px 0;
  font-weight: 700;
  font-size: 36px;
}

.hero {
  padding: 50px 0 155px 0;
  background: linear-gradient(0deg, #000 0%, rgba(0, 0, 0, 0) 100%);
}

.hero__header {
  margin-bottom: 105px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.social-link {
  margin-left: 20px;
}

.social-link:first-child {
  margin-left: 0;
}

.hero__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hero__subtitle {
  display: block;
  font-size: 24px;
  color: #ffbb01;
  margin-bottom: 15px;
}

.hero__title {
  font-weight: 700;
  font-size: 50px;
  margin-bottom: 20px;
}

.hero__description {
  max-width: 420px;
  margin-bottom: 40px;
  line-height: 175%;
}

.button {
  box-shadow: 0 4px 0 0 #b68500;
  background: linear-gradient(180deg, #fdde76 0%, #ffbb01 100%);
  border-radius: 5px 5px 10px 10px;
  border: none;
  padding: 25px 40px;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  color: #2e2e30;
}

.hero__avatar {
  width: 389px;
  height: 389px;
  background-color: #fff;
  border-radius: 50%;
  background: url("../assets/avatar.webp");
  background-repeat: no-repeat;
  background-position: center top -35px;
  background-position-x: -10px;
  border: 13px solid #fff;
}

/* features */

.features {
  background-color: #000;
}

.features__block {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.features__item {
  width: 30%;
  margin: 0 0 63px 0;
}

.features__img {
  display: block;
  margin: 0 0 22px 0;
}

.features__title {
  margin: 0 0 16px 0;
}

.features__desc {
  margin: 0;
}

.projects {
  background: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0) 100%);
}

.project__slide {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.project__img {
  border-radius: 6px;
}

.project__text {
  flex-basis: 60%;
  display: flex;
  flex-wrap: wrap;
}

.project__title {
  flex-basis: 100%;
  margin: 0;
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 40px;
}

.project__time,
.project__cost {
  flex-basis: 50%;
  margin-bottom: 40px;
}

.project__time,
.project__cost,
.project__feedback {
  display: flex;
  align-items: start;
}

.project__feedback {
  max-width: 530px;
}

.project__icon {
  margin-right: 15px;
}

.project__subtitle {
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 10px;
}

.swiper-pagination {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 45px;
}

.project-bullet {
  width: 10px;
  height: 10px;
  border: 2px solid #ffbb01;
  border-radius: 50%;
  display: inline-block;
  margin: 0 5px 0 5px;
}

.project-bullet-active {
  background-color: #ffbb01;
}

.contacts__block {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contacts__form {
  max-width: 380px;
  padding: 40px 50px 50px 50px;
  box-shadow: -5px 5px 0 0 #ffc41d;
  background: #fff;
  border-radius: 5px;
}

.form__title {
  margin: 0 0 30px 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 156%;
  text-align: center;
  color: #000;
}

.input {
  width: 100%;
  height: 60px;
  padding-left: 50px;
  font-family: "Roboto", sans-serif;
  font-size: 14px;
  line-height: 200%;
  color: #949494;
  box-shadow: inset 0 3px 10px 0 rgba(199, 199, 199, 0.25);
  background: #f8f8f8;
  border: none;
  border-radius: 5px;
}

.input__name {
  background-image: url(../assets/input/user-icon.svg);
  background-repeat: no-repeat;
  background-position: center left 20px;
  margin-bottom: 17px;
}

.input__phone {
  background-image: url(../assets/input/phone-icon.svg);
  background-repeat: no-repeat;
  background-position: center left 20px;
  margin-bottom: 25px;
}

.form__button {
  width: 100%;
}

.contacts__text {
  flex-basis: 50%;
}

.contacts__data {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.contacts__phone {
  flex-basis: 50%;
  margin-bottom: 55px;
}

.contacts__email {
  flex-basis: 50%;
  margin-bottom: 55px;
}

.contacts__socials {
  flex-basis: 100%;
}

.contacts__title {
  font-weight: 700;
  font-size: 24px;
  color: #fff;
  margin-bottom: 15px;
}

.contacts__links {
  text-decoration: none;
  color: #fff;
  margin-right: 37px;
}

.contacts__links:hover {
  text-decoration: underline;
}

.contacts__policy {
  display: inline-block;
  font-size: 15px;
  text-decoration: underline;
  color: #a5a5a5;
  margin-top: 70px;
}

/* responsive */

@media (max-width: 1100px) {
  .hero__avatar {
    width: 300px;
    height: 300px;
    background-position-x: -55px;
    border-width: 10px;
  }
}

@media (max-width: 840px) {
  .hero__content {
    flex-direction: column;
  }

  .hero__avatar {
    width: 300px;
    height: 300px;
    background-position-x: -55px;
    border-width: 10px;
    order: 0;
    margin-bottom: 17px;
  }
  .hero__text {
    order: 1;
    text-align: center;
  }

  .features__item {
    flex-basis: 45%;
  }

  .project__slide {
    flex-direction: column;
  }

  .project__img {
    margin-bottom: 45px;
  }

  .contacts__block {
    flex-direction: column;
    align-items: flex-start;
  }

  .contacts__form {
    margin-bottom: 60px;
  }
}

@media (max-width: 564px) {
  .hero {
    padding-bottom: 75px;
  }

  .hero__subtitle {
    font-size: 16px;
    line-height: 169%;
  }

  .hero__avatar {
    width: 113px;
    height: 113px;
    border-width: 4px;
    background-size: cover;
    background-position: center top;
  }

  .hero__title {
    font-size: 24px;
  }

  .hero__description {
    font-size: 14px;
  }

  .button {
    font-size: 10px;
    padding: 15px 25px;
  }

  .hero__header {
    margin-bottom: 38px;
  }

  .social__link {
    margin-left: 5px;
  }

  .section {
    padding: 45px 0 60px 0;
  }

  .section__title {
    font-size: 19px;
    text-align: center;
    margin-bottom: 60px;
  }

  .features__item {
    flex-basis: 100%;
    margin-bottom: 30px;
  }

  .features__desc {
    font-size: 14px;
    line-height: 200%;
  }

  .projects {
    padding: 50px 0 45px 0;
  }

  .project__title {
    font-size: 18px;
  }

  .project__cost,
  .project__time,
  .project__feedback {
    flex-basis: 100%;
  }

  .project__subtitle {
    margin-bottom: 7px;
  }

  .paragraph {
    font-size: 14px;
  }

  .swiper-pagination {
    margin-top: 30px;
  }

  .contacts__form {
    padding: 40px 20px 50px 20px;
  }

  .form__title {
    font-size: 15px;
    line-height: 140%;
  }

  .form__button {
    padding: 17px 7px;
  }

  .contacts__data {
    flex-direction: column;
  }

  .contacts__title {
    font-size: 18px;
    margin-bottom: 12px;
  }

  .contacts__links {
    font-size: 14px;
    display: block;
    margin-bottom: 13px;
  }

  .contacts__email,
  .contacts__phone {
    margin-bottom: 35px;
  }

  .contacts__socials {
    margin: 0;
  }

  .contacts__policy {
    margin-top: 30px;
  }
}
