.faq {
  position: relative;
  margin-bottom: 60px;
  padding: 24px 35px;
  border-radius: 16px;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-soft);
}

.faq__title {
  margin: 0 0 16px;
  font-size: 24px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.faq-item {
  display: grid;
  margin-bottom: 8px;
  overflow: hidden;
}

.faq-item:last-child {
  margin-bottom: 0;
}

.faq-item__summary {
  min-height: 56px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  column-gap: 2px;
  padding: 14px;
  border-radius: 10px;
  background-color: var(--gray-light);
  list-style: none;
  cursor: pointer;
}

html[data-theme="dark"] .faq-item__summary {
  background-color: #2a2e39;
}

.faq-item__summary::-webkit-details-marker {
  display: none;
}

.faq-item__left {
  display: flex;
  align-items: center;
  column-gap: 12px;
}

.faq-item__icon {
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 8px;
  background-color: var(--blue);
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
  text-align: center;
  color: var(--white);
}

.faq-item__text {
  font-size: 18px;
  font-weight: 700;
  line-height: 100%;
  letter-spacing: -0.5px;
  color: var(--text-dark);
}

.faq-item__arrow {
  width: 28px;
  height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--bg-color);
  box-shadow: var(--shadow-light);
}

.faq-item__arrow img {
  transition: transform 0.3s ease-in-out;
}

.faq-item[open] .faq-item__arrow img {
  transform: rotate(180deg);
}

.faq-item__content {
  max-height: 0;
  margin-top: 8px;
  overflow: hidden;
  transition: max-height 0.3s ease-in-out;
}

.faq-item__content-inner {
  padding: 20px 40px 20px 20px;
  border-radius: 10px;
  background-color: var(--gray-light);
}

html[data-theme="dark"] .faq-item__content-inner {
  background-color: #2a2e39;
}

.faq-item__content-text {
  width: 100%;
}

.faq-item__content-text p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 120%;
  letter-spacing: -0.5px;
  color: #6b7280;
}

html[data-theme="dark"] .faq-item__content-text p {
  color: var(--gray);
}

@media (max-width: 767px) {
  .faq {
    margin-bottom: 40px;
    padding: 16px;
  }

  .faq__title {
    font-size: 18px;
  }

  .faq-item__summary {
    min-height: 52px;
    padding: 12px;
  }

  .faq-item__left {
    column-gap: 8px;
  }

  .faq-item__text {
    font-size: 15px;
  }

  .faq-item__content-inner {
    padding: 12px;
  }

  .faq-item__content-text p {
    font-size: 15px;
  }
}
