/* ===========================================
   SONAR FAQ — minimal accordion (reference)
   =========================================== */

.sonar-faq {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* Нарастающая темнота к низу секции (фон уходит в почти чёрный) */
.sonar-faq::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.12) 22%,
    rgba(0, 0, 0, 0.38) 50%,
    rgba(0, 0, 0, 0.72) 72%,
    rgba(0, 0, 0, 0.92) 100%
  );
}

/* Мягкое свечение справа снизу, как на референсе */
.sonar-faq-glow {
  position: absolute;
  right: -20%;
  bottom: -35%;
  width: min(70vw, 640px);
  height: min(50vw, 420px);
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(124, 58, 237, 0.22) 0%,
    rgba(88, 28, 135, 0.08) 42%,
    transparent 70%
  );
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.sonar-faq > .container {
  position: relative;
  z-index: 2;
}

.sonar-faq-head {
  text-align: center;
  margin-bottom: clamp(32px, 5vw, 48px);
}

.sonar-faq-title {
  margin: 0 0 14px;
  font-size: var(--sonar-headline-section-fs);
  line-height: var(--sonar-headline-section-lh);
  font-weight: var(--sonar-headline-section-fw);
  color: var(--sonar-headline-section-color);
  letter-spacing: var(--sonar-headline-section-tracking);
}

.sonar-faq-lead {
  margin: 0 auto;
  max-width: 740px;
  font-size: var(--sonar-section-subtitle-fs);
  line-height: var(--sonar-section-subtitle-lh);
  color: rgba(156, 163, 175, 0.95);
}

.sonar-faq-lead a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.sonar-faq-lead a:hover {
  color: #fff;
}

/* Список: только разделители, без карточек */
.sonar-faq-list {
  border-top: 1px solid rgba(55, 65, 81, 0.85);
}

.sonar-faq-item {
  border-bottom: 1px solid rgba(55, 65, 81, 0.85);
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.sonar-faq-summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #fff;
  font-weight: 500;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.4;
  user-select: none;
  transition: color 0.25s ease;
}

.sonar-faq-summary::-webkit-details-marker {
  display: none;
}
.sonar-faq-summary::marker {
  content: "";
}

.sonar-faq-q {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

/* + / − как на референсе */
.sonar-faq-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.sonar-faq-icon {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  line-height: 1;
  color: rgba(255, 255, 255, 0.85);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.sonar-faq-icon--minus {
  opacity: 0;
  transform: translateY(-50%) scale(0.85);
}

.sonar-faq-item[open] .sonar-faq-icon--plus {
  opacity: 0;
  transform: translateY(-50%) scale(0.85) rotate(90deg);
}

.sonar-faq-item[open] .sonar-faq-icon--minus {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* Высота и прозрачность анимируются из faq-accordion.js (max-height + opacity) */
.sonar-faq-panel {
  display: block;
}

.sonar-faq-panel-inner {
  overflow: hidden;
  will-change: max-height;
}

.sonar-faq-a {
  padding: 0 36px 22px 0;
  margin-top: -4px;
  color: rgba(156, 163, 175, 0.98);
  font-size: 15px;
  line-height: 1.65;
  max-width: 100%;
}

@media (max-width: 575px) {
  .sonar-faq-a {
    padding-right: 0;
    padding-bottom: 20px;
  }
}

.sonar-faq-foot {
  margin-top: clamp(28px, 4vw, 40px);
  text-align: center;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(156, 163, 175, 0.95);
}

.sonar-faq-foot a,
.sonar-faq-foot .sonar-faq-chat-link {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.sonar-faq-foot a:hover,
.sonar-faq-foot .sonar-faq-chat-link:hover {
  color: #fff;
}

.sonar-faq-foot .sonar-faq-chat-link {
  display: inline;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
}

@media (prefers-reduced-motion: reduce) {
  .sonar-faq-icon,
  .sonar-faq-item[open] .sonar-faq-icon--plus,
  .sonar-faq-item[open] .sonar-faq-icon--minus {
    transition: none;
  }
  .sonar-faq-item[open] .sonar-faq-icon--plus {
    transform: translateY(-50%);
  }
}
