/* ===== МОБИЛЬНАЯ ВЕРСИЯ 360px ===== */
@media (max-width: 430px) {
    
    /* Базовые настройки */
    body {
        padding-top: 110px !important; /* Хедер + фильтры */
        overflow-x: hidden;
        transition: transform 0.3s ease;
        margin: 0;
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    /* Хедер */
    header {
        height: 60px;
        padding: 0 15px;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: #A8E551;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    header .logo {
        position: static;
        order: 2;
        flex-grow: 1;
        text-align: center;
    }
    
    header .logo img {
        width: 60px;
        padding-left: 0;
        padding-right: 10px;
        margin: 0 auto;
    }
    
    /* Скрываем десктопное меню на мобильных */
    nav:not(.mobile-nav),
    .header-button {
        display: none;
    }
    
    /* Кнопка меню */
    .mobile-menu-btn {
        display: block;
        background: none;
        border: none;
        color: #F07800;
        font-size: 24px;
        cursor: pointer;
        order: 1;
        z-index: 1002;
        transition: transform 0.3s ease;
        padding: 5px;
    }

    .mobile-menu-btn:hover {
        transform: scale(1.1);
    }

    /* Затемнение фона */
    .menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(31, 7, 53, 0.7);
        z-index: 1001;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .menu-overlay.active {
        display: block;
        opacity: 1;
    }

    /* Мобильное меню - справа */
    .mobile-menu {
        display: none;
        position: fixed;
        top: 0;
        right: -100%;
        width: 200px;
        height: 100%;
        background-color: #A8E551;
        z-index: 1002;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.2);
        overflow-y: auto;
    }

    .mobile-menu.active {
        display: block;
        right: 0;
    }

    /* Крестик закрытия справа */
    .menu-close {
        position: absolute;
        top: 15px;
        right: 15px;
        background: none;
        border: none;
        color: #f9f7f2;
        font-size: 20px;
        cursor: pointer;
        z-index: 1003;
        transition: all 0.3s ease;
        padding: 5px;
    }

    .menu-close:hover {
        color: #F07800;
        transform: scale(1.1);
    }

    .mobile-nav ul {
        list-style: none;
        padding: 0;
        margin: 70px 0 0 0;
        display: flex;
        flex-direction: column;
        padding-left: 0;
    }

    .mobile-nav ul li {
        width: 100%;
        text-align: left;
        margin-bottom: 0;
    }

    .mobile-nav ul li a {
        display: block;
        color: #f9f7f2;
        text-decoration: none;
        font-size: 14px;
        padding: 0px 70px 0px 0px;
        transition: all 0.3s ease;
        font-weight: 500;
        border-bottom: none;
        line-height: 0.3;
        text-align: left;
        margin-left: 0;
    }

    .mobile-nav ul li a:hover {
        color: #F07800;
        text-decoration: none;
    }

    .mobile-nav ul li a.active {
        color: #F07800;
        font-weight: 700;
        text-decoration: none;
    }

    /* Иконка инстаграма */
    .mobile-instagram {
        display: flex;
        justify-content: left;
        margin-top: -20px;
        margin-left: 30px;
    }

    .mobile-instagram a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
        transition: all 0.3s ease;
       
    }

    .mobile-instagram a:hover {
        background: #F07800;
        transform: scale(1.1);
    }

    .mobile-instagram img {
        width: 20px;
        height: 20px;
        filter: brightness(0) invert(1);
    }

    /* Кнопка стать партнером - более округлая */
    .mobile-partner {
        display: block;
        background: transparent;
        color: #f9f7f2 !important;
        border: 2px solid #f9f7f2;
        border-radius: 20px;
        margin: 50px 10px;
        margin-left: 30px;
        font-weight: 500;
        text-align: center;
        padding: 10px 10px !important;
        transition: all 0.3s ease;
        text-transform: none;
        width: calc(100% - 70px); /* Сужаем ширину кнопки */
        font-size: 12px;
        text-decoration: none;
    }

    .mobile-partner:hover {
        background: #f9f7f2;
        color: #1F0735 !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(249, 247, 242, 0.3);
    }
    
    /* Адаптация остального контента для 360px */
  
      
       /* ===== МОБИЛЬНАЯ ВЕРСИЯ ФИЛЬТРА ===== */

    .categories-filter {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background: #f9f7f2;
        z-index: 999;
        padding: 0;
        margin: 0;
    }

    .categories-filter .container {
        padding: 0;
        margin: 0;
        width: 100%;
        max-width: 100%;
    }

    .filter-buttons {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        padding: 10px 15px;
        -webkit-overflow-scrolling: trasparent;
        scrollbar-width: none;
        min-height: 50px;
        align-items: center;
        margin: 0;
        background: #f9f7f2;
    }

    .filter-buttons::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        min-width: 70px;
        padding: 8px 12px;
        font-size: 12px;
        white-space: nowrap;
        border-radius: 15px;
        background: rgba(255, 255, 255, 0.3);
        border: 1px solid rgba(255, 255, 255, 0.5);
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
        text-align: center;
        line-height: 1.2;
        margin: 0;
    }

    .filter-btn.active {
        color: #f9f7f2;
        font-weight: 600;
    }

    .filter-btn:hover {
        transform: translateY(-1px);
    }

    .filter-btn.active:hover {
        transform: translateY(-1px);
    }

    /* Отступ для контента под фильтром */
    

/* Все блоки без отступов */
.brands-portfolio,
.product-block,
.brewery-block,
.seeds-block,
.nuts-block {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
    

    /* Скрываем ненужные элементы */
    .brands-portfolio-section,
    .bottle-hint, .brand-description {
        display: none;
    }
    .top-section {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 0px 15px 0;
        margin-bottom: 5px;
    }
    
    .top-section .brand-logo {
        max-width: 120px;
        height: auto;
        margin-bottom: 5px;
    }
    
    .top-section .orange-text {
        font-size: 16px;
        line-height: 1.3;
        color: #F07800;
        margin: 0;
    }
    
    .top-section .orange-text p {
        margin: 0;
    }
    
    .top-section .orange-text strong {
        font-size: 18px;
        font-weight: 700;
        line-height: 1.2;
    }
     /* Скрываем десктопную сетку баночек */
    .bottles-grid {
        display: none;
    }
    
    /* Показываем слайдер */
    .bottles-slider {
        display: block;
        width: 100%;
        margin: 0 0 10px 0;
        position: relative;
    }
    
    .slider-container {
        overflow: hidden;
        width: 100%;
        margin: 0 auto;
    }
    
    .slider-track {
        display: flex;
        transition: transform 0.4s ease;
        gap: 0;
    }
    
    .slider-slide {
        flex: 0 0 100%;
        text-align: center;
        padding: 10px 10px;
    }
    
    .slider-slide img {
        width: 80px;
        height: auto;
        margin: 0 auto 15px;
        transition: transform 0.3s ease;
    }
    
    .slider-slide.active img {
        transform: scale(1.05);
    }
    
    /* Информация о вкусе */
    .slide-info {
        padding: 0 10px;
    }
    
    .slide-name {
        font-weight: 700;
        color: #1F0735;
        font-size: 16px;
        margin-bottom: 8px;
    }
    
    .slide-composition {
        font-size: 13px;
        line-height: 1.2;
        color: #666;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .slider-slide.active .slide-composition {
        max-height: 100px;
    }
    
    /* Навигация */
    .slider-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 10px;
    }
    
    .slider-arrow {
        background: #A8E551;
        border: none;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        font-size: 20px;
        color: #1F0735;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .slider-arrow:active {
        background: #F07800;
        transform: scale(0.95);
    }
    
    .slider-dots {
        display: flex;
        gap: 7px;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #ccc;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .slider-dot.active {
        background: #F07800;
        transform: scale(1.2);
    }
    
     /* Блок Smoki */
    .product-block[data-category="snacks"] {
        padding: 0px 15px;
        text-align: center;
        background: #f9f7f2;
        margin-top: 0;
    }
    
    /* Логотип - делаем видимым и увеличиваем */
    .product-block[data-category="snacks"] .product-logo {
        display: block !important;
    }
    
    .product-block[data-category="snacks"] .product-logo img {
        max-width: 120px;
        height: auto;
        display: block !important;
        margin: 0 auto;
    }
    
    /* Скрываем только ненужные элементы, но не логотип */
    .product-block[data-category="snacks"] .product-content,
    .product-block[data-category="snacks"] .product-image-left,
    .product-block[data-category="snacks"] .product-info-right,
    .product-block[data-category="snacks"] .main-logo-section,
    .product-block[data-category="snacks"] .ingredients-pyramid,
    .product-block[data-category="snacks"] .pyramid-row,
    .product-block[data-category="snacks"] .ingredient-item,
    .product-block[data-category="snacks"] .pack-tilt,
    .product-block[data-category="snacks"] .ingredient-hover,
    .product-block[data-category="snacks"] .pulse,
    .product-block[data-category="snacks"] .bottom-text,
    .smoki-pack-mobile 
     {
        display: none;
    }
    
    /* Убираем анимацию с логотипа но оставляем видимым */
    .product-block[data-category="snacks"] .logo-pulse {
        animation: none;
    }
    
    /* Фото пачки */
    .smoki-pack-mobile {
        display: block;
        text-align: center;
        margin: 20px 0;
    }
    
    .smoki-pack-mobile img {
        max-width: 180px;
        height: auto;
    }
    
    /* Текст под фото */
    .smoki-text-mobile {
        margin: 20px 0;
        padding: 0 10px;
        margin-left: -30px;
    }
    
    .smoki-text-mobile .subtitle {
        font-size: 14px;
        line-height: 1.2;
        color: #1F0735;
        margin: 0;
        font-weight: 500;
    }
    
    .smoki-text-mobile .subtitle strong {
       
        font-weight: 700;
    }
    
    /* Блок орехов Forjoy */
    /* Блок орехов Forjoy */
.product-block.nuts-block {
    padding: 20px 15px;
    text-align: center;
    background: #f9f7f2;
}

/* Скрываем все ненужные элементы */
.product-block.nuts-block .nuts-main-content,
.product-block.nuts-block .nuts-gallery,
.product-block.nuts-block .nut-card,
.product-block.nuts-block .nuts-images-row,
.product-block.nuts-block .pulse {
    display: none !important;
}

/* Логотип - убираем анимацию */
.product-block.nuts-block .nuts-logo {
    display: block !important;
    margin-bottom: 15px; /* Уменьшаем отступ */
}

.product-block.nuts-block .nuts-logo img {
    max-width: 120px;
    height: auto;
    margin: 0 auto;
    animation: none !important; /* Убираем пульсацию */
}

/* Фото упаковки */
.nuts-pack-mobile {
    display: block;
    text-align: center;
    margin: 15px 0; /* Уменьшаем отступ */
}

.nuts-pack-mobile img {
    max-width: 180px;
    height: auto;
}

/* Текст под фото */
.nuts-text-mobile {
    margin: 15px 0 10px 0; /* Уменьшаем отступы, особенно снизу */
    padding: 0 10px;
    margin-left: -35px;
}

.nuts-text-mobile .subtitle {
    font-size: 14px;
    line-height: 1.2;
    color: #1F0735;
    margin: 0 0 5px 0; /* Минимальный отступ снизу */
    font-weight: 500;
}

.nuts-text-mobile .subtitle strong {
    font-weight: 700;
}

/* Два фото без соли и без масла - поднимаем выше */
.nuts-icons-mobile {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 5px 0 0 0; /* Убираем отступ сверху, поднимаем к тексту */
}

.nuts-icon-item {
    text-align: center;
}

.nuts-icon-item img {
    width: 70px;
    height: 70px;
    margin-bottom: 8px;
}
    
   /* Блок семечек Дикий Лори */
.product-block.seeds-block {
    padding: 20px 15px;
    text-align: center;
    background: #f9f7f2;
}

/* Скрываем все ненужные элементы */
.product-block.seeds-block .seeds-main-content,
.product-block.seeds-block .pulse {
    display: none !important;
}

/* Логотип */
.product-block.seeds-block .seeds-logo {
    display: block !important;
    margin-bottom: 15px;
}

.product-block.seeds-block .seeds-logo img {
    max-width: 120px;
    height: auto;
    margin: 0 auto;
    animation: none !important;
}

/* Фото упаковки */
.seeds-pack-mobile {
    display: block;
    text-align: center;
    margin: 15px 0;
}

.seeds-pack-mobile img {
    max-width: 180px;
    height: auto;
}

/* Текст под фото */
.seeds-text-mobile {
    margin: 15px 0;
    padding: 0 10px;
    margin-left: -30px;
}

.seeds-text-mobile .subtitle {
    font-size: 14px;
    line-height: 1.3;
    color: #1F0735;
    margin: 0;
    font-weight: 500;
}

.seeds-text-mobile .subtitle strong {
    font-weight: 700;
   
} 
  
/* Блок пивоварни Ostrovica */
.brewery-block {
    padding: 20px 15px;
    text-align: center;
    background: #f9f7f2;
}

/* Скрываем все ненужные элементы */
.brewery-block .beer-gallery,
.brewery-block .pulse, .brewery-description {
    display: none !important;
}

/* Логотип */
.brewery-block .brewery-logo {
    display: block !important;
    margin-bottom: 15px;
}

.brewery-block .brewery-logo img {
    max-width: 150px;
    height: auto;
    margin: 0 auto;
    animation: none !important;
}

/* Одно фото пива */
.brewery-beer-mobile {
    display: block;
    text-align: center;
    margin: 15px 0;
}

.brewery-beer-mobile img {
    max-width: 120px;
    height: auto;
}

/* Текст под фото */
.brewery-text-mobile {
    margin: 15px 0;
    padding: 0 10px;
}

.brewery-text-mobile .description {
    font-size: 14px;
    line-height: 1.2;
    color: #1F0735;
    margin: 0;
}

.brewery-text-mobile .description strong {
    font-weight: 700;
}

.samara-brewery .brewery-logo img {
        max-width: 150px;
        height: auto;
        margin: 0 auto;
    }
    
    /* Стили для мобильного фото пива */
    .samara-brewery .brewery-beer-mobile {
        display: block;
        text-align: center;
        margin: 15px 0;
    }
    
    .samara-brewery .brewery-beer-mobile img {
        max-width: 120px;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    }
    
    /* Стили для текста под фото */
    .samara-brewery .brewery-text-mobile {
        margin: 15px 0;
        padding: 0 10px;
        text-align: center;
    }
    
    .samara-brewery .brewery-text-mobile .description {
        font-size: 14px;
        line-height: 1.3;
        color: #1F0735;
        margin: 0;
    }
    
    


/* Скрываем старую галерею партнеров */
    .partners-section .partners-grid {
        display: none;
    }
    
    /* Показываем слайдер партнеров */
    .partners-slider {
        display: block;
        width: 100%;
        margin: 30px 0;
        position: relative;
    }
    
    .partners-title {
        text-align: center;
        font-size: 18px;
        color: #1F0735;
        margin-bottom: 20px;
        font-weight: 700;
    }
    
    .partners-slider-container {
        overflow: hidden;
        width: 100%;
        margin: 0 auto;
    }
    
    .partners-slider-track {
        display: flex;
        transition: transform 0.4s ease;
        gap: 0;
    }
    
    .partners-slide {
        flex: 0 0 100%;
        text-align: center;
        padding: 10px;
    }
    
    .partners-slide img {
        max-width: 200px;
        max-height: 80px;
        width: auto;
        height: auto;
        margin: 0 auto;
        object-fit: contain;
    }
    
    /* Навигация */
    .partners-slider-nav {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 20px;
        margin-top: 15px;
    }
    
    .partners-slider-arrow {
        background: #A8E551;
        border: none;
        width: 35px;
        height: 35px;
        border-radius: 50%;
        font-size: 18px;
        color: #1F0735;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .partners-slider-arrow:active {
        background: #F07800;
        transform: scale(0.95);
    }
    
    .partners-slider-dots {
        display: flex;
        gap: 6px;
    }
    
    .partners-slider-dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #ccc;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .partners-slider-dot.active {
        background: #F07800;
        transform: scale(1.2);
    }

    /* Скрываем футер в мобильной версии */
    footer {
        display: none !important;
    }

}

@media (min-width: 431px) {
    /* Мобильное меню */
    .mobile-menu-btn,
    .menu-overlay,
    .mobile-menu {
        display: none !important;
    }
    
    /* Мобильные слайдеры */
    .bottles-slider,
    .partners-slider {
        display: none !important;
    }
    
    /* Мобильные версии блоков */
    .smoki-pack-mobile,
    .smoki-text-mobile,
    .nuts-pack-mobile,
    .nuts-text-mobile,
    .nuts-icons-mobile,
    .seeds-pack-mobile,
    .seeds-text-mobile,
    .brewery-beer-mobile,
    .brewery-text-mobile {
        display: none !important;
    }
}