/*             Залы             */
.hall-block-1{
    overflow: hidden;
    width: 100%;
    height: 740px;
    background-size: cover;
    background-position: center;
}
.hall-block-1 img{
    margin-top: -50px;
    width: 100%;
}
.hall-block-2{
    padding-top: 75px;
}
.hall-block-2 h2{
    margin-top: 100px;
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
}
.hall-block-2-text{
    height: 270px;
}
.text-left{
    margin-top: 60px;
    font-size: 55px;
    color: #DEA694;
    float: left;
}
.block-text2{
    margin-top: 0px;
    position: relative;
    width: 100%;
    height: 200px;
    margin-bottom: 150px;
}
@media screen and (max-width: 768px) {
    .block-text2{
        text-align: center;
        margin-top: 40px;
        position: static;
        margin-bottom: 150px;
    }
    .text-right{
        position: static!important;
    }
}
.hall-block-2-text{
    position: relative;
    width: 100%;
}
.text-right{
    position: absolute;
    right: 0px;
    margin-top: 60px;
    color: #1F1F21;
    width: 100%;
    max-width: 430px;
    margin-right: 140px;
    margin-bottom: 50px;
}
.hall-slider{
    width: 100%;
    display: flex;
    justify-content: center;
    height: 930px;
    position: relative;
}
.hall-slider-btn{
    user-select: none;
    transition: 0.7s;
    border-radius: 33px;
    padding-top: 30px;
    padding-bottom: 30px;
    padding-left: 10px;
    padding-right: 10px;
    background-color: #f1f1f165;
    cursor: pointer;
    color: #fff;
    top: 320px;
    z-index: 1000;
    position: absolute;
}
.hall-slider-btn:hover{
    background-color: #f1f1f1e5;
}
.prev{
    left: 30px;
}
.next{
    right: 30px;
}
.hall-block-2 .img-hall{
    margin-left: 15px;
    margin-right: 15px;
    margin-top: 725px;
    width: 276px;
    height: 200px;
    border-radius: 33px;
    overflow: hidden;
}
.hall-block-2 .img-hall img{
    height: 100%;
}
.img-centerLeft{
    margin-left: 28px;
    margin-right: 14px;
}
.img-centerRight{
    margin-left: 14px;
    margin-right: 28px;
}
.hall-block-2 .img-main{
    position: absolute;
    top: 0px;
    left: 15px;
    margin: 0;
    width: 1170px;
    height: 690px;
}
.hall-block-2 .img-main img{
    height: auto!important;
    width: 100%;
}
.hall-block-3{
    padding-top: 50px;
}
.hall-block-3 .img-hall{
    margin-top: 35px;
    display: inline-block;
    width: 276px;
    height: 355px;
    border-radius: 33px;
    overflow: hidden;
}
.hall-block-3 .img-hall img{
    width: 100%;
}
.img-center{
    margin-top: 500px;
    width: 100%!important;
    height: 750px!important;
    margin-left: 0px!important;
    margin-right: 0px!important;
}
.hall-block-3 .img-main{
    margin: 0;
    width: 100%;
    height: 355px;
}
.plan{
    text-align: center;
    
    margin-top: 100px;
}
.plan h1{
    text-align: center;
    font-size: 36px;;
}
.plan img{
    cursor: pointer;
    z-index: 100;
    vertical-align: middle;
    margin-top: 50px;
    margin-bottom: 50px;
    margin-left: 2%;
    margin-right: 2%;
    width: 42%;
}   
.crystal_plan img{
    margin-left: 1%;
    margin-right: 1%;
    width: 30%;
}
.hall-btn{
    transition: 0.7s;
    cursor: pointer;
    width: 210px;
    height: 45px;
    border-radius: 30px;
    background-color: #FF9067;
    box-sizing: border-box;
    text-align: center;
    padding-top: 13px;
    color: #fff;
    margin-left: auto;
    margin-right: auto;
    margin-top: 60px;
}
.hall-btn:hover{
    background-color: #ff9067c9;
}
.hall-block-4{
    margin-top: 175px;
}
/*.hall-block-4-main{
    width: 580px;
    margin-left: auto;
    margin-right: auto;
}*/
.text-left-last{
    vertical-align: middle;
    color: #1F1F21;
    display: inline-block;
    width: 275px;
}
.text-left-last h1{
    font-size: 20px;
    margin-bottom: 15px;
}
.text-left-last .hall-btn{
    width: 210px;
    height: 45px;
    background-color: #fff;
    color: #000;
    margin-left: 0px;
    margin-top: 25px;
    padding-top: 10px;
    border: #000 1px solid;
}
.text-left-last .hall-btn:hover{
    background-color: #39393913;
}
.pic{   
    vertical-align: middle;
    display: inline-block;
    max-width: 850px;
    width: 100%;
    height: 276px;
    border-radius: 30px;
    overflow: hidden;
    margin-left: 70px;
    display: inline-block;
}
.pic img{
    margin-top: -350px;
    width: 100%;
}
#wait{
    padding-top: 400px;
    text-align: center;
    font-size: 48px;
}

.terrBlock{
    margin-top: 90px;
    text-align: center;
    padding-top: 120px;
    box-sizing: border-box;
    color: #fff;
    width: 100%;
    height: 420px;
    border-radius: 35px;
    background-image: url('img/crystal/terrBack.jpg');
    background-size: cover;
    background-position:bottom;
    background-position-y: -250px;
}
.terrBlock h1{
    text-align: center;
    margin-top: 0px;
    margin-bottom: 0px;
    font-size: 48px;
}
.terrBlock p{
    text-align: center;
    margin-top: 10px;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.btn-3-3{
    border: 1px solid #fff;
    color: #fff;
}
.btn-3-3:hover{
    background-color: #fff;
    color: #000;
}
.tech{
    width: 50%;
}
.hall-block-5{
    padding-top: 150px;
    text-align: center;
}
.hall-block-5 {
    padding: 50px 0;
    width: 100%;
}

.hall-block-5 .hall-slider {
    position: relative;
    width: 100%;
    height: 600px; /* Задаем фиксированную высоту */
    margin-top: 30px;
}

.hall-block-5 .img-hall {
    display: none;
    width: 100%;
    height: 100%;
}

.hall-block-5 .img-hall.active {
    display: block;
}

.hall-block-5 .img-hall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hall-block-5 .hall-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.hall-block-5 .prev {
    left: 20px;
}

.hall-block-5 .next {
    right: 20px;
}
.plan-viewer {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 1000;
}

.plan-viewer-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.plan-viewer-image {
    width: 90%!important;
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.plan-close-btn {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
}

.plan-close-btn:hover {
    color: #bbb;
}


@media screen and (max-width: 768px) {
    
    .terrBlock{
        background-position-y: 0px;
        padding-top: 70px;
        margin-left: auto;
        margin-right: auto;
        width: 375px;
        height: 350px;
    }
}
@media screen and (max-width: 768px) {
    .hall-block-1{
        border-bottom: 30px;
        height: 750px;
        border-bottom-left-radius: 30px;
        border-bottom-right-radius: 30px;
    }
    .hall-block-1 img{
        margin-top: 0px;
        margin-left: -500px;
        width: auto;
        height: 100%;
    }
    .hall-block-2{
        text-align: center;
        padding-top: 30px;
    }
    .hall-block-2-text{
        height: 310px;
    }
    .text-left{
        margin-top: 10px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        float: none;
    }
    .text-right{
        width: 380px;
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        float: none;
    }
    .hall-slider{
        height: 450px;
        margin-top: 50px;
    }
    .hall-slider-btn{
        background-color: #f1f1f1e5;
        top: 60px;
    }
    .hall-block-2 .img-hall{
        margin-top: 250px;
    }
    .hall-block-2 .img-main{
        margin-top: 0px;
    }
    .hall-block-2 img{
        max-width: 380px;
        width: 380px;
    }
    .img-hall{
        margin-left: auto;
        margin-right: auto;
        max-width: 380px!important;
        width: 100%!important;
    }
    .img-main{
        margin-left: 2%!important;
        height: 200px!important;
    }
    .img-main img{
        height: 200px;
    }
    .hall-block-3{
        text-align: center;
    }
    .hall-block-3 .img-hall{
        margin-top: 35px;
        display: inline-block;
        width: 276px;
        height: 200px;
        border-radius: 33px;
        overflow: hidden;
    }
    .img-center{
        height: 200px!important;
        margin-left: 0%;
        margin-right: 0px;
    }
    .hall-block-3 .img-main{
        margin: 0;
        width: 380px;
        height: 200px;
    }
    .hall-block-4{
        margin-top: 50px;
        text-align: center;
    }
    .text-left-last .hall-btn{
        width: 210px;
        height: 45px;
        background-color: #fff;
        color: #000;
        margin-left: auto;
        margin-top: 25px;
        padding-top: 10px;
        border: #000 1px solid;
    }
    .pic{
        width: 276px;
        height: 276px;
        border-radius: 50%;
        margin-top: 25px;
        margin-left: 0px;
    }
    .pic img{
        margin-top: 0px;
    }
    .img-centerLeft{
        margin-left: 0px;
        margin-right: 0px;
    }
    .img-centerRight{
        margin-left: 0px;
        margin-right: 0px;
    }
}

/* Стили для эффекта затемнения и лупы в слайдере */


.img-main.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.img-main.slide::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='white' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    pointer-events: none;
}

/* Показываем эффекты только на десктопе при наведении */
@media (min-width: 769px) {
    .img-main.slide:hover::before,
    .img-main.slide:hover::after {
        opacity: 1;
    }
}

/* Убираем эффект на мобильных устройствах */
@media (max-width: 768px) {
    .img-main.slide::before,
    .img-main.slide::after {
        display: none;
    }
}

/* Стиль для счетчика слайдов */
.slide-counter {
    position: absolute;
    bottom: 270px;
    right: 50px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 3;
    font-family: Arial, sans-serif;
}
.hall-slider-wrapper {
    position: relative; /* Чтобы абсолютно позиционировать счетчик относительно обертки */
    /* ... другие стили для обертки ... */
}

.slide-counter.hall-slide-counter {
    position: absolute;
    bottom: 270px; /* Например, снизу */
    right: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 5px 10px;
    border-radius: 10px;
    z-index: 10; /* Чтобы был поверх слайдов, если они перекрывают */
}