/* =========================================================
   ЮРИДИЧЕСКАЯ ЗАЩИТА «СТРАЖА»
   Раздел «Новости и практика» — карточки, список, статья
   Подключается ДОПОЛНИТЕЛЬНО к style.css (использует его
   переменные и стили шапки/подвала/кнопок)
   ========================================================= */

/* --- Карточки публикаций: используются и на главной, и в списке --- */

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.news-card {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(54, 77, 89, 0.18);
    border-top: 3px solid #526b78;
    border-radius: var(--radius);
    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,0.93) 0%,
            rgba(232,237,239,0.96) 58%,
            rgba(244,246,246,0.96) 100%
        );
    box-shadow:
        0 14px 34px rgba(18, 38, 49, 0.075),
        inset 0 1px 0 rgba(255,255,255,0.90);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.news-card:hover {
    border-color: rgba(62, 87, 100, 0.35);
    border-top-color: var(--gold);
    box-shadow:
        0 23px 48px rgba(18, 38, 49, 0.14),
        inset 0 1px 0 rgba(255,255,255,0.92);
    transform: translateY(-6px);
}

.news-card-media {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background: var(--silver-200);
}

.news-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px 28px 30px;
}

.news-card-category {
    margin-bottom: 12px;
    color: var(--gold-dark);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.news-card h3 {
    margin-bottom: 12px;
    color: var(--navy-950);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    font-weight: 400;
    line-height: 1.28;
}

.news-card p {
    flex: 1;
    margin-bottom: 20px;
    color: var(--text-soft);
    font-size: 14.5px;
    line-height: 1.65;
}

.news-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--silver-500);
    font-size: 12px;
}

.news-card-meta a {
    color: var(--navy-900);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.news-card-meta a:hover {
    color: var(--gold-dark);
}

.news-card-link {
    position: absolute;
    inset: 0;
}

/* --- Блок "Новости и практика" на главной --- */

.news-section {
    padding-block: 108px;
    background: var(--silver-100);
}

.news-section-foot {
    margin-top: 44px;
    text-align: center;
}

/* --- Шапка внутренних страниц (список публикаций, статья) --- */

.page-hero {
    padding-block: 64px 52px;
    border-bottom: 1px solid var(--line);
    background: var(--silver-100);
}

.breadcrumbs {
    margin-bottom: 22px;
    color: var(--silver-500);
    font-size: 12px;
    letter-spacing: 0.04em;
}

.breadcrumbs a {
    color: var(--navy-800);
    font-weight: 700;
}

.breadcrumbs a:hover {
    color: var(--gold-dark);
}

.page-hero h1 {
    max-width: 820px;
    margin-bottom: 18px;
    color: var(--navy-950);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 400;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.14;
    letter-spacing: -0.02em;
}

.page-hero-text {
    max-width: 640px;
    color: var(--text-soft);
    font-size: 17px;
    line-height: 1.7;
}

/* --- Список публикаций --- */

.publications-list {
    padding-block: 72px 110px;
}

/* --- Отдельная статья --- */

.article-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
    color: var(--silver-500);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.article-meta-row .article-category {
    color: var(--gold-dark);
    font-weight: 700;
}

.article-cover {
    margin-top: 40px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow-strong);
}

.article-cover img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.article-body {
    padding-block: 56px 90px;
}

.article-body-inner {
    max-width: 760px;
    margin: 0 auto;
}

.article-body-inner h2 {
    margin-top: 48px;
    margin-bottom: 18px;
    color: var(--navy-950);
    font-size: clamp(24px, 2.6vw, 30px);
}

.article-body-inner p {
    margin-bottom: 20px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.8;
}

.article-body-inner ul,
.article-body-inner ol {
    margin: 0 0 20px;
    padding-left: 22px;
    color: var(--text);
    font-size: 17px;
    line-height: 1.75;
}

.article-body-inner li {
    margin-bottom: 10px;
}

.article-body-inner a {
    color: var(--navy-800);
    border-bottom: 1px solid var(--gold);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.article-body-inner a:hover {
    color: var(--gold-dark);
    border-color: var(--gold-dark);
}

.article-lede {
    color: var(--navy-950) !important;
    font-size: 19px !important;
    line-height: 1.7 !important;
}

.article-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 56px;
    padding: 38px 40px;
    border-radius: var(--radius);
    background: var(--navy-950);
    color: var(--white);
}

.article-cta p {
    max-width: 460px;
    margin: 0;
    color: rgba(244,248,249,0.78);
    font-size: 15px;
    line-height: 1.6;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 36px;
    color: var(--navy-800);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.article-back:hover {
    color: var(--gold-dark);
}

.article-disclaimer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    color: var(--silver-500);
    font-size: 13px;
    line-height: 1.7;
}

@media (max-width: 980px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-section {
        padding-block: 68px;
    }

    .page-hero {
        padding-block: 44px 34px;
    }

    .article-body {
        padding-block: 40px 60px;
    }

    .article-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 28px 26px;
    }
}
