/* ===== PAGE ===== */
.news-detail-page {
    padding: 40px 20px;
}

/* ===== CONTAINER ===== */
.news-detail-container {
    max-width: 900px;
    margin: 0 auto;
}

/* ===== BACK LINK ===== */
.news-back {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
    color: #2c7da0;
    text-decoration: none;
    font-weight: 500;
}

.news-back:hover {
    text-decoration: underline;
}

/* ===== ARTICLE CARD ===== */
.news-article-box {
    background: #ffffff;
    padding: 32px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin-bottom: 35px;
}

/* ===== TITLE ===== */
.news-title {
    font-size: 30px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    margin-bottom: 10px;
}

/* ===== META ===== */
.news-meta {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
}

/* ===== COVER ===== */
.news-cover {
    margin-bottom: 20px;
}

.news-cover img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
}

/* ===== TEXT ===== */
.news-text {
    font-size: 16px;
    line-height: 1.8;
    color: #1f2937;
}

/* абзацы */
.news-text p {
    margin-bottom: 16px;
}

/* заголовки */
.news-text h2 {
    margin: 30px 0 12px;
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
}

.news-text h3 {
    margin: 25px 0 10px;
    font-size: 18px;
    font-weight: 600;
}

/* списки */
.news-text ul {
    padding-left: 20px;
    margin-bottom: 16px;
}

.news-text li {
    margin-bottom: 6px;
}

/* картинки внутри текста */
.news-text img {
    width: 100%;
    border-radius: 12px;
    margin: 20px 0;
}

/* ===== GALLERY ===== */
.news-gallery {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.gallery-item {
    display: block;
    border-radius: 12px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* ===== ADAPTIVE ===== */
@media (max-width: 900px) {
    .news-title {
        font-size: 26px;
    }
}

@media (max-width: 768px) {
    .news-article-box {
        padding: 24px;
    }

    .news-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .news-detail-page {
        padding: 20px 12px;
    }

    .news-title {
        font-size: 22px;
    }

    .news-gallery {
        grid-template-columns: 1fr;
    }
}