/* ===================================
   MOBILE FIXES
   =================================== */

/* 1. Fix Header/Nav on Mobile */
@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 70px; /* Fixed height for mobile header */
        background: rgba(255, 255, 255, 0.95) !important; /* Always solid/readable on mobile */
        padding: 0; /* Reset padding */
        display: flex;
        align-items: center;
        z-index: 9999 !important; /* Ensure it's on top */
    }

    .nav-container {
        width: 100%;
        padding: 0 1.5rem; /* Smaller padding */
        height: 100%;
    }

    .nav-logo a {
        font-size: 1.2rem; /* Smaller logo text */
    }

    /* Fix mobile menu positioning */
    .nav-menu {
        top: 70px; /* Start below the header */
        height: calc(100vh - 70px);
        padding-top: 2rem;
        background: #fff;
    }
}

/* 2. Fix Hero Title "Gold Reserve" (Золото Мраморного моря) */
@media (max-width: 768px) {
    .hero-content {
        padding-top: 100px !important; /* Adjust for fixed header */
        padding-left: 1rem !important;
        padding-right: 1rem !important;
        width: 100%;
    }

    .hero-title {
        font-size: 2.2rem !important; /* Much smaller for mobile */
        line-height: 1.2 !important;
        word-wrap: break-word;
        hyphens: auto;
    }
    
    .hero-title-line {
        display: block;
    }

    .hero-subtitle {
        font-size: 1rem !important;
        margin-top: 1rem;
        padding: 0 1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        padding: 0 2rem;
    }
    
    .hero-cta .btn {
        width: 100%;
        margin-bottom: 0.5rem;
    }
}

/* 3. Fix Layout/Grid Issues */
@media (max-width: 768px) {
    /* General Container */
    .container {
        padding: 0 1.5rem !important;
        width: 100% !important;
    }

    /* Force single column for all grids */
    .about-grid,
    .quality-grid,
    .products-grid,
    .articles-grid,
    .contact-grid,
    .footer-content,
    .process-grid {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
        display: flex !important;
        flex-direction: column;
    }

    /* Fix About Section */
    .about-image {
        height: 250px !important;
        width: 100%;
    }
    
    .about-stats {
        display: grid !important;
        grid-template-columns: 1fr !important; /* Stack stats vertically */
        gap: 1.5rem !important;
    }

    /* Fix Quality Section */
    .quality-item {
        width: 100%;
        margin-bottom: 1rem;
    }

    /* Fix Products Section */
    .product-card {
        width: 100%;
        max-width: 100% !important;
    }
    
    .product-image {
        height: 250px !important;
    }

    /* Fix Process Section */
    .process-step {
        margin-bottom: 2rem !important;
        display: flex !important;
        flex-direction: column;
    }
    
    .process-image {
        height: 200px !important;
        width: 100%;
    }
    
    .process-content {
        padding: 1.5rem !important;
    }

    /* Fix Contact Form */
    .contact-form-wrapper {
        padding: 1.5rem !important;
    }
    
    .product-cards-selector {
        flex-direction: column;
        gap: 1rem;
    }
    
    .product-selector-card {
        width: 100%;
    }
}

/* 4. Fix Footer */
@media (max-width: 768px) {
    .footer {
        padding: 3rem 0 1rem !important;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-links {
        align-items: center;
    }
    
    .footer-social {
        justify-content: center;
    }
}
