@media screen and (max-width: 1600px) {
    .lesson {
        margin: 20px;
    }
}
@media screen and (max-width: 1410px) {
    #AllContent {
        width: 85%;
    }
}
@media screen and (max-width: 1247px) {
    #AllContent {
        width: 90%;
    }
}
@media screen and (max-width: 1165px) {
    #AllContent {
        width: 85%;
    }
    #lessons {
        justify-content: center;
    }
    .lesson {
        width: 70%;
        align-items: center;
    }
    #info_text, #target_text {
        font-size: 16px;
    }
    #ListTasks p , #text_tasks{
        font-size: 14px;
    }
}
@media screen and (max-width: 850px) {
    #anotherTascs {
        flex-direction: column;
        align-items: center;
    }
    #tasks {
        width: 80%;
    }
    #TwoTasks {
        width: 80%;
    }
    #TwoTasks div {
        width: 100%;
    }
    #firstText {
        font-size: 40px;
    }
    #main_image {
        width: 347px;
        height: 425px;
    }
}
@media screen and (max-width: 740px) {
    #imageDiv {
        width: 100px;
        height: 100px;
    }
    #text {
        font-size: 14px;
    }
    #numberYear {
        font-size: 90px;
    }
    #year {
        font-size: 16px;
    }
    .lesson {
        height: 300px;
    }
    #main_image {
        float: none;
        margin: 0 0 15px 0;
    }
    #info_resourse div{
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    #tasks {
        width: 100%;
    }
    #TwoTasks {
        width: 100%;
    }
    #firstText {
        font-size: 32px;
    }
}
@media screen and (max-width: 550px) {
    .lesson {
        width: 100%;
        margin: 7px 0 7px 0;
    }
    #AllContent {
        width: 92%;
    }
    #main_image {
        width: 300px;
        height: 360px;
    }
    #info_text, #target_text {
        font-size: 14px;
    }
    #ListTasks p , #text_tasks, .ListTasks p{
        font-size: 12px;
    }
    #anotherTascs {
        margin-top: 20px;
    }
    #title_tasks {
        font-size: 15px;
    }
}
@media screen and (max-width: 408px) {
    #text {
        font-size: 12px;
        padding-left: 10px;
    }
    #imageDiv {
        width: 70px;
        height: 70px;
    }
    #numberYear {
        font-size: 70px;
    }
    #year {
        font-size: 13px;
    }
    #main_image {
        width: 285px;
        height: 342px;
    }
    #info_text, #target_text {
        font-size: 12px;
    }
    #info_resourse div {
        margin: 0;
    }
    #firstText {
        font-size: 27px;
    }
}