
.onest {
    font-family: "Onest", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

* {
    padding: 0;
    margin: 0;
    font-family: "Onest", sans-serif;
    transition: all .2s ease-in-out;
    box-sizing: border-box;
    font-weight: 500;
}

@media (prefers-color-scheme: dark) {

    ::selection {
        background: var(--foreground);
        color: var(--background);
    }


    :root {
        --background: #171717;
        --foreground: #ffffff;
        --bg-element: #ffffff20;
        --non-active: #aeaeae;
        --max-width: 1328px;
    }

    body {
        background: var(--background);
    }

    header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        height: 80px;
        z-index: 1001;
        border-bottom: 1px solid #ffffff25;
        background: var(--background);
    }

    .headerCont {
        max-width: var(--max-width);
        margin: auto;
        display: flex;
        align-items: center;
        height: inherit;
        padding: 0 20px;
        justify-content: space-between;
    }

    .leftCont {
        display: flex;
        gap: 80px;
        align-items: center;
    }

    .leftCont > nav {
        display: flex;
        align-items: center;
        gap: 20px
    }

    .leftCont > nav > a {
        text-decoration: none;
        color: var(--non-active);
    }

    .leftCont > nav > a:hover {
        color: var(--foreground);
    }

    .getCourse {
        padding: 6px 20px;
        border-radius: 5px;
        border: 0;
        background: var(--bg-element);
        color: var(--non-active);
    }

    .getCourse:hover {
        cursor: pointer;
        background: #ffffff40;
        color: var(--foreground);
    }

    .menu {
        display: none;
    }


    main {
        padding: 80px 0;
    }

    .mainCont {
        max-width: var(--max-width);
        margin: auto;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .welcome {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .welcome > h1 {
        font-size: clamp(24px, 36px, 64px);
        color: var(--foreground);
        padding: 80px 0;
        font-weight: 900;
    }

    .illustration {
        width: 100%;
        position: absolute;
        top: 0;
        z-index: -1001;
    }

    .plus {
        color: white;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .plus > p {
        font-size: 20px;
    }

    .params {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .row {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .point {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .index {
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--foreground);
        border-radius: 5px;
        box-shadow: 0 0 48px var(--foreground);
        color: var(--background);
    }

    .title {
        font-weight: 700;
        font-size: 24px;
    }

    .closeMenu {
        display: none;
    }

    #content {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(353px, 1fr));
        grid-template-rows: repeat(auto-fill, minmax(auto, min-content));
        border-radius: 20px;
    }

    .courses > .title {
        color: white;
        font-size: 36px;
    }

    .card {
        background: var(--background);
        padding: 40px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        color: white;
        border: 1px solid #ffffff25
    }

    .card:hover {
        cursor: pointer;
        background: #404040;
    }

    .courseName {
        font-weight: 700;
        font-size: 20px;
    }

    .times {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .times > div {
        padding: 10px;
        background: var(--bg-element);
    }

    .card:first-child {
        grid-column: 1/3;
    }

    .cyber {
        padding: 80px 0;
        color: var(--foreground);
        display: flex;
        gap: 40px;
        flex-direction: column;
    }

    .getCyber {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(353px, 1fr));
    }

    .getCyber > a {
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        color: var(--foreground);
        background: var(--bg-element);
        border: 1px solid #ffffff25
    }

    .getCyber > a:hover {
        background: #404040;
    }

    #lessons {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(353px, 1fr));
        grid-template-rows: repeat(auto-fill, minmax(auto, min-content));
        border-radius: 20px;
    }

    .lesson {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 40px;
        background: var(--background);
        border: 1px solid #ffffff25
    }

    .header {
        display: flex;
        flex-direction: column;
        padding: 80px 0;
        color: var(--foreground);
    }

    .information {
        display: flex;
        flex-direction: column;
        gap: 80px;
    }

    .header > .title {
        font-size: 48px;
        font-weight: 700;
    }

    .header > .date {
        color: var(--non-active);
    }

    .subtitle {
        font-size: 24px;
        color: var(--foreground);
    }

    .paragraph {
        color: var(--foreground);
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .content {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .lesson ul {
        padding: 0 30px;
    }

    .courses {
        padding: 80px 0;
    }

    .cyber > .title {
        font-size: 36px;
    }

    .aboutCmit {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(353px, 1fr));
        gap: 40px;
        align-items: flex-start;
        color: white;
    }

    .about > .title {
        font-size: 36px;
    }

    .about {
        padding: 80px 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .contact {
        padding: 80px 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .contact > .title {
        font-size: 36px;
    }

    .contacts {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .events {
        padding: 80px 0;
        color: white;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .events > .title {
        font-size: 36px;
    }

    .listEvents {
        display: flex;
        gap: 40px;
    }

    .listEvents > img {
        width: 342px;
    }

    footer {
        border-top: 1px solid #ffffff25
    }

    .footerCont {
        max-width: var(--max-width);
        margin: auto;
        padding: 40px 20px;
        gap: 80px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .footerCont > .leftCont {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    blockquote {
        color: var(--non-active);
    }

    .block {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .navTitle {
        font-size: 16px;
        font-weight: 700;
        color: var(--foreground);
    }

    .rightCont {
        display: flex;
        gap: 40px;
        flex-wrap: wrap;
    }

    .block > nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .block > nav > a {
        text-decoration: none;
        color: var(--non-active);
    }

    .block > nav > a:hover {
        color: var(--foreground);
    }

    #modalCourse {
        display: none;
        padding: 20px;
        flex-direction: column;
        gap: 80px;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--background);
        z-index: 1002;
    }

    .headed {
        color: white;
        fill: white;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .modalCourse {
        max-width: var(--max-width);
        margin: auto
    }

    .closeCourse {
        display: unset;
    }

    .closeCourse:hover,
    .closeCourse > rect {
        fill: white;
        cursor: pointer;
    }

    #modalCourse > a {
        color: var(--non-active);
        padding: 10px;
    }

    #modalCourse > a:hover {
        color: var(--foreground);
    }

    .widget {
        max-width: 100%;
    }

    #content .getCourse {
        border-radius: 0;
    }

    .widget {
        color: var(--foreground);
    }

    @media (max-width: 1024px) {

        #modalMenu {
            position: fixed;
            top: 80px;
            right: 0;
            left: 0;
            bottom: 0;
            background: var(--background);
            z-index: 1002;
            padding: 20px;
            display: none;
            flex-direction: column;
            gap: 20px;
        }

        #modalMenu > nav {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        #modalMenu > nav > a {
            text-decoration: none;
            color: var(--non-active);
            padding: 10px;
            border-radius: 5px;
        }

        #modalMenu > nav > a:hover {
            background: var(--bg-element);
            color: var(--foreground);
        }

        #modalMenu .getCourse {
            padding: 12px 0;
        }

        .menu,
        .menu:hover > rect {
            cursor: pointer;
            fill: var(--foreground);
        }
        .closeMenu,
        .closeMenu:hover > rect {
            cursor: pointer;
            fill: var(--foreground);
        }

        .closeMenu {
            display: unset;
        }

        .getCourse {
            display: none;
        }

        .card .getCourse {
            display: unset;
        }

        #content .getCourse {
            display: unset;
        }

        .leftCont > nav {
            display: none;
        }

        .menu {
            display: unset;
        }

        #modalMenu > .getCourse {
            display: unset;
        }

        .card:first-child {
            grid-column: 1 / 2;
        }
    }

    @media (max-width: 864px) {
        .card {
            padding: 20px;
        }

        .lesson {
            padding: 20px;
        }
    }

    #SiteWidgetMoyklass61902 > div:first-child {
        background: var(--background);
        border-radius: 10px;
    }

}

#SiteWidgetMoyklass61902 > div {
    background: #ffffff;
    padding: 10px;
}

#SiteWidgetMoyklass61902 > div:last-child {
    border-radius: 10px;
}

@media (prefers-color-scheme: light) {

    ::selection {
        background: var(--foreground);
        color: var(--background);
    }

    #SiteWidgetMoyklass61902 > div:first-child {
        background: var(--background);
        border-radius: 10px;
    }


    :root {
        --background: #ffffff;
        --foreground: #000000;
        --bg-element: #00000020;
        --non-active: #686868;
        --max-width: 1328px;
    }

    .closeCourse > rect {
        fill: #686868;
    }

    .closeCourse:hover > rect {
        cursor: pointer;
        fill: var(--foreground);
    }

    body {
        background: var(--background);
    }



    .svg-logo {
        fill: black
    }

    header {
        position: fixed;
        top: 0;
        right: 0;
        left: 0;
        height: 80px;
        z-index: 1001;
        border-bottom: 1px solid #00000025;
        background: var(--background);
    }

    .headerCont {
        max-width: var(--max-width);
        margin: auto;
        display: flex;
        align-items: center;
        height: inherit;
        padding: 0 20px;
        justify-content: space-between;
    }

    .leftCont {
        display: flex;
        gap: 80px;
        align-items: center;
    }

    .leftCont > nav {
        display: flex;
        align-items: center;
        gap: 20px
    }

    .leftCont > nav > a {
        text-decoration: none;
        color: var(--non-active);
    }

    .leftCont > nav > a:hover {
        color: var(--foreground);
    }

    .getCourse {
        padding: 6px 20px;
        border-radius: 5px;
        border: 0;
        background: var(--bg-element);
        color: var(--non-active);
    }

    .getCourse:hover {
        cursor: pointer;
        background: #ffffff40;
        color: var(--foreground);
    }

    .menu {
        display: none;
    }


    main {
        padding: 80px 0;
    }

    .mainCont {
        max-width: var(--max-width);
        margin: auto;
        padding: 0 20px;
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .welcome {
        position: relative;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .welcome > h1 {
        font-size: clamp(24px, 36px, 64px);
        color: var(--foreground);
        padding: 80px 0;
        font-weight: 900;
    }

    .illustration {
        width: 100%;
        position: absolute;
        top: 0;
        z-index: -1001;
    }

    .plus {
        color: white;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .descr {
        color: var(--foreground);
    }

    .global {
        stop-color: black;
    }

    .plus > p {
        font-size: 20px;
    }

    .params {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }

    .row {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .point {
        display: flex;
        gap: 20px;
        align-items: center;
    }

    .index {
        min-width: 48px;
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--foreground);
        border-radius: 5px;
        box-shadow: 0 0 48px var(--foreground);
        color: var(--background);
    }

    .title {
        font-weight: 700;
        font-size: 24px;
        color: var(--foreground);
    }

    .closeMenu {
        display: none;
    }

    #content {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(353px, 1fr));
        grid-template-rows: repeat(auto-fill, minmax(auto, min-content));
        border-radius: 20px;
    }

    .courses > .title {
        color: var(--foreground);
        font-size: 36px;
    }

    .card {
        color: var(--foreground);
        background: var(--background);
        padding: 40px;
        display: flex;
        flex-direction: column;
        gap: 20px;
        border: 1px solid #00000025
    }

    .card:hover {
        cursor: pointer;
        background: #d9d9d9;
    }

    .courseName {
        font-weight: 700;
        font-size: 20px;
    }

    .times {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .times > div {
        padding: 10px;
        background: var(--bg-element);
    }

    .card:first-child {
        grid-column: 1/3;
    }

    .header {
        display: flex;
        flex-direction: column;
        padding: 80px 0;
        color: var(--foreground);
    }

    .information {
        display: flex;
        flex-direction: column;
        gap: 80px;
    }

    .header > .title {
        font-size: 48px;
        font-weight: 700;
    }

    .header > .date {
        color: var(--non-active);
    }

    .subtitle {
        font-size: 24px;
        color: var(--foreground);
    }

    .paragraph {
        color: var(--foreground);
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .content {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .cyber {
        padding: 80px 0;
        color: var(--foreground);
        display: flex;
        gap: 40px;
        flex-direction: column;
    }

    .getCyber {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(353px, 1fr));
    }

    .getCyber > a {
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        color: var(--foreground);
        background: var(--bg-element);
        border: 1px solid #00000025
    }

    .getCyber > a:hover {
        background: #cacaca;
    }

    #lessons {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(353px, 1fr));
        grid-template-rows: repeat(auto-fill, minmax(auto, min-content));
        border-radius: 20px;
    }

    .lesson {
        display: flex;
        flex-direction: column;
        gap: 20px;
        padding: 40px;
        background: var(--background);
        border: 1px solid #00000025
    }

    .lesson ul {
        padding: 0 30px;
    }

    .courses {
        padding: 80px 0;
    }

    .cyber > .title {
        font-size: 36px;
    }

    .aboutCmit {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(353px, 1fr));
        gap: 40px;
        align-items: flex-start;
        color: white;
    }

    .about > .title {
        font-size: 36px;
    }

    .about {
        padding: 80px 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
        color: var(--foreground);
    }

    .contact {
        padding: 80px 0;
        display: flex;
        flex-direction: column;
        gap: 20px;
        color: var(--foreground);
    }

    .contact > .title {
        font-size: 36px;
    }

    .widget {
        color: var(--foreground);
    }

    .contacts {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .events {
        padding: 80px 0;
        color: white;
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .events > .title {
        font-size: 36px;
    }

    .listEvents {
        display: flex;
        gap: 40px;
    }

    .listEvents > img {
        width: 342px;
    }

    footer {
        border-top: 1px solid #ffffff25
    }

    .footerCont {
        max-width: var(--max-width);
        margin: auto;
        padding: 40px 20px;
        gap: 80px;
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }

    .footerCont > .leftCont {
        display: flex;
        flex-direction: column;
        gap: 0;
        align-items: flex-start;
    }

    blockquote {
        color: var(--non-active);
    }

    .block {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }

    .navTitle {
        font-size: 16px;
        font-weight: 700;
        color: var(--foreground);
    }

    .rightCont {
        display: flex;
        gap: 40px;
        flex-wrap: wrap;
    }

    .block > nav {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .block > nav > a {
        text-decoration: none;
        color: var(--non-active);
    }

    .block > nav > a:hover {
        color: var(--foreground);
    }

    #modalCourse {
        display: none;
        padding: 20px;
        flex-direction: column;
        gap: 80px;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--background);
        z-index: 1002;
    }

    .headed {
        color: white;
        fill: white;
        padding: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .modalCourse {
        max-width: var(--max-width);
        margin: auto
    }

    .closeCourse {
        display: unset;
    }

    .closeCourse:hover,
    .closeCourse > rect {
        fill: var(--foreground);
        cursor: pointer;
    }

    #modalCourse > a {
        color: var(--non-active);
        padding: 10px;
    }

    #modalCourse > a:hover {
        color: var(--foreground);
    }

    .widget {
        max-width: 100%;
    }

    #content .getCourse {
        border-radius: 0;
    }

    @media (max-width: 1024px) {

        #modalMenu {
            position: fixed;
            top: 80px;
            right: 0;
            left: 0;
            bottom: 0;
            background: var(--background);
            z-index: 1002;
            padding: 20px;
            display: none;
            flex-direction: column;
            gap: 20px;
        }

        #modalMenu > nav {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        #modalMenu > nav > a {
            text-decoration: none;
            color: var(--non-active);
            padding: 10px;
            border-radius: 5px;
        }

        #modalMenu > nav > a:hover {
            background: var(--bg-element);
            color: var(--foreground);
        }

        #modalMenu .getCourse {
            padding: 12px 0;
        }

        .menu,
        .menu:hover > rect {
            cursor: pointer;
            fill: var(--foreground);
        }
        .closeMenu,
        .closeMenu:hover > rect {
            cursor: pointer;
            fill: var(--foreground);
        }

        .closeMenu {
            display: unset;
        }

        .getCourse {
            display: none;
        }

        .card .getCourse {
            display: unset;
        }

        #content .getCourse {
            display: unset;
        }

        .leftCont > nav {
            display: none;
        }

        .menu {
            display: unset;
        }

        #modalMenu > .getCourse {
            display: unset;
        }

        .card:first-child {
            grid-column: 1 / 2;
        }
    }

    @media (max-width: 864px) {
        .card {
            padding: 20px;
        }

        .lesson {
            padding: 20px;
        }
    }

}
