.faq-section {
  margin: 56px 0;
}

.faq-list {
  max-width: 920px;
  margin: 0 auto;

  display: grid;
  gap: 14px;
}

.faq-item {
  position: relative;
  overflow: hidden;

  border-radius: 20px;
  border: 1px solid rgba(246, 189, 59, 0.18);

  background: radial-gradient(circle at 94% 0%, rgba(246, 189, 59, 0.055), transparent 30%), linear-gradient(180deg, #111315 0%, #070809 100%);

  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
  transition: 0.25s ease;
}

.faq-item:hover,
.faq-item.is-open {
  transform: translateY(-2px);
  border-color: rgba(246, 189, 59, 0.36);
  box-shadow: 0 24px 68px rgba(0, 0, 0, 0.42);
}

.faq-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;

  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe18a, #f6bd3b);

  opacity: 0;
  transition: 0.25s ease;
}

.faq-item.is-open::before {
  opacity: 1;
}

.faq-item__question {
  width: 100%;
  min-height: 50px;
  padding: 12px 20px;

  display: grid;
  grid-template-columns: 1fr 36px;
  align-items: center;
  gap: 18px;

  background: transparent;
  border: 0;

  color: #f8f8f8;
  text-align: left;

  font-size: 17px;
  font-weight: 850;
  line-height: 1.35;

  cursor: pointer;
  transition: 0.22s ease;
}

.faq-item__question:hover {
  color: #ffe18a;
}

.faq-item__question span {
  width: 36px;
  height: 36px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 13px;
  border: 1px solid rgba(246, 189, 59, 0.24);
  background: rgba(246, 189, 59, 0.055);

  color: #f6bd3b;
  font-size: 22px;
  line-height: 1;

  transition: 0.22s ease;
}

.faq-item.is-open .faq-item__question {
  color: #ffe18a;
}

.faq-item.is-open .faq-item__question span {
  transform: rotate(45deg);
  background: rgba(246, 189, 59, 0.12);
  border-color: rgba(246, 189, 59, 0.48);
}

.faq-item__answer {
  display: grid;
  grid-template-rows: 0fr;

  padding: 0 22px;

  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.75;

  opacity: 0;

  transition:
    grid-template-rows 0.28s ease,
    padding 0.28s ease,
    opacity 0.28s ease;
}

.faq-item__answer > * {
  overflow: hidden;
}

.faq-item__answer p {
  margin: 0;
}

.faq-item.is-open .faq-item__answer {
  grid-template-rows: 1fr;
  padding: 0 22px 22px;
  opacity: 1;
}

@media (max-width: 560px) {
  .faq-section {
    margin: 36px 0;
  }

  .faq-list {
    gap: 10px;
  }

  .faq-item {
    border-radius: 18px;
  }

  .faq-item__question {
    min-height: 58px;
    padding: 15px 16px;
    grid-template-columns: 1fr 32px;
    font-size: 15px;
  }

  .faq-item__question span {
    width: 32px;
    height: 32px;
    border-radius: 11px;
  }

  .faq-item__answer {
    padding: 0 16px;
    font-size: 14px;
  }

  .faq-item.is-open .faq-item__answer {
    padding: 0 16px 16px;
  }
}
