.ms-section {
    transition: opacity .3s ease-out;
}
article.ms-section {
    transition: opacity .8s ease-out .4s;
}
.ms-section__block {
    margin: 0 auto 140px;
    max-width: 1170px;
    padding: 0;
    position: relative;
}
.ms-section img {
    width: 100%;
}
.ms-section {
    padding: 40px 0 0;
}
.ms-section__block {
    margin: 0 auto 40px;
}
.ms-section__block header {
    text-align: center;
    max-width: 50%;
    margin: 0 auto 60px;
}
.go-to-contacts header {
    margin: 0 auto 0;
}
.inner-slider .ms-section__block {
    max-width: 100%;
}
.ms-section__block header h3 {
    margin-bottom: 10px;
}
.contrast-bg__grey,
.contrast-bg__black {
    padding: 90px 0;
    position: relative;
    margin: 0 -15px 160px;
}
.contrast-bg__black {
    margin: 0 -15px 0px;
    color: #fff;
}
.contrast-bg__black .ms-section__block,
.contrast-bg__grey .ms-section__block {
    margin: 0 auto;
}

.ms-section .filter-options {
    text-align: left;
    padding: 0 .7em;
    margin: 0 auto 30px;
}
.ms-section .filter-options button{
    display: inline-block;
    margin-right: 1.2em;
    text-transform: uppercase;
}


.filtr-btn {
    display: flex;
    margin: 0 auto 60px;
    padding: 0 17px;
    max-width: 1170px;
}
.filtr-btn li {
    list-style: none;
    padding: 0 0 4px 0;
    margin-right: 1.2em;
    cursor: pointer;
}
.filtr-btn li h6 {
    margin-bottom: 0;
}
.filtr-btn li.active .ms-btn::after {
    -webkit-transform: scale(1, 1) rotate3d(3,0,1,3deg);
    transform: scale(1, 1) rotate3d(3,0,1,3deg);
    top: 0;
    opacity: 1;
    -webkit-transition: opacity 0s,-webkit-transform .2s cubic-bezier(.25,.46,.45,.94);
    transition: opacity 0s,-webkit-transform .2s cubic-bezier(.25,.46,.45,.94);
    transition: opacity 0s,transform .2s cubic-bezier(.25,.46,.45,.94);
    transition: opacity 0s,transform .2s cubic-bezier(.25,.46,.45,.94),-webkit-transform .2s cubic-bezier(.25,.46,.45,.94);
}

.ms-grid {
    overflow: hidden;
    margin-bottom: 60px;
}

.ms-btn {
    position: relative;
    line-height: 1.5;
    padding: .2em;
    z-index: 0;
    display: inline-flex;
    text-align: center;
}
.ms-btn::after {
    content: '';
    display: block;
    width: calc(100% + .4em);
    height: 100%;
    background: rgba(0,0,0,.2);
    -webkit-transform: scale(1,.4) rotate3d(3,0,1,35deg);
    transform: scale(1,.4) rotate3d(3,0,1,35deg);
    z-index: -1;
    position: absolute;
    top: 0;
    left: -.2em;
    opacity: 0;
    -webkit-transition: opacity .2s cubic-bezier(.55,.085,.68,.53),-webkit-transform .3s cubic-bezier(.55,.085,.68,.53);
    transition: opacity .2s cubic-bezier(.55,.085,.68,.53),-webkit-transform .3s cubic-bezier(.55,.085,.68,.53);
}
.ms-btn:hover::after {
    -webkit-transform: scale(1, 1) rotate3d(3,0,1,3deg);
    transform: scale(1, 1) rotate3d(3,0,1,3deg);
    top: 0;
    opacity: 1;
    -webkit-transition: opacity 0s,-webkit-transform .2s cubic-bezier(.25,.46,.45,.94);
    transition: opacity 0s,-webkit-transform .2s cubic-bezier(.25,.46,.45,.94);
    transition: opacity 0s,transform .2s cubic-bezier(.25,.46,.45,.94);
    transition: opacity 0s,transform .2s cubic-bezier(.25,.46,.45,.94),-webkit-transform .2s cubic-bezier(.25,.46,.45,.94);
}
.active.ms-btn::after {
    -webkit-transform: scale(1, 1) rotate3d(3,0,1,3deg);
    transform: scale(1, 1) rotate3d(3,0,1,3deg);
    top: 0;
    opacity: 1;
    -webkit-transition: opacity 0s,-webkit-transform .2s cubic-bezier(.25,.46,.45,.94);
    transition: opacity 0s,-webkit-transform .2s cubic-bezier(.25,.46,.45,.94);
    transition: opacity 0s,transform .2s cubic-bezier(.25,.46,.45,.94);
    transition: opacity 0s,transform .2s cubic-bezier(.25,.46,.45,.94),-webkit-transform .2s cubic-bezier(.25,.46,.45,.94);
}
.ms-btn__icon {
    position: relative;
    line-height: 1;
    font-size: 16px;
    padding: .15em;
    display: flex;
    color: #212121;
}
.ms-btn__icon::after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.2);
    -webkit-transform: scale(1,.4) rotate3d(3,0,1,35deg);
    transform: scale(1,.4) rotate3d(3,0,1,35deg);
    z-index: -1;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    -webkit-transition: opacity .2s cubic-bezier(.55,.085,.68,.53),-webkit-transform .3s cubic-bezier(.55,.085,.68,.53);
    transition: opacity .2s cubic-bezier(.55,.085,.68,.53),-webkit-transform .3s cubic-bezier(.55,.085,.68,.53);
    transition: opacity .2s cubic-bezier(.55,.085,.68,.53),transform .3s cubic-bezier(.55,.085,.68,.53);
    transition: opacity .2s cubic-bezier(.55,.085,.68,.53),transform .3s cubic-bezier(.55,.085,.68,.53),-webkit-transform .3s cubic-bezier(.55,.085,.68,.53);
}
.ms-btn__icon:hover::after {
    -webkit-transform: scale(1, 1) rotate3d(3,0,1,3deg);
    transform: scale(1, 1) rotate3d(3,0,1,3deg);
    top: 0;
    opacity: 1;
    -webkit-transition: opacity 0s,-webkit-transform .2s cubic-bezier(.25,.46,.45,.94);
    transition: opacity 0s,-webkit-transform .2s cubic-bezier(.25,.46,.45,.94);
    transition: opacity 0s,transform .2s cubic-bezier(.25,.46,.45,.94);
    transition: opacity 0s,transform .2s cubic-bezier(.25,.46,.45,.94),-webkit-transform .2s cubic-bezier(.25,.46,.45,.94);
}
.ms-btn__square {
    border: solid 1px #212121;
    background-color: transparent;
    border-radius: 3px;
    font-size: 14px;
    line-height: 40px;
    padding: 0 20px;
    text-transform: uppercase;
    transition: all .2s cubic-bezier(.25,.46,.45,.94);
}
.ms-btn__square:focus,
.ms-btn__square:hover {
    background-color: #212121;
    color: #fff;
}

.grid-item {
    margin-bottom: 15px;
    color: #fff;
}
.grid-item .box {
    display: flex;
    padding-top: 35vh;
    position: relative;
    background-color: #ccc;
    overflow: hidden;
    border-radius: 6px;
}

.grid-item:hover .box-inner_link,
.grid-item:hover .work-info > .box-inner {
    opacity: 1;
    -webkit-transform: scale(1) translate(0);
    -ms-transform: scale(1) translate(0);
    transform: scale(1) translate(0);
    -webkit-transition: all .2s cubic-bezier(.25,.46,.45,.94);
    transition: all .2s cubic-bezier(.25,.46,.45,.94);
}
.grid-item:hover .box-hover::before {
    opacity: 1;
}
.grid-item:hover .box-hover::after {
    opacity: .4;
    -webkit-transform: scale(1);
        -ms-transform: scale(1);
            transform: scale(1);
}
.grid-item:active .box-hover::after {
    opacity: 1;
    -webkit-transform: scale(.9);
        -ms-transform: scale(.9);
            transform: scale(.9);
}
.grid-item:hover .box-img {
    -webkit-transform: scale(1.05);
        -ms-transform: scale(1.05);
            transform: scale(1.05);
}
.grid-item:active .box-img {
    -webkit-transform: scale(1);
        -ms-transform: scale(1);
            transform: scale(1);
}

.grid-item__img {
    width: 100%;
    position: relative;
    margin-bottom: 30px;
}
.grid-item__img img {
    float: left;
    margin-bottom: 0;
    -webkit-backface-visibility:hidden;
            backface-visibility:hidden;
}


@media only screen and (max-width: 640px) {
    h1,
    .ms-hero__title h1  {
        font-size: 1.8em;
        line-height: 1.2;
    }
    .ms-section__block header {
        max-width: 100%;
        padding: 0 15px;
    }
    .ms-grid {
        margin-left: 0;
        margin-right: 0;
    }
    .ms-work-slider {
        padding-left: 0;
    }
    .ms-work-slider .ms-pagination {
        padding-top: 15px;
    }
    #contact.row {
        margin-left: 15px;
        margin-right: 15px;
    }
    #validForm .row {
        margin-left: 0;
        margin-right: 0;
    }
    .article-content .box-inner {
        max-width: 100%;
    }
    .article-content .box-inner .box-inner__cat {
        max-width: 50%;
    }
    .grid-item {
        margin-bottom: 15px;
    }
    .grid-item .box {
       padding-top: 35vh;
    }
    .ms-section__block [class*="col-"] {
        padding: 0;
    }
    .about__content img,
    .section__content img {
        margin-bottom: 15px;
    }
    .box-inner {
        left: 15px;
        top: 15px;
    }
    .article-date {
        top: 15px;
        right: 15px;
    }
    .box-inner_link {
        right: 15px;
    }
    .grid-item__img {
        margin-bottom: 15px;
    }
    .gallery-content img {
        margin-bottom: 0px;
    }
    .mfp-iframe-holder .mfp-close, .mfp-image-holder .mfp-close {
        right: 10px;
    }
    .ms-hero.ms-hero__poster {
        min-height: 65vh;
    }
    .ms-hero__title-poster .ms-hero__title {
        margin-top: 25vh;
    }
    .cover-closed .ms-hero__title-poster .ms-hero__title {
        margin-top: 25vh;
        margin-bottom: 0vh;
    }
    .work-details .copy-cell h6 {
        font-size: 1.2em;
    }
    .work-details .copy-cell {
        margin-bottom: 30px;
    }
    .work-slide img {
        max-height: 25vh;
    }
    .work-slide__shadow {
        top: 0;
        transform: scale(.75);
    }
    .ms-hero__title-poster {
        max-width: 85%;
    }
    .go-to-read span:first-child {
        display: none;
    }
    .cover-closed.ms-hero.ms-hero__poster .down-btns {
        transform: rotate(0);
        bottom: -20px;
    }
    .go-to-read span:last-child i:last-child {
        transform: rotate(0);
    }
    .go-to-back span {
        display: none;
    }
    .ms-hero__links {
        height: 40px;
    }
    .meta-date, .meta-tags {
        font-size: 12px;
    }
    .case__footer h3 {
        font-size: 16px;
    }
    .client-logo {
        padding-top: 85%;
    }
    .ms-hero:not(.ms-hero__poster) .ms-hero__title h1 {
        margin: 0 auto 15px;
    }
    blockquote {
        margin: 0 auto 20px;
        padding: 10px 10px 10px 20px;
    }
}