/* Mobilna wersja */

@media (max-width: 59rem) {
    .content {
        padding: 0;
        margin: 0 0;
        max-width: 100vw;
    }
    body {
        font-size: 1.2rem;
    }
    h1 {
        font-size: 2rem;
    }

    .img {
        width: 95%;
        margin: 1rem auto;
    }
    .logo {
        margin-top: 0.2rem;
    }
    .navbar {
        position: sticky;
        top: 0;
        padding: 0 1rem;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        align-items: center;
    }
    .menu {
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 5%;
        width: 90%;
        height: auto;
        background-color: #5f7ba755;
        backdrop-filter: blur(0.5rem);
        -webkit-backdrop-filter: blur(0.8rem);
        z-index: 1000;
        align-items: center;
        border-radius: 0 0 1rem 1rem;
        box-shadow: 0 1rem 2rem #00000080;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-1rem);
        transition: all 0.3s ease;
        gap: 0;
        padding: 0;
        overflow: hidden;
    }
    .hamburger {
        display: flex;
    }
    .menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    .menu.active a {
        display: block;
        width: 100%;
        text-align: center;
        padding: 1.2rem 0;
        border-bottom: 0.1rem solid #50505050;
        color: #ffffff !important;
    }
    .menu.active a:last-child {
        border-bottom: none;
    }
    .hamburger.active span:nth-child(1) {
        transform: translateY(0.5rem) rotate(45deg);
    }
    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    .hamburger.active span:nth-child(3) {
        transform: translateY(-0.5rem) rotate(-45deg);
    }
    .contact-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    padding: 2rem;
    width: 100%;
    }
    .media-container {
    flex-direction: column;
    width: 95vw;
    }
    .social-div {
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
    justify-content: center;
    padding: 0 1rem;
    }
    .social {
        flex: 1;
        min-width: 0;
        font-size: 0.9rem;
        padding: 0.5rem 0.2rem;
        white-space: nowrap;
    }

/*Megane*/

    .megane-row, .megane-row:nth-child(even) {
            flex-direction: column;
            width: 95vw;
            gap: 1.5rem;
            margin-bottom: 3rem;
        }

    .megane-info {
        text-align: center;
        width: 100%;
    }

    .megane-image {
        width: 100%;
        display: flex;
        justify-content: center;
    }

/*Kontakt*/

    .contact-card {
        background-color: #ffffffcc;
        backdrop-filter: blur(0.5rem);
        padding: 1rem;
        border-radius: 1.5rem;
        box-shadow: 0 0 2rem #0000001a;
        width: 95vw;
        display: flex;
        flex-direction: column;
        align-items: center;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
    }
    .contact-card:hover {
        transform: none;
        box-shadow: 0 0 2rem #0000001a;
    }
    .contact-card b {
        font-size: 1.4rem;
        color: #354d74;
    }
    .contact-card p {
        font-size: 1rem;
        margin: 0.5rem 0 1.5rem 0;
        color: #5f7ba7;
    }
    .contact-card .social {
        width: 100%;
        margin: 0;
        font-weight: 600;
    }
    .contact-icon {
        width: 5rem;
        height: 5rem;
        object-fit: contain;
        margin-bottom: 1rem;
        border-radius: 35%;
        box-shadow: 0 0.25rem 1rem #0000003d;
    }
        .footer-bar {
            padding: 0 1rem;
            height: auto;
            flex-direction: column;
            gap: 0.5rem;
            padding: 1rem 0;
        }
    }


