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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header - зменшено на половину */
header {
    padding: 30px 0;
    text-align: center;
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.8) 0%, rgba(30, 30, 30, 0.6) 100%);
    border-radius: 24px;
    margin: 20px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.header-subtitle {
    font-size: 1rem;
    color: #a0a0a0;
    margin-bottom: 20px;
    font-weight: 400;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    min-width: 80px;
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.stat-number {
    display: block;
    font-size: 1.25rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 2px;
}

.stat-label {
    font-size: 0.75rem;
    color: #a0a0a0;
    font-weight: 400;
}

/* Projects Section */
.projects-section {
    margin: 40px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 60px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    align-items: start;
}

.category {
    background: rgba(20, 20, 20, 0.8);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.category:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.category.featured {
    grid-column: 1 / -1;
    max-width: 800px;
    margin: 0 auto;
}

.category-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.category.featured .category-image {
    height: 320px;
}

.category:hover .category-image {
    transform: scale(1.05);
}

.category-overlay {
    padding: 30px;
    text-align: center;
}

.category h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: #ffffff;
}

.category.featured h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.category-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
}

.category.featured .category-icon {
    width: 40px;
    height: 40px;
}

.category-description {
    color: #a0a0a0;
    margin-bottom: 24px;
    font-size: 1rem;
    line-height: 1.5;
}

.category.featured .category-description {
    font-size: 1.125rem;
    margin-bottom: 32px;
}

.category-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background: #ffffff;
    color: #000000;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 140px;
}

.category.featured .category-button {
    padding: 16px 32px;
    font-size: 1rem;
    min-width: 180px;
}

.category-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.2);
}

/* Footer */
.site-footer {
    margin-top: 80px;
    padding: 60px 40px 40px;
    background: rgba(15, 15, 15, 0.8);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 50px;
    margin-bottom: 40px;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-section p {
    color: #a0a0a0;
    margin-bottom: 12px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.social-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
}

.social-link {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #666666;
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    header {
        padding: 20px 0;
        margin: 15px 0;
    }
    
    header h1 {
        font-size: 1.75rem;
    }
    
    .header-subtitle {
        font-size: 0.9rem;
    }
    
    .header-stats {
        gap: 15px;
    }
    
    .stat-item {
        padding: 8px 12px;
        min-width: 70px;
    }
    
    .stat-number {
        font-size: 1.1rem;
    }
    
    .stat-label {
        font-size: 0.7rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 40px;
    }
    
    .categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-image {
        height: 200px;
    }
    
    .category.featured .category-image {
        height: 240px;
    }
    
    .category-overlay {
        padding: 20px;
    }
    
    .site-footer {
        padding: 40px 20px 30px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-section {
        text-align: center;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }
    
    .header-subtitle {
        font-size: 0.85rem;
    }
    
    .stat-item {
        padding: 6px 10px;
        min-width: 60px;
    }
    
    .stat-number {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.75rem;
    }
    
    .category h2 {
        font-size: 1.25rem;
    }
    
    .category.featured h2 {
        font-size: 1.5rem;
    }
    
    .category-description {
        font-size: 0.875rem;
    }
    
    .category-button {
        padding: 10px 20px;
        font-size: 0.8rem;
        min-width: 120px;
    }
    
    .category.featured .category-button {
        padding: 14px 28px;
        font-size: 0.9rem;
        min-width: 160px;
    }
    
    .site-footer {
        padding: 30px 16px 20px;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.category {
    animation: fadeInUp 0.6s ease forwards;
}
