.tabs-block {
  position: relative;
  margin: 75px 0 100px;
  padding: 50px $half-gutter;
  background-color: $gray-bluish-light;

  &.tabs-block--background-white {
    background-color: $white;
  }

  @include sm {
    margin: 50px 0 60px;
    padding: 32px $gutter-mobile;
  }

  &__wrapper {
    max-width: $max-width;
    margin: auto;
  }

  &__content {
    margin-left: calc(100% / 12);
    padding: 0 $half-gutter;
    width: calc(100% / 12 * 10);

    @include sm {
      margin-left: 0;
      width: 100%;
      padding: 0;
    }
  }

  &__header {
    margin-bottom: 40px;

    @include sm {
      margin-bottom: 24px;
    }

    h2 {
      color: $primary-color;
      margin: 0;

      @include sm {
        font-size: 2.6rem;
        line-height: 3rem;
      }
    }
  }

  &__tab-control {
    position: relative;
    width: 100%;
    overflow: hidden;


    ul {
      column-gap: 0;
    }

    li {
      display: flex;
      align-items: center;
      justify-content: center;
      width: auto;

      a {
        position: relative;
        display: flex;
        height: 100%;
        width: 100%;
        align-items: center;
        justify-content: center;
        font-size: 1.6rem;
        line-height: 2.4rem;
        font-weight: 400;
        letter-spacing: 0.23px;
        overflow: hidden;
        text-align: center;
        border-top-right-radius: 8px;
        border-top-left-radius: 8px;
        background-color: $gray-bluish;
        padding: 12px 16px;
        color: $primary-color;
        transition: all 250ms ease-out;
        white-space: nowrap;

        &:hover {
          background-color: $white;

          .tabs-block--background-white & {
            background-color: $gray-bluish-light;
          }
        }
        &.js-active {
          color: $medium-color;
          background-color: $white;
          font-weight: 700;

          .tabs-block--background-white & {
            background-color: $gray-bluish-light;
          }
        }
      }
    }
  }

  &__nav-next, &__nav-prev {
    position: absolute;
    top: 0;
    width: 48px;
    height: 48px;
    display: block;
    border: none;
    outline: none;
    background-color: $gray-bluish;
    padding: 0;
    z-index: 1;
    transition: opacity 250ms ease-out;

    &.swiper-button-disabled {
      opacity: 0;
      pointer-events: none;
    }

    &::before {
      content: '';
      position: absolute;
      top: 18px;
      display: block;
      width: 12px;
      height: 12px;
      border-right: 2px solid $primary-color;
      border-bottom: 2px solid $primary-color;
    }

    &::after {
      content: '';
      position: absolute;
      top: 0;
      pointer-events: none;
      width: 48px;
      height: 48px;
      background: linear-gradient(90deg, rgba(220, 228, 237, 0.00) 0%, #DCE4ED 100%);
    }
  }

  &__nav-next {
    right: 0;

    &::before {
      right: 20px;
      transform: rotate(-45deg);
    }

    &::after {
      left: -48px;
      background: linear-gradient(90deg, rgba(220, 228, 237, 0.00) 0%, #DCE4ED 100%);
    }
  }

  &__nav-prev {
    left: 0;

    &::before {
      left: 20px;
      transform: rotate(135deg);
    }

    &::after {
      left: 48px;
      background: linear-gradient(-90deg, rgba(220, 228, 237, 0.00) 0%, #DCE4ED 100%);
    }
  }

  &__view {
    background-color: $white;
    position: relative;
    width: 100%;
    transition: height 250ms ease-out;

    .tabs-block--background-white & {
      background-color: $gray-bluish-light;
    }
  }

  &__card {
    position: absolute;
    top: 0;
    opacity: 0;
    transition: all 250ms ease-out;
    display: flex;
    align-items: flex-start;
    pointer-events: none;
    width: 100%;
    padding: 32px 16px;

    @include md {
      flex-direction: column;
    }

    @include sm {
      align-items: center;
    }

    &.js-active {
      position: relative;
      opacity: 1;
      pointer-events: all;
    }
  }

  &__card-image {
    width: 100%;
    max-width: 410px;
    margin-right: 30px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;

    @include sm {
      width: 100%;
      margin-right: 0;
      margin-bottom: 24px;
    }

    picture {
      min-height: 260px;

      @include sm {
        min-height: 0px;
      }
    }

    img {
      display: block;
      width: auto;
      height: 100%;
      object-fit: cover;
    }
  }

  &__card-text {
    padding-top: 30px;
    flex: 1;
    max-width: 900px;
    margin: 0 auto;

    @include sm {
      max-width: 100%;
      padding-top: 0;
    }

    .tabs-block--no-image & {
      padding-top: 0;
    }

    h3 {
      font-size: 2.6rem;
      line-height: 3rem;
      color: $primary-color;
      font-weight: 700;
      margin: 0;

      @include sm {
        font-size: 2.1rem;
        line-height: 2.9rem;
      }
    }

    p {
      letter-spacing: 0.23px;
    }

    .std-button {
      padding: 0 24px;

      @include sm {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
      }
    }
  }
}
