/* Современный деловой стиль */
:root {
    --primary-color: #1a365d;
    --secondary-color: #2d3748;
    --accent-color: #2f55d4;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --text-primary: #2d3748;
    --text-secondary: #718096;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Шапка новости */
.blogs-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2c5282 100%);
    color: white;
    padding: 80px 0 60px;
    position: relative;
    overflow: hidden;
}

.blogs-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 100" fill="rgba(255,255,255,0.03)"><polygon points="0,0 1000,100 0,100"></polygon></svg>');
    background-size: cover;
}

.blogs-header-content {
    position: relative;
    z-index: 2;
}

.blogs-title {
    font-size: 2.8rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.blogs-meta {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.meta-item i {
    font-size: 1.1rem;
}

/* Хлебные крошки */
.breadcrumb-modern {
    background: var(--light-bg);
    padding: 1rem 0;
    border-bottom: 1px solid var(--border-color);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: var(--accent-color);
}


.breadcrumb-item:last-child::after {
    content: none;
}

/* Основной контент */
.blogs-content-section {
    padding: 4rem 0;
}

.blogs-article {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 3rem;
}

.article-cover {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.article-content {
    padding: 3rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    line-height: 1.3;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.article-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.article-body {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin: 2rem 0 1rem;
}

.article-body h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 1.5rem 0 0.75rem;
}

.article-body p {
    margin-bottom: 1.5rem;
}

.article-body blockquote {
    border-left: 4px solid var(--accent-color);
    padding-left: 1.5rem;
    margin: 2rem 0;
    font-style: italic;
    color: var(--text-secondary);
}

/* Теги */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.tag {
    background: var(--light-bg);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

/* Галерея */
.blogs-gallery {
    margin: 3rem 0;
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* Похожие новости */
.related-blogs {
    margin: 4rem 0;
}

.related-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 2rem;
    text-align: center;
}

.blogs-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.blogs-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.blogs-card-img {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.blogs-card-body {
    padding: 1.5rem;
}

.blogs-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.blogs-card-date {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

.blogs-card-link {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: gap 0.2s ease;
}

.blogs-card-link:hover {
    gap: 0.75rem;
}

/* Сайдбар */
.sidebar-modern {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--accent-color);
}

.search-form {
    position: relative;
    margin-bottom: 2rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(49, 130, 206, 0.1);
}

.search-button {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    cursor: pointer;
}

.categories-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-item {
    margin-bottom: 0.75rem;
}

.category-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: var(--light-bg);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
}

.category-link:hover {
    background: var(--accent-color);
    color: white;
    transform: translateX(4px);
}

.category-count {
    background: white;
    color: var(--accent-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.recent-blogs-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-blogs-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.recent-blogs-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.recent-blogs-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    flex-shrink: 0;
}

.recent-blogs-content {
    flex: 1;
}

.recent-blogs-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.recent-blogs-date {
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud {
    background: var(--light-bg);
    color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tag-cloud:hover {
    background: var(--accent-color);
    color: white;
    transform: translateY(-1px);
}

/* Комментарии */
.comments-area {
    background: #fff;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    margin-top: 40px;
}

.comments-title {
    font-size: 16px;
    color: #23324d;
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.comments-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(135deg, #2f55d4 0%, #2f55d4 100%);
    border-radius: 2px;
}

.comment-list {
    margin-bottom: 40px;
}

/* Основной стиль комментария */
.comment {
    display: block;
    gap: 20px;
    padding: 20px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    border-left: 4px solid #2f55d4;
    transition: all 0.3s ease;
    position: relative;
}

.comment:hover {
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.comment-author {
    flex-shrink: 0;
}

.comment-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.comment-body {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.comment-meta-author {
    font-weight: 700;
    color: #2d3748;
    font-size: 16px;
}

.comment-meta-date {
    color: #718096;
    font-size: 14px;
}

.comment-content {
    color: #4a5568;
    line-height: 1.5;
    margin-bottom: 12px;
    font-size: 15px;
}

.comment-content p {
    margin: 0;
}

.comment-reply {
    margin-top: 10px;
}

.reply-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #667eea;
    color: white;
    text-decoration: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.reply-link:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

/* Стиль для вложенных комментариев */
.comment .comment {
    margin-top: 15px;
    margin-left: 40px; /* Отступ для вложенности */
    background: #f1f3f9;
    border-left-color: #a0aec0;
}

.comment .comment .comment {
    background: #e8edfb;
    border-left-color: #869be0;
    margin-left: 40px; /* Постоянный отступ для всех уровней */
}

/* Убираем лишние трансформации */
.comment {
    transform: none !important;
}

.comment-respond {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    margin-top: 30px;
}

.comment-reply-title {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 15px;
}

.comment-notes {
    color: #718096;
    margin-bottom: 20px;
    font-size: 14px;
}

.comment-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.comment-form .form-group {
    margin-bottom: 0;
}

.comment-form .form-group:last-child {
    grid-column: 1 / -1;
}

.comment-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #2d3748;
    font-size: 14px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: #fff;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.comment-form textarea {
    min-height: 100px;
    resize: vertical;
}

.form-submit {
    grid-column: 1 / -1;
    text-align: right;
    margin-top: 15px;
}

.btn-primary {
    background: #2f55d4;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary:hover {
    background: #5a67d8;
    transform: translateY(-1px);
}

#reply-info {
    grid-column: 1 / -1;
    margin: 12px 0;
}

.alert-info {
    background: #90cdf4;
    border: none;
    border-radius: 8px;
    padding: 12px;
    color: #2d3748;
    font-size: 14px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .comment {
        flex-direction: column;
        text-align: left;
        padding: 15px;
    }

    .comment-author {
        text-align: center;
        margin-bottom: 12px;
    }

    .comment-author img {
        width: 45px;
        height: 45px;
    }

    .comment-form {
        grid-template-columns: 1fr;
    }

    .comment .comment,
    .comment .comment .comment {
        margin-left: 20px; /* Меньший отступ на мобильных */
    }

    .comments-area {
        padding: 20px;
    }

    .comment-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

/* Анимации */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.comment {
    animation: fadeIn 0.4s ease;
}

/* Капча */
.captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.captcha-code {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    background: #f7fafc;
    padding: 8px 12px;
    border-radius: 6px;
    border: 2px dashed #cbd5e0;
    min-width: 70px;
    text-align: center;
}

/* Пустое состояние */
.no-comments {
    text-align: center;
    padding: 40px 20px;
    color: #718096;
}

.no-comments-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.5;
}

/* Адаптивность */
@media (max-width: 768px) {
    .blogs-title {
        font-size: 2rem;
    }

    .article-content {
        padding: 2rem;
    }

    .article-title {
        font-size: 1.8rem;
    }

    .blogs-meta,
    .article-meta {
        gap: 1rem;
    }

    .sidebar-modern {
        margin-top: 2rem;
    }
}