/* Школа Pink Diamond: ручные правки поверх стилей платформы (ветка pd). Подключается последним, после pd-theme.css.
   Палитра — из справки по бренду (branding/brand/brand-notes.txt, 14.11.2026):
     логотип           #EE67AD (основной розовый), #F9B4D8, #FBEAF3
     тема GetCourse    #B85CA0 — кнопки и ссылки (наведение #9E4F88), #FF94E0 — светлая кнопка (наведение #E57EC6),
                       #8F427A — тёмная сирень (метки), фоны #FEF0F9 и #F8E6F3
   Шрифт — Montserrat (фирменный, OFL): fonts/Montserrat-var.woff2, латиница и кириллица, переменная жирность. */

/* --- шрифт: Montserrat вместо Gilroy. Объявляем и под своим именем, и под именем Gilroy —
       тогда все места платформы, где шрифт задан как Gilroy, получают Montserrat без правки каждого правила --- */
@font-face {
    font-family: 'Montserrat';
    src: url(/fonts/Montserrat/Montserrat-var.woff2) format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Montserrat';
    src: url(/fonts/Montserrat/Montserrat-Italic-var.woff2) format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}
@font-face {
    font-family: Gilroy;
    src: url(/fonts/Montserrat/Montserrat-var.woff2) format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
body,
button,
input,
select,
textarea,
h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', Arial, sans-serif;
}

/* --- фон: спокойный вместо фотографий АКМ --- */
body#page,
main.student-wrap,
.vitrina-wrap {
    background: #fdf7fb !important;
}

/* --- приветственное окно и енот-маскот АКМ не используются --- */
.welcome-overlay,
#enot-akm,
.enot-akm {
    display: none !important;
}

/* --- логотип: исходные пропорции, без растяжения --- */
.menu__logo {
    height: 96px;
    width: auto;
    margin-bottom: 26px;
    padding: 0 14px;
}
.menu__logo .logo {
    position: static;
    display: block;
    width: auto;
    height: 96px;
    margin: 0 auto;
    transform: none;
    object-fit: contain;
}
.menu__logo .logo-small {
    height: 34px;
    width: auto;
    object-fit: contain;
}
.vitrina-logo img,
.header-st__logo img.logo {
    height: 64px;
    max-height: 64px;
    width: auto;
}

/* --- меню: активный пункт — цвет кнопок GetCourse, счётчики — розовый логотипа --- */
.menu__list li.active a {
    background: #b85ca0;
    color: #fff;
}
.menu__list a:hover {
    background: rgba(184, 92, 160, 0.10);
}
.menu__list-sub.active a {
    background: #f8e6f3;
    color: #8f427a;
}
.menu__list-sub.active a:before {
    background: #b85ca0;
}
.menu__list-num {
    background: #ee67ad !important;
    color: #fff;
}

/* --- ссылки и основные кнопки --- */
a {
    color: #b85ca0;
}
a:hover {
    color: #9e4f88;
}
.vitrina-btn-reg {
    background: #b85ca0 !important;
    border-color: #b85ca0 !important;
    color: #fff !important;
}
.vitrina-btn-reg:hover {
    background: #9e4f88 !important;
    border-color: #9e4f88 !important;
}

/* --- список уроков и карточки курса: светло-розовая подложка, как список тренинга в GetCourse --- */
.course-lessons,
.lessons-list,
.course-content__lessons {
    background: #fef0f9;
    border-radius: 10px;
}

/* --- фильтры «Преподаватель / Страна / Город / Категория» в списке курсов: для школы PD не нужны --- */
.courses-header .course-filter-teacher {
    display: none !important;
}

/* --- кнопки действий: мягкая розовая тень вместо красной --- */
.lesson-content__homework-link,
.course-start-btn,
.btn-danger {
    box-shadow: 0 6px 16px rgba(184, 92, 160, 0.28);
}

/* --- список уроков курса: без статусов ДЗ и контрольной там, где заданий нет --- */
.courses-lessons__item.pd-bez-zadanij .courses-lessons__desc {
    display: none;
}

/* --- разделы плашками друг под другом, как «Доступные тренинги» в GetCourse (_pd-razdely.php).
       Картинка 3000×600 встаёт справа по высоте плашки и не обрезается; название — текстом слева. --- */
.pd-razdely {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 6px 0 36px;
}
.pd-plashka {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 5 / 1;
    min-height: 132px;
    border-radius: 18px;
    background: #fef0f9;
    box-shadow: 0 2px 10px rgba(184, 92, 160, 0.10);
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease;
}
.pd-plashka:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(184, 92, 160, 0.22);
}
.pd-plashka__foto {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: auto;
    max-width: none;
    display: block;
}
.pd-plashka__tekst {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 1;
    box-sizing: border-box;
    width: 56%;
    padding-left: clamp(20px, 4.6%, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.pd-plashka__nazvanie {
    font-size: clamp(18px, 2.3vw, 32px);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: -0.01em;
    color: #3b1a34;
}
.pd-plashka__schet {
    margin-top: 10px;
    font-size: clamp(12px, 1.1vw, 15px);
    font-weight: 600;
    color: #b85ca0;
}
.pd-plashka:hover .pd-plashka__nazvanie {
    color: #9e4f88;
}
/* телефон: картинка сверху, название под ней — текст не наезжает на фото */
@media (max-width: 640px) {
    .pd-razdely {
        gap: 14px;
    }
    .pd-plashka {
        aspect-ratio: auto;
        min-height: 0;
        display: flex;
        flex-direction: column;
        border-radius: 14px;
    }
    .pd-plashka__foto {
        position: static;
        width: 100%;
        height: 104px;
        object-fit: cover;
        object-position: right center;
    }
    .pd-plashka--kvadrat .pd-plashka__foto {
        object-fit: contain;
    }
    .pd-plashka__tekst {
        position: static;
        width: 100%;
        padding: 12px 16px 14px;
    }
    .pd-plashka__schet {
        margin-top: 4px;
    }
}
.courses-square.pd-pusto,
.courses-list.pd-pusto {
    display: none;
}

/* --- текст ошибки под полем (вход, регистрация): крупнее и заметнее --- */
.help-block-error {
    margin-top: 6px;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #b0306f;
}

/* --- аудио урока (в GetCourse был плеер jPlayer) --- */
.gc-audio {
    margin: 0 0 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fef0f9;
}
.gc-audio__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: #3b1a34;
}
.gc-audio audio {
    display: block;
    width: 100%;
    max-width: 720px;
}
.gc-audio audio + .gc-audio__title {
    margin-top: 14px;
}

/* --- видео урока из архива GetCourse: свой закрытый плеер (course/video) --- */
.gc-video {
    margin: 0 0 18px;
    border-radius: 12px;
    overflow: hidden;
    background: #1d0f1a;
    line-height: 0;
}
.gc-video video {
    display: block;
    width: 100%;
    max-height: 78vh;
    background: #1d0f1a;
}

/* --- дерево тренингов (pd-razdel.php): подтренинги строками, как список тренинга в GetCourse --- */
.pd-derevo {
    margin: 4px 0 36px;
}
.pd-derevo__zagolovok {
    margin: 0;
    font-size: clamp(20px, 2vw, 28px);
    font-weight: 700;
    line-height: 1.2;
    color: #3b1a34;
}
.pd-derevo__schet {
    margin: 6px 0 20px;
    font-size: 13px;
    font-weight: 600;
    color: #b85ca0;
}
.pd-derevo__stroka {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 18px 12px 12px;
    margin-bottom: 10px;
    border: 1px solid #f3d3e6;
    border-radius: 12px;
    background: #fff;
    text-decoration: none;
    transition: box-shadow .18s ease, border-color .18s ease;
}
.pd-derevo__stroka:hover {
    border-color: #e7a8cf;
    box-shadow: 0 10px 26px rgba(184, 92, 160, 0.16);
}
.pd-derevo__foto {
    flex: 0 0 132px;
    width: 132px;
    height: 84px;
    border-radius: 9px;
    overflow: hidden;
    background: #f8e6f3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pd-derevo__foto img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pd-derevo__foto--uroki {
    color: #b85ca0;
    font-size: 26px;
}
.pd-derevo__tekst {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
}
.pd-derevo__nazvanie {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
    color: #b85ca0;
}
.pd-derevo__stroka:hover .pd-derevo__nazvanie {
    color: #9e4f88;
}
.pd-derevo__urokov {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #3b1a34;
}
.pd-derevo__strelka {
    flex: 0 0 auto;
    font-size: 26px;
    line-height: 1;
    color: #e7a8cf;
}
.pd-derevo__stroka--uroki {
    background: #fef0f9;
}
@media (max-width: 640px) {
    .pd-derevo__stroka {
        gap: 12px;
        padding: 10px 12px 10px 10px;
    }
    .pd-derevo__foto {
        flex-basis: 84px;
        width: 84px;
        height: 56px;
    }
    .pd-derevo__nazvanie {
        font-size: 14px;
    }
}

/* --- курсы внутри раздела: строками, картинка целиком (без обрезки голов), под названием — число уроков --- */
.courses-list__photo {
    flex: 0 0 150px;
    width: 150px;
    height: 96px;
    border-radius: 10px;
    background: #f8e6f3;
}
.courses-list__photo img,
.courses-square__photo img {
    object-fit: contain;
}
.courses-square__photo {
    background: #f8e6f3;
}
/* название курса — широкой колонкой, чтобы не ломалось на пять строк */
@media (min-width: 1280px) {
    .courses-list__col:first-child {
        width: 54%;
    }
    .courses-list__col:nth-child(2) {
        width: 26%;
        padding-left: 28px;
    }
    .courses-list__col:nth-child(3) {
        width: 20%;
    }
    .courses-list__step-title {
        margin-left: 20px;
    }
}
.pd-urokov {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 700;
    color: #3b1a34;
}
@media (max-width: 767px) {
    .courses-list__photo {
        flex-basis: 96px;
        width: 96px;
        height: 64px;
    }
}
