/* Блог новостей Меркурий-ИИ */
:root {
    --news-orange: #e8a020;
    --news-border: #e8e4dc;
    --news-muted: #6b6560;
    --news-max: 900px;
}

body.news-page {
    margin: 0;
    font-family: "Segoe UI", sans-serif;
    font-size: 11pt;
    line-height: 1.55;
    color: #2a2a2a;
    background: #faf9f6;
}

.news-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 14px 20px;
    background: #fff;
    border-bottom: 1px solid var(--news-border);
}

.news-header-brand {
    font-weight: 700;
    color: var(--news-orange);
}

.news-header a {
    color: #2a2a2a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    margin-left: 14px;
}

.news-header a:hover {
    color: var(--news-orange);
}

.news-main {
    max-width: var(--news-max);
    margin: 0 auto;
    padding: 28px 20px 48px;
}

.news-eyebrow {
    margin: 0 0 8px;
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--news-muted);
}

.news-main h1 {
    margin: 0 0 12px;
    font-size: 1.75em;
    line-height: 1.25;
}

.news-lead {
    margin: 0 0 24px;
    font-size: 1.08em;
    color: #444;
}

.news-date {
    margin: 0 0 20px;
    font-size: 0.9em;
    color: var(--news-muted);
}

.news-hero-img {
    display: block;
    width: 100%;
    max-height: 360px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--news-border);
    margin: 0 0 24px;
}

.news-block {
    margin-bottom: 1.5rem;
}

.news-block h2 {
    margin: 0 0 0.65rem;
    font-size: 1.15em;
}

.news-block p,
.news-block li {
    margin: 0 0 0.65rem;
}

.news-block ol,
.news-block ul {
    margin: 0 0 0.75rem;
    padding-left: 1.35rem;
}

.news-footer {
    max-width: var(--news-max);
    margin: 0 auto;
    padding: 0 20px 32px;
    font-size: 0.9em;
    color: var(--news-muted);
}

.news-footer a {
    color: var(--news-orange);
}

/* Хаб блога */
.news-hub-intro {
    max-width: var(--news-max);
    margin: 0 auto;
    padding: 28px 20px 12px;
}

.news-hub-intro h1 {
    margin: 0 0 10px;
    font-size: 1.75em;
}

.news-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
    max-width: var(--news-max);
    margin: 0 auto;
    padding: 8px 20px 40px;
}

.news-hub-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid var(--news-border);
    border-radius: 10px;
    overflow: hidden;
    transition: box-shadow 0.15s, border-color 0.15s;
}

.news-hub-card:hover {
    border-color: var(--news-orange);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.news-hub-card-img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    background: #f0ede8;
}

.news-hub-card-img--contain {
    height: 240px;
    object-fit: contain;
    background: #ececec;
}

.news-hub-card-body {
    padding: 14px 16px 16px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.news-hub-card-date {
    font-size: 0.8em;
    color: var(--news-muted);
    margin-bottom: 6px;
}

.news-hub-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.05em;
    line-height: 1.3;
}

.news-hub-card span {
    font-size: 0.92em;
    color: #555;
    line-height: 1.45;
}

/* Секция в личном кабинете */
.cabinet-news-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e8e4dc;
}

.cabinet-news-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.cabinet-news-head h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.cabinet-news-all-link {
    font-size: 0.95rem;
    font-weight: 600;
    color: #e8a020;
    text-decoration: none;
}

.cabinet-news-all-link:hover {
    text-decoration: underline;
}

.cabinet-news-latest {
    background: #faf9f6;
    border: 1px solid #e8e4dc;
    border-radius: 10px;
    overflow: hidden;
}

.cabinet-news-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 0;
}

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

.cabinet-news-card-img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
}

.cabinet-news-card-img--contain {
    object-fit: contain;
    background: #ececec;
    min-height: 200px;
}

.cabinet-news-card-body {
    padding: 16px 18px;
}

.cabinet-news-card-date {
    font-size: 0.82em;
    color: var(--news-muted);
    margin-bottom: 6px;
}

.cabinet-news-card h3 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    line-height: 1.3;
}

.cabinet-news-card h3 a {
    color: inherit;
    text-decoration: none;
}

.cabinet-news-card h3 a:hover {
    color: var(--news-orange);
}

.cabinet-news-card p {
    margin: 0 0 12px;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.45;
}

.cabinet-news-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cabinet-news-card-actions a {
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}

.cabinet-news-read {
    color: var(--news-orange);
}
