.cabinet-grid,
.moderation-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: 280px minmax(0, 1fr);
    margin-top: 30px;
}

/* .side-card,
.content-card,
.entry-card,
.map-card {
    padding: 24px;
    border-radius: 20px;
    background: rgba(255, 248, 237, 0.96);
    border: 1px solid rgba(67, 56, 41, 0.1);
    box-shadow: 0 18px 34px rgba(34, 27, 18, 0.08);
} */
.section_content {
    background: #FFFFFF;
    border-radius: 8px;
    padding: 30px;
}
.profile_top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.page-title {
    font-family: 'Oswald-Medium';
    font-weight: 500;
    font-size: 32px;
    line-height: 100%;
    letter-spacing: 4%;
    text-transform: uppercase;
    color: #3D5632;
}
.profile_top_link {
    border: 1px solid #3D5632;
    border-radius: 8px;
    padding: 5px 24px;
    font-family: 'Lora-Regular';
    font-weight: 400;
    font-size: 18px;
    line-height: 130%;
    color: #3D5632;
    transition: .8s;
}
.profile_top_link:hover {
    color: #516A46;
    border: 1px solid #516A46;
}
.profile_top_link:active {
    color: #29421E;
    border: 1px solid #29421E; 
}
.side-card {
    position: sticky;
    top: 110px;
    align-self: start;
    display: grid;
    gap: 6px;
}
.side-card a {
    padding: 10px 24px;
    border-radius: 8px;
    background: #3D56321A;
    font-family: 'Lora-Regular';
    font-weight: 400;
    font-size: 16px;
    line-height: 130%;
    color: #333333;
    transition: .8s ;
}
.side-card a.active {
    background: #3D5632;
    color: #FFF4E7;
}
.side-card a:hover {
    background: #FFFBF6;
}
.side-card a.active:hover {
    background: #3D5632;
}
.profile_link {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.isProfileComplete {
    position: relative;
}
.isProfileComplete p {
    position: absolute;
    background: #FFFBF6;
    padding: 5px 10px;
    color: #333333;
    border-radius: 8px;
    width: 100%;
    min-width: max-content;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: 0 12px 24px rgba(44, 74, 44, 0.16);
    opacity: 0;
    transition: .5s;
    pointer-events: none;
}
.isProfileComplete:hover p {
    opacity: 1;
}
.profile-pending-notice, .profile-moderation-hint, .profile_new {
    font-family: 'GolosText-Regular';
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    color: #33333399;
}
.legal-representative {
    grid-area: 4 / 1 / 5 / -1;
}
.legal-representative .form-grid {
    margin-top: 0;
}
.legal-representative .field input {
    background: #EDF0524D;
}
.status_disabled:disabled .profile-pending-notice--danger,
.status_disabled:disabled .checkbox-line {
    display: none;
}
.status_disabled:disabled .legal-representative input {
    border: 1px dashed #CC2B2BCC;
    background: #FFE9E7;
    color: transparent;
}
.user14_text {
    font-family: 'Lora-Regular';
    font-weight: 400;
    font-size: 15px;
    line-height: 20px;
    color: #D94D4D;
    width: 100%;
    text-align: center;
    display: block;
    margin-top: 10px;
}
.legal-representative.active .field input {
    background: #fff;
    border: 1px dashed #9D653F66;
    color: #333333;
}
.profile-pending-notice--danger.active {
    display: none;
}
.history_text {
    font-family: 'GolosText-Regular';
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    color: #3D5632;
}
.history_info {
    border-radius: 8px;
    background: #F5F3EF;
    overflow: hidden;
    margin-bottom: 16px;
}
.toggle-input {
    display: none;
}
.toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    font-family: 'Oswald-Medium', sans-serif;
    font-weight: 500;
    font-size: 18px;
    line-height: 100%;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3D5632;
    cursor: pointer;
    user-select: none;
}
.toggle-label::after {
    content: '+';
    font-size: 24px;
    font-family: sans-serif;
    line-height: 1;
    color: #3D5632;
    transition: transform 0.25s;
}
.toggle-input:checked ~ .toggle-label::after {
    content: '−';
}
.history_info_content,
.history_command_content {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.7s ease, opacity 0.5s ease, padding-bottom 0.5s ease;
}
.toggle-input:checked ~ .history_info_content,
.toggle-input:checked ~ .history_command_content {
    max-height: 3000px;
    opacity: 1;
    padding-bottom: 20px;
}
/* Страница «Безопасность»: форма смены пароля слева, требования справа. */
.security-grid {
    display: grid;
    gap: 60px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 320px);
    align-items: start;
}
.security-form h3,
.security-rules h3 {
    font-family: 'Lora-SemiBold';
    font-weight: 600;
    font-size: 20px;
    line-height: 24px;
    color: #333333;
    margin: 0 0 8px;
}
.security-form .page-subtitle {
    font-family: 'GolosText-Regular';
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    color: #33333399;
}
.security-form__form {
    display: grid;
}
.security-form__form .field {
    margin-bottom: 24px;
}
.security-form .button-row {
    margin-top: 8px;
}
.security-rules__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
    margin-top: 16px;
}
.security-rules__list li {
    position: relative;
    padding-left: 18px;
    font-family: 'GolosText-Regular';
    font-weight: 400;
    font-size: 14px;
    line-height: 130%;
    color: #33333399;
}
.security-rules__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #33333399;
    font-weight: 700;
}
.moderator_block {
    margin-top: 30px;
    border-radius: 8px;
    background: #F5F3EF;
    padding: 16px;
}
.moderator_block .entry-card {
    margin-bottom: 20px;
    background: #FFFFFF;
    border-radius: 8px;
    padding: 16px;
}
.moderator_block .entry-card:last-child {
    margin-bottom: 0;
}
.moderator_block .entry-card h4 {
    font-family: 'Lora-Bold';
    font-weight: 700;
    font-size: 18px;
    line-height: 24px;
    color: #9D653F;
    margin-bottom: 12px;
}
.text_moderator {
    font-family: 'GolosText-Regular';
    font-weight: 400;
    font-size: 12px;
    line-height: 130%;
    color: #33333399;
    text-align: center;
    margin-top: 10px;
}
.text_moderator a {
    text-decoration: underline;
    text-underline-offset: 3px;
}
.visible768 {
    display: none;
}
.history_info_checkbox-inner span a {
    color: #9D653F;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.comment-list {
    max-height: 378px;
    overflow-y: auto;
}
@media screen and (max-width: 1279.98px) {
    .legal-representative .field label {
        height: 40px;
    }
}
@media screen and (max-width: 1023.98px) {
    .security-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 30px;
    }
    .cabinet-grid {
        display: flex;
        flex-direction: column;
    }
    .side-card {
        position: inherit;
        display: flex;
        width: 100%;
        top: 0;
    }
    .side-card a.active {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
}
@media screen and (max-width: 767.98px) {
    .visible768 {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
        gap: 8px;
        background: #FFFFFF;
        border-radius: 8px;
        padding: 100px 16px;
        font-family: 'Lora-Regular';
        font-weight: 400;
        font-size: 16px;
        line-height: 22px;
        text-align: center;
    }
    .hide768 {
        display: none;
    }
    .side-card a.active {
        flex: none;
    }
    .side-card .slick-slide {
        margin-right: 6px;
    }
    .side-card .slick-slide:last-child {
        margin-right: 0;
    }
    .side-card a {
        width: 200px;
        text-align: center;
    }
    .profile_top {
        flex-direction: column;
        gap: 24px;
        align-items: flex-start;
    }
    .page-title {
        font-size: 36px;
        line-height: 48px;
    }
    .side-card-wrapper {
        width: 100vw;
        position: relative;
        left: 50%;
        right: 50%;
        margin-left: -50vw;
        margin-right: -50vw;
        top: 0;
        padding-left: max(24px, calc((100vw - 660px) / 2 + 24px));
    }
    .field, .field--full {
        width: 100%;
    }
    .legal-representative {
        grid-area: 6 / 1 / 7 / -1;
    }
    .legal-representative .field label {
        height: auto;
    }
}
@media screen and (max-width: 659.98px) {
    .side-card-wrapper {
        padding-left: max(24px, calc((100vw - 475px) / 2 + 24px));
    }
}
@media screen and (max-width: 474.98px) {
    .side-card-wrapper {
        padding-left: max(20px, calc((100vw - 425px) / 2 + 20px));
    }
}
@media screen and (max-width: 424.98px) {
    .side-card-wrapper {
        padding-left: max(16px, calc((100vw - 375px) / 2 + 16px));
    }
}
@media screen and (max-width: 374.98px) {
    .side-card-wrapper {
        padding-left: max(16px, calc((100vw - 320px) / 2 + 16px));
    }
}