/* Sekcja: steps - pełny CSS sekcji (zapis zagnieżdżony). */

.steps {
    .icon {
        width: 257px;
        min-width: 257px;
        height: 257px;
        border-radius: 50%;
        background-color: var(--primary-bg);
        border: 19px solid var(--element2-color);
        display: flex;
        justify-content: center;
        align-items: center;
        position: relative;
        margin-bottom: 20px;

        h3 {
            font-size: 7.4375rem;
            color: var(--element1-highlighted-title);
            font-weight: 500;
            font-family: 'Lato', sans-serif;
        }
    }

    .foto {
        width: 110px;
        min-width: 110px;
        height: 110px;
        border-radius: 50%;
        background-color: var(--primary-bg);
        border: 6px solid var(--element2-color);
        display: flex;
        justify-content: center;
        align-items: center;
        position: absolute;
        bottom: -22px;
        right: -35px;

        img {
            max-width: 51px;
            max-height: 51px;
            object-fit: contain;
        }

        figure {
            margin: 0;
            display: flex;
            justify-content: center;
            align-items: center;
        }
    }

    .one-step {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .wrapper {
        justify-content: space-around;
    }

    .arrow {
        display: flex;
        align-items: center;
        height: 257px;

        img {
            width: auto;
            height: 72px;
        }
    }

    .text {
        max-width: 290px;

        h4 {
            font-size: 1.25rem;
            text-align: center;
            font-weight: 600;
            margin-bottom: 20px;
            color: var(--element1-title);
        }

        p {
            text-align: center;
            color: var(--element1-text);
        }
    }
}

@media (max-width: 991.5px) {
    .steps {
        .one-step {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: center;
        }

        .icon {
            width: 200px;
            min-width: 200px;
            height: 200px;
            margin-right: 0;

            h3 {
                font-size: 6.25rem;
            }
        }

        .foto {
            width: 90px;
            min-width: 90px;
            height: 90px;

            img {
                max-width: 45px;
                max-height: 45px;
            }
        }

        .text {
            width: 300px;
        }

        .arrow {
            height: 100px;

            img {
                height: 50px;
                transform: rotate(90deg);
            }
        }
    }
}

@media (max-width: 575.5px) {
    .steps {
        .one-step {
            flex-direction: column;
        }
    }
}

@media (min-width: 992px) and (max-width: 1199.5px) {
    .steps {
        .icon {
            width: 160px;
            min-width: 160px;
            height: 160px;
            border-width: 10px;

            h3 {
                font-size: 5rem;
            }
        }

        .foto {
            width: 80px;
            min-width: 80px;
            height: 80px;
            bottom: -10px;
            right: -28px;
            border-width: 5px;

            img {
                max-width: 40px;
                max-height: 40px;
            }
        }

        .text {
            max-width: 160px;
        }

        .arrow {
            height: 160px;

            img {
                height: 50px;
            }
        }
    }
}

@media (min-width: 1200px) and (max-width: 1579.5px) {
    .steps {
        .icon {
            width: 200px;
            min-width: 200px;
            height: 200px;

            h3 {
                font-size: 6.25rem;
            }
        }

        .foto {
            width: 90px;
            min-width: 90px;
            height: 90px;

            img {
                max-width: 45px;
                max-height: 45px;
            }
        }

        .text {
            max-width: 200px;
        }

        .arrow {
            height: 200px;

            img {
                height: 60px;
            }
        }
    }
}
