/*adaptive style*/

.sm-blue {
  background: #393939; /*#1d327e;*/
  /*box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);*/
}
.sm-blue a, .sm-blue a:hover, .sm-blue a:focus, .sm-blue a:active {
  padding: 7px 15px;
  /* make room for the toggle button (sub indicator) */
  padding-right: 58px;
  color: #a3a3a3;
  text-decoration: none;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.2);
}
.sm-blue a.current {
  color: #fff;
}
.sm-blue a.disabled {
  color: #a1d1e8;
}
.sm-blue a .sub-arrow {
  position: absolute;
  top: 50%;
  margin-top: -17px;
  left: auto;
  right: 4px;
  width: 34px;
  height: 34px;
  overflow: hidden;
  font: bold 16px/34px monospace !important;
  text-align: center;
  text-shadow: none;
  background: rgba(0, 0, 0, 0.1);
  border-radius: 4px;
}
.sm-blue a .sub-arrow::before {
  content: '+';
}
.sm-blue a.highlighted .sub-arrow::before {
  content: '-';
}
.sm-blue > li:first-child > a, .sm-blue > li:first-child > :not(ul) a { }
.sm-blue > li:last-child > a, .sm-blue > li:last-child > *:not(ul) a, .sm-blue > li:last-child > ul, .sm-blue > li:last-child > ul > li:last-child > a, .sm-blue > li:last-child > ul > li:last-child > *:not(ul) a, .sm-blue > li:last-child > ul > li:last-child > ul, .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > a, .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a, .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul, .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a, .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a, .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul, .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a, .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a, .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul { }
.sm-blue > li:last-child > a.highlighted, .sm-blue > li:last-child > *:not(ul) a.highlighted, .sm-blue > li:last-child > ul > li:last-child > a.highlighted, .sm-blue > li:last-child > ul > li:last-child > *:not(ul) a.highlighted, .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted, .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a.highlighted, .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted, .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a.highlighted, .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > a.highlighted, .sm-blue > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > ul > li:last-child > *:not(ul) a.highlighted {
  border-radius: 0;
  }

.sm-blue ul {  background: #4c4c4c; }
.sm-blue ul ul {  background: rgba(102, 102, 102, 0.1); }

.sm-blue ul a, .sm-blue ul a:hover, .sm-blue ul a:focus, .sm-blue ul a:active {
  background: transparent;
  color: #c1c1c1;
  text-shadow: none;
  border-left: 8px solid transparent;
}
.sm-blue ul a.current {
  background: #006892;
  background-image: linear-gradient(to bottom, #006188, #006f9c);
  color: #fff;
}
.sm-blue ul a.disabled {
  color: #b3b3b3;
}
.sm-blue ul ul a,
.sm-blue ul ul a:hover,
.sm-blue ul ul a:focus,
.sm-blue ul ul a:active {
  border-left: 16px solid transparent;
}
.sm-blue ul ul ul a,
.sm-blue ul ul ul a:hover,
.sm-blue ul ul ul a:focus,
.sm-blue ul ul ul a:active {
  border-left: 24px solid transparent;
}
.sm-blue ul ul ul ul a,
.sm-blue ul ul ul ul a:hover,
.sm-blue ul ul ul ul a:focus,
.sm-blue ul ul ul ul a:active {
  border-left: 32px solid transparent;
}
.sm-blue ul ul ul ul ul a,
.sm-blue ul ul ul ul ul a:hover,
.sm-blue ul ul ul ul ul a:focus,
.sm-blue ul ul ul ul ul a:active {
  border-left: 40px solid transparent;
}
.sm-blue ul li {
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}
.sm-blue ul li:first-child {
  border-top: 0;
}

/*fullscreen styles*/
@media (min-width: 950px) {
  /* start... (it's not recommended editing these rules) */
	  .sm-blue ul {		position: absolute;		width: 12em;	  }
	  .sm-blue li {		float: left;	  }
	  .sm-blue ul li, .sm-blue.sm-rtl ul li, .sm-blue.sm-vertical li {		float: none;	  }
	  .sm-blue a {		white-space: nowrap; 	  }
	  .sm-blue ul a, .sm-blue.sm-vertical a {		white-space: normal;	  }
	  .sm-blue .sm-nowrap > li > a, .sm-blue .sm-nowrap > li > :not(ul) a {		white-space: nowrap;	  }
	  /* ...end */

#menu{text-align:center; }
#main-nav{display:inline-block; }

	  .sm-blue {display:inline-block; text-align:center; background: none; position:relative; top:4px; }
	  .sm-blue li {display:inline-block; }
	  .sm-blue a, .sm-blue a:hover, .sm-blue a:focus, .sm-blue a:active, .sm-blue a.highlighted {
		padding: 15px 10px;
		color: #a3a3a3;
		font-size:1.0em;
	  }
	  .sm-blue a:hover, .sm-blue a:focus, .sm-blue a:active, .sm-blue a.highlighted {
		background: #000; color:#fff; 
		/*background-image: linear-gradient(to bottom, #7f7673, #635853);*/
	  }
	  .sm-blue a.current {
		background: #000;
		color: #fff;
	  }
	  .sm-blue a.disabled {
		color: #d7ceca;
	  }
	  .sm-blue a .sub-arrow {
		top: auto;
		margin-top: 0;
		bottom: 2px;
		left: 50%;
		margin-left: -5px;
		right: auto;
		width: 0;
		height: 0;
		border-width: 5px;
		border-style: solid dashed dashed dashed;
		border-color: #a3a3a3 transparent transparent transparent;
		background: transparent;
		border-radius: 0;
	  }
	  .sm-blue a .sub-arrow::before {
		display: none;
	  }
	  .sm-blue > li:first-child > a, .sm-blue > li:first-child > :not(ul) a {	  }
	  .sm-blue > li:last-child > a, .sm-blue > li:last-child > :not(ul) a {	  }
	  .sm-blue > li:first-child { border-left: 0; }

/*dropped*/
	  .sm-blue ul {
		border: none;
		padding: 7px 0;
		background: #202020;
		border-radius: 0!important;
		box-shadow: 0 10px 12px rgba(0, 0, 0, 0.5);
	  }
	  .sm-blue ul ul {
		border-radius: 4px !important;
		background: #fff;
	  }
	  .sm-blue ul a, .sm-blue ul a:hover, .sm-blue ul a:focus, .sm-blue ul a:active, .sm-blue ul a.highlighted {
		border: 0 !important;
		padding: 9px 23px;
		background: transparent;
		color: #a3a3a3;
		border-radius: 0 !important;
	  }
	  .sm-blue ul a:hover, .sm-blue ul a:focus, .sm-blue ul a:active, .sm-blue ul a.highlighted {
		color: #fff; text-decoration:none; }
	  .sm-blue ul a.current {
		background: #006892;
		background-image: linear-gradient(to bottom, #006188, #006f9c);
		color: #fff;
	  }
	  .sm-blue ul a.disabled {
		background: #fff;
		color: #b3b3b3;
	  }
	  .sm-blue ul a .sub-arrow { /*стрелки выпавшего меню*/
		top: 50%;
		margin-top: -5px;
		bottom: auto;
		left: auto;
		margin-left: 0;
		right: 10px;
		border-style: dashed dashed dashed solid;
		border-color: transparent transparent transparent #1d327e;
	  }
	  .sm-blue ul a.current .sub-arrow { /*стрелки выпавшего меню*/
		border-color: transparent transparent transparent #fff;
	  }
	  .sm-blue ul li {
		border: 0;
	  }
	  .sm-blue .scroll-up,
	  .sm-blue .scroll-down {
		position: absolute;
		display: none;
		visibility: hidden;
		overflow: hidden;
		background: #fff;
		height: 20px;
	  }
	  .sm-blue .scroll-up-arrow,
	  .sm-blue .scroll-down-arrow {
		position: absolute;
		top: -2px;
		left: 50%;
		margin-left: -8px;
		width: 0;
		height: 0;
		overflow: hidden;
		border-width: 8px;
		border-style: dashed dashed solid dashed;
		border-color: transparent transparent #564e4b transparent;
	  }
	  .sm-blue .scroll-down-arrow {
		top: 6px;
		border-style: solid dashed dashed dashed;
		border-color: #564e4b transparent transparent transparent;
	  }
	  .sm-blue.sm-rtl.sm-vertical a .sub-arrow {
		right: auto;
		left: 10px;
		border-style: dashed solid dashed dashed;
		border-color: transparent #a1d1e8 transparent transparent;
	  }
	  .sm-blue.sm-rtl > li:first-child > a, .sm-blue.sm-rtl > li:first-child > :not(ul) a {
	  }
	  .sm-blue.sm-rtl > li:last-child > a, .sm-blue.sm-rtl > li:last-child > :not(ul) a {
	  }
	  .sm-blue.sm-rtl > li:first-child {
		border-left: 1px solid #564e4b;
	  }
	  .sm-blue.sm-rtl > li:last-child {
		border-left: 0;
	  }
	  .sm-blue.sm-rtl ul a .sub-arrow {
		right: auto;
		left: 10px;
		border-style: dashed solid dashed dashed;
		border-color: transparent #a1d1e8 transparent transparent;
	  }
	  .sm-blue.sm-vertical {box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
	  .sm-blue.sm-vertical a {padding: 9px 23px;  }

	  .sm-blue.sm-vertical a .sub-arrow {
		top: 50%;
		margin-top: -5px;
		bottom: auto;
		left: auto;
		margin-left: 0;
		right: 10px;
		border-style: dashed dashed dashed solid;
		border-color: transparent transparent transparent #a1d1e8;
	  }
	  
	  .sm-blue.sm-vertical > li:first-child > a, .sm-blue.sm-vertical > li:first-child > :not(ul) a {  }
	  .sm-blue.sm-vertical > li:last-child > a, .sm-blue.sm-vertical > li:last-child > :not(ul) a {  }
	  .sm-blue.sm-vertical > li {border-left: 0 !important;  }
	  .sm-blue.sm-vertical ul {border-radius: 4px !important;  }
	  .sm-blue.sm-vertical ul a {padding: 9px 23px;  }
}

#menu{display:block; position:relative; width:100%; }
.nav-toggle-box{display:none; background:/*#1d337f*/none; color:#fff; height:42px;  }
#nav-toggle {position: relative; display:block; height:40px; background:url('menu.png') no-repeat center; cursor:pointer; } 
#nav-toggle.active {background:url('menuClose.png') no-repeat right center; font-size:0; } 

/* класс, который будет добавлен в верхнему меню при нажатии на кнопку и покажет скрытое меню*/
#menu.active {display:block; margin-top:0px; max-height: 600px; width:100%; }

.sm-blue a:hover{cursor:pointer; }
.sm-blue ul a:hover{cursor:pointer; }

@media (max-width:950px){
/* скрываем верхнее меню, отменяем обтекание, позиционируем его, сместив на высоту шапки сайта */ 
	#menu {display: none; max-height:0; position: absolute; }
	.nav-toggle-box{display:block; }
	.sm-blue a:hover{background:#202020; cursor:pointer; color:#fff; }
	.sm-blue ul a:hover{background:#2e2e2e; cursor:pointer; color:#fff; }

}

