.faq-section {
  margin: 44px 0;
}

.faq-list {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;

  display: grid;
  gap: 10px;
}

.faq-item {
  overflow: hidden;

  background: linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.012)), var(--card);

  border: 1px solid var(--line);
  border-radius: 14px;

  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.16);

  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.faq-item.is-open {
  background: linear-gradient(180deg, rgba(255, 49, 90, 0.045), rgba(255, 255, 255, 0.012)), var(--card);

  border-color: rgba(255, 49, 90, 0.28);

  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.22),
    0 0 22px rgba(255, 49, 90, 0.05);
}

.faq-item__question {
  width: 100%;
  min-height: 58px;
  padding: 15px 17px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;

  color: var(--text);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.4;
  text-align: left;

  background: transparent;
  border: 0;

  cursor: pointer;
}

.faq-item__question-text {
  flex: 1;
  min-width: 0;
}

.faq-item__icon {
  flex: 0 0 30px;

  width: 30px;
  height: 30px;

  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--accent);
  font-size: 19px;
  font-weight: 500;
  line-height: 1;

  background: rgba(255, 49, 90, 0.08);
  border: 1px solid rgba(255, 49, 90, 0.2);
  border-radius: 9px;

  transition:
    color 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.faq-item.is-open .faq-item__icon {
  color: #fff;

  background: var(--accent);
  border-color: var(--accent);

  transform: rotate(45deg);
}

.faq-item__answer {
  display: none;
  padding: 0 17px 17px;

  color: var(--muted);
  font-size: 14px;
  line-height: 1.72;
}

.faq-item.is-open .faq-item__answer {
  display: block;
}

.faq-item__answer p {
  margin: 0 0 10px;
}

.faq-item__answer p:last-child {
  margin-bottom: 0;
}

.faq-item__answer ul,
.faq-item__answer ol {
  margin: 10px 0 0;
  padding-left: 20px;
}

.faq-item__answer li + li {
  margin-top: 6px;
}

.faq-item__answer a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.faq-item__question:focus-visible {
  outline: 2px solid rgba(255, 49, 90, 0.72);
  outline-offset: -2px;
}

@media (max-width: 560px) {
  .faq-section {
    margin: 30px 0;
  }

  .faq-list {
    gap: 8px;
  }

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

  .faq-item__question {
    min-height: 52px;
    padding: 12px 13px;

    gap: 12px;

    font-size: 14px;
    line-height: 1.35;
  }

  .faq-item__icon {
    flex-basis: 28px;

    width: 28px;
    height: 28px;

    border-radius: 8px;
    font-size: 18px;
  }

  .faq-item__answer {
    padding: 0 13px 14px;

    font-size: 13px;
    line-height: 1.65;
  }
}

@media (hover: none) {
  .faq-item:hover {
    border-color: var(--line);
  }

  .faq-item.is-open:hover {
    border-color: rgba(255, 49, 90, 0.28);
  }
}
