.bg-beauty {
    background-image: url(/wp-content/uploads/img-template/beauty/bg_beauty.webp);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    padding-top: 128px;
    padding-bottom: 128px;
}

img {
    width: 100%;
}

@media screen and (max-width: 922px) {
    .bg-beauty {
        background-image: url(/wp-content/uploads/img-template/beauty/bg_beauty_mobile.webp);
        padding-top: 64px;
        padding-bottom: 264px;
    }

    .beauty-single-item {
        width: 100% !important;
    }

}

.gap-128 {
    gap: 128px;
}

.h1-beauty {
    background: linear-gradient(90deg, #FF9100 0%, #D74190 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Poppins !important;
    font-size: 48px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 120% !important;
    /* 57.6px */
}

.h2-beauty {
    color: #515151;
    font-size: 40px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%;
    font-family: Poppins !important;
    /* 48px */
}

.beauty-single-item {
    border-radius: 16px;
    border: 1px solid #E3E3E3;
    background: linear-gradient(90deg, #F8F8F8 0%, #FFF 100%);
    padding: 41px 16px 40px 16px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    justify-content: center;
    align-items: center;
}

.span-beauty {
    background: linear-gradient(90deg, #FF9100 0%, #D74190 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: Poppins !important;
    font-size: 33px;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: 150% !important;
}

.dlaczego-beauty__text {
    display: flex;
    justify-content: center;
}

.dlaczego-beauty__text span {
    color: #515151;
    text-align: center;
    font-family: Poppins;
    font-size: 23px;
    font-style: normal;
    font-weight: 500;
    line-height: 120%;
    /* 27.6px */
}

.whole-beauty {
    gap: 20px;
    justify-content: space-between;
}

.beauty-single-item {
    width: 23%;
}

.bg-chcesz-skorzystac {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.50);
    background: linear-gradient(90deg, #FF9100 0%, #D74190 100%);
    padding: 32px;
}

.chcesz-skorzystac {
    color: #FFF;
    font-family: Poppins;
    font-size: 23px;
    font-style: normal;
    font-weight: 700;
    line-height: 120%;
}


.faq-item {
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
    cursor: pointer;
    overflow: hidden;
    gap: 32px;
    border-bottom: 1px solid rgba(227, 227, 227, 0.50);
    padding: 32px 0px 0px 0px;
}

.faq-item div:nth-child(1) span {
    width: 100%;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.5s ease-in-out;
}

.faq-item.active .faq-answer {
    padding-bottom: 32px;
}

.faq-item div:nth-child(1) svg {
    transform: rotate(-90deg);
    transition: all 0.3s ease-in-out;
    width: 20px;
    height: 20px;
}

.faq-item.active div:nth-child(1) svg {
    transform: rotate(0deg);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-question {
    display: flex;
    gap: 16px;
    align-items: center;
    color: #555;
    font-family: Poppins, sans-serif;
    font-size: 23px;
    font-weight: 600;
    line-height: 120%;
    letter-spacing: -0.46px;
}

.faq-item div:nth-child(1) {
    display: flex;
    gap: 16px;
    align-items: center;
}

.faq-item div:nth-child(1) {
    color: #555;
    font-family: Poppins;
    font-size: 23px;
    font-style: normal;
    font-weight: 600;
    line-height: 120%;
    /* 27.6px */
    letter-spacing: -0.46px;
}

.faq-item div:nth-child(1) svg {
    display: flex;
}


.galeria-grid {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    grid-auto-rows: 220px;
    /* wysokość rzędów – dopasuj po potrzebie */
    gap: 32px 20px;
    /* wiersz/kolumna jak na screenie */
}

/* 1. rząd */
.item1 {
    grid-column: 1 / span 3;
    grid-row: 1;
}

.item2 {
    grid-column: 4 / span 3;
    grid-row: 1;
}

.item3 {
    grid-column: 7 / span 4;
    grid-row: 1;
}

/* 2. rząd */
.item4 {
    grid-column: 1 / span 3;
    grid-row: 2;
}

.item5 {
    grid-column: 4 / span 4;
    grid-row: 2;
}

.item6 {
    grid-column: 8 / span 3;
    grid-row: 2;
}

/* 3. rząd (szeroki + wysoki) */
.item7 {
    grid-column: 1 / span 7;
    grid-row: 3;
}

.item8 {
    grid-column: 8 / span 3;
    grid-row: 3;
}

/* obrazki w komórkach */
.galeria-grid .item-beauty {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.galeria-grid img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    /* trzyma równą wysokość wierszy */
}

/* Responsywka */
@media (max-width: 980px) {
    .galeria-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 200px;
    }

    .item1 {
        grid-column: 1 / span 3;
    }

    .item2 {
        grid-column: 4 / span 3;
    }

    .item3 {
        grid-column: 1 / span 6;
    }

    .item4 {
        grid-column: 1 / span 3;
    }

    .item5 {
        grid-column: 4 / span 3;
    }

    .item6 {
        grid-column: 1 / span 6;
    }

    .item7 {
        grid-column: 1 / span 6;
    }

    .item8 {
        grid-column: 1 / span 6;
    }
}

@media (max-width: 768px) {
    .galeria-grid {
        grid-template-columns: 1fr;
        /* tylko jedna kolumna */
        grid-auto-rows: auto;
        /* wysokość dopasowana do proporcji obrazka */
        gap: 16px;
    }

    .galeria-grid>div {
        grid-column: auto / span 1 !important;
        grid-row: auto !important;
    }
}