
.home__page-header {
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 50px;
    background-position: left 0%;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    padding: 135px 0px;
    margin: 0px 50px 20px 50px;
}

.home__page-header::after {
    content: '';
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(17, 17, 17, 0) 0%, rgba(17, 17, 17, 0.5) 100%);
}

.home__page-header-title {
    position: relative;
    z-index: 10;
    margin: 0px 0px 25px 0px;
}

.home__page-header-title h1 {
    text-align: center;
    color: #FECF51;
    font-size: 60px;
    font-weight: 600;
    line-height: 110%;
}

.home__page-header-title h1 br {
    display: none;
}

.home__page-header-title h1 span {
    color: #FECF51;
}

.home__page-header-descr {
    position: relative;
    text-align: center;
    color: #ffffff;
    font-size: 20px;
    font-weight: 500;
    line-height: 120%;
    z-index: 10 ;
    margin: 0px 0px 25px 0px;
}

.home__page-header-options {
    position: relative;
    display: flex;
    gap: 6px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    z-index: 10;
    margin: 0px auto 60px;
}

.home__page-header-option {
    position: relative;
    display: flex;
    gap: 10px;
    align-items: center;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ffffff;
    padding: 14px 21px;
}

.home__page-header-option::before {
    content: '';
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 100%;
    background: #FBC73E;
}

.home__page-header .property__filter-button {
    display: none !important;
}

.filter__block-button {
    margin: 30px 0px 0px 0px;
}

.home__page-header-features {
    display: grid;
    grid-gap: 20px;
    grid-template-columns: 1fr 1fr;
    margin: 0px 0px 48px 0px;
}

.home__page-header-feature {
    position: relative;
    display: flex;
    gap: 20px;
    align-items: center;
}

.home__page-header-feature:first-child {
    border-radius: 30px;
    background: linear-gradient(180deg, #FFD155 0%, #F6BE26 100%);
    padding: 27px 45px 27px 36%;
}

.home__page-header-feature:last-child {
    border-radius: 30px;
    background: linear-gradient(180deg, #FFFFFF 0%, #EBEBEB 100%);
    padding: 27px 45px;
}

.home__page-header-feature-text {
    color: rgba(17, 17, 17, 0.6);
    font-size: 16px;
    font-weight: 500;
    line-height: 120%;
}

.home__page-header-feature-text span {
    display: block;
    color: #111111;
    font-size: 20px;
    margin: 0px 0px 10px 0px;
}

.home__page-header-feature-media {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.home__page-header-feature:first-child .home__page-header-feature-media {
    left: -2px;
    max-width: 178px;
}

.home__page-header-feature:last-child .home__page-header-feature-media {
    right: -25px;
    max-width: 170px;
}

.home__page-header-feature-media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.home__page-header-feature-media picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home__page-catalog-apartaments-carousel {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px 20px;
    margin: 0 0 40px;
}

/* search filter */

#search form .row {
    border-radius: 30px;
    padding: 10px;
}

#search form .row .item {
    border-radius: 20px;
}

/**/


/* property-card */

/* .property-card {
    display: flex;
    flex-direction: column;
}

.property-card__body {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card__media {
    position: relative;
    width: 100%;
    height: 240px;
    min-height: 240px;
    border-radius: 30px;
    overflow: hidden;
    margin: 0px 0px 20px 0px;
}

.property-card__media picture {
    display: block;
    width: 100%;
    height: 100%;
}

.property-card__media picture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-card__favorite {
    position: absolute;
    right: 20px;
    top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background: #ffffff;
}

.property-card__favorite .icon {
    width: 20px;
    height: 20px;
    stroke: rgba(17, 17, 17, 0.6);
    fill: transparent;
    transition: 0.3s;
}

.property-card__favorite:hover .icon,
.property-card__favorite.is-active .icon {
    stroke: #F92E2E;
    fill: #F92E2E;
}

.property-card__meta {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    margin: 0px 0px 10px 0px;
}

.property-card__meta-item {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(17, 17, 17, 0.6);
    font-size: 14px;
    font-weight: 500;
    line-height: 100%;
}

.property-card__meta-item .icon {
    width: 20px;
    height: 20px;
    fill: #F6BE26;
}

.property-card__price {
    color: #111111;
    font-size: 24px;
    font-weight: 600;
    line-height: 120%;
    border-left: 1px solid #3D5CCC;
    padding: 10px 20px;
    margin: 0px 0px 10px 0px;
}

.property-card__content {
    flex: auto;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #F6BE26;
    padding: 10px 20px;
    margin: 0px 0px 10px 0px;
}

.property-card__title {
    display: block;
    color: #111111;
    font-size: 20px;
    font-weight: 600;
    line-height: 120%;
    text-decoration: none;
    margin: 0px 0px 10px 0px;
}

.property-card__description {
    color: rgba(17, 17, 17, 0.6);
    font-size: 16px;
    font-weight: 500;
    line-height: 120%;
    margin: 0px 0px 20px 0px;
}

.property-card__features {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: auto 0px 0px 0px;
}

.property-card__feature {
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(17, 17, 17, 0.8);
    font-size: 14px;
    font-weight: 500;
    line-height: 120%;
}

.property-card__feature .icon {
    width: 20px;
    height: 20px;
    fill: #3D5CCC;
    stroke: #3D5CCC;
}

.property-card__btn {
    display: block;
    width: 100%;
    text-align: center;
    color: #111111;
    font-size: 18px;
    font-weight: 600;
    line-height: 100%;
    text-decoration: none;
    border-radius: 100px;
    background: linear-gradient(180deg, #FFD155 0%, #F6BE26 100%);
    padding: 16px 12px;
} */

/**/

/* articles-carousel */

.articles-carousel {
    /* margin: 100px 0px; */
}

.articles-carousel__header {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: space-between;
    margin: 0px 0px 50px 0px;
}

.articles-carousel__title {
    font-size: 40px;
    color: #111111;
    font-weight: 600;
    line-height: 110%;
}

.articles-carousel__label {
    text-align: right;
    color: rgba(17, 17, 17, 0.6);
    font-size: 16px;
    font-weight: 500;
    line-height: 120%;
}

.articles-carousel__inner {
    position: relative;
    margin: 0px 0px 50px 0px;
}

.articles-carousel__slider .slick-list {
    padding: 0px;
}

.articles-carousel__button {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100%;
    border: none;
    background: #ffffff;
    transform: translateY(-50%);
    transition: 0.3s;
    z-index: 10;
    padding: 0px;
}

.articles-carousel__button:hover {
    opacity: 0.8;
}

.articles-carousel__button .icon {
    width: 16px;
    height: 16px;
    stroke: #111111;
    fill: #111111;
    transition: 0.3s;
}

.articles-carousel__button--prev {
    left: 20px;
}

.articles-carousel__button--prev .icon {
    transform: rotate(180deg);
}

.articles-carousel__button--next {
    right: 20px;
}

.articles-carousel__footer {
    display: flex;
    align-items: center;
    justify-content: center;
}

.articles-carousel__all {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    max-width: 255px;
    width: 100%;
    color: #111111;
    font-size: 18px;
    font-weight: 600;
    line-height: 100%;
    text-decoration: none;
    border-radius: 100px;
    border: 1px solid #111111;
    transition: 0.3s;
    padding: 25px;
}

.articles-carousel__all:hover {
    color: #ffffff;
    background: #111111;
}

.articles-carousel__all .icon {
    width: 15px;
    height: 15px;
    color: #111111;
    fill: #111111;
    transition: 0.3s;
}

.articles-carousel__all:hover .icon {
    color: #ffffff;
    fill: #ffffff;
}

/**/

/* remake this */

.services-section {
    /* max-width: 1100px; */
    /* margin: 0 auto; */
    /* padding: 60px 20px; */
}
.services-section__header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}
.services-section__title {
    font-size: 40px;
    font-weight: 600;
    /* margin: 0 0 10px 0; */
}
.services-section__subtitle {
    font-size: 16px;
    color: rgba(17, 17, 17, 0.6);
    max-width: 450px;
    line-height: 1.2;
    text-align: right;
}
.services-section__grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}
.services-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    text-decoration: none;
    border-radius: 24px;
    overflow: hidden;
    color: #000;
    padding: 40px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: none;
    transition: transform 0.3s ease;
}
.service-icon {
    cursor: pointer;
}
.icon-bg-hover {
    opacity: 0;
    transition: opacity 0.3s ease; 
}
.services-card svg path {
    transition: fill 0.3s ease; 
}
.services-card:hover .icon-bg-hover {
    opacity: 1;
}
.services-card:hover svg path {
    fill: #111111; 
}
.services-card:hover .services-card__title {
    color: #ffffff;
}
.services-card:not(.services-card--dark)::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 209, 85, 0.7) 0%, #F6BE26 100%);
    z-index: 2;
}
.services-card:not(.services-card--dark):hover::after {
    background: #111111;
}
.services-card--dark .services-card__content {
    padding: 30px 40px 30px 0;
}
.services-card--dark .services-card__icon {
    top: 50%;
    right: 40px;
    margin-top: -30px;
}
.services-card__content {
    position: relative;
    inset: auto;
    z-index: 3;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    flex-direction: row;
    background: transparent;
    box-sizing: border-box;
    padding: 0px;
}
.services-card__title {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}
.services-card--dark .services-card__title {
    color: #ffffff;
}
.services-card__icon {
    position: absolute;
    top: 0px;
    right: 0px;
    width: 60px; 
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.services-card:not(.services-card--dark) .services-card__icon {
    color: #fff;
}
.services-card--dark {
    padding: 0;
}
.services-card__icon svg {
    width: 60px;
    height: 60px;
}
.services-card--company {
    background-image: url('company.webp');
}
.services-card--property {
    background-image: url('property.webp');
}
.services-card--management {
    background-image: url('management.webp');
}
.services-card--investment {
    background-image: url('investment.webp');
}
.services-card--flipping {
    background-image: url('flipping.webp');
}
.services-card--dark {
    grid-column: span 3;
    background-color: #1a1a1a;
    color: #fff;
    min-height: 90px;
    align-items: center;
}
.services-card--dark .services-card__content {
    align-items: center;
}
.services-card--dark .services-card__visual {
    z-index: 3;
    display: flex;
    align-items: center;
}
.services-card--dark .services-card__visual img {
    max-width: 159px;
}
.services-card--large { 
    grid-column: span 3;
    aspect-ratio: 16/9;
}
.services-card--medium {
    grid-column: span 2;
    aspect-ratio: 1/1;
}
.promo-banner {
    padding: 100px 0 100px 0;
    overflow: visible;
}
.promo-banner__bg {
    position: relative;
    margin: 0 50px;
    border-radius: 40px;
    padding: 79px 0;
    display: flex;
    align-items: center;
    overflow: visible;
    background: 
        radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.7) 100%), 
        url('city-background.webp'); 
    background-size: cover;
    background-position: center;
}
.promo-banner__image {
    position: absolute;
    bottom: 0px;
    transform: translateY(0%) translateX(-33.33%);
    z-index: 20;
}
.promo-banner__image img {
    width: 455px;
}
.promo-banner__content {
    margin-left: auto;
    width: 70%; 
    color: #ffffff;
}
.promo-banner__title {
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 20px;
}
.promo-banner__text {
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    opacity: 0.8;
    margin-bottom: 30px;
    max-width: 500px;
}
.promo-banner__button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(180deg, #FFD155 0%, #F6BE26 100%);
    color: #111111;
    text-decoration: none;
    padding: 26px 40px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 18px;
    line-height: 1.2;
    transition: 0.3s ease;
}
.promo-banner__button:hover {
    color: #ffffff;
    box-shadow: 0px 2px 24px 0px #FBC94180;
    box-shadow: 0px 4px 4px 0px #FBC73E inset;
}
.promo-banner__button svg {
    transition: transform 0.3s ease;
}
.promo-banner__button:hover svg {
    
}

 @media (max-width: 1550px) {
    .promo-banner__image {
        transform: translateY(0%) translateX(-25.00%);
    }
    .promo-banner__image img {
        width: 400px;
    }
    .promo-banner__bg {
        padding: 65px 0;
    }
}
@media (max-width: 1450px) {
    .promo-banner__image {
        transform: translateY(0%) translateX(-14.00%);
    }
    .promo-banner__image img {
        width: 350px;
    }
    .promo-banner__bg {
    padding: 55px 0;
    }
}
@media (max-width: 1366px) {
    .home__page-header {
        margin: 0px 20px 20px 20px;
    }
    .promo-banner__image {
        transform: translateY(0%) translateX(-5.00%);
    }
    .promo-banner__image img {
        width: 300px;
    }
    .promo-banner__bg {
    padding: 50px 0;
    }
}
@media (max-width: 1285px) {
    .promo-banner__content {
    width: 65%;
    }
    .promo-banner__image {
        transform: translateY(0%) translateX(10.00%);
    }
}
@media (max-width: 1200px) {
    .promo-banner__bg {
        margin: 0 20px; 
    }
    .footer_wrapper {
        margin: 0 20px;
    }
    .footer__info-group {
      grid-template-columns: 1fr 1fr;
    }
    .footer__nav {
      grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 1024px) {
    .services-card--medium { grid-column: span 3; aspect-ratio: 16/9; }
}
@media (max-width: 992px) {
    .promo-banner__container {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .promo-banner__image {
        /*height: 250px;*/
        order: 2; /* Здание внизу на мобилках */
    }

    .promo-banner__image img {
        position: static;
        margin-top: 20px;
    }

    .promo-banner__content {
        padding-left: 0;
        margin-bottom: 30px;
        width: 54%;
    }

    .promo-banner__title {
        font-size: 26px;
    }

    .services-section__title {
        font-size: 36px;
    }
}
@media (max-width: 790px) {
    .promo-banner__content {
      width: 50%;
    }
}

@media (max-width: 768px) {
    .services-section__grid {
        display: block; /* переключаем с grid на block чтобы Swiper работал корректно */
    }
    .services-card--large, .services-card--medium, .services-card--dark {
        aspect-ratio: auto;
        min-height: 220px;
    }
    .services-card--dark {
      min-height: 100px;
    }
    .services-card--dark .services-card__visual img {
      max-width: 119px;
    }
    .services-card__title {
      font-size: 18px;
    }
    .promo-banner__bg {
      align-items: flex-start;
      padding: 40px 20px;
      min-height: 577px;
    }
    .promo-banner__content {
      display: flex;
      flex-direction: column;
      align-items: center;
      width: 100%;
    }
    
    .promo-banner__image {
      transform: none !important;
      display: flex;
      justify-content: center;
      width: 100%;
    }
    .promo-banner__title {
      font-size: 24px;
      text-align: center;
    }
    .promo-banner__text {
      font-size: 16px;
      text-align: center;
    }
}
@media (max-width: 480px) {
    .promo-banner__title {
      font-size: 22px;
    }
    .services-section__title {
        font-size: 28px;
    }
    .services-card--dark .services-card__icon {
        display: none;
    }
}

/**/

@media (max-width: 980px) {

    .home__page-header {
        border-radius: 30px;
        padding: 50px 0px 80px;
    }

    .home__page-header-feature-text span {
        font-size: 18px;
    }

    .home__page-header-feature:first-child .home__page-header-feature-media {
        max-width: 150px;
    }

    .home__page-header-feature:last-child .home__page-header-feature-media {
        max-width: 150px;
    }

}

@media (max-width: 768px) {

    .articles-carousel {
        /* margin: 70px 0px; */
    }
    
    .articles-carousel__header {
        align-items: flex-start;
        flex-direction: column;
        margin: 0px 0px 30px 0px;
    }

    .articles-carousel__title {
        font-size: 32px;
    }

    .articles-carousel__label {
        text-align: left;
    }

    .articles-carousel__label br {
        display: none;
    }

    .articles-carousel__inner {
        margin: 0px 0px 30px 0px;
    }

    .services-section__header {
        gap: 10px;
        align-items: flex-start;
        flex-direction: column;
        margin-bottom: 30px;
    }

    .services-section__subtitle {
        text-align: left;
    }

    .services-section__subtitle br {
        display: none;
    }

    .property-carousel__header {
        gap: 10px;
        align-items: flex-start;
        flex-direction: column;
    }

    .property-carousel__description {
        text-align: left;
    }

    .property-carousel__description br {
        display: none;
    }

    .property-carousel__footer::before {
        display: none;
    }

    .property-catalog__header {
        gap: 20px;
        align-items: flex-start;
        flex-direction: column;
    }

    .property-catalog__description {
        text-align: left;
    }

    .property-catalog__description br {
        display: none;
    }

    .property-catalog__footer {
        align-items: normal;
        flex-direction: column;
    }

    .property-catalog__footer::before {
        display: none;
    }

}

@media (max-width: 680px) {
    .home__page-header-title h1 {
        font-size: 40px;
    }

    .home__page-header-descr {
        font-size: 16px;
    }

    .home__page-header-descr br {
        display: none;
    }

    .home__page-header-features {
        grid-template-columns: 1fr;
    }

    .home__page-header-feature:first-child {
        padding: 27px 45px 27px 30%;
    }
}

@media (max-width: 600px) {
    
    .home__page-header-options {
        margin: 0px auto 40px;
    }
}


@media (max-width: 500px) {

    .articles-carousel__title {
        font-size: 26px;
    }
    
    .home__page-header-title h1 {
        font-size: 30px;
    }

    .home__page-header-title h1 br {
        display: block;
    }

    .home__page-header-option {
        font-size: 12px;
        padding: 14px;
    }

    .home__page-header-feature:first-child {
        padding: 24px 28px 24px 30%;
    }

    .home__page-header-feature:first-child .home__page-header-feature-media {
        max-width: 130px;
    }

    .home__page-header-feature:last-child {
        padding: 24px 28px;
    }

    .home__page-header-feature:last-child .home__page-header-feature-media {
        max-width: 130px;
    }
}


@media (max-width: 500px) {

    .home__page-header-feature-text {
        font-size: 14px;
    }

    .home__page-header-feature-text span {
        font-size: 16px;
    }

    .home__page-header-feature-text > br {
        display: none;
    }

    .home__page-header-feature:last-child {
        padding: 24px 25% 24px 28px;
    }

    .home__page-header-feature:first-child .home__page-header-feature-media {
        left: -12px;
        max-width: 110px;
    }

    .home__page-header-feature:last-child .home__page-header-feature-media {
        max-width: 110px;
    }
}

/* ── services-section swiper nav ───────────────────────────────────────── */

.services-section__nav {
    display: flex;
    gap: 20px;
    align-items: center;
    justify-content: center;
    margin: 20px 0 0 0;
}

.services-section__slider:not(.swiper-initialized) .services-section__nav {
    display: none;
}

.services-section__button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: 40px;
    height: 40px;
    border-radius: 100%;
    background: #111111;
    border: none;
    cursor: pointer;
    transition: 0.3s;
    flex-shrink: 0;
}

.services-section__button:hover {
    background: rgba(17, 17, 17, 0.8);
}

.services-section__button.swiper-button-disabled {
    background: rgba(17, 17, 17, 0.3);
    pointer-events: none;
}

.services-section__button .icon {
    width: 18px;
    height: 18px;
    fill: #ffffff;
    color: #ffffff;
}

.services-section__button--prev .icon {
    transform: rotate(180deg);
}

.services-section__pagination {
    display: flex;
    gap: 5px;
    align-items: center;
    width: auto !important;
}

.services-section__pagination .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    border-radius: 100%;
    background: rgba(17, 17, 17, 0.15);
    opacity: 1;
}

.services-section__pagination .swiper-pagination-bullet-active {
    background: rgba(17, 17, 17, 1);
}

/* Desktop: swiper-wrapper transparent to grid, nav hidden */
@media (min-width: 769px) {
    .services-section__slider .swiper-wrapper {
        display: contents !important;
        transform: none !important;
        transition: none !important;
    }

    .services-section__nav {
        display: none !important;
    }
}

/* Mobile: unify card appearance in carousel */
@media (max-width: 768px) {
    .services-section__slider .swiper-wrapper {
        align-items: stretch;
    }

    .services-section__slider .swiper-slide {
        height: auto;
    }

    .services-section__slider .services-card--large,
    .services-section__slider .services-card--medium,
    .services-section__slider .services-card--dark {
        min-height: 220px;
    }

    .services-section__slider .services-card--dark {
        padding: 24px;
        flex-direction: column;
        justify-content: flex-end;
        align-items: flex-start;
    }

    .services-section__slider .services-card--dark .services-card__content {
        padding: 0;
        align-items: flex-end;
        justify-content: space-between;
    }

    .services-section__slider .services-card--dark .services-card__icon {
        position: static;
        margin-top: 0;
    }

    .services-section__slider .services-card--dark .services-card__visual {
        flex: 1;
        justify-content: flex-start;
        align-items: flex-end;
    }

    .services-section__slider .services-card--dark .services-card__visual img {
        max-width: 140px;
        object-fit: contain;
    }
}

