.pw-realizacje .entry-page,
.pw-realizacja .entry-page {
    padding: 2.5rem 0 3.5rem;
    border-left: 0;
}

.rl-intro {
    max-width: 860px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.rl-intro p {
    margin: 0;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #555;
}

.rl-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .6rem;
    margin: 0 0 2.5rem;
}

.rl-filters__item {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .5rem 1.25rem;
    border: 2px solid #e9e9e9;
    border-radius: 999px;
    font-size: .9rem;
    font-weight: 700;
    color: #292b2c;
    text-decoration: none;
    transition: all .25s ease-in-out;
}

.rl-filters__item span {
    display: inline-block;
    min-width: 1.4rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: #f1f1f1;
    font-size: .75rem;
    font-weight: 700;
    text-align: center;
    color: #777;
}

.rl-filters__item:hover {
    border-color: #292b2c;
    color: #292b2c;
    text-decoration: none;
}

.rl-filters__item.is-active {
    background: #e42126;
    border-color: #e42126;
    color: #fff;
}

.rl-filters__item.is-active span {
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

.rl-grid {
    margin-bottom: 1rem;
}

.rl-card {
    margin: 0 0 1.75rem;
    height: calc(100% - 1.75rem);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 16px rgba(0, 0, 0, .07);
    transition: transform .25s ease-in-out, box-shadow .25s ease-in-out;
}

.rl-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .14);
}

.rl-card__link,
.rl-card__link:hover {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.rl-card__img {
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f2f2f2;
}

.rl-card__img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease-in-out;
}

.rl-card:hover .rl-card__img img {
    transform: scale(1.06);
}

.rl-card__count {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .25rem .65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: .78rem;
    font-weight: 700;
}

.rl-card__body {
    padding: 1.1rem 1.25rem 1.4rem;
}

.rl-card__title {
    margin: 0 0 .45rem;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.3;
    color: #292b2c;
}

.rl-card__scope {
    font-size: .88rem;
    color: #e42126;
    font-weight: 600;
}

.rl-card__date {
    margin-top: .25rem;
    font-size: .82rem;
    color: #8a8a8a;
}

.rl-breadcrumb {
    margin: 0 0 1.5rem;
}

.rl-breadcrumb a {
    font-size: .88rem;
    font-weight: 600;
    color: #777;
    text-decoration: none;
}

.rl-breadcrumb a:hover {
    color: #e42126;
}

.rl-single__meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1.25rem 2rem;
    margin: 0 0 2rem;
    padding: 1.4rem 1.6rem;
    background: #fafafa;
    border-radius: 16px;
}

.rl-meta__label {
    display: block;
    font-size: .72rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9a9a9a;
    font-weight: 700;
}

.rl-meta__value {
    display: block;
    margin-top: .2rem;
    font-size: .98rem;
    font-weight: 700;
    color: #292b2c;
}

.rl-meta__value a {
    color: #e42126;
    font-weight: 700;
}

.rl-single__content {
    max-width: 900px;
    margin: 0 0 2.5rem;
}

.rl-single__content p {
    font-size: 1.02rem;
    line-height: 1.75;
    color: #444;
}

.rl-single__content p:last-child {
    margin-bottom: 0;
}

.rl-gallery {
    column-count: 3;
    column-gap: 1rem;
}

.rl-gallery__item {
    display: block;
    break-inside: avoid;
    margin: 0 0 1rem;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}

.rl-gallery__item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .4s ease-in-out, filter .3s ease-in-out;
}

.rl-gallery__item:hover img {
    transform: scale(1.04);
    filter: brightness(.88);
}

.rl-related {
    padding: 3.5rem 0 1rem;
    background: #fafafa;
}

.rl-related .section-head {
    margin-bottom: 2rem;
}

@media (max-width: 991px) {
    .rl-single__meta {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem 1.5rem;
    }

    .rl-gallery {
        column-count: 2;
    }
}

@media (max-width: 767px) {
    .rl-intro p {
        font-size: .98rem;
    }

    .rl-filters {
        gap: .4rem;
        margin-bottom: 1.75rem;
    }

    .rl-filters__item {
        padding: .4rem 1rem;
        font-size: .82rem;
    }

    .rl-related {
        padding: 2.5rem 0 .5rem;
    }
}

@media (max-width: 575px) {
    .rl-single__meta {
        grid-template-columns: 1fr;
        padding: 1.1rem 1.2rem;
    }

    .rl-gallery {
        column-count: 1;
    }
}
