.hsf-faq {
  --px-bg-main: #0D1330;
  --px-surface: #18214A;
  --px-highlight: #22305D;
  --px-primary: #7FA6E8;
  --px-primary-hover: #6B92D7;
  --px-secondary: #AFC7F6;

  --px-text-primary: #F5F8FF;
  --px-text-secondary: #BCC8E6;
  --px-border: #2E3B6B;

  --hsf-white: #ffffff;
  --hsf-text-main: var(--px-bg-main);
  --hsf-text-soft: #3c4f7a;
  --hsf-border-soft: rgba(46, 59, 107, 0.16);
  --hsf-item-bg: #ffffff;
  --hsf-item-bg-open: #ffffff;
  --hsf-shadow: 0 4px 12px rgba(13, 19, 48, 0.06);

  width: min(80%, 1200px);
  margin: 30px auto;
  direction: rtl;
  color: var(--hsf-text-main);
}

.hsf-faq,
.hsf-faq button {
  font-family: inherit;
}

.hsf-faq__header {
  text-align: center;
  margin-bottom: 24px;
}

.hsf-faq__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--hsf-text-main);
  background: #f7f9ff;
  border: 1px solid var(--hsf-border-soft);
  font-size: clamp(12px, 2vw, 13px);
  font-weight: 700;
  line-height: 1.7;
}

.hsf-faq__title {
  margin: 0 0 8px;
  color: var(--hsf-text-main);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 900;
  line-height: 1.4;
}

.hsf-faq__desc {
  max-width: 560px;
  margin: 0 auto;
  color: var(--hsf-text-soft);
  font-size: clamp(13px, 2vw, 15px);
  line-height: 1.9;
}

.hsf-faq__list {
  display: grid;
  gap: 14px;
}

.hsf-faq__item {
  overflow: hidden;
  border: 1px solid var(--hsf-border-soft);
  border-radius: 18px;
  background: var(--hsf-item-bg);
  box-shadow: var(--hsf-shadow);
}

.hsf-faq__item.is-open {
  background: var(--hsf-item-bg-open);
  border-color: rgba(46, 59, 107, 0.28);
}

.hsf-faq__question {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hsf-text-main);
  cursor: pointer;
  text-align: right;
}

.hsf-faq__question:focus-visible {
  outline: 3px solid rgba(46, 59, 107, 0.14);
  outline-offset: -4px;
  border-radius: 16px;
}

.hsf-faq__question-text {
  flex: 1;
  color: var(--hsf-text-main);
  font-size: clamp(15px, 2vw, 17px);
  font-weight: 800;
  line-height: 1.9;
}

.hsf-faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f7f9ff;
  border: 1px solid var(--hsf-border-soft);
  box-shadow: 0 4px 10px rgba(13, 19, 48, 0.05);
}

.hsf-faq__icon::before,
.hsf-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 999px;
  background: var(--hsf-text-main);
  transform: translate(-50%, -50%);
}

.hsf-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.hsf-faq__item.is-open .hsf-faq__icon {
  background: #eef3ff;
  border-color: rgba(46, 59, 107, 0.22);
}

.hsf-faq__item.is-open .hsf-faq__icon::after {
  display: none;
}

.hsf-faq__answer {
  display: none;
}

.hsf-faq__item.is-open .hsf-faq__answer {
  display: block;
}

.hsf-faq__answer-inner {
  padding: 0 18px 18px 18px;
  color: var(--hsf-text-soft);
  font-size: clamp(13px, 1.8vw, 15px);
  line-height: 2;
}

@media (max-width: 991px) {
  .hsf-faq {
    width: calc(100% - 48px);
  }
}

@media (max-width: 640px) {
  .hsf-faq {
    width: calc(100% - 28px);
  }

  .hsf-faq__header {
    margin-bottom: 18px;
  }

  .hsf-faq__list {
    gap: 10px;
  }

  .hsf-faq__item {
    border-radius: 16px;
  }

  .hsf-faq__question {
    min-height: 56px;
    padding: 13px 14px;
    gap: 10px;
  }

  .hsf-faq__question-text {
    font-size: 14px;
    line-height: 1.8;
  }

  .hsf-faq__icon {
    width: 28px;
    height: 28px;
  }

  .hsf-faq__answer-inner {
    padding: 0 14px 14px 14px;
    font-size: 13px;
    line-height: 1.95;
  }
}
