@import 'variables';
@import 'mixin';

footer.footer {

    position: relative;
    display: flex;
    flex-direction: column;
    background-color: #fff;
    height: 200px;
    padding: 0 205px 0 55px;
    margin-top: auto;

    &.footer--simple {

        align-items: center;
        justify-content: center;

        .footer__logo {

            margin: 0 auto;
        
        }

    }

    @media (max-width: 1199px) {

        padding: 35px 0;
        height: auto;

    }

    .container {

        max-width: unset;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-grow: 1;

        @media (max-width: 1199px) {
        
            flex-direction: column;
            justify-content: initial;

        }

    }

    .footer__logo {

        @media (max-width: 1199px) {
        
            margin-right: auto;

        }

        img {

            width: 188px;
            height: auto;

            @media (max-width: 1199px) {

                width: 132px;

            }

        }

    }

    .footer__text {

        display: flex;
        flex-direction: column;
        align-items: flex-end;
        font-size: 20px;

        @media (max-width: 1199px) {
        
            align-items: center;
            margin-top: 25px;
            font-size: 16px;

            span {

                order: 1;
                font-size: 14px;

            }

        }

        @media (max-width: 767px) {

            align-items: flex-start;
            margin-right: auto;

        }

        .footer__text__list {

            list-style: none;
            padding: 0;
            margin: 0;
            display: flex;

            @media (max-width: 767px) {

                flex-direction: column;
                margin-bottom: 30px;
    
            }

            .footer__text__list__item {

                position: relative;

                &:first-child {
                    
                    margin-right: 40px;

                    &::after {

                        content: '|';
                        position: absolute;
                        right: -25px;
                        color: $blue;

                        @media (max-width: 767px) {

                            content: '';
                
                        }

                    }

                }

            }

        }

    }

    .footer__gotop {

        position: absolute;
        right: 80px;
        top: calc(50% - 20px);
        height: 40px;
        width: 40px;
        cursor: pointer;
        background-image: url('../img/go_top.png');
        background-repeat: no-repeat;
        background-size: contain;

        @media (max-width: 1199px) {

            background-image: url('../img/go_top_mobile.png');
            height: 60px;
            width: 60px;
            top: 35px;
            right: 15px;

        }

    }
    
}