#topMenu {
    text-align: center;
    height: 40px;
    background-color: #2f2482;
    position: relative;
    z-index: 999;
}

#topMenu ul:first-child li:hover {
    background-color: #2f2482;
}

/* Structure */
#coolMenu,
#coolMenu ul {
    margin: 0;
    padding: 0;
    display: inline-block;
    list-style: none;
}

#coolMenu > li {
    display: inline-block;
}

#coolMenu li a {
    display: block !important;
    color: White;
    text-decoration: none;
    font-family: 'Oswald';
    font-style: normal;
    font-display: swap;
    font-weight: 300;
    src: url('/fonts/300.ttf') format('truetype');
    font: 18px 'Oswald', sans-serif;
    vertical-align: middle;
    line-height: 30px;
    padding-left: 15px;
    padding-right: 15px;
}

#coolMenu li a:hover {
    border: none !important;
}

#coolMenu ul {
    position: absolute;
    display: none;
    z-index: 999;
    text-align: left;
    list-style: none;
}

#coolMenu ul li a {
    min-width: 170px;
}

#coolMenu li:hover ul.noJS {
    display: block !important;
}

/* Main menu */
#coolMenu li {
    padding-left: 1px;
    line-height: 40px;
    height: 38px;
    margin: 0;
    border-right: 2px solid #2f2482; 
    background-color: #a20e17;
}

#coolMenu > li > a {
    color: #ffffff;
    font-weight: bold;
}

#coolMenu > li:hover > a {
    background: #e5e5e5;
    height: 38px;
    color: #2f2482;
}

/* Submenu */
#coolMenu ul {
    background: #e5e5e5 !important;
    background-image: none;
    border: 1px solid #6d6d6d;
    border-top: none;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    padding-bottom: 20px;
    margin-left: -1px;
    border-right: 1px solid #2f2482; /* Убрано из субменю */
}

#coolMenu ul li {
    background: #e5e5e5 !important;
    background-image: none;
    border: none; /* Убираем все границы у элементов списка в субменю */
}

#coolMenu ul li:first-child {
    margin-top: 10px;
}

#coolMenu ul li a {
    color: #2f2482;
    font-weight: normal;
    font: 14px, sans-serif;
    text-shadow: none;
    line-height: 16px !important;
    height: 20px;
}

#coolMenu ul li:hover a {
    color: #b91313;
    background: #e5e5e5;
    text-decoration: underline;
}

.parent2 ul {
    width: 270px;
    position: relative;
    left: 200px !important;
    margin-top: -30px !important;
    border: 1px solid #6d6d6d !important;
    border-bottom: 1px solid #6d6d6d !important;
    border-radius: 5px !important;
}

.parent2 {
    position: relative !important;
}

.afterA {
    position: absolute;
    right: 10px;
    top: 0;
    font-family: Tahoma;
    background-image: url('../Images/Design/arrow-right.png') !important;
    background-repeat: no-repeat;
    background-position: 0 0%;
    font-size: 0;
    width: 16px;
    height: 16px;
}

@media screen and (max-width: 1000px) {
    .afterA {
        display: none;
    }

    #topMenu {
        text-align: left;
        background-image: url("../images/design/menu.png") !important;
        background-repeat: no-repeat;
        background-position: 0 50%;
        background-color: #a20e17;
    }

    .hover {
        background-color: #b40808 !important;/* фон выпадающего меню в мобильной версии */
    }

    .hover .parent {
        background-image: url("../images/design/arrow_sans_down_32_up.png") !important;
        background-repeat: no-repeat;
        background-position: 0 50%;
    }

    #coolMenuMin {
        padding: 0;
        margin: 0;
        width: 100%;
        display: block;
        position: absolute;
        z-index: 99;
    }

    #coolMenuMin li ul {
        display: none;
        margin: 0;
        padding: 0;
        margin-left: -5px;
        margin-right: -5px;
        margin-bottom: -5px;
    }

    #coolMenuMin li ul li {
        margin: 0;
        padding: 0;
        background-color: #660910; /* фон пунктов выпадающего меню в мобильной версии */
    }

    #coolMenuMin li {
        display: block;
        background-color: #2f2482;
        padding: 4px;
        border-bottom: 1px solid #a20e17;
    }

    #coolMenuMin li a {
        display: block;
        padding-left: 24px;
        color: white;
        font-size: 20px;
        line-height: 26px;
        text-decoration: none;
    }

    #coolMenuMin li ul li a {
        text-decoration: none;
        font-size: 16px;
        padding-left: 28px;
    }

    .toggleMenu {
        font-size: 18px;
        line-height: 20px;
        padding: 4px;
        padding-left: 30px;
        color: white;
        text-decoration: none;
        cursor: pointer;
    }

    .toggleMenu:hover {
        color: #D9EDF9;
        text-decoration: none;
    }

    #coolMenuMin li .parent {
        background-image: url("../images/design/arrow_sans_down_32.png");
        background-repeat: no-repeat;
        background-position: 5px 50%;
    }

    #coolMenu ul {
        border: 1px solid #6d6d6d;
        border-top: none;
    }
}

@media screen and (min-width: 1001px) {
    .toggleMenu {
        display: none;
    }
}