/*Раздел титульник*/
.main-title {
  display: flex;
  min-height: 500px;
  margin-top: 100px;
  justify-content: space-between;
  align-items: center;

  }
  .main-title picture {
    width:600px;
    display: flex;
    justify-content: flex-end;
  }

.main-title__container {
  width: 50%;

}

.main-title__container h2 span{
  color: #009FE3;
}
.main-title__container p {
  width:65%;
  margin-bottom: 30px;
}
.main-title__container p:first-of-type {
  width: 100%;
  padding-bottom: 10px;
}
.color-text {
  color:#fff;
  transition-property: color;
  transition-duration: 2s;
}
.main-button:hover .color-text {
  color:#000000;
}
.main-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 250px;
  height: 50px;
  background: transparent;
  border-radius: 10px;
  top:0;
  color:#ffffff;
  font-size: 16px;
  z-index: 1;
  border:2px solid #fff;
  background-clip: content-box;
  overflow: hidden;

  }
.main-button:hover  {
  transition-property: color;
  transition-duration: 2s;
  color:#000000;
  animation: button 3s 1s linear infinite;
}
.button_blue{
  position: absolute;
  width:100%;
  height: 50px;
  background-color: #009fe3;

  z-index: -2;
  transition-property: width, height;
  transition-duration: 2s;
}
.button_white{
  position: absolute;
  width:0;
  height: 0;
  background-color: #ffffff;
  border-radius: 50%;
  z-index: -1;
  transition-property: width, height;
  transition-duration: 2s;
}

.main-button:hover .button_white{
width: 260px;
height: 260px;
}
  @keyframes button {
    0% {border-right-color:#009fe3; }

    20% {border-top-color:#009fe3;

    }
    25% {border-right-color:#ffffff;

    }
    30%{border-bottom-color:#ffffff;

    }

    40% {border-left-color:#009fe3;

    }
    45% {border-top-color:#ffffff;

    }
    50%{border-right-color:#ffffff;

    }
    60% {border-bottom-color:#009fe3;

    }
    70% {border-left-color:#ffffff;

    }
    90%{border-bottom-color:#ffffff;

    }
    100% {border-right-color:#009fe3;

    }
    }

    @media (max-width: 1440px) {
      .main-title {
        margin-top: 50px;
      }
      .main-title picture {
        width:500px;
      }

    }

@media (min-width: 768px) and (max-width:1024px) {
  .main-title {
    min-height: 300px;
    margin-top: 50px;
  }

  .main-title__container {
    width: 50%;

  }

  .main-title__container p {
    width: 100%;
    padding-bottom: 10px;
  }
  .main-title picture {
    width:400px;
  }

}
@media (min-width: 600px) and (max-width: 767px) {
  .main-title {
    min-height: 300px;
    margin-top: 50px;
  }

  .main-title__container p{
    width:90%;
  }
  .main-button {
    min-height: 40px;
  }
  .main-title picture {
    width:100%;
  }

}

@media (max-width: 589px) {
  .main-title {
    display: flex;
    margin-top: 70px;
    flex-direction: column-reverse;
    align-items: center;

    }


  .main-title__container {
    width: 100%;
    margin-top: 20px;
    text-align: center;

  }
  .main-title__container h2{
   margin: 0;
}

  .main-title__container p {
    width: 100%;
    margin:0 auto;
    margin-bottom: 20px;

  }
  .main-title__container p:first-of-type {


    padding-bottom: 0;
  }
  .main-title__container p:last-of-type {


    margin-bottom: 40px;
  }
  .main-button {

    width: 100%;
  }
  .main-title picture {
    width:100%;
  }

}

/*Раздел о нас*/
.main-about{
  display: flex;
  min-height: 500px;
  margin-top: 120px;
  justify-content: space-between;

}
.main-about__container {
  width:50%;

}


.main-about__list {
  min-height: 80%;
  padding: 0;
  display:flex;
  flex-direction:column;
  justify-content: space-between;
}
.main-about picture{
  width:500px;

}

@media (min-width: 1025px) and (max-width:1440px) {
  .main-about {
    margin-top: 100px;

    min-height: 400px;
}
.main-about picture{
  width:500px;

}
}
@media (min-width: 768px) and (max-width:1024px) {
  .main-about {
    margin-top: 70px;
    min-height: 300px;

    align-items: stretch;

}

  .main-about__container {
width:100%
  }
  .main-about__container h2 {
    margin: 0;
    margin-bottom: 40px;
  }

  .main-about__list li:not(:last-child) {
  padding-bottom: 16px;
  }
  .main-about picture{
    width:100%;

  }
}

@media (max-width: 767px) {
  .main-about{
    display: block;
    min-height: 598px;
    margin-top:100px;

  }
  .main-about picture {
    display: block;
    width: 70%;
    margin:0 auto;
  }

  .main-about__container {
    width:100%;

    margin-top: 30px;
  }

  .main-about__container h2 {
    text-align: center;
    margin-bottom: 50px;
  }
  .main-about__list {
    text-align: center;

  }
  .main-about__list li:not(:last-child) {
    margin-bottom: 16px;
  }
}
@media (max-width: 589px) {

  .main-about picture {
    display: block;
    width: 100%;
    margin:0 auto;
  }
  .main-button {
    margin: 0 auto;
    width:240px;
  }


}
@media (max-width: 450px) {


  .main-button {
    margin: 0 auto;
    width:100%;
  }


}
/*Услуги*/

.main-services {
  margin-top: 120px;
  min-height: 530px;
}
.services-list__item {
  position: relative;
  width:300px;

}

.main-services__list {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 0;

}
.services-list__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow:hidden;
  background: #F2FAFD;
  border-radius: 10px;

}
.services-list__item:hover {

  box-shadow: 0px 3px 8px rgba(60, 60, 59, 0.4);
      transform:scale(1.05);


  }

.services-list__item p {
  margin-right: 5px;
  margin-left: 5px;
  text-align: left;
  margin-top: 16px;
}



.main-button--services {
  position: relative;
  display:flex;
  justify-content: center;
  align-items: center;

  width: 100%;
  height:50px;
  margin-top: auto;
 background:transparent;
 color:#000000;
 overflow:hidden;

}
.main-button--services span{
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  bottom:-100%;
  left:0;
  width:100%;
  height:100%;
  color:#ffffff;
  border-radius: 10px;
  background-color: #009FE3;

  transition-property: bottom;
  transition-duration: 1s;

}
.main-button--services:focus{
  border:none;
  box-shadow:none;
}
.services-list__item:hover span, .main-button--services:focus span{
  bottom:0;
}

@media (min-width: 1441px) and (max-width: 1681px) {
  .services-list__item {
    width:260px;
  }
}

@media (min-width: 1024px) and (max-width:1440px){
  .main-services {
    padding: 0;
    margin-top: 100px;
  }

  .services-list__item {
    max-width:23%;
  }
  .services-list__item:last-child p {
    margin-top: 0;
  }

  .services-list__item:nth-child(3) p {
    margin-top: 0;
  }

  }
  .main-button--services {
    min-height: 45px;
    margin-top: auto;
  }


@media (max-width: 1023px) {
  .main-services {
    padding-top: 0;
    margin-top: 70px;
  }
  .main-services h2{
    padding-bottom: 40px;
}
  .services-list__item {
    width:48%;
    margin-bottom: 30px;
  }
}

@media (min-width: 451px) and (max-width:767px) {
  .main-services {
    padding-top: 0;
    margin-top: 70px;
  }
  .main-services h2{
    padding-bottom: 0px;
}
  .services-list__item {
    width:45%;
      margin:0 auto;
    margin-bottom: 50px;
  }
  .main-services__list {
    width:100%;

  }

}
@media (max-width: 450px) {
  .main-services {
    width:100%;
    padding:0;
    margin-top: 100px;
}

  .main-services h2 {
    padding:0;
    margin-bottom: 50px;
    text-align: center;
  }
  .main-services__list {
    width:100%;

  }
  .services-list__item {
    margin-bottom: 30px;
    width: 100%;
    text-align: center;
  }

  .services-list__item picture,  .services-list__item img{
    width:100%;
  }
  .services-list__item h3 {
     margin: 0;
  }
  .services-list__item p {
  margin-top: 20px;
  margin-bottom: 20px;

}
}
/*Раздел этапы работ*/
.work-stages {
  margin-top: 120px;
}
.work-stages h2 {
  margin-bottom: 78px;
}
.work-stages__container {
  min-height: 307px;
  display: flex;
  justify-content: center;

}

.work-stages__list {
display: flex;
flex-direction: column;
justify-content: space-between;
}
.work-stages_picture {

}
.stages-list__left {
  margin-right: 10px;
  align-items: flex-end;
}
.stages-list__right {
  margin-left: 10px;
}
.work-stages__connection {
  position: relative;
  margin-top: 200px;
  min-height: 240px;
  width:100%;
}
.work-stages__connection > p{
  min-height: 140px;
  border-radius: 10px;
  color:#FFFFFF;
  padding-top: 30px;
  padding-left: 30px;
  background-color: #009FE3;
}
  .work-stages__form--span {
    display: block;
    margin-bottom: 10px;
}
.work-stages__form {
    position: absolute;
    z-index: 3;
    width: 470px;
    min-height: 240px;
    top:-20%;
    right:5%;
    background: #FFFFFF;
    box-shadow: 0px 0px 10px rgba(0, 159, 227, 0.2);
    border-radius: 10px;
    text-align: center;

  }

  .work-stages__form:hover {
    transform: scale(1.05);
  }
  .work-stages__form  p:first-child {
    margin: 0;
    margin-top: 25px;


  }
 .work-stages__form  p:nth-child(2) {
    width: 316px;
    margin: 0 auto;
    margin-top: 20px;
    margin-bottom: 20px;;
  }
.stages-form_font-input {
  box-sizing: border-box;
  width: 45%;
  min-height: 40px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  text-align: center;
}
.stages-form_font-input:focus {
  border-color: #009FE3;
}
.stages-form_font-input:hover {
  border-color: #009FE3;
}
.stages-form_font-input::placeholder{
font-size: 0.8rem;

}

.work-stages__form button {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  width: 45%;
  min-height: 40px;
  background: #009FE3;
  color: #FFFFFF;
  border-radius: 10px;
  border:none;
  font-size: 0.8rem;
  cursor: pointer;
}
.stages-form_container {
  width:100%;
  margin-bottom: 10px;
  min-height: 40px;
  display: flex;
  justify-content: space-around;
  align-items: center;

}
.work-stages__form button:hover{
  background: #ffffffcb;
  color:#3C3C3B;
  border:1px solid #009FE3;
  transform: scale(1);
}
.work-stages__form::before {
  position: absolute;
  content:'Запрос отправлен';
  width:100%;
  height: 100%;
  top:0;
  left:0;
  background-color: #ffffffe5;
  border-radius: 10px;
  background-image: url(img/sending.gif);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: 50px;
  opacity: 0;
  visibility: hidden;

}
.work-stages__form.send::before {
  opacity: 1;
  visibility: visible;
  transform: none;
}

@media (min-width: 1024px) and (max-width:1440px) {
  .work-stages {
    margin-top: 120px;
  }
  .work-stages h2 {
    margin-bottom: 40px;
  }
   .work-stages__container {
    min-height: 204px;
    display: flex;
    justify-content: space-between;

  }
  .stages-list__left {
    max-width: 30%;
    align-items: flex-end;
    text-align: right;
  }

  .stages-list__right {
    max-width: 30%;

  }
  .work-stages_picture {
    min-width: 300px;
  }


  .work-stages__list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }


  .work-stages__connection {
    position: relative;
    margin-top: 100px;
    min-height: 146px;
    width:100%;
    display: flex;
    align-items: center;
  }
  .work-stages__connection > p{
    margin: 0;
    width: 100%;
    min-height: 100px;
    padding-top: 14px;
    padding-left: 20px;
  }
.work-stages__form {
  width:370px;
  top:-10%;
    min-height: 146px;
    right:2%;
  }
    .work-stages__form  p:first-child {
      margin-top: 20px;
    }
   .work-stages__form  p:nth-child(2) {
      max-width: 290px;
      margin-top: 10px;
      margin-bottom: 10px;
    }
  .work-stages__form input[type="tel"]{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    min-height: 35px;
    margin-right: 9px;

    }

  .work-stages__form button {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 35px;
  }
}
@media (min-width: 768px) and (max-width: 1023px) {


  .work-stages__container {
    min-height: 170px;
  }

 .stages-list__left {
    margin-right: 7px;
    text-align: right;

  }
  .stages-list__right {
    margin-left: 7px;

  }
  .work-stages__connection {
    margin-top: 120px;
    min-height: 130px;
    display: flex;
    width:100%;
    align-items: center;

  }
  .work-stages__connection > p{
    padding-top: 0;
    width:100%;
    min-height: 80px;
    padding-left: 15px;
    padding-bottom: 15px;

  }
  .work-stages__form--span {
    margin-top: 10px;
  }
  .work-stages__form {
    width: 321px;
    min-height: 146px;
    right:3%;
}
  .work-stages__form  p:first-child {
    margin: 0;
    margin-top: 25px;
}
   .work-stages__form  p:nth-child(2) {
      width: 290px;
      margin-top: 10px;
      margin-bottom: 10px;
    }
  .work-stages__form input[type="tel"]{
    width: 150px;
    min-height: 35px;
    margin-right: 5px;
  }
  .work-stages__form button {
    width: 150px;
    min-height: 35px;
  }


}


@media (max-width: 767px) {
  .work-stages {
    margin-top: 70px;
  }
  .work-stages h2 {
    text-align: center;
    margin-bottom: 50px;
  }
  .work-stages__container {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
  }

  .work-stages__list {
  display: block;
  text-align: center;
  }
  .work-stages__list li {
   margin-bottom: 32px;

  }
  .work-stages__list li span {
     position: relative;
  }
  .work-stages__list li span::before{
    position: absolute;
    content: "";
    width:24px;
    height: 24px;
    top:0;
    left: -30px;
    background-image: url(img/icon/Vector.svg);
    background-repeat: no-repeat;
    background-size: contain;

  }
  .nomobil_img {
    display: none;
  }
  .mobil_img {
    display: block;
    margin: 0;
    padding: 0;
    width:400px;

    margin-bottom: 50px;

  }
  .work-stages_picture {
    margin: 0;
    padding: 0;
    order: -1;
  }
  .stages-list__left, .stages-list__right{
    margin:0;
    padding-left: 50px;
    text-align: left;
  }

  .work-stages__connection {

    min-height: 200px;
    width:100%;
    display: block;
    margin:0 auto;
    margin-top: 70px;
  }
  .work-stages__connection > p{
    width: 100%;
    min-height: 90px;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
  }
    .work-stages__form--span {
      margin: 0;
      padding: 0;

    }
  .work-stages__form {
    position: static;
    margin:0 auto;
    min-height: 250px;
    width: 60%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-around;
    margin-top: 10px;
    }

    .work-stages__form  p:first-child {
      margin: 0;
      margin-top: 25px;
    }
   .work-stages__form  p:nth-child(2) {
      width: 90%;
      margin: 0;
    }
    .stages-form_container {
      flex-direction: column;
    }
    .stages-form_container {
      min-height: 120px;
    }
  .work-stages__form input[type="tel"]{
    margin:0 auto;
    width: 220px;


  }
  .stages-form_font-input::placeholder{
    font-size: 1rem;
    }
  .work-stages__form button {
    width: 220px;


    font-size: 1rem;
  }
  }



@media(max-width:460px){

  .work-stages__connection {
    background-color: #009FE3;
    padding: 10px;
    padding-top: 0;
    border-radius: 10px;
}
.work-stages__form--span {
margin-bottom: 15px;

}
.work-stages__form {
    width: 100%;
    margin-top: 30px;
  }
  .work-stages__form p:first-child {

    margin-bottom: 10px;
  }
}


/*Раздел портфолио*/
.portfolio {
  margin-top: 120px;
}
.portfolio-figure {
  margin: 0;
  padding: 0;
  width: 100%;
}
.portfolio-figure__list {
  display: flex;
  min-height: 430px;
  flex-wrap: wrap;
  margin-top: 50px;
  justify-content: space-between;
}
.portfolio-list__item {

  width:630px;
  margin-bottom: 50px;
}

.portfolio-list__item:hover, .portfolio-list__item:focus-within{
  transform: scale(1.1);
  }
  .portfolio-list__item:focus-within {
    border:1px solid #009FE3;
  }
  .portfolio-list__item a:focus{
    box-shadow: none;
  }
.portfolio .main-button{
  margin: 0 auto;
}

.main-button__figure--span{
  font-size: 16px;
  color: #ffffff;
}

.main-button__figure:hover .main-button__figure--span {
  color: #000000;

}

@media (min-width: 1441px) and (max-width: 1681px) {
  .portfolio-list__item {
    width:535px;
  }
}

@media (min-width: 1024px) and (max-width:1440px) {
  .portfolio {
    margin-top: 120px;
  }

  .portfolio-figure {
    margin: 0;
    padding: 0;
    width: 100%;
  }
  .portfolio-figure__list {
    display: flex;
    min-height: 350px;
    flex-wrap: wrap;
    margin-top: 40px;
    justify-content: space-between;
  }
  .portfolio-list__item {

    width:50%;
    margin-bottom: 30px;
  }


}
@media (max-width: 1023px) {
  .portfolio {
    margin-top: 70px;

  }
  .portfolio-figure__list {
    margin-top: 40px;

  }
  .portfolio-list__item {

    width:50%;
    margin-bottom: 20px;

}

}
@media (max-width: 767px) {
  .portfolio {
    margin-top: 120px;
  }
  .portfolio-figure__list {
    min-height: 100%;
    justify-content: center;

  }
  .portfolio-list__item {
    width:90%;
    margin-bottom: 30px;
  }



}
@media (max-width: 450px) {
  .portfolio {
    margin-top: 120px;
  }
  .portfolio-figure__list {
    min-height: 100%;
    justify-content: center;

  }
  .portfolio-list__item {
    width:90%;
    margin-bottom: 30px;
  }
  .main-button__figure {
    width:100%;
  }


}
