/* =================================
   USTAWIENIA OGÓLNE
================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #0b1118;
    color: #f5f7fa;
    min-height: 100vh;
}

.page {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* =================================
   GŁÓWNA SEKCJA - DUŻE ZDJĘCIE
================================= */

.hero {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 28px 6%;
    display: flex;
    align-items: stretch;
}

/* =================================
   ZDJĘCIE JAKO CAŁA SEKCJA HERO
================================= */

.image-wrapper {
    position: relative;
    width: 100%;
    min-height: 600px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #263747;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-wrapper img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(6,10,16,0.72) 0%,
        rgba(6,10,16,0.55) 45%,
        rgba(6,10,16,0.82) 100%
    );
}

/* =================================
   TREŚĆ NA ZDJĘCIU - WYŚRODKOWANA
================================= */

.image-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 760px;
    padding: 50px 40px;
    text-align: center;
}

/* Brand / logo na zdjęciu */
.brand {
    display: inline-block;
    color: #ffffff;
    text-decoration: none;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.5px;
    margin-bottom: 26px;
    text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}

.brand span {
    color: #398bfa;
}

.tag {
    display: block;
    color: #398bfa;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 22px;
}

.image-content h1 {
    color: #ffffff;
    font-size: 60px;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 36px;
    text-shadow: 0 4px 30px rgba(0,0,0,0.5);
}

.image-content h1 span {
    display: block;
    color: #398bfa;
}

/* =================================
   PRZYCISKI - WYŚRODKOWANE
================================= */

.buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 46px;
}

.primary-button,
.secondary-button {
    display: inline-block;
    padding: 15px 28px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.2s;
    white-space: nowrap;
}

/* GŁÓWNE CTA - „Skontaktuj się” */
.primary-button {
    color: #ffffff;
    background: #398bfa;
    box-shadow: 0 10px 30px rgba(57,139,250,0.5);
}

.primary-button:hover {
    background: #2375e4;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(57,139,250,0.6);
}

/* DRUGORZĘDNE CTA - „Poznaj możliwości” */
.secondary-button {
    color: #ffffff;
    background: rgba(11,17,24,0.4);
    border: 1px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(2px);
}

.secondary-button:hover {
    color: #398bfa;
    border-color: #398bfa;
    background: rgba(11,17,24,0.6);
}

/* =================================
   TRZY CECHY - WYŚRODKOWANE
================================= */

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.16);
    text-align: left;
}

.feature {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: center;
    text-align: center;
}

.feature-number {
    color: #398bfa;
    font-size: 11px;
    font-weight: 700;
}

.feature h3 {
    color: #ffffff;
    font-size: 13px;
    margin-bottom: 2px;
}

.feature p {
    color: #b7c3d0;
    font-size: 10.5px;
    line-height: 1.5;
}

/* =================================
   PODPIS NA ZDJĘCIU
================================= */

.image-caption {
    position: absolute;
    z-index: 2;
    right: 28px;
    bottom: 20px;
    display: flex;
    gap: 22px;
    color: rgba(255,255,255,0.8);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* =================================
   STOPKA
================================= */

footer {
    min-height: 45px;
    padding: 12px 6%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #202a35;
    color: #7890a8;
    font-size: 10px;
}

/* =================================
   MNIEJSZE EKRANY
================================= */

@media (max-width: 1050px) {
    .image-wrapper {
        min-height: 540px;
    }

    .image-content h1 {
        font-size: 50px;
    }
}

/* =================================
   TABLETY I TELEFONY
================================= */

@media (max-width: 760px) {
    .page {
        overflow: visible;
    }

    .hero {
        padding: 20px 16px 36px;
    }

    .image-wrapper {
        min-height: 0;
        align-items: flex-end;
    }

    .image-overlay {
        background: linear-gradient(
            to top,
            rgba(6,10,16,0.94) 0%,
            rgba(6,10,16,0.7) 55%,
            rgba(6,10,16,0.35) 100%
        );
    }

    .image-content {
        max-width: 100%;
        padding: 290px 24px 30px;
    }

    .brand {
        font-size: 17px;
        margin-bottom: 18px;
    }

    .tag {
        margin-bottom: 16px;
    }

    .image-content h1 {
        font-size: 40px;
        letter-spacing: -1.4px;
        margin-bottom: 28px;
    }

    .buttons {
        margin-bottom: 32px;
    }

    .features {
        grid-template-columns: 1fr;
        gap: 14px;
        padding-top: 22px;
        text-align: left;
    }

    .feature {
        flex-direction: row;
        gap: 12px;
        align-items: flex-start;
        text-align: left;
    }

    .image-caption {
        display: none;
    }

    footer {
        padding: 15px 20px;
    }
}

/* =================================
   MAŁE TELEFONY
================================= */

@media (max-width: 420px) {
    .hero {
        padding: 14px 12px 28px;
    }

    .image-content {
        padding: 250px 18px 26px;
    }

    .image-content h1 {
        font-size: 32px;
        letter-spacing: -1px;
    }

    .buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .buttons a {
        text-align: center;
    }

    footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* =================================
   NIŻSZE EKRANY KOMPUTERÓW
================================= */

@media (min-width: 761px) and (max-height: 850px) {
    .hero {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .image-wrapper {
        min-height: 480px;
    }

    .image-content {
        padding: 34px 40px;
    }

    .image-content h1 {
        font-size: 50px;
        margin-bottom: 26px;
    }

    .tag {
        margin-bottom: 16px;
    }

    .brand {
        margin-bottom: 18px;
    }

    .buttons {
        margin-bottom: 32px;
    }

    .features {
        padding-top: 22px;
    }
}

@media (min-width: 761px) and (max-height: 720px) {
    .image-wrapper {
        min-height: 430px;
    }

    .image-content h1 {
        font-size: 42px;
        margin-bottom: 20px;
    }

    .tag {
        margin-bottom: 12px;
    }

    .brand {
        margin-bottom: 14px;
    }

    .buttons {
        margin-bottom: 24px;
    }

    .features {
        padding-top: 18px;
    }
}