@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap');

html{
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body{
    margin: 0;
    max-width: 100vw;
    overflow-x: hidden;
}

.bg-overlay{
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
    width: 100vw;
    height: 100vh;
    background: url(../img/overlay-bg.webp) no-repeat center center;
    background-size: auto 100%;
    cursor: default;
}

@media (max-width: 768px) {
    .bg-overlay{
        background-image: url(../img/overlay-bg-mobile.webp);
    }
}

.content{
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

.modal{
    margin: 100px 24px;
    width: 850px;
    border-radius: 32px;
    background: white;
    box-shadow: 4px 4px 54px rgba(0, 5, 51, 0.1);
    position: relative;
    pointer-events: auto;
}
@media (max-width: 768px) {
    .modal{
        width: 100%;
        margin: 80px 32px;
        border-radius: 24px;
    }
}

.modal .close-button{
    width: 24px;
    height: 24px;
    display: inline-block;
    position: absolute;
    right: 32px;
    top: 32px;
    background: url(../img/cross.svg) no-repeat center center;
    background-size: contain;
    cursor: pointer;
    opacity: .5;
    border: 0;
    transition: opacity .3s ease;
}
.modal .close-button:hover{
    opacity: 1;
}

.modal .inner-top{
    padding: 48px 32px 40px 32px;
    text-align: center;
}
@media (max-width: 768px) {
    .modal .inner-top{
        padding: 32px 24px 24px 24px;
    }
}
.modal .inner-top h1{
    font-size: 48px;
    line-height: 1.3;
    color: #000533;
    font-weight: bold;
    margin: 20px 0 20px 0;
}
@media (max-width: 768px) {
    .modal .inner-top h1{
        font-size: 32px;
    }
}

.modal .inner-top p{
    font-size: 18px;
    line-height: 1.7;
    color: #4B4F5A;
    margin: 0 0 0 0;
}
@media (max-width: 768px) {
    .modal .inner-top p{
        font-size: 14px;
    }
}
.modal .inner-top .buttons{
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
}
@media (max-width: 768px) {
    .modal .inner-top .buttons{
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }
}

.modal .inner-top .buttons .button{
    padding: 16px 32px;
    display: flex;
    align-items: center;
    font-size: 17px;
    font-weight: bold;
    line-height: 1;
    border-radius: 8px;
    text-decoration: none;
    gap: 16px;
    transition: all .3s ease;
}
@media (max-width: 768px) {
    .modal .inner-top .buttons .button{
        padding: 12px 24px;
        font-size: 14px;
    }
}

.modal .inner-top .buttons .button em{
    width: 24px;
    height: 24px;
    background-size: contain;
    background-position: center center;
    background-repeat: no-repeat;
    transition: background-image .3s ease;
}
@media (max-width: 768px) {
    .modal .inner-top .buttons .button em{
        width: 20px;
        height: 20px;
    }
}

.modal .inner-top .buttons .button.button-full{
    border: 2px solid #FF6B1F;
    background: #FF6B1F;
    color: white;
}

.modal .inner-top .buttons .button.button-full:hover{
    background: rgb(230, 43, 19);
    border-color: rgb(230, 43, 19);
}

.modal .inner-top .buttons .button.button-full em{
    background-image: url(../img/arrow-right-white.svg);
}

.modal .inner-top .buttons .button.button-outline{
    border: 2px solid #000533;
    color: #000533;
}

.modal .inner-top .buttons .button.button-outline em{
    background-image: url(../img/mail-black.svg);
    background-size: 22px;
}
@media (max-width: 768px) {
    .modal .inner-top .buttons .button.button-outline em{
        background-size: 18px;
    }
}
.modal .inner-top .buttons .button.button-outline:hover{
    background: #000533;
    color: white;
}
.modal .inner-top .buttons .button.button-outline:hover em{
    background-image: url(../img/mail-white.svg);
}

.modal .inner-bottom{
    padding: 40px 32px 32px 32px;
    position: relative;
}
@media (max-width: 768px) {
    .modal .inner-bottom{
        padding: 32px 24px 24px 24px;
    }
}
.modal .inner-bottom::before{
    content: "";
    width: 100%;
    height: 75%;
    position: absolute;
    display: inline-block;
    left: 0;
    top: 0;
    background: linear-gradient(180deg, rgba(207, 231, 225, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    z-index: 0;
}

.modal .inner-bottom .features{
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
}
@media (max-width: 768px) {
    .modal .inner-bottom .features{
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    .modal .inner-bottom .features .feature{
        display: flex;
        text-align: left;
        align-items: center;
    }
}

.modal .inner-bottom .features .feature .icon-wrap{
    width: 62px;
    height: 62px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    min-width: 62px;
}
@media (max-width: 768px) {
    .modal .inner-bottom .features .feature .icon-wrap{
        margin-right: 16px;
    }
}
.modal .inner-bottom .features .feature .icon-wrap.icon-wrap-teal{
    background: #D9F5EC;
}
.modal .inner-bottom .features .feature .icon-wrap.icon-wrap-orange{
    background: #FFE9DE;
}
.modal .inner-bottom .features .feature .icon-wrap.icon-wrap-red{
    background: #FBE9ED;
}

.modal .inner-bottom .features .feature h2{
    font-size: 18px;
    margin: 20px 0 10px 0;
    color: #000533;
}
@media (max-width: 768px) {
    .modal .inner-bottom .features .feature h2{
        font-size: 16px;
        margin: 5px 0 5px 0;
    }
}

.modal .inner-bottom .features .feature p{
    color: #4B4F5A;
    font-size: 14px;
    line-height: 1.5;
    margin: 0 0 0 0;
}
@media (max-width: 768px) {
    .modal .inner-bottom .features .feature p{
        font-size: 12px;
    }
}
.modal .inner-bottom .categories{
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    text-align: center;
    margin-top: 30px;
}
@media (max-width: 768px) {
    .modal .inner-bottom .categories{
        grid-template-columns: repeat(1, 1fr);
    }
}
.modal .inner-bottom .categories .category{
    height: 180px;
    border-radius: 16px;
    padding: 24px 0 0 24px;
    position: relative;
    overflow: hidden;
    text-align: left;
    text-decoration: none;
}
@media (max-width: 768px) {
    .modal .inner-bottom .categories .category{
        height: 140px;
        padding: 16px 0 0 16px;
    }
}

.modal .inner-bottom .categories .category.category-type-flat{
    background: linear-gradient(180deg, #DCDBF9 0%, #E6FFFF 100%);
}

.modal .inner-bottom .categories .category.category-type-house{
    background: linear-gradient(180deg, #B9E9EC 0%, #FFE2C9 100%);
}

.modal .inner-bottom .categories .category.category-type-cottage{
    background: linear-gradient(180deg, #F7C5CA 0%, #FFE9C2 100%);
}

.modal .inner-bottom .categories .category h2{
    font-size: 40px;
    margin: 0 0 0 0;
    color: white;
    text-decoration: none;
    margin-left: 10px;
    transition: all .5s ease;
}
@media (max-width: 768px) {
    .modal .inner-bottom .categories .category h2{
        font-size: 32px;
    }
}
.modal .inner-bottom .categories .category:hover h2{
    color: #000533;
    margin-left: 0;
}

.modal .inner-bottom .categories .category .arrow{
    width: 70px;
    height: 18px;
    background: url(../img/type-hover-arrow.svg) no-repeat center center;
    background-size: contain;
    margin-top: 10px;
    opacity: 0;
    transition: opacity .5s ease;
}
@media (max-width: 768px) {
    .modal .inner-bottom .categories .category .arrow{
        width: 56px;
        height: 15px;
    }
}
.modal .inner-bottom .categories .category:hover .arrow{
    opacity: 1;
}

.modal .inner-bottom .categories .category img{
    position: absolute;
    transition: all .3s ease;
}

.modal .inner-bottom .categories .category.category-type-flat img{
    right: -30px;
    bottom: -15px;
}
.modal .inner-bottom .categories .category.category-type-flat:hover img{
    right: -25px;
    bottom: -10px;
}
.modal .inner-bottom .categories .category.category-type-house img{
    right: -20px;
    bottom: -30px;
}
.modal .inner-bottom .categories .category.category-type-house:hover img{
    right: -15px;
    bottom: -25px;
}
.modal .inner-bottom .categories .category.category-type-cottage img{
    right: -50px;
    bottom: -50px;
}
.modal .inner-bottom .categories .category.category-type-cottage:hover img{
    right: -45px;
    bottom: -45px;
}