@import url('https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,450;0,530;0,600;0,650;1,450;1,530;1,600&family=PT+Sans:wght@700&display=swap');

:root {    
    --header_font: 'PT Sans', sans-serif;
    --header_weight: 700;
    --main_font: 'Open Sans', sans-serif;
    --main_weight: 430;
    --main_bold_weight: 530;
    --main_bolder_weight: 600;
    --main_boldest_weight: 650;
    --border: 2px solid var(--lightgray);
    --radius: 16px;
    --nav_height: 70px;
    --accent: #1c55e5;
    --sub_accent: #1c55e5;
    --darker_accent: #133a9d;
    --lighter_accent: #3d73fa;
    --main: #202124;
    --always_main: #202124;
    --lighter_main: #3d3d4e;
    --white: #ffffff;
    --secondary: #70787C;
    --lightgray: #C3D1DB;
    --secondary_background1: #e4ebf2;
    --gray: #e1e7ee;
    --secondary_background: #F6F9FA;
    --secondary_background_2: #eef1f2;
    --progress: #8063fc;
    --green: #32bf4c;
    --transp_green: #38da561f;
    --red: #F6511D;
    --transp_red: #da38561f;
    --darkred: #c23f17;
    --pink: #ce82ff;
    --blue3: #00aeff;
    --blue_text: #1899d6;
    --blue_border: #84d8ff;
    --lightblue: #ddf4ff;
    --darkblue: #2b70c9;
    --orange: #ff9d00;
    --orange3: #EE823A;
    --xp: #32bf4c;
    --yellow: #ffc800;
    --darkgreen: #24a032;
    --coral: #ff5353;
    --turq: #16bbbb;
    --bronze: #E1BC94;
    --darkorange: #F46A37;
    --plus_grad: linear-gradient(114deg, rgba(50,191,76,1) 26%, rgba(28,85,229,1) 60%, rgba(128,99,252,1) 87%);
}

.darkmode {
    --accent: #6893FF;
    --sub_accent: #1c55e5;
    --darker_accent: #0a469e;
    --lighter_accent: #3d73fa;
    --main: #fff;
    --lighter_main: #c2d4dd;
    --white: #000;
    --secondary: #c2d4dd;
    --lightgray: #C3D1DB;
    --secondary_background1: #808488;
    --gray: #646769;
    --secondary_background: #1a1b1d;
}

.istoriya,
.istoriya-trenazhyory,
.istoriya-rossii {
    --sub_accent: var(--orange3);
}


.algebra {
    --sub_accent: var(--blue3);
}

.english,
.anglijskij-yazyk {
    --sub_accent: var(--pink);
}

.matematika,
.matematisheskie-trenazhyory {
    --sub_accent: var(--blue3);
}

.geometriya {
    --sub_accent: var(--progress);
}

.ege {
    --sub_accent: #f94c43;
}

.obshhestvoznanie {
    --sub_accent: var(--orange3);
}

.biologiya {
    --sub_accent: var(--green);
}

.geografiya {
    --sub_accent: var(--green);
}

.russkij-yazyk {
    --sub_accent: var(--darkorange);
}

.fizika {
    --sub_accent: var(--green);
}

.himiya {
    --sub_accent: var(--green);
}

.literatura,
.chtenie-trenazhyory {
    --sub_accent: var(--darkorange);
}

.trenazhyory-dlya-mozga {
    --sub_accent: #f771c4;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    background-color: var(--white);
    max-width: 100%;
    overflow-x: hidden;
    line-height: 1.4;
    font-size: 16px;
    font-family: var(--main_font);
    color: var(--main);
    font-weight: var(--main_weight);
}

strong, b {
    font-weight: var(--main_bolder_weight);
}

body,
input,
textarea,
input,
a,
button {
    font-size: inherit;
    font-family: inherit;
}

input[type="submit"] {
    appearance: none;
}

input[type="text"],
input[type="number"],
input[type="email"],
input[type="password"],
select,
textarea {
    background-color: var(--white);
    color: var(--main);
    font-size: inherit;
    padding: 9px 16px;
    border-radius: 16px;
    border: var(--border);
    outline: none;
    box-shadow: none;
    appearance: none;
}

textarea {
    max-width: 100%;
}

h1 {
    color: var(--main);
}

.h, h1 {
    -webkit-font-smoothing: antialiased;
    line-height: 1.2;
    font-family: var(--header_font);
    font-weight: var(--header_weight);
}

h2,
h3,
h4,
h5,
h6 {
    font-family: var(--main_font);
    font-weight: var(--main_bolder_weight);
    line-height: 1.2;
    color: var(--main);
}

a {
    color: var(--accent);
    text-decoration: none;
}

.pointer {
    cursor: pointer;
}

ul,
ol {
    padding-left: 1.37em;
}

.und:hover,
.und:active {
    text-decoration: underline;
}

.green {
    color: var(--green);
}

.red {
    color: var(--red) !important;
}

.sec {
    color: var(--secondary);
}

.gray {
    color: var(--lighter_main);
}

.mf {
    font-family: var(--main_font);
}

.t {
    color: var(--main);
}


.f {
    color: #fff;
}

.white {
    color: var(--white);
}

.w-100 {
    width: 100%;
}

.accent {
    color: var(--accent) !important;
}

.bold {
    font-weight: var(--main_bolder_weight);
}

.alc,
.jc,
.row-r,
.row,
.navbar_content,
.flex-wrap,
.sb,
.flex {
    display: flex;
}

.hide {
    display: none;
}

.row-r {
    flex-direction: column-reverse;
}

.row {
    flex-direction: column;
}

.flex-wrap {
    flex-wrap: wrap;
}

.p_relative {
    position: relative;
}

.alc {
    align-items: center;
}

.jc {
    justify-content: center !important;
}

.sb {
    justify-content: space-between;
}

.je {
    justify-content: end;
}

.gap {
    gap: 24px;
}

.spacer {
    flex-grow: 1;
}

.text-center {
    text-align: center;
}

.pt {
    padding-top: 24px;
}

.pb {
    padding-bottom: 24px;
}

.py {
    padding-top: 24px;
    padding-bottom: 24px;
}

.ml {
    margin-left: 24px;
}

.mr {
    margin-right: 24px;
}

.mrb {
    margin-right: 32px;
}

.mr-10 {
    margin-right: 10px;
}

.mt-5 {
    margin-top: 5px;
}

.mt-15 {
    margin-top: 15px;
}

.mt {
    margin-top: 24px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb {
    margin-bottom: 24px;
}

.bt {
    border-top: var(--border);
}

.bb {
    border-bottom: var(--border);
}

.no_m {
    margin: 0;
}

.btn {
    outline: none;
    display: inline-block;
    cursor: pointer;
    position: relative;
    text-align: center;
    padding: 12px 22px;
    font-weight: var(--main_bold_weight);
    box-shadow: none;
    color: var(--white);
    border-radius: var(--radius);
    background-color: transparent;
    border: 0px solid transparent;
    border-bottom-width: 4px;
    z-index: 1;
    transition: filter .2s;
    line-height: normal;
}

.btn.wide {
    min-width: 150px;
}

.btn::before {
    background-color: var(--accent);
    border-radius: var(--radius);
    bottom: 0;
    box-shadow: 0 4px 0 var(--darker_accent);
    content: "";
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: -1;
}

.btn:not(:disabled):hover {
    filter: brightness(1.1);
}

.btn:active,
.btn:disabled {
    transform: translateY(4px) translateZ(0);
}

.btn.secondary {
    border: solid transparent;
    padding: 11px 20px;
    border-width: 2px 2px 4px;
    color: var(--secondary);
}

.btn.secondary::before {
    border: var(--border);
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background-color: var(--white);
    box-shadow: 0 2px 0 var(--lightgray);
}

.btn.secondary:active,
.btn.secondary:disabled {
    transform: translateY(2px) translateZ(0);
}

.btn.secondary:hover {
    filter: brightness(.94);
}

.btn:active::before {
    box-shadow: none !important;
}

button:disabled,
.btn:disabled {
    color: var(--lightgray);
}

button:disabled::before,
.btn:disabled::before {
    background-color: var(--secondary_background1);
    box-shadow: none;
}

.container {
    padding-right: 24px;
    padding-left: 24px;
    margin-right: auto;
    margin-left: auto;
}

.box {
    border: var(--border);
    border-radius: var(--radius);
    padding: 24px
}


/* navbar_content */

#menu_icon,
.search_icon {
    width: 31px;
}

.home_url {
    height: 28px;
    width: 140px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("img/text-logo.svg");
}

.navbar {
    z-index: 100;
    background-color: var(--white);
    border-bottom: var(--border);
}

.navbar_content {
    padding: 0 24px;
    height: calc(var(--nav_height) - 2px);
    max-width: 1400px;
    margin: auto;
}

.flat_btn {
    padding: 9px 14px;
    border-radius: var(--radius);
    font-weight: var(--main_bolder_weight);
    border: 2px solid transparent;
}

.flat_btn:hover {
    color: var(--main);
    background-color: var(--secondary_background);
}

#menu_icon {
    border: none;
    position: relative;
    background-color: transparent;
    outline: none;
    height: 100%;
}

#menu_icon span {
    display: block;
    width: 17px;
    height: 2px;
    border-radius: 500px;
    background-color: var(--accent);
}

#menu_icon span:nth-child(2) {
    margin: 3px 0;
}

#full_menu {
    display: none;
    position: fixed;
    z-index: 6;
    background-color: var(--secondary_background);
    height: calc(100% - var(--nav_height));
    top: var(--nav_height);
    overflow-y: scroll;
}

#full_menu ul {
    list-style: none;
    padding: 0;
}

#full_menu ul li {
    margin: 0 !important;
}


.menu_opened #full_menu {
    display: block;
}

.menu_opened .navbar {
    position: fixed;
    z-index: 100;
    width: 100%;
}

.menu_opened body,
.menu_opened {
    overflow-y: hidden;
}

.up {
    text-transform: uppercase;
}

.open_accordion.opened+.accordion {
    height: auto;
}

#full_menu .menu_link:first-child,
#full_menu .open_accordion:first-child {
    border-top: 1px solid var(--lightgray);
}

.accordion {
    overflow: hidden;
    height: 0;
}

.menu_link,
.open_accordion,
.accordion li a {
    display: block;
    width: 100%;
    color: var(--main);
    padding: 14px 24px;
    font-weight: var(--main_bold_weight);
    background-color: var(--white);
    display: block;
    border-bottom: 1px solid var(--lightgray);
}

.accordion li a {
    padding-left: 41px;
    color: var(--accent);
}

.open_accordion.opened svg {
    transform: rotate(90deg);
}

.menu_opened #menu_icon span:nth-child(1),
.menu_opened #menu_icon span:nth-child(3) {
    position: absolute;
    top: 34px;
    transform: rotate(45deg);
}

.menu_opened #menu_icon span:nth-child(2) {
    display: none;
}

.menu_opened #menu_icon span:nth-child(3) {
    transform: rotate(-45deg);
}

/* FULLCATALOG */

.sub_img {
    width: 36px;
    height: 36px;
    background-color: var(--sub_accent);
    border-radius: 10px;
}

.fullcatalog {
    display: none;
    z-index: 5;
    background-color: var(--secondary_background);
    position: absolute;
    padding-bottom: 15px;
    border-bottom: var(--border);
}

.subject {
    gap: 15px;
    font-size: 20px;
    padding-right: 25px;
}

.course {
    color: var(--lighter_main);
    font-size: 17px;
    display: inline-block;
    margin-left: 53px;
}

.course:hover,
.subject:hover {
    color: var(--blue_text);
    background-color: var(--lightblue);
    border-color: var(--blue_border);
}

.lesson_catalog_opened #full_lessons,
.training_catalog_opened #full_trainings {
    display: block;
}

.lesson_catalog_opened #open_lesson_catalog,
.training_catalog_opened #open_training_catalog,
.flat_btn.active {
    color: var(--blue_text);
    background-color: var(--lightblue);
    border-color: var(--blue_border);
}

.fullcatalog ul {
    list-style: none;
    padding-bottom: 28px;
    column-count: 4;
}

#full_trainings ul {
    column-count: 2;
}

.fullcatalog ul li {
    margin-top: 28px;
    width: 95%;
    display: inline-block;
}

.header_toast {
    display: none;
    position: absolute;
    z-index: 8;
    top: calc(var(--nav_height) - 5px);
    right: 15px;
    width: 300px;
    border-radius: 0.6rem;
    background-color: var(--white);
    border: var(--border);
    overflow: hidden;
}

#create_toast {
    width: auto;
    right: 60px;
}

.header_toast ul {
    padding: 0;
    list-style: none;
}

.header_toast ul li a {
    display: block;
    text-transform: none;
    padding: 12px 24px;
    border-top: var(--border);
    color: var(--accent);
}

.header_toast ul li a:hover {
    background-color: var(--secondary_background);
}

.header_toast ul li:first-child a {
    border-top: 0;
}


/* log in */

.logged,
.parent_only,
.child_only,
.teacher,
.logged-in .not_logged {
    display: none !important;
}

.parent-role .parent_only,
.teacher-role .teacher,
.logged-in .logged,
.child-role .child_only {
    display: block !important;
}

/* teacher */
.teacher_nav {
    background-color: var(--white);
    padding: 10px 0;
}

.teacher_nav a {
    color: var(--progress);
}

/* achievements */

.sap,
.coin,
.streak,
.stat .xp {
    font-weight: var(--main_bolder_weight);;
}

.stat span {
    margin-left: 7px;
}

.stat img {
    height: 30px !important;
}

.sap {
    color: var(--progress);
}

.coin {
    color: var(--yellow);
}

.xp {
    color: var(--xp);
}

.streak {
    color: var(--orange);
}

.stat.dis .coin,
.stat.dis .sap,
.stat.dis .xp,
.stat.dis .streak {
    color: var(--secondary) !important;
}

.stat.dis img {
    filter: grayscale(100);
}

.stat_toast b {
    display: block;
    font-size: 27px;
    margin-bottom: 5px;
}

.stat_toast {
    display: none;
    position: absolute;
    margin: 0;
    background-color: var(--white);
    top: calc(var(--nav_height) - 8px);
    border: var(--border);
    padding: 24px;
    border-radius: var(--radius);
}

.stat_toast span {
    color: var(--secondary);
    font-size: 17px;
}

.stat_toast img {
    height: 60px;
}

.stat:hover + .stat_toast {
    display: flex;
}

.sap_toast {
    right: 230px;
}

.streak_toast {
    right: 180px;
    max-width: 600px;
}

.coin_toast {
    max-width: 500px;
    right: 100px;
}

.avatar,
.create_btn {
    border: var(--border);
    height: 36px;
    width: 36px;
    border-radius: 50%;
    position: relative;
}

/* PLUS */ 
.plus_sub .ad,
.plus_sub .no_plus,
.only_plus {
    display: none !important;
}

.plus_sub .only_plus {
    display: block !important;
}

.plus_sub .avatar.my,
.avatar.plus {
    border-color: transparent !important;
}

.plus_sub .avatar.my::before,
.avatar.plus::before {
    content: "";
    position: absolute;
    top: -2px;
    bottom: -2px;
    left: -2px;
    right: -2px;
    background: var(--plus_grad);
    border-radius: 100vh;
    z-index: 0;
}

.avatar img {
    border-radius: 50%;
    min-width: 100%;
    max-width: 100%;
    min-height: 100%;
    max-height: 100%;
    position: relative;
    z-index: 1;
    background-color: var(--white);
}

.create_btn {
    background-color: var(--accent);
    border-color: var(--accent);
}

.create_btn::before,
.create_btn::after {
    content: "";
    position: absolute;
    height: 2px;
    width: 18px;
    border-radius: 50vh;
    background-color: #fff;
}

.create_btn::after {
    transform: rotate(90deg);
}

#history_calendar {
    gap: 10px
}

#history_calendar div {
    width: 25px;
    height: 25px;
    border-radius: 100px;
    background-color: var(--lightgray);
}

#history_calendar span.active div {
    background-color: var(--orange);
}


/* .navbar_content END */

/* ALERT */

.alert {
    z-index: 100;
    position: fixed;
    bottom: 0;
    left: 24px;
    height: 160px;
    width: 480px;
    max-width: calc(100% - 48px);
    padding: 16px;
    overflow: hidden;
    display: flex;
    align-items: center;
    cursor: pointer;
    opacity: 0;
    border-radius: var(--radius);
}

.alert img {
    height: 63px;
    margin-right: 30px;
}

.alert .anim {
    position: absolute;
    left: 0;
    top: -20px;
    width: 100%;
    height: auto;
    z-index: -1;
}

.alert .small {
    font-weight: var(--main_bolder_weight);
    font-size: 15px;
}

.alert .upper_text {
    margin-bottom: 5px;
}

.alert .h {
    margin-bottom: 10px;
    font-size: 23px;
}

.streak_alert {
    border: 4px solid #FFE8D8;
    background: #FFF6EF;
}

.welcome_alert {
    left: unset !important;
    right: 0;
    padding: 0 0 0 24px !important;
    height: auto;
    width: auto;
    max-width: unset;
}

.welcome_alert .box {
    max-width: 350px;
    background-color: var(--white);
    margin-bottom: 24px;
}

#welcome {
    width: 250px;
    margin-bottom: -135px;
}

@media (max-width: 600px) {
    .welcome_alert .alc {
        flex-direction: column;
    }
    .welcome_alert .box {
        margin: 0 24px 15px 0;
    }
}

/* FOOTER */

footer {
    padding-top: 30px;
    background-color: var(--secondary_background);
    border-top: 2px solid var(--lightgray);
    font-size: 16px;
}

footer a {
    color: var(--lighter_main);
    display: block;
    margin: 15px 0;
}

.footer_links div {
    padding-right: 15px;
    width: 50%;
}

.tagline {
    max-width: 356px;
    margin-right: 24px;
    display: flex;
    flex-direction: column;
}

.footer_links {
    flex-wrap: wrap;
    flex-direction: row;
}

.footer_links p {
    font-size: 17px;
    font-weight: var(--main_bold_weight);;
    margin-top: 24px;
}

.bottom {
    padding: 12px 0;
    border-top: 1px solid #e7e7e9;
}


/* FOOTER END */

@media (min-width: 768px) {
    .row,
    .row-r {
        flex-direction: row;
        justify-content: space-between;
    }
    .footer_links {
        flex-wrap: nowrap;
    }
    .bigrow {
        flex-direction: column;
    }
    .mobile {
        display: none;
    }
    .home_url {
        margin-right: 24px;
    }
    .alert {
        left: 32px;
        padding: 32px;
    }
    .alert img {
        height: 88px;
    }
}

@media (max-width: 767px) {
    .desk {
        display: none;
    }
}
@media (max-width: 1115px) { 
    .navbar_content .desk {
        display: none;
    }
    .navbar_content .mobile {
        display: initial;
    }
}


@media (min-width: 992px) {
    .bigrow {
        flex-direction: row;
    }
    .footer_links div {
        width: auto;
    }
    .footer_links {
        justify-content: space-evenly;
    }
    .footer_links p {
        margin-top: 0;
    }
}

@media (min-width: 1224px) {
    h1 {
        font-size: 2.6rem;
    }
    .container {
        width: 1224px;
    }
}

table {
    width: 100%;
    border-spacing: 0;
    max-width: 100%;
    border-collapse: unset !important;
    background-color: var(--white);
}

td,
th {
    line-height: 22px;
    padding: 12px 5px;
    text-align: left;
}

table th {
    background-color: var(--secondary_background) !important;
    border: 2px solid var(--lightgray) !important;
    font-weight: var(--main_bold_weight);;
    border-bottom: 0 !important;
    border-left-width: 0 !important;
}

tr td:first-child,
tr th:first-child {
    border-left-width: 2px !important;
}

tr:hover {
    background-color: var(--secondary_background);
}

.has-text-align-center {
    text-align: center;
}

td {
    border-color: var(--lightgray) !important;
    border-style: solid;
    border-width: 2px 2px 0 0 !important;
}

table tr:first-child th:first-child,
table tr:first-child td:first-child {
    border-left-width: 2px;
    border-top-left-radius: 16px;
}

thead~tbody tr:first-child td:first-child {
    border-top-left-radius: 0;
}

table tr:first-child th:last-child,
table tr:first-child td:last-child {
    border-top-right-radius: 16px;
}

thead~tbody tr:first-child td:last-child {
    border-top-right-radius: 0;
}

table tr:last-child td {
    border-bottom: 2px solid var(--lightgray) !important;
}

table tr:last-child td:last-child {
    border-bottom-right-radius: 16px;
}

table tr:last-child td:first-child {
    border-bottom-left-radius: 16px;
}

.toggle-control {
    line-height: 1;
    position: relative;
    cursor: pointer;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.toggle-control input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.toggle-control input:checked~.control {
    background-color: var(--accent);
}

.toggle-control input:checked~.control:after {
    left: 25px;
    border-color: var(--accent);
}

.toggle-control .control {
    height: 24px;
    width: 57px;
    border-radius: 10vh;
    background-color: var(--lightgray);
    transition: background-color 0.15s ease-in;
}

.toggle-control .control:after {
    content: "";
    position: absolute;
    left: 0;
    top: -5px;
    width: 28px;
    height: 28px;
    border-radius: 10px;
    background: white;
    border: var(--border);
    border-bottom-width: 4px;
    transition: left 0.25s ease-in-out;
}