/* Переопределение стилей для темы samaraonline24 */

/* Устанавливаем letter-spacing в 0 для всей темы */
body,
body * {
    letter-spacing: 0 !important;
}

/* Уменьшаем блок first-news до половины страницы */
.first-news {
    width: 50% !important;
}

/* Корректируем ширину блоков news-list в first-block */
.first-block .news-list {
    width: 25% !important;
}

/* Блок "Спецпроекты" */
.special-projects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--indent-main, 20px);
    margin-bottom: var(--indent-main, 20px);
    align-items: start;
}

.special-projects > * {
    min-width: 0;
    width: 100%;
}

.special-projects__list .news-list {
    padding: 0;
}

/* Блок "Актуальное" (равные колонки) */
.popular-news.col-3 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: var(--indent-main, 20px);
}

.popular-news.col-3 > * {
    min-width: 0;
    width: 100%;
    padding-left: 0 !important;
}

/* Скрываем иконки sections-i везде в теме */
.sections-i {
    display: none !important;
}

/* Верхний виджет: валюта, погода, пробки */
.top-info-widget {
    display: inline-flex;
    align-items: center;
    gap: 18px;
    margin-right: 12px;
    font-weight: 600;
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}

.top-info-widget__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.top-info-widget__value {
    color: #111;
}

.top-info-widget__label {
    color: #111;
}

.top-info-widget__trend {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
}

.top-info-widget__trend--up {
    border-bottom: 7px solid #28a745;
}

.top-info-widget__trend--down {
    border-top: 7px solid #dc3545;
}

.top-info-widget__icon--weather {
    width: 18px;
    height: 18px;
    display: inline-block;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18h10a4 4 0 0 0 0-8 6 6 0 0 0-11-2A4 4 0 0 0 7 18z'/%3E%3C/svg%3E");
}

.top-info-widget__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #d22;
    color: #111;
    font-weight: 700;
    font-size: 12px;
    line-height: 1;
}

.main-menu__info {
    margin-left: auto;
}

/* Мобильная версия: блоки в first-block идут друг за другом */
@media (max-width: 764px) {
    .first-block {
        flex-direction: column !important;
    }
    
    .first-news {
        width: 100% !important;
        border-right: none !important;
        padding-right: 0 !important;
        padding-bottom: var(--indent-main, 20px);
        border-bottom: 1px solid var(--color-secondary, #f1f1f1);
    }
    
    .first-block .news-list {
        width: 100% !important;
        padding: 0 !important;
        margin-bottom: var(--indent-main, 20px);
    }
    
    .first-block .news-list:last-child {
        margin-bottom: 0;
    }

    .special-projects {
        grid-template-columns: 1fr;
        row-gap: var(--indent-main, 20px);
    }

    .popular-news.col-3 {
        grid-template-columns: 1fr;
        column-gap: 0;
        row-gap: var(--indent-main, 20px);
    }

    .main-menu__info {
        margin-left: 0;
        margin-top: 10px;
        display: flex;
        justify-content: flex-end;
    }
}

@media (max-width: 1024px) {
    .main-menu {
        flex-direction: column;
        align-items: stretch;
    }
}

/* Количество просмотров у коммерческой новости (при article.edit_count) */
.news-info-news {
    align-items: center;
}
.news-view-count {
    display: inline;
    margin-left: 10px;
    color: inherit;
    font-size: 13px;
    font-weight: inherit;
    line-height: inherit;
    white-space: nowrap;
}
.news-view-count__icon {
    display: inline-block;
    width: 1em;
    height: 1em;
    margin-right: 3px;
    vertical-align: -0.2em;
}
