/* Start:/local/templates/main/components/bitrix/news/portfolio/bitrix/news.detail/.default/style.css?158615945713222*/
/* * * Detail Portfolio Module * * */

.main-site-container {
    display: table;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    position: relative;
    margin: 30px 0;
}

.main-site-info {
    display: table;
    width: 100%;
    position: relative;
}

.main-site-info .image {}

.main-site-info .image img {
    display: block;
    width: 100%;
}

.main-site-info .top-info {
    position: absolute;
    top: 0;
    margin: 25px;
}

.main-site-info .top-info .logotype {}

.main-site-info .top-info .logotype img {
    display: block;
}

.main-site-info .top-info .title {
    font-family: "OpenSansBold", "Open Sans", sans-serif;
    font-size: 30px;
    line-height: 1.4;
    margin: 35px 0;
    text-shadow: 0 2px 5px rgba(9, 65, 122, 0.75);
    color: #fff;
}

.main-site-info .top-info .link {
    font-family: "OpenSansSemiboldRegular", "Open Sans", sans-serif;
    font-size: 12pt;
}

.main-site-info .bottom-info {
    text-align: justify;
}

.main-site-info .bottom-info p {
    font-size: 12pt;
    line-height: 1.4;
    margin: 10px 10% 30px 10%;
    color: #fff;
}

.main-site-preview {
    position: relative;
    display: table;
    width: 100%;
}

.main-site-preview .image {}

.main-site-preview .image img {
    display: block;
    width: 100%;
}

.main-site-preview .image .preview-link {
    position: absolute;
    top: 0;
    right: 0;
    margin: 40px;
    color: #365d85;
    text-align: center;
}

.main-site-preview .image .preview-link .preview-ico {
    display: block;
}

.main-site-preview .image .preview-link .preview-ico img {
    margin: 0 auto;
}

.main-site-preview .image .preview-link .preview-ico.right {
    float: right;
    margin: -47px 2px 0 17px;
}

.main-site-preview .top-info {
    color: #FFF;
    font-size: 12pt;
    position: absolute;
    top: 0;
    margin: 20px auto;
    text-align: center;
    display: table;
    width: 100%;
}

.main-site-preview .text {
    margin: 20px;
    font-size: 12pt;
    color: #ffffff;
}

.main-site-option {
    position: relative;
    display: table;
    width: 100%;
}

.main-site-option .text {
    text-align: center;
    margin: 20px;
    font-size: 12pt;
    color: #ffffff;
}

.main-site-option .ib-list.opt-list {
    display: table;
    width: 100%;
}

.main-site-option .ib-list.opt-list .ib-item {
    width: 33.333%;
    display: block;
    float: left;
    margin: 0;
    position: relative;
    border: 2px solid transparent;
}

.main-site-option .ib-list.opt-list .image {
    -webkit-animation-duration: 1s;
    animation-duration: 1s;
    -webkit-animation-fill-mode: both;
    animation-fill-mode: both;
}

.main-site-option .ib-list.opt-list .ib-item .image .image-overlay {
    position: absolute;
    background: url("https://varnoff-studio.ru/local/templates/main/components/bitrix/news/portfolio/bitrix/news.detail/images/overlay.png") repeat;
    z-index: 200;
    display: block;
    width: 100%;
    height: 100%;
}

.main-site-option .ib-list.opt-list .image img {
    margin: 0 auto;
    display: block;
    width: 100%;
    z-index: 100;
}

.main-site-option .ib-list.opt-list .info {
    display: block;
    height: 100%;
    width: 100%;
    z-index: 300;
    position: absolute;
    top: 0;
}

.main-site-option .ib-list.opt-list .info .middle {
    width: 100%;
    height: 50%;
    margin: auto;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    padding: 15px 5px;
    position: absolute;
}

.main-site-option .ib-list.opt-list .info .in-block {
    padding-left: 10px;
    padding-right: 10px;
    display: table;
}

.main-site-option .ib-list.opt-list .info .text {
    display: table-cell;
    vertical-align: middle;
    font-size: 17pt;
    font-family: "OpenSansBold", "Open Sans", sans-serif;
    color: #ffffff;
    text-align: left;
    text-shadow: 0 2px 5px rgba(9, 65, 122, 0.75);
    line-height: 1.4;
    padding-left: 10px;
}

.main-site-option .ib-list.opt-list .info .ico {
    display: table-cell;
    vertical-align: middle;
    overflow: hidden;
    border-radius: 5px;
}

.main-site-option .ib-list.opt-list .info .ico img {
    display: block;
}

/* * * Superstructure * * */

.two-box .preview-box .ib-list .ib-item {
    width: 49%;
}

.fixed-btn {
    position: fixed;
    top: 50%;
    right: -195px;
    display: block;
    background: url("https://varnoff-studio.ru/local/templates/main/components/bitrix/news/portfolio/bitrix/news.detail/images/order.png") center no-repeat;
    width: 250px;
    height: 55px;
    z-index: 1000;
    text-align: center;
    line-height: 2;
    padding: 10px;
    text-decoration: none;
    font-size: 0;
    color: transparent;
    -webkit-transition: all 0.6s ease-in-out 0s;
    transition: all 0.6s ease-in-out 0s;
}

.fixed-btn:hover {
    right: -4px;
}

/* new */

.turn-gallery__link img {
    max-width: 100%;
    border-radius: 5px;
    -webkit-transition: all 0.3s;
    transition: all 0.3s;
    -webkit-transform-origin: left center;
    transform-origin: left center;
    -webkit-transition-property: -webkit-transform;
    transition-property: -webkit-transform;
    transition-property: transform;
    transition-property: transform, -webkit-transform;
    -webkit-transition-timing-function: ease;
    transition-timing-function: ease;
}

.turn-gallery__content {
    text-align: center;
}

.turn-gallery__img-wrap {
    background-color: #D3D7D8;
    -webkit-perspective: 1000px;
    perspective: 1000px;
    border-radius: 5px;
    position: relative;
    background-image: url('../../../../../../upload/images/list-.png');
    background-position: top right;
    background-repeat: no-repeat;
    max-width: 905px;
}

.turn-gallery__img-wrap:before {
    position: absolute;
    content: '';
    top: 0;
    right: 0;
    display: block;
    width: 0;
    height: 0;
    background-image: url('../../../../../../upload/images/corn-.png');
    background-position: top right;
    background-size: contain;
    z-index: 2;
}

.turn-gallery__link:hover .turn-gallery__img-wrap:before {
    -webkit-animation: corner 1s;
    animation: corner 1s;
    width: 210px;
    height: 181px;
}

/*clip-path: polygon(100% 0px, 100% 71.9964%, 83.5565% 100%, 0% 100%, 0px 100%, 0% 0%);*/

.turn-gallery__link:hover .turn-gallery__img-wrap img {
    -webkit-animation: polygon 1s;
    animation: polygon 1s;
    -webkit-clip-path: polygon(83.5425% 1px, 100% 182px, 100% 100%, 0% 100%, 0px 100%, 0% 0%);
    clip-path: polygon(83.5425% 1px, 100% 182px, 100% 100%, 0% 100%, 0px 100%, 0% 0%);
}

@-webkit-keyframes polygon {
    0% {
        /*clip-path: polygon(100% 0, 100% 100%, 100% 100%, 0% 100%, 0 100%, 0% 0%);*/
        -webkit-clip-path: polygon(100% 0px, 100% 0%, 100% 100%, 0% 100%, 0px 100%, 0% 0%);
        clip-path: polygon(100% 0px, 100% 0%, 100% 100%, 0% 100%, 0px 100%, 0% 0%);
    }
    100% {
        -webkit-clip-path: polygon(83.5425% 1px, 100% 182px, 100% 100%, 0% 100%, 0px 100%, 0% 0%);
        clip-path: polygon(83.5425% 1px, 100% 182px, 100% 100%, 0% 100%, 0px 100%, 0% 0%);
    }
}

@keyframes polygon {
    0% {
        /*clip-path: polygon(100% 0, 100% 100%, 100% 100%, 0% 100%, 0 100%, 0% 0%);*/
        -webkit-clip-path: polygon(100% 0px, 100% 0%, 100% 100%, 0% 100%, 0px 100%, 0% 0%);
        clip-path: polygon(100% 0px, 100% 0%, 100% 100%, 0% 100%, 0px 100%, 0% 0%);
    }
    100% {
        -webkit-clip-path: polygon(83.5425% 1px, 100% 182px, 100% 100%, 0% 100%, 0px 100%, 0% 0%);
        clip-path: polygon(83.5425% 1px, 100% 182px, 100% 100%, 0% 100%, 0px 100%, 0% 0%);
    }
}

@-webkit-keyframes corner {
    0% {
        width: 0;
        height: 0;
    }
    100% {
        width: 210px;
        height: 181px;
    }
}

@keyframes corner {
    0% {
        width: 0;
        height: 0;
    }
    100% {
        width: 210px;
        height: 181px;
    }
}

.turn-gallery__link {
    display: inline-block;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.turn-gallery__link:focus {
    outline: 0;
}

.turn-gallery__link:hover {
    color: inherit;
}

.turn-gallery__link-name {
    text-align: center;
    margin-top: 15px;
}

.gallery__link-hide {
    display: none;
}

#fancybox-thumbs {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    padding: 10px;
    background-color: #fff;
}

#fancybox-thumbs ul {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-flow: wrap;
    flex-flow: wrap;
    left: auto !important;
    max-width: 100%;
}

.b-fancybox-nav {
    position: absolute;
    top: 0;
    bottom: 0;
}

.turn-gallery__img-wrap img {
    max-width: 100%;
    vertical-align: middle;
}

/* flipbook */

.flipbook {
    text-align: center;
}

.flipbook__content {
    -webkit-transition: margin 0.3s;
    transition: margin 0.3s;
}

.flipbook__popap .hard {
    background-color: #D3D7D8;
}

.flipbook__popap .shadow {
    -webkit-box-shadow: 0 4px 10px #666;
    box-shadow: 0 4px 10px #666;
}

.flipbook__popap .page {
    -webkit-box-shadow: inset 0 0 5px #666;
    box-shadow: inset 0 0 5px #666;
    background-color: #D3D7D8;
}

.flip__mfp .mfp-container {
    overflow-x: hidden;
}

a.hard {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    overflow: hidden;
}

.js-control-wrap {
    height: 0;
    width: 0;
    overflow: hidden;
}

.js-control {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
}

.js-control img {
    max-width: 100%;
}

.flipbook__popap {
    position: relative;
    background: #FFF;
    padding: 40px;
    max-width: 1880px;
    margin: 0 auto;
}

.flipbook__popap .page-wrapper {
    -webkit-perspective: 2000px;
    perspective: 2000px;
}

.flipbook__popap img {
    max-width: 100%;
    vertical-align: middle;
}

.flipbook__buttons {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    margin-top: 20px;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

.flipbook__button {
    padding: 10px 15px;
    font-size: 18px;
    line-height: 1.4;
    font-family: "OpenSansSemiboldRegular", "Open Sans", sans-serif;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    text-decoration: none;
    border: none;
    -webkit-transition: all 0.3s ease-in-out 0s;
    transition: all 0.3s ease-in-out 0s;
    position: relative;
}

.flipbook__button:hover {
    -webkit-transform: scale(1.1);
    transform: scale(1.1);
    color: #fff;
}

.flipbook__button--prev {
    background-color: #ff6a51;
}

.flipbook__button--next {
    background-color: #4ac2ea;
}

.mfp-img {
    max-height: initial !important;
}

.portfoliodet {
    position: relative;
}

.portfoliodet .portfoliodet__full--heading {
    -webkit-background-size: contain;
    background-size: contain;
    position: relative;
}

.container--portfolio-services {
    padding-top: 25px;
}

.portfoliodet__gallery .zoom.isLanding {
    top: 3%;
    right: 3%;
}

.portfoliodet__prev, .portfoliodet__next {
    display: inline-block;
    position: absolute;
    width: 88px;
    top: 400px;
    /* top: 50%; */
    transform: translate(0, -50%);
}

/* .portfoliodet__prev {
    left: 1%;
}

.portfoliodet__next {
    right: 1%;
} */

.portfoliodet__prev-img, .portfoliodet__next-img {
    width: 88px;
    height: 88px;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center;
    /* background-size: cover; */
    background-color: white;
    border-radius: 50%;
}

.portfoliodet__prev-text, .portfoliodet__next-text {
    width: inherit;
    text-align: center;
    display: inline-block;
    font-size: 15px;
}

@media screen and (min-width: 1200px) {
    .portfolio-bottom__arrows {
        display: none;
    }
}

@media screen and (max-width: 1199.98px) {
    .portfoliodet__prev, .portfoliodet__next {
        display: none;
        position: fixed;
        top: 80%;
        z-index: 999;
    }
    .portfoliodet__prev-img, .portfoliodet__next-img {
        background-image: none!important;
        width: 68px;
        height: 68px;
    }
    .portfoliodet__prev-text, .portfoliodet__next-text {
        display: none;
    }
    .portfolio-bottom__arrows {
        background-color: white;
        height: 115px;
    }
    .portfoliodet__full.portfoliodet__full--gallery {
        order: unset;
    }
    .portfolio-bottom__prev-img, .portfolio-bottom__next-img {
        width: 80px;
        height: 80px;
        display: block;
        /* background-size: 90%; */
        background-position: center;
        background-repeat: no-repeat;
        border-radius: 50%;
        box-shadow: 0 0 10px #999;
        margin-top: 5px;
    }
    .portfolio-bottom__prev-text, .portfolio-bottom__next-text {
        color: #555;
        text-align: center;
        display: inline-block;
        font-size: 0.8em;
        width: 100%;
        margin-top: 0.2em;
    }
    .portfolio-bottom__prev, .portfolio-bottom__next {
        position: relative;
    }
    .portfolio-bottom__prev {
        left: 15px;
        float: left;
    }
    .portfolio-bottom__next {
        right: 15px;
        float: right;
        /* transform: rotate(180deg); */
    }
}
/* End */
/* /local/templates/main/components/bitrix/news/portfolio/bitrix/news.detail/.default/style.css?158615945713222 */
