.faq {
  padding: 0 0 var(--space-section);
  background: var(--bg-page);
}

.faq__inner {
  width: min(100%, 920px);
  margin-inline: auto;
}

.faq__title {
  margin: 0 0 clamp(20px, 2.6vw, 32px);
  font-size: var(--typo-h2-size);
  line-height: var(--typo-h2-line-height);
  font-weight: var(--typo-h2-weight);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.faq__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.faq__item {
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  overflow: clip;
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255, 96, 0, 0.08) 0%, rgba(255, 96, 0, 0) 48%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 100%),
    var(--bg-panel-soft);
  transition:
    border-color var(--transition-base),
    background-color var(--transition-base);
}

.faq__item.is-open {
  border-color: rgba(255, 255, 255, 0.24);
}

.faq__question {
  width: 100%;
  margin: 0;
  padding: 20px 22px;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  color: var(--text-primary);
  text-align: left;
  font-size: 20px;
  line-height: 1.28;
  font-weight: 500;
}

.faq__question-text {
  flex: 1 1 auto;
  min-width: 0;
}

.faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
}

.faq__icon::before,
.faq__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 2px;
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.88);
  transform: translate(-50%, -50%);
  transition: transform var(--transition-fast);
}

.faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq__item.is-open .faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg) scaleX(0);
}

.faq__answer-wrap {
  padding: 0 22px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.faq__answer-wrap[hidden] {
  display: none;
}

.faq__answer {
  margin: 12px 0 0;
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.52;
  color: var(--text-muted);
}

.faq__question:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(255, 96, 0, 0.4);
}

.faq__actions {
  margin-top: 24px;
  display: flex;
  justify-content: center;
}

.faq__cta {
  min-height: 56px;
  min-width: 220px;
}

@media (hover: hover) and (pointer: fine) {
  .faq__item:hover {
    border-color: rgba(255, 255, 255, 0.24);
  }
}

@media (max-width: 1199px) {
  .faq__inner {
    width: min(100%, 900px);
  }

  .faq__question {
    padding: 18px 20px;
    font-size: 18px;
  }

  .faq__answer-wrap {
    padding: 0 20px 18px;
  }
}

@media (max-width: 767px) {
  .faq__list {
    gap: 10px;
  }

  .faq__item {
    border-radius: 14px;
  }

  .faq__question {
    padding: 16px;
    gap: 12px;
    font-size: 17px;
    line-height: 1.34;
  }

  .faq__icon {
    width: 28px;
    height: 28px;
  }

  .faq__answer-wrap {
    padding: 0 16px 16px;
  }

  .faq__answer {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.46;
  }

  .faq__actions {
    margin-top: 18px;
  }

  .faq__cta {
    width: 100%;
    min-width: 0;
  }
}

html[data-theme="light"] .faq__item {
  background:
    linear-gradient(180deg, rgba(17, 22, 28, 0.03) 0%, rgba(17, 22, 28, 0) 100%),
    #ffffff;
  border-color: rgba(16, 20, 24, 0.16);
}

html[data-theme="light"] .faq__item.is-open {
  border-color: rgba(16, 20, 24, 0.2);
}

html[data-theme="light"] .faq__icon {
  border-color: rgba(16, 20, 24, 0.34);
  background: rgba(16, 20, 24, 0.08);
}

html[data-theme="light"] .faq__icon::before,
html[data-theme="light"] .faq__icon::after {
  background: rgba(16, 20, 24, 0.92);
}

html[data-theme="light"] .faq__answer-wrap {
  border-top-color: rgba(16, 20, 24, 0.12);
}

@media (hover: hover) and (pointer: fine) {
  html[data-theme="light"] .faq__item:hover {
    border-color: rgba(16, 20, 24, 0.28);
  }

  html[data-theme="light"] .faq__question:hover .faq__icon {
    border-color: rgba(16, 20, 24, 0.28);
    background: rgba(17, 22, 28, 0.06);
  }
}
