/*
This file describes styles that are 1200px width and smaller
 */
@media  all and (max-width: 1200px) {
    :root{
        --section-distance: 60px
    }
    h1{
        font-size: 4.4rem
    }
    .grid-2{
        gap: var(--size-2)
    }
    .grid-3:not(.how-we-work__content) {
        grid-template-columns: 1fr 1fr
    }
    .fin-consult__items.grid-3 >div:last-child, .services__items.grid-3 >div:last-child{
        grid-column: 1 / 3;
        width: 50%;
        margin: 0 auto
    }
    
    /* header mobile styles */
   .header.only-mobile{
       border-bottom: 0
   }
    .header .logo img {
        height: 45px
    }


    
    .header.only-mobile .container{
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: var(--size-1)
    }

    .menu-btn-open {
        width: 35px;
        height: 25px;
        display: flex;
        flex-direction: column;
        justify-content: space-between
    }
    .menu-btn-open img{
        width: 35px
    }
    
    .menu-btn-close {
        width: 30px;
        position: absolute;
        top: 20px;
        right: 15px
    }


    .menu-btns {
        z-index: 3
    }

    .menu-btns.open .menu-btn-open {
        display: flex
    }

    .menu-btns.open .menu-btn-close {
        display: none
    }

    .menu-btns:not(.open) .menu-btn-open {
        display: none
    }

    .menu-btns:not(.open) .menu-btn-close {
        display: block
    }

    .header-mobile-wrap {
        position: fixed;
        top: 0;
        left: 0;
        background-color: var(--dark-bg);
        width: calc(100vw - 60px);
        height: 100vh;
        z-index: 2;
        padding: 20px;
        transition: 0.3s
    }

    .header-mobile-wrap .main-menu {
        padding-top: 30px
    }

    .header-mobile-wrap .main-menu ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px
    }

    .header-mobile-wrap .main-menu ul li a {
        line-height: 1;
        display: flex;
        font-size: 1.6rem
    }
    .header-mobile-wrap address{
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 30px
    }
   
    .header.menu-translate .header-mobile-wrap{
        transform: translateX(-100%);
        transition: 0.3s
    }
    .header.menu-translate .overlay{
        display: none
    }
    .header:not(.menu-translate) .overlay{
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        background: #20202047;
        backdrop-filter: blur(5px);
        width: 100vw;
        height: 100vh;
        transition: 0.1s
    }
    .header-mobile-wrap .main-menu nav >ul >li{
        flex-direction: column;
        gap: 20px
    }

    /* end of header mobile styles */

    .only-desktop{
        display: none
    }
    .main-block .text{
        justify-content: flex-end;
        padding-bottom: var(--size-2)
    }
    .main-block .content {
        grid-template-columns: 1fr
    }
    .main-block{
        background-position: center top;
        background-size: cover
    }
    .main-block:before{
        content: '';
        width: 100%;
        height: 100%;
        background-color: #00000061;
        position: absolute;
        top: 0;
        left: 0
    }

    .main-block .text{
        z-index: 1
    }
    .main-block .media{
        display: none
    }
    .header .social{
        z-index: 1;
        margin-left: auto
    }
    .header .logo{
        z-index: 1
    }
    .header.only-mobile .address-item b, .header.only-mobile .address-item a{
        color: var(--white)
    }
    .header.only-mobile address{
        gap: 15px
    }
    .main-block .adv li{
        color: var(--white)
    }
    #solve .fin-consult__items{
        position: relative;
        padding-bottom: 80px
    }
    #solve .fin-consult__item:nth-child(2) .btn{
        position: absolute;
        bottom: 0
    }



}