/* Professional homepage styles */
.container {
    max-width: 1600px !important;
}

/* Предотвращение горизонтальной прокрутки */
section,
.hero,
.container {
    max-width: 100vw;
    overflow-x: hidden;
}

img, video, iframe, svg {
    max-width: 100%;
    height: auto;
}

/* Hover effects for feature cards */
.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1) !important;
}

/* Hover effects for category cards */
a[style*="background: #f8f9fa"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.1) !important;
}

/* Hover effects for brand cards */
div[style*="background: white; border-radius: 12px"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1) !important;
}

/* Button hover effects */
.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

a[style*="background: #007aff"]:hover {
    background: #0056cc !important;
    transform: translateY(-1px);
}

a[style*="border: 1px solid #007aff"]:hover {
    background: rgba(0, 122, 255, 0.05) !important;
}

/* Responsive design */
@media (min-width: 1600px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    
    div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: repeat(6, 1fr) !important;
    }
}

@media (max-width: 1024px) {
    .hero-content[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
    }
    
    section > .container > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 60px !important;
    }
    
    /* Fix для 5-колоночного grid брендов на планшетах */
    div[style*="grid-template-columns: repeat(5, 1fr)"] {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 16px !important;
    }
    
    .hero-title {
        font-size: 2.5rem !important;
    }
    
    .section-title {
        font-size: 2rem !important;
    }
}

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 !important;
    }
    
    section {
        padding: 60px 0 !important;
    }
    
    .hero-title {
        font-size: 2rem !important;
    }
    
    .hero-subtitle {
        font-size: 1.125rem !important;
    }
    
    .section-title {
        font-size: 1.75rem !important;
    }
    
    .hero-actions {
        flex-direction: column !important;
        align-items: center;
    }
    
    .hero-actions a {
        width: 100%;
        max-width: 280px;
        justify-content: center !important;
    }
    
    div[style*="grid-template-columns: repeat(auto-fit, minmax(280px, 1fr))"] {
        grid-template-columns: 1fr !important;
        gap: 24px !important;
    }
    
    div[style*="grid-template-columns: repeat(auto-fit, minmax(250px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }
    
    div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 16px !important;
    }
    
    /* Fix для 5-колоночного grid брендов */
    div[style*="grid-template-columns: repeat(5, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    /* Fix для 4-колоночного grid */
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
    
    /* Fix для 2-колоночного grid */
    div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
    }
    
    .feature-card {
        padding: 24px !important;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 40px 0 !important;
    }
    
    section {
        padding: 40px 0 !important;
    }
    
    .hero-title {
        font-size: 1.75rem !important;
    }
    
    .hero-subtitle {
        font-size: 1rem !important;
    }
    
    .section-title {
        font-size: 1.5rem !important;
    }
    
    div[style*="grid-template-columns: repeat(auto-fit, minmax(200px, 1fr))"] {
        grid-template-columns: 1fr !important;
    }
    
    /* Fix для 5-колоночного grid брендов на маленьких экранах */
    div[style*="grid-template-columns: repeat(5, 1fr)"] {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    /* Fix для 4-колоночного grid на маленьких экранах */
    div[style*="grid-template-columns: repeat(4, 1fr)"] {
        grid-template-columns: 1fr 1fr !important;
        gap: 6px !important;
    }
    
    div[style*="padding: 24px"] {
        padding: 20px !important;
    }
    
    div[style*="gap: 100px"] {
        gap: 40px !important;
    }
    
    div[style*="gap: 64px"] {
        gap: 40px !important;
    }
    
    .feature-icon {
        width: 56px !important;
        height: 56px !important;
    }
    
    .feature-icon svg {
        width: 28px !important;
        height: 28px !important;
    }
}
