/*Обнуление*/
*{padding:0;margin:0;border:0;}
*,*:before,*:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;}
:focus,:active{outline:none;}
a:focus,a:active{outline:none;}
nav,footer,header,aside{display:block;}
html,body{height:100%;width:100%;font-size:100%;line-height:1;font-size:14px;-ms-text-size-adjust:100%;-moz-text-size-adjust:100%;-webkit-text-size-adjust:100%;}
input,button,textarea{font-family:inherit;}
input::-ms-clear{display:none;}
button{cursor:pointer;}
button::-moz-focus-inner{padding:0;border:0;}
a,a:visited{text-decoration:none;}
a:hover{text-decoration:none;}
ul li{list-style:none;}
img{vertical-align:top;}
h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit;}
/*--------------------*/

body{
	font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.wrapper{
	min-height: 100%;
	display: flex;
	flex-direction: column;
}


.h_container{
	max-width: 1180px;
	margin: 0 auto;
	padding: 0 10px; 
}
.header{
	position: fixed;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 50;
	align-items: center;
}
.header:before{
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: #826d6d;
	z-index: 2;
}
.header__body{
	position: relative;
	display: flex;
	justify-content: space-between;
	height: 80px;
	align-items: center;
}

.header__logo{
	flex: 0 0 60px;
	border-radius: 50%;
	overflow: hidden;
	z-index: 3;
}
.header__logo img{
	max-width: 100%;
	display: block;
}
.header__list{
	display: flex;
	position: relative;
	z-index: 2;
}
.header__list li{
	list-style: none;
	margin: 0px 0px 0px 20px;
}
.header__link{
	color: #fff;
	text-transform: uppercase;
	font-size: 18px;
	text-decoration: none;
}
.header__burger{
	display: none;	
}


.content{
	flex: 1 1 auto;
}
.first-line{
	padding: 50px 0;
	background-color: #445162;
}
.container{
	max-width: 1180px;
	margin: 0px auto;
}
.first-line__row{
	display: flex;
	justify-content: space-between;
}
.first-line__body{
	color: #ffffff;
	padding: 0px 20px 0px 0px;
}
.first-line__title{
	font-size: 60px;
	margin: 0px 0px 40px 0px;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
}
.first-line__list li{
	font-size: 20px;
	margin: 0px 0px 15px 0px;
	padding: 0px 0px 0px 36px;
	text-shadow: 1px 1px 0 rgba(0, 0, 0, 0.3);
	background: url('../img/icons/icon.png') 0 1px no-repeat;
}
.first-line__list li:last-child{margin: 0;}
.first-line__image img{
	width: 100%;
}
.second-line{
	padding: 50px 0;
}
.second-line__row{
	display: flex;
}
.second-line__inf{
	padding: 0px 0px 0px 38px;
}
.second-line__title{
	margin: 0px 0px 35px 0px;
}
.title{
	color: #445161;
    font-size: 30px;
}
.second-line__text {
	font-size: 16px;
	color: #333;
	line-height: 24px;
}
.second-line__text p{
	margin: 0px 0px 15px 0px;
}
.second-line__text p:last-child{
	margin: 0;
}
.columns{
	background-color: #f5f5f5;
	padding: 50px 0 20px 0;
}
.columns__title{
	text-align: center;
	margin: 0px 0px 30px 0px;
}
.columns__row{
	display: flex;
	flex-wrap: wrap;
	margin: 0px -8px;
}
.columns__column{
	flex: 0 1 50%;
	margin: 0px 0px 30px 0px;
	padding: 0px 8px
}
.item__row{
	display: flex;
}
.item__inf{
	padding: 0px 0px 0px 15px;
}
.item__title{
	color: #445161;
    font-size: 24px;
    margin: 0px 0px 15px 0px;
}
.item__text {
    color: #333333;
    font-size: 16px;
    line-height: 24px;
}
.third-line{
	padding: 50px 0;
}
.third-line_title{
	text-align: center;
	margin: 0px 0px 30px 0px;
}
.third-line__body{
	max-width: 990px;
    margin: 0px auto;
}
.third-line__item{
	background-color: #445162;
	border-radius: 5px;
	border: 1px solid #445162;
	padding: 0px 0px 20px 0px;
	color: #fff;
	flex-direction: column;
	display: flex;
} 	
.third-line__row{
	display: flex;
	flex-wrap: wrap;
	margin: 0 -22.5px;
}
.third-line__column{
	padding: 0 22.5px;
	flex: 0 1 33.3333%;
	display: flex;
}
.third-line__subtittle{
	text-align: center;
	padding: 15px 0;
    font-size: 24px;
}
.third-line__label{
	text-align: center;
	padding: 12px 0;
	background-color: #fff;
	color: #445162;
	font-size: 40px;
}
.third-line__text{
	font-size: 16px;
	padding: 20px;
	line-height: 24px;
	flex: 1 1 auto;
}
.third-line__btn{
	padding: 10px;
	display: block;
	margin: 0px 20px;
	font-size: 18px;
	text-align: center;
	color: #445162;
	border-radius: 5px;
	background-color: #fff;
}
.footer{
	background-color: #f5f5f5;
}
.footer__row{
	display: flex;
    height: 65px;
    justify-content: center;
    align-items: center;
}
.footer__text{
	color: #445162;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.grid * {
    box-sizing: border-box;
}
.grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    column-gap: 30px;
    row-gap: 30px;
    padding: 20px 0;
}
/* Кол-во блоков на разных экранах */
@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%;  
}
.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: 'Roboto', Тahoma, sans-serif;
    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;
}
.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: 'Roboto', Тahoma, sans-serif;
    background: #337AB7;
    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;
}

@media only screen and (max-width: 1210px) {
	.first-line__row{
		padding: 20px;
	}
	.second-line{
		padding: 50px 20px 50px 20px;
	}
	.item__row{
		padding: 0 15px 0 0;
	}

	
}
@media only screen and (max-width: 991px) {
	.columns__row{
		margin: 0;
	}
	.item__row{
		flex-direction: column;
		text-align: center;
	}
	.item__inf{
		padding: 20px 0px 0px 0px;
	}
	.item__text{
		text-align: justify;
	}
	.third-line__row{
		margin: 0px;
	}
	.third-line__column {
    flex: 1 1 33.3333%;
	}
@media only screen and (max-width: 767px) {
	.second-line__row{
		flex-wrap: wrap;
	}
	.header__body{
		height: 50px;
	}
	.header__logo {
		flex: 0 0 40px;
	}
	.header__burger{
		display: block;
		position: relative;
		width: 30px;
		height: 20px;
		position: relative;
		z-index: 3;
	}
	.header__burger.active:before{
		top: 9px;
		transform: rotate(45deg);
	}
	.header__burger.active:after{
		transform: rotate(-45deg);
		bottom: 9px;
	}
	.header__burger.active span{
		transform: scale(0);
	}
	.header__menu.active{
		top: 0;
	}
	.header__burger span{
		position: absolute;
		background-color: #fff;
		left: 0;
		width: 100%;
		height: 2px;
		top: 9px;
		transition: all 0.3s ease 0s;
	}
	.header__burger:before,
	.header__burger:after{
		content: '';
		background-color: #fff;
		position: absolute;
		width: 100%;
		height: 2px;
		left: 0;

	}
	.header__burger:before{
		top: 0;
	}
	.header__burger:after{
		bottom: 0;
	}
	.header__menu{
		position: fixed;
		overflow: auto;
		top: -100%;
		transition: all 0.3s ease 0s;
		left: 0;
		width: 100%;
		height: 100%;
		background-color: #18b5a4;
		padding: 70px 10px 20px 10px;
	}
	.header__list{
		display: block;
	}
	.header__list li{
		margin: 0 0 20px 0;
	}

}
@media only screen and (max-width: 490px) {
	.first-line__row {
		flex-wrap: wrap;
	}
	.first-line__body{
		padding: 20px;
	}
	.first-line__image {
		padding: 20px;
	}
	.second-line__row{
		flex-wrap: wrap;
	}
	.second-line__image img{
		width: 100%;
	}
	.columns__row{
		display: inline;

	}
	.item__row{
		padding: 0;
	}
	
}