/* --- ZMIENNE I PODSTAWOWE STYLE --- */
:root { 
    --main-color: #f1c40f; 
    --dark-bg: #1a1a1a; 
    --text-light: #ffffff;
    --body-bg: #1a1a1a; 
    --card-bg: #222222;
    --text-main: #ffffff;
    --services-bg: #111111;
    --input-border: #333;
}

[data-theme="light"] {
    --body-bg: #f4f4f4;
    --card-bg: #ffffff;
    --text-main: #333333;
    --services-bg: #e0e0e0;
    --input-border: #ccc;
}

body { 
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
    margin: 0; 
    line-height: 1.6; 
    color: var(--text-main); 
    background-color: var(--body-bg);
    transition: background-color 0.3s, color 0.3s;
}

/* --- NAGŁÓWEK --- */
header { 
    background: var(--dark-bg); 
    color: var(--text-light); 
    padding: 0 5%; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    position: sticky; 
    top: 0; 
    z-index: 1000; 
    border-bottom: 3px solid var(--main-color); 
    height: 70px;
    box-sizing: border-box;
}

.logo { 
    font-size: 1.5rem; 
    font-weight: bold; 
    color: var(--main-color); 
    white-space: nowrap; 
}

nav { display: flex; align-items: center; }

.nav-links { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.nav-links a { 
    color: white; 
    text-decoration: none; 
    font-size: 0.9rem; 
    transition: 0.3s; 
    font-weight: 500;
}

.nav-links a:hover { color: var(--main-color); }

.theme-toggle {
    background: var(--main-color);
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    margin-left: 10px;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: var(--main-color);
    transition: 0.3s;
    border-radius: 2px;
}

/* --- SEKCJA HERO --- */
.hero { 
    background: linear-gradient(rgba(0,0,0,0.85), rgba(0,0,0,0.85));
    display: flex; 
    align-items: center; 
    justify-content: center; 
    flex-direction: row-reverse; 
    gap: 60px;
    padding: 60px 5%;
    min-height: 40vh;
    color: white; 
    text-align: left;
}

.hero-text { flex: 1; max-width: 900px; }

/* NAGŁÓWEK H1 - ZMNIEJSZONY DLA KOMPUTERÓW */
.hero h1 { 
    font-size: 2rem; 
    margin-bottom: 15px; 
    color: var(--main-color); 
    line-height: 1.3;
}

.hero-logo-container img { width: 220px; height: auto; transition: transform 0.3s ease; }

.cta-btn { 
    background: var(--main-color); 
    color: black !important; 
    padding: 12px 25px; 
    text-decoration: none; 
    font-weight: bold; 
    border-radius: 5px; 
    display: inline-block;
    transition: 0.3s;
}

/* --- USŁUGI --- */
.services { 
    padding: 50px 5%; 
    background: var(--services-bg); 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 25px; 
}

.service-box { 
    background: var(--card-bg); 
    padding: 25px; 
    border-radius: 8px; 
    border-left: 4px solid var(--main-color);
}

/* --- TABELE I OSTRZEŻENIA --- */
.warning-box {
    border: 2px solid var(--main-color);
    padding: 20px;
    background: rgba(241, 196, 15, 0.05);
    border-radius: 8px;
    margin-bottom: 25px;
}

.comparison-table-wrapper { overflow-x: auto; margin: 20px 0; }
.comp-table { width: 100%; border-collapse: collapse; background: var(--card-bg); }
.comp-table th, .comp-table td { padding: 12px; border: 1px solid rgba(128,128,128,0.2); text-align: left; }
.comp-table th { color: var(--main-color); background: rgba(0,0,0,0.2); }

/* --- STOPKA I FORMULARZ --- */
footer { background: var(--dark-bg); color: white; text-align: center; padding: 40px 5%; }
.contact-form { max-width: 450px; margin: 20px auto; background: var(--card-bg); padding: 30px; border-radius: 12px; }
.contact-form input, .contact-form textarea { 
    width: 100%; padding: 12px; margin: 10px 0; 
    background: var(--body-bg); color: var(--text-main);
    border: 1px solid var(--input-border); border-radius: 6px;
}

/* --- RESPONSYWNOŚĆ MOBILNA --- */
@media (max-width: 850px) {
    header { height: 60px; }
    .logo { font-size: 1.1rem; }
    .hamburger { display: flex; }

    .nav-links {
        display: none; 
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0;
        width: 100%;
        background: var(--dark-bg);
        border-bottom: 3px solid var(--main-color);
        padding: 20px 0;
        gap: 5px;
        z-index: 1000;
    }

    .nav-links.active { display: flex !important; text-align: center; }

    .nav-links a {
        width: 100%;
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .theme-toggle { margin: 10px 0; width: 150px; }
    
    /* HERO NA MOBILE - ZMNIEJSZONA CZCIONKA */
    .hero {
        flex-direction: column !important;
        text-align: center;
        padding: 40px 5%;
        gap: 20px;
    }
    .hero-logo-container img { width: 160px; }
    .hero h1 { 
        font-size: 1.5rem !important; 
        line-height: 1.2;
    }
}

/* PŁYWAJĄCY PRZYCISK DLA SMARTFONÓW */
.floating-call-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #27ae60;
    color: white !important;
    padding: 12px 20px;
    border-radius: 50px;
    font-weight: bold;
    z-index: 9999;
    border: 2px solid #fff;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

@media (max-width: 768px) { 
    .floating-call-btn { display: flex; align-items: center; gap: 8px; } 
}

/* Styl dla sekcji wiedzy MajsterIskra */
/* --- STYLE DLA PODSTRONY WIEDZA --- */
.content-wrapper { max-width: 1100px; margin: 0 auto; padding: 40px 5%; }
.info-card { margin-bottom: 80px; scroll-margin-top: 100px; }
.info-card h2 { color: var(--main-color); margin-bottom: 30px; font-size: 2rem; }
.full-width { grid-column: 1 / -1; }

.anchor-nav { 
    position: sticky; top: 70px; background: var(--dark-bg); 
    padding: 15px; z-index: 900; display: flex; 
    justify-content: center; gap: 10px; flex-wrap: wrap;
    border-bottom: 1px solid var(--input-border);
}
.btn-sm { font-size: 0.8rem; padding: 8px 15px; }

/* Legenda kolorów */
.color-legend { margin-top: 30px; display: flex; flex-direction: column; gap: 10px; }
.dot { width: 14px; height: 14px; display: inline-block; border-radius: 50%; margin-right: 10px; border: 1px solid #555; }
.phase { background: #5d4037; } /* Brązowy */
.neutral { background: #2196f3; } /* Niebieski */
.earth { background: #ffeb3b; } /* Żółty */

html { scroll-behavior: smooth; }

/* Poprawka dla sekcji wiedzy - logo z lewej, tekst z prawej */
.knowledge-hero-bg {
    flex-direction: row !important; /* Wymusza logo z lewej na komputerze */
    justify-content: flex-start !important;
    gap: 40px !important;
}

@media (max-width: 850px) {
    .knowledge-hero-bg {
        flex-direction: column !important; /* Na telefonie logo wraca na górę, tekst pod spód */
        text-align: center;
    }
}
