
/*
 * Единое оформление трёх продуктовых карточек.
 * Эталон: утверждённая карточка Б'АНК.
 * Не меняет данные, акции, кнопки и JS.
 */

/* Общая типографика блока стоимости */
html body .cards .course.productCourse
.mainPriceBlock > .mainPriceLabel {
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    letter-spacing: .055em !important;
}

html body .cards .course.productCourse
.mainPriceBlock > .price {
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    line-height: 1.12 !important;
    letter-spacing: 0 !important;
    color: #fff !important;
}

/* Акционная цена: если она есть */
html body .cards .course.productCourse
.price .schoolPriceRow > .schoolPriceOld {
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: #69747a !important;
}

html body .cards .course.productCourse
.price .schoolPriceRow > .schoolPriceNow {
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-size: 34px !important;
    font-weight: 900 !important;
    color: #fff !important;
}

html body .cards .course.productCourse
.price .schoolPromoLabel {
    font-family: Inter, "Segoe UI", Arial, sans-serif !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    color: #ff303c !important;
    letter-spacing: 0 !important;
}

/* Планшетная и десктопная компоновка */
@media (min-width:701px) {

    html body .cards .course.productCourse .productStats {
        display: grid !important;
        grid-template-columns: repeat(4,minmax(0,1fr)) !important;
        gap: 9px !important;
    }

    html body .cards .course.productCourse .bottom {
        display: grid !important;
        grid-template-columns: minmax(0,1fr) max-content !important;
        align-items: end !important;
        column-gap: 12px !important;
        row-gap: 0 !important;
    }

    html body .cards .course.productCourse
    .bottom > .mainPriceBlock {
        grid-column: 1 !important;
        align-self: end !important;
        min-width: 0 !important;
        margin: 0 !important;
        transform: none !important;
    }

    html body .cards .course.productCourse
    .bottom > .productActions {
        grid-column: 2 !important;
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: flex-end !important;
        align-items: end !important;
        align-self: end !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
        gap: 12px !important;
    }
}

/* На средних экранах сохраняем две компактные кнопки */
@media (min-width:701px) and (max-width:900px) {
    html body .cards .course.productCourse
    .bottom > .productActions .btn {
        box-sizing: border-box !important;
        flex: 0 0 138px !important;
        width: 138px !important;
        min-width: 0 !important;
        max-width: 138px !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
}

/* Мобильная компоновка, соответствующая Б'АНК */
@media (max-width:700px) {

    html body .cards .course.productCourse .productStats {
        display: grid !important;
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        gap: 9px !important;
    }

    html body .cards .course.productCourse .bottom {
        display: grid !important;
        grid-template-columns: minmax(0,1fr) !important;
        align-items: stretch !important;
        gap: 13px !important;
    }

    html body .cards .course.productCourse
    .bottom > .mainPriceBlock {
        grid-column: 1 !important;
        margin: 0 !important;
        transform: none !important;
    }

    html body .cards .course.productCourse
    .bottom > .productActions {
        grid-column: 1 !important;
        display: grid !important;
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        width: 100% !important;
        gap: 10px !important;
        margin: 0 !important;
    }
}
