@import "../fonts/stylesheet.css";

body{
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #333;
}
a, button {
    outline: none;
}
* {
    outline: none;
}
.red {
    color: #f00;
}

.button_blue {
    padding: 16px 26px;
    border: none;
    background: #0971cf;
    color: #fff;
    border-radius: 25px;
    margin-top: 10px;
}
    .button_blue:hover {
        cursor: pointer;
    }
.response_img {
    width: 100%;
}
.wrapper_img {
    padding: 10px;
    max-width: 500px;
    margin: 0 auto;
}
.wrapper_slider {
    max-width: 1000px;
    margin: 0 auto;
}
.wrapper {
    max-width: 1170px;
    margin: 0 auto;
}
.section__title {
    font-size: 33px;
    text-transform: uppercase;
    margin-bottom: 10px;
}
.section__desc {
    color: #575757;
    margin-top: 10px;
}
.section__title,
.section__desc {
    text-align: center;
}
.section_padding {
    padding: 50px 0;
}

/* HEADER */
.header {
    text-align: center;
    padding: 15px;
}
    .header__logo {
        max-width: 100px;
        margin: 0 auto;
    }
        .header__logo img {
            width: 100%;
        }
    .header__title {
        font-size: 20px;
        line-height: 1.5;
    }
    .header__phone {
        font-size: 20px;
        font-weight: 900;
        color: #333;
        text-decoration: none;
        display: inline-block;
        margin: 15px 0;
    }
    .header__description p {
        margin: 10px 0;
    }
    .header__description p:nth-child(2){
        font-size: 22px;
    }
    .header__description p:nth-child(3){
        font-size: 30px;
    }
    .header__form {
        margin: 30px 0;
    }
        .header__form_title {
            color: #8c8c8c;
            font-size: 14px;
        }

/* ADVANTAGES */
.advantages {
    background: #0971cf;
    box-sizing: border-box;
    padding: 30px 15px;
    width: 100%;
}
.advantage__item {
    background: #fff;
    display: flex;
    flex-direction: column;
    margin: 15px 0;
    align-items: center;
    text-align: center;
    padding: 30px 15px;
}
.advantage__item_icon {
    background: #0971cf;
    border-radius: 50%;
    max-width: 100px;
    max-height: 100px;
    padding: 20px;
    box-sizing: border-box;
}
.advantage__item_desc p {
    margin: 5px 0;
}

/* SLICK SLIDER */
.section_padding {
    padding: 15px;
}
.slick-prev,
.slick-next {
    color: transparent;
}
.slick-next {
    right: -30px;
}
.slick-prev {
    left: -30px;
}
.slick-prev:before,
.slick-next:before {
    color: #000;
    display: flex;
    justify-content: center;
}

/* QUIZ */
.quiz {
    background: #0971cf;
}
.quiz .section__title,
.quiz .section__desc {
    color: #fff;
}
.quiz__form {
    background: #fff;
    border-radius: 10px;
    color: #000;
    margin-bottom: 20px;
    padding: 20px;
    overflow: hidden;
}
    .quiz__form .response_img {
        max-width: 500px;
        margin: 0 auto;
        display: block;
    }
.form__item .form__item_label {
    text-transform: uppercase;
    margin-bottom: 10px;
}
.form__item__inputs_length {
    display: flex;
    flex-direction: column;
}
    .form__item__inputs_length label,
    .form__item__inputs_equipment label,
    .form__item__inputs_color label,
    .form__item__inputs_width label,
    .form__item__inputs_width label {
        display: flex;
        align-items: center;
        margin-bottom: 5px;
    }
    .form__item__inputs_equipment label {
        align-items: flex-start;
    }
    .form__item__inputs_color label {
        flex-direction: row-reverse;
        justify-content: flex-end;
    }
    .form__item__inputs_length input,
    .form__item__inputs_equipment input,
    .form__item__inputs_color input,
    .form__item__inputs_width input,
    .form__item__inputs_width input {
        margin-right: 10px;
        min-height: 20px;
        min-width: 20px;
    }
    .form__item__inputs_color input {
        display: none;
    }
.form__item__input_appointment,
.form__item__input_name,
.form__item__input_phone,
.form__item__input_email,
.form__item__input_city {
    color: #fff;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    background: rgba(9,113,207, 0.8);
    padding: 7px;
    margin-bottom: 5px;
}
.form__contacts {
    margin-top: 30px;
}
    label.form__item__input_appointment input[type="text"],
    label.form__item__input_name input[type="text"],
    label.form__item__input_phone input[type="tel"],
    label.form__item__input_email input[type="email"],
    label.form__item__input_city input[type="text"] {
        box-sizing: border-box;
        margin-right: 0;
        border: none;
        border-radius: 3px;
        padding: 10px 5px;
        margin-top: 5px;
        width: 100%;
    }
.quiz__form .button_blue {
    width: 100%;
}
.form__item__inputs_color .form_color {
    display: flex;
    height: 25px;
    width: 70px;
    border-radius: 15px;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}
    .form__item__inputs_color .form_color img {
        opacity: 0;
        height: 20px;
        width: 20px;
        transition: opacity 0.3s ease;
    }
    .form__item__inputs_color input[type="radio"]:checked + span > .form_color__icon {
        opacity: 1;
    }

/* STANDARD PROJECTS */
.standard_projects__item {
    border: 1px solid #000;
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-transform: uppercase;
    margin-bottom: 15px;
}
.standard_projects__item_title {
    margin-top: 0;
}
.standard_projects__item .button_blue {
    margin-top: 15px;
}

/* HOW WORKING */
.how_working {
    background: #0971cf;
    color: #fff;
}
.how_working__item {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    margin-top: 25px;
}
.how_working__number {
    color: rgba(255,255,255, 0.5);
    font-size: 4em;
}
.how_working__img {
    max-width: 40px;
}
.how_working__title {
    margin: 0;
}
.img_title {
    display: flex;
    flex-direction: column;
    align-items: center;
}
    .img_title p {
        color: rgba(255,255,255, 0.6);
        margin-top: 5px;
    }

/* REVIEWS */
.reviews {
    background: #0971cf;
}
.reviews .section__title,
.reviews .section__desc {
    color: #fff;
}
.reviews .slider__item {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    margin: 0 5px;
    text-align: center;
}
.review__avatar {
    border-radius: 50%;
    margin: 0 auto;
    height: 150px;
    width: 150px;
}
.review__avatar img {
    border-radius: 50%;
}
.review__name {
    font-weight: bold;
    margin: 10px 0;
}
.review__company {
    color: #999;
    text-transform: uppercase;
}
.reviews .slick-prev:before,
.reviews .slick-next:before {
    color: #fff;
}
.reviews .slick-dots li button:before {
    color: #fff;
}

/* FOOTER */
.footer {
    text-align: center;
    padding: 50px 0;
}
.footer__icon {
    background: #0971cf;
    border-radius: 50%;
    margin: 0 auto;
    padding: 30px;
    box-sizing: border-box;
    height: 150px;
    width: 150px;
}
.footer__address {
    font-size: 26px;
    font-weight: 300;
}
    .footer__address a {
        text-decoration: none;
        color: #0971cf;
        font-weight: 600;
    }

/* POPUP */
#popup,
#quiz_popup {
    display: none;
}
    .popup__overlay,
    .quiz_popup__overlay {
        background: rgba(0,0,0, 0.5);
        position: fixed;
        left: 0;
        top: 0;
        z-index: 10;
        height: 100%;
        width: 100%;
    }
    .popup__title,
    .quiz_popup__title {
        text-align: center;
        font-weight: bold;
        padding: 12px 0;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(0,0,0, 0.2);
        position: relative;
    }
    .popup__form,
    .quiz_popup__form {
        padding: 13px 15px 20px;
    }
    .quiz_popup__form {
        text-align: center;
    }
    .popup__form label {
        display: inline-block;
        margin-bottom: 16px;
        width: 100%;
    }
    .popup__form p {
        margin: 0 0 4px 0;
    }
    .popup__form p span {
        color: #f00;
    }
    .popup__form input {
        width: 100%;
        padding: 10px 20px ;
        border-radius: 5px;
        border: 1px solid rgba(0,0,0, 0.2);
        box-sizing: border-box;
    }
    .popup__form .button_blue {
        margin: 10px auto;
        display: block;
    }
    .popup__content,
    .quiz_popup__content {
        background: #fff;
        border-radius: 10px;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 300px;
        z-index: 20;
    }
    .popup__close,
    .quiz_popup__close {
        display: inline-block;
        width: 16px;
        position: absolute;
        right: 10px;
        cursor: pointer;
    }
    .footer__privacy_policy {
        cursor: pointer;
    }
    #order_form_success {
        display: none;
        margin: 40px 0;
        text-align: center;
    }

/* POPUP POLICY */
#popup_policy {
    display: none;
}
    .popup_policy__overlay {
        background: rgba(0,0,0, 0.5);
        position: fixed;
        left: 0;
        top: 0;
        height: 100%;
        width: 100%;
        z-index: 10;
    }
    .popup_policy__content {
        background: #fff;
        border-radius: 10px;
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 300px;
        height: 90%;
        overflow: hidden;
        z-index: 20;
    }
    .popup_policy__title {
        text-align: center;
        font-weight: bold;
        padding: 12px 7px;
        text-transform: uppercase;
        border-bottom: 1px solid rgba(0,0,0, 0.2);
        position: relative;
    }
    .popup_policy__text {
        background: #fff;
        padding: 10px;
        overflow-x: auto;
        height: 90%;
        z-index: 20;
    }

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
    .header__form {
        padding: 0 20px;
    }
}

@media (min-width: 423.98px) {
    .popup__content {
        width: 350px;
    }
    .popup_policy__content {
        width: 400px;
    }
    .popup_policy__title {
        padding: 12px 56px;
    }
        .popup_policy__title .popup__close {
            top: 10px;
        }
}

@media (min-width: 767.98px) {
    .wrapper_slider {
        max-width: 650px;
        margin: 0 auto;
    }
    .how_working__items {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .how_working__item {
        margin: 15px;
        width: calc((100% - 60px) / 2 );
        box-sizing: border-box;
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        justify-content: left;
    }
    .how_working__img {
        max-width: 64px;
    }
    .how_working__number {
        margin-right: 15px;
        font-size: 6em;
    }
    .img_title {
        align-items: flex-start;
    }
    .how_working__title {
        margin: 0;
    }
    .quiz__form {
        padding: 30px;
    }
    .quiz__form .response_img {
        max-width: 80%;
    }
    .form__line {
        display: flex;
        flex-direction: row;
    }
    .form__line .form__item {
        width: 50%;
        padding: 0 20px;
    }
    .form__contacts {
        width: 60%;
        margin: 30px auto 0;
    }
    .quiz__form .button_blue {
        width: 450px;
        margin: 15px auto 0;
    }
    .popup__content {
        width: 400px;
    }
    .popup__form {
        padding: 21px 40px 30px;
    }
    .popup_policy__content {
        width: 600px;
    }
    .popup_policy__text {
        padding: 10px 30px 30px;
    }
}

@media (min-width: 991.98px) {
    .wrapper_slider {
        max-width: 850px;
    }
    .header__item {
        display: flex;
        align-items: center;
        justify-content: space-around;
        flex-wrap: wrap;
    }
        .header__item:first-child {
            margin-bottom: 80px;
        }
    .header__logo {
        margin: 0 10px;
    }
    .header__title {
        flex-grow: 1;
        text-align: left;
    }
    .header__form {
        order: 1;
        flex-grow: 1;
    }
    .wrapper_img {
        margin: 0;
    }
    .advantage__items,
    .standard_projects,
    .how_working__items {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .advantage__item,
    .standard_projects__item,
    .how_working__item {
        margin: 5px;
        width: calc((100% - 40px) / 3 );
        box-sizing: border-box;
    }
    .how_working__item {
        margin: 20px 6px;
        justify-content: center;
        align-items: flex-start;
    }
    .reviews .slider__item {
        padding: 30px;
    }
    .form__item__inputs_color {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .form__item__inputs_color label {
        margin-right: 15px;
        flex-direction: column-reverse;
        align-items: flex-start;
        margin-bottom: 10px;
    }
    .form__item__inputs_color .form_color {
        margin-bottom: 5px;
    }
    .popup_policy__content {
        width: 800px;
    }
}

/* Large devices (desktops, less than 1200px) */
@media (min-width: 1199.98px) {
    .wrapper_img {
        max-width: 500px;
    }
    .wrapper_slider {
        max-width: 1000px;
    }
}
