: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;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    gap: 16px; /* żeby elementy się nie kleiły */
}

.logo-text {
    flex-grow: 1; /* to przesunie przycisk EN na prawą stronę */
}

.logo {
    margin-right: 16px;
}

.logo img {
    height: 100px;
    display: block;
}

.logo-text {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ================================= */
/*               LICZNIK             */
/* ================================= */

.mk-countdown-box {
    margin: 16px auto 0 auto;
    padding: 12px 22px;
    border: 2px solid #ff7a00;
    border-radius: 10px;
    display: block;
    text-align: center;
    font-size: 22px;
    color: #ff7a00;
    font-weight: 600;
    max-width: max-content;
}

.mk-count-label {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

/* ================================= */
/*               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: block;          /* DOMYŚLNIE JEDNA KOLUMNA – tekst nad obrazkiem */
}

.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 ramka trzymała szerokość kontenera */
    text-align: center;
}

/* ================================= */
/*          JUSTOWANIE TEKSTU        */
/* ================================= */

.subtitle {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 24px;

    /* tu się dzieje magia Worda i Elementora */
    text-align: 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;

    /* „wiszące” wcięcie na desktopie – tekst wyrównuje się do pierwszego słowa po „Status:” */
    text-indent: -48px;
    padding-left: 70px;
}

.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;
}

/* ================================= */
/*             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;
    width: 100%;
    box-sizing: border-box;
}

.info-text {
    font-size: 16px;
    color: #cccccc;
    margin-bottom: 16px;

    text-align: justify;
    text-align-last: center;

    /* biała ramka jak 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;
    box-sizing: border-box;
}

/* ================================= */
/*        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;
}

/* ================================= */
/*            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ł etapu */

.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 etapu */

.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: 14px;
    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));
}

/* ================================= */
/*             BADGE KONTAKT         */
/* ================================= */

.badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 122, 0, 0.6);
    background: rgba(255, 122, 0, 0.08);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease,
        filter 0.2s ease;
}

.badge:hover {
    background: rgba(255, 122, 0, 0.18);
    box-shadow: 0 0 18px rgba(255, 122, 0, 0.65);
    transform: translateY(-1px);
    filter: brightness(1.05);
}

/* Badge kontaktu pod misją */

.badge-contact {
    margin: 24px auto 16px;
}

/* ================================= */
/*           MODAL: KONTAKT          */
/* ================================= */

.contact-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);   /* trochę lżej niż 0.75 */
    backdrop-filter: blur(4px);       /* delikatne rozmycie tła */
    display: flex;                    /* zawsze flex, sterujemy przez opacity/pointer-events */
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.contact-modal-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.contact-modal {
    background: #14161c;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 20px 24px;
    max-width: 360px;
    width: calc(100% - 40px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.75);

    /* start odrobinę niżej i mniejszy, potem „wpływa” na miejsce */
    transform: translateY(8px) scale(0.98);
    opacity: 0;
    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.contact-modal-overlay.open .contact-modal {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.contact-modal-title {
    font-size: 20px;
    margin: 0 0 12px;
    text-align: center;
}

.contact-modal-text {
    font-size: 14px;
    color: #cccccc;
    margin: 0 0 12px;
    text-align: justify;
}

.contact-modal-email {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 14px;
    padding: 8px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.03);
    margin-bottom: 14px;
    text-align: center;
}

.contact-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.contact-btn {
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    background: var(--accent);
    color: #0f1115;
    transition: filter 0.2s ease, transform 0.2s ease;
}

.contact-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.contact-btn-secondary {
    background: transparent;
    color: #f5f5f5;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.contact-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* ================================= */
/*            MOBILKI                */
/* ================================= */

@media (max-width: 700px) {

    /* header na mobilu – wracamy do kolumny jak lubiłeś */
    header {
        padding: 12px 16px 16px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo {
        margin-right: 0;
        margin-bottom: 8px;
    }

    .logo img {
        height: 100px;     /* albo 60px, 72px, jak chcesz */
        margin-bottom: 12px;
    }

    .logo-text {
        font-size: 22px;
        letter-spacing: 0.03em;
        width: 100%;
        margin-top: 0;
    }

    .mk-countdown-box {
        flex-basis: auto;
        margin-top: 8px;
    }

    .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;
    }

    /* Etapy – kolumna na mobilu */

    .steps-row {
        flex-direction: column;
        gap: 30px;
    }

    .step-icon {
        width: 80px;
    }

    /* Status – wersja mobilna, prosta i czytelna */

    .status {
        text-indent: 0;
        padding-left: 16px;
        text-align: left;
    }

    .status-strong {
        display: block;
        margin-bottom: 4px;
    }
}

/* ================================= */
/*  TELEFONY / TABLETY (DOTYK)       */
/*  Wymuszamy układ mobilny          */
/*  niezależnie od orientacji        */
/* ================================= */

@media (hover: none) and (pointer: coarse) {

    .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;
    }
}

/* ================================= */
/*    DESKTOP / SZERSZE EKRANY       */
/*    Od 900px w górę – dwie kolumny */
/* ================================= */

@media (min-width: 900px) {

    .hero-row {
        display: flex;
        gap: 40px;
        align-items: flex-start;
    }

    .hero-text {
        margin-bottom: 0;
    }

    .hero-image img {
        margin-top: 55px;
        width: 320px;
    }
}

/* ================================= */
/*        ANIMACJA IKON ETAPÓW       */
/* ================================= */

@keyframes step-float {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
    100% {
        transform: translateY(0);
    }
}

/* ================================= */
/*        BADGE ZMIANY JĘZYKA        */
/* ================================= */

.lang-switch {
    display: inline-block;
    padding: 6px 18px;               /* trochę większy padding dla ładnego światła */
    border-radius: 999px;
    border: 1px solid rgba(255, 122, 0, 0.6);
    background: rgba(255, 122, 0, 0.08);
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    margin-top: 8px;
    margin-left: 8px;
    transition:
        background 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease,
        filter 0.25s ease;
}

.lang-switch:hover {
    background: rgba(255, 122, 0, 0.18);
    box-shadow: 0 0 22px rgba(255, 122, 0, 0.75);   /* MOCNIEJSZE ŚWIATŁO – jak Kontakt */
    transform: translateY(-1px);
    filter: brightness(1.1);                       /* lekkie rozświetlenie */
}

/* ================================= */
/*       PRZYCISK POWRÓT NA GÓRĘ     */
/* ================================= */

.mk-scroll-top {
    position: fixed;
    right: 16px;
    bottom: 16px;

    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 122, 0, 0.15); /* startowo słaby kontur */
    background: transparent;                   /* ZAWSZE pusty środek */
    color: rgba(255, 122, 0, 0.15);           /* strzałka tak samo słaba jak kontur */
    font-size: 18px;
    font-weight: 700;
    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;

    box-shadow: none;

    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    z-index: 900;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

/* tylko pokazanie / ukrycie – intensywność robimy w JS przez kolor, nie opacity */

.mk-scroll-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* hover – pełna poświata, niezależnie od scrolla */

.mk-scroll-top:hover {
    background: rgba(255, 122, 0, 0.18);
    color: #0f1115;
    box-shadow: 0 0 24px rgba(255, 122, 0, 0.95);
    filter: brightness(1.08);
}

/* Delikatne dryfowanie przełącznika języka w różnych kierunkach */
.lang-switch {
    animation: lang-drift 6s ease-in-out infinite;
}

/* Płynne przesunięcia w czterech kierunkach, subtelne jak ikonki */
@keyframes lang-drift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(3px, -2px); }
    50%  { transform: translate(0, -4px); }
    75%  { transform: translate(-3px, -2px); }
    100% { transform: translate(0, 0); }
}

/* --- FIX DLA ROZSTRZELONEGO TEKSTU NA TELEFONIE --- */
@media (max-width: 700px) {
  p, .info-text, .mission-text, .step-text {
    text-align: center !important;
  }
}
