/* ============================================================
   RolKarman Janusz Karman — arkusz stylów
   ============================================================ */

:root {
    --zielone-ciemne: #1d6b2c;
    --zielone: #2e9c3f;
    --zielone-jasne: #8bc34a;
    --zolte-akcent: #f5c518;
    --tlo: #f7f9f4;
    --powierzchnia: #ffffff;
    --tekst: #24301f;
    --tekst-2: #5a6b52;
    --ramka: #dfe7d8;
    --cien: 0 8px 24px rgba(29, 107, 44, .10);
    --radius: 14px;
    --max-szer: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: var(--tlo);
    color: var(--tekst);
    line-height: 1.65;
    overflow-x: clip;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
    line-height: 1.15;
    letter-spacing: .01em;
    color: var(--zielone-ciemne);
}

a { color: var(--zielone); text-decoration: none; }
a:hover { text-decoration: underline; }

.kontener {
    max-width: var(--max-szer);
    margin: 0 auto;
    padding: 0 20px;
}

.sekcja {
    padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.sekcja--powierzchnia { background: var(--powierzchnia); }

/* ---------- nagłówki sekcji ---------- */
.naglowek-sekcji {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 2.6rem;
}

.nadtytul {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: .78rem;
    font-weight: 700;
    color: var(--zielone);
    margin-bottom: .6rem;
}

.naglowek-sekcji h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    margin-bottom: .8rem;
}

.naglowek-sekcji p { color: var(--tekst-2); }

/* ---------- przyciski ---------- */
.przycisk {
    display: inline-block;
    padding: .85rem 1.9rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.przycisk--glowny {
    background: var(--zielone);
    color: #fff;
}

.przycisk--glowny:hover {
    background: var(--zielone-ciemne);
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: var(--cien);
}

.przycisk--kontur {
    border-color: #fff;
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.przycisk--kontur:hover {
    background: #fff;
    color: var(--zielone-ciemne);
    text-decoration: none;
}

/* ============================================================
   NAGŁÓWEK / NAWIGACJA
   ============================================================ */
.naglowek {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid var(--ramka);
}

.naglowek-wewnatrz {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 74px;
}

.logo {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.logo img { height: 46px; width: auto; }

.logo span {
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--zielone-ciemne);
    text-transform: uppercase;
    letter-spacing: .06em;
    line-height: 1.1;
}

.logo small {
    display: block;
    font-family: 'Open Sans', sans-serif;
    font-size: .68rem;
    font-weight: 400;
    color: var(--tekst-2);
    letter-spacing: .12em;
    text-transform: uppercase;
}

.nawigacja ul {
    display: flex;
    gap: .4rem;
    list-style: none;
}

.nawigacja a {
    display: block;
    padding: .55rem .85rem;
    font-weight: 600;
    font-size: .92rem;
    color: var(--tekst);
    border-radius: 8px;
}

.nawigacja a:hover,
.nawigacja a.aktywna {
    color: var(--zielone-ciemne);
    background: #eaf4e6;
    text-decoration: none;
}

.telefon-naglowek {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 700;
    color: var(--zielone-ciemne) !important;
    white-space: nowrap;
    padding: .55rem 1rem;
    border: 2px solid var(--zielone);
    border-radius: 999px;
}

.telefon-naglowek:hover { background: var(--zielone); color: #fff !important; text-decoration: none; }

.przycisk-hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: .5rem;
}

.przycisk-hamburger span {
    display: block;
    width: 26px;
    height: 3px;
    background: var(--zielone-ciemne);
    margin: 5px 0;
    border-radius: 2px;
    transition: .2s;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: center;
    color: #fff;
    isolation: isolate;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../obrazy/header_01.png') center/cover no-repeat;
    z-index: -2;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(15, 45, 18, .88) 0%, rgba(20, 60, 25, .62) 55%, rgba(20, 60, 25, .25) 100%);
    z-index: -1;
}

.hero-tresc { max-width: 640px; padding: 5rem 0; }

.hero .nadtytul { color: var(--zolte-akcent); }

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 1.1rem;
}

.hero p {
    font-size: 1.12rem;
    color: #eef5ea;
    margin-bottom: 1.8rem;
}

.hero-przyciski { display: flex; flex-wrap: wrap; gap: .9rem; }

/* pasek cech pod hero */
.pasek-cech {
    background: var(--zielone-ciemne);
    color: #fff;
}

.pasek-cech .kontener {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding-top: 1.4rem;
    padding-bottom: 1.4rem;
}

.cecha {
    display: flex;
    align-items: center;
    gap: .9rem;
    justify-content: center;
    text-align: left;
}

.cecha .ikona {
    flex: 0 0 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .14);
    display: grid;
    place-items: center;
    font-size: 1.25rem;
}

.cecha strong { display: block; font-size: 1rem; }
.cecha small { color: #cfe6c8; font-size: .82rem; }

/* ---------- hero podstron ---------- */
.hero-podstrona {
    background: linear-gradient(100deg, var(--zielone-ciemne), var(--zielone));
    color: #fff;
    padding: 4.2rem 0;
}

.hero-podstrona h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3rem);
    text-transform: uppercase;
}

.hero-podstrona p {
    max-width: 700px;
    color: #e4f2de;
    margin-top: .7rem;
    font-size: 1.05rem;
}

.hero-podstrona .nadtytul { color: var(--zolte-akcent); }

/* ============================================================
   KARTY
   ============================================================ */
.siatka { display: grid; gap: 1.4rem; }

.siatka-3 { grid-template-columns: repeat(3, 1fr); }
.siatka-2 { grid-template-columns: repeat(2, 1fr); }

.karta {
    background: var(--powierzchnia);
    border: 1px solid var(--ramka);
    border-radius: var(--radius);
    box-shadow: var(--cien);
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex;
    flex-direction: column;
}

.karta:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(29, 107, 44, .16);
}

.karta-obraz {
    height: 190px;
    background: #e7efe1 center/cover no-repeat;
}

.karta-tresc {
    padding: 1.4rem 1.5rem 1.6rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.karta-tresc h3 { font-size: 1.3rem; margin-bottom: .5rem; }

.karta-tresc p {
    color: var(--tekst-2);
    font-size: .95rem;
    flex: 1;
}

.karta-tresc .link-wiecej {
    margin-top: 1rem;
    font-weight: 700;
    font-size: .9rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* karta z ikoną (bez zdjęcia) */
.karta-ikona { padding: 1.7rem 1.6rem; }

.karta-ikona .ikona-duza {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: #eaf4e6;
    display: grid;
    place-items: center;
    font-size: 1.7rem;
    margin-bottom: 1rem;
}

.karta-ikona h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.karta-ikona p { color: var(--tekst-2); font-size: .95rem; }

/* ============================================================
   LISTY OFERTY / PRODUKTÓW
   ============================================================ */
.lista-oferty {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.1rem;
}

.element-oferty {
    background: var(--powierzchnia);
    border: 1px solid var(--ramka);
    border-left: 5px solid var(--zielone);
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    transition: transform .15s ease, box-shadow .15s ease;
}

.element-oferty:hover {
    transform: translateY(-3px);
    box-shadow: var(--cien);
}

.element-oferty h3 { font-size: 1.1rem; margin-bottom: .3rem; }

.element-oferty p { font-size: .9rem; color: var(--tekst-2); }

/* ============================================================
   LICZBY
   ============================================================ */
.liczby {
    background: var(--zielone-ciemne);
    color: #fff;
}

.liczby .siatka-3 { gap: 2rem; }

.liczba {
    text-align: center;
}

.liczba .wartosc {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    font-weight: 700;
    color: var(--zolte-akcent);
    line-height: 1;
}

.liczba .opis {
    margin-top: .4rem;
    color: #dcefdc;
    font-size: .95rem;
}

/* ============================================================
   BLOK "O NAS" / TEKST + ZDJĘCIE
   ============================================================ */
.dwie-kolumny {
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    gap: 3rem;
    align-items: center;
}

.dwie-kolumny .obraz-ramka {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--cien);
}

.dwie-kolumny h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: 1rem; }

.dwie-kolumny p { color: var(--tekst-2); margin-bottom: 1rem; }

.lista-punktowana { list-style: none; margin: 1.2rem 0; }

.lista-punktowana li {
    padding: .45rem 0 .45rem 2rem;
    position: relative;
    color: var(--tekst);
    font-weight: 600;
}

.lista-punktowana li::before {
    content: "✔";
    position: absolute;
    left: 0;
    top: .45rem;
    color: var(--zielone);
    font-weight: 700;
}

/* ============================================================
   PARTNERZY
   ============================================================ */
.pasek-partnerow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.odznaka-partnera {
    background: var(--powierzchnia);
    border: 1px solid var(--ramka);
    border-radius: 10px;
    padding: 1.1rem .8rem;
    text-align: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--tekst-2);
    transition: color .15s, border-color .15s, transform .15s;
}

.odznaka-partnera:hover {
    color: var(--zielone-ciemne);
    border-color: var(--zielone);
    transform: translateY(-3px);
}

.karta-partnera {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    padding: 1.5rem;
}

.karta-partnera .logo-partnera {
    flex: 0 0 90px;
    height: 90px;
    border-radius: 12px;
    background: #f2f6ee;
    border: 1px solid var(--ramka);
    display: grid;
    place-items: center;
    font-family: 'Barlow Condensed', sans-serif;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--zielone-ciemne);
    text-align: center;
    padding: .5rem;
}

.karta-partnera .logo-partnera img { max-height: 70px; width: auto; margin: 0 auto; }

.karta-partnera h3 { font-size: 1.25rem; }
.karta-partnera p { font-size: .93rem; color: var(--tekst-2); }

/* ============================================================
   CTA
   ============================================================ */
.cta {
    background: linear-gradient(100deg, var(--zielone), var(--zielone-ciemne));
    color: #fff;
    text-align: center;
}

.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.4rem); margin-bottom: .6rem; }

.cta p { color: #e4f2de; max-width: 640px; margin: 0 auto 1.6rem; }

/* ============================================================
   KONTAKT
   ============================================================ */
.siatka-kontaktu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.4rem;
    margin-bottom: 2.6rem;
}

.boks-kontaktu {
    background: var(--powierzchnia);
    border: 1px solid var(--ramka);
    border-radius: var(--radius);
    box-shadow: var(--cien);
    padding: 1.6rem;
    text-align: center;
}

.boks-kontaktu .ikona {
    width: 52px;
    height: 52px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    background: #eaf4e6;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
}

.boks-kontaktu h3 { font-size: 1.15rem; margin-bottom: .35rem; }
.boks-kontaktu p, .boks-kontaktu a { font-size: .97rem; color: var(--tekst-2); }
.boks-kontaktu a { font-weight: 600; color: var(--zielone-ciemne); }

.formularz {
    background: var(--powierzchnia);
    border: 1px solid var(--ramka);
    border-radius: var(--radius);
    box-shadow: var(--cien);
    padding: 2rem;
    max-width: 720px;
    margin: 0 auto;
}

.rzad-formularza {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.pole { margin-bottom: 1rem; }

.pole label {
    display: block;
    font-weight: 600;
    font-size: .9rem;
    margin-bottom: .35rem;
}

.pole input,
.pole select,
.pole textarea {
    width: 100%;
    padding: .75rem .9rem;
    border: 1px solid #cfd9c6;
    border-radius: 8px;
    font: inherit;
    font-size: .95rem;
    background: #fbfdf9;
    color: var(--tekst);
}

.pole input:focus,
.pole select:focus,
.pole textarea:focus {
    outline: 2px solid var(--zielone-jasne);
    border-color: var(--zielone);
}

.pole textarea { min-height: 140px; resize: vertical; }

.obraz-mapy {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--cien);
    border: 1px solid var(--ramka);
    line-height: 0;
}

.obraz-mapy iframe {
    width: 100%;
    height: 380px;
    border: 0;
}

/* ============================================================
   STOPKA
   ============================================================ */
.stopka {
    background: #16351a;
    color: #c9dcc2;
    padding: 3.4rem 0 0;
}

.stopka-siatka {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2.4rem;
    padding-bottom: 2.6rem;
}

.stopka h4 {
    color: #fff;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 1rem;
}

.stopka p, .stopka a { font-size: .92rem; color: #b9cfae; }

.stopka img { height: 42px; width: auto; margin-bottom: .9rem; }

.stopka ul { list-style: none; }

.stopka ul li { margin-bottom: .45rem; }

.stopka a:hover { color: var(--zolte-akcent); text-decoration: none; }

.stopka-dol {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 1.1rem 0;
    text-align: center;
    font-size: .85rem;
    color: #93ac87;
}

/* ============================================================
   SCROLL-REVEAL
   ============================================================ */
.ukryte {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease;
}

.ukryte.widoczne {
    opacity: 1;
    transform: none;
}

/* ============================================================
   RESPONSYWNOŚĆ
   ============================================================ */
@media (max-width: 1024px) {
    .siatka-3 { grid-template-columns: repeat(2, 1fr); }
    .siatka-kontaktu { grid-template-columns: 1fr; }
    .stopka-siatka { grid-template-columns: 1fr 1fr; }

    .nawigacja {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--ramka);
        box-shadow: var(--cien);
        display: none;
    }

    .nawigacja.otwarta { display: block; }

    .nawigacja ul {
        flex-direction: column;
        padding: .8rem 20px 1.2rem;
        gap: .1rem;
    }

    .nawigacja a { padding: .8rem .6rem; border-radius: 8px; }

    .przycisk-hamburger { display: block; }

    .telefon-naglowek { display: none; }
}

@media (max-width: 720px) {
    .siatka-3, .siatka-2, .dwie-kolumny { grid-template-columns: 1fr; }
    .pasek-cech .kontener { grid-template-columns: 1fr; text-align: left; }
    .cecha { justify-content: flex-start; }
    .rzad-formularza { grid-template-columns: 1fr; }
    .stopka-siatka { grid-template-columns: 1fr; gap: 1.8rem; }
    .hero { min-height: 480px; }
}
