body{
    overflow-x: hidden; /* отключает горизонтальный скролл */
}

/*БАННЕР*/

.banner-slider{
    margin: 80px 0;
    height: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/*АКЦИИ*/
.stock,
.season,
.infoblock,
.high_rating{
    margin: 80px 0;
}

/*НОВИНКИ*/

.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); /* Конечная позиция - сдвинут вниз */
    }
}

/*СЕЗОННЫЕ ТОВАРЫ*/

.season .title-section{
    margin: 0 160px 60px;
}

#slider_top_rated .slider-container{
    background-image: url('/images/season_back.png');
    background-repeat: no-repeat;
    background-size: cover;
    height: 700px;
}

#slider_top_rated .slider-container


/* Анимация увеличения */


.categories-container{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
	width: 100%;
}





/*ИНФОРМАЦИЯ О КОМПАНИИ*/

.infoblock{
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.info{
    display: flex;
    justify-content: space-between;
    margin: 0 0 0 160px;
    
}

.info-left{
    margin: 0 160px 0 0;
    
}

.infoline {
    position: relative;
    width: 70%; /* Ширина блока */
    padding: 0 160px 0 20px;
    display: flex;
    align-items: center;
    background-color: var(--colorLightGray); /* Цвет фона блока */
    opacity: 0; /* Начальное состояние невидимо */
    transform: translateX(100%); /* Начальное положение для анимации */
    animation: slideIn 3s forwards; /* Анимация */
}

.infoline::before {
    content: '';
    position: absolute;
    top: 0;
    left: -70px; /* Сдвинуть границу влево */
    
    width: 100%;
    height: 100%;
    background-color: var(--colorLightGray); /* Цвет фона блока */
    transform: skewX(-40deg); /* Скошенная граница */
    z-index: -1; /* Поместить за текстом */
}

.infoline_red{
    position: relative;
    width: 80%; /* Ширина блока */
    opacity: 0; /* Начальное состояние невидимо */
    padding: 0 160px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: translateX(-100%); /* Начальное положение для красного блока */
    animation: slideIn 3s forwards; /* Анимация */
}

.infoline_red::before {
    content: '';
    position: absolute;
    top: 0;
    left: -70px; /* Сдвинуть границу влево */
    width: 100%;
    height: 100%;
    background-color: var(--colorRed); /* Цвет фона блока */
    transform: skewX(-40deg); /* Скошенная граница */
    z-index: -1; /* Поместить за текстом */
}

.text_info{
    font-size: 40px;
    text-align: center;
    color: var(--colorRed);
    font-family: 'NotoSans-Bold';
}

.infographic{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.infographic img{
    height: 100px;
}

@keyframes slideIn {
    to {
        opacity: 1; /* Появление текста */
        transform: translateX(0); /* Конечное положение */
    }
}

/*С ВЫСОКИМ РЕЙТИНГОМ*/

.high_rating{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.high_rating_goods{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}


.high_rating-slider{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    overflow: hidden;
}


.rating_goods {
    display: flex;
    gap: 40px; /* Расстояние между карточками */
    transition: transform 1.5s ease;
}

.hidden {
    display: none;
}


.product-info2{
    width: 100%;
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 230px;
}

/*НОВОСТИ*/
/*
.latest-news {
    display: flex;
    margin: 100px 160px 160px 0;
    justify-content: space-between;
    align-items: center;
}

.latest-news-block{
    display: flex;
    justify-content: space-between;
    gap: 80px;
    width: 100%;
}

.news-substrate{
    position: absolute;
    background-color: var(--colorLightGray);
    width: 100%;
    height: 410px;
    margin-top: 170px;
    z-index: -1;
}

.decor-news{
    position: absolute;
    height: 92%;  
}

.news-slider {
    position: relative;
    max-width: 700px;
    overflow: hidden;
}

.slider-content {
    display: flex;
    justify-content: space-between;
    margin: 0 160px 0 0;
    transition: transform 0.5s ease; 
    width: 700px;
}

.slide {
    height: 460px;
    width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    flex-shrink: 0; /* Не сжимать слайды *//*
}


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

.news-content{
    display: none;
    flex-direction: column;
    gap: 40px;
}

.news-content-active{
    display: flex;  
}

.news-description {
    max-width: 800px; 
    height: 460px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.news-title-text{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    height: 290px;
}

.bottom-line{
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.indicators{
    display: flex;
    justify-content: space-between;
    width: 200px;
}

.indicators .rhombus,
.indicators-banner .rhombus{
    background-color: var(--colorWhite);
}

.indicators .rhombus:hover,
.indicators-banner .rhombus:hover{
    background-color: var(--colorRed);
}

.news-indicators .indicate,
.indicators-banner .indicate{
    background-color: var(--colorRed);
}

.button-news svg:hover path{
    fill: var(--colorLightGray);
    transition: 0.4s;
}


/*ОТЗЫВЫ*/
.reviews{
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 80px;
    padding: 40px 0;
}

.review{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 40px;
    text-align: center;
    width: 450px;
    height: 340px;
    gap: 20px;
    border: 1px solid var(--colorRed);  
}

.center-review{
    transform: scale(1.18);
}

/*ПАРТНЁРЫ*/
.partners{ 
    margin: 80px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.partners-lines{
    width: 100%;
    perspective: 1000px; /* Устанавливаем перспективу для 3D эффекта */
}





.button-partners svg path{
    fill: var(--colorLightGray);
}

.button-partners svg:hover path{
    fill: var(--colorRed);
    transition: 0.8s;
}

/*МЕДИА*/
@media screen and (max-width: 1600px) {
    .banner-slider {
        margin: 60px 0;
        height: 470px;
        width: 100%;
    }

    /*АКЦИИ*/
    .stock,
    .season,
    .infoblock{
        margin: 60px 0;
    }


	/*НОВИНКИ*/
    .novelty-block{
        width: 320px;
        padding: 0 30px;
        gap: 40px;
    }

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

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

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

    .category{
        width: 140px;
        height: 140px;
        margin: 40px;
    }

    .category img{
        min-height: 100px;
        max-width: 100px;
        object-fit: cover;
    }

    /*ИНФОРМАЦИЯ О КОМПАНИИ*/

    .infoblock{
        display: flex;
        flex-direction: column;
        gap: 60px;
    }

    .info{
        display: flex;
        justify-content: space-between;
        margin: 0 0 0 120px;
        
    }
    
    .info-left{
        margin: 0 120px 0 0;
        
    }

    .infoline {
        width: 800px; /* Ширина блока */
        padding: 0 120px 0 20px;
    }

    .infoline_red{
        width: 900px; /* Ширина блока */
        padding: 0 120px;
    }

    .latest-news {
        display: flex;
        margin: 100px 120px 120px 0;
        justify-content: space-between;
        align-items: center;
    }

    .slider-content {
        display: flex;
        justify-content: space-between;
        gap: 60px;

    }

    .latest-news-block{
        display: flex;
        justify-content: space-between;
        gap: 60px;
        width: 100%;
    }

    /*ОТЗЫВЫ*/
    .reviews{
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 60px;
        padding: 30px 0;
    }

    /*ПАРТНЁРЫ*/
    .partners{ 
        margin: 60px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

}

@media screen and (max-width: 1300px) {
    
    .banner-slider {
        height: 380px;
        width: 100%;
    }

	.stock,
    .season,
    .infoblock{
        margin: 40px 0;
    }
}

@media screen and (max-width: 1000px) {
	.stock,
    .season,
    .infoblock{
        margin: 30px 0;
    }
}

@media screen and (max-width: 660px) {
	.stock,
    .season,
    .infoblock{
        margin: 20px 0;
    }

}

@media screen and (max-width: 480px) {
	.stock,
    .season,
    .infoblock{
        margin: 16px 0;
    }
}