.shapka{
    width: 100%;
    display: flex;
    justify-content: center;
}
.hover-effect-scale {
    list-style:none;
    margin: 0 auto;
    width: 100%;
    text-align: center;
    padding: 0;
}
.preview{
    width:100vw; 
    object-fit: cover; 
}
@media screen and (min-width: 320px) and (max-width: 481px) {
    .preview{
        margin-top: 18%;
    }
}
.hover-effect-scale li {
    position: relative;
    display: inline-block;
    background-color: #fff;
    margin: 0;
    box-shadow: 1px 3px 1px 0 rgba(0, 0, 0, 0.08);
    overflow: hidden;
    width: 100%;
    height: 80vw;
}
@media screen and (min-width: 320px) and (max-width:480px) {
    .hover-effect-scale li {
        height: 80vw;
    }
}
@media screen and (min-width: 480px) and (max-width:960px) {
    .hover-effect-scale li {
        height: 60vw;
    }
}
@media screen and (min-width: 960px) and (max-width:1920px) {
    .hover-effect-scale li {
        height: 60vw;
    }
}
/* Заголовок, текст и ссылка */
.hover-effect-scale li p{
    color: #fff;
    margin: 5px;
}
.shapka-text h1{
    text-align:left; 
    padding-left:40%; 
    font-size: 2vw; 
    margin-top: 6%;
}
@media screen and (min-width: 320px) and (max-width:480px) {
    .shapka-text h1{
        text-align:left; 
        font-size: 2vw; 
        margin-top: 20%;
    }
}
.shapka-text img{
    width: calc(100%/4); 
    position: absolute; 
    margin-left: 15%; 
    margin-top: 4%;
}
@media screen and (min-width: 320px) and (max-width:480px) {
    .shapka-text img{
        margin-left: 13%; 
        margin-top: 17%;
    }
}
.hover-effect-scale li a {
    display: block;
    text-decoration: none;
    padding: 30px;
    color: #fff;
    background: #000;
    border-radius: 5px;
    margin: 0 auto;
    transition: all 0.4s ease-in-out;
    font-size: 30px;
}
.hover-effect-scale li a:hover {
    background: #454545;
    color: #fff;
}
/* Выезжающий блок с текстом */ 
.hover-effect-scale li > div {
    width: 100%;
    height: 100%;
    position: absolute;
    display: flex;
    justify-content: center;
    flex-direction: column;
}
.hover-effect-scale li:hover > div {
    position: absolute;
    overflow: hidden;
    top: 0;
    left: 0;
}
.hover-effect-scale li div {
    opacity: 0;
    background-color: rgba(0, 0, 0, 0.35); /* Фон блока при наведении */
    transition: all 0.4s ease-in-out;
    color: #fff;
}
.hover-effect-scale li img {
    transition: all 0.2s linear;
}
.hover-effect-scale li:hover img {
    transform: scale(1.3);
}
.hover-effect-scale li:hover div {
    opacity: 1;
}