/* Import czcionki Open Sans */
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;700&display=swap');

/* Definicja zmiennych globalnych */
:root {
    --main-text-color: rgba(39, 37, 45, 0.75);
    --section-margin: 5.625rem;
    --base-font-size: 1.0625rem;
}

/* Styl podstawowy */
body {
    font-family: 'Open Sans', sans-serif;
    font-size: var(--base-font-size);
    color: var(--main-text-color);
    margin: 0.9375rem auto 0;
    padding: 0;
    background-color: #ffffff;
}

/* Globalne style dla obrazów */
img {
    max-width: 100%;
    height: auto;
}


/* Kontener centralny */
.container {
    width: 85%;
    max-width: 64rem;
    margin: 0 auto;
}

/* Header styles */
header {
    margin-bottom: var(--section-margin);

    .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.625rem 0;
    }

    img {
        height: auto;
    }
}

/* Navigation styles */
nav {
    a {
        text-decoration: none;
        font-size: 0.875rem;
        margin-left: 0.9375rem;
        color: var(--main-text-color);
        letter-spacing: 0.125rem;

        &.active {
            font-weight: bold;
        }
    }
}

.language-menu {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 0.9375rem;

    li {
        display: inline-block;
    }
}

/* Text content styles */
.text-content {
    text-align: justify;
    letter-spacing: 0.046875rem;
    line-height: 1.8;
    font-weight: 300;
}

.section-title {
    font-size: 1.3125rem;
    text-align: center;
    letter-spacing: 0.046875rem;
}

/* Section styles */
.section-justify {
    margin-bottom: var(--section-margin);
}

.section-columns {
    display: flex;
    gap: 1.25rem;
    margin-bottom: var(--section-margin);

    .column {
        flex-basis: 50%;
    }

    .column-image {
        margin-top: 2.1875rem;

        img {
            width: 75%;
            object-fit: contain;
            object-position: 0 0;
        }
    }

    .column-image-right img {
        width: 50%;
        display: block;
        margin-left: auto;
    }

    .column-text {
        margin-top: 2.8125rem;

        h2.section-title {
            margin-bottom: 0.625rem;
        }

        ul li {
            font-weight: 700;
            line-height: 1.8;
            letter-spacing: 0.046875rem;
        }
    }
}

/* Hidden SEO heading */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Analytics section */
.section-analytics {
    margin-bottom: var(--section-margin);

    .container {
        width: 100%;
    }

    .section-title {
        font-size: 1.0625rem;
        text-align: justify;
        letter-spacing: 0.046875rem;
        font-weight: bold;
        margin-bottom: 1.25rem;
    }

    ul {
        list-style-type: disc;
        padding-left: 1.25rem;

        li {
            font-weight: 300;
            line-height: 1.8;
            letter-spacing: 0.046875rem;
        }
    }
}

/* Contact section */
.section-contact {
    margin-bottom: var(--section-margin);

    .container {
        width: 100%;
    }

    .section-title {
        font-size: 1.3125rem;
        text-align: center;
        letter-spacing: 0.046875rem;
        font-weight: bold;
        margin-bottom: 1.25rem;
    }

    .text-content {
        text-align: center;
    }
}

/* Images section */
.section-images {
    margin-bottom: var(--section-margin);

    .container {
        width: 100%;
    }

    img {
        width: 25%;
        max-width: 100%;
        height: auto;
        display: block;
        margin: 0 auto;
    }
}

.images-container {
    text-align: center;
    margin: 0 auto;
    margin-top: 2.0rem;

    img {
        display: block;
        margin: 0 auto;
        margin-bottom: 0;
    }
}

/* Footer styles */
footer {
    height: 1.6875rem;
    background-color: #ffffff;
    color: var(--main-text-color);
    padding: 0.625rem 0;
    text-align: right;

    .container {
        display: flex;
        justify-content: flex-end;
        align-items: center;
    }

    p {
        margin: 0;
        font-size: 0.875rem;
        letter-spacing: 0.125rem;
    }
}

.footer-text {
    text-align: right;
    margin: 0;
    font-size: 0.750rem;
    letter-spacing: 0.125rem;
    padding-right: 0;
}

/* Media Queries dla urządzeń mobilnych
   ========================================================================== */
/* Zastosowanie dla ekranów o szerokości maksymalnej 48rem (768px) */
/* Zmiany obejmują:
   - Zmianę układu kolumn na pionowy
   - Dostosowanie odstępów
   - Modyfikację nawigacji
*/
@media (max-width: 48rem) {
    /* Zmiana układu z dwukolumnowego na pojedynczą kolumnę */
    .section-columns {
        flex-direction: column;
        gap: 2.5rem;
    }

    /* Reset szerokości kolumn do automatycznej */
    .column {
        flex-basis: auto;
    }

    /* Dostosowanie nawigacji dla urządzeń mobilnych */
    nav a {
        text-decoration: none;
        font-size: 0.875rem;
        margin-left: 0.9375rem;
        color: var(--main-text-color);
        letter-spacing: 0.125rem;
        display: inline-block;
        line-height: 1.8;
    }
}

