/* ============ Новости сайта ============ */

/* --- Секция на главной --- */
.latest-news-section { padding: 3rem 0 4rem; }
.latest-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}
.latest-news-title {
    font-size: 2rem;
    color: var(--primary, #96bf32);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}
.all-news-link {
    color: var(--primary-light, #a8d13c);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 2px dashed rgba(150, 191, 50, 0.5);
    transition: var(--transition);
}
.all-news-link:hover { color: var(--primary, #96bf32); border-bottom-color: var(--primary); }

/* --- Сетка карточек --- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.news-card {
    display: flex;
    flex-direction: column;
    background: var(--bg-secondary, rgba(30, 30, 30, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius, 6px);
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    height: 100%;
}
.news-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary, #96bf32);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.news-card-img {
    aspect-ratio: 16 / 9;
    background: #242424;
    overflow: hidden;
    flex-shrink: 0;
}
.news-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}
.news-card:hover .news-card-img img { transform: scale(1.05); }
.news-card-noimg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary, #96bf32);
    background:
        radial-gradient(circle at 20% 20%, rgba(150, 191, 50, 0.14), transparent 55%),
        radial-gradient(circle at 80% 80%, rgba(150, 191, 50, 0.10), transparent 50%),
        #232323;
}

.news-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.1rem 1.15rem;
    flex: 1;
}
.news-card-date {
    font-size: 0.78rem;
    color: var(--text-muted, #999);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.news-card-title {
    font-size: 1.12rem;
    line-height: 1.3;
    color: var(--text-on-dark, #e8e8e8);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-desc {
    font-size: 0.9rem;
    color: #b5b5b5;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.news-card-more {
    margin-top: auto;
    padding-top: 0.35rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary, #96bf32);
}

.news-load-wrap { text-align: center; margin-top: 2rem; }
.news-empty-msg {
    text-align: center;
    color: var(--text-muted, #999);
    padding: 3rem 1rem;
    grid-column: 1 / -1;
}

/* --- Страница новостей --- */
.news-hero { text-align: center; }
.news-hero h1 {
    color: var(--primary, #96bf32);
    font-size: 2.4rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}
.news-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
    color: var(--primary-light, #a8d13c);
    font-weight: 700;
    text-decoration: none;
}
.news-back-btn:hover { color: var(--primary); }

/* --- Статья --- */
.news-article {
    max-width: 860px;
    margin: 0 auto;
    background: var(--bg-secondary, rgba(30, 30, 30, 0.92));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    overflow: hidden;
}
.na-cover {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    display: block;
}
.na-body { padding: 1.75rem clamp(1rem, 4vw, 2.25rem) 2.25rem; }
.na-date {
    display: inline-block;
    font-size: 0.82rem;
    color: #0f0f0f;
    background: var(--primary, #96bf32);
    border-radius: 4px;
    padding: 0.15rem 0.6rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.na-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    line-height: 1.22;
    color: var(--text-on-dark, #e8e8e8);
    margin-bottom: 0.6rem;
}
.na-lead {
    font-size: 1.05rem;
    color: #b9b9b9;
    line-height: 1.55;
    margin-bottom: 1.5rem;
}
.na-divider { height: 1px; background: rgba(255, 255, 255, 0.09); margin: 1.6rem 0; }

.na-block { margin-top: 1.4rem; }
.na-heading {
    font-size: 1.4rem;
    color: var(--primary-light, #a8d13c);
    margin-top: 1.8rem;
}
.na-text { color: #d4d4d4; line-height: 1.65; white-space: pre-line; }
.na-quote {
    border-left: 4px solid var(--primary, #96bf32);
    background: rgba(150, 191, 50, 0.07);
    padding: 0.9rem 1.15rem;
    border-radius: 0 6px 6px 0;
    color: #cfcfcf;
    font-style: italic;
    line-height: 1.6;
    white-space: pre-line;
}
.na-image-full { margin-top: 1.6rem; }
.na-image-full img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}
.na-image-center {
    margin-top: 1.6rem;
    display: flex;
    justify-content: center;
}
.na-image-center img {
    max-width: 70%;
    border-radius: 8px;
    display: block;
}

.na-imgtext {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    margin-top: 1.6rem;
}
.na-imgtext img {
    width: 46%;
    max-width: 380px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.na-imgtext p { color: #d4d4d4; line-height: 1.65; white-space: pre-line; }
.na-imgtext-left img { order: 0; }
.na-imgtext-right img { order: 2; }
.na-imgtext-right .na-imgtext-text { order: 1; }

@media (max-width: 640px) {
    .latest-news-section { padding: 2.25rem 0 3rem; }
    .latest-news-title { font-size: 1.55rem; }
    .news-grid { grid-template-columns: 1fr; }
    .news-hero h1 { font-size: 1.8rem; }
    .na-body { padding: 1.25rem 1rem 1.75rem; }
    .na-image-center img { max-width: 100%; }
    .na-imgtext { flex-direction: column; }
    .na-imgtext img { width: 100%; max-width: none; }
    .na-imgtext-right img { order: 0; }
    .na-imgtext-right .na-imgtext-text { order: 1; }
}
