/* Мета-информация новости */
.news-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.news-date {

    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-secondary);
    letter-spacing: -0.14px;
}

.news-reading-time {

    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-secondary);
    letter-spacing: -0.14px;
    position: relative;
    padding-left: 15px;
}

.news-reading-time::before {
    content: '•';
    position: absolute;
    left: 5px;
    color: var(--color-border);
}

.news-categories {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.news-category {
    background-color: #f7f7fe;
    padding: 6px 16px;
    border-radius: 20px;

    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: var(--color-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    letter-spacing: -0.12px;
}

.news-category:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Основной контент новости */
.news-article {
    padding: 0 0 80px;
    background-color: #ffffff;
}

/* Изображение новости */
.news-featured-image {
    margin-bottom: 40px;
    border-radius: 40px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.news-featured-image img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 40px;
}

/* Контент новости */
.news-content {
    max-width: 800px;
    margin: 0 auto;
}

.news-excerpt {

    font-weight: 500;
    font-size: 18px;
    line-height: 28px;
    color: var(--color-secondary);
    margin-bottom: 30px;
    padding: 25px;
    background-color: #f8f9fa;
    border-radius: 20px;
    border-left: 4px solid var(--color-primary);
    letter-spacing: -0.18px;
}

.news-text {

    font-weight: 400;
    font-size: 16px;
    line-height: 26px;
    color: var(--color-text);
    letter-spacing: -0.16px;
}

.news-text p {
    margin-bottom: 20px;
}

.news-text h2,
.news-text h3,
.news-text h4 {

    font-weight: 700;
    color: var(--color-heading);
    margin: 30px 0 15px;
    letter-spacing: -0.02em;
}

.news-text h2 {
    font-size: 28px;
    line-height: 36px;
}

.news-text h3 {
    font-size: 24px;
    line-height: 32px;
}

.news-text h4 {
    font-size: 20px;
    line-height: 28px;
}

.news-text ul,
.news-text ol {
    margin: 20px 0;
    padding-left: 25px;
}

.news-text li {
    margin-bottom: 8px;
}

.news-text blockquote {
    margin: 30px 0;
    padding: 20px 25px;
    background-color: #f7f7fe;
    border-left: 4px solid var(--color-primary);
    border-radius: 0 15px 15px 0;
    font-style: italic;
    color: var(--color-secondary);
}

.news-text a {
    color: var(--color-primary);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}

.news-text a:hover {
    border-bottom-color: var(--color-primary);
}

/* Пагинация страниц */
.page-links {
    margin: 40px 0;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 15px;
    text-align: center;

    font-weight: 500;
    color: var(--color-secondary);
}

.page-links a {
    display: inline-block;
    margin: 0 5px;
    padding: 8px 15px;
    background-color: var(--color-primary);
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.page-links a:hover {
    background-color: #3a7bd8;
    transform: translateY(-1px);
}

/* Навигация между новостями */
.news-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 60px 0 40px;
    padding: 30px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.news-nav-item {
    display: flex;
}

.news-nav-prev {
    justify-content: flex-start;
}

.news-nav-next {
    justify-content: flex-end;
    text-align: right;
}

.news-nav-link {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 300px;
}

.news-nav-link:hover {
    background-color: #f7f7fe;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.news-nav-label {

    font-weight: 500;
    font-size: 12px;
    line-height: 16px;
    color: var(--color-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-nav-title {

    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-heading);
    letter-spacing: -0.14px;
}

/* Кнопка возврата к архиву */
.back-to-archive {
    text-align: center;
    margin-top: 40px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;

    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    text-decoration: none;
    border-radius: 30px;
    transition: all 0.3s ease;
    letter-spacing: -0.14px;
}

.btn-outline {
    background-color: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-outline:hover {
    background-color: var(--color-primary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(74, 140, 240, 0.3);
}

/* Адаптивность */
@media (max-width: 1200px) {
    .page-header .page-title {
        font-size: 42px;
        line-height: 52px;
    }

    .news-content {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .breadcrumbs {
        padding: 100px 0 0;
    }

    .page-header {
        padding: 30px 0 40px;
    }

    .page-header .page-title {
        font-size: 32px;
        line-height: 40px;
        margin-bottom: 15px;
    }

    .news-meta {
        gap: 15px;
    }

    .news-featured-image {
        margin-bottom: 30px;
        border-radius: 25px;
    }

    .news-featured-image img {
        border-radius: 25px;
    }

    .news-excerpt {
        font-size: 16px;
        line-height: 24px;
        padding: 20px;
        margin-bottom: 25px;
    }

    .news-text {
        font-size: 15px;
        line-height: 24px;
    }

    .news-text h2 {
        font-size: 24px;
        line-height: 32px;
    }

    .news-text h3 {
        font-size: 20px;
        line-height: 28px;
    }

    .news-text h4 {
        font-size: 18px;
        line-height: 24px;
    }

    .news-navigation {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 40px 0 30px;
    }

    .news-nav-next {
        text-align: left;
    }

    .news-nav-link {
        max-width: 100%;
        padding: 15px;
    }

    .back-to-archive {
        margin-top: 30px;
    }

    .btn {
        padding: 12px 25px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .page-header .page-title {
        font-size: 28px;
        line-height: 36px;
    }

    .news-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .news-featured-image {
        border-radius: 20px;
    }

    .news-featured-image img {
        border-radius: 20px;
    }

    .news-excerpt {
        padding: 15px;
        border-radius: 15px;
    }

    .news-nav-link {
        padding: 12px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 12px;
    }
}

/* Секция похожих новостей */
.related-news {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--color-border);
}

.related-news-title {

    font-weight: 700;
    font-size: 28px;
    line-height: 36px;
    color: var(--color-heading);
    margin: 0 0 30px;
    text-align: center;
    letter-spacing: -0.28px;
}

.related-news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.related-news-item {
    background-color: #f8f9fa;
    border-radius: 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.related-news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.related-news-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

.related-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-news-item:hover .related-news-image img {
    transform: scale(1.05);
}

.related-news-content {
    padding: 20px;
}

.related-news-item-title {
    margin: 0 0 10px;
}

.related-news-item-title a {

    font-weight: 600;
    font-size: 16px;
    line-height: 22px;
    color: var(--color-heading);
    text-decoration: none;
    transition: color 0.3s ease;
    letter-spacing: -0.16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-news-item-title a:hover {
    color: var(--color-primary);
}

.related-news-meta {
    margin-bottom: 12px;
}

.related-news-date {

    font-weight: 400;
    font-size: 12px;
    line-height: 16px;
    color: var(--color-secondary);
    letter-spacing: -0.12px;
}

.related-news-excerpt {

    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    color: var(--color-text);
    letter-spacing: -0.14px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Адаптивность для похожих новостей */
@media (max-width: 768px) {
    .related-news {
        margin-top: 40px;
        padding-top: 30px;
    }

    .related-news-title {
        font-size: 24px;
        line-height: 32px;
        margin-bottom: 25px;
    }

    .related-news-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .related-news-image {
        height: 180px;
    }

    .related-news-content {
        padding: 15px;
    }

    .related-news-item-title a {
        font-size: 15px;
        line-height: 20px;
    }
}

@media (max-width: 480px) {
    .related-news-title {
        font-size: 20px;
        line-height: 28px;
    }

    .related-news-image {
        height: 160px;
    }

    .related-news-item {
        border-radius: 20px;
    }
}