/* Tablet */
@media (max-width: 992px) {
    .header-wrap {
        grid-template-columns: 200px 1fr 250px;
    }

    .header-nav-link {
        font-size: 13px;
        padding: 10px;
    }

    .hero-wrap {
        width: 80%;
    }

    .hero-title {
        font-size: 26px;
    }

    .services-wrap {
        flex-wrap: wrap;
    }

    .services-block {
        width: calc(50% - 13px);
        margin-bottom: 25px;
    }

    .textile-wrap {
        grid-template-columns: repeat(3, 1fr);
    }

    .advantages-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
    }

    .contacts-wrap-inner {
        grid-template-columns: 1fr;
        padding: 35px;
    }

    .section-subtitle {
        font-size: 28px;
    }

    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-detail {
        flex-direction: column;
    }

    .service-sidebar {
        width: 100%;
    }

    .pd-layout {
        grid-template-columns: 1fr 1fr;
    }

    .article-layout {
        grid-template-columns: 1fr 250px;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .desktop {
        display: none;
    }

    .mobile {
        display: block;
    }

    /* header */

    .header-wrap {
        height: 60px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .header-logo {
        width: auto;
    }

    .header-logo img {
        width: 150px;
    }

    #collapseButton,
    .collapse-menu-button {
        border: none;
        background: transparent;
        padding: 5px;
    }

    #collapseButton img,
    .collapse-menu-button img {
        width: 32px;
    }

    #collapseMenu {
        position: fixed;
        top: 0;
        left: 100%;
        transition: all ease .3s;
        z-index: 100;
        background: #fff;
        width: 100%;
        height: 100%;
        color: #000;
        overflow-y: auto;
    }

    #collapseMenu.show {
        left: 0;
    }

    .collapse-header {
        height: 60px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .header-nav {
        flex-direction: column;
        justify-content: flex-start;
        height: auto;
        border: none;
    }

    .header-nav-item {
        padding: 15px 20px;
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }

    .header-nav-link {
        color: #1C2539;
        padding: 0;
        font-weight: 500;
        font-size: 16px;
    }

    .header-button {
        display: flex;
        justify-content: center;
        padding: 20px;
    }

    .header-button button {
        border: none;
        background: #1C2539;
        color: #fff;
        width: 100%;
        padding: 14px;
        font-size: 16px;
    }

    /* hero */

    .hero {
        margin-top: 60px;
        height: 500px;
    }

    .hero-wrap {
        width: 100%;
        height: 500px;
        padding: 0 5px;
    }

    .hero-title {
        font-size: 22px;
        margin-bottom: 15px;
    }

    .hero-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .hero-links a {
        font-size: 14px;
        padding: 10px 18px;
    }

    /* sections */

    .section-title {
        padding: 5px 15px;
        font-size: 16px;
    }

    .section-subtitle {
        font-size: 24px;
        margin-bottom: 30px;
    }

    /* about */

    #about {
        padding: 50px 0 30px;
    }

    .about-wrap {
        flex-direction: column-reverse;
        gap: 30px;
    }

    .about-left,
    .about-right {
        width: 100%;
    }

    #about .section-title-wrap {
        align-items: center;
    }

    #about .section-subtitle {
        text-align: center;
    }

    /* partners */

    #partners {
        padding: 20px 0;
    }

    .partners-swiper .swiper-slide {
        height: 80px;
    }

    .partners-swiper img {
        max-width: 120px;
        max-height: 50px;
    }

    /* services */

    #services {
        padding: 50px 0;
    }

    .services-block {
        width: 100%;
    }

    .services-image {
        height: 180px;
    }

    /* products */

    #products {
        padding: 50px 0 30px;
    }

    .product-block {
        padding: 15px;
        margin-bottom: 25px;
        border-radius: 15px;
    }

    .product-top {
        flex-direction: column;
        gap: 20px;
    }

    .product-image,
    .products-description {
        width: 100%;
    }

    .products-title {
        font-size: 18px;
    }

    .products-chars ul {
        grid-template-columns: 1fr;
    }

    /* textile */

    #textile {
        padding: 50px 0;
    }

    .textile-wrap {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .textile-image {
        height: 140px;
    }

    .textile-title {
        font-size: 13px;
    }

    .textile-text {
        font-size: 12px;
    }

    /* advantages */

    #advantages {
        padding: 50px 0;
    }

    .advantages-wrap {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .advantage-block {
        padding: 25px 15px;
    }

    .advantage-title {
        font-size: 14px;
    }

    /* reviews */

    #reviews {
        padding: 50px 0;
    }

    /* news */

    #news {
        padding: 50px 0;
    }

    .news-wrap {
        grid-template-columns: 1fr;
    }

    /* contacts */

    #contacts {
        padding: 50px 0;
    }

    .contacts-wrap-inner {
        padding: 25px 20px;
        gap: 30px;
    }

    /* footer */

    footer {
        padding: 40px 0 0;
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        padding: 15px 0;
    }

    /* modal */

    .modal-content {
        margin: 10vh auto;
        padding: 30px 20px;
        border-radius: 12px;
    }

    .close-btn {
        top: 12px;
        right: 12px;
    }

    .modal-text {
        font-size: 18px;
        margin-bottom: 20px;
    }

    .modal-socials {
        flex-direction: column;
        gap: 15px;
    }

    /* documents */

    .documents-grid {
        grid-template-columns: 1fr;
    }

    /* product detail */
    .pd-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .pd-title { font-size: 20px; }
    .pd-price { font-size: 18px; }
    .pd-thumb { width: 55px; height: 55px; }

    /* article */
    .article-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .article-sidebar {
        order: -1;
    }
}

/* Small phones */
@media (max-width: 400px) {
    .hero-links {
        flex-direction: column;
    }

    .hero-links a {
        justify-content: center;
    }

    .textile-wrap {
        grid-template-columns: 1fr;
    }

    .advantages-wrap {
        grid-template-columns: 1fr;
    }
}
