/* Custom styles for page ID 52 - Projekty */

.c52-hero {
    padding: 3rem 2rem 1.2rem;
    background: #ffffff;
}

.c52-section {
    padding: .4rem 2rem 3rem;
}

.c52-hero__content {
    max-width: 960px;
    margin: 0 auto;
    text-align: center;
}

.c52-hero h1 {
    margin: 0;
    font-size: 2.8rem;
    line-height: 1.14;
    color: #0f172a;
    font-weight: 800;
}

.c52-hero p {
    margin: .7rem auto 0;
    max-width: 820px;
    color: #64748b;
    font-size: 1.1rem;
    line-height: 1.8;
}

.c52-hero__actions {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
}

.c52-btn {
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 12px;
    padding: .75rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    cursor: pointer;
    transition: .2s ease;
}

.c52-btn--primary {
    background: #175ee6;
    color: #fff;
    box-shadow: 0 10px 24px rgba(23, 94, 230, .24);
}

.c52-btn--primary:hover {
    background: #1d4ed8;
    color: #fff;
}

.c52-alert {
    margin-top: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    border: 1px solid #dbe6f3;
    border-radius: 14px;
    padding: 1rem;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .06);
    text-align: left;
}

.c52-alert h2 {
    margin: 0 0 .35rem;
    font-size: 1.1rem;
    color: #0f172a;
}

.c52-alert p {
    margin: 0;
    color: #64748b;
    font-size: .98rem;
    line-height: 1.55;
}

.c52-empty {
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    text-align: center;
    padding: 1.1rem;
    color: #64748b;
    background: #fff;
}

.c52-list {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.c52-card {
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
    padding: 1.1rem;
}

.c52-meta {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #175ee6;
    background: rgba(23, 94, 230, .09);
    border-radius: 999px;
    padding: .3rem .7rem;
    font-weight: 700;
    font-size: .88rem;
}

.c52-main h3 {
    margin: .7rem 0 .55rem;
    color: #0f172a;
    font-size: clamp(1.25rem, 2.1vw, 1.55rem);
    line-height: 1.35;
}

.c52-content {
    color: #475569;
    line-height: 1.7;
}

.c52-content p {
    margin: 0 0 .55rem;
}

.c52-content p:last-child {
    margin-bottom: 0;
}

.c52-logos {
    margin-top: .9rem;
    padding-top: .85rem;
    border-top: 1px dashed #cbd5e1;
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.c52-logo {
    margin: 0;
    width: 140px;
    height: 88px;
    border: 0;
    border-radius: 0;
    background: transparent;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.c52-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    padding: 6px;
}

.c52-reveal {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .45s ease, transform .45s ease;
}

.c52-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.c52-pagination {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    flex-wrap: wrap;
}

.c52-pagination__btn,
.c52-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    text-decoration: none;
    color: #334155;
    background: #fff;
    font-weight: 700;
    padding: 0 .75rem;
}

.c52-pagination__btn:hover,
.c52-pagination__page:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.c52-pagination__pages {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

.c52-pagination__page--active {
    background: #175ee6;
    border-color: #175ee6;
    color: #fff;
}

@media (max-width: 768px) {
    .c52-hero {
        padding: 2.2rem 1rem .9rem;
    }

    .c52-section {
        padding: .25rem 1rem 2.2rem;
    }

    .c52-hero h1 {
        font-size: 2rem;
    }

    .c52-card {
        padding: .9rem;
    }

    .c52-logo {
        width: 120px;
        height: 76px;
    }
}
