/* Бюджет выпуска Школы на /work/school/. Кадр 2068:779, карточка y 6523.
   Desktop — absolute от 1401px; ниже — белая карточка + текст под ней. */

.sh-budget {
    padding: 24px 16px 48px;
}

.sh-budget__stage {
    position: relative;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

.sh-budget__card {
    display: none;
}

.sh-budget__sum {
    margin: 0;
    padding: 36px 20px 0;
    text-align: center;
    font-family: "life-full", "life", sans-serif !important;
    font-size: clamp(56px, 14vw, 88px);
    line-height: 1;
    letter-spacing: -2px;
    color: #3EA74F;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 6px 44px rgba(62, 167, 79, 0.14);
}

.sh-budget__rub {
    margin: 0;
    padding: 8px 20px 36px;
    text-align: center;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.22px;
    color: #4D4D4D;
    background: #fff;
    border-radius: 0 0 20px 20px;
    box-shadow: 0 6px 44px rgba(62, 167, 79, 0.14);
}

/* Склеить тень sum+rub в одну карточку */
.sh-budget__sum {
    box-shadow: none;
    position: relative;
    z-index: 1;
}

.sh-budget__rub {
    position: relative;
    z-index: 0;
    box-shadow: 0 6px 44px rgba(62, 167, 79, 0.14);
}

.sh-budget__title {
    margin: 24px auto 0;
    max-width: 475px;
    padding: 0 4px;
    font-size: clamp(22px, 5.5vw, 28px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.28px;
    text-align: center;
    color: #4D4D4D;
}

@media (min-width: 768px) and (max-width: 991px) {
    .sh-budget {
        padding: 40px 24px 72px;
    }

    .sh-budget__stage {
        max-width: 720px;
    }

    .sh-budget__sum {
        font-size: 104px;
        padding-top: 48px;
    }

    .sh-budget__rub {
        font-size: 26px;
        padding-bottom: 48px;
    }

    .sh-budget__title {
        font-size: 32px;
        margin-top: 28px;
        text-align: left;
        max-width: none;
    }
}

@media (min-width: 992px) {

    body.page-school .sh-budget {
        padding-top: 158px;
        padding-bottom: 134px;
        padding-left: 0;
        padding-right: 0;
    }

    body.page-school .sh-budget__stage {
        position: relative;
        width: 1440px;
        max-width: 100%;
        height: 357px;
        margin: 0 auto;
        overflow: visible;
    }

    body.page-school .sh-budget__card,
    body.page-school .sh-budget__sum,
    body.page-school .sh-budget__rub,
    body.page-school .sh-budget__title {
        position: absolute;
        margin: 0;
    }

    body.page-school .sh-budget__card {
        display: block;
        left: 0;
        top: 0;
        width: 826px;
        height: 357px;
        border-radius: 20px;
        background: #fff;
        box-shadow: 0 6px 44px rgba(62, 167, 79, 0.14);
        z-index: 0;
        pointer-events: none;
    }

    body.page-school .sh-budget__sum {
        left: 72px;
        top: 101px;
        z-index: 1;
        padding: 0;
        text-align: left;
        font-family: "life-full", "life", sans-serif !important;
        font-size: 136px;
        line-height: 1;
        letter-spacing: 0;
        color: #3EA74F;
        white-space: nowrap;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    body.page-school .sh-budget__rub {
        left: 620px;
        top: 255px;
        z-index: 1;
        padding: 0;
        text-align: left;
        font-size: 30px;
        letter-spacing: -0.3px;
        background: transparent;
        border-radius: 0;
        box-shadow: none;
    }

    body.page-school .sh-budget__title {
        left: 920px;
        top: 35px;
        width: 475px;
        max-width: none;
        padding: 0;
        z-index: 1;
        font-size: 50px;
        line-height: 1.1;
        letter-spacing: -0.5px;
        text-align: left;
    }
}
