

/* Start:/local/templates/dt2025/components/bitrix/news/countries/bitrix/news.detail/.default/style.css?17779039595859*/
/* local/templates/dt2025/components/bitrix/news/organization/bitrix/news.detail/.default/organization-detail.css */

/* Основные стили текста с градиентной маской */
#org-detail .text {
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    max-height: 400px;
    position: relative;
}

/* Градиентная маска для скрытого текста */
#org-detail .text:not(.expanded)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(to bottom, transparent, white);
    pointer-events: none;
}

/* Убираем градиент при раскрытии */
#org-detail .text.expanded::after {
    display: none;
}

#org-detail .text.expanded {
    max-height: none;
}

/* Иконки */
#org-detail .icon {
    display: inline-block;
    vertical-align: middle;
    width: 1em;
    height: 1em;
    fill: var(--bs-danger);
}

/* Элементы контактов */
#org-detail .content-element {
    border-bottom: var(--bs-gray-400) 1px solid;
}

#org-detail .content-element .text-wrap {
    color: var(--bs-gray-700);
}

/* Рекламные баннеры */
#org-detail .ads-item img {
    max-height: 30px;
}

/* Карта */
#org-detail #map-region {
    min-height: 400px;
}

/* Графики */
.graf {
    min-height: 300px;
}

/* Шрифты */
.font-family-serif {
    font-family: var(--bs-font-sans-serif);
}

/* Статус организации */
.status {
    height: fit-content;
}

.status .date {
    font-size: 0.7em;
    color: #6c757d;
}

/* Иконка голштинов */
.icon-holstein {
    width: 44px;
    height: 44px;
}

/* Стили для карточек-заголовков */
.card-title-catalog {
    border: 3px solid #dee2e6;
    border-radius: 12px 12px 0 0;
    border-bottom: none;
    background-color: #f8f9fa;
    padding: 1rem 1.25rem;
    margin-bottom: 0;
    display: inline-block;
    transition: all 0.2s ease;
    cursor: default;
}

.card-title-catalog.link {
    border-color: #eb202a;
    background-color: #fff;
    cursor: pointer;
}

.card-title-catalog.link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    background-color: rgba(235, 32, 42, 0.125) !important; /* #eb202a с 12.5% прозрачности */
}

.card-title-catalog h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
    white-space: nowrap;
}

/* Контент карточек */
.card-content-catalog {
    border: 1px solid #dee2e6;
    border-radius: 0 12px 12px 12px;
    background-color: #fff;
    padding: 1.25rem;
    margin-top: -1px;
    transition: border-color 0.3s ease;
}

/* Подсветка верхней границы при наведении на вкладку */
.card-title-catalog.link:hover + .card-content-catalog,
.card-title-catalog.link:hover ~ .card-content-catalog {
    border-top-color: #eb202a !important;
}

/* Обертка карты */
.map-card-container {
    border-radius: 0 12px 12px 12px;
    overflow: hidden;
    min-height: 400px;
    border: 1px solid #dee2e6;
    margin-top: -1px;
}

/* Карточки показателей */
.indicator-card {
    background: #fff;
}

.indicator-card.link {
    display: block;
    transition: all 0.3s ease;
}

.indicator-card.link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

/* Отступы между секциями */
.card-section {
    margin-bottom: 2rem;
}

/* Кнопки */
#org-detail .btn-outline-danger {
    border-color: var(--bs-danger);
    color: var(--bs-danger);
    transition: all 0.3s ease;
}

#org-detail .btn-outline-danger:hover {
    background-color: var(--bs-danger);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(235, 32, 42, 0.2);
}

/* Общие обертки */
#org-detail .wrap-border {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #fff;
}

/* Класс для JavaScript подсветки */
.highlight-border .card-content-catalog {
    border-top-color: #eb202a !important;
}

/* Адаптивность для мобильных устройств */
@media (max-width: 576px) {
    .status {
        margin-bottom: 50px;
    }

    .card-section > .d-inline-block {
        display: block !important;
        width: 100% !important;
        margin-right: 0 !important;
    }
    
    a .card-title-catalog.link {
        display: block !important;
        width: 100% !important;
    }
    
    .card-title-catalog h3 {
        white-space: normal;
        font-size: 1.1rem;
    }
    
    .card-content-catalog {
        border-radius: 0 0 12px 12px;
    }
    
    .map-card-container {
        min-height: 300px;
    }
    
    #org-detail .text {
        max-height: 300px;
    }
    
    .card-title-catalog.link:hover {
        transform: translateY(-1px);
    }
}

/* Для очень маленьких экранов */
@media (max-width: 576px) {
    .status {
        margin-bottom: 30px;
    }
    .card-title-catalog {
        width: 100%;
        text-align: center;
        display: block;
    }

    .card-title-catalog.link {
        border-radius: 0;
    }
    
    .card-title-catalog h3 {
        white-space: normal;
        font-size: 1.1rem;
    }
    
    /* Убрать специфичные стили для 576px, использовать те же что и для 768px */
    .card-title-catalog {
        padding: 1rem 1.25rem; /* Вернуть отступы как на 768px */
    }
    
    .card-content-catalog {
        padding: 1.25rem; /* Вернуть отступы как на 768px */
    }
    
    #org-detail .text {
        max-height: 300px; /* Как на 768px */
    }
}
/* End */
/* /local/templates/dt2025/components/bitrix/news/countries/bitrix/news.detail/.default/style.css?17779039595859 */
