.flats {
    padding-bottom: 60px;
}
.flats__desc {
    margin-bottom: 30px;
}
.flats__list {
    grid: none/repeat(4, 1fr);
    gap: 30px;
}
.flats__item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 4px;
    padding: 30px 26px 30px 26px;
}
.flats__img-wrap {
    position: relative;
    margin-bottom: 30px;
}
.flats__img {
    height: 180px;
}
.flats__img img {
    margin-left: auto;
    margin-right: auto;
}
.flats__count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--primary-color);
    color: #fff;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 26px;
}
.flats__count var {
    font-size: 30px;
}
.flats__name {
    font-weight: 500;
    margin-bottom: 10px;
}
.flats__name a {
    color: var(--primary-color);
    border-color: var(--primary-color);
}
.flats__name a:hover {
    color: var(--primary-color-active);
    border-color: transparent;
}
.flats__price {
    font-weight: 500;
    margin-bottom: 20px;
}
.flats__text {
    margin-bottom: 20px;
}
.flats__btn {
    width: 127px;
    margin-top: auto;
}
@media screen and (max-width: 1220px) {
	.flats__list {
        grid: none/repeat(2, 1fr);
        gap: 20px;
    }
    .flats__item {
        padding: 20px;
    }
}
@media screen and (max-width: 992px) {
    .flats__img-wrap {
        margin-bottom: 20px;
    }
}
@media screen and (max-width: 680px) {
    .flats__list {
        display: block;
        margin-bottom: -20px;
    }
    .flats__item {
        display: flex;
        margin-bottom: 20px;
    }
    .flats__img-wrap {
        max-width: 100%;
        margin-bottom: 0;
        margin-right: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-bottom: 12px;
    }
    .flats__img {
        width: 180px;
        height: auto;
    }
    .flats__content {
        width: 50%;
    }
}
@media screen and (max-width: 500px) {
    .flats__item {
        flex-direction: column;
    }
    .flats__img-wrap {
        max-width: 100%;
        margin-right: 0;
        margin-bottom: 20px;
    }
}
@media screen and (max-width: 450px) {
	.flats {
		padding-bottom: 50px;
	}
}