/*
JQuery Simple MobileMenu
https://github.com/Position2/jQuery-Simple-MobileMenu
*/
/*Main style*/
.submenu {
  padding: 0;
}

body.mmactive {
  overflow: hidden;
}

.menu {
  display: none;
  position: relative;
  padding: 0;
  margin: 50px 0 0;
}

.sm_menu_outer.active .menu {
  display: block;
}

.sm_menu_outer {
  height: calc(100vh - 60px);
  background-color: white;
  overflow-y: scroll;
  overflow-x: hidden;
  position: fixed;
  right: 0;
  top: 0;
  z-index: -9;
  height: 100vh;
  width: 100%;
  opacity: 0;
  -webkit-transition: opacity 0.2s;
  -moz-transition: opacity 0.2s;
  transition: opacity 0.2s;
}

.sm_menu_outer.active {
  opacity: 1;
  z-index: 999;
}

.sm_menu_outer .menu li.back a {
  padding: 20px 5px 20px 5px;
  color: #0367bc;
}
.sm_menu_outer .menu li.back a::before {
  content: '';
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M15 19L8 12L15 5' stroke='%230367bc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-size: 100%;
  width: 19px;
  height: 15px;
  margin-right: 10px;
}
.sm_menu_outer .menu a {
  color: black;
  display: block;
  padding: 10px 15px;
  text-decoration: none;
}

span.menu_arrow {
  padding: 16px;
  position: absolute;
  font-size: 0;
  right: 0;
  top: 0;

}

span.menu_arrow::before {
  position: relative;
  content: '';
  display: inline-block;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9 19L16 12L9 5' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  background-repeat: no-repeat;
  background-size: 100%;
  width: 19px;
  height: 15px;
}

/*Sub Menu anim */
.sm_menu_outer.slide .menu .submenu {
  background-color: white;
  height: 100%;
  position: absolute;
  right: -100%;
  top: 0;
  transition: all 0.5s ease 0s;
  width: 100%;
  z-index: 999;
}

.sm_menu_outer.slide .menu li.active>.submenu {
  right: 0;
}

.sm_menu_outer .menu li {
  list-style-type: none;
  border-bottom: 0.5px solid rgba(128, 128, 128, 0.623);
  color: #212121;
}
.sm_menu_outer .menu li:not(.back) {
  padding-left: 15px;
}

/*Hamburger Animation */
#sm_menu_ham {
  cursor: pointer;
  float: right;
  height: 25px;
  position: fixed;
  right: 5px;
  transform: rotate(0deg);
  transition: all 0.5s ease-in-out 0s;
  width: 30px;
  top: 23px;
  right: 15px;
  z-index: 9999;
}


#sm_menu_ham span {
  background-color: #0367bc;
  border-radius: 5px;
  display: block;
  height: 2px;
  left: 0;
  opacity: 1;
  position: absolute;
  -webkit-transform: rotate(0deg);
  -moz-transform: rotate(0deg);
  transform: rotate(0deg);
  -webkit-transition: all 0.25s ease-in-out 0s;
  -moz-transition: all 0.25s ease-in-out 0s;
  -o-transition: all 0.25s ease-in-out 0s;
  transition: all 0.25s ease-in-out 0s;
  width: 30px;
}

#sm_menu_ham span:nth-child(1) {
  top: 0;
}

#sm_menu_ham span:nth-child(2),
#sm_menu_ham span:nth-child(3) {
  top: 10px;
}

#sm_menu_ham span:nth-child(4) {
  top: 20px;
}

#sm_menu_ham.open span:nth-child(1) {
  left: 50%;
  top: 18px;
  width: 0;
}

#sm_menu_ham.open span:nth-child(2) {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  transform: rotate(45deg);
}

#sm_menu_ham.open span:nth-child(3) {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  transform: rotate(-45deg);
}

#sm_menu_ham.open span:nth-child(4) {
  left: 50%;
  top: 18px;
  width: 0;
}

.sm_menu_outer.accordion .menu .submenu,
.sm_menu_outer.accordion .menu li.hasChild ul.submenu {
  display: none;
}

.sm_menu_outer.accordion .menu .hasChild>.submenu li {
  padding-left: 20px;
}

.sm_menu_outer.accordion .menu li.active>.submenu {
  right: auto;
}

.sm_menu_outer.accordion .menu li.hasChild>a {
  position: relative;
}

.sm_menu_outer.accordion .menu li.hasChild>a::before {
  position: absolute;
  content: '';
  background: url("../images/next.png") no-repeat scroll 50% center / 60% auto;
  right: 0;
  top: 20px;
  width: 40px;
  height: 25px;
  transition: all 0.19s ease;
}

.sm_menu_outer.accordion .menu li.hasChild.active>a::before {
  transform: rotate(89deg);
  transition: all 0.19s ease;
}

@media (min-width: 992px) {

  #sm_menu_ham,
  .sm_menu_outer {
    display: none;
  }
}
.sm_menu_outer .addresses{
  position: absolute;
  bottom: 20px;
  z-index: 999;
  right: 15px;
}
.sm_menu_outer.accordion li {
  display: block;
}

@media (max-width: 600px) {
  .phones-messengers-wrap {
    display: flex;
    flex-direction: column;
  }

  .phones-messengers-wrap .phones {
    order: 1;
  }
}