/* Доступный FAQ-аккордеон главной страницы. */

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

.faq-item {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.faq-item:hover {
  border-color: var(--slate-300);
}

.faq-item[open] {
  border-color: rgba(232, 93, 63, .38);
  box-shadow: var(--shadow-hover);
}

.faq-item summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 18px;
  align-items: center;
  padding: 22px 24px;
  color: var(--navy-900);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.35;
  list-style: none;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}

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

.faq-item summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  color: var(--coral-600);
  background: var(--coral-100);
  font-size: 27px;
  font-weight: 700;
  line-height: 1;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.faq-item summary:hover {
  background: var(--slate-100);
}

.faq-item summary:focus-visible {
  outline: none;
  box-shadow: inset var(--focus-ring);
}

.faq-item[open] summary {
  color: var(--coral-600);
}

.faq-item[open] summary::after {
  content: "−";
  color: #fff;
  background: var(--coral-500);
  transform: rotate(180deg);
}

.faq-item__answer {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.faq-item__answer p {
  max-width: 760px;
  margin: 0;
}

@media (max-width: 640px) {
  .faq-list {
    gap: 12px;
  }

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

  .faq-item summary {
    grid-template-columns: minmax(0, 1fr) 38px;
    gap: 12px;
    padding: 18px;
    font-size: 16px;
  }

  .faq-item summary::after {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 24px;
  }

  .faq-item__answer {
    padding: 0 18px 18px;
    font-size: 15px;
  }
}

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