html,body{
  margin: 0; padding: 0;
}
nav,ul,li,a,span{
  z-index: 2;
  margin: 0;
  padding: 0;
}
body{
  font-family: sans-serif;
  font-size: 14px;
}
/*меню настрой*/
nav ul {
  background-color: #444;
  display: flex;
  flex-direction: column;
}
nav ul li {
  list-style-type: none;
}
nav ul li a{
  padding: .8rem 1rem;
  display: block;
  text-decoration: none;
  color: #f9f9f9;
}
nav ul li:hover{
  background-color: rgba(0,0,0, .25);
}

.arrow{
  font-family: FontAwesome;
  float: right;
}
.arrow-down::after{
  content: "\f107"
}

.arrow-right::after{
  content: "\f105"

}

@media only screen and (max-width: 480px){
  .has-children ul li a {
    padding-left: 2rem;
  }
  .has-children ul .has-children ul a{
    padding-left: 3rem;
  }
  .arrow-down::after{
  content: "\f107"
  }
}

@media only screen and (min-width: 480px){
  nav ul {
    flex-direction: row;
    justify-content: space-between;
  }
  nav ul li {
    position: relative;
    flex: 1 0 auto;
    text-align: center;
  }
  .has-children ul, .has-children ul .has-children ul {
    display: none;
    width: 100%;
    position: absolute;
  } 

  .has-children ul .has-children ul{
    left: 100%;
    top: 0;
  }

  nav ul li:hover ul, .has-children ul .has-children:hover ul{
    display: flex;
    flex-direction: column;
  }
}

