.projects-index-page {
    padding: 80px 0 40px;
}

.projects-index-panel {
    background: rgba(0,0,0,0.035);
    border: 1px solid rgba(0,0,0,0.055);
    border-radius: 30px;
    padding: 42px;
    box-shadow: 0 18px 55px rgba(0,0,0,.045);
}

.projects-index-header {
    margin-bottom: 32px;
}

.projects-index-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.projects-index-card {
    position: relative;
    display: block;
    min-height: 330px;
    overflow: hidden;
    background: #ddd;
    box-shadow: 0 16px 44px rgba(0,0,0,.12);
    transition: .25s ease;
}

.projects-index-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 60px rgba(0,0,0,.18);
}

.projects-index-image {
    position: absolute;
    inset: 0;
}

.projects-index-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: .55s ease;
}

.projects-index-card:hover .projects-index-image img {
    transform: scale(1.06);
}

.projects-index-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.74), rgba(0,0,0,.12), rgba(0,0,0,0));
}

.projects-index-overlay {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 22px;
    color: #fff;
}

.projects-index-overlay h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.05;
    letter-spacing: -.02em;
}

.projects-index-overlay span {
    display: block;
    margin-top: 8px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: rgba(255,255,255,.78);
    font-weight: 800;
}

.projects-index-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 20px;
    text-align: center;
    color: #777;
    font-weight: 800;
    background: #eee;
}

.projects-empty {
    grid-column: 1 / -1;
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    padding: 24px;
    color: #777;
}

.clean-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 34px;
}

.clean-pagination .page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 98px;
    height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.clean-pagination .page-btn.disabled {
    background: #fff;
    color: #aaa;
    border-color: rgba(0,0,0,.08);
    cursor: not-allowed;
}

.clean-pagination .page-count {
    color: #777;
    font-size: 14px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .projects-index-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .projects-index-page {
        padding: 55px 0 25px;
    }

    .projects-index-panel {
        padding: 24px;
        border-radius: 24px;
    }

    .projects-index-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .projects-index-card {
        min-height: 260px;
    }

    .projects-index-overlay {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .projects-index-overlay h2 {
        font-size: 20px;
    }

    .clean-pagination {
        flex-wrap: wrap;
    }

    .clean-pagination .page-count {
        width: 100%;
        text-align: center;
        order: -1;
    }
}

@media (max-width: 480px) {
    .projects-index-grid {
        grid-template-columns: 1fr;
    }
}
