/*
Theme Name: Meisterwerk 5.0
Description: Wordpress Theme
Author: Alexandr
Author URI: https://opttour.ru/author/maker1447/
Version: 3.0
Tags: two-columns, custom-background, custom-colors, featured-images, theme-options
Text Domain: https://opttour.ru
Theme URI: https://opttour.ru
License: Premium
License URI: https://opttour.ru
*/

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&display=swap');

:root {
	--color-1: #3e81b0;
	--color-2: #3172a1;
	--color-3: #23618d;
	--color-line: #f7f7f7;
	--color-line: rgb(62 129 176 / 15%);
}

@view-transition {
	navigation: auto;
}

/* Общие стили */

*, ::after, ::before {margin:0; padding:0; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}

html { 
	/* тест более глобального применения отступов. У .row пока отключены */
	--bs-gutter-x: 1.5rem;
	--bs-gutter-y: 1.5rem;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
	font-family: 'Montserrat', sans-serif;
	font-size: 16px;
	/* background: #f9f9f9; */
	color: #222;
}

a {
	color: var(--color-1);
	text-decoration: none; 
	transition: all 0.3s ease;
	-o-transition: all 0.3s;
	-webkit-transition: all 0.3s ease 0s;
}

a:hover {text-decoration: underline;}

a[href^="tel"] {text-decoration: none !important; cursor: default; white-space: nowrap;}
a[href^="tel"]:hover { color: inherit !important;}

img {max-width: 100%; height: auto;}
a img {border: none;}
	
/* h1, h2, h3, h4, h5 {clear: both; margin-bottom: var(--bs-gutter-x); overflow: hidden; position: relative;} */

h1, h2, h3, strong {font-weight: 600;}

table {width: 100%; border-collapse: collapse;}		  

/* iframe, embed {width: 100%;} */
/* .mejs-container {max-width: 100% !important;} */

input, textarea, select, button {font-family: 'Montserrat', sans-serif;}

*:focus, input:focus, button:focus {outline: none;}

input, button {  
	transition: color 0.3s ease, background-color 0.3s ease;
	-o-transition: color 0.3s, background-color 0.3s;
	-webkit-transition: color 0.3s ease 0s, background-color 0.3s ease 0s;
}

input, select, textarea {padding: 10px 20px; max-width: 100%; border: 1px solid #eee; font-size: 1rem;}

@media (max-width: 576px) { body {background: #fff;} }

  
/* Блочная верстка */

.container, .container-fluid {
	width: 100%;
	/*max-width: 1320px;*/ 
	margin-left: auto; 
	margin-right: auto;   
	padding-right: var(--bs-gutter-x, 0.75rem);
	padding-left: var(--bs-gutter-x, 0.75rem);
}

@media (max-width: 576px) { 
	.container {
		max-width: 100%; 
		padding-right: var(--bs-gutter-x, 1.5rem); 
		padding-left: var(--bs-gutter-x, 1.5rem);
	} 
}
@media (min-width: 576px) { .container {max-width: 540px;} }
@media (min-width: 768px)  { .container {max-width: 720px;} }
@media (min-width: 992px)  { .container {max-width: 960px;} }
@media (min-width: 1200px) { .container {max-width: 1140px;} }
@media (min-width: 1400px) { .container {max-width: 1320px;} }	

.container-fluid {max-width: none;}

.row {
	/* --bs-gutter-x: 1.5rem;
	--bs-gutter-y: 0; */
	display: flex;
	flex-wrap: wrap;
	/* margin-bottom: calc(var(--bs-gutter-y) * -1); */
	row-gap: var(--bs-gutter-y);
	margin-right: calc(var(--bs-gutter-x) * -.5);
	margin-left: calc(var(--bs-gutter-x) * -.5);
}

/* .gutter {
    --bs-gutter-y: 1rem;
} */

.align-items-center {
	align-items: center !important;
}

.row > * {
	box-sizing: border-box;
	flex-shrink: 0;
	width: 100%;
	max-width: 100%;
	padding-right: calc(var(--bs-gutter-x) * .5);
	padding-left: calc(var(--bs-gutter-x) * .5);
	/*margin-top: var(--bs-gutter-y);*/
	order: 10;
}

.col {flex: 1 0 0%;}
.row-cols-auto > * {flex: 0 0 auto; width: auto;}
.row-cols-1 > * {flex: 0 0 auto; width: 100%;}
.row-cols-2 > * {flex: 0 0 auto; width: 50%;}
.row-cols-3 > * {flex: 0 0 auto; width: 33.3333333333%;}
.row-cols-4 > * {flex: 0 0 auto; width: 25%;}
.row-cols-5 > * {flex: 0 0 auto; width: 20%;}
.row-cols-6 > * {flex: 0 0 auto; width: 16.6666666667%;}

.col-1  {flex: 0 0 auto; width: 8.33%;}
.col-2  {flex: 0 0 auto; width: 16.66%;}
.col-3  {flex: 0 0 auto; width: 25%;}
.col-4  {flex: 0 0 auto; width: 33.33%;}
.col-5  {flex: 0 0 auto; width: 41.66%;}
.col-6  {flex: 0 0 auto; width: 50%;}
.col-7  {flex: 0 0 auto; width: 58.33%;}
.col-8  {flex: 0 0 auto; width: 66.66%;}
.col-9  {flex: 0 0 auto; width: 75%;}
.col-10 {flex: 0 0 auto; width: 83.33%;}
.col-11 {flex: 0 0 auto; width: 91.66%;}
.col-12 {flex: 0 0 auto; width: 100%;}

.mb-0 {margin-bottom: 0 !important;}
.mb-1 {margin-bottom: 0.25rem !important;}
.mb-2 {margin-bottom: 0.5rem !important;}
.mb-3 {margin-bottom: 1rem !important;}
.mb-4 {margin-bottom: 1.5rem !important;}
.mb-5 {margin-bottom: 3rem !important;}
.mb-auto {margin-bottom: auto !important;}

@media (max-width: 992px)  { 
	.row-cols-3 > *, .col-3 {width: 50%;} 
}

@media (max-width: 576px)  {
	.row-cols-2 > *, .row-cols-3 > *, .col-3 {width: 100%;} 
	
}
	

/* ---------- HEADER ---------- */

#mobile-head {
    display: none;
    position: sticky;
    z-index: 999;
    top: 0;
	background: #fff;
    border-bottom: 1px solid #eee;
}

.mobile-head {
    height: 60px;
}

.mobile-head > * {
    display: flex;
    align-items: center;
    height: 100%;
}

#mobile-head-button {
    justify-content: flex-end;
}

#mobile-head-logo a {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 10px 0;
	justify-content: flex-start;
	height: 60px;
}

#mobile-head-logo img {
    display: block;
    /* max-width: 200px; */
    width: auto;
    max-height: 100%;
	max-height: 40px;
}

.mobile-head #mobile-head-button:before {
    content: "\e968";
    font-family: "icomoon";
    /* background: #007c88; */
    color: var(--color-1);
    border: 1px solid #eee;
    font-size: 1.2rem;
    min-width: 45px;
    line-height: 45px;
    text-align: center;
}

[menu=open] .mobile-head #mobile-head-button:before {
	content: "\ea83";
}

.overlay {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    will-change: transform;
    -webkit-transition: .3s cubic-bezier(.36,.07,.19,.97);
    -o-transition: .3s cubic-bezier(.36,.07,.19,.97);
    transition: .3s cubic-bezier(.36,.07,.19,.97);
    z-index: 80;
    background: rgb(0 0 0 / 20%);
	visibility: hidden;
    opacity: 0;
}

[menu=open] .overlay {
    visibility: visible;
    opacity: 1;
}

[menu=open] body {
    overflow: hidden;
}


body > header {position: relative; z-index: 999; position:-webkit-sticky; position:sticky; top:0; border-bottom: 1px solid var(--color-line); background: #fff;}
body > header .box {align-items: center;}
	
body > header.fixed {position: fixed; top: 0; left: 0; right: 0;}
body.compensate-for-scrollbar > header.fixed, body.windows-active > header.fixed {right: 17px;}	

#header a {color: inherit;}
#header a[href]:hover {color: var(--color-1);}	

#header i {color: var(--color-1);}

#header-logo {flex: 0 0 200px;}
#header-logo a {display: flex; padding: 15px 0;}
#header-logo a img {width: 100%;}

  
.menu {display: flex; gap: 15px 30px;}
.menu li {list-style: none;}
.menu > li > a {display: block; text-decoration: none;}
.menu > li.menu-item-has-children > a:after {
    content: "\ec19";
    font-family: 'icomoon';
    font-size: 0.6rem;
    margin-left: 10px;
    color: var(--color-1);
}

.menu .sub-menu {
	position: absolute; 
	top: 100%;
	background: #eee; 
	visibility: hidden; 
	opacity: 0; 
	-o-transition: all 0.3s; 
	transition: all 0.3s ease; 
	-webkit-transition: all 0.3s ease 0s;
}

.menu li:hover .sub-menu {visibility: visible; opacity: 1;}

.sub-menu li > a {padding: 15px; display: block; text-decoration: none;}


#header-menu .menu {
	white-space: nowrap; 
	font-weight: 500;
	padding-left: 50px;
}

#header-menu .menu > li > a {
	padding: 30px 0;
}


#mobile-search-button, #mobile-menu-button {display: none;}

#mobile-menu-button:before {
    content: "\e968";
    display: inline-block;
    border-radius: 3px;
    font-family: "icomoon";
    color: var(--color-1);
    border: 1px solid var(--color-line);
    font-size: 1.2rem;
    min-width: 40px;
    line-height: 40px;
    text-align: center;
}

#mobile-menu-button.active:before {content: "\ea83";}

#mobile-search-button i {
    width: 45px;
    height: 45px;
    cursor: pointer;
    border: 1px solid #eee;
    border-radius: 7px;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}








.searchform {position: relative;}

.searchform input {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
	border-radius: 5px;
    position: relative;
    z-index: 75;
    border: 1px solid #ccc;
    background: rgba(255, 255, 255, 0.5);;
}

.searchform input:focus {background: #fff;}

.searchform button {
    padding: 5px 10px 5px 0;
    right: 10%;
    border: none;
    background: none !important;
    position: absolute;
    color: #fff;
    z-index: 76;
    cursor: pointer;
}

.searchform button i {
	color: #ccc !important;
	margin: 0;
	transition: color .3s ease;
    -o-transition: color 0.3s;
	-webkit-transition: color 0.3s ease 0s;
}

.searchform button i:hover {color: #000 !important;}
.searchform > *:focus {outline: none;}

.searchform input::-webkit-input-placeholder, .searchform input::-moz-placeholder, .searchform input:-ms-input-placeholder
{color: #ccc;}

	
#header-contact {flex: 0 0 225px;}  
#header-contact .phone {font-weight: 600; font-size: 1.3rem; white-space: nowrap;}
#header-contact .phone a {display: flex; gap: 10px; align-items: center;}

@media (max-width: 992px) {  
	#header-menu {text-align: center;} 
	#mobile-menu-button, #mobile-search-button {display: block;}
	#header-menu > div, .searchform {display: none; position: absolute; width: 100%; background: #eee; left: 0; top: 100%;}
	#header-menu ul.menu {padding: 0 30px; justify-content: center;}
	#header-menu ul.menu > li > a {padding: 20px;}
	
	#header-search {text-align: center;}
	.searchform {padding: 15px 30px;}
	
	#header-contact .phone {font-size: 1.1rem;}
}

@media (max-width: 768px) {
	#mobile-head {display: block;}
	
	body > header {
		position: fixed;
		top: 60px;
		z-index: 99;
		background: #fff;
		width: 70%;
		height: calc(100% - 60px);
		display: flex;
		align-items: center;
		padding: 30px;
		border-right: 1px solid #eee;
		left: -100%;
		transition: all 0.3s ease;
		-o-transition: all 0.3s;
		-webkit-transition: all 0.3s ease 0s;
	}
	
	[menu=open] body > header {left: 0;} 
	
	#header {flex-direction: column;}
	#header > * {text-align: center; margin-bottom: 30px; flex: 0 0 0%;}
	header #header-logo {display: none;}
	#mobile-menu-button, #mobile-search-button {display: none;}
	#header-menu {order: 11; margin-bottom: 15px;}
	#header-menu > div, #header-search .searchform {display: block; position: relative; background: none;}
	#header-menu ul.menu {flex-wrap: wrap; margin-bottom: 15px;}
	#header-menu ul.menu > li {width: 100%;}
	#header-menu ul.menu > li > a {padding: 15px 30px;}
	#header-search {order: 11;}
	#header-search .searchform {padding: 0;}
	#header-contact .phone a {justify-content: center;}
}

@media (max-width: 576px) {
	body > header {width: 100%; border-right: none;}
}


@media (max-width: 480px) {
	input, select, textarea {padding: 10px;}
	body > header {padding: 30px 0;}
}


@media (max-width: 380px) {
	.mobile-head {height: 50px;}
	body > header {top: 50px; height: calc(100% - 50px);}
	.mobile-head #mobile-head-button:before {min-width: 40px; line-height: 40px; font-size: 1rem;}
}