/* ==================================================
   ФОРМА «ЗАКАЗАТЬ ЗВОНОК»
   ДЕСКТОП + МОБИЛЬНЫЕ
   ================================================== */

#modal-call.modal-open {
    height: auto !important;

    max-height: calc(100vh - 40px) !important;
    max-height: calc(100dvh - 40px) !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;

    border-radius: 16px !important;

    scrollbar-width: thin;
    scrollbar-color: #e4ca00 #161616;
}

#modal-call::-webkit-scrollbar {
    width: 7px;
}

#modal-call::-webkit-scrollbar-track {
    background: #161616;
    border-radius: 10px;
}

#modal-call::-webkit-scrollbar-thumb {
    background: #e4ca00;
    border-radius: 10px;
}

#modal-call .form__holder {
    padding-bottom: 35px !important;
    box-sizing: border-box !important;
}

#modal-call > .title,
#modal-call > .subtitle {
    padding-right: 55px !important;
    box-sizing: border-box !important;
}


/* ==================================================
   КРЕСТИК ФОРМЫ «ЗАКАЗАТЬ ЗВОНОК»
   ================================================== */

#modal-call .close-modal {
    position: sticky !important;
    top: 14px !important;
    left: auto !important;
    right: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;

    margin: 14px 14px -40px auto !important;
    padding: 0 !important;

    background: #e4ca00 !important;

    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 50% !important;

    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);

    cursor: pointer;
    z-index: 100002 !important;
    box-sizing: border-box !important;

    transform: none !important;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

/* Удаляем старую SVG-иконку */

#modal-call .close-modal svg {
    display: none !important;
}

/* Рисуем новый крестик */

#modal-call .close-modal::before,
#modal-call .close-modal::after {
    content: "" !important;

    position: absolute !important;
    top: 50% !important;
    left: 50% !important;

    display: block !important;

    width: 17px !important;
    height: 2px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #111111 !important;

    border: 0 !important;
    border-radius: 2px !important;
}

#modal-call .close-modal::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

#modal-call .close-modal::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

#modal-call .close-modal:hover {
    background: #ffffff !important;
}


/* ==================================================
   ФОРМА «ЗАКАЗАТЬ ЗВОНОК» НА МОБИЛЬНЫХ
   ================================================== */

@media (max-width: 767px) {
    #modal-call.modal-open {
        width: calc(100vw - 16px) !important;
        max-width: none !important;

        max-height: calc(100vh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;

        border-radius: 14px !important;
    }

    #modal-call .form__holder {
        padding-left: 16px !important;
        padding-right: 16px !important;
        padding-bottom: 30px !important;
    }

    #modal-call input,
    #modal-call textarea,
    #modal-call select,
    #modal-call button {
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    #modal-call .close-modal {
        top: 10px !important;

        width: 38px !important;
        min-width: 38px !important;
        height: 38px !important;

        margin: 10px 10px -38px auto !important;
    }

    #modal-call .close-modal::before,
    #modal-call .close-modal::after {
        width: 16px !important;
    }
}


/* ==================================================
   КНОПКИ «РАССЧИТАТЬ» В КАРТОЧКАХ
   ================================================== */

.bed_bottom_holder {
    justify-content: center !important;
    align-items: center !important;
}

.btn_bed_order {
    width: auto !important;
    height: auto !important;
    min-width: 140px;

    padding: 14px 28px;

    border: 1px solid #ffffff;
    border-radius: 50px !important;

    background: #ffffff;
    color: #111111;

    font-family: inherit;
    font-size: 16px;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.btn_bed_order:hover {
    background: #e4ca00;
    border-color: #e4ca00;
    transform: translateY(-1px);
}

@media (max-width: 767px) {
    .btn_bed_order {
        min-width: 125px;
        padding: 12px 22px;
        font-size: 15px;
    }
}


/* ==================================================
   КАРТОЧКА «ЗАЯВКА НА САЙТЕ»
   ================================================== */

#stages-block .stage_card_request {
    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease;
}

#stages-block .stage_card_request:hover {
    border-color: #e4ca00;
    background-color: rgba(228, 202, 0, 0.04);
}


/* ==================================================
   КНОПКА «СДЕЛАТЬ ЗАЯВКУ»
   ================================================== */

#stages-block button.stage_btn {
    font-family: inherit;
    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}


/* ==================================================
   КАТАЛОЖНОЕ ВСПЛЫВАЮЩЕЕ ОКНО
   ================================================== */

#modal-order {
    width: min(1200px, calc(100vw - 48px)) !important;
    max-width: 1200px !important;

    max-height: calc(100vh - 48px) !important;
    max-height: calc(100dvh - 48px) !important;

    overflow-x: hidden !important;
    overflow-y: auto !important;

    box-sizing: border-box !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;

    background: #080808 !important;

    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px !important;

    scrollbar-width: thin;
    scrollbar-color: #e4ca00 #161616;
}

#modal-order::-webkit-scrollbar {
    width: 7px;
}

#modal-order::-webkit-scrollbar-track {
    background: #161616;
    border-radius: 10px;
}

#modal-order::-webkit-scrollbar-thumb {
    background: #e4ca00;
    border-radius: 10px;
}


/* ==================================================
   КРЕСТИК КАТАЛОЖНОГО ОКНА
   ================================================== */

#modal-order .close-modal {
    position: sticky !important;
    top: 14px !important;
    left: auto !important;
    right: auto !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    width: 42px !important;
    min-width: 42px !important;
    height: 42px !important;

    margin: 14px 14px -56px auto !important;
    padding: 0 !important;

    background: #e4ca00 !important;

    border: 1px solid rgba(255, 255, 255, 0.7) !important;
    border-radius: 50% !important;

    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.4);

    cursor: pointer;
    z-index: 100001 !important;
    box-sizing: border-box !important;

    transform: none !important;

    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

#modal-order .close-modal svg {
    display: none !important;
}

#modal-order .close-modal::before,
#modal-order .close-modal::after {
    content: "" !important;

    position: absolute !important;
    top: 50% !important;
    left: 50% !important;

    display: block !important;

    width: 18px !important;
    height: 2px !important;

    margin: 0 !important;
    padding: 0 !important;

    background: #111111 !important;

    border: 0 !important;
    border-radius: 2px !important;
}

#modal-order .close-modal::before {
    transform: translate(-50%, -50%) rotate(45deg) !important;
}

#modal-order .close-modal::after {
    transform: translate(-50%, -50%) rotate(-45deg) !important;
}

#modal-order .close-modal:hover {
    background: #ffffff !important;
}


/* ==================================================
   КАТАЛОЖНОЕ ОКНО НА ПЛАНШЕТАХ
   ================================================== */

@media (max-width: 1024px) {
    #modal-order {
        width: calc(100vw - 30px) !important;

        max-height: calc(100vh - 30px) !important;
        max-height: calc(100dvh - 30px) !important;

        border-radius: 16px !important;
    }

    #modal-order .modal-content {
        width: 100% !important;
        box-sizing: border-box !important;
    }
}


/* ==================================================
   КАТАЛОЖНОЕ ОКНО НА ТЕЛЕФОНАХ
   ================================================== */

@media (max-width: 767px) {
    #modal-order {
        width: calc(100vw - 16px) !important;
        max-width: none !important;

        max-height: calc(100vh - 16px) !important;
        max-height: calc(100dvh - 16px) !important;

        border-radius: 14px !important;
    }

    #modal-order .modal-content {
        width: 100% !important;

        padding: 12px 14px 28px !important;

        box-sizing: border-box !important;
    }

    #modal-order .modal-content > .top-holder {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        width: 100% !important;
        gap: 22px;
    }

    #modal-order .modal-content .left-side,
    #modal-order .modal-content .right-side {
        width: 100% !important;
        max-width: 100% !important;

        margin: 0 !important;
        box-sizing: border-box !important;
    }

    #modal-order .modal-content .title {
        padding-right: 52px !important;
        box-sizing: border-box !important;
    }

    #modal-order .modal-content img {
        max-width: 100% !important;
        height: auto;
    }

    #modal-order .modal-swiper {
        width: 100% !important;
        max-width: 100% !important;
    }

    #modal-order .swiper-wrapper {
        max-width: 100%;
    }

    #modal-order input,
    #modal-order textarea,
    #modal-order select,
    #modal-order button {
        max-width: 100%;
        box-sizing: border-box;
    }

    #modal-order .close-modal {
        top: 10px !important;

        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;

        margin: 10px 10px -50px auto !important;
    }

    #modal-order .close-modal::before,
    #modal-order .close-modal::after {
        width: 17px !important;
    }
}


/* ==================================================
   ОЧЕНЬ МАЛЕНЬКИЕ ТЕЛЕФОНЫ
   ================================================== */

@media (max-width: 390px) {
    #modal-order {
        width: calc(100vw - 10px) !important;

        max-height: calc(100vh - 10px) !important;
        max-height: calc(100dvh - 10px) !important;

        border-radius: 12px !important;
    }

    #modal-order .modal-content {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}
/* Битрикс: независимые модальные окна */
.theme-modal {display:none !important;}
.theme-modal.modal-open {display:block !important; position:fixed !important;left:50% !important;top:50% !important;transform:translate(-50%,-50%) !important;z-index:10000 !important;box-sizing:border-box !important;}
#modal-call.modal-open,#modal-order.modal-open,#modal-privacy.modal-open {max-height:calc(100vh - 32px) !important;max-height:calc(100dvh - 32px) !important;overflow-y:auto !important;overflow-x:hidden !important;}
#modal-call.modal-open {width:min(600px,calc(100vw - 32px)) !important;}
.theme-modal .close-modal {position:sticky !important;top:12px !important;left:auto !important;right:auto !important;display:block !important;flex:none !important;width:42px !important;min-width:42px !important;height:42px !important;min-height:42px !important;margin:12px 12px -42px auto !important;padding:0 !important;border:1px solid #fff !important;border-radius:50% !important;background:#e4ca00 !important;transform:none !important;z-index:2 !important;cursor:pointer;}
.theme-modal .close-modal::before,.theme-modal .close-modal::after {content:"" !important;position:absolute !important;left:50% !important;top:50% !important;width:18px !important;height:2px !important;background:#111 !important;border:0 !important;padding:0 !important;margin:0 !important;}
.theme-modal .close-modal::before {transform:translate(-50%,-50%) rotate(45deg) !important;}
.theme-modal .close-modal::after {transform:translate(-50%,-50%) rotate(-45deg) !important;}
.theme-modal .close-modal:hover {background:#fff !important;}
.theme-modal .close-modal:focus-visible {outline:3px solid #fff;outline-offset:3px;}
.theme-modal>.title,.theme-modal>.subtitle {padding-right:64px !important;}
#modal-order .modal-content>.top-holder>* {min-width:0;}
#modal-order .modal-content {padding-top:24px;}
#modal-order .modal-content .title {padding-right:55px;}
#modal-order .swiper-wrapper {max-width:none !important;}
#modal-privacy {width:min(900px,calc(100vw - 32px)) !important; padding:20px;background:#111;color:#fff;}
#modal-privacy .content {padding-top:25px;}
#modal-privacy table {display:block;max-width:100%;overflow:auto;}
.beds_holder.active .bed {cursor:pointer;}
.mp-form-error {color:#ff8f8f;padding:10px 0;}
#modal-background {position:fixed;inset:0;background:rgba(0,0,0,.65);z-index:9999;}
.mp-honeypot {position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden;}
@media(max-width:767px) {#modal-call.modal-open,#modal-order.modal-open,#modal-privacy.modal-open {max-height:calc(100dvh - 16px) !important;width:calc(100vw - 16px) !important;} .theme-modal>.title,.theme-modal>.subtitle {padding-right:55px !important;}}

.theme-modal.modal-open {max-width:calc(100vw - 16px) !important;max-height:calc(100dvh - 16px) !important;overflow:auto !important;}
.mp-product-view {padding-top:35px;padding-bottom:35px;}
.mp-product-view>.top-holder {display:flex;gap:30px;}
.mp-product-view .left-side,.mp-product-view .right-side {width:50%;min-width:0;}
.mp-product-view .right-side {max-width:50%;}
.mp-product-view .description {line-height:1.5;}
.mp-product-view .modal-swiper {width:100%;}
.mp-product-view .modal-swiper .slide_img {width:100%;height:auto;}
.mp-product-view .mid_holder {padding-top:25px;}
.mp-product-view .title {font-size:32px;margin-bottom:20px;}
@media(max-width:767px) {.mp-product-view>.top-holder {flex-direction:column;} .mp-product-view .left-side,.mp-product-view .right-side {width:100%;max-width:100%;}}

.form input[type=hidden] {display:none !important;}
.mp-product-view .input_container {display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:20px;}
.mp-product-view input:not([type=hidden]) {width:100%;min-width:0;box-sizing:border-box;padding:18px;background:var(--col_input);border:2px solid var(--color_border);border-radius:35px;color:var(--color_text);font:inherit;}
.mp-product-view .textarea_title {display:block;margin-bottom:8px;}
.mp-product-view .bottom-holder {display:flex;align-items:center;gap:20px;margin-top:20px;}
.mp-product-view .swiper-button-prev,.mp-product-view .swiper-button-next {background:var(--col_swiper);border-radius:50%;width:33px;height:33px;}
@media(max-width:767px) {.mp-product-view .input_container {grid-template-columns:1fr;} .mp-product-view .bottom-holder {flex-direction:column;}}
