:root {
  --surface-soft: #f5f5f7;
  --surface-accent: #fafaf8;
  --surface-dark: #1d1d1f;
  --surface-border: #e5e5e7;
  --surface-border-strong: #d2d2d7;
  --brand-green: #19bf00;
  --brand-green-soft: rgba(25, 191, 0, 0.12);
  --text-muted: #86868b;
  --text-subtle: #424245;
  --shadow-soft: 0 24px 60px rgba(15, 23, 42, 0.06);
}

.faq-main {
  padding-bottom: 96px;
}

.faq-main > .site-page {
  display: grid;
  gap: clamp(44px, 7vw, 72px);
}

.faq-hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 20px 0 0;
  text-align: center;
}

.faq-hero h1 {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.faq-intro {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: clamp(18px, 2.6vw, 24px);
  line-height: 1.45;
}

.faq-section {
  padding: 0;
}

.faq-container {
  width: 100%;
  margin: 0 auto;
  padding: clamp(18px, 2vw, 22px);
  border-radius: 40px;
  background:
    radial-gradient(circle at top left, rgba(25, 191, 0, 0.12), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(25, 191, 0, 0.05), transparent 20rem),
    linear-gradient(180deg, #fbfbfd 0%, #f3f4f6 100%);
  border: 1px solid rgba(210, 210, 215, 0.86);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  border: 1px solid rgba(210, 210, 215, 0.78);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.faq-item.is-open {
  border-color: rgba(25, 191, 0, 0.35);
  background:
    linear-gradient(180deg, rgba(245, 255, 243, 0.98), rgba(255, 255, 255, 0.98)),
    rgba(255, 255, 255, 0.92);
  box-shadow:
    0 16px 34px rgba(15, 23, 42, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.faq-question {
  width: 100%;
  padding: 24px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;
  color: inherit;
}

.faq-question__text {
  display: block;
  margin: 0;
  font-size: clamp(18px, 2.5vw, 22px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.faq-icon {
  width: 38px;
  height: 38px;
  position: relative;
  flex-shrink: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(29, 29, 31, 0.08);
  transition: transform 0.3s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.faq-item.is-open .faq-icon {
  background: rgba(25, 191, 0, 0.12);
  border-color: rgba(25, 191, 0, 0.22);
}

.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  background: var(--surface-dark);
  transform: translate(-50%, -50%);
}

.faq-icon::before {
  width: 2px;
  height: 14px;
}

.faq-icon::after {
  width: 14px;
  height: 2px;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
}

.faq-answer p {
  margin: 0;
  padding: 0 26px 24px;
  color: var(--text-subtle);
  font-size: 16px;
  line-height: 1.65;
}

.faq-answer ul {
  margin: 0;
  padding: 0 26px 24px 48px;
  color: var(--text-subtle);
  font-size: 16px;
  line-height: 1.65;
}

.faq-answer li + li {
  margin-top: 8px;
}

.faq-answer strong {
  color: var(--surface-dark);
  font-weight: 700;
}

.faq-answer a {
  color: #147f04;
  font-weight: 700;
  text-decoration-line: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.16em;
}

.faq-answer a:hover {
  color: #0f6503;
}

.faq-answer a:focus-visible {
  outline: 2px solid rgba(25, 191, 0, 0.35);
  outline-offset: 3px;
  border-radius: 6px;
}

.faq-footer {
  display: grid;
  padding-top: 30px;
  text-align: center;
}

.faq-promo {
  display: grid;
  gap: clamp(42px, 6vw, 58px);
  padding: 6px 0 0;
}

.faq-promo__primary {
  display: flex;
  justify-content: center;
}

.faq-promo__primary .button-primary {
  min-height: 64px;
  padding: 0 32px;
  background: var(--brand-green);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  box-shadow: 0 18px 36px rgba(25, 191, 0, 0.26);
}

.faq-promo .support-card__actions .button-primary {
  background: var(--surface-dark);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(29, 29, 31, 0.12);
}

.faq-footer a {
  color: #1d1d1f;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  border-bottom: 2px solid var(--brand-green);
  padding-bottom: 4px;
}

@media (max-width: 768px) {
  .faq-main {
    padding-bottom: 72px;
  }

  .faq-main > .site-page {
    gap: 40px;
  }

  .faq-promo {
    gap: 32px;
  }

  .faq-container {
    padding: 16px;
    border-radius: 28px;
  }

  .faq-item {
    border-radius: 24px;
  }

  .faq-question {
    padding: 20px;
  }

  .faq-answer p {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  .faq-answer ul {
    padding: 0 20px 20px 40px;
    font-size: 15px;
  }

  .faq-icon {
    width: 34px;
    height: 34px;
  }

  .faq-icon::before {
    height: 12px;
  }

  .faq-icon::after {
    width: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-icon {
    transition: none;
  }

  .faq-answer {
    transition: none;
  }
}
