.inner-carousel {
  overflow: hidden;
  position: relative;

  @media (max-width: 768px) {
    display: none;
  }

  .slick-dots {
    display: flex;
    justify-content: center;
    margin: 0 -10px;

    li {
      margin: 0 10px;
      position: relative;
      bottom: 42px;
      width: 40px;
      height: 2px;

      background: #ffffff;
      opacity: 0.2;
      border-radius: 10px;

      transition: $fast-transition;

      button {
        font-size: 0;
      }

      &.slick-active {
        opacity: 1;
      }
    }
  }

  .slick-arrow {
    z-index: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 60px;
    width: 60px;
    border: 2px solid #ffffff;
    font-size: 0;

    &::before {
      content: "";
      position: absolute;
      top: 0;
      left: 0;
      height: 100%;
      width: 100%;
      z-index: 1;
      background-position: center;
      background-repeat: no-repeat;
      background-image: url("../img/index-arrow.svg");
    }

    &:hover {
      background: #ffffff;

      &::before {
        background-image: url("../img/index-arrow-active.svg") !important;
      }
    }

    &.slick-prev {
      left: 40px;

      &:hover::before {
        transform: rotate(180deg);
      }
    }

    &.slick-next {
      right: 40px;

      &::before {
        transform: rotate(180deg);
      }

      &:hover::before {
        transform: rotate(0);
      }
    }
  }

  .inner-carousel__item {
    outline: none;
    height: 680px;
    position: relative;
    display: inline-flex;
    align-items: center;
    overflow: hidden;

    @media (max-width: 1400px) {
      height: 500px;

      .container {
        display: flex;
        justify-content: center;
      }

      .carousel__item-description {
        padding: 30px;
      }
    }

    .carousel__item-image {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: auto;
      min-height: 100%;
    }

    .carousel__item-description {
      display: inline-block;
      position: relative;
      padding: 46px 114px 66px 60px;
      background: rgba(0, 50, 116, 0.65);
      color: #ffffff;

      .carousel__item-description__title {
        max-width: 500px;
        font-weight: 700;
        font-size: 34px;
        line-height: 47px;
        margin-bottom: 50px;
      }

      .carousel__item-description__link {
        background: #ffffff;
        display: inline-block;
        padding: 20px 76px;
        font-size: 16px;
        line-height: 21px;
        font-weight: 700;
        color: $hover-blue;
        transition: $fast-transition;

        &:hover {
          @extend %hover-green;
        }
      }
    }
  }
}

// === NEWS ===

.news {
  padding: 80px 0;
  overflow-y: hidden;

  @media (max-width: 768px) {
    padding-top: 0;
    padding-bottom: 50px;

    > .container:first-child {
      max-width: initial;
    }
  }

  .news-controls {
    display: flex;

    @media (max-width: 768px) {
      display: none;
    }

    .news-controls__arrow {
      position: relative;
      margin-top: 40px;
      height: 60px;
      width: 60px;
      border: 2px solid #6dacde;
      transition: $fast-transition;

      &:hover {
        background: $green;
        border: 2px solid $green;

        &::before {
          background: url("../img/arrow-white.svg") no-repeat center !important;
        }
      }

      &::before {
        content: "";
        position: absolute;
        height: 100%;
        width: 100%;
        background: none;
      }

      &._left {
        &::before {
          background: url("../img/arrow-blue.svg") no-repeat center;
          transform: rotate(180deg);
        }
      }

      &._right {
        margin-left: 30px;

        &::before {
          background: url("../img/arrow-blue.svg") no-repeat center;
        }
      }
    }
  }

  .news-row {
    width: 100%;
    min-height: 700px;
    margin: 0 -15px;
    display: flex;
    overflow: hidden;
    overflow-x: scroll;

    &::-webkit-scrollbar {
      width: 0;
    }

    @media (max-width: 768px) {
      flex-wrap: wrap;
      justify-content: space-between;
      margin: 0 15px;
    }

    .news-row__item {
      height: 680px;
      margin: 0 15px;
      display: inline-flex;
      flex-direction: column;
      justify-content: space-between;

      @media (max-width: 768px) {
        height: auto;
        flex: 1 1 340px;
        margin: 0;
        margin-bottom: 20px;

        &:nth-child(2) {
          order: -1;
        }

        &:nth-child(3) {
          > *:last-child {
            display: none;
          }
        }

        &:nth-child(4) {
          > *:last-child {
            display: none;
          }
        }

        &:last-child {
          display: none;
        }
      }

      .news-row__item-thing {
        height: 209px;
        width: 370px;
        position: relative;
        z-index: 1;
        cursor: pointer;
        padding: 30px;
        background: #f9f9f9;
        transition: $fast-transition;
        overflow: hidden;

        @media (max-width: 425px) {
          width: 290px;
          padding: 20px;
        }

        @media (max-width: 768px) {
          width: 340px;
          margin-bottom: 20px;

          &:nth-child(3) {
            display: none;
          }
        }

        .news-row__item-img {
          position: absolute;
          top: 0;
          left: 0;
          z-index: -1;
          transition: $fast-transition;
        }

        .news-row__item-big-title {
          font-weight: 700;
          font-size: 80px;
          line-height: 104px;
          color: #ffffff;
          transition: inherit;
        }

        .news-row__item-title {
          text-decoration: underline;
          font-weight: 700;
          font-size: 16px;
          line-height: 26px;
          color: #1a1a1a;
          transition: inherit;

          @media (max-width: 425px) {
            font-size: 18px !important;
          }
        }

        .news-row__item-time {
          margin-top: 50px;
          display: block;
          font-size: 16px;
          line-height: 21px;
          color: #cccdcf;
          transition: inherit;
        }

        &:hover {
          background: $green !important;

          .news-row__item-img {
            transform: scale(1.05);
          }

          .news-row__item-big-title {
            color: #ffffff;
          }

          .news-row__item-title {
            text-decoration: underline;
            color: #ffffff;
          }

          .news-row__item-title-time {
            color: #ffffff;
          }
        }

        &._blue {
          background: $blue;

          .news-row__item-title,
          .news-row__item-time {
            color: #ffffff;
          }

          > *:last-child {
            margin-top: 35px;
            font-weight: 350;
            font-size: 16px;
            line-height: 26px;
            color: #ffffff;
          }
        }

        &._full {
          display: flex;
          flex-direction: column;
          justify-content: flex-end;
          height: 680px;

          @media (max-width: 768px) {
            height: 438px;
          }

          @media (max-width: 425px) {
            height: 340px;
          }

          &::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            height: 100%;
            width: 100%;
            z-index: 0;
            background: rgba(0, 50, 116, 0.5);
          }

          .news-row__item-title {
            z-index: 2;

            font-size: 28px;
            line-height: 35px;

            color: #ffffff;
          }

          .news-row__item-time {
            z-index: 2;
          }
        }

        &._half {
          height: 443px;

          .news-row__item-title {
            font-size: 22px;
          }
        }
      }
    }
  }
}

// === SERVICES ===

.services {
  @media (max-width: 768px) {
    > .container:first-child {
      max-width: initial;
    }
  }

  .services-buttons {
    margin-top: 40px;
    display: flex;
    align-items: center;

    div.services-buttons__prev {
      cursor: pointer;
      height: 60px;
      width: 60px;
      border: 2px solid #6dacde;
      position: relative;
      transition: $fast-transition;

      &:hover {
        background: #6dacde;

        &::before {
          background: url("../img/arrow-white.svg") no-repeat center;
        }
      }

      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: url("../img/arrow-blue.svg") no-repeat center;
        transform: rotate(180deg);
        transition: $fast-transition;
      }
    }

    div.services-buttons__next {
      cursor: pointer;
      height: 60px;
      width: 60px;
      border: 2px solid #6dacde;
      position: relative;
      margin: 0 45px 0 15px;
      transition: $fast-transition;

      &:hover {
        background: #6dacde;

        &::before {
          background: url("../img/arrow-white.svg") no-repeat center;
        }
      }

      &::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        background: url("../img/arrow-blue.svg") no-repeat center;
        transition: $fast-transition;
      }
    }

    a.services-buttons__text {
      font-weight: 350;
      font-size: 16px;
      line-height: 26px;
      text-decoration: underline;
      color: #1a1a1a;
      white-space: nowrap;

      &:hover {
        text-decoration: none;
      }
    }
  }

  .services-row {
    width: 100%;
    display: flex;
    height: 558px;
    overflow: hidden;
    overflow-x: scroll;

    &::-webkit-scrollbar {
      width: 0;
    }

    .services-row__item {
      display: flex;
      justify-content: space-between;
      flex-direction: column;
      margin: 0 15px;

      @media (max-width: 768px) {
        &:nth-child(2) {
          order: -1;
        }
      }

      .services-row__item-thing {
        position: relative;
        padding: 35px 30px;
        background: #ffffff;
        box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.05);
        display: block;
        height: 166px;
        width: 370px;

        @media (max-width: 425px) {
          width: 280px;

          .row__item-thing__title {
            font-size: 15px;
          }

          .row__item-thing__button {
            margin-top: 35px;
          }
        }

        &::before {
          content: "";
          position: absolute;
          bottom: 0;
          left: 0;
          width: 70px;
          height: 5px;
          z-index: 1;
          background: $blue;
          transition: $long-transition;
        }

        &._active {
          background: #6dacde;

          .row__item-thing__title {
            color: #ffffff;
            text-decoration: underline;
            font-weight: normal;
            font-weight: 700;
          }

          .row__item-thing__button {
            border: 1px solid #ffffff;
            color: #ffffff;
          }
        }

        &:hover {
          &::before {
            background: $green;
            width: 100%;
            height: 100%;
          }

          .row__item-thing__title {
            text-decoration: underline;
            color: #ffffff;
          }

          .row__item-thing__button {
            color: #ffffff;
            border: 1px solid #ffffff;

            transition: $fast-transition;

            &:hover {
              border: 1px solid $green;
              @extend %hover-green;
            }
          }
        }

        .row__item-thing__title {
          position: relative;
          z-index: 1;
          font-weight: 350;
          font-size: 16px;
          line-height: 26px;
          color: #1a1a1a;

          transition: $fast-transition;
        }

        .row__item-thing__button {
          position: relative;
          z-index: 1;
          display: inline-block;
          padding: 20px 65px;
          margin-top: 117px;
          font-weight: 700;
          font-size: 16px;
          line-height: 21px;
          color: #1a1a1a;
          border: 1px solid #1a1a1a;

          transition: $fast-transition;
        }

        &._half {
          flex: 0 1 65%;
        }
      }
    }
  }
}

// === BANNERS ROW ===

.banners-row {
  padding: 80px 0 50px;
  overflow-y: hidden;

  @media (max-width: 768px) {
    > .container:first-child {
      max-width: initial;
    }
  }

  .banners-row-field {
    width: 100%;
    overflow: hidden;

    .banners-row-field__item {
      display: inline-block;
      margin: 0 15px;
      position: relative;
      max-height: 200px;
      outline: none;
      overflow: hidden;

      img {
        display: block;
        transition: $fast-transition;
      }

      &:hover {
        img {
          transform: scale(1.05);
        }
      }
    }

    .slick-dots {
      display: flex;
      justify-content: center;
      margin: 50px -10px 0;

      li {
        width: 40px;
        height: 2px;
        background: #b1c72e;
        opacity: 0.2;
        border-radius: 10px;
        margin: 0 10px;
        transition: $fast-transition;

        &.slick-active {
          opacity: 1;
        }

        button {
          font-size: 0;
        }
      }
    }
  }
}

// === ABOUT ===

.about {
  padding: 80px 0 150px;

  @media (max-width: 768px) {
    padding: 0;

    > .container:first-child {
      max-width: initial;
    }
  }

  .about-description {
    margin: auto;

    .about-description__button {
      text-align: center;
      display: inline-block;
      margin-top: 64px;
      padding: 20px 80px;
      border: 2px solid $blue;

      font-weight: 700;
      font-size: 16px;
      line-height: 21px;
      color: $blue;

      transition: $fast-transition;

      @media (max-width: 425px) {
        width: 100%;
      }

      &:hover {
        border: 2px solid $green;
        @extend %hover-green;
      }
    }
  }

  .about-image {
    margin: auto;

    @media (max-width: 992px) {
      margin: 0;
      margin-top: 100px;
    }
  }

  .about-features {
    margin-top: 128px;

    @media (max-width: 768px) {
      margin-top: 50px;
    }

    .about-features__feature {
      display: flex;
      flex-wrap: wrap;
      justify-content: flex-start;
      margin-bottom: 50px;

      .feature-image {
        margin-bottom: 30px;
      }

      .feature-text {
        flex-basis: 1067px;
        margin-bottom: 0;
        padding-left: 42px;

        @media (max-width: 1200px) {
          padding-left: 0;
        }
      }
    }
  }
}

// === FILIALS NETWORK ===

.filials-network {
  padding: 80px 0 150px;
  position: relative;

  @media (max-width: 768px) {
    padding-top: 0;

    > .container:first-child {
      max-width: initial;
    }
  }

  .filials-network__map {
    position: absolute;
    right: 0;
    top: 40px;

    @media (max-width: 1600px) {
      position: relative;
    }
  }

  &::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 55%;
    height: 700px;
    background: #f9f9f9;
  }

  .filials-network__list {
    margin-top: 74px;

    li {
      margin-top: 35px;

      a {
        display: block;
        position: relative;
        padding-left: 60px;
        font-weight: 350;
        line-height: 26px;
        color: #292929;

        &::before {
          content: "";
          position: absolute;
          top: 50%;
          left: 0;
          transform: translateY(-50%);
          height: 35px;
          width: 35px;
          border: 1px solid rgba(0, 50, 116, 0.5);
        }

        &::after {
          content: "";
          position: absolute;
          top: 50%;
          left: 0;
          transform: translateY(-50%);
          height: 35px;
          width: 35px;
          background-position: center;
          background-repeat: no-repeat;
        }
      }

      &:first-child a::after {
        background-image: url("../img/filials-network-one.svg");
      }

      &:nth-child(2) a::after {
        background-image: url("../img/filials-network-two.svg");
      }

      &:nth-child(3) a::after {
        background-image: url("../img/filials-network-three.svg");
      }

      &:nth-child(4) a::after {
        background-image: url("../img/filials-network-four.svg");
      }

      &:last-child a::after {
        background-image: url("../img/filials-network-five.svg");
      }
    }
  }
}

@media (max-width: 1200px) {
}
