/* cmsms stylesheet: fotojs_css modified: Wednesday, September 30, 2026 4:24:57 PM */
/* RESET I PODSTAWOWE STYLE */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f4f4;
}

/* ???? EFEKT STICKY (PRZYPIĘTE MENU) */
nav {
    background-color: #333;
    position: -webkit-sticky; /* Wsparcie dla starszych wersji Safari */
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0px 2px 10px rgba(0,0,0,0.15);
}

/* KONTENER MENU */
.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* LOGO */
.logo {
    color: #fff;
    padding: 15px 25px;
    font-weight: bold;
    text-decoration: none;
    font-size: 18px;
}

/* PRZYCISK HAMBURGERA */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin-right: 25px;
}

.menu-toggle .bar {
    height: 3px;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* GŁÓWNA LISTA MENU */
.main-menu {
    list-style: none;
    display: flex;
}

.main-menu > li {
    position: relative;
}

.main-menu a {
    display: block;
    padding: 20px 25px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.main-menu a:hover {
    background-color: #555;
}

/* STRZAŁKI DLA POZYCJI Z SUBMENU */
.has-children > a::after {
    content: ' ▼';
    font-size: 10px;
    margin-left: 5px;
    display: inline-block;
    transition: transform 0.3s;
}

/* SUBMENU (Desktop) */
.submenu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #444;
    list-style: none;
    min-width: 220px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
}

.submenu a {
    padding: 15px 20px;
    font-size: 14px;
}

.submenu a:hover {
    background-color: #666;
}

/* WERSJA NA KOMPUTERY (Hover) */
@media (min-width: 769px) {
    .main-menu > li:hover .submenu {
        display: block;
    }
}

/* STYLE RESPONSYWNE (EKRANY MOBILNE < 768px) */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .main-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: #333;
        border-top: 1px solid #444;
        max-height: calc(100vh - 54px); 
        overflow-y: auto;
    }

    .main-menu.active {
        display: flex;
    }

    .main-menu > li {
        width: 100%;
    }

    .main-menu a {
        padding: 15px 25px;
        border-bottom: 1px solid #444;
    }

    /* SUBMENU (Mobile) */
    .submenu {
        position: relative;
        top: 0;
        background-color: #222;
        box-shadow: none;
        width: 100%;
    }

    .submenu a {
        padding-left: 45px;
        border-bottom: 1px solid #333;
    }

    .has-children.open > .submenu {
        display: block;
    }

    .has-children.open > a::after {
        transform: rotate(180deg);
    }

    /* ANIMACJA HAMBURGERA DO IKONY "X" */
    .menu-toggle.active .bar:nth-child(1) {
        transform: translateY(9px) rotate(45deg);
    }
    .menu-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.active .bar:nth-child(3) {
        transform: translateY(-9px) rotate(-45deg);
    }
}

/* PRZYKŁADOWA TREŚĆ */
.content {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    line-height: 1.6;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}
.content h1 { margin-bottom: 20px; }
.content p { margin-bottom: 20px; }
