/* ======================================================== */
/* 10_faq: EXPANDABLE ACCORDION STYLING (NATIVE DETAILS)    */
/* ======================================================== */

.ecoproject-faq-section {
  background: #ffffff;
  padding: 90px 0;
  position: relative;

  --faq-green: #419b52;
  --faq-green-hover: #358343;
  --faq-card-bg: #f8fafc;
  --faq-text-dark: #0f172a;
  --faq-text-muted: #64748b;
  --faq-border: #e2e8f0;
  --faq-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --faq-transition: all 0.3s ease;
  scroll-margin-top: 80px !important;
}

.ecoproject-faq-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.ecoproject-faq-header {
  text-align: center;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ecoproject-faq-label {
  font-size: 13px;
  font-weight: 800;
  color: var(--faq-green);
  text-transform: uppercase;
  letter-spacing: 2px;
  display: block;
  margin-bottom: 12px;
}

.ecoproject-faq-title {
  font-size: 32px;
  font-weight: 900;
  color: var(--faq-text-dark);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin: 0 0 12px 0;
}

.ecoproject-faq-subtitle {
  font-size: 15px;
  color: var(--faq-text-muted);
  line-height: 1.6;
  margin: 16px 0 0 0;
}

.ecoproject-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

details.ecoproject-faq-item {
  background: var(--faq-card-bg);
  border: 1px solid var(--faq-border);
  border-radius: 10px;
  overflow: hidden;
  transition: var(--faq-transition);
}

details.ecoproject-faq-item:hover {
  border-color: rgba(65, 155, 82, 0.35);
}

summary.ecoproject-faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 16px;
  font-weight: 700;
  color: var(--faq-text-dark);
  cursor: pointer;
  list-style: none; /* Скрываем стандартную стрелку браузера */
  user-select: none;
  transition: var(--faq-transition);
  box-sizing: border-box;
}

/* Скрытие стандартного маркёра браузеров */
summary.ecoproject-faq-question::-webkit-details-marker,
summary.ecoproject-faq-question::marker {
  display: none;
}

summary.ecoproject-faq-question:hover {
  color: var(--faq-green);
}

.ecoproject-faq-icon {
  width: 24px;
  height: 24px;
  position: relative;
  flex-shrink: 0;
}

.ecoproject-faq-icon::before,
.ecoproject-faq-icon::after {
  content: '';
  position: absolute;
  background-color: var(--faq-text-dark);
  transition: var(--faq-transition);
}

.ecoproject-faq-icon::before {
  top: 11px;
  left: 3px;
  width: 18px;
  height: 2px;
}

.ecoproject-faq-icon::after {
  top: 3px;
  left: 11px;
  width: 2px;
  height: 18px;
}

/* Анимация плюс/минус при открытом теге <details> */
details.ecoproject-faq-item[open] .ecoproject-faq-icon::after {
  transform: rotate(90deg);
  opacity: 0;
}

details.ecoproject-faq-item[open] .ecoproject-faq-icon::before {
  background-color: var(--faq-green);
}

details.ecoproject-faq-item[open] summary.ecoproject-faq-question {
  color: var(--faq-green);
}

.ecoproject-faq-answer {
  padding: 0 24px 20px 24px;
  color: var(--faq-text-muted);
  font-size: 14px;
  line-height: 1.65;
  border-top: 1px solid #f1f5f9;
}

.ecoproject-faq-answer-inner {
  padding-top: 16px;
}

.ecoproject-faq-answer p {
  margin: 0;
}
