/*
Theme Name: Dev40ru
Author: Dev40ru
Author URI: https://dev40.ru/
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Version: 1.00
Requires at least: 4.7
Requires PHP: 5.6
Description: 
Tags: blog, one-column, custom-background, custom-colors, custom-logo, custom-menu, editor-style, featured-images, theme-options, block-styles, wide-blocks, accessibility-ready
Text Domain: dev40.ru
*/

/**
 * Table of Contents:
 * 1.0 GENERAL
 * 2.0 HEADER
 *   2.1 MAIN MENU
 *   2.2 MOBILE MENU
 * 3.0 CONTENT
 *  3.1 SLIDER
	3.2 FORM
 * 4.0 FOOTER
 * 6.0 PORTFOLIO AREA
 * 7.0 MEDIA QUERIES
 * --------------------------------------
*/

/*----------------------
1.0 GENERAL
-----------------------*/
html, body {
	padding: 0;
	margin: 0;
	color: #1d1c28;
	font-family: "Montserrat", sans-serif;
}
*, *:after, *:before  {
	box-sizing: border-box;
}
*, *:after, *:before, a:focus, button:focus  {
	outline: none;
}
div, article, section, header, footer {
	position: relative;
}
a {
	color: #001F37;
	-ms-transition: all 0.3s ease-out;
	transition: all 0.3s ease-out;
}
a,
a:hover {
	text-decoration: none;
}
h1, h2, h3, h4, h5, h6 {
	font-family: "Montserrat", sans-serif;
	font-weight: 600;
	margin-bottom: 32px;
	color: #1d1c28;
}
h1 {
	font-size: 48px;
	line-height: 52px;
}
h2 {
	font-size: 32px;
	line-height: 36px;
}
h3 {
	font-size: 45px;
}
h4 {
	font-size: 40px;
}
h5 {
	font-size: 27px;
	margin-bottom: 0;
}
h6 {
	font-size: 16px;
	margin-bottom: 0;
}
img {
	max-width: 100%;
	height: auto;
}
p {
	margin-bottom: 24px;
}
small {
	font-size: 0.875;
}
ol, ul {
	padding-left: 24px;
}
/*----------------------
2.0 HEADER
-----------------------*/
#main-header {
    position: fixed;	
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1001;
	background: #dddddd;
}
body.home #main-header {

}
body.home.menu-open #main-header {
	background-color: #ffffff;
}
body.admin-bar #main-header {
    position: fixed;
	top: 32px;
	background: #dddddd;
}
body:not(.home) #main-header {

}
#main-header .wrapper {
	height: 100%;
	max-width: 1264px;
    padding: 10px 64px;
    align-items: center;
    margin: 0px auto;

}

.site-logo {
    min-width: 240px;
    border-right: 1px solid #b94f4d;
    display: flex;
    align-items: center;
	margin-right: 20px;
}
.site-logo img {
	height: 30px;
	margin: 0px 15px;
}
body.menu-open .site-logo{
	left: 50%;
	transform: translateX(-50%);
}
.site-logo a {
	display: block;
	font-family: "Montserrat", sans-serif;
	font-size: 26px;
	font-weight: 200;
	text-transform: uppercase;
	color: #ffffff;

}
.link-ln {
	margin: 5px 8px 12px 7px;
}

/*
 * 2.1 MAIN MENU
*/
.main-menu {
	max-width: 1124px;
	width: calc(100vw - 610px);
	justify-content: flex-start;
}
.main-menu a {
	margin: 0px 20px;
	font-family: "Montserrat", sans-serif;
	font-size: 16px;
	font-weight: 500;
	text-transform: uppercase;
	color: #b94f4d;
}
.main-menu a:hover {
	border-bottom: 1px solid #b94f4d;
}


/*
 * 2.2 MOBILE MENU
*/
.icon-menu-mobile {
    width: 50px;
    height: 54px;
    color: #b94f4d;
    border: 1px solid #e8e8e8!important;
    border-radius: 4px!important;
    font-size: 22px;
    cursor: pointer;
    -ms-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out
}

.icon-menu-mobile:hover {

}

.icon-menu-mobile span {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%
}
body.menu-open {
	overflow: hidden;
}
.mobile-menu-wrapper {
	position: fixed;
	top: 78px;
	left: 0;
	width: 100vw;
	height: calc(100vh - 155px);
	padding: 32px;
	background: #fff;
	overflow: auto;
	scrollbar-color: #e3e3e3 #fff;
	scrollbar-width: thin;
	z-index: 9999;
}
.mobile-menu {
	flex-direction: column;
	gap: 20px;
}
.mobile-menu a {
	color: rgba(0,0,0,.85);
	line-height: 2;
}
.mobile-menu > li > a {
	font-size: 20px;
	text-transform: uppercase;
}
.mobile-menu  li.current-menu-item > a {
	color: #3538b7;
}
/*----------------------
3.0 CONTENT
-----------------------*/
.main {
	max-width: 100vw;
	overflow: hidden;
/*	padding-top: 70px;*/
}
body.home .main {
	padding-top: 0;
}
.wp-block-cover {
	padding: 0px 64px;
	overflow: hidden;
}

.wp-block-group {
	max-width: 1264px;
    padding: 10px 64px;
    margin: 0px auto;
}

.wrapper {
	padding: 0 65px;
}
.c-primary {
	color: #006F8A;
}
.d-mobile {
	display: none;
}

.wp-block-group__inner-container {
	max-width: 1228px;
	margin: 0px auto;
	padding: 0px;
}
.hero-columns {
	
}

.page-title,
.wp-block-group p {

}
.page-title {
	position: relative;
	overflow: hidden;
}
.page-title::after {
	position: absolute;
	content: '';
	bottom: 20px;
	width: 80%;
	height: 5px;
	background: #001F37;
}

.fit-content {
	width: fit-content;
	block-size: fit-content;
}
.mb-16 {
	margin-bottom: 16px;
}
.mb-32 {
	margin-bottom: 32px;
}
.wp-block-media-text {
	margin-top: 200px;
}
.wp-block-media-text:not(.has-media-on-the-right) .wp-block-media-text__content {
	padding-right: 138px;
}
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content {
	padding-left: 138px;
}
.wp-block-media-text p {
	padding-top: 72px;
}
.wp-block-media-text.is-vertically-aligned-top p {
	padding-top: 0;
	padding-bottom: 72px;
}
.wp-block-media-text p:before {
	position: absolute;
	left: 0;
	top: 0;
	display: block;
	content: '';
	width: 140px;
	height: 8px;
	background: #001F37;
}
.wp-block-media-text p.has-text-align-right:before {
	left: auto;
	right: 0;
}
.wp-block-media-text.is-vertically-aligned-top p:before {
	bottom: 0;
	top: auto;
}
.full-height {
	min-height: calc(100vh - 104px);
}
h1.blog-title {
	padding: 80px 64px 32px;
    font-weight: 400;
	font-size: 36px;
    font-family: Montserrat;
    color: #b94f4d;
}
.single-portfolio .wrapper {
	max-width: 1228px;
	margin: 0px auto;
	padding: 0px 0px;
}
.single-cats {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.single-cats .portfolio-title {
    min-height: 49px;
    padding-left: 67px;
    margin-top: 16px;
    background-size: 49px;
    background-repeat: no-repeat;
    background-position: left top;
}
.portfolio-item-cats {
	display: flex;
	gap: 20px;
	align-items: center;
	margin-top: 16px;
}
.portfolio-item-cat-item {
	display: flex;
	align-items: center;
}
.portfolio-item-cat-icon{
    width:16px;
    height:16px;
	margin-right: 8px;
    border-radius:50px;
    font-size:20px;
    line-height:100px;
    text-align:center;
}
.portfolio-item-cat-name{
    font-family: "Montserrat", serif;
	font-size: 14px;
	line-height: 21px;
  	font-weight: 400; 
	color: #3C3C3C;
}
.single-portfolio  .portfolio-image {
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 20px;
	margin: 47px 0px 64px;
	width: 100%;
	min-height: 600px;
}
.single-portfolio .wp-block-image img {
    border-radius: 20px;
}
.single-portfolio iframe.rsfv-video {
    border-radius: 20px;
}
.single-portfolio  p {
    max-width: 808px;
}
.recent-portfolio {
    width: 100%;
	background-image:  url('/wp-content/themes/wgc/images/border_top_blue_white.png'),  url('/wp-content/themes/wgc/images/border_bottom_blue_grey.png'), url('/wp-content/themes/wgc/images/swirl-background-blue-light.png');
	background-repeat: no-repeat, no-repeat, repeat;
	background-position: top, bottom, center;
	background-size: contain, contain;
	padding: 311px 0px;
	margin-top: 64px;
}
.recent-portfolio-inner {
	display: flex;
    flex-wrap: wrap;
	max-width: 1228px;
	margin: 0px auto;
}
.recent-title {
	font-family: "Abril Fatface", serif;
	font-size: 32px;
	line-height: 36px;
  	font-weight: 400;
	color: #3C3C3C;
	text-align: left;
	max-width: 1228px;
	margin: 24px auto;
}
.recent-portfolio .portfolio-item {
    width:calc(100% / 3);
    margin: 20px auto;
}
.recent-portfolio .portfolio-image {
    width: 380px;
    height: 250px;
    background-size: cover;
    background-repeat: no-repeat;
    border-radius: 20px;
	margin: 16px 0px 32px;
	min-height: auto;
}
.recent-portfolio .portfolio-title {
    width: 100%;
    min-height: 49px;
    padding-left: 67px;
    margin-top: 16px;
    background-size: 49px;
    background-repeat: no-repeat;
    background-position: left top;
}
.recent-portfolio .portfolio-title a {
    font-family: "Noto Sans", serif;
	font-size: 18px;
	line-height: 24px;
  	font-weight: 600; 
}
.recent-portfolio iframe.rsfv-video {
    width: 380px !important;
    height: 250px !important;
    border-radius: 20px;
}
/*
 * 3.2 FORM
*/
.wp-block-contact-form-7-contact-form-selector,
.wpcf7-form-control-wrap {
	display: flex;
	justify-content: center;
}
.wpcf7 {
	width: 100%;
}
.wpcf7-form {
	display: flex;
    gap: 24px;
	justify-content: center;
}
.wpcf7-form p {
	margin-bottom: 16px;
}
.wpcf7-form .col-left, .wpcf7-form .col-right {
	width: 50%;
} 
.wpcf7-form label {
	width: 100%;
}
.wpcf7-form .small {
	font-size: 20px;
}
.wpcf7-form input,
.wpcf7-form textarea {
	max-width: 100%;
	width: 100%;
	height: 56px;
	padding: 5px 5px 5px 15px;
	background-color: #D2E9F6;
	border: 0;
	border-radius: 12px;
	text-align: left;
	font-weight: 300;
	color: #001F37;
}
.wpcf7-form textarea {
	padding: 8px 16px;
    min-height: 210px;
}
.wpcf7-form hr {
	margin-top: 57px;
	margin-bottom: 20px;
	border-top: 1px solid #001F37;
	opacity: 1;
}
::-webkit-input-placeholder{
	color: #001F37;
}
::placeholder {
	opacity: 1;
}
.wpcf7-form input.wpcf7-submit {
	width: 150px;
    height: 56px;
    line-height: 20px;
    color: #fff;
    background: #2190D1;
    border: 0;
    text-align: center;
    letter-spacing: 0.1em;
    margin-top: 24px;
	padding: 16px 24px;
	border-radius: 32px;
    font-weight: 400;
}
.wpcf7-not-valid-tip {
	position: absolute;
	top: 47px;
	right: 0;
	font-size: 16px;
}
.cf_maxchar {
	font-size: 14px;
	line-height: 21px;
	margin-top: 16px;
	display: block;
}
/*----------------------
4.0 FOOTER
-----------------------*/
#main-footer {
	background: #0D47A1;
	font-family: "Noto Sans", sans-serif;
	font-size: 18px;
	line-height: 27px;
	font-weight: 400;
	color: #ffffff;
}
#main-footer .wrapper {
    max-width: 1264px;
    padding: 10px 64px;
	margin: 0px auto;
    align-items: center;
	justify-content: space-between;
}
.footer-logo img {
	height: 50px;
}
#main-footer .address-title, #main-footer .contact-title {
	font-family: "Noto Sans", sans-serif;
	font-size: 18px;
	line-height: 24px;
	font-weight: 700;
	color: #ffffff;
	margin-bottom: 16px;
}
#main-footer .address, #main-footer .contact {
	font-family: "Noto Sans", sans-serif;
	font-size: 18px;
	line-height: 34px;
	font-weight: 400;
	color: #ffffff;
}
#main-footer .address a, #main-footer .contact a {
	font-family: "Noto Sans", sans-serif;
	font-size: 18px;
	line-height: 34px;
	font-weight: 400;
	color: #ffffff;
}

#back-to-top {
    position: fixed;
    outline: none;
    bottom: 60px;
    right: 32px;
	width: 64px;
	height: 64px;
	cursor: pointer;
	z-index: 10000;
	background-image: url("data:image/svg+xml,%3Csvg version='1.1' id='Livello_1' xmlns:cc='http://creativecommons.org/ns%23' xmlns:inkscape='http://www.inkscape.org/namespaces/inkscape' xmlns:dc='http://purl.org/dc/elements/1.1/' xmlns:svg='http://www.w3.org/2000/svg' xmlns:sodipodi='http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd' xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='21 -22.3 100 100' style='enable-background:new 21 -22.3 100 100;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:url(%23SVGID_1_);stroke:%23656565;stroke-width:2;stroke-miterlimit:10;%7D .st1%7Bfill:%23656565;%7D%0A%3C/style%3E%3CradialGradient id='SVGID_1_' cx='71' cy='27.69' r='37.6397' gradientUnits='userSpaceOnUse'%3E%3Cstop offset='0' style='stop-color:%23FFFFFF;stop-opacity:0.5'/%3E%3Cstop offset='1' style='stop-color:%23FFFFFF;stop-opacity:0.5'/%3E%3C/radialGradient%3E%3Ccircle class='st0' cx='71' cy='27.7' r='37.6'/%3E%3Cg%3E%3Cg transform='translate(50 50) scale(0.69 0.69) rotate(0) translate(-50 -50)'%3E%3Cg transform='translate(0,-952.36218)'%3E%3Cpath class='st1' d='M80,952.8c-0.7,0.1-1.4,0.4-1.9,0.9l-28.6,27.5c-1.4,1.2-1.6,3.4-0.4,4.8c1.2,1.4,3.4,1.6,4.8,0.4 c0.1-0.1,0.2-0.2,0.3-0.3L80.4,961l26.2,25.2c1.3,1.4,3.5,1.5,4.9,0.2c1.4-1.3,1.5-3.5,0.2-4.9c-0.1-0.1-0.2-0.2-0.3-0.3 l-28.6-27.5C82,953,81,952.7,80,952.8z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
#back-to-top img {
    width: 64px;
	height: 64px;
}

/*----------------------
7.0 MEDIA QUERIES
-----------------------*/
@media only screen and (max-width: 1400px) {
	.wp-block-media-text[style="grid-template-columns:auto 63%"] { grid-template-columns: auto 50% !important; }
	.wp-block-media-text[style="grid-template-columns:63% auto"] { grid-template-columns: 50% auto !important; }
}
@media only screen and (max-width: 1200px) {
	#main-header .wrapper,
	.wp-block-cover,
	.wp-block-group,
	.wrapper,
	#main-footer .wrapper { padding-left: 16px; padding-right: 16px; }
		body:not(.home) #header-border {
		height: 160px;
		background-size: 100% 120px;
	}
	.main {
		padding-top: 100px;
	}
	.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content { padding-left: 64px; }
	.wp-block-media-text:not(.has-media-on-the-right) .wp-block-media-text__content { padding-right: 64px; }
	.site-logo { left: 64px;}
	.link-ln { right: 64px; }
	.main-menu { width: calc(100vw - 400px);}
	.wp-block-cover { padding-top: 100px; padding-bottom: 100px; }
	.single-portfolio .wrapper {
		max-width: 100%;
		padding: 0px 16px !important;
	}
	.single-portfolio .portfolio-image {
		min-height: 250px;
	}	
	.recent-portfolio {
		padding: 180px 16px;
	}
	.recent-portfolio .portfolio-item {
		width: calc(100% / 2);
		margin: 20px auto;
	}
	
}
@media only screen and (max-width: 1080px) {
	body:not(.home) #main-header { position: relative; top: 0; }


	
}
@media only screen and (max-width: 820px) {


}
@media only screen and (max-width: 768px) {
	html, body { font-size: 18px; }
	#main-header { height: 78px; }
	.main { padding-top: 48px; }
	.site-logo {
		width: 114px;
        top: 15px;
	}
	.wp-block-group {
        padding-left: 10px;
        padding-right: 10px;
    }
	.wp-block-group.contact {
        padding-left: 16px;
        padding-right: 16px;
    }
	h1, h2, h3, h4, h5, h6 { margin-bottom: 12px; }
	h1 { 
		font-size: 32px !important;
		line-height: 35px !important;
	}
	h2 { 
		font-size: 27px !important;
		line-height: 29px !important;
	}
	h3 { font-size: 25px; }
	h4 { font-size: 27px; }
	p { margin-bottom: 38px; }
	.d-mobile { display: block; }
	
	#main-header .wrapper { 
		padding-left: 8px;
		padding-right: 8px;
		
	}
	body:not(.home) #main-header {

	}
	body:not(.home) #header-border {

	}
	#wpadminbar, .main-menu {
        display: none;
    }
    .icon-menu-mobile {
        display: block !important;
    }
	.wpcf7 { width: 100%; }
	.wpcf7-form {
		display: flex;
		flex-direction: column;
		gap: unset;
        justify-content: flex-start;
		margin-bottom: 48px;
	}
	.wpcf7-form .col-left, .wpcf7-form .col-right {
		width: 100%;
	}
	.contact p{
		font-size: 16px !important;
		line-height: 24px !important;
	}
	.cf_maxchar {
		font-size: 12px;
		line-height: 18px;
	}
	footer .wrapper {
		flex-direction: column;
	}
	#main-footer .wrapper {
		padding: 24px 16px;
	}
	#main-footer .address, #main-footer .contact, #main-footer .links {
		margin-top: 32px;
	}
	#bottom-footer .wrapper {
		padding: 24px 16px;
	}
	.back-to-top-link {
		bottom: 30px;
		right: 17px;
	}

}
@media only screen and (max-width: 600px) {
	.wp-block-media-text.has-media-on-the-right .wp-block-media-text__content { padding-left: 24px; }
	.wp-block-media-text:not(.has-media-on-the-right) .wp-block-media-text__content { padding-right: 24px; }
	.site-logo { left: 24px;}
	.wp-block-media-text { display: flex; flex-direction: column; margin-top: 34px; }
	.wp-block-media-text__content { order: 1; }
	.wp-block-media-text__media { order: 2; }
	.wp-block-media-text p { padding-top: 20px; padding-bottom: 34px; }
	.wp-block-media-text p.has-text-align-right { padding-top: 20px; padding-bottom: 54px; }
	.wp-block-media-text p.has-text-align-right::before { display: none; }
	.wp-block-media-text.is-vertically-aligned-top p::before { bottom: auto; top: 0;  }
	.wp-block-media-text.is-vertically-aligned-top p { padding-top: 20px; padding-bottom: 32px; }

	#main-footer { padding: 10px 0; }
	.asset { font-size: 8.22px; }
	.slick-track { gap: 27px; }
	.mb-6 { margin-bottom: 50px; }

}
@media only screen and (max-width: 480px) {

}