@media only screen and (max-width: 650px) {

    body {
        display: flex; 
        flex-direction: column; 
        min-height: 100vh; 
    }

    .burger {
        display: flex;
        align-content: center;
    }

    .header {
        padding: 1rem;
        text-align: right;
        vertical-align: middle;
        background: var(--custom-blue);
        border: var(--custom-black) solid 1px;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 50px;
    }

    .table_of_content h2 {
        margin-top: 1rem;
        margin-bottom: 1rem;
        color: var(--custom-black);
    }

    .sections h2 {
        margin-bottom: 0.5rem;
    }
    
    .sections h3 {
        margin-bottom: 0.5rem;
    }

    .column_33 {
        margin-bottom: 1rem;
    }

    .contact-info {
        display: none;
    }

    .content-button  {
        cursor: pointer;
    }

    .footer {
        text-align: right;
        background: var(--custom-blue);
        border: var(--custom-black) solid 1px;
        padding: 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
        height: 50px;
    }

    .privacy_mobile {
        position: absolute;
        bottom: 100px;
        display: block;
    }

    .author {
        margin: auto;
    }

    .privacy {
        display: none;
    }

    #main_body {
        flex: 1; 
        width: 100%; 
        display: flex; 
        position: relative; 
    }
    
    /* Затемнение фона */
    #main_body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5); /* Чёрное затемнение */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 99; /* Выше, чем контент, но ниже, чем меню */
    }

    /* Когда меню открыто, затемнение появляется */
    #main_body.menu-active::before {
        opacity: 1;
        visibility: visible;
    }

    #main_body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5); /* Чёрное затемнение */
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, visibility 0.3s ease;
        z-index: 99; /* Выше, чем контент, но ниже, чем меню */
    }

    #main_body.menu-active::before {
        opacity: 1;
        visibility: visible;
    }

    .tc_mobile {
        display: block;
        position: fixed; /* Изменить с absolute на fixed */
        top: 0; 
        left: -100%; 
        height: 100vh; /* Изменить со 100% на 100vh */
        background-color: var(--custom-blue);
        border: var(--custom-black) solid 1px;
        z-index: 100;
        min-width: 50%;
        padding-left: 1rem;
        padding-right: 1rem;
        transition: left 0.4s;
    }

    .tc_mobile.active {
        left: 0;
    }

    .tc_desktop {
        display: none;
    }

    .main_content {
        height: auto; /* Заменить min-height */
        float: left;
        width: 100%;
        padding: 1rem;
        background: var(--custom-white);
        border-left: var(--custom-black) 1px solid;
        border-right: var(--custom-black) 1px solid;
        position: relative;
        overflow-y: auto; /* Добавить при необходимости прокрутки контента */
    }
    
    .generalpage {
        display: flex;
        flex-direction: column;
    }
    
    .textsentence {
        width: 100%;
        order: 2; /* Этот элемент будет отображаться вторым */
    }
    
    .imgsentence {
        width: 100%;
        order: 1; /* Этот элемент будет отображаться первым */
        flex-direction: column-reverse;
        align-items: center;
    }

    .profile-image {
        margin: 0px;
        margin-top: 1rem;
    }

    .desktop-only {
        display: none;
    }
    
    .mobile-only {
        display: block;
    }

    .mobile-main-title {
        display: block;
        margin-bottom: 1rem;
    }
    
    .desktop-main-title {
        display: none;
    }

    .textsentence h1 {
        display: none;
    }

    #network-container {
        height: 300px;
    }
    
    .linkpdf img {
        width: 34px;
        height: 34px;
        min-width: 34px;
        object-fit: contain;
    }

    .person-left {
        max-width: 100%;
    }

    .person-right {
        margin-top: 0.5rem;
    }

}