faq.scss 1.84 KB
.section-question {
  padding-top: 74px;
  padding-bottom: 64px;
}
.faq {
  &__items {
    margin-top: 39px;
  }
  &__item {
    cursor: pointer;
    margin-top: 6px;
    background: #f6f6f6;
    border-radius: 4px;
    padding: 21px 67px 21px 25px;
    position: relative;

    &_close {
      position: absolute;
      width: 40px;
      height: 40px;
      border-radius: 100%;
      right: 12px;
      top: 12px;
      cursor: pointer;
      transition: 0.2s;

      &:before, &:after {
        content: '';
        position: absolute;
        background: #8e8f90;
        top: 50%;
        left: 50%;
      }
      &:before {
        width: 24px;
        height: 2px;
        margin-left: -12px;
        margin-top: -1px;
      }
      &:after {
        width: 2px;
        height: 24px;
        margin-left: -1px;
        margin-top: -12px;
      }
    }
    &_title {
      font-size: 18px;
      line-height: 22px;
      font-weight: 700;

    }
    &_text {
      font-size: 15px;
      line-height: 23px;
      height: 0;
      overflow: hidden;
      p {
        margin-top: 10px;
        &:last-child {
          margin-bottom: 4px;
        }
      }
    }
    &.active {
      cursor: default;
      .faq__item {
        &_close {
          background: #ffffff;
          transform: rotate(45deg);

        }
        &_text {
          height: auto;
        }
      }
    }
  }
}
@media (max-width: 991px) {
  .section-question {
    padding-top: 29px;
    padding-bottom: 32px;
  }
  .faq__items {
    margin-top: 26px;
  }

}
@media (max-width: 767px) {
  .faq {
    &__items {
      margin-top: 12px;
    }
    &__item {
      padding: 21px 47px 20px 15px;
      &_title {
        font-size: 15px;
        line-height: 19px;

      }
      &_close {
        right: 10px;
      }
    }
  }
  .section-question {
    padding-top: 29px;
    padding-bottom: 32px;
  }
}