@media (min-width: 992px) {
    .offer_layout .col-lg-4 {
        width: 30.333333%;
    }
}

/* @media (min-width: 1200px) {
    .container,.container-lg,.container-md,.container-sm,.container-xl {
        max-width:1140px
    }
} */

@media (min-width: 1400px) {
    .container,.container-lg,.container-md,.container-sm,.container-xl,.container-xxl {
        max-width:1400px
    }

    .services .service_items img {
        width: 4vw;
        height: 4vw;
    }

    .news_layout .post-list .button-prev,
    .news_layout .post-list .button-next {
        height: 50px;
    }
}

@media (min-width: 1921px) {
    .news_layout .post-list {
        width: 100%;
    }

    /* body {
        max-width: 1920px;
        margin: 0 auto;
    } */
}

@media(max-width: 1399px) {
    header .navbar-menu ul li {
        font-size: 16px;
        line-height: 25px;
    }

    h1 {
        font-size: 70.8px;
        line-height: 100.2px;
    }
}

@media (max-width: 1199px) {

    body {
        font-size: 15px;
        line-height: 18px;
    }

    header .navbar-menu ul li {
        font-size: 18px;
        line-height: 28px;
    }

    header .custom-logo {
        width: 100%;
    }

    header .navbar-menu ul li {
        font-size: 13px;
        line-height: 20px;
    }

    .mail-phone {
        gap: 10px;
    }

    .mail-phone .mail,
    .mail-phone .phone {
        width: 40px;
        height: 40px;
    }

    .mail-phone .mail img,
    .mail-phone .phone img {
        width: 30px;
    }

    h1 {
        font-size: 50px;
        line-height: 60px;
    }
    
    h2 {
        font-size: 45px;
        line-height: 50px;
    }
    
    h3 {
        font-size: 35px;
        line-height: 40px
    }
    
    h4 {
        font-size: 30px;
        line-height: 35px;
    }
    
    h6 {
        font-size: 28px;
        line-height: 33px;
    }
    
    p,
    ul li {
        font-size: 18px;
        line-height: 20px;
    }

    .news_layout .post-heading-text {
        width: 30%;
        left: 34%;
    }
}

@media (max-width: 991px) {

    main {
        padding-top: 105px;
    }

    h1 {
        font-size: 40px;
        line-height: 40px;
    }

    .mobile-menu {
        display: block;
        text-align: right;
    }

    .header-contact-details,
    .desk-header {
        display: none;
    }

    .mobile-header {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #fff;
    }

    .close-menu,
    .toggle-menu {
        width: 30px;
    }

    .close-menu,
    .toggle-menu-open .toggle-menu {
        /* display: none; */
        visibility: hidden;
        opacity: 0;
        width: 0;
        transition: all .5s ease-in-out;
    }

    .toggle-menu-open .close-menu,
    .toggle-menu {
        visibility: visible;
        opacity: 1;
        width: 30px;
        transition: all .5s ease-in-out;
    }

    header .navbar-menu > ul {
        display: block;
        --bs-gutter-x: 1.5rem;
        padding-right: calc(var(--bs-gutter-x)* .5);
        padding-left: calc(var(--bs-gutter-x)* .5);
    }

    header .navbar-menu ul li a {
        justify-content: space-between;
        padding: 5px;
    }

    header .navbar-menu ul .sub-menu {
        position: initial;
    }

    header .navbar-menu ul li .sub-menu li {
        padding-left: 10px;
    }

    header .navbar-menu ul li .sub-menu li > a {
        border-left: 1px solid ;
        /* background: linear-gradient(90deg, #0c82c7 0%, #00aae3 90%); */
        border-image: linear-gradient(90deg, #0c82c7 0%, #00aae3 90%);
        border-image-slice: 1;
    }

    .grid_layouts {
        padding-bottom: 20px;
    }

    /* .heading_with_text_and_button,
    .two_column_layout_text_and_image,
    .services,
    .kontakt,
    .news_layout {
        padding-top: 70px;
        padding-bottom: 70px;
    } */

    .heading_with_text_and_button, 
    .two_column_layout_text_and_image, 
    .services, 
    .kontakt, 
    .news_layout {
        padding-top: 70px;
        padding-bottom: 70px;
    }

    .two_column_layout_text_and_image + .two_column_layout_text_and_image {
        padding-top: 0;
    }

    /* .services {
        padding-bottom: 50px;
        padding-top: 50px;
    } */

    .kontakt {
        /* margin-top: 0; */
        padding-top: 250px;
    }

    .news_layout .post-list {
        width: 90%;
    }

    .news_layout .post-list .news-slider img {
        margin-left: 0;
    }

    .news_layout .post-list .button-prev {
        left: 0;
    }

    .news_layout .post-list .button-next {
        right: 0;
    }

    .news_layout .post-heading-text {
        width: 38%;
        top: 33%;
        left: 24%;
    }

    .news_layout .post-heading-text h3 {
        font-size: 27px;
        line-height: 32px;
    }

    .news_layout .post-heading-text > a {
        padding-bottom: 10px;
    }

    .news_layout .post-list .button-prev,
    .news_layout .post-list .button-next  {
        height: 30px;
    }
}

@media (max-width: 767px) {
    .footer-logo-social-icons {
        padding-top: 20px;
    }

    .col-12 {
        padding-bottom: 20px;
    }

    form .col-12 {
        padding-bottom: 0;
    }

    .two_column_layout_text_and_image .right-text {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .heading_with_text_and_button,
    .kontakt,
    .news_layout {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .two_column_layout_text_and_image,
    .services {
        padding-bottom: 0;
    }

    .kontakt .row {
        margin-left: -15px;
        margin-right: -15px;
    }

    .kontakt .row .col-12 {
        padding-left: 15px;
        padding-right: 15px;
    }

    .news_layout .post-heading-text {
        width: 38%;
        top: 29%;
        left: 24%;
    }

    footer {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .news_layout .post-heading-text p {
        font-size: 14px;
        line-height: 20px;
    }

    .news_layout .post-heading-text h3 {
        font-size: 20px;
        line-height: 23px;
    }

    .news_layout .post-heading-text > a {
        padding-bottom: 7px;
    }

    h1, h2, h3, h4, h5, h6, p, a {
        /* word-break: break-all; */
        hyphens: auto;
    }

    .kontakt {
        /* margin-top: 0; */
        padding-top: 300px;
    }

    .hero_element .hero-element-outer:before {
        content: none;
    }

    .news_layout .post-list .button-prev {
        left: 10px;
    }

    .news_layout .post-list .button-next {
        right: 10px;
    }

    .right-image {
        flex-direction: column-reverse;
    }
}

@media(max-width: 390px) {
    .news_layout .post-heading-text p {
        font-size: 10px;
        line-height: 12px;
    }

    .news_layout .post-heading-text h3 {
        font-size: 14px;
        line-height: 17px;
    }
}