body {
    margin: 0;
    
    font-family: 'Open Sans', sans-serif;
    font-size: 14px;
    color: #6c7279;
    -webkit-font-smoothing:
    antialiased; 
    
    background-color: #fff;
}


*,
*:before,
*:after {
    box-sizing: border-box;
    
}

h1, h2, h3, h4, h5, h6{
    margin: 0;
}

p {
    margin: 0 0 10px 0;
}


/*Container
====================*/
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}




/*header
====================*/
.header {
    width: 100%;
    height: 54px;
    background: #3a3e64;
    
    
   position: absolute;
    top: 0;
    left: 0;
    z-index: 1000;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
/*  padding: 35px 0;*/
    
    border-bottom: 1px solid #515369;
}



/*Nav
====================*/


.nav {
    display: flex;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.header_logo {
     text-transform: uppercase;
     font-size: 17px;
     color: #fff;
}



.nav__link {
    margin-left: 50px;
    color: #fff;
    text-decoration: none;
    opacity: .75;
    
    transition: opacity .1s linear;
    
}

.nav__link:first-child {
    margin-left: 0;
}

.nav__link:hover {
     opacity: 1;
}





.grid * {
    box-sizing: border-box;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 30px;
    row-gap: 30px;
    padding: 20px 0;
    width: 1050px;
    margin-left: 22.5%;
    margin-top: 150px;

}
/* Кол-во блоков на разных экранах */
@media only screen and (max-width: 1200px) {
    .grid {
        grid-template-columns: 1fr 1fr 1fr;
    }
}
@media only screen and (max-width: 900px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
}
@media only screen and (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr;
    }
}
.grid-item {
    box-shadow: 0 2px 5px rgba(0,0,0,0.2), 0 4px 6px rgba(0,0,0,0.2);
    transition: box-shadow .3s;
    width: 100%;
    height: 100%;
    background-color: #ffff;

}
.grid-item .image {
    height: 200px;
    overflow: hidden;
}
.grid-item .info {
    position: relative;
    height: calc(100% - 200px);
    padding: 16px 14px 80px 14px;
}
.grid-item:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.2), 0 16px 20px rgba(0,0,0,0.2);
}
.grid-item .image img  {
      transition: transform 280ms ease-in-out;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;    
}
.grid-item:hover .image img  {
    transform: scale(1.1);
}
.info h2 {
   font-family: 'Permanent Marker', cursive;
    color: #337AB7;
    font-size: 24px;
    font-weight: normal;
    margin: 0;
    text-align: center;
}
.info-text p {
    font-size: 15px;
    line-height: 20px;
    font-family: Verdana, sans-serif; 
    margin-bottom: 10px;
}
.info-text p:last-child {
    margin-bottom: 0;
    background-color: #ffff;

}
.grid-item .button-wrap {
    display: block;
    width: 100%;
    position: absolute;
    bottom: 14px;
    left: 0;
    text-align: center;
}
/* Кнопка подробнее */
.atuin-btn {
    display: inline-flex;
    text-decoration: none;
    position: relative;
    font-size: 20px;
    line-height: 20px;
    padding: 12px 30px;
    color: #FFF;
    font-weight: bold;
    text-transform: uppercase; 
   font-family: 'Permanent Marker', cursive;
    background:  #3a3e64;
    cursor: pointer; 
    border: 2px solid #BFE2FF;
}
.atuin-btn:hover,
.atuin-btn:active,
.atuin-btn:focus {
    color: #FFF;
}
.atuin-btn:after,
.atuin-btn:before {
    position: absolute;
    height: 4px;
    left: 50%;
    background: #337AB7;
    bottom: -6px;
    content: "";
    transition: all 280ms ease-in-out;
    width: 0;
}
.atuin-btn:before {
    top: -6px;
}
.atuin-btn:hover:after,
.atuin-btn:hover:before,
.atuin-btn:active:after,
.atuin-btn:active:before,
.atuin-btn:focus:after,
.atuin-btn:focus:before {
    width: 100%;
    left: 0;
}


/*footer
====================*/
.footer {
padding: 70px;
    background-color: #3a3e64;
}


.footer__inner {
    display: flex;
    flex-wrap: wrap;
}


.footer__block {
    width: 33.3333%;
    
    text-align: center;
    
}

.footer__title {
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
}


.footer__address {
    font-size: 14px;
    line-height: 1.5;
    font-style: normal;
    color: rgba(255, 255, 255, .5);
}

.footer__text {
     font-size: 14px;
    line-height: 1.5;
    color: rgba(255, 255, 255, .5);
}






/*social
====================*/
.social {
    display: flex;
}

.social--footer {
    justify-content: center;
}

.social_item {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    margin-right: 4px;
    
    background-color: #fff;
    border: 1px solid #e8ecee;
    
    transform: background .1s 
    linear;
}

.social_item:hover {
    background-color: #e8ecee;
}

.social__item:hover .social__icon {
    fill: #000;
}

.social--footer .social_item {
    background-color: transparent;
    border-width: 2px;
    border-color: #fff;
    border-radius: 2px;
}



.social--footer .social_item:hover {
    background-color: #000;
}



.social__icon {
    display: block;
    height: 18px; 
    
    fill: #c6cacc;
    
    transition: fill .1s linear;
}


.social--footer .social__icon {
    fill: #fff;
}


















