@import url(https://fonts.bunny.net/css?family=anek-gujarati:400,600);
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: linear-gradient(45deg, #453f3a, #8a807b);
  display: grid;
  font-size: 0.8rem;
  font-family: "Anek Gujaratii", sans-serif;
  min-height: 100vh;
  place-items: center;
}

.faq-card {
  background: white;
  width: 330px;
  border-radius: 20px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.35);
}
.faq-card__title {
  color: rgb(101, 58, 255);
  padding-block: 1em 0.6em;
  text-align: center;
  font-size: 2rem;
}
.faq-card__list {
  padding-bottom: 4em;
  list-style-type: none;
}
.faq-card__item {
  color: #453f3a;
  padding-block: 1em;
  margin-inline: 1.5em;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}
.faq-card__button {
  color: #2a2623;
  display: flex;
  width: 100%;
  cursor: pointer;
  border: none;
  background: none;
  align-items: center;
  justify-content: space-between;
}
.faq-card__button_active {
  transition: color 200ms linear, font-weight 100ms linear, margin-bottom 100ms linear;
}
.faq-card__button_active .faq-card__icon {
  transition: 200ms linear;
}
.faq-card__button_active:hover:not(:focus) {
  color: #c76d52;
}
.faq-card__button_active:not(:focus) + .faq-card__desc {
  visibility: hidden;
  opacity: 0;
  max-height: 0;
}
.faq-card__button_active:focus {
  margin-bottom: 1em;
  font-weight: 600;
}
.faq-card__button_active:focus + .faq-card__desc {
  visibility: visible;
  opacity: 1;
  max-height: 100px;
}
.faq-card__button_active:focus .faq-card__icon {
  transform: rotate(180deg);
}
.faq-card__icon {
  color: #c76d52;
}
.faq-card__desc {
  transition: opacity 0.7s linear;
  max-inline-size: calc(100% - 13px);
  line-height: 1.1rem;
}