@media(max-width:1024px){

/* =========================
   TOP BAR COMPACT
========================= */

@media(max-width:768px){

    .top-bar .container{
        flex-direction:column;
        gap:3px;
        text-align:center;
    }

    .top-bar .container span{
        font-size:14px;
    }
}

/* =========================
   NAVBAR COMPACT
========================= */

.navbar{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:4px 8px;
    position:relative;
}

/* LOGO MIC */
.logo img{
    max-width:85px;
    height:auto;
}

/* HAMBURGER */
.menu-toggle{
    display:block;
    font-size:22px;
    background:none;
    border:none;
    cursor:pointer;

}



/* =========================
   MENIU COMPACT + SCROLL
========================= */

.menu{
    display:none;
    flex-direction:column;

    width:100%;
    max-height:65vh;
    overflow-y:auto;

    background:#fff;

    position:absolute;
    top:50px;
    left:0;

    z-index:9999;

    text-align:center;
    padding:2px 0;
}

.menu.active{
    display:flex;
}

/* LINKURI MULT MAI COMPACTE */
.menu a{
    padding:6px;
    font-size:11px;
    line-height:1.1;
	
}

/* =========================
   SUBMENIU FIX + SCROLL REAL
========================= */

.submenu,
.submenu-second{
    position:static !important;

    display:none;

    width:100%;

    background:#f2f2f2;

    max-height:200px;      /* IMPORTANT */
    overflow-y:auto;       /* IMPORTANT */
}

.dropdown:hover > .submenu,
.dropdown:focus-within > .submenu{
    display:block;
}

.dropdown-submenu:hover > .submenu-second,
.dropdown-submenu:focus-within > .submenu-second{
    display:block;
}

/* SUBMENIU COMPACT */
.submenu a,
.submenu-second a{
    font-size:10px;
    padding:6px;
    text-align:center;
}

/* =========================
   IMPORTANT - NU TAIE CONTINUT
========================= */

header,
.navbar,
.menu,
.top-bar{
    overflow:visible !important;
}

/* =========================
   HERO COMPACT
========================= */

.hero{
    padding:30px 10px;
}

.hero h1{
    font-size:20px;
}

.hero p{
    font-size:11px;
}

/* =========================
   FOOTER
========================= */

footer{
    text-align:center;
}

.footer-grid{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    gap:8px;
}

.footer-grid > div{
    text-align:center;
}

.copy{
    text-align:center;
}



/* =========================
   cards
========================= */
@media (max-width: 900px){
    .cards{
        grid-template-columns:repeat(2, 1fr);
    }
}

@media (max-width: 600px){
    .cards{
        grid-template-columns:1fr;
    }
}
}