:root {
    --bg-color: #0d0d0d;
    --card-bg: #1a1a1a;
    --accent: #d97706; /* Pomarańczowy */
    --text-white: #e5e5e5;
    --header-bg: rgba(13, 13, 13, 0.98);
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-white);
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- STYLOGRAFIA LINKÓW W TREŚCI (Rozwiązanie problemu fioletu) --- */
.hero a, 
.hero a:visited {
    color: var(--accent);
    text-decoration: none; /* Usuwa fioletowe podkreślenie */
    transition: opacity 0.3s;
}

.hero a:hover {
    text-decoration: underline; /* Opcjonalne: podkreślenie pokaże się po najechaniu */
    opacity: 0.8;
}

/* --- NAWIGACJA (GÓRA) --- */
.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    min-height: 75px;
    background: var(--header-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    z-index: 1000;
    border-bottom: 1px solid #222;
    backdrop-filter: blur(12px);
}

.logo {
    font-weight: bold;
    font-size: 1.4rem;
    color: var(--text-white);
    letter-spacing: 0.5px;
}

.logo .highlight {
    color: var(--accent);
}

nav ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
}

nav a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--accent);
}

/* Naprawiony przycisk Bezpłatny Audyt */
.nav-cta {
    border: 1px solid var(--accent);
    padding: 10px 22px;
    border-radius: 6px;
    color: var(--text-white) !important;
    transition: all 0.3s ease-in-out;
}

.nav-cta:hover {
    background: var(--accent);
    color: #fff !important;
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.3);
}

/* --- SEKCJA HERO (TEKST GŁÓWNY) --- */
.hero {
    width: 100%;
    max-width: 900px;
    margin: 160px auto 100px auto;
    padding: 0 25px;
}

.hero h3 {
    color: var(--accent);
    font-size: 2.4rem; /* Duży, czytelny nagłówek */
    margin-bottom: 35px;
    line-height: 1.2;
    font-weight: 700;
}

.hero h4 {
    color: var(--accent);
    font-size: 1.7rem;
    margin: 50px 0 25px 0;
    font-weight: 600;
}

.hero p, .hero li {
    color: var(--text-white);
    font-size: 1.3rem;
    line-height: 1.8;
    margin-bottom: 30px;
    text-align: justify; /* To właśnie "dżustuje" tekst */
    hyphens: auto;       /* Opcjonalnie: dodaje przenoszenie słów (ładniejszy efekt) */
}

.hero ul {
    padding-left: 20px;
    list-style-type: none;
}

.hero li {
    position: relative;
    padding-left: 15px;
}

.hero li::before {
    content: "•";
    color: var(--accent);
    position: absolute;
    left: -10px;
    font-weight: bold;
}

.hero strong {
    color: var(--accent);
    font-weight: 600;
}

/* --- ANIMACJE (STYL SAGITON) --- */
.reveal {
    opacity: 0;
    transform: translateY(40px); /* Subtelny ruch z dołu */
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: transform, opacity;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* --- STOPKA (STYL NAVBAR) --- */
.main-footer {
    background: var(--header-bg);
    border-top: 1px solid #222;
    padding: 60px 5% 30px 5%;
    margin-top: 50px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    gap: 40px;
    padding: 0;
    margin: 0;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-white);
    font-size: 1rem;
    opacity: 0.8;
    transition: 0.3s;
}

.footer-nav a:hover {
    color: var(--accent);
    opacity: 1;
}

.footer-copyright {
    font-size: 0.85rem;
    color: #555;
    letter-spacing: 1px;
}

/* --- RESPONSYWNOŚĆ --- */
@media (max-width: 768px) {
    .main-header {
        flex-direction: column;
        padding: 15px;
        height: auto;
    }

    nav ul {
        margin-top: 15px;
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        margin-top: 200px;
        text-align: left;
    }

    .hero h3 {
        font-size: 1.8rem;
    }

    .hero p {
        font-size: 1.15rem;
    }

    .footer-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
}

/* --- MENU MOBILNE (LOGIKA) --- */
.menu-toggle {
    display: none; /* Ukryty na komputerze */
    flex-direction: column;
    cursor: pointer;
    gap: 6px;
}

.menu-toggle .bar {
    width: 30px;
    height: 3px;
    background-color: var(--text-white);
    transition: all 0.3s ease;
}

@media (max-width: 1100px) {
    /* Wymuszamy układ logo po lewej, hamburger po prawej */
    .main-header {
        flex-direction: row !important; 
        justify-content: space-between !important;
        align-items: center;
        padding: 0 5%;
        height: 70px;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
        margin-left: auto; /* Pcha hamburger do prawej */
    }

    .nav-container {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background-color: var(--bg-color);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
    }

    .nav-container.active {
        right: 0;
    }

    .nav-container ul {
        flex-direction: column;
        align-items: center;
        width: 90%; /* Kontener nie zajmuje całych 100%, by był margines */
        gap: 20px;
    }

    /* RESPONSYWNY TEKST: clamp(min, preferowana, max) */
    .nav-container a {
        /* Tekst nie będzie mniejszy niż 1rem i nie większy niż 1.5rem */
        /* 4vw oznacza, że rośnie wraz z szerokością ekranu */
        font-size: clamp(1rem, 4.5vw, 1.5rem); 
        text-align: center;
        white-space: normal; /* Pozwalamy na zawinięcie, jeśli ekran jest ekstremalnie wąski */
        display: block;
    }

    /* Specjalne traktowanie dla długiego przycisku CTA w menu */
    .nav-cta {
        font-size: clamp(0.9rem, 4vw, 1.3rem) !important;
        width: fit-content;
        padding: 12px 20px !important;
        line-height: 1.2;
    }

    /* Animacja hamburgera */
    .menu-toggle.active .bar:nth-child(2) { opacity: 0; }
    .menu-toggle.active .bar:nth-child(1) { transform: translateY(9px) rotate(45deg); }
    .menu-toggle.active .bar:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }
}


