:root {
    --color-main: #202844;
    --color-main-l: #111d48;
    --color-secondary: #646f79;
    --color-active: #de1318;
    --color-active-d: #d12a2e;
    --color-bgr-a: #cc2b2c;
    --color-bgr-light: #e0eafa;
    --text-reg: 14px;
}

.mobile-navbar {
    background: var(--color-main);
    min-height: 90px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}


.mobile-navbar .navbar-collapse {
    position: absolute;
    top: 90px;
    left: 0;
    right: 0;
    background: var(--color-main);
    z-index: 1000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mobile-navbar .nav-link {
    color: #fff !important;
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
    font-weight: 500;
}

.mobile-navbar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.mobile-navbar .navbar-toggler {
    border: none;
    padding: 8px 12px;
}

.mobile-navbar .navbar-toggler:focus {
    box-shadow: none;
}

.mobile-navbar .navbar-toggler-icon {
    background-image: none;
    width: 39px;
    height: 37px;
    padding-top: 11px;
    padding-bottom: 11px;
    border-top: 5px solid #fff;
    border-bottom: 5px solid #fff;
    opacity: 0.9;
}

.mobile-navbar .navbar-toggler-icon i {
    display: block;
    width: 100%;
    height: 5px;
    background-color: #fff;
}

@media (min-width: 768px) {
    :root {
        --text-reg: 16px;
    }
}

header {
    background: var(--color-main);
    height: 90px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .desktop-navbar {
        width: 100% !important;
        padding: 10px 0 !important;
    }

    .desktop-navbar .container {
        align-items: center !important;
    }

    .desktop-navbar .logo {
        padding-top: 20px !important;
        transition: transform 0.3s ease !important;
    }

    .desktop-navbar .logo:hover {
        transform: scale(1.05) !important;
    }

    .desktop-navbar .nav-container {
        display: flex !important;
        align-items: center !important;
        position: static !important;
        margin-top: 0 !important;
    }

    .desktop-navbar .navbar {
        padding: 0 !important;
        width: auto !important;
        margin: 0 !important;
    }

    .desktop-navbar #desktop_nav {
        display: block !important;
        visibility: visible !important;
        height: auto !important;
        position: static !important;
        background-color: transparent !important;
        margin-top: 20px !important;
        box-shadow: none !important;
        width: auto !important;
        min-width: auto !important;
        top: auto !important;
        right: auto !important;
    }

    .desktop-navbar .navbar-nav {
        display: flex !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
        align-items: center !important;
        margin: 0 !important;
    }

    .desktop-navbar .navbar-toggler {
        display: none !important;
    }

    .desktop-navbar .navbar-collapse {
        position: static !important;
    }

    .desktop-navbar .navbar-collapse.collapsing {
        transition: none !important;
        display: block !important;
        height: auto !important;
    }

    .desktop-navbar .nav-wrapper {
        padding: 0 !important;
        width: auto !important;
        position: static !important;
    }

    .desktop-navbar .nav-item {
        margin: 0 !important;
        padding: 0 !important;
        border-bottom: none !important;
        position: relative !important;
    }

    .desktop-navbar .nav-link {
        padding: 12px 20px !important;
        white-space: nowrap !important;
        font-size: 15px !important;
        font-weight: 500 !important;
        color: #fff !important;
        border-radius: 8px !important;
        transition: all 0.3s ease !important;
        position: relative !important;
        overflow: hidden !important;
    }

    .desktop-navbar .nav-link::before {
        content: '' !important;
        position: absolute !important;
        bottom: 0 !important;
        left: 50% !important;
        width: 0 !important;
        height: 3px !important;
        background: linear-gradient(90deg, var(--color-active), #ff6b6b) !important;
        transform: translateX(-50%) !important;
        transition: width 0.3s ease !important;
        border-radius: 2px !important;
    }

    .desktop-navbar .nav-link:hover {
        color: #fff !important;
        background: rgba(255, 255, 255, 0.1) !important;
        transform: translateY(-2px) !important;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
    }

    .desktop-navbar .nav-link:hover::before {
        width: 80% !important;
    }

    .desktop-navbar .nav-item:active .nav-link {
        transform: translateY(0) !important;
    }
}
