@media screen and (max-width:1300px){
    :root {
        --font-size-menu:14px;
        --font-big-title:80px;
        --font-medium-title:54px;
        --font-smaller-medium-title:51px;
        --font-small-title:26px;
        --font-medium-text:18px;
    }
}
@media screen and (min-width:1024px){
    .file_button:hover{
        transition: 400ms linear;
        background-color: #F9D365;
    }
    .file_button:hover span{
        transition: 400ms linear;
        color: #000000;
    }
    .close_popup:hover{
        transition: 400ms linear;
        transform: rotate(180deg);
    }
    .button_style:hover{
        color: #ffffff;
        cursor: pointer;
        transition: 400ms linear;
        background:  rgba(22, 125, 118, 1);
    }
    .menu_item:hover:before{
        transition: 400ms linear;
        left: 100%;
    }
}
@media screen and (max-width:1024px){
    :root {
        --font-big-title: 70px;
        --font-medium-title: 36px;
        --font-smaller-medium-title: 36px;
        --font-small-title: 18px;
        --font-medium-text: 16px;
    }
    .popup_text_panel{
        width: 90%;
        height: 90vh;
    }
    .big_description{
        font-size: 26px;
    }
    .biggest_description{
        font-size: 30px;
    }
    .popup_scroll{
        padding:0 30px;
        top: 100px;
        bottom: 80px;
    }
    .padding_class {
        padding-left: 30px;
        padding-right:30px;
        box-sizing: border-box;
    }
    .advantages_block {
        padding: 100px 10px;
    }
    .benefit_block_title {
        top: 57px;
    }
    .list_text{
        margin-right: 10px;
    }
    .flex{
        justify-content: space-between;
    }
    .bottom_margin {
        padding-bottom: 116px;
    }
    .image{
        top: -80px;
    }
    .panel_popup {
        width: 500px;
        height: 300px;
        padding:20px;
    }
}

@media screen and (max-width:768px){
    :root {
        --font-big-title: 60px;
        --font-medium-title: 48px;
        --font-smaller-medium-title: 36px;
        --font-small-title: 24px;
        --font-medium-text: 20px;
    }
    .flex {
        flex-direction: column;
        align-items: flex-start;
    }
    .list_text{
        margin-bottom: 36px;
    }
    .block .medium_title{
        text-align: center;
    }
    .block {
        max-width: 100%;
    }
    .image {
        top: -116px;
        bottom: auto;
        width: 400px;
        /*right: -89px;*/
        overflow: hidden;
    }
    .image img {
        max-height: 100%;
        width: 100%;
        position: relative;
        left: 89px;
    }
    .advantages_block {
        padding: 54px 12px;
        border-radius: 32px;
    }
    .line_image img{
        display: none;
    }
    .line_image,.line_image:before{
        width: 74px;
        height: 63px;
    }
    .line_image:before{
        top: 0;
        right: 0;
        margin:0;
        transform: none;
    }
    .benefit_item {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        width: 100% !important;
        margin: 0 !important;
        padding-right: 0;
        max-width: 100%;
        text-align: left !important;
        margin-bottom: 77px!important;
    }
    .benefit_block_title {
        position: relative;
        top: 0;
        left: 0;
        transform: translateX(0);
        margin-left: 0;
        text-align: center;
        margin-bottom: 32px;
    }
    .line {
        padding-right: 0;
    }
    .benefit_item:nth-child(2):before {
        left: 0;
        right: auto;
        transform: rotate(0deg);
    }
    .smaller_medium{
        font-size: 61px;
    }
    .small_title.white_color{
        font-size: 32px;
    }
    .contact_image{
        left: auto;
        right: -10px;
        margin:0;
        transform: none;
    }
    .text_block{
        padding-right: 0;
    }
    .text {
        justify-content: center;
        align-items: center;
        width: 100%;
    }
    .text .white_color{
        text-align: center;
        margin-left: auto;
        margin-right: auto;
        white-space: break-spaces;
    }
    .big_description{
        font-size: 20px;
    }
    .biggest_description{
        font-size: 24px;
    }
    .popup_scroll{
        padding:0 13px;
        top: 62px;
        bottom: 40px;
    }
    .close_popup{
        width: 22px;
        height: 22px;
        right: 20px;
        top: 20px;
    }
    .biggest_description{
        margin-top: 46px;
    }
    .popup_text_panel{
        border-radius: 21px;
    }
}

@media screen and (max-width:500px){
    :root {
        --font-big-title: 48px;

        --font-medium-title: 48px;
        --font-smaller-medium-title: 36px;
        --font-small-title: 24px;
        --font-medium-text: 20px;
    }
    .logo img{
        height: 60px;
    }
    .benefit_title {
        font-size: 32px;
    }
    .big_title br{
        display: none;
    }
    .flex_menu{
        justify-content: space-between;
    }
    .menu_item{
        margin-left: 0;
    }
    .button_style{
        width: 100%;
    }
    .image {
        width: 360px;
    }
    .contact_block{
        padding-bottom: 257px;
    }
    .small_title.white_color br{
        display: none;
    }
    .header{
        height: 94px;
    }
    .top_padding {
        padding-top: 110px;
    }
    .panel_popup .medium_title{
        font-size: 30px;
    }
    .panel_popup .description{
        font-size: 17px;
    }
    .panel_popup {
        width: 350px;
    }
    .flex_button{
        width: 100%;
    }
    .spec_text{
        left: 0;
        top: 56px;
        margin-top: 12px;
    }
    .spec_text br{
        display: none;
    }
    .file_button{
        margin-bottom: 30px;
    }
    .telegram_button{
        font-size: 16px;
        padding-left: 20px;
        padding-right: 20px;
    }
    .button_style img {
        width: 30px;
        margin-left: 10px;
    }
}
@media screen and (max-width:375px){
    :root {
        --font-big-title: 40px;
        --font-medium-title: 35px;
        --font-small-title: 20px;
        --font-medium-text: 17px;
    }

    .benefit_title {
        font-size: 28px;
    }
    .smaller_medium {
        font-size: 48px;
    }
    .small_title.white_color {
        font-size: 24px;
    }
    .center_block{
        padding-left: 10px;
        padding-right: 10px;
    }
    .padding_class {
        padding-left: 15px;
        padding-right: 15px;
    }
    .benefit_title {
        font-size: 24px;
    }
    .bottom_margin {
        padding-bottom: 60px;
    }
    .image {
        width: 260px;
    }
    .benefit_item{
        margin-bottom: 30px!important;
    }
    .smaller_medium {
        font-size: 38px;
    }
    .small_title.white_color {
        font-size: 20px;
    }
    .panel_popup .medium_title{
        font-size: 28px;
    }
    .panel_popup {
        width: 300px;
    }
    .spec_text {
        font-size: 14px;
    }

    .big_description {
        font-size: 17px;
    }
    .telegram_button {
        font-size: 13px;
    }
}
