/* WOOLTEX — FAQ page */

.faq-page {
  background:
    radial-gradient(ellipse at 12% 0%, rgba(26, 35, 126, 0.05) 0%, transparent 42%),
    radial-gradient(ellipse at 88% 18%, rgba(229, 57, 53, 0.04) 0%, transparent 40%),
    #ffffff;
}

.faq-wrap {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 24px;
}

.faq-intro {
  text-align: center;
  margin-bottom: 36px;
}

.faq-intro .ds-label {
  color: #e53935;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.faq-intro h2 {
  margin: 10px 0 0;
  color: #0d1b4b;
  font-family: "Space Grotesk", "Poppins", sans-serif;
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.faq-intro p {
  margin: 12px auto 0;
  max-width: 520px;
  color: #607d8b;
  font-size: 0.98rem;
  line-height: 1.65;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid rgba(13, 27, 75, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(26, 35, 126, 0.18);
}

.faq-item.is-open {
  border-color: rgba(26, 35, 126, 0.22);
  box-shadow: 0 8px 28px rgba(13, 27, 75, 0.06);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 18px 18px 20px;
  border: none;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font-family: "Space Grotesk", "Poppins", sans-serif;
  color: #0d1b4b;
}

.faq-q:focus-visible {
  outline: 2px solid #1a237e;
  outline-offset: -2px;
}

.faq-num {
  flex-shrink: 0;
  min-width: 1.6rem;
  color: #e53935;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.55;
  padding-top: 1px;
}

.faq-q-text {
  flex: 1;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: -0.01em;
}

.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: -1px;
  border-radius: 50%;
  background: rgba(26, 35, 126, 0.06);
  color: #1a237e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: #1a237e;
  color: #ffffff;
}

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease;
}

.faq-item.is-open .faq-a {
  grid-template-rows: 1fr;
}

.faq-a-inner {
  overflow: hidden;
}

.faq-a p {
  margin: 0;
  padding: 0 20px 20px 54px;
  color: #546e7a;
  font-size: 0.94rem;
  line-height: 1.7;
  max-width: 64ch;
}

.faq-banner {
  width: min(820px, calc(100% - 40px));
  margin: 40px auto 64px;
  padding: 40px 28px;
  border-radius: 18px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d1b4b 0%, #1a237e 55%, #0d1b4b 100%);
}

.faq-banner::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #e53935, #1565c0, #e53935);
}

.faq-banner h2 {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffffff;
  font-family: "Space Grotesk", "Poppins", sans-serif;
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.faq-banner p {
  position: relative;
  z-index: 1;
  margin: 12px auto 0;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  line-height: 1.65;
}

.faq-banner-actions {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.faq-banner-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 22px;
  border-radius: 10px;
  text-decoration: none;
  font-family: "Space Grotesk", "Poppins", sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.faq-banner-btn.primary {
  background: #e53935;
  color: #ffffff;
  box-shadow: 0 6px 18px rgba(229, 57, 53, 0.35);
}

.faq-banner-btn.primary:hover {
  background: #c62828;
  transform: translateY(-2px);
}

.faq-banner-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.faq-banner-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .faq-wrap {
    width: min(820px, calc(100% - 28px));
    padding: 32px 0 16px;
  }

  .faq-q {
    padding: 16px 14px 16px 14px;
    gap: 10px;
  }

  .faq-q-text {
    font-size: 0.95rem;
  }

  .faq-a p {
    padding: 0 14px 18px 14px;
    font-size: 0.9rem;
  }

  .faq-banner {
    width: min(820px, calc(100% - 28px));
    margin: 28px auto 48px;
    padding: 32px 18px;
  }

  .faq-banner-btn {
    width: 100%;
    max-width: 280px;
  }
}
