/*Medium devices (tablets, from 768 to 992px)*/
@media (max-width: 991.98px) {
    h1, .h1 {
        font-size: 42px;
        line-height: 53px;
    }
    h2 {
        font-weight: 700;
        font-size: 30px;
        line-height: 38px;
        margin-bottom: 32px;
    }
    h3, .title-3 {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 12px;
    }
    .main-page-slider .first-screen__center {
        padding-top: 60px;
        padding-bottom: 560px;
    }
    .first-screen .halves {
        grid-template-columns: 1fr;
    }
    .first-screen__round {
        right: calc(50% - 280px);
    }
    .first-screen__person {
        width: 580px;
        right: calc(50% - 280px);
    }


    .footer-bottom {
        font-size: 12px;
        line-height: 16px;
    }
    .copyright {
        padding-left: 15px;
    }




    .directions {
        grid-template-columns: 1fr;
    }
    .direction__text {
        max-width: 350px;
    }
    .direction__round {
        right: 15px;
    }
    .direction__person {
        width: 260px;
        background-position: center bottom;
    }




    .form-and-stat {
        grid-template-columns: 1fr;
    }



    .facts {
        grid-template-columns: 1fr 1fr;
    }



    .header__phone {
        margin-right: auto;
    }





}