.instaforex-offline .top-menu-wrapper {
    margin: 20px 0;
    overflow: hidden;
}
.instaforex-offline .top-menu {
    overflow-y: hidden;
    overflow-x: auto;
    display: flex;
    box-sizing: border-box;
    margin-bottom: -20px;
    -ms-overflow-style: none;
    -ms-user-select: none;
    -moz-user-select: none;
    -khtml-user-select: none;
    -webkit-user-select: none;
}
.instaforex-offline .top-menu::-webkit-scrollbar { width: 0; }
.instaforex-offline .top-menu .box {
    position: relative;
    min-width: 150px;
    box-sizing: border-box;
    cursor: pointer;
    padding-bottom: 20px;
}
.instaforex-offline .top-menu .box .cities {
    margin-top:10px;
}

.instaforex-offline .top-menu .box .year {
    padding: 10px 20px;
    text-align: center;
    color: #343434;
    background-color: #d4d4d4;
    font-size: 1.3em;
    border-left: 1px solid #ffffff;
    transition: background-color 200ms linear;
}

.instaforex-offline .top-menu .box:first-child .year {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
    border-left:none;
}

.instaforex-offline .top-menu .box:last-child .year {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}

.instaforex-offline .top-menu .box:hover .year {
    color: #000000;
    background-color: #b5b5b5;
}
.instaforex-offline .top-menu .box.active .year {
    color: #ffffff;
    background-color: #6a000a;
}

.instaforex-offline .top-menu .box .cities:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    background-image: url(../../img/instaforex_offline/bg_top_menu_box.png);
    background-size: auto;
    background-position: top center;
    background-repeat: no-repeat;
    opacity: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    transition: opacity 200ms linear;
}
.instaforex-offline .top-menu .box .cities {
    padding: 5px 20px;
    color: #343434;
    font-size: 0.85em;
    border-right: 1px solid #c3989c;
    height: 100%;
    position: relative;
    z-index: 1;
    background-color: transparent;
}
.instaforex-offline .top-menu .box .cities:last-child {
    border-right: none;
}
.instaforex-offline .top-menu .box .cities .one-city {
    padding: 0 5px;
    transition: all 0.3s;
}
.instaforex-offline .top-menu .box .cities .one-city:hover {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}
.instaforex-offline .top-menu .box:hover .cities,
.instaforex-offline .top-menu .box.active .cities {
    color: #1f1f1f;
}

.instaforex-offline .top-menu .box:hover .cities:after,
.instaforex-offline .top-menu .box.active .cities:after {
    opacity: 0.5;
}
.instaforex-offline .pre-menu-gallery {
    flex-wrap: nowrap;
    overflow: hidden;
}
.instaforex-offline #gallery .depth-image-wrap {
    width: calc(100% - 20px);
    max-width: 180px;
}
.instaforex-offline .pre-menu-gallery .depth-image-wrap {
    min-width: 150px;
}
.instaforex-offline .depth-image-wrap {
    -webkit-transform: perspective(300px);
    transform: perspective(300px);
    width: 150px;
    height: 100px;
    justify-self: center;
    align-self: center;
}

.instaforex-offline .depth-image-wrap.depth-video-gallery {
    width: calc(100% - 20px);
    height: 220px;
}
.instaforex-offline .depth-image-wrap .depth-image {
    border-radius: 0;
    background-color: transparent;
}
#gallery .depth-image-wrap .depth-image {
    border-radius: 0;
    box-shadow: none;
}
#gallery .depth-image-wrap.depth-video-gallery:nth-child(3) ~ .depth-image-wrap.depth-video-gallery{
    display: none;
}
#gallery .depth-image-wrap:hover .depth-image {
    box-shadow: none;
}
.instaforex-offline .pre-menu-gallery .depth-image-wrap .depth-image {
    filter: grayscale(1);
    box-shadow: rgba(0, 0, 0, 0.66) 0 2px 5px 0
}
.instaforex-offline .depth-image-wrap:hover .depth-image {
    filter: none;
}
.instaforex-offline .depth-image-wrap .depth-image-img {
    margin: 0px;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

.instaforex-offline #gallery .depth-images-box .depth-image-img {
    opacity: 1;
}

.depth-image-wrap.depth-video-gallery .jwplayer.jw-flag-aspect-mode {
    height: 220px !important;
}

/* Хак, для того чтобы убрать черную полоску на видео */
.depth-image-wrap.depth-video-gallery .jwplayer .jw-preview {
    width: calc(100% + 1px);
}

.news-year:not(.active) { display: none; }

.news-year {
    padding: 20px 0;
}

.news-city {
    width: 100%;
    background-color: #fff;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.19);
    border-radius: 8px;
    text-decoration: none;
    padding:20px 30px;
    box-sizing: border-box;
    display: block;
}
.news-city:not(:first-child) {
    margin-top: 30px;
}
.news-city-row,
.news-city-header-row {
    display: flex;
    flex-flow: wrap;
}
.news-city-row {
    margin: 0 -15px;
}
.news-city-header-row {
    flex-direction: row;
    padding: 5px 30px;
    margin: -20px -32px 0px;
    background: #eee;
    border: 1px solid #dbdbdb;
    border-radius: 7px 7px 0 0;
}

.news-city-title {
    font-weight: bold;
    font-size: 25px;
    padding: 10px;
    padding-left: 0px;
    text-decoration: none;
    float: left;
}
.news-city-header-padding-between {
    flex: 1;
}
.news-city-date {
    font-weight: bold;
    font-size: 20px;
    padding: 5px 0;
    align-self: center;
    white-space: nowrap;
}

.news-city-content {
    flex: 1.2;
    min-width: 450px;
    margin: 0 15px;
}

.news-city-button-block {
    display: flex;
    justify-content: flex-end;
}

.news-city-gallery {
    flex:1;
    min-width: 350px;
    overflow: hidden;
    text-align: center;
    padding-top: 10px;
    padding-left: 0px;
    padding-right: 0px;
    padding-bottom: 0px;
    box-sizing: border-box;
    align-self: center;
    margin: 0 15px;
}

.news-city-gallery-medium-item,
.news-city-gallery-medium-item img{
    max-width: 100%;
    transition: 0.3s;
}
.news-city-gallery-slider-wrapper {
    overflow: hidden;
    margin-top: -20px;
}
.news-city-gallery-slider {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 15px;
    position: relative;
    top: 20px;
    height: 125px;
    white-space: nowrap;
}
.news-city-gallery-small-item {
    height: 100px;
    word-break: keep-all;
    text-decoration: none;
}
.news-city-gallery-small-item.active {
    display: none;
}
.news-city-gallery-small-item img{
    max-height: 100%;
}

.button-maps-block {
    display: flex;
    flex-wrap: wrap;
    color: #333333;
    margin: 20px 0;
    padding: 10px;
    box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.19);
    border-radius: 8px;
    text-decoration: none;
    box-sizing: border-box;
}
.button-maps-block .block-info {
    flex: 3;
}
.button-maps-block .block-map {
    flex: 6;
    background-image: url('../../img/page/instaforex-offline/map.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 280px;
    min-height: 200px;
}
.button-maps-block .block-info .icon{
    margin:5px;
    padding: 12px 20px;
    background: rgba(199,215,214,1);
    background: -moz-linear-gradient(left, #f9fbfb 0%, #d4e3e3 25%, #d4e3e3 35%, #ffffff 100%);
    background: -webkit-linear-gradient(left, #f9fbfb 0%, #d4e3e3 25%, #d4e3e3 35%, #ffffff 100%);
    background: -o-linear-gradient(left, #f9fbfb 0%, #d4e3e3 25%, #d4e3e3 35%, #ffffff 100%);
    background: -ms-linear-gradient(left, #f9fbfb 0%, #d4e3e3 25%, #d4e3e3 35%, #ffffff 100%);
    background: linear-gradient(to right, #f9fbfb 0%, #d4e3e3 25%, #d4e3e3 35%, #ffffff 100%);
    display: flex;
    align-items: center;
    min-width: 250px;
}
.button-maps-block .icon:before {
    content: "";
    display: block;
    background-repeat: no-repeat;
    width: 40px;
    height: 40px;
    background-size: contain;
    background-position: center;
    margin-right: 10px;
}
.button-maps-block .icon.city:before {
    background-image: url(../../img/page/instaforex-offline/city.png);
}
.button-maps-block .icon.team:before {
    background-image: url(../../img/page/instaforex-offline/team.png);
}
.button-maps-block .icon.time:before {
    background-image: url(../../img/page/instaforex-offline/clock.png);
}
.button-maps-block .buttons-block {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.button-maps-block .buttons-block .btn {
    margin: 5px;
    min-width: 200px;
}

#gallery {
    margin: 10px auto;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;

    -webkit-justify-content: center;
    -moz-justify-content: center;
    -ms-justify-content: center;
    justify-content: center;

    -webkit-align-items: center;
    -moz-align-items: center;
    -ms-align-items: center;
    align-items: center;

    -webkit-flex-wrap: wrap;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    margin-left: -10px;
    margin-right: -10px;
}
#gallery .depth-images-box {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
}
#gallery .depth-image-wrap.depth-video-gallery {
    max-width: 320px;
}
@supports (display: grid) {
    #gallery .depth-images-box {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    }
    #gallery .depth-image-wrap.depth-video-gallery {
        max-width: 100%;
    }
}

#gallery > a {
    width: 164px;
    height: 108px;
    display: block;
    background: #ddd;
    border: 1px solid #d6d6d6;
    margin: 2px 5px;
}
#gallery > a > img {
    max-width: 100%;
    max-height: 100%;
}
.btn.btn-primary.grey {
    background-color: #8a8d8d;
    border: 1px solid #8a8d8d;
}
.btn.btn-primary.grey:hover {
    background-color: #989a9a;
    border: 1px solid #989a9a;
}
.btn.btn-info.btn-inverse.btn-preloader.show-more-gallery,
.btn.btn-info.btn-inverse.btn-preloader.show-less-gallery {
    min-width: 150px;
    margin: 0 10px;
    height: 45px;
    display: flex;
    justify-content: center;
}
.show-more-gallery {
    position: relative;
}
.show-more-gallery .preloader_red_mini {
    height: 30px;
    width: 30px;
    position:absolute;
    top:0;
    bottom:0;
    right: 0;
    left:0;
    margin:auto;
}
.show-more-gallery .preloader_red_mini:before,
.show-more-gallery .preloader_red_mini:after {
    height: 30px;
    width: 30px;
}

@media (max-width:768px) {
    .news-city-content {
        min-width: auto;
    }
    .news-city-gallery {
        min-width: calc(100% - 30px);
    }
    .button-maps-block {
        flex-direction: column;
    }
    .button-maps-block .block-map,
    .button-maps-block .block-info .icon {
        min-width: auto;
    }
    #gallery .depth-images-box {
        display: flex;
    }
    #gallery .depth-image-wrap.depth-video-gallery {
        max-width: 320px;
    }
    .instaforex-offline .depth-image-wrap.depth-video-gallery {
        height: auto;
        max-width: 320px;
    }
    .depth-image-wrap.depth-video-gallery .jwplayer.jw-flag-aspect-mode {
        height: auto !important;
    }
}
