@media (max-width: 1280px) {
    .content-main,
    .welcome .width {padding: 40px;}
    .header .width {padding: 30px 30px 20px 40px;}
    .width-breadcrumbs {padding: 0 40px;}
    .width-footer {padding: 30px 40px 20px;}
    .index-projects {padding: 0 30px;}
    .index-project {width: 24%;}
    .banner-image {
        width: 500px;
        height: 400px;
    }
    
    
}
@media (max-width: 1200px) {
     .banner-image:before, 
     .banner-image:after {
         width: 360px;
         height: 485px;
     }
     .banner,
     .banner .width {
         min-height: 540px;
     }
    .contacts-form textarea {max-width: 100%;}
    .index-project {padding: 20px 10px;}
    
    .books .flexbox-row {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    }
    .book {
        width: 25%;
        padding: 20px 40px;
    }
    .books .flexbox-row:after {
        content: '';
        position: relative;
        
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
    }
    
    .buy__item {
        width: 50%;
    }
 }

/* spoiler aside + column content */

@media (max-width: 1080px) {
    .aside {padding: 0;}
    .aside-projects, 
    .articles-aside, 
    .tags-aside, 
    .aside-row {padding: 0;}
    .index-projects {padding: 0 20px;}
    .content-main {
        padding: 0 0 40px 0;
        -webkit-box-shadow: none;
        box-shadow: none;
        border: none;
    }
    .main-article {margin-bottom: 50px;}
    .subscribe .width {
        max-width: 90%;
        padding: 40px;
    }
    .projects .width {padding: 30px;}
    
    .aside {
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
        order: 1;
        margin: 0;
        width: 100%;
    }
    .content-main {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
        padding-right: 0;
    }
    .articles,
    .projects-container.flexbox-row {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .aside-button {
        display: inline-block;
        margin: 0 auto;
        border-bottom: 1px solid #ddd;
        padding: 10px 0;
        color: #333;
        width: 100%;
    }
    .aside-projects {
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        
        -webkit-box-flex: 1;
        -ms-flex: 1 0 auto;
        flex: 1 0 auto;
        
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    .aside-title {
        width: 100%;
        -ms-flex-negative: 0;
        flex-shrink: 0;
    }
    .aside-project {width: 49%;}
    .width-content {padding: 40px 30px 0;}
    .welcome .width {
        padding: 30px;
        margin-top: 20px;
    }
    .aside-spoiler {
        display: none;
        margin-bottom: 30px;
    }
    .aside-button-status {
        width: 30px;
        height: 20px;
        display: inline-block;
    }
    .aside-button-status-arrow {
        display: inline-block;
        position: relative;
        width: 5px;
        height: 5px;
    }
    .aside-button-status-arrow:before,
    .aside-button-status-arrow:after {
        content: '';
        display: inline-block;
        position: absolute;
        top: 0;
        left: 0;
        width: 6px;
        height: 1px;
        background: #333;
    }
    .aside-button-status-arrow:before {
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
        left: -4px;
    }
    .aside-button-status-arrow:after {
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }
    .aside-button-status-arrow.active {
        -webkit-transform: rotate(180deg);
        transform: rotate(180deg);
        top: -3px;
    }
    .breadcrumbs.main {height: 0;}
    .project-footer-button {width: 280px;}
    .project {
        width: 100%;
        margin-bottom: 20px;
    }
    
    .buy__item {
        width: 33.33%;
    }
    
}
@media (max-width: 1024px) {
    .banner-image:before, 
    .banner-image:after {
        width: 300px;
        height: 410px;
    }
    .banner-image {height: 340px;}
    .banner, 
    .banner .width {
        min-height: 450px;
    }
    .banner-image {
        -webkit-background-position: 50%;
        background-position: 50%;
    }
    h1 {margin: 0 0 20px;}
    
    .index-projects:not(.books) .flexbox-row {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .index-project {
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    .index-project  {
        width: 100%;
        margin: 0;
        border-bottom: 1px dashed #ddd;
    }
    .index-project-image {
        -ms-flex-negative: 0;
        flex-shrink: 0;
        width: 260px;
        height: 215px;
        position: relative;
    }
    .index-project-content {
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
        padding: 0 0 0 30px;
        text-align: left;
    }
    .index-project.active .index-project-image:before {
        top: -2px;
        right: -2px;
    }
    .index-project-title {margin-top: 10px;}
}

@media (max-width: 900px) {
    .banner-image:after {right: -20px;}
    .subscribe-description {
        width: 90%;
        margin-bottom: 0;
    }
    .footer-logo, 
    .footer-social {
        width: 180px;
    }
    .aside-spoiler {margin-bottom: 0;}
    .banner-image {height: 310px;}
    
    /* new */
    .header,
    .header-scroll {height: 85px;}
    .header-logo {width: 230px;}
    .header .width {padding: 20px 20px 10px;}
    .header-menu {display: none;}
    .header-search-button {
        text-align: right;
        -webkit-box-flex: 1;
        -ms-flex-positive: 1;
        flex-grow: 1;
    }
    .search-button {
        padding: 0;
        width: 45px;
        height: 50px;
    }
    .search-button:before {
        width: 24px;
        height: 24px;
    }
    .header-menu-button {
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    .menu-button {
        padding: 16px;
        width: 60px;
        height: 50px;
    }
    .desktop.menu-ul {padding: 20px;}
    li.desktop.menu-li {
        width: 100%;
        text-align: center;
        border-bottom: 1px dashed #eee;
    }
    .header-menu-button {
        position: absolute;
        top: 15px;
        right: 10px;
    }
    .book {
        width: 33%;
        padding: 20px 30px;
    }
}

@media (max-width: 830px) {
    .banner-image {height: 240px;}
    .banner-image:before, 
    .banner-image:after {
        width: 220px;
        height: 300px;
    }
    .banner, 
    .banner .width {min-height: 320px;}
}

@media (max-width: 768px) {
    .project-event span {
        display: inline-block;
        width: 100%;
        margin: 20px 0 10px;
    }
    .subsctibe-form {
        width: 320px;
        margin: 0 auto;
    }
    .subsctibe-form input {width: 100%;}
    .subscribe h2 {margin-bottom: 30px;}
    .index-projects .width {padding-top: 20px;}
    .buy__item {
        width: 50%;
    }
}
@media (max-width: 640px) {
    .width-content {padding: 20px 30px 0;}
    .main-article-content {padding: 0 5px;}
    .footer-nav,
    .width-header,
    .menu-button.active span:nth-child(2) {
        display: none;
    }
    .subsctibe-form input {
        width: 320px;
        margin: 5px 0;
    }
    .footer-menu {
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    .footer-logo {
        -webkit-box-ordinal-group: 2;
        -ms-flex-order: 1;
        order: 1;
    }
    .footer-social {
        -webkit-box-ordinal-group: 3;
        -ms-flex-order: 2;
        order: 2;
    }
    .aside-project {width: 100%;}
    .footer-row-copyright {margin-top: 20px;}
    .subscribe-description {margin-top: 40px;}
    .article-main-image,
    .article-audio-container {margin-bottom: 20px;}
    .main-articles {margin-top: 5px;}
    .more-articles ul,
    .aside-button {margin: 0 auto;}
    .main-articles-more {text-align: center;}
    
    /* article image 100% */
    .main-article .flexbox-row,
    .index-project {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    .main-article .main-article-audio-flexbox {
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -ms-flex-direction: row;
        flex-direction: row;
    }
    .more-articles li {list-style-type: none;}
    .main-article {margin-bottom: 40px;}
    .main-article-picture,
    .main-article-image {
        width: 100%;
        padding-right: 0;
        margin-bottom: 20px;
    }
    
    /* mobile menu */
    .menu {display: none;}
    .width-breadcrumbs {height: initial;}
    .aside-button {border-top: 1px solid #ddd;}
    .menu-button {
        position: fixed;
        top: 15px;
        right: 10px;
        display: block;
    }
    .header-menu-button {
        display: inline-block;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 65px;
        z-index: 1;
    }
    .header-menu-button-title {
        text-transform: uppercase;
        text-decoration: none;
        font-weight: 800;
        font-size: 20px;
        color: #333;
        line-height: 65px;
        padding: 0 20px;
        float: left;
    }
    .header {
        padding: 0;
        float: left;
    }
    .menu-button.active span:nth-child(1) {
        -webkit-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    .menu-button.active span:nth-child(3) {
        -webkit-transform: rotate(-45deg);
        transform: rotate(-45deg);
        margin-top: -8px;
    }
    .mobile.menu-ul {
        padding: 20px;
    }
    .mobile.menu-li {padding: 0;}
    .mobile.menu-a:hover,
    .mobile.menu-a.active {
        border-color: transparent;
        font-weight: 600;
    }
    .mobile.menu-a {
        padding: 10px 0;
        width: 100%;
    }
    .mobile.menu-li,
    .project-footer-button {
        display: inline-block;
        width: 100%;
    }
    .comment-form input[type="text"] {
        width: 48.5%;
        float: left;
    }
    .comment-form input[type="email"] {
        width: 48.5%;
        float: right;
    }
    .aside-button {
        text-align: left;
        padding: 10px 20px;
    }
    .aside-button-title {margin-right: 10px;}
    .aside-button-status {width: 20px;}
    .aside-button-status-arrow.active {top: -4px;}
    .aside-button-status-arrow {width: 2px;}
    .main-article-audio {margin-top: 0;}
    
    /* search button */

    .header-menu-search-button {
        width: 100%;
        height: 100%;
        position: relative;
        display: block;
    }
    
    
    .index-project-image {
        width: 100%;
        height: 100%;
    }
    .index-project-content {padding: 0;}
    .index-project-desc,
    .index-project-title {margin: 20px 0;}

    .book {width: 50%;}
    
    /* + input captcha */
    .fieldset-captcha {
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }
    .comment-form input[name="captcha"] {
        width: 100%;
    }
}
@media (max-width: 570px) {
    .banner, 
    .banner .width {
        min-height: 710px;
    }
    .banner-image:before, 
    .banner-image:after {
        width: 220px;
        height: 300px;
        top: 410px;
    }
    .banner-image {
        height: 400px;
        width: 100%;
        margin: 20px;
    }
    .subsctibe-form {width: 100%;}
    .buy__item {
        width: 100%;
    }
}
@media (max-width: 480px) {
    .banner .width {padding: 0;}
    .banner-image {
        margin: 0 20px;
    }
    .subsctibe-form input,
    .subscribe-description {width: 100%;}
    h1 {
        font-size: 22px;
        margin-bottom: 30px;
    }
    h2 {font-size: 18px;}
    h3 {font-size: 16px;}
    .main-article-footer,
    .page-article-footer {
        display: -moz-flex;
        display: -ms-flex;
        display: -o-flex;
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        
        -webkit-box-flex: 1;
        -ms-flex: 1 0 auto;
        flex: 1 0 auto;
        
        -ms-flex-wrap: wrap;
        flex-wrap: wrap;
        
        -webkit-box-pack: justify;
        -ms-flex-pack: justify;
        justify-content: space-between;
    }
    .footer-logo {width: 150px;} 
    .footer-social {width: 170px;}
    
}
@media (max-width: 425px) {
    .banner-image:before, 
    .banner-image:after {top: 360px;}
    .banner-image {height: 360px;}
    .banner, 
    .banner .width {min-height: 660px;}
    .width-breadcrumbs {padding: 0 20px;}
    .width-content {padding: 20px 20px 0;}
    .width-footer {padding: 20px;}
    .contacts-social-container {margin: 0;}
    .main-article:nth-child(4) {margin-bottom: 30px;}
    .main-article-title {margin-bottom: 5px;}
    .main-article-picture {margin-bottom: 15px;}
    .subscribe-description {margin-top: 30px;}
    .project {padding: 15px;}
    .comment-form input,
    .comment-form input[type="text"],
    .comment-form input[type="email"] {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        float: none;
    }
    .comment .flexbox-row {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
    h1 {
        font-size: 20px;
        margin-bottom: 20px;
    }
    .download {display: none;}
    .main-article-title {text-align: left;}
    .book-hover {padding: 20px 0;}
    .book {padding: 20px;}
}

@media (max-width: 375px) {
    .welcome .width {padding: 20px;}
    .welcome .width:before {
        top: 5px;
        right: 5px;
        bottom: 5px;
        left: 5px;
    }
    .banner-image {height: 320px;}
    .banner-image:before, 
    .banner-image:after {
        top: 320px;
    }
    .banner, .banner .width {
        min-height: 620px;
    }
    .content-main .duplicates {margin-bottom: 20px;}
    audio {width: 100%;}
    .subscribe .width {
        padding: 30px 20px;
        max-width: 100%;
    }
    .subscribe h2 {margin-bottom: 25px;}
    .subscribe-description {margin: 20px 0 0;}
    .footer-title {
        width: 100%;
        text-align: left;
        display: inline-block;
    }
    .projects .width {padding: 30px 20px;}
    #comment-form {padding: 20px 20px 10px;}
    input#comment-captcha {width: 100%;}
    .content-main ol, 
    .content-main ul {
        margin-left: 14px;
    }
} 
@media (max-width: 340px) {
    .banner-image {height: 260px;}
    .banner-image:before, 
    .banner-image:after {top: 265px;}
    .banner, .banner .width {min-height: 565px;}
    .footer-social .footer-title,
    .audio-download-link {display: none;}
}
