/* Новый дизайн фильтра категорий */
.categories-filter {
    background: #f9f7f2;
    padding: 2.5rem 0 1rem;
    margin-top: 0;
    position: sticky;
    top: 6rem;
    z-index: 100;
   
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    position: relative;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 1.8rem;
    border: none;
    background: rgba(168, 229, 81, 0.1);
    color: #1F0735;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-family: 'Pontano Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #A8E551, #7FC263);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.filter-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.filter-btn:hover::after {
    width: 80px;
    height: 80px;
}

.filter-btn:hover {
    color: #1F0735;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(168, 229, 81, 0.2);
    background: rgba(168, 229, 81, 0.15);
}

.filter-btn.active {
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 229, 81, 0.3);
}

.filter-btn.active::before {
    opacity: 1;
}

.filter-btn.active::after {
    width: 60px;
    height: 60px;
}


.filter-text {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.filter-btn:hover .filter-icon {
    transform: scale(1.2) rotate(5deg);
}

.filter-btn.active .filter-icon {
    transform: scale(1.3);
    filter: brightness(1.2);
}




/* Анимации для фильтрации */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes slideOutDown {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
}

.brands-portfolio, .product-block, .brewery-block {
    transition: all 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.brands-portfolio.show, .product-block.show, .brewery-block.show {
    animation: slideInUp 0.6s ease both;
}

.brands-portfolio.hide, .product-block.hide, .brewery-block.hide {
    animation: slideOutDown 0.4s ease both;
}

/* Адаптивность нового фильтра */
@media (max-width: 1200px) {
    .categories-filter {
        top: 5rem;
        padding: 0.3rem 0 0.5rem;
    }
    
    .filter-buttons {
        gap: 0.4rem;
    }
    
    .filter-btn {
        padding: 0.8rem 1.2rem;
        font-size: 0.95rem;
        flex: 1;
        min-width: 130px;
        justify-content: center;
    }
    
    .filter-icon {
        font-size: 1.1rem;
    }
    
    .bottle-hint-new {
        position: relative;
        left: auto;
        top: auto;
        transform: none;
        margin: 0 auto 2rem;
        justify-content: center;
        max-width: 250px;
    }
    
    .hint-content p {
        font-size: 0.85rem;
    }
}


   


/* ===== АДАПТИВ ДЛЯ ПОЛУЭКРАНА И ПЛАНШЕТОВ ===== */

 
@media (max-width: 1200px) {
    .container, .container-lapochka {
        max-width: 90%;
        margin: 60px auto;
    }
    
    /* Хедер */
    header {
        height: 5rem;
        padding: 0 1rem;
    }
    
    header .logo img {
        width: 7rem;
        padding-left: 2rem;
    }
    
    nav ul {
        gap: 2.5rem;
    }
    
    .header-button {
        right: 2rem;
    }
    
    .header-button .button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    /* Блок Lapochka */
    .portfolio-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .bottles-grid {
        width: 100%;
        gap: 40px;
    }
    
    .bottle-row {
        justify-content: center;
        gap: 12px;
    }
    
    .bottle-item {
        width: 85px;
        height: 150px;
    }
    
    .portfolio-info {
        width: 100%;
        text-align: center;
    }
    
    .top-section {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .brand-logo {
        width: 180px;
    }
    
    .orange-text {
        font-size: 28px;
        text-align: center;
    }
    
    .brand-description {
        font-size: 18px;
        margin-top: 30px;
    }
    
    .brand-description p {
        margin: 35px 0;
    }
    
    
   /* Подсказка с курсором */
.bottle-hint {
    position: relative;
    margin: 0 auto 30px;
    top: auto;
    right: auto;
    transform: none;
    text-align: center;
}

.hint-text {
    font-size: 14px;
    margin-bottom: 5px;
}

.hint-arrow {
    font-size: 30px;
    transform: rotate(90deg); /* Поворачиваем стрелку на 90 градусов вниз */
    margin-right: 0;
    display: block;
}

/* Обновляем анимацию для движения вниз */
@keyframes bounceDown {
    0%, 20%, 50%, 80%, 100% {transform: rotate(90deg) translateX(0);}
    40% {transform: rotate(90deg) translateX(8px);} /* Движение вверх */
    60% {transform: rotate(90deg) translateX(4px);} /* Движение вверх */
}

.hint-arrow {
    animation: bounceDown 2s infinite;
}
 .product-logo img {
        width: 180px;
        margin: 40px auto 35px;
    }
    
    .product-content {
        gap: 30px;
        margin-bottom: 35px;
    }
    
    .product-image-left img {
        max-height: 350px;
    }
    
    .subtitle {
        font-size: 20px;
        padding-left: 35px;
    }
    
    .ingredient-item img {
        width: 110px;
        height: 110px;
    }
    
    .ingredient-caption {
        font-size: 18px;
    }

    .middle-items {
        gap: 50px;
    }
    
    .bottom-text {
        font-size: 18px;
        margin: 50px auto 0;
    }
    
    /* Блок орехов */
    .nuts-logo img {
        width: 220px;
    }
    
    .nuts-main-content {
        gap: 40px;
        margin-bottom: 35px;
    }
    
    .nuts-image img {
        max-height: 300px;
    }
    
    .nuts-subtitle {
        font-size: 1.4rem;
        padding-top: 30px;
    }
    
    .nuts-small-image img {
        width: 120px;
        height: 100px;
    }
    
    .nuts-gallery {
        gap: 20px;
        margin-top: 35px;
    }
    
     .nut-card {
        height: 300px;
    }
    
    /* Блок семечек */
    .seeds-logo img {
        width: 220px;
        margin-bottom: 25px;
    }
    
    .seeds-main-content {
        gap: 40px;
        margin-bottom: 50px;
    }
    
    .seeds-image img {
        max-height: 450px;
    }
    
    .seeds-subtitle {
        font-size: 1.4rem;
        padding-top: 50px;
    }

 .brewery-block {
        padding: 35px;
    }
    
    .brewery-logo img {
        width: 220px;
        margin-bottom: 35px;
    }
    
    .beer-gallery img {
        height: 270px;
    }
    
    .brewery-description {
        margin-top: 35px;
    }
    
    .brewery-description p {
        font-size: 20px;
    }
    
    /* Партнеры */
    .partners-section {
        padding: 35px 20px;
    }


    footer .logo img {
        width: 7rem;
        padding-left: 50px;
    }
    
    footer nav ul {
        gap: 2rem;
       margin-left: 70px;
    }

   footer .social-icons a img {
    width: 1.8rem; 
    height: 1.8rem;
}
}

