@media screen and (max-width: 1400px){
    .header{
        min-height: 45px;
    }
    .mobile-header{
        display: none;
    }
    
    .home-middle-left-animation-block {
        border-radius: 15px;
    }
    .phrase {
        padding-left: 25px;
        padding-right: 25px;
    }

    .cases-card {
        width: 41vw;
    }
    .cases-card-image {
        width: 36vw;
    }
    
    
}

@media screen and (max-width: 576px){/*992*/
    .home-background {
        top: 51vw;
    }
    .home-background-block {
        width: 552vw;
        height: 197vw;
        left: -401vw;
    }

    .home-mobile-background {
        position: absolute;
        top: 178vw;
        width: 100%;
        overflow: hidden;
        z-index: -10;
        display: block;
      }
      
      .home-mobile-background-block {
        background-image: url('/background-wave/home-background-wave.svg');
        background-size: contain;
        background-repeat: no-repeat;
        width: 552vw;
        height: 197vw;
        left: -301vw;
        position: relative;
        display: block;
      }
        


    .header{
        display: none;
    }
    .mobile-header {
        width: -webkit-fill-available;
        display: block;
        backdrop-filter: blur(4px);
        background-color: #ffffff33;
        position: fixed;
        z-index: 100;
    }
    .mobile-header-button-block{
        width: 90vw;
        height: 10vh;
        margin-left: auto;
        margin-right: auto;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    .mobile-header-menu-button {
        width: 10vw;
        aspect-ratio: 1;
        background-image: url('/objects/menu.svg');
        background-repeat: no-repeat;
        background-size: cover;
        background-position: center;
    }
    .mobile-header-start-button {
        font-family: 'Montserrat ExtraBold';
        font-size: 3vw;
        padding-left: 8vw;
        padding-right: 8vw;
        padding-top: 4vw;
        padding-bottom: 4vw;
        border: solid;
        border-width: 1px;
        border-radius: 20px;
    }

    .home-middle-block {
        flex-direction: column;
        width: -webkit-fill-available;
        margin-top:16vw;
    }
    .home-middle-left-animation-block {
        width: -webkit-fill-available;
        overflow: hidden;
        backdrop-filter: unset;
        background-color: unset;
        height: 168vw;
        align-items: unset;
    }
    .phrase {
        padding: unset;
        width: 267vw;
    }
    #phrase-0 {
        margin-left: 1vw;
    }
    #phrase-1 {
        margin-left: -16vw;
    }
    #phrase-2 {
        margin-left: -24vw;
    }
    #phrase-3 {
        margin-left: -99vw;
    }
    #phrase-4 {
        margin-left: -167vw;
    }




    .word{
        height:14.2vw;
    }


    .word-0 {
        width: 33vw;
    }
    
    .word-1 {
        width: 43.1vw;
    }
    
    .word-2 {
        width: 21.3vw;
    }
    
    .word-3 {
        width: 90.6vw;
    }
    
    .word-4 {
        width: 64.7vw;
    }

    .home-middle-right-offer-block {
        margin-left: auto;
        margin-right: auto;
        margin-top: 3vw;
        width: 82vw;
        /*height: 68vw;*/
        height: fit-content;
        border-radius: 20px;
        backdrop-filter: blur(4px);
        box-shadow: 5px 5px 26px 0px rgb(0 0 0 / 22%);
        background-color: rgb(241 241 241 / 48%);
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .main-title {
        margin: unset;
        margin-top: 8.7vw;
        width: 67vw;
        font-family: Montserrat SemiBold;
        font-size: 5.2vw;
    }
    .main-subtitle {
        width: 67vw;
        margin-top: 4.2vw;
        font-size: 3.5vw;
    }
    .main-title-button {
        margin-left: auto;
        margin-right: auto;
        margin-top: 5vw;
        margin-bottom: 5vw;
        padding: 4vw 11vw;
        font-size: 4.4vw;
    }
    .home-next-block {
        display: none;
    }




    .cases-background {
        top: 266vw;
    }
    .cases-background-block {
        width: 657vw;
        height: 364vw;
        left: -294vw;
    }

    .cases-mobile-background {
        position: absolute;
        top: 332vw;
        width: 100%;
        overflow: hidden;
        z-index: -10;
      }
      
      .cases-mobile-background-block {
        background-image: url('/background-wave/cases-background-wave.svg');
        background-size: contain;
        background-repeat: no-repeat;
        width: 559vw;
        height: 234vw;
        left: -42vw;
        position: relative;
      }




    .cases-title {
        aspect-ratio: 1 / .07;
        background-image: url('/titles/cases-mobile-title.svg');
        background-position: center;
        background-repeat: repeat-x;
        background-size: auto 100%;
        width: 100vw;
        height: 13vw;
        margin-top: 11vw;
        position: relative;
        overflow: hidden;
    }
    
    /* Анимация движения */
    @keyframes moveLeft {
        0% {
            background-position: 0 0;
        }
        50% {
            background-position: 1000% 0; /* Сдвигаем на ширину изображения */
        }
        100% {
            background-position: 0 0; /* Сдвигаем на ширину изображения */
        }
    }
    
    /* Применяем анимацию */
    .cases-title {
        animation: moveLeft 160s linear infinite; /* 20s — длительность, можно изменить */
    }

    .cases-cards-block {
        flex-wrap: nowrap;
        width: max-content;
        margin-left: auto;
        margin-right: auto;
        flex-direction: column;
        align-items: center;
        justify-content: normal;
        margin-top: 6vw;
    }
    .cases-card {
        width: 90vw;
    }
    .cases-card-image {
        width: 90vw;
    }
    .cases-card-name {
        font-size: 3.3vw;
    }

    .about-background {
        top: 510vw;
        height: 100vw;
    }
    .about-background-block {
        width: 860vw;
        height: 410vw;
        left: -210vw;
    }


    .about-title {
        aspect-ratio: 1 / 0.07;
        background-image: url('/titles/about-mobile-title.svg');
        background-position: 0 0;
        background-repeat: repeat-x;  
        background-size: auto 100%; 
        width: 100vw;               
        height: 9vw;               
        margin-top: 8vw;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;           
        animation: moveRight 160s linear infinite; 
    }
    
    @keyframes moveRight {
        0% {
            background-position: 0 0;
        }
        50% {
            background-position: -1000% 0; /* Сдвигаем на ширину изображения */
        }
        100% {
            background-position: 0 0; /* Сдвигаем на ширину изображения */
        }
    }
    
    

    .about-main-block {
        display: none;
    }
    .about-text {
        display: none;
    }
    .about-mobile-text {
        width: 90vw;
        margin-top: 10.4vw;
        margin-left: auto;
        margin-right: auto;
        font-family: Unbounded Medium;
        font-size: 3.9vw;
        display: block;
    }
    .about-main-mobile-block {
        display: flex;
        width: 90vw;
        margin-left: auto;
        margin-right: auto;
        height: 61vw;
        flex-direction: column;
        justify-content: space-evenly;
        align-items: center;
    }
    .about-right-block-item {
        font-family: 'Unbounded Medium';
        font-size: 3.9vw;
        text-align: start;
        width: -webkit-fill-available;
        border: solid;
        border-width: 1px;
        border-radius: 14px;
        padding: 1.9vw 3.1vw;
    }


    .contacts-background-block {
        width: 652vw;
        height: 250vw;
        left: -220vw;
    }
    .contacts-background {
        height: 154vw; 
        top: 605vw;
    }
    .contacts-content-block {
        flex-direction: column;
        width: 90vw;
    }
    .contacts-title {
        aspect-ratio: 1 / .706;
        background-image: url('/titles/contacts-mobile-title.svg');
        width: 60vw;
        margin-top: 4vw;
        margin-right: auto;
    }
    .contacts-order-block {
        width: 90vw;
        margin-left: auto;
        margin-right: auto;
        margin-top: unset;
        box-shadow: none;
        background-color: unset;
        backdrop-filter: none;
    }
    .contact-order-text-block {
        display: none;
    }
    .contact-mobile-order-text-block {
        display: block;
        margin-top: 2.1vw;
        margin-left: auto;
        margin-right: auto;
        font-family: Unbounded Medium;
        font-size: 5.5vw;
    }
    .contact-order-button {
        margin-left: auto;
        margin-right: auto;
        margin-top: 10vw;
        font-size: 4.4vw;
        padding: 4.7vw 14vw;
    }
    .contact-social-network-text-block {
        text-transform: lowercase;
        font-size: 5.5vw;
        width: 62vw;
        margin-top: 10vw;
    }

    .contact-social-network-button-block {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        width: 80vw;
        margin-left: auto;
        margin-right: auto;
        margin-top: 14vw;
    }
    .social-network-button {
        width: 13vw;
    }
    .social-network-divide-line {
        height: 12vw;
    }
    #social-network-extra-divide-line {
        display: none;
    }
    a.social-network-email-button {
        font-size: 5.1vw;
        margin-top: 4vw;
    }

    footer {
        flex-direction: column;
        align-items: center;
        font-size: 3.9vw;
        margin-top: 13vw;
        padding-bottom: 6vw;
    }
    a.footer-privacy-policy {
        margin-top: 3vw;
    }



    /*========START========*/
    .start-title {
        display: none;
    }
    .start-content{
        height: unset;
    }

    .start-content-block {
        flex-direction: column;
        height: 72vh;
    }

    .start-form-block {
        margin-left: unset;
        width: 79vw;
        margin-top: 20vh;
        margin-bottom: auto;
    }
    .order-title {
        margin-top: 4vw;
        font-size: 5vw;
    }

    .error-message {
        font-size: 2.8vw;
        bottom: -3.8vw;
      }

    .form-input-block {
        height: 40vw;
        margin-top: 3vw;
    }

    .input-field {
        width: 61vw;
        font-size: 4vw;
    }

    .input-field:focus-visible {
        font-size: 4vw;
    }
      
    .input-field::placeholder {
        font-size: 3vw;
    }
    button.submit-button {
        padding: 2vw 8vw;
        font-size: 5vw;
        margin-top: 5vw;
    }
    .checkbox-group {
        width: 44vw;
        margin-top: 3vw;
    }
    .checkbox-wrapper {
        width: inherit;
    }
    input#agreement {
        width: 4vw;
        height: 4vw;
    }
    .checkbox-input:checked:after {
        width: 2vw;
        height: 2.6vw;
        top: -0.3vw;
        left: 0.5vw;
    }
    .checkbox-label {
        font-size: 2vw;
        width: 30vw;
    }
    .error-submit {
        margin-top: 4.9vw;
        padding: 2.1vw;
        font-size: 3.2vw;
    }

    .done-image {
        width: 28vw;
        height: 18vw;
        margin-top: 21vw;
    }
    .order-success {
        margin-top: 11vw;
        font-size: 6vw;
    }
    .order-success-subtitle {
        font-size: 3vw;
        margin-top: 5vw;
    }
    .order-return-button {
        font-size: 3vw;
        padding: 3vw 5vw;
        margin-top: 7vw;
    }
    .start-background {
        top: 5vw;
        height: 85vh;
    }
    .start-background-block {
        width: 675vw;
        height: 517vw;
        left: -449vw;
    }


    /*========CASES========*/
    .case-page-content {
        display: flex;
        flex-direction: column;
    }
    .case-page-block {
        margin-top: 21vw;
        width: 90vw;
    }
    .case-title {
        font-size: 4vw;
        margin-top: 6vw;
        margin-bottom: unset;
    }
    .case-page-version {
        font-size: 3vw;
        padding: 0.9vw 3vw;
        position: relative;
        margin-top: 3vw;
        top: unset;
        right: unset;
    }
    .case-description {
        font-size: 3vw;
        width: 80vw;
        margin-top: 3vw;
    }
    .case-image {
        width: 85vw!important;
    }
    .case-page-author {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 3vw;
        font-size: 3vw;
        
    }
    .extra-background {
        display: none;
    }
    .case-page-background {
        height: 64vh;
        overflow: hidden;
        width: -webkit-fill-available;
        position: absolute;
    }
    
    
}