/* «Почему наша Школа — особенная?» на /work/school/. Кадр 2068:779, заголовок y 1067.
   Desktop — absolute от 1401px; ниже — колонка: title → photo → text → btn. */

.sh-why {
    padding: 40px 0 24px;
    background: #fff;
    overflow-x: clip;
}

.sh-why__stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 720px;
    margin: 0 auto;
    padding: 0 16px;
}

.sh-why__title {
    order: 1;
    margin: 0 0 24px;
    font-size: clamp(28px, 7vw, 36px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.64px;
    text-align: center;
    color: #4D4D4D;
}

.sh-why__title span {
    color: #3EA74F;
}

.sh-why__photo {
    order: 2;
    display: block;
    width: min(100%, 360px);
    height: auto;
    margin: 0 0 8px;
    pointer-events: none;
}

.sh-why__bag {
    order: 3;
    display: block;
    width: min(56%, 200px);
    height: auto;
    margin: -72px 0 16px auto;
    pointer-events: none;
}

.sh-why__text {
    order: 4;
    width: 100%;
    max-width: 762px;
    margin: 0 0 24px;
    padding: 0;
    font-size: 16px;
    line-height: 1.2;
    color: #4D4D4D;
}

.sh-why__text p {
    margin: 0 0 16px;
}

.sh-why__text p:last-child {
    margin-bottom: 0;
}

.sh-why__btn {
    order: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 280px;
    height: 50px;
    margin: 0 auto 8px;
    border-radius: 60px;
    background: #3EA74F;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 23px;
    letter-spacing: -0.32px;
    text-transform: uppercase;
    text-decoration: none;
}

.sh-why__btn:hover {
    background: #359245;
    color: #fff;
}

@media (min-width: 768px) and (max-width: 991px) {
    .sh-why {
        padding: 56px 0 32px;
    }

    .sh-why__stage {
        max-width: 900px;
        padding: 0 24px;
    }

    .sh-why__title {
        font-size: 44px;
        margin-bottom: 32px;
    }

    .sh-why__photo {
        width: min(100%, 420px);
    }

    .sh-why__bag {
        width: 220px;
        margin-top: -88px;
    }

    .sh-why__text {
        font-size: 18px;
        line-height: 1.15;
    }

    .sh-why__btn {
        font-size: 18px;
        max-width: 261px;
    }
}

@media (min-width: 992px) {

    body.page-school .sh-why {
        padding-top: 101px;
        background: #fff;
    }

    body.page-school .sh-why__stage {
        position: relative;
        display: block;
        width: 1440px;
        max-width: 100%;
        height: 700px;
        margin: 0 auto;
        padding: 0;
    }

    body.page-school .sh-why__title,
    body.page-school .sh-why__photo,
    body.page-school .sh-why__bag,
    body.page-school .sh-why__text,
    body.page-school .sh-why__btn {
        position: absolute;
        margin: 0;
        order: unset;
    }

    body.page-school .sh-why__title {
        z-index: 4;
        left: 202px;
        top: 0;
        width: 1037px;
        height: 66px;
        font-size: 66px;
        font-weight: 400;
        line-height: 1;
        letter-spacing: -1.32px;
        text-align: center;
        color: #4D4D4D;
        white-space: nowrap;
    }

    /* AABB макета: поворот и кружки уже в PNG, прозрачные края */
    body.page-school .sh-why__photo {
        display: block;
        z-index: 2;
        left: 13px;
        top: 128px;
        width: 490.12px;
        height: 517.39px;
        max-width: none;
        pointer-events: none;
    }

    body.page-school .sh-why__bag {
        display: block;
        left: 326px;
        top: 387px;
        width: 330px;
        height: 330px;
        max-width: none;
        z-index: 1;
        pointer-events: none;
    }

    body.page-school .sh-why__text {
        z-index: 4;
        left: 678px;
        top: 142px;
        width: 762px;
        max-width: none;
        box-sizing: border-box;
        padding: 0 48px 0 0;
        font-size: 22px;
        font-weight: 400;
        line-height: 1.1;
        letter-spacing: -0.22px;
        color: #4D4D4D;
    }

    body.page-school .sh-why__text p {
        margin: 0;
    }

    body.page-school .sh-why__text p + p {
        margin-top: 24px;
    }

    body.page-school .sh-why__btn {
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 4;
        left: 678px;
        top: 551px;
        width: 261px;
        max-width: none;
        height: 50px;
        border-radius: 60px;
        background: #3EA74F;
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        line-height: 23px;
        letter-spacing: -0.36px;
        text-transform: uppercase;
        text-decoration: none;
    }
}
