/* ==================================================
   trust-faq.css — Об'єднаний ряд: Відгуки + FAQ
   Modern Glassmorphism & High-Performance Layout
   ================================================== */

.trust-faq-section {
  position: relative;
  padding-block: clamp(60px, 8vh, 90px);
  overflow: hidden;
  z-index: 2;
}

/* Anchor helpers for nav navigation */
.anchor-target {
  position: absolute;
  top: -80px;
  visibility: hidden;
}

/* ---------- Grid Layout (Side-by-Side) ------------ */
.trust-faq-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 44px;
  align-items: start;
}

.tf-column {
  display: flex;
  flex-direction: column;
}

/* ---------- Headers -------------------------------- */
.tf-col-header {
  margin-bottom: 24px;
}

.tf-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent, #60a5fa);
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.tf-badge i {
  font-size: 13px;
}

.tf-title {
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
  color: var(--fg, #f1f5f9);
}

body.light-theme .tf-title {
  color: #0f172a;
}

.tf-subtitle {
  font-size: 0.98rem;
  color: var(--fg-muted, #94a3b8);
  line-height: 1.6;
  max-width: 480px;
}

body.light-theme .tf-subtitle {
  color: #64748b;
}

/* ==================================================
   LEFT COLUMN: TESTIMONIALS SLIDER
   ================================================== */
.tf-slider-container {
  position: relative;
  display: flex;
  flex-direction: column;
}

.tf-cards-viewport {
  position: relative;
  display: grid;
  grid-template-areas: "card";
  min-height: 320px;
}

/* Testimonial Card */
.tf-card {
  grid-area: card;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.4s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 32px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.35);
  box-sizing: border-box;
  z-index: 1;
}

.tf-card.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  z-index: 2;
}

body.light-theme .tf-card {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

/* Top bar of Card */
.tf-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.tf-stars-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tf-stars {
  display: flex;
  gap: 3px;
  color: #fbbf24;
  font-size: 15px;
}

.tf-score {
  font-size: 12px;
  font-weight: 700;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid rgba(251, 191, 36, 0.2);
}

.tf-quote-icon {
  font-size: 28px;
  color: var(--accent, #60a5fa);
  opacity: 0.25;
}

/* Quote Text */
.tf-quote-text {
  font-size: 1.06rem;
  line-height: 1.68;
  color: var(--fg, #f1f5f9);
  font-weight: 400;
  margin-bottom: 24px;
  flex: 1;
}

body.light-theme .tf-quote-text {
  color: #1e293b;
}

/* Author Row */
.tf-author-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-wrap: wrap;
}

body.light-theme .tf-author-row {
  border-top-color: rgba(0, 0, 0, 0.07);
}

.tf-author-profile {
  display: flex;
  align-items: center;
  gap: 13px;
}

.tf-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(96, 165, 250, 0.4);
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.25);
}

.tf-author-info {
  display: flex;
  flex-direction: column;
}

.tf-author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--fg, #fff);
  line-height: 1.25;
}

body.light-theme .tf-author-name {
  color: #0f172a;
}

.tf-author-role {
  font-size: 13px;
  color: var(--fg-muted, #94a3b8);
  margin-top: 2px;
}

body.light-theme .tf-author-role {
  color: #64748b;
}

.tf-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #10b981;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.22);
  padding: 4px 9px;
  border-radius: 100px;
}

/* Slider Controls Bar */
.tf-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  padding: 0 4px;
}

.tf-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.tf-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  padding: 0;
}

body.light-theme .tf-dot {
  background: rgba(0, 0, 0, 0.2);
}

.tf-dot.active {
  width: 22px;
  border-radius: 100px;
  background: var(--accent, #60a5fa);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.45);
}

.tf-counter {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg-muted, #94a3b8);
  font-variant-numeric: tabular-nums;
}

.tf-counter span {
  color: var(--accent, #60a5fa);
}

.tf-nav-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tf-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fg, #f1f5f9);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
}

body.light-theme .tf-nav-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #334155;
}

.tf-nav-btn:hover {
  background: rgba(96, 165, 250, 0.15);
  border-color: rgba(96, 165, 250, 0.3);
  color: var(--accent, #60a5fa);
  transform: translateY(-1px);
}

/* Mini Trust Strip */
.tf-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.tf-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg-muted, #94a3b8);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px 12px;
  border-radius: 8px;
}

body.light-theme .tf-trust-pill {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.06);
  color: #64748b;
}

.tf-trust-pill i {
  color: #10b981;
}

/* ==================================================
   RIGHT COLUMN: FAQ ACCORDION
   ================================================== */
.tf-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tf-faq-item {
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

body.light-theme .tf-faq-item {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.tf-faq-item:hover {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

body.light-theme .tf-faq-item:hover {
  border-color: rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.95);
}

.tf-faq-item[open] {
  border-color: rgba(96, 165, 250, 0.3);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(96, 165, 250, 0.025));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25), 0 0 20px rgba(96, 165, 250, 0.08);
}

body.light-theme .tf-faq-item[open] {
  border-color: rgba(37, 99, 235, 0.3);
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.tf-faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--fg, #f1f5f9);
  user-select: none;
}

body.light-theme .tf-faq-summary {
  color: #0f172a;
}

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

.tf-faq-q-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.tf-faq-num {
  font-size: 12px;
  font-weight: 800;
  color: var(--accent, #60a5fa);
  background: rgba(96, 165, 250, 0.1);
  padding: 3px 8px;
  border-radius: 6px;
  font-variant-numeric: tabular-nums;
}

.tf-faq-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--fg-muted, #94a3b8);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s;
}

body.light-theme .tf-faq-icon {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
  color: #64748b;
}

.tf-faq-item[open] .tf-faq-icon {
  transform: rotate(180deg);
  background: var(--accent, #60a5fa);
  border-color: var(--accent, #60a5fa);
  color: #fff;
}

.tf-faq-content {
  padding: 0 22px 20px 22px;
  animation: tfFaqFadeIn 0.3s ease;
}

@keyframes tfFaqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tf-faq-content p {
  font-size: 0.94rem;
  line-height: 1.68;
  color: var(--fg-2, #cbd5e1);
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

body.light-theme .tf-faq-content p {
  color: #334155;
  border-top-color: rgba(0, 0, 0, 0.06);
}

/* ==================================================
   RESPONSIVE
   ================================================== */
@media (max-width: 992px) {
  .trust-faq-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .tf-col-header {
    text-align: center;
  }

  .tf-subtitle {
    margin-inline: auto;
  }

  .tf-cards-viewport {
    min-height: 300px;
  }
}

@media (max-width: 600px) {
  .trust-faq-section {
    padding-block: 48px;
  }

  .trust-faq-grid {
    gap: 40px;
  }

  .tf-card {
    padding: 24px;
  }

  .tf-quote-text {
    font-size: 0.98rem;
  }

  .tf-faq-summary {
    padding: 16px 18px;
    font-size: 0.96rem;
  }

  .tf-faq-content {
    padding: 0 18px 16px 18px;
  }
}
