ul.menu, ul.menu ul {
  list-style-type:none;
  margin: 0 auto;
  padding: 0;
  max-width: 300px;
}

ul.menu a {
  display: block;
  text-decoration: none;
  text-align: left;
  font-size: 18px;
}

ul.menu li {
    margin-top: 3px;
    font-size: 22px;
    text-align: center;
}

ul.menu li a, ul.menu ul.menu li a {	
  padding: 0.5em;
  padding-left:10px;
  /* закругленные углы пунктов меню */
  border-radius: 5px;
  -moz-border-radius: 5px;
  -webkit-border-radius: 5px;
  color: #ffffff;
  border: solid 1px #000000;
  background: #666666;
  /*background: -webkit-gradient(linear, left top, left bottom, from(#666666), to(#000));/* функция градиента для Webkit - браузеров */
  background: -moz-linear-gradient(top,  #666666,  #000);/* функция градиента для Firefox + */
  background-image: -o-linear-gradient(top,rgb(172,172,172),rgb(0,0,0));/* функция градиента для Opera 11 + */
  filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#666666', endColorstr='#000000');/* примочка для тупого IE */*/
}

ul.menu li a:hover, ul.menu ul.menu li a:hover { /* фон и градиент пунктов меню при наведении */
  background: #333333;
  /*background: -webkit-gradient(linear, left top, left bottom, from(#666666), to(#000));
  background: -moz-linear-gradient(top,  #666666,  #000);
  background-image: -o-linear-gradient(top,rgb(172,172,172),rgb(0,0,0));
  filter:  progid:DXImageTransform.Microsoft.gradient(startColorstr='#666666', endColorstr='#000000');*/
  padding-left: 15px;
}


ul.menu li ul li a, ul.menu ul.menu li ul li a {
  background: #ccc;
  color: #000;
  padding-left: 20px;
}

ul.menu li ul li a:hover, ul.menu ul.menu li ul li a:hover {
  background: #aaa;
  border-left: 5px #000 solid;
  padding-left: 15px;
}
ul.menu ul.menu li a:hover {
  border-left: 0;
  padding-left: 0.5em;
}
ul.menu ul.menu {
  border-left: 5px #f00 solid;
}
ul.menu a.active, ul.menu ul.menu li a.active, ul.menu a.active:hover, ul.menu ul.menu li a.active:hover {
    /* фон и градиент активных пунктов меню */
    background-position: 0% 0%;
    text-decoration: none;
    color: #faddde;
    border: solid 3px #980c10;
    -webkit-transform: scale(1.15);
    -moz-transform: scale(1.15);
    -o-transform: scale(1.15);
    -ms-transform: scale(1.15);
    transform: scale(1.15);
        -webkit-animation: moveFromBottom 500ms ease;
    -moz-animation: moveFromBottom 500ms ease;
    -ms-animation: moveFromBottom 500ms ease;
    margin-top: 5px;
    margin-bottom: 5px;
    background-image: -o-linear-gradient(top,  #ed1c24,  #aa1317);
    background-color: #d81b21;
    background-repeat: repeat;
    background-attachment: scroll;
    text-align: center;
      /* закругленные углы пунктов меню */
  border-radius: 15px;
  -moz-border-radius: 15px;
  -webkit-border-radius: 15px;
}
div.panel {
  border: 1px #000 solid;
  padding: 5px;
  margin-top: 1px;
}

ul.menu div.panel a, ul.menu div.panel li a:hover  {
  display :inline;
  color: #666;
  background: none;
  margin: 0;
  padding: 0;
  border: none;
  font-weight: bold;
}
ul.menu div.panel a:hover {
  color: #000;
  text-decoration: underline;
}
a.back{
	color:#777;
	font-size: 0.8em;
	position:fixed;
	bottom:20px;
	left:10px;
	text-decoration:none;
}

@-webkit-keyframes moveFromBottom {
    from {
        -webkit-transform: scaleY(200%) scale(0.8);
        opacity: 0;
    }
    to {
        -webkit-transform: scaleY(0%) scale(1);
        opacity: 1;        
    }
}
@-moz-keyframes moveFromBottom {
    from {
        -moz-transform: scaleY(200%) scale(0.8);
        opacity: 0;
    }
    to {
        -moz-transform: scaleY(0%) scale(1);
        opacity: 1;        
    }
}
@-ms-keyframes moveFromBottom {
    from {
        -ms-transform: scaleY(200%) scale(0.8);
        opacity: 0;
    }
    to {
        -ms-transform: scaleY(0%) scale(1);
        opacity: 1;        
    }
}

.LiNone {
    height:0px;
    border:none;
    visibility:collapse;
}
