* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Raleway', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.section {
    padding: 3rem 0;
    border-bottom: 1px solid #eaeaea;
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-align: center;
}

#about p {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.feature-text {
    font-weight: 500;
}

.warning {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 1rem;
    margin: 1.5rem 0;
    border-radius: 0 8px 8px 0;
    color: #856404;
}

.download-container {
    text-align: center;
    margin: 2rem 0;
}

.download-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: bold;
    margin: 1rem 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.download-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.download-count {
    font-size: 1.1rem;
    margin-top: 1rem;
    color: #666;
}

.screenshot-gallery {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.screenshot-gallery::-webkit-scrollbar {
    display: none;
}

/* Адаптация для мобильных устройств */
@media (max-width: 768px) {
    .screenshot-gallery {
        flex-direction: column;
        align-items: center;
    }
    
    .screenshot-item {
        min-width: 80%;
        max-width: 80%;
    }
}

.screenshot-item {
    min-width: 300px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.screenshot-item:hover {
    transform: scale(1.05);
}

.screenshot-item.zoomed {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.0);
    z-index: 1000 !important;
    max-width: 90vw;
    max-height: 90vh;
    cursor: zoom-out;
}

/* Убираем конфликты с другими элементами */
.section {
    z-index: auto;
}

.zoomed {
    z-index: 1000 !important;
}

footer {
    text-align: center;
    padding: 2rem 0;
    background-color: #2c3e50;
    color: white;
    margin-top: 2rem;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .section h2 {
        font-size: 1.5rem;
    }
    
    .screenshot-gallery {
        flex-direction: column;
        align-items: center;
    }
    
    .screenshot-gallery img {
        min-width: 80%;
    }
}
