/* Spis treści */
.faq-toc {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    padding: 20px;
    margin-bottom: 30px;
}

.faq-toc-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #644993;
}

.faq-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-toc li {
    margin: 8px 0;
}

.faq-toc a {
    color: #644993;
    text-decoration: none;
    display: inline-block;
    padding: 5px 0;
}

.faq-toc a:hover {
    color: #a292cc;
}

/* FAQ Akordeony */
.faq-item {
    border: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.faq-question {
    background: #a292cc;
    color: white;
    padding: 15px 20px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question:hover {
    background: #c5b8e7;
}

.faq-icon {
    font-size: 20px;
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    display: none;
    padding: 20px;
    background: white;
    border-top: 1px solid #e0e0e0;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 10px 0;
}

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

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* Płynne przewijanie */
html {
    scroll-behavior: smooth;
}

h2[id] {
    scroll-margin-top: 100px;
}
