html {
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: inherit;
}



a {
    color: inherit;
    text-decoration: none;
}


:root {
    --text-color: #FFFFFF;
    --icinc-back-color: #3D1A59C9;
    --font-color: #6C25A4;

    --start-lin-grad-color: #5C5C5C;
    --end-lin-grad-color: #42424200;
}


body {
    margin: 0;
    padding: 0;
    font-family: "Montserrat", sans-serif;
    font-weight: 500;
    font-style: normal;
    color: var(--text-color);

}

.rubik-mono-one-regular {
    font-family: "Rubik Mono One", monospace;
    font-weight: 400;
    font-style: normal;
}


.rubik-medium {
    font-family: "Rubik", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.montserrat-medium {
    font-family: "Montserrat", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

p {
    display: block;
    padding: 0;
    margin: 0;
}


.container {
    margin: 0 auto;
}


.main {
    /* position: relative; */
    background-color: #5C5C5C;
    background-repeat: no-repeat;
    max-width: 1440px;
    min-height: 1024px;
    background-size: cover;
    z-index: 10;
    overflow: hidden;
}

.header {
    position: relative;
    display: flex;
    /* padding: 48px 0px 50px; */
    padding-right: 10px;
    z-index: 2;
    justify-content: space-between;

}

.header_contacts {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

.header_contacts_ellips {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--text-color);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    padding: 12px;
}

.header_contacts_ellips img {
    width: 100%;
}

.header_contacts_text {
    font-size: 24px;

}


.header_logo {
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px;
}

.header_logo_img {
    width: 120px;
    height: 70px;
}

.header_logo_img img {
    width: 100%;
    height: 100%;
}


.header_logo_en,
.header_logo_ru {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #fff;
    width: 50px;
    height: 50px;
    font-size: 28px;
    color: var(--font-color);
    border-radius: 50%;
}


.section-lessons {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding-top: 50px;
    gap: 20px;
}


.main-par {
    font-size: 36px;
}


.all-lessons {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    max-width: 70vw;
    justify-content: center;
    margin-top: 50px;
}

.item-lesson {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    width: 170px;
    background-color: #8F8B8BA6;
    border-radius: 15px;
    flex-wrap: wrap;
    padding: 7px;
    text-align: center;
    gap: 20px;
    padding-bottom: 30px;
    padding-top: 20px;
}

.item-lesson_img {
    display: flex;
    justify-content: center;
    width: 60px;
    max-height: 170px;

}

.img_invert_fon {
    width: 100%;
    height: 100%;
    filter: invert(100%);
    -webkit-filter: invert(100%);
}


.item-lesson_img img {

    width: 100%;
    height: 100%;

}

.my-lesson-button {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 194px;
    height: 58px;
    background-color: #482259;
    border-radius: 15px;
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 10px 7px 4px rgb(30 30 29 / 50%);
    margin-top: 50px;
}

.header_contacts_text {
    font-weight: 700;
    font-size: 18px;
}


.form-check-code {
    display: flex;
    max-width: 500px;
}

.form-button {
    width: 200px;
    height: 100px;
}


.wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 194px;
    height: 58px;
    background-color: #482259;
    border-radius: 15px;
    margin: 0;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 10px 7px 4px rgb(30 30 29 / 50%);
    margin-top: 50px;
    position: relative;
    margin: 50px auto;

}

.btn {

    cursor: pointer;
    transition: .3s all;
    /* плавный переход */

}


.popup {
    display: block;
    width: 260px;
    border-radius: 15px;
    background-color: rebeccapurple;
    padding: 28px;
    color: white;
    font-size: 15px;
    position: absolute;
    left: 50%;
    transform: translate(-50%);
    top: 555px;
    transition: 0.5s all linear;
}


.popup input {
    width: 100%;
    border-radius: 5px;
    border: 0;
    /*убираем дефолтные рамки */
    margin: 10px 0;
    height: 35px;
    padding: 5px;
    outline: none;
}

.submit {
    background-color: #FAF4D0;
    border-radius: 5px;
    cursor: pointer;
}

#callback {
    display: none;
}

#callback:checked~.popup {
    top: 100px;
}



.close {
    display: block;
    position: absolute;
    transform: rotate(45deg);
    font-size: 28px;
    top: 3px;
    right: 10px;
    cursor: pointer;
}

@media screen and (max-width: 767px) {


    .header {
        padding: 15px;
    }

    .header_logo {
        gap: 10px;
        padding: 10px;
    }

    .header_logo_img {
        width: 65px;
        height: 30px;
    }

    .header_logo_img img {
        width: 100%;
        height: 100%;
    }

    .header_contacts {
        padding: 10px;
    }

    .header_contacts_ellips {
        width: 30px;
        height: 30px;
        padding: 11px;
    }


    .header_contacts_text {
        font-size: 15px;
    }

    .header_logo_en,
    .header_logo_ru {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .main-par {
        font-size: 21px;
        padding: 10px;
        text-align: center;
    }

    .all-lessons {
        margin-top: 15px;
    }

    .my-lesson-button {
        margin-top: 20px;
        margin-bottom: 20px;
    }

    #callback:checked~.popup {
        top: -300px;
    }
}