/* ===== Лента новостей /market_news — редизайн 11.10.2026 ===== */
/* Заголовок раздела */
#page_h1_string:has(~[data-news-tags-menu]){background:none!important;border:0!important;padding-bottom:6px!important}
#page_h1_string:has(~[data-news-tags-menu]) #page_h1 h1{font:700 22px/1.3 Arial,Helvetica,sans-serif!important;color:#1d2024!important;background:none!important;padding:0!important;margin:0!important;text-wrap:balance}

/* Фильтры (рубрики, год) */
[data-news-tags-menu]{margin:6px 0 4px!important;padding-bottom:14px;border-bottom:1px solid #e3e6ea}
[data-news-tags-menu] .select2-container--default .select2-selection--single{display:flex!important;align-items:center;box-sizing:border-box;height:36px!important;border:1px solid #dfe2e6;border-radius:4px;background:#fff}
[data-news-tags-menu] .select2-container--default .select2-selection--single .select2-selection__rendered{display:block!important;height:auto!important;line-height:20px!important;padding:0 28px 0 12px!important;margin:0!important;border:0!important;background:none!important;box-shadow:none!important;font:14px/20px Arial,Helvetica,sans-serif!important;color:#1d2024!important}
[data-news-tags-menu] .news-tags-menu-types{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
[data-news-tags-menu] .news-tags-menu-types .select2-container{margin:0!important;width:auto!important;min-width:130px}
[data-news-tags-menu] .select2-container--default .select2-selection--single .select2-selection__arrow{height:34px;width:34px;right:2px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath d='M2 3.5l3 3 3-3' fill='none' stroke='%2345484d' stroke-width='1.4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center;border:0}
[data-news-tags-menu] .select2-container--default .select2-selection--single .select2-selection__arrow b{display:none}
[data-news-tags-menu] .select2-container--default .select2-selection--single:hover{border-color:#b9bec5}
[data-news-tags-menu] .news-inner-tags-container .tags ul{display:flex;flex-wrap:wrap;gap:6px;padding:12px 0 0;margin:0;list-style:none}
[data-news-tags-menu] .news-inner-tags-container .tags li{margin:0;padding:0;float:none;background:none}
[data-news-tags-menu] .news-inner-tags-container .tags ul li a{display:inline-flex!important;align-items:center;height:30px!important;line-height:28px!important;padding:0 12px!important;margin:0!important;border:1px solid #dfe2e6!important;border-radius:15px!important;background:#fff!important;box-shadow:none!important;font:13px/28px Arial,Helvetica,sans-serif!important;color:#45484d!important;text-decoration:none!important;text-transform:none!important}
[data-news-tags-menu] .news-inner-tags-container .tags ul li a:hover{border-color:#b9bec5!important;color:#181716!important}
[data-news-tags-menu] .news-inner-tags-container .tags ul li a.active{background:#45484d!important;border-color:#45484d!important;color:#fff!important}

/* Карточка новости */
#news-inner>ul{margin:0;padding:0;list-style:none}
#news-inner>ul>li{border-bottom:1px solid #eceef1;margin:0;padding:0;background:none}
#news-inner .has-right-dots-border--with_bottom_border{position:relative;background:none!important;border:0!important;padding:24px 0!important;margin:0!important}
#news-inner .newslst_itemdotted{display:none}
#news-inner a.news-inner__item_link{display:grid;grid-template-columns:120px minmax(0,1fr);column-gap:28px;align-items:start;text-decoration:none;color:inherit;padding:0 24px 0 0;margin:0}
#news-inner>ul>li,[data-news-tags-menu]{margin-right:20px!important}
#news-inner a.news-inner__item_link>.news-inner__item-heading{display:contents}
#news-inner a.news-inner__item_link .news-inner__item-img{grid-column:1;grid-row:1/span 3;width:120px;height:120px;margin:0;float:none;border-radius:50%;background-size:cover;background-position:center;transition:transform .25s ease,box-shadow .25s ease}
#news-inner a.news-inner__item_link:hover .news-inner__item-img{transform:scale(1.03);box-shadow:0 4px 14px rgba(20,25,35,.10)}
#news-inner a.news-inner__item_link .title{grid-column:2;grid-row:1;display:block;margin:0 0 8px;padding:0;font:700 19px/1.32 Arial,Helvetica,sans-serif;color:#1d2024!important;text-wrap:pretty;transition:color .15s}
#news-inner a.news-inner__item_link:hover .title{color:#265a99!important}
#news-inner a.news-inner__item_link>span:not(.date):not(.news-inner__item-heading){grid-column:2;grid-row:2;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;margin:0;padding:0;font-family:HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,"Lucida Grande",sans-serif;font-weight:400;font-size:14px;line-height:24px;color:#444;white-space:normal}
/* Строка сведений: дата (позже время и просмотры) и «Обсудить» */
#news-inner a.news-inner__item_link .date{grid-column:2;grid-row:3;display:block;margin:12px 0 0;padding:0;width:auto;float:none;position:static;font:13px/18px Arial,Helvetica,sans-serif;color:#45484d;font-variant-numeric:tabular-nums}
#news-inner .newslist_itemfooter{position:absolute;left:148px;right:auto;bottom:24px;width:auto!important;display:flex;justify-content:flex-start!important;margin:0;padding:0;height:18px;line-height:18px}
#news-inner .newslist_itemfooter .comments{float:none!important;position:static;visibility:visible!important;opacity:1!important;margin:0 0 0 104px!important;padding:0;background:none}
#news-inner .newslist_itemfooter .comments a{visibility:visible!important}
#news-inner .newslist_itemfooter .comments a{text-transform:none!important;letter-spacing:0!important;display:inline-flex;align-items:center;gap:6px;font:13px/18px Arial,Helvetica,sans-serif;color:#8a8f96;text-decoration:none;background:none;padding:0}
#news-inner .newslist_itemfooter .comments a:hover{color:#181716}
#news-inner .newslist_itemfooter .comments a i{position:static!important;flex:none;display:inline-block;width:14px;height:14px;margin:0;background:none;-webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M2 3.5h12v7.5H7l-3.5 2.8V11H2z' fill='none' stroke='black' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px 14px no-repeat;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M2 3.5h12v7.5H7l-3.5 2.8V11H2z' fill='none' stroke='black' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px 14px no-repeat;background-color:currentColor}
#news-inner .newslist_itemfooter .comments.nocomm a{font-size:0}
#news-inner .newslist_itemfooter .comments.nocomm a::after{content:"Обсудить";font-size:13px}
/* Заготовка под время и просмотры (выведет программист): <span class="news-meta"><time>15:30</time><span class="views">679</span></span> */
#news-inner .news-meta{grid-column:2;grid-row:3;display:flex;gap:18px;margin:12px 0 0;font:13px/18px Arial,Helvetica,sans-serif;color:#8a8f96}
#news-inner .news-meta time{color:#45484d;font-variant-numeric:tabular-nums}
/* Заготовка под заголовок дня: <li class="news-day"><b>9 октября</b> <span>пятница</span></li> */
#news-inner>ul>li.news-day{display:flex;align-items:baseline;gap:10px;margin:30px 0 0;padding:0 0 10px;border-bottom:1px solid #e3e6ea}
#news-inner>ul>li.news-day b{font:700 13px Arial,Helvetica,sans-serif;letter-spacing:.06em;text-transform:uppercase;color:#181716}
#news-inner>ul>li.news-day span{font:13px Arial,Helvetica,sans-serif;color:#8a8f96}

/* Постраничная навигация — как на /vak */
#news-inner~.pages,.has-right-dots-border>.pages{display:flex;align-items:center;justify-content:center;gap:3px;margin:34px 0 10px;padding:0;border:0;background:none;font-family:HelveticaNeue-Light,"Helvetica Neue Light","Helvetica Neue",Helvetica,Arial,sans-serif}
.has-right-dots-border>.pages a{float:none!important;position:static!important;display:inline-flex;align-items:center;justify-content:center;min-width:38px;height:38px;padding:0 6px;margin:0!important;box-sizing:border-box;border:0;border-radius:0;background:#f2f5f7;font-size:14px;line-height:38px;color:#181716!important;text-decoration:none;transition:background .15s}
.has-right-dots-border>.pages a[href]:hover{background:#e3e8ec}
.has-right-dots-border>.pages a.active{background:#181716!important;color:#fff!important}
.has-right-dots-border>.pages a:not([href]){background:none;min-width:24px;padding:0;color:#8a8f96!important;cursor:default}
.has-right-dots-border>.pages a.prev{order:-1}
.has-right-dots-border>.pages a.next{order:99}
.has-right-dots-border>.pages a.prev,.has-right-dots-border>.pages a.next{width:38px;background:#f2f5f7 center/12px 12px no-repeat;font-size:0}
.has-right-dots-border>.pages a.prev{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M7.5 2L3.5 6l4 4' fill='none' stroke='%23181716' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")}
.has-right-dots-border>.pages a.next{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M4.5 2l4 4-4 4' fill='none' stroke='%23181716' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")}

/* Телефон */
@media (max-width:760px){
 #page_h1_string:has(~[data-news-tags-menu]) #page_h1 h1{font-size:20px!important}
 #news-inner a.news-inner__item_link{column-gap:16px}
 #news-inner a.news-inner__item_link .news-inner__item-img{grid-row:1/span 1}
 #news-inner a.news-inner__item_link .title{align-self:center;margin:0;font-size:17px;line-height:1.3}
 #news-inner a.news-inner__item_link>span:not(.date):not(.news-inner__item-heading){grid-column:1/-1;grid-row:2;margin-top:12px}
 #news-inner a.news-inner__item_link .date{grid-column:1/-1;grid-row:3}
 #news-inner .newslist_itemfooter{left:0}
 #news-inner a.news-inner__item_link{padding-right:0}
 #news-inner>ul>li,[data-news-tags-menu]{margin-right:0!important}
 #news-inner .has-right-dots-border--with_bottom_border{padding:20px 0!important}
 #news-inner .newslist_itemfooter{bottom:20px}
 .has-right-dots-border>.pages{flex-wrap:wrap}
 .has-right-dots-border>.pages a{min-width:34px;height:34px;line-height:34px}
}
