.narz-container {
    font-family: system-ui, sans-serif;
}

.filters {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.filter-group strong {
    margin-right: 0.5rem;
    font-weight: 600;
    white-space: nowrap;
}

.filter-group button {
    background: #f5f5f5;
    border: 1px solid #ddd;
    padding: 0.4rem 0.9rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.875rem;
}

.filter-group button:hover {
    background: #eee;
}

.filter-group button.active {
    background: #ff5722;
    color: #fff;
    border-color: #ff5722;
}

.grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
}

.card {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.card img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
    border-radius: 8px;
    background-color: #ccc;
}

.card-body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-body h3 {
    color: #ff5722;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.card-body p {
    font-size: 13px;
    color: #161616;
    flex-grow: 1;
    line-height: initial;
    text-align: justify;
}

.card-body .btn {
    margin-top: 1rem;
    padding: 0.6rem 1.2rem;
    background: #ff5722;
    color: white;
    border-radius: 6px;
    text-align: center;
    display: inline-block;
    font-weight: bold;
    font-size: 0.9rem;
    pointer-events: none;
    animation: pulse 2.5s infinite ease-in-out;
    transform-origin: center;
}

/* Animacja przycisku */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.03);
        opacity: 0.95;
    }
}

/* Responsive tweaks */
@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 900px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 600px) {
    .grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .filters {
        gap: 1rem;
    }

    .filter-group {
        flex-direction: column;
        align-items: flex-start;
    }

    .card-body h3 {
        font-size: 1rem;
        text-align: left;
    }

    .card-body p {
        font-size: 12px;
        text-align: left;
    }

    .card-body .btn {
        font-size: 0.8rem;
    }
}
