/* Финальный адаптивный режим новостей: исходные пропорции без обрезания. */
.news-card--shared{min-width:0;overflow:hidden}
.news-card--shared .news-card__media--adaptive{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;overflow:hidden!important;margin:0!important;padding:0!important;background:#f8f6f4!important;line-height:0!important}
.news-card--shared .news-card__media--adaptive .news-card__image--adaptive{display:block!important;width:100%!important;height:auto!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;object-fit:initial!important;object-position:initial!important;transform:none!important}
.news-card--shared .news-card__body{display:flex!important;flex:1 1 auto!important;min-width:0!important;min-height:150px!important;flex-direction:column!important;padding:17px 18px 19px!important}
body.page-home .home-news-section,body.page-city .city-news-section,body.page-news .news-page__content{padding:52px 0 64px!important}
body.page-home .home-news-section>.container,body.page-city .city-news-section>.container,body.page-news .news-page__content>.container{padding-left:24px;padding-right:24px}
body.page-home .home-news-section .section-heading,body.page-city .city-news-section .section-heading{margin:0 0 30px!important}
@media(max-width:900px){body.page-home .home-news-section>.container,body.page-city .city-news-section>.container,body.page-news .news-page__content>.container{padding-left:18px;padding-right:18px}}
@media(max-width:600px){.news-card--shared .news-card__body{min-height:130px!important;padding:14px 15px 16px!important}body.page-home .home-news-section,body.page-city .city-news-section,body.page-news .news-page__content{padding:38px 0 48px!important}body.page-home .home-news-section>.container,body.page-city .city-news-section>.container,body.page-news .news-page__content>.container{padding-left:14px;padding-right:14px}}

/* Absolute final fix for portrait/square news images. */
body.page-company .company-news--after-shop .news-card--shared .news-card__media--adaptive .news-card__image--adaptive{display:block!important;width:100%!important;height:auto!important;max-width:100%!important;max-height:none!important;min-width:0!important;min-height:0!important;object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;transform:none!important}
body.page-company .company-news--after-shop .news-card--shared .news-card__media--adaptive{display:block!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:auto!important;overflow:hidden!important;margin:0!important;padding:0!important}
body.page-company .company-news--after-shop .news-card--shared .news-card__body{min-height:150px!important;padding:18px 20px 20px!important}
body.page-company .company-news--after-shop .company-news__head{margin-bottom:32px!important}
@media(max-width:600px){body.page-company .company-news--after-shop{padding:38px 14px 28px!important}body.page-company .company-news--after-shop .company-news__head{margin-bottom:24px!important}body.page-company .company-news--after-shop .news-card--shared .news-card__body{min-height:130px!important;padding:15px 16px 17px!important}}

/* Единый размер превью: карточки новостей не зависят от пропорций исходного фото. */
.news-card--shared .news-card__media--adaptive{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:auto!important;min-height:0!important;max-height:none!important;aspect-ratio:16 / 9!important;overflow:hidden!important;background:#f8f6f4!important}
.news-card--shared .news-card__media--adaptive .news-card__image--adaptive{display:block!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;object-fit:contain!important;object-position:center!important;background:#f8f6f4!important}
@media(max-width:600px){.news-card--shared .news-card__media--adaptive{aspect-ratio:16 / 9!important}}
