/* ==================== 1305px ==================== */
@media screen and (max-width: 1305px) {
    .productlist {
        display: flex;
        flex-wrap: wrap;
        gap: 60px 20px;
    }

    .cols {
        gap: 40px 20px;
    }

    .productlist .item {
        width: calc(25% - 15px);
    }
    
    .productlist.works .item {
    width: calc(100% / 3 - 13.333px);
}
}

/* ==================== 1280px ==================== */
@media screen and (max-width: 1280px) {
    .productlist {
        gap: 20px;
    }

    .productlist .item {
        width: calc(100% / 3 - 13.333px);
    }
}

@media screen and (max-width: 1300px) {
    /* Product grid */
    .menu nav a {
        padding: 20px 10px;
    }
    
    .menu nav {
        margin-left: -10px;
    }
}

/* ==================== 1120px ==================== */
@media screen and (max-width: 1120px) {
    /* About page */
    
    .hblock {
        background-size: 50%;
        background-position: top right;
    }
    
    .aboutpage .cols {
        flex-direction: column;
        gap: 30px;
    }
    
    .aboutpage .cols .col {
        width: 100%;
        display: flex;
        gap: 30px;
    }
    
    .aboutpage .cols .col .num {
        width: 0;
        margin-right: 30px;
        line-height: 1;
    }
    
    .aboutpage .green {
        padding: 30px 20px;
    }
    
    /* Selection form */
    .selection .frm {
        flex-direction: column;
        align-items: center;
    }

    .selection .lcl, 
    .selection .rcl {
        width: 100%;
        margin-left: 0;
        justify-content: center;
    }

    .selection .rcl {
        gap: 20px;
    }
    
    .selection .frm .fblck.pr label {
        margin-bottom: 0;
    }
    
    /* Contact page */
    .contactpage .cols {
        flex-direction: column;
    }
    
    .contactpage .col {
        width: 100%;
    }
    
    .contactpage .col .inf {
        width: 70%;
    }
    
    /* Common */
    .page h3 {
        margin-bottom: 15px;
    }
}

@media screen and (max-width: 1100px) {
    /* Navigation */
    .menu nav {
        display: none;
    }
    
    .menu .mmenu {
        display: flex;
    }

    .productlist .item {
        width: calc(100% / 2 - 10px) !important;
    }
    
    .owl-carousel .item {
        width: 100% !important;
    }

    /* Forms */
    .cont-block .dform {
        padding: 30px 30px;
    }
    
    /* Header */
    header .logo {
        width: 140px;
    }
    
    /* Categories */
    .categories .item {
        width: 100%;
    }
    
    /* Footer */
    footer .cols .col {
        width: calc((100% - (2 - 1) * 40px) / 2);
    }
    
    /* Single page */
    .single .col {
        width: 70%;
    }

    .col.img {
        width: 30%;
    }
    
    
    
    /* Tables */
    table {
        margin-bottom: 30px;
    }
    
    /* Two columns layout */
    .cols-2 {
        flex-direction: column;
    }

    .cols-2 .col, 
    .cols-2 .col:first-of-type {
        width: 100%;
        padding: 0;
    }

    .cols-2 .video {
        margin-top: 30px;
    }
    
    .project.single .price {
        gap: 30px;
}
}

@media screen and (max-width: 900px) {
    .single .s_tags {
        font-size: 10px;
        left: 0;
    }
    
    .single .s_tags .tag { 
        font-weight: 300;
        padding: 5px 10px;
        background-color: var(--main-color);
        border-radius: 5px;
        color: #FFF;
    }
    
    .cont-block h2 {
        margin-top: 0;
    }

    .cont-block.questions p {
        margin-bottom: 0;
    }

    .cont-block .cols {
        flex-direction: column;
    }

    .cont-block .cols .col {
        width: 100%;
    }

    .cont-block .dform .cols {
        flex-direction: row;
    }

    .cont-block .dform .cols .col {
        width: 50%;
    }
    
.pricelist {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.pricelist:before {
    font: var(--fa-font-solid);
    content: "\f07e";
    position: absolute;
    font-size: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    left: 0;
    width: 100%;
    height: calc(100% - 30px);
    color: #FFF;
    background-color: rgba(55,55,55,0.3);
    z-index: 1;
    pointer-events: none;
}

/* Убираем подсказку */
.pricelist.touched:before,
.pricelist:hover:before {
    display: none;
}
}    

/* ==================== 710px ==================== */
@media screen and (max-width: 710px) {
    
    .col.img {
        aspect-ratio: auto;
    }
    
    .tocart input[type="number"], .cart .presumm .quantity input[type="number"] {
        width: 10px;
    }
    
    /* Project page */
    .single.project, .single.hasgall {
        margin-top: -60px;
        flex-direction: column;
    }
    
    .single.project .col, .single.hasgall .col {
        width: 100%;
    }
    
    .single.project .col.img, .single.hasgall .col.img {
        display: block;
    }
    
    .single.project .col .gallery-main-image, .single.hasgall .col .gallery-main-image {
        margin-left: -20px;
        margin-right: -20px;
        width: calc(100% + 40px); 
    }
    
    .single.project .col .gallery-main-image img, .single.hasgall .col .gallery-main-image img {
        border-radius: 0;
    }
    
    .wood-sizes-filter {
        flex-direction: column;
        gap: 20px;
    }
    
.contact .tbl {
    margin-bottom: 10px;
}

.contact .tozm {
    display: block;
    margin-bottom: 10px;
    margin-right: 0;
}

.contact .tbl .toz {
    display: none;
}

.contact .tbl {
    justify-content: center;
}
    
    .anchors .items {
        flex-direction: column;
}

.anchors .items .item {
    width: 100%;
}

    header .wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    header .contact {
        text-align: center;
    }
    
    .open-order {
        display: none;
    }
    
    .contact a.map i {
        margin-right: 10px;
    }
    
    /* Product grid */
    .productlist .item {
        width: 100% !important;
    }
    
    /* Single page */
    .single .col, .fullinfo .col {
        width: 100%;
    }
    
    .fullinfo .cols {
        flex-direction: column;
    }
    
    .fullinfo .cols {
        gap: 10px;
    }
    
    .fullinfo h2 {
        margin-bottom: 20px;
    }
    
    .singlepreim .mcol {
        flex-direction: column;
        width: 100%;
    }
    
    .singlepreim .contact {
        align-items: normal;
    }
    
    .singlepreim .mcols {
        flex-direction: column;
    }
    
    .single .col.img {
        display: none;
    }    
    
    .single .type {
        flex-direction: column;
    }

    .single .price {
        gap: 20px;
        flex-wrap: wrap;
    }
    
    .single .price .col:last-of-type {
        width: 100%;
        display: flex;
        gap: 10px;
        justify-content: center;
        margin-top: 10px;
    }
    
    .single .price .col:last-of-type .qua {
        font-size: 14px;
    }
    
    .single .price .col {
        width: calc(50% - 10px);
    }
    
    /* Selection form */
    .selection .rcl, 
    .selection .lcl {
        flex-wrap: wrap;
    }

    .selection .fblck {
        width: 100%;
    }

    .selection .fblck.pr {
        text-align: center;
        width: calc(50% - 10px);
    }
    
    /* Map */
    .map .wrapper {
        height: 300px;
    }

    .map iframe {
        position: static;
        height: 300px;
    }
    
    .map .contact {
        width: calc(100% + 40px);
        box-sizing: border-box;
        margin-left: -20px;
        border-radius: 0;
        padding: 30px 20px;
    }
    
    /* Hero block */
    .hblock h1, .topinfo {
        max-width: 100%;
    }
    
    .hblock {
        background-image: none !important;
        padding: 0 0 20px 0;
    }
    
    .hblock .himg {
        display: block;
    }
    
        
    .hblock .wrapper {
        background-image: none !important;
    }
    
    .single.project, .single.hasgall {
        margin-top: 0;
    }

    .cont-block {
        padding: 40px 0;
    }
    
    /* Categories */
    .categories .img {
        min-width: 30%;
    }

    /* Advantages */
    .preim .icons .i {
        width: calc((100% - (2 - 1) * 30px) /2);
    }

    /* Video */
    .video {
        height: 200px;
    }

    /* Auto blocks */
    .auto .blocks {
        margin-top: 30px;
    }

    .auto .blocks .bl {
        width: calc((100% - (1 - 1) * 30px) / 1);
    }

    .auto .blocks .bl img {
        display: none;
    }

    .auto .blocks .bl .autom {
        display: block;
    }

    /* Typography */
    h1, h2 {
        font-size: 26px;
    }

    html, body {
        font-size: 14px;
    }

    .productlist.dg .item .title, 
    .categories .item .title {
        font-size: 18px;
    }

    .price .col .cost, 
    .categories .item .pr, 
    .price .col .qua {
        font-size: 18px;
    }
    
    /* Tabs */
    .tabs {
        gap: 20px;
        margin-bottom: 20px;
        flex-wrap: nowrap;
        overflow: auto;
    }

    .tabs .tab {
        padding: 0 5px 10px 5px;
        line-height: 1.2;
        white-space: nowrap;
    }
    
    table td, table th {
        padding: 10px 5px;
    }

    .catalog h2 {
        margin-bottom: 30px;
    }
    
    /* Three columns */
    .cols-3 {
        flex-direction: column;
        gap: 30px;
    }
    
    .cols-3 .col, 
    .cols-3 .col:first-of-type {
        width: 100%;
    }
    
    .cols-3 img {
        width: 30%;
        margin: auto;
        display: block;
        min-width: 200px;
    }
    
    .con .categories {
        margin-top: 30px;
    }
    
    /* Buttons */
    .dt .btns.btns {
        display: none;
    }
    
    .dt .mob.btns {
        display: block;
        margin-top: 15px;
    }
    
    .dt .mb {
        margin-bottom: 0;
    }
    
    /* Gallery */
    .gallery-thumbnails img {
        max-width: 80px;
    }
    
    .featlist li {
    width: calc((100% - (2 - 1) * 20px) / 2);
    text-align: center !important;
    }
    
    a.video.he {
        aspect-ratio: 6/3;
    }
    
    .project.single .price {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .harimg {
        display: none;
    }
}

/* ==================== 480px ==================== */
@media screen and (max-width: 480px) {
        .project.single .price {
        flex-wrap: wrap;
        gap: 20px;
    }
    .project.single .price .col {
        width: 100%;
    }
    
    .project.single .price .lcol {
        height: 1px;
        width: 100%;
    }
    
    .hblock .btns {
        flex-direction: column;
    }
    
    .copyright span {
        margin-bottom: 10px;
    }
    
    /* Forms */
    .cont-block .dform .cols {
        flex-direction: column;
    }

    .cont-block .dform .cols .col {
        width: 100%;
    }

    /* Categories */
    .categories .item {
        flex-direction: column;
    }

    .categories .img {
        height: 180px;
        border-radius: 10px 10px 0 0;
    }

    .categories .item .inf {
        padding: 30px 20px;
    }

    /* Footer */
    footer .cols .col {
        width: 100%;
    }

    /* Cart */
    .cart {
        width: 100%;
        right: calc(-100% - 25px);
    }

    /* Contact page */
    .contactpage a.tel {
        font-size: 18px;
    }
    
    /* Advantages */
    .preim .icons {
        flex-direction: column;
    }
    
    .preim .icons .i {
        width: 100%;
    }
    
    /* Spacing */
    section.pdb {
        margin-bottom: 50px !important;
    }

    .info h2 {
        margin-bottom: 30px;
    }
}

/* ==================== 360px ==================== */
@media screen and (max-width: 360px) {
    /* Header */
    header .lh {
        flex-direction: column;
    }
    
    header .logo {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    /* Selection form */
    .selection .fblck.pr {
        width: 100%;
    }
    
    .productlist .price, .single .price {
        flex-direction: column;
    }
    
    .tocart input[type="number"], .cart .presumm .quantity input[type="number"] {
        width: 70px;
    }
    
    .single .price .col, .price .col {
        width: 100%;
    }
}