#home {
    background: url("../images/main/newBack2.jpg") no-repeat fixed;
    background-size: cover;
    height: 100vh;
    overflow: hidden;
}

@media (max-width: 768px) {
    #home {
        background: url("../images/main/newBack22.jpg");
        background-size: cover;
        height: 100vh;
        overflow: hidden;
    }

    #home .sub_two {
        font-size: 12px;
        line-height: 18PX;
        max-width: 250px;
    }
}

#page {
    padding-top: 0;
}

#about,
#buildings,
#location,
#flats {
    padding: 50px 0px 50px 0px;
}

@media (max-width: 768px) {

    #about,
    #buildings,
    #location,
    #flats {
        padding: 40px 0px 40px 0px;
    }
}

/* about */
.about {
    background-color: rgba(199, 206, 210, 0.15);
    background-position: bottom left;
}

@media (max-width: 768px) {
    .about {
        padding-top: 30px;
    }
}

/* particularities */
.particularities {
    padding-bottom: 25px;
}

.particularities__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 0;
}

.particularities p {
    margin: 0;
}

.particularities__img {
    width: 70px;
    display: flex;
}

@media (max-width: 768px) {
    .particularities__list {
        grid-template-columns: 1fr;
    }
}

/* buildings */
.buildings {
    background-color: rgba(199, 206, 210, 0.15);
    background-position: bottom left;
}

.buildings__content_list {
    display: grid;
    grid-template-columns: 140px 140px;
    grid-template-rows: 1fr 1fr;
    justify-content: space-evenly;
}

.buildings__content_list span {
    color: var(--accent);
    font-size: 32px;
}

.buildings__content_list .sub_three {
    line-height: unset;
}

.buildings__item h2 {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .buildings__content_list {
        margin-top: 20px;
        grid-template-columns: 100px 100px;
        grid-template-rows: 1fr 1fr;
        justify-content: center;
    }

    .buildings__content_list li {
        padding: 0 15px;
    }

    .buildings__content_list li {
        display: flex;
        justify-content: space-around;
    }
}

@media screen and (max-width: 500px) {
    .buildings__content_list {
        justify-content: space-between;
    }
}

/* contacts */
.contacts {
    background-color: var(--background);
}

.map-frame {
    width: 100%;
    height: 620px;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 0;
}

@media (max-width: 680px) {
    .best__suggestions .card {
        margin-right: 0;
        display: grid;
        grid-template-columns: 1fr 1.5fr;
    }

    .best__suggestions .card .card-stats {
        border-left: 1px solid var(--lightGray);
    }

    .best__suggestions .card h4 {
        letter-spacing: unset;
        margin: 0;
    }

    .best__suggestions .card h3 {
        font-size: 18px;
    }

    .best__suggestions .card .fav__ico {
        right: 0%;
        left: 3%;
        top: 5%;
    }
}

@media (max-width: 668px) {
    .map-frame {
        height: 400px;
    }
}

.swiper {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 0 auto;
}

.swiper-wrapper {
    width: 100%;
}

.about-text-container {
    min-width: 500px;
}

@media (max-width: 500px) {
    .about-text-container {
        min-width: 100%;
    }
}

/* Hide Swiper navigation buttons (blue arrows) for flats slider */
.flats-swiper .swiper-button-next,
.flats-swiper .swiper-button-prev {
    display: none !important;
}

.swiper2 {
    max-width: 500px;
    max-height: 560px;
    overflow: hidden;
    box-shadow: 0px 0px 14px -1px rgba(57, 56, 57, 0.7);
}

.swiper3 {
    max-width: 500px;
    max-height: 500px;
    overflow: hidden;
}

.buildings-slider {
    max-width: 500px;
    margin: auto;
}

@media (max-width: 768px) {}

.swiper2 .swiper-slide,
.swiper3 .swiper-slide {
    width: 100% !important;
}

#panorama {
    position: relative;
    padding-bottom: 0 !important;
    padding-top: 70px !important;
}

.pano {
    height: calc(100vh - 72px);
    width: 100%;
}

.panorama-btn {
    cursor: pointer;
}

.panorama-block {
    position: absolute;
    top: 20px;
    right: 25px;
    cursor: pointer;
}

.block-modal {
    display: flex;

    font-style: normal;
    font-weight: 500;
    font-size: 11px;
    color: #302E3C;

    position: absolute;
    top: 15px;
    right: 70px;
    background: #fff;
    padding: 10px;
    border-radius: 8px;
    opacity: 0;
    transition: all 1s ease-out;
}

.block-modal p {
    margin: 0;
}

.block-modal__close {
    margin-left: 10px;
    cursor: pointer;
    transition: all 0.5s ease-out;
}

.block-modal__close:hover {
    color: red;
}

@media (max-width: 500px) {
    .block-modal {
        top: 146px;
        right: 13px;
        max-width: 190px;
    }
}

.panorama-container {
    position: relative;
    padding: 0 10px;
    max-width: 800px;
    width: 100%;
}

@media (max-width: 600px) {
    .panorama-container {
        padding: 20px;
    }

    #pan {
        max-height: 440px;
    }
}

.panorama-hidden {
    position: absolute;
    top: 0;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100vh - 72px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(90deg, rgba(12, 12, 13, 0.6866947462578781) 0%, rgba(12, 12, 13, 0.6222689759497548) 53%, rgba(233, 149, 1, 0.34495805158000703) 100%, rgba(12, 12, 13, 1) 100%);
    z-index: 1;
}

.panorama-hidden.hide {
    display: none;
}

.panorama-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pan-info {
    background: rgba(199, 206, 210, 0.15);
    padding: 15px;
    border-radius: 6px;
}

@media (max-width: 998px) {
    .panorama-content {
        flex-direction: column;
    }

    .pan-info {
        max-width: 600px;
        width: 100%;
        margin-top: 20px;
    }
}

#location {
    background-color: var(--bg);
}

.location-list {
    padding-left: 15px;
}

.location-list li {
    margin-bottom: 10px;
    font-size: 14px;
    list-style-type: disc;
}

.location-map {
    max-width: 620px;
    width: 100%;
}

@media screen and (max-width: 768px) {
    .location-map {
        margin-top: 30px;
    }
}

.environment {
    height: calc(100vh - 72px);
    display: flex;
    align-items: flex-end;
    background: url('../images/main/environment/environment.jpg');
    background-position: center -70px;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
}

.environment-list {
    margin-top: 30px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

@media screen and (max-width: 1440px) {
    .environment {
        background: url('../images/main/environment/environment2.jpg');
        background-position: center center;
    }
}

@media screen and (max-width: 600px) {
    .environment {
        padding: 40px 0px 40px 0px;
        height: unset;
        display: block;
        background: none;
        color: var(--black);
    }

    .environment-list {
        margin-top: 30px;
        flex-direction: column;
        gap: 20px;
    }
}

.slider-section {
    height: calc(100vh - 72px);
    display: flex;
    justify-content: center;
    padding: 0px;
}

.sliderSection {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.sliderSection .swiper-slide {
    height: 100%;
    display: flex;
    align-items: flex-end;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--white);
}

.slider-section .switches-container {
    width: 100%;
    height: calc(100% - 70px);
    position: absolute;
    top: 0;

}

.sliderSection-text {
    padding: 0 20px;
    margin-bottom: 30px;
}

@media screen and (max-width: 768px) {
    .slider-section {
        height: 70vh;
    }
}