/* FAQ отделён от карточек «Подход к работе»: здесь своя компактная сетка,
   а нативные details/summary оставляют весь текст доступным без JavaScript. */
.faq-section {
  position: relative;
  overflow: hidden;
  padding-top: 170px;
  padding-bottom: 210px;
  scroll-margin-top: -72px;
}

.faq-section::before {
  position: absolute;
  z-index: -1;
  top: 8%;
  left: 50%;
  width: min(780px, 92vw);
  height: 420px;
  border-radius: 999px;
  background: radial-gradient(
    circle,
    color-mix(in srgb, var(--wakudo-accent) 10%, transparent),
    transparent 68%
  );
  content: "";
  filter: blur(18px);
  pointer-events: none;
  transform: translateX(-50%);
}

.faq-shell {
  position: relative;
}

.faq-heading {
  margin-bottom: 48px;
}

.faq-heading .section-kicker {
  margin-bottom: 13px;
}

.faq-heading h2.hero-h1 {
  margin: 0;
  font-size: clamp(32px, 2.75vw, 38px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.04em;
}

.faq-intro {
  max-width: 560px;
  margin: 16px auto 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 14.5px;
  line-height: 1.6;
  letter-spacing: -0.018em;
}

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto;
}

.faq-item {
  position: relative;
  overflow: clip;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent 54%),
    rgba(5, 5, 8, 0.56);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(18px);
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    transform 220ms ease;
}

.faq-item:hover,
.faq-item[open] {
  border-color: color-mix(in srgb, var(--wakudo-accent) 24%, transparent);
}

.faq-item:hover {
  transform: translateY(-1px);
}

.faq-item[open] {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--wakudo-accent) 7%, transparent), transparent 52%),
    rgba(5, 5, 8, 0.68);
}

.faq-item summary {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 30px;
  gap: 18px;
  align-items: center;
  min-height: 76px;
  padding: 18px 22px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 560;
  line-height: 1.35;
  letter-spacing: -0.025em;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary:focus-visible {
  border-radius: inherit;
  outline: 2px solid color-mix(in srgb, var(--wakudo-accent) 72%, white);
  outline-offset: -3px;
}

.faq-number {
  color: color-mix(in srgb, var(--wakudo-accent) 70%, white);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.13em;
}

.faq-toggle {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.035);
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    transform 260ms ease;
}

.faq-toggle::before,
.faq-toggle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: rgba(255, 255, 255, 0.72);
  content: "";
  transform: translate(-50%, -50%);
}

.faq-toggle::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-toggle {
  border-color: color-mix(in srgb, var(--wakudo-accent) 28%, transparent);
  background: color-mix(in srgb, var(--wakudo-accent) 11%, transparent);
  transform: rotate(45deg);
}

.faq-item.is-closing .faq-toggle {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  transform: rotate(0);
}

.faq-answer {
  padding: 0 70px 24px 82px;
  transform-origin: top center;
  will-change: opacity, transform;
}

.faq-answer p {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.65;
  letter-spacing: -0.015em;
}

@media (max-width: 640px) {
  .faq-section {
    padding-top: 112px;
    padding-bottom: 150px;
    scroll-margin-top: -24px;
  }

  .faq-heading {
    margin-bottom: 36px;
  }

  .faq-heading h2.hero-h1 {
    font-size: clamp(29px, 9vw, 34px);
  }

  .faq-intro {
    max-width: 320px;
    margin-top: 13px;
    font-size: 13px;
    line-height: 1.58;
  }

  .faq-list {
    gap: 10px;
  }

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

  .faq-item summary {
    grid-template-columns: 28px minmax(0, 1fr) 28px;
    gap: 10px;
    min-height: 68px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.4;
  }

  .faq-number {
    font-size: 9px;
  }

  .faq-toggle {
    width: 28px;
    height: 28px;
  }

  .faq-answer {
    padding: 0 44px 20px 54px;
  }

  .faq-answer p {
    font-size: 12.5px;
    line-height: 1.6;
  }
}

@media (prefers-reduced-motion: reduce) {
  .faq-item,
  .faq-toggle,
  .faq-answer {
    transition: none;
  }
}
