        /* ---------- GLOBALNE STYLE DLA SEKCJI FAQ ---------- */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-900: #0f172a;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --radius-md: 12px;
  --radius-sm: 8px;
}

.main_text {
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
  background: var(--gray-50);
}

.inner-page {
  padding: 3rem 1rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* ----- NAGŁÓWKI SEKCJI ----- */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gray-900) 0%, var(--primary) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--gray-600);
  border-bottom: none;
  margin-top: 0;
}

/* ----- GRUPY PYTAN (H3) ----- */
.team h3 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--gray-900);
  margin: 2.5rem 0 1.25rem 0;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--primary);
  display: inline-block;
  letter-spacing: -0.01em;
}

/* ----- STYLE DLA <details> (akordeon) ----- */
details {
  background: white;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s ease, transform 0.1s ease;
}

details:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--gray-300);
}

details[open] {
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

/* Przycisk pytania */
summary {
  padding: 1.125rem 1.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--gray-900);
  cursor: pointer;
  list-style: none; /* usuwa domyślną strzałkę */
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: var(--radius-md);
  background: white;
  transition: background 0.2s ease;
}

/* Usunięcie domyślnego markera w WebKit */
summary::-webkit-details-marker {
  display: none;
}

/* Dodanie własnej strzałki + efekt obrotu */
summary::after {
  content: "▼";
  font-size: 0.75rem;
  color: var(--primary);
  transition: transform 0.25s ease;
  margin-left: 1rem;
  flex-shrink: 0;
}

details[open] summary::after {
  transform: rotate(180deg);
}

/* Hover i focus */
summary:hover {
  background-color: var(--gray-50);
}

summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}

/* Treść odpowiedzi */
.answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--gray-700);
  line-height: 1.6;
  border-top: 1px solid var(--gray-200);
  margin-top: 0;
  font-size: 0.98rem;
}

/* Stylizacja tekstu wewnątrz odpowiedzi */
.answer p {
  margin: 0 0 1rem 0;
}

.answer strong, .answer b {
  color: var(--gray-900);
  font-weight: 600;
}

.answer a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px dotted var(--primary);
}

.answer a:hover {
  color: var(--primary-dark);
}

/* ----- RESPONSYWNOŚĆ ----- */
@media (max-width: 768px) {
  .inner-page {
    padding: 1.5rem 0.75rem;
  }
  
  .section-header h1 {
    font-size: 1.8rem;
  }
  
  .section-header h2 {
    font-size: 1rem;
  }
  
  .team h3 {
    font-size: 1.4rem;
  }
  
  summary {
    padding: 1rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .answer {
    padding: 0 1.25rem 1.25rem 1.25rem;
    font-size: 0.9rem;
  }
}

/* Dodatkowa przestrzeń dla ostatniego elementu */
.team details:last-of-type {
  margin-bottom: 0;
}

/* Płynne przewijanie do sekcji (opcjonalnie) */
html {
  scroll-behavior: smooth;
}