@media (max-width: 1299px) {
    #main .article .col-xl-8 {
        padding-right: 40px;
    }

    .page-header h1, .box-headline h1 {
        font-size: 34px;
    }
}

@media (max-width: 1599px) {
    #header {
        padding-left: 15px;
        padding-right: 15px;
    }

    .navbar .nav > li {
        margin: 0 12px;
    }
}

@media (max-width: 1499px) {
    #header .logo img {
        max-height: 90px;
    }

    #header .phone {
        margin-left: 45px;
    }

    .slider .slide {
        height: 580px;
    }

    #footer .logo img {
        max-height: 86px;
    }
}

@media (max-width: 1399px) {
    .navbar {
        margin-left: 40px;
        order: 3;
    }
    .navbar .navbar-toggler {
        display: block !important;
        color: #000;
    }
    .navbar .collapse {
        display: block;
    }
    .navbar .nav {
        width: 300px;
        max-height: 85vh;
        flex-direction: column;
        flex-wrap: nowrap;
        position: absolute;
        top: 45px;
        right: -5px;
        padding: 20px 35px;
        background-color: #FFF;
        box-shadow: 0 8px 15px rgba(0, 0, 0, .15);
        transform-origin: 50% 0;
        transform: scaleY(0);
        transition-duration: 250ms;
        overflow-x: hidden;
        overflow-y: auto;
        z-index: 9999;
    }
    .navbar .nav.active {
        transform: scaleY(1);
    }
    .navbar .nav > li {
        margin: 6px 0;
    }
    .navbar .nav > li > a, 
    .navbar .nav > li > span {
        display: block;
        color: #000;
        padding: 5px 0;
        text-shadow: unset;
        border-bottom: 0;
    }
    .navbar .nav > li ul {
        display: block;
        width: 92%;
        position: relative;
        top: 0; left: 8%;
        opacity: 1;
        box-shadow: unset;
    }
    .navbar .nav > li ul > li > a, 
    .navbar .nav > li ul > li > span {
        font-size: 15px;
        font-weight: 400;
        border: 0;
    }
    .navbar .nav > li ul > li > ul {
        display: none !important;
    }

    .slider .slide {
        height: 540px;
    }
    .slider .slide h2 {
        font-size: 48px;
    }

    #cta p {
        font-size: 21px;
    }

    #about .photos img:first-of-type {
        max-width: 660px;
    }
    #about .photos img:last-of-type {
        max-width: 380px;
    }

    #about .content {
        padding-left: 120px;
    }
}

@media (max-width: 1199px) {
    .section {
        padding-top: 60px;
        padding-bottom: 60px;
    }

    #header {
        padding-left: 5px;
        padding-right: 5px;
    }

    #header .phone a {
        font-size: 17px;
    }
    #header .phone i {
        font-size: 13px;
    }

    #header .contact a {
        height: 50px;
        font-size: 17px;
        line-height: 46px;
        padding: 0 30px;
    }

    .slider .slide h2 {
        max-width: 50%;
        font-size: 44px;
        line-height: 50px;
        margin: 0 auto;
    }

    #cta p {
        font-size: 20px;
        line-height: 28px;
    }
    #cta p br {
        display: none;
    }
    #cta a {
        white-space: nowrap;
    }

    #about .photos img:first-of-type {
        max-width: 560px;
    }
    #about .photos img:last-of-type {
        max-width: 320px;
        margin-top: -220px;
    }

    #about .content {
        padding-left: 110px;
    }
    #about .content h2 {
        font-size: 27px;
        line-height: 34px;
    }
    #about .content p {
        font-size: 17px;
        line-height: 28px;
    }

    #services .item p {
        margin-left: 35px;
    }

    #footer .logo {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center;
        margin-bottom: 35px;
    }

    #main .article .col-xl-8 {
        padding-right: 15px;
    }

    .page-header h1, .box-headline h1 {
        font-size: 31px;
    }

    .contact-form {
        padding-top: 40px;
    }
}

@media (max-width: 991px) {
    .section {
        padding-top: 50px;
        padding-bottom: 50px;
    }

    #header .logo img {
        max-height: 80px;
    }
    #header.sticky .logo img {
        max-height: 70px;
    }

    #header .contact {
        margin-left: 20px;
    }

    .navbar {
        margin-left: 20px;
    }

    .slider .slide h2 {
        max-width: 100%;
    }
    .slider .slick-prev {
        left: 20px !important;
    }
    .slider .slick-next {
        right: 20px !important;
    }
    .slider .slick-prev::before, 
    .slider .slick-next::before {
        font-size: 32px;
    }

    #cta {
        padding: 50px 0;
    }
    #cta p {
        font-size: 19px;
        line-height: 27px;
        text-align: center;
    }
    #cta .col-lg-5 {
        justify-content: center !important;
        margin-top: 25px;
    }

    #about .photos img:first-of-type {
        margin-left: 0;
    }
    #about .photos img:last-of-type {
        margin-right: 0;
    }
    #about .content {
        padding-left: 15px;
        padding-top: 25px;
    }

    #services h2::after {
        margin-bottom: 20px;
    }
    #services .item {
        margin-top: 15px;
    }
    #services .item img {
        width: 100%;
    }

    #footer .row:last-of-type {
        margin-top: 40px;
    }
    #footer .logo {
        margin-bottom: 10px;
    }
    #footer .info {
        flex: 0 0 100%;
        max-width: 100%;
        text-align: center !important;
        margin-top: 25px;
    }

    .item-page h1, .item-page h2, .item-page h3, .item-page h4, .item-page h5 {
        padding: 10px 0;
    }
    .item-page h1, .item-page h2 {
        font-size: 30px;
    }
    .item-page h3 {
        font-size: 25px;
    }
}

@media (max-width: 767px) {
    .section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #header .logo img {
        max-height: 70px;
    }
    #header.sticky .logo img {
        max-height: 60px;
    }

    #header .phone,
    #header .contact {
        display: none;
    }

    .slider .slide h2 {
        font-size: 40px;
        line-height: 44px;
    }

    #cta {
        padding: 40px 0;
    }
    #cta p {
        font-size: 18px;
        line-height: 26px;
    }
    #cta a {
        font-size: 16px;
        padding: 15px 30px 13px 30px;
    }

    #about .photos img:first-of-type {
        max-width: 90%;
    }
    #about .photos img:last-of-type {
        max-width: 250px;
        margin-top: -200px;
    }
    #about .content h3 {
        font-size: 17px;
    }
    #about .content h2 {
        font-size: 26px;
        line-height: 32px;
    }
    #about .content h2::after {
        margin: 15px 0;
    }
    #about .content p {
        font-size: 16px;
        line-height: 26px;
    }
    #about .content a {
        font-size: 16px;
        padding: 15px 30px 13px 30px;
        margin-top: 20px;
    }

    #services span {
        font-size: 17px;
    }
    #services h2 {
        font-size: 32px;
    }
    #services h2::after {
        margin-top: 15px;
        margin-bottom: 10px;
    }

    #footer .row:last-of-type {
        margin-top: 35px;
    }
    #footer .logo img {
        max-height: 80px;
    }
    #footer .copyright p {
        padding-top: 15px;
    }

    .page-header, .box-headline {
        margin-bottom: 25px;
    }
    .page-header h1, .box-headline h1 {
        font-size: 28px;
    }

    .item-page p, .item-page ul li, .item-page ol li {
        font-size: 16px;
        line-height: 26px;
    }
}

@media (max-width: 575px) {
    #header {
        padding-top: 20px;
        padding-bottom: 20px;
        padding-left: 0;
        padding-right: 0;
    }

    #header .logo img {
        max-height: 66px;
    }

    .navbar .nav {
        width: 260px;
    }
    .navbar .nav > li {
        margin: 4px 0;
    }
    .navbar .nav > li > a, .navbar .nav > li > span {
        font-size: 17px;
    }

    .slider .slide {
        height: 480px;
        padding-bottom: 100px;
    }
    .slider .slide p {
        font-size: 16px;
    }
    .slider .slide h2 {
        font-size: 34px;
        line-height: 36px;
    }

    .subpage .slider .slide {
        height: 300px;
    }

    #cta p {
        font-size: 17px;
        line-height: 25px;
    }
    #cta .col-lg-5 {
        flex-direction: column;
    }
    #cta a {
        width: 100%;
        font-size: 15px;
        text-align: center;
        padding: 13px 0;
    }
    #cta a:not(:first-of-type) {
        margin-left: 0;
        margin-top: 5px;
    }

    #about .photos img:last-of-type {
        max-width: 170px;
        margin-top: -130px;
    }
    #about .content h3 {
        font-size: 16px;
    }
    #about .content a {
        font-size: 15px;
        padding: 13px 30px;
        margin-top: 15px;
    }

    #services span {
        font-size: 16px;
    }
    #services .item p {
        font-size: 17px;
        line-height: 24px;
        padding: 25px 80px 30px 0;
        margin-left: 25px;
    }
    #services .item a > span {
        display: none;
    }

    .page-header, .box-headline {
        margin-bottom: 15px;
    }
    .page-header h1, .box-headline h1 {
        font-size: 25px;
        line-height: 30px;
    }

    .item-page h1, .item-page h2 {
        font-size: 26px;
        line-height: 32px;
    }
    .item-page h3 {
        font-size: 22px;
        line-height: 28px;
    }

    .item-page img {
        display: block;
        width: 100%;
        float: unset;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 15px;
    }

    .item-page .gallery a {
        margin-top: 15px;
    }
    .item-page .gallery img {
        margin-bottom: 0;
    }
}