body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    font-size: 19px;
    line-height: 1.75;
}

body.modal-open {
    overflow: hidden; /* Запрет прокрутки */
}

header {
    background-color: #4a148c;
    color: #fff;
    padding: 10px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    font-size: 19px;
}

.no-bullet {
    list-style-type: none;
    padding: 0 0 5px 0;
    margin: 0;
}

.fa-check, time {
    color: #4a148c;
}

.pure-menu-heading {
    color: #fff;
    font-weight: bold;
}

.pure-menu-heading:hover {
    text-decoration: underline;
    text-underline-offset: 0.5em;
}

.pure-menu-link {
    color: #fff;
    font-weight: bold;
}

.pure-menu-link:hover {
    color: #4a148c;
    font-weight: bold;
}

.menu-toggle {
    display: none;
    color: #fff;
    font-size: 23px;
    cursor: pointer;
    padding: 10px;
}

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    background-color: #f4f4f4;
    text-align: center;
    margin-top: 60px;
}

.hero-desc {
    max-width: 500px;
}

.agent-photo {
    border-radius: 50%;
    margin-right: 20px;
    max-width: 300px;
}

.services,
.about,
.properties,
.testimonials,
.contact {
    padding: 50px 20px;
    text-align: center;
}

.services {
    background-color: #f4f4f4;
}

.about {
    background-color: #f4f4f4;
}

.testimonials {
    background-color: #f4f4f4;
}

.properties {
    background-color: #f4f4f4;
}

.content {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.service-item,
.property-item {
    flex: 1 1 300px;
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.service-item i, .property-item i {
    color: #4a148c;
    margin-bottom: 15px;
}

.property-image {
    max-width: 100%;
    border-radius: 5px;
}

.price {
    font-weight: bold;
    color: #4a148c;
}

.section-image {
    max-width: 300px;
    margin: 10px;
    border-radius: 10px;
}

.text {
    max-width: 600px;
    margin: 10px;
    text-align: left;
}

.pure-button {
    background-color: #4a148c;
    color: #fff;
    font-size: 19px;
    padding: 20px;
    border-radius: 5px;
    cursor: pointer;
}

#leave-review,
#view-all {
    display: block;
    margin: 20px auto;
    cursor: pointer;
    width: 300px;
}

.footer {
    background-color: #4a148c;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    aspect-ratio: 5/6;
    background-color: #fff;
    margin: 20px auto;
    padding: 10px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
}

.form-h {
    font-size: 23px;
}

.modal-form-iframe {
    height: 530px;
    overflow: hidden;
}

.modal-form-iframe iframe {
    margin-top: -240px;
    width: 100%;
    height: calc(100% + 320px);
    border: none;
    clip-path: inset(240px 0 70px 0);
}

.close {
    position: relative;
    right: 15px;
    top: -10px;
    color: #aaa;
    float: right;
    font-size: 27px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.contact {
    background-color: #f4f4f4;
}

.contact .text {
    text-align: center;
}

.social-links {
    margin: 20px 0;
    cursor: pointer;
}

.social-links a {
    margin: 5px;
    min-width: 160px;
}

.swiper {
    width: 100%;
    height: 100%;
}

.swiper-slide {
    text-align: center;
    background: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swiper-content {
    max-width: 80%;
}

.designed, .designed>a {
    font-size: 10px;
    color: gray;
    margin-top: -15px;
}

@media (max-width: 1130px) {
    .menu-right {
        visibility: hidden;
    }
}

@media (max-width: 820px) {
    .hero {
        flex-direction: column;
    }

    .agent-photo {
        margin: 0px;
    }

    .swiper-button-prev {
        margin-left: -10px; /* Отодвинуть кнопку влево */
    }
    
    .swiper-button-next {
        margin-right: -10px; /* Отодвинуть кнопку вправо */
    }    

    .menu-toggle {
        display: block;
        float: right;
    }

    .pure-menu-list {
        visibility: hidden;
        flex-direction: column;
        background-color: #4a148c;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
    }

    .pure-menu-item {
        text-align: center;
    }

    .pure-menu-list.active {
        display: flex;
        visibility: visible;
    }

    .pure-menu-list.active>.menu-right {
        visibility: visible;
    }

    .content {
        flex-direction: column;
        align-items: center;
    }

    .service-item,
    .property-item {
        margin: 10px 0;
    }
}

@media (max-width: 600px) {
    .modal-content {
        width: 90%; /* Увеличиваем ширину на мобильных устройствах */
    }
    .swiper-content p{
        font-size: 14px;
    }
}