/*СТИЛИ НАВИГАЦИИ*/
/*drop menu*/
.menubox{margin: 0 auto 0 auto; background: rgba(255, 255, 255, 0.95);}

.menubox input[type=checkbox], .menutopbox input[type=checkbox] {display: none;}
@media screen and (max-width: 1000px) {
.menubox{font-size: 75%;}
   
}
@media screen and (max-width: 720px) {
.menubox{display: none;}

}
.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: tahoma;
  color:white
}

.menu a, .menu span {
  text-decoration: none;
  outline: none;
  display: block;
  transition: .4s ease-in-out;
  color:white;
  color: rgb(3, 78, 162);
}

.menu a:hover {
  color:#A22103;
}
.menu .topmenu {
  text-align: center;
  padding: 2px 0;
}

.menu .topmenu > li {
  display: inline-block;
  position: relative;
}
.menu .topmenu > li:after {
  content: "";
  position: absolute;
  right: -2px;
  width: 2px;
  height: 14px;
  background: #CCC;
  top: 14px;

}
.menu .topmenu > li:last-child:after {
  background: none;
  box-shadow: none;
}
.menu .topmenu > li > a, .menu .topmenu > li > span {
  padding: 12px 4px;
  text-transform: uppercase;
  font-weight: bold;
  letter-spacing: 1px;

}
.menu .submenu {
  position: absolute;
  /*left: 0%;*/
  top: 100%;
  width: 210px;
  margin-left: 0px;
  background: white;
  border: 1px solid #034EA2;
  z-index: 500;
  visibility: hidden;
  opacity: 0;
  transform: scale(.8);
  transition: .4s ease-in-out;
  text-align: left;
}

.menu .submenu li a {
  padding: 10px 0;
  margin: 0 10px;
  border-bottom: 1px solid #efefef;
}
.menu .topmenu > li:hover .submenu {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
}
@media screen and (max-width: 1100px) {
.menu #lastitem {position:absolute; right: 0;}  
}

@media screen and (max-width: 800px) {
.menu .submenu{display:none;}
.menu #lastitem {position:absolute; right: 0;}
.menu .topmenu > li:hover .submenu {display: block;}   
}



/*left-menu*/

#right-panel {
    background: #0063AF;
    color: #CCC;
    width: 320px; 
    min-height: 100vh;
    overflow: hidden;
    padding: 36px 24px;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.16),0 2px 10px 0 rgba(0,0,0,0.12);
    transition: left 1000ms cubic-bezier(0.17,0.04,0.03,0.94);
    font-size: larger;
    z-index: 160;
    
}
.right-panel-top {top: 0; position: absolute;}
.right-panel-bottom{bottom: 0; position: fixed;}
#right-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: tahoma;
  color:white
}
#right-panel .topmenu li {margin: 0.8em 0; border-bottom: 1px dotted #DDD; padding-bottom: 8px; min-height: 42px;}
#right-panel .submenu{font-size: 85%;}
#right-panel .submenu li{padding:0 0 4px 8px; margin-bottom: 4px; border-bottom: 0; min-height: 12px;}
#right-panel a {color: white; text-decoration: none;}
.right-panel-hide{left: -398px;}
.right-panel-show{left: 0px;}
#rmenu-show {cursor: pointer;}
.closekey{text-align: right;}



#right-panel  .topmenu {
  list-style: none;
  perspective: 900;

}
#right-panel  .topmenu li {
  position: relative; 

}
#right-panel  .topmenu li:nth-of-type(1) {
  animation-delay: 0.5s;
}
#right-panel  .topmenu li:nth-of-type(2) {
  animation-delay: 0.75s;
}
#right-panel  .topmenu li:nth-of-type(3) {
  animation-delay: 1s;
}

#right-panel  .topmenu li i {
  position: absolute;
  transform: translate(-6px, 0);
  margin-top: 8px;
  right: 0;
}
#right-panel  .topmenu li i:before, #right-panel .topmenu li i:after {
  content: "";
  position: absolute;
  background-color: #F4FCFE;
  width: 3px;
  height: 12px;
}
#right-panel .topmenu li i:before {
  transform: translate(-3px, 0) rotate(45deg);
}
#right-panel .topmenu li i:after {
  transform: translate(3px, 0) rotate(-45deg);
}
#right-panel  ul li input[type=checkbox] {
  position: absolute;
  right: 0px;
  top: -2px;
  cursor: pointer;
  width: 320px;
  height: 30px;
  z-index: 1;
  opacity: 0;
}

#right-panel  .topmenu li ~ .submenu {
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translate(0, 0);
  z-index: 2;
}
#right-panel  .topmenu li input[type=checkbox]:checked ~ .submenu {
  margin-top: 0;
  max-height: 0;
  opacity: 0;
  transform: translate(0, 50%);
}


#right-panel  .topmenu li input[type=checkbox]:checked ~ i:before {
  transform: translate(3px, 0) rotate(45deg);
}
#right-panel  .topmenu li input[type=checkbox]:checked ~ i:after {
  transform: translate(-3px, 0) rotate(-45deg);
}

@keyframes flipdown {
  0% {
    opacity: 0;
    transform-origin: top center;
    transform: rotateX(-90deg);
  }
  5% {
    opacity: 1;
  }
  80% {
    transform: rotateX(8deg);
  }
  83% {
    transform: rotateX(6deg);
  }
  92% {
    transform: rotateX(-3deg);
  }
  100% {
    transform-origin: top center;
    transform: rotateX(0deg);
  }
}