<header>
<div class="container">
<div class="wrap-for-mobile">
<a class="logo">
<img src="">
</a>
</div>
<nav>
<ul></ul>
</nav>
</div>
</header>
@media (min-width: desktop) {
.container {
display: flex;
flex-direction: row;
justify-content: space-between;
max-width: 960px;
margin: 0 auto;
padding: 0 20px;
}
}
@media (min-width: mobile) {
.container {
display: flex;
flex-direction: column;
width: 100%;
padding: 0;
margin: 0;
}
.wrap-for-mobile {
padding: 0 20px;
}
}