/* Custom styles for adaptive*/

body {
    min-width: 320px;
    font-family: 'Gotham Pro';
    /* Envybox вешает overflow-x:hidden на body при загрузке — сразу, чтобы не прыгал скроллбар (CLS) */
    overflow-x: hidden;
}

/* Слот кнопки «генератор клиентов» Envybox: 230×46, right, bottom 20% (cbk.css .ws-loaner-btn-*) */
.envybox-slot {
    position: fixed;
    right: 0;
    bottom: 20%;
    width: 230px;
    height: 46px;
    z-index: 1;
    pointer-events: none;
}
body:has(.ws-loan-container) .envybox-slot,
body:has(.ws-quiz-container) .envybox-slot,
body:has(.cbk-btn) .envybox-slot {
    display: none;
}

.popup .input {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.popup .input.error {
    flex-direction: column-reverse;
    align-items: center;
}

.popup .input input[type=text] {
    width: 100%;
    max-width: 350px;
    border-radius: 15px !important;
    border: 2px solid #4c3261 !important;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: gray;
    text-align: left;
}
.popup .input input[type=email] {
    width: 100%;
    max-width: 350px;
    border-radius: 0px !important;
    border: 2px solid #4c3261 !important;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    color: gray;
    text-align: center;
}

@media (min-width: 320px) {
    .popup form h2 {
        font-size: 24px !important;
        margin: 0 0 10px 0 !important;
        font-family: 'Open Sans', sans-serif;
    }

    .popup {
        min-width: 320px !important;
    }

    .text__subtitle {
        font-size: 16px !important;
    }

    .checkmark {
        left: 5px !important;
    }

}

@media (min-width: 500px) {
    .checkmark {
        left: 50px !important;
    }

}

@media (min-width: 1024px) {
    .popup form h2 {
        font-size: 32px !important;
    }
    .popup {
        width: 100% !important;
    }
}

@media (min-width: 1440px) {
    .popup form h2 {
        font-size: 38px !important;
    }
}

@media only screen and (max-width: 767px){
    .popup {
        width: auto !important;
        height: 100vh;
        height: 100dvh;
        overflow-y: auto;
    }
}

p.text__subtitle {
    /*min-width: 320px;*/
    max-width: 430px;
    margin: 30px auto 30px auto;
    font-size: 24px;
    line-height: 20px;
}

.popup p.text__subtitle {
    margin: 10px auto 19px auto;
}

.hint {
    display: none;
}

.form__hints label {
    display: none;
}

.form__hints label:last-child {
    display: block;
}

.header {
    padding: 0 !important;
    display: none;
}
.header .inner {
    padding-bottom: 0px !important;
}

/* The container */
.checkbox-toggler {
    display: block;
    position: relative;
    padding-left: 05px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 22px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 5px;
    left: 50px;
    height: 14px;
    width: 14px;
    background: url("http://fabrika.burbon.tmweb.ru/upload/medialibrary/75f/checked-checkbox-xxl.png") center no-repeat;
    background-size: cover;
    filter: brightness(0.5);
}

/* On mouse-over, add a grey background color */

/* When the checkbox is checked, add a blue background */
/*.checkbox-toggler .processing_approval:checked ~ .checkmark {*/
/*	background-color: #FFFFFF;*/
/*	border: 2px solid rgba(161, 161, 161, .7);*/
/*}*/

/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Show the checkmark when checked */
.checkbox-toggler .processing_approval:checked ~ .checkmark:after {
    display: block;
}

/* Style the checkmark/indicator */
/*.checkbox-toggler .checkmark:after {*/
/*	left: 2px;*/
/*	top: -1px;*/
/*	width: 3px;*/
/*	height: 7px;*/
/*	border: solid grey;*/
/*	border-width: 0 3px 3px 0;*/
/*	-webkit-transform: rotate(45deg);*/
/*	-ms-transform: rotate(45deg);*/
/*	transform: rotate(45deg);*/
/*}*/

/*.form input[type="checkbox"] {*/
/*	top: 5px;*/
/*}*/

input.form_control:focus > .jqmWindow {
    top: 0 !important;
}

.main_form .btn_main  {
    background-color: #d1045a !important;
}

.checkbox-toggler input#processing_approval {
    top: 5px;
    left: 0%;
}
#popup .checkbox-toggler input#processing_approval {
    top: 0px;
    width: 30px;
    height: 30px;
}

/*input#NAME {*/
/*    display: none;*/
/*}*/

.btn_list {
    position: relative;
    background-color: transparent !important;
    padding: 0;
}

.btn_list:after {
    top: 35px;
    /*left: 39%;*/
    content: '';
    display: block;
    position: absolute;
    width: 60px;
    height: 60px;
    background: url(../img/book2.png) center no-repeat;
    background-size: contain;
}

.btn_list a {
    position: relative;
    background-color: #FA4197 !important;
    color: #ffffff !important;
    text-transform: uppercase;
    padding: 0 60px;
    height: 66px;
    line-height: 50px;
    font-size: 20px;
    font-weight: 800;
    border-radius: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}




.header .inner {
    padding-bottom: 45px;
    padding-top: 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
}


.wrap_btn_calc {
    position: fixed;
    bottom: 150px;
    right: 0px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background-image: url(../img/bgring.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    border: solid 2px #ce0563;
    z-index: 500;
}

.wrap_btn_calc button:hover {
    cursor: pointer;
}

.btn_with_cross {
    display: block;
    background: transparent;
    background-color: #ce0563;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    outline: none;
    border: none;
}

.btn_with_cross p {
    margin: 0px;
    margin-top: 20px;
    margin-bottom: 15px;
    font-family: Tahoma;
    line-height: 1.2;
    font-weight: 700;
    color: #fffeff;
}

.btn_close {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    outline: none;
    border: solid 1px #ce0563;
    position: absolute;
    right: 0px;
    top: 0px;
    background-color: #ce0563;
    background-image: url(../img/cros.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

.calc__icon {
    width: 35px;
    height: 37px;
    margin: 0 auto;
    background-image: url(../img/calc.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}


body.popupOpen .white-saas-generator,
body.popupOpen .white-saas-mobile-generator,
body.popupOpen .cbk-window-bgr {
    /*transform: translateY(-200%);*/
    /*opacity: 0;*/
    /*visibility: hidden;*/
    z-index: -1 !important;
}

@media (max-width : 1439px) {
    .popup .form input[type="text"].form_control {
        height: 45px;
        margin-bottom: 15px;
        font-size: 14px;
    }

    .popup .form .input.error input[type="text"].form_control {
        margin-bottom: 3px;
    }

    .popup .form .btn {
        height: 45px;
        font-size: 16px;
        border-radius: 16px;
    }

    .row.recaptcha-row {
        margin-bottom: 0px;
    }
}

@media (max-width : 767px) {
    .wrap_btn_calc {
        width: 75px;
        height: 75px;
        margin-right: 8px;
    }

    .btn_with_cross {
        width: 70px;
        height: 70px;
    }

    .btn_with_cross p {
        margin-top: 10px;
        margin-bottom: 5px;
        font-size: 10px;
    }

    .btn_close {
        width: 15px;
        height: 15px;
        right: -9px;
    }

    .calc__icon {
        width: 25px;
        height: 27px;
    }
}

.form.popup.success .text__subtitle {
    display: none;
}

.popup.vbf_incorp2_banner .form .btn:after {
    content: '';
    background: url(../img/icon-book.png) no-repeat 50% 50% !important;
    width: 107px;
    height: 82px;
    display: none;
    position: absolute;
    top: 0;
    right: 45px;
    vertical-align: top;
    margin: -10px -55px 0 10px;
}

/* сброс чекбокса*/
/* Просто сброс стилей Safari */
#soglasieTel {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border: 1px solid #ccc;
    border-radius: 3px;
    margin-right: 0;
}

#soglasieTel:checked {
    background-color: #FF0068;
    border-color: #FF0068;
}

#soglasieTel:checked::after {
    content: "✓";
    color: white;
    font-size: 14px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* CLS: резерв места под картинки и слайдеры */
.head__logo {
    aspect-ratio: 174 / 77;
    height: auto;
}
.zakaz__decsr-image {
    width: 46px;
    height: 46px;
}
.catalog_items .item .pic {
    aspect-ratio: 2 / 3;
    min-height: 220px;
}
.workin__slider {
    min-height: 240px;
}
.workin__slider .swiper-button-next img,
.workin__slider .swiper-button-prev img,
.workin__info-slider .swiper-button-next img,
.workin__info-slider .swiper-button-prev img,
.our-clients__list .swiper-button-next img,
.our-clients__list .swiper-button-prev img {
    width: 27px;
    height: 42px;
    display: block;
}
.workin__info-slider,
.branded-rost__slider {
    min-height: 260px;
}
.branded-rost__slider .swiper-slide img {
    width: 100%;
    height: auto;
    aspect-ratio: 240 / 326;
    display: block;
}
.branded-rost__slider-wrapper .swiper-button-next img,
.branded-rost__slider-wrapper .swiper-button-prev img {
    width: 27px;
    height: 42px;
}
.our-clients__list {
    min-height: 100px;
}
.yandex-captcha-container:not([data-yandex-captcha-mode="invisible"]) {
    min-height: 164px;
}
.bx-yandex-view-map,
.bx-yandex-map {
    min-height: 430px;
    width: 100%;
    background-color: #ccc;
}
.cookie-block {
    display: flex !important;
    min-height: 88px;
    box-sizing: border-box;
}
html.cookies-accepted .cookie-block {
    display: none !important;
}
@media (max-width: 767px) {
    .cookie-block {
        min-height: 120px;
        padding: 12px 16px;
    }
}
