/*
Theme Name: Meisterwerk 4.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'); */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lora:wght@400..700&display=swap');

:root {
	--color-1: #F47639;
	--color-2: #F8F4E8;
	--color-3: #582929;
	--color-3-2: #a88f89;
	--color-4: #3BA458;
	--color-4-2: #268e44;
	--color-line: #f7f7f7;
}

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

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

html, body { 
	font-family: "Inter", sans-serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
	font-size: 16px;
	/* background: #f9f9f9; */
	color: var(--color-3);

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

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;
	font-family: "Lora", serif;
	font-optical-sizing: auto;
	font-weight: 400;
	font-style: normal;
}

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: "Inter", 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: 1400px;} }	

.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: fixed;
    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;
}

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

.mobile-head #mobile-head-button:before {
    content: "\e968";
    font-family: "icomoon";
    /* background: #007c88; */
    color: var(--color-3);
    /* border: 1px solid #eee; */
    font-size: 1.6rem;
    /* 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 {z-index: 999; position: absolute; width: 100%; top:0;}
body > header .box {align-items: center;}
	
body > header.fixed {
    position: fixed;
    background: #fff;
    border-bottom: 1px solid var(--color-line);
}
/* body.compensate-for-scrollbar > header.fixed, body.windows-active > header.fixed {right: 17px;}	 */



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

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

  
.menu {
    display: flex;
    gap: 15px 50px;
    font-size: 1.2rem;
    text-transform: uppercase;
}
.menu li {list-style: none;}
.menu > li > a {padding: 30px 0; display: block; text-decoration: none; color: inherit;}
body > header.fixed .menu > li > a {padding: 20px 0;}

.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;}



#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;
}


	
#header-contact {flex: 0 0 225px;}  
#header-contact .phone {font-weight: 600; font-size: 1.3rem; white-space: nowrap;}


#header-buy {flex: 0;}
#header-buy .buttons {justify-content: flex-end;}


@media (max-width: 1400px) {  
	.menu {font-size: 1rem; gap: 15px 40px;}
}

@media (max-width: 1200px) {  
	.menu {gap: 15px 30px;}
}

@media (max-width: 992px) {  
	.menu {gap: 15px 20px; font-size: 0.9rem; font-weight: 500;}
}

/* @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: 0;
		z-index: 99;
		background: #fff;
		width: 70%;
		height: 100%;
		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;}
	header #header-logo {display: none;}
	#mobile-menu-button, #mobile-search-button {display: none;}
	#header-menu {order: 11; margin-bottom: 15px; font-size: 1.1rem;}
	#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: 10px 30px;}

	#header-buy .buttons {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: 320px) {
	.mobile-head #mobile-head-button:before {min-width: 40px; line-height: 40px; font-size: 1rem;}
}