#statistics {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    background-color: var(--background-alt);
    box-shadow: 0px 0px 24px rgba(0, 0, 0, 0.3);
    text-align: center;
    padding: 26px 0;
    gap: 4em;
    margin-bottom: 25px;
}

#statistics > div {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#statistics b {
    color: var(--secondary);
    font-size: 2.625em;
    transition: transform 0.35s ease, color 0.3s ease;
}

#statistics span {
    font-size: 1em;
}

#cechy {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 30px;
}

#cechy div {
    width: 220px;
}

#cechy img {
    aspect-ratio: 1 / 1;
    width: 100%;
    box-shadow: 4px 4px 8px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#cechy p {
    font-size: 0.75em;
    text-align: center;
}

.about-header {
    text-align: center;
    margin: 1em auto;
    transition: transform 0.3s ease;
}

#doswiadczenie {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    gap: 48px;
    padding: 32px;
    padding-top: 0;
    margin: 0 auto;
}

#doswiadczenie img {
    height: 400px;
}

#doswiadczenie img {
    border: 2px solid var(--background-alt);
    border-radius: 16px;
    box-shadow: 4px 4px 12px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#doswiadczenie p {
    text-align: justify;
    line-height: 1.75em;
}

#testimonials {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
    margin-top: 32px;
    margin-bottom: 128px;
}

#testimonials > div {
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.testimonial {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: var(--background-alt);
    box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    gap: 24px;
    box-sizing: border-box;
    padding: 24px;
    flex: 1;
    height: 100%;
    transition: transform 0.3s ease;
}

.testimonial i {
    font-size: 2.5em;
    color: var(--secondary);
}

.testimonial > div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
}

.testimonial p {
    margin: 0;
}

.testimonial img {
    max-height: 64px;
    max-width: 96px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.testimonial span {
    font-size: 0.875em;
}

@media (max-width: 1200px) {
    #statistics {
        display: grid;
        grid-template-columns: repeat(auto-fit, 330px);
        justify-content: center;
        gap: 40px;
    }

    #cechy {
        display: grid;
        grid-template-columns: repeat(auto-fit, 330px);
        justify-content: center;
        gap: 40px;
    }

    #cechy div {
        width: 100%;
    }

    #cechy p {
        font-size: 1em;
    }

    #doswiadczenie {
        gap: 0;
        padding: 4%;
    }

    #doswiadczenie img {
        display: none;
    }

    #testimonials > div {
        flex-direction: column;
    }

    .testimonial {
        width: 95%;
        padding: 2%;
    }
}

@media (max-width: 768px) {
    #cechy, #cechyHeader, #cechyHr {
        display: none;
    }
}

@media (hover: hover) and (pointer: fine) {
    h1:hover {
        color: var(--primary);
    }

    #statistics b:hover {
        color: var(--primary);
    }
}

@media (prefers-reduced-motion: no-preference) and (hover: hover) and (pointer: fine) {
    h1:hover {
        transform: scale(1.3);
    }

    #statistics b:hover {
        transform: scale(1.4);
    }

    #cechy img:hover {
        transform: scale(1.06);
        box-shadow: 2px 2px 12px rgba(0, 0, 0, 0.3);
    }

    .about-header:hover {
        transform: scale(1.06);
    }

    #doswiadczenie img:hover {
        transform: scale(1.03);
        box-shadow: 4px 4px 16px rgba(0, 0, 0, 0.3);
    }

    .testimonial:hover {
        transform: scale(1.03);
    }

    .testimonial img:hover {
        transform: scale(1.4);
    }
}