/* Responsive Styles */

/* Large Devices (1200px and down) */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }
}

/* Medium Devices (992px and down) */
@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.6rem;
    }
    
    h3 {
        font-size: 1.3rem;
    }
    
    .hero {
        padding: 3rem 0;
    }
    
    .hero-content {
        flex-direction: column;
    }
    
    .hero-image, .hero-text {
        flex: 1 1 100%;
    }
    
    .hero-text {
        text-align: center;
    }
}

/* Small Devices (768px and down) */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
    }
    
    section {
        padding: 2.5rem 0;
    }
    
    h1 {
        font-size: 1.8rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .product-card, .opinion-blocks {
        flex-direction: column;
    }
    
    .product-image, .product-info {
        flex: 1 1 100%;
    }
    
    .product-info {
        padding: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
    
    .final-cta {
        padding: 3rem 0;
    }
    
    .final-cta h2 {
        font-size: 1.7rem;
    }
}

/* Extra Small Devices (576px and down) */
@media (max-width: 576px) {
    h1 {
        font-size: 1.6rem;
    }
    
    .hero {
        padding: 2rem 0;
    }
    
    .cta-button {
        display: block;
        width: 100%;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table th, .comparison-table td {
        padding: 0.8rem;
        font-size: 0.9rem;
    }
    
    .opinion-block {
        padding: 1.2rem;
    }
    
    .faq-item {
        padding: 1.2rem;
    }
    
    .faq-item h3 {
        font-size: 1.2rem;
    }
}

/* Animation for buttons */
@media (min-width: 768px) {
    .cta-button {
        position: relative;
        overflow: hidden;
    }
    
    .cta-button::after {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: 0.5s;
    }
    
    .cta-button:hover::after {
        left: 100%;
    }
}

/* Custom animations for elements on scroll */
@media (min-width: 768px) {
    .product-card, .testimonial, .gallery-item, .opinion-block {
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    
    .product-card:hover, .testimonial:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
    }
}

/* Improved readability on very small screens */
@media (max-width: 360px) {
    body {
        font-size: 15px;
    }
    
    h1 {
        font-size: 1.5rem;
    }
    
    h2 {
        font-size: 1.3rem;
    }
    
    h3 {
        font-size: 1.1rem;
    }
    
    .product-features li, .comparison-table th, .comparison-table td, .faq-item p {
        font-size: 0.85rem;
    }
}