.works-block {
    background: var(--background);
}
.works-block .wrapper {
    display: flex;
    flex-direction: column;
}
.works-block .title {
    display: flex;
    justify-content: center;
    text-align: center;
}
.works-block .work-item {
    display: flex;
    flex-direction: column;
    position: relative;
    height: auto;
    gap: 20px;
    cursor: pointer;
}
.works-block .work-item .work-item__photo {
    display: flex;
    position: relative;
    height: 490px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
}
.works-block .work-item .work-item__photo:not(:first-child) {
    position: absolute;
    top: 0;
    left: 0;
    z-index: -1;
}
.works-block .work-item .work-item__photo img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    transform: scale(1);
    transition: all 0.7s;
}
.works-block .work-item:hover .work-item__photo img {
    transform: scale(1.2);
    transition: all 0.7s;
}
.works-block .work-item .work-item__photo .img-filter {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--head-primary);
    opacity: 0;
    z-index: 1;
    transition: all 0.3s;
}
.works-block .work-item:hover .work-item__photo .img-filter {
    opacity: 0.6;
}
.works-block .work-item .count {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: var(--head-secondary);
    opacity: 0;
    z-index: 2;
    transition: all 0.3s;
}
.works-block .work-item:hover .count {
    opacity: 1;
}

.works-block .work-item .text-wrap {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.works-block .work-item .text-wrap .chars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.works-block .work-item .text-wrap .chars .char {
    display: inline;
    align-items: center;
    gap: 5px;
}
.works-block .work-item .text-wrap .chars .char__name,
.works-block .work-item .text-wrap .chars .char__value {
    display: inline;
}
.works-block .work-item .text-wrap .chars .char__value {
    color: var(--head-primary);
}

@media (max-width: 1400px) {
    .works-block .work-item .work-item__photo {
        height: 380px;
    }
}
@media (max-width: 992px) {
    .works-block .work-item .work-item__photo {
        height: 300px;
    }
}
