
/* =========================================================
   KOLORAMA — FAQ
   Spójny styl z głównym style.css
   Wymagane fonty i podstawowe zmienne: style.css
========================================================= */

/* ---------------------------------------------------------
   1. ZMIENNE I BAZA
--------------------------------------------------------- */

.faq-page {
    --faq-yellow: var(--primary-color, #FFCC00);
    --faq-yellow-hover: #DFB200;
    --faq-navy: #202657;
    --faq-text: #30375e;
    --faq-muted: #737b9c;
    --faq-light: #f2f7fa;
    --faq-border: #e9ebf0;
    --faq-white: #ffffff;

    color: var(--faq-text);
    font-family: var(--primary-text-font, "Comfortaa", sans-serif);
    overflow: hidden;
}

.faq-page *,
.faq-page *::before,
.faq-page *::after {
    box-sizing: border-box;
}

.faq-page a {
    text-decoration: none;
}

h2.faq-title {
    margin: 0 0 35px;
    color: #202657;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.035em;
    font-family: var(--primary-title-font, "Big Shoulders", sans-serif);
}

.faq-group__intro h3,
.faq-group__intro p {
    color: #202657;
}


/* ---------------------------------------------------------
   2. HERO
--------------------------------------------------------- */

.faq-hero {
    padding: 80px 0;
    background: var(--faq-light);
}

.faq-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 55px;
}

.faq-hero__content {
    position: relative;
    z-index: 2;
}

.faq-hero h1 {
    margin: 0 0 24px;
    font-size: clamp(3.5rem, 4vw, 6.5rem);
    font-weight: 800;
    line-height: 1.08;
}

.faq-hero__content > p {
    max-width: 600px;
    margin: 0;
    font-size: clamp(1.5rem, 1vw, 2rem);
    line-height: 1.8;
}

.faq-hero__buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    margin-top: 30px;
}

.faq-hero__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--faq-navy);
    font-size: clamp(1.2rem, 1vw, 1.5rem);
    font-weight: 700;
    line-height: 1.6;
}

.faq-hero__link span {
    display: inline-block;
    transition: transform 180ms ease;
}

.faq-hero__link:hover span {
    transform: translateX(4px);
}

.faq-hero__link:focus-visible {
    outline: 3px solid var(--faq-yellow-hover);
    outline-offset: 4px;
}

/* Ilustracja po prawej stronie */

.faq-hero__visual {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 390px;
    align-items: center;
    justify-content: center;
}

.faq-hero__shape {
    position: absolute;
    border-radius: 10px;
}

.faq-hero__shape--yellow {
    top: 7%;
    right: 5%;
    width: 75%;
    height: 82%;
    background: var(--faq-yellow);
    transform: rotate(-7deg);
}

.faq-hero__shape--navy {
    bottom: 3%;
    left: 3%;
    width: 60%;
    height: 62%;
    background: var(--faq-navy);
    transform: rotate(6deg);
}

.faq-hero__card {
    position: relative;
    z-index: 1;
    width: min(310px, 82%);
    padding: 30px;
    border: 1px solid var(--faq-border);
    border-radius: 10px;
    background: var(--faq-white);
    box-shadow: 0 15px 40px rgba(32, 38, 87, 0.10);
}

.faq-hero__card-icon {
    display: flex;
    width: 54px;
    height: 54px;
    align-items: center;
    justify-content: center;
    margin-bottom: 23px;
    border-radius: 10px;
    background: var(--faq-yellow);
    color: var(--faq-navy);
    font-size: 3.2rem;
    font-weight: 800;
}

.faq-hero__card-small {
    display: block;
    margin-bottom: 9px;
    color: var(--faq-muted);
    font-size: 1.2rem;
    line-height: 1.6;
}

.faq-hero__card strong {
    display: block;
    color: var(--faq-navy);
    font-family: var(--primary-title-font, "Big Shoulders", sans-serif);
    font-size: clamp(2.8rem, 3vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    text-transform: uppercase;
}

.faq-hero__card-line {
    display: block;
    width: 55px;
    height: 4px;
    margin: 22px 0 17px;
    border-radius: 2px;
    background: var(--faq-yellow);
}

.faq-hero__card-bottom {
    color: var(--faq-muted);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* ---------------------------------------------------------
   3. PRZYCISKI
   Korzystają z bazowych .btn i .btn--primary z style.css
--------------------------------------------------------- */

.faq-page .btn {
    font-family: var(--primary-text-font, "Comfortaa", sans-serif);
    font-size: clamp(1.3rem, 1vw, 1.6rem);
    font-weight: 400;
}

.faq-page .btn.btn--primary {
    background-color: var(--faq-yellow);
    border-color: var(--faq-yellow);
    color: #000000;
}

.faq-page .btn.btn--primary:hover {
    background-color: var(--faq-yellow-hover);
    border-color: var(--faq-yellow-hover);
    color: #000000;
}

/* ---------------------------------------------------------
   4. SKRÓTY DO KATEGORII
--------------------------------------------------------- */

.faq-categories {
    padding: 0 0 45px;
    background: var(--faq-light);
}

.faq-categories__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.faq-category {
    display: flex;
    min-width: 0;
    min-height: 135px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px;
    border: 1px solid var(--faq-border);
    border-radius: 10px;
    background: var(--faq-white);
    color: var(--faq-navy);
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease,
        transform 180ms ease;
}

.faq-category:hover {
    transform: translateY(-3px);
    border-color: var(--faq-yellow);
    box-shadow: 0 10px 25px rgba(32, 38, 87, 0.07);
}

.faq-category:focus-visible {
    outline: 3px solid var(--faq-yellow-hover);
    outline-offset: 3px;
}

.faq-category__number {
    color: var(--faq-navy);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.2px;
}

.faq-category__title {
    padding-right: 10px;
    color: var(--faq-navy);
    font-size: clamp(1.2rem, 1vw, 1.5rem);
    font-weight: 700;
    line-height: 1.5;
}

.faq-category__arrow {
    align-self: flex-end;
    color: var(--faq-navy);
    font-size: 2rem;
    line-height: 1;
    transition: transform 180ms ease;
}

.faq-category:hover .faq-category__arrow {
    transform: translate(2px, 2px);
}

/* ---------------------------------------------------------
   5. GŁÓWNA SEKCJA FAQ
--------------------------------------------------------- */

.faq-content {
    padding: 80px 0;
    background: var(--faq-white);
    scroll-margin-top: 30px;
}

.faq-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 35px;
    margin-bottom: 55px;
}

.faq-section-heading h2 {
    margin: 0;
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
}

.faq-section-heading > p {
    max-width: 350px;
    margin: 0;
    color: var(--faq-muted);
    font-size: clamp(1.2rem, 1vw, 1.5rem);
    line-height: 1.8;
}

.faq-section-heading > p a {
    color: var(--faq-navy);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--faq-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* ---------------------------------------------------------
   6. GRUPY PYTAŃ
--------------------------------------------------------- */

.faq-group {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.5fr);
    align-items: start;
    gap: 55px;
    padding: 42px 0;
    border-top: 1px solid var(--faq-border);
    scroll-margin-top: 30px;
}

.faq-group:last-child {
    padding-bottom: 0;
}

.faq-group__intro {
    position: sticky;
    top: 95px;
    align-self: start;
}

.faq-group__index {
    display: inline-block;
    margin-bottom: 15px;
    color: #202657;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1.3px;
    line-height: 1.5;
}

.faq-group__intro h3 {
    margin: 0 0 15px;
    font-size: clamp(1.8rem, 2.1vw, 2.4rem);
    font-weight: 800;
    line-height: 1.3;
}

.faq-group__intro p {
    margin: 0;
    font-size: clamp(1.3rem, 1vw, 1.6rem);
    line-height: 1.8;
}

/* ---------------------------------------------------------
   7. POJEDYNCZE PYTANIA
--------------------------------------------------------- */

.faq-list {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.faq-item {
    min-width: 0;
    border: 1px solid var(--faq-border);
    border-radius: 0;
    background: var(--faq-white);
    transition: border-color 180ms ease;
}

.faq-item:hover {
    border-color: #d4d8e3;
}

.faq-item[open] {
    border-color: var(--faq-yellow);
    background: var(--faq-white);
}

.faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 14px;
    color: var(--faq-text);
    font-family: var(--primary-text-font, "Comfortaa", sans-serif);
    font-size: clamp(1.2rem, 1vw, 1.5rem);
    font-weight: 700;
    line-height: 1.55;
    cursor: pointer;
    list-style: none;
}

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

.faq-item summary::marker {
    content: "";
}

.faq-item summary:focus-visible {
    outline: 3px solid var(--faq-yellow-hover);
    outline-offset: -3px;
}

/* Ikona plus/minus */

.faq-item__icon {
    position: relative;
    display: block;
    flex: 0 0 25px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: var(--faq-light);
    transition: background-color 180ms ease;
}

.faq-item__icon::before,
.faq-item__icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 1px;
    background: var(--faq-navy);
    content: "";
    transform: translate(-50%, -50%);
}

.faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
    transition: transform 180ms ease;
}

.faq-item[open] .faq-item__icon {
    background: var(--faq-yellow);
}

.faq-item[open] .faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

/* Odpowiedź */

.faq-item__answer {
    padding: 0 14px 16px;
}

.faq-item__answer p {
    margin: 0;
    color: var(--faq-text);
    font-family: var(--primary-text-font, "Comfortaa", sans-serif);
    font-size: clamp(1.3rem, 1vw, 1.6rem);
    font-weight: 300;
    line-height: 1.8;
}

/* ---------------------------------------------------------
   8. KOŃCOWE CTA
--------------------------------------------------------- */

.faq-cta {
    padding: 0 0 80px;
    background: var(--faq-white);
}

.faq-cta__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
    overflow: hidden;
    padding: 50px 55px;
    border-radius: 0;
    background: #354574;
}

.faq-cta__content {
    position: relative;
    z-index: 1;
    max-width: 650px;
}

.faq-cta .section-eyebrow {
    color: var(--faq-yellow);
}

.faq-cta h2 {
    margin: 0;
    color: var(--faq-white);
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 800;
    line-height: 1.15;
}

.faq-cta__content > p {
    max-width: 600px;
    margin: 18px 0 0;
    color: #ffffff;
    font-size: clamp(1.3rem, 1vw, 1.6rem);
    line-height: 1.8;
}

.faq-cta .btn {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
}

.faq-cta__decoration {
    position: absolute;
    right: 25%;
    bottom: -100px;
    color: rgba(255, 255, 255, 0.06);
    font-family: var(--primary-title-font, "Big Shoulders", sans-serif);
    font-size: 30rem;
    font-weight: 900;
    line-height: 1;
    pointer-events: none;
}

/* ---------------------------------------------------------
   9. TABLETY
--------------------------------------------------------- */

@media (max-width: 1000px) {
    .faq-hero__inner {
        gap: 30px;
    }

    .faq-hero__visual {
        min-height: 340px;
    }

    .faq-categories__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-group {
        grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.4fr);
        gap: 30px;
    }

    .faq-cta__inner {
        padding: 40px 30px;
    }
}

/* ---------------------------------------------------------
   10. TELEFONY
--------------------------------------------------------- */

@media (max-width: 700px) {
    .faq-hero {
        padding: 55px 0;
    }

    .faq-hero__inner {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-hero h1 {
        font-size: clamp(3.5rem, 8vw, 5rem);
    }

    .faq-hero__content > p {
        font-size: 1.3rem;
    }

    .faq-hero__visual {
        min-height: 300px;
        margin-top: 5px;
    }

    .faq-hero__card {
        width: min(270px, 82%);
        padding: 25px;
    }

    .faq-hero__card strong {
        font-size: 3.2rem;
    }

    .faq-categories {
        padding-bottom: 30px;
    }

    .faq-category {
        min-height: 115px;
        padding: 16px;
    }

    .faq-category__title {
        font-size: 1.2rem;
    }

    .faq-content {
        padding: 55px 0;
    }

    .faq-section-heading {
        display: block;
        margin-bottom: 35px;
    }

    .faq-section-heading h2,
    .faq-cta h2 {
        font-size: clamp(2.5rem, 7vw, 3.5rem);
    }

    .faq-section-heading > p {
        margin-top: 17px;
        font-size: 1.2rem;
    }

    .faq-group {
        grid-template-columns: 1fr;
        gap: 22px;
        padding: 32px 0;
    }

    .faq-group__intro {
        position: static;
    }

    .faq-group__intro h3 {
        font-size: 2.4rem;
    }

    .faq-group__intro p {
        font-size: 1.3rem;
    }

    .faq-item summary {
        gap: 12px;
        padding: 14px 12px;
        font-size: 1.2rem;
    }

    .faq-item__answer {
        padding: 0 12px 14px;
    }

    .faq-item__answer p {
        font-size: 1.2rem;
        line-height: 1.7;
    }

    .faq-cta {
        padding-bottom: 55px;
    }

    .faq-cta__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 25px;
        padding: 35px 24px;
    }

    .faq-cta__content > p {
        font-size: 1.3rem;
    }

    .faq-cta__decoration {
        right: -10px;
        bottom: -55px;
        font-size: 22rem;
    }
}

/* ---------------------------------------------------------
   11. MAŁE TELEFONY
--------------------------------------------------------- */

@media (max-width: 380px) {
    .faq-categories__grid {
        grid-template-columns: 1fr;
    }

    .faq-category {
        min-height: 90px;
    }

    .faq-hero__buttons {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
    }

    .faq-hero__visual {
        min-height: 275px;
    }

    .faq-hero__card {
        padding: 22px;
    }
}

/* ---------------------------------------------------------
   12. DOSTĘPNOŚĆ
--------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .faq-page *,
    .faq-page *::before,
    .faq-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
