.hab-steps {

    @media (min-width: 768px) {
        .hab-steps__title {
            text-align: center;
        }
    }

    .hab-steps__steps {
        display: flex;
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
        margin: 32px 0 24px;

        @media (max-width: 991px) {
            display: none;
        }

        .hab-steps__step-num {
            padding: 16px 32px;
            border-radius: 4px;
            background-color: var(--primary-color,var(--primary-color,#BADDF1));
            transition: all 300ms;
            font-size: 16px;
            line-height: 1;
            cursor: pointer;

            &.active {
                background-color: var(--background-color-dark,#2B2C2E);
                color: white;
            }
        }
    }

    .hab-steps__items {
        display: grid;
        grid-template-columns: 1fr;
        position: relative;
        perspective: 1200px;

        @media (max-width: 991px) {
            gap: 24px;
        }
    }

    .hab-steps__item-wrapper {

        &.active {
            .hab-steps__step-num--mobile {
                background-color: #2B2C2E;
                color: white;
                margin-bottom: 8px;

                span:first-child {
                    height: 1px;
                    width: 7px;
                }
            }

            .hab-steps__item {
                max-height: 1000px;
                padding: clamp(16px, 2.778vw, 40px) clamp(16px, 2.2223vw, 32px);
                @media (min-width: 992px) {
                    padding-right: 6.598vw;
                }
            }
        }

        @media (min-width: 992px) {
            backface-visibility: hidden;
            transform-style: preserve-3d;
            transform: rotateX(180deg);
            transition: transform 400ms cubic-bezier(.4,.2,.2,1), opacity 300ms ease;
            opacity: 0;

            &.active {
                z-index: 2;
                transform: rotateX(0deg);
                opacity: 1;
            }
        }
    }

    .hab-steps__item {
        overflow: hidden;
        max-height: 0;
        padding: 0 clamp(16px, 2.2223vw, 32px);
        border-radius: 4px;
        display: grid;
        grid-template-columns: 1fr;
        gap: clamp(32px,3.3334vw,48px);
        background-color: white;

        @media (max-width: 991px) {
            transition: all 300ms;
        }

        @media (min-width: 992px) {
            grid-template-columns: 1fr minmax(auto, 750px);
            justify-items: end;
        }

    }

    .hab-steps__step-num--mobile {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 16px 8px;
        border-radius: 4px;
        background-color: var(--primary-color,#BADDF1);
        transition: all 300ms;

        @media (min-width: 992px) {
            display: none;
        }

        .hab-steps__mobile-decor {
            position: relative;
            height: 24px;
            width: 24px;
            border-radius: 4px;
            border: 1px solid currentColor;

            span {
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%,-50%);
                display: block;
                height: 1px;
                width: 7px;
                background-color: currentColor;

                &:first-child {
                    height: 7px;
                    width: 1px;
                }
            }
        }
    }

    .hab-steps__item-title {
        font-size: clamp(18px,1.528vw,22px);
    }

    .hab-steps__content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: clamp(8px,1.667vw,24px);
    }

    .hab-steps__number {
        font-size: clamp(96px,17.2223vw,248px);
        color: var(--primary-color,#BADDF1);
        font-weight: 600;
        line-height: 0.72;
        opacity: 0.35;
    }
}
