/* Kontener ogólny (max 1200px) */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

/* Font globalny */
body {
    font-family: 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    margin: 0;
}

/* ================= SEKCJE / NAGŁÓWKI ================= */

/* Wrapper */
.section-heading {
    margin-bottom: 60px;
    text-align: left;  /* Domyślnie center – można zmienić inline */
}

/* H2 z ikoną — ikona kotwiczy się do tekstu */
.section-heading h2 {
    position: relative;
    display: inline-block;    /* klucz – ikona ustawia się względem szerokości tekstu */
    padding-left: 35px;       /* miejsce na ikonę */
    font-size: 56px;
    font-weight: 800;
    margin: 0 0 12px;
    color: #333;
}

/* Ikona obok tekstu */
.section-heading h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15%;
    transform: translateY(-65%); /* lekko wyżej */
    width: 55px;
    height: 55px;
    background-image: url('/wp-content/themes/understrap/img/signeco.svg');
    background-repeat: no-repeat;
    background-size: contain;
}

/* H4 — opis sekcji */
.section-heading h4 {
    font-size: 18px;
    font-weight: 400;
    color: #666;
    max-width: 780px;
    margin: 0 auto;
    line-height: 1.5;
}


/* ================= WERSJA H3 (mniejsza) ================= */

.section-heading--small {
    margin-bottom: 45px;
    text-align: center;
}

.section-heading--small h3 {
    position: relative;
    display: inline-block;
    padding-left: 30px;
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}

.section-heading--small h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 40%;
    transform: translateY(-75%);
    width: 38px;
    height: 38px;
    background-image: url('/wp-content/themes/understrap/img/signeco.svg');
    background-repeat: no-repeat;
    background-size: contain;
}

.section-heading--small p {
    font-size: 16px;
    color: #666;
    margin: 0 auto;
    max-width: 600px;
}


/* ========== RESPONSYWNOŚĆ ========== */

@media (max-width: 767px) {
    .section-heading h2 {
        font-size: 34px;
        padding-left: 50px;
    }

    .section-heading h2::before {
        width: 38px;
        height: 38px;
    }

    .section-heading--small h3 {
        font-size: 22px;
        padding-left: 40px;
    }

    .section-heading--small h3::before {
        width: 28px;
        height: 28px;
    }
}


/* ================= HEADER ================= */

.eco-header {
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.06);
    margin-bottom: 30px;
}

/* Układ nagłówka: logo – menu – guzik po prawej */
.eco-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo po lewej */
.eco-logo {
    display: flex;
    align-items: center;
}

/* Logo w headerze — większe */
.eco-logo .custom-logo,
.eco-logo img {
    max-height: 86px;
    height: auto;
    width: auto;
    max-width: 100%;
    display: block;
}

.eco-logo-fallback {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
}

/* Kontener na menu + CTA po prawej */
.eco-header-right {
    display: flex;
    align-items: center;
    gap: 32px;
    margin-left: auto;
}

/* Menu główne */
.eco-main-nav {
    margin: 0;
}

.eco-main-nav .eco-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 32px;
}

.eco-main-nav .eco-menu > li {
    position: relative;
}

.eco-main-nav .eco-menu > li > a {
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
    color: #333333;
    transition: color 0.2s ease;
}

.eco-main-nav .eco-menu > li > a:hover,
.eco-main-nav .eco-menu > li.current-menu-item > a {
    color: #7cc242; /* zielony z logo */
}

/* przycisk w nagłówku */
.eco-header-cta {
    flex-shrink: 0;
}

.eco-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 26px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    border: none;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease;
}

.eco-btn--primary {
    background-color: #8cc63f;
    color: #ffffff;
    text-decoration: none !important;
}

/* Hover: jasnoszare tło, bez underline, z cieniem */
.eco-btn--primary:hover {
    background-color: #e8e8e8;
    color: #333333;
    text-decoration: none !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

/* ================= SUBMENU – DESKTOP ================= */

/* kontener sub-menu */
.eco-main-nav .eco-menu > li .sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 12px;
    list-style: none;
    padding: 8px 0;
    background: #ffffff;
    min-width: 220px;
    border-radius: 10px;
    box-shadow: 0 12px 30px rgba(0,0,0,0.12);

    /* ukryte domyślnie */
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 50;
}

/* reset listy wewnątrz sub-menu */
.eco-main-nav .eco-menu > li .sub-menu li {
    margin: 0;
    padding: 0;
}

/* linki w sub-menu */
.eco-main-nav .eco-menu > li .sub-menu li a {
    display: block;
    padding: 9px 18px;
    font-size: 14px;
    font-weight: 400;
    color: #333333;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

/* oddzielające linie między pozycjami */
.eco-main-nav .eco-menu > li .sub-menu li + li a {
    border-top: 1px solid #f1f1f1;
}

/* hover na pozycji sub-menu – zielone tło + biały tekst */
.eco-main-nav .eco-menu > li .sub-menu li a:hover {
    background-color: #94ba12;
    color: #ffffff;
    padding-left: 22px; /* lekkie „wsunięcie” przy hover */
}

/* POKAZYWANIE – najechanie na pozycję główną */
.eco-main-nav .eco-menu > li:hover > .sub-menu,
.eco-main-nav .eco-menu > li:focus-within > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* subtelne podkreślenie aktywnego parenta, gdy sub-menu jest otwarte */
.eco-main-nav .eco-menu > li:hover > a,
.eco-main-nav .eco-menu > li:focus-within > a {
    color: #7cc242;
}


/* ================= HAMBURGER ================= */

/* Domyślnie ukryty (desktop) */
.eco-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    margin-left: 8px;
}

/* Grubsze, zielone kreski */
.eco-menu-toggle span {
    display: block;
    width: 26px;
    height: 3px;
    background-color: #94ba12; /* zielony motyw */
    border-radius: 999px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.eco-menu-toggle span + span {
    margin-top: 5px;
}

/* ================= FOOTER ================= */

/* FOOTER WRAPPER — pełna szerokość */
.eco-footer-wrapper {
    width: 100%;
    max-width: 100%;
    padding: 0;
    margin: 0;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08) inset;
}

/* Kontener w stopce — 1200px max */
.eco-footer-wrapper .container {
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

/* sama stopka – bez dodatkowych cieni */
.eco-footer {
    background-color: #ffffff;
    border-top: 1px solid #e5e5e5; /* subtelna linia */
    box-shadow: 0 -2px 8px rgba(0,0,0,0.06); /* bardzo delikatny cień w dół */
    position: relative;
    z-index: 2;
}

/* wnętrze – 4 kolumny (widgety) */
.eco-footer-inner {
    padding: 40px 0 32px;
    display: flex;
    gap: 80px;
    align-items: flex-start;
}

/* pojedyncza kolumna */
.eco-footer-column {
    flex: 1;
    min-width: 160px;
}

/* pierwsza kolumna (logo + opis) może być szersza */
.eco-footer-brand {
    flex: 1.2;
    max-width: 360px;
}

/* tytuły widgetów (np. 'Mapa strony') */
.eco-footer-title {
    font-size: 14px;
    font-weight: 600;
    color: #94ba12;
    margin: 0 0 12px;
}

/* domyślne teksty w stopce */
.eco-footer-column,
.eco-footer-column p {
    font-size: 13px;
    line-height: 1.6;
    color: #666666;
}

/* listy w kolumnach (widgety) */
.eco-footer-column ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eco-footer-column ul li {
    margin-bottom: 6px;
}

/* linki w stopce */
.eco-footer-column a {
    text-decoration: none;
    color: #333333;
    font-size: 13px;
    transition: color 0.2s ease;
}

.eco-footer-column a:hover {
    color: #7cc242;
}

/* dół stopki – linia + tekst + know.it */
.eco-footer-bottom {
    border-top: 1px solid #eeeeee;
    font-size: 12px;
    color: #888888;
    text-align: center;
    padding: 10px 0 12px;
}

.eco-footer-bottom a {
    color: #7cc242;
    text-decoration: none;
}

.eco-footer-bottom a:hover {
    text-decoration: underline;
}

/* ================= SEKCJE / NAGŁÓWKI ================= */

/* Tło strony bloga */
#archive-wrapper {
    background: #ffffff;
    padding: 40px 0;
}

/* Kontener max 1350px */
.blog-archive-inner {
    max-width: 1350px;
    margin: 0 auto;
    padding: 0 20px;
}

/* GRID – stałe „kafle”, responsywne */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

/* KARTA POSTU */
.blog-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border-radius: 18px; /* subtelny radius */
    box-shadow: 0 6px 14px rgba(0,0,0,0.06); /* delikatny cień */
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Obrazek */
.blog-card__image {
    position: relative;
    overflow: hidden;
}

.blog-card__image img,
.blog-card__image--placeholder {
    width: 100%;
    height: 190px;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease, filter 0.35s ease;
}

/* Placeholder gdy brak miniatury */
.blog-card__image--placeholder {
    background: #e5e5e5;
}

/* Treść karty */
.blog-card__body {
    padding: 18px 18px 20px;
}

/* Tytuł */
.blog-card__title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    color: #222;
}

/* Excerpt */
.blog-card__excerpt {
    margin: 0 0 16px;
    font-size: 14px;
    color: #555;
}

/* Button "Czytaj więcej" */
.blog-card__button {
    display: inline-block;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgb(148, 186, 18); /* kolor bazowy */
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

/* HOVER CAŁEJ KARTY */
.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

/* Obrót + grayscale obrazka przy hover */
.blog-card:hover .blog-card__image img {
    transform: scale(1.05) rotate(3deg);
    filter: grayscale(100%);
}

/* Button na hover – szary + lekki zoom */
.blog-card:hover .blog-card__button {
    background: #e0e0e0;
    color: #333;
    transform: scale(1.04);
}

/* Małe ekrany – trochę mniejsze marginesy */
@media (max-width: 576px) {
    .blog-archive-inner {
        padding: 0 12px;
    }

    .blog-card__image img,
    .blog-card__image--placeholder {
        height: 170px;
    }
}


/* Tło całej sekcji bloga */
#archive-wrapper {
    background: #ffffff;
    padding: 0 0 40px;
}


/* HERO HEADER */
.blog-hero {
    position: relative;
    background: url('https://ecokonstrukcje.pl/wp-content/uploads/2025/12/bgblog.webp')
                center/cover no-repeat;
    padding: 90px 20px 110px;
    text-align: center;
    color: #ffffff; /* białe fonty */
}

/* Ciemna półprzezroczysta warstwa dla lepszej czytelności */
.blog-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.35); /* lekkie przyciemnienie */
    z-index: 1;
}

.blog-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 1350px;
    margin: 0 auto;
}

.blog-hero__title {
    margin: 0 0 12px;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #ffffff; /* biały tytuł */
}

.blog-hero__subtitle {
    margin: 0;
    font-size: 18px;
    color: #f1f1f1; /* jaśniejszy biały */
}


/* Kontener treści bloga */
.blog-archive-inner {
    max-width: 1350px;
    margin: 40px auto 0;
    padding: 0 20px 70px; /* padding na dole, żeby nie kleiło się do stopki */
}

/* GRID – dokładnie 3 kolumny na desktopie */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* RWD: 2 kolumny na tablet, 1 na mobile */
@media (max-width: 991px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 576px) {
    .blog-archive-inner {
        padding: 0 12px 50px;
    }
    .blog-grid {
        grid-template-columns: 1fr;
    }
}

/* Tło + oddech wokół pojedynczego wpisu */
#single-wrapper {
    background: #ffffff;
    padding: 40px 0 60px;
}

/* Karta wpisu */
.single-post-card {
    max-width: 900px;
    margin: 0 auto 40px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* Obraz wpisu */
.single-post-card__image {
    position: relative;
    overflow: hidden;
}

.single-post-card__image img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

/* Body */
.single-post-card__body {
    padding: 26px 28px 28px;
}

/* Meta (data + kategorie) */
.single-post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.single-post-card__cats a {
    color: rgb(148, 186, 18);
    text-decoration: none;
    font-weight: 500;
}

.single-post-card__cats a:hover {
    text-decoration: underline;
}

/* Tytuł wpisu */
.single-post-card__title {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 800;
    color: #222;
}

/* Treść */
.single-post-card__content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.single-post-card__content p {
    margin-bottom: 1.2em;
}

/* Nawigacja poprzedni / następny */
.single-post-card__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.single-post-card__nav-item {
    flex: 1;
}

/* Przyciski nawigacji */
.post-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 999px;
    background: rgb(148, 186, 18);
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    justify-content: center;
    transition: background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.post-nav-btn__arrow {
    font-size: 15px;
}

/* Hover: szary + lekki zoom */
.post-nav-btn:hover {
    background: #e0e0e0;
    color: #333;
    transform: translateY(-1px) scale(1.02);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

/* Gdy jest tylko jeden przycisk – wyrównanie */
.single-post-card__nav-item--prev {
    text-align: left;
}
.single-post-card__nav-item--next {
    text-align: right;
}

/* RWD */
@media (max-width: 768px) {
    .single-post-card {
        margin-bottom: 30px;
    }

    .single-post-card__body {
        padding: 20px;
    }

    .single-post-card__title {
        font-size: 24px;
    }

    .single-post-card__nav {
        flex-direction: column;
        align-items: stretch;
    }

    .single-post-card__nav-item--prev,
    .single-post-card__nav-item--next {
        text-align: center;
    }

    .post-nav-btn {
        width: 100%;
        justify-content: center;
    }

    .single-post-card__image img {
        height: 260px;
    }
}




/* ================= puntatory ================= */

/* Podstawowy styl list */
ul.custom-bullets {
    margin: 14px 0 18px 0;
    padding-left: 22px; /* lekkie wcięcie od lewej */
    list-style-type: square; /* kwadratowe bullet pointy */
}

/* Pojedynczy punkt */
ul.custom-bullets li {
    margin-bottom: 8px;
    padding: 4px 6px;
    color: #333;
    line-height: 1.45;
    transition: background-color 0.25s ease, padding-left 0.25s ease;
}

/* Kolor punktatora */
ul.custom-bullets li::marker {
    color: rgb(148, 186, 18);
}

/* Efekt hover na każdym punkcie */
ul.custom-bullets li:hover {
    background-color: rgba(148, 186, 18, 0.12);
    padding-left: 10px; /* delikatne przesunięcie w prawo */
    border-radius: 4px;
}


/* ================= LISTY ZE STRZAŁKAMI W STOPCE ================= */

.footer-arrow-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-arrow-list li {
    margin-bottom: 6px;
}

.footer-arrow-list a {
    text-decoration: none;
    color: #333333;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    transition: color 0.2s ease;
}

.footer-arrow {
    margin-right: 8px;
    font-size: 12px;
    color: #94ba12;
    display: inline-block;
    transition: transform 0.2s ease;
}

.footer-arrow-list a:hover .footer-arrow {
    transform: translateX(3px);
}

.footer-arrow-list a:hover {
    color: #7cc242;
}

/* ================= OVERLAY MENU MOBILNE ================= */

.eco-mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: #ffffff;           /* cały ekran biały */
    display: none;                 /* ukryte na start */
    align-items: stretch;
    justify-content: center;
    z-index: 9999;
}

.eco-mobile-menu-overlay.is-open {
    display: flex;
}

/* Zamiast "pudełka" – pełna szerokość, góra nawigacja */
.eco-mobile-menu {
    background: transparent;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    padding: 20px 20px 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Przycisk X w prawym górnym rogu */
.eco-mobile-menu-close {
    position: absolute;
    top: 18px;
    right: 20px;
    background: none;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #333333;
}

/* Reset nawigacji Understrapa wewnątrz overlay */
.eco-mobile-menu-nav {
    margin: 0;
    padding: 0;
    flex: 1;
    display: flex;
    align-items: center;           /* pozycje mniej więcej na środku wysokości */
    justify-content: center;
}

/* Lista – kolumna, wyśrodkowana */
.eco-mobile-menu-nav .eco-mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 60px 0 0;             /* mały offset od góry, żeby nie „wchodzić” w X */
    width: 100%;
    max-width: 420px;
}



/* ================= SIATKA WYRÓŻNIKÓW ================= */

.feature-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    max-width: 360px;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI",
      Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-item:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    background: #8cc63f;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 18px;
    flex-shrink: 0;
    overflow: hidden;
    transition: transform 0.25s ease, background-color 0.25s ease;
}

.feature-item:hover .feature-icon {
    transform: scale(1.06);
    background: #7ab02f;
}

.feature-icon img {
    max-width: 60%;
    height: auto;
}

.feature-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 6px;
}

.feature-content p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    color: #555;
}

/* ================= PARALLAX SEKCJE ================= */

.eco-parallax-row {
    position: relative;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    min-height: 400px;
    z-index: 1;
}

.eco-parallax-row > .wpb_column,
.eco-parallax-row > .vc_column_container {
    position: relative;
    z-index: 2;
}

/* ================= RESPONSYWNOŚĆ ================= */

@media (max-width: 992px) {
    .eco-footer-inner {
        flex-direction: column;
        gap: 24px;
    }
}

@media (max-width: 900px) {
    .eco-header-inner {
        flex-wrap: nowrap;
        justify-content: space-between;
        row-gap: 0;
    }

    /* na mobile chowamy klasyczne menu + CTA */
    .eco-main-nav,
    .eco-header-cta {
        display: none;
    }

    /* pokazujemy hamburgera */
    .eco-menu-toggle {
        display: inline-flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .eco-footer-inner {
        flex-direction: column;
        gap: 32px;
    }

    .feature-grid {
        gap: 24px;
    }

    .feature-item {
        max-width: 100%;
    }

    .eco-parallax-row {
        background-attachment: scroll; /* fix na mobile */
    }
}

/* ================= KROKI / NUMEROWANE BLOKI ================= */

.eco-steps {
    max-width: 800px;          /* możesz zmienić lub usunąć, jeśli ma być szerzej */
    margin: 0 auto 60px;
}

.eco-step {
    display: flex;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid #eeeeee;   /* subtelny divider */
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.eco-step:last-child {
    border-bottom: none;
}

/* Numer po lewej */
.eco-step-number {
    font-family: "Poppins", sans-serif;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    margin-right: 26px;
    color: #d0d0d0;                 /* nieaktywny – jasny szary */
    transform: scale(0.9);          /* minimalnie mniejszy gdy nieaktywny */
    transform-origin: left center;
    transition: color 0.2s ease, transform 0.2s ease;
}

/* Treść po prawej */
.eco-step-content {
    flex: 1;
}

.eco-step-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #777777;
    margin: 4px 0 4px;
}

.eco-step-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin: 0;
}

/* Aktywny / hover – zielony numer + lekki zoom */
.eco-step.is-active .eco-step-number,
.eco-step:hover .eco-step-number {
    color: #94ba12;
    transform: scale(1.05);
}

/* Opcjonalnie delikatne tło na hover */
.eco-step:hover {
    background-color: #fafafa;
}

/* Mobile: trochę mniejszy numer */
@media (max-width: 767px) {
    .eco-step-number {
        font-size: 48px;
        margin-right: 18px;
    }
}


/* ======== FORMULARZ LEAD ======== */

.form-lead {
    background: #ffffff;
    padding: 40px;
    border-radius: 14px;
    max-width: 550px;
    margin: 0 auto 60px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
    position: relative;
    z-index: 2;
    font-family: "Poppins", sans-serif;
}

.form-lead label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}


.form-lead-title {
	font-weight: 700;

	
}
	

.form-lead input,
.form-lead textarea {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #dcdcdc;
    border-radius: 8px;
    background: #f8f8f8;
    font-size: 15px;
    margin-top: 6px;
    margin-bottom: 22px;
    transition: all .2s ease;
    font-family: "Poppins", sans-serif;
}

.form-lead input:focus,
.form-lead textarea:focus {
    border-color: #94ba12;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(124, 194, 66, 0.15);
    outline: none;
}

/* Checkbox RODO */
.form-lead-accept {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 26px;
}

.form-lead-accept input {
    width: auto !important;
    margin-top: 4px;
}

/* Przycisk */
.form-lead-submit input[type="submit"] {
    background: #94ba12;
    border: none;
    color: white;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    width: 100%;
    transition: 0.2s ease;
}

.form-lead-submit input[type="submit"]:hover {
    background: #6bb235;
    box-shadow: 0 8px 20px rgba(124, 194, 66, 0.35);
    transform: translateY(-2px);
}

/* Mobile */
@media (max-width: 600px) {
    .form-lead {
        padding: 28px;
    }
}
/* ========== FORM-LEAD – COMPACT WERSJA ========== */

/* Cały formularz trochę niższy */
.form-lead {
    padding: 28px 28px;
    max-width: 480px;
    margin: 0 auto 40px;
}

/* CF7 owija każde pole w .wpcf7-form-control-wrap – ustawiamy go w 1 kolumnie */
.form-lead .wpcf7-form-control-wrap {
    display: block;
    margin-bottom: 10px;
}

/* Pola: mniejsze odstępy, niższe inputy */
.form-lead input,
.form-lead textarea {
    margin: 0 0 12px;
    padding: 10px 14px;
    font-size: 14px;
}

/* Tekst placeholdera niech będzie delikatniejszy */
.form-lead ::placeholder {
    color: #999;
    opacity: 1;
}

/* Checkbox RODO – ciaśniej i czytelniej */
.form-lead-accept {
    font-size: 12px;
    line-height: 1.4;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 8px 0 18px;
}

.form-lead-accept input[type="checkbox"] {
    width: auto !important;
    margin-top: 2px;
}

/* Przycisk – poprawione wyświetlanie, tekst wyśrodkowany */
.form-lead-submit {
    text-align: center;
}

.form-lead-submit input[type="submit"] {
    display: inline-block;
    width: 100%;
    max-width: 260px;        /* jeśli chcesz full width – usuń tę linię */
    padding: 10px 24px;
    font-size: 15px;
    line-height: 1.2;
    border-radius: 999px;
}

/* Na mobile można dać trochę większą szerokość paddingu */
@media (max-width: 480px) {
    .form-lead {
        padding: 22px 18px;
    }
}

/* ================= KAFELKI PRODUKTÓW Z BUBLEM ================= */

.eco-product-card {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    margin: 1px;                           /* 1px z każdej strony */
    background-color: #000;                /* zapasowo pod obrazek */
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* kontener z tłem */
.eco-product-card__bg {
    position: relative;
    width: 100%;
    padding-top: 56%;                      /* ok. 16:9 */
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    transition: transform 0.4s ease, filter 0.4s ease;
}

/* lekki cień na dole obrazka */
.eco-product-card__bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.0),
        rgba(0,0,0,0.28)
    );
    pointer-events: none;
}

/* biały „bąbel” z tytułem i opisem */
.eco-product-card__overlay {
    position: absolute;
    left: 50%;
    bottom: 12%;
    transform: translateX(-50%);
    min-width: 58%;
    max-width: 80%;
    background: #ffffff;
    border-radius: 999px;
    box-shadow: 0 14px 40px rgba(0,0,0,0.25);
    padding: 14px 28px;
    text-decoration: none;
    color: #333333;
    display: inline-block;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
    filter: none;                           /* ZAWSZE kolorowy tekst */
}

/* wnętrze bąbla jako kolumna */
.eco-product-card__overlay-inner {
    display: flex;
    flex-direction: column;
}

/* Tytuł (h4) */
.eco-product-card__title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 4px;
}

/* mały podpis pod tytułem */
.eco-product-card__subtitle {
    font-size: 13px;
    font-weight: 500;
    color: #777777;
    margin: 0 0 6px;
}

/* opis */
.eco-product-card__text {
    font-size: 13px;
    line-height: 1.5;
    color: #555555;
    margin: 0;
}

/* HOVER – cały kafelek (delikatne podniesienie) */
.eco-product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(0,0,0,0.16);
}

/* obrazek: grayscale + zoom + lekka rotacja */
.eco-product-card:hover .eco-product-card__bg {
    filter: grayscale(100%);
    transform: scale(1.06) rotate(2.5deg);
}

/* bąbel: tylko lekki zoom w górę, BEZ grayscale i rotacji */
.eco-product-card:hover .eco-product-card__overlay {
    transform: translate(-50%, -4px) scale(1.03);
    box-shadow: 0 22px 55px rgba(0,0,0,0.28);
    filter: none;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 991px) {
    .eco-product-card__overlay {
        min-width: 70%;
        padding: 12px 22px;
    }

    .eco-product-card__title {
        font-size: 18px;
    }

    .eco-product-card__text {
        font-size: 12px;
    }
}

@media (max-width: 575px) {
    .eco-product-card {
        margin: 8px 0;
    }

    .eco-product-card__overlay {
        min-width: 80%;
        max-width: 90%;
        bottom: 10%;
        padding: 10px 18px;
    }

    .eco-product-card__title {
        font-size: 16px;
    }
}

/* ================= KAFELKI W WIERSZU .produktyeco ================= */

/* 1. Usuwamy wewnętrzne paddingi kolumn, żeby przerwy były kontrolowane kartą */
.produktyeco .vc_column_container > .vc_column-inner {
    padding-left: 0;
    padding-right: 0;
}

/* 2. Kafelek – tylko 1px marginesu + brak zaokrąglonych rogów */
.produktyeco .eco-product-card {
    margin: 1px;
    border-radius: 0;
    overflow: hidden; /* żeby obrazek nie wystawał */
    filter: none;
}

/* 3. Grayscale TYLKO na obrazku, nigdy na tekście */
.produktyeco .eco-product-card__bg {
    filter: none;
}

.produktyeco .eco-product-card:hover {
    filter: none;
}

.produktyeco .eco-product-card:hover .eco-product-card__bg {
    filter: grayscale(100%);
    transform: scale(1.06) rotate(2.5deg);
}

/* bąbel w wierszu produktyeco – zawsze kolorowy, tylko lekki zoom */
.produktyeco .eco-product-card__overlay {
    border-radius: 32px;          /* zamiast 999px – stała wartość */
    filter: none !important;
}

.produktyeco .eco-product-card:hover .eco-product-card__overlay {
    transform: translate(-50%, -4px) scale(1.03);
    box-shadow: 0 22px 55px rgba(0,0,0,0.28);
    filter: none !important;
}

/* mniejszy radius na bardzo małych ekranach */
@media (max-width: 575px) {
    .produktyeco .eco-product-card__overlay {
        border-radius: 26px;
    }
}

.eco-box {
    background-color: #94ba12;
    color: #ffffff;
    padding: 40px 50px;
    max-width: 520px;
    border-radius: 40px 0 40px 0; /* dokładnie jak na grafice: zaokrąglenia naprzemienne */
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.eco-heading {
    margin: 0 0 18px 0;
    font-size: 32px;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
}

.bialy {
    color: #ffffff;
    font-size: 15px;
    line-height: 1.55;
    margin: 0;
}

/* Opcjonalnie: responsywna skala dla mobile */
@media (max-width: 600px) {
    .eco-box {
        padding: 25px 30px;
        border-radius: 30px 0 30px 0;
    }
    .eco-heading {
        font-size: 26px;
    }
}

/* --- HERO SLIDER – UKŁAD JAK NA WZORZE --- */

.eco-hero {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
    min-height: 520px;      /* ważne */
}
.eco-hero__title {
    font-weight: 800 !important;   /* grubszy niż standard */
    color: #ffffff;     /* na pewno biały */
}

/* duża grafika */
.eco-hero__image-wrap {
    width: 70%;
    position: relative;
    z-index: 1;
}

.eco-hero__image {
    width: 100%;
    height: auto;
    display: block;
}

/* BOX – absolutny i zachodzący na zdjęcie */
.eco-hero__content {
    position: absolute;
    top: 25%;               /* ~1/3 wysokości */
    left: 47%;              /* wchodzimy w zdjęcie */
    width: 45%;
    background: #94ba12;
    border-radius: 80px 0 80px 0;
    padding: 40px 50px;
    z-index: 5;
    box-shadow: 0 18px 45px rgba(0,0,0,0.12);
    color: #ffffff;         /* domyślnie biały tekst wewnątrz */
}

/* nagłówek i paragraf – na pewno białe */
.eco-hero__content h3,
.eco-hero__text {
    color: #ffffff;
}

.eco-hero__content h3 {
    margin: 0 0 14px 0;
}

.eco-hero__text {
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.55;
}

/* BUTTON */
.eco-hero__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: 999px;
    background-color: #333333;
    color: #f0f0f0 !important;      /* jasnoszary tekst, bez niebieskiego */
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 10px 25px rgba(0,0,0,0.25);
    transition: 0.2s ease;
}

.eco-hero__btn:hover,
.eco-hero__btn:focus {
    background-color: #000000;
    color: #ffffff !important;      /* biały tekst na hover, dalej bez niebieskiego */
    transform: translateY(-2px) scale(1.05);
}

/* SLIDE-IN ANIMATION */
.js-slide-in-left {
    opacity: 0;
    transform: translateX(-90px);
    transition: opacity .8s ease, transform .8s ease;
}

.js-slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* SCROLL → GREYSCALE (globalnie) */
.js-scroll-grey {

    filter: grayscale(var(--grey-amount));
    transition: filter 0.4s ease;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 992px) {
    .eco-hero {
        flex-direction: column;
        padding: 50px 20px;
    }

    .eco-hero__image-wrap {
        width: 100%;
        max-width: 100%;
    }

    .eco-hero__content {
        position: static;
        width: 100%;
        margin-top: -40px;
        border-radius: 50px 0 50px 0;
        padding: 32px 32px;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .eco-hero {
        padding: 30px 12px;
    }

    .eco-hero__content {
        padding: 22px 20px;
    }

    .eco-hero__text {
        font-size: 14px;
    }
}


@media (max-width: 767px) {
    .eco-hero {
        padding: 40px 16px;
    }

    .eco-hero__image-wrap {
        width: 100%;
    }

    .eco-hero__content {
        position: static;      /* pod obrazem, nie na nim */
        width: 100%;
        margin-top: 16px;      /* zamiast ujemnej wartości */
        border-radius: 30px 0 30px 0;
        box-shadow: 0 12px 30px rgba(0,0,0,0.12);
        text-align: left;      /* albo center – jak wolisz */
    }

    .eco-hero__content h3 {
        font-size: 26px;
        line-height: 1.25;
    }

    .eco-hero__text {
        font-size: 14px;
    }
}

/* ================== CONTACT CTA ================== */

.contact-cta {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 80px 40px;
}

.contact-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

/* LEWA KOLUMNA – PODNIESIONY TEKST */
.contact-cta__content {
    flex: 0 0 45%;
    position: relative;
    margin-top: -60px; /* wysokość możesz dopasować */
}

@media (max-width: 1092px) {
    .contact-cta__content {
        margin-top: 0; /* normalne zachowanie w wersji mobilnej */
    }
}


/* nagłówek – aktywacja stylu z ikoną */
.contact-cta__title {
    font-size: 44px;
    line-height: 1.1;
    font-weight: 800;
    margin: 0 0 24px 0;
    color: #333333;
    position: relative;
    padding-left: 70px; /* przestrzeń na ikonę */
}

.form-lead-title {
	font-weight: 700;
	padding-bottom: 20px;
		
}




.contact-cta__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10%;
    transform: translateY(-65%);
    width: 55px;
    height: 55px;
    background-image: url('/wp-content/themes/understrap/img/signeco.svg');
    background-repeat: no-repeat;
    background-size: contain;
}

/* zielone wyróżnienie */
.contact-cta__highlight {
    color: #94ba12;
}

/* paragraf */
.contact-cta__text {
    margin: 0 0 32px 0;
    font-size: 15px;
    line-height: 1.6;
    color: #555555;
}

/* prawa kolumna – grafika */
.contact-cta__image-wrap {
    flex: 0 0 45%;
    text-align: right;
}

.contact-cta__image {
    max-width: 100%;
    height: auto;
    display: inline-block;
}


/* animacje: używasz już w innych sekcjach */

.js-slide-in-left {
    opacity: 0;
    transform: translateX(-60px);
    transition: opacity .8s ease, transform .8s ease;
}

.js-slide-in-left.is-visible {
    opacity: 1;
    transform: translateX(0);
}

/* scroll → greyscale */
.js-scroll-grey {
    --grey-amount: 0;
    filter: grayscale(var(--grey-amount));
    -webkit-filter: grayscale(var(--grey-amount));
    transition: filter 0.4s ease, -webkit-filter 0.4s ease;
}



/* ================== RESPONSYWNOŚĆ ================== */

@media (max-width: 1092px) {
    .contact-cta {
        padding: 60px 24px;
    }

    .contact-cta__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .contact-cta__content,
    .contact-cta__image-wrap {
        flex: 0 0 auto;
        width: 100%;
    }

    .contact-cta__image-wrap {
        text-align: center;
        margin-top: 10px;
    }

    .contact-cta__title {
        font-size: 36px;
    }
}

@media (max-width: 600px) {
    .contact-cta {
        padding: 40px 16px;
    }

    .contact-cta__title {
        font-size: 30px;
    }
}

.contact-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 360px;
    font-family: inherit;
}

/* TOP: nazwa firmy + ikona */
.contact-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.contact-header-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    background: #1976d2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    flex-shrink: 0;
}

.contact-header h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.contact-header a {
    font-size: 14px;
    color: #666;
    text-decoration: none;
}

.contact-header a:hover {
    text-decoration: underline;
}

/* WIERSZE: email / telefon / adres */
.contact-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.contact-row-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #e9eef6;
    color: #1976d2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.contact-row-content p {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.35;
}

.contact-row-content a {
    color: inherit;
    text-decoration: none;
}

.contact-row-content a:hover {
    text-decoration: underline;
}


/* Siatka 2 kolumny */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 24px;
    max-width: 800px;
}

/* Mobile – 1 kolumna */
@media(max-width: 640px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* Element kontaktowy */
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

/* Ikona – powiększona, zielona, ładna */
.contact-icon {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    background: #94ba12;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 26px; /* większa ikona */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Tekst */
.contact-info h4 {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

.contact-info p {
    margin: 0;
    font-size: 14px;
    color: #444;
    line-height: 1.35;
}

.contact-info a {
    color: inherit;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* ================== tabelki ================== */

.product-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

.product-table {
    width: 100%;
    border-collapse: collapse;
    font-family: inherit;
    font-size: 14px;
    min-width: 600px;
}

/* Nagłówek */
.product-table thead {
    background: rgb(148, 186, 18);
}

.product-table thead th {
    padding: 12px 14px;
    color: #ffffff;
    text-align: left;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Wiersze danych */
.product-table tbody tr {
    border-bottom: 1px solid #e2e2e2;
}

.product-table tbody tr:nth-child(even) {
    background-color: #f7f9f2;
}

.product-table tbody td {
    padding: 10px 14px;
    color: #333333;
}

/* Hover */
.product-table tbody tr:hover {
    background-color: #eef4dd;
}

/* Zaokrąglenie rogów (opcjonalnie) */
.product-table {
    border-radius: 8px;
    overflow: hidden;
}

/* ================= POJEDYNCZY WPIS – LAYOUT 1300px + SIDEBAR ================= */

#single-wrapper {
    background: #ffffff;
    padding: 40px 0 60px;
}

.single-layout {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(260px, 0.8fr);
    gap: 32px;
    align-items: flex-start;
}

/* Główna kolumna z treścią */
.single-main {
    min-width: 0; /* ważne, żeby treść się poprawnie skalowała */
}

/* Karta wpisu – dopasowana do nowego layoutu (bez max-width i marginesu auto) */
.single-post-card {
    max-width: 100%;
    margin: 0 0 32px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* Obrazek u góry wpisu */
.single-post-card__image img {
    width: 100%;
    height: auto;
    max-height: 420px;
    object-fit: cover;
    display: block;
}

/* Body */
.single-post-card__body {
    padding: 26px 28px 28px;
}

/* Meta: data + kategorie */
.single-post-card__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
}

.single-post-card__sep {
    margin: 0 4px;
    color: #c0c0c0;
}

.single-post-card__cats a {
    color: rgb(148, 186, 18);
    text-decoration: none;
    font-weight: 500;
}

.single-post-card__cats a:hover {
    text-decoration: underline;
}

.meta-icon {
    display: inline-block;
    margin-right: 4px;
    font-size: 13px;
}

/* Tytuł wpisu */
.single-post-card__title {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 800;
    color: #222;
}

/* Treść */
.single-post-card__content {
    font-size: 16px;
    line-height: 1.7;
    color: #333;
}

.single-post-card__content p {
    margin-bottom: 1.2em;
}

/* Nawigacja poprzedni / następny – korzysta z istniejących klas post-nav-btn */
.single-post-card__nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.single-post-card__nav-item {
    flex: 1;
}

.single-post-card__nav-item--prev {
    text-align: left;
}

.single-post-card__nav-item--next {
    text-align: right;
}

/* ================= SIDEBAR PO PRAWEJ – "Panel boczny po prawej" ================= */

.single-sidebar {
    align-self: flex-start;
    background: #fff;
    border-radius: 18px;
    padding: 20px 18px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
    position: sticky;
    top: 100px; /* dystans od góry przy scrollu */
	    margin-bottom: 50px;
}

/* Pojedyncze widgety */
.single-sidebar .widget {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e1e4d8;
}

.single-sidebar .widget:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Tytuły widgetów */
.single-sidebar .widget-title {
    font-size: 14px;
    font-weight: 600;
    color: #94ba12;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* Linki w sidebarze */
.single-sidebar a {
    color: #333333;
    text-decoration: none;
    font-size: 14px;
}

.single-sidebar a:hover {
    color: #7cc242;
    text-decoration: underline;
}

/* Listy w widgetach */
.single-sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.single-sidebar ul li {
    margin-bottom: 6px;
}

/* ================= RWD – TABLET / MOBILE ================= */

@media (max-width: 991px) {
    .single-layout {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .single-sidebar {
        position: static;
        width: 100%;
    }

    .single-post-card__body {
        padding: 20px;
    }

    .single-post-card__title {
        font-size: 24px;
    }

    .single-post-card__nav {
        flex-direction: column;
        align-items: stretch;
    }

    .single-post-card__nav-item--prev,
    .single-post-card__nav-item--next {
        text-align: center;
    }

    .post-nav-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .single-layout {
        padding: 0 12px;
    }

    .single-post-card__body {
        padding: 18px 16px 20px;
    }

    .single-post-card__title {
        font-size: 22px;
    }
}

/* Nadpisanie cienia dla pojedynczego wpisu */
.single-post-card {
    box-shadow: none;
}


/* ================= pziomy grid z numerami ================= */

.eco-steps-grid {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto 60px;
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 10px 26px rgba(0,0,0,0.06);
    overflow: hidden;
}

/* pojedyncza kolumna */
.eco-step-grid {
    flex: 1 1 25%;
    padding: 24px 26px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    border-right: 1px solid #e8ebdf; /* pionowy divider 1px */
    cursor: default;
    transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.eco-step-grid:last-child {
    border-right: none;
}

/* duża (teraz mniejsza) ikona plusa */
.eco-step-grid-icon {
    width: 44px;   /* było 64px – ~30% mniej */
    height: 44px;
    border-radius: 16px;
    background: #94ba12;   /* zielone tło */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.25s ease, background-color 0.25s ease;
    /* bez cienia */
}

.eco-step-grid-icon span {
    font-size: 30px;  /* było 40px */
    line-height: 1;
    font-weight: 700;
    color: #ffffff;
}

/* hover / aktywny – tylko kolor + lekki ruch, bez cienia */
.eco-step-grid:hover .eco-step-grid-icon,
.eco-step-grid.is-active .eco-step-grid-icon {
    background-color: #7ab02f;
    transform: translateY(-1px) scale(1.03);
}

@media (max-width: 767px) {
    .eco-step-grid-icon {
        width: 40px;   /* było 56px */
        height: 40px;
        border-radius: 14px;
    }

    .eco-step-grid-icon span {
        font-size: 26px; /* było 34px */
    }
}

/* tytuł i tekst */
.eco-step-grid-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.eco-step-grid-title {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #777777;
}

.eco-step-grid-text {
    font-size: 14px;
    line-height: 1.6;
    color: #555555;
    margin: 0;
}

/* hover / aktywny */
.eco-step-grid:hover,
.eco-step-grid.is-active {
    background-color: #fafcf4;
}

.eco-step-grid:hover .eco-step-grid-icon,
.eco-step-grid.is-active .eco-step-grid-icon {
    background-color: #7ab02f;
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 10px 24px rgba(148, 186, 18, 0.45);
}

/* RWD – na mobile pionowo, z poziomych dividerów robią się poziome */
@media (max-width: 767px) {
    .eco-steps-grid {
        flex-direction: column;
        border-radius: 18px;
    }

    .eco-step-grid {
        flex-basis: 100%;
        border-right: none;
        border-bottom: 1px solid #e8ebdf;
        padding: 18px 18px 20px;
    }

    .eco-step-grid:last-child {
        border-bottom: none;
    }

    .eco-step-grid-icon {
        width: 56px;
        height: 56px;
        border-radius: 18px;
    }

    .eco-step-grid-icon span {
        font-size: 34px;
    }
}

/* ================= WIDGET: NAJNOWSZE ARTYKUŁY (ECO) ================= */

.single-sidebar .eco-recent-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}

.single-sidebar .eco-recent-post-item {
    padding: 10px 0;
    border-bottom: 1px solid #e1e4d8; /* delikatny separator */
}

.single-sidebar .eco-recent-post-item:last-child {
    border-bottom: none;
}

.single-sidebar .eco-recent-post-link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    text-decoration: none;
    color: #333;
}

/* Miniatura 150x150 */
.single-sidebar .eco-recent-post-thumb {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.single-sidebar .eco-recent-post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder gdy brak miniatury */
.single-sidebar .eco-recent-post-thumb-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: #dcdcdc;
}

/* Tekst obok miniatury */
.single-sidebar .eco-recent-post-content {
    flex: 1;
    min-width: 0;
}

/* Tytuł – zielony, przycięty do kilku linii z "..." */
.single-sidebar .eco-recent-post-title {
     margin: 0 0 4px;
    font-size: 12px;
    font-weight: 400;
    color: #7b7b7b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Czytaj dalej */
.single-sidebar .eco-recent-post-readmore {
    font-size: 12px;
    color: #777;
    text-decoration: none;
}

/* Hover – szary tekst całości */
.single-sidebar .eco-recent-post-link:hover .eco-recent-post-title,
.single-sidebar .eco-recent-post-link:hover .eco-recent-post-readmore {
    color: #555;
}


/* ================== MOBILE OVERLAY MENU – STYLE ================== */

@media (max-width: 900px) {

    /* Główna lista w overlayu */
    .eco-mobile-menu-nav .eco-mobile-menu-list {
        list-style: none;
        margin: 0;
        padding: 80px 0 0; /* trochę niżej, żeby nie wchodzić w X */
        width: 100%;
        max-width: 420px;
    }

    /* Pojedyncza pozycja menu – blok, nie flex */
    .eco-mobile-menu-nav .eco-mobile-menu-list > li {
        position: relative;
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #eef0e5;
    }

    .eco-mobile-menu-nav .eco-mobile-menu-list > li:last-child {
        border-bottom: none;
    }

    /* Link główny – pełna szerokość, miejsce na plus po prawej */
    .eco-mobile-menu-nav .eco-mobile-menu-list > li > a {
        display: block;
        font-size: 18px;
        font-weight: 600;
        color: #333333;
        text-decoration: none;
        padding: 6px 40px 6px 4px; /* prawy padding na przycisk + */
        transition: color 0.2s ease, padding-left 0.2s ease;
    }

    /* Aktywna pozycja (bieżąca strona / przodek) – zielony tekst */
    .eco-mobile-menu-nav .eco-mobile-menu-list > li.current-menu-item > a,
    .eco-mobile-menu-nav .eco-mobile-menu-list > li.current-menu-ancestor > a {
        color: #94ba12;
    }

    /* Hover – zielone tło, biały tekst */
    .eco-mobile-menu-nav .eco-mobile-menu-list > li:hover {
        background-color: #94ba12;
    }

    .eco-mobile-menu-nav .eco-mobile-menu-list > li:hover > a {
        color: #ffffff;
        padding-left: 10px;
    }

    .eco-mobile-menu-nav .eco-mobile-menu-list > li:hover > .eco-mobile-sub-toggle {
        background: #ffffff;
        color: #94ba12;
    }

    /* Przycisk z plusem przy pozycjach z submenu */
    .eco-mobile-sub-toggle {
        position: absolute;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        background: #f3f6ec;
        border: none;
        border-radius: 999px;
        width: 32px;
        height: 32px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        padding: 0;
        flex-shrink: 0;
        transition: background-color 0.2s ease, transform 0.2s ease;
        color: #94ba12;
        font-size: 18px;
        line-height: 1;
    }

    .eco-mobile-sub-toggle span {
        display: inline-block;
        transition: transform 0.2s ease;
    }

    /* Gdy menu rozwinięte – plus się „obraca” */
    .eco-mobile-menu-nav .menu-item-has-children.is-open > .eco-mobile-sub-toggle span {
        transform: rotate(45deg); /* plus wygląda jak X */
    }

    /* Rodzic z submenu – gdy rozwinięty: cały blok na zielono */
    .eco-mobile-menu-nav .eco-mobile-menu-list > .menu-item-has-children.is-open {
        background-color: #94ba12;
    }

    /* Tekst rodzica – biały w stanie rozwiniętym */
    .eco-mobile-menu-nav .eco-mobile-menu-list > .menu-item-has-children.is-open > a {
        color: #ffffff;
        padding-left: 10px;
    }

    /* Przycisk z plusem – biały okrąg na zielonym */
    .eco-mobile-menu-nav .eco-mobile-menu-list > .menu-item-has-children.is-open > .eco-mobile-sub-toggle {
        background: #ffffff;
        color: #94ba12;
    }

    /* Submenu – ZAWSZE POD rodzicem (nowy wiersz) */
    .eco-mobile-menu-nav .eco-mobile-menu-list .sub-menu {
        list-style: none;
        margin: 6px 0 4px;
        padding: 4px 0 6px 16px;
        display: none;
    }

    /* Pokaż submenu tylko, gdy rodzic ma .is-open */
    .eco-mobile-menu-nav .eco-mobile-menu-list .menu-item-has-children.is-open > .sub-menu {
        display: block;
    }

    .eco-mobile-menu-nav .eco-mobile-menu-list .menu-item-has-children.is-open > .sub-menu li {
        padding: 4px 0;
        border-bottom: none;
    }

    /* Linki w submenu – białe jak rodzic */
    .eco-mobile-menu-nav .eco-mobile-menu-list .menu-item-has-children.is-open > .sub-menu li a {
        font-size: 15px;
        font-weight: 400;
        color: #ffffff;
        text-decoration: none;
        display: block;
        padding: 4px 0;
        transition: opacity 0.2s ease, padding-left 0.2s ease;
    }

    /* Hover w submenu – lekka zmiana, bez rozwalania zielonego tła */
    .eco-mobile-menu-nav .eco-mobile-menu-list .menu-item-has-children.is-open > .sub-menu li a:hover {
        opacity: 0.9;
        padding-left: 6px;
    }

    /* CTA "Skontaktuj się" na dole overlayu */
    .eco-mobile-menu-cta {
        margin-top: 24px;
        text-align: center;
    }

    .eco-mobile-menu-cta .eco-mobile-cta {
        width: 100%;
        max-width: 260px;
        justify-content: center;
    }
}


/* ================= PAGINACJA W ARCHIWUM / KATEGORII ================= */

/* Oddech od treści i od stopki */
#archive-wrapper nav[aria-labelledby="posts-nav-label"] {
    margin: 40px 0 90px;
    text-align: center;
}

/* Ustawiamy listę w jednej linii i na środku */
#archive-wrapper nav[aria-labelledby="posts-nav-label"] .pagination {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 0;
}

/* Wygląd pojedynczych elementów (link/span) */
#archive-wrapper .pagination .page-link,
#archive-wrapper .pagination .page-link.current {
    display: inline-block;
    min-width: 34px;
    text-align: center;
    border-radius: 999px;
    border: 1px solid #94ba12 !important;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #94ba12 !important;
    background: #ffffff;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

/* Pierwsza / ostatnia strona – pełny radius, bez „tabletek” Bootstrapa */
#archive-wrapper .pagination .page-item:first-child .page-link,
#archive-wrapper .pagination .page-item:last-child .page-link {
    border-radius: 999px;
}

/* AKTYWNA STRONA + HOVER – zielona pigułka z cieniem */
#archive-wrapper .pagination .page-item.active .page-link,
#archive-wrapper .pagination .page-link:hover,
#archive-wrapper .pagination .page-link.current {
    background: #94ba12 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}


/* ================= PAGINACJA W ARCHIWUM / KATEGORII ================= */

/* Oddech od treści i od stopki */
#archive-wrapper nav[aria-labelledby="posts-nav-label"] {
    margin: 40px 0 90px;
    text-align: center;
}

/* Ustawiamy listę w jednej linii i na środku */
#archive-wrapper nav[aria-labelledby="posts-nav-label"] .pagination {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    padding: 0;
    margin: 0;
}

/* Wygląd pojedynczych elementów (link/span) */
#archive-wrapper .pagination .page-link,
#archive-wrapper .pagination .page-link.current {
    display: inline-block;
    min-width: 34px;
    text-align: center;
    border-radius: 999px;
    border: 1px solid #94ba12 !important;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #94ba12 !important;
    background: #ffffff;
    text-decoration: none;
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

/* Pierwsza / ostatnia strona – pełny radius, bez „tabletek” Bootstrapa */
#archive-wrapper .pagination .page-item:first-child .page-link,
#archive-wrapper .pagination .page-item:last-child .page-link {
    border-radius: 999px;
}

/* AKTYWNA STRONA + HOVER – zielona pigułka z cieniem */
#archive-wrapper .pagination .page-item.active .page-link,
#archive-wrapper .pagination .page-link:hover,
#archive-wrapper .pagination .page-link.current {
    background: #94ba12 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}

/* ================== POPUP LEAD – OVERLAY ================== */

.eco-lead-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;                       /* ukryte domyślnie */
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.35);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.eco-lead-popup-overlay.is-visible {
    display: flex;
}

/* blokada scrolla pod popupem */
body.eco-popup-open {
    overflow: hidden;
}

/* ================== POPUP LEAD – KONTENT ================== */

.eco-lead-popup__inner {
    max-width: 980px;
    width: 100%;
    position: relative;
}

/* duży X w prawym górnym rogu */
.eco-lead-popup__close {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: none;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #333333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.eco-lead-popup__close:hover {
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 10px 26px rgba(0,0,0,0.22);
    background-color: #f7f7f7;
}

/* dwie kolumny: formularz + tekst */
.eco-lead-popup__content {
    display: flex;
    gap: 32px;
    align-items: stretch;
}

/* lewa kolumna – formularz, korzysta z istniejącego .form-lead */
.eco-lead-popup__form {
    flex: 0 0 50%;
    min-width: 0;
}

.eco-lead-popup__form .form-lead {
    margin: 0;
}

/* prawa kolumna – zielony boks + grafika */
.eco-lead-popup__text-wrap {
    flex: 0 0 50%;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
}

/* zielony boks – dwa rogi okrągłe, dwa ostre (jak w hero/eco-box) */
/* prawa kolumna – zielony boks wyśrodkowany */
.eco-lead-popup__text-wrap {
    flex: 0 0 50%;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;      /* pionowo na środku */
    justify-content: center;  /* poziomo na środku */
}

/* zielony boks – jak wcześniej */
.eco-lead-popup__text-box {
    background: #94ba12;
    color: #ffffff;
    padding: 32px 34px;
    border-radius: 40px 0 40px 0;
    box-shadow: 0 10px 26px rgba(0,0,0,0.15);
    max-width: 100%;
}

.eco-lead-popup__heading {
    margin: 0 0 14px 0;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #ffffff;
}

.eco-lead-popup__text {
    margin: 0 0 10px 0;
    font-size: 14px;
    line-height: 1.6;
    color: #f7f7f7;
}

/* obrazek już niepotrzebny – możesz usunąć lub zostawić, nie będzie używany */


/* ================== RWD popupu ================== */

@media (max-width: 992px) {
    .eco-lead-popup__content {
        flex-direction: column;
        gap: 20px;
    }

    .eco-lead-popup__form,
    .eco-lead-popup__text-wrap {
        flex: 0 0 100%;
    }

    .eco-lead-popup__image {
        position: absolute;
        top: -50px;
        right: 0;
        max-width: 180px;
    }
}

@media (max-width: 640px) {
    .eco-lead-popup-overlay {
        padding: 12px;
        align-items: flex-start;
    }

    .eco-lead-popup__inner {
        margin-top: 40px;
    }

    .eco-lead-popup__content {
        flex-direction: column;
        gap: 16px;
    }

    .eco-lead-popup__text-box {
        padding: 24px 20px;
        border-radius: 30px 0 30px 0;
    }

    .eco-lead-popup__heading {
        font-size: 22px;
    }

    .eco-lead-popup__image {
        display: none; /* opcjonalnie ukryj na bardzo małych ekranach */
    }
}



/* =========================================================
   ECO: mobile-lite animations (PageSpeed)
   - wyłącza ciężkie animacje/filtry na telefonach
   ========================================================= */
@media (max-width: 768px){
  /* minimalizuj koszt animacji/transition */
  *, *::before, *::after{
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* WPBakery animations */
  .wpb_animate_when_almost_visible{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
  }
  /* jeśli używasz własnych efektów na data-attr */
  [data-eco-reveal], [data-ps-reveal], [data-aos]{
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    -webkit-filter: none !important;
  }
}
