:root {
    --accent: #ff7a00ff;
    --bg: #0f1115;
    --text: #f5f5f5;
}

/* ================================= */
/*             GLOBALNY BODY         */
/* ================================= */

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ================================= */
/*               HEADER              */
/* ================================= */

header {
    padding: 16px 24px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
    position: relative;
    height: 64px;
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    display: block;
}

.logo-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ================================= */
/*               HERO                */
/* ================================= */

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.hero {
    max-width: 800px;
    margin: 0 auto;
}

.hero-row {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.hero-text {
    flex: 1;
}

/* Nagłówek hero */

.hero-text h1 {
    text-align: center;
    font-size: 32px;
    margin-bottom: 20px;
}

/* pomarańczowa ramka tytułu w sekcji HERO */
.hero-title {
    border: 1px solid rgba(255, 122, 0, 0.4);
    background: rgba(255, 122, 0, 0.08);
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 28px;
    margin-bottom: 24px;
    display: block;
    width: 100%;
    box-sizing: border-box; /* żeby trzymało szerokość kontenera */
    text-align: center;     /* zostawiamy centralne wyrównanie */
}





/* ================================= */
/*          JUSTOWANIE TEKSTU        */
/* ================================= */

.subtitle {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 24px;

    /* tu się dzieje magia Worda i Elementora */
    text-align: justify; /* justify */
    text-align-last: center;
}


/* biała ramka pod tekstem w HERO – jak w info-text */
.subtitle-box {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 18px;
    border-radius: 8px;
    box-sizing: border-box;
    margin-top: 16px;
}


/* ================================= */
/*            STATUS BOX             */
/* ================================= */

.status {
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 122, 0, 0.4);
    background: rgba(255, 122, 0, 0.08);
    font-size: 14px;
    max-width: 800px;
    text-align: justify;
    margin-top: 16px;

    /* NOWE – wcięcie wiszące */
    text-indent: -60px;
    padding-left: 80px;
}


.status-strong {
    color: var(--accent);
    font-weight: 600;
}

/* ================================= */
/*        OBRAZEK W HERO             */
/* ================================= */

.hero-image img {
    margin-top: 55px; /* możesz zwiększyć lub zmniejszyć */
    width: 320px;
    border-radius: 8px;
    display: block;
}

/* ================================= */
/*              FOOTER               */
/* ================================= */

footer {
    padding: 12px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    text-align: center;
}

footer a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.25s ease;
}

footer a:hover {
    color: #6EC1E4;
}

/* ================================= */
/*            MOBILKI                */
/* ================================= */

@media (max-width: 700px) {

    /* header na mobilu – logo nad tekstem, bez absolutów */
     header {
        height: auto;
        padding: 12px 16px 16px;
        flex-direction: column;
        align-items: center; /* tu zmiana: center zamiast flex-start */
    }

    .logo img {
        height: 32px;
        margin-bottom: 8px;
    }

    .logo-text {
        position: static;
        transform: none;
        left: auto;
        top: auto;
        font-size: 22px;
        letter-spacing: 0.03em;
        text-align: center;  /* tu zmiana: wycentrowanie */
        width: 100%;         /* żeby napis mógł się centrować w pełnej szerokości */
    }

    .hero-row {
        flex-direction: column;
        text-align: center;
    }

    .hero-image img {
        margin: 0 auto;
        width: 100%;
        max-width: 350px;
    }

    .subtitle {
        text-align: left;
        text-align-last: left;
    }
}

/* ================================= */
/*             INFO BLOCK            */
/* ================================= */

.info-block {
    max-width: 500px;
    margin: 40px auto 10px;   /* odstęp od góry i od dołu */
    text-align: center;
    padding: 0 20px;
}

.info-block h2 {
    font-size: 32px;
    margin-bottom: 20px;
}

/* pomarańczowa ramka tytułu info-block – jak w step-title */
.info-title {
    border: 1px solid rgba(255, 122, 0, 0.4);
    background: rgba(255, 122, 0, 0.08);
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 24px;
    display: block;  /* TERAZ pełna szerokość */
    width: 100%;     /* ramka identyczna jak białe */
    box-sizing: border-box; /* bez uciekania poza kontener */
}



.info-text {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 16px;

    text-align: justify;
    text-align-last: center;

    /* ramka w stylu opisów etapów (step-text) */
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 18px;
    border-radius: 8px;
}

/* ================================= */
/*        BLOK: CO DALEJ / MISJA     */
/* ================================= */

.mission-block {
    max-width: 700px;
    margin: 60px auto 40px;
    padding: 0 20px;
    text-align: center;
}

.mission-title {
    border: 1px solid rgba(255, 122, 0, 0.4);
    background: rgba(255, 122, 0, 0.08);
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 24px;
    margin-bottom: 24px;
    display: block;
    width: 100%;
    box-sizing: border-box;
}

.mission-text {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 16px;

    text-align: justify;
    text-align-last: center;

    /* biała ramka jak w info-text i step-text */
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 18px;
    border-radius: 8px;
    box-sizing: border-box;
}

/* status już jest zdefiniowany, dopisaliśmy tylko margin-top */


/* ================================= */
/*            BLOKI ETAPÓW           */
/* ================================= */

.steps {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.steps-row {
    display: flex;
    gap: 40px;
    justify-content: center;
}

/* Jeden box etapu */

.step-box {
    flex: 1;
    text-align: center;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Ikony nad etapami */

.step-icon {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    opacity: 0.9;

    /* animacja „pływania” ikon */
    animation: step-float 4s ease-in-out infinite;
    transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

/* lekkie przesunięcie fazy między etapami, żeby nie pływały równo */

.step-box:nth-child(1) .step-icon {
    animation-delay: 0s;
}

.step-box:nth-child(2) .step-icon {
    animation-delay: 0.3s;
}

.step-box:nth-child(3) .step-icon {
    animation-delay: 0.6s;
}

/* Pomarańczowa ramka – tytuł */

.step-title {
    border: 1px solid rgba(255, 122, 0, 0.4);
    background: rgba(255, 122, 0, 0.08);
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 18px;
    margin-bottom: 16px;
}


/* Biała/czytelna ramka z opisem */

.step-text {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 13px;
    text-align: justify;
    text-align-last: center;
}

/* Efekt na hover całego boxa i ikony */

.step-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.step-box:hover .step-icon {
    transform: translateY(-2px) scale(1.06);
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(255, 122, 0, 0.7));
}

/* ================================= */
/*          ETAPY – MOBILKI          */
/* ================================= */

@media (max-width: 700px) {
    .steps-row {
        flex-direction: column;
        gap: 30px;
    }

    .step-icon {
        width: 80px;
    }
}

/* ================================= */
/*        ANIMACJA IKON ETAPÓW       */
/* ================================= */

@keyframes step-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}
