/* Definicje Zmiennych Kolorów */
:root {
    --primary-color: #1B5E20; /* Ciemna butelkowa zieleń */
    --secondary-color: #4CAF50; /* Świeża zieleń – Akcent */
    --accent-color: #FFB300; /* Ciepły Pomarańcz/Żółty - CTA */
    --text-color: #333;
    --light-bg: #FAFAFA;
    --dark-bg: #111;
    --header-height: 80px;
    --header-height-scrolled: 60px;
}

/* Reset CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    max-width: 100%; /* KRYTYCZNE: Zapewnia, że elementy nie wyjdą poza krawędź */
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: white;
    min-height: 100vh;
    overflow-x: hidden; /* KRYTYCZNE: Zapobiega poziomemu przewijaniu */
}

/* --- NAGŁÓWEK I NAWIGACJA --- */
header {
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    transition: all 0.4s ease-in-out;
}
header.scrolled {
    height: var(--header-height-scrolled);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    height: 100%; 
}
.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    transition: font-size 0.4s ease-in-out, color 0.3s ease; /* Dodana płynna zmiana koloru */
    text-decoration: none; /* Usuwa podkreślenie linku */
}

/* Stylizacja dla linku logo */
.logo a {
    color: inherit; /* Dziedziczy kolor z .logo */
    text-decoration: none;
}

header.scrolled .logo {
    font-size: 1.2rem;
}

/* Dodatkowo, jeśli logo zmieniało kolor po najechaniu, można dodać: */
.logo:hover {
    color: var(--secondary-color); /* Zmienia kolor na zieleń po najechaniu */
}
.nav-menu { /* Zmieniona nazwa na .nav-menu */
    list-style: none;
    display: flex;
}
nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    margin-left: 25px;
    font-weight: 600;
    transition: color 0.3s ease;
}
nav ul li a:hover {
    color: var(--secondary-color);
}

/* --- SEKCJA GŁÓWNA (HERO) --- */
.hero {
    background: 
        /* 1. Gradient (Nakładka) */
        linear-gradient(rgba(27, 94, 32, 0.9), rgba(27, 94, 32, 0.7)),
        /* 2. Obraz w tle: Wskaż poprawną ścieżkę do pliku */
        url('img/obraz.png') no-repeat center center/cover; 
    
    height: 65vh; 
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 20px;
}
.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    font-weight: 400;
}
.cta-button {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 15px 40px;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.2rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    white-space: nowrap; /* Zapobiega łamaniu przycisku */
}
.cta-button:hover {
    background-color: #e6a000;
    transform: translateY(-2px);
}

/* --- SEKCJE OGÓLNE I TYTUŁY --- */
.content-section {
    padding: 80px 20px;
    max-width: 1200px;
    margin: 0 auto;
}
.content-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 50px;
    color: var(--primary-color);
    position: relative;
}
.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--accent-color);
    margin: 10px auto 0;
}
.bg-light-gray {
    background-color: var(--light-bg);
}
.intro-text {
    max-width: 800px;
    margin: 0 auto 30px;
    font-size: 1.1rem;
    color: #555;
    text-align: center;
}

/* --- GRID (O NAS) --- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: center;
}
.feature-box {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-top: 5px solid var(--secondary-color);
}
.feature-box .icon {
    font-size: 3rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    display: block;
}

/* --- SEKCJA BDO (Czym jest BDO) --- */
.grid-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.bdo-dotyczy {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
/* Stylizacja notatki o karach */
.note-error {
    text-align: center; /* Wyśrodkowanie tekstu */
    font-weight: 600;
    font-size: 1.1rem;
    color: #C62828; /* Ciemny Czerwony (Wyróżnienie Błędu/Kary) */
    margin-top: 40px;
    padding: 15px;
    border: 1px solid #C62828;
    border-radius: 5px;
    background-color: #ffebee; /* Bardzo jasne tło czerwieni */
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Upewnienie się, że tytuły w sekcji BDO są wyśrodkowane */
.bdo-info h3 {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    color: var(--primary-color);
}
.bdo-dotyczy {
    text-align: center; /* Wyśrodkowanie tekstu w kafelkach BDO */
}

/* --- SEKCJA PROBLEMY I POMOC --- */
.problem-solution-container {
    display: flex;
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}
.problem-list, .solution-list {
    flex: 1;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.problem-list { border-left: 6px solid #E57373; background-color: #fcf4f4; }
.solution-list { border-left: 6px solid var(--secondary-color); background-color: #f4fcf4; }
.problem-list h3, .solution-list h3 { color: var(--primary-color); margin-bottom: 20px; font-size: 1.5rem; }
.problem-list ul, .solution-list ul { list-style: none; padding: 0; }
.problem-list li, .solution-list li { padding: 12px 0; border-bottom: 1px dashed #e0e0e0; font-weight: 500; transition: padding-left 0.2s ease; }
.problem-list li:before { content: "❌"; margin-right: 15px; }
.solution-list li:before { content: "✔️"; margin-right: 15px; color: var(--secondary-color); }
.problem-list li:hover, .solution-list li:hover { padding-left: 5px; }

/* --- SEKCJA USŁUGI (ULEPSZONA Z CENNIKIEM) --- */
.grid-uslugi {
    display: grid;
    /* 3 kolumny na dużym ekranie, dynamiczne łamanie */
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px;
}
.service-card {
    background-color: white;
    padding: 40px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border-top: 4px solid var(--secondary-color);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    text-align: center; 
}
.service-card.new-kobize {
    border-top: 4px solid var(--accent-color); /* Złoty akcent na KOBiZE */
}
.service-card p {
    min-height: 70px; /* Utrzymuje minimalną wysokość akapitu */
    flex-grow: 1; 
    margin-bottom: 20px;
}

/* Stylizacja Boxu Ceny */
.price-box {
    background-color: var(--accent-color);
    padding: 10px 15px;
    margin: 15px 0 20px;
    border-radius: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.price-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}
.price-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #555;
    margin-top: 5px;
}
.tag {
    display: inline-block;
    background-color: var(--accent-color);
    color: var(--primary-color);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-top: auto; 
    align-self: center;
}

/* --- KONTAKT I STOPKA --- */
.contact-box {
    text-align: center;
    padding: 40px;
    border: 2px solid var(--primary-color);
    border-radius: 8px;
    max-width: 600px;
    margin: 0 auto;
}
.legal-links {
    margin-top: 20px;
    margin-bottom: 10px;
}
footer {
    background-color: var(--dark-bg);
    color: white;
    text-align: center;
    padding: 20px 0;
    font-size: 0.9rem;
}

/* --- MEDIA QUERIES (Responsywność) --- */

/* ----------------------------------- */
/* PUNKT 1: Tablet/Desktop (Max 1024px) */
/* ----------------------------------- */
@media (max-width: 1024px) {
    .content-section {
        padding: 60px 20px;
    }
}

/* ----------------------------------- */
/* PUNKT 2: Tablet pionowo / Telefon (Max 768px) */
/* ----------------------------------- */
@media (max-width: 768px) {
    
    /* Ukrycie pełnej nawigacji na mobilnym */
    nav ul {
        display: none; 
    }
    nav {
        justify-content: center;
    }
    header {
        height: var(--header-height-scrolled); 
    }
    
    /* Sekcja Hero */
    .hero {
        height: 50vh;
    }
    .hero h1 {
        font-size: 2.2rem;
    }
    .hero p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    /* Układy kolumnowe łamiemy do jednej kolumny */
    .grid, 
    .grid-icons,
    .grid-uslugi {
        grid-template-columns: 1fr; 
        gap: 20px;
    }

    /* Sekcja Problem/Rozwiązanie */
    .problem-solution-container {
        flex-direction: column;
        gap: 30px;
    }
    
    /* Ogólne skalowanie sekcji */
    .content-section {
        padding: 50px 15px;
    }
    .content-section h2 {
        font-size: 1.8rem;
    }
    
    /* Ułatwienie czytelności cen na mobilnym */
    .service-card p {
        min-height: auto; 
    }
    .price-value {
        font-size: 1.4rem;
    }
}

/* ----------------------------------- */
/* PUNKT 3: Małe telefony (Max 480px) */
/* ----------------------------------- */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .cta-button {
        padding: 10px 20px;
        font-size: 1rem;
    }
    .contact-box {
        padding: 25px 10px;
    }
}

/* --- STYLE DLA PODSTRON PRAWNYCH (POLITYKA PRYWATNOŚCI / RODO) --- */

.legal-page {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.8;
    color: #333;
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 20px;
    background-color: #f8f8f8;
}

.legal-page h1 {
    color: var(--primary-color); /* Ciemna zieleń */
    border-bottom: 3px solid var(--accent-color); /* Żółty akcent */
    padding-bottom: 10px;
    margin-bottom: 30px;
    font-size: 2.5rem;
}

.legal-page h2 {
    color: var(--secondary-color); /* Świeża zieleń */
    margin-top: 30px;
    margin-bottom: 15px;
    font-size: 1.6rem;
}

.legal-page strong {
    color: var(--primary-color);
}

.legal-page a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: text-decoration 0.3s;
}

.legal-page a:hover {
    text-decoration: underline;
}

.legal-page ul {
    list-style-type: disc;
    margin-left: 25px;
}

.fade-in {
    opacity: 0;
    transform: translateY(20px);
    /* NOWY CZAS PRZEJŚCIA: 0.3s dla natychmiastowego efektu */
    transition: opacity 0.3s ease-out, transform 0.3s ease-out; 
}

.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* --- HAMBURGER MENU I MOBILNA NAWIGACJA --- */

/* Ukrycie przycisku hamburgera na desktopie */
.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Stan "aktywny" hamburgera (przekształcenie w X) */
.hamburger.active span:nth-child(2) {
    opacity: 0;
}
.hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Media Query: Style dla urządzeń mobilnych (<= 768px) */
@media (max-width: 768px) {
    
    /* Pokaż przycisk hamburgera */
    .hamburger {
        display: block;
    }
    
    /* Ukryj menu desktopowe i przygotuj mobilne */
    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: var(--header-height-scrolled); /* Zaczyna się pod nagłówkiem */
        left: 0;
        width: 100%;
        background-color: white;
        box-shadow: 0 8px 10px rgba(0, 0, 0, 0.1);
        padding: 20px 0;
        z-index: 999;
        transition: transform 0.3s ease-in-out;
        transform: translateY(-100%); /* Początkowo poza ekranem */
    }

    .nav-menu.open {
        display: flex;
        transform: translateY(0); /* Wsuń menu na ekran */
    }

    .nav-menu li {
        text-align: center;
        margin: 10px 0;
        padding: 10px 0;
        border-bottom: 1px solid var(--light-bg);
    }
    
    /* Dostosowanie logo dla mobilnego (aby nie zajmowało całego miejsca) */
    nav {
        justify-content: space-between; /* Powrót do wyrównania po bokach */
    }
    nav .logo {
        margin-left: 0;
    }
}