

/* Start:/bitrix/templates/aspro-allcorp3/components/bitrix/news.list/diploms/style.css?17775207356084*/
/* =========================================
   COMPACT BEAUTIFUL GALLERY
   Аккуратная галерея с небольшими картинками
   ========================================= */

.dyn-gallery-wrapper {
    margin: 32px 0 48px;
    overflow: visible;
}

/* Разделы */
.dyn-section {
    margin-bottom: 46px;
}

.dyn-section:last-child {
    margin-bottom: 0;
}

/* Заголовок */
.dyn-header {
    margin-bottom: 18px;
    position: relative;
}

.dyn-title {
    font-size: 24px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    color: #151515;
    margin: 0 !important;
    letter-spacing: 0.5px;
}

/* Декоративная линия под заголовком */
.dyn-title:after {
    content: "";
    display: block;
    width: 54px;
    height: 3px;
    margin-top: 10px;
    border-radius: 99px;
    background: var(--theme-base-color, #ff3366);
}

/* Сетка.
   ВАЖНО: карточки ограничены по ширине, поэтому не становятся огромными */
.dyn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 210px));
    gap: 16px;
    justify-content: start;
    align-items: start;
}

/* Анимация появления */
@keyframes dynFadeUp {
    0% {
        opacity: 0;
        transform: translateY(18px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.dyn-item-wrap {
    opacity: 0;
    animation: dynFadeUp 0.45s ease forwards;
    animation-delay: calc(var(--anim-order) * 0.045s);
}

/* Карточка */
.dyn-item {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    background: #f2f2f2;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease,
        filter 0.28s ease;
}

/* Картинка */
.dyn-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.45s ease;
}

/* Затемнение снизу */
.dyn-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 35%,
            rgba(0, 0, 0, 0.64) 100%
        );
    opacity: 0.78;
    transition: opacity 0.28s ease;
    z-index: 1;
}

/* Мягкий блик */
.dyn-shine {
    position: absolute;
    top: 0;
    left: -130%;
    width: 65%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.28),
        transparent
    );
    transform: skewX(-24deg);
    z-index: 2;
    pointer-events: none;
}

/* Подпись */
.dyn-caption {
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

/* Название видно сразу, не надо ждать hover */
.dyn-name {
    color: #fff;
    font-size: 13px;
    line-height: 1.25;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.55);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Кнопка */
.dyn-btn {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 50%;
    background: var(--theme-base-color, #ff3366);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.22);
    transform: scale(0.94);
    transition:
        transform 0.28s ease,
        background 0.28s ease;
}

.dyn-btn svg {
    width: 13px;
    height: 13px;
}

/* Hover-эффект аккуратный, без огромного увеличения */
.dyn-item-wrap:hover .dyn-item {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.dyn-item-wrap:hover .dyn-image {
    transform: scale(1.055);
}

.dyn-item-wrap:hover .dyn-overlay {
    opacity: 0.88;
}

.dyn-item-wrap:hover .dyn-btn {
    transform: scale(1);
}

.dyn-item-wrap:hover .dyn-shine {
    animation: dynShine 0.75s ease;
}

@keyframes dynShine {
    0% {
        left: -130%;
    }

    100% {
        left: 140%;
    }
}

/* Если пользователь предпочитает меньше анимаций */
@media (prefers-reduced-motion: reduce) {
    .dyn-item-wrap,
    .dyn-item,
    .dyn-image,
    .dyn-overlay,
    .dyn-btn,
    .dyn-shine {
        animation: none !important;
        transition: none !important;
    }

    .dyn-item-wrap {
        opacity: 1;
    }
}

/* Планшеты */
@media (max-width: 991px) {
    .dyn-gallery-wrapper {
        margin: 28px 0 42px;
    }

    .dyn-title {
        font-size: 22px !important;
    }

    .dyn-grid {
        grid-template-columns: repeat(auto-fill, minmax(145px, 1fr));
        gap: 14px;
    }

    .dyn-item {
        aspect-ratio: 4 / 3;
    }

    .dyn-item-wrap:hover .dyn-item {
        transform: none;
    }

    .dyn-item-wrap:hover .dyn-image {
        transform: none;
    }
}

/* Телефоны */
@media (max-width: 600px) {
    .dyn-section {
        margin-bottom: 34px;
    }

    .dyn-header {
        margin-bottom: 14px;
    }

    .dyn-title {
        font-size: 20px !important;
    }

    .dyn-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .dyn-item {
        border-radius: 12px;
        aspect-ratio: 1 / 1;
    }

    .dyn-caption {
        left: 10px;
        right: 10px;
        bottom: 10px;
        gap: 8px;
    }

    .dyn-name {
        font-size: 12px;
    }

    .dyn-btn {
        width: 26px;
        height: 26px;
        min-width: 26px;
    }

    .dyn-btn svg {
        width: 12px;
        height: 12px;
    }
}

/* Очень узкие экраны */
@media (max-width: 360px) {
    .dyn-grid {
        gap: 10px;
    }

    .dyn-name {
        font-size: 11px;
    }
}
/* End */
/* /bitrix/templates/aspro-allcorp3/components/bitrix/news.list/diploms/style.css?17775207356084 */
