.faq-page {
  width: 100%;
  max-width: 900px;

  margin: auto;
  padding: 78px 24px 100px;
}

.faq-hero {
  max-width: 720px;

  margin: 0 auto 48px;

  text-align: center;
}

.faq-label {
  display: inline-block;

  margin-bottom: 14px;

  color: var(--primary);

  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.faq-hero h1 {
  margin-bottom: 18px;

  font-size: clamp(40px, 6vw, 58px);
  line-height: 1.08;
  letter-spacing: -2px;
}

.faq-hero p {
  color: var(--secondary);

  font-size: 17px;
  line-height: 1.7;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  overflow: hidden;

  border: 1px solid var(--border);
  border-radius: 18px;

  background: var(--primary-soft);

  animation: faq-rise-in 1.5s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: 0.3s;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq-item:nth-child(2) { animation-delay: 0.34s; }
.faq-item:nth-child(3) { animation-delay: 0.38s; }
.faq-item:nth-child(4) { animation-delay: 0.42s; }
.faq-item:nth-child(5) { animation-delay: 0.46s; }
.faq-item:nth-child(6) { animation-delay: 0.5s; }
.faq-item:nth-child(7) { animation-delay: 0.54s; }
.faq-item:nth-child(8) { animation-delay: 0.58s; }
.faq-item:nth-child(9) { animation-delay: 0.62s; }
.faq-item:nth-child(10) { animation-delay: 0.66s; }
.faq-item:nth-child(11) { animation-delay: 0.7s; }
.faq-item:nth-child(12) { animation-delay: 0.74s; }
.faq-item:nth-child(13) { animation-delay: 0.78s; }
.faq-item:nth-child(14) { animation-delay: 0.82s; }
.faq-item:nth-child(15) { animation-delay: 0.86s; }

.faq-item[open] {
  border-color: var(--primary);
  background: var(--white);
}

.faq-item summary {
  position: relative;

  padding: 22px 64px 22px 24px;

  list-style: none;

  cursor: pointer;

  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

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

.faq-item summary::after {
  content: "+";

  position: absolute;
  top: 50%;
  right: 22px;

  width: 30px;
  height: 30px;

  display: grid;
  place-items: center;

  border-radius: 10px;

  background: var(--primary-light);
  color: var(--primary);

  font-size: 20px;
  font-weight: 500;

  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  transform: translateY(-50%) rotate(180deg);
}

.faq-item summary:hover {
  color: var(--primary);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--primary-light);
  outline-offset: -3px;
  border-radius: 17px;
}

.faq-item p {
  max-width: 760px;

  padding: 0 64px 24px 24px;

  color: var(--secondary);

  font-size: 15px;
  line-height: 1.75;
}

@keyframes faq-rise-in {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

@media (prefers-reduced-motion: reduce) {

  .faq-item {
    animation: none;
  }
}

@media (max-width: 600px) {

  .faq-page {
    padding: 52px 16px 70px;
  }

  .faq-hero {
    margin-bottom: 34px;
  }

  .faq-hero h1 {
    font-size: 36px;
    letter-spacing: -1.3px;
  }

  .faq-hero p {
    font-size: 15px;
  }

  .faq-list {
    gap: 10px;
  }

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

  .faq-item summary {
    padding: 19px 56px 19px 18px;

    font-size: 15px;
  }

  .faq-item summary::after {
    right: 16px;

    width: 28px;
    height: 28px;
  }

  .faq-item p {
    padding: 0 18px 20px;

    font-size: 14px;
  }
}
