* {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-blue: #0773c4;
    --primary-dark: #10325f;
    --text-light: hsl(212, 100%, 95%);
    --text-active: hsl(212, 13%, 50%);
    --hover-blue: hsl(212, 100%, 60%);
    --bg-light: #f8fafc;
}

html {
    overflow-y: scroll;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

h2 a {
    text-decoration: none;
    color: #003375;
    transition: color 0.1s ease-in-out;
}

h2 a:hover {
    color: #0077ff;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    justify-content: center;
    background-color: var(--bg-light);
}

.grid-perspective {
    position: fixed;
    top: -50px;
    left: 0;
    width: 100%;
    height: calc(100% + 50px);
    z-index: -1;
    pointer-events: none;

    /* Zmniejszamy siatkę z 50px na 25px - będzie 2x więcej linii */
    background-image:
        linear-gradient(rgba(7, 115, 196, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(7, 115, 196, 0.1) 1px, transparent 1px);
    background-size: 25px 25px;

    /* Twoja ulubiona mocna perspektywa */
    transform: perspective(500px) rotateX(45deg) translateZ(-1px);
    transform-origin: top;

    /* Maska, która sprawi, że gęsta siatka nie będzie "bić" po oczach na górze */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
    mask-image: linear-gradient(to bottom, transparent 0%, black 40%);

    /* Spowolniona animacja - gęsta siatka przy 10s może męczyć wzrok */
    animation: panGrid 10s linear infinite;
}

@keyframes panGrid {
    0% {
        transform: perspective(500px) rotateX(45deg) translateZ(-1px) translateY(0);
    }

    100% {
        transform: perspective(500px) rotateX(45deg) translateZ(-1px) translateY(50px);
    }
}

header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    background: linear-gradient(60deg, #10325f, #0773c4 50%);
    padding: 0.6rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: rgba(0, 0, 0, 0.333) 1px solid;
    background:
        /* The carbon weave overlay (now incredibly subtle at 2%) */
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 25%, rgba(0, 0, 0, 0.02) 75%, rgba(0, 0, 0, 0.02)),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 25%, rgba(0, 0, 0, 0.02) 75%, rgba(0, 0, 0, 0.02)),
        /* Your original blue gradient */
        linear-gradient(60deg, #10325f, #0773c4 100%);
    background-size: 10px 10px, 10px 10px, 100% 100%;
    overflow: visible;
}

.logo {
    grid-column: 1;
    position: static;
    justify-self: start;
    transition: 0.1s ease-in-out;
    filter: brightness(1.5);
}

.logolink {
    width: fit-content;
    display: block;
}

.logo:hover {
    filter: brightness(2);
}

nav {
    display: flex;
    grid-column: 2;
    justify-content: center;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1rem;
}

nav li a {
    font-size: 1.125rem;
    text-decoration: none;
    color: hsl(212, 100%, 95%);
    transition: color 0.1s ease-in-out;
}

nav li a.active {
    text-decoration: none;
    color: hsl(212, 13%, 50%);
    transition: color 0.1s ease-in-out;
}

nav li a:hover {
    color: hsl(212, 100%, 60%);
}

.lang-switcher {
    position: static;
    grid-column: 3;
    justify-self: end;
    text-align: right;
}

.lang-switcher a {
    color: hsl(212, 100%, 95%);
    text-decoration: none;
    transition: color 0.1s ease-in-out;
    font-weight: bold;
}

.lang-switcher a.active {
    color: hsl(212, 13%, 50%);
}

.lang-switcher a:hover {
    color: hsl(212, 100%, 60%);
}

main {
    margin: 0rem;
    padding: 0rem;
    display: flex;
    justify-content: flex-start;
    flex: 1;
    flex-direction: column;
    margin-right: 2.5vw;
    margin-left: 2.5vw;
}

main section {
    padding-top: 1rem;
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-self: center;
    align-items: center;
    padding-bottom: .5rem;
    padding-inline: 2.5rem;
    box-sizing: border-box;
    width: 90%;
    max-width: 52.5rem;
}



.post {
    padding: .25rem;
    padding-top: 0.33rem;
    padding-bottom: 0.5rem;
    display: flex;
    align-self: center;
    flex-direction: row;
}

.post img {
    box-shadow: 2px 2px 8px rgba(0, 0, 0, 0.25);
}

.post p {
    padding-left: 1rem;
}


img {
    max-width: 100%;
    height: auto;
}






.postlink {
    display: flex;
    flex-direction: column;
    align-items: start;
    text-decoration: none;
    color: inherit;
    transition: 0.1s ease-in-out;
}

.postlink:hover {
    color: hsl(212, 100%, 25%);
    filter: brightness(1.125);
}

section:has(.postlink) {
    cursor: pointer;
    transition: background 0.1s ease-in-out;
}

section:has(.postlink):hover {
    background: rgba(0, 0, 0, 0.03);
    border-radius: .75rem;
}


p {}

section p {
    font-size: 1.25rem;
    color: #000000;
    padding-top: 1rem;
    margin-bottom: 2rem;
}

section img {
    border-radius: 1rem;
}

.inpostimg {
    border-radius: 1rem;
    margin-bottom: 1.5rem;
}

.inpostcont {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0rem;
}

footer {
    display: flex;
    background: linear-gradient(20deg, #10325f, #0773c4 50%);
    border-top: 1px solid rgba(0, 0, 0, 0.5);
    padding-top: 1.25rem;
    padding-bottom: .25rem;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
    background:
        /* The carbon weave overlay (now incredibly subtle at 2%) */
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 25%, rgba(0, 0, 0, 0.02) 75%, rgba(0, 0, 0, 0.02)),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 25%, rgba(0, 0, 0, 0.02) 75%, rgba(0, 0, 0, 0.02)),
        /* Your original blue gradient */
        linear-gradient(20deg, #10325f, #0773c4 100%);
    background-size: 10px 10px, 10px 10px, 100% 100%;
}

h1,
h2,
h3,
nav ul li a,
h2 a,
.logo,
.ilemale,
.ilebig,
a {
    font-family: 'Montserrat', 'Droid Sans Mono', 'monospace', monospace;
    text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.25);
}

p {
    font-family: 'Montserrat', 'Droid Sans Mono', 'monospace', monospace;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
}

.ileboxy {
    margin-top: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    max-width: 100vw;
}

.ilebox {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    gap: .125rem;
    background: linear-gradient(30deg, #10325f, #0773c4 0%);
    padding: 1rem;
    padding-inline: 1.25rem;
    border: 2px solid hsla(0, 0%, 0%, 0.25);
    border-radius: 1rem;
    /* THE NEW BACKGROUND */
    /* We use rgba to make your exact blues 85% opaque */
    background: linear-gradient(30deg, rgb(9, 68, 146), #0773c4);

    /* THE MAGIC: Blurs whatever is behind the box (your animated grid) */
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    /* Safari support */
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.25);
}



.ilebig {
    display: flex;
    font-size: clamp(1rem, 3vw, 2rem);
    color: hsl(212, 100%, 85%);
    font-weight: normal;
}

.ilemale {
    font-size: clamp(.75rem, 2.75vw, 1.75rem);
    color: hsl(0, 0%, 100%);
    text-shadow: #000000 0px 0px 1px;
    font-weight: bold;
    transition: color 0.1s ease-in-out;
}

.ilebox a {
    text-decoration: none;
}

a .ilemale:hover {
    color: hsl(212, 100%, 60%);
}

.zenaszzespol {
    padding-top: 2rem;
}

.logohome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 800px;
    max-width: 100vw;
    margin-top: 0rem;
    margin-bottom: 0rem;
}

.logohome img {
    width: 100%;
    height: auto;
    pointer-events: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-drag: none;
    -webkit-user-drag: none;
    border-radius: 0rem;
}

.zespolmedia {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    align-self: center;
    align-content: center;
    gap: 1rem;
}

.mediaikon {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
}

.mediaikon i {
    font-size: 2.5rem;
    color: hsl(212, 100%, 10%);
    transition: color 0.1s ease-in-out;
}

.zespolmedia i:hover {
    color: hsl(212, 100%, 35%);
}

.dlaczego {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    gap: 0rem;
    padding: 1rem;
}

h1 {
    display: flex;
    justify-content: center;
    font-weight: bold;
    font-size: clamp(1.125rem, 4vw, 2rem);
}

h2 {
    font-size: clamp(0.9rem, 2.5vw, 1.5rem);
    font-weight: normal;
}

time {
    font-size: clamp(0.8rem, 2vw, 1.25rem);
    color: #333333;
    align-self: flex-end;
}

h3 {
    font-size: 1rem;
    font-weight: normal;
    transition: color 0.1s ease-in-out;
}

h3:hover {
    color: hsl(212, 100%, 65%);
}

.nav-toggle {
    display: none;
}

.menu-overlay {
    display: none;
}

.hamburger {
    display: none;
    grid-column: 2;
    font-size: 1.5rem;
    color: hsl(212, 100%, 95%);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s ease, transform 0.3s ease;
    /* just add this line */
}






.my {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
}

.formalne,
.sponsorzy,
.socials {
    padding: 0.25rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sponsorzy {
    gap: .5rem;
    min-height: 10rem;
    justify-content: flex-start;
    flex-direction: column;
}

.formalne {
    gap: .75rem;
    display: flex;
    flex-direction: column;
    min-height: 10rem;
    justify-content: flex-start;
}

.socials {
    gap: .75rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 10rem;
}

.icons {
    display: flex;
    gap: 1.75rem;
    font-size: clamp(2rem, 2.5vw, 1.25rem);
    padding-left: 0rem;
}

.sponsorzy {}

.sponsorzy img {
    transition: 0.1s ease-in-out;
}

.sponsorzy img:hover {
    filter: brightness(1.25);
}

.zdjecia {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}





.sponzdjec img {
    width: 85px;
    height: 85px;
    object-fit: contain;
}

.drugiezdj img {
    width: 100px;
    height: 60px;
    object-fit: contain;
    border-radius: .25rem;
}

.sponzdjec,
.drugiezdj {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem;
}

.sponsorzy {
    max-width: 900px;
    width: 100%;
    align-items: center;
}

.drugiezdj img {
    border-radius: .25rem;
}

.formalne p {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: hsl(212, 100%, 85%);
    transition: color 0.1s ease-in-out;
}

.formalne a {
    text-decoration: none;
    text-decoration-line: none;
}

.formalne p:hover {
    color: hsl(212, 100%, 65%);
}

footer h3 {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    color: hsl(212, 100%, 95%);
}



.bolid img {
    max-width: 100%;
    margin-top: .75rem;
    margin-bottom: .75rem;
    border-radius: 1rem;
}


@media only screen and (min-width: 1500px) {

    .formalne,
    .sponsorzy,
    .socials {
        border-inline: 1px solid hsla(0, 0%, 0%, 0.1);
    }
}




.otherinfo {
    max-width: 100%;
    display: flex;
    padding: .5rem;
    padding-top: .75rem;
    border-top: 1px solid rgba(0, 0, 0, 0.2);
    justify-content: center;
    align-items: center;
}

.otherinfo p {
    font-weight: normal;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1rem);
    color: rgba(145, 145, 145, 0.625);
}



.socials a {
    color: hsl(212, 100%, 95%);
    transition: color 0.1s ease-in-out;
}

.socials a:hover {
    color: hsl(212, 100%, 60%);
}

.main-logo {
    display: flex;
    justify-content: center;
    align-self: center;
    height: auto;
    margin-top: 0rem;
    margin-bottom: 0rem;
    pointer-events: none;
    user-select: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    user-drag: none;
    -webkit-user-drag: none;
    /* 1. On small screens, take up 90% of the width (leaves a nice little gap on the edges) */

    /* 2. On big screens, hit the "safety brake" at 800px and stop growing */
    max-width: 800px;
    width: 90%;

    /* 3. Keep the aspect ratio perfect so it doesn't squish */
    height: auto;

    /* 4. Keep it perfectly centered in the container */

}

/*@media only screen and (max-width: 1300px) {
    .my {
        flex-direction: column-reverse;
        align-items: center;
        gap: .75rem;
        flex-wrap: wrap;
    }

    .socials {
        padding-left: 1rem;
    }
        main section {
        padding-inline: 2.5rem;
    }
    .formalne,
    .sponsorzy,
    .socials {
    padding: .25rem;
    min-height: unset;
    }

}
    */
.zespol {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* This centers the "big container" on the page */
    padding: 1rem;
    width: 100%;
}

.zespol h1 {
    align-self: center;
}

.zespolzdjecie {
    width: 300px;
    flex-shrink: 0;
    /* Prevents the image from shrinking when the container gets smaller */
}

.zespolosoba {
    display: flex;
    flex-direction: row;
    /* Image on left, text on right */
    align-items: center;
    /* Vertically centers the text with the image */
    justify-content: flex-start;
    /* Forces the image to stick to the left edge! */
    gap: 2rem;
    /* Adds some breathing room between image and text */
    padding: 2rem 1rem;
    border-bottom: 3px solid hsla(222, 59%, 17%, 0.75);
    width: 100%;
    max-width: 800px;
    /* Forces all rows to be exactly this wide, so the images perfectly align */
}

.zespolosoba h2 {
    white-space: nowrap;
}

.blogmain {}

.blogpost {
    max-width: 100vw;
}

.blogpost p {
    padding-top: 0rem;
    margin-top: .75rem;
    margin-bottom: 1.5rem;
}


.asponsor {
    display: flex;
    align-items: center;
}


@media only screen and (max-width: 1050px) {
    .zespolosoba {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1rem;
    }

    /* Let it wrap again once it's safely stacked on mobile */
    .zespolosoba h2 {
        white-space: normal;
    }
}

@media only screen and (max-width: 1024px) {

    /* Changed from 1300px to 1024px */
    .my {
        flex-direction: column-reverse;
        align-items: center;
        gap: 0rem;
        flex-wrap: wrap;
    }

    .socials {
        flex: none;
        /* Stops them from stretching to fill the vertical space */
        min-height: auto;
        /* Safely removes the 10rem minimum height */
        width: 100%;
        /* Ensures they stay properly centered */
        padding: 1rem;
        /* Gives a normal, controlled amount of breathing room */
    }

    .formalne {
        flex: none;
        min-height: auto;
        justify-content: flex-start;
        width: 100%;
    }

    /* ... rest of your media query styles ... */
}

@media only screen and (max-width: 800px) {


    main section {
        padding-inline: 2rem;
        width: 90vw;
    }

    section p {
        font-size: clamp(1rem, 2.5vw, 1.25rem);
    }

}

@media only screen and (max-width: 600px) {
    .hamburger {
        display: block;
        justify-self: center;
    }

    header {
        padding: 0.6rem 1rem;
        width: 100%;
    }

    nav {
        max-height: 0;
        overflow: hidden;
        opacity: 0;

        position: absolute;
        top: 100%;
        left: -1rem;
        right: -1rem;
        width: calc(100% + 2rem);
        margin: 0;
        padding: 0;
        /* removed width: 100vw and margin-left: calc() */
        grid-column: 1 / -1;
        z-index: 999;

        transition: max-height 0.35s ease, opacity 0.25s ease;

        background:
            repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 25%, rgba(0, 0, 0, 0.02) 95%, rgba(0, 0, 0, 0.02)),
            repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.02) 25%, transparent 25%, transparent 25%, rgba(0, 0, 0, 0.02) 95%, rgba(0, 0, 0, 0.02)),
            linear-gradient(60deg, #10325f, rgba(7, 114, 196, 0.95) 100%);
        background-size: 10px 10px, 10px 10px, 100% 100%;
        border-bottom: rgba(0, 0, 0, 0.5) 1px solid;

    }

    nav ul {
        flex-direction: column;
        width: 100%;
        padding: 0.5rem 0;
        align-items: center;
        gap: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        padding: 0.6rem 0;
    }

    nav ul li:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    /* AFTER */
    .nav-toggle:checked+.hamburger+nav {
        max-height: 400px;
        /* tall enough to fit all your links */
        opacity: 1;
        pointer-events: auto;
    }

    .nav-toggle:checked~.menu-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        z-index: 998;
        background: transparent;
        cursor: default;
    }

    .nav-toggle:checked+.hamburger {
        color: hsl(212, 100%, 75%);
        transform: rotate(90deg) scale(1.1);
        /* spin + slight pop */
    }




    main section {
        padding-inline: 1.5rem;
    }


    section {
        width: 90vw;
    }

    section p {
        font-size: 1rem;
    }

    .zespolosoba {
        flex-direction: column;
        /* Stacks the image and text vertically */
        align-items: center;
        /* Centers them horizontally */
        text-align: center;
        /* Centers the text alignment */
        gap: 1rem;
        /* Reduces the gap for mobile */
    }

}