/* Стили для страницы /projects/ */

.projects-page {
    min-height: 100vh;
    padding-top: 100px;
}

.projects-hero {
    padding: 60px 60px 80px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: var(--accent);
    transform: translateX(-5px);
}

.back-link svg {
    width: 20px;
    height: 20px;
}

.projects-hero__content {
    max-width: 800px;
}

.projects-hero__label {
    display: inline-block;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.projects-hero__title {
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 900;
    margin-bottom: 20px;
    line-height: 1.1;
}

.projects-hero__desc {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.projects-grid-section {
    padding: 0 0 120px 60px;
    flex: 1;
    min-width: 0;
}

.projects-container {
    display: flex;
    gap: 60px;
    padding-right: 60px;
}

.projects-sidebar {
    width: 380px;
    flex-shrink: 0;
}

.projects-sidebar__sticky {
    position: sticky;
    top: 120px;
}

.filter-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: var(--spacing-xl);
    margin-bottom: var(--spacing-lg);
}

.filter-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
}

.filter-card__title {
    font-size: var(--font-size-xl);
    font-weight: 700;
}

.filter-reset {
    font-size: var(--font-size-sm);
    color: var(--accent);
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: opacity 0.3s ease;
}

.filter-reset:hover {
    opacity: 0.7;
}

.filter-group {
    margin-bottom: var(--spacing-xl);
}

.filter-group:last-child {
    margin-bottom: 0;
}

.filter-group__title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-md);
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.filter-option {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    cursor: pointer;
    padding: var(--spacing-xs) 0;
    transition: all 0.3s ease;
}

.filter-option:hover {
    padding-left: var(--spacing-xs);
}

.filter-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--accent);
}

.filter-label {
    font-size: var(--font-size-sm);
    color: var(--text);
    user-select: none;
}

.filter-results {
    text-align: center;
    padding: var(--spacing-lg);
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: var(--font-size-base);
    color: var(--text-secondary);
}

.filter-results span {
    font-weight: 700;
    color: var(--accent);
    font-size: var(--font-size-xl);
}

.projects-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.project-item {
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
    border-radius: 20px;
}

.project-item:hover {
    background: var(--card-bg);
}

.project-item__link {
    display: grid;
    grid-template-columns: 180px 1fr 60px;
    align-items: center;
    gap: 40px;
    padding: 35px 0;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.project-item:hover .project-item__link {
    padding-left: 20px;
    padding-right: 20px;
}

.project-item__image {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--card-bg);
    border-radius: 24px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}

.project-item:hover .project-item__image {
    border-color: var(--accent);
    transform: scale(1.05);
}

.project-item__logo,
.project-item__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-item__placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    font-size: 64px;
    font-weight: 900;
    color: white;
    text-transform: uppercase;
}

.project-item__content {
    flex: 1;
    min-width: 0;
}

.project-item__header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 8px;
}

.project-item__title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    transition: color 0.3s ease;
}

.project-item:hover .project-item__title {
    color: var(--accent);
}

.project-item__label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
    font-weight: 600;
    white-space: nowrap;
}

.project-item__desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.project-item__tech {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.tech-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.project-item:hover .tech-icon {
    opacity: 1;
}

.tech-more {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 600;
    padding: 4px 10px;
    background: var(--card-bg);
    border-radius: 6px;
}

.project-item__arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 2px solid var(--border);
    transition: all 0.3s ease;
}

.project-item:hover .project-item__arrow {
    border-color: var(--accent);
    background: var(--accent);
    transform: translateX(5px);
}

.project-item__arrow svg {
    width: 20px;
    height: 20px;
    transition: all 0.3s ease;
}

.project-item:hover .project-item__arrow svg {
    stroke: white;
}

@media (max-width: 1024px) {
    .projects-container {
        flex-direction: column;
        padding-right: 30px;
    }
    
    .projects-sidebar {
        width: 100%;
    }
    
    .projects-sidebar__sticky {
        position: static;
    }
    
    .projects-grid-section {
        padding-left: 30px;
    }
    
    .project-item__link {
        grid-template-columns: 120px 1fr 50px;
        gap: 20px;
    }
    
    .project-item__image {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .projects-hero {
        padding: 40px 20px 40px;
    }
    
    .projects-container {
        padding-right: 0;
    }
    
    /* Скрываем фильтр на мобильных */
    .projects-sidebar {
        display: none;
    }
    
    .projects-grid-section {
        padding: 0 20px 60px;
    }
    
    /* Делаем карточки как на главной странице */
    .projects-list {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .project-item {
        border: none;
        border-radius: 20px;
        overflow: hidden;
        background: var(--card-bg);
        border: 1px solid var(--border);
    }
    
    .project-item:hover {
        background: var(--card-bg);
    }
    
    .project-item__link {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        height: 100%;
    }
    
    .project-item:hover .project-item__link {
        padding: 0;
    }
    
    /* Показываем картинку сверху */
    .project-item__image {
        display: block;
        width: 100%;
        height: 200px;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--border);
    }
    
    .project-item:hover .project-item__image {
        transform: none;
        border-color: var(--border);
    }
    
    .project-item__content {
        padding: 20px;
    }
    
    .project-item__header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .project-item__title {
        font-size: 20px;
    }
    
    .project-item:hover .project-item__title {
        color: var(--text);
    }
    
    .project-item__label {
        display: inline-block;
        font-size: 11px;
    }
    
    .project-item__desc {
        font-size: 14px;
        line-height: 1.5;
        margin-bottom: 16px;
    }
    
    .project-item__tech {
        gap: 8px;
    }
    
    .tech-icon {
        width: 24px;
        height: 24px;
        opacity: 0.7;
    }
    
    .project-item:hover .tech-icon {
        opacity: 0.7;
    }
    
    /* Скрываем стрелку */
    .project-item__arrow {
        display: none;
    }
}
