.menu-wrapper::after{
    background-image: url("../images/hero-frame.svg");
}
.map::before{
    background-image: url("../images/map-frame.png");
}
.menu-wrapper::after{
    background-image: url("../images/hero-frame.svg");
}
.pagination .prev a:hover, .pagination .last a:hover{
    color: var(--white-1) !important;
    background: var(--blue-1);
}
.pagination a:hover > i{
    color: var(--white-1) !important;
}
.leadership-active__position{
    margin-bottom: 20px;
}
.modal-open .wrapper{
    z-index: unset;
}
.menu-wrapper .desktop-menu{
    justify-content: space-between;
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: var(--space-16);
  }
  .pagination ul {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  /*.pagination span {
    letter-spacing: 2px;
    color: #000;
  }*/
  /*.pagination a {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: var(--white-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: var(--size-text-17);
    font-family: "SF Pro Display";
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    transition: all 0.2s ease-in-out;
  }
  .pagination a:hover, .pagination a.active {
    border-radius: 8px;
    background: var(--blue-1);
    box-shadow: 0px 2px 30px 0px rgba(0, 49, 107, 0.05);
    color: var(--white-1);
  }
  .pagination > a {
    color: var(--blue-1);
    font-size: var(--size-icon-20);
    background-color: var(--white-1);
  }*/

  .event-detail__info{
    width: 100%;
  }
  .modal{
    z-index: 9999999;
  }
.content i, .content p, .content ul li, .content span{
    color: unset!important;
}
.library-content p{
    margin:  revert!important;
}
.library-content.course_inner p{
    margin:  unset!important;
}
.content table td{
    width: unset!important;
}

._partner .leadership-info__fio{
    padding-right: 80px;
}

.section.members-page .container .wrapper .category-wrapper .category-item.active {
    border: 1px solid var(--black3);
    box-shadow: rgba(149, 157, 165, .5) 0px 2px 8px;
}

.form-filter-btn{
    align-items: center;
    justify-content: right;
}

.form-filter-btn button, .form-filter-btn button:hover{
    background-color: var(--blue1);
    color: var(--white);
}

.section.register .container .badge .button{
    position: relative;
    top: 2px;
}
@media(max-width: 768px) {
    .section.member-auth .container .wrapper {
        flex-direction: column;
    }
    .section.member-auth .container .wrapper .form-box, .section.member-auth .container .wrapper .info-box{
        width: 100%;
    }
}

.section.profile .container .wrapper .chat .chat-window .messages{
    flex-direction: column-reverse;
}

.section.profile .container .wrapper .chat .chat-window .messages .date{
     width: 100px;
}
.section.profile .container .wrapper .chat .chat-window .chat-header{
    align-items: center;
}
.section.profile .container .wrapper .chat .chat-window .messages .image{
    padding: 10px !important;
    background: none !important;
}

.section.profile .container .wrapper .chat .last-message{
    width: 100px;
}

.section.profile .container .wrapper .chat .chat-window .chat-input button{
    font-size: 20px;
}
.section.profile .container .wrapper .chat .chat-window .messages .message.doc i, .section.profile .container .wrapper .chat .chat-window .messages .message.archive i{
    margin-right: 10px;
    font-size: 32px;
}
.section.profile .container .wrapper .chat .chat-window .messages .message.left.doc a, .section.profile .container .wrapper .chat .chat-window .messages .message.left.archive a{
    color: var(--black1);
    display: flex;
    align-items: center;
}
.section.profile .container .wrapper .chat .chat-window .messages .message.right.doc a, .section.profile .container .wrapper .chat .chat-window .messages .message.right.archive a{
    color: var(--white);
    display: flex;
    align-items: center;
}

.chat-footer {
    position: relative;
}

.emoji-picker-wrapper {
    position: absolute;
    bottom: 100%;
    left: 0;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    border-radius: 8px;
    background: white;
}


emoji-picker {
    --background: white;
    --border-color: #e0e0e0;
    --input-border-color: #e0e0e0;
    --input-font-size: 14px;
    --outline-color: var(--primary);
    --indicator-color: var(--primary);
    --indicator-active-color: var(--primary-dark);
    --category-button-active-color: var(--primary);
    --category-button-size: 36px;
    --emoji-size: 24px;
    width: 100%;
    min-width: 300px;
    max-height: 300px;
}

/* Стили для поиска */
.chat-sidebar-search {
    position: relative;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.search-input {
    width: 100%;
    padding: 8px 15px 8px 35px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.3s;
}

.search-input:focus {
    border-color: #0078e8;
    box-shadow: 0 0 0 2px rgba(0, 120, 232, 0.2);
}

.search-icon {
    position: absolute;
    left: 25px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
}

/* Адаптивные стили */
@media (max-width: 768px) {
    .chat-sidebar-search {
        padding: 8px;
    }

    .search-input {
        padding: 6px 12px 6px 30px;
        font-size: 13px;
    }

    .search-icon {
        left: 20px;
    }
}

/* Кнопка меню в шапке */
.menu-toggle {
    background: none;
    border: none;
    padding: 10px;
    margin-right: 10px;
    cursor: pointer;
    display: none;
}

/* Заголовок бокового меню на мобильных */
.chat-sidebar-header {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.close-sidebar {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    margin-right: 10px;
    color: #666;
}

/* Адаптивные стили */
@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
    }

    .chat-sidebar {
        width: 100%;
        max-width: 300px;
        position: absolute;
        left: -500px;
        height: 100%;
        z-index: 1000;
        background: white;
        transition: left 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }

    .chat-sidebar.open {
        left: 0;
    }

    .drawer-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
    }
}

@media (max-width: 768px) {
    .chat-sidebar {
        max-width: 80%;
    }
}

.drawer.open .chat-sidebar{
    left: 0;
}

.chat-sidebar .no-results {
    text-align: center;
    margin-top: 20px;
}

.ad-banner .container .carousel-wrapper{
    height: 210px;
}

.section.members-page .container .wrapper form .select-wrapper:nth-of-type(7)::before{
    content: "\f2b5";
    font-family: 'fontawesome' !important;
    font-size: 18px;
}

.message-input {
    min-height: 40px;
    max-height: 200px;
    resize: none;
    overflow-y: auto;
    padding: 10px 15px;
    line-height: 1.4;
    transition: height 0.2s ease-out;
    border-radius: 20px;
    border: 1px solid #ddd;
    outline: none;
    flex-grow: 1;
    margin: 0 8px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box; /* Важно для правильного расчета высоты */
    white-space: pre-wrap; /* Сохраняем переносы строк */
    word-wrap: break-word; /* Перенос длинных слов */
    overflow-y: hidden;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
    .message-input {
        max-height: 150px;
        padding: 8px 12px;
    }
    .audio-player{
        min-width: 100% !important;
    }
}

.section.profile .container .wrapper .chat .chat-window .messages .message{
    white-space: pre-wrap;
    word-wrap: break-word;
}

.custom-modal-caption{
    display: none;
}
.contact-list .contact .text{
    width: 70%;
}
.error{
    color: red;
    display: block;
    margin-top: 10px;
}

.section-mobile, .mobile-menu-btn{
    display: none;
}

.section-mobile {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background-color: #0b2556;
    transform: translateX(-100%);
    transition: all 0.3s ease-in-out;
    opacity: 0;
    padding: 0 16px;
    max-height: 100%;
    display: none !important;
    z-index: 9999;
    flex-direction: column;
    overflow-y: auto;
    overflow-x: hidden;
}
.section-mobile::after {
    content: "";
    position: absolute;
    right: 0;
    top: 50%;
    width: 400px;
    height: 400px;
    transform: translate(50%, -50%);
    /*background-image: url("../images/gerb.svg");*/
    background-repeat: no-repeat;
    background-size: contain;
    z-index: -1;
    opacity: 0.1;
}
.section-mobile .section--footer {
    justify-content: center;
    border-top: 1px solid rgba(var(--white), 0.2);
    margin-bottom: 20px;
}
.section-mobile .section--footer .section--cover {
    background: rgba(var(--white), 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}
.section-mobile .section--footer .section--cover a {
    background: rgba(var(--white), 0.1);
    backdrop-filter: blur(10px);
    color: white;
}
@media only screen and (max-width: 768px) {
    .section-mobile {
        display: flex !important;
    }
    .desktop-menu-btn{
        display: none;
    }
    .mobile-menu-btn{
        display: block;
    }
}
.section-mobile-top {
    position: absolute;
    right: 16px;
    top: 16px;
}
.section-mobile-top i {
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}
.section-mobile-logo {
    max-width: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto;
}
.section-mobile-logo img {
    width: 100%;
    height: auto;
}
.section-mobile-lang {
    display: flex;
    align-items: center;
    margin: 0 0 20px 0;
    gap: 16px;
    justify-content: center;
}
.section-mobile-lang a {
    opacity: 1;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 130%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
}
@media only screen and (max-width: 1552px) {
    .section-mobile-lang a {
        font-size: 17px;
    }
}
@media only screen and (max-width: 1199px) {
    .section-mobile-lang a {
        font-size: 16px;
    }
}
.section-mobile-lang a img {
    width: 24px;
    min-width: 24px;
    height: 16px;
}
.section-mobile-lang a:not(:last-child) {
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.6);
}
.section-mobile-lang a.active {

}
.section-mobile-menu {
    margin-bottom: 24px;
    height: 100vh;
}
.section-mobile-menu > ul > li:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
.section-mobile-menu > ul > li > a, .section-mobile-menu > ul > li > button {
    background-color: transparent;
    border: none;
    outline: none;
    display: flex;
    align-items: center;
    padding: 0;
    width: 100%;
    padding: 12px 0;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    line-height: 150%;
    text-transform: uppercase;
}
.section-mobile-menu > ul > li > a i, .section-mobile-menu > ul > li > button i {
    margin-left: auto;
    transform: rotate(-180deg);
    color: #fff;
    transition: all 0.3s ease-in-out;
    font-size: 20px;
}
.section-mobile-menu > ul > li > a.collapsed i, .section-mobile-menu > ul > li > button.collapsed i {
    transform: rotate(0);
}
.section-mobile-menu > ul > li ul {
    transition: padding 0.35s ease, height 0.35s ease;
    padding-left: 8px;
}
.section-mobile-menu > ul > li ul.show {
    padding-top: 12px;
    padding-bottom: 12px;
}
.section-mobile-menu > ul > li ul li:first-child button,
.section-mobile-menu > ul > li ul li:first-child a {
    padding-top: 0;
}
.section-mobile-menu > ul > li ul li:last-child button,
.section-mobile-menu > ul > li ul li:last-child a {
    padding-bottom: 0;
}
.section-mobile-menu > ul > li ul li button,
.section-mobile-menu > ul > li ul li a {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    display: block;
    padding: 4px 0;
}
.section-mobile-menu > ul > li ul li button i,
.section-mobile-menu > ul > li ul li a i {
    display: none;
}
.section-mobile-menu > ul > li ul li button {
    background-color: transparent;
    width: 100%;
    height: auto;
    outline: none;
    border: none;
    text-align: left;
    display: flex;
    align-items: center;
}
.section-mobile-menu > ul > li ul li button i {
    margin-left: auto;
    display: block;
    margin-left: auto;
    transform: rotate(-180deg);
    color: #fff;
    transition: all 0.3s ease-in-out;
    font-size: 20px;
}
.section-mobile-menu > ul > li ul li button.collapsed i {
    transform: rotate(0deg);
}
.section-mobile-menu > ul > li > ul.show {
    padding-top: 0;
}
.section-mobile-application {
    width: 100%;
    margin: auto auto 0 auto;
    max-width: 80%;
}
@media only screen and (max-width: 991px) {
    .section-mobile-application {
        display: block;
    }
}
.section-mobile-application a {
    width: 100%;
}
.section-mobile-copyright {
    margin: 0 auto;
    padding: 12px 0;
}
.section-mobile-copyright span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: white;
}
.section-mobile-copyright span svg {
    min-width: 96px;
    width: 96px;
    flex: 0 0 96px;
    height: auto;
    display: block;
}
.section-mobile.active {
    transform: translateX(0);
    opacity: 1;
}

.section-mobile .i-close-outline::before{
    color: #fff;
}

/* container */
.custom-check {
    position: relative;
    padding-left: 32px;
    cursor: pointer;
    user-select: none;
}
/* скрываем реальный чекбокс */
.custom-check input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
/* кастомный квадратик */
.custom-check .checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    border: 2px solid #0d6efd;
    border-radius: 4px;
}
/* галочка при checked */
.custom-check input:checked ~ .checkmark::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 0px;
    width: 8px;
    height: 14px;
    border: solid #0d6efd;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
}
.section-mobile-cabinet .cabinet{
    width: fit-content;
    margin: 0 auto 24px;
}
.formbox .res {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
}
.formbox .res .card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    width: calc(50% - 8px);
}
 