<style>

/* Базовые стили текста */
p {
    text-align: justify;
}


/* Стили для ссылок ТОЛЬКО внутри статьи (всегда синие и жирные) */
.fc-article a:not(.fc-tg__btn) {
    color: #3399cc !important;
    font-weight: 700;
    text-decoration: none;
}

.fc-article a:not(.fc-tg__btn):hover {
    text-decoration: underline;
}

/* Оформление источников */
.article-sources {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.article-sources__title {
    font-weight: 700;
    font-size: 16px;
    margin-bottom: 10px;
    display: block;
}

.article-sources__item {
    font-size: 14px;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: 8px;
    display: block;
    text-align: justify;
}

/* Блок Telegram */
.fc-tg {
    margin: 24px 0;
    padding: 12px 16px;
    background: #EAF7F5;
    border: 1px solid #CDEBE6;
    border-radius: 14px;
    display: grid;
    grid-template-columns: 44px 1fr auto;
    gap: 16px;
    align-items: center;
    box-sizing: border-box;
    font-family: inherit;
}

.fc-tg p,
.fc-tg div:not(.fc-tg__btn) {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    text-align: left;
}

.fc-tg__icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.fc-tg__icon img {
    display: block;
    width: 100%;
    height: auto;
}

.fc-tg__title {
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 4px 0;
    color: #0f172a;
    font-size: 1.1em;
}

.fc-tg__text {
    margin: 0;
    line-height: 1.4;
    color: #475569;
    font-size: 0.95em;
}

.fc-tg__btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 10px 20px !important;
    border-radius: 10px !important;
    background-color: #3399cc !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    transition: background-color 0.2s ease !important;
}

.fc-tg__btn:hover {
    background-color: #297aa3 !important;
    /* Тот же синий, но на 20% темнее */
    color: #ffffff !important;
    text-decoration: none !important;
}

/* ============================================================
   Адаптивность и управление картинками 
   ============================================================ */

/* 1. Общие правила для всех устройств */
.fc-article figure.image,
.fc-article figure.image_resized {
    margin: 24px auto;
    display: table;
}

.fc-article figure.image img,
.fc-article figure.image_resized img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* 2. ПРАВИЛА ДЛЯ ПК (от 769px) */
@media (min-width: 769px) {

    /* ПК: Слева с обтеканием */
    .fc-article figure.image-style-align-left {
        float: left;
        margin-right: 24px;
        margin-left: 0;
        display: block;
    }

    /* ПК: Справа с обтеканием */
    .fc-article figure.image-style-align-right {
        float: right;
        margin-left: 24px;
        margin-right: 0;
        display: block;
    }

    /* ПК: По центру (уже задано в общих, но фиксируем) */
    .fc-article figure.image {
        margin-left: auto;
        margin-right: auto;
        float: none;
    }

    /* Скрываем всё, что предназначено ТОЛЬКО для мобилок (в конце для приоритета) */
    .fc-article .mobile-only,
    .fc-article figure.mobile-only {
        display: none !important;
    }

}

/* 3. ПРАВИЛА ДЛЯ МОБИЛОК (до 768px) */
@media (max-width: 768px) {

    /* Перенастройка Telegram-блока */
    .fc-tg {
        grid-template-columns: 1fr !important;
        justify-items: center !important;
        text-align: center !important;
        gap: 12px !important;
    }

    .fc-tg .fc-tg__icon {
        display: none !important;
    }

    .fc-tg__btn {
        width: 100% !important;
    }

    .fc-tg__text {
        text-align: justify !important;
    }

    /* Мобилка: все ВИДИМЫЕ картинки — на всю ширину экрана */
    .fc-article figure.image,
    .fc-article figure.image_resized,
    .fc-article figure.image-style-align-left,
    .fc-article figure.image-style-align-right {
        float: none !important;
        width: 100% !important;
        margin: 24px 0 !important;
        display: block !important;
    }

    .fc-article figure.image img,
    .fc-article figure.image_resized img,
    .fc-article figure.image-style-align-left img,
    .fc-article figure.image-style-align-right img {
        width: 100% !important;
        height: auto !important;
    }

    /* Скрываем всё, что предназначено ТОЛЬКО для ПК (в конце для приоритета) */
    .fc-article .desktop-only,
    .fc-article figure.desktop-only {
        display: none !important;
    }
}

</style>