body{
    font-family: Montserrat, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #005fcc;
}
header{
    text-align: center;
    align-items: center;
    gap: 20px;
    display: flex;
    justify-content: center;
    background-color:#EAEAEA ;
}
nav{
  text-align: right  ;
    display: flex;
        align-items: center;
        justify-content: space-between; /* UL po lewej, IMG po prawej */
        padding: 0 20px;
        flex-wrap: wrap;
        overflow: hidden;
}
nav ul{
    align-items: center;
    display: flex;
    gap: 18px;
    padding: 0;
    list-style:  none;
    }
            nav img {
        max-width: 220px;
        width: auto;
        height: auto;
        max-height: 200px;
        object-fit: contain;  
        margin-left: 20px;
}
    a:hover{
        color: #005fcc;
    }
    a{
        text-decoration: none;
        color: #FF8C00;
    }
    main{
        flex: 1;
        background-color:#EAEAEA;
        text-align: center;
        font-size: 25px;
    }
    main p{
    max-width: 900px;
    margin: 0 auto 16px;
    padding: 0 20px;
    text-align: left;
    line-height: 1.6;
    }
    footer{
    background-color: #EAEAEA;
    text-align: center;
    padding: 15px 0;
    
}
iframe {
    display: block;
    margin: 20px auto;
    width:auto;
    height: 400px;
}

section{
      display: flex;
    flex-wrap: wrap;           /* zdjęcia przechodzą do nowego rzędu, jeśli brak miejsca */
    gap: 20px;                 /* odstęp między zdjęciami */
    background-color: #EAEAEA;
    padding: 20px;             /* trochę wewnętrznego marginesu */
    box-sizing: border-box;
}
section img{
    margin: 10px;
    width: 250px;
      height: 350px;
      border-radius: 10px;
      transition: transform 0.3s ease, box-shadow 0.3s ease;
      cursor: pointer;
    }
    section img:hover{
        transform: scale(1.05);
      box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}
#podglad{
      display: none;
      position: fixed;
      z-index: 100;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0,0,0,0.8);
      justify-content: center;
      align-items: center;
    }
#podglad img{
        width: auto;
    height: 90vh; /* 90% wysokości ekranu */
    max-width: 100%;
    border-radius: 10px;
      
    }
.social-buttons {
    position: fixed;      /* przyklejone do lewej strony */
    top: 50%;             /* wyśrodkowane pionowo */
    left: 0;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.social-buttons .btn {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 20px;
    border-radius: 0 10px 10px 0;
    transition: all 0.3s;
    background-color: #FF8C00;
}



.social-buttons .btn:hover {
    transform: translateX(10px); /* przesunięcie w prawo po hover */
}
.btn img{
    max-width: 100%;   /* dopasowanie obrazka do przycisku */
    max-height: 100%;
}
.btn:hover {
    background-color: #005fcc;
}

/* Responsywność stosowana tylko dla ekranów węższych niż 1400px */
@media (max-width: 1400px) {
    header{ justify-content: space-between; flex-wrap: wrap; padding: 10px 20px; }
    nav{ width: 100%; padding: 10px; }
    nav ul{ flex-wrap: wrap; gap: 10px; justify-content: center; }
    nav img{ max-height: 140px; height: auto; margin-left: 0; margin: 10px 0; }
    main{ max-width: 1100px; margin: 20px auto; width: calc(100% - 40px); }
    section{ padding: 12px; gap: 12px; }
    section img{ width: 45%; max-width: 300px; height: auto; }
    .social-buttons{ top: auto; bottom: 10px; left: 10px; transform: none; flex-direction: row; }
    .social-buttons .btn{ width: 44px; height: 44px; border-radius: 8px;}
    iframe{ width: calc(100% - 40px); height: 300px; }
}

@media (max-width: 768px){
    nav img{ max-height: 100px; height: auto; }
    section img{ width: 100%; height: auto; }
     main{
        font-size: 16px;
    }

    main p{
        padding: 0 14px;
        line-height: 1.7;
    }
}

@media (max-width: 480px){
    nav img{ max-height: 80px; height: auto; }
    iframe{ height: 220px; }
    main p{
        padding: 0 10px;
        font-size: 15px;
    }
}
