/*Add your own styles here:*/

/* Блокируем скролл на самом верхнем уровне */
html.modal-open {
    overflow: hidden !important;
}

/* Убираем любые отступы, которые Bootstrap пытается навязать теме */
body.modal-open {
    overflow: hidden !important;
    padding-right: 0 !important;
}

/* Фиксируем шапку Enfold, чтобы она не прыгала вправо или влево */
.html_header_sticky.modal-open #header,
.html_header_sticky.modal-open #main {
    padding-right: 0 !important;
    margin-right: 0 !important;
    left: 0 !important;
    width: 100% !important;
}

/* Убираем влияние растянутого макета */
.html_stretched.modal-open #wrap_all {
    width: 100% !important;
}

#post_f {
    display: none;
    flex-wrap: wrap;
    padding: 20px 0;
}

#post_f a:hover {
    color: #0056b3;
    text-decoration: none;
}

#post_f figcaption {
    display: flex;
    height: 100%;
    position: relative;
}

#post_f figcaption .content-pos {
    background-repeat: no-repeat;
    background-size: cover;
    display: flex;
    align-items: center;
    padding: 0 20px;
    width: 100%;
    background-position: center;
}

#post_f figcaption .content-pos a {
    color: #fff;
}

#post_f .bl_post {
    flex: 0 1 50%;
}

#post_f figcaption .content-pos>div {
    z-index: 1;
    width: 100%;
    text-align: center;
}

#post_f figcaption .content-pos:before {
    content: '';
    display: block;
    background: rgb(0 0 0 / 40%);
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

#post_f .bl_post.bl_r {
    display: flex;
    flex-direction: column;
}


#post_f .bl_post.bl_r .p_item {
    display: flex;
    padding: 5px;
}


#post_f .bl_post.bl_r .p_item:hover .p_cnt .p_title {
    color: #000;
}


#post_f .bl_post.bl_r .p_item .p_img {
    flex: 0 0 130px;
}

#post_f .bl_post.bl_r .p_cnt .p_title {
    color: #555;
    font-size: 16px;
}

#post_f .bl_post.bl_r .p_cnt .p_dates {
    font-size: 12px;
    color: #ccc;
    margin: 0;
}

#post_f .bl_post.bl_r .p_cnt {
    padding-left: 10px;
}

#post_f .bl_post.bl_r .p_cnt p {
    color: #666;
    font-size: 14px;
    line-height: 18px;
}




.block_menu_hamberger {
    display: none;
}

.block_menu_header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.block_menu_logo {
    max-width: 230px;
}

.block_menu_content {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    box-sizing: border-box;
}

.block_menu_link a {
    text-decoration: none;
    color: #5c5c5c;
    font-size: 16px;
    padding: 30px 10px 26px 10px;

}

.block_menu_link a:hover {
    text-decoration: none;
    color: #5c5c5c;
    border-bottom: 2px solid #9cc3df;
}

/* BURGER */

.block_navigation-block {
    width: 200px;
    text-align: -webkit-right;
}

.block_hamberger-menu {
    width: 30px;
    height: 30px;
    position: relative;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.bar {
    width: 100%;
    height: 2px;
    background-color: #969696;
    position: absolute;
    transition: all 0.3s ease-out;
}

.bar.upper-bar {
    transform: translatey(-10px);
}

.bar.lower-bar {
    transform: translatey(10px);
}

.block_hamberger-menu,
.hamberger_menu-list {
    position: relative;
    z-index: 2;
}

.hamberger_menu-list {
    display: none;
}

.hamberger_menu-list_ul {
    list-style: none;
    margin-top: 20px;
}

.hamberger_menu-list_ul_li a {
    color: #5c5c5c;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
    border-bottom: solid 1px #ebebeb;
    transition: 0.3s;
}

.hamberger_menu-list_ul_li a:hover {
    background-color: #f8f8f8;
    animation: linkAnimation 0.2s ease-out;
}

.hamberger_menu-background {
    width: 600px;
    height: 600px;
    position: fixed;
    top: 0px;
    left: 0px;
    z-index: 1;
    background-color: #fff;
    transform: translate(-100%, -100%);
    transition: all 0.3s ease-out;
    border-radius: 100%;
}

.block_navigation-block:hover .bar.upper-bar,
.block_navigation-block:hover .bar.lower-bar {
    transform: translatey(0px);
}

.block_navigation-block:hover .bar.upper-bar {
    transform: rotate(45deg);
}

.block_navigation-block:hover .bar.lower-bar {
    transform: rotate(-45deg);
}

.block_navigation-block:hover .bar.middle-bar {
    display: none;
}

.block_navigation-block:hover .hamberger_menu-list {
    display: block;
    text-align: left;
}

.block_navigation-block:hover .menu-background {
    animation: bubblePresent 0.3s ease-out;
    transform: translate(-50%, -30%);
}

.content,
.sidebar {
    padding-top: 22px;
    padding-bottom: 22px;
}


@media (max-width: 1280px) {
    .block_menu_content {
        display: none;
    }

    .block_menu_hamberger {
        display: flex;
        justify-content: flex-end;
    }

    .block_menu_header {
        align-items: flex-start;
    }
}

@media (max-width: 991px) {
    .responsive.html_mobile_menu_tablet.html_header_top.html_header_sticky #top #wrap_all #main {
        padding-top: 0 !important;
    }
}

.expandingBlocks-container {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.expandingBlocks-box {
    flex: 1;
    transition: flex-grow 0.3s ease;
    width: 100%;
    min-width: 290px;
    height: 28rem;
    color: #fff;
    border: none;
    background-blend-mode: multiply;
    background-position: center;
    background-repeat: no-repeat;
}

.expandingBlocks-box:hover {
    flex-grow: 2;
}

.expandingBlocks-box-descr {
    max-width: 290px;
    display: flex;
    flex-direction: column;
    font-size: medium;
    padding: 2em;
}

.expandingBlocks-box-h2 {
    line-height: 1.2em !important;
    font-weight: 300 !important;
    font-size: 24px !important;
    text-transform: uppercase !important;
    padding-bottom: 1em;
}

.this-page-button:hover {
    background: white !important;
    color: #000000 !important;
    transition-duration: .3s;
}

.blockObject-1 {
    background: url(../media/cards/sloveniya-card01.webp) no-repeat center/cover, rgb(0, 0, 0, .3);
}

.blockObject-2 {
    background: url(../media/cards/sloveniya-card02.webp) no-repeat center /cover, rgb(0, 0, 0, .3);
}

.blockObject-3 {
    background: url(../media/cards/sloveniya-card03.webp) no-repeat center /cover, rgb(0, 0, 0, .3);
}

.blockObject-4 {
    background: url(../media/cards/sloveniya-card04.webp) no-repeat center /cover, rgb(0, 0, 0, .3);
}

.blockObject-5 {
    background: url(../media/cards/sloveniya-card05.webp) no-repeat center /cover, rgb(0, 0, 0, .3);
}

.blockObject-6 {
    background: url(../media/cards/sloveniya-card06.webp) no-repeat center /cover, rgb(0, 0, 0, .3);
}

.blockObject-7 {
    background: url(../media/cards/sloveniya-card07.webp) no-repeat center /cover, rgb(0, 0, 0, .3);
}

.blockObject-8 {
    background: url(../media/cards/sloveniya-card08.webp) no-repeat center /cover, rgb(0, 0, 0, .3);
}

.blockObject-9 {
    background: url(../media/cards/sloveniya-card09.webp) no-repeat center /cover, rgb(0, 0, 0, .3);
}

.blockObject-10 {
    background: url(../media/cards/sloveniya-card10.webp) no-repeat center /cover, rgb(0, 0, 0, .3);
}

.block_h1 {
    background: rgb(0, 0, 0, .2) !important;
    padding: 20px;
    margin: auto;
}

.link-in-text a:hover {
    border-bottom: 2px #005398 solid;
}

#scroll-top-link::before {
    font-size: 1.5rem;
    font-weight: 800;
}

@media (max-width: 767px) {
    .responsive #scroll-top-link {
        display: block;
    }


    .invest-card img.post-thumb {
        height: 220px;
        width: 100%;
        object-fit: cover;
    }

    #top .all_colors #footer p {
        font-size: 14px;
    }

    #top .search-front-page form.blue_w .filter-option {
        color: #fff
    }

    #top .search-front-page form.blue_w input[type="submit"] {
        color: #fff;
    }

    #top .search-front-page form.blue_w button:hover .filter-option {
        color: #212529
    }

    #top .all_colors form.blue_w select {
        color: #fff !important;
    }

    #top .all_colors form.blue_w select option {
        color: #83888d !important;
    }



    #top .search-front-page form.white_b .filter-option {
        color: #424b59
    }

    #top .search-front-page form.white_b input[type="submit"] {
        color: #424b59 !important;
    }


    #footer {
        z-index: 0 !important;
    }


    .avia-section {
        position: relative !important;
    }

    a.slide-image img {
        height: 150px;
        object-fit: cover;
        width: 100%;
    }

    ul.dropdown-menu.inner.show {
        list-style: none;
    }

    .section-form-search {
        z-index: 1000;
    }

    #header .logo a {
        display: flex;
        align-items: center;
    }

    .logo img {
        max-width: 230px;
    }


    .mh400 {
        max-height: 400px;
    }

    .img400 img {
        max-height: 400px;
        object-fit: cover;
    }



    #top .teams .avia_image.avia_image_team {
        object-fit: cover;
        object-position: center;
    }

    #top .teams .av-flex-placeholder {
        width: 1%;
    }

    #top .teams {
        height: 400px;
        margin-bottom: 20px;
    }

    #top .teams .avia-image-overlay-wrap::before,
    #top .teams .avia-image-overlay-wrap::after {
        content: none
    }

    #top .teams .contact {
        list-style: none;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        margin: 0;
    }

    #top .teams .entry-content-wrapper.clearfix {
        display: flex;
        align-items: center;
    }

    #top .teams .avia-image-container-inner {
        width: 100%;
    }

    #top .teams .avia-image-container .avia_image {
        width: 100%;
        height: 400px;
        object-fit: cover;
    }

    #top .teams li {
        display: flex;
        flex-direction: column;
        flex: 1 1 50%;
        border-right: 1px solid #ccc;
        margin: 0;
        padding: 0 16px;
    }

    #top .teams li:last-child {
        border-right: none;
    }



    #gal {
        display: flex;
        flex-wrap: wrap;
    }

    #gal .gal-item {
        padding: 2px;
        width: 70px;
        margin: 0;
    }

    .header-wrapper .media.inners {
        width: 100%;
        height: 100%;
        top: 0;
        left: 0;
        background-size: cover;
        background-position: center center;
        position: absolute;
    }

    .header-wrapper .media.inners:before {
        top: 0;
    }

    .single-investment .header-wrapper {
        position: relative;
    }

    #f_in {
        min-height: 250px;
    }


    .reset-height {
        z-index: 2;
    }

    #top #main #av_section_1 .template-page {
        padding-top: 20px;
        padding-bottom: 20px !important;
    }

    @media (max-width: 991px) {

        #top .teams .contact {
            flex-direction: column;
        }

        #top .teams li {
            border-right: none;
        }

    }
}

ul.dropdown-menu.inner.show {
    list-style: none !important;
}

.footer_link a:hover {
    text-decoration: none;
}

.footer_link a:visited {
    text-decoration: none;
}

.footer_link a:link {
    text-decoration: none;
}

.footer_link a:active {
    text-decoration: none;
}


@media (max-width: 767px) {

    #top .teams .entry-content-wrapper.clearfix {
        flex-direction: column;
    }

    #top .teams .avia-image-container .avia_image {
        height: auto;
        object-fit: cover;
    }

    #top .teams {
        height: auto;
    }

    .responsive #top .flex_column_table {
        display: block !important;
    }


}

.header-wrapper-search {
    min-height: 300px;
    background-color: #fff;
    color: #222;
    display: -ms-flexbox;
    display: -webkit-box;
    display: flex;
    -ms-flex-direction: row;
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    flex-direction: row;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    -ms-flex-pack: center;
    -webkit-box-pack: center;
    justify-content: center;
    -ms-flex-line-pack: center;
    align-content: center;
    -ms-flex-align: center;
    -webkit-box-align: center;
    align-items: center;
    background-attachment: fixed;
    background-size: cover;
    background-position: top center;
}

.main_block_catalog:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.av-hotspot-container {
    margin-left: 0px;
    margin-right: 0px;
    width: 100%;
}

.main_block_catalog {
    margin-left: 1.5% !important;
    width: 31.333333333333332% !important;
    margin-top: 20px !important;
}

.avia-image-container.av-hover-grow.av-hide-overflow,
.avia-image-container.av-hover-grow.av-hide-overflow .avia-image-container-inner,
.avia-image-container.av-hover-grow.av-hide-overflow .avia-image-overlay-wrap a.avia_image {
    overflow: hidden;
    width: 100%;
    height: auto;
    padding: 0;
    margin: 0
}

.specialist-thumb img {

    height: 160px;
    width: auto !important;
}

.header_color .main_menu ul:first-child>li>a {
    color: #969696;
    font-size: 16px;
    font-weight: 400;
}

#footer {
    padding: 15px 0 30px 0;
    background-color: #424b59;
    color: #e8e8e8;
    z-index: 1;
}

.footer_color strong {
    color: #fff
}

.slideshow_caption {
    z-index: 100;
    width: 52% !important;
    position: absolute;
    bottom: 0;
    top: auto;
    height: 100%;
    display: block;
    text-decoration: none;
    padding: 50px;
}

.caption_left .slideshow_caption {
    left: 0;
    width: 52% !important;
}

.av-main-nav>li>a {
    padding: 0 11px !important;
}

#top #header .av-main-nav>li>a {
    font-size: 16px !important;
}


/* Принудительно отключаем компенсацию скроллбара в Bootstrap */
.modal {
    padding-right: 0 !important;
    overflow-y: auto;
}

/* Убираем прыжок фиксированной шапки Enfold */
#top.modal-open #header {
    padding-right: 0 !important;
    margin-right: 0 !important;
}

/* Кнопка закрытия: фиксируем только когда окно открыто */
#top #accordionModal.show .close {
    display: block !important;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.6) !important;
    color: #fff !important;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    border: 2px solid #fff !important;
    opacity: 1 !important;
}