.P-section-helpful-links {
    margin-top: 124px;
}

.P-section-helpful-links .title {
    font-weight: 700;
    font-size: 32px;
    line-height: 120%;
    letter-spacing: 0.04em;
    color: #000000;
    margin-bottom: 40px;
}

.P-section-helpful-links .wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    grid-gap: 24px;
}

/*.P-section-helpful-links .double {*/
/*    display: flex;*/
/*    border-radius: 12px;*/
/*    overflow: hidden;*/
/*}*/

.P-section-helpful-links .compilation {
    display: flex;
    flex-direction: column;
    background-color: #3D81DA;
    padding: 24px;
    border-radius: 12px;
}

.P-section-helpful-links .compilation .title {
    font-weight: 700;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #FFFFFF;
    margin-bottom: 12px;
}

.P-section-helpful-links .compilation .description {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.P-section-helpful-links .compilation .helpful-btn {
    width: 100%;
    margin-top: auto;
}

.P-section-helpful-links .compilation .icon-mob {
    display: none;
}

.P-section-helpful-links .choose-flats {
    background-color: #fff;
    padding: 24px;
    padding-bottom: 19px;
    border-radius: 12px;
}

.P-section-helpful-links .choose-flats .title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.4;
    letter-spacing: 0.02em;
    color: #000000;
    margin-bottom: 15px;
}

.P-section-helpful-links .choose-flats .list-item {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    margin-bottom: 6px;

    font-weight: 400;
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.04em;
}

.P-section-helpful-links .choose-flats .list-item:last-child {
    margin-bottom: 0;
}

.P-section-helpful-links .choose-flats .list-item .link {
    color: #0047B0;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.P-section-helpful-links .choose-flats .list-item .link:hover {
    color: #0047B0;
    opacity: 1;
}

.P-section-helpful-links .choose-flats .list-item .count-offers {
    color: #000000;
    opacity: 0.6;
}

.P-section-helpful-links .to-map {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    background-size: cover;
    background: url(/images/small-map.jpg) no-repeat center;
    border-radius: 12px;

    height: 240px;
}

.P-section-helpful-links .to-map .title {
    font-weight: 700;
    font-size: 20px;
    line-height: 1;
    letter-spacing: 0.02em;
    color: #000000;
    margin-bottom: 16px;
}

.P-section-helpful-links .to-map .subtitle {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
    color: #20313B;
    margin-bottom: 24px;
}

.P-section-helpful-links .to-map .link {
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    text-align: center;
    letter-spacing: 0.04em;
    color: #FFFFFF;
}

.P-section-helpful-links .to-map .link .home-map-btn {
    padding: 15px 20px;
}

.P-section-helpful-links .to-map .link .icon.location {
    font-size: 16px;
    background-color: #FFFFFF;
    margin-right: 10px;
}

/*.P-section-helpful-links .to-flats {*/
/*    display: grid;*/
/*    grid-template-columns: 1fr 1fr 1fr;*/
/*    grid-column-gap: 24px;*/
/*    width: 100%;*/
/*    grid-column: span 3;*/
/*}*/

.P-section-helpful-links  .to-flat-card {
    display: flex;
    flex-direction: column;

    background: #FFFFFF;
    border-radius: 12px;
    padding: 24px;
    cursor: pointer;

    transition: box-shadow 0.2s ease;
}

.P-section-helpful-links  .to-flat-card:hover {
    box-shadow: 0px 4px 32px rgba(0, 0, 0, 0.12);
}

.P-section-helpful-links  .to-flat-card .title {
    font-weight: 500;
    font-size: 20px;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: #000000;
    margin: 0 0 12px;
    max-width: 80%;
}

.P-section-helpful-links  .to-flat-card .description {
    font-weight: 400;
    font-size: 16px;
    line-height: 1.5;
    color: #000000;
    opacity: 0.6;
    /*margin-bottom: 20px;*/
    max-width: 80%;
}

.P-section-helpful-links  .to-flat-card .btn {
    width: 100%;
    margin-top: auto;
}

.P-section-helpful-links .to-flat-card .icon-mob {
    display: none;
}

@media screen and (max-width: 1500px) {
    .P-section-helpful-links {
        margin-top: 80px;
    }

    .P-section-helpful-links .title {
        font-size: 28px;
        line-height: 1;
        margin-bottom: 32px;
    }

    .P-section-helpful-links .wrapper {
        grid-gap: 16px;
    }

    .P-section-helpful-links .compilation {
        padding: 20px;
    }

    .P-section-helpful-links .compilation .title {
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
    }

    .P-section-helpful-links .compilation .description {
        font-size: 14px;
        line-height: 1.57;
    }

    .P-section-helpful-links .choose-flats {
        padding: 20px 20px 15px;
    }

    .P-section-helpful-links .choose-flats .title {
        font-size: 16px;
        line-height: 1.57;
        margin-bottom: 11px;
    }

    .P-section-helpful-links .choose-flats .list-item {
        font-size: 14px;
    }

    .P-section-helpful-links .to-map {
        height: 214px;
    }

    .P-section-helpful-links .to-map .title {
        font-size: 16px;
        line-height: 1.5;
        letter-spacing: 0.04em;
        margin-bottom: 8px;
    }

    .P-section-helpful-links .to-map .subtitle {
        font-size: 14px;
        line-height: 1.57;
    }

    .P-section-helpful-links .to-flat-card {
        padding: 20px;
        min-height: 210px;
    }

    .P-section-helpful-links .to-flat-card .title {
        font-weight: 500;
        font-size: 16px;
        line-height: 1.5;
        max-width: 70%;
    }

    .P-section-helpful-links .to-flat-card .description {
        font-size: 14px;
        line-height: 1.57;

        max-width: 70%;
    }
}

@media screen and (max-width: 1150px) {
    .P-section-helpful-links {
        margin-top: 60px;
    }

    .P-section-helpful-links .title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .P-section-helpful-links .wrapper {
        display: flex;
        flex-wrap: wrap;
        grid-gap: 16px;
    }

    .P-section-helpful-links .compilation {
        width: calc(50% - 8px);
        order: 1;
    }

    .P-section-helpful-links .compilation .title br {
        display: none;
    }

    .P-section-helpful-links .choose-flats {
        width: calc(50% - 8px);
        order: 2;
    }

    .P-section-helpful-links .to-flats {
        order: 3;
        grid-column-gap: 16px;
    }

    .P-section-helpful-links  .to-flat-card {
        min-height: 224px;
        order: 3;
        width: calc(33.33% - 11px);
    }

    .P-section-helpful-links  .to-flat-card .title {
        max-width: 100%;
    }

    .P-section-helpful-links  .to-flat-card .description {
        max-width: 90%;
    }

    .P-section-helpful-links .to-map {
        order: 4;
        width: 100%;
        height: 248px;
        background-size: cover;
    }

    .P-section-helpful-links .to-map .title {
        line-height: 1;
        margin-bottom: 16px;
    }
}

@media screen and (max-width: 850px) {
    .P-section-helpful-links {
        margin-top: 40px;
    }

    .P-section-helpful-links .title {
        font-size: 24px;
        margin-bottom: 28px;
    }

    .P-section-helpful-links .wrapper {
        display: flex;
        flex-wrap: wrap;

        grid-gap: 16px;
    }

    .P-section-helpful-links .compilation {
        width: calc(50% - 8px);
        padding: 16px;
        order: 1;
    }

    .P-section-helpful-links .compilation .title {
        font-size: 14px;
        line-height: 1.57;
    }

    .P-section-helpful-links .compilation .icon-mob {
        display: inline-block;
        margin-top: auto;
        width: 40px;
        height: 40px;
    }

    .P-section-helpful-links .compilation .title br,
    .P-section-helpful-links .compilation .description,
    .P-section-helpful-links .compilation .helpful-btn {
        display: none;
    }

    .P-section-helpful-links .choose-flats {
        width: 100%;
        order: 3;
        padding: 16px 16px 11px;
    }

    .P-section-helpful-links .choose-flats .title {
        font-size: 14px;
    }

    .P-section-helpful-links .to-flat-card {
        min-height: 140px;
        order: 3;
        width: calc(50% - 8px);
        padding: 16px;
    }

    .P-section-helpful-links .to-flat-card.card-mortgage {
        order: 2;
        width: calc(50% - 8px);
    }

    .P-section-helpful-links .to-flat-card .title {
        font-size: 14px;
        line-height: 1.57;
        max-width: 100%;
    }

    .P-section-helpful-links .to-flat-card .description,
    .P-section-helpful-links .to-flat-card .btn {
       display: none;
    }

    .P-section-helpful-links .to-flat-card .icon-mob {
       display: inline-block;
        width: 40px;
        height: 40px;
        margin-top: auto;
    }

    .P-section-helpful-links .to-map {
        order: 4;
        height: 246px;
        padding-left: 15px;
        padding-right: 15px;
    }
}