
.collections-container .title h2::after {
    content: "";
    position: absolute;
    width: clamp(10px, 24vw, 460px);
    height: clamp(10px, 3vw, 58px);
    background-image: url('../../images/bgImg/2.svg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    margin-left:clamp(-441px, -23vw, -10px);
    margin-top:clamp(5px, 0.5vw, 10px);
    z-index: -1;
}

/* .collections-container .title h2::before{
    content: "";
    width: var(--leaf-size);
    height: var(--leaf-size);
    position:absolute;
    background-image: url('../../images/bgImg/leaf.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: clamp(-115px, -6vw, -10px);
    margin-top: clamp(-13px, -0.7vw, -10px); 
    transform: rotate(-15deg) scaleX(-1);
} */



.collection p{
    font-weight: 300;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;

}
.collection {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 4px solid var(--main-elem-color);
    border-radius: 0.8vw;
    padding: 0 clamp(10px, 1vw, 19px) clamp(5px, 0.5vw, 10px) clamp(10px, 1vw, 19px);
    transition: transform 0.4s ease;
    cursor: pointer;
}

.character {
    width: clamp(10px, 7.5vw, 144px);
    height: clamp(10px, 9vw, 173px);
    transition: transform 0.4s ease !important;
    box-sizing: border-box; /* добавлено для корректного подсчёта размеров */
}


/* .collection:nth-of-type(4)::after{
    content: "";
    width: var(--leaf-size);
    height: var(--leaf-size);
    position:absolute;
    background-image: url('../../images/bgImg/leaf.png');
    background-size: contain;
    background-repeat: no-repeat;
    margin-left: clamp(10px, 11vw, 211px);
    margin-top: clamp(-38px, -2vw, -10px);
    transform: rotate(25deg);

} */


/*анимации*/
.collection-translation {
    position: absolute;
    top: 110%;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease , transform 0.4s ease !important;
    font-size: clamp(10px, 1vw, 20px) !important;

}
.collection-description, .collection-translation{
    transition: transform 0.4s ease !important;/*ЗДЕСЬ*/
 }

.collection:hover .character{
    transform: translateY(-7px);
}
.collection:hover .collection-description{
    margin: 0;
}

.collection:hover .collection-translation {
  opacity: 1;
  transform: translateY(0);
  top: 57%;
}
.collection:hover {
  transform: scale(1.05);
}  




.collections-content{
    display: flex;
    gap: clamp(10px, 1.5vw, 28px);
    margin: clamp(10px, 4vw, 76px) 0  2vw 0; 
    padding: 0.5vw;

}

.collection a{
	color: var(--main-text-color) !important;
}
.collection-description{
    display: flex;
    justify-content: center;
    align-items: center;
    width: clamp(10px, 9vw, 173px);
    height: clamp(10px, 4vw, 76px);
    box-sizing: border-box;
    overflow: hidden;
    text-align: center;
}
.collection-description p{
    display: inline-block;
    word-break: break-word;
    white-space: normal;
}

@media (max-width: 1100px) {
    .character{
        width: 14vw;
        height: 16vw;
        align-items: center;
    }
    
    .collection-description{
        height: 6vw;
        width: 12vw;
    }
    .collection:hover .collection-translation {
        opacity: 1;
        transform: translateY(0);
        top: 62%;
    }
    .collections-container .title h2::after {
        width: 35vw;
        height: clamp(10px, 4vw, 76px);
        margin-left: -33vw;
        margin-top:clamp(5px, 0.5vw, 10px);

    }
}
@media (max-width: 768px) {
    .collections-content{
        width: 85vw;
        flex-wrap: wrap;
        gap:3vw;
        justify-content: center;
    }
    .character{
        width: 24vw;
        height: 28vw;
    }
    .collection{
        border-radius: 5vw;
        padding: 0 5vw 2vw 5vw;
    }
    .collection-description{
        height: 10vw;
        width: 20vw;
    }
    .collections-container .title h2::after {
        width: 72vw;
        height: 4vh;
        margin-left: -70vw;
        margin-top: 1.2vh;
    }
    .collections-container .title h2::before{
        margin-left:-11vw;
        margin-top: -3vw; 
    }
    .collection:nth-of-type(4)::after{
        margin-left: 30vw;
        margin-top: -4vw;
    }
        
}

