* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f5f5f5;
}

/* Language switching */
body.en .pl,
body.pl .en {
    display: none !important;
}

.language-switch {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.language-switch button {
    background: transparent;
    border: 2px solid #333;
    padding: 5px 15px;
    margin-left: 10px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.language-switch button.active {
    background: #333;
    color: white;
}

.nav-menu {
    margin: 20px 0;
    text-align: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    margin: 0 15px;
    padding: 5px 10px;
    border-bottom: 2px solid transparent;
    transition: border-color 0.3s ease;
}

.nav-menu a:hover {
    border-bottom-color: #333;
}

.hero {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 40px;
    margin: 60px 0;
    align-items: start;
    background: linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.9)),
               url('images/background.jpg');
    background-size: cover;
    background-position: center;
    padding: 40px;
    border-radius: 10px;
}

.profile {
    text-align: center;
}

.profile h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.profile-image {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: block;
    object-fit: cover;
}

.title {
    font-size: 1.5em;
    color: #666;
    margin-bottom: 20px;
}

.info-boxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 40px 0;
}

.box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.box:hover {
    transform: translateY(-5px);
}

.box h2 {
    margin-bottom: 20px;
    color: #333;
}

ul {
    list-style-position: inside;
    margin-left: 20px;
}

li {
    margin-bottom: 10px;
}

.contact {
    text-align: center;
    margin: 40px 0;
}

.button {
    display: inline-block;
    padding: 15px 30px;
    background: #333;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    margin: 0 10px;
    transition: all 0.3s ease;
}

.button:hover {
    background: #555;
}

.button.whatsapp {
    background: #25D366;
}

.button.whatsapp:hover {
    background: #128C7E;
}

.therapy-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.therapy-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px 10px 0 0;
    margin-bottom: 20px;
}

.consultation-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
    margin: 20px 0;
}

.calendly-inline-widget {
    min-width: 320px;
    height: 700px;
    margin: 20px 0;
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .info-boxes {
        grid-template-columns: 1fr;
    }
    
    .contact {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .button {
        margin: 0;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .therapy-image,
    .consultation-image {
        height: 200px !important;
    }
}

@media (max-width: 768px) {
    .hero {
        grid-template-columns: 1fr;
    }
    
    .info-boxes {
        grid-template-columns: 1fr;
    }
    
    .nav-menu {
        margin-top: 70px;  /* Zwiększamy odstęp od przycisków językowych */
        padding-top: 20px;
    }
    
    .language-switch {
        position: fixed;
        top: 10px;
        right: 10px;
        background: rgba(255, 255, 255, 0.9);
        padding: 5px;
        border-radius: 5px;
        z-index: 1000;
    }
    
    .contact {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    
    .button {
        margin: 0;
    }

    .profile-image {
        width: 150px;
        height: 150px;
    }
    
    .therapy-image,
    .consultation-image {
        height: 200px !important;
    }
}

.nav-menu a {
    white-space: nowrap;  /* Zapobiega łamaniu tekstu */
}

@media (max-width: 768px) {
    .nav-menu {
        margin-top: 70px;
        padding-top: 20px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    
    .nav-menu a {
        display: block;
        width: auto;
        margin: 5px 0;
        padding: 8px 15px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        margin-top: 70px;
        padding-top: 20px;
        display: flex;
        flex-direction: row;  /* Zmiana na poziome ułożenie */
        justify-content: center;  /* Wycentrowanie */
        flex-wrap: wrap;  /* Pozwala na zawijanie, gdyby było za mało miejsca */
        gap: 10px;
    }
    
    .nav-menu a {
        display: inline-block;
        white-space: nowrap;
        margin: 5px;
        padding: 8px 15px;
        font-size: 14px;  /* Nieco mniejsza czcionka na mobile */
    }
}
