* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}


.smm {
  position:absolute;
  width: 100%;
  top: 0;
  left: 0;
  background-color: #fff;
  box-shadow: 0 5px 15px rgba(0,0,0,.5);
  z-index: 9999;
}

.smm ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.smm li {
  display: inline-block;
  position: relative;
}

.smm li > a {
  display: block;
  position: relative;
  padding: 6px 12px;
  color: #333;
}

.smm li > a:focus,
.smm li > a:hover {
  color: #000;
  text-decoration: none;
}

.smm__container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px;
  transition: background .4s ease, padding .4s ease;
}

.smm__logo-wrapper {
  margin: 0;
  transition: margin .4s ease;
}

.smm__toggle {
  border-radius: 0;
  border-color: #999;
    display: none;
}

.smm__toggle:focus,
.smm__toggle:hover,
.smm__toggle:active,
.smm__toggle:active:hover {
  color: #333;
  background-color: #fff;
  border-color: #999;
  box-shadow: none;
  outline: none;
}

.smm__collapse {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-grow: 1;
  padding-left: 30px;
}

.smm__primary-menu li > a:after {
  content: '';
  position: absolute;
  height: 2px;
  right: 12px;
  bottom: 4px;
  left: 12px;
  background-color: #d43f3a;
  transform: scale(0,1);
  transition: transform .25s ease;
}

.smm__primary-menu li:focus > a:after,
.smm__primary-menu li:hover > a:after {
  transform: scale(1,1);
}

.smm__primary-menu li > a > .fa {
  margin-right: 6px;
}

.smm__secondary-menu li:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  border-radius: 3px;
  transform: scale(0);
  transition: transform .25s ease;
}

.smm__secondary-menu li:nth-child(1):before {
  background-color: #000000;
}

.smm__secondary-menu li:nth-child(2):before {
  background-color: #BD3437;
}

.smm__secondary-menu li:nth-child(3):before {
  background-color: #000000;
}

.smm__secondary-menu li:nth-child(4):before {
  background-color: #BD3437;
}

.smm__secondary-menu li:focus:before,
.smm__secondary-menu li:hover:before {
  transform: scale(1);
}

.smm__secondary-menu li:focus > a,
.smm__secondary-menu li:hover > a {
  color: #fff;
}

.smm__secondary-menu li > a {
  font-size: 1.142em;
  transition: color .25s ease;
}

@media(max-width: 991px) {

.smm__toggle {
    border-radius: 0;
    border-color: #999;
    display: inline;
    width: auto;
    height: 40px;
    font-size: 25px;
    margin-right: 20px;
}
    
  .smm__container {
    padding: 10px 0;
  }

  .smm__container--open {
    position: fixed;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    top: 0;
    left: 0;
    overflow-y: auto;
    padding: 65px 65px 15px;
    background-color: rgba(255,255,255,.9);
  }

  .smm__container--open .smm__collapse {
    display: block;
    flex-grow: 0;
    padding-left: 0;
  }

  .smm__container--open .smm__logo-wrapper {
    margin-bottom: 15px;
    text-align: center;
  }

  .smm__toggle--open {
    position: fixed;
    top: 15px;
    right: 15px;
  }

  .smm__toggle--open > .fa:before {
    content: "\E805";
  }

  .smm__collapse {
    display: none;
  }

  .smm__primary-menu {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
  }

  ul.smm__primary-menu {
    margin-bottom: 30px;
  }

  .smm__primary-menu li > a {
    padding: 10px 12px;
  }

  .smm__secondary-menu {
    text-align: center;
  }
}

@media(max-width: 991px) and (max-height: 479px) {

  .smm__container--open {
    justify-content: flex-start;
  }
}