body{
    font-family: Montserrat, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #005fcc;
}
header{
    background-color:#EAEAEA;
    text-align: center;
    align-items: center;
    gap: 20px;
    display: flex;
    justify-content: center;
}
main{
      flex: 1;
    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
}

nav ul{
    align-items: center;
    display: flex;
    gap: 18px;
    padding: 0;
    list-style:  none;
    }
nav img {
    height: 200px;
    width: auto;
    object-fit: contain;  
    margin-left: 50px
}
    a:hover{
        color: #005fcc;
    }

    a{
        text-decoration: none;
        color: #FF8C00;
    }
    /* Styl dla oferty z rozwijanymi elementami*/

    h2{
        text-align: center;
        margin-bottom: 20px;
    }   
ul{
     max-width: 600px;
      margin: 0 auto;
      list-style: none;
      padding: 0;
}

 section ul li{
    background: white;
      margin-bottom: 20px;
      border-radius: 8px;
      overflow: hidden;
      box-shadow: #FF8C00 2px 2px 10px  ;
}


 /* Ukrywamy checkbox */
li input[type="checkbox"]{
    display: none;
}

 /* Nagłówek elementu */
label{
      display: block;
      padding: 15px 20px;
      background: #005fcc;
      color: white;
      font-weight: bold;
      cursor: pointer;
      transition: background 0.3s;
}
label:hover{
    background: #FF8C00;
}

/* Treść rozwijana */
section ul li > div{
     max-height: 0;
      overflow: hidden;
      transition: max-height 0.5s ease;
      background: #fafafa;
      padding: 0 20px;
      font-size: 20px;
}

/* Gdy checkbox jest zaznaczony – pokazujemy treść */
input[type="checkbox"]:checked ~ div{
    max-height: 500px;
      padding: 15px 20px;
}
div img{
    width: 250px;
        height: 250px;
      border-radius: 5px;
      margin-bottom: 10px;
}
footer{
    background-color:#EAEAEA;
    text-align: center;
    padding: 5px 0;
    
}
.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 img{ height: 140px; margin-left: 0; margin: 10px 0; }
    main{ margin: 20px auto; max-width: 1000px; width: calc(100% - 40px); }
    ul{ max-width: 100%; padding: 0 10px; }
    div img{ width: 100%; height: auto; max-width: 320px; }
    .social-buttons{ top: auto; bottom: 10px; left: 10px; transform: none; flex-direction: row; }
    .social-buttons .btn{ width: 44px; height: 44px; }
}

@media (max-width: 768px){
    nav img{ height: 100px; }
    label{ padding: 12px 16px; }
    section ul li > div{ font-size: 18px; }
}

@media (max-width: 480px){
    nav img{ height: 80px; }
    div img{ max-width: 90%; height: auto; }
}
