/* ASTRA v2.1 - responsive */
:root {
    --bg: #071321;
    --panel: #10253b;
    --accent: #32d7ff;
    --text: #f5f8fa;
    --header-bg: rgba(7, 19, 33, .88);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 82px;
}

body {
    min-width: 0;
    overflow-x: hidden;
    font-family: Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

.top {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 10px clamp(20px, 4vw, 60px);
    background: var(--header-bg);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.logo {
    display: flex;
    align-items: center;
}
.logo img {
    height: 55px;
    width: 55px;
    display: block;
}

nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 2vw, 28px);
    min-width: 0;
}

nav a {
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: color .25s ease;
}

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

.hero {
    width: 100%;
    aspect-ratio: 1717 / 916;
    min-height: 0;
    background:
        linear-gradient(rgba(7,19,33,.16), rgba(7,19,33,.22)),
        url('../assets/hero.png') center center / cover no-repeat;
}

.cards {
    width: min(1320px, 100%);
    margin: clamp(48px, 7vw, 100px) auto 0;
    padding: 30px clamp(20px, 4vw, 40px) 70px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.card {
    min-width: 0;
    background: var(--panel);
    border: 1px solid rgba(50,215,255,.18);
    border-radius: 16px;
    padding: clamp(22px, 2.2vw, 30px);
    transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 20px 40px rgba(0,0,0,.35);
}

.card h2 {
    margin-bottom: 15px;
    color: var(--accent);
    font-size: clamp(1.15rem, 1.5vw, 1.5rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.card p,
.about p,
footer p {
    overflow-wrap: anywhere;
}

.about,
footer {
    padding: clamp(55px, 7vw, 80px) clamp(20px, 8vw, 8%);
}

.about {
    max-width: 1200px;
    margin: 0 auto;
}

.about h2,
footer h2 {
    margin-bottom: 18px;
}

.about p {
    max-width: 850px;
}

footer {
    background: #091421;
    border-top: 1px solid rgba(255,255,255,.08);
}

footer a {
    color: var(--accent);
    text-decoration: none;
}

footer a:hover,
footer a:focus-visible {
    text-decoration: underline;
}

/* mniejszy desktop / tablet poziomy */
@media (max-width: 1100px) {
    .cards {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* tablet */
@media (max-width: 820px) {
    html {
        scroll-padding-top: 112px;
    }

    .top {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding-top: 12px;
        padding-bottom: 12px;
    }

    nav {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 22px;
    }

    .hero {
        /* Pokazujemy całą grafikę zamiast wycinać jej boki. */
        aspect-ratio: 1717 / 916;
        background-size: contain;
        background-color: #071321;
    }

    .cards {
        margin-top: 40px;
    }
}

/* telefon */
@media (max-width: 600px) {
    html {
        scroll-padding-top: 105px;
    }

    .top {
        min-height: auto;
        gap: 8px;
        padding: 10px 14px;
    }

    .logo {
        font-size: 1.45rem;
    }

    nav {
        gap: 6px 14px;
    }

    nav a {
        font-size: .92rem;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-top: 28px;
        padding: 20px 16px 48px;
    }

    .card {
        padding: 22px 20px;
    }

    .card:hover {
        transform: none;
    }

    .about,
    footer {
        padding: 48px 18px;
    }
}

/* bardzo wąskie telefony */
@media (max-width: 380px) {
    nav {
        gap: 5px 10px;
    }

    nav a {
        font-size: .84rem;
    }
}
