/* Новые стили для карточки новости с эффектами */
.news__item {
    position: relative;
    display: flex;
    gap: 1.5rem;
    width: calc(50% - 1rem);
    min-width: calc(50% - 1rem);
    background: #262342;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.news__item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.news__item:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.news__item:hover::before {
    transform: scaleX(1);
}

.news__item-image-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    width: calc(50% - 0.75rem);
    min-width: calc(50% - 0.75rem);
    height: 200px;
}

@media screen and (max-width: 575.98px) {
    .news__item-image-wrapper {
        width: 100%;
        min-width: 100%;
    }
}

.news__item-picture {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    border-radius: 12px;
    overflow: hidden;
}

.news__item-picture img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.3s ease;
}

.news__item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.news__item-eye {
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.news__item-picture:hover .news__item-overlay {
    background: rgba(0, 0, 0, 0.6);
    opacity: 1;
}

.news__item-picture:hover .news__item-eye {
    transform: scale(1);
}

.news__item-picture:hover img {
    transform: scale(1.05);
}

.news__item-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news__item-header {
    margin-bottom: 0.75rem;
}

.news__item-title {
    display: block;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.5rem;
    color: #fff;
    margin-bottom: .5rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.news__item-title:hover {
    color: #5198ec;
}

.news__item-content {
    font-weight: 400;
    font-size: 1rem;
    line-height: 1.25rem;
    color: #c0c5d0;
    margin-bottom: 1.25rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news__item-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 12px;
    margin-top: auto;
}

.news__item-meta {
    flex: 1;
}

.news__item-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.875rem;
}

.news__item-date,
.news__item-views {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #77afee;
    font-size: 0.875rem;
	margin-bottom: 0rem;
}

.news__item-date svg,
.news__item-views svg {
    width: 16px;
    height: 16px;
    color: #77afee;
    flex-shrink: 0;
}

.news__item-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.news__item-btn:hover {
    background: linear-gradient(135deg, #3e59d3 0%, #552b7f 100%);
}

.tags__item.m--simple {
    background: rgba(63, 102, 255, 0.1);
    color: #77afee;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(119, 175, 238, 0.3);
    white-space: nowrap;
}

.tags__item.m--simple:hover {
    background: rgba(63, 102, 255, 0.2);
    color: #5198ec;
}

/* Адаптивность */
@media screen and (max-width: 991.98px) {
    .news__item {
        width: 100%;
        min-width: 100%;
    }
}

@media screen and (max-width: 575.98px) {
    .news__item {
        flex-direction: column;
        padding: 16px;
    }
    
    .news__item-image-wrapper {
        height: 160px;
    }
    
    .news__item-info {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .news__item-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .news__item-btn {
        align-self: flex-start;
        margin-top: 8px;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .news__item {
        padding: 12px;
        border-radius: 12px;
    }
    
    .news__item-image-wrapper {
        height: 140px;
    }
    
    .news__item-content {
        -webkit-line-clamp: 2;
    }
}

    .news-article {
        max-width: 100%;
        margin: 0 auto;
        background: #262342;
        border-radius: 20px;
        padding: 2.5rem;
        position: relative;
        overflow: hidden;
    }


    /* Заголовок статьи */
    .article-header {
        margin-bottom: 2rem;
    }

    .article-category {
        margin-bottom: 1rem;
    }

    .category-tag {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 0.5rem 1.25rem;
        border-radius: 25px;
        font-size: 0.875rem;
        font-weight: 600;
        text-decoration: none;
        display: inline-block;
        transition: all 0.3s ease;
    }

    .category-tag:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
    }

    .article-title {
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1.2;
        color: #fff;
        margin-bottom: 1.5rem;
        background: linear-gradient(135deg, #fff 0%, #c0c5d0 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
    }

    .article-meta-top {
        display: flex;
        align-items: center;
        gap: 2rem;
        flex-wrap: wrap;
    }

    .article-date,
    .article-views,
    .article-reading-time {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #ffffff;
        font-size: 0.875rem;
        font-weight: 500;
    }

    .article-date svg,
    .article-views svg,
    .article-reading-time svg {
        width: 18px;
        height: 18px;
        color: #77afee;
    }

    /* Разделительная полоса */
    .title-divider {
        border: none;
		height: 2px;
		background: linear-gradient(90deg, transparent, #667eea, transparent);
		margin: 20px 0;
    }

    @keyframes shimmer {
        0% { left: -100%; }
        100% { left: 100%; }
    }

    /* Контент статьи */
    .article-content {
        font-size: 1.125rem;
        line-height: 1.7;
        color: #c0c5d0;
    }

    .article-content p {
        margin-bottom: 1.5rem;
    }

    .article-content h2 {
        font-size: 1.75rem;
        font-weight: 600;
        color: #fff;
        margin: 2.5rem 0 1.5rem 0;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid rgba(102, 126, 234, 0.3);
    }

    .article-content h3 {
        font-size: 1.5rem;
        font-weight: 600;
        color: #fff;
        margin: 2rem 0 1rem 0;
    }

    .article-content h4 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #fff;
        margin: 1.5rem 0 1rem 0;
    }

    /* Изображения в контенте */
    .article-content img {
        max-width: 100%;
        height: auto;
        border-radius: 15px;
        margin: 2rem 0;
        display: block;
    }

    /* Цитаты */
    .article-content blockquote {
        margin: 2rem 0;
        padding: 2rem;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
        border-left: 4px solid #667eea;
        border-radius: 0 12px 12px 0;
        position: relative;
    }

    .article-content blockquote::before {
        content: """;
        position: absolute;
        top: -10px;
        left: 20px;
        font-size: 4rem;
        color: #667eea;
        opacity: 0.2;
        font-family: serif;
    }

    .article-content blockquote p {
        font-size: 1.25rem;
        font-style: italic;
        color: #fff;
        margin-bottom: 0;
        position: relative;
        z-index: 1;
    }

    /* Списки */
    .article-content ul, 
    .article-content ol {
        margin: 1.5rem 0;
        padding-left: 2rem;
    }

    .article-content ul li {
        list-style-type: none;
        position: relative;
        margin-bottom: 0.75rem;
    }

    .article-content ul li::before {
        content: "▸";
        position: absolute;
        left: -1.5rem;
        color: #667eea;
        font-weight: bold;
    }

    .article-content ol {
        counter-reset: item;
    }

    .article-content ol li {
        counter-increment: item;
        position: relative;
        margin-bottom: 0.75rem;
    }

    .article-content ol li::before {
        content: counter(item) ".";
        position: absolute;
        left: -1.5rem;
        color: #667eea;
        font-weight: 600;
    }

    /* Таблицы */
    .article-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 2rem 0;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

    .article-content th {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        padding: 1rem;
        text-align: left;
        font-weight: 600;
    }

    .article-content td {
        padding: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        color: #c0c5d0;
    }

    .article-content tr:last-child td {
        border-bottom: none;
    }

    .article-content tr:hover {
        background: rgba(255, 255, 255, 0.03);
    }

    /* Футер статьи */
    .article-footer {
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }

    .article-tags {
        display: flex;
        align-items: center;
        gap: 1rem;
        flex-wrap: wrap;
    }

    .tags-label {
        color: #77afee;
        font-weight: 600;
        font-size: 0.875rem;
    }

    .tags-list {
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
    }

    .article-actions {
        display: flex;
        gap: 1rem;
    }

    .action-btn {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.75rem 1.5rem;
        background: rgba(255, 255, 255, 0.1);
        color: #c0c5d0;
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 25px;
        font-size: 0.875rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .action-btn:hover {
        background: rgba(102, 126, 234, 0.2);
        color: #fff;
        transform: translateY(-2px);
    }

    .action-btn svg {
        width: 20px;
        height: 20px;
    }

    /* Навигация */
    .article-navigation {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 3rem;
        padding-top: 2rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-btn {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 1rem 1.5rem;
        background: rgba(255, 255, 255, 0.05);
        color: #c0c5d0;
        text-decoration: none;
        border-radius: 12px;
        transition: all 0.3s ease;
        font-weight: 500;
    }

    .nav-btn:hover {
        background: rgba(102, 126, 234, 0.2);
        color: #fff;
        transform: translateY(-2px);
    }

    .nav-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Адаптивность */
    @media (max-width: 768px) {
        .news-article {
            padding: 2rem;
            border-radius: 15px;
        }

        .article-title {
            font-size: 2rem;
        }

        .article-meta-top {
            gap: 1rem;
        }

        .article-footer {
            flex-direction: column;
            align-items: flex-start;
        }

        .article-actions {
            width: 100%;
            justify-content: center;
        }

        .article-navigation {
            flex-direction: column;
            gap: 1rem;
        }

        .nav-btn {
            width: 100%;
            justify-content: center;
        }
    }

    @media (max-width: 480px) {
        .news-article {
            padding: 1.5rem;
            border-radius: 12px;
        }

        .article-title {
            font-size: 1.75rem;
        }

        .article-content {
            font-size: 1rem;
        }

        .article-content h2 {
            font-size: 1.5rem;
        }

        .article-content h3 {
            font-size: 1.25rem;
        }

        .article-meta-top {
            flex-direction: column;
            align-items: flex-start;
            gap: 0.5rem;
        }
    }