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

/* Заголовок страницы работ */
.works-hero {
    text-align: center;
    padding: 50px 0;
    border-radius: 20px;
    margin-bottom: 50px;
}

.works-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.works-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

/* Фильтры категорий */
.works-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.works-filter-btn {
    padding: 10px 20px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    color: #475569;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.works-filter-btn:hover,
.works-filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Сетка работ */
.works-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

@media screen and (max-width: 576px) {
    .works-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

/* Карточки работ */
.work-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 42, 127, 0.06);
    transition: all 0.3s ease;
}

.work-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 42, 127, 0.1);
}

/* Изображения работ */
.work-card__img {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.work-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.work-card__category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Заголовок работы */
.work-card__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 20px;
    line-height: 1.4;
}

/* Контент работы */
.work-card__content {
    padding: 0 20px 20px;
}

.work-card__description {
    color: #475569;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.9rem;
}

/* Мета-информация */
.work-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #64748b;
}

.work-card__client,
.work-card__date {
    display: flex;
    align-items: center;
    gap: 8px;
}

.work-card__icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Кнопка "Подробнее" */
.work-card .btn {
    width: 100%;
    text-align: center;
}

.work-card__btn-icon {
    width: 16px;
    height: 16px;
    margin-left: 5px;
}

/* Состояние "Нет работ" */
.no-works {
    text-align: center;
    padding: 60px 20px;
    border-radius: 16px;
    background: #f8f9fa;
}

.no-works-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
}

.no-works-icon img {
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

.no-works h3 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.no-works p {
    color: #64748b;
    font-size: 1rem;
}

/* Пагинация */
.works-pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}
