

/* Start:/local/templates/ys_russko/components/bitrix/catalog.section.list/category.home.page/style.css?17951776711746*/
.custom-categories-section {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: 'Segoe UI', 'Roboto', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
    background: #fff;
    border-radius: 28px;
}

.custom-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    padding: 10px;
}

.custom-category-item.catalog-item {
    height: auto;
    /* Keep the space previously taken by the thumbnail and its 16px margin. */
    padding: 20px 12px calc(16px + 100px + 16px);
    border: 1px solid transparent;
    background: #f8f6ff;
}

.custom-category-item.catalog-item img {
    position: absolute;
    inset: 0;
}

.custom-category-item .custom-category-name {
    display: block;
    position: relative;
    padding: 0;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
    .custom-categories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .custom-categories-section {
        padding: 40px 16px;
    }

    .custom-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    .custom-category-item.catalog-item {
        padding-bottom: calc(16px + 80px + 16px);
    }

    .custom-category-item .custom-category-name {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .custom-categories-grid {
        gap: 12px;
    }

    .custom-category-item.catalog-item {
        padding: 14px 8px calc(12px + 70px + 16px);
    }

    .custom-category-item .custom-category-name {
        font-size: 0.75rem;
    }
}

/* End */


/* Start:/local/templates/ys_russko/components/bitrix/news.list/sertificat_slider/style.css?1794836802150*/
div.news-list
{
	word-wrap: break-word;
}
div.news-list img.preview_picture
{
	float:left;
	margin:0 4px 6px 0;
}
.news-date-time {
	color:#486DAA;
}

/* End */
/* /local/templates/ys_russko/components/bitrix/catalog.section.list/category.home.page/style.css?17951776711746 */
/* /local/templates/ys_russko/components/bitrix/news.list/sertificat_slider/style.css?1794836802150 */
