/* Стили страницы "Мои курсы" (бывший landing на React). Всё скопировано под .courses-page,
   чтобы не затрагивать остальной сайт. */

.courses-page, .courses-page * {
    font-family: 'Montserrat', serif;
    font-weight: 400;
    box-sizing: border-box;
}

/* full-bleed: страница вылезает за пределы всех родительских контейнеров сайта
   и накрывает всю ширину экрана, как было в изначальном React-приложении. */
.courses-page {
    position: relative;
    width: 100vw;
    left: 50%;
    margin-left: -50vw;
    min-height: calc(100vh - 90px);
    background: url(/storage/media/courses/bg.jpg) no-repeat center;
    background-size: cover;
    padding: 50px 5vw;
    display: flex;
    align-items: center;
    justify-content: center;
}

.courses-page .logo-photo {
    position: absolute;
    bottom: 0;
    left: 4%;
    height: 92%;
    max-height: 640px;
    width: auto;
}

.courses-page .logo-card {
    position: relative;
    background: hsla(0, 0%, 88%, .95);
    border-radius: 20px;
    color: #000;
    display: grid;
    grid-template-columns: 90px minmax(280px, 700px) 90px;
    align-items: stretch;
    font-size: 1.7em;
    line-height: 25px;
    margin-left: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
    overflow: hidden;
}

.courses-page .logo-card h5 {
    margin: 0 0 20px;
    text-align: left;
}

.courses-page .logo-card h1 {
    color: #ff1c76;
    font-family: Arial, sans-serif;
    font-size: 2.2em;
    margin: 0 0 6px;
    padding: 0;
    text-align: center;
    text-shadow: 2px 2px 4px rgba(0,0,0,.5);
}

.courses-page .switcher {
    background: #ff1c76;
    padding: 12px 6px;
    -webkit-user-select: none;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.courses-page .courses-switcher {
    background: #6495ed;
}

.courses-page .switcher h3 {
    color: #fff;
    font-size: .5em;
    font-weight: 600;
    text-align: center;
    margin: 0 0 10px;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.courses-page .switcher ul {
    align-items: center;
    background: #fff;
    box-shadow: inset 0 0 2px 1px rgba(0,0,0,.4);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    list-style-type: none;
    margin: 0;
    padding: 6px 0;
    width: 100%;
}

.courses-page .switch-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 6px 2px;
    text-align: center;
    font-size: .55em;
    cursor: pointer;
    color: #000;
}

.courses-page .switch-item.active {
    background: #ff1c76;
    box-shadow: inset 0 0 2px 1px rgba(0,0,0,.4);
    color: #fff;
}

.courses-page .courses-switcher .switch-item.active {
    background: #6495ed;
}

.courses-page .course-content {
    font-size: 24px;
}

.courses-page .course-name {
    background: #fff;
    font-size: 32px;
    font-weight: 500;
    line-height: 42px;
    padding: 3px 6px;
    display: block;
    border-radius: 4px;
}

.courses-page .course-description {
    display: block;
}

.courses-page .button {
    background: #e10974;
    border: 1px solid rgba(225, 9, 116, .68);
    border-radius: 70px;
    box-shadow: 0 0 34px 17px rgba(225, 9, 116, .28);
    font-size: 1.2em;
    font-weight: 400;
    margin: 15px 0 0;
    padding: 20px 50px;
    color: #fff;
    cursor: pointer;
}

.courses-page .main-section {
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#courses-dialog {
    border: none;
    border-radius: 20px;
    padding: 30px;
    max-width: 90vw;
    /* bootstrap.css форсит "dialog{display:block}" (старый HTML5-шим),
       перебивая нативное скрытие <dialog> без атрибута open - возвращаем его явно. */
    display: none;
}

#courses-dialog[open] {
    display: block;
    position: fixed;
    inset: 0;
    margin: auto;
}

#courses-dialog::backdrop {
    background: rgba(0, 0, 0, .6);
}

#courses-dialog h2 {
    margin-left: 0;
}

@media (max-width: 1200px) {
    .courses-page {
        padding: 30px 4vw;
        min-height: auto;
    }

    .courses-page .logo-photo {
        display: none;
    }

    .courses-page .logo-card {
        grid-template-columns: 1fr;
        font-size: 1.2em;
        margin: 0 auto;
        max-width: 500px;
    }

    .courses-page .main-section {
        order: 1;
    }

    .courses-page .courses-switcher {
        order: 0;
    }

    .courses-page .lessons-switcher {
        order: 2;
    }

    .courses-page .switcher {
        flex-direction: row;
        flex-wrap: wrap;
        padding: 10px;
    }

    .courses-page .switcher h3 {
        width: 100%;
        font-size: .8em;
    }

    .courses-page .switcher ul {
        flex-direction: row;
        flex-wrap: wrap;
        width: auto;
    }

    .courses-page .switch-item {
        width: auto;
        padding: 6px 10px;
    }
}

@font-face {
    font-display: swap;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 400;
    src: url(/storage/media/courses/fonts/montserrat-cyrillic-ext-400.woff2) format("woff2"),
         url(/storage/media/courses/fonts/montserrat-cyrillic-ext-400.woff) format("woff");
    unicode-range: u+0460-052f, u+1c80-1c88, u+20b4, u+2de0-2dff, u+a640-a69f, u+fe2e-fe2f;
}

@font-face {
    font-display: swap;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 400;
    src: url(/storage/media/courses/fonts/montserrat-cyrillic-400.woff2) format("woff2"),
         url(/storage/media/courses/fonts/montserrat-cyrillic-400.woff) format("woff");
    unicode-range: u+0301, u+0400-045f, u+0490-0491, u+04b0-04b1, u+2116;
}

@font-face {
    font-display: swap;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 400;
    src: url(/storage/media/courses/fonts/montserrat-vietnamese-400.woff2) format("woff2"),
         url(/storage/media/courses/fonts/montserrat-vietnamese-400.woff) format("woff");
    unicode-range: u+0102-0103, u+0110-0111, u+0128-0129, u+0168-0169, u+01a0-01a1, u+01af-01b0, u+0300-0301, u+0303-0304, u+0308-0309, u+0323, u+0329, u+1ea0-1ef9, u+20ab;
}

@font-face {
    font-display: swap;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 400;
    src: url(/storage/media/courses/fonts/montserrat-latin-ext-400.woff2) format("woff2"),
         url(/storage/media/courses/fonts/montserrat-latin-ext-400.woff) format("woff");
    unicode-range: u+0100-02af, u+0304, u+0308, u+0329, u+1e00-1e9f, u+1ef2-1eff, u+2020, u+20a0-20ab, u+20ad-20cf, u+2113, u+2c60-2c7f, u+a720-a7ff;
}

@font-face {
    font-display: swap;
    font-family: Montserrat;
    font-style: normal;
    font-weight: 400;
    src: url(/storage/media/courses/fonts/montserrat-latin-400.woff2) format("woff2"),
         url(/storage/media/courses/fonts/montserrat-latin-400.woff) format("woff");
    unicode-range: u+00??, u+0131, u+0152-0153, u+02bb-02bc, u+02c6, u+02da, u+02dc, u+0304, u+0308, u+0329, u+2000-206f, u+2074, u+20ac, u+2122, u+2191, u+2193, u+2212, u+2215, u+feff, u+fffd;
}
