

/* Start:/local/components/km/slider/templates/.default/style.css?17951579239131*/
.slick-slider{
    display: flex !important;
    align-items: center;
    margin:0px 15px !important;
}

.slick-list{
     margin:0px 15px !important;
}
/* Стили стрелок */
.custom-slider .slick-prev,
.custom-slider .slick-next {
    padding:15px !important;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    position: relative;

}

.custom-slider .slick-prev:after,
.custom-slider .slick-next:after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%);
    border-radius: 50%;
}

.custom-slider .slick-prev:hover,
.custom-slider .slick-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838 0%, #1ca87a 100%);
}

.custom-slider .slick-prev:active,
.custom-slider .slick-next:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
}

.custom-slider .slick-prev:focus,
.custom-slider .slick-next:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3), 0 4px 15px rgba(40, 167, 69, 0.3);
}

.custom-slider .slick-prev svg,
.custom-slider .slick-next svg {
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease;
}

.custom-slider .slick-prev:hover svg {
    transform: translateX(-2px);
}

.custom-slider .slick-next:hover svg {
    transform: translateX(2px);
}


/* Контейнер сертификата */
.certificate-container {
    position: relative;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.certificate-container:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

/* Ссылка на изображение */
.certificate-link {
    display: block;
    position: relative;
    text-decoration: none;
    color: inherit;
    flex-grow: 1;
    overflow: hidden;
}

/* Обертка изображения */
.certificate-image-wrapper {
    position: relative;
    overflow: hidden;
   
    background-size: 20px 20px;
    aspect-ratio: 0.707; /* A4 пропорция 1:1.414, инвертируем для вертикального */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Изображение сертификата */
.certificate-image {
    width: auto;
    height: 100%;
    max-height: 280px;
    object-fit: contain;
    transition: transform 0.5s ease;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.certificate-link:hover .certificate-image {
    transform: scale(1.03);
}

/* Оверлей при наведении */
.certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(40, 167, 69, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 4px;
}

.certificate-link:hover .certificate-overlay {
    opacity: 1;
}

.certificate-overlay svg {
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.certificate-link:hover .certificate-overlay svg {
    transform: scale(1);
}

/* Подпись сертификата */
.certificate-caption {
    padding: 15px;
    text-align: center;
    background: white;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #495057;
    line-height: 1.5;
    font-weight: 500;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Прогресс бар */
.slider-progress {
    margin-top: 30px;
    padding: 0 20px;
}

.progress-bar {
    height: 4px;
    background: #e9ecef;
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #28a745, #20c997);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 2px;
    position: relative;
}

.progress-fill:after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 12px;
    background: #28a745;
    border-radius: 50%;
    box-shadow: 0 0 0 3px white;
}

/* Сообщение об отсутствии сертификатов */
.no-certificates {
    text-align: center;
    padding: 60px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 16px;
    margin: 40px auto;
    max-width: 800px;
}

.no-certificates-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-certificates p {
    font-size: 18px;
    color: #6c757d;
    margin: 0;
}

/* Адаптивность */

/* Десктоп (6 сертификатов) */
@media (min-width: 1200px) {
    .certificate-image-wrapper {
        aspect-ratio: 0.707;
    }
    
    .certificate-image {
        max-height: 280px;
    }
}

/* Ноутбуки (4 сертификата) */
@media (max-width: 1199px) and (min-width: 993px) {
 
    
    .certificate-image {
        max-height: 250px;
    }
    
    .certificate-caption {
        font-size: 13px;
        padding: 12px;
        min-height: 56px;
    }
}

/* Планшеты (3 сертификата) */
@media (max-width: 992px) and (min-width: 769px) {
  
    
    .certificate-image-wrapper {
        aspect-ratio: 0.707;
        padding: 15px;
    }
    
    .certificate-image {
        max-height: 220px;
    }
    
    .certificate-caption {
        font-size: 13px;
        padding: 12px 10px;
        min-height: 52px;
    }
    
    .custom-slider .slick-prev,
    .custom-slider .slick-next {
        width: 44px;
        height: 44px;
    }
}

/* Маленькие планшеты (2 сертификата) */
@media (max-width: 768px) and (min-width: 577px) {
   
    
    .certificate-image-wrapper {
        aspect-ratio: 0.707;
        padding: 12px;
    }
    
    .certificate-image {
        max-height: 200px;
    }
    
    .certificate-caption {
        font-size: 12px;
        padding: 10px 8px;
        min-height: 48px;
    }
}

/* Мобильные (1 сертификат) */
@media (max-width: 576px) {

    
    .custom-slider .slick-prev,
    .custom-slider .slick-next {
        width: auto;
        height: auto;
        padding:15px;
    }
    
    .certificate-image-wrapper {
        aspect-ratio: 0.707;
        padding: 15px;
    }
    
    .certificate-image {
        max-height: 180px;
    }
    
    .certificate-caption {
        font-size: 12px;
        padding: 10px;
        min-height: 44px;
    }
    
    .slider-progress {
        padding: 0 10px;
    }
}

/* Поддержка старых браузеров */
@supports not (aspect-ratio: 0.707) {
    .certificate-image-wrapper {
        height: 0;
        padding-bottom: 141.4%; /* 1/0.707 ≈ 1.414 */
        position: relative;
    }
    
    .certificate-image {
        position: absolute;
        top: 20px;
        left: 20px;
        right: 20px;
        bottom: 20px;
        width: calc(100% - 40px);
        height: calc(100% - 40px);
        max-height: none;
    }
    
    @media (max-width: 992px) {
        .certificate-image-wrapper {
            padding-bottom: 141.4%;
        }
        
        .certificate-image {
            top: 15px;
            left: 15px;
            right: 15px;
            bottom: 15px;
            width: calc(100% - 30px);
            height: calc(100% - 30px);
        }
    }
    
    @media (max-width: 576px) {
        .certificate-image-wrapper {
            padding-bottom: 141.4%;
        }
        
        .certificate-image {
            top: 15px;
            left: 15px;
            right: 15px;
            bottom: 15px;
            width: calc(100% - 30px);
            height: calc(100% - 30px);
        }
    }
}


/* Анимация загрузки */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Улучшение доступности */
.certificate-link:focus {
    outline: 3px solid #28a745;
    outline-offset: 3px;
    border-radius: 4px;
}

.certificate-link:focus:not(:focus-visible) {
    outline: none;
}

.certificate-link:focus-visible {
    outline: 3px solid #28a745;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Print стили */
@media print {
   
    .certificate-container {
        box-shadow: none !important;
        border: 1px solid #eee !important;
    }
    
    .certificate-overlay {
        display: none !important;
    }
    
    .certificate-image {
        filter: grayscale(100%) !important;
    }
}
/* End */


/* Start:/bitrix/templates/aspro_mshop/components/bitrix/sale.gift.main.products/main/style.min.css?1795157916604*/
.bx_item_list_title{font-weight:bold;color:#000;background:#ebf4f8;vertical-align:middle;height:38px;text-align:center;line-height:38px;font-size:14px}.bx_sale_gift_main_products.bx_wood .bx_item_list_title{background:#ebf4f8}.bx_sale_gift_main_products.bx_red .bx_item_list_title{background:#fbf1f0}.bx_sale_gift_main_products.bx_green .bx_item_list_title{background:#f2fbea}.bx_sale_gift_main_products.bx_blue .bx_item_list_title{background:#ebf4f8}.bx_sale_gift_main_products.bx_black .bx_item_list_title{background:#f1f4f7}.bx_sale_gift_main_products.bx_yellow .bx_item_list_title{background:#fbf7db}
/* End */
/* /local/components/km/slider/templates/.default/style.css?17951579239131 */
/* /bitrix/templates/aspro_mshop/components/bitrix/sale.gift.main.products/main/style.min.css?1795157916604 */
