<div class="order">
</div>
.order {
background-image: url("../images/order.jpg");
width: 100%;
height: 30vh;
background-repeat: no-repeat;
background-size: cover;
background-color: rgba(0, 0, 0, 0.85);
}
но background-color: rgba(0, 0, 0, 0.85); не затемняет картинку
.order {
filter: brightness(0.7);
}
.order {
position: relative;
}
.order::after {
position: absolute;
width: 100%;
height: 100%;
content: "";
top: 0;
left: 0;
right: 0;
bottom: 0;
background: rgb(16 16 16 / 76%);
}
.order {
background: linear-gradient(
to top,
rgb(20 22 23 / 77%),
rgb(20 22 23 / 77%) 100%
),
url("../images/order.jpg");
}