.information_page_text img {
    width: 250px;
}

.information_page_text_img img {
    width: 200px;
}

.information_card_img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 400px;
    width: 400px;
    object-fit: cover;
    margin: 0;
    border-radius: 5px !important;
}

.information_title {
    font-size: 10px !important;
}

.all_cart_news {
    display: grid;
    max-width: 1280px;        /*  1280 — как у external_news_block */
    width: 100%;
    margin: 0 auto;           /* ВОТ ОН — ЦЕНТР */
    padding: 0 8px;           /* лёгкий воздух */
    grid-template-columns: repeat(3, 1fr);
    box-sizing: border-box;
}


.information_card {
    font-size: 10px !important;
    margin: 0 10px 50px 10px;
}

.information_card_img_container {
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 95%;
    height: 30vh;
    border-radius: 5px;
}

.information_card_img_container img {
    border-radius: 5px;
}

.information_page_img {
    border-radius: 5px;
}

/* дата внутренних новостей (карточки) */
.information_card_date {
    font-size: 12px;
    color: #777;
    margin-bottom: 4px;
}

@media screen and (max-width: 991px) {
    .all_cart_news {
        display: grid;
        grid-template-columns: 1fr;
        width: 100% !important;
        text-align: center;
    }

    .information_card {
        margin-left: 30px;
    }

    h1 {
        text-align: center;
    }

    .information_title {
        margin-top: 4vh;
    }
}

/* ===== Внешняя агро-лента ===== */

.external_news_block {
    /* Чуть шире и по-центру на десктопе */
    margin: 20px auto 30px;
    max-width: 1040px;          /* было 900px */
    padding: 18px 26px;         /* немного больше воздуха */
    border-radius: 10px;
    background: #f7f9fb;
    box-sizing: border-box;
}

.external_news_title {
    font-size: 20px;
    margin: 0 0 14px 0;
}

.external_news_list {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* ОДНА НОВОСТЬ: li — только внешний отступ */
.external_news_item {
    margin: 8px 0;
    padding: 0;                 /* важно: padding переносим в ссылку */
    background: transparent;     /* чтобы не было двойного фона */
    border: none;               /* и двойной рамки */
    box-shadow: none;           /* и двойной тени */
}

/* ССЫЛКА = КАРТОЧКА (кликабельна вся площадь) */
.external_news_item_link {
    display: block;
    width: 100%;

    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;

    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e3e7ee;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);

    color: inherit;             /* весь текст по умолчанию как в карточке */
    text-decoration: none;

    transition:
        background-color 0.15s ease,
        box-shadow 0.15s ease,
        transform 0.12s ease;
}

/* лёгкий ховер для карточки */
.external_news_item_link:hover {
    background: #f3f6fb;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
    text-decoration: none;
}

/* Заголовок (теперь это div, а не <a>) */
.external_news_title_text {
    color: #0066cc;  /* ярко-синий как у порталов */
    font-weight: 600;
    display: inline; /* чтобы рядом красиво вставал source */
}

.external_news_item_link:hover .external_news_title_text {
    color: #003d80; /* темно-синий при наведении */
    text-decoration: underline;
}

/* источник внешней новости (подпись справа/рядом) */
.external_news_source {
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-left: 8px;
}

/* дата внешней новости */
.external_news_date {
    display: block;
    font-size: 12px;
    color: #999;
    margin-bottom: 4px;
}

/* ФОКУС для клавиатуры (важно для доступности) */
.external_news_item_link:focus {
    outline: none;
}

.external_news_item_link:focus-visible {
    outline: 2px solid rgba(28, 150, 117, 0.9);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ===== Адаптив: мобилка и планшеты ===== */

/* мобилка ≤ 768px */
@media (max-width: 768px) {
    .external_news_block {
        margin: 10px 8px 20px;
        padding: 10px 10px;
        max-width: 100%;
        border-radius: 8px;
    }

    .external_news_title {
        font-size: 17px;
        text-align: left;
    }

    .external_news_item {
        margin: 6px 0;          /* отступ между карточками */
    }

    .external_news_item_link {
        font-size: 13px;
        padding: 10px 11px;
        border-radius: 8px;
        box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    }

    .external_news_date {
        font-size: 11px;
    }
}

/* планшеты 769–1199px: делаем чуть шире и читаемее */
@media (min-width: 769px) and (max-width: 1199px) {
    .external_news_block {
        margin: 16px 16px 26px;
        max-width: 100%;
        padding: 16px 20px;
    }

    .external_news_item_link {
        font-size: 14px;
        padding: 12px 14px;
    }
}

/* ===== Новости в шапке ===== */

.header-link--news {
    color: #ffffff;
    text-decoration: none;
    margin-left: 16px;
    white-space: nowrap;
    font-weight: 500;
}

.header-link--news:hover {
    color: #ff3b30;   /* тот же красный */
    text-decoration: none;
}

/* Мобилка — скрываем, чтобы не ломать шапку */
@media (max-width: 768px) {
    .header-link--news {
        display: none;
    }
}

.external_news_row{
  display:flex;
  gap:12px;
  align-items:flex-start;
}

.external_news_thumb_wrap{
  width:86px;
  height:64px;
  flex:0 0 86px;
  border-radius:10px;
  overflow:hidden;
}

.external_news_thumb{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

@media (max-width:768px){
  .external_news_row{ flex-direction:column; }
  .external_news_thumb_wrap{
    width:100%;
    height:180px;
    flex:0 0 auto;
  }
}