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;
  }

.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 {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 25px;
    padding: 20px;
}

.header_logo_img {
        position: relative;
        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%;
}


.back-fon-rectangle {
    position: absolute;
    width: 515px;
    height: 2100px;
    background-color: #412657;
    transform: rotate(135deg);
    top:-570px;
    left:280px;
    z-index: -1;
}

.section-content {

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    margin-top: 50px;
}

.teachears_par {
    font-size: 55px;
    font-weight: 900;
}

.teacher-item {
    display: flex;
    flex-direction: column;
}

.teacher-item_img {
    display: flex;
    justify-content: center;
    width: 350px;
    height: auto;

}


.all-teachers {
    display: flex;
    flex-direction: row;
    font-weight: 700;
    font-size: 24px;
    color: #000000;
    flex-wrap: wrap;
    gap: 25px;
    padding-top: 40px;
    
}

.teacher-item_rectangle {
    display: flex;
    background-color: #B1AA00F2;
    border-radius: 26px;
    width: 350px;
    height: 100px;
    justify-content: center;
    align-items: center;

}


.img-fit {
    object-fit: contain;
    width: 100%;
    height: 100%;
}



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


    .header {
        padding: 15px;
        flex-wrap:wrap;
    }

    .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;
    }

    .all-teachers {
        flex-direction: column;
        gap:10px;
        padding-bottom: 40px;
        font-size: 20px;
    }

    .teachears_par {
        font-size: 32px;
    }

    .teacher-item_rectangle {
        width: 260px;
        height: 80px;
    }

    .teacher-item_img {
        width: 260px;
        height: auto;
    }

    .back-fon-rectangle {
        position: absolute;
        width: 300px;
        height: 1800px;
        background-color: #412657;
        transform: rotate(150deg);
        top: -281px;
        left: 40px;
        z-index: -1;
    }
}
