/* ===========================================================================
   SkyRoute Travel - FAQ
   =========================================================================== */

.faq-section {
  background: var(--bg-tint);
  padding: 96px 40px;
  border-radius: var(--radius-2xl);
  display: flex;
  flex-direction: column;
  gap: 48px;
  overflow: hidden;
}

.faq-section__heading {
  width: 100%;
  max-width: var(--container);
  align-self: center;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.faq-section__label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.faq-section__label-dot {
  width: 8px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brand-blue);
  flex-shrink: 0;
}

.faq-section__label-text {
  font-size: var(--fs-3xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 1.5px;
  color: var(--text-secondary);
  text-transform: uppercase;
  white-space: nowrap;
}

.faq-section__h2-col {
  width: 669px;
}

.faq-section__title {
  font-size: var(--fs-h2);
  font-weight: var(--fw-bold);
  line-height: 1.16;
  letter-spacing: 0;
}

.faq-section__title span {
  background: var(--highlight-bg);
  border-radius: var(--radius-sm);
  padding: 0.02em 0.24em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.faq-list {
  width: 100%;
  max-width: var(--container);
  align-self: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* details/summary сбрасываем браузерные стили */
.faq-item {
  display: block;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  background: var(--surface-card);
  overflow: hidden;
  list-style: none;
}

.faq-item[open] {
  padding-block: 20px 24px;
}

/* убираем дефолтный маркер у summary */
.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__title {
  font-size: var(--fs-body-sm);
  font-weight: var(--fw-semibold);
  line-height: 1.16;
}

.faq-item__icon {
  width: 24px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: var(--fs-sm-tight);
  line-height: 1;
  transition: background var(--dur-base) var(--ease-soft),
              color var(--dur-base) var(--ease-soft);
}

/* иконка + / - через CSS content */
.faq-item__icon::after {
  content: '+';
}

.faq-item[open] .faq-item__icon {
  background: var(--surface-dark);
  color: var(--text-inverse);
}

.faq-item[open] .faq-item__icon::after {
  content: '\2212';
}

.faq-item__answer {
  font-size: var(--fs-sm);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: 12px;
}

@media (max-width: 1024px) {
  .faq-section__heading {
    flex-direction: column;
    gap: 40px;
  }

  .faq-section__h2-col {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .faq-section {
    padding: 48px 16px;
    gap: 48px;
  }

  .faq-section__title {
    font-size: var(--fs-h3-xs);
    line-height: normal;
  }

  .faq-item {
    overflow: visible;
  }
}

@media (max-width: 480px) {
  .faq-section {
    padding: 56px 16px;
    border-radius: 32px;
    gap: 48px;
  }

  .faq-section__heading {
    gap: 16px;
  }

  .faq-section__title {
    font-size: var(--fs-h3-xs);
    line-height: normal;
  }

  .faq-item {
    padding: 20px 24px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .faq-section {
    padding: 64px 24px;
    gap: 48px;
  }

  .faq-section__heading {
    flex-direction: column;
    gap: 16px;
  }

  .faq-section__h2-col {
    width: 100%;
  }

  .faq-item {
    padding: 20px 24px;
  }
}
