.block-faqs {
  padding: 50px 0;
}

.block-faqs .container {
  max-width: 1200px;
}

.block-faqs__inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.block-faqs__title {
  margin: 0;
  color: var(--tg-color-primary-black);
  text-align: center;
}

.block-faqs__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.block-faqs__item {
  border: 1px solid var(--tg-color-border);
  border-radius: 24px;
  padding: 0;
}

.block-faqs__item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  cursor: pointer;
  transition: 0.3s ease;
}

.block-faqs__item-header:hover {
  opacity: 0.7;
}

.block-faqs__item-title {
  margin: 0;
  font-size: 20px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--tg-color-primary-black);
  transition: color 0.3s ease;
  flex: 1;
  text-align: left;
}

.block-faqs__item-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-left: 16px;
  transition: transform 0.3s ease;
  color: var(--tg-color-primary-black);
}

.block-faqs__item-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.block-faqs__item-content {
  display: none;
  overflow: hidden;
  height: 0;
  padding-top: 0;
  padding-bottom: 0;
}

.block-faqs__item-text {
  padding: 0 24px 24px 24px;
}

.block-faqs__item-text,
.block-faqs__item-text p {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--tg-color-primary-black);
}

.block-faqs__item-text:last-child,
.block-faqs__item-text p:last-child {
  margin-bottom: 0;
}

.block-faqs__item-text ul,
.block-faqs__item-text ol {
  margin: 0 0 16px 0;
  padding-left: 24px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--tg-color-primary-black);
}

.block-faqs__item-text ul:last-child,
.block-faqs__item-text ol:last-child {
  margin-bottom: 0;
}

.block-faqs__item-text ul li,
.block-faqs__item-text ol li {
  margin-bottom: 8px;
}

.block-faqs__item-text ul li:last-child,
.block-faqs__item-text ol li:last-child {
  margin-bottom: 0;
}

.block-faqs__item-text ul {
  list-style-type: disc;
}

.block-faqs__item-text ol {
  list-style-type: decimal;
}

.block-faqs__item.is-open .block-faqs__item-title {
  color: var(--tg-color-blue);
}

.block-faqs__item.is-open .block-faqs__item-icon {
  transform: rotate(180deg);
  color: var(--tg-color-blue);
}

.block-faqs__item.is-open .block-faqs__item-icon svg path {
  stroke: currentColor;
}

@media screen and (max-width: 1023px) {
  .block-faqs {
    padding: 40px 0;
  }

  .block-faqs__title br {
    display: none;
  }

  .block-faqs__item-title {
    font-size: 16px;
  }
}

@media screen and (max-width: 767px) {
  .block-faqs__item-header {
    padding: 20px;
  }

  .block-faqs__item-icon {
    width: 18px;
    height: 18px;
    margin-left: 10px;
  }

  .block-faqs__item-text {
    padding: 0 20px 20px 20px;
  }
}