.site-main-custom {
    /* Odstęp górny uwzględniający fixed header + dodatkowy margines */
    padding-top: calc(var(--nav-height) + 4rem);
    padding-bottom: 5rem;
    background: var(--bg-main);
    min-height: 80vh;
    width: 100%;
}

.custom-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ==========================================================================
   NAGŁÓWEK STRONY (Tytuł z ACF: tytul_pl)
   ========================================================================== */

.entry-header-custom {
    margin-bottom: 3.5rem;
    position: relative;
}

.header-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.entry-title-custom {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    /* Płynne skalowanie fontu: min 2rem, max 3.5rem */
    font-size: clamp(2rem, 5vw, 2.8rem); 
    color: var(--text-primary);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Dekoracyjny pasek pod tytułem nawiązujący do akcentów UI */
.title-underline-page {
    height: 4px;
    width: 100px;
    background: var(--text-secondary);
    margin-top: 1.25rem;
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* .entry-article:hover .title-underline {
    width: 100px;
} */

/* ==========================================================================
   TREŚĆ STRONY (Content z ACF: content_pl)
   ========================================================================== */

.entry-content-custom {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform 0.3s ease;
    max-width: 1400px;
    display: flex;
    justify-content: center;
}
.entry-content-custom-box{
    max-width: 690px;
}

/* Stylowanie elementów wewnątrz edytora tekstowego */
.entry-content-custom p {
    margin-bottom: 1.6rem;
}

.entry-content-custom h2, 
.entry-content-custom h3 {
    color: var(--text-primary);
    margin: 2.5rem 0 1.2rem;
    font-family: 'Montserrat', sans-serif;
}

.entry-content-custom a {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.2s ease;
}

.entry-content-custom a:hover {
    color: #fff;
    border-bottom-color: var(--text-secondary);
}

.entry-content-custom a:focus-visible {
    outline: 3px solid #ffcc00;
    outline-offset: 4px;
}

/* Obrazki w treści */
.entry-content-custom img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Listy */
.entry-content-custom ul, 
.entry-content-custom ol {
    margin-bottom: 1.6rem;
    padding-left: 1.2rem;
}

.entry-content-custom li {
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   RESPONSYWNOŚĆ (RWD)
   ========================================================================== */

@media (max-width: 992px) {
    .site-main-custom {
        padding-top: calc(var(--nav-height) + 2.5rem);
    }
    
    .entry-title-custom {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .custom-container {
        padding: 0 1.5rem;
    }

    .entry-header-custom {
        margin-bottom: 2.5rem;
    }

    .entry-content-custom {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .entry-title-custom {
        font-size: 1.8rem;
    }
    
    .site-main-custom {
        padding-top: calc(var(--nav-height) + 2rem);
    }
}