section{
  &.topbar-bg{
    width: 100%;
  }
}

.topbar {
  display: flex;
  flex-shrink: 0;
  width: 100%;
  height: 121px;
  background-color: $white;

  .brand,
  .contacts,
  .contacts > *,
  .topbar-items,
  .langs {
    display: flex;
    align-items: center;
  }

  .container {
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    height: 100%;
    padding-top: 19px;
  }

  #toggle-menu {
    display: none;
    position: relative;
    z-index: 50;
    width: 30px;
    height: 30px;
    appearance: none;
    box-shadow: none;
    cursor: pointer;
    outline: none;
    &.active {
      span {
        background: none;
        &::before {
          top: 0;
          transform: rotate(45deg);
        }

        &::after {
          bottom: 0;
          transform: rotate(-45deg);
        }

        &::before,
        &::after {
          background: $black;
          transition-delay: 0s, 0.3s;
        }
      }
    }
    span {
      display: block;
      position: absolute;
      top: 14px;
      left: 4px;
      right: 8px;
      height: 2px;
      background: $black;
      transition: background 0s 0.3s;
      -webkit-transition: background 0s 0.3s;
      &:before {
        top: -5px;
        background: $black;
        transition-property: top, transform;
      }
      &:after {
        background: $black;
        bottom: -5px;
        transition-property: bottom, transform;
      }
      &:before, &:after {
        content: '';
        position: absolute;
        display: block;
        width: 18px;
        height: 2px;
        left: 0;
        transition-duration: 0.3s, 0.3s;
        transition-delay: 0.3s, 0s;
      }
    }
  }

  .brand {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 150px;

    svg {
      width: 100%;
      height: 100%;
      max-height: 100%;
      vertical-align: middle;
    }

    img {
      max-width: 100%;
      width: 100%;
      height: auto;
    }
  }

  .topbar-items {
    flex: auto;
    flex-direction: column;
    justify-content: flex-end;
  }

  .contacts {
    width: 100%;
    justify-content: flex-end;
    margin-right: 0;
    > * {
      font-size: 0.9375em;
      font-weight: 500;
      svg {
        margin-right: 12px;
      }
    }

    .phone {
      margin-right: 134px;

      &:hover {
        color: $violet;
      }
    }

    .location {
      margin-right: 61px;
    }
  }

  .langs {
    > * {
      display: flex;
      align-items: center;
      justify-content: center;
      text-align: center;
      text-transform: uppercase;
      font-size: 0.9375em;
      font-weight: 700;
      transition: all .2s;
      &.active {display: none}
      &:hover:not(.active) {
        color: $violet;
      }
    }

    &.main_land .et {
      display: none;
    }

    &.disku_remonts {
      > * {
        margin-left: 3px;
      }
    }

    &.mobile {
      display: none;
    }
  }

  .topbar-mobile {
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    background-color: $white;
    position: absolute;
    width: 100%;
    height: auto;
    top: 87px;
    left: -150%;
    margin-right: 0;
    padding-left: calc((100% - 720px) / 2);
    padding-right: calc((100% - 720px) / 2);
    padding-top: 20px;
    padding-bottom: 20px;
    z-index: 10;
  }

  .navigation-menu {
    width: 100%;
    justify-content: space-between;
    background: #FBFBFB;
    box-shadow: 3px 0 20px rgba(0, 0, 0, 0.1);
    padding-top: 16px;
    padding-bottom: 16px;
    padding-left: calc((100% - 970px) / 2);
    padding-right: calc((100% - 970px) / 2);
    position: absolute;
    left: 0;
    bottom: 0;

    &.mobile {
      display: none;
      padding: 0;
      position: relative;
      box-shadow: none;

      a {
        margin-left: 0;
        margin-bottom: 25px;
      }
    }

    a {
      font-size: 0.9375em;
      font-weight: 500;
      margin-left: 25px;

      &:nth-of-type(1) {
        margin-left: 0;
      }

      &:hover {
        color: $violet;
      }
    }
  }

  .contacts-mobile{
    a {
      font-weight: 500;
      margin-bottom: 20px;
    }
  }

  @include screen-down(m) {
    height: 87px;

    .container {
      justify-content: center;
      padding-top: 0;
    }

    .brand {
      width: 162px;
    }
    .contacts {
      line-height: 21px;

      .phone {
        margin-right: 50px;
      }

      .location {
        margin-right: 50px;
      }
    }

    .navigation-menu {
      &.desktop {
        display: none;
      }
      &.mobile {
        display: flex;
      }
    }

    .topbar-mobile {
      display: flex;
    }

    #toggle-menu {
      display: flex;
    }

    .langs {
      margin-right: 50px;
    }
  }

  @include screen-down(s) {
    position: relative;

    .brand {
      width: 142px;
      margin-right: 0;
    }

    .topbar-mobile {
      padding-left: calc((100% - 450px) / 2);
      padding-right: calc((100% - 450px) / 2);
    }

    .contacts {
      .phone {
        margin-right: 30px;
      }

      .location {
        display: none;
      }
    }

    .langs {
      margin-right: 30px;
    }
  }
  @include screen-down(xs) {
    height: 66px;

    .brand {
      width: 112px;
    }

    .contacts {
      .phone {
        margin-right: 15px;
      }
      svg {
        margin-right: 5px;
      }
    }

    .langs {
      margin-right: 15px;
    }

    .topbar-mobile {
      font-size: 0.875em;
      margin-right: 27px;
      padding-left: 27px;
      padding-right: 27px;
      top: 66px;
    }
  }
  @include screen-down(xxs) {
    .contacts {
      .phone {
        display: none;
      }
    }

    .topbar-mobile {
      margin-right: 0;
      padding-left: 10px;
      padding-right: 10px;
    }
  }
}
