.c-realizacje-logos.c-trust {
    padding-top: 2.4rem;
    padding-bottom: 1.4rem;
}

.c-realizacje-logos .c-trust__card img {
    width: auto;
    max-width: 78%;
    height: 2.15rem;
    max-height: none;
}

.c-projects {
    padding: 1.2rem 0 3.2rem;
}

.c-projects .c-section-heading {
    max-width: 28rem;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
}

.c-projects__filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
    margin: 1.35rem 0 1.6rem;
}

.c-projects__filter {
    min-height: 2.35rem;
    padding: 0.4rem 0.95rem;
    border: 1px solid #d7dbe0;
    border-radius: 999px;
    background: #fff;
    color: var(--color-ink);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.c-projects__filter.is-active {
    border-color: var(--color-brand);
    background: var(--color-brand);
    color: #fff;
}

.c-projects__grid {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.15rem 0.9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-project__link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: zoom-in;
}

.c-project__link:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 3px;
    border-radius: 12px;
}

.c-project__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    background:
        linear-gradient(160deg, rgba(255, 255, 255, 0.35), transparent 50%),
        url("../../images/light-concrete-texture.png") center / cover;
}

.c-project__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.c-project__link:hover .c-project__media::after,
.c-project__link:focus-visible .c-project__media::after {
    opacity: 0.2;
}

.c-project__shot,
.c-project__shot.is-empty {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.c-project__shot.is-empty {
    min-height: 7.5rem;
}

.c-project__title {
    margin: 0.65rem 0 0;
    color: var(--color-ink);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.25;
}

.c-project__place {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin: 0.25rem 0 0;
    color: var(--color-muted);
    font-size: 0.86rem;
}

.c-project__place img {
    width: 0.7rem;
    height: auto;
    flex: 0 0 auto;
}

.glightbox-container .gslide-image img {
    width: auto;
    max-width: min(92vw, 72rem);
    height: auto;
    max-height: 86vh;
    object-fit: contain;
}

.glightbox-container .gbtn {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: #fff;
    opacity: 1;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.glightbox-container .gbtn svg {
    width: 1.05rem;
    height: 1.05rem;
}

.glightbox-container .gbtn svg path {
    fill: var(--color-ink);
}

.glightbox-container .gclose {
    top: 1.15rem;
    right: 1.15rem;
}

.glightbox-container .gprev,
.glightbox-container .gnext {
    top: 50%;
    margin-top: -1.375rem;
}

.c-projects__empty {
    margin: 1rem 0 0;
    color: var(--color-muted);
    text-align: center;
}

.c-refs {
    padding: 0 0 3.4rem;
}

.c-refs__intro {
    margin-bottom: 1.45rem;
}

.c-refs__intro p {
    max-width: 46rem;
    margin: 0.75rem 0 0;
    color: var(--color-muted);
    font-size: 0.98rem;
    line-height: 1.55;
}

.c-refs__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.65rem 1.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.c-refs__list li {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    color: var(--color-ink);
    font-size: 0.92rem;
    font-weight: 650;
    line-height: 1.35;
}

.c-refs__list img {
    width: 0.85rem;
    height: auto;
    flex: 0 0 auto;
    margin-top: 0.2rem;
}

.c-realizacje-stats {
    background:
        linear-gradient(90deg, rgba(16, 20, 26, 0.78), rgba(16, 20, 26, 0.62)),
        url("../../images/footer-dark-texture.jpg") center / cover;
    color: #fff;
}

.c-realizacje-stats__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 1.7rem 1.25rem;
    list-style: none;
}

.c-realizacje-stats__list li {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: left;
}

.c-realizacje-stats__icon {
    display: grid;
    place-items: center;
    width: 2.6rem;
    height: 2.6rem;
}

.c-realizacje-stats__icon img {
    width: auto;
    height: 2.15rem;
}

.c-realizacje-stats__value,
.c-realizacje-stats__label {
    margin: 0;
    font-family: var(--font-heading);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.c-realizacje-stats__value {
    font-size: 1.65rem;
}

.c-realizacje-stats__label {
    font-size: 1.05rem;
}

.c-realizacje-cta {
    padding: 1.7rem 0 1.9rem;
    background: #f6f7f8;
}

.c-realizacje-cta__grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
}

.c-realizacje-cta__title {
    position: relative;
    margin: 0;
    padding-left: 0.85rem;
    color: var(--color-ink);
    font-size: clamp(1.45rem, 2vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.c-realizacje-cta__title::before {
    content: "";
    position: absolute;
    top: 0.15rem;
    bottom: 0.15rem;
    left: 0;
    width: 0.28rem;
    background: var(--color-yellow);
    transform: skewX(-18deg);
}

.c-realizacje-cta p {
    max-width: 36rem;
    margin: 0.45rem 0 0;
    color: var(--color-muted);
    line-height: 1.45;
}

.c-realizacje-cta__actions {
    display: flex;
    flex: 0 0 auto;
    gap: 0.7rem;
}

@media (max-width: 1199.98px) {
    .c-projects__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .c-refs__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .c-realizacje-stats__list,
    .c-realizacje-cta__grid {
        grid-template-columns: 1fr;
        display: grid;
    }

    .c-realizacje-cta__grid {
        justify-items: start;
    }

    .c-realizacje-cta__actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .c-realizacje-cta__actions .c-button {
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .c-projects__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .c-projects.is-paged .c-project.is-deferred {
        display: none;
    }

    .c-projects__more {
        margin: 0.35rem 0 0;
        color: var(--color-muted);
        font-size: 0.92rem;
        font-weight: 700;
        text-align: center;
    }

    .c-project.is-arriving {
        animation: c-project-in 0.45s ease;
    }

    .c-refs__list,
    .c-realizacje-stats__list {
        grid-template-columns: 1fr;
    }

    .c-refs__intro {
        margin-bottom: 1.1rem;
    }

    .c-projects__filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin-right: -1rem;
        margin-left: -1rem;
        padding: 0 1rem 0.35rem;
    }

    .c-projects__filter {
        flex: 0 0 auto;
    }

    .c-realizacje-stats__list li {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .c-project.is-arriving {
        animation: none;
    }
}

@keyframes c-project-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}
