/* === DESKTOP FIRST === */

/* xl <= Extra extra large (xxl) */
@media (max-width: 1399.98px) {

}

/* lg <= Extra large (xl) */
@media (max-width: 1199.98px) {
    body {
        font-size: 17px;
    }

    h1 {
        font-size: 44px;
    }

    .sect-heading, .form-title {
        font-size: 34px;
    }

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

    .footer__item-description, .description, .btn-all, .sect-description, .question__item-title, .footer__item-title {
        font-size: 21px;
    }

    .services__item-num {
        font-size: 30px;
        width: 74px;
        height: 74px;
    }

    .main__img-logo {
        width: 70%;
    }
}

/* md <= Large (lg) */
@media (max-width: 991.98px) {
    body {
        font-size: 16px;
    }

    h1 {
        font-size: 34px;
    }

    .sect-heading, .form-title, .why__block-title {
        font-size: 24px;
    }

    .footer__item-description, .footer__item-title, .question__item-title, .inp-all, .additionally__item-title, .description, .btn-all, .sect-description, .advantages__item-title {
        font-size: 18px;
    }

    .footer__item-description span {
        font-size: 16px;
    }

    .services__item-num {
        font-size: 26px;
        width: 70px;
        height: 70px;
    }

    .menu {
        position: fixed;
        top: 100px;
        left: 0;
        height: 100vh;
        width: 100%;
        z-index: 21;
        background-color: #EBF8FF;
        padding: 50px 40px;
        overflow-y: auto;
        transform: translateX(-100%);
        display: none;
    }

    .menu.is-block {
        display: block;
    }

    .menu.is-block {
        transition: transform .4s ease;
    }

    .menu.is-open {
        transform: translateX(0%);
    }

    .menu-ul {
        flex-wrap: wrap;
    }

    .menu-li {
        width: 100%;
        margin-bottom: 20px;
    }

    .menu-li:last-child {
        margin-bottom: 0;
    }

    .menu-a {
        font-size: 20px;
        text-transform: uppercase;
    }

    .bar-menu {
        height: 40px;
        width: 40px;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        position: relative;
        flex: 0 0 auto;
        margin-left: 20px;
        z-index: 22;
    }

    .bar-menu span {
        position: relative;
    }

    .bar-menu::before, .bar-menu::after, .bar-menu span {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 100%;
        height: 2px;
        background: var(--text);
        border-radius: 5px;
        transition: transform .4s ease;
    }

    .bar-menu::before {
        top: calc(50% - 6px);
    }

    .bar-menu::after {
        top: calc(50% + 6px);
    }

    .bar-menu.is-open span {
        opacity: 0;
    }

    .bar-menu.is-open::before {
        top: 50%;
        transform: translate(-50%, -50%) rotate(-45deg);
    }

    .bar-menu.is-open::after {
        top: 50%;
        transform: translate(-50%, -50%) rotate(45deg);
    }

    .header__phone{
        text-align: left;
    }

    .header-right {
        width: 100%;
        justify-content: space-between;
    }

    .header-right-block {
        display: flex;
        align-items: center;
    }

    .header {
        height: 100px;
    }

    .header-wrap {
        padding-top: 30px;
    }

    .btn-all {
        width: 240px;
    }

    .advantages {
        padding-bottom: 0;
    }

    .advantages__item {
        margin-bottom: 30px;
    }

    .services-line {
        display: none;
    }

    .services__item {
        display: flex;
        align-items: center;
        margin-bottom: 30px;
    }

    .services__item-num {
        margin-bottom: 0;
        margin-right: 20px;
        flex: 0 0 auto;
    }

    .additionally__item .observer {
        flex: 0 0 auto;
        margin-right: 20px;
    }

    .additionally__item {
        margin-bottom: 40px;
        display: flex;
        align-items: center;
    }

    .additionally__item-title {
        margin-top: 0;
    }

    .why__block {
        margin-top: 30px;
    }

    .question__item-title {
        margin-bottom: 20px;
    }

    .footer {
        padding-bottom: 60px;
    }

    .footer__item {
        margin-bottom: 30px;
    }
}

/* sm <= Medium (md) */
@media (max-width: 767.98px) {
    .main-wrap {
        flex-wrap: wrap;
    }

    .main__img {
        margin-left: 140px;
    }

    .why__block-title {
        display: none;
    }

    .question-block {
        column-count: 1;
    }

    .question__item {
        width: 100%;
    }

    .footer-img {
        right: -20px;
    }
}

/* xs <= Small (sm) */
@media (max-width: 575.98px) {
    .menu-a {
        font-size: 18px;
    }

    .footer__item-description, .footer__item-title, .question__item-title, .inp-all, .additionally__item-title, .description, .btn-all, .sect-description, .advantages__item-title {
        font-size: 16px;
    }

    .sect-heading, .form-title, .why__block-title {
        font-size: 20px;
    }

    .menu {
        padding: 30px 10px;
    }

    .main__img-person {
        left: -100px;
    }

    .main__img-person img {
        height: 100px;
    }

    .btn-all {
        width: 200px;
        height: 60px;
    }

    .form {
        padding: 20px 10px;
        border-radius: 10px;
    }

    .form .btn-all {
        width: 100%;
    }

    .footer-img {
        display: none;
    }

    .footer__item-description span {
        font-size: 14px;
    }
}


/* === MOBILE FIRST === */

/* Custom (xs) */
@media (min-width: 0) {

}

/* Small (sm) */
@media (min-width: 576px) {

}

/* Medium (md) */
@media (min-width: 768px) {

}

/* Large (lg) */
@media (min-width: 992px) {

}

/* Extra large (xl) */
@media (min-width: 1199.98px) {
    .container {
        max-width: 1200px;
    }
}

/* Extra extra large (xxl) */
@media (min-width: 1400px) {
}
