/* стили для меню*/

:root {
	--menu-background-color:#FFD35C;
	--menu-link-text-color:black;
	--menu-link-underline-color:#F7F8F2;
	--hover-link-underline-border-color:#BCEDF6;
	--hover-link-underline-border-color:#4ACACF;
	--hover-link-text-color:black;
	--hover-link-background:#CFE795;
	--submenu-background-color:#D6F3FF;
}

.menu .block {
	padding:0 !important;
}

.fixedmenu {
	position: fixed;
	top:0;
	width:100%;
	display: none;
}


.fixedmenu > .menublock {
	margin: 0 auto;
    max-width: 1000px;
    min-height: 100%;
	width: 98%;
}

div.menublock {
background-color:var(--menu-background-color);
z-index:100000;
}

.menublock ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display:flex;
  flex-direction:row;
  justify-content: center;
  flex-flow: row wrap;
  
}

.menublock ul li {
  display: block;
  position: relative;
  display: inline-block;
  /*background: #0D6398;*/
  
}

div.menublock {
	border-radius: 0 0 20px 20px;
	
	-webkit-box-shadow: 0px 0px 15px 0px rgba(120,120,120,1);
-moz-box-shadow: 0px 0px 15px 0px rgba(120,120,120,1);
box-shadow: 0px 0px 15px 0px rgba(120,120,120,1);
}

.topmenu>li:first-child>a {
	border-radius: 0 0 0 20px;
}

.topmenu>li:last-child>a {
	border-radius: 0 0 20px 0;
}

.topmenu>li:first-child>a:hover {
	border-radius: 0 0 0 20px;
}

.topmenu>li:last-child>a:hover {
	border-radius: 0 0 20px 0;
}



.page .menu .block {
	padding:0 !important;
}

.fixedmenu {
	position: fixed;
	top:0;
	width:100%;
	display: none;
}


.fixedmenu > .menublock {
	margin: 0 auto;
    max-width: 1000px;
    min-height: 100%;
	width: 98%;
}








.menublock ul li {
  display: block;
  position: relative;
  display: inline-block;
  /*background: #0D6398;*/
  
}

.topmenu li {
text-align: right;
/*min-width: 105px;
width:16.5%; */
}

.submenu li  {
	width:auto;
}

.menublock li ul { display: none; visibility: hidden;}

.menublock ul li a {
  display: block;
  padding: 1em;
  text-decoration: none;
  white-space: nowrap;
  color: var(--menu-link-text-color);
  border-bottom: 3px solid rgba(255,255,255,0);
  text-align: left;
}

.menublock ul li ul a {
/*color:white;*/
}

.menublock ul li a span {
	border-bottom: 1px var(--menu-link-underline-color);
    border-bottom-style: solid;
    padding-bottom: 2px;
}

.menublock ul li a:hover { background: var(--hover-link-background); color:var(--hover-link-text-color);  border-bottom: 3px solid var(--hover-link-underline-border-color);} /* #2c3e50 */

/*.menublock li:hover { background: var(--hover-link-background); color:var(--hover-link-text-color);} /* #2c3e50 */


.menublock li:hover > ul {
  display: block;
  position: absolute;
  z-index: 100;
  left:0%;
  top:100%;
  
  max-height: 85vh;
  overflow-x: auto;
  
  /*transition: visibility 0s, opacity 0.2s linear;
  -webkit-transition: visibility 0s, opacity 0.2s linear;*/
  visibility: visible;
}

.menublock li li { display: block; }

.menublock li:hover a { background: var(--submenu-background-color);} /* #0D6398 */

.menublock li:hover li a:hover { background: var(--hover-link-background); color:var(--hover-link-text-color);}

.menu li ul li { border-top: 0; }

.menublock ul ul ul {
  left: 100%;
  top: 0;
}


/* окончание стилей для меню */

.showallbutton {
	display:none;
	}
	
.mobilemenubutton {
	display: none;
	position: fixed;
	top:10px;
	right:10px;
	padding:10px;
	font-size: 30px;
	border-bottom: unset;
	transform: rotate(90deg);
	width:25px;height:25px;
	color:black;
	
}

.mobilemenubutton:hover {
	color:unset;
}

a.active {
	background-color: rgb(255,197,91);
}

.menublockvisible {
	height:100vh;
	display: block !important;
}

@media screen and (max-width:900px) {
	.menublock ul li a {
		padding:1em 0.5em;
	}
	
}

@media screen and (max-width:900px) {
	/*.topmenu li:nth-child(3), .topmenu li:nth-child(4) {
		display: none;
	}*/
	
	.topmenu li {
		width: 100%;
	}
	
	.menublock ul li {
		display: block;
	}
	
	.mobilemenubutton {
		display: block;
	}
	
	.menublock ul.topmenu {
		display:none;
	}
	
	.menublock li > ul {
		display: block !important;
		position: unset !important;
	}
	
	.menublock li > ul {
		visibility: unset !important;
	}
	
	div.menublock {
		width:100%;
		max-height: calc(80vh - 60px);
		overflow-y: auto;
		
	}
	
	.menublock ul li a:hover {border-bottom: 3px solid transparent; color:black;}

	.menublock li:hover { }
	
	.menublock li:hover a { color:black;}

	.menublock li:hover li a:hover {color:black;} 
	
	.menublock {
		position: fixed !important;
		top:0;
		width:100vw;
		
		overflow-y: auto;
		
	}
	
	.menublock li {
		font-weight:bold;
	}
	
	.menublock li li {
		font-weight: normal !important;
	}
	
	:root {
	--hover-link-background:white;
	--submenu-background-color:white;
	}
}
