.container {
  padding-left: 5px;
  padding-right: 5px;

  @include media-breakpoint-up(sm) {
    max-width: 750px;
  }
  @include media-breakpoint-up(md) {
    max-width: 992px;
  }
  @include media-breakpoint-up(lg) {
    max-width: 1300px;
  }
  @include media-breakpoint-up(xl) {
    max-width: 1300px;
  }

  &--main {
    padding: 0 $spacing / 2;
    margin-bottom: $spacing;
    @include media-breakpoint-up(sm) {
      padding: 0 5px;
    }
  }
}

.main-wrapper {
  .header--sub + & {
    padding-top: $header-height;
    @include media-breakpoint-up($header-breakpoint-mobile) {
      // 33px is the height of the sub dev
      padding-top: $header-height + 32px;
    }
  }
}

a {
  color: $blue;

  &:hover {
    color: darken($color: $blue, $amount: 10);
  }
}

// Other Links
.other-links {
  $self: &;
  background: #fff;
  height: 100%;
  left: 0;
  overflow: auto;
  padding-bottom: 200px;
  position: fixed;
  top: 0;
  transform: translateX(-100%);
  transition: 0.3s ease-in-out;
  width: 85%;
  z-index: 99;

  @include media-breakpoint-up(sm) {
    height: auto;
    left: auto;
    position: relative;
    top: auto;
    transform: none;
    width: auto;
    padding-bottom: 0;
    transition: none;
    z-index: inherit;
    margin-bottom: $spacing;
  }

  &__overlay {
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    height: 100%;
    left: 0;
    overflow: auto;
    padding-bottom: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 98;

    @include media-breakpoint-up(sm) {
      display: none !important;

      .mCSB_scrollTools {
        opacity: 0 !important;
      }
    }
  }

  &.is-active {
    transform: translateX(0);

    & ~ #{$self}__overlay {
      display: block;
    }
  }
}

.section {
  $self: &;
  margin-bottom: 18px;
  padding-top: 18px;
  @include media-breakpoint-up($toggling-container-breakpoint-desktop) {
    margin-bottom: $spacing;
    padding-top: 0;
  }
  &__title {
    margin: 0;
    line-height: 24px;
    font: {
      size: $section-font-size;
    }
    @include media-breakpoint-up($toggling-container-breakpoint-desktop) {
      font: {
        size: $section-font-size-desktop;
      }
    }
    + .grid {
      @include media-breakpoint-up($toggling-container-breakpoint-desktop) {
        margin-top: 8px;
      }
    }
    + .card-catalog {
      margin-top: 6px;
      @include media-breakpoint-up($toggling-container-breakpoint-desktop) {
        margin-top: 13px;
      }
    }
    + .slick-slider {
      margin-top: 8px;
      @include media-breakpoint-up($toggling-container-breakpoint-desktop) {
        margin-top: 13px;
      }
    }
    ~ #{$self}__subtitle {
      margin-top: 10px;
    }
    + p {
      margin-top: 10px;
    }
    + ul {
      margin-top: 8px;
    }
    &--sm {
      @include media-breakpoint-up($toggling-container-breakpoint-desktop) {
        font: {
          size: $section-font-size-desktop - 4;
        }
      }
    }
  }
  &__links {
    display: flex;
    align-items: center;
    height: 47px;
    border: {
      top: $border;
      bottom: $border;
    }
    color: #666666;
    margin: {
      top: 13px;
      left: -#{$spacing / 2};
      right: -#{$spacing / 2};
    }
    padding: 0 15px;
    @include media-breakpoint-up(sm) {
      display: none;
    }
    img {
      margin-right: 10px;
    }
  }
  &__subtitle {
    line-height: 20px;
  }
  &__title,
  &__subtitle {
    &--indent {
      @include media-breakpoint-up($toggling-container-breakpoint-desktop) {
        padding-left: 20px;
      }
    }
    &--img {
      display: flex;
      img {
        transform: translateY(-5px);
        max-width: 33px;
        max-height: 33px;
        margin-left: 8px;
      }
      + p {
        margin-top: 0;
        margin-bottom: 20px;
      }
    }
  }
  &__header {
    margin-left: -15px;
    width: calc(100% + 30px);
    @include media-breakpoint-up(sm) {
      margin: 0;
      width: 100%;
    }
  }
  > .nav-tabs {
    margin-bottom: 10px;
    border: 0;
  }
  > .tab-content {
    margin-bottom: 20px;
    @include media-breakpoint-up(sm) {
      margin-bottom: $spacing;
    }
  }
  + .section {
    padding-top: 0;
    margin-top: -2px;
  }
}

.block {
  $breakpoint: "sm";
  @include media-breakpoint-up($breakpoint) {
    display: flex;
    align-items: center;
  }
  &__img {
    margin-bottom: 15px;
    border: $border;
    width: 100%;
    &-con {
      @include media-breakpoint-up($breakpoint) {
        flex-basis: 150px;
      }
    }
  }
  &__details {
    @include media-breakpoint-up($breakpoint) {
      flex: 1;
      padding-left: 30px;
    }
  }
  &__title {
    font: {
      size: 20px;
    }
    margin-bottom: 9px;
    @include media-breakpoint-up($breakpoint) {
      font-size: 22px;
    }
  }
  &__desc {
    margin-bottom: 24px;
    @include media-breakpoint-up($breakpoint) {
      margin-bottom: 0;
    }
  }
}
