* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

::selection {
    background: rgba(51, 59, 67, 0.68); /* kolor tła zaznaczenia */
    color: #ffffff; /* kolor tekstu zaznaczonego */
}

body {
    font-family: Tahoma, sans-serif;
    scroll-behavior: smooth;
    background-color: #575757;
}

@media (max-width: 768px) {
    body {
        font-size: 13px; /* zmniejszenie bazowego font-size */
    }
}

@media (max-width: 600px) {
    body {
        font-size: 12px; /* zmniejszenie bazowego font-size */
    }
}

/*HEADER*/

header {
    background: rgba(36, 36, 36, 0.8);
    color: #fff;
    padding: 5px 30px 5px 10px;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    font-weight: 550;
}

header .logo {
    display: flex;
    align-items: center;
    height: 100%;
    color: #fff;
    text-decoration: none;

}

header .logo img {
    max-height: 50px;
    width: auto;
    object-fit: contain;
    display: block;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
}

@media (max-width: 768px) {
    header {
        height: 50px;
    }

    header .logo img {
        max-height: 40px;
    }
}

@media (max-width: 600px) {
    header {
        padding: 5px 10px 5px 5px;
        height: 40px;
    }

    nav a {
        margin: 10px 0;
        padding-left: 5px;
    }

    header .logo img {
        max-height: 30px;
    }
}

@media (max-width: 500px) {
    header {
        flex-direction: row;
        align-items: center;
    }
}

@media (max-width: 400px) {
    nav {
        font-size: 0.9em;
    }
}

@media (max-width: 360px) {
    nav {
        font-size: 0.8em;
    }
}

/*HEADER LANG SWITCH*/

.lang-switch {
    display: flex;
    gap: 10px;
    margin-left: 10px;
}

.lang-switch a {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #fff;
    text-decoration: none;
    font-size: 0.9em;
}

.lang-switch a img {
    display: inline-block;
    vertical-align: middle;
    transition: transform 0.2s;
    width: 20px;
}

.lang-switch a:hover img {
    transform: scale(1.2);
}

@media (max-width: 500px) {
    .lang-switch {
        flex-direction: column;
        gap: 5px;
        align-items: center;
    }

    .lang-switch a {
        flex-direction: column;
        gap: 2px;
        font-size: 0.8em;
    }

    .lang-switch a img {
        width: 15px; /* możesz zmniejszyć, by lepiej wyglądało */
    }
}

/*SECTIONS*/

section {
    scroll-margin-top: 60px;
    width: 100%;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    /*justify-content: center;*/
    align-items: center;
    /*text-align: center;*/
    padding: 20px 40px 20px 40px;
}

.text {
    max-width: 1300px;
    margin: 0 auto;
}

section p {
    text-align: left;
    line-height: 1.7;
    margin-bottom: 1em;
}

section h2 {
    text-align: center;
    line-height: 3;
}

@media (max-width: 768px) {
    section {
        scroll-margin-top: 50px; /*podwyższenie scrolla na wysokość header*/
        min-height: 70vh;
    }
}

@media (max-width: 600px) {
    section {
        scroll-margin-top: 40px; /*podwyższenie scrolla na wysokość header*/
        padding: 10px 20px 10px 20px;
    }
}

/*SECTIONS - COLOR SCHEMES*/

.section-dark {
    background: #454545;
    color: #fff;
}

.section-grey {
    background: #616161;
    color: #fff;
}

.section-lightgrey {
    background: #878787;
    color: #fff;
}

.section-light {
    background: #e5e5e5;
    color: #363636;
}

/*SECTION #START*/

.hero {
    position: relative;
    background: #444;
    overflow: hidden;
    min-height: auto;
    height: 40vh;
}

.hero .overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('pictures/wristband_image.png') center/cover no-repeat;
    opacity: 0.7;
    z-index: 0;
}

.hero-text {
    position: relative;
    z-index: 1;
    color: #fff;
}

@media (max-width: 768px) {
    .hero {
        height: 30vh;
    }
}

@media (max-width: 600px) {
    .hero {
        height: 20vh;
    }
}

/*SECTION #O-PROJEKCIE*/

.animation-box {
    margin-top: 20px;
    width: 80%;
    max-width: 900px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.animation-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}



@media (max-width: 768px) {
    .animation-box {
        width: 90%;
    }
}


/*SECTION #PROBLEM*/
.timeline {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ccc;
}

.timeline-item {
    position: relative;
    margin: 20px 0;
    padding-left: 50px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    left: 11px;
    top: 10px;
    background: #eee;
    border-radius: 50%;
}

.timeline-content {
    background: #717171;
    padding: 15px;
    border-radius: 8px;
}



@media (max-width: 768px) {
    .timeline-item::before {
        width: 15px;
        height: 15px;
        left: 13px;
        top: 15px;
    }
}

/*GALERIA ZDARZEŃ*/

.zdarzenia h2{
    margin-top: 10px;
    line-height: 1.6;
}

.zdarzenia {
    max-width: 1200px; /* zmniejszasz szerokość całej sekcji */
    margin: 0 auto;    /* wyśrodkowanie */
    padding: 0 20px;   /* opcjonalne węższe odstępy na mniejszych ekranach */
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 20px;
    margin-bottom: 20px;
}

/* zachowujemy proporcje obrazów w grid */
.gallery-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s;
}

.gallery-item img:hover {
    transform: scale(1.05);
}

.gallery-item small {
    margin-top: 5px;
    font-size: 0.8em;
    color: #ddd;
    text-align: center;
}

/* największe zdjęcie zajmuje 2x2 */
.gallery-item.big {
    grid-column: span 2;
    grid-row: span 2;
}

/* MEDIA QUERIES */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item.big {
        grid-column: span 2;
        grid-row: span 1;
    }
}

@media (max-width: 500px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 0 10px;
    }
    .gallery-item.big {
        grid-column: span 1;
        grid-row: span 1;
    }
}


/*TABELA*/

#problem .text {
    max-width: 1100px;
    margin-top: 20px;

}

#problem .text p {
    line-height: 1.3;
    margin-bottom: 8px;
}

#problem p strong {
    display: inline-block;
    margin-top: 10px;
}

#problem h4 {
    margin-top: 12px;
    margin-bottom: 6px;
}

#problem h3 {
    margin-top: 16px;
    margin-bottom: 10px;
}

#problem ul, ol {
    padding-left: 25px
}

#problem table thead th {
    font-weight: bold;
}

#problem table tbody td:first-child {
    font-weight: bold;
}

table {
    width: 100%;
    max-width: 1000px;
    margin: 20px auto;
    border-collapse: collapse;
    font-size: 0.9em;
}
table th, table td {
    border: 1px solid #ccc;
    padding: 8px 10px;
    text-align: left;
}
table th {
    background: #666;
    color: #fff;
}

/*SECTION #ROZWIĄZANIE*/

.feature-box {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: #fff;
    color: #333;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    text-align: center;
    max-width: 1300px;
    width: 100%
}

.feature-box img {
    max-width: 250px;
    max-height: 250px;
    border-radius: 8px;
}

.feature-text {
    flex: 1;
    padding: 20px;
    font-size: 0.9em;
}

.feature-text h3 {
    margin-top: 0;
}

.feature-box.reverse {
    flex-direction: row-reverse;
}

.feature-text p {
    margin-bottom: 5px;
}

.feature-images {
    display: flex;
    flex-direction: row;
    gap: 15px;
}

@media (max-width: 850px) {
    .feature-images {
        flex-direction: column;
    }

    .feature-images .feature-image img {
        max-width: 200px;
        height: 100%;
        object-fit: contain;
    }
}

@media (max-width: 650px) {
    .feature-text {
        padding-top: 0;
    }

    .feature-box {
        flex-direction: column;
    }

    .feature-images {
        flex-direction: row;
    }

    .feature-images .feature-image img {
        max-width: 150px;
        height: 100%;
        object-fit: contain;
    }

    .feature-image img {
        max-width: 200px;
        height: 100%;
        object-fit: contain;
    }

    .feature-box.reverse {
        flex-direction: column;
    }

}

@media (max-width: 400px) {
    .feature-images .feature-image img {
        max-width: 120px;
    }
}

/*SECTION #DROGA*/

.etap {
    margin: 30px 0;
}

.etap-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1em;
}

.dot {
    width: 14px;
    height: 14px;
    background: #ffffff;
    border-radius: 50%;
}

.etap-line {
    margin: 5px 0;
    padding-left: 30px;
    font-size: 0.9em;
}

.expand-container {
    background: #555555;
    color: #fff;
    border-radius: 5px;
    overflow: hidden;
    transition: background 0.3s;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.expand-container:hover {
    background: rgba(255, 255, 255, 0.1);
}

.expand-container p {
    margin: 0;
}

.expand-toggle {
    padding: 10px 15px;
    font-weight: 600;
}

.expand-content {
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.4s ease, padding 0.3s;
}

.expand-content.open {
    padding: 0 20px 10px;
    max-height: 500px;
}

.gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.gallery img {
    height: 170px;
    width: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.gallery img {
    transition: transform 0.3s ease;
}

.gallery img:hover {
    transform: scale(1.2);
}

@media (max-width: 768px) {
    .dot {
        width: 10px;
        height: 10px;
    }

    .gallery img {
        height: 120px;
        box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    }

    .gallery img:hover {
        transform: scale(1.1);
    }
}

@media (max-width: 600px) {
    .gallery {
        gap: 5px;
    }

    .gallery img {
        height: 90px;
    }
}

.lightbox {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    display: none;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 9999;
    padding: 30px 20px;
}

.lightbox img {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    margin-bottom: 15px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
}

.lightbox .arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 60px;
    color: #fff;
    cursor: pointer;
    user-select: none;
    padding: 10px;
}

.lightbox .arrow.left {
    left: 30px;
}

.lightbox .arrow.right {
    right: 30px;
}

.lightbox .thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 15px;
    flex-direction: row;
}

.lightbox .thumbnails img {
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    opacity: 0.6;
    cursor: pointer;
    transition: 0.3s;
}

.lightbox .thumbnails img.active,
.lightbox .thumbnails img:hover {
    opacity: 1;
    border: 2px solid #fff;
}
@media (max-width: 600px) {
    .lightbox .arrow {
        font-size: 36px;
        padding: 5px;
    }

    .lightbox .close {
        font-size: 30px;
        top: 15px;
        right: 20px;
    }

    .lightbox .thumbnails img {
        height: 40px;
    }
}
/*SECTION #ZESPÓŁ*/

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.team-member {
    background: #e5e5e5;
    color: #333;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.team-member .bio {
    min-height: 220px;
    flex-grow: 0;
    flex-shrink: 0;
}

.team-member .role {
    margin-top: 5px;
}

.team-member h3 {
    margin-bottom: 15px;
}

.team-member p {
    line-height: 1.6;
    font-size: 0.9em;
}

@media (max-width: 768px) {
    .team-member .bio {
        min-height: 180px;
    }
}

@media (max-width: 600px) {
    .team-member .bio {
        min-height: 120px;
        flex-grow: 0;
        flex-shrink: 0;
    }
}

/* FOOTER */
footer {
    background: #454545;
    color: #fff;
    width: 100%;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding: 10px 20px 5px 5px;
}

.footer-logo img {
    height: 50px;
    padding-top: 2px;
}

.footer-contact span {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.footer-bottom {
    text-align: center;
    padding: 5px 20px 10px;
    font-size: 0.8em;
}

.footer-bottom .footer-line {
    width: 50%;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 0 auto 10px auto;
}


@media (max-width: 768px) {
    .footer-top {
        height: 40px;
        padding: 5px 10px 5px 5px;
    }

    .footer-logo img {
        height: 40px;
        padding-top: 5px;
    }

    .footer-bottom{
        padding: 5px 20px;
    }

    .footer-bottom .footer-line {
        width: 50%;
        height: 1px;
        margin: 0 auto 5px auto;
    }

}

@media (max-width: 600px) {
    .footer-contact {
        margin-top: 4px;
    }
}

@media (max-width: 360px) {
    .footer-bottom .footer-line {
        width: 50%;
        height: 1px;
        margin: 0 auto 5px auto;
    }
}