
body{
    font-family: Montserrat, sans-serif;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: #005fcc;
    overflow-x: hidden;
}
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{
        font-size: large;
        text-align: center;
        border: 2px solid black;
        border-radius: 20px;
        margin: 20px auto;
        max-width: 1000px;
        width: calc(100% - 40px);
        padding: 20px;
        flex: 1;
        background-color:#EAEAEA;
        box-shadow: #FF8C00 5px 5px 15px  ;
    }
    footer{
    background-color:#EAEAEA;
    text-align: center;
    padding: 15px 0;
    margin-top: 20px;
}
.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;
}
#map {
      height: 400px;
      width: 100%;
      border-radius: 10px;
    }
     .route-btn {
      display: inline-block;
      padding: 10px 16px;
      background: #007bff;
      color: #fff;
      text-decoration: none;
      border-radius: 6px;
      font-weight: bold;
      margin: 10px;
       box-shadow: #FF8C00 5px 5px 15px  ;
    }

    .route-btn:hover {
      background: #0056b3;
      color: #FF8C00;
    }



/* Responsywność stosowana tylko dla ekranów węższych niż 1400px */
/* 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{ 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; border-radius: 8px; }
}

@media (max-width: 768px){
    nav img{ max-height: 100px; height: auto; }
    label{ padding: 12px 16px; }
    section ul li > div{ font-size: 18px; }
        textarea {
            width: 100%;
        min-height: 120px;
        font-size: 16px; /* zapobiega zoomowi na iOS */
        }
}

@media (max-width: 480px){
    nav img{ max-height: 80px; height: auto; }
    div img{ max-width: 90%; height: auto; }
}
