*,
*::after,
*::before {
  box-sizing: border-box;
}

body {
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  line-height: 27px;
  font-weight: 300;
  color: #2C2B2B;
}

#instagram path {
  fill: #000
}

.test path {
  fill: #000
}

a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.container {
  max-width: 1220px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 10px;
}

.header {
  background-image: url(../images/header-bg.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: top center;
  min-height: 700px;
  color: #fff;
}

.header__top {
  padding: 47px 0 45px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-up {
  /* фиксированное позиционирование */
  position: fixed;
  /* цвет фона */
  background-color: #f57c00;
  /* расстояние от правого края окна браузера */
  right: 20px;
  /* расстояние от нижнего края окна браузера */
  bottom: 0;
  /* скругление верхнего левого угла */
  border-top-left-radius: 8px;
  /* скругление верхнего правого угла */
  border-top-right-radius: 8px;
  /* вид курсора */
  cursor: pointer;
  /* отображение элемента как flex */
  display: flex;
  /* выравниваем элементы внутри элемента по центру вдоль поперечной оси */
  align-items: center;
  /* выравниваем элементы внутри элемента по центру вдоль главной оси */
  justify-content: center;
  /* ширина элемента */
  width: 60px;
  /* высота элемента */
  height: 50px;
}

.btn-up::before {
  content: "";
  width: 40px;
  height: 40px;
  background: transparent no-repeat center center;
  background-size: 100% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23fff' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M7.646 4.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1-.708.708L8 5.707l-5.646 5.647a.5.5 0 0 1-.708-.708l6-6z'/%3E%3C/svg%3E");
}

.btn-up_hide {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .btn-up:hover {
    background-color: #2da82d;
    /* цвет заднего фона при наведении */
  }
}

.main-nav {
  text-align: center;
}

.main-nav li+li {
  padding: 20px;
}

/* .main-nav li:last-child a {
  border-bottom: 1px solid #69C;
} */

.main-nav li {
  /* display: block; */
  display: inline-block;
}

.main-nav li a {
  font-size: 25px;
  font-weight: 400;
  color: #fff;
  width: 100%;
  text-transform: uppercase;
  transition: all 0.5s;
  border-bottom: 1px solid #69C;
}

/* .main-nav li:hover a,
.main-nav li.active a {
  background: #fff;
  color: #2279BD;
} */

.main-nav li:hover a {
  background: #fff;
  color: #2279BD;
}

*/ .phone {
  font-weight: 400;
  font-size: 36px;
  line-height: 54px;
}

.header__content {
  padding-top: 60px;
  position: relative;
}

.header__title {
  font-size: 72px;
  font-weight: 400;
  line-height: 107px;
  text-transform: uppercase;
}

.header__title h1 {
  background-color: #5A0D67;
}

.header__subtitle {
  font-size: 36px;
  line-height: 54px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 30px;
}

.header__text {
  margin-bottom: 30px;
  max-width: 800px;
}

.button {
  font-size: 14px;
  line-height: 21px;
  text-transform: uppercase;
  padding: 14px 54px 15px;
  background-color: #5A0D67;
  transition: all .5s;
}

.button:hover {
  color: #5A0D67;
  background-color: #fff;
}

.header__social {
  padding: 45px 0 22px 25px;
}

.social {
  display: flex;
  align-items: center;
}

.social__link {
  margin: 0 5px;
}

.header__images {
  position: absolute;
  right: 0;
  bottom: -270px;
}

.services {
  padding-top: 350px;
}

.title {
  color: #21062A;
  font-size: 36px;
  line-height: 54px;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 50px;
  position: relative;
}

.title::after {
  content: '';
  width: 80px;
  height: 3px;
  background-color: #21062A;
  position: absolute;
  top: 20px;
  margin-left: 20px;
}

.services__inner {
  display: flex;
  margin-bottom: 100px;
}

.services__content {
  width: 505px;
  margin-right: 96px;
}

.services__content-title {
  color: #5A0D67;
  font-size: 18px;
  line-height: 27px;
  font-weight: 300;
  margin-bottom: 12px;
}

.services__content-textbox {
  margin-bottom: 57px;
}

.services__content-text {
  margin-bottom: 12px;
}

.button--decor {
  margin-top: -7px;
  color: #fff;
  position: relative;
}

.button--decor::after {
  content: 'ЖМИ';
  color: #C4C4C4;
  margin-left: 130px;
  position: absolute;
}

.button--decor::before {
  content: '';
  width: 80px;
  height: 2px;
  background-color: #C4C4C4;
  position: absolute;
  right: -65px;
  top: 24px;
}

.services__list {
  list-style: none;
  counter-reset: my-counter;
}

.services__item {
  /* counter-increment: my-counter; */
  border: 2px solid #C4C4C4;
  margin-bottom: 12px;
  width: 450px;
  padding: 10px 15px 10px 113px;
  position: relative;
  transition: all .5s;
}

.services__item::before {
  /* content: '0' counter(my-counter); */
  content: '|||';
  position: absolute;
  left: 20px;
  font-size: 36px;
  line-height: 54px;
  font-weight: 400;
  color: #C4C4C4;
  transform: rotate(270deg);
  transition: all .5s;
}

.services__item:hover {
  border: 2px solid #5A0D67;
  width: 500px;
}

.services__item:hover .services__item-title {
  color: #5A0D67;
}

.services__item:hover::before {
  color: #5A0D67;
}

.services__item-title {
  font-size: 24px;
  font-weight: 300;
}

.benefits {
  margin-bottom: 100px;
}

.benefits__inner {
  display: flex;
  align-items: center;
}

.benefits__images {
  margin-right: 60px;
  margin-left: 60px;
}

.benefits__content {
  width: 100%;
  color: #fff;
}

.benefits__title {
  margin-left: 185px;
}

.benefits__list {
  list-style: none;
  background-color: #21062A;
  padding: 25px 0 25px 185px;
}

.benefits__item {
  width: 320px;
  margin-bottom: 20px;
}

.benefits__item-num {
  font-weight: 400;
  font-size: 36px;
  line-height: 54px;
}

.benefits__item-title {
  font-size: 24px;
  line-height: 36px;
  font-weight: 300;
}

.benefits__item-text {
  color: #c4c4c4;
}

.carousel {
  margin-bottom: 100px;
}

.carousel__inner {
  margin: 0 -7px;
}

.carousel__item {
  margin: 0 7px;
}

.carousel__item-box {
  border: 1px solid #C4C4C4;
  padding: 6px 6px 16px 6px;
  text-align: center;
  transition: all .5s;
}

.carousel__item-box:hover {
  color: #fff;
  background-color: #5A0D67;
  border-color: #5A0D67;
}

.carousel__item-img {
  max-width: 100%;
  margin-bottom: 23px;
}

.carousel__item-title {
  font-weight: 300;
  margin-bottom: 5px;
}

.carousel .slick-dots {
  display: flex;
  justify-content: center;
  margin-top: 50px;
  list-style: none;
}

.carousel .slick-dots button {
  font-size: 0;
  border: none;
  padding: 0;
  margin: 0 10px;
  background-color: #c4c4c4;
  width: 50px;
  height: 1px;
}

.carousel .slick-active button {
  background-color: #5A0D67;
  height: 3px;
}

.contacts__inner {
  display: flex;
  justify-content: space-between;
}

.contacts__list {
  list-style: none;
}

.contacts__item {
  margin-bottom: 20px;
}

.contacts__item-title {
  color: #5A0D67;
}

.contacts__form {
  background-color: #21062A;
  padding: 50px 75px 57px;
  text-align: center;
}

.contacts__title {
  color: #fff;
  margin-bottom: 16px;
  margin-left: 53px;
  text-align: left;
}

.contacts__title::after {
  background-color: #fff;
}

.contacts__input {
  background-color: transparent;
  width: 450px;
  height: 75px;
  color: #fff;
  border: 1px solid #fff;
  margin-bottom: 12px;
  display: block;
  font-size: 24px;
  padding: 0 15px;
  text-align: center;
}

.contacts__input::placeholder {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 18px;
  line-height: 27px;
  font-weight: 300;
  color: #c4c4c4;
}

.contacts__btn {
  border: none;
  color: #fff;
  margin-top: 78px;
  cursor: pointer;
  font-family: 'Oswald', sans-serif;
}

.footer {
  background-color: #21062A;
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  height: 100px;
}


@media (max-width: 1140px) {
  .services__item:hover {
    width: 450px;
  }
}


@media (max-width: 1024px) {
  .header__images {
    width: 80%;
  }

  .services {
    padding-top: 250px;
  }

  .services__inner {
    flex-wrap: wrap;
  }

  .services__list {
    order: -1;
    margin-bottom: 30px;
    width: 100%;
  }

  .services__item {
    width: 100%;
  }

  .services__item:hover {
    width: 100%;
  }

  .services__content {
    width: 100%;
    margin-right: 0;
  }

  .benefits__images {
    display: none;
  }
}

@media (max-width: 900px) {
  .phone {
    font-size: 24px;
    line-height: 36px;
  }

  .header__title {
    font-size: 54px;
    line-height: 74px;
  }

  .header__subtitle {
    font-size: 24px;
    line-height: 36px;
    margin-bottom: 20px;
  }

  .header__social {
    padding: 30px 0 20px 53px;
  }

  .contacts__inner {
    display: block;
    text-align: center;
  }

  .contacts__list {
    margin-bottom: 30px;
  }

  .contacts__input {
    width: 100%;
  }

  .contacts__btn {
    margin-top: 20px;
  }

  .contacts__title {
    text-align: center;
    margin-left: 0;
  }
}

@media (max-width: 768px) {
  .benefits__inner {
    text-align: center;
  }

  .benefits__list {
    padding: 25px 15px;
  }

  .benefits__item {
    width: 100%;
  }

  .benefits__title {
    margin-left: 0;
  }
}

@media (max-width: 650px) {
  .footer__inner {
    flex-wrap: wrap;
    justify-content: center;
    height: auto;
    padding: 20px 0;
    text-align: center;
  }

  .footer__social {
    width: 100%;
    justify-content: center;
    margin: 25px 0;
  }
}



@media (max-width: 600px) {
  .header__content {
    padding-top: 0;
    text-align: center;
  }

  .header__social {
    padding: 30px 0 20px 0px;
  }

  .social {
    justify-content: center;
  }

  .services {
    padding-top: 150px;
  }

  .title {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 30px;
    text-align: center;
  }

  .title::after {
    display: none;
  }

  body {
    font-size: 16px;
    line-height: 22px;
  }

  .services__item::before {
    top: 5px;
  }

  .services__content {
    text-align: center;
  }

  .benefits__item-num {
    font-size: 28px;
    line-height: 36px;
  }

  .carousel__item-img {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .header__top {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  .logo {
    margin-bottom: 20px;
    width: 100%;
  }

  .header__title {
    margin-bottom: 20px;
  }

  .header__images {
    position: static;
    width: 100%;
  }

  .services {
    padding-top: 50px;
  }

  .services__item {
    padding: 10px 15px 10px 60px;
  }

  .services__item::before {
    left: 11px;
  }

  .button--decor::before {
    right: -50px;
  }

  .button--decor::after {
    margin-left: 110px;
  }

  .services__inner,
  .benefits,
  .carousel {
    margin-bottom: 50px;
  }

  .carousel .slick-dots button {
    width: 10px;
  }

  .contacts__form {
    padding: 50px 10px 57px;
  }

  .button--decor::before,
  .button--decor::after {
    display: none;
  }
}

@media (max-width: 340px) {
  .header__title {
    font-size: 44px;
    line-height: 50px;
  }
}