/**
 * Стили для страницы о производстве Faretti
 * Соответствуют дизайну главной страницы
 */

/* Стили для hero-секции */
.production-hero {
    background-image: url('images/production/IMG_6836.JPG');
    background-size: 150%;
    background-position: center;
    height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    color: #fff;
    text-align: center;
}

.production-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.production-hero .container {
    position: relative;
    z-index: 2;
}

.production-hero .hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.production-hero h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.production-hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
}

/* Стили для секций с продукцией */
.product-content {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 60px;
    gap: 40px;
}

.product-text {
    flex: 1;
    min-width: 300px;
}

.product-image {
    flex: 1;
    min-width: 300px;
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-image img:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.product-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--secondary-color);
}

.product-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: #555;
}

/* Стили для обратного порядка элементов */
.reverse-order {
    flex-direction: row-reverse;
}

/* Анимации */
.animate-fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s ease forwards;
}

.delay-100 {
    animation-delay: 0.1s;
}

.delay-200 {
    animation-delay: 0.2s;
}

.delay-300 {
    animation-delay: 0.3s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Медиа-запросы */
@media (max-width: 768px) {
    .product-content {
        flex-direction: column;
    }

    .product-text, .product-image {
        width: 100%;
        padding: 0 15px;
        margin-bottom: 30px;
    }

    .reverse-order {
        flex-direction: column;
    }

    .production-hero {
        height: 60vh; /* Уменьшаем высоту для мобильных устройств */
        background-size: cover; /* Используем cover вместо 100% auto для лучшего масштабирования */
        background-position: top center; /* Позиционируем от верхнего края */
        -webkit-background-size: cover; /* Специфичный префикс для Safari */
        -webkit-transform: translateZ(0); /* Включаем аппаратное ускорение для Safari */
    }
    
    .production-hero h1 {
        font-size: 2.5rem;
        margin-top: 60px; /* Добавляем отступ сверху */
    }
    
    /* Исправление для iOS Safari */
    .production-hero::before {
        position: absolute; /* Используем absolute вместо fixed */
        height: 100%; /* Используем 100% вместо фиксированной высоты */
        -webkit-backdrop-filter: blur(0); /* Предотвращаем возможные артефакты в Safari */
    }
}