/* ==============================
   DESKTOP RESET
============================== */

.mobile-toggle,
.mobile-menu {
    display: none !important;
}


/* ==============================
   MOBILE
============================== */

@media (max-width: 1024px) {

    /* ==============================
       HEADER
    ============================== */

    .main-nav,
    .header-cta {
        display: none !important;
    }

    .header-container {
        display: flex;
        align-items: center;
    }

    .mobile-toggle {
        display: flex !important;
        width: 28px;
        height: 18px;
        position: relative;
        cursor: pointer;
        margin-left: auto;
        z-index: 1002;
    }

    .mobile-toggle span {
        position: absolute;
        width: 100%;
        height: 2px;
        background: #fff;
        left: 0;
    }

    .mobile-toggle span:nth-child(1) { top: 0; }
    .mobile-toggle span:nth-child(2) { bottom: 0; }

    /* ==============================
       OVERLAY
    ============================== */

    .mobile-menu {
        display: block !important;
        position: fixed;
        inset: 0;
        z-index: 999;

        background: rgba(0,0,0,0.55);
        backdrop-filter: blur(10px);

        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .mobile-menu.active {
        opacity: 1;
        pointer-events: auto;
    }

    /* ==============================
       GLASS BOX
    ============================== */

    .mobile-menu-inner {
        position: absolute;
        top: 12px;
        left: 8px;
        right: 8px;
        bottom: 12px;

        border-radius: 28px;
        padding: 20px;

        display: flex;
        flex-direction: column;

        background: rgba(20,20,20,0.55);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);

        border: 1px solid rgba(255,255,255,0.06);

        box-shadow: 
            0 20px 60px rgba(0,0,0,0.6),
            inset 0 1px 0 rgba(255,255,255,0.05);

        overflow: hidden;
        z-index: 2;

        transform: translateY(-50px) scale(0.92);
        opacity: 0;

        transition:
            transform 0.45s cubic-bezier(0.22,1,0.36,1),
            opacity 0.35s ease;
    }

    .mobile-menu.active .mobile-menu-inner {
        transform: translateY(0) scale(1);
        opacity: 1;
    }

    /* ==============================
       TOP GRADIENT
    ============================== */

    .mobile-menu-inner::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 180px;

        background: linear-gradient(
            to bottom,
            rgba(0,0,0,0.8),
            rgba(0,0,0,0.4),
            rgba(0,0,0,0.1),
            transparent
        );

        z-index: 1;
        pointer-events: none;
    }

    /* ==============================
       HEADER
    ============================== */

    .mobile-top {
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 3;
        position: relative;
    }

    .mobile-top img {
        height: 28px;
    }

    .mobile-close {
        font-size: 22px;
        color: #fff;
        cursor: pointer;
    }

    /* ==============================
       MENU 
    ============================== */

    .mobile-nav {
        flex: 1; 
        display: flex;
        align-items: center;      
        justify-content: center;   
        text-align: center;

        z-index: 3;
        position: relative;
    }

    .mobile-nav-menu {
        list-style: none;
        padding: 0;
        margin: 0;
    }

    .mobile-nav-menu li {
        margin-bottom: 26px;
    }

    .mobile-nav-menu li a {
        font-size: 20px;
        color: rgba(255,255,255,0.9);
        font-weight: 500;
        letter-spacing: 1px;
    }

    /* ==============================
       CTA
    ============================== */

    .mobile-cta {
        align-self: center;
        margin-bottom: 20px;

        display: inline-flex;
        align-items: center;
        gap: 10px;

        background: #f5c400;
        color: #000;

        padding: 12px 22px;
        border-radius: 30px;

        font-weight: 600;
        font-size: 14px;

        box-shadow: 0 8px 25px rgba(0,0,0,0.3);

        z-index: 3;
        position: relative;
    }

}

/* ==============================
   FOOTER 
============================== */

@media (max-width: 768px) {

    .footer-container {
        width: 100%;
        max-width: 100% !important; 
        margin: 0 auto;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .footer-top {
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center;
    }

    /* LOGO */
    .footer-logo {
        margin-bottom: 20px;
        display: flex;
        justify-content: center;
        width: 100%;
    }

    /* MENU */
    .footer-nav {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-bottom: 20px;
    }

    .footer-menu {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0px;
        width: 100%;
    }

    /* SOCIAL */
    .footer-social {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 18px;
        width: 100%;
        margin-bottom: 20px;
    }

    /* DIVIDER */
    .footer-divider {
        width: 90%;
        margin: 20px auto;
        height: 1px;
        background: #000;
        opacity: 0.5;
    }

    /* BOTTOM */
    .footer-bottom {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        text-align: center;
    }

    /* KOLEJNOŚĆ */
    .footer-privacy {
        order: 1;
        text-align: center;
    }

    .footer-copy {
        order: 2;
        text-align: center;
        max-width: 260px;
        line-height: 1.5;
    }

    .footer-menu {
    margin: 0 !important;
    padding: 0 !important;
}
}