.faq-three-block {
  background: var(--bg-primary-main);
  border-radius: 10px;
  padding: 80px 145px;
  background-image: url(./../images/sweddfsdfsdf.svg);
  background-repeat: no-repeat;
  background-position: left bottom;
}

.faq-three-block .block-title {
  margin-bottom: 40px;
}

.faq-three-block .items__body {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.faq-three-block .items__wrapper {
  width: calc(50% - 15px);
}

.faq-three-block .items__wrapper .item {
  border: 1px solid var(--storke-second);
  border-radius: 20px;
  margin-bottom: 20px;
  background: transparent;
  transition: background 0.3s ease;
  min-height: 140px;
  display: flex;
  flex-direction: column;
}

.faq-three-block .items__wrapper .item:last-child {
  margin-bottom: 0;
}

.faq-three-block .items__wrapper .item.active {
  background: var(--background);
}

.faq-three-block .items__wrapper .item.active .item__title {
  color: var(--second);
}

.faq-three-block .items__wrapper .item.active .item__header::before {
  opacity: 1;
}

.faq-three-block .items__wrapper .item__title {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 20px;
  line-height: 130%;
  color: var(--text-primary-head);
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-three-block .items__wrapper .item__title.truncated {
  max-height: 100px;
}

.faq-three-block .items__wrapper .item__title.expanded-title {
  max-height: none !important;
}

.faq-three-block .items__wrapper .item__header {
  border-radius: 10px;
  gap: 10px;
  padding: 25px 30px;
  display: flex;
  align-items: flex-start;
  position: relative;
  cursor: pointer;
  background: var(--bg-primary-second);
  min-height: 190px;
}

.faq-three-block .items__wrapper .item__header::before {
  content: "";
  position: absolute;
  left: 30px;
  bottom: 0px;
  width: calc(100% - 60px);
  height: 1px;
  background: var(--bg-primary-second);
  opacity: 0;
}

.faq-three-block .items__wrapper .item__title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.faq-three-block .items__wrapper .item__status {
  margin-top: 8px;
  border-radius: 5px;
  padding: 10px 15px;
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
  background: var(--colors-main);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  z-index: 10;
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 130%;
  color: #fff;
  align-self: flex-start;
}

.faq-three-block .items__wrapper .item.active .item__status {
  background: var(--colors-main);
}

.faq-three-block .items__wrapper .item__status svg {
  display: none;
}

.faq-three-block .items__wrapper .item__content {
  padding: 20px 30px 30px 30px;
  display: none;
}

.faq-three-block .items__wrapper .item.active .item__content {
  display: block;
}

.faq-three-block .items__wrapper .item__content * {
  color: var(--text-primary-main);
  font-size: 18px;
  margin-bottom: 10px;
  display: flex;
  flex-direction: column;
}

.faq-three-block .items__archive-btn {
  margin-top: 30px;
  margin-right: auto;
}

.btn-read-more {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 16px;
  line-height: 130%;
  color: var(--colors-main);
  cursor: pointer;
  text-decoration: underline;
  transition: opacity 0.3s ease;
  user-select: none;
  display: none;
  white-space: nowrap;
  align-self: flex-start;
}

.btn-read-more:hover {
  opacity: 0.7;
}

.item__text-wrapper {
  transition: max-height 0.3s ease;
}

.btn-show-more {
  width: 100%;
  color: white !important;
}

.btn-show-more:hover {
  background: var(--hover-main);
}

@media (max-width: 991px) {
  .faq-three-block .items__body {
    flex-direction: column;
  }

  .faq-three-block .items__wrapper {
    width: 100%;
  }

  .faq-three-block .items__wrapper.left {
    margin-bottom: 20px;
  }
}

@media (max-width: 767px) {
  .faq-three-block .items__wrapper .item {
    border-radius: 10px;
  }

  .faq-three-block .items__wrapper .item__content {
    padding: 15px;
  }

  .faq-three-block .items__wrapper .item__title,
  .faq-three-block .items__wrapper .item__content * {
    font-size: 16px;
  }

  .faq-three-block .items__wrapper .item__header {
    padding: 15px;
  }

  .faq-three-block .items__wrapper .item__header::before {
    left: 20px;
    width: calc(100% - 40px);
  }

  .btn-read-more {
    font-size: 12px;
  }
}

@media (max-width: 1200px) {
  .faq-three-block {
    padding: 60px 80px;
  }
}

@media (max-width: 768px) {
  .faq-three-block {
    padding: 40px 20px;
  }
}
