/*   Menubar   */
header {width: 100%;}

.menubar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  height: 80px;
  margin: 0 auto;
  padding: 0 40px;
  z-index: 3;
}

div.menubarSeparator {
  width: 100%;
  height: 1px;
  background-color: rgba(0,0,0,.04);
  margin-bottom: 56px;
}

.menubar-up {top: -40px;}

.logo {
  width: 152px;
  height: 32px;
  background-image: url(../img/logo@2x.png);
  background-size: cover;
  background-repeat: no-repeat;
}

.menuContainer .menu li {
  position: relative;
  display: inline-block;
  line-height: 80px;
  margin-right: 40px;
}

.menuContainer .menu li:last-of-type {margin-right: 0;}

.menuContainer .menu li a {
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  color: #1A1A1A;

  -webkit-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  -moz-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  -o-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
  transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

.menuContainer .menu li a:hover {color: #00AB6B;}

.menuContainer .menu .menu__element-acitve,
.menu__element-acitve {
  position: relative;
}

.menuContainer .menu .menu__element-acitve a,
.menu__element-acitve a {
  color: #00AB6B;
}

.menuContainer .menu .menu__element-acitve::before,
.menu__element-acitve::before {
  position: absolute;
  top: 1px;
  left: -10px;
  content: '•';
  color: #00AB6B;
}

.menu-header-menu {position: relative;}

.menuContainer .menu .current-menu-item a {color: #00AB6B;}

.current-menu-item:after {
  position: absolute;
  top: 1px;
  left: -10px;
  content: '•';
  color: #00AB6B;
}

.menuContainer .menu .menu-item-object-post_tag a {padding-left: 9px;}

.menuContainer .menu .menu-item-object-post_tag a:after {
  position: absolute;
  top: 0;
  left: 0px;
  content: '#';
}

.menuButton {
  display: none;
  width: 32px;
  height: 32px;
}

.btn-menu {padding-left: 0;}

.searchButton {
  width: 152px;
  height: 32px;
  position: relative;
  display: flex;
  justify-content: flex-end;
  z-index: 4;
}

.searchButton button,
.menuButton button,
.btn--search-close {
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
}

.searchButton button span,
.menuButton button span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
}

/* for-phone-only */
@media only screen and (max-width: 599px) {
  .menubar {
    height: 80px;
    padding: 0 24px;
  }

  .logo {
    width: 120px;
    height: 25px;
  }

  .menuContainer {display: none;}
  .menuButton {display: inherit;}
  .searchButton {width: 32px;}
}

/* for-tablet-portrait-up */
@media only screen and (min-width: 600px) and (max-width: 1023px) {
  .menubar {height: 80px;}

  .logo {
    width: 152px;
    height: 32px;
  }

  .menuContainer {display: none;}
  .menuButton {display: inherit;}
  .searchButton {width: 32px;}
}

/* Отдельный media-запрос для menubar */
@media only screen and (min-width: 1024px) {
  .menuContainer {display: inherit;}
  .menuButton {display: none;}
}

/* for-tablet-desktop-up */
@media only screen and (min-width: 1200px) {
  .menuButton {display: none;}
}

/*   Footer   */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1240px;
  height: 160px;
  margin: 0 auto;
  padding: 0 40px;
}

.socialBtn {
  display: inline-block;
  width: 32px;
  height: 32px;
  background-color: #F7F7F7;
  border-radius: 32px;
  line-height: 29px;
  text-align: center;
  color: #7B7B7B;
}

.socialBtn i {
  font-size: 13px;
  color: #7B7B7B;
}

.socialIcon {
  font-size: 13px;
  line-height: 32px;
  color: rgba(0,0,0,0.20);

  -webkit-transition: color 0.3s ease-in-out;
  -moz-transition: color 0.3s ease-in-out;
  -o-transition: color 0.3s ease-in-out;
  transition: color 0.3s ease-in-out;
}

.socialBtn:hover .socialIcon {color: #00AB6B;}

.footer__socials {
  width: 152px;
  display: flex;
  justify-content: space-between;
}

/* for-phone-only */
@media only screen and (max-width: 599px) {
  .footer {
    flex-direction: column;
    justify-content: flex-start;
    padding: 0 24px;
  }

  .footer .logo {
    margin-top: 40px;
    margin-bottom: 24px;
  }
}

/* for-tablet-portrait-up */
@media only screen and (min-width: 600px) {
  .footer {padding: 0 40px;}
}
