.dws-menu *{
 margin: 0;
 padding: 0;
}
.dws-menu ul,
.dws-menu ol{
 list-style: none;
}
.dws-menu > ul{
 display: flex;
 justify-content: center;
}
.dws-menu > ul li{
 position: relative;
 border-right: 1px solid #c7c8ca;
 border-radius: 4px;
}
.dws-menu > ul li:first-child{
// border-left: 1px solid #b2b3b5;
}
.dws-menu > ul li:last-child{
// border-right: 1px solid #babbbd;
}
.dws-menu > ul li > a i.fa{
 position: absolute;
 top: 7px;
 left: 5px;
 font-size: 14px;
 }
.dws-menu > ul li a{
 display: block;
 /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#c9c9c9+0,f6f6f6+2,c4c5c7+98,757577+100;Custom+3 */
 background: rgb(201,201,201); /* Old browsers */
 background: -moz-linear-gradient(top,  rgba(225,237,236,1) 0%, rgba(225,237,236,1) 2%, rgba(225,237,236,1) 98%, rgba(117,117,119,1) 100%); /* FF3.6-15 */
 background: -webkit-linear-gradient(top,  rgba(225,237,236,1) 0%,rgba(225,237,236,1) 2%,rgba(225,237,236,1) 98%,rgba(117,117,119,1) 100%); /* Chrome10-25,Safari5.1-6 */
 background: linear-gradient(to bottom,  rgba(225,237,236,1) 0%,rgba(225,237,236,1) 2%,rgba(225,237,236,1) 98%,rgba(117,117,119,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c9c9c9', endColorstr='#757577',GradientType=0 ); /* IE6-9 */
 padding: 6px 5px 10px 25px;
 font-size: 13px;
      font-family: Candara, sans-serif;
 color:#386161;
 text-decoration: none;
 text-transform:uppercase;
 transition: all 0.3s ease;
 box-shadow: 0px 0px 0px 1px #c7c8ca;
 border-radius: 4px;
 text-shadow: 0px 0px 1px #67c7c2;
//    box-shadow: inset 0 0 3px rgba(74, 135, 135, 0.5), 0 1px 3px rgba(56, 97, 97, 0.3);
}

.dws-menu li a:hover{
 /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#e0e1e5+0,454547+2,454547+98,e0e1e5+100 */
 background: rgb(224,225,229); /* Old browsers */
// background: -moz-linear-gradient(top,  rgba(56,97,97,1) 0%, rgba(56,97,97,1) 2%, rgba(56,97,97,1) 98%, rgba(224,225,229,1) 100%); /* FF3.6-15 */
// background: -webkit-linear-gradient(top,  rgba(56,97,97,1) 0%,rgba(56,97,97,1) 2%,rgba(56,97,97,1) 98%,rgba(224,225,229,1) 100%); /* Chrome10-25,Safari5.1-6 */
// background: linear-gradient(to bottom,  rgba(56,97,97,1) 0%,rgba(56,97,97,1) 2%,rgba(56,97,97,1) 98%,rgba(224,225,229,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
background: -moz-linear-gradient(top,  rgba(58,107,107,1) 0%, rgba(58,107,107,1) 2%, rgba(58,107,107,1) 98%, rgba(224,225,229,1) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top,  rgba(58,107,107,1) 0%,rgba(58,107,107,1) 2%,rgba(58,107,107,1) 98%,rgba(224,225,229,1) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom,  rgba(58,107,107,1) 0%,rgba(58,107,107,1) 2%,rgba(58,107,107,1) 98%,rgba(224,225,229,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e0e1e5', endColorstr='#e0e1e5',GradientType=0 ); /* IE6-9 */
 color: #ffffff;
 box-shadow: 1px 6px 15px -5px black;
 transition: all 0.3s ease;
 text-shadow: 1px 0px 1px black;
}

/*sub menu*/
.dws-menu li ul{
 position: absolute;
 min-width: 200px;
 display: none;
}
.dws-menu li > ul li{
 border: 1px solid #c7c8ca;
}
.dws-menu li > ul li a{
 padding: 10px;
 text-transform: none;
 background: #e1edec;
}
.dws-menu li > ul li ul{
 position: absolute;
/* right: -150px;*/
 left: 199px;
 top: -1px;
}
.dws-menu li:hover > ul{
 display: block;
}

/*search*/
.dws-menu .search-container {
    position: relative; /* Change the position to avoid overlapping content */
    display: flex;
}


/*==== MEDIA ====*/
.dws-menu [type="checkbox"],
.dws-menu label.toggleSubmenu{
 display: none;
}
.dws-menu label.toggleMenu{
 /* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#c9c9c9+0,f6f6f6+2,c4c5c7+98,757577+100;Custom+3 */
 background: rgb(201,201,201); /* Old browsers */
 background: -moz-linear-gradient(top,  rgba(225,237,236,1) 0%, rgba(225,237,236,1) 2%, rgba(225,237,236,1) 98%, rgba(117,117,119,1) 100%); /* FF3.6-15 */
 background: -webkit-linear-gradient(top,  rgba(225,237,236,1) 0%,rgba(225,237,236,1) 2%,rgba(225,237,236,1) 98%,rgba(117,117,119,1) 100%); /* Chrome10-25,Safari5.1-6 */
 background: linear-gradient(to bottom,  rgba(225,237,236,1) 0%,rgba(225,237,236,1) 2%,rgba(225,237,236,1) 98%,rgba(117,117,119,1) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
 filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#c9c9c9', endColorstr='#757577',GradientType=0 ); /* IE6-9 */
 display: none;
 padding: 15px 40px;
 text-transform: uppercase;
 font-size: 14px;
 cursor: pointer;
 position: relative;
}

.dws-menu label.toggleMenu .fa{
 position: absolute;
 top: 15px;
 left: 12px;
 font-size: 18px;
}

@media all and (max-width: 1200px) {
  /* стили для разрешений до 1200px */
.dws-menu > ul li > a i.fa{
    font-size: 9px;
    justify-content: center;
}

.dws-menu > ul li a{
font-size:8px;
}

#quit {
 height: 28px; 
}

#search_button {
font-size:9px;
height: 28px; 
}

}

/*@media only screen and (max-width: 800px) {*/
@media all and (max-width: 800px){

.dws-menu > ul li a{
font-size:12px;
//padding: 6px 5px 10px 30px;
margin: 0 0 0.7pt 0;
}

.dws-menu > ul li > a i.fa{
font-size:12px;
    justify-content: center;
}

.dws-menu label.toggleMenu .fa{
font-size: 14px;
}

 .dws-menu{
  padding: 0 0 0 1px;
//  margin: -2px 0 0 0;
  overflow: hidden;
 }

 .dws-menu ul{
  display: block;
  max-height: 0;
  transition: max-height 0.3s;
 }
 .dws-menu li>ul li ul{
  position: absolute;
  top: auto;
  left: 0px;
}

 .dws-menu label.toggleMenu{
  display: block;
    border-radius: 2px;

 }

 input.toggleMenu:checked + label.toggleMenu{
 background: linear-gradient( #4a8787, #386161);
  color: #fff;
 }

 input.toggleMenu:checked ~ ul,
 input.toggleSubmenu:checked ~ ul{
  display: block;
  position: relative;
  max-height: 5000px;
  transition: max-height 2s ease-in;
 }
 .dws-menu label.toggleSubmenu{
 position: absolute;
  top: -3px;
  right: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  display: block;
 }

 input.toggleSubmenu:checked ~ a{
  background: linear-gradient( #4a8787, #386161);
  color: #fff;
 }
 .dws-menu label.toggleSubmenu .fa:before{
  content: "\f0d7";
  color: #454547;
 }
 .dws-menu label.toggleSubmenu .fa{
  position: absolute;
  top: 15px;
  right: 30px;
 }
 .dws-menu input.toggleSubmenu:checked ~ label.toggleSubmenu .fa::before{
  content: "\f0d8";
  color: #fff;
 }

.dws-menu .search-container {
    height: 100%;
    height: 27px;
    overflow: hidden;
    position: relative; /* Change the position to avoid overlapping content */
    left: 0px;
  }

/*---search---*/


}

