body {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    margin: 0;
    background-color: #9ed995;
}

nav {
    background-color: #2e7d32;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 80px;
    box-sizing: border-box;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeIn 1s ease-out forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

nav .logo {
    width: 100px;
    height: 86px;
    margin-top: 0;
    padding-top: 0;
}

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: space-around;
    flex-grow: 1;
}

nav ul li {
    margin: 0 10px;
    position: relative;
}
nav ul li::before {
    content: "";
    display: inline-block;
    width: 38px;
    height: 38px;
    background: url("obrazy/wzorlewy.png") no-repeat center;
    background-size: contain;
    margin-right: 6px;
    vertical-align: middle;
}
nav ul li::after {
    content: "";
    display: inline-block;
    width: 38px;
    height: 38px;
    background: url("obrazy/wzorprawy.png") no-repeat center;
    background-size: contain;
    margin-left: 6px;
    vertical-align: middle;
}

nav ul li a {
    display: inline-block;
    vertical-align: middle;
    color: white;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
    padding: 10px 15px;
    transition: transform 0.3s ease, border-bottom 0.3s ease, color 0.3s ease;
    
}

nav ul li a:hover {
    border-bottom: 2px solid #a5d6a7;
    padding-bottom: 8px;
    transform: translateY(-5px);
    color: #aff4b2;
}

nav .cta-button {
    background-color: #66bb6a;
    color: white;
    height: 100%;
    padding: 0 40px;
    font-size: 18px;
    text-decoration: none;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    transition: background-color 0.3s ease, color 0.3s ease;
}

nav .cta-button:hover {
    background-color: #91cb33;
}

@media (max-width: 1300px) {
        nav ul li::before,
        nav ul li::after {
                display: none;
            }
}

@media (max-width: 768px) {
    nav {
        flex-direction: column;
        height: auto;
        padding: 10px;
        position: relative;
    }

    nav .logo {
        width: 200px;
        height: auto;
        margin-bottom: 10px;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        display: none;
        width: 100%;
        background-color: #2e7d32;
        padding: 0;
        margin: 0;
    }

    nav ul.show {
        display: flex;
    }

    nav ul li {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        font-size: 18px;
        display: block;
        padding: 10px;
        pointer-events: auto;
        transition: none !important;
        transform: none !important;
        border-bottom: none !important;
        color: white !important;
        padding-bottom: 10px !important;
    }

    nav ul li a:hover,
    nav ul li a:focus,
    nav ul li a:active {
        transform: none !important;
        border-bottom: none !important;
        color: white !important;
        padding-bottom: 10px !important;
        background: none !important;
    }
    nav ul li::before,
    nav ul li::after {
        display: none;
    }

    nav .cta-button {
        width: 100%;
        margin-top: 10px;
        padding: 10px;
        font-size: 16px;
        transition: none !important;
    }

    nav .cta-button:hover,
    nav .cta-button:focus,
    nav .cta-button:active {
        background-color: #66bb6a !important;
        color: white !important;
        transform: none !important;
    }

    body {
        padding: 0 10px;
    }

    .menu-toggle {
        display: block;
        background-color: #2e7d32;
        color: white;
        border: none;
        padding: 10px;
        font-size: 18px;
        cursor: pointer;
        width: 100%;
        text-align: center;
    }

    .menu-toggle:focus {
        outline: none;
    }

    .logo-link {
        display: none;
    }

    nav ul li:first-child {
        order: -1;
    }
}

@media (min-width: 769px) {
    .menu-toggle {
        display: none;
    }

    nav ul li:first-child {
        display: none;
    }

    nav {
        height: 82px;
    }
}