
    .container .row .col-12 {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 20px;
    }

    .header-subtext {
        max-width: 700px;
        font-size: 16px;
        color: #fff;
        margin: 0;
        font-weight: 400;
    }

    .header-subtext p {

        margin: 0;
    }

    .page-header-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        gap: 40px;
    }

    .page-title-wrapper {
        display: flex;
        align-items: center;
        gap: 27px;
        flex-wrap: wrap;
    }

    .page-thumbnail {
        flex-shrink: 0;
        margin-right: 0;
    }

    .page-thumbnail img {
        max-width: 100%;
        height: auto;
        display: block;
    }

    .order-button-container {
        justify-content: left !important;
        margin: 0 auto !important;
        padding: 0;
    }

    .page-thumbnail {
        width: 246px;
        height: 246px;
        overflow: hidden;
        flex-shrink: 0;
    }

    .page-thumbnail img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
    }
.page-title-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
}

.header-subtext {
    order: 2; /* гарантированно после H1 */
}

.order-button-container {
    order: 3; /* гарантированно после текста */
}
    @media (min-width: 769px) {
        .page-thumbnail { order: 2; }
        .page-title-wrapper { order: 1; }
        .page-header-content {
            flex-direction: row;
        }

        .page-title-wrapper {
            flex: 1;
        }

        .page-thumbnail {
            margin-left: auto;
        }

    }

    @media (max-width: 768px) {
        .page-header-content {
            flex-direction: column;
            align-items: center;
        }

        .header-subtext {
            text-align: center;
        }

        .page-title-wrapper {
            order: 2;
            flex-direction: column;
            align-items: flex-start;
        }

        .page-thumbnail {
            order: 1;
            margin-bottom: 20px;
        }

        .page-thumbnail {
            width: 246px;
            height: 246px;
            overflow: hidden;
            flex-shrink: 0;
        }

        .page-thumbnail img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        .page-thumbnail img {
            width: 100%;
        }

        .order-button-container {
            justify-content: flex-start !important;
        }

        .order-button-container {
            justify-content: center !important;
            margin: 0 auto !important;
        }

        .page-title-wrapper h1 {
            text-align: center !important;
            margin: 0 auto !important;
        }
    }

#block-nums { background-color: #dbdbdb; background-image: url('../../img/about_back-desktop.webp'); background-position: center; background-repeat: no-repeat; background-size: cover; margin-top: 0; padding: 60px 0; overflow-x: hidden; min-height: 250px; }
@media (max-width: 768px) { #block-nums { background-image: url('../../img/about_back-mobile.webp'); } }
