/* FAQ на главной — аккордеон в тонах CheatPulse */

.home-faq {
  position: relative;
  z-index: 2;
  padding: 8px 0 0;
  background: transparent;
}

/* Глобальные 100px у main + 100px у футера давали пустоту под FAQ */
body.page-home main:not(.help-page) {
  padding-bottom: 0 !important;
}

body.page-home .site-footer {
  margin-top: 48px !important;
  padding: 44px 0 30px !important;
}

.home-faq .container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.home-faq__header {
  margin: 0 0 28px;
}

.home-faq__title {
  margin: 0 0 22px;
  font-family: 'Onder', var(--font-main, sans-serif);
  font-weight: 400;
  font-size: clamp(1.65rem, 3.2vw, 2rem);
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  color: var(--home-text, #fff);
}

.home-faq__lead {
  margin: 0;
  max-width: 40rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.52);
}

.home-faq__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.home-faq__item {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  overflow: hidden;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.home-faq__item > h3 {
  margin: 0;
  font: inherit;
}

.home-faq__item.is-open {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.045);
}

.home-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin: 0;
  padding: 1rem 1.15rem;
  border: none;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.home-faq__item.is-open .home-faq__q {
  color: #fff;
}

.home-faq__q:hover {
  color: #fff;
}

.home-faq__q:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -2px;
}

.home-faq__chevron {
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 0.22s ease;
  opacity: 0.72;
}

.home-faq__item.is-open .home-faq__chevron {
  transform: rotate(45deg);
  opacity: 1;
}

.home-faq__a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.home-faq__item.is-open .home-faq__a {
  grid-template-rows: 1fr;
}

.home-faq__a-inner {
  overflow: hidden;
}

.home-faq__a-inner p {
  margin: 0;
  padding: 0 1.15rem 1.1rem;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.58);
}

@media (prefers-reduced-motion: reduce) {
  .home-faq__a,
  .home-faq__chevron,
  .home-faq__item {
    transition: none;
  }
}

@media (max-width: 640px) {
  .home-faq__title {
    font-size: 1.35rem;
  }

  .home-faq__q {
    font-size: 0.9rem;
    padding: 0.9rem 1rem;
  }

  .home-faq__a-inner p {
    padding: 0 1rem 1rem;
    font-size: 0.86rem;
  }
}
