.faq-block {
  margin: 48px 0 34px;
}

.faq-list {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.faq-block.is-visible .faq-list {
  opacity: 1;
  transform: translateY(0);
}

.faq-item {
  border-top: 1px solid rgba(35, 31, 32, 0.18);
}

.faq-item:last-child {
  border-bottom: 1px solid rgba(35, 31, 32, 0.18);
}

.faq-question {
  position: relative;
  margin: 0;
  padding: 22px 52px 20px 0;
  cursor: pointer;
  color: inherit;
  font-size: clamp(20px, 2.4vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  transition: color 0.2s ease;
}

.faq-question::after {
  content: '';
  position: absolute;
  top: 50%;
  right: 6px;
  width: 32px;
  height: 32px;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-sizing: border-box;
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1px 14px no-repeat;
  transform: translateY(-50%);
  transition: transform 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.faq-question:focus {
  outline: none;
}

.faq-question:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.faq-item.is-open .faq-question::after {
  background:
    linear-gradient(currentColor, currentColor) center / 14px 1px no-repeat;
  transform: translateY(-50%) rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: max-height 0.34s ease, opacity 0.24s ease, transform 0.24s ease;
}

.faq-item.is-open .faq-answer {
  opacity: 1;
  transform: translateY(0);
}

.faq-answer > :first-child {
  margin-top: 0;
}

.faq-answer > :last-child {
  margin-bottom: 24px;
}

.faq-answer p,
.faq-answer li {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.62;
}

.faq-answer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

@media (max-width: 767px) {
  .faq-block {
    margin: 34px 0 26px;
  }

  .faq-question {
    padding: 18px 44px 18px 0;
  }

  .faq-question::after {
    right: 0;
    width: 28px;
    height: 28px;
    background:
      linear-gradient(currentColor, currentColor) center / 12px 1px no-repeat,
      linear-gradient(currentColor, currentColor) center / 1px 12px no-repeat;
  }

  .faq-item.is-open .faq-question::after {
    background:
      linear-gradient(currentColor, currentColor) center / 12px 1px no-repeat;
  }
}
