//Main Colors
$dark: #333333;
$grey: #EBEBEB;

//Fonts
@mixin branded-font {
    font-family: 'MazdaType-Regular';
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.01em;
}

//Convers px to vw
@function get-mobile-vw($target) {
    $vw-context: (320 * 0.01) * 1px;
    @return ($target/$vw-context) * 1vw;
}

body {
    margin: 0;
}

#content-description, .bonusBlock {
    display: none!important;
}
    
h2.cuTitle {
    display: none!important;
}


//Styles
.custom-page-container {
    @include branded-font();
    width: 960px;
    margin: 0 auto 96px auto;
    text-align: center;

    @media (max-width: 740px) {
        & {
            width: get-mobile-vw(288px);
            margin: 0 auto get-mobile-vw(64px) auto;
        }
    }

    .top-section {
        margin: 72px auto 0 auto;

        @media (max-width: 960px) {
            margin: get-mobile-vw(48px) auto 0 auto;
        }

        &__title {
            color: $dark;
            font-size: 130px;
            font-style: normal;
            font-weight: 700;
            line-height: 96px;
            letter-spacing: -0.04em;
            text-transform: uppercase;
            margin: 0;

            @media (max-width: 960px) {
                font-size: get-mobile-vw(40px);
                line-height: get-mobile-vw(28px);
            }
        }

        &__sub-title {
            color: $dark;
            font-size: 24px;
            font-style: normal;
            font-weight: 400;
            line-height: 32px; /* 133.333% */
            letter-spacing: 0.48px;
            text-transform: uppercase;
            margin: 16px 0 0 0;

            @media (max-width: 960px) {
                font-size: get-mobile-vw(10px);
                line-height: get-mobile-vw(10px);
                letter-spacing: -0.03em;
                margin: get-mobile-vw(8px) 0 0 0;
            }
        }
        
    }

    .form-section {
        margin: 72px auto 0 auto;
        display: flex;
        justify-content: space-between;

        @media (max-width: 960px) {
            margin: get-mobile-vw(24px) auto 0 auto;
            flex-direction: column;
        }

        &__image img {
            border-radius: 8px;

            @media (max-width: 960px) {
                border-radius: get-mobile-vw(6px);
            }
        }

        &-block {
            width: 452px;
            height: 540px;
            text-align: left;

            @media (max-width: 960px) {
                width: get-mobile-vw(288px);
                margin: get-mobile-vw(12px) auto 0 auto;
            }
        }
    }

    .about {
        margin: 154px 0 151px 0;

        @media (max-width: 960px) {
            margin: get-mobile-vw(88px) auto get-mobile-vw(72px) auto;
        }

        &__title {
            color: $dark;
            font-family: "Mazda Type TT";
            font-size: 32px;
            font-style: normal;
            font-weight: 500;
            line-height: 40px;
            letter-spacing: 0.32px;
            text-transform: uppercase;
            margin: 0 0 48px 0;

            @media (max-width: 960px) {
                width: get-mobile-vw(288px);
                margin: 0 auto get-mobile-vw(20px) auto;
                font-size: get-mobile-vw(20px);
                line-height: get-mobile-vw(24px);
                letter-spacing: -0.02em;
            }
        }

        &-block {
            display: flex;
            justify-content: space-between;

            @media (max-width: 960px) {
                flex-direction: column;
            }

            &__image {
                border-radius: 8px;

                @media (max-width: 960px) {
                    border-radius: get-mobile-vw(6px);
                }
            }

            &-text {
                width: 452px;
                text-align: left;
                margin: -28px 0 0 0;

                @media (max-width: 960px) {
                    width: get-mobile-vw(288px);
                    margin: get-mobile-vw(4px) 0 0 0;
                }

                h3 {
                    font-size: 20px;
                    font-style: normal;
                    font-weight: 500;
                    line-height: 32px;
                    letter-spacing: 0.2px;
                    text-transform: uppercase;

                    @media (max-width: 960px) {
                        font-size: get-mobile-vw(16px);
                        line-height: get-mobile-vw(24px);
                        letter-spacing: -0.01em;
                    }
                }

                p {
                    font-size: 16px;
                    font-style: normal;
                    font-weight: 400;
                    line-height: 24px;
                    margin: 0 0 16px 0;

                    @media (max-width: 960px) {
                        font-size: get-mobile-vw(13px);
                        line-height: get-mobile-vw(16px);
                        margin: 0 0 get-mobile-vw(16px) 0;
                    }
                }
            }
        }


    }

    .services {
        width: 100%;

        &__title {
            font-size: 48px;
            font-style: normal;
            font-weight: 700;
            line-height: 100%; /* 48px */
            letter-spacing: 0.48px;
            text-transform: uppercase;
            text-align: left;
            margin: 0 0 44px 0;

            @media (max-width: 960px) {
                font-size: get-mobile-vw(24px);
                margin: 0 0 get-mobile-vw(24px) 0;
            }
        }

        &-container {
            display: flex;
            justify-content: space-between;
            flex-direction: row;

            @media (max-width: 960px) {
                flex-direction: column;
            }
        }

        &-list {
            display: flex;
            width: 452px;
            flex-direction: column;
            align-items: stretch;
            padding: 0;
            margin: 0;
            border-top: 1px solid #D9D9D9;

            @media (max-width: 960px) {
                width: get-mobile-vw(288px);

                &:last-child {
                    border-top: none;
                }
            }

            &__item {
                font-size: 32px;
                line-height: 56px;
                border-bottom: 1px solid #D9D9D9;
                width: 452px;
                list-style: none;
                text-align: left;

                @media (max-width: 960px) {
                    font-size: get-mobile-vw(16px);
                    line-height: get-mobile-vw(36px);
                    width: 100%;
                }
            }
        }

        &__button {
            width: 100%;
            height: 80px;
            line-height: 80px;
            background: black;
            display: inline-block;
            text-decoration: none!important;
            text-transform: uppercase;
            color: white;
            font-size: 16px;
            font-style: normal;
            font-weight: 700;
            letter-spacing: 1.92px;
            border-radius: 8px;
            margin: 56px 0 0 0;

            @media (max-width: 960px) {
                font-size: get-mobile-vw(13px);
                height: get-mobile-vw(36px);
                line-height: get-mobile-vw(36px);
                margin: get-mobile-vw(32px) 0 0 0;
                border-radius: get-mobile-vw(6px);
            }
        }
    }
}