/* ==========================================================================
   FONT FACE DECLARATIONS
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@200..800&display=swap');
   
   
   @font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter18pt-Light.woff2') format('woff2'),
         url('/fonts/Inter18pt-Light.woff') format('woff');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter18pt-ExtraLight.woff2') format('woff2'),
         url('/fonts/Inter18pt-ExtraLight.woff') format('woff');
    font-weight: 200;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter18pt-Regular.woff2') format('woff2'),
         url('/fonts/Inter18pt-Regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter18pt-Italic.woff2') format('woff2'),
         url('/fonts/Inter18pt-Italic.woff') format('woff');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter18pt-Medium.woff2') format('woff2'),
         url('/fonts/Inter18pt-Medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter18pt-SemiBold.woff2') format('woff2'),
         url('/fonts/Inter18pt-SemiBold.woff') format('woff');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter18pt-Bold.woff2') format('woff2'),
         url('/fonts/Inter18pt-Bold.woff') format('woff');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter18pt-ExtraBold.woff2') format('woff2'),
         url('/fonts/Inter18pt-ExtraBold.woff') format('woff');
    font-weight: 800;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Inter';
    src: url('/fonts/Inter18pt-Black.woff2') format('woff2'),
         url('/fonts/Inter18pt-Black.woff') format('woff');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}
/* ==========================================================================
   CSS VARIABLES & CUSTOM PROPERTIES
   ========================================================================== */

:root {
    /* Colors - Primary */
    --bg-primary: #f0f2f5;
    --bg-secondary: #f0f2f5;
    --white: #ffffff;
    --black: #000000;
    
    /* Colors - Brand */
    --menu-color: #10519a;
    --accent-violet: #0b67cf;
    --accent-primary: #10519a;
    --accent-secondary: #10519a;
    
    /* Colors - Text */
    --text-primary: #2f2f2f;
    --text-secondary: #818c99;
    --text-on-accent: #ffffff;
    --text-muted: #666666;
    --text-light: #888888;
    
    /* Colors - Status */
    --status-online: #22c55e;
    --status-offline: #9ca3af;
    --status-error: #dc3545;
    --status-success: #28a745;
    --status-warning: #ffc107;
    
    /* Colors - UI Elements */
    --border-color: #e0e0e0;
    --border-light: #e7ebf0;
    --border-focus: #10519a;
    --shadow-light: rgba(0, 0, 0, 0.05);
    --shadow-medium: rgba(0, 0, 0, 0.1);
    --shadow-heavy: rgba(0, 0, 0, 0.2);
    
    /* Spacing */
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    
    /* Border Radius */
    --radius-sm: 3px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --radius-xl: 20px;
    --radius-full: 50%;
    
    /* Shadows */
    --shadow: 0 2px 5px var(--shadow-medium);
    --shadow-lg: 0 4px 20px var(--shadow-heavy);
    
    /* Layout */
    --header-height: 60px;
    --sidebar-width: 17%;
    --right-sidebar-width: 27%;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-tooltip: 1000;
    --z-modal: 99999;
    --z-preloader: 99999999;
}

/* ==========================================================================
   BASE STYLES & RESET
   ========================================================================== */

html {
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-weight: 400;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

code {
    white-space: normal;
    background: var(--bg-secondary);
    padding: var(--spacing-sm);
    display: block;
    border-radius: var(--radius-sm);
}
*{
    box-sizing: border-box;
}
/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, .h1, .h2, .h3, .h4 {
    font-weight: 600;
    color: var(--menu-color);
}

h1 {
    font-size: 17px;
}
p{
    line-height: 1.5;
}
.news-content h1 {
    font-size: 17px;
    line-height: 1.3;
    font-weight: 700;
}
.news-header h1 {
    padding: 0;
    margin: 0;
}
.static-content h1 {
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
}

a {
    color: var(--accent-secondary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.preloader-js.active .overlay-loader {
	display: block;
	margin: auto;
	width: 113px;
	height: 113px;
	position: relative;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
}
.preloader-js.active  .loader {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	width: 113px;
	height: 113px;
	animation-name: rotateAnim;
		-o-animation-name: rotateAnim;
		-ms-animation-name: rotateAnim;
		-webkit-animation-name: rotateAnim;
		-moz-animation-name: rotateAnim;
	animation-duration: 0.4s;
		-o-animation-duration: 0.4s;
		-ms-animation-duration: 0.4s;
		-webkit-animation-duration: 0.4s;
		-moz-animation-duration: 0.4s;
	animation-iteration-count: infinite;
		-o-animation-iteration-count: infinite;
		-ms-animation-iteration-count: infinite;
		-webkit-animation-iteration-count: infinite;
		-moz-animation-iteration-count: infinite;
	animation-timing-function: linear;
		-o-animation-timing-function: linear;
		-ms-animation-timing-function: linear;
		-webkit-animation-timing-function: linear;
		-moz-animation-timing-function: linear;
}
.preloader-js.active .loader div {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	border: 1px solid rgb(108,35,192);
	position: absolute;
	top: 2px;
	left: 0;
	right: 0;
	bottom: 0;
	margin: auto;
}
.preloader-js.active .loader div:nth-child(odd) {
	border-top: none;
	border-left: none;
}
.preloader-js.active .loader div:nth-child(even) {
	border-bottom: none;
	border-right: none;
}
.preloader-js.active .loader div:nth-child(2) {
	border-width: 2px;
	left: 0px;
	top: -5px;
	width: 14px;
	height: 14px;
}
.preloader-js.active .loader div:nth-child(3) {
	border-width: 2px;
	left: -1px;
	top: 3px;
	width: 20px;
	height: 20px;
}
.preloader-js.active .loader div:nth-child(4) {
	border-width: 3px;
	left: -1px;
	top: -5px;
	width: 27px;
	height: 27px;
}
.preloader-js.active .loader div:nth-child(5) {
	border-width: 3px;
	left: -1px;
	top: 5px;
	width: 36px;
	height: 36px;
}
.preloader-js.active .loader div:nth-child(6) {
	border-width: 5px;
	left: 0px;
	top: -5px;
	width: 45px;
	height: 45px;
}
.preloader-js.active .loader div:nth-child(7) {
	border-width: 5px;
	left: 0px;
	top: 7px;
	width: 56px;
	height: 56px;
}


@keyframes rotateAnim {
	from {
		transform: rotate(360deg);
	}
	to {
		transform: rotate(0deg);
	}
}

@-o-keyframes rotateAnim {
	from {
		-o-transform: rotate(360deg);
	}
	to {
		-o-transform: rotate(0deg);
	}
}

@-ms-keyframes rotateAnim {
	from {
		-ms-transform: rotate(360deg);
	}
	to {
		-ms-transform: rotate(0deg);
	}
}

@-webkit-keyframes rotateAnim {
	from {
		-webkit-transform: rotate(360deg);
	}
	to {
		-webkit-transform: rotate(0deg);
	}
}

@-moz-keyframes rotateAnim {
	from {
		-moz-transform: rotate(360deg);
	}
	to {
		-moz-transform: rotate(0deg);
	}
}




/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

/* Display */
.flex { display: flex; }
.dflex { display: flex; }
.aic { align-items: center; }

/* Flexbox */
.items-center { align-items: center; }
.flex-1 { flex: 1 1 0%; }
.justify-between { justify-content: space-between; }

/* Typography */
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.font-semibold { font-weight: 600; }

/* Spacing */
.pr-0 { padding-right: 0; }
.p-4 { padding: var(--spacing-sm) var(--spacing-md); }
.p-16 { padding: var(--spacing-xl); }
.mr-3 { margin-right: 0.75rem; }

/* Sizing */
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }

/* Colors */
.bg-gray-100 { background-color: #f3f4f6; }
.text-gray-800 { color: #1f2937; }
.text-gray-500 { color: #6b7280; }
.text-blue-500 { color: #3b82f6; }

/* Spacing utilities */
.space-x-2 > * + * { margin-left: 0.5rem; }

/* Focus states */
.focus\:outline-none:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

span.user-avatar {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    position: absolute;
    left: -50px;
}
.profile-header span.user-avatar-img.no-image {
    height: 180px;
}
.preloader-js {
    position: fixed;
    width: 80px;
    height: 80px;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    z-index: 99999999;
}
.preloader-js.active{
    display: block !important;
}
.icon{
display: inline-flex;
align-items: center;
justify-content: center;

}
.icon:after{
display: flex;
align-items: center;
justify-content: center;
}

.chat-icon:after{
    content:url('../images/chat-icon.svg');
    height: 34px;
    width: 34px;
}
.chat_confirm-icon:after{
    content:url('../images/chat_confirm-icon.svg');
    height: 34px;
    width: 34px;
}


 /* Стили для прелоадера */
 .preloader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    display: none; /* Скрыт по умолчанию */
    z-index: 10;
}

.preloader.active {
    display: block; /* Показываем, когда активен */
}

.preloader .wave {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #9a85c180; /* Полупрозрачный синий */
    animation: wave 1.5s infinite ease-out;
    opacity: 0;
}

.preloader .wave:nth-child(2) {
    animation-delay: 0.3s; /* Задержка для второй волны */
}

.preloader .wave:nth-child(3) {
    animation-delay: 0.6s; /* Задержка для третьей волны */
}

@keyframes wave {
    0% {
        transform: scale(0);
        opacity: 0.8;
    }
    100% {
        transform: scale(2); /* Радиус волны до 80px * 2 */
        opacity: 0;
    }
}

/* Контейнер для контента */
.main-content-js {
    position: relative; /* Для центрирования прелоадера */
    min-height: 200px; /* Минимальная высота для видимости прелоадера */
    align-items: flex-start;
}


/* Global Styles */





/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn-primary {
    outline: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    padding: 0 var(--spacing-lg);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--text-on-accent);
    background-color: var(--accent-secondary);
    border: none;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background-color: #e55a3e;
    box-shadow: 0 4px 8px var(--shadow-medium);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px var(--shadow-medium);
}

.btn-primary:focus {
    box-shadow: 0 1px 2px var(--shadow-medium);
}

/* Button sizes */
.btn-medium {
    height: 40px;
    padding: 0 var(--spacing-lg);
    font-size: 15px;
}

.btn-small {
    height: 28px;
    padding: 0 var(--spacing-md);
    font-size: 12px;
}

.btn-micro {
    height: 22px;
    padding: 0 var(--spacing-sm);
    font-size: 12px;
}

.btn-circle {
    height: 21px;
    width: 21px;
    padding: var(--spacing-xs);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-full-width {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
}

/* Button variants */
.btn-accent-primary {
    background: var(--accent-primary);
}

.btn-accent-primary:hover {
    background: var(--accent-violet);
}

.btn-gray {
    background: var(--bg-secondary);
    color: var(--accent-primary);
    box-shadow: none;
}

.btn-gray:hover {
    background: var(--accent-primary);
    color: var(--white);
}
/* ==========================================================================
   TOOLTIPS
   ========================================================================== */

.tooltipster-sidetip .tooltipster-box {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 28px 0 var(--shadow-heavy), 0 2px 4px 0 var(--shadow-medium);
    max-width: 300px;
}

.tooltipster-sidetip .tooltipster-content {
    color: var(--text-primary);
    font-size: 13px;
    line-height: 1.4;
    padding: 8px 12px;
    word-wrap: break-word;
}

.tooltipster-sidetip .tooltipster-arrow-background {
    border: none;
    background-color: var(--white);
}

.tooltipster-sidetip .tooltipster-arrow-border {
    border-top-color: var(--border-color);
    border-right-color: var(--border-color);
    border-bottom-color: var(--border-color);
    border-left-color: var(--border-color);
}

/* ==========================================================================
   SCROLL TO TOP BUTTON
   ========================================================================== */

#toTop {
    position: fixed;
    right: 10px;
    bottom: 1.5rem;
    z-index: var(--z-dropdown);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: var(--radius-full);
    background: var(--accent-violet);
    color: var(--white);
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

#toTop.show {
    opacity: 0.9;
    visibility: visible;
    transform: translateY(0);
}

#toTop:hover {
    opacity: 1;
}

#toTop:not(.show) {
    transform: translateY(20px);
}

/* Корректировка позиционирования стрелки для белой темы */
.tooltipster-sidetip .tooltipster-top .tooltipster-arrow-background {
    border-top-color: var(--tooltip-bg);
}
.tooltipster-sidetip .tooltipster-right .tooltipster-arrow-background {
    border-right-color: var(--tooltip-bg);
}
.tooltipster-sidetip .tooltipster-bottom .tooltipster-arrow-background {
    border-bottom-color: var(--tooltip-bg);
}
.tooltipster-sidetip .tooltipster-left .tooltipster-arrow-background {
    border-left-color: var(--tooltip-bg);
}
/* ==========================================================================
   LAYOUT & GRID
   ========================================================================== */

.container {
    width: 1180px;
    margin: 0 auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

header {
    background-color: var(--white);
    box-shadow: 0 1px 6px var(--shadow-light);
    z-index: 1000;
}



header.hidden {
    transform: translateY(-100%);
}

header.visible {
    transform: translateY(0);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--accent-primary);
    display: flex;
    align-items: center;
}

.logo img {
    max-height: 100%;
    width: auto;
    max-width: 240px;
}

.logo span {
    color: var(--accent-secondary);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 35px;
    height: 100%;
}

.nav-left .home-btn {
    background-color: var(--accent-secondary);
    color: var(--text-secondary);
    padding: 8px var(--spacing-md);
    border-radius: var(--radius-sm);
    text-decoration: none;
}

.nav-left .create_btns {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-secondary);
    border-radius: 7px;
    padding: 0 10.5px;
    margin: 8px 2px;
    height: 40px;
    font-size: 13px;
    font-weight: 400;
    font-style: normal;
    line-height: normal;
    width: auto;
    transition: all 0.2s;
}

.nav-left .create_btns svg path {
    stroke: var(--accent-primary);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}



.nav-right a.notification svg path {
    fill: var(--accent-primary);
}

/* Универсальная кнопка входа */
.login-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    background: var(--accent-primary);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
}

.login-btn:hover {
    background: var(--accent-violet);
    color: white;
}

.login-text {
    font-size: 14px;
    font-weight: 500;
}

.login-icon {
    display: none;
}

.search-bar {
    display: flex;
    align-items: center;
    background-color: var(--bg-secondary);
    border-radius: var(--radius-xl);
    padding: var(--spacing-xs) var(--spacing-sm);
    width: 50%;
    position: relative;
}

.search-bar input {
    border: none;
    background: none;
    outline: none;
    width: 100%;
    padding: var(--spacing-xs);
    color: var(--accent-violet);
}

.search-bar input::placeholder,
.search-bar input::-webkit-input-placeholder,
.search-bar input::-moz-placeholder,
.search-bar input:-ms-input-placeholder {
    color: var(--accent-primary);
    opacity: 1;
}

.search-bar svg path,
.search-bar svg circle {
    stroke: var(--accent-primary);
}

.search-bar img {
    width: 20px;
    height: 20px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

footer {
    background: var(--white);
    margin-top: auto;
}

.footer {
    padding: var(--spacing-xl) 0;
    font-size: 13px;
    margin-top: auto;
}
/* ==========================================================================
   PROFILE & USER ELEMENTS
   ========================================================================== */

.profile {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: var(--accent-primary);
}

.profile-img {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-full);
}
p.last-login {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-secondary);
    margin: 0 0 10px 0;
    padding: 0;
}
.notification, .notification-chat {
    position: relative;
    display: flex;
    align-items: flex-start;
}

.notification .count,.notification-chat .count {
    position: absolute;
    top: -15px;
    right: -5px;
    background-color: var(--status-error);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 12px;
    width: 17px;
    height: 17px;
    display: flex
;
    align-items: center;
    justify-content: center;
}

.profile-actions {
    display: flex;
    align-items: center;
    gap: 10px;
 
}

.profile-actions .btn-actions {
    width: 100%;
    background-color: var(--border-focus);
    background-image: url(/images/icons/profile_add.svg);
    background-position: 10px 7px;
    background-repeat: no-repeat;
    padding-left: 30px;
    height: 40px;
    padding: 0 20px 0 40px;
    font-size: 15px;
    font-weight: 400;
}

/* SVG Icon Size */
.navbar .sixteen-font-size svg {
    width: 22px;
    height: 22px;
    margin: -1px 0;
}
.profile-avatar-img {
    width: 249px;
    height: 250px;
    position: relative;
}

.profile-page {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.profile-avatar-info {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    width: calc(100% - 275px);
    align-items: flex-start;
}
/* ==========================================================================
   MAIN CONTENT & LAYOUT
   ========================================================================== */

/* Main content wrapper for sticky footer */
.site-content,
.site-main,
main,
.content-wrapper,
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    display: flex;
    padding: var(--spacing-md) 0;
}

.sidebar-wrapper {
    width: var(--sidebar-width);
    position: relative;
}

.right-sidebar-wr {
    width: var(--right-sidebar-width);
}

/* CSS правила для theiaStickySidebar удалены - управление через JavaScript */

.left-sidebar {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    box-shadow: var(--shadow);
    margin-bottom: var(--spacing-md);
}
.left-sidebar ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.left-sidebar ul li {
    position: relative;
}

.left-sidebar ul li .toggle-arrow {
    position: absolute;
    right: 0;
    cursor: pointer;
    top: 1px;
    width: 25px;
    height: 25px;
    display: flex;
    transition: all 0.4s ease;
    align-items: center;
    justify-content: center;
}

span.toggle-arrow.open {
    transform: rotate(180deg);
}

.sidebar-item {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--menu-color);
    font-size: 15px;
    text-decoration: none;
    cursor: pointer;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
   text-decoration: none !important;
}

a.sidebar-item.sidebar-child-item {
    padding: var(--spacing-xs) 0;
    font-weight: 600;
    font-size: 13px;
}

span.toggle-arrow:hover {
    background-color: var(--bg-primary);
    border-radius: var(--radius-full);
}

.sidebar-item:hover,
.sidebar-item.active {
    background: var(--bg-primary);
}

.left-sidebar ul.sub-menu {
    margin-left: var(--spacing-sm);
    max-height: 0;
    overflow: hidden;
    transition: all 0.4s ease;
}

.left-sidebar ul.sub-menu.open {
    max-height: 900px;
    border-top: 1px solid var(--border-color);
    padding: 8px 0;
    margin-top: 8px;
}
.main-content-js {
    flex: 1;
    display: flex;
    padding: 0;
    flex-wrap: wrap;
}

.center-content {
    flex: 2;
    padding: 0 var(--spacing-md);
    width: calc(50% - 30px);
}

.center-content.pr-0 {
    padding-right: 0;
}


/* ==========================================================================
   POSTS & CONTENT BLOCKS
   ========================================================================== */

.post-standart {
    background: var(--white);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-lg);
    box-shadow: var(--shadow);
    padding: var(--spacing-md);
}

.post-standart .post-header {
    display: flex;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.post-standart .user-image {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    margin-right: var(--spacing-sm);
}

.post-standart .user-name {
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
}

.post-standart .user-name:hover {
    text-decoration: underline;
}

.post-standart .post-time {
    margin-left: auto;
}

.post-standart .time {
    color: var(--text-muted);
    font-size: 12px;
    margin-left: var(--spacing-sm);
}

.post-standart .post-image a {
    display: block;
    width: 100%;
    overflow: hidden;
}

.post-standart .post-image img {
    margin-bottom: var(--spacing-md);
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.post-standart .img-responsive {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.post-standart .post-content {
    margin-bottom: var(--spacing-md);
}

.post-standart .content-user {
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
}

.post-standart .content-user:hover {
    text-decoration: underline;
}

.post-standart .label-info {
    background-color: #5bc0de;
    font-size: 12px;
    padding: 2px 8px;
}

.post-standart .comments-count {
    color: var(--text-muted);
    font-size: 15px;
    margin: var(--spacing-sm) 0;
}

.post-standart .comments-section {
    margin-top: var(--spacing-sm);
}

.post-standart .comment {
    margin-bottom: 8px;
    font-size: 15px;
}

.post-standart .comment-user {
    font-weight: bold;
    color: var(--text-primary);
    text-decoration: none;
    margin-right: var(--spacing-xs);
}

.post-standart .comment-user:hover {
    text-decoration: underline;
}

.post-standart .no-comments {
    color: var(--text-muted);
    font-style: italic;
}

.post-standart .post-footer {
    display: flex;
    align-items: center;
    border-top: 1px solid var(--border-color);
    padding-top: var(--spacing-sm);
}

.post-standart .footer-action {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    margin-right: var(--spacing-sm);
}

.post-standart .footer-action:hover {
    color: var(--text-primary);
}

.post-standart .comment-input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 8px;
    margin-right: var(--spacing-sm);
}

.post-standart .no-posts {
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}
    .breadcrumbs-container {
        color: var(--accent-primary);
        overflow: hidden;
        position: relative;
        padding: 10px 0;
      }
    .breadcrumbs {
        display: flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
        font-size: 13px;
      }
      .breadcrumbs-container.overflow:after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        width: 50px;
        height: 100%;
        background: linear-gradient(to right, transparent, white);
        pointer-events: none;
      }
.breadcrumbs a {
  text-decoration: none;
  color: var(--accent-primary);
}
.breadcrumbs-arrow:after{
    content:url(/images/breadcrumbs_arrow.svg);
}
.breadcrumbs a:hover {
  text-decoration: underline;
}

.section-header{
    padding: 10px 15px;
            display: flex;
            flex-direction: column;   

}
.section-header-border{
    border-bottom: 1px solid #f0f2f5;
}
.news-blocks{
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    gap: 15px;
    box-sizing:border-box;
    margin-bottom: 20px;
}
.news-couner-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.news-couner-right .actions-icon {
    display: flex;
    align-items: center;
}

.news-couner-right .views {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-family: 'Inter';
    gap: 5px;
}
.news-couner-right .views a, #comments-section .views  {
    display: flex;
    align-items: center;
    font-size: 15px;
    font-family: 'Inter';
    gap: 5px;
}
#comments-section .messages-right-header {
    gap: 20px;
}
.news-couner-right .views span{
    font-weight: 500;
}
.news-couner-right .views img {
    width: 18px;
    filter: hue-rotate(290deg);
}

.news-couner-right .views {}

.news-couner-right .views span {
    font-weight: 500;
    font-size: 12px;
}
.share-buttons a {
    text-decoration: none;
}
.share-buttons {
    display: flex
;
    align-items: center;
    gap: 5px;
}
.share-buttons a img{
    width: 25px;
    height: auto;
}
.news-block {
            
           width: 100%;
            border-radius: 10px;
            background-color: #fff;
            
             box-sizing:border-box;
             transition: all 0.3s ease;
        }

      .works-list .news-block:hover {
            box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1), -2px 0 0 var(--accent-secondary);
        }


        .news-header {
            padding: 10px 15px;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap:15px;
        }
        .single-news-header{
            border-bottom: 1px solid var(--border-light);
        }
        .news-header a{
            display: flex;
            align-items: center;
            text-decoration: none;
        }
        .news-header .author-link img {
            width: 40px;
            min-width: 40px;
            height: 40px;
            border-radius: 50%;
        }
        .news-header span {
            font-weight: bold;
            font-size: 15px;
            color: var(--menu-color);
        }
        .news-header .time {
            font-size: 12px;
            color: #888;
            margin-left: auto;
        }
        .news-img img{
            object-fit: contain;
            width: 100%;


        }
        .news-img a {
            width: 100%;
        }

        .news-content {
            padding: 15px;
        }
        .news-content  strong {
            font-weight: 600;
        }
        .news-img{
           max-height:430px ;
           overflow: hidden;
           display: flex;
           align-items: center;
            background-color: var(--bg-secondary);
        }
        .news-content img {
            width: 100%;
            height: auto;
            border-radius: 10px;
            margin-bottom: 10px;
        }
        .news-content h2, .news-content .h2 {
            font-size: 18px;
            font-weight: bold;
            margin: 0 0 10px;
            color: var(--menu-color);
            display: block;
        }
        .news-content h3 {
            font-size: 16px;
            font-weight: bold;
            margin: 0 0 10px;
            color: var(--menu-color);
        }
        .news-content p,  .news-content ul, .news-content ol {
            font-size: 15px;
            margin: 0 0 10px;
            line-height: 1.5;
        }
.stihi.news-content p, .stihi.news-content ul, .stihi.news-content ol {
    font-size: 16px;
    margin: 0;
    line-height: 1.5;
}

.stihi.news-content {
    text-align: center;
}

.stihi.news-content p:empty::after,
.stihi.news-content p:has(br:only-child)::after {
    content: "***";
    display: block;
    margin: 10px 0;
}
.stihi.news-content p br{
    display: none;
}
        .news-content a {
            color: var(--accent-secondary);
            text-decoration: none;
            font-size: 15px;
        }
        .news-content h2 a, .news-content .h2 a {
            color: var(--menu-color);
            font-size: 16px;
            
        }
        .news-footer {
            padding: 10px 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-top: 1px solid #e0e0e0;
            font-size: 12px;
            width: 100%;
            
        }
       .news-footer .time {
    opacity: 0.4;
}
        .news-footer .reactions span {
            margin-right: 10px;
        }
        .news-footer .views {
            display: flex;
            align-items: center;
            color: var(--accent-violet);
        }
        .news-footer .views img {
            width: 16px;
            height: 16px;
            margin-right: 5px;
            filter: hue-rotate(290deg);
        }
        .news-footer-right {
            display: flex;
            gap: 5px;
            align-items: center;
        }

/* Right Sidebar */
.right-sidebar {
   
    
   
    
    display: flex;
        flex-direction: column;
        gap: 15px;
    
}
.sidebar-box {
    background-color: #fff;
    overflow: hidden; padding: 10px 15px;
    border-radius: 10px;box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
#subscribeForm input[type="email"] {
    padding: 0 10px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    height: 35px;
    max-width: 150px;
}

#subscribeForm button {
    height: 37px;
}
.trending-item {
    display: flex
;
    justify-content: space-between;
    margin: 10px 0;
    color: #666;
    flex-direction: column;
}
.trending-item a {
    font-size: 14px;
    text-decoration: none;
    display: flex;
    border-bottom: 1px solid #e7e7e7;
    margin-bottom: 10px;
    padding-bottom: 10px;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}
.trending-item a:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
span.trending-news-img {
    width: 70px;
    height: 70px;
    display: block;
    overflow: hidden;
    border-radius: 50%;
}

span.trending-news-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: auto;
}

a.ajax-link {}

span.trending-news-meta {
    width: calc(100% - 85px);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

span.trending-news-title {
    color: var(--menu-color);
    font-weight: 600;
}

span.trending-news-time {
    font-size: 12px;
    color: var(--accent-primary);
    opacity: 0.8;
}
.create-post-btn {
    background-color: var(--accent-secondary);
    color: #fff;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-bottom: 15px;
    cursor: pointer;
}

/* Messenger Styles */
.messages-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    height: calc(100vh - var(--header-height) - 30px);
    display: flex;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Messages Left Panel */
.messages-left {
    width: 400px;
    background-color: #ffffff;
    border-right: 1px solid var(--bg-secondary);
}

.messages-left-header {
    border-bottom: 1px solid var(--bg-secondary);
}

.messages-left-search input {
    background-color: var(--bg-secondary);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    width: 100%;
}

.messages-left-items {
    padding: 5px 10px;
    border-bottom: 1px solid #E7EBF0;
    transition: background-color 0.2s;
}

.messages-left-items:hover, .messages-left-items.active {
    background-color: var(--bg-secondary);
}
.messages-left-items-js{
    cursor: pointer;
}

/* Стили для бейджа уведомлений по комнатам */
.room-notification-badge {
    background-color: #EF4444;
    color: white;
    border-radius: 50%;
    min-width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
    padding: 0 6px;
    box-sizing: border-box;
}

.room-notification-badge:empty {
    display: none;
}
.messages-left-avatar {
      width: 55px;
    height: 55px;
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.messages-left-avatar #receiver-avatar{
   width: 100%;
   height: 100%;
}
.messages-left-avatar #receiver-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    background-color: #D1D5DB;
    position: relative;
    z-index: 1;
 }
.messages-left-avatar.not_users{
    width: 45px;
    height: 45px;
}
.messages-left-avatar a {
    border-radius: 50%;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background-color: #D1D5DB;
    overflow: hidden;
    display: block;
}
.messages-left-avatar > a > span {
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}
#receiver-avatar .user-avatar-img{
    position: static;
}
.messages-left-icons-header{
    gap:10px;
}
.messages-left-icons-header a svg path{
    stroke: var(--accent-violet);;
}
.messages-left-icons-header a.active svg path{
    stroke: var(--accent-secondary);
}
.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Масштабирует изображение, сохраняя пропорции */
}
.messages-left-username {
    font-size: 13px;
    font-weight: 600;
    color: #614692;
    text-decoration: none;
}
.messages-left-status {
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    letter-spacing: 0px;
}
.messages-left-last-message {
    color: var(--text-secondary); 
    font-size: 12px;
    padding: 7px 0;
    margin: 0;
}

.messages-left-timestamp {
    color: var(--text-secondary); 
    font-size: 0.8rem;
}

/* Messages Right Panel */
.messages-right {
    flex: 1;
    background-color: #FFFFFF;
    display: flex;
    flex-direction: column;
}

.messages-right-header {
    background-color: #ffffff;
    border-bottom: 1px solid #E7EBF0;
    padding: 7px 15px;
}
.messages-right-chat-wr {
    position: relative;
    padding-bottom: 50px;
    height: calc(100% - 255px);
    min-width: 350px;
  
}
.messages-right .messages-right-chat-wr {

    margin-bottom: 60px;
}
.messages-right-chat-wr.not-post-comments{

    padding-bottom: 0; 
}
#comments-section .messages-right-header h2 {
    font-size: 18px;
}
#comments-section .messages-right .messages-right-chat-wr {

    margin-bottom: 0;
}
.date-fixed {
    position: sticky;
    top: 0;
    z-index: 10;
    text-align: center;
    padding: 8px 0;
    font-size: 12px;
    color: #888;
}

.date-fixed span {
    display: inline-block;
    background-color: #fff;
    padding: 5px 10px;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.messages-right-chat {
    flex: 1;
    padding: 16px;
    height: 100%;
    overflow-y: auto;
display: flex;
    flex-direction: column; /* Сообщения идут сверху вниз */
     
}

#comments-section .messages-right-chat{
    overflow-y: auto;
    overflow-x: hidden;
    max-height: 600px;
}


div#typing {
 padding: 15px;
    text-align: right;
    font-size: 15px;
    opacity: 0.6;
    position: absolute;
    left: 10px;
    bottom: -75px;
    width: 100px;
    text-align: left;
}
div#typing span {
    display: block;
    width: max-content;
}
.messages-right-message {
    margin-bottom: 5px;
    font-size: 15px;
}
.messages-right-empty {
    width: 180px;
    height: 180px;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    display: flex;
    flex-direction: column;
}

.messages-right {
    position: relative;
}

.messages-right-empty img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.messages-right-empty span {
    text-align: center;
    font-size: 13px;
    color: #614692;
    line-height: 1.5;
}
.messages-right-message {
   margin-left: auto;
min-height: min-content;
    border-radius: 12px 12px 0 12px;
    padding: 12px;
    
    width: fit-content;
    max-width: 400px;
 
}
.messages-right-message.sent {
    background-color: var(--accent-primary);
    color: #fff;
}

.messages-right-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}
.messages-right-message.received {
    margin-left: 35px;
    margin-right: auto;
    background-color: #f0f2f5;
    border-radius: 12px 12px 12px 0;
    padding: 8px 12px 20px;
    position: relative;
}

.messages-right-message p {
    padding: 0;
    margin: 0 0 5px 0;
        display: block;
    float: left;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.messages-right-message span.timeSince {
    font-size: 12px;
    text-align: right;
    display: inline-flex;
    float: right;
    margin-left: 15px;
    margin-top: 3px;
    opacity: 0.4;
}
#comments-section .messages-right-message span.timeSince {
    font-size: 12px;
    text-align: right;
    display: flex;
    float: right;
    margin-left: 0;
    margin-top: 5px;
    opacity: 0.4;
    width: 100%;
    justify-content: flex-end;
}
.messages-right-input {
   background-color: #FFFFFF;
    border-top: 1px solid #E7EBF0;
    padding: 16px;
    margin-top: auto;
    margin-bottom: 0;
   position: relative;
}
.comment-user-name{
    margin-bottom: 5px;
    font-weight: 700;
    color: var(--menu-color);
}
.sent .comment-user-name{
    color:#fff
}
.messages-right-input input, .messages-right-input textarea {
    background-color: #f0f2f5;
    border: none;
    border-radius: 20px;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
}

.dropdown-toggle-wr{
    position: relative;
}

body .dropdown-menu.create_head_menu.fulls:not(.notfi-dropdown) {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 0;
    padding: 20px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;transform-origin: center top;
    transition: opacity 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0.0, 0.2, 1) 0ms;
    overflow-y: auto;
    margin: 0;
    z-index: 99999;
}
body .open .dropdown-menu.create_head_menu.fulls:not(.notfi-dropdown) {
    transition: opacity 1.2s cubic-bezier(0.4, 0.0, 0.2, 1) 0ms,transform 150ms cubic-bezier(0.4, 0.0, 0.2, 1) 0ms;
}
.dropdown-menu.create_head_menu.fulls > svg {
    position: fixed;
    top: 0;
    right: 0;
    margin: 20px;
    cursor: pointer;
    border-radius: 6px;
    padding: 3px;
    width: 30px;
    height: 30px;
    transition: all 0.2s ease;
}
.dropdown-menu.create_head_menu.fulls > svg:hover {
    background: #f5f5f5;
}
.create_head_menu.fulls li a {
    line-height: normal !important;
    user-select: none;
    display: flex;
    align-items: center;
    padding: 25px 10px !important;
    font-weight: 500;
    font-size: 16px;
    flex-direction: column;
    background: #F5F5F5;
    border-radius: 12px;
    margin: 10px;
    transition: all 0.2s ease;
    min-width: 150px;
}
.create_head_menu.fulls li a:hover {
    box-shadow: rgb(0 0 0 / 5%) 0px 10px 15px -3px, rgb(0 0 0 / 7%) 0px 4px 6px -4px;
    background: #fff;
}
.create_head_menu.fulls li a svg {
    margin: 0 0 20px 0 !important;
    height: 60px !important;
    width: 60px !important;
    padding: 5px;
}

.dropdown-menu {
    font-size: 13px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
}


ul.dropdown-menu.create_head_menu.fulls li {
    line-height: normal !important;
    user-select: none;
    display: flex;
    align-items: center;
    padding: 60px 30px !important;
    font-size: 16px;
    flex-direction: column;
    background: #F5F5F5;
    border-radius: 12px;
    margin: 15px;
    transition: all 0.2s ease;
    min-width: 200px;
    padding: 0 !important;
}


.dropdown-menu:not(.notfi-dropdown):not([role=combobox]) {
    border-radius: max(0px, min(8px, calc((100vw - 4px - 100%) * 9999))) / 8px;
    box-shadow: 0 12px 28px 0 rgba(0, 0, 0, 0.20), 0 2px 4px 0 rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.5);
    box-shadow: rgb(0 0 0 / 10%) 0px 10px 15px -3px, rgb(0 0 0 / 10%) 0px 4px 6px -4px;
    padding: 8px 0;
    transform: scale3d(.8, .8, 1);
    transform-origin: right top;
    display: block;
    opacity: 0;
    visibility: hidden;
    border: 0;
    transition: opacity 150ms cubic-bezier(0.4, 0.0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0.0, 0.2, 1) 0ms;
}

.open>.dropdown-menu:not(.notfi-dropdown):not([role=combobox]) {
    transition: opacity 150ms cubic-bezier(0.4, 0.0, 0.2, 1) 0ms, transform 150ms cubic-bezier(0.4, 0.0, 0.2, 1) 0ms;
    transform: none;
    opacity: 1;
    visibility: visible;
}

.dropdown-toggle-wr .btn-material {
    position: fixed;
    width: 60px;
    height: 60px;
    border-radius: 100%;
    background: #fff;
    transform-origin: 50%;
    transition: all 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    visibility: hidden;
    z-index: 9;
}
.dropdown-toggle-wr.open .btn-material {
    transform: scale(70);
    z-index: 9;
    visibility: visible;
}

/** профиль */ 

.profile-header {
    display: flex;
    font-weight: bold;
    margin-bottom: 20px;
    gap: 10px;
  }
  .profile-avatar {
    text-align: center;
    margin-right: 0px;
    width: 100%;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background: #fff;
    display: flex;
    flex-direction: row;
    gap: 25px;
  }
  .profile-avatar img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .online-status {
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: green;
    border-radius: 50%;
    border: 2px solid #fff;
    margin-top: 5px;
    position: absolute;
    right: -9px;
    top: 5px;
  }
  .profile-info {
    flex: 1;
   
    min-height: 100%;
  }
 
  .profile-avatar .profile-name {
  
    margin-bottom: 5px;
    font-size: 21px;
    color: var(--menu-color);
  }
  .profile-info .title {
    font-size: 15px;
    padding: 0;    
    margin-bottom: 10px;
    margin-top: 0;
    font-weight: normal;
  }
  .profile-info .bio {
    font-size: 15px;
    font-weight: normal;
    line-height: 1.5;
  }
  .posts-section h3 {
    font-size: 22px;
    margin-bottom: 20px;
  }
  .online {
  background-color: #28a745; /* Зеленый для онлайн */
}
.sidebar-box .h3{
    font-size: 17px;
    margin-bottom: 20px;
}
.sidebar-box__caption{
    font-size: 14px;
    margin-bottom: 20px;
    opacity: 0.6;
}
.status-indicator {
 width: 15px;
    height: 15px;
    border-radius: 50%;
    margin-left: 8px;
    display: inline-block;
    position: absolute;
    right: -2px;
    top: 0;
    z-index: 999;
    border: 3px solid white;
    background-color: #9ca3af; /* Серый для офлайн */
}

.status-indicator.online {
  background-color: #22c55e; /* Зелёный для онлайн */
}

.status-indicator.offline {
  background-color: #9ca3af; /* Серый для офлайн */
}
.offline {
  background-color: #dc3545; /* Красный для офлайн */
}
  .card {
    border: none;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    background-color: #fff;
  }
  .card-body {
    -ms-flex: 1 1 auto;
    flex: 1 1 auto;
    padding: 1.25rem;
}
  .card-title {
    font-size: 16px;
    font-weight: normal;
  }
  .card-subtitle {
    font-size: 15px;
    color: #666;
    font-weight: normal;
  }
  .card-text {
    font-size: 15px;
    font-weight: normal;
  }

  .gram-card-image img {
    max-width: 100%;
    height: auto;
}

  .activity-page {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: var(--shadow);
    height: 100%;
}

.activity-page .clear-all-form {
    float: right;
    margin-bottom: 20px;
}




.activity-page .btn:focus {
    outline: 3px solid var(--accent-primary);
    outline-offset: 2px;
}

.activity-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  
  .activity-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }
  
  .activity-item .avatar-wr {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    display: flex;
    overflow: hidden;
    border:1px solid var(--accent-primary);

  }
  .activity-item .avatar {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
  }
  .activity-item .content {
    display: flex;
    align-items: center;
    flex-grow: 1;
    position: relative;
    padding-left: 10px;
    position: relative;
  }
  
  .activity-item   .action-icon-wr{
    width: 20px;
    height: 20px;
    margin-right: 8px;
    flex-shrink: 0;
    color: #666;
    position: absolute;
    bottom: 0px;
    left: 0px;
    background: var(--accent-violet);
    border: 2px solid white;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    padding: 2px;
  }
  .activity-item  .action-icon {
    object-fit: contain;
    width: 100%;
    height: 100%;
  }
  .activity-item  .action-icon path,  .activity-item  .action-icon line,  .activity-item  .action-icon circle{
    stroke: white;
  }
  .activity-item .username {
    font-weight: bold;
    color: #333;
    text-decoration: none;
    margin-right: 10px;
  }
  
  .activity-item .action {
    color: var(--text-primary);
    margin-right: 10px;
    font-size: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .activity-item .timestamp {
    color: var(--text-secondary);
    font-size: 13px;
  }

.activity-item:last-child {
    border-bottom: none;
}




/* Контейнер формы авторизации */
.login-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 400px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  /* Блок формы */
  .login-box {

    
    padding: 40px;
    max-width: 400px;
    width: 100%;
    text-align: center;
    margin: 0 auto;
  }
  
  /* Заголовок формы */
  .login-title {
    font-size: 1.8em;
    margin-bottom: 20px;
    color: #333;
  }
  .register-title {
    font-size: 1.4em;
    margin-bottom: 20px;
    color: #333;
  }
  /* Сообщение об ошибке */
  .alert-danger {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 20px;
  }
  
  /* Группа полей формы */
  .form-group {
    margin-bottom: 20px;
    text-align: left;
  }
  
  /* Метки полей */
  .form-label {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 8px;
    display: block;
  }
  
  /* Поля ввода */
  .form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
  }
  
  .form-control:focus {
    outline: none;
    border-color: var(--accent-primary);;
    box-shadow: 0 0 8px rgba(0, 123, 255, 0.3);
  }
  .comments-container {

}

section#comments-section {
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    box-sizing: border-box;
    margin-top: 15px;
}
.comment {
  background-color: #fff; /* Зелёный фон, как в Telegram */
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.comment p {
  margin: 0;
}

.comment small {
  font-size: 12px;
  color: #888;
}

.reply-quote {
    padding-left: 10px;
    background-color: #e5e8ed;
    border-radius: 5px;
    margin-bottom: 10px;
    padding: 10px;
    display: block;
    margin-top: 9px;
    text-decoration: none;
}


.sent .reply-quote{
        background-color: #b09dd3;
        
}
#comments-section .messages-right-message{
    max-width: calc(100% - 177px);
    position: relative;
    margin-left: 45px;
}


#comments-section .messages-right-message::before {
    content: '';
    position: absolute;
    bottom: 16px;
    left: -4px; /* Смещаем хвостик влево от сообщения */
    width: 0;
    height: 0;
    border: 5px solid transparent;
    border-bottom-color: #f0f2f5; /* Цвет хвостика совпадает с фоном сообщения */
    border-left-color: #f0f2f5;
    transform: rotate(45deg); /* Поворачиваем для создания формы хвостика */
    z-index: 0;
}
#comments-section .messages-right-message.sent::before {
    
    border-bottom-color: var(--accent-primary); /* Цвет хвостика совпадает с фоном сообщения */
    border-left-color: var(--accent-primary);
    transform: rotate(45deg); /* Поворачиваем для создания формы хвостика */
}

#comments-section .messages-right-message.sent {
    margin-left: 45px;
}

#comments-section .messages-right-message.sent  small{
    color: #ebebeb;
}
/* В вашем CSS-файле или внутри <style> в шаблоне */
.comment.highlight {

  background-color: var(--accent-violet) !important;

  transition: background-color 0.3s ease, border-left 0.3s ease;
  animation: pulse 0.5s ease-in-out 0.5s;
}
.messages-right-message.highlight p, .messages-right-message.highlight .comment-user-name, .messages-right-message.highlight .comment-user-name a{
    color: #fff;
}
#comments-section .messages-right-message.highlight::before{
border-bottom-color: var(--accent-violet); /* Цвет хвостика совпадает с фоном сообщения */
    border-left-color: var(--accent-violet);
}
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); }
  100% { transform: scale(1); }
}
#comments-section .comment.highlight span.user-avatar {
    color: #fff;
}

#comments-section .comment.highlight.messages-right-message p{
    color: #fff;
}
.comment.highlight.messages-right-message span.timeSince{
     color: #fff;
}
#comments-container{
    gap: 10px;
}
div#comments-modal-container {
    gap: 10px;
}
  /* Кнопка входа */
  .btn-login {
    width: 100%;
    padding: 12px;
    background: var(--accent-secondary);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 1em;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease, transform 0s ease;
  }
  
  .btn-login:hover {
   
    transform: translateY(-2px);
  }
  
  .btn-login:active {
    transform: translateY(0);
  }
  
  /* Ссылка на регистрацию */
  .register-link {
    margin-top: 20px;
    font-size: 0.9em;
    color: #555;
  }
  
  .register-link a {
    color: var(--accent-secondary);
    text-decoration: none;
    font-weight: 500;
  }
  
  .register-link a:hover {
    text-decoration: underline;
  }
  
  /* Адаптивность */
  @media (max-width: 576px) {
    .login-box {
      padding: 20px;
      max-width: 90%;
    }
  
    .login-title {
      font-size: 1.5em;
    }
  
    .form-control {
      padding: 10px;
    }
  
    .btn-login {
      padding: 10px;
    }
  }
  
  /* Responsive Design */
@media (max-width: 1200px) {
    .container {
        width: 95%;
    }

    .sidebar-wrapper {
        width: 20%;
    }

    .right-sidebar-wr {
        width: 30%;
    }

    .messages-wrapper {
        max-width: 90%;
    }

    .messages-left {
        width: 300px;
    }
}

@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
    }
.news-content {
    padding: 15px 0;
}
    .sidebar-wrapper, .right-sidebar-wr {
        width: 100%;
    }

    .center-content {
        padding: 0 10px;
    }

    .search-bar {
        width: 100%;
    }

    .messages-left {
        width: 250px;
    }

    
}

@media (max-width: 768px) {
    .nav-left, .nav-right {
        gap: 10px;
    }

    .logo {
        font-size: 20px;
    }

    .messages-wrapper {
        flex-direction: column;
    }

    .messages-left {
        width: 100%;
        max-height: 300px;
        overflow-y: auto;
    }

    .messages-right {
        flex: 1;
    }

    .login-box {
        padding: 20px;
        max-width: 90%;
    }

    .login-title {
        font-size: 24px;
    }

    .form-control, .btn-login {
        padding: 10px;
    }
    .main-content-js {
        gap: 15px;
    }
    #toTop {
        width: 30px;
        height: 30px;
      }
      #toTop img{
        width: 20px;
        height: 20px;
      }
      .login-container{
        background: #fff;
                margin-bottom: 15px;
      }
      .main-content-js{
        gap: 0;
      }
      .profile-avatar-img {
        width: 120px;
        height: 120px;
    }
      .profile-avatar-info {
        width: calc(100% - 145px);
    }
    .profile-name{
        margin: 8px 0;
    }
    .profile-avatar{
        gap: 15px;
    }
    .news-header .author-link {
        order: 2;
    }
    .news-couner-right {
        gap: 15px;
        width: 100%;
        border-bottom: 1px solid #f0f2f5;
        padding-bottom: 10px;
        justify-content: space-between;
    }
    
    /* Адаптивность для sticky footer */
    .footer {
        padding: 15px 0;
    }
}

@media (max-width: 576px) {
    .center-content {
        padding: 0;
        margin-bottom: 15px;
    }
    .navbar {
   
        height: auto;
        
    }

    .nav-left, .nav-right {
       
        justify-content: space-between;
    }

    .search-bar {
        margin: 10px 0;
    }

    

    .news-img {
        min-height: 200px;
    }

    .news-content {
    padding: 15px 18px;
}
.news-blocks{
    gap: 10px;
}  
    /* Адаптивность для sticky footer на маленьких экранах */
    .footer {
        padding: 10px 0;
    }
}

.dflex{
    display: flex;
}
.aic{
    align-items: center;
}


.checkbox-wrapper {
    color: rgba(60, 46, 73, .5);
    font-size: 15px;
    font-weight: 400;
    line-height: .938rem;
    margin-top: 10px;
}


.checkbox-wrapper .rect {
    border-radius: 5px;
    background-color: #fff;
    margin-right: 8px;
    width: 17px;
    height: 17px;
    position: relative;
    font-weight: 400;
    font-size: 15px;
    line-height: 120%;
    /* or 17px */
    color: #AEADB6;
}
.checkbox-wrapper input[type="checkbox"]{
    display: none !important;
}
.checkbox-wrapper label{
    position: relative;
    text-align: left;
    padding-left: 30px;
    font-size: 11px;
    cursor:pointer;
}
.checkbox-wrapper label a{
   
    font-size: 11px;
}
.checkbox-wrapper label:before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 15px;
    height: 15px;
    background-repeat: no-repeat;
    background: #F1F1F1;
    border: 1px solid #c9c8c8;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
}
.checkbox-wrapper input:checked + label:before {
    background-image: url(/images/check_wh.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-color:var(--menu-color);
    border: 1px solid var(--menu-color);
}


    .checkbox-wrapper{
        position: relative;
    }
.checkbox-notification {
    position: absolute;
    top: -60px;
    left: 0px;
    background: #ffffff;
    padding: 11px;
    color: red;
    display: none;
    border-radius: 5px;
    border: 1px solid rgba(65, 46, 139, .3);
    box-shadow: 0 0 23px rgba(0, 0, 0, .20);
    font-size: 12px;
}

.checkbox-notification::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 31px;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-top: 10px solid #d5d5d5;
}
.more-options-wr{
    position: absolute;
    right: 0;
    top: 12px;
    z-index: 999;
    opacity: 0;
    transition: all 0.4s ease 0s;
}
.comment.messages-right-message:hover .more-options-wr{
    
    opacity: 1;
}
.more-options svg {
    stroke: #7838c5 !important;
}
.sent .more-options svg path {
    stroke: #ffffff !important;
}
.more-options-wr button{
    cursor: pointer;
    background-color: none;
}
.more-options{
    background: none;border: none;
}
.dropdown-menus {
 position: absolute;
    right: -116px;
    background: #fff;
    top: -12px;
    width: 91px;
    padding: 4px 10px;
    border-radius: 5px;
    display: none;
    background: #f0f2f5;
  }

.dropdown-menus .py-1{
    display: flex;
    flex-direction: column;
    column-gap: 5px;
}

  .dropdown-menus.show {
    display: block !important;
  }
  .dropdown-menus button{
    background: none;
    font-size: 13px;
    border: none;
    cursor: pointer;
        padding: 0;
    text-align: left;
  }
  .more-options svg{
    width: 15px;
    height: 15px;
  }
  #comments-section .messages-right-message small{
    color: #614692;
  }

   #comments-section span.user-avatar {
    color: #614692;
}
  #comments-section .messages-right-message p {
    color: #4c3378;
}
#comments-section .comment.sent span.user-avatar{
    color: #ffffff;
}
 #comments-section .messages-right-message.comment.sent p {
    color: #ffffff;
}
.messages-right-message.comment-dissolve {
  animation: dissolve 0.3s ease-out forwards;
}
@keyframes commentFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes dissolve {
  0% {
    opacity: 1;
    height: auto;
  }
  100% {
    opacity: 0;
    height: 0;
    padding: 0;
    margin: 0;
  }
}
@keyframes commentFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.comment-appear {
  animation: commentFadeIn 0.4s ease-out forwards;
}
/* Базовые стили для кнопки прокрутки вниз */
.scroll-to-bottom {
  position: absolute;
  bottom: 15px;
    right: 60px;
  background-color: var(--accent-violet); /* Blue-500 */
  color: #ffffff; /* Белый текст */
  width: 32px;
    height: 32px;
    outline: none;
    display: flex;
    transform: rotate(180deg);
    align-items: center;
    justify-content: center;
  border-radius: 9999px; /* Полностью закругленные углы */
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Тень */
  font-size: 1.25rem; /* 20px для символа стрелки */
  line-height: 1; /* Убираем лишнее пространство */
  border: none; /* Без рамки */
  cursor: pointer;
  z-index: 1000; /* Высокий z-index для перекрытия других элементов */
  transition: background-color 0.2s ease, transform 0.2s ease; /* Плавные переходы */
}
.scroll-to-bottom img{
    width: 21px;
    height: 21px;
}
/* Состояние при наведении */
.scroll-to-bottom:hover {
    outline: none;
  background-color: var(--accent-primary); /* Blue-600 */
  transform: scale(1.10) rotate(180deg) ; /* Легкое увеличение */
}

/* Состояние при фокусе */
.scroll-to-bottom:focus {
  outline: none; /* Убираем стандартный контур */
  box-shadow: 0 0 10px rgba(107, 35, 192, 0.6); /* Голубое свечение */
}

/* Скрытое состояние */
.scroll-to-bottom--hidden {
  display: none; /* Полностью скрываем кнопку */
}

/* Адаптивность для мобильных устройств */
@media (max-width: 640px) {
  .scroll-to-bottom {
    padding: 0.5rem; /* Меньший отступ */
    font-size: 1rem; /* Меньший размер стрелки */
  }
}

/* Стили для аватара пользователя */
.user-avatar-img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  flex-shrink: 0;
  position: absolute;
    left: -50px;
    bottom: 0;
}

.news-header .user-avatar-img{
position: static;
}
.news-header .user-avatar-img span{
color: #fff;
}

.profile-avatar .user-avatar-img{
    border-radius: 10px 0 0 0;
    position: static;
    width: 100%;
    height: 100%;
    }
.profile-avatar .user-avatar-img span{
color: #fff;
font-size: 26px;
}





.news-header .author-link{
    display: flex;
    column-gap: 10px;
}

.user-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-avatar-img.no-image {
  background-color: var(--accent-secondary); /* Запасной цвет, будет переопределен JS */
}

.user-avatar-img .initials {
  text-transform: uppercase;
}
#comments-section .reply-to {
    font-size: 15px;
    padding: 15px 0;
}

.cancel-reply {
    display: none;
    padding: 3px 8px;
    background: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    color: #333;
    transition: background-color 0.2s ease;
    font-family: "Inter", sans-serif;
    text-transform: lowercase;
}
#comments-section .reply-to span {
        display: block;
    margin-top: 10px;
    font-size: 12px;
    background: #e5e8ed;
    padding: 10px;
    border-radius: 5px;
}
.reply-to-wr{
    display: flex;
    align-items: center;
    gap: 10px;
    display: none;
    background: #f0f2f5;
    color: #664692;
    border-radius: 5px;
    margin-bottom: 6px;
    justify-content: space-between;
    padding: 0 15px;
}
.reply-to-wr.show{
    display: flex;
}
#comments-section  .messages-right-input textarea {
    background-color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px 16px;
    width: 100%;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
    font-size: 15px;
    padding-right: 60px;
}
form#comment-form{
    position: relative;
}
form#comment-form button {
    position: absolute;
    right: 13px;
    top: auto;
    z-index: 999;
    height: 35px;
    font-size: 0;
    width: 35px;
    border-radius: 50%;
    border: none;
    bottom: 16px;
    background: #ff6347;
    cursor: pointer;
}
#comments-section .no-comments {
    display: flex
;
    align-items: center;
    gap: 25px;
    font-size: 15px;
    color: var(--accent-secondary);
}
#comments-section  .border-top-gray{
    border-top: 1px solid #E7EBF0;
}
#comments-section .no-comments img {
    filter: hue-rotate(290deg);
}
.news-couner-right .views im, #comments-section .views img {
    filter: hue-rotate(290deg);
}
.burger-menu {
            display: none;
            cursor: pointer;
            font-size: 24px;
            background: none;
            border: none;
            color: var(--menu-color);
        }

        .search-toggle {
            display: none;
            cursor: pointer;
            background: none;
            border: none;
            color: var(--accent-primary);
            padding: 8px;
            border-radius: 50%;
            transition: all 0.3s ease;
            width: 40px;
            height: 40px;
            justify-content: center;
            align-items: center;
        }

        .search-toggle:hover {
            background: rgba(120, 56, 197, 0.1);
            color: var(--accent-violet);
            transform: scale(1.1);
        }

        .search-toggle svg {
            width: 22px;
            height: 22px;
        }

        .right-sidebar-toggle {
            display: none;
            position: fixed;
            bottom: 80px;
            right: 0;
            width: 40px;
            height: 32px;
            background: var(--accent-primary);
            border: none;
            border-radius: 8px 0 0 8px;
            color: white;
            cursor: pointer;
            z-index: 1000;
            box-shadow: -2px 4px 12px rgba(154, 133, 193, 0.4);
            transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
            align-items: center;
            justify-content: center;
        }

        .right-sidebar-toggle:hover {
            background: var(--accent-secondary);
            transform: translateX(-2px);
            box-shadow: -4px 6px 16px rgba(154, 133, 193, 0.6);
        }

        .right-sidebar-toggle svg {
            width: 16px;
            height: 16px;
        }
        .overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.5);
            z-index: 998;
        }
        .overlay.active {
            display: block;
        }

        .search-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.3);
            z-index: 997;
        }
        .search-overlay.active {
            display: block;
        }
        /* Стили для меню */
        .left-sidebar {
            transition: transform 0.3s ease-in-out;
            z-index: 999;
        }
        @media (max-width: 768px) {
            /* Плавающая шапка только для мобильной версии */
            body {
                padding-top: 70px;
            }
            
            header {
                position: fixed;
                top: 0;
                left: 0;
                right: 0;
                height: 70px;
                transform: translateY(0);
                transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                opacity: 1;
                visibility: visible;
            }
            
            header.hidden {
                transform: translateY(-100%);
            }
            
            header.visible {
                transform: translateY(0);
            }
            
            .navbar {
                height: 70px;
            }
            
            .burger-menu {
                display: block;
            }

            .search-toggle {
                display: flex;
            }

            .search-bar {
                position: fixed;
                top: 70px;
                left: 15px;
                right: 15px;
                width: calc(100% - 30px);
                z-index: 999;
                transform: translateY(-100%);
                opacity: 0;
                visibility: hidden;
                transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
                border-radius: var(--radius-xl);
                border: 1px solid rgba(154, 133, 193, 0.38);
                box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
                background-color: var(--bg-secondary);
            }

            .search-bar.active {
                transform: translateY(0);
                opacity: 1;
                visibility: visible;
            }

            .right-sidebar-toggle {
                display: flex;
            }

            .right-sidebar-wr {
                position: fixed !important;
                top: 0;
                right: 0;
                width: 80%;
                height: 100%;
                background: #fff;
                box-shadow: -2px 0 5px rgba(0,0,0,0.3);
                overflow-y: auto;
                transform: translateX(100%);
                transition: transform 0.3s ease-in-out;
                z-index: 999;
                padding-top: 70px;
            }


            .right-sidebar-wr.open {
                transform: translateX(0);
                padding-top: 0;
            }
            .right-sidebar_open .right-sidebar-wr{
                padding-top: 70px;
            }

            .left-sidebar ul li .toggle-arrow {
    top: 2px;
}
            .left-sidebar {
                position: fixed;
                top: 0;
                left: 0;
                width: 80%;
                height: 100%;
                border-radius: 0;
                background: #fff;
                box-shadow: 2px 0 5px rgba(0,0,0,0.3);
                overflow-y: auto;
                transform: translateX(-100%);
            }
            .nav-right{
                display: flex;
                align-items: center;
                gap: 10px;
            }
            
            /* Скрываем все элементы nav-right кроме кнопки входа */
            .nav-right > *:not(.login-btn) {
                display: none;
            }
            
            /* Мобильная версия кнопки входа */
            .login-btn {
                width: 40px;
                height: 40px;
                background: none;
                border: none;
                color: var(--accent-primary);
                justify-content: center;
                padding: 0;
                flex-shrink: 0;
                border-radius: 50%;
                transition: all 0.3s ease;
            }
            
            .login-btn:hover {
                background: rgba(120, 56, 197, 0.1);
                color: var(--accent-violet);
                transform: scale(1.1);
            }
            
            .login-text {
                display: none;
            }
            
            .login-icon {
                display: block;
                width: 22px;
                height: 22px;
            }
            .left-sidebar.open {
                transform: translateX(0);padding-top: 90px;
            }
            .left-sidebar ul{
                width: 80%;
            }
            .close-btn {
                display: block;
                position: absolute;
                top: 10px;
                right: 10px;
                font-size: 24px;
                background: none;
                border: none;
                cursor: pointer;
                color: #333;
            }
            #comments-section .messages-right-message {
                max-width: 100%;
            }
            .dropdown-menus {
                right: 4px;
                background: #fff;
                box-shadow: 0 0 25px rgb(200 189 219 / 72%);
                top: -9px;
                border-radius: 3px 10px 3px 3px;
            }
            .more-options-wr{
                opacity: 1;
            }
        }
        @media (min-width: 769px) {
            .left-sidebar {
                position: static;
                width: auto;
                height: auto;
                transform: none;
            }
            .close-btn {
                display: none;
            }
            .right-sidebar-toggle {
                display: none;
            }
            
            
            
            /* Десктопная версия кнопки входа */
            .login-btn {
                background: var(--accent-primary);
                color: white;
                padding: 4px 16px;
                border-radius: var(--radius-md);
                font-size: 14px;
                font-weight: 500;
                width: auto;
                height: auto;
                margin-left: 0;
                box-shadow: none;
                text-decoration: none !important;
            }
            .login-btn svg path {
                stroke: white;
            }
            .login-btn:hover {
                background: var(--accent-violet);
                transform: none;
                box-shadow: 0 2px 8px rgba(120, 56, 197, 0.3);
                color: white;
            }
            
            .login-text {
                display: inline;
            }
            
            .login-icon {
                display: none;
            }
        }

/* ==========================================================================
   МОБИЛЬНАЯ ВЕРСИЯ ОТЗЫВОВ
   ========================================================================== */

/* Кнопка "Читать все отзывы" */
.read-all-comments-btn {
    display: none;
    padding: 12px 20px;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.read-all-comments-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-1px);
}

/* Модальное окно для отзывов */
.comments-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.comments-modal.active {
    display: flex;
    opacity: 1;
    visibility: visible;
}

.comments-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.comments-modal.active .comments-modal-content {
    transform: translateY(0);
}

.comments-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10001;
}

.comments-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--menu-color);
    margin: 0;
}

.comments-modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.comments-modal-close:hover {
    background-color: #f3f4f6;
}

.comments-modal-close svg {
    width: 20px;
    height: 20px;
    color: #6b7280;
}

.comments-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}

/* Мобильные стили для отзывов */
@media (max-width: 768px) {
    .read-all-comments-btn {
        display: block;
    }
    .logo img{
        max-width: 200px;
    }
    /* Ограничиваем количество отзывов на мобильных */
    #comments-container .comment:nth-child(n+3) {
        display: none;
    }
    
    /* Скрываем скролл в основном блоке отзывов на мобильных */
    .messages-right-chat {
        max-height: none;
        overflow: visible;
    }
    #comments-modal-container {
        max-height: calc(100vh - 140px); /* Вычитаем высоту заголовка и отступов */
        overflow-y: auto;
        padding: 0;
    }
}

/* Десктопные стили - оставляем как есть */
@media (min-width: 769px) {
    .read-all-comments-btn {
        display: none !important;
    }
    
    #comments-container .comment {
        display: block !important;
    }
    
    .comments-modal {
        display: none !important;
    }
}


        /* Стили для выпадающего списка (добавьте в ваш CSS файл, например, styles.css) */


.search-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    left: 15px;
    width: calc(100% - 31px);
    background: white;
    border: 1px solid #f0f2f5;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    color: var(--menu-color);
    display: none;
    font-size: 15px;
    box-shadow: 0 15px 10px rgba(0, 0, 0, .10);
    border-radius: 0 0 10px 10px;
    border-top: none;
    padding: 10px 15px;
    box-sizing: border-box;
}

.search-dropdown .result-item {
    padding: 7px 10px;
    
    cursor: pointer;
}

.search-dropdown .result-item:hover {
    background: #f0f0f0;
}

.search-dropdown .highlight {
    font-weight: 900;
}
.search-dropdown .result-item strong {
    font-weight: 900;

}
.search-dropdown .result-item:last-child {
    border: none;
}


.reactions {
  gap: 5px;
  position: relative;
      display: flex;
    align-items: center;
}
.reaction-btn {
  transition: background-color 0.2s;
}
.reaction-btn:hover {
  background-color: #e9ecef;
}
.reaction-dropdown-menu {
    max-height: max-content;
    overflow-y: auto;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 5px;
    margin: 0;
    padding: 0;
}
.reaction-select {
  cursor: pointer;
}
.reactions_wr button {
        padding: 0;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
}
.reactions>button{
    font-size: 16px;
    display: flex;
    align-items: center;
    background: #f0f2f5;
    padding: 2px 7px;
    border-radius: 10px;
    justify-content: center;
}
.reactions>button img {
    filter: hue-rotate(290deg);
}
.reactions .reaction-count{
     font-size: 12px;
     margin: 0 !important;
     color: var(--accent-violet);
}
.reactions_wr .dropdown.ms-2 {
      position: absolute;
    background: #fff;
    border-radius: 10px;
    box-shadow: 2px 5px 10px rgba(0, 0, 0, .15);
    height: 0;
    overflow: hidden;
    visibility: hidden;
    opacity: 0;
    transition: all 0.4s ease 0s;
    top: calc(100% + 11px);
    left: -14px;
    z-index: 5;
}
.reactions_wr .dropdown.ms-2.open {
    height: auto;
    overflow: hidden;
    visibility: visible;
    opacity: 1;
        padding: 10px;
}
.news-img{
    position: relative;
}
.news-img-cat {
    position: absolute;
    top: 15px;
    left: 15px;

    display: flex;
    align-items: center;
    gap:5px
}
.news-img-cat a {

    background: var(--accent-secondary);
    color: #fff;
    font-size: 15px;
    text-decoration: none;
    padding: 3px 5px;
    border-radius: 3px;
    box-shadow: 5px 5px 12px rgba(0,0,0,.2);
    white-space: nowrap;
    
}
.news-img-cat a:nth-child(2) {

    background: var(--accent-primary);
}
.news-img-cat a.tag-link {

    background: #ff765eb5;
}
/* Стили для тегов постов */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    padding: 0 15px;
}

.post-tags .tag-link {
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-tags .tag {
    display: inline-block;
    background: #f0f2f5;
    color: #6b7280;
    font-size: 15px;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.post-tags .tag-link:hover .tag {
    background: var(--accent-secondary);
    color: #fff;
    border-color: var(--accent-secondary);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(107, 35, 192, 0.3);
}

/* ==========================================================================
   FRIENDS LIST STYLES
   ========================================================================== */

/* Заголовок с табами */
.friends-header {
    display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: var(--spacing-md);
        border-bottom: 1px solid var(--border-color);
        padding-bottom: var(--spacing-md);
}

.friends-tabs {
    display: flex;
    gap: var(--spacing-md);
}

.friends-tab {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-sm);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.friends-tab.active {
    color: var(--accent-violet);
    background-color: rgba(154, 133, 193, 0.1);
    font-weight: 600;
}

.friends-tab:hover:not(.active) {
    color: var(--text-primary);
    background-color: rgba(154, 133, 193, 0.05);
}

.tab-count {
    background-color: var(--border-light);
    color: var(--text-secondary);
    padding: 2px var(--spacing-sm);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.friends-tab.active .tab-count {
    background-color: var(--accent-violet);
    color: var(--white);
}

.find-friends-btn {
    background-color: var(--accent-violet);
    color: var(--white);
    border: none;
    padding: var(--spacing-sm) var(--spacing-lg);
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.find-friends-btn:hover {
    background-color: var(--menu-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(107, 35, 192, 0.3);
}

/* Поисковая строка */
.friends-search {
    margin-bottom: var(--spacing-xs);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm);
    background-color: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.search-input-wrapper:focus-within {
    border-color: white;
    box-shadow: 0 0 0 3px rgba(154, 133, 193, 0.1);
}

.search-icon,
.filter-icon {
    color: var(--text-light);
    flex-shrink: 0;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-light);
}

/* Список друзей */
.friends-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.friends-list .friend-item {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-lg);
    padding: var(--spacing-md);
    background-color: var(--white);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
  
}


.friend-status {
    color: #ffffff;
    font-size: 12px;
    width: 80px;
    height: 15px;
    font-weight: 500;
    display: inline-flex;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background-image: url('/images/icons/online.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-shadow: 1px 1px rgba(0, 0, 0, .2);
}


.friend-avatar {
    flex-shrink: 0;text-decoration: none !important;  
}

.friend-avatar .user-avatar-img {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    position: static;
    
}

.friend-avatar .user-avatar-img img.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.friend-avatar .user-avatar-img.no-image {
    background: var(--accent-violet);
    color: var(--white);
    font-weight: 600;
    font-size: 18px;
    text-transform: uppercase;
}

.friend-avatar .user-avatar-img .initials {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}



.friend-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.friend-name {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    gap: var(--spacing-xs);
;
    align-items: center;
}

.friend-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.friend-name a:hover {
    color: var(--accent-violet);
}

.friend-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.friend-tag {
    display: inline-block;
    background-color: rgba(154, 133, 193, 0.15);
    color: var(--accent-violet);
    padding: 4px var(--spacing-sm);
    border-radius: 16px;
    font-size: 15px;
    font-weight: 500;
    width: fit-content;
}

.friend-organization {
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
}

.friend-actions {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-top: 4px;
}

.action-link {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--accent-violet);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.action-link:hover {
    color: var(--menu-color);
    text-decoration: underline;
}

.action-icon {
    flex-shrink: 0;
}

.action-separator {
    color: var(--border-color);
    font-size: 16px;
}

.friend-more {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--text-light);
}

.friend-more:hover {
    background-color: var(--border-light);
    color: var(--text-secondary);
}

.more-icon {
    transform: rotate(90deg);
}

/* Адаптивность */
@media (max-width: 768px) {
    .friends-header {
        flex-direction: column;
        gap: var(--spacing-lg);
        align-items: stretch;
    }
    
    .friends-tabs {
        justify-content: center;
        gap: var(--spacing-lg);
    }
    
    .find-friends-btn {
        align-self: center;
        width: fit-content;
    }
    
    .friend-item {
        padding: var(--spacing-sm) var(--spacing-lg);
    }
    
    .friend-avatar .user-avatar-img {
        width: 48px;
        height: 48px;
    }
    
    .friend-avatar .user-avatar-img .initials {
        font-size: 16px;
    }
    
    .friend-name {
        font-size: 16px;
    }
    
    .friend-actions {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-sm);
    }
    
    .action-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .friends-tabs {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .friends-tab {
        justify-content: center;
        padding: var(--spacing-sm) var(--spacing-lg);
    }
    
    .search-input-wrapper {
        padding: var(--spacing-sm) var(--spacing-lg);
    }
    
    .friend-item {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }
    
    .friend-avatar .user-avatar-img {
        width: 40px;
        height: 40px;
    }
    
    .friend-avatar .user-avatar-img .initials {
        font-size: 15px;
    }
    
    .friend-name {
        font-size: 15px;
    }
    
    .action-link {
        font-size: 13px;
    }
}

/* Индикатор загрузки */
.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    gap: var(--spacing-sm);
    color: var(--text-secondary);
}

.loading-spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--accent-violet);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Сообщение о конце списка */
.end-of-list {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
    color: var(--text-light);
    font-style: italic;
    font-size: 15px;
}

/* Скрытие элементов при загрузке */
.friends-list.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Стили для системы дружбы */
.friendship-actions {
    display: flex;
        align-items: center;
       gap:0;
        
}

.friendship-status {
  font-size: 15px;
  color: var(--menu-color);
  font-weight: 500;
  border: 1px solid var(--border-color);
        height: 40px;
        padding: 0 20px 0 10px;
        border-radius: 0 var(--radius-md) var(--radius-md) 0;
        display: flex;
        border-left: none;
        align-items: center;
}

.friendship-menu .btn-dropdown {
    background: #f0f2f5;
    border: 1px solid var(--border-color);
    border: none;
    border-radius: 0;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border-right: none;
    width: 35px;
    transition: all 0.2s 
    
ease;
    height: 40px;
}

.btn-dropdown:hover {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #495057;
}

.friendship-menu {
  position: relative;
  display: inline-block;
}

.friendship-menu-content {
  display: none;
  position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 180px;
    padding: 15px 0;
    margin: 6px 0 0;
    background-color: #fff;
    border: 1px solid var(--border-color);
    border-radius: 0px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .1);
}

.friendship-menu-content.show {
  display: block;
}

.friendship-menu-item {
  display: block;
  width: 100%;
  clear: both;
  font-weight: 400;
  color: #212529;
  text-align: inherit;
  text-decoration: none;
  white-space: nowrap;
  background-color: transparent;
  border: 0;
  transition: background-color 0.15s ease-in-out;
  cursor: pointer;
}

.friendship-menu-item:hover {
  color: #16181b;
  background-color: #f8f9fa;
  text-decoration: none;
}

.friendship-menu-item i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* Для мобильных устройств */
@media (max-width: 768px) {
  .friendship-menu-content {
    right: auto;
    left: 0;
  }
  
  .friendship-actions {
    flex-direction: column;
    gap: 4px;
  }
  
  .friendship-status {
    font-size: 12px;
  }
}



  
  /* Стили для информационных блоков профиля */
  .info-item {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f2f5;

  }
  
  .profile-avatar .info-item{
    border:none
  }
  
  .info-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
  }
  
  .info-label {
    font-size: 16px;
      font-weight: 600;
      color: var(--menu-color);
      margin: 0 0 8px 0;
  }
  
  .info-item p {
    font-size: 15px;
    color: #4e4e4e;
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
    font-weight: 400;
  }
  
  .developer-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  .admin-badge {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
  }
  
  /* Стили для блока друзей */
  .friends-section {
    margin-bottom: 20px;
  }
  
  .friends-grid {
    display: grid;
    grid-template-columns: repeat(3,  1fr);
    gap: 12px;
    margin-top: 12px;
  }
  
  .friend-item {
    background: #fff;
    overflow: hidden;
    transition: all 0.2s ease;
  }
  
  .friends-list .friend-item:hover {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);

    
  }
  
  .friend-link {
    display: block;
    text-decoration: none;
    color: inherit;
    text-decoration: none !important;
  }
  
  .friend-avatar {
    text-align: center;
      margin-bottom: 8px;
      aspect-ratio: 1 / 1;
  }
  
  .friend-avatar img {
    border-radius: 50%;
      width: 100%;
      height: 100%;
      object-fit: cover;
      object-position: center;
  }
  
  .friend-info {
    text-align: center;
  }
  
 .profile-freundship .friend-name {
    font-size: 13px;
      font-weight: 600;
      color: #333;
      margin-bottom: 2px;
      line-height: 1.2;
      overflow: hidden;
      white-space: normal;
      word-break: break-word;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 1;
      line-clamp: 1;
      overflow: hidden;
      display: -webkit-box;
  }
  
  .profile-freundship .friend-username {
    font-size: 11px;
    color: #666;
    line-height: 1.2;
  }
  
  .profile-freundship .friends-more {
    text-align: center;
    margin-top: 12px;
  }
  
  .profile-freundship .more-friends-link {
    display: inline-block;
    padding: 8px 16px;
    background: #f8f9fa;
    color: #007bff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
  }
  
  .profile-freundship .more-friends-link:hover {
    background: #e9ecef;
    color: #0056b3;
    text-decoration: none;
  }
  
  .profile-freundship .no-friends {
    text-align: center;
    padding: 20px;
    color: #999;
    font-size: 15px;
  }
  
  /* Для мобильных устройств */
  @media (max-width: 768px) {
    
    
    .info-item {
      margin-bottom: 15px;
      padding-bottom: 12px;
    }
    
    .info-label {
      font-size: 15px;
    }
    
    .info-item p {
      font-size: 15px;
    }
    
    .friends-grid {
      
      gap: 8px;
    }
    
    .friend-item {
      padding: 8px;
    }
    
    .friend-avatar img {
      width: 75px;
      height: 75px;
    }
    
    .profile-freundship .friend-name {
      font-size: 12px;
    }
    
    .profile-freundship .friend-username {
      font-size: 10px;
    }
    .profile-freundship .friend-avatar {
      margin-bottom: 0;
    }
  }
  
  /* Стили для табов профиля */
  .profile-tabs {
    display: flex;
      border-bottom: 1px solid var(--border-light);
      margin-bottom: 15px;
      border-radius: 10px;
      gap: 0;
      background: #fff;
      overflow: hidden;
  }
  
  .profile-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 15px;
    position: relative;
  }
  
  .profile-tab:hover {
    color: var(--menu-color);
    background-color: rgb(154 133 193 / 13%);
  }
  
  .profile-tab.active {
    color: var(--menu-color);
    background-color: rgb(154 133 193 / 13%);
    font-weight: 600;
  }
  
  .profile-tab .tab-count {
    background-color: var(--border-light);
    color: var(--text-secondary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
  }
  
  .profile-tab.active .tab-count {
    background-color: var(--accent-violet);
    color: var(--white);
  }
  
  .tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
  }
  
  .tab-content.active {
    display: block;
  }
  
  .tab-content .news-content h2{
    margin: 0;
  }
  .tab-content .news-content p{
    margin: 0;
  }
  
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* Стили для списка произведений */
  .works-list {
    min-height: 200px;
    display: flex
  ;
      flex-direction: column;
      gap: 10px;
  }
  
  .works-list .news-content h2 a, .works-list .news-content .h2 a{
    color: var(--menu-color);
    font-size: 15px;
    font-weight: 600;
  }
  .works-list .news-footer {
    padding: 5px 15px;
    border-top: 1px solid #efeded;
  }
  .works-list .news-content {
    padding: 10px 15px;
}
.works-list .news-block {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 10px;
}
  .loading-works {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--text-secondary);
    gap: 15px;
  }
  
  .loading-works p {
    margin: 0;
    font-size: 15px;
  }
  
  
  .no-works {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
  }
  
  .no-works-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    opacity: 0.5;
  }
  
  .no-works h3 {
    margin: 0 0 var(--spacing-sm) 0;
    font-size: 18px;
  }
  
  .no-works p {
    margin: 0;
    font-size: 15px;
  }
  div#about-content {
      background: #fff;
      padding: 15px;
      border-radius: 10px;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  /* Адаптивность для табов */
  @media (max-width: 768px) {
    .profile-tabs {
      flex-direction: column;
      gap: 0;
    }
    
    .profile-tab {
      padding: 10px 15px;
      border-bottom: 1px solid var(--border-light);
      border-radius: 0;
    }
    
    .profile-tab.active {
      border-bottom-color: var(--accent-violet);
      background-color: rgba(154, 133, 193, 0.1);
    }
    
  }









/* ==========================================================================
   СТИЛИ ДЛЯ РЕДАКТИРОВАНИЯ И УДАЛЕНИЯ СООБЩЕНИЙ
   ========================================================================== */

/* Контейнер для сообщения */
.messages-right-message {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 10px;
    padding: 8px 12px 20px;
    border-radius: 12px 12px 0 12px;
    max-width: 70%;
    word-wrap: break-word;
    margin-right: 41px;
    min-width: 180px;
    flex-direction: column;
}
#comments-section .messages-right-message{
    flex-direction: column;
}
.messages-right-message.sent .message-actions svg   {
  stroke: white;
}

.messages-right-message.received {
  background-color: #f1f3f4;
  color: #333;
  margin-right: auto;
}

/* Контент сообщения */
.message-content {
  flex: 1;
  min-width: 0;
}

.message-text {
  margin: 0 0 4px 0;
  line-height: 1.4;
  word-wrap: break-word;
}

.message-meta {
    display: flex;
        align-items: center;
        gap: 8px;
        font-size: 11px;
        opacity: 0.7;
        position: absolute;
        bottom: 7px;
        right: 10px;
}

/* Индикатор редактирования */
.edited-indicator {
  font-style: italic;
  color: #666;
  cursor: help;
}

.messages-right-message.sent .edited-indicator {
  color: rgba(255, 255, 255, 0.8);
}

/* Кнопки действий */
.message-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  opacity: 0;
  transition: opacity 0.2s ease;
  position: absolute;
    bottom: 4px;
    right: 45px;
}

/* Если есть edited-indicator, сдвигаем message-actions правее */
.message-meta:has(.edited-indicator) + .message-actions {
  right: 110px;
}

/* Альтернативный способ через класс (если :has() не поддерживается) */
.message-actions.has-edited-indicator {
  right: 110px;
}

.messages-right-message:hover .message-actions {
  opacity: 1;
}

.edit-message-btn,
.delete-message-btn {
  background: none;
  border: none;
  padding: 4px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

.edit-message-btn:disabled,
.delete-message-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.edit-message-btn {
  color: #007bff;
}

.edit-message-btn:hover {
  background-color: rgba(0, 123, 255, 0.1);
}

.delete-message-btn {
  color: #dc3545;
}

.delete-message-btn:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

.messages-right-message.sent .edit-message-btn,
.messages-right-message.sent .delete-message-btn {
  color: rgba(255, 255, 255, 0.8);
}

.messages-right-message.sent .edit-message-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.messages-right-message.sent .delete-message-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Поле ввода для редактирования */
.edit-message-input {
  width: 100% !important;
  padding: 8px 12px !important;
  border: 2px solid #007bff !important;
  border-radius: 8px !important;
  font-size: 14px !important;
  background-color: white !important;
  color: #333 !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.messages-right-message.sent .edit-message-input {
  background-color: rgba(255, 255, 255, 0.9) !important;
  color: #333 !important;
}

/* Кнопки сохранения и отмены */
.save-edit-btn,
.cancel-edit-btn {
  padding: 6px 12px !important;
  border: none !important;
  border-radius: 6px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  margin-top: 4px !important;
}

.save-edit-btn {
  background-color: #28a745 !important;
  color: white !important;
}

.save-edit-btn:hover {
  background-color: #218838 !important;
}

.cancel-edit-btn {
  background-color: #6c757d !important;
  color: white !important;
}

.cancel-edit-btn:hover {
  background-color: #5a6268 !important;
}

/* Стили для удаленных сообщений */
.message-text[style*="font-style: italic"] {
  opacity: 0.6;
}

/* Аватар пользователя */
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0 8px;
  top: auto;
  bottom: 0;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.messages-right-message.sent .user-avatar {
    order: 1;
    position: absolute;
    right: -50px;
    
    left: auto;
}

/* Время сообщения */
.timeSince {
  font-size: 11px;
  opacity: 0.7;
  white-space: nowrap;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .messages-right-message {
    max-width: 85%;
    padding: 6px 10px;
  }
  
  .message-actions {
    opacity: 1; /* Всегда показываем кнопки на мобильных */
  }
  
  .edit-message-btn,
  .delete-message-btn {
    padding: 6px;
  }
  
  .user-avatar {
    width: 28px;
    height: 28px;
  }
}

/* Стили для области ввода сообщений с эмодзи и кнопкой отправки */
.input-container {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f0f2f5;
    border-radius: 20px;
    padding: 8px 12px;
    position: relative;
}

.emoji-btn, .send-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: var(--text-secondary);
    flex-shrink: 0;
}

.emoji-btn:hover, .send-btn:hover {
    background-color: rgba(0, 0, 0, 0.1);
    color: var(--accent-primary);
}

.send-btn {
    background-color: var(--accent-primary);
    color: white;
}

.send-btn:hover {
    background-color: var(--accent-secondary);
    color: white;
}

.send-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    color: #666;
}

.input-container input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 8px 0;
    font-size: 15px;
    color: var(--text-primary);
}

.input-container input::placeholder {
    color: var(--text-secondary);
}

/* Стили для эмодзи-пикера */
.emoji-picker {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-bottom: 8px;
    max-height: 300px;
    overflow-y: auto;
}

.emoji-grid {
    display: grid;
    grid-template-columns: repeat(15, 1fr);
    gap: 4px;
    padding: 12px;
}

.emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 26px;
    transition: all 0.2s ease;
    user-select: none;
}

.emoji-item:hover {
    background-color: #f0f2f5;
    transform: scale(1.1);
}

.emoji-item:active {
    transform: scale(0.95);
}

/* Анимация появления эмодзи-пикера */
.emoji-picker.show {
    animation: slideUp 0.2s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Увеличение размера эмодзи в сообщениях */
.messages-right-message p {
    font-size: 15px; /* Размер обычного текста */
    line-height: 1.5;
}

/* Увеличиваем размер для сообщений, содержащих эмодзи */
.messages-right-message p:has(span[data-emoji]) {
    font-size: 15px; /* Увеличенный размер для сообщений с эмодзи */
}

/* Альтернативный способ - увеличение только эмодзи */
.messages-right-message span[data-emoji] {
    font-size: 24px; /* Увеличиваем размер эмодзи на 30% */
    line-height: 1;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
    .input-container {
        padding: 6px 10px;
        gap: 6px;
    }
    
    .emoji-btn, .send-btn {
        padding: 6px;
    }
    
    .emoji-grid {
        grid-template-columns: repeat(6, 1fr);
        padding: 8px;
    }
    
    .emoji-item {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    
    .emoji-picker {
        max-height: 250px;
    }
}

@media (max-width: 480px) {
    .emoji-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .emoji-item {
        width: 24px;
        height: 24px;
        font-size: 15px;
    }
}

/* ==========================================================================
   СТИЛИ ДЛЯ ИКОНОК РЕДАКТИРОВАНИЯ И УДАЛЕНИЯ ПРОИЗВЕДЕНИЙ
   ========================================================================== */

/* Стили для карточек произведений с иконками действий */
.work-item {
    position: relative;
}

.work-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.work-header h2 {
    flex: 1;
    margin-right: 10px;
}

.work-actions {
    display: flex;
    gap: 5px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.work-item:hover .work-actions {
    opacity: 1;
}

.work-action-btn {
    background: none;
    border: none;
    padding: 6px;
    border-radius: 4px;
    cursor: pointer;
    color: #6c757d;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.work-action-btn:hover {
    background: #f8f9fa;
    color: #495057;
}

.work-action-btn.edit:hover {
    background: #e3f2fd;
    color: #1976d2;
}

.work-action-btn.delete:hover {
    background: #ffebee;
    color: #d32f2f;
}

/* Анимации для уведомлений */
@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* Мобильные стили для иконок действий */
@media (max-width: 768px) {
    .work-actions {
        opacity: 1;
    }
    
    .work-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .work-header h2 {
        margin-right: 0;
    }
}

/* ==========================================================================
   TABLE OF CONTENTS STYLES
   ========================================================================== */

/* Стили для оглавления в стилистике сайта */
.table-of-contents {
  margin-bottom: var(--spacing-xl);
  overflow: hidden;
}

.toc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}

.toc-title {
  margin: 0 0 var(--spacing-md) 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--menu-color);
  flex: 1;
}

.toc-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-sm);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  transition: all 0.3s ease;
  margin-left: var(--spacing-md);
  margin-bottom: var(--spacing-md);
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 14px;
  font-weight: 500;
}

.toc-toggle:hover {
  background-color: var(--bg-secondary);
  color: var(--text-primary);
}

.toc-toggle svg {
  transition: transform 0.3s ease;
}

.toc-toggle.collapsed svg {
  transform: rotate(-90deg);
}

.toc-toggle-text {
  font-size: 14px;
  font-weight: 500;
}

.toc-content {
  padding: 10px 0;
  transition: all 0.3s ease;
  overflow: hidden;
}

.toc-content.collapsed {
  max-height: 0;
  padding: 0 var(--spacing-lg);
  opacity: 0;
}

.toc-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--spacing-md) 0;
}

.toc-item {
  margin-bottom: var(--spacing-xs);
}

.news-content a.toc-link {
  display: block;
  padding: var(--spacing-xs) var(--spacing-md);
  color: var(--accent-primary);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  font-size: 14px;
  line-height: 1.4;
  border-left: 3px solid transparent;
}

.toc-link:hover {
  background-color: var(--bg-secondary);
  color: var(--accent-violet);
  text-decoration: none;
  transform: translateX(5px);
  border-left-color: var(--accent-primary);
}

.toc-link:focus {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* Стили для иконок в ссылках оглавления */
.toc-link svg {
  display: inline-block;
  vertical-align: middle;
  margin-right: var(--spacing-xs);
}

/* Дополнительные стили для заголовков с якорями */
h2[id] {
  scroll-margin-top: 20px; /* Отступ для фиксированной шапки */
}

/* Анимация при переходе к заголовку */
h2[id]:target {
  animation: toc-highlight 2s ease-in-out;
}

@keyframes toc-highlight {
  0% { background-color: transparent; }
  50% { background-color: #fff3cd; }
  100% { background-color: transparent; }
}

/* Адаптивность для мобильных устройств */
@media (max-width: 768px) {
  .table-of-contents {
    margin-bottom: var(--spacing-lg);
  }
  
  .toc-header {
    padding: 0;
    padding-bottom: 15px;
  }
  
  .toc-title {
    font-size: 16px;
  }
  
  .toc-toggle {
    font-size: 13px;
    padding: var(--spacing-xs);
  }
  
  .toc-toggle-text {
    font-size: 13px;
  }
  
  .toc-content {
    
    padding: 0;
  }
  
  .news-content a.toc-link {
    font-size: 16px;
    padding: 10px 0 !important;
    line-height: 18px;
    border-bottom: 1px solid var(--border-light);
  }
  .table-of-contents {
     background: none; 
     border: none;
     border-radius: none;
    margin-bottom: var(--spacing-xl);
     box-shadow: none;
    overflow: hidden;
}
.news-content .toc-title{
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}
.news-content .toc-toggle{
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.news-content .toc-item {
    margin-bottom: 0;
}
}


