* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pontano Sans', sans-serif;
    background-color: #f9f7f2;
    color: #1F0735;
    font-size: 1rem; /* Базовый размер шрифта */
}

header {
    position: fixed;
    height: 6.25rem; /* 100px */
    top: 0;
    left: 0;
    width: 100%;
    background-color: #A8E551;
    display: flex;
    align-items: center;
    font-family: Poppins, sans-serif;
    padding: 0 2.5rem; /* 40px */
    z-index: 15;
}

header .logo {
    position: absolute;
}

header .logo a {
    display: inline-block; /* Чтобы ссылка правильно оборачивала изображение */
}

header .logo img {
    width: 15.625rem; /* 250px */
    padding-left: 9.375rem; /* 150px */
    z-index: 10;
}

nav {
    width: 100%;
    display: flex;
    justify-content: center;
}

nav ul {
    list-style-type: none;
    display: flex;
    gap: 7rem; /* 50px */
    padding: 0;
    margin: 0;
}

nav ul li {
    display: inline-block;
}

nav ul li a {
    text-decoration: none;
    color: #1F0735;
    font-size: 1rem; /* 16px */
}

nav ul li a.active {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.25rem; /* 4px */
    text-decoration-color: #1F0735;
}

.header-button {
    position: absolute;
    right: 5rem; /* 40px */
}

.header-button .button {
    display: inline-block;
    padding: 0.625rem 1.25rem; /* 10px 20px */
    background-color: #7EB033;
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 1rem; /* 4px */
    font-size: 1rem;
    transition: background-color 0.3s;
}

.header-button .button:hover {
     background: #6DAF50;
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
 

.brands-portfolio {
    background-color: #f9f7f2;
    }
    
    .container {
        max-width: 1400px;
        margin: 0 auto;
        
    }
    
    
    .brands-portfolio-section {
       margin-top: 100px;
        background-color: #f9f7f2;
    }
    .section-title {
        font-family: 'Pontano Sans', sans-serif;
        font-size: 2.2rem;
        text-align: center;
       
        color: #1F0735;
        text-transform: uppercase;
        letter-spacing: 2px;
    }

    .container-lapochka {
        max-width: 1400px;
        margin: 100px auto;
        position: relative;
    }
    
    .portfolio-content {
        display: flex;
        gap: 150px;
        align-items: center;
    }

    .bottle-hint {
    position: absolute;
    margin-right: 40vw; /* Изменил на margin-right */
    top: 10%;
    right: 0; /* Добавил right: 0 для позиционирования справа */
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 10;
}

.hint-text {
    font-family: 'Pontano Sans', sans-serif;
    font-size: 16px;
    color: #F07800;
    margin-bottom: 5px;
    white-space: nowrap;
}

.hint-arrow {
    font-size: 40px;
    margin-right: -35px; /* Изменил на margin-right */
    color: #F07800;
    animation: bounceRight 2s infinite; /* Новая анимация */
    transform: scaleX(-1); /* Переворачиваем стрелку по горизонтали */
}

@keyframes bounceRight {
    0%, 20%, 50%, 80%, 100% {transform: scaleX(-1) translateX(0);}
    40% {transform: scaleX(-1) translateX(-10px);} /* Отрицательное значение */
    60% {transform: scaleX(-1) translateX(-5px);} /* Отрицательное значение */
}
    
    .bottles-grid {
        flex: 1.5;
        display: flex;
        flex-direction: column;
        gap: 80px;
    }
    
    .bottle-row {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    
    .bottle-item {
        width: 120px;
        height: 220px;
        position: relative;
        transition: all 0.3s ease;
    }
    
    .bottle-item img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        filter: drop-shadow(0 5px 10px rgba(0,0,0,0.2));
        transition: all 0.3s ease;
    }
    
    .bottle-composition {
        position: absolute;
        bottom: -50px;
        left: 0;
        width: 100%;
        padding: 10px;
        background: #FFDBCE;
        color: #1F0735;
        font-size: 0.9rem;
        text-align: center;
        border-radius: 5px;
        opacity: 0;
        transition: all 0.3s ease;
    }
    
    .bottle-item:hover {
        z-index: 10;
    }
    
    .bottle-item:hover img {
        transform: scale(1.1);
    }
    
    .bottle-item:hover .bottle-composition {
        opacity: 1;
        bottom: -60px;
    }
    
 /* Обновленный стиль для правой части */
.portfolio-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-self: flex-start; /* Выравниваем по верху */
    margin-top: 0; /* Убираем отступ сверху */
    padding-top: 0; /* Убираем внутренний отступ */
}

.top-section {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: 0;
}

.brand-logo {
    width: 250px;
    height: auto;
    margin-top: 0;
}

.orange-text {
    color: #F07800;
    font-size: 42px;
    line-height: 1.2; /* Улучшаем межстрочный интервал */
    margin-top: 0;
    padding-top: 0;
}


.brand-description {
    font-size: 24px;
    line-height: 1.5;
    margin-top: 40px; /* Добавляем отступ только сверху */
}

.brand-description p {
    margin: 70px 0;
}



.product-block {
    max-width: 1200px;
    margin: 0 auto;
    font-family: 'Pontano Sans', sans-serif;
    color: #1F0735;
}

.product-logo img {
    width: 200px;
    display: block;
    margin: 50px auto 40px;
}

.product-content {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.product-image-left {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image-left img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
}

.product-info-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-logo-section {
    display: flex;
    align-items: center;
    gap: 20px;
}

.product-logo-small {
    width: 80px;
    height: auto;
}



.subtitle {
    font-size: 24px;
    padding-left: 50px;
    line-height: 1.4;
    margin: 0;
    color: #551D12;
}

/* Пирамида из ингредиентов */
.ingredients-pyramid {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 30px;
}

.pyramid-row {
    display: flex;
    justify-content: center;
}

.top-item {
    margin-bottom: -20px;
}

.middle-items {
    gap: 60px;
}

.ingredient-item {
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    margin: 10px;
}

.ingredient-item img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.ingredient-caption {
    font-size: 20px;
    color: #551D12;
    margin-top: 10px;
    font-weight: bold;
    position: relative;
}

.bottom-text {
    font-size: 24px;
    line-height: 1.6;
    color: #551D12;
    max-width: 1000px;
    margin: 60px auto 0;
    text-align: justify;
}

.bottom-text p {
    margin: 15px 0;
}

strong {
    font-weight: bold;
}

/* Анимации и эффекты */


@keyframes tilt {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}



.rotate {
    transition: transform 0.5s;
}

.rotate:hover {
    animation: rotate 2s linear infinite;
}

.pack-tilt {
    animation: tilt 3s ease-in-out infinite;
}

.ingredient-hover {
    transition: all 0.3s ease;
}

.ingredient-hover:hover {
    transform: translateY(-10px) scale(1.1);
}

.pulse {
    animation: pulse 2s infinite;
}

/* Блок орехов */
.nuts-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0px 20px;
    font-family: 'Pontano Sans', sans-serif;
    color: #1F0735;
}
.nuts-logo img {
    width: 250px;
    display: block;
    margin:  0 auto;
}

.nuts-main-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 40px;
}

.nuts-image {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nuts-image img {
    max-width: 100%;
    height: auto;
    max-height: 400px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.nuts-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 25px;
}


.nuts-subtitle {
    font-size: 1.5rem;
    line-height: 1.3;
    color: #551D12;
    padding-top: 40px;
    padding-bottom: 10px;
}

/* Контейнер для двух картинок под текстом ВНУТРИ правой колонки */
.nuts-images-row {
    display: flex;
    justify-content: flex-start; /* Выравнивание по левому краю */
    gap: 15px; /* Меньшее расстояние между картинками */
    align-items: center; /* Выравнивание по вертикали с текстом */
}

.nuts-small-image {
    flex: 0 0 auto; /* Не растягивать, размер по содержимому */
    text-align: center;
}

.nuts-small-image img {
    width: 120px; /* Фиксированный размер */
    height: 90px;
    max-width: none; /* Убираем ограничение */
    transition: all 0.3s ease;
    object-fit: contain; /* Чтобы изображения не искажались */
}

.nuts-small-image img:hover {
    transform: scale(1.05);
}



/* Обновленная галерея карточек орехов */
.nuts-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.nut-card {
    background: #C79F6C;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 400px; /* Фиксированная высота для прямоугольника */
}

.nut-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Верхняя часть и фото ореха */
.nut-card-top {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px; /* Одинаковые отступы со всех сторон */
    
}

.nut-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}



/* Нижняя часть с логотипом и текстом */
.nut-card-bottom {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /* Контент в самом низу */
    min-height: 70px; /* Фиксированная высота нижней части */
}

/* Блок с логотипом */
.nut-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
}

.brand-logo-nuts {
    width: 100px;
    height: 70px;
    object-fit: contain;
    padding-top: 20px;
}

/* Описание под логотипом */
.nut-description {
    text-align: center;
}

.nut-description p {
    font-size: 1.2rem;
    line-height: 1.7;
    color: #1F0735;
    margin: 0;
    font-weight: 500;
}


 /* Блок семечек */
.seeds-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    font-family: 'Pontano Sans', sans-serif;
    color: #1F0735;
}

.seeds-logo img {
    width: 250px;
    display: block;
    margin: 0 auto 30px;
}

.seeds-main-content {
    display: flex;
    gap: 60px;
    align-items: flex-start;
    margin-bottom: 60px;
}

.seeds-image {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.seeds-image img {
    max-width: 100%;
    height: auto;
    max-height: 500px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.seeds-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
}

.seeds-subtitle {
    font-size: 1.5rem;
    line-height: 1.4;
    color: #551D12;
    margin: 0;
    padding-top: 60px;
    text-align: left;
}



.brewery-block {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    font-family: 'Pontano Sans', sans-serif;
    color: #1F0735;
    text-align: center;
}

.brewery-logo img {
    width: 250px;
    display: block;
    margin: 0 auto 40px;
}

.beer-gallery {
    display: flex;
    width: 100%;
    margin: 0;
    padding: 0;
}

.beer-gallery img {
    width: 16.6666%; /* Равные доли для 6 фото */
    height: 400px;
    display: block;
    object-fit: cover;
    margin: 0;
    padding: 0;
    border: none;
}



.brewery-description {
    max-width: 1000px;
    margin: 40px auto 0;
    text-align: justify;
}



.brewery-description p {
    font-size: 24px;
    line-height: 1.6;
    margin: 15px 0;
}

.samara-brewery .brewery-logo img {
width: 170px;
    display: block;
    margin: 0 auto 40px;
}

.samara-brewery .beer-gallery img {
    width: 16.6666%;
    height: 600px; /* Увеличенная высота 600px */
    display: block;
    object-fit: cover;
    object-position: center;
}

@media (max-width: 1200px) {
    .samara-brewery .beer-gallery img {
        height: 400px;
    }
}




/* Анимации и эффекты */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.logo-pulse {
    animation: pulse 2s infinite;
}

    
    .partners-section {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 2.2rem;
    color: #1F0735;
        text-transform: uppercase;
        letter-spacing: 2px;
    padding: 40px 20px;
    text-align: center;
    font-family: 'Pontano Sans', sans-serif;
}

.partners-title {
    font-size: 32px;
    color: #1F0735;
    margin-bottom: 40px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    justify-items: center;
    align-items: center;
}

.partner-logo {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
   
}

.partner-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}



footer {
    background-color: #7FC263;
    height: 14rem; /* 250px */
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: Poppins, sans-serif;
    margin-top: auto; /* Прижимает футер к низу */
}

footer .logo img {
    width: 18.75rem; /* 300px */
    padding-left: 11.875rem; /* 190px */
}

footer nav {
    justify-content: center;
}

footer nav ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    gap: 6.25rem; /* 100px */
}

footer nav ul li {
    display: inline-block;
}

footer nav ul li a {
    text-decoration: none;
    color: #fff;
    font-size: 1rem; /* 16px */
    font-family: Poppins, sans-serif;
}

footer .social-icons {
    display: flex;
    justify-content: flex-end;
    gap: 1.25rem; /* 20px */
    padding-right: 11.875rem; /* 190px */
}

footer .social-icons a img {
    width: 2.5rem; /* 40px */
    height: auto;
}

footer .social-icons a:hover img {
    transform: scale(1.1);
}

/* Скрываем мобильное меню на десктопе */
.mobile-menu-btn,
.mobile-menu {
    display: none;
}

/* Скрываем слайдер на десктопе */
.bottles-slider {
    display: none;
}

/* Слайдер партнеров */
.partners-slider {
    display: none; /* Скрываем на десктопе */
}