/*!
Theme Name: untheme
Theme URI: http://underscores.me/
Author: Underscores.me
Author URI: http://underscores.me/
Description: Description
Version: 1.0.0
Tested up to: 5.4
Requires PHP: 5.6
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: untheme
Tags: custom-background, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready

This theme, like WordPress, is licensed under the GPL.
Use it to make something cool, have fun, and share what you've learned.

untheme is based on Underscores https://underscores.me/, (C) 2012-2020 Automattic, Inc.
Underscores is distributed under the terms of the GNU GPL v2 or later.

Normalizing styles have been helped along thanks to the fine work of
Nicolas Gallagher and Jonathan Neal https://necolas.github.io/normalize.css/
*/

/*--------------------------------------------------------------
>>> TABLE OF CONTENTS:
----------------------------------------------------------------
# Generic
	- Normalize
	- Box sizing
# Base
	- Typography
	- Elements
	- Links
	- Forms
## Layouts
# Components
	- Navigation
	- Posts and pages
	- Comments
	- Widgets
	- Media
	- Captions
	- Galleries
# plugins
	- Jetpack infinite scroll
# Utilities
	- Accessibility
	- Alignments

--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Generic
--------------------------------------------------------------*/

/* Normalize
--------------------------------------------- */

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
	 ========================================================================== */
/* @import url(https://fonts.googleapis.com/css?family=Montserrat:300,regular,500,600,700,900&display=swap); */

@charset "UTF-8";




/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */




/**
 * Render the `main` element consistently in IE.
 */


/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */
h1 {
	font-size: 2em;
	margin: 0.67em 0;
}

/* Grouping content
	 ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */


/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */
pre {
	font-family: monospace, monospace;
	font-size: 1em;
}

/* Text-level semantics
	 ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

/*--------------------------------------------------------------
# Layouts
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/




/**HEADER**/

.site-header__right {
	width: calc(50% + 170px);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 15px;
}

.site-branding {
	display: flex;
	flex-direction: row;
	gap: 20px;
	align-items: center;
	position: relative;
	z-index: 50;
}

/* header.site-header.dark {
  background: rgba(31,31,31,.85);
} */

header.site-header.dark .fixed-container .header-nav ul li a,
.site-header.header-scroll .fixed-container .header-nav ul li a {
	color: var(--black);
}

header.site-header.dark .fixed-container .site-branding a img,
header.site-header.header-scroll .fixed-container .site-branding a img {
	filter: brightness(0);
}

header.site-header.dark .fixed-container .header-contacts .our-contacts div .messengers-list .messengers-list__item,
header.site-header.header-scroll .fixed-container .header-contacts .our-contacts div .messengers-list .messengers-list__item {
	background: var(--accent);
}

header.site-header.dark .fixed-container .header-contacts .our-contacts div .messengers-list .messengers-list__item,
header.site-header.dark .fixed-container .header-contacts .our-contacts div .socials-list .messengers-list__item,

header.site-header.header-scroll .fixed-container .header-contacts .our-contacts div .messengers-list .messengers-list__item,
header.site-header.header-scroll .fixed-container .header-contacts .our-contacts div .socials-list .messengers-list__item {
	background: var(--light);
	border: 2px solid var(--accent);
}

.site-header.header-scroll .fixed-container .header-right .menu-toggle .bar {
	background: var(--black);
}

.header-right {
	display: flex;
	gap: 30px;
	align-items: center;
	position: relative;
	z-index: 100;
}


ul.menu {
	display: flex;
	list-style: none;
	color: #fff;
	gap: 30px;
}

ul.menu li a {
	position: relative;
	padding-bottom: 3px;
	display: block;
	text-decoration: none;
	color: #fff;
	font-size: 24px;
}

ul.menu li a:after {
	content: '';
	width: 0;
	height: 1px;
	background: var(--light-grey);
	position: absolute;
	left: 0;
	bottom: 0;
	transition: all .5s ease-in-out;
}

ul.menu li a:hover:after {
	width: 100%;
}

ul.menu li a:hover {
	color: rgba(255, 255, 255, .7);
}

ul.menu li .dropdown-menu li a:hover {
	background: transparent;
}

.current-menu-item>a {
	color: var(--yellow);
}

.dropdown-menu {
	display: none;
	position: absolute;
	top: 99%;
	left: 0;
	background: var(--blue);
	padding: 0;
	border-radius: 0;
	overflow: hidden;
	list-style: none;
	margin: 0;
	min-width: 100%;
	z-index: 200;
	width: 100%;
}

.dropdown-menu li a {
	border-bottom: 1px solid var(--yellow);
}

.dropdown-menu li:last-child {
	margin-bottom: 0;
}

.site-branding h1 {
	margin-top: -10px;
}

.messengers-list a.messengers-list__item,
.socials-list a.messengers-list__item {
	width: 40px;
	height: 40px;
	display: block;
	padding: 10px;
	background: #fff;
	border-radius: 100%;
}

.messengers-list,
.socials-list {
	display: flex;
	gap: 20px;
}

.messengers-list__item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

.header-contacts .our-contacts div h4 {
	display: none;
}

.header-contacts .our-contacts {
	display: flex;
	gap: 20px;
}

header.site-header {
	position: fixed;
	width: 100%;
	padding: 20px 0;
	z-index: 500;
}

.site-header.header-scroll .fixed-container .site-branding a.custom-logo-link {
	height: 40px;
	width: 40px;
}

.site-header.header-scroll {
	padding: 10px 0;
}

.site-header .fixed-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.header-main .fixed-container {
	justify-content: space-between;
}

/* Navigation
--------------------------------------------- */
.main-navigation {
	display: flex;
	justify-content: flex-end;
	gap: 20px;
}

.main-navigation ul {
	display: flex;
	list-style: none;
	gap: 20px;
	margin: 0;
	padding-left: 0;
}

.main-navigation ul ul {
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
	float: left;
	position: absolute;
	top: 100%;
	left: -999em;
	z-index: 99999;
}

.main-navigation ul ul ul {
	left: -999em;
	top: 0;
}

.main-navigation ul ul li:hover>ul,
.main-navigation ul ul li.focus>ul {
	display: block;
	left: auto;
}

.main-navigation ul ul a {
	width: 200px;
}

.main-navigation ul li:hover>ul,
.main-navigation ul li.focus>ul {
	left: auto;
}

.main-navigation li {
	position: relative;
}

.main-navigation a {
	display: block;
	text-decoration: none;
}

/* Small menu. */
.main-navigation.toggled ul {
	display: block;
}

.toggle-services {
	display: none;
	text-decoration: none;
	align-items: center;
	color: #fff;
	gap: 15px;
	text-transform: uppercase;
	padding: 5px 15px;
	border: 2px solid #fff;
	border-radius: 5px;
	transition: all .5s linear;
}

.toggle-services:hover {
	background: #fff;
	color: var(--main);
}

.toggle-services svg {
	transition: all .5s linear;
}

.toggle-services:hover svg {
	transform: rotate(90deg);
}

.toggle-services:hover svg path {
	fill: var(--main);
}

a.menu-toggle {
	display: none;
	margin: 0;
	position: relative;
	width: max-content;
	height: max-content;
	cursor: pointer;
	z-index: 555;
}

a.menu-toggle .bar {
	background: var(--black);
	border-radius: 3px;
	width: 35px;
	height: 3px;
}

a.menu-toggle div:not(:first-child) {
	margin-top: 10px;
}

a.menu-toggle .bar {
	transition: transform cubic-bezier(.89, 0, .08, 1) 1.5s, width cubic-bezier(.89, 0, .08, 1) 1.5s, background .3s;
}

a.menu-toggle.open .bar {
	background: var(--black);
}

a.menu-toggle.open .bar:nth-child(1) {
	transform: translate(0, 12px) rotate(135deg);
}

a.menu-toggle.open .bar:nth-child(2) {
	transform: translate(15px, 0px) rotate(90deg);
	width: 0;
}

a.menu-toggle.open .bar:nth-child(3) {
	transform: translate(0, -14px) rotate(225deg);
}

a.menu-toggle {
	display: block;
	outline: none;
}

ul.menu li a:hover {
	background: transparent;
}

.header-nav ul li a {
	text-transform: uppercase;
	color: var(--black);
}

ul.menu li a::after {
	content: '';
	width: 0;
	height: 1px;
	background: var(--light-grey);
	position: absolute;
	right: 0;
	bottom: 0;
	left: unset;
	transition: all .5s ease-in-out;
}

.header-nav ul {
	flex-direction: column;
	gap: 20px;
	padding-top: 10px;
	justify-content: center;
	height: 100%;
	padding: 130px 0 80px 20px;
}

.dropdown-menu {
	display: grid;
	position: relative;
	top: unset;
	left: unset;
}

ul.menu li a:hover {
	color: var(--accent);
}

nav#site-navigation div {
	width: 100%;
}

.site-header__right {
	display: flex;
	justify-content: flex-end;
	gap: 30px;
}

.header-nav {
	position: fixed;
	top: 0;
	right: 0;
	left: unset;
	height: 100%;
	background: var(--light);
	z-index: 1;
	width: 40%;
	min-width: 350px;
	transform: translateX(100%);
	opacity: 0;
	transition: transform .5s ease-in-out, opacity .7s linear;
}

.header-nav.open {
	transform: none;
	opacity: 1;
}

body.home #page header .fixed-container .header-right .menu-toggle .bar {
  background: #fff;
}

body.home #page header .fixed-container .header-right .menu-toggle.open .bar {
  background: var(--black);
}

body.home #page header.header-scroll .fixed-container .header-right .menu-toggle .bar {
  background: var(--black);
}

body.home #page header.header-scroll .fixed-container .header-right .menu-toggle.open .bar{
	background: var(--black);
}


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

	/* a.menu-toggle {
		display: block;
		outline: none;
	}

	ul.menu li a:hover {
		background: transparent;
	}

	.header-nav ul li a {
		text-transform: uppercase;
		color: var(--black);
	}

	ul.menu li a::after {
		content: '';
		width: 0;
		height: 1px;
		background: var(--light-grey);
		position: absolute;
		right: 0;
		bottom: 0;
		left: unset;
		transition: all .5s ease-in-out;
	}

	.header-nav ul {
		flex-direction: column;
		gap: 20px;
		padding-top: 10px;
		justify-content: center;
		height: 100%;
		padding: 130px 0 80px 20px;
	}

	.dropdown-menu {
		display: grid;
		position: relative;
		top: unset;
		left: unset;
	}

	ul.menu li a:hover {
		color: var(--accent);
	}

	nav#site-navigation div {
		width: 100%;
	}

	.site-header__right {
		display: flex;
		justify-content: flex-end;
		gap: 30px;
	}

	.header-nav {
		position: fixed;
		top: 0;
		right: 0;
		left: unset;
		height: 100%;
		background: var(--light);
		z-index: 1;
		width: 40%;
		min-width: 350px;
		transform: translateX(100%);
		opacity: 0;
		transition: transform .5s ease-in-out, opacity .7s linear;
	}

	.header-nav.open {
		transform: none;
		opacity: 1;
	} */



}

.site-main .comment-navigation,
.site-main .posts-navigation,
.site-main .post-navigation {
	margin: 0 0 1.5em;
}

.comment-navigation .nav-links,
.posts-navigation .nav-links,
.post-navigation .nav-links {
	display: flex;
}

.comment-navigation .nav-previous,
.posts-navigation .nav-previous,
.post-navigation .nav-previous {
	flex: 1 0 50%;
}

.comment-navigation .nav-next,
.posts-navigation .nav-next,
.post-navigation .nav-next {
	text-align: end;
	flex: 1 0 50%;
}

/* Posts and pages
--------------------------------------------- */
.sticky {
	display: block;
}

.updated:not(.published) {
	display: none;
}

.entry-content,
.entry-summary {
	margin: 1.5em 0 0;
}

.page-links {
	clear: both;
	margin: 0 0 1.5em;
}

.breadcrumbs__list {
	margin-bottom: 30px;
	color: var(--green);
}

.home-link {
	display: inline-block;
	width: 15px;
	height: 15px;
}

.home-link svg {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
	transition: all .5s linear;
}

.home-link:hover svg path {
	fill: var(--main);
}

.breadcrumbs__list a {
	color: var(--dark);
}

/* Comments
--------------------------------------------- */
.comment-content a {
	word-wrap: break-word;
}

.bypostauthor {
	display: block;
}

/* Widgets
--------------------------------------------- */
.widget {
	margin: 0 0 1.5em;
}

.widget select {
	max-width: 100%;
}

/* Media
--------------------------------------------- */
.page-content .wp-smiley,
.entry-content .wp-smiley,
.comment-content .wp-smiley {
	border: none;
	margin-bottom: 0;
	margin-top: 0;
	padding: 0;
}

/* Make sure logo link wraps around logo image. */

.custom-logo-link {
	display: inline-block;
	width: 70px;
	height: 70px;
	transition: all .5s ease-in-out;
}

a.custom-logo-link img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

/* Captions
--------------------------------------------- */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption .wp-caption-text {
	margin: 0.8075em 0;
}

.wp-caption-text {
	text-align: center;
}

/* Galleries
--------------------------------------------- */
.gallery {
	margin-bottom: 1.5em;
	display: grid;
	grid-gap: 1.5em;
}

.gallery-item {
	display: inline-block;
	text-align: center;
	width: 100%;
}

.gallery-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.gallery-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.gallery-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

.gallery-columns-5 {
	grid-template-columns: repeat(5, 1fr);
}

.gallery-columns-6 {
	grid-template-columns: repeat(6, 1fr);
}

.gallery-columns-7 {
	grid-template-columns: repeat(7, 1fr);
}

.gallery-columns-8 {
	grid-template-columns: repeat(8, 1fr);
}

.gallery-columns-9 {
	grid-template-columns: repeat(9, 1fr);
}

.gallery-caption {
	display: block;
}

/*--------------------------------------------------------------
# Plugins
--------------------------------------------------------------*/

/* Jetpack infinite scroll
--------------------------------------------- */

/* Hide the Posts Navigation and the Footer when Infinite Scroll is in use. */
.infinite-scroll .posts-navigation,
.infinite-scroll.neverending .site-footer {
	display: none;
}

/* Re-display the Theme Footer when Infinite Scroll has reached its end. */
.infinity-end.neverending .site-footer {
	display: block;
}

/*--------------------------------------------------------------
# Utilities
--------------------------------------------------------------*/

/* Accessibility
--------------------------------------------- */

/* Text meant only for screen readers. */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Do not show the outline on the skip link target. */
#primary[tabindex="-1"]:focus {
	outline: 0;
}

/* Alignments
--------------------------------------------- */
.alignleft {

	/*rtl:ignore*/
	float: left;

	/*rtl:ignore*/
	margin-right: 1.5em;
	margin-bottom: 1.5em;
}

.alignright {

	/*rtl:ignore*/
	float: right;

	/*rtl:ignore*/
	margin-left: 1.5em;
	margin-bottom: 1.5em;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

@media (max-width: 992px) {
	.sign {
		display: none;
	}
}

@media (max-width: 768px) {
	.header-right .contacts-list ._phone span {
		display: none;
	}

	/* .custom-logo-link {
		display: inline-block;
		width: 170px;
		height: 60px;
		transition: all .5s ease-in-out;
	} */


	#menu-uslugi {
		grid-template-columns: 1fr;
		display: grid;
	}

	.header-bottom__services {
		width: 100%;
		padding-top: 20px;
		margin-top: 10px;
		border-top: 1px solid #fff;
		overflow-y: scroll;
		height: 100vh;
		padding-bottom: 80px;
	}

	.header-bottom__services #menu-uslugi {
		gap: 20px;
	}
}

@media (max-width: 576px) {
	.header-nav ul li a {
		text-transform: uppercase;
		text-align: center;
	}

	.header-nav ul {
		gap: 10px;
		justify-content: center;
		flex-wrap: wrap;
	}

	.site-header .fixed-container {
		align-items: center;
	}

	.custom-logo-link {
		display: inline-block;
		width: 40px;
		height: 40px;
	}

	.slide-desc p {
		font-size: 20px;
	}

}

@media (max-width: 480px) {

	.header-nav {
		width: 100%;
		min-width: 100%;
		transform: translateY(-100%);
	}

	.header-nav ul {
		padding: 90px 30px;
	}

	.site-header.header-scroll .fixed-container .header-nav ul li a {
		text-align: center;
	}


	.site-header .header-main .fixed-container .site-branding a.custom-logo-link {
		height: 30px;
		width: 100px;
	}

	.site-header .fixed-container {

		align-items: center;

	}

	.site-header .fixed-container {
		flex-wrap: wrap;
		align-items: center;
	}

	/* .header-main {
		padding-top: 10px;
		padding-bottom: 10px;
	}

	.site-header .fixed-container {
		align-items: center;
		flex-direction: column;
	}

	.header-right {
		display: flex;
		align-items: center;
		gap: 30px;
		justify-content: space-between;
		width: 100%;
		margin-top: 20px;
	} */

	.header-right {
		display: flex;
		align-items: center;
		gap: 20px;
	}

	.header-right .contacts-list li {
		width: 30px;
		height: 30px;
	}

	.header-right .contacts-list li .contact-link {
		width: 100%;
		height: 100%;
	}

	.header-right .contacts-list .contacts-list__item._phone a {
		width: 100%;
		height: 100%;
	}

	.header-right .contacts-list .contacts-list__item._phone a div {
		width: 100%;
		height: 100%;
	}
}


@media (max-width: 375px) {
	.header-contacts {
		display: none;
	}
}