/* ==========================================================
   news-detail — БЭМ
   Шрифт, цвета и стили .text-section берём из существующих
   стилей проекта. Здесь только специфика блока news-detail.
   ========================================================== */

/* ── Секция ──────────────────────────────────────────────── */
.news-detail {
    padding: 60px 0 80px;
    font-family: "Proxima Nova Rg", sans-serif;
}

/* ── Верхний ряд ─────────────────────────────────────────── */
.news-detail__top {
    margin-bottom: 50px;
    align-items: center;
}

/* ── Левая колонка: заголовок + дата ─────────────────────── */
.news-detail__header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-right: 40px;
}

.news-detail__title {
    font-weight: 700;
    font-size: 36px;
    line-height: 1.2;
    color: #383838;
    margin: 0 0 24px;
}

.news-detail__date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 300;
    color: #383838;
}

.news-detail__date-icon {
    flex-shrink: 0;
    color: #383838;
    opacity: 0.55;
}

/* ── Правая колонка: картинка ────────────────────────────── */
.news-detail__image-col {
    padding-left: 0;
}

.news-detail__image-wrap {
    margin: 0;
    line-height: 0;
}

.news-detail__image {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* ── Текст статьи ────────────────────────────────────────── */
/* .text-section и .text-section__content берём из проекта   */
.news-detail__body {
    padding-bottom: 40px;
}

/* ── Share ───────────────────────────────────────────────── */
.news-detail__share {
    padding: 40px 0 40px;
}

.news-detail__share-label {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #383838;
    margin: 0 0 24px;
}

.news-detail__share-icons {
    display: flex;
    align-items: center;
    gap: 12px;
}

.news-detail__share-link {
    display: inline-flex;
    text-decoration: none;
    transition:
        opacity 0.2s,
        transform 0.2s;
    line-height: 0;
}

.news-detail__share-link:hover {
    opacity: 0.8;
}

/* ── Разделитель перед кнопкой ───────────────────────────── */
.news-detail__footer {
    border-top: 1px solid #dcdcdc;
    padding-top: 40px;
    margin-top: 8px;
}

/* ── Кнопка All announcements ────────────────────────────── */
.news-detail__back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    font-size: 16px;
    font-weight: 400;
    font-family: "Proxima Nova Rg", sans-serif;
    color: #048ec9;
    border: 1px solid #dcdcdc;
    text-decoration: none;
    transition:
        border-color 0.2s,
        color 0.2s;
    cursor: pointer;
    background: transparent;
}

.news-detail__back-btn:hover {
    border-color: #048ec9;
    color: #048ec9;
    text-decoration: none;
}

.news-detail__back-btn svg {
    flex-shrink: 0;
    color: #048ec9;
}

/* ── Адаптив ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .news-detail {
        padding: 20px 0 40px;
    }

    .news-detail__top {
        margin-bottom: 30px;
    }

    .news-detail__header {
        padding-right: 15px;
        margin-bottom: 24px;
    }

    .news-detail__title {
        font-size: 24px;
        margin-bottom: 16px;
    }

    .news-detail__image-col {
        padding-left: 15px;
    }

    .news-detail__share {
        padding: 24px 0 20px;
    }
}

/* ── Текст статьи ── */
.news-detail__text-section {
    padding: 0;
}

.news-detail__text-content {
    font-family: "Proxima Nova Rg", sans-serif;
    line-height: 1.6;
    color: #383838;
}

.news-detail__text-content a {
    color: #048ec9;
    text-decoration: none;
}

.news-detail__text-content img {
    max-width: 100%;
    height: auto;
}

/* ── Таблицы внутри text-content ─────────────────────────── */
.news-detail__text-content table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-family: "Proxima Nova Rg", sans-serif;
    font-size: 14px;
    margin: 24px 0;
    border: 1px solid #e8e4d8;
    border-radius: 4px;
    overflow: hidden;
}

.news-detail__text-content table th,
.news-detail__text-content table td {
    padding: 14px 16px;
    text-align: left;
    vertical-align: middle;
}

/* ── Жёлтая шапка ────────────────────────────────────────── */
.news-detail__text-content table thead th {
    color: #383838;
    font-weight: 700;
}

.news-detail__text-content table thead th em {
    display: block;
    font-style: italic;
    font-weight: 400;
    margin-top: 2px;
}

.news-detail__text-content table thead tr:not(:last-child) th {
    border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

/* ── Зебра ───────────────────────────────────────────────── */
.news-detail__text-content table tbody tr:nth-child(odd) {
    background: #ffffff;
}

.news-detail__text-content table tbody tr:nth-child(even) {
    background: #f8f6f1;
}

/* ── Разделители строк ───────────────────────────────────── */
.news-detail__text-content table tbody td {
    border-bottom: 1px solid #e8e4d8;
}

.news-detail__text-content table tbody tr:last-child td {
    border-bottom: none;
}

.news-detail__text-content table tbody td:first-child {
    color: #383838;
}

.news-detail__text-content blockquote {
    margin: 30px 0;
    padding: 10px 30px 20px 40px;
    border-left: 8px solid #dcdcdc;
    font-size: 24px;
    color: #383838;
}

.news-detail__text-content blockquote::before {
    content: "";
    display: block;
    width: 50px;
    height: 36px;
    margin-bottom: 16px;
    background-color: #f5c300;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M96 224C84.72 224 74.05 226.5 64 229.9V224c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24h-8C57.31 64 0 121.3 0 192v160c0 53 43 96 96 96s96-43 96-96-43-128-96-128zm256 0c-11.28 0-21.95 2.497-32 5.899V224c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24h-8C313.3 64 256 121.3 256 192v160c0 53 43 96 96 96s96-43 96-96-43-128-96-128z'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M96 224C84.72 224 74.05 226.5 64 229.9V224c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24h-8C57.31 64 0 121.3 0 192v160c0 53 43 96 96 96s96-43 96-96-43-128-96-128zm256 0c-11.28 0-21.95 2.497-32 5.899V224c0-35.3 28.7-64 64-64h8c13.3 0 24-10.7 24-24V88c0-13.3-10.7-24-24-24h-8C313.3 64 256 121.3 256 192v160c0 53 43 96 96 96s96-43 96-96-43-128-96-128z'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

.news-detail__longtitle {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.news-detail .box {
    background: #ffffff;
    border-top: 3px solid #f5c300;
    padding: 20px 24px 20px;
    border-bottom: 1px solid #e8e8e8;
}

.news-detail .box .title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1a2e44;
    margin-bottom: 20px;
    line-height: 1.4;
}

.news-detail .box .box-footer {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.news-detail .box .data {
    font-size: 56px;
    font-weight: 300;
    color: #1a2e44;
    line-height: 1;
    letter-spacing: -1px;
}

.news-detail .box .data-info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.news-detail .box .data-info li {
    font-size: 12px;
    color: #1a2e44;
    line-height: 1.4;
}