/* preloader*/
.preloader {
	position: fixed;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
	/* фоновый цвет */
	background: #2C346E;;
	z-index: 1001;
}

.preloader__image {
	position: absolute;
	top: -75px;
	bottom: 0;
	left: 0;
	right: 0;
	margin: auto;
	width: 280px;
}

 
.loaded_hiding .preloader {
	transition: 500s opacity;
	opacity: 0;
}

.loaded .preloader {
	display: none;
}

#message {
	color:white;
	position: absolute;
	top: 50%;
	bottom: 0;
	left: 0;
	right: 0;
	width: 280px;
	margin:  auto;
	text-align: center;
}

/* preloader*/


/* main header */

#main-header {
    height: 540px;
    width: 1200px;
    margin: auto;
}

#main-header .background {
	position: absolute;
	height: 540px;
	width: 100%;
	background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -1;
    transition: opacity 0.5s;
    left: 0;
}

/* #main-header-background-1 {
	background: url("/wp-content/themes/twentyseventeen/assets/img/main_header_1.jpg"); 
}

#main-header-background-2 {
    opacity: 0;
	background: url("/wp-content/themes/twentyseventeen/assets/img/main_header_4.jpg");
}

#main-header-background-3 {
    opacity: 0;
	background: url("/wp-content/themes/twentyseventeen/assets/img/main_header_3.jpg");
}

#main-header-background-4 {
    opacity: 0;
	background: url("/wp-content/themes/twentyseventeen/assets/img/main_header_2.jpg");
} */

.main-header-background {
	width: 100%;
	height: 540px;
	position: absolute;
	left: 0;
	background-color: rgba(44, 52, 110, 0.6);
	z-index: -1;	
}

.main-header-content {
	width: 100%;
	height: 100%;
    display: flex;
}

.main-header-content  .squares {
	display: flex;
	flex-flow: wrap;
	width: 520px;
	height: 520px;
	margin-top: 80px;
	margin-left: 80px;
	position: relative;
}

 .squares .square {
	width: 260px;
	height: 280px;
	display: flex;
	justify-content: center;
	flex-direction: column;
	color: white;
	position: relative;
}

.squares .square:hover {
	box-shadow: 6px 9px 23px 0 black;
	z-index: 0;
	cursor: pointer;
}

.square .square-title {
	text-align: center;
	position: absolute;
	z-index: 1;
	width: 100%;
	padding-left: 12px;
	padding-right: 12px;
	font-size: 28px;
    opacity: 0.9;
}

/* #square-1 {
	background-image: url(/wp-content/uploads/2020/10/photo_2020-10-05_19-09-21.jpg);
	background-size:cover;
}

#square-2 {
	background-image: url(/wp-content/themes/twentyseventeen/assets/img/online.jpg);
	background-size:cover;
}

#square-3 {
	background-image: url(/wp-content/themes/twentyseventeen/assets/img/web.jpg);
	background-size:cover;
}

#square-4 {
	background-image: url(/wp-content/themes/twentyseventeen/assets/img/children.jpg);
	background-size:cover;
} */

.hover-fon{
	width: 100%;
	height: 100%;
	
	z-index: 1;
}

.hover-fon1 { background: rgba(0, 6, 47, 0.75); }
.hover-fon2 { background: rgba(0, 6, 47, 0.75); }
.hover-fon3 { background: rgba(0, 6, 47, 0.75); }
.hover-fon4 { background: rgba(0, 6, 47, 0.75); }

.hover-fon:hover {
	background: transparent ;
	z-index: 2;
}

.hover-fon2:hover {
	background: transparent ;
	z-index: 2;
}

.squares-info {
	margin-top: 80px;
	text-align: center;
	flex-grow: 1;
	display: flex;
	justify-content: center;
	flex-direction: column;
	color: white;
}

.squares-info .squares-info-title {
	width: 540px;
	margin: auto;
	margin-top: 0;
	margin-bottom: 0;
	text-transform: uppercase;
	font-weight: lighter;
}

.squares-info .squares-info-border {
	width: 180px;
	border-bottom: 4px solid #4C8FFC;
	margin: auto;
	margin-top: 8px;
	margin-bottom: 8px;
}

.squares-info .squares-info-desc {
	width: 400px;
	margin: auto;
	margin-top: 0;
	margin-bottom: 0;
	line-height: 24px;
	font-weight: lighter;
}

.div-arrow {
	position: absolute;
	width: 100%;
	height: 100%;
	text-align: center;
	opacity: 0;
	z-index: 1;
}

.div-arrow:hover {
	opacity: 1;
	z-index: 30;
}

.squares .arrow-index {
	width: 40px;
	margin-top: 70%;
}

/* mobile version */

@media screen and (max-width: 1200px) 
{
	.div-arrow { display: none; }

	#main-header {
	    width: 100%;
	    margin: auto;
	}

	.main-header-content {
		width: 100%;
		height: 100%;
	    display: flex;
	    flex-direction: column-reverse;
	}

	.main-header-content .squares {
		height: auto;
		width: 90%;
		margin: auto;
	    top: 40px;
	}

	.squares  .square {
		width: 25%;
		font-size: 12px;
		height: 200px;
	}

	.squares .square:hover {
		box-shadow: 6px 9px 23px 0 black;
		z-index: 10;
		cursor: pointer;
	}

	.square .square-title { text-align: center; }

	.squares-info {
		margin-top: 60px;
		margin-bottom: 0;
	}

	.squares-info .squares-info-title {
		width: 100%;
		text-align: center;
	}

	.squares-info .squares-info-border {
		width: 100px;
		border-bottom: 4px solid #4C8FFC;
		
	}

	.squares-info .squares-info-desc {
	    line-height: 20px;
	}
}

@media screen and (max-width: 768px) 
{
	

	.square .square-title h4 { font-size: 24px; }

	.squares-info .squares-info-desc { /*font-size: 12px;*/ width: 260px; }

	.squares .square { width: 25%; height: 160px; } 

	.main-header-content .squares { margin: 0; width: 100%; }
}

@media screen and (max-width: 680px)
{ 
	.squares .square { width: 50%; }

	#main-header .background { height: 260px; } 
}

@media screen and (max-width: 425px)
{
	.square .square-title { font-size: 20px; }
}








/* main: nearest training*/

#nearest-trainings { margin-top: 175px; }
@media screen and (max-width: 1024px) { #nearest-trainings { margin-top: 75px; } }














/* main: people */

#people-block{
	margin-bottom: 80px;
	margin-top: 80px;
}
.bg-image-cover{background-position:center center;
	background-repeat:no-repeat;
	-webkit-background-size:cover;
	-moz-background-size:cover;
	background-size:cover;
}
.relative{
	position:relative;
}

.filter-black-white{
	-webkit-filter:grayscale(100%);
	filter:grayscale(100%);
}
.wrapper-peoples{
	height: 910px;
}
.flex-center{
	display:-webkit-box;
	display:-webkit-flex;
	display:-moz-box;
	display:-ms-flexbox;
	display:flex;
	-webkit-box-align:center;
	-webkit-align-items:center;
	-moz-box-align:center;
	-ms-flex-align:center;
	align-items:center;
	-webkit-box-orient:horizontal;
	-webkit-box-direction:normal;
	-webkit-flex-flow:row wrap;
	-moz-box-orient:horizontal;
	-moz-box-direction:normal;
	-ms-flex-flow:row wrap;
	flex-flow:row wrap;
}
.wrapper-peoples__img{
	background:#343748;
	-webkit-box-flex:0;
	-webkit-flex:0 0 11.1111%;
	-moz-box-flex:0;-ms-flex:0 0 11.1111%;
	flex:0 0 11.1111%;
	cursor: default;;
	position:relative;
	height:25%;
	z-index:22;
	max-width:11.1111%;
	-webkit-transition:all .25s linear;
	-o-transition:all .25s linear;
	-moz-transition:all .25s linear;
	transition:all .25s linear;
	-webkit-filter:none;
	filter:none;
}
.wrapper-peoples__img .item{
	-webkit-transition:all .25s linear;
	-o-transition:all .25s linear;
	-moz-transition:all .25s linear;
	transition:all .25s linear;
}
.wrapper-peoples__img:hover{
	-webkit-box-shadow:0 0 17.2px 5px rgba(15,15,16,.51);
	-moz-box-shadow:0 0 17.2px 5px rgba(15,15,16,.51);
	box-shadow:0 0 17.2px 5px rgba(15,15,16,.51);
	z-index:23;
	-webkit-transform:scale(1.03);
	-moz-transform:scale(1.03);
	-ms-transform:scale(1.03);
	-o-transform:scale(1.03);
	transform:scale(1.03);
	-webkit-transition:all .25s linear;
	-o-transition:all .25s linear;
	-moz-transition:all .25s linear;
	transition:all .25s linear;
}
.wrapper-peoples__img:hover .item{
	-webkit-transition:all .25s linear;
	-o-transition:all .25s linear;
	-moz-transition:all .25s linear;
	transition:all .25s linear;
	-webkit-filter:none;
	filter:none;
	opacity:1;
}
.wrapper-peoples .item{
	position:relative;
	width:100%;
	height:100%;
	opacity:.35;
}
.wrapper-peoples .central-block{
	position:absolute;
	width:33.3333%;
	left:50%;
	top:50%;
	-webkit-transform:translateX(-50%) translateY(-50%);
	-moz-transform:translateX(-50%) translateY(-50%);
	-ms-transform:translateX(-50%) translateY(-50%);
	-o-transform:translateX(-50%) translateY(-50%);
	transform:translateX(-50%) translateY(-50%);
	height:50%;z-index:22;
	-webkit-transition:all .25s linear;
	-o-transition:all .25s linear;
	-moz-transition:all .25s linear;
	transition:all .25s linear;
	padding:20px;
}
.wrapper-peoples .central-block .rr{
	position:absolute;
	-webkit-box-shadow:0 0 17.2px 5px rgba(15,15,16,.51);
	-moz-box-shadow:0 0 17.2px 5px rgba(15,15,16,.51);
	box-shadow:0 0 17.2px 5px rgba(15,15,16,.51);
	top:50%;
	left:50%;
	-webkit-transform:translateX(-50%) translateY(-50%);
	-moz-transform:translateX(-50%) translateY(-50%);
	-ms-transform:translateX(-50%) translateY(-50%);
	-o-transform:translateX(-50%) translateY(-50%);
	transform:translateX(-50%) translateY(-50%);
	width:100%;
	height:100%;
	background-color:#3F51B5;
	-webkit-transition:all .25s linear;
	-o-transition:all .25s linear;
	-moz-transition:all .25s linear;
	transition:all .25s linear;
	cursor: pointer;
}
.wrapper-peoples .central-block:hover{
	color:#fff;
}
.wrapper-peoples .central-block:hover .rr{
	width:104%;
	height:104%;
}
.wrapper-peoples .central-block .h2{
	position:absolute;
	width:100%;
	margin:0;
	top:50%;
	left:50%;
	-webkit-transform:translateX(-50%) translateY(-50%);
	-moz-transform:translateX(-50%) translateY(-50%);
	-ms-transform:translateX(-50%) translateY(-50%);
	-o-transform:translateX(-50%) translateY(-50%);
	transform:translateX(-50%) translateY(-50%);
}

@media all and (max-width:1023px){
.wrapper-peoples .central-block:hover .rr{
	width:100%;
	height:100%;
}
.wrapper-peoples__img:hover{
	-webkit-transform:none;
	-moz-transform:none;
	-ms-transform:none;
	-o-transform:none;
	transform:none;
	-webkit-box-shadow:none;
	-moz-box-shadow:none;
	box-shadow:none;
	z-index:22;
}
.wrapper-peoples__img:hover .item{
	-webkit-filter:grayscale(100%);
	filter:grayscale(100%);
	opacity:.35;
	-webkit-box-shadow:none;
	-moz-box-shadow:none;
	box-shadow:none;
}

}
@media screen and (max-width:1399px){
.wrapper-peoples__img{
	-webkit-box-flex:0;
	-webkit-flex:0 0 14.2857%;
	-moz-box-flex:0;
	-ms-flex:0 0 14.2857%;
	flex:0 0 14.2857%;
	max-width:14.2857%;
}
.wrapper-peoples{
	height: 750px;
}
.wrapper-peoples__img:nth-last-child(-n+9){
	display:none;
}
.wrapper-peoples .central-block{
	width:42.8571%;
}
}
@media screen and (max-width:1023px){
.wrapper-peoples__img{
	-webkit-box-flex:0;
	-webkit-flex:0 0 16.6666%;
	-moz-box-flex:0;
	-ms-flex:0 0 16.6666%;
	flex:0 0 16.6666%;
	max-width:16.6666%;
}
.wrapper-peoples{
	height: 650px;
}
.wrapper-peoples__img:nth-last-child(-n+13){
	display:none;
}
.wrapper-peoples .central-block{
	width:66.6664%;
}
}
@media screen and (max-width:767px){
.wrapper-peoples__img{
	-webkit-box-flex:0;
	-webkit-flex:0 0 20%;
	-moz-box-flex:0;
	-ms-flex:0 0 20%;
	flex:0 0 20%;
	max-width:20%;
}
.wrapper-peoples{
	height: 550px;
}
.wrapper-peoples__img:nth-last-child(-n+17){
	display:none;
}
.wrapper-peoples .central-block{width:60%;}
}
@media screen and (max-width:479px){
.wrapper-peoples__img{
	-webkit-box-flex:0;
	-webkit-flex:0 0 25%;
	-moz-box-flex:0;
	-ms-flex:0 0 25%;
	flex:0 0 25%;
	max-width:25%;
}
.wrapper-peoples__img:nth-last-child(-n+21){display:none;}
.wrapper-peoples .central-block{
	width:auto;
	-webkit-transform:translateX(0) translateY(-50%);
	-moz-transform:translateX(0) translateY(-50%);
	-ms-transform:translateX(0) translateY(-50%);
	-o-transform:translateX(0) translateY(-50%);
	transform:translateX(0) translateY(-50%);
	left:15px;
	right:15px;
}
.wrapper-peoples{
	height: 450px;
}
}
#people-block h2{
	text-align: center;
	color: white;
	
    font-size: calc(1em + 2vw);
	cursor: pointer;
}






#free-activites .cards-primary .card .background {
	height: calc(100% - 100px);
}




