.sub-menu {
  background: #fff;
  display: none;
  position: absolute;
  z-index: 50;
  left: 0;
  right: 0;
  top: 100%;
  padding: 10px;
  border-bottom: 1px #8d8d8d solid;
  box-sizing: border-box;
}
.sub-menu__item {
  position: relative;
  -ms-flex: 1 1 0px;
      flex: 1 1 0px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-direction: column;
      flex-direction: column;
  opacity: 0;
}
.sub-menu__item--hidden {
  max-width: 340px;
}
.sub-menu__item--back-button {
  display: none;
}
.sub-menu__item--tablet {
  display: none;
}
.sub-menu__item--mobile {
  display: none;
}
.sub-menu__link {
  background: #f4f4f4;
  padding: 20px 50px;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-align: center;
      align-items: center;
  font-weight: 700;
  font-size: 20px;
  color: #000;
  letter-spacing: 1px;
  line-height: 24px;
  font-family: 'DINCondensed', sans-serif;
  text-transform: uppercase;
}
.sub-menu--expanded {
  display: block;
}
.sub-menu--expanded .sub-menu__item {
  animation-name: fade-in;
  animation-duration: .7s;
  animation-delay: .2s;
  animation-fill-mode: forwards;
}
.sub-menu--open-enter-active {
  animation: fade-in 0.35s;
}
.sub-menu--open-leave-active {
  animation: fade-out 0.3s;
}
@media (max-width: 1366px) {
  .sub-menu__item--hidden {
    max-width: 260px;
  }
}
@media (max-width: 1024px) {
  .sub-menu__item--hidden {
    max-width: 200px;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .sub-menu__item--desktop {
    display: none;
  }
  .sub-menu__item--tablet {
    display: block;
    -ms-flex-positive: 0.6;
        flex-grow: 0.6;
  }
  .sub-menu__item--tablet .support-features {
    padding-left: 0;
  }
  .sub-menu__item--tablet .support-features__title,
  .sub-menu__item--tablet .support-features__description,
  .sub-menu__item--tablet .support-features__image {
    padding-left: 20px;
  }
  .sub-menu__item--tablet .support-features__description {
    margin-bottom: 25px;
  }
  .sub-menu__item--tablet .support-features__image img {
    height: 100px;
  }
}
@media (max-width: 768px) {
  .sub-menu {
    display: none;
    top: 0;
    height: calc(100vh - 60px);
    width: 100%;
    left: 100%;
    padding: 0;
    border: none;
    -ms-flex-direction: column;
        flex-direction: column;
    background-color: #f4f4f4;
    right: auto;
  }
  .sub-menu__item {
    padding: 0;
    -ms-flex: 0 0 auto;
        flex: 0 0 auto;
    opacity: 1;
    border-bottom: 1px #e1e1e1 solid;
  }
  .sub-menu__item > a {
    font-size: 1.6rem;
    font-weight: 700;
    display: block;
    padding: 22px 20px;
    line-height: 1;
    letter-spacing: 0.8px;
    color: #000;
  }
  .sub-menu__item > a:hover {
    background-color: #f4f4f4;
  }
  .sub-menu__item > a:active {
    background-color: #e6e6e6;
  }
  .sub-menu__item--desktop {
    display: none;
  }
  .sub-menu__item--mobile {
    display: block;
  }
  .sub-menu__item--back-button {
    display: block;
    padding: 21.5px 20px;
    position: relative;
    color: transparent;
    cursor: pointer;
  }
  .sub-menu__item--back-button::before {
    content: '';
    position: absolute;
    top: calc(50% - 8px);
    width: 10px;
    height: 16px;
    left: 20px;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg width='10' height='16' viewBox='0 0 10 16' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8.278 16l1.568-1.516L3.139 8l6.707-6.484L8.278 0 0 8z' fill-rule='nonzero' fill='%23ED0F00'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
  .sub-menu__item--back-button:active,
  .sub-menu__item--back-button:hover {
    background-color: #e6e6e6;
  }
  .sub-menu__item--hidden {
    display: -ms-flexbox;
    display: flex;
  }
  .sub-menu__item--hidden:last-child {
    display: none;
  }
  .nav__item--support .sub-menu__item:nth-last-child(2),
  .nav__item--support .sub-menu__item:nth-last-child(1) {
    width: 100%;
    height: auto;
  }
  .nav__item--support .sub-menu__item:nth-last-child(1) {
    margin-left: 0;
    transform: none;
  }
  .sub-menu--open {
    display: -ms-flexbox;
    display: flex;
  }
}
.disable-animation .sub-menu--expanded .sub-menu__item,
.disable-animation .sub-menu--open-enter-active {
  opacity: 1;
  animation: none;
}
.disable-animation .sub-menu--open-leave-active {
  opacity: 0;
  animation: none;
}
