@blue: #3399FF;
@yellow: #FFCC00;
// @text_color: #3d3d3d;
@text_color: #575757;

* {
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    color: @text_color;
    font-weight: 400;
}

html {
    scroll-behavior: smooth;
}

html.no-scroll {
    @media screen and (max-width: 460px) {
        overflow: hidden;
    }
}

.spec-message {
    position: fixed;
    z-index: 2;
    bottom: 0;
    background-color: #ffcc00;
    width: 100%;
    padding: 30px 0;

    .wrap {
        display: flex;
        flex-direction: column;
        row-gap: 15px;

    }

    p {
        font-size: 13px;
    }

    span {
        font-size: 20px;
        font-weight: bold;
    }

    button {
        align-self: flex-end;
        font-size: 13px;
        cursor: pointer;
        height: 40px;
        padding: 0 15px;
        border: none;
        background-color: #f5f5f5;
        display: flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        border-radius: 5px;
        transition: background 0.3s;
    }
}

.flash .warning {
    padding: 15px;
    background-color: white - 5;
    border-radius: 5px;
    margin-bottom: 30px;
    font-size: 12px;
}


.contract-link {
    position: relative;
    z-index: 2;
    margin-top: 30px;
    text-align: center;
}



.success-message {
    display: flex;
    flex-direction: column;
    align-items: center;

    i {
        font-size: 40px;
        color: forestgreen;
        margin-bottom: 15px;
    }
}

.quote {
    font-size: 11px;
}

a[name] {
    visibility: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-repeat: repeat-y;
    background-position: center;

    .page {
        flex: 1;
    }

    @media screen and (max-width: 460px) {
    }
}

.wrap {
    max-width: 1170px;
    padding: 0 15px;
    margin: auto;
}

.btn {
    height: 50px;
    padding: 0 30px;
    border: none;
    font-weight: 700;
    border-radius: 5px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.buttons {
    display: flex;

    button:first-child {
        margin-right: 15px;
    }
}

.btn.v1 {
    color: white;
    background-color: @blue;

    &:hover {
        background-color: @blue - 20;
    }
}

.btn.v2 {
    height: 30px;
    padding: 0 15px;
    border-radius: 5px;
    text-transform: none;
    background-color: @yellow;
    // border-radius: 0;

    &:hover {
        background-color: @yellow - 10;
    }
}

.btn.v3 {
    color: white;
    background-color: @yellow;
    font-weight: 700;

    &:hover {
        background-color: @yellow - 20;
    }
}

h1 {
    font-size: 30px;
    font-weight: 700;
}

p {
    line-height: 25px;
}

h2 {
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 80px;
    position: relative;
    color: @blue;

    @media screen and (max-width: 460px) {
        font-size: 30px;
    }

    &:before {
        content: '';
        display: block;
        position: absolute;
        bottom: -10px;
        height: 5px;
        width: 100px;
        background-color: @yellow;
        left: 50%;
        transform: translateX(-50%);
    }
}

a {
    text-decoration: none;
}

ul {
    list-style-type: none;
}

input, textarea, select {
    padding: 0 15px;
    height: 48px;
    border-radius: 5px;
    border: 1px solid white - 20;
    outline: none;
}

textarea {
    padding: 15px;
    height: auto;
}

.modal-background {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: auto;
    background-color: rgba(0,0,0,0.8);
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    backdrop-filter: blur(7px);

    .modal-wrapper {
        min-height: 100%;
        margin: auto;
        display: flex;
    }

    .modal {
        margin: auto;
        background-color: white;
        max-width: 300px;
        padding: 80px 50px 50px 50px;
        border-radius: 5px;
        position: relative;

        @media screen and (max-width: 460px) {
            position: absolute;
            flex-direction: column;
            justify-content: center;
            max-width: none;
            top: 0;
            right: 0;
            left: 0;
            border-radius: 0;
        }

        button.close {
            position: absolute;
            top: 30px;
            right: 30px;
            border: none;
            background: none;
            cursor: pointer;

            svg {
                height: 20px;
                width: 20px;
                fill: inherit;
            }
        }

        h1 {
            font-size: 30px;
            color: @text_color;
        }

        h1, p {
            text-align: center;
            margin-bottom: 15px;
        }

        form {
            display: flex;
            flex-direction: column;
            margin-top: 30px;

            hr {
                border: none;
                height: 1px;
                background-color: white - 20;
                margin-bottom: 15px;
            }

            .form-group {
                display: flex;
                flex-direction: column;
                margin-bottom: 15px;

                &:last-child {
                    margin: 0;
                }

                label {
                    margin-bottom: 5px;
                }

                span[validate-error] {
                    color: red;
                    font-size: 12px;
                    margin-top: 5px;
                    display: none;
                }

                span[validate-error].active {
                    display: block;
                }
            }
        }
    }

    .modal.alt {
        h1 {
            color: @text_color;
        }
    }

    .modal.other {
        h1 {
            color: @text_color;
            font-size: 20px;
        }

        ul {
            margin-top: 30px;
            list-style-type: decimal;
            li {
                margin-bottom: 15px;

                span {
                    font-weight: 700;
                }

                ul {
                    margin-top: 15px;
                    margin-left: 17px;
                    list-style-type: circle;
                }
            }
        }
    }

    .modal.show {
        animation: showModal 0.3s ease-in-out;

        @keyframes showModal {
            0% {
                opacity: 0;
                transform: translateY(-100%);
            }
            // 50% {
            //     transform: translateY(10%);
            // }
            100% {
                opacity: 1;
                transform: translateY(0);
            }
        }
    }

    .modal.hide {
        animation: hideModal 0.3s ease-in-out;

        @keyframes hideModal {
            0% {
                opacity: 1;
                transform: translateY(0);
            }
            100% {
                opacity: 0;
                transform: translateY(-100%);
            }
        }
    }
}

.modal-background.show {
    display: flex;
    animation: showBackground 0.3s ease;

    @keyframes showBackground {
        0% {
            opacity: 0;
        }
        100% {
            opacity: 1;
        }
    }
}

.modal-background.hide {
    animation: hideBackground 0.3s ease;

    @keyframes hideBackground {
        0% {
            opacity: 1;
        }
        100% {
            opacity: 0;
        }
    }
}

.mobile-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    background-color: white;
    z-index: 5;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    display: none;

    @media screen and (max-width: 732px) {
        display: flex;
    }

    .logo {
        svg {
            height: 40px;
        }
    }

    > button {
        background-color: @blue;
        position: fixed;
        top: 15px;
        right: 15px;
        border: none;
        height: 40px;
        width: 40px;
        border-radius: 50%;
        display: flex;
        justify-content: center;
        align-items: center;
        box-shadow: 0 5px 10px rgba(0,0,0,0.2);

        svg {
            display: block;
            height: 22px;
            width: 22px;
            fill: white;
        }
    }


}


.modal-mobile-background {
    display: none;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0,0,0,0.8);
    overflow: auto;
    z-index: 10;

    .modal-wrapper {
        min-height: 100%;
        margin: auto;
        display: flex;

        .mobile-menu {
            position: relative;
            background-color: white;
            padding: 50px;
            display: flex;
            flex-direction: column;
            justify-content: center;

            min-height: 100%;
            width: 100%;

            button {
                border: none;
                background: none;
                top: 30px;
                right: 30px;
                position: absolute;

                svg {
                    height: 20px;
                    width: 20px;
                    pointer-events: none;
                }
            }

            ul {
                li {
                    margin-bottom: 50px;
                    text-align: center;
                    a {
                        font-size: 20px;
                        color: @blue;
                        font-weight: 700;
                    }
                }
            }

            > a {
                height: 50px;
                display: flex;
                align-items: center;
                justify-content: center;
                background-color: @yellow;
                border-radius: 5px;
                font-weight: 700;
            }
        }
    }
}

.modal-mobile-background.show {
    display: block;
}

header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;

    .top {
        background-color: white - 20;
        height: 40px;

        .wrap {
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;

            a {
                font-size: 12px;
                color: @text_color;
            }

            .contacts-menu {
                position: relative;
                height: 30px;

                ul {
                    display: flex;

                    background-color: #ebebeb;
                    position: absolute;
                    top: 0;
                    left: 0;
                    z-index: 1;

                    li {
                        display: flex;
                        flex-direction: column;
                        // padding: 0 15px;
                        white-space: nowrap;
                        margin-right: 20px;
                        // margin-bottom: 10px;

                        span {
                            font-size: 10px;
                            display: block;
                            font-weight: 800;
                        }

                        a {
                            // height: 30px;
                            display: inline-flex;
                            align-items: center;
                            white-space: nowrap;
                            margin-right: 5px;

                            &:last-child {
                                margin: 0;
                            }
                        }
                    }
                }
            }



            // ul {
            //     display: flex;
            //     align-items: center;
            //
            //     li {
            //         margin-right: 30px;
            //         font-size: 12px;
            //
            //         a {
            //             margin-right: 15px;
            //         }
            //
            //         i {
            //             margin-right: 5px;
            //         }
            //     }
            // }
        }
    }

    .bottom {
        padding: 15px;
        background-color: rgba(255,255,255,0.7);
        position: relative;
        backdrop-filter: blur(7px);
        // background: linear-gradient(to bottom, rgba(255,255,255,0.97), rgba(255,255,255,0));


        &:before {
            content: '';
            display: block;
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            // background-image: url(/public/img/background-1.png);
            background-repeat: repeat-y;
            background-position: center;

        }

        .wrap {
            display: flex;
            align-items: center;
            justify-content: space-between;
        }

        .logo {
            svg {
                height: 60px;
                transition: height 0.5s;
            }
        }
        ul {
            display: flex;
            align-items: center;
            position: relative;

            li {
                margin-left: 30px;

                a {
                    // text-transform: uppercase;
                    font-weight: 700;
                    color: @blue;
                }
            }
        }
    }

    @media screen and (max-width: 732px) {
        display: none;
    }
}

header.active {
    position: fixed;
    // position: sticky;
    // top: 0;
    animation: showHeader 0.5s ease;
    box-shadow: 0 5px 5px rgba(0,0,0,0.02);

    .logo {
        svg {
            height: 40px;
        }
    }

    @keyframes showHeader {
        0% {
            transform: translateY(-100%);
        }
        100% {
            transform: translateY(0);
        }
    }
}

section:not(.b1) {
    padding: 80px 0;
}

section {
    position: relative;

    a[name] {
        position: absolute;
        top: -100px;

        @media screen and (max-width: 460px) {
            top: 0;
        }
    }
}

section.b1 {
    height: 100vh;
    display: flex;
    position: relative;

    @media screen and (max-width: 732px) {
        height: auto;
    }

    > a {
        position: absolute;
        bottom: 50px;
        left: 50%;
        animation: link 3s infinite ease;

        @keyframes link {
            0% {
                transform: translate(-50%, 0);
            }
            100% {
                transform: translate(-50%, 15px);
            }
        }

        svg {
            height: 20px;
             fill: #ccc;
        }
    }

    .wrap {
        display: flex;
        align-items: center;
        position: relative;

        @media screen and (max-width: 732px) {
            flex-direction: column;

            .buttons {
                flex-direction: column;
                margin: 30px 0;

                .btn:first-child {
                    margin: 0;
                    margin-bottom: 15px;
                }
            }
        }

        h1 {
            color: @blue;
            margin-bottom: 50px;

            b {
                font: inherit;
                color: @yellow;
            }
        }

        span.x {
            display: block;
            font-size: 50px;
            font-weight: 700;
            color: @yellow;
            margin-bottom: 50px;
            position: relative;

            &:before {
                content: 'Вартість послуги';
                position: absolute;
                bottom: -10px;
                right: 0;
                color: white - 50;
                font-size: 12px;
            }
        }

        @media screen and (max-width: 460px) {
            h1 {
                margin-bottom: 30px;
            }

            span {
                font-size: 35px;
                text-align: center;
                margin-bottom: 30px;
            }
        }

        div {
            flex: 1;
        }

        div:first-child {
            display: flex;
            flex-direction: column;
            align-items: flex-start;

            @media screen and (max-width: 460px) {
                align-items: stretch;
                justify-content: center;
                // min-height: 100vh;

                h1 {
                    font-size: 35px;
                    text-align: center;
                }
            }
        }
    }

    img {
        width: 100%;
        z-index: -1;
    }
}

section.b3 {
    .wrap {
        > div {
            display: grid;
            grid-template-columns: 1fr 1fr;
            grid-gap: 50px;

            @media screen and (max-width: 460px) {
                grid-template-columns: 1fr;
                grid-gap: 15px;
            }

            div {
                text-align: center;
                border: 1px dashed @yellow;
                border-radius: 10px;
                padding: 30px;

                svg {
                    height: 50px;
                    margin-bottom: 15px;
                }
            }
        }
    }
}

section.b4 {
    .wrap {
        ul {
            li {
                margin-bottom: 5px;

                span {
                    display: flex;
                    align-items: center;
                    justify-content: space-between;
                    padding: 30px;
                    background-color: white - 10;
                    font-weight: 700;
                    border-radius: 5px;
                    cursor: pointer;

                    i {
                        font-size: 20px;
                    }
                }

                div {
                    padding: 15px;
                    display: none;
                }
            }

            li.active {
                i {
                    transform: rotate(180deg);
                }
                div {
                    display: block;
                }
            }
        }
    }
}


section.b2 {
    position: relative;
//    background-color: @yellow;

    .wrap {
        position: relative;
//        padding: 50px;
//        max-width: 1170px - 100px;
    }

    .back {
        filter: grayscale(1);
        opacity: 0.1;
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        z-index: 1;
        background-image: url(/public/img/background-4.jpg);
//        background-position: center;
        background-repeat: no-repeat;
        background-size: cover;
        border-radius: 10px;
    }
}

section.b5 {
    overflow: hidden;



    #slider {
        position: relative;

        button {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            height: 60px;
            width: 60px;
            display: flex;
            justify-content: center;
            align-items: center;
            background-color: white;
            border-radius: 50%;
            z-index: 3;
            border: none;
            cursor: pointer;
            opacity: 0;
            transition: opacity 0.5s;

            svg {
                height: 15px;
            }

            @media screen and (max-width: 460px) {
                opacity: 1;
            }
        }

        &:hover {
            button {
                opacity: 1;
            }
        }

        button:first-child {
            left: -30px;

            svg {
                transform: rotate(90deg);
            }
        }

        button:last-child {
            right: -30px;

            svg {
                 transform: rotate(-90deg);
            }
        }

        ul {
            display: grid;
            grid-auto-columns: calc((100% / 1));
            grid-auto-flow: column;
            grid-gap: 100px;
            max-width: 1170px;
            position: relative;
            transition: transform 0.3s;
            // transform: translateX(-1270px);

            li {
                overflow: hidden;
                border-radius: 10px;
                position: relative;
                transition: filter 1s, opacity 1s, transform 0.5s;
                filter: grayscale(1);
                opacity: 0.2;
                transform: scale(0.9);

                img {
                    width: 100%;
                    height: 400px;
                    object-fit: cover;
                    display: block;
                }

                .slide-text {
                    position: absolute;
                    top: 0;
                    left: 0;
                    height: 100%;
                    width: 30%;
                    display: flex;
                    flex-direction: column;
                    justify-content: center;
                    align-items: flex-start;
                    z-index: 2;
                    padding: 0 100px;
                    background: linear-gradient(to right, rgba(0,0,0,0.6), rgba(0,0,0,0));

                    h3 {
                        font-size: 40px;
                        margin-bottom: 15px;
                    }

                    p {
                        font-size: 20px;
                    }

                    a {
                        margin-top: 30px;
                        font-weight: bold;
                        font-size: 25px;
                        color: white;
                    }

                    h3, p {
                        color: white;
                    }

                    @media screen and (max-width: 460px) {
                        width: auto;
                        padding: 50px;
                        justify-content: flex-start;
                        background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0));

                        h3 {
                            font-size: 20px;
                        }

                        p {
                            font-size: 16px;
                        }
                    }
                }
            }

            li.active
            {
                filter: grayscale(0);
                opacity: 1;
                transform: scale(1);
            }

            // li:last-child {
            //     order: -1;
            // }
        }
    }


}

footer {
    background-color: #333333;
    padding-top: 50px;
    position: relative;

    .back {
        position: absolute;
        top: 0;
        left: 0;
        height: 100%;
        width: 100%;
        // background-image: url(/public/img/background-2.png);
        background-position: center;
        background-repeat: no-repeat;
       z-index: 1;
    }

    .copy {
        background-color: #333333 - 5;
        padding: 15px;
        margin-top: 50px;
        font-size: 12px;
        text-align: center;
        color: white - 100;
    }

    h2 {
        color: white;

        &:before {
            color: #4d4d4d;
        }
    }

    .wrap {
        z-index: 2;
        position: relative;
        > div:not(.payment-methods) {
            display: flex;
            align-items: center;

            @media screen and (max-width: 732px) {
                flex-direction: column;
                align-items: stretch;
            }

            > div {
                flex: 1;

                > span {
                    display: block;
                    margin-bottom: 15px;
                    font-weight: 700;
                    color: white - 100;
                }

                ul {
                    margin-bottom: 30px;
                    li {
                        margin-bottom: 5px;
                        color: white - 100;
                        // font-weight: 700;

                        span {
                            font-size: 12px;
                            color: white - 100;
                            font-weight: 800;
                        }

                        a {
                            color: inherit;
                            color: white - 100;
                        }
                    }
                }

                form {
                    display: flex;
                    flex-direction: column;

                    @media screen and (max-width: 460px) {
                        flex-direction: column;
                    }

                    input, textarea {
                        height: 50px;
                        border-radius: 5px;
                        padding: 0 15px;
                        border: none;
                        outline: none;
                        background-color: #4D4D4D;
                        color: white;
                    }

                    button {
                        background-color: @yellow;
                        align-self: flex-start;
                        margin-top: 15px;
                    }

                    textarea {
                        padding: 15px;
                        height: auto;
                        resize: none;
                    }

                    .form-group-wrapper {
                        display: flex;
                        margin-bottom: 15px;

                        input {
                            flex: 1;
                            margin-right: 15px;

                            &:last-child {
                                margin: 0;
                            }
                        }

                        @media screen and (max-width: 460px) {
                            flex-direction: column;

                            input {
                                flex: none;
                                margin: 0 0 15px 0;
                            }
                        }
                    }
                }
            }
        }
    }
}

.confirm {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;

    > div {
        text-align: center;
    }

    h1 {
        font-size: 40px;
        color: #8CC63F;
        margin-bottom: 15px;
    }

    h2 {
        font-size: 20px;
        margin: 0 0 15px 0;
        color: #808080;

        &:before {
            display: none;
            color: inherit;
        }
    }

    a {
        display: inline-block;
        border-radius: 5px;
        margin-top: 50px;
        padding: 15px;
        background-color: white - 10;
    }
}

.form-group {
    display: flex;
    flex-direction: column;

    label {
        margin-bottom: 5px;
    }

    .form-error-message {
        margin-top: 5px;
        font-size: 12px;
        color: crimson;
        i {
            color: crimson;
        }
    }
}

.page.home {
    @media screen and (max-width: 732px) {
        margin-top: 80px;
    }
}

.page.payment {
    display: flex;
    flex-direction: column;
    justify-content: center;

    > div {
        padding: 15px;
    }

    a.back {
        position: absolute;
        top: 50px;
        left: 50px;

        i {
            margin-right: 15px;
        }
    }

    h1 {
        margin-bottom: 30px;
        text-align: center;
    }

    form {
        margin: auto;
        max-width: 300px;
        display: flex;
        flex-direction: column;

        .form-group {
            margin-bottom: 15px;
        }

        > button {
            margin-top: 15px;
        }

        .payment-methods {
            margin-top: 80px;
            filter: grayscale(1);
            -webkit-filter: grayscale(1);
            display: flex;
            justify-content: center;
        }
    }

    .buttons {
        margin-top: 30px;
        justify-content: space-between;

        button {
            cursor: pointer;
            background: none;
            border: none;
            position: relative;

            &:before {
                position: absolute;
                bottom: -3px;
                content: '';
                display: block;
                width: 100%;
                border-bottom: 1px dotted @text_color;
            }
        }
    }
}

.page.requisites {
    h1 {
        max-width: 500px;
        margin-top: 100px;
        margin: 100px auto;
    }

    img {
        height: 200px;
    }

    > ul {
        padding: 15px 15px 15px 30px;
        max-width: 500px;
        list-style-type: decimal;
        margin: auto;


        > li {
            margin-bottom: 30px;

            span {
                font-weight: 700;
            }

            div {
                margin-top: 15px;
                padding: 15px;
                background-color: white - 2;
            }

            ul {
                margin-left: 20px;
                margin-top: 15px;
                list-style-type: disc;
                li {
                    margin-top: 15px;
                }
            }
        }
    }
}

.payment-methods {
    opacity: 0.3;

    span {
        margin-right: 10px;

        svg {
            height: 18px;
        }
    }

    @media screen and (max-width: 460px) {
        margin-top: 50px;
        text-align: center;
    }
}
