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

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    background: #0b1118;
    color: #f1f5f9;
}

a {
    text-decoration: none;
    color: inherit;
}

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

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

.hero {
    flex: 1;
    width: 100%;
    max-width: 1400px;
    margin: 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 #263642;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(4,10,17,0.75) 0%,
        rgba(4,10,17,0.58) 45%,
        rgba(4,10,17,0.85) 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: #39d98a;
}

.tag {
    display: block;
    color: #39d98a;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 22px;
}

.image-content h1 {
    color: #f1f5f9;
    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 {
    color: #39d98a;
    display: block;
}

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

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

/* GŁÓWNE CTA - „Skontaktuj się” */
.primary-button {
    background: #39d98a;
    color: #07130d;
    padding: 15px 28px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
    box-shadow: 0 10px 30px rgba(57,217,138,0.45);
    white-space: nowrap;
}

.primary-button:hover {
    background: #25bd73;
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(57,217,138,0.55);
}

/* DRUGORZĘDNE CTA - „Poznaj możliwości” */
.secondary-button {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 15px 28px;
    border-radius: 7px;
    font-size: 13px;
    transition: 0.3s;
    white-space: nowrap;
    background: rgba(11,17,24,0.4);
    color: #ffffff;
    backdrop-filter: blur(2px);
}

.secondary-button:hover {
    border-color: #39d98a;
    color: #39d98a;
    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);
}

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

.feature-number {
    color: #39d98a;
    font-size: 11px;
    font-weight: bold;
}

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

.feature p {
    color: #a9b6c2;
    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;
    letter-spacing: 1.5px;
    font-weight: bold;
}

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

footer {
    height: 48px;
    flex-shrink: 0;
    padding: 0 6%;
    border-top: 1px solid #202b35;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #71808d;
    font-size: 11px;
}

/* =================================
   MNIEJSZE LAPTOPY I TABLETY
================================= */

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

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

/* =================================
   TELEFONY I WĘŻSZE TABLETY
================================= */

@media (max-width: 760px) {
    .hero {
        padding: 20px 16px 36px;
    }

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

    .image-overlay {
        background: linear-gradient(
            to top,
            rgba(4,10,17,0.95) 0%,
            rgba(4,10,17,0.72) 55%,
            rgba(4,10,17,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;
    }

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

    .image-caption {
        display: none;
    }

    footer {
        height: auto;
        min-height: 45px;
        padding: 12px 5%;
    }
}

/* =================================
   BARDZO 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 {
        font-size: 9px;
    }
}

/* =================================
   NISKIE 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;
    }
}