

/* Start:/local/templates/matilda_s1/components/bitrix/news/materials.1/bitrix/catalog.section.list/sections.materials/style.css?17809633085902*/
 /* Главный заголовок */
.page-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    padding-bottom: 15px;
    border-bottom: 3px solid #2e4d8f;
    display: inline-block;
}

/* Сетка подразделов */
.subsections-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

/* Карточка подраздела */
.subsection-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.subsection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    border-color: #e0e0e0;
    text-decoration: none;
}

/* Шапка карточки подраздела */
.subsection-header {
    padding: 20px 20px 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #fff 100%);
    border-bottom: 1px solid #eee;
}

.subsection-title {
    margin: 0 0 5px 0;
    font-size: 22px;
    font-weight: 600;
}

.subsection-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.subsection-title a:hover {
    color: #2e4d8f;
    text-decoration: none;
}

.subsection-count {
    font-size: 13px;
    color: #999;
    display: inline-block;
    background: #f5f5f5;
    padding: 2px 10px;
    border-radius: 20px;
}

/* Тело карточки - сетка элементов */
.subsection-body {
    padding: 20px;
}

.items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

/* Карточка элемента */
.item-card {
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    display: block;
}

.item-card:hover {
    transform: translateY(-3px);
    text-decoration: none;
}

/* Кружок с картинкой */
.item-image-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto 10px;
    border-radius: 50%;
    overflow: hidden;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.item-card:hover .item-image-circle {
    box-shadow: 0 6px 16px rgba(30, 144, 255, 0.2);
    transform: scale(1.02);
    text-decoration: none;
}

.item-image-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Заглушка */
.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 28px;
    font-weight: bold;
}

/* Название элемента */
.item-name {
    font-size: 12px;
    font-weight: 500;
    color: #555;
    line-height: 1.4;
    display: block;
    transition: color 0.2s ease;
}

.item-card:hover .item-name {
    color: #2e4d8f;
    text-decoration: none;
}

/* Кнопка "Смотреть все" */
.view-all {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

.view-all a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #2e4d8f;
    text-decoration: none;
    font-weight: 500;
    transition: gap 0.2s ease;
}

.view-all a:hover {
    gap: 12px;
    text-decoration: none;
}

.view-all a::after {
    content: '→';
    transition: transform 0.2s ease;
}

.view-all a:hover::after {
    transform: translateX(3px);
    text-decoration: none;
}

/* Пустой раздел */
.empty-section {
    color: #999;
    padding: 30px;
    text-align: center;
    background: #fafafa;
    border-radius: 12px;
    font-size: 14px;
}

/* Адаптив */
@media (max-width: 768px) {
    .subsections-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 12px;
    }

    .item-image-circle {
        width: 75px;
        height: 75px;
    }

    .no-image {
        font-size: 22px;
    }

    .item-name {
        font-size: 11px;
    }

    .subsection-title {
        font-size: 18px;
    }

    .page-title {
        font-size: 26px;
    }
}

@media (max-width: 480px) {
    .items-grid {
        grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
        gap: 10px;
    }

    .item-image-circle {
        width: 65px;
        height: 65px;
    }

    .subsection-header {
        padding: 15px;
    }

    .subsection-body {
        padding: 15px;
    }
}

/* Курсор указателя для карточек с fancybox */
.item-card[data-fancybox="gallery"] {
    cursor: pointer;
}

/* Эффект при наведении на кружок */
.item-card[data-fancybox="gallery"] .item-image-circle {
    cursor: pointer;
    position: relative;
}

/* Иконка увеличения при наведении */
.item-card[data-fancybox="gallery"] .item-image-circle::after {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px;
    color: white;
    background: rgba(0,0,0,0.6);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.item-card[data-fancybox="gallery"]:hover .item-image-circle::after {
    opacity: 1;
}
/* End */
/* /local/templates/matilda_s1/components/bitrix/news/materials.1/bitrix/catalog.section.list/sections.materials/style.css?17809633085902 */
