/* ── Sekcja FAQ na stronie głównej ── */
.faq-section {
    background: #f0f4f8;
    padding: 5rem 4rem;
}

.faq-inner {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.faq-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.faq-header span {
    position: relative;
    display: inline-block;
    padding: 0 12px;
    color: var(--blue-color);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.faq-header span::before,
.faq-header span::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 2px;
    background-color: var(--blue-color);
    opacity: 0.45;
    transform: translateY(-50%);
}

.faq-header span::before { right: 100%; }
.faq-header span::after  { left: 100%; }

.faq-header h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: var(--dark-color);
    margin: 0;
}

/* ── Lista i pozycje (wspólne dla sekcji i strony /faq) ── */
.faq-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.faq-item:hover { box-shadow: 0 8px 24px rgba(12, 29, 44, 0.08); }
.faq-item[open] { border-color: rgba(20, 114, 196, 0.35); }

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.4rem;
    cursor: pointer;
    list-style: none;
}

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

.faq-question {
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--dark-color);
}

.faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: var(--blue-color);
    background: rgba(20, 114, 196, 0.1);
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.faq-item[open] .faq-icon {
    transform: rotate(45deg);
    background: var(--blue-color);
    color: #fff;
}

.faq-answer { padding: 0 1.4rem 1.3rem; }

.faq-answer p {
    margin: 0;
    font-size: 0.925rem;
    line-height: 1.8;
    color: rgba(0, 0, 0, 0.68);
    white-space: pre-line; /* zachowaj akapity i wypunktowania z panelu */
}

.faq-more { margin-top: 2.5rem; }

/* ── Strona /faq ── */
.faq-page-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 3.5rem 2rem 5rem;
}

.faq-category {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark-color);
    margin: 2.5rem 0 1rem;
    padding-left: 12px;
    border-left: 3px solid var(--blue-color);
    line-height: 1.4;
}

.faq-category:first-child { margin-top: 0; }

.faq-empty {
    text-align: center;
    color: rgba(0, 0, 0, 0.6);
    padding: 2rem 0;
}

.faq-cta {
    margin-top: 3.5rem;
    padding: 2rem;
    text-align: center;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.07);
}

.faq-cta p {
    margin: 0 0 1.25rem;
    color: rgba(0, 0, 0, 0.7);
    line-height: 1.6;
}

@media (max-width: 560px) {
    .faq-section { padding: 3rem 1rem; }
    .faq-item summary { padding: 1rem; }
    .faq-question { font-size: 0.925rem; }
    .faq-answer { padding: 0 1rem 1.1rem; }
    .faq-page-content { padding: 2.5rem 1rem 4rem; }
    .faq-more { white-space: normal; text-align: center; }
}
