.links-form a {
color: #2F3538 !important;
border-bottom: 1px solid #2F3538;
}

.links-form a:hover {
color: #BC0022 !important;
border-bottom: 1px solid #BC0022;
}

.uc-links-header-mobile a {
color: #ffffff !important;
border-bottom: 0px solid #ffffff;
}

.uc-links-header-mobile a:hover {
color: #FBF8F5 !important;
border-bottom: 1px solid #FBF8F5;
}

.links-footer-mobile a {
color: #ffffff !important;
border-bottom: 0px solid #ffffff;
}

.links-footer-mobile a:hover {
color: #FBF8F5 !important;
border-bottom: 1px solid #FBF8F5;
}

.links-menu-footer a {
color: #2F3640 !important;
border-bottom: 0px solid #2F3640;
}

.links-menu-footer a:hover {
color: #AE1F2D !important;
border-bottom: 0px solid #AE1F2D;
}

.links-footer-doc a {
color: #2F3640 !important;
border-bottom: 0px solid #2F3640;
}

.links-footer-doc a:hover {
color: #AE1F2D !important;
border-bottom: 1px solid #AE1F2D;
}

.links-noborder a {
color: #222222 !important;
}

.links-noborder a:hover {
color: #AE1F2D !important;
border-bottom: 0px solid #AE1F2D;
}

.uc-links-text a {
color: #222222 !important;
border-bottom: 2px solid #222222;
font-weight: 600;
}

.uc-links-text a:hover {
color: #AE1F2D !important;
font-weight: 600;
border-bottom: 2px solid #AE1F2D;
}

.links-media a {
color: #2F3640 !important;
border-bottom: 0px solid #2F3640;
font-weight: 400;
}

.links-media a:hover {
color: #AE1F2D !important;
font-weight: 400;
border-bottom: 0px solid #AE1F2D;
}

.links-text a {
color: #2F3538 !important;
border-bottom: 1px solid #2F3538;
font-weight: 400;
}

.links-text a:hover {
color: #AE1F2D !important;
font-weight: 400;
border-bottom: 1px solid #AE1F2D;
}

.menu-footer a {
color: #9A98A0 !important;
}

.menu-footer a:hover {
color: #FFFFFF !important;
border-bottom: 0px solid #FFFFFF;
}

.menu-burger a {
color: #222222 !important;
}

.menu-burger a:hover {
color: #AE1F2D !important;
border-bottom: 2px solid #AE1F2D;
}

.sub-footer a {
color: #2F3640 !important;

}
.sub-footer a:hover {
color: #AE1F2D !important;
border-bottom: 0px solid #AE1F2D;
}


.t-site-search-dm__result__title {
    color: #222222;
    text-align: left;
    font-size: 16px;
    margin-bottom: 10px;
    height: auto;
    display: block !important;
}

@media (max-width: 640px) {
    .nolim-breadcrumbs {
        margin-top: 20px;
        margin-bottom: 10px;
        margin-left: 20px;
        font-size: 12px;
        line-height: 1.4;
    }
}

@media screen and (max-width: 960px) {
    .t-feed__container_inrow1 .t-feed__post:first-child, .t-feed__container_inrow2 .t-feed__post:nth-child(-n+2), .t-feed__container_inrow3 .t-feed__post:nth-child(-n+3), .t-feed__container_inrow4 .t-feed__post:nth-child(-n+4) {
        margin-top: 30px !important;
    }
}

/* Comments */

.comments-system {
    max-width: 800px;
    margin: 2rem auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Заголовок */
.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
}

.comments-title {
    margin: 0;
    color: #2c3e50;
    font-size: 1.75rem;
    font-weight: 700;
}

.comments-stats {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.comments-count {
    font-size: 1.5rem;
    font-weight: 700;
    color: #3498db;
}

.comments-label {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Форма комментария */
.comment-form-container {
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: white;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-label {
    position: absolute;
    left: 1rem;
    top: 1rem;
    color: #6c757d;
    font-size: 1rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: white;
    padding: 0 0.25rem;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-textarea:focus + .form-label,
.form-textarea:not(:placeholder-shown) + .form-label {
    top: -0.5rem;
    font-size: 0.8rem;
    color: #3498db;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.submit-btn {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Список комментариев */
.comments-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.comment-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    animation: commentAppear 0.5s ease-out;
}

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

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #2980b9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 1rem;
}

.author-info h4 {
    margin: 0 0 0.25rem 0;
    color: #2c3e50;
    font-size: 1rem;
}

.author-info .comment-date {
    color: #7f8c8d;
    font-size: 0.8rem;
}

.comment-actions {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    background: none;
    border: none;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.action-btn:hover {
    color: #3498db;
    background: #f8f9fa;
}

.comment-content {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.comment-text {
    margin: 0;
    white-space: pre-wrap;
}

/* Загрузка и пустые состояния */
.comments-loading,
.comments-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #7f8c8d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Пагинация */
.comments-pagination {
    text-align: center;
    padding: 1rem 0;
}

.pagination-btn {
    background: white;
    border: 2px solid #3498db;
    color: #3498db;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(:disabled) {
    background: #3498db;
    color: white;
    transform: translateY(-2px);
}

.pagination-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Модальное окно */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1rem;
}

.modal-container {
    background: white;
    border-radius: 12px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s ease-out;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 1.5rem 1rem;
    border-bottom: 1px solid #e9ecef;
}

.modal-header h3 {
    margin: 0;
    color: #2c3e50;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #7f8c8d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #2c3e50;
}

.modal-body {
    padding: 1.5rem;
}

.modal-body p {
    margin: 0;
    color: #2c3e50;
    line-height: 1.5;
}

.modal-footer {
    padding: 1rem 1.5rem 1.5rem;
    text-align: right;
    border-top: 1px solid #e9ecef;
}

.modal-btn {
    background: #3498db;
    color: white;
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.modal-btn:hover {
    background: #2980b9;
}

/* Утилиты */
.hidden {
    display: none !important;
}

/* Адаптивность */
@media (max-width: 768px) {
    .comments-system {
        margin: 1rem;
    }
    
    .comments-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .comment-form-container {
        padding: 1.5rem;
    }
    
    .comment-item {
        padding: 1.25rem;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .comment-actions {
        align-self: flex-end;
    }
}

/* Темная тема */
@media (prefers-color-scheme: dark) {
    .comments-system {
        color: #ecf0f1;
    }
    
    .comment-form-container {
        background: #2c3e50;
        border-color: #34495e;
    }
    
    .form-input,
    .form-textarea {
        background: #34495e;
        border-color: #4a6278;
        color: #ecf0f1;
    }
    
    .form-label {
        background: #34495e;
        color: #bdc3c7;
    }
    
    .comment-item {
        background: #2c3e50;
        border-color: #34495e;
        color: #ecf0f1;
    }
    
    .author-info h4 {
        color: #ecf0f1;
    }
    
    .modal-container {
        background: #2c3e50;
        color: #ecf0f1;
    }
    
    .modal-header {
        border-color: #34495e;
    }
    
    .modal-footer {
        border-color: #34495e;
    }
}
