
.faq-page {
	background: #eeeeee;
	border-radius: 15px;
	padding: 30px;
}

/* =========================
   FAQ - GŁÓWNY KONTENER
========================= */

.faq-page {
    width: 100%;
    max-width: 1100px;
    margin: 30px auto;
    padding: 32px;
    background: #eeeeee;
    border: 1px solid #e5e5e5;
    border-radius: 15px;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

/* =========================
   NAGŁÓWEK
========================= */

.faq-page_header {
    margin-bottom: 25px;
}

.faq-page_header h2 {
    position: relative;
    margin: 0;
    padding-bottom: 16px;
    color: #222222;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.5px;
    border-bottom: 1px solid #d8d8d8;
}

.faq-page_header h2::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 55px;
    height: 3px;
    background: #cb3333;
    border-radius: 3px;
}

/* =========================
   ZAWARTOŚĆ FAQ
========================= */

.faq-page_content {
    width: 100%;
}

.faq {
    width: 100%;
}

/* =========================
   KAFELKI
========================= */

.faq .faq-item {
    margin-bottom: 12px;
    background: #ffffff;
    border: 1px solid #e1e1e1;
    border-radius: 9px;
    overflow: hidden;
    box-sizing: border-box;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.faq .faq-item:last-child {
    margin-bottom: 0;
}

.faq .faq-item:hover {
    border-color: #cb3333;
    box-shadow: 0 4px 14px rgba(203, 51, 51, 0.08);
}

.faq .faq-item details[open] {
    border-color: #cb3333;
}

/* =========================
   PYTANIA
========================= */

.faq .faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 70px;
    padding: 18px 22px;
    color: #292929;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.6;
    list-style: none;
    box-sizing: border-box;
    transition:
        color 0.25s ease,
        background 0.25s ease;
}

.faq .faq-question::-webkit-details-marker {
    display: none;
}

.faq .faq-question::marker {
    content: "";
}

.faq .faq-question:hover {
    color: #cb3333;
}

/* =========================
   IKONA PLUS
========================= */

.faq .faq-question span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    color: #cb3333;
    background: #fff1f1;
    border: 1px solid #f7dddd;
    border-radius: 7px;
    font-size: 23px;
    font-weight: 400;
    line-height: 1;
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.faq .faq-question:hover span {
    background: #ffe4e4;
}

.faq details[open] .faq-question span {
    transform: rotate(45deg);
    color: #ffffff;
    background: #cb3333;
    border-color: #cb3333;
}

/* Linia pod otwartym pytaniem */
.faq details[open] .faq-question {
    border-bottom: 1px solid #eeeeee;
}

/* =========================
   ODPOWIEDZI
========================= */

.faq .faq-answer {
    padding: 22px;
    color: #555555;
    font-size: 14px;
    line-height: 1.85;
    overflow-wrap: anywhere;
    box-sizing: border-box;
    animation: faqFadeIn 0.25s ease;
}

@keyframes faqFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq .faq-answer p {
    margin: 0 0 15px;
}

.faq .faq-answer p:last-child {
    margin-bottom: 0;
}

/* =========================
   LISTY
========================= */

.faq .faq-answer ul,
.faq .faq-answer ol {
    margin: 12px 0 18px;
    padding-left: 25px;
}

.faq .faq-answer li {
    margin-bottom: 7px;
    padding-left: 3px;
}

.faq .faq-answer li:last-child {
    margin-bottom: 0;
}

.faq .faq-answer li::marker {
    color: #cb3333;
}

.faq .faq-answer strong {
    color: #292929;
    font-weight: 700;
}

/* =========================
   KOD I NAZWY PLIKÓW
========================= */

.faq .faq-answer code {
    padding: 3px 7px;
    color: #b72727;
    background: #fff2f2;
    border: 1px solid #f1dada;
    border-radius: 5px;
    font-family: Consolas, monospace;
    font-size: 13px;
    overflow-wrap: anywhere;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}

/* Ścieżki i bloki kodu */
.faq .faq-answer pre {
    margin: 14px 0 18px;
    padding: 15px 17px;
    color: #b72727;
    background: #fff7f7;
    border: 1px solid #f0dddd;
    border-left: 3px solid #cb3333;
    border-radius: 7px;
    font-family: Consolas, monospace;
    font-size: 13px;
    line-height: 1.7;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    box-sizing: border-box;
}

/* =========================
   DOSTĘPNOŚĆ
========================= */

.faq .faq-question:focus-visible {
    outline: 2px solid #cb3333;
    outline-offset: -4px;
}

/* =========================
   RESPONSYWNOŚĆ
========================= */

@media (max-width: 768px) {
    .faq-page {
        margin: 20px auto;
        padding: 20px;
        border-radius: 11px;
    }

    .faq-page_header {
        margin-bottom: 20px;
    }

    .faq-page_header h2 {
        font-size: 26px;
    }

    .faq .faq-question {
        min-height: 62px;
        padding: 15px;
        gap: 12px;
        font-size: 14px;
    }

    .faq .faq-question span {
        width: 29px;
        height: 29px;
        font-size: 21px;
    }

    .faq .faq-answer {
        padding: 17px 15px;
        font-size: 13px;
        line-height: 1.8;
    }
}

@media (max-width: 420px) {
    .faq-page {
        padding: 14px;
    }

    .faq-page_header h2 {
        font-size: 23px;
    }

    .faq .faq-question {
        padding: 13px;
        font-size: 13px;
    }

    .faq .faq-answer code {
        font-size: 12px;
    }
}
