/**
 * FAQ Section Styles
 */

.faq__container {
  display: flex;
  padding: 80px 72px;
  gap: 48px;
  justify-content: space-between;
}

.faq__header {
  display: flex;
  gap: 29px;
  width: 636px;
}

.faq__marker {
  width: 29px;
  height: 53px;
}

.faq__label {
  font-family: var(--subfont);
  font-weight: 700;
  font-size: 64px;
  line-height: 115%;
  text-transform: uppercase;
  color: #ffffff;
  width: 475px;
}

.faq__subtitle {
  font-family: var(--userfont);
  font-weight: 500;
  font-size: 24px;
  line-height: 150%;
  color: #ffffff;
  width: 487px;
  opacity: 70%;
}

.faq__title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
}

.faq-item {
  padding: 32px 32px 0 32px;
  user-select: none;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--subfont);
  font-weight: 600;
  font-size: 26px;
  line-height: 116%;
  gap: 87px;
  margin-bottom: 32px;
}

.faq-item__icon {
  width: 34px;
  height: 34px;
  transition: transform 0.3s ease-out;
  background: url(../../img/faq-arrow-white.svg) center / cover no-repeat;
}

.faq-item__content {
  overflow: hidden;
  transition:
    height 300ms ease-out,
    opacity 300ms ease-out;
  cursor: pointer;
  font-family: var(--userfont);
  font-weight: 500;
  font-size: 24px;
  line-height: 150%;
  color: #ffffff;
  height: 0;
  opacity: 0;
}

.faq__highlight {
  transition: color 0.3s ease-out;
}

.faq-item.active .faq-item__icon {
  transform: rotate(180deg);
  background: url(../../img/faq-arrow-green.svg) center / cover no-repeat;
}

.faq-item.active .faq__highlight {
  color: #2cff80;
}

.faq__button {
  display: none;
}

.faq__button-mask {
  display: none;
}

@media (min-width: 768px) and (max-width: 1194px) {
  .faq__container {
    flex-direction: column;
    padding-right: 32px;
  }
}

@media (max-width: 768px) {
  .faq__container {
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 32px;
    gap: 0;
    align-items: center;
    position: relative;
  }

  .faq__header {
    flex-direction: column-reverse;
    width: auto;
    align-items: center;
    margin-bottom: 32px;
  }

  .faq__marker {
    width: 20px;
    height: 44px;
    transform: rotate(90deg);
  }

  .faq__label {
    font-size: 24px;
    line-height: 125%;
    width: auto;
    text-align: center;
  }

  .faq__subtitle {
    font-size: 18px;
    line-height: 150%;
    width: auto;
    text-align: center;
    margin-top: 16px;
  }

  .faq-item__header {
    font-size: 18px;
    line-height: 115%;
    margin-bottom: 20px;
    gap: 12px;
  }

  .faq-item__icon {
    width: 24px;
    height: 24px;
    transform-style: preserve-3d;
  }

  .faq-item__content {
    font-size: 16px;
    line-height: 150%;
  }

  .faq-item {
    padding: 20px 0 0 20px;
  }

  .faq-item.active .faq-item__icon {
    transform: rotateX(180deg);
  }

  .faq__button {
    padding: 12px 16px;
    background-color: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 36px;
    margin-top: 32px;
    font-family: var(--subfont);
    font-weight: 400;
    font-size: 16px;
    line-height: 100%;
    color: #ffffff;
    z-index: 1;
  }

  .faq-extra {
    height: 0;
    overflow: hidden;
    transition: height 300ms ease-out;
  }

  .faq__button-mask {
    display: block;
    position: absolute;
    width: 100%;
    height: 243px;
    background: linear-gradient(180deg, rgba(9, 9, 9, 0) 0%, #090909 62.86%);
    bottom: 0;
    left: 0;
    right: 0;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
  }

  .faq__button-mask.hidden {
    opacity: 0;
  }
}
