/* Extra small devices (phones, less than 768px) */
/* Small devices (tablets, 768px and up) */
@media (min-width: 768px){
	html body{
		padding-bottom: 48px;
	}
.type-page p{
		margin: 20px 0;
	}
	
	.people-list .item + .item{
		margin: 0;
	}
	.people-list .item:nth-child(3n) ~ .item{
		margin: 50px 0 0;
	}
	.people-list .item{
		width: 33%;
	}
	.people-list .item .image,
	.people-list .item .name{
		margin: 0;
	}
	.people-list .item .description{
		width: calc(100vw - 48px);
	}
	.people-list .item:nth-child(3n + 2) .description{
		transform: translateX(-34.3%);
	}
	.people-list .item:nth-child(3n + 3) .description{
		transform: translateX(-68.6%);
	}
	
	section.screen ~ section.screen{
		padding: 50px 0 0;
	}
	
	#header .topmenu .level-1 > li{
		width: 33%;
		display: inline-block;
		vertical-align: top;
	}
	#header .topmenu .level-1 > li:nth-child(3n) ~ li{
		margin-top: 15px;
	}
	#header .topmenu .level-2{
		padding: 0 5px;
		margin-top: 5px;
	}
	#header .topmenu .links{
		width: 49%;
		display: inline-block;
		vertical-align: top;
	}
	
	#footer{
		width: 100%;
		position: absolute;
		bottom: 0;
		left: 0;
	}
	#footer .copyright{
		float: left;
	}
	#footer .social{
		margin-top: 0;
		float: right;
	}
	
	.hdr.bus,
	.hdr.car{
		background: url(../images/bus.png) no-repeat left center;
		background-size: auto;
		color: #666;
		padding: 10px 0 10px 130px;
	}
	.hdr.car{
		background-image: url(../images/car.png);
	}
	
	#ontop{
		bottom: 70px;
	}
	#ontop a{
		width: 65px;
		height: 65px;
		font-size: 53px;
	}
	#ontop.active a{
		
	}
}

/* Medium devices (desktops, 992px and up) */
@media (min-width: 992px){
	#header .topmenu .links .link-forum{
		margin-top: 0;
	}

	.mobile-menu-button{
		display: none;
	}
	
	.metro{
		margin-top: 0;
	}
	.way-block-items{
		margin-top: 40px;
	}
	
	.people-list .item .description{
		display: none;
		border: #d7d7d7 2px solid;
		width: 600px;
		max-height: none;
		min-height: 155px;
		opacity: 1;
		padding: 0 25px 0 260px;
		margin: 0;
		position: absolute;
		top: -15px;
		left: -15px;
		z-index: 5;
	}
	.people-list .item:nth-child(3n + 1) .description,
	.people-list .item:nth-child(3n + 2) .description{
		transform: none;
	}
	.people-list .item:nth-child(3n + 3) .description{
		padding: 0 260px 0 25px;
		right: 50px;
		left: auto;
		transform: none;
	}
	.people-list .item:hover .description{
		display: block;
	}
	
	#header .logo{
		background: url(../images/logo.svg) no-repeat;
		width: 160px;
		height: 210px;
		top: 20px;
		left: 50%;
		transform: translateX(-470px);
	}
	
	#header .topmenu{
		opacity: 1;
		display: block;
		height: auto;
		min-height: 0;
		padding: 85px 0 0 200px;
		position: static;
		box-shadow: none;
	}
	#header .topmenu li a:after,
	#header .topmenu-area:after{
		display: none;
	}
	#header .topmenu .level-1{
		display: flex;
		justify-content: space-between;
		position: relative;
	}
	#header .topmenu .level-1 > li{
		width: auto;
		line-height: 6;
	}
	#header .topmenu .level-1 > li:nth-child(3n) ~ li{
		margin-top: 0;
	}
	#header .topmenu .level-1 > li > a{
		border: 1px solid transparent;
		color: #81b1cb;
		height: 100%;
		font-size: 30px;
		display: inline-block;
		text-align: center;
		vertical-align: middle;
		text-decoration: underline;
		padding: 10px;
		line-height: 0.9;
		border-radius: 3px;
		position: relative;
	}
	#header .topmenu .level-1 > li:not(.with-span) > a:before{
		content: '';
		height: 100%;
		display: inline-block;
		vertical-align: middle;
	}
	#header .topmenu .level-1 > li > a:hover,
	#header .topmenu .level-1 > li > a:focus{
		background-color: #81b1cb;
		color: #fff;
		border-radius: 3px;
	}
	#header .topmenu .level-1 > li.selected > a{
		color: #81b1cb;
		border-color: #81b1cb;
		text-decoration: none;
	}
	#header .topmenu .level-1 > li.selected > a:hover,
	#header .topmenu .level-1 > li.selected > a:focus{
		color: #fff;
		border-color: #81b1cb;
	}
	#header .topmenu .level-1 > li.with-childs > ul{
		display: none;
	}
	#header .topmenu .level-1 > li.with-childs.active > ul{
		display: block;
	}
	#header .topmenu .level-1 > li.with-childs.active > a:after{
		content: '';
		border: transparent 8px solid;
		border-bottom: #81b1cb 8px solid;
		display: block;
		position: absolute;
		top: 100%;
		left: 50%;
		transform: translateX(-50%);
	}
	#header .topmenu .level-1 > li > a span{
		font-size: 20px;
		vertical-align: middle;
	}
	#header .topmenu .level-1 > li > a span:before{
		content: '';
		display: block;
	}
	#header .topmenu .level-2{
		background: #81b1cb;
		width: 100%;
		margin-top: 15px;
		padding: 0;
		overflow: hidden;
		position: absolute;
		line-height: 1.5;
		top: 75px;
		left: 0;
		border-radius: 3px;
	}
	#header .topmenu .level-2 li{
		display: inline-block;
		padding: 0 1px;
	}
	#header .topmenu .level-2 a{
		color: #fff;
		display: inline-block;
		padding: 2px 16px 3px;
		font-size: 16px;
		text-transform: uppercase;
		text-decoration: underline;
		border-radius: 3px;
	}
	#header .topmenu .level-2 a:hover{
		text-decoration: none;
	}
	#header .topmenu .level-2 .selected a{
		background: #fff;
		border-top: #89b2ce 1px solid;
		border-bottom: #89b2ce 1px solid;
		color: #89b2ce;
		text-decoration: none;
	}
	#header .links{
		display: flex;
		justify-content: space-between;
		margin-right: -485px;
		margin-left: -280px;
		position: absolute;
		top: 35px;
		right: 50%;
		left: 50%;
	}
	#header .links a{
		padding: 0px 10px 4px;
	}
	#header .links a:hover,
	#header .links a:focus{
		background-color: #81b1cb;
		color: #fff;
	}
	#header .links div ~ div ~ div a:hover{
		background-color: #dd906c;
		color: #FFF;
	}
	#header .links div:last-of-type:hover a:not(.phone){
		background-color: #f6e085;
		color: #000;
	}
	#header .links div .phone-item{
		transform: translateY(-15px);
	}
	#header .social{
		white-space: nowrap;
		margin-top: -10px;
	}
	#header .social a{
		background-color: transparent !important;
	}
	#header .social a:hover{
		transform: scale(1.2);
	}
	
	.hdr{
		font-size: 30px;
		text-align: left;
		margin: 30px 0 20px;
	}
	.hdr.blue{
		font-size: 25px;
	}
	.main-hdr{
		margin: 120px 0 0;
	}
	section.screen p,
	section.screen u,
	section.screen ol{
		margin: 30px 0 0;
	}
	
	.main-products{
		margin: 0 -15px 50px;
	}
	.main-products a{
		width: calc(25% - 35px);
	}
	.main-products a.png:hover .figure .fg-1,
	.main-products a.png:focus .figure .fg-1{
		opacity: 1;
		bottom: 25%;
		left: 25%;
		transform: scale(3) rotate(400deg);
	}
	.main-products a.png:hover .figure .fg-2,
	.main-products a.png:focus .figure .fg-2{
		opacity: 1;
		bottom: 23.3%;
		left: 25%;
		transform: scale(3.2) rotate(400deg);
	}
	.main-products a.png .figure.star-5 .fg-1,
	.main-products a.png .figure.star-5 .fg-2{
		clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
	}
	.main-products a.png .figure.star-6 .fg-1,
	.main-products a.png .figure.star-6 .fg-2{
		clip-path: polygon(25% 8%, 50% 25%, 75% 8%, 72% 38%, 100% 50%, 72% 62%, 75% 92%, 50% 75%, 25% 92%, 28% 62%, 0 50%, 28% 38%);
	}
	.main-products a.png .figure.flash .fg-1,
	.main-products a.png .figure.flash .fg-2{
		clip-path: polygon(25% 0, 80% 36%, 55% 57%, 75% 100%, 33% 56%, 60% 38%);
	}
	.main-products a.png .figure.flash-2 .fg-1,
	.main-products a.png .figure.flash-2 .fg-2{
		clip-path: polygon(30% 0, 83% 49%, 73% 57%, 96% 100%, 43% 51%, 53% 33%);
	}
	.main-products a.png .figure.triangle .fg-1,
	.main-products a.png .figure.triangle .fg-2{
		clip-path: polygon(50% 0, 33% 100%, 67% 100%);
	}

	.main-products a.png .frame{
		background: rgba(255,255,255,0.5);
		width: 56%;
		height: 56%;
		overflow: hidden;
		position: absolute;
		bottom: 0;
		left: 0;
		z-index: 5;
		transition: all 0.5s ease;
		border-radius: 18px;
		pointer-events: none;
	}
	.main-products a.png:hover .frame{
		width: 70%;
		height: 70%;
	}
	.main-products a.png .frame .fr-1{
		background-size: 21.6px 21.6px;
		background-repeat: repeat;
		background-position: 10px 1px, 20.4px 11.4px;
		width: 150%;
		height: 150%;
		display: block;
		opacity: 0;
		position: absolute;
		top: 50%;
		left: 50%;
		z-index: 2;
		transform: translate(-50%,-50%) rotate(-8deg);
		transition: all 0.5s ease;
	}
	.main-products a.png .frame .fr-2,
	.main-products a.png .frame .fr-3{
		border: #000 5px solid;
		width: 100%;
		height: 100%;
		opacity: 0;
		position: absolute;
		top: 0;
		left: 0;
		z-index: 3;
		border-radius: 18px;
		box-sizing: border-box;
	}
	.main-products a.png .frame .fr-3{
		opacity: 1;
	}
	.main-products a.png:hover .frame .fr-1,
	.main-products a.png:focus .frame .fr-1,
	.main-products a.png:hover .frame .fr-2,
	.main-products a.png:focus .frame .fr-2{
		opacity: 1;
	}
	.main-products a.png:hover .frame .fr-3,
	.main-products a.png:focus .frame .fr-3{
		opacity: 0;
	}
}

/* Large devices (large desktops, 1200px and up) */
@media (min-width: 1200px){
	.people-list .item{
		width: 25%;
	}
	.people-list .item:nth-child(3n) ~ .item{
		margin: 0;
	}
	.people-list .item:nth-child(4n) ~ .item{
		margin: 50px 0 0;
	}
	.people-list .item:nth-child(4n + 1) .description,
	.people-list .item:nth-child(4n + 2) .description{
		padding: 0 25px 0 260px;
		right: auto;
		left: -15px;
		transform: none;
	}
	.people-list .item:nth-child(4n + 3) .description,
	.people-list .item:nth-child(4n + 4) .description{
		padding: 0 260px 0 25px;
		right: 50px;
		left: auto;
		transform: none;
	}
	
	#header .logo{
		transform: translateX(-570px);
	}
	#header .topmenu .level-2 a{
		padding: 2px 20px 3px;
	}
	#header .links{
		margin-right: -585px;
		margin-left: -380px;
	}
	#header .links div .phone-item{
		display: inline-block;
		transform: none;
	}
	#header .links div .phone-item ~ .phone-item{
		
		margin-left: 15px;
	}
}

@media (min-width: 1366px){
	.to-print{
		margin-top: 0;
	}
	.to-print a{
		position: absolute;
		top: 0;
		right: -95px;
	}
	.address-block.to-print-area .to-print a{
		top: 20px;
	}
	.map-block-image.to-print-area .to-print a{
		top: 30px;
	}
}
@media (min-width: 1400px){
	.to-print a{
		right: -110px;
	}
}

@media (min-width: 1750px){
	.main-hdr{
		margin: 80px 0 0;
	}
	
	#header .logo{
		width: 200px;
		height: 286px;
		top: 40px;
		left: calc((100vw - 1170px) / 4);
		transform: translateX(-50%);
	}
	#header .topmenu{
		padding: 25px 0 0;
	}
	#header .links{
		display: block;
		width: auto;
		text-align: right;
		margin: 0;
		position: absolute;
		top: 30px;
		right:calc((100vw - 1170px) / 4);
		left: auto;
		transform: translateX(50%);
	}
	#header .links div .phone-item{
		display: block;
		margin-top: 0;
	}
	#header .social{
		margin-top: 0;
	}
	
	.type-page .section-menu{
		width: 200px;
		position: absolute;
		top: 380px;
		left: calc((100vw - 1170px) / 4);
		transform: translateX(-50%);
	}
	.type-page .section-menu .name{
		display: block;
		background: #dd906c;
		color: #fff;
		padding: 3px 10px;
	}
	.type-page .section-menu ul{
		margin: 0;
	}
	.type-page .section-menu li{
		display: block;
		list-style: none;
		margin: 2px 0 0;
	}
	.type-page .section-menu li i{
		display: none;
	}
	.type-page .section-menu li a{
		padding: 3px 10px;
	}
	.type-page .section-menu li.depth-2 a{
		padding-left: 20px;
	}
	.type-page .section-menu li.depth-3 a{
		padding-left: 30px;
	}
	.type-page .section-menu li.depth-4 a{
		padding-left: 40px;
	}
	.type-page .section-menu li a span{
		font-size: 20px;
		vertical-align: top;	
	}
	.type-page .section-menu li a:hover{
		background: #dd906c;
		color: #fff;
	}
	
}