/* Sekcja: double_block_icons - pełny CSS sekcji (zapis zagnieżdżony). */

.double-block-group {
    overflow: hidden;
    margin-bottom: 3.75rem;

    .double-block-icons {
        padding-left: 0;
        background-color: var(--element1-bg);

        &:not(.reverse) {
            padding-right: 30px;
        }

        &.reverse {
            padding-right: 0;
            padding-left: 30px;

            .foto {
                img {
                    object-position: left center;
                }
            }
        }

        h2 {
            margin-bottom: 1.5625rem;
            text-transform: unset;
            font-size: 2.8125rem;
            font-weight: 500;
            text-align: center;
            color: var(--element1-title);

            span {
                color: var(--element1-highlighted-title);
            }
        }

        p {
            font-weight: 500;
            margin-bottom: 0;
            color: var(--element1-text);
        }

        a {
            color: var(--element1-link);
            font-weight: 500;

            &:hover {
                color: var(--element1-link-hover);
            }
        }

        .buttons {
            padding-top: 2.1875rem;
            display: flex;

            a {
                border-width: var(--button-border-width);
                border-radius: var(--button-border-radius);
            }

            .btn-primary {
                color: var(--element1-btn1-text);
                background-color: var(--element1-btn1-bg);
                border-color: var(--element1-btn1-border);

                &:hover {
                    color: var(--element1-btn1-text-hover);
                    background-color: var(--element1-btn1-bg-hover);
                    border-color: var(--element1-btn1-border-hover);
                }
            }

            .btn-secondary {
                color: var(--element1-btn2-text);
                background-color: var(--element1-btn2-bg);
                border-color: var(--element1-btn2-border);

                &:hover {
                    color: var(--element1-btn2-text-hover);
                    background-color: var(--element1-btn2-bg-hover);
                    border-color: var(--element1-btn2-border-hover);
                }
            }
        }

        .foto {
            position: relative;
            -webkit-transition: 0.3s;
            transition: 0.3s;

            img {
                height: 325px;
                width: 100%;
                object-fit: cover;
                object-position: right center;
                border-radius: var(--image-border-radius);
            }
        }

        .text {
            padding-left: 140px;
            padding-right: 50px;
        }

        .icons-text {
            margin-bottom: 2.5rem;
            display: flex;
            align-items: center;
            background-color: var(--element1-content-bg);
            border-color: var(--element1-content-border);

            &:hover {
                background-color: var(--element1-content-bg-hover);
                border-color: var(--element1-content-border-hover);
            }

            .foto-icon {
                margin-right: 2.5rem;
                display: flex;
                align-items: center;

                img {
                    max-width: 74px;
                    max-height: 74px;
                    object-fit: contain;
                    border-radius: var(--image-border-radius);
                }
            }
        }

        .icons {
            margin-top: 4.375rem;
        }

        .text-inner {
            padding-top: 20px;
        }
    }
}

@media (max-width: 575.5px) {
    .double-block-group {
        .double-block-icons {
            &.reverse,
            &:not(.reverse) {
                padding: 0;
            }

            .buttons {
                padding-top: 0.625rem;
            }

            .text {
                padding-left: 15px;
                padding-right: 15px;
            }

            .icons-text {
                margin-bottom: 1.875rem;

                .foto-icon {
                    margin-right: 1.5625rem;

                    img {
                        max-width: 50px;
                        max-height: 50px;
                    }
                }
            }

            .icons {
                margin-top: 2.8125rem;
            }

            h2 {
                font-size: 1.5625rem;
                margin-bottom: 1.25rem;
            }
        }
    }
}

@media (min-width: 576px) and (max-width: 767.5px) {
    .double-block-group {
        .double-block-icons {
            &.reverse,
            &:not(.reverse) {
                padding: 0;
            }

            .buttons {
                padding-top: 0.625rem;
            }

            .text {
                padding-left: 30px;
                padding-right: 30px;
            }

            .icons-text {
                margin-bottom: 1.875rem;

                .foto-icon {
                    margin-right: 1.5625rem;

                    img {
                        max-width: 50px;
                        max-height: 50px;
                    }
                }
            }

            .icons {
                margin-top: 2.8125rem;
            }

            h2 {
                font-size: 1.875rem;
                margin-bottom: 1.25rem;
            }
        }
    }
}

@media (min-width: 768px) and (max-width: 991.5px) {
    .double-block-group {
        .double-block-icons {
            &.reverse,
            &:not(.reverse) {
                padding: 0;
            }

            .buttons {
                padding-top: 0.625rem;
            }

            .text {
                padding-left: 0px;
                padding-right: 0px;
                max-width: 690px;
                margin: 0 auto;
            }

            .icons-text {
                margin-bottom: 1.875rem;

                .foto-icon {
                    margin-right: 1.5625rem;

                    img {
                        max-width: 50px;
                        max-height: 50px;
                    }
                }
            }

            .icons {
                margin-top: 2.8125rem;
            }

            h2 {
                font-size: 2.1875rem;
                margin-bottom: 1.25rem;
            }
        }
    }
}

@media (min-width: 992px) and (max-width: 1199.5px) {
    .double-block-group {
        .double-block-icons {
            .buttons {
                padding-top: 0.625rem;
            }

            .text {
                padding-left: 30px;
                padding-right: 30px;
            }

            .icons-text {
                margin-bottom: 1.875rem;

                .foto-icon {
                    margin-right: 1.5625rem;

                    img {
                        max-width: 50px;
                        max-height: 50px;
                    }
                }
            }

            .icons {
                margin-top: 2.8125rem;
            }

            h2 {
                font-size: 2.1875rem;
                margin-bottom: 1.25rem;
            }
        }
    }
}

@media (min-width: 1200px) and (max-width: 1579.5px) {
    .double-block-group {
        .double-block-icons {
            .buttons {
                padding-top: 0.625rem;
            }

            .text {
                padding-left: 40px;
            }

            .icons-text {
                margin-bottom: 1.875rem;

                .foto-icon {
                    margin-right: 1.5625rem;

                    img {
                        max-width: 55px;
                        max-height: 55px;
                    }
                }
            }

            .icons {
                margin-top: 2.8125rem;
            }

            h2 {
                font-size: 2.1875rem;
                margin-bottom: 1.25rem;
            }
        }
    }
}
