/* Sekcja: foto_block_icons - pełny CSS sekcji (zapis zagnieżdżony).
   Dawne zmienne SCSS: $font-secondary -> 'Lato', $primary-text/$element1-color/
   $transparent-color3/$light-bg -> odpowiednie var(--...). */

.foto-block-icons {
    .title {
        display: flex;
        flex-direction: column;
        margin-bottom: 75px;

        h3 {
            color: var(--element1-title);

            span {
                color: var(--element1-highlighted-title);
            }
        }
    }

    .main-title {
        font-family: 'Lato', sans-serif;
        font-size: 2.25rem;
        font-weight: 600;
        margin: 0;
        color: var(--primary-text);
        text-align: center;
        order: 2;
    }

    .upper-title {
        color: var(--element1-color);
        font-weight: 500;
        font-size: 14px;
        text-transform: uppercase;
        margin-bottom: 15px;
        margin-top: 0;
        text-align: center;
        order: 1;
    }

    .subtitle {
        margin-top: 15px;
        color: var(--transparent-color3);
        margin-bottom: 0;
        font-size: 15px;
        text-align: center;
        order: 3;
    }

    &.reverse {
        .wrapper {
            flex-direction: row-reverse;

            .text {
                padding-left: 0;
                padding-right: 8vw;
                justify-content: flex-end;
            }
        }
    }

    .wrapper {
        padding: 0px 8vw;
        display: flex;
        justify-content: space-between;
        background-color: transparent;

        .text {
            padding-left: 4vw;
            padding-top: 10px;
            padding-bottom: 40px;
            width: 50%;
            display: flex;
            justify-content: flex-start;
            background-color: var(--element1-bg);
        }

        .foto {
            width: 50%;
            position: relative;
            overflow: hidden;
            background-color: var(--element2-bg);

            .image {
                height: 100%;
                margin-top: 0;
                margin-bottom: 0;
                display: flex;
                justify-content: center;
                align-items: center;
            }

            img {
                height: inherit;
                width: 100%;
                object-fit: cover;
                position: absolute;
                border-radius: 40px;
            }
        }
    }

    .icons {
        position: relative;

        &:before {
            width: 2px;
            height: 100%;
            content: "";
            display: block;
            background-color: #e5e2dc;
            position: absolute;
            left: 47.5px;
        }
    }

    .buttons {
        .btn-primary {
            border-color: var(--element1-btn1-border);
            background-color: var(--element1-btn1-bg);
            color: var(--element1-btn1-text);

            &:hover {
                border-color: var(--element1-btn1-border-hover);
                background-color: var(--element1-btn1-bg-hover);
                color: var(--element1-btn1-text-hover);
            }
        }

        .btn-secondary {
            border-color: var(--element1-btn2-border);
            background-color: var(--element1-btn2-bg);
            color: var(--element1-btn2-text);

            &:hover {
                border-color: var(--element1-btn2-border-hover);
                background-color: var(--element1-btn2-bg-hover);
                color: var(--element1-btn2-text-hover);
            }
        }
    }

    .icons-text {
        margin-bottom: 3.125rem;
        display: flex;
        position: relative;
        z-index: 1;
        align-items: center;
        background-color: var(--element1-content-bg);
        border-color: var(--element1-content-border);

        &:hover {
            border-color: var(--element1-content-border-hover);
            background-color: var(--element1-content-bg-hover);
        }

        p {
            color: var(--element1-text);
            margin-bottom: 0;
            font-size: 15px;
        }

        .step-title {
            margin-bottom: 13px;
            color: var(--element1-text);
            font-weight: 600;
            font-size: 13px;
            text-transform: uppercase;
        }

        h3 {
            font-size: 1.5rem;
            font-family: 'Lato', sans-serif;
            color: var(--element1-title);
            margin-top: 0;
            margin-bottom: 15px;
        }

        .foto-icon {
            margin-right: 1.875rem;
            display: flex;
            align-items: center;
            min-width: 95px;
            width: 95px;
            height: 95px;
            min-height: 95px;
            border-radius: 16px;
            background-color: var(--light-bg);
            box-shadow: 0px 0px 7px 1px #645c4f3b;

            .image {
                display: flex;
                align-items: center;
                justify-content: center;
            }

            img {
                width: 45%;
                height: auto;
                object-fit: contain;
                border-radius: var(--image-border-radius);
            }
        }
    }

    &:nth-child(even) {
        .wrapper {
            .text {
                background-image: url('/img/foto-block-bg-gray.png');
            }
        }
    }
}

@media (max-width: 575.5px) {
    .foto-block-icons {
        &.reverse {
            .wrapper {
                flex-direction: column-reverse;

                .text {
                    padding-right: 0vw;
                    justify-content: flex-start;
                }
            }
        }

        .main-title {
            font-size: 1.5625rem;
        }

        .title {
            margin-bottom: 35px;
        }

        .upper-title {
            margin-bottom: 5px;
            font-size: 12px;
        }

        .subtitle {
            margin-top: 12px;
            font-size: 14px;
        }

        .wrapper {
            padding: 0px 3vw;
            flex-direction: column-reverse;

            .inner {
                width: 100%;
            }

            .foto {
                width: 100%;

                img {
                    position: relative;
                }
            }

            .text {
                padding-left: 0vw;
                width: 100%;
                justify-content: flex-start;
            }
        }

        .icons {
            display: flex;
            flex-direction: column;
            justify-content: center;

            &:before {
                left: 35.5px;
                height: 80%;
            }
        }

        .icons-text {
            margin-bottom: 1.5625rem;

            .step-title {
                margin-bottom: 3px;
            }

            h3 {
                font-size: 17px;
                margin-bottom: 4px;
            }

            p {
                font-size: 12px;
            }

            .foto-icon {
                min-width: 70px;
                width: 70px;
                height: 70px;
                min-height: 70px;

                img {
                    width: 39%;
                }
            }
        }
    }
}

@media (min-width: 576px) and (max-width: 991.5px) {
    .foto-block-icons {
        &.reverse {
            .wrapper {
                flex-direction: column-reverse;

                .text {
                    padding-right: 0vw;
                    justify-content: flex-start;
                }
            }
        }

        .main-title {
            font-size: 1.5625rem;
        }

        .title {
            margin-bottom: 35px;
        }

        .upper-title {
            margin-bottom: 5px;
            font-size: 12px;
        }

        .subtitle {
            margin-top: 12px;
            font-size: 14px;
        }

        .wrapper {
            padding: 0px 3vw;
            flex-direction: column-reverse;

            .inner {
                width: 100%;
            }

            .foto {
                width: 100%;

                img {
                    position: relative;
                }
            }

            .text {
                padding-left: 0vw;
                width: 100%;
                justify-content: flex-start;
            }
        }

        .icons-text {
            margin-bottom: 1.5625rem;

            .step-title {
                margin-bottom: 3px;
            }

            h3 {
                font-size: 1.25rem;
                margin-bottom: 4px;
            }

            p {
                font-size: 13px;
            }

            .foto-icon {
                min-width: 80px;
                width: 80px;
                height: 80px;
                min-height: 80px;

                img {
                    width: 39%;
                }
            }
        }
    }
}

@media (min-width: 768px) and (max-width: 991.5px) {
    .foto-block-icons {
        .main-title {
            font-size: 1.75rem;
        }
    }
}

@media (min-width: 992px) and (max-width: 1199.5px) {
    .foto-block-icons {
        .main-title {
            font-size: 1.875rem;
        }

        .title {
            margin-bottom: 35px;
        }

        .upper-title {
            margin-bottom: 5px;
            font-size: 12px;
        }

        .subtitle {
            margin-top: 12px;
            font-size: 14px;
        }

        &.reverse {
            .wrapper {
                .text {
                    padding-right: 3vw;
                }
            }
        }

        .wrapper {
            padding: 0px 3vw;

            .text {
                padding-left: 3vw;
            }
        }

        .icons-text {
            margin-bottom: 1.5625rem;

            .step-title {
                margin-bottom: 3px;
            }

            h3 {
                font-size: 1.25rem;
                margin-bottom: 4px;
            }

            p {
                font-size: 13px;
            }

            .foto-icon {
                min-width: 80px;
                width: 80px;
                height: 80px;
                min-height: 80px;

                img {
                    width: 39%;
                }
            }
        }
    }
}

@media (min-width: 1200px) and (max-width: 1579.5px) {
    .foto-block-icons {
        .main-title {
            font-size: 2.0625rem;
        }

        .title {
            margin-bottom: 55px;
        }

        &.reverse {
            .wrapper {
                .text {
                    padding-right: 3vw;
                }
            }
        }

        .wrapper {
            padding: 0px 3vw;

            .text {
                padding-left: 3vw;
            }
        }

        .icons-text {
            margin-bottom: 2.1875rem;

            .step-title {
                margin-bottom: 3px;
            }

            h3 {
                font-size: 1.4375rem;
                margin-bottom: 8px;
            }

            p {
                font-size: 14px;
            }

            .foto-icon {
                img {
                    width: 39%;
                }
            }
        }
    }
}
