.premise {
    position: relative;
}

.premise__text-container {
    width: 456px;
}

.premise__plan-container {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;

    width: calc(100% - 488px);
}

.premise__plan-fixed {
    position: fixed;
}

.premise__plan-fixed_free {
    position: absolute;
    bottom: 58px;
}

.premise__modal {
    /*z-index: 150;*/
    z-index: -1;
}

.premise__modal .premise-modal__active-path {
    opacity: 0.5;
    fill: #007bfb;
    transition: fill 0.5s, opacity 0.5s;
}

.premise__modal .light-swiper {
    display: flex;
    max-width: 1600px;
}

.premise__modal-background {
    background-color: rgba(0, 0, 0, 0.7);
}

.premise__modal-window {
    position: absolute;
    top: 50%;
    left: 50%;

    transform: translate(-50%, -50%);

    width: 100%;
    max-width: 1950px;
    height: 100%;
    max-height: 800px;

    margin: 0;
    border-radius: 15px;
    background-color: white;

    overflow: hidden;
}

.premise__modal-image-container {
    position: absolute;

    /*width: 1925px;*/
    width: 800px;
    height: 800px;

    touch-action: none;
}

.premise__modal-image {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    display: block;

    width: auto;
    height: auto;
}

.premise__modal-image_move {
    cursor: move;
}

.premise__modal-image[name=layout] {
    max-width: 90%;
    max-height: 90%;
}

.premise__modal-image[name=floor] {
    max-width: 100%;
    max-height: 100%;
}

.premise__modal-image[name=general] {
    min-width: 100%;
    min-height: 90%;

    z-index: 99;
}

.premise__modal-image path {
    fill: #007bfb;
    opacity: 0;
    stroke: none;
    stroke-width: 0;

    cursor: pointer;

    transition: opacity 0.5s;
}

.premise__modal-image path:hover {
    opacity: 0.5;

    transition: opacity 0.5s;
}

.premise__modal-image path.premise__active-path {
    opacity: 0.5;
}

.premise__modal-image path[data-status="2"] {
    fill: black;
    opacity: 0.2;
}

.premise__modal-image path[data-status="3"] {
    fill: black;
    opacity: 0.2;
}

/* Системные обводки (mobile focus) убираем, чтобы не было синих рамок */
.premise:focus,
.premise *:focus,
.premise:focus-visible,
.premise *:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

.premise__modal-close {
    position: absolute;
    top: 10px;
    right: 10px;

    width: 110px;
    height: 40px;

    padding-left: 20px;
    border-radius: 15px;

    color: #202e35;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;

    background-color: rgba(255, 255, 255, 0.55);

    outline: none;

    cursor: pointer;

    transition: color 0.25s;

    z-index: 5;
}

.premise__modal-close:hover {
    color: #007bfb;

    transition: color 0.25s;
}

.premise__modal-close::before {
    position: absolute;
    left: 6px;
    top: 50%;
    transform: translateY(-50%);

    font-family: 'Material Design Icons';
    font-size: 24px;
    font-weight: 300;

    transition: transform 0.25s;
}

.premise__modal-close:hover::before {
    transform: translateY(-50%) rotate(90deg);

    transition: transform 0.25s;
}

@media (max-width: 1023px) {
    .premise__plan-fixed_free {
        bottom: 26px;
    }

    .premise__text-container {
        width: 300px;
    }

    .premise__plan-container {
        width: calc(100% - 332px);
    }
}

@media (max-width: 768px) {
    .premise__text-container {
        width: 100%;
    }

    .premise__plan-container {
        position: relative;

        width: 100%;
        margin-top: 22px;
    }

    .premise__plan-fixed {
        position: static;
    }

    .premise__plan-fixed_free {
        position: static;
    }
}
