.faq {
  padding: 60px 24px;
  background: #f4f5f5;
}

.faq__container {
  max-width: var(--container-width);
  margin-inline: auto;
}

.faq__heading {
  margin-bottom: 32px;
}

.faq__eyebrow {
  margin: 0;
  color: rgba(95, 45, 164, .8);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-transform: uppercase;
}

.faq__title {
  margin: 0;
  font-size: 42px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.03em;
}

.faq__content {
  display: grid;
  grid-template-columns: minmax(0, 732fr) minmax(0, 676fr);
  align-items: start;
  gap: 56px;
  padding-right: 16px;
}

.faq__items {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.faq-item {
  padding: 14px 22px;
  border: 2px solid transparent;
  border-radius: 16px;
  background: #fff;
  transition: border-color var(--motion-duration) ease;
}

.faq-item[open] {
  border-color: rgba(220, 73, 153, .5);
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 58px;
  gap: 12px;
  list-style: none;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -.03em;
  cursor: pointer;
  transition: color var(--motion-duration) ease;
}

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

.faq-item__question:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-item[open] .faq-item__question {
  color: var(--color-brand);
}

.faq-item__arrow {
  position: relative;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}

.faq-item__arrow::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 10px;
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform var(--motion-duration) var(--motion-easing);
}

.faq-item[open] .faq-item__arrow::before {
  transform: rotate(225deg);
}

.faq-item_animating { overflow: hidden; }
.faq__items_animated .faq-item:not(.faq-item_expanded) { border-color: transparent; }
.faq__items_animated .faq-item:not(.faq-item_expanded) .faq-item__question { color: var(--color-text); }
.faq__items_animated .faq-item:not(.faq-item_expanded) .faq-item__arrow::before { transform: rotate(45deg); }

.faq-item__answer {
  max-width: 580px;
  margin: 8px 0 0;
  color: rgba(23, 20, 27, .8);
  font-size: 16px;
  line-height: 1.4;
  letter-spacing: -.03em;
}

.faq__image {
  width: 100%;
  height: auto;
}

@media (hover: hover) {
  .faq-item__question:hover,
  .faq__items_animated .faq-item:not(.faq-item_expanded) .faq-item__question:hover {
    color: var(--color-brand);
  }
}

@media (min-width: 768px) and (max-width: 1279px) {
  .faq__title {
    font-size: 32px;
  }

  .faq__content {
    gap: 24px;
    padding-right: 0;
  }

  .faq-item__question {
    font-size: 20px;
  }
}

@media (max-width: 767px) {
  .faq {
    padding: 40px 8px;
  }

  .faq__heading {
    margin-bottom: 24px;
  }

  .faq__eyebrow {
    margin-bottom: 4px;
    font-size: 12px;
  }

  .faq__title {
    font-size: 24px;
  }

  .faq__content {
    display: block;
    padding: 0;
  }

  .faq__items {
    gap: 6px;
  }

  .faq-item {
    padding: 11px 11px 11px 15px;
    border-width: 1px;
    border-radius: 12px;
  }

  .faq-item[open] {
    border-color: rgba(220, 73, 153, .6);
  }

  .faq-item__question {
    min-height: 24px;
    gap: 16px;
    font-size: 16px;
  }

  .faq-item__arrow {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

  .faq-item__arrow::before {
    top: 6px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-width: 1.5px;
  }

  .faq-item__answer {
    max-width: none;
    margin-top: 10px;
    font-size: 14px;
  }

  .faq__image {
    display: none;
  }
}
