@media (max-width: 1399px) {
    .patterns-carousel .owl-nav button.owl-next {
        left: 2rem;
    }
}

@media (max-width: 1199px) {
    .header-nav__list>li>a {
        font-size: 1.4rem;
    }
}

@media (max-width: 991px) {
    .header-nav__list>li>a {
        font-size: 1.8rem;
    }

    .projects-carousel__content .btn {
        transform: translate(0);
    }

    .projects-carousel__item .projects-carousel__content {
        transform: translate(0);
        opacity: 1;
        visibility: visible;
    }

    .projects-carousel__item .projects-carousel__layer {
        opacity: 1;
        visibility: visible;
    }

    .header-nav__btn {
        display: flex;
    }

    .header-nav {
        position: absolute;
        background-color: #fff;
        top: 100%;
        left: 0;
        width: 100%;
        transition: all .5s ease-out;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-100%);
        z-index: -1;
    }

    .header-nav__list {
        flex-direction: column;
        align-items: center;
        gap: 0;
    }

    .header-nav__list>li {
        width: 100%;
        border-bottom: 1px solid #e0e0e0;
        text-align: center;
    }

    .header-nav__list>li>a {
        width: 100%;
        padding: 1rem 0;
    }

    .header-nav.opened {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        z-index: 99;
    }

    .header-nav__list>li>a:hover::after,
    .header-nav__list>li.current-menu-item>a::after {
        height: 0;
    }

    .header-nav__list>li>a:hover,
    .header-nav__list>li.current-menu-item>a {
        background-color: #5c0502;
        color: #fff;
    }

    .header-main__content {
        position: unset;
    }

    .header-nav__list>li:hover .nav-megamenu {
        opacity: 0;
        visibility: hidden;
    }
}

@media (max-width: 767px) {
    .home-certificates__text .btn {
        margin-top: 2rem;
    }

    .section-padding {
        padding: 4rem 0;
    }

    .section-margin {
        margin: 4rem 0;
    }

    .home-about__text {
        margin-bottom: 4rem;
    }

    .banner__item-title {
        font-size: 4rem;
    }

    /* .banner__item {
        min-height: 30rem;
    }

    .banner__item img {
        width: 100%;
        height: 100%;
        position: absolute;
        object-fit: cover;
    } */


    .banner__item-background {
        height: 140%;
    }

    .about-values__items>.container>.row>[class^="col"] {
        margin-bottom: 2rem;
    }

    .footer {
        margin-top: 4rem;
    }

    .certificates-about__bg {
        display: none;
    }

    .header-infos__content {
        justify-content: center;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .projects-content__text {
        padding: 0 0.75rem;
    }

    .product-details {
        padding: 2rem 0rem;
    }

    .footer-title {
        text-align: center;
        margin-bottom: 0.8rem;
    }

    .footer-contact__item {
        justify-content: center;
        margin-bottom: 2.8rem;
    }

}

@media (max-width: 575px) {
    .header-logo {
        text-align: center;
    }

    .header-main__content {
        justify-content: space-between;
    }

    .banner__item-title {
        font-size: 2.8rem;
    }

    .header-infos__content {
        flex-wrap: wrap;
        gap: 2rem;
        justify-content: center;
    }

    .banner__item-text {
        padding: 7rem 0 7rem 0;
    }

    .certificates-item {
        flex-direction: column;
    }

    .certificates-item__text {
        text-align: center;
    }

    .banner__carousel.owl-theme .owl-dots .owl-dot span,
    .projects-carousel.owl-theme .owl-dots .owl-dot span {
        margin: 5px 7px;
    }
}

@media (max-width: 316px) {

    .footer-infos__item,
    .footer-infos__item--social {
        margin-top: 4rem;
    }

}