/* =========================================================
   home-redesign.css — nowoczesna, instytucjonalna strona główna OIPiP
   Aktywne tylko na stronie głównej (body.is-home).
   Paleta: granat #153c51, niebieski #205a79 / #429ccd, zieleń #5f8e3e / #75ae4c
   Rytm pionowy: layout tworzy odstępy (flex + gap), skala 8px.
   ========================================================= */

/* Na stronie głównej: sidebar (INTER + logowanie) zostaje po lewej, a treść
   główna to redesign (hero + karty). Ukrywamy tylko nagłówek/breadcrumbs
   komponentu — zastępuje je hero. */
body.is-home .breadcrumbs,
body.is-home .art-content > .Component > .art-post > .art-postheader { display: none; }
body.is-home .art-post,
body.is-home .art-postcontent { box-shadow: none; background: none; padding: 0; margin: 0; }

/* Kontener nadaje rytm sekcjom przez gap — bez per-sekcyjnych marginesów,
   które łatwo się rozjeżdżają. */
.home-modern {
    font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1f2d36;
    display: flex;
    flex-direction: column;
    gap: 44px;
    padding: 6px 0 8px;
}

/* --- HERO --- */
.home-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background:
        radial-gradient(1200px 400px at 100% -20%, rgba(66,156,205,.35), transparent 60%),
        linear-gradient(135deg, #153c51 0%, #205a79 55%, #2f84b1 100%);
    color: #fff;
    padding: 54px 48px;
    box-shadow: 0 18px 40px -22px rgba(21,60,81,.55);
}
.home-hero-inner { max-width: 640px; display: flex; flex-direction: column; align-items: flex-start; }
.home-hero-badge {
    font-size: 12px;
    letter-spacing: .14em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.25);
    margin-bottom: 22px;
}
.home-hero-title {
    font-size: 33px;
    line-height: 1.16;
    font-weight: 800;
    margin: 0 0 16px;
    color: #ffffff !important;
    text-shadow: 0 2px 14px rgba(0,0,0,.35);
    letter-spacing: .2px;
    text-wrap: balance;
}
.home-hero-sub {
    font-size: 16.5px;
    line-height: 1.55;
    color: rgba(255,255,255,.92);
    margin: 0 0 28px;
    max-width: 52ch;
}
.home-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.home-btn {
    display: inline-block;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: .2px;
    text-decoration: none !important;
    transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
}
.home-btn-primary { background: #5f8e3e; color: #fff !important; box-shadow: 0 12px 24px -12px rgba(95,142,62,.9); }
.home-btn-primary:hover { background: #6ba045; transform: translateY(-1px); }
.home-btn-ghost { background: rgba(255,255,255,.10); color: #fff !important; border: 1px solid rgba(255,255,255,.6); }
.home-btn-ghost:hover { background: rgba(255,255,255,.2); border-color: #fff; }

/* --- SZYBKIE LINKI --- */
.home-quick {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.home-quick-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    padding: 22px 12px 18px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid #e3e9ed;
    text-decoration: none;
    color: #16344a;
    font-weight: 600;
    font-size: 13.5px;
    line-height: 1.3;
    text-align: center;
    transition: transform .12s ease, box-shadow .2s ease, border-color .2s ease;
}
.home-quick-item:hover { transform: translateY(-3px); box-shadow: 0 14px 26px -16px rgba(21,60,81,.5); border-color: #bcd6e6; }
.home-quick-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eaf2f8 0%, #dceaf3 100%);
    color: #205a79;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    transition: background .2s ease, color .2s ease;
}
.home-quick-item:hover .home-quick-icon { background: #205a79; color: #fff; }
.home-quick-icon svg { width: 25px; height: 25px; display: block; }

/* --- SEKCJA AKTUALNOŚCI --- */
.home-news { display: flex; flex-direction: column; gap: 24px; }
.home-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 2px solid #eef2f5;
    padding-bottom: 12px;
}
.home-section-title { font-size: 22px; font-weight: 800; color: #153c51; margin: 0; }
.home-section-link { color: #205a79; font-weight: 700; text-decoration: none; font-size: 14px; white-space: nowrap; }
.home-section-link:hover { color: #2f84b1; }

.home-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}
.home-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e6ebef;
    border-top: 3px solid #429ccd;
    border-radius: 14px;
    padding: 22px 22px 20px;
    box-shadow: 0 2px 4px rgba(21,60,81,.04);
    transition: transform .14s ease, box-shadow .24s ease, border-color .2s ease;
}
.home-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -22px rgba(21,60,81,.45); border-color: #cfe0ea; border-top-color: #205a79; }
.home-card-date {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #5f8e3e;
    margin-bottom: 10px;
}
.home-card-title { font-size: 16.5px; line-height: 1.34; font-weight: 700; margin: 0 0 12px; }
.home-card-title a { color: #16344a; text-decoration: none; }
.home-card-title a:hover { color: #205a79; }
.home-card-intro { font-size: 14px; line-height: 1.6; color: #55636c; margin: 0 0 18px; flex: 1 1 auto; }
.home-card-more { font-weight: 700; color: #205a79; text-decoration: none; font-size: 14px; margin-top: auto; }
.home-card-more:hover { color: #2f84b1; }

.home-pagination { margin: 0; }

/* --- RESPONSYWNOŚĆ ---
   Progi liczą od SZEROKOŚCI OKNA, ale treść na desktopie jest węższa o sidebar
   (~260px) — dlatego kolumny redukujemy już przy 1080px, nie 900px. --- */
@media all and (max-width: 1080px) {
    .home-modern { gap: 34px; }
    .home-cards { grid-template-columns: repeat(2, 1fr); }
    .home-quick { grid-template-columns: repeat(3, 1fr); }
}
@media all and (max-width: 680px) {
    .home-modern { gap: 28px; }
    .home-hero { padding: 34px 24px; border-radius: 12px; }
    .home-hero-title { font-size: 25px; }
    .home-hero-sub { font-size: 15px; }
    .home-cards { grid-template-columns: 1fr; }
    .home-quick { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .home-btn { flex: 1 1 auto; text-align: center; }
}
