/*НОВИНКИ*/

.novelty{
    display: flex;
    justify-content: space-between;
}

.novelty-block{
    width: 380px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 40px;
    gap: 60px;
    transition: opacity 0.5s ease, transform 0.5s ease;  /* Плавный переход */
}

.text-novelty{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: 380px;
}

.text-novelty button{
    max-width: 150px;
}

.novelty-img{
    width: 380px;
    height: 380px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.novelty-img img{
    height: auto;
    width: 100%;
    object-fit: cover;
}

.novelty-reverse{
    flex-direction: column-reverse;
    animation: slideUp 1.6s forwards; /* Анимация при добавлении класса */
}

@keyframes slideUp {
    0%{
        opacity: 0;
        transform: translateY(120px);
    }
    60% {
        opacity: 0.5;
        transform: translateY(0); /* Начальная позиция - сдвинут вниз */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Конечная позиция - на своем месте */
    }
}

.noveltyAnim{
    animation: noveltyOpacity 0.6s forwards; /* Анимация при удалении класса */
}

.novelty-block:not(.novelty-reverse) {
    animation: slideDown 1.6s forwards; /* Анимация при удалении класса */
}

@keyframes slideDown {
    0% {
        opacity: 0.3;
        transform: translateY(-120px); /* Конечная позиция - сдвинут вниз */
    }
    60% {
        opacity: 0.5;
        transform: translateY(0); /* Начальная позиция - на своем месте */
    }
    100% {
        opacity: 1;
        transform: translateY(0); /* Конечная позиция - сдвинут вниз */
    }
}
