/*
Theme Name: Meisterwerk 2.0
Description: Wordpress Theme
Author: Alexandr
Author URI: https://opttour.ru/author/maker1447/
Version: 2.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:wght@400;600;800&display=swap');



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

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

html, body { 
	background-size: cover;
	background-repeat: no-repeat;
	z-index: -200;
	font-family: 'Montserrat', sans-serif; 
	font-size: 16px;
	/*background: #eee;*/
	color: #333;
	position: relative;
	
	display: flex;
	min-height: 100vh;
	flex-direction: column;
}

/*body {padding-top: 30px;}*/

body:before {
    content: "";
    background: url(/wp-content/uploads/2023/10/Grey-bg-01.jpg);
    background-size: cover;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.disable-hover, .disable-hover * {pointer-events: none !important;}

i {margin-right: 7px;}

a {
  color: #0096a7;
  text-decoration: none; 
  transition: all 0.3s ease;
  -o-transition: all 0.3s;
  -webkit-transition: all 0.3s ease 0s;
}

a:hover {color: #205a96;}

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;
	/*-moz-backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;*/
}

a img {border: none;}
/*a img:hover {-webkit-filter: brightness(110%);}*/
	
h1, h2, h3, h4, h5 {clear: both; margin-bottom: 15px; overflow: hidden; position: relative; font-weight: 600;}
h1 {font-weight: 800;}

strong {font-weight: 600;}

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

iframe, embed {width: 100%;}

.mejs-container {max-width: 100% !important;}

ul li {list-style-type: square;}

input, textarea, select, button {font-family: 'PT Sans', 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: 7px 15px; max-width: 100%; border: none; border-bottom: 2px solid #67c1cb; font-family: 'Montserrat', sans-serif; }

@media screen and (max-device-width: 480px) { body {background: #fff;} h2 {font-size: 1.2rem;} }

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

.box {display: -webkit-flex; display: flex; position: relative; margin-left: -30px; margin-right: -30px;}

.box > * {padding-right: 30px; padding-left: 30px; order: 10;}
	
.block-1  {width: 8.33%;}
.block-2  {width: 16.66%;}
.block-3  {width: 25%;}
.block-4  {width: 33.33%;}
.block-5  {width: 41.66%;}
.block-6  {width: 50%;}
.block-7  {width: 58.33%;}
.block-8  {width: 66.66%;}
.block-9  {width: 75%;}
.block-10 {width: 83.33%;}
.block-11 {width: 91.66%;}
.block-12 {width: 100%;}

@media screen and (max-device-width: 800px) { .box {justify-content: space-between;} }

@media screen and (max-device-width: 480px) { 
	.box {-webkit-flex-wrap: wrap; flex-wrap: wrap; margin-left: -10px; margin-right: -10px;} 
	.box > * {padding-right: 10px; padding-left: 10px;}
}

@media screen and (max-device-width: 320px) { 
	.box {margin-left: -5px; margin-right: -5px;} 
	.box > * {padding-right: 5px; padding-left: 5px;}
}
	

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


.indicator {
    width: 0%;
    height: 2px;
    background: #0099a7;
    position: fixed;
    top: 0;
    -webkit-transition: width .6s ease;
    -o-transition: width .6s ease;
    transition: width .6s ease;
    z-index: 99999;
}


.left-pannel {
    background: #f2f2f2;
    position: fixed;
    z-index: 99;
    top: 0;
    height: 100%;
	left: -100%;
	width: 25%;
	overflow: hidden;
	-o-transition: all 0.3s;
	transition: all 0.3s ease;
	-webkit-transition: all 0.3s ease 0s;
}

.left-pannel.left-pannel-open {left: 0;}

.left-pannel > div {
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.left-pannel small {font-size: 1rem;}

.pannel-close {
    cursor: pointer;
    position: absolute;
    right: 0;
    top: 0;
    font-size: 1.8rem;
    line-height: 60px;
    width: 60px;
    background: #0099a7;
    color: #fff;
    text-align: center;
	border-radius: 0 0 0 5px;
}

.pannel-close i {margin: 0; transition: all 0.3s ease; -o-transition: all 0.3s; -webkit-transition: all 0.3s ease 0s;}

.pannel-close:hover {background: #333; color: #fff;}
.pannel-close:hover i {transform: rotate(90deg);}

.overlay {
    position: fixed;
    z-index: 99;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255 / 0.7);
    opacity: 0;
	visibility: hidden;
	-o-transition: all 0.3s;
	transition: all 0.3s ease;
	-webkit-transition: all 0.3s ease 0s;	
}

.overlay.visible {opacity: 1; visibility: visible;}



.left-menu {
    height: 100%;
    display: flex;
    align-items: center;
	font-size: 1.6rem;
}






body > header {position: absolute; z-index: 99; top: 30px; left: 0; right: 0;}
body > header .box {align-items: center; margin: 0;}
	
body > header.fixed {position: fixed; top: 0;}
/*body.compensate-for-scrollbar > header.fixed, body.windows-active > header.fixed {right: 17px;}*/

#head-order {background: #fff; border: 1px solid #eee; border-radius: 10px;}
body > header.fixed #head-order {border-radius: 0 0 10px 10px;}

/*#head-order a {color: #fff;}*/
#head-order a[href]:hover {color: #00969e;}	

/*.fixed #head-order {padding-top: 5px; padding-bottom: 5px;}*/
  
#head-order i {color: #111;}


#header-menu {
    line-height: 100px;
    text-align: center;
	font-size: 1.4rem;
    cursor: pointer;
	border-right: 1px solid #eee;
	border-radius: 10px 0 0 10px;
}

#header-menu:hover {background: #eee;}
#header-menu:hover i {color: #0096a7;}


#header-logo {font-size: 2.3rem; font-weight: 600;}
#header-logo img {
    display: block;
	max-width: 300px;
    margin: 0 auto;
    -moz-backface-visibility: visible;
    -webkit-backface-visibility: visible;
    backface-visibility: visible;
}


#mobile-menu-button {display: none;}
	
#menu-icon {
    padding: 8px;
    cursor: pointer;
    position: absolute;
    top: 0px;
    right: 0px;
    background: #fff;
    font-size: 20px;
	z-index: 99;
}

#menu-icon i {margin: 0px; -o-transition: all 0.3s; transition: all 0.3s ease; -webkit-transition: all 0.3s ease 0s;}
#menu-icon.active i {transform: rotate(270deg);}	
  
.left-menu ul.menu li {padding: 15px 0; list-style: none; position: relative;}

.left-menu .menu-item-has-children:after {
    content: "";
    width: 0;
    background: #205a96;
    position: absolute;
    height: 1px;
    top: 50%;
    margin-left: 30px;
	-o-transition: all 0.3s;
	transition: all 0.3s ease;
	-webkit-transition: all 0.3s ease 0s;	
}

.left-menu .menu-item-has-children.submenu-active:after {width: 150%;}

ul.sub-menu {
    position: fixed;
    background: #205a96;
    left: 25%;
    top: 0;
    height: 100%;
    padding: 60px;
    width: 25%;
    opacity: 0;
    display: flex;
	visibility: hidden;
    align-items: center;
    -o-transition: all 0.3s;
    transition: all 0.3s ease;
    -webkit-transition: all 0.3s ease 0s;
}

/*.left-menu ul.menu li:hover > ul.sub-menu*/
.submenu-active ul.sub-menu {opacity: 1; visibility: visible;}

ul.sub-menu li a {color: #fff;}



#searchform {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
}

#searchform.searchform-visible {display: flex;}

#searchform #s {
    width: 100%;
    padding: 30px 60px;
    position: relative;
    z-index: 75;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid #eee;
    font-size: 1.2rem;
	text-align: center;
}

#searchform .pic-sea {
    right: 0;
    width: 10%;
    height: 100%;
    border: none;
    background: none !important;
    position: absolute;
    z-index: 76;
    cursor: pointer;
    font-size: 1.5rem;
}

#searchform .pic-sea i {
    color: #0099a7;
    margin: 0;
    transition: color .3s ease;
    -o-transition: color 0.3s;
    -webkit-transition: color 0.3s ease 0s;
}

#searchform .pic-sea i:hover {color: #000 !important;}
#searchform .pic-sea:focus, #s:focus {outline: none;}

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


@media screen and (max-device-width: 1280px) { #header-logo {min-width: 200px;} }

@media screen and (max-device-width: 1024px) { 
	.left-pannel {width: 50%;}
	ul.sub-menu {left: 50%; width: 50%;}
	#header-logo img {max-width: 250px;}
}


@media screen and (max-device-width: 800px) {  
	#header-contact {width: 37%;}
	#site-menu {width: 10%; text-align: center;} 
	#mobile-menu-button {display: block;}
	#site-menu > div {position: absolute; width: 100%; background: #eee; left: 0; top: 110%; z-index: 99;}
	#site-menu .menu {display: none; padding: 20px 20px 5px 20px; width: 100%; text-align: center;}
	#site-menu .active {transform: rotate(90deg);}  
	#site-menu ul li {margin-bottom: 15px; margin-right: 30px;}
}

@media screen and (max-device-width: 480px) {
	#head-order {padding: 10px 0;}
	#header-logo {width: 45%; margin: 0 0 10px 0; min-width: 0;}  
	#site-menu ul li {width: 50%; margin-right: 0;}
	#header-contact {width: 45%; margin: 0 0 10px 0;}  
	#header-contact .phone, #header-contact .mail {width: 100%; font-size: 1rem;}
}

@media screen and (max-device-width: 375px) {
	#head-order {padding: 6px 0 7px 0;}
	#header-logo {width: 40%;} 
	#site-menu ul li {width: 100%;}
	#header-contact {width: 50%;}  
	#header-contact .phone i {display: none;}
}

@media screen and (max-device-width: 320px) {
	#header-contact {margin: 0;}
	#revers-phone {display: none;}
}


/* Контентная часть */

main {position: relative; flex: 1; z-index: 1;} 
	
#main-content {overflow: hidden;}	

.wrapper {padding: 0 150px; position: relative; /*margin: 0 auto;*/}
.wrapper-half-right {padding-right: 150px; position: relative;}
.wrapper-half-left {padding-left: 150px; position: relative;}

/* @media screen and (min-device-width: 2000px) { .wrapper {max-width: 90%; padding: 0 5%;} } */
@media screen and (max-device-width: 1440px) { .wrapper {padding: 0 50px;} }
@media screen and (max-device-width: 1024px) { .wrapper {padding: 0 30px;} }
@media screen and (max-device-width:  480px) { .wrapper {padding: 0 7px;} }	
	
	
#index-slider {position: relative;}	
	
.owl-nav {
    position: absolute;
    bottom: 30px;
    right: 30px;
    font-size: 1rem;
}
	
.owl-carousel .owl-nav button.owl-next, .owl-carousel .owl-nav button.owl-prev {
    margin: 0 10px;
    padding: 15px !important;
    background: rgba(51, 51, 51, 0.7);
    color: #fff;
}	
	
.owl-nav i {margin: 0;}	









.section {width: 100%; background-size: cover; background-position: center; position: relative; font-size: 1.2rem; clear: both;}
.container {display: -webkit-flex; display: flex; align-items: center; justify-content: center; padding: 150px 0 50px; /* padding: 100px 0; */  /*margin: 0 30px;*/}
.fheight {min-height: 100vh;}
.hheight {min-height: 50vh;}
.half {width: 50%;} 
.two-thirds {width: 70%;} 
.container > div {width: 100%;}

.container > div > h1 {margin-bottom: 100px;}
.container > div > h2, .container-min > h2 {margin-bottom: 50px;}
/*.container > div > p, .container-min > p {margin-bottom: 15px;}*/
.container > div > *:last-child {margin-bottom: 0;}

.container.single-text {padding: 50px 60px;}


.section.double {display: flex;}
.section.double > * {width: 50%;}
.image {background-position: center; background-size: cover;}

.column {flex-direction: column; padding: 0; height: 100%;}
.column > * {height: 100%; display: flex; align-items: center;}
.wrapper-half-right .container-min {padding: 50px 0; padding-left: 100px;}
.wrapper-half-left .container-min {padding: 50px 0; padding-right: 100px;}

.center {text-align: center;}

#main-block {
    /*background: url(/wp-content/uploads/2021/01/Grey-bg-01.jpg);*/
	/*color: #fff;*/
	font-size: 1.4rem;
}

#main-block > a { position: absolute; width: 60px; bottom: 25px; left: 50%; margin-left: -30px; opacity: 0.9; z-index: 1;}

#main-block .container {
    padding: 170px 300px 100px;
    text-align: center;
}


.wp-block-media-text {margin-bottom: 60px;}

.wp-block-media-text__media img {border-radius: 10px;}


.text-area h2 {margin-bottom: 45px;}

.text-area p {
    margin-bottom: 30px;
}

.text-area p:last-child {margin-bottom: 0;}

.hwidth {
    width: 50%;
    margin-left: auto;
    margin-right: auto;
	text-align: center;
}

.wp-block-image.fwidth > *, .wp-block-image.fwidth img, .fwidth img {width: 100%;}


.btn > a {
    text-transform: uppercase;
    color: #fff;
    border: 2px solid #fff;
    padding: 7px 30px;
    display: inline-block;
	border-radius: 50px;
	font-weight: 600;
}

.btn.white > a {
    border-color: #0099a7;
    color: #0099a7;
}

.btn > a:hover {color: #14c0ca; background: #fff;}
.btn.white > a:hover {color: #fff; background: #0099a7;}


.btn-dark {color: #0099a7; border: 1px solid #0099a7;}


.flexbox {display: -webkit-flex; display: flex; margin-left: -15px; margin-right: -15px; margin-bottom: -30px;}
.flexbox > * {width: 100%; padding: 0 15px;	margin-bottom: 30px; flex-wrap: wrap;}

.fb-2 > * {width: 50%;}
.fb-3 > * {width: 33.33%;}
.fb-4 > * {width: 25%;}
.fb-5 > * {width: 20%;}
.fb-6 > * {width: 16.66%;}


.tiles {margin: 0 -15px; display: flex; flex-wrap: wrap;}

.tiles > * {
    width: 33.33%;
    float: left;
    /*height: 275px;*/
    padding: 15px;
}

.tiles > * > a {
    border: 2px solid #eee;
	background: #fff;
    height: 100%;
	display: block;
    /*display: flex;
    align-items: center;
    justify-content: center;*/
	background-position: center;
    background-size: cover;
	position: relative;
	color: #333;
	font-size: 1.4rem;
	/*font-weight: 600;*/
    /*padding: 30px;*/
    text-align: center;
	border-radius: 10px;
	overflow: hidden;
}

.tile-image img {display: block; filter: grayscale(1); transition: all 0.3s ease; -o-transition: all 0.3s; -webkit-transition: all 0.3s ease 0s;}
.tile-text {padding: 30px;}

.tiles > * > a:hover .tile-image img {filter: grayscale(0);}


.tiles > *.doubleh {height: 800px;}
.tiles > *.doublew {width: 50%;}

.tiles > * > a .logo {width: 350px; margin-bottom: 30px;}

.tiles > * > a .icon {
    max-width: 100px;
    margin-bottom: 30px;
    filter: grayscale(1);
    opacity: 0.5;
	display: none;
}

.tiles > *.doublew.doubleh > div img {max-width: 200px; margin-bottom: 30px;}

.tiles > * a.bioadd:hover {border-color: #7fb94d;}
.tiles > * a.cosmetic:hover {border-color: #df485a;}
.tiles > * a.agro:hover {border-color: #7fb94d;}
.tiles > * a.animals:hover {border-color: #ee7209;}
.tiles > * a.sport:hover {border-color: #e74011;}
.tiles > * a.equine:hover {border-color: #A861A4;}

.tiles > *:hover > div .icon {filter: unset; opacity: 0.75;}




/*.tiles > * div:before {
    background: rgb(32 90 150 / 0.7);
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}*/

/*.tiles > * div:hover:before {background: rgb(32 90 150 / 0.5);}*/

.tiles > * div p {position: relative;}

#promo-block, .promo {
    background: #205a96;
	background: -webkit-linear-gradient(165deg, #0099a7, #205a96);
    background: -moz-linear-gradient(165deg, #0099a7, #205a96);
    background: -o-linear-gradient(165deg, #0099a7, #205a96);
    background: linear-gradient(165deg, #0099a7, #205a96);
    color: #fff;
	font-size: 2rem;
	padding: 150px;
	position: relative;
	border-radius: 10px;
	overflow: hidden;
}

.promo:before {
    content: "";
    position: absolute;
    z-index: -1;
    background: url(/wp-content/uploads/2021/01/Biolar-Guidebook-2020-01.png);
    background-size: cover;
    background-position: center;
    right: 0;
    top: 0;
    height: 100%;
    width: 100%;
}

#promo-block .box {align-items: center;}

.promo h2 {font-weight: 800;}

.underline {text-decoration: underline; font-size: 1.4rem;}
.great {font-size: 6rem;}
.big {font-size: 4rem;}

.trinity {display: flex; margin: 0 -30px 60px !important;}

.trinity > *  {
    width: 33.33%;
	padding: 0 30px;
	min-height: 70vh;
}

/*.trinity > * > div:before {
    background: rgb(45 91 164 / 0.7);
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}*/

.trinity > * > div .image:after {
    background: -webkit-linear-gradient(top, #fff, rgb(255 255 255 / 0%));
    background: -moz-linear-gradient(to top, rgb(255 255 255 / 0%), #fff);
    background: -o-linear-gradient(to top, rgb(255 255 255 / 0%), #fff);
    background: linear-gradient(to bottom, rgb(255 255 255 / 0%), #fff);
    content: "";
    position: absolute;
    z-index: 1;
    left: 0;
    width: 100%;
    height: 100%;
    bottom: 0;
}

.trinity > * > div {
    height: 100%;
    position: relative;
    border: 1px solid #eee;
	border-radius: 10px;
	overflow: hidden;
}

/*.trinity > *:nth-child(1) > div:before {background: rgb(223 72 90 / 0.7);}
.trinity > *:nth-child(2) > div:before {background: rgb(162 97 164 / 0.7);}
.trinity > *:nth-child(3) > div:before {background: rgb(127 185 77 / 0.7);}*/

.trinity > * > div .text {padding: 30px 60px;}
.trinity > * > div .text h3 {margin-bottom: 30px; font-size: 1.8rem; font-weight: 600;}
.trinity > * > div .text p {margin-bottom: 30px; color: #333;}


.clear {clear: both; margin-bottom: 50px;}


.image {position: relative; overflow: hidden;}
.image img {display: block; width: 100%;}

.autoheight {height: 100%;}

.deep-blue {background: #3969a8; color: #fff;}
.coral {background: #d06555; color: #fff;}
.turquoise {background: #00c2cb; color: #fff;}
.dark {background: #132534; color: #fff;}


.image img.liquid {
    position: absolute;
    top: 50%;
    left: 50%;
    min-height: 100%;
    min-width: 100%;
    transform: translate(-50%, -50%);
    object-fit: cover;
}



.products {display: flex; margin: 0 -15px; justify-content: center; flex-wrap: wrap;}

.products > * {width: 25%; padding: 15px;}

.products > * > a {
	display: block;
    border: 2px solid #eee;
    border-radius: 15px;
    height: 100%;
	overflow: hidden;
	color: #333;
	background: #fff;	
}

.products > * > a .info {padding: 45px;}

.products > * a .info img {margin: 0 auto 30px; display: block;}

.products > * > a:hover {
    border-color: #ccc;
    box-shadow: 0 0 30px rgb(51 51 51 / 30%);
}


/*p.p-quest {
    background: #63c2c7;
    background: linear-gradient(45deg, #0099a7, #63c2c7);
    color: #fff;
    padding: 15px 45px;
    border-radius: 15px;
	display: inline-block;
}*/

p.p-quest {
    color: #4687ca;
    font-weight: 600;
    border-radius: 15px;
	display: inline-block;
}


p.more-info {
    background: #205a96;
    color: #eee;
    display: inline-block;
    border-radius: 15px;
	position: relative;
}

p.more-info:before {
    content: "";
    background: url(/wp-content/uploads/2023/10/pdf.png);
    position: absolute;
    left: 20px;
    width: 40px;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
	pointer-events: none;
}

p.more-info a {color: #fff; padding: 10px 30px 15px 75px; display: block;}

.more-info > a:before {
    content: "Больше информации";
    text-transform: capitalize;
    display: block;
    font-size: 0.8rem;
}


.text-area ul {padding-left: 25px; margin-bottom: 30px;}

::marker {color: #4687ca;}





@media screen and (max-device-width: 1440px) { 
	#main-block .container {padding: 170px 150px 100px;}
}


@media screen and (max-device-width: 1024px) { 
	#main-block > a {display: none;} 
	
	.trinity {margin: 0 -15px 60px !important;}
	.trinity > * {padding: 0 15px;}
	.trinity > * > div .text {padding: 30px;}
	.trinity > * > div .text p {font-size: 1rem; margin-bottom: 15px;}
	.trinity > * > div .text h3 {margin-bottom: 15px; font-size: 1.4rem;}
	
	.products > * {width: 50%;}
	
}





/*  New layout  */


.layout {
	display: flex;
	position: relative;
	z-index: 1;
	font-size: 1.2rem;
	margin-bottom: 0;
}

.layout:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: -1;
}

.layout.has-background:before {display: none;}

.layout .gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.layout-left.layout-green:before  {background: linear-gradient(90deg, transparent 0%, #74b94c 50%);}
.layout-right.layout-green:before {background: linear-gradient(90deg, #74b94c 50%, transparent 100%);}

.layout-left.layout-blue:before {background: linear-gradient(90deg, transparent 0%, #2258a5 50%);}
.layout-right.layout-blue:before {background: linear-gradient(90deg, #2258a5 50%, transparent 100%);}
.layout-blue {color: #fff;}

.layout-left.layout-white:before {background: linear-gradient(90deg, transparent 0%, #fff 50%);}
.layout-right.layout-white:before {background: linear-gradient(90deg, #fff 50%, transparent 100%);}

/* можно применить аналог .has-media-on-the-right */




.layout .wp-block-media-text__media {width: 50%; display: flex; align-items: center;}

.layout-right .wp-block-media-text__media {order: 11;}

.layout .wp-block-media-text__media img {display: block; max-width: 100%; border-radius: 0;}

.layout-left .wp-block-media-text__media {padding: 100px 50px 100px 150px;}
.layout-right .wp-block-media-text__media {padding: 100px 150px 100px 50px;}

.layout.image-bg .wp-block-media-text__media {z-index: -2; padding: 0;}

.image-bg .wp-block-media-text__media img {object-fit: cover; height: 100%; width: 100%;}

.layout.round img {border-radius: 30px; box-shadow: 4px 4px 4px rgb(17 17 17 / 10%);}




.layout .wp-block-media-text__content {width: 50%; display: flex; flex-direction: column; align-items: stretch; justify-content: center;}

.layout-left .wp-block-media-text__content {padding: 100px 150px 100px 50px;}
.layout-right .wp-block-media-text__content {padding: 100px 50px 100px 150px;}

.has-white-color .wp-block-media-text__content {color: #fff;}





.text-block > * {margin-bottom: 30px;}

.text-block > ul {margin-left: 50px;}
.text-block > ul li:not(:last-child) {margin-bottom: 10px;}

.text-block > *:last-child {margin-bottom: 0;}



.wp-block-group.layout {
    padding: 150px;
}

.wp-block-group.layout .wp-block-group__inner-container {
    width: 100%;
}


.has-text-align-center {text-align: center;}
.wp-block-group.layout .has-text-align-center {margin-bottom: 60px;}


#available-format, #brands-block {
    padding-bottom: 0;
}

.product-icons {
    display: flex;
    flex-wrap: wrap;
	justify-content: center;
	margin: 0 -30px -60px;
}

.product-icon {
    width: 25%;
    padding: 0 30px;
	text-align: center;
	margin-bottom: 60px;
}

.product-icon img {
    max-width: 150px;
    display: block;
    margin: 0 auto 30px;
}

.package .product-icon img {
    max-width: 300px;
    border: 1px solid #eee;
    box-shadow: 2px 2px 32px rgb(51 51 51 / 10%);
    border-radius: 20px;
}



/*body.home #main-block {
    background: url(/wp-content/uploads/2021/05/courbe-bleu-turquoise-2.jpg);
    background-size: cover;
    background-position: center;
}*/

body.home #main-block:before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(255 255 255 / 50%);
	background: radial-gradient(#fff, transparent);
}

body.home #main-block > a {opacity: 1;}

#bio .wp-block-media-text__content {
    padding: 200px 150px 200px 50px;
}
/* === Mobile language switcher fix === */
@media screen and (max-width: 800px) {
    #glinks {
        width: auto;
        min-width: 60px;
        flex-shrink: 0;
    }
    #glinks a {
        line-height: 1;
        padding: 4px 6px;
        font-size: 1.1rem;
        display: block;
    }
}

@media screen and (max-width: 480px) {
    #header-menu { width: 12%; }
    #header-logo { width: 52%; }
    #glinks {
        width: auto;
        min-width: 60px;
        border-left: 1px solid #eee;
        padding: 0 4px;
        display: flex;
        flex-direction: row;
        justify-content: center;
        align-items: center;
        gap: 2px;
    }
    #glinks a {
        line-height: 1;
        padding: 0 6px;
        height: 40px;
        font-size: 0.85rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    #header-search { width: 12%; }
}


/* ===== RESPONSIVE LAYOUT FIX ===== */

@media (max-width: 1024px) {
    .layout-left .wp-block-media-text__media  { padding: 60px 30px 60px 40px; }
    .layout-right .wp-block-media-text__media { padding: 60px 40px 60px 30px; }
    .layout-left .wp-block-media-text__content  { padding: 60px 40px 60px 30px; }
    .layout-right .wp-block-media-text__content { padding: 60px 30px 60px 40px; }
    .wp-block-group.layout { padding: 80px 40px; }
    .tiles > * { width: 50%; }
    .product-icon { width: 33.33%; }
}

@media (max-width: 768px) {
    .layout-left .wp-block-media-text__media,
    .layout-right .wp-block-media-text__media { padding: 30px 20px; }
    .layout-left .wp-block-media-text__content,
    .layout-right .wp-block-media-text__content { padding: 30px 20px; }
    .wp-block-group.layout { padding: 40px 20px; }
    .wp-block-media-text { display: block !important; }
    .wp-block-media-text .wp-block-media-text__media { width: 100% !important; margin-bottom: 15px; }
    .wp-block-media-text .wp-block-media-text__content { width: 100% !important; padding: 20px 15px !important; }
    .product-icon { width: 50%; }
    #promo-block, .promo { padding: 60px 30px; font-size: 1.4rem; }
    .promo h2 { font-size: 1.6rem; }
    .great { font-size: 3rem; }
    .big { font-size: 2.5rem; }
    .hwidth { width: 90%; }
}

@media (max-width: 480px) {
    .wp-block-group.layout { padding: 25px 15px; }
    .tiles > * { width: 100% !important; padding: 0 0 12px !important; }
    .tiles > * > a { display: flex !important; align-items: center; min-height: 90px; height: auto; border-radius: 8px; overflow: hidden; }
    .tile-image { width: 100px; min-width: 100px; height: 90px; overflow: hidden; flex-shrink: 0; }
    .tile-image img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0) !important; }
    .tile-text { padding: 12px; flex: 1; text-align: left; }
    .tile-text p { font-size: 0.85rem; margin-bottom: 0; }
    .products > * { width: 50%; }
    .product-icon { width: 50%; margin-bottom: 40px; }
    .product-icon img { max-width: 100px; }
    #promo-block, .promo { padding: 40px 20px; font-size: 1.2rem; border-radius: 0; }
    .promo h2 { font-size: 1.3rem; }
    .great { font-size: 2.2rem; }
    .big { font-size: 1.8rem; }
    .hwidth { width: 100%; }
    .fb-2 > *, .fb-3 > *, .fb-4 > * { width: 100%; }
    .text-block > * { margin-bottom: 20px; }
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }
    h3 { font-size: 1.1rem; }
    .container > div > h1 { margin-bottom: 40px; }
}


/* ===== LANG TOGGLE BUTTON ===== */
#glinks {
    display: flex;
    align-items: center;
    justify-content: center;
}

#lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 2px solid #0099a7;
    border-radius: 24px;
    background: transparent;
    color: #0099a7;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: all 0.2s ease;
    white-space: nowrap;
    user-select: none;
    font-family: inherit;
    line-height: 1;
    outline: none;
}

#lang-toggle i {
    font-size: 0.85rem;
}

#lang-toggle:hover {
    background: #0099a7;
    color: #fff;
}

/* Hide the original EN/RU links — toggle button does the work */
#glinks .glink {
    display: none !important;
}

/* Mobile: compact toggle */
@media screen and (max-width: 480px) {
    #lang-toggle {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    #glinks {
        min-width: 48px !important;
        width: auto !important;
        padding: 0 4px !important;
        border-left: 1px solid #eee;
    }
}
