* {
    box-sizing: border-box;   
}

html, body {
    font-family: 'Montserrat', sans-serif;
    background: #ffff;
    color: rgba(0, 0, 0, 0.87)
}

p {
    font-size: 18px;
    line-height: 28px;
}

.wrapper 
{
    box-sizing: border-box;
    min-width: 340px;
    width: 100%;

}  /* адаптив на минимальной ширине */

img {
  display:block; /*потому что по умлочанию инлайн*/  
  max-width: 100%; /* растягивание не более 100% родителя*/ 
  height: auto;
}

section {
    margin-bottom: 52px;
}

@media (max-width: 768px) {
    section {
        margin-bottom: 25px;
    }
}

.container {
    width: 100%; /* всегда 100% ширины */
    max-width: 1440px;
    margin: 0 auto; /* центрирование по горизонтали */
    padding: 0 100px;
}


.plus:hover{
    -webkit-transform: scale(1.1);
      -ms-transform: scale(1.1);
      transform: scale(1.1);
      transition: 1s;
    }
    
/* адаптивные свойства */
@media (max-width: 1440px) {
    .container {
        padding: 0 32px;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
}



.header {
    padding: 50px 0;
    background: #424a57;
}

.header__container {
    display: flex; /* в ряд */
    justify-content: space-between; /* прижать к краям */
    align-items: center; /*вертик центрирование*/
}

.header__logo {
    flex-shrink: 0;  /*запрет сжимания*/
    }
    
    .header__menu-list {
        display: flex; /* в ряд */
        align-items: center;
    }
    
    
    .header__menu-link {
        margin-left: 17px;
        font-weight: 700;
        font-size: 17px;
        line-height: 44px;
        color: #E1E1E1;
        text-decoration: none;
        transition: color 0.15s;
    }
    
    .header__menu-link:hover {
    color: #ff6325;
    }

    .header__menu-contact{
        border-radius: 50%;
        width: 50px;
        height: 50px;
        background: #FFFFFF;
        margin-left: 24px;
    }

    .header__menu-pic {
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;  /*горизонт центрирование*/
        align-items: center; /*вертик центрирование*/   
    }



    @media (max-width: 1024px) { 
        .header__menu {
            margin-top: 30px;
                }

        .header__menu-link { 
        font-size: 20px;
        } 

        .header__container {
            display: block; 
        }
         
        .header__menu-item:first-child {
            margin-left: 0px;
        }
    }  
    
    @media (max-width: 768px) {
    
        .header__menu-list {
            display: block; 
        }     
        .header__menu-link { 
        font-size: 17px;
        }  

        .contact {
            display: flex;
        }
        .header__menu-contact{
            width: 40px;
            height: 40px;
            margin-left: 12px;
        }
        .header__menu-pic {
            width: 40px;
            height: 40px;
        }
    } 




/* main */

/* hero */
.hero {
    padding: 100px 0;
    background: #f6f9ff;
}

.hero__content {
    display: flex;
    align-items: center; /*вертик центрирование*/
}

.hero__figure { /*блок под картинку */
    width: 50%;
    height: 450px;
    margin-right: 60px;
    background: #D9D9D9;
border-radius: 4px;
} 

.hero__image { /*картинка*/
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    border-radius: 4px;
}

.hero__text {
    width: 50%;
}

.hero__title {
    font-weight: 700;
font-size: 54px;
line-height: 64px;
color: #424A57;
}

.hero__subtitle {
    margin-top: 32px;
    font-weight: 400;
font-size: 27px;
line-height: 38px;
color: rgba(0, 0, 0, 0.87);
}

.hero__button {
    margin-top: 32px;
    display: inline-flex; /*центрирование пр исворачивании окна*/
    justify-content: center;  /*горизонт центрирование*/
    align-items: center;  /*вертик центрирование*/
    padding: 16px 32px;
    background-color:  #f09001; 
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.06);
    border-radius: 50px;

    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #FFFFFF;
    cursor: pointer;
    border: none;
    font-family: inherit; /* наследование от родителя */
    transition: color 0.15s;
    text-decoration: none;
}

.hero__button:hover {
    background-color: #666666;
} 

/* адаптивные свойства */



@media (max-width: 1024px) {
    .hero {
       padding: 64px 0; 
    }
    
    .hero__content {
        display: block; /* Ставит элементы друг под друга*/
    }

    .hero__figure {
        width: auto;
        margin-bottom: 32px;
    }

    .hero__image {

    }

    .hero__text {
        width: auto;
        text-align: center;
    }
}



@media (max-width: 768px) {
    .hero__figure {
margin-left: -16px;
margin-right: -16px;
    }

    .hero__title {
font-size: 36px;
line-height: 44px;
    }

    .hero__subtitle {
 margin-top: 16px;
font-size: 18px;
line-height: 24px;
    }

}


/*features*/

.features__list {
    display: flex;
    align-items: start; /* иконка сверху */
}

.features__item {
    width: calc(100% / 3);
    display: flex;
    align-items: start; /* иконка сверху */
    margin-left: 20px;
}

.features__item:first-child { /* первый без отступа */
    margin-left: 0px;
}
    /* Можно альтернативно для 2 и 3 сделать так:
    .features__item + .features__item {
    margin-left: 20px;
    } 
    не прописывая отступы до этого    
    */

    .features__item-icon {
        flex-shrink: 0;
        margin-right: 16px;
    }

    .features__item-title {
        margin-bottom: 14px;
        font-weight: 700;
        font-size: 20px;
        line-height: 30px; 
        color: #424A57;
    }


    @media (max-width: 1024px) { 
        .features__item {
            margin: 17px 0px;
        }

    }

    @media (max-width: 768px) {
        .features__list {
            display: block;
        }   
        
        .features__item {
            width: auto;
            display: flex;            
        }
    }


    /* benefits */ 

    .benefits__title {
        font-weight: 700;
        font-size: 48px;
        line-height: 60px; 
        color: #424A57;
        margin-bottom: 32px;
        }

        .benefits__list {   
            display: flex;
        }       
        .benefits__item {
            width: calc(100% / 3);
            margin-left: 20px;
        }
        
        .benefits__item:first-child { /* первый без отступа */
            margin-left: 0px;
        }


        .benefits__figure { /*блок под картинку */
            border-radius: 4px;
            margin-bottom: 32px;
        } 
        
        .benefits__item-image { /*картинка*/
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: 50% 50%;
            border-radius: 4px;
        }
        
        
        .benefits__item-title {
            margin-bottom: 24px;
            font-weight: 700;
            font-size: 24px;
            line-height: 44px; 
            color: #424A57;
        }

        @media (max-width: 768px) {

            .benefits__title {
                width: auto;
                text-align: center;
                font-size: 36px;
            line-height: 44px;
            } 

            .benefits__list {
                display: block;
                height: auto;
                margin: 0;
                width: auto;
            }  
        
            .benefits__item {
                width: auto;
                margin: 0;
            }
        
        .benefits__figure {
        margin-left: -16px;
        margin-right: -16px;
        margin-bottom: 8px;
        
        }
 
        
        .benefits__item-title {
            margin-bottom: 12px;
        }

       .benefits__item-content {
        margin-bottom: 25px;     
       }
        }


            /* clients */ 

    .clients__title {
        font-weight: 700;
        font-size: 48px;
        line-height: 60px; 
        color: #424A57;
        margin-bottom: 32px;
        }

        .clients__list {   
            display: flex;
        }       
        .clients__item {
 width: calc(100% / 4);
            margin-left: 20px;
        }
        
        .clients__item:first-child { /* первый без отступа */
            margin-left: 0px;
        }


        .clients__figure { /*блок под картинку */
            border-radius: 4px;
            margin-bottom: 32px;
        } 
        
        .clients__item-image { /*картинка*/
            width: 80%;
            height: 80%;
            object-fit: cover;
            object-position: 50% 50%;
            border-radius: 4px;
        }

        @media (max-width: 768px) {

            .clients__title {
                width: auto;
                text-align: center;
                font-size: 36px;
            line-height: 44px;
            }

            .clients__list {
                display: block;
                height: auto;
                margin: 0;
                width: auto;
            }  
        
            .clients__item {
                width: auto;
                margin: 0;
            }
        
        .clients__figure {
        margin-bottom: 8px;      
        }
        .clients__item-image { /*картинка*/
            width: 100%;
            height: 100%;
        }    
    }


    /* about */
.about {
    background: #f6f9ff;
}

.about__list {
    align-items: start; /* иконка сверху */
}

.about__item {
    display: flex;
    align-items: start; /* иконка сверху */
}



    .about__item-icon {
        flex-shrink: 0;
        margin-right: 16px;
    }

    .about__item-title {
        margin-bottom: 14px;
        font-weight: 700;
        font-size: 20px;
        line-height: 30px; 
        color: #424A57;
    }

/* Галерея*/
    .gallery {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
      }



      
      .gallery__card {
        position: relative;
        height: 500px;
        cursor: pointer;
        overflow: hidden;
      }
      
      .gallery__card__pic {
        position: absolute;
        width: 100%;
        height: 100%;
        object-fit: contain;
        transition: 0.2s;
        padding: 3px 0;
      }
      
      .gallery__card:hover .gallery__card__pic {
        transform: scale(1.02);
      }
      
      .slider {
        opacity: 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        pointer-events: none;
      }
      
      .active {
        opacity: 1;
        pointer-events: all;
      }
      
      .slider__container {
        position: relative;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        background-color: #fff;
        width: 80vw;
        height: 80vh;
      }
      
      .slider__btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        background: none;
        border: none;
        padding: 20px;
        font-size: 30px;
        z-index: 10;
      }
      
      .slider__btn_left {
        left: 25px;
      }
      
      .slider__btn_right {
        right: 25px;
      }
      
      .slider__close {
        position: absolute;
        right: 0;
        top: 0;
        font-size: 30px;
        padding: 20px;
        color: #fff;
        background: none;
        border: none;
      }


      @media (max-width: 768px) {
        .gallery__card {        
            width: 80%;
            cursor: none;
          } 
          .slider__container {
            width: 100vh;
            height: 100vh;
          }         
      }
	  
	  
/*карты*/
.cards {
    margin-bottom: 0px;
}

    .cards_title {
        font-weight: 700;
        font-size: 48px;
        line-height: 60px; 
        color: #424A57;
        margin-bottom: 32px;
        }
		
	.cards__block {
        width: 100%;
        display: flex;
		justify-content: space-between;
	}	
	
	.cards__block-card{
		width: calc(100% / 2);	
        padding-bottom: 40px;
	}

    .cards__block-title {
        font-weight: 700;
        font-size: 24px;
        line-height: 32px; 
        color: #424A57;
        text-align: center;
    }
	

    .cards__block-price {  
        font-weight: 700;
        font-size: 24px;
        line-height: 32px; 
        color: #ff6325;
        text-align: center;
        margin-bottom: 14px;
    }

    .cards__block-pic {
        display: flex;
        justify-content: center;

    }

    .card-pin {
        height: auto;
        max-width: 70%;
      }

    .strong {
        font-weight: bolder;
    }
	

    @media (max-width: 768px) {
        .cards__block {
            width: 100%;
            display: block;
        }
        .cards__block-card{
            width: 100%;	
        }	

    }

    .card_link {
        text-decoration: none;    
        color: rgba(0, 0, 0, 0.87);
        }

    .card_link:hover {
        color: #ff6325;
        }


        /*contacts*/

 .contacts__box{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around ;
 } 

 .contacts__box-card {
    width: 280px;
    padding: 22px 16px;
    box-sizing: border-box;
    background: #FFFFFF;
    box-shadow: 5px 20px 50px rgba(16, 80, 85, 0.2);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
    text-align: center;
 }

 .contacts__box-card:hover{
    transform: perspective(400px) rotateY(360deg);
    transition-duration: 1s;
    cursor: pointer;
}

 .card__img {
    opacity: 0.4;
    padding-bottom: 52px;
    align-self: center; 
 }

 .card__img:hover {
    opacity: 1;
    padding-bottom: 52px;
    align-self: center; 
 }



.contacts_wiev {
    padding-top: 20px;
}

@media (max-width: 768px) {

    .contacts_wiev {
        width: auto;
        padding: 10px 17px;
    }
}       

    /* footer */

    .footer {
        padding: 47px 0;
        background: rgba(66, 74, 87, 0.5);
    }
    
    .footer__container {
        display: flex; /* в ряд */
        justify-content: space-between;
        align-items: center; /*вертик центрирование*/    
    }
    
    .footer__copyright {
        color: #FFFFFF;
        font-weight: 700;
        font-size: 24px;
        line-height: 44px;
    }

    .footer__menu-list {
        display: flex;
    }

    .footer__menu-item {
        border-radius: 50%;
        width: 50px;
        height: 50px;
        background: #FFFFFF;
        margin-left: 24px;
    }

    .footer__menu-link {
        width: 50px;
        height: 50px;
        display: flex;
        justify-content: center;  /*горизонт центрирование*/
        align-items: center; /*вертик центрирование*/   
    }


    @media (max-width: 768px) {     
        .footer__copyright { 
            font-size: 20px;
            margin-left: 24px;
        } 

        .footer__container {
            display: block; 
            justify-content: center;  /*горизонт центрирование*/
        }

        .footer__copyright {
            margin-bottom: 30px;
        }
         

    }  