.accordion {
  margin: var(--spacing-l) auto;
  max-width: var(--size-width-p);
  padding: var(--spacing-s) 0;
  border-top: var(--border-s);
  border-bottom: var(--border-s);

  +.accordion {
    margin-top: calc(var(--spacing-l)*-1);
    border-top: 0;
  }

  &[data-open=true] {
    .accordionHeader {
      &:before {
        transform: rotate(-90deg);
      }
    }

    .accordionContent {
      display: block;
    }
  }
}

.accordionHeader {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  position: relative;
  cursor: pointer;

  span {
    font-size: var(--font-size-h2);
    font-weight: 500;
    padding-right: var(--size-icon-circle);
    line-height: 1.2;
  }

  &:before {
    content: "";
    display: block;
    position: absolute;
    width: var(--size-icon-circle);
    height: var(--size-icon-circle);
    background-size: 100%;
    background-image: url("/assets/icons/circle-arrow-right.svg");
    right: 0;
    transform: rotate(90deg);
    transition: transform .3s ease;
  }
}

.accordionContent {
  padding: var(--spacing-m) 0 var(--spacing-s);
  display: none;
}

.icon {
  flex: none;
  width: 3.4rem;
  height: 3.4rem;
  background: var(--color-goldenBeige);
  border-radius: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  img {
    width: 100%;
  }
}