/* JNN Factory — общий блок «Частые вопросы» (FAQ / AEO).
   Подключается на страницах услуг и лендингах. Классы нейтральные,
   чтобы одинаково выглядеть и на Tilda-страницах, и на простых страницах. */

.jnn-faq {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px 24px 16px;
  box-sizing: border-box;
}

.jnn-faq .jnn-faq-head {
  margin-bottom: 28px;
}

.jnn-faq h2 {
  font-size: 30px;
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: #000;
  margin: 0 0 10px;
}

.jnn-faq .jnn-faq-sub {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin: 0;
  max-width: 780px;
}

.jnn-faq .faq-item {
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  background: #fff;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jnn-faq .faq-item:hover {
  border-color: #d8d8d8;
}

.jnn-faq .faq-item[open] {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05);
}

.jnn-faq summary {
  display: block;
  position: relative;
  cursor: pointer;
  list-style: none;
  padding: 20px 56px 20px 22px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.45;
  color: #000;
}

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

.jnn-faq summary::after {
  content: '+';
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  line-height: 1;
  font-weight: 400;
  color: #999;
}

.jnn-faq .faq-item[open] summary::after {
  content: '–';
}

.jnn-faq .faq-a {
  padding: 0 22px 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #333;
}

.jnn-faq .faq-a p {
  margin: 0 0 12px;
}

.jnn-faq .faq-a b,
.jnn-faq .faq-a strong {
  color: #000;
}

.jnn-faq .faq-a a {
  color: #000;
  text-decoration: underline;
}

.jnn-faq .jnn-faq-cta {
  margin: 26px 0 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  color: #333;
}

.jnn-faq .jnn-faq-cta a {
  display: inline-block;
  padding: 14px 26px;
  /* на страницах статей акцент переопределяется через --jnn-accent */
  background: var(--jnn-accent, #000);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.2s ease;
}

.jnn-faq .jnn-faq-cta a:hover {
  background: var(--jnn-accent-hover, #333);
  text-decoration: none;
}

@media (max-width: 640px) {
  .jnn-faq {
    padding: 44px 16px 8px;
  }
  .jnn-faq h2 {
    font-size: 23px;
  }
  .jnn-faq summary {
    font-size: 16px;
    padding: 16px 48px 16px 16px;
  }
  .jnn-faq .faq-a {
    padding: 0 16px 16px;
  }
}
