/* Стили для страницы "Наши работы" */

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    padding: 0 30px 60px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.portfolio-item-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    height: 100%;
}

.portfolio-item {
    background: linear-gradient(135deg, rgba(221, 238, 253, 0.95), rgba(255, 225, 225, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.portfolio-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portfolio-item:hover .portfolio-image img {
    transform: scale(1.05);
}

.portfolio-content {
    padding: 30px;
}

.portfolio-content h3 {
    font-size: 1.5rem;
    color: #2d3748;
    margin-bottom: 15px;
    font-weight: 600;
}

.portfolio-content p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.portfolio-tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tech-tag {
    background: linear-gradient(135deg, #667eea, #c95252);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.portfolio-cta {
    background: linear-gradient(135deg, rgba(221, 238, 253, 0.95), rgba(255, 225, 225, 0.95));
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 60px 40px;
    margin: 40px 30px;
    text-align: center;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    z-index: 10;
}

.cta-content h2 {
    font-size: 2.2rem;
    color: #2d3748;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea, #c95252);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    font-weight: 700;
}

.cta-content p {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, #667eea, #c95252);
    color: white;
    padding: 15px 40px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

/* Адаптивность */
@media (max-width: 865px) {
    .portfolio-header {
        margin: 120px 20px 40px;
    }
    
    .portfolio-header h1 {
        font-size: 2.2rem;
    }
    
    .portfolio-header p {
        font-size: 1.1rem;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
        padding: 0 20px 40px;
        gap: 20px;
    }
    
    .portfolio-item {
        max-width: 100%;
    }
    
    .portfolio-content {
        padding: 25px;
    }
    
    .portfolio-cta {
        padding: 40px 25px;
        margin: 30px 20px;
    }
    
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1.1rem;
    }
}

@media (min-width: 866px) and (max-width: 1024px) {
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .portfolio-header {
        margin: 110px 15px 30px;
    }
    
    .portfolio-header h1 {
        font-size: 1.8rem;
    }
    
    .portfolio-header p {
        font-size: 1rem;
    }
    
    .portfolio-grid {
        padding: 0 15px 30px;
    }
    
    .portfolio-image {
        height: 200px;
    }
    
    .portfolio-content {
        padding: 20px;
    }
    
    .portfolio-content h3 {
        font-size: 1.3rem;
    }
    
    .cta-content h2 {
        font-size: 1.6rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }
}