@blue: #2b5fff;
@blue-light: #38519E;
@gray:  #848484;
@black:  #191C1F;

@desktop:  ~'only screen and (max-width: 1680px)';
@desktop-lg:  ~'only screen and (max-width: 1440px)';
@desktop-md:  ~'only screen and (max-width: 1366px)';
@desktop-sm:  ~'only screen and (max-width: 1280px)';
@desktop-xs: ~'only screen and (min-width: 992px) and (max-width: 1199px)';
@tablet:  ~'only screen and (max-width: 991px)';
@mobile:  ~'only screen and (max-width: 767px)';
@mobile-lg:  ~'only screen and (max-width: 576px)';
@mobile-md:  ~'only screen and (max-width: 425px)';
@mobile-sm:  ~'only screen and (max-width: 375px)';
@mobile-xs:  ~'only screen and (max-width: 320px)';

html,
body {
    nav {
        -webkit-transition: all 0.5s ease-in-out;
        -moz-transition: all 0.5s ease-in-out;
        -o-transition: all 0.5s ease-in-out;
        align-items: center;
        background-color: rgba(255, 255, 255, 0);
        display: flex;
        height: 60px;
        justify-content: space-between;
        position: fixed;
        transition: all 0.5s ease-in-out;
        width: 100%;
        z-index: 2;

        &.scrolled {
            background-color: rgba(255, 255, 255, 1);

            div {
                &:nth-child(1) {
                    z-index: 3;

                    a {
                        margin-left: 70px;

                        @media @tablet {
                            margin-left: 30px;
                        }
                    }
                }

                &:nth-child(2) {
                    font-size: 18px;
                    font-weight: bold;

                    @media @mobile {
                        background-color: rgba(255, 255, 255, 0);
                        opacity: 0;

                        &.active {
                            -webkit-transition: all 0.5s ease-in-out;
                            -moz-transition: all 0.5s ease-in-out;
                            -o-transition: all 0.5s ease-in-out;
                            background-color: rgba(255, 255, 255, 1);
                            border-bottom-left-radius: 25px;
                            border-bottom-right-radius: 25px;
                            display: flex;
                            flex-direction: column;
                            opacity: 1;
                            padding: 65px 0 15px;
                            position: absolute;
                            top: 0;
                            transition: all 0.5s ease-in-out;
                            width: 100%;

                            a {
                                display: flex;
                            }
                        }
                    }

                    a {
                        color: @black;
                        margin-right: 40px;

                        @media @mobile {
                            align-items: center;
                            display: none;
                            border-bottom: 1px solid rgba(204, 204, 204, 0.4);
                            height: 70px;
                            margin: 0 30px;
                            width: 100%;
                            z-index: 2;

                            &:nth-child(3) {
                                border: 0;
                            }
                        }

                        &:last-child {
                            color: @black;
                            background: #fff;
                            border-bottom-left-radius: 20px;
                            margin-right: 0;
                            padding: 20px 30px;

                            span img {
                                margin-right: 20px;
                            }

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

                        &:hover .hover:before,
                        &:hover .hover:after {
                            cursor: pointer;
                            opacity: 1;
                            width: 100%;
                        }

                        .hover {
                            text-align: center;
                            transition: all 0.2s ease-in-out;
                            position: relative;

                            &:before,
                            &:after {
                                background-color: #1A4EEE;
                                bottom: -10px;
                                content: "";
                                height: 2px;
                                left: 0;
                                margin: 5px 0 0;
                                opacity: 0;
                                position: absolute;
                                transition: all 0.2s ease-in-out;
                                transition-duration: 0.5s;
                                width: 0;
                            }
                        }

                        &.active {
                            color: @blue;
                        }

                        &:hover {
                            color: #1A4EEE;
                        }
                    }
                }
            }
        }

        div {
            &:nth-child(1) {
                z-index: 3;

                a {
                    margin-left: 70px;

                    @media @tablet {
                        margin-left: 30px;
                    }
                }
            }

            &:nth-child(2) {
                font-size: 18px;
                font-weight: bold;

                @media @mobile {
                    background-color: rgba(255, 255, 255, 0);
                    opacity: 0;

                    &.active {
                        -webkit-transition: all 0.5s ease-in-out;
                        -moz-transition: all 0.5s ease-in-out;
                        -o-transition: all 0.5s ease-in-out;
                        background-color: rgba(255, 255, 255, 1);
                        border-bottom-left-radius: 25px;
                        border-bottom-right-radius: 25px;
                        display: flex;
                        flex-direction: column;
                        opacity: 1;
                        padding: 65px 0 15px;
                        position: absolute;
                        top: 0;
                        transition: all 0.5s ease-in-out;
                        width: 100%;

                        a {
                            color: @black;
                            display: flex;
                        }
                    }
                }

                a {
                    color: #fff;
                    margin-right: 40px;

                    @media @mobile {
                        align-items: center;
                        display: none;
                        border-bottom: 1px solid rgba(204, 204, 204, 0.4);
                        height: 70px;
                        margin: 0 30px;
                        width: 100%;
                        z-index: 2;

                        &:nth-child(3) {
                            border: 0;
                        }
                    }

                    &:last-child {
                        color: @black;
                        background: #fff;
                        border-bottom-left-radius: 20px;
                        margin-right: 0;
                        padding: 20px 30px;

                        span img {
                            margin-right: 20px;
                        }

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

                    &:hover .hover:before,
                    &:hover .hover:after {
                        cursor: pointer;
                        opacity: 1;
                        width: 100%;
                    }

                    .hover {
                        text-align: center;
                        transition: all 0.2s ease-in-out;
                        position: relative;

                        &:before,
                        &:after {
                            background-color: @black;
                            bottom: -10px;
                            content: "";
                            height: 2px;
                            left: 0;
                            margin: 5px 0 0;
                            opacity: 0;
                            position: absolute;
                            transition: all 0.2s ease-in-out;
                            transition-duration: 0.5s;
                            width: 0;
                        }
                    }

                    &.active {
                        color: @black;
                    }

                    &:hover {
                        color: @black;
                    }
                }
            }
        }
    }

    #header {
        background: url('../images/header_bg_porada.jpg') 0 -95px;
        background-color: @blue;
        background-size: cover !important;
        height: 100%;
        min-height: 100%;
        position: relative;

        @media @desktop-lg {
            background-image: none;
            background-color: unset;
            height: auto;
            min-height: unset;
        }

        @media @mobile-lg {
            background-position: center 0;
        }

        > div {
            &:nth-child(1) {
                display: none;
                position: absolute;
                top: 0;

                @media @desktop-lg {
                    display: block;
                }

                img {
                    min-height: 100%;
                }
            }

            &:nth-child(2) {
                color: #fff;
                display: flex;
                flex-direction: column;
                height: 100%;
                justify-content: center;
                margin-left: 220px;
                max-width: 770px;
                position: relative;
                z-index: 1;

                @media @desktop-lg {
                    margin-left: 70px;
                }

                @media @desktop-xs {
                    width: 525px;
                }

                @media @tablet {
                    margin-left: 30px;
                    margin-right: 30px;
                    max-width: 52%;
                }

                @media @mobile {
                    justify-content: flex-start;
                    padding-top: 105px;
                    margin: 0 auto;
                    max-width: 352px;
                    width: 100%;
                }

                @media @mobile-sm {
                    max-width: 330px;
                    width: 100%;
                }

                @media @mobile-xs {
                    margin-left: 15px;
                    margin-right: 15px;
                    max-width: 300px;
                }

                h1 {
                    font-family: 'Montserrat', sans-serif;
                    font-size: 64px;
                    font-weight: bold;
                    margin-top: -100px;

                    @media @desktop-lg {
                        font-size: 50px;
                    }

                    @media @desktop-xs {
                        font-size: 40px;
                    }

                    @media @tablet {
                        margin-top: 0;
                    }

                    @media @mobile {
                        font-size: 44px;
                        text-align: center;

                        br {
                            display: none;
                        }
                    }

                    @media @mobile-sm {
                        font-size: 36px;
                    }

                    span {
                        color: @blue;
                    }
                }

                > div {
                    color: #CDCDCD;
                    font-size: 18px;
                    margin-top: 10px;

                    @media @desktop-lg {
                        font-size: 16px;
                    }

                    @media @desktop-md {
                        max-width: 465px;
                    }

                    @media @desktop-xs {
                        font-size: 13px;
                        margin-top: 15px;
                        max-width: 390px;
                    }

                    @media @tablet {
                        max-width: 365px;
                    }

                    @media @mobile {
                        display: none;
                    }

                    @media @mobile-sm {
                        font-size: 16px;
                    }
                }

                a {
                    background: #fff;
                    color: @blue;
                    margin-top: 45px;
                    padding: 15px 45px;

                    @media @mobile {
                        display: none;
                    }
                }
            }

            &:nth-child(3) {
                bottom: 60px;
                display: none;
                position: absolute;
                text-align: center;
                width: 100%;
                z-index: 1;

                @media @desktop-lg {
                    bottom: 30px;
                }

                @media @mobile {
                    bottom: 30px;
                    display: block;
                }

                a {
                    background: #fff;
                    color: @blue;
                    margin-top: 45px;
                    padding: 15px 30px;
                }
            }
        }
    }

    #lawyerCare {
        .title {
            color: @black;
            font-family: 'Montserrat', sans-serif;
            font-size: 30px;
            font-weight: bold;
            margin-bottom: 60px;
            margin-top: 110px;
            text-align: center;

            @media @mobile {
                margin: 30px 0;
                padding: 0 30px;
                text-align: left;
            }
        }

        > .row {
            @media @mobile {
                flex-direction: column-reverse;
            }

            > div {
                &:nth-child(1) {
                    .ico-box {
                        max-width: 700px;
                        float: right;

                        @media @desktop-md {
                            max-width: 600px;
                        }

                        @media @desktop-sm, @desktop-xs {
                            max-width: 360px;
                        }

                        @media @mobile {
                            max-width: 100%;
                            padding: 0 30px;
                            width: 100%;
                        }

                        > .row {
                            margin-bottom: 45px;

                            @media @mobile {
                                margin-bottom: 70px;
                            }

                            > div {
                                &:nth-child(1) img {
                                    width: 335px;

                                    @media @desktop-lg {
                                        margin-left: 60px;
                                    }

                                    @media @desktop-md {
                                        margin-left: 30px;
                                    }

                                    @media @desktop-xs, @tablet {
                                        margin-left: 0;
                                    }
                                }

                                &:nth-child(2) {
                                    align-items: center;
                                    color: @gray;
                                    display: flex;
                                    font-size: 18px;
                                    padding-left: 70px;

                                    @media @desktop-lg {
                                        padding-left: 65px;
                                    }

                                    @media @desktop-md {
                                        font-size: 18px;
                                    }

                                    @media @desktop-xs, @tablet {
                                        font-size: 14px;
                                        padding-left: 30px;
                                    }

                                    @media @mobile {
                                        font-size: 18px;
                                        justify-content: center;
                                        padding-left: 0;
                                        text-align: center;
                                    }
                                }
                            }
                        }
                    }
                }

                &:nth-child(2) {
                    position: relative;

                    .box-fixed {
                        color: @gray;
                        font-size: 18px;
                        margin-left: 175px;
                        margin-top: 110px;
                        max-width: 425px;

                        @media @desktop-xs, @tablet {
                            font-size: 14px;
                            margin-left: 65px;
                            margin-top: 50px;
                            max-width: 295px;
                        }

                        @media @mobile {
                            font-size: 18px;
                            margin: 0 0 90px;
                            max-width: 100%;
                            padding: 0 30px;
                            width: 100%;
                        }

                        .list {
                            > div {
                                display: flex;
                                position: relative;

                                span {
                                    &:nth-child(1) {
                                        background: url('../images/shield_blue_ico.svg') no-repeat top left;
                                        display: inline-block;
                                        background-size: contain;
                                        height: 20px;
                                        position: absolute;
                                        top: 4px;
                                        width: 15px;
                                    }

                                    &:nth-child(2) {
                                        line-height: 150%;
                                        margin-bottom: 15px;
                                        margin-left: 35px;
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }

    #scopeOfTheService {
        > .title {
            color: @black;
            font-family: 'Montserrat', sans-serif;
            font-size: 30px;
            font-weight: bold;
            margin-bottom: 60px;
            margin-top: 110px;
            text-align: center;

            @media @mobile {
                margin-top: 60px;
                padding: 0 30px;
                text-align: left;
            }
        }

        .container-fluid {
            margin-top: 70px;
            max-width: 1220px;

            @media @desktop-md {
                max-width: 1090px;
            }

            @media @desktop-xs {
                max-width: 725px;
            }

            @media @mobile {
                margin-top: 40px;
                max-width: 100%;
                padding: 0 30px;
                width: 100%;
            }

            > .row > div {
                color: @gray;
                font-size: 18px;

                @media @desktop-xs {
                    font-size: 14px;
                }

                @media @mobile {
                    font-size: 18px;
                }

                .title {
                    color: @black;
                    font-weight: bold;
                }

                .list {
                    margin-top: 30px;

                    > div {
                        display: flex;
                        margin-bottom: 10px;
                        position: relative;

                        span {
                            &:nth-child(1) {
                                background: url('../images/shield_gray_ico.svg') no-repeat top left;
                                display: inline-block;
                                background-size: contain;
                                height: 20px;
                                position: absolute;
                                top: 5px;
                                width: 15px;
                            }

                            &:nth-child(2) {
                                line-height: 150%;
                                margin-bottom: 15px;
                                margin-left: 35px;
                            }
                        }
                    }
                }

                &:nth-child(2) {
                    padding-left: 30px;

                    @media @mobile {
                        padding-left: 0;
                    }

                    .title:nth-child(1) {
                        margin-top: 0;
                    }

                    .title {
                        margin: 30px 0;
                    }
                }
            }
        }

        .get-pdf {
            color: @gray;
            font-size: 14px;
            text-align: center;

            a {
                color: @blue;
            }
        }
    }
}