.wrapper {
    max-width: 1190px;
    padding: 0 15px;
    margin: 0 auto;
}
.main {
    background-color: var(--main-light);
}
.filter {
    background-color: var(--main-dark);
    color: var(--accent);
    padding: 35px 0;
}
.filter__wrapper {
    max-width: 1190px;
    padding: 0 15px;
    margin: 0 auto;
}
.filter__list {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.filter__link {
    display: block;
    padding-left: 33px;
    position: relative;
    font-weight: 400;
    font-size: 16px;
    line-height: 21px;
}
.filter__item > .filter__link:before {
    position: absolute;
    content: "";
    background-repeat: no-repeat;
    top: calc(50% - 11px);
    height: 23px;
    left: 0;
}
.filter__item:first-child > .filter__link:before {
    width: 23px;
    background-image: url("../icons/services-1.png");
}
.filter__item:nth-child(2) > .filter__link:before {
    width: 22px;
    background-image: url("../icons/services-2.png");
}
.filter__item:nth-child(3) > .filter__link:before {
    width: 23px;
    background-image: url("../icons/services-3.png");
}
.filter__item:nth-child(4) > .filter__link:before {
    width: 12px;
    background-image: url("../icons/services-4.png");
    left: 5px;
}
.filter__item:nth-child(5) > .filter__link:before {
    width: 22px;
    background-image: url("../icons/services-5.png");
}
.filter__item:nth-child(6) > .filter__link:before {
    width: 23px;
    background-image: url("../icons/services-6.png");
}
.popular {
    padding-top: 85px;
}
.block__title {
    text-align: center;
    margin-bottom: 80px;
}
.block__list {
    display: grid;
    grid-template-columns: repeat(3, 360px);
    gap: 40px;
}
.block__item {
    padding: 33px 49px;
    background-color: var(--main-light);
    border: 1px solid rgba(18, 18, 18, 0.2);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.4s ease;
}

.block__item:hover {
    box-shadow: 0px 0px 30px #dedede;
}

.block__item a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}
.block__item-img {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    margin-bottom: 30px;
}
.block__item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.block__item-title {
    display: block;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 23px;
    min-height: 40px;
}
.block__item-descr {
    color: #565656;
    line-height: 22px;
    padding-bottom: 10px;
}
.block__item-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(18, 18, 18, 0.2);
    display: flex;
    align-items: center;
    margin: auto 0 0;
    justify-content: space-between;
}
.block__item-price {
    font-size: 12px;
    font-weight: 300;
}
.block__item-price .value {
    font-size: 24px;
    display: block;
}
.block__item-btn {
    padding: 11px 23px;
    position: relative;
    z-index: 2;
}
.rooms,
.objects,
.control-panel {
    padding: 85px 0;
}
.etc {
    padding-bottom: 80px;
}
@media screen and (max-width: 1200px) {
    .filter__link {
        padding-left: 35px;
    }
    .block__list {
        gap: 30px;
        grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
        justify-content: center;
    }
    .block__item {
        padding: 33px;
    }
}
@media screen and (max-width: 991px) {
    .block__list {
        grid-template: 1fr / repeat(2, 1fr);
    }
    .block__item-img {
        height: 130px;
    }
    .block__item-img img {
        height: 100%;
    }
    .block__item {
        grid-template: 160px 45px 1fr 50px / 1fr;
    }
    .block__item-title {
        margin-bottom: 5px;
    }
    .filter {
        padding-top: 120px;
    }
    .filter__item:not(:last-child) {
        margin-right: 15px;
    }
    .block__title {
        margin-bottom: 40px;
    }
}
@media screen and (max-width: 767px) {
    .block__list {
        grid-template: 1fr / 500px;
    }
    .block__item {
        grid-template: 140px 45px 1fr 50px / 1fr;
    }
    .block__item-price .value {
        font-size: 20px;
    }
    .filter {
        padding-bottom: 20px;
    }
    .filter__list {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    .filter__item {
        width: 30%;
    }
    .filter__item:not(:nth-child(4)),
    .filter__item:not(:nth-child(5)) {
        margin-bottom: 15px;
    }
    .popular {
        padding: 70px 0;
    }
    .block__title {
        margin-bottom: 30px;
    }
    .block__item-img {
        height: 110px;
    }
}
@media screen and (max-width: 650px) {
    .block__list {
        grid-template: 1fr / 1fr;
    }
}
@media screen and (max-width: 500px) {
    .filter {
        padding: 100px 0 10px;
    }
    .filter__item {
        width: 40%;
    }
    .filter__item:nth-child(4) {
        position: static;
    }
    .filter__item:nth-child(5) {
        position: static;
    }
    .filte__list {
        justify-content: space-between;
    }
}
@media screen and (max-width: 415px) {
    .block__item-btn {
        padding: 8px 18px;
    }
    .block__item-descr {
        line-height: 18px;
    }
    .block__item {
        padding: 25px;
    }
    .block__item-img {
        height: 105px;
    }
}
@media screen and (max-width: 374px) {
    .block__item-img {
        height: 95px;
    }
    .block__item {
        grid-template: 125px 45px 1fr 50px / 1fr;
    }
}
