/* Страница "Проекты" */

.project-page {
    padding: 60px 0 120px;
}

.projects-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 60px 20px;
    margin-top: 60px;
}

.project-card {
    background-color: transparent;
    border-radius: 5px;
    overflow: hidden;
    transition: all 0.3s;
}

/* .project-card:hover {
    transform: translateY(-10px);
} */

.project-img-wrapper {
    position: relative;
    height: 370px;
    overflow: hidden;
}

.project-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-img-wrapper img {
    transform: scale(1.1);
}

.project-info {
    display: flex;
    justify-content: space-between;
    margin-top: -10px;
    position: relative;
    z-index: 1;
    gap: 30px;
    transition: all 0.3s;
}
.project-card:hover .project-info {
    background-color: var(--header-bg);
}

.project-info .icon {
    padding: 0 34px;
    display: flex;
}

.project-info .project-title {
    background-color: var(--footer-bg);
    border-radius: 5px 40px 40px 5px;
    overflow: hidden;
    padding: 20px 30px 20px 20px;
    display: flex;
    font: var(--font-classic);
    color: var(--text-primary);
    letter-spacing: 0.04em;
    flex: 1;
    justify-content: space-between;
    transition: all 0.3s;
}
.project-info .project-title .project-year {
    color: var(--text-description);
}

.project-card:hover .project-info .project-title {
    background-color: var(--header-bg);
    color: var(--text-secondary);
}

.project-description {
    display: none;
    color: var(--text-color-light);
}

/* Адаптивность */
@media (max-width: 768px) {
    .projects-title {
        font-size: 2rem;
    }

    .projects-filters {
        gap: 8px;
    }

    .filter-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }

    .projects-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 20px;
    }

    .project-img-wrapper {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .projects-title {
        font-size: 1.8rem;
    }

    .projects-filters {
        flex-direction: column;
        align-items: center;
    }

    .filter-btn {
        width: 100%;
        max-width: 200px;
        text-align: center;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .project-img-wrapper {
        height: 200px;
    }
}
