/* ===== FAQ styles (uses your :root variables) ===== */
.faq {
  padding: 72px 0;
  position: relative;
}

.faq > .container {
  position: relative;
  z-index: 1;
}

.faq__head {
  text-align: center;
  margin-bottom: 28px;
}
.faq__title {
  margin: 0 0 10px;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text);
  font-weight: 900;
}
.faq__subtitle {
  margin: 0 auto;
  max-width: 760px;
  color: var(--color-text-2);
  line-height: 1.6;
}

.faq__grid {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: rgba(22, 27, 34, 0.78);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 14px);
  box-shadow: var(--shadow-sm, 0 6px 18px rgba(0, 0, 0, 0.25));
  overflow: hidden;
}

.faq-item__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;

  padding: 18px 18px;
  background: transparent;
  border: 0;
  cursor: pointer;
  text-align: left;

  color: var(--color-text);
  font: 700 16px/1.35 var(--font-main, system-ui);

  transition: background var(--tr-base, 220ms ease);
}
.faq-item__btn:hover {
  background: rgba(23, 190, 187, 0.06);
}
.faq-item__btn:focus-visible {
  outline: 2px solid rgba(23, 190, 187, 0.65);
  outline-offset: 2px;
  border-radius: calc(var(--radius-md, 14px) - 2px);
}

.faq-item__q {
  display: inline-block;
}

.faq-item__icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(13, 17, 23, 0.65);
  position: relative;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

/* plus/minus */
.faq-item__icon::before,
.faq-item__icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: var(--color-accent);
  transform: translate(-50%, -50%);
  border-radius: 2px;
  transition: opacity var(--tr-base, 220ms ease);
}
.faq-item__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.faq-item.is-open .faq-item__icon::after {
  opacity: 0;
}

/* ===== smooth panel animation ===== */
.faq-item__panel {
  padding: 0 18px; /* только боковые */
  overflow: clip;
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition:
    max-height 320ms ease,
    opacity 220ms ease,
    transform 220ms ease;
  will-change: max-height, opacity, transform;
}
@supports not (overflow: clip) {
  .faq-item__panel {
    overflow: hidden;
  }
}

.faq-item.is-open .faq-item__panel {
  opacity: 1;
  transform: translateY(0);
}

.faq-item__panel-inner {
  padding: 6px 0 18px;
}

.faq-item__a {
  color: var(--color-text-2);
  line-height: 1.6;
}

.faq__cta {
  max-width: 980px;
  margin: 18px auto 0;
  padding: 16px 18px;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;

  border: 1px solid var(--color-border);
  border-radius: var(--radius-md, 14px);
  background: rgba(13, 17, 23, 0.55);
}

.faq__cta-text {
  color: var(--color-text-2);
}

@media (max-width: 720px) {
  .faq {
    padding: 56px 0;
  }
  .faq__cta {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
}
