
    /* Принудительно скрываем стандартные breakpoints Bootstrap */
.navbar-expand-lg .navbar-collapse {
    display: none!important;
}
    .navbar-expand-lg .navbar-collapse.show {
        display: flex!important;
    }

.navbar-expand-lg .navbar-toggler {
    display: block !important;
}

/* Кастомные стили для меню */
.navbar-custom {
    background: #0E2954;
    padding: 1rem 0;
    height: 100px;
    font-family: 'monserrat';
}

.navbar-brand {
    color: white !important;
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-toggler {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px;
    gap: 6px;
    width: 200px;
    height: 60px;
    background: #FFFFFF;
    border-radius: 0px;

    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    color: #0E2954;
}
    .navbar-toggler:hover {
        color: #849FCC;
    }

    .navbar-toggler::after {
        content: "\F282";
        font-family: "bootstrap-icons";
        display: inline-block;
        font-size: 14px;
        transition: transform 0.3s ease;
    }

    /* Анимация при раскрытии */
    .navbar-toggler[aria-expanded="true"]::after {
        transform: rotate(180deg);
    }

.thin_btn {
    box-sizing: border-box;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px;
    gap: 6px;
    width: 200px;
    height: 60px;
    border: 1px solid #FFFFFF;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    color: #FFFFFF;
    text-decoration: none;
}
.thin_btn:hover {
    border: 1px solid #849FCC;
    color:#849FCC;
}
.nav_button_warp {
    gap: 15px;
}

/* Стили для раскрывающегося меню */
.navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #0E2954;
    background-image: url("/img/menu_bg.png");
    background-repeat: no-repeat;
    border-top: 1px solid rgb(255, 255, 255);
    z-index: 1000;
    max-height: 80vh;
    overflow-y: auto;
    padding: 40px 0px;
}


    .two-column-list {
        column-count: 2;
        column-gap: 40px;
        list-style: none;
        padding: 0;
        margin: 0;
    }

    /* Для избежания разрыва элементов */
    .two-column-list li {
        break-inside: avoid;
        page-break-inside: avoid;
        margin-bottom: 10px;
    }

    .two-column-list li:first-child {
        margin-top:0;
    }

.navbar-nav {
    padding: 1rem;
}

.nav-item {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
}

.nav-link {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
    line-height: 190%;
    display: flex;
    align-items: center;
    text-transform: uppercase;
    color: #FFFFFF!important;
}
    .nav-item::before {
        content: "\F285";
        font-family: "bootstrap-icons";
        display: inline-block;
        color: #F84526;
        margin-right: 8px;
        font-size: 14px;
        transition: transform 0.3s ease;
    }
    .nav-item .nav-link::before:hover {
        text-decoration: none;
    }

.nav-link:hover {
    text-decoration: underline;
    color: white !important;
}

/* Выпадающие подменю */
.dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100%;
    margin-top: 0.5rem;
    border: none;
    background: #f8f9fa;
    box-shadow: none;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transform: translateX(5px);
}

/* Анимация появления меню */
.navbar-collapse.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Контент для демонстрации */
.content {
    padding: 2rem;
    margin-top: 20px;
}

/* User menu */
.user-menu {
    border-left: 1px solid rgba(255,255,255,0.3);
    margin-left: 1rem;
    padding-left: 1rem;
}

/* Адаптация для мобильных */
@media (max-width: 768px) {
    .navbar-collapse {
        margin: 0.5rem;
        border-radius: 12px;
    }
}


    /*content*/
.static_text {
    margin: 40px 0;
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    color: #576A88;
}
hr {
    color:#E4E5E5;
}
/* search form */
.search {
    margin: 40px 0;
}
.search>h3{
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 24px;
    line-height: 29px;
    color: #0E2954;
}
.search_form {
    display:flex;
    gap:16px;
}
.search_form .textinput {
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 12px 45px;
    gap: 6px;
    height: 60px;
    background: #F8F9FA;
    flex-grow: 1;
    border:none;
}
.search_form>.input-group>.input-group-text {
    height: 58px;
    top: 1px;
    border: none;
    background: #F8F9FA !important;
    border: none;
    position: absolute;
}
.search_form>.button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px;
    gap: 6px;
    width: 200px;
    height: 60px;
    background: #F84526;

    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    color: #FFFFFF;
    border:none;
}

    .search_form>.button:hover {
        background: #E4472C;
    }

    .search_form>.input-group>.input-group-text.clear-search-btn {
        position: absolute;
        right: 10px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 10;
        padding: 0 10px;
        border-radius: 50%;
        background: transparent;
        border: none;
        color: #6c757d;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 58px;
    }

    .clear-search-btn:hover {
        background-color: #e9ecef;
        color: #dc3545;
        transform: translateY(-50%) scale(1.1);
    }

    .clear-search-btn i {
        font-size: 14px;
        color: #0E2954;

    }

    #loadingIndicator {
        justify-content: center;
        background: #fff;
        border: none;
        margin-top: 20px;
    }
    #loadingIndicator>.spinner-border {
        height: 40px;
        width: 40px;
        color: #F84526;
    }


/*results*/
.result {
    display: flex;
    align-items: center;
    height: 60px;
    background: #F8F9FA;
    padding: 12px 0px;
    gap: 16px;
}
.result>p {
    margin: 0;
    margin-right: auto;
    margin-left: 20px;
}
.result>.btn {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px;
    gap: 6px;
    width: 200px;
    height: 60px;
    background: #0E2954;

    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    color: #FFFFFF;
    border:none;
    border-radius: 0;
}


/*ALFABET*/
.alfabet {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px 0px;
    gap: 16px;
    height: 60px;
    background: #F8F9FA;
}
.alfabet>ul {
    display:flex;
    flex-direction: row;
    width: 100%;
    margin:0;
    padding-right: 2rem;
    list-style: none;
    justify-content: space-between;
}
.alfabet .alfabet_link {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 22px;
    line-height: 27px;
    text-align: center;
    color: #0E2954;
    text-decoration: none;
}
.alfabet .alfabet_link.disabled {
    color: rgba(87, 106, 136, 0.7);
    cursor: default;
    pointer-events: none;
}
.alfabet .alfabet_link.active {
    color: #F84526;
    text-decoration: underline;
    cursor: default;
}

/*main list*/
.mainlist {
    margin-top: 25px;
}
.mainlist_item {
    box-sizing: border-box;
    flex-direction: row;
    align-items: center;
    padding: 16px;
    gap: 10px;
    border: 1px solid #E4E5E6;
}
.mainlist_item dt, dd {
    display: inline;
    margin:0;
}
.mainlist_item dt {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 20px;
    line-height: 24px;
    text-transform: uppercase;
    color: #576A88;
}
.mainlist_item dt>a {
    color: #576A88;
}
.mainlist_item dd {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 18px;
    line-height: 22px;
    color: #576A88;
}
/*pagination*/
.paginator {
    display: flex;
    justify-content: end;
    margin: 35px 0;
}
.pagination {
    gap: 10px;
}
.pagination li {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
    width: 40px;
    height: 40px;
    border: 1px solid #E4E5E5;
}
.pagination li.prev, .pagination li.next, .pagination li.first, .pagination li.last {
    box-sizing: border-box;
    width: 40px;
    height: 40px;
    border: 1px solid #F84526;
}
    .pagination li.prev>a, .pagination li.next>a:hover, .pagination li.first>a:hover, .pagination li.last>a:hover {
        color: #F84526
    }
    .pagination li.prev>a:hover, .pagination li.next>a, .pagination li.first>a, .pagination li.last>a {
        color: #E4472C
    }

    .pagination li.prev.disabled,.paginator li.next.disabled {
        display: none;
    }
.pagination li.active {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px;
    gap: 10px;
    width: 40px;
    height: 40px;
    background: #F84526;
    flex-grow: 0;
}
.pagination>li>a {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 18px;
    line-height: 22px;
    text-align: center;
    color: #576A88;
    align-self: stretch;
    flex-grow: 0;
    text-decoration: none;
}
.pagination li.active>a {
    color: #fff;
}



/*footer*/
.footer {
    padding: 40px 0px;
    background: #0E2954;
}
.footer .citate-block {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}
.footer .citate-block>img {
    width: 56px;
}
.footer .citate-block>p {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 190%;
    color: #849FCC;
}
.footer .footer-nav-item {
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
}
.footer .footer-nav-link {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 500;
    font-size: 14px;
    line-height: 190%;
    color: #FFFFFF;
    text-decoration: none;
}
.footer hr {
    color: #849FCC;
    margin: 40px 0;
}
.footer .copyright {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 148.96%;
    color: #FFFFFF;
    display: block;
    width: auto;
    margin-right: auto;
}
.footer .politics {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 148.96%;
    color: #849FCC;
    text-decoration: none;
    display: block;
    width: auto;
}

.mention {
    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 700;
    font-size: 18px;
    text-decoration-line: underline;
    color: #576A88;
}

    .mention:hover {
        cursor:pointer;
        color: #849FCC;
    }

#floating-hint {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 12px;
    gap: 10px;
    position: fixed;
    max-width: 600px;
    background: rgba(14, 41, 84, 0.9);
    backdrop-filter: blur(2px);
    order: 15;
    flex-grow: 0;
    z-index: 15;

    font-family: 'Montserrat';
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 17px;

    color: #FFFFFF;
}

    #floating-hint .mention {
        font-family: 'Montserrat';
        font-style: normal;
        font-weight: 400;
        font-size: 14px;
        line-height: 17px;

        color: #FFFFFF;
        text-decoration: none;
    }
