.changes-section .container {
    position: relative;
    z-index: 2;
}* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #1a202c;
    scroll-behavior: smooth;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.main-header {
    padding: 20px 0;
    border-bottom: 1px solid #e2e8f0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #1a202c;
	text-decoration: none;
}

.main-nav {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color:  #1a202c;
    font-weight: 400;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #0077b6;  /* Wyraźniejszy niebieski kolor*/
    transform: translateY(-2px);  /*⬅️ Delikatne uniesienie do góry*/
    text-shadow: 0.5px 0 0 currentColor; 
}

/* Active Navigation Link */
.main-nav .nav-link.active {
    color: #0077b6;
    font-weight: 500;
    position: relative;
}

.main-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #0077b6;
}


/* Hero section */
.hero {
    background-color: #ebf8ff;
	min-height: 600px;
    padding: 120px 0 80px 0;
    position: relative;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 65%;
    pointer-events: none;
}

.hero-content h1,
.hero-content p,
.hero-content a,
.hero-buttons {
    pointer-events: auto;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 42px;
    line-height: 1.2;
    color: #1a202c;
    margin-bottom: 30px;
}

.hero-buttons {
    display: flex;
    gap: 20px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 16px;
    text-align: center;
}

.btn-light {
    background-color: #ffffff;
    color: #1a202c;
    border: 1px solid #e2e8f0;
}

.btn-light:hover {
    background-color: #f1f5f9;
}

.btn-primary {
    background-color: #1a365d;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #152b4d;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(26, 54, 93, 0.2);
}

/* Hero lead text */
.hero-lead {
    font-size: 18px;
    line-height: 1.7;
    color: #2d3748;
    margin-bottom: 35px;
    max-width: 580px;
}

/* ===== PASEK ZAUFANIA ===== */
.trust-bar {
    background-color: #1a365d;
    padding: 30px 0;
}

.trust-bar-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    flex: 1;
    min-width: 200px;
}

.trust-item svg {
    flex-shrink: 0;
    color: #63b3ed;
}

.trust-item-text {
    display: flex;
    flex-direction: column;
}

.trust-item-text strong {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
}

.trust-item-text span {
    font-size: 13px;
    color: #bee3f8;
}

/* ===== KARTY NARZĘDZI ===== */
.tools-section {
    background-color: #ffffff;
    padding: 80px 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.tool-card {
    background-color: #f7fafc;
    border-radius: 12px;
    padding: 32px 28px;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
    border-color: #0077b6;
	text-decoration: none;
}

.tool-card-icon {
    width: 64px;
    height: 64px;
    background-color: #ebf8ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #0077b6;
}

.tool-card-tag {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #0077b6;
    margin-bottom: 10px;
}

.tool-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 12px;
}

.tool-card-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
    flex: 1;
    margin-bottom: 20px;
}

.tool-card-link {
    font-size: 15px;
    font-weight: 500;
    color: #718096; /* #0077b6; niebeiski */
    position: relative;
    display: inline-block;
    align-self: flex-start;
    margin-top: 8px;
}
/* animacja podkreślenia dla linku 
.tool-card-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0077b6;
    transition: width 0.3s ease;
}

.tool-card:hover .tool-card-link::after {
    width: 100%;
}
*/
/* ===== SEKCJA DLACZEGO MY ===== */
.why-us-section {
    background-color: #ebf8ff;
    padding: 80px 0;
}

.why-us-title {
    text-align: left;
    margin-left: 20px;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.why-us-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #0077b6;
}

.why-us-lead {
    text-align: left;
    max-width: 100%;
    margin: 0 0 50px 20px;
    font-size: 17px;
    line-height: 1.8;
    color: #2d3748;
}

.why-us-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.why-us-item {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 32px 28px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.why-us-icon {
    width: 68px;
    height: 68px;
    background-color: #1a365d;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #ffffff;
}

.why-us-item h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: #1a365d;
    margin-bottom: 12px;
}

.why-us-item p {
    font-size: 15px;
    line-height: 1.7;
    color: #4a5568;
}

/* Modules section */
.modules {
    padding: 80px 0 100px 0;
    position: relative;
    background-color: #ffffff;
    z-index: 2;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(320px, 1fr));
    gap: 30px;
    justify-content: center;
}

.module-card {
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    display: block;
    position: relative;
    transition: margin 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    width: 320px;
    height: 160px;
    margin: 0 auto;
}

.module-card:hover {
    background-color: #ebf8ff;
    border-color: #1a365d;
    margin-top: -3px;  /* UŻYJ MARGINESU */
    margin-bottom: 3px;  /* KOMPENSACJA */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.icon-container {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 55px;
    height: 55px;
}

.icon-container svg {
    width: 55px;
    height: 55px;
    color: #1a365d;
}

.card-title {
    position: absolute;
    top: 20px;
    left: 95px;
    line-height: 1.3;
    text-align: left;
}

.card-title .main-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #1a365d;
    display: block;
}

.card-title .sub-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 22px;
    color: #1a365d;
    display: block;
}

.card-description {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 20px;
    color: #4a5568;
    position: absolute;
    top: 85px;
    left: 20px;
    line-height: 1.5;
    text-align: left;
    width: 280px;
}

/* Nowa sekcja - Czyste Powietrze - nowe zasady */
.rules-section {
    background-color: #ebf8ff;
    padding: 80px 0;
    position: relative; 
}

/* Zmiana wyrównania i stylu tytułu sekcji */
.rules-section .section-title {
    text-align: left;
    margin-left: 20px;
    color: #0a2c4e; /* Ciemniejszy kolor dla lepszego kontrastu */
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.rules-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #0077b6;
}

.rules-content {
    max-width: 1160px;
    margin: 0 auto;
    text-align: justify;
    line-height: 1.8; /* Zwiększony line-height dla lepszej czytelności */
    font-size: 18px; /* Zwiększony rozmiar czcionki */
    padding: 0 20px;
    color: #333333; /* Jaśniejszy odcień czarnego dla mniejszego zmęczenia oczu */
}

.rules-content p {
    margin-bottom: 20px;
}



/* Dodatkowy styl dla rozbudowanej treści */
.expanded-content {
    background-color: rgba(255, 255, 255, 0.5);
    padding: 20px;
    border-radius: 8px;
    margin: 25px 0;
    border-left: 3px solid #0077b6;
}

.expanded-content h3 {
    color: #0a2c4e;
    font-size: 20px;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
}

.expanded-content ul {
    padding-left: 20px;
    margin-bottom: 15px;
}

.expanded-content li {
    margin-bottom: 8px;
}
/* IKONOGRAFIKA */



/* Ukrycie poziomego scrollbara */
body {
    overflow-x: hidden;
}

/* ========== ROZBUDOWANA IKONOGRAFIKA - 6 KROKÓW ========== */

/* Kontener infografiki */
.infographic-row-expanded {
    display: flex;
    flex-direction: column;
    max-width: 1100px;
    margin: 100px auto 50px;
    position: relative;
}

/* Linia łącząca elementy infografiki */
.infographic-line-expanded {
    position: absolute;
    top: 35px;
    left: 35px;
    right: 35px;
    height: 3px;
    background-color: #1a365d;
    z-index: 1;
}

/* Kontener elementów infografiki */
.infographic-items-expanded {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

/* Pojedynczy element infografiki */
.infographic-item-expanded {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 140px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.infographic-item-expanded:hover {
    /* Usunięto transform: translateY(-5px); */
}

/* Półtransparentny numer w tle za ikoną */
.infographic-item-expanded::before {
    content: attr(data-step);             /* pobiera numer z atrybutu data-step */
    position: absolute;
    top: -100px;
    left: -20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 120px;                      /* dopasuj wielkość do układu */
    color: rgba(26, 54, 93, 0.10);        /* granatowy z dużą przezroczystością */
    z-index: 0;                           /* tło za ikoną */
    pointer-events: none;                 /* nie blokuje kliknięć */
    user-select: none;
}

/* Kółko z ikoną i numerem */
.infographic-icon-expanded {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: #2b4a75; /* #1a365d;  pierwotny kolor granatowy */    
	display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    transition: all 0.3s ease;
	z-index: 1;  
}
.infographic-icon-expanded svg {
    width: 40px;
    height: 40px;
    stroke: #e6f1ff;            /* delikatny błękit zamiast czystej bieli */
    stroke-width: 1.5;          /* cieńsze linie */
    opacity: 0.9;               /* lekkie zmiękczenie */
    transition: all 0.3s ease;
}

.infographic-icon-expanded:hover svg {
    stroke: #ffffff;            /* po najechaniu wraca do pełnej bieli */
    transform: scale(1.05);     /* subtelne powiększenie ikony */
}

.infographic-item-expanded:hover .infographic-icon-expanded {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.infographic-icon-expanded svg {
    width: 35px;
    height: 35px;
    color: white;
}

/* Tekst infografiki */
.infographic-title-expanded {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: #0a2c4e;
    margin-bottom: 5px;
    line-height: 1.3;
}

.infographic-description-expanded {
    font-size: 15px;
    color: #4a5568;
    line-height: 1.4;
}

/* ========== SLIDE-IN PANEL ========== */

/* ========== SLIDE-IN PANEL – NOWA, LŻEJSZA WERSJA ========== */

/* Panel główny */
.step-details-panel {
    position: fixed;
    top: 50%;
    right: -460px;
    width: 460px;
    height: auto;
    max-height: 80vh;
    background-color: #f9fbfd; /* delikatne tło zamiast czystej bieli */
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
    border-radius: 12px 0 0 12px;
    z-index: 1000;
    transition: all 0.4s ease-in-out;
    overflow-y: auto;
    transform: translateY(-50%);
}

.step-details-panel.active {
    right: 0;
}

/* Header panelu */
.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 26px;
    background: linear-gradient(90deg, #2b4a75, #1a365d);
    color: #ffffff;
    border-radius: 12px 0 0 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.panel-header h3 {
    margin: 0;
    font-size: 20px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.panel-close {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.panel-close:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.1);
}

/* Treść panelu */
.panel-content {
    padding: 28px;
    line-height: 1.7;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
}

.panel-content h4 {
    color: #1a365d;
    font-size: 18px;
    margin-bottom: 15px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
}

.panel-content p {
    margin-bottom: 16px;
}

.panel-content ul {
    margin-bottom: 20px;
    padding-left: 22px;
}

.panel-content li {
    margin-bottom: 10px;
    position: relative;
    list-style: none;
    padding-left: 20px;
}

.panel-content li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: 0;
    color: #0077b6;
    font-size: 14px;
    font-weight: bold;
}

/* Bloki segmentów energetycznych w panelu nr 3 */
.segment-block {
    margin: 12px 0;
    padding: 12px 14px;
    border-radius: 0 8px 8px 0;
}

.segment-block strong {
    display: block;
    margin-bottom: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
}

.segment-block p {
    margin: 0;
    font-size: 15px;
}

.segment-a {
    border-left: 4px solid #38a169;
    background: #f0fff4;
}

.segment-b {
    border-left: 4px solid #d69e2e;
    background: #fffff0;
}

.segment-c {
    border-left: 4px solid #e53e3e;
    background: #fff5f5;
}

.panel-note {
    margin-top: 14px;
    font-size: 13px;
    color: #718096;
}

/* Alert auto-modernizacji kotłowni (kolumna 3) — absolute pod sekcją, nie wpływa na layout */
.boiler-auto-alert {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 20px;
    right: 0;
    margin-top: 20px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.boiler-auto-alert.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}


.panel-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 44, 78, 0.25); /* delikatne półprzezroczyste tło */
    backdrop-filter: blur(1px);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.panel-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Efekt fade + slide */
.step-details-panel {
    opacity: 0;
}

.step-details-panel.active {
    opacity: 1;
    right: 0;
}

/* Responsywność panelu */
@media (max-width: 768px) {
    .step-details-panel {
        width: 85vw;
        right: -85vw;
        border-radius: 0;
    }

    .panel-header {
        border-radius: 0;
    }
}


/* ========== RESPONSYWNOŚĆ ========== */

/* Tablety 768–1024px — 3 kolumny bez wrap */
@media (max-width: 1024px) {
    .infographic-line-expanded {
        display: none;
    }

    .infographic-items-expanded {
        flex-wrap: nowrap;
        justify-content: space-around;
        gap: 10px;
    }

    .infographic-item-expanded {
        width: 18%;
        margin-bottom: 0;
    }

    .infographic-title-expanded {
        font-size: 14px;
    }

    .infographic-description-expanded {
        font-size: 12px;
    }

    .step-details-panel {
        width: 350px;
        right: -350px;
    }
}

/* Telefony poniżej 768px — kolumna pionowa, ikona + tekst poziomo */
@media (max-width: 768px) {
    .infographic-items-expanded {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .infographic-item-expanded {
        width: 100%;
        max-width: 320px;
        display: grid;
        grid-template-columns: 70px 1fr;
        grid-template-rows: auto auto;
        column-gap: 16px;
        text-align: left;
        align-items: center;
    }

    .infographic-icon-expanded {
        grid-column: 1;
        grid-row: 1 / 3;
        margin-bottom: 0;
        flex-shrink: 0;
        align-self: center;
    }

    .infographic-title-expanded {
        grid-column: 2;
        grid-row: 1;
        text-align: left;
        align-self: end;
        margin-bottom: 2px;
    }

    .infographic-description-expanded {
        grid-column: 2;
        grid-row: 2;
        text-align: left;
        align-self: start;
    }

    .infographic-item-expanded::before {
        left: -55px;
    }

    .step-details-panel {
        width: 85vw;
        right: -85vw;
    }
}

/* KONIEC DLA IKONOGRAFIKA */

/* Zmodernizowany cytat z linkami */
.highlight-quote {
    background-color: #daeeff;
    border-radius: 10px;
    padding: 24px;
    margin: 35px 0;
    font-size: 19px;
    font-style: italic;
    color: #003049;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05); /* Subtelniejszy cień */
    border-left: none;
}
.highlight-text { 						/* wyróżniony tekst pogrubiony i niebeiski  */ 
    color: #023e8a; /*#0066cc;    /*niebieski */
    font-weight: 600;
}

/* Pinezka */
.highlight-quote::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 0px;
    width: 40px;
    height: 40px;
    background-color: #0077b6; /*#1a365d; */
    border-radius: 50% 0 50% 50%;
    transform: rotate(135deg);
}

.highlight-quote p {
    margin: 0;
    padding-left: 20px;
}

.highlight-quote a {
    font-weight: 700;
    color: #023e8a; /*#0066cc;  niebeiski*/
    text-decoration: none;
    position: relative;
    transition: all 0.3s ease;
    padding-left: 5px;
    margin-right: 5px;
}

.highlight-quote a::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #0066cc;
    transition: width 0.3s ease;
}

.highlight-quote a:hover {
    color: #023e8a;
}

.highlight-quote a:hover::before {
    width: 100%;
}

/* Media queries dla responsywności */
@media (max-width: 768px) {
    .rules-content {
        font-size: 16px;
        padding: 0 15px;
        text-align: left;
    }
    
    .key-point {
        padding: 14px 16px;
    }
    
    .key-point-icon-large {
        width: 40px;
        min-width: 40px;
        margin-right: 15px;
    }
    
    .key-point-icon-large svg {
        width: 24px;
        height: 24px;
    }
    
    .key-point-text {
        font-size: 17px;
    }
    
    .highlight-quote {
        padding: 20px;
        font-size: 17px;
    }
    
    .highlight-quote::before {
        display: none;
    }
    
    .expanded-content {
        padding: 15px;
    }
}




/* Styl dla nowych kafelków w sekcji "Sprawdź co się zmieniło" */



/* ========== DOLNY RZĄD - INFOGRAFIKI ========== */


/* ========== RESPONSYWNOŚĆ ========== */

/* Responsywność dla tabletów */
@media (max-width: 1024px) {
    .changes-tiles {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    

}

/* Responsywność dla telefonów */
@media (max-width: 600px) {
    .changes-tiles {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .change-tile-horizontal {
        height: auto;
        flex-direction: column;
    }
    
    .tile-icon-area-horizontal {
        width: 100%;
        height: 80px;
    }
    
    .tile-text-area-horizontal {
        width: 100%;
        padding: 15px;
    }
   
    .comparison-intro {
        font-size: 16px;
        text-align: left;
    }
}

/* ======= Białe tło Sekcja - Pomcne narzędzia ========*/

/* Nowa sekcja - Pomocne narzędzia */
.comparison-section,
.tools-section {
    background-color: #ffffff;
    padding: 80px 0;
    position: relative;
}

.comparison-section .section-title,
.tools-section .section-title {
    text-align: left;
    margin-left: 20px;
    color: #0a2c4e;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
    font-family: 'Montserrat', sans-serif;
}

.comparison-section .section-title::after,
.tools-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #0077b6;
}

/* ======= Sekcja - Sprawdź kwoty dotacji = 3 kolumny ========*/
.dotation-calculator {
    background-color: #1a365d;
    padding: 80px 0;
    color: #ffffff;
}

.dotation-calculator .section-title {
    text-align: left;
    margin-left: 20px;
    color: #ffffff;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.dotation-calculator .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #0077b6;
}

.calculator-intro {
    max-width: 1160px;
    margin: 0 auto 40px;
    text-align: justify;
    line-height: 1.8;
    font-size: 18px;
    padding: 0 20px;
    color: #e2e8f0;
}

.intro-link {
    color: #e2e8f0;
    font-weight: 500;
    text-decoration: none;
    position: relative;
    display: inline-block;
}

.intro-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #e2e8f0;
    transition: width 0.3s ease;
}

.intro-link:hover::after {
    width: 100%;
}

.calculator-form {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* Układ trzykolumnowy */
.form-grid {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

.form-column {
    flex: 1;
    position: relative;
}

/*    usunięty separator pionowy szary
.column-separator::before {
    content: '';
    position: absolute;
    left: -15px;
    top: 0;
    height: 100%;
    width: 1px;
    background-color: #e2e8f0;
}
*/


/* Nagłówek sekcji formularza */
.section-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.section-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: #1a365d;
    margin-bottom: 0;
    display: flex;
    align-items: center;
}

/* Ikona informacyjna */
.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background-color: #ebf8ff;
    color: #0077b6;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #0077b6;
    margin-left: 8px;
}

.info-icon:hover {
    transform: scale(1.1);
    background-color: #0077b6;
    color: #ffffff;
}

/* Sekcje formularza */
.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    /* border-bottom: 1px solid #e2e8f0; */
}

.form-section:last-child {
    /* border-bottom: none; */
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Typ gospodarstwa */
.household-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.household-card {
    position: relative;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.household-card:hover {
    border-color: #1a365d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.household-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.household-card .card-content {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.household-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a365d;
}

.household-text {
    flex: 1;
}

.household-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1a365d;
    margin-bottom: 4px;
}

.household-description {
    font-size: 13px;
    color: #4a5568;
    line-height: 1.3;
}

/* Zaznaczone karty */
.household-card.selected,
.household-card input:checked + .card-content {
    background-color: #ebf8ff;
    border-color: #1a365d;
}

/* Opcje dochodowe */
.income-options {
    margin-bottom: 15px;
}

.income-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.income-option {
    position: relative;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.income-option:hover {
    border-color: #1a365d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.income-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.income-option input:checked + .income-label,
.income-option.selected .income-label {
    background-color: #ebf8ff;
    color: #1a365d;
    font-weight: 600;
}

.income-label {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 15px;
    color: #1a365d;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
    width: 100%;
}

.placeholder-text {
    color: #888;
    font-style: italic;
}

/* Segment energetyczny */
.segment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.segment-card {
    position: relative;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.segment-card:hover {
    border-color: #1a365d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.segment-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.segment-card .card-content {
    padding: 12px;
    text-align: left;
}

.segment-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1a365d;
    margin-bottom: 4px;
    line-height: 1.3;
}

.segment-value {
    font-size: 13px;
    color: #4a5568;
}

.segment-card.selected,
.segment-card input:checked + .card-content {
    background-color: #ebf8ff;
    border-color: #1a365d;
}

/* Alert */
.investment-alert {
    background-color: #ebf8ff;
    border: 1px solid #0077b6;
    border-radius: 8px;
    padding: 12px;
    margin-top: 15px;
    display: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
}

.investment-alert.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeIn 0.3s ease-in-out;
}

.alert-text {
    color: #1a365d;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
}

/* Inwestycje */

.investment-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}


.investment-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1a365d;
}

.investment-item input:checked + .card-content {
    background-color: #ebf8ff;
    /* border-color: #1a365d; */
}


/* Rodzaj źródła ciepła - NOWY UKŁAD JEDNOKOLUMNOWY */
#heatingTypesSection {
    position: relative;
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    /* ZMIANA: usunięto overflow: hidden - to powodowało ukrywanie separatora */
    overflow: visible;
    /* Dodano standardowe style sekcji formularza */
    margin-bottom: 80px;
    padding-bottom: 0;
    /* border-bottom: 1px solid #e2e8f0; */
    /* NOWE: dodano padding-left aby zrobić miejsce na separator */
    padding-left: 20px;
    margin-left: -20px;
}

#heatingTypesSection.visible {
    position: relative; 
    opacity: 1;
    transform: translateY(0);
    max-height: 1000px; /* Maksymalna wysokość dla animacji */
}

/* Style dla sekcji typów ogrzewania gdy jest aktywna */
#heatingTypesSection.active-section::before {
    content: "";
    position: absolute;
    left: 5px;  /* ZMIANA: przesunięto z -15px na 5px aby był widoczny */
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #0077b6;
    border-radius: 2px;
    opacity: 1;
    transition: opacity 0.3s ease;
    z-index: 1; /* DODANE: zapewnia że separator jest na wierzchu */
}

/* USUNIĘTE: reguła :not(.visible)::before która mogła powodować konflikty */

.heating-types {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    position: relative; /* DODANE: dla lepszego pozycjonowania */
}

.heating-type-card {
    width: 100%;
    position: relative;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.heating-type-card:hover {
    border-color: #1a365d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.heating-type-card input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.heating-type-card .card-content {
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.heating-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1a365d;
    flex-shrink: 0;
}

.heating-type-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1a365d;
    line-height: 1.3;
}

.heating-type-card.selected,
.heating-type-card input:checked + .card-content {
    background-color: #ebf8ff;
    border-color: #1a365d;
}

.heating-type-card.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* Sekcja wyniku */
.result-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 20px;
    border-radius: 10px;
    background-color: #ebf8ff;
}

.result-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.result-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: #1a365d;
}

.result-amount {
    font-size: 32px;
    font-weight: 700;
    color: #1a365d;
    transition: transform 0.3s ease, color 0.3s ease;
}

.result-amount.highlight {
    transform: scale(1.1);
    color: #0077b6;
}

/* Kontener przycisków */
.result-buttons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.print-pdf-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background-color: #1a365d;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.print-pdf-button:hover {
    background-color: #152b4d;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.print-pdf-button svg {
    transition: transform 0.3s ease;
}

.print-pdf-button:hover svg {
    transform: translateY(-2px);
}

/* Style dla sekcji formularza - blokowanie/odblokowanie */
.calculator-section {
    transition: opacity 0.3s ease, filter 0.3s ease;
}

.active-section {
    opacity: 1;
}

/* Dodatkowe style dla elementów wyłączonych */
.disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* Animacje */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Responsywność */
@media (max-width: 1200px) {
    .form-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .column-separator::before {
        display: none;
    }
    
    /* Dodajemy separatory poziome w układzie dwukolumnowym */
    .column-separator {
        position: relative;
    }
    
    .column-separator::after {
        content: '';
        position: absolute;
        left: 0;
        bottom: -15px;
        width: 100%;
        height: 1px;
        background-color: #e2e8f0;
    }
}

@media (max-width: 800px) {
    .form-grid {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .column-separator::before {
        display: none;
    }
    
    .result-section {
        flex-direction: column;
        gap: 20px;
    }
    
    .result-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .calculator-form {
        padding: 25px;
    }
}

@media (max-width: 500px) {
    .calculator-form {
        padding: 20px;
    }
    
    .calculator-intro {
        font-size: 16px;
        text-align: left;
    }
    
    .section-label {
        font-size: 16px;
    }
}



/* ========== NOWE STYLE DLA HIERARCHICZNEJ KONTROLI FORMULARZA ========== */

/* Style dla sekcji formularza - blokowanie/odblokowanie */
.calculator-section {
    transition: opacity 0.4s ease, filter 0.4s ease, transform 0.4s ease;
}

/* Sekcja aktywna */
.active-section {
    opacity: 1;
    transform: translateY(0);
    position: relative;
}

.active-section::before {
    content: "";
    position: absolute;
    left: -15px;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: #0077b6;
    border-radius: 2px;
    opacity: 1;
    transition: opacity 0.3s ease;
}

/* Sekcja zablokowana */
.disabled-section {
    opacity: 1;
    position: relative;

}

/* Usuwamy niebieską krawędź dla zablokowanych sekcji */
.disabled-section::before {
    display: none;
}

/* Dodatkowe wskaźniki wizualne dla zablokowanych elementów */
.disabled-section .household-card,
.disabled-section .income-option,
.disabled-section .segment-card,
.disabled-section .investment-item,
.disabled-section .heating-type-card {
    cursor: not-allowed !important;
    pointer-events: none;
}

.disabled-section .household-card:hover,
.disabled-section .income-option:hover,
.disabled-section .segment-card:hover,
.disabled-section .investment-item:hover,
.disabled-section .heating-type-card:hover {
    transform: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border-color: #e2e8f0 !important;
}

/* Placeholder dla sekcji dochodu */
.placeholder-text {
    color: #a0aec0 !important;
    font-style: italic !important;
    font-weight: 400 !important;
}

/* Wzmocnienie stylu dla aktywnych kart */
.active-section .household-card,
.active-section .income-option,
.active-section .segment-card,
.active-section .investment-item,
.active-section .heating-type-card {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.active-section .household-card:hover,
.active-section .income-option:hover,
.active-section .segment-card:hover,
.active-section .investment-item:hover,
.active-section .heating-type-card:hover {
    border-color: #1a365d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Style dla nagłówków sekcji */
.section-label {
    position: relative;
    transition: color 0.3s ease;
}

.active-section .section-label {
    color: #1a365d;
}

/* ========== NOWE STYLE DLA UJEDNOLICONEJ SEKCJI DOCHODU ========== */

/* Opcje dochodowe - nowy styl identyczny jak segmenty */
.income-options {
    margin-bottom: 15px;
}

.income-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.income-option {
    position: relative;
    background-color: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.income-option:hover {
    border-color: #1a365d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.income-option input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.income-option .card-content {
    padding: 12px;
    text-align: left;
}

.income-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1a365d;
    margin-bottom: 4px;
    line-height: 1.3;
}

.income-description {
    font-size: 13px;
    color: #4a5568;
}

.income-option.selected,
.income-option input:checked + .card-content {
    background-color: #ebf8ff;
    border-color: #1a365d;
}


/* Specjalne style dla tekstu placeholder w sekcji dochodu */
.income-title.placeholder-text {
    color: #1a365d !important;
    /* Zachowaj oryginalną grubość i styl czcionki z .income-title */
    font-style: normal !important;
    font-weight: 600 !important;
    font-family: 'Montserrat', sans-serif !important;
    font-size: 15px !important;
}

.income-description.placeholder-text {
    color: #a0aec0 !important;
    /* Zachowaj oryginalną grubość i styl czcionki z .income-description */
    font-style: normal !important;
    font-weight: normal !important;
    font-size: 13px !important;
}

/* Zapewnij że struktura pozostaje identyczna */
.income-option .card-content.placeholder {
    text-align: left; /* Nie center jak wcześniej */
    padding: 12px; /* Identyczny padding jak w aktywnym stanie */
}

/* Dodatkowe wskazanie że opcja jest nieaktywna */
.disabled-section .income-option .card-content {
    background-color: #f9fafb;
    cursor: not-allowed;
}

/* ========== AKTUALIZACJA STARYCH STYLÓW ========== */

/* Usuwamy stare style income-label, które są już niepotrzebne */
.income-label {
    display: none; /* Ukrywamy stary styl */
}

/* Zapewniamy kompatybilność z hierarchiczną kontrolą */
.disabled-section .income-option,
.disabled-section .income-option:hover {
    cursor: not-allowed !important;
    pointer-events: none;
    transform: none !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
    border-color: #e2e8f0 !important;
}

.active-section .income-option {
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.active-section .income-option:hover {
    border-color: #1a365d;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}


/* ==== KONIEC sekcji KALKULATOR DOTACJI ===== */

/* Styl czcionki nagłówka sekcji */ 
.section-title {
    font-family: 'Montserrat', sans-serif;
}

/* ============ Footer ============*/
.main-footer {
    background-color: #1a365d;
    color: #ffffff;
    padding: 50px 0 30px 0;
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand .footer-logo {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 20px;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.6;
}

.footer-nav h4,
.footer-contact h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #90cdf4;
    margin-bottom: 14px;
}

.footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-nav ul li a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-nav ul li a:hover {
    color: #ffffff;
}

.footer-contact p {
    font-size: 14px;
    opacity: 0.75;
    line-height: 1.8;
}

.footer-contact a {
    color: #90cdf4;
    text-decoration: none;
}

.footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.15);
	padding-top: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

.copyright {
	font-size: 13px;
	opacity: 0.5;
}
	.footer-bottom p {
	font-size: 13px;
	opacity: 0.6;
}

.footer-bottom a {
	color: rgba(255,255,255,0.6);
	text-decoration: none;
	font-size: 13px;
	transition: color 0.2s ease;
}

.footer-bottom a:hover { color: #ffffff; }
.footer-bottom-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

@media (max-width: 768px) {
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* ===========Nowa sekcja - Aktualności branżowe ==========*/
.news-section {
    background-color: #ffffff;
    padding: 80px 0;
    position: relative;
}
.news-section .section-title {
    text-align: left;
    margin-left: 20px;
    color: #0a2c4e;
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.news-section .section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 3px;
    background-color: #0077b6;
}

.news-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Główny slider */

.main-slider-container {
    position: relative;
    overflow: hidden; /* DODANE: ukrywa elementy poza kontenerem */
}

.slider-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    position: relative;
    background-color: #ffffff;
    width: 100%; /* DODANE: zapewnia pełną szerokość */
}

.slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
    position: relative;
    height: 480px;
    width: 300%; /* ZMIANA: 300% dla 3 slajdów */
}

.slide {
    min-width: 33.333%; /* ZMIANA: każdy slajd zajmuje 1/3 szerokości slidera */
    max-width: 33.333%; /* DODANE: maksymalna szerokość */
    position: relative;
    display: flex;
    flex-direction: column;
    flex-shrink: 0; /* DODANE: zapobiega kurczeniu się slajdów */
}

/* Reszta stylów bez zmian... */
.slide-image {
    height: 290px;
    overflow: hidden;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.slider-container:hover .slide-image img {
    transform: scale(1.05);
}

.slide-content {
    padding: 25px;
    background-color: #ffffff;
    flex: 1;
    position: relative;
    z-index: 5;
}

.slide-content h3 {
    color: #1a365d;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 22px;
    margin-bottom: 15px;
}

.slide-content p {
    color: #4a5568;
    font-size: 16px;
    margin-bottom: 20px;
}

.slide-link {
    color: #1a365d;
    font-weight: 00;
    text-decoration: none;
    font-size: 16px;
    display: inline-block;
    position: relative;
    cursor: pointer;
    z-index: 10;
}

.slide-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a365d;
    transition: width 0.3s ease;
}

.slide-link:hover::after {
    width: 100%;
}


/* Kontrolki slidera */
.slider-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    pointer-events: none; /* FIX: kontener nie blokuje kliknięć w slide-link */
}

.slider-arrow {
    background-color: rgba(255, 255, 255, 0.9); 
    border: none; 
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #1a365d; 
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    pointer-events: auto; /* FIX: strzałki nadal klikalne mimo pointer-events: none na rodzicu */
}

.slider-arrow:hover {
    background-color: #1a365d;
    color: white;
    transform: translateY(-2px);
}

.slider-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: white; 
    cursor: pointer;
    pointer-events: auto; /* FIX: kropki nadal klikalne mimo pointer-events: none na rodzicu */
    transition: transform 0.3s ease;
    border: 2px solid #1a365d;
}

.dot.active {
    background-color: #1a365d;
    transform: scale(1.2);
}

/* Sidebar z aktualnościami */
.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.news-item {
    background-color: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 140px;
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.news-image {
    width: 120px;
    flex-shrink: 0;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-item:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-content h4 {
    color: #1a365d;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-date {
    color: #718096;
    font-size: 14px;
    margin-bottom: 8px;
}

.news-link {
    color: #1a365d;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    margin-top: auto;
    position: relative;
    display: inline-block;
    align-self: flex-start; /* nie rozciąga się na całą szerokość flex-kontenera */
}

.news-link::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #1a365d;
    transition: width 0.3s ease;
}

.news-link:hover::after {
    width: 100%;
}

/* Back to top button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: white;  /*#1a365d; */
    color: #1a365d; /*white; strzałka */ 
    width: 45px;
    height: 45px;
	 /* border: 1px solid #1a365d; */
	border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    /*background-color: #f0f4f8; */
    transform: translateY(-3px);
}

/* Animation classes */
.js-slide-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-slide-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive styles */
@media (max-width: 1024px) {
    .changes-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 1024px) {
    .main-slider-container {
    max-width: 560px;
    margin: 0 auto;
	}
	
	.news-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 560px;   /* ogranicza szerokość kafelka */
    margin: 0 auto;
    }
    
    .news-item {
        height: auto;
        flex-direction: column;
        max-width: 100%;
    }
    
    .news-image {
        width: 100%;
        height: 160px;
    }

    .news-content {
        text-align: center;
    }

    .news-link {
        align-self: center;
    }
}

@media (max-width: 768px) {
    .main-header .container {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .modules-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .changes-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .checkbox-items {
        grid-template-columns: 1fr;
    }
    
    .slider {
        height: auto;
    }
    
    .slide {
        height: auto;
    }
    
    .slide-content {
        padding: 20px;
    }
    
    .slide-content h3 {
        font-size: 18px;
    }
}

/* do blokowanie MENU głónego gdy aktywuje sie panel slide-in */
/* Zapobiega scrollowaniu gdy panel jest otwarty */
body.panel-open {
    touch-action: none;
    -webkit-overflow-scrolling: touch;
}

/* Upewnij się, że header pozostaje widoczny */
body.panel-open .main-header {
    position: sticky;
    top: 0;
}

/* ========== POPRAWKI DLA PRZYCISKÓW KALKULATORA ========== */

/* Ogólne poprawki dla wszystkich kart wyboru */
.household-card.selected,
.household-card input:checked + .card-content,
.income-option.selected,
.income-option input:checked + .card-content,
.segment-card.selected,
.segment-card input:checked + .card-content,
/*.investment-item input:checked + .card-content, */
.heating-type-card.selected,
.heating-type-card input:checked + .card-content {
    background-color: #ebf8ff;
    border-color: #0077b6 !important; /* Jednolity kolor krawędzi dla wszystkich zaznaczonych elementów */
}

/* Specjalne poprawki dla sekcji dochodu */
.income-option .card-content {
    border-radius: 8px; /* Zmiana z 7px na 8px aby pasowało do kontenera */
}

.income-option.selected .card-content,
.income-option input:checked + .card-content {
    background-color: #ebf8ff;
    /* Krawędź jest już ustawiona na poziomie rodzica (.income-option) */
}

/* Zapewnienie że wszystkie karty mają jednolity border-radius */
.household-card .card-content,
.segment-card .card-content,
.investment-item .card-content,
.heating-type-card .card-content {
    border-radius: 7px; /* Konsekwentny border-radius dla wszystkich kart */
}

/* Poprawka dla alertów - upewnienie się że używają tego samego koloru */
.investment-alert {
    border-color: #0077b6; /* Jednolity kolor z zaznaczonymi przyciskami */
}

/* Dodatkowe wzmocnienie dla stanu hover zaznaczonych elementów */
.household-card.selected:hover,
.income-option.selected:hover,
.segment-card.selected:hover,
/*.investment-item input:checked + .card-content:hover, */
.heating-type-card.selected:hover {
    border-color: #005a8a; /* Ciemniejszy odcień dla hover na zaznaczonych elementach */
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 119, 182, 0.15); /* Cień w kolorze zgodnym z tematem */
}

/* Zapewnienie płynnych przejść */
.household-card .card-content,
.income-option .card-content,
.segment-card .card-content,
.investment-item .card-content,
.heating-type-card .card-content {
    transition: all 0.3s ease;
}

/* ========== STYLE DO DRUKU - KOMPAKTOWA WERSJA ========== */

/* ========== POPRAWIONE STYLE DO DRUKU - PROFESJONALNA WERSJA ========== */

@media print {
    /* Ukryj niepotrzebne elementy */
    .main-header,
    .main-nav,
    .hero,
    .trust-bar,
    .modules,
    .rules-section,
    .tools-section,
    .comparison-section,
    .news-section,
    .why-us-section,
    .main-footer,
    .back-to-top,
    .print-pdf-button,
    .reset-button,
    .panel-overlay,
    .step-details-panel,
    .result-buttons {
        display: none !important;
    }
    
    /* Pokaż TYLKO kalkulator dotacji */
    main {
        display: block !important;
    }
    
    /* Zapewnij że kalkulator jest na pojedynczej stronie */
    .dotation-calculator {
        page-break-before: auto;
        page-break-after: auto;
        page-break-inside: avoid;
    }

    /* Podstawowe formatowanie strony */
    body {
        font-family: 'Roboto', sans-serif;
        font-size: 10pt;
        line-height: 1.3;
        color: #1a202c;
        background: white;
        margin: 0;
        padding: 0;
    }

    /* Kontener główny */
    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }

    /* Kontener kalkulatora */
    .calculator-form {
        box-shadow: none;
        border: none;
        margin: 0;
        padding: 8pt;
        background: white;
        position: relative;
    }

    /* Tytuł sekcji - jednolity separator */
    .section-title {
        font-family: 'Montserrat', sans-serif;
        font-size: 18pt;
        font-weight: 700;
        margin: 0 0 6pt 0;
        text-align: center;
        color: #1a365d !important;
        border-bottom: 2pt solid #1a365d;
        padding-bottom: 6pt;
    }
	
	.section-title::after {
    display: none !important; /* Ukryj pseudo-element */
	}

	.section-title {
		border-bottom: 2pt solid #1a365d !important; /* Wymuś jeden styl */
	}
    
    /* Opis pod tytułem - bardziej kompaktowy */
    .calculator-intro {
        font-size: 12pt;
        color: #1a365d !important;
        text-align: justify;
        margin: 0 0 10pt 0;
        line-height: 1.4;
    }

    /* Ukryj cały formularz - pokażemy tylko podsumowanie */
    .form-grid {
        display: none !important;
    }

    /* Sekcja podsumowania - bez ramki */
    .print-summary {
        margin: 8pt 0;
        position: relative;
        padding: 8pt;
        background: white;
    }
    
    /* USUNIĘTY drugi znak wodny z tła */
    /* .print-summary::before - USUNIĘTE */

    .summary-item {
        position: relative;
        z-index: 1;
        padding: 8pt 0 6pt 0; /* ZMIANA: z 12pt na 8pt */
        border-bottom: 0.5pt solid #e2e8f0;
        page-break-inside: avoid;
    }

    .summary-item:last-child {
        border-bottom: none;
        margin-bottom: 10pt; /* ZMIANA: z 15pt na 10pt */
    }

    .summary-label {
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 10pt; /* ZMIANA: z 11pt na 10pt */
        color: #1a365d;
        display: block;
        margin-bottom: 3pt; /* ZMIANA: z 4pt na 3pt */
        position: relative;
        padding-left: 22pt; /* ZMIANA: z 25pt na 22pt */
    }
    
    /* Numer punktu - mniejszy i bardziej elegancki */
    .summary-label::before {
        content: counter(summary-counter);
        counter-increment: summary-counter;
        position: absolute;
        left: 0;
        top: 0;
        width: 16pt; /* ZMIANA: z 18pt na 16pt */
        height: 16pt;
        background: linear-gradient(135deg, #1a365d, #0077b6);
        color: white;
        border-radius: 50%;
        font-size: 8pt; /* ZMIANA: z 9pt na 8pt */
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    /* Reset licznika */
    .print-summary {
        counter-reset: summary-counter;
    }

    .summary-value {
        font-family: 'Roboto', sans-serif;
        font-weight: 400;
        font-size: 10pt; /* ZMIANA: z 11pt na 10pt */
        color: #1a202c;
        line-height: 1.3;
        padding-left: 22pt; /* ZMIANA: z 25pt na 22pt */
        display: block;
    }

    /* Breakdown kosztów - bardziej kompaktowy */
    .cost-breakdown {
        margin: 10pt 0; /* ZMIANA: z 15pt na 10pt */
        padding: 10pt; /* ZMIANA: z 12pt na 10pt */
        background: linear-gradient(135deg, #ebf8ff, #dbeafe);
        border: 1pt solid #0077b6;
        border-radius: 4pt; /* ZMIANA: z 6pt na 4pt */
        page-break-inside: avoid;
        position: relative;
        z-index: 1;
    }

    .breakdown-title {
        font-family: 'Montserrat', sans-serif;
        font-weight: 600;
        font-size: 11pt;
        color: #1a365d;
        margin: 0 0 8pt 0;
        text-align: center;
        border-bottom: 0.5pt solid #0077b6;
        padding-bottom: 4pt;
    }

    .breakdown-item {
        display: flex;
        justify-content: space-between;
        padding: 3pt 0; /* ZMIANA: z 5pt na 3pt */
        font-size: 9pt; /* ZMIANA: z 10pt na 9pt */
        color: #1a365d;
        font-weight: 500;
        align-items: center;
    }

    .breakdown-item.total {
        border-top: 2pt solid #1a365d;
        margin-top: 6pt;
        padding-top: 6pt;
        font-weight: 700;
        color: #1a365d;
        font-size: 11pt;
    }

    /* Ukryj duży wynik końcowy */
    .result-section {
        display: none !important;
    }

    /* Stopka z zastrzeżeniami - bardziej kompaktowa */
    .print-footer {
        margin-top: 12pt;
        padding-top: 6pt;
        border-top: 0.5pt solid #e2e8f0;
        font-size: 8pt;
        color: #4a5568;
        text-align: center;
        line-height: 1.2;
    }

    .print-footer p {
        margin: 2pt 0; /* DODANE: kontrola marginesów paragrafów */
    }

    /* Zapewnienie że wszystko mieści się na jednej stronie */
    .dotation-calculator {
        page-break-inside: avoid;
    }

    /* ZMNIEJSZONE marginesy strony dla lepszego wykorzystania przestrzeni */
    @page {
        margin: 10mm; /* ZMIANA: z 12mm na 10mm */
        size: A4;
    }

    /* DODATKOWE PROFESJONALNE ELEMENTY */
    
    /* Lepsza hierarchia wizualna dla wartości liczbowych */
    .breakdown-item span:last-child,
    .summary-value {
        font-family: 'Roboto', monospace; /* Monospace dla liczb - lepsze wyrównanie */
    }
    
    /* Wyróżnienie ważnych kwot */
    .breakdown-item.total span:last-child {
        font-family: 'Montserrat', sans-serif;
        font-weight: 700;
    }
}

/* ==========KONIEC POPRAWIONYCH STYLÓW DO DRUKU ========== */

/* ========================================
   POLAND MAP STYLES
   Style dla mapy Polski
   ======================================== */

/* ===== KONTENER MAPY W HERO ===== */
.hero-map-container {
    position: absolute;
    right: 0;
    top: 40%;
    transform: translateY(-50%);
    width: 50%;
    height: 95%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

/* ===== WRAPPER MAPY ===== */
.map-wrapper {
    position: relative;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}

/* ===== SVG MAPY ===== */
.poland-map {
    width: 100%;
    height: auto;
}


/* ===== WOJEWÓDZTWA ===== */
.voivodeship {
    fill: #ffffff;
    stroke: #cbd5e0;
    stroke-width: 0.8;
    cursor: pointer;
    transition: fill .2s ease, stroke .2s ease, filter .2s ease;
}

/* Hover - województwa Z firmami (bez klasy disabled) */
.voivodeship:not(.disabled):hover {
    fill: #dbeefe;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.12));
    cursor: pointer;
}

/* Active - kliknięcie tylko na województwa Z firmami */
.voivodeship:not(.disabled):active {
    fill: #0077b6;
    stroke: #005f8f;
}

/* ===== OPCJA B - WOJEWÓDZTWA BEZ FIRM ===== */
/* Domyślnie białe (nie szare!) */
.voivodeship.disabled {
    fill: #ffffff;  /* #ffffff; */
    cursor: pointer; 
    pointer-events: auto; 
	opacity: 1 ;
}

.voivodeship.disabled:hover {
    fill: #f7fafc;
    cursor: not-allowed; 
    filter: none; 
}

/* ===== TOOLTIP ===== */
.map-tooltip {
    position: absolute;
    background: rgba(26,54,93, 0.95);
    color: white;
    padding: 10px 14px;
    border-radius: 6px;
    pointer-events: none;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity .2s ease, transform .2s ease;
    z-index: 100;
}

.map-tooltip strong {
    display: block;
    font-size: 15px;
    margin-bottom: 4px;
}

.map-tooltip span {
    color: #90cdf4;
    font-size: 13px;
}

/* ===== MAP FOOTNOTE ===== */
.map-footnote {
    text-align: center;
    margin-top: 6px; 
    font-size: 14px;
    color: #718096;
}

.map-footnote strong {
    color: #2d3748;
    font-weight: 600;
}

/* ===== LOADING STATE ===== */
.loading {
    text-align: center;
    padding: 20px;
    color: #718096;
}

/* ===== RESPONSYWNOŚĆ MAPY ===== */
@media (max-width: 900px) {
    .hero {
        padding: 60px 0 20px 0;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 12px;
    }
    
    .hero-map-container {
        position: static;
        transform: none;
        width: 100%;
        height: auto;
        margin-top: -50px;
		justify-content: flex-start;
    }
    .poland-map {
        transform: translateX(-15%);
    }
    .map-wrapper {
        max-width: 420px;
    }
}

@media (max-width: 600px) {
    .map-wrapper {
        max-width: 420px;
    }
}

/* ===== RESPONSYWNOŚĆ NOWYCH SEKCJI ===== */
@media (max-width: 1024px) {
    .trust-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .trust-item {
        justify-content: center;
    }

    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    .why-us-grid {
        grid-template-columns: 1fr;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .trust-bar-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .trust-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .trust-item-text {
        align-items: center;
    }

    .tools-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
    }

    .tool-card {
        padding: 20px 18px;
    }

    .tool-card-icon {
        width: 44px;
        height: 44px;
    }

    .tool-card-icon svg {
        width: 24px;
        height: 24px;
    }

    .tool-card-title {
        font-size: 15px;
    }

    .tool-card-desc {
        font-size: 13px;
    }

    .hero-lead {
        font-size: 16px;
    }

    .why-us-lead {
        font-size: 15px;
    }

    .why-us-title::after {
        left: 0 !important;
        transform: none;
    }
	.main-nav {
		flex-wrap: wrap;
		justify-content: center;
		gap: 15px;
		font-size: 14px;
	}
}

@media (max-width: 600px) {
    .tool-card {
        display: grid;
        grid-template-columns: 52px 1fr;
        grid-template-rows: auto auto auto;
        column-gap: 14px;
        row-gap: 4px;
        padding: 16px;
        align-items: start;
    }

    .tool-card-icon {
        grid-column: 1;
        grid-row: 1 / 3;
        width: 44px;
        height: 44px;
        align-self: center;
        margin-bottom: 0;
    }

    .tool-card-tag {
        grid-column: 2;
        grid-row: 1;
        margin: 0;
        align-self: end;
    }

    .tool-card-title {
        grid-column: 2;
        grid-row: 2;
        font-size: 15px;
        margin: 0;
        align-self: start;
    }

    .tool-card-desc {
        grid-column: 1 / 3;
        grid-row: 3;
        font-size: 13px;
        margin-top: 8px;
    }

    .tool-card-link {
        grid-column: 1 / 3;
        grid-row: 4;
        margin-top: 4px;
    }
}
@media (max-width: 480px) {
    .main-nav { gap: 10px; }
    .nav-link { font-size: 14px; }
}

@media (max-width: 400px) {
    .trust-bar-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .trust-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
    }

    .trust-item-text {
        align-items: center;
    }
	
}