.page-title {
  background: var(--green);
  color: var(--dark);
}
.page-title-text {
  color: var(--dark);
}

.faq {
  max-width: 808px;
  margin: 0 auto;
  margin-top: 160px;
}

.faq-title {
  font-family: var(--second-family);
  font-weight: 800;
  font-size: 64px;
  text-align: center;
  color: var(--dark);
  margin: 0 auto;
}

.faq-list {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.faq-item {
  border-bottom: 1px solid #dadada;
  padding-bottom: 24px;
}

.faq-item-title {
  display: flex;
  justify-content: space-between;
}

.faq-item-button {
  border-radius: 12px;
  padding: 4px;
  width: 40px;
  height: 40px;
  background: var(--red);
}

.faq-item-button img {
  width: 19px;
  transition: transform 0.3s ease;
}

.faq-item-text {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 20px;
  color: var(--dark);
}

.faq-item-content {
  font-family: var(--font-family);
  font-weight: 400;
  font-size: 16px;
  line-height: 150%;
  color: var(--dark);
  max-width: calc(100% - 40px);
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    margin-top 0.3s ease;
}

.faq-item.active .faq-item-content {
  max-height: 500px;
  margin-top: 6px;
}

.faq-item.active .faq-item-button img {
  transform: rotate(0deg);
}

.faq-item:not(.active) .faq-item-button img {
  transform: rotate(180deg);
}

@media screen and (max-width: 768px) {
  .faq {
    margin-top: 100px;
  }
  .faq-title {
    font-size: 36px;
    line-height: 125%;
  }
}
