/*Первый блок*/
.title-img-main{
    background-image: url(../img/young-couple-multiply.png);
    background-repeat: no-repeat;
    background-size: cover;
    height: auto;
    padding: 200px 0;
}

.flex-text-title, .title-text{
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flex-text-title{
    gap: 60px;
}

.number-grid-block.he{max-width: 620px;}
.rtl-text {max-width: 620px !important;}

.title-text{
    gap: 9px;
}

.button-two{
    display: flex;
    flex-direction: row;
    height: 56px;
    gap: 25px;
}

.couple_padd, .button-two{
    padding-left: 3px;
}

.href_white{
    display: inline-block;
    padding: 17px 0;
    background: white;
    color: black;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    width: 267px;
}

.href_line{
    display: inline-block;
    padding: 16px 0;
    border: solid 1px white;
    color: white;
    text-decoration: none;
    text-align: center;
    font-weight: 700;
    width: 267px;
}


.href_white:hover, .href_line:hover{
    background-color: #D4A48A;
    color: black;
    border: 0;
    transition: all 0.1s ease 0s;
}

.href_line:hover{
    padding: 17px 0;
    border: solid 1px #D4A48A !important;
}

.normal{
    white-space: normal;
}

.center{
    text-align: center;
}

.img-offer-block{
    width: auto;
    height: 45px;
}

.number-all-block{
    display: flex;
    flex-direction: row;
    align-items: start;

    gap: 10px;
}

.number-text-block{
    display: flex;
    flex-direction: column;
    max-width: 320px;
}

.number-grid-block{
    display: grid;
    grid-template-rows: repeat(3, fit-content(200px));
    grid-auto-flow: column;

    max-width: 730px;

    gap: 25px;
}

.width-auto{
    width: auto !important;
    color: #777;
}

@media (max-width: 1202px) {
    .number-grid-block{
        display: flex;
        flex-direction: column;
        max-width: none;
    }
}

@media (max-width: 1143px) {
    .number-grid-block{
        display: flex;
        flex-direction: column;
        max-width: none;
    }
}

@media (max-width: 425px) {
    .number-text-block{
        max-width: 265px;
    }
}

/*Второй блок*/

.hello-title {
    padding: 110px 0;
}

.hello-title-text, .hello-text-text{
    color: black;
}

.hello-title-text h1{
    font-weight: 600;
}

.hello-card{
    width: 330px;
    height: 124px;
    background-color: #212039;
}

.hello-text, .hello-title-text, .hello-text-text{
    display: flex;
    flex-direction: column;
}

.hello-text-text{
    gap: 40px;
}

.hello-text-text p{
    width: 705px;
    white-space: normal;
}

.hello-text{
    gap: 45px;
}

.hello-back-black{
    display: flex;
    flex-direction: row;
    gap: 50px;
}

.hello-card{
    display: flex;
    align-items: center;
    justify-content: center;
}



/*Третий блок*/
.consultation{
    background-image: url(../img/skyscrapers.png);
    background-repeat: no-repeat;
    background-size: cover;

    height: 580px;
}

.cons-item, .rule-polician-consultation{
    display: flex;
    flex-direction: row;
}

.rule-polician-consultation{
    align-items: center;
}

.consultation-card{
    width: 406px;
    height: 80%;
    background-color: #212039;

    align-self: center;

    display: flex;
    align-items: center;
    justify-content: center;
}

.text-input-rule{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 30px;

    width: -webkit-fill-available;
    width: -moz-available;
}

.input-rule{
    width: -webkit-fill-available;
    width: -moz-available;
}

.dash-border{
    width: 90%;
    height: 90%;
    border: dashed 1px #494766;

    padding: 25px 35px;

    display: flex;
    flex-direction: column;
    align-items: center;

    justify-content: space-between;
}

.input_card{
    width: -webkit-fill-available;
    width: -moz-available;
}

input[type="checkbox"]{
  accent-color: #A59EFE;
}

.send-consultation {
    width: -webkit-fill-available;
    width: -moz-available;

    margin-top: 20px;
}



/*Четвертый блок*/
.services-block, .item-block{
    padding: 50px;
}

.card-block-container{
    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 60px;
}

.services{
    width: fit-content;

    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 23px; /*НОВОЕ*/
}

.services-text{
    color: black;
    font-weight: 700;
}

.services-card-all-text{
    display: flex;
    flex-direction: column;

    padding: 30px 40px;

    justify-content: space-between;

    height: 300px;
}

.services-card-text h1, .services-card-text p{
    white-space: normal;
}

.services-card-text p, .services-text-more a{
    font-weight: 400;
}

.services-text-more img{
    width: 40px;
}

.services-text-more a{
    text-decoration: none;
    color: white;
}

.services-text-more a:hover{
    color: #A59EFE;
    cursor: pointer;
}

.services-card-text{
    display: flex;
    flex-direction: column;
}

.services-card-text{
    gap: 10px;
}

.services-text-more{
    display: flex;
    flex-direction: row;
    justify-content: end;
    gap: 10px;
    align-items: center;
}

/*Добавляем изображения на карточки*/

#buy-estate{
    background-image: url(../img/buy-estate.jpg);
}

#sell-estate{
    background-image: url(../img/sell-estate.jpg);
}

#apartment-rental{
    background-image: url(../img/apartment-rental.jpg);
}

#apartments-developer{
    background-image: url(../img/apartments-developer.jpg);
}

#estate-control{
    background-image: url(../img/estate-control.jpg);
}

#estate-Cyprus{
    background-image: url(../img/apartment-rental.jpg);
}

#buy-estate, #sell-estate, #apartment-rental,
#apartments-developer, #estate-control, #estate-Cyprus{
    background-repeat: no-repeat;
    background-size: cover;
}


/*Пятый блок*/
.item{
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 21px;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));

}

/*.item{
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}*/

.img-card{
    height: 300px;
}

.img-card img{
    height: 100%;
    width: 100%;
    overflow: hidden;
    object-fit: cover;
}

.img-card{
    height: 300px;
    /*background-image: url(../img/test_img.jpg);*/
    background-repeat: no-repeat;
    background-size: cover;
}

.card-item-text{
    color: black;
    padding: 15px 23px 23px;
    width: -webkit-fill-available;
    width: -moz-available;

    border: solid 1px #D9D9D9;
}

.black{
    font-weight: 600;
}



.all-bubbles, .bubble-item{
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.bubble-item{
    color: black;
    background-color: #F2F2F2;
    border-radius: 20px;

    padding: 10px 20px;
}

.bubble-item img, .SVG-item img{
    width: 21px;
    height: auto;
}


.SVG-items{
    display: grid;
    gap: 5px;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 15px;
}


.SVG-item{
    display: flex;
    flex-direction: row;
    gap: 15px;

    width: auto;
}

.brand-inline {
    display: inline-block !important;
    white-space: nowrap !important;
}

.href_black{
    display: inline-block;
    padding: 17px 20px;
    background: #f8e9d7;
    color: black;
    text-decoration: none;
    text-align: center;
    font-weight: 700;

    width: max-content;
}

.href_black:hover{
    background: #D4A48A;
    transition: all 0.1s ease 0s;
}


.text-SVG{
    margin: 20px 0 35px;
}

.learn-more{
    color: #8C8C8C;
    text-align: center;
    display: block;
}

.learn-more:hover{
    color: #4C46A0;
}

@media (max-width: 1213px) {
    /*НОВОЕ*/

    .text-SVG p{
        white-space: normal;
    }

    .services-card-all-text {
        padding: 30px 27px;
    }
}

.hello-text {
    position: relative;
}

.hello-photos {
    position: absolute;
    right: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    gap: 25px;
    align-items: center;
}

.photo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.photo-circle {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    overflow: hidden;
    -webkit-box-shadow: 0px 0px 22px -11px rgba(34, 60, 80, 0.17);
    -moz-box-shadow: 0px 0px 22px -11px rgba(34, 60, 80, 0.17);
    box-shadow: 0px 0px 22px -11px rgba(34, 60, 80, 0.17);
}

.photo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-name {
    color: black;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
}

/* Адаптив для фотографий */
@media (max-width: 1202px) {
    .hello-photos {
        position: static;
        flex-direction: row;
        justify-content: center;
        margin: 30px 0;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .hello-photos {
        flex-direction: column;
        gap: 25px;
        margin: 20px 0;
    }
}

@media (max-width: 425px) {
    .photo-circle {
        width: 120px;
        height: 120px;
    }
   
    .photo-name {
        font-size: 14px;
    }
}
