@media (min-width: 2300px){
    .contacts_left-block h1 {
        padding-bottom: 6vw;
    }
}


@media (max-width: 1450px) {
    .services_cards {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    #card4 {
        display: none;
    }

    #card3 {
        margin-right: 0;
    }

    /*.contacts_left-block h1 {*/
    /*    padding-bottom: 100vw;*/
    /*}*/
}

@media (max-width: 1400px) {
    .header_logo-phone {
        overflow-x: hidden;
    }

    .about {
        padding: 0;
    }



    .services_cards {
        grid-template-columns: repeat(3, 1fr);
    }

    #card4,
    #card3 {
        margin-right: 0;
    }

    .principles_content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr 1fr;
        padding: 0;
    }

    .principles_card {
        margin: 0.5rem;
    }

    .faq {
        padding: 0;
        margin: 0;
    }

    .faq_inner {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 0;
        padding: 0;
        gap: 3rem;
        width: 100%;
    }

    .faq_questions {
        padding: 0 15rem;
    }

    .faq_title-questions h1 {
        text-align: center;
    }

    .contacts_inner {
        background-size: 45rem;
    }

    /*.contacts .contacts_content {*/
    /*    display: flex;*/
    /*    flex-direction: column;*/
    /*    align-items: center;*/
    /*    padding: 0;*/
    /*}*/

    .contacts_element p {
        padding: 0;
        margin: 0;
    }

    .contacts_left-block h1 {
        padding-bottom: 9vw;
    }

    .contacts_left-block{
        padding-bottom: 0;
    }

    .contacts_left-block img{
        padding-left: 0;
    }
    /*.contacts_left-block p {*/
    /*    margin-bottom: 4vw;*/
    /*}*/
}

@media (max-width: 1200px) {
    .services_cards {
        grid-template-columns: repeat(2, 1fr);
    }

    #card3 {
        display: none;
    }

    #card2 {
        margin-right: 0;
    }

    .contacts_left-block h1{
        padding-bottom: 10vw;
    }

    footer h1 {
        text-align: center;
    }

    /*footer h2 {*/
    /*    text-align: center;*/
    /*}*/
    footer{
        display: flex;
        flex-direction: column-reverse;
        background: #BBB7C4;
        padding: 0;
    }

    .footer_logo-name img {
        margin: 0;
    }

    .footer_logo-name {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
        background: var(--color-accent2);
        padding-top: 2rem;
        padding-bottom: 2rem;
        margin-top: 3rem;
    }


    .footer_quality-control>p{
        color: var(--color-text);
    }

    .footer_quality-control{
        gap: 0.5rem;
    }

    .footer_social-media .qr{
        margin-left: 0.5rem;
    }
}

@media (max-width: 1100px) {
    header{
        padding-left: 50px;
        padding-right: 50px;
    }

    .military {
        padding-top: 3rem;
    }

    .military_inner {
        display: flex;
        flex-direction: column;
    }

    .military_content-wrapper {
        display: flex;
        flex-direction: column;
        gap: clamp(1rem, 1vh, 1rem);
    }

    .military_content {
        align-items: center;
    }

    .military_content-text h1{
        text-align: center;
    }

    /*footer {*/
    /*    display: flex;*/
    /*    flex-direction: column-reverse;*/
    /*    align-items: center;*/
    /*    padding: 2rem;*/
    /*    gap: 2rem;*/
    /*}*/
    .contacts_social-media{
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 1rem;
    }

    .contacts_social-media img{
        width: 4em;
    }


}

@media (max-width: 900px) {
    .header_logo-phone p{
        display: none;
    }

    .hero {
        padding-top: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
    }

    .hero_inner {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }

    .about_content {
        padding: 0;
        text-align: center;
        align-items: center;
    }

    .about_inner {
        display: flex;
        flex-direction: column-reverse;
        justify-content: center;
    }

    .services {
        padding: 0;
    }

    .military {
        padding-top: 0;
    }

    .military_content-wrapper {
        padding-left: 60px;
        padding-right: 60px;
    }

    .military_content h1 {
        text-align: center;
    }

    .military_content-text {
        text-align: center;
    }

    .military_cards {
        padding: 0;
        margin: 0;
    }

    .principles_card {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .principles_card p {
        padding: 0;
        text-align: center;
    }

    .faq_questions {
        padding-left: 5rem;
        padding-right: 5rem;
    }

    .faq_inner {
        gap: 1rem;
    }

    .faq h1 {
        margin-bottom: 0.1rem;
    }

    /*.contacts_inner {*/
    /*    background: url("../src/russiaMap.svg");*/
    /*    background-repeat: no-repeat;*/
    /*    background-size: contain;*/
    /*    background-size: 50%;*/
    /*}*/


    .contacts_right-block{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .contacts_right-block h1{
        text-align: center;
    }

    .contacts_left-block{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 80%;
    }

    .contacts {
        height: 100vh;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .contacts .contacts_content {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        padding: 0;
    }

}

@media (max-width: 800px){
    .military_free-consult{
        padding-left: 50px;
        padding-right: 50px;
    }

    .contacts_left-block p{
        width: 100%;
    }
}

@media (min-width: 801px){
    .contacts_left-block p{
        width: 50%;
    }
}

@media (max-width: 600px) {
    .header_nav{
        display: none;
    }

    .burger-menu{
        display: block;
    }

    .burger-menu img{
        display: block;
        width: 3rem;
    }

    header{
        display: flex;
        flex-direction: row-reverse;
        padding-left: 2rem;
        padding-right: 2rem;
    }

    .hero{
        padding-left: 50px;
    }

    .services_cards {
        grid-template-columns: 1fr;
    }

    #card2 {
        display: none;
    }

    #card1 {
        margin-right: 0;
    }

}

@media (max-width: 500px) {
    .hero {
        padding-left: 0;
    }

    .hero_title {
        padding-right: 20px;
    }

    .hero_title h1 {
        text-align: right;
    }

    .hero_block1 {
        border-radius: 0 20px 20px 0;
    }

    .hero_block1-content {
        align-items: start;
    }

    .hero_block2 {
        margin-left: 20px;
    }


    .services {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .services_inner {
        padding: 0;
        margin: 0;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .military_content-wrapper {
        padding-left: 30px;
        padding-right: 30px;
    }

    .military_free-consult {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 0 0.4rem;
    }

    .principles {
        padding: 0 1rem;
        margin: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .principles_header{
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

    .principles_header h1{
        /*width: 100%;*/
        text-align: center;
    }

    /*.principles_header span{*/
    /*    width: 100%;*/
    /*    text-align: center;*/
    /*}*/


    .principles_inner {
        width: 100%;
        margin: 0;
    }

    .principles_content {
        display: flex;
        flex-direction: column;
        justify-content: center;
        height: 100%;
        padding: 0;
        padding-top: 1.5rem;
    }

    .faq_questions {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .contacts_left-block{
        width: 100%;
    }
}


@media (max-width: 400px){

    .about_image img {
        width: 100vw;
    }
}



@media (min-height: 800px) and (min-width: 600px) {
    .principles_content {
        max-height: 25rem;
    }
}


@media (max-height: 600px) {

    .body{
        height: max-content;
    }

    .container {
        height: max-content;
        overflow-y: visible;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    header{
        height: max-content;
        overflow-y: visible;
    }

    .hero{
        height: max-content;
        overflow-y: visible;
        padding-top: 5rem;
        padding-bottom: 5rem;
    }

    .military_free-consult{
        height: max-content;
        overflow-y: visible;
    }

    .container.military_inner{
        padding-bottom: 1rem;
    }



    .military_inner {
        height: max-content;
        overflow-y: visible;
    }

    .contacts_inner {
        height: max-content;
        overflow-y: visible;
    }

    footer{
        height: max-content;
        overflow-y: visible;
    }

    body.prevent-compress {
        overflow: visible;
    }

    body.prevent-compress .container,
    body.prevent-compress section {
        min-height: 100vh;
        overflow-y: auto;
    }
}

@media (max-height: 700px) and (max-width: 900px){
    footer{
        padding-top: 2rem;
    }

    .container.faq_inner{
        padding-bottom: 2rem;
    }
}

@media (max-height: 600px) and (max-width: 900px){
    footer{
        padding-top: 5rem;
    }
    .container.faq_inner{
        padding-bottom: 5rem;
    }
}

@media (max-height: 500px) and (max-width: 900px){
    footer{
        padding-top: 10rem;
    }
    .container.faq_inner{
        padding-bottom: 10rem;
    }
}

@media (max-height: 300px) and (max-width: 900px){
    footer{
        padding-top: 15rem;
    }
    .container.faq_inner{
        padding-bottom: 18rem;
    }
}

@media (min-height: 1000px) and (max-width: 1100px) {
    .container {
        height: 70vh;
    }

    .military_inner{
        height: 70vh;
    }

    .military_free-consult{
        height: 10vh;
    }

    .contacts_inner{
        height: 70vh;
    }
}

@media (max-width: 320px){
    .container {
        min-height: 100%;
    }

    .military_inner {
        height: 100%;
    }

    .contacts_inner {
        height: 100%;
    }

    footer{
        height: fit-content;
    }

    .military_cards{
        display: flex;
        flex-direction: column;
    }

    .hero h1{
        font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .services_cards-section>img{
        width: 1rem;
    }

    .services_inner h1{
        font-size: clamp(0.8rem, 1vw, 1.1rem);
    }

    .military_inner h1{
        font-size: clamp(0.8rem, 1vw, 1.1rem);
    }

    .faq_photo img{
        width: 100%;
    }

    .footer_social-media{
        display: flex;
        flex-direction: column;
    }

    .footer_social-media a, p{
        padding: 0;
        margin: 0;
    }

    .footer_social-media img{
        padding: 0;
        margin: 0;
    }
}